]> git.saurik.com Git - wxWidgets.git/blame - configure
Added wx.App.IsMainLoopRunning
[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.
7714864e 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.5.3.
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'
7714864e
RL
273PACKAGE_VERSION='2.5.3'
274PACKAGE_STRING='wxWidgets 2.5.3'
77ffb593 275PACKAGE_BUGREPORT='wx-dev@lists.wxwidgets.org'
a848cd7e
SC
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
315ac_subdirs_all="$ac_subdirs_all src/expat"
a13a7f89 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 WX_FLAVOUR WX_LIB_FLAVOUR WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_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_0_USE_XRC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF COND_PLATFORM_MACOSX_1_TOOLKIT_X11 COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_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_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_XRC_1 COND_WITH_PLUGIN_SDL_1 COND_WXUNIV_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 COND_TOOLKIT_MAC_WXUNIV_0 COND_TOOLKIT_MSW_WXUNIV_0 COND_TOOLKIT_PM_WXUNIV_0 SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_EXTRALIBS WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS GCC_PRAGMA_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL CPPUNIT_CONFIG LIBOBJS LTLIBOBJS'
a848cd7e
SC
317ac_subst_files=''
318
319# Initialize some variables set by options.
320ac_init_help=
321ac_init_version=false
322# The variables have the same names as the options, with
323# dashes changed to underlines.
324cache_file=/dev/null
325exec_prefix=NONE
326no_create=
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
335verbose=
336x_includes=NONE
337x_libraries=NONE
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
357ac_prev=
358for ac_option
359do
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
371 case $ac_option in
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376 bindir=$ac_optarg ;;
377
378 -build | --build | --buil | --bui | --bu)
379 ac_prev=build_alias ;;
380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381 build_alias=$ac_optarg ;;
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
397 datadir=$ac_optarg ;;
398
399 -disable-* | --disable-*)
400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401 # Reject names that are not valid shell variable names.
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
407
408 -enable-* | --enable-*)
409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410 # Reject names that are not valid shell variable names.
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
428 exec_prefix=$ac_optarg ;;
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
440
441 -host | --host | --hos | --ho)
442 ac_prev=host_alias ;;
443 -host=* | --host=* | --hos=* | --ho=*)
444 host_alias=$ac_optarg ;;
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
451 includedir=$ac_optarg ;;
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456 infodir=$ac_optarg ;;
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
461 libdir=$ac_optarg ;;
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
468 libexecdir=$ac_optarg ;;
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477 localstatedir=$ac_optarg ;;
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 mandir=$ac_optarg ;;
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489 | --no-cr | --no-c | -n)
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503 oldincludedir=$ac_optarg ;;
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508 prefix=$ac_optarg ;;
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515 program_prefix=$ac_optarg ;;
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522 program_suffix=$ac_optarg ;;
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
539 program_transform_name=$ac_optarg ;;
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
549 sbindir=$ac_optarg ;;
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
560 sharedstatedir=$ac_optarg ;;
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
565 site=$ac_optarg ;;
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570 srcdir=$ac_optarg ;;
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577 sysconfdir=$ac_optarg ;;
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
580 ac_prev=target_alias ;;
581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582 target_alias=$ac_optarg ;;
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
589
590 -with-* | --with-*)
591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592 # Reject names that are not valid shell variable names.
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
596 ac_package=`echo $ac_package| sed 's/-/_/g'`
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
602
603 -without-* | --without-*)
604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605 # Reject names that are not valid shell variable names.
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621 x_includes=$ac_optarg ;;
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628 x_libraries=$ac_optarg ;;
629
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
633 ;;
634
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
645 *)
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
660fi
661
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
ac1cb8d3 675 localstatedir libdir includedir oldincludedir infodir mandir
a848cd7e
SC
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
682 esac
683done
684
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
702
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
707
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
739 fi
740fi
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
789
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
7714864e 797\`configure' configures wxWidgets 2.5.3 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
7714864e 863 short | recursive ) echo "Configuration of wxWidgets 2.5.3:";;
a848cd7e
SC
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
77ffb593
JS
871 --enable-monolithic build wxWidgets as single library
872 --enable-plugins build parts of wxWidgets as loadable components
873 --enable-universal use wxWidgets GUI controls instead of native ones
a848cd7e 874 --enable-nanox use NanoX
9f45f08e 875 --disable-gtk2 use GTK+ 1.2 instead of 2.0
a848cd7e
SC
876 --enable-gpe use GNOME PDA Environment features if possible
877 --enable-shared create shared library code
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
880 --enable-stl use STL for containers
881 --enable-omf use OMF object format
882 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
883 --enable-debug_info create code with debugging information
884 --enable-debug_gdb create code with extra GDB debugging information
885 --enable-debug_cntxt use wxDebugContext
886 --enable-mem_tracing create code with memory tracing
887 --enable-profile create code with profiling information
888 --enable-no_rtti create code without RTTI information
889 --enable-no_exceptions create code without C++ exceptions handling
890 --enable-permissive compile code disregarding strict ANSI
891 --enable-no_deps create code without dependency information
77ffb593
JS
892 --enable-compat22 enable wxWidgets 2.2 compatibility
893 --disable-compat24 disable wxWidgets 2.4 compatibility
a848cd7e
SC
894 --enable-rpath=DIR output the rpath flag from wx-config
895 --enable-intl use internationalization system
896 --enable-config use wxConfig (and derived) classes
897 --enable-protocols use wxProtocol and derived classes
898 --enable-ftp use wxFTP (requires wxProtocol
899 --enable-http use wxHTTP (requires wxProtocol
900 --enable-fileproto use wxFileProto class (requires wxProtocol
901 --enable-sockets use socket/network classes
902 --enable-ole use OLE classes (Win32 only)
903 --enable-dataobj use data object classes
904 --enable-ipc use interprocess communication (wxSocket etc.)
905 --enable-apple_ieee use the Apple IEEE codec
906 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
907 --enable-cmdline use wxCmdLineParser class
908 --enable-datetime use wxDateTime class
909 --enable-dialupman use dialup network classes
910 --enable-dynlib use wxLibrary class for DLL loading
911 --enable-dynamicloader use (new) wxDynamicLibrary class
912 --enable-exceptions build exception-safe library
913 --enable-ffile use wxFFile class
914 --enable-file use wxFile class
915 --enable-filesystem use virtual file systems classes
916 --enable-fontmap use font encodings conversion classes
917 --enable-fs_inet use virtual HTTP/FTP filesystems
918 --enable-fs_zip use virtual ZIP filesystems
919 --enable-geometry use geometry class
920 --enable-log use logging system
921 --enable-longlong use wxLongLong class
922 --enable-mimetype use wxMimeTypesManager
923 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
924 --enable-snglinst use wxSingleInstanceChecker class
925 --enable-streams use wxStream etc classes
926 --enable-std_iostreams use standard C++ stream classes
927 --enable-stopwatch use wxStopWatch class
928 --enable-sysoptions use wxSystemOptions
929 --enable-textbuf use wxTextBuffer class
930 --enable-textfile use wxTextFile class
931 --enable-timer use wxTimer class
932 --enable-unicode compile wxString with Unicode support
933 --enable-sound use wxSound class
77ffb593 934 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 935 --enable-zipstream use wxZipInputStream
a848cd7e
SC
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
9a8f0513 947 --enable-xrc use XRC resources sub-library
a848cd7e
SC
948 --enable-constraints use layout-constraints system
949 --enable-printarch use printing architecture
950 --enable-mdi use multiple document interface architecture
8a7b1113 951 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
952 --enable-loggui use standard GUI logger
953 --enable-logwin use wxLogWindow
954 --enable-logdialog use wxLogDialog
646b6ec1 955 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
956 --enable-postscript use wxPostscriptDC device context (default for gtk+)
957 --enable-prologio not available; see contrib
958 --enable-resources not available; see contrib
959 --enable-clipboard use wxClipboard class
960 --enable-dnd use Drag'n'Drop classes
961 --enable-metafile use win32 metafiles
962 --enable-controls use all usual controls
963 --enable-accel use accelerators
964 --enable-button use wxButton class
965 --enable-bmpbutton use wxBitmapButton class
966 --enable-calendar use wxCalendarCtrl class
967 --enable-caret use wxCaret class
968 --enable-checkbox use wxCheckBox class
969 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
970 --enable-choice use wxChoice class
92bbdbcd 971 --enable-choicebook use wxChoicebook class
a848cd7e
SC
972 --enable-combobox use wxComboBox class
973 --enable-display use wxDisplay class
974 --enable-gauge use wxGauge class
975 --enable-grid use wxGrid class
976 --enable-imaglist use wxImageList class
977 --enable-listbook use wxListbook class
978 --enable-listbox use wxListBox class
979 --enable-listctrl use wxListCtrl class
980 --enable-notebook use wxNotebook class
981 --enable-radiobox use wxRadioBox class
982 --enable-radiobtn use wxRadioButton class
983 --enable-sash use wxSashWindow class
984 --enable-scrollbar use wxScrollBar class and scrollable windows
985 --enable-slider use wxSlider class
986 --enable-spinbtn use wxSpinButton class
987 --enable-spinctrl use wxSpinCtrl class
988 --enable-splitter use wxSplitterWindow class
989 --enable-statbmp use wxStaticBitmap class
990 --enable-statbox use wxStaticBox class
991 --enable-statline use wxStaticLine class
992 --enable-stattext use wxStaticText class
993 --enable-statusbar use wxStatusBar class
994 --enable-tabdialog use wxTabControl class
995 --enable-textctrl use wxTextCtrl class
996 --enable-togglebtn use wxToggleButton class
997 --enable-toolbar use wxToolBar class
998 --enable-tbarnative use native wxToolBar class
999 --enable-tbarsmpl use wxToolBarSimple class
1000 --enable-treectrl use wxTreeCtrl class
1001 --enable-tipwindow use wxTipWindow class
1002 --enable-popupwin use wxPopUpWindow class
1003 --enable-commondlg use all common dialogs
1004 --enable-choicedlg use wxChoiceDialog
1005 --enable-coldlg use wxColourDialog
1006 --enable-filedlg use wxFileDialog
1007 --enable-finddlg use wxFindReplaceDialog
1008 --enable-fontdlg use wxFontDialog
1009 --enable-dirdlg use wxDirDialog
1010 --enable-msgdlg use wxMessageDialog
1011 --enable-numberdlg use wxNumberEntryDialog
1012 --enable-splash use wxSplashScreen
1013 --enable-textdlg use wxTextDialog
1014 --enable-tipdlg use startup tips
1015 --enable-progressdlg use wxProgressDialog
1016 --enable-wizarddlg use wxWizard
1017 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1018 --enable-miniframe use wxMiniFrame class
1019 --enable-tooltips use wxToolTip class
1020 --enable-splines use spline drawing code
1021 --enable-validators use wxValidator and derived classes
1022 --enable-busyinfo use wxBusyInfo
1023 --enable-joystick use wxJoystick (Linux only)
1024 --enable-metafiles use wxMetaFile (Windows only)
1025 --enable-dragimage use wxDragImage
1026 --enable-accessibility enable accessibility support
1027 --enable-palette use wxPalette class
1028 --enable-image use wxImage class
1029 --enable-gif use gif images (GIF file format)
1030 --enable-pcx use pcx images (PCX file format)
1031 --enable-iff use iff images (IFF file format)
1032 --enable-pnm use pnm images (PNM file format)
1033 --enable-xpm use xpm images (XPM file format)
1034 --enable-icocur use Windows ICO and CUR formats
77ffb593 1035 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1036 --enable-vendor=VENDOR vendor name (win32 DLL only)
1037 --disable-largefile omit support for large files
1038 --disable-gtktest do not try to compile and run a test GTK+ program
1039 --disable-gtktest Do not try to compile and run a test GTK program
1040 --disable-sdltest Do not try to compile and run a test SDL program
1041 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1042 --disable-precomp-headers
1043 don't use precompiled headers even if compiler can
a848cd7e
SC
1044
1045Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1048 --with-gtk use GTK+
1049 --with-motif use Motif/Lesstif
1050 --with-mac use Mac OS X
1051 --with-cocoa use Cocoa
1052 --with-wine use Wine
1053 --with-msw use MS-Windows
1054 --with-pm use OS/2 Presentation Manager
1055 --with-mgl use SciTech MGL
1056 --with-microwin use MicroWindows
1057 --with-x11 use X11
1058 --with-libpng use libpng (PNG image format)
1059 --with-libjpeg use libjpeg (JPEG file format)
1060 --with-libtiff use libtiff (TIFF file format)
1061 --with-libxpm use libxpm (XPM file format)
1062 --with-libmspack use libmspack (CHM help files loading)
1063 --with-sdl use SDL for audio on Unix
1064 --with-opengl use OpenGL (or Mesa)
1065 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1066 --with-regex enable support for wxRegEx class
1067 --with-zlib use zlib for LZW compression
1068 --with-odbc use the IODBC and wxODBC classes
1069 --with-expat enable XML support using expat parser
ceec2216 1070 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1071 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1072 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1073 --with-x use the X Window System
1074 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1075 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1076 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1077 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1078 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1079
1080Some influential environment variables:
dcc1b6ad
VS
1081 CC C compiler command
1082 CFLAGS C compiler flags
1083 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1084 nonstandard directory <lib dir>
1085 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1086 headers in a nonstandard directory <include dir>
1087 CPP C preprocessor
1088 CXX C++ compiler command
1089 CXXFLAGS C++ compiler flags
1090 CXXCPP C++ preprocessor
a848cd7e
SC
1091
1092Use these variables to override the choices made by `configure' or to help
1093it to find libraries and programs with nonstandard names/locations.
1094
77ffb593 1095Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1096_ACEOF
1097fi
1098
1099if test "$ac_init_help" = "recursive"; then
1100 # If there are subdirs, report their specific --help.
1101 ac_popdir=`pwd`
1102 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1103 test -d $ac_dir || continue
1104 ac_builddir=.
1105
1106if test "$ac_dir" != .; then
1107 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1108 # A "../" for each directory in $ac_dir_suffix.
1109 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1110else
1111 ac_dir_suffix= ac_top_builddir=
1112fi
1113
1114case $srcdir in
1115 .) # No --srcdir option. We are building in place.
1116 ac_srcdir=.
1117 if test -z "$ac_top_builddir"; then
1118 ac_top_srcdir=.
1119 else
1120 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1121 fi ;;
1122 [\\/]* | ?:[\\/]* ) # Absolute path.
1123 ac_srcdir=$srcdir$ac_dir_suffix;
1124 ac_top_srcdir=$srcdir ;;
1125 *) # Relative path.
1126 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1127 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1128esac
ac1cb8d3
VS
1129
1130# Do not use `cd foo && pwd` to compute absolute paths, because
1131# the directories may not exist.
1132case `pwd` in
1133.) ac_abs_builddir="$ac_dir";;
1134*)
1135 case "$ac_dir" in
1136 .) ac_abs_builddir=`pwd`;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1138 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_top_builddir=${ac_top_builddir}.;;
1143*)
1144 case ${ac_top_builddir}. in
1145 .) ac_abs_top_builddir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1147 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_srcdir=$ac_srcdir;;
1152*)
1153 case $ac_srcdir in
1154 .) ac_abs_srcdir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1156 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1157 esac;;
1158esac
1159case $ac_abs_builddir in
1160.) ac_abs_top_srcdir=$ac_top_srcdir;;
1161*)
1162 case $ac_top_srcdir in
1163 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1165 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1166 esac;;
1167esac
a848cd7e
SC
1168
1169 cd $ac_dir
1170 # Check for guested configure; otherwise get Cygnus style configure.
1171 if test -f $ac_srcdir/configure.gnu; then
1172 echo
1173 $SHELL $ac_srcdir/configure.gnu --help=recursive
1174 elif test -f $ac_srcdir/configure; then
1175 echo
1176 $SHELL $ac_srcdir/configure --help=recursive
1177 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1178 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1179 echo
1180 $ac_configure --help
1181 else
1182 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1183 fi
7714864e 1184 cd "$ac_popdir"
a848cd7e
SC
1185 done
1186fi
1187
1188test -n "$ac_init_help" && exit 0
1189if $ac_init_version; then
1190 cat <<\_ACEOF
7714864e 1191wxWidgets configure 2.5.3
ac1cb8d3 1192generated by GNU Autoconf 2.59
a848cd7e 1193
ac1cb8d3 1194Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1195This configure script is free software; the Free Software Foundation
1196gives unlimited permission to copy, distribute and modify it.
1197_ACEOF
1198 exit 0
1199fi
1200exec 5>config.log
1201cat >&5 <<_ACEOF
1202This file contains any messages produced by compilers while
1203running configure, to aid debugging if configure makes a mistake.
1204
7714864e 1205It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1206generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1207
1208 $ $0 $@
1209
1210_ACEOF
1211{
1212cat <<_ASUNAME
1213## --------- ##
1214## Platform. ##
1215## --------- ##
1216
1217hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1218uname -m = `(uname -m) 2>/dev/null || echo unknown`
1219uname -r = `(uname -r) 2>/dev/null || echo unknown`
1220uname -s = `(uname -s) 2>/dev/null || echo unknown`
1221uname -v = `(uname -v) 2>/dev/null || echo unknown`
1222
1223/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1224/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1225
1226/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1227/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1228/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1229hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1230/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1231/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1232/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1233
1234_ASUNAME
1235
1236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1237for as_dir in $PATH
1238do
1239 IFS=$as_save_IFS
1240 test -z "$as_dir" && as_dir=.
1241 echo "PATH: $as_dir"
1242done
1243
1244} >&5
1245
1246cat >&5 <<_ACEOF
1247
1248
1249## ----------- ##
1250## Core tests. ##
1251## ----------- ##
1252
1253_ACEOF
1254
1255
1256# Keep a trace of the command line.
1257# Strip out --no-create and --no-recursion so they do not pile up.
1258# Strip out --silent because we don't want to record it for future runs.
1259# Also quote any args containing shell meta-characters.
1260# Make two passes to allow for proper duplicate-argument suppression.
1261ac_configure_args=
1262ac_configure_args0=
1263ac_configure_args1=
1264ac_sep=
1265ac_must_keep_next=false
1266for ac_pass in 1 2
1267do
1268 for ac_arg
1269 do
1270 case $ac_arg in
1271 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1272 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1273 | -silent | --silent | --silen | --sile | --sil)
1274 continue ;;
1275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1277 esac
1278 case $ac_pass in
1279 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1280 2)
1281 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1282 if test $ac_must_keep_next = true; then
ac1cb8d3 1283 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1284 else
ac1cb8d3
VS
1285 case $ac_arg in
1286 *=* | --config-cache | -C | -disable-* | --disable-* \
1287 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1288 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1289 | -with-* | --with-* | -without-* | --without-* | --x)
1290 case "$ac_configure_args0 " in
1291 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1292 esac
1293 ;;
1294 -* ) ac_must_keep_next=true ;;
1295 esac
a848cd7e
SC
1296 fi
1297 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1298 # Get rid of the leading space.
1299 ac_sep=" "
1300 ;;
1301 esac
1302 done
1303done
1304$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1305$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1306
1307# When interrupted or exit'd, cleanup temporary files, and complete
1308# config.log. We remove comments because anyway the quotes in there
1309# would cause problems or look ugly.
1310# WARNING: Be sure not to use single quotes in there, as some shells,
1311# such as our DU 5.0 friend, will then `close' the trap.
1312trap 'exit_status=$?
1313 # Save into config.log some information that might help in debugging.
1314 {
1315 echo
1316
1317 cat <<\_ASBOX
1318## ---------------- ##
1319## Cache variables. ##
1320## ---------------- ##
1321_ASBOX
1322 echo
1323 # The following way of writing the cache mishandles newlines in values,
1324{
1325 (set) 2>&1 |
1326 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1327 *ac_space=\ *)
1328 sed -n \
ac1cb8d3
VS
1329 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1331 ;;
1332 *)
1333 sed -n \
ac1cb8d3 1334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1335 ;;
1336 esac;
1337}
1338 echo
1339
1340 cat <<\_ASBOX
1341## ----------------- ##
1342## Output variables. ##
1343## ----------------- ##
1344_ASBOX
1345 echo
1346 for ac_var in $ac_subst_vars
1347 do
1348 eval ac_val=$`echo $ac_var`
1349 echo "$ac_var='"'"'$ac_val'"'"'"
1350 done | sort
1351 echo
1352
1353 if test -n "$ac_subst_files"; then
1354 cat <<\_ASBOX
1355## ------------- ##
1356## Output files. ##
1357## ------------- ##
1358_ASBOX
1359 echo
1360 for ac_var in $ac_subst_files
1361 do
1362 eval ac_val=$`echo $ac_var`
ac1cb8d3 1363 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1364 done | sort
1365 echo
1366 fi
1367
1368 if test -s confdefs.h; then
1369 cat <<\_ASBOX
1370## ----------- ##
1371## confdefs.h. ##
1372## ----------- ##
1373_ASBOX
1374 echo
1375 sed "/^$/d" confdefs.h | sort
1376 echo
1377 fi
1378 test "$ac_signal" != 0 &&
1379 echo "$as_me: caught signal $ac_signal"
1380 echo "$as_me: exit $exit_status"
1381 } >&5
ac1cb8d3 1382 rm -f core *.core &&
a848cd7e
SC
1383 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1384 exit $exit_status
1385 ' 0
1386for ac_signal in 1 2 13 15; do
1387 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1388done
1389ac_signal=0
1390
1391# confdefs.h avoids OS command line length limits that DEFS can exceed.
1392rm -rf conftest* confdefs.h
1393# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1394echo >confdefs.h
1395
1396# Predefined preprocessor variables.
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_NAME "$PACKAGE_NAME"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_VERSION "$PACKAGE_VERSION"
1410_ACEOF
1411
1412
1413cat >>confdefs.h <<_ACEOF
1414#define PACKAGE_STRING "$PACKAGE_STRING"
1415_ACEOF
1416
1417
1418cat >>confdefs.h <<_ACEOF
1419#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1420_ACEOF
1421
1422
1423# Let the site file select an alternate cache file if it wants to.
1424# Prefer explicitly selected file to automatically selected ones.
1425if test -z "$CONFIG_SITE"; then
1426 if test "x$prefix" != xNONE; then
1427 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1428 else
1429 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1430 fi
1431fi
1432for ac_site_file in $CONFIG_SITE; do
1433 if test -r "$ac_site_file"; then
1434 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1435echo "$as_me: loading site script $ac_site_file" >&6;}
1436 sed 's/^/| /' "$ac_site_file" >&5
1437 . "$ac_site_file"
1438 fi
1439done
1440
1441if test -r "$cache_file"; then
1442 # Some versions of bash will fail to source /dev/null (special
1443 # files actually), so we avoid doing that.
1444 if test -f "$cache_file"; then
1445 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1446echo "$as_me: loading cache $cache_file" >&6;}
1447 case $cache_file in
1448 [\\/]* | ?:[\\/]* ) . $cache_file;;
1449 *) . ./$cache_file;;
1450 esac
1451 fi
1452else
1453 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1454echo "$as_me: creating cache $cache_file" >&6;}
1455 >$cache_file
1456fi
1457
1458# Check that the precious variables saved in the cache have kept the same
1459# value.
1460ac_cache_corrupted=false
1461for ac_var in `(set) 2>&1 |
ac1cb8d3 1462 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1463 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1464 eval ac_new_set=\$ac_env_${ac_var}_set
1465 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1466 eval ac_new_val="\$ac_env_${ac_var}_value"
1467 case $ac_old_set,$ac_new_set in
1468 set,)
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1470echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1472 ,set)
1473 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1474echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1475 ac_cache_corrupted=: ;;
1476 ,);;
1477 *)
1478 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1479 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1480echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1481 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1482echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1483 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1484echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1485 ac_cache_corrupted=:
a848cd7e
SC
1486 fi;;
1487 esac
1488 # Pass precious variables to config.status.
1489 if test "$ac_new_set" = set; then
1490 case $ac_new_val in
1491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1492 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1493 *) ac_arg=$ac_var=$ac_new_val ;;
1494 esac
1495 case " $ac_configure_args " in
1496 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1497 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1498 esac
1499 fi
1500done
1501if $ac_cache_corrupted; then
1502 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1503echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1504 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1505echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1506 { (exit 1); exit 1; }; }
1507fi
1508
1509ac_ext=c
1510ac_cpp='$CPP $CPPFLAGS'
1511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1513ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1540
1541
1542
1543
1544ac_aux_dir=
1545for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1546 if 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/install.sh; then
1551 ac_aux_dir=$ac_dir
1552 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 break
1554 elif test -f $ac_dir/shtool; then
1555 ac_aux_dir=$ac_dir
1556 ac_install_sh="$ac_aux_dir/shtool install -c"
1557 break
1558 fi
1559done
1560if test -z "$ac_aux_dir"; then
1561 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1562echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1563 { (exit 1); exit 1; }; }
1564fi
1565ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1566ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1567ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568
1569# Make sure we can run config.sub.
1570$ac_config_sub sun4 >/dev/null 2>&1 ||
1571 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1572echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1573 { (exit 1); exit 1; }; }
1574
1575echo "$as_me:$LINENO: checking build system type" >&5
1576echo $ECHO_N "checking build system type... $ECHO_C" >&6
1577if test "${ac_cv_build+set}" = set; then
1578 echo $ECHO_N "(cached) $ECHO_C" >&6
1579else
1580 ac_cv_build_alias=$build_alias
1581test -z "$ac_cv_build_alias" &&
1582 ac_cv_build_alias=`$ac_config_guess`
1583test -z "$ac_cv_build_alias" &&
1584 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1585echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1586 { (exit 1); exit 1; }; }
1587ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1589echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1591
1592fi
1593echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1594echo "${ECHO_T}$ac_cv_build" >&6
1595build=$ac_cv_build
1596build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1599
1600
1601echo "$as_me:$LINENO: checking host system type" >&5
1602echo $ECHO_N "checking host system type... $ECHO_C" >&6
1603if test "${ac_cv_host+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 ac_cv_host_alias=$host_alias
1607test -z "$ac_cv_host_alias" &&
1608 ac_cv_host_alias=$ac_cv_build_alias
1609ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1611echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1613
1614fi
1615echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1616echo "${ECHO_T}$ac_cv_host" >&6
1617host=$ac_cv_host
1618host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1621
1622
1623echo "$as_me:$LINENO: checking target system type" >&5
1624echo $ECHO_N "checking target system type... $ECHO_C" >&6
1625if test "${ac_cv_target+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_target_alias=$target_alias
1629test "x$ac_cv_target_alias" = "x" &&
1630 ac_cv_target_alias=$ac_cv_host_alias
1631ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1632 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1633echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1634 { (exit 1); exit 1; }; }
1635
1636fi
1637echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1638echo "${ECHO_T}$ac_cv_target" >&6
1639target=$ac_cv_target
1640target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1641target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1642target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1643
1644
1645# The aliases save the names the user supplied, while $host etc.
1646# will get canonicalized.
1647test -n "$target_alias" &&
1648 test "$program_prefix$program_suffix$program_transform_name" = \
1649 NONENONEs,x,x, &&
1650 program_prefix=${target_alias}-
1651
1652
1653
ceec2216
RL
1654wx_major_version_number=2
1655wx_minor_version_number=5
7714864e
RL
1656wx_release_number=3
1657wx_subrelease_number=0
a848cd7e 1658
ceec2216
RL
1659WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1660WX_VERSION=$WX_RELEASE.$wx_release_number
1661WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1662
ceec2216 1663WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1664
7714864e 1665WX_CURRENT=3
a848cd7e
SC
1666WX_REVISION=0
1667WX_AGE=0
1668
1669
1670
1671USE_UNIX=1
1672USE_OS2=0
1673USE_WIN32=0
1674USE_DOS=0
1675USE_BEOS=0
1676USE_MAC=0
1677
1678USE_AIX=
1679USE_BSD= USE_DARWIN= USE_FREEBSD=
1680USE_GNU= USE_HPUX=
1681USE_LINUX=
1682USE_NETBSD=
1683USE_OPENBSD=
1684USE_OSF= USE_SGI=
1685USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1686USE_ULTRIX=
1687USE_UNIXWARE=
1688
1689USE_ALPHA=
1690
1691NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1692
1693ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1694
1695DEFAULT_wxUSE_COCOA=0
1696DEFAULT_wxUSE_GTK=0
1697DEFAULT_wxUSE_MAC=0
1698DEFAULT_wxUSE_MGL=0
1699DEFAULT_wxUSE_MICROWIN=0
1700DEFAULT_wxUSE_MOTIF=0
1701DEFAULT_wxUSE_MSW=0
1702DEFAULT_wxUSE_PM=0
1703DEFAULT_wxUSE_X11=0
1704
1705DEFAULT_DEFAULT_wxUSE_COCOA=0
1706DEFAULT_DEFAULT_wxUSE_GTK=0
1707DEFAULT_DEFAULT_wxUSE_MAC=0
1708DEFAULT_DEFAULT_wxUSE_MGL=0
1709DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1710DEFAULT_DEFAULT_wxUSE_MOTIF=0
1711DEFAULT_DEFAULT_wxUSE_MSW=0
1712DEFAULT_DEFAULT_wxUSE_PM=0
1713DEFAULT_DEFAULT_wxUSE_X11=0
1714
1715PROGRAM_EXT=
1716SO_SUFFIX=so
1717SAMPLES_RPATH_FLAG=
1718SAMPLES_RPATH_POSTLINK=
1719
1720case "${host}" in
1721 *-hp-hpux* )
1722 USE_HPUX=1
1723 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1724 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1725 SO_SUFFIX=sl
1726 cat >>confdefs.h <<\_ACEOF
1727#define __HPUX__ 1
1728_ACEOF
1729
1730 ;;
1731 *-*-linux* )
1732 USE_LINUX=1
1733 cat >>confdefs.h <<\_ACEOF
1734#define __LINUX__ 1
1735_ACEOF
1736
1737 TMP=`uname -m`
1738 if test "x$TMP" = "xalpha"; then
1739 USE_ALPHA=1
1740 cat >>confdefs.h <<\_ACEOF
1741#define __ALPHA__ 1
1742_ACEOF
1743
1744 fi
1745 DEFAULT_DEFAULT_wxUSE_GTK=1
1746 ;;
1747 *-*-gnu* | *-*-k*bsd*-gnu )
1748 USE_GNU=1
1749 TMP=`uname -m`
1750 if test "x$TMP" = "xalpha"; then
1751 USE_ALPHA=1
1752 cat >>confdefs.h <<\_ACEOF
1753#define __ALPHA__ 1
1754_ACEOF
1755
1756 fi
1757 DEFAULT_DEFAULT_wxUSE_GTK=1
1758 ;;
1759 *-*-irix5* | *-*-irix6* )
1760 USE_SGI=1
1761 USE_SVR4=1
1762 cat >>confdefs.h <<\_ACEOF
1763#define __SGI__ 1
1764_ACEOF
1765
1766 cat >>confdefs.h <<\_ACEOF
1767#define __SVR4__ 1
1768_ACEOF
1769
1770 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1771 ;;
1772 *-*-solaris2* )
1773 USE_SUN=1
1774 USE_SOLARIS=1
1775 USE_SVR4=1
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SUN__ 1
1778_ACEOF
1779
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SOLARIS__ 1
1782_ACEOF
1783
1784 cat >>confdefs.h <<\_ACEOF
1785#define __SVR4__ 1
1786_ACEOF
1787
1788 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1789 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1790 ;;
1791 *-*-sunos4* )
1792 USE_SUN=1
1793 USE_SUNOS=1
1794 USE_BSD=1
1795 cat >>confdefs.h <<\_ACEOF
1796#define __SUN__ 1
1797_ACEOF
1798
1799 cat >>confdefs.h <<\_ACEOF
1800#define __SUNOS__ 1
1801_ACEOF
1802
1803 cat >>confdefs.h <<\_ACEOF
1804#define __BSD__ 1
1805_ACEOF
1806
1807 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1808 ;;
1809 *-*-freebsd*)
1810 USE_BSD=1
1811 USE_FREEBSD=1
1812 cat >>confdefs.h <<\_ACEOF
1813#define __FREEBSD__ 1
1814_ACEOF
1815
1816 cat >>confdefs.h <<\_ACEOF
1817#define __BSD__ 1
1818_ACEOF
1819
1820 DEFAULT_DEFAULT_wxUSE_GTK=1
1821 ;;
1822 *-*-openbsd*)
1823 USE_BSD=1
1824 USE_OPENBSD=1
1825 cat >>confdefs.h <<\_ACEOF
1826#define __OPENBSD__ 1
1827_ACEOF
1828
1829 cat >>confdefs.h <<\_ACEOF
1830#define __BSD__ 1
1831_ACEOF
1832
1833 DEFAULT_DEFAULT_wxUSE_GTK=1
1834 ;;
1835 *-*-netbsd*)
1836 USE_BSD=1
1837 USE_NETBSD=1
1838 cat >>confdefs.h <<\_ACEOF
1839#define __NETBSD__ 1
1840_ACEOF
1841
1842 cat >>confdefs.h <<\_ACEOF
1843#define __BSD__ 1
1844_ACEOF
1845
1846 DEFAULT_DEFAULT_wxUSE_GTK=1
1847 ;;
1848 *-*-osf* )
1849 USE_ALPHA=1
1850 USE_OSF=1
1851 cat >>confdefs.h <<\_ACEOF
1852#define __ALPHA__ 1
1853_ACEOF
1854
1855 cat >>confdefs.h <<\_ACEOF
1856#define __OSF__ 1
1857_ACEOF
1858
1859 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1860 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1861 ;;
1862 *-*-dgux5* )
1863 USE_ALPHA=1
1864 USE_SVR4=1
1865 cat >>confdefs.h <<\_ACEOF
1866#define __ALPHA__ 1
1867_ACEOF
1868
1869 cat >>confdefs.h <<\_ACEOF
1870#define __SVR4__ 1
1871_ACEOF
1872
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 ;;
1875 *-*-sysv5* )
1876 USE_SYSV=1
1877 USE_SVR4=1
1878 cat >>confdefs.h <<\_ACEOF
1879#define __SYSV__ 1
1880_ACEOF
1881
1882 cat >>confdefs.h <<\_ACEOF
1883#define __SVR4__ 1
1884_ACEOF
1885
1886 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1887 ;;
1888 *-*-aix* )
1889 USE_AIX=1
1890 USE_SYSV=1
1891 USE_SVR4=1
1892 SO_SUFFIX=a
1893 cat >>confdefs.h <<\_ACEOF
1894#define __AIX__ 1
1895_ACEOF
1896
1897 cat >>confdefs.h <<\_ACEOF
1898#define __SYSV__ 1
1899_ACEOF
1900
1901 cat >>confdefs.h <<\_ACEOF
1902#define __SVR4__ 1
1903_ACEOF
1904
1905 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1906 ;;
1907
1908 *-*-*UnixWare*)
1909 USE_SYSV=1
1910 USE_SVR4=1
1911 USE_UNIXWARE=1
1912 cat >>confdefs.h <<\_ACEOF
1913#define __UNIXWARE__ 1
1914_ACEOF
1915
1916 ;;
1917
1918 *-*-cygwin* | *-*-mingw32* )
1919 SO_SUFFIX=dll
1920 PROGRAM_EXT=".exe"
1921 RESCOMP=windres
1922 DEFAULT_DEFAULT_wxUSE_MSW=1
1923 ;;
1924
1925 *-pc-msdosdjgpp )
1926 USE_UNIX=0
1927 USE_DOS=1
1928 cat >>confdefs.h <<\_ACEOF
1929#define __DOS__ 1
1930_ACEOF
1931
1932 PROGRAM_EXT=".exe"
1933 DEFAULT_DEFAULT_wxUSE_MGL=1
1934 LIBS="$LIBS -lstdc++"
1935 ;;
1936
1937 *-pc-os2_emx | *-pc-os2-emx )
1938 cat >>confdefs.h <<\_ACEOF
1939#define __EMX__ 1
1940_ACEOF
1941
1942 USE_OS2=1
1943 cat >>confdefs.h <<\_ACEOF
1944#define __OS2__ 1
1945_ACEOF
1946
1947 PROGRAM_EXT=".exe"
1948 DEFAULT_DEFAULT_wxUSE_PM=1
1949 CXX=gcc
1950 LDFLAGS="$LDFLAGS -Zcrtdll"
1951 ac_executable_extensions=".exe"
1952 export ac_executable_extensions
1953 ac_save_IFS="$IFS"
1954 IFS='\\'
1955 ac_TEMP_PATH=
1956 for ac_dir in $PATH; do
1957 IFS=$ac_save_IFS
1958 if test -z "$ac_TEMP_PATH"; then
1959 ac_TEMP_PATH="$ac_dir"
1960 else
1961 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1962 fi
1963 done
1964 export PATH="$ac_TEMP_PATH"
1965 unset ac_TEMP_PATH
1966 ;;
1967
1968 powerpc-*-darwin* )
1969 USE_BSD=1
1970 USE_DARWIN=1
1971 SO_SUFFIX=dylib
1972 cat >>confdefs.h <<\_ACEOF
1973#define __BSD__ 1
1974_ACEOF
1975
1976 cat >>confdefs.h <<\_ACEOF
1977#define __DARWIN__ 1
1978_ACEOF
1979
1980 cat >>confdefs.h <<\_ACEOF
1981#define __POWERPC__ 1
1982_ACEOF
1983
1984 cat >>confdefs.h <<\_ACEOF
1985#define TARGET_CARBON 1
1986_ACEOF
1987
1988 DEFAULT_DEFAULT_wxUSE_MAC=1
1989 ;;
1990
1991 *-*-beos* )
1992 USE_BEOS=1
1993 cat >>confdefs.h <<\_ACEOF
1994#define __BEOS__ 1
1995_ACEOF
1996
1997 ;;
1998
1999 *)
2000 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2001echo "$as_me: error: unknown system type ${host}." >&2;}
2002 { (exit 1); exit 1; }; }
2003esac
2004
2005
2006
2007
2008 wx_arg_cache_file="configarg.cache"
2009 echo "loading argument cache $wx_arg_cache_file"
2010 rm -f ${wx_arg_cache_file}.tmp
2011 touch ${wx_arg_cache_file}.tmp
2012 touch ${wx_arg_cache_file}
2013
2014
2015DEBUG_CONFIGURE=0
2016if test $DEBUG_CONFIGURE = 1; then
2017 DEFAULT_wxUSE_UNIVERSAL=no
2018 DEFAULT_wxUSE_STL=no
2019
2020 DEFAULT_wxUSE_NANOX=no
2021
2022 DEFAULT_wxUSE_THREADS=yes
2023
2024 DEFAULT_wxUSE_SHARED=yes
2025 DEFAULT_wxUSE_OPTIMISE=no
2026 DEFAULT_wxUSE_PROFILE=no
2027 DEFAULT_wxUSE_NO_DEPS=no
2028 DEFAULT_wxUSE_NO_RTTI=no
2029 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2030 DEFAULT_wxUSE_PERMISSIVE=no
2031 DEFAULT_wxUSE_DEBUG_FLAG=yes
2032 DEFAULT_wxUSE_DEBUG_INFO=yes
2033 DEFAULT_wxUSE_DEBUG_GDB=yes
2034 DEFAULT_wxUSE_MEM_TRACING=no
2035 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2036 DEFAULT_wxUSE_DMALLOC=no
2037 DEFAULT_wxUSE_APPLE_IEEE=no
2038
2039 DEFAULT_wxUSE_EXCEPTIONS=no
2040 DEFAULT_wxUSE_LOG=yes
2041 DEFAULT_wxUSE_LOGWINDOW=no
2042 DEFAULT_wxUSE_LOGGUI=no
2043 DEFAULT_wxUSE_LOGDIALOG=no
2044
2045 DEFAULT_wxUSE_GUI=yes
2046 DEFAULT_wxUSE_CONTROLS=no
2047
2048 DEFAULT_wxUSE_REGEX=no
2049 DEFAULT_wxUSE_XML=no
2050 DEFAULT_wxUSE_EXPAT=no
2051 DEFAULT_wxUSE_ZLIB=no
2052 DEFAULT_wxUSE_LIBPNG=no
2053 DEFAULT_wxUSE_LIBJPEG=no
2054 DEFAULT_wxUSE_LIBTIFF=no
2055 DEFAULT_wxUSE_LIBXPM=no
2056 DEFAULT_wxUSE_LIBMSPACK=no
2057 DEFAULT_wxUSE_LIBSDL=no
2058 DEFAULT_wxUSE_ODBC=no
2059 DEFAULT_wxUSE_OPENGL=no
2060
2061 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
2062 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2063 DEFAULT_wxUSE_STD_IOSTREAM=no
2064 DEFAULT_wxUSE_CMDLINE_PARSER=no
2065 DEFAULT_wxUSE_DATETIME=no
2066 DEFAULT_wxUSE_TIMER=no
2067 DEFAULT_wxUSE_STOPWATCH=no
2068 DEFAULT_wxUSE_FILE=no
2069 DEFAULT_wxUSE_FFILE=no
2070 DEFAULT_wxUSE_TEXTBUFFER=no
2071 DEFAULT_wxUSE_TEXTFILE=no
2072 DEFAULT_wxUSE_SOUND=no
2073 DEFAULT_wxUSE_INTL=no
2074 DEFAULT_wxUSE_CONFIG=no
2075 DEFAULT_wxUSE_FONTMAP=no
2076 DEFAULT_wxUSE_STREAMS=no
2077 DEFAULT_wxUSE_SOCKETS=no
2078 DEFAULT_wxUSE_OLE=no
2079 DEFAULT_wxUSE_DATAOBJ=no
2080 DEFAULT_wxUSE_DIALUP_MANAGER=no
2081 DEFAULT_wxUSE_JOYSTICK=no
2082 DEFAULT_wxUSE_DYNLIB_CLASS=no
2083 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2084 DEFAULT_wxUSE_LONGLONG=no
2085 DEFAULT_wxUSE_GEOMETRY=no
2086
2087 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2088 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2089 DEFAULT_wxUSE_POSTSCRIPT=no
2090
2091 DEFAULT_wxUSE_CLIPBOARD=no
2092 DEFAULT_wxUSE_TOOLTIPS=no
2093 DEFAULT_wxUSE_DRAG_AND_DROP=no
2094 DEFAULT_wxUSE_DRAGIMAGE=no
2095 DEFAULT_wxUSE_SPLINES=no
2096
8a7b1113 2097 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2098 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2099 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2100 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2101
2102 DEFAULT_wxUSE_RESOURCES=no
2103 DEFAULT_wxUSE_CONSTRAINTS=no
2104 DEFAULT_wxUSE_IPC=no
2105 DEFAULT_wxUSE_HELP=no
2106 DEFAULT_wxUSE_MS_HTML_HELP=no
2107 DEFAULT_wxUSE_WXHTML_HELP=no
2108 DEFAULT_wxUSE_TREELAYOUT=no
2109 DEFAULT_wxUSE_METAFILE=no
2110 DEFAULT_wxUSE_MIMETYPE=no
2111 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2112 DEFAULT_wxUSE_PROTOCOL=no
2113 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2114 DEFAULT_wxUSE_PROTOCOL_FTP=no
2115 DEFAULT_wxUSE_PROTOCOL_FILE=no
2116 DEFAULT_wxUSE_URL=no
2117
2118 DEFAULT_wxUSE_COMMONDLGS=no
2119 DEFAULT_wxUSE_CHOICEDLG=no
2120 DEFAULT_wxUSE_COLOURDLG=no
2121 DEFAULT_wxUSE_DIRDLG=no
2122 DEFAULT_wxUSE_FILEDLG=no
2123 DEFAULT_wxUSE_FINDREPLDLG=no
2124 DEFAULT_wxUSE_FONTDLG=no
2125 DEFAULT_wxUSE_MSGDLG=no
2126 DEFAULT_wxUSE_NUMBERDLG=no
2127 DEFAULT_wxUSE_TEXTDLG=no
2128 DEFAULT_wxUSE_SPLASH=no
2129 DEFAULT_wxUSE_STARTUP_TIPS=no
2130 DEFAULT_wxUSE_PROGRESSDLG=no
2131 DEFAULT_wxUSE_WIZARDDLG=no
2132
2133 DEFAULT_wxUSE_MENUS=no
2134 DEFAULT_wxUSE_MINIFRAME=no
2135 DEFAULT_wxUSE_HTML=no
9a8f0513 2136 DEFAULT_wxUSE_XRC=no
646b6ec1 2137 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2138 DEFAULT_wxUSE_FILESYSTEM=no
2139 DEFAULT_wxUSE_FS_INET=no
2140 DEFAULT_wxUSE_FS_ZIP=no
2141 DEFAULT_wxUSE_BUSYINFO=no
2142 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2143 DEFAULT_wxUSE_VALIDATORS=no
2144
2145 DEFAULT_wxUSE_ACCEL=no
2146 DEFAULT_wxUSE_BUTTON=no
2147 DEFAULT_wxUSE_BMPBUTTON=no
2148 DEFAULT_wxUSE_CALCTRL=no
2149 DEFAULT_wxUSE_CARET=no
2150 DEFAULT_wxUSE_CHECKBOX=no
2151 DEFAULT_wxUSE_CHECKLST=no
2152 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2153 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2154 DEFAULT_wxUSE_COMBOBOX=no
2155 DEFAULT_wxUSE_DISPLAY=no
2156 DEFAULT_wxUSE_GAUGE=no
2157 DEFAULT_wxUSE_GRID=no
2158 DEFAULT_wxUSE_IMAGLIST=no
2159 DEFAULT_wxUSE_LISTBOOK=no
2160 DEFAULT_wxUSE_LISTBOX=no
2161 DEFAULT_wxUSE_LISTCTRL=no
2162 DEFAULT_wxUSE_NOTEBOOK=no
2163 DEFAULT_wxUSE_RADIOBOX=no
2164 DEFAULT_wxUSE_RADIOBTN=no
2165 DEFAULT_wxUSE_SASH=no
2166 DEFAULT_wxUSE_SCROLLBAR=no
2167 DEFAULT_wxUSE_SLIDER=no
2168 DEFAULT_wxUSE_SPINBTN=no
2169 DEFAULT_wxUSE_SPINCTRL=no
2170 DEFAULT_wxUSE_SPLITTER=no
2171 DEFAULT_wxUSE_STATBMP=no
2172 DEFAULT_wxUSE_STATBOX=no
2173 DEFAULT_wxUSE_STATLINE=no
2174 DEFAULT_wxUSE_STATTEXT=no
2175 DEFAULT_wxUSE_STATUSBAR=yes
2176 DEFAULT_wxUSE_TABDIALOG=no
2177 DEFAULT_wxUSE_TEXTCTRL=no
2178 DEFAULT_wxUSE_TOGGLEBTN=no
2179 DEFAULT_wxUSE_TOOLBAR=no
2180 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2181 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2182 DEFAULT_wxUSE_TREECTRL=no
2183 DEFAULT_wxUSE_POPUPWIN=no
2184 DEFAULT_wxUSE_TIPWINDOW=no
2185
2186 DEFAULT_wxUSE_UNICODE=no
2187 DEFAULT_wxUSE_UNICODE_MSLU=no
2188 DEFAULT_wxUSE_WCSRTOMBS=no
2189
2190 DEFAULT_wxUSE_PALETTE=no
2191 DEFAULT_wxUSE_IMAGE=no
2192 DEFAULT_wxUSE_GIF=no
2193 DEFAULT_wxUSE_PCX=no
2194 DEFAULT_wxUSE_PNM=no
2195 DEFAULT_wxUSE_IFF=no
2196 DEFAULT_wxUSE_XPM=no
2197 DEFAULT_wxUSE_ICO_CUR=no
2198 DEFAULT_wxUSE_ACCESSIBILITY=no
2199
2200 DEFAULT_wxUSE_MONOLITHIC=no
2201 DEFAULT_wxUSE_PLUGINS=no
2202 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2203else
2204 DEFAULT_wxUSE_UNIVERSAL=no
2205 DEFAULT_wxUSE_STL=no
2206
2207 DEFAULT_wxUSE_NANOX=no
2208
2209 DEFAULT_wxUSE_THREADS=yes
2210
2211 DEFAULT_wxUSE_SHARED=yes
2212 DEFAULT_wxUSE_OPTIMISE=yes
2213 DEFAULT_wxUSE_PROFILE=no
2214 DEFAULT_wxUSE_NO_DEPS=no
2215 DEFAULT_wxUSE_NO_RTTI=no
2216 DEFAULT_wxUSE_NO_EXCEPTIONS=no
2217 DEFAULT_wxUSE_PERMISSIVE=no
2218 DEFAULT_wxUSE_DEBUG_FLAG=no
2219 DEFAULT_wxUSE_DEBUG_INFO=no
2220 DEFAULT_wxUSE_DEBUG_GDB=no
2221 DEFAULT_wxUSE_MEM_TRACING=no
2222 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2223 DEFAULT_wxUSE_DMALLOC=no
2224 DEFAULT_wxUSE_APPLE_IEEE=yes
2225
2226 DEFAULT_wxUSE_EXCEPTIONS=yes
2227 DEFAULT_wxUSE_LOG=yes
2228 DEFAULT_wxUSE_LOGWINDOW=yes
2229 DEFAULT_wxUSE_LOGGUI=yes
2230 DEFAULT_wxUSE_LOGDIALOG=yes
2231
2232 DEFAULT_wxUSE_GUI=yes
2233
2234 DEFAULT_wxUSE_REGEX=yes
2235 DEFAULT_wxUSE_XML=yes
2236 DEFAULT_wxUSE_EXPAT=yes
2237 DEFAULT_wxUSE_ZLIB=yes
2238 DEFAULT_wxUSE_LIBPNG=yes
2239 DEFAULT_wxUSE_LIBJPEG=yes
2240 DEFAULT_wxUSE_LIBTIFF=yes
2241 DEFAULT_wxUSE_LIBXPM=yes
2242 DEFAULT_wxUSE_LIBMSPACK=yes
2243 DEFAULT_wxUSE_LIBSDL=no
2244 DEFAULT_wxUSE_ODBC=no
2245 DEFAULT_wxUSE_OPENGL=no
2246
2247 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
2248 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2249 DEFAULT_wxUSE_STD_IOSTREAM=no
2250 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2251 DEFAULT_wxUSE_DATETIME=yes
2252 DEFAULT_wxUSE_TIMER=yes
2253 DEFAULT_wxUSE_STOPWATCH=yes
2254 DEFAULT_wxUSE_FILE=yes
2255 DEFAULT_wxUSE_FFILE=yes
2256 DEFAULT_wxUSE_TEXTBUFFER=yes
2257 DEFAULT_wxUSE_TEXTFILE=yes
2258 DEFAULT_wxUSE_SOUND=yes
2259 DEFAULT_wxUSE_INTL=yes
2260 DEFAULT_wxUSE_CONFIG=yes
2261 DEFAULT_wxUSE_FONTMAP=yes
2262 DEFAULT_wxUSE_STREAMS=yes
2263 DEFAULT_wxUSE_SOCKETS=yes
2264 DEFAULT_wxUSE_OLE=yes
2265 DEFAULT_wxUSE_DATAOBJ=yes
2266 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2267 DEFAULT_wxUSE_JOYSTICK=yes
2268 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2269 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2270 DEFAULT_wxUSE_LONGLONG=yes
2271 DEFAULT_wxUSE_GEOMETRY=yes
2272
2273 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2274 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2275 DEFAULT_wxUSE_POSTSCRIPT=yes
2276
2277 DEFAULT_wxUSE_CLIPBOARD=yes
2278 DEFAULT_wxUSE_TOOLTIPS=yes
2279 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2280 DEFAULT_wxUSE_DRAGIMAGE=yes
2281 DEFAULT_wxUSE_SPLINES=yes
2282
8a7b1113 2283 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2284 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2285 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2286 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2287
2288 DEFAULT_wxUSE_RESOURCES=no
2289 DEFAULT_wxUSE_CONSTRAINTS=yes
2290 DEFAULT_wxUSE_IPC=yes
2291 DEFAULT_wxUSE_HELP=yes
2292 DEFAULT_wxUSE_MS_HTML_HELP=yes
2293 DEFAULT_wxUSE_WXHTML_HELP=yes
2294 DEFAULT_wxUSE_TREELAYOUT=yes
2295 DEFAULT_wxUSE_METAFILE=yes
2296 DEFAULT_wxUSE_MIMETYPE=yes
2297 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2298 DEFAULT_wxUSE_PROTOCOL=yes
2299 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2300 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2301 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2302 DEFAULT_wxUSE_URL=yes
2303
2304 DEFAULT_wxUSE_COMMONDLGS=yes
2305 DEFAULT_wxUSE_CHOICEDLG=yes
2306 DEFAULT_wxUSE_COLOURDLG=yes
2307 DEFAULT_wxUSE_DIRDLG=yes
2308 DEFAULT_wxUSE_FILEDLG=yes
2309 DEFAULT_wxUSE_FINDREPLDLG=yes
2310 DEFAULT_wxUSE_FONTDLG=yes
2311 DEFAULT_wxUSE_MSGDLG=yes
2312 DEFAULT_wxUSE_NUMBERDLG=yes
2313 DEFAULT_wxUSE_TEXTDLG=yes
2314 DEFAULT_wxUSE_SPLASH=yes
2315 DEFAULT_wxUSE_STARTUP_TIPS=yes
2316 DEFAULT_wxUSE_PROGRESSDLG=yes
2317 DEFAULT_wxUSE_WIZARDDLG=yes
2318
2319 DEFAULT_wxUSE_MENUS=yes
2320 DEFAULT_wxUSE_MINIFRAME=yes
2321 DEFAULT_wxUSE_HTML=yes
9a8f0513 2322 DEFAULT_wxUSE_XRC=yes
646b6ec1 2323 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2324 DEFAULT_wxUSE_FILESYSTEM=yes
2325 DEFAULT_wxUSE_FS_INET=yes
2326 DEFAULT_wxUSE_FS_ZIP=yes
2327 DEFAULT_wxUSE_BUSYINFO=yes
2328 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2329 DEFAULT_wxUSE_VALIDATORS=yes
2330
2331 DEFAULT_wxUSE_ACCEL=yes
2332 DEFAULT_wxUSE_BUTTON=yes
2333 DEFAULT_wxUSE_BMPBUTTON=yes
2334 DEFAULT_wxUSE_CALCTRL=yes
2335 DEFAULT_wxUSE_CARET=yes
2336 DEFAULT_wxUSE_CHECKBOX=yes
2337 DEFAULT_wxUSE_CHECKLST=yes
2338 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2339 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2340 DEFAULT_wxUSE_COMBOBOX=yes
2341 DEFAULT_wxUSE_DISPLAY=yes
2342 DEFAULT_wxUSE_GAUGE=yes
2343 DEFAULT_wxUSE_GRID=yes
2344 DEFAULT_wxUSE_IMAGLIST=yes
2345 DEFAULT_wxUSE_LISTBOOK=yes
2346 DEFAULT_wxUSE_LISTBOX=yes
2347 DEFAULT_wxUSE_LISTCTRL=yes
2348 DEFAULT_wxUSE_NOTEBOOK=yes
2349 DEFAULT_wxUSE_RADIOBOX=yes
2350 DEFAULT_wxUSE_RADIOBTN=yes
2351 DEFAULT_wxUSE_SASH=yes
2352 DEFAULT_wxUSE_SCROLLBAR=yes
2353 DEFAULT_wxUSE_SLIDER=yes
2354 DEFAULT_wxUSE_SPINBTN=yes
2355 DEFAULT_wxUSE_SPINCTRL=yes
2356 DEFAULT_wxUSE_SPLITTER=yes
2357 DEFAULT_wxUSE_STATBMP=yes
2358 DEFAULT_wxUSE_STATBOX=yes
2359 DEFAULT_wxUSE_STATLINE=yes
2360 DEFAULT_wxUSE_STATTEXT=yes
2361 DEFAULT_wxUSE_STATUSBAR=yes
2362 DEFAULT_wxUSE_TABDIALOG=no
2363 DEFAULT_wxUSE_TEXTCTRL=yes
2364 DEFAULT_wxUSE_TOGGLEBTN=yes
2365 DEFAULT_wxUSE_TOOLBAR=yes
2366 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2367 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2368 DEFAULT_wxUSE_TREECTRL=yes
2369 DEFAULT_wxUSE_POPUPWIN=yes
2370 DEFAULT_wxUSE_TIPWINDOW=yes
2371
2372 DEFAULT_wxUSE_UNICODE=no
2373 DEFAULT_wxUSE_UNICODE_MSLU=yes
2374 DEFAULT_wxUSE_WCSRTOMBS=no
2375
2376 DEFAULT_wxUSE_PALETTE=yes
2377 DEFAULT_wxUSE_IMAGE=yes
2378 DEFAULT_wxUSE_GIF=yes
2379 DEFAULT_wxUSE_PCX=yes
2380 DEFAULT_wxUSE_IFF=no
2381 DEFAULT_wxUSE_PNM=yes
2382 DEFAULT_wxUSE_XPM=yes
2383 DEFAULT_wxUSE_ICO_CUR=yes
2384 DEFAULT_wxUSE_ACCESSIBILITY=no
2385
2386 DEFAULT_wxUSE_MONOLITHIC=no
2387 DEFAULT_wxUSE_PLUGINS=no
2388 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2389
2390 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2391fi
2392
2393
2394
2395for toolkit in `echo $ALL_TOOLKITS`; do
2396 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2397 if test "x$LINE" != "x" ; then
2398 has_toolkit_in_cache=1
2399 eval "DEFAULT_$LINE"
2400 eval "CACHE_$toolkit=1"
2401 fi
2402done
2403
2404
2405
2406 enablestring=
2407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2408echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2409 no_cache=0
2410 # Check whether --enable-gui or --disable-gui was given.
2411if test "${enable_gui+set}" = set; then
2412 enableval="$enable_gui"
2413
2414 if test "$enableval" = yes; then
2415 ac_cv_use_gui='wxUSE_GUI=yes'
2416 else
2417 ac_cv_use_gui='wxUSE_GUI=no'
2418 fi
2419
2420else
2421
2422 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2423 if test "x$LINE" != x ; then
2424 eval "DEFAULT_$LINE"
2425 else
2426 no_cache=1
2427 fi
2428
2429 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2430
2431fi;
2432
2433 eval "$ac_cv_use_gui"
2434 if test "$no_cache" != 1; then
2435 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2436 fi
2437
2438 if test "$wxUSE_GUI" = yes; then
2439 echo "$as_me:$LINENO: result: yes" >&5
2440echo "${ECHO_T}yes" >&6
2441 else
2442 echo "$as_me:$LINENO: result: no" >&5
2443echo "${ECHO_T}no" >&6
2444 fi
2445
2446
2447 enablestring=
2448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2449echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2450 no_cache=0
2451 # Check whether --enable-monolithic or --disable-monolithic was given.
2452if test "${enable_monolithic+set}" = set; then
2453 enableval="$enable_monolithic"
2454
2455 if test "$enableval" = yes; then
2456 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2457 else
2458 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2459 fi
2460
2461else
2462
2463 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2464 if test "x$LINE" != x ; then
2465 eval "DEFAULT_$LINE"
2466 else
2467 no_cache=1
2468 fi
2469
2470 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2471
2472fi;
2473
2474 eval "$ac_cv_use_monolithic"
2475 if test "$no_cache" != 1; then
2476 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2477 fi
2478
2479 if test "$wxUSE_MONOLITHIC" = yes; then
2480 echo "$as_me:$LINENO: result: yes" >&5
2481echo "${ECHO_T}yes" >&6
2482 else
2483 echo "$as_me:$LINENO: result: no" >&5
2484echo "${ECHO_T}no" >&6
2485 fi
2486
2487
2488 enablestring=
2489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2490echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2491 no_cache=0
2492 # Check whether --enable-plugins or --disable-plugins was given.
2493if test "${enable_plugins+set}" = set; then
2494 enableval="$enable_plugins"
2495
2496 if test "$enableval" = yes; then
2497 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2498 else
2499 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2500 fi
2501
2502else
2503
2504 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2505 if test "x$LINE" != x ; then
2506 eval "DEFAULT_$LINE"
2507 else
2508 no_cache=1
2509 fi
2510
2511 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2512
2513fi;
2514
2515 eval "$ac_cv_use_plugins"
2516 if test "$no_cache" != 1; then
2517 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2518 fi
2519
2520 if test "$wxUSE_PLUGINS" = yes; then
2521 echo "$as_me:$LINENO: result: yes" >&5
2522echo "${ECHO_T}yes" >&6
2523 else
2524 echo "$as_me:$LINENO: result: no" >&5
2525echo "${ECHO_T}no" >&6
2526 fi
2527
2528
2529if test "$wxUSE_GUI" = "yes"; then
2530
2531
2532 enablestring=
2533 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2534echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2535 no_cache=0
2536 # Check whether --enable-universal or --disable-universal was given.
2537if test "${enable_universal+set}" = set; then
2538 enableval="$enable_universal"
2539
2540 if test "$enableval" = yes; then
2541 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2542 else
2543 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2544 fi
2545
2546else
2547
2548 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2549 if test "x$LINE" != x ; then
2550 eval "DEFAULT_$LINE"
2551 else
2552 no_cache=1
2553 fi
2554
2555 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2556
2557fi;
2558
2559 eval "$ac_cv_use_universal"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_UNIVERSAL" = yes; then
2565 echo "$as_me:$LINENO: result: yes" >&5
2566echo "${ECHO_T}yes" >&6
2567 else
2568 echo "$as_me:$LINENO: result: no" >&5
2569echo "${ECHO_T}no" >&6
2570 fi
2571
2572
2573# Check whether --with-gtk or --without-gtk was given.
2574if test "${with_gtk+set}" = set; then
2575 withval="$with_gtk"
2576 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2577fi;
2578
2579# Check whether --with-motif or --without-motif was given.
2580if test "${with_motif+set}" = set; then
2581 withval="$with_motif"
2582 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2583fi;
2584
2585# Check whether --with-mac or --without-mac was given.
2586if test "${with_mac+set}" = set; then
2587 withval="$with_mac"
2588 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
2589fi;
2590
2591# Check whether --with-cocoa or --without-cocoa was given.
2592if test "${with_cocoa+set}" = set; then
2593 withval="$with_cocoa"
2594 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
2595fi;
2596
2597# Check whether --with-wine or --without-wine was given.
2598if test "${with_wine+set}" = set; then
2599 withval="$with_wine"
2600 wxUSE_WINE="$withval" CACHE_WINE=1
2601fi;
2602
2603# Check whether --with-msw or --without-msw was given.
2604if test "${with_msw+set}" = set; then
2605 withval="$with_msw"
2606 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2607fi;
2608
2609# Check whether --with-pm or --without-pm was given.
2610if test "${with_pm+set}" = set; then
2611 withval="$with_pm"
2612 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2613fi;
2614
2615# Check whether --with-mgl or --without-mgl was given.
2616if test "${with_mgl+set}" = set; then
2617 withval="$with_mgl"
2618 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2619fi;
2620
2621# Check whether --with-microwin or --without-microwin was given.
2622if test "${with_microwin+set}" = set; then
2623 withval="$with_microwin"
2624 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2625fi;
2626
2627# Check whether --with-x11 or --without-x11 was given.
2628if test "${with_x11+set}" = set; then
2629 withval="$with_x11"
2630 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2631fi;
2632
2633 enablestring=
2634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2635echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2636 no_cache=0
2637 # Check whether --enable-nanox or --disable-nanox was given.
2638if test "${enable_nanox+set}" = set; then
2639 enableval="$enable_nanox"
2640
2641 if test "$enableval" = yes; then
2642 ac_cv_use_nanox='wxUSE_NANOX=yes'
2643 else
2644 ac_cv_use_nanox='wxUSE_NANOX=no'
2645 fi
2646
2647else
2648
2649 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2650 if test "x$LINE" != x ; then
2651 eval "DEFAULT_$LINE"
2652 else
2653 no_cache=1
2654 fi
2655
2656 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2657
2658fi;
2659
2660 eval "$ac_cv_use_nanox"
2661 if test "$no_cache" != 1; then
2662 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2663 fi
2664
2665 if test "$wxUSE_NANOX" = yes; then
2666 echo "$as_me:$LINENO: result: yes" >&5
2667echo "${ECHO_T}yes" >&6
2668 else
2669 echo "$as_me:$LINENO: result: no" >&5
2670echo "${ECHO_T}no" >&6
2671 fi
2672
2673
2674
2675 enablestring=
2676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2677echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2678 no_cache=0
2679 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2680if test "${enable_gtk2+set}" = set; then
2681 enableval="$enable_gtk2"
2682
2683 if test "$enableval" = yes; then
2684 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2685 else
2686 ac_cv_use_gtk2='wxUSE_GTK2=no'
2687 fi
2688
2689else
2690
2691 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2692 if test "x$LINE" != x ; then
2693 eval "DEFAULT_$LINE"
2694 else
2695 no_cache=1
2696 fi
2697
2698 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2699
2700fi;
2701
2702 eval "$ac_cv_use_gtk2"
2703 if test "$no_cache" != 1; then
2704 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2705 fi
2706
2707 if test "$wxUSE_GTK2" = yes; then
2708 echo "$as_me:$LINENO: result: yes" >&5
2709echo "${ECHO_T}yes" >&6
2710 else
2711 echo "$as_me:$LINENO: result: no" >&5
2712echo "${ECHO_T}no" >&6
2713 fi
2714
2715
2716 enablestring=
2717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2718echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2719 no_cache=0
2720 # Check whether --enable-gpe or --disable-gpe was given.
2721if test "${enable_gpe+set}" = set; then
2722 enableval="$enable_gpe"
2723
2724 if test "$enableval" = yes; then
2725 ac_cv_use_gpe='wxUSE_GPE=yes'
2726 else
2727 ac_cv_use_gpe='wxUSE_GPE=no'
2728 fi
2729
2730else
2731
2732 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2733 if test "x$LINE" != x ; then
2734 eval "DEFAULT_$LINE"
2735 else
2736 no_cache=1
2737 fi
2738
2739 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2740
2741fi;
2742
2743 eval "$ac_cv_use_gpe"
2744 if test "$no_cache" != 1; then
2745 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2746 fi
2747
2748 if test "$wxUSE_GPE" = yes; then
2749 echo "$as_me:$LINENO: result: yes" >&5
2750echo "${ECHO_T}yes" >&6
2751 else
2752 echo "$as_me:$LINENO: result: no" >&5
2753echo "${ECHO_T}no" >&6
2754 fi
2755
2756
2757
2758 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2759echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2760 no_cache=0
2761
2762# Check whether --with-libpng or --without-libpng was given.
2763if test "${with_libpng+set}" = set; then
2764 withval="$with_libpng"
2765
2766 if test "$withval" = yes; then
2767 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2768 elif test "$withval" = no; then
2769 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2770 elif test "$withval" = sys; then
2771 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2772 elif test "$withval" = builtin; then
2773 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2774 else
2775 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2776echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2777 { (exit 1); exit 1; }; }
2778 fi
2779
2780else
2781
2782 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2783 if test "x$LINE" != x ; then
2784 eval "DEFAULT_$LINE"
2785 else
2786 no_cache=1
2787 fi
2788
2789 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2790
2791fi;
2792
2793 eval "$ac_cv_use_libpng"
2794 if test "$no_cache" != 1; then
2795 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2796 fi
2797
2798 if test "$wxUSE_LIBPNG" = yes; then
2799 echo "$as_me:$LINENO: result: yes" >&5
2800echo "${ECHO_T}yes" >&6
2801 elif test "$wxUSE_LIBPNG" = no; then
2802 echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6
2804 elif test "$wxUSE_LIBPNG" = sys; then
2805 echo "$as_me:$LINENO: result: system version" >&5
2806echo "${ECHO_T}system version" >&6
2807 elif test "$wxUSE_LIBPNG" = builtin; then
2808 echo "$as_me:$LINENO: result: builtin version" >&5
2809echo "${ECHO_T}builtin version" >&6
2810 else
2811 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2812echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2813 { (exit 1); exit 1; }; }
2814 fi
2815
2816
2817 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2818echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2819 no_cache=0
2820
2821# Check whether --with-libjpeg or --without-libjpeg was given.
2822if test "${with_libjpeg+set}" = set; then
2823 withval="$with_libjpeg"
2824
2825 if test "$withval" = yes; then
2826 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2827 elif test "$withval" = no; then
2828 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2829 elif test "$withval" = sys; then
2830 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2831 elif test "$withval" = builtin; then
2832 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2833 else
2834 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2835echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2836 { (exit 1); exit 1; }; }
2837 fi
2838
2839else
2840
2841 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2842 if test "x$LINE" != x ; then
2843 eval "DEFAULT_$LINE"
2844 else
2845 no_cache=1
2846 fi
2847
2848 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2849
2850fi;
2851
2852 eval "$ac_cv_use_libjpeg"
2853 if test "$no_cache" != 1; then
2854 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2855 fi
2856
2857 if test "$wxUSE_LIBJPEG" = yes; then
2858 echo "$as_me:$LINENO: result: yes" >&5
2859echo "${ECHO_T}yes" >&6
2860 elif test "$wxUSE_LIBJPEG" = no; then
2861 echo "$as_me:$LINENO: result: no" >&5
2862echo "${ECHO_T}no" >&6
2863 elif test "$wxUSE_LIBJPEG" = sys; then
2864 echo "$as_me:$LINENO: result: system version" >&5
2865echo "${ECHO_T}system version" >&6
2866 elif test "$wxUSE_LIBJPEG" = builtin; then
2867 echo "$as_me:$LINENO: result: builtin version" >&5
2868echo "${ECHO_T}builtin version" >&6
2869 else
2870 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2871echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2872 { (exit 1); exit 1; }; }
2873 fi
2874
2875
2876 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2877echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2878 no_cache=0
2879
2880# Check whether --with-libtiff or --without-libtiff was given.
2881if test "${with_libtiff+set}" = set; then
2882 withval="$with_libtiff"
2883
2884 if test "$withval" = yes; then
2885 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2886 elif test "$withval" = no; then
2887 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2888 elif test "$withval" = sys; then
2889 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2890 elif test "$withval" = builtin; then
2891 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2892 else
2893 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2894echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2895 { (exit 1); exit 1; }; }
2896 fi
2897
2898else
2899
2900 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2901 if test "x$LINE" != x ; then
2902 eval "DEFAULT_$LINE"
2903 else
2904 no_cache=1
2905 fi
2906
2907 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2908
2909fi;
2910
2911 eval "$ac_cv_use_libtiff"
2912 if test "$no_cache" != 1; then
2913 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2914 fi
2915
2916 if test "$wxUSE_LIBTIFF" = yes; then
2917 echo "$as_me:$LINENO: result: yes" >&5
2918echo "${ECHO_T}yes" >&6
2919 elif test "$wxUSE_LIBTIFF" = no; then
2920 echo "$as_me:$LINENO: result: no" >&5
2921echo "${ECHO_T}no" >&6
2922 elif test "$wxUSE_LIBTIFF" = sys; then
2923 echo "$as_me:$LINENO: result: system version" >&5
2924echo "${ECHO_T}system version" >&6
2925 elif test "$wxUSE_LIBTIFF" = builtin; then
2926 echo "$as_me:$LINENO: result: builtin version" >&5
2927echo "${ECHO_T}builtin version" >&6
2928 else
2929 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2930echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2931 { (exit 1); exit 1; }; }
2932 fi
2933
2934
2935 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2936echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2937 no_cache=0
2938
2939# Check whether --with-libxpm or --without-libxpm was given.
2940if test "${with_libxpm+set}" = set; then
2941 withval="$with_libxpm"
2942
2943 if test "$withval" = yes; then
2944 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2945 elif test "$withval" = no; then
2946 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2947 elif test "$withval" = sys; then
2948 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2949 elif test "$withval" = builtin; then
2950 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2951 else
2952 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2953echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2954 { (exit 1); exit 1; }; }
2955 fi
2956
2957else
2958
2959 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2960 if test "x$LINE" != x ; then
2961 eval "DEFAULT_$LINE"
2962 else
2963 no_cache=1
2964 fi
2965
2966 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2967
2968fi;
2969
2970 eval "$ac_cv_use_libxpm"
2971 if test "$no_cache" != 1; then
2972 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2973 fi
2974
2975 if test "$wxUSE_LIBXPM" = yes; then
2976 echo "$as_me:$LINENO: result: yes" >&5
2977echo "${ECHO_T}yes" >&6
2978 elif test "$wxUSE_LIBXPM" = no; then
2979 echo "$as_me:$LINENO: result: no" >&5
2980echo "${ECHO_T}no" >&6
2981 elif test "$wxUSE_LIBXPM" = sys; then
2982 echo "$as_me:$LINENO: result: system version" >&5
2983echo "${ECHO_T}system version" >&6
2984 elif test "$wxUSE_LIBXPM" = builtin; then
2985 echo "$as_me:$LINENO: result: builtin version" >&5
2986echo "${ECHO_T}builtin version" >&6
2987 else
2988 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2989echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2990 { (exit 1); exit 1; }; }
2991 fi
2992
2993
2994 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2995echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2996 no_cache=0
2997
2998# Check whether --with-libmspack or --without-libmspack was given.
2999if test "${with_libmspack+set}" = set; then
3000 withval="$with_libmspack"
3001
3002 if test "$withval" = yes; then
3003 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3004 else
3005 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3006 fi
3007
3008else
3009
3010 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3011 if test "x$LINE" != x ; then
3012 eval "DEFAULT_$LINE"
3013 else
3014 no_cache=1
3015 fi
3016
3017 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3018
3019fi;
3020
3021 eval "$ac_cv_use_libmspack"
3022 if test "$no_cache" != 1; then
3023 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3024 fi
3025
3026 if test "$wxUSE_LIBMSPACK" = yes; then
3027 echo "$as_me:$LINENO: result: yes" >&5
3028echo "${ECHO_T}yes" >&6
3029 else
3030 echo "$as_me:$LINENO: result: no" >&5
3031echo "${ECHO_T}no" >&6
3032 fi
3033
3034
3035 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3036echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3037 no_cache=0
3038
3039# Check whether --with-sdl or --without-sdl was given.
3040if test "${with_sdl+set}" = set; then
3041 withval="$with_sdl"
3042
3043 if test "$withval" = yes; then
3044 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3045 else
3046 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3047 fi
3048
3049else
3050
3051 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3059
3060fi;
3061
3062 eval "$ac_cv_use_sdl"
3063 if test "$no_cache" != 1; then
3064 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3065 fi
3066
3067 if test "$wxUSE_LIBSDL" = yes; then
3068 echo "$as_me:$LINENO: result: yes" >&5
3069echo "${ECHO_T}yes" >&6
3070 else
3071 echo "$as_me:$LINENO: result: no" >&5
3072echo "${ECHO_T}no" >&6
3073 fi
3074
3075
3076 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3077echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3078 no_cache=0
3079
3080# Check whether --with-opengl or --without-opengl was given.
3081if test "${with_opengl+set}" = set; then
3082 withval="$with_opengl"
3083
3084 if test "$withval" = yes; then
3085 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3086 else
3087 ac_cv_use_opengl='wxUSE_OPENGL=no'
3088 fi
3089
3090else
3091
3092 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3093 if test "x$LINE" != x ; then
3094 eval "DEFAULT_$LINE"
3095 else
3096 no_cache=1
3097 fi
3098
3099 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3100
3101fi;
3102
3103 eval "$ac_cv_use_opengl"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_OPENGL" = yes; then
3109 echo "$as_me:$LINENO: result: yes" >&5
3110echo "${ECHO_T}yes" >&6
3111 else
3112 echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
3114 fi
3115
3116
3117fi
3118
3119
3120 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3121echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3122 no_cache=0
3123
3124# Check whether --with-dmalloc or --without-dmalloc was given.
3125if test "${with_dmalloc+set}" = set; then
3126 withval="$with_dmalloc"
3127
3128 if test "$withval" = yes; then
3129 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3130 else
3131 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3132 fi
3133
3134else
3135
3136 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3137 if test "x$LINE" != x ; then
3138 eval "DEFAULT_$LINE"
3139 else
3140 no_cache=1
3141 fi
3142
3143 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3144
3145fi;
3146
3147 eval "$ac_cv_use_dmalloc"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_DMALLOC" = yes; then
3153 echo "$as_me:$LINENO: result: yes" >&5
3154echo "${ECHO_T}yes" >&6
3155 else
3156 echo "$as_me:$LINENO: result: no" >&5
3157echo "${ECHO_T}no" >&6
3158 fi
3159
3160
3161 echo "$as_me:$LINENO: checking for --with-regex" >&5
3162echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3163 no_cache=0
3164
3165# Check whether --with-regex or --without-regex was given.
3166if test "${with_regex+set}" = set; then
3167 withval="$with_regex"
3168
3169 if test "$withval" = yes; then
3170 ac_cv_use_regex='wxUSE_REGEX=yes'
3171 elif test "$withval" = no; then
3172 ac_cv_use_regex='wxUSE_REGEX=no'
3173 elif test "$withval" = sys; then
3174 ac_cv_use_regex='wxUSE_REGEX=sys'
3175 elif test "$withval" = builtin; then
3176 ac_cv_use_regex='wxUSE_REGEX=builtin'
3177 else
3178 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3179echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3180 { (exit 1); exit 1; }; }
3181 fi
3182
3183else
3184
3185 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3186 if test "x$LINE" != x ; then
3187 eval "DEFAULT_$LINE"
3188 else
3189 no_cache=1
3190 fi
3191
3192 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3193
3194fi;
3195
3196 eval "$ac_cv_use_regex"
3197 if test "$no_cache" != 1; then
3198 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3199 fi
3200
3201 if test "$wxUSE_REGEX" = yes; then
3202 echo "$as_me:$LINENO: result: yes" >&5
3203echo "${ECHO_T}yes" >&6
3204 elif test "$wxUSE_REGEX" = no; then
3205 echo "$as_me:$LINENO: result: no" >&5
3206echo "${ECHO_T}no" >&6
3207 elif test "$wxUSE_REGEX" = sys; then
3208 echo "$as_me:$LINENO: result: system version" >&5
3209echo "${ECHO_T}system version" >&6
3210 elif test "$wxUSE_REGEX" = builtin; then
3211 echo "$as_me:$LINENO: result: builtin version" >&5
3212echo "${ECHO_T}builtin version" >&6
3213 else
3214 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3215echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3216 { (exit 1); exit 1; }; }
3217 fi
3218
3219
3220 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3221echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3222 no_cache=0
3223
3224# Check whether --with-zlib or --without-zlib was given.
3225if test "${with_zlib+set}" = set; then
3226 withval="$with_zlib"
3227
3228 if test "$withval" = yes; then
3229 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3230 elif test "$withval" = no; then
3231 ac_cv_use_zlib='wxUSE_ZLIB=no'
3232 elif test "$withval" = sys; then
3233 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3234 elif test "$withval" = builtin; then
3235 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3236 else
3237 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3238echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3239 { (exit 1); exit 1; }; }
3240 fi
3241
3242else
3243
3244 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3245 if test "x$LINE" != x ; then
3246 eval "DEFAULT_$LINE"
3247 else
3248 no_cache=1
3249 fi
3250
3251 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3252
3253fi;
3254
3255 eval "$ac_cv_use_zlib"
3256 if test "$no_cache" != 1; then
3257 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3258 fi
3259
3260 if test "$wxUSE_ZLIB" = yes; then
3261 echo "$as_me:$LINENO: result: yes" >&5
3262echo "${ECHO_T}yes" >&6
3263 elif test "$wxUSE_ZLIB" = no; then
3264 echo "$as_me:$LINENO: result: no" >&5
3265echo "${ECHO_T}no" >&6
3266 elif test "$wxUSE_ZLIB" = sys; then
3267 echo "$as_me:$LINENO: result: system version" >&5
3268echo "${ECHO_T}system version" >&6
3269 elif test "$wxUSE_ZLIB" = builtin; then
3270 echo "$as_me:$LINENO: result: builtin version" >&5
3271echo "${ECHO_T}builtin version" >&6
3272 else
3273 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3274echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3275 { (exit 1); exit 1; }; }
3276 fi
3277
3278
3279 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3280echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3281 no_cache=0
3282
3283# Check whether --with-odbc or --without-odbc was given.
3284if test "${with_odbc+set}" = set; then
3285 withval="$with_odbc"
3286
3287 if test "$withval" = yes; then
3288 ac_cv_use_odbc='wxUSE_ODBC=yes'
3289 elif test "$withval" = no; then
3290 ac_cv_use_odbc='wxUSE_ODBC=no'
3291 elif test "$withval" = sys; then
3292 ac_cv_use_odbc='wxUSE_ODBC=sys'
3293 elif test "$withval" = builtin; then
3294 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3295 else
3296 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3297echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3298 { (exit 1); exit 1; }; }
3299 fi
3300
3301else
3302
3303 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3304 if test "x$LINE" != x ; then
3305 eval "DEFAULT_$LINE"
3306 else
3307 no_cache=1
3308 fi
3309
3310 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3311
3312fi;
3313
3314 eval "$ac_cv_use_odbc"
3315 if test "$no_cache" != 1; then
3316 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3317 fi
3318
3319 if test "$wxUSE_ODBC" = yes; then
3320 echo "$as_me:$LINENO: result: yes" >&5
3321echo "${ECHO_T}yes" >&6
3322 elif test "$wxUSE_ODBC" = no; then
3323 echo "$as_me:$LINENO: result: no" >&5
3324echo "${ECHO_T}no" >&6
3325 elif test "$wxUSE_ODBC" = sys; then
3326 echo "$as_me:$LINENO: result: system version" >&5
3327echo "${ECHO_T}system version" >&6
3328 elif test "$wxUSE_ODBC" = builtin; then
3329 echo "$as_me:$LINENO: result: builtin version" >&5
3330echo "${ECHO_T}builtin version" >&6
3331 else
3332 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3333echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3334 { (exit 1); exit 1; }; }
3335 fi
3336
3337
3338 echo "$as_me:$LINENO: checking for --with-expat" >&5
3339echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3340 no_cache=0
3341
3342# Check whether --with-expat or --without-expat was given.
3343if test "${with_expat+set}" = set; then
3344 withval="$with_expat"
3345
3346 if test "$withval" = yes; then
3347 ac_cv_use_expat='wxUSE_EXPAT=yes'
3348 elif test "$withval" = no; then
3349 ac_cv_use_expat='wxUSE_EXPAT=no'
3350 elif test "$withval" = sys; then
3351 ac_cv_use_expat='wxUSE_EXPAT=sys'
3352 elif test "$withval" = builtin; then
3353 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3354 else
3355 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3356echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3357 { (exit 1); exit 1; }; }
3358 fi
3359
3360else
3361
3362 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3363 if test "x$LINE" != x ; then
3364 eval "DEFAULT_$LINE"
3365 else
3366 no_cache=1
3367 fi
3368
3369 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3370
3371fi;
3372
3373 eval "$ac_cv_use_expat"
3374 if test "$no_cache" != 1; then
3375 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3376 fi
3377
3378 if test "$wxUSE_EXPAT" = yes; then
3379 echo "$as_me:$LINENO: result: yes" >&5
3380echo "${ECHO_T}yes" >&6
3381 elif test "$wxUSE_EXPAT" = no; then
3382 echo "$as_me:$LINENO: result: no" >&5
3383echo "${ECHO_T}no" >&6
3384 elif test "$wxUSE_EXPAT" = sys; then
3385 echo "$as_me:$LINENO: result: system version" >&5
3386echo "${ECHO_T}system version" >&6
3387 elif test "$wxUSE_EXPAT" = builtin; then
3388 echo "$as_me:$LINENO: result: builtin version" >&5
3389echo "${ECHO_T}builtin version" >&6
3390 else
3391 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3392echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3393 { (exit 1); exit 1; }; }
3394 fi
3395
3396
3397
3398
3399 enablestring=
3400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3401echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3402 no_cache=0
3403 # Check whether --enable-shared or --disable-shared was given.
3404if test "${enable_shared+set}" = set; then
3405 enableval="$enable_shared"
3406
3407 if test "$enableval" = yes; then
3408 ac_cv_use_shared='wxUSE_SHARED=yes'
3409 else
3410 ac_cv_use_shared='wxUSE_SHARED=no'
3411 fi
3412
3413else
3414
3415 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3416 if test "x$LINE" != x ; then
3417 eval "DEFAULT_$LINE"
3418 else
3419 no_cache=1
3420 fi
3421
3422 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3423
3424fi;
3425
3426 eval "$ac_cv_use_shared"
3427 if test "$no_cache" != 1; then
3428 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3429 fi
3430
3431 if test "$wxUSE_SHARED" = yes; then
3432 echo "$as_me:$LINENO: result: yes" >&5
3433echo "${ECHO_T}yes" >&6
3434 else
3435 echo "$as_me:$LINENO: result: no" >&5
3436echo "${ECHO_T}no" >&6
3437 fi
3438
3439
3440 enablestring=
3441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3442echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3443 no_cache=0
3444 # Check whether --enable-optimise or --disable-optimise was given.
3445if test "${enable_optimise+set}" = set; then
3446 enableval="$enable_optimise"
3447
3448 if test "$enableval" = yes; then
3449 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3450 else
3451 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3452 fi
3453
3454else
3455
3456 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3457 if test "x$LINE" != x ; then
3458 eval "DEFAULT_$LINE"
3459 else
3460 no_cache=1
3461 fi
3462
3463 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3464
3465fi;
3466
3467 eval "$ac_cv_use_optimise"
3468 if test "$no_cache" != 1; then
3469 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3470 fi
3471
3472 if test "$wxUSE_OPTIMISE" = yes; then
3473 echo "$as_me:$LINENO: result: yes" >&5
3474echo "${ECHO_T}yes" >&6
3475 else
3476 echo "$as_me:$LINENO: result: no" >&5
3477echo "${ECHO_T}no" >&6
3478 fi
3479
3480
3481 enablestring=
3482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3483echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3484 no_cache=0
3485 # Check whether --enable-debug or --disable-debug was given.
3486if test "${enable_debug+set}" = set; then
3487 enableval="$enable_debug"
3488
3489 if test "$enableval" = yes; then
3490 ac_cv_use_debug='wxUSE_DEBUG=yes'
3491 else
3492 ac_cv_use_debug='wxUSE_DEBUG=no'
3493 fi
3494
3495else
3496
3497 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3498 if test "x$LINE" != x ; then
3499 eval "DEFAULT_$LINE"
3500 else
3501 no_cache=1
3502 fi
3503
3504 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3505
3506fi;
3507
3508 eval "$ac_cv_use_debug"
3509 if test "$no_cache" != 1; then
3510 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3511 fi
3512
3513 if test "$wxUSE_DEBUG" = yes; then
3514 echo "$as_me:$LINENO: result: yes" >&5
3515echo "${ECHO_T}yes" >&6
3516 else
3517 echo "$as_me:$LINENO: result: no" >&5
3518echo "${ECHO_T}no" >&6
3519 fi
3520
3521
3522 enablestring=
3523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3524echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3525 no_cache=0
3526 # Check whether --enable-stl or --disable-stl was given.
3527if test "${enable_stl+set}" = set; then
3528 enableval="$enable_stl"
3529
3530 if test "$enableval" = yes; then
3531 ac_cv_use_stl='wxUSE_STL=yes'
3532 else
3533 ac_cv_use_stl='wxUSE_STL=no'
3534 fi
3535
3536else
3537
3538 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3539 if test "x$LINE" != x ; then
3540 eval "DEFAULT_$LINE"
3541 else
3542 no_cache=1
3543 fi
3544
3545 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3546
3547fi;
3548
3549 eval "$ac_cv_use_stl"
3550 if test "$no_cache" != 1; then
3551 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3552 fi
3553
3554 if test "$wxUSE_STL" = yes; then
3555 echo "$as_me:$LINENO: result: yes" >&5
3556echo "${ECHO_T}yes" >&6
3557 else
3558 echo "$as_me:$LINENO: result: no" >&5
3559echo "${ECHO_T}no" >&6
3560 fi
3561
3562if test "$USE_OS2" = "1"; then
3563
3564 enablestring=
3565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3566echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3567 no_cache=0
3568 # Check whether --enable-omf or --disable-omf was given.
3569if test "${enable_omf+set}" = set; then
3570 enableval="$enable_omf"
3571
3572 if test "$enableval" = yes; then
3573 ac_cv_use_omf='wxUSE_OMF=yes'
3574 else
3575 ac_cv_use_omf='wxUSE_OMF=no'
3576 fi
3577
3578else
3579
3580 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3581 if test "x$LINE" != x ; then
3582 eval "DEFAULT_$LINE"
3583 else
3584 no_cache=1
3585 fi
3586
3587 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3588
3589fi;
3590
3591 eval "$ac_cv_use_omf"
3592 if test "$no_cache" != 1; then
3593 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3594 fi
3595
3596 if test "$wxUSE_OMF" = yes; then
3597 echo "$as_me:$LINENO: result: yes" >&5
3598echo "${ECHO_T}yes" >&6
3599 else
3600 echo "$as_me:$LINENO: result: no" >&5
3601echo "${ECHO_T}no" >&6
3602 fi
3603
3604fi
3605
3606if test "$wxUSE_DEBUG" = "yes"; then
3607 DEFAULT_wxUSE_DEBUG_FLAG=yes
3608 DEFAULT_wxUSE_DEBUG_INFO=yes
3609 BUILD=debug
3610elif test "$wxUSE_DEBUG" = "no"; then
3611 DEFAULT_wxUSE_DEBUG_FLAG=no
3612 DEFAULT_wxUSE_DEBUG_INFO=no
3613 BUILD=release
3614fi
3615
3616
3617 enablestring=
3618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3619echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3620 no_cache=0
3621 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3622if test "${enable_debug_flag+set}" = set; then
3623 enableval="$enable_debug_flag"
3624
3625 if test "$enableval" = yes; then
3626 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3627 else
3628 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3629 fi
3630
3631else
3632
3633 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3634 if test "x$LINE" != x ; then
3635 eval "DEFAULT_$LINE"
3636 else
3637 no_cache=1
3638 fi
3639
3640 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3641
3642fi;
3643
3644 eval "$ac_cv_use_debug_flag"
3645 if test "$no_cache" != 1; then
3646 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3647 fi
3648
3649 if test "$wxUSE_DEBUG_FLAG" = yes; then
3650 echo "$as_me:$LINENO: result: yes" >&5
3651echo "${ECHO_T}yes" >&6
3652 else
3653 echo "$as_me:$LINENO: result: no" >&5
3654echo "${ECHO_T}no" >&6
3655 fi
3656
3657
3658 enablestring=
3659 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3660echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3661 no_cache=0
3662 # Check whether --enable-debug_info or --disable-debug_info was given.
3663if test "${enable_debug_info+set}" = set; then
3664 enableval="$enable_debug_info"
3665
3666 if test "$enableval" = yes; then
3667 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3668 else
3669 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3670 fi
3671
3672else
3673
3674 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3675 if test "x$LINE" != x ; then
3676 eval "DEFAULT_$LINE"
3677 else
3678 no_cache=1
3679 fi
3680
3681 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3682
3683fi;
3684
3685 eval "$ac_cv_use_debug_info"
3686 if test "$no_cache" != 1; then
3687 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3688 fi
3689
3690 if test "$wxUSE_DEBUG_INFO" = yes; then
3691 echo "$as_me:$LINENO: result: yes" >&5
3692echo "${ECHO_T}yes" >&6
3693 else
3694 echo "$as_me:$LINENO: result: no" >&5
3695echo "${ECHO_T}no" >&6
3696 fi
3697
3698
3699 enablestring=
3700 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3701echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3702 no_cache=0
3703 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3704if test "${enable_debug_gdb+set}" = set; then
3705 enableval="$enable_debug_gdb"
3706
3707 if test "$enableval" = yes; then
3708 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3709 else
3710 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3711 fi
3712
3713else
3714
3715 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3716 if test "x$LINE" != x ; then
3717 eval "DEFAULT_$LINE"
3718 else
3719 no_cache=1
3720 fi
3721
3722 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3723
3724fi;
3725
3726 eval "$ac_cv_use_debug_gdb"
3727 if test "$no_cache" != 1; then
3728 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3729 fi
3730
3731 if test "$wxUSE_DEBUG_GDB" = yes; then
3732 echo "$as_me:$LINENO: result: yes" >&5
3733echo "${ECHO_T}yes" >&6
3734 else
3735 echo "$as_me:$LINENO: result: no" >&5
3736echo "${ECHO_T}no" >&6
3737 fi
3738
3739
3740 enablestring=
3741 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3742echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3743 no_cache=0
3744 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3745if test "${enable_debug_cntxt+set}" = set; then
3746 enableval="$enable_debug_cntxt"
3747
3748 if test "$enableval" = yes; then
3749 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3750 else
3751 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3752 fi
3753
3754else
3755
3756 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3757 if test "x$LINE" != x ; then
3758 eval "DEFAULT_$LINE"
3759 else
3760 no_cache=1
3761 fi
3762
3763 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3764
3765fi;
3766
3767 eval "$ac_cv_use_debug_cntxt"
3768 if test "$no_cache" != 1; then
3769 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3770 fi
3771
3772 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3773 echo "$as_me:$LINENO: result: yes" >&5
3774echo "${ECHO_T}yes" >&6
3775 else
3776 echo "$as_me:$LINENO: result: no" >&5
3777echo "${ECHO_T}no" >&6
3778 fi
3779
3780
3781 enablestring=
3782 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3783echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3784 no_cache=0
3785 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3786if test "${enable_mem_tracing+set}" = set; then
3787 enableval="$enable_mem_tracing"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3791 else
3792 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3793 fi
3794
3795else
3796
3797 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3805
3806fi;
3807
3808 eval "$ac_cv_use_mem_tracing"
3809 if test "$no_cache" != 1; then
3810 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3811 fi
3812
3813 if test "$wxUSE_MEM_TRACING" = yes; then
3814 echo "$as_me:$LINENO: result: yes" >&5
3815echo "${ECHO_T}yes" >&6
3816 else
3817 echo "$as_me:$LINENO: result: no" >&5
3818echo "${ECHO_T}no" >&6
3819 fi
3820
3821
3822 enablestring=
3823 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3824echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3825 no_cache=0
3826 # Check whether --enable-profile or --disable-profile was given.
3827if test "${enable_profile+set}" = set; then
3828 enableval="$enable_profile"
3829
3830 if test "$enableval" = yes; then
3831 ac_cv_use_profile='wxUSE_PROFILE=yes'
3832 else
3833 ac_cv_use_profile='wxUSE_PROFILE=no'
3834 fi
3835
3836else
3837
3838 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3846
3847fi;
3848
3849 eval "$ac_cv_use_profile"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_PROFILE" = yes; then
3855 echo "$as_me:$LINENO: result: yes" >&5
3856echo "${ECHO_T}yes" >&6
3857 else
3858 echo "$as_me:$LINENO: result: no" >&5
3859echo "${ECHO_T}no" >&6
3860 fi
3861
3862
3863 enablestring=
3864 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3865echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3866 no_cache=0
3867 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3868if test "${enable_no_rtti+set}" = set; then
3869 enableval="$enable_no_rtti"
3870
3871 if test "$enableval" = yes; then
3872 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3873 else
3874 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3875 fi
3876
3877else
3878
3879 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3880 if test "x$LINE" != x ; then
3881 eval "DEFAULT_$LINE"
3882 else
3883 no_cache=1
3884 fi
3885
3886 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3887
3888fi;
3889
3890 eval "$ac_cv_use_no_rtti"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_NO_RTTI" = yes; then
3896 echo "$as_me:$LINENO: result: yes" >&5
3897echo "${ECHO_T}yes" >&6
3898 else
3899 echo "$as_me:$LINENO: result: no" >&5
3900echo "${ECHO_T}no" >&6
3901 fi
3902
3903
3904 enablestring=
3905 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3906echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3907 no_cache=0
3908 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3909if test "${enable_no_exceptions+set}" = set; then
3910 enableval="$enable_no_exceptions"
3911
3912 if test "$enableval" = yes; then
3913 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3914 else
3915 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3916 fi
3917
3918else
3919
3920 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3921 if test "x$LINE" != x ; then
3922 eval "DEFAULT_$LINE"
3923 else
3924 no_cache=1
3925 fi
3926
3927 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3928
3929fi;
3930
3931 eval "$ac_cv_use_no_exceptions"
3932 if test "$no_cache" != 1; then
3933 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3934 fi
3935
3936 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3937 echo "$as_me:$LINENO: result: yes" >&5
3938echo "${ECHO_T}yes" >&6
3939 else
3940 echo "$as_me:$LINENO: result: no" >&5
3941echo "${ECHO_T}no" >&6
3942 fi
3943
3944
3945 enablestring=
3946 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3947echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
3948 no_cache=0
3949 # Check whether --enable-permissive or --disable-permissive was given.
3950if test "${enable_permissive+set}" = set; then
3951 enableval="$enable_permissive"
3952
3953 if test "$enableval" = yes; then
3954 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3955 else
3956 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3957 fi
3958
3959else
3960
3961 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3962 if test "x$LINE" != x ; then
3963 eval "DEFAULT_$LINE"
3964 else
3965 no_cache=1
3966 fi
3967
3968 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
3969
3970fi;
3971
3972 eval "$ac_cv_use_permissive"
3973 if test "$no_cache" != 1; then
3974 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3975 fi
3976
3977 if test "$wxUSE_PERMISSIVE" = yes; then
3978 echo "$as_me:$LINENO: result: yes" >&5
3979echo "${ECHO_T}yes" >&6
3980 else
3981 echo "$as_me:$LINENO: result: no" >&5
3982echo "${ECHO_T}no" >&6
3983 fi
3984
3985
3986 enablestring=
3987 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3988echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
3989 no_cache=0
3990 # Check whether --enable-no_deps or --disable-no_deps was given.
3991if test "${enable_no_deps+set}" = set; then
3992 enableval="$enable_no_deps"
3993
3994 if test "$enableval" = yes; then
3995 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3996 else
3997 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3998 fi
3999
4000else
4001
4002 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4003 if test "x$LINE" != x ; then
4004 eval "DEFAULT_$LINE"
4005 else
4006 no_cache=1
4007 fi
4008
4009 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4010
4011fi;
4012
4013 eval "$ac_cv_use_no_deps"
4014 if test "$no_cache" != 1; then
4015 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4016 fi
4017
4018 if test "$wxUSE_NO_DEPS" = yes; then
4019 echo "$as_me:$LINENO: result: yes" >&5
4020echo "${ECHO_T}yes" >&6
4021 else
4022 echo "$as_me:$LINENO: result: no" >&5
4023echo "${ECHO_T}no" >&6
4024 fi
4025
4026
4027
4028 enablestring=
4029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4030echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4031 no_cache=0
4032 # Check whether --enable-compat22 or --disable-compat22 was given.
4033if test "${enable_compat22+set}" = set; then
4034 enableval="$enable_compat22"
4035
4036 if test "$enableval" = yes; then
4037 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4038 else
4039 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4040 fi
4041
4042else
4043
4044 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4045 if test "x$LINE" != x ; then
4046 eval "DEFAULT_$LINE"
4047 else
4048 no_cache=1
4049 fi
4050
4051 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4052
4053fi;
4054
4055 eval "$ac_cv_use_compat22"
4056 if test "$no_cache" != 1; then
4057 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4058 fi
4059
4060 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4061 echo "$as_me:$LINENO: result: yes" >&5
4062echo "${ECHO_T}yes" >&6
4063 else
4064 echo "$as_me:$LINENO: result: no" >&5
4065echo "${ECHO_T}no" >&6
4066 fi
4067
4068
4069 enablestring=disable
4070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4071echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4072 no_cache=0
4073 # Check whether --enable-compat24 or --disable-compat24 was given.
4074if test "${enable_compat24+set}" = set; then
4075 enableval="$enable_compat24"
4076
4077 if test "$enableval" = yes; then
4078 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4079 else
4080 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4081 fi
4082
4083else
4084
4085 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4086 if test "x$LINE" != x ; then
4087 eval "DEFAULT_$LINE"
4088 else
4089 no_cache=1
4090 fi
4091
4092 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4093
4094fi;
4095
4096 eval "$ac_cv_use_compat24"
4097 if test "$no_cache" != 1; then
4098 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4099 fi
4100
4101 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4102 echo "$as_me:$LINENO: result: yes" >&5
4103echo "${ECHO_T}yes" >&6
4104 else
4105 echo "$as_me:$LINENO: result: no" >&5
4106echo "${ECHO_T}no" >&6
4107 fi
4108
4109
4110# Check whether --enable-rpath or --disable-rpath was given.
4111if test "${enable_rpath+set}" = set; then
4112 enableval="$enable_rpath"
4113 wxRPATH_DIR="$enableval"
4114fi;
4115
ac1cb8d3 4116if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable" -a "$wxRPATH_DIR" != "no"; then
a848cd7e
SC
4117 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4118fi
4119
4120
4121
4122
4123 enablestring=
4124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4125echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4126 no_cache=0
4127 # Check whether --enable-intl or --disable-intl was given.
4128if test "${enable_intl+set}" = set; then
4129 enableval="$enable_intl"
4130
4131 if test "$enableval" = yes; then
4132 ac_cv_use_intl='wxUSE_INTL=yes'
4133 else
4134 ac_cv_use_intl='wxUSE_INTL=no'
4135 fi
4136
4137else
4138
4139 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4140 if test "x$LINE" != x ; then
4141 eval "DEFAULT_$LINE"
4142 else
4143 no_cache=1
4144 fi
4145
4146 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4147
4148fi;
4149
4150 eval "$ac_cv_use_intl"
4151 if test "$no_cache" != 1; then
4152 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4153 fi
4154
4155 if test "$wxUSE_INTL" = yes; then
4156 echo "$as_me:$LINENO: result: yes" >&5
4157echo "${ECHO_T}yes" >&6
4158 else
4159 echo "$as_me:$LINENO: result: no" >&5
4160echo "${ECHO_T}no" >&6
4161 fi
4162
4163
4164 enablestring=
4165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4166echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4167 no_cache=0
4168 # Check whether --enable-config or --disable-config was given.
4169if test "${enable_config+set}" = set; then
4170 enableval="$enable_config"
4171
4172 if test "$enableval" = yes; then
4173 ac_cv_use_config='wxUSE_CONFIG=yes'
4174 else
4175 ac_cv_use_config='wxUSE_CONFIG=no'
4176 fi
4177
4178else
4179
4180 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4181 if test "x$LINE" != x ; then
4182 eval "DEFAULT_$LINE"
4183 else
4184 no_cache=1
4185 fi
4186
4187 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4188
4189fi;
4190
4191 eval "$ac_cv_use_config"
4192 if test "$no_cache" != 1; then
4193 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4194 fi
4195
4196 if test "$wxUSE_CONFIG" = yes; then
4197 echo "$as_me:$LINENO: result: yes" >&5
4198echo "${ECHO_T}yes" >&6
4199 else
4200 echo "$as_me:$LINENO: result: no" >&5
4201echo "${ECHO_T}no" >&6
4202 fi
4203
4204
4205
4206 enablestring=
4207 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4208echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4209 no_cache=0
4210 # Check whether --enable-protocols or --disable-protocols was given.
4211if test "${enable_protocols+set}" = set; then
4212 enableval="$enable_protocols"
4213
4214 if test "$enableval" = yes; then
4215 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4216 else
4217 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4218 fi
4219
4220else
4221
4222 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4223 if test "x$LINE" != x ; then
4224 eval "DEFAULT_$LINE"
4225 else
4226 no_cache=1
4227 fi
4228
4229 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4230
4231fi;
4232
4233 eval "$ac_cv_use_protocols"
4234 if test "$no_cache" != 1; then
4235 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4236 fi
4237
4238 if test "$wxUSE_PROTOCOL" = yes; then
4239 echo "$as_me:$LINENO: result: yes" >&5
4240echo "${ECHO_T}yes" >&6
4241 else
4242 echo "$as_me:$LINENO: result: no" >&5
4243echo "${ECHO_T}no" >&6
4244 fi
4245
4246
4247 enablestring=
4248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4249echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4250 no_cache=0
4251 # Check whether --enable-ftp or --disable-ftp was given.
4252if test "${enable_ftp+set}" = set; then
4253 enableval="$enable_ftp"
4254
4255 if test "$enableval" = yes; then
4256 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4257 else
4258 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4259 fi
4260
4261else
4262
4263 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4264 if test "x$LINE" != x ; then
4265 eval "DEFAULT_$LINE"
4266 else
4267 no_cache=1
4268 fi
4269
4270 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4271
4272fi;
4273
4274 eval "$ac_cv_use_ftp"
4275 if test "$no_cache" != 1; then
4276 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4277 fi
4278
4279 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4280 echo "$as_me:$LINENO: result: yes" >&5
4281echo "${ECHO_T}yes" >&6
4282 else
4283 echo "$as_me:$LINENO: result: no" >&5
4284echo "${ECHO_T}no" >&6
4285 fi
4286
4287
4288 enablestring=
4289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4290echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4291 no_cache=0
4292 # Check whether --enable-http or --disable-http was given.
4293if test "${enable_http+set}" = set; then
4294 enableval="$enable_http"
4295
4296 if test "$enableval" = yes; then
4297 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4298 else
4299 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4300 fi
4301
4302else
4303
4304 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4305 if test "x$LINE" != x ; then
4306 eval "DEFAULT_$LINE"
4307 else
4308 no_cache=1
4309 fi
4310
4311 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4312
4313fi;
4314
4315 eval "$ac_cv_use_http"
4316 if test "$no_cache" != 1; then
4317 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4318 fi
4319
4320 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4321 echo "$as_me:$LINENO: result: yes" >&5
4322echo "${ECHO_T}yes" >&6
4323 else
4324 echo "$as_me:$LINENO: result: no" >&5
4325echo "${ECHO_T}no" >&6
4326 fi
4327
4328
4329 enablestring=
4330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4331echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4332 no_cache=0
4333 # Check whether --enable-fileproto or --disable-fileproto was given.
4334if test "${enable_fileproto+set}" = set; then
4335 enableval="$enable_fileproto"
4336
4337 if test "$enableval" = yes; then
4338 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4339 else
4340 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4341 fi
4342
4343else
4344
4345 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4353
4354fi;
4355
4356 eval "$ac_cv_use_fileproto"
4357 if test "$no_cache" != 1; then
4358 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4359 fi
4360
4361 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4362 echo "$as_me:$LINENO: result: yes" >&5
4363echo "${ECHO_T}yes" >&6
4364 else
4365 echo "$as_me:$LINENO: result: no" >&5
4366echo "${ECHO_T}no" >&6
4367 fi
4368
4369
4370 enablestring=
4371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4372echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4373 no_cache=0
4374 # Check whether --enable-sockets or --disable-sockets was given.
4375if test "${enable_sockets+set}" = set; then
4376 enableval="$enable_sockets"
4377
4378 if test "$enableval" = yes; then
4379 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4380 else
4381 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4382 fi
4383
4384else
4385
4386 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4387 if test "x$LINE" != x ; then
4388 eval "DEFAULT_$LINE"
4389 else
4390 no_cache=1
4391 fi
4392
4393 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4394
4395fi;
4396
4397 eval "$ac_cv_use_sockets"
4398 if test "$no_cache" != 1; then
4399 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4400 fi
4401
4402 if test "$wxUSE_SOCKETS" = yes; then
4403 echo "$as_me:$LINENO: result: yes" >&5
4404echo "${ECHO_T}yes" >&6
4405 else
4406 echo "$as_me:$LINENO: result: no" >&5
4407echo "${ECHO_T}no" >&6
4408 fi
4409
4410
4411 enablestring=
4412 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4413echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4414 no_cache=0
4415 # Check whether --enable-ole or --disable-ole was given.
4416if test "${enable_ole+set}" = set; then
4417 enableval="$enable_ole"
4418
4419 if test "$enableval" = yes; then
4420 ac_cv_use_ole='wxUSE_OLE=yes'
4421 else
4422 ac_cv_use_ole='wxUSE_OLE=no'
4423 fi
4424
4425else
4426
4427 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4428 if test "x$LINE" != x ; then
4429 eval "DEFAULT_$LINE"
4430 else
4431 no_cache=1
4432 fi
4433
4434 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4435
4436fi;
4437
4438 eval "$ac_cv_use_ole"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_OLE" = yes; then
4444 echo "$as_me:$LINENO: result: yes" >&5
4445echo "${ECHO_T}yes" >&6
4446 else
4447 echo "$as_me:$LINENO: result: no" >&5
4448echo "${ECHO_T}no" >&6
4449 fi
4450
4451
4452 enablestring=
4453 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4454echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4455 no_cache=0
4456 # Check whether --enable-dataobj or --disable-dataobj was given.
4457if test "${enable_dataobj+set}" = set; then
4458 enableval="$enable_dataobj"
4459
4460 if test "$enableval" = yes; then
4461 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4462 else
4463 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4464 fi
4465
4466else
4467
4468 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4476
4477fi;
4478
4479 eval "$ac_cv_use_dataobj"
4480 if test "$no_cache" != 1; then
4481 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4482 fi
4483
4484 if test "$wxUSE_DATAOBJ" = yes; then
4485 echo "$as_me:$LINENO: result: yes" >&5
4486echo "${ECHO_T}yes" >&6
4487 else
4488 echo "$as_me:$LINENO: result: no" >&5
4489echo "${ECHO_T}no" >&6
4490 fi
4491
4492
4493
4494 enablestring=
4495 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4496echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4497 no_cache=0
4498 # Check whether --enable-ipc or --disable-ipc was given.
4499if test "${enable_ipc+set}" = set; then
4500 enableval="$enable_ipc"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_ipc='wxUSE_IPC=yes'
4504 else
4505 ac_cv_use_ipc='wxUSE_IPC=no'
4506 fi
4507
4508else
4509
4510 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4518
4519fi;
4520
4521 eval "$ac_cv_use_ipc"
4522 if test "$no_cache" != 1; then
4523 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4524 fi
4525
4526 if test "$wxUSE_IPC" = yes; then
4527 echo "$as_me:$LINENO: result: yes" >&5
4528echo "${ECHO_T}yes" >&6
4529 else
4530 echo "$as_me:$LINENO: result: no" >&5
4531echo "${ECHO_T}no" >&6
4532 fi
4533
4534
4535
4536 enablestring=
4537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4538echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4539 no_cache=0
4540 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4541if test "${enable_apple_ieee+set}" = set; then
4542 enableval="$enable_apple_ieee"
4543
4544 if test "$enableval" = yes; then
4545 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4546 else
4547 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4548 fi
4549
4550else
4551
4552 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4553 if test "x$LINE" != x ; then
4554 eval "DEFAULT_$LINE"
4555 else
4556 no_cache=1
4557 fi
4558
4559 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4560
4561fi;
4562
4563 eval "$ac_cv_use_apple_ieee"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_APPLE_IEEE" = yes; then
4569 echo "$as_me:$LINENO: result: yes" >&5
4570echo "${ECHO_T}yes" >&6
4571 else
4572 echo "$as_me:$LINENO: result: no" >&5
4573echo "${ECHO_T}no" >&6
4574 fi
4575
4576
4577 enablestring=
4578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4579echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4580 no_cache=0
4581 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4582if test "${enable_catch_segvs+set}" = set; then
4583 enableval="$enable_catch_segvs"
4584
4585 if test "$enableval" = yes; then
4586 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4587 else
4588 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4589 fi
4590
4591else
4592
4593 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4594 if test "x$LINE" != x ; then
4595 eval "DEFAULT_$LINE"
4596 else
4597 no_cache=1
4598 fi
4599
4600 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4601
4602fi;
4603
4604 eval "$ac_cv_use_catch_segvs"
4605 if test "$no_cache" != 1; then
4606 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4607 fi
4608
4609 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4610 echo "$as_me:$LINENO: result: yes" >&5
4611echo "${ECHO_T}yes" >&6
4612 else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615 fi
4616
4617
4618 enablestring=
4619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4620echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4621 no_cache=0
4622 # Check whether --enable-cmdline or --disable-cmdline was given.
4623if test "${enable_cmdline+set}" = set; then
4624 enableval="$enable_cmdline"
4625
4626 if test "$enableval" = yes; then
4627 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4628 else
4629 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4630 fi
4631
4632else
4633
4634 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4635 if test "x$LINE" != x ; then
4636 eval "DEFAULT_$LINE"
4637 else
4638 no_cache=1
4639 fi
4640
4641 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4642
4643fi;
4644
4645 eval "$ac_cv_use_cmdline"
4646 if test "$no_cache" != 1; then
4647 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4648 fi
4649
4650 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4651 echo "$as_me:$LINENO: result: yes" >&5
4652echo "${ECHO_T}yes" >&6
4653 else
4654 echo "$as_me:$LINENO: result: no" >&5
4655echo "${ECHO_T}no" >&6
4656 fi
4657
4658
4659 enablestring=
4660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4661echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4662 no_cache=0
4663 # Check whether --enable-datetime or --disable-datetime was given.
4664if test "${enable_datetime+set}" = set; then
4665 enableval="$enable_datetime"
4666
4667 if test "$enableval" = yes; then
4668 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4669 else
4670 ac_cv_use_datetime='wxUSE_DATETIME=no'
4671 fi
4672
4673else
4674
4675 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4676 if test "x$LINE" != x ; then
4677 eval "DEFAULT_$LINE"
4678 else
4679 no_cache=1
4680 fi
4681
4682 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4683
4684fi;
4685
4686 eval "$ac_cv_use_datetime"
4687 if test "$no_cache" != 1; then
4688 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4689 fi
4690
4691 if test "$wxUSE_DATETIME" = yes; then
4692 echo "$as_me:$LINENO: result: yes" >&5
4693echo "${ECHO_T}yes" >&6
4694 else
4695 echo "$as_me:$LINENO: result: no" >&5
4696echo "${ECHO_T}no" >&6
4697 fi
4698
4699
4700 enablestring=
4701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4702echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4703 no_cache=0
4704 # Check whether --enable-dialupman or --disable-dialupman was given.
4705if test "${enable_dialupman+set}" = set; then
4706 enableval="$enable_dialupman"
4707
4708 if test "$enableval" = yes; then
4709 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4710 else
4711 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4712 fi
4713
4714else
4715
4716 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4717 if test "x$LINE" != x ; then
4718 eval "DEFAULT_$LINE"
4719 else
4720 no_cache=1
4721 fi
4722
4723 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4724
4725fi;
4726
4727 eval "$ac_cv_use_dialupman"
4728 if test "$no_cache" != 1; then
4729 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4730 fi
4731
4732 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4733 echo "$as_me:$LINENO: result: yes" >&5
4734echo "${ECHO_T}yes" >&6
4735 else
4736 echo "$as_me:$LINENO: result: no" >&5
4737echo "${ECHO_T}no" >&6
4738 fi
4739
4740
4741 enablestring=
4742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4743echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4744 no_cache=0
4745 # Check whether --enable-dynlib or --disable-dynlib was given.
4746if test "${enable_dynlib+set}" = set; then
4747 enableval="$enable_dynlib"
4748
4749 if test "$enableval" = yes; then
4750 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4751 else
4752 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4753 fi
4754
4755else
4756
4757 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4758 if test "x$LINE" != x ; then
4759 eval "DEFAULT_$LINE"
4760 else
4761 no_cache=1
4762 fi
4763
4764 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4765
4766fi;
4767
4768 eval "$ac_cv_use_dynlib"
4769 if test "$no_cache" != 1; then
4770 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4771 fi
4772
4773 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4774 echo "$as_me:$LINENO: result: yes" >&5
4775echo "${ECHO_T}yes" >&6
4776 else
4777 echo "$as_me:$LINENO: result: no" >&5
4778echo "${ECHO_T}no" >&6
4779 fi
4780
4781
4782 enablestring=
4783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4784echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4785 no_cache=0
4786 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4787if test "${enable_dynamicloader+set}" = set; then
4788 enableval="$enable_dynamicloader"
4789
4790 if test "$enableval" = yes; then
4791 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4792 else
4793 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4794 fi
4795
4796else
4797
4798 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4799 if test "x$LINE" != x ; then
4800 eval "DEFAULT_$LINE"
4801 else
4802 no_cache=1
4803 fi
4804
4805 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4806
4807fi;
4808
4809 eval "$ac_cv_use_dynamicloader"
4810 if test "$no_cache" != 1; then
4811 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4812 fi
4813
4814 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4815 echo "$as_me:$LINENO: result: yes" >&5
4816echo "${ECHO_T}yes" >&6
4817 else
4818 echo "$as_me:$LINENO: result: no" >&5
4819echo "${ECHO_T}no" >&6
4820 fi
4821
4822
4823 enablestring=
4824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4825echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4826 no_cache=0
4827 # Check whether --enable-exceptions or --disable-exceptions was given.
4828if test "${enable_exceptions+set}" = set; then
4829 enableval="$enable_exceptions"
4830
4831 if test "$enableval" = yes; then
4832 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4833 else
4834 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4835 fi
4836
4837else
4838
4839 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4840 if test "x$LINE" != x ; then
4841 eval "DEFAULT_$LINE"
4842 else
4843 no_cache=1
4844 fi
4845
4846 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4847
4848fi;
4849
4850 eval "$ac_cv_use_exceptions"
4851 if test "$no_cache" != 1; then
4852 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4853 fi
4854
4855 if test "$wxUSE_EXCEPTIONS" = yes; then
4856 echo "$as_me:$LINENO: result: yes" >&5
4857echo "${ECHO_T}yes" >&6
4858 else
4859 echo "$as_me:$LINENO: result: no" >&5
4860echo "${ECHO_T}no" >&6
4861 fi
4862
4863
4864 enablestring=
4865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4866echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
4867 no_cache=0
4868 # Check whether --enable-ffile or --disable-ffile was given.
4869if test "${enable_ffile+set}" = set; then
4870 enableval="$enable_ffile"
4871
4872 if test "$enableval" = yes; then
4873 ac_cv_use_ffile='wxUSE_FFILE=yes'
4874 else
4875 ac_cv_use_ffile='wxUSE_FFILE=no'
4876 fi
4877
4878else
4879
4880 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
4881 if test "x$LINE" != x ; then
4882 eval "DEFAULT_$LINE"
4883 else
4884 no_cache=1
4885 fi
4886
4887 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4888
4889fi;
4890
4891 eval "$ac_cv_use_ffile"
4892 if test "$no_cache" != 1; then
4893 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4894 fi
4895
4896 if test "$wxUSE_FFILE" = yes; then
4897 echo "$as_me:$LINENO: result: yes" >&5
4898echo "${ECHO_T}yes" >&6
4899 else
4900 echo "$as_me:$LINENO: result: no" >&5
4901echo "${ECHO_T}no" >&6
4902 fi
4903
4904
4905 enablestring=
4906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4907echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
4908 no_cache=0
4909 # Check whether --enable-file or --disable-file was given.
4910if test "${enable_file+set}" = set; then
4911 enableval="$enable_file"
4912
4913 if test "$enableval" = yes; then
4914 ac_cv_use_file='wxUSE_FILE=yes'
4915 else
4916 ac_cv_use_file='wxUSE_FILE=no'
4917 fi
4918
4919else
4920
4921 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
4922 if test "x$LINE" != x ; then
4923 eval "DEFAULT_$LINE"
4924 else
4925 no_cache=1
4926 fi
4927
4928 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
4929
4930fi;
4931
4932 eval "$ac_cv_use_file"
4933 if test "$no_cache" != 1; then
4934 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
4935 fi
4936
4937 if test "$wxUSE_FILE" = yes; then
4938 echo "$as_me:$LINENO: result: yes" >&5
4939echo "${ECHO_T}yes" >&6
4940 else
4941 echo "$as_me:$LINENO: result: no" >&5
4942echo "${ECHO_T}no" >&6
4943 fi
4944
4945
4946 enablestring=
4947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4948echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
4949 no_cache=0
4950 # Check whether --enable-filesystem or --disable-filesystem was given.
4951if test "${enable_filesystem+set}" = set; then
4952 enableval="$enable_filesystem"
4953
4954 if test "$enableval" = yes; then
4955 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4956 else
4957 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4958 fi
4959
4960else
4961
4962 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4963 if test "x$LINE" != x ; then
4964 eval "DEFAULT_$LINE"
4965 else
4966 no_cache=1
4967 fi
4968
4969 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4970
4971fi;
4972
4973 eval "$ac_cv_use_filesystem"
4974 if test "$no_cache" != 1; then
4975 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4976 fi
4977
4978 if test "$wxUSE_FILESYSTEM" = yes; then
4979 echo "$as_me:$LINENO: result: yes" >&5
4980echo "${ECHO_T}yes" >&6
4981 else
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
4984 fi
4985
4986
4987 enablestring=
4988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4989echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
4990 no_cache=0
4991 # Check whether --enable-fontmap or --disable-fontmap was given.
4992if test "${enable_fontmap+set}" = set; then
4993 enableval="$enable_fontmap"
4994
4995 if test "$enableval" = yes; then
4996 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4997 else
4998 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4999 fi
5000
5001else
5002
5003 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5004 if test "x$LINE" != x ; then
5005 eval "DEFAULT_$LINE"
5006 else
5007 no_cache=1
5008 fi
5009
5010 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5011
5012fi;
5013
5014 eval "$ac_cv_use_fontmap"
5015 if test "$no_cache" != 1; then
5016 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5017 fi
5018
5019 if test "$wxUSE_FONTMAP" = yes; then
5020 echo "$as_me:$LINENO: result: yes" >&5
5021echo "${ECHO_T}yes" >&6
5022 else
5023 echo "$as_me:$LINENO: result: no" >&5
5024echo "${ECHO_T}no" >&6
5025 fi
5026
5027
5028 enablestring=
5029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5030echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5031 no_cache=0
5032 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5033if test "${enable_fs_inet+set}" = set; then
5034 enableval="$enable_fs_inet"
5035
5036 if test "$enableval" = yes; then
5037 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5038 else
5039 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5040 fi
5041
5042else
5043
5044 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5045 if test "x$LINE" != x ; then
5046 eval "DEFAULT_$LINE"
5047 else
5048 no_cache=1
5049 fi
5050
5051 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5052
5053fi;
5054
5055 eval "$ac_cv_use_fs_inet"
5056 if test "$no_cache" != 1; then
5057 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5058 fi
5059
5060 if test "$wxUSE_FS_INET" = yes; then
5061 echo "$as_me:$LINENO: result: yes" >&5
5062echo "${ECHO_T}yes" >&6
5063 else
5064 echo "$as_me:$LINENO: result: no" >&5
5065echo "${ECHO_T}no" >&6
5066 fi
5067
5068
5069 enablestring=
5070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5071echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5072 no_cache=0
5073 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5074if test "${enable_fs_zip+set}" = set; then
5075 enableval="$enable_fs_zip"
5076
5077 if test "$enableval" = yes; then
5078 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5079 else
5080 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5081 fi
5082
5083else
5084
5085 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5086 if test "x$LINE" != x ; then
5087 eval "DEFAULT_$LINE"
5088 else
5089 no_cache=1
5090 fi
5091
5092 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5093
5094fi;
5095
5096 eval "$ac_cv_use_fs_zip"
5097 if test "$no_cache" != 1; then
5098 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5099 fi
5100
5101 if test "$wxUSE_FS_ZIP" = yes; then
5102 echo "$as_me:$LINENO: result: yes" >&5
5103echo "${ECHO_T}yes" >&6
5104 else
5105 echo "$as_me:$LINENO: result: no" >&5
5106echo "${ECHO_T}no" >&6
5107 fi
5108
5109
5110 enablestring=
5111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5112echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5113 no_cache=0
5114 # Check whether --enable-geometry or --disable-geometry was given.
5115if test "${enable_geometry+set}" = set; then
5116 enableval="$enable_geometry"
5117
5118 if test "$enableval" = yes; then
5119 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5120 else
5121 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5122 fi
5123
5124else
5125
5126 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5127 if test "x$LINE" != x ; then
5128 eval "DEFAULT_$LINE"
5129 else
5130 no_cache=1
5131 fi
5132
5133 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5134
5135fi;
5136
5137 eval "$ac_cv_use_geometry"
5138 if test "$no_cache" != 1; then
5139 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5140 fi
5141
5142 if test "$wxUSE_GEOMETRY" = yes; then
5143 echo "$as_me:$LINENO: result: yes" >&5
5144echo "${ECHO_T}yes" >&6
5145 else
5146 echo "$as_me:$LINENO: result: no" >&5
5147echo "${ECHO_T}no" >&6
5148 fi
5149
5150
5151 enablestring=
5152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5153echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5154 no_cache=0
5155 # Check whether --enable-log or --disable-log was given.
5156if test "${enable_log+set}" = set; then
5157 enableval="$enable_log"
5158
5159 if test "$enableval" = yes; then
5160 ac_cv_use_log='wxUSE_LOG=yes'
5161 else
5162 ac_cv_use_log='wxUSE_LOG=no'
5163 fi
5164
5165else
5166
5167 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5168 if test "x$LINE" != x ; then
5169 eval "DEFAULT_$LINE"
5170 else
5171 no_cache=1
5172 fi
5173
5174 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5175
5176fi;
5177
5178 eval "$ac_cv_use_log"
5179 if test "$no_cache" != 1; then
5180 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5181 fi
5182
5183 if test "$wxUSE_LOG" = yes; then
5184 echo "$as_me:$LINENO: result: yes" >&5
5185echo "${ECHO_T}yes" >&6
5186 else
5187 echo "$as_me:$LINENO: result: no" >&5
5188echo "${ECHO_T}no" >&6
5189 fi
5190
5191
5192 enablestring=
5193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5194echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5195 no_cache=0
5196 # Check whether --enable-longlong or --disable-longlong was given.
5197if test "${enable_longlong+set}" = set; then
5198 enableval="$enable_longlong"
5199
5200 if test "$enableval" = yes; then
5201 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5202 else
5203 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5204 fi
5205
5206else
5207
5208 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5209 if test "x$LINE" != x ; then
5210 eval "DEFAULT_$LINE"
5211 else
5212 no_cache=1
5213 fi
5214
5215 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5216
5217fi;
5218
5219 eval "$ac_cv_use_longlong"
5220 if test "$no_cache" != 1; then
5221 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5222 fi
5223
5224 if test "$wxUSE_LONGLONG" = yes; then
5225 echo "$as_me:$LINENO: result: yes" >&5
5226echo "${ECHO_T}yes" >&6
5227 else
5228 echo "$as_me:$LINENO: result: no" >&5
5229echo "${ECHO_T}no" >&6
5230 fi
5231
5232
5233 enablestring=
5234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5235echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5236 no_cache=0
5237 # Check whether --enable-mimetype or --disable-mimetype was given.
5238if test "${enable_mimetype+set}" = set; then
5239 enableval="$enable_mimetype"
5240
5241 if test "$enableval" = yes; then
5242 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5243 else
5244 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5245 fi
5246
5247else
5248
5249 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5250 if test "x$LINE" != x ; then
5251 eval "DEFAULT_$LINE"
5252 else
5253 no_cache=1
5254 fi
5255
5256 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5257
5258fi;
5259
5260 eval "$ac_cv_use_mimetype"
5261 if test "$no_cache" != 1; then
5262 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5263 fi
5264
5265 if test "$wxUSE_MIMETYPE" = yes; then
5266 echo "$as_me:$LINENO: result: yes" >&5
5267echo "${ECHO_T}yes" >&6
5268 else
5269 echo "$as_me:$LINENO: result: no" >&5
5270echo "${ECHO_T}no" >&6
5271 fi
5272
5273
5274 enablestring=
5275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5276echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5277 no_cache=0
5278 # Check whether --enable-mslu or --disable-mslu was given.
5279if test "${enable_mslu+set}" = set; then
5280 enableval="$enable_mslu"
5281
5282 if test "$enableval" = yes; then
5283 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5284 else
5285 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5286 fi
5287
5288else
5289
5290 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5291 if test "x$LINE" != x ; then
5292 eval "DEFAULT_$LINE"
5293 else
5294 no_cache=1
5295 fi
5296
5297 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5298
5299fi;
5300
5301 eval "$ac_cv_use_mslu"
5302 if test "$no_cache" != 1; then
5303 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5304 fi
5305
5306 if test "$wxUSE_UNICODE_MSLU" = yes; then
5307 echo "$as_me:$LINENO: result: yes" >&5
5308echo "${ECHO_T}yes" >&6
5309 else
5310 echo "$as_me:$LINENO: result: no" >&5
5311echo "${ECHO_T}no" >&6
5312 fi
5313
5314
5315 enablestring=
5316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5317echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5318 no_cache=0
5319 # Check whether --enable-snglinst or --disable-snglinst was given.
5320if test "${enable_snglinst+set}" = set; then
5321 enableval="$enable_snglinst"
5322
5323 if test "$enableval" = yes; then
5324 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5325 else
5326 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5327 fi
5328
5329else
5330
5331 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5332 if test "x$LINE" != x ; then
5333 eval "DEFAULT_$LINE"
5334 else
5335 no_cache=1
5336 fi
5337
5338 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5339
5340fi;
5341
5342 eval "$ac_cv_use_snglinst"
5343 if test "$no_cache" != 1; then
5344 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5345 fi
5346
5347 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5348 echo "$as_me:$LINENO: result: yes" >&5
5349echo "${ECHO_T}yes" >&6
5350 else
5351 echo "$as_me:$LINENO: result: no" >&5
5352echo "${ECHO_T}no" >&6
5353 fi
5354
5355
5356 enablestring=
5357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5358echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5359 no_cache=0
5360 # Check whether --enable-streams or --disable-streams was given.
5361if test "${enable_streams+set}" = set; then
5362 enableval="$enable_streams"
5363
5364 if test "$enableval" = yes; then
5365 ac_cv_use_streams='wxUSE_STREAMS=yes'
5366 else
5367 ac_cv_use_streams='wxUSE_STREAMS=no'
5368 fi
5369
5370else
5371
5372 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5373 if test "x$LINE" != x ; then
5374 eval "DEFAULT_$LINE"
5375 else
5376 no_cache=1
5377 fi
5378
5379 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5380
5381fi;
5382
5383 eval "$ac_cv_use_streams"
5384 if test "$no_cache" != 1; then
5385 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5386 fi
5387
5388 if test "$wxUSE_STREAMS" = yes; then
5389 echo "$as_me:$LINENO: result: yes" >&5
5390echo "${ECHO_T}yes" >&6
5391 else
5392 echo "$as_me:$LINENO: result: no" >&5
5393echo "${ECHO_T}no" >&6
5394 fi
5395
5396
5397 enablestring=
5398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5399echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5400 no_cache=0
5401 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5402if test "${enable_std_iostreams+set}" = set; then
5403 enableval="$enable_std_iostreams"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5407 else
5408 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5409 fi
5410
5411else
5412
5413 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5421
5422fi;
5423
5424 eval "$ac_cv_use_std_iostreams"
5425 if test "$no_cache" != 1; then
5426 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5427 fi
5428
5429 if test "$wxUSE_STD_IOSTREAM" = yes; then
5430 echo "$as_me:$LINENO: result: yes" >&5
5431echo "${ECHO_T}yes" >&6
5432 else
5433 echo "$as_me:$LINENO: result: no" >&5
5434echo "${ECHO_T}no" >&6
5435 fi
5436
5437
5438 enablestring=
5439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5440echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5441 no_cache=0
5442 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5443if test "${enable_stopwatch+set}" = set; then
5444 enableval="$enable_stopwatch"
5445
5446 if test "$enableval" = yes; then
5447 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5448 else
5449 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5450 fi
5451
5452else
5453
5454 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5462
5463fi;
5464
5465 eval "$ac_cv_use_stopwatch"
5466 if test "$no_cache" != 1; then
5467 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5468 fi
5469
5470 if test "$wxUSE_STOPWATCH" = yes; then
5471 echo "$as_me:$LINENO: result: yes" >&5
5472echo "${ECHO_T}yes" >&6
5473 else
5474 echo "$as_me:$LINENO: result: no" >&5
5475echo "${ECHO_T}no" >&6
5476 fi
5477
5478
5479 enablestring=
5480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5481echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5482 no_cache=0
5483 # Check whether --enable-system_options or --disable-system_options was given.
5484if test "${enable_system_options+set}" = set; then
5485 enableval="$enable_system_options"
5486
5487 if test "$enableval" = yes; then
5488 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5489 else
5490 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5491 fi
5492
5493else
5494
5495 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5496 if test "x$LINE" != x ; then
5497 eval "DEFAULT_$LINE"
5498 else
5499 no_cache=1
5500 fi
5501
5502 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5503
5504fi;
5505
5506 eval "$ac_cv_use_system_options"
5507 if test "$no_cache" != 1; then
5508 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5509 fi
5510
5511 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5512 echo "$as_me:$LINENO: result: yes" >&5
5513echo "${ECHO_T}yes" >&6
5514 else
5515 echo "$as_me:$LINENO: result: no" >&5
5516echo "${ECHO_T}no" >&6
5517 fi
5518
5519
5520 enablestring=
5521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5522echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5523 no_cache=0
5524 # Check whether --enable-textbuf or --disable-textbuf was given.
5525if test "${enable_textbuf+set}" = set; then
5526 enableval="$enable_textbuf"
5527
5528 if test "$enableval" = yes; then
5529 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5530 else
5531 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5532 fi
5533
5534else
5535
5536 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5537 if test "x$LINE" != x ; then
5538 eval "DEFAULT_$LINE"
5539 else
5540 no_cache=1
5541 fi
5542
5543 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5544
5545fi;
5546
5547 eval "$ac_cv_use_textbuf"
5548 if test "$no_cache" != 1; then
5549 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5550 fi
5551
5552 if test "$wxUSE_TEXTBUFFER" = yes; then
5553 echo "$as_me:$LINENO: result: yes" >&5
5554echo "${ECHO_T}yes" >&6
5555 else
5556 echo "$as_me:$LINENO: result: no" >&5
5557echo "${ECHO_T}no" >&6
5558 fi
5559
5560
5561 enablestring=
5562 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5563echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5564 no_cache=0
5565 # Check whether --enable-textfile or --disable-textfile was given.
5566if test "${enable_textfile+set}" = set; then
5567 enableval="$enable_textfile"
5568
5569 if test "$enableval" = yes; then
5570 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5571 else
5572 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5573 fi
5574
5575else
5576
5577 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5578 if test "x$LINE" != x ; then
5579 eval "DEFAULT_$LINE"
5580 else
5581 no_cache=1
5582 fi
5583
5584 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5585
5586fi;
5587
5588 eval "$ac_cv_use_textfile"
5589 if test "$no_cache" != 1; then
5590 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5591 fi
5592
5593 if test "$wxUSE_TEXTFILE" = yes; then
5594 echo "$as_me:$LINENO: result: yes" >&5
5595echo "${ECHO_T}yes" >&6
5596 else
5597 echo "$as_me:$LINENO: result: no" >&5
5598echo "${ECHO_T}no" >&6
5599 fi
5600
5601
5602 enablestring=
5603 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5604echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5605 no_cache=0
5606 # Check whether --enable-timer or --disable-timer was given.
5607if test "${enable_timer+set}" = set; then
5608 enableval="$enable_timer"
5609
5610 if test "$enableval" = yes; then
5611 ac_cv_use_timer='wxUSE_TIMER=yes'
5612 else
5613 ac_cv_use_timer='wxUSE_TIMER=no'
5614 fi
5615
5616else
5617
5618 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5619 if test "x$LINE" != x ; then
5620 eval "DEFAULT_$LINE"
5621 else
5622 no_cache=1
5623 fi
5624
5625 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5626
5627fi;
5628
5629 eval "$ac_cv_use_timer"
5630 if test "$no_cache" != 1; then
5631 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5632 fi
5633
5634 if test "$wxUSE_TIMER" = yes; then
5635 echo "$as_me:$LINENO: result: yes" >&5
5636echo "${ECHO_T}yes" >&6
5637 else
5638 echo "$as_me:$LINENO: result: no" >&5
5639echo "${ECHO_T}no" >&6
5640 fi
5641
5642
5643 enablestring=
5644 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5645echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5646 no_cache=0
5647 # Check whether --enable-unicode or --disable-unicode was given.
5648if test "${enable_unicode+set}" = set; then
5649 enableval="$enable_unicode"
5650
5651 if test "$enableval" = yes; then
5652 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5653 else
5654 ac_cv_use_unicode='wxUSE_UNICODE=no'
5655 fi
5656
5657else
5658
5659 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5660 if test "x$LINE" != x ; then
5661 eval "DEFAULT_$LINE"
5662 else
5663 no_cache=1
5664 fi
5665
5666 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5667
5668fi;
5669
5670 eval "$ac_cv_use_unicode"
5671 if test "$no_cache" != 1; then
5672 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5673 fi
5674
5675 if test "$wxUSE_UNICODE" = yes; then
5676 echo "$as_me:$LINENO: result: yes" >&5
5677echo "${ECHO_T}yes" >&6
5678 else
5679 echo "$as_me:$LINENO: result: no" >&5
5680echo "${ECHO_T}no" >&6
5681 fi
5682
5683
5684 enablestring=
5685 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5686echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5687 no_cache=0
5688 # Check whether --enable-sound or --disable-sound was given.
5689if test "${enable_sound+set}" = set; then
5690 enableval="$enable_sound"
5691
5692 if test "$enableval" = yes; then
5693 ac_cv_use_sound='wxUSE_SOUND=yes'
5694 else
5695 ac_cv_use_sound='wxUSE_SOUND=no'
5696 fi
5697
5698else
5699
5700 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5701 if test "x$LINE" != x ; then
5702 eval "DEFAULT_$LINE"
5703 else
5704 no_cache=1
5705 fi
5706
5707 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5708
5709fi;
5710
5711 eval "$ac_cv_use_sound"
5712 if test "$no_cache" != 1; then
5713 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5714 fi
5715
5716 if test "$wxUSE_SOUND" = yes; then
5717 echo "$as_me:$LINENO: result: yes" >&5
5718echo "${ECHO_T}yes" >&6
5719 else
5720 echo "$as_me:$LINENO: result: no" >&5
5721echo "${ECHO_T}no" >&6
5722 fi
5723
5724
5725 enablestring=
5726 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5727echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5728 no_cache=0
5729 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5730if test "${enable_wxprintfv+set}" = set; then
5731 enableval="$enable_wxprintfv"
5732
5733 if test "$enableval" = yes; then
5734 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5735 else
5736 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5737 fi
5738
5739else
5740
5741 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5742 if test "x$LINE" != x ; then
5743 eval "DEFAULT_$LINE"
5744 else
5745 no_cache=1
5746 fi
5747
5748 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5749
5750fi;
5751
5752 eval "$ac_cv_use_wxprintfv"
5753 if test "$no_cache" != 1; then
5754 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5755 fi
5756
5757 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5758 echo "$as_me:$LINENO: result: yes" >&5
5759echo "${ECHO_T}yes" >&6
5760 else
5761 echo "$as_me:$LINENO: result: no" >&5
5762echo "${ECHO_T}no" >&6
5763 fi
5764
5765
5766 enablestring=
5767 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5768echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5769 no_cache=0
5770 # Check whether --enable-zipstream or --disable-zipstream was given.
5771if test "${enable_zipstream+set}" = set; then
5772 enableval="$enable_zipstream"
5773
5774 if test "$enableval" = yes; then
5775 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5776 else
5777 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5778 fi
5779
5780else
5781
5782 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5783 if test "x$LINE" != x ; then
5784 eval "DEFAULT_$LINE"
5785 else
5786 no_cache=1
5787 fi
5788
5789 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5790
5791fi;
5792
5793 eval "$ac_cv_use_zipstream"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_ZIPSTREAM" = yes; then
5799 echo "$as_me:$LINENO: result: yes" >&5
5800echo "${ECHO_T}yes" >&6
5801 else
5802 echo "$as_me:$LINENO: result: no" >&5
5803echo "${ECHO_T}no" >&6
5804 fi
5805
5806
a848cd7e
SC
5807
5808 enablestring=
5809 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5810echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5811 no_cache=0
5812 # Check whether --enable-url or --disable-url was given.
5813if test "${enable_url+set}" = set; then
5814 enableval="$enable_url"
5815
5816 if test "$enableval" = yes; then
5817 ac_cv_use_url='wxUSE_URL=yes'
5818 else
5819 ac_cv_use_url='wxUSE_URL=no'
5820 fi
5821
5822else
5823
5824 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5825 if test "x$LINE" != x ; then
5826 eval "DEFAULT_$LINE"
5827 else
5828 no_cache=1
5829 fi
5830
5831 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
5832
5833fi;
5834
5835 eval "$ac_cv_use_url"
5836 if test "$no_cache" != 1; then
5837 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5838 fi
5839
5840 if test "$wxUSE_URL" = yes; then
5841 echo "$as_me:$LINENO: result: yes" >&5
5842echo "${ECHO_T}yes" >&6
5843 else
5844 echo "$as_me:$LINENO: result: no" >&5
5845echo "${ECHO_T}no" >&6
5846 fi
5847
5848
5849 enablestring=
5850 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5851echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
5852 no_cache=0
5853 # Check whether --enable-protocol or --disable-protocol was given.
5854if test "${enable_protocol+set}" = set; then
5855 enableval="$enable_protocol"
5856
5857 if test "$enableval" = yes; then
5858 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5859 else
5860 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5861 fi
5862
5863else
5864
5865 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5866 if test "x$LINE" != x ; then
5867 eval "DEFAULT_$LINE"
5868 else
5869 no_cache=1
5870 fi
5871
5872 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
5873
5874fi;
5875
5876 eval "$ac_cv_use_protocol"
5877 if test "$no_cache" != 1; then
5878 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5879 fi
5880
5881 if test "$wxUSE_PROTOCOL" = yes; then
5882 echo "$as_me:$LINENO: result: yes" >&5
5883echo "${ECHO_T}yes" >&6
5884 else
5885 echo "$as_me:$LINENO: result: no" >&5
5886echo "${ECHO_T}no" >&6
5887 fi
5888
5889
5890 enablestring=
5891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5892echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
5893 no_cache=0
5894 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5895if test "${enable_protocol_http+set}" = set; then
5896 enableval="$enable_protocol_http"
5897
5898 if test "$enableval" = yes; then
5899 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5900 else
5901 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5902 fi
5903
5904else
5905
5906 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5907 if test "x$LINE" != x ; then
5908 eval "DEFAULT_$LINE"
5909 else
5910 no_cache=1
5911 fi
5912
5913 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
5914
5915fi;
5916
5917 eval "$ac_cv_use_protocol_http"
5918 if test "$no_cache" != 1; then
5919 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5920 fi
5921
5922 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
5923 echo "$as_me:$LINENO: result: yes" >&5
5924echo "${ECHO_T}yes" >&6
5925 else
5926 echo "$as_me:$LINENO: result: no" >&5
5927echo "${ECHO_T}no" >&6
5928 fi
5929
5930
5931 enablestring=
5932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5933echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
5934 no_cache=0
5935 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5936if test "${enable_protocol_ftp+set}" = set; then
5937 enableval="$enable_protocol_ftp"
5938
5939 if test "$enableval" = yes; then
5940 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5941 else
5942 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5943 fi
5944
5945else
5946
5947 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5948 if test "x$LINE" != x ; then
5949 eval "DEFAULT_$LINE"
5950 else
5951 no_cache=1
5952 fi
5953
5954 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
5955
5956fi;
5957
5958 eval "$ac_cv_use_protocol_ftp"
5959 if test "$no_cache" != 1; then
5960 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5961 fi
5962
5963 if test "$wxUSE_PROTOCOL_FTP" = yes; then
5964 echo "$as_me:$LINENO: result: yes" >&5
5965echo "${ECHO_T}yes" >&6
5966 else
5967 echo "$as_me:$LINENO: result: no" >&5
5968echo "${ECHO_T}no" >&6
5969 fi
5970
5971
5972 enablestring=
5973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5974echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
5975 no_cache=0
5976 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5977if test "${enable_protocol_file+set}" = set; then
5978 enableval="$enable_protocol_file"
5979
5980 if test "$enableval" = yes; then
5981 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5982 else
5983 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5984 fi
5985
5986else
5987
5988 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5989 if test "x$LINE" != x ; then
5990 eval "DEFAULT_$LINE"
5991 else
5992 no_cache=1
5993 fi
5994
5995 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
5996
5997fi;
5998
5999 eval "$ac_cv_use_protocol_file"
6000 if test "$no_cache" != 1; then
6001 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6002 fi
6003
6004 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6005 echo "$as_me:$LINENO: result: yes" >&5
6006echo "${ECHO_T}yes" >&6
6007 else
6008 echo "$as_me:$LINENO: result: no" >&5
6009echo "${ECHO_T}no" >&6
6010 fi
6011
6012
6013
6014
6015
6016 enablestring=
6017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6018echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6019 no_cache=0
6020 # Check whether --enable-threads or --disable-threads was given.
6021if test "${enable_threads+set}" = set; then
6022 enableval="$enable_threads"
6023
6024 if test "$enableval" = yes; then
6025 ac_cv_use_threads='wxUSE_THREADS=yes'
6026 else
6027 ac_cv_use_threads='wxUSE_THREADS=no'
6028 fi
6029
6030else
6031
6032 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6033 if test "x$LINE" != x ; then
6034 eval "DEFAULT_$LINE"
6035 else
6036 no_cache=1
6037 fi
6038
6039 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6040
6041fi;
6042
6043 eval "$ac_cv_use_threads"
6044 if test "$no_cache" != 1; then
6045 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6046 fi
6047
6048 if test "$wxUSE_THREADS" = yes; then
6049 echo "$as_me:$LINENO: result: yes" >&5
6050echo "${ECHO_T}yes" >&6
6051 else
6052 echo "$as_me:$LINENO: result: no" >&5
6053echo "${ECHO_T}no" >&6
6054 fi
6055
6056
6057if test "$wxUSE_GUI" = "yes"; then
6058
6059
6060
6061 enablestring=
6062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6063echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6064 no_cache=0
6065 # Check whether --enable-docview or --disable-docview was given.
6066if test "${enable_docview+set}" = set; then
6067 enableval="$enable_docview"
6068
6069 if test "$enableval" = yes; then
6070 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6071 else
6072 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6073 fi
6074
6075else
6076
6077 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6085
6086fi;
6087
6088 eval "$ac_cv_use_docview"
6089 if test "$no_cache" != 1; then
6090 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6091 fi
6092
6093 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6094 echo "$as_me:$LINENO: result: yes" >&5
6095echo "${ECHO_T}yes" >&6
6096 else
6097 echo "$as_me:$LINENO: result: no" >&5
6098echo "${ECHO_T}no" >&6
6099 fi
6100
6101
6102 enablestring=
6103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6104echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6105 no_cache=0
6106 # Check whether --enable-help or --disable-help was given.
6107if test "${enable_help+set}" = set; then
6108 enableval="$enable_help"
6109
6110 if test "$enableval" = yes; then
6111 ac_cv_use_help='wxUSE_HELP=yes'
6112 else
6113 ac_cv_use_help='wxUSE_HELP=no'
6114 fi
6115
6116else
6117
6118 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6119 if test "x$LINE" != x ; then
6120 eval "DEFAULT_$LINE"
6121 else
6122 no_cache=1
6123 fi
6124
6125 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6126
6127fi;
6128
6129 eval "$ac_cv_use_help"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_HELP" = yes; then
6135 echo "$as_me:$LINENO: result: yes" >&5
6136echo "${ECHO_T}yes" >&6
6137 else
6138 echo "$as_me:$LINENO: result: no" >&5
6139echo "${ECHO_T}no" >&6
6140 fi
6141
6142
6143 enablestring=
6144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6145echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6146 no_cache=0
6147 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6148if test "${enable_mshtmlhelp+set}" = set; then
6149 enableval="$enable_mshtmlhelp"
6150
6151 if test "$enableval" = yes; then
6152 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6153 else
6154 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6155 fi
6156
6157else
6158
6159 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6160 if test "x$LINE" != x ; then
6161 eval "DEFAULT_$LINE"
6162 else
6163 no_cache=1
6164 fi
6165
6166 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6167
6168fi;
6169
6170 eval "$ac_cv_use_mshtmlhelp"
6171 if test "$no_cache" != 1; then
6172 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6173 fi
6174
6175 if test "$wxUSE_MS_HTML_HELP" = yes; then
6176 echo "$as_me:$LINENO: result: yes" >&5
6177echo "${ECHO_T}yes" >&6
6178 else
6179 echo "$as_me:$LINENO: result: no" >&5
6180echo "${ECHO_T}no" >&6
6181 fi
6182
6183
6184 enablestring=
6185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6186echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6187 no_cache=0
6188 # Check whether --enable-html or --disable-html was given.
6189if test "${enable_html+set}" = set; then
6190 enableval="$enable_html"
6191
6192 if test "$enableval" = yes; then
6193 ac_cv_use_html='wxUSE_HTML=yes'
6194 else
6195 ac_cv_use_html='wxUSE_HTML=no'
6196 fi
6197
6198else
6199
6200 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6201 if test "x$LINE" != x ; then
6202 eval "DEFAULT_$LINE"
6203 else
6204 no_cache=1
6205 fi
6206
6207 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6208
6209fi;
6210
6211 eval "$ac_cv_use_html"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_HTML" = yes; then
6217 echo "$as_me:$LINENO: result: yes" >&5
6218echo "${ECHO_T}yes" >&6
6219 else
6220 echo "$as_me:$LINENO: result: no" >&5
6221echo "${ECHO_T}no" >&6
6222 fi
6223
6224
6225 enablestring=
6226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6227echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6228 no_cache=0
6229 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6230if test "${enable_htmlhelp+set}" = set; then
6231 enableval="$enable_htmlhelp"
6232
6233 if test "$enableval" = yes; then
6234 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6235 else
6236 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6237 fi
6238
6239else
6240
6241 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6249
6250fi;
6251
6252 eval "$ac_cv_use_htmlhelp"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_WXHTML_HELP" = yes; then
6258 echo "$as_me:$LINENO: result: yes" >&5
6259echo "${ECHO_T}yes" >&6
6260 else
6261 echo "$as_me:$LINENO: result: no" >&5
6262echo "${ECHO_T}no" >&6
6263 fi
6264
6265
9a8f0513
VS
6266 enablestring=
6267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6268echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6269 no_cache=0
6270 # Check whether --enable-xrc or --disable-xrc was given.
6271if test "${enable_xrc+set}" = set; then
6272 enableval="$enable_xrc"
6273
6274 if test "$enableval" = yes; then
6275 ac_cv_use_xrc='wxUSE_XRC=yes'
6276 else
6277 ac_cv_use_xrc='wxUSE_XRC=no'
6278 fi
6279
6280else
6281
6282 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6283 if test "x$LINE" != x ; then
6284 eval "DEFAULT_$LINE"
6285 else
6286 no_cache=1
6287 fi
6288
6289 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6290
6291fi;
6292
6293 eval "$ac_cv_use_xrc"
6294 if test "$no_cache" != 1; then
6295 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6296 fi
6297
6298 if test "$wxUSE_XRC" = yes; then
6299 echo "$as_me:$LINENO: result: yes" >&5
6300echo "${ECHO_T}yes" >&6
6301 else
6302 echo "$as_me:$LINENO: result: no" >&5
6303echo "${ECHO_T}no" >&6
6304 fi
6305
6306
a848cd7e
SC
6307 enablestring=
6308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6309echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6310 no_cache=0
6311 # Check whether --enable-constraints or --disable-constraints was given.
6312if test "${enable_constraints+set}" = set; then
6313 enableval="$enable_constraints"
6314
6315 if test "$enableval" = yes; then
6316 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6317 else
6318 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6319 fi
6320
6321else
6322
6323 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6324 if test "x$LINE" != x ; then
6325 eval "DEFAULT_$LINE"
6326 else
6327 no_cache=1
6328 fi
6329
6330 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6331
6332fi;
6333
6334 eval "$ac_cv_use_constraints"
6335 if test "$no_cache" != 1; then
6336 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6337 fi
6338
6339 if test "$wxUSE_CONSTRAINTS" = yes; then
6340 echo "$as_me:$LINENO: result: yes" >&5
6341echo "${ECHO_T}yes" >&6
6342 else
6343 echo "$as_me:$LINENO: result: no" >&5
6344echo "${ECHO_T}no" >&6
6345 fi
6346
6347
6348 enablestring=
6349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6350echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6351 no_cache=0
6352 # Check whether --enable-printarch or --disable-printarch was given.
6353if test "${enable_printarch+set}" = set; then
6354 enableval="$enable_printarch"
6355
6356 if test "$enableval" = yes; then
6357 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6358 else
6359 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6360 fi
6361
6362else
6363
6364 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6365 if test "x$LINE" != x ; then
6366 eval "DEFAULT_$LINE"
6367 else
6368 no_cache=1
6369 fi
6370
6371 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6372
6373fi;
6374
6375 eval "$ac_cv_use_printarch"
6376 if test "$no_cache" != 1; then
6377 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6378 fi
6379
6380 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6381 echo "$as_me:$LINENO: result: yes" >&5
6382echo "${ECHO_T}yes" >&6
6383 else
6384 echo "$as_me:$LINENO: result: no" >&5
6385echo "${ECHO_T}no" >&6
6386 fi
6387
6388
6389 enablestring=
6390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6391echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6392 no_cache=0
6393 # Check whether --enable-mdi or --disable-mdi was given.
6394if test "${enable_mdi+set}" = set; then
6395 enableval="$enable_mdi"
6396
6397 if test "$enableval" = yes; then
8a7b1113 6398 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6399 else
8a7b1113 6400 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6401 fi
6402
6403else
6404
8a7b1113 6405 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
8a7b1113 6412 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6413
6414fi;
6415
6416 eval "$ac_cv_use_mdi"
6417 if test "$no_cache" != 1; then
6418 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6419 fi
6420
8a7b1113
VZ
6421 if test "$wxUSE_MDI" = yes; then
6422 echo "$as_me:$LINENO: result: yes" >&5
6423echo "${ECHO_T}yes" >&6
6424 else
6425 echo "$as_me:$LINENO: result: no" >&5
6426echo "${ECHO_T}no" >&6
6427 fi
6428
6429
6430 enablestring=
6431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6432echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6433 no_cache=0
6434 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6435if test "${enable_mdidoc+set}" = set; then
6436 enableval="$enable_mdidoc"
6437
6438 if test "$enableval" = yes; then
6439 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6440 else
6441 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6442 fi
6443
6444else
6445
6446 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6447 if test "x$LINE" != x ; then
6448 eval "DEFAULT_$LINE"
6449 else
6450 no_cache=1
6451 fi
6452
6453 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6454
6455fi;
6456
6457 eval "$ac_cv_use_mdidoc"
6458 if test "$no_cache" != 1; then
6459 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6460 fi
6461
a848cd7e
SC
6462 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6463 echo "$as_me:$LINENO: result: yes" >&5
6464echo "${ECHO_T}yes" >&6
6465 else
6466 echo "$as_me:$LINENO: result: no" >&5
6467echo "${ECHO_T}no" >&6
6468 fi
6469
6470
6471 enablestring=
6472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6473echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6474 no_cache=0
6475 # Check whether --enable-loggui or --disable-loggui was given.
6476if test "${enable_loggui+set}" = set; then
6477 enableval="$enable_loggui"
6478
6479 if test "$enableval" = yes; then
6480 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6481 else
6482 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6483 fi
6484
6485else
6486
6487 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6488 if test "x$LINE" != x ; then
6489 eval "DEFAULT_$LINE"
6490 else
6491 no_cache=1
6492 fi
6493
6494 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6495
6496fi;
6497
6498 eval "$ac_cv_use_loggui"
6499 if test "$no_cache" != 1; then
6500 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6501 fi
6502
6503 if test "$wxUSE_LOGGUI" = yes; then
6504 echo "$as_me:$LINENO: result: yes" >&5
6505echo "${ECHO_T}yes" >&6
6506 else
6507 echo "$as_me:$LINENO: result: no" >&5
6508echo "${ECHO_T}no" >&6
6509 fi
6510
6511
6512 enablestring=
6513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6514echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6515 no_cache=0
6516 # Check whether --enable-logwin or --disable-logwin was given.
6517if test "${enable_logwin+set}" = set; then
6518 enableval="$enable_logwin"
6519
6520 if test "$enableval" = yes; then
6521 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6522 else
6523 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6524 fi
6525
6526else
6527
6528 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6529 if test "x$LINE" != x ; then
6530 eval "DEFAULT_$LINE"
6531 else
6532 no_cache=1
6533 fi
6534
6535 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6536
6537fi;
6538
6539 eval "$ac_cv_use_logwin"
6540 if test "$no_cache" != 1; then
6541 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6542 fi
6543
6544 if test "$wxUSE_LOGWINDOW" = yes; then
6545 echo "$as_me:$LINENO: result: yes" >&5
6546echo "${ECHO_T}yes" >&6
6547 else
6548 echo "$as_me:$LINENO: result: no" >&5
6549echo "${ECHO_T}no" >&6
6550 fi
6551
6552
6553 enablestring=
6554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6555echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6556 no_cache=0
6557 # Check whether --enable-logdialog or --disable-logdialog was given.
6558if test "${enable_logdialog+set}" = set; then
6559 enableval="$enable_logdialog"
6560
6561 if test "$enableval" = yes; then
6562 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6563 else
6564 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6565 fi
6566
6567else
6568
6569 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6570 if test "x$LINE" != x ; then
6571 eval "DEFAULT_$LINE"
6572 else
6573 no_cache=1
6574 fi
6575
6576 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6577
6578fi;
6579
6580 eval "$ac_cv_use_logdialog"
6581 if test "$no_cache" != 1; then
6582 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6583 fi
6584
6585 if test "$wxUSE_LOGDIALOG" = yes; then
6586 echo "$as_me:$LINENO: result: yes" >&5
6587echo "${ECHO_T}yes" >&6
6588 else
6589 echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6
6591 fi
6592
6593
646b6ec1
VS
6594 enablestring=
6595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6596echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6597 no_cache=0
6598 # Check whether --enable-webkit or --disable-webkit was given.
6599if test "${enable_webkit+set}" = set; then
6600 enableval="$enable_webkit"
6601
6602 if test "$enableval" = yes; then
6603 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6604 else
6605 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6606 fi
6607
6608else
6609
6610 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6611 if test "x$LINE" != x ; then
6612 eval "DEFAULT_$LINE"
6613 else
6614 no_cache=1
6615 fi
6616
6617 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6618
6619fi;
6620
6621 eval "$ac_cv_use_webkit"
6622 if test "$no_cache" != 1; then
6623 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6624 fi
6625
6626 if test "$wxUSE_WEBKIT" = yes; then
6627 echo "$as_me:$LINENO: result: yes" >&5
6628echo "${ECHO_T}yes" >&6
6629 else
6630 echo "$as_me:$LINENO: result: no" >&5
6631echo "${ECHO_T}no" >&6
6632 fi
6633
6634
a848cd7e
SC
6635
6636 enablestring=
6637 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6638echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6639 no_cache=0
6640 # Check whether --enable-postscript or --disable-postscript was given.
6641if test "${enable_postscript+set}" = set; then
6642 enableval="$enable_postscript"
6643
6644 if test "$enableval" = yes; then
6645 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6646 else
6647 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6648 fi
6649
6650else
6651
6652 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6653 if test "x$LINE" != x ; then
6654 eval "DEFAULT_$LINE"
6655 else
6656 no_cache=1
6657 fi
6658
6659 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6660
6661fi;
6662
6663 eval "$ac_cv_use_postscript"
6664 if test "$no_cache" != 1; then
6665 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6666 fi
6667
6668 if test "$wxUSE_POSTSCRIPT" = yes; then
6669 echo "$as_me:$LINENO: result: yes" >&5
6670echo "${ECHO_T}yes" >&6
6671 else
6672 echo "$as_me:$LINENO: result: no" >&5
6673echo "${ECHO_T}no" >&6
6674 fi
6675
6676
6677
6678
6679
6680 enablestring=
6681 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6682echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6683 no_cache=0
6684 # Check whether --enable-prologio or --disable-prologio was given.
6685if test "${enable_prologio+set}" = set; then
6686 enableval="$enable_prologio"
6687
6688 if test "$enableval" = yes; then
6689 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6690 else
6691 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6692 fi
6693
6694else
6695
6696 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6697 if test "x$LINE" != x ; then
6698 eval "DEFAULT_$LINE"
6699 else
6700 no_cache=1
6701 fi
6702
6703 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6704
6705fi;
6706
6707 eval "$ac_cv_use_prologio"
6708 if test "$no_cache" != 1; then
6709 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6710 fi
6711
6712 if test "$wxUSE_PROLOGIO" = yes; then
6713 echo "$as_me:$LINENO: result: yes" >&5
6714echo "${ECHO_T}yes" >&6
6715 else
6716 echo "$as_me:$LINENO: result: no" >&5
6717echo "${ECHO_T}no" >&6
6718 fi
6719
6720
6721 enablestring=
6722 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6723echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6724 no_cache=0
6725 # Check whether --enable-resources or --disable-resources was given.
6726if test "${enable_resources+set}" = set; then
6727 enableval="$enable_resources"
6728
6729 if test "$enableval" = yes; then
6730 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6731 else
6732 ac_cv_use_resources='wxUSE_RESOURCES=no'
6733 fi
6734
6735else
6736
6737 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6738 if test "x$LINE" != x ; then
6739 eval "DEFAULT_$LINE"
6740 else
6741 no_cache=1
6742 fi
6743
6744 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6745
6746fi;
6747
6748 eval "$ac_cv_use_resources"
6749 if test "$no_cache" != 1; then
6750 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6751 fi
6752
6753 if test "$wxUSE_RESOURCES" = yes; then
6754 echo "$as_me:$LINENO: result: yes" >&5
6755echo "${ECHO_T}yes" >&6
6756 else
6757 echo "$as_me:$LINENO: result: no" >&5
6758echo "${ECHO_T}no" >&6
6759 fi
6760
6761
6762
6763
6764 enablestring=
6765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6766echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6767 no_cache=0
6768 # Check whether --enable-clipboard or --disable-clipboard was given.
6769if test "${enable_clipboard+set}" = set; then
6770 enableval="$enable_clipboard"
6771
6772 if test "$enableval" = yes; then
6773 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6774 else
6775 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6776 fi
6777
6778else
6779
6780 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6781 if test "x$LINE" != x ; then
6782 eval "DEFAULT_$LINE"
6783 else
6784 no_cache=1
6785 fi
6786
6787 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6788
6789fi;
6790
6791 eval "$ac_cv_use_clipboard"
6792 if test "$no_cache" != 1; then
6793 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6794 fi
6795
6796 if test "$wxUSE_CLIPBOARD" = yes; then
6797 echo "$as_me:$LINENO: result: yes" >&5
6798echo "${ECHO_T}yes" >&6
6799 else
6800 echo "$as_me:$LINENO: result: no" >&5
6801echo "${ECHO_T}no" >&6
6802 fi
6803
6804
6805 enablestring=
6806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6807echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6808 no_cache=0
6809 # Check whether --enable-dnd or --disable-dnd was given.
6810if test "${enable_dnd+set}" = set; then
6811 enableval="$enable_dnd"
6812
6813 if test "$enableval" = yes; then
6814 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6815 else
6816 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6817 fi
6818
6819else
6820
6821 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6822 if test "x$LINE" != x ; then
6823 eval "DEFAULT_$LINE"
6824 else
6825 no_cache=1
6826 fi
6827
6828 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6829
6830fi;
6831
6832 eval "$ac_cv_use_dnd"
6833 if test "$no_cache" != 1; then
6834 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6835 fi
6836
6837 if test "$wxUSE_DRAG_AND_DROP" = yes; then
6838 echo "$as_me:$LINENO: result: yes" >&5
6839echo "${ECHO_T}yes" >&6
6840 else
6841 echo "$as_me:$LINENO: result: no" >&5
6842echo "${ECHO_T}no" >&6
6843 fi
6844
6845
6846 enablestring=
6847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6848echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
6849 no_cache=0
6850 # Check whether --enable-metafile or --disable-metafile was given.
6851if test "${enable_metafile+set}" = set; then
6852 enableval="$enable_metafile"
6853
6854 if test "$enableval" = yes; then
6855 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6856 else
6857 ac_cv_use_metafile='wxUSE_METAFILE=no'
6858 fi
6859
6860else
6861
6862 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6863 if test "x$LINE" != x ; then
6864 eval "DEFAULT_$LINE"
6865 else
6866 no_cache=1
6867 fi
6868
6869 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
6870
6871fi;
6872
6873 eval "$ac_cv_use_metafile"
6874 if test "$no_cache" != 1; then
6875 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6876 fi
6877
6878 if test "$wxUSE_METAFILE" = yes; then
6879 echo "$as_me:$LINENO: result: yes" >&5
6880echo "${ECHO_T}yes" >&6
6881 else
6882 echo "$as_me:$LINENO: result: no" >&5
6883echo "${ECHO_T}no" >&6
6884 fi
6885
6886
6887
6888
6889
6890 enablestring=
6891 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6892echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
6893 no_cache=0
6894 # Check whether --enable-controls or --disable-controls was given.
6895if test "${enable_controls+set}" = set; then
6896 enableval="$enable_controls"
6897
6898 if test "$enableval" = yes; then
6899 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6900 else
6901 ac_cv_use_controls='wxUSE_CONTROLS=no'
6902 fi
6903
6904else
6905
6906 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6907 if test "x$LINE" != x ; then
6908 eval "DEFAULT_$LINE"
6909 else
6910 no_cache=1
6911 fi
6912
6913 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
6914
6915fi;
6916
6917 eval "$ac_cv_use_controls"
6918 if test "$no_cache" != 1; then
6919 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6920 fi
6921
6922 if test "$wxUSE_CONTROLS" = yes; then
6923 echo "$as_me:$LINENO: result: yes" >&5
6924echo "${ECHO_T}yes" >&6
6925 else
6926 echo "$as_me:$LINENO: result: no" >&5
6927echo "${ECHO_T}no" >&6
6928 fi
6929
6930
6931if test "$wxUSE_CONTROLS" = "yes"; then
6932 DEFAULT_wxUSE_ACCEL=yes
6933 DEFAULT_wxUSE_BMPBUTTON=yes
6934 DEFAULT_wxUSE_BUTTON=yes
6935 DEFAULT_wxUSE_CALCTRL=no
6936 DEFAULT_wxUSE_CARET=yes
6937 DEFAULT_wxUSE_COMBOBOX=yes
6938 DEFAULT_wxUSE_CHECKBOX=yes
6939 DEFAULT_wxUSE_CHECKLISTBOX=yes
6940 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 6941 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
6942 DEFAULT_wxUSE_GAUGE=yes
6943 DEFAULT_wxUSE_GRID=yes
6944 DEFAULT_wxUSE_IMAGLIST=yes
6945 DEFAULT_wxUSE_LISTBOOK=yes
6946 DEFAULT_wxUSE_LISTBOX=yes
6947 DEFAULT_wxUSE_LISTCTRL=yes
6948 DEFAULT_wxUSE_NOTEBOOK=yes
6949 DEFAULT_wxUSE_RADIOBOX=yes
6950 DEFAULT_wxUSE_RADIOBTN=yes
6951 DEFAULT_wxUSE_SASH=yes
6952 DEFAULT_wxUSE_SCROLLBAR=yes
6953 DEFAULT_wxUSE_SLIDER=yes
6954 DEFAULT_wxUSE_SPINBTN=yes
6955 DEFAULT_wxUSE_SPINCTRL=yes
6956 DEFAULT_wxUSE_SPLITTER=yes
6957 DEFAULT_wxUSE_STATBMP=yes
6958 DEFAULT_wxUSE_STATBOX=yes
6959 DEFAULT_wxUSE_STATLINE=yes
6960 DEFAULT_wxUSE_STATUSBAR=yes
6961 DEFAULT_wxUSE_TAB_DIALOG=yes
6962 DEFAULT_wxUSE_TOGGLEBTN=yes
6963 DEFAULT_wxUSE_TOOLBAR=yes
6964 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6965 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
6966 DEFAULT_wxUSE_TOOLTIPS=yes
6967 DEFAULT_wxUSE_TREECTRL=yes
6968 DEFAULT_wxUSE_POPUPWIN=yes
6969 DEFAULT_wxUSE_TIPWINDOW=yes
6970elif test "$wxUSE_CONTROLS" = "no"; then
6971 DEFAULT_wxUSE_ACCEL=no
6972 DEFAULT_wxUSE_BMPBUTTON=no
6973 DEFAULT_wxUSE_BUTTON=no
6974 DEFAULT_wxUSE_CALCTRL=no
6975 DEFAULT_wxUSE_CARET=no
6976 DEFAULT_wxUSE_COMBOBOX=no
6977 DEFAULT_wxUSE_CHECKBOX=no
6978 DEFAULT_wxUSE_CHECKLISTBOX=no
6979 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 6980 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
6981 DEFAULT_wxUSE_GAUGE=no
6982 DEFAULT_wxUSE_GRID=no
6983 DEFAULT_wxUSE_IMAGLIST=no
6984 DEFAULT_wxUSE_LISTBOOK=no
6985 DEFAULT_wxUSE_LISTBOX=no
6986 DEFAULT_wxUSE_LISTCTRL=no
6987 DEFAULT_wxUSE_NOTEBOOK=no
6988 DEFAULT_wxUSE_RADIOBOX=no
6989 DEFAULT_wxUSE_RADIOBTN=no
6990 DEFAULT_wxUSE_SASH=no
6991 DEFAULT_wxUSE_SCROLLBAR=no
6992 DEFAULT_wxUSE_SLIDER=no
6993 DEFAULT_wxUSE_SPINBTN=no
6994 DEFAULT_wxUSE_SPINCTRL=no
6995 DEFAULT_wxUSE_SPLITTER=no
6996 DEFAULT_wxUSE_STATBMP=no
6997 DEFAULT_wxUSE_STATBOX=no
6998 DEFAULT_wxUSE_STATLINE=no
6999 DEFAULT_wxUSE_STATUSBAR=no
7000 DEFAULT_wxUSE_TAB_DIALOG=no
7001 DEFAULT_wxUSE_TOGGLEBTN=no
7002 DEFAULT_wxUSE_TOOLBAR=no
7003 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7004 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7005 DEFAULT_wxUSE_TOOLTIPS=no
7006 DEFAULT_wxUSE_TREECTRL=no
7007 DEFAULT_wxUSE_POPUPWIN=no
7008 DEFAULT_wxUSE_TIPWINDOW=no
7009fi
7010
7011## FIXME: This is a blatant hack
7012if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
7013 wxUSE_PRINTING_ARCHITECTURE=no
7014 wxUSE_DRAG_AND_DROP=no
a848cd7e
SC
7015 DEFAULT_wxUSE_TOOLTIPS=no
7016 DEFAULT_wxUSE_DRAGIMAGE=no
7017fi
7018
7019
7020 enablestring=
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7023 no_cache=0
7024 # Check whether --enable-accel or --disable-accel was given.
7025if test "${enable_accel+set}" = set; then
7026 enableval="$enable_accel"
7027
7028 if test "$enableval" = yes; then
7029 ac_cv_use_accel='wxUSE_ACCEL=yes'
7030 else
7031 ac_cv_use_accel='wxUSE_ACCEL=no'
7032 fi
7033
7034else
7035
7036 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7044
7045fi;
7046
7047 eval "$ac_cv_use_accel"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_ACCEL" = yes; then
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
7055 else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058 fi
7059
7060
7061 enablestring=
7062 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7063echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7064 no_cache=0
7065 # Check whether --enable-button or --disable-button was given.
7066if test "${enable_button+set}" = set; then
7067 enableval="$enable_button"
7068
7069 if test "$enableval" = yes; then
7070 ac_cv_use_button='wxUSE_BUTTON=yes'
7071 else
7072 ac_cv_use_button='wxUSE_BUTTON=no'
7073 fi
7074
7075else
7076
7077 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7078 if test "x$LINE" != x ; then
7079 eval "DEFAULT_$LINE"
7080 else
7081 no_cache=1
7082 fi
7083
7084 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7085
7086fi;
7087
7088 eval "$ac_cv_use_button"
7089 if test "$no_cache" != 1; then
7090 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7091 fi
7092
7093 if test "$wxUSE_BUTTON" = yes; then
7094 echo "$as_me:$LINENO: result: yes" >&5
7095echo "${ECHO_T}yes" >&6
7096 else
7097 echo "$as_me:$LINENO: result: no" >&5
7098echo "${ECHO_T}no" >&6
7099 fi
7100
7101
7102 enablestring=
7103 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7104echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7105 no_cache=0
7106 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7107if test "${enable_bmpbutton+set}" = set; then
7108 enableval="$enable_bmpbutton"
7109
7110 if test "$enableval" = yes; then
7111 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7112 else
7113 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7114 fi
7115
7116else
7117
7118 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7119 if test "x$LINE" != x ; then
7120 eval "DEFAULT_$LINE"
7121 else
7122 no_cache=1
7123 fi
7124
7125 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7126
7127fi;
7128
7129 eval "$ac_cv_use_bmpbutton"
7130 if test "$no_cache" != 1; then
7131 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7132 fi
7133
7134 if test "$wxUSE_BMPBUTTON" = yes; then
7135 echo "$as_me:$LINENO: result: yes" >&5
7136echo "${ECHO_T}yes" >&6
7137 else
7138 echo "$as_me:$LINENO: result: no" >&5
7139echo "${ECHO_T}no" >&6
7140 fi
7141
7142
7143 enablestring=
7144 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7145echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7146 no_cache=0
7147 # Check whether --enable-calendar or --disable-calendar was given.
7148if test "${enable_calendar+set}" = set; then
7149 enableval="$enable_calendar"
7150
7151 if test "$enableval" = yes; then
7152 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7153 else
7154 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7155 fi
7156
7157else
7158
7159 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7160 if test "x$LINE" != x ; then
7161 eval "DEFAULT_$LINE"
7162 else
7163 no_cache=1
7164 fi
7165
7166 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7167
7168fi;
7169
7170 eval "$ac_cv_use_calendar"
7171 if test "$no_cache" != 1; then
7172 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7173 fi
7174
7175 if test "$wxUSE_CALCTRL" = yes; then
7176 echo "$as_me:$LINENO: result: yes" >&5
7177echo "${ECHO_T}yes" >&6
7178 else
7179 echo "$as_me:$LINENO: result: no" >&5
7180echo "${ECHO_T}no" >&6
7181 fi
7182
7183
7184 enablestring=
7185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7186echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7187 no_cache=0
7188 # Check whether --enable-caret or --disable-caret was given.
7189if test "${enable_caret+set}" = set; then
7190 enableval="$enable_caret"
7191
7192 if test "$enableval" = yes; then
7193 ac_cv_use_caret='wxUSE_CARET=yes'
7194 else
7195 ac_cv_use_caret='wxUSE_CARET=no'
7196 fi
7197
7198else
7199
7200 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7201 if test "x$LINE" != x ; then
7202 eval "DEFAULT_$LINE"
7203 else
7204 no_cache=1
7205 fi
7206
7207 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7208
7209fi;
7210
7211 eval "$ac_cv_use_caret"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_CARET" = yes; then
7217 echo "$as_me:$LINENO: result: yes" >&5
7218echo "${ECHO_T}yes" >&6
7219 else
7220 echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6
7222 fi
7223
7224
7225 enablestring=
7226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7227echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7228 no_cache=0
7229 # Check whether --enable-checkbox or --disable-checkbox was given.
7230if test "${enable_checkbox+set}" = set; then
7231 enableval="$enable_checkbox"
7232
7233 if test "$enableval" = yes; then
7234 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7235 else
7236 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7237 fi
7238
7239else
7240
7241 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7242 if test "x$LINE" != x ; then
7243 eval "DEFAULT_$LINE"
7244 else
7245 no_cache=1
7246 fi
7247
7248 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7249
7250fi;
7251
7252 eval "$ac_cv_use_checkbox"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_CHECKBOX" = yes; then
7258 echo "$as_me:$LINENO: result: yes" >&5
7259echo "${ECHO_T}yes" >&6
7260 else
7261 echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
7263 fi
7264
7265
7266 enablestring=
7267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7268echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7269 no_cache=0
7270 # Check whether --enable-checklst or --disable-checklst was given.
7271if test "${enable_checklst+set}" = set; then
7272 enableval="$enable_checklst"
7273
7274 if test "$enableval" = yes; then
7275 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7276 else
7277 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7278 fi
7279
7280else
7281
7282 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7283 if test "x$LINE" != x ; then
7284 eval "DEFAULT_$LINE"
7285 else
7286 no_cache=1
7287 fi
7288
7289 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7290
7291fi;
7292
7293 eval "$ac_cv_use_checklst"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_CHECKLST" = yes; then
7299 echo "$as_me:$LINENO: result: yes" >&5
7300echo "${ECHO_T}yes" >&6
7301 else
7302 echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
7304 fi
7305
7306
7307 enablestring=
7308 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7309echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7310 no_cache=0
7311 # Check whether --enable-choice or --disable-choice was given.
7312if test "${enable_choice+set}" = set; then
7313 enableval="$enable_choice"
7314
7315 if test "$enableval" = yes; then
7316 ac_cv_use_choice='wxUSE_CHOICE=yes'
7317 else
7318 ac_cv_use_choice='wxUSE_CHOICE=no'
7319 fi
7320
7321else
7322
7323 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7324 if test "x$LINE" != x ; then
7325 eval "DEFAULT_$LINE"
7326 else
7327 no_cache=1
7328 fi
7329
7330 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7331
7332fi;
7333
7334 eval "$ac_cv_use_choice"
7335 if test "$no_cache" != 1; then
7336 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7337 fi
7338
7339 if test "$wxUSE_CHOICE" = yes; then
7340 echo "$as_me:$LINENO: result: yes" >&5
7341echo "${ECHO_T}yes" >&6
7342 else
7343 echo "$as_me:$LINENO: result: no" >&5
7344echo "${ECHO_T}no" >&6
7345 fi
7346
7347
92bbdbcd
WS
7348 enablestring=
7349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7350echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7351 no_cache=0
7352 # Check whether --enable-choicebook or --disable-choicebook was given.
7353if test "${enable_choicebook+set}" = set; then
7354 enableval="$enable_choicebook"
7355
7356 if test "$enableval" = yes; then
7357 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7358 else
7359 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7360 fi
7361
7362else
7363
7364 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7365 if test "x$LINE" != x ; then
7366 eval "DEFAULT_$LINE"
7367 else
7368 no_cache=1
7369 fi
7370
7371 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7372
7373fi;
7374
7375 eval "$ac_cv_use_choicebook"
7376 if test "$no_cache" != 1; then
7377 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7378 fi
7379
7380 if test "$wxUSE_CHOICEBOOK" = yes; then
7381 echo "$as_me:$LINENO: result: yes" >&5
7382echo "${ECHO_T}yes" >&6
7383 else
7384 echo "$as_me:$LINENO: result: no" >&5
7385echo "${ECHO_T}no" >&6
7386 fi
7387
7388
a848cd7e
SC
7389 enablestring=
7390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7391echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7392 no_cache=0
7393 # Check whether --enable-combobox or --disable-combobox was given.
7394if test "${enable_combobox+set}" = set; then
7395 enableval="$enable_combobox"
7396
7397 if test "$enableval" = yes; then
7398 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7399 else
7400 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7401 fi
7402
7403else
7404
7405 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7406 if test "x$LINE" != x ; then
7407 eval "DEFAULT_$LINE"
7408 else
7409 no_cache=1
7410 fi
7411
7412 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7413
7414fi;
7415
7416 eval "$ac_cv_use_combobox"
7417 if test "$no_cache" != 1; then
7418 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7419 fi
7420
7421 if test "$wxUSE_COMBOBOX" = yes; then
7422 echo "$as_me:$LINENO: result: yes" >&5
7423echo "${ECHO_T}yes" >&6
7424 else
7425 echo "$as_me:$LINENO: result: no" >&5
7426echo "${ECHO_T}no" >&6
7427 fi
7428
7429
7430 enablestring=
7431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7432echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7433 no_cache=0
7434 # Check whether --enable-display or --disable-display was given.
7435if test "${enable_display+set}" = set; then
7436 enableval="$enable_display"
7437
7438 if test "$enableval" = yes; then
7439 ac_cv_use_display='wxUSE_DISPLAY=yes'
7440 else
7441 ac_cv_use_display='wxUSE_DISPLAY=no'
7442 fi
7443
7444else
7445
7446 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7447 if test "x$LINE" != x ; then
7448 eval "DEFAULT_$LINE"
7449 else
7450 no_cache=1
7451 fi
7452
7453 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7454
7455fi;
7456
7457 eval "$ac_cv_use_display"
7458 if test "$no_cache" != 1; then
7459 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7460 fi
7461
7462 if test "$wxUSE_DISPLAY" = yes; then
7463 echo "$as_me:$LINENO: result: yes" >&5
7464echo "${ECHO_T}yes" >&6
7465 else
7466 echo "$as_me:$LINENO: result: no" >&5
7467echo "${ECHO_T}no" >&6
7468 fi
7469
7470
7471 enablestring=
7472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7473echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7474 no_cache=0
7475 # Check whether --enable-gauge or --disable-gauge was given.
7476if test "${enable_gauge+set}" = set; then
7477 enableval="$enable_gauge"
7478
7479 if test "$enableval" = yes; then
7480 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7481 else
7482 ac_cv_use_gauge='wxUSE_GAUGE=no'
7483 fi
7484
7485else
7486
7487 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7488 if test "x$LINE" != x ; then
7489 eval "DEFAULT_$LINE"
7490 else
7491 no_cache=1
7492 fi
7493
7494 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7495
7496fi;
7497
7498 eval "$ac_cv_use_gauge"
7499 if test "$no_cache" != 1; then
7500 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7501 fi
7502
7503 if test "$wxUSE_GAUGE" = yes; then
7504 echo "$as_me:$LINENO: result: yes" >&5
7505echo "${ECHO_T}yes" >&6
7506 else
7507 echo "$as_me:$LINENO: result: no" >&5
7508echo "${ECHO_T}no" >&6
7509 fi
7510
7511
7512 enablestring=
7513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7514echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7515 no_cache=0
7516 # Check whether --enable-grid or --disable-grid was given.
7517if test "${enable_grid+set}" = set; then
7518 enableval="$enable_grid"
7519
7520 if test "$enableval" = yes; then
7521 ac_cv_use_grid='wxUSE_GRID=yes'
7522 else
7523 ac_cv_use_grid='wxUSE_GRID=no'
7524 fi
7525
7526else
7527
7528 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7529 if test "x$LINE" != x ; then
7530 eval "DEFAULT_$LINE"
7531 else
7532 no_cache=1
7533 fi
7534
7535 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7536
7537fi;
7538
7539 eval "$ac_cv_use_grid"
7540 if test "$no_cache" != 1; then
7541 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7542 fi
7543
7544 if test "$wxUSE_GRID" = yes; then
7545 echo "$as_me:$LINENO: result: yes" >&5
7546echo "${ECHO_T}yes" >&6
7547 else
7548 echo "$as_me:$LINENO: result: no" >&5
7549echo "${ECHO_T}no" >&6
7550 fi
7551
7552
7553 enablestring=
7554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7555echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7556 no_cache=0
7557 # Check whether --enable-imaglist or --disable-imaglist was given.
7558if test "${enable_imaglist+set}" = set; then
7559 enableval="$enable_imaglist"
7560
7561 if test "$enableval" = yes; then
7562 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7563 else
7564 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7565 fi
7566
7567else
7568
7569 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7577
7578fi;
7579
7580 eval "$ac_cv_use_imaglist"
7581 if test "$no_cache" != 1; then
7582 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7583 fi
7584
7585 if test "$wxUSE_IMAGLIST" = yes; then
7586 echo "$as_me:$LINENO: result: yes" >&5
7587echo "${ECHO_T}yes" >&6
7588 else
7589 echo "$as_me:$LINENO: result: no" >&5
7590echo "${ECHO_T}no" >&6
7591 fi
7592
7593
7594 enablestring=
7595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7596echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7597 no_cache=0
7598 # Check whether --enable-listbook or --disable-listbook was given.
7599if test "${enable_listbook+set}" = set; then
7600 enableval="$enable_listbook"
7601
7602 if test "$enableval" = yes; then
7603 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7604 else
7605 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7606 fi
7607
7608else
7609
7610 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7611 if test "x$LINE" != x ; then
7612 eval "DEFAULT_$LINE"
7613 else
7614 no_cache=1
7615 fi
7616
7617 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7618
7619fi;
7620
7621 eval "$ac_cv_use_listbook"
7622 if test "$no_cache" != 1; then
7623 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7624 fi
7625
7626 if test "$wxUSE_LISTBOOK" = yes; then
7627 echo "$as_me:$LINENO: result: yes" >&5
7628echo "${ECHO_T}yes" >&6
7629 else
7630 echo "$as_me:$LINENO: result: no" >&5
7631echo "${ECHO_T}no" >&6
7632 fi
7633
7634
7635 enablestring=
7636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7637echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7638 no_cache=0
7639 # Check whether --enable-listbox or --disable-listbox was given.
7640if test "${enable_listbox+set}" = set; then
7641 enableval="$enable_listbox"
7642
7643 if test "$enableval" = yes; then
7644 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7645 else
7646 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7647 fi
7648
7649else
7650
7651 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7652 if test "x$LINE" != x ; then
7653 eval "DEFAULT_$LINE"
7654 else
7655 no_cache=1
7656 fi
7657
7658 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7659
7660fi;
7661
7662 eval "$ac_cv_use_listbox"
7663 if test "$no_cache" != 1; then
7664 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7665 fi
7666
7667 if test "$wxUSE_LISTBOX" = yes; then
7668 echo "$as_me:$LINENO: result: yes" >&5
7669echo "${ECHO_T}yes" >&6
7670 else
7671 echo "$as_me:$LINENO: result: no" >&5
7672echo "${ECHO_T}no" >&6
7673 fi
7674
7675
7676 enablestring=
7677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7678echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7679 no_cache=0
7680 # Check whether --enable-listctrl or --disable-listctrl was given.
7681if test "${enable_listctrl+set}" = set; then
7682 enableval="$enable_listctrl"
7683
7684 if test "$enableval" = yes; then
7685 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7686 else
7687 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7688 fi
7689
7690else
7691
7692 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7693 if test "x$LINE" != x ; then
7694 eval "DEFAULT_$LINE"
7695 else
7696 no_cache=1
7697 fi
7698
7699 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7700
7701fi;
7702
7703 eval "$ac_cv_use_listctrl"
7704 if test "$no_cache" != 1; then
7705 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7706 fi
7707
7708 if test "$wxUSE_LISTCTRL" = yes; then
7709 echo "$as_me:$LINENO: result: yes" >&5
7710echo "${ECHO_T}yes" >&6
7711 else
7712 echo "$as_me:$LINENO: result: no" >&5
7713echo "${ECHO_T}no" >&6
7714 fi
7715
7716
7717 enablestring=
7718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7719echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7720 no_cache=0
7721 # Check whether --enable-notebook or --disable-notebook was given.
7722if test "${enable_notebook+set}" = set; then
7723 enableval="$enable_notebook"
7724
7725 if test "$enableval" = yes; then
7726 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7727 else
7728 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7729 fi
7730
7731else
7732
7733 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7734 if test "x$LINE" != x ; then
7735 eval "DEFAULT_$LINE"
7736 else
7737 no_cache=1
7738 fi
7739
7740 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7741
7742fi;
7743
7744 eval "$ac_cv_use_notebook"
7745 if test "$no_cache" != 1; then
7746 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7747 fi
7748
7749 if test "$wxUSE_NOTEBOOK" = yes; then
7750 echo "$as_me:$LINENO: result: yes" >&5
7751echo "${ECHO_T}yes" >&6
7752 else
7753 echo "$as_me:$LINENO: result: no" >&5
7754echo "${ECHO_T}no" >&6
7755 fi
7756
7757
7758 enablestring=
7759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7760echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7761 no_cache=0
7762 # Check whether --enable-radiobox or --disable-radiobox was given.
7763if test "${enable_radiobox+set}" = set; then
7764 enableval="$enable_radiobox"
7765
7766 if test "$enableval" = yes; then
7767 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7768 else
7769 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7770 fi
7771
7772else
7773
7774 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7775 if test "x$LINE" != x ; then
7776 eval "DEFAULT_$LINE"
7777 else
7778 no_cache=1
7779 fi
7780
7781 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7782
7783fi;
7784
7785 eval "$ac_cv_use_radiobox"
7786 if test "$no_cache" != 1; then
7787 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7788 fi
7789
7790 if test "$wxUSE_RADIOBOX" = yes; then
7791 echo "$as_me:$LINENO: result: yes" >&5
7792echo "${ECHO_T}yes" >&6
7793 else
7794 echo "$as_me:$LINENO: result: no" >&5
7795echo "${ECHO_T}no" >&6
7796 fi
7797
7798
7799 enablestring=
7800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7801echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7802 no_cache=0
7803 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7804if test "${enable_radiobtn+set}" = set; then
7805 enableval="$enable_radiobtn"
7806
7807 if test "$enableval" = yes; then
7808 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7809 else
7810 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7811 fi
7812
7813else
7814
7815 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7816 if test "x$LINE" != x ; then
7817 eval "DEFAULT_$LINE"
7818 else
7819 no_cache=1
7820 fi
7821
7822 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7823
7824fi;
7825
7826 eval "$ac_cv_use_radiobtn"
7827 if test "$no_cache" != 1; then
7828 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7829 fi
7830
7831 if test "$wxUSE_RADIOBTN" = yes; then
7832 echo "$as_me:$LINENO: result: yes" >&5
7833echo "${ECHO_T}yes" >&6
7834 else
7835 echo "$as_me:$LINENO: result: no" >&5
7836echo "${ECHO_T}no" >&6
7837 fi
7838
7839
7840 enablestring=
7841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7842echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7843 no_cache=0
7844 # Check whether --enable-sash or --disable-sash was given.
7845if test "${enable_sash+set}" = set; then
7846 enableval="$enable_sash"
7847
7848 if test "$enableval" = yes; then
7849 ac_cv_use_sash='wxUSE_SASH=yes'
7850 else
7851 ac_cv_use_sash='wxUSE_SASH=no'
7852 fi
7853
7854else
7855
7856 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7857 if test "x$LINE" != x ; then
7858 eval "DEFAULT_$LINE"
7859 else
7860 no_cache=1
7861 fi
7862
7863 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7864
7865fi;
7866
7867 eval "$ac_cv_use_sash"
7868 if test "$no_cache" != 1; then
7869 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7870 fi
7871
7872 if test "$wxUSE_SASH" = yes; then
7873 echo "$as_me:$LINENO: result: yes" >&5
7874echo "${ECHO_T}yes" >&6
7875 else
7876 echo "$as_me:$LINENO: result: no" >&5
7877echo "${ECHO_T}no" >&6
7878 fi
7879
7880
7881 enablestring=
7882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7883echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7884 no_cache=0
7885 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7886if test "${enable_scrollbar+set}" = set; then
7887 enableval="$enable_scrollbar"
7888
7889 if test "$enableval" = yes; then
7890 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7891 else
7892 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7893 fi
7894
7895else
7896
7897 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7898 if test "x$LINE" != x ; then
7899 eval "DEFAULT_$LINE"
7900 else
7901 no_cache=1
7902 fi
7903
7904 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7905
7906fi;
7907
7908 eval "$ac_cv_use_scrollbar"
7909 if test "$no_cache" != 1; then
7910 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7911 fi
7912
7913 if test "$wxUSE_SCROLLBAR" = yes; then
7914 echo "$as_me:$LINENO: result: yes" >&5
7915echo "${ECHO_T}yes" >&6
7916 else
7917 echo "$as_me:$LINENO: result: no" >&5
7918echo "${ECHO_T}no" >&6
7919 fi
7920
7921
7922 enablestring=
7923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7924echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7925 no_cache=0
7926 # Check whether --enable-slider or --disable-slider was given.
7927if test "${enable_slider+set}" = set; then
7928 enableval="$enable_slider"
7929
7930 if test "$enableval" = yes; then
7931 ac_cv_use_slider='wxUSE_SLIDER=yes'
7932 else
7933 ac_cv_use_slider='wxUSE_SLIDER=no'
7934 fi
7935
7936else
7937
7938 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7939 if test "x$LINE" != x ; then
7940 eval "DEFAULT_$LINE"
7941 else
7942 no_cache=1
7943 fi
7944
7945 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7946
7947fi;
7948
7949 eval "$ac_cv_use_slider"
7950 if test "$no_cache" != 1; then
7951 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7952 fi
7953
7954 if test "$wxUSE_SLIDER" = yes; then
7955 echo "$as_me:$LINENO: result: yes" >&5
7956echo "${ECHO_T}yes" >&6
7957 else
7958 echo "$as_me:$LINENO: result: no" >&5
7959echo "${ECHO_T}no" >&6
7960 fi
7961
7962
7963 enablestring=
7964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7965echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7966 no_cache=0
7967 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7968if test "${enable_spinbtn+set}" = set; then
7969 enableval="$enable_spinbtn"
7970
7971 if test "$enableval" = yes; then
7972 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7973 else
7974 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7975 fi
7976
7977else
7978
7979 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7980 if test "x$LINE" != x ; then
7981 eval "DEFAULT_$LINE"
7982 else
7983 no_cache=1
7984 fi
7985
7986 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7987
7988fi;
7989
7990 eval "$ac_cv_use_spinbtn"
7991 if test "$no_cache" != 1; then
7992 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7993 fi
7994
7995 if test "$wxUSE_SPINBTN" = yes; then
7996 echo "$as_me:$LINENO: result: yes" >&5
7997echo "${ECHO_T}yes" >&6
7998 else
7999 echo "$as_me:$LINENO: result: no" >&5
8000echo "${ECHO_T}no" >&6
8001 fi
8002
8003
8004 enablestring=
8005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8006echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8007 no_cache=0
8008 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8009if test "${enable_spinctrl+set}" = set; then
8010 enableval="$enable_spinctrl"
8011
8012 if test "$enableval" = yes; then
8013 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8014 else
8015 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8016 fi
8017
8018else
8019
8020 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8021 if test "x$LINE" != x ; then
8022 eval "DEFAULT_$LINE"
8023 else
8024 no_cache=1
8025 fi
8026
8027 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8028
8029fi;
8030
8031 eval "$ac_cv_use_spinctrl"
8032 if test "$no_cache" != 1; then
8033 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8034 fi
8035
8036 if test "$wxUSE_SPINCTRL" = yes; then
8037 echo "$as_me:$LINENO: result: yes" >&5
8038echo "${ECHO_T}yes" >&6
8039 else
8040 echo "$as_me:$LINENO: result: no" >&5
8041echo "${ECHO_T}no" >&6
8042 fi
8043
8044
8045 enablestring=
8046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8047echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8048 no_cache=0
8049 # Check whether --enable-splitter or --disable-splitter was given.
8050if test "${enable_splitter+set}" = set; then
8051 enableval="$enable_splitter"
8052
8053 if test "$enableval" = yes; then
8054 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8055 else
8056 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8057 fi
8058
8059else
8060
8061 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8062 if test "x$LINE" != x ; then
8063 eval "DEFAULT_$LINE"
8064 else
8065 no_cache=1
8066 fi
8067
8068 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8069
8070fi;
8071
8072 eval "$ac_cv_use_splitter"
8073 if test "$no_cache" != 1; then
8074 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8075 fi
8076
8077 if test "$wxUSE_SPLITTER" = yes; then
8078 echo "$as_me:$LINENO: result: yes" >&5
8079echo "${ECHO_T}yes" >&6
8080 else
8081 echo "$as_me:$LINENO: result: no" >&5
8082echo "${ECHO_T}no" >&6
8083 fi
8084
8085
8086 enablestring=
8087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8088echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8089 no_cache=0
8090 # Check whether --enable-statbmp or --disable-statbmp was given.
8091if test "${enable_statbmp+set}" = set; then
8092 enableval="$enable_statbmp"
8093
8094 if test "$enableval" = yes; then
8095 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8096 else
8097 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8098 fi
8099
8100else
8101
8102 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8103 if test "x$LINE" != x ; then
8104 eval "DEFAULT_$LINE"
8105 else
8106 no_cache=1
8107 fi
8108
8109 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8110
8111fi;
8112
8113 eval "$ac_cv_use_statbmp"
8114 if test "$no_cache" != 1; then
8115 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8116 fi
8117
8118 if test "$wxUSE_STATBMP" = yes; then
8119 echo "$as_me:$LINENO: result: yes" >&5
8120echo "${ECHO_T}yes" >&6
8121 else
8122 echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
8124 fi
8125
8126
8127 enablestring=
8128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8129echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8130 no_cache=0
8131 # Check whether --enable-statbox or --disable-statbox was given.
8132if test "${enable_statbox+set}" = set; then
8133 enableval="$enable_statbox"
8134
8135 if test "$enableval" = yes; then
8136 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8137 else
8138 ac_cv_use_statbox='wxUSE_STATBOX=no'
8139 fi
8140
8141else
8142
8143 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8144 if test "x$LINE" != x ; then
8145 eval "DEFAULT_$LINE"
8146 else
8147 no_cache=1
8148 fi
8149
8150 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8151
8152fi;
8153
8154 eval "$ac_cv_use_statbox"
8155 if test "$no_cache" != 1; then
8156 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8157 fi
8158
8159 if test "$wxUSE_STATBOX" = yes; then
8160 echo "$as_me:$LINENO: result: yes" >&5
8161echo "${ECHO_T}yes" >&6
8162 else
8163 echo "$as_me:$LINENO: result: no" >&5
8164echo "${ECHO_T}no" >&6
8165 fi
8166
8167
8168 enablestring=
8169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8170echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8171 no_cache=0
8172 # Check whether --enable-statline or --disable-statline was given.
8173if test "${enable_statline+set}" = set; then
8174 enableval="$enable_statline"
8175
8176 if test "$enableval" = yes; then
8177 ac_cv_use_statline='wxUSE_STATLINE=yes'
8178 else
8179 ac_cv_use_statline='wxUSE_STATLINE=no'
8180 fi
8181
8182else
8183
8184 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8185 if test "x$LINE" != x ; then
8186 eval "DEFAULT_$LINE"
8187 else
8188 no_cache=1
8189 fi
8190
8191 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8192
8193fi;
8194
8195 eval "$ac_cv_use_statline"
8196 if test "$no_cache" != 1; then
8197 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8198 fi
8199
8200 if test "$wxUSE_STATLINE" = yes; then
8201 echo "$as_me:$LINENO: result: yes" >&5
8202echo "${ECHO_T}yes" >&6
8203 else
8204 echo "$as_me:$LINENO: result: no" >&5
8205echo "${ECHO_T}no" >&6
8206 fi
8207
8208
8209 enablestring=
8210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8211echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8212 no_cache=0
8213 # Check whether --enable-stattext or --disable-stattext was given.
8214if test "${enable_stattext+set}" = set; then
8215 enableval="$enable_stattext"
8216
8217 if test "$enableval" = yes; then
8218 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8219 else
8220 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8221 fi
8222
8223else
8224
8225 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8226 if test "x$LINE" != x ; then
8227 eval "DEFAULT_$LINE"
8228 else
8229 no_cache=1
8230 fi
8231
8232 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8233
8234fi;
8235
8236 eval "$ac_cv_use_stattext"
8237 if test "$no_cache" != 1; then
8238 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8239 fi
8240
8241 if test "$wxUSE_STATTEXT" = yes; then
8242 echo "$as_me:$LINENO: result: yes" >&5
8243echo "${ECHO_T}yes" >&6
8244 else
8245 echo "$as_me:$LINENO: result: no" >&5
8246echo "${ECHO_T}no" >&6
8247 fi
8248
8249
8250 enablestring=
8251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8252echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8253 no_cache=0
8254 # Check whether --enable-statusbar or --disable-statusbar was given.
8255if test "${enable_statusbar+set}" = set; then
8256 enableval="$enable_statusbar"
8257
8258 if test "$enableval" = yes; then
8259 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8260 else
8261 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8262 fi
8263
8264else
8265
8266 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8267 if test "x$LINE" != x ; then
8268 eval "DEFAULT_$LINE"
8269 else
8270 no_cache=1
8271 fi
8272
8273 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8274
8275fi;
8276
8277 eval "$ac_cv_use_statusbar"
8278 if test "$no_cache" != 1; then
8279 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8280 fi
8281
8282 if test "$wxUSE_STATUSBAR" = yes; then
8283 echo "$as_me:$LINENO: result: yes" >&5
8284echo "${ECHO_T}yes" >&6
8285 else
8286 echo "$as_me:$LINENO: result: no" >&5
8287echo "${ECHO_T}no" >&6
8288 fi
8289
8290
8291 enablestring=
8292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8293echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8294 no_cache=0
8295 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8296if test "${enable_tabdialog+set}" = set; then
8297 enableval="$enable_tabdialog"
8298
8299 if test "$enableval" = yes; then
8300 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8301 else
8302 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8303 fi
8304
8305else
8306
8307 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8308 if test "x$LINE" != x ; then
8309 eval "DEFAULT_$LINE"
8310 else
8311 no_cache=1
8312 fi
8313
8314 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8315
8316fi;
8317
8318 eval "$ac_cv_use_tabdialog"
8319 if test "$no_cache" != 1; then
8320 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8321 fi
8322
8323 if test "$wxUSE_TABDIALOG" = yes; then
8324 echo "$as_me:$LINENO: result: yes" >&5
8325echo "${ECHO_T}yes" >&6
8326 else
8327 echo "$as_me:$LINENO: result: no" >&5
8328echo "${ECHO_T}no" >&6
8329 fi
8330
8331
8332 enablestring=
8333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8334echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8335 no_cache=0
8336 # Check whether --enable-textctrl or --disable-textctrl was given.
8337if test "${enable_textctrl+set}" = set; then
8338 enableval="$enable_textctrl"
8339
8340 if test "$enableval" = yes; then
8341 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8342 else
8343 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8344 fi
8345
8346else
8347
8348 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8349 if test "x$LINE" != x ; then
8350 eval "DEFAULT_$LINE"
8351 else
8352 no_cache=1
8353 fi
8354
8355 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8356
8357fi;
8358
8359 eval "$ac_cv_use_textctrl"
8360 if test "$no_cache" != 1; then
8361 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8362 fi
8363
8364 if test "$wxUSE_TEXTCTRL" = yes; then
8365 echo "$as_me:$LINENO: result: yes" >&5
8366echo "${ECHO_T}yes" >&6
8367 else
8368 echo "$as_me:$LINENO: result: no" >&5
8369echo "${ECHO_T}no" >&6
8370 fi
8371
8372
8373 enablestring=
8374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8375echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8376 no_cache=0
8377 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8378if test "${enable_togglebtn+set}" = set; then
8379 enableval="$enable_togglebtn"
8380
8381 if test "$enableval" = yes; then
8382 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8383 else
8384 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8385 fi
8386
8387else
8388
8389 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8390 if test "x$LINE" != x ; then
8391 eval "DEFAULT_$LINE"
8392 else
8393 no_cache=1
8394 fi
8395
8396 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8397
8398fi;
8399
8400 eval "$ac_cv_use_togglebtn"
8401 if test "$no_cache" != 1; then
8402 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8403 fi
8404
8405 if test "$wxUSE_TOGGLEBTN" = yes; then
8406 echo "$as_me:$LINENO: result: yes" >&5
8407echo "${ECHO_T}yes" >&6
8408 else
8409 echo "$as_me:$LINENO: result: no" >&5
8410echo "${ECHO_T}no" >&6
8411 fi
8412
8413
8414 enablestring=
8415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8416echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8417 no_cache=0
8418 # Check whether --enable-toolbar or --disable-toolbar was given.
8419if test "${enable_toolbar+set}" = set; then
8420 enableval="$enable_toolbar"
8421
8422 if test "$enableval" = yes; then
8423 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8424 else
8425 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8426 fi
8427
8428else
8429
8430 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
8437 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8438
8439fi;
8440
8441 eval "$ac_cv_use_toolbar"
8442 if test "$no_cache" != 1; then
8443 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8444 fi
8445
8446 if test "$wxUSE_TOOLBAR" = yes; then
8447 echo "$as_me:$LINENO: result: yes" >&5
8448echo "${ECHO_T}yes" >&6
8449 else
8450 echo "$as_me:$LINENO: result: no" >&5
8451echo "${ECHO_T}no" >&6
8452 fi
8453
8454
8455 enablestring=
8456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8457echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8458 no_cache=0
8459 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8460if test "${enable_tbarnative+set}" = set; then
8461 enableval="$enable_tbarnative"
8462
8463 if test "$enableval" = yes; then
8464 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8465 else
8466 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8467 fi
8468
8469else
8470
8471 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8472 if test "x$LINE" != x ; then
8473 eval "DEFAULT_$LINE"
8474 else
8475 no_cache=1
8476 fi
8477
8478 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8479
8480fi;
8481
8482 eval "$ac_cv_use_tbarnative"
8483 if test "$no_cache" != 1; then
8484 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8485 fi
8486
8487 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8488 echo "$as_me:$LINENO: result: yes" >&5
8489echo "${ECHO_T}yes" >&6
8490 else
8491 echo "$as_me:$LINENO: result: no" >&5
8492echo "${ECHO_T}no" >&6
8493 fi
8494
8495
8496 enablestring=
8497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8498echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8499 no_cache=0
8500 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8501if test "${enable_tbarsmpl+set}" = set; then
8502 enableval="$enable_tbarsmpl"
8503
8504 if test "$enableval" = yes; then
8505 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8506 else
8507 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8508 fi
8509
8510else
8511
8512 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8513 if test "x$LINE" != x ; then
8514 eval "DEFAULT_$LINE"
8515 else
8516 no_cache=1
8517 fi
8518
8519 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8520
8521fi;
8522
8523 eval "$ac_cv_use_tbarsmpl"
8524 if test "$no_cache" != 1; then
8525 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8526 fi
8527
8528 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8529 echo "$as_me:$LINENO: result: yes" >&5
8530echo "${ECHO_T}yes" >&6
8531 else
8532 echo "$as_me:$LINENO: result: no" >&5
8533echo "${ECHO_T}no" >&6
8534 fi
8535
8536
8537 enablestring=
8538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8539echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8540 no_cache=0
8541 # Check whether --enable-treectrl or --disable-treectrl was given.
8542if test "${enable_treectrl+set}" = set; then
8543 enableval="$enable_treectrl"
8544
8545 if test "$enableval" = yes; then
8546 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8547 else
8548 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8549 fi
8550
8551else
8552
8553 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8554 if test "x$LINE" != x ; then
8555 eval "DEFAULT_$LINE"
8556 else
8557 no_cache=1
8558 fi
8559
8560 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8561
8562fi;
8563
8564 eval "$ac_cv_use_treectrl"
8565 if test "$no_cache" != 1; then
8566 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8567 fi
8568
8569 if test "$wxUSE_TREECTRL" = yes; then
8570 echo "$as_me:$LINENO: result: yes" >&5
8571echo "${ECHO_T}yes" >&6
8572 else
8573 echo "$as_me:$LINENO: result: no" >&5
8574echo "${ECHO_T}no" >&6
8575 fi
8576
8577
8578 enablestring=
8579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8580echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8581 no_cache=0
8582 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8583if test "${enable_tipwindow+set}" = set; then
8584 enableval="$enable_tipwindow"
8585
8586 if test "$enableval" = yes; then
8587 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8588 else
8589 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8590 fi
8591
8592else
8593
8594 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8595 if test "x$LINE" != x ; then
8596 eval "DEFAULT_$LINE"
8597 else
8598 no_cache=1
8599 fi
8600
8601 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8602
8603fi;
8604
8605 eval "$ac_cv_use_tipwindow"
8606 if test "$no_cache" != 1; then
8607 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8608 fi
8609
8610 if test "$wxUSE_TIPWINDOW" = yes; then
8611 echo "$as_me:$LINENO: result: yes" >&5
8612echo "${ECHO_T}yes" >&6
8613 else
8614 echo "$as_me:$LINENO: result: no" >&5
8615echo "${ECHO_T}no" >&6
8616 fi
8617
8618
8619 enablestring=
8620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8621echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8622 no_cache=0
8623 # Check whether --enable-popupwin or --disable-popupwin was given.
8624if test "${enable_popupwin+set}" = set; then
8625 enableval="$enable_popupwin"
8626
8627 if test "$enableval" = yes; then
8628 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8629 else
8630 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8631 fi
8632
8633else
8634
8635 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8636 if test "x$LINE" != x ; then
8637 eval "DEFAULT_$LINE"
8638 else
8639 no_cache=1
8640 fi
8641
8642 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8643
8644fi;
8645
8646 eval "$ac_cv_use_popupwin"
8647 if test "$no_cache" != 1; then
8648 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8649 fi
8650
8651 if test "$wxUSE_POPUPWIN" = yes; then
8652 echo "$as_me:$LINENO: result: yes" >&5
8653echo "${ECHO_T}yes" >&6
8654 else
8655 echo "$as_me:$LINENO: result: no" >&5
8656echo "${ECHO_T}no" >&6
8657 fi
8658
8659
8660
8661
8662 enablestring=
8663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8664echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8665 no_cache=0
8666 # Check whether --enable-commondlg or --disable-commondlg was given.
8667if test "${enable_commondlg+set}" = set; then
8668 enableval="$enable_commondlg"
8669
8670 if test "$enableval" = yes; then
8671 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8672 else
8673 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8674 fi
8675
8676else
8677
8678 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8679 if test "x$LINE" != x ; then
8680 eval "DEFAULT_$LINE"
8681 else
8682 no_cache=1
8683 fi
8684
8685 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8686
8687fi;
8688
8689 eval "$ac_cv_use_commondlg"
8690 if test "$no_cache" != 1; then
8691 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8692 fi
8693
8694 if test "$wxUSE_COMMONDLGS" = yes; then
8695 echo "$as_me:$LINENO: result: yes" >&5
8696echo "${ECHO_T}yes" >&6
8697 else
8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
8700 fi
8701
8702
8703 enablestring=
8704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8705echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8706 no_cache=0
8707 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8708if test "${enable_choicedlg+set}" = set; then
8709 enableval="$enable_choicedlg"
8710
8711 if test "$enableval" = yes; then
8712 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8713 else
8714 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8715 fi
8716
8717else
8718
8719 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8720 if test "x$LINE" != x ; then
8721 eval "DEFAULT_$LINE"
8722 else
8723 no_cache=1
8724 fi
8725
8726 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8727
8728fi;
8729
8730 eval "$ac_cv_use_choicedlg"
8731 if test "$no_cache" != 1; then
8732 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8733 fi
8734
8735 if test "$wxUSE_CHOICEDLG" = yes; then
8736 echo "$as_me:$LINENO: result: yes" >&5
8737echo "${ECHO_T}yes" >&6
8738 else
8739 echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6
8741 fi
8742
8743
8744 enablestring=
8745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8746echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8747 no_cache=0
8748 # Check whether --enable-coldlg or --disable-coldlg was given.
8749if test "${enable_coldlg+set}" = set; then
8750 enableval="$enable_coldlg"
8751
8752 if test "$enableval" = yes; then
8753 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8754 else
8755 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8756 fi
8757
8758else
8759
8760 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8761 if test "x$LINE" != x ; then
8762 eval "DEFAULT_$LINE"
8763 else
8764 no_cache=1
8765 fi
8766
8767 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8768
8769fi;
8770
8771 eval "$ac_cv_use_coldlg"
8772 if test "$no_cache" != 1; then
8773 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8774 fi
8775
8776 if test "$wxUSE_COLOURDLG" = yes; then
8777 echo "$as_me:$LINENO: result: yes" >&5
8778echo "${ECHO_T}yes" >&6
8779 else
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
8782 fi
8783
8784
8785 enablestring=
8786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8787echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8788 no_cache=0
8789 # Check whether --enable-filedlg or --disable-filedlg was given.
8790if test "${enable_filedlg+set}" = set; then
8791 enableval="$enable_filedlg"
8792
8793 if test "$enableval" = yes; then
8794 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8795 else
8796 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8797 fi
8798
8799else
8800
8801 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8802 if test "x$LINE" != x ; then
8803 eval "DEFAULT_$LINE"
8804 else
8805 no_cache=1
8806 fi
8807
8808 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8809
8810fi;
8811
8812 eval "$ac_cv_use_filedlg"
8813 if test "$no_cache" != 1; then
8814 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8815 fi
8816
8817 if test "$wxUSE_FILEDLG" = yes; then
8818 echo "$as_me:$LINENO: result: yes" >&5
8819echo "${ECHO_T}yes" >&6
8820 else
8821 echo "$as_me:$LINENO: result: no" >&5
8822echo "${ECHO_T}no" >&6
8823 fi
8824
8825
8826 enablestring=
8827 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8828echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8829 no_cache=0
8830 # Check whether --enable-finddlg or --disable-finddlg was given.
8831if test "${enable_finddlg+set}" = set; then
8832 enableval="$enable_finddlg"
8833
8834 if test "$enableval" = yes; then
8835 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8836 else
8837 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8838 fi
8839
8840else
8841
8842 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8843 if test "x$LINE" != x ; then
8844 eval "DEFAULT_$LINE"
8845 else
8846 no_cache=1
8847 fi
8848
8849 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8850
8851fi;
8852
8853 eval "$ac_cv_use_finddlg"
8854 if test "$no_cache" != 1; then
8855 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8856 fi
8857
8858 if test "$wxUSE_FINDREPLDLG" = yes; then
8859 echo "$as_me:$LINENO: result: yes" >&5
8860echo "${ECHO_T}yes" >&6
8861 else
8862 echo "$as_me:$LINENO: result: no" >&5
8863echo "${ECHO_T}no" >&6
8864 fi
8865
8866
8867 enablestring=
8868 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8869echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8870 no_cache=0
8871 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8872if test "${enable_fontdlg+set}" = set; then
8873 enableval="$enable_fontdlg"
8874
8875 if test "$enableval" = yes; then
8876 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8877 else
8878 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8879 fi
8880
8881else
8882
8883 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8884 if test "x$LINE" != x ; then
8885 eval "DEFAULT_$LINE"
8886 else
8887 no_cache=1
8888 fi
8889
8890 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8891
8892fi;
8893
8894 eval "$ac_cv_use_fontdlg"
8895 if test "$no_cache" != 1; then
8896 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8897 fi
8898
8899 if test "$wxUSE_FONTDLG" = yes; then
8900 echo "$as_me:$LINENO: result: yes" >&5
8901echo "${ECHO_T}yes" >&6
8902 else
8903 echo "$as_me:$LINENO: result: no" >&5
8904echo "${ECHO_T}no" >&6
8905 fi
8906
8907
8908 enablestring=
8909 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8910echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8911 no_cache=0
8912 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8913if test "${enable_dirdlg+set}" = set; then
8914 enableval="$enable_dirdlg"
8915
8916 if test "$enableval" = yes; then
8917 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8918 else
8919 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8920 fi
8921
8922else
8923
8924 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8925 if test "x$LINE" != x ; then
8926 eval "DEFAULT_$LINE"
8927 else
8928 no_cache=1
8929 fi
8930
8931 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8932
8933fi;
8934
8935 eval "$ac_cv_use_dirdlg"
8936 if test "$no_cache" != 1; then
8937 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8938 fi
8939
8940 if test "$wxUSE_DIRDLG" = yes; then
8941 echo "$as_me:$LINENO: result: yes" >&5
8942echo "${ECHO_T}yes" >&6
8943 else
8944 echo "$as_me:$LINENO: result: no" >&5
8945echo "${ECHO_T}no" >&6
8946 fi
8947
8948
8949 enablestring=
8950 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8951echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8952 no_cache=0
8953 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8954if test "${enable_msgdlg+set}" = set; then
8955 enableval="$enable_msgdlg"
8956
8957 if test "$enableval" = yes; then
8958 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8959 else
8960 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8961 fi
8962
8963else
8964
8965 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8966 if test "x$LINE" != x ; then
8967 eval "DEFAULT_$LINE"
8968 else
8969 no_cache=1
8970 fi
8971
8972 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8973
8974fi;
8975
8976 eval "$ac_cv_use_msgdlg"
8977 if test "$no_cache" != 1; then
8978 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8979 fi
8980
8981 if test "$wxUSE_MSGDLG" = yes; then
8982 echo "$as_me:$LINENO: result: yes" >&5
8983echo "${ECHO_T}yes" >&6
8984 else
8985 echo "$as_me:$LINENO: result: no" >&5
8986echo "${ECHO_T}no" >&6
8987 fi
8988
8989
8990 enablestring=
8991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8992echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8993 no_cache=0
8994 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8995if test "${enable_numberdlg+set}" = set; then
8996 enableval="$enable_numberdlg"
8997
8998 if test "$enableval" = yes; then
8999 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9000 else
9001 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9002 fi
9003
9004else
9005
9006 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9007 if test "x$LINE" != x ; then
9008 eval "DEFAULT_$LINE"
9009 else
9010 no_cache=1
9011 fi
9012
9013 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9014
9015fi;
9016
9017 eval "$ac_cv_use_numberdlg"
9018 if test "$no_cache" != 1; then
9019 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9020 fi
9021
9022 if test "$wxUSE_NUMBERDLG" = yes; then
9023 echo "$as_me:$LINENO: result: yes" >&5
9024echo "${ECHO_T}yes" >&6
9025 else
9026 echo "$as_me:$LINENO: result: no" >&5
9027echo "${ECHO_T}no" >&6
9028 fi
9029
9030
9031 enablestring=
9032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9033echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9034 no_cache=0
9035 # Check whether --enable-splash or --disable-splash was given.
9036if test "${enable_splash+set}" = set; then
9037 enableval="$enable_splash"
9038
9039 if test "$enableval" = yes; then
9040 ac_cv_use_splash='wxUSE_SPLASH=yes'
9041 else
9042 ac_cv_use_splash='wxUSE_SPLASH=no'
9043 fi
9044
9045else
9046
9047 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9048 if test "x$LINE" != x ; then
9049 eval "DEFAULT_$LINE"
9050 else
9051 no_cache=1
9052 fi
9053
9054 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9055
9056fi;
9057
9058 eval "$ac_cv_use_splash"
9059 if test "$no_cache" != 1; then
9060 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9061 fi
9062
9063 if test "$wxUSE_SPLASH" = yes; then
9064 echo "$as_me:$LINENO: result: yes" >&5
9065echo "${ECHO_T}yes" >&6
9066 else
9067 echo "$as_me:$LINENO: result: no" >&5
9068echo "${ECHO_T}no" >&6
9069 fi
9070
9071
9072 enablestring=
9073 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9074echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9075 no_cache=0
9076 # Check whether --enable-textdlg or --disable-textdlg was given.
9077if test "${enable_textdlg+set}" = set; then
9078 enableval="$enable_textdlg"
9079
9080 if test "$enableval" = yes; then
9081 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9082 else
9083 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9084 fi
9085
9086else
9087
9088 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9089 if test "x$LINE" != x ; then
9090 eval "DEFAULT_$LINE"
9091 else
9092 no_cache=1
9093 fi
9094
9095 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9096
9097fi;
9098
9099 eval "$ac_cv_use_textdlg"
9100 if test "$no_cache" != 1; then
9101 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9102 fi
9103
9104 if test "$wxUSE_TEXTDLG" = yes; then
9105 echo "$as_me:$LINENO: result: yes" >&5
9106echo "${ECHO_T}yes" >&6
9107 else
9108 echo "$as_me:$LINENO: result: no" >&5
9109echo "${ECHO_T}no" >&6
9110 fi
9111
9112
9113 enablestring=
9114 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9115echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9116 no_cache=0
9117 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9118if test "${enable_tipdlg+set}" = set; then
9119 enableval="$enable_tipdlg"
9120
9121 if test "$enableval" = yes; then
9122 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9123 else
9124 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9125 fi
9126
9127else
9128
9129 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9130 if test "x$LINE" != x ; then
9131 eval "DEFAULT_$LINE"
9132 else
9133 no_cache=1
9134 fi
9135
9136 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9137
9138fi;
9139
9140 eval "$ac_cv_use_tipdlg"
9141 if test "$no_cache" != 1; then
9142 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9143 fi
9144
9145 if test "$wxUSE_STARTUP_TIPS" = yes; then
9146 echo "$as_me:$LINENO: result: yes" >&5
9147echo "${ECHO_T}yes" >&6
9148 else
9149 echo "$as_me:$LINENO: result: no" >&5
9150echo "${ECHO_T}no" >&6
9151 fi
9152
9153
9154 enablestring=
9155 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9156echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9157 no_cache=0
9158 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9159if test "${enable_progressdlg+set}" = set; then
9160 enableval="$enable_progressdlg"
9161
9162 if test "$enableval" = yes; then
9163 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9164 else
9165 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9166 fi
9167
9168else
9169
9170 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9171 if test "x$LINE" != x ; then
9172 eval "DEFAULT_$LINE"
9173 else
9174 no_cache=1
9175 fi
9176
9177 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9178
9179fi;
9180
9181 eval "$ac_cv_use_progressdlg"
9182 if test "$no_cache" != 1; then
9183 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9184 fi
9185
9186 if test "$wxUSE_PROGRESSDLG" = yes; then
9187 echo "$as_me:$LINENO: result: yes" >&5
9188echo "${ECHO_T}yes" >&6
9189 else
9190 echo "$as_me:$LINENO: result: no" >&5
9191echo "${ECHO_T}no" >&6
9192 fi
9193
9194
9195 enablestring=
9196 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9197echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9198 no_cache=0
9199 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9200if test "${enable_wizarddlg+set}" = set; then
9201 enableval="$enable_wizarddlg"
9202
9203 if test "$enableval" = yes; then
9204 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9205 else
9206 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9207 fi
9208
9209else
9210
9211 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9212 if test "x$LINE" != x ; then
9213 eval "DEFAULT_$LINE"
9214 else
9215 no_cache=1
9216 fi
9217
9218 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9219
9220fi;
9221
9222 eval "$ac_cv_use_wizarddlg"
9223 if test "$no_cache" != 1; then
9224 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9225 fi
9226
9227 if test "$wxUSE_WIZARDDLG" = yes; then
9228 echo "$as_me:$LINENO: result: yes" >&5
9229echo "${ECHO_T}yes" >&6
9230 else
9231 echo "$as_me:$LINENO: result: no" >&5
9232echo "${ECHO_T}no" >&6
9233 fi
9234
9235
9236
9237
9238 enablestring=
9239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9240echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9241 no_cache=0
9242 # Check whether --enable-menus or --disable-menus was given.
9243if test "${enable_menus+set}" = set; then
9244 enableval="$enable_menus"
9245
9246 if test "$enableval" = yes; then
9247 ac_cv_use_menus='wxUSE_MENUS=yes'
9248 else
9249 ac_cv_use_menus='wxUSE_MENUS=no'
9250 fi
9251
9252else
9253
9254 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9255 if test "x$LINE" != x ; then
9256 eval "DEFAULT_$LINE"
9257 else
9258 no_cache=1
9259 fi
9260
9261 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9262
9263fi;
9264
9265 eval "$ac_cv_use_menus"
9266 if test "$no_cache" != 1; then
9267 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9268 fi
9269
9270 if test "$wxUSE_MENUS" = yes; then
9271 echo "$as_me:$LINENO: result: yes" >&5
9272echo "${ECHO_T}yes" >&6
9273 else
9274 echo "$as_me:$LINENO: result: no" >&5
9275echo "${ECHO_T}no" >&6
9276 fi
9277
9278
9279 enablestring=
9280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9281echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9282 no_cache=0
9283 # Check whether --enable-miniframe or --disable-miniframe was given.
9284if test "${enable_miniframe+set}" = set; then
9285 enableval="$enable_miniframe"
9286
9287 if test "$enableval" = yes; then
9288 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9289 else
9290 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9291 fi
9292
9293else
9294
9295 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9296 if test "x$LINE" != x ; then
9297 eval "DEFAULT_$LINE"
9298 else
9299 no_cache=1
9300 fi
9301
9302 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9303
9304fi;
9305
9306 eval "$ac_cv_use_miniframe"
9307 if test "$no_cache" != 1; then
9308 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9309 fi
9310
9311 if test "$wxUSE_MINIFRAME" = yes; then
9312 echo "$as_me:$LINENO: result: yes" >&5
9313echo "${ECHO_T}yes" >&6
9314 else
9315 echo "$as_me:$LINENO: result: no" >&5
9316echo "${ECHO_T}no" >&6
9317 fi
9318
9319
9320 enablestring=
9321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9322echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9323 no_cache=0
9324 # Check whether --enable-tooltips or --disable-tooltips was given.
9325if test "${enable_tooltips+set}" = set; then
9326 enableval="$enable_tooltips"
9327
9328 if test "$enableval" = yes; then
9329 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9330 else
9331 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9332 fi
9333
9334else
9335
9336 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9337 if test "x$LINE" != x ; then
9338 eval "DEFAULT_$LINE"
9339 else
9340 no_cache=1
9341 fi
9342
9343 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9344
9345fi;
9346
9347 eval "$ac_cv_use_tooltips"
9348 if test "$no_cache" != 1; then
9349 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9350 fi
9351
9352 if test "$wxUSE_TOOLTIPS" = yes; then
9353 echo "$as_me:$LINENO: result: yes" >&5
9354echo "${ECHO_T}yes" >&6
9355 else
9356 echo "$as_me:$LINENO: result: no" >&5
9357echo "${ECHO_T}no" >&6
9358 fi
9359
9360
9361 enablestring=
9362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9363echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9364 no_cache=0
9365 # Check whether --enable-splines or --disable-splines was given.
9366if test "${enable_splines+set}" = set; then
9367 enableval="$enable_splines"
9368
9369 if test "$enableval" = yes; then
9370 ac_cv_use_splines='wxUSE_SPLINES=yes'
9371 else
9372 ac_cv_use_splines='wxUSE_SPLINES=no'
9373 fi
9374
9375else
9376
9377 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9378 if test "x$LINE" != x ; then
9379 eval "DEFAULT_$LINE"
9380 else
9381 no_cache=1
9382 fi
9383
9384 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9385
9386fi;
9387
9388 eval "$ac_cv_use_splines"
9389 if test "$no_cache" != 1; then
9390 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9391 fi
9392
9393 if test "$wxUSE_SPLINES" = yes; then
9394 echo "$as_me:$LINENO: result: yes" >&5
9395echo "${ECHO_T}yes" >&6
9396 else
9397 echo "$as_me:$LINENO: result: no" >&5
9398echo "${ECHO_T}no" >&6
9399 fi
9400
9401
9402 enablestring=
9403 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9404echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9405 no_cache=0
9406 # Check whether --enable-validators or --disable-validators was given.
9407if test "${enable_validators+set}" = set; then
9408 enableval="$enable_validators"
9409
9410 if test "$enableval" = yes; then
9411 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9412 else
9413 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9414 fi
9415
9416else
9417
9418 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9419 if test "x$LINE" != x ; then
9420 eval "DEFAULT_$LINE"
9421 else
9422 no_cache=1
9423 fi
9424
9425 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9426
9427fi;
9428
9429 eval "$ac_cv_use_validators"
9430 if test "$no_cache" != 1; then
9431 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9432 fi
9433
9434 if test "$wxUSE_VALIDATORS" = yes; then
9435 echo "$as_me:$LINENO: result: yes" >&5
9436echo "${ECHO_T}yes" >&6
9437 else
9438 echo "$as_me:$LINENO: result: no" >&5
9439echo "${ECHO_T}no" >&6
9440 fi
9441
9442
9443 enablestring=
9444 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9445echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9446 no_cache=0
9447 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9448if test "${enable_busyinfo+set}" = set; then
9449 enableval="$enable_busyinfo"
9450
9451 if test "$enableval" = yes; then
9452 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9453 else
9454 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9455 fi
9456
9457else
9458
9459 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9460 if test "x$LINE" != x ; then
9461 eval "DEFAULT_$LINE"
9462 else
9463 no_cache=1
9464 fi
9465
9466 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9467
9468fi;
9469
9470 eval "$ac_cv_use_busyinfo"
9471 if test "$no_cache" != 1; then
9472 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9473 fi
9474
9475 if test "$wxUSE_BUSYINFO" = yes; then
9476 echo "$as_me:$LINENO: result: yes" >&5
9477echo "${ECHO_T}yes" >&6
9478 else
9479 echo "$as_me:$LINENO: result: no" >&5
9480echo "${ECHO_T}no" >&6
9481 fi
9482
9483
9484 enablestring=
9485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9486echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9487 no_cache=0
9488 # Check whether --enable-joystick or --disable-joystick was given.
9489if test "${enable_joystick+set}" = set; then
9490 enableval="$enable_joystick"
9491
9492 if test "$enableval" = yes; then
9493 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9494 else
9495 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9496 fi
9497
9498else
9499
9500 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9501 if test "x$LINE" != x ; then
9502 eval "DEFAULT_$LINE"
9503 else
9504 no_cache=1
9505 fi
9506
9507 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9508
9509fi;
9510
9511 eval "$ac_cv_use_joystick"
9512 if test "$no_cache" != 1; then
9513 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9514 fi
9515
9516 if test "$wxUSE_JOYSTICK" = yes; then
9517 echo "$as_me:$LINENO: result: yes" >&5
9518echo "${ECHO_T}yes" >&6
9519 else
9520 echo "$as_me:$LINENO: result: no" >&5
9521echo "${ECHO_T}no" >&6
9522 fi
9523
9524
9525 enablestring=
9526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9527echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9528 no_cache=0
9529 # Check whether --enable-metafile or --disable-metafile was given.
9530if test "${enable_metafile+set}" = set; then
9531 enableval="$enable_metafile"
9532
9533 if test "$enableval" = yes; then
9534 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9535 else
9536 ac_cv_use_metafile='wxUSE_METAFILE=no'
9537 fi
9538
9539else
9540
9541 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9542 if test "x$LINE" != x ; then
9543 eval "DEFAULT_$LINE"
9544 else
9545 no_cache=1
9546 fi
9547
9548 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9549
9550fi;
9551
9552 eval "$ac_cv_use_metafile"
9553 if test "$no_cache" != 1; then
9554 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9555 fi
9556
9557 if test "$wxUSE_METAFILE" = yes; then
9558 echo "$as_me:$LINENO: result: yes" >&5
9559echo "${ECHO_T}yes" >&6
9560 else
9561 echo "$as_me:$LINENO: result: no" >&5
9562echo "${ECHO_T}no" >&6
9563 fi
9564
9565
9566 enablestring=
9567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9568echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9569 no_cache=0
9570 # Check whether --enable-dragimage or --disable-dragimage was given.
9571if test "${enable_dragimage+set}" = set; then
9572 enableval="$enable_dragimage"
9573
9574 if test "$enableval" = yes; then
9575 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9576 else
9577 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9578 fi
9579
9580else
9581
9582 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9583 if test "x$LINE" != x ; then
9584 eval "DEFAULT_$LINE"
9585 else
9586 no_cache=1
9587 fi
9588
9589 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9590
9591fi;
9592
9593 eval "$ac_cv_use_dragimage"
9594 if test "$no_cache" != 1; then
9595 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9596 fi
9597
9598 if test "$wxUSE_DRAGIMAGE" = yes; then
9599 echo "$as_me:$LINENO: result: yes" >&5
9600echo "${ECHO_T}yes" >&6
9601 else
9602 echo "$as_me:$LINENO: result: no" >&5
9603echo "${ECHO_T}no" >&6
9604 fi
9605
9606
9607 enablestring=
9608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9609echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9610 no_cache=0
9611 # Check whether --enable-accessibility or --disable-accessibility was given.
9612if test "${enable_accessibility+set}" = set; then
9613 enableval="$enable_accessibility"
9614
9615 if test "$enableval" = yes; then
9616 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9617 else
9618 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9619 fi
9620
9621else
9622
9623 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9624 if test "x$LINE" != x ; then
9625 eval "DEFAULT_$LINE"
9626 else
9627 no_cache=1
9628 fi
9629
9630 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9631
9632fi;
9633
9634 eval "$ac_cv_use_accessibility"
9635 if test "$no_cache" != 1; then
9636 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9637 fi
9638
9639 if test "$wxUSE_ACCESSIBILITY" = yes; then
9640 echo "$as_me:$LINENO: result: yes" >&5
9641echo "${ECHO_T}yes" >&6
9642 else
9643 echo "$as_me:$LINENO: result: no" >&5
9644echo "${ECHO_T}no" >&6
9645 fi
9646
9647
9648
9649
9650 enablestring=
9651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9652echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9653 no_cache=0
9654 # Check whether --enable-palette or --disable-palette was given.
9655if test "${enable_palette+set}" = set; then
9656 enableval="$enable_palette"
9657
9658 if test "$enableval" = yes; then
9659 ac_cv_use_palette='wxUSE_PALETTE=yes'
9660 else
9661 ac_cv_use_palette='wxUSE_PALETTE=no'
9662 fi
9663
9664else
9665
9666 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9667 if test "x$LINE" != x ; then
9668 eval "DEFAULT_$LINE"
9669 else
9670 no_cache=1
9671 fi
9672
9673 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9674
9675fi;
9676
9677 eval "$ac_cv_use_palette"
9678 if test "$no_cache" != 1; then
9679 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9680 fi
9681
9682 if test "$wxUSE_PALETTE" = yes; then
9683 echo "$as_me:$LINENO: result: yes" >&5
9684echo "${ECHO_T}yes" >&6
9685 else
9686 echo "$as_me:$LINENO: result: no" >&5
9687echo "${ECHO_T}no" >&6
9688 fi
9689
9690
9691 enablestring=
9692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9693echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9694 no_cache=0
9695 # Check whether --enable-image or --disable-image was given.
9696if test "${enable_image+set}" = set; then
9697 enableval="$enable_image"
9698
9699 if test "$enableval" = yes; then
9700 ac_cv_use_image='wxUSE_IMAGE=yes'
9701 else
9702 ac_cv_use_image='wxUSE_IMAGE=no'
9703 fi
9704
9705else
9706
9707 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9708 if test "x$LINE" != x ; then
9709 eval "DEFAULT_$LINE"
9710 else
9711 no_cache=1
9712 fi
9713
9714 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9715
9716fi;
9717
9718 eval "$ac_cv_use_image"
9719 if test "$no_cache" != 1; then
9720 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9721 fi
9722
9723 if test "$wxUSE_IMAGE" = yes; then
9724 echo "$as_me:$LINENO: result: yes" >&5
9725echo "${ECHO_T}yes" >&6
9726 else
9727 echo "$as_me:$LINENO: result: no" >&5
9728echo "${ECHO_T}no" >&6
9729 fi
9730
9731
9732 enablestring=
9733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9734echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9735 no_cache=0
9736 # Check whether --enable-gif or --disable-gif was given.
9737if test "${enable_gif+set}" = set; then
9738 enableval="$enable_gif"
9739
9740 if test "$enableval" = yes; then
9741 ac_cv_use_gif='wxUSE_GIF=yes'
9742 else
9743 ac_cv_use_gif='wxUSE_GIF=no'
9744 fi
9745
9746else
9747
9748 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9749 if test "x$LINE" != x ; then
9750 eval "DEFAULT_$LINE"
9751 else
9752 no_cache=1
9753 fi
9754
9755 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9756
9757fi;
9758
9759 eval "$ac_cv_use_gif"
9760 if test "$no_cache" != 1; then
9761 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9762 fi
9763
9764 if test "$wxUSE_GIF" = yes; then
9765 echo "$as_me:$LINENO: result: yes" >&5
9766echo "${ECHO_T}yes" >&6
9767 else
9768 echo "$as_me:$LINENO: result: no" >&5
9769echo "${ECHO_T}no" >&6
9770 fi
9771
9772
9773 enablestring=
9774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9775echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9776 no_cache=0
9777 # Check whether --enable-pcx or --disable-pcx was given.
9778if test "${enable_pcx+set}" = set; then
9779 enableval="$enable_pcx"
9780
9781 if test "$enableval" = yes; then
9782 ac_cv_use_pcx='wxUSE_PCX=yes'
9783 else
9784 ac_cv_use_pcx='wxUSE_PCX=no'
9785 fi
9786
9787else
9788
9789 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9790 if test "x$LINE" != x ; then
9791 eval "DEFAULT_$LINE"
9792 else
9793 no_cache=1
9794 fi
9795
9796 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9797
9798fi;
9799
9800 eval "$ac_cv_use_pcx"
9801 if test "$no_cache" != 1; then
9802 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9803 fi
9804
9805 if test "$wxUSE_PCX" = yes; then
9806 echo "$as_me:$LINENO: result: yes" >&5
9807echo "${ECHO_T}yes" >&6
9808 else
9809 echo "$as_me:$LINENO: result: no" >&5
9810echo "${ECHO_T}no" >&6
9811 fi
9812
9813
9814 enablestring=
9815 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9816echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9817 no_cache=0
9818 # Check whether --enable-iff or --disable-iff was given.
9819if test "${enable_iff+set}" = set; then
9820 enableval="$enable_iff"
9821
9822 if test "$enableval" = yes; then
9823 ac_cv_use_iff='wxUSE_IFF=yes'
9824 else
9825 ac_cv_use_iff='wxUSE_IFF=no'
9826 fi
9827
9828else
9829
9830 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9831 if test "x$LINE" != x ; then
9832 eval "DEFAULT_$LINE"
9833 else
9834 no_cache=1
9835 fi
9836
9837 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9838
9839fi;
9840
9841 eval "$ac_cv_use_iff"
9842 if test "$no_cache" != 1; then
9843 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9844 fi
9845
9846 if test "$wxUSE_IFF" = yes; then
9847 echo "$as_me:$LINENO: result: yes" >&5
9848echo "${ECHO_T}yes" >&6
9849 else
9850 echo "$as_me:$LINENO: result: no" >&5
9851echo "${ECHO_T}no" >&6
9852 fi
9853
9854
9855 enablestring=
9856 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9857echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9858 no_cache=0
9859 # Check whether --enable-pnm or --disable-pnm was given.
9860if test "${enable_pnm+set}" = set; then
9861 enableval="$enable_pnm"
9862
9863 if test "$enableval" = yes; then
9864 ac_cv_use_pnm='wxUSE_PNM=yes'
9865 else
9866 ac_cv_use_pnm='wxUSE_PNM=no'
9867 fi
9868
9869else
9870
9871 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9872 if test "x$LINE" != x ; then
9873 eval "DEFAULT_$LINE"
9874 else
9875 no_cache=1
9876 fi
9877
9878 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9879
9880fi;
9881
9882 eval "$ac_cv_use_pnm"
9883 if test "$no_cache" != 1; then
9884 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9885 fi
9886
9887 if test "$wxUSE_PNM" = yes; then
9888 echo "$as_me:$LINENO: result: yes" >&5
9889echo "${ECHO_T}yes" >&6
9890 else
9891 echo "$as_me:$LINENO: result: no" >&5
9892echo "${ECHO_T}no" >&6
9893 fi
9894
9895
9896 enablestring=
9897 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9898echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9899 no_cache=0
9900 # Check whether --enable-xpm or --disable-xpm was given.
9901if test "${enable_xpm+set}" = set; then
9902 enableval="$enable_xpm"
9903
9904 if test "$enableval" = yes; then
9905 ac_cv_use_xpm='wxUSE_XPM=yes'
9906 else
9907 ac_cv_use_xpm='wxUSE_XPM=no'
9908 fi
9909
9910else
9911
9912 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9913 if test "x$LINE" != x ; then
9914 eval "DEFAULT_$LINE"
9915 else
9916 no_cache=1
9917 fi
9918
9919 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9920
9921fi;
9922
9923 eval "$ac_cv_use_xpm"
9924 if test "$no_cache" != 1; then
9925 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9926 fi
9927
9928 if test "$wxUSE_XPM" = yes; then
9929 echo "$as_me:$LINENO: result: yes" >&5
9930echo "${ECHO_T}yes" >&6
9931 else
9932 echo "$as_me:$LINENO: result: no" >&5
9933echo "${ECHO_T}no" >&6
9934 fi
9935
9936
9937 enablestring=
9938 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9939echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9940 no_cache=0
9941 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9942if test "${enable_ico_cur+set}" = set; then
9943 enableval="$enable_ico_cur"
9944
9945 if test "$enableval" = yes; then
9946 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9947 else
9948 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9949 fi
9950
9951else
9952
9953 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9954 if test "x$LINE" != x ; then
9955 eval "DEFAULT_$LINE"
9956 else
9957 no_cache=1
9958 fi
9959
9960 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9961
9962fi;
9963
9964 eval "$ac_cv_use_ico_cur"
9965 if test "$no_cache" != 1; then
9966 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9967 fi
9968
9969 if test "$wxUSE_ICO_CUR" = yes; then
9970 echo "$as_me:$LINENO: result: yes" >&5
9971echo "${ECHO_T}yes" >&6
9972 else
9973 echo "$as_me:$LINENO: result: no" >&5
9974echo "${ECHO_T}no" >&6
9975 fi
9976
9977
9978fi
9979
9980
9981
ceec2216
RL
9982# Check whether --with-flavour or --without-flavour was given.
9983if test "${with_flavour+set}" = set; then
9984 withval="$with_flavour"
9985 WX_FLAVOUR="$withval"
9986fi;
9987
9988
9989
a848cd7e
SC
9990 enablestring=
9991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9992echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9993 no_cache=0
9994 # Check whether --enable-official_build or --disable-official_build was given.
9995if test "${enable_official_build+set}" = set; then
9996 enableval="$enable_official_build"
9997
9998 if test "$enableval" = yes; then
9999 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10000 else
10001 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10002 fi
10003
10004else
10005
10006 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10007 if test "x$LINE" != x ; then
10008 eval "DEFAULT_$LINE"
10009 else
10010 no_cache=1
10011 fi
10012
10013 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10014
10015fi;
10016
10017 eval "$ac_cv_use_official_build"
10018 if test "$no_cache" != 1; then
10019 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10020 fi
10021
10022 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10023 echo "$as_me:$LINENO: result: yes" >&5
10024echo "${ECHO_T}yes" >&6
10025 else
10026 echo "$as_me:$LINENO: result: no" >&5
10027echo "${ECHO_T}no" >&6
10028 fi
10029
10030# Check whether --enable-vendor or --disable-vendor was given.
10031if test "${enable_vendor+set}" = set; then
10032 enableval="$enable_vendor"
10033 VENDOR="$enableval"
10034fi;
10035if test "x$VENDOR" = "x"; then
10036 VENDOR="custom"
10037fi
10038
a848cd7e
SC
10039
10040
10041
10042 echo "saving argument cache $wx_arg_cache_file"
10043 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10044
10045
10046
10047echo "$as_me:$LINENO: checking for toolkit" >&5
10048echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10049
10050# In Wine, we need to default to MSW, not GTK or MOTIF
10051if test "$wxUSE_WINE" = "yes"; then
10052 DEFAULT_DEFAULT_wxUSE_GTK=0
10053 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10054 DEFAULT_DEFAULT_wxUSE_MSW=1
10055 wxUSE_SHARED=no
10056fi
10057
10058if test "$wxUSE_GUI" = "yes"; then
10059
10060 if test "$USE_BEOS" = 1; then
10061 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10062echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10063 { (exit 1); exit 1; }; }
10064 fi
10065
10066 if test "$TOOLKIT_GIVEN" = 1; then
10067 for toolkit in `echo $ALL_TOOLKITS`; do
10068 var=wxUSE_$toolkit
10069 eval "value=\$${var}"
10070 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10071 done
10072 else
10073 for toolkit in `echo $ALL_TOOLKITS`; do
10074 if test "$has_toolkit_in_cache" != 1; then
10075 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10076 else
10077 var=DEFAULT_wxUSE_$toolkit
10078 fi
10079 eval "wxUSE_$toolkit=\$${var}"
10080 done
10081 fi
10082
10083 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10084 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10085 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10086
10087 case "${host}" in
10088 *-pc-os2_emx | *-pc-os2-emx )
10089 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10090 esac
10091
10092 case "$NUM_TOOLKITS" in
10093 1)
10094 ;;
10095 0)
10096 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10097echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10098 { (exit 1); exit 1; }; }
10099 ;;
10100 *)
10101 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10102echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10103 { (exit 1); exit 1; }; }
10104 esac
10105
10106 for toolkit in `echo $ALL_TOOLKITS`; do
10107 var=wxUSE_$toolkit
10108 eval "value=\$${var}"
10109 if test "x$value" != x; then
10110 cache_var=CACHE_$toolkit
10111 eval "cache=\$${cache_var}"
10112 if test "$cache" = 1; then
10113 echo "$var=$value" >> ${wx_arg_cache_file}
10114 fi
10115 if test "$value" = 1; then
10116 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10117 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10118echo "${ECHO_T}$toolkit_echo" >&6
10119 fi
10120 fi
10121 done
10122else
10123 if test "x$host_alias" != "x"; then
10124 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10125echo "${ECHO_T}base ($host_alias hosted) only" >&6
10126 else
10127 echo "$as_me:$LINENO: result: base only" >&5
10128echo "${ECHO_T}base only" >&6
10129 fi
10130fi
10131
10132wants_win32=0
10133doesnt_want_win32=0
10134case "${host}" in
10135 *-*-cygwin*)
10136 if test "$wxUSE_MSW" = 1 ; then
10137 wants_win32=1
10138 else
10139 doesnt_want_win32=1
10140 fi
10141 ;;
10142 *-*-mingw*)
10143 wants_win32=1
10144 ;;
10145esac
10146
10147if test "$wxUSE_WINE" = "yes"; then
10148 wants_win32=1
10149 CC=winegcc
10150 CXX=wineg++
10151 RESCOMP=wrc
10152 LDFLAGS_GUI="-mwindows"
10153fi
10154
10155if test "$wants_win32" = 1 ; then
10156 USE_UNIX=0
10157 USE_WIN32=1
10158 cat >>confdefs.h <<\_ACEOF
10159#define __WIN32__ 1
10160_ACEOF
10161
10162 cat >>confdefs.h <<\_ACEOF
10163#define __WIN95__ 1
10164_ACEOF
10165
10166 cat >>confdefs.h <<\_ACEOF
10167#define __WINDOWS__ 1
10168_ACEOF
10169
10170 cat >>confdefs.h <<\_ACEOF
10171#define __GNUWIN32__ 1
10172_ACEOF
10173
10174 cat >>confdefs.h <<\_ACEOF
10175#define STRICT 1
10176_ACEOF
10177
10178 cat >>confdefs.h <<\_ACEOF
10179#define WINVER 0x0400
10180_ACEOF
10181
10182fi
10183if test "$doesnt_want_win32" = 1 ; then
10184 USE_UNIX=1
10185 USE_WIN32=0
10186fi
10187
10188if test "$USE_UNIX" = 1 ; then
10189 wxUSE_UNIX=yes
10190 cat >>confdefs.h <<\_ACEOF
10191#define __UNIX__ 1
10192_ACEOF
10193
10194fi
10195
10196
10197cat >confcache <<\_ACEOF
10198# This file is a shell script that caches the results of configure
10199# tests run on this system so they can be shared between configure
10200# scripts and configure runs, see configure's option --config-cache.
10201# It is not useful on other systems. If it contains results you don't
10202# want to keep, you may remove or edit it.
10203#
10204# config.status only pays attention to the cache file if you give it
10205# the --recheck option to rerun configure.
10206#
10207# `ac_cv_env_foo' variables (set or unset) will be overridden when
10208# loading this file, other *unset* `ac_cv_foo' will be assigned the
10209# following values.
10210
10211_ACEOF
10212
10213# The following way of writing the cache mishandles newlines in values,
10214# but we know of no workaround that is simple, portable, and efficient.
10215# So, don't put newlines in cache variables' values.
10216# Ultrix sh set writes to stderr and can't be redirected directly,
10217# and sets the high bit in the cache file unless we assign to the vars.
10218{
10219 (set) 2>&1 |
10220 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10221 *ac_space=\ *)
10222 # `set' does not quote correctly, so add quotes (double-quote
10223 # substitution turns \\\\ into \\, and sed turns \\ into \).
10224 sed -n \
ac1cb8d3
VS
10225 "s/'/'\\\\''/g;
10226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10227 ;;
10228 *)
10229 # `set' quotes correctly as required by POSIX, so do not add quotes.
10230 sed -n \
ac1cb8d3 10231 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10232 ;;
10233 esac;
10234} |
10235 sed '
10236 t clear
10237 : clear
10238 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10239 t end
10240 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10241 : end' >>confcache
10242if diff $cache_file confcache >/dev/null 2>&1; then :; else
10243 if test -w $cache_file; then
10244 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10245 cat confcache >$cache_file
10246 else
10247 echo "not updating unwritable cache $cache_file"
10248 fi
10249fi
10250rm -f confcache
10251
10252if test "$build" != "$host" ; then
10253 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10254 CC=$host_alias-gcc
10255 CXX=$host_alias-c++
10256 AR=$host_alias-ar
10257 RANLIB=$host_alias-ranlib
10258 DLLTOOL=$host_alias-dlltool
10259 RESCOMP=$host_alias-windres
a848cd7e
SC
10260 STRIP=$host_alias-strip
10261 else
10262 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10263echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10264 { (exit 1); exit 1; }; }
10265 fi
10266fi
10267
10268CFLAGS=${CFLAGS:=}
10269ac_ext=c
10270ac_cpp='$CPP $CPPFLAGS'
10271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10273ac_compiler_gnu=$ac_cv_c_compiler_gnu
10274if test -n "$ac_tool_prefix"; then
10275 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10276set dummy ${ac_tool_prefix}gcc; ac_word=$2
10277echo "$as_me:$LINENO: checking for $ac_word" >&5
10278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10279if test "${ac_cv_prog_CC+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281else
10282 if test -n "$CC"; then
10283 ac_cv_prog_CC="$CC" # Let the user override the test.
10284else
10285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286for as_dir in $PATH
10287do
10288 IFS=$as_save_IFS
10289 test -z "$as_dir" && as_dir=.
10290 for ac_exec_ext in '' $ac_executable_extensions; do
10291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10292 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10294 break 2
10295 fi
10296done
10297done
10298
10299fi
10300fi
10301CC=$ac_cv_prog_CC
10302if test -n "$CC"; then
10303 echo "$as_me:$LINENO: result: $CC" >&5
10304echo "${ECHO_T}$CC" >&6
10305else
10306 echo "$as_me:$LINENO: result: no" >&5
10307echo "${ECHO_T}no" >&6
10308fi
10309
10310fi
10311if test -z "$ac_cv_prog_CC"; then
10312 ac_ct_CC=$CC
10313 # Extract the first word of "gcc", so it can be a program name with args.
10314set dummy gcc; ac_word=$2
10315echo "$as_me:$LINENO: checking for $ac_word" >&5
10316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10317if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10318 echo $ECHO_N "(cached) $ECHO_C" >&6
10319else
10320 if test -n "$ac_ct_CC"; then
10321 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10322else
10323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324for as_dir in $PATH
10325do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10330 ac_cv_prog_ac_ct_CC="gcc"
10331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 break 2
10333 fi
10334done
10335done
10336
10337fi
10338fi
10339ac_ct_CC=$ac_cv_prog_ac_ct_CC
10340if test -n "$ac_ct_CC"; then
10341 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10342echo "${ECHO_T}$ac_ct_CC" >&6
10343else
10344 echo "$as_me:$LINENO: result: no" >&5
10345echo "${ECHO_T}no" >&6
10346fi
10347
10348 CC=$ac_ct_CC
10349else
10350 CC="$ac_cv_prog_CC"
10351fi
10352
10353if test -z "$CC"; then
10354 if test -n "$ac_tool_prefix"; then
10355 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10356set dummy ${ac_tool_prefix}cc; ac_word=$2
10357echo "$as_me:$LINENO: checking for $ac_word" >&5
10358echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10359if test "${ac_cv_prog_CC+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10361else
10362 if test -n "$CC"; then
10363 ac_cv_prog_CC="$CC" # Let the user override the test.
10364else
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_CC="${ac_tool_prefix}cc"
10373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 break 2
10375 fi
10376done
10377done
10378
10379fi
10380fi
10381CC=$ac_cv_prog_CC
10382if test -n "$CC"; then
10383 echo "$as_me:$LINENO: result: $CC" >&5
10384echo "${ECHO_T}$CC" >&6
10385else
10386 echo "$as_me:$LINENO: result: no" >&5
10387echo "${ECHO_T}no" >&6
10388fi
10389
10390fi
10391if test -z "$ac_cv_prog_CC"; then
10392 ac_ct_CC=$CC
10393 # Extract the first word of "cc", so it can be a program name with args.
10394set dummy cc; ac_word=$2
10395echo "$as_me:$LINENO: checking for $ac_word" >&5
10396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10397if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399else
10400 if test -n "$ac_ct_CC"; then
10401 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10402else
10403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404for as_dir in $PATH
10405do
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410 ac_cv_prog_ac_ct_CC="cc"
10411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10413 fi
10414done
10415done
10416
10417fi
10418fi
10419ac_ct_CC=$ac_cv_prog_ac_ct_CC
10420if test -n "$ac_ct_CC"; then
10421 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10422echo "${ECHO_T}$ac_ct_CC" >&6
10423else
10424 echo "$as_me:$LINENO: result: no" >&5
10425echo "${ECHO_T}no" >&6
10426fi
10427
10428 CC=$ac_ct_CC
10429else
10430 CC="$ac_cv_prog_CC"
10431fi
10432
10433fi
10434if test -z "$CC"; then
10435 # Extract the first word of "cc", so it can be a program name with args.
10436set dummy cc; ac_word=$2
10437echo "$as_me:$LINENO: checking for $ac_word" >&5
10438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10439if test "${ac_cv_prog_CC+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441else
10442 if test -n "$CC"; then
10443 ac_cv_prog_CC="$CC" # Let the user override the test.
10444else
10445 ac_prog_rejected=no
10446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447for as_dir in $PATH
10448do
10449 IFS=$as_save_IFS
10450 test -z "$as_dir" && as_dir=.
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10454 ac_prog_rejected=yes
10455 continue
10456 fi
10457 ac_cv_prog_CC="cc"
10458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10459 break 2
10460 fi
10461done
10462done
10463
10464if test $ac_prog_rejected = yes; then
10465 # We found a bogon in the path, so make sure we never use it.
10466 set dummy $ac_cv_prog_CC
10467 shift
10468 if test $# != 0; then
10469 # We chose a different compiler from the bogus one.
10470 # However, it has the same basename, so the bogon will be chosen
10471 # first if we set CC to just the basename; use the full file name.
10472 shift
10473 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10474 fi
10475fi
10476fi
10477fi
10478CC=$ac_cv_prog_CC
10479if test -n "$CC"; then
10480 echo "$as_me:$LINENO: result: $CC" >&5
10481echo "${ECHO_T}$CC" >&6
10482else
10483 echo "$as_me:$LINENO: result: no" >&5
10484echo "${ECHO_T}no" >&6
10485fi
10486
10487fi
10488if test -z "$CC"; then
10489 if test -n "$ac_tool_prefix"; then
10490 for ac_prog in cl
10491 do
10492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10494echo "$as_me:$LINENO: checking for $ac_word" >&5
10495echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10496if test "${ac_cv_prog_CC+set}" = set; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10498else
10499 if test -n "$CC"; then
10500 ac_cv_prog_CC="$CC" # Let the user override the test.
10501else
10502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503for as_dir in $PATH
10504do
10505 IFS=$as_save_IFS
10506 test -z "$as_dir" && as_dir=.
10507 for ac_exec_ext in '' $ac_executable_extensions; do
10508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10511 break 2
10512 fi
10513done
10514done
10515
10516fi
10517fi
10518CC=$ac_cv_prog_CC
10519if test -n "$CC"; then
10520 echo "$as_me:$LINENO: result: $CC" >&5
10521echo "${ECHO_T}$CC" >&6
10522else
10523 echo "$as_me:$LINENO: result: no" >&5
10524echo "${ECHO_T}no" >&6
10525fi
10526
10527 test -n "$CC" && break
10528 done
10529fi
10530if test -z "$CC"; then
10531 ac_ct_CC=$CC
10532 for ac_prog in cl
10533do
10534 # Extract the first word of "$ac_prog", so it can be a program name with args.
10535set dummy $ac_prog; ac_word=$2
10536echo "$as_me:$LINENO: checking for $ac_word" >&5
10537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10538if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10539 echo $ECHO_N "(cached) $ECHO_C" >&6
10540else
10541 if test -n "$ac_ct_CC"; then
10542 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10543else
10544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10545for as_dir in $PATH
10546do
10547 IFS=$as_save_IFS
10548 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do
10550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10551 ac_cv_prog_ac_ct_CC="$ac_prog"
10552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 break 2
10554 fi
10555done
10556done
10557
10558fi
10559fi
10560ac_ct_CC=$ac_cv_prog_ac_ct_CC
10561if test -n "$ac_ct_CC"; then
10562 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10563echo "${ECHO_T}$ac_ct_CC" >&6
10564else
10565 echo "$as_me:$LINENO: result: no" >&5
10566echo "${ECHO_T}no" >&6
10567fi
10568
10569 test -n "$ac_ct_CC" && break
10570done
10571
10572 CC=$ac_ct_CC
10573fi
10574
10575fi
10576
10577
10578test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10579See \`config.log' for more details." >&5
10580echo "$as_me: error: no acceptable C compiler found in \$PATH
10581See \`config.log' for more details." >&2;}
10582 { (exit 1); exit 1; }; }
10583
10584# Provide some information about the compiler.
10585echo "$as_me:$LINENO:" \
10586 "checking for C compiler version" >&5
10587ac_compiler=`set X $ac_compile; echo $2`
10588{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10589 (eval $ac_compiler --version </dev/null >&5) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }
10593{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10594 (eval $ac_compiler -v </dev/null >&5) 2>&5
10595 ac_status=$?
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }
10598{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10599 (eval $ac_compiler -V </dev/null >&5) 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }
10603
10604cat >conftest.$ac_ext <<_ACEOF
10605/* confdefs.h. */
10606_ACEOF
10607cat confdefs.h >>conftest.$ac_ext
10608cat >>conftest.$ac_ext <<_ACEOF
10609/* end confdefs.h. */
10610
10611int
10612main ()
10613{
10614
10615 ;
10616 return 0;
10617}
10618_ACEOF
10619ac_clean_files_save=$ac_clean_files
10620ac_clean_files="$ac_clean_files a.out a.exe b.out"
10621# Try to create an executable without -o first, disregard a.out.
10622# It will help us diagnose broken compilers, and finding out an intuition
10623# of exeext.
ac1cb8d3
VS
10624echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10625echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10626ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10627if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10628 (eval $ac_link_default) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; then
10632 # Find the output, starting from the most likely. This scheme is
10633# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10634# resort.
10635
10636# Be careful to initialize this variable, since it used to be cached.
10637# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10638ac_cv_exeext=
10639# b.out is created by i960 compilers.
10640for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10641do
10642 test -f "$ac_file" || continue
10643 case $ac_file in
10644 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10645 ;;
a848cd7e 10646 conftest.$ac_ext )
ac1cb8d3
VS
10647 # This is the source file.
10648 ;;
a848cd7e 10649 [ab].out )
ac1cb8d3
VS
10650 # We found the default executable, but exeext='' is most
10651 # certainly right.
10652 break;;
a848cd7e 10653 *.* )
ac1cb8d3
VS
10654 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10655 # FIXME: I believe we export ac_cv_exeext for Libtool,
10656 # but it would be cool to find out if it's true. Does anybody
10657 # maintain Libtool? --akim.
10658 export ac_cv_exeext
10659 break;;
a848cd7e 10660 * )
ac1cb8d3 10661 break;;
a848cd7e
SC
10662 esac
10663done
10664else
10665 echo "$as_me: failed program was:" >&5
10666sed 's/^/| /' conftest.$ac_ext >&5
10667
10668{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10669See \`config.log' for more details." >&5
10670echo "$as_me: error: C compiler cannot create executables
10671See \`config.log' for more details." >&2;}
10672 { (exit 77); exit 77; }; }
10673fi
10674
10675ac_exeext=$ac_cv_exeext
10676echo "$as_me:$LINENO: result: $ac_file" >&5
10677echo "${ECHO_T}$ac_file" >&6
10678
10679# Check the compiler produces executables we can run. If not, either
10680# the compiler is broken, or we cross compile.
10681echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10682echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10683# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10684# If not cross compiling, check that we can run a simple program.
10685if test "$cross_compiling" != yes; then
10686 if { ac_try='./$ac_file'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10689 ac_status=$?
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 cross_compiling=no
10693 else
10694 if test "$cross_compiling" = maybe; then
10695 cross_compiling=yes
10696 else
10697 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10698If you meant to cross compile, use \`--host'.
10699See \`config.log' for more details." >&5
10700echo "$as_me: error: cannot run C compiled programs.
10701If you meant to cross compile, use \`--host'.
10702See \`config.log' for more details." >&2;}
10703 { (exit 1); exit 1; }; }
10704 fi
10705 fi
10706fi
10707echo "$as_me:$LINENO: result: yes" >&5
10708echo "${ECHO_T}yes" >&6
10709
10710rm -f a.out a.exe conftest$ac_cv_exeext b.out
10711ac_clean_files=$ac_clean_files_save
10712# Check the compiler produces executables we can run. If not, either
10713# the compiler is broken, or we cross compile.
10714echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10715echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10716echo "$as_me:$LINENO: result: $cross_compiling" >&5
10717echo "${ECHO_T}$cross_compiling" >&6
10718
10719echo "$as_me:$LINENO: checking for suffix of executables" >&5
10720echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10722 (eval $ac_link) 2>&5
10723 ac_status=$?
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; then
10726 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10727# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10728# work properly (i.e., refer to `conftest.exe'), while it won't with
10729# `rm'.
10730for ac_file in conftest.exe conftest conftest.*; do
10731 test -f "$ac_file" || continue
10732 case $ac_file in
10733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10734 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10735 export ac_cv_exeext
10736 break;;
a848cd7e
SC
10737 * ) break;;
10738 esac
10739done
10740else
10741 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10742See \`config.log' for more details." >&5
10743echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10744See \`config.log' for more details." >&2;}
10745 { (exit 1); exit 1; }; }
10746fi
10747
10748rm -f conftest$ac_cv_exeext
10749echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10750echo "${ECHO_T}$ac_cv_exeext" >&6
10751
10752rm -f conftest.$ac_ext
10753EXEEXT=$ac_cv_exeext
10754ac_exeext=$EXEEXT
10755echo "$as_me:$LINENO: checking for suffix of object files" >&5
10756echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10757if test "${ac_cv_objext+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10759else
10760 cat >conftest.$ac_ext <<_ACEOF
10761/* confdefs.h. */
10762_ACEOF
10763cat confdefs.h >>conftest.$ac_ext
10764cat >>conftest.$ac_ext <<_ACEOF
10765/* end confdefs.h. */
10766
10767int
10768main ()
10769{
10770
10771 ;
10772 return 0;
10773}
10774_ACEOF
10775rm -f conftest.o conftest.obj
10776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10777 (eval $ac_compile) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; then
10781 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10782 case $ac_file in
10783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10784 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10785 break;;
10786 esac
10787done
10788else
10789 echo "$as_me: failed program was:" >&5
10790sed 's/^/| /' conftest.$ac_ext >&5
10791
10792{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10793See \`config.log' for more details." >&5
10794echo "$as_me: error: cannot compute suffix of object files: cannot compile
10795See \`config.log' for more details." >&2;}
10796 { (exit 1); exit 1; }; }
10797fi
10798
10799rm -f conftest.$ac_cv_objext conftest.$ac_ext
10800fi
10801echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10802echo "${ECHO_T}$ac_cv_objext" >&6
10803OBJEXT=$ac_cv_objext
10804ac_objext=$OBJEXT
10805echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10806echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10807if test "${ac_cv_c_compiler_gnu+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10809else
10810 cat >conftest.$ac_ext <<_ACEOF
10811/* confdefs.h. */
10812_ACEOF
10813cat confdefs.h >>conftest.$ac_ext
10814cat >>conftest.$ac_ext <<_ACEOF
10815/* end confdefs.h. */
10816
10817int
10818main ()
10819{
10820#ifndef __GNUC__
10821 choke me
10822#endif
10823
10824 ;
10825 return 0;
10826}
10827_ACEOF
10828rm -f conftest.$ac_objext
10829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10830 (eval $ac_compile) 2>conftest.er1
a848cd7e 10831 ac_status=$?
ac1cb8d3
VS
10832 grep -v '^ *+' conftest.er1 >conftest.err
10833 rm -f conftest.er1
10834 cat conftest.err >&5
a848cd7e
SC
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } &&
7714864e 10837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10839 (eval $ac_try) 2>&5
10840 ac_status=$?
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); }; } &&
10843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10846 ac_status=$?
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 ac_compiler_gnu=yes
10850else
10851 echo "$as_me: failed program was:" >&5
10852sed 's/^/| /' conftest.$ac_ext >&5
10853
10854ac_compiler_gnu=no
10855fi
ac1cb8d3 10856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10857ac_cv_c_compiler_gnu=$ac_compiler_gnu
10858
10859fi
10860echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10861echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10862GCC=`test $ac_compiler_gnu = yes && echo yes`
10863ac_test_CFLAGS=${CFLAGS+set}
10864ac_save_CFLAGS=$CFLAGS
10865CFLAGS="-g"
10866echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10867echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10868if test "${ac_cv_prog_cc_g+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10870else
10871 cat >conftest.$ac_ext <<_ACEOF
10872/* confdefs.h. */
10873_ACEOF
10874cat confdefs.h >>conftest.$ac_ext
10875cat >>conftest.$ac_ext <<_ACEOF
10876/* end confdefs.h. */
10877
10878int
10879main ()
10880{
10881
10882 ;
10883 return 0;
10884}
10885_ACEOF
10886rm -f conftest.$ac_objext
10887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10888 (eval $ac_compile) 2>conftest.er1
a848cd7e 10889 ac_status=$?
ac1cb8d3
VS
10890 grep -v '^ *+' conftest.er1 >conftest.err
10891 rm -f conftest.er1
10892 cat conftest.err >&5
a848cd7e
SC
10893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894 (exit $ac_status); } &&
7714864e 10895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897 (eval $ac_try) 2>&5
10898 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; } &&
10901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 ac_cv_prog_cc_g=yes
10908else
10909 echo "$as_me: failed program was:" >&5
10910sed 's/^/| /' conftest.$ac_ext >&5
10911
10912ac_cv_prog_cc_g=no
10913fi
ac1cb8d3 10914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10915fi
10916echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10917echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10918if test "$ac_test_CFLAGS" = set; then
10919 CFLAGS=$ac_save_CFLAGS
10920elif test $ac_cv_prog_cc_g = yes; then
10921 if test "$GCC" = yes; then
10922 CFLAGS="-g -O2"
10923 else
10924 CFLAGS="-g"
10925 fi
10926else
10927 if test "$GCC" = yes; then
10928 CFLAGS="-O2"
10929 else
10930 CFLAGS=
10931 fi
10932fi
10933echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10934echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10935if test "${ac_cv_prog_cc_stdc+set}" = set; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10937else
10938 ac_cv_prog_cc_stdc=no
10939ac_save_CC=$CC
10940cat >conftest.$ac_ext <<_ACEOF
10941/* confdefs.h. */
10942_ACEOF
10943cat confdefs.h >>conftest.$ac_ext
10944cat >>conftest.$ac_ext <<_ACEOF
10945/* end confdefs.h. */
10946#include <stdarg.h>
10947#include <stdio.h>
10948#include <sys/types.h>
10949#include <sys/stat.h>
10950/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10951struct buf { int x; };
10952FILE * (*rcsopen) (struct buf *, struct stat *, int);
10953static char *e (p, i)
10954 char **p;
10955 int i;
10956{
10957 return p[i];
10958}
10959static char *f (char * (*g) (char **, int), char **p, ...)
10960{
10961 char *s;
10962 va_list v;
10963 va_start (v,p);
10964 s = g (p, va_arg (v,int));
10965 va_end (v);
10966 return s;
10967}
ac1cb8d3
VS
10968
10969/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10970 function prototypes and stuff, but not '\xHH' hex character constants.
10971 These don't provoke an error unfortunately, instead are silently treated
10972 as 'x'. The following induces an error, until -std1 is added to get
10973 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10974 array size at least. It's necessary to write '\x00'==0 to get something
10975 that's true only with -std1. */
10976int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10977
a848cd7e
SC
10978int test (int i, double x);
10979struct s1 {int (*f) (int a);};
10980struct s2 {int (*f) (double a);};
10981int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10982int argc;
10983char **argv;
10984int
10985main ()
10986{
10987return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10988 ;
10989 return 0;
10990}
10991_ACEOF
10992# Don't try gcc -ansi; that turns off useful extensions and
10993# breaks some systems' header files.
10994# AIX -qlanglvl=ansi
10995# Ultrix and OSF/1 -std1
10996# HP-UX 10.20 and later -Ae
10997# HP-UX older versions -Aa -D_HPUX_SOURCE
10998# SVR4 -Xc -D__EXTENSIONS__
10999for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11000do
11001 CC="$ac_save_CC $ac_arg"
11002 rm -f conftest.$ac_objext
11003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11004 (eval $ac_compile) 2>conftest.er1
a848cd7e 11005 ac_status=$?
ac1cb8d3
VS
11006 grep -v '^ *+' conftest.er1 >conftest.err
11007 rm -f conftest.er1
11008 cat conftest.err >&5
a848cd7e
SC
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); } &&
7714864e 11011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11013 (eval $ac_try) 2>&5
11014 ac_status=$?
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); }; } &&
11017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11019 (eval $ac_try) 2>&5
11020 ac_status=$?
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); }; }; then
11023 ac_cv_prog_cc_stdc=$ac_arg
11024break
11025else
11026 echo "$as_me: failed program was:" >&5
11027sed 's/^/| /' conftest.$ac_ext >&5
11028
11029fi
ac1cb8d3 11030rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11031done
11032rm -f conftest.$ac_ext conftest.$ac_objext
11033CC=$ac_save_CC
11034
11035fi
11036
11037case "x$ac_cv_prog_cc_stdc" in
11038 x|xno)
11039 echo "$as_me:$LINENO: result: none needed" >&5
11040echo "${ECHO_T}none needed" >&6 ;;
11041 *)
11042 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11043echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11044 CC="$CC $ac_cv_prog_cc_stdc" ;;
11045esac
11046
11047# Some people use a C++ compiler to compile C. Since we use `exit',
11048# in C++ we need to declare it. In case someone uses the same compiler
11049# for both compiling C and C++ we need to have the C++ compiler decide
11050# the declaration of exit, since it's the most demanding environment.
11051cat >conftest.$ac_ext <<_ACEOF
11052#ifndef __cplusplus
11053 choke me
11054#endif
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); } &&
7714864e 11065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 for ac_declaration in \
ac1cb8d3 11078 '' \
a848cd7e
SC
11079 'extern "C" void std::exit (int) throw (); using std::exit;' \
11080 'extern "C" void std::exit (int); using std::exit;' \
11081 'extern "C" void exit (int) throw ();' \
11082 'extern "C" void exit (int);' \
11083 'void exit (int);'
11084do
11085 cat >conftest.$ac_ext <<_ACEOF
11086/* confdefs.h. */
11087_ACEOF
11088cat confdefs.h >>conftest.$ac_ext
11089cat >>conftest.$ac_ext <<_ACEOF
11090/* end confdefs.h. */
de59c161 11091$ac_declaration
ac1cb8d3 11092#include <stdlib.h>
a848cd7e
SC
11093int
11094main ()
11095{
11096exit (42);
11097 ;
11098 return 0;
11099}
11100_ACEOF
11101rm -f conftest.$ac_objext
11102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11103 (eval $ac_compile) 2>conftest.er1
a848cd7e 11104 ac_status=$?
ac1cb8d3
VS
11105 grep -v '^ *+' conftest.er1 >conftest.err
11106 rm -f conftest.er1
11107 cat conftest.err >&5
a848cd7e
SC
11108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109 (exit $ac_status); } &&
7714864e 11110 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112 (eval $ac_try) 2>&5
11113 ac_status=$?
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }; } &&
11116 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11119 ac_status=$?
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 :
11123else
11124 echo "$as_me: failed program was:" >&5
11125sed 's/^/| /' conftest.$ac_ext >&5
11126
11127continue
11128fi
ac1cb8d3 11129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11130 cat >conftest.$ac_ext <<_ACEOF
11131/* confdefs.h. */
11132_ACEOF
11133cat confdefs.h >>conftest.$ac_ext
11134cat >>conftest.$ac_ext <<_ACEOF
11135/* end confdefs.h. */
11136$ac_declaration
11137int
11138main ()
11139{
11140exit (42);
11141 ;
11142 return 0;
11143}
11144_ACEOF
11145rm -f conftest.$ac_objext
11146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11147 (eval $ac_compile) 2>conftest.er1
a848cd7e 11148 ac_status=$?
ac1cb8d3
VS
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
a848cd7e
SC
11152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } &&
7714864e 11154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11156 (eval $ac_try) 2>&5
11157 ac_status=$?
11158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159 (exit $ac_status); }; } &&
11160 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11162 (eval $ac_try) 2>&5
11163 ac_status=$?
11164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165 (exit $ac_status); }; }; then
11166 break
11167else
11168 echo "$as_me: failed program was:" >&5
11169sed 's/^/| /' conftest.$ac_ext >&5
11170
11171fi
ac1cb8d3 11172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11173done
11174rm -f conftest*
11175if test -n "$ac_declaration"; then
11176 echo '#ifdef __cplusplus' >>confdefs.h
11177 echo $ac_declaration >>confdefs.h
11178 echo '#endif' >>confdefs.h
11179fi
11180
11181else
11182 echo "$as_me: failed program was:" >&5
11183sed 's/^/| /' conftest.$ac_ext >&5
11184
11185fi
ac1cb8d3 11186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11187ac_ext=c
11188ac_cpp='$CPP $CPPFLAGS'
11189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11191ac_compiler_gnu=$ac_cv_c_compiler_gnu
11192
11193
11194
11195ac_ext=c
11196ac_cpp='$CPP $CPPFLAGS'
11197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11199ac_compiler_gnu=$ac_cv_c_compiler_gnu
11200echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11201echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11202# On Suns, sometimes $CPP names a directory.
11203if test -n "$CPP" && test -d "$CPP"; then
11204 CPP=
11205fi
11206if test -z "$CPP"; then
11207 if test "${ac_cv_prog_CPP+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209else
11210 # Double quotes because CPP needs to be expanded
11211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11212 do
11213 ac_preproc_ok=false
11214for ac_c_preproc_warn_flag in '' yes
11215do
11216 # Use a header file that comes with gcc, so configuring glibc
11217 # with a fresh cross-compiler works.
11218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11219 # <limits.h> exists even on freestanding compilers.
11220 # On the NeXT, cc -E runs the code through the compiler's parser,
11221 # not just through cpp. "Syntax error" is here to catch this case.
11222 cat >conftest.$ac_ext <<_ACEOF
11223/* confdefs.h. */
11224_ACEOF
11225cat confdefs.h >>conftest.$ac_ext
11226cat >>conftest.$ac_ext <<_ACEOF
11227/* end confdefs.h. */
11228#ifdef __STDC__
11229# include <limits.h>
11230#else
11231# include <assert.h>
11232#endif
ac1cb8d3 11233 Syntax error
a848cd7e
SC
11234_ACEOF
11235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } >/dev/null; then
11243 if test -s conftest.err; then
11244 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11246 else
11247 ac_cpp_err=
11248 fi
11249else
11250 ac_cpp_err=yes
11251fi
11252if test -z "$ac_cpp_err"; then
11253 :
11254else
11255 echo "$as_me: failed program was:" >&5
11256sed 's/^/| /' conftest.$ac_ext >&5
11257
11258 # Broken: fails on valid input.
11259continue
11260fi
11261rm -f conftest.err conftest.$ac_ext
11262
11263 # OK, works on sane cases. Now check whether non-existent headers
11264 # can be detected and how.
11265 cat >conftest.$ac_ext <<_ACEOF
11266/* confdefs.h. */
11267_ACEOF
11268cat confdefs.h >>conftest.$ac_ext
11269cat >>conftest.$ac_ext <<_ACEOF
11270/* end confdefs.h. */
11271#include <ac_nonexistent.h>
11272_ACEOF
11273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11274 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11275 ac_status=$?
11276 grep -v '^ *+' conftest.er1 >conftest.err
11277 rm -f conftest.er1
11278 cat conftest.err >&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); } >/dev/null; then
11281 if test -s conftest.err; then
11282 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11283 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11284 else
11285 ac_cpp_err=
11286 fi
11287else
11288 ac_cpp_err=yes
11289fi
11290if test -z "$ac_cpp_err"; then
11291 # Broken: success on invalid input.
11292continue
11293else
11294 echo "$as_me: failed program was:" >&5
11295sed 's/^/| /' conftest.$ac_ext >&5
11296
11297 # Passes both tests.
11298ac_preproc_ok=:
11299break
11300fi
11301rm -f conftest.err conftest.$ac_ext
11302
11303done
11304# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11305rm -f conftest.err conftest.$ac_ext
11306if $ac_preproc_ok; then
11307 break
11308fi
11309
11310 done
11311 ac_cv_prog_CPP=$CPP
11312
11313fi
11314 CPP=$ac_cv_prog_CPP
11315else
11316 ac_cv_prog_CPP=$CPP
11317fi
11318echo "$as_me:$LINENO: result: $CPP" >&5
11319echo "${ECHO_T}$CPP" >&6
11320ac_preproc_ok=false
11321for ac_c_preproc_warn_flag in '' yes
11322do
11323 # Use a header file that comes with gcc, so configuring glibc
11324 # with a fresh cross-compiler works.
11325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11326 # <limits.h> exists even on freestanding compilers.
11327 # On the NeXT, cc -E runs the code through the compiler's parser,
11328 # not just through cpp. "Syntax error" is here to catch this case.
11329 cat >conftest.$ac_ext <<_ACEOF
11330/* confdefs.h. */
11331_ACEOF
11332cat confdefs.h >>conftest.$ac_ext
11333cat >>conftest.$ac_ext <<_ACEOF
11334/* end confdefs.h. */
11335#ifdef __STDC__
11336# include <limits.h>
11337#else
11338# include <assert.h>
11339#endif
ac1cb8d3 11340 Syntax error
a848cd7e
SC
11341_ACEOF
11342if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11343 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11344 ac_status=$?
11345 grep -v '^ *+' conftest.er1 >conftest.err
11346 rm -f conftest.er1
11347 cat conftest.err >&5
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); } >/dev/null; then
11350 if test -s conftest.err; then
11351 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11352 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11353 else
11354 ac_cpp_err=
11355 fi
11356else
11357 ac_cpp_err=yes
11358fi
11359if test -z "$ac_cpp_err"; then
11360 :
11361else
11362 echo "$as_me: failed program was:" >&5
11363sed 's/^/| /' conftest.$ac_ext >&5
11364
11365 # Broken: fails on valid input.
11366continue
11367fi
11368rm -f conftest.err conftest.$ac_ext
11369
11370 # OK, works on sane cases. Now check whether non-existent headers
11371 # can be detected and how.
11372 cat >conftest.$ac_ext <<_ACEOF
11373/* confdefs.h. */
11374_ACEOF
11375cat confdefs.h >>conftest.$ac_ext
11376cat >>conftest.$ac_ext <<_ACEOF
11377/* end confdefs.h. */
11378#include <ac_nonexistent.h>
11379_ACEOF
11380if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11381 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11382 ac_status=$?
11383 grep -v '^ *+' conftest.er1 >conftest.err
11384 rm -f conftest.er1
11385 cat conftest.err >&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } >/dev/null; then
11388 if test -s conftest.err; then
11389 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11391 else
11392 ac_cpp_err=
11393 fi
11394else
11395 ac_cpp_err=yes
11396fi
11397if test -z "$ac_cpp_err"; then
11398 # Broken: success on invalid input.
11399continue
11400else
11401 echo "$as_me: failed program was:" >&5
11402sed 's/^/| /' conftest.$ac_ext >&5
11403
11404 # Passes both tests.
11405ac_preproc_ok=:
11406break
11407fi
11408rm -f conftest.err conftest.$ac_ext
11409
11410done
11411# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11412rm -f conftest.err conftest.$ac_ext
11413if $ac_preproc_ok; then
11414 :
11415else
11416 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11417See \`config.log' for more details." >&5
11418echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11419See \`config.log' for more details." >&2;}
11420 { (exit 1); exit 1; }; }
11421fi
11422
11423ac_ext=c
11424ac_cpp='$CPP $CPPFLAGS'
11425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11427ac_compiler_gnu=$ac_cv_c_compiler_gnu
11428
11429
11430echo "$as_me:$LINENO: checking for egrep" >&5
11431echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11432if test "${ac_cv_prog_egrep+set}" = set; then
11433 echo $ECHO_N "(cached) $ECHO_C" >&6
11434else
11435 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11436 then ac_cv_prog_egrep='grep -E'
11437 else ac_cv_prog_egrep='egrep'
11438 fi
11439fi
11440echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11441echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11442 EGREP=$ac_cv_prog_egrep
11443
11444
11445if test $ac_cv_c_compiler_gnu = yes; then
11446 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11447echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11448if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11450else
11451 ac_pattern="Autoconf.*'x'"
11452 cat >conftest.$ac_ext <<_ACEOF
11453/* confdefs.h. */
11454_ACEOF
11455cat confdefs.h >>conftest.$ac_ext
11456cat >>conftest.$ac_ext <<_ACEOF
11457/* end confdefs.h. */
11458#include <sgtty.h>
11459Autoconf TIOCGETP
11460_ACEOF
11461if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11462 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11463 ac_cv_prog_gcc_traditional=yes
11464else
11465 ac_cv_prog_gcc_traditional=no
11466fi
11467rm -f conftest*
11468
11469
11470 if test $ac_cv_prog_gcc_traditional = no; then
11471 cat >conftest.$ac_ext <<_ACEOF
11472/* confdefs.h. */
11473_ACEOF
11474cat confdefs.h >>conftest.$ac_ext
11475cat >>conftest.$ac_ext <<_ACEOF
11476/* end confdefs.h. */
11477#include <termio.h>
11478Autoconf TCGETA
11479_ACEOF
11480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11481 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11482 ac_cv_prog_gcc_traditional=yes
11483fi
11484rm -f conftest*
11485
11486 fi
11487fi
11488echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11489echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11490 if test $ac_cv_prog_gcc_traditional = yes; then
11491 CC="$CC -traditional"
11492 fi
11493fi
11494
11495
11496
11497
11498ac_ext=cc
11499ac_cpp='$CXXCPP $CPPFLAGS'
11500ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11501ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11502ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11503
11504
11505CXXFLAGS=${CXXFLAGS:=}
11506ac_ext=cc
11507ac_cpp='$CXXCPP $CPPFLAGS'
11508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11511if test -n "$ac_tool_prefix"; then
11512 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11513 do
11514 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11515set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11516echo "$as_me:$LINENO: checking for $ac_word" >&5
11517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11518if test "${ac_cv_prog_CXX+set}" = set; then
11519 echo $ECHO_N "(cached) $ECHO_C" >&6
11520else
11521 if test -n "$CXX"; then
11522 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11523else
11524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11525for as_dir in $PATH
11526do
11527 IFS=$as_save_IFS
11528 test -z "$as_dir" && as_dir=.
11529 for ac_exec_ext in '' $ac_executable_extensions; do
11530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11531 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11533 break 2
11534 fi
11535done
11536done
11537
11538fi
11539fi
11540CXX=$ac_cv_prog_CXX
11541if test -n "$CXX"; then
11542 echo "$as_me:$LINENO: result: $CXX" >&5
11543echo "${ECHO_T}$CXX" >&6
11544else
11545 echo "$as_me:$LINENO: result: no" >&5
11546echo "${ECHO_T}no" >&6
11547fi
11548
11549 test -n "$CXX" && break
11550 done
11551fi
11552if test -z "$CXX"; then
11553 ac_ct_CXX=$CXX
11554 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11555do
11556 # Extract the first word of "$ac_prog", so it can be a program name with args.
11557set dummy $ac_prog; ac_word=$2
11558echo "$as_me:$LINENO: checking for $ac_word" >&5
11559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11560if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11562else
11563 if test -n "$ac_ct_CXX"; then
11564 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11565else
11566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567for as_dir in $PATH
11568do
11569 IFS=$as_save_IFS
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11573 ac_cv_prog_ac_ct_CXX="$ac_prog"
11574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11575 break 2
11576 fi
11577done
11578done
11579
11580fi
11581fi
11582ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11583if test -n "$ac_ct_CXX"; then
11584 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11585echo "${ECHO_T}$ac_ct_CXX" >&6
11586else
11587 echo "$as_me:$LINENO: result: no" >&5
11588echo "${ECHO_T}no" >&6
11589fi
11590
11591 test -n "$ac_ct_CXX" && break
11592done
11593test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11594
11595 CXX=$ac_ct_CXX
11596fi
11597
11598
11599# Provide some information about the compiler.
11600echo "$as_me:$LINENO:" \
11601 "checking for C++ compiler version" >&5
11602ac_compiler=`set X $ac_compile; echo $2`
11603{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11604 (eval $ac_compiler --version </dev/null >&5) 2>&5
11605 ac_status=$?
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }
11608{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11609 (eval $ac_compiler -v </dev/null >&5) 2>&5
11610 ac_status=$?
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }
11613{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11614 (eval $ac_compiler -V </dev/null >&5) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }
11618
11619echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11620echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11621if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623else
11624 cat >conftest.$ac_ext <<_ACEOF
11625/* confdefs.h. */
11626_ACEOF
11627cat confdefs.h >>conftest.$ac_ext
11628cat >>conftest.$ac_ext <<_ACEOF
11629/* end confdefs.h. */
11630
11631int
11632main ()
11633{
11634#ifndef __GNUC__
11635 choke me
11636#endif
11637
11638 ;
11639 return 0;
11640}
11641_ACEOF
11642rm -f conftest.$ac_objext
11643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11644 (eval $ac_compile) 2>conftest.er1
a848cd7e 11645 ac_status=$?
ac1cb8d3
VS
11646 grep -v '^ *+' conftest.er1 >conftest.err
11647 rm -f conftest.er1
11648 cat conftest.err >&5
a848cd7e
SC
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
7714864e 11651 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11654 ac_status=$?
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; } &&
11657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11660 ac_status=$?
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_compiler_gnu=yes
11664else
11665 echo "$as_me: failed program was:" >&5
11666sed 's/^/| /' conftest.$ac_ext >&5
11667
11668ac_compiler_gnu=no
11669fi
ac1cb8d3 11670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11671ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11672
11673fi
11674echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11675echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11676GXX=`test $ac_compiler_gnu = yes && echo yes`
11677ac_test_CXXFLAGS=${CXXFLAGS+set}
11678ac_save_CXXFLAGS=$CXXFLAGS
11679CXXFLAGS="-g"
11680echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11681echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11682if test "${ac_cv_prog_cxx_g+set}" = set; then
11683 echo $ECHO_N "(cached) $ECHO_C" >&6
11684else
11685 cat >conftest.$ac_ext <<_ACEOF
11686/* confdefs.h. */
11687_ACEOF
11688cat confdefs.h >>conftest.$ac_ext
11689cat >>conftest.$ac_ext <<_ACEOF
11690/* end confdefs.h. */
11691
11692int
11693main ()
11694{
11695
11696 ;
11697 return 0;
11698}
11699_ACEOF
11700rm -f conftest.$ac_objext
11701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11702 (eval $ac_compile) 2>conftest.er1
a848cd7e 11703 ac_status=$?
ac1cb8d3
VS
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
a848cd7e
SC
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } &&
7714864e 11709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; } &&
11715 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11717 (eval $ac_try) 2>&5
11718 ac_status=$?
11719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720 (exit $ac_status); }; }; then
11721 ac_cv_prog_cxx_g=yes
11722else
11723 echo "$as_me: failed program was:" >&5
11724sed 's/^/| /' conftest.$ac_ext >&5
11725
11726ac_cv_prog_cxx_g=no
11727fi
ac1cb8d3 11728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11729fi
11730echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11731echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11732if test "$ac_test_CXXFLAGS" = set; then
11733 CXXFLAGS=$ac_save_CXXFLAGS
11734elif test $ac_cv_prog_cxx_g = yes; then
11735 if test "$GXX" = yes; then
11736 CXXFLAGS="-g -O2"
11737 else
11738 CXXFLAGS="-g"
11739 fi
11740else
11741 if test "$GXX" = yes; then
11742 CXXFLAGS="-O2"
11743 else
11744 CXXFLAGS=
11745 fi
11746fi
11747for ac_declaration in \
ac1cb8d3 11748 '' \
a848cd7e
SC
11749 'extern "C" void std::exit (int) throw (); using std::exit;' \
11750 'extern "C" void std::exit (int); using std::exit;' \
11751 'extern "C" void exit (int) throw ();' \
11752 'extern "C" void exit (int);' \
11753 'void exit (int);'
11754do
11755 cat >conftest.$ac_ext <<_ACEOF
11756/* confdefs.h. */
11757_ACEOF
11758cat confdefs.h >>conftest.$ac_ext
11759cat >>conftest.$ac_ext <<_ACEOF
11760/* end confdefs.h. */
de59c161 11761$ac_declaration
ac1cb8d3 11762#include <stdlib.h>
a848cd7e
SC
11763int
11764main ()
11765{
11766exit (42);
11767 ;
11768 return 0;
11769}
11770_ACEOF
11771rm -f conftest.$ac_objext
11772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11773 (eval $ac_compile) 2>conftest.er1
a848cd7e 11774 ac_status=$?
ac1cb8d3
VS
11775 grep -v '^ *+' conftest.er1 >conftest.err
11776 rm -f conftest.er1
11777 cat conftest.err >&5
a848cd7e
SC
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
7714864e 11780 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 :
11793else
11794 echo "$as_me: failed program was:" >&5
11795sed 's/^/| /' conftest.$ac_ext >&5
11796
11797continue
11798fi
ac1cb8d3 11799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11800 cat >conftest.$ac_ext <<_ACEOF
11801/* confdefs.h. */
11802_ACEOF
11803cat confdefs.h >>conftest.$ac_ext
11804cat >>conftest.$ac_ext <<_ACEOF
11805/* end confdefs.h. */
11806$ac_declaration
11807int
11808main ()
11809{
11810exit (42);
11811 ;
11812 return 0;
11813}
11814_ACEOF
11815rm -f conftest.$ac_objext
11816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11817 (eval $ac_compile) 2>conftest.er1
a848cd7e 11818 ac_status=$?
ac1cb8d3
VS
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
a848cd7e
SC
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } &&
7714864e 11824 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11836 break
11837else
11838 echo "$as_me: failed program was:" >&5
11839sed 's/^/| /' conftest.$ac_ext >&5
11840
11841fi
ac1cb8d3 11842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11843done
11844rm -f conftest*
11845if test -n "$ac_declaration"; then
11846 echo '#ifdef __cplusplus' >>confdefs.h
11847 echo $ac_declaration >>confdefs.h
11848 echo '#endif' >>confdefs.h
11849fi
11850
11851ac_ext=cc
11852ac_cpp='$CXXCPP $CPPFLAGS'
11853ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11854ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11855ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11856
11857
11858ac_ext=c
11859ac_cpp='$CPP $CPPFLAGS'
11860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11862ac_compiler_gnu=$ac_cv_c_compiler_gnu
11863
11864
a848cd7e
SC
11865if test -n "$ac_tool_prefix"; then
11866 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11867set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11868echo "$as_me:$LINENO: checking for $ac_word" >&5
11869echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11870if test "${ac_cv_prog_RANLIB+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872else
11873 if test -n "$RANLIB"; then
11874 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11875else
11876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11877for as_dir in $PATH
11878do
11879 IFS=$as_save_IFS
11880 test -z "$as_dir" && as_dir=.
11881 for ac_exec_ext in '' $ac_executable_extensions; do
11882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11883 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11885 break 2
11886 fi
11887done
11888done
11889
11890fi
11891fi
11892RANLIB=$ac_cv_prog_RANLIB
11893if test -n "$RANLIB"; then
11894 echo "$as_me:$LINENO: result: $RANLIB" >&5
11895echo "${ECHO_T}$RANLIB" >&6
11896else
11897 echo "$as_me:$LINENO: result: no" >&5
11898echo "${ECHO_T}no" >&6
11899fi
11900
11901fi
11902if test -z "$ac_cv_prog_RANLIB"; then
11903 ac_ct_RANLIB=$RANLIB
11904 # Extract the first word of "ranlib", so it can be a program name with args.
11905set dummy ranlib; ac_word=$2
11906echo "$as_me:$LINENO: checking for $ac_word" >&5
11907echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11908if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910else
11911 if test -n "$ac_ct_RANLIB"; then
11912 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11913else
11914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915for as_dir in $PATH
11916do
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
11919 for ac_exec_ext in '' $ac_executable_extensions; do
11920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11921 ac_cv_prog_ac_ct_RANLIB="ranlib"
11922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11923 break 2
11924 fi
11925done
11926done
11927
11928 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11929fi
11930fi
11931ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11932if test -n "$ac_ct_RANLIB"; then
11933 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11934echo "${ECHO_T}$ac_ct_RANLIB" >&6
11935else
11936 echo "$as_me:$LINENO: result: no" >&5
11937echo "${ECHO_T}no" >&6
11938fi
11939
11940 RANLIB=$ac_ct_RANLIB
11941else
11942 RANLIB="$ac_cv_prog_RANLIB"
11943fi
11944
11945
11946# Extract the first word of "ar", so it can be a program name with args.
11947set dummy ar; ac_word=$2
11948echo "$as_me:$LINENO: checking for $ac_word" >&5
11949echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11950if test "${ac_cv_prog_AR+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953 if test -n "$AR"; then
11954 ac_cv_prog_AR="$AR" # Let the user override the test.
11955else
11956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11957for as_dir in $PATH
11958do
11959 IFS=$as_save_IFS
11960 test -z "$as_dir" && as_dir=.
11961 for ac_exec_ext in '' $ac_executable_extensions; do
11962 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11963 ac_cv_prog_AR="ar"
11964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11965 break 2
11966 fi
11967done
11968done
11969
11970fi
11971fi
11972AR=$ac_cv_prog_AR
11973if test -n "$AR"; then
11974 echo "$as_me:$LINENO: result: $AR" >&5
11975echo "${ECHO_T}$AR" >&6
11976else
11977 echo "$as_me:$LINENO: result: no" >&5
11978echo "${ECHO_T}no" >&6
11979fi
11980
11981if test "x$AR" = "x" ; then
77ffb593
JS
11982 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11983echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11984 { (exit 1); exit 1; }; }
11985fi
11986
11987# Find a good install program. We prefer a C program (faster),
11988# so one script is as good as another. But avoid the broken or
11989# incompatible versions:
11990# SysV /etc/install, /usr/sbin/install
11991# SunOS /usr/etc/install
11992# IRIX /sbin/install
11993# AIX /bin/install
11994# AmigaOS /C/install, which installs bootblocks on floppy discs
11995# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11996# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11997# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11998# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11999# ./install, which can be erroneously created by make from ./install.sh.
12000echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12001echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12002if test -z "$INSTALL"; then
12003if test "${ac_cv_path_install+set}" = set; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12005else
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $PATH
12008do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 # Account for people who put trailing slashes in PATH elements.
12012case $as_dir/ in
12013 ./ | .// | /cC/* | \
12014 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12015 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12016 /usr/ucb/* ) ;;
12017 *)
12018 # OSF1 and SCO ODT 3.0 have their own names for install.
12019 # Don't use installbsd from OSF since it installs stuff as root
12020 # by default.
12021 for ac_prog in ginstall scoinst install; do
12022 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12023 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12024 if test $ac_prog = install &&
12025 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12026 # AIX install. It has an incompatible calling convention.
12027 :
12028 elif test $ac_prog = install &&
12029 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12030 # program-specific install script used by HP pwplus--don't use.
12031 :
12032 else
12033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12034 break 3
12035 fi
12036 fi
a848cd7e
SC
12037 done
12038 done
12039 ;;
12040esac
12041done
12042
12043
12044fi
12045 if test "${ac_cv_path_install+set}" = set; then
12046 INSTALL=$ac_cv_path_install
12047 else
12048 # As a last resort, use the slow shell script. We don't cache a
12049 # path for INSTALL within a source directory, because that will
12050 # break other packages using the cache if that directory is
12051 # removed, or if the path is relative.
12052 INSTALL=$ac_install_sh
12053 fi
12054fi
12055echo "$as_me:$LINENO: result: $INSTALL" >&5
12056echo "${ECHO_T}$INSTALL" >&6
12057
12058# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12059# It thinks the first close brace ends the variable substitution.
12060test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12061
12062test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12063
12064test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12065
12066
12067case ${INSTALL} in
12068 /* ) # Absolute
12069 ;;
12070 ?:* ) # Drive letter, considered as absolute.
12071 ;;
12072 *)
12073 INSTALL=`pwd`/${INSTALL} ;;
12074esac
12075
a848cd7e
SC
12076
12077case "${host}" in
12078
12079 powerpc-*-darwin* )
12080 INSTALL_PROGRAM="cp -fp"
12081 INSTALL_DATA="cp -fp"
12082 ;;
12083 *)
12084 ;;
12085esac
12086
12087# Extract the first word of "strip", so it can be a program name with args.
12088set dummy strip; ac_word=$2
12089echo "$as_me:$LINENO: checking for $ac_word" >&5
12090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12091if test "${ac_cv_prog_STRIP+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093else
12094 if test -n "$STRIP"; then
12095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12096else
12097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $PATH
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12104 ac_cv_prog_STRIP="strip"
12105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12107 fi
12108done
12109done
12110
12111 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12112fi
12113fi
12114STRIP=$ac_cv_prog_STRIP
12115if test -n "$STRIP"; then
12116 echo "$as_me:$LINENO: result: $STRIP" >&5
12117echo "${ECHO_T}$STRIP" >&6
12118else
12119 echo "$as_me:$LINENO: result: no" >&5
12120echo "${ECHO_T}no" >&6
12121fi
12122
12123
12124echo "$as_me:$LINENO: checking if make is GNU make" >&5
12125echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12126if test "${wx_cv_prog_makeisgnu+set}" = set; then
12127 echo $ECHO_N "(cached) $ECHO_C" >&6
12128else
12129
12130 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12131 egrep -s GNU > /dev/null); then
12132 wx_cv_prog_makeisgnu="yes"
12133 else
12134 wx_cv_prog_makeisgnu="no"
12135 fi
12136
12137fi
12138echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12139echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12140
12141if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12142 IF_GNU_MAKE=""
12143else
12144 IF_GNU_MAKE="#"
12145fi
12146
12147
12148
12149if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12150echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12151echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12152if test "${wx_cv_prog_makevpath+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154else
12155
12156cat - << EOF > confMake
12157check : file
12158 cp \$? \$@
12159 cp \$? final_file
12160EOF
12161
12162if test ! -d sub ; then
12163 mkdir sub
12164fi
12165echo dummy > sub/file
12166${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12167RESULT=$?
12168rm -f sub/file check final_file confMake
12169rmdir sub
12170if test "$RESULT" = 0; then
12171 wx_cv_prog_makevpath="yes"
12172else
12173 wx_cv_prog_makevpath="no"
12174fi
12175
12176fi
12177echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12178echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12179
12180if test "x$wx_cv_prog_makevpath" != "xyes"; then
12181{ { echo "$as_me:$LINENO: error:
12182You need a make-utility that is able to use the variable
12183VPATH correctly.
12184If your version of make does not support VPATH correctly,
12185please install GNU-make (possibly as gmake), and start
12186configure with the following command:
12187export MAKE=gmake; ./configure for sh-type shells
12188setenv MAKE gmake; ./configure for csh-type shells
12189Also please do remember to use gmake in this case every time
12190you are trying to compile.
12191" >&5
12192echo "$as_me: error:
12193You need a make-utility that is able to use the variable
12194VPATH correctly.
12195If your version of make does not support VPATH correctly,
12196please install GNU-make (possibly as gmake), and start
12197configure with the following command:
12198export MAKE=gmake; ./configure for sh-type shells
12199setenv MAKE gmake; ./configure for csh-type shells
12200Also please do remember to use gmake in this case every time
12201you are trying to compile.
12202" >&2;}
12203 { (exit 1); exit 1; }; }
12204fi fi
12205echo "$as_me:$LINENO: checking whether ln -s works" >&5
12206echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12207LN_S=$as_ln_s
12208if test "$LN_S" = "ln -s"; then
12209 echo "$as_me:$LINENO: result: yes" >&5
12210echo "${ECHO_T}yes" >&6
12211else
12212 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12213echo "${ECHO_T}no, using $LN_S" >&6
12214fi
12215
12216
12217
12218case "${host}" in
12219 *-pc-os2_emx | *-pc-os2-emx )
12220 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12221 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12222echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12223if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12224 echo $ECHO_N "(cached) $ECHO_C" >&6
12225else
12226 ac_check_lib_save_LIBS=$LIBS
12227LIBS="-lcExt $LIBS"
12228cat >conftest.$ac_ext <<_ACEOF
12229/* confdefs.h. */
12230_ACEOF
12231cat confdefs.h >>conftest.$ac_ext
12232cat >>conftest.$ac_ext <<_ACEOF
12233/* end confdefs.h. */
12234
12235/* Override any gcc2 internal prototype to avoid an error. */
12236#ifdef __cplusplus
12237extern "C"
12238#endif
12239/* We use char because int might match the return type of a gcc2
12240 builtin and then its argument prototype would still apply. */
12241char drand48 ();
12242int
12243main ()
12244{
12245drand48 ();
12246 ;
12247 return 0;
12248}
12249_ACEOF
12250rm -f conftest.$ac_objext conftest$ac_exeext
12251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12252 (eval $ac_link) 2>conftest.er1
a848cd7e 12253 ac_status=$?
ac1cb8d3
VS
12254 grep -v '^ *+' conftest.er1 >conftest.err
12255 rm -f conftest.er1
12256 cat conftest.err >&5
a848cd7e
SC
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); } &&
7714864e 12259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12261 (eval $ac_try) 2>&5
12262 ac_status=$?
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); }; } &&
12265 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; }; then
12271 ac_cv_lib_cExt_drand48=yes
12272else
12273 echo "$as_me: failed program was:" >&5
12274sed 's/^/| /' conftest.$ac_ext >&5
12275
12276ac_cv_lib_cExt_drand48=no
12277fi
ac1cb8d3
VS
12278rm -f conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12280LIBS=$ac_check_lib_save_LIBS
12281fi
12282echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12283echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12284if test $ac_cv_lib_cExt_drand48 = yes; then
12285 LIBS="$LIBS -lcExt"
12286fi
12287
12288 else
12289 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12290 fi
12291 echo "$as_me:$LINENO: checking for gcc version" >&5
12292echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12293if test "${wx_cv_gccversion+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295else
12296
12297 cat >conftest.$ac_ext <<_ACEOF
12298/* confdefs.h. */
12299_ACEOF
12300cat confdefs.h >>conftest.$ac_ext
12301cat >>conftest.$ac_ext <<_ACEOF
12302/* end confdefs.h. */
12303
12304int
12305main ()
12306{
12307
12308 #if (__GNUC__ < 3)
12309 #error old gcc
12310 #endif
12311
12312 ;
12313 return 0;
12314}
12315_ACEOF
12316rm -f conftest.$ac_objext
12317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12318 (eval $ac_compile) 2>conftest.er1
a848cd7e 12319 ac_status=$?
ac1cb8d3
VS
12320 grep -v '^ *+' conftest.er1 >conftest.err
12321 rm -f conftest.er1
12322 cat conftest.err >&5
a848cd7e
SC
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
7714864e 12325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12327 (eval $ac_try) 2>&5
12328 ac_status=$?
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330 (exit $ac_status); }; } &&
12331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12337
12338 cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h. */
12344
12345int
12346main ()
12347{
12348
12349 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12350 #error intermediate gcc
12351 #endif
12352
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357rm -f conftest.$ac_objext
12358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12359 (eval $ac_compile) 2>conftest.er1
a848cd7e 12360 ac_status=$?
ac1cb8d3
VS
12361 grep -v '^ *+' conftest.er1 >conftest.err
12362 rm -f conftest.er1
12363 cat conftest.err >&5
a848cd7e
SC
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
7714864e 12366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12369 ac_status=$?
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; } &&
12372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12374 (eval $ac_try) 2>&5
12375 ac_status=$?
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); }; }; then
12378
12379 wx_cv_gccversion=Innotek
12380
12381else
12382 echo "$as_me: failed program was:" >&5
12383sed 's/^/| /' conftest.$ac_ext >&5
12384
12385
12386 wx_cv_gccversion=3
12387
12388
12389fi
ac1cb8d3 12390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12391
12392else
12393 echo "$as_me: failed program was:" >&5
12394sed 's/^/| /' conftest.$ac_ext >&5
12395
12396
12397 wx_cv_gccversion=2
12398
12399
12400fi
ac1cb8d3 12401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12402
12403fi
12404echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12405echo "${ECHO_T}$wx_cv_gccversion" >&6
12406 if test "$wx_cv_gccversion" = "2"; then
12407 LIBS="$LIBS -lstdcpp"
12408 LDFLAGS="$LDFLAGS -Zsysv-signals"
12409 else
12410 if test "$wx_cv_gccversion" = "3"; then
12411 LIBS="$LIBS -lstdcxx"
12412 LDFLAGS="$LDFLAGS -Zsysv-signals"
12413 else
12414 LIBS="$LIBS -lstdc++"
12415 fi
12416 fi
12417 if test "$wxUSE_OMF" = "yes"; then
de59c161 12418 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12419 fi
12420 ;;
12421 *)
12422
12423
12424
12425 ac_ext=cc
12426ac_cpp='$CXXCPP $CPPFLAGS'
12427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12430
12431
12432
12433echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12434echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12435if test "${ac_cv_string_strcasecmp+set}" = set; then
12436 echo $ECHO_N "(cached) $ECHO_C" >&6
12437else
12438
12439 cat >conftest.$ac_ext <<_ACEOF
12440/* confdefs.h. */
12441_ACEOF
12442cat confdefs.h >>conftest.$ac_ext
12443cat >>conftest.$ac_ext <<_ACEOF
12444/* end confdefs.h. */
12445
12446 #include <string.h>
12447
12448int
12449main ()
12450{
12451
12452 strcasecmp("foo", "bar");
12453
12454 ;
12455 return 0;
12456}
12457_ACEOF
12458rm -f conftest.$ac_objext conftest$ac_exeext
12459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12460 (eval $ac_link) 2>conftest.er1
a848cd7e 12461 ac_status=$?
ac1cb8d3
VS
12462 grep -v '^ *+' conftest.er1 >conftest.err
12463 rm -f conftest.er1
12464 cat conftest.err >&5
a848cd7e
SC
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); } &&
7714864e 12467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12469 (eval $ac_try) 2>&5
12470 ac_status=$?
12471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472 (exit $ac_status); }; } &&
12473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; }; then
12479 ac_cv_string_strcasecmp=yes
12480else
12481 echo "$as_me: failed program was:" >&5
12482sed 's/^/| /' conftest.$ac_ext >&5
12483
12484ac_cv_string_strcasecmp=no
12485
12486fi
ac1cb8d3
VS
12487rm -f conftest.err conftest.$ac_objext \
12488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12489
12490fi
12491echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12492echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12493
12494 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12495 cat >>confdefs.h <<\_ACEOF
12496#define HAVE_STRCASECMP_IN_STRING_H 1
12497_ACEOF
12498
12499 else
12500 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12501echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12502if test "${ac_cv_strings_strcasecmp+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12504else
12505
12506 cat >conftest.$ac_ext <<_ACEOF
12507/* confdefs.h. */
12508_ACEOF
12509cat confdefs.h >>conftest.$ac_ext
12510cat >>conftest.$ac_ext <<_ACEOF
12511/* end confdefs.h. */
12512
12513 #include <strings.h>
12514
12515int
12516main ()
12517{
12518
12519 strcasecmp("foo", "bar");
12520
12521 ;
12522 return 0;
12523}
12524_ACEOF
12525rm -f conftest.$ac_objext conftest$ac_exeext
12526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12527 (eval $ac_link) 2>conftest.er1
a848cd7e 12528 ac_status=$?
ac1cb8d3
VS
12529 grep -v '^ *+' conftest.er1 >conftest.err
12530 rm -f conftest.er1
12531 cat conftest.err >&5
a848cd7e
SC
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
7714864e 12534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12537 ac_status=$?
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; } &&
12540 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; }; then
12546 ac_cv_strings_strcasecmp=yes
12547else
12548 echo "$as_me: failed program was:" >&5
12549sed 's/^/| /' conftest.$ac_ext >&5
12550
12551ac_cv_strings_strcasecmp=no
12552
12553fi
ac1cb8d3
VS
12554rm -f conftest.err conftest.$ac_objext \
12555 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12556
12557fi
12558echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12559echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12560
0c3c69fc 12561 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12562 cat >>confdefs.h <<\_ACEOF
12563#define HAVE_STRCASECMP_IN_STRINGS_H 1
12564_ACEOF
12565
12566 else
12567 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12568echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12569 { (exit 1); exit 1; }; }
12570 fi
12571 fi
12572
12573 ac_ext=c
12574ac_cpp='$CPP $CPPFLAGS'
12575ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12576ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12577ac_compiler_gnu=$ac_cv_c_compiler_gnu
12578
12579 ;;
12580esac
12581
12582
12583echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12584echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12585if test "${ac_cv_header_stdc+set}" = set; then
12586 echo $ECHO_N "(cached) $ECHO_C" >&6
12587else
12588 cat >conftest.$ac_ext <<_ACEOF
12589/* confdefs.h. */
12590_ACEOF
12591cat confdefs.h >>conftest.$ac_ext
12592cat >>conftest.$ac_ext <<_ACEOF
12593/* end confdefs.h. */
12594#include <stdlib.h>
12595#include <stdarg.h>
12596#include <string.h>
12597#include <float.h>
12598
12599int
12600main ()
12601{
12602
12603 ;
12604 return 0;
12605}
12606_ACEOF
12607rm -f conftest.$ac_objext
12608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12609 (eval $ac_compile) 2>conftest.er1
a848cd7e 12610 ac_status=$?
ac1cb8d3
VS
12611 grep -v '^ *+' conftest.er1 >conftest.err
12612 rm -f conftest.er1
12613 cat conftest.err >&5
a848cd7e
SC
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); } &&
7714864e 12616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12624 (eval $ac_try) 2>&5
12625 ac_status=$?
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); }; }; then
12628 ac_cv_header_stdc=yes
12629else
12630 echo "$as_me: failed program was:" >&5
12631sed 's/^/| /' conftest.$ac_ext >&5
12632
12633ac_cv_header_stdc=no
12634fi
ac1cb8d3 12635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12636
12637if test $ac_cv_header_stdc = yes; then
12638 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12639 cat >conftest.$ac_ext <<_ACEOF
12640/* confdefs.h. */
12641_ACEOF
12642cat confdefs.h >>conftest.$ac_ext
12643cat >>conftest.$ac_ext <<_ACEOF
12644/* end confdefs.h. */
12645#include <string.h>
12646
12647_ACEOF
12648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12649 $EGREP "memchr" >/dev/null 2>&1; then
12650 :
12651else
12652 ac_cv_header_stdc=no
12653fi
12654rm -f conftest*
12655
12656fi
12657
12658if test $ac_cv_header_stdc = yes; then
12659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12660 cat >conftest.$ac_ext <<_ACEOF
12661/* confdefs.h. */
12662_ACEOF
12663cat confdefs.h >>conftest.$ac_ext
12664cat >>conftest.$ac_ext <<_ACEOF
12665/* end confdefs.h. */
12666#include <stdlib.h>
12667
12668_ACEOF
12669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12670 $EGREP "free" >/dev/null 2>&1; then
12671 :
12672else
12673 ac_cv_header_stdc=no
12674fi
12675rm -f conftest*
12676
12677fi
12678
12679if test $ac_cv_header_stdc = yes; then
12680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12681 if test "$cross_compiling" = yes; then
12682 :
12683else
12684 cat >conftest.$ac_ext <<_ACEOF
12685/* confdefs.h. */
12686_ACEOF
12687cat confdefs.h >>conftest.$ac_ext
12688cat >>conftest.$ac_ext <<_ACEOF
12689/* end confdefs.h. */
12690#include <ctype.h>
12691#if ((' ' & 0x0FF) == 0x020)
12692# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12693# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12694#else
12695# define ISLOWER(c) \
ac1cb8d3
VS
12696 (('a' <= (c) && (c) <= 'i') \
12697 || ('j' <= (c) && (c) <= 'r') \
12698 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12699# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12700#endif
12701
12702#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12703int
12704main ()
12705{
12706 int i;
12707 for (i = 0; i < 256; i++)
12708 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12709 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12710 exit(2);
12711 exit (0);
12712}
12713_ACEOF
12714rm -f conftest$ac_exeext
12715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12716 (eval $ac_link) 2>&5
12717 ac_status=$?
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721 (eval $ac_try) 2>&5
12722 ac_status=$?
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); }; }; then
12725 :
12726else
12727 echo "$as_me: program exited with status $ac_status" >&5
12728echo "$as_me: failed program was:" >&5
12729sed 's/^/| /' conftest.$ac_ext >&5
12730
12731( exit $ac_status )
12732ac_cv_header_stdc=no
12733fi
ac1cb8d3 12734rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12735fi
12736fi
12737fi
12738echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12739echo "${ECHO_T}$ac_cv_header_stdc" >&6
12740if test $ac_cv_header_stdc = yes; then
12741
12742cat >>confdefs.h <<\_ACEOF
12743#define STDC_HEADERS 1
12744_ACEOF
12745
12746fi
12747
12748# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12759 inttypes.h stdint.h unistd.h
a848cd7e
SC
12760do
12761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12762echo "$as_me:$LINENO: checking for $ac_header" >&5
12763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12764if eval "test \"\${$as_ac_Header+set}\" = set"; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766else
12767 cat >conftest.$ac_ext <<_ACEOF
12768/* confdefs.h. */
12769_ACEOF
12770cat confdefs.h >>conftest.$ac_ext
12771cat >>conftest.$ac_ext <<_ACEOF
12772/* end confdefs.h. */
12773$ac_includes_default
12774
12775#include <$ac_header>
12776_ACEOF
12777rm -f conftest.$ac_objext
12778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12779 (eval $ac_compile) 2>conftest.er1
a848cd7e 12780 ac_status=$?
ac1cb8d3
VS
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
a848cd7e
SC
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } &&
7714864e 12786 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12788 (eval $ac_try) 2>&5
12789 ac_status=$?
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12795 ac_status=$?
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 eval "$as_ac_Header=yes"
12799else
12800 echo "$as_me: failed program was:" >&5
12801sed 's/^/| /' conftest.$ac_ext >&5
12802
12803eval "$as_ac_Header=no"
12804fi
ac1cb8d3 12805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12806fi
12807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12809if test `eval echo '${'$as_ac_Header'}'` = yes; then
12810 cat >>confdefs.h <<_ACEOF
12811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12812_ACEOF
12813
12814fi
12815
12816done
12817
12818
12819
12820for ac_header in stdlib.h
12821do
12822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12823if eval "test \"\${$as_ac_Header+set}\" = set"; then
12824 echo "$as_me:$LINENO: checking for $ac_header" >&5
12825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12826if eval "test \"\${$as_ac_Header+set}\" = set"; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12828fi
12829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12831else
12832 # Is the header compilable?
12833echo "$as_me:$LINENO: checking $ac_header usability" >&5
12834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12835cat >conftest.$ac_ext <<_ACEOF
12836/* confdefs.h. */
12837_ACEOF
12838cat confdefs.h >>conftest.$ac_ext
12839cat >>conftest.$ac_ext <<_ACEOF
12840/* end confdefs.h. */
12841$ac_includes_default
12842#include <$ac_header>
12843_ACEOF
12844rm -f conftest.$ac_objext
12845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12846 (eval $ac_compile) 2>conftest.er1
a848cd7e 12847 ac_status=$?
ac1cb8d3
VS
12848 grep -v '^ *+' conftest.er1 >conftest.err
12849 rm -f conftest.er1
12850 cat conftest.err >&5
a848cd7e
SC
12851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12852 (exit $ac_status); } &&
7714864e 12853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12855 (eval $ac_try) 2>&5
12856 ac_status=$?
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); }; } &&
12859 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12862 ac_status=$?
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 ac_header_compiler=yes
12866else
12867 echo "$as_me: failed program was:" >&5
12868sed 's/^/| /' conftest.$ac_ext >&5
12869
12870ac_header_compiler=no
12871fi
ac1cb8d3 12872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12873echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12874echo "${ECHO_T}$ac_header_compiler" >&6
12875
12876# Is the header present?
12877echo "$as_me:$LINENO: checking $ac_header presence" >&5
12878echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12879cat >conftest.$ac_ext <<_ACEOF
12880/* confdefs.h. */
12881_ACEOF
12882cat confdefs.h >>conftest.$ac_ext
12883cat >>conftest.$ac_ext <<_ACEOF
12884/* end confdefs.h. */
12885#include <$ac_header>
12886_ACEOF
12887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } >/dev/null; then
12895 if test -s conftest.err; then
12896 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12897 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12898 else
12899 ac_cpp_err=
12900 fi
12901else
12902 ac_cpp_err=yes
12903fi
12904if test -z "$ac_cpp_err"; then
12905 ac_header_preproc=yes
12906else
12907 echo "$as_me: failed program was:" >&5
12908sed 's/^/| /' conftest.$ac_ext >&5
12909
12910 ac_header_preproc=no
12911fi
12912rm -f conftest.err conftest.$ac_ext
12913echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12914echo "${ECHO_T}$ac_header_preproc" >&6
12915
12916# So? What about this header?
ac1cb8d3
VS
12917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12918 yes:no: )
a848cd7e
SC
12919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12920echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12922echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12923 ac_header_preproc=yes
a848cd7e 12924 ;;
ac1cb8d3 12925 no:yes:* )
a848cd7e
SC
12926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12927echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12929echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12931echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12933echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12935echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12937echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12938 (
12939 cat <<\_ASBOX
ac1cb8d3
VS
12940## ----------------------------------------- ##
12941## Report this to wx-dev@lists.wxwidgets.org ##
12942## ----------------------------------------- ##
a848cd7e
SC
12943_ASBOX
12944 ) |
12945 sed "s/^/$as_me: WARNING: /" >&2
12946 ;;
12947esac
12948echo "$as_me:$LINENO: checking for $ac_header" >&5
12949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12950if eval "test \"\${$as_ac_Header+set}\" = set"; then
12951 echo $ECHO_N "(cached) $ECHO_C" >&6
12952else
ac1cb8d3 12953 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12954fi
12955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12956echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12957
12958fi
12959if test `eval echo '${'$as_ac_Header'}'` = yes; then
12960 cat >>confdefs.h <<_ACEOF
12961#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12962_ACEOF
12963
12964fi
12965
12966done
12967
12968
12969for ac_header in malloc.h
12970do
12971as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12972if eval "test \"\${$as_ac_Header+set}\" = set"; then
12973 echo "$as_me:$LINENO: checking for $ac_header" >&5
12974echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12975if eval "test \"\${$as_ac_Header+set}\" = set"; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12977fi
12978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12980else
12981 # Is the header compilable?
12982echo "$as_me:$LINENO: checking $ac_header usability" >&5
12983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12984cat >conftest.$ac_ext <<_ACEOF
12985/* confdefs.h. */
12986_ACEOF
12987cat confdefs.h >>conftest.$ac_ext
12988cat >>conftest.$ac_ext <<_ACEOF
12989/* end confdefs.h. */
12990$ac_includes_default
12991#include <$ac_header>
12992_ACEOF
12993rm -f conftest.$ac_objext
12994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12995 (eval $ac_compile) 2>conftest.er1
a848cd7e 12996 ac_status=$?
ac1cb8d3
VS
12997 grep -v '^ *+' conftest.er1 >conftest.err
12998 rm -f conftest.er1
12999 cat conftest.err >&5
a848cd7e
SC
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
7714864e 13002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13005 ac_status=$?
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; } &&
13008 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13010 (eval $ac_try) 2>&5
13011 ac_status=$?
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; }; then
13014 ac_header_compiler=yes
13015else
13016 echo "$as_me: failed program was:" >&5
13017sed 's/^/| /' conftest.$ac_ext >&5
13018
13019ac_header_compiler=no
13020fi
ac1cb8d3 13021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13022echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13023echo "${ECHO_T}$ac_header_compiler" >&6
13024
13025# Is the header present?
13026echo "$as_me:$LINENO: checking $ac_header presence" >&5
13027echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13028cat >conftest.$ac_ext <<_ACEOF
13029/* confdefs.h. */
13030_ACEOF
13031cat confdefs.h >>conftest.$ac_ext
13032cat >>conftest.$ac_ext <<_ACEOF
13033/* end confdefs.h. */
13034#include <$ac_header>
13035_ACEOF
13036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13038 ac_status=$?
13039 grep -v '^ *+' conftest.er1 >conftest.err
13040 rm -f conftest.er1
13041 cat conftest.err >&5
13042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13043 (exit $ac_status); } >/dev/null; then
13044 if test -s conftest.err; then
13045 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13047 else
13048 ac_cpp_err=
13049 fi
13050else
13051 ac_cpp_err=yes
13052fi
13053if test -z "$ac_cpp_err"; then
13054 ac_header_preproc=yes
13055else
13056 echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
13059 ac_header_preproc=no
13060fi
13061rm -f conftest.err conftest.$ac_ext
13062echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13063echo "${ECHO_T}$ac_header_preproc" >&6
13064
13065# So? What about this header?
ac1cb8d3
VS
13066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13067 yes:no: )
a848cd7e
SC
13068 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13069echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13071echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13072 ac_header_preproc=yes
a848cd7e 13073 ;;
ac1cb8d3 13074 no:yes:* )
a848cd7e
SC
13075 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13076echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13077 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13078echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13079 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13080echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13081 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13082echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13084echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13085 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13086echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13087 (
13088 cat <<\_ASBOX
ac1cb8d3
VS
13089## ----------------------------------------- ##
13090## Report this to wx-dev@lists.wxwidgets.org ##
13091## ----------------------------------------- ##
a848cd7e
SC
13092_ASBOX
13093 ) |
13094 sed "s/^/$as_me: WARNING: /" >&2
13095 ;;
13096esac
13097echo "$as_me:$LINENO: checking for $ac_header" >&5
13098echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13099if eval "test \"\${$as_ac_Header+set}\" = set"; then
13100 echo $ECHO_N "(cached) $ECHO_C" >&6
13101else
ac1cb8d3 13102 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13103fi
13104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13106
13107fi
13108if test `eval echo '${'$as_ac_Header'}'` = yes; then
13109 cat >>confdefs.h <<_ACEOF
13110#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13111_ACEOF
13112
13113fi
13114
13115done
13116
13117
13118for ac_header in unistd.h
13119do
13120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13121if eval "test \"\${$as_ac_Header+set}\" = set"; then
13122 echo "$as_me:$LINENO: checking for $ac_header" >&5
13123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13124if eval "test \"\${$as_ac_Header+set}\" = set"; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13126fi
13127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13129else
13130 # Is the header compilable?
13131echo "$as_me:$LINENO: checking $ac_header usability" >&5
13132echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13133cat >conftest.$ac_ext <<_ACEOF
13134/* confdefs.h. */
13135_ACEOF
13136cat confdefs.h >>conftest.$ac_ext
13137cat >>conftest.$ac_ext <<_ACEOF
13138/* end confdefs.h. */
13139$ac_includes_default
13140#include <$ac_header>
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13144 (eval $ac_compile) 2>conftest.er1
a848cd7e 13145 ac_status=$?
ac1cb8d3
VS
13146 grep -v '^ *+' conftest.er1 >conftest.err
13147 rm -f conftest.er1
13148 cat conftest.err >&5
a848cd7e
SC
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
7714864e 13151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13153 (eval $ac_try) 2>&5
13154 ac_status=$?
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; } &&
13157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
13160 ac_status=$?
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
13163 ac_header_compiler=yes
13164else
13165 echo "$as_me: failed program was:" >&5
13166sed 's/^/| /' conftest.$ac_ext >&5
13167
13168ac_header_compiler=no
13169fi
ac1cb8d3 13170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13171echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13172echo "${ECHO_T}$ac_header_compiler" >&6
13173
13174# Is the header present?
13175echo "$as_me:$LINENO: checking $ac_header presence" >&5
13176echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13177cat >conftest.$ac_ext <<_ACEOF
13178/* confdefs.h. */
13179_ACEOF
13180cat confdefs.h >>conftest.$ac_ext
13181cat >>conftest.$ac_ext <<_ACEOF
13182/* end confdefs.h. */
13183#include <$ac_header>
13184_ACEOF
13185if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } >/dev/null; then
13193 if test -s conftest.err; then
13194 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13196 else
13197 ac_cpp_err=
13198 fi
13199else
13200 ac_cpp_err=yes
13201fi
13202if test -z "$ac_cpp_err"; then
13203 ac_header_preproc=yes
13204else
13205 echo "$as_me: failed program was:" >&5
13206sed 's/^/| /' conftest.$ac_ext >&5
13207
13208 ac_header_preproc=no
13209fi
13210rm -f conftest.err conftest.$ac_ext
13211echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13212echo "${ECHO_T}$ac_header_preproc" >&6
13213
13214# So? What about this header?
ac1cb8d3
VS
13215case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13216 yes:no: )
a848cd7e
SC
13217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13218echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13220echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13221 ac_header_preproc=yes
a848cd7e 13222 ;;
ac1cb8d3 13223 no:yes:* )
a848cd7e
SC
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13225echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13227echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13229echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13231echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13233echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13235echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13236 (
13237 cat <<\_ASBOX
ac1cb8d3
VS
13238## ----------------------------------------- ##
13239## Report this to wx-dev@lists.wxwidgets.org ##
13240## ----------------------------------------- ##
a848cd7e
SC
13241_ASBOX
13242 ) |
13243 sed "s/^/$as_me: WARNING: /" >&2
13244 ;;
13245esac
13246echo "$as_me:$LINENO: checking for $ac_header" >&5
13247echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13248if eval "test \"\${$as_ac_Header+set}\" = set"; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250else
ac1cb8d3 13251 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13252fi
13253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13254echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13255
13256fi
13257if test `eval echo '${'$as_ac_Header'}'` = yes; then
13258 cat >>confdefs.h <<_ACEOF
13259#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13260_ACEOF
13261
13262fi
13263
13264done
13265
13266
13267for ac_header in wchar.h
13268do
13269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13270if eval "test \"\${$as_ac_Header+set}\" = set"; then
13271 echo "$as_me:$LINENO: checking for $ac_header" >&5
13272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13273if eval "test \"\${$as_ac_Header+set}\" = set"; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13275fi
13276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13278else
13279 # Is the header compilable?
13280echo "$as_me:$LINENO: checking $ac_header usability" >&5
13281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13282cat >conftest.$ac_ext <<_ACEOF
13283/* confdefs.h. */
13284_ACEOF
13285cat confdefs.h >>conftest.$ac_ext
13286cat >>conftest.$ac_ext <<_ACEOF
13287/* end confdefs.h. */
13288$ac_includes_default
13289#include <$ac_header>
13290_ACEOF
13291rm -f conftest.$ac_objext
13292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13293 (eval $ac_compile) 2>conftest.er1
a848cd7e 13294 ac_status=$?
ac1cb8d3
VS
13295 grep -v '^ *+' conftest.er1 >conftest.err
13296 rm -f conftest.er1
13297 cat conftest.err >&5
a848cd7e
SC
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } &&
7714864e 13300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302 (eval $ac_try) 2>&5
13303 ac_status=$?
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); }; } &&
13306 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13309 ac_status=$?
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_header_compiler=yes
13313else
13314 echo "$as_me: failed program was:" >&5
13315sed 's/^/| /' conftest.$ac_ext >&5
13316
13317ac_header_compiler=no
13318fi
ac1cb8d3 13319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13320echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13321echo "${ECHO_T}$ac_header_compiler" >&6
13322
13323# Is the header present?
13324echo "$as_me:$LINENO: checking $ac_header presence" >&5
13325echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13326cat >conftest.$ac_ext <<_ACEOF
13327/* confdefs.h. */
13328_ACEOF
13329cat confdefs.h >>conftest.$ac_ext
13330cat >>conftest.$ac_ext <<_ACEOF
13331/* end confdefs.h. */
13332#include <$ac_header>
13333_ACEOF
13334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } >/dev/null; then
13342 if test -s conftest.err; then
13343 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13344 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13345 else
13346 ac_cpp_err=
13347 fi
13348else
13349 ac_cpp_err=yes
13350fi
13351if test -z "$ac_cpp_err"; then
13352 ac_header_preproc=yes
13353else
13354 echo "$as_me: failed program was:" >&5
13355sed 's/^/| /' conftest.$ac_ext >&5
13356
13357 ac_header_preproc=no
13358fi
13359rm -f conftest.err conftest.$ac_ext
13360echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13361echo "${ECHO_T}$ac_header_preproc" >&6
13362
13363# So? What about this header?
ac1cb8d3
VS
13364case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13365 yes:no: )
a848cd7e
SC
13366 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13367echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13369echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13370 ac_header_preproc=yes
a848cd7e 13371 ;;
ac1cb8d3 13372 no:yes:* )
a848cd7e
SC
13373 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13375 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13377 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13378echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13379 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13380echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13382echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13383 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13384echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13385 (
13386 cat <<\_ASBOX
ac1cb8d3
VS
13387## ----------------------------------------- ##
13388## Report this to wx-dev@lists.wxwidgets.org ##
13389## ----------------------------------------- ##
a848cd7e
SC
13390_ASBOX
13391 ) |
13392 sed "s/^/$as_me: WARNING: /" >&2
13393 ;;
13394esac
13395echo "$as_me:$LINENO: checking for $ac_header" >&5
13396echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13397if eval "test \"\${$as_ac_Header+set}\" = set"; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13399else
ac1cb8d3 13400 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13401fi
13402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13403echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13404
13405fi
13406if test `eval echo '${'$as_ac_Header'}'` = yes; then
13407 cat >>confdefs.h <<_ACEOF
13408#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13409_ACEOF
13410
13411fi
13412
13413done
13414
13415
13416if test "$ac_cv_header_wchar_h" != "yes"; then
13417
13418for ac_header in wcstr.h
13419do
13420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13421if eval "test \"\${$as_ac_Header+set}\" = set"; then
13422 echo "$as_me:$LINENO: checking for $ac_header" >&5
13423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13424if eval "test \"\${$as_ac_Header+set}\" = set"; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13426fi
13427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13429else
13430 # Is the header compilable?
13431echo "$as_me:$LINENO: checking $ac_header usability" >&5
13432echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13433cat >conftest.$ac_ext <<_ACEOF
13434/* confdefs.h. */
13435_ACEOF
13436cat confdefs.h >>conftest.$ac_ext
13437cat >>conftest.$ac_ext <<_ACEOF
13438/* end confdefs.h. */
13439$ac_includes_default
13440#include <$ac_header>
13441_ACEOF
13442rm -f conftest.$ac_objext
13443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13444 (eval $ac_compile) 2>conftest.er1
a848cd7e 13445 ac_status=$?
ac1cb8d3
VS
13446 grep -v '^ *+' conftest.er1 >conftest.err
13447 rm -f conftest.er1
13448 cat conftest.err >&5
a848cd7e
SC
13449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13450 (exit $ac_status); } &&
7714864e 13451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 ac_header_compiler=yes
13464else
13465 echo "$as_me: failed program was:" >&5
13466sed 's/^/| /' conftest.$ac_ext >&5
13467
13468ac_header_compiler=no
13469fi
ac1cb8d3 13470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13471echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13472echo "${ECHO_T}$ac_header_compiler" >&6
13473
13474# Is the header present?
13475echo "$as_me:$LINENO: checking $ac_header presence" >&5
13476echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13477cat >conftest.$ac_ext <<_ACEOF
13478/* confdefs.h. */
13479_ACEOF
13480cat confdefs.h >>conftest.$ac_ext
13481cat >>conftest.$ac_ext <<_ACEOF
13482/* end confdefs.h. */
13483#include <$ac_header>
13484_ACEOF
13485if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13487 ac_status=$?
13488 grep -v '^ *+' conftest.er1 >conftest.err
13489 rm -f conftest.er1
13490 cat conftest.err >&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } >/dev/null; then
13493 if test -s conftest.err; then
13494 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13496 else
13497 ac_cpp_err=
13498 fi
13499else
13500 ac_cpp_err=yes
13501fi
13502if test -z "$ac_cpp_err"; then
13503 ac_header_preproc=yes
13504else
13505 echo "$as_me: failed program was:" >&5
13506sed 's/^/| /' conftest.$ac_ext >&5
13507
13508 ac_header_preproc=no
13509fi
13510rm -f conftest.err conftest.$ac_ext
13511echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13512echo "${ECHO_T}$ac_header_preproc" >&6
13513
13514# So? What about this header?
ac1cb8d3
VS
13515case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13516 yes:no: )
a848cd7e
SC
13517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13518echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13520echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13521 ac_header_preproc=yes
a848cd7e 13522 ;;
ac1cb8d3 13523 no:yes:* )
a848cd7e
SC
13524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13525echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13527echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13529echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13531echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13533echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13535echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13536 (
13537 cat <<\_ASBOX
ac1cb8d3
VS
13538## ----------------------------------------- ##
13539## Report this to wx-dev@lists.wxwidgets.org ##
13540## ----------------------------------------- ##
a848cd7e
SC
13541_ASBOX
13542 ) |
13543 sed "s/^/$as_me: WARNING: /" >&2
13544 ;;
13545esac
13546echo "$as_me:$LINENO: checking for $ac_header" >&5
13547echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13548if eval "test \"\${$as_ac_Header+set}\" = set"; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550else
ac1cb8d3 13551 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13552fi
13553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13554echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13555
13556fi
13557if test `eval echo '${'$as_ac_Header'}'` = yes; then
13558 cat >>confdefs.h <<_ACEOF
13559#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13560_ACEOF
13561
13562fi
13563
13564done
13565
13566fi
13567
13568
13569for ac_header in fnmatch.h
13570do
13571as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13572if eval "test \"\${$as_ac_Header+set}\" = set"; then
13573 echo "$as_me:$LINENO: checking for $ac_header" >&5
13574echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13575if eval "test \"\${$as_ac_Header+set}\" = set"; then
13576 echo $ECHO_N "(cached) $ECHO_C" >&6
13577fi
13578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13580else
13581 # Is the header compilable?
13582echo "$as_me:$LINENO: checking $ac_header usability" >&5
13583echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13584cat >conftest.$ac_ext <<_ACEOF
13585/* confdefs.h. */
13586_ACEOF
13587cat confdefs.h >>conftest.$ac_ext
13588cat >>conftest.$ac_ext <<_ACEOF
13589/* end confdefs.h. */
13590$ac_includes_default
13591#include <$ac_header>
13592_ACEOF
13593rm -f conftest.$ac_objext
13594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13595 (eval $ac_compile) 2>conftest.er1
a848cd7e 13596 ac_status=$?
ac1cb8d3
VS
13597 grep -v '^ *+' conftest.er1 >conftest.err
13598 rm -f conftest.er1
13599 cat conftest.err >&5
a848cd7e
SC
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); } &&
7714864e 13602 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13605 ac_status=$?
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; } &&
13608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13611 ac_status=$?
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; }; then
13614 ac_header_compiler=yes
13615else
13616 echo "$as_me: failed program was:" >&5
13617sed 's/^/| /' conftest.$ac_ext >&5
13618
13619ac_header_compiler=no
13620fi
ac1cb8d3 13621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13623echo "${ECHO_T}$ac_header_compiler" >&6
13624
13625# Is the header present?
13626echo "$as_me:$LINENO: checking $ac_header presence" >&5
13627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13628cat >conftest.$ac_ext <<_ACEOF
13629/* confdefs.h. */
13630_ACEOF
13631cat confdefs.h >>conftest.$ac_ext
13632cat >>conftest.$ac_ext <<_ACEOF
13633/* end confdefs.h. */
13634#include <$ac_header>
13635_ACEOF
13636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } >/dev/null; then
13644 if test -s conftest.err; then
13645 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13647 else
13648 ac_cpp_err=
13649 fi
13650else
13651 ac_cpp_err=yes
13652fi
13653if test -z "$ac_cpp_err"; then
13654 ac_header_preproc=yes
13655else
13656 echo "$as_me: failed program was:" >&5
13657sed 's/^/| /' conftest.$ac_ext >&5
13658
13659 ac_header_preproc=no
13660fi
13661rm -f conftest.err conftest.$ac_ext
13662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13663echo "${ECHO_T}$ac_header_preproc" >&6
13664
13665# So? What about this header?
ac1cb8d3
VS
13666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13667 yes:no: )
a848cd7e
SC
13668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13672 ac_header_preproc=yes
a848cd7e 13673 ;;
ac1cb8d3 13674 no:yes:* )
a848cd7e
SC
13675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13687 (
13688 cat <<\_ASBOX
ac1cb8d3
VS
13689## ----------------------------------------- ##
13690## Report this to wx-dev@lists.wxwidgets.org ##
13691## ----------------------------------------- ##
a848cd7e
SC
13692_ASBOX
13693 ) |
13694 sed "s/^/$as_me: WARNING: /" >&2
13695 ;;
13696esac
13697echo "$as_me:$LINENO: checking for $ac_header" >&5
13698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13699if eval "test \"\${$as_ac_Header+set}\" = set"; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13701else
ac1cb8d3 13702 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13703fi
13704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13706
13707fi
13708if test `eval echo '${'$as_ac_Header'}'` = yes; then
13709 cat >>confdefs.h <<_ACEOF
13710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13711_ACEOF
13712
13713fi
13714
13715done
13716
13717
13718if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13719
13720for ac_func in fnmatch
13721do
13722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13723echo "$as_me:$LINENO: checking for $ac_func" >&5
13724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13725if eval "test \"\${$as_ac_var+set}\" = set"; then
13726 echo $ECHO_N "(cached) $ECHO_C" >&6
13727else
13728 cat >conftest.$ac_ext <<_ACEOF
13729/* confdefs.h. */
13730_ACEOF
13731cat confdefs.h >>conftest.$ac_ext
13732cat >>conftest.$ac_ext <<_ACEOF
13733/* end confdefs.h. */
ac1cb8d3
VS
13734/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13735 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13736#define $ac_func innocuous_$ac_func
13737
a848cd7e
SC
13738/* System header to define __stub macros and hopefully few prototypes,
13739 which can conflict with char $ac_func (); below.
13740 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13741 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13742
a848cd7e
SC
13743#ifdef __STDC__
13744# include <limits.h>
13745#else
13746# include <assert.h>
13747#endif
ac1cb8d3
VS
13748
13749#undef $ac_func
13750
a848cd7e
SC
13751/* Override any gcc2 internal prototype to avoid an error. */
13752#ifdef __cplusplus
13753extern "C"
13754{
13755#endif
13756/* We use char because int might match the return type of a gcc2
13757 builtin and then its argument prototype would still apply. */
13758char $ac_func ();
13759/* The GNU C library defines this for functions which it implements
13760 to always fail with ENOSYS. Some functions are actually named
13761 something starting with __ and the normal name is an alias. */
13762#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13763choke me
13764#else
13765char (*f) () = $ac_func;
13766#endif
13767#ifdef __cplusplus
13768}
13769#endif
13770
13771int
13772main ()
13773{
13774return f != $ac_func;
13775 ;
13776 return 0;
13777}
13778_ACEOF
13779rm -f conftest.$ac_objext conftest$ac_exeext
13780if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13781 (eval $ac_link) 2>conftest.er1
a848cd7e 13782 ac_status=$?
ac1cb8d3
VS
13783 grep -v '^ *+' conftest.er1 >conftest.err
13784 rm -f conftest.er1
13785 cat conftest.err >&5
a848cd7e
SC
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } &&
7714864e 13788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13790 (eval $ac_try) 2>&5
13791 ac_status=$?
13792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793 (exit $ac_status); }; } &&
13794 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13796 (eval $ac_try) 2>&5
13797 ac_status=$?
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); }; }; then
13800 eval "$as_ac_var=yes"
13801else
13802 echo "$as_me: failed program was:" >&5
13803sed 's/^/| /' conftest.$ac_ext >&5
13804
13805eval "$as_ac_var=no"
13806fi
ac1cb8d3
VS
13807rm -f conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13809fi
13810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13811echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13812if test `eval echo '${'$as_ac_var'}'` = yes; then
13813 cat >>confdefs.h <<_ACEOF
13814#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13815_ACEOF
13816
13817fi
13818done
13819
13820fi
13821
13822
13823for ac_header in langinfo.h
13824do
13825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13826if eval "test \"\${$as_ac_Header+set}\" = set"; then
13827 echo "$as_me:$LINENO: checking for $ac_header" >&5
13828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13829if eval "test \"\${$as_ac_Header+set}\" = set"; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13831fi
13832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13834else
13835 # Is the header compilable?
13836echo "$as_me:$LINENO: checking $ac_header usability" >&5
13837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13838cat >conftest.$ac_ext <<_ACEOF
13839/* confdefs.h. */
13840_ACEOF
13841cat confdefs.h >>conftest.$ac_ext
13842cat >>conftest.$ac_ext <<_ACEOF
13843/* end confdefs.h. */
13844$ac_includes_default
13845#include <$ac_header>
13846_ACEOF
13847rm -f conftest.$ac_objext
13848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13849 (eval $ac_compile) 2>conftest.er1
a848cd7e 13850 ac_status=$?
ac1cb8d3
VS
13851 grep -v '^ *+' conftest.er1 >conftest.err
13852 rm -f conftest.er1
13853 cat conftest.err >&5
a848cd7e
SC
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } &&
7714864e 13856 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858 (eval $ac_try) 2>&5
13859 ac_status=$?
13860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861 (exit $ac_status); }; } &&
13862 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864 (eval $ac_try) 2>&5
13865 ac_status=$?
13866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867 (exit $ac_status); }; }; then
13868 ac_header_compiler=yes
13869else
13870 echo "$as_me: failed program was:" >&5
13871sed 's/^/| /' conftest.$ac_ext >&5
13872
13873ac_header_compiler=no
13874fi
ac1cb8d3 13875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13877echo "${ECHO_T}$ac_header_compiler" >&6
13878
13879# Is the header present?
13880echo "$as_me:$LINENO: checking $ac_header presence" >&5
13881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13882cat >conftest.$ac_ext <<_ACEOF
13883/* confdefs.h. */
13884_ACEOF
13885cat confdefs.h >>conftest.$ac_ext
13886cat >>conftest.$ac_ext <<_ACEOF
13887/* end confdefs.h. */
13888#include <$ac_header>
13889_ACEOF
13890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13892 ac_status=$?
13893 grep -v '^ *+' conftest.er1 >conftest.err
13894 rm -f conftest.er1
13895 cat conftest.err >&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } >/dev/null; then
13898 if test -s conftest.err; then
13899 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13901 else
13902 ac_cpp_err=
13903 fi
13904else
13905 ac_cpp_err=yes
13906fi
13907if test -z "$ac_cpp_err"; then
13908 ac_header_preproc=yes
13909else
13910 echo "$as_me: failed program was:" >&5
13911sed 's/^/| /' conftest.$ac_ext >&5
13912
13913 ac_header_preproc=no
13914fi
13915rm -f conftest.err conftest.$ac_ext
13916echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13917echo "${ECHO_T}$ac_header_preproc" >&6
13918
13919# So? What about this header?
ac1cb8d3
VS
13920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13921 yes:no: )
a848cd7e
SC
13922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13926 ac_header_preproc=yes
a848cd7e 13927 ;;
ac1cb8d3 13928 no:yes:* )
a848cd7e
SC
13929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13932echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13936echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13941 (
13942 cat <<\_ASBOX
ac1cb8d3
VS
13943## ----------------------------------------- ##
13944## Report this to wx-dev@lists.wxwidgets.org ##
13945## ----------------------------------------- ##
a848cd7e
SC
13946_ASBOX
13947 ) |
13948 sed "s/^/$as_me: WARNING: /" >&2
13949 ;;
13950esac
13951echo "$as_me:$LINENO: checking for $ac_header" >&5
13952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13953if eval "test \"\${$as_ac_Header+set}\" = set"; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13955else
ac1cb8d3 13956 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13957fi
13958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13960
13961fi
13962if test `eval echo '${'$as_ac_Header'}'` = yes; then
13963 cat >>confdefs.h <<_ACEOF
13964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13965_ACEOF
13966
13967fi
13968
13969done
13970
13971
13972case "${host}" in
13973 *-pc-os2_emx | *-pc-os2-emx )
13974 if test $ac_cv_header_langinfo_h = "yes"; then
13975 LIBS="$LIBS -lintl"
13976 fi
13977 ;;
13978esac
13979
13980if test "$wxUSE_GUI" = "yes"; then
13981 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13982
13983for ac_header in X11/Xlib.h
13984do
13985as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13986if eval "test \"\${$as_ac_Header+set}\" = set"; then
13987 echo "$as_me:$LINENO: checking for $ac_header" >&5
13988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13989if eval "test \"\${$as_ac_Header+set}\" = set"; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991fi
13992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13994else
13995 # Is the header compilable?
13996echo "$as_me:$LINENO: checking $ac_header usability" >&5
13997echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13998cat >conftest.$ac_ext <<_ACEOF
13999/* confdefs.h. */
14000_ACEOF
14001cat confdefs.h >>conftest.$ac_ext
14002cat >>conftest.$ac_ext <<_ACEOF
14003/* end confdefs.h. */
14004$ac_includes_default
14005#include <$ac_header>
14006_ACEOF
14007rm -f conftest.$ac_objext
14008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14009 (eval $ac_compile) 2>conftest.er1
a848cd7e 14010 ac_status=$?
ac1cb8d3
VS
14011 grep -v '^ *+' conftest.er1 >conftest.err
14012 rm -f conftest.er1
14013 cat conftest.err >&5
a848cd7e
SC
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
7714864e 14016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14025 ac_status=$?
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14028 ac_header_compiler=yes
14029else
14030 echo "$as_me: failed program was:" >&5
14031sed 's/^/| /' conftest.$ac_ext >&5
14032
14033ac_header_compiler=no
14034fi
ac1cb8d3 14035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14036echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14037echo "${ECHO_T}$ac_header_compiler" >&6
14038
14039# Is the header present?
14040echo "$as_me:$LINENO: checking $ac_header presence" >&5
14041echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14042cat >conftest.$ac_ext <<_ACEOF
14043/* confdefs.h. */
14044_ACEOF
14045cat confdefs.h >>conftest.$ac_ext
14046cat >>conftest.$ac_ext <<_ACEOF
14047/* end confdefs.h. */
14048#include <$ac_header>
14049_ACEOF
14050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14052 ac_status=$?
14053 grep -v '^ *+' conftest.er1 >conftest.err
14054 rm -f conftest.er1
14055 cat conftest.err >&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } >/dev/null; then
14058 if test -s conftest.err; then
14059 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14061 else
14062 ac_cpp_err=
14063 fi
14064else
14065 ac_cpp_err=yes
14066fi
14067if test -z "$ac_cpp_err"; then
14068 ac_header_preproc=yes
14069else
14070 echo "$as_me: failed program was:" >&5
14071sed 's/^/| /' conftest.$ac_ext >&5
14072
14073 ac_header_preproc=no
14074fi
14075rm -f conftest.err conftest.$ac_ext
14076echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14077echo "${ECHO_T}$ac_header_preproc" >&6
14078
14079# So? What about this header?
ac1cb8d3
VS
14080case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14081 yes:no: )
a848cd7e
SC
14082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14083echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14085echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14086 ac_header_preproc=yes
a848cd7e 14087 ;;
ac1cb8d3 14088 no:yes:* )
a848cd7e
SC
14089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14092echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14094echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14096echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14098echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14100echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14101 (
14102 cat <<\_ASBOX
ac1cb8d3
VS
14103## ----------------------------------------- ##
14104## Report this to wx-dev@lists.wxwidgets.org ##
14105## ----------------------------------------- ##
a848cd7e
SC
14106_ASBOX
14107 ) |
14108 sed "s/^/$as_me: WARNING: /" >&2
14109 ;;
14110esac
14111echo "$as_me:$LINENO: checking for $ac_header" >&5
14112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14113if eval "test \"\${$as_ac_Header+set}\" = set"; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115else
ac1cb8d3 14116 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14117fi
14118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14119echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14120
14121fi
14122if test `eval echo '${'$as_ac_Header'}'` = yes; then
14123 cat >>confdefs.h <<_ACEOF
14124#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14125_ACEOF
14126
14127fi
14128
14129done
14130
14131
14132for ac_header in X11/XKBlib.h
14133do
14134as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14135echo "$as_me:$LINENO: checking for $ac_header" >&5
14136echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14137if eval "test \"\${$as_ac_Header+set}\" = set"; then
14138 echo $ECHO_N "(cached) $ECHO_C" >&6
14139else
14140 cat >conftest.$ac_ext <<_ACEOF
14141/* confdefs.h. */
14142_ACEOF
14143cat confdefs.h >>conftest.$ac_ext
14144cat >>conftest.$ac_ext <<_ACEOF
14145/* end confdefs.h. */
14146
14147 #if HAVE_X11_XLIB_H
14148 #include <X11/Xlib.h>
14149 #endif
14150
14151
14152#include <$ac_header>
14153_ACEOF
14154rm -f conftest.$ac_objext
14155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14156 (eval $ac_compile) 2>conftest.er1
a848cd7e 14157 ac_status=$?
ac1cb8d3
VS
14158 grep -v '^ *+' conftest.er1 >conftest.err
14159 rm -f conftest.er1
14160 cat conftest.err >&5
a848cd7e
SC
14161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14162 (exit $ac_status); } &&
7714864e 14163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14165 (eval $ac_try) 2>&5
14166 ac_status=$?
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); }; } &&
14169 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14171 (eval $ac_try) 2>&5
14172 ac_status=$?
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); }; }; then
14175 eval "$as_ac_Header=yes"
14176else
14177 echo "$as_me: failed program was:" >&5
14178sed 's/^/| /' conftest.$ac_ext >&5
14179
14180eval "$as_ac_Header=no"
14181fi
ac1cb8d3 14182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14183fi
14184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14186if test `eval echo '${'$as_ac_Header'}'` = yes; then
14187 cat >>confdefs.h <<_ACEOF
14188#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14189_ACEOF
14190
14191fi
14192
14193done
14194
14195 fi
14196fi
14197
14198
14199echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14200echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14201if test "${ac_cv_c_const+set}" = set; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14203else
14204 cat >conftest.$ac_ext <<_ACEOF
14205/* confdefs.h. */
14206_ACEOF
14207cat confdefs.h >>conftest.$ac_ext
14208cat >>conftest.$ac_ext <<_ACEOF
14209/* end confdefs.h. */
14210
14211int
14212main ()
14213{
14214/* FIXME: Include the comments suggested by Paul. */
14215#ifndef __cplusplus
14216 /* Ultrix mips cc rejects this. */
14217 typedef int charset[2];
14218 const charset x;
14219 /* SunOS 4.1.1 cc rejects this. */
14220 char const *const *ccp;
14221 char **p;
14222 /* NEC SVR4.0.2 mips cc rejects this. */
14223 struct point {int x, y;};
14224 static struct point const zero = {0,0};
14225 /* AIX XL C 1.02.0.0 rejects this.
14226 It does not let you subtract one const X* pointer from another in
14227 an arm of an if-expression whose if-part is not a constant
14228 expression */
14229 const char *g = "string";
14230 ccp = &g + (g ? g-g : 0);
14231 /* HPUX 7.0 cc rejects these. */
14232 ++ccp;
14233 p = (char**) ccp;
14234 ccp = (char const *const *) p;
14235 { /* SCO 3.2v4 cc rejects this. */
14236 char *t;
14237 char const *s = 0 ? (char *) 0 : (char const *) 0;
14238
14239 *t++ = 0;
14240 }
14241 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14242 int x[] = {25, 17};
14243 const int *foo = &x[0];
14244 ++foo;
14245 }
14246 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14247 typedef const int *iptr;
14248 iptr p = 0;
14249 ++p;
14250 }
14251 { /* AIX XL C 1.02.0.0 rejects this saying
14252 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14253 struct s { int j; const int *ap[3]; };
14254 struct s *b; b->j = 5;
14255 }
14256 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14257 const int foo = 10;
14258 }
14259#endif
14260
14261 ;
14262 return 0;
14263}
14264_ACEOF
14265rm -f conftest.$ac_objext
14266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14267 (eval $ac_compile) 2>conftest.er1
a848cd7e 14268 ac_status=$?
ac1cb8d3
VS
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
a848cd7e
SC
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
7714864e 14274 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } &&
14280 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14282 (eval $ac_try) 2>&5
14283 ac_status=$?
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); }; }; then
14286 ac_cv_c_const=yes
14287else
14288 echo "$as_me: failed program was:" >&5
14289sed 's/^/| /' conftest.$ac_ext >&5
14290
14291ac_cv_c_const=no
14292fi
ac1cb8d3 14293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14294fi
14295echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14296echo "${ECHO_T}$ac_cv_c_const" >&6
14297if test $ac_cv_c_const = no; then
14298
14299cat >>confdefs.h <<\_ACEOF
14300#define const
14301_ACEOF
14302
14303fi
14304
14305echo "$as_me:$LINENO: checking for inline" >&5
14306echo $ECHO_N "checking for inline... $ECHO_C" >&6
14307if test "${ac_cv_c_inline+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309else
14310 ac_cv_c_inline=no
14311for ac_kw in inline __inline__ __inline; do
14312 cat >conftest.$ac_ext <<_ACEOF
14313/* confdefs.h. */
14314_ACEOF
14315cat confdefs.h >>conftest.$ac_ext
14316cat >>conftest.$ac_ext <<_ACEOF
14317/* end confdefs.h. */
14318#ifndef __cplusplus
14319typedef int foo_t;
14320static $ac_kw foo_t static_foo () {return 0; }
14321$ac_kw foo_t foo () {return 0; }
14322#endif
14323
14324_ACEOF
14325rm -f conftest.$ac_objext
14326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14327 (eval $ac_compile) 2>conftest.er1
a848cd7e 14328 ac_status=$?
ac1cb8d3
VS
14329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
a848cd7e
SC
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
7714864e 14334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; } &&
14340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14346 ac_cv_c_inline=$ac_kw; break
14347else
14348 echo "$as_me: failed program was:" >&5
14349sed 's/^/| /' conftest.$ac_ext >&5
14350
14351fi
ac1cb8d3 14352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14353done
14354
14355fi
14356echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14357echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14358
14359
a848cd7e
SC
14360case $ac_cv_c_inline in
14361 inline | yes) ;;
ac1cb8d3
VS
14362 *)
14363 case $ac_cv_c_inline in
14364 no) ac_val=;;
14365 *) ac_val=$ac_cv_c_inline;;
14366 esac
14367 cat >>confdefs.h <<_ACEOF
14368#ifndef __cplusplus
14369#define inline $ac_val
14370#endif
de59c161 14371_ACEOF
ac1cb8d3 14372 ;;
a848cd7e
SC
14373esac
14374
14375
14376echo "$as_me:$LINENO: checking for char" >&5
14377echo $ECHO_N "checking for char... $ECHO_C" >&6
14378if test "${ac_cv_type_char+set}" = set; then
14379 echo $ECHO_N "(cached) $ECHO_C" >&6
14380else
14381 cat >conftest.$ac_ext <<_ACEOF
14382/* confdefs.h. */
14383_ACEOF
14384cat confdefs.h >>conftest.$ac_ext
14385cat >>conftest.$ac_ext <<_ACEOF
14386/* end confdefs.h. */
14387$ac_includes_default
14388int
14389main ()
14390{
14391if ((char *) 0)
14392 return 0;
14393if (sizeof (char))
14394 return 0;
14395 ;
14396 return 0;
14397}
14398_ACEOF
14399rm -f conftest.$ac_objext
14400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14401 (eval $ac_compile) 2>conftest.er1
a848cd7e 14402 ac_status=$?
ac1cb8d3
VS
14403 grep -v '^ *+' conftest.er1 >conftest.err
14404 rm -f conftest.er1
14405 cat conftest.err >&5
a848cd7e
SC
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); } &&
7714864e 14408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; } &&
14414 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 ac_cv_type_char=yes
14421else
14422 echo "$as_me: failed program was:" >&5
14423sed 's/^/| /' conftest.$ac_ext >&5
14424
14425ac_cv_type_char=no
14426fi
ac1cb8d3 14427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14428fi
14429echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14430echo "${ECHO_T}$ac_cv_type_char" >&6
14431
14432echo "$as_me:$LINENO: checking size of char" >&5
14433echo $ECHO_N "checking size of char... $ECHO_C" >&6
14434if test "${ac_cv_sizeof_char+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436else
14437 if test "$ac_cv_type_char" = yes; then
14438 # The cast to unsigned long works around a bug in the HP C Compiler
14439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14441 # This bug is HP SR number 8606223364.
14442 if test "$cross_compiling" = yes; then
14443 # Depending upon the size, compute the lo and hi bounds.
14444cat >conftest.$ac_ext <<_ACEOF
14445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
14450$ac_includes_default
14451int
14452main ()
14453{
14454static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14455test_array [0] = 0
14456
14457 ;
14458 return 0;
14459}
14460_ACEOF
14461rm -f conftest.$ac_objext
14462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14463 (eval $ac_compile) 2>conftest.er1
a848cd7e 14464 ac_status=$?
ac1cb8d3
VS
14465 grep -v '^ *+' conftest.er1 >conftest.err
14466 rm -f conftest.er1
14467 cat conftest.err >&5
a848cd7e
SC
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); } &&
7714864e 14470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_lo=0 ac_mid=0
14483 while :; do
14484 cat >conftest.$ac_ext <<_ACEOF
14485/* confdefs.h. */
14486_ACEOF
14487cat confdefs.h >>conftest.$ac_ext
14488cat >>conftest.$ac_ext <<_ACEOF
14489/* end confdefs.h. */
14490$ac_includes_default
14491int
14492main ()
14493{
14494static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14495test_array [0] = 0
14496
14497 ;
14498 return 0;
14499}
14500_ACEOF
14501rm -f conftest.$ac_objext
14502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14503 (eval $ac_compile) 2>conftest.er1
a848cd7e 14504 ac_status=$?
ac1cb8d3
VS
14505 grep -v '^ *+' conftest.er1 >conftest.err
14506 rm -f conftest.er1
14507 cat conftest.err >&5
a848cd7e
SC
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); } &&
7714864e 14510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14512 (eval $ac_try) 2>&5
14513 ac_status=$?
14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14515 (exit $ac_status); }; } &&
14516 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14518 (eval $ac_try) 2>&5
14519 ac_status=$?
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); }; }; then
14522 ac_hi=$ac_mid; break
14523else
14524 echo "$as_me: failed program was:" >&5
14525sed 's/^/| /' conftest.$ac_ext >&5
14526
14527ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14528 if test $ac_lo -le $ac_mid; then
14529 ac_lo= ac_hi=
14530 break
14531 fi
14532 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14533fi
ac1cb8d3 14534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14535 done
14536else
14537 echo "$as_me: failed program was:" >&5
14538sed 's/^/| /' conftest.$ac_ext >&5
14539
14540cat >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))) < 0)];
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); } &&
7714864e 14566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14569 ac_status=$?
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_hi=-1 ac_mid=-1
14579 while :; do
14580 cat >conftest.$ac_ext <<_ACEOF
14581/* confdefs.h. */
14582_ACEOF
14583cat confdefs.h >>conftest.$ac_ext
14584cat >>conftest.$ac_ext <<_ACEOF
14585/* end confdefs.h. */
14586$ac_includes_default
14587int
14588main ()
14589{
14590static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14591test_array [0] = 0
14592
14593 ;
14594 return 0;
14595}
14596_ACEOF
14597rm -f conftest.$ac_objext
14598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14599 (eval $ac_compile) 2>conftest.er1
a848cd7e 14600 ac_status=$?
ac1cb8d3
VS
14601 grep -v '^ *+' conftest.er1 >conftest.err
14602 rm -f conftest.er1
14603 cat conftest.err >&5
a848cd7e
SC
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } &&
7714864e 14606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 ac_lo=$ac_mid; break
14619else
14620 echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
14623ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14624 if test $ac_mid -le $ac_hi; then
14625 ac_lo= ac_hi=
14626 break
14627 fi
14628 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14629fi
ac1cb8d3 14630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14631 done
14632else
14633 echo "$as_me: failed program was:" >&5
14634sed 's/^/| /' conftest.$ac_ext >&5
14635
14636ac_lo= ac_hi=
14637fi
ac1cb8d3 14638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14639fi
ac1cb8d3 14640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14641# Binary search between lo and hi bounds.
14642while test "x$ac_lo" != "x$ac_hi"; do
14643 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14644 cat >conftest.$ac_ext <<_ACEOF
14645/* confdefs.h. */
14646_ACEOF
14647cat confdefs.h >>conftest.$ac_ext
14648cat >>conftest.$ac_ext <<_ACEOF
14649/* end confdefs.h. */
14650$ac_includes_default
14651int
14652main ()
14653{
14654static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14655test_array [0] = 0
14656
14657 ;
14658 return 0;
14659}
14660_ACEOF
14661rm -f conftest.$ac_objext
14662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14663 (eval $ac_compile) 2>conftest.er1
a848cd7e 14664 ac_status=$?
ac1cb8d3
VS
14665 grep -v '^ *+' conftest.er1 >conftest.err
14666 rm -f conftest.er1
14667 cat conftest.err >&5
a848cd7e
SC
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); } &&
7714864e 14670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14673 ac_status=$?
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; } &&
14676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14679 ac_status=$?
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 ac_hi=$ac_mid
14683else
14684 echo "$as_me: failed program was:" >&5
14685sed 's/^/| /' conftest.$ac_ext >&5
14686
14687ac_lo=`expr '(' $ac_mid ')' + 1`
14688fi
ac1cb8d3 14689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14690done
14691case $ac_lo in
14692?*) ac_cv_sizeof_char=$ac_lo;;
14693'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14694See \`config.log' for more details." >&5
14695echo "$as_me: error: cannot compute sizeof (char), 77
14696See \`config.log' for more details." >&2;}
14697 { (exit 1); exit 1; }; } ;;
14698esac
14699else
14700 if test "$cross_compiling" = yes; then
7714864e
RL
14701 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14702echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
14703 { (exit 1); exit 1; }; }
14704else
14705 cat >conftest.$ac_ext <<_ACEOF
14706/* confdefs.h. */
14707_ACEOF
14708cat confdefs.h >>conftest.$ac_ext
14709cat >>conftest.$ac_ext <<_ACEOF
14710/* end confdefs.h. */
14711$ac_includes_default
14712long longval () { return (long) (sizeof (char)); }
14713unsigned long ulongval () { return (long) (sizeof (char)); }
14714#include <stdio.h>
14715#include <stdlib.h>
14716int
14717main ()
14718{
14719
14720 FILE *f = fopen ("conftest.val", "w");
14721 if (! f)
14722 exit (1);
14723 if (((long) (sizeof (char))) < 0)
14724 {
14725 long i = longval ();
14726 if (i != ((long) (sizeof (char))))
14727 exit (1);
14728 fprintf (f, "%ld\n", i);
14729 }
14730 else
14731 {
14732 unsigned long i = ulongval ();
14733 if (i != ((long) (sizeof (char))))
14734 exit (1);
14735 fprintf (f, "%lu\n", i);
14736 }
14737 exit (ferror (f) || fclose (f) != 0);
14738
14739 ;
14740 return 0;
14741}
14742_ACEOF
14743rm -f conftest$ac_exeext
14744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14745 (eval $ac_link) 2>&5
14746 ac_status=$?
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14750 (eval $ac_try) 2>&5
14751 ac_status=$?
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
14754 ac_cv_sizeof_char=`cat conftest.val`
14755else
14756 echo "$as_me: program exited with status $ac_status" >&5
14757echo "$as_me: failed program was:" >&5
14758sed 's/^/| /' conftest.$ac_ext >&5
14759
14760( exit $ac_status )
14761{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14762See \`config.log' for more details." >&5
14763echo "$as_me: error: cannot compute sizeof (char), 77
14764See \`config.log' for more details." >&2;}
14765 { (exit 1); exit 1; }; }
14766fi
ac1cb8d3 14767rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14768fi
14769fi
14770rm -f conftest.val
14771else
14772 ac_cv_sizeof_char=0
14773fi
14774fi
14775echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14776echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14777cat >>confdefs.h <<_ACEOF
14778#define SIZEOF_CHAR $ac_cv_sizeof_char
14779_ACEOF
14780
14781
14782echo "$as_me:$LINENO: checking for short" >&5
14783echo $ECHO_N "checking for short... $ECHO_C" >&6
14784if test "${ac_cv_type_short+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14786else
14787 cat >conftest.$ac_ext <<_ACEOF
14788/* confdefs.h. */
14789_ACEOF
14790cat confdefs.h >>conftest.$ac_ext
14791cat >>conftest.$ac_ext <<_ACEOF
14792/* end confdefs.h. */
14793$ac_includes_default
14794int
14795main ()
14796{
14797if ((short *) 0)
14798 return 0;
14799if (sizeof (short))
14800 return 0;
14801 ;
14802 return 0;
14803}
14804_ACEOF
14805rm -f conftest.$ac_objext
14806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14807 (eval $ac_compile) 2>conftest.er1
a848cd7e 14808 ac_status=$?
ac1cb8d3
VS
14809 grep -v '^ *+' conftest.er1 >conftest.err
14810 rm -f conftest.er1
14811 cat conftest.err >&5
a848cd7e
SC
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
7714864e 14814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; } &&
14820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14822 (eval $ac_try) 2>&5
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); }; }; then
14826 ac_cv_type_short=yes
14827else
14828 echo "$as_me: failed program was:" >&5
14829sed 's/^/| /' conftest.$ac_ext >&5
14830
14831ac_cv_type_short=no
14832fi
ac1cb8d3 14833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14834fi
14835echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14836echo "${ECHO_T}$ac_cv_type_short" >&6
14837
14838echo "$as_me:$LINENO: checking size of short" >&5
14839echo $ECHO_N "checking size of short... $ECHO_C" >&6
14840if test "${ac_cv_sizeof_short+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842else
14843 if test "$ac_cv_type_short" = yes; then
14844 # The cast to unsigned long works around a bug in the HP C Compiler
14845 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14846 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14847 # This bug is HP SR number 8606223364.
14848 if test "$cross_compiling" = yes; then
14849 # Depending upon the size, compute the lo and hi bounds.
14850cat >conftest.$ac_ext <<_ACEOF
14851/* confdefs.h. */
14852_ACEOF
14853cat confdefs.h >>conftest.$ac_ext
14854cat >>conftest.$ac_ext <<_ACEOF
14855/* end confdefs.h. */
14856$ac_includes_default
14857int
14858main ()
14859{
14860static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14861test_array [0] = 0
14862
14863 ;
14864 return 0;
14865}
14866_ACEOF
14867rm -f conftest.$ac_objext
14868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14869 (eval $ac_compile) 2>conftest.er1
a848cd7e 14870 ac_status=$?
ac1cb8d3
VS
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
a848cd7e
SC
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
7714864e 14876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14879 ac_status=$?
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; } &&
14882 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14885 ac_status=$?
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_lo=0 ac_mid=0
14889 while :; do
14890 cat >conftest.$ac_ext <<_ACEOF
14891/* confdefs.h. */
14892_ACEOF
14893cat confdefs.h >>conftest.$ac_ext
14894cat >>conftest.$ac_ext <<_ACEOF
14895/* end confdefs.h. */
14896$ac_includes_default
14897int
14898main ()
14899{
14900static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14901test_array [0] = 0
14902
14903 ;
14904 return 0;
14905}
14906_ACEOF
14907rm -f conftest.$ac_objext
14908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14909 (eval $ac_compile) 2>conftest.er1
a848cd7e 14910 ac_status=$?
ac1cb8d3
VS
14911 grep -v '^ *+' conftest.er1 >conftest.err
14912 rm -f conftest.er1
14913 cat conftest.err >&5
a848cd7e
SC
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } &&
7714864e 14916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14918 (eval $ac_try) 2>&5
14919 ac_status=$?
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); }; } &&
14922 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14925 ac_status=$?
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 ac_hi=$ac_mid; break
14929else
14930 echo "$as_me: failed program was:" >&5
14931sed 's/^/| /' conftest.$ac_ext >&5
14932
14933ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14934 if test $ac_lo -le $ac_mid; then
14935 ac_lo= ac_hi=
14936 break
14937 fi
14938 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14939fi
ac1cb8d3 14940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14941 done
14942else
14943 echo "$as_me: failed program was:" >&5
14944sed 's/^/| /' conftest.$ac_ext >&5
14945
14946cat >conftest.$ac_ext <<_ACEOF
14947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
14952$ac_includes_default
14953int
14954main ()
14955{
14956static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14957test_array [0] = 0
14958
14959 ;
14960 return 0;
14961}
14962_ACEOF
14963rm -f conftest.$ac_objext
14964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14965 (eval $ac_compile) 2>conftest.er1
a848cd7e 14966 ac_status=$?
ac1cb8d3
VS
14967 grep -v '^ *+' conftest.er1 >conftest.err
14968 rm -f conftest.er1
14969 cat conftest.err >&5
a848cd7e
SC
14970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14971 (exit $ac_status); } &&
7714864e 14972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14974 (eval $ac_try) 2>&5
14975 ac_status=$?
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); }; } &&
14978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14981 ac_status=$?
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 ac_hi=-1 ac_mid=-1
14985 while :; do
14986 cat >conftest.$ac_ext <<_ACEOF
14987/* confdefs.h. */
14988_ACEOF
14989cat confdefs.h >>conftest.$ac_ext
14990cat >>conftest.$ac_ext <<_ACEOF
14991/* end confdefs.h. */
14992$ac_includes_default
14993int
14994main ()
14995{
14996static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14997test_array [0] = 0
14998
14999 ;
15000 return 0;
15001}
15002_ACEOF
15003rm -f conftest.$ac_objext
15004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15005 (eval $ac_compile) 2>conftest.er1
a848cd7e 15006 ac_status=$?
ac1cb8d3
VS
15007 grep -v '^ *+' conftest.er1 >conftest.err
15008 rm -f conftest.er1
15009 cat conftest.err >&5
a848cd7e
SC
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } &&
7714864e 15012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_lo=$ac_mid; break
15025else
15026 echo "$as_me: failed program was:" >&5
15027sed 's/^/| /' conftest.$ac_ext >&5
15028
15029ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15030 if test $ac_mid -le $ac_hi; then
15031 ac_lo= ac_hi=
15032 break
15033 fi
15034 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15035fi
ac1cb8d3 15036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15037 done
15038else
15039 echo "$as_me: failed program was:" >&5
15040sed 's/^/| /' conftest.$ac_ext >&5
15041
15042ac_lo= ac_hi=
15043fi
ac1cb8d3 15044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15045fi
ac1cb8d3 15046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15047# Binary search between lo and hi bounds.
15048while test "x$ac_lo" != "x$ac_hi"; do
15049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15050 cat >conftest.$ac_ext <<_ACEOF
15051/* confdefs.h. */
15052_ACEOF
15053cat confdefs.h >>conftest.$ac_ext
15054cat >>conftest.$ac_ext <<_ACEOF
15055/* end confdefs.h. */
15056$ac_includes_default
15057int
15058main ()
15059{
15060static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15061test_array [0] = 0
15062
15063 ;
15064 return 0;
15065}
15066_ACEOF
15067rm -f conftest.$ac_objext
15068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15069 (eval $ac_compile) 2>conftest.er1
a848cd7e 15070 ac_status=$?
ac1cb8d3
VS
15071 grep -v '^ *+' conftest.er1 >conftest.err
15072 rm -f conftest.er1
15073 cat conftest.err >&5
a848cd7e
SC
15074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } &&
7714864e 15076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15078 (eval $ac_try) 2>&5
15079 ac_status=$?
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); }; } &&
15082 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084 (eval $ac_try) 2>&5
15085 ac_status=$?
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }; }; then
15088 ac_hi=$ac_mid
15089else
15090 echo "$as_me: failed program was:" >&5
15091sed 's/^/| /' conftest.$ac_ext >&5
15092
15093ac_lo=`expr '(' $ac_mid ')' + 1`
15094fi
ac1cb8d3 15095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15096done
15097case $ac_lo in
15098?*) ac_cv_sizeof_short=$ac_lo;;
15099'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15100See \`config.log' for more details." >&5
15101echo "$as_me: error: cannot compute sizeof (short), 77
15102See \`config.log' for more details." >&2;}
15103 { (exit 1); exit 1; }; } ;;
15104esac
15105else
15106 if test "$cross_compiling" = yes; then
7714864e
RL
15107 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15108echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15109 { (exit 1); exit 1; }; }
15110else
15111 cat >conftest.$ac_ext <<_ACEOF
15112/* confdefs.h. */
15113_ACEOF
15114cat confdefs.h >>conftest.$ac_ext
15115cat >>conftest.$ac_ext <<_ACEOF
15116/* end confdefs.h. */
15117$ac_includes_default
15118long longval () { return (long) (sizeof (short)); }
15119unsigned long ulongval () { return (long) (sizeof (short)); }
15120#include <stdio.h>
15121#include <stdlib.h>
15122int
15123main ()
15124{
15125
15126 FILE *f = fopen ("conftest.val", "w");
15127 if (! f)
15128 exit (1);
15129 if (((long) (sizeof (short))) < 0)
15130 {
15131 long i = longval ();
15132 if (i != ((long) (sizeof (short))))
15133 exit (1);
15134 fprintf (f, "%ld\n", i);
15135 }
15136 else
15137 {
15138 unsigned long i = ulongval ();
15139 if (i != ((long) (sizeof (short))))
15140 exit (1);
15141 fprintf (f, "%lu\n", i);
15142 }
15143 exit (ferror (f) || fclose (f) != 0);
15144
15145 ;
15146 return 0;
15147}
15148_ACEOF
15149rm -f conftest$ac_exeext
15150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15151 (eval $ac_link) 2>&5
15152 ac_status=$?
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15157 ac_status=$?
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15160 ac_cv_sizeof_short=`cat conftest.val`
15161else
15162 echo "$as_me: program exited with status $ac_status" >&5
15163echo "$as_me: failed program was:" >&5
15164sed 's/^/| /' conftest.$ac_ext >&5
15165
15166( exit $ac_status )
15167{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15168See \`config.log' for more details." >&5
15169echo "$as_me: error: cannot compute sizeof (short), 77
15170See \`config.log' for more details." >&2;}
15171 { (exit 1); exit 1; }; }
15172fi
ac1cb8d3 15173rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15174fi
15175fi
15176rm -f conftest.val
15177else
15178 ac_cv_sizeof_short=0
15179fi
15180fi
15181echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15182echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15183cat >>confdefs.h <<_ACEOF
15184#define SIZEOF_SHORT $ac_cv_sizeof_short
15185_ACEOF
15186
15187
15188echo "$as_me:$LINENO: checking for void *" >&5
15189echo $ECHO_N "checking for void *... $ECHO_C" >&6
15190if test "${ac_cv_type_void_p+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15192else
15193 cat >conftest.$ac_ext <<_ACEOF
15194/* confdefs.h. */
15195_ACEOF
15196cat confdefs.h >>conftest.$ac_ext
15197cat >>conftest.$ac_ext <<_ACEOF
15198/* end confdefs.h. */
15199$ac_includes_default
15200int
15201main ()
15202{
15203if ((void * *) 0)
15204 return 0;
15205if (sizeof (void *))
15206 return 0;
15207 ;
15208 return 0;
15209}
15210_ACEOF
15211rm -f conftest.$ac_objext
15212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15213 (eval $ac_compile) 2>conftest.er1
a848cd7e 15214 ac_status=$?
ac1cb8d3
VS
15215 grep -v '^ *+' conftest.er1 >conftest.err
15216 rm -f conftest.er1
15217 cat conftest.err >&5
a848cd7e
SC
15218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15219 (exit $ac_status); } &&
7714864e 15220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15222 (eval $ac_try) 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; } &&
15226 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15228 (eval $ac_try) 2>&5
15229 ac_status=$?
15230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15231 (exit $ac_status); }; }; then
15232 ac_cv_type_void_p=yes
15233else
15234 echo "$as_me: failed program was:" >&5
15235sed 's/^/| /' conftest.$ac_ext >&5
15236
15237ac_cv_type_void_p=no
15238fi
ac1cb8d3 15239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15240fi
15241echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15242echo "${ECHO_T}$ac_cv_type_void_p" >&6
15243
15244echo "$as_me:$LINENO: checking size of void *" >&5
15245echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15246if test "${ac_cv_sizeof_void_p+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15248else
15249 if test "$ac_cv_type_void_p" = yes; then
15250 # The cast to unsigned long works around a bug in the HP C Compiler
15251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15253 # This bug is HP SR number 8606223364.
15254 if test "$cross_compiling" = yes; then
15255 # Depending upon the size, compute the lo and hi bounds.
15256cat >conftest.$ac_ext <<_ACEOF
15257/* confdefs.h. */
15258_ACEOF
15259cat confdefs.h >>conftest.$ac_ext
15260cat >>conftest.$ac_ext <<_ACEOF
15261/* end confdefs.h. */
15262$ac_includes_default
15263int
15264main ()
15265{
15266static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15267test_array [0] = 0
15268
15269 ;
15270 return 0;
15271}
15272_ACEOF
15273rm -f conftest.$ac_objext
15274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15275 (eval $ac_compile) 2>conftest.er1
a848cd7e 15276 ac_status=$?
ac1cb8d3
VS
15277 grep -v '^ *+' conftest.er1 >conftest.err
15278 rm -f conftest.er1
15279 cat conftest.err >&5
a848cd7e
SC
15280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281 (exit $ac_status); } &&
7714864e 15282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15284 (eval $ac_try) 2>&5
15285 ac_status=$?
15286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15287 (exit $ac_status); }; } &&
15288 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15290 (eval $ac_try) 2>&5
15291 ac_status=$?
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; }; then
15294 ac_lo=0 ac_mid=0
15295 while :; do
15296 cat >conftest.$ac_ext <<_ACEOF
15297/* confdefs.h. */
15298_ACEOF
15299cat confdefs.h >>conftest.$ac_ext
15300cat >>conftest.$ac_ext <<_ACEOF
15301/* end confdefs.h. */
15302$ac_includes_default
15303int
15304main ()
15305{
15306static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15307test_array [0] = 0
15308
15309 ;
15310 return 0;
15311}
15312_ACEOF
15313rm -f conftest.$ac_objext
15314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15315 (eval $ac_compile) 2>conftest.er1
a848cd7e 15316 ac_status=$?
ac1cb8d3
VS
15317 grep -v '^ *+' conftest.er1 >conftest.err
15318 rm -f conftest.er1
15319 cat conftest.err >&5
a848cd7e
SC
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
7714864e 15322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_hi=$ac_mid; break
15335else
15336 echo "$as_me: failed program was:" >&5
15337sed 's/^/| /' conftest.$ac_ext >&5
15338
15339ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15340 if test $ac_lo -le $ac_mid; then
15341 ac_lo= ac_hi=
15342 break
15343 fi
15344 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15345fi
ac1cb8d3 15346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15347 done
15348else
15349 echo "$as_me: failed program was:" >&5
15350sed 's/^/| /' conftest.$ac_ext >&5
15351
15352cat >conftest.$ac_ext <<_ACEOF
15353/* confdefs.h. */
15354_ACEOF
15355cat confdefs.h >>conftest.$ac_ext
15356cat >>conftest.$ac_ext <<_ACEOF
15357/* end confdefs.h. */
15358$ac_includes_default
15359int
15360main ()
15361{
15362static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15363test_array [0] = 0
15364
15365 ;
15366 return 0;
15367}
15368_ACEOF
15369rm -f conftest.$ac_objext
15370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15371 (eval $ac_compile) 2>conftest.er1
a848cd7e 15372 ac_status=$?
ac1cb8d3
VS
15373 grep -v '^ *+' conftest.er1 >conftest.err
15374 rm -f conftest.er1
15375 cat conftest.err >&5
a848cd7e
SC
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
7714864e 15378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15380 (eval $ac_try) 2>&5
15381 ac_status=$?
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); }; } &&
15384 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15386 (eval $ac_try) 2>&5
15387 ac_status=$?
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); }; }; then
15390 ac_hi=-1 ac_mid=-1
15391 while :; do
15392 cat >conftest.$ac_ext <<_ACEOF
15393/* confdefs.h. */
15394_ACEOF
15395cat confdefs.h >>conftest.$ac_ext
15396cat >>conftest.$ac_ext <<_ACEOF
15397/* end confdefs.h. */
15398$ac_includes_default
15399int
15400main ()
15401{
15402static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15403test_array [0] = 0
15404
15405 ;
15406 return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15411 (eval $ac_compile) 2>conftest.er1
a848cd7e 15412 ac_status=$?
ac1cb8d3
VS
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
a848cd7e
SC
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
7714864e 15418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15421 ac_status=$?
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15427 ac_status=$?
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 ac_lo=$ac_mid; break
15431else
15432 echo "$as_me: failed program was:" >&5
15433sed 's/^/| /' conftest.$ac_ext >&5
15434
15435ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15436 if test $ac_mid -le $ac_hi; then
15437 ac_lo= ac_hi=
15438 break
15439 fi
15440 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15441fi
ac1cb8d3 15442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15443 done
15444else
15445 echo "$as_me: failed program was:" >&5
15446sed 's/^/| /' conftest.$ac_ext >&5
15447
15448ac_lo= ac_hi=
15449fi
ac1cb8d3 15450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15451fi
ac1cb8d3 15452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15453# Binary search between lo and hi bounds.
15454while test "x$ac_lo" != "x$ac_hi"; do
15455 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15456 cat >conftest.$ac_ext <<_ACEOF
15457/* confdefs.h. */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h. */
15462$ac_includes_default
15463int
15464main ()
15465{
15466static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15467test_array [0] = 0
15468
15469 ;
15470 return 0;
15471}
15472_ACEOF
15473rm -f conftest.$ac_objext
15474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15475 (eval $ac_compile) 2>conftest.er1
a848cd7e 15476 ac_status=$?
ac1cb8d3
VS
15477 grep -v '^ *+' conftest.er1 >conftest.err
15478 rm -f conftest.er1
15479 cat conftest.err >&5
a848cd7e
SC
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
7714864e 15482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; }; then
15494 ac_hi=$ac_mid
15495else
15496 echo "$as_me: failed program was:" >&5
15497sed 's/^/| /' conftest.$ac_ext >&5
15498
15499ac_lo=`expr '(' $ac_mid ')' + 1`
15500fi
ac1cb8d3 15501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15502done
15503case $ac_lo in
15504?*) ac_cv_sizeof_void_p=$ac_lo;;
15505'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15506See \`config.log' for more details." >&5
15507echo "$as_me: error: cannot compute sizeof (void *), 77
15508See \`config.log' for more details." >&2;}
15509 { (exit 1); exit 1; }; } ;;
15510esac
15511else
15512 if test "$cross_compiling" = yes; then
7714864e
RL
15513 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15514echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15515 { (exit 1); exit 1; }; }
15516else
15517 cat >conftest.$ac_ext <<_ACEOF
15518/* confdefs.h. */
15519_ACEOF
15520cat confdefs.h >>conftest.$ac_ext
15521cat >>conftest.$ac_ext <<_ACEOF
15522/* end confdefs.h. */
15523$ac_includes_default
15524long longval () { return (long) (sizeof (void *)); }
15525unsigned long ulongval () { return (long) (sizeof (void *)); }
15526#include <stdio.h>
15527#include <stdlib.h>
15528int
15529main ()
15530{
15531
15532 FILE *f = fopen ("conftest.val", "w");
15533 if (! f)
15534 exit (1);
15535 if (((long) (sizeof (void *))) < 0)
15536 {
15537 long i = longval ();
15538 if (i != ((long) (sizeof (void *))))
15539 exit (1);
15540 fprintf (f, "%ld\n", i);
15541 }
15542 else
15543 {
15544 unsigned long i = ulongval ();
15545 if (i != ((long) (sizeof (void *))))
15546 exit (1);
15547 fprintf (f, "%lu\n", i);
15548 }
15549 exit (ferror (f) || fclose (f) != 0);
15550
15551 ;
15552 return 0;
15553}
15554_ACEOF
15555rm -f conftest$ac_exeext
15556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15557 (eval $ac_link) 2>&5
15558 ac_status=$?
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15562 (eval $ac_try) 2>&5
15563 ac_status=$?
15564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565 (exit $ac_status); }; }; then
15566 ac_cv_sizeof_void_p=`cat conftest.val`
15567else
15568 echo "$as_me: program exited with status $ac_status" >&5
15569echo "$as_me: failed program was:" >&5
15570sed 's/^/| /' conftest.$ac_ext >&5
15571
15572( exit $ac_status )
15573{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15574See \`config.log' for more details." >&5
15575echo "$as_me: error: cannot compute sizeof (void *), 77
15576See \`config.log' for more details." >&2;}
15577 { (exit 1); exit 1; }; }
15578fi
ac1cb8d3 15579rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15580fi
15581fi
15582rm -f conftest.val
15583else
15584 ac_cv_sizeof_void_p=0
15585fi
15586fi
15587echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15588echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15589cat >>confdefs.h <<_ACEOF
15590#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15591_ACEOF
15592
15593
15594echo "$as_me:$LINENO: checking for int" >&5
15595echo $ECHO_N "checking for int... $ECHO_C" >&6
15596if test "${ac_cv_type_int+set}" = set; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15598else
15599 cat >conftest.$ac_ext <<_ACEOF
15600/* confdefs.h. */
15601_ACEOF
15602cat confdefs.h >>conftest.$ac_ext
15603cat >>conftest.$ac_ext <<_ACEOF
15604/* end confdefs.h. */
15605$ac_includes_default
15606int
15607main ()
15608{
15609if ((int *) 0)
15610 return 0;
15611if (sizeof (int))
15612 return 0;
15613 ;
15614 return 0;
15615}
15616_ACEOF
15617rm -f conftest.$ac_objext
15618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15619 (eval $ac_compile) 2>conftest.er1
a848cd7e 15620 ac_status=$?
ac1cb8d3
VS
15621 grep -v '^ *+' conftest.er1 >conftest.err
15622 rm -f conftest.er1
15623 cat conftest.err >&5
a848cd7e
SC
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } &&
7714864e 15626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15628 (eval $ac_try) 2>&5
15629 ac_status=$?
15630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); }; } &&
15632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15634 (eval $ac_try) 2>&5
15635 ac_status=$?
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); }; }; then
15638 ac_cv_type_int=yes
15639else
15640 echo "$as_me: failed program was:" >&5
15641sed 's/^/| /' conftest.$ac_ext >&5
15642
15643ac_cv_type_int=no
15644fi
ac1cb8d3 15645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15646fi
15647echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15648echo "${ECHO_T}$ac_cv_type_int" >&6
15649
15650echo "$as_me:$LINENO: checking size of int" >&5
15651echo $ECHO_N "checking size of int... $ECHO_C" >&6
15652if test "${ac_cv_sizeof_int+set}" = set; then
15653 echo $ECHO_N "(cached) $ECHO_C" >&6
15654else
15655 if test "$ac_cv_type_int" = yes; then
15656 # The cast to unsigned long works around a bug in the HP C Compiler
15657 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15658 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15659 # This bug is HP SR number 8606223364.
15660 if test "$cross_compiling" = yes; then
15661 # Depending upon the size, compute the lo and hi bounds.
15662cat >conftest.$ac_ext <<_ACEOF
15663/* confdefs.h. */
15664_ACEOF
15665cat confdefs.h >>conftest.$ac_ext
15666cat >>conftest.$ac_ext <<_ACEOF
15667/* end confdefs.h. */
15668$ac_includes_default
15669int
15670main ()
15671{
15672static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15673test_array [0] = 0
15674
15675 ;
15676 return 0;
15677}
15678_ACEOF
15679rm -f conftest.$ac_objext
15680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15681 (eval $ac_compile) 2>conftest.er1
a848cd7e 15682 ac_status=$?
ac1cb8d3
VS
15683 grep -v '^ *+' conftest.er1 >conftest.err
15684 rm -f conftest.er1
15685 cat conftest.err >&5
a848cd7e
SC
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 (exit $ac_status); } &&
7714864e 15688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15691 ac_status=$?
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; } &&
15694 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15697 ac_status=$?
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15700 ac_lo=0 ac_mid=0
15701 while :; do
15702 cat >conftest.$ac_ext <<_ACEOF
15703/* confdefs.h. */
15704_ACEOF
15705cat confdefs.h >>conftest.$ac_ext
15706cat >>conftest.$ac_ext <<_ACEOF
15707/* end confdefs.h. */
15708$ac_includes_default
15709int
15710main ()
15711{
15712static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15713test_array [0] = 0
15714
15715 ;
15716 return 0;
15717}
15718_ACEOF
15719rm -f conftest.$ac_objext
15720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15721 (eval $ac_compile) 2>conftest.er1
a848cd7e 15722 ac_status=$?
ac1cb8d3
VS
15723 grep -v '^ *+' conftest.er1 >conftest.err
15724 rm -f conftest.er1
15725 cat conftest.err >&5
a848cd7e
SC
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); } &&
7714864e 15728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; } &&
15734 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15737 ac_status=$?
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; }; then
15740 ac_hi=$ac_mid; break
15741else
15742 echo "$as_me: failed program was:" >&5
15743sed 's/^/| /' conftest.$ac_ext >&5
15744
15745ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15746 if test $ac_lo -le $ac_mid; then
15747 ac_lo= ac_hi=
15748 break
15749 fi
15750 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15751fi
ac1cb8d3 15752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15753 done
15754else
15755 echo "$as_me: failed program was:" >&5
15756sed 's/^/| /' conftest.$ac_ext >&5
15757
15758cat >conftest.$ac_ext <<_ACEOF
15759/* confdefs.h. */
15760_ACEOF
15761cat confdefs.h >>conftest.$ac_ext
15762cat >>conftest.$ac_ext <<_ACEOF
15763/* end confdefs.h. */
15764$ac_includes_default
15765int
15766main ()
15767{
15768static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15769test_array [0] = 0
15770
15771 ;
15772 return 0;
15773}
15774_ACEOF
15775rm -f conftest.$ac_objext
15776if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15777 (eval $ac_compile) 2>conftest.er1
a848cd7e 15778 ac_status=$?
ac1cb8d3
VS
15779 grep -v '^ *+' conftest.er1 >conftest.err
15780 rm -f conftest.er1
15781 cat conftest.err >&5
a848cd7e
SC
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); } &&
7714864e 15784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; } &&
15790 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15793 ac_status=$?
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15796 ac_hi=-1 ac_mid=-1
15797 while :; do
15798 cat >conftest.$ac_ext <<_ACEOF
15799/* confdefs.h. */
15800_ACEOF
15801cat confdefs.h >>conftest.$ac_ext
15802cat >>conftest.$ac_ext <<_ACEOF
15803/* end confdefs.h. */
15804$ac_includes_default
15805int
15806main ()
15807{
15808static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15809test_array [0] = 0
15810
15811 ;
15812 return 0;
15813}
15814_ACEOF
15815rm -f conftest.$ac_objext
15816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15817 (eval $ac_compile) 2>conftest.er1
a848cd7e 15818 ac_status=$?
ac1cb8d3
VS
15819 grep -v '^ *+' conftest.er1 >conftest.err
15820 rm -f conftest.er1
15821 cat conftest.err >&5
a848cd7e
SC
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } &&
7714864e 15824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15827 ac_status=$?
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; } &&
15830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15832 (eval $ac_try) 2>&5
15833 ac_status=$?
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); }; }; then
15836 ac_lo=$ac_mid; break
15837else
15838 echo "$as_me: failed program was:" >&5
15839sed 's/^/| /' conftest.$ac_ext >&5
15840
15841ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15842 if test $ac_mid -le $ac_hi; then
15843 ac_lo= ac_hi=
15844 break
15845 fi
15846 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15847fi
ac1cb8d3 15848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15849 done
15850else
15851 echo "$as_me: failed program was:" >&5
15852sed 's/^/| /' conftest.$ac_ext >&5
15853
15854ac_lo= ac_hi=
15855fi
ac1cb8d3 15856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15857fi
ac1cb8d3 15858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15859# Binary search between lo and hi bounds.
15860while test "x$ac_lo" != "x$ac_hi"; do
15861 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15862 cat >conftest.$ac_ext <<_ACEOF
15863/* confdefs.h. */
15864_ACEOF
15865cat confdefs.h >>conftest.$ac_ext
15866cat >>conftest.$ac_ext <<_ACEOF
15867/* end confdefs.h. */
15868$ac_includes_default
15869int
15870main ()
15871{
15872static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15873test_array [0] = 0
15874
15875 ;
15876 return 0;
15877}
15878_ACEOF
15879rm -f conftest.$ac_objext
15880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15881 (eval $ac_compile) 2>conftest.er1
a848cd7e 15882 ac_status=$?
ac1cb8d3
VS
15883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
a848cd7e
SC
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } &&
7714864e 15888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15890 (eval $ac_try) 2>&5
15891 ac_status=$?
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); }; } &&
15894 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; }; then
15900 ac_hi=$ac_mid
15901else
15902 echo "$as_me: failed program was:" >&5
15903sed 's/^/| /' conftest.$ac_ext >&5
15904
15905ac_lo=`expr '(' $ac_mid ')' + 1`
15906fi
ac1cb8d3 15907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15908done
15909case $ac_lo in
15910?*) ac_cv_sizeof_int=$ac_lo;;
15911'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15912See \`config.log' for more details." >&5
15913echo "$as_me: error: cannot compute sizeof (int), 77
15914See \`config.log' for more details." >&2;}
15915 { (exit 1); exit 1; }; } ;;
15916esac
15917else
15918 if test "$cross_compiling" = yes; then
7714864e
RL
15919 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15920echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15921 { (exit 1); exit 1; }; }
15922else
15923 cat >conftest.$ac_ext <<_ACEOF
15924/* confdefs.h. */
15925_ACEOF
15926cat confdefs.h >>conftest.$ac_ext
15927cat >>conftest.$ac_ext <<_ACEOF
15928/* end confdefs.h. */
15929$ac_includes_default
15930long longval () { return (long) (sizeof (int)); }
15931unsigned long ulongval () { return (long) (sizeof (int)); }
15932#include <stdio.h>
15933#include <stdlib.h>
15934int
15935main ()
15936{
15937
15938 FILE *f = fopen ("conftest.val", "w");
15939 if (! f)
15940 exit (1);
15941 if (((long) (sizeof (int))) < 0)
15942 {
15943 long i = longval ();
15944 if (i != ((long) (sizeof (int))))
15945 exit (1);
15946 fprintf (f, "%ld\n", i);
15947 }
15948 else
15949 {
15950 unsigned long i = ulongval ();
15951 if (i != ((long) (sizeof (int))))
15952 exit (1);
15953 fprintf (f, "%lu\n", i);
15954 }
15955 exit (ferror (f) || fclose (f) != 0);
15956
15957 ;
15958 return 0;
15959}
15960_ACEOF
15961rm -f conftest$ac_exeext
15962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15963 (eval $ac_link) 2>&5
15964 ac_status=$?
15965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15969 ac_status=$?
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; }; then
15972 ac_cv_sizeof_int=`cat conftest.val`
15973else
15974 echo "$as_me: program exited with status $ac_status" >&5
15975echo "$as_me: failed program was:" >&5
15976sed 's/^/| /' conftest.$ac_ext >&5
15977
15978( exit $ac_status )
15979{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15980See \`config.log' for more details." >&5
15981echo "$as_me: error: cannot compute sizeof (int), 77
15982See \`config.log' for more details." >&2;}
15983 { (exit 1); exit 1; }; }
15984fi
ac1cb8d3 15985rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15986fi
15987fi
15988rm -f conftest.val
15989else
15990 ac_cv_sizeof_int=0
15991fi
15992fi
15993echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15994echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15995cat >>confdefs.h <<_ACEOF
15996#define SIZEOF_INT $ac_cv_sizeof_int
15997_ACEOF
15998
15999
16000echo "$as_me:$LINENO: checking for long" >&5
16001echo $ECHO_N "checking for long... $ECHO_C" >&6
16002if test "${ac_cv_type_long+set}" = set; then
16003 echo $ECHO_N "(cached) $ECHO_C" >&6
16004else
16005 cat >conftest.$ac_ext <<_ACEOF
16006/* confdefs.h. */
16007_ACEOF
16008cat confdefs.h >>conftest.$ac_ext
16009cat >>conftest.$ac_ext <<_ACEOF
16010/* end confdefs.h. */
16011$ac_includes_default
16012int
16013main ()
16014{
16015if ((long *) 0)
16016 return 0;
16017if (sizeof (long))
16018 return 0;
16019 ;
16020 return 0;
16021}
16022_ACEOF
16023rm -f conftest.$ac_objext
16024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16025 (eval $ac_compile) 2>conftest.er1
a848cd7e 16026 ac_status=$?
ac1cb8d3
VS
16027 grep -v '^ *+' conftest.er1 >conftest.err
16028 rm -f conftest.er1
16029 cat conftest.err >&5
a848cd7e
SC
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); } &&
7714864e 16032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16034 (eval $ac_try) 2>&5
16035 ac_status=$?
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); }; } &&
16038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; }; then
16044 ac_cv_type_long=yes
16045else
16046 echo "$as_me: failed program was:" >&5
16047sed 's/^/| /' conftest.$ac_ext >&5
16048
16049ac_cv_type_long=no
16050fi
ac1cb8d3 16051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16052fi
16053echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16054echo "${ECHO_T}$ac_cv_type_long" >&6
16055
16056echo "$as_me:$LINENO: checking size of long" >&5
16057echo $ECHO_N "checking size of long... $ECHO_C" >&6
16058if test "${ac_cv_sizeof_long+set}" = set; then
16059 echo $ECHO_N "(cached) $ECHO_C" >&6
16060else
16061 if test "$ac_cv_type_long" = yes; then
16062 # The cast to unsigned long works around a bug in the HP C Compiler
16063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16065 # This bug is HP SR number 8606223364.
16066 if test "$cross_compiling" = yes; then
16067 # Depending upon the size, compute the lo and hi bounds.
16068cat >conftest.$ac_ext <<_ACEOF
16069/* confdefs.h. */
16070_ACEOF
16071cat confdefs.h >>conftest.$ac_ext
16072cat >>conftest.$ac_ext <<_ACEOF
16073/* end confdefs.h. */
16074$ac_includes_default
16075int
16076main ()
16077{
16078static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16079test_array [0] = 0
16080
16081 ;
16082 return 0;
16083}
16084_ACEOF
16085rm -f conftest.$ac_objext
16086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16087 (eval $ac_compile) 2>conftest.er1
a848cd7e 16088 ac_status=$?
ac1cb8d3
VS
16089 grep -v '^ *+' conftest.er1 >conftest.err
16090 rm -f conftest.er1
16091 cat conftest.err >&5
a848cd7e
SC
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } &&
7714864e 16094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096 (eval $ac_try) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); }; } &&
16100 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_lo=0 ac_mid=0
16107 while :; do
16108 cat >conftest.$ac_ext <<_ACEOF
16109/* confdefs.h. */
16110_ACEOF
16111cat confdefs.h >>conftest.$ac_ext
16112cat >>conftest.$ac_ext <<_ACEOF
16113/* end confdefs.h. */
16114$ac_includes_default
16115int
16116main ()
16117{
16118static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16119test_array [0] = 0
16120
16121 ;
16122 return 0;
16123}
16124_ACEOF
16125rm -f conftest.$ac_objext
16126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16127 (eval $ac_compile) 2>conftest.er1
a848cd7e 16128 ac_status=$?
ac1cb8d3
VS
16129 grep -v '^ *+' conftest.er1 >conftest.err
16130 rm -f conftest.er1
16131 cat conftest.err >&5
a848cd7e
SC
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } &&
7714864e 16134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16136 (eval $ac_try) 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; } &&
16140 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16143 ac_status=$?
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; }; then
16146 ac_hi=$ac_mid; break
16147else
16148 echo "$as_me: failed program was:" >&5
16149sed 's/^/| /' conftest.$ac_ext >&5
16150
16151ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16152 if test $ac_lo -le $ac_mid; then
16153 ac_lo= ac_hi=
16154 break
16155 fi
16156 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16157fi
ac1cb8d3 16158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16159 done
16160else
16161 echo "$as_me: failed program was:" >&5
16162sed 's/^/| /' conftest.$ac_ext >&5
16163
16164cat >conftest.$ac_ext <<_ACEOF
16165/* confdefs.h. */
16166_ACEOF
16167cat confdefs.h >>conftest.$ac_ext
16168cat >>conftest.$ac_ext <<_ACEOF
16169/* end confdefs.h. */
16170$ac_includes_default
16171int
16172main ()
16173{
16174static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16175test_array [0] = 0
16176
16177 ;
16178 return 0;
16179}
16180_ACEOF
16181rm -f conftest.$ac_objext
16182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16183 (eval $ac_compile) 2>conftest.er1
a848cd7e 16184 ac_status=$?
ac1cb8d3
VS
16185 grep -v '^ *+' conftest.er1 >conftest.err
16186 rm -f conftest.er1
16187 cat conftest.err >&5
a848cd7e
SC
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
7714864e 16190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16192 (eval $ac_try) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); }; } &&
16196 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16199 ac_status=$?
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; }; then
16202 ac_hi=-1 ac_mid=-1
16203 while :; do
16204 cat >conftest.$ac_ext <<_ACEOF
16205/* confdefs.h. */
16206_ACEOF
16207cat confdefs.h >>conftest.$ac_ext
16208cat >>conftest.$ac_ext <<_ACEOF
16209/* end confdefs.h. */
16210$ac_includes_default
16211int
16212main ()
16213{
16214static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16215test_array [0] = 0
16216
16217 ;
16218 return 0;
16219}
16220_ACEOF
16221rm -f conftest.$ac_objext
16222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16223 (eval $ac_compile) 2>conftest.er1
a848cd7e 16224 ac_status=$?
ac1cb8d3
VS
16225 grep -v '^ *+' conftest.er1 >conftest.err
16226 rm -f conftest.er1
16227 cat conftest.err >&5
a848cd7e
SC
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } &&
7714864e 16230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232 (eval $ac_try) 2>&5
16233 ac_status=$?
16234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); }; } &&
16236 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238 (eval $ac_try) 2>&5
16239 ac_status=$?
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); }; }; then
16242 ac_lo=$ac_mid; break
16243else
16244 echo "$as_me: failed program was:" >&5
16245sed 's/^/| /' conftest.$ac_ext >&5
16246
16247ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16248 if test $ac_mid -le $ac_hi; then
16249 ac_lo= ac_hi=
16250 break
16251 fi
16252 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16253fi
ac1cb8d3 16254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16255 done
16256else
16257 echo "$as_me: failed program was:" >&5
16258sed 's/^/| /' conftest.$ac_ext >&5
16259
16260ac_lo= ac_hi=
16261fi
ac1cb8d3 16262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16263fi
ac1cb8d3 16264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16265# Binary search between lo and hi bounds.
16266while test "x$ac_lo" != "x$ac_hi"; do
16267 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16268 cat >conftest.$ac_ext <<_ACEOF
16269/* confdefs.h. */
16270_ACEOF
16271cat confdefs.h >>conftest.$ac_ext
16272cat >>conftest.$ac_ext <<_ACEOF
16273/* end confdefs.h. */
16274$ac_includes_default
16275int
16276main ()
16277{
16278static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16279test_array [0] = 0
16280
16281 ;
16282 return 0;
16283}
16284_ACEOF
16285rm -f conftest.$ac_objext
16286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16287 (eval $ac_compile) 2>conftest.er1
a848cd7e 16288 ac_status=$?
ac1cb8d3
VS
16289 grep -v '^ *+' conftest.er1 >conftest.err
16290 rm -f conftest.er1
16291 cat conftest.err >&5
a848cd7e
SC
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); } &&
7714864e 16294 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
16300 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16302 (eval $ac_try) 2>&5
16303 ac_status=$?
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); }; }; then
16306 ac_hi=$ac_mid
16307else
16308 echo "$as_me: failed program was:" >&5
16309sed 's/^/| /' conftest.$ac_ext >&5
16310
16311ac_lo=`expr '(' $ac_mid ')' + 1`
16312fi
ac1cb8d3 16313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16314done
16315case $ac_lo in
16316?*) ac_cv_sizeof_long=$ac_lo;;
16317'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16318See \`config.log' for more details." >&5
16319echo "$as_me: error: cannot compute sizeof (long), 77
16320See \`config.log' for more details." >&2;}
16321 { (exit 1); exit 1; }; } ;;
16322esac
16323else
16324 if test "$cross_compiling" = yes; then
7714864e
RL
16325 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16326echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16327 { (exit 1); exit 1; }; }
16328else
16329 cat >conftest.$ac_ext <<_ACEOF
16330/* confdefs.h. */
16331_ACEOF
16332cat confdefs.h >>conftest.$ac_ext
16333cat >>conftest.$ac_ext <<_ACEOF
16334/* end confdefs.h. */
16335$ac_includes_default
16336long longval () { return (long) (sizeof (long)); }
16337unsigned long ulongval () { return (long) (sizeof (long)); }
16338#include <stdio.h>
16339#include <stdlib.h>
16340int
16341main ()
16342{
16343
16344 FILE *f = fopen ("conftest.val", "w");
16345 if (! f)
16346 exit (1);
16347 if (((long) (sizeof (long))) < 0)
16348 {
16349 long i = longval ();
16350 if (i != ((long) (sizeof (long))))
16351 exit (1);
16352 fprintf (f, "%ld\n", i);
16353 }
16354 else
16355 {
16356 unsigned long i = ulongval ();
16357 if (i != ((long) (sizeof (long))))
16358 exit (1);
16359 fprintf (f, "%lu\n", i);
16360 }
16361 exit (ferror (f) || fclose (f) != 0);
16362
16363 ;
16364 return 0;
16365}
16366_ACEOF
16367rm -f conftest$ac_exeext
16368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16369 (eval $ac_link) 2>&5
16370 ac_status=$?
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 ac_cv_sizeof_long=`cat conftest.val`
16379else
16380 echo "$as_me: program exited with status $ac_status" >&5
16381echo "$as_me: failed program was:" >&5
16382sed 's/^/| /' conftest.$ac_ext >&5
16383
16384( exit $ac_status )
16385{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16386See \`config.log' for more details." >&5
16387echo "$as_me: error: cannot compute sizeof (long), 77
16388See \`config.log' for more details." >&2;}
16389 { (exit 1); exit 1; }; }
16390fi
ac1cb8d3 16391rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16392fi
16393fi
16394rm -f conftest.val
16395else
16396 ac_cv_sizeof_long=0
16397fi
16398fi
16399echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16400echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16401cat >>confdefs.h <<_ACEOF
16402#define SIZEOF_LONG $ac_cv_sizeof_long
16403_ACEOF
16404
16405
16406echo "$as_me:$LINENO: checking for size_t" >&5
16407echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16408if test "${ac_cv_type_size_t+set}" = set; then
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410else
16411 cat >conftest.$ac_ext <<_ACEOF
16412/* confdefs.h. */
16413_ACEOF
16414cat confdefs.h >>conftest.$ac_ext
16415cat >>conftest.$ac_ext <<_ACEOF
16416/* end confdefs.h. */
16417$ac_includes_default
16418int
16419main ()
16420{
16421if ((size_t *) 0)
16422 return 0;
16423if (sizeof (size_t))
16424 return 0;
16425 ;
16426 return 0;
16427}
16428_ACEOF
16429rm -f conftest.$ac_objext
16430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16431 (eval $ac_compile) 2>conftest.er1
a848cd7e 16432 ac_status=$?
ac1cb8d3
VS
16433 grep -v '^ *+' conftest.er1 >conftest.err
16434 rm -f conftest.er1
16435 cat conftest.err >&5
a848cd7e
SC
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } &&
7714864e 16438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16440 (eval $ac_try) 2>&5
16441 ac_status=$?
16442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443 (exit $ac_status); }; } &&
16444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16447 ac_status=$?
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 ac_cv_type_size_t=yes
16451else
16452 echo "$as_me: failed program was:" >&5
16453sed 's/^/| /' conftest.$ac_ext >&5
16454
16455ac_cv_type_size_t=no
16456fi
ac1cb8d3 16457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16458fi
16459echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16460echo "${ECHO_T}$ac_cv_type_size_t" >&6
16461
16462echo "$as_me:$LINENO: checking size of size_t" >&5
16463echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16464if test "${ac_cv_sizeof_size_t+set}" = set; then
16465 echo $ECHO_N "(cached) $ECHO_C" >&6
16466else
16467 if test "$ac_cv_type_size_t" = yes; then
16468 # The cast to unsigned long works around a bug in the HP C Compiler
16469 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16470 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16471 # This bug is HP SR number 8606223364.
16472 if test "$cross_compiling" = yes; then
16473 # Depending upon the size, compute the lo and hi bounds.
16474cat >conftest.$ac_ext <<_ACEOF
16475/* confdefs.h. */
16476_ACEOF
16477cat confdefs.h >>conftest.$ac_ext
16478cat >>conftest.$ac_ext <<_ACEOF
16479/* end confdefs.h. */
16480$ac_includes_default
16481int
16482main ()
16483{
16484static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16485test_array [0] = 0
16486
16487 ;
16488 return 0;
16489}
16490_ACEOF
16491rm -f conftest.$ac_objext
16492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16493 (eval $ac_compile) 2>conftest.er1
a848cd7e 16494 ac_status=$?
ac1cb8d3
VS
16495 grep -v '^ *+' conftest.er1 >conftest.err
16496 rm -f conftest.er1
16497 cat conftest.err >&5
a848cd7e
SC
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } &&
7714864e 16500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; } &&
16506 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508 (eval $ac_try) 2>&5
16509 ac_status=$?
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); }; }; then
16512 ac_lo=0 ac_mid=0
16513 while :; do
16514 cat >conftest.$ac_ext <<_ACEOF
16515/* confdefs.h. */
16516_ACEOF
16517cat confdefs.h >>conftest.$ac_ext
16518cat >>conftest.$ac_ext <<_ACEOF
16519/* end confdefs.h. */
16520$ac_includes_default
16521int
16522main ()
16523{
16524static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16525test_array [0] = 0
16526
16527 ;
16528 return 0;
16529}
16530_ACEOF
16531rm -f conftest.$ac_objext
16532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16533 (eval $ac_compile) 2>conftest.er1
a848cd7e 16534 ac_status=$?
ac1cb8d3
VS
16535 grep -v '^ *+' conftest.er1 >conftest.err
16536 rm -f conftest.er1
16537 cat conftest.err >&5
a848cd7e
SC
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } &&
7714864e 16540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16542 (eval $ac_try) 2>&5
16543 ac_status=$?
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); }; } &&
16546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16548 (eval $ac_try) 2>&5
16549 ac_status=$?
16550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16551 (exit $ac_status); }; }; then
16552 ac_hi=$ac_mid; break
16553else
16554 echo "$as_me: failed program was:" >&5
16555sed 's/^/| /' conftest.$ac_ext >&5
16556
16557ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16558 if test $ac_lo -le $ac_mid; then
16559 ac_lo= ac_hi=
16560 break
16561 fi
16562 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16563fi
ac1cb8d3 16564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16565 done
16566else
16567 echo "$as_me: failed program was:" >&5
16568sed 's/^/| /' conftest.$ac_ext >&5
16569
16570cat >conftest.$ac_ext <<_ACEOF
16571/* confdefs.h. */
16572_ACEOF
16573cat confdefs.h >>conftest.$ac_ext
16574cat >>conftest.$ac_ext <<_ACEOF
16575/* end confdefs.h. */
16576$ac_includes_default
16577int
16578main ()
16579{
16580static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16581test_array [0] = 0
16582
16583 ;
16584 return 0;
16585}
16586_ACEOF
16587rm -f conftest.$ac_objext
16588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16589 (eval $ac_compile) 2>conftest.er1
a848cd7e 16590 ac_status=$?
ac1cb8d3
VS
16591 grep -v '^ *+' conftest.er1 >conftest.err
16592 rm -f conftest.er1
16593 cat conftest.err >&5
a848cd7e
SC
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } &&
7714864e 16596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); } &&
7714864e 16636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16645 ac_status=$?
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_lo=$ac_mid; break
16649else
16650 echo "$as_me: failed program was:" >&5
16651sed 's/^/| /' conftest.$ac_ext >&5
16652
16653ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16654 if test $ac_mid -le $ac_hi; then
16655 ac_lo= ac_hi=
16656 break
16657 fi
16658 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16659fi
ac1cb8d3 16660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16661 done
16662else
16663 echo "$as_me: failed program was:" >&5
16664sed 's/^/| /' conftest.$ac_ext >&5
16665
16666ac_lo= ac_hi=
16667fi
ac1cb8d3 16668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16669fi
ac1cb8d3 16670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16671# Binary search between lo and hi bounds.
16672while test "x$ac_lo" != "x$ac_hi"; do
16673 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16674 cat >conftest.$ac_ext <<_ACEOF
16675/* confdefs.h. */
16676_ACEOF
16677cat confdefs.h >>conftest.$ac_ext
16678cat >>conftest.$ac_ext <<_ACEOF
16679/* end confdefs.h. */
16680$ac_includes_default
16681int
16682main ()
16683{
16684static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16685test_array [0] = 0
16686
16687 ;
16688 return 0;
16689}
16690_ACEOF
16691rm -f conftest.$ac_objext
16692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16693 (eval $ac_compile) 2>conftest.er1
a848cd7e 16694 ac_status=$?
ac1cb8d3
VS
16695 grep -v '^ *+' conftest.er1 >conftest.err
16696 rm -f conftest.er1
16697 cat conftest.err >&5
a848cd7e
SC
16698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699 (exit $ac_status); } &&
7714864e 16700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16702 (eval $ac_try) 2>&5
16703 ac_status=$?
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); }; } &&
16706 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16708 (eval $ac_try) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); }; }; then
16712 ac_hi=$ac_mid
16713else
16714 echo "$as_me: failed program was:" >&5
16715sed 's/^/| /' conftest.$ac_ext >&5
16716
16717ac_lo=`expr '(' $ac_mid ')' + 1`
16718fi
ac1cb8d3 16719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16720done
16721case $ac_lo in
16722?*) ac_cv_sizeof_size_t=$ac_lo;;
16723'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16724See \`config.log' for more details." >&5
16725echo "$as_me: error: cannot compute sizeof (size_t), 77
16726See \`config.log' for more details." >&2;}
16727 { (exit 1); exit 1; }; } ;;
16728esac
16729else
16730 if test "$cross_compiling" = yes; then
7714864e
RL
16731 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16732echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16733 { (exit 1); exit 1; }; }
16734else
16735 cat >conftest.$ac_ext <<_ACEOF
16736/* confdefs.h. */
16737_ACEOF
16738cat confdefs.h >>conftest.$ac_ext
16739cat >>conftest.$ac_ext <<_ACEOF
16740/* end confdefs.h. */
16741$ac_includes_default
16742long longval () { return (long) (sizeof (size_t)); }
16743unsigned long ulongval () { return (long) (sizeof (size_t)); }
16744#include <stdio.h>
16745#include <stdlib.h>
16746int
16747main ()
16748{
16749
16750 FILE *f = fopen ("conftest.val", "w");
16751 if (! f)
16752 exit (1);
16753 if (((long) (sizeof (size_t))) < 0)
16754 {
16755 long i = longval ();
16756 if (i != ((long) (sizeof (size_t))))
16757 exit (1);
16758 fprintf (f, "%ld\n", i);
16759 }
16760 else
16761 {
16762 unsigned long i = ulongval ();
16763 if (i != ((long) (sizeof (size_t))))
16764 exit (1);
16765 fprintf (f, "%lu\n", i);
16766 }
16767 exit (ferror (f) || fclose (f) != 0);
16768
16769 ;
16770 return 0;
16771}
16772_ACEOF
16773rm -f conftest$ac_exeext
16774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16775 (eval $ac_link) 2>&5
16776 ac_status=$?
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16780 (eval $ac_try) 2>&5
16781 ac_status=$?
16782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783 (exit $ac_status); }; }; then
16784 ac_cv_sizeof_size_t=`cat conftest.val`
16785else
16786 echo "$as_me: program exited with status $ac_status" >&5
16787echo "$as_me: failed program was:" >&5
16788sed 's/^/| /' conftest.$ac_ext >&5
16789
16790( exit $ac_status )
16791{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16792See \`config.log' for more details." >&5
16793echo "$as_me: error: cannot compute sizeof (size_t), 77
16794See \`config.log' for more details." >&2;}
16795 { (exit 1); exit 1; }; }
16796fi
ac1cb8d3 16797rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16798fi
16799fi
16800rm -f conftest.val
16801else
16802 ac_cv_sizeof_size_t=0
16803fi
16804fi
16805echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16806echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16807cat >>confdefs.h <<_ACEOF
16808#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16809_ACEOF
16810
16811
16812
16813case "${host}" in
16814 arm-*-linux* )
16815 echo "$as_me:$LINENO: checking for long long" >&5
16816echo $ECHO_N "checking for long long... $ECHO_C" >&6
16817if test "${ac_cv_type_long_long+set}" = set; then
16818 echo $ECHO_N "(cached) $ECHO_C" >&6
16819else
16820 cat >conftest.$ac_ext <<_ACEOF
16821/* confdefs.h. */
16822_ACEOF
16823cat confdefs.h >>conftest.$ac_ext
16824cat >>conftest.$ac_ext <<_ACEOF
16825/* end confdefs.h. */
16826$ac_includes_default
16827int
16828main ()
16829{
16830if ((long long *) 0)
16831 return 0;
16832if (sizeof (long long))
16833 return 0;
16834 ;
16835 return 0;
16836}
16837_ACEOF
16838rm -f conftest.$ac_objext
16839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16840 (eval $ac_compile) 2>conftest.er1
a848cd7e 16841 ac_status=$?
ac1cb8d3
VS
16842 grep -v '^ *+' conftest.er1 >conftest.err
16843 rm -f conftest.er1
16844 cat conftest.err >&5
a848cd7e
SC
16845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846 (exit $ac_status); } &&
7714864e 16847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16849 (eval $ac_try) 2>&5
16850 ac_status=$?
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); }; } &&
16853 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16855 (eval $ac_try) 2>&5
16856 ac_status=$?
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_type_long_long=yes
16860else
16861 echo "$as_me: failed program was:" >&5
16862sed 's/^/| /' conftest.$ac_ext >&5
16863
16864ac_cv_type_long_long=no
16865fi
ac1cb8d3 16866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16867fi
16868echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16869echo "${ECHO_T}$ac_cv_type_long_long" >&6
16870
16871echo "$as_me:$LINENO: checking size of long long" >&5
16872echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16873if test "${ac_cv_sizeof_long_long+set}" = set; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16875else
16876 if test "$ac_cv_type_long_long" = yes; then
16877 # The cast to unsigned long works around a bug in the HP C Compiler
16878 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16879 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16880 # This bug is HP SR number 8606223364.
16881 if test "$cross_compiling" = yes; then
16882 # Depending upon the size, compute the lo and hi bounds.
16883cat >conftest.$ac_ext <<_ACEOF
16884/* confdefs.h. */
16885_ACEOF
16886cat confdefs.h >>conftest.$ac_ext
16887cat >>conftest.$ac_ext <<_ACEOF
16888/* end confdefs.h. */
16889$ac_includes_default
16890int
16891main ()
16892{
16893static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16894test_array [0] = 0
16895
16896 ;
16897 return 0;
16898}
16899_ACEOF
16900rm -f conftest.$ac_objext
16901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16902 (eval $ac_compile) 2>conftest.er1
a848cd7e 16903 ac_status=$?
ac1cb8d3
VS
16904 grep -v '^ *+' conftest.er1 >conftest.err
16905 rm -f conftest.er1
16906 cat conftest.err >&5
a848cd7e
SC
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); } &&
7714864e 16909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16912 ac_status=$?
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; } &&
16915 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
16921 ac_lo=0 ac_mid=0
16922 while :; do
16923 cat >conftest.$ac_ext <<_ACEOF
16924/* confdefs.h. */
16925_ACEOF
16926cat confdefs.h >>conftest.$ac_ext
16927cat >>conftest.$ac_ext <<_ACEOF
16928/* end confdefs.h. */
16929$ac_includes_default
16930int
16931main ()
16932{
16933static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16934test_array [0] = 0
16935
16936 ;
16937 return 0;
16938}
16939_ACEOF
16940rm -f conftest.$ac_objext
16941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16942 (eval $ac_compile) 2>conftest.er1
a848cd7e 16943 ac_status=$?
ac1cb8d3
VS
16944 grep -v '^ *+' conftest.er1 >conftest.err
16945 rm -f conftest.er1
16946 cat conftest.err >&5
a848cd7e
SC
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); } &&
7714864e 16949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; } &&
16955 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16957 (eval $ac_try) 2>&5
16958 ac_status=$?
16959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16960 (exit $ac_status); }; }; then
16961 ac_hi=$ac_mid; break
16962else
16963 echo "$as_me: failed program was:" >&5
16964sed 's/^/| /' conftest.$ac_ext >&5
16965
16966ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16967 if test $ac_lo -le $ac_mid; then
16968 ac_lo= ac_hi=
16969 break
16970 fi
16971 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16972fi
ac1cb8d3 16973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16974 done
16975else
16976 echo "$as_me: failed program was:" >&5
16977sed 's/^/| /' conftest.$ac_ext >&5
16978
16979cat >conftest.$ac_ext <<_ACEOF
16980/* confdefs.h. */
16981_ACEOF
16982cat confdefs.h >>conftest.$ac_ext
16983cat >>conftest.$ac_ext <<_ACEOF
16984/* end confdefs.h. */
16985$ac_includes_default
16986int
16987main ()
16988{
16989static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16990test_array [0] = 0
16991
16992 ;
16993 return 0;
16994}
16995_ACEOF
16996rm -f conftest.$ac_objext
16997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16998 (eval $ac_compile) 2>conftest.er1
a848cd7e 16999 ac_status=$?
ac1cb8d3
VS
17000 grep -v '^ *+' conftest.er1 >conftest.err
17001 rm -f conftest.er1
17002 cat conftest.err >&5
a848cd7e
SC
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); } &&
7714864e 17005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; } &&
17011 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_hi=-1 ac_mid=-1
17018 while :; do
17019 cat >conftest.$ac_ext <<_ACEOF
17020/* confdefs.h. */
17021_ACEOF
17022cat confdefs.h >>conftest.$ac_ext
17023cat >>conftest.$ac_ext <<_ACEOF
17024/* end confdefs.h. */
17025$ac_includes_default
17026int
17027main ()
17028{
17029static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17030test_array [0] = 0
17031
17032 ;
17033 return 0;
17034}
17035_ACEOF
17036rm -f conftest.$ac_objext
17037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17038 (eval $ac_compile) 2>conftest.er1
a848cd7e 17039 ac_status=$?
ac1cb8d3
VS
17040 grep -v '^ *+' conftest.er1 >conftest.err
17041 rm -f conftest.er1
17042 cat conftest.err >&5
a848cd7e
SC
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); } &&
7714864e 17045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17047 (eval $ac_try) 2>&5
17048 ac_status=$?
17049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17050 (exit $ac_status); }; } &&
17051 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; }; then
17057 ac_lo=$ac_mid; break
17058else
17059 echo "$as_me: failed program was:" >&5
17060sed 's/^/| /' conftest.$ac_ext >&5
17061
17062ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17063 if test $ac_mid -le $ac_hi; then
17064 ac_lo= ac_hi=
17065 break
17066 fi
17067 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17068fi
ac1cb8d3 17069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17070 done
17071else
17072 echo "$as_me: failed program was:" >&5
17073sed 's/^/| /' conftest.$ac_ext >&5
17074
17075ac_lo= ac_hi=
17076fi
ac1cb8d3 17077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17078fi
ac1cb8d3 17079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17080# Binary search between lo and hi bounds.
17081while test "x$ac_lo" != "x$ac_hi"; do
17082 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17083 cat >conftest.$ac_ext <<_ACEOF
17084/* confdefs.h. */
17085_ACEOF
17086cat confdefs.h >>conftest.$ac_ext
17087cat >>conftest.$ac_ext <<_ACEOF
17088/* end confdefs.h. */
17089$ac_includes_default
17090int
17091main ()
17092{
17093static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17094test_array [0] = 0
17095
17096 ;
17097 return 0;
17098}
17099_ACEOF
17100rm -f conftest.$ac_objext
17101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17102 (eval $ac_compile) 2>conftest.er1
a848cd7e 17103 ac_status=$?
ac1cb8d3
VS
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
a848cd7e
SC
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } &&
7714864e 17109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17111 (eval $ac_try) 2>&5
17112 ac_status=$?
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); }; } &&
17115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; }; then
17121 ac_hi=$ac_mid
17122else
17123 echo "$as_me: failed program was:" >&5
17124sed 's/^/| /' conftest.$ac_ext >&5
17125
17126ac_lo=`expr '(' $ac_mid ')' + 1`
17127fi
ac1cb8d3 17128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17129done
17130case $ac_lo in
17131?*) ac_cv_sizeof_long_long=$ac_lo;;
17132'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17133See \`config.log' for more details." >&5
17134echo "$as_me: error: cannot compute sizeof (long long), 77
17135See \`config.log' for more details." >&2;}
17136 { (exit 1); exit 1; }; } ;;
17137esac
17138else
17139 if test "$cross_compiling" = yes; then
7714864e
RL
17140 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17141echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17142 { (exit 1); exit 1; }; }
17143else
17144 cat >conftest.$ac_ext <<_ACEOF
17145/* confdefs.h. */
17146_ACEOF
17147cat confdefs.h >>conftest.$ac_ext
17148cat >>conftest.$ac_ext <<_ACEOF
17149/* end confdefs.h. */
17150$ac_includes_default
17151long longval () { return (long) (sizeof (long long)); }
17152unsigned long ulongval () { return (long) (sizeof (long long)); }
17153#include <stdio.h>
17154#include <stdlib.h>
17155int
17156main ()
17157{
17158
17159 FILE *f = fopen ("conftest.val", "w");
17160 if (! f)
17161 exit (1);
17162 if (((long) (sizeof (long long))) < 0)
17163 {
17164 long i = longval ();
17165 if (i != ((long) (sizeof (long long))))
17166 exit (1);
17167 fprintf (f, "%ld\n", i);
17168 }
17169 else
17170 {
17171 unsigned long i = ulongval ();
17172 if (i != ((long) (sizeof (long long))))
17173 exit (1);
17174 fprintf (f, "%lu\n", i);
17175 }
17176 exit (ferror (f) || fclose (f) != 0);
17177
17178 ;
17179 return 0;
17180}
17181_ACEOF
17182rm -f conftest$ac_exeext
17183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17184 (eval $ac_link) 2>&5
17185 ac_status=$?
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; }; then
17193 ac_cv_sizeof_long_long=`cat conftest.val`
17194else
17195 echo "$as_me: program exited with status $ac_status" >&5
17196echo "$as_me: failed program was:" >&5
17197sed 's/^/| /' conftest.$ac_ext >&5
17198
17199( exit $ac_status )
17200{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17201See \`config.log' for more details." >&5
17202echo "$as_me: error: cannot compute sizeof (long long), 77
17203See \`config.log' for more details." >&2;}
17204 { (exit 1); exit 1; }; }
17205fi
ac1cb8d3 17206rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17207fi
17208fi
17209rm -f conftest.val
17210else
17211 ac_cv_sizeof_long_long=0
17212fi
17213fi
17214echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17215echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17216cat >>confdefs.h <<_ACEOF
17217#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17218_ACEOF
17219
17220
17221 ;;
17222 *-hp-hpux* )
17223 echo "$as_me:$LINENO: checking for long long" >&5
17224echo $ECHO_N "checking for long long... $ECHO_C" >&6
17225if test "${ac_cv_type_long_long+set}" = set; then
17226 echo $ECHO_N "(cached) $ECHO_C" >&6
17227else
17228 cat >conftest.$ac_ext <<_ACEOF
17229/* confdefs.h. */
17230_ACEOF
17231cat confdefs.h >>conftest.$ac_ext
17232cat >>conftest.$ac_ext <<_ACEOF
17233/* end confdefs.h. */
17234$ac_includes_default
17235int
17236main ()
17237{
17238if ((long long *) 0)
17239 return 0;
17240if (sizeof (long long))
17241 return 0;
17242 ;
17243 return 0;
17244}
17245_ACEOF
17246rm -f conftest.$ac_objext
17247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17248 (eval $ac_compile) 2>conftest.er1
a848cd7e 17249 ac_status=$?
ac1cb8d3
VS
17250 grep -v '^ *+' conftest.er1 >conftest.err
17251 rm -f conftest.er1
17252 cat conftest.err >&5
a848cd7e
SC
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); } &&
7714864e 17255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_cv_type_long_long=yes
17268else
17269 echo "$as_me: failed program was:" >&5
17270sed 's/^/| /' conftest.$ac_ext >&5
17271
17272ac_cv_type_long_long=no
17273fi
ac1cb8d3 17274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17275fi
17276echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17277echo "${ECHO_T}$ac_cv_type_long_long" >&6
17278
17279echo "$as_me:$LINENO: checking size of long long" >&5
17280echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17281if test "${ac_cv_sizeof_long_long+set}" = set; then
17282 echo $ECHO_N "(cached) $ECHO_C" >&6
17283else
17284 if test "$ac_cv_type_long_long" = yes; then
17285 # The cast to unsigned long works around a bug in the HP C Compiler
17286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17288 # This bug is HP SR number 8606223364.
17289 if test "$cross_compiling" = yes; then
17290 # Depending upon the size, compute the lo and hi bounds.
17291cat >conftest.$ac_ext <<_ACEOF
17292/* confdefs.h. */
17293_ACEOF
17294cat confdefs.h >>conftest.$ac_ext
17295cat >>conftest.$ac_ext <<_ACEOF
17296/* end confdefs.h. */
17297$ac_includes_default
17298int
17299main ()
17300{
17301static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17302test_array [0] = 0
17303
17304 ;
17305 return 0;
17306}
17307_ACEOF
17308rm -f conftest.$ac_objext
17309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17310 (eval $ac_compile) 2>conftest.er1
a848cd7e 17311 ac_status=$?
ac1cb8d3
VS
17312 grep -v '^ *+' conftest.er1 >conftest.err
17313 rm -f conftest.er1
17314 cat conftest.err >&5
a848cd7e
SC
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
7714864e 17317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17320 ac_status=$?
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; } &&
17323 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; }; then
17329 ac_lo=0 ac_mid=0
17330 while :; do
17331 cat >conftest.$ac_ext <<_ACEOF
17332/* confdefs.h. */
17333_ACEOF
17334cat confdefs.h >>conftest.$ac_ext
17335cat >>conftest.$ac_ext <<_ACEOF
17336/* end confdefs.h. */
17337$ac_includes_default
17338int
17339main ()
17340{
17341static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17342test_array [0] = 0
17343
17344 ;
17345 return 0;
17346}
17347_ACEOF
17348rm -f conftest.$ac_objext
17349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17350 (eval $ac_compile) 2>conftest.er1
a848cd7e 17351 ac_status=$?
ac1cb8d3
VS
17352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
a848cd7e
SC
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
7714864e 17357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359 (eval $ac_try) 2>&5
17360 ac_status=$?
17361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362 (exit $ac_status); }; } &&
17363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17366 ac_status=$?
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17369 ac_hi=$ac_mid; break
17370else
17371 echo "$as_me: failed program was:" >&5
17372sed 's/^/| /' conftest.$ac_ext >&5
17373
17374ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17375 if test $ac_lo -le $ac_mid; then
17376 ac_lo= ac_hi=
17377 break
17378 fi
17379 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17380fi
ac1cb8d3 17381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17382 done
17383else
17384 echo "$as_me: failed program was:" >&5
17385sed 's/^/| /' conftest.$ac_ext >&5
17386
17387cat >conftest.$ac_ext <<_ACEOF
17388/* confdefs.h. */
17389_ACEOF
17390cat confdefs.h >>conftest.$ac_ext
17391cat >>conftest.$ac_ext <<_ACEOF
17392/* end confdefs.h. */
17393$ac_includes_default
17394int
17395main ()
17396{
17397static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17398test_array [0] = 0
17399
17400 ;
17401 return 0;
17402}
17403_ACEOF
17404rm -f conftest.$ac_objext
17405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17406 (eval $ac_compile) 2>conftest.er1
a848cd7e 17407 ac_status=$?
ac1cb8d3
VS
17408 grep -v '^ *+' conftest.er1 >conftest.err
17409 rm -f conftest.er1
17410 cat conftest.err >&5
a848cd7e
SC
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); } &&
7714864e 17413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415 (eval $ac_try) 2>&5
17416 ac_status=$?
17417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418 (exit $ac_status); }; } &&
17419 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17421 (eval $ac_try) 2>&5
17422 ac_status=$?
17423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424 (exit $ac_status); }; }; then
17425 ac_hi=-1 ac_mid=-1
17426 while :; do
17427 cat >conftest.$ac_ext <<_ACEOF
17428/* confdefs.h. */
17429_ACEOF
17430cat confdefs.h >>conftest.$ac_ext
17431cat >>conftest.$ac_ext <<_ACEOF
17432/* end confdefs.h. */
17433$ac_includes_default
17434int
17435main ()
17436{
17437static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17438test_array [0] = 0
17439
17440 ;
17441 return 0;
17442}
17443_ACEOF
17444rm -f conftest.$ac_objext
17445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17446 (eval $ac_compile) 2>conftest.er1
a848cd7e 17447 ac_status=$?
ac1cb8d3
VS
17448 grep -v '^ *+' conftest.er1 >conftest.err
17449 rm -f conftest.er1
17450 cat conftest.err >&5
a848cd7e
SC
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
7714864e 17453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17456 ac_status=$?
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; } &&
17459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17461 (eval $ac_try) 2>&5
17462 ac_status=$?
17463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17464 (exit $ac_status); }; }; then
17465 ac_lo=$ac_mid; break
17466else
17467 echo "$as_me: failed program was:" >&5
17468sed 's/^/| /' conftest.$ac_ext >&5
17469
17470ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17471 if test $ac_mid -le $ac_hi; then
17472 ac_lo= ac_hi=
17473 break
17474 fi
17475 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17476fi
ac1cb8d3 17477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17478 done
17479else
17480 echo "$as_me: failed program was:" >&5
17481sed 's/^/| /' conftest.$ac_ext >&5
17482
17483ac_lo= ac_hi=
17484fi
ac1cb8d3 17485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17486fi
ac1cb8d3 17487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17488# Binary search between lo and hi bounds.
17489while test "x$ac_lo" != "x$ac_hi"; do
17490 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17491 cat >conftest.$ac_ext <<_ACEOF
17492/* confdefs.h. */
17493_ACEOF
17494cat confdefs.h >>conftest.$ac_ext
17495cat >>conftest.$ac_ext <<_ACEOF
17496/* end confdefs.h. */
17497$ac_includes_default
17498int
17499main ()
17500{
17501static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17502test_array [0] = 0
17503
17504 ;
17505 return 0;
17506}
17507_ACEOF
17508rm -f conftest.$ac_objext
17509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17510 (eval $ac_compile) 2>conftest.er1
a848cd7e 17511 ac_status=$?
ac1cb8d3
VS
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
a848cd7e
SC
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } &&
7714864e 17517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; } &&
17523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17525 (eval $ac_try) 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); }; }; then
17529 ac_hi=$ac_mid
17530else
17531 echo "$as_me: failed program was:" >&5
17532sed 's/^/| /' conftest.$ac_ext >&5
17533
17534ac_lo=`expr '(' $ac_mid ')' + 1`
17535fi
ac1cb8d3 17536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17537done
17538case $ac_lo in
17539?*) ac_cv_sizeof_long_long=$ac_lo;;
17540'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17541See \`config.log' for more details." >&5
17542echo "$as_me: error: cannot compute sizeof (long long), 77
17543See \`config.log' for more details." >&2;}
17544 { (exit 1); exit 1; }; } ;;
17545esac
17546else
17547 if test "$cross_compiling" = yes; then
7714864e
RL
17548 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17549echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17550 { (exit 1); exit 1; }; }
17551else
17552 cat >conftest.$ac_ext <<_ACEOF
17553/* confdefs.h. */
17554_ACEOF
17555cat confdefs.h >>conftest.$ac_ext
17556cat >>conftest.$ac_ext <<_ACEOF
17557/* end confdefs.h. */
17558$ac_includes_default
17559long longval () { return (long) (sizeof (long long)); }
17560unsigned long ulongval () { return (long) (sizeof (long long)); }
17561#include <stdio.h>
17562#include <stdlib.h>
17563int
17564main ()
17565{
17566
17567 FILE *f = fopen ("conftest.val", "w");
17568 if (! f)
17569 exit (1);
17570 if (((long) (sizeof (long long))) < 0)
17571 {
17572 long i = longval ();
17573 if (i != ((long) (sizeof (long long))))
17574 exit (1);
17575 fprintf (f, "%ld\n", i);
17576 }
17577 else
17578 {
17579 unsigned long i = ulongval ();
17580 if (i != ((long) (sizeof (long long))))
17581 exit (1);
17582 fprintf (f, "%lu\n", i);
17583 }
17584 exit (ferror (f) || fclose (f) != 0);
17585
17586 ;
17587 return 0;
17588}
17589_ACEOF
17590rm -f conftest$ac_exeext
17591if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17592 (eval $ac_link) 2>&5
17593 ac_status=$?
17594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; }; then
17601 ac_cv_sizeof_long_long=`cat conftest.val`
17602else
17603 echo "$as_me: program exited with status $ac_status" >&5
17604echo "$as_me: failed program was:" >&5
17605sed 's/^/| /' conftest.$ac_ext >&5
17606
17607( exit $ac_status )
17608{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17609See \`config.log' for more details." >&5
17610echo "$as_me: error: cannot compute sizeof (long long), 77
17611See \`config.log' for more details." >&2;}
17612 { (exit 1); exit 1; }; }
17613fi
ac1cb8d3 17614rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17615fi
17616fi
17617rm -f conftest.val
17618else
17619 ac_cv_sizeof_long_long=0
17620fi
17621fi
17622echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17623echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17624cat >>confdefs.h <<_ACEOF
17625#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17626_ACEOF
17627
17628
17629 if test "$ac_cv_sizeof_long_long" != "0"; then
17630 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17631 fi
17632 ;;
17633 * )
17634 echo "$as_me:$LINENO: checking for long long" >&5
17635echo $ECHO_N "checking for long long... $ECHO_C" >&6
17636if test "${ac_cv_type_long_long+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17638else
17639 cat >conftest.$ac_ext <<_ACEOF
17640/* confdefs.h. */
17641_ACEOF
17642cat confdefs.h >>conftest.$ac_ext
17643cat >>conftest.$ac_ext <<_ACEOF
17644/* end confdefs.h. */
17645$ac_includes_default
17646int
17647main ()
17648{
17649if ((long long *) 0)
17650 return 0;
17651if (sizeof (long long))
17652 return 0;
17653 ;
17654 return 0;
17655}
17656_ACEOF
17657rm -f conftest.$ac_objext
17658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17659 (eval $ac_compile) 2>conftest.er1
a848cd7e 17660 ac_status=$?
ac1cb8d3
VS
17661 grep -v '^ *+' conftest.er1 >conftest.err
17662 rm -f conftest.er1
17663 cat conftest.err >&5
a848cd7e
SC
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); } &&
7714864e 17666 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17678 ac_cv_type_long_long=yes
17679else
17680 echo "$as_me: failed program was:" >&5
17681sed 's/^/| /' conftest.$ac_ext >&5
17682
17683ac_cv_type_long_long=no
17684fi
ac1cb8d3 17685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17686fi
17687echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17688echo "${ECHO_T}$ac_cv_type_long_long" >&6
17689
17690echo "$as_me:$LINENO: checking size of long long" >&5
17691echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17692if test "${ac_cv_sizeof_long_long+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17694else
17695 if test "$ac_cv_type_long_long" = yes; then
17696 # The cast to unsigned long works around a bug in the HP C Compiler
17697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17699 # This bug is HP SR number 8606223364.
17700 if test "$cross_compiling" = yes; then
17701 # Depending upon the size, compute the lo and hi bounds.
17702cat >conftest.$ac_ext <<_ACEOF
17703/* confdefs.h. */
17704_ACEOF
17705cat confdefs.h >>conftest.$ac_ext
17706cat >>conftest.$ac_ext <<_ACEOF
17707/* end confdefs.h. */
17708$ac_includes_default
17709int
17710main ()
17711{
17712static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17713test_array [0] = 0
17714
17715 ;
17716 return 0;
17717}
17718_ACEOF
17719rm -f conftest.$ac_objext
17720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17721 (eval $ac_compile) 2>conftest.er1
a848cd7e 17722 ac_status=$?
ac1cb8d3
VS
17723 grep -v '^ *+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
a848cd7e
SC
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
7714864e 17728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17730 (eval $ac_try) 2>&5
17731 ac_status=$?
17732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17733 (exit $ac_status); }; } &&
17734 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17736 (eval $ac_try) 2>&5
17737 ac_status=$?
17738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17739 (exit $ac_status); }; }; then
17740 ac_lo=0 ac_mid=0
17741 while :; do
17742 cat >conftest.$ac_ext <<_ACEOF
17743/* confdefs.h. */
17744_ACEOF
17745cat confdefs.h >>conftest.$ac_ext
17746cat >>conftest.$ac_ext <<_ACEOF
17747/* end confdefs.h. */
17748$ac_includes_default
17749int
17750main ()
17751{
17752static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17753test_array [0] = 0
17754
17755 ;
17756 return 0;
17757}
17758_ACEOF
17759rm -f conftest.$ac_objext
17760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17761 (eval $ac_compile) 2>conftest.er1
a848cd7e 17762 ac_status=$?
ac1cb8d3
VS
17763 grep -v '^ *+' conftest.er1 >conftest.err
17764 rm -f conftest.er1
17765 cat conftest.err >&5
a848cd7e
SC
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } &&
7714864e 17768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17770 (eval $ac_try) 2>&5
17771 ac_status=$?
17772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773 (exit $ac_status); }; } &&
17774 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17776 (eval $ac_try) 2>&5
17777 ac_status=$?
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 (exit $ac_status); }; }; then
17780 ac_hi=$ac_mid; break
17781else
17782 echo "$as_me: failed program was:" >&5
17783sed 's/^/| /' conftest.$ac_ext >&5
17784
17785ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17786 if test $ac_lo -le $ac_mid; then
17787 ac_lo= ac_hi=
17788 break
17789 fi
17790 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17791fi
ac1cb8d3 17792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17793 done
17794else
17795 echo "$as_me: failed program was:" >&5
17796sed 's/^/| /' conftest.$ac_ext >&5
17797
17798cat >conftest.$ac_ext <<_ACEOF
17799/* confdefs.h. */
17800_ACEOF
17801cat confdefs.h >>conftest.$ac_ext
17802cat >>conftest.$ac_ext <<_ACEOF
17803/* end confdefs.h. */
17804$ac_includes_default
17805int
17806main ()
17807{
17808static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17809test_array [0] = 0
17810
17811 ;
17812 return 0;
17813}
17814_ACEOF
17815rm -f conftest.$ac_objext
17816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17817 (eval $ac_compile) 2>conftest.er1
a848cd7e 17818 ac_status=$?
ac1cb8d3
VS
17819 grep -v '^ *+' conftest.er1 >conftest.err
17820 rm -f conftest.er1
17821 cat conftest.err >&5
a848cd7e
SC
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
7714864e 17824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17827 ac_status=$?
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17833 ac_status=$?
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 ac_hi=-1 ac_mid=-1
17837 while :; do
17838 cat >conftest.$ac_ext <<_ACEOF
17839/* confdefs.h. */
17840_ACEOF
17841cat confdefs.h >>conftest.$ac_ext
17842cat >>conftest.$ac_ext <<_ACEOF
17843/* end confdefs.h. */
17844$ac_includes_default
17845int
17846main ()
17847{
17848static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17849test_array [0] = 0
17850
17851 ;
17852 return 0;
17853}
17854_ACEOF
17855rm -f conftest.$ac_objext
17856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17857 (eval $ac_compile) 2>conftest.er1
a848cd7e 17858 ac_status=$?
ac1cb8d3
VS
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
a848cd7e
SC
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } &&
7714864e 17864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17866 (eval $ac_try) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); }; } &&
17870 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17872 (eval $ac_try) 2>&5
17873 ac_status=$?
17874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875 (exit $ac_status); }; }; then
17876 ac_lo=$ac_mid; break
17877else
17878 echo "$as_me: failed program was:" >&5
17879sed 's/^/| /' conftest.$ac_ext >&5
17880
17881ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17882 if test $ac_mid -le $ac_hi; then
17883 ac_lo= ac_hi=
17884 break
17885 fi
17886 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17887fi
ac1cb8d3 17888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17889 done
17890else
17891 echo "$as_me: failed program was:" >&5
17892sed 's/^/| /' conftest.$ac_ext >&5
17893
17894ac_lo= ac_hi=
17895fi
ac1cb8d3 17896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17897fi
ac1cb8d3 17898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17899# Binary search between lo and hi bounds.
17900while test "x$ac_lo" != "x$ac_hi"; do
17901 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17902 cat >conftest.$ac_ext <<_ACEOF
17903/* confdefs.h. */
17904_ACEOF
17905cat confdefs.h >>conftest.$ac_ext
17906cat >>conftest.$ac_ext <<_ACEOF
17907/* end confdefs.h. */
17908$ac_includes_default
17909int
17910main ()
17911{
17912static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17913test_array [0] = 0
17914
17915 ;
17916 return 0;
17917}
17918_ACEOF
17919rm -f conftest.$ac_objext
17920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17921 (eval $ac_compile) 2>conftest.er1
a848cd7e 17922 ac_status=$?
ac1cb8d3
VS
17923 grep -v '^ *+' conftest.er1 >conftest.err
17924 rm -f conftest.er1
17925 cat conftest.err >&5
a848cd7e
SC
17926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927 (exit $ac_status); } &&
7714864e 17928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_hi=$ac_mid
17941else
17942 echo "$as_me: failed program was:" >&5
17943sed 's/^/| /' conftest.$ac_ext >&5
17944
17945ac_lo=`expr '(' $ac_mid ')' + 1`
17946fi
ac1cb8d3 17947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17948done
17949case $ac_lo in
17950?*) ac_cv_sizeof_long_long=$ac_lo;;
17951'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17952See \`config.log' for more details." >&5
17953echo "$as_me: error: cannot compute sizeof (long long), 77
17954See \`config.log' for more details." >&2;}
17955 { (exit 1); exit 1; }; } ;;
17956esac
17957else
17958 if test "$cross_compiling" = yes; then
7714864e
RL
17959 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17960echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17961 { (exit 1); exit 1; }; }
17962else
17963 cat >conftest.$ac_ext <<_ACEOF
17964/* confdefs.h. */
17965_ACEOF
17966cat confdefs.h >>conftest.$ac_ext
17967cat >>conftest.$ac_ext <<_ACEOF
17968/* end confdefs.h. */
17969$ac_includes_default
17970long longval () { return (long) (sizeof (long long)); }
17971unsigned long ulongval () { return (long) (sizeof (long long)); }
17972#include <stdio.h>
17973#include <stdlib.h>
17974int
17975main ()
17976{
17977
17978 FILE *f = fopen ("conftest.val", "w");
17979 if (! f)
17980 exit (1);
17981 if (((long) (sizeof (long long))) < 0)
17982 {
17983 long i = longval ();
17984 if (i != ((long) (sizeof (long long))))
17985 exit (1);
17986 fprintf (f, "%ld\n", i);
17987 }
17988 else
17989 {
17990 unsigned long i = ulongval ();
17991 if (i != ((long) (sizeof (long long))))
17992 exit (1);
17993 fprintf (f, "%lu\n", i);
17994 }
17995 exit (ferror (f) || fclose (f) != 0);
17996
17997 ;
17998 return 0;
17999}
18000_ACEOF
18001rm -f conftest$ac_exeext
18002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18003 (eval $ac_link) 2>&5
18004 ac_status=$?
18005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; }; then
18012 ac_cv_sizeof_long_long=`cat conftest.val`
18013else
18014 echo "$as_me: program exited with status $ac_status" >&5
18015echo "$as_me: failed program was:" >&5
18016sed 's/^/| /' conftest.$ac_ext >&5
18017
18018( exit $ac_status )
18019{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18020See \`config.log' for more details." >&5
18021echo "$as_me: error: cannot compute sizeof (long long), 77
18022See \`config.log' for more details." >&2;}
18023 { (exit 1); exit 1; }; }
18024fi
ac1cb8d3 18025rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18026fi
18027fi
18028rm -f conftest.val
18029else
18030 ac_cv_sizeof_long_long=0
18031fi
18032fi
18033echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18034echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18035cat >>confdefs.h <<_ACEOF
18036#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18037_ACEOF
18038
18039
18040esac
18041
18042echo "$as_me:$LINENO: checking size of wchar_t" >&5
18043echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18044if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18046else
18047
18048 if test "$cross_compiling" = yes; then
18049
18050 case "${host}" in
18051 *-pc-msdosdjgpp )
18052 wx_cv_sizeof_wchar_t=0
18053 ;;
18054 * )
18055 wx_cv_sizeof_wchar_t=4
18056 ;;
18057 esac
18058
18059
18060else
18061 cat >conftest.$ac_ext <<_ACEOF
18062/* confdefs.h. */
18063_ACEOF
18064cat confdefs.h >>conftest.$ac_ext
18065cat >>conftest.$ac_ext <<_ACEOF
18066/* end confdefs.h. */
18067
18068 /* DJGPP only has fake wchar_t: */
18069 #ifdef __DJGPP__
18070 # error "fake wchar_t"
18071 #endif
18072 #ifdef HAVE_WCHAR_H
18073 # ifdef __CYGWIN__
18074 # include <stddef.h>
18075 # endif
18076 # include <wchar.h>
18077 #endif
18078 #ifdef HAVE_STDLIB_H
18079 # include <stdlib.h>
18080 #endif
18081 #include <stdio.h>
18082 int main()
18083 {
18084 FILE *f=fopen("conftestval", "w");
18085 if (!f) exit(1);
18086 fprintf(f, "%i", sizeof(wchar_t));
18087 exit(0);
18088 }
18089
18090_ACEOF
18091rm -f conftest$ac_exeext
18092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18093 (eval $ac_link) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18098 (eval $ac_try) 2>&5
18099 ac_status=$?
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); }; }; then
18102 wx_cv_sizeof_wchar_t=`cat conftestval`
18103else
18104 echo "$as_me: program exited with status $ac_status" >&5
18105echo "$as_me: failed program was:" >&5
18106sed 's/^/| /' conftest.$ac_ext >&5
18107
18108( exit $ac_status )
18109wx_cv_sizeof_wchar_t=0
18110fi
ac1cb8d3 18111rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18112fi
18113
18114fi
18115echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18116echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18117
18118cat >>confdefs.h <<_ACEOF
18119#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18120_ACEOF
18121
18122
ba3d13e1
VZ
18123echo "$as_me:$LINENO: checking for va_copy" >&5
18124echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18125if test "${wx_cv_func_va_copy+set}" = set; then
18126 echo $ECHO_N "(cached) $ECHO_C" >&6
18127else
18128
18129 cat >conftest.$ac_ext <<_ACEOF
18130
18131 #include <stdarg.h>
18132 void foo(char *f, ...)
18133 {
18134 va_list ap1, ap2;
18135 va_start(ap1, f);
18136 va_copy(ap2, ap1);
18137 va_end(ap2);
18138 va_end(ap1);
18139 }
18140_ACEOF
18141rm -f conftest.$ac_objext conftest$ac_exeext
18142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18143 (eval $ac_link) 2>conftest.er1
18144 ac_status=$?
18145 grep -v '^ *+' conftest.er1 >conftest.err
18146 rm -f conftest.er1
18147 cat conftest.err >&5
18148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); } &&
18150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18152 (eval $ac_try) 2>&5
18153 ac_status=$?
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; } &&
18156 { ac_try='test -s conftest$ac_exeext'
18157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18158 (eval $ac_try) 2>&5
18159 ac_status=$?
18160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; }; then
18162 wx_cv_func_va_copy=yes
18163else
18164 echo "$as_me: failed program was:" >&5
18165sed 's/^/| /' conftest.$ac_ext >&5
18166
18167wx_cv_func_va_copy=no
18168
18169fi
18170rm -f conftest.err conftest.$ac_objext \
18171 conftest$ac_exeext conftest.$ac_ext
18172
18173
18174fi
18175echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18176echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18177
18178if test $wx_cv_func_va_copy = "yes"; then
18179 cat >>confdefs.h <<\_ACEOF
18180#define HAVE_VA_COPY 1
18181_ACEOF
18182
18183else
18184 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18185echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18186if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18188else
18189
18190 if test "$cross_compiling" = yes; then
18191 wx_cv_type_va_list_lvalue=yes
18192
18193else
18194 cat >conftest.$ac_ext <<_ACEOF
18195
18196 #include <stdarg.h>
18197 int foo(char *f, ...)
18198 {
18199 va_list ap1, ap2;
18200 va_start(ap1, f);
18201 ap2 = ap1;
18202 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18203 return 1;
18204 va_end(ap2);
18205 va_end(ap1);
18206 return 0;
18207 }
18208 int main()
18209 {
18210 return foo("hi", 17);
18211 }
18212_ACEOF
18213rm -f conftest$ac_exeext
18214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18215 (eval $ac_link) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220 (eval $ac_try) 2>&5
18221 ac_status=$?
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); }; }; then
18224 wx_cv_type_va_list_lvalue=yes
18225else
18226 echo "$as_me: program exited with status $ac_status" >&5
18227echo "$as_me: failed program was:" >&5
18228sed 's/^/| /' conftest.$ac_ext >&5
18229
18230( exit $ac_status )
18231wx_cv_type_va_list_lvalue=no
18232fi
18233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18234fi
18235
18236
18237fi
18238echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18239echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18240
18241 if test $wx_cv_type_va_list_lvalue != "yes"; then
18242 cat >>confdefs.h <<\_ACEOF
18243#define VA_LIST_IS_ARRAY 1
18244_ACEOF
18245
18246 fi
18247fi
18248
a848cd7e
SC
18249# Check whether --enable-largefile or --disable-largefile was given.
18250if test "${enable_largefile+set}" = set; then
18251 enableval="$enable_largefile"
18252
18253fi;
18254if test "$enable_largefile" != no; then
18255 wx_largefile=no
18256
18257 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18258echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18259if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18261else
18262
18263 cat >conftest.$ac_ext <<_ACEOF
18264/* confdefs.h. */
18265_ACEOF
18266cat confdefs.h >>conftest.$ac_ext
18267cat >>conftest.$ac_ext <<_ACEOF
18268/* end confdefs.h. */
18269#define _FILE_OFFSET_BITS 64
18270 #include <sys/types.h>
18271int
18272main ()
18273{
18274typedef struct {
18275 unsigned int field: sizeof(off_t) == 8;
18276} wxlf;
18277
18278 ;
18279 return 0;
18280}
18281_ACEOF
18282rm -f conftest.$ac_objext
18283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18284 (eval $ac_compile) 2>conftest.er1
a848cd7e 18285 ac_status=$?
ac1cb8d3
VS
18286 grep -v '^ *+' conftest.er1 >conftest.err
18287 rm -f conftest.er1
18288 cat conftest.err >&5
a848cd7e
SC
18289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290 (exit $ac_status); } &&
7714864e 18291 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18293 (eval $ac_try) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); }; } &&
18297 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18299 (eval $ac_try) 2>&5
18300 ac_status=$?
18301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18302 (exit $ac_status); }; }; then
18303 ac_cv_sys_file_offset_bits=64
18304else
18305 echo "$as_me: failed program was:" >&5
18306sed 's/^/| /' conftest.$ac_ext >&5
18307
18308ac_cv_sys_file_offset_bits=no
18309fi
ac1cb8d3 18310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18311
18312
18313fi
18314echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18315echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18316
18317 if test "$ac_cv_sys_file_offset_bits" != no; then
18318 wx_largefile=yes
18319 cat >>confdefs.h <<_ACEOF
18320#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18321_ACEOF
18322
18323 fi
18324
18325 if test "x$wx_largefile" != "xyes"; then
18326
18327 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18328echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18329if test "${ac_cv_sys_large_files+set}" = set; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18331else
18332
18333 cat >conftest.$ac_ext <<_ACEOF
18334/* confdefs.h. */
18335_ACEOF
18336cat confdefs.h >>conftest.$ac_ext
18337cat >>conftest.$ac_ext <<_ACEOF
18338/* end confdefs.h. */
18339#define _LARGE_FILES 1
18340 #include <sys/types.h>
18341int
18342main ()
18343{
18344typedef struct {
18345 unsigned int field: sizeof(off_t) == 8;
18346} wxlf;
18347
18348 ;
18349 return 0;
18350}
18351_ACEOF
18352rm -f conftest.$ac_objext
18353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18354 (eval $ac_compile) 2>conftest.er1
a848cd7e 18355 ac_status=$?
ac1cb8d3
VS
18356 grep -v '^ *+' conftest.er1 >conftest.err
18357 rm -f conftest.er1
18358 cat conftest.err >&5
a848cd7e
SC
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
7714864e 18361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 ac_cv_sys_large_files=1
18374else
18375 echo "$as_me: failed program was:" >&5
18376sed 's/^/| /' conftest.$ac_ext >&5
18377
18378ac_cv_sys_large_files=no
18379fi
ac1cb8d3 18380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18381
18382
18383fi
18384echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18385echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18386
18387 if test "$ac_cv_sys_large_files" != no; then
18388 wx_largefile=yes
18389 cat >>confdefs.h <<_ACEOF
18390#define _LARGE_FILES $ac_cv_sys_large_files
18391_ACEOF
18392
18393 fi
18394
18395 fi
18396
18397 echo "$as_me:$LINENO: checking if large file support is available" >&5
18398echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18399 if test "x$wx_largefile" = "xyes"; then
18400 cat >>confdefs.h <<\_ACEOF
18401#define HAVE_LARGEFILE_SUPPORT 1
18402_ACEOF
18403
18404 fi
18405 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18406echo "${ECHO_T}$wx_largefile" >&6
18407fi
18408
18409
18410if test "x$wx_largefile" = "xyes"; then
18411 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18412 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18413 else
18414 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18415 fi
18416 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18417fi
18418
18419echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18420echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18421if test "${ac_cv_c_bigendian+set}" = set; then
18422 echo $ECHO_N "(cached) $ECHO_C" >&6
18423else
18424 ac_cv_c_bigendian=unknown
18425# See if sys/param.h defines the BYTE_ORDER macro.
18426cat >conftest.$ac_ext <<_ACEOF
18427/* confdefs.h. */
18428_ACEOF
18429cat confdefs.h >>conftest.$ac_ext
18430cat >>conftest.$ac_ext <<_ACEOF
18431/* end confdefs.h. */
18432#include <sys/types.h>
18433#include <sys/param.h>
18434int
18435main ()
18436{
18437
18438#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18439 bogus endian macros
18440#endif
18441 ;
18442 return 0;
18443}
18444_ACEOF
18445rm -f conftest.$ac_objext
18446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18447 (eval $ac_compile) 2>conftest.er1
a848cd7e 18448 ac_status=$?
ac1cb8d3
VS
18449 grep -v '^ *+' conftest.er1 >conftest.err
18450 rm -f conftest.er1
18451 cat conftest.err >&5
a848cd7e
SC
18452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453 (exit $ac_status); } &&
7714864e 18454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18456 (eval $ac_try) 2>&5
18457 ac_status=$?
18458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18459 (exit $ac_status); }; } &&
18460 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18462 (eval $ac_try) 2>&5
18463 ac_status=$?
18464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465 (exit $ac_status); }; }; then
18466 # It does; now see whether it defined to BIG_ENDIAN or not.
18467cat >conftest.$ac_ext <<_ACEOF
18468/* confdefs.h. */
18469_ACEOF
18470cat confdefs.h >>conftest.$ac_ext
18471cat >>conftest.$ac_ext <<_ACEOF
18472/* end confdefs.h. */
18473#include <sys/types.h>
18474#include <sys/param.h>
18475int
18476main ()
18477{
18478
18479#if BYTE_ORDER != BIG_ENDIAN
18480 not big endian
18481#endif
18482 ;
18483 return 0;
18484}
18485_ACEOF
18486rm -f conftest.$ac_objext
18487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18488 (eval $ac_compile) 2>conftest.er1
a848cd7e 18489 ac_status=$?
ac1cb8d3
VS
18490 grep -v '^ *+' conftest.er1 >conftest.err
18491 rm -f conftest.er1
18492 cat conftest.err >&5
a848cd7e
SC
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); } &&
7714864e 18495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; } &&
18501 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18503 (eval $ac_try) 2>&5
18504 ac_status=$?
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
18507 ac_cv_c_bigendian=yes
18508else
18509 echo "$as_me: failed program was:" >&5
18510sed 's/^/| /' conftest.$ac_ext >&5
18511
18512ac_cv_c_bigendian=no
18513fi
ac1cb8d3 18514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18515else
18516 echo "$as_me: failed program was:" >&5
18517sed 's/^/| /' conftest.$ac_ext >&5
18518
18519fi
ac1cb8d3 18520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18521if test $ac_cv_c_bigendian = unknown; then
18522if test "$cross_compiling" = yes; then
18523 ac_cv_c_bigendian=unknown
18524else
18525 cat >conftest.$ac_ext <<_ACEOF
18526/* confdefs.h. */
18527_ACEOF
18528cat confdefs.h >>conftest.$ac_ext
18529cat >>conftest.$ac_ext <<_ACEOF
18530/* end confdefs.h. */
18531main () {
18532 /* Are we little or big endian? From Harbison&Steele. */
18533 union
18534 {
18535 long l;
18536 char c[sizeof (long)];
18537 } u;
18538 u.l = 1;
18539 exit (u.c[sizeof (long) - 1] == 1);
18540}
18541_ACEOF
18542rm -f conftest$ac_exeext
18543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>&5
18545 ac_status=$?
18546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18549 (eval $ac_try) 2>&5
18550 ac_status=$?
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); }; }; then
18553 ac_cv_c_bigendian=no
18554else
18555 echo "$as_me: program exited with status $ac_status" >&5
18556echo "$as_me: failed program was:" >&5
18557sed 's/^/| /' conftest.$ac_ext >&5
18558
18559( exit $ac_status )
18560ac_cv_c_bigendian=yes
18561fi
ac1cb8d3 18562rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18563fi
18564fi
18565fi
18566echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18567echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18568if test $ac_cv_c_bigendian = unknown; then
18569 { 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
18570echo "$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;}
18571fi
18572if test $ac_cv_c_bigendian = yes; then
18573 cat >>confdefs.h <<\_ACEOF
18574#define WORDS_BIGENDIAN 1
18575_ACEOF
18576
18577fi
18578
18579
18580ac_ext=cc
18581ac_cpp='$CXXCPP $CPPFLAGS'
18582ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18583ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18584ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18585echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18586echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18587if test -z "$CXXCPP"; then
18588 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18589 echo $ECHO_N "(cached) $ECHO_C" >&6
18590else
18591 # Double quotes because CXXCPP needs to be expanded
18592 for CXXCPP in "$CXX -E" "/lib/cpp"
18593 do
18594 ac_preproc_ok=false
18595for ac_cxx_preproc_warn_flag in '' yes
18596do
18597 # Use a header file that comes with gcc, so configuring glibc
18598 # with a fresh cross-compiler works.
18599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18600 # <limits.h> exists even on freestanding compilers.
18601 # On the NeXT, cc -E runs the code through the compiler's parser,
18602 # not just through cpp. "Syntax error" is here to catch this case.
18603 cat >conftest.$ac_ext <<_ACEOF
18604/* confdefs.h. */
18605_ACEOF
18606cat confdefs.h >>conftest.$ac_ext
18607cat >>conftest.$ac_ext <<_ACEOF
18608/* end confdefs.h. */
18609#ifdef __STDC__
18610# include <limits.h>
18611#else
18612# include <assert.h>
18613#endif
ac1cb8d3 18614 Syntax error
a848cd7e
SC
18615_ACEOF
18616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18618 ac_status=$?
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } >/dev/null; then
18624 if test -s conftest.err; then
18625 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18626 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18627 else
18628 ac_cpp_err=
18629 fi
18630else
18631 ac_cpp_err=yes
18632fi
18633if test -z "$ac_cpp_err"; then
18634 :
18635else
18636 echo "$as_me: failed program was:" >&5
18637sed 's/^/| /' conftest.$ac_ext >&5
18638
18639 # Broken: fails on valid input.
18640continue
18641fi
18642rm -f conftest.err conftest.$ac_ext
18643
18644 # OK, works on sane cases. Now check whether non-existent headers
18645 # can be detected and how.
18646 cat >conftest.$ac_ext <<_ACEOF
18647/* confdefs.h. */
18648_ACEOF
18649cat confdefs.h >>conftest.$ac_ext
18650cat >>conftest.$ac_ext <<_ACEOF
18651/* end confdefs.h. */
18652#include <ac_nonexistent.h>
18653_ACEOF
18654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18656 ac_status=$?
18657 grep -v '^ *+' conftest.er1 >conftest.err
18658 rm -f conftest.er1
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18661 (exit $ac_status); } >/dev/null; then
18662 if test -s conftest.err; then
18663 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18664 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18665 else
18666 ac_cpp_err=
18667 fi
18668else
18669 ac_cpp_err=yes
18670fi
18671if test -z "$ac_cpp_err"; then
18672 # Broken: success on invalid input.
18673continue
18674else
18675 echo "$as_me: failed program was:" >&5
18676sed 's/^/| /' conftest.$ac_ext >&5
18677
18678 # Passes both tests.
18679ac_preproc_ok=:
18680break
18681fi
18682rm -f conftest.err conftest.$ac_ext
18683
18684done
18685# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18686rm -f conftest.err conftest.$ac_ext
18687if $ac_preproc_ok; then
18688 break
18689fi
18690
18691 done
18692 ac_cv_prog_CXXCPP=$CXXCPP
18693
18694fi
18695 CXXCPP=$ac_cv_prog_CXXCPP
18696else
18697 ac_cv_prog_CXXCPP=$CXXCPP
18698fi
18699echo "$as_me:$LINENO: result: $CXXCPP" >&5
18700echo "${ECHO_T}$CXXCPP" >&6
18701ac_preproc_ok=false
18702for ac_cxx_preproc_warn_flag in '' yes
18703do
18704 # Use a header file that comes with gcc, so configuring glibc
18705 # with a fresh cross-compiler works.
18706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18707 # <limits.h> exists even on freestanding compilers.
18708 # On the NeXT, cc -E runs the code through the compiler's parser,
18709 # not just through cpp. "Syntax error" is here to catch this case.
18710 cat >conftest.$ac_ext <<_ACEOF
18711/* confdefs.h. */
18712_ACEOF
18713cat confdefs.h >>conftest.$ac_ext
18714cat >>conftest.$ac_ext <<_ACEOF
18715/* end confdefs.h. */
18716#ifdef __STDC__
18717# include <limits.h>
18718#else
18719# include <assert.h>
18720#endif
ac1cb8d3 18721 Syntax error
a848cd7e
SC
18722_ACEOF
18723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18725 ac_status=$?
18726 grep -v '^ *+' conftest.er1 >conftest.err
18727 rm -f conftest.er1
18728 cat conftest.err >&5
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } >/dev/null; then
18731 if test -s conftest.err; then
18732 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18733 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18734 else
18735 ac_cpp_err=
18736 fi
18737else
18738 ac_cpp_err=yes
18739fi
18740if test -z "$ac_cpp_err"; then
18741 :
18742else
18743 echo "$as_me: failed program was:" >&5
18744sed 's/^/| /' conftest.$ac_ext >&5
18745
18746 # Broken: fails on valid input.
18747continue
18748fi
18749rm -f conftest.err conftest.$ac_ext
18750
18751 # OK, works on sane cases. Now check whether non-existent headers
18752 # can be detected and how.
18753 cat >conftest.$ac_ext <<_ACEOF
18754/* confdefs.h. */
18755_ACEOF
18756cat confdefs.h >>conftest.$ac_ext
18757cat >>conftest.$ac_ext <<_ACEOF
18758/* end confdefs.h. */
18759#include <ac_nonexistent.h>
18760_ACEOF
18761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18763 ac_status=$?
18764 grep -v '^ *+' conftest.er1 >conftest.err
18765 rm -f conftest.er1
18766 cat conftest.err >&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); } >/dev/null; then
18769 if test -s conftest.err; then
18770 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18771 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18772 else
18773 ac_cpp_err=
18774 fi
18775else
18776 ac_cpp_err=yes
18777fi
18778if test -z "$ac_cpp_err"; then
18779 # Broken: success on invalid input.
18780continue
18781else
18782 echo "$as_me: failed program was:" >&5
18783sed 's/^/| /' conftest.$ac_ext >&5
18784
18785 # Passes both tests.
18786ac_preproc_ok=:
18787break
18788fi
18789rm -f conftest.err conftest.$ac_ext
18790
18791done
18792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18793rm -f conftest.err conftest.$ac_ext
18794if $ac_preproc_ok; then
18795 :
18796else
18797 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18798See \`config.log' for more details." >&5
18799echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18800See \`config.log' for more details." >&2;}
18801 { (exit 1); exit 1; }; }
18802fi
18803
18804ac_ext=cc
18805ac_cpp='$CXXCPP $CPPFLAGS'
18806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18809
18810
18811
18812
18813
18814 ac_ext=cc
18815ac_cpp='$CXXCPP $CPPFLAGS'
18816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18819
18820
18821
18822for ac_header in iostream
18823do
18824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18825if eval "test \"\${$as_ac_Header+set}\" = set"; then
18826 echo "$as_me:$LINENO: checking for $ac_header" >&5
18827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18828if eval "test \"\${$as_ac_Header+set}\" = set"; then
18829 echo $ECHO_N "(cached) $ECHO_C" >&6
18830fi
18831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18833else
18834 # Is the header compilable?
18835echo "$as_me:$LINENO: checking $ac_header usability" >&5
18836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18837cat >conftest.$ac_ext <<_ACEOF
18838/* confdefs.h. */
18839_ACEOF
18840cat confdefs.h >>conftest.$ac_ext
18841cat >>conftest.$ac_ext <<_ACEOF
18842/* end confdefs.h. */
18843$ac_includes_default
18844#include <$ac_header>
18845_ACEOF
18846rm -f conftest.$ac_objext
18847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18848 (eval $ac_compile) 2>conftest.er1
a848cd7e 18849 ac_status=$?
ac1cb8d3
VS
18850 grep -v '^ *+' conftest.er1 >conftest.err
18851 rm -f conftest.er1
18852 cat conftest.err >&5
a848cd7e
SC
18853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854 (exit $ac_status); } &&
7714864e 18855 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18857 (eval $ac_try) 2>&5
18858 ac_status=$?
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); }; } &&
18861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; }; then
18867 ac_header_compiler=yes
18868else
18869 echo "$as_me: failed program was:" >&5
18870sed 's/^/| /' conftest.$ac_ext >&5
18871
18872ac_header_compiler=no
18873fi
ac1cb8d3 18874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18876echo "${ECHO_T}$ac_header_compiler" >&6
18877
18878# Is the header present?
18879echo "$as_me:$LINENO: checking $ac_header presence" >&5
18880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18881cat >conftest.$ac_ext <<_ACEOF
18882/* confdefs.h. */
18883_ACEOF
18884cat confdefs.h >>conftest.$ac_ext
18885cat >>conftest.$ac_ext <<_ACEOF
18886/* end confdefs.h. */
18887#include <$ac_header>
18888_ACEOF
18889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18891 ac_status=$?
18892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } >/dev/null; then
18897 if test -s conftest.err; then
18898 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18899 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18900 else
18901 ac_cpp_err=
18902 fi
18903else
18904 ac_cpp_err=yes
18905fi
18906if test -z "$ac_cpp_err"; then
18907 ac_header_preproc=yes
18908else
18909 echo "$as_me: failed program was:" >&5
18910sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 ac_header_preproc=no
18913fi
18914rm -f conftest.err conftest.$ac_ext
18915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18916echo "${ECHO_T}$ac_header_preproc" >&6
18917
18918# So? What about this header?
ac1cb8d3
VS
18919case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18920 yes:no: )
a848cd7e
SC
18921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18925 ac_header_preproc=yes
a848cd7e 18926 ;;
ac1cb8d3 18927 no:yes:* )
a848cd7e
SC
18928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18935echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18940 (
18941 cat <<\_ASBOX
ac1cb8d3
VS
18942## ----------------------------------------- ##
18943## Report this to wx-dev@lists.wxwidgets.org ##
18944## ----------------------------------------- ##
a848cd7e
SC
18945_ASBOX
18946 ) |
18947 sed "s/^/$as_me: WARNING: /" >&2
18948 ;;
18949esac
18950echo "$as_me:$LINENO: checking for $ac_header" >&5
18951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18952if eval "test \"\${$as_ac_Header+set}\" = set"; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18954else
ac1cb8d3 18955 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18956fi
18957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18959
18960fi
18961if test `eval echo '${'$as_ac_Header'}'` = yes; then
18962 cat >>confdefs.h <<_ACEOF
18963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18964_ACEOF
18965
18966fi
18967
18968done
18969
18970
18971 if test "$ac_cv_header_iostream" = "yes" ; then
18972 :
18973 else
18974 cat >>confdefs.h <<\_ACEOF
18975#define wxUSE_IOSTREAMH 1
18976_ACEOF
18977
18978 fi
18979
18980 ac_ext=c
18981ac_cpp='$CPP $CPPFLAGS'
18982ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18983ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18984ac_compiler_gnu=$ac_cv_c_compiler_gnu
18985
18986
18987
18988
18989 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18990echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18991if test "${wx_cv_cpp_bool+set}" = set; then
18992 echo $ECHO_N "(cached) $ECHO_C" >&6
18993else
18994
18995
18996
18997 ac_ext=cc
18998ac_cpp='$CXXCPP $CPPFLAGS'
18999ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19000ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19001ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19002
19003
19004 cat >conftest.$ac_ext <<_ACEOF
19005/* confdefs.h. */
19006_ACEOF
19007cat confdefs.h >>conftest.$ac_ext
19008cat >>conftest.$ac_ext <<_ACEOF
19009/* end confdefs.h. */
19010
19011
19012int
19013main ()
19014{
19015
19016 bool b = true;
19017
19018 return 0;
19019
19020 ;
19021 return 0;
19022}
19023_ACEOF
19024rm -f conftest.$ac_objext
19025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19026 (eval $ac_compile) 2>conftest.er1
a848cd7e 19027 ac_status=$?
ac1cb8d3
VS
19028 grep -v '^ *+' conftest.er1 >conftest.err
19029 rm -f conftest.er1
19030 cat conftest.err >&5
a848cd7e
SC
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); } &&
7714864e 19033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; } &&
19039 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041 (eval $ac_try) 2>&5
19042 ac_status=$?
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); }; }; then
19045
19046 wx_cv_cpp_bool=yes
19047
19048else
19049 echo "$as_me: failed program was:" >&5
19050sed 's/^/| /' conftest.$ac_ext >&5
19051
19052
19053 wx_cv_cpp_bool=no
19054
19055
19056fi
ac1cb8d3 19057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19058
19059 ac_ext=c
19060ac_cpp='$CPP $CPPFLAGS'
19061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19063ac_compiler_gnu=$ac_cv_c_compiler_gnu
19064
19065
19066fi
19067echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19068echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19069
19070 if test "$wx_cv_cpp_bool" = "yes"; then
19071 cat >>confdefs.h <<\_ACEOF
19072#define HAVE_BOOL 1
19073_ACEOF
19074
19075 fi
19076
19077
19078
19079 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19080echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19081if test "${wx_cv_explicit+set}" = set; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19083else
19084
19085
19086
19087 ac_ext=cc
19088ac_cpp='$CXXCPP $CPPFLAGS'
19089ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19090ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19091ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19092
19093
19094 cat >conftest.$ac_ext <<_ACEOF
19095/* confdefs.h. */
19096_ACEOF
19097cat confdefs.h >>conftest.$ac_ext
19098cat >>conftest.$ac_ext <<_ACEOF
19099/* end confdefs.h. */
19100
19101 class Foo { public: explicit Foo(int) {} };
19102
19103int
19104main ()
19105{
19106
19107 return 0;
19108
19109 ;
19110 return 0;
19111}
19112_ACEOF
19113rm -f conftest.$ac_objext
19114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19115 (eval $ac_compile) 2>conftest.er1
a848cd7e 19116 ac_status=$?
ac1cb8d3
VS
19117 grep -v '^ *+' conftest.er1 >conftest.err
19118 rm -f conftest.er1
19119 cat conftest.err >&5
a848cd7e
SC
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } &&
7714864e 19122 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; } &&
19128 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; }; then
19134
19135 cat >conftest.$ac_ext <<_ACEOF
19136/* confdefs.h. */
19137_ACEOF
19138cat confdefs.h >>conftest.$ac_ext
19139cat >>conftest.$ac_ext <<_ACEOF
19140/* end confdefs.h. */
19141
19142 class Foo { public: explicit Foo(int) {} };
19143 static void TakeFoo(const Foo& foo) { }
19144
19145int
19146main ()
19147{
19148
19149 TakeFoo(17);
19150 return 0;
19151
19152 ;
19153 return 0;
19154}
19155_ACEOF
19156rm -f conftest.$ac_objext
19157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19158 (eval $ac_compile) 2>conftest.er1
a848cd7e 19159 ac_status=$?
ac1cb8d3
VS
19160 grep -v '^ *+' conftest.er1 >conftest.err
19161 rm -f conftest.er1
19162 cat conftest.err >&5
a848cd7e
SC
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); } &&
7714864e 19165 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19168 ac_status=$?
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; } &&
19171 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19173 (eval $ac_try) 2>&5
19174 ac_status=$?
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; }; then
19177 wx_cv_explicit=no
19178else
19179 echo "$as_me: failed program was:" >&5
19180sed 's/^/| /' conftest.$ac_ext >&5
19181
19182wx_cv_explicit=yes
19183
19184fi
ac1cb8d3 19185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19186
19187else
19188 echo "$as_me: failed program was:" >&5
19189sed 's/^/| /' conftest.$ac_ext >&5
19190
19191wx_cv_explicit=no
19192
19193fi
ac1cb8d3 19194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19195
19196 ac_ext=c
19197ac_cpp='$CPP $CPPFLAGS'
19198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19200ac_compiler_gnu=$ac_cv_c_compiler_gnu
19201
19202
19203fi
19204echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19205echo "${ECHO_T}$wx_cv_explicit" >&6
19206
19207 if test "$wx_cv_explicit" = "yes"; then
19208 cat >>confdefs.h <<\_ACEOF
19209#define HAVE_EXPLICIT 1
19210_ACEOF
19211
19212 fi
19213
19214
19215echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19216echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19217if test "${ac_cv_cxx_const_cast+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6
19219else
19220
19221
19222 ac_ext=cc
19223ac_cpp='$CXXCPP $CPPFLAGS'
19224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19227
19228 cat >conftest.$ac_ext <<_ACEOF
19229/* confdefs.h. */
19230_ACEOF
19231cat confdefs.h >>conftest.$ac_ext
19232cat >>conftest.$ac_ext <<_ACEOF
19233/* end confdefs.h. */
19234
19235int
19236main ()
19237{
19238int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19239 ;
19240 return 0;
19241}
19242_ACEOF
19243rm -f conftest.$ac_objext
19244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19245 (eval $ac_compile) 2>conftest.er1
a848cd7e 19246 ac_status=$?
ac1cb8d3
VS
19247 grep -v '^ *+' conftest.er1 >conftest.err
19248 rm -f conftest.er1
19249 cat conftest.err >&5
a848cd7e
SC
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } &&
7714864e 19252 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19254 (eval $ac_try) 2>&5
19255 ac_status=$?
19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257 (exit $ac_status); }; } &&
19258 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19260 (eval $ac_try) 2>&5
19261 ac_status=$?
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; }; then
19264 ac_cv_cxx_const_cast=yes
19265else
19266 echo "$as_me: failed program was:" >&5
19267sed 's/^/| /' conftest.$ac_ext >&5
19268
19269ac_cv_cxx_const_cast=no
19270fi
ac1cb8d3 19271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19272 ac_ext=c
19273ac_cpp='$CPP $CPPFLAGS'
19274ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19275ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19276ac_compiler_gnu=$ac_cv_c_compiler_gnu
19277
19278
19279fi
19280echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19281echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19282if test "$ac_cv_cxx_const_cast" = yes; then
19283
19284cat >>confdefs.h <<\_ACEOF
19285#define HAVE_CONST_CAST
19286_ACEOF
19287
19288fi
19289
7714864e
RL
19290echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19291echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19292if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19294else
19295
19296
19297 ac_ext=cc
19298ac_cpp='$CXXCPP $CPPFLAGS'
19299ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19300ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19301ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19302
19303 cat >conftest.$ac_ext <<_ACEOF
19304/* confdefs.h. */
19305_ACEOF
19306cat confdefs.h >>conftest.$ac_ext
19307cat >>conftest.$ac_ext <<_ACEOF
19308/* end confdefs.h. */
19309#include <typeinfo>
19310class Base { public : Base () {} virtual void f () = 0;};
19311class Derived : public Base { public : Derived () {} virtual void f () {} };
19312class Unrelated { public : Unrelated () {} };
19313int g (Unrelated&) { return 0; }
19314int
19315main ()
19316{
19317
19318Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19319 ;
19320 return 0;
19321}
19322_ACEOF
19323rm -f conftest.$ac_objext
19324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19325 (eval $ac_compile) 2>conftest.er1
19326 ac_status=$?
19327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
19332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_cv_cxx_reinterpret_cast=yes
19345else
19346 echo "$as_me: failed program was:" >&5
19347sed 's/^/| /' conftest.$ac_ext >&5
19348
19349ac_cv_cxx_reinterpret_cast=no
19350fi
19351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19352 ac_ext=c
19353ac_cpp='$CPP $CPPFLAGS'
19354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19356ac_compiler_gnu=$ac_cv_c_compiler_gnu
19357
19358
19359fi
19360echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19361echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19362if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19363
19364cat >>confdefs.h <<\_ACEOF
19365#define HAVE_REINTERPRET_CAST
19366_ACEOF
19367
19368fi
19369
a848cd7e
SC
19370echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19371echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19372if test "${ac_cv_cxx_static_cast+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
19374else
19375
19376
19377 ac_ext=cc
19378ac_cpp='$CXXCPP $CPPFLAGS'
19379ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19380ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19381ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19382
19383 cat >conftest.$ac_ext <<_ACEOF
19384/* confdefs.h. */
19385_ACEOF
19386cat confdefs.h >>conftest.$ac_ext
19387cat >>conftest.$ac_ext <<_ACEOF
19388/* end confdefs.h. */
19389#include <typeinfo>
19390class Base { public : Base () {} virtual void f () = 0; };
19391class Derived : public Base { public : Derived () {} virtual void f () {} };
19392int g (Derived&) { return 0; }
19393int
19394main ()
19395{
19396
19397Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19398 ;
19399 return 0;
19400}
19401_ACEOF
19402rm -f conftest.$ac_objext
19403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19404 (eval $ac_compile) 2>conftest.er1
a848cd7e 19405 ac_status=$?
ac1cb8d3
VS
19406 grep -v '^ *+' conftest.er1 >conftest.err
19407 rm -f conftest.er1
19408 cat conftest.err >&5
a848cd7e
SC
19409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19410 (exit $ac_status); } &&
7714864e 19411 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19413 (eval $ac_try) 2>&5
19414 ac_status=$?
19415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); }; } &&
19417 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19420 ac_status=$?
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; }; then
19423 ac_cv_cxx_static_cast=yes
19424else
19425 echo "$as_me: failed program was:" >&5
19426sed 's/^/| /' conftest.$ac_ext >&5
19427
19428ac_cv_cxx_static_cast=no
19429fi
ac1cb8d3 19430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19431 ac_ext=c
19432ac_cpp='$CPP $CPPFLAGS'
19433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19435ac_compiler_gnu=$ac_cv_c_compiler_gnu
19436
19437
19438fi
19439echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19440echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19441if test "$ac_cv_cxx_static_cast" = yes; then
19442
19443cat >>confdefs.h <<\_ACEOF
19444#define HAVE_STATIC_CAST
19445_ACEOF
19446
19447fi
19448
19449
19450if test "$wxUSE_STL" = "yes"; then
19451 ac_ext=cc
19452ac_cpp='$CXXCPP $CPPFLAGS'
19453ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19454ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19455ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19456
19457
19458 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19459echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19460 cat >conftest.$ac_ext <<_ACEOF
19461/* confdefs.h. */
19462_ACEOF
19463cat confdefs.h >>conftest.$ac_ext
19464cat >>conftest.$ac_ext <<_ACEOF
19465/* end confdefs.h. */
19466#include <string>
19467 #include <functional>
19468 #include <algorithm>
19469 #include <vector>
19470 #include <list>
19471int
19472main ()
19473{
19474std::vector<int> moo;
19475 std::list<int> foo;
19476 std::vector<int>::iterator it =
19477 std::find_if(moo.begin(), moo.end(),
19478 std::bind2nd(std::less<int>(), 3));
19479 ;
19480 return 0;
19481}
19482_ACEOF
19483rm -f conftest.$ac_objext
19484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19485 (eval $ac_compile) 2>conftest.er1
a848cd7e 19486 ac_status=$?
ac1cb8d3
VS
19487 grep -v '^ *+' conftest.er1 >conftest.err
19488 rm -f conftest.er1
19489 cat conftest.err >&5
a848cd7e
SC
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); } &&
7714864e 19492 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19495 ac_status=$?
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; } &&
19498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504 echo "$as_me:$LINENO: result: yes" >&5
19505echo "${ECHO_T}yes" >&6
19506else
19507 echo "$as_me: failed program was:" >&5
19508sed 's/^/| /' conftest.$ac_ext >&5
19509
19510echo "$as_me:$LINENO: result: no" >&5
19511echo "${ECHO_T}no" >&6
19512 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19513echo "$as_me: error: Basic STL functionality missing" >&2;}
19514 { (exit 1); exit 1; }; }
19515fi
ac1cb8d3 19516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19517
19518 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19519echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19520 cat >conftest.$ac_ext <<_ACEOF
19521/* confdefs.h. */
19522_ACEOF
19523cat confdefs.h >>conftest.$ac_ext
19524cat >>conftest.$ac_ext <<_ACEOF
19525/* end confdefs.h. */
19526#include <string>
19527int
19528main ()
19529{
19530std::wstring foo;
19531 ;
19532 return 0;
19533}
19534_ACEOF
19535rm -f conftest.$ac_objext
19536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19537 (eval $ac_compile) 2>conftest.er1
a848cd7e 19538 ac_status=$?
ac1cb8d3
VS
19539 grep -v '^ *+' conftest.er1 >conftest.err
19540 rm -f conftest.er1
19541 cat conftest.err >&5
a848cd7e
SC
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } &&
7714864e 19544 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19547 ac_status=$?
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; } &&
19550 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19553 ac_status=$?
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; }; then
19556 echo "$as_me:$LINENO: result: yes" >&5
19557echo "${ECHO_T}yes" >&6
19558 cat >>confdefs.h <<\_ACEOF
19559#define HAVE_STD_WSTRING 1
19560_ACEOF
19561
19562else
19563 echo "$as_me: failed program was:" >&5
19564sed 's/^/| /' conftest.$ac_ext >&5
19565
19566echo "$as_me:$LINENO: result: no" >&5
19567echo "${ECHO_T}no" >&6
19568fi
ac1cb8d3 19569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19570
19571 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19572echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19573 cat >conftest.$ac_ext <<_ACEOF
19574/* confdefs.h. */
19575_ACEOF
19576cat confdefs.h >>conftest.$ac_ext
19577cat >>conftest.$ac_ext <<_ACEOF
19578/* end confdefs.h. */
19579#include <string>
19580int
19581main ()
19582{
19583std::string foo, bar;
19584 foo.compare(bar);
19585 foo.compare(1, 1, bar);
19586 foo.compare(1, 1, bar, 1, 1);
19587 foo.compare("");
19588 foo.compare(1, 1, "");
19589 foo.compare(1, 1, "", 2);
19590 ;
19591 return 0;
19592}
19593_ACEOF
19594rm -f conftest.$ac_objext
19595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19596 (eval $ac_compile) 2>conftest.er1
a848cd7e 19597 ac_status=$?
ac1cb8d3
VS
19598 grep -v '^ *+' conftest.er1 >conftest.err
19599 rm -f conftest.er1
19600 cat conftest.err >&5
a848cd7e
SC
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); } &&
7714864e 19603 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19605 (eval $ac_try) 2>&5
19606 ac_status=$?
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19611 (eval $ac_try) 2>&5
19612 ac_status=$?
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; }; then
19615 echo "$as_me:$LINENO: result: yes" >&5
19616echo "${ECHO_T}yes" >&6
19617 cat >>confdefs.h <<\_ACEOF
19618#define HAVE_STD_STRING_COMPARE 1
19619_ACEOF
19620
19621else
19622 echo "$as_me: failed program was:" >&5
19623sed 's/^/| /' conftest.$ac_ext >&5
19624
19625echo "$as_me:$LINENO: result: no" >&5
19626echo "${ECHO_T}no" >&6
19627fi
ac1cb8d3 19628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19629
19630 if test "${ac_cv_header_hash_map+set}" = set; then
19631 echo "$as_me:$LINENO: checking for hash_map" >&5
19632echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19633if test "${ac_cv_header_hash_map+set}" = set; then
19634 echo $ECHO_N "(cached) $ECHO_C" >&6
19635fi
19636echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19637echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19638else
19639 # Is the header compilable?
19640echo "$as_me:$LINENO: checking hash_map usability" >&5
19641echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19642cat >conftest.$ac_ext <<_ACEOF
19643/* confdefs.h. */
19644_ACEOF
19645cat confdefs.h >>conftest.$ac_ext
19646cat >>conftest.$ac_ext <<_ACEOF
19647/* end confdefs.h. */
19648$ac_includes_default
19649#include <hash_map>
19650_ACEOF
19651rm -f conftest.$ac_objext
19652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19653 (eval $ac_compile) 2>conftest.er1
bdcade0a 19654 ac_status=$?
ac1cb8d3
VS
19655 grep -v '^ *+' conftest.er1 >conftest.err
19656 rm -f conftest.er1
19657 cat conftest.err >&5
bdcade0a
MB
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
7714864e 19660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19663 ac_status=$?
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19669 ac_status=$?
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672 ac_header_compiler=yes
19673else
19674 echo "$as_me: failed program was:" >&5
19675sed 's/^/| /' conftest.$ac_ext >&5
19676
19677ac_header_compiler=no
19678fi
ac1cb8d3 19679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19680echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19681echo "${ECHO_T}$ac_header_compiler" >&6
19682
19683# Is the header present?
19684echo "$as_me:$LINENO: checking hash_map presence" >&5
19685echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19686cat >conftest.$ac_ext <<_ACEOF
19687/* confdefs.h. */
19688_ACEOF
19689cat confdefs.h >>conftest.$ac_ext
19690cat >>conftest.$ac_ext <<_ACEOF
19691/* end confdefs.h. */
19692#include <hash_map>
19693_ACEOF
19694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19696 ac_status=$?
19697 grep -v '^ *+' conftest.er1 >conftest.err
19698 rm -f conftest.er1
19699 cat conftest.err >&5
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); } >/dev/null; then
19702 if test -s conftest.err; then
19703 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19704 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19705 else
19706 ac_cpp_err=
19707 fi
19708else
19709 ac_cpp_err=yes
19710fi
19711if test -z "$ac_cpp_err"; then
19712 ac_header_preproc=yes
19713else
19714 echo "$as_me: failed program was:" >&5
19715sed 's/^/| /' conftest.$ac_ext >&5
19716
19717 ac_header_preproc=no
19718fi
19719rm -f conftest.err conftest.$ac_ext
19720echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19721echo "${ECHO_T}$ac_header_preproc" >&6
19722
19723# So? What about this header?
ac1cb8d3
VS
19724case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19725 yes:no: )
bdcade0a
MB
19726 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19727echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19728 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19729echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19730 ac_header_preproc=yes
bdcade0a 19731 ;;
ac1cb8d3 19732 no:yes:* )
bdcade0a
MB
19733 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19734echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19735 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19736echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19737 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19738echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19739 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19740echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19741 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19742echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19743 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19744echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19745 (
19746 cat <<\_ASBOX
ac1cb8d3
VS
19747## ----------------------------------------- ##
19748## Report this to wx-dev@lists.wxwidgets.org ##
19749## ----------------------------------------- ##
bdcade0a
MB
19750_ASBOX
19751 ) |
19752 sed "s/^/$as_me: WARNING: /" >&2
19753 ;;
19754esac
19755echo "$as_me:$LINENO: checking for hash_map" >&5
19756echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19757if test "${ac_cv_header_hash_map+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19759else
19760 ac_cv_header_hash_map=$ac_header_preproc
19761fi
19762echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19763echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19764
19765fi
19766if test $ac_cv_header_hash_map = yes; then
19767 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19768echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19769 cat >conftest.$ac_ext <<_ACEOF
19770/* confdefs.h. */
19771_ACEOF
19772cat confdefs.h >>conftest.$ac_ext
19773cat >>conftest.$ac_ext <<_ACEOF
19774/* end confdefs.h. */
19775#include <hash_map>
19776 #include <hash_set>
19777int
19778main ()
19779{
19780std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19781 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19782 ;
19783 return 0;
19784}
19785_ACEOF
19786rm -f conftest.$ac_objext
19787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19788 (eval $ac_compile) 2>conftest.er1
bdcade0a 19789 ac_status=$?
ac1cb8d3
VS
19790 grep -v '^ *+' conftest.er1 >conftest.err
19791 rm -f conftest.er1
19792 cat conftest.err >&5
bdcade0a
MB
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } &&
7714864e 19795 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 echo "$as_me:$LINENO: result: yes" >&5
19808echo "${ECHO_T}yes" >&6
19809 cat >>confdefs.h <<\_ACEOF
19810#define HAVE_HASH_MAP 1
19811_ACEOF
19812
19813 cat >>confdefs.h <<\_ACEOF
19814#define HAVE_STD_HASH_MAP 1
19815_ACEOF
19816
19817else
19818 echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
19821echo "$as_me:$LINENO: result: no" >&5
19822echo "${ECHO_T}no" >&6
19823fi
ac1cb8d3 19824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19825
19826fi
19827
19828
19829
19830 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19831 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19832echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19833if test "${ac_cv_header_ext_hash_map+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19835fi
19836echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19837echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19838else
19839 # Is the header compilable?
19840echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19841echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19842cat >conftest.$ac_ext <<_ACEOF
19843/* confdefs.h. */
19844_ACEOF
19845cat confdefs.h >>conftest.$ac_ext
19846cat >>conftest.$ac_ext <<_ACEOF
19847/* end confdefs.h. */
19848$ac_includes_default
19849#include <ext/hash_map>
19850_ACEOF
19851rm -f conftest.$ac_objext
19852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19853 (eval $ac_compile) 2>conftest.er1
bdcade0a 19854 ac_status=$?
ac1cb8d3
VS
19855 grep -v '^ *+' conftest.er1 >conftest.err
19856 rm -f conftest.er1
19857 cat conftest.err >&5
bdcade0a
MB
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
7714864e 19860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19863 ac_status=$?
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19869 ac_status=$?
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_header_compiler=yes
19873else
19874 echo "$as_me: failed program was:" >&5
19875sed 's/^/| /' conftest.$ac_ext >&5
19876
19877ac_header_compiler=no
19878fi
ac1cb8d3 19879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19880echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19881echo "${ECHO_T}$ac_header_compiler" >&6
19882
19883# Is the header present?
19884echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19885echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19886cat >conftest.$ac_ext <<_ACEOF
19887/* confdefs.h. */
19888_ACEOF
19889cat confdefs.h >>conftest.$ac_ext
19890cat >>conftest.$ac_ext <<_ACEOF
19891/* end confdefs.h. */
19892#include <ext/hash_map>
19893_ACEOF
19894if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19895 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19896 ac_status=$?
19897 grep -v '^ *+' conftest.er1 >conftest.err
19898 rm -f conftest.er1
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19901 (exit $ac_status); } >/dev/null; then
19902 if test -s conftest.err; then
19903 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19904 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19905 else
19906 ac_cpp_err=
19907 fi
19908else
19909 ac_cpp_err=yes
19910fi
19911if test -z "$ac_cpp_err"; then
19912 ac_header_preproc=yes
19913else
19914 echo "$as_me: failed program was:" >&5
19915sed 's/^/| /' conftest.$ac_ext >&5
19916
19917 ac_header_preproc=no
19918fi
19919rm -f conftest.err conftest.$ac_ext
19920echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19921echo "${ECHO_T}$ac_header_preproc" >&6
19922
19923# So? What about this header?
ac1cb8d3
VS
19924case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19925 yes:no: )
bdcade0a
MB
19926 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19927echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19928 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19929echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19930 ac_header_preproc=yes
bdcade0a 19931 ;;
ac1cb8d3 19932 no:yes:* )
bdcade0a
MB
19933 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19934echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19935 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19936echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19937 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19938echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19940echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19941 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19942echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19943 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19944echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19945 (
19946 cat <<\_ASBOX
ac1cb8d3
VS
19947## ----------------------------------------- ##
19948## Report this to wx-dev@lists.wxwidgets.org ##
19949## ----------------------------------------- ##
bdcade0a
MB
19950_ASBOX
19951 ) |
19952 sed "s/^/$as_me: WARNING: /" >&2
19953 ;;
19954esac
19955echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19956echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19957if test "${ac_cv_header_ext_hash_map+set}" = set; then
19958 echo $ECHO_N "(cached) $ECHO_C" >&6
19959else
19960 ac_cv_header_ext_hash_map=$ac_header_preproc
19961fi
19962echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19963echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19964
19965fi
19966if test $ac_cv_header_ext_hash_map = yes; then
19967 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19968echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19969 cat >conftest.$ac_ext <<_ACEOF
19970/* confdefs.h. */
19971_ACEOF
19972cat confdefs.h >>conftest.$ac_ext
19973cat >>conftest.$ac_ext <<_ACEOF
19974/* end confdefs.h. */
19975#include <ext/hash_map>
19976 #include <ext/hash_set>
19977int
19978main ()
19979{
19980__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19981 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19982 ;
19983 return 0;
19984}
19985_ACEOF
19986rm -f conftest.$ac_objext
19987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19988 (eval $ac_compile) 2>conftest.er1
bdcade0a 19989 ac_status=$?
ac1cb8d3
VS
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
bdcade0a
MB
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
7714864e 19995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 echo "$as_me:$LINENO: result: yes" >&5
20008echo "${ECHO_T}yes" >&6
20009 cat >>confdefs.h <<\_ACEOF
20010#define HAVE_EXT_HASH_MAP 1
20011_ACEOF
20012
20013 cat >>confdefs.h <<\_ACEOF
20014#define HAVE_GNU_CXX_HASH_MAP 1
20015_ACEOF
20016
20017else
20018 echo "$as_me: failed program was:" >&5
20019sed 's/^/| /' conftest.$ac_ext >&5
20020
20021echo "$as_me:$LINENO: result: no" >&5
20022echo "${ECHO_T}no" >&6
20023fi
ac1cb8d3 20024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20025
20026fi
20027
20028
a848cd7e
SC
20029
20030 ac_ext=c
20031ac_cpp='$CPP $CPPFLAGS'
20032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20034ac_compiler_gnu=$ac_cv_c_compiler_gnu
20035
20036fi
20037
20038
20039SEARCH_INCLUDE="\
20040 /usr/local/include \
20041 \
20042 /usr/Motif-2.1/include \
20043 /usr/Motif-1.2/include \
20044 /usr/include/Motif1.2 \
20045 /opt/xpm/include/X11 \
20046 /opt/GBxpm/include/ \
20047 /opt/GBxpm/X11/include/ \
20048 \
20049 /usr/dt/include \
20050 /usr/openwin/include \
20051 \
20052 /usr/include/Xm \
20053 \
20054 /usr/X11R6/include \
20055 /usr/X11R6.4/include \
20056 /usr/X11R5/include \
20057 /usr/X11R4/include \
20058 \
20059 /usr/include/X11R6 \
20060 /usr/include/X11R5 \
20061 /usr/include/X11R4 \
20062 \
20063 /usr/local/X11R6/include \
20064 /usr/local/X11R5/include \
20065 /usr/local/X11R4/include \
20066 \
20067 /usr/local/include/X11R6 \
20068 /usr/local/include/X11R5 \
20069 /usr/local/include/X11R4 \
20070 \
20071 /usr/X11/include \
20072 /usr/include/X11 \
20073 /usr/local/X11/include \
20074 /usr/local/include/X11 \
20075 \
20076 /usr/X386/include \
20077 /usr/x386/include \
20078 /usr/XFree86/include/X11 \
20079 \
20080 X:/XFree86/include \
20081 X:/XFree86/include/X11 \
20082 \
20083 /usr/include/gtk \
20084 /usr/local/include/gtk \
20085 /usr/include/glib \
20086 /usr/local/include/glib \
20087 \
20088 /usr/include/qt \
20089 /usr/local/include/qt \
20090 \
20091 /usr/local/arm/3.3.2/include \
20092 \
20093 /usr/include/windows \
20094 /usr/include/wine \
20095 /usr/local/include/wine \
20096 \
20097 /usr/unsupported/include \
20098 /usr/athena/include \
20099 /usr/local/x11r5/include \
20100 /usr/lpp/Xamples/include \
20101 \
20102 /usr/openwin/share/include"
20103
20104SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20105
20106
20107cat >confcache <<\_ACEOF
20108# This file is a shell script that caches the results of configure
20109# tests run on this system so they can be shared between configure
20110# scripts and configure runs, see configure's option --config-cache.
20111# It is not useful on other systems. If it contains results you don't
20112# want to keep, you may remove or edit it.
20113#
20114# config.status only pays attention to the cache file if you give it
20115# the --recheck option to rerun configure.
20116#
20117# `ac_cv_env_foo' variables (set or unset) will be overridden when
20118# loading this file, other *unset* `ac_cv_foo' will be assigned the
20119# following values.
20120
20121_ACEOF
20122
20123# The following way of writing the cache mishandles newlines in values,
20124# but we know of no workaround that is simple, portable, and efficient.
20125# So, don't put newlines in cache variables' values.
20126# Ultrix sh set writes to stderr and can't be redirected directly,
20127# and sets the high bit in the cache file unless we assign to the vars.
20128{
20129 (set) 2>&1 |
20130 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20131 *ac_space=\ *)
20132 # `set' does not quote correctly, so add quotes (double-quote
20133 # substitution turns \\\\ into \\, and sed turns \\ into \).
20134 sed -n \
ac1cb8d3
VS
20135 "s/'/'\\\\''/g;
20136 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20137 ;;
20138 *)
20139 # `set' quotes correctly as required by POSIX, so do not add quotes.
20140 sed -n \
ac1cb8d3 20141 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20142 ;;
20143 esac;
20144} |
20145 sed '
20146 t clear
20147 : clear
20148 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20149 t end
20150 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20151 : end' >>confcache
20152if diff $cache_file confcache >/dev/null 2>&1; then :; else
20153 if test -w $cache_file; then
20154 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20155 cat confcache >$cache_file
20156 else
20157 echo "not updating unwritable cache $cache_file"
20158 fi
20159fi
20160rm -f confcache
20161
20162if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20163 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20164echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20165if test "${wx_cv_lib_glibc21+set}" = set; then
20166 echo $ECHO_N "(cached) $ECHO_C" >&6
20167else
20168
20169 cat >conftest.$ac_ext <<_ACEOF
20170/* confdefs.h. */
20171_ACEOF
20172cat confdefs.h >>conftest.$ac_ext
20173cat >>conftest.$ac_ext <<_ACEOF
20174/* end confdefs.h. */
20175#include <features.h>
20176int
20177main ()
20178{
20179
20180 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20181 #error not glibc2.1
20182 #endif
20183
20184 ;
20185 return 0;
20186}
20187_ACEOF
20188rm -f conftest.$ac_objext
20189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20190 (eval $ac_compile) 2>conftest.er1
a848cd7e 20191 ac_status=$?
ac1cb8d3
VS
20192 grep -v '^ *+' conftest.er1 >conftest.err
20193 rm -f conftest.er1
20194 cat conftest.err >&5
a848cd7e
SC
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } &&
7714864e 20197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; } &&
20203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209
20210 wx_cv_lib_glibc21=yes
20211
20212else
20213 echo "$as_me: failed program was:" >&5
20214sed 's/^/| /' conftest.$ac_ext >&5
20215
20216
20217 wx_cv_lib_glibc21=no
20218
20219
20220fi
ac1cb8d3 20221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20222
20223fi
20224echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20225echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20226 if test "$wx_cv_lib_glibc21" = "yes"; then
20227 cat >>confdefs.h <<\_ACEOF
20228#define wxHAVE_GLIBC2 1
20229_ACEOF
20230
20231 fi
20232fi
20233
20234if test "x$wx_cv_lib_glibc21" = "xyes"; then
20235 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20236 cat >>confdefs.h <<\_ACEOF
20237#define _GNU_SOURCE 1
20238_ACEOF
20239
20240 fi
20241fi
20242
20243
20244
20245if test "$wxUSE_REGEX" != "no"; then
20246 cat >>confdefs.h <<\_ACEOF
20247#define wxUSE_REGEX 1
20248_ACEOF
20249
20250
20251 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20252 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20253echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20254 wxUSE_REGEX=builtin
20255 fi
20256
20257 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20258 if test "${ac_cv_header_regex_h+set}" = set; then
20259 echo "$as_me:$LINENO: checking for regex.h" >&5
20260echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20261if test "${ac_cv_header_regex_h+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263fi
20264echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20265echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20266else
20267 # Is the header compilable?
20268echo "$as_me:$LINENO: checking regex.h usability" >&5
20269echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20270cat >conftest.$ac_ext <<_ACEOF
20271/* confdefs.h. */
20272_ACEOF
20273cat confdefs.h >>conftest.$ac_ext
20274cat >>conftest.$ac_ext <<_ACEOF
20275/* end confdefs.h. */
20276$ac_includes_default
20277#include <regex.h>
20278_ACEOF
20279rm -f conftest.$ac_objext
20280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20281 (eval $ac_compile) 2>conftest.er1
a848cd7e 20282 ac_status=$?
ac1cb8d3
VS
20283 grep -v '^ *+' conftest.er1 >conftest.err
20284 rm -f conftest.er1
20285 cat conftest.err >&5
a848cd7e
SC
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } &&
7714864e 20288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20291 ac_status=$?
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; } &&
20294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296 (eval $ac_try) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); }; }; then
20300 ac_header_compiler=yes
20301else
20302 echo "$as_me: failed program was:" >&5
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
20305ac_header_compiler=no
20306fi
ac1cb8d3 20307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20308echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20309echo "${ECHO_T}$ac_header_compiler" >&6
20310
20311# Is the header present?
20312echo "$as_me:$LINENO: checking regex.h presence" >&5
20313echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20314cat >conftest.$ac_ext <<_ACEOF
20315/* confdefs.h. */
20316_ACEOF
20317cat confdefs.h >>conftest.$ac_ext
20318cat >>conftest.$ac_ext <<_ACEOF
20319/* end confdefs.h. */
20320#include <regex.h>
20321_ACEOF
20322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20324 ac_status=$?
20325 grep -v '^ *+' conftest.er1 >conftest.err
20326 rm -f conftest.er1
20327 cat conftest.err >&5
20328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329 (exit $ac_status); } >/dev/null; then
20330 if test -s conftest.err; then
20331 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20333 else
20334 ac_cpp_err=
20335 fi
20336else
20337 ac_cpp_err=yes
20338fi
20339if test -z "$ac_cpp_err"; then
20340 ac_header_preproc=yes
20341else
20342 echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ac_header_preproc=no
20346fi
20347rm -f conftest.err conftest.$ac_ext
20348echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20349echo "${ECHO_T}$ac_header_preproc" >&6
20350
20351# So? What about this header?
ac1cb8d3
VS
20352case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20353 yes:no: )
a848cd7e
SC
20354 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20355echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20356 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20357echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20358 ac_header_preproc=yes
a848cd7e 20359 ;;
ac1cb8d3 20360 no:yes:* )
a848cd7e
SC
20361 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20362echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20363 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20364echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20365 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20366echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20367 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20368echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20369 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20370echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20371 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20372echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20373 (
20374 cat <<\_ASBOX
ac1cb8d3
VS
20375## ----------------------------------------- ##
20376## Report this to wx-dev@lists.wxwidgets.org ##
20377## ----------------------------------------- ##
a848cd7e
SC
20378_ASBOX
20379 ) |
20380 sed "s/^/$as_me: WARNING: /" >&2
20381 ;;
20382esac
20383echo "$as_me:$LINENO: checking for regex.h" >&5
20384echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20385if test "${ac_cv_header_regex_h+set}" = set; then
20386 echo $ECHO_N "(cached) $ECHO_C" >&6
20387else
20388 ac_cv_header_regex_h=$ac_header_preproc
20389fi
20390echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20391echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20392
20393fi
20394if test $ac_cv_header_regex_h = yes; then
20395
20396for ac_func in regcomp
20397do
20398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20399echo "$as_me:$LINENO: checking for $ac_func" >&5
20400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20401if eval "test \"\${$as_ac_var+set}\" = set"; then
20402 echo $ECHO_N "(cached) $ECHO_C" >&6
20403else
20404 cat >conftest.$ac_ext <<_ACEOF
20405/* confdefs.h. */
20406_ACEOF
20407cat confdefs.h >>conftest.$ac_ext
20408cat >>conftest.$ac_ext <<_ACEOF
20409/* end confdefs.h. */
ac1cb8d3
VS
20410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20412#define $ac_func innocuous_$ac_func
20413
a848cd7e
SC
20414/* System header to define __stub macros and hopefully few prototypes,
20415 which can conflict with char $ac_func (); below.
20416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20417 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20418
a848cd7e
SC
20419#ifdef __STDC__
20420# include <limits.h>
20421#else
20422# include <assert.h>
20423#endif
ac1cb8d3
VS
20424
20425#undef $ac_func
20426
a848cd7e
SC
20427/* Override any gcc2 internal prototype to avoid an error. */
20428#ifdef __cplusplus
20429extern "C"
20430{
20431#endif
20432/* We use char because int might match the return type of a gcc2
20433 builtin and then its argument prototype would still apply. */
20434char $ac_func ();
20435/* The GNU C library defines this for functions which it implements
20436 to always fail with ENOSYS. Some functions are actually named
20437 something starting with __ and the normal name is an alias. */
20438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20439choke me
20440#else
20441char (*f) () = $ac_func;
20442#endif
20443#ifdef __cplusplus
20444}
20445#endif
20446
20447int
20448main ()
20449{
20450return f != $ac_func;
20451 ;
20452 return 0;
20453}
20454_ACEOF
20455rm -f conftest.$ac_objext conftest$ac_exeext
20456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20457 (eval $ac_link) 2>conftest.er1
a848cd7e 20458 ac_status=$?
ac1cb8d3
VS
20459 grep -v '^ *+' conftest.er1 >conftest.err
20460 rm -f conftest.er1
20461 cat conftest.err >&5
a848cd7e
SC
20462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463 (exit $ac_status); } &&
7714864e 20464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20466 (eval $ac_try) 2>&5
20467 ac_status=$?
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); }; } &&
20470 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20472 (eval $ac_try) 2>&5
20473 ac_status=$?
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); }; }; then
20476 eval "$as_ac_var=yes"
20477else
20478 echo "$as_me: failed program was:" >&5
20479sed 's/^/| /' conftest.$ac_ext >&5
20480
20481eval "$as_ac_var=no"
20482fi
ac1cb8d3
VS
20483rm -f conftest.err conftest.$ac_objext \
20484 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20485fi
20486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20487echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20488if test `eval echo '${'$as_ac_var'}'` = yes; then
20489 cat >>confdefs.h <<_ACEOF
20490#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20491_ACEOF
20492
20493fi
20494done
20495
20496fi
20497
20498
20499
20500 if test "x$ac_cv_func_regcomp" != "xyes"; then
20501 if test "$wxUSE_REGEX" = "sys" ; then
20502 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20503echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20504 { (exit 1); exit 1; }; }
20505 else
20506 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20507echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20508 wxUSE_REGEX=builtin
20509 fi
20510 else
20511 wxUSE_REGEX=sys
20512 cat >>confdefs.h <<\_ACEOF
20513#define WX_NO_REGEX_ADVANCED 1
20514_ACEOF
20515
20516 fi
20517 fi
20518fi
20519
20520
20521ZLIB_LINK=
20522if test "$wxUSE_ZLIB" != "no" ; then
20523 cat >>confdefs.h <<\_ACEOF
20524#define wxUSE_ZLIB 1
20525_ACEOF
20526
20527
20528 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20529 if test "$USE_DARWIN" = 1; then
20530 system_zlib_h_ok="yes"
20531 else
20532 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20533echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20534if test "${ac_cv_header_zlib_h+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20536else
20537 if test "$cross_compiling" = yes; then
20538 unset ac_cv_header_zlib_h
20539
20540else
20541 cat >conftest.$ac_ext <<_ACEOF
20542/* confdefs.h. */
20543_ACEOF
20544cat confdefs.h >>conftest.$ac_ext
20545cat >>conftest.$ac_ext <<_ACEOF
20546/* end confdefs.h. */
20547
20548 #include <zlib.h>
20549 #include <stdio.h>
20550
20551 int main()
20552 {
20553 FILE *f=fopen("conftestval", "w");
20554 if (!f) exit(1);
20555 fprintf(f, "%s",
20556 ZLIB_VERSION[0] == '1' &&
20557 (ZLIB_VERSION[2] > '1' ||
20558 (ZLIB_VERSION[2] == '1' &&
20559 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20560 exit(0);
20561 }
20562
20563_ACEOF
20564rm -f conftest$ac_exeext
20565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20566 (eval $ac_link) 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20572 ac_status=$?
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; }; then
20575 ac_cv_header_zlib_h=`cat conftestval`
20576else
20577 echo "$as_me: program exited with status $ac_status" >&5
20578echo "$as_me: failed program was:" >&5
20579sed 's/^/| /' conftest.$ac_ext >&5
20580
20581( exit $ac_status )
20582ac_cv_header_zlib_h=no
20583fi
ac1cb8d3 20584rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20585fi
20586
20587fi
20588echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20589echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20590 if test "${ac_cv_header_zlib_h+set}" = set; then
20591 echo "$as_me:$LINENO: checking for zlib.h" >&5
20592echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20593if test "${ac_cv_header_zlib_h+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20595fi
20596echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20597echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20598else
20599 # Is the header compilable?
20600echo "$as_me:$LINENO: checking zlib.h usability" >&5
20601echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20602cat >conftest.$ac_ext <<_ACEOF
20603/* confdefs.h. */
20604_ACEOF
20605cat confdefs.h >>conftest.$ac_ext
20606cat >>conftest.$ac_ext <<_ACEOF
20607/* end confdefs.h. */
20608$ac_includes_default
20609#include <zlib.h>
20610_ACEOF
20611rm -f conftest.$ac_objext
20612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20613 (eval $ac_compile) 2>conftest.er1
a848cd7e 20614 ac_status=$?
ac1cb8d3
VS
20615 grep -v '^ *+' conftest.er1 >conftest.err
20616 rm -f conftest.er1
20617 cat conftest.err >&5
a848cd7e
SC
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } &&
7714864e 20620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20622 (eval $ac_try) 2>&5
20623 ac_status=$?
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; } &&
20626 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628 (eval $ac_try) 2>&5
20629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; }; then
20632 ac_header_compiler=yes
20633else
20634 echo "$as_me: failed program was:" >&5
20635sed 's/^/| /' conftest.$ac_ext >&5
20636
20637ac_header_compiler=no
20638fi
ac1cb8d3 20639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20640echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20641echo "${ECHO_T}$ac_header_compiler" >&6
20642
20643# Is the header present?
20644echo "$as_me:$LINENO: checking zlib.h presence" >&5
20645echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20646cat >conftest.$ac_ext <<_ACEOF
20647/* confdefs.h. */
20648_ACEOF
20649cat confdefs.h >>conftest.$ac_ext
20650cat >>conftest.$ac_ext <<_ACEOF
20651/* end confdefs.h. */
20652#include <zlib.h>
20653_ACEOF
20654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20656 ac_status=$?
20657 grep -v '^ *+' conftest.er1 >conftest.err
20658 rm -f conftest.er1
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } >/dev/null; then
20662 if test -s conftest.err; then
20663 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20665 else
20666 ac_cpp_err=
20667 fi
20668else
20669 ac_cpp_err=yes
20670fi
20671if test -z "$ac_cpp_err"; then
20672 ac_header_preproc=yes
20673else
20674 echo "$as_me: failed program was:" >&5
20675sed 's/^/| /' conftest.$ac_ext >&5
20676
20677 ac_header_preproc=no
20678fi
20679rm -f conftest.err conftest.$ac_ext
20680echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20681echo "${ECHO_T}$ac_header_preproc" >&6
20682
20683# So? What about this header?
ac1cb8d3
VS
20684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20685 yes:no: )
a848cd7e
SC
20686 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20687echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20688 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20689echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20690 ac_header_preproc=yes
a848cd7e 20691 ;;
ac1cb8d3 20692 no:yes:* )
a848cd7e
SC
20693 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20694echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20695 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20696echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20697 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20698echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20699 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20700echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20701 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20702echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20703 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20704echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20705 (
20706 cat <<\_ASBOX
ac1cb8d3
VS
20707## ----------------------------------------- ##
20708## Report this to wx-dev@lists.wxwidgets.org ##
20709## ----------------------------------------- ##
a848cd7e
SC
20710_ASBOX
20711 ) |
20712 sed "s/^/$as_me: WARNING: /" >&2
20713 ;;
20714esac
20715echo "$as_me:$LINENO: checking for zlib.h" >&5
20716echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20717if test "${ac_cv_header_zlib_h+set}" = set; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20719else
20720 ac_cv_header_zlib_h=$ac_header_preproc
20721fi
20722echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20723echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20724
20725fi
20726
20727
20728
20729 system_zlib_h_ok=$ac_cv_header_zlib_h
20730 fi
20731
20732 if test "$system_zlib_h_ok" = "yes"; then
20733 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20734echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20735if test "${ac_cv_lib_z_deflate+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20737else
20738 ac_check_lib_save_LIBS=$LIBS
20739LIBS="-lz $LIBS"
20740cat >conftest.$ac_ext <<_ACEOF
20741/* confdefs.h. */
20742_ACEOF
20743cat confdefs.h >>conftest.$ac_ext
20744cat >>conftest.$ac_ext <<_ACEOF
20745/* end confdefs.h. */
20746
20747/* Override any gcc2 internal prototype to avoid an error. */
20748#ifdef __cplusplus
20749extern "C"
20750#endif
20751/* We use char because int might match the return type of a gcc2
20752 builtin and then its argument prototype would still apply. */
20753char deflate ();
20754int
20755main ()
20756{
20757deflate ();
20758 ;
20759 return 0;
20760}
20761_ACEOF
20762rm -f conftest.$ac_objext conftest$ac_exeext
20763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20764 (eval $ac_link) 2>conftest.er1
a848cd7e 20765 ac_status=$?
ac1cb8d3
VS
20766 grep -v '^ *+' conftest.er1 >conftest.err
20767 rm -f conftest.er1
20768 cat conftest.err >&5
a848cd7e
SC
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); } &&
7714864e 20771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; } &&
20777 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20780 ac_status=$?
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783 ac_cv_lib_z_deflate=yes
20784else
20785 echo "$as_me: failed program was:" >&5
20786sed 's/^/| /' conftest.$ac_ext >&5
20787
20788ac_cv_lib_z_deflate=no
20789fi
ac1cb8d3
VS
20790rm -f conftest.err conftest.$ac_objext \
20791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20792LIBS=$ac_check_lib_save_LIBS
20793fi
20794echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20795echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20796if test $ac_cv_lib_z_deflate = yes; then
20797 ZLIB_LINK=" -lz"
20798fi
20799
20800 fi
20801
20802 if test "x$ZLIB_LINK" = "x" ; then
20803 if test "$wxUSE_ZLIB" = "sys" ; then
20804 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20805echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20806 { (exit 1); exit 1; }; }
20807 else
20808 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20809echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20810 wxUSE_ZLIB=builtin
20811 fi
20812 else
20813 wxUSE_ZLIB=sys
20814 fi
20815 fi
20816fi
20817
20818
20819PNG_LINK=
20820if test "$wxUSE_LIBPNG" != "no" ; then
20821 cat >>confdefs.h <<\_ACEOF
20822#define wxUSE_LIBPNG 1
20823_ACEOF
20824
20825
20826 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20827 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20828echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20829 wxUSE_LIBPNG=sys
20830 fi
20831
20832 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20833 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20834echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20835 wxUSE_LIBPNG=builtin
20836 fi
20837
20838 if test "$wxUSE_MGL" != 1 ; then
20839 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20840 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20841echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20842if test "${ac_cv_header_png_h+set}" = set; then
20843 echo $ECHO_N "(cached) $ECHO_C" >&6
20844else
20845 if test "$cross_compiling" = yes; then
20846 unset ac_cv_header_png_h
20847
20848else
20849 cat >conftest.$ac_ext <<_ACEOF
20850/* confdefs.h. */
20851_ACEOF
20852cat confdefs.h >>conftest.$ac_ext
20853cat >>conftest.$ac_ext <<_ACEOF
20854/* end confdefs.h. */
20855
20856 #include <png.h>
20857 #include <stdio.h>
20858
20859 int main()
20860 {
20861 FILE *f=fopen("conftestval", "w");
20862 if (!f) exit(1);
20863 fprintf(f, "%s",
20864 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20865 exit(0);
20866 }
20867
20868_ACEOF
20869rm -f conftest$ac_exeext
20870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20871 (eval $ac_link) 2>&5
20872 ac_status=$?
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20876 (eval $ac_try) 2>&5
20877 ac_status=$?
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); }; }; then
20880 ac_cv_header_png_h=`cat conftestval`
20881else
20882 echo "$as_me: program exited with status $ac_status" >&5
20883echo "$as_me: failed program was:" >&5
20884sed 's/^/| /' conftest.$ac_ext >&5
20885
20886( exit $ac_status )
20887ac_cv_header_png_h=no
20888fi
ac1cb8d3 20889rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20890fi
20891
20892fi
20893echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20894echo "${ECHO_T}$ac_cv_header_png_h" >&6
20895 if test "${ac_cv_header_png_h+set}" = set; then
20896 echo "$as_me:$LINENO: checking for png.h" >&5
20897echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20898if test "${ac_cv_header_png_h+set}" = set; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
20900fi
20901echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20902echo "${ECHO_T}$ac_cv_header_png_h" >&6
20903else
20904 # Is the header compilable?
20905echo "$as_me:$LINENO: checking png.h usability" >&5
20906echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20907cat >conftest.$ac_ext <<_ACEOF
20908/* confdefs.h. */
20909_ACEOF
20910cat confdefs.h >>conftest.$ac_ext
20911cat >>conftest.$ac_ext <<_ACEOF
20912/* end confdefs.h. */
20913$ac_includes_default
20914#include <png.h>
20915_ACEOF
20916rm -f conftest.$ac_objext
20917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20918 (eval $ac_compile) 2>conftest.er1
a848cd7e 20919 ac_status=$?
ac1cb8d3
VS
20920 grep -v '^ *+' conftest.er1 >conftest.err
20921 rm -f conftest.er1
20922 cat conftest.err >&5
a848cd7e
SC
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); } &&
7714864e 20925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
20931 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20934 ac_status=$?
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; }; then
20937 ac_header_compiler=yes
20938else
20939 echo "$as_me: failed program was:" >&5
20940sed 's/^/| /' conftest.$ac_ext >&5
20941
20942ac_header_compiler=no
20943fi
ac1cb8d3 20944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20945echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20946echo "${ECHO_T}$ac_header_compiler" >&6
20947
20948# Is the header present?
20949echo "$as_me:$LINENO: checking png.h presence" >&5
20950echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20951cat >conftest.$ac_ext <<_ACEOF
20952/* confdefs.h. */
20953_ACEOF
20954cat confdefs.h >>conftest.$ac_ext
20955cat >>conftest.$ac_ext <<_ACEOF
20956/* end confdefs.h. */
20957#include <png.h>
20958_ACEOF
20959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20961 ac_status=$?
20962 grep -v '^ *+' conftest.er1 >conftest.err
20963 rm -f conftest.er1
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } >/dev/null; then
20967 if test -s conftest.err; then
20968 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20970 else
20971 ac_cpp_err=
20972 fi
20973else
20974 ac_cpp_err=yes
20975fi
20976if test -z "$ac_cpp_err"; then
20977 ac_header_preproc=yes
20978else
20979 echo "$as_me: failed program was:" >&5
20980sed 's/^/| /' conftest.$ac_ext >&5
20981
20982 ac_header_preproc=no
20983fi
20984rm -f conftest.err conftest.$ac_ext
20985echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20986echo "${ECHO_T}$ac_header_preproc" >&6
20987
20988# So? What about this header?
ac1cb8d3
VS
20989case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20990 yes:no: )
a848cd7e
SC
20991 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20992echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20993 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20994echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20995 ac_header_preproc=yes
a848cd7e 20996 ;;
ac1cb8d3 20997 no:yes:* )
a848cd7e
SC
20998 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20999echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21000 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21001echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21003echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21004 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21005echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21006 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21007echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21008 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21009echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21010 (
21011 cat <<\_ASBOX
ac1cb8d3
VS
21012## ----------------------------------------- ##
21013## Report this to wx-dev@lists.wxwidgets.org ##
21014## ----------------------------------------- ##
a848cd7e
SC
21015_ASBOX
21016 ) |
21017 sed "s/^/$as_me: WARNING: /" >&2
21018 ;;
21019esac
21020echo "$as_me:$LINENO: checking for png.h" >&5
21021echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21022if test "${ac_cv_header_png_h+set}" = set; then
21023 echo $ECHO_N "(cached) $ECHO_C" >&6
21024else
21025 ac_cv_header_png_h=$ac_header_preproc
21026fi
21027echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21028echo "${ECHO_T}$ac_cv_header_png_h" >&6
21029
21030fi
21031
21032
21033
21034 if test "$ac_cv_header_png_h" = "yes"; then
21035 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21036echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21037if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21039else
21040 ac_check_lib_save_LIBS=$LIBS
21041LIBS="-lpng -lz -lm $LIBS"
21042cat >conftest.$ac_ext <<_ACEOF
21043/* confdefs.h. */
21044_ACEOF
21045cat confdefs.h >>conftest.$ac_ext
21046cat >>conftest.$ac_ext <<_ACEOF
21047/* end confdefs.h. */
21048
21049/* Override any gcc2 internal prototype to avoid an error. */
21050#ifdef __cplusplus
21051extern "C"
21052#endif
21053/* We use char because int might match the return type of a gcc2
21054 builtin and then its argument prototype would still apply. */
21055char png_check_sig ();
21056int
21057main ()
21058{
21059png_check_sig ();
21060 ;
21061 return 0;
21062}
21063_ACEOF
21064rm -f conftest.$ac_objext conftest$ac_exeext
21065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21066 (eval $ac_link) 2>conftest.er1
a848cd7e 21067 ac_status=$?
ac1cb8d3
VS
21068 grep -v '^ *+' conftest.er1 >conftest.err
21069 rm -f conftest.er1
21070 cat conftest.err >&5
a848cd7e
SC
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } &&
7714864e 21073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21076 ac_status=$?
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 ac_cv_lib_png_png_check_sig=yes
21086else
21087 echo "$as_me: failed program was:" >&5
21088sed 's/^/| /' conftest.$ac_ext >&5
21089
21090ac_cv_lib_png_png_check_sig=no
21091fi
ac1cb8d3
VS
21092rm -f conftest.err conftest.$ac_objext \
21093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21094LIBS=$ac_check_lib_save_LIBS
21095fi
21096echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21097echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21098if test $ac_cv_lib_png_png_check_sig = yes; then
21099 PNG_LINK=" -lpng -lz"
21100fi
21101
21102 fi
21103
21104 if test "x$PNG_LINK" = "x" ; then
21105 if test "$wxUSE_LIBPNG" = "sys" ; then
21106 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21107echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21108 { (exit 1); exit 1; }; }
21109 else
21110 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21111echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21112 wxUSE_LIBPNG=builtin
21113 fi
21114 else
21115 wxUSE_LIBPNG=sys
21116 fi
21117 fi
21118 fi
21119
21120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21121fi
21122
21123
21124JPEG_LINK=
21125if test "$wxUSE_LIBJPEG" != "no" ; then
21126 cat >>confdefs.h <<\_ACEOF
21127#define wxUSE_LIBJPEG 1
21128_ACEOF
21129
21130
21131 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21132 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21133echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21134 wxUSE_LIBJPEG=sys
21135 fi
21136
21137 if test "$wxUSE_MGL" != 1 ; then
21138 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21139 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21140echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21141 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21142 echo $ECHO_N "(cached) $ECHO_C" >&6
21143else
21144 cat >conftest.$ac_ext <<_ACEOF
21145/* confdefs.h. */
21146_ACEOF
21147cat confdefs.h >>conftest.$ac_ext
21148cat >>conftest.$ac_ext <<_ACEOF
21149/* end confdefs.h. */
21150
21151 #undef HAVE_STDLIB_H
21152 #include <stdio.h>
21153 #include <jpeglib.h>
21154
21155int
21156main ()
21157{
21158
21159
21160 ;
21161 return 0;
21162}
21163_ACEOF
21164rm -f conftest.$ac_objext
21165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21166 (eval $ac_compile) 2>conftest.er1
a848cd7e 21167 ac_status=$?
ac1cb8d3
VS
21168 grep -v '^ *+' conftest.er1 >conftest.err
21169 rm -f conftest.er1
21170 cat conftest.err >&5
a848cd7e
SC
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); } &&
7714864e 21173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175 (eval $ac_try) 2>&5
21176 ac_status=$?
21177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178 (exit $ac_status); }; } &&
21179 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181 (eval $ac_try) 2>&5
21182 ac_status=$?
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); }; }; then
21185 ac_cv_header_jpeglib_h=yes
21186else
21187 echo "$as_me: failed program was:" >&5
21188sed 's/^/| /' conftest.$ac_ext >&5
21189
21190ac_cv_header_jpeglib_h=no
21191
21192fi
ac1cb8d3 21193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21194
21195fi
21196
21197 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21198echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21199
21200 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21201 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21202echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21203if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21204 echo $ECHO_N "(cached) $ECHO_C" >&6
21205else
21206 ac_check_lib_save_LIBS=$LIBS
21207LIBS="-ljpeg $LIBS"
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
21215/* Override any gcc2 internal prototype to avoid an error. */
21216#ifdef __cplusplus
21217extern "C"
21218#endif
21219/* We use char because int might match the return type of a gcc2
21220 builtin and then its argument prototype would still apply. */
21221char jpeg_read_header ();
21222int
21223main ()
21224{
21225jpeg_read_header ();
21226 ;
21227 return 0;
21228}
21229_ACEOF
21230rm -f conftest.$ac_objext conftest$ac_exeext
21231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21232 (eval $ac_link) 2>conftest.er1
a848cd7e 21233 ac_status=$?
ac1cb8d3
VS
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
a848cd7e
SC
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } &&
7714864e 21239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; } &&
21245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 ac_cv_lib_jpeg_jpeg_read_header=yes
21252else
21253 echo "$as_me: failed program was:" >&5
21254sed 's/^/| /' conftest.$ac_ext >&5
21255
21256ac_cv_lib_jpeg_jpeg_read_header=no
21257fi
ac1cb8d3
VS
21258rm -f conftest.err conftest.$ac_objext \
21259 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21260LIBS=$ac_check_lib_save_LIBS
21261fi
21262echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21263echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21264if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21265 JPEG_LINK=" -ljpeg"
21266fi
21267
21268 fi
21269
21270 if test "x$JPEG_LINK" = "x" ; then
21271 if test "$wxUSE_LIBJPEG" = "sys" ; then
21272 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21273echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21274 { (exit 1); exit 1; }; }
21275 else
21276 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21277echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21278 wxUSE_LIBJPEG=builtin
21279 fi
21280 else
21281 wxUSE_LIBJPEG=sys
21282 fi
21283 fi
21284 fi
21285fi
21286
21287
21288TIFF_LINK=
21289TIFF_PREREQ_LINKS=-lm
21290if test "$wxUSE_LIBTIFF" != "no" ; then
21291 cat >>confdefs.h <<\_ACEOF
21292#define wxUSE_LIBTIFF 1
21293_ACEOF
21294
21295
21296 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21297 if test "$wxUSE_LIBJPEG" = "sys"; then
21298 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21299 fi
21300 if test "$wxUSE_ZLIB" = "sys"; then
21301 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21302 fi
21303 if test "${ac_cv_header_tiffio_h+set}" = set; then
21304 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21305echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21306if test "${ac_cv_header_tiffio_h+set}" = set; then
21307 echo $ECHO_N "(cached) $ECHO_C" >&6
21308fi
21309echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21310echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21311else
21312 # Is the header compilable?
21313echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21314echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21315cat >conftest.$ac_ext <<_ACEOF
21316/* confdefs.h. */
21317_ACEOF
21318cat confdefs.h >>conftest.$ac_ext
21319cat >>conftest.$ac_ext <<_ACEOF
21320/* end confdefs.h. */
21321$ac_includes_default
21322#include <tiffio.h>
21323_ACEOF
21324rm -f conftest.$ac_objext
21325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21326 (eval $ac_compile) 2>conftest.er1
a848cd7e 21327 ac_status=$?
ac1cb8d3
VS
21328 grep -v '^ *+' conftest.er1 >conftest.err
21329 rm -f conftest.er1
21330 cat conftest.err >&5
a848cd7e
SC
21331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); } &&
7714864e 21333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21335 (eval $ac_try) 2>&5
21336 ac_status=$?
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); }; } &&
21339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21341 (eval $ac_try) 2>&5
21342 ac_status=$?
21343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21344 (exit $ac_status); }; }; then
21345 ac_header_compiler=yes
21346else
21347 echo "$as_me: failed program was:" >&5
21348sed 's/^/| /' conftest.$ac_ext >&5
21349
21350ac_header_compiler=no
21351fi
ac1cb8d3 21352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21353echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21354echo "${ECHO_T}$ac_header_compiler" >&6
21355
21356# Is the header present?
21357echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21358echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21359cat >conftest.$ac_ext <<_ACEOF
21360/* confdefs.h. */
21361_ACEOF
21362cat confdefs.h >>conftest.$ac_ext
21363cat >>conftest.$ac_ext <<_ACEOF
21364/* end confdefs.h. */
21365#include <tiffio.h>
21366_ACEOF
21367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21369 ac_status=$?
21370 grep -v '^ *+' conftest.er1 >conftest.err
21371 rm -f conftest.er1
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } >/dev/null; then
21375 if test -s conftest.err; then
21376 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21377 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21378 else
21379 ac_cpp_err=
21380 fi
21381else
21382 ac_cpp_err=yes
21383fi
21384if test -z "$ac_cpp_err"; then
21385 ac_header_preproc=yes
21386else
21387 echo "$as_me: failed program was:" >&5
21388sed 's/^/| /' conftest.$ac_ext >&5
21389
21390 ac_header_preproc=no
21391fi
21392rm -f conftest.err conftest.$ac_ext
21393echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21394echo "${ECHO_T}$ac_header_preproc" >&6
21395
21396# So? What about this header?
ac1cb8d3
VS
21397case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21398 yes:no: )
a848cd7e
SC
21399 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21400echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21401 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21402echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21403 ac_header_preproc=yes
a848cd7e 21404 ;;
ac1cb8d3 21405 no:yes:* )
a848cd7e
SC
21406 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21407echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21408 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21409echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21410 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21411echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21412 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21413echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21414 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21415echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21416 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21417echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21418 (
21419 cat <<\_ASBOX
ac1cb8d3
VS
21420## ----------------------------------------- ##
21421## Report this to wx-dev@lists.wxwidgets.org ##
21422## ----------------------------------------- ##
a848cd7e
SC
21423_ASBOX
21424 ) |
21425 sed "s/^/$as_me: WARNING: /" >&2
21426 ;;
21427esac
21428echo "$as_me:$LINENO: checking for tiffio.h" >&5
21429echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21430if test "${ac_cv_header_tiffio_h+set}" = set; then
21431 echo $ECHO_N "(cached) $ECHO_C" >&6
21432else
21433 ac_cv_header_tiffio_h=$ac_header_preproc
21434fi
21435echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21436echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21437
21438fi
21439if test $ac_cv_header_tiffio_h = yes; then
21440
21441 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21442echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21443if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21445else
21446 ac_check_lib_save_LIBS=$LIBS
21447LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21448cat >conftest.$ac_ext <<_ACEOF
21449/* confdefs.h. */
21450_ACEOF
21451cat confdefs.h >>conftest.$ac_ext
21452cat >>conftest.$ac_ext <<_ACEOF
21453/* end confdefs.h. */
21454
21455/* Override any gcc2 internal prototype to avoid an error. */
21456#ifdef __cplusplus
21457extern "C"
21458#endif
21459/* We use char because int might match the return type of a gcc2
21460 builtin and then its argument prototype would still apply. */
21461char TIFFError ();
21462int
21463main ()
21464{
21465TIFFError ();
21466 ;
21467 return 0;
21468}
21469_ACEOF
21470rm -f conftest.$ac_objext conftest$ac_exeext
21471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21472 (eval $ac_link) 2>conftest.er1
a848cd7e 21473 ac_status=$?
ac1cb8d3
VS
21474 grep -v '^ *+' conftest.er1 >conftest.err
21475 rm -f conftest.er1
21476 cat conftest.err >&5
a848cd7e
SC
21477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478 (exit $ac_status); } &&
7714864e 21479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21481 (eval $ac_try) 2>&5
21482 ac_status=$?
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); }; } &&
21485 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21487 (eval $ac_try) 2>&5
21488 ac_status=$?
21489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); }; }; then
21491 ac_cv_lib_tiff_TIFFError=yes
21492else
21493 echo "$as_me: failed program was:" >&5
21494sed 's/^/| /' conftest.$ac_ext >&5
21495
21496ac_cv_lib_tiff_TIFFError=no
21497fi
ac1cb8d3
VS
21498rm -f conftest.err conftest.$ac_objext \
21499 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21500LIBS=$ac_check_lib_save_LIBS
21501fi
21502echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21503echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21504if test $ac_cv_lib_tiff_TIFFError = yes; then
21505 TIFF_LINK=" -ltiff"
21506fi
21507
21508
21509
21510fi
21511
21512
21513
21514 if test "x$TIFF_LINK" = "x" ; then
21515 if test "$wxUSE_LIBTIFF" = "sys" ; then
21516 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21517echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21518 { (exit 1); exit 1; }; }
21519 else
21520 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21521echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21522 wxUSE_LIBTIFF=builtin
21523 fi
21524 else
21525 wxUSE_LIBTIFF=sys
21526 fi
21527 fi
21528fi
21529
21530
21531if test "$wxUSE_EXPAT" != "no"; then
21532 wxUSE_XML=yes
21533 cat >>confdefs.h <<\_ACEOF
21534#define wxUSE_EXPAT 1
21535_ACEOF
21536
21537 cat >>confdefs.h <<\_ACEOF
21538#define wxUSE_XML 1
21539_ACEOF
21540
21541
21542 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21543 if test "${ac_cv_header_expat_h+set}" = set; then
21544 echo "$as_me:$LINENO: checking for expat.h" >&5
21545echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21546if test "${ac_cv_header_expat_h+set}" = set; then
21547 echo $ECHO_N "(cached) $ECHO_C" >&6
21548fi
21549echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21550echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21551else
21552 # Is the header compilable?
21553echo "$as_me:$LINENO: checking expat.h usability" >&5
21554echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21555cat >conftest.$ac_ext <<_ACEOF
21556/* confdefs.h. */
21557_ACEOF
21558cat confdefs.h >>conftest.$ac_ext
21559cat >>conftest.$ac_ext <<_ACEOF
21560/* end confdefs.h. */
21561$ac_includes_default
21562#include <expat.h>
21563_ACEOF
21564rm -f conftest.$ac_objext
21565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21566 (eval $ac_compile) 2>conftest.er1
a848cd7e 21567 ac_status=$?
ac1cb8d3
VS
21568 grep -v '^ *+' conftest.er1 >conftest.err
21569 rm -f conftest.er1
21570 cat conftest.err >&5
a848cd7e
SC
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } &&
7714864e 21573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; } &&
21579 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581 (eval $ac_try) 2>&5
21582 ac_status=$?
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; }; then
21585 ac_header_compiler=yes
21586else
21587 echo "$as_me: failed program was:" >&5
21588sed 's/^/| /' conftest.$ac_ext >&5
21589
21590ac_header_compiler=no
21591fi
ac1cb8d3 21592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21593echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21594echo "${ECHO_T}$ac_header_compiler" >&6
21595
21596# Is the header present?
21597echo "$as_me:$LINENO: checking expat.h presence" >&5
21598echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21599cat >conftest.$ac_ext <<_ACEOF
21600/* confdefs.h. */
21601_ACEOF
21602cat confdefs.h >>conftest.$ac_ext
21603cat >>conftest.$ac_ext <<_ACEOF
21604/* end confdefs.h. */
21605#include <expat.h>
21606_ACEOF
21607if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21608 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21609 ac_status=$?
21610 grep -v '^ *+' conftest.er1 >conftest.err
21611 rm -f conftest.er1
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } >/dev/null; then
21615 if test -s conftest.err; then
21616 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21617 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21618 else
21619 ac_cpp_err=
21620 fi
21621else
21622 ac_cpp_err=yes
21623fi
21624if test -z "$ac_cpp_err"; then
21625 ac_header_preproc=yes
21626else
21627 echo "$as_me: failed program was:" >&5
21628sed 's/^/| /' conftest.$ac_ext >&5
21629
21630 ac_header_preproc=no
21631fi
21632rm -f conftest.err conftest.$ac_ext
21633echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21634echo "${ECHO_T}$ac_header_preproc" >&6
21635
21636# So? What about this header?
ac1cb8d3
VS
21637case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21638 yes:no: )
a848cd7e
SC
21639 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21640echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21641 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21642echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21643 ac_header_preproc=yes
a848cd7e 21644 ;;
ac1cb8d3 21645 no:yes:* )
a848cd7e
SC
21646 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21647echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21648 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21649echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21650 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21651echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21652 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21653echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21654 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21655echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21656 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21657echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21658 (
21659 cat <<\_ASBOX
ac1cb8d3
VS
21660## ----------------------------------------- ##
21661## Report this to wx-dev@lists.wxwidgets.org ##
21662## ----------------------------------------- ##
a848cd7e
SC
21663_ASBOX
21664 ) |
21665 sed "s/^/$as_me: WARNING: /" >&2
21666 ;;
21667esac
21668echo "$as_me:$LINENO: checking for expat.h" >&5
21669echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21670if test "${ac_cv_header_expat_h+set}" = set; then
21671 echo $ECHO_N "(cached) $ECHO_C" >&6
21672else
21673 ac_cv_header_expat_h=$ac_header_preproc
21674fi
21675echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21676echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21677
21678fi
21679if test $ac_cv_header_expat_h = yes; then
21680 found_expat_h=1
21681fi
21682
21683
21684 if test "x$found_expat_h" = "x1"; then
21685 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21686echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21687if test "${wx_cv_expat_is_not_broken+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21689else
21690
21691
21692
21693 ac_ext=cc
21694ac_cpp='$CXXCPP $CPPFLAGS'
21695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21698
21699 cat >conftest.$ac_ext <<_ACEOF
21700/* confdefs.h. */
21701_ACEOF
21702cat confdefs.h >>conftest.$ac_ext
21703cat >>conftest.$ac_ext <<_ACEOF
21704/* end confdefs.h. */
21705#include <expat.h>
21706int
21707main ()
21708{
21709
21710 ;
21711 return 0;
21712}
21713_ACEOF
21714rm -f conftest.$ac_objext
21715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21716 (eval $ac_compile) 2>conftest.er1
a848cd7e 21717 ac_status=$?
ac1cb8d3
VS
21718 grep -v '^ *+' conftest.er1 >conftest.err
21719 rm -f conftest.er1
21720 cat conftest.err >&5
a848cd7e
SC
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } &&
7714864e 21723 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21726 ac_status=$?
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; } &&
21729 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731 (eval $ac_try) 2>&5
21732 ac_status=$?
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); }; }; then
21735 wx_cv_expat_is_not_broken=yes
21736else
21737 echo "$as_me: failed program was:" >&5
21738sed 's/^/| /' conftest.$ac_ext >&5
21739
21740wx_cv_expat_is_not_broken=no
21741
21742fi
ac1cb8d3 21743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21744 ac_ext=c
21745ac_cpp='$CPP $CPPFLAGS'
21746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21748ac_compiler_gnu=$ac_cv_c_compiler_gnu
21749
21750
21751
21752fi
21753echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21754echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21755 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21756 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21757echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21758if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21760else
21761 ac_check_lib_save_LIBS=$LIBS
21762LIBS="-lexpat $LIBS"
21763cat >conftest.$ac_ext <<_ACEOF
21764/* confdefs.h. */
21765_ACEOF
21766cat confdefs.h >>conftest.$ac_ext
21767cat >>conftest.$ac_ext <<_ACEOF
21768/* end confdefs.h. */
21769
21770/* Override any gcc2 internal prototype to avoid an error. */
21771#ifdef __cplusplus
21772extern "C"
21773#endif
21774/* We use char because int might match the return type of a gcc2
21775 builtin and then its argument prototype would still apply. */
21776char XML_ParserCreate ();
21777int
21778main ()
21779{
21780XML_ParserCreate ();
21781 ;
21782 return 0;
21783}
21784_ACEOF
21785rm -f conftest.$ac_objext conftest$ac_exeext
21786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21787 (eval $ac_link) 2>conftest.er1
a848cd7e 21788 ac_status=$?
ac1cb8d3
VS
21789 grep -v '^ *+' conftest.er1 >conftest.err
21790 rm -f conftest.er1
21791 cat conftest.err >&5
a848cd7e
SC
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } &&
7714864e 21794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21796 (eval $ac_try) 2>&5
21797 ac_status=$?
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); }; } &&
21800 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802 (eval $ac_try) 2>&5
21803 ac_status=$?
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); }; }; then
21806 ac_cv_lib_expat_XML_ParserCreate=yes
21807else
21808 echo "$as_me: failed program was:" >&5
21809sed 's/^/| /' conftest.$ac_ext >&5
21810
21811ac_cv_lib_expat_XML_ParserCreate=no
21812fi
ac1cb8d3
VS
21813rm -f conftest.err conftest.$ac_objext \
21814 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21815LIBS=$ac_check_lib_save_LIBS
21816fi
21817echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21818echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21819if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21820 EXPAT_LINK=" -lexpat"
21821fi
21822
21823 fi
21824 fi
21825 if test "x$EXPAT_LINK" = "x" ; then
21826 if test "$wxUSE_EXPAT" = "sys" ; then
21827 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21828echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21829 { (exit 1); exit 1; }; }
21830 else
21831 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21832echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21833 wxUSE_EXPAT=builtin
21834 fi
21835 else
21836 wxUSE_EXPAT=sys
21837 fi
21838 fi
21839 if test "$wxUSE_EXPAT" = "builtin" ; then
21840
21841
21842subdirs="$subdirs src/expat"
21843
21844 fi
21845fi
21846
21847
21848
21849if test "$wxUSE_LIBMSPACK" != "no"; then
21850
21851 if test "${ac_cv_header_mspack_h+set}" = set; then
21852 echo "$as_me:$LINENO: checking for mspack.h" >&5
21853echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21854if test "${ac_cv_header_mspack_h+set}" = set; then
21855 echo $ECHO_N "(cached) $ECHO_C" >&6
21856fi
21857echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21858echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21859else
21860 # Is the header compilable?
21861echo "$as_me:$LINENO: checking mspack.h usability" >&5
21862echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21863cat >conftest.$ac_ext <<_ACEOF
21864/* confdefs.h. */
21865_ACEOF
21866cat confdefs.h >>conftest.$ac_ext
21867cat >>conftest.$ac_ext <<_ACEOF
21868/* end confdefs.h. */
21869$ac_includes_default
21870#include <mspack.h>
21871_ACEOF
21872rm -f conftest.$ac_objext
21873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21874 (eval $ac_compile) 2>conftest.er1
a848cd7e 21875 ac_status=$?
ac1cb8d3
VS
21876 grep -v '^ *+' conftest.er1 >conftest.err
21877 rm -f conftest.er1
21878 cat conftest.err >&5
a848cd7e
SC
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); } &&
7714864e 21881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883 (eval $ac_try) 2>&5
21884 ac_status=$?
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; } &&
21887 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; }; then
21893 ac_header_compiler=yes
21894else
21895 echo "$as_me: failed program was:" >&5
21896sed 's/^/| /' conftest.$ac_ext >&5
21897
21898ac_header_compiler=no
21899fi
ac1cb8d3 21900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21901echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21902echo "${ECHO_T}$ac_header_compiler" >&6
21903
21904# Is the header present?
21905echo "$as_me:$LINENO: checking mspack.h presence" >&5
21906echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21907cat >conftest.$ac_ext <<_ACEOF
21908/* confdefs.h. */
21909_ACEOF
21910cat confdefs.h >>conftest.$ac_ext
21911cat >>conftest.$ac_ext <<_ACEOF
21912/* end confdefs.h. */
21913#include <mspack.h>
21914_ACEOF
21915if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21916 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21917 ac_status=$?
21918 grep -v '^ *+' conftest.er1 >conftest.err
21919 rm -f conftest.er1
21920 cat conftest.err >&5
21921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21922 (exit $ac_status); } >/dev/null; then
21923 if test -s conftest.err; then
21924 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21926 else
21927 ac_cpp_err=
21928 fi
21929else
21930 ac_cpp_err=yes
21931fi
21932if test -z "$ac_cpp_err"; then
21933 ac_header_preproc=yes
21934else
21935 echo "$as_me: failed program was:" >&5
21936sed 's/^/| /' conftest.$ac_ext >&5
21937
21938 ac_header_preproc=no
21939fi
21940rm -f conftest.err conftest.$ac_ext
21941echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21942echo "${ECHO_T}$ac_header_preproc" >&6
21943
21944# So? What about this header?
ac1cb8d3
VS
21945case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21946 yes:no: )
a848cd7e
SC
21947 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21948echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21949 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21950echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21951 ac_header_preproc=yes
a848cd7e 21952 ;;
ac1cb8d3 21953 no:yes:* )
a848cd7e
SC
21954 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21955echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21956 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21957echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21958 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21959echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21960 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21961echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21962 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21963echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21964 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21965echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21966 (
21967 cat <<\_ASBOX
ac1cb8d3
VS
21968## ----------------------------------------- ##
21969## Report this to wx-dev@lists.wxwidgets.org ##
21970## ----------------------------------------- ##
a848cd7e
SC
21971_ASBOX
21972 ) |
21973 sed "s/^/$as_me: WARNING: /" >&2
21974 ;;
21975esac
21976echo "$as_me:$LINENO: checking for mspack.h" >&5
21977echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21978if test "${ac_cv_header_mspack_h+set}" = set; then
21979 echo $ECHO_N "(cached) $ECHO_C" >&6
21980else
21981 ac_cv_header_mspack_h=$ac_header_preproc
21982fi
21983echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21984echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21985
21986fi
21987if test $ac_cv_header_mspack_h = yes; then
21988 found_mspack_h=1
21989fi
21990
21991
21992 if test "x$found_mspack_h" = "x1"; then
21993 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21994echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21995if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21997else
21998 ac_check_lib_save_LIBS=$LIBS
21999LIBS="-lmspack $LIBS"
22000cat >conftest.$ac_ext <<_ACEOF
22001/* confdefs.h. */
22002_ACEOF
22003cat confdefs.h >>conftest.$ac_ext
22004cat >>conftest.$ac_ext <<_ACEOF
22005/* end confdefs.h. */
22006
22007/* Override any gcc2 internal prototype to avoid an error. */
22008#ifdef __cplusplus
22009extern "C"
22010#endif
22011/* We use char because int might match the return type of a gcc2
22012 builtin and then its argument prototype would still apply. */
22013char mspack_create_chm_decompressor ();
22014int
22015main ()
22016{
22017mspack_create_chm_decompressor ();
22018 ;
22019 return 0;
22020}
22021_ACEOF
22022rm -f conftest.$ac_objext conftest$ac_exeext
22023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22024 (eval $ac_link) 2>conftest.er1
a848cd7e 22025 ac_status=$?
ac1cb8d3
VS
22026 grep -v '^ *+' conftest.er1 >conftest.err
22027 rm -f conftest.er1
22028 cat conftest.err >&5
a848cd7e
SC
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } &&
7714864e 22031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033 (eval $ac_try) 2>&5
22034 ac_status=$?
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; } &&
22037 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22039 (eval $ac_try) 2>&5
22040 ac_status=$?
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); }; }; then
22043 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22044else
22045 echo "$as_me: failed program was:" >&5
22046sed 's/^/| /' conftest.$ac_ext >&5
22047
22048ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22049fi
ac1cb8d3
VS
22050rm -f conftest.err conftest.$ac_objext \
22051 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22052LIBS=$ac_check_lib_save_LIBS
22053fi
22054echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22055echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22056if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22057 MSPACK_LINK=" -lmspack"
22058fi
22059
22060 fi
22061 if test "x$MSPACK_LINK" = "x" ; then
22062 wxUSE_LIBMSPACK=no
22063 else
22064 cat >>confdefs.h <<\_ACEOF
22065#define wxUSE_LIBMSPACK 1
22066_ACEOF
22067
22068 fi
22069fi
22070
22071
22072
22073AFMINSTALL=
22074WIN32INSTALL=
22075
22076TOOLKIT=
22077TOOLKIT_INCLUDE=
22078WIDGET_SET=
22079
22080if test "$USE_WIN32" = 1 ; then
22081
22082for ac_header in w32api.h
22083do
22084as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22085if eval "test \"\${$as_ac_Header+set}\" = set"; then
22086 echo "$as_me:$LINENO: checking for $ac_header" >&5
22087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22088if eval "test \"\${$as_ac_Header+set}\" = set"; then
22089 echo $ECHO_N "(cached) $ECHO_C" >&6
22090fi
22091echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22092echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22093else
22094 # Is the header compilable?
22095echo "$as_me:$LINENO: checking $ac_header usability" >&5
22096echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22097cat >conftest.$ac_ext <<_ACEOF
22098/* confdefs.h. */
22099_ACEOF
22100cat confdefs.h >>conftest.$ac_ext
22101cat >>conftest.$ac_ext <<_ACEOF
22102/* end confdefs.h. */
22103$ac_includes_default
22104#include <$ac_header>
22105_ACEOF
22106rm -f conftest.$ac_objext
22107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22108 (eval $ac_compile) 2>conftest.er1
a848cd7e 22109 ac_status=$?
ac1cb8d3
VS
22110 grep -v '^ *+' conftest.er1 >conftest.err
22111 rm -f conftest.er1
22112 cat conftest.err >&5
a848cd7e
SC
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); } &&
7714864e 22115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22118 ac_status=$?
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; } &&
22121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22124 ac_status=$?
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; }; then
22127 ac_header_compiler=yes
22128else
22129 echo "$as_me: failed program was:" >&5
22130sed 's/^/| /' conftest.$ac_ext >&5
22131
22132ac_header_compiler=no
22133fi
ac1cb8d3 22134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22136echo "${ECHO_T}$ac_header_compiler" >&6
22137
22138# Is the header present?
22139echo "$as_me:$LINENO: checking $ac_header presence" >&5
22140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22141cat >conftest.$ac_ext <<_ACEOF
22142/* confdefs.h. */
22143_ACEOF
22144cat confdefs.h >>conftest.$ac_ext
22145cat >>conftest.$ac_ext <<_ACEOF
22146/* end confdefs.h. */
22147#include <$ac_header>
22148_ACEOF
22149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22151 ac_status=$?
22152 grep -v '^ *+' conftest.er1 >conftest.err
22153 rm -f conftest.er1
22154 cat conftest.err >&5
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } >/dev/null; then
22157 if test -s conftest.err; then
22158 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22160 else
22161 ac_cpp_err=
22162 fi
22163else
22164 ac_cpp_err=yes
22165fi
22166if test -z "$ac_cpp_err"; then
22167 ac_header_preproc=yes
22168else
22169 echo "$as_me: failed program was:" >&5
22170sed 's/^/| /' conftest.$ac_ext >&5
22171
22172 ac_header_preproc=no
22173fi
22174rm -f conftest.err conftest.$ac_ext
22175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22176echo "${ECHO_T}$ac_header_preproc" >&6
22177
22178# So? What about this header?
ac1cb8d3
VS
22179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22180 yes:no: )
a848cd7e
SC
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22185 ac_header_preproc=yes
a848cd7e 22186 ;;
ac1cb8d3 22187 no:yes:* )
a848cd7e
SC
22188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22200 (
22201 cat <<\_ASBOX
ac1cb8d3
VS
22202## ----------------------------------------- ##
22203## Report this to wx-dev@lists.wxwidgets.org ##
22204## ----------------------------------------- ##
a848cd7e
SC
22205_ASBOX
22206 ) |
22207 sed "s/^/$as_me: WARNING: /" >&2
22208 ;;
22209esac
22210echo "$as_me:$LINENO: checking for $ac_header" >&5
22211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22212if eval "test \"\${$as_ac_Header+set}\" = set"; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22214else
ac1cb8d3 22215 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22216fi
22217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22219
22220fi
22221if test `eval echo '${'$as_ac_Header'}'` = yes; then
22222 cat >>confdefs.h <<_ACEOF
22223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22224_ACEOF
22225
22226fi
22227
22228done
22229
22230 if test "${ac_cv_header_windows_h+set}" = set; then
22231 echo "$as_me:$LINENO: checking for windows.h" >&5
22232echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22233if test "${ac_cv_header_windows_h+set}" = set; then
22234 echo $ECHO_N "(cached) $ECHO_C" >&6
22235fi
22236echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22237echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22238else
22239 # Is the header compilable?
22240echo "$as_me:$LINENO: checking windows.h usability" >&5
22241echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22242cat >conftest.$ac_ext <<_ACEOF
22243/* confdefs.h. */
22244_ACEOF
22245cat confdefs.h >>conftest.$ac_ext
22246cat >>conftest.$ac_ext <<_ACEOF
22247/* end confdefs.h. */
22248$ac_includes_default
22249#include <windows.h>
22250_ACEOF
22251rm -f conftest.$ac_objext
22252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22253 (eval $ac_compile) 2>conftest.er1
a848cd7e 22254 ac_status=$?
ac1cb8d3
VS
22255 grep -v '^ *+' conftest.er1 >conftest.err
22256 rm -f conftest.er1
22257 cat conftest.err >&5
a848cd7e
SC
22258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22259 (exit $ac_status); } &&
7714864e 22260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22262 (eval $ac_try) 2>&5
22263 ac_status=$?
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); }; } &&
22266 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22269 ac_status=$?
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
22272 ac_header_compiler=yes
22273else
22274 echo "$as_me: failed program was:" >&5
22275sed 's/^/| /' conftest.$ac_ext >&5
22276
22277ac_header_compiler=no
22278fi
ac1cb8d3 22279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22280echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22281echo "${ECHO_T}$ac_header_compiler" >&6
22282
22283# Is the header present?
22284echo "$as_me:$LINENO: checking windows.h presence" >&5
22285echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22286cat >conftest.$ac_ext <<_ACEOF
22287/* confdefs.h. */
22288_ACEOF
22289cat confdefs.h >>conftest.$ac_ext
22290cat >>conftest.$ac_ext <<_ACEOF
22291/* end confdefs.h. */
22292#include <windows.h>
22293_ACEOF
22294if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22295 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22296 ac_status=$?
22297 grep -v '^ *+' conftest.er1 >conftest.err
22298 rm -f conftest.er1
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } >/dev/null; then
22302 if test -s conftest.err; then
22303 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22304 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22305 else
22306 ac_cpp_err=
22307 fi
22308else
22309 ac_cpp_err=yes
22310fi
22311if test -z "$ac_cpp_err"; then
22312 ac_header_preproc=yes
22313else
22314 echo "$as_me: failed program was:" >&5
22315sed 's/^/| /' conftest.$ac_ext >&5
22316
22317 ac_header_preproc=no
22318fi
22319rm -f conftest.err conftest.$ac_ext
22320echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22321echo "${ECHO_T}$ac_header_preproc" >&6
22322
22323# So? What about this header?
ac1cb8d3
VS
22324case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22325 yes:no: )
a848cd7e
SC
22326 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22327echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22328 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22329echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22330 ac_header_preproc=yes
a848cd7e 22331 ;;
ac1cb8d3 22332 no:yes:* )
a848cd7e
SC
22333 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22334echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22335 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22336echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22337 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22338echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22339 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22340echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22341 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22342echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22343 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22344echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22345 (
22346 cat <<\_ASBOX
ac1cb8d3
VS
22347## ----------------------------------------- ##
22348## Report this to wx-dev@lists.wxwidgets.org ##
22349## ----------------------------------------- ##
a848cd7e
SC
22350_ASBOX
22351 ) |
22352 sed "s/^/$as_me: WARNING: /" >&2
22353 ;;
22354esac
22355echo "$as_me:$LINENO: checking for windows.h" >&5
22356echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22357if test "${ac_cv_header_windows_h+set}" = set; then
22358 echo $ECHO_N "(cached) $ECHO_C" >&6
22359else
22360 ac_cv_header_windows_h=$ac_header_preproc
22361fi
22362echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22363echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22364
22365fi
22366if test $ac_cv_header_windows_h = yes; then
22367 :
22368else
22369
22370 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22371echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22372 { (exit 1); exit 1; }; }
22373
22374fi
22375
22376
22377
22378 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22379
22380 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22381 LIBS="$LIBS -loleacc"
22382 fi
22383
22384 case "${host}" in
22385 *-*-cygwin* )
22386 LIBS="$LIBS -lkernel32 -luser32"
22387 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22388 esac
22389
22390 if test "$wxUSE_ODBC" = "sys" ; then
22391 wxUSE_ODBC = "yes"
22392 fi
22393 if test "$wxUSE_ODBC" = "yes" ; then
22394 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22395 cat >>confdefs.h <<\_ACEOF
22396#define wxUSE_ODBC 1
22397_ACEOF
22398
22399 fi
22400
22401 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22402 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22403
22404 WIN32INSTALL=win32install
22405fi
22406
22407if test "$wxUSE_GUI" = "yes"; then
22408 USE_GUI=1
22409
22410 GUI_TK_LIBRARY=
22411
22412 WXGTK12=
22413 WXGTK127=
22414 WXGTK20=
22415 WXGPE=
22416
22417 if test "$wxUSE_MSW" = 1 ; then
22418 TOOLKIT=MSW
22419 GUIDIST=MSW_DIST
22420
ceec2216 22421 case "${host}" in
a848cd7e
SC
22422 *-*-mingw32* )
22423 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22424 esac
22425 fi
22426
22427 if test "$wxUSE_GTK" = 1; then
22428 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22429echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22430
22431 gtk_version_cached=1
22432 if test "${wx_cv_lib_gtk+set}" = set; then
22433 echo $ECHO_N "(cached) $ECHO_C" >&6
22434else
22435
22436 gtk_version_cached=0
22437 echo "$as_me:$LINENO: result: " >&5
22438echo "${ECHO_T}" >&6
22439
22440 GTK_MODULES=
22441 if test "$wxUSE_THREADS" = "yes"; then
22442 GTK_MODULES=gthread
22443 fi
22444
22445 wx_cv_lib_gtk=
22446 if test "x$wxUSE_GTK2" = "xyes"; then
22447 # Check whether --enable-gtktest or --disable-gtktest was given.
22448if test "${enable_gtktest+set}" = set; then
22449 enableval="$enable_gtktest"
22450
22451else
22452 enable_gtktest=yes
22453fi;
22454
22455 pkg_config_args=gtk+-2.0
22456 for module in . $GTK_MODULES
22457 do
22458 case "$module" in
22459 gthread)
22460 pkg_config_args="$pkg_config_args gthread-2.0"
22461 ;;
22462 esac
22463 done
22464
22465 no_gtk=""
22466
22467 # Extract the first word of "pkg-config", so it can be a program name with args.
22468set dummy pkg-config; ac_word=$2
22469echo "$as_me:$LINENO: checking for $ac_word" >&5
22470echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22471if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22472 echo $ECHO_N "(cached) $ECHO_C" >&6
22473else
22474 case $PKG_CONFIG in
22475 [\\/]* | ?:[\\/]*)
22476 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22477 ;;
22478 *)
22479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22480for as_dir in $PATH
22481do
22482 IFS=$as_save_IFS
22483 test -z "$as_dir" && as_dir=.
22484 for ac_exec_ext in '' $ac_executable_extensions; do
22485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22486 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22488 break 2
22489 fi
22490done
22491done
22492
22493 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22494 ;;
22495esac
22496fi
22497PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22498
22499if test -n "$PKG_CONFIG"; then
22500 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22501echo "${ECHO_T}$PKG_CONFIG" >&6
22502else
22503 echo "$as_me:$LINENO: result: no" >&5
22504echo "${ECHO_T}no" >&6
22505fi
22506
22507
22508 if test x$PKG_CONFIG != xno ; then
22509 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22510 :
22511 else
c2218763 22512 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22513 no_gtk=yes
22514 PKG_CONFIG=no
22515 fi
22516 else
22517 no_gtk=yes
22518 fi
22519
22520 min_gtk_version=2.0.0
22521 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22522echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22523
22524 if test x$PKG_CONFIG != xno ; then
22525 ## don't try to run the test against uninstalled libtool libs
22526 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22527 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22528 enable_gtktest=no
22529 fi
22530
22531 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22532 :
22533 else
22534 no_gtk=yes
22535 fi
22536 fi
22537
22538 if test x"$no_gtk" = x ; then
22539 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22540 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22541 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22542 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22543 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22544 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22545 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22546 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22547 if test "x$enable_gtktest" = "xyes" ; then
22548 ac_save_CFLAGS="$CFLAGS"
22549 ac_save_LIBS="$LIBS"
22550 CFLAGS="$CFLAGS $GTK_CFLAGS"
22551 LIBS="$GTK_LIBS $LIBS"
22552 rm -f conf.gtktest
22553 if test "$cross_compiling" = yes; then
22554 echo $ac_n "cross compiling; assumed OK... $ac_c"
22555else
22556 cat >conftest.$ac_ext <<_ACEOF
22557/* confdefs.h. */
22558_ACEOF
22559cat confdefs.h >>conftest.$ac_ext
22560cat >>conftest.$ac_ext <<_ACEOF
22561/* end confdefs.h. */
22562
22563#include <gtk/gtk.h>
22564#include <stdio.h>
22565#include <stdlib.h>
22566
22567int
22568main ()
22569{
22570 int major, minor, micro;
22571 char *tmp_version;
22572
22573 system ("touch conf.gtktest");
22574
22575 /* HP/UX 9 (%@#!) writes to sscanf strings */
22576 tmp_version = g_strdup("$min_gtk_version");
22577 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22578 printf("%s, bad version string\n", "$min_gtk_version");
22579 exit(1);
22580 }
22581
22582 if ((gtk_major_version != $gtk_config_major_version) ||
22583 (gtk_minor_version != $gtk_config_minor_version) ||
22584 (gtk_micro_version != $gtk_config_micro_version))
22585 {
22586 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22587 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22588 gtk_major_version, gtk_minor_version, gtk_micro_version);
22589 printf ("*** was found! If pkg-config was correct, then it is best\n");
22590 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22591 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22592 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22593 printf("*** required on your system.\n");
22594 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22595 printf("*** to point to the correct configuration files\n");
22596 }
22597 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22598 (gtk_minor_version != GTK_MINOR_VERSION) ||
22599 (gtk_micro_version != GTK_MICRO_VERSION))
22600 {
22601 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22602 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22603 printf("*** library (version %d.%d.%d)\n",
22604 gtk_major_version, gtk_minor_version, gtk_micro_version);
22605 }
22606 else
22607 {
22608 if ((gtk_major_version > major) ||
22609 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22610 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22611 {
22612 return 0;
22613 }
22614 else
22615 {
22616 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22617 gtk_major_version, gtk_minor_version, gtk_micro_version);
22618 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22619 major, minor, micro);
22620 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22621 printf("***\n");
22622 printf("*** If you have already installed a sufficiently new version, this error\n");
22623 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22624 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22625 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22626 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22627 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22628 printf("*** so that the correct libraries are found at run-time))\n");
22629 }
22630 }
22631 return 1;
22632}
22633
22634_ACEOF
22635rm -f conftest$ac_exeext
22636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22637 (eval $ac_link) 2>&5
22638 ac_status=$?
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642 (eval $ac_try) 2>&5
22643 ac_status=$?
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; }; then
22646 :
22647else
22648 echo "$as_me: program exited with status $ac_status" >&5
22649echo "$as_me: failed program was:" >&5
22650sed 's/^/| /' conftest.$ac_ext >&5
22651
22652( exit $ac_status )
22653no_gtk=yes
22654fi
ac1cb8d3 22655rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22656fi
22657 CFLAGS="$ac_save_CFLAGS"
22658 LIBS="$ac_save_LIBS"
22659 fi
22660 fi
22661 if test "x$no_gtk" = x ; then
22662 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22663echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22664 wx_cv_lib_gtk=2.0
22665 else
22666 echo "$as_me:$LINENO: result: no" >&5
22667echo "${ECHO_T}no" >&6
22668 if test "$PKG_CONFIG" = "no" ; then
22669 echo "*** A new enough version of pkg-config was not found."
22670 echo "*** See http://pkgconfig.sourceforge.net"
22671 else
22672 if test -f conf.gtktest ; then
22673 :
22674 else
22675 echo "*** Could not run GTK+ test program, checking why..."
22676 ac_save_CFLAGS="$CFLAGS"
22677 ac_save_LIBS="$LIBS"
22678 CFLAGS="$CFLAGS $GTK_CFLAGS"
22679 LIBS="$LIBS $GTK_LIBS"
22680 cat >conftest.$ac_ext <<_ACEOF
22681/* confdefs.h. */
22682_ACEOF
22683cat confdefs.h >>conftest.$ac_ext
22684cat >>conftest.$ac_ext <<_ACEOF
22685/* end confdefs.h. */
22686
22687#include <gtk/gtk.h>
22688#include <stdio.h>
22689
22690int
22691main ()
22692{
22693 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22694 ;
22695 return 0;
22696}
22697_ACEOF
22698rm -f conftest.$ac_objext conftest$ac_exeext
22699if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22700 (eval $ac_link) 2>conftest.er1
a848cd7e 22701 ac_status=$?
ac1cb8d3
VS
22702 grep -v '^ *+' conftest.er1 >conftest.err
22703 rm -f conftest.er1
22704 cat conftest.err >&5
a848cd7e
SC
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } &&
7714864e 22707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709 (eval $ac_try) 2>&5
22710 ac_status=$?
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; } &&
22713 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22715 (eval $ac_try) 2>&5
22716 ac_status=$?
22717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718 (exit $ac_status); }; }; then
22719 echo "*** The test program compiled, but did not run. This usually means"
22720 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22721 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22722 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22723 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22724 echo "*** is required on your system"
22725 echo "***"
22726 echo "*** If you have an old version installed, it is best to remove it, although"
22727 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22728else
22729 echo "$as_me: failed program was:" >&5
22730sed 's/^/| /' conftest.$ac_ext >&5
22731
22732 echo "*** The test program failed to compile or link. See the file config.log for the"
22733 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22734fi
ac1cb8d3
VS
22735rm -f conftest.err conftest.$ac_objext \
22736 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22737 CFLAGS="$ac_save_CFLAGS"
22738 LIBS="$ac_save_LIBS"
22739 fi
22740 fi
22741 GTK_CFLAGS=""
22742 GTK_LIBS=""
22743 :
22744 fi
22745
22746
22747 rm -f conf.gtktest
22748
22749 else
22750
22751# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22752if test "${with_gtk_prefix+set}" = set; then
22753 withval="$with_gtk_prefix"
22754 gtk_config_prefix="$withval"
22755else
22756 gtk_config_prefix=""
22757fi;
22758
22759# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22760if test "${with_gtk_exec_prefix+set}" = set; then
22761 withval="$with_gtk_exec_prefix"
22762 gtk_config_exec_prefix="$withval"
22763else
22764 gtk_config_exec_prefix=""
22765fi;
22766# Check whether --enable-gtktest or --disable-gtktest was given.
22767if test "${enable_gtktest+set}" = set; then
22768 enableval="$enable_gtktest"
22769
22770else
22771 enable_gtktest=yes
22772fi;
22773
22774 for module in . $GTK_MODULES
22775 do
22776 case "$module" in
22777 gthread)
22778 gtk_config_args="$gtk_config_args gthread"
22779 ;;
22780 esac
22781 done
22782
22783 if test x$gtk_config_exec_prefix != x ; then
22784 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22785 if test x${GTK_CONFIG+set} != xset ; then
22786 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22787 fi
22788 fi
22789 if test x$gtk_config_prefix != x ; then
22790 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22791 if test x${GTK_CONFIG+set} != xset ; then
22792 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22793 fi
22794 fi
22795
22796 # Extract the first word of "gtk-config", so it can be a program name with args.
22797set dummy gtk-config; ac_word=$2
22798echo "$as_me:$LINENO: checking for $ac_word" >&5
22799echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22800if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22801 echo $ECHO_N "(cached) $ECHO_C" >&6
22802else
22803 case $GTK_CONFIG in
22804 [\\/]* | ?:[\\/]*)
22805 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22806 ;;
22807 *)
22808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22809for as_dir in $PATH
22810do
22811 IFS=$as_save_IFS
22812 test -z "$as_dir" && as_dir=.
22813 for ac_exec_ext in '' $ac_executable_extensions; do
22814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22815 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22817 break 2
22818 fi
22819done
22820done
22821
22822 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22823 ;;
22824esac
22825fi
22826GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22827
22828if test -n "$GTK_CONFIG"; then
22829 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22830echo "${ECHO_T}$GTK_CONFIG" >&6
22831else
22832 echo "$as_me:$LINENO: result: no" >&5
22833echo "${ECHO_T}no" >&6
22834fi
22835
22836 min_gtk_version=1.2.7
22837 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22838echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22839 no_gtk=""
22840 if test "$GTK_CONFIG" = "no" ; then
22841 no_gtk=yes
22842 else
22843 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22844 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22845 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22846 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22847 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22848 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22849 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22850 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22851 if test "x$enable_gtktest" = "xyes" ; then
22852 ac_save_CFLAGS="$CFLAGS"
22853 ac_save_LIBS="$LIBS"
22854 CFLAGS="$CFLAGS $GTK_CFLAGS"
22855 LIBS="$GTK_LIBS $LIBS"
22856 rm -f conf.gtktest
22857 if test "$cross_compiling" = yes; then
22858 echo $ac_n "cross compiling; assumed OK... $ac_c"
22859else
22860 cat >conftest.$ac_ext <<_ACEOF
22861/* confdefs.h. */
22862_ACEOF
22863cat confdefs.h >>conftest.$ac_ext
22864cat >>conftest.$ac_ext <<_ACEOF
22865/* end confdefs.h. */
22866
22867#include <gtk/gtk.h>
22868#include <stdio.h>
22869#include <stdlib.h>
22870
22871int
22872main ()
22873{
22874 int major, minor, micro;
22875 char *tmp_version;
22876
22877 system ("touch conf.gtktest");
22878
22879 /* HP/UX 9 (%@#!) writes to sscanf strings */
22880 tmp_version = g_strdup("$min_gtk_version");
22881 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22882 printf("%s, bad version string\n", "$min_gtk_version");
22883 exit(1);
22884 }
22885
22886 if ((gtk_major_version != $gtk_config_major_version) ||
22887 (gtk_minor_version != $gtk_config_minor_version) ||
22888 (gtk_micro_version != $gtk_config_micro_version))
22889 {
22890 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22891 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22892 gtk_major_version, gtk_minor_version, gtk_micro_version);
22893 printf ("*** was found! If gtk-config was correct, then it is best\n");
22894 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22895 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22896 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22897 printf("*** required on your system.\n");
22898 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22899 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22900 printf("*** before re-running configure\n");
22901 }
22902#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22903 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22904 (gtk_minor_version != GTK_MINOR_VERSION) ||
22905 (gtk_micro_version != GTK_MICRO_VERSION))
22906 {
22907 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22908 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22909 printf("*** library (version %d.%d.%d)\n",
22910 gtk_major_version, gtk_minor_version, gtk_micro_version);
22911 }
22912#endif /* defined (GTK_MAJOR_VERSION) ... */
22913 else
22914 {
22915 if ((gtk_major_version > major) ||
22916 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22917 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22918 {
22919 return 0;
22920 }
22921 else
22922 {
22923 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22924 gtk_major_version, gtk_minor_version, gtk_micro_version);
22925 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22926 major, minor, micro);
22927 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22928 printf("***\n");
22929 printf("*** If you have already installed a sufficiently new version, this error\n");
22930 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22931 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22932 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22933 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22934 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22935 printf("*** so that the correct libraries are found at run-time))\n");
22936 }
22937 }
22938 return 1;
22939}
22940
22941_ACEOF
22942rm -f conftest$ac_exeext
22943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22944 (eval $ac_link) 2>&5
22945 ac_status=$?
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22949 (eval $ac_try) 2>&5
22950 ac_status=$?
22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952 (exit $ac_status); }; }; then
22953 :
22954else
22955 echo "$as_me: program exited with status $ac_status" >&5
22956echo "$as_me: failed program was:" >&5
22957sed 's/^/| /' conftest.$ac_ext >&5
22958
22959( exit $ac_status )
22960no_gtk=yes
22961fi
ac1cb8d3 22962rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22963fi
22964 CFLAGS="$ac_save_CFLAGS"
22965 LIBS="$ac_save_LIBS"
22966 fi
22967 fi
22968 if test "x$no_gtk" = x ; then
22969 echo "$as_me:$LINENO: result: yes" >&5
22970echo "${ECHO_T}yes" >&6
22971 wx_cv_lib_gtk=1.2.7
22972 else
22973 echo "$as_me:$LINENO: result: no" >&5
22974echo "${ECHO_T}no" >&6
22975 if test "$GTK_CONFIG" = "no" ; then
22976 echo "*** The gtk-config script installed by GTK could not be found"
22977 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22978 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22979 echo "*** full path to gtk-config."
22980 else
22981 if test -f conf.gtktest ; then
22982 :
22983 else
22984 echo "*** Could not run GTK test program, checking why..."
22985 CFLAGS="$CFLAGS $GTK_CFLAGS"
22986 LIBS="$LIBS $GTK_LIBS"
22987 cat >conftest.$ac_ext <<_ACEOF
22988/* confdefs.h. */
22989_ACEOF
22990cat confdefs.h >>conftest.$ac_ext
22991cat >>conftest.$ac_ext <<_ACEOF
22992/* end confdefs.h. */
22993
22994#include <gtk/gtk.h>
22995#include <stdio.h>
22996
22997int
22998main ()
22999{
23000 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23001 ;
23002 return 0;
23003}
23004_ACEOF
23005rm -f conftest.$ac_objext conftest$ac_exeext
23006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23007 (eval $ac_link) 2>conftest.er1
a848cd7e 23008 ac_status=$?
ac1cb8d3
VS
23009 grep -v '^ *+' conftest.er1 >conftest.err
23010 rm -f conftest.er1
23011 cat conftest.err >&5
a848cd7e
SC
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); } &&
7714864e 23014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23017 ac_status=$?
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; } &&
23020 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23022 (eval $ac_try) 2>&5
23023 ac_status=$?
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); }; }; then
23026 echo "*** The test program compiled, but did not run. This usually means"
23027 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23028 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23029 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23030 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23031 echo "*** is required on your system"
23032 echo "***"
23033 echo "*** If you have an old version installed, it is best to remove it, although"
23034 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23035 echo "***"
23036 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23037 echo "*** came with the system with the command"
23038 echo "***"
23039 echo "*** rpm --erase --nodeps gtk gtk-devel"
23040else
23041 echo "$as_me: failed program was:" >&5
23042sed 's/^/| /' conftest.$ac_ext >&5
23043
23044 echo "*** The test program failed to compile or link. See the file config.log for the"
23045 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23046 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23047 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23048fi
ac1cb8d3
VS
23049rm -f conftest.err conftest.$ac_objext \
23050 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23051 CFLAGS="$ac_save_CFLAGS"
23052 LIBS="$ac_save_LIBS"
23053 fi
23054 fi
23055 GTK_CFLAGS=""
23056 GTK_LIBS=""
23057 :
23058 fi
23059
23060
23061 rm -f conf.gtktest
23062
23063
23064 if test -z "$wx_cv_lib_gtk"; then
23065
23066# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23067if test "${with_gtk_prefix+set}" = set; then
23068 withval="$with_gtk_prefix"
23069 gtk_config_prefix="$withval"
23070else
23071 gtk_config_prefix=""
23072fi;
23073
23074# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23075if test "${with_gtk_exec_prefix+set}" = set; then
23076 withval="$with_gtk_exec_prefix"
23077 gtk_config_exec_prefix="$withval"
23078else
23079 gtk_config_exec_prefix=""
23080fi;
23081# Check whether --enable-gtktest or --disable-gtktest was given.
23082if test "${enable_gtktest+set}" = set; then
23083 enableval="$enable_gtktest"
23084
23085else
23086 enable_gtktest=yes
23087fi;
23088
23089 for module in . $GTK_MODULES
23090 do
23091 case "$module" in
23092 gthread)
23093 gtk_config_args="$gtk_config_args gthread"
23094 ;;
23095 esac
23096 done
23097
23098 if test x$gtk_config_exec_prefix != x ; then
23099 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23100 if test x${GTK_CONFIG+set} != xset ; then
23101 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23102 fi
23103 fi
23104 if test x$gtk_config_prefix != x ; then
23105 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23106 if test x${GTK_CONFIG+set} != xset ; then
23107 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23108 fi
23109 fi
23110
23111 # Extract the first word of "gtk-config", so it can be a program name with args.
23112set dummy gtk-config; ac_word=$2
23113echo "$as_me:$LINENO: checking for $ac_word" >&5
23114echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23115if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23116 echo $ECHO_N "(cached) $ECHO_C" >&6
23117else
23118 case $GTK_CONFIG in
23119 [\\/]* | ?:[\\/]*)
23120 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23121 ;;
23122 *)
23123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23124for as_dir in $PATH
23125do
23126 IFS=$as_save_IFS
23127 test -z "$as_dir" && as_dir=.
23128 for ac_exec_ext in '' $ac_executable_extensions; do
23129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23130 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23132 break 2
23133 fi
23134done
23135done
23136
23137 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23138 ;;
23139esac
23140fi
23141GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23142
23143if test -n "$GTK_CONFIG"; then
23144 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23145echo "${ECHO_T}$GTK_CONFIG" >&6
23146else
23147 echo "$as_me:$LINENO: result: no" >&5
23148echo "${ECHO_T}no" >&6
23149fi
23150
23151 min_gtk_version=1.2.3
23152 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23153echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23154 no_gtk=""
23155 if test "$GTK_CONFIG" = "no" ; then
23156 no_gtk=yes
23157 else
23158 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23159 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23160 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23161 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23162 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23163 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23164 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23165 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23166 if test "x$enable_gtktest" = "xyes" ; then
23167 ac_save_CFLAGS="$CFLAGS"
23168 ac_save_LIBS="$LIBS"
23169 CFLAGS="$CFLAGS $GTK_CFLAGS"
23170 LIBS="$GTK_LIBS $LIBS"
23171 rm -f conf.gtktest
23172 if test "$cross_compiling" = yes; then
23173 echo $ac_n "cross compiling; assumed OK... $ac_c"
23174else
23175 cat >conftest.$ac_ext <<_ACEOF
23176/* confdefs.h. */
23177_ACEOF
23178cat confdefs.h >>conftest.$ac_ext
23179cat >>conftest.$ac_ext <<_ACEOF
23180/* end confdefs.h. */
23181
23182#include <gtk/gtk.h>
23183#include <stdio.h>
23184#include <stdlib.h>
23185
23186int
23187main ()
23188{
23189 int major, minor, micro;
23190 char *tmp_version;
23191
23192 system ("touch conf.gtktest");
23193
23194 /* HP/UX 9 (%@#!) writes to sscanf strings */
23195 tmp_version = g_strdup("$min_gtk_version");
23196 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23197 printf("%s, bad version string\n", "$min_gtk_version");
23198 exit(1);
23199 }
23200
23201 if ((gtk_major_version != $gtk_config_major_version) ||
23202 (gtk_minor_version != $gtk_config_minor_version) ||
23203 (gtk_micro_version != $gtk_config_micro_version))
23204 {
23205 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23206 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23207 gtk_major_version, gtk_minor_version, gtk_micro_version);
23208 printf ("*** was found! If gtk-config was correct, then it is best\n");
23209 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23210 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23211 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23212 printf("*** required on your system.\n");
23213 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23214 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23215 printf("*** before re-running configure\n");
23216 }
23217#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23218 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23219 (gtk_minor_version != GTK_MINOR_VERSION) ||
23220 (gtk_micro_version != GTK_MICRO_VERSION))
23221 {
23222 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23223 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23224 printf("*** library (version %d.%d.%d)\n",
23225 gtk_major_version, gtk_minor_version, gtk_micro_version);
23226 }
23227#endif /* defined (GTK_MAJOR_VERSION) ... */
23228 else
23229 {
23230 if ((gtk_major_version > major) ||
23231 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23232 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23233 {
23234 return 0;
23235 }
23236 else
23237 {
23238 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23239 gtk_major_version, gtk_minor_version, gtk_micro_version);
23240 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23241 major, minor, micro);
23242 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23243 printf("***\n");
23244 printf("*** If you have already installed a sufficiently new version, this error\n");
23245 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23246 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23247 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23248 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23249 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23250 printf("*** so that the correct libraries are found at run-time))\n");
23251 }
23252 }
23253 return 1;
23254}
23255
23256_ACEOF
23257rm -f conftest$ac_exeext
23258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23259 (eval $ac_link) 2>&5
23260 ac_status=$?
23261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23265 ac_status=$?
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; }; then
23268 :
23269else
23270 echo "$as_me: program exited with status $ac_status" >&5
23271echo "$as_me: failed program was:" >&5
23272sed 's/^/| /' conftest.$ac_ext >&5
23273
23274( exit $ac_status )
23275no_gtk=yes
23276fi
ac1cb8d3 23277rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23278fi
23279 CFLAGS="$ac_save_CFLAGS"
23280 LIBS="$ac_save_LIBS"
23281 fi
23282 fi
23283 if test "x$no_gtk" = x ; then
23284 echo "$as_me:$LINENO: result: yes" >&5
23285echo "${ECHO_T}yes" >&6
23286 wx_cv_lib_gtk=1.2.3
23287 else
23288 echo "$as_me:$LINENO: result: no" >&5
23289echo "${ECHO_T}no" >&6
23290 if test "$GTK_CONFIG" = "no" ; then
23291 echo "*** The gtk-config script installed by GTK could not be found"
23292 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23293 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23294 echo "*** full path to gtk-config."
23295 else
23296 if test -f conf.gtktest ; then
23297 :
23298 else
23299 echo "*** Could not run GTK test program, checking why..."
23300 CFLAGS="$CFLAGS $GTK_CFLAGS"
23301 LIBS="$LIBS $GTK_LIBS"
23302 cat >conftest.$ac_ext <<_ACEOF
23303/* confdefs.h. */
23304_ACEOF
23305cat confdefs.h >>conftest.$ac_ext
23306cat >>conftest.$ac_ext <<_ACEOF
23307/* end confdefs.h. */
23308
23309#include <gtk/gtk.h>
23310#include <stdio.h>
23311
23312int
23313main ()
23314{
23315 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23316 ;
23317 return 0;
23318}
23319_ACEOF
23320rm -f conftest.$ac_objext conftest$ac_exeext
23321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23322 (eval $ac_link) 2>conftest.er1
a848cd7e 23323 ac_status=$?
ac1cb8d3
VS
23324 grep -v '^ *+' conftest.er1 >conftest.err
23325 rm -f conftest.er1
23326 cat conftest.err >&5
a848cd7e
SC
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } &&
7714864e 23329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23331 (eval $ac_try) 2>&5
23332 ac_status=$?
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); }; } &&
23335 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23338 ac_status=$?
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; }; then
23341 echo "*** The test program compiled, but did not run. This usually means"
23342 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23343 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23344 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23345 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23346 echo "*** is required on your system"
23347 echo "***"
23348 echo "*** If you have an old version installed, it is best to remove it, although"
23349 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23350 echo "***"
23351 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23352 echo "*** came with the system with the command"
23353 echo "***"
23354 echo "*** rpm --erase --nodeps gtk gtk-devel"
23355else
23356 echo "$as_me: failed program was:" >&5
23357sed 's/^/| /' conftest.$ac_ext >&5
23358
23359 echo "*** The test program failed to compile or link. See the file config.log for the"
23360 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23361 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23362 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23363fi
ac1cb8d3
VS
23364rm -f conftest.err conftest.$ac_objext \
23365 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23366 CFLAGS="$ac_save_CFLAGS"
23367 LIBS="$ac_save_LIBS"
23368 fi
23369 fi
23370 GTK_CFLAGS=""
23371 GTK_LIBS=""
23372 :
23373 fi
23374
23375
23376 rm -f conf.gtktest
23377
23378 fi
23379 fi
23380
23381 if test -z "$wx_cv_lib_gtk"; then
23382 wx_cv_lib_gtk=none
23383 else
23384 wx_cv_cflags_gtk=$GTK_CFLAGS
23385 wx_cv_libs_gtk=$GTK_LIBS
23386 fi
23387
23388
23389fi
23390
23391
23392 if test "$gtk_version_cached" = 1; then
23393 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23394echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23395 fi
23396
23397 case "$wx_cv_lib_gtk" in
23398 2.0) WXGTK20=1
23399 TOOLKIT_VERSION=2
23400 ;;
23401 1.2.7) WXGTK127=1
23402 WXGTK12=1
23403 ;;
23404 1.2.3) WXGTK12=1
23405 ;;
23406 *) { { echo "$as_me:$LINENO: error:
23407Please check that gtk-config is in path, the directory
23408where GTK+ libraries are installed (returned by
23409'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23410equivalent variable and GTK+ is version 1.2.3 or above.
23411 " >&5
23412echo "$as_me: error:
23413Please check that gtk-config is in path, the directory
23414where GTK+ libraries are installed (returned by
23415'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23416equivalent variable and GTK+ is version 1.2.3 or above.
23417 " >&2;}
23418 { (exit 1); exit 1; }; }
23419 ;;
23420 esac
23421
23422 if test "$WXGTK20" = 1; then
23423 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23424
23425 succeeded=no
23426
23427 if test -z "$PKG_CONFIG"; then
23428 # Extract the first word of "pkg-config", so it can be a program name with args.
23429set dummy pkg-config; ac_word=$2
23430echo "$as_me:$LINENO: checking for $ac_word" >&5
23431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23432if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23433 echo $ECHO_N "(cached) $ECHO_C" >&6
23434else
23435 case $PKG_CONFIG in
23436 [\\/]* | ?:[\\/]*)
23437 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23438 ;;
23439 *)
23440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23441for as_dir in $PATH
23442do
23443 IFS=$as_save_IFS
23444 test -z "$as_dir" && as_dir=.
23445 for ac_exec_ext in '' $ac_executable_extensions; do
23446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23447 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23449 break 2
23450 fi
23451done
23452done
23453
23454 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23455 ;;
23456esac
23457fi
23458PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23459
23460if test -n "$PKG_CONFIG"; then
23461 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23462echo "${ECHO_T}$PKG_CONFIG" >&6
23463else
23464 echo "$as_me:$LINENO: result: no" >&5
23465echo "${ECHO_T}no" >&6
23466fi
23467
23468 fi
23469
23470 if test "$PKG_CONFIG" = "no" ; then
23471 echo "*** The pkg-config script could not be found. Make sure it is"
23472 echo "*** in your path, or set the PKG_CONFIG environment variable"
23473 echo "*** to the full path to pkg-config."
23474 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23475 else
23476 PKG_CONFIG_MIN_VERSION=0.9.0
23477 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23478 echo "$as_me:$LINENO: checking for pangoft2" >&5
23479echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23480
23481 if $PKG_CONFIG --exists "pangoft2" ; then
23482 echo "$as_me:$LINENO: result: yes" >&5
23483echo "${ECHO_T}yes" >&6
23484 succeeded=yes
23485
23486 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23487echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23488 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23489 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23490echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23491
23492 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23493echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23494 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23495 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23496echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23497 else
23498 PANGOFT2_CFLAGS=""
23499 PANGOFT2_LIBS=""
23500 ## If we have a custom action on failure, don't print errors, but
23501 ## do set a variable so people can do so.
23502 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23503
23504 fi
23505
23506
23507
23508 else
23509 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23510 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23511 fi
23512 fi
23513
23514 if test $succeeded = yes; then
23515
23516 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
ceec2216
RL
23517 # FIXME: GTK_LIBS already has a lot of what this is
23518 # about to add, but we go ahead and just add
23519 # it all again anyway.
23520 # This is not a good way to manage things. And simply
23521 # uniq'ing the list later is hardly better.
a848cd7e
SC
23522 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23523
23524 else
23525
23526 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23527echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23528 wxUSE_PRINTING_ARCHITECTURE="no"
23529
23530
23531 fi
23532
23533 fi
304205f1
VS
23534
23535 save_CFLAGS="$CFLAGS"
23536 save_LIBS="$LIBS"
23537 CFLAGS="$CFLAGS $GTK_CFLAGS"
23538 LIBS="$LIBS $GTK_LIBS"
23539
23540for ac_func in pango_font_family_is_monospace
23541do
23542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23543echo "$as_me:$LINENO: checking for $ac_func" >&5
23544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23545if eval "test \"\${$as_ac_var+set}\" = set"; then
23546 echo $ECHO_N "(cached) $ECHO_C" >&6
23547else
23548 cat >conftest.$ac_ext <<_ACEOF
23549/* confdefs.h. */
23550_ACEOF
23551cat confdefs.h >>conftest.$ac_ext
23552cat >>conftest.$ac_ext <<_ACEOF
23553/* end confdefs.h. */
23554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23556#define $ac_func innocuous_$ac_func
23557
23558/* System header to define __stub macros and hopefully few prototypes,
23559 which can conflict with char $ac_func (); below.
23560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23561 <limits.h> exists even on freestanding compilers. */
23562
23563#ifdef __STDC__
23564# include <limits.h>
23565#else
23566# include <assert.h>
23567#endif
23568
23569#undef $ac_func
23570
23571/* Override any gcc2 internal prototype to avoid an error. */
23572#ifdef __cplusplus
23573extern "C"
23574{
23575#endif
23576/* We use char because int might match the return type of a gcc2
23577 builtin and then its argument prototype would still apply. */
23578char $ac_func ();
23579/* The GNU C library defines this for functions which it implements
23580 to always fail with ENOSYS. Some functions are actually named
23581 something starting with __ and the normal name is an alias. */
23582#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23583choke me
23584#else
23585char (*f) () = $ac_func;
23586#endif
23587#ifdef __cplusplus
23588}
23589#endif
23590
23591int
23592main ()
23593{
23594return f != $ac_func;
23595 ;
23596 return 0;
23597}
23598_ACEOF
23599rm -f conftest.$ac_objext conftest$ac_exeext
23600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23601 (eval $ac_link) 2>conftest.er1
23602 ac_status=$?
23603 grep -v '^ *+' conftest.er1 >conftest.err
23604 rm -f conftest.er1
23605 cat conftest.err >&5
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); } &&
7714864e 23608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
23609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610 (eval $ac_try) 2>&5
23611 ac_status=$?
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); }; } &&
23614 { ac_try='test -s conftest$ac_exeext'
23615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23616 (eval $ac_try) 2>&5
23617 ac_status=$?
23618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619 (exit $ac_status); }; }; then
23620 eval "$as_ac_var=yes"
23621else
23622 echo "$as_me: failed program was:" >&5
23623sed 's/^/| /' conftest.$ac_ext >&5
23624
23625eval "$as_ac_var=no"
23626fi
23627rm -f conftest.err conftest.$ac_objext \
23628 conftest$ac_exeext conftest.$ac_ext
23629fi
23630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23631echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23632if test `eval echo '${'$as_ac_var'}'` = yes; then
23633 cat >>confdefs.h <<_ACEOF
23634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23635_ACEOF
23636
23637fi
23638done
23639
23640 CFLAGS="$save_CFLAGS"
23641 LIBS="$save_LIBS"
a848cd7e
SC
23642 else
23643 if test "$wxUSE_UNICODE" = "yes"; then
23644 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23645echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23646 wxUSE_UNICODE=no
23647 fi
23648 fi
23649
23650 if test "$USE_DARWIN" != 1; then
23651
23652for ac_func in poll
23653do
23654as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23655echo "$as_me:$LINENO: checking for $ac_func" >&5
23656echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23657if eval "test \"\${$as_ac_var+set}\" = set"; then
23658 echo $ECHO_N "(cached) $ECHO_C" >&6
23659else
23660 cat >conftest.$ac_ext <<_ACEOF
23661/* confdefs.h. */
23662_ACEOF
23663cat confdefs.h >>conftest.$ac_ext
23664cat >>conftest.$ac_ext <<_ACEOF
23665/* end confdefs.h. */
ac1cb8d3
VS
23666/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23668#define $ac_func innocuous_$ac_func
23669
a848cd7e
SC
23670/* System header to define __stub macros and hopefully few prototypes,
23671 which can conflict with char $ac_func (); below.
23672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23673 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23674
a848cd7e
SC
23675#ifdef __STDC__
23676# include <limits.h>
23677#else
23678# include <assert.h>
23679#endif
ac1cb8d3
VS
23680
23681#undef $ac_func
23682
a848cd7e
SC
23683/* Override any gcc2 internal prototype to avoid an error. */
23684#ifdef __cplusplus
23685extern "C"
23686{
23687#endif
23688/* We use char because int might match the return type of a gcc2
23689 builtin and then its argument prototype would still apply. */
23690char $ac_func ();
23691/* The GNU C library defines this for functions which it implements
23692 to always fail with ENOSYS. Some functions are actually named
23693 something starting with __ and the normal name is an alias. */
23694#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23695choke me
23696#else
23697char (*f) () = $ac_func;
23698#endif
23699#ifdef __cplusplus
23700}
23701#endif
23702
23703int
23704main ()
23705{
23706return f != $ac_func;
23707 ;
23708 return 0;
23709}
23710_ACEOF
23711rm -f conftest.$ac_objext conftest$ac_exeext
23712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23713 (eval $ac_link) 2>conftest.er1
a848cd7e 23714 ac_status=$?
ac1cb8d3
VS
23715 grep -v '^ *+' conftest.er1 >conftest.err
23716 rm -f conftest.er1
23717 cat conftest.err >&5
a848cd7e
SC
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); } &&
7714864e 23720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; } &&
23726 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23728 (eval $ac_try) 2>&5
23729 ac_status=$?
23730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23731 (exit $ac_status); }; }; then
23732 eval "$as_ac_var=yes"
23733else
23734 echo "$as_me: failed program was:" >&5
23735sed 's/^/| /' conftest.$ac_ext >&5
23736
23737eval "$as_ac_var=no"
23738fi
ac1cb8d3
VS
23739rm -f conftest.err conftest.$ac_objext \
23740 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23741fi
23742echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23743echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23744if test `eval echo '${'$as_ac_var'}'` = yes; then
23745 cat >>confdefs.h <<_ACEOF
23746#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23747_ACEOF
23748
23749fi
23750done
23751
23752 fi
23753
23754 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23755 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23756
23757 AFMINSTALL=afminstall
23758 TOOLKIT=GTK
23759 GUIDIST=GTK_DIST
23760
23761 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23762echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23763if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23764 echo $ECHO_N "(cached) $ECHO_C" >&6
23765else
23766 ac_check_lib_save_LIBS=$LIBS
23767LIBS="-lgdk $LIBS"
23768cat >conftest.$ac_ext <<_ACEOF
23769/* confdefs.h. */
23770_ACEOF
23771cat confdefs.h >>conftest.$ac_ext
23772cat >>conftest.$ac_ext <<_ACEOF
23773/* end confdefs.h. */
23774
23775/* Override any gcc2 internal prototype to avoid an error. */
23776#ifdef __cplusplus
23777extern "C"
23778#endif
23779/* We use char because int might match the return type of a gcc2
23780 builtin and then its argument prototype would still apply. */
23781char gdk_im_open ();
23782int
23783main ()
23784{
23785gdk_im_open ();
23786 ;
23787 return 0;
23788}
23789_ACEOF
23790rm -f conftest.$ac_objext conftest$ac_exeext
23791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23792 (eval $ac_link) 2>conftest.er1
a848cd7e 23793 ac_status=$?
ac1cb8d3
VS
23794 grep -v '^ *+' conftest.er1 >conftest.err
23795 rm -f conftest.er1
23796 cat conftest.err >&5
a848cd7e
SC
23797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798 (exit $ac_status); } &&
7714864e 23799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23801 (eval $ac_try) 2>&5
23802 ac_status=$?
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); }; } &&
23805 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23807 (eval $ac_try) 2>&5
23808 ac_status=$?
23809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23810 (exit $ac_status); }; }; then
23811 ac_cv_lib_gdk_gdk_im_open=yes
23812else
23813 echo "$as_me: failed program was:" >&5
23814sed 's/^/| /' conftest.$ac_ext >&5
23815
23816ac_cv_lib_gdk_gdk_im_open=no
23817fi
ac1cb8d3
VS
23818rm -f conftest.err conftest.$ac_objext \
23819 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23820LIBS=$ac_check_lib_save_LIBS
23821fi
23822echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23823echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23824if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23825 cat >>confdefs.h <<\_ACEOF
23826#define HAVE_XIM 1
23827_ACEOF
23828
23829fi
23830
23831
23832
23833 if test "$wxUSE_GPE" = "yes"; then
23834 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23835echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23836
23837ac_find_libraries=
23838for ac_dir in $SEARCH_LIB /usr/lib;
23839 do
23840 for ac_extension in a so sl dylib; do
23841 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23842 ac_find_libraries=$ac_dir
23843 break 2
23844 fi
23845 done
23846 done
23847
23848 if test "$ac_find_libraries" != "" ; then
23849
23850 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23851 result=$?
23852 if test $result = 0; then
23853 ac_path_to_link=""
23854 else
23855 ac_path_to_link=" -L$ac_find_libraries"
23856 fi
23857
23858 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23859 WXGPE=1
23860 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23861echo "${ECHO_T}found at $ac_find_libraries" >&6
23862 else
23863 echo "$as_me:$LINENO: result: not found" >&5
23864echo "${ECHO_T}not found" >&6
23865 fi
23866
23867 fi
23868 fi
23869
23870 if test "$wxUSE_MGL" = 1; then
23871 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23872echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23873 if test "x$MGL_ROOT" = x ; then
23874 echo "$as_me:$LINENO: result: not found" >&5
23875echo "${ECHO_T}not found" >&6
23876 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23877echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23878 { (exit 1); exit 1; }; }
23879 else
23880 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23881echo "${ECHO_T}$MGL_ROOT" >&6
23882 fi
23883
23884 echo "$as_me:$LINENO: checking for libmgl location" >&5
23885echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23886 case "${host}" in
23887 *-*-linux* )
23888 if test "x$wxUSE_SHARED" = xyes ; then
23889 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23890 else
23891 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23892 fi
23893 ;;
23894 *-pc-msdosdjgpp )
23895 mgl_os_candidates="dos32/dj2"
23896 ;;
23897 *)
23898 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23899echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23900 { (exit 1); exit 1; }; }
23901 esac
23902
23903 mgl_lib_type=""
23904 mgl_os=""
23905
23906 for mgl_os_i in $mgl_os_candidates ; do
23907 if test "x$mgl_os" = x ; then
23908 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23909 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23910 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23911 mgl_lib_type=debug
23912 mgl_os=$mgl_os_i
23913 fi
23914 fi
23915 if test "x$mgl_lib_type" = x ; then
23916 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23917 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23918 mgl_lib_type=release
23919 mgl_os=$mgl_os_i
23920 fi
23921 fi
23922 fi
23923 done
23924
23925 if test "x$mgl_os" = x ; then
23926 echo "$as_me:$LINENO: result: not found" >&5
23927echo "${ECHO_T}not found" >&6
23928 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23929echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23930 { (exit 1); exit 1; }; }
23931 fi
23932 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23933echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23934
23935 wxUSE_UNIVERSAL="yes"
23936
23937 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23938 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23939
23940 AFMINSTALL=afminstall
23941 TOOLKIT=MGL
23942 GUIDIST=MGL_DIST
23943 fi
23944
23945 if test "$wxUSE_MICROWIN" = 1; then
23946 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23947echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23948 if test "x$MICROWINDOWS" = x ; then
23949 echo "$as_me:$LINENO: result: not found" >&5
23950echo "${ECHO_T}not found" >&6
23951 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23952echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23953 { (exit 1); exit 1; }; }
23954 else
23955 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23956echo "${ECHO_T}$MICROWINDOWS" >&6
23957 fi
23958
23959 if test -f $MICROWINDOWS/lib/libmwin.a; then
23960 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23961echo "${ECHO_T}MicroWindows' libraries found." >&6
23962 else
23963 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23964echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23965 { (exit 1); exit 1; }; }
23966 fi
23967
23968 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23969 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23970
23971 wxUSE_UNIVERSAL="yes"
23972
23973 AFMINSTALL=afminstall
23974 TOOLKIT=MICROWIN
23975 GUIDIST=MICROWIN_DIST
23976
23977 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23978 fi
23979
74b84332 23980 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
7714864e
RL
23981
23982if test "x$ac_path_x_has_been_run" != xyes; then
23983 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23984echo $ECHO_N "checking for X... $ECHO_C" >&6
23985
7714864e 23986ac_path_x_has_been_run=yes
a848cd7e
SC
23987
23988# Check whether --with-x or --without-x was given.
23989if test "${with_x+set}" = set; then
23990 withval="$with_x"
23991
23992fi;
23993# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23994if test "x$with_x" = xno; then
23995 # The user explicitly disabled X.
23996 have_x=disabled
23997else
23998 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23999 # Both variables are already set.
24000 have_x=yes
24001 else
24002 if test "${ac_cv_have_x+set}" = set; then
24003 echo $ECHO_N "(cached) $ECHO_C" >&6
24004else
24005 # One or both of the vars are not set, and there is no cached value.
24006ac_x_includes=no ac_x_libraries=no
24007rm -fr conftest.dir
24008if mkdir conftest.dir; then
24009 cd conftest.dir
24010 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24011 cat >Imakefile <<'_ACEOF'
24012acfindx:
24013 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24014_ACEOF
24015 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24016 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24017 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24018 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24019 for ac_extension in a so sl; do
24020 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24021 test -f $ac_im_libdir/libX11.$ac_extension; then
24022 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24023 fi
24024 done
24025 # Screen out bogus values from the imake configuration. They are
24026 # bogus both because they are the default anyway, and because
24027 # using them would break gcc on systems where it needs fixed includes.
24028 case $ac_im_incroot in
24029 /usr/include) ;;
24030 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24031 esac
24032 case $ac_im_usrlibdir in
24033 /usr/lib | /lib) ;;
24034 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24035 esac
24036 fi
24037 cd ..
24038 rm -fr conftest.dir
24039fi
24040
24041# Standard set of common directories for X headers.
24042# Check X11 before X11Rn because it is often a symlink to the current release.
24043ac_x_header_dirs='
24044/usr/X11/include
24045/usr/X11R6/include
24046/usr/X11R5/include
24047/usr/X11R4/include
24048
24049/usr/include/X11
24050/usr/include/X11R6
24051/usr/include/X11R5
24052/usr/include/X11R4
24053
24054/usr/local/X11/include
24055/usr/local/X11R6/include
24056/usr/local/X11R5/include
24057/usr/local/X11R4/include
24058
24059/usr/local/include/X11
24060/usr/local/include/X11R6
24061/usr/local/include/X11R5
24062/usr/local/include/X11R4
24063
24064/usr/X386/include
24065/usr/x386/include
24066/usr/XFree86/include/X11
24067
24068/usr/include
24069/usr/local/include
24070/usr/unsupported/include
24071/usr/athena/include
24072/usr/local/x11r5/include
24073/usr/lpp/Xamples/include
24074
24075/usr/openwin/include
24076/usr/openwin/share/include'
24077
24078if test "$ac_x_includes" = no; then
7714864e 24079 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
24080 # First, try using that file with no special directory specified.
24081 cat >conftest.$ac_ext <<_ACEOF
24082/* confdefs.h. */
24083_ACEOF
24084cat confdefs.h >>conftest.$ac_ext
24085cat >>conftest.$ac_ext <<_ACEOF
24086/* end confdefs.h. */
24087#include <X11/Intrinsic.h>
24088_ACEOF
24089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24091 ac_status=$?
24092 grep -v '^ *+' conftest.er1 >conftest.err
24093 rm -f conftest.er1
24094 cat conftest.err >&5
24095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); } >/dev/null; then
24097 if test -s conftest.err; then
24098 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24100 else
24101 ac_cpp_err=
24102 fi
24103else
24104 ac_cpp_err=yes
24105fi
24106if test -z "$ac_cpp_err"; then
24107 # We can compile using X headers with no special include directory.
24108ac_x_includes=
24109else
24110 echo "$as_me: failed program was:" >&5
24111sed 's/^/| /' conftest.$ac_ext >&5
24112
24113 for ac_dir in $ac_x_header_dirs; do
24114 if test -r "$ac_dir/X11/Intrinsic.h"; then
24115 ac_x_includes=$ac_dir
24116 break
24117 fi
24118done
24119fi
24120rm -f conftest.err conftest.$ac_ext
24121fi # $ac_x_includes = no
24122
24123if test "$ac_x_libraries" = no; then
24124 # Check for the libraries.
24125 # See if we find them without any special options.
24126 # Don't add to $LIBS permanently.
24127 ac_save_LIBS=$LIBS
24128 LIBS="-lXt $LIBS"
24129 cat >conftest.$ac_ext <<_ACEOF
24130/* confdefs.h. */
24131_ACEOF
24132cat confdefs.h >>conftest.$ac_ext
24133cat >>conftest.$ac_ext <<_ACEOF
24134/* end confdefs.h. */
24135#include <X11/Intrinsic.h>
24136int
24137main ()
24138{
24139XtMalloc (0)
24140 ;
24141 return 0;
24142}
24143_ACEOF
24144rm -f conftest.$ac_objext conftest$ac_exeext
24145if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24146 (eval $ac_link) 2>conftest.er1
a848cd7e 24147 ac_status=$?
ac1cb8d3
VS
24148 grep -v '^ *+' conftest.er1 >conftest.err
24149 rm -f conftest.er1
24150 cat conftest.err >&5
a848cd7e
SC
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); } &&
7714864e 24153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155 (eval $ac_try) 2>&5
24156 ac_status=$?
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); }; } &&
24159 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24161 (eval $ac_try) 2>&5
24162 ac_status=$?
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); }; }; then
24165 LIBS=$ac_save_LIBS
24166# We can link X programs with no special library path.
24167ac_x_libraries=
24168else
24169 echo "$as_me: failed program was:" >&5
24170sed 's/^/| /' conftest.$ac_ext >&5
24171
24172LIBS=$ac_save_LIBS
24173for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24174do
24175 # Don't even attempt the hair of trying to link an X program!
24176 for ac_extension in a so sl; do
24177 if test -r $ac_dir/libXt.$ac_extension; then
24178 ac_x_libraries=$ac_dir
24179 break 2
24180 fi
24181 done
24182done
24183fi
ac1cb8d3
VS
24184rm -f conftest.err conftest.$ac_objext \
24185 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24186fi # $ac_x_libraries = no
24187
24188if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24189 # Didn't find X anywhere. Cache the known absence of X.
24190 ac_cv_have_x="have_x=no"
24191else
24192 # Record where we found X for the cache.
24193 ac_cv_have_x="have_x=yes \
ac1cb8d3 24194 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24195fi
24196fi
24197
24198 fi
24199 eval "$ac_cv_have_x"
24200fi # $with_x != no
24201
24202if test "$have_x" != yes; then
24203 echo "$as_me:$LINENO: result: $have_x" >&5
24204echo "${ECHO_T}$have_x" >&6
24205 no_x=yes
24206else
24207 # If each of the values was on the command line, it overrides each guess.
24208 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24209 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24210 # Update the cache value to reflect the command line values.
24211 ac_cv_have_x="have_x=yes \
24212 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7714864e
RL
24213 # It might be that x_includes is empty (headers are found in the
24214 # standard search path. Then output the corresponding message
24215 ac_out_x_includes=$x_includes
24216 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24217 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24218echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
24219fi
24220
7714864e 24221fi
a848cd7e
SC
24222if test "$no_x" = yes; then
24223 # Not all programs may use this symbol, but it does not hurt to define it.
24224
24225cat >>confdefs.h <<\_ACEOF
24226#define X_DISPLAY_MISSING 1
24227_ACEOF
24228
24229 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24230else
24231 if test -n "$x_includes"; then
24232 X_CFLAGS="$X_CFLAGS -I$x_includes"
24233 fi
24234
24235 # It would also be nice to do this for all -L options, not just this one.
24236 if test -n "$x_libraries"; then
24237 X_LIBS="$X_LIBS -L$x_libraries"
24238 # For Solaris; some versions of Sun CC require a space after -R and
24239 # others require no space. Words are not sufficient . . . .
24240 case `(uname -sr) 2>/dev/null` in
24241 "SunOS 5"*)
24242 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24243echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24244 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24245 cat >conftest.$ac_ext <<_ACEOF
24246/* confdefs.h. */
24247_ACEOF
24248cat confdefs.h >>conftest.$ac_ext
24249cat >>conftest.$ac_ext <<_ACEOF
24250/* end confdefs.h. */
24251
24252int
24253main ()
24254{
24255
24256 ;
24257 return 0;
24258}
24259_ACEOF
24260rm -f conftest.$ac_objext conftest$ac_exeext
24261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24262 (eval $ac_link) 2>conftest.er1
a848cd7e 24263 ac_status=$?
ac1cb8d3
VS
24264 grep -v '^ *+' conftest.er1 >conftest.err
24265 rm -f conftest.er1
24266 cat conftest.err >&5
a848cd7e
SC
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); } &&
7714864e 24269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24271 (eval $ac_try) 2>&5
24272 ac_status=$?
24273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274 (exit $ac_status); }; } &&
24275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24277 (eval $ac_try) 2>&5
24278 ac_status=$?
24279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24280 (exit $ac_status); }; }; then
24281 ac_R_nospace=yes
24282else
24283 echo "$as_me: failed program was:" >&5
24284sed 's/^/| /' conftest.$ac_ext >&5
24285
24286ac_R_nospace=no
24287fi
ac1cb8d3
VS
24288rm -f conftest.err conftest.$ac_objext \
24289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24290 if test $ac_R_nospace = yes; then
24291 echo "$as_me:$LINENO: result: no" >&5
24292echo "${ECHO_T}no" >&6
24293 X_LIBS="$X_LIBS -R$x_libraries"
24294 else
24295 LIBS="$ac_xsave_LIBS -R $x_libraries"
24296 cat >conftest.$ac_ext <<_ACEOF
24297/* confdefs.h. */
24298_ACEOF
24299cat confdefs.h >>conftest.$ac_ext
24300cat >>conftest.$ac_ext <<_ACEOF
24301/* end confdefs.h. */
24302
24303int
24304main ()
24305{
24306
24307 ;
24308 return 0;
24309}
24310_ACEOF
24311rm -f conftest.$ac_objext conftest$ac_exeext
24312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24313 (eval $ac_link) 2>conftest.er1
a848cd7e 24314 ac_status=$?
ac1cb8d3
VS
24315 grep -v '^ *+' conftest.er1 >conftest.err
24316 rm -f conftest.er1
24317 cat conftest.err >&5
a848cd7e
SC
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); } &&
7714864e 24320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24322 (eval $ac_try) 2>&5
24323 ac_status=$?
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); }; } &&
24326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24328 (eval $ac_try) 2>&5
24329 ac_status=$?
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); }; }; then
24332 ac_R_space=yes
24333else
24334 echo "$as_me: failed program was:" >&5
24335sed 's/^/| /' conftest.$ac_ext >&5
24336
24337ac_R_space=no
24338fi
ac1cb8d3
VS
24339rm -f conftest.err conftest.$ac_objext \
24340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24341 if test $ac_R_space = yes; then
24342 echo "$as_me:$LINENO: result: yes" >&5
24343echo "${ECHO_T}yes" >&6
24344 X_LIBS="$X_LIBS -R $x_libraries"
24345 else
24346 echo "$as_me:$LINENO: result: neither works" >&5
24347echo "${ECHO_T}neither works" >&6
24348 fi
24349 fi
24350 LIBS=$ac_xsave_LIBS
24351 esac
24352 fi
24353
24354 # Check for system-dependent libraries X programs must link with.
24355 # Do this before checking for the system-independent R6 libraries
24356 # (-lICE), since we may need -lsocket or whatever for X linking.
24357
24358 if test "$ISC" = yes; then
24359 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24360 else
24361 # Martyn Johnson says this is needed for Ultrix, if the X
24362 # libraries were built with DECnet support. And Karl Berry says
24363 # the Alpha needs dnet_stub (dnet does not exist).
24364 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24365 cat >conftest.$ac_ext <<_ACEOF
24366/* confdefs.h. */
24367_ACEOF
24368cat confdefs.h >>conftest.$ac_ext
24369cat >>conftest.$ac_ext <<_ACEOF
24370/* end confdefs.h. */
24371
24372/* Override any gcc2 internal prototype to avoid an error. */
24373#ifdef __cplusplus
24374extern "C"
24375#endif
24376/* We use char because int might match the return type of a gcc2
24377 builtin and then its argument prototype would still apply. */
24378char XOpenDisplay ();
24379int
24380main ()
24381{
24382XOpenDisplay ();
24383 ;
24384 return 0;
24385}
24386_ACEOF
24387rm -f conftest.$ac_objext conftest$ac_exeext
24388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24389 (eval $ac_link) 2>conftest.er1
a848cd7e 24390 ac_status=$?
ac1cb8d3
VS
24391 grep -v '^ *+' conftest.er1 >conftest.err
24392 rm -f conftest.er1
24393 cat conftest.err >&5
a848cd7e
SC
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } &&
7714864e 24396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398 (eval $ac_try) 2>&5
24399 ac_status=$?
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); }; } &&
24402 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404 (eval $ac_try) 2>&5
24405 ac_status=$?
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); }; }; then
24408 :
24409else
24410 echo "$as_me: failed program was:" >&5
24411sed 's/^/| /' conftest.$ac_ext >&5
24412
24413echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24414echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24415if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24416 echo $ECHO_N "(cached) $ECHO_C" >&6
24417else
24418 ac_check_lib_save_LIBS=$LIBS
24419LIBS="-ldnet $LIBS"
24420cat >conftest.$ac_ext <<_ACEOF
24421/* confdefs.h. */
24422_ACEOF
24423cat confdefs.h >>conftest.$ac_ext
24424cat >>conftest.$ac_ext <<_ACEOF
24425/* end confdefs.h. */
24426
24427/* Override any gcc2 internal prototype to avoid an error. */
24428#ifdef __cplusplus
24429extern "C"
24430#endif
24431/* We use char because int might match the return type of a gcc2
24432 builtin and then its argument prototype would still apply. */
24433char dnet_ntoa ();
24434int
24435main ()
24436{
24437dnet_ntoa ();
24438 ;
24439 return 0;
24440}
24441_ACEOF
24442rm -f conftest.$ac_objext conftest$ac_exeext
24443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24444 (eval $ac_link) 2>conftest.er1
a848cd7e 24445 ac_status=$?
ac1cb8d3
VS
24446 grep -v '^ *+' conftest.er1 >conftest.err
24447 rm -f conftest.er1
24448 cat conftest.err >&5
a848cd7e
SC
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); } &&
7714864e 24451 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24453 (eval $ac_try) 2>&5
24454 ac_status=$?
24455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456 (exit $ac_status); }; } &&
24457 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24459 (eval $ac_try) 2>&5
24460 ac_status=$?
24461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24462 (exit $ac_status); }; }; then
24463 ac_cv_lib_dnet_dnet_ntoa=yes
24464else
24465 echo "$as_me: failed program was:" >&5
24466sed 's/^/| /' conftest.$ac_ext >&5
24467
24468ac_cv_lib_dnet_dnet_ntoa=no
24469fi
ac1cb8d3
VS
24470rm -f conftest.err conftest.$ac_objext \
24471 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24472LIBS=$ac_check_lib_save_LIBS
24473fi
24474echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24475echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24476if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24477 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24478fi
24479
24480 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24481 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24482echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24483if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24484 echo $ECHO_N "(cached) $ECHO_C" >&6
24485else
24486 ac_check_lib_save_LIBS=$LIBS
24487LIBS="-ldnet_stub $LIBS"
24488cat >conftest.$ac_ext <<_ACEOF
24489/* confdefs.h. */
24490_ACEOF
24491cat confdefs.h >>conftest.$ac_ext
24492cat >>conftest.$ac_ext <<_ACEOF
24493/* end confdefs.h. */
24494
24495/* Override any gcc2 internal prototype to avoid an error. */
24496#ifdef __cplusplus
24497extern "C"
24498#endif
24499/* We use char because int might match the return type of a gcc2
24500 builtin and then its argument prototype would still apply. */
24501char dnet_ntoa ();
24502int
24503main ()
24504{
24505dnet_ntoa ();
24506 ;
24507 return 0;
24508}
24509_ACEOF
24510rm -f conftest.$ac_objext conftest$ac_exeext
24511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24512 (eval $ac_link) 2>conftest.er1
a848cd7e 24513 ac_status=$?
ac1cb8d3
VS
24514 grep -v '^ *+' conftest.er1 >conftest.err
24515 rm -f conftest.er1
24516 cat conftest.err >&5
a848cd7e
SC
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); } &&
7714864e 24519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24521 (eval $ac_try) 2>&5
24522 ac_status=$?
24523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524 (exit $ac_status); }; } &&
24525 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24527 (eval $ac_try) 2>&5
24528 ac_status=$?
24529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530 (exit $ac_status); }; }; then
24531 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24532else
24533 echo "$as_me: failed program was:" >&5
24534sed 's/^/| /' conftest.$ac_ext >&5
24535
24536ac_cv_lib_dnet_stub_dnet_ntoa=no
24537fi
ac1cb8d3
VS
24538rm -f conftest.err conftest.$ac_objext \
24539 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24540LIBS=$ac_check_lib_save_LIBS
24541fi
24542echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24543echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24544if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24545 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24546fi
24547
24548 fi
24549fi
ac1cb8d3
VS
24550rm -f conftest.err conftest.$ac_objext \
24551 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24552 LIBS="$ac_xsave_LIBS"
24553
24554 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24555 # to get the SysV transport functions.
24556 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24557 # needs -lnsl.
24558 # The nsl library prevents programs from opening the X display
24559 # on Irix 5.2, according to T.E. Dickey.
24560 # The functions gethostbyname, getservbyname, and inet_addr are
24561 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24562 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24563echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24564if test "${ac_cv_func_gethostbyname+set}" = set; then
24565 echo $ECHO_N "(cached) $ECHO_C" >&6
24566else
24567 cat >conftest.$ac_ext <<_ACEOF
24568/* confdefs.h. */
24569_ACEOF
24570cat confdefs.h >>conftest.$ac_ext
24571cat >>conftest.$ac_ext <<_ACEOF
24572/* end confdefs.h. */
ac1cb8d3
VS
24573/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24575#define gethostbyname innocuous_gethostbyname
24576
a848cd7e
SC
24577/* System header to define __stub macros and hopefully few prototypes,
24578 which can conflict with char gethostbyname (); below.
24579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24580 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24581
a848cd7e
SC
24582#ifdef __STDC__
24583# include <limits.h>
24584#else
24585# include <assert.h>
24586#endif
ac1cb8d3
VS
24587
24588#undef gethostbyname
24589
a848cd7e
SC
24590/* Override any gcc2 internal prototype to avoid an error. */
24591#ifdef __cplusplus
24592extern "C"
24593{
24594#endif
24595/* We use char because int might match the return type of a gcc2
24596 builtin and then its argument prototype would still apply. */
24597char gethostbyname ();
24598/* The GNU C library defines this for functions which it implements
24599 to always fail with ENOSYS. Some functions are actually named
24600 something starting with __ and the normal name is an alias. */
24601#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24602choke me
24603#else
24604char (*f) () = gethostbyname;
24605#endif
24606#ifdef __cplusplus
24607}
24608#endif
24609
24610int
24611main ()
24612{
24613return f != gethostbyname;
24614 ;
24615 return 0;
24616}
24617_ACEOF
24618rm -f conftest.$ac_objext conftest$ac_exeext
24619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24620 (eval $ac_link) 2>conftest.er1
a848cd7e 24621 ac_status=$?
ac1cb8d3
VS
24622 grep -v '^ *+' conftest.er1 >conftest.err
24623 rm -f conftest.er1
24624 cat conftest.err >&5
a848cd7e
SC
24625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626 (exit $ac_status); } &&
7714864e 24627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24629 (eval $ac_try) 2>&5
24630 ac_status=$?
24631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24632 (exit $ac_status); }; } &&
24633 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24635 (eval $ac_try) 2>&5
24636 ac_status=$?
24637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24638 (exit $ac_status); }; }; then
24639 ac_cv_func_gethostbyname=yes
24640else
24641 echo "$as_me: failed program was:" >&5
24642sed 's/^/| /' conftest.$ac_ext >&5
24643
24644ac_cv_func_gethostbyname=no
24645fi
ac1cb8d3
VS
24646rm -f conftest.err conftest.$ac_objext \
24647 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24648fi
24649echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24650echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24651
24652 if test $ac_cv_func_gethostbyname = no; then
24653 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24654echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24655if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24656 echo $ECHO_N "(cached) $ECHO_C" >&6
24657else
24658 ac_check_lib_save_LIBS=$LIBS
24659LIBS="-lnsl $LIBS"
24660cat >conftest.$ac_ext <<_ACEOF
24661/* confdefs.h. */
24662_ACEOF
24663cat confdefs.h >>conftest.$ac_ext
24664cat >>conftest.$ac_ext <<_ACEOF
24665/* end confdefs.h. */
24666
24667/* Override any gcc2 internal prototype to avoid an error. */
24668#ifdef __cplusplus
24669extern "C"
24670#endif
24671/* We use char because int might match the return type of a gcc2
24672 builtin and then its argument prototype would still apply. */
24673char gethostbyname ();
24674int
24675main ()
24676{
24677gethostbyname ();
24678 ;
24679 return 0;
24680}
24681_ACEOF
24682rm -f conftest.$ac_objext conftest$ac_exeext
24683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24684 (eval $ac_link) 2>conftest.er1
24685 ac_status=$?
24686 grep -v '^ *+' conftest.er1 >conftest.err
24687 rm -f conftest.er1
24688 cat conftest.err >&5
24689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24690 (exit $ac_status); } &&
7714864e 24691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24693 (eval $ac_try) 2>&5
24694 ac_status=$?
24695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24696 (exit $ac_status); }; } &&
24697 { ac_try='test -s conftest$ac_exeext'
24698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24699 (eval $ac_try) 2>&5
24700 ac_status=$?
24701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702 (exit $ac_status); }; }; then
24703 ac_cv_lib_nsl_gethostbyname=yes
24704else
24705 echo "$as_me: failed program was:" >&5
24706sed 's/^/| /' conftest.$ac_ext >&5
24707
24708ac_cv_lib_nsl_gethostbyname=no
24709fi
24710rm -f conftest.err conftest.$ac_objext \
24711 conftest$ac_exeext conftest.$ac_ext
24712LIBS=$ac_check_lib_save_LIBS
24713fi
24714echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24715echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24716if test $ac_cv_lib_nsl_gethostbyname = yes; then
24717 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24718fi
24719
24720 if test $ac_cv_lib_nsl_gethostbyname = no; then
24721 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24722echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24723if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24724 echo $ECHO_N "(cached) $ECHO_C" >&6
24725else
24726 ac_check_lib_save_LIBS=$LIBS
24727LIBS="-lbsd $LIBS"
24728cat >conftest.$ac_ext <<_ACEOF
24729/* confdefs.h. */
24730_ACEOF
24731cat confdefs.h >>conftest.$ac_ext
24732cat >>conftest.$ac_ext <<_ACEOF
24733/* end confdefs.h. */
24734
24735/* Override any gcc2 internal prototype to avoid an error. */
24736#ifdef __cplusplus
24737extern "C"
24738#endif
24739/* We use char because int might match the return type of a gcc2
24740 builtin and then its argument prototype would still apply. */
24741char gethostbyname ();
24742int
24743main ()
24744{
24745gethostbyname ();
24746 ;
24747 return 0;
24748}
24749_ACEOF
24750rm -f conftest.$ac_objext conftest$ac_exeext
24751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24752 (eval $ac_link) 2>conftest.er1
a848cd7e 24753 ac_status=$?
ac1cb8d3
VS
24754 grep -v '^ *+' conftest.er1 >conftest.err
24755 rm -f conftest.er1
24756 cat conftest.err >&5
a848cd7e
SC
24757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24758 (exit $ac_status); } &&
7714864e 24759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24761 (eval $ac_try) 2>&5
24762 ac_status=$?
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24764 (exit $ac_status); }; } &&
24765 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767 (eval $ac_try) 2>&5
24768 ac_status=$?
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); }; }; then
24771 ac_cv_lib_bsd_gethostbyname=yes
24772else
24773 echo "$as_me: failed program was:" >&5
24774sed 's/^/| /' conftest.$ac_ext >&5
24775
24776ac_cv_lib_bsd_gethostbyname=no
24777fi
ac1cb8d3
VS
24778rm -f conftest.err conftest.$ac_objext \
24779 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24780LIBS=$ac_check_lib_save_LIBS
24781fi
24782echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24783echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24784if test $ac_cv_lib_bsd_gethostbyname = yes; then
24785 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24786fi
24787
24788 fi
24789 fi
24790
24791 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24792 # socket/setsockopt and other routines are undefined under SCO ODT
24793 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24794 # on later versions), says Simon Leinen: it contains gethostby*
24795 # variants that don't use the name server (or something). -lsocket
24796 # must be given before -lnsl if both are needed. We assume that
24797 # if connect needs -lnsl, so does gethostbyname.
24798 echo "$as_me:$LINENO: checking for connect" >&5
24799echo $ECHO_N "checking for connect... $ECHO_C" >&6
24800if test "${ac_cv_func_connect+set}" = set; then
24801 echo $ECHO_N "(cached) $ECHO_C" >&6
24802else
24803 cat >conftest.$ac_ext <<_ACEOF
24804/* confdefs.h. */
24805_ACEOF
24806cat confdefs.h >>conftest.$ac_ext
24807cat >>conftest.$ac_ext <<_ACEOF
24808/* end confdefs.h. */
ac1cb8d3
VS
24809/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24811#define connect innocuous_connect
24812
a848cd7e
SC
24813/* System header to define __stub macros and hopefully few prototypes,
24814 which can conflict with char connect (); below.
24815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24816 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24817
a848cd7e
SC
24818#ifdef __STDC__
24819# include <limits.h>
24820#else
24821# include <assert.h>
24822#endif
ac1cb8d3
VS
24823
24824#undef connect
24825
a848cd7e
SC
24826/* Override any gcc2 internal prototype to avoid an error. */
24827#ifdef __cplusplus
24828extern "C"
24829{
24830#endif
24831/* We use char because int might match the return type of a gcc2
24832 builtin and then its argument prototype would still apply. */
24833char connect ();
24834/* The GNU C library defines this for functions which it implements
24835 to always fail with ENOSYS. Some functions are actually named
24836 something starting with __ and the normal name is an alias. */
24837#if defined (__stub_connect) || defined (__stub___connect)
24838choke me
24839#else
24840char (*f) () = connect;
24841#endif
24842#ifdef __cplusplus
24843}
24844#endif
24845
24846int
24847main ()
24848{
24849return f != connect;
24850 ;
24851 return 0;
24852}
24853_ACEOF
24854rm -f conftest.$ac_objext conftest$ac_exeext
24855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24856 (eval $ac_link) 2>conftest.er1
a848cd7e 24857 ac_status=$?
ac1cb8d3
VS
24858 grep -v '^ *+' conftest.er1 >conftest.err
24859 rm -f conftest.er1
24860 cat conftest.err >&5
a848cd7e
SC
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); } &&
7714864e 24863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24865 (eval $ac_try) 2>&5
24866 ac_status=$?
24867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24868 (exit $ac_status); }; } &&
24869 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24871 (eval $ac_try) 2>&5
24872 ac_status=$?
24873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874 (exit $ac_status); }; }; then
24875 ac_cv_func_connect=yes
24876else
24877 echo "$as_me: failed program was:" >&5
24878sed 's/^/| /' conftest.$ac_ext >&5
24879
24880ac_cv_func_connect=no
24881fi
ac1cb8d3
VS
24882rm -f conftest.err conftest.$ac_objext \
24883 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24884fi
24885echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24886echo "${ECHO_T}$ac_cv_func_connect" >&6
24887
24888 if test $ac_cv_func_connect = no; then
24889 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24890echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24891if test "${ac_cv_lib_socket_connect+set}" = set; then
24892 echo $ECHO_N "(cached) $ECHO_C" >&6
24893else
24894 ac_check_lib_save_LIBS=$LIBS
24895LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24896cat >conftest.$ac_ext <<_ACEOF
24897/* confdefs.h. */
24898_ACEOF
24899cat confdefs.h >>conftest.$ac_ext
24900cat >>conftest.$ac_ext <<_ACEOF
24901/* end confdefs.h. */
24902
24903/* Override any gcc2 internal prototype to avoid an error. */
24904#ifdef __cplusplus
24905extern "C"
24906#endif
24907/* We use char because int might match the return type of a gcc2
24908 builtin and then its argument prototype would still apply. */
24909char connect ();
24910int
24911main ()
24912{
24913connect ();
24914 ;
24915 return 0;
24916}
24917_ACEOF
24918rm -f conftest.$ac_objext conftest$ac_exeext
24919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24920 (eval $ac_link) 2>conftest.er1
a848cd7e 24921 ac_status=$?
ac1cb8d3
VS
24922 grep -v '^ *+' conftest.er1 >conftest.err
24923 rm -f conftest.er1
24924 cat conftest.err >&5
a848cd7e
SC
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } &&
7714864e 24927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929 (eval $ac_try) 2>&5
24930 ac_status=$?
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); }; } &&
24933 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24936 ac_status=$?
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; }; then
24939 ac_cv_lib_socket_connect=yes
24940else
24941 echo "$as_me: failed program was:" >&5
24942sed 's/^/| /' conftest.$ac_ext >&5
24943
24944ac_cv_lib_socket_connect=no
24945fi
ac1cb8d3
VS
24946rm -f conftest.err conftest.$ac_objext \
24947 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24948LIBS=$ac_check_lib_save_LIBS
24949fi
24950echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24951echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24952if test $ac_cv_lib_socket_connect = yes; then
24953 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24954fi
24955
24956 fi
24957
24958 # Guillermo Gomez says -lposix is necessary on A/UX.
24959 echo "$as_me:$LINENO: checking for remove" >&5
24960echo $ECHO_N "checking for remove... $ECHO_C" >&6
24961if test "${ac_cv_func_remove+set}" = set; then
24962 echo $ECHO_N "(cached) $ECHO_C" >&6
24963else
24964 cat >conftest.$ac_ext <<_ACEOF
24965/* confdefs.h. */
24966_ACEOF
24967cat confdefs.h >>conftest.$ac_ext
24968cat >>conftest.$ac_ext <<_ACEOF
24969/* end confdefs.h. */
ac1cb8d3
VS
24970/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24972#define remove innocuous_remove
24973
a848cd7e
SC
24974/* System header to define __stub macros and hopefully few prototypes,
24975 which can conflict with char remove (); below.
24976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24977 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24978
a848cd7e
SC
24979#ifdef __STDC__
24980# include <limits.h>
24981#else
24982# include <assert.h>
24983#endif
ac1cb8d3
VS
24984
24985#undef remove
24986
a848cd7e
SC
24987/* Override any gcc2 internal prototype to avoid an error. */
24988#ifdef __cplusplus
24989extern "C"
24990{
24991#endif
24992/* We use char because int might match the return type of a gcc2
24993 builtin and then its argument prototype would still apply. */
24994char remove ();
24995/* The GNU C library defines this for functions which it implements
24996 to always fail with ENOSYS. Some functions are actually named
24997 something starting with __ and the normal name is an alias. */
24998#if defined (__stub_remove) || defined (__stub___remove)
24999choke me
25000#else
25001char (*f) () = remove;
25002#endif
25003#ifdef __cplusplus
25004}
25005#endif
25006
25007int
25008main ()
25009{
25010return f != remove;
25011 ;
25012 return 0;
25013}
25014_ACEOF
25015rm -f conftest.$ac_objext conftest$ac_exeext
25016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25017 (eval $ac_link) 2>conftest.er1
a848cd7e 25018 ac_status=$?
ac1cb8d3
VS
25019 grep -v '^ *+' conftest.er1 >conftest.err
25020 rm -f conftest.er1
25021 cat conftest.err >&5
a848cd7e
SC
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); } &&
7714864e 25024 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25027 ac_status=$?
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; } &&
25030 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25032 (eval $ac_try) 2>&5
25033 ac_status=$?
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); }; }; then
25036 ac_cv_func_remove=yes
25037else
25038 echo "$as_me: failed program was:" >&5
25039sed 's/^/| /' conftest.$ac_ext >&5
25040
25041ac_cv_func_remove=no
25042fi
ac1cb8d3
VS
25043rm -f conftest.err conftest.$ac_objext \
25044 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25045fi
25046echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25047echo "${ECHO_T}$ac_cv_func_remove" >&6
25048
25049 if test $ac_cv_func_remove = no; then
25050 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25051echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25052if test "${ac_cv_lib_posix_remove+set}" = set; then
25053 echo $ECHO_N "(cached) $ECHO_C" >&6
25054else
25055 ac_check_lib_save_LIBS=$LIBS
25056LIBS="-lposix $LIBS"
25057cat >conftest.$ac_ext <<_ACEOF
25058/* confdefs.h. */
25059_ACEOF
25060cat confdefs.h >>conftest.$ac_ext
25061cat >>conftest.$ac_ext <<_ACEOF
25062/* end confdefs.h. */
25063
25064/* Override any gcc2 internal prototype to avoid an error. */
25065#ifdef __cplusplus
25066extern "C"
25067#endif
25068/* We use char because int might match the return type of a gcc2
25069 builtin and then its argument prototype would still apply. */
25070char remove ();
25071int
25072main ()
25073{
25074remove ();
25075 ;
25076 return 0;
25077}
25078_ACEOF
25079rm -f conftest.$ac_objext conftest$ac_exeext
25080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25081 (eval $ac_link) 2>conftest.er1
a848cd7e 25082 ac_status=$?
ac1cb8d3
VS
25083 grep -v '^ *+' conftest.er1 >conftest.err
25084 rm -f conftest.er1
25085 cat conftest.err >&5
a848cd7e
SC
25086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25087 (exit $ac_status); } &&
7714864e 25088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25090 (eval $ac_try) 2>&5
25091 ac_status=$?
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); }; } &&
25094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25096 (eval $ac_try) 2>&5
25097 ac_status=$?
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); }; }; then
25100 ac_cv_lib_posix_remove=yes
25101else
25102 echo "$as_me: failed program was:" >&5
25103sed 's/^/| /' conftest.$ac_ext >&5
25104
25105ac_cv_lib_posix_remove=no
25106fi
ac1cb8d3
VS
25107rm -f conftest.err conftest.$ac_objext \
25108 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25109LIBS=$ac_check_lib_save_LIBS
25110fi
25111echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25112echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25113if test $ac_cv_lib_posix_remove = yes; then
25114 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25115fi
25116
25117 fi
25118
25119 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25120 echo "$as_me:$LINENO: checking for shmat" >&5
25121echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25122if test "${ac_cv_func_shmat+set}" = set; then
25123 echo $ECHO_N "(cached) $ECHO_C" >&6
25124else
25125 cat >conftest.$ac_ext <<_ACEOF
25126/* confdefs.h. */
25127_ACEOF
25128cat confdefs.h >>conftest.$ac_ext
25129cat >>conftest.$ac_ext <<_ACEOF
25130/* end confdefs.h. */
ac1cb8d3
VS
25131/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25133#define shmat innocuous_shmat
25134
a848cd7e
SC
25135/* System header to define __stub macros and hopefully few prototypes,
25136 which can conflict with char shmat (); below.
25137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25138 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25139
a848cd7e
SC
25140#ifdef __STDC__
25141# include <limits.h>
25142#else
25143# include <assert.h>
25144#endif
ac1cb8d3
VS
25145
25146#undef shmat
25147
a848cd7e
SC
25148/* Override any gcc2 internal prototype to avoid an error. */
25149#ifdef __cplusplus
25150extern "C"
25151{
25152#endif
25153/* We use char because int might match the return type of a gcc2
25154 builtin and then its argument prototype would still apply. */
25155char shmat ();
25156/* The GNU C library defines this for functions which it implements
25157 to always fail with ENOSYS. Some functions are actually named
25158 something starting with __ and the normal name is an alias. */
25159#if defined (__stub_shmat) || defined (__stub___shmat)
25160choke me
25161#else
25162char (*f) () = shmat;
25163#endif
25164#ifdef __cplusplus
25165}
25166#endif
25167
25168int
25169main ()
25170{
25171return f != shmat;
25172 ;
25173 return 0;
25174}
25175_ACEOF
25176rm -f conftest.$ac_objext conftest$ac_exeext
25177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25178 (eval $ac_link) 2>conftest.er1
a848cd7e 25179 ac_status=$?
ac1cb8d3
VS
25180 grep -v '^ *+' conftest.er1 >conftest.err
25181 rm -f conftest.er1
25182 cat conftest.err >&5
a848cd7e
SC
25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184 (exit $ac_status); } &&
7714864e 25185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25187 (eval $ac_try) 2>&5
25188 ac_status=$?
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); }; } &&
25191 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; }; then
25197 ac_cv_func_shmat=yes
25198else
25199 echo "$as_me: failed program was:" >&5
25200sed 's/^/| /' conftest.$ac_ext >&5
25201
25202ac_cv_func_shmat=no
25203fi
ac1cb8d3
VS
25204rm -f conftest.err conftest.$ac_objext \
25205 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25206fi
25207echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25208echo "${ECHO_T}$ac_cv_func_shmat" >&6
25209
25210 if test $ac_cv_func_shmat = no; then
25211 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25212echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25213if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25214 echo $ECHO_N "(cached) $ECHO_C" >&6
25215else
25216 ac_check_lib_save_LIBS=$LIBS
25217LIBS="-lipc $LIBS"
25218cat >conftest.$ac_ext <<_ACEOF
25219/* confdefs.h. */
25220_ACEOF
25221cat confdefs.h >>conftest.$ac_ext
25222cat >>conftest.$ac_ext <<_ACEOF
25223/* end confdefs.h. */
25224
25225/* Override any gcc2 internal prototype to avoid an error. */
25226#ifdef __cplusplus
25227extern "C"
25228#endif
25229/* We use char because int might match the return type of a gcc2
25230 builtin and then its argument prototype would still apply. */
25231char shmat ();
25232int
25233main ()
25234{
25235shmat ();
25236 ;
25237 return 0;
25238}
25239_ACEOF
25240rm -f conftest.$ac_objext conftest$ac_exeext
25241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25242 (eval $ac_link) 2>conftest.er1
a848cd7e 25243 ac_status=$?
ac1cb8d3
VS
25244 grep -v '^ *+' conftest.er1 >conftest.err
25245 rm -f conftest.er1
25246 cat conftest.err >&5
a848cd7e
SC
25247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248 (exit $ac_status); } &&
7714864e 25249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25251 (eval $ac_try) 2>&5
25252 ac_status=$?
25253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25254 (exit $ac_status); }; } &&
25255 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25257 (eval $ac_try) 2>&5
25258 ac_status=$?
25259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); }; }; then
25261 ac_cv_lib_ipc_shmat=yes
25262else
25263 echo "$as_me: failed program was:" >&5
25264sed 's/^/| /' conftest.$ac_ext >&5
25265
25266ac_cv_lib_ipc_shmat=no
25267fi
ac1cb8d3
VS
25268rm -f conftest.err conftest.$ac_objext \
25269 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25270LIBS=$ac_check_lib_save_LIBS
25271fi
25272echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25273echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25274if test $ac_cv_lib_ipc_shmat = yes; then
25275 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25276fi
25277
25278 fi
25279 fi
25280
25281 # Check for libraries that X11R6 Xt/Xaw programs need.
25282 ac_save_LDFLAGS=$LDFLAGS
25283 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25284 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25285 # check for ICE first), but we must link in the order -lSM -lICE or
25286 # we get undefined symbols. So assume we have SM if we have ICE.
25287 # These have to be linked with before -lX11, unlike the other
25288 # libraries we check for below, so use a different variable.
25289 # John Interrante, Karl Berry
25290 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25291echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25292if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25293 echo $ECHO_N "(cached) $ECHO_C" >&6
25294else
25295 ac_check_lib_save_LIBS=$LIBS
25296LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25297cat >conftest.$ac_ext <<_ACEOF
25298/* confdefs.h. */
25299_ACEOF
25300cat confdefs.h >>conftest.$ac_ext
25301cat >>conftest.$ac_ext <<_ACEOF
25302/* end confdefs.h. */
25303
25304/* Override any gcc2 internal prototype to avoid an error. */
25305#ifdef __cplusplus
25306extern "C"
25307#endif
25308/* We use char because int might match the return type of a gcc2
25309 builtin and then its argument prototype would still apply. */
25310char IceConnectionNumber ();
25311int
25312main ()
25313{
25314IceConnectionNumber ();
25315 ;
25316 return 0;
25317}
25318_ACEOF
25319rm -f conftest.$ac_objext conftest$ac_exeext
25320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25321 (eval $ac_link) 2>conftest.er1
a848cd7e 25322 ac_status=$?
ac1cb8d3
VS
25323 grep -v '^ *+' conftest.er1 >conftest.err
25324 rm -f conftest.er1
25325 cat conftest.err >&5
a848cd7e
SC
25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327 (exit $ac_status); } &&
7714864e 25328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25330 (eval $ac_try) 2>&5
25331 ac_status=$?
25332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25333 (exit $ac_status); }; } &&
25334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25336 (eval $ac_try) 2>&5
25337 ac_status=$?
25338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339 (exit $ac_status); }; }; then
25340 ac_cv_lib_ICE_IceConnectionNumber=yes
25341else
25342 echo "$as_me: failed program was:" >&5
25343sed 's/^/| /' conftest.$ac_ext >&5
25344
25345ac_cv_lib_ICE_IceConnectionNumber=no
25346fi
ac1cb8d3
VS
25347rm -f conftest.err conftest.$ac_objext \
25348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25349LIBS=$ac_check_lib_save_LIBS
25350fi
25351echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25352echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25353if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25354 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25355fi
25356
25357 LDFLAGS=$ac_save_LDFLAGS
25358
25359fi
25360
25361
25362 if test "$no_x" = "yes"; then
25363 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25364echo "$as_me: error: X11 not found" >&2;}
25365 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25366 fi
25367
74b84332
VS
25368 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25369 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25370 AFMINSTALL=afminstall
25371 COMPILED_X_PROGRAM=0
25372
74b84332
VS
25373 fi
25374
25375 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25376 if test "$wxUSE_NANOX" = "yes"; then
25377 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25378echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25379 if test "x$MICROWIN" = x ; then
25380 echo "$as_me:$LINENO: result: not found" >&5
25381echo "${ECHO_T}not found" >&6
25382 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25383echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25384 { (exit 1); exit 1; }; }
25385 else
25386 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25387echo "${ECHO_T}$MICROWIN" >&6
25388 cat >>confdefs.h <<\_ACEOF
25389#define wxUSE_NANOX 1
25390_ACEOF
25391
25392 fi
25393 fi
25394
25395 if test "$wxUSE_UNICODE" = "yes"; then
25396
25397 succeeded=no
25398
25399 if test -z "$PKG_CONFIG"; then
25400 # Extract the first word of "pkg-config", so it can be a program name with args.
25401set dummy pkg-config; ac_word=$2
25402echo "$as_me:$LINENO: checking for $ac_word" >&5
25403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25404if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25405 echo $ECHO_N "(cached) $ECHO_C" >&6
25406else
25407 case $PKG_CONFIG in
25408 [\\/]* | ?:[\\/]*)
25409 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25410 ;;
25411 *)
25412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25413for as_dir in $PATH
25414do
25415 IFS=$as_save_IFS
25416 test -z "$as_dir" && as_dir=.
25417 for ac_exec_ext in '' $ac_executable_extensions; do
25418 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25419 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25421 break 2
25422 fi
25423done
25424done
25425
25426 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25427 ;;
25428esac
25429fi
25430PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25431
25432if test -n "$PKG_CONFIG"; then
25433 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25434echo "${ECHO_T}$PKG_CONFIG" >&6
25435else
25436 echo "$as_me:$LINENO: result: no" >&5
25437echo "${ECHO_T}no" >&6
25438fi
25439
25440 fi
25441
25442 if test "$PKG_CONFIG" = "no" ; then
25443 echo "*** The pkg-config script could not be found. Make sure it is"
25444 echo "*** in your path, or set the PKG_CONFIG environment variable"
25445 echo "*** to the full path to pkg-config."
25446 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25447 else
25448 PKG_CONFIG_MIN_VERSION=0.9.0
25449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25450 echo "$as_me:$LINENO: checking for pangox" >&5
25451echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25452
25453 if $PKG_CONFIG --exists "pangox" ; then
25454 echo "$as_me:$LINENO: result: yes" >&5
25455echo "${ECHO_T}yes" >&6
25456 succeeded=yes
25457
25458 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25459echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25460 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25461 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25462echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25463
25464 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25465echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25466 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25467 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25468echo "${ECHO_T}$PANGOX_LIBS" >&6
25469 else
25470 PANGOX_CFLAGS=""
25471 PANGOX_LIBS=""
25472 ## If we have a custom action on failure, don't print errors, but
25473 ## do set a variable so people can do so.
25474 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25475
25476 fi
25477
25478
25479
25480 else
25481 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25482 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25483 fi
25484 fi
25485
25486 if test $succeeded = yes; then
25487
25488 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25489 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25490
25491 else
25492
25493 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25494echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25495 { (exit 1); exit 1; }; }
25496
25497
25498 fi
25499
25500
25501 succeeded=no
25502
25503 if test -z "$PKG_CONFIG"; then
25504 # Extract the first word of "pkg-config", so it can be a program name with args.
25505set dummy pkg-config; ac_word=$2
25506echo "$as_me:$LINENO: checking for $ac_word" >&5
25507echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25508if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25509 echo $ECHO_N "(cached) $ECHO_C" >&6
25510else
25511 case $PKG_CONFIG in
25512 [\\/]* | ?:[\\/]*)
25513 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25514 ;;
25515 *)
25516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25517for as_dir in $PATH
25518do
25519 IFS=$as_save_IFS
25520 test -z "$as_dir" && as_dir=.
25521 for ac_exec_ext in '' $ac_executable_extensions; do
25522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25523 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25525 break 2
25526 fi
25527done
25528done
25529
25530 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25531 ;;
25532esac
25533fi
25534PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25535
25536if test -n "$PKG_CONFIG"; then
25537 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25538echo "${ECHO_T}$PKG_CONFIG" >&6
25539else
25540 echo "$as_me:$LINENO: result: no" >&5
25541echo "${ECHO_T}no" >&6
25542fi
25543
25544 fi
25545
25546 if test "$PKG_CONFIG" = "no" ; then
25547 echo "*** The pkg-config script could not be found. Make sure it is"
25548 echo "*** in your path, or set the PKG_CONFIG environment variable"
25549 echo "*** to the full path to pkg-config."
25550 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25551 else
25552 PKG_CONFIG_MIN_VERSION=0.9.0
25553 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25554 echo "$as_me:$LINENO: checking for pangoft2" >&5
25555echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25556
25557 if $PKG_CONFIG --exists "pangoft2" ; then
25558 echo "$as_me:$LINENO: result: yes" >&5
25559echo "${ECHO_T}yes" >&6
25560 succeeded=yes
25561
25562 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25563echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25564 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25565 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25566echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25567
25568 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25569echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25570 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25571 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25572echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25573 else
25574 PANGOFT2_CFLAGS=""
25575 PANGOFT2_LIBS=""
25576 ## If we have a custom action on failure, don't print errors, but
25577 ## do set a variable so people can do so.
25578 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25579
25580 fi
25581
25582
25583
25584 else
25585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25587 fi
25588 fi
25589
25590 if test $succeeded = yes; then
25591
25592 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25593 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25594
25595 else
25596
25597 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25598echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25599 wxUSE_PRINTING_ARCHITECTURE="no"
25600
25601
25602 fi
25603
25604
25605 succeeded=no
25606
25607 if test -z "$PKG_CONFIG"; then
25608 # Extract the first word of "pkg-config", so it can be a program name with args.
25609set dummy pkg-config; ac_word=$2
25610echo "$as_me:$LINENO: checking for $ac_word" >&5
25611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25612if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25614else
25615 case $PKG_CONFIG in
25616 [\\/]* | ?:[\\/]*)
25617 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25618 ;;
25619 *)
25620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25621for as_dir in $PATH
25622do
25623 IFS=$as_save_IFS
25624 test -z "$as_dir" && as_dir=.
25625 for ac_exec_ext in '' $ac_executable_extensions; do
25626 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25627 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25629 break 2
25630 fi
25631done
25632done
25633
25634 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25635 ;;
25636esac
25637fi
25638PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25639
25640if test -n "$PKG_CONFIG"; then
25641 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25642echo "${ECHO_T}$PKG_CONFIG" >&6
25643else
25644 echo "$as_me:$LINENO: result: no" >&5
25645echo "${ECHO_T}no" >&6
25646fi
25647
25648 fi
25649
25650 if test "$PKG_CONFIG" = "no" ; then
25651 echo "*** The pkg-config script could not be found. Make sure it is"
25652 echo "*** in your path, or set the PKG_CONFIG environment variable"
25653 echo "*** to the full path to pkg-config."
25654 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25655 else
25656 PKG_CONFIG_MIN_VERSION=0.9.0
25657 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25658 echo "$as_me:$LINENO: checking for pangoxft" >&5
25659echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25660
25661 if $PKG_CONFIG --exists "pangoxft" ; then
25662 echo "$as_me:$LINENO: result: yes" >&5
25663echo "${ECHO_T}yes" >&6
25664 succeeded=yes
25665
25666 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25667echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25668 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25669 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25670echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25671
25672 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25673echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25674 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25675 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25676echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25677 else
25678 PANGOXFT_CFLAGS=""
25679 PANGOXFT_LIBS=""
25680 ## If we have a custom action on failure, don't print errors, but
25681 ## do set a variable so people can do so.
25682 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25683
25684 fi
25685
25686
25687
25688 else
25689 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25690 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25691 fi
25692 fi
25693
25694 if test $succeeded = yes; then
25695
25696 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25697 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25698
25699 else
25700
25701 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25702echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25703
25704
25705 fi
25706
304205f1
VS
25707 save_CFLAGS="$CFLAGS"
25708 save_LIBS="$LIBS"
25709 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25710 LIBS="$LIBS $PANGOX_LIBS"
25711
25712for ac_func in pango_font_family_is_monospace
25713do
25714as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25715echo "$as_me:$LINENO: checking for $ac_func" >&5
25716echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25717if eval "test \"\${$as_ac_var+set}\" = set"; then
25718 echo $ECHO_N "(cached) $ECHO_C" >&6
25719else
25720 cat >conftest.$ac_ext <<_ACEOF
25721/* confdefs.h. */
25722_ACEOF
25723cat confdefs.h >>conftest.$ac_ext
25724cat >>conftest.$ac_ext <<_ACEOF
25725/* end confdefs.h. */
25726/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25728#define $ac_func innocuous_$ac_func
25729
25730/* System header to define __stub macros and hopefully few prototypes,
25731 which can conflict with char $ac_func (); below.
25732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25733 <limits.h> exists even on freestanding compilers. */
25734
25735#ifdef __STDC__
25736# include <limits.h>
25737#else
25738# include <assert.h>
25739#endif
25740
25741#undef $ac_func
25742
25743/* Override any gcc2 internal prototype to avoid an error. */
25744#ifdef __cplusplus
25745extern "C"
25746{
25747#endif
25748/* We use char because int might match the return type of a gcc2
25749 builtin and then its argument prototype would still apply. */
25750char $ac_func ();
25751/* The GNU C library defines this for functions which it implements
25752 to always fail with ENOSYS. Some functions are actually named
25753 something starting with __ and the normal name is an alias. */
25754#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25755choke me
25756#else
25757char (*f) () = $ac_func;
25758#endif
25759#ifdef __cplusplus
25760}
25761#endif
25762
25763int
25764main ()
25765{
25766return f != $ac_func;
25767 ;
25768 return 0;
25769}
25770_ACEOF
25771rm -f conftest.$ac_objext conftest$ac_exeext
25772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25773 (eval $ac_link) 2>conftest.er1
25774 ac_status=$?
25775 grep -v '^ *+' conftest.er1 >conftest.err
25776 rm -f conftest.er1
25777 cat conftest.err >&5
25778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); } &&
7714864e 25780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25782 (eval $ac_try) 2>&5
25783 ac_status=$?
25784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785 (exit $ac_status); }; } &&
25786 { ac_try='test -s conftest$ac_exeext'
25787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25788 (eval $ac_try) 2>&5
25789 ac_status=$?
25790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791 (exit $ac_status); }; }; then
25792 eval "$as_ac_var=yes"
25793else
25794 echo "$as_me: failed program was:" >&5
25795sed 's/^/| /' conftest.$ac_ext >&5
25796
25797eval "$as_ac_var=no"
25798fi
25799rm -f conftest.err conftest.$ac_objext \
25800 conftest$ac_exeext conftest.$ac_ext
25801fi
25802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25803echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25804if test `eval echo '${'$as_ac_var'}'` = yes; then
25805 cat >>confdefs.h <<_ACEOF
25806#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25807_ACEOF
25808
25809fi
25810done
25811
25812 CFLAGS="$save_CFLAGS"
25813 LIBS="$save_LIBS"
a848cd7e
SC
25814 fi
25815
25816 wxUSE_UNIVERSAL="yes"
25817
25818 if test "$wxUSE_NANOX" = "yes"; then
25819 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25820 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"
25821 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25822 else
25823 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25824 fi
25825
a848cd7e
SC
25826 TOOLKIT=X11
25827 GUIDIST=X11_DIST
25828 fi
25829
25830 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25831 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25832echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25833
74b84332
VS
25834ac_find_includes=
25835for ac_dir in $SEARCH_INCLUDE /usr/include;
25836 do
25837 if test -f "$ac_dir/Xm/Xm.h"; then
25838 ac_find_includes=$ac_dir
25839 break
25840 fi
25841 done
a848cd7e 25842
74b84332
VS
25843 if test "$ac_find_includes" != "" ; then
25844 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25845echo "${ECHO_T}found in $ac_find_includes" >&6
25846
25847 if test "x$ac_find_includes" = "x/usr/include"; then
25848 ac_path_to_include=""
25849 else
25850 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25851 result=$?
25852 if test $result = 0; then
25853 ac_path_to_include=""
25854 else
25855 ac_path_to_include=" -I$ac_find_includes"
25856 fi
a848cd7e
SC
25857 fi
25858
74b84332
VS
25859 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25860 else
25861 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25862/* confdefs.h. */
25863_ACEOF
25864cat confdefs.h >>conftest.$ac_ext
25865cat >>conftest.$ac_ext <<_ACEOF
25866/* end confdefs.h. */
25867
74b84332
VS
25868 #include <Xm/Xm.h>
25869
a848cd7e
SC
25870int
25871main ()
25872{
25873
74b84332
VS
25874 int version;
25875 version = xmUseVersion;
25876
a848cd7e
SC
25877 ;
25878 return 0;
25879}
25880_ACEOF
74b84332
VS
25881rm -f conftest.$ac_objext
25882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25883 (eval $ac_compile) 2>conftest.er1
a848cd7e 25884 ac_status=$?
ac1cb8d3
VS
25885 grep -v '^ *+' conftest.er1 >conftest.err
25886 rm -f conftest.er1
25887 cat conftest.err >&5
a848cd7e
SC
25888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889 (exit $ac_status); } &&
7714864e 25890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25892 (eval $ac_try) 2>&5
25893 ac_status=$?
25894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895 (exit $ac_status); }; } &&
74b84332 25896 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25898 (eval $ac_try) 2>&5
25899 ac_status=$?
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); }; }; then
74b84332
VS
25902
25903 echo "$as_me:$LINENO: result: found in default search path" >&5
25904echo "${ECHO_T}found in default search path" >&6
25905 COMPILED_X_PROGRAM=1
25906
a848cd7e
SC
25907else
25908 echo "$as_me: failed program was:" >&5
25909sed 's/^/| /' conftest.$ac_ext >&5
25910
a848cd7e 25911
74b84332
VS
25912 echo "$as_me:$LINENO: result: no" >&5
25913echo "${ECHO_T}no" >&6
25914 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25915echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25916 { (exit 1); exit 1; }; }
a848cd7e 25917
a848cd7e 25918
a848cd7e 25919fi
74b84332
VS
25920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25921 fi
25922
25923 if test "$COMPILED_X_PROGRAM" = 0; then
25924 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25925echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25926
25927ac_find_libraries=
25928for ac_dir in $SEARCH_LIB /usr/lib;
25929 do
25930 for ac_extension in a so sl dylib; do
25931 if test -f "$ac_dir/libXm.$ac_extension"; then
25932 ac_find_libraries=$ac_dir
25933 break 2
a848cd7e 25934 fi
74b84332
VS
25935 done
25936 done
a848cd7e 25937
74b84332
VS
25938 if test "$ac_find_libraries" != "" ; then
25939 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25940echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25941
74b84332
VS
25942
25943 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25944 result=$?
25945 if test $result = 0; then
25946 ac_path_to_link=""
a848cd7e 25947 else
74b84332
VS
25948 ac_path_to_link=" -L$ac_find_libraries"
25949 fi
25950
25951 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25952 else
25953 save_CFLAGS=$CFLAGS
25954 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25955
25956 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25957/* confdefs.h. */
25958_ACEOF
25959cat confdefs.h >>conftest.$ac_ext
25960cat >>conftest.$ac_ext <<_ACEOF
25961/* end confdefs.h. */
25962
74b84332
VS
25963 #include <Xm/Xm.h>
25964
a848cd7e
SC
25965int
25966main ()
25967{
74b84332
VS
25968
25969 int version;
25970 version = xmUseVersion;
25971
a848cd7e
SC
25972 ;
25973 return 0;
25974}
25975_ACEOF
74b84332
VS
25976rm -f conftest.$ac_objext
25977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25978 (eval $ac_compile) 2>conftest.er1
a848cd7e 25979 ac_status=$?
ac1cb8d3
VS
25980 grep -v '^ *+' conftest.er1 >conftest.err
25981 rm -f conftest.er1
25982 cat conftest.err >&5
a848cd7e
SC
25983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } &&
7714864e 25985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25987 (eval $ac_try) 2>&5
25988 ac_status=$?
25989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25990 (exit $ac_status); }; } &&
74b84332 25991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25993 (eval $ac_try) 2>&5
25994 ac_status=$?
25995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25996 (exit $ac_status); }; }; then
74b84332
VS
25997
25998 echo "$as_me:$LINENO: result: found in default search path" >&5
25999echo "${ECHO_T}found in default search path" >&6
26000 COMPILED_X_PROGRAM=1
26001
a848cd7e
SC
26002else
26003 echo "$as_me: failed program was:" >&5
26004sed 's/^/| /' conftest.$ac_ext >&5
26005
74b84332
VS
26006
26007 echo "$as_me:$LINENO: result: no" >&5
26008echo "${ECHO_T}no" >&6
26009 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26010echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26011 { (exit 1); exit 1; }; }
26012
26013
26014fi
26015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26016
26017 CFLAGS=$save_CFLAGS
26018 fi
26019 fi
26020
26021 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26022echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26023 libp_link=""
26024 libsm_ice_link=""
26025 libs_found=0
26026 for libp in "" " -lXp"; do
26027 if test "$libs_found" = "0"; then
26028 for libsm_ice in "" " -lSM -lICE"; do
26029 if test "$libs_found" = "0"; then
26030 save_LIBS="$LIBS"
26031 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26032 save_CFLAGS=$CFLAGS
26033 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26034
26035 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26036/* confdefs.h. */
26037_ACEOF
26038cat confdefs.h >>conftest.$ac_ext
26039cat >>conftest.$ac_ext <<_ACEOF
26040/* end confdefs.h. */
26041
74b84332
VS
26042 #include <Xm/Xm.h>
26043 #include <Xm/List.h>
26044
a848cd7e
SC
26045int
26046main ()
26047{
74b84332
VS
26048
26049 XmString string = NULL;
26050 Widget w = NULL;
26051 int position = 0;
26052 XmListAddItem(w, string, position);
26053
a848cd7e
SC
26054 ;
26055 return 0;
26056}
26057_ACEOF
26058rm -f conftest.$ac_objext conftest$ac_exeext
26059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26060 (eval $ac_link) 2>conftest.er1
a848cd7e 26061 ac_status=$?
ac1cb8d3
VS
26062 grep -v '^ *+' conftest.er1 >conftest.err
26063 rm -f conftest.er1
26064 cat conftest.err >&5
a848cd7e
SC
26065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066 (exit $ac_status); } &&
7714864e 26067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26069 (eval $ac_try) 2>&5
26070 ac_status=$?
26071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072 (exit $ac_status); }; } &&
26073 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26075 (eval $ac_try) 2>&5
26076 ac_status=$?
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); }; }; then
26079
26080 libp_link="$libp"
26081 libsm_ice_link="$libsm_ice"
26082 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26083echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26084 libs_found=1
26085
26086else
26087 echo "$as_me: failed program was:" >&5
26088sed 's/^/| /' conftest.$ac_ext >&5
26089
26090
26091
26092fi
ac1cb8d3
VS
26093rm -f conftest.err conftest.$ac_objext \
26094 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26095
26096 LIBS="$save_LIBS"
26097 CFLAGS=$save_CFLAGS
26098 fi
26099 done
26100 fi
26101 done
26102
26103 if test "$libs_found" = "0"; then
26104 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26105echo "${ECHO_T}can't find the right libraries" >&6
26106 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26107echo "$as_me: error: can't link a simple motif program" >&2;}
26108 { (exit 1); exit 1; }; }
26109 fi
26110
26111 save_CFLAGS=$CFLAGS
26112 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26113 echo "$as_me:$LINENO: checking for Motif 2" >&5
26114echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26115 cat >conftest.$ac_ext <<_ACEOF
26116/* confdefs.h. */
26117_ACEOF
26118cat confdefs.h >>conftest.$ac_ext
26119cat >>conftest.$ac_ext <<_ACEOF
26120/* end confdefs.h. */
26121
26122 #include <Xm/Xm.h>
26123
26124int
26125main ()
26126{
26127
26128 #if XmVersion < 2000
26129 #error "Not Motif 2"
26130 #endif
26131
26132 ;
26133 return 0;
26134}
26135_ACEOF
26136rm -f conftest.$ac_objext
26137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26138 (eval $ac_compile) 2>conftest.er1
a848cd7e 26139 ac_status=$?
ac1cb8d3
VS
26140 grep -v '^ *+' conftest.er1 >conftest.err
26141 rm -f conftest.er1
26142 cat conftest.err >&5
a848cd7e
SC
26143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26144 (exit $ac_status); } &&
7714864e 26145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26147 (eval $ac_try) 2>&5
26148 ac_status=$?
26149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26150 (exit $ac_status); }; } &&
26151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26153 (eval $ac_try) 2>&5
26154 ac_status=$?
26155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26156 (exit $ac_status); }; }; then
26157
26158 cat >>confdefs.h <<\_ACEOF
26159#define __WXMOTIF20__ 1
26160_ACEOF
26161
26162 echo "$as_me:$LINENO: result: found" >&5
26163echo "${ECHO_T}found" >&6
26164
26165else
26166 echo "$as_me: failed program was:" >&5
26167sed 's/^/| /' conftest.$ac_ext >&5
26168
26169
26170 cat >>confdefs.h <<\_ACEOF
26171#define __WXMOTIF20__ 0
26172_ACEOF
26173
26174 echo "$as_me:$LINENO: result: not found" >&5
26175echo "${ECHO_T}not found" >&6
26176
26177fi
ac1cb8d3 26178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26179 CFLAGS=$save_CFLAGS
26180
26181 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26182 TOOLKIT=MOTIF
26183 GUIDIST=MOTIF_DIST
26184 fi
26185
74b84332 26186 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26187 if test "$wxUSE_LIBXPM" = "sys"; then
26188 echo "$as_me:$LINENO: checking for Xpm library" >&5
26189echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26190
26191ac_find_libraries=
26192for ac_dir in $SEARCH_LIB /usr/lib;
26193 do
26194 for ac_extension in a so sl dylib; do
26195 if test -f "$ac_dir/libXpm.$ac_extension"; then
26196 ac_find_libraries=$ac_dir
26197 break 2
26198 fi
26199 done
26200 done
26201
26202 if test "$ac_find_libraries" != "" ; then
26203
26204 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26205 result=$?
26206 if test $result = 0; then
26207 ac_path_to_link=""
26208 else
26209 ac_path_to_link=" -L$ac_find_libraries"
26210 fi
26211
26212 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26213 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26214echo "${ECHO_T}found at $ac_find_libraries" >&6
26215
26216 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26217echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26218if test "${wx_cv_x11_xpm_h+set}" = set; then
26219 echo $ECHO_N "(cached) $ECHO_C" >&6
26220else
26221
26222 save_CFLAGS=$CFLAGS
26223 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26224
26225 cat >conftest.$ac_ext <<_ACEOF
26226/* confdefs.h. */
26227_ACEOF
26228cat confdefs.h >>conftest.$ac_ext
26229cat >>conftest.$ac_ext <<_ACEOF
26230/* end confdefs.h. */
26231
26232 #include <X11/xpm.h>
26233
26234int
26235main ()
26236{
26237
26238 int version;
26239 version = XpmLibraryVersion();
26240
26241 ;
26242 return 0;
26243}
26244_ACEOF
26245rm -f conftest.$ac_objext
26246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26247 (eval $ac_compile) 2>conftest.er1
a848cd7e 26248 ac_status=$?
ac1cb8d3
VS
26249 grep -v '^ *+' conftest.er1 >conftest.err
26250 rm -f conftest.er1
26251 cat conftest.err >&5
a848cd7e
SC
26252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26253 (exit $ac_status); } &&
7714864e 26254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26256 (eval $ac_try) 2>&5
26257 ac_status=$?
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); }; } &&
26260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26262 (eval $ac_try) 2>&5
26263 ac_status=$?
26264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26265 (exit $ac_status); }; }; then
26266 wx_cv_x11_xpm_h=yes
26267else
26268 echo "$as_me: failed program was:" >&5
26269sed 's/^/| /' conftest.$ac_ext >&5
26270
26271wx_cv_x11_xpm_h=no
26272
26273fi
ac1cb8d3 26274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26275
26276 CFLAGS=$save_CFLAGS
26277
26278
26279fi
26280echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26281echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26282
26283 if test $wx_cv_x11_xpm_h = "yes"; then
26284 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26285 cat >>confdefs.h <<\_ACEOF
26286#define wxHAVE_LIB_XPM 1
26287_ACEOF
26288
26289 else
26290 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26291echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26292 fi
26293 fi
26294
26295 fi
26296
26297 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26298echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26299if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26301else
26302 ac_check_lib_save_LIBS=$LIBS
26303LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26304cat >conftest.$ac_ext <<_ACEOF
26305/* confdefs.h. */
26306_ACEOF
26307cat confdefs.h >>conftest.$ac_ext
26308cat >>conftest.$ac_ext <<_ACEOF
26309/* end confdefs.h. */
26310
26311/* Override any gcc2 internal prototype to avoid an error. */
26312#ifdef __cplusplus
26313extern "C"
26314#endif
26315/* We use char because int might match the return type of a gcc2
26316 builtin and then its argument prototype would still apply. */
26317char XShapeQueryExtension ();
26318int
26319main ()
26320{
26321XShapeQueryExtension ();
26322 ;
26323 return 0;
26324}
26325_ACEOF
26326rm -f conftest.$ac_objext conftest$ac_exeext
26327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26328 (eval $ac_link) 2>conftest.er1
a848cd7e 26329 ac_status=$?
ac1cb8d3
VS
26330 grep -v '^ *+' conftest.er1 >conftest.err
26331 rm -f conftest.er1
26332 cat conftest.err >&5
a848cd7e
SC
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); } &&
7714864e 26335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26337 (eval $ac_try) 2>&5
26338 ac_status=$?
26339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340 (exit $ac_status); }; } &&
26341 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26343 (eval $ac_try) 2>&5
26344 ac_status=$?
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); }; }; then
26347 ac_cv_lib_Xext_XShapeQueryExtension=yes
26348else
26349 echo "$as_me: failed program was:" >&5
26350sed 's/^/| /' conftest.$ac_ext >&5
26351
26352ac_cv_lib_Xext_XShapeQueryExtension=no
26353fi
ac1cb8d3
VS
26354rm -f conftest.err conftest.$ac_objext \
26355 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26356LIBS=$ac_check_lib_save_LIBS
26357fi
26358echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26359echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26360if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26361
26362 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26363 wxHAVE_XEXT_LIB=1
26364
26365fi
26366
26367
26368 if test "$wxHAVE_XEXT_LIB" = 1; then
26369 save_CFLAGS="$CFLAGS"
26370 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26371
26372 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26373echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26374 cat >conftest.$ac_ext <<_ACEOF
26375/* confdefs.h. */
26376_ACEOF
26377cat confdefs.h >>conftest.$ac_ext
26378cat >>conftest.$ac_ext <<_ACEOF
26379/* end confdefs.h. */
26380
26381 #include <X11/Xlib.h>
26382 #include <X11/extensions/shape.h>
26383
26384int
26385main ()
26386{
26387
26388 int dummy1, dummy2;
26389 XShapeQueryExtension((Display*)NULL,
26390 (int*)NULL, (int*)NULL);
26391
26392 ;
26393 return 0;
26394}
26395_ACEOF
26396rm -f conftest.$ac_objext
26397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26398 (eval $ac_compile) 2>conftest.er1
a848cd7e 26399 ac_status=$?
ac1cb8d3
VS
26400 grep -v '^ *+' conftest.er1 >conftest.err
26401 rm -f conftest.er1
26402 cat conftest.err >&5
a848cd7e
SC
26403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 (exit $ac_status); } &&
7714864e 26405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26407 (eval $ac_try) 2>&5
26408 ac_status=$?
26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410 (exit $ac_status); }; } &&
26411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26413 (eval $ac_try) 2>&5
26414 ac_status=$?
26415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416 (exit $ac_status); }; }; then
26417
26418 cat >>confdefs.h <<\_ACEOF
26419#define HAVE_XSHAPE 1
26420_ACEOF
26421
26422 echo "$as_me:$LINENO: result: found" >&5
26423echo "${ECHO_T}found" >&6
26424
26425else
26426 echo "$as_me: failed program was:" >&5
26427sed 's/^/| /' conftest.$ac_ext >&5
26428
26429
26430 echo "$as_me:$LINENO: result: not found" >&5
26431echo "${ECHO_T}not found" >&6
26432
26433fi
ac1cb8d3 26434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26435 CFLAGS="$save_CFLAGS"
26436
26437 fi
26438 fi
26439
26440 if test "$wxUSE_MAC" = 1; then
26441 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26442echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26443 if test "$GCC" = yes; then
26444 echo "$as_me:$LINENO: result: gcc" >&5
26445echo "${ECHO_T}gcc" >&6
26446 CPPFLAGS_PASCAL="-fpascal-strings"
26447 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26448 echo "$as_me:$LINENO: result: xlc" >&5
26449echo "${ECHO_T}xlc" >&6
26450 CPPFLAGS_PASCAL="-qmacpstr"
26451 else
26452 echo "$as_me:$LINENO: result: none" >&5
26453echo "${ECHO_T}none" >&6
26454 fi
26455
26456 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26457
a848cd7e
SC
26458 TOOLKIT=MAC
26459 GUIDIST=MACX_DIST
dd21ced8 26460 WXBASEPORT="_carbon"
a848cd7e
SC
26461 fi
26462
26463 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26464 TOOLKIT=COCOA
26465 GUIDIST=COCOA_DIST
26466 fi
26467
26468 if test "$wxUSE_PM" = 1; then
26469 TOOLKIT=PM
de59c161
RD
26470 GUIDIST=PM_DIST
26471 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26472echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26473if test "${wx_cv_spbcdata+set}" = set; then
26474 echo $ECHO_N "(cached) $ECHO_C" >&6
26475else
26476
26477 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26478/* confdefs.h. */
26479_ACEOF
26480cat confdefs.h >>conftest.$ac_ext
26481cat >>conftest.$ac_ext <<_ACEOF
26482/* end confdefs.h. */
26483
26484 #define INCL_PM
26485 #include <os2.h>
26486
26487int
26488main ()
26489{
26490
26491 SPBCDATA test;
26492
26493 ;
26494 return 0;
26495}
26496_ACEOF
26497rm -f conftest.$ac_objext
26498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26499 (eval $ac_compile) 2>conftest.er1
de59c161 26500 ac_status=$?
ac1cb8d3
VS
26501 grep -v '^ *+' conftest.er1 >conftest.err
26502 rm -f conftest.er1
26503 cat conftest.err >&5
de59c161
RD
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } &&
7714864e 26506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26508 (eval $ac_try) 2>&5
26509 ac_status=$?
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); }; } &&
26512 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26514 (eval $ac_try) 2>&5
26515 ac_status=$?
26516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517 (exit $ac_status); }; }; then
26518 wx_cv_spbcdata=yes
26519else
26520 echo "$as_me: failed program was:" >&5
26521sed 's/^/| /' conftest.$ac_ext >&5
26522
26523wx_cv_spbcdata=no
26524
26525fi
ac1cb8d3 26526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26527
26528
26529fi
26530echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26531echo "${ECHO_T}$wx_cv_spbcdata" >&6
26532
26533 if test $wx_cv_spbcdata = "yes"; then
26534 cat >>confdefs.h <<\_ACEOF
26535#define HAVE_SPBCDATA 1
26536_ACEOF
26537
26538 fi
a848cd7e
SC
26539 fi
26540
26541 if test "$TOOLKIT" = "PM" ; then
26542 TOOLKIT_DIR="os2"
26543 else
26544 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26545 fi
26546
a848cd7e 26547 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26548 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26549 WIDGET_SET=univ
a848cd7e
SC
26550 fi
26551
26552 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26553 DISTDIR="wx\$(TOOLKIT)"
26554else
26555 USE_GUI=0
26556
26557 TOOLKIT_DIR="base"
26558
26559 if test "$USE_WIN32" = 1 ; then
a848cd7e 26560 TOOLKIT="MSW"
a848cd7e
SC
26561 fi
26562
a848cd7e
SC
26563 GUIDIST="BASE_DIST"
26564 DISTDIR="wxBase"
26565fi
26566
26567
26568
26569
26570IODBC_C_SRC=""
26571
26572
26573if test "$TOOLKIT" != "MSW" ; then
26574
26575 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26576
26577 if test "${ac_cv_header_sql_h+set}" = set; then
26578 echo "$as_me:$LINENO: checking for sql.h" >&5
26579echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26580if test "${ac_cv_header_sql_h+set}" = set; then
26581 echo $ECHO_N "(cached) $ECHO_C" >&6
26582fi
26583echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26584echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26585else
26586 # Is the header compilable?
26587echo "$as_me:$LINENO: checking sql.h usability" >&5
26588echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26589cat >conftest.$ac_ext <<_ACEOF
26590/* confdefs.h. */
26591_ACEOF
26592cat confdefs.h >>conftest.$ac_ext
26593cat >>conftest.$ac_ext <<_ACEOF
26594/* end confdefs.h. */
26595$ac_includes_default
26596#include <sql.h>
26597_ACEOF
26598rm -f conftest.$ac_objext
26599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26600 (eval $ac_compile) 2>conftest.er1
a848cd7e 26601 ac_status=$?
ac1cb8d3
VS
26602 grep -v '^ *+' conftest.er1 >conftest.err
26603 rm -f conftest.er1
26604 cat conftest.err >&5
a848cd7e
SC
26605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26606 (exit $ac_status); } &&
7714864e 26607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26609 (eval $ac_try) 2>&5
26610 ac_status=$?
26611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26612 (exit $ac_status); }; } &&
26613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26615 (eval $ac_try) 2>&5
26616 ac_status=$?
26617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26618 (exit $ac_status); }; }; then
26619 ac_header_compiler=yes
26620else
26621 echo "$as_me: failed program was:" >&5
26622sed 's/^/| /' conftest.$ac_ext >&5
26623
26624ac_header_compiler=no
26625fi
ac1cb8d3 26626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26627echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26628echo "${ECHO_T}$ac_header_compiler" >&6
26629
26630# Is the header present?
26631echo "$as_me:$LINENO: checking sql.h presence" >&5
26632echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26633cat >conftest.$ac_ext <<_ACEOF
26634/* confdefs.h. */
26635_ACEOF
26636cat confdefs.h >>conftest.$ac_ext
26637cat >>conftest.$ac_ext <<_ACEOF
26638/* end confdefs.h. */
26639#include <sql.h>
26640_ACEOF
26641if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26642 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26643 ac_status=$?
26644 grep -v '^ *+' conftest.er1 >conftest.err
26645 rm -f conftest.er1
26646 cat conftest.err >&5
26647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648 (exit $ac_status); } >/dev/null; then
26649 if test -s conftest.err; then
26650 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26651 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26652 else
26653 ac_cpp_err=
26654 fi
26655else
26656 ac_cpp_err=yes
26657fi
26658if test -z "$ac_cpp_err"; then
26659 ac_header_preproc=yes
26660else
26661 echo "$as_me: failed program was:" >&5
26662sed 's/^/| /' conftest.$ac_ext >&5
26663
26664 ac_header_preproc=no
26665fi
26666rm -f conftest.err conftest.$ac_ext
26667echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26668echo "${ECHO_T}$ac_header_preproc" >&6
26669
26670# So? What about this header?
ac1cb8d3
VS
26671case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26672 yes:no: )
a848cd7e
SC
26673 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26674echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26675 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26676echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26677 ac_header_preproc=yes
a848cd7e 26678 ;;
ac1cb8d3 26679 no:yes:* )
a848cd7e
SC
26680 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26681echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26682 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26683echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26684 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26685echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26686 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26687echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26688 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26689echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26690 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26691echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26692 (
26693 cat <<\_ASBOX
ac1cb8d3
VS
26694## ----------------------------------------- ##
26695## Report this to wx-dev@lists.wxwidgets.org ##
26696## ----------------------------------------- ##
a848cd7e
SC
26697_ASBOX
26698 ) |
26699 sed "s/^/$as_me: WARNING: /" >&2
26700 ;;
26701esac
26702echo "$as_me:$LINENO: checking for sql.h" >&5
26703echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26704if test "${ac_cv_header_sql_h+set}" = set; then
26705 echo $ECHO_N "(cached) $ECHO_C" >&6
26706else
26707 ac_cv_header_sql_h=$ac_header_preproc
26708fi
26709echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26710echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26711
26712fi
26713if test $ac_cv_header_sql_h = yes; then
26714 found_sql_h=1
26715fi
26716
26717
26718 if test "x$found_sql_h" = "x1" ; then
26719 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26720echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26721if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26722 echo $ECHO_N "(cached) $ECHO_C" >&6
26723else
26724 ac_check_lib_save_LIBS=$LIBS
26725LIBS="-liodbc $LIBS"
26726cat >conftest.$ac_ext <<_ACEOF
26727/* confdefs.h. */
26728_ACEOF
26729cat confdefs.h >>conftest.$ac_ext
26730cat >>conftest.$ac_ext <<_ACEOF
26731/* end confdefs.h. */
26732
26733/* Override any gcc2 internal prototype to avoid an error. */
26734#ifdef __cplusplus
26735extern "C"
26736#endif
26737/* We use char because int might match the return type of a gcc2
26738 builtin and then its argument prototype would still apply. */
26739char SQLAllocEnv ();
26740int
26741main ()
26742{
26743SQLAllocEnv ();
26744 ;
26745 return 0;
26746}
26747_ACEOF
26748rm -f conftest.$ac_objext conftest$ac_exeext
26749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26750 (eval $ac_link) 2>conftest.er1
a848cd7e 26751 ac_status=$?
ac1cb8d3
VS
26752 grep -v '^ *+' conftest.er1 >conftest.err
26753 rm -f conftest.er1
26754 cat conftest.err >&5
a848cd7e
SC
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); } &&
7714864e 26757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759 (eval $ac_try) 2>&5
26760 ac_status=$?
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; } &&
26763 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26765 (eval $ac_try) 2>&5
26766 ac_status=$?
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); }; }; then
26769 ac_cv_lib_iodbc_SQLAllocEnv=yes
26770else
26771 echo "$as_me: failed program was:" >&5
26772sed 's/^/| /' conftest.$ac_ext >&5
26773
26774ac_cv_lib_iodbc_SQLAllocEnv=no
26775fi
ac1cb8d3
VS
26776rm -f conftest.err conftest.$ac_objext \
26777 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26778LIBS=$ac_check_lib_save_LIBS
26779fi
26780echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26781echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26782if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26783 ODBC_LINK=" -liodbc"
26784else
26785
26786 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26787echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26788if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26789 echo $ECHO_N "(cached) $ECHO_C" >&6
26790else
26791 ac_check_lib_save_LIBS=$LIBS
26792LIBS="-lunixodbc $LIBS"
26793cat >conftest.$ac_ext <<_ACEOF
26794/* confdefs.h. */
26795_ACEOF
26796cat confdefs.h >>conftest.$ac_ext
26797cat >>conftest.$ac_ext <<_ACEOF
26798/* end confdefs.h. */
26799
26800/* Override any gcc2 internal prototype to avoid an error. */
26801#ifdef __cplusplus
26802extern "C"
26803#endif
26804/* We use char because int might match the return type of a gcc2
26805 builtin and then its argument prototype would still apply. */
26806char SQLAllocEnv ();
26807int
26808main ()
26809{
26810SQLAllocEnv ();
26811 ;
26812 return 0;
26813}
26814_ACEOF
26815rm -f conftest.$ac_objext conftest$ac_exeext
26816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26817 (eval $ac_link) 2>conftest.er1
a848cd7e 26818 ac_status=$?
ac1cb8d3
VS
26819 grep -v '^ *+' conftest.er1 >conftest.err
26820 rm -f conftest.er1
26821 cat conftest.err >&5
a848cd7e
SC
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); } &&
7714864e 26824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26826 (eval $ac_try) 2>&5
26827 ac_status=$?
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); }; } &&
26830 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26832 (eval $ac_try) 2>&5
26833 ac_status=$?
26834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26835 (exit $ac_status); }; }; then
26836 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26837else
26838 echo "$as_me: failed program was:" >&5
26839sed 's/^/| /' conftest.$ac_ext >&5
26840
26841ac_cv_lib_unixodbc_SQLAllocEnv=no
26842fi
ac1cb8d3
VS
26843rm -f conftest.err conftest.$ac_objext \
26844 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26845LIBS=$ac_check_lib_save_LIBS
26846fi
26847echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26848echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26849if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26850 ODBC_LINK=" -lunixodbc"
26851else
26852
26853 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26854echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26855if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26856 echo $ECHO_N "(cached) $ECHO_C" >&6
26857else
26858 ac_check_lib_save_LIBS=$LIBS
26859LIBS="-lodbc $LIBS"
26860cat >conftest.$ac_ext <<_ACEOF
26861/* confdefs.h. */
26862_ACEOF
26863cat confdefs.h >>conftest.$ac_ext
26864cat >>conftest.$ac_ext <<_ACEOF
26865/* end confdefs.h. */
26866
26867/* Override any gcc2 internal prototype to avoid an error. */
26868#ifdef __cplusplus
26869extern "C"
26870#endif
26871/* We use char because int might match the return type of a gcc2
26872 builtin and then its argument prototype would still apply. */
26873char SQLAllocEnv ();
26874int
26875main ()
26876{
26877SQLAllocEnv ();
26878 ;
26879 return 0;
26880}
26881_ACEOF
26882rm -f conftest.$ac_objext conftest$ac_exeext
26883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26884 (eval $ac_link) 2>conftest.er1
a848cd7e 26885 ac_status=$?
ac1cb8d3
VS
26886 grep -v '^ *+' conftest.er1 >conftest.err
26887 rm -f conftest.er1
26888 cat conftest.err >&5
a848cd7e
SC
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); } &&
7714864e 26891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26893 (eval $ac_try) 2>&5
26894 ac_status=$?
26895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); }; } &&
26897 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26899 (eval $ac_try) 2>&5
26900 ac_status=$?
26901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); }; }; then
26903 ac_cv_lib_odbc_SQLAllocEnv=yes
26904else
26905 echo "$as_me: failed program was:" >&5
26906sed 's/^/| /' conftest.$ac_ext >&5
26907
26908ac_cv_lib_odbc_SQLAllocEnv=no
26909fi
ac1cb8d3
VS
26910rm -f conftest.err conftest.$ac_objext \
26911 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26912LIBS=$ac_check_lib_save_LIBS
26913fi
26914echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26915echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26916if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26917 ODBC_LINK=" -lodbc"
26918fi
26919
26920
26921fi
26922
26923
26924fi
26925
26926 fi
26927 if test "x$ODBC_LINK" = "x" ; then
26928 if test "$wxUSE_ODBC" = "sys" ; then
26929 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26930echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26931 { (exit 1); exit 1; }; }
26932 else
26933 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26934echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26935 wxUSE_ODBC=builtin
26936 fi
26937 else
26938 wxUSE_ODBC=sys
26939 fi
26940 fi
26941 if test "$wxUSE_ODBC" != "no" ; then
26942 cat >>confdefs.h <<\_ACEOF
26943#define wxUSE_ODBC 1
26944_ACEOF
26945
26946 if test "$wxUSE_ODBC" = "builtin" ; then
26947 cat >>confdefs.h <<\_ACEOF
26948#define wxUSE_BUILTIN_IODBC 1
26949_ACEOF
26950
26951 fi
26952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26953
26954 WXODBCFLAG="-D_IODBC_"
26955 fi
26956fi
26957
a848cd7e 26958
01cb68df 26959
a848cd7e 26960if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26961 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26962 echo "$as_me:$LINENO: checking for Xinerama" >&5
26963echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26964
26965ac_find_libraries=
26966for ac_dir in $SEARCH_LIB /usr/lib;
26967 do
26968 for ac_extension in a so sl dylib; do
26969 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26970 ac_find_libraries=$ac_dir
26971 break 2
26972 fi
26973 done
26974 done
26975
26976 if test "$ac_find_libraries" != "" ; then
26977
26978 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26979 result=$?
26980 if test $result = 0; then
26981 ac_path_to_link=""
26982 else
26983 ac_path_to_link=" -L$ac_find_libraries"
26984 fi
26985
26986 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26987 LDFLAGS="$LDFLAGS $ac_path_to_link"
26988 fi
26989 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26990 echo "$as_me:$LINENO: result: yes" >&5
26991echo "${ECHO_T}yes" >&6
26992
26993 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26994echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26995
26996ac_find_libraries=
26997for ac_dir in $SEARCH_LIB /usr/lib;
26998 do
26999 for ac_extension in a so sl dylib; do
27000 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27001 ac_find_libraries=$ac_dir
27002 break 2
27003 fi
27004 done
27005 done
27006
27007 if test "$ac_find_libraries" != "" ; then
27008 echo "$as_me:$LINENO: result: yes" >&5
27009echo "${ECHO_T}yes" >&6
27010
27011for ac_header in X11/extensions/xf86vmode.h
27012do
27013as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27014echo "$as_me:$LINENO: checking for $ac_header" >&5
27015echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27016if eval "test \"\${$as_ac_Header+set}\" = set"; then
27017 echo $ECHO_N "(cached) $ECHO_C" >&6
27018else
27019 cat >conftest.$ac_ext <<_ACEOF
27020/* confdefs.h. */
27021_ACEOF
27022cat confdefs.h >>conftest.$ac_ext
27023cat >>conftest.$ac_ext <<_ACEOF
27024/* end confdefs.h. */
27025
27026 #if HAVE_X11_XLIB_H
27027 #include <X11/Xlib.h>
27028 #endif
27029
27030
27031#include <$ac_header>
27032_ACEOF
27033rm -f conftest.$ac_objext
27034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27035 (eval $ac_compile) 2>conftest.er1
a848cd7e 27036 ac_status=$?
ac1cb8d3
VS
27037 grep -v '^ *+' conftest.er1 >conftest.err
27038 rm -f conftest.er1
27039 cat conftest.err >&5
a848cd7e
SC
27040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 (exit $ac_status); } &&
7714864e 27042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27044 (eval $ac_try) 2>&5
27045 ac_status=$?
27046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047 (exit $ac_status); }; } &&
27048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27050 (eval $ac_try) 2>&5
27051 ac_status=$?
27052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053 (exit $ac_status); }; }; then
27054 eval "$as_ac_Header=yes"
27055else
27056 echo "$as_me: failed program was:" >&5
27057sed 's/^/| /' conftest.$ac_ext >&5
27058
27059eval "$as_ac_Header=no"
27060fi
ac1cb8d3 27061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27062fi
27063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27065if test `eval echo '${'$as_ac_Header'}'` = yes; then
27066 cat >>confdefs.h <<_ACEOF
27067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27068_ACEOF
27069
27070 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27071
27072fi
27073
27074done
27075
27076 else
27077 echo "$as_me:$LINENO: result: no" >&5
27078echo "${ECHO_T}no" >&6
27079 fi
27080
27081 else
27082 echo "$as_me:$LINENO: result: no" >&5
27083echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27084 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27085echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27086 wxUSE_DISPLAY="no"
27087 fi
01cb68df
RG
27088 elif test "$wxUSE_MSW" = 1; then
27089
27090
27091for ac_header in multimon.h ddraw.h
27092do
27093as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27094if eval "test \"\${$as_ac_Header+set}\" = set"; then
27095 echo "$as_me:$LINENO: checking for $ac_header" >&5
27096echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27097if eval "test \"\${$as_ac_Header+set}\" = set"; then
27098 echo $ECHO_N "(cached) $ECHO_C" >&6
27099fi
27100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27102else
27103 # Is the header compilable?
27104echo "$as_me:$LINENO: checking $ac_header usability" >&5
27105echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27106cat >conftest.$ac_ext <<_ACEOF
27107/* confdefs.h. */
27108_ACEOF
27109cat confdefs.h >>conftest.$ac_ext
27110cat >>conftest.$ac_ext <<_ACEOF
27111/* end confdefs.h. */
27112$ac_includes_default
27113#include <$ac_header>
27114_ACEOF
27115rm -f conftest.$ac_objext
27116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27117 (eval $ac_compile) 2>conftest.er1
01cb68df 27118 ac_status=$?
ac1cb8d3
VS
27119 grep -v '^ *+' conftest.er1 >conftest.err
27120 rm -f conftest.er1
27121 cat conftest.err >&5
01cb68df
RG
27122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123 (exit $ac_status); } &&
7714864e 27124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27126 (eval $ac_try) 2>&5
27127 ac_status=$?
27128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27129 (exit $ac_status); }; } &&
27130 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27132 (eval $ac_try) 2>&5
27133 ac_status=$?
27134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135 (exit $ac_status); }; }; then
27136 ac_header_compiler=yes
27137else
27138 echo "$as_me: failed program was:" >&5
27139sed 's/^/| /' conftest.$ac_ext >&5
27140
27141ac_header_compiler=no
27142fi
ac1cb8d3 27143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27145echo "${ECHO_T}$ac_header_compiler" >&6
27146
27147# Is the header present?
27148echo "$as_me:$LINENO: checking $ac_header presence" >&5
27149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27150cat >conftest.$ac_ext <<_ACEOF
27151/* confdefs.h. */
27152_ACEOF
27153cat confdefs.h >>conftest.$ac_ext
27154cat >>conftest.$ac_ext <<_ACEOF
27155/* end confdefs.h. */
27156#include <$ac_header>
27157_ACEOF
27158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27160 ac_status=$?
27161 grep -v '^ *+' conftest.er1 >conftest.err
27162 rm -f conftest.er1
27163 cat conftest.err >&5
27164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27165 (exit $ac_status); } >/dev/null; then
27166 if test -s conftest.err; then
27167 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27169 else
27170 ac_cpp_err=
27171 fi
27172else
27173 ac_cpp_err=yes
27174fi
27175if test -z "$ac_cpp_err"; then
27176 ac_header_preproc=yes
27177else
27178 echo "$as_me: failed program was:" >&5
27179sed 's/^/| /' conftest.$ac_ext >&5
27180
27181 ac_header_preproc=no
27182fi
27183rm -f conftest.err conftest.$ac_ext
27184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27185echo "${ECHO_T}$ac_header_preproc" >&6
27186
27187# So? What about this header?
ac1cb8d3
VS
27188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27189 yes:no: )
01cb68df
RG
27190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27194 ac_header_preproc=yes
01cb68df 27195 ;;
ac1cb8d3 27196 no:yes:* )
01cb68df
RG
27197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27209 (
27210 cat <<\_ASBOX
ac1cb8d3
VS
27211## ----------------------------------------- ##
27212## Report this to wx-dev@lists.wxwidgets.org ##
27213## ----------------------------------------- ##
01cb68df
RG
27214_ASBOX
27215 ) |
27216 sed "s/^/$as_me: WARNING: /" >&2
27217 ;;
27218esac
27219echo "$as_me:$LINENO: checking for $ac_header" >&5
27220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27221if eval "test \"\${$as_ac_Header+set}\" = set"; then
27222 echo $ECHO_N "(cached) $ECHO_C" >&6
27223else
ac1cb8d3 27224 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27225fi
27226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27228
27229fi
27230if test `eval echo '${'$as_ac_Header'}'` = yes; then
27231 cat >>confdefs.h <<_ACEOF
27232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27233_ACEOF
27234
27235else
27236
27237 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27238 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27239echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27240
27241fi
27242
27243done
27244
a848cd7e
SC
27245 fi
27246fi
27247
27248
27249USE_OPENGL=0
27250if test "$wxUSE_OPENGL" = "yes"; then
27251 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27252 OPENGL_LIBS="-framework OpenGL -framework AGL"
27253 elif test "$wxUSE_MSW" = 1; then
27254 OPENGL_LIBS="-lopengl32 -lglu32"
27255 else
27256
27257
27258ac_find_includes=
27259for ac_dir in $SEARCH_INCLUDE /usr/include;
27260 do
27261 if test -f "$ac_dir/GL/gl.h"; then
27262 ac_find_includes=$ac_dir
27263 break
27264 fi
27265 done
27266
27267 if test "$ac_find_includes" != "" ; then
27268 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27269echo "${ECHO_T}found in $ac_find_includes" >&6
27270
27271 if test "x$ac_find_includes" = "x/usr/include"; then
27272 ac_path_to_include=""
27273 else
27274 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27275 result=$?
27276 if test $result = 0; then
27277 ac_path_to_include=""
27278 else
27279 ac_path_to_include=" -I$ac_find_includes"
27280 fi
27281 fi
27282
27283 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27284 fi
27285
27286 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27287 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27288echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27289if test "${ac_cv_header_GL_gl_h+set}" = set; then
27290 echo $ECHO_N "(cached) $ECHO_C" >&6
27291fi
27292echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27293echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27294else
27295 # Is the header compilable?
27296echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27297echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27298cat >conftest.$ac_ext <<_ACEOF
27299/* confdefs.h. */
27300_ACEOF
27301cat confdefs.h >>conftest.$ac_ext
27302cat >>conftest.$ac_ext <<_ACEOF
27303/* end confdefs.h. */
27304$ac_includes_default
27305#include <GL/gl.h>
27306_ACEOF
27307rm -f conftest.$ac_objext
27308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27309 (eval $ac_compile) 2>conftest.er1
a848cd7e 27310 ac_status=$?
ac1cb8d3
VS
27311 grep -v '^ *+' conftest.er1 >conftest.err
27312 rm -f conftest.er1
27313 cat conftest.err >&5
a848cd7e
SC
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); } &&
7714864e 27316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27318 (eval $ac_try) 2>&5
27319 ac_status=$?
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); }; } &&
27322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324 (eval $ac_try) 2>&5
27325 ac_status=$?
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; }; then
27328 ac_header_compiler=yes
27329else
27330 echo "$as_me: failed program was:" >&5
27331sed 's/^/| /' conftest.$ac_ext >&5
27332
27333ac_header_compiler=no
27334fi
ac1cb8d3 27335rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27336echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27337echo "${ECHO_T}$ac_header_compiler" >&6
27338
27339# Is the header present?
27340echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27341echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27342cat >conftest.$ac_ext <<_ACEOF
27343/* confdefs.h. */
27344_ACEOF
27345cat confdefs.h >>conftest.$ac_ext
27346cat >>conftest.$ac_ext <<_ACEOF
27347/* end confdefs.h. */
27348#include <GL/gl.h>
27349_ACEOF
27350if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27352 ac_status=$?
27353 grep -v '^ *+' conftest.er1 >conftest.err
27354 rm -f conftest.er1
27355 cat conftest.err >&5
27356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357 (exit $ac_status); } >/dev/null; then
27358 if test -s conftest.err; then
27359 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27360 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27361 else
27362 ac_cpp_err=
27363 fi
27364else
27365 ac_cpp_err=yes
27366fi
27367if test -z "$ac_cpp_err"; then
27368 ac_header_preproc=yes
27369else
27370 echo "$as_me: failed program was:" >&5
27371sed 's/^/| /' conftest.$ac_ext >&5
27372
27373 ac_header_preproc=no
27374fi
27375rm -f conftest.err conftest.$ac_ext
27376echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27377echo "${ECHO_T}$ac_header_preproc" >&6
27378
27379# So? What about this header?
ac1cb8d3
VS
27380case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27381 yes:no: )
a848cd7e
SC
27382 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27383echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27384 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27385echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27386 ac_header_preproc=yes
a848cd7e 27387 ;;
ac1cb8d3 27388 no:yes:* )
a848cd7e
SC
27389 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27390echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27391 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27392echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27393 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27394echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27395 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27396echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27397 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27398echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27399 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27400echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27401 (
27402 cat <<\_ASBOX
ac1cb8d3
VS
27403## ----------------------------------------- ##
27404## Report this to wx-dev@lists.wxwidgets.org ##
27405## ----------------------------------------- ##
a848cd7e
SC
27406_ASBOX
27407 ) |
27408 sed "s/^/$as_me: WARNING: /" >&2
27409 ;;
27410esac
27411echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27412echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27413if test "${ac_cv_header_GL_gl_h+set}" = set; then
27414 echo $ECHO_N "(cached) $ECHO_C" >&6
27415else
27416 ac_cv_header_GL_gl_h=$ac_header_preproc
27417fi
27418echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27419echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27420
27421fi
27422if test $ac_cv_header_GL_gl_h = yes; then
27423
27424 found_gl=0
27425
27426 echo "$as_me:$LINENO: checking for -lGL" >&5
27427echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27428
27429ac_find_libraries=
27430for ac_dir in $SEARCH_LIB /usr/lib;
27431 do
27432 for ac_extension in a so sl dylib; do
27433 if test -f "$ac_dir/libGL.$ac_extension"; then
27434 ac_find_libraries=$ac_dir
27435 break 2
27436 fi
27437 done
27438 done
27439
27440 if test "$ac_find_libraries" != "" ; then
27441
27442 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27443 result=$?
27444 if test $result = 0; then
27445 ac_path_to_link=""
27446 else
27447 ac_path_to_link=" -L$ac_find_libraries"
27448 fi
27449
27450 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27451 LDFLAGS_GL="$ac_path_to_link"
27452 fi
27453
27454
27455ac_find_libraries=
27456for ac_dir in $SEARCH_LIB /usr/lib;
27457 do
27458 for ac_extension in a so sl dylib; do
27459 if test -f "$ac_dir/libGLU.$ac_extension"; then
27460 ac_find_libraries=$ac_dir
27461 break 2
27462 fi
27463 done
27464 done
27465
27466 if test "$ac_find_libraries" != "" ; then
27467
27468 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27469 result=$?
27470 if test $result = 0; then
27471 ac_path_to_link=""
27472 else
27473 ac_path_to_link=" -L$ac_find_libraries"
27474 fi
27475
27476 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27477 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27478 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27479 fi
27480
27481 found_gl=1
27482 OPENGL_LIBS="-lGL -lGLU"
27483 echo "$as_me:$LINENO: result: yes" >&5
27484echo "${ECHO_T}yes" >&6
27485 fi
27486 fi
27487
27488 if test "$found_gl" != 1; then
27489 echo "$as_me:$LINENO: result: no" >&5
27490echo "${ECHO_T}no" >&6
27491 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27492echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27493
27494ac_find_libraries=
27495for ac_dir in $SEARCH_LIB /usr/lib;
27496 do
27497 for ac_extension in a so sl dylib; do
27498 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27499 ac_find_libraries=$ac_dir
27500 break 2
27501 fi
27502 done
27503 done
27504
27505 if test "$ac_find_libraries" != "" ; then
27506
27507 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27508 result=$?
27509 if test $result = 0; then
27510 ac_path_to_link=""
27511 else
27512 ac_path_to_link=" -L$ac_find_libraries"
27513 fi
27514
27515 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27516 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27517 echo "$as_me:$LINENO: result: yes" >&5
27518echo "${ECHO_T}yes" >&6
27519 else
27520 echo "$as_me:$LINENO: result: no" >&5
27521echo "${ECHO_T}no" >&6
27522 fi
27523 fi
27524
27525fi
27526
27527
27528
27529 if test "x$OPENGL_LIBS" = "x"; then
27530 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27531echo "$as_me: error: OpenGL libraries not available" >&2;}
27532 { (exit 1); exit 1; }; }
27533 fi
27534 fi
27535
27536 if test "$wxUSE_OPENGL" = "yes"; then
27537 USE_OPENGL=1
27538 cat >>confdefs.h <<\_ACEOF
27539#define wxUSE_OPENGL 1
27540_ACEOF
27541
27542 cat >>confdefs.h <<\_ACEOF
27543#define wxUSE_GLCANVAS 1
27544_ACEOF
27545
27546 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27547 fi
27548fi
27549
a848cd7e
SC
27550
27551if test -n "$TOOLKIT" ; then
27552 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27553fi
27554
a848cd7e
SC
27555
27556
27557if test "$wxUSE_SHARED" = "yes"; then
27558 case "${host}" in
27559 *-pc-msdosdjgpp )
27560 wxUSE_SHARED=no
27561 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27562echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27563 ;;
27564 esac
27565fi
27566
a848cd7e 27567if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27568
27569
27570 found_versioning=no
27571
27572
27573 if test $found_versioning = no ; then
27574 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27575echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27576if test "${wx_cv_version_script+set}" = set; then
27577 echo $ECHO_N "(cached) $ECHO_C" >&6
27578else
27579
27580 echo "VER_1 { *; };" >conftest.sym
27581 echo "int main() { return 0; }" >conftest.cpp
27582
27583 if { ac_try='
27584 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27585 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27587 (eval $ac_try) 2>&5
27588 ac_status=$?
27589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27590 (exit $ac_status); }; } ; then
27591 if test -s conftest.stderr ; then
27592 wx_cv_version_script=no
27593 else
27594 wx_cv_version_script=yes
27595 fi
27596 else
27597 wx_cv_version_script=no
27598 fi
27599 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27600
27601fi
27602echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27603echo "${ECHO_T}$wx_cv_version_script" >&6
27604 if test $wx_cv_version_script = yes ; then
27605 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27606 fi
27607 fi
27608
27609
27610 case "${host}" in
27611 *-*-linux* | *-*-gnu* )
27612 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27613 ;;
27614
27615 *-*-solaris2* )
27616 if test "$GCC" = yes ; then
27617 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27618
27619 saveLdflags="$LDFLAGS"
27620 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27621 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27622echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27623 cat >conftest.$ac_ext <<_ACEOF
27624/* confdefs.h. */
27625_ACEOF
27626cat confdefs.h >>conftest.$ac_ext
27627cat >>conftest.$ac_ext <<_ACEOF
27628/* end confdefs.h. */
27629
27630int
27631main ()
27632{
27633
27634 ;
27635 return 0;
27636}
27637_ACEOF
27638rm -f conftest.$ac_objext conftest$ac_exeext
27639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27640 (eval $ac_link) 2>conftest.er1
a848cd7e 27641 ac_status=$?
ac1cb8d3
VS
27642 grep -v '^ *+' conftest.er1 >conftest.err
27643 rm -f conftest.er1
27644 cat conftest.err >&5
a848cd7e
SC
27645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); } &&
7714864e 27647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27649 (eval $ac_try) 2>&5
27650 ac_status=$?
27651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27652 (exit $ac_status); }; } &&
27653 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27655 (eval $ac_try) 2>&5
27656 ac_status=$?
27657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658 (exit $ac_status); }; }; then
27659
27660 echo "$as_me:$LINENO: result: yes" >&5
27661echo "${ECHO_T}yes" >&6
27662 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27663
27664else
27665 echo "$as_me: failed program was:" >&5
27666sed 's/^/| /' conftest.$ac_ext >&5
27667
27668
27669 echo "$as_me:$LINENO: result: no" >&5
27670echo "${ECHO_T}no" >&6
27671 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27672echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27673 LDFLAGS="$saveLdflags -Wl,-R,/"
27674 cat >conftest.$ac_ext <<_ACEOF
27675/* confdefs.h. */
27676_ACEOF
27677cat confdefs.h >>conftest.$ac_ext
27678cat >>conftest.$ac_ext <<_ACEOF
27679/* end confdefs.h. */
27680
27681int
27682main ()
27683{
27684
27685 ;
27686 return 0;
27687}
27688_ACEOF
27689rm -f conftest.$ac_objext conftest$ac_exeext
27690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27691 (eval $ac_link) 2>conftest.er1
a848cd7e 27692 ac_status=$?
ac1cb8d3
VS
27693 grep -v '^ *+' conftest.er1 >conftest.err
27694 rm -f conftest.er1
27695 cat conftest.err >&5
a848cd7e
SC
27696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27697 (exit $ac_status); } &&
7714864e 27698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27700 (eval $ac_try) 2>&5
27701 ac_status=$?
27702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703 (exit $ac_status); }; } &&
27704 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27706 (eval $ac_try) 2>&5
27707 ac_status=$?
27708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709 (exit $ac_status); }; }; then
27710
27711 echo "$as_me:$LINENO: result: yes" >&5
27712echo "${ECHO_T}yes" >&6
27713 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27714else
27715 echo "$as_me: failed program was:" >&5
27716sed 's/^/| /' conftest.$ac_ext >&5
27717
27718
27719 echo "$as_me:$LINENO: result: no" >&5
27720echo "${ECHO_T}no" >&6
27721
27722fi
ac1cb8d3
VS
27723rm -f conftest.err conftest.$ac_objext \
27724 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27725
27726fi
ac1cb8d3
VS
27727rm -f conftest.err conftest.$ac_objext \
27728 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27729 LDFLAGS="$saveLdflags"
27730 else
a848cd7e
SC
27731 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27732 fi
27733 ;;
27734
27735 powerpc-*-darwin* )
27736 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27737 cat <<EOF >change-install-names
27738#!/bin/sh
27739libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27740inst_cmd="install_name_tool "
27741for i in \${libnames} ; do
27742 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27743done
27744\${inst_cmd} \${3}
27745EOF
27746 chmod +x change-install-names
27747 ;;
27748
27749 *-*-cygwin* | *-*-mingw32* )
27750 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27751 ;;
27752
27753 esac
ceec2216
RL
27754fi
27755
27756if test "$wxUSE_SHARED" = "no"; then
27757 config_linkage_component="-static"
27758 SHARED=0
27759else
27760 SHARED=1
27761fi
a848cd7e 27762
a848cd7e 27763
ceec2216
RL
27764UNICODE=0
27765lib_unicode_suffix=
27766WX_CHARTYPE="ansi"
27767if test "$wxUSE_UNICODE" = "yes"; then
27768 lib_unicode_suffix=u
27769 WX_CHARTYPE="unicode"
27770 UNICODE=1
a848cd7e
SC
27771fi
27772
ceec2216
RL
27773lib_debug_suffix=
27774WX_DEBUGTYPE="release"
27775DEBUG_FLAG=0
27776if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27777 lib_debug_suffix=d
27778 WX_DEBUGTYPE="debug"
27779 DEBUG_FLAG=1
27780fi
a848cd7e 27781
ceec2216
RL
27782WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
27783WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 27784
ceec2216
RL
27785DEBUG_INFO=0
27786if test "$wxUSE_DEBUG_INFO" = "yes"; then
27787 DEBUG_INFO=1
27788fi
a848cd7e 27789
ceec2216 27790WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 27791
ceec2216 27792TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 27793
ceec2216 27794TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 27795
ceec2216
RL
27796if test "$cross_compiling" = "yes"; then
27797 HOST_SUFFIX="-$host_alias"
27798 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
27799 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
27800fi
27801
dd21ced8 27802WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
27803WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
27804
27805
27806
a848cd7e 27807if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
ceec2216
RL
27808 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.r"
27809 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.rsrc"
27810
a848cd7e 27811 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
27812
27813 # Extract the first word of "Rez", so it can be a program name with args.
27814set dummy Rez; ac_word=$2
27815echo "$as_me:$LINENO: checking for $ac_word" >&5
27816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27817if test "${ac_cv_prog_RESCOMP+set}" = set; then
27818 echo $ECHO_N "(cached) $ECHO_C" >&6
27819else
27820 if test -n "$RESCOMP"; then
27821 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27822else
27823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27824for as_dir in $PATH
27825do
27826 IFS=$as_save_IFS
27827 test -z "$as_dir" && as_dir=.
27828 for ac_exec_ext in '' $ac_executable_extensions; do
27829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27830 ac_cv_prog_RESCOMP="Rez"
27831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27832 break 2
27833 fi
27834done
27835done
27836
27837 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27838fi
27839fi
27840RESCOMP=$ac_cv_prog_RESCOMP
27841if test -n "$RESCOMP"; then
27842 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27843echo "${ECHO_T}$RESCOMP" >&6
27844else
27845 echo "$as_me:$LINENO: result: no" >&5
27846echo "${ECHO_T}no" >&6
27847fi
27848
27849 # Extract the first word of "DeRez", so it can be a program name with args.
27850set dummy DeRez; ac_word=$2
27851echo "$as_me:$LINENO: checking for $ac_word" >&5
27852echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27853if test "${ac_cv_prog_DEREZ+set}" = set; then
27854 echo $ECHO_N "(cached) $ECHO_C" >&6
27855else
27856 if test -n "$DEREZ"; then
27857 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27858else
27859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27860for as_dir in $PATH
27861do
27862 IFS=$as_save_IFS
27863 test -z "$as_dir" && as_dir=.
27864 for ac_exec_ext in '' $ac_executable_extensions; do
27865 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27866 ac_cv_prog_DEREZ="DeRez"
27867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27868 break 2
27869 fi
27870done
27871done
27872
27873 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27874fi
27875fi
27876DEREZ=$ac_cv_prog_DEREZ
27877if test -n "$DEREZ"; then
27878 echo "$as_me:$LINENO: result: $DEREZ" >&5
27879echo "${ECHO_T}$DEREZ" >&6
27880else
27881 echo "$as_me:$LINENO: result: no" >&5
27882echo "${ECHO_T}no" >&6
27883fi
27884
27885 # Extract the first word of "SetFile", so it can be a program name with args.
27886set dummy SetFile; ac_word=$2
27887echo "$as_me:$LINENO: checking for $ac_word" >&5
27888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27889if test "${ac_cv_prog_SETFILE+set}" = set; then
27890 echo $ECHO_N "(cached) $ECHO_C" >&6
27891else
27892 if test -n "$SETFILE"; then
27893 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27894else
27895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27896for as_dir in $PATH
27897do
27898 IFS=$as_save_IFS
27899 test -z "$as_dir" && as_dir=.
27900 for ac_exec_ext in '' $ac_executable_extensions; do
27901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27902 ac_cv_prog_SETFILE="SetFile"
27903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27904 break 2
27905 fi
27906done
27907done
27908
27909 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27910fi
27911fi
27912SETFILE=$ac_cv_prog_SETFILE
27913if test -n "$SETFILE"; then
27914 echo "$as_me:$LINENO: result: $SETFILE" >&5
27915echo "${ECHO_T}$SETFILE" >&6
27916else
27917 echo "$as_me:$LINENO: result: no" >&5
27918echo "${ECHO_T}no" >&6
27919fi
27920
27921
27922 MACSETFILE="\$(SETFILE)"
27923
27924 if test "$wxUSE_MAC" = 1; then
27925 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27926
27927 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27928 else
27929 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27930 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27931 fi
27932else
27933 MACSETFILE="@#"
27934 MACRESWXCONFIG="#"
27935
27936 if test "$wxUSE_PM" = 1; then
27937 MACRESCOMP="emxbind -ep"
27938 else
27939 MACRESCOMP="@#"
27940 fi
27941fi
27942
27943
27944
27945echo "$as_me:$LINENO: checking for mode_t" >&5
27946echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27947if test "${ac_cv_type_mode_t+set}" = set; then
27948 echo $ECHO_N "(cached) $ECHO_C" >&6
27949else
27950 cat >conftest.$ac_ext <<_ACEOF
27951/* confdefs.h. */
27952_ACEOF
27953cat confdefs.h >>conftest.$ac_ext
27954cat >>conftest.$ac_ext <<_ACEOF
27955/* end confdefs.h. */
27956$ac_includes_default
27957int
27958main ()
27959{
27960if ((mode_t *) 0)
27961 return 0;
27962if (sizeof (mode_t))
27963 return 0;
27964 ;
27965 return 0;
27966}
27967_ACEOF
27968rm -f conftest.$ac_objext
27969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27970 (eval $ac_compile) 2>conftest.er1
a848cd7e 27971 ac_status=$?
ac1cb8d3
VS
27972 grep -v '^ *+' conftest.er1 >conftest.err
27973 rm -f conftest.er1
27974 cat conftest.err >&5
a848cd7e
SC
27975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976 (exit $ac_status); } &&
7714864e 27977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27979 (eval $ac_try) 2>&5
27980 ac_status=$?
27981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982 (exit $ac_status); }; } &&
27983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27985 (eval $ac_try) 2>&5
27986 ac_status=$?
27987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988 (exit $ac_status); }; }; then
27989 ac_cv_type_mode_t=yes
27990else
27991 echo "$as_me: failed program was:" >&5
27992sed 's/^/| /' conftest.$ac_ext >&5
27993
27994ac_cv_type_mode_t=no
27995fi
ac1cb8d3 27996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27997fi
27998echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27999echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28000if test $ac_cv_type_mode_t = yes; then
28001 :
28002else
28003
28004cat >>confdefs.h <<_ACEOF
28005#define mode_t int
28006_ACEOF
28007
28008fi
28009
28010echo "$as_me:$LINENO: checking for off_t" >&5
28011echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28012if test "${ac_cv_type_off_t+set}" = set; then
28013 echo $ECHO_N "(cached) $ECHO_C" >&6
28014else
28015 cat >conftest.$ac_ext <<_ACEOF
28016/* confdefs.h. */
28017_ACEOF
28018cat confdefs.h >>conftest.$ac_ext
28019cat >>conftest.$ac_ext <<_ACEOF
28020/* end confdefs.h. */
28021$ac_includes_default
28022int
28023main ()
28024{
28025if ((off_t *) 0)
28026 return 0;
28027if (sizeof (off_t))
28028 return 0;
28029 ;
28030 return 0;
28031}
28032_ACEOF
28033rm -f conftest.$ac_objext
28034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28035 (eval $ac_compile) 2>conftest.er1
a848cd7e 28036 ac_status=$?
ac1cb8d3
VS
28037 grep -v '^ *+' conftest.er1 >conftest.err
28038 rm -f conftest.er1
28039 cat conftest.err >&5
a848cd7e
SC
28040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28041 (exit $ac_status); } &&
7714864e 28042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28044 (eval $ac_try) 2>&5
28045 ac_status=$?
28046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28047 (exit $ac_status); }; } &&
28048 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28050 (eval $ac_try) 2>&5
28051 ac_status=$?
28052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053 (exit $ac_status); }; }; then
28054 ac_cv_type_off_t=yes
28055else
28056 echo "$as_me: failed program was:" >&5
28057sed 's/^/| /' conftest.$ac_ext >&5
28058
28059ac_cv_type_off_t=no
28060fi
ac1cb8d3 28061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28062fi
28063echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28064echo "${ECHO_T}$ac_cv_type_off_t" >&6
28065if test $ac_cv_type_off_t = yes; then
28066 :
28067else
28068
28069cat >>confdefs.h <<_ACEOF
28070#define off_t long
28071_ACEOF
28072
28073fi
28074
28075echo "$as_me:$LINENO: checking for pid_t" >&5
28076echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28077if test "${ac_cv_type_pid_t+set}" = set; then
28078 echo $ECHO_N "(cached) $ECHO_C" >&6
28079else
28080 cat >conftest.$ac_ext <<_ACEOF
28081/* confdefs.h. */
28082_ACEOF
28083cat confdefs.h >>conftest.$ac_ext
28084cat >>conftest.$ac_ext <<_ACEOF
28085/* end confdefs.h. */
28086$ac_includes_default
28087int
28088main ()
28089{
28090if ((pid_t *) 0)
28091 return 0;
28092if (sizeof (pid_t))
28093 return 0;
28094 ;
28095 return 0;
28096}
28097_ACEOF
28098rm -f conftest.$ac_objext
28099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28100 (eval $ac_compile) 2>conftest.er1
a848cd7e 28101 ac_status=$?
ac1cb8d3
VS
28102 grep -v '^ *+' conftest.er1 >conftest.err
28103 rm -f conftest.er1
28104 cat conftest.err >&5
a848cd7e
SC
28105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106 (exit $ac_status); } &&
7714864e 28107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28109 (eval $ac_try) 2>&5
28110 ac_status=$?
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); }; } &&
28113 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28115 (eval $ac_try) 2>&5
28116 ac_status=$?
28117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28118 (exit $ac_status); }; }; then
28119 ac_cv_type_pid_t=yes
28120else
28121 echo "$as_me: failed program was:" >&5
28122sed 's/^/| /' conftest.$ac_ext >&5
28123
28124ac_cv_type_pid_t=no
28125fi
ac1cb8d3 28126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28127fi
28128echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28129echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28130if test $ac_cv_type_pid_t = yes; then
28131 :
28132else
28133
28134cat >>confdefs.h <<_ACEOF
28135#define pid_t int
28136_ACEOF
28137
28138fi
28139
28140echo "$as_me:$LINENO: checking for size_t" >&5
28141echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28142if test "${ac_cv_type_size_t+set}" = set; then
28143 echo $ECHO_N "(cached) $ECHO_C" >&6
28144else
28145 cat >conftest.$ac_ext <<_ACEOF
28146/* confdefs.h. */
28147_ACEOF
28148cat confdefs.h >>conftest.$ac_ext
28149cat >>conftest.$ac_ext <<_ACEOF
28150/* end confdefs.h. */
28151$ac_includes_default
28152int
28153main ()
28154{
28155if ((size_t *) 0)
28156 return 0;
28157if (sizeof (size_t))
28158 return 0;
28159 ;
28160 return 0;
28161}
28162_ACEOF
28163rm -f conftest.$ac_objext
28164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28165 (eval $ac_compile) 2>conftest.er1
a848cd7e 28166 ac_status=$?
ac1cb8d3
VS
28167 grep -v '^ *+' conftest.er1 >conftest.err
28168 rm -f conftest.er1
28169 cat conftest.err >&5
a848cd7e
SC
28170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171 (exit $ac_status); } &&
7714864e 28172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28174 (eval $ac_try) 2>&5
28175 ac_status=$?
28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177 (exit $ac_status); }; } &&
28178 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28180 (eval $ac_try) 2>&5
28181 ac_status=$?
28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28183 (exit $ac_status); }; }; then
28184 ac_cv_type_size_t=yes
28185else
28186 echo "$as_me: failed program was:" >&5
28187sed 's/^/| /' conftest.$ac_ext >&5
28188
28189ac_cv_type_size_t=no
28190fi
ac1cb8d3 28191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28192fi
28193echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28194echo "${ECHO_T}$ac_cv_type_size_t" >&6
28195if test $ac_cv_type_size_t = yes; then
28196 :
28197else
28198
28199cat >>confdefs.h <<_ACEOF
28200#define size_t unsigned
28201_ACEOF
28202
28203fi
28204
28205echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28206echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28207if test "${ac_cv_type_uid_t+set}" = set; then
28208 echo $ECHO_N "(cached) $ECHO_C" >&6
28209else
28210 cat >conftest.$ac_ext <<_ACEOF
28211/* confdefs.h. */
28212_ACEOF
28213cat confdefs.h >>conftest.$ac_ext
28214cat >>conftest.$ac_ext <<_ACEOF
28215/* end confdefs.h. */
28216#include <sys/types.h>
28217
28218_ACEOF
28219if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28220 $EGREP "uid_t" >/dev/null 2>&1; then
28221 ac_cv_type_uid_t=yes
28222else
28223 ac_cv_type_uid_t=no
28224fi
28225rm -f conftest*
28226
28227fi
28228echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28229echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28230if test $ac_cv_type_uid_t = no; then
28231
28232cat >>confdefs.h <<\_ACEOF
28233#define uid_t int
28234_ACEOF
28235
28236
28237cat >>confdefs.h <<\_ACEOF
28238#define gid_t int
28239_ACEOF
28240
28241fi
28242
28243
28244
28245
28246ac_ext=cc
28247ac_cpp='$CXXCPP $CPPFLAGS'
28248ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28249ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28250ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28251
28252echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28253echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28254if test "${wx_cv_size_t_is_uint+set}" = set; then
28255 echo $ECHO_N "(cached) $ECHO_C" >&6
28256else
28257
28258 cat >conftest.$ac_ext <<_ACEOF
28259/* confdefs.h. */
28260_ACEOF
28261cat confdefs.h >>conftest.$ac_ext
28262cat >>conftest.$ac_ext <<_ACEOF
28263/* end confdefs.h. */
28264#include <stddef.h>
28265int
28266main ()
28267{
28268
28269 return 0; }
28270
28271 struct Foo { void foo(size_t); void foo(unsigned int); };
28272
28273 int bar() {
28274
28275 ;
28276 return 0;
28277}
28278_ACEOF
28279rm -f conftest.$ac_objext
28280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28281 (eval $ac_compile) 2>conftest.er1
a848cd7e 28282 ac_status=$?
ac1cb8d3
VS
28283 grep -v '^ *+' conftest.er1 >conftest.err
28284 rm -f conftest.er1
28285 cat conftest.err >&5
a848cd7e
SC
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); } &&
7714864e 28288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28290 (eval $ac_try) 2>&5
28291 ac_status=$?
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); }; } &&
28294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296 (eval $ac_try) 2>&5
28297 ac_status=$?
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; }; then
28300 wx_cv_size_t_is_uint=no
28301else
28302 echo "$as_me: failed program was:" >&5
28303sed 's/^/| /' conftest.$ac_ext >&5
28304
28305wx_cv_size_t_is_uint=yes
28306
28307fi
ac1cb8d3 28308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28309
28310
28311fi
28312echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28313echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28314
28315if test "$wx_cv_size_t_is_uint" = "yes"; then
28316 cat >>confdefs.h <<\_ACEOF
28317#define wxSIZE_T_IS_UINT 1
28318_ACEOF
28319
28320else
28321 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28322echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28323if test "${wx_cv_size_t_is_ulong+set}" = set; then
28324 echo $ECHO_N "(cached) $ECHO_C" >&6
28325else
28326 cat >conftest.$ac_ext <<_ACEOF
28327/* confdefs.h. */
28328_ACEOF
28329cat confdefs.h >>conftest.$ac_ext
28330cat >>conftest.$ac_ext <<_ACEOF
28331/* end confdefs.h. */
28332#include <stddef.h>
28333int
28334main ()
28335{
28336
28337 return 0; }
28338
28339 struct Foo { void foo(size_t); void foo(unsigned long); };
28340
28341 int bar() {
28342
28343 ;
28344 return 0;
28345}
28346_ACEOF
28347rm -f conftest.$ac_objext
28348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28349 (eval $ac_compile) 2>conftest.er1
a848cd7e 28350 ac_status=$?
ac1cb8d3
VS
28351 grep -v '^ *+' conftest.er1 >conftest.err
28352 rm -f conftest.er1
28353 cat conftest.err >&5
a848cd7e
SC
28354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28355 (exit $ac_status); } &&
7714864e 28356 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28358 (eval $ac_try) 2>&5
28359 ac_status=$?
28360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28361 (exit $ac_status); }; } &&
28362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 (eval $ac_try) 2>&5
28365 ac_status=$?
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; }; then
28368 wx_cv_size_t_is_ulong=no
28369else
28370 echo "$as_me: failed program was:" >&5
28371sed 's/^/| /' conftest.$ac_ext >&5
28372
28373wx_cv_size_t_is_ulong=yes
28374
28375fi
ac1cb8d3 28376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28377
28378fi
28379echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28380echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28381
28382 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28383 cat >>confdefs.h <<\_ACEOF
28384#define wxSIZE_T_IS_ULONG 1
28385_ACEOF
28386
28387 fi
28388fi
28389
28390ac_ext=c
28391ac_cpp='$CPP $CPPFLAGS'
28392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28394ac_compiler_gnu=$ac_cv_c_compiler_gnu
28395
28396
28397
28398echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28399echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28400if test "${wx_cv_struct_pw_gecos+set}" = set; then
28401 echo $ECHO_N "(cached) $ECHO_C" >&6
28402else
28403
28404 cat >conftest.$ac_ext <<_ACEOF
28405/* confdefs.h. */
28406_ACEOF
28407cat confdefs.h >>conftest.$ac_ext
28408cat >>conftest.$ac_ext <<_ACEOF
28409/* end confdefs.h. */
28410#include <pwd.h>
28411int
28412main ()
28413{
28414
28415 char *p;
28416 struct passwd *pw;
28417 p = pw->pw_gecos;
28418
28419 ;
28420 return 0;
28421}
28422_ACEOF
28423rm -f conftest.$ac_objext
28424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28425 (eval $ac_compile) 2>conftest.er1
a848cd7e 28426 ac_status=$?
ac1cb8d3
VS
28427 grep -v '^ *+' conftest.er1 >conftest.err
28428 rm -f conftest.er1
28429 cat conftest.err >&5
a848cd7e
SC
28430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431 (exit $ac_status); } &&
7714864e 28432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28434 (eval $ac_try) 2>&5
28435 ac_status=$?
28436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28437 (exit $ac_status); }; } &&
28438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28440 (eval $ac_try) 2>&5
28441 ac_status=$?
28442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443 (exit $ac_status); }; }; then
28444
28445 wx_cv_struct_pw_gecos=yes
28446
28447else
28448 echo "$as_me: failed program was:" >&5
28449sed 's/^/| /' conftest.$ac_ext >&5
28450
28451
28452 wx_cv_struct_pw_gecos=no
28453
28454
28455fi
ac1cb8d3 28456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28457
28458
28459fi
28460echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28461echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28462
28463if test "$wx_cv_struct_pw_gecos" = "yes"; then
28464 cat >>confdefs.h <<\_ACEOF
28465#define HAVE_PW_GECOS 1
28466_ACEOF
28467
28468fi
28469
28470
28471if test "$wx_cv_sizeof_wchar_t" != "0"; then
28472 cat >>confdefs.h <<\_ACEOF
28473#define wxUSE_WCHAR_T 1
28474_ACEOF
28475
28476
28477 WCSLEN_FOUND=0
28478 WCHAR_LINK=
28479
28480for ac_func in wcslen
28481do
28482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28483echo "$as_me:$LINENO: checking for $ac_func" >&5
28484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28485if eval "test \"\${$as_ac_var+set}\" = set"; then
28486 echo $ECHO_N "(cached) $ECHO_C" >&6
28487else
28488 cat >conftest.$ac_ext <<_ACEOF
28489/* confdefs.h. */
28490_ACEOF
28491cat confdefs.h >>conftest.$ac_ext
28492cat >>conftest.$ac_ext <<_ACEOF
28493/* end confdefs.h. */
ac1cb8d3
VS
28494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28496#define $ac_func innocuous_$ac_func
28497
a848cd7e
SC
28498/* System header to define __stub macros and hopefully few prototypes,
28499 which can conflict with char $ac_func (); below.
28500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28501 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28502
a848cd7e
SC
28503#ifdef __STDC__
28504# include <limits.h>
28505#else
28506# include <assert.h>
28507#endif
ac1cb8d3
VS
28508
28509#undef $ac_func
28510
a848cd7e
SC
28511/* Override any gcc2 internal prototype to avoid an error. */
28512#ifdef __cplusplus
28513extern "C"
28514{
28515#endif
28516/* We use char because int might match the return type of a gcc2
28517 builtin and then its argument prototype would still apply. */
28518char $ac_func ();
28519/* The GNU C library defines this for functions which it implements
28520 to always fail with ENOSYS. Some functions are actually named
28521 something starting with __ and the normal name is an alias. */
28522#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28523choke me
28524#else
28525char (*f) () = $ac_func;
28526#endif
28527#ifdef __cplusplus
28528}
28529#endif
28530
28531int
28532main ()
28533{
28534return f != $ac_func;
28535 ;
28536 return 0;
28537}
28538_ACEOF
28539rm -f conftest.$ac_objext conftest$ac_exeext
28540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28541 (eval $ac_link) 2>conftest.er1
a848cd7e 28542 ac_status=$?
ac1cb8d3
VS
28543 grep -v '^ *+' conftest.er1 >conftest.err
28544 rm -f conftest.er1
28545 cat conftest.err >&5
a848cd7e
SC
28546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28547 (exit $ac_status); } &&
7714864e 28548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28550 (eval $ac_try) 2>&5
28551 ac_status=$?
28552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553 (exit $ac_status); }; } &&
28554 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28556 (eval $ac_try) 2>&5
28557 ac_status=$?
28558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28559 (exit $ac_status); }; }; then
28560 eval "$as_ac_var=yes"
28561else
28562 echo "$as_me: failed program was:" >&5
28563sed 's/^/| /' conftest.$ac_ext >&5
28564
28565eval "$as_ac_var=no"
28566fi
ac1cb8d3
VS
28567rm -f conftest.err conftest.$ac_objext \
28568 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28569fi
28570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28571echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28572if test `eval echo '${'$as_ac_var'}'` = yes; then
28573 cat >>confdefs.h <<_ACEOF
28574#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28575_ACEOF
28576 WCSLEN_FOUND=1
28577fi
28578done
28579
28580
28581 if test "$WCSLEN_FOUND" = 0; then
28582 if test "$TOOLKIT" = "MSW"; then
28583 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28584echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28585if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28586 echo $ECHO_N "(cached) $ECHO_C" >&6
28587else
28588 ac_check_lib_save_LIBS=$LIBS
28589LIBS="-lmsvcrt $LIBS"
28590cat >conftest.$ac_ext <<_ACEOF
28591/* confdefs.h. */
28592_ACEOF
28593cat confdefs.h >>conftest.$ac_ext
28594cat >>conftest.$ac_ext <<_ACEOF
28595/* end confdefs.h. */
28596
28597/* Override any gcc2 internal prototype to avoid an error. */
28598#ifdef __cplusplus
28599extern "C"
28600#endif
28601/* We use char because int might match the return type of a gcc2
28602 builtin and then its argument prototype would still apply. */
28603char wcslen ();
28604int
28605main ()
28606{
28607wcslen ();
28608 ;
28609 return 0;
28610}
28611_ACEOF
28612rm -f conftest.$ac_objext conftest$ac_exeext
28613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28614 (eval $ac_link) 2>conftest.er1
a848cd7e 28615 ac_status=$?
ac1cb8d3
VS
28616 grep -v '^ *+' conftest.er1 >conftest.err
28617 rm -f conftest.er1
28618 cat conftest.err >&5
a848cd7e
SC
28619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620 (exit $ac_status); } &&
7714864e 28621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28623 (eval $ac_try) 2>&5
28624 ac_status=$?
28625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626 (exit $ac_status); }; } &&
28627 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629 (eval $ac_try) 2>&5
28630 ac_status=$?
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); }; }; then
28633 ac_cv_lib_msvcrt_wcslen=yes
28634else
28635 echo "$as_me: failed program was:" >&5
28636sed 's/^/| /' conftest.$ac_ext >&5
28637
28638ac_cv_lib_msvcrt_wcslen=no
28639fi
ac1cb8d3
VS
28640rm -f conftest.err conftest.$ac_objext \
28641 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28642LIBS=$ac_check_lib_save_LIBS
28643fi
28644echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28645echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28646if test $ac_cv_lib_msvcrt_wcslen = yes; then
28647 WCHAR_OK=1
28648fi
28649
28650 else
28651 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28652echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28653if test "${ac_cv_lib_w_wcslen+set}" = set; then
28654 echo $ECHO_N "(cached) $ECHO_C" >&6
28655else
28656 ac_check_lib_save_LIBS=$LIBS
28657LIBS="-lw $LIBS"
28658cat >conftest.$ac_ext <<_ACEOF
28659/* confdefs.h. */
28660_ACEOF
28661cat confdefs.h >>conftest.$ac_ext
28662cat >>conftest.$ac_ext <<_ACEOF
28663/* end confdefs.h. */
28664
28665/* Override any gcc2 internal prototype to avoid an error. */
28666#ifdef __cplusplus
28667extern "C"
28668#endif
28669/* We use char because int might match the return type of a gcc2
28670 builtin and then its argument prototype would still apply. */
28671char wcslen ();
28672int
28673main ()
28674{
28675wcslen ();
28676 ;
28677 return 0;
28678}
28679_ACEOF
28680rm -f conftest.$ac_objext conftest$ac_exeext
28681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28682 (eval $ac_link) 2>conftest.er1
a848cd7e 28683 ac_status=$?
ac1cb8d3
VS
28684 grep -v '^ *+' conftest.er1 >conftest.err
28685 rm -f conftest.er1
28686 cat conftest.err >&5
a848cd7e
SC
28687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); } &&
7714864e 28689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28691 (eval $ac_try) 2>&5
28692 ac_status=$?
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; } &&
28695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28697 (eval $ac_try) 2>&5
28698 ac_status=$?
28699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700 (exit $ac_status); }; }; then
28701 ac_cv_lib_w_wcslen=yes
28702else
28703 echo "$as_me: failed program was:" >&5
28704sed 's/^/| /' conftest.$ac_ext >&5
28705
28706ac_cv_lib_w_wcslen=no
28707fi
ac1cb8d3
VS
28708rm -f conftest.err conftest.$ac_objext \
28709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28710LIBS=$ac_check_lib_save_LIBS
28711fi
28712echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28713echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28714if test $ac_cv_lib_w_wcslen = yes; then
28715
28716 WCHAR_LINK=" -lw"
28717 WCSLEN_FOUND=1
28718
28719fi
28720
28721 fi
28722 fi
28723
28724 if test "$WCSLEN_FOUND" = 1; then
28725 cat >>confdefs.h <<\_ACEOF
28726#define HAVE_WCSLEN 1
28727_ACEOF
28728
28729 fi
28730
473276a9
VS
28731 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28732 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28733 fi
28734
a848cd7e
SC
28735
28736for ac_func in wcsrtombs
28737do
28738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28739echo "$as_me:$LINENO: checking for $ac_func" >&5
28740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28741if eval "test \"\${$as_ac_var+set}\" = set"; then
28742 echo $ECHO_N "(cached) $ECHO_C" >&6
28743else
28744 cat >conftest.$ac_ext <<_ACEOF
28745/* confdefs.h. */
28746_ACEOF
28747cat confdefs.h >>conftest.$ac_ext
28748cat >>conftest.$ac_ext <<_ACEOF
28749/* end confdefs.h. */
ac1cb8d3
VS
28750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28752#define $ac_func innocuous_$ac_func
28753
a848cd7e
SC
28754/* System header to define __stub macros and hopefully few prototypes,
28755 which can conflict with char $ac_func (); below.
28756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28757 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28758
a848cd7e
SC
28759#ifdef __STDC__
28760# include <limits.h>
28761#else
28762# include <assert.h>
28763#endif
ac1cb8d3
VS
28764
28765#undef $ac_func
28766
a848cd7e
SC
28767/* Override any gcc2 internal prototype to avoid an error. */
28768#ifdef __cplusplus
28769extern "C"
28770{
28771#endif
28772/* We use char because int might match the return type of a gcc2
28773 builtin and then its argument prototype would still apply. */
28774char $ac_func ();
28775/* The GNU C library defines this for functions which it implements
28776 to always fail with ENOSYS. Some functions are actually named
28777 something starting with __ and the normal name is an alias. */
28778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28779choke me
28780#else
28781char (*f) () = $ac_func;
28782#endif
28783#ifdef __cplusplus
28784}
28785#endif
28786
28787int
28788main ()
28789{
28790return f != $ac_func;
28791 ;
28792 return 0;
28793}
28794_ACEOF
28795rm -f conftest.$ac_objext conftest$ac_exeext
28796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28797 (eval $ac_link) 2>conftest.er1
a848cd7e 28798 ac_status=$?
ac1cb8d3
VS
28799 grep -v '^ *+' conftest.er1 >conftest.err
28800 rm -f conftest.er1
28801 cat conftest.err >&5
a848cd7e
SC
28802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28803 (exit $ac_status); } &&
7714864e 28804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28806 (eval $ac_try) 2>&5
28807 ac_status=$?
28808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28809 (exit $ac_status); }; } &&
28810 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28812 (eval $ac_try) 2>&5
28813 ac_status=$?
28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815 (exit $ac_status); }; }; then
28816 eval "$as_ac_var=yes"
28817else
28818 echo "$as_me: failed program was:" >&5
28819sed 's/^/| /' conftest.$ac_ext >&5
28820
28821eval "$as_ac_var=no"
28822fi
ac1cb8d3
VS
28823rm -f conftest.err conftest.$ac_objext \
28824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28825fi
28826echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28827echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28828if test `eval echo '${'$as_ac_var'}'` = yes; then
28829 cat >>confdefs.h <<_ACEOF
28830#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28831_ACEOF
28832
28833fi
28834done
28835
28836else
28837 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28838echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28839fi
28840
28841
28842
28843ac_ext=cc
28844ac_cpp='$CXXCPP $CPPFLAGS'
28845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28848
28849
28850
28851for ac_func in vsnprintf
28852do
28853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28854echo "$as_me:$LINENO: checking for $ac_func" >&5
28855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28856if eval "test \"\${$as_ac_var+set}\" = set"; then
28857 echo $ECHO_N "(cached) $ECHO_C" >&6
28858else
28859 cat >conftest.$ac_ext <<_ACEOF
28860/* confdefs.h. */
28861_ACEOF
28862cat confdefs.h >>conftest.$ac_ext
28863cat >>conftest.$ac_ext <<_ACEOF
28864/* end confdefs.h. */
ac1cb8d3
VS
28865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28867#define $ac_func innocuous_$ac_func
28868
a848cd7e
SC
28869/* System header to define __stub macros and hopefully few prototypes,
28870 which can conflict with char $ac_func (); below.
28871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28872 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28873
a848cd7e
SC
28874#ifdef __STDC__
28875# include <limits.h>
28876#else
28877# include <assert.h>
28878#endif
ac1cb8d3
VS
28879
28880#undef $ac_func
28881
a848cd7e
SC
28882/* Override any gcc2 internal prototype to avoid an error. */
28883#ifdef __cplusplus
28884extern "C"
28885{
28886#endif
28887/* We use char because int might match the return type of a gcc2
28888 builtin and then its argument prototype would still apply. */
28889char $ac_func ();
28890/* The GNU C library defines this for functions which it implements
28891 to always fail with ENOSYS. Some functions are actually named
28892 something starting with __ and the normal name is an alias. */
28893#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28894choke me
28895#else
28896char (*f) () = $ac_func;
28897#endif
28898#ifdef __cplusplus
28899}
28900#endif
28901
28902int
28903main ()
28904{
28905return f != $ac_func;
28906 ;
28907 return 0;
28908}
28909_ACEOF
28910rm -f conftest.$ac_objext conftest$ac_exeext
28911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28912 (eval $ac_link) 2>conftest.er1
a848cd7e 28913 ac_status=$?
ac1cb8d3
VS
28914 grep -v '^ *+' conftest.er1 >conftest.err
28915 rm -f conftest.er1
28916 cat conftest.err >&5
a848cd7e
SC
28917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); } &&
7714864e 28919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28921 (eval $ac_try) 2>&5
28922 ac_status=$?
28923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28924 (exit $ac_status); }; } &&
28925 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28927 (eval $ac_try) 2>&5
28928 ac_status=$?
28929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930 (exit $ac_status); }; }; then
28931 eval "$as_ac_var=yes"
28932else
28933 echo "$as_me: failed program was:" >&5
28934sed 's/^/| /' conftest.$ac_ext >&5
28935
28936eval "$as_ac_var=no"
28937fi
ac1cb8d3
VS
28938rm -f conftest.err conftest.$ac_objext \
28939 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28940fi
28941echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28942echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28943if test `eval echo '${'$as_ac_var'}'` = yes; then
28944 cat >>confdefs.h <<_ACEOF
28945#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28946_ACEOF
28947
28948fi
28949done
28950
28951
28952if test "$ac_cv_func_vsnprintf" = "yes"; then
28953 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28954echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28955if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28956 echo $ECHO_N "(cached) $ECHO_C" >&6
28957else
28958
28959 cat >conftest.$ac_ext <<_ACEOF
28960/* confdefs.h. */
28961_ACEOF
28962cat confdefs.h >>conftest.$ac_ext
28963cat >>conftest.$ac_ext <<_ACEOF
28964/* end confdefs.h. */
28965
28966 #include <stdio.h>
28967 #include <stdarg.h>
28968
28969int
28970main ()
28971{
28972
28973 char *buf;
28974 va_list ap;
28975 vsnprintf(buf, 10u, "%s", ap);
28976
28977 ;
28978 return 0;
28979}
28980_ACEOF
28981rm -f conftest.$ac_objext
28982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28983 (eval $ac_compile) 2>conftest.er1
a848cd7e 28984 ac_status=$?
ac1cb8d3
VS
28985 grep -v '^ *+' conftest.er1 >conftest.err
28986 rm -f conftest.er1
28987 cat conftest.err >&5
a848cd7e
SC
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); } &&
7714864e 28990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28992 (eval $ac_try) 2>&5
28993 ac_status=$?
28994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28995 (exit $ac_status); }; } &&
28996 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28998 (eval $ac_try) 2>&5
28999 ac_status=$?
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); }; }; then
29002 wx_cv_func_vsnprintf_decl=yes
29003else
29004 echo "$as_me: failed program was:" >&5
29005sed 's/^/| /' conftest.$ac_ext >&5
29006
29007wx_cv_func_vsnprintf_decl=no
29008
29009fi
ac1cb8d3 29010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29011
29012
29013fi
29014echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29015echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29016
29017 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29018 cat >>confdefs.h <<\_ACEOF
29019#define HAVE_VSNPRINTF_DECL 1
29020_ACEOF
29021
29022 fi
29023fi
29024
29025if test "$wxUSE_UNICODE" = yes; then
29026
29027
29028
fbe47c7b
VS
29029
29030
29031
29032for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29033do
29034as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29035echo "$as_me:$LINENO: checking for $ac_func" >&5
29036echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29037if eval "test \"\${$as_ac_var+set}\" = set"; then
29038 echo $ECHO_N "(cached) $ECHO_C" >&6
29039else
29040 cat >conftest.$ac_ext <<_ACEOF
29041/* confdefs.h. */
29042_ACEOF
29043cat confdefs.h >>conftest.$ac_ext
29044cat >>conftest.$ac_ext <<_ACEOF
29045/* end confdefs.h. */
ac1cb8d3
VS
29046/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29048#define $ac_func innocuous_$ac_func
29049
a848cd7e
SC
29050/* System header to define __stub macros and hopefully few prototypes,
29051 which can conflict with char $ac_func (); below.
29052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29053 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29054
a848cd7e
SC
29055#ifdef __STDC__
29056# include <limits.h>
29057#else
29058# include <assert.h>
29059#endif
ac1cb8d3
VS
29060
29061#undef $ac_func
29062
a848cd7e
SC
29063/* Override any gcc2 internal prototype to avoid an error. */
29064#ifdef __cplusplus
29065extern "C"
29066{
29067#endif
29068/* We use char because int might match the return type of a gcc2
29069 builtin and then its argument prototype would still apply. */
29070char $ac_func ();
29071/* The GNU C library defines this for functions which it implements
29072 to always fail with ENOSYS. Some functions are actually named
29073 something starting with __ and the normal name is an alias. */
29074#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29075choke me
29076#else
29077char (*f) () = $ac_func;
29078#endif
29079#ifdef __cplusplus
29080}
29081#endif
29082
29083int
29084main ()
29085{
29086return f != $ac_func;
29087 ;
29088 return 0;
29089}
29090_ACEOF
29091rm -f conftest.$ac_objext conftest$ac_exeext
29092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29093 (eval $ac_link) 2>conftest.er1
a848cd7e 29094 ac_status=$?
ac1cb8d3
VS
29095 grep -v '^ *+' conftest.er1 >conftest.err
29096 rm -f conftest.er1
29097 cat conftest.err >&5
a848cd7e
SC
29098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099 (exit $ac_status); } &&
7714864e 29100 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29102 (eval $ac_try) 2>&5
29103 ac_status=$?
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); }; } &&
29106 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29108 (eval $ac_try) 2>&5
29109 ac_status=$?
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); }; }; then
29112 eval "$as_ac_var=yes"
29113else
29114 echo "$as_me: failed program was:" >&5
29115sed 's/^/| /' conftest.$ac_ext >&5
29116
29117eval "$as_ac_var=no"
29118fi
ac1cb8d3
VS
29119rm -f conftest.err conftest.$ac_objext \
29120 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29121fi
29122echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29123echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29124if test `eval echo '${'$as_ac_var'}'` = yes; then
29125 cat >>confdefs.h <<_ACEOF
29126#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29127_ACEOF
29128
29129fi
29130done
29131
29132
29133 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29134echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29135 cat >conftest.$ac_ext <<_ACEOF
29136/* confdefs.h. */
29137_ACEOF
29138cat confdefs.h >>conftest.$ac_ext
29139cat >>conftest.$ac_ext <<_ACEOF
29140/* end confdefs.h. */
29141#include <wchar.h>
29142int
29143main ()
29144{
29145&_vsnwprintf;
29146 ;
29147 return 0;
29148}
29149_ACEOF
29150rm -f conftest.$ac_objext
29151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29152 (eval $ac_compile) 2>conftest.er1
a848cd7e 29153 ac_status=$?
ac1cb8d3
VS
29154 grep -v '^ *+' conftest.er1 >conftest.err
29155 rm -f conftest.er1
29156 cat conftest.err >&5
a848cd7e
SC
29157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158 (exit $ac_status); } &&
7714864e 29159 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29161 (eval $ac_try) 2>&5
29162 ac_status=$?
29163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29164 (exit $ac_status); }; } &&
29165 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29167 (eval $ac_try) 2>&5
29168 ac_status=$?
29169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29170 (exit $ac_status); }; }; then
29171 echo "$as_me:$LINENO: result: yes" >&5
29172echo "${ECHO_T}yes" >&6
29173 cat >>confdefs.h <<\_ACEOF
29174#define HAVE__VSNWPRINTF 1
29175_ACEOF
29176
29177else
29178 echo "$as_me: failed program was:" >&5
29179sed 's/^/| /' conftest.$ac_ext >&5
29180
29181echo "$as_me:$LINENO: result: no" >&5
29182echo "${ECHO_T}no" >&6
29183fi
ac1cb8d3 29184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29185fi
29186
29187ac_ext=c
29188ac_cpp='$CPP $CPPFLAGS'
29189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29191ac_compiler_gnu=$ac_cv_c_compiler_gnu
29192
29193
29194
29195
29196if test "$TOOLKIT" != "MSW"; then
29197
29198
29199
29200
29201ac_ext=cc
29202ac_cpp='$CXXCPP $CPPFLAGS'
29203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29206
29207
29208
29209
29210# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29211if test "${with_libiconv_prefix+set}" = set; then
29212 withval="$with_libiconv_prefix"
29213
29214 for dir in `echo "$withval" | tr : ' '`; do
29215 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29216 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29217 done
29218
29219fi;
29220
29221 echo "$as_me:$LINENO: checking for iconv" >&5
29222echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29223if test "${am_cv_func_iconv+set}" = set; then
29224 echo $ECHO_N "(cached) $ECHO_C" >&6
29225else
29226
29227 am_cv_func_iconv="no, consider installing GNU libiconv"
29228 am_cv_lib_iconv=no
29229 cat >conftest.$ac_ext <<_ACEOF
29230/* confdefs.h. */
29231_ACEOF
29232cat confdefs.h >>conftest.$ac_ext
29233cat >>conftest.$ac_ext <<_ACEOF
29234/* end confdefs.h. */
29235#include <stdlib.h>
29236#include <iconv.h>
29237int
29238main ()
29239{
29240iconv_t cd = iconv_open("","");
29241 iconv(cd,NULL,NULL,NULL,NULL);
29242 iconv_close(cd);
29243 ;
29244 return 0;
29245}
29246_ACEOF
29247rm -f conftest.$ac_objext conftest$ac_exeext
29248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29249 (eval $ac_link) 2>conftest.er1
a848cd7e 29250 ac_status=$?
ac1cb8d3
VS
29251 grep -v '^ *+' conftest.er1 >conftest.err
29252 rm -f conftest.er1
29253 cat conftest.err >&5
a848cd7e
SC
29254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29255 (exit $ac_status); } &&
7714864e 29256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29258 (eval $ac_try) 2>&5
29259 ac_status=$?
29260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261 (exit $ac_status); }; } &&
29262 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29264 (eval $ac_try) 2>&5
29265 ac_status=$?
29266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29267 (exit $ac_status); }; }; then
29268 am_cv_func_iconv=yes
29269else
29270 echo "$as_me: failed program was:" >&5
29271sed 's/^/| /' conftest.$ac_ext >&5
29272
29273fi
ac1cb8d3
VS
29274rm -f conftest.err conftest.$ac_objext \
29275 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29276 if test "$am_cv_func_iconv" != yes; then
29277 am_save_LIBS="$LIBS"
29278 LIBS="$LIBS -liconv"
29279 cat >conftest.$ac_ext <<_ACEOF
29280/* confdefs.h. */
29281_ACEOF
29282cat confdefs.h >>conftest.$ac_ext
29283cat >>conftest.$ac_ext <<_ACEOF
29284/* end confdefs.h. */
29285#include <stdlib.h>
29286#include <iconv.h>
29287int
29288main ()
29289{
29290iconv_t cd = iconv_open("","");
29291 iconv(cd,NULL,NULL,NULL,NULL);
29292 iconv_close(cd);
29293 ;
29294 return 0;
29295}
29296_ACEOF
29297rm -f conftest.$ac_objext conftest$ac_exeext
29298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29299 (eval $ac_link) 2>conftest.er1
a848cd7e 29300 ac_status=$?
ac1cb8d3
VS
29301 grep -v '^ *+' conftest.er1 >conftest.err
29302 rm -f conftest.er1
29303 cat conftest.err >&5
a848cd7e
SC
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); } &&
7714864e 29306 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29308 (eval $ac_try) 2>&5
29309 ac_status=$?
29310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311 (exit $ac_status); }; } &&
29312 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314 (eval $ac_try) 2>&5
29315 ac_status=$?
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); }; }; then
29318 am_cv_lib_iconv=yes
29319 am_cv_func_iconv=yes
29320else
29321 echo "$as_me: failed program was:" >&5
29322sed 's/^/| /' conftest.$ac_ext >&5
29323
29324fi
ac1cb8d3
VS
29325rm -f conftest.err conftest.$ac_objext \
29326 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29327 LIBS="$am_save_LIBS"
29328 fi
29329
29330fi
29331echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29332echo "${ECHO_T}$am_cv_func_iconv" >&6
29333 if test "$am_cv_func_iconv" = yes; then
29334
29335cat >>confdefs.h <<\_ACEOF
29336#define HAVE_ICONV 1
29337_ACEOF
29338
29339 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29340echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29341if test "${wx_cv_func_iconv_const+set}" = set; then
29342 echo $ECHO_N "(cached) $ECHO_C" >&6
29343else
29344 cat >conftest.$ac_ext <<_ACEOF
29345/* confdefs.h. */
29346_ACEOF
29347cat confdefs.h >>conftest.$ac_ext
29348cat >>conftest.$ac_ext <<_ACEOF
29349/* end confdefs.h. */
29350
29351#include <stdlib.h>
29352#include <iconv.h>
29353extern
29354#ifdef __cplusplus
29355"C"
29356#endif
29357#if defined(__STDC__) || defined(__cplusplus)
29358size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29359#else
29360size_t iconv();
29361#endif
29362
29363int
29364main ()
29365{
29366
29367 ;
29368 return 0;
29369}
29370_ACEOF
29371rm -f conftest.$ac_objext
29372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29373 (eval $ac_compile) 2>conftest.er1
a848cd7e 29374 ac_status=$?
ac1cb8d3
VS
29375 grep -v '^ *+' conftest.er1 >conftest.err
29376 rm -f conftest.er1
29377 cat conftest.err >&5
a848cd7e
SC
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); } &&
7714864e 29380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382 (eval $ac_try) 2>&5
29383 ac_status=$?
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); }; } &&
29386 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388 (eval $ac_try) 2>&5
29389 ac_status=$?
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); }; }; then
29392 wx_cv_func_iconv_const="no"
29393else
29394 echo "$as_me: failed program was:" >&5
29395sed 's/^/| /' conftest.$ac_ext >&5
29396
29397wx_cv_func_iconv_const="yes"
29398
29399fi
ac1cb8d3 29400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29401
29402fi
29403echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29404echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29405
29406 iconv_const=
29407 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29408 iconv_const="const"
29409 fi
29410
29411
29412cat >>confdefs.h <<_ACEOF
29413#define ICONV_CONST $iconv_const
29414_ACEOF
29415
29416 fi
29417 LIBICONV=
29418 if test "$am_cv_lib_iconv" = yes; then
29419 LIBICONV="-liconv"
29420 fi
29421
29422
29423LIBS="$LIBICONV $LIBS"
29424ac_ext=c
29425ac_cpp='$CPP $CPPFLAGS'
29426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29428ac_compiler_gnu=$ac_cv_c_compiler_gnu
29429
29430
29431if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29432
29433for ac_func in sigaction
29434do
29435as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29436echo "$as_me:$LINENO: checking for $ac_func" >&5
29437echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29438if eval "test \"\${$as_ac_var+set}\" = set"; then
29439 echo $ECHO_N "(cached) $ECHO_C" >&6
29440else
29441 cat >conftest.$ac_ext <<_ACEOF
29442/* confdefs.h. */
29443_ACEOF
29444cat confdefs.h >>conftest.$ac_ext
29445cat >>conftest.$ac_ext <<_ACEOF
29446/* end confdefs.h. */
ac1cb8d3
VS
29447/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29449#define $ac_func innocuous_$ac_func
29450
a848cd7e
SC
29451/* System header to define __stub macros and hopefully few prototypes,
29452 which can conflict with char $ac_func (); below.
29453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29454 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29455
a848cd7e
SC
29456#ifdef __STDC__
29457# include <limits.h>
29458#else
29459# include <assert.h>
29460#endif
ac1cb8d3
VS
29461
29462#undef $ac_func
29463
a848cd7e
SC
29464/* Override any gcc2 internal prototype to avoid an error. */
29465#ifdef __cplusplus
29466extern "C"
29467{
29468#endif
29469/* We use char because int might match the return type of a gcc2
29470 builtin and then its argument prototype would still apply. */
29471char $ac_func ();
29472/* The GNU C library defines this for functions which it implements
29473 to always fail with ENOSYS. Some functions are actually named
29474 something starting with __ and the normal name is an alias. */
29475#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29476choke me
29477#else
29478char (*f) () = $ac_func;
29479#endif
29480#ifdef __cplusplus
29481}
29482#endif
29483
29484int
29485main ()
29486{
29487return f != $ac_func;
29488 ;
29489 return 0;
29490}
29491_ACEOF
29492rm -f conftest.$ac_objext conftest$ac_exeext
29493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29494 (eval $ac_link) 2>conftest.er1
a848cd7e 29495 ac_status=$?
ac1cb8d3
VS
29496 grep -v '^ *+' conftest.er1 >conftest.err
29497 rm -f conftest.er1
29498 cat conftest.err >&5
a848cd7e
SC
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); } &&
7714864e 29501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29503 (eval $ac_try) 2>&5
29504 ac_status=$?
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; } &&
29507 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29509 (eval $ac_try) 2>&5
29510 ac_status=$?
29511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29512 (exit $ac_status); }; }; then
29513 eval "$as_ac_var=yes"
29514else
29515 echo "$as_me: failed program was:" >&5
29516sed 's/^/| /' conftest.$ac_ext >&5
29517
29518eval "$as_ac_var=no"
29519fi
ac1cb8d3
VS
29520rm -f conftest.err conftest.$ac_objext \
29521 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29522fi
29523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29524echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29525if test `eval echo '${'$as_ac_var'}'` = yes; then
29526 cat >>confdefs.h <<_ACEOF
29527#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29528_ACEOF
29529
29530fi
29531done
29532
29533
29534 if test "$ac_cv_func_sigaction" = "no"; then
29535 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29536echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29537 wxUSE_ON_FATAL_EXCEPTION=no
29538 fi
29539
29540 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29541
29542
29543 ac_ext=cc
29544ac_cpp='$CXXCPP $CPPFLAGS'
29545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29548
29549
29550 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29551echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29552if test "${wx_cv_type_sa_handler+set}" = set; then
29553 echo $ECHO_N "(cached) $ECHO_C" >&6
29554else
29555
29556 cat >conftest.$ac_ext <<_ACEOF
29557/* confdefs.h. */
29558_ACEOF
29559cat confdefs.h >>conftest.$ac_ext
29560cat >>conftest.$ac_ext <<_ACEOF
29561/* end confdefs.h. */
29562#include <signal.h>
29563int
29564main ()
29565{
29566
29567 extern void testSigHandler(int);
29568
29569 struct sigaction sa;
29570 sa.sa_handler = testSigHandler;
29571
29572 ;
29573 return 0;
29574}
29575_ACEOF
29576rm -f conftest.$ac_objext
29577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29578 (eval $ac_compile) 2>conftest.er1
a848cd7e 29579 ac_status=$?
ac1cb8d3
VS
29580 grep -v '^ *+' conftest.er1 >conftest.err
29581 rm -f conftest.er1
29582 cat conftest.err >&5
a848cd7e
SC
29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29584 (exit $ac_status); } &&
7714864e 29585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29587 (eval $ac_try) 2>&5
29588 ac_status=$?
29589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29590 (exit $ac_status); }; } &&
29591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29593 (eval $ac_try) 2>&5
29594 ac_status=$?
29595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29596 (exit $ac_status); }; }; then
29597
29598 wx_cv_type_sa_handler=int
29599
29600else
29601 echo "$as_me: failed program was:" >&5
29602sed 's/^/| /' conftest.$ac_ext >&5
29603
29604
29605 wx_cv_type_sa_handler=void
29606
29607fi
ac1cb8d3 29608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29609
29610fi
29611echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29612echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29613
29614 ac_ext=c
29615ac_cpp='$CPP $CPPFLAGS'
29616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29618ac_compiler_gnu=$ac_cv_c_compiler_gnu
29619
29620
29621 cat >>confdefs.h <<_ACEOF
29622#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29623_ACEOF
29624
29625 fi
29626fi
29627
29628
29629
29630for ac_func in mkstemp mktemp
29631do
29632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29633echo "$as_me:$LINENO: checking for $ac_func" >&5
29634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29635if eval "test \"\${$as_ac_var+set}\" = set"; then
29636 echo $ECHO_N "(cached) $ECHO_C" >&6
29637else
29638 cat >conftest.$ac_ext <<_ACEOF
29639/* confdefs.h. */
29640_ACEOF
29641cat confdefs.h >>conftest.$ac_ext
29642cat >>conftest.$ac_ext <<_ACEOF
29643/* end confdefs.h. */
ac1cb8d3
VS
29644/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29646#define $ac_func innocuous_$ac_func
29647
a848cd7e
SC
29648/* System header to define __stub macros and hopefully few prototypes,
29649 which can conflict with char $ac_func (); below.
29650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29651 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29652
a848cd7e
SC
29653#ifdef __STDC__
29654# include <limits.h>
29655#else
29656# include <assert.h>
29657#endif
ac1cb8d3
VS
29658
29659#undef $ac_func
29660
a848cd7e
SC
29661/* Override any gcc2 internal prototype to avoid an error. */
29662#ifdef __cplusplus
29663extern "C"
29664{
29665#endif
29666/* We use char because int might match the return type of a gcc2
29667 builtin and then its argument prototype would still apply. */
29668char $ac_func ();
29669/* The GNU C library defines this for functions which it implements
29670 to always fail with ENOSYS. Some functions are actually named
29671 something starting with __ and the normal name is an alias. */
29672#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29673choke me
29674#else
29675char (*f) () = $ac_func;
29676#endif
29677#ifdef __cplusplus
29678}
29679#endif
29680
29681int
29682main ()
29683{
29684return f != $ac_func;
29685 ;
29686 return 0;
29687}
29688_ACEOF
29689rm -f conftest.$ac_objext conftest$ac_exeext
29690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29691 (eval $ac_link) 2>conftest.er1
a848cd7e 29692 ac_status=$?
ac1cb8d3
VS
29693 grep -v '^ *+' conftest.er1 >conftest.err
29694 rm -f conftest.er1
29695 cat conftest.err >&5
a848cd7e
SC
29696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29697 (exit $ac_status); } &&
7714864e 29698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700 (eval $ac_try) 2>&5
29701 ac_status=$?
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; } &&
29704 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29706 (eval $ac_try) 2>&5
29707 ac_status=$?
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); }; }; then
29710 eval "$as_ac_var=yes"
29711else
29712 echo "$as_me: failed program was:" >&5
29713sed 's/^/| /' conftest.$ac_ext >&5
29714
29715eval "$as_ac_var=no"
29716fi
ac1cb8d3
VS
29717rm -f conftest.err conftest.$ac_objext \
29718 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29719fi
29720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29722if test `eval echo '${'$as_ac_var'}'` = yes; then
29723 cat >>confdefs.h <<_ACEOF
29724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29725_ACEOF
29726 break
29727fi
29728done
29729
29730
29731echo "$as_me:$LINENO: checking for statfs" >&5
29732echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29733if test "${wx_cv_func_statfs+set}" = set; then
29734 echo $ECHO_N "(cached) $ECHO_C" >&6
29735else
29736 cat >conftest.$ac_ext <<_ACEOF
29737/* confdefs.h. */
29738_ACEOF
29739cat confdefs.h >>conftest.$ac_ext
29740cat >>conftest.$ac_ext <<_ACEOF
29741/* end confdefs.h. */
29742
29743 #if defined(__BSD__)
29744 #include <sys/param.h>
29745 #include <sys/mount.h>
29746 #else
29747 #include <sys/vfs.h>
29748 #endif
29749
29750int
29751main ()
29752{
29753
29754 long l;
29755 struct statfs fs;
29756 statfs("/", &fs);
29757 l = fs.f_bsize;
29758 l += fs.f_blocks;
29759 l += fs.f_bavail;
29760
29761 ;
29762 return 0;
29763}
29764_ACEOF
29765rm -f conftest.$ac_objext
29766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29767 (eval $ac_compile) 2>conftest.er1
a848cd7e 29768 ac_status=$?
ac1cb8d3
VS
29769 grep -v '^ *+' conftest.er1 >conftest.err
29770 rm -f conftest.er1
29771 cat conftest.err >&5
a848cd7e
SC
29772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29773 (exit $ac_status); } &&
7714864e 29774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29776 (eval $ac_try) 2>&5
29777 ac_status=$?
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); }; } &&
29780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29782 (eval $ac_try) 2>&5
29783 ac_status=$?
29784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785 (exit $ac_status); }; }; then
29786
29787 wx_cv_func_statfs=yes
29788
29789else
29790 echo "$as_me: failed program was:" >&5
29791sed 's/^/| /' conftest.$ac_ext >&5
29792
29793
29794 wx_cv_func_statfs=no
29795
29796
29797fi
ac1cb8d3 29798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29799
29800fi
29801echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29802echo "${ECHO_T}$wx_cv_func_statfs" >&6
29803
29804if test "$wx_cv_func_statfs" = "yes"; then
29805 wx_cv_type_statvfs_t="struct statfs"
29806 cat >>confdefs.h <<\_ACEOF
29807#define HAVE_STATFS 1
29808_ACEOF
29809
29810else
29811 echo "$as_me:$LINENO: checking for statvfs" >&5
29812echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29813if test "${wx_cv_func_statvfs+set}" = set; then
29814 echo $ECHO_N "(cached) $ECHO_C" >&6
29815else
29816 cat >conftest.$ac_ext <<_ACEOF
29817/* confdefs.h. */
29818_ACEOF
29819cat confdefs.h >>conftest.$ac_ext
29820cat >>conftest.$ac_ext <<_ACEOF
29821/* end confdefs.h. */
29822
29823 #include <stddef.h>
29824 #include <sys/statvfs.h>
29825
29826int
29827main ()
29828{
29829
29830 statvfs("/", NULL);
29831
29832 ;
29833 return 0;
29834}
29835_ACEOF
29836rm -f conftest.$ac_objext
29837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29838 (eval $ac_compile) 2>conftest.er1
a848cd7e 29839 ac_status=$?
ac1cb8d3
VS
29840 grep -v '^ *+' conftest.er1 >conftest.err
29841 rm -f conftest.er1
29842 cat conftest.err >&5
a848cd7e
SC
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); } &&
7714864e 29845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847 (eval $ac_try) 2>&5
29848 ac_status=$?
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); }; } &&
29851 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29853 (eval $ac_try) 2>&5
29854 ac_status=$?
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); }; }; then
29857 wx_cv_func_statvfs=yes
29858else
29859 echo "$as_me: failed program was:" >&5
29860sed 's/^/| /' conftest.$ac_ext >&5
29861
29862wx_cv_func_statvfs=no
29863
29864fi
ac1cb8d3 29865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29866
29867fi
29868echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29869echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29870
29871 if test "$wx_cv_func_statvfs" = "yes"; then
29872
29873
29874 ac_ext=cc
29875ac_cpp='$CXXCPP $CPPFLAGS'
29876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29879
29880
29881 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29882echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29883if test "${wx_cv_type_statvfs_t+set}" = set; then
29884 echo $ECHO_N "(cached) $ECHO_C" >&6
29885else
29886 cat >conftest.$ac_ext <<_ACEOF
29887/* confdefs.h. */
29888_ACEOF
29889cat confdefs.h >>conftest.$ac_ext
29890cat >>conftest.$ac_ext <<_ACEOF
29891/* end confdefs.h. */
29892
29893 #include <sys/statvfs.h>
29894
29895int
29896main ()
29897{
29898
29899 long l;
29900 statvfs_t fs;
29901 statvfs("/", &fs);
29902 l = fs.f_bsize;
29903 l += fs.f_blocks;
29904 l += fs.f_bavail;
29905
29906 ;
29907 return 0;
29908}
29909_ACEOF
29910rm -f conftest.$ac_objext
29911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29912 (eval $ac_compile) 2>conftest.er1
a848cd7e 29913 ac_status=$?
ac1cb8d3
VS
29914 grep -v '^ *+' conftest.er1 >conftest.err
29915 rm -f conftest.er1
29916 cat conftest.err >&5
a848cd7e
SC
29917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918 (exit $ac_status); } &&
7714864e 29919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29921 (eval $ac_try) 2>&5
29922 ac_status=$?
29923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29924 (exit $ac_status); }; } &&
29925 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29927 (eval $ac_try) 2>&5
29928 ac_status=$?
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); }; }; then
29931 wx_cv_type_statvfs_t=statvfs_t
29932else
29933 echo "$as_me: failed program was:" >&5
29934sed 's/^/| /' conftest.$ac_ext >&5
29935
29936
29937 cat >conftest.$ac_ext <<_ACEOF
29938/* confdefs.h. */
29939_ACEOF
29940cat confdefs.h >>conftest.$ac_ext
29941cat >>conftest.$ac_ext <<_ACEOF
29942/* end confdefs.h. */
29943
29944 #include <sys/statvfs.h>
29945
29946int
29947main ()
29948{
29949
29950 long l;
29951 struct statvfs fs;
29952 statvfs("/", &fs);
29953 l = fs.f_bsize;
29954 l += fs.f_blocks;
29955 l += fs.f_bavail;
29956
29957 ;
29958 return 0;
29959}
29960_ACEOF
29961rm -f conftest.$ac_objext
29962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29963 (eval $ac_compile) 2>conftest.er1
a848cd7e 29964 ac_status=$?
ac1cb8d3
VS
29965 grep -v '^ *+' conftest.er1 >conftest.err
29966 rm -f conftest.er1
29967 cat conftest.err >&5
a848cd7e
SC
29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29969 (exit $ac_status); } &&
7714864e 29970 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29972 (eval $ac_try) 2>&5
29973 ac_status=$?
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); }; } &&
29976 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29978 (eval $ac_try) 2>&5
29979 ac_status=$?
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); }; }; then
29982 wx_cv_type_statvfs_t="struct statvfs"
29983else
29984 echo "$as_me: failed program was:" >&5
29985sed 's/^/| /' conftest.$ac_ext >&5
29986
29987wx_cv_type_statvfs_t="unknown"
29988
29989fi
ac1cb8d3 29990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29991
29992
29993fi
ac1cb8d3 29994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29995
29996fi
29997echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
29998echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
29999
30000 ac_ext=c
30001ac_cpp='$CPP $CPPFLAGS'
30002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30004ac_compiler_gnu=$ac_cv_c_compiler_gnu
30005
30006
30007 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30008 cat >>confdefs.h <<\_ACEOF
30009#define HAVE_STATVFS 1
30010_ACEOF
30011
30012 fi
30013 else
30014 wx_cv_type_statvfs_t="unknown"
30015 fi
30016fi
30017
30018if test "$wx_cv_type_statvfs_t" != "unknown"; then
30019 cat >>confdefs.h <<_ACEOF
30020#define WX_STATFS_T $wx_cv_type_statvfs_t
30021_ACEOF
30022
30023else
30024 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30025echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30026fi
30027
30028if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30029
30030
30031for ac_func in fcntl flock
30032do
30033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30034echo "$as_me:$LINENO: checking for $ac_func" >&5
30035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30036if eval "test \"\${$as_ac_var+set}\" = set"; then
30037 echo $ECHO_N "(cached) $ECHO_C" >&6
30038else
30039 cat >conftest.$ac_ext <<_ACEOF
30040/* confdefs.h. */
30041_ACEOF
30042cat confdefs.h >>conftest.$ac_ext
30043cat >>conftest.$ac_ext <<_ACEOF
30044/* end confdefs.h. */
ac1cb8d3
VS
30045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30047#define $ac_func innocuous_$ac_func
30048
a848cd7e
SC
30049/* System header to define __stub macros and hopefully few prototypes,
30050 which can conflict with char $ac_func (); below.
30051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30052 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30053
a848cd7e
SC
30054#ifdef __STDC__
30055# include <limits.h>
30056#else
30057# include <assert.h>
30058#endif
ac1cb8d3
VS
30059
30060#undef $ac_func
30061
a848cd7e
SC
30062/* Override any gcc2 internal prototype to avoid an error. */
30063#ifdef __cplusplus
30064extern "C"
30065{
30066#endif
30067/* We use char because int might match the return type of a gcc2
30068 builtin and then its argument prototype would still apply. */
30069char $ac_func ();
30070/* The GNU C library defines this for functions which it implements
30071 to always fail with ENOSYS. Some functions are actually named
30072 something starting with __ and the normal name is an alias. */
30073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30074choke me
30075#else
30076char (*f) () = $ac_func;
30077#endif
30078#ifdef __cplusplus
30079}
30080#endif
30081
30082int
30083main ()
30084{
30085return f != $ac_func;
30086 ;
30087 return 0;
30088}
30089_ACEOF
30090rm -f conftest.$ac_objext conftest$ac_exeext
30091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30092 (eval $ac_link) 2>conftest.er1
a848cd7e 30093 ac_status=$?
ac1cb8d3
VS
30094 grep -v '^ *+' conftest.er1 >conftest.err
30095 rm -f conftest.er1
30096 cat conftest.err >&5
a848cd7e
SC
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); } &&
7714864e 30099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30101 (eval $ac_try) 2>&5
30102 ac_status=$?
30103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104 (exit $ac_status); }; } &&
30105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107 (eval $ac_try) 2>&5
30108 ac_status=$?
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; }; then
30111 eval "$as_ac_var=yes"
30112else
30113 echo "$as_me: failed program was:" >&5
30114sed 's/^/| /' conftest.$ac_ext >&5
30115
30116eval "$as_ac_var=no"
30117fi
ac1cb8d3
VS
30118rm -f conftest.err conftest.$ac_objext \
30119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30120fi
30121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30123if test `eval echo '${'$as_ac_var'}'` = yes; then
30124 cat >>confdefs.h <<_ACEOF
30125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30126_ACEOF
30127 break
30128fi
30129done
30130
30131
30132 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30133 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30134echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30135 wxUSE_SNGLINST_CHECKER=no
30136 fi
30137fi
30138
30139
30140for ac_func in timegm
30141do
30142as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30143echo "$as_me:$LINENO: checking for $ac_func" >&5
30144echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30145if eval "test \"\${$as_ac_var+set}\" = set"; then
30146 echo $ECHO_N "(cached) $ECHO_C" >&6
30147else
30148 cat >conftest.$ac_ext <<_ACEOF
30149/* confdefs.h. */
30150_ACEOF
30151cat confdefs.h >>conftest.$ac_ext
30152cat >>conftest.$ac_ext <<_ACEOF
30153/* end confdefs.h. */
ac1cb8d3
VS
30154/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30156#define $ac_func innocuous_$ac_func
30157
a848cd7e
SC
30158/* System header to define __stub macros and hopefully few prototypes,
30159 which can conflict with char $ac_func (); below.
30160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30161 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30162
a848cd7e
SC
30163#ifdef __STDC__
30164# include <limits.h>
30165#else
30166# include <assert.h>
30167#endif
ac1cb8d3
VS
30168
30169#undef $ac_func
30170
a848cd7e
SC
30171/* Override any gcc2 internal prototype to avoid an error. */
30172#ifdef __cplusplus
30173extern "C"
30174{
30175#endif
30176/* We use char because int might match the return type of a gcc2
30177 builtin and then its argument prototype would still apply. */
30178char $ac_func ();
30179/* The GNU C library defines this for functions which it implements
30180 to always fail with ENOSYS. Some functions are actually named
30181 something starting with __ and the normal name is an alias. */
30182#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30183choke me
30184#else
30185char (*f) () = $ac_func;
30186#endif
30187#ifdef __cplusplus
30188}
30189#endif
30190
30191int
30192main ()
30193{
30194return f != $ac_func;
30195 ;
30196 return 0;
30197}
30198_ACEOF
30199rm -f conftest.$ac_objext conftest$ac_exeext
30200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30201 (eval $ac_link) 2>conftest.er1
a848cd7e 30202 ac_status=$?
ac1cb8d3
VS
30203 grep -v '^ *+' conftest.er1 >conftest.err
30204 rm -f conftest.er1
30205 cat conftest.err >&5
a848cd7e
SC
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); } &&
7714864e 30208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30210 (eval $ac_try) 2>&5
30211 ac_status=$?
30212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30213 (exit $ac_status); }; } &&
30214 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30216 (eval $ac_try) 2>&5
30217 ac_status=$?
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); }; }; then
30220 eval "$as_ac_var=yes"
30221else
30222 echo "$as_me: failed program was:" >&5
30223sed 's/^/| /' conftest.$ac_ext >&5
30224
30225eval "$as_ac_var=no"
30226fi
ac1cb8d3
VS
30227rm -f conftest.err conftest.$ac_objext \
30228 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30229fi
30230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30232if test `eval echo '${'$as_ac_var'}'` = yes; then
30233 cat >>confdefs.h <<_ACEOF
30234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30235_ACEOF
30236
30237fi
30238done
30239
30240
30241
30242
30243for ac_func in putenv setenv
30244do
30245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30246echo "$as_me:$LINENO: checking for $ac_func" >&5
30247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30248if eval "test \"\${$as_ac_var+set}\" = set"; then
30249 echo $ECHO_N "(cached) $ECHO_C" >&6
30250else
30251 cat >conftest.$ac_ext <<_ACEOF
30252/* confdefs.h. */
30253_ACEOF
30254cat confdefs.h >>conftest.$ac_ext
30255cat >>conftest.$ac_ext <<_ACEOF
30256/* end confdefs.h. */
ac1cb8d3
VS
30257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30259#define $ac_func innocuous_$ac_func
30260
a848cd7e
SC
30261/* System header to define __stub macros and hopefully few prototypes,
30262 which can conflict with char $ac_func (); below.
30263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30264 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30265
a848cd7e
SC
30266#ifdef __STDC__
30267# include <limits.h>
30268#else
30269# include <assert.h>
30270#endif
ac1cb8d3
VS
30271
30272#undef $ac_func
30273
a848cd7e
SC
30274/* Override any gcc2 internal prototype to avoid an error. */
30275#ifdef __cplusplus
30276extern "C"
30277{
30278#endif
30279/* We use char because int might match the return type of a gcc2
30280 builtin and then its argument prototype would still apply. */
30281char $ac_func ();
30282/* The GNU C library defines this for functions which it implements
30283 to always fail with ENOSYS. Some functions are actually named
30284 something starting with __ and the normal name is an alias. */
30285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30286choke me
30287#else
30288char (*f) () = $ac_func;
30289#endif
30290#ifdef __cplusplus
30291}
30292#endif
30293
30294int
30295main ()
30296{
30297return f != $ac_func;
30298 ;
30299 return 0;
30300}
30301_ACEOF
30302rm -f conftest.$ac_objext conftest$ac_exeext
30303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30304 (eval $ac_link) 2>conftest.er1
a848cd7e 30305 ac_status=$?
ac1cb8d3
VS
30306 grep -v '^ *+' conftest.er1 >conftest.err
30307 rm -f conftest.er1
30308 cat conftest.err >&5
a848cd7e
SC
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); } &&
7714864e 30311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30313 (eval $ac_try) 2>&5
30314 ac_status=$?
30315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30316 (exit $ac_status); }; } &&
30317 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30319 (eval $ac_try) 2>&5
30320 ac_status=$?
30321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30322 (exit $ac_status); }; }; then
30323 eval "$as_ac_var=yes"
30324else
30325 echo "$as_me: failed program was:" >&5
30326sed 's/^/| /' conftest.$ac_ext >&5
30327
30328eval "$as_ac_var=no"
30329fi
ac1cb8d3
VS
30330rm -f conftest.err conftest.$ac_objext \
30331 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30332fi
30333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30334echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30335if test `eval echo '${'$as_ac_var'}'` = yes; then
30336 cat >>confdefs.h <<_ACEOF
30337#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30338_ACEOF
30339 break
30340fi
30341done
30342
30343
30344HAVE_SOME_SLEEP_FUNC=0
30345if test "$USE_BEOS" = 1; then
30346 cat >>confdefs.h <<\_ACEOF
30347#define HAVE_SLEEP 1
30348_ACEOF
30349
30350 HAVE_SOME_SLEEP_FUNC=1
30351fi
30352
30353if test "$USE_DARWIN" = 1; then
30354 cat >>confdefs.h <<\_ACEOF
30355#define HAVE_USLEEP 1
30356_ACEOF
30357
30358 HAVE_SOME_SLEEP_FUNC=1
30359fi
30360
30361if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30362 POSIX4_LINK=
30363
30364for ac_func in nanosleep
30365do
30366as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30367echo "$as_me:$LINENO: checking for $ac_func" >&5
30368echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30369if eval "test \"\${$as_ac_var+set}\" = set"; then
30370 echo $ECHO_N "(cached) $ECHO_C" >&6
30371else
30372 cat >conftest.$ac_ext <<_ACEOF
30373/* confdefs.h. */
30374_ACEOF
30375cat confdefs.h >>conftest.$ac_ext
30376cat >>conftest.$ac_ext <<_ACEOF
30377/* end confdefs.h. */
ac1cb8d3
VS
30378/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30380#define $ac_func innocuous_$ac_func
30381
a848cd7e
SC
30382/* System header to define __stub macros and hopefully few prototypes,
30383 which can conflict with char $ac_func (); below.
30384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30385 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30386
a848cd7e
SC
30387#ifdef __STDC__
30388# include <limits.h>
30389#else
30390# include <assert.h>
30391#endif
ac1cb8d3
VS
30392
30393#undef $ac_func
30394
a848cd7e
SC
30395/* Override any gcc2 internal prototype to avoid an error. */
30396#ifdef __cplusplus
30397extern "C"
30398{
30399#endif
30400/* We use char because int might match the return type of a gcc2
30401 builtin and then its argument prototype would still apply. */
30402char $ac_func ();
30403/* The GNU C library defines this for functions which it implements
30404 to always fail with ENOSYS. Some functions are actually named
30405 something starting with __ and the normal name is an alias. */
30406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30407choke me
30408#else
30409char (*f) () = $ac_func;
30410#endif
30411#ifdef __cplusplus
30412}
30413#endif
30414
30415int
30416main ()
30417{
30418return f != $ac_func;
30419 ;
30420 return 0;
30421}
30422_ACEOF
30423rm -f conftest.$ac_objext conftest$ac_exeext
30424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30425 (eval $ac_link) 2>conftest.er1
a848cd7e 30426 ac_status=$?
ac1cb8d3
VS
30427 grep -v '^ *+' conftest.er1 >conftest.err
30428 rm -f conftest.er1
30429 cat conftest.err >&5
a848cd7e
SC
30430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30431 (exit $ac_status); } &&
7714864e 30432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30434 (eval $ac_try) 2>&5
30435 ac_status=$?
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); }; } &&
30438 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30440 (eval $ac_try) 2>&5
30441 ac_status=$?
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); }; }; then
30444 eval "$as_ac_var=yes"
30445else
30446 echo "$as_me: failed program was:" >&5
30447sed 's/^/| /' conftest.$ac_ext >&5
30448
30449eval "$as_ac_var=no"
30450fi
ac1cb8d3
VS
30451rm -f conftest.err conftest.$ac_objext \
30452 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30453fi
30454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30455echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30456if test `eval echo '${'$as_ac_var'}'` = yes; then
30457 cat >>confdefs.h <<_ACEOF
30458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30459_ACEOF
30460 cat >>confdefs.h <<\_ACEOF
30461#define HAVE_NANOSLEEP 1
30462_ACEOF
30463
30464else
30465
30466 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30467echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30468if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30469 echo $ECHO_N "(cached) $ECHO_C" >&6
30470else
30471 ac_check_lib_save_LIBS=$LIBS
30472LIBS="-lposix4 $LIBS"
30473cat >conftest.$ac_ext <<_ACEOF
30474/* confdefs.h. */
30475_ACEOF
30476cat confdefs.h >>conftest.$ac_ext
30477cat >>conftest.$ac_ext <<_ACEOF
30478/* end confdefs.h. */
30479
30480/* Override any gcc2 internal prototype to avoid an error. */
30481#ifdef __cplusplus
30482extern "C"
30483#endif
30484/* We use char because int might match the return type of a gcc2
30485 builtin and then its argument prototype would still apply. */
30486char nanosleep ();
30487int
30488main ()
30489{
30490nanosleep ();
30491 ;
30492 return 0;
30493}
30494_ACEOF
30495rm -f conftest.$ac_objext conftest$ac_exeext
30496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30497 (eval $ac_link) 2>conftest.er1
a848cd7e 30498 ac_status=$?
ac1cb8d3
VS
30499 grep -v '^ *+' conftest.er1 >conftest.err
30500 rm -f conftest.er1
30501 cat conftest.err >&5
a848cd7e
SC
30502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30503 (exit $ac_status); } &&
7714864e 30504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30506 (eval $ac_try) 2>&5
30507 ac_status=$?
30508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509 (exit $ac_status); }; } &&
30510 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30512 (eval $ac_try) 2>&5
30513 ac_status=$?
30514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30515 (exit $ac_status); }; }; then
30516 ac_cv_lib_posix4_nanosleep=yes
30517else
30518 echo "$as_me: failed program was:" >&5
30519sed 's/^/| /' conftest.$ac_ext >&5
30520
30521ac_cv_lib_posix4_nanosleep=no
30522fi
ac1cb8d3
VS
30523rm -f conftest.err conftest.$ac_objext \
30524 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30525LIBS=$ac_check_lib_save_LIBS
30526fi
30527echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30528echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30529if test $ac_cv_lib_posix4_nanosleep = yes; then
30530
30531 cat >>confdefs.h <<\_ACEOF
30532#define HAVE_NANOSLEEP 1
30533_ACEOF
30534
30535 POSIX4_LINK=" -lposix4"
30536
30537else
30538
30539
30540for ac_func in usleep
30541do
30542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30543echo "$as_me:$LINENO: checking for $ac_func" >&5
30544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30545if eval "test \"\${$as_ac_var+set}\" = set"; then
30546 echo $ECHO_N "(cached) $ECHO_C" >&6
30547else
30548 cat >conftest.$ac_ext <<_ACEOF
30549/* confdefs.h. */
30550_ACEOF
30551cat confdefs.h >>conftest.$ac_ext
30552cat >>conftest.$ac_ext <<_ACEOF
30553/* end confdefs.h. */
ac1cb8d3
VS
30554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30556#define $ac_func innocuous_$ac_func
30557
a848cd7e
SC
30558/* System header to define __stub macros and hopefully few prototypes,
30559 which can conflict with char $ac_func (); below.
30560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30561 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30562
a848cd7e
SC
30563#ifdef __STDC__
30564# include <limits.h>
30565#else
30566# include <assert.h>
30567#endif
ac1cb8d3
VS
30568
30569#undef $ac_func
30570
a848cd7e
SC
30571/* Override any gcc2 internal prototype to avoid an error. */
30572#ifdef __cplusplus
30573extern "C"
30574{
30575#endif
30576/* We use char because int might match the return type of a gcc2
30577 builtin and then its argument prototype would still apply. */
30578char $ac_func ();
30579/* The GNU C library defines this for functions which it implements
30580 to always fail with ENOSYS. Some functions are actually named
30581 something starting with __ and the normal name is an alias. */
30582#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30583choke me
30584#else
30585char (*f) () = $ac_func;
30586#endif
30587#ifdef __cplusplus
30588}
30589#endif
30590
30591int
30592main ()
30593{
30594return f != $ac_func;
30595 ;
30596 return 0;
30597}
30598_ACEOF
30599rm -f conftest.$ac_objext conftest$ac_exeext
30600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30601 (eval $ac_link) 2>conftest.er1
a848cd7e 30602 ac_status=$?
ac1cb8d3
VS
30603 grep -v '^ *+' conftest.er1 >conftest.err
30604 rm -f conftest.er1
30605 cat conftest.err >&5
a848cd7e
SC
30606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30607 (exit $ac_status); } &&
7714864e 30608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30610 (eval $ac_try) 2>&5
30611 ac_status=$?
30612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30613 (exit $ac_status); }; } &&
30614 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30616 (eval $ac_try) 2>&5
30617 ac_status=$?
30618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30619 (exit $ac_status); }; }; then
30620 eval "$as_ac_var=yes"
30621else
30622 echo "$as_me: failed program was:" >&5
30623sed 's/^/| /' conftest.$ac_ext >&5
30624
30625eval "$as_ac_var=no"
30626fi
ac1cb8d3
VS
30627rm -f conftest.err conftest.$ac_objext \
30628 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30629fi
30630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30631echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30632if test `eval echo '${'$as_ac_var'}'` = yes; then
30633 cat >>confdefs.h <<_ACEOF
30634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30635_ACEOF
30636 cat >>confdefs.h <<\_ACEOF
30637#define HAVE_USLEEP 1
30638_ACEOF
30639
30640else
30641 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30642echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30643
30644fi
30645done
30646
30647
30648
30649fi
30650
30651
30652
30653fi
30654done
30655
30656fi
30657
30658
30659
30660for ac_func in uname gethostname
30661do
30662as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30663echo "$as_me:$LINENO: checking for $ac_func" >&5
30664echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30665if eval "test \"\${$as_ac_var+set}\" = set"; then
30666 echo $ECHO_N "(cached) $ECHO_C" >&6
30667else
30668 cat >conftest.$ac_ext <<_ACEOF
30669/* confdefs.h. */
30670_ACEOF
30671cat confdefs.h >>conftest.$ac_ext
30672cat >>conftest.$ac_ext <<_ACEOF
30673/* end confdefs.h. */
ac1cb8d3
VS
30674/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30676#define $ac_func innocuous_$ac_func
30677
a848cd7e
SC
30678/* System header to define __stub macros and hopefully few prototypes,
30679 which can conflict with char $ac_func (); below.
30680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30681 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30682
a848cd7e
SC
30683#ifdef __STDC__
30684# include <limits.h>
30685#else
30686# include <assert.h>
30687#endif
ac1cb8d3
VS
30688
30689#undef $ac_func
30690
a848cd7e
SC
30691/* Override any gcc2 internal prototype to avoid an error. */
30692#ifdef __cplusplus
30693extern "C"
30694{
30695#endif
30696/* We use char because int might match the return type of a gcc2
30697 builtin and then its argument prototype would still apply. */
30698char $ac_func ();
30699/* The GNU C library defines this for functions which it implements
30700 to always fail with ENOSYS. Some functions are actually named
30701 something starting with __ and the normal name is an alias. */
30702#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30703choke me
30704#else
30705char (*f) () = $ac_func;
30706#endif
30707#ifdef __cplusplus
30708}
30709#endif
30710
30711int
30712main ()
30713{
30714return f != $ac_func;
30715 ;
30716 return 0;
30717}
30718_ACEOF
30719rm -f conftest.$ac_objext conftest$ac_exeext
30720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30721 (eval $ac_link) 2>conftest.er1
a848cd7e 30722 ac_status=$?
ac1cb8d3
VS
30723 grep -v '^ *+' conftest.er1 >conftest.err
30724 rm -f conftest.er1
30725 cat conftest.err >&5
a848cd7e
SC
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); } &&
7714864e 30728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30730 (eval $ac_try) 2>&5
30731 ac_status=$?
30732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30733 (exit $ac_status); }; } &&
30734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30736 (eval $ac_try) 2>&5
30737 ac_status=$?
30738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30739 (exit $ac_status); }; }; then
30740 eval "$as_ac_var=yes"
30741else
30742 echo "$as_me: failed program was:" >&5
30743sed 's/^/| /' conftest.$ac_ext >&5
30744
30745eval "$as_ac_var=no"
30746fi
ac1cb8d3
VS
30747rm -f conftest.err conftest.$ac_objext \
30748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30749fi
30750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30752if test `eval echo '${'$as_ac_var'}'` = yes; then
30753 cat >>confdefs.h <<_ACEOF
30754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30755_ACEOF
30756 break
30757fi
30758done
30759
30760
30761
30762
30763ac_ext=cc
30764ac_cpp='$CXXCPP $CPPFLAGS'
30765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30768
30769
30770
30771for ac_func in strtok_r
30772do
30773as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30774echo "$as_me:$LINENO: checking for $ac_func" >&5
30775echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30776if eval "test \"\${$as_ac_var+set}\" = set"; then
30777 echo $ECHO_N "(cached) $ECHO_C" >&6
30778else
30779 cat >conftest.$ac_ext <<_ACEOF
30780/* confdefs.h. */
30781_ACEOF
30782cat confdefs.h >>conftest.$ac_ext
30783cat >>conftest.$ac_ext <<_ACEOF
30784/* end confdefs.h. */
ac1cb8d3
VS
30785/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30787#define $ac_func innocuous_$ac_func
30788
a848cd7e
SC
30789/* System header to define __stub macros and hopefully few prototypes,
30790 which can conflict with char $ac_func (); below.
30791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30792 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30793
a848cd7e
SC
30794#ifdef __STDC__
30795# include <limits.h>
30796#else
30797# include <assert.h>
30798#endif
ac1cb8d3
VS
30799
30800#undef $ac_func
30801
a848cd7e
SC
30802/* Override any gcc2 internal prototype to avoid an error. */
30803#ifdef __cplusplus
30804extern "C"
30805{
30806#endif
30807/* We use char because int might match the return type of a gcc2
30808 builtin and then its argument prototype would still apply. */
30809char $ac_func ();
30810/* The GNU C library defines this for functions which it implements
30811 to always fail with ENOSYS. Some functions are actually named
30812 something starting with __ and the normal name is an alias. */
30813#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30814choke me
30815#else
30816char (*f) () = $ac_func;
30817#endif
30818#ifdef __cplusplus
30819}
30820#endif
30821
30822int
30823main ()
30824{
30825return f != $ac_func;
30826 ;
30827 return 0;
30828}
30829_ACEOF
30830rm -f conftest.$ac_objext conftest$ac_exeext
30831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30832 (eval $ac_link) 2>conftest.er1
a848cd7e 30833 ac_status=$?
ac1cb8d3
VS
30834 grep -v '^ *+' conftest.er1 >conftest.err
30835 rm -f conftest.er1
30836 cat conftest.err >&5
a848cd7e
SC
30837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838 (exit $ac_status); } &&
7714864e 30839 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30841 (eval $ac_try) 2>&5
30842 ac_status=$?
30843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30844 (exit $ac_status); }; } &&
30845 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30847 (eval $ac_try) 2>&5
30848 ac_status=$?
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); }; }; then
30851 eval "$as_ac_var=yes"
30852else
30853 echo "$as_me: failed program was:" >&5
30854sed 's/^/| /' conftest.$ac_ext >&5
30855
30856eval "$as_ac_var=no"
30857fi
ac1cb8d3
VS
30858rm -f conftest.err conftest.$ac_objext \
30859 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30860fi
30861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30863if test `eval echo '${'$as_ac_var'}'` = yes; then
30864 cat >>confdefs.h <<_ACEOF
30865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30866_ACEOF
30867
30868fi
30869done
30870
30871
30872ac_ext=c
30873ac_cpp='$CPP $CPPFLAGS'
30874ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30875ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30876ac_compiler_gnu=$ac_cv_c_compiler_gnu
30877
30878
30879INET_LINK=
30880
30881for ac_func in inet_addr
30882do
30883as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30884echo "$as_me:$LINENO: checking for $ac_func" >&5
30885echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30886if eval "test \"\${$as_ac_var+set}\" = set"; then
30887 echo $ECHO_N "(cached) $ECHO_C" >&6
30888else
30889 cat >conftest.$ac_ext <<_ACEOF
30890/* confdefs.h. */
30891_ACEOF
30892cat confdefs.h >>conftest.$ac_ext
30893cat >>conftest.$ac_ext <<_ACEOF
30894/* end confdefs.h. */
ac1cb8d3
VS
30895/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30897#define $ac_func innocuous_$ac_func
30898
a848cd7e
SC
30899/* System header to define __stub macros and hopefully few prototypes,
30900 which can conflict with char $ac_func (); below.
30901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30902 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30903
a848cd7e
SC
30904#ifdef __STDC__
30905# include <limits.h>
30906#else
30907# include <assert.h>
30908#endif
ac1cb8d3
VS
30909
30910#undef $ac_func
30911
a848cd7e
SC
30912/* Override any gcc2 internal prototype to avoid an error. */
30913#ifdef __cplusplus
30914extern "C"
30915{
30916#endif
30917/* We use char because int might match the return type of a gcc2
30918 builtin and then its argument prototype would still apply. */
30919char $ac_func ();
30920/* The GNU C library defines this for functions which it implements
30921 to always fail with ENOSYS. Some functions are actually named
30922 something starting with __ and the normal name is an alias. */
30923#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30924choke me
30925#else
30926char (*f) () = $ac_func;
30927#endif
30928#ifdef __cplusplus
30929}
30930#endif
30931
30932int
30933main ()
30934{
30935return f != $ac_func;
30936 ;
30937 return 0;
30938}
30939_ACEOF
30940rm -f conftest.$ac_objext conftest$ac_exeext
30941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30942 (eval $ac_link) 2>conftest.er1
a848cd7e 30943 ac_status=$?
ac1cb8d3
VS
30944 grep -v '^ *+' conftest.er1 >conftest.err
30945 rm -f conftest.er1
30946 cat conftest.err >&5
a848cd7e
SC
30947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948 (exit $ac_status); } &&
7714864e 30949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30951 (eval $ac_try) 2>&5
30952 ac_status=$?
30953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30954 (exit $ac_status); }; } &&
30955 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30957 (eval $ac_try) 2>&5
30958 ac_status=$?
30959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30960 (exit $ac_status); }; }; then
30961 eval "$as_ac_var=yes"
30962else
30963 echo "$as_me: failed program was:" >&5
30964sed 's/^/| /' conftest.$ac_ext >&5
30965
30966eval "$as_ac_var=no"
30967fi
ac1cb8d3
VS
30968rm -f conftest.err conftest.$ac_objext \
30969 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30970fi
30971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30972echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30973if test `eval echo '${'$as_ac_var'}'` = yes; then
30974 cat >>confdefs.h <<_ACEOF
30975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30976_ACEOF
30977 cat >>confdefs.h <<\_ACEOF
30978#define HAVE_INET_ADDR 1
30979_ACEOF
30980
30981else
30982
30983 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30984echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30985if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30986 echo $ECHO_N "(cached) $ECHO_C" >&6
30987else
30988 ac_check_lib_save_LIBS=$LIBS
30989LIBS="-lnsl $LIBS"
30990cat >conftest.$ac_ext <<_ACEOF
30991/* confdefs.h. */
30992_ACEOF
30993cat confdefs.h >>conftest.$ac_ext
30994cat >>conftest.$ac_ext <<_ACEOF
30995/* end confdefs.h. */
30996
30997/* Override any gcc2 internal prototype to avoid an error. */
30998#ifdef __cplusplus
30999extern "C"
31000#endif
31001/* We use char because int might match the return type of a gcc2
31002 builtin and then its argument prototype would still apply. */
31003char inet_addr ();
31004int
31005main ()
31006{
31007inet_addr ();
31008 ;
31009 return 0;
31010}
31011_ACEOF
31012rm -f conftest.$ac_objext conftest$ac_exeext
31013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31014 (eval $ac_link) 2>conftest.er1
a848cd7e 31015 ac_status=$?
ac1cb8d3
VS
31016 grep -v '^ *+' conftest.er1 >conftest.err
31017 rm -f conftest.er1
31018 cat conftest.err >&5
a848cd7e
SC
31019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31020 (exit $ac_status); } &&
7714864e 31021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31023 (eval $ac_try) 2>&5
31024 ac_status=$?
31025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31026 (exit $ac_status); }; } &&
31027 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31029 (eval $ac_try) 2>&5
31030 ac_status=$?
31031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31032 (exit $ac_status); }; }; then
31033 ac_cv_lib_nsl_inet_addr=yes
31034else
31035 echo "$as_me: failed program was:" >&5
31036sed 's/^/| /' conftest.$ac_ext >&5
31037
31038ac_cv_lib_nsl_inet_addr=no
31039fi
ac1cb8d3
VS
31040rm -f conftest.err conftest.$ac_objext \
31041 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31042LIBS=$ac_check_lib_save_LIBS
31043fi
31044echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31045echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31046if test $ac_cv_lib_nsl_inet_addr = yes; then
31047 INET_LINK="nsl"
31048else
31049
31050 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31051echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31052if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31053 echo $ECHO_N "(cached) $ECHO_C" >&6
31054else
31055 ac_check_lib_save_LIBS=$LIBS
31056LIBS="-lresolv $LIBS"
31057cat >conftest.$ac_ext <<_ACEOF
31058/* confdefs.h. */
31059_ACEOF
31060cat confdefs.h >>conftest.$ac_ext
31061cat >>conftest.$ac_ext <<_ACEOF
31062/* end confdefs.h. */
31063
31064/* Override any gcc2 internal prototype to avoid an error. */
31065#ifdef __cplusplus
31066extern "C"
31067#endif
31068/* We use char because int might match the return type of a gcc2
31069 builtin and then its argument prototype would still apply. */
31070char inet_addr ();
31071int
31072main ()
31073{
31074inet_addr ();
31075 ;
31076 return 0;
31077}
31078_ACEOF
31079rm -f conftest.$ac_objext conftest$ac_exeext
31080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31081 (eval $ac_link) 2>conftest.er1
a848cd7e 31082 ac_status=$?
ac1cb8d3
VS
31083 grep -v '^ *+' conftest.er1 >conftest.err
31084 rm -f conftest.er1
31085 cat conftest.err >&5
a848cd7e
SC
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); } &&
7714864e 31088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31090 (eval $ac_try) 2>&5
31091 ac_status=$?
31092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31093 (exit $ac_status); }; } &&
31094 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31096 (eval $ac_try) 2>&5
31097 ac_status=$?
31098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099 (exit $ac_status); }; }; then
31100 ac_cv_lib_resolv_inet_addr=yes
31101else
31102 echo "$as_me: failed program was:" >&5
31103sed 's/^/| /' conftest.$ac_ext >&5
31104
31105ac_cv_lib_resolv_inet_addr=no
31106fi
ac1cb8d3
VS
31107rm -f conftest.err conftest.$ac_objext \
31108 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31109LIBS=$ac_check_lib_save_LIBS
31110fi
31111echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31112echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31113if test $ac_cv_lib_resolv_inet_addr = yes; then
31114 INET_LINK="resolv"
31115else
31116
31117 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31118echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31119if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31120 echo $ECHO_N "(cached) $ECHO_C" >&6
31121else
31122 ac_check_lib_save_LIBS=$LIBS
31123LIBS="-lsocket $LIBS"
31124cat >conftest.$ac_ext <<_ACEOF
31125/* confdefs.h. */
31126_ACEOF
31127cat confdefs.h >>conftest.$ac_ext
31128cat >>conftest.$ac_ext <<_ACEOF
31129/* end confdefs.h. */
31130
31131/* Override any gcc2 internal prototype to avoid an error. */
31132#ifdef __cplusplus
31133extern "C"
31134#endif
31135/* We use char because int might match the return type of a gcc2
31136 builtin and then its argument prototype would still apply. */
31137char inet_addr ();
31138int
31139main ()
31140{
31141inet_addr ();
31142 ;
31143 return 0;
31144}
31145_ACEOF
31146rm -f conftest.$ac_objext conftest$ac_exeext
31147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31148 (eval $ac_link) 2>conftest.er1
a848cd7e 31149 ac_status=$?
ac1cb8d3
VS
31150 grep -v '^ *+' conftest.er1 >conftest.err
31151 rm -f conftest.er1
31152 cat conftest.err >&5
a848cd7e
SC
31153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154 (exit $ac_status); } &&
7714864e 31155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31157 (eval $ac_try) 2>&5
31158 ac_status=$?
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); }; } &&
31161 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31163 (eval $ac_try) 2>&5
31164 ac_status=$?
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); }; }; then
31167 ac_cv_lib_socket_inet_addr=yes
31168else
31169 echo "$as_me: failed program was:" >&5
31170sed 's/^/| /' conftest.$ac_ext >&5
31171
31172ac_cv_lib_socket_inet_addr=no
31173fi
ac1cb8d3
VS
31174rm -f conftest.err conftest.$ac_objext \
31175 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31176LIBS=$ac_check_lib_save_LIBS
31177fi
31178echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31179echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31180if test $ac_cv_lib_socket_inet_addr = yes; then
31181 INET_LINK="socket"
31182
31183fi
31184
31185
31186
31187fi
31188
31189
31190
31191fi
31192
31193
31194
31195fi
31196done
31197
31198
31199
31200for ac_func in inet_aton
31201do
31202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31203echo "$as_me:$LINENO: checking for $ac_func" >&5
31204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31205if eval "test \"\${$as_ac_var+set}\" = set"; then
31206 echo $ECHO_N "(cached) $ECHO_C" >&6
31207else
31208 cat >conftest.$ac_ext <<_ACEOF
31209/* confdefs.h. */
31210_ACEOF
31211cat confdefs.h >>conftest.$ac_ext
31212cat >>conftest.$ac_ext <<_ACEOF
31213/* end confdefs.h. */
ac1cb8d3
VS
31214/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31216#define $ac_func innocuous_$ac_func
31217
a848cd7e
SC
31218/* System header to define __stub macros and hopefully few prototypes,
31219 which can conflict with char $ac_func (); below.
31220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31221 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31222
a848cd7e
SC
31223#ifdef __STDC__
31224# include <limits.h>
31225#else
31226# include <assert.h>
31227#endif
ac1cb8d3
VS
31228
31229#undef $ac_func
31230
a848cd7e
SC
31231/* Override any gcc2 internal prototype to avoid an error. */
31232#ifdef __cplusplus
31233extern "C"
31234{
31235#endif
31236/* We use char because int might match the return type of a gcc2
31237 builtin and then its argument prototype would still apply. */
31238char $ac_func ();
31239/* The GNU C library defines this for functions which it implements
31240 to always fail with ENOSYS. Some functions are actually named
31241 something starting with __ and the normal name is an alias. */
31242#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31243choke me
31244#else
31245char (*f) () = $ac_func;
31246#endif
31247#ifdef __cplusplus
31248}
31249#endif
31250
31251int
31252main ()
31253{
31254return f != $ac_func;
31255 ;
31256 return 0;
31257}
31258_ACEOF
31259rm -f conftest.$ac_objext conftest$ac_exeext
31260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31261 (eval $ac_link) 2>conftest.er1
a848cd7e 31262 ac_status=$?
ac1cb8d3
VS
31263 grep -v '^ *+' conftest.er1 >conftest.err
31264 rm -f conftest.er1
31265 cat conftest.err >&5
a848cd7e
SC
31266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31267 (exit $ac_status); } &&
7714864e 31268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31270 (eval $ac_try) 2>&5
31271 ac_status=$?
31272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31273 (exit $ac_status); }; } &&
31274 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31276 (eval $ac_try) 2>&5
31277 ac_status=$?
31278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31279 (exit $ac_status); }; }; then
31280 eval "$as_ac_var=yes"
31281else
31282 echo "$as_me: failed program was:" >&5
31283sed 's/^/| /' conftest.$ac_ext >&5
31284
31285eval "$as_ac_var=no"
31286fi
ac1cb8d3
VS
31287rm -f conftest.err conftest.$ac_objext \
31288 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31289fi
31290echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31291echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31292if test `eval echo '${'$as_ac_var'}'` = yes; then
31293 cat >>confdefs.h <<_ACEOF
31294#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31295_ACEOF
31296 cat >>confdefs.h <<\_ACEOF
31297#define HAVE_INET_ATON 1
31298_ACEOF
31299
31300else
31301
31302 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31303echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31304echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31305if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31306 echo $ECHO_N "(cached) $ECHO_C" >&6
31307else
31308 ac_check_lib_save_LIBS=$LIBS
31309LIBS="-l$INET_LINK $LIBS"
31310cat >conftest.$ac_ext <<_ACEOF
31311/* confdefs.h. */
31312_ACEOF
31313cat confdefs.h >>conftest.$ac_ext
31314cat >>conftest.$ac_ext <<_ACEOF
31315/* end confdefs.h. */
31316
31317/* Override any gcc2 internal prototype to avoid an error. */
31318#ifdef __cplusplus
31319extern "C"
31320#endif
31321/* We use char because int might match the return type of a gcc2
31322 builtin and then its argument prototype would still apply. */
31323char inet_aton ();
31324int
31325main ()
31326{
31327inet_aton ();
31328 ;
31329 return 0;
31330}
31331_ACEOF
31332rm -f conftest.$ac_objext conftest$ac_exeext
31333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31334 (eval $ac_link) 2>conftest.er1
a848cd7e 31335 ac_status=$?
ac1cb8d3
VS
31336 grep -v '^ *+' conftest.er1 >conftest.err
31337 rm -f conftest.er1
31338 cat conftest.err >&5
a848cd7e
SC
31339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31340 (exit $ac_status); } &&
7714864e 31341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31343 (eval $ac_try) 2>&5
31344 ac_status=$?
31345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31346 (exit $ac_status); }; } &&
31347 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31349 (eval $ac_try) 2>&5
31350 ac_status=$?
31351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31352 (exit $ac_status); }; }; then
31353 eval "$as_ac_Lib=yes"
31354else
31355 echo "$as_me: failed program was:" >&5
31356sed 's/^/| /' conftest.$ac_ext >&5
31357
31358eval "$as_ac_Lib=no"
31359fi
ac1cb8d3
VS
31360rm -f conftest.err conftest.$ac_objext \
31361 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31362LIBS=$ac_check_lib_save_LIBS
31363fi
31364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31365echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31366if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31367 cat >>confdefs.h <<\_ACEOF
31368#define HAVE_INET_ATON 1
31369_ACEOF
31370
31371fi
31372
31373
31374fi
31375done
31376
31377
31378if test "x$INET_LINK" != "x"; then
31379 cat >>confdefs.h <<\_ACEOF
31380#define HAVE_INET_ADDR 1
31381_ACEOF
31382
31383 INET_LINK=" -l$INET_LINK"
31384fi
31385
31386fi
31387
31388
31389
31390EXTRALIBS_ESD=
31391echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31392echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31393if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31394 echo $ECHO_N "(cached) $ECHO_C" >&6
31395else
31396 ac_check_lib_save_LIBS=$LIBS
31397LIBS="-lesd $LIBS"
31398cat >conftest.$ac_ext <<_ACEOF
31399/* confdefs.h. */
31400_ACEOF
31401cat confdefs.h >>conftest.$ac_ext
31402cat >>conftest.$ac_ext <<_ACEOF
31403/* end confdefs.h. */
31404
31405/* Override any gcc2 internal prototype to avoid an error. */
31406#ifdef __cplusplus
31407extern "C"
31408#endif
31409/* We use char because int might match the return type of a gcc2
31410 builtin and then its argument prototype would still apply. */
31411char esd_close ();
31412int
31413main ()
31414{
31415esd_close ();
31416 ;
31417 return 0;
31418}
31419_ACEOF
31420rm -f conftest.$ac_objext conftest$ac_exeext
31421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31422 (eval $ac_link) 2>conftest.er1
a848cd7e 31423 ac_status=$?
ac1cb8d3
VS
31424 grep -v '^ *+' conftest.er1 >conftest.err
31425 rm -f conftest.er1
31426 cat conftest.err >&5
a848cd7e
SC
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); } &&
7714864e 31429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31431 (eval $ac_try) 2>&5
31432 ac_status=$?
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); }; } &&
31435 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31437 (eval $ac_try) 2>&5
31438 ac_status=$?
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); }; }; then
31441 ac_cv_lib_esd_esd_close=yes
31442else
31443 echo "$as_me: failed program was:" >&5
31444sed 's/^/| /' conftest.$ac_ext >&5
31445
31446ac_cv_lib_esd_esd_close=no
31447fi
ac1cb8d3
VS
31448rm -f conftest.err conftest.$ac_objext \
31449 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31450LIBS=$ac_check_lib_save_LIBS
31451fi
31452echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31453echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31454if test $ac_cv_lib_esd_esd_close = yes; then
31455
31456
31457for ac_header in esd.h
31458do
31459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31460if eval "test \"\${$as_ac_Header+set}\" = set"; then
31461 echo "$as_me:$LINENO: checking for $ac_header" >&5
31462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31463if eval "test \"\${$as_ac_Header+set}\" = set"; then
31464 echo $ECHO_N "(cached) $ECHO_C" >&6
31465fi
31466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31468else
31469 # Is the header compilable?
31470echo "$as_me:$LINENO: checking $ac_header usability" >&5
31471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31472cat >conftest.$ac_ext <<_ACEOF
31473/* confdefs.h. */
31474_ACEOF
31475cat confdefs.h >>conftest.$ac_ext
31476cat >>conftest.$ac_ext <<_ACEOF
31477/* end confdefs.h. */
31478$ac_includes_default
31479#include <$ac_header>
31480_ACEOF
31481rm -f conftest.$ac_objext
31482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31483 (eval $ac_compile) 2>conftest.er1
a848cd7e 31484 ac_status=$?
ac1cb8d3
VS
31485 grep -v '^ *+' conftest.er1 >conftest.err
31486 rm -f conftest.er1
31487 cat conftest.err >&5
a848cd7e
SC
31488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31489 (exit $ac_status); } &&
7714864e 31490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31492 (eval $ac_try) 2>&5
31493 ac_status=$?
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); }; } &&
31496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31498 (eval $ac_try) 2>&5
31499 ac_status=$?
31500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501 (exit $ac_status); }; }; then
31502 ac_header_compiler=yes
31503else
31504 echo "$as_me: failed program was:" >&5
31505sed 's/^/| /' conftest.$ac_ext >&5
31506
31507ac_header_compiler=no
31508fi
ac1cb8d3 31509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31510echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31511echo "${ECHO_T}$ac_header_compiler" >&6
31512
31513# Is the header present?
31514echo "$as_me:$LINENO: checking $ac_header presence" >&5
31515echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31516cat >conftest.$ac_ext <<_ACEOF
31517/* confdefs.h. */
31518_ACEOF
31519cat confdefs.h >>conftest.$ac_ext
31520cat >>conftest.$ac_ext <<_ACEOF
31521/* end confdefs.h. */
31522#include <$ac_header>
31523_ACEOF
31524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31526 ac_status=$?
31527 grep -v '^ *+' conftest.er1 >conftest.err
31528 rm -f conftest.er1
31529 cat conftest.err >&5
31530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31531 (exit $ac_status); } >/dev/null; then
31532 if test -s conftest.err; then
31533 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31535 else
31536 ac_cpp_err=
31537 fi
31538else
31539 ac_cpp_err=yes
31540fi
31541if test -z "$ac_cpp_err"; then
31542 ac_header_preproc=yes
31543else
31544 echo "$as_me: failed program was:" >&5
31545sed 's/^/| /' conftest.$ac_ext >&5
31546
31547 ac_header_preproc=no
31548fi
31549rm -f conftest.err conftest.$ac_ext
31550echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31551echo "${ECHO_T}$ac_header_preproc" >&6
31552
31553# So? What about this header?
ac1cb8d3
VS
31554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31555 yes:no: )
a848cd7e
SC
31556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31557echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31559echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31560 ac_header_preproc=yes
a848cd7e 31561 ;;
ac1cb8d3 31562 no:yes:* )
a848cd7e
SC
31563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31564echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31566echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31568echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31570echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31572echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31574echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31575 (
31576 cat <<\_ASBOX
ac1cb8d3
VS
31577## ----------------------------------------- ##
31578## Report this to wx-dev@lists.wxwidgets.org ##
31579## ----------------------------------------- ##
a848cd7e
SC
31580_ASBOX
31581 ) |
31582 sed "s/^/$as_me: WARNING: /" >&2
31583 ;;
31584esac
31585echo "$as_me:$LINENO: checking for $ac_header" >&5
31586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31587if eval "test \"\${$as_ac_Header+set}\" = set"; then
31588 echo $ECHO_N "(cached) $ECHO_C" >&6
31589else
ac1cb8d3 31590 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31591fi
31592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31594
31595fi
31596if test `eval echo '${'$as_ac_Header'}'` = yes; then
31597 cat >>confdefs.h <<_ACEOF
31598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31599_ACEOF
31600
31601 EXTRALIBS_ESD="-lesd"
31602
31603fi
31604
31605done
31606
31607
31608fi
31609
31610
31611
31612echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31613echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31614cat >conftest.$ac_ext <<_ACEOF
31615/* confdefs.h. */
31616_ACEOF
31617cat confdefs.h >>conftest.$ac_ext
31618cat >>conftest.$ac_ext <<_ACEOF
31619/* end confdefs.h. */
31620#ifdef __linux__
31621 #include <linux/cdrom.h>
31622 #else
31623 /* For Solaris */
31624 #include <sys/cdio.h>
31625 #endif
31626
31627int
31628main ()
31629{
31630struct cdrom_tocentry entry, old_entry;
31631 ;
31632 return 0;
31633}
31634_ACEOF
31635rm -f conftest.$ac_objext
31636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31637 (eval $ac_compile) 2>conftest.er1
a848cd7e 31638 ac_status=$?
ac1cb8d3
VS
31639 grep -v '^ *+' conftest.er1 >conftest.err
31640 rm -f conftest.er1
31641 cat conftest.err >&5
a848cd7e
SC
31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643 (exit $ac_status); } &&
7714864e 31644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31646 (eval $ac_try) 2>&5
31647 ac_status=$?
31648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31649 (exit $ac_status); }; } &&
31650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31652 (eval $ac_try) 2>&5
31653 ac_status=$?
31654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31655 (exit $ac_status); }; }; then
31656 echo "$as_me:$LINENO: result: yes" >&5
31657echo "${ECHO_T}yes" >&6
31658 cat >>confdefs.h <<\_ACEOF
31659#define HAVE_KNOWN_CDROM_INTERFACE 1
31660_ACEOF
31661
31662else
31663 echo "$as_me: failed program was:" >&5
31664sed 's/^/| /' conftest.$ac_ext >&5
31665
31666echo "$as_me:$LINENO: result: no" >&5
31667echo "${ECHO_T}no" >&6
31668fi
ac1cb8d3 31669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31670
31671
31672cat >confcache <<\_ACEOF
31673# This file is a shell script that caches the results of configure
31674# tests run on this system so they can be shared between configure
31675# scripts and configure runs, see configure's option --config-cache.
31676# It is not useful on other systems. If it contains results you don't
31677# want to keep, you may remove or edit it.
31678#
31679# config.status only pays attention to the cache file if you give it
31680# the --recheck option to rerun configure.
31681#
31682# `ac_cv_env_foo' variables (set or unset) will be overridden when
31683# loading this file, other *unset* `ac_cv_foo' will be assigned the
31684# following values.
31685
31686_ACEOF
31687
31688# The following way of writing the cache mishandles newlines in values,
31689# but we know of no workaround that is simple, portable, and efficient.
31690# So, don't put newlines in cache variables' values.
31691# Ultrix sh set writes to stderr and can't be redirected directly,
31692# and sets the high bit in the cache file unless we assign to the vars.
31693{
31694 (set) 2>&1 |
31695 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31696 *ac_space=\ *)
31697 # `set' does not quote correctly, so add quotes (double-quote
31698 # substitution turns \\\\ into \\, and sed turns \\ into \).
31699 sed -n \
ac1cb8d3
VS
31700 "s/'/'\\\\''/g;
31701 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31702 ;;
31703 *)
31704 # `set' quotes correctly as required by POSIX, so do not add quotes.
31705 sed -n \
ac1cb8d3 31706 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31707 ;;
31708 esac;
31709} |
31710 sed '
31711 t clear
31712 : clear
31713 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31714 t end
31715 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31716 : end' >>confcache
31717if diff $cache_file confcache >/dev/null 2>&1; then :; else
31718 if test -w $cache_file; then
31719 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31720 cat confcache >$cache_file
31721 else
31722 echo "not updating unwritable cache $cache_file"
31723 fi
31724fi
31725rm -f confcache
31726
31727
31728CPP_MT_FLAG=
31729if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31730
31731
31732 THREADS_LINK=
31733 THREADS_CFLAGS=
31734
31735 if test "$wxUSE_THREADS" = "yes" ; then
31736 if test "$USE_BEOS" = 1; then
31737 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31738echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31739 wxUSE_THREADS="no"
31740 fi
31741 fi
31742
31743 if test "$wxUSE_THREADS" = "yes" ; then
31744
31745
31746 THREAD_OPTS="-pthread"
31747 case "${host}" in
31748 *-*-solaris2* | *-*-sunos4* )
31749 if test "x$GCC" = "xyes"; then
31750 THREAD_OPTS="-pthreads $THREAD_OPTS"
31751 else
31752 THREAD_OPTS="-mt $THREAD_OPTS"
31753 fi
31754 ;;
31755 *-*-freebsd*)
31756 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31757 ;;
31758 *-*-darwin* | *-*-cygwin* )
31759 THREAD_OPTS=""
31760 ;;
31761 *-*-aix*)
31762 THREAD_OPTS="pthreads"
31763 ;;
31764 *-hp-hpux* )
31765 if test "x$GCC" != "xyes"; then
31766 THREAD_OPTS=""
31767 fi
31768 ;;
31769
31770 *-*-irix* )
31771 if test "x$GCC" = "xyes"; then
31772 THREAD_OPTS=""
31773 fi
31774 ;;
31775
31776 *-*-*UnixWare*)
31777 if test "x$GCC" != "xyes"; then
31778 THREAD_OPTS="-Ethread"
31779 fi
31780 ;;
31781 esac
31782
31783 THREAD_OPTS="$THREAD_OPTS pthread none"
31784
31785 THREADS_OK=no
31786 for flag in $THREAD_OPTS; do
31787 case $flag in
31788 none)
31789 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31790echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31791 ;;
31792
31793 -*)
31794 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31795echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31796 THREADS_CFLAGS="$flag"
31797 ;;
31798
31799 *)
31800 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31801echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31802 THREADS_LINK="-l$flag"
31803 ;;
31804 esac
31805
31806 save_LIBS="$LIBS"
31807 save_CFLAGS="$CFLAGS"
31808 LIBS="$THREADS_LINK $LIBS"
31809 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31810
31811 cat >conftest.$ac_ext <<_ACEOF
31812/* confdefs.h. */
31813_ACEOF
31814cat confdefs.h >>conftest.$ac_ext
31815cat >>conftest.$ac_ext <<_ACEOF
31816/* end confdefs.h. */
31817#include <pthread.h>
31818int
31819main ()
31820{
31821pthread_create(0,0,0,0);
31822 ;
31823 return 0;
31824}
31825_ACEOF
31826rm -f conftest.$ac_objext conftest$ac_exeext
31827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31828 (eval $ac_link) 2>conftest.er1
a848cd7e 31829 ac_status=$?
ac1cb8d3
VS
31830 grep -v '^ *+' conftest.er1 >conftest.err
31831 rm -f conftest.er1
31832 cat conftest.err >&5
a848cd7e
SC
31833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834 (exit $ac_status); } &&
7714864e 31835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31837 (eval $ac_try) 2>&5
31838 ac_status=$?
31839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31840 (exit $ac_status); }; } &&
31841 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31843 (eval $ac_try) 2>&5
31844 ac_status=$?
31845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31846 (exit $ac_status); }; }; then
31847 THREADS_OK=yes
31848else
31849 echo "$as_me: failed program was:" >&5
31850sed 's/^/| /' conftest.$ac_ext >&5
31851
31852fi
ac1cb8d3
VS
31853rm -f conftest.err conftest.$ac_objext \
31854 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31855
31856 LIBS="$save_LIBS"
31857 CFLAGS="$save_CFLAGS"
31858
31859 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31860echo "${ECHO_T}$THREADS_OK" >&6
31861 if test "x$THREADS_OK" = "xyes"; then
31862 break;
31863 fi
31864
31865 THREADS_LINK=""
31866 THREADS_CFLAGS=""
31867 done
31868
31869 if test "x$THREADS_OK" != "xyes"; then
31870 wxUSE_THREADS=no
31871 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31872echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31873 else
31874 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31875 LIBS="$THREADS_LINK $LIBS"
31876
31877 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31878echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31879 flag=no
31880 case "${host}" in
31881 *-aix*)
31882 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31883 flag="-D_THREAD_SAFE"
31884 ;;
31885 *-freebsd*)
31886 flag="-D_THREAD_SAFE"
31887 ;;
31888 *-hp-hpux* )
31889 flag="-D_REENTRANT"
31890 if test "x$GCC" != "xyes"; then
31891 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31892
31893 LIBS="$LIBS -lcma"
a848cd7e
SC
31894 fi
31895 ;;
31896 *solaris* | alpha*-osf*)
31897 flag="-D_REENTRANT"
31898 ;;
31899 esac
31900 echo "$as_me:$LINENO: result: ${flag}" >&5
31901echo "${ECHO_T}${flag}" >&6
31902 if test "x$flag" != xno; then
31903 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31904 fi
31905
31906 if test "x$THREADS_CFLAGS" != "x"; then
31907 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31908 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31909 fi
31910 fi
31911 fi
31912
31913 if test "$wxUSE_THREADS" = "yes" ; then
31914
31915for ac_func in thr_setconcurrency
31916do
31917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31918echo "$as_me:$LINENO: checking for $ac_func" >&5
31919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31920if eval "test \"\${$as_ac_var+set}\" = set"; then
31921 echo $ECHO_N "(cached) $ECHO_C" >&6
31922else
31923 cat >conftest.$ac_ext <<_ACEOF
31924/* confdefs.h. */
31925_ACEOF
31926cat confdefs.h >>conftest.$ac_ext
31927cat >>conftest.$ac_ext <<_ACEOF
31928/* end confdefs.h. */
ac1cb8d3
VS
31929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31931#define $ac_func innocuous_$ac_func
31932
a848cd7e
SC
31933/* System header to define __stub macros and hopefully few prototypes,
31934 which can conflict with char $ac_func (); below.
31935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31936 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31937
a848cd7e
SC
31938#ifdef __STDC__
31939# include <limits.h>
31940#else
31941# include <assert.h>
31942#endif
ac1cb8d3
VS
31943
31944#undef $ac_func
31945
a848cd7e
SC
31946/* Override any gcc2 internal prototype to avoid an error. */
31947#ifdef __cplusplus
31948extern "C"
31949{
31950#endif
31951/* We use char because int might match the return type of a gcc2
31952 builtin and then its argument prototype would still apply. */
31953char $ac_func ();
31954/* The GNU C library defines this for functions which it implements
31955 to always fail with ENOSYS. Some functions are actually named
31956 something starting with __ and the normal name is an alias. */
31957#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31958choke me
31959#else
31960char (*f) () = $ac_func;
31961#endif
31962#ifdef __cplusplus
31963}
31964#endif
31965
31966int
31967main ()
31968{
31969return f != $ac_func;
31970 ;
31971 return 0;
31972}
31973_ACEOF
31974rm -f conftest.$ac_objext conftest$ac_exeext
31975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31976 (eval $ac_link) 2>conftest.er1
a848cd7e 31977 ac_status=$?
ac1cb8d3
VS
31978 grep -v '^ *+' conftest.er1 >conftest.err
31979 rm -f conftest.er1
31980 cat conftest.err >&5
a848cd7e
SC
31981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982 (exit $ac_status); } &&
7714864e 31983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31985 (eval $ac_try) 2>&5
31986 ac_status=$?
31987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31988 (exit $ac_status); }; } &&
31989 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31991 (eval $ac_try) 2>&5
31992 ac_status=$?
31993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994 (exit $ac_status); }; }; then
31995 eval "$as_ac_var=yes"
31996else
31997 echo "$as_me: failed program was:" >&5
31998sed 's/^/| /' conftest.$ac_ext >&5
31999
32000eval "$as_ac_var=no"
32001fi
ac1cb8d3
VS
32002rm -f conftest.err conftest.$ac_objext \
32003 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32004fi
32005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32006echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32007if test `eval echo '${'$as_ac_var'}'` = yes; then
32008 cat >>confdefs.h <<_ACEOF
32009#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32010_ACEOF
32011
32012fi
32013done
32014
32015
32016
32017for ac_header in sched.h
32018do
32019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32020if eval "test \"\${$as_ac_Header+set}\" = set"; then
32021 echo "$as_me:$LINENO: checking for $ac_header" >&5
32022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32023if eval "test \"\${$as_ac_Header+set}\" = set"; then
32024 echo $ECHO_N "(cached) $ECHO_C" >&6
32025fi
32026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32028else
32029 # Is the header compilable?
32030echo "$as_me:$LINENO: checking $ac_header usability" >&5
32031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32032cat >conftest.$ac_ext <<_ACEOF
32033/* confdefs.h. */
32034_ACEOF
32035cat confdefs.h >>conftest.$ac_ext
32036cat >>conftest.$ac_ext <<_ACEOF
32037/* end confdefs.h. */
32038$ac_includes_default
32039#include <$ac_header>
32040_ACEOF
32041rm -f conftest.$ac_objext
32042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32043 (eval $ac_compile) 2>conftest.er1
a848cd7e 32044 ac_status=$?
ac1cb8d3
VS
32045 grep -v '^ *+' conftest.er1 >conftest.err
32046 rm -f conftest.er1
32047 cat conftest.err >&5
a848cd7e
SC
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); } &&
7714864e 32050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32052 (eval $ac_try) 2>&5
32053 ac_status=$?
32054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055 (exit $ac_status); }; } &&
32056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32058 (eval $ac_try) 2>&5
32059 ac_status=$?
32060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32061 (exit $ac_status); }; }; then
32062 ac_header_compiler=yes
32063else
32064 echo "$as_me: failed program was:" >&5
32065sed 's/^/| /' conftest.$ac_ext >&5
32066
32067ac_header_compiler=no
32068fi
ac1cb8d3 32069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32070echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32071echo "${ECHO_T}$ac_header_compiler" >&6
32072
32073# Is the header present?
32074echo "$as_me:$LINENO: checking $ac_header presence" >&5
32075echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32076cat >conftest.$ac_ext <<_ACEOF
32077/* confdefs.h. */
32078_ACEOF
32079cat confdefs.h >>conftest.$ac_ext
32080cat >>conftest.$ac_ext <<_ACEOF
32081/* end confdefs.h. */
32082#include <$ac_header>
32083_ACEOF
32084if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32086 ac_status=$?
32087 grep -v '^ *+' conftest.er1 >conftest.err
32088 rm -f conftest.er1
32089 cat conftest.err >&5
32090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091 (exit $ac_status); } >/dev/null; then
32092 if test -s conftest.err; then
32093 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32094 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32095 else
32096 ac_cpp_err=
32097 fi
32098else
32099 ac_cpp_err=yes
32100fi
32101if test -z "$ac_cpp_err"; then
32102 ac_header_preproc=yes
32103else
32104 echo "$as_me: failed program was:" >&5
32105sed 's/^/| /' conftest.$ac_ext >&5
32106
32107 ac_header_preproc=no
32108fi
32109rm -f conftest.err conftest.$ac_ext
32110echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32111echo "${ECHO_T}$ac_header_preproc" >&6
32112
32113# So? What about this header?
ac1cb8d3
VS
32114case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32115 yes:no: )
a848cd7e
SC
32116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32117echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32119echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32120 ac_header_preproc=yes
a848cd7e 32121 ;;
ac1cb8d3 32122 no:yes:* )
a848cd7e
SC
32123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32124echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32126echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32128echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32130echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32132echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32134echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32135 (
32136 cat <<\_ASBOX
ac1cb8d3
VS
32137## ----------------------------------------- ##
32138## Report this to wx-dev@lists.wxwidgets.org ##
32139## ----------------------------------------- ##
a848cd7e
SC
32140_ASBOX
32141 ) |
32142 sed "s/^/$as_me: WARNING: /" >&2
32143 ;;
32144esac
32145echo "$as_me:$LINENO: checking for $ac_header" >&5
32146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32147if eval "test \"\${$as_ac_Header+set}\" = set"; then
32148 echo $ECHO_N "(cached) $ECHO_C" >&6
32149else
ac1cb8d3 32150 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32151fi
32152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32154
32155fi
32156if test `eval echo '${'$as_ac_Header'}'` = yes; then
32157 cat >>confdefs.h <<_ACEOF
32158#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32159_ACEOF
32160
32161fi
32162
32163done
32164
32165 if test "$ac_cv_header_sched_h" = "yes"; then
32166 echo "$as_me:$LINENO: checking for sched_yield" >&5
32167echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32168if test "${ac_cv_func_sched_yield+set}" = set; then
32169 echo $ECHO_N "(cached) $ECHO_C" >&6
32170else
32171 cat >conftest.$ac_ext <<_ACEOF
32172/* confdefs.h. */
32173_ACEOF
32174cat confdefs.h >>conftest.$ac_ext
32175cat >>conftest.$ac_ext <<_ACEOF
32176/* end confdefs.h. */
ac1cb8d3
VS
32177/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32179#define sched_yield innocuous_sched_yield
32180
a848cd7e
SC
32181/* System header to define __stub macros and hopefully few prototypes,
32182 which can conflict with char sched_yield (); below.
32183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32184 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32185
a848cd7e
SC
32186#ifdef __STDC__
32187# include <limits.h>
32188#else
32189# include <assert.h>
32190#endif
ac1cb8d3
VS
32191
32192#undef sched_yield
32193
a848cd7e
SC
32194/* Override any gcc2 internal prototype to avoid an error. */
32195#ifdef __cplusplus
32196extern "C"
32197{
32198#endif
32199/* We use char because int might match the return type of a gcc2
32200 builtin and then its argument prototype would still apply. */
32201char sched_yield ();
32202/* The GNU C library defines this for functions which it implements
32203 to always fail with ENOSYS. Some functions are actually named
32204 something starting with __ and the normal name is an alias. */
32205#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32206choke me
32207#else
32208char (*f) () = sched_yield;
32209#endif
32210#ifdef __cplusplus
32211}
32212#endif
32213
32214int
32215main ()
32216{
32217return f != sched_yield;
32218 ;
32219 return 0;
32220}
32221_ACEOF
32222rm -f conftest.$ac_objext conftest$ac_exeext
32223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32224 (eval $ac_link) 2>conftest.er1
a848cd7e 32225 ac_status=$?
ac1cb8d3
VS
32226 grep -v '^ *+' conftest.er1 >conftest.err
32227 rm -f conftest.er1
32228 cat conftest.err >&5
a848cd7e
SC
32229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230 (exit $ac_status); } &&
7714864e 32231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32233 (eval $ac_try) 2>&5
32234 ac_status=$?
32235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32236 (exit $ac_status); }; } &&
32237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32239 (eval $ac_try) 2>&5
32240 ac_status=$?
32241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242 (exit $ac_status); }; }; then
32243 ac_cv_func_sched_yield=yes
32244else
32245 echo "$as_me: failed program was:" >&5
32246sed 's/^/| /' conftest.$ac_ext >&5
32247
32248ac_cv_func_sched_yield=no
32249fi
ac1cb8d3
VS
32250rm -f conftest.err conftest.$ac_objext \
32251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32252fi
32253echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32254echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32255if test $ac_cv_func_sched_yield = yes; then
32256 cat >>confdefs.h <<\_ACEOF
32257#define HAVE_SCHED_YIELD 1
32258_ACEOF
32259
32260else
32261
32262 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32263echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32264if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32265 echo $ECHO_N "(cached) $ECHO_C" >&6
32266else
32267 ac_check_lib_save_LIBS=$LIBS
32268LIBS="-lposix4 $LIBS"
32269cat >conftest.$ac_ext <<_ACEOF
32270/* confdefs.h. */
32271_ACEOF
32272cat confdefs.h >>conftest.$ac_ext
32273cat >>conftest.$ac_ext <<_ACEOF
32274/* end confdefs.h. */
32275
32276/* Override any gcc2 internal prototype to avoid an error. */
32277#ifdef __cplusplus
32278extern "C"
32279#endif
32280/* We use char because int might match the return type of a gcc2
32281 builtin and then its argument prototype would still apply. */
32282char sched_yield ();
32283int
32284main ()
32285{
32286sched_yield ();
32287 ;
32288 return 0;
32289}
32290_ACEOF
32291rm -f conftest.$ac_objext conftest$ac_exeext
32292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32293 (eval $ac_link) 2>conftest.er1
a848cd7e 32294 ac_status=$?
ac1cb8d3
VS
32295 grep -v '^ *+' conftest.er1 >conftest.err
32296 rm -f conftest.er1
32297 cat conftest.err >&5
a848cd7e
SC
32298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32299 (exit $ac_status); } &&
7714864e 32300 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32302 (eval $ac_try) 2>&5
32303 ac_status=$?
32304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32305 (exit $ac_status); }; } &&
32306 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32308 (eval $ac_try) 2>&5
32309 ac_status=$?
32310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32311 (exit $ac_status); }; }; then
32312 ac_cv_lib_posix4_sched_yield=yes
32313else
32314 echo "$as_me: failed program was:" >&5
32315sed 's/^/| /' conftest.$ac_ext >&5
32316
32317ac_cv_lib_posix4_sched_yield=no
32318fi
ac1cb8d3
VS
32319rm -f conftest.err conftest.$ac_objext \
32320 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32321LIBS=$ac_check_lib_save_LIBS
32322fi
32323echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32324echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32325if test $ac_cv_lib_posix4_sched_yield = yes; then
32326 cat >>confdefs.h <<\_ACEOF
32327#define HAVE_SCHED_YIELD 1
32328_ACEOF
32329 POSIX4_LINK=" -lposix4"
32330else
32331 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32332echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32333
32334fi
32335
32336
32337
32338fi
32339
32340 fi
32341
32342 HAVE_PRIOR_FUNCS=0
32343 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32344echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32345if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32346 echo $ECHO_N "(cached) $ECHO_C" >&6
32347else
32348 cat >conftest.$ac_ext <<_ACEOF
32349/* confdefs.h. */
32350_ACEOF
32351cat confdefs.h >>conftest.$ac_ext
32352cat >>conftest.$ac_ext <<_ACEOF
32353/* end confdefs.h. */
ac1cb8d3
VS
32354/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32356#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32357
a848cd7e
SC
32358/* System header to define __stub macros and hopefully few prototypes,
32359 which can conflict with char pthread_attr_getschedpolicy (); below.
32360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32361 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32362
a848cd7e
SC
32363#ifdef __STDC__
32364# include <limits.h>
32365#else
32366# include <assert.h>
32367#endif
ac1cb8d3
VS
32368
32369#undef pthread_attr_getschedpolicy
32370
a848cd7e
SC
32371/* Override any gcc2 internal prototype to avoid an error. */
32372#ifdef __cplusplus
32373extern "C"
32374{
32375#endif
32376/* We use char because int might match the return type of a gcc2
32377 builtin and then its argument prototype would still apply. */
32378char pthread_attr_getschedpolicy ();
32379/* The GNU C library defines this for functions which it implements
32380 to always fail with ENOSYS. Some functions are actually named
32381 something starting with __ and the normal name is an alias. */
32382#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32383choke me
32384#else
32385char (*f) () = pthread_attr_getschedpolicy;
32386#endif
32387#ifdef __cplusplus
32388}
32389#endif
32390
32391int
32392main ()
32393{
32394return f != pthread_attr_getschedpolicy;
32395 ;
32396 return 0;
32397}
32398_ACEOF
32399rm -f conftest.$ac_objext conftest$ac_exeext
32400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32401 (eval $ac_link) 2>conftest.er1
a848cd7e 32402 ac_status=$?
ac1cb8d3
VS
32403 grep -v '^ *+' conftest.er1 >conftest.err
32404 rm -f conftest.er1
32405 cat conftest.err >&5
a848cd7e
SC
32406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32407 (exit $ac_status); } &&
7714864e 32408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32410 (eval $ac_try) 2>&5
32411 ac_status=$?
32412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32413 (exit $ac_status); }; } &&
32414 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32416 (eval $ac_try) 2>&5
32417 ac_status=$?
32418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419 (exit $ac_status); }; }; then
32420 ac_cv_func_pthread_attr_getschedpolicy=yes
32421else
32422 echo "$as_me: failed program was:" >&5
32423sed 's/^/| /' conftest.$ac_ext >&5
32424
32425ac_cv_func_pthread_attr_getschedpolicy=no
32426fi
ac1cb8d3
VS
32427rm -f conftest.err conftest.$ac_objext \
32428 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32429fi
32430echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32431echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32432if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32433 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32434echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32435if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32436 echo $ECHO_N "(cached) $ECHO_C" >&6
32437else
32438 cat >conftest.$ac_ext <<_ACEOF
32439/* confdefs.h. */
32440_ACEOF
32441cat confdefs.h >>conftest.$ac_ext
32442cat >>conftest.$ac_ext <<_ACEOF
32443/* end confdefs.h. */
ac1cb8d3
VS
32444/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32446#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32447
a848cd7e
SC
32448/* System header to define __stub macros and hopefully few prototypes,
32449 which can conflict with char pthread_attr_setschedparam (); below.
32450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32451 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32452
a848cd7e
SC
32453#ifdef __STDC__
32454# include <limits.h>
32455#else
32456# include <assert.h>
32457#endif
ac1cb8d3
VS
32458
32459#undef pthread_attr_setschedparam
32460
a848cd7e
SC
32461/* Override any gcc2 internal prototype to avoid an error. */
32462#ifdef __cplusplus
32463extern "C"
32464{
32465#endif
32466/* We use char because int might match the return type of a gcc2
32467 builtin and then its argument prototype would still apply. */
32468char pthread_attr_setschedparam ();
32469/* The GNU C library defines this for functions which it implements
32470 to always fail with ENOSYS. Some functions are actually named
32471 something starting with __ and the normal name is an alias. */
32472#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32473choke me
32474#else
32475char (*f) () = pthread_attr_setschedparam;
32476#endif
32477#ifdef __cplusplus
32478}
32479#endif
32480
32481int
32482main ()
32483{
32484return f != pthread_attr_setschedparam;
32485 ;
32486 return 0;
32487}
32488_ACEOF
32489rm -f conftest.$ac_objext conftest$ac_exeext
32490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32491 (eval $ac_link) 2>conftest.er1
a848cd7e 32492 ac_status=$?
ac1cb8d3
VS
32493 grep -v '^ *+' conftest.er1 >conftest.err
32494 rm -f conftest.er1
32495 cat conftest.err >&5
a848cd7e
SC
32496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32497 (exit $ac_status); } &&
7714864e 32498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32500 (eval $ac_try) 2>&5
32501 ac_status=$?
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); }; } &&
32504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32506 (eval $ac_try) 2>&5
32507 ac_status=$?
32508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32509 (exit $ac_status); }; }; then
32510 ac_cv_func_pthread_attr_setschedparam=yes
32511else
32512 echo "$as_me: failed program was:" >&5
32513sed 's/^/| /' conftest.$ac_ext >&5
32514
32515ac_cv_func_pthread_attr_setschedparam=no
32516fi
ac1cb8d3
VS
32517rm -f conftest.err conftest.$ac_objext \
32518 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32519fi
32520echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32521echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32522if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32523 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32524echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32525if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32526 echo $ECHO_N "(cached) $ECHO_C" >&6
32527else
32528 cat >conftest.$ac_ext <<_ACEOF
32529/* confdefs.h. */
32530_ACEOF
32531cat confdefs.h >>conftest.$ac_ext
32532cat >>conftest.$ac_ext <<_ACEOF
32533/* end confdefs.h. */
ac1cb8d3
VS
32534/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32536#define sched_get_priority_max innocuous_sched_get_priority_max
32537
a848cd7e
SC
32538/* System header to define __stub macros and hopefully few prototypes,
32539 which can conflict with char sched_get_priority_max (); below.
32540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32541 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32542
a848cd7e
SC
32543#ifdef __STDC__
32544# include <limits.h>
32545#else
32546# include <assert.h>
32547#endif
ac1cb8d3
VS
32548
32549#undef sched_get_priority_max
32550
a848cd7e
SC
32551/* Override any gcc2 internal prototype to avoid an error. */
32552#ifdef __cplusplus
32553extern "C"
32554{
32555#endif
32556/* We use char because int might match the return type of a gcc2
32557 builtin and then its argument prototype would still apply. */
32558char sched_get_priority_max ();
32559/* The GNU C library defines this for functions which it implements
32560 to always fail with ENOSYS. Some functions are actually named
32561 something starting with __ and the normal name is an alias. */
32562#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32563choke me
32564#else
32565char (*f) () = sched_get_priority_max;
32566#endif
32567#ifdef __cplusplus
32568}
32569#endif
32570
32571int
32572main ()
32573{
32574return f != sched_get_priority_max;
32575 ;
32576 return 0;
32577}
32578_ACEOF
32579rm -f conftest.$ac_objext conftest$ac_exeext
32580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32581 (eval $ac_link) 2>conftest.er1
a848cd7e 32582 ac_status=$?
ac1cb8d3
VS
32583 grep -v '^ *+' conftest.er1 >conftest.err
32584 rm -f conftest.er1
32585 cat conftest.err >&5
a848cd7e
SC
32586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587 (exit $ac_status); } &&
7714864e 32588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32590 (eval $ac_try) 2>&5
32591 ac_status=$?
32592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32593 (exit $ac_status); }; } &&
32594 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32596 (eval $ac_try) 2>&5
32597 ac_status=$?
32598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32599 (exit $ac_status); }; }; then
32600 ac_cv_func_sched_get_priority_max=yes
32601else
32602 echo "$as_me: failed program was:" >&5
32603sed 's/^/| /' conftest.$ac_ext >&5
32604
32605ac_cv_func_sched_get_priority_max=no
32606fi
ac1cb8d3
VS
32607rm -f conftest.err conftest.$ac_objext \
32608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32609fi
32610echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32611echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32612if test $ac_cv_func_sched_get_priority_max = yes; then
32613 HAVE_PRIOR_FUNCS=1
32614else
32615 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32616echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32617if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32618 echo $ECHO_N "(cached) $ECHO_C" >&6
32619else
32620 ac_check_lib_save_LIBS=$LIBS
32621LIBS="-lposix4 $LIBS"
32622cat >conftest.$ac_ext <<_ACEOF
32623/* confdefs.h. */
32624_ACEOF
32625cat confdefs.h >>conftest.$ac_ext
32626cat >>conftest.$ac_ext <<_ACEOF
32627/* end confdefs.h. */
32628
32629/* Override any gcc2 internal prototype to avoid an error. */
32630#ifdef __cplusplus
32631extern "C"
32632#endif
32633/* We use char because int might match the return type of a gcc2
32634 builtin and then its argument prototype would still apply. */
32635char sched_get_priority_max ();
32636int
32637main ()
32638{
32639sched_get_priority_max ();
32640 ;
32641 return 0;
32642}
32643_ACEOF
32644rm -f conftest.$ac_objext conftest$ac_exeext
32645if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32646 (eval $ac_link) 2>conftest.er1
a848cd7e 32647 ac_status=$?
ac1cb8d3
VS
32648 grep -v '^ *+' conftest.er1 >conftest.err
32649 rm -f conftest.er1
32650 cat conftest.err >&5
a848cd7e
SC
32651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32652 (exit $ac_status); } &&
7714864e 32653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32655 (eval $ac_try) 2>&5
32656 ac_status=$?
32657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32658 (exit $ac_status); }; } &&
32659 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32661 (eval $ac_try) 2>&5
32662 ac_status=$?
32663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32664 (exit $ac_status); }; }; then
32665 ac_cv_lib_posix4_sched_get_priority_max=yes
32666else
32667 echo "$as_me: failed program was:" >&5
32668sed 's/^/| /' conftest.$ac_ext >&5
32669
32670ac_cv_lib_posix4_sched_get_priority_max=no
32671fi
ac1cb8d3
VS
32672rm -f conftest.err conftest.$ac_objext \
32673 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32674LIBS=$ac_check_lib_save_LIBS
32675fi
32676echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32677echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32678if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32679
32680 HAVE_PRIOR_FUNCS=1
32681 POSIX4_LINK=" -lposix4"
32682
32683fi
32684
32685
32686fi
32687
32688
32689fi
32690
32691
32692fi
32693
32694
32695 if test "$HAVE_PRIOR_FUNCS" = 1; then
32696 cat >>confdefs.h <<\_ACEOF
32697#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32698_ACEOF
32699
32700 else
32701 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32702echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32703 fi
32704
32705 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32706echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32707if test "${ac_cv_func_pthread_cancel+set}" = set; then
32708 echo $ECHO_N "(cached) $ECHO_C" >&6
32709else
32710 cat >conftest.$ac_ext <<_ACEOF
32711/* confdefs.h. */
32712_ACEOF
32713cat confdefs.h >>conftest.$ac_ext
32714cat >>conftest.$ac_ext <<_ACEOF
32715/* end confdefs.h. */
ac1cb8d3
VS
32716/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32718#define pthread_cancel innocuous_pthread_cancel
32719
a848cd7e
SC
32720/* System header to define __stub macros and hopefully few prototypes,
32721 which can conflict with char pthread_cancel (); below.
32722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32723 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32724
a848cd7e
SC
32725#ifdef __STDC__
32726# include <limits.h>
32727#else
32728# include <assert.h>
32729#endif
ac1cb8d3
VS
32730
32731#undef pthread_cancel
32732
a848cd7e
SC
32733/* Override any gcc2 internal prototype to avoid an error. */
32734#ifdef __cplusplus
32735extern "C"
32736{
32737#endif
32738/* We use char because int might match the return type of a gcc2
32739 builtin and then its argument prototype would still apply. */
32740char pthread_cancel ();
32741/* The GNU C library defines this for functions which it implements
32742 to always fail with ENOSYS. Some functions are actually named
32743 something starting with __ and the normal name is an alias. */
32744#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32745choke me
32746#else
32747char (*f) () = pthread_cancel;
32748#endif
32749#ifdef __cplusplus
32750}
32751#endif
32752
32753int
32754main ()
32755{
32756return f != pthread_cancel;
32757 ;
32758 return 0;
32759}
32760_ACEOF
32761rm -f conftest.$ac_objext conftest$ac_exeext
32762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32763 (eval $ac_link) 2>conftest.er1
a848cd7e 32764 ac_status=$?
ac1cb8d3
VS
32765 grep -v '^ *+' conftest.er1 >conftest.err
32766 rm -f conftest.er1
32767 cat conftest.err >&5
a848cd7e
SC
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); } &&
7714864e 32770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772 (eval $ac_try) 2>&5
32773 ac_status=$?
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; } &&
32776 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32778 (eval $ac_try) 2>&5
32779 ac_status=$?
32780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32781 (exit $ac_status); }; }; then
32782 ac_cv_func_pthread_cancel=yes
32783else
32784 echo "$as_me: failed program was:" >&5
32785sed 's/^/| /' conftest.$ac_ext >&5
32786
32787ac_cv_func_pthread_cancel=no
32788fi
ac1cb8d3
VS
32789rm -f conftest.err conftest.$ac_objext \
32790 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32791fi
32792echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32793echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32794if test $ac_cv_func_pthread_cancel = yes; then
32795 cat >>confdefs.h <<\_ACEOF
32796#define HAVE_PTHREAD_CANCEL 1
32797_ACEOF
32798
32799else
32800 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32801echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32802fi
32803
32804
32805
32806
32807 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32808echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32809if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32810 echo $ECHO_N "(cached) $ECHO_C" >&6
32811else
32812
32813 cat >conftest.$ac_ext <<_ACEOF
32814/* confdefs.h. */
32815_ACEOF
32816cat confdefs.h >>conftest.$ac_ext
32817cat >>conftest.$ac_ext <<_ACEOF
32818/* end confdefs.h. */
32819#include <pthread.h>
32820int
32821main ()
32822{
32823
32824 pthread_mutexattr_t attr;
32825 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32826
32827 ;
32828 return 0;
32829}
32830_ACEOF
32831rm -f conftest.$ac_objext
32832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32833 (eval $ac_compile) 2>conftest.er1
a848cd7e 32834 ac_status=$?
ac1cb8d3
VS
32835 grep -v '^ *+' conftest.er1 >conftest.err
32836 rm -f conftest.er1
32837 cat conftest.err >&5
a848cd7e
SC
32838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32839 (exit $ac_status); } &&
7714864e 32840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32842 (eval $ac_try) 2>&5
32843 ac_status=$?
32844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845 (exit $ac_status); }; } &&
32846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32848 (eval $ac_try) 2>&5
32849 ac_status=$?
32850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32851 (exit $ac_status); }; }; then
32852
32853 wx_cv_type_pthread_mutexattr_t=yes
32854
32855else
32856 echo "$as_me: failed program was:" >&5
32857sed 's/^/| /' conftest.$ac_ext >&5
32858
32859
32860 wx_cv_type_pthread_mutexattr_t=no
32861
32862
32863fi
ac1cb8d3 32864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32865
32866fi
32867echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32868echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32869
32870 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32871 cat >>confdefs.h <<\_ACEOF
32872#define HAVE_PTHREAD_MUTEXATTR_T 1
32873_ACEOF
32874
32875 else
32876 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32877echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32878if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32879 echo $ECHO_N "(cached) $ECHO_C" >&6
32880else
32881
32882 cat >conftest.$ac_ext <<_ACEOF
32883/* confdefs.h. */
32884_ACEOF
32885cat confdefs.h >>conftest.$ac_ext
32886cat >>conftest.$ac_ext <<_ACEOF
32887/* end confdefs.h. */
32888#include <pthread.h>
32889int
32890main ()
32891{
32892
32893 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32894
32895 ;
32896 return 0;
32897}
32898_ACEOF
32899rm -f conftest.$ac_objext
32900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32901 (eval $ac_compile) 2>conftest.er1
a848cd7e 32902 ac_status=$?
ac1cb8d3
VS
32903 grep -v '^ *+' conftest.er1 >conftest.err
32904 rm -f conftest.er1
32905 cat conftest.err >&5
a848cd7e
SC
32906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32907 (exit $ac_status); } &&
7714864e 32908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32910 (eval $ac_try) 2>&5
32911 ac_status=$?
32912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32913 (exit $ac_status); }; } &&
32914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32916 (eval $ac_try) 2>&5
32917 ac_status=$?
32918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32919 (exit $ac_status); }; }; then
32920
32921 wx_cv_type_pthread_rec_mutex_init=yes
32922
32923else
32924 echo "$as_me: failed program was:" >&5
32925sed 's/^/| /' conftest.$ac_ext >&5
32926
32927
32928 wx_cv_type_pthread_rec_mutex_init=no
32929
32930
32931fi
ac1cb8d3 32932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32933
32934fi
32935echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32936echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32937 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
32938 cat >>confdefs.h <<\_ACEOF
32939#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
32940_ACEOF
32941
32942 else
32943 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32944echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
32945 fi
32946 fi
32947 fi
32948
32949else
32950 if test "$wxUSE_THREADS" = "yes" ; then
32951 case "${host}" in
32952 *-*-mingw32* )
32953 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32954echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32955if test "${wx_cv_cflags_mthread+set}" = set; then
32956 echo $ECHO_N "(cached) $ECHO_C" >&6
32957else
32958
32959 CFLAGS_OLD="$CFLAGS"
32960 CFLAGS="$CFLAGS -mthreads"
32961 cat >conftest.$ac_ext <<_ACEOF
32962/* confdefs.h. */
32963_ACEOF
32964cat confdefs.h >>conftest.$ac_ext
32965cat >>conftest.$ac_ext <<_ACEOF
32966/* end confdefs.h. */
32967
32968int
32969main ()
32970{
32971
32972 ;
32973 return 0;
32974}
32975_ACEOF
32976rm -f conftest.$ac_objext
32977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32978 (eval $ac_compile) 2>conftest.er1
a848cd7e 32979 ac_status=$?
ac1cb8d3
VS
32980 grep -v '^ *+' conftest.er1 >conftest.err
32981 rm -f conftest.er1
32982 cat conftest.err >&5
a848cd7e
SC
32983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32984 (exit $ac_status); } &&
7714864e 32985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32987 (eval $ac_try) 2>&5
32988 ac_status=$?
32989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32990 (exit $ac_status); }; } &&
32991 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32993 (eval $ac_try) 2>&5
32994 ac_status=$?
32995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32996 (exit $ac_status); }; }; then
32997 wx_cv_cflags_mthread=yes
32998else
32999 echo "$as_me: failed program was:" >&5
33000sed 's/^/| /' conftest.$ac_ext >&5
33001
33002wx_cv_cflags_mthread=no
33003
33004fi
ac1cb8d3 33005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33006
33007
33008fi
33009echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33010echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33011
33012 if test "$wx_cv_cflags_mthread" = "yes"; then
33013 CXXFLAGS="$CXXFLAGS -mthreads"
33014 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33015 LDFLAGS="$LDFLAGS -mthreads"
33016 else
33017 CFLAGS="$CFLAGS_OLD"
33018 fi
33019 ;;
33020 *-pc-os2*emx )
33021 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33022 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33023 LDFLAGS="$LDFLAGS -Zmt"
33024 ;;
33025 esac
33026 fi
33027fi
33028
33029if test "$wxUSE_THREADS" = "yes"; then
33030 cat >>confdefs.h <<\_ACEOF
33031#define wxUSE_THREADS 1
33032_ACEOF
33033
33034
33035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33036else
33037 if test "$ac_cv_func_strtok_r" = "yes"; then
33038 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33039echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33040 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33041 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33042 echo "$as_me:$LINENO: result: yes" >&5
33043echo "${ECHO_T}yes" >&6
33044 else
33045 echo "$as_me:$LINENO: result: no" >&5
33046echo "${ECHO_T}no" >&6
33047 fi
33048 fi
33049fi
33050
33051if test "$WXGTK20" = 1 ; then
33052 cat >>confdefs.h <<_ACEOF
33053#define __WXGTK20__ $WXGTK20
33054_ACEOF
33055
33056 WXGTK12=1
33057fi
33058
33059if test "$WXGTK12" = 1 ; then
33060 cat >>confdefs.h <<_ACEOF
33061#define __WXGTK12__ $WXGTK12
33062_ACEOF
33063
33064fi
33065
33066if test "$WXGTK127" = 1 ; then
33067 cat >>confdefs.h <<_ACEOF
33068#define __WXGTK127__ $WXGTK127
33069_ACEOF
33070
33071fi
33072
33073if test "$WXGPE" = 1 ; then
33074 cat >>confdefs.h <<_ACEOF
33075#define __WXGPE__ $WXGPE
33076_ACEOF
33077
33078fi
33079
33080WXDEBUG=
33081
33082if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33083 WXDEBUG="-g"
33084 wxUSE_OPTIMISE=no
33085fi
33086
33087if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33088 wxUSE_DEBUG_INFO=yes
33089 WXDEBUG="-ggdb"
33090fi
33091
33092if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33093 cat >>confdefs.h <<\_ACEOF
33094#define WXDEBUG 1
33095_ACEOF
33096
33097 WXDEBUG_DEFINE="-D__WXDEBUG__"
33098else
33099 if test "$wxUSE_GTK" = 1 ; then
33100 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33101 fi
33102fi
33103
33104if test "$wxUSE_MEM_TRACING" = "yes" ; then
33105 cat >>confdefs.h <<\_ACEOF
33106#define wxUSE_MEMORY_TRACING 1
33107_ACEOF
33108
33109 cat >>confdefs.h <<\_ACEOF
33110#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33111_ACEOF
33112
33113 cat >>confdefs.h <<\_ACEOF
33114#define wxUSE_DEBUG_NEW_ALWAYS 1
33115_ACEOF
33116
33117 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33118fi
33119
33120if test "$wxUSE_DMALLOC" = "yes" ; then
33121 DMALLOC_LIBS="-ldmalloc"
33122fi
33123
33124PROFILE=
33125if test "$wxUSE_PROFILE" = "yes" ; then
33126 PROFILE=" -pg"
33127fi
33128
33129CODE_GEN_FLAGS=
33130CODE_GEN_FLAGS_CXX=
33131if test "$GCC" = "yes" ; then
33132 if test "$wxUSE_NO_RTTI" = "yes" ; then
33133 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33134 fi
33135 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33136 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33137 fi
33138 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33139 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33140 fi
33141
33142 case "${host}" in
33143 powerpc*-*-aix* )
33144 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33145 ;;
33146 *-hppa* )
33147 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33148 ;;
33149 esac
33150fi
33151
33152OPTIMISE=
33153if test "$wxUSE_OPTIMISE" = "no" ; then
33154 if test "$GCC" = yes ; then
33155 OPTIMISE="-O0"
33156 fi
33157else
33158 if test "$GCC" = yes ; then
33159 OPTIMISE="-O2"
33160
33161 case "${host}" in
33162 i586-*-*|i686-*-* )
33163 OPTIMISE="${OPTIMISE} "
33164 ;;
33165 esac
33166 else
33167 OPTIMISE="-O"
33168 fi
33169fi
33170
33171
33172if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33173 cat >>confdefs.h <<\_ACEOF
33174#define WXWIN_COMPATIBILITY_2_2 1
33175_ACEOF
33176
33177
33178 WXWIN_COMPATIBILITY_2_4="yes"
33179fi
33180
33181if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33182 cat >>confdefs.h <<\_ACEOF
33183#define WXWIN_COMPATIBILITY_2_4 1
33184_ACEOF
33185
33186fi
33187
33188
33189if test "$wxUSE_GUI" = "yes"; then
33190 cat >>confdefs.h <<\_ACEOF
33191#define wxUSE_GUI 1
33192_ACEOF
33193
33194
33195 else
33196 cat >>confdefs.h <<\_ACEOF
33197#define wxUSE_NOGUI 1
33198_ACEOF
33199
33200fi
33201
33202
33203if test "$wxUSE_UNIX" = "yes"; then
33204 cat >>confdefs.h <<\_ACEOF
33205#define wxUSE_UNIX 1
33206_ACEOF
33207
33208fi
33209
33210
33211if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33212
33213 HAVE_DL_FUNCS=0
33214 HAVE_SHL_FUNCS=0
33215 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33216 if test "$USE_DARWIN" = 1; then
33217 HAVE_DL_FUNCS=1
33218 else
33219
33220for ac_func in dlopen
33221do
33222as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33223echo "$as_me:$LINENO: checking for $ac_func" >&5
33224echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33225if eval "test \"\${$as_ac_var+set}\" = set"; then
33226 echo $ECHO_N "(cached) $ECHO_C" >&6
33227else
33228 cat >conftest.$ac_ext <<_ACEOF
33229/* confdefs.h. */
33230_ACEOF
33231cat confdefs.h >>conftest.$ac_ext
33232cat >>conftest.$ac_ext <<_ACEOF
33233/* end confdefs.h. */
ac1cb8d3
VS
33234/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33235 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33236#define $ac_func innocuous_$ac_func
33237
a848cd7e
SC
33238/* System header to define __stub macros and hopefully few prototypes,
33239 which can conflict with char $ac_func (); below.
33240 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33241 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33242
a848cd7e
SC
33243#ifdef __STDC__
33244# include <limits.h>
33245#else
33246# include <assert.h>
33247#endif
ac1cb8d3
VS
33248
33249#undef $ac_func
33250
a848cd7e
SC
33251/* Override any gcc2 internal prototype to avoid an error. */
33252#ifdef __cplusplus
33253extern "C"
33254{
33255#endif
33256/* We use char because int might match the return type of a gcc2
33257 builtin and then its argument prototype would still apply. */
33258char $ac_func ();
33259/* The GNU C library defines this for functions which it implements
33260 to always fail with ENOSYS. Some functions are actually named
33261 something starting with __ and the normal name is an alias. */
33262#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33263choke me
33264#else
33265char (*f) () = $ac_func;
33266#endif
33267#ifdef __cplusplus
33268}
33269#endif
33270
33271int
33272main ()
33273{
33274return f != $ac_func;
33275 ;
33276 return 0;
33277}
33278_ACEOF
33279rm -f conftest.$ac_objext conftest$ac_exeext
33280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33281 (eval $ac_link) 2>conftest.er1
a848cd7e 33282 ac_status=$?
ac1cb8d3
VS
33283 grep -v '^ *+' conftest.er1 >conftest.err
33284 rm -f conftest.er1
33285 cat conftest.err >&5
a848cd7e
SC
33286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); } &&
7714864e 33288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33290 (eval $ac_try) 2>&5
33291 ac_status=$?
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); }; } &&
33294 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33296 (eval $ac_try) 2>&5
33297 ac_status=$?
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); }; }; then
33300 eval "$as_ac_var=yes"
33301else
33302 echo "$as_me: failed program was:" >&5
33303sed 's/^/| /' conftest.$ac_ext >&5
33304
33305eval "$as_ac_var=no"
33306fi
ac1cb8d3
VS
33307rm -f conftest.err conftest.$ac_objext \
33308 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33309fi
33310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33311echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33312if test `eval echo '${'$as_ac_var'}'` = yes; then
33313 cat >>confdefs.h <<_ACEOF
33314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33315_ACEOF
33316
33317 cat >>confdefs.h <<\_ACEOF
33318#define HAVE_DLOPEN 1
33319_ACEOF
33320
33321 HAVE_DL_FUNCS=1
33322
33323else
33324
33325 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33326echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33327if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33328 echo $ECHO_N "(cached) $ECHO_C" >&6
33329else
33330 ac_check_lib_save_LIBS=$LIBS
33331LIBS="-ldl $LIBS"
33332cat >conftest.$ac_ext <<_ACEOF
33333/* confdefs.h. */
33334_ACEOF
33335cat confdefs.h >>conftest.$ac_ext
33336cat >>conftest.$ac_ext <<_ACEOF
33337/* end confdefs.h. */
33338
33339/* Override any gcc2 internal prototype to avoid an error. */
33340#ifdef __cplusplus
33341extern "C"
33342#endif
33343/* We use char because int might match the return type of a gcc2
33344 builtin and then its argument prototype would still apply. */
33345char dlopen ();
33346int
33347main ()
33348{
33349dlopen ();
33350 ;
33351 return 0;
33352}
33353_ACEOF
33354rm -f conftest.$ac_objext conftest$ac_exeext
33355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33356 (eval $ac_link) 2>conftest.er1
a848cd7e 33357 ac_status=$?
ac1cb8d3
VS
33358 grep -v '^ *+' conftest.er1 >conftest.err
33359 rm -f conftest.er1
33360 cat conftest.err >&5
a848cd7e
SC
33361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33362 (exit $ac_status); } &&
7714864e 33363 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33365 (eval $ac_try) 2>&5
33366 ac_status=$?
33367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368 (exit $ac_status); }; } &&
33369 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33371 (eval $ac_try) 2>&5
33372 ac_status=$?
33373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374 (exit $ac_status); }; }; then
33375 ac_cv_lib_dl_dlopen=yes
33376else
33377 echo "$as_me: failed program was:" >&5
33378sed 's/^/| /' conftest.$ac_ext >&5
33379
33380ac_cv_lib_dl_dlopen=no
33381fi
ac1cb8d3
VS
33382rm -f conftest.err conftest.$ac_objext \
33383 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33384LIBS=$ac_check_lib_save_LIBS
33385fi
33386echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33387echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33388if test $ac_cv_lib_dl_dlopen = yes; then
33389
33390 cat >>confdefs.h <<\_ACEOF
33391#define HAVE_DLOPEN 1
33392_ACEOF
33393
33394 HAVE_DL_FUNCS=1
33395 DL_LINK=" -ldl$DL_LINK"
33396
33397else
33398
33399
33400for ac_func in shl_load
33401do
33402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33403echo "$as_me:$LINENO: checking for $ac_func" >&5
33404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33405if eval "test \"\${$as_ac_var+set}\" = set"; then
33406 echo $ECHO_N "(cached) $ECHO_C" >&6
33407else
33408 cat >conftest.$ac_ext <<_ACEOF
33409/* confdefs.h. */
33410_ACEOF
33411cat confdefs.h >>conftest.$ac_ext
33412cat >>conftest.$ac_ext <<_ACEOF
33413/* end confdefs.h. */
ac1cb8d3
VS
33414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33416#define $ac_func innocuous_$ac_func
33417
a848cd7e
SC
33418/* System header to define __stub macros and hopefully few prototypes,
33419 which can conflict with char $ac_func (); below.
33420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33421 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33422
a848cd7e
SC
33423#ifdef __STDC__
33424# include <limits.h>
33425#else
33426# include <assert.h>
33427#endif
ac1cb8d3
VS
33428
33429#undef $ac_func
33430
a848cd7e
SC
33431/* Override any gcc2 internal prototype to avoid an error. */
33432#ifdef __cplusplus
33433extern "C"
33434{
33435#endif
33436/* We use char because int might match the return type of a gcc2
33437 builtin and then its argument prototype would still apply. */
33438char $ac_func ();
33439/* The GNU C library defines this for functions which it implements
33440 to always fail with ENOSYS. Some functions are actually named
33441 something starting with __ and the normal name is an alias. */
33442#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33443choke me
33444#else
33445char (*f) () = $ac_func;
33446#endif
33447#ifdef __cplusplus
33448}
33449#endif
33450
33451int
33452main ()
33453{
33454return f != $ac_func;
33455 ;
33456 return 0;
33457}
33458_ACEOF
33459rm -f conftest.$ac_objext conftest$ac_exeext
33460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33461 (eval $ac_link) 2>conftest.er1
a848cd7e 33462 ac_status=$?
ac1cb8d3
VS
33463 grep -v '^ *+' conftest.er1 >conftest.err
33464 rm -f conftest.er1
33465 cat conftest.err >&5
a848cd7e
SC
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); } &&
7714864e 33468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33470 (eval $ac_try) 2>&5
33471 ac_status=$?
33472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473 (exit $ac_status); }; } &&
33474 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33476 (eval $ac_try) 2>&5
33477 ac_status=$?
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); }; }; then
33480 eval "$as_ac_var=yes"
33481else
33482 echo "$as_me: failed program was:" >&5
33483sed 's/^/| /' conftest.$ac_ext >&5
33484
33485eval "$as_ac_var=no"
33486fi
ac1cb8d3
VS
33487rm -f conftest.err conftest.$ac_objext \
33488 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33489fi
33490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33491echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33492if test `eval echo '${'$as_ac_var'}'` = yes; then
33493 cat >>confdefs.h <<_ACEOF
33494#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33495_ACEOF
33496
33497 cat >>confdefs.h <<\_ACEOF
33498#define HAVE_SHL_LOAD 1
33499_ACEOF
33500
33501 HAVE_SHL_FUNCS=1
33502
33503else
33504
33505 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33506echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33507if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33508 echo $ECHO_N "(cached) $ECHO_C" >&6
33509else
33510 ac_check_lib_save_LIBS=$LIBS
33511LIBS="-lshl_load $LIBS"
33512cat >conftest.$ac_ext <<_ACEOF
33513/* confdefs.h. */
33514_ACEOF
33515cat confdefs.h >>conftest.$ac_ext
33516cat >>conftest.$ac_ext <<_ACEOF
33517/* end confdefs.h. */
33518
33519/* Override any gcc2 internal prototype to avoid an error. */
33520#ifdef __cplusplus
33521extern "C"
33522#endif
33523/* We use char because int might match the return type of a gcc2
33524 builtin and then its argument prototype would still apply. */
33525char dld ();
33526int
33527main ()
33528{
33529dld ();
33530 ;
33531 return 0;
33532}
33533_ACEOF
33534rm -f conftest.$ac_objext conftest$ac_exeext
33535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33536 (eval $ac_link) 2>conftest.er1
a848cd7e 33537 ac_status=$?
ac1cb8d3
VS
33538 grep -v '^ *+' conftest.er1 >conftest.err
33539 rm -f conftest.er1
33540 cat conftest.err >&5
a848cd7e
SC
33541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33542 (exit $ac_status); } &&
7714864e 33543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33545 (eval $ac_try) 2>&5
33546 ac_status=$?
33547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33548 (exit $ac_status); }; } &&
33549 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33551 (eval $ac_try) 2>&5
33552 ac_status=$?
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); }; }; then
33555 ac_cv_lib_shl_load_dld=yes
33556else
33557 echo "$as_me: failed program was:" >&5
33558sed 's/^/| /' conftest.$ac_ext >&5
33559
33560ac_cv_lib_shl_load_dld=no
33561fi
ac1cb8d3
VS
33562rm -f conftest.err conftest.$ac_objext \
33563 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33564LIBS=$ac_check_lib_save_LIBS
33565fi
33566echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33567echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33568if test $ac_cv_lib_shl_load_dld = yes; then
33569
33570 HAVE_SHL_FUNCS=1
33571 DL_LINK=" -ldld$DL_LINK"
33572
33573fi
33574
33575
33576fi
33577done
33578
33579
33580fi
33581
33582
33583fi
33584done
33585
33586
33587 if test "$HAVE_DL_FUNCS" = 1; then
33588
33589for ac_func in dlerror
33590do
33591as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33592echo "$as_me:$LINENO: checking for $ac_func" >&5
33593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33594if eval "test \"\${$as_ac_var+set}\" = set"; then
33595 echo $ECHO_N "(cached) $ECHO_C" >&6
33596else
33597 cat >conftest.$ac_ext <<_ACEOF
33598/* confdefs.h. */
33599_ACEOF
33600cat confdefs.h >>conftest.$ac_ext
33601cat >>conftest.$ac_ext <<_ACEOF
33602/* end confdefs.h. */
ac1cb8d3
VS
33603/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33605#define $ac_func innocuous_$ac_func
33606
a848cd7e
SC
33607/* System header to define __stub macros and hopefully few prototypes,
33608 which can conflict with char $ac_func (); below.
33609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33610 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33611
a848cd7e
SC
33612#ifdef __STDC__
33613# include <limits.h>
33614#else
33615# include <assert.h>
33616#endif
ac1cb8d3
VS
33617
33618#undef $ac_func
33619
a848cd7e
SC
33620/* Override any gcc2 internal prototype to avoid an error. */
33621#ifdef __cplusplus
33622extern "C"
33623{
33624#endif
33625/* We use char because int might match the return type of a gcc2
33626 builtin and then its argument prototype would still apply. */
33627char $ac_func ();
33628/* The GNU C library defines this for functions which it implements
33629 to always fail with ENOSYS. Some functions are actually named
33630 something starting with __ and the normal name is an alias. */
33631#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33632choke me
33633#else
33634char (*f) () = $ac_func;
33635#endif
33636#ifdef __cplusplus
33637}
33638#endif
33639
33640int
33641main ()
33642{
33643return f != $ac_func;
33644 ;
33645 return 0;
33646}
33647_ACEOF
33648rm -f conftest.$ac_objext conftest$ac_exeext
33649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33650 (eval $ac_link) 2>conftest.er1
a848cd7e 33651 ac_status=$?
ac1cb8d3
VS
33652 grep -v '^ *+' conftest.er1 >conftest.err
33653 rm -f conftest.er1
33654 cat conftest.err >&5
a848cd7e
SC
33655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33656 (exit $ac_status); } &&
7714864e 33657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33659 (eval $ac_try) 2>&5
33660 ac_status=$?
33661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33662 (exit $ac_status); }; } &&
33663 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33665 (eval $ac_try) 2>&5
33666 ac_status=$?
33667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33668 (exit $ac_status); }; }; then
33669 eval "$as_ac_var=yes"
33670else
33671 echo "$as_me: failed program was:" >&5
33672sed 's/^/| /' conftest.$ac_ext >&5
33673
33674eval "$as_ac_var=no"
33675fi
ac1cb8d3
VS
33676rm -f conftest.err conftest.$ac_objext \
33677 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33678fi
33679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33680echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33681if test `eval echo '${'$as_ac_var'}'` = yes; then
33682 cat >>confdefs.h <<_ACEOF
33683#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33684_ACEOF
33685 cat >>confdefs.h <<\_ACEOF
33686#define HAVE_DLERROR 1
33687_ACEOF
33688
33689else
33690
33691 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33692echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33693if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33694 echo $ECHO_N "(cached) $ECHO_C" >&6
33695else
33696 ac_check_lib_save_LIBS=$LIBS
33697LIBS="-ldl $LIBS"
33698cat >conftest.$ac_ext <<_ACEOF
33699/* confdefs.h. */
33700_ACEOF
33701cat confdefs.h >>conftest.$ac_ext
33702cat >>conftest.$ac_ext <<_ACEOF
33703/* end confdefs.h. */
33704
33705/* Override any gcc2 internal prototype to avoid an error. */
33706#ifdef __cplusplus
33707extern "C"
33708#endif
33709/* We use char because int might match the return type of a gcc2
33710 builtin and then its argument prototype would still apply. */
33711char dlerror ();
33712int
33713main ()
33714{
33715dlerror ();
33716 ;
33717 return 0;
33718}
33719_ACEOF
33720rm -f conftest.$ac_objext conftest$ac_exeext
33721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33722 (eval $ac_link) 2>conftest.er1
a848cd7e 33723 ac_status=$?
ac1cb8d3
VS
33724 grep -v '^ *+' conftest.er1 >conftest.err
33725 rm -f conftest.er1
33726 cat conftest.err >&5
a848cd7e
SC
33727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33728 (exit $ac_status); } &&
7714864e 33729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33731 (eval $ac_try) 2>&5
33732 ac_status=$?
33733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33734 (exit $ac_status); }; } &&
33735 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33737 (eval $ac_try) 2>&5
33738 ac_status=$?
33739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33740 (exit $ac_status); }; }; then
33741 ac_cv_lib_dl_dlerror=yes
33742else
33743 echo "$as_me: failed program was:" >&5
33744sed 's/^/| /' conftest.$ac_ext >&5
33745
33746ac_cv_lib_dl_dlerror=no
33747fi
ac1cb8d3
VS
33748rm -f conftest.err conftest.$ac_objext \
33749 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33750LIBS=$ac_check_lib_save_LIBS
33751fi
33752echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33753echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33754if test $ac_cv_lib_dl_dlerror = yes; then
33755 cat >>confdefs.h <<\_ACEOF
33756#define HAVE_DLERROR 1
33757_ACEOF
33758
33759fi
33760
33761
33762
33763fi
33764done
33765
33766 fi
33767 fi
33768
33769 if test "$HAVE_DL_FUNCS" = 0; then
33770 if test "$HAVE_SHL_FUNCS" = 0; then
33771 if test "$USE_UNIX" = 1; then
33772 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33773echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33774 wxUSE_DYNAMIC_LOADER=no
33775 wxUSE_DYNLIB_CLASS=no
33776 else
33777 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33778echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33779 fi
33780 fi
33781 fi
33782 fi
33783fi
33784
33785if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33786 cat >>confdefs.h <<\_ACEOF
33787#define wxUSE_DYNAMIC_LOADER 1
33788_ACEOF
33789
33790fi
33791if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33792 cat >>confdefs.h <<\_ACEOF
33793#define wxUSE_DYNLIB_CLASS 1
33794_ACEOF
33795
33796fi
33797
33798
33799
33800if test "$wxUSE_PLUGINS" = "yes" ; then
33801 if test "$wxUSE_SHARED" = "no" ; then
33802 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33803echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33804 wxUSE_PLUGINS=no
33805 fi
33806 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33807 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33808echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33809 wxUSE_PLUGINS=no
33810 fi
33811 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33812 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33813echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33814 wxUSE_PLUGINS=no
33815 fi
33816 if test "$wxUSE_PLUGINS" = "yes" ; then
33817 cat >>confdefs.h <<\_ACEOF
33818#define wxUSE_PLUGINS 1
33819_ACEOF
33820
33821 fi
33822fi
33823
33824
33825if test "$wxUSE_STL" = "yes"; then
33826 cat >>confdefs.h <<\_ACEOF
33827#define wxUSE_STL 1
33828_ACEOF
33829
33830fi
33831
33832if test "$wxUSE_APPLE_IEEE" = "yes"; then
33833 cat >>confdefs.h <<\_ACEOF
33834#define wxUSE_APPLE_IEEE 1
33835_ACEOF
33836
33837fi
33838
33839if test "$wxUSE_TIMER" = "yes"; then
33840 cat >>confdefs.h <<\_ACEOF
33841#define wxUSE_TIMER 1
33842_ACEOF
33843
33844fi
33845
33846WITH_PLUGIN_SDL=0
33847if test "$wxUSE_SOUND" = "yes"; then
33848 if test "$USE_UNIX" = "1" ; then
33849
33850for ac_header in sys/soundcard.h
33851do
33852as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33853if eval "test \"\${$as_ac_Header+set}\" = set"; then
33854 echo "$as_me:$LINENO: checking for $ac_header" >&5
33855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33856if eval "test \"\${$as_ac_Header+set}\" = set"; then
33857 echo $ECHO_N "(cached) $ECHO_C" >&6
33858fi
33859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33861else
33862 # Is the header compilable?
33863echo "$as_me:$LINENO: checking $ac_header usability" >&5
33864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33865cat >conftest.$ac_ext <<_ACEOF
33866/* confdefs.h. */
33867_ACEOF
33868cat confdefs.h >>conftest.$ac_ext
33869cat >>conftest.$ac_ext <<_ACEOF
33870/* end confdefs.h. */
33871$ac_includes_default
33872#include <$ac_header>
33873_ACEOF
33874rm -f conftest.$ac_objext
33875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33876 (eval $ac_compile) 2>conftest.er1
a848cd7e 33877 ac_status=$?
ac1cb8d3
VS
33878 grep -v '^ *+' conftest.er1 >conftest.err
33879 rm -f conftest.er1
33880 cat conftest.err >&5
a848cd7e
SC
33881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33882 (exit $ac_status); } &&
7714864e 33883 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33885 (eval $ac_try) 2>&5
33886 ac_status=$?
33887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33888 (exit $ac_status); }; } &&
33889 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33891 (eval $ac_try) 2>&5
33892 ac_status=$?
33893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894 (exit $ac_status); }; }; then
33895 ac_header_compiler=yes
33896else
33897 echo "$as_me: failed program was:" >&5
33898sed 's/^/| /' conftest.$ac_ext >&5
33899
33900ac_header_compiler=no
33901fi
ac1cb8d3 33902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33903echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33904echo "${ECHO_T}$ac_header_compiler" >&6
33905
33906# Is the header present?
33907echo "$as_me:$LINENO: checking $ac_header presence" >&5
33908echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33909cat >conftest.$ac_ext <<_ACEOF
33910/* confdefs.h. */
33911_ACEOF
33912cat confdefs.h >>conftest.$ac_ext
33913cat >>conftest.$ac_ext <<_ACEOF
33914/* end confdefs.h. */
33915#include <$ac_header>
33916_ACEOF
33917if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33919 ac_status=$?
33920 grep -v '^ *+' conftest.er1 >conftest.err
33921 rm -f conftest.er1
33922 cat conftest.err >&5
33923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33924 (exit $ac_status); } >/dev/null; then
33925 if test -s conftest.err; then
33926 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33927 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33928 else
33929 ac_cpp_err=
33930 fi
33931else
33932 ac_cpp_err=yes
33933fi
33934if test -z "$ac_cpp_err"; then
33935 ac_header_preproc=yes
33936else
33937 echo "$as_me: failed program was:" >&5
33938sed 's/^/| /' conftest.$ac_ext >&5
33939
33940 ac_header_preproc=no
33941fi
33942rm -f conftest.err conftest.$ac_ext
33943echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33944echo "${ECHO_T}$ac_header_preproc" >&6
33945
33946# So? What about this header?
ac1cb8d3
VS
33947case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33948 yes:no: )
a848cd7e
SC
33949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33950echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33952echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33953 ac_header_preproc=yes
a848cd7e 33954 ;;
ac1cb8d3 33955 no:yes:* )
a848cd7e
SC
33956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33961echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33963echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33967echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33968 (
33969 cat <<\_ASBOX
ac1cb8d3
VS
33970## ----------------------------------------- ##
33971## Report this to wx-dev@lists.wxwidgets.org ##
33972## ----------------------------------------- ##
a848cd7e
SC
33973_ASBOX
33974 ) |
33975 sed "s/^/$as_me: WARNING: /" >&2
33976 ;;
33977esac
33978echo "$as_me:$LINENO: checking for $ac_header" >&5
33979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33980if eval "test \"\${$as_ac_Header+set}\" = set"; then
33981 echo $ECHO_N "(cached) $ECHO_C" >&6
33982else
ac1cb8d3 33983 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33984fi
33985echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33986echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33987
33988fi
33989if test `eval echo '${'$as_ac_Header'}'` = yes; then
33990 cat >>confdefs.h <<_ACEOF
33991#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33992_ACEOF
33993
33994fi
33995
33996done
33997
33998
33999 if test "$wxUSE_LIBSDL" != "no"; then
34000
34001# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34002if test "${with_sdl_prefix+set}" = set; then
34003 withval="$with_sdl_prefix"
34004 sdl_prefix="$withval"
34005else
34006 sdl_prefix=""
34007fi;
34008
34009# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34010if test "${with_sdl_exec_prefix+set}" = set; then
34011 withval="$with_sdl_exec_prefix"
34012 sdl_exec_prefix="$withval"
34013else
34014 sdl_exec_prefix=""
34015fi;
34016# Check whether --enable-sdltest or --disable-sdltest was given.
34017if test "${enable_sdltest+set}" = set; then
34018 enableval="$enable_sdltest"
34019
34020else
34021 enable_sdltest=yes
34022fi;
34023
34024 if test x$sdl_exec_prefix != x ; then
34025 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34026 if test x${SDL_CONFIG+set} != xset ; then
34027 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34028 fi
34029 fi
34030 if test x$sdl_prefix != x ; then
34031 sdl_args="$sdl_args --prefix=$sdl_prefix"
34032 if test x${SDL_CONFIG+set} != xset ; then
34033 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34034 fi
34035 fi
34036
34037
34038 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34039 # Extract the first word of "sdl-config", so it can be a program name with args.
34040set dummy sdl-config; ac_word=$2
34041echo "$as_me:$LINENO: checking for $ac_word" >&5
34042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34043if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34044 echo $ECHO_N "(cached) $ECHO_C" >&6
34045else
34046 case $SDL_CONFIG in
34047 [\\/]* | ?:[\\/]*)
34048 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34049 ;;
34050 *)
34051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34052for as_dir in $PATH
34053do
34054 IFS=$as_save_IFS
34055 test -z "$as_dir" && as_dir=.
34056 for ac_exec_ext in '' $ac_executable_extensions; do
34057 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34058 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34060 break 2
34061 fi
34062done
34063done
34064
34065 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34066 ;;
34067esac
34068fi
34069SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34070
34071if test -n "$SDL_CONFIG"; then
34072 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34073echo "${ECHO_T}$SDL_CONFIG" >&6
34074else
34075 echo "$as_me:$LINENO: result: no" >&5
34076echo "${ECHO_T}no" >&6
34077fi
34078
34079 min_sdl_version=1.2.0
34080 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34081echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34082 no_sdl=""
34083 if test "$SDL_CONFIG" = "no" ; then
34084 no_sdl=yes
34085 else
34086 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34087 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34088
34089 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34090 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34091 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34092 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34093 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34094 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34095 if test "x$enable_sdltest" = "xyes" ; then
34096 ac_save_CFLAGS="$CFLAGS"
34097 ac_save_LIBS="$LIBS"
34098 CFLAGS="$CFLAGS $SDL_CFLAGS"
34099 LIBS="$LIBS $SDL_LIBS"
34100 rm -f conf.sdltest
34101 if test "$cross_compiling" = yes; then
34102 echo $ac_n "cross compiling; assumed OK... $ac_c"
34103else
34104 cat >conftest.$ac_ext <<_ACEOF
34105/* confdefs.h. */
34106_ACEOF
34107cat confdefs.h >>conftest.$ac_ext
34108cat >>conftest.$ac_ext <<_ACEOF
34109/* end confdefs.h. */
34110
34111#include <stdio.h>
34112#include <stdlib.h>
34113#include <string.h>
34114#include "SDL.h"
34115
34116char*
34117my_strdup (char *str)
34118{
34119 char *new_str;
34120
34121 if (str)
34122 {
34123 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34124 strcpy (new_str, str);
34125 }
34126 else
34127 new_str = NULL;
34128
34129 return new_str;
34130}
34131
34132int main (int argc, char *argv[])
34133{
34134 int major, minor, micro;
34135 char *tmp_version;
34136
34137 /* This hangs on some systems (?)
34138 system ("touch conf.sdltest");
34139 */
34140 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34141
34142 /* HP/UX 9 (%@#!) writes to sscanf strings */
34143 tmp_version = my_strdup("$min_sdl_version");
34144 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34145 printf("%s, bad version string\n", "$min_sdl_version");
34146 exit(1);
34147 }
34148
34149 if (($sdl_major_version > major) ||
34150 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34151 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34152 {
34153 return 0;
34154 }
34155 else
34156 {
34157 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34158 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34159 printf("*** best to upgrade to the required version.\n");
34160 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34161 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34162 printf("*** config.cache before re-running configure\n");
34163 return 1;
34164 }
34165}
34166
34167
34168_ACEOF
34169rm -f conftest$ac_exeext
34170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34171 (eval $ac_link) 2>&5
34172 ac_status=$?
34173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34176 (eval $ac_try) 2>&5
34177 ac_status=$?
34178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34179 (exit $ac_status); }; }; then
34180 :
34181else
34182 echo "$as_me: program exited with status $ac_status" >&5
34183echo "$as_me: failed program was:" >&5
34184sed 's/^/| /' conftest.$ac_ext >&5
34185
34186( exit $ac_status )
34187no_sdl=yes
34188fi
ac1cb8d3 34189rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34190fi
34191 CFLAGS="$ac_save_CFLAGS"
34192 LIBS="$ac_save_LIBS"
34193 fi
34194 fi
34195 if test "x$no_sdl" = x ; then
34196 echo "$as_me:$LINENO: result: yes" >&5
34197echo "${ECHO_T}yes" >&6
34198
34199 EXTRALIBS_SDL="$SDL_LIBS"
34200 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34201 cat >>confdefs.h <<\_ACEOF
34202#define wxUSE_LIBSDL 1
34203_ACEOF
34204
34205
34206 else
34207 echo "$as_me:$LINENO: result: no" >&5
34208echo "${ECHO_T}no" >&6
34209 if test "$SDL_CONFIG" = "no" ; then
34210 echo "*** The sdl-config script installed by SDL could not be found"
34211 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34212 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34213 echo "*** full path to sdl-config."
34214 else
34215 if test -f conf.sdltest ; then
34216 :
34217 else
34218 echo "*** Could not run SDL test program, checking why..."
34219 CFLAGS="$CFLAGS $SDL_CFLAGS"
34220 LIBS="$LIBS $SDL_LIBS"
34221 cat >conftest.$ac_ext <<_ACEOF
34222/* confdefs.h. */
34223_ACEOF
34224cat confdefs.h >>conftest.$ac_ext
34225cat >>conftest.$ac_ext <<_ACEOF
34226/* end confdefs.h. */
34227
34228#include <stdio.h>
34229#include "SDL.h"
34230
34231int main(int argc, char *argv[])
34232{ return 0; }
34233#undef main
34234#define main K_and_R_C_main
34235
34236int
34237main ()
34238{
34239 return 0;
34240 ;
34241 return 0;
34242}
34243_ACEOF
34244rm -f conftest.$ac_objext conftest$ac_exeext
34245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34246 (eval $ac_link) 2>conftest.er1
a848cd7e 34247 ac_status=$?
ac1cb8d3
VS
34248 grep -v '^ *+' conftest.er1 >conftest.err
34249 rm -f conftest.er1
34250 cat conftest.err >&5
a848cd7e
SC
34251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252 (exit $ac_status); } &&
7714864e 34253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34255 (eval $ac_try) 2>&5
34256 ac_status=$?
34257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258 (exit $ac_status); }; } &&
34259 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34261 (eval $ac_try) 2>&5
34262 ac_status=$?
34263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34264 (exit $ac_status); }; }; then
34265 echo "*** The test program compiled, but did not run. This usually means"
34266 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34267 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34268 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34269 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34270 echo "*** is required on your system"
34271 echo "***"
34272 echo "*** If you have an old version installed, it is best to remove it, although"
34273 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34274else
34275 echo "$as_me: failed program was:" >&5
34276sed 's/^/| /' conftest.$ac_ext >&5
34277
34278 echo "*** The test program failed to compile or link. See the file config.log for the"
34279 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34280 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34281 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34282fi
ac1cb8d3
VS
34283rm -f conftest.err conftest.$ac_objext \
34284 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34285 CFLAGS="$ac_save_CFLAGS"
34286 LIBS="$ac_save_LIBS"
34287 fi
34288 fi
34289 SDL_CFLAGS=""
34290 SDL_LIBS=""
34291 wxUSE_LIBSDL="no"
34292 fi
34293
34294
34295 rm -f conf.sdltest
34296
34297 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34298 WITH_PLUGIN_SDL=1
34299 fi
34300 fi
34301 fi
34302
34303 cat >>confdefs.h <<\_ACEOF
34304#define wxUSE_SOUND 1
34305_ACEOF
34306
34307 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34308fi
34309
34310if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34311 cat >>confdefs.h <<\_ACEOF
34312#define wxUSE_CMDLINE_PARSER 1
34313_ACEOF
34314
34315fi
34316
34317if test "$wxUSE_STOPWATCH" = "yes"; then
34318 cat >>confdefs.h <<\_ACEOF
34319#define wxUSE_STOPWATCH 1
34320_ACEOF
34321
34322fi
34323
34324if test "$wxUSE_DATETIME" = "yes"; then
34325 cat >>confdefs.h <<\_ACEOF
34326#define wxUSE_DATETIME 1
34327_ACEOF
34328
34329fi
34330
34331if test "$wxUSE_FILE" = "yes"; then
34332 cat >>confdefs.h <<\_ACEOF
34333#define wxUSE_FILE 1
34334_ACEOF
34335
34336fi
34337
34338if test "$wxUSE_FFILE" = "yes"; then
34339 cat >>confdefs.h <<\_ACEOF
34340#define wxUSE_FFILE 1
34341_ACEOF
34342
34343fi
34344
34345if test "$wxUSE_FILESYSTEM" = "yes"; then
34346 cat >>confdefs.h <<\_ACEOF
34347#define wxUSE_FILESYSTEM 1
34348_ACEOF
34349
34350fi
34351
34352if test "$wxUSE_FS_ZIP" = "yes"; then
34353 cat >>confdefs.h <<\_ACEOF
34354#define wxUSE_FS_ZIP 1
34355_ACEOF
34356
34357fi
34358
34359if test "$wxUSE_ZIPSTREAM" = "yes"; then
34360 cat >>confdefs.h <<\_ACEOF
34361#define wxUSE_ZIPSTREAM 1
34362_ACEOF
34363
34364fi
34365
a848cd7e
SC
34366if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34367 cat >>confdefs.h <<\_ACEOF
34368#define wxUSE_ON_FATAL_EXCEPTION 1
34369_ACEOF
34370
34371fi
34372
34373if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34374 cat >>confdefs.h <<\_ACEOF
34375#define wxUSE_SNGLINST_CHECKER 1
34376_ACEOF
34377
34378fi
34379
34380if test "$wxUSE_BUSYINFO" = "yes"; then
34381 cat >>confdefs.h <<\_ACEOF
34382#define wxUSE_BUSYINFO 1
34383_ACEOF
34384
34385fi
34386
34387if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34388 cat >>confdefs.h <<\_ACEOF
34389#define wxUSE_STD_IOSTREAM 1
34390_ACEOF
34391
34392fi
34393
34394if test "$wxUSE_TEXTBUFFER" = "yes"; then
34395 cat >>confdefs.h <<\_ACEOF
34396#define wxUSE_TEXTBUFFER 1
34397_ACEOF
34398
34399fi
34400
34401if test "$wxUSE_TEXTFILE" = "yes"; then
34402 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34403 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34404echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34405 else
34406 cat >>confdefs.h <<\_ACEOF
34407#define wxUSE_TEXTFILE 1
34408_ACEOF
34409
34410 fi
34411fi
34412
34413if test "$wxUSE_CONFIG" = "yes" ; then
34414 if test "$wxUSE_TEXTFILE" != "yes"; then
34415 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34416echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34417 else
34418 cat >>confdefs.h <<\_ACEOF
34419#define wxUSE_CONFIG 1
34420_ACEOF
34421
34422 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34423 fi
34424fi
34425
34426if test "$wxUSE_INTL" = "yes" ; then
34427 if test "$wxUSE_FILE" != "yes"; then
34428 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34429echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34430 else
34431 cat >>confdefs.h <<\_ACEOF
34432#define wxUSE_INTL 1
34433_ACEOF
34434
34435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34436 GUIDIST="$GUIDIST INTL_DIST"
34437 fi
34438fi
34439
34440if test "$wxUSE_LOG" = "yes"; then
34441 cat >>confdefs.h <<\_ACEOF
34442#define wxUSE_LOG 1
34443_ACEOF
34444
34445
34446 if test "$wxUSE_LOGGUI" = "yes"; then
34447 cat >>confdefs.h <<\_ACEOF
34448#define wxUSE_LOGGUI 1
34449_ACEOF
34450
34451 fi
34452
34453 if test "$wxUSE_LOGWINDOW" = "yes"; then
34454 cat >>confdefs.h <<\_ACEOF
34455#define wxUSE_LOGWINDOW 1
34456_ACEOF
34457
34458 fi
34459
34460 if test "$wxUSE_LOGDIALOG" = "yes"; then
34461 cat >>confdefs.h <<\_ACEOF
34462#define wxUSE_LOG_DIALOG 1
34463_ACEOF
34464
34465 fi
34466fi
34467
34468if test "$wxUSE_LONGLONG" = "yes"; then
34469 cat >>confdefs.h <<\_ACEOF
34470#define wxUSE_LONGLONG 1
34471_ACEOF
34472
34473fi
34474
34475if test "$wxUSE_GEOMETRY" = "yes"; then
34476 cat >>confdefs.h <<\_ACEOF
34477#define wxUSE_GEOMETRY 1
34478_ACEOF
34479
34480fi
34481
34482if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34483 cat >>confdefs.h <<\_ACEOF
34484#define wxUSE_DIALUP_MANAGER 1
34485_ACEOF
34486
34487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34488fi
34489
34490if test "$wxUSE_STREAMS" = "yes" ; then
34491 cat >>confdefs.h <<\_ACEOF
34492#define wxUSE_STREAMS 1
34493_ACEOF
34494
34495fi
34496
34497
34498if test "$wxUSE_DATETIME" = "yes"; then
34499
34500for ac_func in strptime
34501do
34502as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34503echo "$as_me:$LINENO: checking for $ac_func" >&5
34504echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34505if eval "test \"\${$as_ac_var+set}\" = set"; then
34506 echo $ECHO_N "(cached) $ECHO_C" >&6
34507else
34508 cat >conftest.$ac_ext <<_ACEOF
34509/* confdefs.h. */
34510_ACEOF
34511cat confdefs.h >>conftest.$ac_ext
34512cat >>conftest.$ac_ext <<_ACEOF
34513/* end confdefs.h. */
ac1cb8d3
VS
34514/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34516#define $ac_func innocuous_$ac_func
34517
a848cd7e
SC
34518/* System header to define __stub macros and hopefully few prototypes,
34519 which can conflict with char $ac_func (); below.
34520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34521 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34522
a848cd7e
SC
34523#ifdef __STDC__
34524# include <limits.h>
34525#else
34526# include <assert.h>
34527#endif
ac1cb8d3
VS
34528
34529#undef $ac_func
34530
a848cd7e
SC
34531/* Override any gcc2 internal prototype to avoid an error. */
34532#ifdef __cplusplus
34533extern "C"
34534{
34535#endif
34536/* We use char because int might match the return type of a gcc2
34537 builtin and then its argument prototype would still apply. */
34538char $ac_func ();
34539/* The GNU C library defines this for functions which it implements
34540 to always fail with ENOSYS. Some functions are actually named
34541 something starting with __ and the normal name is an alias. */
34542#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34543choke me
34544#else
34545char (*f) () = $ac_func;
34546#endif
34547#ifdef __cplusplus
34548}
34549#endif
34550
34551int
34552main ()
34553{
34554return f != $ac_func;
34555 ;
34556 return 0;
34557}
34558_ACEOF
34559rm -f conftest.$ac_objext conftest$ac_exeext
34560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34561 (eval $ac_link) 2>conftest.er1
a848cd7e 34562 ac_status=$?
ac1cb8d3
VS
34563 grep -v '^ *+' conftest.er1 >conftest.err
34564 rm -f conftest.er1
34565 cat conftest.err >&5
a848cd7e
SC
34566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34567 (exit $ac_status); } &&
7714864e 34568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34570 (eval $ac_try) 2>&5
34571 ac_status=$?
34572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34573 (exit $ac_status); }; } &&
34574 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34576 (eval $ac_try) 2>&5
34577 ac_status=$?
34578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); }; }; then
34580 eval "$as_ac_var=yes"
34581else
34582 echo "$as_me: failed program was:" >&5
34583sed 's/^/| /' conftest.$ac_ext >&5
34584
34585eval "$as_ac_var=no"
34586fi
ac1cb8d3
VS
34587rm -f conftest.err conftest.$ac_objext \
34588 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34589fi
34590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34592if test `eval echo '${'$as_ac_var'}'` = yes; then
34593 cat >>confdefs.h <<_ACEOF
34594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34595_ACEOF
34596
34597fi
34598done
34599
34600
34601 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34602echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34603if test "${wx_cv_var_timezone+set}" = set; then
34604 echo $ECHO_N "(cached) $ECHO_C" >&6
34605else
34606
34607 cat >conftest.$ac_ext <<_ACEOF
34608/* confdefs.h. */
34609_ACEOF
34610cat confdefs.h >>conftest.$ac_ext
34611cat >>conftest.$ac_ext <<_ACEOF
34612/* end confdefs.h. */
34613
34614 #include <time.h>
34615
34616int
34617main ()
34618{
34619
34620 int tz;
34621 tz = timezone;
34622
34623 ;
34624 return 0;
34625}
34626_ACEOF
34627rm -f conftest.$ac_objext
34628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34629 (eval $ac_compile) 2>conftest.er1
a848cd7e 34630 ac_status=$?
ac1cb8d3
VS
34631 grep -v '^ *+' conftest.er1 >conftest.err
34632 rm -f conftest.er1
34633 cat conftest.err >&5
a848cd7e
SC
34634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34635 (exit $ac_status); } &&
7714864e 34636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34638 (eval $ac_try) 2>&5
34639 ac_status=$?
34640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34641 (exit $ac_status); }; } &&
34642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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); }; }; then
34648
34649 wx_cv_var_timezone=timezone
34650
34651else
34652 echo "$as_me: failed program was:" >&5
34653sed 's/^/| /' conftest.$ac_ext >&5
34654
34655
34656 cat >conftest.$ac_ext <<_ACEOF
34657/* confdefs.h. */
34658_ACEOF
34659cat confdefs.h >>conftest.$ac_ext
34660cat >>conftest.$ac_ext <<_ACEOF
34661/* end confdefs.h. */
34662
34663 #include <time.h>
34664
34665int
34666main ()
34667{
34668
34669 int tz;
34670 tz = _timezone;
34671
34672 ;
34673 return 0;
34674}
34675_ACEOF
34676rm -f conftest.$ac_objext
34677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34678 (eval $ac_compile) 2>conftest.er1
a848cd7e 34679 ac_status=$?
ac1cb8d3
VS
34680 grep -v '^ *+' conftest.er1 >conftest.err
34681 rm -f conftest.er1
34682 cat conftest.err >&5
a848cd7e
SC
34683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34684 (exit $ac_status); } &&
7714864e 34685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34687 (eval $ac_try) 2>&5
34688 ac_status=$?
34689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34690 (exit $ac_status); }; } &&
34691 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34693 (eval $ac_try) 2>&5
34694 ac_status=$?
34695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34696 (exit $ac_status); }; }; then
34697
34698 wx_cv_var_timezone=_timezone
34699
34700else
34701 echo "$as_me: failed program was:" >&5
34702sed 's/^/| /' conftest.$ac_ext >&5
34703
34704
34705 cat >conftest.$ac_ext <<_ACEOF
34706/* confdefs.h. */
34707_ACEOF
34708cat confdefs.h >>conftest.$ac_ext
34709cat >>conftest.$ac_ext <<_ACEOF
34710/* end confdefs.h. */
34711
34712 #include <time.h>
34713
34714int
34715main ()
34716{
34717
34718 int tz;
34719 tz = __timezone;
34720
34721 ;
34722 return 0;
34723}
34724_ACEOF
34725rm -f conftest.$ac_objext
34726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34727 (eval $ac_compile) 2>conftest.er1
a848cd7e 34728 ac_status=$?
ac1cb8d3
VS
34729 grep -v '^ *+' conftest.er1 >conftest.err
34730 rm -f conftest.er1
34731 cat conftest.err >&5
a848cd7e
SC
34732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34733 (exit $ac_status); } &&
7714864e 34734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34736 (eval $ac_try) 2>&5
34737 ac_status=$?
34738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34739 (exit $ac_status); }; } &&
34740 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34742 (eval $ac_try) 2>&5
34743 ac_status=$?
34744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34745 (exit $ac_status); }; }; then
34746
34747 wx_cv_var_timezone=__timezone
34748
34749else
34750 echo "$as_me: failed program was:" >&5
34751sed 's/^/| /' conftest.$ac_ext >&5
34752
34753
34754 if test "$USE_DOS" = 0 ; then
34755 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34756echo "$as_me: WARNING: no timezone variable" >&2;}
34757 fi
34758
34759
34760fi
ac1cb8d3 34761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34762
34763
34764fi
ac1cb8d3 34765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34766
34767
34768fi
ac1cb8d3 34769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34770
34771
34772fi
34773echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34774echo "${ECHO_T}$wx_cv_var_timezone" >&6
34775
34776 if test "x$wx_cv_var_timezone" != x ; then
34777 cat >>confdefs.h <<_ACEOF
34778#define WX_TIMEZONE $wx_cv_var_timezone
34779_ACEOF
34780
34781 fi
34782
34783
34784for ac_func in localtime
34785do
34786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34787echo "$as_me:$LINENO: checking for $ac_func" >&5
34788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34789if eval "test \"\${$as_ac_var+set}\" = set"; then
34790 echo $ECHO_N "(cached) $ECHO_C" >&6
34791else
34792 cat >conftest.$ac_ext <<_ACEOF
34793/* confdefs.h. */
34794_ACEOF
34795cat confdefs.h >>conftest.$ac_ext
34796cat >>conftest.$ac_ext <<_ACEOF
34797/* end confdefs.h. */
ac1cb8d3
VS
34798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34800#define $ac_func innocuous_$ac_func
34801
a848cd7e
SC
34802/* System header to define __stub macros and hopefully few prototypes,
34803 which can conflict with char $ac_func (); below.
34804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34805 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34806
a848cd7e
SC
34807#ifdef __STDC__
34808# include <limits.h>
34809#else
34810# include <assert.h>
34811#endif
ac1cb8d3
VS
34812
34813#undef $ac_func
34814
a848cd7e
SC
34815/* Override any gcc2 internal prototype to avoid an error. */
34816#ifdef __cplusplus
34817extern "C"
34818{
34819#endif
34820/* We use char because int might match the return type of a gcc2
34821 builtin and then its argument prototype would still apply. */
34822char $ac_func ();
34823/* The GNU C library defines this for functions which it implements
34824 to always fail with ENOSYS. Some functions are actually named
34825 something starting with __ and the normal name is an alias. */
34826#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34827choke me
34828#else
34829char (*f) () = $ac_func;
34830#endif
34831#ifdef __cplusplus
34832}
34833#endif
34834
34835int
34836main ()
34837{
34838return f != $ac_func;
34839 ;
34840 return 0;
34841}
34842_ACEOF
34843rm -f conftest.$ac_objext conftest$ac_exeext
34844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34845 (eval $ac_link) 2>conftest.er1
a848cd7e 34846 ac_status=$?
ac1cb8d3
VS
34847 grep -v '^ *+' conftest.er1 >conftest.err
34848 rm -f conftest.er1
34849 cat conftest.err >&5
a848cd7e
SC
34850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851 (exit $ac_status); } &&
7714864e 34852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34854 (eval $ac_try) 2>&5
34855 ac_status=$?
34856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34857 (exit $ac_status); }; } &&
34858 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34860 (eval $ac_try) 2>&5
34861 ac_status=$?
34862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34863 (exit $ac_status); }; }; then
34864 eval "$as_ac_var=yes"
34865else
34866 echo "$as_me: failed program was:" >&5
34867sed 's/^/| /' conftest.$ac_ext >&5
34868
34869eval "$as_ac_var=no"
34870fi
ac1cb8d3
VS
34871rm -f conftest.err conftest.$ac_objext \
34872 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34873fi
34874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34875echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34876if test `eval echo '${'$as_ac_var'}'` = yes; then
34877 cat >>confdefs.h <<_ACEOF
34878#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34879_ACEOF
34880
34881fi
34882done
34883
34884
34885 if test "$ac_cv_func_localtime" = "yes"; then
34886 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34887echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34888if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34889 echo $ECHO_N "(cached) $ECHO_C" >&6
34890else
34891
34892 cat >conftest.$ac_ext <<_ACEOF
34893/* confdefs.h. */
34894_ACEOF
34895cat confdefs.h >>conftest.$ac_ext
34896cat >>conftest.$ac_ext <<_ACEOF
34897/* end confdefs.h. */
34898
34899 #include <time.h>
34900
34901int
34902main ()
34903{
34904
34905 struct tm tm;
34906 tm.tm_gmtoff++;
34907
34908 ;
34909 return 0;
34910}
34911_ACEOF
34912rm -f conftest.$ac_objext
34913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34914 (eval $ac_compile) 2>conftest.er1
a848cd7e 34915 ac_status=$?
ac1cb8d3
VS
34916 grep -v '^ *+' conftest.er1 >conftest.err
34917 rm -f conftest.er1
34918 cat conftest.err >&5
a848cd7e
SC
34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34920 (exit $ac_status); } &&
7714864e 34921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34923 (eval $ac_try) 2>&5
34924 ac_status=$?
34925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34926 (exit $ac_status); }; } &&
34927 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34929 (eval $ac_try) 2>&5
34930 ac_status=$?
34931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34932 (exit $ac_status); }; }; then
34933
34934 wx_cv_struct_tm_has_gmtoff=yes
34935
34936else
34937 echo "$as_me: failed program was:" >&5
34938sed 's/^/| /' conftest.$ac_ext >&5
34939
34940wx_cv_struct_tm_has_gmtoff=no
34941
34942fi
ac1cb8d3 34943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34944
34945fi
34946echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
34947echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
34948 fi
34949
34950 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
34951 cat >>confdefs.h <<\_ACEOF
34952#define WX_GMTOFF_IN_TM 1
34953_ACEOF
34954
34955 fi
34956
34957
34958
34959for ac_func in gettimeofday ftime
34960do
34961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34962echo "$as_me:$LINENO: checking for $ac_func" >&5
34963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34964if eval "test \"\${$as_ac_var+set}\" = set"; then
34965 echo $ECHO_N "(cached) $ECHO_C" >&6
34966else
34967 cat >conftest.$ac_ext <<_ACEOF
34968/* confdefs.h. */
34969_ACEOF
34970cat confdefs.h >>conftest.$ac_ext
34971cat >>conftest.$ac_ext <<_ACEOF
34972/* end confdefs.h. */
ac1cb8d3
VS
34973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34975#define $ac_func innocuous_$ac_func
34976
a848cd7e
SC
34977/* System header to define __stub macros and hopefully few prototypes,
34978 which can conflict with char $ac_func (); below.
34979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34980 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34981
a848cd7e
SC
34982#ifdef __STDC__
34983# include <limits.h>
34984#else
34985# include <assert.h>
34986#endif
ac1cb8d3
VS
34987
34988#undef $ac_func
34989
a848cd7e
SC
34990/* Override any gcc2 internal prototype to avoid an error. */
34991#ifdef __cplusplus
34992extern "C"
34993{
34994#endif
34995/* We use char because int might match the return type of a gcc2
34996 builtin and then its argument prototype would still apply. */
34997char $ac_func ();
34998/* The GNU C library defines this for functions which it implements
34999 to always fail with ENOSYS. Some functions are actually named
35000 something starting with __ and the normal name is an alias. */
35001#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35002choke me
35003#else
35004char (*f) () = $ac_func;
35005#endif
35006#ifdef __cplusplus
35007}
35008#endif
35009
35010int
35011main ()
35012{
35013return f != $ac_func;
35014 ;
35015 return 0;
35016}
35017_ACEOF
35018rm -f conftest.$ac_objext conftest$ac_exeext
35019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35020 (eval $ac_link) 2>conftest.er1
a848cd7e 35021 ac_status=$?
ac1cb8d3
VS
35022 grep -v '^ *+' conftest.er1 >conftest.err
35023 rm -f conftest.er1
35024 cat conftest.err >&5
a848cd7e
SC
35025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35026 (exit $ac_status); } &&
7714864e 35027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35029 (eval $ac_try) 2>&5
35030 ac_status=$?
35031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35032 (exit $ac_status); }; } &&
35033 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35035 (eval $ac_try) 2>&5
35036 ac_status=$?
35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35038 (exit $ac_status); }; }; then
35039 eval "$as_ac_var=yes"
35040else
35041 echo "$as_me: failed program was:" >&5
35042sed 's/^/| /' conftest.$ac_ext >&5
35043
35044eval "$as_ac_var=no"
35045fi
ac1cb8d3
VS
35046rm -f conftest.err conftest.$ac_objext \
35047 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35048fi
35049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35050echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35051if test `eval echo '${'$as_ac_var'}'` = yes; then
35052 cat >>confdefs.h <<_ACEOF
35053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35054_ACEOF
35055 break
35056fi
35057done
35058
35059
35060 if test "$ac_cv_func_gettimeofday" = "yes"; then
35061 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35062echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35063if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35064 echo $ECHO_N "(cached) $ECHO_C" >&6
35065else
35066
35067
35068
35069 ac_ext=cc
35070ac_cpp='$CXXCPP $CPPFLAGS'
35071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35074
35075
35076 cat >conftest.$ac_ext <<_ACEOF
35077/* confdefs.h. */
35078_ACEOF
35079cat confdefs.h >>conftest.$ac_ext
35080cat >>conftest.$ac_ext <<_ACEOF
35081/* end confdefs.h. */
35082
35083 #include <sys/time.h>
35084 #include <unistd.h>
35085
35086int
35087main ()
35088{
35089
35090 struct timeval tv;
35091 gettimeofday(&tv, NULL);
35092
35093 ;
35094 return 0;
35095}
35096_ACEOF
35097rm -f conftest.$ac_objext
35098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35099 (eval $ac_compile) 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); } &&
7714864e 35106 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35108 (eval $ac_try) 2>&5
35109 ac_status=$?
35110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35111 (exit $ac_status); }; } &&
35112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35114 (eval $ac_try) 2>&5
35115 ac_status=$?
35116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35117 (exit $ac_status); }; }; then
35118 wx_cv_func_gettimeofday_has_2_args=yes
35119else
35120 echo "$as_me: failed program was:" >&5
35121sed 's/^/| /' conftest.$ac_ext >&5
35122
35123cat >conftest.$ac_ext <<_ACEOF
35124/* confdefs.h. */
35125_ACEOF
35126cat confdefs.h >>conftest.$ac_ext
35127cat >>conftest.$ac_ext <<_ACEOF
35128/* end confdefs.h. */
35129
35130 #include <sys/time.h>
35131 #include <unistd.h>
35132
35133int
35134main ()
35135{
35136
35137 struct timeval tv;
35138 gettimeofday(&tv);
35139
35140 ;
35141 return 0;
35142}
35143_ACEOF
35144rm -f conftest.$ac_objext
35145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35146 (eval $ac_compile) 2>conftest.er1
a848cd7e 35147 ac_status=$?
ac1cb8d3
VS
35148 grep -v '^ *+' conftest.er1 >conftest.err
35149 rm -f conftest.er1
35150 cat conftest.err >&5
a848cd7e
SC
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); } &&
7714864e 35153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35155 (eval $ac_try) 2>&5
35156 ac_status=$?
35157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35158 (exit $ac_status); }; } &&
35159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35161 (eval $ac_try) 2>&5
35162 ac_status=$?
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); }; }; then
35165 wx_cv_func_gettimeofday_has_2_args=no
35166else
35167 echo "$as_me: failed program was:" >&5
35168sed 's/^/| /' conftest.$ac_ext >&5
35169
35170
35171 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35172echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35173 wx_cv_func_gettimeofday_has_2_args=unknown
35174
35175
35176fi
ac1cb8d3 35177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35178
35179fi
ac1cb8d3 35180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35181 ac_ext=c
35182ac_cpp='$CPP $CPPFLAGS'
35183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35185ac_compiler_gnu=$ac_cv_c_compiler_gnu
35186
35187
35188fi
35189echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35190echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35191
35192 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35193 cat >>confdefs.h <<\_ACEOF
35194#define WX_GETTIMEOFDAY_NO_TZ 1
35195_ACEOF
35196
35197 fi
35198 fi
35199
35200 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35201fi
35202
35203
35204if test "$wxUSE_SOCKETS" = "yes"; then
35205 if test "$wxUSE_MGL" = "1"; then
35206 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35207echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35208 wxUSE_SOCKETS="no"
35209 fi
35210fi
35211
35212if test "$wxUSE_SOCKETS" = "yes"; then
35213 if test "$TOOLKIT" != "MSW"; then
35214 echo "$as_me:$LINENO: checking for socket" >&5
35215echo $ECHO_N "checking for socket... $ECHO_C" >&6
35216if test "${ac_cv_func_socket+set}" = set; then
35217 echo $ECHO_N "(cached) $ECHO_C" >&6
35218else
35219 cat >conftest.$ac_ext <<_ACEOF
35220/* confdefs.h. */
35221_ACEOF
35222cat confdefs.h >>conftest.$ac_ext
35223cat >>conftest.$ac_ext <<_ACEOF
35224/* end confdefs.h. */
ac1cb8d3
VS
35225/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35227#define socket innocuous_socket
35228
a848cd7e
SC
35229/* System header to define __stub macros and hopefully few prototypes,
35230 which can conflict with char socket (); below.
35231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35232 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35233
a848cd7e
SC
35234#ifdef __STDC__
35235# include <limits.h>
35236#else
35237# include <assert.h>
35238#endif
ac1cb8d3
VS
35239
35240#undef socket
35241
a848cd7e
SC
35242/* Override any gcc2 internal prototype to avoid an error. */
35243#ifdef __cplusplus
35244extern "C"
35245{
35246#endif
35247/* We use char because int might match the return type of a gcc2
35248 builtin and then its argument prototype would still apply. */
35249char socket ();
35250/* The GNU C library defines this for functions which it implements
35251 to always fail with ENOSYS. Some functions are actually named
35252 something starting with __ and the normal name is an alias. */
35253#if defined (__stub_socket) || defined (__stub___socket)
35254choke me
35255#else
35256char (*f) () = socket;
35257#endif
35258#ifdef __cplusplus
35259}
35260#endif
35261
35262int
35263main ()
35264{
35265return f != socket;
35266 ;
35267 return 0;
35268}
35269_ACEOF
35270rm -f conftest.$ac_objext conftest$ac_exeext
35271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35272 (eval $ac_link) 2>conftest.er1
a848cd7e 35273 ac_status=$?
ac1cb8d3
VS
35274 grep -v '^ *+' conftest.er1 >conftest.err
35275 rm -f conftest.er1
35276 cat conftest.err >&5
a848cd7e
SC
35277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35278 (exit $ac_status); } &&
7714864e 35279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35281 (eval $ac_try) 2>&5
35282 ac_status=$?
35283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284 (exit $ac_status); }; } &&
35285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35287 (eval $ac_try) 2>&5
35288 ac_status=$?
35289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35290 (exit $ac_status); }; }; then
35291 ac_cv_func_socket=yes
35292else
35293 echo "$as_me: failed program was:" >&5
35294sed 's/^/| /' conftest.$ac_ext >&5
35295
35296ac_cv_func_socket=no
35297fi
ac1cb8d3
VS
35298rm -f conftest.err conftest.$ac_objext \
35299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35300fi
35301echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35302echo "${ECHO_T}$ac_cv_func_socket" >&6
35303if test $ac_cv_func_socket = yes; then
35304 :
35305else
35306
35307 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35308echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35309if test "${ac_cv_lib_socket_socket+set}" = set; then
35310 echo $ECHO_N "(cached) $ECHO_C" >&6
35311else
35312 ac_check_lib_save_LIBS=$LIBS
35313LIBS="-lsocket $LIBS"
35314cat >conftest.$ac_ext <<_ACEOF
35315/* confdefs.h. */
35316_ACEOF
35317cat confdefs.h >>conftest.$ac_ext
35318cat >>conftest.$ac_ext <<_ACEOF
35319/* end confdefs.h. */
35320
35321/* Override any gcc2 internal prototype to avoid an error. */
35322#ifdef __cplusplus
35323extern "C"
35324#endif
35325/* We use char because int might match the return type of a gcc2
35326 builtin and then its argument prototype would still apply. */
35327char socket ();
35328int
35329main ()
35330{
35331socket ();
35332 ;
35333 return 0;
35334}
35335_ACEOF
35336rm -f conftest.$ac_objext conftest$ac_exeext
35337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35338 (eval $ac_link) 2>conftest.er1
a848cd7e 35339 ac_status=$?
ac1cb8d3
VS
35340 grep -v '^ *+' conftest.er1 >conftest.err
35341 rm -f conftest.er1
35342 cat conftest.err >&5
a848cd7e
SC
35343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344 (exit $ac_status); } &&
7714864e 35345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35347 (eval $ac_try) 2>&5
35348 ac_status=$?
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); }; } &&
35351 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35353 (eval $ac_try) 2>&5
35354 ac_status=$?
35355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35356 (exit $ac_status); }; }; then
35357 ac_cv_lib_socket_socket=yes
35358else
35359 echo "$as_me: failed program was:" >&5
35360sed 's/^/| /' conftest.$ac_ext >&5
35361
35362ac_cv_lib_socket_socket=no
35363fi
ac1cb8d3
VS
35364rm -f conftest.err conftest.$ac_objext \
35365 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35366LIBS=$ac_check_lib_save_LIBS
35367fi
35368echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35369echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35370if test $ac_cv_lib_socket_socket = yes; then
35371 if test "$INET_LINK" != " -lsocket"; then
35372 INET_LINK="$INET_LINK -lsocket"
35373 fi
35374else
35375
35376 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35377echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35378 wxUSE_SOCKETS=no
35379
35380
35381fi
35382
35383
35384
35385fi
35386
35387 fi
35388fi
35389
35390if test "$wxUSE_SOCKETS" = "yes" ; then
35391 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35392 ac_ext=cc
35393ac_cpp='$CXXCPP $CPPFLAGS'
35394ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35395ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35396ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35397
35398 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35399echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35400if test "${wx_cv_type_getsockname3+set}" = set; then
35401 echo $ECHO_N "(cached) $ECHO_C" >&6
35402else
35403
35404 cat >conftest.$ac_ext <<_ACEOF
35405/* confdefs.h. */
35406_ACEOF
35407cat confdefs.h >>conftest.$ac_ext
35408cat >>conftest.$ac_ext <<_ACEOF
35409/* end confdefs.h. */
35410
35411 #include <sys/types.h>
35412 #include <sys/socket.h>
35413
35414int
35415main ()
35416{
35417
35418 socklen_t len;
35419 getsockname(0, 0, &len);
35420
35421 ;
35422 return 0;
35423}
35424_ACEOF
35425rm -f conftest.$ac_objext
35426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35427 (eval $ac_compile) 2>conftest.er1
a848cd7e 35428 ac_status=$?
ac1cb8d3
VS
35429 grep -v '^ *+' conftest.er1 >conftest.err
35430 rm -f conftest.er1
35431 cat conftest.err >&5
a848cd7e
SC
35432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35433 (exit $ac_status); } &&
7714864e 35434 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35436 (eval $ac_try) 2>&5
35437 ac_status=$?
35438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35439 (exit $ac_status); }; } &&
35440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35442 (eval $ac_try) 2>&5
35443 ac_status=$?
35444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35445 (exit $ac_status); }; }; then
35446 wx_cv_type_getsockname3=socklen_t
35447else
35448 echo "$as_me: failed program was:" >&5
35449sed 's/^/| /' conftest.$ac_ext >&5
35450
35451
35452 CFLAGS_OLD="$CFLAGS"
35453 if test "$GCC" = yes ; then
35454 CFLAGS="$CFLAGS -Werror"
35455 fi
35456
35457 cat >conftest.$ac_ext <<_ACEOF
35458/* confdefs.h. */
35459_ACEOF
35460cat confdefs.h >>conftest.$ac_ext
35461cat >>conftest.$ac_ext <<_ACEOF
35462/* end confdefs.h. */
35463
35464 #include <sys/types.h>
35465 #include <sys/socket.h>
35466
35467int
35468main ()
35469{
35470
35471 size_t len;
35472 getsockname(0, 0, &len);
35473
35474 ;
35475 return 0;
35476}
35477_ACEOF
35478rm -f conftest.$ac_objext
35479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35480 (eval $ac_compile) 2>conftest.er1
a848cd7e 35481 ac_status=$?
ac1cb8d3
VS
35482 grep -v '^ *+' conftest.er1 >conftest.err
35483 rm -f conftest.er1
35484 cat conftest.err >&5
a848cd7e
SC
35485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35486 (exit $ac_status); } &&
7714864e 35487 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35489 (eval $ac_try) 2>&5
35490 ac_status=$?
35491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35492 (exit $ac_status); }; } &&
35493 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35495 (eval $ac_try) 2>&5
35496 ac_status=$?
35497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35498 (exit $ac_status); }; }; then
35499 wx_cv_type_getsockname3=size_t
35500else
35501 echo "$as_me: failed program was:" >&5
35502sed 's/^/| /' conftest.$ac_ext >&5
35503
35504cat >conftest.$ac_ext <<_ACEOF
35505/* confdefs.h. */
35506_ACEOF
35507cat confdefs.h >>conftest.$ac_ext
35508cat >>conftest.$ac_ext <<_ACEOF
35509/* end confdefs.h. */
35510
35511 #include <sys/types.h>
35512 #include <sys/socket.h>
35513
35514int
35515main ()
35516{
35517
35518 int len;
35519 getsockname(0, 0, &len);
35520
35521 ;
35522 return 0;
35523}
35524_ACEOF
35525rm -f conftest.$ac_objext
35526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35527 (eval $ac_compile) 2>conftest.er1
a848cd7e 35528 ac_status=$?
ac1cb8d3
VS
35529 grep -v '^ *+' conftest.er1 >conftest.err
35530 rm -f conftest.er1
35531 cat conftest.err >&5
a848cd7e
SC
35532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35533 (exit $ac_status); } &&
7714864e 35534 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35536 (eval $ac_try) 2>&5
35537 ac_status=$?
35538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35539 (exit $ac_status); }; } &&
35540 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35542 (eval $ac_try) 2>&5
35543 ac_status=$?
35544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35545 (exit $ac_status); }; }; then
35546 wx_cv_type_getsockname3=int
35547else
35548 echo "$as_me: failed program was:" >&5
35549sed 's/^/| /' conftest.$ac_ext >&5
35550
35551wx_cv_type_getsockname3=unknown
35552
35553fi
ac1cb8d3 35554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35555
35556fi
ac1cb8d3 35557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35558
35559 CFLAGS="$CFLAGS_OLD"
35560
35561
35562fi
ac1cb8d3 35563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35564
35565fi
35566echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35567echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35568
35569 if test "$wx_cv_type_getsockname3" = "unknown"; then
35570 wxUSE_SOCKETS=no
35571 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35572echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35573 else
35574 cat >>confdefs.h <<_ACEOF
35575#define SOCKLEN_T $wx_cv_type_getsockname3
35576_ACEOF
35577
35578 fi
4d4ff94c
VZ
35579 ac_ext=c
35580ac_cpp='$CPP $CPPFLAGS'
35581ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35582ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35583ac_compiler_gnu=$ac_cv_c_compiler_gnu
35584
a848cd7e
SC
35585 fi
35586fi
35587
35588if test "$wxUSE_SOCKETS" = "yes" ; then
35589 cat >>confdefs.h <<\_ACEOF
35590#define wxUSE_SOCKETS 1
35591_ACEOF
35592
35593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35594fi
35595
35596if test "$wxUSE_PROTOCOL" = "yes"; then
35597 if test "$wxUSE_SOCKETS" != "yes"; then
35598 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35599echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35600 wxUSE_PROTOCOL=no
35601 fi
35602fi
35603
35604if test "$wxUSE_PROTOCOL" = "yes"; then
35605 cat >>confdefs.h <<\_ACEOF
35606#define wxUSE_PROTOCOL 1
35607_ACEOF
35608
35609
35610 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35611 cat >>confdefs.h <<\_ACEOF
35612#define wxUSE_PROTOCOL_HTTP 1
35613_ACEOF
35614
35615 fi
35616 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35617 cat >>confdefs.h <<\_ACEOF
35618#define wxUSE_PROTOCOL_FTP 1
35619_ACEOF
35620
35621 fi
35622 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35623 cat >>confdefs.h <<\_ACEOF
35624#define wxUSE_PROTOCOL_FILE 1
35625_ACEOF
35626
35627 fi
35628else
35629 if test "$wxUSE_FS_INET" = "yes"; then
35630 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35631echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35632 wxUSE_FS_INET="no"
35633 fi
35634fi
35635
35636if test "$wxUSE_URL" = "yes"; then
35637 if test "$wxUSE_PROTOCOL" != "yes"; then
35638 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35639echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35640 wxUSE_URL=no
35641 fi
35642 if test "$wxUSE_URL" = "yes"; then
35643 cat >>confdefs.h <<\_ACEOF
35644#define wxUSE_URL 1
35645_ACEOF
35646
35647 fi
35648fi
35649
35650if test "$wxUSE_FS_INET" = "yes"; then
35651 cat >>confdefs.h <<\_ACEOF
35652#define wxUSE_FS_INET 1
35653_ACEOF
35654
35655fi
35656
35657
35658if test "$wxUSE_GUI" = "yes"; then
35659
35660 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35661 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35662echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35663 wxUSE_JOYSTICK=no
35664 fi
35665
35666 if test "$TOOLKIT" != "MSW"; then
35667 if test "$wxUSE_JOYSTICK" = "yes"; then
35668
35669for ac_header in linux/joystick.h
35670do
35671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35672if eval "test \"\${$as_ac_Header+set}\" = set"; then
35673 echo "$as_me:$LINENO: checking for $ac_header" >&5
35674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35675if eval "test \"\${$as_ac_Header+set}\" = set"; then
35676 echo $ECHO_N "(cached) $ECHO_C" >&6
35677fi
35678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35680else
35681 # Is the header compilable?
35682echo "$as_me:$LINENO: checking $ac_header usability" >&5
35683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35684cat >conftest.$ac_ext <<_ACEOF
35685/* confdefs.h. */
35686_ACEOF
35687cat confdefs.h >>conftest.$ac_ext
35688cat >>conftest.$ac_ext <<_ACEOF
35689/* end confdefs.h. */
35690$ac_includes_default
35691#include <$ac_header>
35692_ACEOF
35693rm -f conftest.$ac_objext
35694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35695 (eval $ac_compile) 2>conftest.er1
a848cd7e 35696 ac_status=$?
ac1cb8d3
VS
35697 grep -v '^ *+' conftest.er1 >conftest.err
35698 rm -f conftest.er1
35699 cat conftest.err >&5
a848cd7e
SC
35700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35701 (exit $ac_status); } &&
7714864e 35702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35704 (eval $ac_try) 2>&5
35705 ac_status=$?
35706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707 (exit $ac_status); }; } &&
35708 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35710 (eval $ac_try) 2>&5
35711 ac_status=$?
35712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35713 (exit $ac_status); }; }; then
35714 ac_header_compiler=yes
35715else
35716 echo "$as_me: failed program was:" >&5
35717sed 's/^/| /' conftest.$ac_ext >&5
35718
35719ac_header_compiler=no
35720fi
ac1cb8d3 35721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35722echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35723echo "${ECHO_T}$ac_header_compiler" >&6
35724
35725# Is the header present?
35726echo "$as_me:$LINENO: checking $ac_header presence" >&5
35727echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35728cat >conftest.$ac_ext <<_ACEOF
35729/* confdefs.h. */
35730_ACEOF
35731cat confdefs.h >>conftest.$ac_ext
35732cat >>conftest.$ac_ext <<_ACEOF
35733/* end confdefs.h. */
35734#include <$ac_header>
35735_ACEOF
35736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35738 ac_status=$?
35739 grep -v '^ *+' conftest.er1 >conftest.err
35740 rm -f conftest.er1
35741 cat conftest.err >&5
35742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 (exit $ac_status); } >/dev/null; then
35744 if test -s conftest.err; then
35745 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35747 else
35748 ac_cpp_err=
35749 fi
35750else
35751 ac_cpp_err=yes
35752fi
35753if test -z "$ac_cpp_err"; then
35754 ac_header_preproc=yes
35755else
35756 echo "$as_me: failed program was:" >&5
35757sed 's/^/| /' conftest.$ac_ext >&5
35758
35759 ac_header_preproc=no
35760fi
35761rm -f conftest.err conftest.$ac_ext
35762echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35763echo "${ECHO_T}$ac_header_preproc" >&6
35764
35765# So? What about this header?
ac1cb8d3
VS
35766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35767 yes:no: )
a848cd7e
SC
35768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35769echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35771echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35772 ac_header_preproc=yes
a848cd7e 35773 ;;
ac1cb8d3 35774 no:yes:* )
a848cd7e
SC
35775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35778echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35780echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35782echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35786echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35787 (
35788 cat <<\_ASBOX
ac1cb8d3
VS
35789## ----------------------------------------- ##
35790## Report this to wx-dev@lists.wxwidgets.org ##
35791## ----------------------------------------- ##
a848cd7e
SC
35792_ASBOX
35793 ) |
35794 sed "s/^/$as_me: WARNING: /" >&2
35795 ;;
35796esac
35797echo "$as_me:$LINENO: checking for $ac_header" >&5
35798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35799if eval "test \"\${$as_ac_Header+set}\" = set"; then
35800 echo $ECHO_N "(cached) $ECHO_C" >&6
35801else
ac1cb8d3 35802 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35803fi
35804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35806
35807fi
35808if test `eval echo '${'$as_ac_Header'}'` = yes; then
35809 cat >>confdefs.h <<_ACEOF
35810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35811_ACEOF
35812
35813fi
35814
35815done
35816
35817 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35818 wxUSE_JOYSTICK=no
35819 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35820echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35821 fi
35822 fi
35823 fi
35824
35825 if test "$wxUSE_JOYSTICK" = "yes"; then
35826 cat >>confdefs.h <<\_ACEOF
35827#define wxUSE_JOYSTICK 1
35828_ACEOF
35829
35830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35831 fi
35832fi
35833
35834
35835
35836if test "$wxUSE_FONTMAP" = "yes" ; then
35837 cat >>confdefs.h <<\_ACEOF
35838#define wxUSE_FONTMAP 1
35839_ACEOF
35840
35841fi
35842
35843if test "$wxUSE_UNICODE" = "yes" ; then
35844 cat >>confdefs.h <<\_ACEOF
35845#define wxUSE_UNICODE 1
35846_ACEOF
35847
35848
35849 if test "$USE_WIN32" != 1; then
35850 wxUSE_UNICODE_MSLU=no
35851 fi
35852
35853 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35854 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35855echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35856if test "${ac_cv_lib_unicows_main+set}" = set; then
35857 echo $ECHO_N "(cached) $ECHO_C" >&6
35858else
35859 ac_check_lib_save_LIBS=$LIBS
35860LIBS="-lunicows $LIBS"
35861cat >conftest.$ac_ext <<_ACEOF
35862/* confdefs.h. */
35863_ACEOF
35864cat confdefs.h >>conftest.$ac_ext
35865cat >>conftest.$ac_ext <<_ACEOF
35866/* end confdefs.h. */
35867
35868
35869int
35870main ()
35871{
35872main ();
35873 ;
35874 return 0;
35875}
35876_ACEOF
35877rm -f conftest.$ac_objext conftest$ac_exeext
35878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35879 (eval $ac_link) 2>conftest.er1
a848cd7e 35880 ac_status=$?
ac1cb8d3
VS
35881 grep -v '^ *+' conftest.er1 >conftest.err
35882 rm -f conftest.er1
35883 cat conftest.err >&5
a848cd7e
SC
35884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885 (exit $ac_status); } &&
7714864e 35886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35888 (eval $ac_try) 2>&5
35889 ac_status=$?
35890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891 (exit $ac_status); }; } &&
35892 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35894 (eval $ac_try) 2>&5
35895 ac_status=$?
35896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35897 (exit $ac_status); }; }; then
35898 ac_cv_lib_unicows_main=yes
35899else
35900 echo "$as_me: failed program was:" >&5
35901sed 's/^/| /' conftest.$ac_ext >&5
35902
35903ac_cv_lib_unicows_main=no
35904fi
ac1cb8d3
VS
35905rm -f conftest.err conftest.$ac_objext \
35906 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35907LIBS=$ac_check_lib_save_LIBS
35908fi
35909echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35910echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35911if test $ac_cv_lib_unicows_main = yes; then
35912
35913 cat >>confdefs.h <<\_ACEOF
35914#define wxUSE_UNICODE_MSLU 1
35915_ACEOF
35916
35917
35918else
35919
35920 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35921 Applications will only run on Windows NT/2000/XP!" >&5
35922echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35923 Applications will only run on Windows NT/2000/XP!" >&2;}
35924 wxUSE_UNICODE_MSLU=no
35925
35926fi
35927
35928 fi
35929fi
35930
35931if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
35932 cat >>confdefs.h <<\_ACEOF
35933#define wxUSE_EXPERIMENTAL_PRINTF 1
35934_ACEOF
35935
35936fi
35937
35938
35939if test "$wxUSE_POSTSCRIPT" = "yes" ; then
35940 cat >>confdefs.h <<\_ACEOF
35941#define wxUSE_POSTSCRIPT 1
35942_ACEOF
35943
35944fi
35945
35946cat >>confdefs.h <<\_ACEOF
35947#define wxUSE_AFM_FOR_POSTSCRIPT 1
35948_ACEOF
35949
35950
35951cat >>confdefs.h <<\_ACEOF
35952#define wxUSE_NORMALIZED_PS_FONTS 1
35953_ACEOF
35954
35955
35956
35957if test "$wxUSE_CONSTRAINTS" = "yes"; then
35958 cat >>confdefs.h <<\_ACEOF
35959#define wxUSE_CONSTRAINTS 1
35960_ACEOF
35961
35962 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35963fi
35964
8a7b1113
VZ
35965if test "$wxUSE_MDI" = "yes"; then
35966 cat >>confdefs.h <<\_ACEOF
35967#define wxUSE_MDI 1
35968_ACEOF
35969
35970
35971 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35972 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35973#define wxUSE_MDI_ARCHITECTURE 1
35974_ACEOF
35975
8a7b1113
VZ
35976 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
35977 fi
a848cd7e
SC
35978fi
35979
35980if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
35981 cat >>confdefs.h <<\_ACEOF
35982#define wxUSE_DOC_VIEW_ARCHITECTURE 1
35983_ACEOF
35984
35985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35986 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35988 fi
35989fi
35990
35991if test "$wxUSE_HELP" = "yes"; then
35992 cat >>confdefs.h <<\_ACEOF
35993#define wxUSE_HELP 1
35994_ACEOF
35995
35996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
35997
35998 if test "$wxUSE_MSW" = 1; then
35999 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
36000 cat >>confdefs.h <<\_ACEOF
36001#define wxUSE_MS_HTML_HELP 1
36002_ACEOF
36003
36004 fi
36005 fi
36006
36007 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36008 if test "$wxUSE_HTML" = "yes"; then
36009 cat >>confdefs.h <<\_ACEOF
36010#define wxUSE_WXHTML_HELP 1
36011_ACEOF
36012
36013 else
36014 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36015echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36016 wxUSE_WXHTML_HELP=no
36017 fi
36018 fi
36019fi
36020
36021if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36022 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36023 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36024echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36025 else
36026 cat >>confdefs.h <<\_ACEOF
36027#define wxUSE_PRINTING_ARCHITECTURE 1
36028_ACEOF
36029
36030 fi
36031 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36032fi
36033
36034if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36035 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36036echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36037 { (exit 1); exit 1; }; }
36038fi
36039
36040
36041if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36042 -o "$wxUSE_CLIPBOARD" = "yes" \
36043 -o "$wxUSE_OLE" = "yes" \
36044 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36045
36046for ac_header in ole2.h
36047do
36048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36049if eval "test \"\${$as_ac_Header+set}\" = set"; then
36050 echo "$as_me:$LINENO: checking for $ac_header" >&5
36051echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36052if eval "test \"\${$as_ac_Header+set}\" = set"; then
36053 echo $ECHO_N "(cached) $ECHO_C" >&6
36054fi
36055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36056echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36057else
36058 # Is the header compilable?
36059echo "$as_me:$LINENO: checking $ac_header usability" >&5
36060echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36061cat >conftest.$ac_ext <<_ACEOF
36062/* confdefs.h. */
36063_ACEOF
36064cat confdefs.h >>conftest.$ac_ext
36065cat >>conftest.$ac_ext <<_ACEOF
36066/* end confdefs.h. */
36067$ac_includes_default
36068#include <$ac_header>
36069_ACEOF
36070rm -f conftest.$ac_objext
36071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36072 (eval $ac_compile) 2>conftest.er1
a848cd7e 36073 ac_status=$?
ac1cb8d3
VS
36074 grep -v '^ *+' conftest.er1 >conftest.err
36075 rm -f conftest.er1
36076 cat conftest.err >&5
a848cd7e
SC
36077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36078 (exit $ac_status); } &&
7714864e 36079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36081 (eval $ac_try) 2>&5
36082 ac_status=$?
36083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36084 (exit $ac_status); }; } &&
36085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36087 (eval $ac_try) 2>&5
36088 ac_status=$?
36089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36090 (exit $ac_status); }; }; then
36091 ac_header_compiler=yes
36092else
36093 echo "$as_me: failed program was:" >&5
36094sed 's/^/| /' conftest.$ac_ext >&5
36095
36096ac_header_compiler=no
36097fi
ac1cb8d3 36098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36099echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36100echo "${ECHO_T}$ac_header_compiler" >&6
36101
36102# Is the header present?
36103echo "$as_me:$LINENO: checking $ac_header presence" >&5
36104echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36105cat >conftest.$ac_ext <<_ACEOF
36106/* confdefs.h. */
36107_ACEOF
36108cat confdefs.h >>conftest.$ac_ext
36109cat >>conftest.$ac_ext <<_ACEOF
36110/* end confdefs.h. */
36111#include <$ac_header>
36112_ACEOF
36113if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36115 ac_status=$?
36116 grep -v '^ *+' conftest.er1 >conftest.err
36117 rm -f conftest.er1
36118 cat conftest.err >&5
36119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36120 (exit $ac_status); } >/dev/null; then
36121 if test -s conftest.err; then
36122 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36124 else
36125 ac_cpp_err=
36126 fi
36127else
36128 ac_cpp_err=yes
36129fi
36130if test -z "$ac_cpp_err"; then
36131 ac_header_preproc=yes
36132else
36133 echo "$as_me: failed program was:" >&5
36134sed 's/^/| /' conftest.$ac_ext >&5
36135
36136 ac_header_preproc=no
36137fi
36138rm -f conftest.err conftest.$ac_ext
36139echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36140echo "${ECHO_T}$ac_header_preproc" >&6
36141
36142# So? What about this header?
ac1cb8d3
VS
36143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36144 yes:no: )
a848cd7e
SC
36145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36149 ac_header_preproc=yes
a848cd7e 36150 ;;
ac1cb8d3 36151 no:yes:* )
a848cd7e
SC
36152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36155echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36159echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36164 (
36165 cat <<\_ASBOX
ac1cb8d3
VS
36166## ----------------------------------------- ##
36167## Report this to wx-dev@lists.wxwidgets.org ##
36168## ----------------------------------------- ##
a848cd7e
SC
36169_ASBOX
36170 ) |
36171 sed "s/^/$as_me: WARNING: /" >&2
36172 ;;
36173esac
36174echo "$as_me:$LINENO: checking for $ac_header" >&5
36175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36176if eval "test \"\${$as_ac_Header+set}\" = set"; then
36177 echo $ECHO_N "(cached) $ECHO_C" >&6
36178else
ac1cb8d3 36179 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36180fi
36181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36182echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36183
36184fi
36185if test `eval echo '${'$as_ac_Header'}'` = yes; then
36186 cat >>confdefs.h <<_ACEOF
36187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36188_ACEOF
36189
36190fi
36191
36192done
36193
36194
36195 if test "$ac_cv_header_ole2_h" = "yes" ; then
36196 if test "$GCC" = yes ; then
36197
36198
36199 ac_ext=cc
36200ac_cpp='$CXXCPP $CPPFLAGS'
36201ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36202ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36203ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36204
36205
36206 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36207echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36208 cat >conftest.$ac_ext <<_ACEOF
36209/* confdefs.h. */
36210_ACEOF
36211cat confdefs.h >>conftest.$ac_ext
36212cat >>conftest.$ac_ext <<_ACEOF
36213/* end confdefs.h. */
36214#include <windows.h>
36215 #include <ole2.h>
36216int
36217main ()
36218{
36219
36220 ;
36221 return 0;
36222}
36223_ACEOF
36224rm -f conftest.$ac_objext
36225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36226 (eval $ac_compile) 2>conftest.er1
a848cd7e 36227 ac_status=$?
ac1cb8d3
VS
36228 grep -v '^ *+' conftest.er1 >conftest.err
36229 rm -f conftest.er1
36230 cat conftest.err >&5
a848cd7e
SC
36231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36232 (exit $ac_status); } &&
7714864e 36233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36235 (eval $ac_try) 2>&5
36236 ac_status=$?
36237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36238 (exit $ac_status); }; } &&
36239 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36241 (eval $ac_try) 2>&5
36242 ac_status=$?
36243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36244 (exit $ac_status); }; }; then
36245 echo "$as_me:$LINENO: result: no" >&5
36246echo "${ECHO_T}no" >&6
36247else
36248 echo "$as_me: failed program was:" >&5
36249sed 's/^/| /' conftest.$ac_ext >&5
36250
36251echo "$as_me:$LINENO: result: yes" >&5
36252echo "${ECHO_T}yes" >&6
36253 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36254fi
ac1cb8d3 36255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36256 ac_ext=c
36257ac_cpp='$CPP $CPPFLAGS'
36258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36260ac_compiler_gnu=$ac_cv_c_compiler_gnu
36261
a848cd7e
SC
36262 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36263 if test "$wxUSE_OLE" = "yes" ; then
36264 cat >>confdefs.h <<\_ACEOF
36265#define wxUSE_OLE 1
36266_ACEOF
36267
36268 fi
36269 fi
36270
36271 if test "$wxUSE_DATAOBJ" = "yes" ; then
36272 cat >>confdefs.h <<\_ACEOF
36273#define wxUSE_DATAOBJ 1
36274_ACEOF
36275
36276 fi
36277 else
36278 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36279echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36280
36281 wxUSE_CLIPBOARD=no
36282 wxUSE_DRAG_AND_DROP=no
36283 wxUSE_DATAOBJ=no
36284 wxUSE_OLE=no
36285 fi
36286
36287 if test "$wxUSE_METAFILE" = "yes"; then
36288 cat >>confdefs.h <<\_ACEOF
36289#define wxUSE_METAFILE 1
36290_ACEOF
36291
36292
36293 cat >>confdefs.h <<\_ACEOF
36294#define wxUSE_ENH_METAFILE 1
36295_ACEOF
36296
36297 fi
36298fi
36299
36300if test "$wxUSE_IPC" = "yes"; then
36301 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36302 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36303echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36304 fi
36305
36306 cat >>confdefs.h <<\_ACEOF
36307#define wxUSE_IPC 1
36308_ACEOF
36309
36310fi
36311
36312if test "$wxUSE_CLIPBOARD" = "yes"; then
36313 if test "$wxUSE_MGL" = 1; then
36314 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36315echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36316 wxUSE_CLIPBOARD=no
36317 fi
36318
36319 if test "$wxUSE_CLIPBOARD" = "yes"; then
36320 cat >>confdefs.h <<\_ACEOF
36321#define wxUSE_CLIPBOARD 1
36322_ACEOF
36323
36324
36325 cat >>confdefs.h <<\_ACEOF
36326#define wxUSE_DATAOBJ 1
36327_ACEOF
36328
36329 fi
36330fi
36331
36332if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36333 if test "$wxUSE_GTK" = 1; then
36334 if test "$WXGTK12" != 1; then
36335 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36336echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36337 wxUSE_DRAG_AND_DROP=no
36338 fi
36339 fi
36340
36341 if test "$wxUSE_MOTIF" = 1; then
36342 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36343echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36344 wxUSE_DRAG_AND_DROP=no
36345 fi
36346
36347 if test "$wxUSE_X11" = 1; then
36348 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36349echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36350 wxUSE_DRAG_AND_DROP=no
36351 fi
36352
36353 if test "$wxUSE_MGL" = 1; then
36354 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36355echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36356 wxUSE_DRAG_AND_DROP=no
36357 fi
36358
36359 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36360 cat >>confdefs.h <<\_ACEOF
36361#define wxUSE_DRAG_AND_DROP 1
36362_ACEOF
36363
36364 fi
36365
36366fi
36367
36368if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36369 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36370fi
36371
36372if test "$wxUSE_SPLINES" = "yes" ; then
36373 cat >>confdefs.h <<\_ACEOF
36374#define wxUSE_SPLINES 1
36375_ACEOF
36376
36377fi
36378
36379
36380USES_CONTROLS=0
36381if test "$wxUSE_CONTROLS" = "yes"; then
36382 USES_CONTROLS=1
36383fi
36384
36385if test "$wxUSE_ACCEL" = "yes"; then
36386 cat >>confdefs.h <<\_ACEOF
36387#define wxUSE_ACCEL 1
36388_ACEOF
36389
36390 USES_CONTROLS=1
36391fi
36392
36393if test "$wxUSE_BUTTON" = "yes"; then
36394 cat >>confdefs.h <<\_ACEOF
36395#define wxUSE_BUTTON 1
36396_ACEOF
36397
36398 USES_CONTROLS=1
36399fi
36400
36401if test "$wxUSE_BMPBUTTON" = "yes"; then
36402 cat >>confdefs.h <<\_ACEOF
36403#define wxUSE_BMPBUTTON 1
36404_ACEOF
36405
36406 USES_CONTROLS=1
36407fi
36408
36409if test "$wxUSE_CALCTRL" = "yes"; then
36410 cat >>confdefs.h <<\_ACEOF
36411#define wxUSE_CALENDARCTRL 1
36412_ACEOF
36413
36414 USES_CONTROLS=1
36415 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36416fi
36417
36418if test "$wxUSE_CARET" = "yes"; then
36419 cat >>confdefs.h <<\_ACEOF
36420#define wxUSE_CARET 1
36421_ACEOF
36422
36423 USES_CONTROLS=1
36424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36425fi
36426
36427if test "$wxUSE_COMBOBOX" = "yes"; then
36428 cat >>confdefs.h <<\_ACEOF
36429#define wxUSE_COMBOBOX 1
36430_ACEOF
36431
36432 USES_CONTROLS=1
36433fi
36434
36435if test "$wxUSE_CHOICE" = "yes"; then
36436 cat >>confdefs.h <<\_ACEOF
36437#define wxUSE_CHOICE 1
36438_ACEOF
36439
36440 USES_CONTROLS=1
36441fi
36442
92bbdbcd
WS
36443if test "$wxUSE_CHOICEBOOK" = "yes"; then
36444 cat >>confdefs.h <<\_ACEOF
36445#define wxUSE_CHOICEBOOK 1
36446_ACEOF
36447
36448 USES_CONTROLS=1
36449fi
36450
a848cd7e
SC
36451if test "$wxUSE_CHECKBOX" = "yes"; then
36452 cat >>confdefs.h <<\_ACEOF
36453#define wxUSE_CHECKBOX 1
36454_ACEOF
36455
36456 USES_CONTROLS=1
36457fi
36458
36459if test "$wxUSE_CHECKLST" = "yes"; then
36460 cat >>confdefs.h <<\_ACEOF
36461#define wxUSE_CHECKLISTBOX 1
36462_ACEOF
36463
36464 USES_CONTROLS=1
36465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36466fi
36467
36468if test "$wxUSE_DISPLAY" = "yes"; then
36469 cat >>confdefs.h <<\_ACEOF
36470#define wxUSE_DISPLAY 1
36471_ACEOF
36472
36473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36474fi
36475
36476if test "$wxUSE_GAUGE" = "yes"; then
36477 cat >>confdefs.h <<\_ACEOF
36478#define wxUSE_GAUGE 1
36479_ACEOF
36480
36481 USES_CONTROLS=1
36482fi
36483
36484if test "$wxUSE_GRID" = "yes"; then
36485 cat >>confdefs.h <<\_ACEOF
36486#define wxUSE_GRID 1
36487_ACEOF
36488
36489 USES_CONTROLS=1
36490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36491fi
36492
36493if test "$wxUSE_IMAGLIST" = "yes"; then
36494 cat >>confdefs.h <<\_ACEOF
36495#define wxUSE_IMAGLIST 1
36496_ACEOF
36497
36498fi
36499
36500if test "$wxUSE_LISTBOOK" = "yes"; then
36501 cat >>confdefs.h <<\_ACEOF
36502#define wxUSE_LISTBOOK 1
36503_ACEOF
36504
36505 USES_CONTROLS=1
36506fi
36507
36508if test "$wxUSE_LISTBOX" = "yes"; then
36509 cat >>confdefs.h <<\_ACEOF
36510#define wxUSE_LISTBOX 1
36511_ACEOF
36512
36513 USES_CONTROLS=1
36514fi
36515
36516if test "$wxUSE_LISTCTRL" = "yes"; then
36517 if test "$wxUSE_IMAGLIST" = "yes"; then
36518 cat >>confdefs.h <<\_ACEOF
36519#define wxUSE_LISTCTRL 1
36520_ACEOF
36521
36522 USES_CONTROLS=1
36523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36524 else
36525 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36526echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36527 fi
36528fi
36529
36530if test "$wxUSE_NOTEBOOK" = "yes"; then
36531 cat >>confdefs.h <<\_ACEOF
36532#define wxUSE_NOTEBOOK 1
36533_ACEOF
36534
36535 USES_CONTROLS=1
36536 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36537fi
36538
36539
36540if test "$wxUSE_RADIOBOX" = "yes"; then
36541 cat >>confdefs.h <<\_ACEOF
36542#define wxUSE_RADIOBOX 1
36543_ACEOF
36544
36545 USES_CONTROLS=1
36546fi
36547
36548if test "$wxUSE_RADIOBTN" = "yes"; then
36549 cat >>confdefs.h <<\_ACEOF
36550#define wxUSE_RADIOBTN 1
36551_ACEOF
36552
36553 USES_CONTROLS=1
36554fi
36555
36556if test "$wxUSE_SASH" = "yes"; then
36557 cat >>confdefs.h <<\_ACEOF
36558#define wxUSE_SASH 1
36559_ACEOF
36560
36561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36562fi
36563
36564if test "$wxUSE_SCROLLBAR" = "yes"; then
36565 cat >>confdefs.h <<\_ACEOF
36566#define wxUSE_SCROLLBAR 1
36567_ACEOF
36568
36569 USES_CONTROLS=1
36570 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36571fi
36572
36573if test "$wxUSE_SLIDER" = "yes"; then
36574 cat >>confdefs.h <<\_ACEOF
36575#define wxUSE_SLIDER 1
36576_ACEOF
36577
36578 USES_CONTROLS=1
36579fi
36580
36581if test "$wxUSE_SPINBTN" = "yes"; then
36582 cat >>confdefs.h <<\_ACEOF
36583#define wxUSE_SPINBTN 1
36584_ACEOF
36585
36586 USES_CONTROLS=1
36587fi
36588
36589if test "$wxUSE_SPINCTRL" = "yes"; then
36590 cat >>confdefs.h <<\_ACEOF
36591#define wxUSE_SPINCTRL 1
36592_ACEOF
36593
36594 USES_CONTROLS=1
36595fi
36596
36597if test "$wxUSE_SPLITTER" = "yes"; then
36598 cat >>confdefs.h <<\_ACEOF
36599#define wxUSE_SPLITTER 1
36600_ACEOF
36601
36602 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36603fi
36604
36605if test "$wxUSE_STATBMP" = "yes"; then
36606 cat >>confdefs.h <<\_ACEOF
36607#define wxUSE_STATBMP 1
36608_ACEOF
36609
36610 USES_CONTROLS=1
36611fi
36612
36613if test "$wxUSE_STATBOX" = "yes"; then
36614 cat >>confdefs.h <<\_ACEOF
36615#define wxUSE_STATBOX 1
36616_ACEOF
36617
36618 USES_CONTROLS=1
36619fi
36620
36621if test "$wxUSE_STATTEXT" = "yes"; then
36622 cat >>confdefs.h <<\_ACEOF
36623#define wxUSE_STATTEXT 1
36624_ACEOF
36625
36626 USES_CONTROLS=1
36627fi
36628
36629if test "$wxUSE_STATLINE" = "yes"; then
36630 cat >>confdefs.h <<\_ACEOF
36631#define wxUSE_STATLINE 1
36632_ACEOF
36633
36634 USES_CONTROLS=1
36635fi
36636
36637if test "$wxUSE_STATUSBAR" = "yes"; then
36638 cat >>confdefs.h <<\_ACEOF
36639#define wxUSE_STATUSBAR 1
36640_ACEOF
36641
36642 USES_CONTROLS=1
36643
36644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36645fi
36646
36647if test "$wxUSE_TABDIALOG" = "yes"; then
36648 cat >>confdefs.h <<\_ACEOF
36649#define wxUSE_TAB_DIALOG 1
36650_ACEOF
36651
36652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36653fi
36654
36655if test "$wxUSE_TEXTCTRL" = "yes"; then
36656 cat >>confdefs.h <<\_ACEOF
36657#define wxUSE_TEXTCTRL 1
36658_ACEOF
36659
36660 USES_CONTROLS=1
36661 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36662fi
36663
36664if test "$wxUSE_TOGGLEBTN" = "yes"; then
36665 if test "$wxUSE_COCOA" = 1 ; then
36666 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36667echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36668 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36669 else
36670 if test "$wxUSE_PM" = 1; then
36671 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36672echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36673 wxUSE_TOGGLEBTN=no
36674 fi
a848cd7e
SC
36675 fi
36676 if test "$wxUSE_UNIVERSAL" = "yes"; then
36677 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36678echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36679 wxUSE_TOGGLEBTN=no
36680 fi
36681
36682 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36683 cat >>confdefs.h <<\_ACEOF
36684#define wxUSE_TOGGLEBTN 1
36685_ACEOF
36686
36687 USES_CONTROLS=1
36688 fi
36689fi
36690
36691if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36692 cat >>confdefs.h <<\_ACEOF
36693#define wxUSE_TOOLBAR_SIMPLE 1
36694_ACEOF
36695
36696 wxUSE_TOOLBAR="yes"
36697 USES_CONTROLS=1
36698fi
36699
36700if test "$wxUSE_TOOLBAR" = "yes"; then
36701 cat >>confdefs.h <<\_ACEOF
36702#define wxUSE_TOOLBAR 1
36703_ACEOF
36704
36705 USES_CONTROLS=1
36706
36707 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36708 wxUSE_TOOLBAR_NATIVE="yes"
36709 fi
36710
36711 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36712 cat >>confdefs.h <<\_ACEOF
36713#define wxUSE_TOOLBAR_NATIVE 1
36714_ACEOF
36715
36716 USES_CONTROLS=1
36717 fi
36718
36719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36720fi
36721
36722if test "$wxUSE_TOOLTIPS" = "yes"; then
36723 if test "$wxUSE_MOTIF" = 1; then
36724 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36725echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36726 else
36727 if test "$wxUSE_UNIVERSAL" = "yes"; then
36728 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36729echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36730 else
36731 cat >>confdefs.h <<\_ACEOF
36732#define wxUSE_TOOLTIPS 1
36733_ACEOF
36734
36735 fi
36736 fi
36737fi
36738
36739if test "$wxUSE_TREECTRL" = "yes"; then
36740 if test "$wxUSE_IMAGLIST" = "yes"; then
36741 cat >>confdefs.h <<\_ACEOF
36742#define wxUSE_TREECTRL 1
36743_ACEOF
36744
36745 USES_CONTROLS=1
36746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36747 else
36748 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36749echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36750 fi
36751fi
36752
36753if test "$wxUSE_POPUPWIN" = "yes"; then
36754 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36755 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36756echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36757 else
36758 if test "$wxUSE_PM" = 1; then
36759 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36760echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36761 else
36762 cat >>confdefs.h <<\_ACEOF
36763#define wxUSE_POPUPWIN 1
36764_ACEOF
36765
36766
36767 USES_CONTROLS=1
36768 fi
36769 fi
36770fi
36771
36772if test "$wxUSE_TIPWINDOW" = "yes"; then
36773 if test "$wxUSE_PM" = 1; then
36774 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36775echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36776 else
36777 cat >>confdefs.h <<\_ACEOF
36778#define wxUSE_TIPWINDOW 1
36779_ACEOF
36780
36781 fi
36782fi
36783
36784if test "$USES_CONTROLS" = 1; then
36785 cat >>confdefs.h <<\_ACEOF
36786#define wxUSE_CONTROLS 1
36787_ACEOF
36788
36789fi
36790
36791
36792if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36793 cat >>confdefs.h <<\_ACEOF
36794#define wxUSE_ACCESSIBILITY 1
36795_ACEOF
36796
36797 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36798fi
36799
36800if test "$wxUSE_DRAGIMAGE" = "yes"; then
36801 cat >>confdefs.h <<\_ACEOF
36802#define wxUSE_DRAGIMAGE 1
36803_ACEOF
36804
36805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36806fi
36807
36808if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36809 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36810 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36811echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36812 else
36813 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36814#define wxUSE_EXCEPTIONS 1
36815_ACEOF
36816
07bea8f0
VS
36817 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36818 fi
a848cd7e
SC
36819fi
36820
36821USE_HTML=0
36822if test "$wxUSE_HTML" = "yes"; then
36823 cat >>confdefs.h <<\_ACEOF
36824#define wxUSE_HTML 1
36825_ACEOF
36826
36827 USE_HTML=1
36828 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36829 if test "$wxUSE_MAC" = 1; then
36830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36831 fi
a848cd7e 36832fi
646b6ec1 36833if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
36834 if test "$wxUSE_MAC" = 1; then
36835 old_CPPFLAGS="$CPPFLAGS"
36836 CPPFLAGS="$CPPFLAGS -x objective-c++"
36837 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36838echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36839if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36840 echo $ECHO_N "(cached) $ECHO_C" >&6
36841else
36842 cat >conftest.$ac_ext <<_ACEOF
36843/* confdefs.h. */
36844_ACEOF
36845cat confdefs.h >>conftest.$ac_ext
36846cat >>conftest.$ac_ext <<_ACEOF
36847/* end confdefs.h. */
36848#include <Carbon/Carbon.h>
36849
36850#include <WebKit/HIWebView.h>
36851_ACEOF
36852rm -f conftest.$ac_objext
36853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36854 (eval $ac_compile) 2>conftest.er1
36855 ac_status=$?
36856 grep -v '^ *+' conftest.er1 >conftest.err
36857 rm -f conftest.er1
36858 cat conftest.err >&5
36859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36860 (exit $ac_status); } &&
7714864e 36861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
36862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36863 (eval $ac_try) 2>&5
36864 ac_status=$?
36865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866 (exit $ac_status); }; } &&
36867 { ac_try='test -s conftest.$ac_objext'
36868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36869 (eval $ac_try) 2>&5
36870 ac_status=$?
36871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36872 (exit $ac_status); }; }; then
36873 ac_cv_header_WebKit_HIWebView_h=yes
36874else
36875 echo "$as_me: failed program was:" >&5
36876sed 's/^/| /' conftest.$ac_ext >&5
36877
36878ac_cv_header_WebKit_HIWebView_h=no
36879fi
36880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36881fi
36882echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36883echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36884if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36885
36886 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
36887#define wxUSE_WEBKIT 1
36888_ACEOF
36889
07bea8f0
VS
36890 WEBKIT_LINK="-framework WebKit"
36891
36892else
36893
36894 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36895echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36896 wxUSE_WEBKIT=no
36897
646b6ec1
VS
36898fi
36899
07bea8f0
VS
36900
36901 CPPFLAGS="$old_CPPFLAGS"
36902 elif test "$wxUSE_COCOA" = 1; then
36903 cat >>confdefs.h <<\_ACEOF
36904#define wxUSE_WEBKIT 1
36905_ACEOF
36906
36907 else
36908 wxUSE_WEBKIT=no
36909 fi
36910fi
36911
9a8f0513
VS
36912USE_XRC=0
36913if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
36914 if test "$wxUSE_XML" != "yes"; then
36915 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
36916echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
36917 wxUSE_XRC=no
36918 else
36919 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
36920#define wxUSE_XRC 1
36921_ACEOF
36922
d2ebf0b7
VS
36923 USE_XRC=1
36924 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
36925 fi
9a8f0513 36926fi
07bea8f0 36927
a848cd7e
SC
36928if test "$wxUSE_MENUS" = "yes"; then
36929 cat >>confdefs.h <<\_ACEOF
36930#define wxUSE_MENUS 1
36931_ACEOF
36932
36933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36934fi
36935
36936if test "$wxUSE_METAFILE" = "yes"; then
36937 cat >>confdefs.h <<\_ACEOF
36938#define wxUSE_METAFILE 1
36939_ACEOF
36940
36941fi
36942
36943if test "$wxUSE_MIMETYPE" = "yes"; then
36944 cat >>confdefs.h <<\_ACEOF
36945#define wxUSE_MIMETYPE 1
36946_ACEOF
36947
36948fi
36949
36950if test "$wxUSE_MINIFRAME" = "yes"; then
36951 cat >>confdefs.h <<\_ACEOF
36952#define wxUSE_MINIFRAME 1
36953_ACEOF
36954
36955 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36956fi
36957
36958if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
36959 cat >>confdefs.h <<\_ACEOF
36960#define wxUSE_SYSTEM_OPTIONS 1
36961_ACEOF
36962
36963 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36964 "$TOOLKIT" = "MOTIF"; then
36965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36966 fi
36967fi
36968
36969
36970if test "$wxUSE_VALIDATORS" = "yes"; then
36971 cat >>confdefs.h <<\_ACEOF
36972#define wxUSE_VALIDATORS 1
36973_ACEOF
36974
36975 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36976fi
36977
36978if test "$wxUSE_PALETTE" = "yes" ; then
36979 cat >>confdefs.h <<\_ACEOF
36980#define wxUSE_PALETTE 1
36981_ACEOF
36982
36983fi
36984
36985if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36986 LIBS=" -lunicows $LIBS"
36987fi
36988
36989
36990if test "$wxUSE_IMAGE" = "yes" ; then
36991 cat >>confdefs.h <<\_ACEOF
36992#define wxUSE_IMAGE 1
36993_ACEOF
36994
36995
36996 if test "$wxUSE_GIF" = "yes" ; then
36997 cat >>confdefs.h <<\_ACEOF
36998#define wxUSE_GIF 1
36999_ACEOF
37000
37001 fi
37002
37003 if test "$wxUSE_PCX" = "yes" ; then
37004 cat >>confdefs.h <<\_ACEOF
37005#define wxUSE_PCX 1
37006_ACEOF
37007
37008 fi
37009
37010 if test "$wxUSE_IFF" = "yes" ; then
37011 cat >>confdefs.h <<\_ACEOF
37012#define wxUSE_IFF 1
37013_ACEOF
37014
37015 fi
37016
37017 if test "$wxUSE_PNM" = "yes" ; then
37018 cat >>confdefs.h <<\_ACEOF
37019#define wxUSE_PNM 1
37020_ACEOF
37021
37022 fi
37023
37024 if test "$wxUSE_XPM" = "yes" ; then
37025 cat >>confdefs.h <<\_ACEOF
37026#define wxUSE_XPM 1
37027_ACEOF
37028
37029 fi
37030
37031 if test "$wxUSE_ICO_CUR" = "yes" ; then
37032 cat >>confdefs.h <<\_ACEOF
37033#define wxUSE_ICO_CUR 1
37034_ACEOF
37035
37036 fi
37037fi
37038
37039
37040if test "$wxUSE_CHOICEDLG" = "yes"; then
37041 cat >>confdefs.h <<\_ACEOF
37042#define wxUSE_CHOICEDLG 1
37043_ACEOF
37044
37045fi
37046
37047if test "$wxUSE_COLOURDLG" = "yes"; then
37048 cat >>confdefs.h <<\_ACEOF
37049#define wxUSE_COLOURDLG 1
37050_ACEOF
37051
37052fi
37053
37054if test "$wxUSE_FILEDLG" = "yes"; then
37055 cat >>confdefs.h <<\_ACEOF
37056#define wxUSE_FILEDLG 1
37057_ACEOF
37058
37059fi
37060
37061if test "$wxUSE_FINDREPLDLG" = "yes"; then
37062 cat >>confdefs.h <<\_ACEOF
37063#define wxUSE_FINDREPLDLG 1
37064_ACEOF
37065
37066fi
37067
37068if test "$wxUSE_FONTDLG" = "yes"; then
37069 cat >>confdefs.h <<\_ACEOF
37070#define wxUSE_FONTDLG 1
37071_ACEOF
37072
37073fi
37074
37075if test "$wxUSE_DIRDLG" = "yes"; then
37076 if test "$wxUSE_TREECTRL" != "yes"; then
37077 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37078echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37079 else
37080 cat >>confdefs.h <<\_ACEOF
37081#define wxUSE_DIRDLG 1
37082_ACEOF
37083
37084 fi
37085fi
37086
37087if test "$wxUSE_MSGDLG" = "yes"; then
37088 cat >>confdefs.h <<\_ACEOF
37089#define wxUSE_MSGDLG 1
37090_ACEOF
37091
37092fi
37093
37094if test "$wxUSE_NUMBERDLG" = "yes"; then
37095 cat >>confdefs.h <<\_ACEOF
37096#define wxUSE_NUMBERDLG 1
37097_ACEOF
37098
37099fi
37100
37101if test "$wxUSE_PROGRESSDLG" = "yes"; then
37102 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37103 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37104echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37105 else
37106 cat >>confdefs.h <<\_ACEOF
37107#define wxUSE_PROGRESSDLG 1
37108_ACEOF
37109
37110 fi
37111fi
37112
37113if test "$wxUSE_SPLASH" = "yes"; then
37114 cat >>confdefs.h <<\_ACEOF
37115#define wxUSE_SPLASH 1
37116_ACEOF
37117
2057db16 37118 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37119fi
37120
37121if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37122 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37123 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37124echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37125 else
37126 cat >>confdefs.h <<\_ACEOF
37127#define wxUSE_STARTUP_TIPS 1
37128_ACEOF
37129
37130 fi
37131fi
37132
37133if test "$wxUSE_TEXTDLG" = "yes"; then
37134 cat >>confdefs.h <<\_ACEOF
37135#define wxUSE_TEXTDLG 1
37136_ACEOF
37137
37138fi
37139
37140if test "$wxUSE_WIZARDDLG" = "yes"; then
37141 cat >>confdefs.h <<\_ACEOF
37142#define wxUSE_WIZARDDLG 1
37143_ACEOF
37144
37145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37146fi
37147
37148
37149if test "$cross_compiling" = "yes"; then
37150 OSINFO="\"$host\""
37151else
37152 OSINFO=`uname -s -r -m`
37153 OSINFO="\"$OSINFO\""
37154fi
37155
37156cat >>confdefs.h <<_ACEOF
37157#define WXWIN_OS_DESCRIPTION $OSINFO
37158_ACEOF
37159
37160
37161
37162if test "x$prefix" != "xNONE"; then
37163 wxPREFIX=$prefix
37164else
37165 wxPREFIX=$ac_default_prefix
37166fi
37167
37168cat >>confdefs.h <<_ACEOF
37169#define wxINSTALL_PREFIX "$wxPREFIX"
37170_ACEOF
37171
37172
a848cd7e
SC
37173
37174
37175CORE_BASE_LIBS="net base"
37176CORE_GUI_LIBS="adv core"
37177
37178if test "$wxUSE_XML" = "yes" ; then
37179 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37180fi
37181if test "$wxUSE_ODBC" != "no" ; then
37182 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37183 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37184fi
37185if test "$wxUSE_HTML" = "yes" ; then
37186 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37187fi
9a8f0513
VS
37188if test "$wxUSE_XRC" = "yes" ; then
37189 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37190fi
a848cd7e
SC
37191
37192if test "$wxUSE_GUI" != "yes"; then
37193 CORE_GUI_LIBS=""
37194fi
37195
37196
37197
37198
37199
37200
37201
37202
37203if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37204 if test "$wxUSE_SOUND" = "yes"; then
37205 LDFLAGS="$LDFLAGS -framework QuickTime"
37206 fi
5dcf30a0
RN
37207 if test "$USE_DARWIN" = 1; then
37208 LDFLAGS="$LDFLAGS -framework IOKit"
37209 fi
07bea8f0 37210 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37211fi
37212if test "$wxUSE_COCOA" = 1 ; then
37213 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37214fi
37215
37216
37217LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37218
37219have_cos=0
37220have_floor=0
37221
37222for ac_func in cos
37223do
37224as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37225echo "$as_me:$LINENO: checking for $ac_func" >&5
37226echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37227if eval "test \"\${$as_ac_var+set}\" = set"; then
37228 echo $ECHO_N "(cached) $ECHO_C" >&6
37229else
37230 cat >conftest.$ac_ext <<_ACEOF
37231/* confdefs.h. */
37232_ACEOF
37233cat confdefs.h >>conftest.$ac_ext
37234cat >>conftest.$ac_ext <<_ACEOF
37235/* end confdefs.h. */
ac1cb8d3
VS
37236/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37238#define $ac_func innocuous_$ac_func
37239
a848cd7e
SC
37240/* System header to define __stub macros and hopefully few prototypes,
37241 which can conflict with char $ac_func (); below.
37242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37243 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37244
a848cd7e
SC
37245#ifdef __STDC__
37246# include <limits.h>
37247#else
37248# include <assert.h>
37249#endif
ac1cb8d3
VS
37250
37251#undef $ac_func
37252
a848cd7e
SC
37253/* Override any gcc2 internal prototype to avoid an error. */
37254#ifdef __cplusplus
37255extern "C"
37256{
37257#endif
37258/* We use char because int might match the return type of a gcc2
37259 builtin and then its argument prototype would still apply. */
37260char $ac_func ();
37261/* The GNU C library defines this for functions which it implements
37262 to always fail with ENOSYS. Some functions are actually named
37263 something starting with __ and the normal name is an alias. */
37264#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37265choke me
37266#else
37267char (*f) () = $ac_func;
37268#endif
37269#ifdef __cplusplus
37270}
37271#endif
37272
37273int
37274main ()
37275{
37276return f != $ac_func;
37277 ;
37278 return 0;
37279}
37280_ACEOF
37281rm -f conftest.$ac_objext conftest$ac_exeext
37282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37283 (eval $ac_link) 2>conftest.er1
a848cd7e 37284 ac_status=$?
ac1cb8d3
VS
37285 grep -v '^ *+' conftest.er1 >conftest.err
37286 rm -f conftest.er1
37287 cat conftest.err >&5
a848cd7e
SC
37288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37289 (exit $ac_status); } &&
7714864e 37290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37292 (eval $ac_try) 2>&5
37293 ac_status=$?
37294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37295 (exit $ac_status); }; } &&
37296 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37298 (eval $ac_try) 2>&5
37299 ac_status=$?
37300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37301 (exit $ac_status); }; }; then
37302 eval "$as_ac_var=yes"
37303else
37304 echo "$as_me: failed program was:" >&5
37305sed 's/^/| /' conftest.$ac_ext >&5
37306
37307eval "$as_ac_var=no"
37308fi
ac1cb8d3
VS
37309rm -f conftest.err conftest.$ac_objext \
37310 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37311fi
37312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37313echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37314if test `eval echo '${'$as_ac_var'}'` = yes; then
37315 cat >>confdefs.h <<_ACEOF
37316#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37317_ACEOF
37318 have_cos=1
37319fi
37320done
37321
37322
37323for ac_func in floor
37324do
37325as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37326echo "$as_me:$LINENO: checking for $ac_func" >&5
37327echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37328if eval "test \"\${$as_ac_var+set}\" = set"; then
37329 echo $ECHO_N "(cached) $ECHO_C" >&6
37330else
37331 cat >conftest.$ac_ext <<_ACEOF
37332/* confdefs.h. */
37333_ACEOF
37334cat confdefs.h >>conftest.$ac_ext
37335cat >>conftest.$ac_ext <<_ACEOF
37336/* end confdefs.h. */
ac1cb8d3
VS
37337/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37339#define $ac_func innocuous_$ac_func
37340
a848cd7e
SC
37341/* System header to define __stub macros and hopefully few prototypes,
37342 which can conflict with char $ac_func (); below.
37343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37344 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37345
a848cd7e
SC
37346#ifdef __STDC__
37347# include <limits.h>
37348#else
37349# include <assert.h>
37350#endif
ac1cb8d3
VS
37351
37352#undef $ac_func
37353
a848cd7e
SC
37354/* Override any gcc2 internal prototype to avoid an error. */
37355#ifdef __cplusplus
37356extern "C"
37357{
37358#endif
37359/* We use char because int might match the return type of a gcc2
37360 builtin and then its argument prototype would still apply. */
37361char $ac_func ();
37362/* The GNU C library defines this for functions which it implements
37363 to always fail with ENOSYS. Some functions are actually named
37364 something starting with __ and the normal name is an alias. */
37365#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37366choke me
37367#else
37368char (*f) () = $ac_func;
37369#endif
37370#ifdef __cplusplus
37371}
37372#endif
37373
37374int
37375main ()
37376{
37377return f != $ac_func;
37378 ;
37379 return 0;
37380}
37381_ACEOF
37382rm -f conftest.$ac_objext conftest$ac_exeext
37383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37384 (eval $ac_link) 2>conftest.er1
a848cd7e 37385 ac_status=$?
ac1cb8d3
VS
37386 grep -v '^ *+' conftest.er1 >conftest.err
37387 rm -f conftest.er1
37388 cat conftest.err >&5
a848cd7e
SC
37389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390 (exit $ac_status); } &&
7714864e 37391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37393 (eval $ac_try) 2>&5
37394 ac_status=$?
37395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37396 (exit $ac_status); }; } &&
37397 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37399 (eval $ac_try) 2>&5
37400 ac_status=$?
37401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37402 (exit $ac_status); }; }; then
37403 eval "$as_ac_var=yes"
37404else
37405 echo "$as_me: failed program was:" >&5
37406sed 's/^/| /' conftest.$ac_ext >&5
37407
37408eval "$as_ac_var=no"
37409fi
ac1cb8d3
VS
37410rm -f conftest.err conftest.$ac_objext \
37411 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37412fi
37413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37414echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37415if test `eval echo '${'$as_ac_var'}'` = yes; then
37416 cat >>confdefs.h <<_ACEOF
37417#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37418_ACEOF
37419 have_floor=1
37420fi
37421done
37422
37423echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37424echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37425if test "$have_cos" = 1 -a "$have_floor" = 1; then
37426 echo "$as_me:$LINENO: result: yes" >&5
37427echo "${ECHO_T}yes" >&6
37428else
37429 echo "$as_me:$LINENO: result: no" >&5
37430echo "${ECHO_T}no" >&6
37431 LIBS="$LIBS -lm"
37432 # use different functions to avoid configure caching
37433 have_sin=0
37434 have_ceil=0
37435
37436for ac_func in sin
37437do
37438as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37439echo "$as_me:$LINENO: checking for $ac_func" >&5
37440echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37441if eval "test \"\${$as_ac_var+set}\" = set"; then
37442 echo $ECHO_N "(cached) $ECHO_C" >&6
37443else
37444 cat >conftest.$ac_ext <<_ACEOF
37445/* confdefs.h. */
37446_ACEOF
37447cat confdefs.h >>conftest.$ac_ext
37448cat >>conftest.$ac_ext <<_ACEOF
37449/* end confdefs.h. */
ac1cb8d3
VS
37450/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37452#define $ac_func innocuous_$ac_func
37453
a848cd7e
SC
37454/* System header to define __stub macros and hopefully few prototypes,
37455 which can conflict with char $ac_func (); below.
37456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37457 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37458
a848cd7e
SC
37459#ifdef __STDC__
37460# include <limits.h>
37461#else
37462# include <assert.h>
37463#endif
ac1cb8d3
VS
37464
37465#undef $ac_func
37466
a848cd7e
SC
37467/* Override any gcc2 internal prototype to avoid an error. */
37468#ifdef __cplusplus
37469extern "C"
37470{
37471#endif
37472/* We use char because int might match the return type of a gcc2
37473 builtin and then its argument prototype would still apply. */
37474char $ac_func ();
37475/* The GNU C library defines this for functions which it implements
37476 to always fail with ENOSYS. Some functions are actually named
37477 something starting with __ and the normal name is an alias. */
37478#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37479choke me
37480#else
37481char (*f) () = $ac_func;
37482#endif
37483#ifdef __cplusplus
37484}
37485#endif
37486
37487int
37488main ()
37489{
37490return f != $ac_func;
37491 ;
37492 return 0;
37493}
37494_ACEOF
37495rm -f conftest.$ac_objext conftest$ac_exeext
37496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37497 (eval $ac_link) 2>conftest.er1
a848cd7e 37498 ac_status=$?
ac1cb8d3
VS
37499 grep -v '^ *+' conftest.er1 >conftest.err
37500 rm -f conftest.er1
37501 cat conftest.err >&5
a848cd7e
SC
37502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37503 (exit $ac_status); } &&
7714864e 37504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37506 (eval $ac_try) 2>&5
37507 ac_status=$?
37508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37509 (exit $ac_status); }; } &&
37510 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37512 (eval $ac_try) 2>&5
37513 ac_status=$?
37514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37515 (exit $ac_status); }; }; then
37516 eval "$as_ac_var=yes"
37517else
37518 echo "$as_me: failed program was:" >&5
37519sed 's/^/| /' conftest.$ac_ext >&5
37520
37521eval "$as_ac_var=no"
37522fi
ac1cb8d3
VS
37523rm -f conftest.err conftest.$ac_objext \
37524 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37525fi
37526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37527echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37528if test `eval echo '${'$as_ac_var'}'` = yes; then
37529 cat >>confdefs.h <<_ACEOF
37530#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37531_ACEOF
37532 have_sin=1
37533fi
37534done
37535
37536
37537for ac_func in ceil
37538do
37539as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37540echo "$as_me:$LINENO: checking for $ac_func" >&5
37541echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37542if eval "test \"\${$as_ac_var+set}\" = set"; then
37543 echo $ECHO_N "(cached) $ECHO_C" >&6
37544else
37545 cat >conftest.$ac_ext <<_ACEOF
37546/* confdefs.h. */
37547_ACEOF
37548cat confdefs.h >>conftest.$ac_ext
37549cat >>conftest.$ac_ext <<_ACEOF
37550/* end confdefs.h. */
ac1cb8d3
VS
37551/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37553#define $ac_func innocuous_$ac_func
37554
a848cd7e
SC
37555/* System header to define __stub macros and hopefully few prototypes,
37556 which can conflict with char $ac_func (); below.
37557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37558 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37559
a848cd7e
SC
37560#ifdef __STDC__
37561# include <limits.h>
37562#else
37563# include <assert.h>
37564#endif
ac1cb8d3
VS
37565
37566#undef $ac_func
37567
a848cd7e
SC
37568/* Override any gcc2 internal prototype to avoid an error. */
37569#ifdef __cplusplus
37570extern "C"
37571{
37572#endif
37573/* We use char because int might match the return type of a gcc2
37574 builtin and then its argument prototype would still apply. */
37575char $ac_func ();
37576/* The GNU C library defines this for functions which it implements
37577 to always fail with ENOSYS. Some functions are actually named
37578 something starting with __ and the normal name is an alias. */
37579#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37580choke me
37581#else
37582char (*f) () = $ac_func;
37583#endif
37584#ifdef __cplusplus
37585}
37586#endif
37587
37588int
37589main ()
37590{
37591return f != $ac_func;
37592 ;
37593 return 0;
37594}
37595_ACEOF
37596rm -f conftest.$ac_objext conftest$ac_exeext
37597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37598 (eval $ac_link) 2>conftest.er1
a848cd7e 37599 ac_status=$?
ac1cb8d3
VS
37600 grep -v '^ *+' conftest.er1 >conftest.err
37601 rm -f conftest.er1
37602 cat conftest.err >&5
a848cd7e
SC
37603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37604 (exit $ac_status); } &&
7714864e 37605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37607 (eval $ac_try) 2>&5
37608 ac_status=$?
37609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37610 (exit $ac_status); }; } &&
37611 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37613 (eval $ac_try) 2>&5
37614 ac_status=$?
37615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37616 (exit $ac_status); }; }; then
37617 eval "$as_ac_var=yes"
37618else
37619 echo "$as_me: failed program was:" >&5
37620sed 's/^/| /' conftest.$ac_ext >&5
37621
37622eval "$as_ac_var=no"
37623fi
ac1cb8d3
VS
37624rm -f conftest.err conftest.$ac_objext \
37625 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37626fi
37627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37628echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37629if test `eval echo '${'$as_ac_var'}'` = yes; then
37630 cat >>confdefs.h <<_ACEOF
37631#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37632_ACEOF
37633 have_ceil=1
37634fi
37635done
37636
37637 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37638echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37639 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37640 echo "$as_me:$LINENO: result: yes" >&5
37641echo "${ECHO_T}yes" >&6
37642 else
37643 echo "$as_me:$LINENO: result: no" >&5
37644echo "${ECHO_T}no" >&6
37645 # not sure we should warn the user, crash, etc.
37646 fi
37647fi
37648
37649if test "$wxUSE_GUI" = "yes"; then
37650
37651
37652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37653 drawing dynamic erase event exec font image \
37654 minimal propsize rotate shaped widgets render"
37655
37656 if test "$wxUSE_MONOLITHIC" != "yes"; then
37657 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37658 fi
37659else
37660 SAMPLES_SUBDIRS="console"
37661fi
37662
37663
ceec2216 37664INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
37665-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37666
37667if test "$GXX" = yes ; then
37668 CXXWARNINGS="-Wall"
37669 fi
37670
37671EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37672
0c3c69fc
VS
37673CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
37674CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
37675CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
37676
37677
0c3c69fc 37678LIBS=`echo $LIBS`
a848cd7e
SC
37679EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37680EXTRALIBS_XML="$EXPAT_LINK"
37681EXTRALIBS_HTML="$MSPACK_LINK"
37682EXTRALIBS_ODBC="$ODBC_LINK"
37683if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 37684 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
37685fi
37686if test "$wxUSE_OPENGL" = "yes"; then
37687 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37688fi
37689
37690LDFLAGS="$LDFLAGS $PROFILE"
37691
37692if test "$wxUSE_GTK" = 1; then
37693 WXCONFIG_INCLUDE=
37694else
37695 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37696fi
37697
37698WXCONFIG_EXTRALIBS="$LIBS"
37699
37700if test "$wxUSE_REGEX" = "builtin" ; then
37701 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37702fi
37703if test "$wxUSE_EXPAT" = "builtin" ; then
37704 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37705fi
37706if test "$wxUSE_ODBC" = "builtin" ; then
37707 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37708fi
37709if test "$wxUSE_LIBTIFF" = "builtin" ; then
37710 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37711fi
37712if test "$wxUSE_LIBJPEG" = "builtin" ; then
37713 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37714fi
37715if test "$wxUSE_LIBPNG" = "builtin" ; then
37716 wxconfig_3rdparty="$wxconfig_3rdparty png"
37717fi
37718if test "$wxUSE_ZLIB" = "builtin" ; then
37719 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37720fi
37721if test "$wxUSE_ODBC" = "builtin" ; then
37722 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37723fi
37724
37725for i in $wxconfig_3rdparty ; do
ceec2216 37726 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
37727done
37728
37729
37730if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37731 WXUNIV=1
37732else
37733 WXUNIV=0
37734fi
37735
37736
37737
37738
37739
37740
37741
37742
37743
37744if test $wxUSE_MONOLITHIC = "yes" ; then
37745 MONOLITHIC=1
37746else
37747 MONOLITHIC=0
37748fi
37749
37750if test $wxUSE_PLUGINS = "yes" ; then
37751 USE_PLUGINS=1
37752else
37753 USE_PLUGINS=0
37754fi
37755
37756if test $wxUSE_ODBC != "no" ; then
37757 USE_ODBC=1
37758else
37759 USE_ODBC=0
37760fi
37761
37762if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37763 OFFICIAL_BUILD=1
37764else
37765 OFFICIAL_BUILD=0
37766fi
37767
37768
37769
37770
37771
37772
37773
37774
37775
37776
37777
37778
37779
37780
37781
37782
37783
37784
37785
ceec2216 37786
a848cd7e
SC
37787
37788
37789TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37790
37791
37792
37793
37794
37795
37796
37797
4d4ff94c
VZ
37798case "$TOOLKIT" in
37799 GTK)
37800 TOOLKIT_USER="GTK+"
37801 if test "$WXGTK20" = 1; then
37802 TOOLKIT_USER="$TOOLKIT_USER 2"
37803 fi
9a8f0513 37804 ;;
4d4ff94c
VZ
37805
37806 *)
37807 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 37808 ;;
4d4ff94c 37809esac
a848cd7e 37810
9a8f0513 37811
a848cd7e
SC
37812 if test "x$BAKEFILE_HOST" = "x"; then
37813 BAKEFILE_HOST="${host}"
37814 fi
37815
37816 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37817
37818 if test -n "$ac_tool_prefix"; then
37819 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37820set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37821echo "$as_me:$LINENO: checking for $ac_word" >&5
37822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37823if test "${ac_cv_prog_RANLIB+set}" = set; then
37824 echo $ECHO_N "(cached) $ECHO_C" >&6
37825else
37826 if test -n "$RANLIB"; then
37827 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37828else
37829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37830for as_dir in $PATH
37831do
37832 IFS=$as_save_IFS
37833 test -z "$as_dir" && as_dir=.
37834 for ac_exec_ext in '' $ac_executable_extensions; do
37835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37836 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37838 break 2
37839 fi
37840done
37841done
37842
37843fi
37844fi
37845RANLIB=$ac_cv_prog_RANLIB
37846if test -n "$RANLIB"; then
37847 echo "$as_me:$LINENO: result: $RANLIB" >&5
37848echo "${ECHO_T}$RANLIB" >&6
37849else
37850 echo "$as_me:$LINENO: result: no" >&5
37851echo "${ECHO_T}no" >&6
37852fi
37853
37854fi
37855if test -z "$ac_cv_prog_RANLIB"; then
37856 ac_ct_RANLIB=$RANLIB
37857 # Extract the first word of "ranlib", so it can be a program name with args.
37858set dummy ranlib; ac_word=$2
37859echo "$as_me:$LINENO: checking for $ac_word" >&5
37860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37861if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37862 echo $ECHO_N "(cached) $ECHO_C" >&6
37863else
37864 if test -n "$ac_ct_RANLIB"; then
37865 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37866else
37867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37868for as_dir in $PATH
37869do
37870 IFS=$as_save_IFS
37871 test -z "$as_dir" && as_dir=.
37872 for ac_exec_ext in '' $ac_executable_extensions; do
37873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37874 ac_cv_prog_ac_ct_RANLIB="ranlib"
37875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37876 break 2
37877 fi
37878done
37879done
37880
37881 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37882fi
37883fi
37884ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37885if test -n "$ac_ct_RANLIB"; then
37886 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37887echo "${ECHO_T}$ac_ct_RANLIB" >&6
37888else
37889 echo "$as_me:$LINENO: result: no" >&5
37890echo "${ECHO_T}no" >&6
37891fi
37892
37893 RANLIB=$ac_ct_RANLIB
37894else
37895 RANLIB="$ac_cv_prog_RANLIB"
37896fi
37897
37898 # Find a good install program. We prefer a C program (faster),
37899# so one script is as good as another. But avoid the broken or
37900# incompatible versions:
37901# SysV /etc/install, /usr/sbin/install
37902# SunOS /usr/etc/install
37903# IRIX /sbin/install
37904# AIX /bin/install
37905# AmigaOS /C/install, which installs bootblocks on floppy discs
37906# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37907# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37908# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37909# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37910# ./install, which can be erroneously created by make from ./install.sh.
37911echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37912echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37913if test -z "$INSTALL"; then
37914if test "${ac_cv_path_install+set}" = set; then
37915 echo $ECHO_N "(cached) $ECHO_C" >&6
37916else
37917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37918for as_dir in $PATH
37919do
37920 IFS=$as_save_IFS
37921 test -z "$as_dir" && as_dir=.
37922 # Account for people who put trailing slashes in PATH elements.
37923case $as_dir/ in
37924 ./ | .// | /cC/* | \
37925 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37926 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37927 /usr/ucb/* ) ;;
37928 *)
37929 # OSF1 and SCO ODT 3.0 have their own names for install.
37930 # Don't use installbsd from OSF since it installs stuff as root
37931 # by default.
37932 for ac_prog in ginstall scoinst install; do
37933 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37934 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37935 if test $ac_prog = install &&
37936 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37937 # AIX install. It has an incompatible calling convention.
37938 :
37939 elif test $ac_prog = install &&
37940 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37941 # program-specific install script used by HP pwplus--don't use.
37942 :
37943 else
37944 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37945 break 3
37946 fi
37947 fi
a848cd7e
SC
37948 done
37949 done
37950 ;;
37951esac
37952done
37953
37954
37955fi
37956 if test "${ac_cv_path_install+set}" = set; then
37957 INSTALL=$ac_cv_path_install
37958 else
37959 # As a last resort, use the slow shell script. We don't cache a
37960 # path for INSTALL within a source directory, because that will
37961 # break other packages using the cache if that directory is
37962 # removed, or if the path is relative.
37963 INSTALL=$ac_install_sh
37964 fi
37965fi
37966echo "$as_me:$LINENO: result: $INSTALL" >&5
37967echo "${ECHO_T}$INSTALL" >&6
37968
37969# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37970# It thinks the first close brace ends the variable substitution.
37971test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37972
37973test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
37974
37975test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37976
37977 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37978echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37979LN_S=$as_ln_s
37980if test "$LN_S" = "ln -s"; then
37981 echo "$as_me:$LINENO: result: yes" >&5
37982echo "${ECHO_T}yes" >&6
37983else
37984 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37985echo "${ECHO_T}no, using $LN_S" >&6
37986fi
37987
37988
37989 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37990echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 37991set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
37992if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37993 echo $ECHO_N "(cached) $ECHO_C" >&6
37994else
37995 cat >conftest.make <<\_ACEOF
37996all:
37997 @echo 'ac_maketemp="$(MAKE)"'
37998_ACEOF
37999# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38000eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38001if test -n "$ac_maketemp"; then
38002 eval ac_cv_prog_make_${ac_make}_set=yes
38003else
38004 eval ac_cv_prog_make_${ac_make}_set=no
38005fi
38006rm -f conftest.make
38007fi
38008if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38009 echo "$as_me:$LINENO: result: yes" >&5
38010echo "${ECHO_T}yes" >&6
38011 SET_MAKE=
38012else
38013 echo "$as_me:$LINENO: result: no" >&5
38014echo "${ECHO_T}no" >&6
38015 SET_MAKE="MAKE=${MAKE-make}"
38016fi
38017
38018
38019
38020 if test -n "$ac_tool_prefix"; then
38021 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38022set dummy ${ac_tool_prefix}ar; ac_word=$2
38023echo "$as_me:$LINENO: checking for $ac_word" >&5
38024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38025if test "${ac_cv_prog_AR+set}" = set; then
38026 echo $ECHO_N "(cached) $ECHO_C" >&6
38027else
38028 if test -n "$AR"; then
38029 ac_cv_prog_AR="$AR" # Let the user override the test.
38030else
38031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38032for as_dir in $PATH
38033do
38034 IFS=$as_save_IFS
38035 test -z "$as_dir" && as_dir=.
38036 for ac_exec_ext in '' $ac_executable_extensions; do
38037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38038 ac_cv_prog_AR="${ac_tool_prefix}ar"
38039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38040 break 2
38041 fi
38042done
38043done
38044
38045fi
38046fi
38047AR=$ac_cv_prog_AR
38048if test -n "$AR"; then
38049 echo "$as_me:$LINENO: result: $AR" >&5
38050echo "${ECHO_T}$AR" >&6
38051else
38052 echo "$as_me:$LINENO: result: no" >&5
38053echo "${ECHO_T}no" >&6
38054fi
38055
38056fi
38057if test -z "$ac_cv_prog_AR"; then
38058 ac_ct_AR=$AR
38059 # Extract the first word of "ar", so it can be a program name with args.
38060set dummy ar; ac_word=$2
38061echo "$as_me:$LINENO: checking for $ac_word" >&5
38062echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38063if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38064 echo $ECHO_N "(cached) $ECHO_C" >&6
38065else
38066 if test -n "$ac_ct_AR"; then
38067 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38068else
38069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38070for as_dir in $PATH
38071do
38072 IFS=$as_save_IFS
38073 test -z "$as_dir" && as_dir=.
38074 for ac_exec_ext in '' $ac_executable_extensions; do
38075 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38076 ac_cv_prog_ac_ct_AR="ar"
38077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38078 break 2
38079 fi
38080done
38081done
38082
38083 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38084fi
38085fi
38086ac_ct_AR=$ac_cv_prog_ac_ct_AR
38087if test -n "$ac_ct_AR"; then
38088 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38089echo "${ECHO_T}$ac_ct_AR" >&6
38090else
38091 echo "$as_me:$LINENO: result: no" >&5
38092echo "${ECHO_T}no" >&6
38093fi
38094
38095 AR=$ac_ct_AR
38096else
38097 AR="$ac_cv_prog_AR"
38098fi
38099
38100 if test -n "$ac_tool_prefix"; then
38101 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38102set dummy ${ac_tool_prefix}strip; ac_word=$2
38103echo "$as_me:$LINENO: checking for $ac_word" >&5
38104echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38105if test "${ac_cv_prog_STRIP+set}" = set; then
38106 echo $ECHO_N "(cached) $ECHO_C" >&6
38107else
38108 if test -n "$STRIP"; then
38109 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38110else
38111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38112for as_dir in $PATH
38113do
38114 IFS=$as_save_IFS
38115 test -z "$as_dir" && as_dir=.
38116 for ac_exec_ext in '' $ac_executable_extensions; do
38117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38118 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38120 break 2
38121 fi
38122done
38123done
38124
38125fi
38126fi
38127STRIP=$ac_cv_prog_STRIP
38128if test -n "$STRIP"; then
38129 echo "$as_me:$LINENO: result: $STRIP" >&5
38130echo "${ECHO_T}$STRIP" >&6
38131else
38132 echo "$as_me:$LINENO: result: no" >&5
38133echo "${ECHO_T}no" >&6
38134fi
38135
38136fi
38137if test -z "$ac_cv_prog_STRIP"; then
38138 ac_ct_STRIP=$STRIP
38139 # Extract the first word of "strip", so it can be a program name with args.
38140set dummy strip; ac_word=$2
38141echo "$as_me:$LINENO: checking for $ac_word" >&5
38142echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38143if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38144 echo $ECHO_N "(cached) $ECHO_C" >&6
38145else
38146 if test -n "$ac_ct_STRIP"; then
38147 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38148else
38149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38150for as_dir in $PATH
38151do
38152 IFS=$as_save_IFS
38153 test -z "$as_dir" && as_dir=.
38154 for ac_exec_ext in '' $ac_executable_extensions; do
38155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38156 ac_cv_prog_ac_ct_STRIP="strip"
38157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38158 break 2
38159 fi
38160done
38161done
38162
38163 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38164fi
38165fi
38166ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38167if test -n "$ac_ct_STRIP"; then
38168 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38169echo "${ECHO_T}$ac_ct_STRIP" >&6
38170else
38171 echo "$as_me:$LINENO: result: no" >&5
38172echo "${ECHO_T}no" >&6
38173fi
38174
38175 STRIP=$ac_ct_STRIP
38176else
38177 STRIP="$ac_cv_prog_STRIP"
38178fi
38179
38180 if test -n "$ac_tool_prefix"; then
38181 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38182set dummy ${ac_tool_prefix}nm; ac_word=$2
38183echo "$as_me:$LINENO: checking for $ac_word" >&5
38184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38185if test "${ac_cv_prog_NM+set}" = set; then
38186 echo $ECHO_N "(cached) $ECHO_C" >&6
38187else
38188 if test -n "$NM"; then
38189 ac_cv_prog_NM="$NM" # Let the user override the test.
38190else
38191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38192for as_dir in $PATH
38193do
38194 IFS=$as_save_IFS
38195 test -z "$as_dir" && as_dir=.
38196 for ac_exec_ext in '' $ac_executable_extensions; do
38197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38198 ac_cv_prog_NM="${ac_tool_prefix}nm"
38199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38200 break 2
38201 fi
38202done
38203done
38204
38205fi
38206fi
38207NM=$ac_cv_prog_NM
38208if test -n "$NM"; then
38209 echo "$as_me:$LINENO: result: $NM" >&5
38210echo "${ECHO_T}$NM" >&6
38211else
38212 echo "$as_me:$LINENO: result: no" >&5
38213echo "${ECHO_T}no" >&6
38214fi
38215
38216fi
38217if test -z "$ac_cv_prog_NM"; then
38218 ac_ct_NM=$NM
38219 # Extract the first word of "nm", so it can be a program name with args.
38220set dummy nm; ac_word=$2
38221echo "$as_me:$LINENO: checking for $ac_word" >&5
38222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38223if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38224 echo $ECHO_N "(cached) $ECHO_C" >&6
38225else
38226 if test -n "$ac_ct_NM"; then
38227 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38228else
38229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38230for as_dir in $PATH
38231do
38232 IFS=$as_save_IFS
38233 test -z "$as_dir" && as_dir=.
38234 for ac_exec_ext in '' $ac_executable_extensions; do
38235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38236 ac_cv_prog_ac_ct_NM="nm"
38237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38238 break 2
38239 fi
38240done
38241done
38242
38243 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38244fi
38245fi
38246ac_ct_NM=$ac_cv_prog_ac_ct_NM
38247if test -n "$ac_ct_NM"; then
38248 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38249echo "${ECHO_T}$ac_ct_NM" >&6
38250else
38251 echo "$as_me:$LINENO: result: no" >&5
38252echo "${ECHO_T}no" >&6
38253fi
38254
38255 NM=$ac_ct_NM
38256else
38257 NM="$ac_cv_prog_NM"
38258fi
38259
38260
38261 case ${BAKEFILE_HOST} in
38262 *-hp-hpux* )
ecd16d74 38263 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38264 ;;
38265 *) INSTALL_DIR="$INSTALL -d"
38266 ;;
38267 esac
38268
38269
38270 LDFLAGS_GUI=
38271 case ${BAKEFILE_HOST} in
38272 *-*-cygwin* | *-*-mingw32* )
38273 LDFLAGS_GUI="-mwindows"
38274 esac
38275
38276
38277 fi
38278
38279 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38280echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38281if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38282 echo $ECHO_N "(cached) $ECHO_C" >&6
38283else
38284
38285 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38286 egrep -s GNU > /dev/null); then
38287 bakefile_cv_prog_makeisgnu="yes"
38288 else
38289 bakefile_cv_prog_makeisgnu="no"
38290 fi
38291
38292fi
38293echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38294echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38295
38296 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38297 IF_GNU_MAKE=""
38298 else
38299 IF_GNU_MAKE="#"
38300 fi
38301
38302
38303
38304 PLATFORM_UNIX=0
38305 PLATFORM_WIN32=0
38306 PLATFORM_MSDOS=0
38307 PLATFORM_MAC=0
38308 PLATFORM_MACOSX=0
38309 PLATFORM_OS2=0
38310
38311 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38312 case "${BAKEFILE_HOST}" in
38313 *-*-cygwin* | *-*-mingw32* )
38314 PLATFORM_WIN32=1
38315 ;;
38316 *-pc-msdosdjgpp )
38317 PLATFORM_MSDOS=1
38318 ;;
38319 *-pc-os2_emx | *-pc-os2-emx )
38320 PLATFORM_OS2=1
38321 ;;
38322 powerpc-*-darwin* )
38323 PLATFORM_MAC=1
38324 PLATFORM_MACOSX=1
38325 ;;
38326 * )
38327 PLATFORM_UNIX=1
38328 ;;
38329 esac
38330 else
38331 case "$BAKEFILE_FORCE_PLATFORM" in
38332 win32 )
38333 PLATFORM_WIN32=1
38334 ;;
38335 msdos )
38336 PLATFORM_MSDOS=1
38337 ;;
38338 os2 )
38339 PLATFORM_OS2=1
38340 ;;
38341 darwin )
38342 PLATFORM_MAC=1
38343 PLATFORM_MACOSX=1
38344 ;;
38345 unix )
38346 PLATFORM_UNIX=1
38347 ;;
38348 * )
38349 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38350echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38351 { (exit 1); exit 1; }; }
38352 ;;
38353 esac
38354 fi
38355
38356
38357
38358
38359
38360
38361
38362
38363
38364 # Check whether --enable-omf or --disable-omf was given.
38365if test "${enable_omf+set}" = set; then
38366 enableval="$enable_omf"
38367 bk_os2_use_omf="$enableval"
38368fi;
38369
38370 case "${BAKEFILE_HOST}" in
38371 *-*-darwin* )
38372 CFLAGS="$CFLAGS -fno-common"
38373 CXXFLAGS="$CXXFLAGS -fno-common"
38374 ;;
38375
38376 *-pc-os2_emx | *-pc-os2-emx )
38377 if test "x$bk_os2_use_omf" = "xyes" ; then
38378 AR=emxomfar
38379 RANLIB=:
38380 LDFLAGS="-Zomf $LDFLAGS"
38381 CFLAGS="-Zomf $CFLAGS"
38382 CXXFLAGS="-Zomf $CXXFLAGS"
38383 OS2_LIBEXT="lib"
38384 else
38385 OS2_LIBEXT="a"
38386 fi
38387 ;;
38388 esac
38389
38390
38391 SO_SUFFIX="so"
38392 SO_SUFFIX_MODULE="so"
38393 EXEEXT=""
38394 LIBPREFIX="lib"
38395 LIBEXT=".a"
38396 DLLPREFIX="lib"
38397 DLLPREFIX_MODULE=""
38398 DLLIMP_SUFFIX=""
38399
38400 case "${BAKEFILE_HOST}" in
38401 *-hp-hpux* )
38402 SO_SUFFIX="sl"
38403 SO_SUFFIX_MODULE="sl"
38404 ;;
38405 *-*-aix* )
38406 SO_SUFFIX="a"
38407 SO_SUFFIX_MODULE="a"
38408 ;;
38409 *-*-cygwin* | *-*-mingw32* )
38410 SO_SUFFIX="dll"
38411 SO_SUFFIX_MODULE="dll"
38412 DLLIMP_SUFFIX="dll.a"
38413 EXEEXT=".exe"
38414 DLLPREFIX=""
38415 ;;
38416 *-pc-msdosdjgpp )
38417 EXEEXT=".exe"
38418 DLLPREFIX=""
38419 ;;
38420 *-pc-os2_emx | *-pc-os2-emx )
38421 SO_SUFFIX="dll"
38422 SO_SUFFIX_MODULE="dll"
38423 DLLIMP_SUFFIX=$OS2_LIBEXT
38424 EXEEXT=".exe"
38425 DLLPREFIX=""
38426 LIBPREFIX=""
38427 LIBEXT=".$OS2_LIBEXT"
38428 ;;
38429 powerpc-*-darwin* )
38430 SO_SUFFIX="dylib"
38431 SO_SUFFIX_MODULE="bundle"
38432 ;;
38433 esac
38434
38435 if test "x$DLLIMP_SUFFIX" = "x" ; then
38436 DLLIMP_SUFFIX="$SO_SUFFIX"
38437 fi
38438
38439
38440
38441
38442
38443
38444
38445
38446
38447
38448
38449 SHARED_LD_CC="\$(CC) -shared -o"
38450 SHARED_LD_CXX="\$(CXX) -shared -o"
38451
38452 if test "x$GCC" = "xyes"; then
38453 PIC_FLAG="-fPIC"
38454 fi
38455
38456 case "${BAKEFILE_HOST}" in
38457 *-hp-hpux* )
38458 if test "x$GCC" = "xyes"; then
38459 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38460 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38461 else
38462 LDFLAGS="$LDFLAGS -L/usr/lib"
38463
38464 SHARED_LD_CC="${CC} -b -o"
38465 SHARED_LD_CXX="${CXX} -b -o"
38466 PIC_FLAG="+Z"
38467 fi
38468 ;;
38469
38470 *-*-linux* )
38471 if test "x$GCC" != "xyes"; then
38472 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38473echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38474if test "${bakefile_cv_prog_icc+set}" = set; then
38475 echo $ECHO_N "(cached) $ECHO_C" >&6
38476else
38477
38478 cat >conftest.$ac_ext <<_ACEOF
38479/* confdefs.h. */
38480_ACEOF
38481cat confdefs.h >>conftest.$ac_ext
38482cat >>conftest.$ac_ext <<_ACEOF
38483/* end confdefs.h. */
38484
38485int
38486main ()
38487{
38488
38489 #ifndef __INTEL_COMPILER
38490 #error Not icc
38491 #endif
38492
38493 ;
38494 return 0;
38495}
38496_ACEOF
38497rm -f conftest.$ac_objext
38498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38499 (eval $ac_compile) 2>conftest.er1
a848cd7e 38500 ac_status=$?
ac1cb8d3
VS
38501 grep -v '^ *+' conftest.er1 >conftest.err
38502 rm -f conftest.er1
38503 cat conftest.err >&5
a848cd7e
SC
38504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38505 (exit $ac_status); } &&
7714864e 38506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38508 (eval $ac_try) 2>&5
38509 ac_status=$?
38510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38511 (exit $ac_status); }; } &&
38512 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38514 (eval $ac_try) 2>&5
38515 ac_status=$?
38516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38517 (exit $ac_status); }; }; then
38518 bakefile_cv_prog_icc=yes
38519else
38520 echo "$as_me: failed program was:" >&5
38521sed 's/^/| /' conftest.$ac_ext >&5
38522
38523bakefile_cv_prog_icc=no
38524
38525fi
ac1cb8d3 38526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38527
38528fi
38529echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38530echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38531 if test "$bakefile_cv_prog_icc" = "yes"; then
38532 PIC_FLAG="-KPIC"
38533 fi
38534 fi
38535 ;;
38536
38537 *-*-solaris2* )
38538 if test "x$GCC" != xyes ; then
38539 SHARED_LD_CC="${CC} -G -o"
38540 SHARED_LD_CXX="${CXX} -G -o"
38541 PIC_FLAG="-KPIC"
38542 fi
38543 ;;
38544
38545 *-*-darwin* )
38546
38547 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38548echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38549if test "${wx_cv_gcc31+set}" = set; then
38550 echo $ECHO_N "(cached) $ECHO_C" >&6
38551else
38552
38553 cat >conftest.$ac_ext <<_ACEOF
38554/* confdefs.h. */
38555_ACEOF
38556cat confdefs.h >>conftest.$ac_ext
38557cat >>conftest.$ac_ext <<_ACEOF
38558/* end confdefs.h. */
38559
38560int
38561main ()
38562{
38563
38564 #if (__GNUC__ < 3) || \
38565 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38566 #error old gcc
38567 #endif
38568
38569 ;
38570 return 0;
38571}
38572_ACEOF
38573rm -f conftest.$ac_objext
38574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38575 (eval $ac_compile) 2>conftest.er1
a848cd7e 38576 ac_status=$?
ac1cb8d3
VS
38577 grep -v '^ *+' conftest.er1 >conftest.err
38578 rm -f conftest.er1
38579 cat conftest.err >&5
a848cd7e
SC
38580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38581 (exit $ac_status); } &&
7714864e 38582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38584 (eval $ac_try) 2>&5
38585 ac_status=$?
38586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38587 (exit $ac_status); }; } &&
38588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38590 (eval $ac_try) 2>&5
38591 ac_status=$?
38592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38593 (exit $ac_status); }; }; then
38594
38595 wx_cv_gcc31=yes
38596
38597else
38598 echo "$as_me: failed program was:" >&5
38599sed 's/^/| /' conftest.$ac_ext >&5
38600
38601
38602 wx_cv_gcc31=no
38603
38604
38605fi
ac1cb8d3 38606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38607
38608fi
38609echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38610echo "${ECHO_T}$wx_cv_gcc31" >&6
38611 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38612
38613D='$'
38614cat <<EOF >shared-ld-sh
a848cd7e
SC
38615#!/bin/sh
38616#-----------------------------------------------------------------------------
38617#-- Name: distrib/mac/shared-ld-sh
38618#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38619#-- Author: Gilles Depeyrot
38620#-- Copyright: (c) 2002 Gilles Depeyrot
38621#-- Licence: any use permitted
38622#-----------------------------------------------------------------------------
38623
38624verbose=0
38625args=""
38626objects=""
38627linking_flag="-dynamiclib"
38628
473276a9
VS
38629while test ${D}# -gt 0; do
38630 case ${D}1 in
a848cd7e
SC
38631
38632 -v)
38633 verbose=1
38634 ;;
38635
38636 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38637 # collect these options and values
473276a9 38638 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38639 shift
38640 ;;
38641
38642 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38643 # collect these options
473276a9 38644 args="${D}{args} ${D}1"
a848cd7e
SC
38645 ;;
38646
38647 -dynamiclib|-bundle)
473276a9 38648 linking_flag="${D}1"
a848cd7e
SC
38649 ;;
38650
38651 -*)
473276a9 38652 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38653 exit 1
38654 ;;
38655
38656 *.o | *.a | *.dylib)
38657 # collect object files
473276a9 38658 objects="${D}{objects} ${D}1"
a848cd7e
SC
38659 ;;
38660
38661 *)
473276a9 38662 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38663 exit 1
38664 ;;
38665
38666 esac
38667 shift
38668done
38669
38670#
38671# Link one module containing all the others
38672#
473276a9
VS
38673if test ${D}{verbose} = 1; then
38674 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38675fi
473276a9
VS
38676c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38677status=${D}?
38678if test ${D}{status} != 0; then
38679 exit ${D}{status}
a848cd7e
SC
38680fi
38681
38682#
38683# Link the shared library from the single module created
38684#
473276a9
VS
38685if test ${D}{verbose} = 1; then
38686 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38687fi
473276a9
VS
38688c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38689status=${D}?
38690if test ${D}{status} != 0; then
38691 exit ${D}{status}
a848cd7e
SC
38692fi
38693
38694#
38695# Remove intermediate module
38696#
473276a9 38697rm -f master.${D}${D}.o
a848cd7e
SC
38698
38699exit 0
38700EOF
473276a9 38701
a848cd7e
SC
38702 chmod +x shared-ld-sh
38703
38704 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38705 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38706 SHARED_LD_CXX="$SHARED_LD_CC"
38707 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38708 else
38709 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38710 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38711 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38712 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38713 fi
38714
38715 PIC_FLAG="-dynamic -fPIC"
38716 ;;
38717
38718 *-*-aix* )
38719 if test "x$GCC" != "xyes"; then
38720 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38721set dummy makeC++SharedLib; ac_word=$2
38722echo "$as_me:$LINENO: checking for $ac_word" >&5
38723echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38724if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38725 echo $ECHO_N "(cached) $ECHO_C" >&6
38726else
38727 if test -n "$AIX_CXX_LD"; then
38728 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38729else
38730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38731for as_dir in $PATH
38732do
38733 IFS=$as_save_IFS
38734 test -z "$as_dir" && as_dir=.
38735 for ac_exec_ext in '' $ac_executable_extensions; do
38736 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38737 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38739 break 2
38740 fi
38741done
38742done
38743
38744 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38745fi
38746fi
38747AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38748if test -n "$AIX_CXX_LD"; then
38749 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38750echo "${ECHO_T}$AIX_CXX_LD" >&6
38751else
38752 echo "$as_me:$LINENO: result: no" >&5
38753echo "${ECHO_T}no" >&6
38754fi
38755
38756 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38757 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38758 fi
38759 ;;
38760
38761 *-*-beos* )
38762 SHARED_LD_CC="${LD} -shared -o"
38763 SHARED_LD_CXX="${LD} -shared -o"
38764 ;;
38765
38766 *-*-irix* )
38767 if test "x$GCC" != "xyes"; then
38768 PIC_FLAG="-KPIC"
38769 fi
38770 ;;
38771
38772 *-*-cygwin* | *-*-mingw32* )
38773 PIC_FLAG=""
38774 ;;
38775
38776 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38777 SHARED_LD_CC="`pwd`/dllar.sh -o"
38778 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38779 PIC_FLAG=""
473276a9
VS
38780
38781D='$'
38782cat <<EOF >dllar.sh
38783#!/bin/sh
38784#
38785# dllar - a tool to build both a .dll and an .a file
38786# from a set of object (.o) files for EMX/OS2.
38787#
38788# Written by Andrew Zabolotny, bit@freya.etu.ru
38789# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38790#
38791# This script will accept a set of files on the command line.
38792# All the public symbols from the .o files will be exported into
38793# a .DEF file, then linker will be run (through gcc) against them to
38794# build a shared library consisting of all given .o files. All libraries
38795# (.a) will be first decompressed into component .o files then act as
38796# described above. You can optionally give a description (-d "description")
38797# which will be put into .DLL. To see the list of accepted options (as well
38798# as command-line format) simply run this program without options. The .DLL
38799# is built to be imported by name (there is no guarantee that new versions
38800# of the library you build will have same ordinals for same symbols).
38801#
38802# dllar is free software; you can redistribute it and/or modify
38803# it under the terms of the GNU General Public License as published by
38804# the Free Software Foundation; either version 2, or (at your option)
38805# any later version.
38806#
38807# dllar is distributed in the hope that it will be useful,
38808# but WITHOUT ANY WARRANTY; without even the implied warranty of
38809# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38810# GNU General Public License for more details.
38811#
38812# You should have received a copy of the GNU General Public License
38813# along with dllar; see the file COPYING. If not, write to the Free
38814# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38815# 02111-1307, USA.
38816
38817# To successfuly run this program you will need:
38818# - Current drive should have LFN support (HPFS, ext2, network, etc)
38819# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38820# - gcc
38821# (used to build the .dll)
38822# - emxexp
38823# (used to create .def file from .o files)
38824# - emximp
38825# (used to create .a file from .def file)
38826# - GNU text utilites (cat, sort, uniq)
38827# used to process emxexp output
38828# - GNU file utilities (mv, rm)
38829# - GNU sed
38830# - lxlite (optional, see flag below)
38831# (used for general .dll cleanup)
38832#
38833
38834flag_USE_LXLITE=1;
38835
38836#
38837# helper functions
38838# basnam, variant of basename, which does _not_ remove the path, _iff_
38839# second argument (suffix to remove) is given
38840basnam(){
38841 case ${D}# in
38842 1)
38843 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38844 ;;
38845 2)
38846 echo ${D}1 | sed 's/'${D}2'${D}//'
38847 ;;
38848 *)
38849 echo "error in basnam ${D}*"
38850 exit 8
38851 ;;
38852 esac
38853}
38854
38855# Cleanup temporary files and output
38856CleanUp() {
38857 cd ${D}curDir
38858 for i in ${D}inputFiles ; do
38859 case ${D}i in
38860 *!)
38861 rm -rf \`basnam ${D}i !\`
38862 ;;
38863 *)
38864 ;;
38865 esac
38866 done
38867
38868 # Kill result in case of failure as there is just to many stupid make/nmake
38869 # things out there which doesn't do this.
2057db16 38870 if [] ${D}# -eq 0 []; then
473276a9
VS
38871 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38872 fi
38873}
38874
38875# Print usage and exit script with rc=1.
38876PrintHelp() {
2057db16
VS
38877 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
38878 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
38879 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
38880 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
38881 echo ' []*.o[] []*.a[]'
473276a9
VS
38882 echo '*> "output_file" should have no extension.'
38883 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38884 echo ' The import library name is derived from this and is set to "name".a,'
38885 echo ' unless overridden by -import'
38886 echo '*> "importlib_name" should have no extension.'
38887 echo ' If it has the .o, or .a extension, it is automatically removed.'
38888 echo ' This name is used as the import library name and may be longer and'
38889 echo ' more descriptive than the DLL name which has to follow the old '
38890 echo ' 8.3 convention of FAT.'
38891 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38892 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38893 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
38894 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
38895 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
38896 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38897 echo ' If the last character of a symbol is "*", all symbols beginning'
38898 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 38899 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 38900 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 38901 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 38902 echo ' C runtime DLLs.'
2057db16 38903 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
38904 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38905 echo ' unchanged to GCC at the end of command line.'
38906 echo '*> If you create a DLL from a library and you do not specify -o,'
38907 echo ' the basename for DLL and import library will be set to library name,'
38908 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38909 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38910 echo ' library will be renamed into gcc_s.a.'
38911 echo '--------'
38912 echo 'Example:'
38913 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38914 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38915 CleanUp
38916 exit 1
38917}
38918
38919# Execute a command.
38920# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38921# @Uses Whatever CleanUp() uses.
38922doCommand() {
38923 echo "${D}*"
38924 eval ${D}*
38925 rcCmd=${D}?
38926
2057db16 38927 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
38928 echo "command failed, exit code="${D}rcCmd
38929 CleanUp
38930 exit ${D}rcCmd
38931 fi
38932}
38933
38934# main routine
38935# setup globals
38936cmdLine=${D}*
38937outFile=""
38938outimpFile=""
38939inputFiles=""
38940description=""
38941CC=gcc.exe
38942CFLAGS="-s -Zcrtdll"
38943EXTRA_CFLAGS=""
38944EXPORT_BY_ORDINALS=0
38945exclude_symbols=""
38946library_flags=""
38947curDir=\`pwd\`
38948curDirS=curDir
38949case ${D}curDirS in
38950*/)
38951 ;;
38952*)
38953 curDirS=${D}{curDirS}"/"
38954 ;;
38955esac
38956# Parse commandline
38957libsToLink=0
2057db16 38958while [] ${D}1 []; do
473276a9
VS
38959 case ${D}1 in
38960 -ord*)
38961 EXPORT_BY_ORDINALS=1;
38962 ;;
38963 -o*)
38964 shift
38965 outFile=${D}1
38966 ;;
38967 -i*)
38968 shift
38969 outimpFile=${D}1
38970 ;;
38971 -d*)
38972 shift
38973 description=${D}1
38974 ;;
38975 -f*)
38976 shift
38977 CFLAGS=${D}1
38978 ;;
38979 -c*)
38980 shift
38981 CC=${D}1
38982 ;;
38983 -h*)
38984 PrintHelp
38985 ;;
38986 -ex*)
38987 shift
38988 exclude_symbols=${D}{exclude_symbols}${D}1" "
38989 ;;
38990 -libf*)
38991 shift
38992 library_flags=${D}{library_flags}${D}1" "
38993 ;;
38994 -nocrt*)
38995 CFLAGS="-s"
38996 ;;
38997 -nolxl*)
38998 flag_USE_LXLITE=0
38999 ;;
39000 -* | /*)
39001 case ${D}1 in
39002 -L* | -l*)
39003 libsToLink=1
39004 ;;
39005 *)
39006 ;;
39007 esac
39008 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39009 ;;
39010 *)
39011 found=0;
2057db16 39012 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39013 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39014 else
39015 for file in ${D}1 ; do
2057db16 39016 if [] -f ${D}file []; then
473276a9
VS
39017 inputFiles="${D}{inputFiles} ${D}file"
39018 found=1
39019 fi
39020 done
2057db16 39021 if [] ${D}found -eq 0 []; then
473276a9
VS
39022 echo "ERROR: No file(s) found: "${D}1
39023 exit 8
39024 fi
39025 fi
39026 ;;
39027 esac
39028 shift
39029done # iterate cmdline words
39030
39031#
2057db16 39032if [] -z "${D}inputFiles" []; then
473276a9
VS
39033 echo "dllar: no input files"
39034 PrintHelp
39035fi
39036
39037# Now extract all .o files from .a files
39038newInputFiles=""
39039for file in ${D}inputFiles ; do
39040 case ${D}file in
39041 *.a | *.lib)
39042 case ${D}file in
39043 *.a)
39044 suffix=".a"
39045 AR="ar"
39046 ;;
39047 *.lib)
39048 suffix=".lib"
39049 AR="emxomfar"
39050 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39051 ;;
39052 *)
39053 ;;
39054 esac
39055 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39056 mkdir ${D}dirname
2057db16 39057 if [] ${D}? -ne 0 []; then
473276a9
VS
39058 echo "Failed to create subdirectory ./${D}dirname"
39059 CleanUp
39060 exit 8;
39061 fi
39062 # Append '!' to indicate archive
39063 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39064 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39065 cd ${D}curDir
39066 found=0;
39067 for subfile in ${D}dirname/*.o* ; do
2057db16 39068 if [] -f ${D}subfile []; then
473276a9 39069 found=1
2057db16 39070 if [] -s ${D}subfile []; then
473276a9
VS
39071 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39072 newInputFiles="${D}newInputFiles ${D}subfile"
39073 fi
39074 fi
39075 done
2057db16 39076 if [] ${D}found -eq 0 []; then
473276a9
VS
39077 echo "WARNING: there are no files in archive \'${D}file\'"
39078 fi
39079 ;;
39080 *)
39081 newInputFiles="${D}{newInputFiles} ${D}file"
39082 ;;
39083 esac
39084done
39085inputFiles="${D}newInputFiles"
39086
39087# Output filename(s).
39088do_backup=0;
2057db16 39089if [] -z ${D}outFile []; then
473276a9
VS
39090 do_backup=1;
39091 set outFile ${D}inputFiles; outFile=${D}2
39092fi
39093
39094# If it is an archive, remove the '!' and the '_%' suffixes
39095case ${D}outFile in
39096*_%!)
39097 outFile=\`basnam ${D}outFile _%!\`
39098 ;;
39099*)
39100 ;;
39101esac
39102case ${D}outFile in
39103*.dll)
39104 outFile=\`basnam ${D}outFile .dll\`
39105 ;;
39106*.DLL)
39107 outFile=\`basnam ${D}outFile .DLL\`
39108 ;;
39109*.o)
39110 outFile=\`basnam ${D}outFile .o\`
39111 ;;
39112*.obj)
39113 outFile=\`basnam ${D}outFile .obj\`
39114 ;;
39115*.a)
39116 outFile=\`basnam ${D}outFile .a\`
39117 ;;
39118*.lib)
39119 outFile=\`basnam ${D}outFile .lib\`
39120 ;;
39121*)
39122 ;;
39123esac
39124case ${D}outimpFile in
39125*.a)
39126 outimpFile=\`basnam ${D}outimpFile .a\`
39127 ;;
39128*.lib)
39129 outimpFile=\`basnam ${D}outimpFile .lib\`
39130 ;;
39131*)
39132 ;;
39133esac
2057db16 39134if [] -z ${D}outimpFile []; then
473276a9
VS
39135 outimpFile=${D}outFile
39136fi
39137defFile="${D}{outFile}.def"
39138arcFile="${D}{outimpFile}.a"
39139arcFile2="${D}{outimpFile}.lib"
39140dllFile="${D}outFile"
39141# Add suffix to dllFile later, first we need a version to use as
39142# name in .def file.
39143
2057db16
VS
39144if [] ${D}do_backup -ne 0 [] ; then
39145 if [] -f ${D}arcFile [] ; then
473276a9
VS
39146 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39147 fi
2057db16 39148 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39149 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39150 fi
39151fi
39152
39153# Extract public symbols from all the object files.
39154tmpdefFile=${D}{defFile}_%
39155rm -f ${D}tmpdefFile
39156for file in ${D}inputFiles ; do
39157 case ${D}file in
39158 *!)
39159 ;;
39160 *)
39161 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39162 ;;
39163 esac
39164done
39165
39166# Create the def file.
39167rm -f ${D}defFile
39168echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39169dllFile="${D}dllFile.dll"
2057db16 39170if [] -n ${D}description []; then
473276a9
VS
39171 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39172fi
39173echo "EXPORTS" >> ${D}defFile
39174
39175doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39176grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39177
39178# Checks if the export is ok or not.
39179for word in ${D}exclude_symbols; do
39180 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39181 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39182done
39183
39184
2057db16 39185if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39186 sed "=" < ${D}tmpdefFile | \
39187 sed '
39188 N
39189 : loop
2057db16 39190 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39191 t loop
39192 ' > ${D}{tmpdefFile}%
39193 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39194else
39195 rm -f ${D}{tmpdefFile}%
39196fi
39197cat ${D}tmpdefFile >> ${D}defFile
39198rm -f ${D}tmpdefFile
39199
39200# Do linking, create implib, and apply lxlite.
39201gccCmdl="";
39202for file in ${D}inputFiles ; do
39203 case ${D}file in
39204 *!)
39205 ;;
39206 *)
39207 gccCmdl="${D}gccCmdl ${D}file"
39208 ;;
39209 esac
39210done
39211doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39212touch "${D}{outFile}.dll"
39213
39214doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39215if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39216 add_flags="";
2057db16 39217 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39218 add_flags="-ynd"
39219 fi
39220 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39221fi
39222doCommand "emxomf -s -l ${D}arcFile"
39223
39224# Successful exit.
39225CleanUp 1
39226exit 0
39227EOF
39228
39229 chmod +x dllar.sh
a848cd7e
SC
39230 ;;
39231
39232 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39233 *-*-sunos4* | \
39234 *-*-osf* | \
39235 *-*-dgux5* | \
39236 *-*-sysv5* )
39237 ;;
39238
39239 *)
39240 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39241echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39242 { (exit 1); exit 1; }; }
39243 esac
39244
2057db16
VS
39245 if test "x$PIC_FLAG" != "x" ; then
39246 PIC_FLAG="$PIC_FLAG -DPIC"
39247 fi
39248
a848cd7e
SC
39249 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39250 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39251 fi
39252 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39253 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39254 fi
39255
39256
39257
39258
39259
39260
39261
39262
39263 USE_SOVERSION=0
39264 USE_SOVERLINUX=0
39265 USE_SOVERSOLARIS=0
39266 USE_SOSYMLINKS=0
39267 USE_MACVERSION=0
39268 SONAME_FLAG=
39269
39270 case "${BAKEFILE_HOST}" in
39271 *-*-linux* )
39272 SONAME_FLAG="-Wl,-soname,"
39273 USE_SOVERSION=1
39274 USE_SOVERLINUX=1
39275 USE_SOSYMLINKS=1
39276 ;;
39277
39278 *-*-solaris2* )
39279 SONAME_FLAG="-h "
39280 USE_SOVERSION=1
39281 USE_SOVERSOLARIS=1
39282 USE_SOSYMLINKS=1
39283 ;;
39284
39285 *-*-darwin* )
39286 USE_MACVERSION=1
39287 USE_SOVERSION=1
39288 USE_SOSYMLINKS=1
39289 ;;
39290 esac
39291
39292
39293
39294
39295
39296
39297
39298
39299
39300 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39301echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39302 DEPS_TRACKING=0
39303
39304 if test "x$GCC" = "xyes"; then
39305 DEPSMODE=gcc
39306 DEPS_TRACKING=1
39307 case "${BAKEFILE_HOST}" in
39308 powerpc-*-darwin* )
39309 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39310 ;;
39311 * )
39312 DEPSFLAG_GCC="-MMD"
39313 ;;
39314 esac
39315 echo "$as_me:$LINENO: result: gcc" >&5
39316echo "${ECHO_T}gcc" >&6
39317 else
39318 echo "$as_me:$LINENO: result: none" >&5
39319echo "${ECHO_T}none" >&6
39320 fi
39321
39322 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39323
39324D='$'
39325cat <<EOF >bk-deps
a848cd7e
SC
39326#!/bin/sh
39327
39328# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39329# script. It is used to track C/C++ files dependencies in portable way.
39330#
39331# Permission is given to use this file in any way.
39332
473276a9 39333DEPSMODE=${DEPSMODE}
a848cd7e 39334DEPSDIR=.deps
473276a9 39335DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39336
473276a9 39337mkdir -p ${D}DEPSDIR
a848cd7e 39338
473276a9
VS
39339if test ${D}DEPSMODE = gcc ; then
39340 ${D}* ${D}{DEPSFLAG_GCC}
39341 status=${D}?
39342 if test ${D}{status} != 0 ; then
39343 exit ${D}{status}
a848cd7e
SC
39344 fi
39345 # move created file to the location we want it in:
473276a9
VS
39346 while test ${D}# -gt 0; do
39347 case "${D}1" in
a848cd7e
SC
39348 -o )
39349 shift
473276a9 39350 objfile=${D}1
a848cd7e
SC
39351 ;;
39352 -* )
39353 ;;
39354 * )
473276a9 39355 srcfile=${D}1
a848cd7e
SC
39356 ;;
39357 esac
39358 shift
39359 done
473276a9
VS
39360 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39361 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39362 if test -f ${D}depfile ; then
39363 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39364 rm -f ${D}depfile
a848cd7e 39365 else
473276a9
VS
39366 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39367 if test -f ${D}depfile ; then
39368 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39369 rm -f ${D}depfile
a848cd7e
SC
39370 fi
39371 fi
39372 exit 0
39373else
473276a9
VS
39374 ${D}*
39375 exit ${D}?
a848cd7e
SC
39376fi
39377EOF
473276a9 39378
a848cd7e
SC
39379 chmod +x bk-deps
39380 fi
39381
39382
39383
39384
39385 RESCOMP=
39386 SETFILE=
39387
39388 case ${BAKEFILE_HOST} in
39389 *-*-cygwin* | *-*-mingw32* )
39390 if test "$build" != "$host" ; then
39391 RESCOMP=$host_alias-windres
39392 else
39393 # Extract the first word of "windres", so it can be a program name with args.
39394set dummy windres; ac_word=$2
39395echo "$as_me:$LINENO: checking for $ac_word" >&5
39396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39397if test "${ac_cv_prog_RESCOMP+set}" = set; then
39398 echo $ECHO_N "(cached) $ECHO_C" >&6
39399else
39400 if test -n "$RESCOMP"; then
39401 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39402else
39403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39404for as_dir in $PATH
39405do
39406 IFS=$as_save_IFS
39407 test -z "$as_dir" && as_dir=.
39408 for ac_exec_ext in '' $ac_executable_extensions; do
39409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39410 ac_cv_prog_RESCOMP="windres"
39411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39412 break 2
39413 fi
39414done
39415done
39416
39417 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39418fi
39419fi
39420RESCOMP=$ac_cv_prog_RESCOMP
39421if test -n "$RESCOMP"; then
39422 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39423echo "${ECHO_T}$RESCOMP" >&6
39424else
39425 echo "$as_me:$LINENO: result: no" >&5
39426echo "${ECHO_T}no" >&6
39427fi
39428
39429 fi
39430 ;;
39431
39432 *-*-darwin* )
39433 # Extract the first word of "Rez", so it can be a program name with args.
39434set dummy Rez; ac_word=$2
39435echo "$as_me:$LINENO: checking for $ac_word" >&5
39436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39437if test "${ac_cv_prog_RESCOMP+set}" = set; then
39438 echo $ECHO_N "(cached) $ECHO_C" >&6
39439else
39440 if test -n "$RESCOMP"; then
39441 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39442else
39443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39444for as_dir in $PATH
39445do
39446 IFS=$as_save_IFS
39447 test -z "$as_dir" && as_dir=.
39448 for ac_exec_ext in '' $ac_executable_extensions; do
39449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39450 ac_cv_prog_RESCOMP="Rez"
39451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39452 break 2
39453 fi
39454done
39455done
39456
39457 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39458fi
39459fi
39460RESCOMP=$ac_cv_prog_RESCOMP
39461if test -n "$RESCOMP"; then
39462 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39463echo "${ECHO_T}$RESCOMP" >&6
39464else
39465 echo "$as_me:$LINENO: result: no" >&5
39466echo "${ECHO_T}no" >&6
39467fi
39468
39469 # Extract the first word of "SetFile", so it can be a program name with args.
39470set dummy SetFile; ac_word=$2
39471echo "$as_me:$LINENO: checking for $ac_word" >&5
39472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39473if test "${ac_cv_prog_SETFILE+set}" = set; then
39474 echo $ECHO_N "(cached) $ECHO_C" >&6
39475else
39476 if test -n "$SETFILE"; then
39477 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39478else
39479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39480for as_dir in $PATH
39481do
39482 IFS=$as_save_IFS
39483 test -z "$as_dir" && as_dir=.
39484 for ac_exec_ext in '' $ac_executable_extensions; do
39485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39486 ac_cv_prog_SETFILE="SetFile"
39487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39488 break 2
39489 fi
39490done
39491done
39492
39493 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39494fi
39495fi
39496SETFILE=$ac_cv_prog_SETFILE
39497if test -n "$SETFILE"; then
39498 echo "$as_me:$LINENO: result: $SETFILE" >&5
39499echo "${ECHO_T}$SETFILE" >&6
39500else
39501 echo "$as_me:$LINENO: result: no" >&5
39502echo "${ECHO_T}no" >&6
39503fi
39504
39505 ;;
39506 esac
39507
39508
39509
39510
39511
2057db16 39512 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39513
dcc1b6ad 39514
ceec2216 39515
9f45f08e 39516BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39517
646b6ec1 39518
74b84332 39519
a848cd7e
SC
39520 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39521if test "${enable_precomp_headers+set}" = set; then
39522 enableval="$enable_precomp_headers"
39523 bk_use_pch="$enableval"
39524fi;
39525
39526 GCC_PCH=0
39527
39528 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39529 if test "x$GCC" = "xyes"; then
39530 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39531echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39532 cat >conftest.$ac_ext <<_ACEOF
39533/* confdefs.h. */
39534_ACEOF
39535cat confdefs.h >>conftest.$ac_ext
39536cat >>conftest.$ac_ext <<_ACEOF
39537/* end confdefs.h. */
39538
39539int
39540main ()
39541{
39542
39543 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39544 #error "no pch support"
39545 #endif
39546 #if (__GNUC__ < 3)
39547 #error "no pch support"
39548 #endif
39549 #if (__GNUC__ == 3) && \
39550 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39551 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39552 #error "no pch support"
39553 #endif
39554
39555 ;
39556 return 0;
39557}
39558_ACEOF
39559rm -f conftest.$ac_objext
39560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39561 (eval $ac_compile) 2>conftest.er1
a848cd7e 39562 ac_status=$?
ac1cb8d3
VS
39563 grep -v '^ *+' conftest.er1 >conftest.err
39564 rm -f conftest.er1
39565 cat conftest.err >&5
a848cd7e
SC
39566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39567 (exit $ac_status); } &&
7714864e 39568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39570 (eval $ac_try) 2>&5
39571 ac_status=$?
39572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39573 (exit $ac_status); }; } &&
39574 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39576 (eval $ac_try) 2>&5
39577 ac_status=$?
39578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39579 (exit $ac_status); }; }; then
39580
39581 echo "$as_me:$LINENO: result: yes" >&5
39582echo "${ECHO_T}yes" >&6
a848cd7e
SC
39583 GCC_PCH=1
39584
39585else
39586 echo "$as_me: failed program was:" >&5
39587sed 's/^/| /' conftest.$ac_ext >&5
39588
39589
39590 echo "$as_me:$LINENO: result: no" >&5
39591echo "${ECHO_T}no" >&6
39592
39593fi
ac1cb8d3 39594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39595 if test $GCC_PCH = 1 ; then
39596 cat <<EOF >bk-make-pch
39597#!/bin/sh
39598
39599# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39600# script. It is used to generated precompiled headers.
39601#
39602# Permission is given to use this file in any way.
39603
39604outfile="\${1}"
39605header="\${2}"
39606shift
39607shift
39608
39609compiler=
39610headerfile=
39611while test \${#} -gt 0; do
39612 case "\${1}" in
39613 -I* )
39614 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39615 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39616 headerfile="\${incdir}/\${header}"
39617 fi
39618 ;;
39619 esac
39620 compiler="\${compiler} \${1}"
39621 shift
39622done
39623
39624if test "x\${headerfile}" = "x" ; then
39625 echo "error: can't find header \${header} in include paths" >2
39626else
39627 if test -f \${outfile} ; then
39628 rm -f \${outfile}
39629 else
39630 mkdir -p \`dirname \${outfile}\`
39631 fi
39632 depsfile=".deps/\`basename \${outfile}\`.d"
39633 mkdir -p .deps
39634 # can do this because gcc is >= 3.4:
39635 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39636 exit \${?}
39637fi
39638EOF
39639 chmod +x bk-make-pch
39640 fi
39641 fi
39642 fi
39643
39644
39645
39646
39647
dcc1b6ad
VS
39648
39649
39650 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39651if test "${enable_precomp_headers+set}" = set; then
39652 enableval="$enable_precomp_headers"
39653 bk_use_pch="$enableval"
39654fi;
39655
39656 GCC_PCH=0
39657
39658 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39659 if test "x$GCC" = "xyes"; then
39660 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39661echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39662 cat >conftest.$ac_ext <<_ACEOF
39663/* confdefs.h. */
39664_ACEOF
39665cat confdefs.h >>conftest.$ac_ext
39666cat >>conftest.$ac_ext <<_ACEOF
39667/* end confdefs.h. */
39668
39669int
39670main ()
39671{
39672
39673 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39674 #error "no pch support"
39675 #endif
39676 #if (__GNUC__ < 3)
39677 #error "no pch support"
39678 #endif
39679 #if (__GNUC__ == 3) && \
39680 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39681 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39682 #error "no pch support"
39683 #endif
39684
39685 ;
39686 return 0;
39687}
39688_ACEOF
39689rm -f conftest.$ac_objext
39690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39691 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39692 ac_status=$?
ac1cb8d3
VS
39693 grep -v '^ *+' conftest.er1 >conftest.err
39694 rm -f conftest.er1
39695 cat conftest.err >&5
dcc1b6ad
VS
39696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39697 (exit $ac_status); } &&
7714864e 39698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39700 (eval $ac_try) 2>&5
39701 ac_status=$?
39702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39703 (exit $ac_status); }; } &&
39704 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39706 (eval $ac_try) 2>&5
39707 ac_status=$?
39708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39709 (exit $ac_status); }; }; then
39710
39711 echo "$as_me:$LINENO: result: yes" >&5
39712echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
39713 GCC_PCH=1
39714
39715else
39716 echo "$as_me: failed program was:" >&5
39717sed 's/^/| /' conftest.$ac_ext >&5
39718
39719
39720 echo "$as_me:$LINENO: result: no" >&5
39721echo "${ECHO_T}no" >&6
39722
39723fi
ac1cb8d3 39724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39725 if test $GCC_PCH = 1 ; then
39726 cat <<EOF >bk-make-pch
39727#!/bin/sh
39728
39729# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39730# script. It is used to generated precompiled headers.
39731#
39732# Permission is given to use this file in any way.
39733
39734outfile="\${1}"
39735header="\${2}"
39736shift
39737shift
39738
39739compiler=
39740headerfile=
39741while test \${#} -gt 0; do
39742 case "\${1}" in
39743 -I* )
39744 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39745 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39746 headerfile="\${incdir}/\${header}"
39747 fi
39748 ;;
39749 esac
39750 compiler="\${compiler} \${1}"
39751 shift
39752done
39753
39754if test "x\${headerfile}" = "x" ; then
39755 echo "error: can't find header \${header} in include paths" >2
39756else
39757 if test -f \${outfile} ; then
39758 rm -f \${outfile}
39759 else
39760 mkdir -p \`dirname \${outfile}\`
39761 fi
39762 depsfile=".deps/\`basename \${outfile}\`.d"
39763 mkdir -p .deps
39764 # can do this because gcc is >= 3.4:
39765 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39766 exit \${?}
39767fi
39768EOF
39769 chmod +x bk-make-pch
39770 fi
39771 fi
39772 fi
39773
39774
39775
a848cd7e
SC
39776 COND_BUILD_DEBUG="#"
39777 if test "x$BUILD" = "xdebug" ; then
39778 COND_BUILD_DEBUG=""
39779 fi
39780
39781 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39782 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39783 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39784 fi
39785
39786 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39787 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39788 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39789 fi
39790
39791 COND_BUILD_DEBUG_UNICODE_0="#"
39792 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39793 COND_BUILD_DEBUG_UNICODE_0=""
39794 fi
39795
39796 COND_BUILD_DEBUG_UNICODE_1="#"
39797 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39798 COND_BUILD_DEBUG_UNICODE_1=""
39799 fi
39800
39801 COND_BUILD_RELEASE="#"
39802 if test "x$BUILD" = "xrelease" ; then
39803 COND_BUILD_RELEASE=""
39804 fi
39805
39806 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39807 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39808 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39809 fi
39810
39811 COND_BUILD_RELEASE_UNICODE_0="#"
39812 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39813 COND_BUILD_RELEASE_UNICODE_0=""
39814 fi
39815
39816 COND_BUILD_RELEASE_UNICODE_1="#"
39817 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39818 COND_BUILD_RELEASE_UNICODE_1=""
39819 fi
39820
39821 COND_DEBUG_FLAG_1="#"
39822 if test "x$DEBUG_FLAG" = "x1" ; then
39823 COND_DEBUG_FLAG_1=""
39824 fi
39825
39826 COND_DEBUG_INFO_0="#"
39827 if test "x$DEBUG_INFO" = "x0" ; then
39828 COND_DEBUG_INFO_0=""
39829 fi
39830
39831 COND_DEBUG_INFO_1="#"
39832 if test "x$DEBUG_INFO" = "x1" ; then
39833 COND_DEBUG_INFO_1=""
39834 fi
39835
39836 COND_DEPS_TRACKING_0="#"
39837 if test "x$DEPS_TRACKING" = "x0" ; then
39838 COND_DEPS_TRACKING_0=""
39839 fi
39840
39841 COND_DEPS_TRACKING_1="#"
39842 if test "x$DEPS_TRACKING" = "x1" ; then
39843 COND_DEPS_TRACKING_1=""
39844 fi
39845
39846 COND_GCC_PCH_1="#"
39847 if test "x$GCC_PCH" = "x1" ; then
39848 COND_GCC_PCH_1=""
39849 fi
39850
39851 COND_MONOLITHIC_0="#"
39852 if test "x$MONOLITHIC" = "x0" ; then
39853 COND_MONOLITHIC_0=""
39854 fi
39855
39856 COND_MONOLITHIC_0_SHARED_0="#"
39857 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39858 COND_MONOLITHIC_0_SHARED_0=""
39859 fi
39860
39861 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39862 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39863 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39864 fi
39865
39866 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39867 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39868 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39869 fi
39870
39871 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39872 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39873 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39874 fi
39875
39876 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39877 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39878 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39879 fi
39880
ceec2216
RL
39881 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
39882 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
39883 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
39884 fi
39885
a848cd7e
SC
39886 COND_MONOLITHIC_0_SHARED_1="#"
39887 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39888 COND_MONOLITHIC_0_SHARED_1=""
39889 fi
39890
39891 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39892 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39893 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39894 fi
39895
39896 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39897 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39898 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39899 fi
39900
39901 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39902 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39903 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39904 fi
39905
39906 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39907 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39908 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39909 fi
39910
ceec2216
RL
39911 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
39912 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
39913 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
39914 fi
39915
a848cd7e
SC
39916 COND_MONOLITHIC_0_USE_ODBC_1="#"
39917 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39918 COND_MONOLITHIC_0_USE_ODBC_1=""
39919 fi
39920
39921 COND_MONOLITHIC_1="#"
39922 if test "x$MONOLITHIC" = "x1" ; then
39923 COND_MONOLITHIC_1=""
39924 fi
39925
39926 COND_MONOLITHIC_1_SHARED_0="#"
39927 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39928 COND_MONOLITHIC_1_SHARED_0=""
39929 fi
39930
39931 COND_MONOLITHIC_1_SHARED_1="#"
39932 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39933 COND_MONOLITHIC_1_SHARED_1=""
39934 fi
39935
39936 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39937 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39938 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39939 fi
39940
39941 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39942 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39943 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39944 fi
39945
39946 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39947 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39948 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39949 fi
39950
39951 COND_PLATFORM_MACOSX_1="#"
39952 if test "x$PLATFORM_MACOSX" = "x1" ; then
39953 COND_PLATFORM_MACOSX_1=""
39954 fi
39955
39956 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39957 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39958 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39959 fi
39960
39961 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39962 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39963 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39964 fi
39965
39966 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39967 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39968 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39969 fi
39970
ebee3cd0
VS
39971 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
39972 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
39973 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
39974 fi
39975
39976 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
39977 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
39978 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
39979 fi
39980
a848cd7e
SC
39981 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39982 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39983 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39984 fi
39985
39986 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39987 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39988 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39989 fi
39990
39991 COND_PLATFORM_MAC_1="#"
39992 if test "x$PLATFORM_MAC" = "x1" ; then
39993 COND_PLATFORM_MAC_1=""
39994 fi
39995
39996 COND_PLATFORM_OS2_1="#"
39997 if test "x$PLATFORM_OS2" = "x1" ; then
39998 COND_PLATFORM_OS2_1=""
39999 fi
40000
40001 COND_PLATFORM_UNIX_0="#"
40002 if test "x$PLATFORM_UNIX" = "x0" ; then
40003 COND_PLATFORM_UNIX_0=""
40004 fi
40005
40006 COND_PLATFORM_UNIX_1="#"
40007 if test "x$PLATFORM_UNIX" = "x1" ; then
40008 COND_PLATFORM_UNIX_1=""
40009 fi
40010
40011 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40012 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40013 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40014 fi
40015
40016 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40017 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40018 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40019 fi
40020
40021 COND_PLATFORM_WIN32_0="#"
40022 if test "x$PLATFORM_WIN32" = "x0" ; then
40023 COND_PLATFORM_WIN32_0=""
40024 fi
40025
40026 COND_PLATFORM_WIN32_1="#"
40027 if test "x$PLATFORM_WIN32" = "x1" ; then
40028 COND_PLATFORM_WIN32_1=""
40029 fi
40030
40031 COND_SHARED_0="#"
40032 if test "x$SHARED" = "x0" ; then
40033 COND_SHARED_0=""
40034 fi
40035
ceec2216
RL
40036 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40037 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40038 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40039 fi
40040
40041 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40042 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40043 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40044 fi
40045
40046 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40047 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40048 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40049 fi
40050
a848cd7e
SC
40051 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40052 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40053 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40054 fi
40055
40056 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40057 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40058 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40059 fi
40060
40061 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40062 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40063 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40064 fi
40065
40066 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40067 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40068 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40069 fi
40070
40071 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40072 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40073 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40074 fi
40075
40076 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40077 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40078 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40079 fi
40080
40081 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40082 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40083 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40084 fi
40085
40086 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40087 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40088 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40089 fi
40090
40091 COND_SHARED_1="#"
40092 if test "x$SHARED" = "x1" ; then
40093 COND_SHARED_1=""
40094 fi
40095
40096 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40097 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40098 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40099 fi
40100
40101 COND_TOOLKIT_COCOA="#"
40102 if test "x$TOOLKIT" = "xCOCOA" ; then
40103 COND_TOOLKIT_COCOA=""
40104 fi
40105
40106 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40107 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40108 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40109 fi
40110
40111 COND_TOOLKIT_GTK="#"
40112 if test "x$TOOLKIT" = "xGTK" ; then
40113 COND_TOOLKIT_GTK=""
40114 fi
40115
40116 COND_TOOLKIT_GTK_USE_GUI_1="#"
40117 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40118 COND_TOOLKIT_GTK_USE_GUI_1=""
40119 fi
40120
40121 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40122 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40123 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40124 fi
40125
40126 COND_TOOLKIT_MAC="#"
40127 if test "x$TOOLKIT" = "xMAC" ; then
40128 COND_TOOLKIT_MAC=""
40129 fi
40130
40131 COND_TOOLKIT_MAC_USE_GUI_1="#"
40132 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40133 COND_TOOLKIT_MAC_USE_GUI_1=""
40134 fi
40135
40136 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40137 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40138 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40139 fi
40140
40141 COND_TOOLKIT_MGL="#"
40142 if test "x$TOOLKIT" = "xMGL" ; then
40143 COND_TOOLKIT_MGL=""
40144 fi
40145
40146 COND_TOOLKIT_MGL_USE_GUI_1="#"
40147 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40148 COND_TOOLKIT_MGL_USE_GUI_1=""
40149 fi
40150
40151 COND_TOOLKIT_MOTIF="#"
40152 if test "x$TOOLKIT" = "xMOTIF" ; then
40153 COND_TOOLKIT_MOTIF=""
40154 fi
40155
40156 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40157 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40158 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40159 fi
40160
40161 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40162 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40163 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40164 fi
40165
40166 COND_TOOLKIT_MSW="#"
40167 if test "x$TOOLKIT" = "xMSW" ; then
40168 COND_TOOLKIT_MSW=""
40169 fi
40170
40171 COND_TOOLKIT_MSW_USE_GUI_1="#"
40172 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40173 COND_TOOLKIT_MSW_USE_GUI_1=""
40174 fi
40175
40176 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40177 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40178 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40179 fi
40180
40181 COND_TOOLKIT_PM="#"
40182 if test "x$TOOLKIT" = "xPM" ; then
40183 COND_TOOLKIT_PM=""
40184 fi
40185
40186 COND_TOOLKIT_PM_USE_GUI_1="#"
40187 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40188 COND_TOOLKIT_PM_USE_GUI_1=""
40189 fi
40190
40191 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40192 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40193 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40194 fi
40195
3fd9c298
DE
40196 COND_TOOLKIT_WINCE="#"
40197 if test "x$TOOLKIT" = "xWINCE" ; then
40198 COND_TOOLKIT_WINCE=""
40199 fi
40200
40201 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40202 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40203 COND_TOOLKIT_WINCE_USE_GUI_1=""
40204 fi
40205
40206 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40207 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40208 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40209 fi
40210
a848cd7e
SC
40211 COND_TOOLKIT_X11="#"
40212 if test "x$TOOLKIT" = "xX11" ; then
40213 COND_TOOLKIT_X11=""
40214 fi
40215
40216 COND_TOOLKIT_X11_USE_GUI_1="#"
40217 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40218 COND_TOOLKIT_X11_USE_GUI_1=""
40219 fi
40220
40221 COND_UNICODE_1="#"
40222 if test "x$UNICODE" = "x1" ; then
40223 COND_UNICODE_1=""
40224 fi
40225
40226 COND_USE_EXCEPTIONS_0="#"
40227 if test "x$USE_EXCEPTIONS" = "x0" ; then
40228 COND_USE_EXCEPTIONS_0=""
40229 fi
40230
40231 COND_USE_EXCEPTIONS_1="#"
40232 if test "x$USE_EXCEPTIONS" = "x1" ; then
40233 COND_USE_EXCEPTIONS_1=""
40234 fi
40235
40236 COND_USE_GUI_0="#"
40237 if test "x$USE_GUI" = "x0" ; then
40238 COND_USE_GUI_0=""
40239 fi
40240
40241 COND_USE_GUI_1="#"
40242 if test "x$USE_GUI" = "x1" ; then
40243 COND_USE_GUI_1=""
40244 fi
40245
40246 COND_USE_GUI_1_WXUNIV_0="#"
40247 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40248 COND_USE_GUI_1_WXUNIV_0=""
40249 fi
40250
40251 COND_USE_GUI_1_WXUNIV_1="#"
40252 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40253 COND_USE_GUI_1_WXUNIV_1=""
40254 fi
40255
40256 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40257 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40258 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40259 fi
40260
40261 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40262 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40263 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40264 fi
40265
40266 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40267 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40268 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40269 fi
40270
ceec2216
RL
40271 COND_USE_ODBC_1="#"
40272 if test "x$USE_ODBC" = "x1" ; then
40273 COND_USE_ODBC_1=""
40274 fi
40275
a848cd7e
SC
40276 COND_USE_PLUGINS_0="#"
40277 if test "x$USE_PLUGINS" = "x0" ; then
40278 COND_USE_PLUGINS_0=""
40279 fi
40280
40281 COND_USE_SOSYMLINKS_1="#"
40282 if test "x$USE_SOSYMLINKS" = "x1" ; then
40283 COND_USE_SOSYMLINKS_1=""
40284 fi
40285
40286 COND_USE_SOVERLINUX_1="#"
40287 if test "x$USE_SOVERLINUX" = "x1" ; then
40288 COND_USE_SOVERLINUX_1=""
40289 fi
40290
40291 COND_USE_SOVERSION_0="#"
40292 if test "x$USE_SOVERSION" = "x0" ; then
40293 COND_USE_SOVERSION_0=""
40294 fi
40295
40296 COND_USE_SOVERSOLARIS_1="#"
40297 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40298 COND_USE_SOVERSOLARIS_1=""
40299 fi
40300
a13a7f89
RL
40301 COND_USE_XRC_1="#"
40302 if test "x$USE_XRC" = "x1" ; then
40303 COND_USE_XRC_1=""
40304 fi
40305
a848cd7e
SC
40306 COND_WITH_PLUGIN_SDL_1="#"
40307 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40308 COND_WITH_PLUGIN_SDL_1=""
40309 fi
40310
a848cd7e
SC
40311 COND_WXUNIV_1="#"
40312 if test "x$WXUNIV" = "x1" ; then
40313 COND_WXUNIV_1=""
40314 fi
40315
40316 COND_WXUSE_EXPAT_BUILTIN="#"
40317 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40318 COND_WXUSE_EXPAT_BUILTIN=""
40319 fi
40320
40321 COND_WXUSE_LIBJPEG_BUILTIN="#"
40322 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40323 COND_WXUSE_LIBJPEG_BUILTIN=""
40324 fi
40325
40326 COND_WXUSE_LIBPNG_BUILTIN="#"
40327 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40328 COND_WXUSE_LIBPNG_BUILTIN=""
40329 fi
40330
40331 COND_WXUSE_LIBTIFF_BUILTIN="#"
40332 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40333 COND_WXUSE_LIBTIFF_BUILTIN=""
40334 fi
40335
40336 COND_WXUSE_ODBC_BUILTIN="#"
40337 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40338 COND_WXUSE_ODBC_BUILTIN=""
40339 fi
40340
40341 COND_WXUSE_REGEX_BUILTIN="#"
40342 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40343 COND_WXUSE_REGEX_BUILTIN=""
40344 fi
40345
40346 COND_WXUSE_ZLIB_BUILTIN="#"
40347 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40348 COND_WXUSE_ZLIB_BUILTIN=""
40349 fi
40350
dcc1b6ad
VS
40351 COND_BUILD_DEBUG="#"
40352 if test "x$BUILD" = "xdebug" ; then
40353 COND_BUILD_DEBUG=""
40354 fi
40355
40356 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40357 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40358 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40359 fi
40360
40361 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40362 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40363 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40364 fi
40365
40366 COND_BUILD_DEBUG_UNICODE_0="#"
40367 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40368 COND_BUILD_DEBUG_UNICODE_0=""
40369 fi
40370
40371 COND_BUILD_DEBUG_UNICODE_1="#"
40372 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40373 COND_BUILD_DEBUG_UNICODE_1=""
40374 fi
40375
40376 COND_BUILD_RELEASE="#"
40377 if test "x$BUILD" = "xrelease" ; then
40378 COND_BUILD_RELEASE=""
40379 fi
40380
40381 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40382 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40383 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40384 fi
40385
40386 COND_BUILD_RELEASE_UNICODE_0="#"
40387 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40388 COND_BUILD_RELEASE_UNICODE_0=""
40389 fi
40390
40391 COND_BUILD_RELEASE_UNICODE_1="#"
40392 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40393 COND_BUILD_RELEASE_UNICODE_1=""
40394 fi
40395
40396 COND_DEBUG_FLAG_1="#"
40397 if test "x$DEBUG_FLAG" = "x1" ; then
40398 COND_DEBUG_FLAG_1=""
40399 fi
40400
40401 COND_DEBUG_INFO_0="#"
40402 if test "x$DEBUG_INFO" = "x0" ; then
40403 COND_DEBUG_INFO_0=""
40404 fi
40405
40406 COND_DEBUG_INFO_1="#"
40407 if test "x$DEBUG_INFO" = "x1" ; then
40408 COND_DEBUG_INFO_1=""
40409 fi
40410
40411 COND_DEPS_TRACKING_0="#"
40412 if test "x$DEPS_TRACKING" = "x0" ; then
40413 COND_DEPS_TRACKING_0=""
40414 fi
40415
40416 COND_DEPS_TRACKING_1="#"
40417 if test "x$DEPS_TRACKING" = "x1" ; then
40418 COND_DEPS_TRACKING_1=""
40419 fi
40420
40421 COND_GCC_PCH_1="#"
40422 if test "x$GCC_PCH" = "x1" ; then
40423 COND_GCC_PCH_1=""
40424 fi
40425
40426 COND_MONOLITHIC_0="#"
40427 if test "x$MONOLITHIC" = "x0" ; then
40428 COND_MONOLITHIC_0=""
40429 fi
40430
40431 COND_MONOLITHIC_0_SHARED_0="#"
40432 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40433 COND_MONOLITHIC_0_SHARED_0=""
40434 fi
40435
40436 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40437 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40438 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40439 fi
40440
40441 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40442 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40443 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40444 fi
40445
40446 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40447 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40448 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40449 fi
40450
40451 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40452 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40453 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40454 fi
40455
9a8f0513
VS
40456 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40457 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40458 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40459 fi
40460
dcc1b6ad
VS
40461 COND_MONOLITHIC_0_SHARED_1="#"
40462 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40463 COND_MONOLITHIC_0_SHARED_1=""
40464 fi
40465
40466 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40467 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40468 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40469 fi
40470
40471 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40472 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40473 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40474 fi
40475
40476 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40477 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40478 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40479 fi
40480
40481 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40482 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40483 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40484 fi
40485
9a8f0513
VS
40486 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40487 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40488 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40489 fi
40490
dcc1b6ad
VS
40491 COND_MONOLITHIC_0_USE_ODBC_1="#"
40492 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40493 COND_MONOLITHIC_0_USE_ODBC_1=""
40494 fi
40495
40496 COND_MONOLITHIC_1="#"
40497 if test "x$MONOLITHIC" = "x1" ; then
40498 COND_MONOLITHIC_1=""
40499 fi
40500
40501 COND_MONOLITHIC_1_SHARED_0="#"
40502 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40503 COND_MONOLITHIC_1_SHARED_0=""
40504 fi
40505
40506 COND_MONOLITHIC_1_SHARED_1="#"
40507 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40508 COND_MONOLITHIC_1_SHARED_1=""
40509 fi
40510
40511 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40512 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40513 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40514 fi
40515
40516 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40517 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40518 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40519 fi
40520
40521 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40522 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40523 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40524 fi
40525
40526 COND_PLATFORM_MACOSX_1="#"
40527 if test "x$PLATFORM_MACOSX" = "x1" ; then
40528 COND_PLATFORM_MACOSX_1=""
40529 fi
40530
40531 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40532 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40533 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40534 fi
40535
40536 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40537 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40538 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40539 fi
40540
40541 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40542 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40543 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40544 fi
40545
9a8f0513
VS
40546 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40547 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40548 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40549 fi
40550
40551 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40552 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40553 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40554 fi
40555
dcc1b6ad
VS
40556 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40557 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40558 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40559 fi
40560
40561 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40562 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40563 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40564 fi
40565
40566 COND_PLATFORM_MAC_1="#"
40567 if test "x$PLATFORM_MAC" = "x1" ; then
40568 COND_PLATFORM_MAC_1=""
40569 fi
40570
40571 COND_PLATFORM_OS2_1="#"
40572 if test "x$PLATFORM_OS2" = "x1" ; then
40573 COND_PLATFORM_OS2_1=""
40574 fi
40575
40576 COND_PLATFORM_UNIX_0="#"
40577 if test "x$PLATFORM_UNIX" = "x0" ; then
40578 COND_PLATFORM_UNIX_0=""
40579 fi
40580
40581 COND_PLATFORM_UNIX_1="#"
40582 if test "x$PLATFORM_UNIX" = "x1" ; then
40583 COND_PLATFORM_UNIX_1=""
40584 fi
40585
40586 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40587 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40588 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40589 fi
40590
40591 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40592 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40593 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40594 fi
40595
40596 COND_PLATFORM_WIN32_0="#"
40597 if test "x$PLATFORM_WIN32" = "x0" ; then
40598 COND_PLATFORM_WIN32_0=""
40599 fi
40600
40601 COND_PLATFORM_WIN32_1="#"
40602 if test "x$PLATFORM_WIN32" = "x1" ; then
40603 COND_PLATFORM_WIN32_1=""
40604 fi
40605
40606 COND_SHARED_0="#"
40607 if test "x$SHARED" = "x0" ; then
40608 COND_SHARED_0=""
40609 fi
40610
40611 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40612 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40613 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40614 fi
40615
40616 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40617 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40618 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40619 fi
40620
40621 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40622 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40623 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40624 fi
40625
40626 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40627 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40628 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40629 fi
40630
40631 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40632 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40633 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40634 fi
40635
40636 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40637 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40638 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40639 fi
40640
40641 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40642 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40643 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40644 fi
40645
40646 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40647 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40648 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40649 fi
40650
40651 COND_SHARED_1="#"
40652 if test "x$SHARED" = "x1" ; then
40653 COND_SHARED_1=""
40654 fi
40655
40656 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40657 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40658 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40659 fi
40660
40661 COND_TOOLKIT_COCOA="#"
40662 if test "x$TOOLKIT" = "xCOCOA" ; then
40663 COND_TOOLKIT_COCOA=""
40664 fi
40665
40666 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40667 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40668 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40669 fi
40670
40671 COND_TOOLKIT_GTK="#"
40672 if test "x$TOOLKIT" = "xGTK" ; then
40673 COND_TOOLKIT_GTK=""
40674 fi
40675
40676 COND_TOOLKIT_GTK_USE_GUI_1="#"
40677 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40678 COND_TOOLKIT_GTK_USE_GUI_1=""
40679 fi
40680
40681 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40682 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40683 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40684 fi
40685
40686 COND_TOOLKIT_MAC="#"
40687 if test "x$TOOLKIT" = "xMAC" ; then
40688 COND_TOOLKIT_MAC=""
40689 fi
40690
40691 COND_TOOLKIT_MAC_USE_GUI_1="#"
40692 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40693 COND_TOOLKIT_MAC_USE_GUI_1=""
40694 fi
40695
40696 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40697 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40698 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40699 fi
40700
9a8f0513
VS
40701 COND_TOOLKIT_MAC_WXUNIV_0="#"
40702 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40703 COND_TOOLKIT_MAC_WXUNIV_0=""
40704 fi
40705
dcc1b6ad
VS
40706 COND_TOOLKIT_MGL="#"
40707 if test "x$TOOLKIT" = "xMGL" ; then
40708 COND_TOOLKIT_MGL=""
40709 fi
40710
40711 COND_TOOLKIT_MGL_USE_GUI_1="#"
40712 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40713 COND_TOOLKIT_MGL_USE_GUI_1=""
40714 fi
40715
40716 COND_TOOLKIT_MOTIF="#"
40717 if test "x$TOOLKIT" = "xMOTIF" ; then
40718 COND_TOOLKIT_MOTIF=""
40719 fi
40720
40721 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40722 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40723 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40724 fi
40725
40726 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40727 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40728 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40729 fi
40730
40731 COND_TOOLKIT_MSW="#"
40732 if test "x$TOOLKIT" = "xMSW" ; then
40733 COND_TOOLKIT_MSW=""
40734 fi
40735
40736 COND_TOOLKIT_MSW_USE_GUI_1="#"
40737 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40738 COND_TOOLKIT_MSW_USE_GUI_1=""
40739 fi
40740
40741 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40742 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40743 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40744 fi
40745
9a8f0513
VS
40746 COND_TOOLKIT_MSW_WXUNIV_0="#"
40747 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40748 COND_TOOLKIT_MSW_WXUNIV_0=""
40749 fi
40750
dcc1b6ad
VS
40751 COND_TOOLKIT_PM="#"
40752 if test "x$TOOLKIT" = "xPM" ; then
40753 COND_TOOLKIT_PM=""
40754 fi
40755
40756 COND_TOOLKIT_PM_USE_GUI_1="#"
40757 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40758 COND_TOOLKIT_PM_USE_GUI_1=""
40759 fi
40760
40761 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40762 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40763 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40764 fi
40765
9a8f0513
VS
40766 COND_TOOLKIT_PM_WXUNIV_0="#"
40767 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40768 COND_TOOLKIT_PM_WXUNIV_0=""
40769 fi
40770
dcc1b6ad
VS
40771 COND_TOOLKIT_WINCE="#"
40772 if test "x$TOOLKIT" = "xWINCE" ; then
40773 COND_TOOLKIT_WINCE=""
40774 fi
40775
40776 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40777 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40778 COND_TOOLKIT_WINCE_USE_GUI_1=""
40779 fi
40780
40781 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40782 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40783 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40784 fi
40785
40786 COND_TOOLKIT_X11="#"
40787 if test "x$TOOLKIT" = "xX11" ; then
40788 COND_TOOLKIT_X11=""
40789 fi
40790
40791 COND_TOOLKIT_X11_USE_GUI_1="#"
40792 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40793 COND_TOOLKIT_X11_USE_GUI_1=""
40794 fi
40795
40796 COND_UNICODE_1="#"
40797 if test "x$UNICODE" = "x1" ; then
40798 COND_UNICODE_1=""
40799 fi
40800
40801 COND_USE_EXCEPTIONS_0="#"
40802 if test "x$USE_EXCEPTIONS" = "x0" ; then
40803 COND_USE_EXCEPTIONS_0=""
40804 fi
40805
40806 COND_USE_EXCEPTIONS_1="#"
40807 if test "x$USE_EXCEPTIONS" = "x1" ; then
40808 COND_USE_EXCEPTIONS_1=""
40809 fi
40810
40811 COND_USE_GUI_0="#"
40812 if test "x$USE_GUI" = "x0" ; then
40813 COND_USE_GUI_0=""
40814 fi
40815
40816 COND_USE_GUI_1="#"
40817 if test "x$USE_GUI" = "x1" ; then
40818 COND_USE_GUI_1=""
40819 fi
40820
40821 COND_USE_GUI_1_WXUNIV_0="#"
40822 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40823 COND_USE_GUI_1_WXUNIV_0=""
40824 fi
40825
40826 COND_USE_GUI_1_WXUNIV_1="#"
40827 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40828 COND_USE_GUI_1_WXUNIV_1=""
40829 fi
40830
40831 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40832 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40833 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40834 fi
40835
40836 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40837 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40838 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40839 fi
40840
40841 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40842 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40843 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40844 fi
40845
40846 COND_USE_ODBC_1="#"
40847 if test "x$USE_ODBC" = "x1" ; then
40848 COND_USE_ODBC_1=""
40849 fi
40850
40851 COND_USE_PLUGINS_0="#"
40852 if test "x$USE_PLUGINS" = "x0" ; then
40853 COND_USE_PLUGINS_0=""
40854 fi
40855
40856 COND_USE_SOSYMLINKS_1="#"
40857 if test "x$USE_SOSYMLINKS" = "x1" ; then
40858 COND_USE_SOSYMLINKS_1=""
40859 fi
40860
40861 COND_USE_SOVERLINUX_1="#"
40862 if test "x$USE_SOVERLINUX" = "x1" ; then
40863 COND_USE_SOVERLINUX_1=""
40864 fi
40865
40866 COND_USE_SOVERSION_0="#"
40867 if test "x$USE_SOVERSION" = "x0" ; then
40868 COND_USE_SOVERSION_0=""
40869 fi
40870
40871 COND_USE_SOVERSOLARIS_1="#"
40872 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40873 COND_USE_SOVERSOLARIS_1=""
40874 fi
40875
40876 COND_WITH_PLUGIN_SDL_1="#"
40877 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40878 COND_WITH_PLUGIN_SDL_1=""
40879 fi
40880
40881 COND_WXUNIV_1="#"
40882 if test "x$WXUNIV" = "x1" ; then
40883 COND_WXUNIV_1=""
40884 fi
40885
40886 COND_WXUSE_EXPAT_BUILTIN="#"
40887 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40888 COND_WXUSE_EXPAT_BUILTIN=""
40889 fi
40890
40891 COND_WXUSE_LIBJPEG_BUILTIN="#"
40892 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40893 COND_WXUSE_LIBJPEG_BUILTIN=""
40894 fi
40895
40896 COND_WXUSE_LIBPNG_BUILTIN="#"
40897 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40898 COND_WXUSE_LIBPNG_BUILTIN=""
40899 fi
40900
40901 COND_WXUSE_LIBTIFF_BUILTIN="#"
40902 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40903 COND_WXUSE_LIBTIFF_BUILTIN=""
40904 fi
40905
40906 COND_WXUSE_ODBC_BUILTIN="#"
40907 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40908 COND_WXUSE_ODBC_BUILTIN=""
40909 fi
40910
40911 COND_WXUSE_REGEX_BUILTIN="#"
40912 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40913 COND_WXUSE_REGEX_BUILTIN=""
40914 fi
40915
40916 COND_WXUSE_ZLIB_BUILTIN="#"
40917 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40918 COND_WXUSE_ZLIB_BUILTIN=""
40919 fi
40920
a848cd7e
SC
40921
40922
2057db16
VS
40923 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
40924 { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5
40925echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;}
40926 { (exit 1); exit 1; }; }
40927 fi
40928
a848cd7e 40929
ceec2216
RL
40930if test "$wxUSE_SHARED" = "yes"; then
40931
40932 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
40933 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
40934
40935else
40936
40937 EXE_LINKER="$CXX -o"
40938
40939fi
a848cd7e 40940
74b84332 40941GCC_PRAGMA_FLAGS=""
a848cd7e 40942if test $GCC_PCH = 1 ; then
74b84332 40943 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
40944else
40945 case "${host}" in
40946 powerpc-*-darwin* )
74b84332 40947 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 40948 ;;
bea8e651 40949 *-*-mingw32* )
1f344abf
VS
40950 if test "$wxUSE_STL" = "yes" -o \
40951 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40952 "$wxUSE_NO_RTTI" != "yes"; then
40953 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40954echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
40955 cat >conftest.$ac_ext <<_ACEOF
40956/* confdefs.h. */
40957_ACEOF
40958cat confdefs.h >>conftest.$ac_ext
40959cat >>conftest.$ac_ext <<_ACEOF
40960/* end confdefs.h. */
40961
40962int
40963main ()
40964{
1f344abf 40965#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
40966 #error "Not GCC 3.2 or greater"
40967 #endif
40968
40969 ;
40970 return 0;
40971}
40972_ACEOF
40973rm -f conftest.$ac_objext
40974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40975 (eval $ac_compile) 2>conftest.er1
bea8e651 40976 ac_status=$?
ac1cb8d3
VS
40977 grep -v '^ *+' conftest.er1 >conftest.err
40978 rm -f conftest.er1
40979 cat conftest.err >&5
bea8e651
MB
40980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40981 (exit $ac_status); } &&
7714864e 40982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40984 (eval $ac_try) 2>&5
40985 ac_status=$?
40986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40987 (exit $ac_status); }; } &&
40988 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
40989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40990 (eval $ac_try) 2>&5
40991 ac_status=$?
40992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40993 (exit $ac_status); }; }; then
74b84332 40994 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
40995 echo "$as_me:$LINENO: result: yes" >&5
40996echo "${ECHO_T}yes" >&6
40997else
40998 echo "$as_me: failed program was:" >&5
40999sed 's/^/| /' conftest.$ac_ext >&5
41000
41001echo "$as_me:$LINENO: result: no" >&5
41002echo "${ECHO_T}no" >&6
41003fi
ac1cb8d3 41004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41005 fi
41006 ;;
a848cd7e
SC
41007 esac
41008fi
74b84332 41009CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41010
41011
41012SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
41054
a848cd7e
SC
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070
41071
41072
74b84332 41073
a848cd7e
SC
41074
41075
41076echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41077echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41078set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41079if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41080 echo $ECHO_N "(cached) $ECHO_C" >&6
41081else
41082 cat >conftest.make <<\_ACEOF
41083all:
41084 @echo 'ac_maketemp="$(MAKE)"'
41085_ACEOF
41086# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41087eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41088if test -n "$ac_maketemp"; then
41089 eval ac_cv_prog_make_${ac_make}_set=yes
41090else
41091 eval ac_cv_prog_make_${ac_make}_set=no
41092fi
41093rm -f conftest.make
41094fi
41095if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41096 echo "$as_me:$LINENO: result: yes" >&5
41097echo "${ECHO_T}yes" >&6
41098 SET_MAKE=
41099else
41100 echo "$as_me:$LINENO: result: no" >&5
41101echo "${ECHO_T}no" >&6
41102 SET_MAKE="MAKE=${MAKE-make}"
41103fi
41104
41105
a848cd7e 41106
ceec2216
RL
41107 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41108
a848cd7e 41109
ceec2216 41110 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41111
a848cd7e 41112
ceec2216 41113 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41114
ceec2216
RL
41115
41116 ac_config_files="$ac_config_files version-script Makefile"
41117
41118
41119 ac_config_commands="$ac_config_commands wx-config
41120 "
a848cd7e
SC
41121
41122
9103d280
RL
41123
41124
a848cd7e
SC
41125if test "$wxUSE_GUI" = "yes"; then
41126 SUBDIRS="samples demos utils contrib"
41127else SUBDIRS="samples utils"
41128fi
41129
41130
41131
41132# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41133if test "${with_cppunit_prefix+set}" = set; then
41134 withval="$with_cppunit_prefix"
41135 cppunit_config_prefix="$withval"
41136else
41137 cppunit_config_prefix=""
41138fi;
41139
41140# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41141if test "${with_cppunit_exec_prefix+set}" = set; then
41142 withval="$with_cppunit_exec_prefix"
41143 cppunit_config_exec_prefix="$withval"
41144else
41145 cppunit_config_exec_prefix=""
41146fi;
41147
41148 if test x$cppunit_config_exec_prefix != x ; then
41149 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41150 if test x${CPPUNIT_CONFIG+set} != xset ; then
41151 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41152 fi
41153 fi
41154 if test x$cppunit_config_prefix != x ; then
41155 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41156 if test x${CPPUNIT_CONFIG+set} != xset ; then
41157 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41158 fi
41159 fi
41160
41161 # Extract the first word of "cppunit-config", so it can be a program name with args.
41162set dummy cppunit-config; ac_word=$2
41163echo "$as_me:$LINENO: checking for $ac_word" >&5
41164echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41165if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41166 echo $ECHO_N "(cached) $ECHO_C" >&6
41167else
41168 case $CPPUNIT_CONFIG in
41169 [\\/]* | ?:[\\/]*)
41170 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41171 ;;
41172 *)
41173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41174for as_dir in $PATH
41175do
41176 IFS=$as_save_IFS
41177 test -z "$as_dir" && as_dir=.
41178 for ac_exec_ext in '' $ac_executable_extensions; do
41179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41180 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41182 break 2
41183 fi
41184done
41185done
41186
41187 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41188 ;;
41189esac
41190fi
41191CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41192
41193if test -n "$CPPUNIT_CONFIG"; then
41194 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41195echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41196else
41197 echo "$as_me:$LINENO: result: no" >&5
41198echo "${ECHO_T}no" >&6
41199fi
41200
41201 cppunit_version_min=1.8.0
41202
41203 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41204echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41205 no_cppunit=""
41206 if test "$CPPUNIT_CONFIG" = "no" ; then
41207 no_cppunit=yes
41208 else
41209 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41210 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41211 cppunit_version=`$CPPUNIT_CONFIG --version`
41212
41213 cppunit_major_version=`echo $cppunit_version | \
41214 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41215 cppunit_minor_version=`echo $cppunit_version | \
41216 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41217 cppunit_micro_version=`echo $cppunit_version | \
41218 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41219
41220 cppunit_major_min=`echo $cppunit_version_min | \
41221 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41222 cppunit_minor_min=`echo $cppunit_version_min | \
41223 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41224 cppunit_micro_min=`echo $cppunit_version_min | \
41225 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41226
41227 cppunit_version_proper=`expr \
41228 $cppunit_major_version \> $cppunit_major_min \| \
41229 $cppunit_major_version \= $cppunit_major_min \& \
41230 $cppunit_minor_version \> $cppunit_minor_min \| \
41231 $cppunit_major_version \= $cppunit_major_min \& \
41232 $cppunit_minor_version \= $cppunit_minor_min \& \
41233 $cppunit_micro_version \>= $cppunit_micro_min `
41234
41235 if test "$cppunit_version_proper" = "1" ; then
41236 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41237echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41238 else
41239 echo "$as_me:$LINENO: result: no" >&5
41240echo "${ECHO_T}no" >&6
41241 no_cppunit=yes
41242 fi
41243 fi
41244
41245 if test "x$no_cppunit" = x ; then
c2218763 41246 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41247 else
41248 CPPUNIT_CFLAGS=""
41249 CPPUNIT_LIBS=""
c2218763 41250 :
a848cd7e
SC
41251 fi
41252
41253
41254
41255
41256
41257for subdir in `echo $SUBDIRS`; do
41258 if test -d ${srcdir}/${subdir} ; then
41259 if test "$wxUSE_GUI" = "yes"; then
41260 if test ${subdir} = "samples"; then
41261 makefiles="samples/Makefile.in $makefiles"
41262 for sample in `echo $SAMPLES_SUBDIRS`; do
41263 if test -d $srcdir/samples/$sample; then
41264 makefiles="samples/$sample/Makefile.in $makefiles"
41265 fi
41266 done
41267 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41268 fi
41269 else if test ${subdir} = "samples"; then
41270 makefiles="samples/Makefile.in samples/console/Makefile.in"
41271 elif test ${subdir} = "utils"; then
41272 makefiles="utils/HelpGen/Makefile.in \
41273 utils/HelpGen/src/Makefile.in \
41274 utils/tex2rtf/Makefile.in \
41275 utils/tex2rtf/src/Makefile.in"
41276 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41277 fi
41278 fi
41279
41280 for mkin in $makefiles ; do
41281 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41282 ac_config_files="$ac_config_files $mk"
41283
41284 done
41285 fi
41286done
41287
41288
41289cat >confcache <<\_ACEOF
41290# This file is a shell script that caches the results of configure
41291# tests run on this system so they can be shared between configure
41292# scripts and configure runs, see configure's option --config-cache.
41293# It is not useful on other systems. If it contains results you don't
41294# want to keep, you may remove or edit it.
41295#
41296# config.status only pays attention to the cache file if you give it
41297# the --recheck option to rerun configure.
41298#
41299# `ac_cv_env_foo' variables (set or unset) will be overridden when
41300# loading this file, other *unset* `ac_cv_foo' will be assigned the
41301# following values.
41302
41303_ACEOF
41304
41305# The following way of writing the cache mishandles newlines in values,
41306# but we know of no workaround that is simple, portable, and efficient.
41307# So, don't put newlines in cache variables' values.
41308# Ultrix sh set writes to stderr and can't be redirected directly,
41309# and sets the high bit in the cache file unless we assign to the vars.
41310{
41311 (set) 2>&1 |
41312 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41313 *ac_space=\ *)
41314 # `set' does not quote correctly, so add quotes (double-quote
41315 # substitution turns \\\\ into \\, and sed turns \\ into \).
41316 sed -n \
ac1cb8d3
VS
41317 "s/'/'\\\\''/g;
41318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41319 ;;
41320 *)
41321 # `set' quotes correctly as required by POSIX, so do not add quotes.
41322 sed -n \
ac1cb8d3 41323 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41324 ;;
41325 esac;
41326} |
41327 sed '
41328 t clear
41329 : clear
41330 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41331 t end
41332 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41333 : end' >>confcache
41334if diff $cache_file confcache >/dev/null 2>&1; then :; else
41335 if test -w $cache_file; then
41336 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41337 cat confcache >$cache_file
41338 else
41339 echo "not updating unwritable cache $cache_file"
41340 fi
41341fi
41342rm -f confcache
41343
41344test "x$prefix" = xNONE && prefix=$ac_default_prefix
41345# Let make expand exec_prefix.
41346test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41347
41348# VPATH may cause trouble with some makes, so we remove $(srcdir),
41349# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41350# trailing colons and then remove the whole line if VPATH becomes empty
41351# (actually we leave an empty line to preserve line numbers).
41352if test "x$srcdir" = x.; then
ac1cb8d3 41353 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41354s/:*\$(srcdir):*/:/;
41355s/:*\${srcdir}:*/:/;
41356s/:*@srcdir@:*/:/;
ac1cb8d3 41357s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41358s/:*$//;
ac1cb8d3 41359s/^[^=]*=[ ]*$//;
a848cd7e
SC
41360}'
41361fi
41362
41363DEFS=-DHAVE_CONFIG_H
41364
41365ac_libobjs=
41366ac_ltlibobjs=
41367for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41368 # 1. Remove the extension, and $U if already installed.
41369 ac_i=`echo "$ac_i" |
ac1cb8d3 41370 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41371 # 2. Add them.
41372 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41373 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41374done
41375LIBOBJS=$ac_libobjs
41376
41377LTLIBOBJS=$ac_ltlibobjs
41378
41379
41380
41381: ${CONFIG_STATUS=./config.status}
41382ac_clean_files_save=$ac_clean_files
41383ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41384{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41385echo "$as_me: creating $CONFIG_STATUS" >&6;}
41386cat >$CONFIG_STATUS <<_ACEOF
41387#! $SHELL
41388# Generated by $as_me.
41389# Run this file to recreate the current configuration.
41390# Compiler output produced by configure, useful for debugging
41391# configure, is in config.log if it exists.
41392
41393debug=false
41394ac_cs_recheck=false
41395ac_cs_silent=false
41396SHELL=\${CONFIG_SHELL-$SHELL}
41397_ACEOF
41398
41399cat >>$CONFIG_STATUS <<\_ACEOF
41400## --------------------- ##
41401## M4sh Initialization. ##
41402## --------------------- ##
41403
41404# Be Bourne compatible
41405if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41406 emulate sh
41407 NULLCMD=:
41408 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41409 # is contrary to our usage. Disable this feature.
41410 alias -g '${1+"$@"}'='"$@"'
41411elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41412 set -o posix
41413fi
ac1cb8d3 41414DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41415
41416# Support unset when possible.
ac1cb8d3 41417if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41418 as_unset=unset
41419else
41420 as_unset=false
41421fi
41422
41423
41424# Work around bugs in pre-3.0 UWIN ksh.
41425$as_unset ENV MAIL MAILPATH
41426PS1='$ '
41427PS2='> '
41428PS4='+ '
41429
41430# NLS nuisances.
41431for as_var in \
41432 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41433 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41434 LC_TELEPHONE LC_TIME
41435do
ac1cb8d3 41436 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41437 eval $as_var=C; export $as_var
41438 else
41439 $as_unset $as_var
41440 fi
41441done
41442
41443# Required to use basename.
41444if expr a : '\(a\)' >/dev/null 2>&1; then
41445 as_expr=expr
41446else
41447 as_expr=false
41448fi
41449
41450if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41451 as_basename=basename
41452else
41453 as_basename=false
41454fi
41455
41456
41457# Name of the executable.
41458as_me=`$as_basename "$0" ||
41459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41460 X"$0" : 'X\(//\)$' \| \
41461 X"$0" : 'X\(/\)$' \| \
41462 . : '\(.\)' 2>/dev/null ||
41463echo X/"$0" |
41464 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41465 /^X\/\(\/\/\)$/{ s//\1/; q; }
41466 /^X\/\(\/\).*/{ s//\1/; q; }
41467 s/.*/./; q'`
41468
41469
41470# PATH needs CR, and LINENO needs CR and PATH.
41471# Avoid depending upon Character Ranges.
41472as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41473as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41474as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41475as_cr_digits='0123456789'
41476as_cr_alnum=$as_cr_Letters$as_cr_digits
41477
41478# The user is always right.
41479if test "${PATH_SEPARATOR+set}" != set; then
41480 echo "#! /bin/sh" >conf$$.sh
41481 echo "exit 0" >>conf$$.sh
41482 chmod +x conf$$.sh
41483 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41484 PATH_SEPARATOR=';'
41485 else
41486 PATH_SEPARATOR=:
41487 fi
41488 rm -f conf$$.sh
41489fi
41490
41491
41492 as_lineno_1=$LINENO
41493 as_lineno_2=$LINENO
41494 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41495 test "x$as_lineno_1" != "x$as_lineno_2" &&
41496 test "x$as_lineno_3" = "x$as_lineno_2" || {
41497 # Find who we are. Look in the path if we contain no path at all
41498 # relative or not.
41499 case $0 in
41500 *[\\/]* ) as_myself=$0 ;;
41501 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41502for as_dir in $PATH
41503do
41504 IFS=$as_save_IFS
41505 test -z "$as_dir" && as_dir=.
41506 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41507done
41508
41509 ;;
41510 esac
41511 # We did not find ourselves, most probably we were run as `sh COMMAND'
41512 # in which case we are not to be found in the path.
41513 if test "x$as_myself" = x; then
41514 as_myself=$0
41515 fi
41516 if test ! -f "$as_myself"; then
41517 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41518echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41519 { (exit 1); exit 1; }; }
41520 fi
41521 case $CONFIG_SHELL in
41522 '')
41523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41524for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41525do
41526 IFS=$as_save_IFS
41527 test -z "$as_dir" && as_dir=.
41528 for as_base in sh bash ksh sh5; do
41529 case $as_dir in
41530 /*)
41531 if ("$as_dir/$as_base" -c '
41532 as_lineno_1=$LINENO
41533 as_lineno_2=$LINENO
41534 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41535 test "x$as_lineno_1" != "x$as_lineno_2" &&
41536 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41537 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41538 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41539 CONFIG_SHELL=$as_dir/$as_base
41540 export CONFIG_SHELL
41541 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41542 fi;;
41543 esac
41544 done
41545done
41546;;
41547 esac
41548
41549 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41550 # uniformly replaced by the line number. The first 'sed' inserts a
41551 # line-number line before each line; the second 'sed' does the real
41552 # work. The second script uses 'N' to pair each line-number line
41553 # with the numbered line, and appends trailing '-' during
41554 # substitution so that $LINENO is not a special case at line end.
41555 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41556 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41557 sed '=' <$as_myself |
41558 sed '
41559 N
41560 s,$,-,
41561 : loop
41562 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41563 t loop
41564 s,-$,,
41565 s,^['$as_cr_digits']*\n,,
41566 ' >$as_me.lineno &&
41567 chmod +x $as_me.lineno ||
41568 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41569echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41570 { (exit 1); exit 1; }; }
41571
41572 # Don't try to exec as it changes $[0], causing all sort of problems
41573 # (the dirname of $[0] is not the place where we might find the
41574 # original and so on. Autoconf is especially sensible to this).
41575 . ./$as_me.lineno
41576 # Exit status is that of the last command.
41577 exit
41578}
41579
41580
41581case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41582 *c*,-n*) ECHO_N= ECHO_C='
41583' ECHO_T=' ' ;;
41584 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41585 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41586esac
41587
41588if expr a : '\(a\)' >/dev/null 2>&1; then
41589 as_expr=expr
41590else
41591 as_expr=false
41592fi
41593
41594rm -f conf$$ conf$$.exe conf$$.file
41595echo >conf$$.file
41596if ln -s conf$$.file conf$$ 2>/dev/null; then
41597 # We could just check for DJGPP; but this test a) works b) is more generic
41598 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41599 if test -f conf$$.exe; then
41600 # Don't use ln at all; we don't have any links
41601 as_ln_s='cp -p'
41602 else
41603 as_ln_s='ln -s'
41604 fi
41605elif ln conf$$.file conf$$ 2>/dev/null; then
41606 as_ln_s=ln
41607else
41608 as_ln_s='cp -p'
41609fi
41610rm -f conf$$ conf$$.exe conf$$.file
41611
41612if mkdir -p . 2>/dev/null; then
41613 as_mkdir_p=:
41614else
ac1cb8d3 41615 test -d ./-p && rmdir ./-p
a848cd7e
SC
41616 as_mkdir_p=false
41617fi
41618
41619as_executable_p="test -f"
41620
41621# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41622as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41623
41624# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41625as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41626
41627
41628# IFS
41629# We need space, tab and new line, in precisely that order.
41630as_nl='
41631'
41632IFS=" $as_nl"
41633
41634# CDPATH.
41635$as_unset CDPATH
41636
41637exec 6>&1
41638
41639# Open the log real soon, to keep \$[0] and so on meaningful, and to
41640# report actual input values of CONFIG_FILES etc. instead of their
41641# values after options handling. Logging --version etc. is OK.
41642exec 5>>config.log
41643{
41644 echo
41645 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41646## Running $as_me. ##
41647_ASBOX
41648} >&5
41649cat >&5 <<_CSEOF
41650
7714864e 41651This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 41652generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41653
41654 CONFIG_FILES = $CONFIG_FILES
41655 CONFIG_HEADERS = $CONFIG_HEADERS
41656 CONFIG_LINKS = $CONFIG_LINKS
41657 CONFIG_COMMANDS = $CONFIG_COMMANDS
41658 $ $0 $@
41659
41660_CSEOF
41661echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41662echo >&5
41663_ACEOF
41664
41665# Files that config.status was made for.
41666if test -n "$ac_config_files"; then
41667 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41668fi
41669
41670if test -n "$ac_config_headers"; then
41671 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41672fi
41673
41674if test -n "$ac_config_links"; then
41675 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41676fi
41677
41678if test -n "$ac_config_commands"; then
41679 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41680fi
41681
41682cat >>$CONFIG_STATUS <<\_ACEOF
41683
41684ac_cs_usage="\
41685\`$as_me' instantiates files from templates according to the
41686current configuration.
41687
41688Usage: $0 [OPTIONS] [FILE]...
41689
41690 -h, --help print this help, then exit
41691 -V, --version print version number, then exit
41692 -q, --quiet do not print progress messages
41693 -d, --debug don't remove temporary files
41694 --recheck update $as_me by reconfiguring in the same conditions
41695 --file=FILE[:TEMPLATE]
ac1cb8d3 41696 instantiate the configuration file FILE
a848cd7e 41697 --header=FILE[:TEMPLATE]
ac1cb8d3 41698 instantiate the configuration header FILE
a848cd7e
SC
41699
41700Configuration files:
41701$config_files
41702
41703Configuration headers:
41704$config_headers
41705
41706Configuration commands:
41707$config_commands
41708
41709Report bugs to <bug-autoconf@gnu.org>."
41710_ACEOF
41711
41712cat >>$CONFIG_STATUS <<_ACEOF
41713ac_cs_version="\\
7714864e 41714wxWidgets config.status 2.5.3
ac1cb8d3 41715configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41716 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41717
ac1cb8d3 41718Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41719This config.status script is free software; the Free Software Foundation
41720gives unlimited permission to copy, distribute and modify it."
41721srcdir=$srcdir
41722INSTALL="$INSTALL"
41723_ACEOF
41724
41725cat >>$CONFIG_STATUS <<\_ACEOF
41726# If no file are specified by the user, then we need to provide default
41727# value. By we need to know if files were specified by the user.
41728ac_need_defaults=:
41729while test $# != 0
41730do
41731 case $1 in
41732 --*=*)
41733 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41734 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41735 ac_shift=:
41736 ;;
41737 -*)
41738 ac_option=$1
41739 ac_optarg=$2
41740 ac_shift=shift
41741 ;;
41742 *) # This is not an option, so the user has probably given explicit
41743 # arguments.
41744 ac_option=$1
41745 ac_need_defaults=false;;
41746 esac
41747
41748 case $ac_option in
41749 # Handling of the options.
41750_ACEOF
41751cat >>$CONFIG_STATUS <<\_ACEOF
41752 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41753 ac_cs_recheck=: ;;
41754 --version | --vers* | -V )
41755 echo "$ac_cs_version"; exit 0 ;;
41756 --he | --h)
41757 # Conflict between --help and --header
41758 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41759Try \`$0 --help' for more information." >&5
41760echo "$as_me: error: ambiguous option: $1
41761Try \`$0 --help' for more information." >&2;}
41762 { (exit 1); exit 1; }; };;
41763 --help | --hel | -h )
41764 echo "$ac_cs_usage"; exit 0 ;;
41765 --debug | --d* | -d )
41766 debug=: ;;
41767 --file | --fil | --fi | --f )
41768 $ac_shift
41769 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41770 ac_need_defaults=false;;
41771 --header | --heade | --head | --hea )
41772 $ac_shift
41773 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41774 ac_need_defaults=false;;
41775 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41776 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41777 ac_cs_silent=: ;;
41778
41779 # This is an error.
41780 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41781Try \`$0 --help' for more information." >&5
41782echo "$as_me: error: unrecognized option: $1
41783Try \`$0 --help' for more information." >&2;}
41784 { (exit 1); exit 1; }; } ;;
41785
41786 *) ac_config_targets="$ac_config_targets $1" ;;
41787
41788 esac
41789 shift
41790done
41791
41792ac_configure_extra_args=
41793
41794if $ac_cs_silent; then
41795 exec 6>/dev/null
41796 ac_configure_extra_args="$ac_configure_extra_args --silent"
41797fi
41798
41799_ACEOF
41800cat >>$CONFIG_STATUS <<_ACEOF
41801if \$ac_cs_recheck; then
41802 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41803 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41804fi
41805
41806_ACEOF
41807
41808cat >>$CONFIG_STATUS <<_ACEOF
41809#
41810# INIT-COMMANDS section.
41811#
41812
ceec2216
RL
41813 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41814 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41815 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41816 LN_S="${LN_S}"
a848cd7e
SC
41817
41818
41819_ACEOF
41820
41821
41822
41823cat >>$CONFIG_STATUS <<\_ACEOF
41824for ac_config_target in $ac_config_targets
41825do
41826 case "$ac_config_target" in
41827 # Handling of arguments.
ceec2216
RL
41828 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
41829 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
41830 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41831 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41832 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
41833 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
41834 "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
a848cd7e
SC
41835 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41836echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41837 { (exit 1); exit 1; }; };;
41838 esac
41839done
41840
41841# If the user did not use the arguments to specify the items to instantiate,
41842# then the envvar interface is used. Set only those that are not.
41843# We use the long form for the default assignment because of an extremely
41844# bizarre bug on SunOS 4.1.3.
41845if $ac_need_defaults; then
41846 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41847 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41849fi
41850
41851# Have a temporary directory for convenience. Make it in the build tree
41852# simply because there is no reason to put it here, and in addition,
41853# creating and moving files from /tmp can sometimes cause problems.
41854# Create a temporary directory, and hook for its removal unless debugging.
41855$debug ||
41856{
41857 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41858 trap '{ (exit 1); exit 1; }' 1 2 13 15
41859}
41860
41861# Create a (secure) tmp directory for tmp files.
41862
41863{
41864 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41865 test -n "$tmp" && test -d "$tmp"
41866} ||
41867{
41868 tmp=./confstat$$-$RANDOM
41869 (umask 077 && mkdir $tmp)
41870} ||
41871{
41872 echo "$me: cannot create a temporary directory in ." >&2
41873 { (exit 1); exit 1; }
41874}
41875
41876_ACEOF
41877
41878cat >>$CONFIG_STATUS <<_ACEOF
41879
41880#
41881# CONFIG_FILES section.
41882#
41883
41884# No need to generate the scripts if there are no CONFIG_FILES.
41885# This happens for instance when ./config.status config.h
41886if test -n "\$CONFIG_FILES"; then
41887 # Protect against being on the right side of a sed subst in config.status.
41888 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41889 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41890s,@SHELL@,$SHELL,;t t
41891s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41892s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41893s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41894s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41895s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41896s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41897s,@exec_prefix@,$exec_prefix,;t t
41898s,@prefix@,$prefix,;t t
41899s,@program_transform_name@,$program_transform_name,;t t
41900s,@bindir@,$bindir,;t t
41901s,@sbindir@,$sbindir,;t t
41902s,@libexecdir@,$libexecdir,;t t
41903s,@datadir@,$datadir,;t t
41904s,@sysconfdir@,$sysconfdir,;t t
41905s,@sharedstatedir@,$sharedstatedir,;t t
41906s,@localstatedir@,$localstatedir,;t t
41907s,@libdir@,$libdir,;t t
41908s,@includedir@,$includedir,;t t
41909s,@oldincludedir@,$oldincludedir,;t t
41910s,@infodir@,$infodir,;t t
41911s,@mandir@,$mandir,;t t
41912s,@build_alias@,$build_alias,;t t
41913s,@host_alias@,$host_alias,;t t
41914s,@target_alias@,$target_alias,;t t
41915s,@DEFS@,$DEFS,;t t
41916s,@ECHO_C@,$ECHO_C,;t t
41917s,@ECHO_N@,$ECHO_N,;t t
41918s,@ECHO_T@,$ECHO_T,;t t
41919s,@LIBS@,$LIBS,;t t
41920s,@build@,$build,;t t
41921s,@build_cpu@,$build_cpu,;t t
41922s,@build_vendor@,$build_vendor,;t t
41923s,@build_os@,$build_os,;t t
41924s,@host@,$host,;t t
41925s,@host_cpu@,$host_cpu,;t t
41926s,@host_vendor@,$host_vendor,;t t
41927s,@host_os@,$host_os,;t t
41928s,@target@,$target,;t t
41929s,@target_cpu@,$target_cpu,;t t
41930s,@target_vendor@,$target_vendor,;t t
41931s,@target_os@,$target_os,;t t
41932s,@CC@,$CC,;t t
41933s,@CFLAGS@,$CFLAGS,;t t
41934s,@LDFLAGS@,$LDFLAGS,;t t
41935s,@CPPFLAGS@,$CPPFLAGS,;t t
41936s,@ac_ct_CC@,$ac_ct_CC,;t t
41937s,@EXEEXT@,$EXEEXT,;t t
41938s,@OBJEXT@,$OBJEXT,;t t
41939s,@CPP@,$CPP,;t t
41940s,@EGREP@,$EGREP,;t t
41941s,@CXX@,$CXX,;t t
41942s,@CXXFLAGS@,$CXXFLAGS,;t t
41943s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41944s,@RANLIB@,$RANLIB,;t t
41945s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41946s,@AR@,$AR,;t t
41947s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41948s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41949s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41950s,@STRIP@,$STRIP,;t t
41951s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41952s,@LN_S@,$LN_S,;t t
41953s,@CXXCPP@,$CXXCPP,;t t
41954s,@subdirs@,$subdirs,;t t
41955s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41956s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41957s,@GTK_LIBS@,$GTK_LIBS,;t t
41958s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41959s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41960s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41961s,@X_CFLAGS@,$X_CFLAGS,;t t
41962s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41963s,@X_LIBS@,$X_LIBS,;t t
41964s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41965s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41966s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41967s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41968s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41969s,@RESCOMP@,$RESCOMP,;t t
41970s,@DEREZ@,$DEREZ,;t t
41971s,@SETFILE@,$SETFILE,;t t
41972s,@LIBICONV@,$LIBICONV,;t t
41973s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
41974s,@SDL_CONFIG@,$SDL_CONFIG,;t t
41975s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
41976s,@SDL_LIBS@,$SDL_LIBS,;t t
41977s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
41978s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
41979s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
41980s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
41981s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
41982s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
41983s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
41984s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
41985s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
41986s,@VENDOR@,$VENDOR,;t t
41987s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
41988s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
41989s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
41990s,@WXUNIV@,$WXUNIV,;t t
41991s,@MONOLITHIC@,$MONOLITHIC,;t t
41992s,@USE_PLUGINS@,$USE_PLUGINS,;t t
41993s,@EXTRALIBS@,$EXTRALIBS,;t t
41994s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
41995s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
41996s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
41997s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
41998s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
41999s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42000s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42001s,@UNICODE@,$UNICODE,;t t
42002s,@BUILD@,$BUILD,;t t
42003s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42004s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42005s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42006s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42007s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42008s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42009s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42010s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42011s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42012s,@SET_MAKE@,$SET_MAKE,;t t
42013s,@MAKE_SET@,$MAKE_SET,;t t
42014s,@ac_ct_AR@,$ac_ct_AR,;t t
42015s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42016s,@NM@,$NM,;t t
42017s,@ac_ct_NM@,$ac_ct_NM,;t t
42018s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42019s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42020s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42021s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42022s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42023s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42024s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42025s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42026s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42027s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42028s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42029s,@LIBPREFIX@,$LIBPREFIX,;t t
42030s,@LIBEXT@,$LIBEXT,;t t
42031s,@DLLPREFIX@,$DLLPREFIX,;t t
42032s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42033s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42034s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42035s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42036s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42037s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42038s,@PIC_FLAG@,$PIC_FLAG,;t t
42039s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42040s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42041s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42042s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42043s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42044s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42045s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42046s,@GCC_PCH@,$GCC_PCH,;t t
42047s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42048s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42049s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42050s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42051s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42052s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42053s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42054s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42055s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42056s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42057s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42058s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42059s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42060s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42061s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42062s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42063s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42064s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42065s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42066s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42067s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42068s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42069s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42070s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42071s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42072s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42073s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42074s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42075s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42076s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42077s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42078s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42079s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42080s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42081s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42082s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42083s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42084s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42085s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
42086s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42087s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42088s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42089s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42090s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42091s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42092s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42093s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42094s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42095s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42096s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42097s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42098s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42099s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42100s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42101s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42102s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42103s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42104s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42105s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42106s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42107s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42108s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42109s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42110s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42111s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42112s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42113s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42114s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42115s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42116s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42117s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42118s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42119s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42120s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42121s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42122s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42123s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42124s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42125s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42126s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42127s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42128s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42129s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42130s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42131s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42132s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42133s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42134s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42135s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42136s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42137s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42138s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42139s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42140s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42141s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42142s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42143s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42144s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42145s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42146s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
a848cd7e
SC
42147s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42148s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42149s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42150s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42151s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42152s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42153s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42154s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42155s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42156s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42157s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42158s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42159s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42160s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42161s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9a8f0513
VS
42162s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42163s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42164s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 42165s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42166s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42167s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42168s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42169s,@USE_GUI@,$USE_GUI,;t t
42170s,@AFMINSTALL@,$AFMINSTALL,;t t
42171s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42172s,@TOOLKIT@,$TOOLKIT,;t t
42173s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42174s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42175s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42176s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42177s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42178s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42179s,@WIDGET_SET@,$WIDGET_SET,;t t
42180s,@WX_RELEASE@,$WX_RELEASE,;t t
42181s,@WX_VERSION@,$WX_VERSION,;t t
42182s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42183s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42184s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42185s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42186s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42187s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42188s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42189s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42190s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42191s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42192s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42193s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42194s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42195s,@DISTDIR@,$DISTDIR,;t t
42196s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42197s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42198s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42199s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42200s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42201s,@RESFLAGS@,$RESFLAGS,;t t
42202s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42203s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42204s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42205s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42206s,@MACRESCOMP@,$MACRESCOMP,;t t
42207s,@MACSETFILE@,$MACSETFILE,;t t
42208s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42209s,@GCC@,$GCC,;t t
a848cd7e 42210s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42211s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42212s,@LIBOBJS@,$LIBOBJS,;t t
42213s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42214CEOF
42215
42216_ACEOF
42217
42218 cat >>$CONFIG_STATUS <<\_ACEOF
42219 # Split the substitutions into bite-sized pieces for seds with
42220 # small command number limits, like on Digital OSF/1 and HP-UX.
42221 ac_max_sed_lines=48
42222 ac_sed_frag=1 # Number of current file.
42223 ac_beg=1 # First line for current file.
42224 ac_end=$ac_max_sed_lines # Line after last line for current file.
42225 ac_more_lines=:
42226 ac_sed_cmds=
42227 while $ac_more_lines; do
42228 if test $ac_beg -gt 1; then
42229 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42230 else
42231 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42232 fi
42233 if test ! -s $tmp/subs.frag; then
42234 ac_more_lines=false
42235 else
42236 # The purpose of the label and of the branching condition is to
42237 # speed up the sed processing (if there are no `@' at all, there
42238 # is no need to browse any of the substitutions).
42239 # These are the two extra sed commands mentioned above.
42240 (echo ':t
42241 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42242 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42243 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42244 else
ac1cb8d3 42245 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42246 fi
42247 ac_sed_frag=`expr $ac_sed_frag + 1`
42248 ac_beg=$ac_end
42249 ac_end=`expr $ac_end + $ac_max_sed_lines`
42250 fi
42251 done
42252 if test -z "$ac_sed_cmds"; then
42253 ac_sed_cmds=cat
42254 fi
42255fi # test -n "$CONFIG_FILES"
42256
42257_ACEOF
42258cat >>$CONFIG_STATUS <<\_ACEOF
42259for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42260 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42261 case $ac_file in
42262 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42263 cat >$tmp/stdin
42264 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42265 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42266 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42267 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42268 * ) ac_file_in=$ac_file.in ;;
42269 esac
42270
42271 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42272 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42273$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42274 X"$ac_file" : 'X\(//\)[^/]' \| \
42275 X"$ac_file" : 'X\(//\)$' \| \
42276 X"$ac_file" : 'X\(/\)' \| \
42277 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42278echo X"$ac_file" |
42279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42280 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42281 /^X\(\/\/\)$/{ s//\1/; q; }
42282 /^X\(\/\).*/{ s//\1/; q; }
42283 s/.*/./; q'`
42284 { if $as_mkdir_p; then
42285 mkdir -p "$ac_dir"
42286 else
42287 as_dir="$ac_dir"
42288 as_dirs=
42289 while test ! -d "$as_dir"; do
42290 as_dirs="$as_dir $as_dirs"
42291 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42293 X"$as_dir" : 'X\(//\)[^/]' \| \
42294 X"$as_dir" : 'X\(//\)$' \| \
42295 X"$as_dir" : 'X\(/\)' \| \
42296 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42297echo X"$as_dir" |
42298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42300 /^X\(\/\/\)$/{ s//\1/; q; }
42301 /^X\(\/\).*/{ s//\1/; q; }
42302 s/.*/./; q'`
42303 done
42304 test ! -n "$as_dirs" || mkdir $as_dirs
42305 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42306echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42307 { (exit 1); exit 1; }; }; }
42308
42309 ac_builddir=.
42310
42311if test "$ac_dir" != .; then
42312 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42313 # A "../" for each directory in $ac_dir_suffix.
42314 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42315else
42316 ac_dir_suffix= ac_top_builddir=
42317fi
42318
42319case $srcdir in
42320 .) # No --srcdir option. We are building in place.
42321 ac_srcdir=.
42322 if test -z "$ac_top_builddir"; then
42323 ac_top_srcdir=.
42324 else
42325 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42326 fi ;;
42327 [\\/]* | ?:[\\/]* ) # Absolute path.
42328 ac_srcdir=$srcdir$ac_dir_suffix;
42329 ac_top_srcdir=$srcdir ;;
42330 *) # Relative path.
42331 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42332 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42333esac
ac1cb8d3
VS
42334
42335# Do not use `cd foo && pwd` to compute absolute paths, because
42336# the directories may not exist.
42337case `pwd` in
42338.) ac_abs_builddir="$ac_dir";;
42339*)
42340 case "$ac_dir" in
42341 .) ac_abs_builddir=`pwd`;;
42342 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42343 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42344 esac;;
42345esac
42346case $ac_abs_builddir in
42347.) ac_abs_top_builddir=${ac_top_builddir}.;;
42348*)
42349 case ${ac_top_builddir}. in
42350 .) ac_abs_top_builddir=$ac_abs_builddir;;
42351 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42352 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42353 esac;;
42354esac
42355case $ac_abs_builddir in
42356.) ac_abs_srcdir=$ac_srcdir;;
42357*)
42358 case $ac_srcdir in
42359 .) ac_abs_srcdir=$ac_abs_builddir;;
42360 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42361 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42362 esac;;
42363esac
42364case $ac_abs_builddir in
42365.) ac_abs_top_srcdir=$ac_top_srcdir;;
42366*)
42367 case $ac_top_srcdir in
42368 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42369 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42370 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42371 esac;;
42372esac
a848cd7e
SC
42373
42374
42375 case $INSTALL in
42376 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42377 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42378 esac
42379
a848cd7e
SC
42380 # Let's still pretend it is `configure' which instantiates (i.e., don't
42381 # use $as_me), people would be surprised to read:
42382 # /* config.h. Generated by config.status. */
42383 if test x"$ac_file" = x-; then
42384 configure_input=
42385 else
42386 configure_input="$ac_file. "
42387 fi
42388 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42389 sed 's,.*/,,'` by configure."
a848cd7e
SC
42390
42391 # First look for the input files in the build tree, otherwise in the
42392 # src tree.
42393 ac_file_inputs=`IFS=:
42394 for f in $ac_file_in; do
42395 case $f in
42396 -) echo $tmp/stdin ;;
42397 [\\/$]*)
ac1cb8d3
VS
42398 # Absolute (can't be DOS-style, as IFS=:)
42399 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42400echo "$as_me: error: cannot find input file: $f" >&2;}
42401 { (exit 1); exit 1; }; }
ac1cb8d3 42402 echo "$f";;
a848cd7e 42403 *) # Relative
ac1cb8d3
VS
42404 if test -f "$f"; then
42405 # Build tree
42406 echo "$f"
42407 elif test -f "$srcdir/$f"; then
42408 # Source tree
42409 echo "$srcdir/$f"
42410 else
42411 # /dev/null tree
42412 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42413echo "$as_me: error: cannot find input file: $f" >&2;}
42414 { (exit 1); exit 1; }; }
ac1cb8d3 42415 fi;;
a848cd7e
SC
42416 esac
42417 done` || { (exit 1); exit 1; }
7714864e
RL
42418
42419 if test x"$ac_file" != x-; then
42420 { echo "$as_me:$LINENO: creating $ac_file" >&5
42421echo "$as_me: creating $ac_file" >&6;}
42422 rm -f "$ac_file"
42423 fi
a848cd7e
SC
42424_ACEOF
42425cat >>$CONFIG_STATUS <<_ACEOF
42426 sed "$ac_vpsub
42427$extrasub
42428_ACEOF
42429cat >>$CONFIG_STATUS <<\_ACEOF
42430:t
42431/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42432s,@configure_input@,$configure_input,;t t
42433s,@srcdir@,$ac_srcdir,;t t
42434s,@abs_srcdir@,$ac_abs_srcdir,;t t
42435s,@top_srcdir@,$ac_top_srcdir,;t t
42436s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42437s,@builddir@,$ac_builddir,;t t
42438s,@abs_builddir@,$ac_abs_builddir,;t t
42439s,@top_builddir@,$ac_top_builddir,;t t
42440s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42441s,@INSTALL@,$ac_INSTALL,;t t
42442" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42443 rm -f $tmp/stdin
42444 if test x"$ac_file" != x-; then
42445 mv $tmp/out $ac_file
42446 else
42447 cat $tmp/out
42448 rm -f $tmp/out
42449 fi
42450
ceec2216
RL
42451 # Run the commands associated with the file.
42452 case $ac_file in
42453 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
42454 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
42455 esac
a848cd7e
SC
42456done
42457_ACEOF
42458cat >>$CONFIG_STATUS <<\_ACEOF
42459
42460#
42461# CONFIG_HEADER section.
42462#
42463
42464# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42465# NAME is the cpp macro being defined and VALUE is the value it is being given.
42466#
42467# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42468ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42469ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42470ac_dC=' '
42471ac_dD=',;t'
42472# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42473ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42474ac_uB='$,\1#\2define\3'
42475ac_uC=' '
42476ac_uD=',;t'
42477
42478for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42479 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42480 case $ac_file in
42481 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42482 cat >$tmp/stdin
42483 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42484 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42485 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42486 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42487 * ) ac_file_in=$ac_file.in ;;
42488 esac
42489
42490 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42491echo "$as_me: creating $ac_file" >&6;}
42492
42493 # First look for the input files in the build tree, otherwise in the
42494 # src tree.
42495 ac_file_inputs=`IFS=:
42496 for f in $ac_file_in; do
42497 case $f in
42498 -) echo $tmp/stdin ;;
42499 [\\/$]*)
ac1cb8d3
VS
42500 # Absolute (can't be DOS-style, as IFS=:)
42501 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42502echo "$as_me: error: cannot find input file: $f" >&2;}
42503 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42504 # Do quote $f, to prevent DOS paths from being IFS'd.
42505 echo "$f";;
a848cd7e 42506 *) # Relative
ac1cb8d3
VS
42507 if test -f "$f"; then
42508 # Build tree
42509 echo "$f"
42510 elif test -f "$srcdir/$f"; then
42511 # Source tree
42512 echo "$srcdir/$f"
42513 else
42514 # /dev/null tree
42515 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42516echo "$as_me: error: cannot find input file: $f" >&2;}
42517 { (exit 1); exit 1; }; }
ac1cb8d3 42518 fi;;
a848cd7e
SC
42519 esac
42520 done` || { (exit 1); exit 1; }
42521 # Remove the trailing spaces.
ac1cb8d3 42522 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42523
42524_ACEOF
42525
42526# Transform confdefs.h into two sed scripts, `conftest.defines' and
42527# `conftest.undefs', that substitutes the proper values into
42528# config.h.in to produce config.h. The first handles `#define'
42529# templates, and the second `#undef' templates.
42530# And first: Protect against being on the right side of a sed subst in
42531# config.status. Protect against being in an unquoted here document
42532# in config.status.
42533rm -f conftest.defines conftest.undefs
42534# Using a here document instead of a string reduces the quoting nightmare.
42535# Putting comments in sed scripts is not portable.
42536#
42537# `end' is used to avoid that the second main sed command (meant for
42538# 0-ary CPP macros) applies to n-ary macro definitions.
42539# See the Autoconf documentation for `clear'.
42540cat >confdef2sed.sed <<\_ACEOF
42541s/[\\&,]/\\&/g
42542s,[\\$`],\\&,g
42543t clear
42544: clear
ac1cb8d3 42545s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42546t end
ac1cb8d3 42547s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42548: end
42549_ACEOF
42550# If some macros were called several times there might be several times
42551# the same #defines, which is useless. Nevertheless, we may not want to
42552# sort them, since we want the *last* AC-DEFINE to be honored.
42553uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42554sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42555rm -f confdef2sed.sed
42556
42557# This sed command replaces #undef with comments. This is necessary, for
42558# example, in the case of _POSIX_SOURCE, which is predefined and required
42559# on some systems where configure will not decide to define it.
42560cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42561s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42562_ACEOF
42563
42564# Break up conftest.defines because some shells have a limit on the size
42565# of here documents, and old seds have small limits too (100 cmds).
42566echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42567echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42568echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42569echo ' :' >>$CONFIG_STATUS
42570rm -f conftest.tail
42571while grep . conftest.defines >/dev/null
42572do
42573 # Write a limited-size here document to $tmp/defines.sed.
42574 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42575 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42576 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42577 # Work around the forget-to-reset-the-flag bug.
42578 echo 't clr' >>$CONFIG_STATUS
42579 echo ': clr' >>$CONFIG_STATUS
42580 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42581 echo 'CEOF
42582 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42583 rm -f $tmp/in
42584 mv $tmp/out $tmp/in
42585' >>$CONFIG_STATUS
42586 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42587 rm -f conftest.defines
42588 mv conftest.tail conftest.defines
42589done
42590rm -f conftest.defines
42591echo ' fi # grep' >>$CONFIG_STATUS
42592echo >>$CONFIG_STATUS
42593
42594# Break up conftest.undefs because some shells have a limit on the size
42595# of here documents, and old seds have small limits too (100 cmds).
42596echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42597rm -f conftest.tail
42598while grep . conftest.undefs >/dev/null
42599do
42600 # Write a limited-size here document to $tmp/undefs.sed.
42601 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42602 # Speed up: don't consider the non `#undef'
ac1cb8d3 42603 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42604 # Work around the forget-to-reset-the-flag bug.
42605 echo 't clr' >>$CONFIG_STATUS
42606 echo ': clr' >>$CONFIG_STATUS
42607 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42608 echo 'CEOF
42609 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42610 rm -f $tmp/in
42611 mv $tmp/out $tmp/in
42612' >>$CONFIG_STATUS
42613 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42614 rm -f conftest.undefs
42615 mv conftest.tail conftest.undefs
42616done
42617rm -f conftest.undefs
42618
42619cat >>$CONFIG_STATUS <<\_ACEOF
42620 # Let's still pretend it is `configure' which instantiates (i.e., don't
42621 # use $as_me), people would be surprised to read:
42622 # /* config.h. Generated by config.status. */
42623 if test x"$ac_file" = x-; then
42624 echo "/* Generated by configure. */" >$tmp/config.h
42625 else
42626 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42627 fi
42628 cat $tmp/in >>$tmp/config.h
42629 rm -f $tmp/in
42630 if test x"$ac_file" != x-; then
42631 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42632 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42633echo "$as_me: $ac_file is unchanged" >&6;}
42634 else
42635 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42636$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42637 X"$ac_file" : 'X\(//\)[^/]' \| \
42638 X"$ac_file" : 'X\(//\)$' \| \
42639 X"$ac_file" : 'X\(/\)' \| \
42640 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42641echo X"$ac_file" |
42642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42643 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42644 /^X\(\/\/\)$/{ s//\1/; q; }
42645 /^X\(\/\).*/{ s//\1/; q; }
42646 s/.*/./; q'`
42647 { if $as_mkdir_p; then
42648 mkdir -p "$ac_dir"
42649 else
42650 as_dir="$ac_dir"
42651 as_dirs=
42652 while test ! -d "$as_dir"; do
42653 as_dirs="$as_dir $as_dirs"
42654 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42655$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42656 X"$as_dir" : 'X\(//\)[^/]' \| \
42657 X"$as_dir" : 'X\(//\)$' \| \
42658 X"$as_dir" : 'X\(/\)' \| \
42659 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42660echo X"$as_dir" |
42661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42663 /^X\(\/\/\)$/{ s//\1/; q; }
42664 /^X\(\/\).*/{ s//\1/; q; }
42665 s/.*/./; q'`
42666 done
42667 test ! -n "$as_dirs" || mkdir $as_dirs
42668 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42669echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42670 { (exit 1); exit 1; }; }; }
42671
42672 rm -f $ac_file
42673 mv $tmp/config.h $ac_file
42674 fi
42675 else
42676 cat $tmp/config.h
42677 rm -f $tmp/config.h
42678 fi
42679done
42680_ACEOF
42681cat >>$CONFIG_STATUS <<\_ACEOF
42682
42683#
42684# CONFIG_COMMANDS section.
42685#
42686for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42687 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42688 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42689 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42690$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42691 X"$ac_dest" : 'X\(//\)[^/]' \| \
42692 X"$ac_dest" : 'X\(//\)$' \| \
42693 X"$ac_dest" : 'X\(/\)' \| \
42694 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42695echo X"$ac_dest" |
42696 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42697 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42698 /^X\(\/\/\)$/{ s//\1/; q; }
42699 /^X\(\/\).*/{ s//\1/; q; }
42700 s/.*/./; q'`
ac1cb8d3
VS
42701 { if $as_mkdir_p; then
42702 mkdir -p "$ac_dir"
42703 else
42704 as_dir="$ac_dir"
42705 as_dirs=
42706 while test ! -d "$as_dir"; do
42707 as_dirs="$as_dir $as_dirs"
42708 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42709$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42710 X"$as_dir" : 'X\(//\)[^/]' \| \
42711 X"$as_dir" : 'X\(//\)$' \| \
42712 X"$as_dir" : 'X\(/\)' \| \
42713 . : '\(.\)' 2>/dev/null ||
42714echo X"$as_dir" |
42715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42717 /^X\(\/\/\)$/{ s//\1/; q; }
42718 /^X\(\/\).*/{ s//\1/; q; }
42719 s/.*/./; q'`
42720 done
42721 test ! -n "$as_dirs" || mkdir $as_dirs
42722 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42723echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42724 { (exit 1); exit 1; }; }; }
42725
a848cd7e
SC
42726 ac_builddir=.
42727
42728if test "$ac_dir" != .; then
42729 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42730 # A "../" for each directory in $ac_dir_suffix.
42731 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42732else
42733 ac_dir_suffix= ac_top_builddir=
42734fi
42735
42736case $srcdir in
42737 .) # No --srcdir option. We are building in place.
42738 ac_srcdir=.
42739 if test -z "$ac_top_builddir"; then
42740 ac_top_srcdir=.
42741 else
42742 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42743 fi ;;
42744 [\\/]* | ?:[\\/]* ) # Absolute path.
42745 ac_srcdir=$srcdir$ac_dir_suffix;
42746 ac_top_srcdir=$srcdir ;;
42747 *) # Relative path.
42748 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42749 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42750esac
ac1cb8d3
VS
42751
42752# Do not use `cd foo && pwd` to compute absolute paths, because
42753# the directories may not exist.
42754case `pwd` in
42755.) ac_abs_builddir="$ac_dir";;
42756*)
42757 case "$ac_dir" in
42758 .) ac_abs_builddir=`pwd`;;
42759 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42760 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42761 esac;;
42762esac
42763case $ac_abs_builddir in
42764.) ac_abs_top_builddir=${ac_top_builddir}.;;
42765*)
42766 case ${ac_top_builddir}. in
42767 .) ac_abs_top_builddir=$ac_abs_builddir;;
42768 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42769 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42770 esac;;
42771esac
42772case $ac_abs_builddir in
42773.) ac_abs_srcdir=$ac_srcdir;;
42774*)
42775 case $ac_srcdir in
42776 .) ac_abs_srcdir=$ac_abs_builddir;;
42777 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42778 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42779 esac;;
42780esac
42781case $ac_abs_builddir in
42782.) ac_abs_top_srcdir=$ac_top_srcdir;;
42783*)
42784 case $ac_top_srcdir in
42785 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42786 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42787 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42788 esac;;
42789esac
a848cd7e
SC
42790
42791
42792 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42793echo "$as_me: executing $ac_dest commands" >&6;}
42794 case $ac_dest in
ceec2216
RL
42795 wx-config ) rm -f wx-config
42796 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
42797 ;;
a848cd7e
SC
42798 esac
42799done
42800_ACEOF
42801
42802cat >>$CONFIG_STATUS <<\_ACEOF
42803
42804{ (exit 0); exit 0; }
42805_ACEOF
42806chmod +x $CONFIG_STATUS
42807ac_clean_files=$ac_clean_files_save
42808
42809
42810# configure is writing to config.log, and then calls config.status.
42811# config.status does its own redirection, appending to config.log.
42812# Unfortunately, on DOS this fails, as config.log is still kept open
42813# by configure, so config.status won't be able to write to it; its
42814# output is simply discarded. So we exec the FD to /dev/null,
42815# effectively closing config.log, so it can be properly (re)opened and
42816# appended to by config.status. When coming back to configure, we
42817# need to make the FD available again.
42818if test "$no_create" != yes; then
42819 ac_cs_success=:
42820 ac_config_status_args=
42821 test "$silent" = yes &&
42822 ac_config_status_args="$ac_config_status_args --quiet"
42823 exec 5>/dev/null
42824 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42825 exec 5>>config.log
42826 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42827 # would make configure fail if this is the last instruction.
42828 $ac_cs_success || { (exit 1); exit 1; }
42829fi
42830
42831#
42832# CONFIG_SUBDIRS section.
42833#
42834if test "$no_recursion" != yes; then
42835
42836 # Remove --cache-file and --srcdir arguments so they do not pile up.
42837 ac_sub_configure_args=
42838 ac_prev=
42839 for ac_arg in $ac_configure_args; do
42840 if test -n "$ac_prev"; then
42841 ac_prev=
42842 continue
42843 fi
42844 case $ac_arg in
42845 -cache-file | --cache-file | --cache-fil | --cache-fi \
42846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42847 ac_prev=cache_file ;;
42848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42850 | --c=*)
42851 ;;
42852 --config-cache | -C)
42853 ;;
42854 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42855 ac_prev=srcdir ;;
42856 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42857 ;;
42858 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42859 ac_prev=prefix ;;
42860 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42861 ;;
42862 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42863 esac
42864 done
42865
42866 # Always prepend --prefix to ensure using the same prefix
42867 # in subdir configurations.
42868 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42869
42870 ac_popdir=`pwd`
42871 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42872
42873 # Do not complain, so a configure script can configure whichever
42874 # parts of a large source tree are present.
42875 test -d $srcdir/$ac_dir || continue
42876
42877 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42878echo "$as_me: configuring in $ac_dir" >&6;}
42879 { if $as_mkdir_p; then
42880 mkdir -p "$ac_dir"
42881 else
42882 as_dir="$ac_dir"
42883 as_dirs=
42884 while test ! -d "$as_dir"; do
42885 as_dirs="$as_dir $as_dirs"
42886 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42887$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42888 X"$as_dir" : 'X\(//\)[^/]' \| \
42889 X"$as_dir" : 'X\(//\)$' \| \
42890 X"$as_dir" : 'X\(/\)' \| \
42891 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42892echo X"$as_dir" |
42893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42895 /^X\(\/\/\)$/{ s//\1/; q; }
42896 /^X\(\/\).*/{ s//\1/; q; }
42897 s/.*/./; q'`
42898 done
42899 test ! -n "$as_dirs" || mkdir $as_dirs
42900 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42901echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42902 { (exit 1); exit 1; }; }; }
42903
42904 ac_builddir=.
42905
42906if test "$ac_dir" != .; then
42907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42908 # A "../" for each directory in $ac_dir_suffix.
42909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42910else
42911 ac_dir_suffix= ac_top_builddir=
42912fi
42913
42914case $srcdir in
42915 .) # No --srcdir option. We are building in place.
42916 ac_srcdir=.
42917 if test -z "$ac_top_builddir"; then
42918 ac_top_srcdir=.
42919 else
42920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42921 fi ;;
42922 [\\/]* | ?:[\\/]* ) # Absolute path.
42923 ac_srcdir=$srcdir$ac_dir_suffix;
42924 ac_top_srcdir=$srcdir ;;
42925 *) # Relative path.
42926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42928esac
ac1cb8d3
VS
42929
42930# Do not use `cd foo && pwd` to compute absolute paths, because
42931# the directories may not exist.
42932case `pwd` in
42933.) ac_abs_builddir="$ac_dir";;
42934*)
42935 case "$ac_dir" in
42936 .) ac_abs_builddir=`pwd`;;
42937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42939 esac;;
42940esac
42941case $ac_abs_builddir in
42942.) ac_abs_top_builddir=${ac_top_builddir}.;;
42943*)
42944 case ${ac_top_builddir}. in
42945 .) ac_abs_top_builddir=$ac_abs_builddir;;
42946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42948 esac;;
42949esac
42950case $ac_abs_builddir in
42951.) ac_abs_srcdir=$ac_srcdir;;
42952*)
42953 case $ac_srcdir in
42954 .) ac_abs_srcdir=$ac_abs_builddir;;
42955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42957 esac;;
42958esac
42959case $ac_abs_builddir in
42960.) ac_abs_top_srcdir=$ac_top_srcdir;;
42961*)
42962 case $ac_top_srcdir in
42963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42966 esac;;
42967esac
a848cd7e
SC
42968
42969
42970 cd $ac_dir
42971
42972 # Check for guested configure; otherwise get Cygnus style configure.
42973 if test -f $ac_srcdir/configure.gnu; then
42974 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
42975 elif test -f $ac_srcdir/configure; then
42976 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
42977 elif test -f $ac_srcdir/configure.in; then
42978 ac_sub_configure=$ac_configure
42979 else
42980 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
42981echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
42982 ac_sub_configure=
42983 fi
42984
42985 # The recursion is here.
42986 if test -n "$ac_sub_configure"; then
42987 # Make the cache file name correct relative to the subdirectory.
42988 case $cache_file in
42989 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
42990 *) # Relative path.
ac1cb8d3 42991 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
42992 esac
42993
42994 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
42995echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
42996 # The eval makes quoting arguments work.
42997 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
42998 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
42999 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43000echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43001 { (exit 1); exit 1; }; }
43002 fi
43003
7714864e 43004 cd "$ac_popdir"
a848cd7e
SC
43005 done
43006fi
43007
43008
43009echo
77ffb593 43010echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43011echo ""
4d4ff94c 43012echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43013echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43014
77ffb593
JS
43015echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43016echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43017echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43018
77ffb593
JS
43019echo " What level of wxWidgets compatibility should be enabled?"
43020echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43021echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43022
77ffb593 43023echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43024echo " jpeg ${wxUSE_LIBJPEG-none}"
43025echo " png ${wxUSE_LIBPNG-none}"
43026echo " regex ${wxUSE_REGEX}"
43027echo " tiff ${wxUSE_LIBTIFF-none}"
43028if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43029echo " xpm ${wxUSE_LIBXPM-none}"
43030fi
43031echo " zlib ${wxUSE_ZLIB}"
43032echo " odbc ${wxUSE_ODBC}"
43033echo " expat ${wxUSE_EXPAT}"
43034echo " libmspack ${wxUSE_LIBMSPACK}"
43035echo " sdl ${wxUSE_LIBSDL}"
43036
43037echo ""
43038