]> git.saurik.com Git - wxWidgets.git/blame - configure
Install tweaks
[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_DRAGIMAGE=no
7016fi
7017
7018
7019 enablestring=
7020 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7021echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7022 no_cache=0
7023 # Check whether --enable-accel or --disable-accel was given.
7024if test "${enable_accel+set}" = set; then
7025 enableval="$enable_accel"
7026
7027 if test "$enableval" = yes; then
7028 ac_cv_use_accel='wxUSE_ACCEL=yes'
7029 else
7030 ac_cv_use_accel='wxUSE_ACCEL=no'
7031 fi
7032
7033else
7034
7035 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7036 if test "x$LINE" != x ; then
7037 eval "DEFAULT_$LINE"
7038 else
7039 no_cache=1
7040 fi
7041
7042 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7043
7044fi;
7045
7046 eval "$ac_cv_use_accel"
7047 if test "$no_cache" != 1; then
7048 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7049 fi
7050
7051 if test "$wxUSE_ACCEL" = yes; then
7052 echo "$as_me:$LINENO: result: yes" >&5
7053echo "${ECHO_T}yes" >&6
7054 else
7055 echo "$as_me:$LINENO: result: no" >&5
7056echo "${ECHO_T}no" >&6
7057 fi
7058
7059
7060 enablestring=
7061 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7062echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7063 no_cache=0
7064 # Check whether --enable-button or --disable-button was given.
7065if test "${enable_button+set}" = set; then
7066 enableval="$enable_button"
7067
7068 if test "$enableval" = yes; then
7069 ac_cv_use_button='wxUSE_BUTTON=yes'
7070 else
7071 ac_cv_use_button='wxUSE_BUTTON=no'
7072 fi
7073
7074else
7075
7076 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7077 if test "x$LINE" != x ; then
7078 eval "DEFAULT_$LINE"
7079 else
7080 no_cache=1
7081 fi
7082
7083 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7084
7085fi;
7086
7087 eval "$ac_cv_use_button"
7088 if test "$no_cache" != 1; then
7089 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7090 fi
7091
7092 if test "$wxUSE_BUTTON" = yes; then
7093 echo "$as_me:$LINENO: result: yes" >&5
7094echo "${ECHO_T}yes" >&6
7095 else
7096 echo "$as_me:$LINENO: result: no" >&5
7097echo "${ECHO_T}no" >&6
7098 fi
7099
7100
7101 enablestring=
7102 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7103echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7104 no_cache=0
7105 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7106if test "${enable_bmpbutton+set}" = set; then
7107 enableval="$enable_bmpbutton"
7108
7109 if test "$enableval" = yes; then
7110 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7111 else
7112 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7113 fi
7114
7115else
7116
7117 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7118 if test "x$LINE" != x ; then
7119 eval "DEFAULT_$LINE"
7120 else
7121 no_cache=1
7122 fi
7123
7124 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7125
7126fi;
7127
7128 eval "$ac_cv_use_bmpbutton"
7129 if test "$no_cache" != 1; then
7130 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7131 fi
7132
7133 if test "$wxUSE_BMPBUTTON" = yes; then
7134 echo "$as_me:$LINENO: result: yes" >&5
7135echo "${ECHO_T}yes" >&6
7136 else
7137 echo "$as_me:$LINENO: result: no" >&5
7138echo "${ECHO_T}no" >&6
7139 fi
7140
7141
7142 enablestring=
7143 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7144echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7145 no_cache=0
7146 # Check whether --enable-calendar or --disable-calendar was given.
7147if test "${enable_calendar+set}" = set; then
7148 enableval="$enable_calendar"
7149
7150 if test "$enableval" = yes; then
7151 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7152 else
7153 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7154 fi
7155
7156else
7157
7158 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7159 if test "x$LINE" != x ; then
7160 eval "DEFAULT_$LINE"
7161 else
7162 no_cache=1
7163 fi
7164
7165 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7166
7167fi;
7168
7169 eval "$ac_cv_use_calendar"
7170 if test "$no_cache" != 1; then
7171 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7172 fi
7173
7174 if test "$wxUSE_CALCTRL" = yes; then
7175 echo "$as_me:$LINENO: result: yes" >&5
7176echo "${ECHO_T}yes" >&6
7177 else
7178 echo "$as_me:$LINENO: result: no" >&5
7179echo "${ECHO_T}no" >&6
7180 fi
7181
7182
7183 enablestring=
7184 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7185echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7186 no_cache=0
7187 # Check whether --enable-caret or --disable-caret was given.
7188if test "${enable_caret+set}" = set; then
7189 enableval="$enable_caret"
7190
7191 if test "$enableval" = yes; then
7192 ac_cv_use_caret='wxUSE_CARET=yes'
7193 else
7194 ac_cv_use_caret='wxUSE_CARET=no'
7195 fi
7196
7197else
7198
7199 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7200 if test "x$LINE" != x ; then
7201 eval "DEFAULT_$LINE"
7202 else
7203 no_cache=1
7204 fi
7205
7206 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7207
7208fi;
7209
7210 eval "$ac_cv_use_caret"
7211 if test "$no_cache" != 1; then
7212 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7213 fi
7214
7215 if test "$wxUSE_CARET" = yes; then
7216 echo "$as_me:$LINENO: result: yes" >&5
7217echo "${ECHO_T}yes" >&6
7218 else
7219 echo "$as_me:$LINENO: result: no" >&5
7220echo "${ECHO_T}no" >&6
7221 fi
7222
7223
7224 enablestring=
7225 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7226echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7227 no_cache=0
7228 # Check whether --enable-checkbox or --disable-checkbox was given.
7229if test "${enable_checkbox+set}" = set; then
7230 enableval="$enable_checkbox"
7231
7232 if test "$enableval" = yes; then
7233 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7234 else
7235 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7236 fi
7237
7238else
7239
7240 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7241 if test "x$LINE" != x ; then
7242 eval "DEFAULT_$LINE"
7243 else
7244 no_cache=1
7245 fi
7246
7247 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7248
7249fi;
7250
7251 eval "$ac_cv_use_checkbox"
7252 if test "$no_cache" != 1; then
7253 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7254 fi
7255
7256 if test "$wxUSE_CHECKBOX" = yes; then
7257 echo "$as_me:$LINENO: result: yes" >&5
7258echo "${ECHO_T}yes" >&6
7259 else
7260 echo "$as_me:$LINENO: result: no" >&5
7261echo "${ECHO_T}no" >&6
7262 fi
7263
7264
7265 enablestring=
7266 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7267echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7268 no_cache=0
7269 # Check whether --enable-checklst or --disable-checklst was given.
7270if test "${enable_checklst+set}" = set; then
7271 enableval="$enable_checklst"
7272
7273 if test "$enableval" = yes; then
7274 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7275 else
7276 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7277 fi
7278
7279else
7280
7281 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7282 if test "x$LINE" != x ; then
7283 eval "DEFAULT_$LINE"
7284 else
7285 no_cache=1
7286 fi
7287
7288 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7289
7290fi;
7291
7292 eval "$ac_cv_use_checklst"
7293 if test "$no_cache" != 1; then
7294 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7295 fi
7296
7297 if test "$wxUSE_CHECKLST" = yes; then
7298 echo "$as_me:$LINENO: result: yes" >&5
7299echo "${ECHO_T}yes" >&6
7300 else
7301 echo "$as_me:$LINENO: result: no" >&5
7302echo "${ECHO_T}no" >&6
7303 fi
7304
7305
7306 enablestring=
7307 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7308echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7309 no_cache=0
7310 # Check whether --enable-choice or --disable-choice was given.
7311if test "${enable_choice+set}" = set; then
7312 enableval="$enable_choice"
7313
7314 if test "$enableval" = yes; then
7315 ac_cv_use_choice='wxUSE_CHOICE=yes'
7316 else
7317 ac_cv_use_choice='wxUSE_CHOICE=no'
7318 fi
7319
7320else
7321
7322 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7323 if test "x$LINE" != x ; then
7324 eval "DEFAULT_$LINE"
7325 else
7326 no_cache=1
7327 fi
7328
7329 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7330
7331fi;
7332
7333 eval "$ac_cv_use_choice"
7334 if test "$no_cache" != 1; then
7335 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7336 fi
7337
7338 if test "$wxUSE_CHOICE" = yes; then
7339 echo "$as_me:$LINENO: result: yes" >&5
7340echo "${ECHO_T}yes" >&6
7341 else
7342 echo "$as_me:$LINENO: result: no" >&5
7343echo "${ECHO_T}no" >&6
7344 fi
7345
7346
92bbdbcd
WS
7347 enablestring=
7348 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7349echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7350 no_cache=0
7351 # Check whether --enable-choicebook or --disable-choicebook was given.
7352if test "${enable_choicebook+set}" = set; then
7353 enableval="$enable_choicebook"
7354
7355 if test "$enableval" = yes; then
7356 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7357 else
7358 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7359 fi
7360
7361else
7362
7363 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7364 if test "x$LINE" != x ; then
7365 eval "DEFAULT_$LINE"
7366 else
7367 no_cache=1
7368 fi
7369
7370 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7371
7372fi;
7373
7374 eval "$ac_cv_use_choicebook"
7375 if test "$no_cache" != 1; then
7376 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7377 fi
7378
7379 if test "$wxUSE_CHOICEBOOK" = yes; then
7380 echo "$as_me:$LINENO: result: yes" >&5
7381echo "${ECHO_T}yes" >&6
7382 else
7383 echo "$as_me:$LINENO: result: no" >&5
7384echo "${ECHO_T}no" >&6
7385 fi
7386
7387
a848cd7e
SC
7388 enablestring=
7389 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7390echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7391 no_cache=0
7392 # Check whether --enable-combobox or --disable-combobox was given.
7393if test "${enable_combobox+set}" = set; then
7394 enableval="$enable_combobox"
7395
7396 if test "$enableval" = yes; then
7397 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7398 else
7399 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7400 fi
7401
7402else
7403
7404 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7405 if test "x$LINE" != x ; then
7406 eval "DEFAULT_$LINE"
7407 else
7408 no_cache=1
7409 fi
7410
7411 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7412
7413fi;
7414
7415 eval "$ac_cv_use_combobox"
7416 if test "$no_cache" != 1; then
7417 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7418 fi
7419
7420 if test "$wxUSE_COMBOBOX" = yes; then
7421 echo "$as_me:$LINENO: result: yes" >&5
7422echo "${ECHO_T}yes" >&6
7423 else
7424 echo "$as_me:$LINENO: result: no" >&5
7425echo "${ECHO_T}no" >&6
7426 fi
7427
7428
7429 enablestring=
7430 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7431echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7432 no_cache=0
7433 # Check whether --enable-display or --disable-display was given.
7434if test "${enable_display+set}" = set; then
7435 enableval="$enable_display"
7436
7437 if test "$enableval" = yes; then
7438 ac_cv_use_display='wxUSE_DISPLAY=yes'
7439 else
7440 ac_cv_use_display='wxUSE_DISPLAY=no'
7441 fi
7442
7443else
7444
7445 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7446 if test "x$LINE" != x ; then
7447 eval "DEFAULT_$LINE"
7448 else
7449 no_cache=1
7450 fi
7451
7452 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7453
7454fi;
7455
7456 eval "$ac_cv_use_display"
7457 if test "$no_cache" != 1; then
7458 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7459 fi
7460
7461 if test "$wxUSE_DISPLAY" = yes; then
7462 echo "$as_me:$LINENO: result: yes" >&5
7463echo "${ECHO_T}yes" >&6
7464 else
7465 echo "$as_me:$LINENO: result: no" >&5
7466echo "${ECHO_T}no" >&6
7467 fi
7468
7469
7470 enablestring=
7471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7472echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7473 no_cache=0
7474 # Check whether --enable-gauge or --disable-gauge was given.
7475if test "${enable_gauge+set}" = set; then
7476 enableval="$enable_gauge"
7477
7478 if test "$enableval" = yes; then
7479 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7480 else
7481 ac_cv_use_gauge='wxUSE_GAUGE=no'
7482 fi
7483
7484else
7485
7486 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7494
7495fi;
7496
7497 eval "$ac_cv_use_gauge"
7498 if test "$no_cache" != 1; then
7499 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7500 fi
7501
7502 if test "$wxUSE_GAUGE" = yes; then
7503 echo "$as_me:$LINENO: result: yes" >&5
7504echo "${ECHO_T}yes" >&6
7505 else
7506 echo "$as_me:$LINENO: result: no" >&5
7507echo "${ECHO_T}no" >&6
7508 fi
7509
7510
7511 enablestring=
7512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7513echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7514 no_cache=0
7515 # Check whether --enable-grid or --disable-grid was given.
7516if test "${enable_grid+set}" = set; then
7517 enableval="$enable_grid"
7518
7519 if test "$enableval" = yes; then
7520 ac_cv_use_grid='wxUSE_GRID=yes'
7521 else
7522 ac_cv_use_grid='wxUSE_GRID=no'
7523 fi
7524
7525else
7526
7527 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7528 if test "x$LINE" != x ; then
7529 eval "DEFAULT_$LINE"
7530 else
7531 no_cache=1
7532 fi
7533
7534 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7535
7536fi;
7537
7538 eval "$ac_cv_use_grid"
7539 if test "$no_cache" != 1; then
7540 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7541 fi
7542
7543 if test "$wxUSE_GRID" = yes; then
7544 echo "$as_me:$LINENO: result: yes" >&5
7545echo "${ECHO_T}yes" >&6
7546 else
7547 echo "$as_me:$LINENO: result: no" >&5
7548echo "${ECHO_T}no" >&6
7549 fi
7550
7551
7552 enablestring=
7553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7554echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7555 no_cache=0
7556 # Check whether --enable-imaglist or --disable-imaglist was given.
7557if test "${enable_imaglist+set}" = set; then
7558 enableval="$enable_imaglist"
7559
7560 if test "$enableval" = yes; then
7561 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7562 else
7563 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7564 fi
7565
7566else
7567
7568 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7569 if test "x$LINE" != x ; then
7570 eval "DEFAULT_$LINE"
7571 else
7572 no_cache=1
7573 fi
7574
7575 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7576
7577fi;
7578
7579 eval "$ac_cv_use_imaglist"
7580 if test "$no_cache" != 1; then
7581 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7582 fi
7583
7584 if test "$wxUSE_IMAGLIST" = yes; then
7585 echo "$as_me:$LINENO: result: yes" >&5
7586echo "${ECHO_T}yes" >&6
7587 else
7588 echo "$as_me:$LINENO: result: no" >&5
7589echo "${ECHO_T}no" >&6
7590 fi
7591
7592
7593 enablestring=
7594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7595echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7596 no_cache=0
7597 # Check whether --enable-listbook or --disable-listbook was given.
7598if test "${enable_listbook+set}" = set; then
7599 enableval="$enable_listbook"
7600
7601 if test "$enableval" = yes; then
7602 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7603 else
7604 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7605 fi
7606
7607else
7608
7609 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7610 if test "x$LINE" != x ; then
7611 eval "DEFAULT_$LINE"
7612 else
7613 no_cache=1
7614 fi
7615
7616 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7617
7618fi;
7619
7620 eval "$ac_cv_use_listbook"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_LISTBOOK" = yes; then
7626 echo "$as_me:$LINENO: result: yes" >&5
7627echo "${ECHO_T}yes" >&6
7628 else
7629 echo "$as_me:$LINENO: result: no" >&5
7630echo "${ECHO_T}no" >&6
7631 fi
7632
7633
7634 enablestring=
7635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7636echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7637 no_cache=0
7638 # Check whether --enable-listbox or --disable-listbox was given.
7639if test "${enable_listbox+set}" = set; then
7640 enableval="$enable_listbox"
7641
7642 if test "$enableval" = yes; then
7643 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7644 else
7645 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7646 fi
7647
7648else
7649
7650 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7651 if test "x$LINE" != x ; then
7652 eval "DEFAULT_$LINE"
7653 else
7654 no_cache=1
7655 fi
7656
7657 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7658
7659fi;
7660
7661 eval "$ac_cv_use_listbox"
7662 if test "$no_cache" != 1; then
7663 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7664 fi
7665
7666 if test "$wxUSE_LISTBOX" = yes; then
7667 echo "$as_me:$LINENO: result: yes" >&5
7668echo "${ECHO_T}yes" >&6
7669 else
7670 echo "$as_me:$LINENO: result: no" >&5
7671echo "${ECHO_T}no" >&6
7672 fi
7673
7674
7675 enablestring=
7676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7677echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7678 no_cache=0
7679 # Check whether --enable-listctrl or --disable-listctrl was given.
7680if test "${enable_listctrl+set}" = set; then
7681 enableval="$enable_listctrl"
7682
7683 if test "$enableval" = yes; then
7684 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7685 else
7686 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7687 fi
7688
7689else
7690
7691 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7692 if test "x$LINE" != x ; then
7693 eval "DEFAULT_$LINE"
7694 else
7695 no_cache=1
7696 fi
7697
7698 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7699
7700fi;
7701
7702 eval "$ac_cv_use_listctrl"
7703 if test "$no_cache" != 1; then
7704 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7705 fi
7706
7707 if test "$wxUSE_LISTCTRL" = yes; then
7708 echo "$as_me:$LINENO: result: yes" >&5
7709echo "${ECHO_T}yes" >&6
7710 else
7711 echo "$as_me:$LINENO: result: no" >&5
7712echo "${ECHO_T}no" >&6
7713 fi
7714
7715
7716 enablestring=
7717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7718echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7719 no_cache=0
7720 # Check whether --enable-notebook or --disable-notebook was given.
7721if test "${enable_notebook+set}" = set; then
7722 enableval="$enable_notebook"
7723
7724 if test "$enableval" = yes; then
7725 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7726 else
7727 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7728 fi
7729
7730else
7731
7732 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7733 if test "x$LINE" != x ; then
7734 eval "DEFAULT_$LINE"
7735 else
7736 no_cache=1
7737 fi
7738
7739 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7740
7741fi;
7742
7743 eval "$ac_cv_use_notebook"
7744 if test "$no_cache" != 1; then
7745 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7746 fi
7747
7748 if test "$wxUSE_NOTEBOOK" = yes; then
7749 echo "$as_me:$LINENO: result: yes" >&5
7750echo "${ECHO_T}yes" >&6
7751 else
7752 echo "$as_me:$LINENO: result: no" >&5
7753echo "${ECHO_T}no" >&6
7754 fi
7755
7756
7757 enablestring=
7758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7759echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7760 no_cache=0
7761 # Check whether --enable-radiobox or --disable-radiobox was given.
7762if test "${enable_radiobox+set}" = set; then
7763 enableval="$enable_radiobox"
7764
7765 if test "$enableval" = yes; then
7766 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7767 else
7768 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7769 fi
7770
7771else
7772
7773 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7774 if test "x$LINE" != x ; then
7775 eval "DEFAULT_$LINE"
7776 else
7777 no_cache=1
7778 fi
7779
7780 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7781
7782fi;
7783
7784 eval "$ac_cv_use_radiobox"
7785 if test "$no_cache" != 1; then
7786 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7787 fi
7788
7789 if test "$wxUSE_RADIOBOX" = yes; then
7790 echo "$as_me:$LINENO: result: yes" >&5
7791echo "${ECHO_T}yes" >&6
7792 else
7793 echo "$as_me:$LINENO: result: no" >&5
7794echo "${ECHO_T}no" >&6
7795 fi
7796
7797
7798 enablestring=
7799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7800echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7801 no_cache=0
7802 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7803if test "${enable_radiobtn+set}" = set; then
7804 enableval="$enable_radiobtn"
7805
7806 if test "$enableval" = yes; then
7807 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7808 else
7809 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7810 fi
7811
7812else
7813
7814 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7815 if test "x$LINE" != x ; then
7816 eval "DEFAULT_$LINE"
7817 else
7818 no_cache=1
7819 fi
7820
7821 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7822
7823fi;
7824
7825 eval "$ac_cv_use_radiobtn"
7826 if test "$no_cache" != 1; then
7827 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7828 fi
7829
7830 if test "$wxUSE_RADIOBTN" = yes; then
7831 echo "$as_me:$LINENO: result: yes" >&5
7832echo "${ECHO_T}yes" >&6
7833 else
7834 echo "$as_me:$LINENO: result: no" >&5
7835echo "${ECHO_T}no" >&6
7836 fi
7837
7838
7839 enablestring=
7840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7841echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
7842 no_cache=0
7843 # Check whether --enable-sash or --disable-sash was given.
7844if test "${enable_sash+set}" = set; then
7845 enableval="$enable_sash"
7846
7847 if test "$enableval" = yes; then
7848 ac_cv_use_sash='wxUSE_SASH=yes'
7849 else
7850 ac_cv_use_sash='wxUSE_SASH=no'
7851 fi
7852
7853else
7854
7855 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7856 if test "x$LINE" != x ; then
7857 eval "DEFAULT_$LINE"
7858 else
7859 no_cache=1
7860 fi
7861
7862 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
7863
7864fi;
7865
7866 eval "$ac_cv_use_sash"
7867 if test "$no_cache" != 1; then
7868 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7869 fi
7870
7871 if test "$wxUSE_SASH" = yes; then
7872 echo "$as_me:$LINENO: result: yes" >&5
7873echo "${ECHO_T}yes" >&6
7874 else
7875 echo "$as_me:$LINENO: result: no" >&5
7876echo "${ECHO_T}no" >&6
7877 fi
7878
7879
7880 enablestring=
7881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7882echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
7883 no_cache=0
7884 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7885if test "${enable_scrollbar+set}" = set; then
7886 enableval="$enable_scrollbar"
7887
7888 if test "$enableval" = yes; then
7889 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7890 else
7891 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7892 fi
7893
7894else
7895
7896 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7897 if test "x$LINE" != x ; then
7898 eval "DEFAULT_$LINE"
7899 else
7900 no_cache=1
7901 fi
7902
7903 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
7904
7905fi;
7906
7907 eval "$ac_cv_use_scrollbar"
7908 if test "$no_cache" != 1; then
7909 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7910 fi
7911
7912 if test "$wxUSE_SCROLLBAR" = yes; then
7913 echo "$as_me:$LINENO: result: yes" >&5
7914echo "${ECHO_T}yes" >&6
7915 else
7916 echo "$as_me:$LINENO: result: no" >&5
7917echo "${ECHO_T}no" >&6
7918 fi
7919
7920
7921 enablestring=
7922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7923echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
7924 no_cache=0
7925 # Check whether --enable-slider or --disable-slider was given.
7926if test "${enable_slider+set}" = set; then
7927 enableval="$enable_slider"
7928
7929 if test "$enableval" = yes; then
7930 ac_cv_use_slider='wxUSE_SLIDER=yes'
7931 else
7932 ac_cv_use_slider='wxUSE_SLIDER=no'
7933 fi
7934
7935else
7936
7937 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7938 if test "x$LINE" != x ; then
7939 eval "DEFAULT_$LINE"
7940 else
7941 no_cache=1
7942 fi
7943
7944 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
7945
7946fi;
7947
7948 eval "$ac_cv_use_slider"
7949 if test "$no_cache" != 1; then
7950 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7951 fi
7952
7953 if test "$wxUSE_SLIDER" = yes; then
7954 echo "$as_me:$LINENO: result: yes" >&5
7955echo "${ECHO_T}yes" >&6
7956 else
7957 echo "$as_me:$LINENO: result: no" >&5
7958echo "${ECHO_T}no" >&6
7959 fi
7960
7961
7962 enablestring=
7963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7964echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
7965 no_cache=0
7966 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7967if test "${enable_spinbtn+set}" = set; then
7968 enableval="$enable_spinbtn"
7969
7970 if test "$enableval" = yes; then
7971 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7972 else
7973 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7974 fi
7975
7976else
7977
7978 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7979 if test "x$LINE" != x ; then
7980 eval "DEFAULT_$LINE"
7981 else
7982 no_cache=1
7983 fi
7984
7985 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
7986
7987fi;
7988
7989 eval "$ac_cv_use_spinbtn"
7990 if test "$no_cache" != 1; then
7991 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7992 fi
7993
7994 if test "$wxUSE_SPINBTN" = yes; then
7995 echo "$as_me:$LINENO: result: yes" >&5
7996echo "${ECHO_T}yes" >&6
7997 else
7998 echo "$as_me:$LINENO: result: no" >&5
7999echo "${ECHO_T}no" >&6
8000 fi
8001
8002
8003 enablestring=
8004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8005echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8006 no_cache=0
8007 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8008if test "${enable_spinctrl+set}" = set; then
8009 enableval="$enable_spinctrl"
8010
8011 if test "$enableval" = yes; then
8012 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8013 else
8014 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8015 fi
8016
8017else
8018
8019 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8020 if test "x$LINE" != x ; then
8021 eval "DEFAULT_$LINE"
8022 else
8023 no_cache=1
8024 fi
8025
8026 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8027
8028fi;
8029
8030 eval "$ac_cv_use_spinctrl"
8031 if test "$no_cache" != 1; then
8032 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8033 fi
8034
8035 if test "$wxUSE_SPINCTRL" = yes; then
8036 echo "$as_me:$LINENO: result: yes" >&5
8037echo "${ECHO_T}yes" >&6
8038 else
8039 echo "$as_me:$LINENO: result: no" >&5
8040echo "${ECHO_T}no" >&6
8041 fi
8042
8043
8044 enablestring=
8045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8046echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8047 no_cache=0
8048 # Check whether --enable-splitter or --disable-splitter was given.
8049if test "${enable_splitter+set}" = set; then
8050 enableval="$enable_splitter"
8051
8052 if test "$enableval" = yes; then
8053 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8054 else
8055 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8056 fi
8057
8058else
8059
8060 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8061 if test "x$LINE" != x ; then
8062 eval "DEFAULT_$LINE"
8063 else
8064 no_cache=1
8065 fi
8066
8067 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8068
8069fi;
8070
8071 eval "$ac_cv_use_splitter"
8072 if test "$no_cache" != 1; then
8073 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8074 fi
8075
8076 if test "$wxUSE_SPLITTER" = yes; then
8077 echo "$as_me:$LINENO: result: yes" >&5
8078echo "${ECHO_T}yes" >&6
8079 else
8080 echo "$as_me:$LINENO: result: no" >&5
8081echo "${ECHO_T}no" >&6
8082 fi
8083
8084
8085 enablestring=
8086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8087echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8088 no_cache=0
8089 # Check whether --enable-statbmp or --disable-statbmp was given.
8090if test "${enable_statbmp+set}" = set; then
8091 enableval="$enable_statbmp"
8092
8093 if test "$enableval" = yes; then
8094 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8095 else
8096 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8097 fi
8098
8099else
8100
8101 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8102 if test "x$LINE" != x ; then
8103 eval "DEFAULT_$LINE"
8104 else
8105 no_cache=1
8106 fi
8107
8108 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8109
8110fi;
8111
8112 eval "$ac_cv_use_statbmp"
8113 if test "$no_cache" != 1; then
8114 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8115 fi
8116
8117 if test "$wxUSE_STATBMP" = yes; then
8118 echo "$as_me:$LINENO: result: yes" >&5
8119echo "${ECHO_T}yes" >&6
8120 else
8121 echo "$as_me:$LINENO: result: no" >&5
8122echo "${ECHO_T}no" >&6
8123 fi
8124
8125
8126 enablestring=
8127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8128echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8129 no_cache=0
8130 # Check whether --enable-statbox or --disable-statbox was given.
8131if test "${enable_statbox+set}" = set; then
8132 enableval="$enable_statbox"
8133
8134 if test "$enableval" = yes; then
8135 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8136 else
8137 ac_cv_use_statbox='wxUSE_STATBOX=no'
8138 fi
8139
8140else
8141
8142 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8143 if test "x$LINE" != x ; then
8144 eval "DEFAULT_$LINE"
8145 else
8146 no_cache=1
8147 fi
8148
8149 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8150
8151fi;
8152
8153 eval "$ac_cv_use_statbox"
8154 if test "$no_cache" != 1; then
8155 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8156 fi
8157
8158 if test "$wxUSE_STATBOX" = yes; then
8159 echo "$as_me:$LINENO: result: yes" >&5
8160echo "${ECHO_T}yes" >&6
8161 else
8162 echo "$as_me:$LINENO: result: no" >&5
8163echo "${ECHO_T}no" >&6
8164 fi
8165
8166
8167 enablestring=
8168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8169echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8170 no_cache=0
8171 # Check whether --enable-statline or --disable-statline was given.
8172if test "${enable_statline+set}" = set; then
8173 enableval="$enable_statline"
8174
8175 if test "$enableval" = yes; then
8176 ac_cv_use_statline='wxUSE_STATLINE=yes'
8177 else
8178 ac_cv_use_statline='wxUSE_STATLINE=no'
8179 fi
8180
8181else
8182
8183 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8184 if test "x$LINE" != x ; then
8185 eval "DEFAULT_$LINE"
8186 else
8187 no_cache=1
8188 fi
8189
8190 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8191
8192fi;
8193
8194 eval "$ac_cv_use_statline"
8195 if test "$no_cache" != 1; then
8196 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8197 fi
8198
8199 if test "$wxUSE_STATLINE" = yes; then
8200 echo "$as_me:$LINENO: result: yes" >&5
8201echo "${ECHO_T}yes" >&6
8202 else
8203 echo "$as_me:$LINENO: result: no" >&5
8204echo "${ECHO_T}no" >&6
8205 fi
8206
8207
8208 enablestring=
8209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8210echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8211 no_cache=0
8212 # Check whether --enable-stattext or --disable-stattext was given.
8213if test "${enable_stattext+set}" = set; then
8214 enableval="$enable_stattext"
8215
8216 if test "$enableval" = yes; then
8217 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8218 else
8219 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8220 fi
8221
8222else
8223
8224 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8225 if test "x$LINE" != x ; then
8226 eval "DEFAULT_$LINE"
8227 else
8228 no_cache=1
8229 fi
8230
8231 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8232
8233fi;
8234
8235 eval "$ac_cv_use_stattext"
8236 if test "$no_cache" != 1; then
8237 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8238 fi
8239
8240 if test "$wxUSE_STATTEXT" = yes; then
8241 echo "$as_me:$LINENO: result: yes" >&5
8242echo "${ECHO_T}yes" >&6
8243 else
8244 echo "$as_me:$LINENO: result: no" >&5
8245echo "${ECHO_T}no" >&6
8246 fi
8247
8248
8249 enablestring=
8250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8251echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8252 no_cache=0
8253 # Check whether --enable-statusbar or --disable-statusbar was given.
8254if test "${enable_statusbar+set}" = set; then
8255 enableval="$enable_statusbar"
8256
8257 if test "$enableval" = yes; then
8258 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8259 else
8260 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8261 fi
8262
8263else
8264
8265 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8266 if test "x$LINE" != x ; then
8267 eval "DEFAULT_$LINE"
8268 else
8269 no_cache=1
8270 fi
8271
8272 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8273
8274fi;
8275
8276 eval "$ac_cv_use_statusbar"
8277 if test "$no_cache" != 1; then
8278 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8279 fi
8280
8281 if test "$wxUSE_STATUSBAR" = yes; then
8282 echo "$as_me:$LINENO: result: yes" >&5
8283echo "${ECHO_T}yes" >&6
8284 else
8285 echo "$as_me:$LINENO: result: no" >&5
8286echo "${ECHO_T}no" >&6
8287 fi
8288
8289
8290 enablestring=
8291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8292echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8293 no_cache=0
8294 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8295if test "${enable_tabdialog+set}" = set; then
8296 enableval="$enable_tabdialog"
8297
8298 if test "$enableval" = yes; then
8299 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8300 else
8301 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8302 fi
8303
8304else
8305
8306 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8307 if test "x$LINE" != x ; then
8308 eval "DEFAULT_$LINE"
8309 else
8310 no_cache=1
8311 fi
8312
8313 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8314
8315fi;
8316
8317 eval "$ac_cv_use_tabdialog"
8318 if test "$no_cache" != 1; then
8319 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8320 fi
8321
8322 if test "$wxUSE_TABDIALOG" = yes; then
8323 echo "$as_me:$LINENO: result: yes" >&5
8324echo "${ECHO_T}yes" >&6
8325 else
8326 echo "$as_me:$LINENO: result: no" >&5
8327echo "${ECHO_T}no" >&6
8328 fi
8329
8330
8331 enablestring=
8332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8333echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8334 no_cache=0
8335 # Check whether --enable-textctrl or --disable-textctrl was given.
8336if test "${enable_textctrl+set}" = set; then
8337 enableval="$enable_textctrl"
8338
8339 if test "$enableval" = yes; then
8340 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8341 else
8342 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8343 fi
8344
8345else
8346
8347 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8348 if test "x$LINE" != x ; then
8349 eval "DEFAULT_$LINE"
8350 else
8351 no_cache=1
8352 fi
8353
8354 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8355
8356fi;
8357
8358 eval "$ac_cv_use_textctrl"
8359 if test "$no_cache" != 1; then
8360 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8361 fi
8362
8363 if test "$wxUSE_TEXTCTRL" = yes; then
8364 echo "$as_me:$LINENO: result: yes" >&5
8365echo "${ECHO_T}yes" >&6
8366 else
8367 echo "$as_me:$LINENO: result: no" >&5
8368echo "${ECHO_T}no" >&6
8369 fi
8370
8371
8372 enablestring=
8373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8374echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8375 no_cache=0
8376 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8377if test "${enable_togglebtn+set}" = set; then
8378 enableval="$enable_togglebtn"
8379
8380 if test "$enableval" = yes; then
8381 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8382 else
8383 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8384 fi
8385
8386else
8387
8388 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8389 if test "x$LINE" != x ; then
8390 eval "DEFAULT_$LINE"
8391 else
8392 no_cache=1
8393 fi
8394
8395 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8396
8397fi;
8398
8399 eval "$ac_cv_use_togglebtn"
8400 if test "$no_cache" != 1; then
8401 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8402 fi
8403
8404 if test "$wxUSE_TOGGLEBTN" = yes; then
8405 echo "$as_me:$LINENO: result: yes" >&5
8406echo "${ECHO_T}yes" >&6
8407 else
8408 echo "$as_me:$LINENO: result: no" >&5
8409echo "${ECHO_T}no" >&6
8410 fi
8411
8412
8413 enablestring=
8414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8415echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8416 no_cache=0
8417 # Check whether --enable-toolbar or --disable-toolbar was given.
8418if test "${enable_toolbar+set}" = set; then
8419 enableval="$enable_toolbar"
8420
8421 if test "$enableval" = yes; then
8422 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8423 else
8424 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8425 fi
8426
8427else
8428
8429 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8430 if test "x$LINE" != x ; then
8431 eval "DEFAULT_$LINE"
8432 else
8433 no_cache=1
8434 fi
8435
8436 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8437
8438fi;
8439
8440 eval "$ac_cv_use_toolbar"
8441 if test "$no_cache" != 1; then
8442 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8443 fi
8444
8445 if test "$wxUSE_TOOLBAR" = yes; then
8446 echo "$as_me:$LINENO: result: yes" >&5
8447echo "${ECHO_T}yes" >&6
8448 else
8449 echo "$as_me:$LINENO: result: no" >&5
8450echo "${ECHO_T}no" >&6
8451 fi
8452
8453
8454 enablestring=
8455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8456echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8457 no_cache=0
8458 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8459if test "${enable_tbarnative+set}" = set; then
8460 enableval="$enable_tbarnative"
8461
8462 if test "$enableval" = yes; then
8463 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8464 else
8465 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8466 fi
8467
8468else
8469
8470 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8471 if test "x$LINE" != x ; then
8472 eval "DEFAULT_$LINE"
8473 else
8474 no_cache=1
8475 fi
8476
8477 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8478
8479fi;
8480
8481 eval "$ac_cv_use_tbarnative"
8482 if test "$no_cache" != 1; then
8483 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8484 fi
8485
8486 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8487 echo "$as_me:$LINENO: result: yes" >&5
8488echo "${ECHO_T}yes" >&6
8489 else
8490 echo "$as_me:$LINENO: result: no" >&5
8491echo "${ECHO_T}no" >&6
8492 fi
8493
8494
8495 enablestring=
8496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8497echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8498 no_cache=0
8499 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8500if test "${enable_tbarsmpl+set}" = set; then
8501 enableval="$enable_tbarsmpl"
8502
8503 if test "$enableval" = yes; then
8504 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8505 else
8506 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8507 fi
8508
8509else
8510
8511 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8512 if test "x$LINE" != x ; then
8513 eval "DEFAULT_$LINE"
8514 else
8515 no_cache=1
8516 fi
8517
8518 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8519
8520fi;
8521
8522 eval "$ac_cv_use_tbarsmpl"
8523 if test "$no_cache" != 1; then
8524 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8525 fi
8526
8527 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8528 echo "$as_me:$LINENO: result: yes" >&5
8529echo "${ECHO_T}yes" >&6
8530 else
8531 echo "$as_me:$LINENO: result: no" >&5
8532echo "${ECHO_T}no" >&6
8533 fi
8534
8535
8536 enablestring=
8537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8538echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8539 no_cache=0
8540 # Check whether --enable-treectrl or --disable-treectrl was given.
8541if test "${enable_treectrl+set}" = set; then
8542 enableval="$enable_treectrl"
8543
8544 if test "$enableval" = yes; then
8545 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8546 else
8547 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8548 fi
8549
8550else
8551
8552 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8553 if test "x$LINE" != x ; then
8554 eval "DEFAULT_$LINE"
8555 else
8556 no_cache=1
8557 fi
8558
8559 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8560
8561fi;
8562
8563 eval "$ac_cv_use_treectrl"
8564 if test "$no_cache" != 1; then
8565 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8566 fi
8567
8568 if test "$wxUSE_TREECTRL" = yes; then
8569 echo "$as_me:$LINENO: result: yes" >&5
8570echo "${ECHO_T}yes" >&6
8571 else
8572 echo "$as_me:$LINENO: result: no" >&5
8573echo "${ECHO_T}no" >&6
8574 fi
8575
8576
8577 enablestring=
8578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8579echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8580 no_cache=0
8581 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8582if test "${enable_tipwindow+set}" = set; then
8583 enableval="$enable_tipwindow"
8584
8585 if test "$enableval" = yes; then
8586 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8587 else
8588 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8589 fi
8590
8591else
8592
8593 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8594 if test "x$LINE" != x ; then
8595 eval "DEFAULT_$LINE"
8596 else
8597 no_cache=1
8598 fi
8599
8600 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8601
8602fi;
8603
8604 eval "$ac_cv_use_tipwindow"
8605 if test "$no_cache" != 1; then
8606 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8607 fi
8608
8609 if test "$wxUSE_TIPWINDOW" = yes; then
8610 echo "$as_me:$LINENO: result: yes" >&5
8611echo "${ECHO_T}yes" >&6
8612 else
8613 echo "$as_me:$LINENO: result: no" >&5
8614echo "${ECHO_T}no" >&6
8615 fi
8616
8617
8618 enablestring=
8619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8620echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8621 no_cache=0
8622 # Check whether --enable-popupwin or --disable-popupwin was given.
8623if test "${enable_popupwin+set}" = set; then
8624 enableval="$enable_popupwin"
8625
8626 if test "$enableval" = yes; then
8627 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8628 else
8629 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8630 fi
8631
8632else
8633
8634 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8635 if test "x$LINE" != x ; then
8636 eval "DEFAULT_$LINE"
8637 else
8638 no_cache=1
8639 fi
8640
8641 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8642
8643fi;
8644
8645 eval "$ac_cv_use_popupwin"
8646 if test "$no_cache" != 1; then
8647 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8648 fi
8649
8650 if test "$wxUSE_POPUPWIN" = yes; then
8651 echo "$as_me:$LINENO: result: yes" >&5
8652echo "${ECHO_T}yes" >&6
8653 else
8654 echo "$as_me:$LINENO: result: no" >&5
8655echo "${ECHO_T}no" >&6
8656 fi
8657
8658
8659
8660
8661 enablestring=
8662 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8663echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8664 no_cache=0
8665 # Check whether --enable-commondlg or --disable-commondlg was given.
8666if test "${enable_commondlg+set}" = set; then
8667 enableval="$enable_commondlg"
8668
8669 if test "$enableval" = yes; then
8670 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8671 else
8672 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8673 fi
8674
8675else
8676
8677 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8678 if test "x$LINE" != x ; then
8679 eval "DEFAULT_$LINE"
8680 else
8681 no_cache=1
8682 fi
8683
8684 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8685
8686fi;
8687
8688 eval "$ac_cv_use_commondlg"
8689 if test "$no_cache" != 1; then
8690 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8691 fi
8692
8693 if test "$wxUSE_COMMONDLGS" = yes; then
8694 echo "$as_me:$LINENO: result: yes" >&5
8695echo "${ECHO_T}yes" >&6
8696 else
8697 echo "$as_me:$LINENO: result: no" >&5
8698echo "${ECHO_T}no" >&6
8699 fi
8700
8701
8702 enablestring=
8703 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8704echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8705 no_cache=0
8706 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8707if test "${enable_choicedlg+set}" = set; then
8708 enableval="$enable_choicedlg"
8709
8710 if test "$enableval" = yes; then
8711 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8712 else
8713 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8714 fi
8715
8716else
8717
8718 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8719 if test "x$LINE" != x ; then
8720 eval "DEFAULT_$LINE"
8721 else
8722 no_cache=1
8723 fi
8724
8725 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8726
8727fi;
8728
8729 eval "$ac_cv_use_choicedlg"
8730 if test "$no_cache" != 1; then
8731 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8732 fi
8733
8734 if test "$wxUSE_CHOICEDLG" = yes; then
8735 echo "$as_me:$LINENO: result: yes" >&5
8736echo "${ECHO_T}yes" >&6
8737 else
8738 echo "$as_me:$LINENO: result: no" >&5
8739echo "${ECHO_T}no" >&6
8740 fi
8741
8742
8743 enablestring=
8744 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8745echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8746 no_cache=0
8747 # Check whether --enable-coldlg or --disable-coldlg was given.
8748if test "${enable_coldlg+set}" = set; then
8749 enableval="$enable_coldlg"
8750
8751 if test "$enableval" = yes; then
8752 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8753 else
8754 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8755 fi
8756
8757else
8758
8759 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8760 if test "x$LINE" != x ; then
8761 eval "DEFAULT_$LINE"
8762 else
8763 no_cache=1
8764 fi
8765
8766 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8767
8768fi;
8769
8770 eval "$ac_cv_use_coldlg"
8771 if test "$no_cache" != 1; then
8772 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8773 fi
8774
8775 if test "$wxUSE_COLOURDLG" = yes; then
8776 echo "$as_me:$LINENO: result: yes" >&5
8777echo "${ECHO_T}yes" >&6
8778 else
8779 echo "$as_me:$LINENO: result: no" >&5
8780echo "${ECHO_T}no" >&6
8781 fi
8782
8783
8784 enablestring=
8785 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8786echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8787 no_cache=0
8788 # Check whether --enable-filedlg or --disable-filedlg was given.
8789if test "${enable_filedlg+set}" = set; then
8790 enableval="$enable_filedlg"
8791
8792 if test "$enableval" = yes; then
8793 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8794 else
8795 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8796 fi
8797
8798else
8799
8800 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8801 if test "x$LINE" != x ; then
8802 eval "DEFAULT_$LINE"
8803 else
8804 no_cache=1
8805 fi
8806
8807 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8808
8809fi;
8810
8811 eval "$ac_cv_use_filedlg"
8812 if test "$no_cache" != 1; then
8813 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8814 fi
8815
8816 if test "$wxUSE_FILEDLG" = yes; then
8817 echo "$as_me:$LINENO: result: yes" >&5
8818echo "${ECHO_T}yes" >&6
8819 else
8820 echo "$as_me:$LINENO: result: no" >&5
8821echo "${ECHO_T}no" >&6
8822 fi
8823
8824
8825 enablestring=
8826 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8827echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8828 no_cache=0
8829 # Check whether --enable-finddlg or --disable-finddlg was given.
8830if test "${enable_finddlg+set}" = set; then
8831 enableval="$enable_finddlg"
8832
8833 if test "$enableval" = yes; then
8834 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8835 else
8836 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8837 fi
8838
8839else
8840
8841 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8842 if test "x$LINE" != x ; then
8843 eval "DEFAULT_$LINE"
8844 else
8845 no_cache=1
8846 fi
8847
8848 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8849
8850fi;
8851
8852 eval "$ac_cv_use_finddlg"
8853 if test "$no_cache" != 1; then
8854 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8855 fi
8856
8857 if test "$wxUSE_FINDREPLDLG" = yes; then
8858 echo "$as_me:$LINENO: result: yes" >&5
8859echo "${ECHO_T}yes" >&6
8860 else
8861 echo "$as_me:$LINENO: result: no" >&5
8862echo "${ECHO_T}no" >&6
8863 fi
8864
8865
8866 enablestring=
8867 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8868echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
8869 no_cache=0
8870 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8871if test "${enable_fontdlg+set}" = set; then
8872 enableval="$enable_fontdlg"
8873
8874 if test "$enableval" = yes; then
8875 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8876 else
8877 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8878 fi
8879
8880else
8881
8882 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8883 if test "x$LINE" != x ; then
8884 eval "DEFAULT_$LINE"
8885 else
8886 no_cache=1
8887 fi
8888
8889 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
8890
8891fi;
8892
8893 eval "$ac_cv_use_fontdlg"
8894 if test "$no_cache" != 1; then
8895 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8896 fi
8897
8898 if test "$wxUSE_FONTDLG" = yes; then
8899 echo "$as_me:$LINENO: result: yes" >&5
8900echo "${ECHO_T}yes" >&6
8901 else
8902 echo "$as_me:$LINENO: result: no" >&5
8903echo "${ECHO_T}no" >&6
8904 fi
8905
8906
8907 enablestring=
8908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8909echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
8910 no_cache=0
8911 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8912if test "${enable_dirdlg+set}" = set; then
8913 enableval="$enable_dirdlg"
8914
8915 if test "$enableval" = yes; then
8916 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8917 else
8918 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8919 fi
8920
8921else
8922
8923 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8924 if test "x$LINE" != x ; then
8925 eval "DEFAULT_$LINE"
8926 else
8927 no_cache=1
8928 fi
8929
8930 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
8931
8932fi;
8933
8934 eval "$ac_cv_use_dirdlg"
8935 if test "$no_cache" != 1; then
8936 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
8937 fi
8938
8939 if test "$wxUSE_DIRDLG" = yes; then
8940 echo "$as_me:$LINENO: result: yes" >&5
8941echo "${ECHO_T}yes" >&6
8942 else
8943 echo "$as_me:$LINENO: result: no" >&5
8944echo "${ECHO_T}no" >&6
8945 fi
8946
8947
8948 enablestring=
8949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8950echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
8951 no_cache=0
8952 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8953if test "${enable_msgdlg+set}" = set; then
8954 enableval="$enable_msgdlg"
8955
8956 if test "$enableval" = yes; then
8957 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
8958 else
8959 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
8960 fi
8961
8962else
8963
8964 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
8965 if test "x$LINE" != x ; then
8966 eval "DEFAULT_$LINE"
8967 else
8968 no_cache=1
8969 fi
8970
8971 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
8972
8973fi;
8974
8975 eval "$ac_cv_use_msgdlg"
8976 if test "$no_cache" != 1; then
8977 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
8978 fi
8979
8980 if test "$wxUSE_MSGDLG" = yes; then
8981 echo "$as_me:$LINENO: result: yes" >&5
8982echo "${ECHO_T}yes" >&6
8983 else
8984 echo "$as_me:$LINENO: result: no" >&5
8985echo "${ECHO_T}no" >&6
8986 fi
8987
8988
8989 enablestring=
8990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8991echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
8992 no_cache=0
8993 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8994if test "${enable_numberdlg+set}" = set; then
8995 enableval="$enable_numberdlg"
8996
8997 if test "$enableval" = yes; then
8998 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
8999 else
9000 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9001 fi
9002
9003else
9004
9005 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9006 if test "x$LINE" != x ; then
9007 eval "DEFAULT_$LINE"
9008 else
9009 no_cache=1
9010 fi
9011
9012 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9013
9014fi;
9015
9016 eval "$ac_cv_use_numberdlg"
9017 if test "$no_cache" != 1; then
9018 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9019 fi
9020
9021 if test "$wxUSE_NUMBERDLG" = yes; then
9022 echo "$as_me:$LINENO: result: yes" >&5
9023echo "${ECHO_T}yes" >&6
9024 else
9025 echo "$as_me:$LINENO: result: no" >&5
9026echo "${ECHO_T}no" >&6
9027 fi
9028
9029
9030 enablestring=
9031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9032echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9033 no_cache=0
9034 # Check whether --enable-splash or --disable-splash was given.
9035if test "${enable_splash+set}" = set; then
9036 enableval="$enable_splash"
9037
9038 if test "$enableval" = yes; then
9039 ac_cv_use_splash='wxUSE_SPLASH=yes'
9040 else
9041 ac_cv_use_splash='wxUSE_SPLASH=no'
9042 fi
9043
9044else
9045
9046 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9047 if test "x$LINE" != x ; then
9048 eval "DEFAULT_$LINE"
9049 else
9050 no_cache=1
9051 fi
9052
9053 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9054
9055fi;
9056
9057 eval "$ac_cv_use_splash"
9058 if test "$no_cache" != 1; then
9059 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9060 fi
9061
9062 if test "$wxUSE_SPLASH" = yes; then
9063 echo "$as_me:$LINENO: result: yes" >&5
9064echo "${ECHO_T}yes" >&6
9065 else
9066 echo "$as_me:$LINENO: result: no" >&5
9067echo "${ECHO_T}no" >&6
9068 fi
9069
9070
9071 enablestring=
9072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9073echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9074 no_cache=0
9075 # Check whether --enable-textdlg or --disable-textdlg was given.
9076if test "${enable_textdlg+set}" = set; then
9077 enableval="$enable_textdlg"
9078
9079 if test "$enableval" = yes; then
9080 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9081 else
9082 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9083 fi
9084
9085else
9086
9087 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9088 if test "x$LINE" != x ; then
9089 eval "DEFAULT_$LINE"
9090 else
9091 no_cache=1
9092 fi
9093
9094 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9095
9096fi;
9097
9098 eval "$ac_cv_use_textdlg"
9099 if test "$no_cache" != 1; then
9100 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9101 fi
9102
9103 if test "$wxUSE_TEXTDLG" = yes; then
9104 echo "$as_me:$LINENO: result: yes" >&5
9105echo "${ECHO_T}yes" >&6
9106 else
9107 echo "$as_me:$LINENO: result: no" >&5
9108echo "${ECHO_T}no" >&6
9109 fi
9110
9111
9112 enablestring=
9113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9114echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9115 no_cache=0
9116 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9117if test "${enable_tipdlg+set}" = set; then
9118 enableval="$enable_tipdlg"
9119
9120 if test "$enableval" = yes; then
9121 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9122 else
9123 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9124 fi
9125
9126else
9127
9128 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9129 if test "x$LINE" != x ; then
9130 eval "DEFAULT_$LINE"
9131 else
9132 no_cache=1
9133 fi
9134
9135 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9136
9137fi;
9138
9139 eval "$ac_cv_use_tipdlg"
9140 if test "$no_cache" != 1; then
9141 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9142 fi
9143
9144 if test "$wxUSE_STARTUP_TIPS" = yes; then
9145 echo "$as_me:$LINENO: result: yes" >&5
9146echo "${ECHO_T}yes" >&6
9147 else
9148 echo "$as_me:$LINENO: result: no" >&5
9149echo "${ECHO_T}no" >&6
9150 fi
9151
9152
9153 enablestring=
9154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9155echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9156 no_cache=0
9157 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9158if test "${enable_progressdlg+set}" = set; then
9159 enableval="$enable_progressdlg"
9160
9161 if test "$enableval" = yes; then
9162 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9163 else
9164 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9165 fi
9166
9167else
9168
9169 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9170 if test "x$LINE" != x ; then
9171 eval "DEFAULT_$LINE"
9172 else
9173 no_cache=1
9174 fi
9175
9176 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9177
9178fi;
9179
9180 eval "$ac_cv_use_progressdlg"
9181 if test "$no_cache" != 1; then
9182 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9183 fi
9184
9185 if test "$wxUSE_PROGRESSDLG" = yes; then
9186 echo "$as_me:$LINENO: result: yes" >&5
9187echo "${ECHO_T}yes" >&6
9188 else
9189 echo "$as_me:$LINENO: result: no" >&5
9190echo "${ECHO_T}no" >&6
9191 fi
9192
9193
9194 enablestring=
9195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9196echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9197 no_cache=0
9198 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9199if test "${enable_wizarddlg+set}" = set; then
9200 enableval="$enable_wizarddlg"
9201
9202 if test "$enableval" = yes; then
9203 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9204 else
9205 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9206 fi
9207
9208else
9209
9210 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9211 if test "x$LINE" != x ; then
9212 eval "DEFAULT_$LINE"
9213 else
9214 no_cache=1
9215 fi
9216
9217 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9218
9219fi;
9220
9221 eval "$ac_cv_use_wizarddlg"
9222 if test "$no_cache" != 1; then
9223 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9224 fi
9225
9226 if test "$wxUSE_WIZARDDLG" = yes; then
9227 echo "$as_me:$LINENO: result: yes" >&5
9228echo "${ECHO_T}yes" >&6
9229 else
9230 echo "$as_me:$LINENO: result: no" >&5
9231echo "${ECHO_T}no" >&6
9232 fi
9233
9234
9235
9236
9237 enablestring=
9238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9239echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9240 no_cache=0
9241 # Check whether --enable-menus or --disable-menus was given.
9242if test "${enable_menus+set}" = set; then
9243 enableval="$enable_menus"
9244
9245 if test "$enableval" = yes; then
9246 ac_cv_use_menus='wxUSE_MENUS=yes'
9247 else
9248 ac_cv_use_menus='wxUSE_MENUS=no'
9249 fi
9250
9251else
9252
9253 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9254 if test "x$LINE" != x ; then
9255 eval "DEFAULT_$LINE"
9256 else
9257 no_cache=1
9258 fi
9259
9260 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9261
9262fi;
9263
9264 eval "$ac_cv_use_menus"
9265 if test "$no_cache" != 1; then
9266 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9267 fi
9268
9269 if test "$wxUSE_MENUS" = yes; then
9270 echo "$as_me:$LINENO: result: yes" >&5
9271echo "${ECHO_T}yes" >&6
9272 else
9273 echo "$as_me:$LINENO: result: no" >&5
9274echo "${ECHO_T}no" >&6
9275 fi
9276
9277
9278 enablestring=
9279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9280echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9281 no_cache=0
9282 # Check whether --enable-miniframe or --disable-miniframe was given.
9283if test "${enable_miniframe+set}" = set; then
9284 enableval="$enable_miniframe"
9285
9286 if test "$enableval" = yes; then
9287 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9288 else
9289 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9290 fi
9291
9292else
9293
9294 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9295 if test "x$LINE" != x ; then
9296 eval "DEFAULT_$LINE"
9297 else
9298 no_cache=1
9299 fi
9300
9301 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9302
9303fi;
9304
9305 eval "$ac_cv_use_miniframe"
9306 if test "$no_cache" != 1; then
9307 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9308 fi
9309
9310 if test "$wxUSE_MINIFRAME" = yes; then
9311 echo "$as_me:$LINENO: result: yes" >&5
9312echo "${ECHO_T}yes" >&6
9313 else
9314 echo "$as_me:$LINENO: result: no" >&5
9315echo "${ECHO_T}no" >&6
9316 fi
9317
9318
9319 enablestring=
9320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9321echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9322 no_cache=0
9323 # Check whether --enable-tooltips or --disable-tooltips was given.
9324if test "${enable_tooltips+set}" = set; then
9325 enableval="$enable_tooltips"
9326
9327 if test "$enableval" = yes; then
9328 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9329 else
9330 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9331 fi
9332
9333else
9334
9335 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9336 if test "x$LINE" != x ; then
9337 eval "DEFAULT_$LINE"
9338 else
9339 no_cache=1
9340 fi
9341
9342 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9343
9344fi;
9345
9346 eval "$ac_cv_use_tooltips"
9347 if test "$no_cache" != 1; then
9348 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9349 fi
9350
9351 if test "$wxUSE_TOOLTIPS" = yes; then
9352 echo "$as_me:$LINENO: result: yes" >&5
9353echo "${ECHO_T}yes" >&6
9354 else
9355 echo "$as_me:$LINENO: result: no" >&5
9356echo "${ECHO_T}no" >&6
9357 fi
9358
9359
9360 enablestring=
9361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9362echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9363 no_cache=0
9364 # Check whether --enable-splines or --disable-splines was given.
9365if test "${enable_splines+set}" = set; then
9366 enableval="$enable_splines"
9367
9368 if test "$enableval" = yes; then
9369 ac_cv_use_splines='wxUSE_SPLINES=yes'
9370 else
9371 ac_cv_use_splines='wxUSE_SPLINES=no'
9372 fi
9373
9374else
9375
9376 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9377 if test "x$LINE" != x ; then
9378 eval "DEFAULT_$LINE"
9379 else
9380 no_cache=1
9381 fi
9382
9383 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9384
9385fi;
9386
9387 eval "$ac_cv_use_splines"
9388 if test "$no_cache" != 1; then
9389 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9390 fi
9391
9392 if test "$wxUSE_SPLINES" = yes; then
9393 echo "$as_me:$LINENO: result: yes" >&5
9394echo "${ECHO_T}yes" >&6
9395 else
9396 echo "$as_me:$LINENO: result: no" >&5
9397echo "${ECHO_T}no" >&6
9398 fi
9399
9400
9401 enablestring=
9402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9403echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9404 no_cache=0
9405 # Check whether --enable-validators or --disable-validators was given.
9406if test "${enable_validators+set}" = set; then
9407 enableval="$enable_validators"
9408
9409 if test "$enableval" = yes; then
9410 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9411 else
9412 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9413 fi
9414
9415else
9416
9417 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9418 if test "x$LINE" != x ; then
9419 eval "DEFAULT_$LINE"
9420 else
9421 no_cache=1
9422 fi
9423
9424 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9425
9426fi;
9427
9428 eval "$ac_cv_use_validators"
9429 if test "$no_cache" != 1; then
9430 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9431 fi
9432
9433 if test "$wxUSE_VALIDATORS" = yes; then
9434 echo "$as_me:$LINENO: result: yes" >&5
9435echo "${ECHO_T}yes" >&6
9436 else
9437 echo "$as_me:$LINENO: result: no" >&5
9438echo "${ECHO_T}no" >&6
9439 fi
9440
9441
9442 enablestring=
9443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9444echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9445 no_cache=0
9446 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9447if test "${enable_busyinfo+set}" = set; then
9448 enableval="$enable_busyinfo"
9449
9450 if test "$enableval" = yes; then
9451 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9452 else
9453 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9454 fi
9455
9456else
9457
9458 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9459 if test "x$LINE" != x ; then
9460 eval "DEFAULT_$LINE"
9461 else
9462 no_cache=1
9463 fi
9464
9465 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9466
9467fi;
9468
9469 eval "$ac_cv_use_busyinfo"
9470 if test "$no_cache" != 1; then
9471 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9472 fi
9473
9474 if test "$wxUSE_BUSYINFO" = yes; then
9475 echo "$as_me:$LINENO: result: yes" >&5
9476echo "${ECHO_T}yes" >&6
9477 else
9478 echo "$as_me:$LINENO: result: no" >&5
9479echo "${ECHO_T}no" >&6
9480 fi
9481
9482
9483 enablestring=
9484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9485echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9486 no_cache=0
9487 # Check whether --enable-joystick or --disable-joystick was given.
9488if test "${enable_joystick+set}" = set; then
9489 enableval="$enable_joystick"
9490
9491 if test "$enableval" = yes; then
9492 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9493 else
9494 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9495 fi
9496
9497else
9498
9499 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9500 if test "x$LINE" != x ; then
9501 eval "DEFAULT_$LINE"
9502 else
9503 no_cache=1
9504 fi
9505
9506 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9507
9508fi;
9509
9510 eval "$ac_cv_use_joystick"
9511 if test "$no_cache" != 1; then
9512 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9513 fi
9514
9515 if test "$wxUSE_JOYSTICK" = yes; then
9516 echo "$as_me:$LINENO: result: yes" >&5
9517echo "${ECHO_T}yes" >&6
9518 else
9519 echo "$as_me:$LINENO: result: no" >&5
9520echo "${ECHO_T}no" >&6
9521 fi
9522
9523
9524 enablestring=
9525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9526echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9527 no_cache=0
9528 # Check whether --enable-metafile or --disable-metafile was given.
9529if test "${enable_metafile+set}" = set; then
9530 enableval="$enable_metafile"
9531
9532 if test "$enableval" = yes; then
9533 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9534 else
9535 ac_cv_use_metafile='wxUSE_METAFILE=no'
9536 fi
9537
9538else
9539
9540 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9541 if test "x$LINE" != x ; then
9542 eval "DEFAULT_$LINE"
9543 else
9544 no_cache=1
9545 fi
9546
9547 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9548
9549fi;
9550
9551 eval "$ac_cv_use_metafile"
9552 if test "$no_cache" != 1; then
9553 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9554 fi
9555
9556 if test "$wxUSE_METAFILE" = yes; then
9557 echo "$as_me:$LINENO: result: yes" >&5
9558echo "${ECHO_T}yes" >&6
9559 else
9560 echo "$as_me:$LINENO: result: no" >&5
9561echo "${ECHO_T}no" >&6
9562 fi
9563
9564
9565 enablestring=
9566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9567echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9568 no_cache=0
9569 # Check whether --enable-dragimage or --disable-dragimage was given.
9570if test "${enable_dragimage+set}" = set; then
9571 enableval="$enable_dragimage"
9572
9573 if test "$enableval" = yes; then
9574 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9575 else
9576 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9577 fi
9578
9579else
9580
9581 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9582 if test "x$LINE" != x ; then
9583 eval "DEFAULT_$LINE"
9584 else
9585 no_cache=1
9586 fi
9587
9588 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9589
9590fi;
9591
9592 eval "$ac_cv_use_dragimage"
9593 if test "$no_cache" != 1; then
9594 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9595 fi
9596
9597 if test "$wxUSE_DRAGIMAGE" = yes; then
9598 echo "$as_me:$LINENO: result: yes" >&5
9599echo "${ECHO_T}yes" >&6
9600 else
9601 echo "$as_me:$LINENO: result: no" >&5
9602echo "${ECHO_T}no" >&6
9603 fi
9604
9605
9606 enablestring=
9607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9608echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9609 no_cache=0
9610 # Check whether --enable-accessibility or --disable-accessibility was given.
9611if test "${enable_accessibility+set}" = set; then
9612 enableval="$enable_accessibility"
9613
9614 if test "$enableval" = yes; then
9615 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9616 else
9617 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9618 fi
9619
9620else
9621
9622 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9623 if test "x$LINE" != x ; then
9624 eval "DEFAULT_$LINE"
9625 else
9626 no_cache=1
9627 fi
9628
9629 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9630
9631fi;
9632
9633 eval "$ac_cv_use_accessibility"
9634 if test "$no_cache" != 1; then
9635 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9636 fi
9637
9638 if test "$wxUSE_ACCESSIBILITY" = yes; then
9639 echo "$as_me:$LINENO: result: yes" >&5
9640echo "${ECHO_T}yes" >&6
9641 else
9642 echo "$as_me:$LINENO: result: no" >&5
9643echo "${ECHO_T}no" >&6
9644 fi
9645
9646
9647
9648
9649 enablestring=
9650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9651echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9652 no_cache=0
9653 # Check whether --enable-palette or --disable-palette was given.
9654if test "${enable_palette+set}" = set; then
9655 enableval="$enable_palette"
9656
9657 if test "$enableval" = yes; then
9658 ac_cv_use_palette='wxUSE_PALETTE=yes'
9659 else
9660 ac_cv_use_palette='wxUSE_PALETTE=no'
9661 fi
9662
9663else
9664
9665 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9666 if test "x$LINE" != x ; then
9667 eval "DEFAULT_$LINE"
9668 else
9669 no_cache=1
9670 fi
9671
9672 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9673
9674fi;
9675
9676 eval "$ac_cv_use_palette"
9677 if test "$no_cache" != 1; then
9678 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9679 fi
9680
9681 if test "$wxUSE_PALETTE" = yes; then
9682 echo "$as_me:$LINENO: result: yes" >&5
9683echo "${ECHO_T}yes" >&6
9684 else
9685 echo "$as_me:$LINENO: result: no" >&5
9686echo "${ECHO_T}no" >&6
9687 fi
9688
9689
9690 enablestring=
9691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9692echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9693 no_cache=0
9694 # Check whether --enable-image or --disable-image was given.
9695if test "${enable_image+set}" = set; then
9696 enableval="$enable_image"
9697
9698 if test "$enableval" = yes; then
9699 ac_cv_use_image='wxUSE_IMAGE=yes'
9700 else
9701 ac_cv_use_image='wxUSE_IMAGE=no'
9702 fi
9703
9704else
9705
9706 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9707 if test "x$LINE" != x ; then
9708 eval "DEFAULT_$LINE"
9709 else
9710 no_cache=1
9711 fi
9712
9713 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9714
9715fi;
9716
9717 eval "$ac_cv_use_image"
9718 if test "$no_cache" != 1; then
9719 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9720 fi
9721
9722 if test "$wxUSE_IMAGE" = yes; then
9723 echo "$as_me:$LINENO: result: yes" >&5
9724echo "${ECHO_T}yes" >&6
9725 else
9726 echo "$as_me:$LINENO: result: no" >&5
9727echo "${ECHO_T}no" >&6
9728 fi
9729
9730
9731 enablestring=
9732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9733echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9734 no_cache=0
9735 # Check whether --enable-gif or --disable-gif was given.
9736if test "${enable_gif+set}" = set; then
9737 enableval="$enable_gif"
9738
9739 if test "$enableval" = yes; then
9740 ac_cv_use_gif='wxUSE_GIF=yes'
9741 else
9742 ac_cv_use_gif='wxUSE_GIF=no'
9743 fi
9744
9745else
9746
9747 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9748 if test "x$LINE" != x ; then
9749 eval "DEFAULT_$LINE"
9750 else
9751 no_cache=1
9752 fi
9753
9754 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9755
9756fi;
9757
9758 eval "$ac_cv_use_gif"
9759 if test "$no_cache" != 1; then
9760 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9761 fi
9762
9763 if test "$wxUSE_GIF" = yes; then
9764 echo "$as_me:$LINENO: result: yes" >&5
9765echo "${ECHO_T}yes" >&6
9766 else
9767 echo "$as_me:$LINENO: result: no" >&5
9768echo "${ECHO_T}no" >&6
9769 fi
9770
9771
9772 enablestring=
9773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9774echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9775 no_cache=0
9776 # Check whether --enable-pcx or --disable-pcx was given.
9777if test "${enable_pcx+set}" = set; then
9778 enableval="$enable_pcx"
9779
9780 if test "$enableval" = yes; then
9781 ac_cv_use_pcx='wxUSE_PCX=yes'
9782 else
9783 ac_cv_use_pcx='wxUSE_PCX=no'
9784 fi
9785
9786else
9787
9788 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9789 if test "x$LINE" != x ; then
9790 eval "DEFAULT_$LINE"
9791 else
9792 no_cache=1
9793 fi
9794
9795 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9796
9797fi;
9798
9799 eval "$ac_cv_use_pcx"
9800 if test "$no_cache" != 1; then
9801 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9802 fi
9803
9804 if test "$wxUSE_PCX" = yes; then
9805 echo "$as_me:$LINENO: result: yes" >&5
9806echo "${ECHO_T}yes" >&6
9807 else
9808 echo "$as_me:$LINENO: result: no" >&5
9809echo "${ECHO_T}no" >&6
9810 fi
9811
9812
9813 enablestring=
9814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9815echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9816 no_cache=0
9817 # Check whether --enable-iff or --disable-iff was given.
9818if test "${enable_iff+set}" = set; then
9819 enableval="$enable_iff"
9820
9821 if test "$enableval" = yes; then
9822 ac_cv_use_iff='wxUSE_IFF=yes'
9823 else
9824 ac_cv_use_iff='wxUSE_IFF=no'
9825 fi
9826
9827else
9828
9829 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9830 if test "x$LINE" != x ; then
9831 eval "DEFAULT_$LINE"
9832 else
9833 no_cache=1
9834 fi
9835
9836 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
9837
9838fi;
9839
9840 eval "$ac_cv_use_iff"
9841 if test "$no_cache" != 1; then
9842 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9843 fi
9844
9845 if test "$wxUSE_IFF" = yes; then
9846 echo "$as_me:$LINENO: result: yes" >&5
9847echo "${ECHO_T}yes" >&6
9848 else
9849 echo "$as_me:$LINENO: result: no" >&5
9850echo "${ECHO_T}no" >&6
9851 fi
9852
9853
9854 enablestring=
9855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9856echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
9857 no_cache=0
9858 # Check whether --enable-pnm or --disable-pnm was given.
9859if test "${enable_pnm+set}" = set; then
9860 enableval="$enable_pnm"
9861
9862 if test "$enableval" = yes; then
9863 ac_cv_use_pnm='wxUSE_PNM=yes'
9864 else
9865 ac_cv_use_pnm='wxUSE_PNM=no'
9866 fi
9867
9868else
9869
9870 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9871 if test "x$LINE" != x ; then
9872 eval "DEFAULT_$LINE"
9873 else
9874 no_cache=1
9875 fi
9876
9877 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
9878
9879fi;
9880
9881 eval "$ac_cv_use_pnm"
9882 if test "$no_cache" != 1; then
9883 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9884 fi
9885
9886 if test "$wxUSE_PNM" = yes; then
9887 echo "$as_me:$LINENO: result: yes" >&5
9888echo "${ECHO_T}yes" >&6
9889 else
9890 echo "$as_me:$LINENO: result: no" >&5
9891echo "${ECHO_T}no" >&6
9892 fi
9893
9894
9895 enablestring=
9896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9897echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
9898 no_cache=0
9899 # Check whether --enable-xpm or --disable-xpm was given.
9900if test "${enable_xpm+set}" = set; then
9901 enableval="$enable_xpm"
9902
9903 if test "$enableval" = yes; then
9904 ac_cv_use_xpm='wxUSE_XPM=yes'
9905 else
9906 ac_cv_use_xpm='wxUSE_XPM=no'
9907 fi
9908
9909else
9910
9911 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9912 if test "x$LINE" != x ; then
9913 eval "DEFAULT_$LINE"
9914 else
9915 no_cache=1
9916 fi
9917
9918 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
9919
9920fi;
9921
9922 eval "$ac_cv_use_xpm"
9923 if test "$no_cache" != 1; then
9924 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
9925 fi
9926
9927 if test "$wxUSE_XPM" = yes; then
9928 echo "$as_me:$LINENO: result: yes" >&5
9929echo "${ECHO_T}yes" >&6
9930 else
9931 echo "$as_me:$LINENO: result: no" >&5
9932echo "${ECHO_T}no" >&6
9933 fi
9934
9935
9936 enablestring=
9937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9938echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
9939 no_cache=0
9940 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9941if test "${enable_ico_cur+set}" = set; then
9942 enableval="$enable_ico_cur"
9943
9944 if test "$enableval" = yes; then
9945 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
9946 else
9947 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
9948 fi
9949
9950else
9951
9952 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9953 if test "x$LINE" != x ; then
9954 eval "DEFAULT_$LINE"
9955 else
9956 no_cache=1
9957 fi
9958
9959 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
9960
9961fi;
9962
9963 eval "$ac_cv_use_ico_cur"
9964 if test "$no_cache" != 1; then
9965 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
9966 fi
9967
9968 if test "$wxUSE_ICO_CUR" = yes; then
9969 echo "$as_me:$LINENO: result: yes" >&5
9970echo "${ECHO_T}yes" >&6
9971 else
9972 echo "$as_me:$LINENO: result: no" >&5
9973echo "${ECHO_T}no" >&6
9974 fi
9975
9976
9977fi
9978
9979
9980
ceec2216
RL
9981# Check whether --with-flavour or --without-flavour was given.
9982if test "${with_flavour+set}" = set; then
9983 withval="$with_flavour"
9984 WX_FLAVOUR="$withval"
9985fi;
9986
9987
9988
a848cd7e
SC
9989 enablestring=
9990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9991echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9992 no_cache=0
9993 # Check whether --enable-official_build or --disable-official_build was given.
9994if test "${enable_official_build+set}" = set; then
9995 enableval="$enable_official_build"
9996
9997 if test "$enableval" = yes; then
9998 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9999 else
10000 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10001 fi
10002
10003else
10004
10005 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10006 if test "x$LINE" != x ; then
10007 eval "DEFAULT_$LINE"
10008 else
10009 no_cache=1
10010 fi
10011
10012 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10013
10014fi;
10015
10016 eval "$ac_cv_use_official_build"
10017 if test "$no_cache" != 1; then
10018 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10019 fi
10020
10021 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10022 echo "$as_me:$LINENO: result: yes" >&5
10023echo "${ECHO_T}yes" >&6
10024 else
10025 echo "$as_me:$LINENO: result: no" >&5
10026echo "${ECHO_T}no" >&6
10027 fi
10028
10029# Check whether --enable-vendor or --disable-vendor was given.
10030if test "${enable_vendor+set}" = set; then
10031 enableval="$enable_vendor"
10032 VENDOR="$enableval"
10033fi;
10034if test "x$VENDOR" = "x"; then
10035 VENDOR="custom"
10036fi
10037
a848cd7e
SC
10038
10039
10040
10041 echo "saving argument cache $wx_arg_cache_file"
10042 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10043
10044
10045
10046echo "$as_me:$LINENO: checking for toolkit" >&5
10047echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10048
10049# In Wine, we need to default to MSW, not GTK or MOTIF
10050if test "$wxUSE_WINE" = "yes"; then
10051 DEFAULT_DEFAULT_wxUSE_GTK=0
10052 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10053 DEFAULT_DEFAULT_wxUSE_MSW=1
10054 wxUSE_SHARED=no
10055fi
10056
10057if test "$wxUSE_GUI" = "yes"; then
10058
10059 if test "$USE_BEOS" = 1; then
10060 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10061echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10062 { (exit 1); exit 1; }; }
10063 fi
10064
10065 if test "$TOOLKIT_GIVEN" = 1; then
10066 for toolkit in `echo $ALL_TOOLKITS`; do
10067 var=wxUSE_$toolkit
10068 eval "value=\$${var}"
10069 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10070 done
10071 else
10072 for toolkit in `echo $ALL_TOOLKITS`; do
10073 if test "$has_toolkit_in_cache" != 1; then
10074 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10075 else
10076 var=DEFAULT_wxUSE_$toolkit
10077 fi
10078 eval "wxUSE_$toolkit=\$${var}"
10079 done
10080 fi
10081
10082 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10083 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10084 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10085
10086 case "${host}" in
10087 *-pc-os2_emx | *-pc-os2-emx )
10088 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10089 esac
10090
10091 case "$NUM_TOOLKITS" in
10092 1)
10093 ;;
10094 0)
10095 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10096echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10097 { (exit 1); exit 1; }; }
10098 ;;
10099 *)
10100 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10101echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10102 { (exit 1); exit 1; }; }
10103 esac
10104
10105 for toolkit in `echo $ALL_TOOLKITS`; do
10106 var=wxUSE_$toolkit
10107 eval "value=\$${var}"
10108 if test "x$value" != x; then
10109 cache_var=CACHE_$toolkit
10110 eval "cache=\$${cache_var}"
10111 if test "$cache" = 1; then
10112 echo "$var=$value" >> ${wx_arg_cache_file}
10113 fi
10114 if test "$value" = 1; then
10115 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10116 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10117echo "${ECHO_T}$toolkit_echo" >&6
10118 fi
10119 fi
10120 done
10121else
10122 if test "x$host_alias" != "x"; then
10123 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10124echo "${ECHO_T}base ($host_alias hosted) only" >&6
10125 else
10126 echo "$as_me:$LINENO: result: base only" >&5
10127echo "${ECHO_T}base only" >&6
10128 fi
10129fi
10130
10131wants_win32=0
10132doesnt_want_win32=0
10133case "${host}" in
10134 *-*-cygwin*)
10135 if test "$wxUSE_MSW" = 1 ; then
10136 wants_win32=1
10137 else
10138 doesnt_want_win32=1
10139 fi
10140 ;;
10141 *-*-mingw*)
10142 wants_win32=1
10143 ;;
10144esac
10145
10146if test "$wxUSE_WINE" = "yes"; then
10147 wants_win32=1
10148 CC=winegcc
10149 CXX=wineg++
10150 RESCOMP=wrc
10151 LDFLAGS_GUI="-mwindows"
10152fi
10153
10154if test "$wants_win32" = 1 ; then
10155 USE_UNIX=0
10156 USE_WIN32=1
10157 cat >>confdefs.h <<\_ACEOF
10158#define __WIN32__ 1
10159_ACEOF
10160
10161 cat >>confdefs.h <<\_ACEOF
10162#define __WIN95__ 1
10163_ACEOF
10164
10165 cat >>confdefs.h <<\_ACEOF
10166#define __WINDOWS__ 1
10167_ACEOF
10168
10169 cat >>confdefs.h <<\_ACEOF
10170#define __GNUWIN32__ 1
10171_ACEOF
10172
10173 cat >>confdefs.h <<\_ACEOF
10174#define STRICT 1
10175_ACEOF
10176
10177 cat >>confdefs.h <<\_ACEOF
10178#define WINVER 0x0400
10179_ACEOF
10180
10181fi
10182if test "$doesnt_want_win32" = 1 ; then
10183 USE_UNIX=1
10184 USE_WIN32=0
10185fi
10186
10187if test "$USE_UNIX" = 1 ; then
10188 wxUSE_UNIX=yes
10189 cat >>confdefs.h <<\_ACEOF
10190#define __UNIX__ 1
10191_ACEOF
10192
10193fi
10194
10195
10196cat >confcache <<\_ACEOF
10197# This file is a shell script that caches the results of configure
10198# tests run on this system so they can be shared between configure
10199# scripts and configure runs, see configure's option --config-cache.
10200# It is not useful on other systems. If it contains results you don't
10201# want to keep, you may remove or edit it.
10202#
10203# config.status only pays attention to the cache file if you give it
10204# the --recheck option to rerun configure.
10205#
10206# `ac_cv_env_foo' variables (set or unset) will be overridden when
10207# loading this file, other *unset* `ac_cv_foo' will be assigned the
10208# following values.
10209
10210_ACEOF
10211
10212# The following way of writing the cache mishandles newlines in values,
10213# but we know of no workaround that is simple, portable, and efficient.
10214# So, don't put newlines in cache variables' values.
10215# Ultrix sh set writes to stderr and can't be redirected directly,
10216# and sets the high bit in the cache file unless we assign to the vars.
10217{
10218 (set) 2>&1 |
10219 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10220 *ac_space=\ *)
10221 # `set' does not quote correctly, so add quotes (double-quote
10222 # substitution turns \\\\ into \\, and sed turns \\ into \).
10223 sed -n \
ac1cb8d3
VS
10224 "s/'/'\\\\''/g;
10225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10226 ;;
10227 *)
10228 # `set' quotes correctly as required by POSIX, so do not add quotes.
10229 sed -n \
ac1cb8d3 10230 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10231 ;;
10232 esac;
10233} |
10234 sed '
10235 t clear
10236 : clear
10237 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10238 t end
10239 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10240 : end' >>confcache
10241if diff $cache_file confcache >/dev/null 2>&1; then :; else
10242 if test -w $cache_file; then
10243 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10244 cat confcache >$cache_file
10245 else
10246 echo "not updating unwritable cache $cache_file"
10247 fi
10248fi
10249rm -f confcache
10250
10251if test "$build" != "$host" ; then
10252 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
10253 CC=$host_alias-gcc
10254 CXX=$host_alias-c++
10255 AR=$host_alias-ar
10256 RANLIB=$host_alias-ranlib
10257 DLLTOOL=$host_alias-dlltool
10258 RESCOMP=$host_alias-windres
a848cd7e
SC
10259 STRIP=$host_alias-strip
10260 else
10261 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10262echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10263 { (exit 1); exit 1; }; }
10264 fi
10265fi
10266
10267CFLAGS=${CFLAGS:=}
10268ac_ext=c
10269ac_cpp='$CPP $CPPFLAGS'
10270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10272ac_compiler_gnu=$ac_cv_c_compiler_gnu
10273if test -n "$ac_tool_prefix"; then
10274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10275set dummy ${ac_tool_prefix}gcc; ac_word=$2
10276echo "$as_me:$LINENO: checking for $ac_word" >&5
10277echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10278if test "${ac_cv_prog_CC+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280else
10281 if test -n "$CC"; then
10282 ac_cv_prog_CC="$CC" # Let the user override the test.
10283else
10284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10285for as_dir in $PATH
10286do
10287 IFS=$as_save_IFS
10288 test -z "$as_dir" && as_dir=.
10289 for ac_exec_ext in '' $ac_executable_extensions; do
10290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10291 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 break 2
10294 fi
10295done
10296done
10297
10298fi
10299fi
10300CC=$ac_cv_prog_CC
10301if test -n "$CC"; then
10302 echo "$as_me:$LINENO: result: $CC" >&5
10303echo "${ECHO_T}$CC" >&6
10304else
10305 echo "$as_me:$LINENO: result: no" >&5
10306echo "${ECHO_T}no" >&6
10307fi
10308
10309fi
10310if test -z "$ac_cv_prog_CC"; then
10311 ac_ct_CC=$CC
10312 # Extract the first word of "gcc", so it can be a program name with args.
10313set dummy gcc; ac_word=$2
10314echo "$as_me:$LINENO: checking for $ac_word" >&5
10315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10316if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10317 echo $ECHO_N "(cached) $ECHO_C" >&6
10318else
10319 if test -n "$ac_ct_CC"; then
10320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10321else
10322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323for as_dir in $PATH
10324do
10325 IFS=$as_save_IFS
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10329 ac_cv_prog_ac_ct_CC="gcc"
10330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10331 break 2
10332 fi
10333done
10334done
10335
10336fi
10337fi
10338ac_ct_CC=$ac_cv_prog_ac_ct_CC
10339if test -n "$ac_ct_CC"; then
10340 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10341echo "${ECHO_T}$ac_ct_CC" >&6
10342else
10343 echo "$as_me:$LINENO: result: no" >&5
10344echo "${ECHO_T}no" >&6
10345fi
10346
10347 CC=$ac_ct_CC
10348else
10349 CC="$ac_cv_prog_CC"
10350fi
10351
10352if test -z "$CC"; then
10353 if test -n "$ac_tool_prefix"; then
10354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10355set dummy ${ac_tool_prefix}cc; ac_word=$2
10356echo "$as_me:$LINENO: checking for $ac_word" >&5
10357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10358if test "${ac_cv_prog_CC+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360else
10361 if test -n "$CC"; then
10362 ac_cv_prog_CC="$CC" # Let the user override the test.
10363else
10364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10365for as_dir in $PATH
10366do
10367 IFS=$as_save_IFS
10368 test -z "$as_dir" && as_dir=.
10369 for ac_exec_ext in '' $ac_executable_extensions; do
10370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10371 ac_cv_prog_CC="${ac_tool_prefix}cc"
10372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10373 break 2
10374 fi
10375done
10376done
10377
10378fi
10379fi
10380CC=$ac_cv_prog_CC
10381if test -n "$CC"; then
10382 echo "$as_me:$LINENO: result: $CC" >&5
10383echo "${ECHO_T}$CC" >&6
10384else
10385 echo "$as_me:$LINENO: result: no" >&5
10386echo "${ECHO_T}no" >&6
10387fi
10388
10389fi
10390if test -z "$ac_cv_prog_CC"; then
10391 ac_ct_CC=$CC
10392 # Extract the first word of "cc", so it can be a program name with args.
10393set dummy cc; ac_word=$2
10394echo "$as_me:$LINENO: checking for $ac_word" >&5
10395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10396if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398else
10399 if test -n "$ac_ct_CC"; then
10400 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10401else
10402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403for as_dir in $PATH
10404do
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409 ac_cv_prog_ac_ct_CC="cc"
10410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 break 2
10412 fi
10413done
10414done
10415
10416fi
10417fi
10418ac_ct_CC=$ac_cv_prog_ac_ct_CC
10419if test -n "$ac_ct_CC"; then
10420 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10421echo "${ECHO_T}$ac_ct_CC" >&6
10422else
10423 echo "$as_me:$LINENO: result: no" >&5
10424echo "${ECHO_T}no" >&6
10425fi
10426
10427 CC=$ac_ct_CC
10428else
10429 CC="$ac_cv_prog_CC"
10430fi
10431
10432fi
10433if test -z "$CC"; then
10434 # Extract the first word of "cc", so it can be a program name with args.
10435set dummy cc; ac_word=$2
10436echo "$as_me:$LINENO: checking for $ac_word" >&5
10437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10438if test "${ac_cv_prog_CC+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440else
10441 if test -n "$CC"; then
10442 ac_cv_prog_CC="$CC" # Let the user override the test.
10443else
10444 ac_prog_rejected=no
10445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446for as_dir in $PATH
10447do
10448 IFS=$as_save_IFS
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10453 ac_prog_rejected=yes
10454 continue
10455 fi
10456 ac_cv_prog_CC="cc"
10457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10458 break 2
10459 fi
10460done
10461done
10462
10463if test $ac_prog_rejected = yes; then
10464 # We found a bogon in the path, so make sure we never use it.
10465 set dummy $ac_cv_prog_CC
10466 shift
10467 if test $# != 0; then
10468 # We chose a different compiler from the bogus one.
10469 # However, it has the same basename, so the bogon will be chosen
10470 # first if we set CC to just the basename; use the full file name.
10471 shift
10472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10473 fi
10474fi
10475fi
10476fi
10477CC=$ac_cv_prog_CC
10478if test -n "$CC"; then
10479 echo "$as_me:$LINENO: result: $CC" >&5
10480echo "${ECHO_T}$CC" >&6
10481else
10482 echo "$as_me:$LINENO: result: no" >&5
10483echo "${ECHO_T}no" >&6
10484fi
10485
10486fi
10487if test -z "$CC"; then
10488 if test -n "$ac_tool_prefix"; then
10489 for ac_prog in cl
10490 do
10491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10492set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10493echo "$as_me:$LINENO: checking for $ac_word" >&5
10494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10495if test "${ac_cv_prog_CC+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10497else
10498 if test -n "$CC"; then
10499 ac_cv_prog_CC="$CC" # Let the user override the test.
10500else
10501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502for as_dir in $PATH
10503do
10504 IFS=$as_save_IFS
10505 test -z "$as_dir" && as_dir=.
10506 for ac_exec_ext in '' $ac_executable_extensions; do
10507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 break 2
10511 fi
10512done
10513done
10514
10515fi
10516fi
10517CC=$ac_cv_prog_CC
10518if test -n "$CC"; then
10519 echo "$as_me:$LINENO: result: $CC" >&5
10520echo "${ECHO_T}$CC" >&6
10521else
10522 echo "$as_me:$LINENO: result: no" >&5
10523echo "${ECHO_T}no" >&6
10524fi
10525
10526 test -n "$CC" && break
10527 done
10528fi
10529if test -z "$CC"; then
10530 ac_ct_CC=$CC
10531 for ac_prog in cl
10532do
10533 # Extract the first word of "$ac_prog", so it can be a program name with args.
10534set dummy $ac_prog; ac_word=$2
10535echo "$as_me:$LINENO: checking for $ac_word" >&5
10536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10537if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539else
10540 if test -n "$ac_ct_CC"; then
10541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10542else
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_ac_ct_CC="$ac_prog"
10551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10552 break 2
10553 fi
10554done
10555done
10556
10557fi
10558fi
10559ac_ct_CC=$ac_cv_prog_ac_ct_CC
10560if test -n "$ac_ct_CC"; then
10561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10562echo "${ECHO_T}$ac_ct_CC" >&6
10563else
10564 echo "$as_me:$LINENO: result: no" >&5
10565echo "${ECHO_T}no" >&6
10566fi
10567
10568 test -n "$ac_ct_CC" && break
10569done
10570
10571 CC=$ac_ct_CC
10572fi
10573
10574fi
10575
10576
10577test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10578See \`config.log' for more details." >&5
10579echo "$as_me: error: no acceptable C compiler found in \$PATH
10580See \`config.log' for more details." >&2;}
10581 { (exit 1); exit 1; }; }
10582
10583# Provide some information about the compiler.
10584echo "$as_me:$LINENO:" \
10585 "checking for C compiler version" >&5
10586ac_compiler=`set X $ac_compile; echo $2`
10587{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10588 (eval $ac_compiler --version </dev/null >&5) 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }
10592{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10593 (eval $ac_compiler -v </dev/null >&5) 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }
10597{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10598 (eval $ac_compiler -V </dev/null >&5) 2>&5
10599 ac_status=$?
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); }
10602
10603cat >conftest.$ac_ext <<_ACEOF
10604/* confdefs.h. */
10605_ACEOF
10606cat confdefs.h >>conftest.$ac_ext
10607cat >>conftest.$ac_ext <<_ACEOF
10608/* end confdefs.h. */
10609
10610int
10611main ()
10612{
10613
10614 ;
10615 return 0;
10616}
10617_ACEOF
10618ac_clean_files_save=$ac_clean_files
10619ac_clean_files="$ac_clean_files a.out a.exe b.out"
10620# Try to create an executable without -o first, disregard a.out.
10621# It will help us diagnose broken compilers, and finding out an intuition
10622# of exeext.
ac1cb8d3
VS
10623echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10624echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10625ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10626if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10627 (eval $ac_link_default) 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; then
10631 # Find the output, starting from the most likely. This scheme is
10632# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10633# resort.
10634
10635# Be careful to initialize this variable, since it used to be cached.
10636# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10637ac_cv_exeext=
10638# b.out is created by i960 compilers.
10639for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10640do
10641 test -f "$ac_file" || continue
10642 case $ac_file in
10643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10644 ;;
a848cd7e 10645 conftest.$ac_ext )
ac1cb8d3
VS
10646 # This is the source file.
10647 ;;
a848cd7e 10648 [ab].out )
ac1cb8d3
VS
10649 # We found the default executable, but exeext='' is most
10650 # certainly right.
10651 break;;
a848cd7e 10652 *.* )
ac1cb8d3
VS
10653 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10654 # FIXME: I believe we export ac_cv_exeext for Libtool,
10655 # but it would be cool to find out if it's true. Does anybody
10656 # maintain Libtool? --akim.
10657 export ac_cv_exeext
10658 break;;
a848cd7e 10659 * )
ac1cb8d3 10660 break;;
a848cd7e
SC
10661 esac
10662done
10663else
10664 echo "$as_me: failed program was:" >&5
10665sed 's/^/| /' conftest.$ac_ext >&5
10666
10667{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10668See \`config.log' for more details." >&5
10669echo "$as_me: error: C compiler cannot create executables
10670See \`config.log' for more details." >&2;}
10671 { (exit 77); exit 77; }; }
10672fi
10673
10674ac_exeext=$ac_cv_exeext
10675echo "$as_me:$LINENO: result: $ac_file" >&5
10676echo "${ECHO_T}$ac_file" >&6
10677
10678# Check the compiler produces executables we can run. If not, either
10679# the compiler is broken, or we cross compile.
10680echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10681echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10682# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10683# If not cross compiling, check that we can run a simple program.
10684if test "$cross_compiling" != yes; then
10685 if { ac_try='./$ac_file'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10688 ac_status=$?
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 cross_compiling=no
10692 else
10693 if test "$cross_compiling" = maybe; then
10694 cross_compiling=yes
10695 else
10696 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10697If you meant to cross compile, use \`--host'.
10698See \`config.log' for more details." >&5
10699echo "$as_me: error: cannot run C compiled programs.
10700If you meant to cross compile, use \`--host'.
10701See \`config.log' for more details." >&2;}
10702 { (exit 1); exit 1; }; }
10703 fi
10704 fi
10705fi
10706echo "$as_me:$LINENO: result: yes" >&5
10707echo "${ECHO_T}yes" >&6
10708
10709rm -f a.out a.exe conftest$ac_cv_exeext b.out
10710ac_clean_files=$ac_clean_files_save
10711# Check the compiler produces executables we can run. If not, either
10712# the compiler is broken, or we cross compile.
10713echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10714echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10715echo "$as_me:$LINENO: result: $cross_compiling" >&5
10716echo "${ECHO_T}$cross_compiling" >&6
10717
10718echo "$as_me:$LINENO: checking for suffix of executables" >&5
10719echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10721 (eval $ac_link) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; then
10725 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10726# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10727# work properly (i.e., refer to `conftest.exe'), while it won't with
10728# `rm'.
10729for ac_file in conftest.exe conftest conftest.*; do
10730 test -f "$ac_file" || continue
10731 case $ac_file in
10732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10733 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10734 export ac_cv_exeext
10735 break;;
a848cd7e
SC
10736 * ) break;;
10737 esac
10738done
10739else
10740 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10741See \`config.log' for more details." >&5
10742echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10743See \`config.log' for more details." >&2;}
10744 { (exit 1); exit 1; }; }
10745fi
10746
10747rm -f conftest$ac_cv_exeext
10748echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10749echo "${ECHO_T}$ac_cv_exeext" >&6
10750
10751rm -f conftest.$ac_ext
10752EXEEXT=$ac_cv_exeext
10753ac_exeext=$EXEEXT
10754echo "$as_me:$LINENO: checking for suffix of object files" >&5
10755echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10756if test "${ac_cv_objext+set}" = set; then
10757 echo $ECHO_N "(cached) $ECHO_C" >&6
10758else
10759 cat >conftest.$ac_ext <<_ACEOF
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
10765
10766int
10767main ()
10768{
10769
10770 ;
10771 return 0;
10772}
10773_ACEOF
10774rm -f conftest.o conftest.obj
10775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10776 (eval $ac_compile) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; then
10780 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10781 case $ac_file in
10782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10783 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10784 break;;
10785 esac
10786done
10787else
10788 echo "$as_me: failed program was:" >&5
10789sed 's/^/| /' conftest.$ac_ext >&5
10790
10791{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10792See \`config.log' for more details." >&5
10793echo "$as_me: error: cannot compute suffix of object files: cannot compile
10794See \`config.log' for more details." >&2;}
10795 { (exit 1); exit 1; }; }
10796fi
10797
10798rm -f conftest.$ac_cv_objext conftest.$ac_ext
10799fi
10800echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10801echo "${ECHO_T}$ac_cv_objext" >&6
10802OBJEXT=$ac_cv_objext
10803ac_objext=$OBJEXT
10804echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10805echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10806if test "${ac_cv_c_compiler_gnu+set}" = set; then
10807 echo $ECHO_N "(cached) $ECHO_C" >&6
10808else
10809 cat >conftest.$ac_ext <<_ACEOF
10810/* confdefs.h. */
10811_ACEOF
10812cat confdefs.h >>conftest.$ac_ext
10813cat >>conftest.$ac_ext <<_ACEOF
10814/* end confdefs.h. */
10815
10816int
10817main ()
10818{
10819#ifndef __GNUC__
10820 choke me
10821#endif
10822
10823 ;
10824 return 0;
10825}
10826_ACEOF
10827rm -f conftest.$ac_objext
10828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10829 (eval $ac_compile) 2>conftest.er1
a848cd7e 10830 ac_status=$?
ac1cb8d3
VS
10831 grep -v '^ *+' conftest.er1 >conftest.err
10832 rm -f conftest.er1
10833 cat conftest.err >&5
a848cd7e
SC
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } &&
7714864e 10836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; } &&
10842 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_compiler_gnu=yes
10849else
10850 echo "$as_me: failed program was:" >&5
10851sed 's/^/| /' conftest.$ac_ext >&5
10852
10853ac_compiler_gnu=no
10854fi
ac1cb8d3 10855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10856ac_cv_c_compiler_gnu=$ac_compiler_gnu
10857
10858fi
10859echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10860echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10861GCC=`test $ac_compiler_gnu = yes && echo yes`
10862ac_test_CFLAGS=${CFLAGS+set}
10863ac_save_CFLAGS=$CFLAGS
10864CFLAGS="-g"
10865echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10866echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10867if test "${ac_cv_prog_cc_g+set}" = set; then
10868 echo $ECHO_N "(cached) $ECHO_C" >&6
10869else
10870 cat >conftest.$ac_ext <<_ACEOF
10871/* confdefs.h. */
10872_ACEOF
10873cat confdefs.h >>conftest.$ac_ext
10874cat >>conftest.$ac_ext <<_ACEOF
10875/* end confdefs.h. */
10876
10877int
10878main ()
10879{
10880
10881 ;
10882 return 0;
10883}
10884_ACEOF
10885rm -f conftest.$ac_objext
10886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10887 (eval $ac_compile) 2>conftest.er1
a848cd7e 10888 ac_status=$?
ac1cb8d3
VS
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
a848cd7e
SC
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
7714864e 10894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10897 ac_status=$?
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; } &&
10900 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
10901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10902 (eval $ac_try) 2>&5
10903 ac_status=$?
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); }; }; then
10906 ac_cv_prog_cc_g=yes
10907else
10908 echo "$as_me: failed program was:" >&5
10909sed 's/^/| /' conftest.$ac_ext >&5
10910
10911ac_cv_prog_cc_g=no
10912fi
ac1cb8d3 10913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
10914fi
10915echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10916echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
10917if test "$ac_test_CFLAGS" = set; then
10918 CFLAGS=$ac_save_CFLAGS
10919elif test $ac_cv_prog_cc_g = yes; then
10920 if test "$GCC" = yes; then
10921 CFLAGS="-g -O2"
10922 else
10923 CFLAGS="-g"
10924 fi
10925else
10926 if test "$GCC" = yes; then
10927 CFLAGS="-O2"
10928 else
10929 CFLAGS=
10930 fi
10931fi
10932echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10933echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10934if test "${ac_cv_prog_cc_stdc+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10936else
10937 ac_cv_prog_cc_stdc=no
10938ac_save_CC=$CC
10939cat >conftest.$ac_ext <<_ACEOF
10940/* confdefs.h. */
10941_ACEOF
10942cat confdefs.h >>conftest.$ac_ext
10943cat >>conftest.$ac_ext <<_ACEOF
10944/* end confdefs.h. */
10945#include <stdarg.h>
10946#include <stdio.h>
10947#include <sys/types.h>
10948#include <sys/stat.h>
10949/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10950struct buf { int x; };
10951FILE * (*rcsopen) (struct buf *, struct stat *, int);
10952static char *e (p, i)
10953 char **p;
10954 int i;
10955{
10956 return p[i];
10957}
10958static char *f (char * (*g) (char **, int), char **p, ...)
10959{
10960 char *s;
10961 va_list v;
10962 va_start (v,p);
10963 s = g (p, va_arg (v,int));
10964 va_end (v);
10965 return s;
10966}
ac1cb8d3
VS
10967
10968/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10969 function prototypes and stuff, but not '\xHH' hex character constants.
10970 These don't provoke an error unfortunately, instead are silently treated
10971 as 'x'. The following induces an error, until -std1 is added to get
10972 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10973 array size at least. It's necessary to write '\x00'==0 to get something
10974 that's true only with -std1. */
10975int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10976
a848cd7e
SC
10977int test (int i, double x);
10978struct s1 {int (*f) (int a);};
10979struct s2 {int (*f) (double a);};
10980int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10981int argc;
10982char **argv;
10983int
10984main ()
10985{
10986return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10987 ;
10988 return 0;
10989}
10990_ACEOF
10991# Don't try gcc -ansi; that turns off useful extensions and
10992# breaks some systems' header files.
10993# AIX -qlanglvl=ansi
10994# Ultrix and OSF/1 -std1
10995# HP-UX 10.20 and later -Ae
10996# HP-UX older versions -Aa -D_HPUX_SOURCE
10997# SVR4 -Xc -D__EXTENSIONS__
10998for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10999do
11000 CC="$ac_save_CC $ac_arg"
11001 rm -f conftest.$ac_objext
11002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11003 (eval $ac_compile) 2>conftest.er1
a848cd7e 11004 ac_status=$?
ac1cb8d3
VS
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
a848cd7e
SC
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } &&
7714864e 11010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; } &&
11016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11019 ac_status=$?
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; }; then
11022 ac_cv_prog_cc_stdc=$ac_arg
11023break
11024else
11025 echo "$as_me: failed program was:" >&5
11026sed 's/^/| /' conftest.$ac_ext >&5
11027
11028fi
ac1cb8d3 11029rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11030done
11031rm -f conftest.$ac_ext conftest.$ac_objext
11032CC=$ac_save_CC
11033
11034fi
11035
11036case "x$ac_cv_prog_cc_stdc" in
11037 x|xno)
11038 echo "$as_me:$LINENO: result: none needed" >&5
11039echo "${ECHO_T}none needed" >&6 ;;
11040 *)
11041 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11042echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11043 CC="$CC $ac_cv_prog_cc_stdc" ;;
11044esac
11045
11046# Some people use a C++ compiler to compile C. Since we use `exit',
11047# in C++ we need to declare it. In case someone uses the same compiler
11048# for both compiling C and C++ we need to have the C++ compiler decide
11049# the declaration of exit, since it's the most demanding environment.
11050cat >conftest.$ac_ext <<_ACEOF
11051#ifndef __cplusplus
11052 choke me
11053#endif
11054_ACEOF
11055rm -f conftest.$ac_objext
11056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11057 (eval $ac_compile) 2>conftest.er1
a848cd7e 11058 ac_status=$?
ac1cb8d3
VS
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
a848cd7e
SC
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
7714864e 11064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11067 ac_status=$?
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072 (eval $ac_try) 2>&5
11073 ac_status=$?
11074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075 (exit $ac_status); }; }; then
11076 for ac_declaration in \
ac1cb8d3 11077 '' \
a848cd7e
SC
11078 'extern "C" void std::exit (int) throw (); using std::exit;' \
11079 'extern "C" void std::exit (int); using std::exit;' \
11080 'extern "C" void exit (int) throw ();' \
11081 'extern "C" void exit (int);' \
11082 'void exit (int);'
11083do
11084 cat >conftest.$ac_ext <<_ACEOF
11085/* confdefs.h. */
11086_ACEOF
11087cat confdefs.h >>conftest.$ac_ext
11088cat >>conftest.$ac_ext <<_ACEOF
11089/* end confdefs.h. */
de59c161 11090$ac_declaration
ac1cb8d3 11091#include <stdlib.h>
a848cd7e
SC
11092int
11093main ()
11094{
11095exit (42);
11096 ;
11097 return 0;
11098}
11099_ACEOF
11100rm -f conftest.$ac_objext
11101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11102 (eval $ac_compile) 2>conftest.er1
a848cd7e 11103 ac_status=$?
ac1cb8d3
VS
11104 grep -v '^ *+' conftest.er1 >conftest.err
11105 rm -f conftest.er1
11106 cat conftest.err >&5
a848cd7e
SC
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
7714864e 11109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; } &&
11115 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11117 (eval $ac_try) 2>&5
11118 ac_status=$?
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }; }; then
11121 :
11122else
11123 echo "$as_me: failed program was:" >&5
11124sed 's/^/| /' conftest.$ac_ext >&5
11125
11126continue
11127fi
ac1cb8d3 11128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11129 cat >conftest.$ac_ext <<_ACEOF
11130/* confdefs.h. */
11131_ACEOF
11132cat confdefs.h >>conftest.$ac_ext
11133cat >>conftest.$ac_ext <<_ACEOF
11134/* end confdefs.h. */
11135$ac_declaration
11136int
11137main ()
11138{
11139exit (42);
11140 ;
11141 return 0;
11142}
11143_ACEOF
11144rm -f conftest.$ac_objext
11145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11146 (eval $ac_compile) 2>conftest.er1
a848cd7e 11147 ac_status=$?
ac1cb8d3
VS
11148 grep -v '^ *+' conftest.er1 >conftest.err
11149 rm -f conftest.er1
11150 cat conftest.err >&5
a848cd7e
SC
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
7714864e 11153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11156 ac_status=$?
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; } &&
11159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11161 (eval $ac_try) 2>&5
11162 ac_status=$?
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); }; }; then
11165 break
11166else
11167 echo "$as_me: failed program was:" >&5
11168sed 's/^/| /' conftest.$ac_ext >&5
11169
11170fi
ac1cb8d3 11171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11172done
11173rm -f conftest*
11174if test -n "$ac_declaration"; then
11175 echo '#ifdef __cplusplus' >>confdefs.h
11176 echo $ac_declaration >>confdefs.h
11177 echo '#endif' >>confdefs.h
11178fi
11179
11180else
11181 echo "$as_me: failed program was:" >&5
11182sed 's/^/| /' conftest.$ac_ext >&5
11183
11184fi
ac1cb8d3 11185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11186ac_ext=c
11187ac_cpp='$CPP $CPPFLAGS'
11188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11190ac_compiler_gnu=$ac_cv_c_compiler_gnu
11191
11192
11193
11194ac_ext=c
11195ac_cpp='$CPP $CPPFLAGS'
11196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11198ac_compiler_gnu=$ac_cv_c_compiler_gnu
11199echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11200echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11201# On Suns, sometimes $CPP names a directory.
11202if test -n "$CPP" && test -d "$CPP"; then
11203 CPP=
11204fi
11205if test -z "$CPP"; then
11206 if test "${ac_cv_prog_CPP+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208else
11209 # Double quotes because CPP needs to be expanded
11210 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11211 do
11212 ac_preproc_ok=false
11213for ac_c_preproc_warn_flag in '' yes
11214do
11215 # Use a header file that comes with gcc, so configuring glibc
11216 # with a fresh cross-compiler works.
11217 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11218 # <limits.h> exists even on freestanding compilers.
11219 # On the NeXT, cc -E runs the code through the compiler's parser,
11220 # not just through cpp. "Syntax error" is here to catch this case.
11221 cat >conftest.$ac_ext <<_ACEOF
11222/* confdefs.h. */
11223_ACEOF
11224cat confdefs.h >>conftest.$ac_ext
11225cat >>conftest.$ac_ext <<_ACEOF
11226/* end confdefs.h. */
11227#ifdef __STDC__
11228# include <limits.h>
11229#else
11230# include <assert.h>
11231#endif
ac1cb8d3 11232 Syntax error
a848cd7e
SC
11233_ACEOF
11234if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11235 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11236 ac_status=$?
11237 grep -v '^ *+' conftest.er1 >conftest.err
11238 rm -f conftest.er1
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } >/dev/null; then
11242 if test -s conftest.err; then
11243 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11244 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11245 else
11246 ac_cpp_err=
11247 fi
11248else
11249 ac_cpp_err=yes
11250fi
11251if test -z "$ac_cpp_err"; then
11252 :
11253else
11254 echo "$as_me: failed program was:" >&5
11255sed 's/^/| /' conftest.$ac_ext >&5
11256
11257 # Broken: fails on valid input.
11258continue
11259fi
11260rm -f conftest.err conftest.$ac_ext
11261
11262 # OK, works on sane cases. Now check whether non-existent headers
11263 # can be detected and how.
11264 cat >conftest.$ac_ext <<_ACEOF
11265/* confdefs.h. */
11266_ACEOF
11267cat confdefs.h >>conftest.$ac_ext
11268cat >>conftest.$ac_ext <<_ACEOF
11269/* end confdefs.h. */
11270#include <ac_nonexistent.h>
11271_ACEOF
11272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11274 ac_status=$?
11275 grep -v '^ *+' conftest.er1 >conftest.err
11276 rm -f conftest.er1
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } >/dev/null; then
11280 if test -s conftest.err; then
11281 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11283 else
11284 ac_cpp_err=
11285 fi
11286else
11287 ac_cpp_err=yes
11288fi
11289if test -z "$ac_cpp_err"; then
11290 # Broken: success on invalid input.
11291continue
11292else
11293 echo "$as_me: failed program was:" >&5
11294sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 # Passes both tests.
11297ac_preproc_ok=:
11298break
11299fi
11300rm -f conftest.err conftest.$ac_ext
11301
11302done
11303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11304rm -f conftest.err conftest.$ac_ext
11305if $ac_preproc_ok; then
11306 break
11307fi
11308
11309 done
11310 ac_cv_prog_CPP=$CPP
11311
11312fi
11313 CPP=$ac_cv_prog_CPP
11314else
11315 ac_cv_prog_CPP=$CPP
11316fi
11317echo "$as_me:$LINENO: result: $CPP" >&5
11318echo "${ECHO_T}$CPP" >&6
11319ac_preproc_ok=false
11320for ac_c_preproc_warn_flag in '' yes
11321do
11322 # Use a header file that comes with gcc, so configuring glibc
11323 # with a fresh cross-compiler works.
11324 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11325 # <limits.h> exists even on freestanding compilers.
11326 # On the NeXT, cc -E runs the code through the compiler's parser,
11327 # not just through cpp. "Syntax error" is here to catch this case.
11328 cat >conftest.$ac_ext <<_ACEOF
11329/* confdefs.h. */
11330_ACEOF
11331cat confdefs.h >>conftest.$ac_ext
11332cat >>conftest.$ac_ext <<_ACEOF
11333/* end confdefs.h. */
11334#ifdef __STDC__
11335# include <limits.h>
11336#else
11337# include <assert.h>
11338#endif
ac1cb8d3 11339 Syntax error
a848cd7e
SC
11340_ACEOF
11341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11343 ac_status=$?
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } >/dev/null; then
11349 if test -s conftest.err; then
11350 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11352 else
11353 ac_cpp_err=
11354 fi
11355else
11356 ac_cpp_err=yes
11357fi
11358if test -z "$ac_cpp_err"; then
11359 :
11360else
11361 echo "$as_me: failed program was:" >&5
11362sed 's/^/| /' conftest.$ac_ext >&5
11363
11364 # Broken: fails on valid input.
11365continue
11366fi
11367rm -f conftest.err conftest.$ac_ext
11368
11369 # OK, works on sane cases. Now check whether non-existent headers
11370 # can be detected and how.
11371 cat >conftest.$ac_ext <<_ACEOF
11372/* confdefs.h. */
11373_ACEOF
11374cat confdefs.h >>conftest.$ac_ext
11375cat >>conftest.$ac_ext <<_ACEOF
11376/* end confdefs.h. */
11377#include <ac_nonexistent.h>
11378_ACEOF
11379if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11380 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11381 ac_status=$?
11382 grep -v '^ *+' conftest.er1 >conftest.err
11383 rm -f conftest.er1
11384 cat conftest.err >&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); } >/dev/null; then
11387 if test -s conftest.err; then
11388 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11389 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11390 else
11391 ac_cpp_err=
11392 fi
11393else
11394 ac_cpp_err=yes
11395fi
11396if test -z "$ac_cpp_err"; then
11397 # Broken: success on invalid input.
11398continue
11399else
11400 echo "$as_me: failed program was:" >&5
11401sed 's/^/| /' conftest.$ac_ext >&5
11402
11403 # Passes both tests.
11404ac_preproc_ok=:
11405break
11406fi
11407rm -f conftest.err conftest.$ac_ext
11408
11409done
11410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11411rm -f conftest.err conftest.$ac_ext
11412if $ac_preproc_ok; then
11413 :
11414else
11415 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11416See \`config.log' for more details." >&5
11417echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11418See \`config.log' for more details." >&2;}
11419 { (exit 1); exit 1; }; }
11420fi
11421
11422ac_ext=c
11423ac_cpp='$CPP $CPPFLAGS'
11424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426ac_compiler_gnu=$ac_cv_c_compiler_gnu
11427
11428
11429echo "$as_me:$LINENO: checking for egrep" >&5
11430echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11431if test "${ac_cv_prog_egrep+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433else
11434 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11435 then ac_cv_prog_egrep='grep -E'
11436 else ac_cv_prog_egrep='egrep'
11437 fi
11438fi
11439echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11440echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11441 EGREP=$ac_cv_prog_egrep
11442
11443
11444if test $ac_cv_c_compiler_gnu = yes; then
11445 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11446echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11447if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11449else
11450 ac_pattern="Autoconf.*'x'"
11451 cat >conftest.$ac_ext <<_ACEOF
11452/* confdefs.h. */
11453_ACEOF
11454cat confdefs.h >>conftest.$ac_ext
11455cat >>conftest.$ac_ext <<_ACEOF
11456/* end confdefs.h. */
11457#include <sgtty.h>
11458Autoconf TIOCGETP
11459_ACEOF
11460if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11461 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11462 ac_cv_prog_gcc_traditional=yes
11463else
11464 ac_cv_prog_gcc_traditional=no
11465fi
11466rm -f conftest*
11467
11468
11469 if test $ac_cv_prog_gcc_traditional = no; then
11470 cat >conftest.$ac_ext <<_ACEOF
11471/* confdefs.h. */
11472_ACEOF
11473cat confdefs.h >>conftest.$ac_ext
11474cat >>conftest.$ac_ext <<_ACEOF
11475/* end confdefs.h. */
11476#include <termio.h>
11477Autoconf TCGETA
11478_ACEOF
11479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11480 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11481 ac_cv_prog_gcc_traditional=yes
11482fi
11483rm -f conftest*
11484
11485 fi
11486fi
11487echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11488echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11489 if test $ac_cv_prog_gcc_traditional = yes; then
11490 CC="$CC -traditional"
11491 fi
11492fi
11493
11494
11495
11496
11497ac_ext=cc
11498ac_cpp='$CXXCPP $CPPFLAGS'
11499ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11500ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11501ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11502
11503
11504CXXFLAGS=${CXXFLAGS:=}
11505ac_ext=cc
11506ac_cpp='$CXXCPP $CPPFLAGS'
11507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11510if test -n "$ac_tool_prefix"; then
11511 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11512 do
11513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11514set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11515echo "$as_me:$LINENO: checking for $ac_word" >&5
11516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11517if test "${ac_cv_prog_CXX+set}" = set; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11519else
11520 if test -n "$CXX"; then
11521 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11522else
11523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11524for as_dir in $PATH
11525do
11526 IFS=$as_save_IFS
11527 test -z "$as_dir" && as_dir=.
11528 for ac_exec_ext in '' $ac_executable_extensions; do
11529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11530 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11532 break 2
11533 fi
11534done
11535done
11536
11537fi
11538fi
11539CXX=$ac_cv_prog_CXX
11540if test -n "$CXX"; then
11541 echo "$as_me:$LINENO: result: $CXX" >&5
11542echo "${ECHO_T}$CXX" >&6
11543else
11544 echo "$as_me:$LINENO: result: no" >&5
11545echo "${ECHO_T}no" >&6
11546fi
11547
11548 test -n "$CXX" && break
11549 done
11550fi
11551if test -z "$CXX"; then
11552 ac_ct_CXX=$CXX
11553 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11554do
11555 # Extract the first word of "$ac_prog", so it can be a program name with args.
11556set dummy $ac_prog; ac_word=$2
11557echo "$as_me:$LINENO: checking for $ac_word" >&5
11558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11559if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11561else
11562 if test -n "$ac_ct_CXX"; then
11563 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11564else
11565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566for as_dir in $PATH
11567do
11568 IFS=$as_save_IFS
11569 test -z "$as_dir" && as_dir=.
11570 for ac_exec_ext in '' $ac_executable_extensions; do
11571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11572 ac_cv_prog_ac_ct_CXX="$ac_prog"
11573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11574 break 2
11575 fi
11576done
11577done
11578
11579fi
11580fi
11581ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11582if test -n "$ac_ct_CXX"; then
11583 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11584echo "${ECHO_T}$ac_ct_CXX" >&6
11585else
11586 echo "$as_me:$LINENO: result: no" >&5
11587echo "${ECHO_T}no" >&6
11588fi
11589
11590 test -n "$ac_ct_CXX" && break
11591done
11592test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11593
11594 CXX=$ac_ct_CXX
11595fi
11596
11597
11598# Provide some information about the compiler.
11599echo "$as_me:$LINENO:" \
11600 "checking for C++ compiler version" >&5
11601ac_compiler=`set X $ac_compile; echo $2`
11602{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11603 (eval $ac_compiler --version </dev/null >&5) 2>&5
11604 ac_status=$?
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }
11607{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11608 (eval $ac_compiler -v </dev/null >&5) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }
11612{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11613 (eval $ac_compiler -V </dev/null >&5) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }
11617
11618echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11619echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11620if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622else
11623 cat >conftest.$ac_ext <<_ACEOF
11624/* confdefs.h. */
11625_ACEOF
11626cat confdefs.h >>conftest.$ac_ext
11627cat >>conftest.$ac_ext <<_ACEOF
11628/* end confdefs.h. */
11629
11630int
11631main ()
11632{
11633#ifndef __GNUC__
11634 choke me
11635#endif
11636
11637 ;
11638 return 0;
11639}
11640_ACEOF
11641rm -f conftest.$ac_objext
11642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11643 (eval $ac_compile) 2>conftest.er1
a848cd7e 11644 ac_status=$?
ac1cb8d3
VS
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
a848cd7e
SC
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } &&
7714864e 11650 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; } &&
11656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; }; then
11662 ac_compiler_gnu=yes
11663else
11664 echo "$as_me: failed program was:" >&5
11665sed 's/^/| /' conftest.$ac_ext >&5
11666
11667ac_compiler_gnu=no
11668fi
ac1cb8d3 11669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11670ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11671
11672fi
11673echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11674echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11675GXX=`test $ac_compiler_gnu = yes && echo yes`
11676ac_test_CXXFLAGS=${CXXFLAGS+set}
11677ac_save_CXXFLAGS=$CXXFLAGS
11678CXXFLAGS="-g"
11679echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11680echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11681if test "${ac_cv_prog_cxx_g+set}" = set; then
11682 echo $ECHO_N "(cached) $ECHO_C" >&6
11683else
11684 cat >conftest.$ac_ext <<_ACEOF
11685/* confdefs.h. */
11686_ACEOF
11687cat confdefs.h >>conftest.$ac_ext
11688cat >>conftest.$ac_ext <<_ACEOF
11689/* end confdefs.h. */
11690
11691int
11692main ()
11693{
11694
11695 ;
11696 return 0;
11697}
11698_ACEOF
11699rm -f conftest.$ac_objext
11700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11701 (eval $ac_compile) 2>conftest.er1
a848cd7e 11702 ac_status=$?
ac1cb8d3
VS
11703 grep -v '^ *+' conftest.er1 >conftest.err
11704 rm -f conftest.er1
11705 cat conftest.err >&5
a848cd7e
SC
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } &&
7714864e 11708 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_cv_prog_cxx_g=yes
11721else
11722 echo "$as_me: failed program was:" >&5
11723sed 's/^/| /' conftest.$ac_ext >&5
11724
11725ac_cv_prog_cxx_g=no
11726fi
ac1cb8d3 11727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11728fi
11729echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11730echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11731if test "$ac_test_CXXFLAGS" = set; then
11732 CXXFLAGS=$ac_save_CXXFLAGS
11733elif test $ac_cv_prog_cxx_g = yes; then
11734 if test "$GXX" = yes; then
11735 CXXFLAGS="-g -O2"
11736 else
11737 CXXFLAGS="-g"
11738 fi
11739else
11740 if test "$GXX" = yes; then
11741 CXXFLAGS="-O2"
11742 else
11743 CXXFLAGS=
11744 fi
11745fi
11746for ac_declaration in \
ac1cb8d3 11747 '' \
a848cd7e
SC
11748 'extern "C" void std::exit (int) throw (); using std::exit;' \
11749 'extern "C" void std::exit (int); using std::exit;' \
11750 'extern "C" void exit (int) throw ();' \
11751 'extern "C" void exit (int);' \
11752 'void exit (int);'
11753do
11754 cat >conftest.$ac_ext <<_ACEOF
11755/* confdefs.h. */
11756_ACEOF
11757cat confdefs.h >>conftest.$ac_ext
11758cat >>conftest.$ac_ext <<_ACEOF
11759/* end confdefs.h. */
de59c161 11760$ac_declaration
ac1cb8d3 11761#include <stdlib.h>
a848cd7e
SC
11762int
11763main ()
11764{
11765exit (42);
11766 ;
11767 return 0;
11768}
11769_ACEOF
11770rm -f conftest.$ac_objext
11771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11772 (eval $ac_compile) 2>conftest.er1
a848cd7e 11773 ac_status=$?
ac1cb8d3
VS
11774 grep -v '^ *+' conftest.er1 >conftest.err
11775 rm -f conftest.er1
11776 cat conftest.err >&5
a848cd7e
SC
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
7714864e 11779 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781 (eval $ac_try) 2>&5
11782 ac_status=$?
11783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784 (exit $ac_status); }; } &&
11785 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787 (eval $ac_try) 2>&5
11788 ac_status=$?
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); }; }; then
11791 :
11792else
11793 echo "$as_me: failed program was:" >&5
11794sed 's/^/| /' conftest.$ac_ext >&5
11795
11796continue
11797fi
ac1cb8d3 11798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11799 cat >conftest.$ac_ext <<_ACEOF
11800/* confdefs.h. */
11801_ACEOF
11802cat confdefs.h >>conftest.$ac_ext
11803cat >>conftest.$ac_ext <<_ACEOF
11804/* end confdefs.h. */
11805$ac_declaration
11806int
11807main ()
11808{
11809exit (42);
11810 ;
11811 return 0;
11812}
11813_ACEOF
11814rm -f conftest.$ac_objext
11815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11816 (eval $ac_compile) 2>conftest.er1
a848cd7e 11817 ac_status=$?
ac1cb8d3
VS
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
a848cd7e
SC
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
7714864e 11823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11825 (eval $ac_try) 2>&5
11826 ac_status=$?
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); }; } &&
11829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; }; then
11835 break
11836else
11837 echo "$as_me: failed program was:" >&5
11838sed 's/^/| /' conftest.$ac_ext >&5
11839
11840fi
ac1cb8d3 11841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11842done
11843rm -f conftest*
11844if test -n "$ac_declaration"; then
11845 echo '#ifdef __cplusplus' >>confdefs.h
11846 echo $ac_declaration >>confdefs.h
11847 echo '#endif' >>confdefs.h
11848fi
11849
11850ac_ext=cc
11851ac_cpp='$CXXCPP $CPPFLAGS'
11852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11855
11856
11857ac_ext=c
11858ac_cpp='$CPP $CPPFLAGS'
11859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11861ac_compiler_gnu=$ac_cv_c_compiler_gnu
11862
11863
a848cd7e
SC
11864if test -n "$ac_tool_prefix"; then
11865 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11866set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11867echo "$as_me:$LINENO: checking for $ac_word" >&5
11868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11869if test "${ac_cv_prog_RANLIB+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871else
11872 if test -n "$RANLIB"; then
11873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11874else
11875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11876for as_dir in $PATH
11877do
11878 IFS=$as_save_IFS
11879 test -z "$as_dir" && as_dir=.
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11882 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11884 break 2
11885 fi
11886done
11887done
11888
11889fi
11890fi
11891RANLIB=$ac_cv_prog_RANLIB
11892if test -n "$RANLIB"; then
11893 echo "$as_me:$LINENO: result: $RANLIB" >&5
11894echo "${ECHO_T}$RANLIB" >&6
11895else
11896 echo "$as_me:$LINENO: result: no" >&5
11897echo "${ECHO_T}no" >&6
11898fi
11899
11900fi
11901if test -z "$ac_cv_prog_RANLIB"; then
11902 ac_ct_RANLIB=$RANLIB
11903 # Extract the first word of "ranlib", so it can be a program name with args.
11904set dummy ranlib; ac_word=$2
11905echo "$as_me:$LINENO: checking for $ac_word" >&5
11906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11907if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11908 echo $ECHO_N "(cached) $ECHO_C" >&6
11909else
11910 if test -n "$ac_ct_RANLIB"; then
11911 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11912else
11913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914for as_dir in $PATH
11915do
11916 IFS=$as_save_IFS
11917 test -z "$as_dir" && as_dir=.
11918 for ac_exec_ext in '' $ac_executable_extensions; do
11919 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11920 ac_cv_prog_ac_ct_RANLIB="ranlib"
11921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11922 break 2
11923 fi
11924done
11925done
11926
11927 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11928fi
11929fi
11930ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11931if test -n "$ac_ct_RANLIB"; then
11932 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11933echo "${ECHO_T}$ac_ct_RANLIB" >&6
11934else
11935 echo "$as_me:$LINENO: result: no" >&5
11936echo "${ECHO_T}no" >&6
11937fi
11938
11939 RANLIB=$ac_ct_RANLIB
11940else
11941 RANLIB="$ac_cv_prog_RANLIB"
11942fi
11943
11944
11945# Extract the first word of "ar", so it can be a program name with args.
11946set dummy ar; ac_word=$2
11947echo "$as_me:$LINENO: checking for $ac_word" >&5
11948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11949if test "${ac_cv_prog_AR+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951else
11952 if test -n "$AR"; then
11953 ac_cv_prog_AR="$AR" # Let the user override the test.
11954else
11955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11956for as_dir in $PATH
11957do
11958 IFS=$as_save_IFS
11959 test -z "$as_dir" && as_dir=.
11960 for ac_exec_ext in '' $ac_executable_extensions; do
11961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11962 ac_cv_prog_AR="ar"
11963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11964 break 2
11965 fi
11966done
11967done
11968
11969fi
11970fi
11971AR=$ac_cv_prog_AR
11972if test -n "$AR"; then
11973 echo "$as_me:$LINENO: result: $AR" >&5
11974echo "${ECHO_T}$AR" >&6
11975else
11976 echo "$as_me:$LINENO: result: no" >&5
11977echo "${ECHO_T}no" >&6
11978fi
11979
11980if test "x$AR" = "x" ; then
77ffb593
JS
11981 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
11982echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
11983 { (exit 1); exit 1; }; }
11984fi
11985
11986# Find a good install program. We prefer a C program (faster),
11987# so one script is as good as another. But avoid the broken or
11988# incompatible versions:
11989# SysV /etc/install, /usr/sbin/install
11990# SunOS /usr/etc/install
11991# IRIX /sbin/install
11992# AIX /bin/install
11993# AmigaOS /C/install, which installs bootblocks on floppy discs
11994# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11995# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11996# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 11997# OS/2's system install, which has a completely different semantic
a848cd7e
SC
11998# ./install, which can be erroneously created by make from ./install.sh.
11999echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12000echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12001if test -z "$INSTALL"; then
12002if test "${ac_cv_path_install+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12004else
12005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006for as_dir in $PATH
12007do
12008 IFS=$as_save_IFS
12009 test -z "$as_dir" && as_dir=.
12010 # Account for people who put trailing slashes in PATH elements.
12011case $as_dir/ in
12012 ./ | .// | /cC/* | \
12013 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12014 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12015 /usr/ucb/* ) ;;
12016 *)
12017 # OSF1 and SCO ODT 3.0 have their own names for install.
12018 # Don't use installbsd from OSF since it installs stuff as root
12019 # by default.
12020 for ac_prog in ginstall scoinst install; do
12021 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12022 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12023 if test $ac_prog = install &&
12024 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12025 # AIX install. It has an incompatible calling convention.
12026 :
12027 elif test $ac_prog = install &&
12028 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12029 # program-specific install script used by HP pwplus--don't use.
12030 :
12031 else
12032 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12033 break 3
12034 fi
12035 fi
a848cd7e
SC
12036 done
12037 done
12038 ;;
12039esac
12040done
12041
12042
12043fi
12044 if test "${ac_cv_path_install+set}" = set; then
12045 INSTALL=$ac_cv_path_install
12046 else
12047 # As a last resort, use the slow shell script. We don't cache a
12048 # path for INSTALL within a source directory, because that will
12049 # break other packages using the cache if that directory is
12050 # removed, or if the path is relative.
12051 INSTALL=$ac_install_sh
12052 fi
12053fi
12054echo "$as_me:$LINENO: result: $INSTALL" >&5
12055echo "${ECHO_T}$INSTALL" >&6
12056
12057# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12058# It thinks the first close brace ends the variable substitution.
12059test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12060
12061test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12062
12063test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12064
12065
12066case ${INSTALL} in
12067 /* ) # Absolute
12068 ;;
12069 ?:* ) # Drive letter, considered as absolute.
12070 ;;
12071 *)
12072 INSTALL=`pwd`/${INSTALL} ;;
12073esac
12074
a848cd7e
SC
12075
12076case "${host}" in
12077
12078 powerpc-*-darwin* )
12079 INSTALL_PROGRAM="cp -fp"
12080 INSTALL_DATA="cp -fp"
12081 ;;
12082 *)
12083 ;;
12084esac
12085
12086# Extract the first word of "strip", so it can be a program name with args.
12087set dummy strip; ac_word=$2
12088echo "$as_me:$LINENO: checking for $ac_word" >&5
12089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12090if test "${ac_cv_prog_STRIP+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12092else
12093 if test -n "$STRIP"; then
12094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12095else
12096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097for as_dir in $PATH
12098do
12099 IFS=$as_save_IFS
12100 test -z "$as_dir" && as_dir=.
12101 for ac_exec_ext in '' $ac_executable_extensions; do
12102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12103 ac_cv_prog_STRIP="strip"
12104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12105 break 2
12106 fi
12107done
12108done
12109
12110 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12111fi
12112fi
12113STRIP=$ac_cv_prog_STRIP
12114if test -n "$STRIP"; then
12115 echo "$as_me:$LINENO: result: $STRIP" >&5
12116echo "${ECHO_T}$STRIP" >&6
12117else
12118 echo "$as_me:$LINENO: result: no" >&5
12119echo "${ECHO_T}no" >&6
12120fi
12121
12122
12123echo "$as_me:$LINENO: checking if make is GNU make" >&5
12124echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12125if test "${wx_cv_prog_makeisgnu+set}" = set; then
12126 echo $ECHO_N "(cached) $ECHO_C" >&6
12127else
12128
12129 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12130 egrep -s GNU > /dev/null); then
12131 wx_cv_prog_makeisgnu="yes"
12132 else
12133 wx_cv_prog_makeisgnu="no"
12134 fi
12135
12136fi
12137echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12138echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12139
12140if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12141 IF_GNU_MAKE=""
12142else
12143 IF_GNU_MAKE="#"
12144fi
12145
12146
12147
12148if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12149echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12150echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12151if test "${wx_cv_prog_makevpath+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153else
12154
12155cat - << EOF > confMake
12156check : file
12157 cp \$? \$@
12158 cp \$? final_file
12159EOF
12160
12161if test ! -d sub ; then
12162 mkdir sub
12163fi
12164echo dummy > sub/file
12165${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12166RESULT=$?
12167rm -f sub/file check final_file confMake
12168rmdir sub
12169if test "$RESULT" = 0; then
12170 wx_cv_prog_makevpath="yes"
12171else
12172 wx_cv_prog_makevpath="no"
12173fi
12174
12175fi
12176echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12177echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12178
12179if test "x$wx_cv_prog_makevpath" != "xyes"; then
12180{ { echo "$as_me:$LINENO: error:
12181You need a make-utility that is able to use the variable
12182VPATH correctly.
12183If your version of make does not support VPATH correctly,
12184please install GNU-make (possibly as gmake), and start
12185configure with the following command:
12186export MAKE=gmake; ./configure for sh-type shells
12187setenv MAKE gmake; ./configure for csh-type shells
12188Also please do remember to use gmake in this case every time
12189you are trying to compile.
12190" >&5
12191echo "$as_me: error:
12192You need a make-utility that is able to use the variable
12193VPATH correctly.
12194If your version of make does not support VPATH correctly,
12195please install GNU-make (possibly as gmake), and start
12196configure with the following command:
12197export MAKE=gmake; ./configure for sh-type shells
12198setenv MAKE gmake; ./configure for csh-type shells
12199Also please do remember to use gmake in this case every time
12200you are trying to compile.
12201" >&2;}
12202 { (exit 1); exit 1; }; }
12203fi fi
12204echo "$as_me:$LINENO: checking whether ln -s works" >&5
12205echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12206LN_S=$as_ln_s
12207if test "$LN_S" = "ln -s"; then
12208 echo "$as_me:$LINENO: result: yes" >&5
12209echo "${ECHO_T}yes" >&6
12210else
12211 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12212echo "${ECHO_T}no, using $LN_S" >&6
12213fi
12214
12215
12216
12217case "${host}" in
12218 *-pc-os2_emx | *-pc-os2-emx )
12219 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12220 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12221echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12222if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224else
12225 ac_check_lib_save_LIBS=$LIBS
12226LIBS="-lcExt $LIBS"
12227cat >conftest.$ac_ext <<_ACEOF
12228/* confdefs.h. */
12229_ACEOF
12230cat confdefs.h >>conftest.$ac_ext
12231cat >>conftest.$ac_ext <<_ACEOF
12232/* end confdefs.h. */
12233
12234/* Override any gcc2 internal prototype to avoid an error. */
12235#ifdef __cplusplus
12236extern "C"
12237#endif
12238/* We use char because int might match the return type of a gcc2
12239 builtin and then its argument prototype would still apply. */
12240char drand48 ();
12241int
12242main ()
12243{
12244drand48 ();
12245 ;
12246 return 0;
12247}
12248_ACEOF
12249rm -f conftest.$ac_objext conftest$ac_exeext
12250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12251 (eval $ac_link) 2>conftest.er1
a848cd7e 12252 ac_status=$?
ac1cb8d3
VS
12253 grep -v '^ *+' conftest.er1 >conftest.err
12254 rm -f conftest.er1
12255 cat conftest.err >&5
a848cd7e
SC
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } &&
7714864e 12258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; } &&
12264 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266 (eval $ac_try) 2>&5
12267 ac_status=$?
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); }; }; then
12270 ac_cv_lib_cExt_drand48=yes
12271else
12272 echo "$as_me: failed program was:" >&5
12273sed 's/^/| /' conftest.$ac_ext >&5
12274
12275ac_cv_lib_cExt_drand48=no
12276fi
ac1cb8d3
VS
12277rm -f conftest.err conftest.$ac_objext \
12278 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12279LIBS=$ac_check_lib_save_LIBS
12280fi
12281echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12282echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12283if test $ac_cv_lib_cExt_drand48 = yes; then
12284 LIBS="$LIBS -lcExt"
12285fi
12286
12287 else
12288 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12289 fi
12290 echo "$as_me:$LINENO: checking for gcc version" >&5
12291echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12292if test "${wx_cv_gccversion+set}" = set; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12294else
12295
12296 cat >conftest.$ac_ext <<_ACEOF
12297/* confdefs.h. */
12298_ACEOF
12299cat confdefs.h >>conftest.$ac_ext
12300cat >>conftest.$ac_ext <<_ACEOF
12301/* end confdefs.h. */
12302
12303int
12304main ()
12305{
12306
12307 #if (__GNUC__ < 3)
12308 #error old gcc
12309 #endif
12310
12311 ;
12312 return 0;
12313}
12314_ACEOF
12315rm -f conftest.$ac_objext
12316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12317 (eval $ac_compile) 2>conftest.er1
a848cd7e 12318 ac_status=$?
ac1cb8d3
VS
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
a848cd7e
SC
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
7714864e 12324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12326 (eval $ac_try) 2>&5
12327 ac_status=$?
12328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); }; } &&
12330 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12332 (eval $ac_try) 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12336
12337 cat >conftest.$ac_ext <<_ACEOF
12338/* confdefs.h. */
12339_ACEOF
12340cat confdefs.h >>conftest.$ac_ext
12341cat >>conftest.$ac_ext <<_ACEOF
12342/* end confdefs.h. */
12343
12344int
12345main ()
12346{
12347
12348 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12349 #error intermediate gcc
12350 #endif
12351
12352 ;
12353 return 0;
12354}
12355_ACEOF
12356rm -f conftest.$ac_objext
12357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12358 (eval $ac_compile) 2>conftest.er1
a848cd7e 12359 ac_status=$?
ac1cb8d3
VS
12360 grep -v '^ *+' conftest.er1 >conftest.err
12361 rm -f conftest.er1
12362 cat conftest.err >&5
a848cd7e
SC
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } &&
7714864e 12365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; } &&
12371 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; }; then
12377
12378 wx_cv_gccversion=Innotek
12379
12380else
12381 echo "$as_me: failed program was:" >&5
12382sed 's/^/| /' conftest.$ac_ext >&5
12383
12384
12385 wx_cv_gccversion=3
12386
12387
12388fi
ac1cb8d3 12389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12390
12391else
12392 echo "$as_me: failed program was:" >&5
12393sed 's/^/| /' conftest.$ac_ext >&5
12394
12395
12396 wx_cv_gccversion=2
12397
12398
12399fi
ac1cb8d3 12400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12401
12402fi
12403echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12404echo "${ECHO_T}$wx_cv_gccversion" >&6
12405 if test "$wx_cv_gccversion" = "2"; then
12406 LIBS="$LIBS -lstdcpp"
12407 LDFLAGS="$LDFLAGS -Zsysv-signals"
12408 else
12409 if test "$wx_cv_gccversion" = "3"; then
12410 LIBS="$LIBS -lstdcxx"
12411 LDFLAGS="$LDFLAGS -Zsysv-signals"
12412 else
12413 LIBS="$LIBS -lstdc++"
12414 fi
12415 fi
12416 if test "$wxUSE_OMF" = "yes"; then
de59c161 12417 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12418 fi
12419 ;;
12420 *)
12421
12422
12423
12424 ac_ext=cc
12425ac_cpp='$CXXCPP $CPPFLAGS'
12426ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12429
12430
12431
12432echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12433echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12434if test "${ac_cv_string_strcasecmp+set}" = set; then
12435 echo $ECHO_N "(cached) $ECHO_C" >&6
12436else
12437
12438 cat >conftest.$ac_ext <<_ACEOF
12439/* confdefs.h. */
12440_ACEOF
12441cat confdefs.h >>conftest.$ac_ext
12442cat >>conftest.$ac_ext <<_ACEOF
12443/* end confdefs.h. */
12444
12445 #include <string.h>
12446
12447int
12448main ()
12449{
12450
12451 strcasecmp("foo", "bar");
12452
12453 ;
12454 return 0;
12455}
12456_ACEOF
12457rm -f conftest.$ac_objext conftest$ac_exeext
12458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12459 (eval $ac_link) 2>conftest.er1
a848cd7e 12460 ac_status=$?
ac1cb8d3
VS
12461 grep -v '^ *+' conftest.er1 >conftest.err
12462 rm -f conftest.er1
12463 cat conftest.err >&5
a848cd7e
SC
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
7714864e 12466 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12469 ac_status=$?
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; } &&
12472 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; }; then
12478 ac_cv_string_strcasecmp=yes
12479else
12480 echo "$as_me: failed program was:" >&5
12481sed 's/^/| /' conftest.$ac_ext >&5
12482
12483ac_cv_string_strcasecmp=no
12484
12485fi
ac1cb8d3
VS
12486rm -f conftest.err conftest.$ac_objext \
12487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12488
12489fi
12490echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12491echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12492
12493 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12494 cat >>confdefs.h <<\_ACEOF
12495#define HAVE_STRCASECMP_IN_STRING_H 1
12496_ACEOF
12497
12498 else
12499 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12500echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12501if test "${ac_cv_strings_strcasecmp+set}" = set; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12503else
12504
12505 cat >conftest.$ac_ext <<_ACEOF
12506/* confdefs.h. */
12507_ACEOF
12508cat confdefs.h >>conftest.$ac_ext
12509cat >>conftest.$ac_ext <<_ACEOF
12510/* end confdefs.h. */
12511
12512 #include <strings.h>
12513
12514int
12515main ()
12516{
12517
12518 strcasecmp("foo", "bar");
12519
12520 ;
12521 return 0;
12522}
12523_ACEOF
12524rm -f conftest.$ac_objext conftest$ac_exeext
12525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12526 (eval $ac_link) 2>conftest.er1
a848cd7e 12527 ac_status=$?
ac1cb8d3
VS
12528 grep -v '^ *+' conftest.er1 >conftest.err
12529 rm -f conftest.er1
12530 cat conftest.err >&5
a848cd7e
SC
12531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12532 (exit $ac_status); } &&
7714864e 12533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12535 (eval $ac_try) 2>&5
12536 ac_status=$?
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); }; } &&
12539 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12541 (eval $ac_try) 2>&5
12542 ac_status=$?
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); }; }; then
12545 ac_cv_strings_strcasecmp=yes
12546else
12547 echo "$as_me: failed program was:" >&5
12548sed 's/^/| /' conftest.$ac_ext >&5
12549
12550ac_cv_strings_strcasecmp=no
12551
12552fi
ac1cb8d3
VS
12553rm -f conftest.err conftest.$ac_objext \
12554 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12555
12556fi
12557echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12558echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12559
0c3c69fc 12560 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12561 cat >>confdefs.h <<\_ACEOF
12562#define HAVE_STRCASECMP_IN_STRINGS_H 1
12563_ACEOF
12564
12565 else
12566 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12567echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12568 { (exit 1); exit 1; }; }
12569 fi
12570 fi
12571
12572 ac_ext=c
12573ac_cpp='$CPP $CPPFLAGS'
12574ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12575ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12576ac_compiler_gnu=$ac_cv_c_compiler_gnu
12577
12578 ;;
12579esac
12580
12581
12582echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12583echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12584if test "${ac_cv_header_stdc+set}" = set; then
12585 echo $ECHO_N "(cached) $ECHO_C" >&6
12586else
12587 cat >conftest.$ac_ext <<_ACEOF
12588/* confdefs.h. */
12589_ACEOF
12590cat confdefs.h >>conftest.$ac_ext
12591cat >>conftest.$ac_ext <<_ACEOF
12592/* end confdefs.h. */
12593#include <stdlib.h>
12594#include <stdarg.h>
12595#include <string.h>
12596#include <float.h>
12597
12598int
12599main ()
12600{
12601
12602 ;
12603 return 0;
12604}
12605_ACEOF
12606rm -f conftest.$ac_objext
12607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12608 (eval $ac_compile) 2>conftest.er1
a848cd7e 12609 ac_status=$?
ac1cb8d3
VS
12610 grep -v '^ *+' conftest.er1 >conftest.err
12611 rm -f conftest.er1
12612 cat conftest.err >&5
a848cd7e
SC
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } &&
7714864e 12615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12617 (eval $ac_try) 2>&5
12618 ac_status=$?
12619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); }; } &&
12621 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 ac_cv_header_stdc=yes
12628else
12629 echo "$as_me: failed program was:" >&5
12630sed 's/^/| /' conftest.$ac_ext >&5
12631
12632ac_cv_header_stdc=no
12633fi
ac1cb8d3 12634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12635
12636if test $ac_cv_header_stdc = yes; then
12637 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12638 cat >conftest.$ac_ext <<_ACEOF
12639/* confdefs.h. */
12640_ACEOF
12641cat confdefs.h >>conftest.$ac_ext
12642cat >>conftest.$ac_ext <<_ACEOF
12643/* end confdefs.h. */
12644#include <string.h>
12645
12646_ACEOF
12647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12648 $EGREP "memchr" >/dev/null 2>&1; then
12649 :
12650else
12651 ac_cv_header_stdc=no
12652fi
12653rm -f conftest*
12654
12655fi
12656
12657if test $ac_cv_header_stdc = yes; then
12658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12659 cat >conftest.$ac_ext <<_ACEOF
12660/* confdefs.h. */
12661_ACEOF
12662cat confdefs.h >>conftest.$ac_ext
12663cat >>conftest.$ac_ext <<_ACEOF
12664/* end confdefs.h. */
12665#include <stdlib.h>
12666
12667_ACEOF
12668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12669 $EGREP "free" >/dev/null 2>&1; then
12670 :
12671else
12672 ac_cv_header_stdc=no
12673fi
12674rm -f conftest*
12675
12676fi
12677
12678if test $ac_cv_header_stdc = yes; then
12679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12680 if test "$cross_compiling" = yes; then
12681 :
12682else
12683 cat >conftest.$ac_ext <<_ACEOF
12684/* confdefs.h. */
12685_ACEOF
12686cat confdefs.h >>conftest.$ac_ext
12687cat >>conftest.$ac_ext <<_ACEOF
12688/* end confdefs.h. */
12689#include <ctype.h>
12690#if ((' ' & 0x0FF) == 0x020)
12691# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12692# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12693#else
12694# define ISLOWER(c) \
ac1cb8d3
VS
12695 (('a' <= (c) && (c) <= 'i') \
12696 || ('j' <= (c) && (c) <= 'r') \
12697 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12698# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12699#endif
12700
12701#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12702int
12703main ()
12704{
12705 int i;
12706 for (i = 0; i < 256; i++)
12707 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12708 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12709 exit(2);
12710 exit (0);
12711}
12712_ACEOF
12713rm -f conftest$ac_exeext
12714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12715 (eval $ac_link) 2>&5
12716 ac_status=$?
12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12721 ac_status=$?
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12724 :
12725else
12726 echo "$as_me: program exited with status $ac_status" >&5
12727echo "$as_me: failed program was:" >&5
12728sed 's/^/| /' conftest.$ac_ext >&5
12729
12730( exit $ac_status )
12731ac_cv_header_stdc=no
12732fi
ac1cb8d3 12733rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12734fi
12735fi
12736fi
12737echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12738echo "${ECHO_T}$ac_cv_header_stdc" >&6
12739if test $ac_cv_header_stdc = yes; then
12740
12741cat >>confdefs.h <<\_ACEOF
12742#define STDC_HEADERS 1
12743_ACEOF
12744
12745fi
12746
12747# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12758 inttypes.h stdint.h unistd.h
a848cd7e
SC
12759do
12760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12761echo "$as_me:$LINENO: checking for $ac_header" >&5
12762echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12763if eval "test \"\${$as_ac_Header+set}\" = set"; then
12764 echo $ECHO_N "(cached) $ECHO_C" >&6
12765else
12766 cat >conftest.$ac_ext <<_ACEOF
12767/* confdefs.h. */
12768_ACEOF
12769cat confdefs.h >>conftest.$ac_ext
12770cat >>conftest.$ac_ext <<_ACEOF
12771/* end confdefs.h. */
12772$ac_includes_default
12773
12774#include <$ac_header>
12775_ACEOF
12776rm -f conftest.$ac_objext
12777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12778 (eval $ac_compile) 2>conftest.er1
a848cd7e 12779 ac_status=$?
ac1cb8d3
VS
12780 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1
12782 cat conftest.err >&5
a848cd7e
SC
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
7714864e 12785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12794 ac_status=$?
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 eval "$as_ac_Header=yes"
12798else
12799 echo "$as_me: failed program was:" >&5
12800sed 's/^/| /' conftest.$ac_ext >&5
12801
12802eval "$as_ac_Header=no"
12803fi
ac1cb8d3 12804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12805fi
12806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12807echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12808if test `eval echo '${'$as_ac_Header'}'` = yes; then
12809 cat >>confdefs.h <<_ACEOF
12810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12811_ACEOF
12812
12813fi
12814
12815done
12816
12817
12818
12819for ac_header in stdlib.h
12820do
12821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12822if eval "test \"\${$as_ac_Header+set}\" = set"; then
12823 echo "$as_me:$LINENO: checking for $ac_header" >&5
12824echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12825if eval "test \"\${$as_ac_Header+set}\" = set"; then
12826 echo $ECHO_N "(cached) $ECHO_C" >&6
12827fi
12828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12830else
12831 # Is the header compilable?
12832echo "$as_me:$LINENO: checking $ac_header usability" >&5
12833echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12834cat >conftest.$ac_ext <<_ACEOF
12835/* confdefs.h. */
12836_ACEOF
12837cat confdefs.h >>conftest.$ac_ext
12838cat >>conftest.$ac_ext <<_ACEOF
12839/* end confdefs.h. */
12840$ac_includes_default
12841#include <$ac_header>
12842_ACEOF
12843rm -f conftest.$ac_objext
12844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12845 (eval $ac_compile) 2>conftest.er1
a848cd7e 12846 ac_status=$?
ac1cb8d3
VS
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
a848cd7e
SC
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
7714864e 12852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; } &&
12858 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12860 (eval $ac_try) 2>&5
12861 ac_status=$?
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); }; }; then
12864 ac_header_compiler=yes
12865else
12866 echo "$as_me: failed program was:" >&5
12867sed 's/^/| /' conftest.$ac_ext >&5
12868
12869ac_header_compiler=no
12870fi
ac1cb8d3 12871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12872echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12873echo "${ECHO_T}$ac_header_compiler" >&6
12874
12875# Is the header present?
12876echo "$as_me:$LINENO: checking $ac_header presence" >&5
12877echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12878cat >conftest.$ac_ext <<_ACEOF
12879/* confdefs.h. */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h. */
12884#include <$ac_header>
12885_ACEOF
12886if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12888 ac_status=$?
12889 grep -v '^ *+' conftest.er1 >conftest.err
12890 rm -f conftest.er1
12891 cat conftest.err >&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); } >/dev/null; then
12894 if test -s conftest.err; then
12895 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12896 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12897 else
12898 ac_cpp_err=
12899 fi
12900else
12901 ac_cpp_err=yes
12902fi
12903if test -z "$ac_cpp_err"; then
12904 ac_header_preproc=yes
12905else
12906 echo "$as_me: failed program was:" >&5
12907sed 's/^/| /' conftest.$ac_ext >&5
12908
12909 ac_header_preproc=no
12910fi
12911rm -f conftest.err conftest.$ac_ext
12912echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12913echo "${ECHO_T}$ac_header_preproc" >&6
12914
12915# So? What about this header?
ac1cb8d3
VS
12916case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12917 yes:no: )
a848cd7e
SC
12918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12919echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
12920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12921echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12922 ac_header_preproc=yes
a848cd7e 12923 ;;
ac1cb8d3 12924 no:yes:* )
a848cd7e
SC
12925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12926echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
12927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12928echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12930echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12932echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
12933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
12935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12936echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
12937 (
12938 cat <<\_ASBOX
ac1cb8d3
VS
12939## ----------------------------------------- ##
12940## Report this to wx-dev@lists.wxwidgets.org ##
12941## ----------------------------------------- ##
a848cd7e
SC
12942_ASBOX
12943 ) |
12944 sed "s/^/$as_me: WARNING: /" >&2
12945 ;;
12946esac
12947echo "$as_me:$LINENO: checking for $ac_header" >&5
12948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12949if eval "test \"\${$as_ac_Header+set}\" = set"; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12951else
ac1cb8d3 12952 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
12953fi
12954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12955echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12956
12957fi
12958if test `eval echo '${'$as_ac_Header'}'` = yes; then
12959 cat >>confdefs.h <<_ACEOF
12960#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12961_ACEOF
12962
12963fi
12964
12965done
12966
12967
12968for ac_header in malloc.h
12969do
12970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12971if eval "test \"\${$as_ac_Header+set}\" = set"; then
12972 echo "$as_me:$LINENO: checking for $ac_header" >&5
12973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12974if eval "test \"\${$as_ac_Header+set}\" = set"; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976fi
12977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12979else
12980 # Is the header compilable?
12981echo "$as_me:$LINENO: checking $ac_header usability" >&5
12982echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12983cat >conftest.$ac_ext <<_ACEOF
12984/* confdefs.h. */
12985_ACEOF
12986cat confdefs.h >>conftest.$ac_ext
12987cat >>conftest.$ac_ext <<_ACEOF
12988/* end confdefs.h. */
12989$ac_includes_default
12990#include <$ac_header>
12991_ACEOF
12992rm -f conftest.$ac_objext
12993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12994 (eval $ac_compile) 2>conftest.er1
a848cd7e 12995 ac_status=$?
ac1cb8d3
VS
12996 grep -v '^ *+' conftest.er1 >conftest.err
12997 rm -f conftest.er1
12998 cat conftest.err >&5
a848cd7e
SC
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); } &&
7714864e 13001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13003 (eval $ac_try) 2>&5
13004 ac_status=$?
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13009 (eval $ac_try) 2>&5
13010 ac_status=$?
13011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13012 (exit $ac_status); }; }; then
13013 ac_header_compiler=yes
13014else
13015 echo "$as_me: failed program was:" >&5
13016sed 's/^/| /' conftest.$ac_ext >&5
13017
13018ac_header_compiler=no
13019fi
ac1cb8d3 13020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13021echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13022echo "${ECHO_T}$ac_header_compiler" >&6
13023
13024# Is the header present?
13025echo "$as_me:$LINENO: checking $ac_header presence" >&5
13026echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13027cat >conftest.$ac_ext <<_ACEOF
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
13032/* end confdefs.h. */
13033#include <$ac_header>
13034_ACEOF
13035if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13037 ac_status=$?
13038 grep -v '^ *+' conftest.er1 >conftest.err
13039 rm -f conftest.er1
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } >/dev/null; then
13043 if test -s conftest.err; then
13044 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13046 else
13047 ac_cpp_err=
13048 fi
13049else
13050 ac_cpp_err=yes
13051fi
13052if test -z "$ac_cpp_err"; then
13053 ac_header_preproc=yes
13054else
13055 echo "$as_me: failed program was:" >&5
13056sed 's/^/| /' conftest.$ac_ext >&5
13057
13058 ac_header_preproc=no
13059fi
13060rm -f conftest.err conftest.$ac_ext
13061echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13062echo "${ECHO_T}$ac_header_preproc" >&6
13063
13064# So? What about this header?
ac1cb8d3
VS
13065case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13066 yes:no: )
a848cd7e
SC
13067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13068echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13070echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13071 ac_header_preproc=yes
a848cd7e 13072 ;;
ac1cb8d3 13073 no:yes:* )
a848cd7e
SC
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13075echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13077echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13079echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13081echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13083echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13085echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13086 (
13087 cat <<\_ASBOX
ac1cb8d3
VS
13088## ----------------------------------------- ##
13089## Report this to wx-dev@lists.wxwidgets.org ##
13090## ----------------------------------------- ##
a848cd7e
SC
13091_ASBOX
13092 ) |
13093 sed "s/^/$as_me: WARNING: /" >&2
13094 ;;
13095esac
13096echo "$as_me:$LINENO: checking for $ac_header" >&5
13097echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13098if eval "test \"\${$as_ac_Header+set}\" = set"; then
13099 echo $ECHO_N "(cached) $ECHO_C" >&6
13100else
ac1cb8d3 13101 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13102fi
13103echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13104echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13105
13106fi
13107if test `eval echo '${'$as_ac_Header'}'` = yes; then
13108 cat >>confdefs.h <<_ACEOF
13109#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13110_ACEOF
13111
13112fi
13113
13114done
13115
13116
13117for ac_header in unistd.h
13118do
13119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13120if eval "test \"\${$as_ac_Header+set}\" = set"; then
13121 echo "$as_me:$LINENO: checking for $ac_header" >&5
13122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13123if eval "test \"\${$as_ac_Header+set}\" = set"; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13125fi
13126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13128else
13129 # Is the header compilable?
13130echo "$as_me:$LINENO: checking $ac_header usability" >&5
13131echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13132cat >conftest.$ac_ext <<_ACEOF
13133/* confdefs.h. */
13134_ACEOF
13135cat confdefs.h >>conftest.$ac_ext
13136cat >>conftest.$ac_ext <<_ACEOF
13137/* end confdefs.h. */
13138$ac_includes_default
13139#include <$ac_header>
13140_ACEOF
13141rm -f conftest.$ac_objext
13142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13143 (eval $ac_compile) 2>conftest.er1
a848cd7e 13144 ac_status=$?
ac1cb8d3
VS
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
a848cd7e
SC
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } &&
7714864e 13150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_header_compiler=yes
13163else
13164 echo "$as_me: failed program was:" >&5
13165sed 's/^/| /' conftest.$ac_ext >&5
13166
13167ac_header_compiler=no
13168fi
ac1cb8d3 13169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13171echo "${ECHO_T}$ac_header_compiler" >&6
13172
13173# Is the header present?
13174echo "$as_me:$LINENO: checking $ac_header presence" >&5
13175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13176cat >conftest.$ac_ext <<_ACEOF
13177/* confdefs.h. */
13178_ACEOF
13179cat confdefs.h >>conftest.$ac_ext
13180cat >>conftest.$ac_ext <<_ACEOF
13181/* end confdefs.h. */
13182#include <$ac_header>
13183_ACEOF
13184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13186 ac_status=$?
13187 grep -v '^ *+' conftest.er1 >conftest.err
13188 rm -f conftest.er1
13189 cat conftest.err >&5
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); } >/dev/null; then
13192 if test -s conftest.err; then
13193 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13195 else
13196 ac_cpp_err=
13197 fi
13198else
13199 ac_cpp_err=yes
13200fi
13201if test -z "$ac_cpp_err"; then
13202 ac_header_preproc=yes
13203else
13204 echo "$as_me: failed program was:" >&5
13205sed 's/^/| /' conftest.$ac_ext >&5
13206
13207 ac_header_preproc=no
13208fi
13209rm -f conftest.err conftest.$ac_ext
13210echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13211echo "${ECHO_T}$ac_header_preproc" >&6
13212
13213# So? What about this header?
ac1cb8d3
VS
13214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13215 yes:no: )
a848cd7e
SC
13216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13220 ac_header_preproc=yes
a848cd7e 13221 ;;
ac1cb8d3 13222 no:yes:* )
a848cd7e
SC
13223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13235 (
13236 cat <<\_ASBOX
ac1cb8d3
VS
13237## ----------------------------------------- ##
13238## Report this to wx-dev@lists.wxwidgets.org ##
13239## ----------------------------------------- ##
a848cd7e
SC
13240_ASBOX
13241 ) |
13242 sed "s/^/$as_me: WARNING: /" >&2
13243 ;;
13244esac
13245echo "$as_me:$LINENO: checking for $ac_header" >&5
13246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13247if eval "test \"\${$as_ac_Header+set}\" = set"; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249else
ac1cb8d3 13250 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13251fi
13252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13254
13255fi
13256if test `eval echo '${'$as_ac_Header'}'` = yes; then
13257 cat >>confdefs.h <<_ACEOF
13258#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13259_ACEOF
13260
13261fi
13262
13263done
13264
13265
13266for ac_header in wchar.h
13267do
13268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13269if eval "test \"\${$as_ac_Header+set}\" = set"; then
13270 echo "$as_me:$LINENO: checking for $ac_header" >&5
13271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13272if eval "test \"\${$as_ac_Header+set}\" = set"; then
13273 echo $ECHO_N "(cached) $ECHO_C" >&6
13274fi
13275echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13276echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13277else
13278 # Is the header compilable?
13279echo "$as_me:$LINENO: checking $ac_header usability" >&5
13280echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13281cat >conftest.$ac_ext <<_ACEOF
13282/* confdefs.h. */
13283_ACEOF
13284cat confdefs.h >>conftest.$ac_ext
13285cat >>conftest.$ac_ext <<_ACEOF
13286/* end confdefs.h. */
13287$ac_includes_default
13288#include <$ac_header>
13289_ACEOF
13290rm -f conftest.$ac_objext
13291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13292 (eval $ac_compile) 2>conftest.er1
a848cd7e 13293 ac_status=$?
ac1cb8d3
VS
13294 grep -v '^ *+' conftest.er1 >conftest.err
13295 rm -f conftest.er1
13296 cat conftest.err >&5
a848cd7e
SC
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } &&
7714864e 13299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13301 (eval $ac_try) 2>&5
13302 ac_status=$?
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }; } &&
13305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13307 (eval $ac_try) 2>&5
13308 ac_status=$?
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); }; }; then
13311 ac_header_compiler=yes
13312else
13313 echo "$as_me: failed program was:" >&5
13314sed 's/^/| /' conftest.$ac_ext >&5
13315
13316ac_header_compiler=no
13317fi
ac1cb8d3 13318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13319echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13320echo "${ECHO_T}$ac_header_compiler" >&6
13321
13322# Is the header present?
13323echo "$as_me:$LINENO: checking $ac_header presence" >&5
13324echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13325cat >conftest.$ac_ext <<_ACEOF
13326/* confdefs.h. */
13327_ACEOF
13328cat confdefs.h >>conftest.$ac_ext
13329cat >>conftest.$ac_ext <<_ACEOF
13330/* end confdefs.h. */
13331#include <$ac_header>
13332_ACEOF
13333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13334 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13335 ac_status=$?
13336 grep -v '^ *+' conftest.er1 >conftest.err
13337 rm -f conftest.er1
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } >/dev/null; then
13341 if test -s conftest.err; then
13342 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13343 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13344 else
13345 ac_cpp_err=
13346 fi
13347else
13348 ac_cpp_err=yes
13349fi
13350if test -z "$ac_cpp_err"; then
13351 ac_header_preproc=yes
13352else
13353 echo "$as_me: failed program was:" >&5
13354sed 's/^/| /' conftest.$ac_ext >&5
13355
13356 ac_header_preproc=no
13357fi
13358rm -f conftest.err conftest.$ac_ext
13359echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13360echo "${ECHO_T}$ac_header_preproc" >&6
13361
13362# So? What about this header?
ac1cb8d3
VS
13363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13364 yes:no: )
a848cd7e
SC
13365 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13366echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13367 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13368echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13369 ac_header_preproc=yes
a848cd7e 13370 ;;
ac1cb8d3 13371 no:yes:* )
a848cd7e
SC
13372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13373echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13375echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13376 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13377echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13378 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13379echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13381echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13382 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13383echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13384 (
13385 cat <<\_ASBOX
ac1cb8d3
VS
13386## ----------------------------------------- ##
13387## Report this to wx-dev@lists.wxwidgets.org ##
13388## ----------------------------------------- ##
a848cd7e
SC
13389_ASBOX
13390 ) |
13391 sed "s/^/$as_me: WARNING: /" >&2
13392 ;;
13393esac
13394echo "$as_me:$LINENO: checking for $ac_header" >&5
13395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13396if eval "test \"\${$as_ac_Header+set}\" = set"; then
13397 echo $ECHO_N "(cached) $ECHO_C" >&6
13398else
ac1cb8d3 13399 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13400fi
13401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13403
13404fi
13405if test `eval echo '${'$as_ac_Header'}'` = yes; then
13406 cat >>confdefs.h <<_ACEOF
13407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13408_ACEOF
13409
13410fi
13411
13412done
13413
13414
13415if test "$ac_cv_header_wchar_h" != "yes"; then
13416
13417for ac_header in wcstr.h
13418do
13419as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13420if eval "test \"\${$as_ac_Header+set}\" = set"; then
13421 echo "$as_me:$LINENO: checking for $ac_header" >&5
13422echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13423if eval "test \"\${$as_ac_Header+set}\" = set"; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13425fi
13426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13428else
13429 # Is the header compilable?
13430echo "$as_me:$LINENO: checking $ac_header usability" >&5
13431echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13432cat >conftest.$ac_ext <<_ACEOF
13433/* confdefs.h. */
13434_ACEOF
13435cat confdefs.h >>conftest.$ac_ext
13436cat >>conftest.$ac_ext <<_ACEOF
13437/* end confdefs.h. */
13438$ac_includes_default
13439#include <$ac_header>
13440_ACEOF
13441rm -f conftest.$ac_objext
13442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13443 (eval $ac_compile) 2>conftest.er1
a848cd7e 13444 ac_status=$?
ac1cb8d3
VS
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
a848cd7e
SC
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
7714864e 13450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13452 (eval $ac_try) 2>&5
13453 ac_status=$?
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); }; } &&
13456 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13459 ac_status=$?
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; }; then
13462 ac_header_compiler=yes
13463else
13464 echo "$as_me: failed program was:" >&5
13465sed 's/^/| /' conftest.$ac_ext >&5
13466
13467ac_header_compiler=no
13468fi
ac1cb8d3 13469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13470echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13471echo "${ECHO_T}$ac_header_compiler" >&6
13472
13473# Is the header present?
13474echo "$as_me:$LINENO: checking $ac_header presence" >&5
13475echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13476cat >conftest.$ac_ext <<_ACEOF
13477/* confdefs.h. */
13478_ACEOF
13479cat confdefs.h >>conftest.$ac_ext
13480cat >>conftest.$ac_ext <<_ACEOF
13481/* end confdefs.h. */
13482#include <$ac_header>
13483_ACEOF
13484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13486 ac_status=$?
13487 grep -v '^ *+' conftest.er1 >conftest.err
13488 rm -f conftest.er1
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } >/dev/null; then
13492 if test -s conftest.err; then
13493 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13495 else
13496 ac_cpp_err=
13497 fi
13498else
13499 ac_cpp_err=yes
13500fi
13501if test -z "$ac_cpp_err"; then
13502 ac_header_preproc=yes
13503else
13504 echo "$as_me: failed program was:" >&5
13505sed 's/^/| /' conftest.$ac_ext >&5
13506
13507 ac_header_preproc=no
13508fi
13509rm -f conftest.err conftest.$ac_ext
13510echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13511echo "${ECHO_T}$ac_header_preproc" >&6
13512
13513# So? What about this header?
ac1cb8d3
VS
13514case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13515 yes:no: )
a848cd7e
SC
13516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13517echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13519echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13520 ac_header_preproc=yes
a848cd7e 13521 ;;
ac1cb8d3 13522 no:yes:* )
a848cd7e
SC
13523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13524echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13526echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13528echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13530echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13532echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13534echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13535 (
13536 cat <<\_ASBOX
ac1cb8d3
VS
13537## ----------------------------------------- ##
13538## Report this to wx-dev@lists.wxwidgets.org ##
13539## ----------------------------------------- ##
a848cd7e
SC
13540_ASBOX
13541 ) |
13542 sed "s/^/$as_me: WARNING: /" >&2
13543 ;;
13544esac
13545echo "$as_me:$LINENO: checking for $ac_header" >&5
13546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13547if eval "test \"\${$as_ac_Header+set}\" = set"; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13549else
ac1cb8d3 13550 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13551fi
13552echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13553echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13554
13555fi
13556if test `eval echo '${'$as_ac_Header'}'` = yes; then
13557 cat >>confdefs.h <<_ACEOF
13558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13559_ACEOF
13560
13561fi
13562
13563done
13564
13565fi
13566
13567
13568for ac_header in fnmatch.h
13569do
13570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13571if eval "test \"\${$as_ac_Header+set}\" = set"; then
13572 echo "$as_me:$LINENO: checking for $ac_header" >&5
13573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13574if eval "test \"\${$as_ac_Header+set}\" = set"; then
13575 echo $ECHO_N "(cached) $ECHO_C" >&6
13576fi
13577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13579else
13580 # Is the header compilable?
13581echo "$as_me:$LINENO: checking $ac_header usability" >&5
13582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13583cat >conftest.$ac_ext <<_ACEOF
13584/* confdefs.h. */
13585_ACEOF
13586cat confdefs.h >>conftest.$ac_ext
13587cat >>conftest.$ac_ext <<_ACEOF
13588/* end confdefs.h. */
13589$ac_includes_default
13590#include <$ac_header>
13591_ACEOF
13592rm -f conftest.$ac_objext
13593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13594 (eval $ac_compile) 2>conftest.er1
a848cd7e 13595 ac_status=$?
ac1cb8d3
VS
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
a848cd7e
SC
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } &&
7714864e 13601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603 (eval $ac_try) 2>&5
13604 ac_status=$?
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; } &&
13607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609 (eval $ac_try) 2>&5
13610 ac_status=$?
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 ac_header_compiler=yes
13614else
13615 echo "$as_me: failed program was:" >&5
13616sed 's/^/| /' conftest.$ac_ext >&5
13617
13618ac_header_compiler=no
13619fi
ac1cb8d3 13620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13622echo "${ECHO_T}$ac_header_compiler" >&6
13623
13624# Is the header present?
13625echo "$as_me:$LINENO: checking $ac_header presence" >&5
13626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13627cat >conftest.$ac_ext <<_ACEOF
13628/* confdefs.h. */
13629_ACEOF
13630cat confdefs.h >>conftest.$ac_ext
13631cat >>conftest.$ac_ext <<_ACEOF
13632/* end confdefs.h. */
13633#include <$ac_header>
13634_ACEOF
13635if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13637 ac_status=$?
13638 grep -v '^ *+' conftest.er1 >conftest.err
13639 rm -f conftest.er1
13640 cat conftest.err >&5
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); } >/dev/null; then
13643 if test -s conftest.err; then
13644 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13646 else
13647 ac_cpp_err=
13648 fi
13649else
13650 ac_cpp_err=yes
13651fi
13652if test -z "$ac_cpp_err"; then
13653 ac_header_preproc=yes
13654else
13655 echo "$as_me: failed program was:" >&5
13656sed 's/^/| /' conftest.$ac_ext >&5
13657
13658 ac_header_preproc=no
13659fi
13660rm -f conftest.err conftest.$ac_ext
13661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13662echo "${ECHO_T}$ac_header_preproc" >&6
13663
13664# So? What about this header?
ac1cb8d3
VS
13665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13666 yes:no: )
a848cd7e
SC
13667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13670echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13671 ac_header_preproc=yes
a848cd7e 13672 ;;
ac1cb8d3 13673 no:yes:* )
a848cd7e
SC
13674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13675echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13677echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13679echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13681echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13683echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13685echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13686 (
13687 cat <<\_ASBOX
ac1cb8d3
VS
13688## ----------------------------------------- ##
13689## Report this to wx-dev@lists.wxwidgets.org ##
13690## ----------------------------------------- ##
a848cd7e
SC
13691_ASBOX
13692 ) |
13693 sed "s/^/$as_me: WARNING: /" >&2
13694 ;;
13695esac
13696echo "$as_me:$LINENO: checking for $ac_header" >&5
13697echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13698if eval "test \"\${$as_ac_Header+set}\" = set"; then
13699 echo $ECHO_N "(cached) $ECHO_C" >&6
13700else
ac1cb8d3 13701 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13702fi
13703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13705
13706fi
13707if test `eval echo '${'$as_ac_Header'}'` = yes; then
13708 cat >>confdefs.h <<_ACEOF
13709#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13710_ACEOF
13711
13712fi
13713
13714done
13715
13716
13717if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13718
13719for ac_func in fnmatch
13720do
13721as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13722echo "$as_me:$LINENO: checking for $ac_func" >&5
13723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13724if eval "test \"\${$as_ac_var+set}\" = set"; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13726else
13727 cat >conftest.$ac_ext <<_ACEOF
13728/* confdefs.h. */
13729_ACEOF
13730cat confdefs.h >>conftest.$ac_ext
13731cat >>conftest.$ac_ext <<_ACEOF
13732/* end confdefs.h. */
ac1cb8d3
VS
13733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13735#define $ac_func innocuous_$ac_func
13736
a848cd7e
SC
13737/* System header to define __stub macros and hopefully few prototypes,
13738 which can conflict with char $ac_func (); below.
13739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13740 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13741
a848cd7e
SC
13742#ifdef __STDC__
13743# include <limits.h>
13744#else
13745# include <assert.h>
13746#endif
ac1cb8d3
VS
13747
13748#undef $ac_func
13749
a848cd7e
SC
13750/* Override any gcc2 internal prototype to avoid an error. */
13751#ifdef __cplusplus
13752extern "C"
13753{
13754#endif
13755/* We use char because int might match the return type of a gcc2
13756 builtin and then its argument prototype would still apply. */
13757char $ac_func ();
13758/* The GNU C library defines this for functions which it implements
13759 to always fail with ENOSYS. Some functions are actually named
13760 something starting with __ and the normal name is an alias. */
13761#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13762choke me
13763#else
13764char (*f) () = $ac_func;
13765#endif
13766#ifdef __cplusplus
13767}
13768#endif
13769
13770int
13771main ()
13772{
13773return f != $ac_func;
13774 ;
13775 return 0;
13776}
13777_ACEOF
13778rm -f conftest.$ac_objext conftest$ac_exeext
13779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13780 (eval $ac_link) 2>conftest.er1
a848cd7e 13781 ac_status=$?
ac1cb8d3
VS
13782 grep -v '^ *+' conftest.er1 >conftest.err
13783 rm -f conftest.er1
13784 cat conftest.err >&5
a848cd7e
SC
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); } &&
7714864e 13787 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; } &&
13793 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13795 (eval $ac_try) 2>&5
13796 ac_status=$?
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 eval "$as_ac_var=yes"
13800else
13801 echo "$as_me: failed program was:" >&5
13802sed 's/^/| /' conftest.$ac_ext >&5
13803
13804eval "$as_ac_var=no"
13805fi
ac1cb8d3
VS
13806rm -f conftest.err conftest.$ac_objext \
13807 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
13808fi
13809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13810echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13811if test `eval echo '${'$as_ac_var'}'` = yes; then
13812 cat >>confdefs.h <<_ACEOF
13813#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13814_ACEOF
13815
13816fi
13817done
13818
13819fi
13820
13821
13822for ac_header in langinfo.h
13823do
13824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13825if eval "test \"\${$as_ac_Header+set}\" = set"; then
13826 echo "$as_me:$LINENO: checking for $ac_header" >&5
13827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13828if eval "test \"\${$as_ac_Header+set}\" = set"; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830fi
13831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13833else
13834 # Is the header compilable?
13835echo "$as_me:$LINENO: checking $ac_header usability" >&5
13836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13837cat >conftest.$ac_ext <<_ACEOF
13838/* confdefs.h. */
13839_ACEOF
13840cat confdefs.h >>conftest.$ac_ext
13841cat >>conftest.$ac_ext <<_ACEOF
13842/* end confdefs.h. */
13843$ac_includes_default
13844#include <$ac_header>
13845_ACEOF
13846rm -f conftest.$ac_objext
13847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13848 (eval $ac_compile) 2>conftest.er1
a848cd7e 13849 ac_status=$?
ac1cb8d3
VS
13850 grep -v '^ *+' conftest.er1 >conftest.err
13851 rm -f conftest.er1
13852 cat conftest.err >&5
a848cd7e
SC
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); } &&
7714864e 13855 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; } &&
13861 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; }; then
13867 ac_header_compiler=yes
13868else
13869 echo "$as_me: failed program was:" >&5
13870sed 's/^/| /' conftest.$ac_ext >&5
13871
13872ac_header_compiler=no
13873fi
ac1cb8d3 13874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13876echo "${ECHO_T}$ac_header_compiler" >&6
13877
13878# Is the header present?
13879echo "$as_me:$LINENO: checking $ac_header presence" >&5
13880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13881cat >conftest.$ac_ext <<_ACEOF
13882/* confdefs.h. */
13883_ACEOF
13884cat confdefs.h >>conftest.$ac_ext
13885cat >>conftest.$ac_ext <<_ACEOF
13886/* end confdefs.h. */
13887#include <$ac_header>
13888_ACEOF
13889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13891 ac_status=$?
13892 grep -v '^ *+' conftest.er1 >conftest.err
13893 rm -f conftest.er1
13894 cat conftest.err >&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); } >/dev/null; then
13897 if test -s conftest.err; then
13898 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13900 else
13901 ac_cpp_err=
13902 fi
13903else
13904 ac_cpp_err=yes
13905fi
13906if test -z "$ac_cpp_err"; then
13907 ac_header_preproc=yes
13908else
13909 echo "$as_me: failed program was:" >&5
13910sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 ac_header_preproc=no
13913fi
13914rm -f conftest.err conftest.$ac_ext
13915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13916echo "${ECHO_T}$ac_header_preproc" >&6
13917
13918# So? What about this header?
ac1cb8d3
VS
13919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13920 yes:no: )
a848cd7e
SC
13921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13925 ac_header_preproc=yes
a848cd7e 13926 ;;
ac1cb8d3 13927 no:yes:* )
a848cd7e
SC
13928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13935echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13940 (
13941 cat <<\_ASBOX
ac1cb8d3
VS
13942## ----------------------------------------- ##
13943## Report this to wx-dev@lists.wxwidgets.org ##
13944## ----------------------------------------- ##
a848cd7e
SC
13945_ASBOX
13946 ) |
13947 sed "s/^/$as_me: WARNING: /" >&2
13948 ;;
13949esac
13950echo "$as_me:$LINENO: checking for $ac_header" >&5
13951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13952if eval "test \"\${$as_ac_Header+set}\" = set"; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13954else
ac1cb8d3 13955 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13956fi
13957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13959
13960fi
13961if test `eval echo '${'$as_ac_Header'}'` = yes; then
13962 cat >>confdefs.h <<_ACEOF
13963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13964_ACEOF
13965
13966fi
13967
13968done
13969
13970
13971case "${host}" in
13972 *-pc-os2_emx | *-pc-os2-emx )
13973 if test $ac_cv_header_langinfo_h = "yes"; then
13974 LIBS="$LIBS -lintl"
13975 fi
13976 ;;
13977esac
13978
13979if test "$wxUSE_GUI" = "yes"; then
13980 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
13981
13982for ac_header in X11/Xlib.h
13983do
13984as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13985if eval "test \"\${$as_ac_Header+set}\" = set"; then
13986 echo "$as_me:$LINENO: checking for $ac_header" >&5
13987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13988if eval "test \"\${$as_ac_Header+set}\" = set"; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13990fi
13991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13993else
13994 # Is the header compilable?
13995echo "$as_me:$LINENO: checking $ac_header usability" >&5
13996echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13997cat >conftest.$ac_ext <<_ACEOF
13998/* confdefs.h. */
13999_ACEOF
14000cat confdefs.h >>conftest.$ac_ext
14001cat >>conftest.$ac_ext <<_ACEOF
14002/* end confdefs.h. */
14003$ac_includes_default
14004#include <$ac_header>
14005_ACEOF
14006rm -f conftest.$ac_objext
14007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14008 (eval $ac_compile) 2>conftest.er1
a848cd7e 14009 ac_status=$?
ac1cb8d3
VS
14010 grep -v '^ *+' conftest.er1 >conftest.err
14011 rm -f conftest.er1
14012 cat conftest.err >&5
a848cd7e
SC
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
7714864e 14015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14017 (eval $ac_try) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); }; } &&
14021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 ac_header_compiler=yes
14028else
14029 echo "$as_me: failed program was:" >&5
14030sed 's/^/| /' conftest.$ac_ext >&5
14031
14032ac_header_compiler=no
14033fi
ac1cb8d3 14034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14035echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14036echo "${ECHO_T}$ac_header_compiler" >&6
14037
14038# Is the header present?
14039echo "$as_me:$LINENO: checking $ac_header presence" >&5
14040echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14041cat >conftest.$ac_ext <<_ACEOF
14042/* confdefs.h. */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
14046/* end confdefs.h. */
14047#include <$ac_header>
14048_ACEOF
14049if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14050 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14051 ac_status=$?
14052 grep -v '^ *+' conftest.er1 >conftest.err
14053 rm -f conftest.er1
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } >/dev/null; then
14057 if test -s conftest.err; then
14058 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14059 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14060 else
14061 ac_cpp_err=
14062 fi
14063else
14064 ac_cpp_err=yes
14065fi
14066if test -z "$ac_cpp_err"; then
14067 ac_header_preproc=yes
14068else
14069 echo "$as_me: failed program was:" >&5
14070sed 's/^/| /' conftest.$ac_ext >&5
14071
14072 ac_header_preproc=no
14073fi
14074rm -f conftest.err conftest.$ac_ext
14075echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14076echo "${ECHO_T}$ac_header_preproc" >&6
14077
14078# So? What about this header?
ac1cb8d3
VS
14079case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14080 yes:no: )
a848cd7e
SC
14081 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14082echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14083 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14084echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14085 ac_header_preproc=yes
a848cd7e 14086 ;;
ac1cb8d3 14087 no:yes:* )
a848cd7e
SC
14088 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14089echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14090 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14091echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14093echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14095echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14097echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14099echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14100 (
14101 cat <<\_ASBOX
ac1cb8d3
VS
14102## ----------------------------------------- ##
14103## Report this to wx-dev@lists.wxwidgets.org ##
14104## ----------------------------------------- ##
a848cd7e
SC
14105_ASBOX
14106 ) |
14107 sed "s/^/$as_me: WARNING: /" >&2
14108 ;;
14109esac
14110echo "$as_me:$LINENO: checking for $ac_header" >&5
14111echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14112if eval "test \"\${$as_ac_Header+set}\" = set"; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14114else
ac1cb8d3 14115 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14116fi
14117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14119
14120fi
14121if test `eval echo '${'$as_ac_Header'}'` = yes; then
14122 cat >>confdefs.h <<_ACEOF
14123#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14124_ACEOF
14125
14126fi
14127
14128done
14129
14130
14131for ac_header in X11/XKBlib.h
14132do
14133as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14134echo "$as_me:$LINENO: checking for $ac_header" >&5
14135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14136if eval "test \"\${$as_ac_Header+set}\" = set"; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138else
14139 cat >conftest.$ac_ext <<_ACEOF
14140/* confdefs.h. */
14141_ACEOF
14142cat confdefs.h >>conftest.$ac_ext
14143cat >>conftest.$ac_ext <<_ACEOF
14144/* end confdefs.h. */
14145
14146 #if HAVE_X11_XLIB_H
14147 #include <X11/Xlib.h>
14148 #endif
14149
14150
14151#include <$ac_header>
14152_ACEOF
14153rm -f conftest.$ac_objext
14154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14155 (eval $ac_compile) 2>conftest.er1
a848cd7e 14156 ac_status=$?
ac1cb8d3
VS
14157 grep -v '^ *+' conftest.er1 >conftest.err
14158 rm -f conftest.er1
14159 cat conftest.err >&5
a848cd7e
SC
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
7714864e 14162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; } &&
14168 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14170 (eval $ac_try) 2>&5
14171 ac_status=$?
14172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173 (exit $ac_status); }; }; then
14174 eval "$as_ac_Header=yes"
14175else
14176 echo "$as_me: failed program was:" >&5
14177sed 's/^/| /' conftest.$ac_ext >&5
14178
14179eval "$as_ac_Header=no"
14180fi
ac1cb8d3 14181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14182fi
14183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14185if test `eval echo '${'$as_ac_Header'}'` = yes; then
14186 cat >>confdefs.h <<_ACEOF
14187#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14188_ACEOF
14189
14190fi
14191
14192done
14193
14194 fi
14195fi
14196
14197
14198echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14199echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14200if test "${ac_cv_c_const+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14202else
14203 cat >conftest.$ac_ext <<_ACEOF
14204/* confdefs.h. */
14205_ACEOF
14206cat confdefs.h >>conftest.$ac_ext
14207cat >>conftest.$ac_ext <<_ACEOF
14208/* end confdefs.h. */
14209
14210int
14211main ()
14212{
14213/* FIXME: Include the comments suggested by Paul. */
14214#ifndef __cplusplus
14215 /* Ultrix mips cc rejects this. */
14216 typedef int charset[2];
14217 const charset x;
14218 /* SunOS 4.1.1 cc rejects this. */
14219 char const *const *ccp;
14220 char **p;
14221 /* NEC SVR4.0.2 mips cc rejects this. */
14222 struct point {int x, y;};
14223 static struct point const zero = {0,0};
14224 /* AIX XL C 1.02.0.0 rejects this.
14225 It does not let you subtract one const X* pointer from another in
14226 an arm of an if-expression whose if-part is not a constant
14227 expression */
14228 const char *g = "string";
14229 ccp = &g + (g ? g-g : 0);
14230 /* HPUX 7.0 cc rejects these. */
14231 ++ccp;
14232 p = (char**) ccp;
14233 ccp = (char const *const *) p;
14234 { /* SCO 3.2v4 cc rejects this. */
14235 char *t;
14236 char const *s = 0 ? (char *) 0 : (char const *) 0;
14237
14238 *t++ = 0;
14239 }
14240 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14241 int x[] = {25, 17};
14242 const int *foo = &x[0];
14243 ++foo;
14244 }
14245 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14246 typedef const int *iptr;
14247 iptr p = 0;
14248 ++p;
14249 }
14250 { /* AIX XL C 1.02.0.0 rejects this saying
14251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14252 struct s { int j; const int *ap[3]; };
14253 struct s *b; b->j = 5;
14254 }
14255 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14256 const int foo = 10;
14257 }
14258#endif
14259
14260 ;
14261 return 0;
14262}
14263_ACEOF
14264rm -f conftest.$ac_objext
14265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14266 (eval $ac_compile) 2>conftest.er1
a848cd7e 14267 ac_status=$?
ac1cb8d3
VS
14268 grep -v '^ *+' conftest.er1 >conftest.err
14269 rm -f conftest.er1
14270 cat conftest.err >&5
a848cd7e
SC
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } &&
7714864e 14273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275 (eval $ac_try) 2>&5
14276 ac_status=$?
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; } &&
14279 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14285 ac_cv_c_const=yes
14286else
14287 echo "$as_me: failed program was:" >&5
14288sed 's/^/| /' conftest.$ac_ext >&5
14289
14290ac_cv_c_const=no
14291fi
ac1cb8d3 14292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14293fi
14294echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14295echo "${ECHO_T}$ac_cv_c_const" >&6
14296if test $ac_cv_c_const = no; then
14297
14298cat >>confdefs.h <<\_ACEOF
14299#define const
14300_ACEOF
14301
14302fi
14303
14304echo "$as_me:$LINENO: checking for inline" >&5
14305echo $ECHO_N "checking for inline... $ECHO_C" >&6
14306if test "${ac_cv_c_inline+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14308else
14309 ac_cv_c_inline=no
14310for ac_kw in inline __inline__ __inline; do
14311 cat >conftest.$ac_ext <<_ACEOF
14312/* confdefs.h. */
14313_ACEOF
14314cat confdefs.h >>conftest.$ac_ext
14315cat >>conftest.$ac_ext <<_ACEOF
14316/* end confdefs.h. */
14317#ifndef __cplusplus
14318typedef int foo_t;
14319static $ac_kw foo_t static_foo () {return 0; }
14320$ac_kw foo_t foo () {return 0; }
14321#endif
14322
14323_ACEOF
14324rm -f conftest.$ac_objext
14325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14326 (eval $ac_compile) 2>conftest.er1
a848cd7e 14327 ac_status=$?
ac1cb8d3
VS
14328 grep -v '^ *+' conftest.er1 >conftest.err
14329 rm -f conftest.er1
14330 cat conftest.err >&5
a848cd7e
SC
14331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332 (exit $ac_status); } &&
7714864e 14333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; } &&
14339 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14342 ac_status=$?
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; }; then
14345 ac_cv_c_inline=$ac_kw; break
14346else
14347 echo "$as_me: failed program was:" >&5
14348sed 's/^/| /' conftest.$ac_ext >&5
14349
14350fi
ac1cb8d3 14351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14352done
14353
14354fi
14355echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14356echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14357
14358
a848cd7e
SC
14359case $ac_cv_c_inline in
14360 inline | yes) ;;
ac1cb8d3
VS
14361 *)
14362 case $ac_cv_c_inline in
14363 no) ac_val=;;
14364 *) ac_val=$ac_cv_c_inline;;
14365 esac
14366 cat >>confdefs.h <<_ACEOF
14367#ifndef __cplusplus
14368#define inline $ac_val
14369#endif
de59c161 14370_ACEOF
ac1cb8d3 14371 ;;
a848cd7e
SC
14372esac
14373
14374
14375echo "$as_me:$LINENO: checking for char" >&5
14376echo $ECHO_N "checking for char... $ECHO_C" >&6
14377if test "${ac_cv_type_char+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14379else
14380 cat >conftest.$ac_ext <<_ACEOF
14381/* confdefs.h. */
14382_ACEOF
14383cat confdefs.h >>conftest.$ac_ext
14384cat >>conftest.$ac_ext <<_ACEOF
14385/* end confdefs.h. */
14386$ac_includes_default
14387int
14388main ()
14389{
14390if ((char *) 0)
14391 return 0;
14392if (sizeof (char))
14393 return 0;
14394 ;
14395 return 0;
14396}
14397_ACEOF
14398rm -f conftest.$ac_objext
14399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14400 (eval $ac_compile) 2>conftest.er1
a848cd7e 14401 ac_status=$?
ac1cb8d3
VS
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
a848cd7e
SC
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } &&
7714864e 14407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14410 ac_status=$?
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; } &&
14413 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415 (eval $ac_try) 2>&5
14416 ac_status=$?
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }; then
14419 ac_cv_type_char=yes
14420else
14421 echo "$as_me: failed program was:" >&5
14422sed 's/^/| /' conftest.$ac_ext >&5
14423
14424ac_cv_type_char=no
14425fi
ac1cb8d3 14426rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14427fi
14428echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14429echo "${ECHO_T}$ac_cv_type_char" >&6
14430
14431echo "$as_me:$LINENO: checking size of char" >&5
14432echo $ECHO_N "checking size of char... $ECHO_C" >&6
14433if test "${ac_cv_sizeof_char+set}" = set; then
14434 echo $ECHO_N "(cached) $ECHO_C" >&6
14435else
14436 if test "$ac_cv_type_char" = yes; then
14437 # The cast to unsigned long works around a bug in the HP C Compiler
14438 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14439 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14440 # This bug is HP SR number 8606223364.
14441 if test "$cross_compiling" = yes; then
14442 # Depending upon the size, compute the lo and hi bounds.
14443cat >conftest.$ac_ext <<_ACEOF
14444/* confdefs.h. */
14445_ACEOF
14446cat confdefs.h >>conftest.$ac_ext
14447cat >>conftest.$ac_ext <<_ACEOF
14448/* end confdefs.h. */
14449$ac_includes_default
14450int
14451main ()
14452{
14453static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14454test_array [0] = 0
14455
14456 ;
14457 return 0;
14458}
14459_ACEOF
14460rm -f conftest.$ac_objext
14461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14462 (eval $ac_compile) 2>conftest.er1
a848cd7e 14463 ac_status=$?
ac1cb8d3
VS
14464 grep -v '^ *+' conftest.er1 >conftest.err
14465 rm -f conftest.er1
14466 cat conftest.err >&5
a848cd7e
SC
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } &&
7714864e 14469 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471 (eval $ac_try) 2>&5
14472 ac_status=$?
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); }; } &&
14475 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477 (eval $ac_try) 2>&5
14478 ac_status=$?
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }; }; then
14481 ac_lo=0 ac_mid=0
14482 while :; do
14483 cat >conftest.$ac_ext <<_ACEOF
14484/* confdefs.h. */
14485_ACEOF
14486cat confdefs.h >>conftest.$ac_ext
14487cat >>conftest.$ac_ext <<_ACEOF
14488/* end confdefs.h. */
14489$ac_includes_default
14490int
14491main ()
14492{
14493static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14494test_array [0] = 0
14495
14496 ;
14497 return 0;
14498}
14499_ACEOF
14500rm -f conftest.$ac_objext
14501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14502 (eval $ac_compile) 2>conftest.er1
a848cd7e 14503 ac_status=$?
ac1cb8d3
VS
14504 grep -v '^ *+' conftest.er1 >conftest.err
14505 rm -f conftest.er1
14506 cat conftest.err >&5
a848cd7e
SC
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } &&
7714864e 14509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14511 (eval $ac_try) 2>&5
14512 ac_status=$?
14513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); }; } &&
14515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14517 (eval $ac_try) 2>&5
14518 ac_status=$?
14519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14520 (exit $ac_status); }; }; then
14521 ac_hi=$ac_mid; break
14522else
14523 echo "$as_me: failed program was:" >&5
14524sed 's/^/| /' conftest.$ac_ext >&5
14525
14526ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14527 if test $ac_lo -le $ac_mid; then
14528 ac_lo= ac_hi=
14529 break
14530 fi
14531 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14532fi
ac1cb8d3 14533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14534 done
14535else
14536 echo "$as_me: failed program was:" >&5
14537sed 's/^/| /' conftest.$ac_ext >&5
14538
14539cat >conftest.$ac_ext <<_ACEOF
14540/* confdefs.h. */
14541_ACEOF
14542cat confdefs.h >>conftest.$ac_ext
14543cat >>conftest.$ac_ext <<_ACEOF
14544/* end confdefs.h. */
14545$ac_includes_default
14546int
14547main ()
14548{
14549static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14550test_array [0] = 0
14551
14552 ;
14553 return 0;
14554}
14555_ACEOF
14556rm -f conftest.$ac_objext
14557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14558 (eval $ac_compile) 2>conftest.er1
a848cd7e 14559 ac_status=$?
ac1cb8d3
VS
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
a848cd7e
SC
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
7714864e 14565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14567 (eval $ac_try) 2>&5
14568 ac_status=$?
14569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570 (exit $ac_status); }; } &&
14571 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14573 (eval $ac_try) 2>&5
14574 ac_status=$?
14575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); }; }; then
14577 ac_hi=-1 ac_mid=-1
14578 while :; do
14579 cat >conftest.$ac_ext <<_ACEOF
14580/* confdefs.h. */
14581_ACEOF
14582cat confdefs.h >>conftest.$ac_ext
14583cat >>conftest.$ac_ext <<_ACEOF
14584/* end confdefs.h. */
14585$ac_includes_default
14586int
14587main ()
14588{
14589static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14590test_array [0] = 0
14591
14592 ;
14593 return 0;
14594}
14595_ACEOF
14596rm -f conftest.$ac_objext
14597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14598 (eval $ac_compile) 2>conftest.er1
a848cd7e 14599 ac_status=$?
ac1cb8d3
VS
14600 grep -v '^ *+' conftest.er1 >conftest.err
14601 rm -f conftest.er1
14602 cat conftest.err >&5
a848cd7e
SC
14603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14604 (exit $ac_status); } &&
7714864e 14605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14607 (eval $ac_try) 2>&5
14608 ac_status=$?
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); }; } &&
14611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14613 (eval $ac_try) 2>&5
14614 ac_status=$?
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); }; }; then
14617 ac_lo=$ac_mid; break
14618else
14619 echo "$as_me: failed program was:" >&5
14620sed 's/^/| /' conftest.$ac_ext >&5
14621
14622ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14623 if test $ac_mid -le $ac_hi; then
14624 ac_lo= ac_hi=
14625 break
14626 fi
14627 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14628fi
ac1cb8d3 14629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14630 done
14631else
14632 echo "$as_me: failed program was:" >&5
14633sed 's/^/| /' conftest.$ac_ext >&5
14634
14635ac_lo= ac_hi=
14636fi
ac1cb8d3 14637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14638fi
ac1cb8d3 14639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14640# Binary search between lo and hi bounds.
14641while test "x$ac_lo" != "x$ac_hi"; do
14642 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14643 cat >conftest.$ac_ext <<_ACEOF
14644/* confdefs.h. */
14645_ACEOF
14646cat confdefs.h >>conftest.$ac_ext
14647cat >>conftest.$ac_ext <<_ACEOF
14648/* end confdefs.h. */
14649$ac_includes_default
14650int
14651main ()
14652{
14653static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14654test_array [0] = 0
14655
14656 ;
14657 return 0;
14658}
14659_ACEOF
14660rm -f conftest.$ac_objext
14661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14662 (eval $ac_compile) 2>conftest.er1
a848cd7e 14663 ac_status=$?
ac1cb8d3
VS
14664 grep -v '^ *+' conftest.er1 >conftest.err
14665 rm -f conftest.er1
14666 cat conftest.err >&5
a848cd7e
SC
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
7714864e 14669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; } &&
14675 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 ac_hi=$ac_mid
14682else
14683 echo "$as_me: failed program was:" >&5
14684sed 's/^/| /' conftest.$ac_ext >&5
14685
14686ac_lo=`expr '(' $ac_mid ')' + 1`
14687fi
ac1cb8d3 14688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14689done
14690case $ac_lo in
14691?*) ac_cv_sizeof_char=$ac_lo;;
14692'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14693See \`config.log' for more details." >&5
14694echo "$as_me: error: cannot compute sizeof (char), 77
14695See \`config.log' for more details." >&2;}
14696 { (exit 1); exit 1; }; } ;;
14697esac
14698else
14699 if test "$cross_compiling" = yes; then
7714864e
RL
14700 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
14701echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
14702 { (exit 1); exit 1; }; }
14703else
14704 cat >conftest.$ac_ext <<_ACEOF
14705/* confdefs.h. */
14706_ACEOF
14707cat confdefs.h >>conftest.$ac_ext
14708cat >>conftest.$ac_ext <<_ACEOF
14709/* end confdefs.h. */
14710$ac_includes_default
14711long longval () { return (long) (sizeof (char)); }
14712unsigned long ulongval () { return (long) (sizeof (char)); }
14713#include <stdio.h>
14714#include <stdlib.h>
14715int
14716main ()
14717{
14718
14719 FILE *f = fopen ("conftest.val", "w");
14720 if (! f)
14721 exit (1);
14722 if (((long) (sizeof (char))) < 0)
14723 {
14724 long i = longval ();
14725 if (i != ((long) (sizeof (char))))
14726 exit (1);
14727 fprintf (f, "%ld\n", i);
14728 }
14729 else
14730 {
14731 unsigned long i = ulongval ();
14732 if (i != ((long) (sizeof (char))))
14733 exit (1);
14734 fprintf (f, "%lu\n", i);
14735 }
14736 exit (ferror (f) || fclose (f) != 0);
14737
14738 ;
14739 return 0;
14740}
14741_ACEOF
14742rm -f conftest$ac_exeext
14743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>&5
14745 ac_status=$?
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; }; then
14753 ac_cv_sizeof_char=`cat conftest.val`
14754else
14755 echo "$as_me: program exited with status $ac_status" >&5
14756echo "$as_me: failed program was:" >&5
14757sed 's/^/| /' conftest.$ac_ext >&5
14758
14759( exit $ac_status )
14760{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14761See \`config.log' for more details." >&5
14762echo "$as_me: error: cannot compute sizeof (char), 77
14763See \`config.log' for more details." >&2;}
14764 { (exit 1); exit 1; }; }
14765fi
ac1cb8d3 14766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14767fi
14768fi
14769rm -f conftest.val
14770else
14771 ac_cv_sizeof_char=0
14772fi
14773fi
14774echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14775echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14776cat >>confdefs.h <<_ACEOF
14777#define SIZEOF_CHAR $ac_cv_sizeof_char
14778_ACEOF
14779
14780
14781echo "$as_me:$LINENO: checking for short" >&5
14782echo $ECHO_N "checking for short... $ECHO_C" >&6
14783if test "${ac_cv_type_short+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14785else
14786 cat >conftest.$ac_ext <<_ACEOF
14787/* confdefs.h. */
14788_ACEOF
14789cat confdefs.h >>conftest.$ac_ext
14790cat >>conftest.$ac_ext <<_ACEOF
14791/* end confdefs.h. */
14792$ac_includes_default
14793int
14794main ()
14795{
14796if ((short *) 0)
14797 return 0;
14798if (sizeof (short))
14799 return 0;
14800 ;
14801 return 0;
14802}
14803_ACEOF
14804rm -f conftest.$ac_objext
14805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14806 (eval $ac_compile) 2>conftest.er1
a848cd7e 14807 ac_status=$?
ac1cb8d3
VS
14808 grep -v '^ *+' conftest.er1 >conftest.err
14809 rm -f conftest.er1
14810 cat conftest.err >&5
a848cd7e
SC
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); } &&
7714864e 14813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14815 (eval $ac_try) 2>&5
14816 ac_status=$?
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); }; } &&
14819 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14822 ac_status=$?
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; }; then
14825 ac_cv_type_short=yes
14826else
14827 echo "$as_me: failed program was:" >&5
14828sed 's/^/| /' conftest.$ac_ext >&5
14829
14830ac_cv_type_short=no
14831fi
ac1cb8d3 14832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14833fi
14834echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14835echo "${ECHO_T}$ac_cv_type_short" >&6
14836
14837echo "$as_me:$LINENO: checking size of short" >&5
14838echo $ECHO_N "checking size of short... $ECHO_C" >&6
14839if test "${ac_cv_sizeof_short+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841else
14842 if test "$ac_cv_type_short" = yes; then
14843 # The cast to unsigned long works around a bug in the HP C Compiler
14844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14846 # This bug is HP SR number 8606223364.
14847 if test "$cross_compiling" = yes; then
14848 # Depending upon the size, compute the lo and hi bounds.
14849cat >conftest.$ac_ext <<_ACEOF
14850/* confdefs.h. */
14851_ACEOF
14852cat confdefs.h >>conftest.$ac_ext
14853cat >>conftest.$ac_ext <<_ACEOF
14854/* end confdefs.h. */
14855$ac_includes_default
14856int
14857main ()
14858{
14859static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14860test_array [0] = 0
14861
14862 ;
14863 return 0;
14864}
14865_ACEOF
14866rm -f conftest.$ac_objext
14867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14868 (eval $ac_compile) 2>conftest.er1
a848cd7e 14869 ac_status=$?
ac1cb8d3
VS
14870 grep -v '^ *+' conftest.er1 >conftest.err
14871 rm -f conftest.er1
14872 cat conftest.err >&5
a848cd7e
SC
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } &&
7714864e 14875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14877 (eval $ac_try) 2>&5
14878 ac_status=$?
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); }; } &&
14881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14887 ac_lo=0 ac_mid=0
14888 while :; do
14889 cat >conftest.$ac_ext <<_ACEOF
14890/* confdefs.h. */
14891_ACEOF
14892cat confdefs.h >>conftest.$ac_ext
14893cat >>conftest.$ac_ext <<_ACEOF
14894/* end confdefs.h. */
14895$ac_includes_default
14896int
14897main ()
14898{
14899static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14900test_array [0] = 0
14901
14902 ;
14903 return 0;
14904}
14905_ACEOF
14906rm -f conftest.$ac_objext
14907if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14908 (eval $ac_compile) 2>conftest.er1
a848cd7e 14909 ac_status=$?
ac1cb8d3
VS
14910 grep -v '^ *+' conftest.er1 >conftest.err
14911 rm -f conftest.er1
14912 cat conftest.err >&5
a848cd7e
SC
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
7714864e 14915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14918 ac_status=$?
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; } &&
14921 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14923 (eval $ac_try) 2>&5
14924 ac_status=$?
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14927 ac_hi=$ac_mid; break
14928else
14929 echo "$as_me: failed program was:" >&5
14930sed 's/^/| /' conftest.$ac_ext >&5
14931
14932ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14933 if test $ac_lo -le $ac_mid; then
14934 ac_lo= ac_hi=
14935 break
14936 fi
14937 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14938fi
ac1cb8d3 14939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14940 done
14941else
14942 echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945cat >conftest.$ac_ext <<_ACEOF
14946/* confdefs.h. */
14947_ACEOF
14948cat confdefs.h >>conftest.$ac_ext
14949cat >>conftest.$ac_ext <<_ACEOF
14950/* end confdefs.h. */
14951$ac_includes_default
14952int
14953main ()
14954{
14955static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14956test_array [0] = 0
14957
14958 ;
14959 return 0;
14960}
14961_ACEOF
14962rm -f conftest.$ac_objext
14963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14964 (eval $ac_compile) 2>conftest.er1
a848cd7e 14965 ac_status=$?
ac1cb8d3
VS
14966 grep -v '^ *+' conftest.er1 >conftest.err
14967 rm -f conftest.er1
14968 cat conftest.err >&5
a848cd7e
SC
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
7714864e 14971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } &&
14977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 ac_hi=-1 ac_mid=-1
14984 while :; do
14985 cat >conftest.$ac_ext <<_ACEOF
14986/* confdefs.h. */
14987_ACEOF
14988cat confdefs.h >>conftest.$ac_ext
14989cat >>conftest.$ac_ext <<_ACEOF
14990/* end confdefs.h. */
14991$ac_includes_default
14992int
14993main ()
14994{
14995static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14996test_array [0] = 0
14997
14998 ;
14999 return 0;
15000}
15001_ACEOF
15002rm -f conftest.$ac_objext
15003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15004 (eval $ac_compile) 2>conftest.er1
a848cd7e 15005 ac_status=$?
ac1cb8d3
VS
15006 grep -v '^ *+' conftest.er1 >conftest.err
15007 rm -f conftest.er1
15008 cat conftest.err >&5
a848cd7e
SC
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
7714864e 15011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; } &&
15017 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15020 ac_status=$?
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }; then
15023 ac_lo=$ac_mid; break
15024else
15025 echo "$as_me: failed program was:" >&5
15026sed 's/^/| /' conftest.$ac_ext >&5
15027
15028ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15029 if test $ac_mid -le $ac_hi; then
15030 ac_lo= ac_hi=
15031 break
15032 fi
15033 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15034fi
ac1cb8d3 15035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15036 done
15037else
15038 echo "$as_me: failed program was:" >&5
15039sed 's/^/| /' conftest.$ac_ext >&5
15040
15041ac_lo= ac_hi=
15042fi
ac1cb8d3 15043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15044fi
ac1cb8d3 15045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15046# Binary search between lo and hi bounds.
15047while test "x$ac_lo" != "x$ac_hi"; do
15048 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15049 cat >conftest.$ac_ext <<_ACEOF
15050/* confdefs.h. */
15051_ACEOF
15052cat confdefs.h >>conftest.$ac_ext
15053cat >>conftest.$ac_ext <<_ACEOF
15054/* end confdefs.h. */
15055$ac_includes_default
15056int
15057main ()
15058{
15059static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15060test_array [0] = 0
15061
15062 ;
15063 return 0;
15064}
15065_ACEOF
15066rm -f conftest.$ac_objext
15067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15068 (eval $ac_compile) 2>conftest.er1
a848cd7e 15069 ac_status=$?
ac1cb8d3
VS
15070 grep -v '^ *+' conftest.er1 >conftest.err
15071 rm -f conftest.er1
15072 cat conftest.err >&5
a848cd7e
SC
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } &&
7714864e 15075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; } &&
15081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15084 ac_status=$?
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15087 ac_hi=$ac_mid
15088else
15089 echo "$as_me: failed program was:" >&5
15090sed 's/^/| /' conftest.$ac_ext >&5
15091
15092ac_lo=`expr '(' $ac_mid ')' + 1`
15093fi
ac1cb8d3 15094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15095done
15096case $ac_lo in
15097?*) ac_cv_sizeof_short=$ac_lo;;
15098'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15099See \`config.log' for more details." >&5
15100echo "$as_me: error: cannot compute sizeof (short), 77
15101See \`config.log' for more details." >&2;}
15102 { (exit 1); exit 1; }; } ;;
15103esac
15104else
15105 if test "$cross_compiling" = yes; then
7714864e
RL
15106 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15107echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15108 { (exit 1); exit 1; }; }
15109else
15110 cat >conftest.$ac_ext <<_ACEOF
15111/* confdefs.h. */
15112_ACEOF
15113cat confdefs.h >>conftest.$ac_ext
15114cat >>conftest.$ac_ext <<_ACEOF
15115/* end confdefs.h. */
15116$ac_includes_default
15117long longval () { return (long) (sizeof (short)); }
15118unsigned long ulongval () { return (long) (sizeof (short)); }
15119#include <stdio.h>
15120#include <stdlib.h>
15121int
15122main ()
15123{
15124
15125 FILE *f = fopen ("conftest.val", "w");
15126 if (! f)
15127 exit (1);
15128 if (((long) (sizeof (short))) < 0)
15129 {
15130 long i = longval ();
15131 if (i != ((long) (sizeof (short))))
15132 exit (1);
15133 fprintf (f, "%ld\n", i);
15134 }
15135 else
15136 {
15137 unsigned long i = ulongval ();
15138 if (i != ((long) (sizeof (short))))
15139 exit (1);
15140 fprintf (f, "%lu\n", i);
15141 }
15142 exit (ferror (f) || fclose (f) != 0);
15143
15144 ;
15145 return 0;
15146}
15147_ACEOF
15148rm -f conftest$ac_exeext
15149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15150 (eval $ac_link) 2>&5
15151 ac_status=$?
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15155 (eval $ac_try) 2>&5
15156 ac_status=$?
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); }; }; then
15159 ac_cv_sizeof_short=`cat conftest.val`
15160else
15161 echo "$as_me: program exited with status $ac_status" >&5
15162echo "$as_me: failed program was:" >&5
15163sed 's/^/| /' conftest.$ac_ext >&5
15164
15165( exit $ac_status )
15166{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15167See \`config.log' for more details." >&5
15168echo "$as_me: error: cannot compute sizeof (short), 77
15169See \`config.log' for more details." >&2;}
15170 { (exit 1); exit 1; }; }
15171fi
ac1cb8d3 15172rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15173fi
15174fi
15175rm -f conftest.val
15176else
15177 ac_cv_sizeof_short=0
15178fi
15179fi
15180echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15181echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15182cat >>confdefs.h <<_ACEOF
15183#define SIZEOF_SHORT $ac_cv_sizeof_short
15184_ACEOF
15185
15186
15187echo "$as_me:$LINENO: checking for void *" >&5
15188echo $ECHO_N "checking for void *... $ECHO_C" >&6
15189if test "${ac_cv_type_void_p+set}" = set; then
15190 echo $ECHO_N "(cached) $ECHO_C" >&6
15191else
15192 cat >conftest.$ac_ext <<_ACEOF
15193/* confdefs.h. */
15194_ACEOF
15195cat confdefs.h >>conftest.$ac_ext
15196cat >>conftest.$ac_ext <<_ACEOF
15197/* end confdefs.h. */
15198$ac_includes_default
15199int
15200main ()
15201{
15202if ((void * *) 0)
15203 return 0;
15204if (sizeof (void *))
15205 return 0;
15206 ;
15207 return 0;
15208}
15209_ACEOF
15210rm -f conftest.$ac_objext
15211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15212 (eval $ac_compile) 2>conftest.er1
a848cd7e 15213 ac_status=$?
ac1cb8d3
VS
15214 grep -v '^ *+' conftest.er1 >conftest.err
15215 rm -f conftest.er1
15216 cat conftest.err >&5
a848cd7e
SC
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } &&
7714864e 15219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15221 (eval $ac_try) 2>&5
15222 ac_status=$?
15223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15224 (exit $ac_status); }; } &&
15225 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15227 (eval $ac_try) 2>&5
15228 ac_status=$?
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); }; }; then
15231 ac_cv_type_void_p=yes
15232else
15233 echo "$as_me: failed program was:" >&5
15234sed 's/^/| /' conftest.$ac_ext >&5
15235
15236ac_cv_type_void_p=no
15237fi
ac1cb8d3 15238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15239fi
15240echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15241echo "${ECHO_T}$ac_cv_type_void_p" >&6
15242
15243echo "$as_me:$LINENO: checking size of void *" >&5
15244echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15245if test "${ac_cv_sizeof_void_p+set}" = set; then
15246 echo $ECHO_N "(cached) $ECHO_C" >&6
15247else
15248 if test "$ac_cv_type_void_p" = yes; then
15249 # The cast to unsigned long works around a bug in the HP C Compiler
15250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15252 # This bug is HP SR number 8606223364.
15253 if test "$cross_compiling" = yes; then
15254 # Depending upon the size, compute the lo and hi bounds.
15255cat >conftest.$ac_ext <<_ACEOF
15256/* confdefs.h. */
15257_ACEOF
15258cat confdefs.h >>conftest.$ac_ext
15259cat >>conftest.$ac_ext <<_ACEOF
15260/* end confdefs.h. */
15261$ac_includes_default
15262int
15263main ()
15264{
15265static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15266test_array [0] = 0
15267
15268 ;
15269 return 0;
15270}
15271_ACEOF
15272rm -f conftest.$ac_objext
15273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15274 (eval $ac_compile) 2>conftest.er1
a848cd7e 15275 ac_status=$?
ac1cb8d3
VS
15276 grep -v '^ *+' conftest.er1 >conftest.err
15277 rm -f conftest.er1
15278 cat conftest.err >&5
a848cd7e
SC
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } &&
7714864e 15281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; } &&
15287 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; }; then
15293 ac_lo=0 ac_mid=0
15294 while :; do
15295 cat >conftest.$ac_ext <<_ACEOF
15296/* confdefs.h. */
15297_ACEOF
15298cat confdefs.h >>conftest.$ac_ext
15299cat >>conftest.$ac_ext <<_ACEOF
15300/* end confdefs.h. */
15301$ac_includes_default
15302int
15303main ()
15304{
15305static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15306test_array [0] = 0
15307
15308 ;
15309 return 0;
15310}
15311_ACEOF
15312rm -f conftest.$ac_objext
15313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15314 (eval $ac_compile) 2>conftest.er1
a848cd7e 15315 ac_status=$?
ac1cb8d3
VS
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
a848cd7e
SC
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
7714864e 15321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; } &&
15327 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15330 ac_status=$?
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_hi=$ac_mid; break
15334else
15335 echo "$as_me: failed program was:" >&5
15336sed 's/^/| /' conftest.$ac_ext >&5
15337
15338ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15339 if test $ac_lo -le $ac_mid; then
15340 ac_lo= ac_hi=
15341 break
15342 fi
15343 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15344fi
ac1cb8d3 15345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15346 done
15347else
15348 echo "$as_me: failed program was:" >&5
15349sed 's/^/| /' conftest.$ac_ext >&5
15350
15351cat >conftest.$ac_ext <<_ACEOF
15352/* confdefs.h. */
15353_ACEOF
15354cat confdefs.h >>conftest.$ac_ext
15355cat >>conftest.$ac_ext <<_ACEOF
15356/* end confdefs.h. */
15357$ac_includes_default
15358int
15359main ()
15360{
15361static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15362test_array [0] = 0
15363
15364 ;
15365 return 0;
15366}
15367_ACEOF
15368rm -f conftest.$ac_objext
15369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15370 (eval $ac_compile) 2>conftest.er1
a848cd7e 15371 ac_status=$?
ac1cb8d3
VS
15372 grep -v '^ *+' conftest.er1 >conftest.err
15373 rm -f conftest.er1
15374 cat conftest.err >&5
a848cd7e
SC
15375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376 (exit $ac_status); } &&
7714864e 15377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15379 (eval $ac_try) 2>&5
15380 ac_status=$?
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; } &&
15383 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15385 (eval $ac_try) 2>&5
15386 ac_status=$?
15387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15388 (exit $ac_status); }; }; then
15389 ac_hi=-1 ac_mid=-1
15390 while :; do
15391 cat >conftest.$ac_ext <<_ACEOF
15392/* confdefs.h. */
15393_ACEOF
15394cat confdefs.h >>conftest.$ac_ext
15395cat >>conftest.$ac_ext <<_ACEOF
15396/* end confdefs.h. */
15397$ac_includes_default
15398int
15399main ()
15400{
15401static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15402test_array [0] = 0
15403
15404 ;
15405 return 0;
15406}
15407_ACEOF
15408rm -f conftest.$ac_objext
15409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15410 (eval $ac_compile) 2>conftest.er1
a848cd7e 15411 ac_status=$?
ac1cb8d3
VS
15412 grep -v '^ *+' conftest.er1 >conftest.err
15413 rm -f conftest.er1
15414 cat conftest.err >&5
a848cd7e
SC
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } &&
7714864e 15417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15419 (eval $ac_try) 2>&5
15420 ac_status=$?
15421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422 (exit $ac_status); }; } &&
15423 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; }; then
15429 ac_lo=$ac_mid; break
15430else
15431 echo "$as_me: failed program was:" >&5
15432sed 's/^/| /' conftest.$ac_ext >&5
15433
15434ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15435 if test $ac_mid -le $ac_hi; then
15436 ac_lo= ac_hi=
15437 break
15438 fi
15439 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15440fi
ac1cb8d3 15441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15442 done
15443else
15444 echo "$as_me: failed program was:" >&5
15445sed 's/^/| /' conftest.$ac_ext >&5
15446
15447ac_lo= ac_hi=
15448fi
ac1cb8d3 15449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15450fi
ac1cb8d3 15451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15452# Binary search between lo and hi bounds.
15453while test "x$ac_lo" != "x$ac_hi"; do
15454 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15455 cat >conftest.$ac_ext <<_ACEOF
15456/* confdefs.h. */
15457_ACEOF
15458cat confdefs.h >>conftest.$ac_ext
15459cat >>conftest.$ac_ext <<_ACEOF
15460/* end confdefs.h. */
15461$ac_includes_default
15462int
15463main ()
15464{
15465static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15466test_array [0] = 0
15467
15468 ;
15469 return 0;
15470}
15471_ACEOF
15472rm -f conftest.$ac_objext
15473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15474 (eval $ac_compile) 2>conftest.er1
a848cd7e 15475 ac_status=$?
ac1cb8d3
VS
15476 grep -v '^ *+' conftest.er1 >conftest.err
15477 rm -f conftest.er1
15478 cat conftest.err >&5
a848cd7e
SC
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
7714864e 15481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15483 (eval $ac_try) 2>&5
15484 ac_status=$?
15485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15486 (exit $ac_status); }; } &&
15487 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15489 (eval $ac_try) 2>&5
15490 ac_status=$?
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); }; }; then
15493 ac_hi=$ac_mid
15494else
15495 echo "$as_me: failed program was:" >&5
15496sed 's/^/| /' conftest.$ac_ext >&5
15497
15498ac_lo=`expr '(' $ac_mid ')' + 1`
15499fi
ac1cb8d3 15500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15501done
15502case $ac_lo in
15503?*) ac_cv_sizeof_void_p=$ac_lo;;
15504'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15505See \`config.log' for more details." >&5
15506echo "$as_me: error: cannot compute sizeof (void *), 77
15507See \`config.log' for more details." >&2;}
15508 { (exit 1); exit 1; }; } ;;
15509esac
15510else
15511 if test "$cross_compiling" = yes; then
7714864e
RL
15512 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15513echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15514 { (exit 1); exit 1; }; }
15515else
15516 cat >conftest.$ac_ext <<_ACEOF
15517/* confdefs.h. */
15518_ACEOF
15519cat confdefs.h >>conftest.$ac_ext
15520cat >>conftest.$ac_ext <<_ACEOF
15521/* end confdefs.h. */
15522$ac_includes_default
15523long longval () { return (long) (sizeof (void *)); }
15524unsigned long ulongval () { return (long) (sizeof (void *)); }
15525#include <stdio.h>
15526#include <stdlib.h>
15527int
15528main ()
15529{
15530
15531 FILE *f = fopen ("conftest.val", "w");
15532 if (! f)
15533 exit (1);
15534 if (((long) (sizeof (void *))) < 0)
15535 {
15536 long i = longval ();
15537 if (i != ((long) (sizeof (void *))))
15538 exit (1);
15539 fprintf (f, "%ld\n", i);
15540 }
15541 else
15542 {
15543 unsigned long i = ulongval ();
15544 if (i != ((long) (sizeof (void *))))
15545 exit (1);
15546 fprintf (f, "%lu\n", i);
15547 }
15548 exit (ferror (f) || fclose (f) != 0);
15549
15550 ;
15551 return 0;
15552}
15553_ACEOF
15554rm -f conftest$ac_exeext
15555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15556 (eval $ac_link) 2>&5
15557 ac_status=$?
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15561 (eval $ac_try) 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 ac_cv_sizeof_void_p=`cat conftest.val`
15566else
15567 echo "$as_me: program exited with status $ac_status" >&5
15568echo "$as_me: failed program was:" >&5
15569sed 's/^/| /' conftest.$ac_ext >&5
15570
15571( exit $ac_status )
15572{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15573See \`config.log' for more details." >&5
15574echo "$as_me: error: cannot compute sizeof (void *), 77
15575See \`config.log' for more details." >&2;}
15576 { (exit 1); exit 1; }; }
15577fi
ac1cb8d3 15578rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15579fi
15580fi
15581rm -f conftest.val
15582else
15583 ac_cv_sizeof_void_p=0
15584fi
15585fi
15586echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15587echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15588cat >>confdefs.h <<_ACEOF
15589#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15590_ACEOF
15591
15592
15593echo "$as_me:$LINENO: checking for int" >&5
15594echo $ECHO_N "checking for int... $ECHO_C" >&6
15595if test "${ac_cv_type_int+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15597else
15598 cat >conftest.$ac_ext <<_ACEOF
15599/* confdefs.h. */
15600_ACEOF
15601cat confdefs.h >>conftest.$ac_ext
15602cat >>conftest.$ac_ext <<_ACEOF
15603/* end confdefs.h. */
15604$ac_includes_default
15605int
15606main ()
15607{
15608if ((int *) 0)
15609 return 0;
15610if (sizeof (int))
15611 return 0;
15612 ;
15613 return 0;
15614}
15615_ACEOF
15616rm -f conftest.$ac_objext
15617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15618 (eval $ac_compile) 2>conftest.er1
a848cd7e 15619 ac_status=$?
ac1cb8d3
VS
15620 grep -v '^ *+' conftest.er1 >conftest.err
15621 rm -f conftest.er1
15622 cat conftest.err >&5
a848cd7e
SC
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
7714864e 15625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15628 ac_status=$?
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15634 ac_status=$?
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15637 ac_cv_type_int=yes
15638else
15639 echo "$as_me: failed program was:" >&5
15640sed 's/^/| /' conftest.$ac_ext >&5
15641
15642ac_cv_type_int=no
15643fi
ac1cb8d3 15644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15645fi
15646echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15647echo "${ECHO_T}$ac_cv_type_int" >&6
15648
15649echo "$as_me:$LINENO: checking size of int" >&5
15650echo $ECHO_N "checking size of int... $ECHO_C" >&6
15651if test "${ac_cv_sizeof_int+set}" = set; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
15653else
15654 if test "$ac_cv_type_int" = yes; then
15655 # The cast to unsigned long works around a bug in the HP C Compiler
15656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15658 # This bug is HP SR number 8606223364.
15659 if test "$cross_compiling" = yes; then
15660 # Depending upon the size, compute the lo and hi bounds.
15661cat >conftest.$ac_ext <<_ACEOF
15662/* confdefs.h. */
15663_ACEOF
15664cat confdefs.h >>conftest.$ac_ext
15665cat >>conftest.$ac_ext <<_ACEOF
15666/* end confdefs.h. */
15667$ac_includes_default
15668int
15669main ()
15670{
15671static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15672test_array [0] = 0
15673
15674 ;
15675 return 0;
15676}
15677_ACEOF
15678rm -f conftest.$ac_objext
15679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15680 (eval $ac_compile) 2>conftest.er1
a848cd7e 15681 ac_status=$?
ac1cb8d3
VS
15682 grep -v '^ *+' conftest.er1 >conftest.err
15683 rm -f conftest.er1
15684 cat conftest.err >&5
a848cd7e
SC
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } &&
7714864e 15687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; } &&
15693 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15695 (eval $ac_try) 2>&5
15696 ac_status=$?
15697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15698 (exit $ac_status); }; }; then
15699 ac_lo=0 ac_mid=0
15700 while :; do
15701 cat >conftest.$ac_ext <<_ACEOF
15702/* confdefs.h. */
15703_ACEOF
15704cat confdefs.h >>conftest.$ac_ext
15705cat >>conftest.$ac_ext <<_ACEOF
15706/* end confdefs.h. */
15707$ac_includes_default
15708int
15709main ()
15710{
15711static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15712test_array [0] = 0
15713
15714 ;
15715 return 0;
15716}
15717_ACEOF
15718rm -f conftest.$ac_objext
15719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15720 (eval $ac_compile) 2>conftest.er1
a848cd7e 15721 ac_status=$?
ac1cb8d3
VS
15722 grep -v '^ *+' conftest.er1 >conftest.err
15723 rm -f conftest.er1
15724 cat conftest.err >&5
a848cd7e
SC
15725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15726 (exit $ac_status); } &&
7714864e 15727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15729 (eval $ac_try) 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; } &&
15733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; }; then
15739 ac_hi=$ac_mid; break
15740else
15741 echo "$as_me: failed program was:" >&5
15742sed 's/^/| /' conftest.$ac_ext >&5
15743
15744ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15745 if test $ac_lo -le $ac_mid; then
15746 ac_lo= ac_hi=
15747 break
15748 fi
15749 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15750fi
ac1cb8d3 15751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15752 done
15753else
15754 echo "$as_me: failed program was:" >&5
15755sed 's/^/| /' conftest.$ac_ext >&5
15756
15757cat >conftest.$ac_ext <<_ACEOF
15758/* confdefs.h. */
15759_ACEOF
15760cat confdefs.h >>conftest.$ac_ext
15761cat >>conftest.$ac_ext <<_ACEOF
15762/* end confdefs.h. */
15763$ac_includes_default
15764int
15765main ()
15766{
15767static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15768test_array [0] = 0
15769
15770 ;
15771 return 0;
15772}
15773_ACEOF
15774rm -f conftest.$ac_objext
15775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15776 (eval $ac_compile) 2>conftest.er1
a848cd7e 15777 ac_status=$?
ac1cb8d3
VS
15778 grep -v '^ *+' conftest.er1 >conftest.err
15779 rm -f conftest.er1
15780 cat conftest.err >&5
a848cd7e
SC
15781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782 (exit $ac_status); } &&
7714864e 15783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785 (eval $ac_try) 2>&5
15786 ac_status=$?
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15791 (eval $ac_try) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); }; }; then
15795 ac_hi=-1 ac_mid=-1
15796 while :; do
15797 cat >conftest.$ac_ext <<_ACEOF
15798/* confdefs.h. */
15799_ACEOF
15800cat confdefs.h >>conftest.$ac_ext
15801cat >>conftest.$ac_ext <<_ACEOF
15802/* end confdefs.h. */
15803$ac_includes_default
15804int
15805main ()
15806{
15807static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15808test_array [0] = 0
15809
15810 ;
15811 return 0;
15812}
15813_ACEOF
15814rm -f conftest.$ac_objext
15815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15816 (eval $ac_compile) 2>conftest.er1
a848cd7e 15817 ac_status=$?
ac1cb8d3
VS
15818 grep -v '^ *+' conftest.er1 >conftest.err
15819 rm -f conftest.er1
15820 cat conftest.err >&5
a848cd7e
SC
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); } &&
7714864e 15823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; } &&
15829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831 (eval $ac_try) 2>&5
15832 ac_status=$?
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); }; }; then
15835 ac_lo=$ac_mid; break
15836else
15837 echo "$as_me: failed program was:" >&5
15838sed 's/^/| /' conftest.$ac_ext >&5
15839
15840ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15841 if test $ac_mid -le $ac_hi; then
15842 ac_lo= ac_hi=
15843 break
15844 fi
15845 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15846fi
ac1cb8d3 15847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15848 done
15849else
15850 echo "$as_me: failed program was:" >&5
15851sed 's/^/| /' conftest.$ac_ext >&5
15852
15853ac_lo= ac_hi=
15854fi
ac1cb8d3 15855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15856fi
ac1cb8d3 15857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15858# Binary search between lo and hi bounds.
15859while test "x$ac_lo" != "x$ac_hi"; do
15860 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15861 cat >conftest.$ac_ext <<_ACEOF
15862/* confdefs.h. */
15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */
15867$ac_includes_default
15868int
15869main ()
15870{
15871static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15872test_array [0] = 0
15873
15874 ;
15875 return 0;
15876}
15877_ACEOF
15878rm -f conftest.$ac_objext
15879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15880 (eval $ac_compile) 2>conftest.er1
a848cd7e 15881 ac_status=$?
ac1cb8d3
VS
15882 grep -v '^ *+' conftest.er1 >conftest.err
15883 rm -f conftest.er1
15884 cat conftest.err >&5
a848cd7e
SC
15885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15886 (exit $ac_status); } &&
7714864e 15887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15889 (eval $ac_try) 2>&5
15890 ac_status=$?
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); }; } &&
15893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15896 ac_status=$?
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_hi=$ac_mid
15900else
15901 echo "$as_me: failed program was:" >&5
15902sed 's/^/| /' conftest.$ac_ext >&5
15903
15904ac_lo=`expr '(' $ac_mid ')' + 1`
15905fi
ac1cb8d3 15906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15907done
15908case $ac_lo in
15909?*) ac_cv_sizeof_int=$ac_lo;;
15910'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15911See \`config.log' for more details." >&5
15912echo "$as_me: error: cannot compute sizeof (int), 77
15913See \`config.log' for more details." >&2;}
15914 { (exit 1); exit 1; }; } ;;
15915esac
15916else
15917 if test "$cross_compiling" = yes; then
7714864e
RL
15918 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
15919echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
15920 { (exit 1); exit 1; }; }
15921else
15922 cat >conftest.$ac_ext <<_ACEOF
15923/* confdefs.h. */
15924_ACEOF
15925cat confdefs.h >>conftest.$ac_ext
15926cat >>conftest.$ac_ext <<_ACEOF
15927/* end confdefs.h. */
15928$ac_includes_default
15929long longval () { return (long) (sizeof (int)); }
15930unsigned long ulongval () { return (long) (sizeof (int)); }
15931#include <stdio.h>
15932#include <stdlib.h>
15933int
15934main ()
15935{
15936
15937 FILE *f = fopen ("conftest.val", "w");
15938 if (! f)
15939 exit (1);
15940 if (((long) (sizeof (int))) < 0)
15941 {
15942 long i = longval ();
15943 if (i != ((long) (sizeof (int))))
15944 exit (1);
15945 fprintf (f, "%ld\n", i);
15946 }
15947 else
15948 {
15949 unsigned long i = ulongval ();
15950 if (i != ((long) (sizeof (int))))
15951 exit (1);
15952 fprintf (f, "%lu\n", i);
15953 }
15954 exit (ferror (f) || fclose (f) != 0);
15955
15956 ;
15957 return 0;
15958}
15959_ACEOF
15960rm -f conftest$ac_exeext
15961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15962 (eval $ac_link) 2>&5
15963 ac_status=$?
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15967 (eval $ac_try) 2>&5
15968 ac_status=$?
15969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_cv_sizeof_int=`cat conftest.val`
15972else
15973 echo "$as_me: program exited with status $ac_status" >&5
15974echo "$as_me: failed program was:" >&5
15975sed 's/^/| /' conftest.$ac_ext >&5
15976
15977( exit $ac_status )
15978{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15979See \`config.log' for more details." >&5
15980echo "$as_me: error: cannot compute sizeof (int), 77
15981See \`config.log' for more details." >&2;}
15982 { (exit 1); exit 1; }; }
15983fi
ac1cb8d3 15984rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15985fi
15986fi
15987rm -f conftest.val
15988else
15989 ac_cv_sizeof_int=0
15990fi
15991fi
15992echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15993echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15994cat >>confdefs.h <<_ACEOF
15995#define SIZEOF_INT $ac_cv_sizeof_int
15996_ACEOF
15997
15998
15999echo "$as_me:$LINENO: checking for long" >&5
16000echo $ECHO_N "checking for long... $ECHO_C" >&6
16001if test "${ac_cv_type_long+set}" = set; then
16002 echo $ECHO_N "(cached) $ECHO_C" >&6
16003else
16004 cat >conftest.$ac_ext <<_ACEOF
16005/* confdefs.h. */
16006_ACEOF
16007cat confdefs.h >>conftest.$ac_ext
16008cat >>conftest.$ac_ext <<_ACEOF
16009/* end confdefs.h. */
16010$ac_includes_default
16011int
16012main ()
16013{
16014if ((long *) 0)
16015 return 0;
16016if (sizeof (long))
16017 return 0;
16018 ;
16019 return 0;
16020}
16021_ACEOF
16022rm -f conftest.$ac_objext
16023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16024 (eval $ac_compile) 2>conftest.er1
a848cd7e 16025 ac_status=$?
ac1cb8d3
VS
16026 grep -v '^ *+' conftest.er1 >conftest.err
16027 rm -f conftest.er1
16028 cat conftest.err >&5
a848cd7e
SC
16029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030 (exit $ac_status); } &&
7714864e 16031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16033 (eval $ac_try) 2>&5
16034 ac_status=$?
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; } &&
16037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16040 ac_status=$?
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16043 ac_cv_type_long=yes
16044else
16045 echo "$as_me: failed program was:" >&5
16046sed 's/^/| /' conftest.$ac_ext >&5
16047
16048ac_cv_type_long=no
16049fi
ac1cb8d3 16050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16051fi
16052echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16053echo "${ECHO_T}$ac_cv_type_long" >&6
16054
16055echo "$as_me:$LINENO: checking size of long" >&5
16056echo $ECHO_N "checking size of long... $ECHO_C" >&6
16057if test "${ac_cv_sizeof_long+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16059else
16060 if test "$ac_cv_type_long" = yes; then
16061 # The cast to unsigned long works around a bug in the HP C Compiler
16062 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16063 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16064 # This bug is HP SR number 8606223364.
16065 if test "$cross_compiling" = yes; then
16066 # Depending upon the size, compute the lo and hi bounds.
16067cat >conftest.$ac_ext <<_ACEOF
16068/* confdefs.h. */
16069_ACEOF
16070cat confdefs.h >>conftest.$ac_ext
16071cat >>conftest.$ac_ext <<_ACEOF
16072/* end confdefs.h. */
16073$ac_includes_default
16074int
16075main ()
16076{
16077static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16078test_array [0] = 0
16079
16080 ;
16081 return 0;
16082}
16083_ACEOF
16084rm -f conftest.$ac_objext
16085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16086 (eval $ac_compile) 2>conftest.er1
a848cd7e 16087 ac_status=$?
ac1cb8d3
VS
16088 grep -v '^ *+' conftest.er1 >conftest.err
16089 rm -f conftest.er1
16090 cat conftest.err >&5
a848cd7e
SC
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); } &&
7714864e 16093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16095 (eval $ac_try) 2>&5
16096 ac_status=$?
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); }; } &&
16099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; }; then
16105 ac_lo=0 ac_mid=0
16106 while :; do
16107 cat >conftest.$ac_ext <<_ACEOF
16108/* confdefs.h. */
16109_ACEOF
16110cat confdefs.h >>conftest.$ac_ext
16111cat >>conftest.$ac_ext <<_ACEOF
16112/* end confdefs.h. */
16113$ac_includes_default
16114int
16115main ()
16116{
16117static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16118test_array [0] = 0
16119
16120 ;
16121 return 0;
16122}
16123_ACEOF
16124rm -f conftest.$ac_objext
16125if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16126 (eval $ac_compile) 2>conftest.er1
a848cd7e 16127 ac_status=$?
ac1cb8d3
VS
16128 grep -v '^ *+' conftest.er1 >conftest.err
16129 rm -f conftest.er1
16130 cat conftest.err >&5
a848cd7e
SC
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } &&
7714864e 16133 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16136 ac_status=$?
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; } &&
16139 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16141 (eval $ac_try) 2>&5
16142 ac_status=$?
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); }; }; then
16145 ac_hi=$ac_mid; break
16146else
16147 echo "$as_me: failed program was:" >&5
16148sed 's/^/| /' conftest.$ac_ext >&5
16149
16150ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16151 if test $ac_lo -le $ac_mid; then
16152 ac_lo= ac_hi=
16153 break
16154 fi
16155 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16156fi
ac1cb8d3 16157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16158 done
16159else
16160 echo "$as_me: failed program was:" >&5
16161sed 's/^/| /' conftest.$ac_ext >&5
16162
16163cat >conftest.$ac_ext <<_ACEOF
16164/* confdefs.h. */
16165_ACEOF
16166cat confdefs.h >>conftest.$ac_ext
16167cat >>conftest.$ac_ext <<_ACEOF
16168/* end confdefs.h. */
16169$ac_includes_default
16170int
16171main ()
16172{
16173static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16174test_array [0] = 0
16175
16176 ;
16177 return 0;
16178}
16179_ACEOF
16180rm -f conftest.$ac_objext
16181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16182 (eval $ac_compile) 2>conftest.er1
a848cd7e 16183 ac_status=$?
ac1cb8d3
VS
16184 grep -v '^ *+' conftest.er1 >conftest.err
16185 rm -f conftest.er1
16186 cat conftest.err >&5
a848cd7e
SC
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); } &&
7714864e 16189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16191 (eval $ac_try) 2>&5
16192 ac_status=$?
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; } &&
16195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16197 (eval $ac_try) 2>&5
16198 ac_status=$?
16199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16200 (exit $ac_status); }; }; then
16201 ac_hi=-1 ac_mid=-1
16202 while :; do
16203 cat >conftest.$ac_ext <<_ACEOF
16204/* confdefs.h. */
16205_ACEOF
16206cat confdefs.h >>conftest.$ac_ext
16207cat >>conftest.$ac_ext <<_ACEOF
16208/* end confdefs.h. */
16209$ac_includes_default
16210int
16211main ()
16212{
16213static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16214test_array [0] = 0
16215
16216 ;
16217 return 0;
16218}
16219_ACEOF
16220rm -f conftest.$ac_objext
16221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16222 (eval $ac_compile) 2>conftest.er1
a848cd7e 16223 ac_status=$?
ac1cb8d3
VS
16224 grep -v '^ *+' conftest.er1 >conftest.err
16225 rm -f conftest.er1
16226 cat conftest.err >&5
a848cd7e
SC
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } &&
7714864e 16229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16231 (eval $ac_try) 2>&5
16232 ac_status=$?
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); }; } &&
16235 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16237 (eval $ac_try) 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_lo=$ac_mid; break
16242else
16243 echo "$as_me: failed program was:" >&5
16244sed 's/^/| /' conftest.$ac_ext >&5
16245
16246ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16247 if test $ac_mid -le $ac_hi; then
16248 ac_lo= ac_hi=
16249 break
16250 fi
16251 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16252fi
ac1cb8d3 16253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16254 done
16255else
16256 echo "$as_me: failed program was:" >&5
16257sed 's/^/| /' conftest.$ac_ext >&5
16258
16259ac_lo= ac_hi=
16260fi
ac1cb8d3 16261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16262fi
ac1cb8d3 16263rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16264# Binary search between lo and hi bounds.
16265while test "x$ac_lo" != "x$ac_hi"; do
16266 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16267 cat >conftest.$ac_ext <<_ACEOF
16268/* confdefs.h. */
16269_ACEOF
16270cat confdefs.h >>conftest.$ac_ext
16271cat >>conftest.$ac_ext <<_ACEOF
16272/* end confdefs.h. */
16273$ac_includes_default
16274int
16275main ()
16276{
16277static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16278test_array [0] = 0
16279
16280 ;
16281 return 0;
16282}
16283_ACEOF
16284rm -f conftest.$ac_objext
16285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16286 (eval $ac_compile) 2>conftest.er1
a848cd7e 16287 ac_status=$?
ac1cb8d3
VS
16288 grep -v '^ *+' conftest.er1 >conftest.err
16289 rm -f conftest.er1
16290 cat conftest.err >&5
a848cd7e
SC
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
7714864e 16293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16296 ac_status=$?
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; } &&
16299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16302 ac_status=$?
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
16305 ac_hi=$ac_mid
16306else
16307 echo "$as_me: failed program was:" >&5
16308sed 's/^/| /' conftest.$ac_ext >&5
16309
16310ac_lo=`expr '(' $ac_mid ')' + 1`
16311fi
ac1cb8d3 16312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16313done
16314case $ac_lo in
16315?*) ac_cv_sizeof_long=$ac_lo;;
16316'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16317See \`config.log' for more details." >&5
16318echo "$as_me: error: cannot compute sizeof (long), 77
16319See \`config.log' for more details." >&2;}
16320 { (exit 1); exit 1; }; } ;;
16321esac
16322else
16323 if test "$cross_compiling" = yes; then
7714864e
RL
16324 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16325echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16326 { (exit 1); exit 1; }; }
16327else
16328 cat >conftest.$ac_ext <<_ACEOF
16329/* confdefs.h. */
16330_ACEOF
16331cat confdefs.h >>conftest.$ac_ext
16332cat >>conftest.$ac_ext <<_ACEOF
16333/* end confdefs.h. */
16334$ac_includes_default
16335long longval () { return (long) (sizeof (long)); }
16336unsigned long ulongval () { return (long) (sizeof (long)); }
16337#include <stdio.h>
16338#include <stdlib.h>
16339int
16340main ()
16341{
16342
16343 FILE *f = fopen ("conftest.val", "w");
16344 if (! f)
16345 exit (1);
16346 if (((long) (sizeof (long))) < 0)
16347 {
16348 long i = longval ();
16349 if (i != ((long) (sizeof (long))))
16350 exit (1);
16351 fprintf (f, "%ld\n", i);
16352 }
16353 else
16354 {
16355 unsigned long i = ulongval ();
16356 if (i != ((long) (sizeof (long))))
16357 exit (1);
16358 fprintf (f, "%lu\n", i);
16359 }
16360 exit (ferror (f) || fclose (f) != 0);
16361
16362 ;
16363 return 0;
16364}
16365_ACEOF
16366rm -f conftest$ac_exeext
16367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16368 (eval $ac_link) 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16373 (eval $ac_try) 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); }; }; then
16377 ac_cv_sizeof_long=`cat conftest.val`
16378else
16379 echo "$as_me: program exited with status $ac_status" >&5
16380echo "$as_me: failed program was:" >&5
16381sed 's/^/| /' conftest.$ac_ext >&5
16382
16383( exit $ac_status )
16384{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16385See \`config.log' for more details." >&5
16386echo "$as_me: error: cannot compute sizeof (long), 77
16387See \`config.log' for more details." >&2;}
16388 { (exit 1); exit 1; }; }
16389fi
ac1cb8d3 16390rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16391fi
16392fi
16393rm -f conftest.val
16394else
16395 ac_cv_sizeof_long=0
16396fi
16397fi
16398echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16399echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16400cat >>confdefs.h <<_ACEOF
16401#define SIZEOF_LONG $ac_cv_sizeof_long
16402_ACEOF
16403
16404
16405echo "$as_me:$LINENO: checking for size_t" >&5
16406echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16407if test "${ac_cv_type_size_t+set}" = set; then
16408 echo $ECHO_N "(cached) $ECHO_C" >&6
16409else
16410 cat >conftest.$ac_ext <<_ACEOF
16411/* confdefs.h. */
16412_ACEOF
16413cat confdefs.h >>conftest.$ac_ext
16414cat >>conftest.$ac_ext <<_ACEOF
16415/* end confdefs.h. */
16416$ac_includes_default
16417int
16418main ()
16419{
16420if ((size_t *) 0)
16421 return 0;
16422if (sizeof (size_t))
16423 return 0;
16424 ;
16425 return 0;
16426}
16427_ACEOF
16428rm -f conftest.$ac_objext
16429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16430 (eval $ac_compile) 2>conftest.er1
a848cd7e 16431 ac_status=$?
ac1cb8d3
VS
16432 grep -v '^ *+' conftest.er1 >conftest.err
16433 rm -f conftest.er1
16434 cat conftest.err >&5
a848cd7e
SC
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); } &&
7714864e 16437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16439 (eval $ac_try) 2>&5
16440 ac_status=$?
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); }; } &&
16443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16445 (eval $ac_try) 2>&5
16446 ac_status=$?
16447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16448 (exit $ac_status); }; }; then
16449 ac_cv_type_size_t=yes
16450else
16451 echo "$as_me: failed program was:" >&5
16452sed 's/^/| /' conftest.$ac_ext >&5
16453
16454ac_cv_type_size_t=no
16455fi
ac1cb8d3 16456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16457fi
16458echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16459echo "${ECHO_T}$ac_cv_type_size_t" >&6
16460
16461echo "$as_me:$LINENO: checking size of size_t" >&5
16462echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16463if test "${ac_cv_sizeof_size_t+set}" = set; then
16464 echo $ECHO_N "(cached) $ECHO_C" >&6
16465else
16466 if test "$ac_cv_type_size_t" = yes; then
16467 # The cast to unsigned long works around a bug in the HP C Compiler
16468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16470 # This bug is HP SR number 8606223364.
16471 if test "$cross_compiling" = yes; then
16472 # Depending upon the size, compute the lo and hi bounds.
16473cat >conftest.$ac_ext <<_ACEOF
16474/* confdefs.h. */
16475_ACEOF
16476cat confdefs.h >>conftest.$ac_ext
16477cat >>conftest.$ac_ext <<_ACEOF
16478/* end confdefs.h. */
16479$ac_includes_default
16480int
16481main ()
16482{
16483static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16484test_array [0] = 0
16485
16486 ;
16487 return 0;
16488}
16489_ACEOF
16490rm -f conftest.$ac_objext
16491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16492 (eval $ac_compile) 2>conftest.er1
a848cd7e 16493 ac_status=$?
ac1cb8d3
VS
16494 grep -v '^ *+' conftest.er1 >conftest.err
16495 rm -f conftest.er1
16496 cat conftest.err >&5
a848cd7e
SC
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
7714864e 16499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16502 ac_status=$?
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; } &&
16505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16507 (eval $ac_try) 2>&5
16508 ac_status=$?
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_lo=0 ac_mid=0
16512 while :; do
16513 cat >conftest.$ac_ext <<_ACEOF
16514/* confdefs.h. */
16515_ACEOF
16516cat confdefs.h >>conftest.$ac_ext
16517cat >>conftest.$ac_ext <<_ACEOF
16518/* end confdefs.h. */
16519$ac_includes_default
16520int
16521main ()
16522{
16523static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16524test_array [0] = 0
16525
16526 ;
16527 return 0;
16528}
16529_ACEOF
16530rm -f conftest.$ac_objext
16531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16532 (eval $ac_compile) 2>conftest.er1
a848cd7e 16533 ac_status=$?
ac1cb8d3
VS
16534 grep -v '^ *+' conftest.er1 >conftest.err
16535 rm -f conftest.er1
16536 cat conftest.err >&5
a848cd7e
SC
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); } &&
7714864e 16539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16541 (eval $ac_try) 2>&5
16542 ac_status=$?
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); }; } &&
16545 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16547 (eval $ac_try) 2>&5
16548 ac_status=$?
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); }; }; then
16551 ac_hi=$ac_mid; break
16552else
16553 echo "$as_me: failed program was:" >&5
16554sed 's/^/| /' conftest.$ac_ext >&5
16555
16556ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16557 if test $ac_lo -le $ac_mid; then
16558 ac_lo= ac_hi=
16559 break
16560 fi
16561 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16562fi
ac1cb8d3 16563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16564 done
16565else
16566 echo "$as_me: failed program was:" >&5
16567sed 's/^/| /' conftest.$ac_ext >&5
16568
16569cat >conftest.$ac_ext <<_ACEOF
16570/* confdefs.h. */
16571_ACEOF
16572cat confdefs.h >>conftest.$ac_ext
16573cat >>conftest.$ac_ext <<_ACEOF
16574/* end confdefs.h. */
16575$ac_includes_default
16576int
16577main ()
16578{
16579static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16580test_array [0] = 0
16581
16582 ;
16583 return 0;
16584}
16585_ACEOF
16586rm -f conftest.$ac_objext
16587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16588 (eval $ac_compile) 2>conftest.er1
a848cd7e 16589 ac_status=$?
ac1cb8d3
VS
16590 grep -v '^ *+' conftest.er1 >conftest.err
16591 rm -f conftest.er1
16592 cat conftest.err >&5
a848cd7e
SC
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
7714864e 16595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 ac_hi=-1 ac_mid=-1
16608 while :; do
16609 cat >conftest.$ac_ext <<_ACEOF
16610/* confdefs.h. */
16611_ACEOF
16612cat confdefs.h >>conftest.$ac_ext
16613cat >>conftest.$ac_ext <<_ACEOF
16614/* end confdefs.h. */
16615$ac_includes_default
16616int
16617main ()
16618{
16619static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16620test_array [0] = 0
16621
16622 ;
16623 return 0;
16624}
16625_ACEOF
16626rm -f conftest.$ac_objext
16627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16628 (eval $ac_compile) 2>conftest.er1
a848cd7e 16629 ac_status=$?
ac1cb8d3
VS
16630 grep -v '^ *+' conftest.er1 >conftest.err
16631 rm -f conftest.er1
16632 cat conftest.err >&5
a848cd7e
SC
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
7714864e 16635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637 (eval $ac_try) 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; } &&
16641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16643 (eval $ac_try) 2>&5
16644 ac_status=$?
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); }; }; then
16647 ac_lo=$ac_mid; break
16648else
16649 echo "$as_me: failed program was:" >&5
16650sed 's/^/| /' conftest.$ac_ext >&5
16651
16652ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16653 if test $ac_mid -le $ac_hi; then
16654 ac_lo= ac_hi=
16655 break
16656 fi
16657 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16658fi
ac1cb8d3 16659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16660 done
16661else
16662 echo "$as_me: failed program was:" >&5
16663sed 's/^/| /' conftest.$ac_ext >&5
16664
16665ac_lo= ac_hi=
16666fi
ac1cb8d3 16667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16668fi
ac1cb8d3 16669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16670# Binary search between lo and hi bounds.
16671while test "x$ac_lo" != "x$ac_hi"; do
16672 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16673 cat >conftest.$ac_ext <<_ACEOF
16674/* confdefs.h. */
16675_ACEOF
16676cat confdefs.h >>conftest.$ac_ext
16677cat >>conftest.$ac_ext <<_ACEOF
16678/* end confdefs.h. */
16679$ac_includes_default
16680int
16681main ()
16682{
16683static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16684test_array [0] = 0
16685
16686 ;
16687 return 0;
16688}
16689_ACEOF
16690rm -f conftest.$ac_objext
16691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16692 (eval $ac_compile) 2>conftest.er1
a848cd7e 16693 ac_status=$?
ac1cb8d3
VS
16694 grep -v '^ *+' conftest.er1 >conftest.err
16695 rm -f conftest.er1
16696 cat conftest.err >&5
a848cd7e
SC
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
7714864e 16699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16702 ac_status=$?
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16708 ac_status=$?
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16711 ac_hi=$ac_mid
16712else
16713 echo "$as_me: failed program was:" >&5
16714sed 's/^/| /' conftest.$ac_ext >&5
16715
16716ac_lo=`expr '(' $ac_mid ')' + 1`
16717fi
ac1cb8d3 16718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16719done
16720case $ac_lo in
16721?*) ac_cv_sizeof_size_t=$ac_lo;;
16722'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16723See \`config.log' for more details." >&5
16724echo "$as_me: error: cannot compute sizeof (size_t), 77
16725See \`config.log' for more details." >&2;}
16726 { (exit 1); exit 1; }; } ;;
16727esac
16728else
16729 if test "$cross_compiling" = yes; then
7714864e
RL
16730 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
16731echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
16732 { (exit 1); exit 1; }; }
16733else
16734 cat >conftest.$ac_ext <<_ACEOF
16735/* confdefs.h. */
16736_ACEOF
16737cat confdefs.h >>conftest.$ac_ext
16738cat >>conftest.$ac_ext <<_ACEOF
16739/* end confdefs.h. */
16740$ac_includes_default
16741long longval () { return (long) (sizeof (size_t)); }
16742unsigned long ulongval () { return (long) (sizeof (size_t)); }
16743#include <stdio.h>
16744#include <stdlib.h>
16745int
16746main ()
16747{
16748
16749 FILE *f = fopen ("conftest.val", "w");
16750 if (! f)
16751 exit (1);
16752 if (((long) (sizeof (size_t))) < 0)
16753 {
16754 long i = longval ();
16755 if (i != ((long) (sizeof (size_t))))
16756 exit (1);
16757 fprintf (f, "%ld\n", i);
16758 }
16759 else
16760 {
16761 unsigned long i = ulongval ();
16762 if (i != ((long) (sizeof (size_t))))
16763 exit (1);
16764 fprintf (f, "%lu\n", i);
16765 }
16766 exit (ferror (f) || fclose (f) != 0);
16767
16768 ;
16769 return 0;
16770}
16771_ACEOF
16772rm -f conftest$ac_exeext
16773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16774 (eval $ac_link) 2>&5
16775 ac_status=$?
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 ac_cv_sizeof_size_t=`cat conftest.val`
16784else
16785 echo "$as_me: program exited with status $ac_status" >&5
16786echo "$as_me: failed program was:" >&5
16787sed 's/^/| /' conftest.$ac_ext >&5
16788
16789( exit $ac_status )
16790{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16791See \`config.log' for more details." >&5
16792echo "$as_me: error: cannot compute sizeof (size_t), 77
16793See \`config.log' for more details." >&2;}
16794 { (exit 1); exit 1; }; }
16795fi
ac1cb8d3 16796rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16797fi
16798fi
16799rm -f conftest.val
16800else
16801 ac_cv_sizeof_size_t=0
16802fi
16803fi
16804echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16805echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16806cat >>confdefs.h <<_ACEOF
16807#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16808_ACEOF
16809
16810
16811
16812case "${host}" in
16813 arm-*-linux* )
16814 echo "$as_me:$LINENO: checking for long long" >&5
16815echo $ECHO_N "checking for long long... $ECHO_C" >&6
16816if test "${ac_cv_type_long_long+set}" = set; then
16817 echo $ECHO_N "(cached) $ECHO_C" >&6
16818else
16819 cat >conftest.$ac_ext <<_ACEOF
16820/* confdefs.h. */
16821_ACEOF
16822cat confdefs.h >>conftest.$ac_ext
16823cat >>conftest.$ac_ext <<_ACEOF
16824/* end confdefs.h. */
16825$ac_includes_default
16826int
16827main ()
16828{
16829if ((long long *) 0)
16830 return 0;
16831if (sizeof (long long))
16832 return 0;
16833 ;
16834 return 0;
16835}
16836_ACEOF
16837rm -f conftest.$ac_objext
16838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16839 (eval $ac_compile) 2>conftest.er1
a848cd7e 16840 ac_status=$?
ac1cb8d3
VS
16841 grep -v '^ *+' conftest.er1 >conftest.err
16842 rm -f conftest.er1
16843 cat conftest.err >&5
a848cd7e
SC
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); } &&
7714864e 16846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16848 (eval $ac_try) 2>&5
16849 ac_status=$?
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }; } &&
16852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16855 ac_status=$?
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_cv_type_long_long=yes
16859else
16860 echo "$as_me: failed program was:" >&5
16861sed 's/^/| /' conftest.$ac_ext >&5
16862
16863ac_cv_type_long_long=no
16864fi
ac1cb8d3 16865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16866fi
16867echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16868echo "${ECHO_T}$ac_cv_type_long_long" >&6
16869
16870echo "$as_me:$LINENO: checking size of long long" >&5
16871echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16872if test "${ac_cv_sizeof_long_long+set}" = set; then
16873 echo $ECHO_N "(cached) $ECHO_C" >&6
16874else
16875 if test "$ac_cv_type_long_long" = yes; then
16876 # The cast to unsigned long works around a bug in the HP C Compiler
16877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16879 # This bug is HP SR number 8606223364.
16880 if test "$cross_compiling" = yes; then
16881 # Depending upon the size, compute the lo and hi bounds.
16882cat >conftest.$ac_ext <<_ACEOF
16883/* confdefs.h. */
16884_ACEOF
16885cat confdefs.h >>conftest.$ac_ext
16886cat >>conftest.$ac_ext <<_ACEOF
16887/* end confdefs.h. */
16888$ac_includes_default
16889int
16890main ()
16891{
16892static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16893test_array [0] = 0
16894
16895 ;
16896 return 0;
16897}
16898_ACEOF
16899rm -f conftest.$ac_objext
16900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16901 (eval $ac_compile) 2>conftest.er1
a848cd7e 16902 ac_status=$?
ac1cb8d3
VS
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
a848cd7e
SC
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } &&
7714864e 16908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16910 (eval $ac_try) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); }; } &&
16914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 ac_lo=0 ac_mid=0
16921 while :; do
16922 cat >conftest.$ac_ext <<_ACEOF
16923/* confdefs.h. */
16924_ACEOF
16925cat confdefs.h >>conftest.$ac_ext
16926cat >>conftest.$ac_ext <<_ACEOF
16927/* end confdefs.h. */
16928$ac_includes_default
16929int
16930main ()
16931{
16932static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16933test_array [0] = 0
16934
16935 ;
16936 return 0;
16937}
16938_ACEOF
16939rm -f conftest.$ac_objext
16940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16941 (eval $ac_compile) 2>conftest.er1
a848cd7e 16942 ac_status=$?
ac1cb8d3
VS
16943 grep -v '^ *+' conftest.er1 >conftest.err
16944 rm -f conftest.er1
16945 cat conftest.err >&5
a848cd7e
SC
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); } &&
7714864e 16948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; } &&
16954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; }; then
16960 ac_hi=$ac_mid; break
16961else
16962 echo "$as_me: failed program was:" >&5
16963sed 's/^/| /' conftest.$ac_ext >&5
16964
16965ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16966 if test $ac_lo -le $ac_mid; then
16967 ac_lo= ac_hi=
16968 break
16969 fi
16970 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16971fi
ac1cb8d3 16972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16973 done
16974else
16975 echo "$as_me: failed program was:" >&5
16976sed 's/^/| /' conftest.$ac_ext >&5
16977
16978cat >conftest.$ac_ext <<_ACEOF
16979/* confdefs.h. */
16980_ACEOF
16981cat confdefs.h >>conftest.$ac_ext
16982cat >>conftest.$ac_ext <<_ACEOF
16983/* end confdefs.h. */
16984$ac_includes_default
16985int
16986main ()
16987{
16988static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16989test_array [0] = 0
16990
16991 ;
16992 return 0;
16993}
16994_ACEOF
16995rm -f conftest.$ac_objext
16996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16997 (eval $ac_compile) 2>conftest.er1
a848cd7e 16998 ac_status=$?
ac1cb8d3
VS
16999 grep -v '^ *+' conftest.er1 >conftest.err
17000 rm -f conftest.er1
17001 cat conftest.err >&5
a848cd7e
SC
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); } &&
7714864e 17004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17006 (eval $ac_try) 2>&5
17007 ac_status=$?
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); }; } &&
17010 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17013 ac_status=$?
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; }; then
17016 ac_hi=-1 ac_mid=-1
17017 while :; do
17018 cat >conftest.$ac_ext <<_ACEOF
17019/* confdefs.h. */
17020_ACEOF
17021cat confdefs.h >>conftest.$ac_ext
17022cat >>conftest.$ac_ext <<_ACEOF
17023/* end confdefs.h. */
17024$ac_includes_default
17025int
17026main ()
17027{
17028static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17029test_array [0] = 0
17030
17031 ;
17032 return 0;
17033}
17034_ACEOF
17035rm -f conftest.$ac_objext
17036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17037 (eval $ac_compile) 2>conftest.er1
a848cd7e 17038 ac_status=$?
ac1cb8d3
VS
17039 grep -v '^ *+' conftest.er1 >conftest.err
17040 rm -f conftest.er1
17041 cat conftest.err >&5
a848cd7e
SC
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); } &&
7714864e 17044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17046 (eval $ac_try) 2>&5
17047 ac_status=$?
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); }; } &&
17050 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17053 ac_status=$?
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; }; then
17056 ac_lo=$ac_mid; break
17057else
17058 echo "$as_me: failed program was:" >&5
17059sed 's/^/| /' conftest.$ac_ext >&5
17060
17061ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17062 if test $ac_mid -le $ac_hi; then
17063 ac_lo= ac_hi=
17064 break
17065 fi
17066 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17067fi
ac1cb8d3 17068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17069 done
17070else
17071 echo "$as_me: failed program was:" >&5
17072sed 's/^/| /' conftest.$ac_ext >&5
17073
17074ac_lo= ac_hi=
17075fi
ac1cb8d3 17076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17077fi
ac1cb8d3 17078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17079# Binary search between lo and hi bounds.
17080while test "x$ac_lo" != "x$ac_hi"; do
17081 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17082 cat >conftest.$ac_ext <<_ACEOF
17083/* confdefs.h. */
17084_ACEOF
17085cat confdefs.h >>conftest.$ac_ext
17086cat >>conftest.$ac_ext <<_ACEOF
17087/* end confdefs.h. */
17088$ac_includes_default
17089int
17090main ()
17091{
17092static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17093test_array [0] = 0
17094
17095 ;
17096 return 0;
17097}
17098_ACEOF
17099rm -f conftest.$ac_objext
17100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17101 (eval $ac_compile) 2>conftest.er1
a848cd7e 17102 ac_status=$?
ac1cb8d3
VS
17103 grep -v '^ *+' conftest.er1 >conftest.err
17104 rm -f conftest.er1
17105 cat conftest.err >&5
a848cd7e
SC
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } &&
7714864e 17108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17110 (eval $ac_try) 2>&5
17111 ac_status=$?
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); }; } &&
17114 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17117 ac_status=$?
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
17120 ac_hi=$ac_mid
17121else
17122 echo "$as_me: failed program was:" >&5
17123sed 's/^/| /' conftest.$ac_ext >&5
17124
17125ac_lo=`expr '(' $ac_mid ')' + 1`
17126fi
ac1cb8d3 17127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17128done
17129case $ac_lo in
17130?*) ac_cv_sizeof_long_long=$ac_lo;;
17131'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17132See \`config.log' for more details." >&5
17133echo "$as_me: error: cannot compute sizeof (long long), 77
17134See \`config.log' for more details." >&2;}
17135 { (exit 1); exit 1; }; } ;;
17136esac
17137else
17138 if test "$cross_compiling" = yes; then
7714864e
RL
17139 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17140echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17141 { (exit 1); exit 1; }; }
17142else
17143 cat >conftest.$ac_ext <<_ACEOF
17144/* confdefs.h. */
17145_ACEOF
17146cat confdefs.h >>conftest.$ac_ext
17147cat >>conftest.$ac_ext <<_ACEOF
17148/* end confdefs.h. */
17149$ac_includes_default
17150long longval () { return (long) (sizeof (long long)); }
17151unsigned long ulongval () { return (long) (sizeof (long long)); }
17152#include <stdio.h>
17153#include <stdlib.h>
17154int
17155main ()
17156{
17157
17158 FILE *f = fopen ("conftest.val", "w");
17159 if (! f)
17160 exit (1);
17161 if (((long) (sizeof (long long))) < 0)
17162 {
17163 long i = longval ();
17164 if (i != ((long) (sizeof (long long))))
17165 exit (1);
17166 fprintf (f, "%ld\n", i);
17167 }
17168 else
17169 {
17170 unsigned long i = ulongval ();
17171 if (i != ((long) (sizeof (long long))))
17172 exit (1);
17173 fprintf (f, "%lu\n", i);
17174 }
17175 exit (ferror (f) || fclose (f) != 0);
17176
17177 ;
17178 return 0;
17179}
17180_ACEOF
17181rm -f conftest$ac_exeext
17182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17183 (eval $ac_link) 2>&5
17184 ac_status=$?
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17188 (eval $ac_try) 2>&5
17189 ac_status=$?
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_sizeof_long_long=`cat conftest.val`
17193else
17194 echo "$as_me: program exited with status $ac_status" >&5
17195echo "$as_me: failed program was:" >&5
17196sed 's/^/| /' conftest.$ac_ext >&5
17197
17198( exit $ac_status )
17199{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17200See \`config.log' for more details." >&5
17201echo "$as_me: error: cannot compute sizeof (long long), 77
17202See \`config.log' for more details." >&2;}
17203 { (exit 1); exit 1; }; }
17204fi
ac1cb8d3 17205rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17206fi
17207fi
17208rm -f conftest.val
17209else
17210 ac_cv_sizeof_long_long=0
17211fi
17212fi
17213echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17214echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17215cat >>confdefs.h <<_ACEOF
17216#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17217_ACEOF
17218
17219
17220 ;;
17221 *-hp-hpux* )
17222 echo "$as_me:$LINENO: checking for long long" >&5
17223echo $ECHO_N "checking for long long... $ECHO_C" >&6
17224if test "${ac_cv_type_long_long+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17226else
17227 cat >conftest.$ac_ext <<_ACEOF
17228/* confdefs.h. */
17229_ACEOF
17230cat confdefs.h >>conftest.$ac_ext
17231cat >>conftest.$ac_ext <<_ACEOF
17232/* end confdefs.h. */
17233$ac_includes_default
17234int
17235main ()
17236{
17237if ((long long *) 0)
17238 return 0;
17239if (sizeof (long long))
17240 return 0;
17241 ;
17242 return 0;
17243}
17244_ACEOF
17245rm -f conftest.$ac_objext
17246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17247 (eval $ac_compile) 2>conftest.er1
a848cd7e 17248 ac_status=$?
ac1cb8d3
VS
17249 grep -v '^ *+' conftest.er1 >conftest.err
17250 rm -f conftest.er1
17251 cat conftest.err >&5
a848cd7e
SC
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
7714864e 17254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17262 (eval $ac_try) 2>&5
17263 ac_status=$?
17264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17265 (exit $ac_status); }; }; then
17266 ac_cv_type_long_long=yes
17267else
17268 echo "$as_me: failed program was:" >&5
17269sed 's/^/| /' conftest.$ac_ext >&5
17270
17271ac_cv_type_long_long=no
17272fi
ac1cb8d3 17273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17274fi
17275echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17276echo "${ECHO_T}$ac_cv_type_long_long" >&6
17277
17278echo "$as_me:$LINENO: checking size of long long" >&5
17279echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17280if test "${ac_cv_sizeof_long_long+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17282else
17283 if test "$ac_cv_type_long_long" = yes; then
17284 # The cast to unsigned long works around a bug in the HP C Compiler
17285 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17286 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17287 # This bug is HP SR number 8606223364.
17288 if test "$cross_compiling" = yes; then
17289 # Depending upon the size, compute the lo and hi bounds.
17290cat >conftest.$ac_ext <<_ACEOF
17291/* confdefs.h. */
17292_ACEOF
17293cat confdefs.h >>conftest.$ac_ext
17294cat >>conftest.$ac_ext <<_ACEOF
17295/* end confdefs.h. */
17296$ac_includes_default
17297int
17298main ()
17299{
17300static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17301test_array [0] = 0
17302
17303 ;
17304 return 0;
17305}
17306_ACEOF
17307rm -f conftest.$ac_objext
17308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17309 (eval $ac_compile) 2>conftest.er1
a848cd7e 17310 ac_status=$?
ac1cb8d3
VS
17311 grep -v '^ *+' conftest.er1 >conftest.err
17312 rm -f conftest.er1
17313 cat conftest.err >&5
a848cd7e
SC
17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17315 (exit $ac_status); } &&
7714864e 17316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17318 (eval $ac_try) 2>&5
17319 ac_status=$?
17320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); }; } &&
17322 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17324 (eval $ac_try) 2>&5
17325 ac_status=$?
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); }; }; then
17328 ac_lo=0 ac_mid=0
17329 while :; do
17330 cat >conftest.$ac_ext <<_ACEOF
17331/* confdefs.h. */
17332_ACEOF
17333cat confdefs.h >>conftest.$ac_ext
17334cat >>conftest.$ac_ext <<_ACEOF
17335/* end confdefs.h. */
17336$ac_includes_default
17337int
17338main ()
17339{
17340static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17341test_array [0] = 0
17342
17343 ;
17344 return 0;
17345}
17346_ACEOF
17347rm -f conftest.$ac_objext
17348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17349 (eval $ac_compile) 2>conftest.er1
a848cd7e 17350 ac_status=$?
ac1cb8d3
VS
17351 grep -v '^ *+' conftest.er1 >conftest.err
17352 rm -f conftest.er1
17353 cat conftest.err >&5
a848cd7e
SC
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); } &&
7714864e 17356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; } &&
17362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17364 (eval $ac_try) 2>&5
17365 ac_status=$?
17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); }; }; then
17368 ac_hi=$ac_mid; break
17369else
17370 echo "$as_me: failed program was:" >&5
17371sed 's/^/| /' conftest.$ac_ext >&5
17372
17373ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17374 if test $ac_lo -le $ac_mid; then
17375 ac_lo= ac_hi=
17376 break
17377 fi
17378 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17379fi
ac1cb8d3 17380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17381 done
17382else
17383 echo "$as_me: failed program was:" >&5
17384sed 's/^/| /' conftest.$ac_ext >&5
17385
17386cat >conftest.$ac_ext <<_ACEOF
17387/* confdefs.h. */
17388_ACEOF
17389cat confdefs.h >>conftest.$ac_ext
17390cat >>conftest.$ac_ext <<_ACEOF
17391/* end confdefs.h. */
17392$ac_includes_default
17393int
17394main ()
17395{
17396static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17397test_array [0] = 0
17398
17399 ;
17400 return 0;
17401}
17402_ACEOF
17403rm -f conftest.$ac_objext
17404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17405 (eval $ac_compile) 2>conftest.er1
a848cd7e 17406 ac_status=$?
ac1cb8d3
VS
17407 grep -v '^ *+' conftest.er1 >conftest.err
17408 rm -f conftest.er1
17409 cat conftest.err >&5
a848cd7e
SC
17410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411 (exit $ac_status); } &&
7714864e 17412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17414 (eval $ac_try) 2>&5
17415 ac_status=$?
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; } &&
17418 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17420 (eval $ac_try) 2>&5
17421 ac_status=$?
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); }; }; then
17424 ac_hi=-1 ac_mid=-1
17425 while :; do
17426 cat >conftest.$ac_ext <<_ACEOF
17427/* confdefs.h. */
17428_ACEOF
17429cat confdefs.h >>conftest.$ac_ext
17430cat >>conftest.$ac_ext <<_ACEOF
17431/* end confdefs.h. */
17432$ac_includes_default
17433int
17434main ()
17435{
17436static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17437test_array [0] = 0
17438
17439 ;
17440 return 0;
17441}
17442_ACEOF
17443rm -f conftest.$ac_objext
17444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17445 (eval $ac_compile) 2>conftest.er1
a848cd7e 17446 ac_status=$?
ac1cb8d3
VS
17447 grep -v '^ *+' conftest.er1 >conftest.err
17448 rm -f conftest.er1
17449 cat conftest.err >&5
a848cd7e
SC
17450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451 (exit $ac_status); } &&
7714864e 17452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 ac_lo=$ac_mid; break
17465else
17466 echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
17469ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17470 if test $ac_mid -le $ac_hi; then
17471 ac_lo= ac_hi=
17472 break
17473 fi
17474 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17475fi
ac1cb8d3 17476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17477 done
17478else
17479 echo "$as_me: failed program was:" >&5
17480sed 's/^/| /' conftest.$ac_ext >&5
17481
17482ac_lo= ac_hi=
17483fi
ac1cb8d3 17484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17485fi
ac1cb8d3 17486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17487# Binary search between lo and hi bounds.
17488while test "x$ac_lo" != "x$ac_hi"; do
17489 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17490 cat >conftest.$ac_ext <<_ACEOF
17491/* confdefs.h. */
17492_ACEOF
17493cat confdefs.h >>conftest.$ac_ext
17494cat >>conftest.$ac_ext <<_ACEOF
17495/* end confdefs.h. */
17496$ac_includes_default
17497int
17498main ()
17499{
17500static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17501test_array [0] = 0
17502
17503 ;
17504 return 0;
17505}
17506_ACEOF
17507rm -f conftest.$ac_objext
17508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17509 (eval $ac_compile) 2>conftest.er1
a848cd7e 17510 ac_status=$?
ac1cb8d3
VS
17511 grep -v '^ *+' conftest.er1 >conftest.err
17512 rm -f conftest.er1
17513 cat conftest.err >&5
a848cd7e
SC
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); } &&
7714864e 17516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17518 (eval $ac_try) 2>&5
17519 ac_status=$?
17520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521 (exit $ac_status); }; } &&
17522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17525 ac_status=$?
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; }; then
17528 ac_hi=$ac_mid
17529else
17530 echo "$as_me: failed program was:" >&5
17531sed 's/^/| /' conftest.$ac_ext >&5
17532
17533ac_lo=`expr '(' $ac_mid ')' + 1`
17534fi
ac1cb8d3 17535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17536done
17537case $ac_lo in
17538?*) ac_cv_sizeof_long_long=$ac_lo;;
17539'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17540See \`config.log' for more details." >&5
17541echo "$as_me: error: cannot compute sizeof (long long), 77
17542See \`config.log' for more details." >&2;}
17543 { (exit 1); exit 1; }; } ;;
17544esac
17545else
17546 if test "$cross_compiling" = yes; then
7714864e
RL
17547 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17548echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17549 { (exit 1); exit 1; }; }
17550else
17551 cat >conftest.$ac_ext <<_ACEOF
17552/* confdefs.h. */
17553_ACEOF
17554cat confdefs.h >>conftest.$ac_ext
17555cat >>conftest.$ac_ext <<_ACEOF
17556/* end confdefs.h. */
17557$ac_includes_default
17558long longval () { return (long) (sizeof (long long)); }
17559unsigned long ulongval () { return (long) (sizeof (long long)); }
17560#include <stdio.h>
17561#include <stdlib.h>
17562int
17563main ()
17564{
17565
17566 FILE *f = fopen ("conftest.val", "w");
17567 if (! f)
17568 exit (1);
17569 if (((long) (sizeof (long long))) < 0)
17570 {
17571 long i = longval ();
17572 if (i != ((long) (sizeof (long long))))
17573 exit (1);
17574 fprintf (f, "%ld\n", i);
17575 }
17576 else
17577 {
17578 unsigned long i = ulongval ();
17579 if (i != ((long) (sizeof (long long))))
17580 exit (1);
17581 fprintf (f, "%lu\n", i);
17582 }
17583 exit (ferror (f) || fclose (f) != 0);
17584
17585 ;
17586 return 0;
17587}
17588_ACEOF
17589rm -f conftest$ac_exeext
17590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17591 (eval $ac_link) 2>&5
17592 ac_status=$?
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596 (eval $ac_try) 2>&5
17597 ac_status=$?
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); }; }; then
17600 ac_cv_sizeof_long_long=`cat conftest.val`
17601else
17602 echo "$as_me: program exited with status $ac_status" >&5
17603echo "$as_me: failed program was:" >&5
17604sed 's/^/| /' conftest.$ac_ext >&5
17605
17606( exit $ac_status )
17607{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17608See \`config.log' for more details." >&5
17609echo "$as_me: error: cannot compute sizeof (long long), 77
17610See \`config.log' for more details." >&2;}
17611 { (exit 1); exit 1; }; }
17612fi
ac1cb8d3 17613rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17614fi
17615fi
17616rm -f conftest.val
17617else
17618 ac_cv_sizeof_long_long=0
17619fi
17620fi
17621echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17622echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17623cat >>confdefs.h <<_ACEOF
17624#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17625_ACEOF
17626
17627
17628 if test "$ac_cv_sizeof_long_long" != "0"; then
17629 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17630 fi
17631 ;;
17632 * )
17633 echo "$as_me:$LINENO: checking for long long" >&5
17634echo $ECHO_N "checking for long long... $ECHO_C" >&6
17635if test "${ac_cv_type_long_long+set}" = set; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17637else
17638 cat >conftest.$ac_ext <<_ACEOF
17639/* confdefs.h. */
17640_ACEOF
17641cat confdefs.h >>conftest.$ac_ext
17642cat >>conftest.$ac_ext <<_ACEOF
17643/* end confdefs.h. */
17644$ac_includes_default
17645int
17646main ()
17647{
17648if ((long long *) 0)
17649 return 0;
17650if (sizeof (long long))
17651 return 0;
17652 ;
17653 return 0;
17654}
17655_ACEOF
17656rm -f conftest.$ac_objext
17657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17658 (eval $ac_compile) 2>conftest.er1
a848cd7e 17659 ac_status=$?
ac1cb8d3
VS
17660 grep -v '^ *+' conftest.er1 >conftest.err
17661 rm -f conftest.er1
17662 cat conftest.err >&5
a848cd7e
SC
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
7714864e 17665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; } &&
17671 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17673 (eval $ac_try) 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_cv_type_long_long=yes
17678else
17679 echo "$as_me: failed program was:" >&5
17680sed 's/^/| /' conftest.$ac_ext >&5
17681
17682ac_cv_type_long_long=no
17683fi
ac1cb8d3 17684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17685fi
17686echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17687echo "${ECHO_T}$ac_cv_type_long_long" >&6
17688
17689echo "$as_me:$LINENO: checking size of long long" >&5
17690echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17691if test "${ac_cv_sizeof_long_long+set}" = set; then
17692 echo $ECHO_N "(cached) $ECHO_C" >&6
17693else
17694 if test "$ac_cv_type_long_long" = yes; then
17695 # The cast to unsigned long works around a bug in the HP C Compiler
17696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17698 # This bug is HP SR number 8606223364.
17699 if test "$cross_compiling" = yes; then
17700 # Depending upon the size, compute the lo and hi bounds.
17701cat >conftest.$ac_ext <<_ACEOF
17702/* confdefs.h. */
17703_ACEOF
17704cat confdefs.h >>conftest.$ac_ext
17705cat >>conftest.$ac_ext <<_ACEOF
17706/* end confdefs.h. */
17707$ac_includes_default
17708int
17709main ()
17710{
17711static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17712test_array [0] = 0
17713
17714 ;
17715 return 0;
17716}
17717_ACEOF
17718rm -f conftest.$ac_objext
17719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17720 (eval $ac_compile) 2>conftest.er1
a848cd7e 17721 ac_status=$?
ac1cb8d3
VS
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
a848cd7e
SC
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } &&
7714864e 17727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17730 ac_status=$?
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; } &&
17733 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 ac_lo=0 ac_mid=0
17740 while :; do
17741 cat >conftest.$ac_ext <<_ACEOF
17742/* confdefs.h. */
17743_ACEOF
17744cat confdefs.h >>conftest.$ac_ext
17745cat >>conftest.$ac_ext <<_ACEOF
17746/* end confdefs.h. */
17747$ac_includes_default
17748int
17749main ()
17750{
17751static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17752test_array [0] = 0
17753
17754 ;
17755 return 0;
17756}
17757_ACEOF
17758rm -f conftest.$ac_objext
17759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17760 (eval $ac_compile) 2>conftest.er1
a848cd7e 17761 ac_status=$?
ac1cb8d3
VS
17762 grep -v '^ *+' conftest.er1 >conftest.err
17763 rm -f conftest.er1
17764 cat conftest.err >&5
a848cd7e
SC
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); } &&
7714864e 17767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; } &&
17773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775 (eval $ac_try) 2>&5
17776 ac_status=$?
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; }; then
17779 ac_hi=$ac_mid; break
17780else
17781 echo "$as_me: failed program was:" >&5
17782sed 's/^/| /' conftest.$ac_ext >&5
17783
17784ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17785 if test $ac_lo -le $ac_mid; then
17786 ac_lo= ac_hi=
17787 break
17788 fi
17789 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17790fi
ac1cb8d3 17791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17792 done
17793else
17794 echo "$as_me: failed program was:" >&5
17795sed 's/^/| /' conftest.$ac_ext >&5
17796
17797cat >conftest.$ac_ext <<_ACEOF
17798/* confdefs.h. */
17799_ACEOF
17800cat confdefs.h >>conftest.$ac_ext
17801cat >>conftest.$ac_ext <<_ACEOF
17802/* end confdefs.h. */
17803$ac_includes_default
17804int
17805main ()
17806{
17807static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17808test_array [0] = 0
17809
17810 ;
17811 return 0;
17812}
17813_ACEOF
17814rm -f conftest.$ac_objext
17815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17816 (eval $ac_compile) 2>conftest.er1
a848cd7e 17817 ac_status=$?
ac1cb8d3
VS
17818 grep -v '^ *+' conftest.er1 >conftest.err
17819 rm -f conftest.er1
17820 cat conftest.err >&5
a848cd7e
SC
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
7714864e 17823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17825 (eval $ac_try) 2>&5
17826 ac_status=$?
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); }; } &&
17829 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17832 ac_status=$?
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_hi=-1 ac_mid=-1
17836 while :; do
17837 cat >conftest.$ac_ext <<_ACEOF
17838/* confdefs.h. */
17839_ACEOF
17840cat confdefs.h >>conftest.$ac_ext
17841cat >>conftest.$ac_ext <<_ACEOF
17842/* end confdefs.h. */
17843$ac_includes_default
17844int
17845main ()
17846{
17847static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17848test_array [0] = 0
17849
17850 ;
17851 return 0;
17852}
17853_ACEOF
17854rm -f conftest.$ac_objext
17855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17856 (eval $ac_compile) 2>conftest.er1
a848cd7e 17857 ac_status=$?
ac1cb8d3
VS
17858 grep -v '^ *+' conftest.er1 >conftest.err
17859 rm -f conftest.er1
17860 cat conftest.err >&5
a848cd7e
SC
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
7714864e 17863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_lo=$ac_mid; break
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
17880ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17881 if test $ac_mid -le $ac_hi; then
17882 ac_lo= ac_hi=
17883 break
17884 fi
17885 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17886fi
ac1cb8d3 17887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17888 done
17889else
17890 echo "$as_me: failed program was:" >&5
17891sed 's/^/| /' conftest.$ac_ext >&5
17892
17893ac_lo= ac_hi=
17894fi
ac1cb8d3 17895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17896fi
ac1cb8d3 17897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17898# Binary search between lo and hi bounds.
17899while test "x$ac_lo" != "x$ac_hi"; do
17900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17901 cat >conftest.$ac_ext <<_ACEOF
17902/* confdefs.h. */
17903_ACEOF
17904cat confdefs.h >>conftest.$ac_ext
17905cat >>conftest.$ac_ext <<_ACEOF
17906/* end confdefs.h. */
17907$ac_includes_default
17908int
17909main ()
17910{
17911static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17912test_array [0] = 0
17913
17914 ;
17915 return 0;
17916}
17917_ACEOF
17918rm -f conftest.$ac_objext
17919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17920 (eval $ac_compile) 2>conftest.er1
a848cd7e 17921 ac_status=$?
ac1cb8d3
VS
17922 grep -v '^ *+' conftest.er1 >conftest.err
17923 rm -f conftest.er1
17924 cat conftest.err >&5
a848cd7e
SC
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
7714864e 17927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17929 (eval $ac_try) 2>&5
17930 ac_status=$?
17931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17932 (exit $ac_status); }; } &&
17933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17935 (eval $ac_try) 2>&5
17936 ac_status=$?
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); }; }; then
17939 ac_hi=$ac_mid
17940else
17941 echo "$as_me: failed program was:" >&5
17942sed 's/^/| /' conftest.$ac_ext >&5
17943
17944ac_lo=`expr '(' $ac_mid ')' + 1`
17945fi
ac1cb8d3 17946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17947done
17948case $ac_lo in
17949?*) ac_cv_sizeof_long_long=$ac_lo;;
17950'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17951See \`config.log' for more details." >&5
17952echo "$as_me: error: cannot compute sizeof (long long), 77
17953See \`config.log' for more details." >&2;}
17954 { (exit 1); exit 1; }; } ;;
17955esac
17956else
17957 if test "$cross_compiling" = yes; then
7714864e
RL
17958 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17959echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17960 { (exit 1); exit 1; }; }
17961else
17962 cat >conftest.$ac_ext <<_ACEOF
17963/* confdefs.h. */
17964_ACEOF
17965cat confdefs.h >>conftest.$ac_ext
17966cat >>conftest.$ac_ext <<_ACEOF
17967/* end confdefs.h. */
17968$ac_includes_default
17969long longval () { return (long) (sizeof (long long)); }
17970unsigned long ulongval () { return (long) (sizeof (long long)); }
17971#include <stdio.h>
17972#include <stdlib.h>
17973int
17974main ()
17975{
17976
17977 FILE *f = fopen ("conftest.val", "w");
17978 if (! f)
17979 exit (1);
17980 if (((long) (sizeof (long long))) < 0)
17981 {
17982 long i = longval ();
17983 if (i != ((long) (sizeof (long long))))
17984 exit (1);
17985 fprintf (f, "%ld\n", i);
17986 }
17987 else
17988 {
17989 unsigned long i = ulongval ();
17990 if (i != ((long) (sizeof (long long))))
17991 exit (1);
17992 fprintf (f, "%lu\n", i);
17993 }
17994 exit (ferror (f) || fclose (f) != 0);
17995
17996 ;
17997 return 0;
17998}
17999_ACEOF
18000rm -f conftest$ac_exeext
18001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18002 (eval $ac_link) 2>&5
18003 ac_status=$?
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18007 (eval $ac_try) 2>&5
18008 ac_status=$?
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; }; then
18011 ac_cv_sizeof_long_long=`cat conftest.val`
18012else
18013 echo "$as_me: program exited with status $ac_status" >&5
18014echo "$as_me: failed program was:" >&5
18015sed 's/^/| /' conftest.$ac_ext >&5
18016
18017( exit $ac_status )
18018{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18019See \`config.log' for more details." >&5
18020echo "$as_me: error: cannot compute sizeof (long long), 77
18021See \`config.log' for more details." >&2;}
18022 { (exit 1); exit 1; }; }
18023fi
ac1cb8d3 18024rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18025fi
18026fi
18027rm -f conftest.val
18028else
18029 ac_cv_sizeof_long_long=0
18030fi
18031fi
18032echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18033echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18034cat >>confdefs.h <<_ACEOF
18035#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18036_ACEOF
18037
18038
18039esac
18040
18041echo "$as_me:$LINENO: checking size of wchar_t" >&5
18042echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18043if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18045else
18046
18047 if test "$cross_compiling" = yes; then
18048
18049 case "${host}" in
18050 *-pc-msdosdjgpp )
18051 wx_cv_sizeof_wchar_t=0
18052 ;;
18053 * )
18054 wx_cv_sizeof_wchar_t=4
18055 ;;
18056 esac
18057
18058
18059else
18060 cat >conftest.$ac_ext <<_ACEOF
18061/* confdefs.h. */
18062_ACEOF
18063cat confdefs.h >>conftest.$ac_ext
18064cat >>conftest.$ac_ext <<_ACEOF
18065/* end confdefs.h. */
18066
18067 /* DJGPP only has fake wchar_t: */
18068 #ifdef __DJGPP__
18069 # error "fake wchar_t"
18070 #endif
18071 #ifdef HAVE_WCHAR_H
18072 # ifdef __CYGWIN__
18073 # include <stddef.h>
18074 # endif
18075 # include <wchar.h>
18076 #endif
18077 #ifdef HAVE_STDLIB_H
18078 # include <stdlib.h>
18079 #endif
18080 #include <stdio.h>
18081 int main()
18082 {
18083 FILE *f=fopen("conftestval", "w");
18084 if (!f) exit(1);
18085 fprintf(f, "%i", sizeof(wchar_t));
18086 exit(0);
18087 }
18088
18089_ACEOF
18090rm -f conftest$ac_exeext
18091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18092 (eval $ac_link) 2>&5
18093 ac_status=$?
18094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18097 (eval $ac_try) 2>&5
18098 ac_status=$?
18099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100 (exit $ac_status); }; }; then
18101 wx_cv_sizeof_wchar_t=`cat conftestval`
18102else
18103 echo "$as_me: program exited with status $ac_status" >&5
18104echo "$as_me: failed program was:" >&5
18105sed 's/^/| /' conftest.$ac_ext >&5
18106
18107( exit $ac_status )
18108wx_cv_sizeof_wchar_t=0
18109fi
ac1cb8d3 18110rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18111fi
18112
18113fi
18114echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18115echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18116
18117cat >>confdefs.h <<_ACEOF
18118#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18119_ACEOF
18120
18121
ba3d13e1
VZ
18122echo "$as_me:$LINENO: checking for va_copy" >&5
18123echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18124if test "${wx_cv_func_va_copy+set}" = set; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126else
18127
18128 cat >conftest.$ac_ext <<_ACEOF
18129
18130 #include <stdarg.h>
18131 void foo(char *f, ...)
18132 {
18133 va_list ap1, ap2;
18134 va_start(ap1, f);
18135 va_copy(ap2, ap1);
18136 va_end(ap2);
18137 va_end(ap1);
18138 }
18139_ACEOF
18140rm -f conftest.$ac_objext conftest$ac_exeext
18141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18142 (eval $ac_link) 2>conftest.er1
18143 ac_status=$?
18144 grep -v '^ *+' conftest.er1 >conftest.err
18145 rm -f conftest.er1
18146 cat conftest.err >&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); } &&
18149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18152 ac_status=$?
18153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; } &&
18155 { ac_try='test -s conftest$ac_exeext'
18156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18157 (eval $ac_try) 2>&5
18158 ac_status=$?
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); }; }; then
18161 wx_cv_func_va_copy=yes
18162else
18163 echo "$as_me: failed program was:" >&5
18164sed 's/^/| /' conftest.$ac_ext >&5
18165
18166wx_cv_func_va_copy=no
18167
18168fi
18169rm -f conftest.err conftest.$ac_objext \
18170 conftest$ac_exeext conftest.$ac_ext
18171
18172
18173fi
18174echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18175echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18176
18177if test $wx_cv_func_va_copy = "yes"; then
18178 cat >>confdefs.h <<\_ACEOF
18179#define HAVE_VA_COPY 1
18180_ACEOF
18181
18182else
18183 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18184echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18185if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18186 echo $ECHO_N "(cached) $ECHO_C" >&6
18187else
18188
18189 if test "$cross_compiling" = yes; then
18190 wx_cv_type_va_list_lvalue=yes
18191
18192else
18193 cat >conftest.$ac_ext <<_ACEOF
18194
18195 #include <stdarg.h>
18196 int foo(char *f, ...)
18197 {
18198 va_list ap1, ap2;
18199 va_start(ap1, f);
18200 ap2 = ap1;
18201 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18202 return 1;
18203 va_end(ap2);
18204 va_end(ap1);
18205 return 0;
18206 }
18207 int main()
18208 {
18209 return foo("hi", 17);
18210 }
18211_ACEOF
18212rm -f conftest$ac_exeext
18213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18214 (eval $ac_link) 2>&5
18215 ac_status=$?
18216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; }; then
18223 wx_cv_type_va_list_lvalue=yes
18224else
18225 echo "$as_me: program exited with status $ac_status" >&5
18226echo "$as_me: failed program was:" >&5
18227sed 's/^/| /' conftest.$ac_ext >&5
18228
18229( exit $ac_status )
18230wx_cv_type_va_list_lvalue=no
18231fi
18232rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18233fi
18234
18235
18236fi
18237echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18238echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18239
18240 if test $wx_cv_type_va_list_lvalue != "yes"; then
18241 cat >>confdefs.h <<\_ACEOF
18242#define VA_LIST_IS_ARRAY 1
18243_ACEOF
18244
18245 fi
18246fi
18247
a848cd7e
SC
18248# Check whether --enable-largefile or --disable-largefile was given.
18249if test "${enable_largefile+set}" = set; then
18250 enableval="$enable_largefile"
18251
18252fi;
18253if test "$enable_largefile" != no; then
18254 wx_largefile=no
18255
18256 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18257echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18258if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18260else
18261
18262 cat >conftest.$ac_ext <<_ACEOF
18263/* confdefs.h. */
18264_ACEOF
18265cat confdefs.h >>conftest.$ac_ext
18266cat >>conftest.$ac_ext <<_ACEOF
18267/* end confdefs.h. */
18268#define _FILE_OFFSET_BITS 64
18269 #include <sys/types.h>
18270int
18271main ()
18272{
18273typedef struct {
18274 unsigned int field: sizeof(off_t) == 8;
18275} wxlf;
18276
18277 ;
18278 return 0;
18279}
18280_ACEOF
18281rm -f conftest.$ac_objext
18282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18283 (eval $ac_compile) 2>conftest.er1
a848cd7e 18284 ac_status=$?
ac1cb8d3
VS
18285 grep -v '^ *+' conftest.er1 >conftest.err
18286 rm -f conftest.er1
18287 cat conftest.err >&5
a848cd7e
SC
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
7714864e 18290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18292 (eval $ac_try) 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); }; } &&
18296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18298 (eval $ac_try) 2>&5
18299 ac_status=$?
18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18301 (exit $ac_status); }; }; then
18302 ac_cv_sys_file_offset_bits=64
18303else
18304 echo "$as_me: failed program was:" >&5
18305sed 's/^/| /' conftest.$ac_ext >&5
18306
18307ac_cv_sys_file_offset_bits=no
18308fi
ac1cb8d3 18309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18310
18311
18312fi
18313echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18314echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18315
18316 if test "$ac_cv_sys_file_offset_bits" != no; then
18317 wx_largefile=yes
18318 cat >>confdefs.h <<_ACEOF
18319#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18320_ACEOF
18321
18322 fi
18323
18324 if test "x$wx_largefile" != "xyes"; then
18325
18326 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18327echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18328if test "${ac_cv_sys_large_files+set}" = set; then
18329 echo $ECHO_N "(cached) $ECHO_C" >&6
18330else
18331
18332 cat >conftest.$ac_ext <<_ACEOF
18333/* confdefs.h. */
18334_ACEOF
18335cat confdefs.h >>conftest.$ac_ext
18336cat >>conftest.$ac_ext <<_ACEOF
18337/* end confdefs.h. */
18338#define _LARGE_FILES 1
18339 #include <sys/types.h>
18340int
18341main ()
18342{
18343typedef struct {
18344 unsigned int field: sizeof(off_t) == 8;
18345} wxlf;
18346
18347 ;
18348 return 0;
18349}
18350_ACEOF
18351rm -f conftest.$ac_objext
18352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18353 (eval $ac_compile) 2>conftest.er1
a848cd7e 18354 ac_status=$?
ac1cb8d3
VS
18355 grep -v '^ *+' conftest.er1 >conftest.err
18356 rm -f conftest.er1
18357 cat conftest.err >&5
a848cd7e
SC
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
7714864e 18360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; } &&
18366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; }; then
18372 ac_cv_sys_large_files=1
18373else
18374 echo "$as_me: failed program was:" >&5
18375sed 's/^/| /' conftest.$ac_ext >&5
18376
18377ac_cv_sys_large_files=no
18378fi
ac1cb8d3 18379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18380
18381
18382fi
18383echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18384echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18385
18386 if test "$ac_cv_sys_large_files" != no; then
18387 wx_largefile=yes
18388 cat >>confdefs.h <<_ACEOF
18389#define _LARGE_FILES $ac_cv_sys_large_files
18390_ACEOF
18391
18392 fi
18393
18394 fi
18395
18396 echo "$as_me:$LINENO: checking if large file support is available" >&5
18397echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18398 if test "x$wx_largefile" = "xyes"; then
18399 cat >>confdefs.h <<\_ACEOF
18400#define HAVE_LARGEFILE_SUPPORT 1
18401_ACEOF
18402
18403 fi
18404 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18405echo "${ECHO_T}$wx_largefile" >&6
18406fi
18407
18408
18409if test "x$wx_largefile" = "xyes"; then
18410 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18411 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18412 else
18413 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18414 fi
18415 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18416fi
18417
18418echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18419echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18420if test "${ac_cv_c_bigendian+set}" = set; then
18421 echo $ECHO_N "(cached) $ECHO_C" >&6
18422else
18423 ac_cv_c_bigendian=unknown
18424# See if sys/param.h defines the BYTE_ORDER macro.
18425cat >conftest.$ac_ext <<_ACEOF
18426/* confdefs.h. */
18427_ACEOF
18428cat confdefs.h >>conftest.$ac_ext
18429cat >>conftest.$ac_ext <<_ACEOF
18430/* end confdefs.h. */
18431#include <sys/types.h>
18432#include <sys/param.h>
18433int
18434main ()
18435{
18436
18437#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18438 bogus endian macros
18439#endif
18440 ;
18441 return 0;
18442}
18443_ACEOF
18444rm -f conftest.$ac_objext
18445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18446 (eval $ac_compile) 2>conftest.er1
a848cd7e 18447 ac_status=$?
ac1cb8d3
VS
18448 grep -v '^ *+' conftest.er1 >conftest.err
18449 rm -f conftest.er1
18450 cat conftest.err >&5
a848cd7e
SC
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } &&
7714864e 18453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18456 ac_status=$?
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18461 (eval $ac_try) 2>&5
18462 ac_status=$?
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); }; }; then
18465 # It does; now see whether it defined to BIG_ENDIAN or not.
18466cat >conftest.$ac_ext <<_ACEOF
18467/* confdefs.h. */
18468_ACEOF
18469cat confdefs.h >>conftest.$ac_ext
18470cat >>conftest.$ac_ext <<_ACEOF
18471/* end confdefs.h. */
18472#include <sys/types.h>
18473#include <sys/param.h>
18474int
18475main ()
18476{
18477
18478#if BYTE_ORDER != BIG_ENDIAN
18479 not big endian
18480#endif
18481 ;
18482 return 0;
18483}
18484_ACEOF
18485rm -f conftest.$ac_objext
18486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18487 (eval $ac_compile) 2>conftest.er1
a848cd7e 18488 ac_status=$?
ac1cb8d3
VS
18489 grep -v '^ *+' conftest.er1 >conftest.err
18490 rm -f conftest.er1
18491 cat conftest.err >&5
a848cd7e
SC
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } &&
7714864e 18494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18496 (eval $ac_try) 2>&5
18497 ac_status=$?
18498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18499 (exit $ac_status); }; } &&
18500 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18502 (eval $ac_try) 2>&5
18503 ac_status=$?
18504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18505 (exit $ac_status); }; }; then
18506 ac_cv_c_bigendian=yes
18507else
18508 echo "$as_me: failed program was:" >&5
18509sed 's/^/| /' conftest.$ac_ext >&5
18510
18511ac_cv_c_bigendian=no
18512fi
ac1cb8d3 18513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18514else
18515 echo "$as_me: failed program was:" >&5
18516sed 's/^/| /' conftest.$ac_ext >&5
18517
18518fi
ac1cb8d3 18519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18520if test $ac_cv_c_bigendian = unknown; then
18521if test "$cross_compiling" = yes; then
18522 ac_cv_c_bigendian=unknown
18523else
18524 cat >conftest.$ac_ext <<_ACEOF
18525/* confdefs.h. */
18526_ACEOF
18527cat confdefs.h >>conftest.$ac_ext
18528cat >>conftest.$ac_ext <<_ACEOF
18529/* end confdefs.h. */
18530main () {
18531 /* Are we little or big endian? From Harbison&Steele. */
18532 union
18533 {
18534 long l;
18535 char c[sizeof (long)];
18536 } u;
18537 u.l = 1;
18538 exit (u.c[sizeof (long) - 1] == 1);
18539}
18540_ACEOF
18541rm -f conftest$ac_exeext
18542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18543 (eval $ac_link) 2>&5
18544 ac_status=$?
18545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18548 (eval $ac_try) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); }; }; then
18552 ac_cv_c_bigendian=no
18553else
18554 echo "$as_me: program exited with status $ac_status" >&5
18555echo "$as_me: failed program was:" >&5
18556sed 's/^/| /' conftest.$ac_ext >&5
18557
18558( exit $ac_status )
18559ac_cv_c_bigendian=yes
18560fi
ac1cb8d3 18561rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18562fi
18563fi
18564fi
18565echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18566echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18567if test $ac_cv_c_bigendian = unknown; then
18568 { 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
18569echo "$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;}
18570fi
18571if test $ac_cv_c_bigendian = yes; then
18572 cat >>confdefs.h <<\_ACEOF
18573#define WORDS_BIGENDIAN 1
18574_ACEOF
18575
18576fi
18577
18578
18579ac_ext=cc
18580ac_cpp='$CXXCPP $CPPFLAGS'
18581ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18582ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18583ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18584echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18585echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
18586if test -z "$CXXCPP"; then
18587 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18589else
18590 # Double quotes because CXXCPP needs to be expanded
18591 for CXXCPP in "$CXX -E" "/lib/cpp"
18592 do
18593 ac_preproc_ok=false
18594for ac_cxx_preproc_warn_flag in '' yes
18595do
18596 # Use a header file that comes with gcc, so configuring glibc
18597 # with a fresh cross-compiler works.
18598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18599 # <limits.h> exists even on freestanding compilers.
18600 # On the NeXT, cc -E runs the code through the compiler's parser,
18601 # not just through cpp. "Syntax error" is here to catch this case.
18602 cat >conftest.$ac_ext <<_ACEOF
18603/* confdefs.h. */
18604_ACEOF
18605cat confdefs.h >>conftest.$ac_ext
18606cat >>conftest.$ac_ext <<_ACEOF
18607/* end confdefs.h. */
18608#ifdef __STDC__
18609# include <limits.h>
18610#else
18611# include <assert.h>
18612#endif
ac1cb8d3 18613 Syntax error
a848cd7e
SC
18614_ACEOF
18615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18617 ac_status=$?
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } >/dev/null; then
18623 if test -s conftest.err; then
18624 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18625 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18626 else
18627 ac_cpp_err=
18628 fi
18629else
18630 ac_cpp_err=yes
18631fi
18632if test -z "$ac_cpp_err"; then
18633 :
18634else
18635 echo "$as_me: failed program was:" >&5
18636sed 's/^/| /' conftest.$ac_ext >&5
18637
18638 # Broken: fails on valid input.
18639continue
18640fi
18641rm -f conftest.err conftest.$ac_ext
18642
18643 # OK, works on sane cases. Now check whether non-existent headers
18644 # can be detected and how.
18645 cat >conftest.$ac_ext <<_ACEOF
18646/* confdefs.h. */
18647_ACEOF
18648cat confdefs.h >>conftest.$ac_ext
18649cat >>conftest.$ac_ext <<_ACEOF
18650/* end confdefs.h. */
18651#include <ac_nonexistent.h>
18652_ACEOF
18653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18655 ac_status=$?
18656 grep -v '^ *+' conftest.er1 >conftest.err
18657 rm -f conftest.er1
18658 cat conftest.err >&5
18659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660 (exit $ac_status); } >/dev/null; then
18661 if test -s conftest.err; then
18662 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18663 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18664 else
18665 ac_cpp_err=
18666 fi
18667else
18668 ac_cpp_err=yes
18669fi
18670if test -z "$ac_cpp_err"; then
18671 # Broken: success on invalid input.
18672continue
18673else
18674 echo "$as_me: failed program was:" >&5
18675sed 's/^/| /' conftest.$ac_ext >&5
18676
18677 # Passes both tests.
18678ac_preproc_ok=:
18679break
18680fi
18681rm -f conftest.err conftest.$ac_ext
18682
18683done
18684# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18685rm -f conftest.err conftest.$ac_ext
18686if $ac_preproc_ok; then
18687 break
18688fi
18689
18690 done
18691 ac_cv_prog_CXXCPP=$CXXCPP
18692
18693fi
18694 CXXCPP=$ac_cv_prog_CXXCPP
18695else
18696 ac_cv_prog_CXXCPP=$CXXCPP
18697fi
18698echo "$as_me:$LINENO: result: $CXXCPP" >&5
18699echo "${ECHO_T}$CXXCPP" >&6
18700ac_preproc_ok=false
18701for ac_cxx_preproc_warn_flag in '' yes
18702do
18703 # Use a header file that comes with gcc, so configuring glibc
18704 # with a fresh cross-compiler works.
18705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18706 # <limits.h> exists even on freestanding compilers.
18707 # On the NeXT, cc -E runs the code through the compiler's parser,
18708 # not just through cpp. "Syntax error" is here to catch this case.
18709 cat >conftest.$ac_ext <<_ACEOF
18710/* confdefs.h. */
18711_ACEOF
18712cat confdefs.h >>conftest.$ac_ext
18713cat >>conftest.$ac_ext <<_ACEOF
18714/* end confdefs.h. */
18715#ifdef __STDC__
18716# include <limits.h>
18717#else
18718# include <assert.h>
18719#endif
ac1cb8d3 18720 Syntax error
a848cd7e
SC
18721_ACEOF
18722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18723 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18724 ac_status=$?
18725 grep -v '^ *+' conftest.er1 >conftest.err
18726 rm -f conftest.er1
18727 cat conftest.err >&5
18728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18729 (exit $ac_status); } >/dev/null; then
18730 if test -s conftest.err; then
18731 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18732 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18733 else
18734 ac_cpp_err=
18735 fi
18736else
18737 ac_cpp_err=yes
18738fi
18739if test -z "$ac_cpp_err"; then
18740 :
18741else
18742 echo "$as_me: failed program was:" >&5
18743sed 's/^/| /' conftest.$ac_ext >&5
18744
18745 # Broken: fails on valid input.
18746continue
18747fi
18748rm -f conftest.err conftest.$ac_ext
18749
18750 # OK, works on sane cases. Now check whether non-existent headers
18751 # can be detected and how.
18752 cat >conftest.$ac_ext <<_ACEOF
18753/* confdefs.h. */
18754_ACEOF
18755cat confdefs.h >>conftest.$ac_ext
18756cat >>conftest.$ac_ext <<_ACEOF
18757/* end confdefs.h. */
18758#include <ac_nonexistent.h>
18759_ACEOF
18760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18761 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18762 ac_status=$?
18763 grep -v '^ *+' conftest.er1 >conftest.err
18764 rm -f conftest.er1
18765 cat conftest.err >&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } >/dev/null; then
18768 if test -s conftest.err; then
18769 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18770 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18771 else
18772 ac_cpp_err=
18773 fi
18774else
18775 ac_cpp_err=yes
18776fi
18777if test -z "$ac_cpp_err"; then
18778 # Broken: success on invalid input.
18779continue
18780else
18781 echo "$as_me: failed program was:" >&5
18782sed 's/^/| /' conftest.$ac_ext >&5
18783
18784 # Passes both tests.
18785ac_preproc_ok=:
18786break
18787fi
18788rm -f conftest.err conftest.$ac_ext
18789
18790done
18791# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18792rm -f conftest.err conftest.$ac_ext
18793if $ac_preproc_ok; then
18794 :
18795else
18796 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18797See \`config.log' for more details." >&5
18798echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18799See \`config.log' for more details." >&2;}
18800 { (exit 1); exit 1; }; }
18801fi
18802
18803ac_ext=cc
18804ac_cpp='$CXXCPP $CPPFLAGS'
18805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18808
18809
18810
18811
18812
18813 ac_ext=cc
18814ac_cpp='$CXXCPP $CPPFLAGS'
18815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18818
18819
18820
18821for ac_header in iostream
18822do
18823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18824if eval "test \"\${$as_ac_Header+set}\" = set"; then
18825 echo "$as_me:$LINENO: checking for $ac_header" >&5
18826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18827if eval "test \"\${$as_ac_Header+set}\" = set"; then
18828 echo $ECHO_N "(cached) $ECHO_C" >&6
18829fi
18830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18832else
18833 # Is the header compilable?
18834echo "$as_me:$LINENO: checking $ac_header usability" >&5
18835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18836cat >conftest.$ac_ext <<_ACEOF
18837/* confdefs.h. */
18838_ACEOF
18839cat confdefs.h >>conftest.$ac_ext
18840cat >>conftest.$ac_ext <<_ACEOF
18841/* end confdefs.h. */
18842$ac_includes_default
18843#include <$ac_header>
18844_ACEOF
18845rm -f conftest.$ac_objext
18846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18847 (eval $ac_compile) 2>conftest.er1
a848cd7e 18848 ac_status=$?
ac1cb8d3
VS
18849 grep -v '^ *+' conftest.er1 >conftest.err
18850 rm -f conftest.er1
18851 cat conftest.err >&5
a848cd7e
SC
18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18853 (exit $ac_status); } &&
7714864e 18854 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18856 (eval $ac_try) 2>&5
18857 ac_status=$?
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); }; } &&
18860 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18862 (eval $ac_try) 2>&5
18863 ac_status=$?
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; }; then
18866 ac_header_compiler=yes
18867else
18868 echo "$as_me: failed program was:" >&5
18869sed 's/^/| /' conftest.$ac_ext >&5
18870
18871ac_header_compiler=no
18872fi
ac1cb8d3 18873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18875echo "${ECHO_T}$ac_header_compiler" >&6
18876
18877# Is the header present?
18878echo "$as_me:$LINENO: checking $ac_header presence" >&5
18879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18880cat >conftest.$ac_ext <<_ACEOF
18881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
18886#include <$ac_header>
18887_ACEOF
18888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18890 ac_status=$?
18891 grep -v '^ *+' conftest.er1 >conftest.err
18892 rm -f conftest.er1
18893 cat conftest.err >&5
18894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18895 (exit $ac_status); } >/dev/null; then
18896 if test -s conftest.err; then
18897 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 18898 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
18899 else
18900 ac_cpp_err=
18901 fi
18902else
18903 ac_cpp_err=yes
18904fi
18905if test -z "$ac_cpp_err"; then
18906 ac_header_preproc=yes
18907else
18908 echo "$as_me: failed program was:" >&5
18909sed 's/^/| /' conftest.$ac_ext >&5
18910
18911 ac_header_preproc=no
18912fi
18913rm -f conftest.err conftest.$ac_ext
18914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18915echo "${ECHO_T}$ac_header_preproc" >&6
18916
18917# So? What about this header?
ac1cb8d3
VS
18918case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18919 yes:no: )
a848cd7e
SC
18920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
18922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18924 ac_header_preproc=yes
a848cd7e 18925 ;;
ac1cb8d3 18926 no:yes:* )
a848cd7e
SC
18927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
18929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
18935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
18937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
18939 (
18940 cat <<\_ASBOX
ac1cb8d3
VS
18941## ----------------------------------------- ##
18942## Report this to wx-dev@lists.wxwidgets.org ##
18943## ----------------------------------------- ##
a848cd7e
SC
18944_ASBOX
18945 ) |
18946 sed "s/^/$as_me: WARNING: /" >&2
18947 ;;
18948esac
18949echo "$as_me:$LINENO: checking for $ac_header" >&5
18950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18951if eval "test \"\${$as_ac_Header+set}\" = set"; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18953else
ac1cb8d3 18954 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
18955fi
18956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18958
18959fi
18960if test `eval echo '${'$as_ac_Header'}'` = yes; then
18961 cat >>confdefs.h <<_ACEOF
18962#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18963_ACEOF
18964
18965fi
18966
18967done
18968
18969
18970 if test "$ac_cv_header_iostream" = "yes" ; then
18971 :
18972 else
18973 cat >>confdefs.h <<\_ACEOF
18974#define wxUSE_IOSTREAMH 1
18975_ACEOF
18976
18977 fi
18978
18979 ac_ext=c
18980ac_cpp='$CPP $CPPFLAGS'
18981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18983ac_compiler_gnu=$ac_cv_c_compiler_gnu
18984
18985
18986
18987
18988 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18989echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18990if test "${wx_cv_cpp_bool+set}" = set; then
18991 echo $ECHO_N "(cached) $ECHO_C" >&6
18992else
18993
18994
18995
18996 ac_ext=cc
18997ac_cpp='$CXXCPP $CPPFLAGS'
18998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19001
19002
19003 cat >conftest.$ac_ext <<_ACEOF
19004/* confdefs.h. */
19005_ACEOF
19006cat confdefs.h >>conftest.$ac_ext
19007cat >>conftest.$ac_ext <<_ACEOF
19008/* end confdefs.h. */
19009
19010
19011int
19012main ()
19013{
19014
19015 bool b = true;
19016
19017 return 0;
19018
19019 ;
19020 return 0;
19021}
19022_ACEOF
19023rm -f conftest.$ac_objext
19024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19025 (eval $ac_compile) 2>conftest.er1
a848cd7e 19026 ac_status=$?
ac1cb8d3
VS
19027 grep -v '^ *+' conftest.er1 >conftest.err
19028 rm -f conftest.er1
19029 cat conftest.err >&5
a848cd7e
SC
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } &&
7714864e 19032 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19034 (eval $ac_try) 2>&5
19035 ac_status=$?
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; } &&
19038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; }; then
19044
19045 wx_cv_cpp_bool=yes
19046
19047else
19048 echo "$as_me: failed program was:" >&5
19049sed 's/^/| /' conftest.$ac_ext >&5
19050
19051
19052 wx_cv_cpp_bool=no
19053
19054
19055fi
ac1cb8d3 19056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19057
19058 ac_ext=c
19059ac_cpp='$CPP $CPPFLAGS'
19060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19062ac_compiler_gnu=$ac_cv_c_compiler_gnu
19063
19064
19065fi
19066echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19067echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19068
19069 if test "$wx_cv_cpp_bool" = "yes"; then
19070 cat >>confdefs.h <<\_ACEOF
19071#define HAVE_BOOL 1
19072_ACEOF
19073
19074 fi
19075
19076
19077
19078 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19079echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19080if test "${wx_cv_explicit+set}" = set; then
19081 echo $ECHO_N "(cached) $ECHO_C" >&6
19082else
19083
19084
19085
19086 ac_ext=cc
19087ac_cpp='$CXXCPP $CPPFLAGS'
19088ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19089ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19090ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19091
19092
19093 cat >conftest.$ac_ext <<_ACEOF
19094/* confdefs.h. */
19095_ACEOF
19096cat confdefs.h >>conftest.$ac_ext
19097cat >>conftest.$ac_ext <<_ACEOF
19098/* end confdefs.h. */
19099
19100 class Foo { public: explicit Foo(int) {} };
19101
19102int
19103main ()
19104{
19105
19106 return 0;
19107
19108 ;
19109 return 0;
19110}
19111_ACEOF
19112rm -f conftest.$ac_objext
19113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19114 (eval $ac_compile) 2>conftest.er1
a848cd7e 19115 ac_status=$?
ac1cb8d3
VS
19116 grep -v '^ *+' conftest.er1 >conftest.err
19117 rm -f conftest.er1
19118 cat conftest.err >&5
a848cd7e
SC
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } &&
7714864e 19121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19123 (eval $ac_try) 2>&5
19124 ac_status=$?
19125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19126 (exit $ac_status); }; } &&
19127 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129 (eval $ac_try) 2>&5
19130 ac_status=$?
19131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132 (exit $ac_status); }; }; then
19133
19134 cat >conftest.$ac_ext <<_ACEOF
19135/* confdefs.h. */
19136_ACEOF
19137cat confdefs.h >>conftest.$ac_ext
19138cat >>conftest.$ac_ext <<_ACEOF
19139/* end confdefs.h. */
19140
19141 class Foo { public: explicit Foo(int) {} };
19142 static void TakeFoo(const Foo& foo) { }
19143
19144int
19145main ()
19146{
19147
19148 TakeFoo(17);
19149 return 0;
19150
19151 ;
19152 return 0;
19153}
19154_ACEOF
19155rm -f conftest.$ac_objext
19156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19157 (eval $ac_compile) 2>conftest.er1
a848cd7e 19158 ac_status=$?
ac1cb8d3
VS
19159 grep -v '^ *+' conftest.er1 >conftest.err
19160 rm -f conftest.er1
19161 cat conftest.err >&5
a848cd7e
SC
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } &&
7714864e 19164 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; } &&
19170 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; }; then
19176 wx_cv_explicit=no
19177else
19178 echo "$as_me: failed program was:" >&5
19179sed 's/^/| /' conftest.$ac_ext >&5
19180
19181wx_cv_explicit=yes
19182
19183fi
ac1cb8d3 19184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19185
19186else
19187 echo "$as_me: failed program was:" >&5
19188sed 's/^/| /' conftest.$ac_ext >&5
19189
19190wx_cv_explicit=no
19191
19192fi
ac1cb8d3 19193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19194
19195 ac_ext=c
19196ac_cpp='$CPP $CPPFLAGS'
19197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19199ac_compiler_gnu=$ac_cv_c_compiler_gnu
19200
19201
19202fi
19203echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19204echo "${ECHO_T}$wx_cv_explicit" >&6
19205
19206 if test "$wx_cv_explicit" = "yes"; then
19207 cat >>confdefs.h <<\_ACEOF
19208#define HAVE_EXPLICIT 1
19209_ACEOF
19210
19211 fi
19212
19213
19214echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19215echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19216if test "${ac_cv_cxx_const_cast+set}" = set; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19218else
19219
19220
19221 ac_ext=cc
19222ac_cpp='$CXXCPP $CPPFLAGS'
19223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19226
19227 cat >conftest.$ac_ext <<_ACEOF
19228/* confdefs.h. */
19229_ACEOF
19230cat confdefs.h >>conftest.$ac_ext
19231cat >>conftest.$ac_ext <<_ACEOF
19232/* end confdefs.h. */
19233
19234int
19235main ()
19236{
19237int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19238 ;
19239 return 0;
19240}
19241_ACEOF
19242rm -f conftest.$ac_objext
19243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19244 (eval $ac_compile) 2>conftest.er1
a848cd7e 19245 ac_status=$?
ac1cb8d3
VS
19246 grep -v '^ *+' conftest.er1 >conftest.err
19247 rm -f conftest.er1
19248 cat conftest.err >&5
a848cd7e
SC
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); } &&
7714864e 19251 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } &&
19257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19263 ac_cv_cxx_const_cast=yes
19264else
19265 echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
19268ac_cv_cxx_const_cast=no
19269fi
ac1cb8d3 19270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19271 ac_ext=c
19272ac_cpp='$CPP $CPPFLAGS'
19273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19275ac_compiler_gnu=$ac_cv_c_compiler_gnu
19276
19277
19278fi
19279echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19280echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19281if test "$ac_cv_cxx_const_cast" = yes; then
19282
19283cat >>confdefs.h <<\_ACEOF
19284#define HAVE_CONST_CAST
19285_ACEOF
19286
19287fi
19288
7714864e
RL
19289echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19290echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19291if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19293else
19294
19295
19296 ac_ext=cc
19297ac_cpp='$CXXCPP $CPPFLAGS'
19298ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19301
19302 cat >conftest.$ac_ext <<_ACEOF
19303/* confdefs.h. */
19304_ACEOF
19305cat confdefs.h >>conftest.$ac_ext
19306cat >>conftest.$ac_ext <<_ACEOF
19307/* end confdefs.h. */
19308#include <typeinfo>
19309class Base { public : Base () {} virtual void f () = 0;};
19310class Derived : public Base { public : Derived () {} virtual void f () {} };
19311class Unrelated { public : Unrelated () {} };
19312int g (Unrelated&) { return 0; }
19313int
19314main ()
19315{
19316
19317Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19318 ;
19319 return 0;
19320}
19321_ACEOF
19322rm -f conftest.$ac_objext
19323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19324 (eval $ac_compile) 2>conftest.er1
19325 ac_status=$?
19326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -f conftest.er1
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } &&
19331 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19333 (eval $ac_try) 2>&5
19334 ac_status=$?
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; } &&
19337 { ac_try='test -s conftest.$ac_objext'
19338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19339 (eval $ac_try) 2>&5
19340 ac_status=$?
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); }; }; then
19343 ac_cv_cxx_reinterpret_cast=yes
19344else
19345 echo "$as_me: failed program was:" >&5
19346sed 's/^/| /' conftest.$ac_ext >&5
19347
19348ac_cv_cxx_reinterpret_cast=no
19349fi
19350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19351 ac_ext=c
19352ac_cpp='$CPP $CPPFLAGS'
19353ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19354ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19355ac_compiler_gnu=$ac_cv_c_compiler_gnu
19356
19357
19358fi
19359echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19360echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19361if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19362
19363cat >>confdefs.h <<\_ACEOF
19364#define HAVE_REINTERPRET_CAST
19365_ACEOF
19366
19367fi
19368
a848cd7e
SC
19369echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19370echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19371if test "${ac_cv_cxx_static_cast+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19373else
19374
19375
19376 ac_ext=cc
19377ac_cpp='$CXXCPP $CPPFLAGS'
19378ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19379ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19380ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19381
19382 cat >conftest.$ac_ext <<_ACEOF
19383/* confdefs.h. */
19384_ACEOF
19385cat confdefs.h >>conftest.$ac_ext
19386cat >>conftest.$ac_ext <<_ACEOF
19387/* end confdefs.h. */
19388#include <typeinfo>
19389class Base { public : Base () {} virtual void f () = 0; };
19390class Derived : public Base { public : Derived () {} virtual void f () {} };
19391int g (Derived&) { return 0; }
19392int
19393main ()
19394{
19395
19396Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19397 ;
19398 return 0;
19399}
19400_ACEOF
19401rm -f conftest.$ac_objext
19402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19403 (eval $ac_compile) 2>conftest.er1
a848cd7e 19404 ac_status=$?
ac1cb8d3
VS
19405 grep -v '^ *+' conftest.er1 >conftest.err
19406 rm -f conftest.er1
19407 cat conftest.err >&5
a848cd7e
SC
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); } &&
7714864e 19410 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19412 (eval $ac_try) 2>&5
19413 ac_status=$?
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); }; } &&
19416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19419 ac_status=$?
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; }; then
19422 ac_cv_cxx_static_cast=yes
19423else
19424 echo "$as_me: failed program was:" >&5
19425sed 's/^/| /' conftest.$ac_ext >&5
19426
19427ac_cv_cxx_static_cast=no
19428fi
ac1cb8d3 19429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19430 ac_ext=c
19431ac_cpp='$CPP $CPPFLAGS'
19432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434ac_compiler_gnu=$ac_cv_c_compiler_gnu
19435
19436
19437fi
19438echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19439echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19440if test "$ac_cv_cxx_static_cast" = yes; then
19441
19442cat >>confdefs.h <<\_ACEOF
19443#define HAVE_STATIC_CAST
19444_ACEOF
19445
19446fi
19447
19448
19449if test "$wxUSE_STL" = "yes"; then
19450 ac_ext=cc
19451ac_cpp='$CXXCPP $CPPFLAGS'
19452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19455
19456
19457 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19458echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19459 cat >conftest.$ac_ext <<_ACEOF
19460/* confdefs.h. */
19461_ACEOF
19462cat confdefs.h >>conftest.$ac_ext
19463cat >>conftest.$ac_ext <<_ACEOF
19464/* end confdefs.h. */
19465#include <string>
19466 #include <functional>
19467 #include <algorithm>
19468 #include <vector>
19469 #include <list>
19470int
19471main ()
19472{
19473std::vector<int> moo;
19474 std::list<int> foo;
19475 std::vector<int>::iterator it =
19476 std::find_if(moo.begin(), moo.end(),
19477 std::bind2nd(std::less<int>(), 3));
19478 ;
19479 return 0;
19480}
19481_ACEOF
19482rm -f conftest.$ac_objext
19483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19484 (eval $ac_compile) 2>conftest.er1
a848cd7e 19485 ac_status=$?
ac1cb8d3
VS
19486 grep -v '^ *+' conftest.er1 >conftest.err
19487 rm -f conftest.er1
19488 cat conftest.err >&5
a848cd7e
SC
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } &&
7714864e 19491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19493 (eval $ac_try) 2>&5
19494 ac_status=$?
19495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); }; } &&
19497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19499 (eval $ac_try) 2>&5
19500 ac_status=$?
19501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19502 (exit $ac_status); }; }; then
19503 echo "$as_me:$LINENO: result: yes" >&5
19504echo "${ECHO_T}yes" >&6
19505else
19506 echo "$as_me: failed program was:" >&5
19507sed 's/^/| /' conftest.$ac_ext >&5
19508
19509echo "$as_me:$LINENO: result: no" >&5
19510echo "${ECHO_T}no" >&6
19511 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19512echo "$as_me: error: Basic STL functionality missing" >&2;}
19513 { (exit 1); exit 1; }; }
19514fi
ac1cb8d3 19515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19516
19517 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19518echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19519 cat >conftest.$ac_ext <<_ACEOF
19520/* confdefs.h. */
19521_ACEOF
19522cat confdefs.h >>conftest.$ac_ext
19523cat >>conftest.$ac_ext <<_ACEOF
19524/* end confdefs.h. */
19525#include <string>
19526int
19527main ()
19528{
19529std::wstring foo;
19530 ;
19531 return 0;
19532}
19533_ACEOF
19534rm -f conftest.$ac_objext
19535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19536 (eval $ac_compile) 2>conftest.er1
a848cd7e 19537 ac_status=$?
ac1cb8d3
VS
19538 grep -v '^ *+' conftest.er1 >conftest.err
19539 rm -f conftest.er1
19540 cat conftest.err >&5
a848cd7e
SC
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); } &&
7714864e 19543 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19545 (eval $ac_try) 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; } &&
19549 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551 (eval $ac_try) 2>&5
19552 ac_status=$?
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); }; }; then
19555 echo "$as_me:$LINENO: result: yes" >&5
19556echo "${ECHO_T}yes" >&6
19557 cat >>confdefs.h <<\_ACEOF
19558#define HAVE_STD_WSTRING 1
19559_ACEOF
19560
19561else
19562 echo "$as_me: failed program was:" >&5
19563sed 's/^/| /' conftest.$ac_ext >&5
19564
19565echo "$as_me:$LINENO: result: no" >&5
19566echo "${ECHO_T}no" >&6
19567fi
ac1cb8d3 19568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19569
19570 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19571echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19572 cat >conftest.$ac_ext <<_ACEOF
19573/* confdefs.h. */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
19577/* end confdefs.h. */
19578#include <string>
19579int
19580main ()
19581{
19582std::string foo, bar;
19583 foo.compare(bar);
19584 foo.compare(1, 1, bar);
19585 foo.compare(1, 1, bar, 1, 1);
19586 foo.compare("");
19587 foo.compare(1, 1, "");
19588 foo.compare(1, 1, "", 2);
19589 ;
19590 return 0;
19591}
19592_ACEOF
19593rm -f conftest.$ac_objext
19594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19595 (eval $ac_compile) 2>conftest.er1
a848cd7e 19596 ac_status=$?
ac1cb8d3
VS
19597 grep -v '^ *+' conftest.er1 >conftest.err
19598 rm -f conftest.er1
19599 cat conftest.err >&5
a848cd7e
SC
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); } &&
7714864e 19602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 echo "$as_me:$LINENO: result: yes" >&5
19615echo "${ECHO_T}yes" >&6
19616 cat >>confdefs.h <<\_ACEOF
19617#define HAVE_STD_STRING_COMPARE 1
19618_ACEOF
19619
19620else
19621 echo "$as_me: failed program was:" >&5
19622sed 's/^/| /' conftest.$ac_ext >&5
19623
19624echo "$as_me:$LINENO: result: no" >&5
19625echo "${ECHO_T}no" >&6
19626fi
ac1cb8d3 19627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19628
19629 if test "${ac_cv_header_hash_map+set}" = set; then
19630 echo "$as_me:$LINENO: checking for hash_map" >&5
19631echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19632if test "${ac_cv_header_hash_map+set}" = set; then
19633 echo $ECHO_N "(cached) $ECHO_C" >&6
19634fi
19635echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19636echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19637else
19638 # Is the header compilable?
19639echo "$as_me:$LINENO: checking hash_map usability" >&5
19640echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
19641cat >conftest.$ac_ext <<_ACEOF
19642/* confdefs.h. */
19643_ACEOF
19644cat confdefs.h >>conftest.$ac_ext
19645cat >>conftest.$ac_ext <<_ACEOF
19646/* end confdefs.h. */
19647$ac_includes_default
19648#include <hash_map>
19649_ACEOF
19650rm -f conftest.$ac_objext
19651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19652 (eval $ac_compile) 2>conftest.er1
bdcade0a 19653 ac_status=$?
ac1cb8d3
VS
19654 grep -v '^ *+' conftest.er1 >conftest.err
19655 rm -f conftest.er1
19656 cat conftest.err >&5
bdcade0a
MB
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } &&
7714864e 19659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19661 (eval $ac_try) 2>&5
19662 ac_status=$?
19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19664 (exit $ac_status); }; } &&
19665 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19667 (eval $ac_try) 2>&5
19668 ac_status=$?
19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670 (exit $ac_status); }; }; then
19671 ac_header_compiler=yes
19672else
19673 echo "$as_me: failed program was:" >&5
19674sed 's/^/| /' conftest.$ac_ext >&5
19675
19676ac_header_compiler=no
19677fi
ac1cb8d3 19678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19680echo "${ECHO_T}$ac_header_compiler" >&6
19681
19682# Is the header present?
19683echo "$as_me:$LINENO: checking hash_map presence" >&5
19684echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
19685cat >conftest.$ac_ext <<_ACEOF
19686/* confdefs.h. */
19687_ACEOF
19688cat confdefs.h >>conftest.$ac_ext
19689cat >>conftest.$ac_ext <<_ACEOF
19690/* end confdefs.h. */
19691#include <hash_map>
19692_ACEOF
19693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19695 ac_status=$?
19696 grep -v '^ *+' conftest.er1 >conftest.err
19697 rm -f conftest.er1
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } >/dev/null; then
19701 if test -s conftest.err; then
19702 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19703 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19704 else
19705 ac_cpp_err=
19706 fi
19707else
19708 ac_cpp_err=yes
19709fi
19710if test -z "$ac_cpp_err"; then
19711 ac_header_preproc=yes
19712else
19713 echo "$as_me: failed program was:" >&5
19714sed 's/^/| /' conftest.$ac_ext >&5
19715
19716 ac_header_preproc=no
19717fi
19718rm -f conftest.err conftest.$ac_ext
19719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19720echo "${ECHO_T}$ac_header_preproc" >&6
19721
19722# So? What about this header?
ac1cb8d3
VS
19723case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19724 yes:no: )
bdcade0a
MB
19725 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19726echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19727 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
19728echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
19729 ac_header_preproc=yes
bdcade0a 19730 ;;
ac1cb8d3 19731 no:yes:* )
bdcade0a
MB
19732 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
19733echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19734 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
19735echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
19736 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
19737echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
19738 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
19739echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19740 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
19741echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19742 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
19743echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19744 (
19745 cat <<\_ASBOX
ac1cb8d3
VS
19746## ----------------------------------------- ##
19747## Report this to wx-dev@lists.wxwidgets.org ##
19748## ----------------------------------------- ##
bdcade0a
MB
19749_ASBOX
19750 ) |
19751 sed "s/^/$as_me: WARNING: /" >&2
19752 ;;
19753esac
19754echo "$as_me:$LINENO: checking for hash_map" >&5
19755echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
19756if test "${ac_cv_header_hash_map+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19758else
19759 ac_cv_header_hash_map=$ac_header_preproc
19760fi
19761echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
19762echo "${ECHO_T}$ac_cv_header_hash_map" >&6
19763
19764fi
19765if test $ac_cv_header_hash_map = yes; then
19766 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19767echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19768 cat >conftest.$ac_ext <<_ACEOF
19769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
19773/* end confdefs.h. */
19774#include <hash_map>
19775 #include <hash_set>
19776int
19777main ()
19778{
19779std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
19780 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
19781 ;
19782 return 0;
19783}
19784_ACEOF
19785rm -f conftest.$ac_objext
19786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19787 (eval $ac_compile) 2>conftest.er1
bdcade0a 19788 ac_status=$?
ac1cb8d3
VS
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
bdcade0a
MB
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
7714864e 19794 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; } &&
19800 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19802 (eval $ac_try) 2>&5
19803 ac_status=$?
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
19806 echo "$as_me:$LINENO: result: yes" >&5
19807echo "${ECHO_T}yes" >&6
19808 cat >>confdefs.h <<\_ACEOF
19809#define HAVE_HASH_MAP 1
19810_ACEOF
19811
19812 cat >>confdefs.h <<\_ACEOF
19813#define HAVE_STD_HASH_MAP 1
19814_ACEOF
19815
19816else
19817 echo "$as_me: failed program was:" >&5
19818sed 's/^/| /' conftest.$ac_ext >&5
19819
19820echo "$as_me:$LINENO: result: no" >&5
19821echo "${ECHO_T}no" >&6
19822fi
ac1cb8d3 19823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19824
19825fi
19826
19827
19828
19829 if test "${ac_cv_header_ext_hash_map+set}" = set; then
19830 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19831echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19832if test "${ac_cv_header_ext_hash_map+set}" = set; then
19833 echo $ECHO_N "(cached) $ECHO_C" >&6
19834fi
19835echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19836echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19837else
19838 # Is the header compilable?
19839echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
19840echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
19841cat >conftest.$ac_ext <<_ACEOF
19842/* confdefs.h. */
19843_ACEOF
19844cat confdefs.h >>conftest.$ac_ext
19845cat >>conftest.$ac_ext <<_ACEOF
19846/* end confdefs.h. */
19847$ac_includes_default
19848#include <ext/hash_map>
19849_ACEOF
19850rm -f conftest.$ac_objext
19851if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19852 (eval $ac_compile) 2>conftest.er1
bdcade0a 19853 ac_status=$?
ac1cb8d3
VS
19854 grep -v '^ *+' conftest.er1 >conftest.err
19855 rm -f conftest.er1
19856 cat conftest.err >&5
bdcade0a
MB
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
7714864e 19859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19861 (eval $ac_try) 2>&5
19862 ac_status=$?
19863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19864 (exit $ac_status); }; } &&
19865 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19868 ac_status=$?
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; }; then
19871 ac_header_compiler=yes
19872else
19873 echo "$as_me: failed program was:" >&5
19874sed 's/^/| /' conftest.$ac_ext >&5
19875
19876ac_header_compiler=no
19877fi
ac1cb8d3 19878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
19879echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19880echo "${ECHO_T}$ac_header_compiler" >&6
19881
19882# Is the header present?
19883echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
19884echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
19885cat >conftest.$ac_ext <<_ACEOF
19886/* confdefs.h. */
19887_ACEOF
19888cat confdefs.h >>conftest.$ac_ext
19889cat >>conftest.$ac_ext <<_ACEOF
19890/* end confdefs.h. */
19891#include <ext/hash_map>
19892_ACEOF
19893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19895 ac_status=$?
19896 grep -v '^ *+' conftest.er1 >conftest.err
19897 rm -f conftest.er1
19898 cat conftest.err >&5
19899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19900 (exit $ac_status); } >/dev/null; then
19901 if test -s conftest.err; then
19902 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19903 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
19904 else
19905 ac_cpp_err=
19906 fi
19907else
19908 ac_cpp_err=yes
19909fi
19910if test -z "$ac_cpp_err"; then
19911 ac_header_preproc=yes
19912else
19913 echo "$as_me: failed program was:" >&5
19914sed 's/^/| /' conftest.$ac_ext >&5
19915
19916 ac_header_preproc=no
19917fi
19918rm -f conftest.err conftest.$ac_ext
19919echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19920echo "${ECHO_T}$ac_header_preproc" >&6
19921
19922# So? What about this header?
ac1cb8d3
VS
19923case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19924 yes:no: )
bdcade0a
MB
19925 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
19926echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19927 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
19928echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
19929 ac_header_preproc=yes
bdcade0a 19930 ;;
ac1cb8d3 19931 no:yes:* )
bdcade0a
MB
19932 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
19933echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19934 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
19935echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
19936 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
19937echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
19938 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
19939echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
19940 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
19941echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19942 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
19943echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
19944 (
19945 cat <<\_ASBOX
ac1cb8d3
VS
19946## ----------------------------------------- ##
19947## Report this to wx-dev@lists.wxwidgets.org ##
19948## ----------------------------------------- ##
bdcade0a
MB
19949_ASBOX
19950 ) |
19951 sed "s/^/$as_me: WARNING: /" >&2
19952 ;;
19953esac
19954echo "$as_me:$LINENO: checking for ext/hash_map" >&5
19955echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
19956if test "${ac_cv_header_ext_hash_map+set}" = set; then
19957 echo $ECHO_N "(cached) $ECHO_C" >&6
19958else
19959 ac_cv_header_ext_hash_map=$ac_header_preproc
19960fi
19961echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
19962echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
19963
19964fi
19965if test $ac_cv_header_ext_hash_map = yes; then
19966 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
19967echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
19968 cat >conftest.$ac_ext <<_ACEOF
19969/* confdefs.h. */
19970_ACEOF
19971cat confdefs.h >>conftest.$ac_ext
19972cat >>conftest.$ac_ext <<_ACEOF
19973/* end confdefs.h. */
19974#include <ext/hash_map>
19975 #include <ext/hash_set>
19976int
19977main ()
19978{
19979__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
19980 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
19981 ;
19982 return 0;
19983}
19984_ACEOF
19985rm -f conftest.$ac_objext
19986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19987 (eval $ac_compile) 2>conftest.er1
bdcade0a 19988 ac_status=$?
ac1cb8d3
VS
19989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
bdcade0a
MB
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
7714864e 19994 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 echo "$as_me:$LINENO: result: yes" >&5
20007echo "${ECHO_T}yes" >&6
20008 cat >>confdefs.h <<\_ACEOF
20009#define HAVE_EXT_HASH_MAP 1
20010_ACEOF
20011
20012 cat >>confdefs.h <<\_ACEOF
20013#define HAVE_GNU_CXX_HASH_MAP 1
20014_ACEOF
20015
20016else
20017 echo "$as_me: failed program was:" >&5
20018sed 's/^/| /' conftest.$ac_ext >&5
20019
20020echo "$as_me:$LINENO: result: no" >&5
20021echo "${ECHO_T}no" >&6
20022fi
ac1cb8d3 20023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20024
20025fi
20026
20027
a848cd7e
SC
20028
20029 ac_ext=c
20030ac_cpp='$CPP $CPPFLAGS'
20031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20033ac_compiler_gnu=$ac_cv_c_compiler_gnu
20034
20035fi
20036
20037
20038SEARCH_INCLUDE="\
20039 /usr/local/include \
20040 \
20041 /usr/Motif-2.1/include \
20042 /usr/Motif-1.2/include \
20043 /usr/include/Motif1.2 \
20044 /opt/xpm/include/X11 \
20045 /opt/GBxpm/include/ \
20046 /opt/GBxpm/X11/include/ \
20047 \
20048 /usr/dt/include \
20049 /usr/openwin/include \
20050 \
20051 /usr/include/Xm \
20052 \
20053 /usr/X11R6/include \
20054 /usr/X11R6.4/include \
20055 /usr/X11R5/include \
20056 /usr/X11R4/include \
20057 \
20058 /usr/include/X11R6 \
20059 /usr/include/X11R5 \
20060 /usr/include/X11R4 \
20061 \
20062 /usr/local/X11R6/include \
20063 /usr/local/X11R5/include \
20064 /usr/local/X11R4/include \
20065 \
20066 /usr/local/include/X11R6 \
20067 /usr/local/include/X11R5 \
20068 /usr/local/include/X11R4 \
20069 \
20070 /usr/X11/include \
20071 /usr/include/X11 \
20072 /usr/local/X11/include \
20073 /usr/local/include/X11 \
20074 \
20075 /usr/X386/include \
20076 /usr/x386/include \
20077 /usr/XFree86/include/X11 \
20078 \
20079 X:/XFree86/include \
20080 X:/XFree86/include/X11 \
20081 \
20082 /usr/include/gtk \
20083 /usr/local/include/gtk \
20084 /usr/include/glib \
20085 /usr/local/include/glib \
20086 \
20087 /usr/include/qt \
20088 /usr/local/include/qt \
20089 \
20090 /usr/local/arm/3.3.2/include \
20091 \
20092 /usr/include/windows \
20093 /usr/include/wine \
20094 /usr/local/include/wine \
20095 \
20096 /usr/unsupported/include \
20097 /usr/athena/include \
20098 /usr/local/x11r5/include \
20099 /usr/lpp/Xamples/include \
20100 \
20101 /usr/openwin/share/include"
20102
20103SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20104
20105
20106cat >confcache <<\_ACEOF
20107# This file is a shell script that caches the results of configure
20108# tests run on this system so they can be shared between configure
20109# scripts and configure runs, see configure's option --config-cache.
20110# It is not useful on other systems. If it contains results you don't
20111# want to keep, you may remove or edit it.
20112#
20113# config.status only pays attention to the cache file if you give it
20114# the --recheck option to rerun configure.
20115#
20116# `ac_cv_env_foo' variables (set or unset) will be overridden when
20117# loading this file, other *unset* `ac_cv_foo' will be assigned the
20118# following values.
20119
20120_ACEOF
20121
20122# The following way of writing the cache mishandles newlines in values,
20123# but we know of no workaround that is simple, portable, and efficient.
20124# So, don't put newlines in cache variables' values.
20125# Ultrix sh set writes to stderr and can't be redirected directly,
20126# and sets the high bit in the cache file unless we assign to the vars.
20127{
20128 (set) 2>&1 |
20129 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20130 *ac_space=\ *)
20131 # `set' does not quote correctly, so add quotes (double-quote
20132 # substitution turns \\\\ into \\, and sed turns \\ into \).
20133 sed -n \
ac1cb8d3
VS
20134 "s/'/'\\\\''/g;
20135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20136 ;;
20137 *)
20138 # `set' quotes correctly as required by POSIX, so do not add quotes.
20139 sed -n \
ac1cb8d3 20140 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20141 ;;
20142 esac;
20143} |
20144 sed '
20145 t clear
20146 : clear
20147 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20148 t end
20149 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20150 : end' >>confcache
20151if diff $cache_file confcache >/dev/null 2>&1; then :; else
20152 if test -w $cache_file; then
20153 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20154 cat confcache >$cache_file
20155 else
20156 echo "not updating unwritable cache $cache_file"
20157 fi
20158fi
20159rm -f confcache
20160
20161if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20162 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20163echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20164if test "${wx_cv_lib_glibc21+set}" = set; then
20165 echo $ECHO_N "(cached) $ECHO_C" >&6
20166else
20167
20168 cat >conftest.$ac_ext <<_ACEOF
20169/* confdefs.h. */
20170_ACEOF
20171cat confdefs.h >>conftest.$ac_ext
20172cat >>conftest.$ac_ext <<_ACEOF
20173/* end confdefs.h. */
20174#include <features.h>
20175int
20176main ()
20177{
20178
20179 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20180 #error not glibc2.1
20181 #endif
20182
20183 ;
20184 return 0;
20185}
20186_ACEOF
20187rm -f conftest.$ac_objext
20188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20189 (eval $ac_compile) 2>conftest.er1
a848cd7e 20190 ac_status=$?
ac1cb8d3
VS
20191 grep -v '^ *+' conftest.er1 >conftest.err
20192 rm -f conftest.er1
20193 cat conftest.err >&5
a848cd7e
SC
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } &&
7714864e 20196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20198 (eval $ac_try) 2>&5
20199 ac_status=$?
20200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201 (exit $ac_status); }; } &&
20202 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20204 (eval $ac_try) 2>&5
20205 ac_status=$?
20206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207 (exit $ac_status); }; }; then
20208
20209 wx_cv_lib_glibc21=yes
20210
20211else
20212 echo "$as_me: failed program was:" >&5
20213sed 's/^/| /' conftest.$ac_ext >&5
20214
20215
20216 wx_cv_lib_glibc21=no
20217
20218
20219fi
ac1cb8d3 20220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20221
20222fi
20223echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20224echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20225 if test "$wx_cv_lib_glibc21" = "yes"; then
20226 cat >>confdefs.h <<\_ACEOF
20227#define wxHAVE_GLIBC2 1
20228_ACEOF
20229
20230 fi
20231fi
20232
20233if test "x$wx_cv_lib_glibc21" = "xyes"; then
20234 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20235 cat >>confdefs.h <<\_ACEOF
20236#define _GNU_SOURCE 1
20237_ACEOF
20238
20239 fi
20240fi
20241
20242
20243
20244if test "$wxUSE_REGEX" != "no"; then
20245 cat >>confdefs.h <<\_ACEOF
20246#define wxUSE_REGEX 1
20247_ACEOF
20248
20249
20250 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20251 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20252echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20253 wxUSE_REGEX=builtin
20254 fi
20255
20256 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20257 if test "${ac_cv_header_regex_h+set}" = set; then
20258 echo "$as_me:$LINENO: checking for regex.h" >&5
20259echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20260if test "${ac_cv_header_regex_h+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
20262fi
20263echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20264echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20265else
20266 # Is the header compilable?
20267echo "$as_me:$LINENO: checking regex.h usability" >&5
20268echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20269cat >conftest.$ac_ext <<_ACEOF
20270/* confdefs.h. */
20271_ACEOF
20272cat confdefs.h >>conftest.$ac_ext
20273cat >>conftest.$ac_ext <<_ACEOF
20274/* end confdefs.h. */
20275$ac_includes_default
20276#include <regex.h>
20277_ACEOF
20278rm -f conftest.$ac_objext
20279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20280 (eval $ac_compile) 2>conftest.er1
a848cd7e 20281 ac_status=$?
ac1cb8d3
VS
20282 grep -v '^ *+' conftest.er1 >conftest.err
20283 rm -f conftest.er1
20284 cat conftest.err >&5
a848cd7e
SC
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } &&
7714864e 20287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20290 ac_status=$?
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; } &&
20293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 ac_header_compiler=yes
20300else
20301 echo "$as_me: failed program was:" >&5
20302sed 's/^/| /' conftest.$ac_ext >&5
20303
20304ac_header_compiler=no
20305fi
ac1cb8d3 20306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20308echo "${ECHO_T}$ac_header_compiler" >&6
20309
20310# Is the header present?
20311echo "$as_me:$LINENO: checking regex.h presence" >&5
20312echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20313cat >conftest.$ac_ext <<_ACEOF
20314/* confdefs.h. */
20315_ACEOF
20316cat confdefs.h >>conftest.$ac_ext
20317cat >>conftest.$ac_ext <<_ACEOF
20318/* end confdefs.h. */
20319#include <regex.h>
20320_ACEOF
20321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } >/dev/null; then
20329 if test -s conftest.err; then
20330 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20332 else
20333 ac_cpp_err=
20334 fi
20335else
20336 ac_cpp_err=yes
20337fi
20338if test -z "$ac_cpp_err"; then
20339 ac_header_preproc=yes
20340else
20341 echo "$as_me: failed program was:" >&5
20342sed 's/^/| /' conftest.$ac_ext >&5
20343
20344 ac_header_preproc=no
20345fi
20346rm -f conftest.err conftest.$ac_ext
20347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20348echo "${ECHO_T}$ac_header_preproc" >&6
20349
20350# So? What about this header?
ac1cb8d3
VS
20351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20352 yes:no: )
a848cd7e
SC
20353 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20354echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20355 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20356echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20357 ac_header_preproc=yes
a848cd7e 20358 ;;
ac1cb8d3 20359 no:yes:* )
a848cd7e
SC
20360 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20361echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20362 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20363echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20365echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20366 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20367echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20368 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20369echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20370 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20371echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20372 (
20373 cat <<\_ASBOX
ac1cb8d3
VS
20374## ----------------------------------------- ##
20375## Report this to wx-dev@lists.wxwidgets.org ##
20376## ----------------------------------------- ##
a848cd7e
SC
20377_ASBOX
20378 ) |
20379 sed "s/^/$as_me: WARNING: /" >&2
20380 ;;
20381esac
20382echo "$as_me:$LINENO: checking for regex.h" >&5
20383echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20384if test "${ac_cv_header_regex_h+set}" = set; then
20385 echo $ECHO_N "(cached) $ECHO_C" >&6
20386else
20387 ac_cv_header_regex_h=$ac_header_preproc
20388fi
20389echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20390echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20391
20392fi
20393if test $ac_cv_header_regex_h = yes; then
20394
20395for ac_func in regcomp
20396do
20397as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20398echo "$as_me:$LINENO: checking for $ac_func" >&5
20399echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20400if eval "test \"\${$as_ac_var+set}\" = set"; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20402else
20403 cat >conftest.$ac_ext <<_ACEOF
20404/* confdefs.h. */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h. */
ac1cb8d3
VS
20409/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20411#define $ac_func innocuous_$ac_func
20412
a848cd7e
SC
20413/* System header to define __stub macros and hopefully few prototypes,
20414 which can conflict with char $ac_func (); below.
20415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20416 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20417
a848cd7e
SC
20418#ifdef __STDC__
20419# include <limits.h>
20420#else
20421# include <assert.h>
20422#endif
ac1cb8d3
VS
20423
20424#undef $ac_func
20425
a848cd7e
SC
20426/* Override any gcc2 internal prototype to avoid an error. */
20427#ifdef __cplusplus
20428extern "C"
20429{
20430#endif
20431/* We use char because int might match the return type of a gcc2
20432 builtin and then its argument prototype would still apply. */
20433char $ac_func ();
20434/* The GNU C library defines this for functions which it implements
20435 to always fail with ENOSYS. Some functions are actually named
20436 something starting with __ and the normal name is an alias. */
20437#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20438choke me
20439#else
20440char (*f) () = $ac_func;
20441#endif
20442#ifdef __cplusplus
20443}
20444#endif
20445
20446int
20447main ()
20448{
20449return f != $ac_func;
20450 ;
20451 return 0;
20452}
20453_ACEOF
20454rm -f conftest.$ac_objext conftest$ac_exeext
20455if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20456 (eval $ac_link) 2>conftest.er1
a848cd7e 20457 ac_status=$?
ac1cb8d3
VS
20458 grep -v '^ *+' conftest.er1 >conftest.err
20459 rm -f conftest.er1
20460 cat conftest.err >&5
a848cd7e
SC
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); } &&
7714864e 20463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20466 ac_status=$?
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; } &&
20469 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20472 ac_status=$?
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20475 eval "$as_ac_var=yes"
20476else
20477 echo "$as_me: failed program was:" >&5
20478sed 's/^/| /' conftest.$ac_ext >&5
20479
20480eval "$as_ac_var=no"
20481fi
ac1cb8d3
VS
20482rm -f conftest.err conftest.$ac_objext \
20483 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20484fi
20485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20486echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20487if test `eval echo '${'$as_ac_var'}'` = yes; then
20488 cat >>confdefs.h <<_ACEOF
20489#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20490_ACEOF
20491
20492fi
20493done
20494
20495fi
20496
20497
20498
20499 if test "x$ac_cv_func_regcomp" != "xyes"; then
20500 if test "$wxUSE_REGEX" = "sys" ; then
20501 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20502echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20503 { (exit 1); exit 1; }; }
20504 else
20505 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20506echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20507 wxUSE_REGEX=builtin
20508 fi
20509 else
20510 wxUSE_REGEX=sys
20511 cat >>confdefs.h <<\_ACEOF
20512#define WX_NO_REGEX_ADVANCED 1
20513_ACEOF
20514
20515 fi
20516 fi
20517fi
20518
20519
20520ZLIB_LINK=
20521if test "$wxUSE_ZLIB" != "no" ; then
20522 cat >>confdefs.h <<\_ACEOF
20523#define wxUSE_ZLIB 1
20524_ACEOF
20525
20526
20527 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
20528 if test "$USE_DARWIN" = 1; then
20529 system_zlib_h_ok="yes"
20530 else
20531 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
20532echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
20533if test "${ac_cv_header_zlib_h+set}" = set; then
20534 echo $ECHO_N "(cached) $ECHO_C" >&6
20535else
20536 if test "$cross_compiling" = yes; then
20537 unset ac_cv_header_zlib_h
20538
20539else
20540 cat >conftest.$ac_ext <<_ACEOF
20541/* confdefs.h. */
20542_ACEOF
20543cat confdefs.h >>conftest.$ac_ext
20544cat >>conftest.$ac_ext <<_ACEOF
20545/* end confdefs.h. */
20546
20547 #include <zlib.h>
20548 #include <stdio.h>
20549
20550 int main()
20551 {
20552 FILE *f=fopen("conftestval", "w");
20553 if (!f) exit(1);
20554 fprintf(f, "%s",
20555 ZLIB_VERSION[0] == '1' &&
20556 (ZLIB_VERSION[2] > '1' ||
20557 (ZLIB_VERSION[2] == '1' &&
20558 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
20559 exit(0);
20560 }
20561
20562_ACEOF
20563rm -f conftest$ac_exeext
20564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20565 (eval $ac_link) 2>&5
20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
20574 ac_cv_header_zlib_h=`cat conftestval`
20575else
20576 echo "$as_me: program exited with status $ac_status" >&5
20577echo "$as_me: failed program was:" >&5
20578sed 's/^/| /' conftest.$ac_ext >&5
20579
20580( exit $ac_status )
20581ac_cv_header_zlib_h=no
20582fi
ac1cb8d3 20583rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20584fi
20585
20586fi
20587echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20588echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20589 if test "${ac_cv_header_zlib_h+set}" = set; then
20590 echo "$as_me:$LINENO: checking for zlib.h" >&5
20591echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20592if test "${ac_cv_header_zlib_h+set}" = set; then
20593 echo $ECHO_N "(cached) $ECHO_C" >&6
20594fi
20595echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20596echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20597else
20598 # Is the header compilable?
20599echo "$as_me:$LINENO: checking zlib.h usability" >&5
20600echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
20601cat >conftest.$ac_ext <<_ACEOF
20602/* confdefs.h. */
20603_ACEOF
20604cat confdefs.h >>conftest.$ac_ext
20605cat >>conftest.$ac_ext <<_ACEOF
20606/* end confdefs.h. */
20607$ac_includes_default
20608#include <zlib.h>
20609_ACEOF
20610rm -f conftest.$ac_objext
20611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20612 (eval $ac_compile) 2>conftest.er1
a848cd7e 20613 ac_status=$?
ac1cb8d3
VS
20614 grep -v '^ *+' conftest.er1 >conftest.err
20615 rm -f conftest.er1
20616 cat conftest.err >&5
a848cd7e
SC
20617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } &&
7714864e 20619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621 (eval $ac_try) 2>&5
20622 ac_status=$?
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); }; } &&
20625 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 ac_header_compiler=yes
20632else
20633 echo "$as_me: failed program was:" >&5
20634sed 's/^/| /' conftest.$ac_ext >&5
20635
20636ac_header_compiler=no
20637fi
ac1cb8d3 20638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20639echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20640echo "${ECHO_T}$ac_header_compiler" >&6
20641
20642# Is the header present?
20643echo "$as_me:$LINENO: checking zlib.h presence" >&5
20644echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20645cat >conftest.$ac_ext <<_ACEOF
20646/* confdefs.h. */
20647_ACEOF
20648cat confdefs.h >>conftest.$ac_ext
20649cat >>conftest.$ac_ext <<_ACEOF
20650/* end confdefs.h. */
20651#include <zlib.h>
20652_ACEOF
20653if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20655 ac_status=$?
20656 grep -v '^ *+' conftest.er1 >conftest.err
20657 rm -f conftest.er1
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } >/dev/null; then
20661 if test -s conftest.err; then
20662 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20664 else
20665 ac_cpp_err=
20666 fi
20667else
20668 ac_cpp_err=yes
20669fi
20670if test -z "$ac_cpp_err"; then
20671 ac_header_preproc=yes
20672else
20673 echo "$as_me: failed program was:" >&5
20674sed 's/^/| /' conftest.$ac_ext >&5
20675
20676 ac_header_preproc=no
20677fi
20678rm -f conftest.err conftest.$ac_ext
20679echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20680echo "${ECHO_T}$ac_header_preproc" >&6
20681
20682# So? What about this header?
ac1cb8d3
VS
20683case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20684 yes:no: )
a848cd7e
SC
20685 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20686echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20687 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20688echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20689 ac_header_preproc=yes
a848cd7e 20690 ;;
ac1cb8d3 20691 no:yes:* )
a848cd7e
SC
20692 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20693echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20694 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20695echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20696 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20697echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20698 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20699echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20700 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20701echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20702 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20703echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20704 (
20705 cat <<\_ASBOX
ac1cb8d3
VS
20706## ----------------------------------------- ##
20707## Report this to wx-dev@lists.wxwidgets.org ##
20708## ----------------------------------------- ##
a848cd7e
SC
20709_ASBOX
20710 ) |
20711 sed "s/^/$as_me: WARNING: /" >&2
20712 ;;
20713esac
20714echo "$as_me:$LINENO: checking for zlib.h" >&5
20715echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20716if test "${ac_cv_header_zlib_h+set}" = set; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20718else
20719 ac_cv_header_zlib_h=$ac_header_preproc
20720fi
20721echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20722echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20723
20724fi
20725
20726
20727
20728 system_zlib_h_ok=$ac_cv_header_zlib_h
20729 fi
20730
20731 if test "$system_zlib_h_ok" = "yes"; then
20732 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20733echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20734if test "${ac_cv_lib_z_deflate+set}" = set; then
20735 echo $ECHO_N "(cached) $ECHO_C" >&6
20736else
20737 ac_check_lib_save_LIBS=$LIBS
20738LIBS="-lz $LIBS"
20739cat >conftest.$ac_ext <<_ACEOF
20740/* confdefs.h. */
20741_ACEOF
20742cat confdefs.h >>conftest.$ac_ext
20743cat >>conftest.$ac_ext <<_ACEOF
20744/* end confdefs.h. */
20745
20746/* Override any gcc2 internal prototype to avoid an error. */
20747#ifdef __cplusplus
20748extern "C"
20749#endif
20750/* We use char because int might match the return type of a gcc2
20751 builtin and then its argument prototype would still apply. */
20752char deflate ();
20753int
20754main ()
20755{
20756deflate ();
20757 ;
20758 return 0;
20759}
20760_ACEOF
20761rm -f conftest.$ac_objext conftest$ac_exeext
20762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20763 (eval $ac_link) 2>conftest.er1
a848cd7e 20764 ac_status=$?
ac1cb8d3
VS
20765 grep -v '^ *+' conftest.er1 >conftest.err
20766 rm -f conftest.er1
20767 cat conftest.err >&5
a848cd7e
SC
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } &&
7714864e 20770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20772 (eval $ac_try) 2>&5
20773 ac_status=$?
20774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20775 (exit $ac_status); }; } &&
20776 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 ac_cv_lib_z_deflate=yes
20783else
20784 echo "$as_me: failed program was:" >&5
20785sed 's/^/| /' conftest.$ac_ext >&5
20786
20787ac_cv_lib_z_deflate=no
20788fi
ac1cb8d3
VS
20789rm -f conftest.err conftest.$ac_objext \
20790 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20791LIBS=$ac_check_lib_save_LIBS
20792fi
20793echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20794echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20795if test $ac_cv_lib_z_deflate = yes; then
20796 ZLIB_LINK=" -lz"
20797fi
20798
20799 fi
20800
20801 if test "x$ZLIB_LINK" = "x" ; then
20802 if test "$wxUSE_ZLIB" = "sys" ; then
20803 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20804echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20805 { (exit 1); exit 1; }; }
20806 else
20807 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20808echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
20809 wxUSE_ZLIB=builtin
20810 fi
20811 else
20812 wxUSE_ZLIB=sys
20813 fi
20814 fi
20815fi
20816
20817
20818PNG_LINK=
20819if test "$wxUSE_LIBPNG" != "no" ; then
20820 cat >>confdefs.h <<\_ACEOF
20821#define wxUSE_LIBPNG 1
20822_ACEOF
20823
20824
20825 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
20826 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20827echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
20828 wxUSE_LIBPNG=sys
20829 fi
20830
20831 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
20832 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20833echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
20834 wxUSE_LIBPNG=builtin
20835 fi
20836
20837 if test "$wxUSE_MGL" != 1 ; then
20838 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
20839 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20840echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20841if test "${ac_cv_header_png_h+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843else
20844 if test "$cross_compiling" = yes; then
20845 unset ac_cv_header_png_h
20846
20847else
20848 cat >conftest.$ac_ext <<_ACEOF
20849/* confdefs.h. */
20850_ACEOF
20851cat confdefs.h >>conftest.$ac_ext
20852cat >>conftest.$ac_ext <<_ACEOF
20853/* end confdefs.h. */
20854
20855 #include <png.h>
20856 #include <stdio.h>
20857
20858 int main()
20859 {
20860 FILE *f=fopen("conftestval", "w");
20861 if (!f) exit(1);
20862 fprintf(f, "%s",
20863 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20864 exit(0);
20865 }
20866
20867_ACEOF
20868rm -f conftest$ac_exeext
20869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20870 (eval $ac_link) 2>&5
20871 ac_status=$?
20872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20875 (eval $ac_try) 2>&5
20876 ac_status=$?
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); }; }; then
20879 ac_cv_header_png_h=`cat conftestval`
20880else
20881 echo "$as_me: program exited with status $ac_status" >&5
20882echo "$as_me: failed program was:" >&5
20883sed 's/^/| /' conftest.$ac_ext >&5
20884
20885( exit $ac_status )
20886ac_cv_header_png_h=no
20887fi
ac1cb8d3 20888rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20889fi
20890
20891fi
20892echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20893echo "${ECHO_T}$ac_cv_header_png_h" >&6
20894 if test "${ac_cv_header_png_h+set}" = set; then
20895 echo "$as_me:$LINENO: checking for png.h" >&5
20896echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20897if test "${ac_cv_header_png_h+set}" = set; then
20898 echo $ECHO_N "(cached) $ECHO_C" >&6
20899fi
20900echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20901echo "${ECHO_T}$ac_cv_header_png_h" >&6
20902else
20903 # Is the header compilable?
20904echo "$as_me:$LINENO: checking png.h usability" >&5
20905echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20906cat >conftest.$ac_ext <<_ACEOF
20907/* confdefs.h. */
20908_ACEOF
20909cat confdefs.h >>conftest.$ac_ext
20910cat >>conftest.$ac_ext <<_ACEOF
20911/* end confdefs.h. */
20912$ac_includes_default
20913#include <png.h>
20914_ACEOF
20915rm -f conftest.$ac_objext
20916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20917 (eval $ac_compile) 2>conftest.er1
a848cd7e 20918 ac_status=$?
ac1cb8d3
VS
20919 grep -v '^ *+' conftest.er1 >conftest.err
20920 rm -f conftest.er1
20921 cat conftest.err >&5
a848cd7e
SC
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); } &&
7714864e 20924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926 (eval $ac_try) 2>&5
20927 ac_status=$?
20928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929 (exit $ac_status); }; } &&
20930 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20932 (eval $ac_try) 2>&5
20933 ac_status=$?
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); }; }; then
20936 ac_header_compiler=yes
20937else
20938 echo "$as_me: failed program was:" >&5
20939sed 's/^/| /' conftest.$ac_ext >&5
20940
20941ac_header_compiler=no
20942fi
ac1cb8d3 20943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20944echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20945echo "${ECHO_T}$ac_header_compiler" >&6
20946
20947# Is the header present?
20948echo "$as_me:$LINENO: checking png.h presence" >&5
20949echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20950cat >conftest.$ac_ext <<_ACEOF
20951/* confdefs.h. */
20952_ACEOF
20953cat confdefs.h >>conftest.$ac_ext
20954cat >>conftest.$ac_ext <<_ACEOF
20955/* end confdefs.h. */
20956#include <png.h>
20957_ACEOF
20958if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20960 ac_status=$?
20961 grep -v '^ *+' conftest.er1 >conftest.err
20962 rm -f conftest.er1
20963 cat conftest.err >&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } >/dev/null; then
20966 if test -s conftest.err; then
20967 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20969 else
20970 ac_cpp_err=
20971 fi
20972else
20973 ac_cpp_err=yes
20974fi
20975if test -z "$ac_cpp_err"; then
20976 ac_header_preproc=yes
20977else
20978 echo "$as_me: failed program was:" >&5
20979sed 's/^/| /' conftest.$ac_ext >&5
20980
20981 ac_header_preproc=no
20982fi
20983rm -f conftest.err conftest.$ac_ext
20984echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20985echo "${ECHO_T}$ac_header_preproc" >&6
20986
20987# So? What about this header?
ac1cb8d3
VS
20988case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20989 yes:no: )
a848cd7e
SC
20990 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20991echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20992 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20993echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20994 ac_header_preproc=yes
a848cd7e 20995 ;;
ac1cb8d3 20996 no:yes:* )
a848cd7e
SC
20997 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20998echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20999 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21000echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21001 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21002echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21003 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21004echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21005 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21006echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21007 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21008echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21009 (
21010 cat <<\_ASBOX
ac1cb8d3
VS
21011## ----------------------------------------- ##
21012## Report this to wx-dev@lists.wxwidgets.org ##
21013## ----------------------------------------- ##
a848cd7e
SC
21014_ASBOX
21015 ) |
21016 sed "s/^/$as_me: WARNING: /" >&2
21017 ;;
21018esac
21019echo "$as_me:$LINENO: checking for png.h" >&5
21020echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21021if test "${ac_cv_header_png_h+set}" = set; then
21022 echo $ECHO_N "(cached) $ECHO_C" >&6
21023else
21024 ac_cv_header_png_h=$ac_header_preproc
21025fi
21026echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21027echo "${ECHO_T}$ac_cv_header_png_h" >&6
21028
21029fi
21030
21031
21032
21033 if test "$ac_cv_header_png_h" = "yes"; then
21034 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21035echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21036if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21037 echo $ECHO_N "(cached) $ECHO_C" >&6
21038else
21039 ac_check_lib_save_LIBS=$LIBS
21040LIBS="-lpng -lz -lm $LIBS"
21041cat >conftest.$ac_ext <<_ACEOF
21042/* confdefs.h. */
21043_ACEOF
21044cat confdefs.h >>conftest.$ac_ext
21045cat >>conftest.$ac_ext <<_ACEOF
21046/* end confdefs.h. */
21047
21048/* Override any gcc2 internal prototype to avoid an error. */
21049#ifdef __cplusplus
21050extern "C"
21051#endif
21052/* We use char because int might match the return type of a gcc2
21053 builtin and then its argument prototype would still apply. */
21054char png_check_sig ();
21055int
21056main ()
21057{
21058png_check_sig ();
21059 ;
21060 return 0;
21061}
21062_ACEOF
21063rm -f conftest.$ac_objext conftest$ac_exeext
21064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21065 (eval $ac_link) 2>conftest.er1
a848cd7e 21066 ac_status=$?
ac1cb8d3
VS
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
a848cd7e
SC
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } &&
7714864e 21072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; } &&
21078 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21081 ac_status=$?
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; }; then
21084 ac_cv_lib_png_png_check_sig=yes
21085else
21086 echo "$as_me: failed program was:" >&5
21087sed 's/^/| /' conftest.$ac_ext >&5
21088
21089ac_cv_lib_png_png_check_sig=no
21090fi
ac1cb8d3
VS
21091rm -f conftest.err conftest.$ac_objext \
21092 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21093LIBS=$ac_check_lib_save_LIBS
21094fi
21095echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21096echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21097if test $ac_cv_lib_png_png_check_sig = yes; then
21098 PNG_LINK=" -lpng -lz"
21099fi
21100
21101 fi
21102
21103 if test "x$PNG_LINK" = "x" ; then
21104 if test "$wxUSE_LIBPNG" = "sys" ; then
21105 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21106echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21107 { (exit 1); exit 1; }; }
21108 else
21109 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21110echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21111 wxUSE_LIBPNG=builtin
21112 fi
21113 else
21114 wxUSE_LIBPNG=sys
21115 fi
21116 fi
21117 fi
21118
21119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21120fi
21121
21122
21123JPEG_LINK=
21124if test "$wxUSE_LIBJPEG" != "no" ; then
21125 cat >>confdefs.h <<\_ACEOF
21126#define wxUSE_LIBJPEG 1
21127_ACEOF
21128
21129
21130 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21131 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21132echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21133 wxUSE_LIBJPEG=sys
21134 fi
21135
21136 if test "$wxUSE_MGL" != 1 ; then
21137 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21138 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21139echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21140 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21142else
21143 cat >conftest.$ac_ext <<_ACEOF
21144/* confdefs.h. */
21145_ACEOF
21146cat confdefs.h >>conftest.$ac_ext
21147cat >>conftest.$ac_ext <<_ACEOF
21148/* end confdefs.h. */
21149
21150 #undef HAVE_STDLIB_H
21151 #include <stdio.h>
21152 #include <jpeglib.h>
21153
21154int
21155main ()
21156{
21157
21158
21159 ;
21160 return 0;
21161}
21162_ACEOF
21163rm -f conftest.$ac_objext
21164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21165 (eval $ac_compile) 2>conftest.er1
a848cd7e 21166 ac_status=$?
ac1cb8d3
VS
21167 grep -v '^ *+' conftest.er1 >conftest.err
21168 rm -f conftest.er1
21169 cat conftest.err >&5
a848cd7e
SC
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } &&
7714864e 21172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21174 (eval $ac_try) 2>&5
21175 ac_status=$?
21176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21177 (exit $ac_status); }; } &&
21178 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21180 (eval $ac_try) 2>&5
21181 ac_status=$?
21182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183 (exit $ac_status); }; }; then
21184 ac_cv_header_jpeglib_h=yes
21185else
21186 echo "$as_me: failed program was:" >&5
21187sed 's/^/| /' conftest.$ac_ext >&5
21188
21189ac_cv_header_jpeglib_h=no
21190
21191fi
ac1cb8d3 21192rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21193
21194fi
21195
21196 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21197echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21198
21199 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21200 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21201echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21202if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21203 echo $ECHO_N "(cached) $ECHO_C" >&6
21204else
21205 ac_check_lib_save_LIBS=$LIBS
21206LIBS="-ljpeg $LIBS"
21207cat >conftest.$ac_ext <<_ACEOF
21208/* confdefs.h. */
21209_ACEOF
21210cat confdefs.h >>conftest.$ac_ext
21211cat >>conftest.$ac_ext <<_ACEOF
21212/* end confdefs.h. */
21213
21214/* Override any gcc2 internal prototype to avoid an error. */
21215#ifdef __cplusplus
21216extern "C"
21217#endif
21218/* We use char because int might match the return type of a gcc2
21219 builtin and then its argument prototype would still apply. */
21220char jpeg_read_header ();
21221int
21222main ()
21223{
21224jpeg_read_header ();
21225 ;
21226 return 0;
21227}
21228_ACEOF
21229rm -f conftest.$ac_objext conftest$ac_exeext
21230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21231 (eval $ac_link) 2>conftest.er1
a848cd7e 21232 ac_status=$?
ac1cb8d3
VS
21233 grep -v '^ *+' conftest.er1 >conftest.err
21234 rm -f conftest.er1
21235 cat conftest.err >&5
a848cd7e
SC
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
7714864e 21238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; } &&
21244 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21246 (eval $ac_try) 2>&5
21247 ac_status=$?
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); }; }; then
21250 ac_cv_lib_jpeg_jpeg_read_header=yes
21251else
21252 echo "$as_me: failed program was:" >&5
21253sed 's/^/| /' conftest.$ac_ext >&5
21254
21255ac_cv_lib_jpeg_jpeg_read_header=no
21256fi
ac1cb8d3
VS
21257rm -f conftest.err conftest.$ac_objext \
21258 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21259LIBS=$ac_check_lib_save_LIBS
21260fi
21261echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21262echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21263if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21264 JPEG_LINK=" -ljpeg"
21265fi
21266
21267 fi
21268
21269 if test "x$JPEG_LINK" = "x" ; then
21270 if test "$wxUSE_LIBJPEG" = "sys" ; then
21271 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21272echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21273 { (exit 1); exit 1; }; }
21274 else
21275 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21276echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21277 wxUSE_LIBJPEG=builtin
21278 fi
21279 else
21280 wxUSE_LIBJPEG=sys
21281 fi
21282 fi
21283 fi
21284fi
21285
21286
21287TIFF_LINK=
21288TIFF_PREREQ_LINKS=-lm
21289if test "$wxUSE_LIBTIFF" != "no" ; then
21290 cat >>confdefs.h <<\_ACEOF
21291#define wxUSE_LIBTIFF 1
21292_ACEOF
21293
21294
21295 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21296 if test "$wxUSE_LIBJPEG" = "sys"; then
21297 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21298 fi
21299 if test "$wxUSE_ZLIB" = "sys"; then
21300 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21301 fi
21302 if test "${ac_cv_header_tiffio_h+set}" = set; then
21303 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21304echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21305if test "${ac_cv_header_tiffio_h+set}" = set; then
21306 echo $ECHO_N "(cached) $ECHO_C" >&6
21307fi
21308echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21309echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21310else
21311 # Is the header compilable?
21312echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21313echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21314cat >conftest.$ac_ext <<_ACEOF
21315/* confdefs.h. */
21316_ACEOF
21317cat confdefs.h >>conftest.$ac_ext
21318cat >>conftest.$ac_ext <<_ACEOF
21319/* end confdefs.h. */
21320$ac_includes_default
21321#include <tiffio.h>
21322_ACEOF
21323rm -f conftest.$ac_objext
21324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21325 (eval $ac_compile) 2>conftest.er1
a848cd7e 21326 ac_status=$?
ac1cb8d3
VS
21327 grep -v '^ *+' conftest.er1 >conftest.err
21328 rm -f conftest.er1
21329 cat conftest.err >&5
a848cd7e
SC
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); } &&
7714864e 21332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334 (eval $ac_try) 2>&5
21335 ac_status=$?
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); }; } &&
21338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21340 (eval $ac_try) 2>&5
21341 ac_status=$?
21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21343 (exit $ac_status); }; }; then
21344 ac_header_compiler=yes
21345else
21346 echo "$as_me: failed program was:" >&5
21347sed 's/^/| /' conftest.$ac_ext >&5
21348
21349ac_header_compiler=no
21350fi
ac1cb8d3 21351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21353echo "${ECHO_T}$ac_header_compiler" >&6
21354
21355# Is the header present?
21356echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21357echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21358cat >conftest.$ac_ext <<_ACEOF
21359/* confdefs.h. */
21360_ACEOF
21361cat confdefs.h >>conftest.$ac_ext
21362cat >>conftest.$ac_ext <<_ACEOF
21363/* end confdefs.h. */
21364#include <tiffio.h>
21365_ACEOF
21366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21368 ac_status=$?
21369 grep -v '^ *+' conftest.er1 >conftest.err
21370 rm -f conftest.er1
21371 cat conftest.err >&5
21372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21373 (exit $ac_status); } >/dev/null; then
21374 if test -s conftest.err; then
21375 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21377 else
21378 ac_cpp_err=
21379 fi
21380else
21381 ac_cpp_err=yes
21382fi
21383if test -z "$ac_cpp_err"; then
21384 ac_header_preproc=yes
21385else
21386 echo "$as_me: failed program was:" >&5
21387sed 's/^/| /' conftest.$ac_ext >&5
21388
21389 ac_header_preproc=no
21390fi
21391rm -f conftest.err conftest.$ac_ext
21392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21393echo "${ECHO_T}$ac_header_preproc" >&6
21394
21395# So? What about this header?
ac1cb8d3
VS
21396case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21397 yes:no: )
a848cd7e
SC
21398 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21399echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21400 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21401echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21402 ac_header_preproc=yes
a848cd7e 21403 ;;
ac1cb8d3 21404 no:yes:* )
a848cd7e
SC
21405 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21406echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21407 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21408echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21409 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21410echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21411 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21412echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21413 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21414echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21415 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21416echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21417 (
21418 cat <<\_ASBOX
ac1cb8d3
VS
21419## ----------------------------------------- ##
21420## Report this to wx-dev@lists.wxwidgets.org ##
21421## ----------------------------------------- ##
a848cd7e
SC
21422_ASBOX
21423 ) |
21424 sed "s/^/$as_me: WARNING: /" >&2
21425 ;;
21426esac
21427echo "$as_me:$LINENO: checking for tiffio.h" >&5
21428echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21429if test "${ac_cv_header_tiffio_h+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21431else
21432 ac_cv_header_tiffio_h=$ac_header_preproc
21433fi
21434echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21435echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21436
21437fi
21438if test $ac_cv_header_tiffio_h = yes; then
21439
21440 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21441echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21442if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21443 echo $ECHO_N "(cached) $ECHO_C" >&6
21444else
21445 ac_check_lib_save_LIBS=$LIBS
21446LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21447cat >conftest.$ac_ext <<_ACEOF
21448/* confdefs.h. */
21449_ACEOF
21450cat confdefs.h >>conftest.$ac_ext
21451cat >>conftest.$ac_ext <<_ACEOF
21452/* end confdefs.h. */
21453
21454/* Override any gcc2 internal prototype to avoid an error. */
21455#ifdef __cplusplus
21456extern "C"
21457#endif
21458/* We use char because int might match the return type of a gcc2
21459 builtin and then its argument prototype would still apply. */
21460char TIFFError ();
21461int
21462main ()
21463{
21464TIFFError ();
21465 ;
21466 return 0;
21467}
21468_ACEOF
21469rm -f conftest.$ac_objext conftest$ac_exeext
21470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21471 (eval $ac_link) 2>conftest.er1
a848cd7e 21472 ac_status=$?
ac1cb8d3
VS
21473 grep -v '^ *+' conftest.er1 >conftest.err
21474 rm -f conftest.er1
21475 cat conftest.err >&5
a848cd7e
SC
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } &&
7714864e 21478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480 (eval $ac_try) 2>&5
21481 ac_status=$?
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); }; } &&
21484 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21486 (eval $ac_try) 2>&5
21487 ac_status=$?
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); }; }; then
21490 ac_cv_lib_tiff_TIFFError=yes
21491else
21492 echo "$as_me: failed program was:" >&5
21493sed 's/^/| /' conftest.$ac_ext >&5
21494
21495ac_cv_lib_tiff_TIFFError=no
21496fi
ac1cb8d3
VS
21497rm -f conftest.err conftest.$ac_objext \
21498 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21499LIBS=$ac_check_lib_save_LIBS
21500fi
21501echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21502echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21503if test $ac_cv_lib_tiff_TIFFError = yes; then
21504 TIFF_LINK=" -ltiff"
21505fi
21506
21507
21508
21509fi
21510
21511
21512
21513 if test "x$TIFF_LINK" = "x" ; then
21514 if test "$wxUSE_LIBTIFF" = "sys" ; then
21515 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21516echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
21517 { (exit 1); exit 1; }; }
21518 else
21519 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
21520echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21521 wxUSE_LIBTIFF=builtin
21522 fi
21523 else
21524 wxUSE_LIBTIFF=sys
21525 fi
21526 fi
21527fi
21528
21529
21530if test "$wxUSE_EXPAT" != "no"; then
21531 wxUSE_XML=yes
21532 cat >>confdefs.h <<\_ACEOF
21533#define wxUSE_EXPAT 1
21534_ACEOF
21535
21536 cat >>confdefs.h <<\_ACEOF
21537#define wxUSE_XML 1
21538_ACEOF
21539
21540
21541 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
21542 if test "${ac_cv_header_expat_h+set}" = set; then
21543 echo "$as_me:$LINENO: checking for expat.h" >&5
21544echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21545if test "${ac_cv_header_expat_h+set}" = set; then
21546 echo $ECHO_N "(cached) $ECHO_C" >&6
21547fi
21548echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21549echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21550else
21551 # Is the header compilable?
21552echo "$as_me:$LINENO: checking expat.h usability" >&5
21553echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
21554cat >conftest.$ac_ext <<_ACEOF
21555/* confdefs.h. */
21556_ACEOF
21557cat confdefs.h >>conftest.$ac_ext
21558cat >>conftest.$ac_ext <<_ACEOF
21559/* end confdefs.h. */
21560$ac_includes_default
21561#include <expat.h>
21562_ACEOF
21563rm -f conftest.$ac_objext
21564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21565 (eval $ac_compile) 2>conftest.er1
a848cd7e 21566 ac_status=$?
ac1cb8d3
VS
21567 grep -v '^ *+' conftest.er1 >conftest.err
21568 rm -f conftest.er1
21569 cat conftest.err >&5
a848cd7e
SC
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } &&
7714864e 21572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21574 (eval $ac_try) 2>&5
21575 ac_status=$?
21576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); }; } &&
21578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21580 (eval $ac_try) 2>&5
21581 ac_status=$?
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); }; }; then
21584 ac_header_compiler=yes
21585else
21586 echo "$as_me: failed program was:" >&5
21587sed 's/^/| /' conftest.$ac_ext >&5
21588
21589ac_header_compiler=no
21590fi
ac1cb8d3 21591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21593echo "${ECHO_T}$ac_header_compiler" >&6
21594
21595# Is the header present?
21596echo "$as_me:$LINENO: checking expat.h presence" >&5
21597echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
21598cat >conftest.$ac_ext <<_ACEOF
21599/* confdefs.h. */
21600_ACEOF
21601cat confdefs.h >>conftest.$ac_ext
21602cat >>conftest.$ac_ext <<_ACEOF
21603/* end confdefs.h. */
21604#include <expat.h>
21605_ACEOF
21606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21608 ac_status=$?
21609 grep -v '^ *+' conftest.er1 >conftest.err
21610 rm -f conftest.er1
21611 cat conftest.err >&5
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); } >/dev/null; then
21614 if test -s conftest.err; then
21615 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21617 else
21618 ac_cpp_err=
21619 fi
21620else
21621 ac_cpp_err=yes
21622fi
21623if test -z "$ac_cpp_err"; then
21624 ac_header_preproc=yes
21625else
21626 echo "$as_me: failed program was:" >&5
21627sed 's/^/| /' conftest.$ac_ext >&5
21628
21629 ac_header_preproc=no
21630fi
21631rm -f conftest.err conftest.$ac_ext
21632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21633echo "${ECHO_T}$ac_header_preproc" >&6
21634
21635# So? What about this header?
ac1cb8d3
VS
21636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21637 yes:no: )
a848cd7e
SC
21638 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21639echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21640 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21641echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21642 ac_header_preproc=yes
a848cd7e 21643 ;;
ac1cb8d3 21644 no:yes:* )
a848cd7e
SC
21645 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21646echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21647 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21648echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21649 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21650echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21651 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21652echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21653 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21654echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21655 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21656echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21657 (
21658 cat <<\_ASBOX
ac1cb8d3
VS
21659## ----------------------------------------- ##
21660## Report this to wx-dev@lists.wxwidgets.org ##
21661## ----------------------------------------- ##
a848cd7e
SC
21662_ASBOX
21663 ) |
21664 sed "s/^/$as_me: WARNING: /" >&2
21665 ;;
21666esac
21667echo "$as_me:$LINENO: checking for expat.h" >&5
21668echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21669if test "${ac_cv_header_expat_h+set}" = set; then
21670 echo $ECHO_N "(cached) $ECHO_C" >&6
21671else
21672 ac_cv_header_expat_h=$ac_header_preproc
21673fi
21674echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21675echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21676
21677fi
21678if test $ac_cv_header_expat_h = yes; then
21679 found_expat_h=1
21680fi
21681
21682
21683 if test "x$found_expat_h" = "x1"; then
21684 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21685echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21686if test "${wx_cv_expat_is_not_broken+set}" = set; then
21687 echo $ECHO_N "(cached) $ECHO_C" >&6
21688else
21689
21690
21691
21692 ac_ext=cc
21693ac_cpp='$CXXCPP $CPPFLAGS'
21694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21697
21698 cat >conftest.$ac_ext <<_ACEOF
21699/* confdefs.h. */
21700_ACEOF
21701cat confdefs.h >>conftest.$ac_ext
21702cat >>conftest.$ac_ext <<_ACEOF
21703/* end confdefs.h. */
21704#include <expat.h>
21705int
21706main ()
21707{
21708
21709 ;
21710 return 0;
21711}
21712_ACEOF
21713rm -f conftest.$ac_objext
21714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21715 (eval $ac_compile) 2>conftest.er1
a848cd7e 21716 ac_status=$?
ac1cb8d3
VS
21717 grep -v '^ *+' conftest.er1 >conftest.err
21718 rm -f conftest.er1
21719 cat conftest.err >&5
a848cd7e
SC
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } &&
7714864e 21722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; } &&
21728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21731 ac_status=$?
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; }; then
21734 wx_cv_expat_is_not_broken=yes
21735else
21736 echo "$as_me: failed program was:" >&5
21737sed 's/^/| /' conftest.$ac_ext >&5
21738
21739wx_cv_expat_is_not_broken=no
21740
21741fi
ac1cb8d3 21742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21743 ac_ext=c
21744ac_cpp='$CPP $CPPFLAGS'
21745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21747ac_compiler_gnu=$ac_cv_c_compiler_gnu
21748
21749
21750
21751fi
21752echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21753echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21754 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21755 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
21756echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21757if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21758 echo $ECHO_N "(cached) $ECHO_C" >&6
21759else
21760 ac_check_lib_save_LIBS=$LIBS
21761LIBS="-lexpat $LIBS"
21762cat >conftest.$ac_ext <<_ACEOF
21763/* confdefs.h. */
21764_ACEOF
21765cat confdefs.h >>conftest.$ac_ext
21766cat >>conftest.$ac_ext <<_ACEOF
21767/* end confdefs.h. */
21768
21769/* Override any gcc2 internal prototype to avoid an error. */
21770#ifdef __cplusplus
21771extern "C"
21772#endif
21773/* We use char because int might match the return type of a gcc2
21774 builtin and then its argument prototype would still apply. */
21775char XML_ParserCreate ();
21776int
21777main ()
21778{
21779XML_ParserCreate ();
21780 ;
21781 return 0;
21782}
21783_ACEOF
21784rm -f conftest.$ac_objext conftest$ac_exeext
21785if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21786 (eval $ac_link) 2>conftest.er1
a848cd7e 21787 ac_status=$?
ac1cb8d3
VS
21788 grep -v '^ *+' conftest.er1 >conftest.err
21789 rm -f conftest.er1
21790 cat conftest.err >&5
a848cd7e
SC
21791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21792 (exit $ac_status); } &&
7714864e 21793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21795 (eval $ac_try) 2>&5
21796 ac_status=$?
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); }; } &&
21799 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; }; then
21805 ac_cv_lib_expat_XML_ParserCreate=yes
21806else
21807 echo "$as_me: failed program was:" >&5
21808sed 's/^/| /' conftest.$ac_ext >&5
21809
21810ac_cv_lib_expat_XML_ParserCreate=no
21811fi
ac1cb8d3
VS
21812rm -f conftest.err conftest.$ac_objext \
21813 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21814LIBS=$ac_check_lib_save_LIBS
21815fi
21816echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21817echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21818if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21819 EXPAT_LINK=" -lexpat"
21820fi
21821
21822 fi
21823 fi
21824 if test "x$EXPAT_LINK" = "x" ; then
21825 if test "$wxUSE_EXPAT" = "sys" ; then
21826 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21827echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21828 { (exit 1); exit 1; }; }
21829 else
21830 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21831echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21832 wxUSE_EXPAT=builtin
21833 fi
21834 else
21835 wxUSE_EXPAT=sys
21836 fi
21837 fi
21838 if test "$wxUSE_EXPAT" = "builtin" ; then
21839
21840
21841subdirs="$subdirs src/expat"
21842
21843 fi
21844fi
21845
21846
21847
21848if test "$wxUSE_LIBMSPACK" != "no"; then
21849
21850 if test "${ac_cv_header_mspack_h+set}" = set; then
21851 echo "$as_me:$LINENO: checking for mspack.h" >&5
21852echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21853if test "${ac_cv_header_mspack_h+set}" = set; then
21854 echo $ECHO_N "(cached) $ECHO_C" >&6
21855fi
21856echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21857echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21858else
21859 # Is the header compilable?
21860echo "$as_me:$LINENO: checking mspack.h usability" >&5
21861echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21862cat >conftest.$ac_ext <<_ACEOF
21863/* confdefs.h. */
21864_ACEOF
21865cat confdefs.h >>conftest.$ac_ext
21866cat >>conftest.$ac_ext <<_ACEOF
21867/* end confdefs.h. */
21868$ac_includes_default
21869#include <mspack.h>
21870_ACEOF
21871rm -f conftest.$ac_objext
21872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21873 (eval $ac_compile) 2>conftest.er1
a848cd7e 21874 ac_status=$?
ac1cb8d3
VS
21875 grep -v '^ *+' conftest.er1 >conftest.err
21876 rm -f conftest.er1
21877 cat conftest.err >&5
a848cd7e
SC
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } &&
7714864e 21880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21882 (eval $ac_try) 2>&5
21883 ac_status=$?
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); }; } &&
21886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21888 (eval $ac_try) 2>&5
21889 ac_status=$?
21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891 (exit $ac_status); }; }; then
21892 ac_header_compiler=yes
21893else
21894 echo "$as_me: failed program was:" >&5
21895sed 's/^/| /' conftest.$ac_ext >&5
21896
21897ac_header_compiler=no
21898fi
ac1cb8d3 21899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21900echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21901echo "${ECHO_T}$ac_header_compiler" >&6
21902
21903# Is the header present?
21904echo "$as_me:$LINENO: checking mspack.h presence" >&5
21905echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21906cat >conftest.$ac_ext <<_ACEOF
21907/* confdefs.h. */
21908_ACEOF
21909cat confdefs.h >>conftest.$ac_ext
21910cat >>conftest.$ac_ext <<_ACEOF
21911/* end confdefs.h. */
21912#include <mspack.h>
21913_ACEOF
21914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21916 ac_status=$?
21917 grep -v '^ *+' conftest.er1 >conftest.err
21918 rm -f conftest.er1
21919 cat conftest.err >&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } >/dev/null; then
21922 if test -s conftest.err; then
21923 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21925 else
21926 ac_cpp_err=
21927 fi
21928else
21929 ac_cpp_err=yes
21930fi
21931if test -z "$ac_cpp_err"; then
21932 ac_header_preproc=yes
21933else
21934 echo "$as_me: failed program was:" >&5
21935sed 's/^/| /' conftest.$ac_ext >&5
21936
21937 ac_header_preproc=no
21938fi
21939rm -f conftest.err conftest.$ac_ext
21940echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21941echo "${ECHO_T}$ac_header_preproc" >&6
21942
21943# So? What about this header?
ac1cb8d3
VS
21944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21945 yes:no: )
a848cd7e
SC
21946 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21947echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21948 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21949echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21950 ac_header_preproc=yes
a848cd7e 21951 ;;
ac1cb8d3 21952 no:yes:* )
a848cd7e
SC
21953 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21954echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21955 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21956echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21957 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21958echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21959 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21960echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21961 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21962echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21963 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21964echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21965 (
21966 cat <<\_ASBOX
ac1cb8d3
VS
21967## ----------------------------------------- ##
21968## Report this to wx-dev@lists.wxwidgets.org ##
21969## ----------------------------------------- ##
a848cd7e
SC
21970_ASBOX
21971 ) |
21972 sed "s/^/$as_me: WARNING: /" >&2
21973 ;;
21974esac
21975echo "$as_me:$LINENO: checking for mspack.h" >&5
21976echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21977if test "${ac_cv_header_mspack_h+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21979else
21980 ac_cv_header_mspack_h=$ac_header_preproc
21981fi
21982echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21983echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21984
21985fi
21986if test $ac_cv_header_mspack_h = yes; then
21987 found_mspack_h=1
21988fi
21989
21990
21991 if test "x$found_mspack_h" = "x1"; then
21992 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21993echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21994if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21995 echo $ECHO_N "(cached) $ECHO_C" >&6
21996else
21997 ac_check_lib_save_LIBS=$LIBS
21998LIBS="-lmspack $LIBS"
21999cat >conftest.$ac_ext <<_ACEOF
22000/* confdefs.h. */
22001_ACEOF
22002cat confdefs.h >>conftest.$ac_ext
22003cat >>conftest.$ac_ext <<_ACEOF
22004/* end confdefs.h. */
22005
22006/* Override any gcc2 internal prototype to avoid an error. */
22007#ifdef __cplusplus
22008extern "C"
22009#endif
22010/* We use char because int might match the return type of a gcc2
22011 builtin and then its argument prototype would still apply. */
22012char mspack_create_chm_decompressor ();
22013int
22014main ()
22015{
22016mspack_create_chm_decompressor ();
22017 ;
22018 return 0;
22019}
22020_ACEOF
22021rm -f conftest.$ac_objext conftest$ac_exeext
22022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22023 (eval $ac_link) 2>conftest.er1
a848cd7e 22024 ac_status=$?
ac1cb8d3
VS
22025 grep -v '^ *+' conftest.er1 >conftest.err
22026 rm -f conftest.er1
22027 cat conftest.err >&5
a848cd7e
SC
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); } &&
7714864e 22030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; } &&
22036 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22038 (eval $ac_try) 2>&5
22039 ac_status=$?
22040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041 (exit $ac_status); }; }; then
22042 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22043else
22044 echo "$as_me: failed program was:" >&5
22045sed 's/^/| /' conftest.$ac_ext >&5
22046
22047ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22048fi
ac1cb8d3
VS
22049rm -f conftest.err conftest.$ac_objext \
22050 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22051LIBS=$ac_check_lib_save_LIBS
22052fi
22053echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22054echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22055if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22056 MSPACK_LINK=" -lmspack"
22057fi
22058
22059 fi
22060 if test "x$MSPACK_LINK" = "x" ; then
22061 wxUSE_LIBMSPACK=no
22062 else
22063 cat >>confdefs.h <<\_ACEOF
22064#define wxUSE_LIBMSPACK 1
22065_ACEOF
22066
22067 fi
22068fi
22069
22070
22071
22072AFMINSTALL=
22073WIN32INSTALL=
22074
22075TOOLKIT=
22076TOOLKIT_INCLUDE=
22077WIDGET_SET=
22078
22079if test "$USE_WIN32" = 1 ; then
22080
22081for ac_header in w32api.h
22082do
22083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22084if eval "test \"\${$as_ac_Header+set}\" = set"; then
22085 echo "$as_me:$LINENO: checking for $ac_header" >&5
22086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22087if eval "test \"\${$as_ac_Header+set}\" = set"; then
22088 echo $ECHO_N "(cached) $ECHO_C" >&6
22089fi
22090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22092else
22093 # Is the header compilable?
22094echo "$as_me:$LINENO: checking $ac_header usability" >&5
22095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22096cat >conftest.$ac_ext <<_ACEOF
22097/* confdefs.h. */
22098_ACEOF
22099cat confdefs.h >>conftest.$ac_ext
22100cat >>conftest.$ac_ext <<_ACEOF
22101/* end confdefs.h. */
22102$ac_includes_default
22103#include <$ac_header>
22104_ACEOF
22105rm -f conftest.$ac_objext
22106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22107 (eval $ac_compile) 2>conftest.er1
a848cd7e 22108 ac_status=$?
ac1cb8d3
VS
22109 grep -v '^ *+' conftest.er1 >conftest.err
22110 rm -f conftest.er1
22111 cat conftest.err >&5
a848cd7e
SC
22112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113 (exit $ac_status); } &&
7714864e 22114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116 (eval $ac_try) 2>&5
22117 ac_status=$?
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; } &&
22120 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122 (eval $ac_try) 2>&5
22123 ac_status=$?
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); }; }; then
22126 ac_header_compiler=yes
22127else
22128 echo "$as_me: failed program was:" >&5
22129sed 's/^/| /' conftest.$ac_ext >&5
22130
22131ac_header_compiler=no
22132fi
ac1cb8d3 22133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22134echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22135echo "${ECHO_T}$ac_header_compiler" >&6
22136
22137# Is the header present?
22138echo "$as_me:$LINENO: checking $ac_header presence" >&5
22139echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22140cat >conftest.$ac_ext <<_ACEOF
22141/* confdefs.h. */
22142_ACEOF
22143cat confdefs.h >>conftest.$ac_ext
22144cat >>conftest.$ac_ext <<_ACEOF
22145/* end confdefs.h. */
22146#include <$ac_header>
22147_ACEOF
22148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22150 ac_status=$?
22151 grep -v '^ *+' conftest.er1 >conftest.err
22152 rm -f conftest.er1
22153 cat conftest.err >&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); } >/dev/null; then
22156 if test -s conftest.err; then
22157 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22159 else
22160 ac_cpp_err=
22161 fi
22162else
22163 ac_cpp_err=yes
22164fi
22165if test -z "$ac_cpp_err"; then
22166 ac_header_preproc=yes
22167else
22168 echo "$as_me: failed program was:" >&5
22169sed 's/^/| /' conftest.$ac_ext >&5
22170
22171 ac_header_preproc=no
22172fi
22173rm -f conftest.err conftest.$ac_ext
22174echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22175echo "${ECHO_T}$ac_header_preproc" >&6
22176
22177# So? What about this header?
ac1cb8d3
VS
22178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22179 yes:no: )
a848cd7e
SC
22180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22181echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22183echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22184 ac_header_preproc=yes
a848cd7e 22185 ;;
ac1cb8d3 22186 no:yes:* )
a848cd7e
SC
22187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22188echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22190echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22192echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22194echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22196echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22198echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22199 (
22200 cat <<\_ASBOX
ac1cb8d3
VS
22201## ----------------------------------------- ##
22202## Report this to wx-dev@lists.wxwidgets.org ##
22203## ----------------------------------------- ##
a848cd7e
SC
22204_ASBOX
22205 ) |
22206 sed "s/^/$as_me: WARNING: /" >&2
22207 ;;
22208esac
22209echo "$as_me:$LINENO: checking for $ac_header" >&5
22210echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22211if eval "test \"\${$as_ac_Header+set}\" = set"; then
22212 echo $ECHO_N "(cached) $ECHO_C" >&6
22213else
ac1cb8d3 22214 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22215fi
22216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22218
22219fi
22220if test `eval echo '${'$as_ac_Header'}'` = yes; then
22221 cat >>confdefs.h <<_ACEOF
22222#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22223_ACEOF
22224
22225fi
22226
22227done
22228
22229 if test "${ac_cv_header_windows_h+set}" = set; then
22230 echo "$as_me:$LINENO: checking for windows.h" >&5
22231echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22232if test "${ac_cv_header_windows_h+set}" = set; then
22233 echo $ECHO_N "(cached) $ECHO_C" >&6
22234fi
22235echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22236echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22237else
22238 # Is the header compilable?
22239echo "$as_me:$LINENO: checking windows.h usability" >&5
22240echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22241cat >conftest.$ac_ext <<_ACEOF
22242/* confdefs.h. */
22243_ACEOF
22244cat confdefs.h >>conftest.$ac_ext
22245cat >>conftest.$ac_ext <<_ACEOF
22246/* end confdefs.h. */
22247$ac_includes_default
22248#include <windows.h>
22249_ACEOF
22250rm -f conftest.$ac_objext
22251if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22252 (eval $ac_compile) 2>conftest.er1
a848cd7e 22253 ac_status=$?
ac1cb8d3
VS
22254 grep -v '^ *+' conftest.er1 >conftest.err
22255 rm -f conftest.er1
22256 cat conftest.err >&5
a848cd7e
SC
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } &&
7714864e 22259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261 (eval $ac_try) 2>&5
22262 ac_status=$?
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; } &&
22265 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22267 (eval $ac_try) 2>&5
22268 ac_status=$?
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); }; }; then
22271 ac_header_compiler=yes
22272else
22273 echo "$as_me: failed program was:" >&5
22274sed 's/^/| /' conftest.$ac_ext >&5
22275
22276ac_header_compiler=no
22277fi
ac1cb8d3 22278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22279echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22280echo "${ECHO_T}$ac_header_compiler" >&6
22281
22282# Is the header present?
22283echo "$as_me:$LINENO: checking windows.h presence" >&5
22284echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22285cat >conftest.$ac_ext <<_ACEOF
22286/* confdefs.h. */
22287_ACEOF
22288cat confdefs.h >>conftest.$ac_ext
22289cat >>conftest.$ac_ext <<_ACEOF
22290/* end confdefs.h. */
22291#include <windows.h>
22292_ACEOF
22293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22295 ac_status=$?
22296 grep -v '^ *+' conftest.er1 >conftest.err
22297 rm -f conftest.er1
22298 cat conftest.err >&5
22299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300 (exit $ac_status); } >/dev/null; then
22301 if test -s conftest.err; then
22302 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22304 else
22305 ac_cpp_err=
22306 fi
22307else
22308 ac_cpp_err=yes
22309fi
22310if test -z "$ac_cpp_err"; then
22311 ac_header_preproc=yes
22312else
22313 echo "$as_me: failed program was:" >&5
22314sed 's/^/| /' conftest.$ac_ext >&5
22315
22316 ac_header_preproc=no
22317fi
22318rm -f conftest.err conftest.$ac_ext
22319echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22320echo "${ECHO_T}$ac_header_preproc" >&6
22321
22322# So? What about this header?
ac1cb8d3
VS
22323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22324 yes:no: )
a848cd7e
SC
22325 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22326echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22327 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22328echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22329 ac_header_preproc=yes
a848cd7e 22330 ;;
ac1cb8d3 22331 no:yes:* )
a848cd7e
SC
22332 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22333echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22334 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22335echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22336 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22337echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22338 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22339echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22340 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22341echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22342 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22343echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22344 (
22345 cat <<\_ASBOX
ac1cb8d3
VS
22346## ----------------------------------------- ##
22347## Report this to wx-dev@lists.wxwidgets.org ##
22348## ----------------------------------------- ##
a848cd7e
SC
22349_ASBOX
22350 ) |
22351 sed "s/^/$as_me: WARNING: /" >&2
22352 ;;
22353esac
22354echo "$as_me:$LINENO: checking for windows.h" >&5
22355echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22356if test "${ac_cv_header_windows_h+set}" = set; then
22357 echo $ECHO_N "(cached) $ECHO_C" >&6
22358else
22359 ac_cv_header_windows_h=$ac_header_preproc
22360fi
22361echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22362echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22363
22364fi
22365if test $ac_cv_header_windows_h = yes; then
22366 :
22367else
22368
22369 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22370echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22371 { (exit 1); exit 1; }; }
22372
22373fi
22374
22375
22376
22377 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22378
22379 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22380 LIBS="$LIBS -loleacc"
22381 fi
22382
22383 case "${host}" in
22384 *-*-cygwin* )
22385 LIBS="$LIBS -lkernel32 -luser32"
22386 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22387 esac
22388
22389 if test "$wxUSE_ODBC" = "sys" ; then
22390 wxUSE_ODBC = "yes"
22391 fi
22392 if test "$wxUSE_ODBC" = "yes" ; then
22393 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22394 cat >>confdefs.h <<\_ACEOF
22395#define wxUSE_ODBC 1
22396_ACEOF
22397
22398 fi
22399
22400 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22401 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22402
22403 WIN32INSTALL=win32install
22404fi
22405
22406if test "$wxUSE_GUI" = "yes"; then
22407 USE_GUI=1
22408
22409 GUI_TK_LIBRARY=
22410
22411 WXGTK12=
22412 WXGTK127=
22413 WXGTK20=
22414 WXGPE=
22415
22416 if test "$wxUSE_MSW" = 1 ; then
22417 TOOLKIT=MSW
22418 GUIDIST=MSW_DIST
22419
ceec2216 22420 case "${host}" in
a848cd7e
SC
22421 *-*-mingw32* )
22422 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22423 esac
22424 fi
22425
22426 if test "$wxUSE_GTK" = 1; then
22427 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22428echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22429
22430 gtk_version_cached=1
22431 if test "${wx_cv_lib_gtk+set}" = set; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22433else
22434
22435 gtk_version_cached=0
22436 echo "$as_me:$LINENO: result: " >&5
22437echo "${ECHO_T}" >&6
22438
22439 GTK_MODULES=
22440 if test "$wxUSE_THREADS" = "yes"; then
22441 GTK_MODULES=gthread
22442 fi
22443
22444 wx_cv_lib_gtk=
22445 if test "x$wxUSE_GTK2" = "xyes"; then
22446 # Check whether --enable-gtktest or --disable-gtktest was given.
22447if test "${enable_gtktest+set}" = set; then
22448 enableval="$enable_gtktest"
22449
22450else
22451 enable_gtktest=yes
22452fi;
22453
22454 pkg_config_args=gtk+-2.0
22455 for module in . $GTK_MODULES
22456 do
22457 case "$module" in
22458 gthread)
22459 pkg_config_args="$pkg_config_args gthread-2.0"
22460 ;;
22461 esac
22462 done
22463
22464 no_gtk=""
22465
22466 # Extract the first word of "pkg-config", so it can be a program name with args.
22467set dummy pkg-config; ac_word=$2
22468echo "$as_me:$LINENO: checking for $ac_word" >&5
22469echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22470if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22471 echo $ECHO_N "(cached) $ECHO_C" >&6
22472else
22473 case $PKG_CONFIG in
22474 [\\/]* | ?:[\\/]*)
22475 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22476 ;;
22477 *)
22478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22479for as_dir in $PATH
22480do
22481 IFS=$as_save_IFS
22482 test -z "$as_dir" && as_dir=.
22483 for ac_exec_ext in '' $ac_executable_extensions; do
22484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22485 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22487 break 2
22488 fi
22489done
22490done
22491
22492 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22493 ;;
22494esac
22495fi
22496PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22497
22498if test -n "$PKG_CONFIG"; then
22499 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22500echo "${ECHO_T}$PKG_CONFIG" >&6
22501else
22502 echo "$as_me:$LINENO: result: no" >&5
22503echo "${ECHO_T}no" >&6
22504fi
22505
22506
22507 if test x$PKG_CONFIG != xno ; then
22508 if pkg-config --atleast-pkgconfig-version 0.7 ; then
22509 :
22510 else
c2218763 22511 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
22512 no_gtk=yes
22513 PKG_CONFIG=no
22514 fi
22515 else
22516 no_gtk=yes
22517 fi
22518
22519 min_gtk_version=2.0.0
22520 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
22521echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
22522
22523 if test x$PKG_CONFIG != xno ; then
22524 ## don't try to run the test against uninstalled libtool libs
22525 if $PKG_CONFIG --uninstalled $pkg_config_args; then
22526 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
22527 enable_gtktest=no
22528 fi
22529
22530 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
22531 :
22532 else
22533 no_gtk=yes
22534 fi
22535 fi
22536
22537 if test x"$no_gtk" = x ; then
22538 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
22539 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
22540 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22541 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22542 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22543 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22544 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
22545 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22546 if test "x$enable_gtktest" = "xyes" ; then
22547 ac_save_CFLAGS="$CFLAGS"
22548 ac_save_LIBS="$LIBS"
22549 CFLAGS="$CFLAGS $GTK_CFLAGS"
22550 LIBS="$GTK_LIBS $LIBS"
22551 rm -f conf.gtktest
22552 if test "$cross_compiling" = yes; then
22553 echo $ac_n "cross compiling; assumed OK... $ac_c"
22554else
22555 cat >conftest.$ac_ext <<_ACEOF
22556/* confdefs.h. */
22557_ACEOF
22558cat confdefs.h >>conftest.$ac_ext
22559cat >>conftest.$ac_ext <<_ACEOF
22560/* end confdefs.h. */
22561
22562#include <gtk/gtk.h>
22563#include <stdio.h>
22564#include <stdlib.h>
22565
22566int
22567main ()
22568{
22569 int major, minor, micro;
22570 char *tmp_version;
22571
22572 system ("touch conf.gtktest");
22573
22574 /* HP/UX 9 (%@#!) writes to sscanf strings */
22575 tmp_version = g_strdup("$min_gtk_version");
22576 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22577 printf("%s, bad version string\n", "$min_gtk_version");
22578 exit(1);
22579 }
22580
22581 if ((gtk_major_version != $gtk_config_major_version) ||
22582 (gtk_minor_version != $gtk_config_minor_version) ||
22583 (gtk_micro_version != $gtk_config_micro_version))
22584 {
22585 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22586 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22587 gtk_major_version, gtk_minor_version, gtk_micro_version);
22588 printf ("*** was found! If pkg-config was correct, then it is best\n");
22589 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22590 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22591 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22592 printf("*** required on your system.\n");
22593 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
22594 printf("*** to point to the correct configuration files\n");
22595 }
22596 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22597 (gtk_minor_version != GTK_MINOR_VERSION) ||
22598 (gtk_micro_version != GTK_MICRO_VERSION))
22599 {
22600 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22601 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22602 printf("*** library (version %d.%d.%d)\n",
22603 gtk_major_version, gtk_minor_version, gtk_micro_version);
22604 }
22605 else
22606 {
22607 if ((gtk_major_version > major) ||
22608 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22609 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22610 {
22611 return 0;
22612 }
22613 else
22614 {
22615 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22616 gtk_major_version, gtk_minor_version, gtk_micro_version);
22617 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22618 major, minor, micro);
22619 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22620 printf("***\n");
22621 printf("*** If you have already installed a sufficiently new version, this error\n");
22622 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
22623 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22624 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
22625 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22626 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22627 printf("*** so that the correct libraries are found at run-time))\n");
22628 }
22629 }
22630 return 1;
22631}
22632
22633_ACEOF
22634rm -f conftest$ac_exeext
22635if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22636 (eval $ac_link) 2>&5
22637 ac_status=$?
22638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641 (eval $ac_try) 2>&5
22642 ac_status=$?
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); }; }; then
22645 :
22646else
22647 echo "$as_me: program exited with status $ac_status" >&5
22648echo "$as_me: failed program was:" >&5
22649sed 's/^/| /' conftest.$ac_ext >&5
22650
22651( exit $ac_status )
22652no_gtk=yes
22653fi
ac1cb8d3 22654rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22655fi
22656 CFLAGS="$ac_save_CFLAGS"
22657 LIBS="$ac_save_LIBS"
22658 fi
22659 fi
22660 if test "x$no_gtk" = x ; then
22661 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22662echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22663 wx_cv_lib_gtk=2.0
22664 else
22665 echo "$as_me:$LINENO: result: no" >&5
22666echo "${ECHO_T}no" >&6
22667 if test "$PKG_CONFIG" = "no" ; then
22668 echo "*** A new enough version of pkg-config was not found."
22669 echo "*** See http://pkgconfig.sourceforge.net"
22670 else
22671 if test -f conf.gtktest ; then
22672 :
22673 else
22674 echo "*** Could not run GTK+ test program, checking why..."
22675 ac_save_CFLAGS="$CFLAGS"
22676 ac_save_LIBS="$LIBS"
22677 CFLAGS="$CFLAGS $GTK_CFLAGS"
22678 LIBS="$LIBS $GTK_LIBS"
22679 cat >conftest.$ac_ext <<_ACEOF
22680/* confdefs.h. */
22681_ACEOF
22682cat confdefs.h >>conftest.$ac_ext
22683cat >>conftest.$ac_ext <<_ACEOF
22684/* end confdefs.h. */
22685
22686#include <gtk/gtk.h>
22687#include <stdio.h>
22688
22689int
22690main ()
22691{
22692 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22693 ;
22694 return 0;
22695}
22696_ACEOF
22697rm -f conftest.$ac_objext conftest$ac_exeext
22698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22699 (eval $ac_link) 2>conftest.er1
a848cd7e 22700 ac_status=$?
ac1cb8d3
VS
22701 grep -v '^ *+' conftest.er1 >conftest.err
22702 rm -f conftest.er1
22703 cat conftest.err >&5
a848cd7e
SC
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); } &&
7714864e 22706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708 (eval $ac_try) 2>&5
22709 ac_status=$?
22710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711 (exit $ac_status); }; } &&
22712 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714 (eval $ac_try) 2>&5
22715 ac_status=$?
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); }; }; then
22718 echo "*** The test program compiled, but did not run. This usually means"
22719 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22720 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22721 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22722 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22723 echo "*** is required on your system"
22724 echo "***"
22725 echo "*** If you have an old version installed, it is best to remove it, although"
22726 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22727else
22728 echo "$as_me: failed program was:" >&5
22729sed 's/^/| /' conftest.$ac_ext >&5
22730
22731 echo "*** The test program failed to compile or link. See the file config.log for the"
22732 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
22733fi
ac1cb8d3
VS
22734rm -f conftest.err conftest.$ac_objext \
22735 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22736 CFLAGS="$ac_save_CFLAGS"
22737 LIBS="$ac_save_LIBS"
22738 fi
22739 fi
22740 GTK_CFLAGS=""
22741 GTK_LIBS=""
22742 :
22743 fi
22744
22745
22746 rm -f conf.gtktest
22747
22748 else
22749
22750# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
22751if test "${with_gtk_prefix+set}" = set; then
22752 withval="$with_gtk_prefix"
22753 gtk_config_prefix="$withval"
22754else
22755 gtk_config_prefix=""
22756fi;
22757
22758# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22759if test "${with_gtk_exec_prefix+set}" = set; then
22760 withval="$with_gtk_exec_prefix"
22761 gtk_config_exec_prefix="$withval"
22762else
22763 gtk_config_exec_prefix=""
22764fi;
22765# Check whether --enable-gtktest or --disable-gtktest was given.
22766if test "${enable_gtktest+set}" = set; then
22767 enableval="$enable_gtktest"
22768
22769else
22770 enable_gtktest=yes
22771fi;
22772
22773 for module in . $GTK_MODULES
22774 do
22775 case "$module" in
22776 gthread)
22777 gtk_config_args="$gtk_config_args gthread"
22778 ;;
22779 esac
22780 done
22781
22782 if test x$gtk_config_exec_prefix != x ; then
22783 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22784 if test x${GTK_CONFIG+set} != xset ; then
22785 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22786 fi
22787 fi
22788 if test x$gtk_config_prefix != x ; then
22789 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22790 if test x${GTK_CONFIG+set} != xset ; then
22791 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22792 fi
22793 fi
22794
22795 # Extract the first word of "gtk-config", so it can be a program name with args.
22796set dummy gtk-config; ac_word=$2
22797echo "$as_me:$LINENO: checking for $ac_word" >&5
22798echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22799if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22800 echo $ECHO_N "(cached) $ECHO_C" >&6
22801else
22802 case $GTK_CONFIG in
22803 [\\/]* | ?:[\\/]*)
22804 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22805 ;;
22806 *)
22807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22808for as_dir in $PATH
22809do
22810 IFS=$as_save_IFS
22811 test -z "$as_dir" && as_dir=.
22812 for ac_exec_ext in '' $ac_executable_extensions; do
22813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22814 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22816 break 2
22817 fi
22818done
22819done
22820
22821 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22822 ;;
22823esac
22824fi
22825GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22826
22827if test -n "$GTK_CONFIG"; then
22828 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22829echo "${ECHO_T}$GTK_CONFIG" >&6
22830else
22831 echo "$as_me:$LINENO: result: no" >&5
22832echo "${ECHO_T}no" >&6
22833fi
22834
22835 min_gtk_version=1.2.7
22836 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22837echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
22838 no_gtk=""
22839 if test "$GTK_CONFIG" = "no" ; then
22840 no_gtk=yes
22841 else
22842 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22843 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22844 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22845 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22846 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22847 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22848 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22849 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22850 if test "x$enable_gtktest" = "xyes" ; then
22851 ac_save_CFLAGS="$CFLAGS"
22852 ac_save_LIBS="$LIBS"
22853 CFLAGS="$CFLAGS $GTK_CFLAGS"
22854 LIBS="$GTK_LIBS $LIBS"
22855 rm -f conf.gtktest
22856 if test "$cross_compiling" = yes; then
22857 echo $ac_n "cross compiling; assumed OK... $ac_c"
22858else
22859 cat >conftest.$ac_ext <<_ACEOF
22860/* confdefs.h. */
22861_ACEOF
22862cat confdefs.h >>conftest.$ac_ext
22863cat >>conftest.$ac_ext <<_ACEOF
22864/* end confdefs.h. */
22865
22866#include <gtk/gtk.h>
22867#include <stdio.h>
22868#include <stdlib.h>
22869
22870int
22871main ()
22872{
22873 int major, minor, micro;
22874 char *tmp_version;
22875
22876 system ("touch conf.gtktest");
22877
22878 /* HP/UX 9 (%@#!) writes to sscanf strings */
22879 tmp_version = g_strdup("$min_gtk_version");
22880 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22881 printf("%s, bad version string\n", "$min_gtk_version");
22882 exit(1);
22883 }
22884
22885 if ((gtk_major_version != $gtk_config_major_version) ||
22886 (gtk_minor_version != $gtk_config_minor_version) ||
22887 (gtk_micro_version != $gtk_config_micro_version))
22888 {
22889 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
22890 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22891 gtk_major_version, gtk_minor_version, gtk_micro_version);
22892 printf ("*** was found! If gtk-config was correct, then it is best\n");
22893 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22894 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22895 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22896 printf("*** required on your system.\n");
22897 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22898 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22899 printf("*** before re-running configure\n");
22900 }
22901#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22902 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22903 (gtk_minor_version != GTK_MINOR_VERSION) ||
22904 (gtk_micro_version != GTK_MICRO_VERSION))
22905 {
22906 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22907 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22908 printf("*** library (version %d.%d.%d)\n",
22909 gtk_major_version, gtk_minor_version, gtk_micro_version);
22910 }
22911#endif /* defined (GTK_MAJOR_VERSION) ... */
22912 else
22913 {
22914 if ((gtk_major_version > major) ||
22915 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22916 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22917 {
22918 return 0;
22919 }
22920 else
22921 {
22922 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22923 gtk_major_version, gtk_minor_version, gtk_micro_version);
22924 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22925 major, minor, micro);
22926 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22927 printf("***\n");
22928 printf("*** If you have already installed a sufficiently new version, this error\n");
22929 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22930 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22931 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22932 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22933 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22934 printf("*** so that the correct libraries are found at run-time))\n");
22935 }
22936 }
22937 return 1;
22938}
22939
22940_ACEOF
22941rm -f conftest$ac_exeext
22942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22943 (eval $ac_link) 2>&5
22944 ac_status=$?
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22948 (eval $ac_try) 2>&5
22949 ac_status=$?
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); }; }; then
22952 :
22953else
22954 echo "$as_me: program exited with status $ac_status" >&5
22955echo "$as_me: failed program was:" >&5
22956sed 's/^/| /' conftest.$ac_ext >&5
22957
22958( exit $ac_status )
22959no_gtk=yes
22960fi
ac1cb8d3 22961rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22962fi
22963 CFLAGS="$ac_save_CFLAGS"
22964 LIBS="$ac_save_LIBS"
22965 fi
22966 fi
22967 if test "x$no_gtk" = x ; then
22968 echo "$as_me:$LINENO: result: yes" >&5
22969echo "${ECHO_T}yes" >&6
22970 wx_cv_lib_gtk=1.2.7
22971 else
22972 echo "$as_me:$LINENO: result: no" >&5
22973echo "${ECHO_T}no" >&6
22974 if test "$GTK_CONFIG" = "no" ; then
22975 echo "*** The gtk-config script installed by GTK could not be found"
22976 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22977 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22978 echo "*** full path to gtk-config."
22979 else
22980 if test -f conf.gtktest ; then
22981 :
22982 else
22983 echo "*** Could not run GTK test program, checking why..."
22984 CFLAGS="$CFLAGS $GTK_CFLAGS"
22985 LIBS="$LIBS $GTK_LIBS"
22986 cat >conftest.$ac_ext <<_ACEOF
22987/* confdefs.h. */
22988_ACEOF
22989cat confdefs.h >>conftest.$ac_ext
22990cat >>conftest.$ac_ext <<_ACEOF
22991/* end confdefs.h. */
22992
22993#include <gtk/gtk.h>
22994#include <stdio.h>
22995
22996int
22997main ()
22998{
22999 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23000 ;
23001 return 0;
23002}
23003_ACEOF
23004rm -f conftest.$ac_objext conftest$ac_exeext
23005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23006 (eval $ac_link) 2>conftest.er1
a848cd7e 23007 ac_status=$?
ac1cb8d3
VS
23008 grep -v '^ *+' conftest.er1 >conftest.err
23009 rm -f conftest.er1
23010 cat conftest.err >&5
a848cd7e
SC
23011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23012 (exit $ac_status); } &&
7714864e 23013 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23015 (eval $ac_try) 2>&5
23016 ac_status=$?
23017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018 (exit $ac_status); }; } &&
23019 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; }; then
23025 echo "*** The test program compiled, but did not run. This usually means"
23026 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23027 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23028 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23029 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23030 echo "*** is required on your system"
23031 echo "***"
23032 echo "*** If you have an old version installed, it is best to remove it, although"
23033 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23034 echo "***"
23035 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23036 echo "*** came with the system with the command"
23037 echo "***"
23038 echo "*** rpm --erase --nodeps gtk gtk-devel"
23039else
23040 echo "$as_me: failed program was:" >&5
23041sed 's/^/| /' conftest.$ac_ext >&5
23042
23043 echo "*** The test program failed to compile or link. See the file config.log for the"
23044 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23045 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23046 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23047fi
ac1cb8d3
VS
23048rm -f conftest.err conftest.$ac_objext \
23049 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23050 CFLAGS="$ac_save_CFLAGS"
23051 LIBS="$ac_save_LIBS"
23052 fi
23053 fi
23054 GTK_CFLAGS=""
23055 GTK_LIBS=""
23056 :
23057 fi
23058
23059
23060 rm -f conf.gtktest
23061
23062
23063 if test -z "$wx_cv_lib_gtk"; then
23064
23065# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23066if test "${with_gtk_prefix+set}" = set; then
23067 withval="$with_gtk_prefix"
23068 gtk_config_prefix="$withval"
23069else
23070 gtk_config_prefix=""
23071fi;
23072
23073# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23074if test "${with_gtk_exec_prefix+set}" = set; then
23075 withval="$with_gtk_exec_prefix"
23076 gtk_config_exec_prefix="$withval"
23077else
23078 gtk_config_exec_prefix=""
23079fi;
23080# Check whether --enable-gtktest or --disable-gtktest was given.
23081if test "${enable_gtktest+set}" = set; then
23082 enableval="$enable_gtktest"
23083
23084else
23085 enable_gtktest=yes
23086fi;
23087
23088 for module in . $GTK_MODULES
23089 do
23090 case "$module" in
23091 gthread)
23092 gtk_config_args="$gtk_config_args gthread"
23093 ;;
23094 esac
23095 done
23096
23097 if test x$gtk_config_exec_prefix != x ; then
23098 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23099 if test x${GTK_CONFIG+set} != xset ; then
23100 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23101 fi
23102 fi
23103 if test x$gtk_config_prefix != x ; then
23104 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23105 if test x${GTK_CONFIG+set} != xset ; then
23106 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23107 fi
23108 fi
23109
23110 # Extract the first word of "gtk-config", so it can be a program name with args.
23111set dummy gtk-config; ac_word=$2
23112echo "$as_me:$LINENO: checking for $ac_word" >&5
23113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23114if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23115 echo $ECHO_N "(cached) $ECHO_C" >&6
23116else
23117 case $GTK_CONFIG in
23118 [\\/]* | ?:[\\/]*)
23119 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23120 ;;
23121 *)
23122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23123for as_dir in $PATH
23124do
23125 IFS=$as_save_IFS
23126 test -z "$as_dir" && as_dir=.
23127 for ac_exec_ext in '' $ac_executable_extensions; do
23128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23129 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23131 break 2
23132 fi
23133done
23134done
23135
23136 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23137 ;;
23138esac
23139fi
23140GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23141
23142if test -n "$GTK_CONFIG"; then
23143 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23144echo "${ECHO_T}$GTK_CONFIG" >&6
23145else
23146 echo "$as_me:$LINENO: result: no" >&5
23147echo "${ECHO_T}no" >&6
23148fi
23149
23150 min_gtk_version=1.2.3
23151 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23152echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23153 no_gtk=""
23154 if test "$GTK_CONFIG" = "no" ; then
23155 no_gtk=yes
23156 else
23157 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23158 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23159 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23160 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23161 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23162 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23163 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23164 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23165 if test "x$enable_gtktest" = "xyes" ; then
23166 ac_save_CFLAGS="$CFLAGS"
23167 ac_save_LIBS="$LIBS"
23168 CFLAGS="$CFLAGS $GTK_CFLAGS"
23169 LIBS="$GTK_LIBS $LIBS"
23170 rm -f conf.gtktest
23171 if test "$cross_compiling" = yes; then
23172 echo $ac_n "cross compiling; assumed OK... $ac_c"
23173else
23174 cat >conftest.$ac_ext <<_ACEOF
23175/* confdefs.h. */
23176_ACEOF
23177cat confdefs.h >>conftest.$ac_ext
23178cat >>conftest.$ac_ext <<_ACEOF
23179/* end confdefs.h. */
23180
23181#include <gtk/gtk.h>
23182#include <stdio.h>
23183#include <stdlib.h>
23184
23185int
23186main ()
23187{
23188 int major, minor, micro;
23189 char *tmp_version;
23190
23191 system ("touch conf.gtktest");
23192
23193 /* HP/UX 9 (%@#!) writes to sscanf strings */
23194 tmp_version = g_strdup("$min_gtk_version");
23195 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23196 printf("%s, bad version string\n", "$min_gtk_version");
23197 exit(1);
23198 }
23199
23200 if ((gtk_major_version != $gtk_config_major_version) ||
23201 (gtk_minor_version != $gtk_config_minor_version) ||
23202 (gtk_micro_version != $gtk_config_micro_version))
23203 {
23204 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23205 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23206 gtk_major_version, gtk_minor_version, gtk_micro_version);
23207 printf ("*** was found! If gtk-config was correct, then it is best\n");
23208 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23209 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23210 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23211 printf("*** required on your system.\n");
23212 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23213 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23214 printf("*** before re-running configure\n");
23215 }
23216#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23217 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23218 (gtk_minor_version != GTK_MINOR_VERSION) ||
23219 (gtk_micro_version != GTK_MICRO_VERSION))
23220 {
23221 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23222 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23223 printf("*** library (version %d.%d.%d)\n",
23224 gtk_major_version, gtk_minor_version, gtk_micro_version);
23225 }
23226#endif /* defined (GTK_MAJOR_VERSION) ... */
23227 else
23228 {
23229 if ((gtk_major_version > major) ||
23230 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23231 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23232 {
23233 return 0;
23234 }
23235 else
23236 {
23237 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23238 gtk_major_version, gtk_minor_version, gtk_micro_version);
23239 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23240 major, minor, micro);
23241 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23242 printf("***\n");
23243 printf("*** If you have already installed a sufficiently new version, this error\n");
23244 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23245 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23246 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23247 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23248 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23249 printf("*** so that the correct libraries are found at run-time))\n");
23250 }
23251 }
23252 return 1;
23253}
23254
23255_ACEOF
23256rm -f conftest$ac_exeext
23257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23258 (eval $ac_link) 2>&5
23259 ac_status=$?
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23263 (eval $ac_try) 2>&5
23264 ac_status=$?
23265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266 (exit $ac_status); }; }; then
23267 :
23268else
23269 echo "$as_me: program exited with status $ac_status" >&5
23270echo "$as_me: failed program was:" >&5
23271sed 's/^/| /' conftest.$ac_ext >&5
23272
23273( exit $ac_status )
23274no_gtk=yes
23275fi
ac1cb8d3 23276rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23277fi
23278 CFLAGS="$ac_save_CFLAGS"
23279 LIBS="$ac_save_LIBS"
23280 fi
23281 fi
23282 if test "x$no_gtk" = x ; then
23283 echo "$as_me:$LINENO: result: yes" >&5
23284echo "${ECHO_T}yes" >&6
23285 wx_cv_lib_gtk=1.2.3
23286 else
23287 echo "$as_me:$LINENO: result: no" >&5
23288echo "${ECHO_T}no" >&6
23289 if test "$GTK_CONFIG" = "no" ; then
23290 echo "*** The gtk-config script installed by GTK could not be found"
23291 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23292 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23293 echo "*** full path to gtk-config."
23294 else
23295 if test -f conf.gtktest ; then
23296 :
23297 else
23298 echo "*** Could not run GTK test program, checking why..."
23299 CFLAGS="$CFLAGS $GTK_CFLAGS"
23300 LIBS="$LIBS $GTK_LIBS"
23301 cat >conftest.$ac_ext <<_ACEOF
23302/* confdefs.h. */
23303_ACEOF
23304cat confdefs.h >>conftest.$ac_ext
23305cat >>conftest.$ac_ext <<_ACEOF
23306/* end confdefs.h. */
23307
23308#include <gtk/gtk.h>
23309#include <stdio.h>
23310
23311int
23312main ()
23313{
23314 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23315 ;
23316 return 0;
23317}
23318_ACEOF
23319rm -f conftest.$ac_objext conftest$ac_exeext
23320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23321 (eval $ac_link) 2>conftest.er1
a848cd7e 23322 ac_status=$?
ac1cb8d3
VS
23323 grep -v '^ *+' conftest.er1 >conftest.err
23324 rm -f conftest.er1
23325 cat conftest.err >&5
a848cd7e
SC
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); } &&
7714864e 23328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23330 (eval $ac_try) 2>&5
23331 ac_status=$?
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); }; } &&
23334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336 (eval $ac_try) 2>&5
23337 ac_status=$?
23338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339 (exit $ac_status); }; }; then
23340 echo "*** The test program compiled, but did not run. This usually means"
23341 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23342 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23343 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23344 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23345 echo "*** is required on your system"
23346 echo "***"
23347 echo "*** If you have an old version installed, it is best to remove it, although"
23348 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23349 echo "***"
23350 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23351 echo "*** came with the system with the command"
23352 echo "***"
23353 echo "*** rpm --erase --nodeps gtk gtk-devel"
23354else
23355 echo "$as_me: failed program was:" >&5
23356sed 's/^/| /' conftest.$ac_ext >&5
23357
23358 echo "*** The test program failed to compile or link. See the file config.log for the"
23359 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23360 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23361 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23362fi
ac1cb8d3
VS
23363rm -f conftest.err conftest.$ac_objext \
23364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23365 CFLAGS="$ac_save_CFLAGS"
23366 LIBS="$ac_save_LIBS"
23367 fi
23368 fi
23369 GTK_CFLAGS=""
23370 GTK_LIBS=""
23371 :
23372 fi
23373
23374
23375 rm -f conf.gtktest
23376
23377 fi
23378 fi
23379
23380 if test -z "$wx_cv_lib_gtk"; then
23381 wx_cv_lib_gtk=none
23382 else
23383 wx_cv_cflags_gtk=$GTK_CFLAGS
23384 wx_cv_libs_gtk=$GTK_LIBS
23385 fi
23386
23387
23388fi
23389
23390
23391 if test "$gtk_version_cached" = 1; then
23392 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23393echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23394 fi
23395
23396 case "$wx_cv_lib_gtk" in
23397 2.0) WXGTK20=1
23398 TOOLKIT_VERSION=2
23399 ;;
23400 1.2.7) WXGTK127=1
23401 WXGTK12=1
23402 ;;
23403 1.2.3) WXGTK12=1
23404 ;;
23405 *) { { echo "$as_me:$LINENO: error:
23406Please check that gtk-config is in path, the directory
23407where GTK+ libraries are installed (returned by
23408'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23409equivalent variable and GTK+ is version 1.2.3 or above.
23410 " >&5
23411echo "$as_me: error:
23412Please check that gtk-config is in path, the directory
23413where GTK+ libraries are installed (returned by
23414'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23415equivalent variable and GTK+ is version 1.2.3 or above.
23416 " >&2;}
23417 { (exit 1); exit 1; }; }
23418 ;;
23419 esac
23420
23421 if test "$WXGTK20" = 1; then
23422 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
23423
23424 succeeded=no
23425
23426 if test -z "$PKG_CONFIG"; then
23427 # Extract the first word of "pkg-config", so it can be a program name with args.
23428set dummy pkg-config; ac_word=$2
23429echo "$as_me:$LINENO: checking for $ac_word" >&5
23430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23431if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23432 echo $ECHO_N "(cached) $ECHO_C" >&6
23433else
23434 case $PKG_CONFIG in
23435 [\\/]* | ?:[\\/]*)
23436 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23437 ;;
23438 *)
23439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23440for as_dir in $PATH
23441do
23442 IFS=$as_save_IFS
23443 test -z "$as_dir" && as_dir=.
23444 for ac_exec_ext in '' $ac_executable_extensions; do
23445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23446 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23448 break 2
23449 fi
23450done
23451done
23452
23453 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23454 ;;
23455esac
23456fi
23457PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23458
23459if test -n "$PKG_CONFIG"; then
23460 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23461echo "${ECHO_T}$PKG_CONFIG" >&6
23462else
23463 echo "$as_me:$LINENO: result: no" >&5
23464echo "${ECHO_T}no" >&6
23465fi
23466
23467 fi
23468
23469 if test "$PKG_CONFIG" = "no" ; then
23470 echo "*** The pkg-config script could not be found. Make sure it is"
23471 echo "*** in your path, or set the PKG_CONFIG environment variable"
23472 echo "*** to the full path to pkg-config."
23473 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23474 else
23475 PKG_CONFIG_MIN_VERSION=0.9.0
23476 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23477 echo "$as_me:$LINENO: checking for pangoft2" >&5
23478echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
23479
23480 if $PKG_CONFIG --exists "pangoft2" ; then
23481 echo "$as_me:$LINENO: result: yes" >&5
23482echo "${ECHO_T}yes" >&6
23483 succeeded=yes
23484
23485 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23486echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
23487 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
23488 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23489echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
23490
23491 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23492echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
23493 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
23494 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23495echo "${ECHO_T}$PANGOFT2_LIBS" >&6
23496 else
23497 PANGOFT2_CFLAGS=""
23498 PANGOFT2_LIBS=""
23499 ## If we have a custom action on failure, don't print errors, but
23500 ## do set a variable so people can do so.
23501 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
23502
23503 fi
23504
23505
23506
23507 else
23508 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23509 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23510 fi
23511 fi
23512
23513 if test $succeeded = yes; then
23514
23515 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
ceec2216
RL
23516 # FIXME: GTK_LIBS already has a lot of what this is
23517 # about to add, but we go ahead and just add
23518 # it all again anyway.
23519 # This is not a good way to manage things. And simply
23520 # uniq'ing the list later is hardly better.
a848cd7e
SC
23521 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
23522
23523 else
23524
23525 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23526echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
23527 wxUSE_PRINTING_ARCHITECTURE="no"
23528
23529
23530 fi
23531
23532 fi
304205f1
VS
23533
23534 save_CFLAGS="$CFLAGS"
23535 save_LIBS="$LIBS"
23536 CFLAGS="$CFLAGS $GTK_CFLAGS"
23537 LIBS="$LIBS $GTK_LIBS"
23538
23539for ac_func in pango_font_family_is_monospace
23540do
23541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23542echo "$as_me:$LINENO: checking for $ac_func" >&5
23543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23544if eval "test \"\${$as_ac_var+set}\" = set"; then
23545 echo $ECHO_N "(cached) $ECHO_C" >&6
23546else
23547 cat >conftest.$ac_ext <<_ACEOF
23548/* confdefs.h. */
23549_ACEOF
23550cat confdefs.h >>conftest.$ac_ext
23551cat >>conftest.$ac_ext <<_ACEOF
23552/* end confdefs.h. */
23553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23555#define $ac_func innocuous_$ac_func
23556
23557/* System header to define __stub macros and hopefully few prototypes,
23558 which can conflict with char $ac_func (); below.
23559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23560 <limits.h> exists even on freestanding compilers. */
23561
23562#ifdef __STDC__
23563# include <limits.h>
23564#else
23565# include <assert.h>
23566#endif
23567
23568#undef $ac_func
23569
23570/* Override any gcc2 internal prototype to avoid an error. */
23571#ifdef __cplusplus
23572extern "C"
23573{
23574#endif
23575/* We use char because int might match the return type of a gcc2
23576 builtin and then its argument prototype would still apply. */
23577char $ac_func ();
23578/* The GNU C library defines this for functions which it implements
23579 to always fail with ENOSYS. Some functions are actually named
23580 something starting with __ and the normal name is an alias. */
23581#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23582choke me
23583#else
23584char (*f) () = $ac_func;
23585#endif
23586#ifdef __cplusplus
23587}
23588#endif
23589
23590int
23591main ()
23592{
23593return f != $ac_func;
23594 ;
23595 return 0;
23596}
23597_ACEOF
23598rm -f conftest.$ac_objext conftest$ac_exeext
23599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23600 (eval $ac_link) 2>conftest.er1
23601 ac_status=$?
23602 grep -v '^ *+' conftest.er1 >conftest.err
23603 rm -f conftest.er1
23604 cat conftest.err >&5
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); } &&
7714864e 23607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23610 ac_status=$?
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; } &&
23613 { ac_try='test -s conftest$ac_exeext'
23614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615 (eval $ac_try) 2>&5
23616 ac_status=$?
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); }; }; then
23619 eval "$as_ac_var=yes"
23620else
23621 echo "$as_me: failed program was:" >&5
23622sed 's/^/| /' conftest.$ac_ext >&5
23623
23624eval "$as_ac_var=no"
23625fi
23626rm -f conftest.err conftest.$ac_objext \
23627 conftest$ac_exeext conftest.$ac_ext
23628fi
23629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23630echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23631if test `eval echo '${'$as_ac_var'}'` = yes; then
23632 cat >>confdefs.h <<_ACEOF
23633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23634_ACEOF
23635
23636fi
23637done
23638
23639 CFLAGS="$save_CFLAGS"
23640 LIBS="$save_LIBS"
a848cd7e
SC
23641 else
23642 if test "$wxUSE_UNICODE" = "yes"; then
23643 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
23644echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
23645 wxUSE_UNICODE=no
23646 fi
23647 fi
23648
23649 if test "$USE_DARWIN" != 1; then
23650
23651for ac_func in poll
23652do
23653as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23654echo "$as_me:$LINENO: checking for $ac_func" >&5
23655echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23656if eval "test \"\${$as_ac_var+set}\" = set"; then
23657 echo $ECHO_N "(cached) $ECHO_C" >&6
23658else
23659 cat >conftest.$ac_ext <<_ACEOF
23660/* confdefs.h. */
23661_ACEOF
23662cat confdefs.h >>conftest.$ac_ext
23663cat >>conftest.$ac_ext <<_ACEOF
23664/* end confdefs.h. */
ac1cb8d3
VS
23665/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23667#define $ac_func innocuous_$ac_func
23668
a848cd7e
SC
23669/* System header to define __stub macros and hopefully few prototypes,
23670 which can conflict with char $ac_func (); below.
23671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23672 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23673
a848cd7e
SC
23674#ifdef __STDC__
23675# include <limits.h>
23676#else
23677# include <assert.h>
23678#endif
ac1cb8d3
VS
23679
23680#undef $ac_func
23681
a848cd7e
SC
23682/* Override any gcc2 internal prototype to avoid an error. */
23683#ifdef __cplusplus
23684extern "C"
23685{
23686#endif
23687/* We use char because int might match the return type of a gcc2
23688 builtin and then its argument prototype would still apply. */
23689char $ac_func ();
23690/* The GNU C library defines this for functions which it implements
23691 to always fail with ENOSYS. Some functions are actually named
23692 something starting with __ and the normal name is an alias. */
23693#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23694choke me
23695#else
23696char (*f) () = $ac_func;
23697#endif
23698#ifdef __cplusplus
23699}
23700#endif
23701
23702int
23703main ()
23704{
23705return f != $ac_func;
23706 ;
23707 return 0;
23708}
23709_ACEOF
23710rm -f conftest.$ac_objext conftest$ac_exeext
23711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23712 (eval $ac_link) 2>conftest.er1
a848cd7e 23713 ac_status=$?
ac1cb8d3
VS
23714 grep -v '^ *+' conftest.er1 >conftest.err
23715 rm -f conftest.er1
23716 cat conftest.err >&5
a848cd7e
SC
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } &&
7714864e 23719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; } &&
23725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23728 ac_status=$?
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; }; then
23731 eval "$as_ac_var=yes"
23732else
23733 echo "$as_me: failed program was:" >&5
23734sed 's/^/| /' conftest.$ac_ext >&5
23735
23736eval "$as_ac_var=no"
23737fi
ac1cb8d3
VS
23738rm -f conftest.err conftest.$ac_objext \
23739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23740fi
23741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23743if test `eval echo '${'$as_ac_var'}'` = yes; then
23744 cat >>confdefs.h <<_ACEOF
23745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23746_ACEOF
23747
23748fi
23749done
23750
23751 fi
23752
23753 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
23754 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
23755
23756 AFMINSTALL=afminstall
23757 TOOLKIT=GTK
23758 GUIDIST=GTK_DIST
23759
23760 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23761echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23762if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23763 echo $ECHO_N "(cached) $ECHO_C" >&6
23764else
23765 ac_check_lib_save_LIBS=$LIBS
23766LIBS="-lgdk $LIBS"
23767cat >conftest.$ac_ext <<_ACEOF
23768/* confdefs.h. */
23769_ACEOF
23770cat confdefs.h >>conftest.$ac_ext
23771cat >>conftest.$ac_ext <<_ACEOF
23772/* end confdefs.h. */
23773
23774/* Override any gcc2 internal prototype to avoid an error. */
23775#ifdef __cplusplus
23776extern "C"
23777#endif
23778/* We use char because int might match the return type of a gcc2
23779 builtin and then its argument prototype would still apply. */
23780char gdk_im_open ();
23781int
23782main ()
23783{
23784gdk_im_open ();
23785 ;
23786 return 0;
23787}
23788_ACEOF
23789rm -f conftest.$ac_objext conftest$ac_exeext
23790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23791 (eval $ac_link) 2>conftest.er1
a848cd7e 23792 ac_status=$?
ac1cb8d3
VS
23793 grep -v '^ *+' conftest.er1 >conftest.err
23794 rm -f conftest.er1
23795 cat conftest.err >&5
a848cd7e
SC
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); } &&
7714864e 23798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23800 (eval $ac_try) 2>&5
23801 ac_status=$?
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); }; } &&
23804 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23806 (eval $ac_try) 2>&5
23807 ac_status=$?
23808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); }; }; then
23810 ac_cv_lib_gdk_gdk_im_open=yes
23811else
23812 echo "$as_me: failed program was:" >&5
23813sed 's/^/| /' conftest.$ac_ext >&5
23814
23815ac_cv_lib_gdk_gdk_im_open=no
23816fi
ac1cb8d3
VS
23817rm -f conftest.err conftest.$ac_objext \
23818 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23819LIBS=$ac_check_lib_save_LIBS
23820fi
23821echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23822echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23823if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23824 cat >>confdefs.h <<\_ACEOF
23825#define HAVE_XIM 1
23826_ACEOF
23827
23828fi
23829
23830
23831
23832 if test "$wxUSE_GPE" = "yes"; then
23833 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23834echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23835
23836ac_find_libraries=
23837for ac_dir in $SEARCH_LIB /usr/lib;
23838 do
23839 for ac_extension in a so sl dylib; do
23840 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23841 ac_find_libraries=$ac_dir
23842 break 2
23843 fi
23844 done
23845 done
23846
23847 if test "$ac_find_libraries" != "" ; then
23848
23849 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23850 result=$?
23851 if test $result = 0; then
23852 ac_path_to_link=""
23853 else
23854 ac_path_to_link=" -L$ac_find_libraries"
23855 fi
23856
23857 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23858 WXGPE=1
23859 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23860echo "${ECHO_T}found at $ac_find_libraries" >&6
23861 else
23862 echo "$as_me:$LINENO: result: not found" >&5
23863echo "${ECHO_T}not found" >&6
23864 fi
23865
23866 fi
23867 fi
23868
23869 if test "$wxUSE_MGL" = 1; then
23870 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23871echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
23872 if test "x$MGL_ROOT" = x ; then
23873 echo "$as_me:$LINENO: result: not found" >&5
23874echo "${ECHO_T}not found" >&6
23875 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23876echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23877 { (exit 1); exit 1; }; }
23878 else
23879 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23880echo "${ECHO_T}$MGL_ROOT" >&6
23881 fi
23882
23883 echo "$as_me:$LINENO: checking for libmgl location" >&5
23884echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
23885 case "${host}" in
23886 *-*-linux* )
23887 if test "x$wxUSE_SHARED" = xyes ; then
23888 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
23889 else
23890 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
23891 fi
23892 ;;
23893 *-pc-msdosdjgpp )
23894 mgl_os_candidates="dos32/dj2"
23895 ;;
23896 *)
23897 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23898echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23899 { (exit 1); exit 1; }; }
23900 esac
23901
23902 mgl_lib_type=""
23903 mgl_os=""
23904
23905 for mgl_os_i in $mgl_os_candidates ; do
23906 if test "x$mgl_os" = x ; then
23907 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23908 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23909 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23910 mgl_lib_type=debug
23911 mgl_os=$mgl_os_i
23912 fi
23913 fi
23914 if test "x$mgl_lib_type" = x ; then
23915 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23916 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23917 mgl_lib_type=release
23918 mgl_os=$mgl_os_i
23919 fi
23920 fi
23921 fi
23922 done
23923
23924 if test "x$mgl_os" = x ; then
23925 echo "$as_me:$LINENO: result: not found" >&5
23926echo "${ECHO_T}not found" >&6
23927 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23928echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23929 { (exit 1); exit 1; }; }
23930 fi
23931 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23932echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
23933
23934 wxUSE_UNIVERSAL="yes"
23935
23936 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23937 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23938
23939 AFMINSTALL=afminstall
23940 TOOLKIT=MGL
23941 GUIDIST=MGL_DIST
23942 fi
23943
23944 if test "$wxUSE_MICROWIN" = 1; then
23945 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23946echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
23947 if test "x$MICROWINDOWS" = x ; then
23948 echo "$as_me:$LINENO: result: not found" >&5
23949echo "${ECHO_T}not found" >&6
23950 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23951echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23952 { (exit 1); exit 1; }; }
23953 else
23954 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23955echo "${ECHO_T}$MICROWINDOWS" >&6
23956 fi
23957
23958 if test -f $MICROWINDOWS/lib/libmwin.a; then
23959 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23960echo "${ECHO_T}MicroWindows' libraries found." >&6
23961 else
23962 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23963echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23964 { (exit 1); exit 1; }; }
23965 fi
23966
23967 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23968 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23969
23970 wxUSE_UNIVERSAL="yes"
23971
23972 AFMINSTALL=afminstall
23973 TOOLKIT=MICROWIN
23974 GUIDIST=MICROWIN_DIST
23975
23976 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
23977 fi
23978
74b84332 23979 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
7714864e
RL
23980
23981if test "x$ac_path_x_has_been_run" != xyes; then
23982 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
23983echo $ECHO_N "checking for X... $ECHO_C" >&6
23984
7714864e 23985ac_path_x_has_been_run=yes
a848cd7e
SC
23986
23987# Check whether --with-x or --without-x was given.
23988if test "${with_x+set}" = set; then
23989 withval="$with_x"
23990
23991fi;
23992# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23993if test "x$with_x" = xno; then
23994 # The user explicitly disabled X.
23995 have_x=disabled
23996else
23997 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23998 # Both variables are already set.
23999 have_x=yes
24000 else
24001 if test "${ac_cv_have_x+set}" = set; then
24002 echo $ECHO_N "(cached) $ECHO_C" >&6
24003else
24004 # One or both of the vars are not set, and there is no cached value.
24005ac_x_includes=no ac_x_libraries=no
24006rm -fr conftest.dir
24007if mkdir conftest.dir; then
24008 cd conftest.dir
24009 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24010 cat >Imakefile <<'_ACEOF'
24011acfindx:
24012 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24013_ACEOF
24014 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24015 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24016 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24017 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24018 for ac_extension in a so sl; do
24019 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24020 test -f $ac_im_libdir/libX11.$ac_extension; then
24021 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24022 fi
24023 done
24024 # Screen out bogus values from the imake configuration. They are
24025 # bogus both because they are the default anyway, and because
24026 # using them would break gcc on systems where it needs fixed includes.
24027 case $ac_im_incroot in
24028 /usr/include) ;;
24029 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24030 esac
24031 case $ac_im_usrlibdir in
24032 /usr/lib | /lib) ;;
24033 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24034 esac
24035 fi
24036 cd ..
24037 rm -fr conftest.dir
24038fi
24039
24040# Standard set of common directories for X headers.
24041# Check X11 before X11Rn because it is often a symlink to the current release.
24042ac_x_header_dirs='
24043/usr/X11/include
24044/usr/X11R6/include
24045/usr/X11R5/include
24046/usr/X11R4/include
24047
24048/usr/include/X11
24049/usr/include/X11R6
24050/usr/include/X11R5
24051/usr/include/X11R4
24052
24053/usr/local/X11/include
24054/usr/local/X11R6/include
24055/usr/local/X11R5/include
24056/usr/local/X11R4/include
24057
24058/usr/local/include/X11
24059/usr/local/include/X11R6
24060/usr/local/include/X11R5
24061/usr/local/include/X11R4
24062
24063/usr/X386/include
24064/usr/x386/include
24065/usr/XFree86/include/X11
24066
24067/usr/include
24068/usr/local/include
24069/usr/unsupported/include
24070/usr/athena/include
24071/usr/local/x11r5/include
24072/usr/lpp/Xamples/include
24073
24074/usr/openwin/include
24075/usr/openwin/share/include'
24076
24077if test "$ac_x_includes" = no; then
7714864e 24078 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
24079 # First, try using that file with no special directory specified.
24080 cat >conftest.$ac_ext <<_ACEOF
24081/* confdefs.h. */
24082_ACEOF
24083cat confdefs.h >>conftest.$ac_ext
24084cat >>conftest.$ac_ext <<_ACEOF
24085/* end confdefs.h. */
24086#include <X11/Intrinsic.h>
24087_ACEOF
24088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24090 ac_status=$?
24091 grep -v '^ *+' conftest.er1 >conftest.err
24092 rm -f conftest.er1
24093 cat conftest.err >&5
24094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095 (exit $ac_status); } >/dev/null; then
24096 if test -s conftest.err; then
24097 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24099 else
24100 ac_cpp_err=
24101 fi
24102else
24103 ac_cpp_err=yes
24104fi
24105if test -z "$ac_cpp_err"; then
24106 # We can compile using X headers with no special include directory.
24107ac_x_includes=
24108else
24109 echo "$as_me: failed program was:" >&5
24110sed 's/^/| /' conftest.$ac_ext >&5
24111
24112 for ac_dir in $ac_x_header_dirs; do
24113 if test -r "$ac_dir/X11/Intrinsic.h"; then
24114 ac_x_includes=$ac_dir
24115 break
24116 fi
24117done
24118fi
24119rm -f conftest.err conftest.$ac_ext
24120fi # $ac_x_includes = no
24121
24122if test "$ac_x_libraries" = no; then
24123 # Check for the libraries.
24124 # See if we find them without any special options.
24125 # Don't add to $LIBS permanently.
24126 ac_save_LIBS=$LIBS
24127 LIBS="-lXt $LIBS"
24128 cat >conftest.$ac_ext <<_ACEOF
24129/* confdefs.h. */
24130_ACEOF
24131cat confdefs.h >>conftest.$ac_ext
24132cat >>conftest.$ac_ext <<_ACEOF
24133/* end confdefs.h. */
24134#include <X11/Intrinsic.h>
24135int
24136main ()
24137{
24138XtMalloc (0)
24139 ;
24140 return 0;
24141}
24142_ACEOF
24143rm -f conftest.$ac_objext conftest$ac_exeext
24144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24145 (eval $ac_link) 2>conftest.er1
a848cd7e 24146 ac_status=$?
ac1cb8d3
VS
24147 grep -v '^ *+' conftest.er1 >conftest.err
24148 rm -f conftest.er1
24149 cat conftest.err >&5
a848cd7e
SC
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); } &&
7714864e 24152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154 (eval $ac_try) 2>&5
24155 ac_status=$?
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); }; } &&
24158 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160 (eval $ac_try) 2>&5
24161 ac_status=$?
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); }; }; then
24164 LIBS=$ac_save_LIBS
24165# We can link X programs with no special library path.
24166ac_x_libraries=
24167else
24168 echo "$as_me: failed program was:" >&5
24169sed 's/^/| /' conftest.$ac_ext >&5
24170
24171LIBS=$ac_save_LIBS
24172for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24173do
24174 # Don't even attempt the hair of trying to link an X program!
24175 for ac_extension in a so sl; do
24176 if test -r $ac_dir/libXt.$ac_extension; then
24177 ac_x_libraries=$ac_dir
24178 break 2
24179 fi
24180 done
24181done
24182fi
ac1cb8d3
VS
24183rm -f conftest.err conftest.$ac_objext \
24184 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24185fi # $ac_x_libraries = no
24186
24187if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24188 # Didn't find X anywhere. Cache the known absence of X.
24189 ac_cv_have_x="have_x=no"
24190else
24191 # Record where we found X for the cache.
24192 ac_cv_have_x="have_x=yes \
ac1cb8d3 24193 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24194fi
24195fi
24196
24197 fi
24198 eval "$ac_cv_have_x"
24199fi # $with_x != no
24200
24201if test "$have_x" != yes; then
24202 echo "$as_me:$LINENO: result: $have_x" >&5
24203echo "${ECHO_T}$have_x" >&6
24204 no_x=yes
24205else
24206 # If each of the values was on the command line, it overrides each guess.
24207 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24208 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24209 # Update the cache value to reflect the command line values.
24210 ac_cv_have_x="have_x=yes \
24211 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7714864e
RL
24212 # It might be that x_includes is empty (headers are found in the
24213 # standard search path. Then output the corresponding message
24214 ac_out_x_includes=$x_includes
24215 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
24216 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
24217echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
24218fi
24219
7714864e 24220fi
a848cd7e
SC
24221if test "$no_x" = yes; then
24222 # Not all programs may use this symbol, but it does not hurt to define it.
24223
24224cat >>confdefs.h <<\_ACEOF
24225#define X_DISPLAY_MISSING 1
24226_ACEOF
24227
24228 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24229else
24230 if test -n "$x_includes"; then
24231 X_CFLAGS="$X_CFLAGS -I$x_includes"
24232 fi
24233
24234 # It would also be nice to do this for all -L options, not just this one.
24235 if test -n "$x_libraries"; then
24236 X_LIBS="$X_LIBS -L$x_libraries"
24237 # For Solaris; some versions of Sun CC require a space after -R and
24238 # others require no space. Words are not sufficient . . . .
24239 case `(uname -sr) 2>/dev/null` in
24240 "SunOS 5"*)
24241 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24242echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24243 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24244 cat >conftest.$ac_ext <<_ACEOF
24245/* confdefs.h. */
24246_ACEOF
24247cat confdefs.h >>conftest.$ac_ext
24248cat >>conftest.$ac_ext <<_ACEOF
24249/* end confdefs.h. */
24250
24251int
24252main ()
24253{
24254
24255 ;
24256 return 0;
24257}
24258_ACEOF
24259rm -f conftest.$ac_objext conftest$ac_exeext
24260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24261 (eval $ac_link) 2>conftest.er1
a848cd7e 24262 ac_status=$?
ac1cb8d3
VS
24263 grep -v '^ *+' conftest.er1 >conftest.err
24264 rm -f conftest.er1
24265 cat conftest.err >&5
a848cd7e
SC
24266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24267 (exit $ac_status); } &&
7714864e 24268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24270 (eval $ac_try) 2>&5
24271 ac_status=$?
24272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273 (exit $ac_status); }; } &&
24274 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24276 (eval $ac_try) 2>&5
24277 ac_status=$?
24278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24279 (exit $ac_status); }; }; then
24280 ac_R_nospace=yes
24281else
24282 echo "$as_me: failed program was:" >&5
24283sed 's/^/| /' conftest.$ac_ext >&5
24284
24285ac_R_nospace=no
24286fi
ac1cb8d3
VS
24287rm -f conftest.err conftest.$ac_objext \
24288 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24289 if test $ac_R_nospace = yes; then
24290 echo "$as_me:$LINENO: result: no" >&5
24291echo "${ECHO_T}no" >&6
24292 X_LIBS="$X_LIBS -R$x_libraries"
24293 else
24294 LIBS="$ac_xsave_LIBS -R $x_libraries"
24295 cat >conftest.$ac_ext <<_ACEOF
24296/* confdefs.h. */
24297_ACEOF
24298cat confdefs.h >>conftest.$ac_ext
24299cat >>conftest.$ac_ext <<_ACEOF
24300/* end confdefs.h. */
24301
24302int
24303main ()
24304{
24305
24306 ;
24307 return 0;
24308}
24309_ACEOF
24310rm -f conftest.$ac_objext conftest$ac_exeext
24311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24312 (eval $ac_link) 2>conftest.er1
a848cd7e 24313 ac_status=$?
ac1cb8d3
VS
24314 grep -v '^ *+' conftest.er1 >conftest.err
24315 rm -f conftest.er1
24316 cat conftest.err >&5
a848cd7e
SC
24317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } &&
7714864e 24319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321 (eval $ac_try) 2>&5
24322 ac_status=$?
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; } &&
24325 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24328 ac_status=$?
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; }; then
24331 ac_R_space=yes
24332else
24333 echo "$as_me: failed program was:" >&5
24334sed 's/^/| /' conftest.$ac_ext >&5
24335
24336ac_R_space=no
24337fi
ac1cb8d3
VS
24338rm -f conftest.err conftest.$ac_objext \
24339 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24340 if test $ac_R_space = yes; then
24341 echo "$as_me:$LINENO: result: yes" >&5
24342echo "${ECHO_T}yes" >&6
24343 X_LIBS="$X_LIBS -R $x_libraries"
24344 else
24345 echo "$as_me:$LINENO: result: neither works" >&5
24346echo "${ECHO_T}neither works" >&6
24347 fi
24348 fi
24349 LIBS=$ac_xsave_LIBS
24350 esac
24351 fi
24352
24353 # Check for system-dependent libraries X programs must link with.
24354 # Do this before checking for the system-independent R6 libraries
24355 # (-lICE), since we may need -lsocket or whatever for X linking.
24356
24357 if test "$ISC" = yes; then
24358 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24359 else
24360 # Martyn Johnson says this is needed for Ultrix, if the X
24361 # libraries were built with DECnet support. And Karl Berry says
24362 # the Alpha needs dnet_stub (dnet does not exist).
24363 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24364 cat >conftest.$ac_ext <<_ACEOF
24365/* confdefs.h. */
24366_ACEOF
24367cat confdefs.h >>conftest.$ac_ext
24368cat >>conftest.$ac_ext <<_ACEOF
24369/* end confdefs.h. */
24370
24371/* Override any gcc2 internal prototype to avoid an error. */
24372#ifdef __cplusplus
24373extern "C"
24374#endif
24375/* We use char because int might match the return type of a gcc2
24376 builtin and then its argument prototype would still apply. */
24377char XOpenDisplay ();
24378int
24379main ()
24380{
24381XOpenDisplay ();
24382 ;
24383 return 0;
24384}
24385_ACEOF
24386rm -f conftest.$ac_objext conftest$ac_exeext
24387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24388 (eval $ac_link) 2>conftest.er1
a848cd7e 24389 ac_status=$?
ac1cb8d3
VS
24390 grep -v '^ *+' conftest.er1 >conftest.err
24391 rm -f conftest.er1
24392 cat conftest.err >&5
a848cd7e
SC
24393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394 (exit $ac_status); } &&
7714864e 24395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24397 (eval $ac_try) 2>&5
24398 ac_status=$?
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); }; } &&
24401 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403 (eval $ac_try) 2>&5
24404 ac_status=$?
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; }; then
24407 :
24408else
24409 echo "$as_me: failed program was:" >&5
24410sed 's/^/| /' conftest.$ac_ext >&5
24411
24412echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24413echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24414if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24415 echo $ECHO_N "(cached) $ECHO_C" >&6
24416else
24417 ac_check_lib_save_LIBS=$LIBS
24418LIBS="-ldnet $LIBS"
24419cat >conftest.$ac_ext <<_ACEOF
24420/* confdefs.h. */
24421_ACEOF
24422cat confdefs.h >>conftest.$ac_ext
24423cat >>conftest.$ac_ext <<_ACEOF
24424/* end confdefs.h. */
24425
24426/* Override any gcc2 internal prototype to avoid an error. */
24427#ifdef __cplusplus
24428extern "C"
24429#endif
24430/* We use char because int might match the return type of a gcc2
24431 builtin and then its argument prototype would still apply. */
24432char dnet_ntoa ();
24433int
24434main ()
24435{
24436dnet_ntoa ();
24437 ;
24438 return 0;
24439}
24440_ACEOF
24441rm -f conftest.$ac_objext conftest$ac_exeext
24442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24443 (eval $ac_link) 2>conftest.er1
a848cd7e 24444 ac_status=$?
ac1cb8d3
VS
24445 grep -v '^ *+' conftest.er1 >conftest.err
24446 rm -f conftest.er1
24447 cat conftest.err >&5
a848cd7e
SC
24448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449 (exit $ac_status); } &&
7714864e 24450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24452 (eval $ac_try) 2>&5
24453 ac_status=$?
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); }; } &&
24456 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458 (eval $ac_try) 2>&5
24459 ac_status=$?
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); }; }; then
24462 ac_cv_lib_dnet_dnet_ntoa=yes
24463else
24464 echo "$as_me: failed program was:" >&5
24465sed 's/^/| /' conftest.$ac_ext >&5
24466
24467ac_cv_lib_dnet_dnet_ntoa=no
24468fi
ac1cb8d3
VS
24469rm -f conftest.err conftest.$ac_objext \
24470 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24471LIBS=$ac_check_lib_save_LIBS
24472fi
24473echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24474echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24475if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24476 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24477fi
24478
24479 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24480 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24481echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24482if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24483 echo $ECHO_N "(cached) $ECHO_C" >&6
24484else
24485 ac_check_lib_save_LIBS=$LIBS
24486LIBS="-ldnet_stub $LIBS"
24487cat >conftest.$ac_ext <<_ACEOF
24488/* confdefs.h. */
24489_ACEOF
24490cat confdefs.h >>conftest.$ac_ext
24491cat >>conftest.$ac_ext <<_ACEOF
24492/* end confdefs.h. */
24493
24494/* Override any gcc2 internal prototype to avoid an error. */
24495#ifdef __cplusplus
24496extern "C"
24497#endif
24498/* We use char because int might match the return type of a gcc2
24499 builtin and then its argument prototype would still apply. */
24500char dnet_ntoa ();
24501int
24502main ()
24503{
24504dnet_ntoa ();
24505 ;
24506 return 0;
24507}
24508_ACEOF
24509rm -f conftest.$ac_objext conftest$ac_exeext
24510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24511 (eval $ac_link) 2>conftest.er1
a848cd7e 24512 ac_status=$?
ac1cb8d3
VS
24513 grep -v '^ *+' conftest.er1 >conftest.err
24514 rm -f conftest.er1
24515 cat conftest.err >&5
a848cd7e
SC
24516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } &&
7714864e 24518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24520 (eval $ac_try) 2>&5
24521 ac_status=$?
24522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523 (exit $ac_status); }; } &&
24524 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24526 (eval $ac_try) 2>&5
24527 ac_status=$?
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); }; }; then
24530 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24531else
24532 echo "$as_me: failed program was:" >&5
24533sed 's/^/| /' conftest.$ac_ext >&5
24534
24535ac_cv_lib_dnet_stub_dnet_ntoa=no
24536fi
ac1cb8d3
VS
24537rm -f conftest.err conftest.$ac_objext \
24538 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24539LIBS=$ac_check_lib_save_LIBS
24540fi
24541echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24542echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24543if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24544 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24545fi
24546
24547 fi
24548fi
ac1cb8d3
VS
24549rm -f conftest.err conftest.$ac_objext \
24550 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24551 LIBS="$ac_xsave_LIBS"
24552
24553 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24554 # to get the SysV transport functions.
24555 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24556 # needs -lnsl.
24557 # The nsl library prevents programs from opening the X display
24558 # on Irix 5.2, according to T.E. Dickey.
24559 # The functions gethostbyname, getservbyname, and inet_addr are
24560 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24561 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24562echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24563if test "${ac_cv_func_gethostbyname+set}" = set; then
24564 echo $ECHO_N "(cached) $ECHO_C" >&6
24565else
24566 cat >conftest.$ac_ext <<_ACEOF
24567/* confdefs.h. */
24568_ACEOF
24569cat confdefs.h >>conftest.$ac_ext
24570cat >>conftest.$ac_ext <<_ACEOF
24571/* end confdefs.h. */
ac1cb8d3
VS
24572/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24574#define gethostbyname innocuous_gethostbyname
24575
a848cd7e
SC
24576/* System header to define __stub macros and hopefully few prototypes,
24577 which can conflict with char gethostbyname (); below.
24578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24579 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24580
a848cd7e
SC
24581#ifdef __STDC__
24582# include <limits.h>
24583#else
24584# include <assert.h>
24585#endif
ac1cb8d3
VS
24586
24587#undef gethostbyname
24588
a848cd7e
SC
24589/* Override any gcc2 internal prototype to avoid an error. */
24590#ifdef __cplusplus
24591extern "C"
24592{
24593#endif
24594/* We use char because int might match the return type of a gcc2
24595 builtin and then its argument prototype would still apply. */
24596char gethostbyname ();
24597/* The GNU C library defines this for functions which it implements
24598 to always fail with ENOSYS. Some functions are actually named
24599 something starting with __ and the normal name is an alias. */
24600#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24601choke me
24602#else
24603char (*f) () = gethostbyname;
24604#endif
24605#ifdef __cplusplus
24606}
24607#endif
24608
24609int
24610main ()
24611{
24612return f != gethostbyname;
24613 ;
24614 return 0;
24615}
24616_ACEOF
24617rm -f conftest.$ac_objext conftest$ac_exeext
24618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24619 (eval $ac_link) 2>conftest.er1
a848cd7e 24620 ac_status=$?
ac1cb8d3
VS
24621 grep -v '^ *+' conftest.er1 >conftest.err
24622 rm -f conftest.er1
24623 cat conftest.err >&5
a848cd7e
SC
24624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625 (exit $ac_status); } &&
7714864e 24626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24628 (eval $ac_try) 2>&5
24629 ac_status=$?
24630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24631 (exit $ac_status); }; } &&
24632 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24634 (eval $ac_try) 2>&5
24635 ac_status=$?
24636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); }; }; then
24638 ac_cv_func_gethostbyname=yes
24639else
24640 echo "$as_me: failed program was:" >&5
24641sed 's/^/| /' conftest.$ac_ext >&5
24642
24643ac_cv_func_gethostbyname=no
24644fi
ac1cb8d3
VS
24645rm -f conftest.err conftest.$ac_objext \
24646 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24647fi
24648echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24649echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
24650
24651 if test $ac_cv_func_gethostbyname = no; then
24652 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24653echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24654if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24655 echo $ECHO_N "(cached) $ECHO_C" >&6
24656else
24657 ac_check_lib_save_LIBS=$LIBS
24658LIBS="-lnsl $LIBS"
24659cat >conftest.$ac_ext <<_ACEOF
24660/* confdefs.h. */
24661_ACEOF
24662cat confdefs.h >>conftest.$ac_ext
24663cat >>conftest.$ac_ext <<_ACEOF
24664/* end confdefs.h. */
24665
24666/* Override any gcc2 internal prototype to avoid an error. */
24667#ifdef __cplusplus
24668extern "C"
24669#endif
24670/* We use char because int might match the return type of a gcc2
24671 builtin and then its argument prototype would still apply. */
24672char gethostbyname ();
24673int
24674main ()
24675{
24676gethostbyname ();
24677 ;
24678 return 0;
24679}
24680_ACEOF
24681rm -f conftest.$ac_objext conftest$ac_exeext
24682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
24683 (eval $ac_link) 2>conftest.er1
24684 ac_status=$?
24685 grep -v '^ *+' conftest.er1 >conftest.err
24686 rm -f conftest.er1
24687 cat conftest.err >&5
24688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24689 (exit $ac_status); } &&
7714864e 24690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24692 (eval $ac_try) 2>&5
24693 ac_status=$?
24694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24695 (exit $ac_status); }; } &&
24696 { ac_try='test -s conftest$ac_exeext'
24697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24698 (eval $ac_try) 2>&5
24699 ac_status=$?
24700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701 (exit $ac_status); }; }; then
24702 ac_cv_lib_nsl_gethostbyname=yes
24703else
24704 echo "$as_me: failed program was:" >&5
24705sed 's/^/| /' conftest.$ac_ext >&5
24706
24707ac_cv_lib_nsl_gethostbyname=no
24708fi
24709rm -f conftest.err conftest.$ac_objext \
24710 conftest$ac_exeext conftest.$ac_ext
24711LIBS=$ac_check_lib_save_LIBS
24712fi
24713echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24714echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24715if test $ac_cv_lib_nsl_gethostbyname = yes; then
24716 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24717fi
24718
24719 if test $ac_cv_lib_nsl_gethostbyname = no; then
24720 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
24721echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24722if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24723 echo $ECHO_N "(cached) $ECHO_C" >&6
24724else
24725 ac_check_lib_save_LIBS=$LIBS
24726LIBS="-lbsd $LIBS"
24727cat >conftest.$ac_ext <<_ACEOF
24728/* confdefs.h. */
24729_ACEOF
24730cat confdefs.h >>conftest.$ac_ext
24731cat >>conftest.$ac_ext <<_ACEOF
24732/* end confdefs.h. */
24733
24734/* Override any gcc2 internal prototype to avoid an error. */
24735#ifdef __cplusplus
24736extern "C"
24737#endif
24738/* We use char because int might match the return type of a gcc2
24739 builtin and then its argument prototype would still apply. */
24740char gethostbyname ();
24741int
24742main ()
24743{
24744gethostbyname ();
24745 ;
24746 return 0;
24747}
24748_ACEOF
24749rm -f conftest.$ac_objext conftest$ac_exeext
24750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24751 (eval $ac_link) 2>conftest.er1
a848cd7e 24752 ac_status=$?
ac1cb8d3
VS
24753 grep -v '^ *+' conftest.er1 >conftest.err
24754 rm -f conftest.er1
24755 cat conftest.err >&5
a848cd7e
SC
24756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24757 (exit $ac_status); } &&
7714864e 24758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
24759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24760 (eval $ac_try) 2>&5
24761 ac_status=$?
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
24763 (exit $ac_status); }; } &&
24764 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24766 (eval $ac_try) 2>&5
24767 ac_status=$?
24768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769 (exit $ac_status); }; }; then
24770 ac_cv_lib_bsd_gethostbyname=yes
24771else
24772 echo "$as_me: failed program was:" >&5
24773sed 's/^/| /' conftest.$ac_ext >&5
24774
24775ac_cv_lib_bsd_gethostbyname=no
24776fi
ac1cb8d3
VS
24777rm -f conftest.err conftest.$ac_objext \
24778 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24779LIBS=$ac_check_lib_save_LIBS
24780fi
24781echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24782echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24783if test $ac_cv_lib_bsd_gethostbyname = yes; then
24784 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24785fi
24786
24787 fi
24788 fi
24789
24790 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24791 # socket/setsockopt and other routines are undefined under SCO ODT
24792 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24793 # on later versions), says Simon Leinen: it contains gethostby*
24794 # variants that don't use the name server (or something). -lsocket
24795 # must be given before -lnsl if both are needed. We assume that
24796 # if connect needs -lnsl, so does gethostbyname.
24797 echo "$as_me:$LINENO: checking for connect" >&5
24798echo $ECHO_N "checking for connect... $ECHO_C" >&6
24799if test "${ac_cv_func_connect+set}" = set; then
24800 echo $ECHO_N "(cached) $ECHO_C" >&6
24801else
24802 cat >conftest.$ac_ext <<_ACEOF
24803/* confdefs.h. */
24804_ACEOF
24805cat confdefs.h >>conftest.$ac_ext
24806cat >>conftest.$ac_ext <<_ACEOF
24807/* end confdefs.h. */
ac1cb8d3
VS
24808/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24810#define connect innocuous_connect
24811
a848cd7e
SC
24812/* System header to define __stub macros and hopefully few prototypes,
24813 which can conflict with char connect (); below.
24814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24815 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24816
a848cd7e
SC
24817#ifdef __STDC__
24818# include <limits.h>
24819#else
24820# include <assert.h>
24821#endif
ac1cb8d3
VS
24822
24823#undef connect
24824
a848cd7e
SC
24825/* Override any gcc2 internal prototype to avoid an error. */
24826#ifdef __cplusplus
24827extern "C"
24828{
24829#endif
24830/* We use char because int might match the return type of a gcc2
24831 builtin and then its argument prototype would still apply. */
24832char connect ();
24833/* The GNU C library defines this for functions which it implements
24834 to always fail with ENOSYS. Some functions are actually named
24835 something starting with __ and the normal name is an alias. */
24836#if defined (__stub_connect) || defined (__stub___connect)
24837choke me
24838#else
24839char (*f) () = connect;
24840#endif
24841#ifdef __cplusplus
24842}
24843#endif
24844
24845int
24846main ()
24847{
24848return f != connect;
24849 ;
24850 return 0;
24851}
24852_ACEOF
24853rm -f conftest.$ac_objext conftest$ac_exeext
24854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24855 (eval $ac_link) 2>conftest.er1
a848cd7e 24856 ac_status=$?
ac1cb8d3
VS
24857 grep -v '^ *+' conftest.er1 >conftest.err
24858 rm -f conftest.er1
24859 cat conftest.err >&5
a848cd7e
SC
24860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } &&
7714864e 24862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24864 (eval $ac_try) 2>&5
24865 ac_status=$?
24866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24867 (exit $ac_status); }; } &&
24868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24870 (eval $ac_try) 2>&5
24871 ac_status=$?
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); }; }; then
24874 ac_cv_func_connect=yes
24875else
24876 echo "$as_me: failed program was:" >&5
24877sed 's/^/| /' conftest.$ac_ext >&5
24878
24879ac_cv_func_connect=no
24880fi
ac1cb8d3
VS
24881rm -f conftest.err conftest.$ac_objext \
24882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24883fi
24884echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24885echo "${ECHO_T}$ac_cv_func_connect" >&6
24886
24887 if test $ac_cv_func_connect = no; then
24888 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24889echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24890if test "${ac_cv_lib_socket_connect+set}" = set; then
24891 echo $ECHO_N "(cached) $ECHO_C" >&6
24892else
24893 ac_check_lib_save_LIBS=$LIBS
24894LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24895cat >conftest.$ac_ext <<_ACEOF
24896/* confdefs.h. */
24897_ACEOF
24898cat confdefs.h >>conftest.$ac_ext
24899cat >>conftest.$ac_ext <<_ACEOF
24900/* end confdefs.h. */
24901
24902/* Override any gcc2 internal prototype to avoid an error. */
24903#ifdef __cplusplus
24904extern "C"
24905#endif
24906/* We use char because int might match the return type of a gcc2
24907 builtin and then its argument prototype would still apply. */
24908char connect ();
24909int
24910main ()
24911{
24912connect ();
24913 ;
24914 return 0;
24915}
24916_ACEOF
24917rm -f conftest.$ac_objext conftest$ac_exeext
24918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24919 (eval $ac_link) 2>conftest.er1
a848cd7e 24920 ac_status=$?
ac1cb8d3
VS
24921 grep -v '^ *+' conftest.er1 >conftest.err
24922 rm -f conftest.er1
24923 cat conftest.err >&5
a848cd7e
SC
24924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } &&
7714864e 24926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24929 ac_status=$?
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; } &&
24932 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24934 (eval $ac_try) 2>&5
24935 ac_status=$?
24936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937 (exit $ac_status); }; }; then
24938 ac_cv_lib_socket_connect=yes
24939else
24940 echo "$as_me: failed program was:" >&5
24941sed 's/^/| /' conftest.$ac_ext >&5
24942
24943ac_cv_lib_socket_connect=no
24944fi
ac1cb8d3
VS
24945rm -f conftest.err conftest.$ac_objext \
24946 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24947LIBS=$ac_check_lib_save_LIBS
24948fi
24949echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24950echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24951if test $ac_cv_lib_socket_connect = yes; then
24952 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24953fi
24954
24955 fi
24956
24957 # Guillermo Gomez says -lposix is necessary on A/UX.
24958 echo "$as_me:$LINENO: checking for remove" >&5
24959echo $ECHO_N "checking for remove... $ECHO_C" >&6
24960if test "${ac_cv_func_remove+set}" = set; then
24961 echo $ECHO_N "(cached) $ECHO_C" >&6
24962else
24963 cat >conftest.$ac_ext <<_ACEOF
24964/* confdefs.h. */
24965_ACEOF
24966cat confdefs.h >>conftest.$ac_ext
24967cat >>conftest.$ac_ext <<_ACEOF
24968/* end confdefs.h. */
ac1cb8d3
VS
24969/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24971#define remove innocuous_remove
24972
a848cd7e
SC
24973/* System header to define __stub macros and hopefully few prototypes,
24974 which can conflict with char remove (); below.
24975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24976 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24977
a848cd7e
SC
24978#ifdef __STDC__
24979# include <limits.h>
24980#else
24981# include <assert.h>
24982#endif
ac1cb8d3
VS
24983
24984#undef remove
24985
a848cd7e
SC
24986/* Override any gcc2 internal prototype to avoid an error. */
24987#ifdef __cplusplus
24988extern "C"
24989{
24990#endif
24991/* We use char because int might match the return type of a gcc2
24992 builtin and then its argument prototype would still apply. */
24993char remove ();
24994/* The GNU C library defines this for functions which it implements
24995 to always fail with ENOSYS. Some functions are actually named
24996 something starting with __ and the normal name is an alias. */
24997#if defined (__stub_remove) || defined (__stub___remove)
24998choke me
24999#else
25000char (*f) () = remove;
25001#endif
25002#ifdef __cplusplus
25003}
25004#endif
25005
25006int
25007main ()
25008{
25009return f != remove;
25010 ;
25011 return 0;
25012}
25013_ACEOF
25014rm -f conftest.$ac_objext conftest$ac_exeext
25015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25016 (eval $ac_link) 2>conftest.er1
a848cd7e 25017 ac_status=$?
ac1cb8d3
VS
25018 grep -v '^ *+' conftest.er1 >conftest.err
25019 rm -f conftest.er1
25020 cat conftest.err >&5
a848cd7e
SC
25021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25022 (exit $ac_status); } &&
7714864e 25023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25025 (eval $ac_try) 2>&5
25026 ac_status=$?
25027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25028 (exit $ac_status); }; } &&
25029 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031 (eval $ac_try) 2>&5
25032 ac_status=$?
25033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034 (exit $ac_status); }; }; then
25035 ac_cv_func_remove=yes
25036else
25037 echo "$as_me: failed program was:" >&5
25038sed 's/^/| /' conftest.$ac_ext >&5
25039
25040ac_cv_func_remove=no
25041fi
ac1cb8d3
VS
25042rm -f conftest.err conftest.$ac_objext \
25043 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25044fi
25045echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25046echo "${ECHO_T}$ac_cv_func_remove" >&6
25047
25048 if test $ac_cv_func_remove = no; then
25049 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25050echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25051if test "${ac_cv_lib_posix_remove+set}" = set; then
25052 echo $ECHO_N "(cached) $ECHO_C" >&6
25053else
25054 ac_check_lib_save_LIBS=$LIBS
25055LIBS="-lposix $LIBS"
25056cat >conftest.$ac_ext <<_ACEOF
25057/* confdefs.h. */
25058_ACEOF
25059cat confdefs.h >>conftest.$ac_ext
25060cat >>conftest.$ac_ext <<_ACEOF
25061/* end confdefs.h. */
25062
25063/* Override any gcc2 internal prototype to avoid an error. */
25064#ifdef __cplusplus
25065extern "C"
25066#endif
25067/* We use char because int might match the return type of a gcc2
25068 builtin and then its argument prototype would still apply. */
25069char remove ();
25070int
25071main ()
25072{
25073remove ();
25074 ;
25075 return 0;
25076}
25077_ACEOF
25078rm -f conftest.$ac_objext conftest$ac_exeext
25079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25080 (eval $ac_link) 2>conftest.er1
a848cd7e 25081 ac_status=$?
ac1cb8d3
VS
25082 grep -v '^ *+' conftest.er1 >conftest.err
25083 rm -f conftest.er1
25084 cat conftest.err >&5
a848cd7e
SC
25085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); } &&
7714864e 25087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25089 (eval $ac_try) 2>&5
25090 ac_status=$?
25091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092 (exit $ac_status); }; } &&
25093 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25095 (eval $ac_try) 2>&5
25096 ac_status=$?
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); }; }; then
25099 ac_cv_lib_posix_remove=yes
25100else
25101 echo "$as_me: failed program was:" >&5
25102sed 's/^/| /' conftest.$ac_ext >&5
25103
25104ac_cv_lib_posix_remove=no
25105fi
ac1cb8d3
VS
25106rm -f conftest.err conftest.$ac_objext \
25107 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25108LIBS=$ac_check_lib_save_LIBS
25109fi
25110echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25111echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25112if test $ac_cv_lib_posix_remove = yes; then
25113 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25114fi
25115
25116 fi
25117
25118 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25119 echo "$as_me:$LINENO: checking for shmat" >&5
25120echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25121if test "${ac_cv_func_shmat+set}" = set; then
25122 echo $ECHO_N "(cached) $ECHO_C" >&6
25123else
25124 cat >conftest.$ac_ext <<_ACEOF
25125/* confdefs.h. */
25126_ACEOF
25127cat confdefs.h >>conftest.$ac_ext
25128cat >>conftest.$ac_ext <<_ACEOF
25129/* end confdefs.h. */
ac1cb8d3
VS
25130/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25132#define shmat innocuous_shmat
25133
a848cd7e
SC
25134/* System header to define __stub macros and hopefully few prototypes,
25135 which can conflict with char shmat (); below.
25136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25137 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25138
a848cd7e
SC
25139#ifdef __STDC__
25140# include <limits.h>
25141#else
25142# include <assert.h>
25143#endif
ac1cb8d3
VS
25144
25145#undef shmat
25146
a848cd7e
SC
25147/* Override any gcc2 internal prototype to avoid an error. */
25148#ifdef __cplusplus
25149extern "C"
25150{
25151#endif
25152/* We use char because int might match the return type of a gcc2
25153 builtin and then its argument prototype would still apply. */
25154char shmat ();
25155/* The GNU C library defines this for functions which it implements
25156 to always fail with ENOSYS. Some functions are actually named
25157 something starting with __ and the normal name is an alias. */
25158#if defined (__stub_shmat) || defined (__stub___shmat)
25159choke me
25160#else
25161char (*f) () = shmat;
25162#endif
25163#ifdef __cplusplus
25164}
25165#endif
25166
25167int
25168main ()
25169{
25170return f != shmat;
25171 ;
25172 return 0;
25173}
25174_ACEOF
25175rm -f conftest.$ac_objext conftest$ac_exeext
25176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25177 (eval $ac_link) 2>conftest.er1
a848cd7e 25178 ac_status=$?
ac1cb8d3
VS
25179 grep -v '^ *+' conftest.er1 >conftest.err
25180 rm -f conftest.er1
25181 cat conftest.err >&5
a848cd7e
SC
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); } &&
7714864e 25184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25186 (eval $ac_try) 2>&5
25187 ac_status=$?
25188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25189 (exit $ac_status); }; } &&
25190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25192 (eval $ac_try) 2>&5
25193 ac_status=$?
25194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25195 (exit $ac_status); }; }; then
25196 ac_cv_func_shmat=yes
25197else
25198 echo "$as_me: failed program was:" >&5
25199sed 's/^/| /' conftest.$ac_ext >&5
25200
25201ac_cv_func_shmat=no
25202fi
ac1cb8d3
VS
25203rm -f conftest.err conftest.$ac_objext \
25204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25205fi
25206echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25207echo "${ECHO_T}$ac_cv_func_shmat" >&6
25208
25209 if test $ac_cv_func_shmat = no; then
25210 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25211echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25212if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25213 echo $ECHO_N "(cached) $ECHO_C" >&6
25214else
25215 ac_check_lib_save_LIBS=$LIBS
25216LIBS="-lipc $LIBS"
25217cat >conftest.$ac_ext <<_ACEOF
25218/* confdefs.h. */
25219_ACEOF
25220cat confdefs.h >>conftest.$ac_ext
25221cat >>conftest.$ac_ext <<_ACEOF
25222/* end confdefs.h. */
25223
25224/* Override any gcc2 internal prototype to avoid an error. */
25225#ifdef __cplusplus
25226extern "C"
25227#endif
25228/* We use char because int might match the return type of a gcc2
25229 builtin and then its argument prototype would still apply. */
25230char shmat ();
25231int
25232main ()
25233{
25234shmat ();
25235 ;
25236 return 0;
25237}
25238_ACEOF
25239rm -f conftest.$ac_objext conftest$ac_exeext
25240if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25241 (eval $ac_link) 2>conftest.er1
a848cd7e 25242 ac_status=$?
ac1cb8d3
VS
25243 grep -v '^ *+' conftest.er1 >conftest.err
25244 rm -f conftest.er1
25245 cat conftest.err >&5
a848cd7e
SC
25246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25247 (exit $ac_status); } &&
7714864e 25248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25250 (eval $ac_try) 2>&5
25251 ac_status=$?
25252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25253 (exit $ac_status); }; } &&
25254 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256 (eval $ac_try) 2>&5
25257 ac_status=$?
25258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 (exit $ac_status); }; }; then
25260 ac_cv_lib_ipc_shmat=yes
25261else
25262 echo "$as_me: failed program was:" >&5
25263sed 's/^/| /' conftest.$ac_ext >&5
25264
25265ac_cv_lib_ipc_shmat=no
25266fi
ac1cb8d3
VS
25267rm -f conftest.err conftest.$ac_objext \
25268 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25269LIBS=$ac_check_lib_save_LIBS
25270fi
25271echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25272echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25273if test $ac_cv_lib_ipc_shmat = yes; then
25274 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25275fi
25276
25277 fi
25278 fi
25279
25280 # Check for libraries that X11R6 Xt/Xaw programs need.
25281 ac_save_LDFLAGS=$LDFLAGS
25282 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25283 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25284 # check for ICE first), but we must link in the order -lSM -lICE or
25285 # we get undefined symbols. So assume we have SM if we have ICE.
25286 # These have to be linked with before -lX11, unlike the other
25287 # libraries we check for below, so use a different variable.
25288 # John Interrante, Karl Berry
25289 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25290echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25291if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25292 echo $ECHO_N "(cached) $ECHO_C" >&6
25293else
25294 ac_check_lib_save_LIBS=$LIBS
25295LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25296cat >conftest.$ac_ext <<_ACEOF
25297/* confdefs.h. */
25298_ACEOF
25299cat confdefs.h >>conftest.$ac_ext
25300cat >>conftest.$ac_ext <<_ACEOF
25301/* end confdefs.h. */
25302
25303/* Override any gcc2 internal prototype to avoid an error. */
25304#ifdef __cplusplus
25305extern "C"
25306#endif
25307/* We use char because int might match the return type of a gcc2
25308 builtin and then its argument prototype would still apply. */
25309char IceConnectionNumber ();
25310int
25311main ()
25312{
25313IceConnectionNumber ();
25314 ;
25315 return 0;
25316}
25317_ACEOF
25318rm -f conftest.$ac_objext conftest$ac_exeext
25319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25320 (eval $ac_link) 2>conftest.er1
a848cd7e 25321 ac_status=$?
ac1cb8d3
VS
25322 grep -v '^ *+' conftest.er1 >conftest.err
25323 rm -f conftest.er1
25324 cat conftest.err >&5
a848cd7e
SC
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } &&
7714864e 25327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329 (eval $ac_try) 2>&5
25330 ac_status=$?
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); }; } &&
25333 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335 (eval $ac_try) 2>&5
25336 ac_status=$?
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); }; }; then
25339 ac_cv_lib_ICE_IceConnectionNumber=yes
25340else
25341 echo "$as_me: failed program was:" >&5
25342sed 's/^/| /' conftest.$ac_ext >&5
25343
25344ac_cv_lib_ICE_IceConnectionNumber=no
25345fi
ac1cb8d3
VS
25346rm -f conftest.err conftest.$ac_objext \
25347 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25348LIBS=$ac_check_lib_save_LIBS
25349fi
25350echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25351echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25352if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25353 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25354fi
25355
25356 LDFLAGS=$ac_save_LDFLAGS
25357
25358fi
25359
25360
25361 if test "$no_x" = "yes"; then
25362 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25363echo "$as_me: error: X11 not found" >&2;}
25364 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25365 fi
25366
74b84332
VS
25367 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25368 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25369 AFMINSTALL=afminstall
25370 COMPILED_X_PROGRAM=0
25371
74b84332
VS
25372 fi
25373
25374 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25375 if test "$wxUSE_NANOX" = "yes"; then
25376 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25377echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25378 if test "x$MICROWIN" = x ; then
25379 echo "$as_me:$LINENO: result: not found" >&5
25380echo "${ECHO_T}not found" >&6
25381 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25382echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25383 { (exit 1); exit 1; }; }
25384 else
25385 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25386echo "${ECHO_T}$MICROWIN" >&6
25387 cat >>confdefs.h <<\_ACEOF
25388#define wxUSE_NANOX 1
25389_ACEOF
25390
25391 fi
25392 fi
25393
25394 if test "$wxUSE_UNICODE" = "yes"; then
25395
25396 succeeded=no
25397
25398 if test -z "$PKG_CONFIG"; then
25399 # Extract the first word of "pkg-config", so it can be a program name with args.
25400set dummy pkg-config; ac_word=$2
25401echo "$as_me:$LINENO: checking for $ac_word" >&5
25402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25403if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25404 echo $ECHO_N "(cached) $ECHO_C" >&6
25405else
25406 case $PKG_CONFIG in
25407 [\\/]* | ?:[\\/]*)
25408 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25409 ;;
25410 *)
25411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25412for as_dir in $PATH
25413do
25414 IFS=$as_save_IFS
25415 test -z "$as_dir" && as_dir=.
25416 for ac_exec_ext in '' $ac_executable_extensions; do
25417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25418 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25420 break 2
25421 fi
25422done
25423done
25424
25425 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25426 ;;
25427esac
25428fi
25429PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25430
25431if test -n "$PKG_CONFIG"; then
25432 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25433echo "${ECHO_T}$PKG_CONFIG" >&6
25434else
25435 echo "$as_me:$LINENO: result: no" >&5
25436echo "${ECHO_T}no" >&6
25437fi
25438
25439 fi
25440
25441 if test "$PKG_CONFIG" = "no" ; then
25442 echo "*** The pkg-config script could not be found. Make sure it is"
25443 echo "*** in your path, or set the PKG_CONFIG environment variable"
25444 echo "*** to the full path to pkg-config."
25445 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25446 else
25447 PKG_CONFIG_MIN_VERSION=0.9.0
25448 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25449 echo "$as_me:$LINENO: checking for pangox" >&5
25450echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25451
25452 if $PKG_CONFIG --exists "pangox" ; then
25453 echo "$as_me:$LINENO: result: yes" >&5
25454echo "${ECHO_T}yes" >&6
25455 succeeded=yes
25456
25457 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25458echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25459 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25460 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25461echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25462
25463 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25464echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25465 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25466 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25467echo "${ECHO_T}$PANGOX_LIBS" >&6
25468 else
25469 PANGOX_CFLAGS=""
25470 PANGOX_LIBS=""
25471 ## If we have a custom action on failure, don't print errors, but
25472 ## do set a variable so people can do so.
25473 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25474
25475 fi
25476
25477
25478
25479 else
25480 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25481 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25482 fi
25483 fi
25484
25485 if test $succeeded = yes; then
25486
25487 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25488 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25489
25490 else
25491
25492 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25493echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25494 { (exit 1); exit 1; }; }
25495
25496
25497 fi
25498
25499
25500 succeeded=no
25501
25502 if test -z "$PKG_CONFIG"; then
25503 # Extract the first word of "pkg-config", so it can be a program name with args.
25504set dummy pkg-config; ac_word=$2
25505echo "$as_me:$LINENO: checking for $ac_word" >&5
25506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25507if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25508 echo $ECHO_N "(cached) $ECHO_C" >&6
25509else
25510 case $PKG_CONFIG in
25511 [\\/]* | ?:[\\/]*)
25512 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25513 ;;
25514 *)
25515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25516for as_dir in $PATH
25517do
25518 IFS=$as_save_IFS
25519 test -z "$as_dir" && as_dir=.
25520 for ac_exec_ext in '' $ac_executable_extensions; do
25521 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25522 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25524 break 2
25525 fi
25526done
25527done
25528
25529 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25530 ;;
25531esac
25532fi
25533PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25534
25535if test -n "$PKG_CONFIG"; then
25536 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25537echo "${ECHO_T}$PKG_CONFIG" >&6
25538else
25539 echo "$as_me:$LINENO: result: no" >&5
25540echo "${ECHO_T}no" >&6
25541fi
25542
25543 fi
25544
25545 if test "$PKG_CONFIG" = "no" ; then
25546 echo "*** The pkg-config script could not be found. Make sure it is"
25547 echo "*** in your path, or set the PKG_CONFIG environment variable"
25548 echo "*** to the full path to pkg-config."
25549 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25550 else
25551 PKG_CONFIG_MIN_VERSION=0.9.0
25552 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25553 echo "$as_me:$LINENO: checking for pangoft2" >&5
25554echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
25555
25556 if $PKG_CONFIG --exists "pangoft2" ; then
25557 echo "$as_me:$LINENO: result: yes" >&5
25558echo "${ECHO_T}yes" >&6
25559 succeeded=yes
25560
25561 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
25562echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
25563 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
25564 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
25565echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
25566
25567 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
25568echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
25569 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
25570 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
25571echo "${ECHO_T}$PANGOFT2_LIBS" >&6
25572 else
25573 PANGOFT2_CFLAGS=""
25574 PANGOFT2_LIBS=""
25575 ## If we have a custom action on failure, don't print errors, but
25576 ## do set a variable so people can do so.
25577 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
25578
25579 fi
25580
25581
25582
25583 else
25584 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25585 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25586 fi
25587 fi
25588
25589 if test $succeeded = yes; then
25590
25591 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
25592 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
25593
25594 else
25595
25596 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
25597echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
25598 wxUSE_PRINTING_ARCHITECTURE="no"
25599
25600
25601 fi
25602
25603
25604 succeeded=no
25605
25606 if test -z "$PKG_CONFIG"; then
25607 # Extract the first word of "pkg-config", so it can be a program name with args.
25608set dummy pkg-config; ac_word=$2
25609echo "$as_me:$LINENO: checking for $ac_word" >&5
25610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25611if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25612 echo $ECHO_N "(cached) $ECHO_C" >&6
25613else
25614 case $PKG_CONFIG in
25615 [\\/]* | ?:[\\/]*)
25616 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25617 ;;
25618 *)
25619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25620for as_dir in $PATH
25621do
25622 IFS=$as_save_IFS
25623 test -z "$as_dir" && as_dir=.
25624 for ac_exec_ext in '' $ac_executable_extensions; do
25625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25626 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25628 break 2
25629 fi
25630done
25631done
25632
25633 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25634 ;;
25635esac
25636fi
25637PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25638
25639if test -n "$PKG_CONFIG"; then
25640 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25641echo "${ECHO_T}$PKG_CONFIG" >&6
25642else
25643 echo "$as_me:$LINENO: result: no" >&5
25644echo "${ECHO_T}no" >&6
25645fi
25646
25647 fi
25648
25649 if test "$PKG_CONFIG" = "no" ; then
25650 echo "*** The pkg-config script could not be found. Make sure it is"
25651 echo "*** in your path, or set the PKG_CONFIG environment variable"
25652 echo "*** to the full path to pkg-config."
25653 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25654 else
25655 PKG_CONFIG_MIN_VERSION=0.9.0
25656 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25657 echo "$as_me:$LINENO: checking for pangoxft" >&5
25658echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
25659
25660 if $PKG_CONFIG --exists "pangoxft" ; then
25661 echo "$as_me:$LINENO: result: yes" >&5
25662echo "${ECHO_T}yes" >&6
25663 succeeded=yes
25664
25665 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
25666echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
25667 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
25668 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
25669echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
25670
25671 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
25672echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
25673 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
25674 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
25675echo "${ECHO_T}$PANGOXFT_LIBS" >&6
25676 else
25677 PANGOXFT_CFLAGS=""
25678 PANGOXFT_LIBS=""
25679 ## If we have a custom action on failure, don't print errors, but
25680 ## do set a variable so people can do so.
25681 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
25682
25683 fi
25684
25685
25686
25687 else
25688 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25689 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25690 fi
25691 fi
25692
25693 if test $succeeded = yes; then
25694
25695 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
25696 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
25697
25698 else
25699
25700 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
25701echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
25702
25703
25704 fi
25705
304205f1
VS
25706 save_CFLAGS="$CFLAGS"
25707 save_LIBS="$LIBS"
25708 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
25709 LIBS="$LIBS $PANGOX_LIBS"
25710
25711for ac_func in pango_font_family_is_monospace
25712do
25713as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25714echo "$as_me:$LINENO: checking for $ac_func" >&5
25715echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25716if eval "test \"\${$as_ac_var+set}\" = set"; then
25717 echo $ECHO_N "(cached) $ECHO_C" >&6
25718else
25719 cat >conftest.$ac_ext <<_ACEOF
25720/* confdefs.h. */
25721_ACEOF
25722cat confdefs.h >>conftest.$ac_ext
25723cat >>conftest.$ac_ext <<_ACEOF
25724/* end confdefs.h. */
25725/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25727#define $ac_func innocuous_$ac_func
25728
25729/* System header to define __stub macros and hopefully few prototypes,
25730 which can conflict with char $ac_func (); below.
25731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25732 <limits.h> exists even on freestanding compilers. */
25733
25734#ifdef __STDC__
25735# include <limits.h>
25736#else
25737# include <assert.h>
25738#endif
25739
25740#undef $ac_func
25741
25742/* Override any gcc2 internal prototype to avoid an error. */
25743#ifdef __cplusplus
25744extern "C"
25745{
25746#endif
25747/* We use char because int might match the return type of a gcc2
25748 builtin and then its argument prototype would still apply. */
25749char $ac_func ();
25750/* The GNU C library defines this for functions which it implements
25751 to always fail with ENOSYS. Some functions are actually named
25752 something starting with __ and the normal name is an alias. */
25753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25754choke me
25755#else
25756char (*f) () = $ac_func;
25757#endif
25758#ifdef __cplusplus
25759}
25760#endif
25761
25762int
25763main ()
25764{
25765return f != $ac_func;
25766 ;
25767 return 0;
25768}
25769_ACEOF
25770rm -f conftest.$ac_objext conftest$ac_exeext
25771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25772 (eval $ac_link) 2>conftest.er1
25773 ac_status=$?
25774 grep -v '^ *+' conftest.er1 >conftest.err
25775 rm -f conftest.er1
25776 cat conftest.err >&5
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); } &&
7714864e 25779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
25780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25781 (eval $ac_try) 2>&5
25782 ac_status=$?
25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784 (exit $ac_status); }; } &&
25785 { ac_try='test -s conftest$ac_exeext'
25786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25787 (eval $ac_try) 2>&5
25788 ac_status=$?
25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); }; }; then
25791 eval "$as_ac_var=yes"
25792else
25793 echo "$as_me: failed program was:" >&5
25794sed 's/^/| /' conftest.$ac_ext >&5
25795
25796eval "$as_ac_var=no"
25797fi
25798rm -f conftest.err conftest.$ac_objext \
25799 conftest$ac_exeext conftest.$ac_ext
25800fi
25801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25802echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25803if test `eval echo '${'$as_ac_var'}'` = yes; then
25804 cat >>confdefs.h <<_ACEOF
25805#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25806_ACEOF
25807
25808fi
25809done
25810
25811 CFLAGS="$save_CFLAGS"
25812 LIBS="$save_LIBS"
a848cd7e
SC
25813 fi
25814
25815 wxUSE_UNIVERSAL="yes"
25816
25817 if test "$wxUSE_NANOX" = "yes"; then
25818 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
25819 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"
25820 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
25821 else
25822 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
25823 fi
25824
a848cd7e
SC
25825 TOOLKIT=X11
25826 GUIDIST=X11_DIST
25827 fi
25828
25829 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
25830 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25831echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 25832
74b84332
VS
25833ac_find_includes=
25834for ac_dir in $SEARCH_INCLUDE /usr/include;
25835 do
25836 if test -f "$ac_dir/Xm/Xm.h"; then
25837 ac_find_includes=$ac_dir
25838 break
25839 fi
25840 done
a848cd7e 25841
74b84332
VS
25842 if test "$ac_find_includes" != "" ; then
25843 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25844echo "${ECHO_T}found in $ac_find_includes" >&6
25845
25846 if test "x$ac_find_includes" = "x/usr/include"; then
25847 ac_path_to_include=""
25848 else
25849 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25850 result=$?
25851 if test $result = 0; then
25852 ac_path_to_include=""
25853 else
25854 ac_path_to_include=" -I$ac_find_includes"
25855 fi
a848cd7e
SC
25856 fi
25857
74b84332
VS
25858 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
25859 else
25860 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25861/* confdefs.h. */
25862_ACEOF
25863cat confdefs.h >>conftest.$ac_ext
25864cat >>conftest.$ac_ext <<_ACEOF
25865/* end confdefs.h. */
25866
74b84332
VS
25867 #include <Xm/Xm.h>
25868
a848cd7e
SC
25869int
25870main ()
25871{
25872
74b84332
VS
25873 int version;
25874 version = xmUseVersion;
25875
a848cd7e
SC
25876 ;
25877 return 0;
25878}
25879_ACEOF
74b84332
VS
25880rm -f conftest.$ac_objext
25881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25882 (eval $ac_compile) 2>conftest.er1
a848cd7e 25883 ac_status=$?
ac1cb8d3
VS
25884 grep -v '^ *+' conftest.er1 >conftest.err
25885 rm -f conftest.er1
25886 cat conftest.err >&5
a848cd7e
SC
25887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25888 (exit $ac_status); } &&
7714864e 25889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25892 ac_status=$?
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; } &&
74b84332 25895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897 (eval $ac_try) 2>&5
25898 ac_status=$?
25899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); }; }; then
74b84332
VS
25901
25902 echo "$as_me:$LINENO: result: found in default search path" >&5
25903echo "${ECHO_T}found in default search path" >&6
25904 COMPILED_X_PROGRAM=1
25905
a848cd7e
SC
25906else
25907 echo "$as_me: failed program was:" >&5
25908sed 's/^/| /' conftest.$ac_ext >&5
25909
a848cd7e 25910
74b84332
VS
25911 echo "$as_me:$LINENO: result: no" >&5
25912echo "${ECHO_T}no" >&6
25913 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25914echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25915 { (exit 1); exit 1; }; }
a848cd7e 25916
a848cd7e 25917
a848cd7e 25918fi
74b84332
VS
25919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25920 fi
25921
25922 if test "$COMPILED_X_PROGRAM" = 0; then
25923 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25924echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25925
25926ac_find_libraries=
25927for ac_dir in $SEARCH_LIB /usr/lib;
25928 do
25929 for ac_extension in a so sl dylib; do
25930 if test -f "$ac_dir/libXm.$ac_extension"; then
25931 ac_find_libraries=$ac_dir
25932 break 2
a848cd7e 25933 fi
74b84332
VS
25934 done
25935 done
a848cd7e 25936
74b84332
VS
25937 if test "$ac_find_libraries" != "" ; then
25938 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25939echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 25940
74b84332
VS
25941
25942 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25943 result=$?
25944 if test $result = 0; then
25945 ac_path_to_link=""
a848cd7e 25946 else
74b84332
VS
25947 ac_path_to_link=" -L$ac_find_libraries"
25948 fi
25949
25950 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25951 else
25952 save_CFLAGS=$CFLAGS
25953 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25954
25955 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
25956/* confdefs.h. */
25957_ACEOF
25958cat confdefs.h >>conftest.$ac_ext
25959cat >>conftest.$ac_ext <<_ACEOF
25960/* end confdefs.h. */
25961
74b84332
VS
25962 #include <Xm/Xm.h>
25963
a848cd7e
SC
25964int
25965main ()
25966{
74b84332
VS
25967
25968 int version;
25969 version = xmUseVersion;
25970
a848cd7e
SC
25971 ;
25972 return 0;
25973}
25974_ACEOF
74b84332
VS
25975rm -f conftest.$ac_objext
25976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25977 (eval $ac_compile) 2>conftest.er1
a848cd7e 25978 ac_status=$?
ac1cb8d3
VS
25979 grep -v '^ *+' conftest.er1 >conftest.err
25980 rm -f conftest.er1
25981 cat conftest.err >&5
a848cd7e
SC
25982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983 (exit $ac_status); } &&
7714864e 25984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25986 (eval $ac_try) 2>&5
25987 ac_status=$?
25988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989 (exit $ac_status); }; } &&
74b84332 25990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25992 (eval $ac_try) 2>&5
25993 ac_status=$?
25994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995 (exit $ac_status); }; }; then
74b84332
VS
25996
25997 echo "$as_me:$LINENO: result: found in default search path" >&5
25998echo "${ECHO_T}found in default search path" >&6
25999 COMPILED_X_PROGRAM=1
26000
a848cd7e
SC
26001else
26002 echo "$as_me: failed program was:" >&5
26003sed 's/^/| /' conftest.$ac_ext >&5
26004
74b84332
VS
26005
26006 echo "$as_me:$LINENO: result: no" >&5
26007echo "${ECHO_T}no" >&6
26008 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26009echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26010 { (exit 1); exit 1; }; }
26011
26012
26013fi
26014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26015
26016 CFLAGS=$save_CFLAGS
26017 fi
26018 fi
26019
26020 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26021echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26022 libp_link=""
26023 libsm_ice_link=""
26024 libs_found=0
26025 for libp in "" " -lXp"; do
26026 if test "$libs_found" = "0"; then
26027 for libsm_ice in "" " -lSM -lICE"; do
26028 if test "$libs_found" = "0"; then
26029 save_LIBS="$LIBS"
26030 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26031 save_CFLAGS=$CFLAGS
26032 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26033
26034 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26035/* confdefs.h. */
26036_ACEOF
26037cat confdefs.h >>conftest.$ac_ext
26038cat >>conftest.$ac_ext <<_ACEOF
26039/* end confdefs.h. */
26040
74b84332
VS
26041 #include <Xm/Xm.h>
26042 #include <Xm/List.h>
26043
a848cd7e
SC
26044int
26045main ()
26046{
74b84332
VS
26047
26048 XmString string = NULL;
26049 Widget w = NULL;
26050 int position = 0;
26051 XmListAddItem(w, string, position);
26052
a848cd7e
SC
26053 ;
26054 return 0;
26055}
26056_ACEOF
26057rm -f conftest.$ac_objext conftest$ac_exeext
26058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26059 (eval $ac_link) 2>conftest.er1
a848cd7e 26060 ac_status=$?
ac1cb8d3
VS
26061 grep -v '^ *+' conftest.er1 >conftest.err
26062 rm -f conftest.er1
26063 cat conftest.err >&5
a848cd7e
SC
26064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26065 (exit $ac_status); } &&
7714864e 26066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26068 (eval $ac_try) 2>&5
26069 ac_status=$?
26070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26071 (exit $ac_status); }; } &&
26072 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26074 (eval $ac_try) 2>&5
26075 ac_status=$?
26076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077 (exit $ac_status); }; }; then
26078
26079 libp_link="$libp"
26080 libsm_ice_link="$libsm_ice"
26081 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26082echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26083 libs_found=1
26084
26085else
26086 echo "$as_me: failed program was:" >&5
26087sed 's/^/| /' conftest.$ac_ext >&5
26088
26089
26090
26091fi
ac1cb8d3
VS
26092rm -f conftest.err conftest.$ac_objext \
26093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26094
26095 LIBS="$save_LIBS"
26096 CFLAGS=$save_CFLAGS
26097 fi
26098 done
26099 fi
26100 done
26101
26102 if test "$libs_found" = "0"; then
26103 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26104echo "${ECHO_T}can't find the right libraries" >&6
26105 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26106echo "$as_me: error: can't link a simple motif program" >&2;}
26107 { (exit 1); exit 1; }; }
26108 fi
26109
26110 save_CFLAGS=$CFLAGS
26111 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26112 echo "$as_me:$LINENO: checking for Motif 2" >&5
26113echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26114 cat >conftest.$ac_ext <<_ACEOF
26115/* confdefs.h. */
26116_ACEOF
26117cat confdefs.h >>conftest.$ac_ext
26118cat >>conftest.$ac_ext <<_ACEOF
26119/* end confdefs.h. */
26120
26121 #include <Xm/Xm.h>
26122
26123int
26124main ()
26125{
26126
26127 #if XmVersion < 2000
26128 #error "Not Motif 2"
26129 #endif
26130
26131 ;
26132 return 0;
26133}
26134_ACEOF
26135rm -f conftest.$ac_objext
26136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26137 (eval $ac_compile) 2>conftest.er1
a848cd7e 26138 ac_status=$?
ac1cb8d3
VS
26139 grep -v '^ *+' conftest.er1 >conftest.err
26140 rm -f conftest.er1
26141 cat conftest.err >&5
a848cd7e
SC
26142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26143 (exit $ac_status); } &&
7714864e 26144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26146 (eval $ac_try) 2>&5
26147 ac_status=$?
26148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26149 (exit $ac_status); }; } &&
26150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26152 (eval $ac_try) 2>&5
26153 ac_status=$?
26154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155 (exit $ac_status); }; }; then
26156
26157 cat >>confdefs.h <<\_ACEOF
26158#define __WXMOTIF20__ 1
26159_ACEOF
26160
26161 echo "$as_me:$LINENO: result: found" >&5
26162echo "${ECHO_T}found" >&6
26163
26164else
26165 echo "$as_me: failed program was:" >&5
26166sed 's/^/| /' conftest.$ac_ext >&5
26167
26168
26169 cat >>confdefs.h <<\_ACEOF
26170#define __WXMOTIF20__ 0
26171_ACEOF
26172
26173 echo "$as_me:$LINENO: result: not found" >&5
26174echo "${ECHO_T}not found" >&6
26175
26176fi
ac1cb8d3 26177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26178 CFLAGS=$save_CFLAGS
26179
26180 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26181 TOOLKIT=MOTIF
26182 GUIDIST=MOTIF_DIST
26183 fi
26184
74b84332 26185 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26186 if test "$wxUSE_LIBXPM" = "sys"; then
26187 echo "$as_me:$LINENO: checking for Xpm library" >&5
26188echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26189
26190ac_find_libraries=
26191for ac_dir in $SEARCH_LIB /usr/lib;
26192 do
26193 for ac_extension in a so sl dylib; do
26194 if test -f "$ac_dir/libXpm.$ac_extension"; then
26195 ac_find_libraries=$ac_dir
26196 break 2
26197 fi
26198 done
26199 done
26200
26201 if test "$ac_find_libraries" != "" ; then
26202
26203 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26204 result=$?
26205 if test $result = 0; then
26206 ac_path_to_link=""
26207 else
26208 ac_path_to_link=" -L$ac_find_libraries"
26209 fi
26210
26211 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26212 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26213echo "${ECHO_T}found at $ac_find_libraries" >&6
26214
26215 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26216echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26217if test "${wx_cv_x11_xpm_h+set}" = set; then
26218 echo $ECHO_N "(cached) $ECHO_C" >&6
26219else
26220
26221 save_CFLAGS=$CFLAGS
26222 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26223
26224 cat >conftest.$ac_ext <<_ACEOF
26225/* confdefs.h. */
26226_ACEOF
26227cat confdefs.h >>conftest.$ac_ext
26228cat >>conftest.$ac_ext <<_ACEOF
26229/* end confdefs.h. */
26230
26231 #include <X11/xpm.h>
26232
26233int
26234main ()
26235{
26236
26237 int version;
26238 version = XpmLibraryVersion();
26239
26240 ;
26241 return 0;
26242}
26243_ACEOF
26244rm -f conftest.$ac_objext
26245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26246 (eval $ac_compile) 2>conftest.er1
a848cd7e 26247 ac_status=$?
ac1cb8d3
VS
26248 grep -v '^ *+' conftest.er1 >conftest.err
26249 rm -f conftest.er1
26250 cat conftest.err >&5
a848cd7e
SC
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); } &&
7714864e 26253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255 (eval $ac_try) 2>&5
26256 ac_status=$?
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); }; } &&
26259 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; }; then
26265 wx_cv_x11_xpm_h=yes
26266else
26267 echo "$as_me: failed program was:" >&5
26268sed 's/^/| /' conftest.$ac_ext >&5
26269
26270wx_cv_x11_xpm_h=no
26271
26272fi
ac1cb8d3 26273rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26274
26275 CFLAGS=$save_CFLAGS
26276
26277
26278fi
26279echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26280echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26281
26282 if test $wx_cv_x11_xpm_h = "yes"; then
26283 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26284 cat >>confdefs.h <<\_ACEOF
26285#define wxHAVE_LIB_XPM 1
26286_ACEOF
26287
26288 else
26289 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26290echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26291 fi
26292 fi
26293
26294 fi
26295
26296 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26297echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26298if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26299 echo $ECHO_N "(cached) $ECHO_C" >&6
26300else
26301 ac_check_lib_save_LIBS=$LIBS
26302LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26303cat >conftest.$ac_ext <<_ACEOF
26304/* confdefs.h. */
26305_ACEOF
26306cat confdefs.h >>conftest.$ac_ext
26307cat >>conftest.$ac_ext <<_ACEOF
26308/* end confdefs.h. */
26309
26310/* Override any gcc2 internal prototype to avoid an error. */
26311#ifdef __cplusplus
26312extern "C"
26313#endif
26314/* We use char because int might match the return type of a gcc2
26315 builtin and then its argument prototype would still apply. */
26316char XShapeQueryExtension ();
26317int
26318main ()
26319{
26320XShapeQueryExtension ();
26321 ;
26322 return 0;
26323}
26324_ACEOF
26325rm -f conftest.$ac_objext conftest$ac_exeext
26326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26327 (eval $ac_link) 2>conftest.er1
a848cd7e 26328 ac_status=$?
ac1cb8d3
VS
26329 grep -v '^ *+' conftest.er1 >conftest.err
26330 rm -f conftest.er1
26331 cat conftest.err >&5
a848cd7e
SC
26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333 (exit $ac_status); } &&
7714864e 26334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26336 (eval $ac_try) 2>&5
26337 ac_status=$?
26338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339 (exit $ac_status); }; } &&
26340 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26342 (eval $ac_try) 2>&5
26343 ac_status=$?
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); }; }; then
26346 ac_cv_lib_Xext_XShapeQueryExtension=yes
26347else
26348 echo "$as_me: failed program was:" >&5
26349sed 's/^/| /' conftest.$ac_ext >&5
26350
26351ac_cv_lib_Xext_XShapeQueryExtension=no
26352fi
ac1cb8d3
VS
26353rm -f conftest.err conftest.$ac_objext \
26354 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26355LIBS=$ac_check_lib_save_LIBS
26356fi
26357echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26358echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26359if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26360
26361 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26362 wxHAVE_XEXT_LIB=1
26363
26364fi
26365
26366
26367 if test "$wxHAVE_XEXT_LIB" = 1; then
26368 save_CFLAGS="$CFLAGS"
26369 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26370
26371 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26372echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26373 cat >conftest.$ac_ext <<_ACEOF
26374/* confdefs.h. */
26375_ACEOF
26376cat confdefs.h >>conftest.$ac_ext
26377cat >>conftest.$ac_ext <<_ACEOF
26378/* end confdefs.h. */
26379
26380 #include <X11/Xlib.h>
26381 #include <X11/extensions/shape.h>
26382
26383int
26384main ()
26385{
26386
26387 int dummy1, dummy2;
26388 XShapeQueryExtension((Display*)NULL,
26389 (int*)NULL, (int*)NULL);
26390
26391 ;
26392 return 0;
26393}
26394_ACEOF
26395rm -f conftest.$ac_objext
26396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26397 (eval $ac_compile) 2>conftest.er1
a848cd7e 26398 ac_status=$?
ac1cb8d3
VS
26399 grep -v '^ *+' conftest.er1 >conftest.err
26400 rm -f conftest.er1
26401 cat conftest.err >&5
a848cd7e
SC
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); } &&
7714864e 26404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26407 ac_status=$?
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; } &&
26410 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26412 (eval $ac_try) 2>&5
26413 ac_status=$?
26414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26415 (exit $ac_status); }; }; then
26416
26417 cat >>confdefs.h <<\_ACEOF
26418#define HAVE_XSHAPE 1
26419_ACEOF
26420
26421 echo "$as_me:$LINENO: result: found" >&5
26422echo "${ECHO_T}found" >&6
26423
26424else
26425 echo "$as_me: failed program was:" >&5
26426sed 's/^/| /' conftest.$ac_ext >&5
26427
26428
26429 echo "$as_me:$LINENO: result: not found" >&5
26430echo "${ECHO_T}not found" >&6
26431
26432fi
ac1cb8d3 26433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26434 CFLAGS="$save_CFLAGS"
26435
26436 fi
26437 fi
26438
26439 if test "$wxUSE_MAC" = 1; then
26440 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26441echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26442 if test "$GCC" = yes; then
26443 echo "$as_me:$LINENO: result: gcc" >&5
26444echo "${ECHO_T}gcc" >&6
26445 CPPFLAGS_PASCAL="-fpascal-strings"
26446 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26447 echo "$as_me:$LINENO: result: xlc" >&5
26448echo "${ECHO_T}xlc" >&6
26449 CPPFLAGS_PASCAL="-qmacpstr"
26450 else
26451 echo "$as_me:$LINENO: result: none" >&5
26452echo "${ECHO_T}none" >&6
26453 fi
26454
26455 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26456
a848cd7e
SC
26457 TOOLKIT=MAC
26458 GUIDIST=MACX_DIST
dd21ced8 26459 WXBASEPORT="_carbon"
a848cd7e
SC
26460 fi
26461
26462 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26463 TOOLKIT=COCOA
26464 GUIDIST=COCOA_DIST
26465 fi
26466
26467 if test "$wxUSE_PM" = 1; then
26468 TOOLKIT=PM
de59c161
RD
26469 GUIDIST=PM_DIST
26470 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26471echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26472if test "${wx_cv_spbcdata+set}" = set; then
26473 echo $ECHO_N "(cached) $ECHO_C" >&6
26474else
26475
26476 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26477/* confdefs.h. */
26478_ACEOF
26479cat confdefs.h >>conftest.$ac_ext
26480cat >>conftest.$ac_ext <<_ACEOF
26481/* end confdefs.h. */
26482
26483 #define INCL_PM
26484 #include <os2.h>
26485
26486int
26487main ()
26488{
26489
26490 SPBCDATA test;
26491
26492 ;
26493 return 0;
26494}
26495_ACEOF
26496rm -f conftest.$ac_objext
26497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26498 (eval $ac_compile) 2>conftest.er1
de59c161 26499 ac_status=$?
ac1cb8d3
VS
26500 grep -v '^ *+' conftest.er1 >conftest.err
26501 rm -f conftest.er1
26502 cat conftest.err >&5
de59c161
RD
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); } &&
7714864e 26505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26507 (eval $ac_try) 2>&5
26508 ac_status=$?
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); }; } &&
26511 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
26512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26513 (eval $ac_try) 2>&5
26514 ac_status=$?
26515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26516 (exit $ac_status); }; }; then
26517 wx_cv_spbcdata=yes
26518else
26519 echo "$as_me: failed program was:" >&5
26520sed 's/^/| /' conftest.$ac_ext >&5
26521
26522wx_cv_spbcdata=no
26523
26524fi
ac1cb8d3 26525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
26526
26527
26528fi
26529echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
26530echo "${ECHO_T}$wx_cv_spbcdata" >&6
26531
26532 if test $wx_cv_spbcdata = "yes"; then
26533 cat >>confdefs.h <<\_ACEOF
26534#define HAVE_SPBCDATA 1
26535_ACEOF
26536
26537 fi
a848cd7e
SC
26538 fi
26539
26540 if test "$TOOLKIT" = "PM" ; then
26541 TOOLKIT_DIR="os2"
26542 else
26543 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26544 fi
26545
a848cd7e 26546 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
26547 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26548 WIDGET_SET=univ
a848cd7e
SC
26549 fi
26550
26551 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26552 DISTDIR="wx\$(TOOLKIT)"
26553else
26554 USE_GUI=0
26555
26556 TOOLKIT_DIR="base"
26557
26558 if test "$USE_WIN32" = 1 ; then
a848cd7e 26559 TOOLKIT="MSW"
a848cd7e
SC
26560 fi
26561
a848cd7e
SC
26562 GUIDIST="BASE_DIST"
26563 DISTDIR="wxBase"
26564fi
26565
26566
26567
26568
26569IODBC_C_SRC=""
26570
26571
26572if test "$TOOLKIT" != "MSW" ; then
26573
26574 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
26575
26576 if test "${ac_cv_header_sql_h+set}" = set; then
26577 echo "$as_me:$LINENO: checking for sql.h" >&5
26578echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26579if test "${ac_cv_header_sql_h+set}" = set; then
26580 echo $ECHO_N "(cached) $ECHO_C" >&6
26581fi
26582echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26583echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26584else
26585 # Is the header compilable?
26586echo "$as_me:$LINENO: checking sql.h usability" >&5
26587echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26588cat >conftest.$ac_ext <<_ACEOF
26589/* confdefs.h. */
26590_ACEOF
26591cat confdefs.h >>conftest.$ac_ext
26592cat >>conftest.$ac_ext <<_ACEOF
26593/* end confdefs.h. */
26594$ac_includes_default
26595#include <sql.h>
26596_ACEOF
26597rm -f conftest.$ac_objext
26598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26599 (eval $ac_compile) 2>conftest.er1
a848cd7e 26600 ac_status=$?
ac1cb8d3
VS
26601 grep -v '^ *+' conftest.er1 >conftest.err
26602 rm -f conftest.er1
26603 cat conftest.err >&5
a848cd7e
SC
26604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26605 (exit $ac_status); } &&
7714864e 26606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26608 (eval $ac_try) 2>&5
26609 ac_status=$?
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); }; } &&
26612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26614 (eval $ac_try) 2>&5
26615 ac_status=$?
26616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26617 (exit $ac_status); }; }; then
26618 ac_header_compiler=yes
26619else
26620 echo "$as_me: failed program was:" >&5
26621sed 's/^/| /' conftest.$ac_ext >&5
26622
26623ac_header_compiler=no
26624fi
ac1cb8d3 26625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26626echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26627echo "${ECHO_T}$ac_header_compiler" >&6
26628
26629# Is the header present?
26630echo "$as_me:$LINENO: checking sql.h presence" >&5
26631echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26632cat >conftest.$ac_ext <<_ACEOF
26633/* confdefs.h. */
26634_ACEOF
26635cat confdefs.h >>conftest.$ac_ext
26636cat >>conftest.$ac_ext <<_ACEOF
26637/* end confdefs.h. */
26638#include <sql.h>
26639_ACEOF
26640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26642 ac_status=$?
26643 grep -v '^ *+' conftest.er1 >conftest.err
26644 rm -f conftest.er1
26645 cat conftest.err >&5
26646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26647 (exit $ac_status); } >/dev/null; then
26648 if test -s conftest.err; then
26649 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 26650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
26651 else
26652 ac_cpp_err=
26653 fi
26654else
26655 ac_cpp_err=yes
26656fi
26657if test -z "$ac_cpp_err"; then
26658 ac_header_preproc=yes
26659else
26660 echo "$as_me: failed program was:" >&5
26661sed 's/^/| /' conftest.$ac_ext >&5
26662
26663 ac_header_preproc=no
26664fi
26665rm -f conftest.err conftest.$ac_ext
26666echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26667echo "${ECHO_T}$ac_header_preproc" >&6
26668
26669# So? What about this header?
ac1cb8d3
VS
26670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26671 yes:no: )
a848cd7e
SC
26672 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26673echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
26674 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26675echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26676 ac_header_preproc=yes
a848cd7e 26677 ;;
ac1cb8d3 26678 no:yes:* )
a848cd7e
SC
26679 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26680echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
26681 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26682echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26683 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26684echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26685 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26686echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
26687 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26688echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
26689 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26690echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
26691 (
26692 cat <<\_ASBOX
ac1cb8d3
VS
26693## ----------------------------------------- ##
26694## Report this to wx-dev@lists.wxwidgets.org ##
26695## ----------------------------------------- ##
a848cd7e
SC
26696_ASBOX
26697 ) |
26698 sed "s/^/$as_me: WARNING: /" >&2
26699 ;;
26700esac
26701echo "$as_me:$LINENO: checking for sql.h" >&5
26702echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26703if test "${ac_cv_header_sql_h+set}" = set; then
26704 echo $ECHO_N "(cached) $ECHO_C" >&6
26705else
26706 ac_cv_header_sql_h=$ac_header_preproc
26707fi
26708echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26709echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26710
26711fi
26712if test $ac_cv_header_sql_h = yes; then
26713 found_sql_h=1
26714fi
26715
26716
26717 if test "x$found_sql_h" = "x1" ; then
26718 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26719echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26720if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
26721 echo $ECHO_N "(cached) $ECHO_C" >&6
26722else
26723 ac_check_lib_save_LIBS=$LIBS
26724LIBS="-liodbc $LIBS"
26725cat >conftest.$ac_ext <<_ACEOF
26726/* confdefs.h. */
26727_ACEOF
26728cat confdefs.h >>conftest.$ac_ext
26729cat >>conftest.$ac_ext <<_ACEOF
26730/* end confdefs.h. */
26731
26732/* Override any gcc2 internal prototype to avoid an error. */
26733#ifdef __cplusplus
26734extern "C"
26735#endif
26736/* We use char because int might match the return type of a gcc2
26737 builtin and then its argument prototype would still apply. */
26738char SQLAllocEnv ();
26739int
26740main ()
26741{
26742SQLAllocEnv ();
26743 ;
26744 return 0;
26745}
26746_ACEOF
26747rm -f conftest.$ac_objext conftest$ac_exeext
26748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26749 (eval $ac_link) 2>conftest.er1
a848cd7e 26750 ac_status=$?
ac1cb8d3
VS
26751 grep -v '^ *+' conftest.er1 >conftest.err
26752 rm -f conftest.er1
26753 cat conftest.err >&5
a848cd7e
SC
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } &&
7714864e 26756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26758 (eval $ac_try) 2>&5
26759 ac_status=$?
26760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26761 (exit $ac_status); }; } &&
26762 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26764 (eval $ac_try) 2>&5
26765 ac_status=$?
26766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); }; }; then
26768 ac_cv_lib_iodbc_SQLAllocEnv=yes
26769else
26770 echo "$as_me: failed program was:" >&5
26771sed 's/^/| /' conftest.$ac_ext >&5
26772
26773ac_cv_lib_iodbc_SQLAllocEnv=no
26774fi
ac1cb8d3
VS
26775rm -f conftest.err conftest.$ac_objext \
26776 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26777LIBS=$ac_check_lib_save_LIBS
26778fi
26779echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26780echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26781if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
26782 ODBC_LINK=" -liodbc"
26783else
26784
26785 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26786echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26787if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
26788 echo $ECHO_N "(cached) $ECHO_C" >&6
26789else
26790 ac_check_lib_save_LIBS=$LIBS
26791LIBS="-lunixodbc $LIBS"
26792cat >conftest.$ac_ext <<_ACEOF
26793/* confdefs.h. */
26794_ACEOF
26795cat confdefs.h >>conftest.$ac_ext
26796cat >>conftest.$ac_ext <<_ACEOF
26797/* end confdefs.h. */
26798
26799/* Override any gcc2 internal prototype to avoid an error. */
26800#ifdef __cplusplus
26801extern "C"
26802#endif
26803/* We use char because int might match the return type of a gcc2
26804 builtin and then its argument prototype would still apply. */
26805char SQLAllocEnv ();
26806int
26807main ()
26808{
26809SQLAllocEnv ();
26810 ;
26811 return 0;
26812}
26813_ACEOF
26814rm -f conftest.$ac_objext conftest$ac_exeext
26815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26816 (eval $ac_link) 2>conftest.er1
a848cd7e 26817 ac_status=$?
ac1cb8d3
VS
26818 grep -v '^ *+' conftest.er1 >conftest.err
26819 rm -f conftest.er1
26820 cat conftest.err >&5
a848cd7e
SC
26821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26822 (exit $ac_status); } &&
7714864e 26823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26825 (eval $ac_try) 2>&5
26826 ac_status=$?
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); }; } &&
26829 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26831 (eval $ac_try) 2>&5
26832 ac_status=$?
26833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26834 (exit $ac_status); }; }; then
26835 ac_cv_lib_unixodbc_SQLAllocEnv=yes
26836else
26837 echo "$as_me: failed program was:" >&5
26838sed 's/^/| /' conftest.$ac_ext >&5
26839
26840ac_cv_lib_unixodbc_SQLAllocEnv=no
26841fi
ac1cb8d3
VS
26842rm -f conftest.err conftest.$ac_objext \
26843 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26844LIBS=$ac_check_lib_save_LIBS
26845fi
26846echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26847echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26848if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
26849 ODBC_LINK=" -lunixodbc"
26850else
26851
26852 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26853echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26854if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
26855 echo $ECHO_N "(cached) $ECHO_C" >&6
26856else
26857 ac_check_lib_save_LIBS=$LIBS
26858LIBS="-lodbc $LIBS"
26859cat >conftest.$ac_ext <<_ACEOF
26860/* confdefs.h. */
26861_ACEOF
26862cat confdefs.h >>conftest.$ac_ext
26863cat >>conftest.$ac_ext <<_ACEOF
26864/* end confdefs.h. */
26865
26866/* Override any gcc2 internal prototype to avoid an error. */
26867#ifdef __cplusplus
26868extern "C"
26869#endif
26870/* We use char because int might match the return type of a gcc2
26871 builtin and then its argument prototype would still apply. */
26872char SQLAllocEnv ();
26873int
26874main ()
26875{
26876SQLAllocEnv ();
26877 ;
26878 return 0;
26879}
26880_ACEOF
26881rm -f conftest.$ac_objext conftest$ac_exeext
26882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26883 (eval $ac_link) 2>conftest.er1
a848cd7e 26884 ac_status=$?
ac1cb8d3
VS
26885 grep -v '^ *+' conftest.er1 >conftest.err
26886 rm -f conftest.er1
26887 cat conftest.err >&5
a848cd7e
SC
26888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26889 (exit $ac_status); } &&
7714864e 26890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26892 (eval $ac_try) 2>&5
26893 ac_status=$?
26894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895 (exit $ac_status); }; } &&
26896 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26898 (eval $ac_try) 2>&5
26899 ac_status=$?
26900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901 (exit $ac_status); }; }; then
26902 ac_cv_lib_odbc_SQLAllocEnv=yes
26903else
26904 echo "$as_me: failed program was:" >&5
26905sed 's/^/| /' conftest.$ac_ext >&5
26906
26907ac_cv_lib_odbc_SQLAllocEnv=no
26908fi
ac1cb8d3
VS
26909rm -f conftest.err conftest.$ac_objext \
26910 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26911LIBS=$ac_check_lib_save_LIBS
26912fi
26913echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26914echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26915if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
26916 ODBC_LINK=" -lodbc"
26917fi
26918
26919
26920fi
26921
26922
26923fi
26924
26925 fi
26926 if test "x$ODBC_LINK" = "x" ; then
26927 if test "$wxUSE_ODBC" = "sys" ; then
26928 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26929echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26930 { (exit 1); exit 1; }; }
26931 else
26932 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26933echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26934 wxUSE_ODBC=builtin
26935 fi
26936 else
26937 wxUSE_ODBC=sys
26938 fi
26939 fi
26940 if test "$wxUSE_ODBC" != "no" ; then
26941 cat >>confdefs.h <<\_ACEOF
26942#define wxUSE_ODBC 1
26943_ACEOF
26944
26945 if test "$wxUSE_ODBC" = "builtin" ; then
26946 cat >>confdefs.h <<\_ACEOF
26947#define wxUSE_BUILTIN_IODBC 1
26948_ACEOF
26949
26950 fi
26951 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26952
26953 WXODBCFLAG="-D_IODBC_"
26954 fi
26955fi
26956
a848cd7e 26957
01cb68df 26958
a848cd7e 26959if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 26960 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
26961 echo "$as_me:$LINENO: checking for Xinerama" >&5
26962echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26963
26964ac_find_libraries=
26965for ac_dir in $SEARCH_LIB /usr/lib;
26966 do
26967 for ac_extension in a so sl dylib; do
26968 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26969 ac_find_libraries=$ac_dir
26970 break 2
26971 fi
26972 done
26973 done
26974
26975 if test "$ac_find_libraries" != "" ; then
26976
26977 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26978 result=$?
26979 if test $result = 0; then
26980 ac_path_to_link=""
26981 else
26982 ac_path_to_link=" -L$ac_find_libraries"
26983 fi
26984
26985 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26986 LDFLAGS="$LDFLAGS $ac_path_to_link"
26987 fi
26988 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26989 echo "$as_me:$LINENO: result: yes" >&5
26990echo "${ECHO_T}yes" >&6
26991
26992 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26993echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26994
26995ac_find_libraries=
26996for ac_dir in $SEARCH_LIB /usr/lib;
26997 do
26998 for ac_extension in a so sl dylib; do
26999 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27000 ac_find_libraries=$ac_dir
27001 break 2
27002 fi
27003 done
27004 done
27005
27006 if test "$ac_find_libraries" != "" ; then
27007 echo "$as_me:$LINENO: result: yes" >&5
27008echo "${ECHO_T}yes" >&6
27009
27010for ac_header in X11/extensions/xf86vmode.h
27011do
27012as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27013echo "$as_me:$LINENO: checking for $ac_header" >&5
27014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27015if eval "test \"\${$as_ac_Header+set}\" = set"; then
27016 echo $ECHO_N "(cached) $ECHO_C" >&6
27017else
27018 cat >conftest.$ac_ext <<_ACEOF
27019/* confdefs.h. */
27020_ACEOF
27021cat confdefs.h >>conftest.$ac_ext
27022cat >>conftest.$ac_ext <<_ACEOF
27023/* end confdefs.h. */
27024
27025 #if HAVE_X11_XLIB_H
27026 #include <X11/Xlib.h>
27027 #endif
27028
27029
27030#include <$ac_header>
27031_ACEOF
27032rm -f conftest.$ac_objext
27033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27034 (eval $ac_compile) 2>conftest.er1
a848cd7e 27035 ac_status=$?
ac1cb8d3
VS
27036 grep -v '^ *+' conftest.er1 >conftest.err
27037 rm -f conftest.er1
27038 cat conftest.err >&5
a848cd7e
SC
27039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27040 (exit $ac_status); } &&
7714864e 27041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27043 (eval $ac_try) 2>&5
27044 ac_status=$?
27045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046 (exit $ac_status); }; } &&
27047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27049 (eval $ac_try) 2>&5
27050 ac_status=$?
27051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052 (exit $ac_status); }; }; then
27053 eval "$as_ac_Header=yes"
27054else
27055 echo "$as_me: failed program was:" >&5
27056sed 's/^/| /' conftest.$ac_ext >&5
27057
27058eval "$as_ac_Header=no"
27059fi
ac1cb8d3 27060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27061fi
27062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27064if test `eval echo '${'$as_ac_Header'}'` = yes; then
27065 cat >>confdefs.h <<_ACEOF
27066#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27067_ACEOF
27068
27069 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27070
27071fi
27072
27073done
27074
27075 else
27076 echo "$as_me:$LINENO: result: no" >&5
27077echo "${ECHO_T}no" >&6
27078 fi
27079
27080 else
27081 echo "$as_me:$LINENO: result: no" >&5
27082echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27083 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27084echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27085 wxUSE_DISPLAY="no"
27086 fi
01cb68df
RG
27087 elif test "$wxUSE_MSW" = 1; then
27088
27089
27090for ac_header in multimon.h ddraw.h
27091do
27092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27093if eval "test \"\${$as_ac_Header+set}\" = set"; then
27094 echo "$as_me:$LINENO: checking for $ac_header" >&5
27095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27096if eval "test \"\${$as_ac_Header+set}\" = set"; then
27097 echo $ECHO_N "(cached) $ECHO_C" >&6
27098fi
27099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27101else
27102 # Is the header compilable?
27103echo "$as_me:$LINENO: checking $ac_header usability" >&5
27104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27105cat >conftest.$ac_ext <<_ACEOF
27106/* confdefs.h. */
27107_ACEOF
27108cat confdefs.h >>conftest.$ac_ext
27109cat >>conftest.$ac_ext <<_ACEOF
27110/* end confdefs.h. */
27111$ac_includes_default
27112#include <$ac_header>
27113_ACEOF
27114rm -f conftest.$ac_objext
27115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27116 (eval $ac_compile) 2>conftest.er1
01cb68df 27117 ac_status=$?
ac1cb8d3
VS
27118 grep -v '^ *+' conftest.er1 >conftest.err
27119 rm -f conftest.er1
27120 cat conftest.err >&5
01cb68df
RG
27121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27122 (exit $ac_status); } &&
7714864e 27123 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27125 (eval $ac_try) 2>&5
27126 ac_status=$?
27127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27128 (exit $ac_status); }; } &&
27129 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27131 (eval $ac_try) 2>&5
27132 ac_status=$?
27133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134 (exit $ac_status); }; }; then
27135 ac_header_compiler=yes
27136else
27137 echo "$as_me: failed program was:" >&5
27138sed 's/^/| /' conftest.$ac_ext >&5
27139
27140ac_header_compiler=no
27141fi
ac1cb8d3 27142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27143echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27144echo "${ECHO_T}$ac_header_compiler" >&6
27145
27146# Is the header present?
27147echo "$as_me:$LINENO: checking $ac_header presence" >&5
27148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27149cat >conftest.$ac_ext <<_ACEOF
27150/* confdefs.h. */
27151_ACEOF
27152cat confdefs.h >>conftest.$ac_ext
27153cat >>conftest.$ac_ext <<_ACEOF
27154/* end confdefs.h. */
27155#include <$ac_header>
27156_ACEOF
27157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27159 ac_status=$?
27160 grep -v '^ *+' conftest.er1 >conftest.err
27161 rm -f conftest.er1
27162 cat conftest.err >&5
27163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27164 (exit $ac_status); } >/dev/null; then
27165 if test -s conftest.err; then
27166 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
01cb68df
RG
27168 else
27169 ac_cpp_err=
27170 fi
27171else
27172 ac_cpp_err=yes
27173fi
27174if test -z "$ac_cpp_err"; then
27175 ac_header_preproc=yes
27176else
27177 echo "$as_me: failed program was:" >&5
27178sed 's/^/| /' conftest.$ac_ext >&5
27179
27180 ac_header_preproc=no
27181fi
27182rm -f conftest.err conftest.$ac_ext
27183echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27184echo "${ECHO_T}$ac_header_preproc" >&6
27185
27186# So? What about this header?
ac1cb8d3
VS
27187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27188 yes:no: )
01cb68df
RG
27189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27193 ac_header_preproc=yes
01cb68df 27194 ;;
ac1cb8d3 27195 no:yes:* )
01cb68df
RG
27196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
01cb68df
RG
27204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
01cb68df
RG
27208 (
27209 cat <<\_ASBOX
ac1cb8d3
VS
27210## ----------------------------------------- ##
27211## Report this to wx-dev@lists.wxwidgets.org ##
27212## ----------------------------------------- ##
01cb68df
RG
27213_ASBOX
27214 ) |
27215 sed "s/^/$as_me: WARNING: /" >&2
27216 ;;
27217esac
27218echo "$as_me:$LINENO: checking for $ac_header" >&5
27219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27220if eval "test \"\${$as_ac_Header+set}\" = set"; then
27221 echo $ECHO_N "(cached) $ECHO_C" >&6
27222else
ac1cb8d3 27223 eval "$as_ac_Header=\$ac_header_preproc"
01cb68df
RG
27224fi
27225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27227
27228fi
27229if test `eval echo '${'$as_ac_Header'}'` = yes; then
27230 cat >>confdefs.h <<_ACEOF
27231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27232_ACEOF
27233
27234else
27235
27236 wxUSE_DISPLAY="no"
dcc1b6ad
VS
27237 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
27238echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27239
27240fi
27241
27242done
27243
a848cd7e
SC
27244 fi
27245fi
27246
27247
27248USE_OPENGL=0
27249if test "$wxUSE_OPENGL" = "yes"; then
27250 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27251 OPENGL_LIBS="-framework OpenGL -framework AGL"
27252 elif test "$wxUSE_MSW" = 1; then
27253 OPENGL_LIBS="-lopengl32 -lglu32"
27254 else
27255
27256
27257ac_find_includes=
27258for ac_dir in $SEARCH_INCLUDE /usr/include;
27259 do
27260 if test -f "$ac_dir/GL/gl.h"; then
27261 ac_find_includes=$ac_dir
27262 break
27263 fi
27264 done
27265
27266 if test "$ac_find_includes" != "" ; then
27267 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27268echo "${ECHO_T}found in $ac_find_includes" >&6
27269
27270 if test "x$ac_find_includes" = "x/usr/include"; then
27271 ac_path_to_include=""
27272 else
27273 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27274 result=$?
27275 if test $result = 0; then
27276 ac_path_to_include=""
27277 else
27278 ac_path_to_include=" -I$ac_find_includes"
27279 fi
27280 fi
27281
27282 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27283 fi
27284
27285 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27286 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27287echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27288if test "${ac_cv_header_GL_gl_h+set}" = set; then
27289 echo $ECHO_N "(cached) $ECHO_C" >&6
27290fi
27291echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27292echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27293else
27294 # Is the header compilable?
27295echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27296echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27297cat >conftest.$ac_ext <<_ACEOF
27298/* confdefs.h. */
27299_ACEOF
27300cat confdefs.h >>conftest.$ac_ext
27301cat >>conftest.$ac_ext <<_ACEOF
27302/* end confdefs.h. */
27303$ac_includes_default
27304#include <GL/gl.h>
27305_ACEOF
27306rm -f conftest.$ac_objext
27307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27308 (eval $ac_compile) 2>conftest.er1
a848cd7e 27309 ac_status=$?
ac1cb8d3
VS
27310 grep -v '^ *+' conftest.er1 >conftest.err
27311 rm -f conftest.er1
27312 cat conftest.err >&5
a848cd7e
SC
27313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314 (exit $ac_status); } &&
7714864e 27315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27317 (eval $ac_try) 2>&5
27318 ac_status=$?
27319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27320 (exit $ac_status); }; } &&
27321 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27323 (eval $ac_try) 2>&5
27324 ac_status=$?
27325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326 (exit $ac_status); }; }; then
27327 ac_header_compiler=yes
27328else
27329 echo "$as_me: failed program was:" >&5
27330sed 's/^/| /' conftest.$ac_ext >&5
27331
27332ac_header_compiler=no
27333fi
ac1cb8d3 27334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27335echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27336echo "${ECHO_T}$ac_header_compiler" >&6
27337
27338# Is the header present?
27339echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27340echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27341cat >conftest.$ac_ext <<_ACEOF
27342/* confdefs.h. */
27343_ACEOF
27344cat confdefs.h >>conftest.$ac_ext
27345cat >>conftest.$ac_ext <<_ACEOF
27346/* end confdefs.h. */
27347#include <GL/gl.h>
27348_ACEOF
27349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27351 ac_status=$?
27352 grep -v '^ *+' conftest.er1 >conftest.err
27353 rm -f conftest.er1
27354 cat conftest.err >&5
27355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356 (exit $ac_status); } >/dev/null; then
27357 if test -s conftest.err; then
27358 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27360 else
27361 ac_cpp_err=
27362 fi
27363else
27364 ac_cpp_err=yes
27365fi
27366if test -z "$ac_cpp_err"; then
27367 ac_header_preproc=yes
27368else
27369 echo "$as_me: failed program was:" >&5
27370sed 's/^/| /' conftest.$ac_ext >&5
27371
27372 ac_header_preproc=no
27373fi
27374rm -f conftest.err conftest.$ac_ext
27375echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27376echo "${ECHO_T}$ac_header_preproc" >&6
27377
27378# So? What about this header?
ac1cb8d3
VS
27379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27380 yes:no: )
a848cd7e
SC
27381 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27382echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27383 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27384echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27385 ac_header_preproc=yes
a848cd7e 27386 ;;
ac1cb8d3 27387 no:yes:* )
a848cd7e
SC
27388 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27389echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27390 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27391echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27392 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27393echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27394 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27395echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27396 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27397echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27398 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27399echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27400 (
27401 cat <<\_ASBOX
ac1cb8d3
VS
27402## ----------------------------------------- ##
27403## Report this to wx-dev@lists.wxwidgets.org ##
27404## ----------------------------------------- ##
a848cd7e
SC
27405_ASBOX
27406 ) |
27407 sed "s/^/$as_me: WARNING: /" >&2
27408 ;;
27409esac
27410echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27411echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27412if test "${ac_cv_header_GL_gl_h+set}" = set; then
27413 echo $ECHO_N "(cached) $ECHO_C" >&6
27414else
27415 ac_cv_header_GL_gl_h=$ac_header_preproc
27416fi
27417echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27418echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27419
27420fi
27421if test $ac_cv_header_GL_gl_h = yes; then
27422
27423 found_gl=0
27424
27425 echo "$as_me:$LINENO: checking for -lGL" >&5
27426echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27427
27428ac_find_libraries=
27429for ac_dir in $SEARCH_LIB /usr/lib;
27430 do
27431 for ac_extension in a so sl dylib; do
27432 if test -f "$ac_dir/libGL.$ac_extension"; then
27433 ac_find_libraries=$ac_dir
27434 break 2
27435 fi
27436 done
27437 done
27438
27439 if test "$ac_find_libraries" != "" ; then
27440
27441 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27442 result=$?
27443 if test $result = 0; then
27444 ac_path_to_link=""
27445 else
27446 ac_path_to_link=" -L$ac_find_libraries"
27447 fi
27448
27449 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27450 LDFLAGS_GL="$ac_path_to_link"
27451 fi
27452
27453
27454ac_find_libraries=
27455for ac_dir in $SEARCH_LIB /usr/lib;
27456 do
27457 for ac_extension in a so sl dylib; do
27458 if test -f "$ac_dir/libGLU.$ac_extension"; then
27459 ac_find_libraries=$ac_dir
27460 break 2
27461 fi
27462 done
27463 done
27464
27465 if test "$ac_find_libraries" != "" ; then
27466
27467 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27468 result=$?
27469 if test $result = 0; then
27470 ac_path_to_link=""
27471 else
27472 ac_path_to_link=" -L$ac_find_libraries"
27473 fi
27474
27475 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27476 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27477 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27478 fi
27479
27480 found_gl=1
27481 OPENGL_LIBS="-lGL -lGLU"
27482 echo "$as_me:$LINENO: result: yes" >&5
27483echo "${ECHO_T}yes" >&6
27484 fi
27485 fi
27486
27487 if test "$found_gl" != 1; then
27488 echo "$as_me:$LINENO: result: no" >&5
27489echo "${ECHO_T}no" >&6
27490 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27491echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27492
27493ac_find_libraries=
27494for ac_dir in $SEARCH_LIB /usr/lib;
27495 do
27496 for ac_extension in a so sl dylib; do
27497 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27498 ac_find_libraries=$ac_dir
27499 break 2
27500 fi
27501 done
27502 done
27503
27504 if test "$ac_find_libraries" != "" ; then
27505
27506 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27507 result=$?
27508 if test $result = 0; then
27509 ac_path_to_link=""
27510 else
27511 ac_path_to_link=" -L$ac_find_libraries"
27512 fi
27513
27514 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27515 OPENGL_LIBS="-lMesaGL -lMesaGLU"
27516 echo "$as_me:$LINENO: result: yes" >&5
27517echo "${ECHO_T}yes" >&6
27518 else
27519 echo "$as_me:$LINENO: result: no" >&5
27520echo "${ECHO_T}no" >&6
27521 fi
27522 fi
27523
27524fi
27525
27526
27527
27528 if test "x$OPENGL_LIBS" = "x"; then
27529 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27530echo "$as_me: error: OpenGL libraries not available" >&2;}
27531 { (exit 1); exit 1; }; }
27532 fi
27533 fi
27534
27535 if test "$wxUSE_OPENGL" = "yes"; then
27536 USE_OPENGL=1
27537 cat >>confdefs.h <<\_ACEOF
27538#define wxUSE_OPENGL 1
27539_ACEOF
27540
27541 cat >>confdefs.h <<\_ACEOF
27542#define wxUSE_GLCANVAS 1
27543_ACEOF
27544
27545 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
27546 fi
27547fi
27548
a848cd7e
SC
27549
27550if test -n "$TOOLKIT" ; then
27551 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27552fi
27553
a848cd7e
SC
27554
27555
27556if test "$wxUSE_SHARED" = "yes"; then
27557 case "${host}" in
27558 *-pc-msdosdjgpp )
27559 wxUSE_SHARED=no
27560 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27561echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
27562 ;;
27563 esac
27564fi
27565
a848cd7e 27566if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
27567
27568
27569 found_versioning=no
27570
27571
27572 if test $found_versioning = no ; then
27573 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27574echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27575if test "${wx_cv_version_script+set}" = set; then
27576 echo $ECHO_N "(cached) $ECHO_C" >&6
27577else
27578
27579 echo "VER_1 { *; };" >conftest.sym
27580 echo "int main() { return 0; }" >conftest.cpp
27581
27582 if { ac_try='
27583 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
27584 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586 (eval $ac_try) 2>&5
27587 ac_status=$?
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; } ; then
27590 if test -s conftest.stderr ; then
27591 wx_cv_version_script=no
27592 else
27593 wx_cv_version_script=yes
27594 fi
27595 else
27596 wx_cv_version_script=no
27597 fi
27598 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
27599
27600fi
27601echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27602echo "${ECHO_T}$wx_cv_version_script" >&6
27603 if test $wx_cv_version_script = yes ; then
27604 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
27605 fi
27606 fi
27607
27608
27609 case "${host}" in
27610 *-*-linux* | *-*-gnu* )
27611 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27612 ;;
27613
27614 *-*-solaris2* )
27615 if test "$GCC" = yes ; then
27616 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
27617
27618 saveLdflags="$LDFLAGS"
27619 LDFLAGS="$saveLdflags -Wl,-rpath,/"
27620 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27621echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27622 cat >conftest.$ac_ext <<_ACEOF
27623/* confdefs.h. */
27624_ACEOF
27625cat confdefs.h >>conftest.$ac_ext
27626cat >>conftest.$ac_ext <<_ACEOF
27627/* end confdefs.h. */
27628
27629int
27630main ()
27631{
27632
27633 ;
27634 return 0;
27635}
27636_ACEOF
27637rm -f conftest.$ac_objext conftest$ac_exeext
27638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27639 (eval $ac_link) 2>conftest.er1
a848cd7e 27640 ac_status=$?
ac1cb8d3
VS
27641 grep -v '^ *+' conftest.er1 >conftest.err
27642 rm -f conftest.er1
27643 cat conftest.err >&5
a848cd7e
SC
27644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645 (exit $ac_status); } &&
7714864e 27646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27648 (eval $ac_try) 2>&5
27649 ac_status=$?
27650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27651 (exit $ac_status); }; } &&
27652 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27654 (eval $ac_try) 2>&5
27655 ac_status=$?
27656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657 (exit $ac_status); }; }; then
27658
27659 echo "$as_me:$LINENO: result: yes" >&5
27660echo "${ECHO_T}yes" >&6
27661 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27662
27663else
27664 echo "$as_me: failed program was:" >&5
27665sed 's/^/| /' conftest.$ac_ext >&5
27666
27667
27668 echo "$as_me:$LINENO: result: no" >&5
27669echo "${ECHO_T}no" >&6
27670 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27671echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
27672 LDFLAGS="$saveLdflags -Wl,-R,/"
27673 cat >conftest.$ac_ext <<_ACEOF
27674/* confdefs.h. */
27675_ACEOF
27676cat confdefs.h >>conftest.$ac_ext
27677cat >>conftest.$ac_ext <<_ACEOF
27678/* end confdefs.h. */
27679
27680int
27681main ()
27682{
27683
27684 ;
27685 return 0;
27686}
27687_ACEOF
27688rm -f conftest.$ac_objext conftest$ac_exeext
27689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27690 (eval $ac_link) 2>conftest.er1
a848cd7e 27691 ac_status=$?
ac1cb8d3
VS
27692 grep -v '^ *+' conftest.er1 >conftest.err
27693 rm -f conftest.er1
27694 cat conftest.err >&5
a848cd7e
SC
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); } &&
7714864e 27697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27699 (eval $ac_try) 2>&5
27700 ac_status=$?
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); }; } &&
27703 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27705 (eval $ac_try) 2>&5
27706 ac_status=$?
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); }; }; then
27709
27710 echo "$as_me:$LINENO: result: yes" >&5
27711echo "${ECHO_T}yes" >&6
27712 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27713else
27714 echo "$as_me: failed program was:" >&5
27715sed 's/^/| /' conftest.$ac_ext >&5
27716
27717
27718 echo "$as_me:$LINENO: result: no" >&5
27719echo "${ECHO_T}no" >&6
27720
27721fi
ac1cb8d3
VS
27722rm -f conftest.err conftest.$ac_objext \
27723 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27724
27725fi
ac1cb8d3
VS
27726rm -f conftest.err conftest.$ac_objext \
27727 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27728 LDFLAGS="$saveLdflags"
27729 else
a848cd7e
SC
27730 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
27731 fi
27732 ;;
27733
27734 powerpc-*-darwin* )
27735 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27736 cat <<EOF >change-install-names
27737#!/bin/sh
27738libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27739inst_cmd="install_name_tool "
27740for i in \${libnames} ; do
27741 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27742done
27743\${inst_cmd} \${3}
27744EOF
27745 chmod +x change-install-names
27746 ;;
27747
27748 *-*-cygwin* | *-*-mingw32* )
27749 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
27750 ;;
27751
27752 esac
ceec2216
RL
27753fi
27754
27755if test "$wxUSE_SHARED" = "no"; then
27756 config_linkage_component="-static"
27757 SHARED=0
27758else
27759 SHARED=1
27760fi
a848cd7e 27761
a848cd7e 27762
ceec2216
RL
27763UNICODE=0
27764lib_unicode_suffix=
27765WX_CHARTYPE="ansi"
27766if test "$wxUSE_UNICODE" = "yes"; then
27767 lib_unicode_suffix=u
27768 WX_CHARTYPE="unicode"
27769 UNICODE=1
a848cd7e
SC
27770fi
27771
ceec2216
RL
27772lib_debug_suffix=
27773WX_DEBUGTYPE="release"
27774DEBUG_FLAG=0
27775if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27776 lib_debug_suffix=d
27777 WX_DEBUGTYPE="debug"
27778 DEBUG_FLAG=1
27779fi
a848cd7e 27780
ceec2216
RL
27781WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
27782WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 27783
ceec2216
RL
27784DEBUG_INFO=0
27785if test "$wxUSE_DEBUG_INFO" = "yes"; then
27786 DEBUG_INFO=1
27787fi
a848cd7e 27788
ceec2216 27789WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 27790
ceec2216 27791TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 27792
ceec2216 27793TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 27794
ceec2216
RL
27795if test "$cross_compiling" = "yes"; then
27796 HOST_SUFFIX="-$host_alias"
27797 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
27798 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
27799fi
27800
dd21ced8 27801WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
27802WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
27803
27804
27805
a848cd7e 27806if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
ceec2216
RL
27807 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.r"
27808 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${WX_CURRENT}.rsrc"
27809
a848cd7e 27810 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
27811
27812 # Extract the first word of "Rez", so it can be a program name with args.
27813set dummy Rez; ac_word=$2
27814echo "$as_me:$LINENO: checking for $ac_word" >&5
27815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27816if test "${ac_cv_prog_RESCOMP+set}" = set; then
27817 echo $ECHO_N "(cached) $ECHO_C" >&6
27818else
27819 if test -n "$RESCOMP"; then
27820 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27821else
27822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27823for as_dir in $PATH
27824do
27825 IFS=$as_save_IFS
27826 test -z "$as_dir" && as_dir=.
27827 for ac_exec_ext in '' $ac_executable_extensions; do
27828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27829 ac_cv_prog_RESCOMP="Rez"
27830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27831 break 2
27832 fi
27833done
27834done
27835
27836 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27837fi
27838fi
27839RESCOMP=$ac_cv_prog_RESCOMP
27840if test -n "$RESCOMP"; then
27841 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27842echo "${ECHO_T}$RESCOMP" >&6
27843else
27844 echo "$as_me:$LINENO: result: no" >&5
27845echo "${ECHO_T}no" >&6
27846fi
27847
27848 # Extract the first word of "DeRez", so it can be a program name with args.
27849set dummy DeRez; ac_word=$2
27850echo "$as_me:$LINENO: checking for $ac_word" >&5
27851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27852if test "${ac_cv_prog_DEREZ+set}" = set; then
27853 echo $ECHO_N "(cached) $ECHO_C" >&6
27854else
27855 if test -n "$DEREZ"; then
27856 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27857else
27858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27859for as_dir in $PATH
27860do
27861 IFS=$as_save_IFS
27862 test -z "$as_dir" && as_dir=.
27863 for ac_exec_ext in '' $ac_executable_extensions; do
27864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27865 ac_cv_prog_DEREZ="DeRez"
27866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27867 break 2
27868 fi
27869done
27870done
27871
27872 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27873fi
27874fi
27875DEREZ=$ac_cv_prog_DEREZ
27876if test -n "$DEREZ"; then
27877 echo "$as_me:$LINENO: result: $DEREZ" >&5
27878echo "${ECHO_T}$DEREZ" >&6
27879else
27880 echo "$as_me:$LINENO: result: no" >&5
27881echo "${ECHO_T}no" >&6
27882fi
27883
27884 # Extract the first word of "SetFile", so it can be a program name with args.
27885set dummy SetFile; ac_word=$2
27886echo "$as_me:$LINENO: checking for $ac_word" >&5
27887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27888if test "${ac_cv_prog_SETFILE+set}" = set; then
27889 echo $ECHO_N "(cached) $ECHO_C" >&6
27890else
27891 if test -n "$SETFILE"; then
27892 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27893else
27894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27895for as_dir in $PATH
27896do
27897 IFS=$as_save_IFS
27898 test -z "$as_dir" && as_dir=.
27899 for ac_exec_ext in '' $ac_executable_extensions; do
27900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27901 ac_cv_prog_SETFILE="SetFile"
27902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27903 break 2
27904 fi
27905done
27906done
27907
27908 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27909fi
27910fi
27911SETFILE=$ac_cv_prog_SETFILE
27912if test -n "$SETFILE"; then
27913 echo "$as_me:$LINENO: result: $SETFILE" >&5
27914echo "${ECHO_T}$SETFILE" >&6
27915else
27916 echo "$as_me:$LINENO: result: no" >&5
27917echo "${ECHO_T}no" >&6
27918fi
27919
27920
27921 MACSETFILE="\$(SETFILE)"
27922
27923 if test "$wxUSE_MAC" = 1; then
27924 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27925
27926 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27927 else
27928 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27929 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27930 fi
27931else
27932 MACSETFILE="@#"
27933 MACRESWXCONFIG="#"
27934
27935 if test "$wxUSE_PM" = 1; then
27936 MACRESCOMP="emxbind -ep"
27937 else
27938 MACRESCOMP="@#"
27939 fi
27940fi
27941
27942
27943
27944echo "$as_me:$LINENO: checking for mode_t" >&5
27945echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27946if test "${ac_cv_type_mode_t+set}" = set; then
27947 echo $ECHO_N "(cached) $ECHO_C" >&6
27948else
27949 cat >conftest.$ac_ext <<_ACEOF
27950/* confdefs.h. */
27951_ACEOF
27952cat confdefs.h >>conftest.$ac_ext
27953cat >>conftest.$ac_ext <<_ACEOF
27954/* end confdefs.h. */
27955$ac_includes_default
27956int
27957main ()
27958{
27959if ((mode_t *) 0)
27960 return 0;
27961if (sizeof (mode_t))
27962 return 0;
27963 ;
27964 return 0;
27965}
27966_ACEOF
27967rm -f conftest.$ac_objext
27968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27969 (eval $ac_compile) 2>conftest.er1
a848cd7e 27970 ac_status=$?
ac1cb8d3
VS
27971 grep -v '^ *+' conftest.er1 >conftest.err
27972 rm -f conftest.er1
27973 cat conftest.err >&5
a848cd7e
SC
27974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27975 (exit $ac_status); } &&
7714864e 27976 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27978 (eval $ac_try) 2>&5
27979 ac_status=$?
27980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27981 (exit $ac_status); }; } &&
27982 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27984 (eval $ac_try) 2>&5
27985 ac_status=$?
27986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27987 (exit $ac_status); }; }; then
27988 ac_cv_type_mode_t=yes
27989else
27990 echo "$as_me: failed program was:" >&5
27991sed 's/^/| /' conftest.$ac_ext >&5
27992
27993ac_cv_type_mode_t=no
27994fi
ac1cb8d3 27995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27996fi
27997echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27998echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27999if test $ac_cv_type_mode_t = yes; then
28000 :
28001else
28002
28003cat >>confdefs.h <<_ACEOF
28004#define mode_t int
28005_ACEOF
28006
28007fi
28008
28009echo "$as_me:$LINENO: checking for off_t" >&5
28010echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28011if test "${ac_cv_type_off_t+set}" = set; then
28012 echo $ECHO_N "(cached) $ECHO_C" >&6
28013else
28014 cat >conftest.$ac_ext <<_ACEOF
28015/* confdefs.h. */
28016_ACEOF
28017cat confdefs.h >>conftest.$ac_ext
28018cat >>conftest.$ac_ext <<_ACEOF
28019/* end confdefs.h. */
28020$ac_includes_default
28021int
28022main ()
28023{
28024if ((off_t *) 0)
28025 return 0;
28026if (sizeof (off_t))
28027 return 0;
28028 ;
28029 return 0;
28030}
28031_ACEOF
28032rm -f conftest.$ac_objext
28033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28034 (eval $ac_compile) 2>conftest.er1
a848cd7e 28035 ac_status=$?
ac1cb8d3
VS
28036 grep -v '^ *+' conftest.er1 >conftest.err
28037 rm -f conftest.er1
28038 cat conftest.err >&5
a848cd7e
SC
28039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28040 (exit $ac_status); } &&
7714864e 28041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28043 (eval $ac_try) 2>&5
28044 ac_status=$?
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); }; } &&
28047 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28049 (eval $ac_try) 2>&5
28050 ac_status=$?
28051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052 (exit $ac_status); }; }; then
28053 ac_cv_type_off_t=yes
28054else
28055 echo "$as_me: failed program was:" >&5
28056sed 's/^/| /' conftest.$ac_ext >&5
28057
28058ac_cv_type_off_t=no
28059fi
ac1cb8d3 28060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28061fi
28062echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28063echo "${ECHO_T}$ac_cv_type_off_t" >&6
28064if test $ac_cv_type_off_t = yes; then
28065 :
28066else
28067
28068cat >>confdefs.h <<_ACEOF
28069#define off_t long
28070_ACEOF
28071
28072fi
28073
28074echo "$as_me:$LINENO: checking for pid_t" >&5
28075echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28076if test "${ac_cv_type_pid_t+set}" = set; then
28077 echo $ECHO_N "(cached) $ECHO_C" >&6
28078else
28079 cat >conftest.$ac_ext <<_ACEOF
28080/* confdefs.h. */
28081_ACEOF
28082cat confdefs.h >>conftest.$ac_ext
28083cat >>conftest.$ac_ext <<_ACEOF
28084/* end confdefs.h. */
28085$ac_includes_default
28086int
28087main ()
28088{
28089if ((pid_t *) 0)
28090 return 0;
28091if (sizeof (pid_t))
28092 return 0;
28093 ;
28094 return 0;
28095}
28096_ACEOF
28097rm -f conftest.$ac_objext
28098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28099 (eval $ac_compile) 2>conftest.er1
a848cd7e 28100 ac_status=$?
ac1cb8d3
VS
28101 grep -v '^ *+' conftest.er1 >conftest.err
28102 rm -f conftest.er1
28103 cat conftest.err >&5
a848cd7e
SC
28104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28105 (exit $ac_status); } &&
7714864e 28106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28108 (eval $ac_try) 2>&5
28109 ac_status=$?
28110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28111 (exit $ac_status); }; } &&
28112 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28114 (eval $ac_try) 2>&5
28115 ac_status=$?
28116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); }; }; then
28118 ac_cv_type_pid_t=yes
28119else
28120 echo "$as_me: failed program was:" >&5
28121sed 's/^/| /' conftest.$ac_ext >&5
28122
28123ac_cv_type_pid_t=no
28124fi
ac1cb8d3 28125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28126fi
28127echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28128echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28129if test $ac_cv_type_pid_t = yes; then
28130 :
28131else
28132
28133cat >>confdefs.h <<_ACEOF
28134#define pid_t int
28135_ACEOF
28136
28137fi
28138
28139echo "$as_me:$LINENO: checking for size_t" >&5
28140echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28141if test "${ac_cv_type_size_t+set}" = set; then
28142 echo $ECHO_N "(cached) $ECHO_C" >&6
28143else
28144 cat >conftest.$ac_ext <<_ACEOF
28145/* confdefs.h. */
28146_ACEOF
28147cat confdefs.h >>conftest.$ac_ext
28148cat >>conftest.$ac_ext <<_ACEOF
28149/* end confdefs.h. */
28150$ac_includes_default
28151int
28152main ()
28153{
28154if ((size_t *) 0)
28155 return 0;
28156if (sizeof (size_t))
28157 return 0;
28158 ;
28159 return 0;
28160}
28161_ACEOF
28162rm -f conftest.$ac_objext
28163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28164 (eval $ac_compile) 2>conftest.er1
a848cd7e 28165 ac_status=$?
ac1cb8d3
VS
28166 grep -v '^ *+' conftest.er1 >conftest.err
28167 rm -f conftest.er1
28168 cat conftest.err >&5
a848cd7e
SC
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170 (exit $ac_status); } &&
7714864e 28171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28173 (eval $ac_try) 2>&5
28174 ac_status=$?
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); }; } &&
28177 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28179 (eval $ac_try) 2>&5
28180 ac_status=$?
28181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28182 (exit $ac_status); }; }; then
28183 ac_cv_type_size_t=yes
28184else
28185 echo "$as_me: failed program was:" >&5
28186sed 's/^/| /' conftest.$ac_ext >&5
28187
28188ac_cv_type_size_t=no
28189fi
ac1cb8d3 28190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28191fi
28192echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28193echo "${ECHO_T}$ac_cv_type_size_t" >&6
28194if test $ac_cv_type_size_t = yes; then
28195 :
28196else
28197
28198cat >>confdefs.h <<_ACEOF
28199#define size_t unsigned
28200_ACEOF
28201
28202fi
28203
28204echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28205echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28206if test "${ac_cv_type_uid_t+set}" = set; then
28207 echo $ECHO_N "(cached) $ECHO_C" >&6
28208else
28209 cat >conftest.$ac_ext <<_ACEOF
28210/* confdefs.h. */
28211_ACEOF
28212cat confdefs.h >>conftest.$ac_ext
28213cat >>conftest.$ac_ext <<_ACEOF
28214/* end confdefs.h. */
28215#include <sys/types.h>
28216
28217_ACEOF
28218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28219 $EGREP "uid_t" >/dev/null 2>&1; then
28220 ac_cv_type_uid_t=yes
28221else
28222 ac_cv_type_uid_t=no
28223fi
28224rm -f conftest*
28225
28226fi
28227echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28228echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28229if test $ac_cv_type_uid_t = no; then
28230
28231cat >>confdefs.h <<\_ACEOF
28232#define uid_t int
28233_ACEOF
28234
28235
28236cat >>confdefs.h <<\_ACEOF
28237#define gid_t int
28238_ACEOF
28239
28240fi
28241
28242
28243
28244
28245ac_ext=cc
28246ac_cpp='$CXXCPP $CPPFLAGS'
28247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28250
28251echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28252echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28253if test "${wx_cv_size_t_is_uint+set}" = set; then
28254 echo $ECHO_N "(cached) $ECHO_C" >&6
28255else
28256
28257 cat >conftest.$ac_ext <<_ACEOF
28258/* confdefs.h. */
28259_ACEOF
28260cat confdefs.h >>conftest.$ac_ext
28261cat >>conftest.$ac_ext <<_ACEOF
28262/* end confdefs.h. */
28263#include <stddef.h>
28264int
28265main ()
28266{
28267
28268 return 0; }
28269
28270 struct Foo { void foo(size_t); void foo(unsigned int); };
28271
28272 int bar() {
28273
28274 ;
28275 return 0;
28276}
28277_ACEOF
28278rm -f conftest.$ac_objext
28279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28280 (eval $ac_compile) 2>conftest.er1
a848cd7e 28281 ac_status=$?
ac1cb8d3
VS
28282 grep -v '^ *+' conftest.er1 >conftest.err
28283 rm -f conftest.er1
28284 cat conftest.err >&5
a848cd7e
SC
28285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); } &&
7714864e 28287 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28289 (eval $ac_try) 2>&5
28290 ac_status=$?
28291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28292 (exit $ac_status); }; } &&
28293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28295 (eval $ac_try) 2>&5
28296 ac_status=$?
28297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28298 (exit $ac_status); }; }; then
28299 wx_cv_size_t_is_uint=no
28300else
28301 echo "$as_me: failed program was:" >&5
28302sed 's/^/| /' conftest.$ac_ext >&5
28303
28304wx_cv_size_t_is_uint=yes
28305
28306fi
ac1cb8d3 28307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28308
28309
28310fi
28311echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28312echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28313
28314if test "$wx_cv_size_t_is_uint" = "yes"; then
28315 cat >>confdefs.h <<\_ACEOF
28316#define wxSIZE_T_IS_UINT 1
28317_ACEOF
28318
28319else
28320 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28321echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28322if test "${wx_cv_size_t_is_ulong+set}" = set; then
28323 echo $ECHO_N "(cached) $ECHO_C" >&6
28324else
28325 cat >conftest.$ac_ext <<_ACEOF
28326/* confdefs.h. */
28327_ACEOF
28328cat confdefs.h >>conftest.$ac_ext
28329cat >>conftest.$ac_ext <<_ACEOF
28330/* end confdefs.h. */
28331#include <stddef.h>
28332int
28333main ()
28334{
28335
28336 return 0; }
28337
28338 struct Foo { void foo(size_t); void foo(unsigned long); };
28339
28340 int bar() {
28341
28342 ;
28343 return 0;
28344}
28345_ACEOF
28346rm -f conftest.$ac_objext
28347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28348 (eval $ac_compile) 2>conftest.er1
a848cd7e 28349 ac_status=$?
ac1cb8d3
VS
28350 grep -v '^ *+' conftest.er1 >conftest.err
28351 rm -f conftest.er1
28352 cat conftest.err >&5
a848cd7e
SC
28353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354 (exit $ac_status); } &&
7714864e 28355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28357 (eval $ac_try) 2>&5
28358 ac_status=$?
28359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); }; } &&
28361 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28363 (eval $ac_try) 2>&5
28364 ac_status=$?
28365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28366 (exit $ac_status); }; }; then
28367 wx_cv_size_t_is_ulong=no
28368else
28369 echo "$as_me: failed program was:" >&5
28370sed 's/^/| /' conftest.$ac_ext >&5
28371
28372wx_cv_size_t_is_ulong=yes
28373
28374fi
ac1cb8d3 28375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28376
28377fi
28378echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28379echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28380
28381 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28382 cat >>confdefs.h <<\_ACEOF
28383#define wxSIZE_T_IS_ULONG 1
28384_ACEOF
28385
28386 fi
28387fi
28388
28389ac_ext=c
28390ac_cpp='$CPP $CPPFLAGS'
28391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28393ac_compiler_gnu=$ac_cv_c_compiler_gnu
28394
28395
28396
28397echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28398echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28399if test "${wx_cv_struct_pw_gecos+set}" = set; then
28400 echo $ECHO_N "(cached) $ECHO_C" >&6
28401else
28402
28403 cat >conftest.$ac_ext <<_ACEOF
28404/* confdefs.h. */
28405_ACEOF
28406cat confdefs.h >>conftest.$ac_ext
28407cat >>conftest.$ac_ext <<_ACEOF
28408/* end confdefs.h. */
28409#include <pwd.h>
28410int
28411main ()
28412{
28413
28414 char *p;
28415 struct passwd *pw;
28416 p = pw->pw_gecos;
28417
28418 ;
28419 return 0;
28420}
28421_ACEOF
28422rm -f conftest.$ac_objext
28423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28424 (eval $ac_compile) 2>conftest.er1
a848cd7e 28425 ac_status=$?
ac1cb8d3
VS
28426 grep -v '^ *+' conftest.er1 >conftest.err
28427 rm -f conftest.er1
28428 cat conftest.err >&5
a848cd7e
SC
28429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28430 (exit $ac_status); } &&
7714864e 28431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28433 (eval $ac_try) 2>&5
28434 ac_status=$?
28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436 (exit $ac_status); }; } &&
28437 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28439 (eval $ac_try) 2>&5
28440 ac_status=$?
28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); }; }; then
28443
28444 wx_cv_struct_pw_gecos=yes
28445
28446else
28447 echo "$as_me: failed program was:" >&5
28448sed 's/^/| /' conftest.$ac_ext >&5
28449
28450
28451 wx_cv_struct_pw_gecos=no
28452
28453
28454fi
ac1cb8d3 28455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28456
28457
28458fi
28459echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28460echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
28461
28462if test "$wx_cv_struct_pw_gecos" = "yes"; then
28463 cat >>confdefs.h <<\_ACEOF
28464#define HAVE_PW_GECOS 1
28465_ACEOF
28466
28467fi
28468
28469
28470if test "$wx_cv_sizeof_wchar_t" != "0"; then
28471 cat >>confdefs.h <<\_ACEOF
28472#define wxUSE_WCHAR_T 1
28473_ACEOF
28474
28475
28476 WCSLEN_FOUND=0
28477 WCHAR_LINK=
28478
28479for ac_func in wcslen
28480do
28481as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28482echo "$as_me:$LINENO: checking for $ac_func" >&5
28483echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28484if eval "test \"\${$as_ac_var+set}\" = set"; then
28485 echo $ECHO_N "(cached) $ECHO_C" >&6
28486else
28487 cat >conftest.$ac_ext <<_ACEOF
28488/* confdefs.h. */
28489_ACEOF
28490cat confdefs.h >>conftest.$ac_ext
28491cat >>conftest.$ac_ext <<_ACEOF
28492/* end confdefs.h. */
ac1cb8d3
VS
28493/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28495#define $ac_func innocuous_$ac_func
28496
a848cd7e
SC
28497/* System header to define __stub macros and hopefully few prototypes,
28498 which can conflict with char $ac_func (); below.
28499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28500 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28501
a848cd7e
SC
28502#ifdef __STDC__
28503# include <limits.h>
28504#else
28505# include <assert.h>
28506#endif
ac1cb8d3
VS
28507
28508#undef $ac_func
28509
a848cd7e
SC
28510/* Override any gcc2 internal prototype to avoid an error. */
28511#ifdef __cplusplus
28512extern "C"
28513{
28514#endif
28515/* We use char because int might match the return type of a gcc2
28516 builtin and then its argument prototype would still apply. */
28517char $ac_func ();
28518/* The GNU C library defines this for functions which it implements
28519 to always fail with ENOSYS. Some functions are actually named
28520 something starting with __ and the normal name is an alias. */
28521#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28522choke me
28523#else
28524char (*f) () = $ac_func;
28525#endif
28526#ifdef __cplusplus
28527}
28528#endif
28529
28530int
28531main ()
28532{
28533return f != $ac_func;
28534 ;
28535 return 0;
28536}
28537_ACEOF
28538rm -f conftest.$ac_objext conftest$ac_exeext
28539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28540 (eval $ac_link) 2>conftest.er1
a848cd7e 28541 ac_status=$?
ac1cb8d3
VS
28542 grep -v '^ *+' conftest.er1 >conftest.err
28543 rm -f conftest.er1
28544 cat conftest.err >&5
a848cd7e
SC
28545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546 (exit $ac_status); } &&
7714864e 28547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28549 (eval $ac_try) 2>&5
28550 ac_status=$?
28551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552 (exit $ac_status); }; } &&
28553 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28555 (eval $ac_try) 2>&5
28556 ac_status=$?
28557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28558 (exit $ac_status); }; }; then
28559 eval "$as_ac_var=yes"
28560else
28561 echo "$as_me: failed program was:" >&5
28562sed 's/^/| /' conftest.$ac_ext >&5
28563
28564eval "$as_ac_var=no"
28565fi
ac1cb8d3
VS
28566rm -f conftest.err conftest.$ac_objext \
28567 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28568fi
28569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28570echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28571if test `eval echo '${'$as_ac_var'}'` = yes; then
28572 cat >>confdefs.h <<_ACEOF
28573#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28574_ACEOF
28575 WCSLEN_FOUND=1
28576fi
28577done
28578
28579
28580 if test "$WCSLEN_FOUND" = 0; then
28581 if test "$TOOLKIT" = "MSW"; then
28582 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28583echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28584if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28585 echo $ECHO_N "(cached) $ECHO_C" >&6
28586else
28587 ac_check_lib_save_LIBS=$LIBS
28588LIBS="-lmsvcrt $LIBS"
28589cat >conftest.$ac_ext <<_ACEOF
28590/* confdefs.h. */
28591_ACEOF
28592cat confdefs.h >>conftest.$ac_ext
28593cat >>conftest.$ac_ext <<_ACEOF
28594/* end confdefs.h. */
28595
28596/* Override any gcc2 internal prototype to avoid an error. */
28597#ifdef __cplusplus
28598extern "C"
28599#endif
28600/* We use char because int might match the return type of a gcc2
28601 builtin and then its argument prototype would still apply. */
28602char wcslen ();
28603int
28604main ()
28605{
28606wcslen ();
28607 ;
28608 return 0;
28609}
28610_ACEOF
28611rm -f conftest.$ac_objext conftest$ac_exeext
28612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28613 (eval $ac_link) 2>conftest.er1
a848cd7e 28614 ac_status=$?
ac1cb8d3
VS
28615 grep -v '^ *+' conftest.er1 >conftest.err
28616 rm -f conftest.er1
28617 cat conftest.err >&5
a848cd7e
SC
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); } &&
7714864e 28620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622 (eval $ac_try) 2>&5
28623 ac_status=$?
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; } &&
28626 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28628 (eval $ac_try) 2>&5
28629 ac_status=$?
28630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28631 (exit $ac_status); }; }; then
28632 ac_cv_lib_msvcrt_wcslen=yes
28633else
28634 echo "$as_me: failed program was:" >&5
28635sed 's/^/| /' conftest.$ac_ext >&5
28636
28637ac_cv_lib_msvcrt_wcslen=no
28638fi
ac1cb8d3
VS
28639rm -f conftest.err conftest.$ac_objext \
28640 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28641LIBS=$ac_check_lib_save_LIBS
28642fi
28643echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28644echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28645if test $ac_cv_lib_msvcrt_wcslen = yes; then
28646 WCHAR_OK=1
28647fi
28648
28649 else
28650 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28651echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28652if test "${ac_cv_lib_w_wcslen+set}" = set; then
28653 echo $ECHO_N "(cached) $ECHO_C" >&6
28654else
28655 ac_check_lib_save_LIBS=$LIBS
28656LIBS="-lw $LIBS"
28657cat >conftest.$ac_ext <<_ACEOF
28658/* confdefs.h. */
28659_ACEOF
28660cat confdefs.h >>conftest.$ac_ext
28661cat >>conftest.$ac_ext <<_ACEOF
28662/* end confdefs.h. */
28663
28664/* Override any gcc2 internal prototype to avoid an error. */
28665#ifdef __cplusplus
28666extern "C"
28667#endif
28668/* We use char because int might match the return type of a gcc2
28669 builtin and then its argument prototype would still apply. */
28670char wcslen ();
28671int
28672main ()
28673{
28674wcslen ();
28675 ;
28676 return 0;
28677}
28678_ACEOF
28679rm -f conftest.$ac_objext conftest$ac_exeext
28680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28681 (eval $ac_link) 2>conftest.er1
a848cd7e 28682 ac_status=$?
ac1cb8d3
VS
28683 grep -v '^ *+' conftest.er1 >conftest.err
28684 rm -f conftest.er1
28685 cat conftest.err >&5
a848cd7e
SC
28686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28687 (exit $ac_status); } &&
7714864e 28688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28690 (eval $ac_try) 2>&5
28691 ac_status=$?
28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28693 (exit $ac_status); }; } &&
28694 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28696 (eval $ac_try) 2>&5
28697 ac_status=$?
28698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699 (exit $ac_status); }; }; then
28700 ac_cv_lib_w_wcslen=yes
28701else
28702 echo "$as_me: failed program was:" >&5
28703sed 's/^/| /' conftest.$ac_ext >&5
28704
28705ac_cv_lib_w_wcslen=no
28706fi
ac1cb8d3
VS
28707rm -f conftest.err conftest.$ac_objext \
28708 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28709LIBS=$ac_check_lib_save_LIBS
28710fi
28711echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28712echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28713if test $ac_cv_lib_w_wcslen = yes; then
28714
28715 WCHAR_LINK=" -lw"
28716 WCSLEN_FOUND=1
28717
28718fi
28719
28720 fi
28721 fi
28722
28723 if test "$WCSLEN_FOUND" = 1; then
28724 cat >>confdefs.h <<\_ACEOF
28725#define HAVE_WCSLEN 1
28726_ACEOF
28727
28728 fi
28729
473276a9
VS
28730 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
28731 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
28732 fi
28733
a848cd7e
SC
28734
28735for ac_func in wcsrtombs
28736do
28737as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28738echo "$as_me:$LINENO: checking for $ac_func" >&5
28739echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28740if eval "test \"\${$as_ac_var+set}\" = set"; then
28741 echo $ECHO_N "(cached) $ECHO_C" >&6
28742else
28743 cat >conftest.$ac_ext <<_ACEOF
28744/* confdefs.h. */
28745_ACEOF
28746cat confdefs.h >>conftest.$ac_ext
28747cat >>conftest.$ac_ext <<_ACEOF
28748/* end confdefs.h. */
ac1cb8d3
VS
28749/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28751#define $ac_func innocuous_$ac_func
28752
a848cd7e
SC
28753/* System header to define __stub macros and hopefully few prototypes,
28754 which can conflict with char $ac_func (); below.
28755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28756 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28757
a848cd7e
SC
28758#ifdef __STDC__
28759# include <limits.h>
28760#else
28761# include <assert.h>
28762#endif
ac1cb8d3
VS
28763
28764#undef $ac_func
28765
a848cd7e
SC
28766/* Override any gcc2 internal prototype to avoid an error. */
28767#ifdef __cplusplus
28768extern "C"
28769{
28770#endif
28771/* We use char because int might match the return type of a gcc2
28772 builtin and then its argument prototype would still apply. */
28773char $ac_func ();
28774/* The GNU C library defines this for functions which it implements
28775 to always fail with ENOSYS. Some functions are actually named
28776 something starting with __ and the normal name is an alias. */
28777#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28778choke me
28779#else
28780char (*f) () = $ac_func;
28781#endif
28782#ifdef __cplusplus
28783}
28784#endif
28785
28786int
28787main ()
28788{
28789return f != $ac_func;
28790 ;
28791 return 0;
28792}
28793_ACEOF
28794rm -f conftest.$ac_objext conftest$ac_exeext
28795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28796 (eval $ac_link) 2>conftest.er1
a848cd7e 28797 ac_status=$?
ac1cb8d3
VS
28798 grep -v '^ *+' conftest.er1 >conftest.err
28799 rm -f conftest.er1
28800 cat conftest.err >&5
a848cd7e
SC
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); } &&
7714864e 28803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805 (eval $ac_try) 2>&5
28806 ac_status=$?
28807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 (exit $ac_status); }; } &&
28809 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28811 (eval $ac_try) 2>&5
28812 ac_status=$?
28813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814 (exit $ac_status); }; }; then
28815 eval "$as_ac_var=yes"
28816else
28817 echo "$as_me: failed program was:" >&5
28818sed 's/^/| /' conftest.$ac_ext >&5
28819
28820eval "$as_ac_var=no"
28821fi
ac1cb8d3
VS
28822rm -f conftest.err conftest.$ac_objext \
28823 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28824fi
28825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28826echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28827if test `eval echo '${'$as_ac_var'}'` = yes; then
28828 cat >>confdefs.h <<_ACEOF
28829#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28830_ACEOF
28831
28832fi
28833done
28834
28835else
28836 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28837echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
28838fi
28839
28840
28841
28842ac_ext=cc
28843ac_cpp='$CXXCPP $CPPFLAGS'
28844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28847
28848
28849
28850for ac_func in vsnprintf
28851do
28852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28853echo "$as_me:$LINENO: checking for $ac_func" >&5
28854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28855if eval "test \"\${$as_ac_var+set}\" = set"; then
28856 echo $ECHO_N "(cached) $ECHO_C" >&6
28857else
28858 cat >conftest.$ac_ext <<_ACEOF
28859/* confdefs.h. */
28860_ACEOF
28861cat confdefs.h >>conftest.$ac_ext
28862cat >>conftest.$ac_ext <<_ACEOF
28863/* end confdefs.h. */
ac1cb8d3
VS
28864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28866#define $ac_func innocuous_$ac_func
28867
a848cd7e
SC
28868/* System header to define __stub macros and hopefully few prototypes,
28869 which can conflict with char $ac_func (); below.
28870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28871 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28872
a848cd7e
SC
28873#ifdef __STDC__
28874# include <limits.h>
28875#else
28876# include <assert.h>
28877#endif
ac1cb8d3
VS
28878
28879#undef $ac_func
28880
a848cd7e
SC
28881/* Override any gcc2 internal prototype to avoid an error. */
28882#ifdef __cplusplus
28883extern "C"
28884{
28885#endif
28886/* We use char because int might match the return type of a gcc2
28887 builtin and then its argument prototype would still apply. */
28888char $ac_func ();
28889/* The GNU C library defines this for functions which it implements
28890 to always fail with ENOSYS. Some functions are actually named
28891 something starting with __ and the normal name is an alias. */
28892#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28893choke me
28894#else
28895char (*f) () = $ac_func;
28896#endif
28897#ifdef __cplusplus
28898}
28899#endif
28900
28901int
28902main ()
28903{
28904return f != $ac_func;
28905 ;
28906 return 0;
28907}
28908_ACEOF
28909rm -f conftest.$ac_objext conftest$ac_exeext
28910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28911 (eval $ac_link) 2>conftest.er1
a848cd7e 28912 ac_status=$?
ac1cb8d3
VS
28913 grep -v '^ *+' conftest.er1 >conftest.err
28914 rm -f conftest.er1
28915 cat conftest.err >&5
a848cd7e
SC
28916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28917 (exit $ac_status); } &&
7714864e 28918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28920 (eval $ac_try) 2>&5
28921 ac_status=$?
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); }; } &&
28924 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28926 (eval $ac_try) 2>&5
28927 ac_status=$?
28928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929 (exit $ac_status); }; }; then
28930 eval "$as_ac_var=yes"
28931else
28932 echo "$as_me: failed program was:" >&5
28933sed 's/^/| /' conftest.$ac_ext >&5
28934
28935eval "$as_ac_var=no"
28936fi
ac1cb8d3
VS
28937rm -f conftest.err conftest.$ac_objext \
28938 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28939fi
28940echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28941echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28942if test `eval echo '${'$as_ac_var'}'` = yes; then
28943 cat >>confdefs.h <<_ACEOF
28944#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28945_ACEOF
28946
28947fi
28948done
28949
28950
28951if test "$ac_cv_func_vsnprintf" = "yes"; then
28952 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28953echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28954if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28955 echo $ECHO_N "(cached) $ECHO_C" >&6
28956else
28957
28958 cat >conftest.$ac_ext <<_ACEOF
28959/* confdefs.h. */
28960_ACEOF
28961cat confdefs.h >>conftest.$ac_ext
28962cat >>conftest.$ac_ext <<_ACEOF
28963/* end confdefs.h. */
28964
28965 #include <stdio.h>
28966 #include <stdarg.h>
28967
28968int
28969main ()
28970{
28971
28972 char *buf;
28973 va_list ap;
28974 vsnprintf(buf, 10u, "%s", ap);
28975
28976 ;
28977 return 0;
28978}
28979_ACEOF
28980rm -f conftest.$ac_objext
28981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28982 (eval $ac_compile) 2>conftest.er1
a848cd7e 28983 ac_status=$?
ac1cb8d3
VS
28984 grep -v '^ *+' conftest.er1 >conftest.err
28985 rm -f conftest.er1
28986 cat conftest.err >&5
a848cd7e
SC
28987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28988 (exit $ac_status); } &&
7714864e 28989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28991 (eval $ac_try) 2>&5
28992 ac_status=$?
28993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994 (exit $ac_status); }; } &&
28995 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28997 (eval $ac_try) 2>&5
28998 ac_status=$?
28999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29000 (exit $ac_status); }; }; then
29001 wx_cv_func_vsnprintf_decl=yes
29002else
29003 echo "$as_me: failed program was:" >&5
29004sed 's/^/| /' conftest.$ac_ext >&5
29005
29006wx_cv_func_vsnprintf_decl=no
29007
29008fi
ac1cb8d3 29009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29010
29011
29012fi
29013echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29014echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29015
29016 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29017 cat >>confdefs.h <<\_ACEOF
29018#define HAVE_VSNPRINTF_DECL 1
29019_ACEOF
29020
29021 fi
29022fi
29023
29024if test "$wxUSE_UNICODE" = yes; then
29025
29026
29027
fbe47c7b
VS
29028
29029
29030
29031for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29032do
29033as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29034echo "$as_me:$LINENO: checking for $ac_func" >&5
29035echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29036if eval "test \"\${$as_ac_var+set}\" = set"; then
29037 echo $ECHO_N "(cached) $ECHO_C" >&6
29038else
29039 cat >conftest.$ac_ext <<_ACEOF
29040/* confdefs.h. */
29041_ACEOF
29042cat confdefs.h >>conftest.$ac_ext
29043cat >>conftest.$ac_ext <<_ACEOF
29044/* end confdefs.h. */
ac1cb8d3
VS
29045/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29047#define $ac_func innocuous_$ac_func
29048
a848cd7e
SC
29049/* System header to define __stub macros and hopefully few prototypes,
29050 which can conflict with char $ac_func (); below.
29051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29052 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29053
a848cd7e
SC
29054#ifdef __STDC__
29055# include <limits.h>
29056#else
29057# include <assert.h>
29058#endif
ac1cb8d3
VS
29059
29060#undef $ac_func
29061
a848cd7e
SC
29062/* Override any gcc2 internal prototype to avoid an error. */
29063#ifdef __cplusplus
29064extern "C"
29065{
29066#endif
29067/* We use char because int might match the return type of a gcc2
29068 builtin and then its argument prototype would still apply. */
29069char $ac_func ();
29070/* The GNU C library defines this for functions which it implements
29071 to always fail with ENOSYS. Some functions are actually named
29072 something starting with __ and the normal name is an alias. */
29073#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29074choke me
29075#else
29076char (*f) () = $ac_func;
29077#endif
29078#ifdef __cplusplus
29079}
29080#endif
29081
29082int
29083main ()
29084{
29085return f != $ac_func;
29086 ;
29087 return 0;
29088}
29089_ACEOF
29090rm -f conftest.$ac_objext conftest$ac_exeext
29091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29092 (eval $ac_link) 2>conftest.er1
a848cd7e 29093 ac_status=$?
ac1cb8d3
VS
29094 grep -v '^ *+' conftest.er1 >conftest.err
29095 rm -f conftest.er1
29096 cat conftest.err >&5
a848cd7e
SC
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); } &&
7714864e 29099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101 (eval $ac_try) 2>&5
29102 ac_status=$?
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; } &&
29105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107 (eval $ac_try) 2>&5
29108 ac_status=$?
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; }; then
29111 eval "$as_ac_var=yes"
29112else
29113 echo "$as_me: failed program was:" >&5
29114sed 's/^/| /' conftest.$ac_ext >&5
29115
29116eval "$as_ac_var=no"
29117fi
ac1cb8d3
VS
29118rm -f conftest.err conftest.$ac_objext \
29119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29120fi
29121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29123if test `eval echo '${'$as_ac_var'}'` = yes; then
29124 cat >>confdefs.h <<_ACEOF
29125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29126_ACEOF
29127
29128fi
29129done
29130
29131
29132 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29133echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29134 cat >conftest.$ac_ext <<_ACEOF
29135/* confdefs.h. */
29136_ACEOF
29137cat confdefs.h >>conftest.$ac_ext
29138cat >>conftest.$ac_ext <<_ACEOF
29139/* end confdefs.h. */
29140#include <wchar.h>
29141int
29142main ()
29143{
29144&_vsnwprintf;
29145 ;
29146 return 0;
29147}
29148_ACEOF
29149rm -f conftest.$ac_objext
29150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29151 (eval $ac_compile) 2>conftest.er1
a848cd7e 29152 ac_status=$?
ac1cb8d3
VS
29153 grep -v '^ *+' conftest.er1 >conftest.err
29154 rm -f conftest.er1
29155 cat conftest.err >&5
a848cd7e
SC
29156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29157 (exit $ac_status); } &&
7714864e 29158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29160 (eval $ac_try) 2>&5
29161 ac_status=$?
29162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29163 (exit $ac_status); }; } &&
29164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29166 (eval $ac_try) 2>&5
29167 ac_status=$?
29168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); }; }; then
29170 echo "$as_me:$LINENO: result: yes" >&5
29171echo "${ECHO_T}yes" >&6
29172 cat >>confdefs.h <<\_ACEOF
29173#define HAVE__VSNWPRINTF 1
29174_ACEOF
29175
29176else
29177 echo "$as_me: failed program was:" >&5
29178sed 's/^/| /' conftest.$ac_ext >&5
29179
29180echo "$as_me:$LINENO: result: no" >&5
29181echo "${ECHO_T}no" >&6
29182fi
ac1cb8d3 29183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29184fi
29185
29186ac_ext=c
29187ac_cpp='$CPP $CPPFLAGS'
29188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29190ac_compiler_gnu=$ac_cv_c_compiler_gnu
29191
29192
29193
29194
29195if test "$TOOLKIT" != "MSW"; then
29196
29197
29198
29199
29200ac_ext=cc
29201ac_cpp='$CXXCPP $CPPFLAGS'
29202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29205
29206
29207
29208
29209# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29210if test "${with_libiconv_prefix+set}" = set; then
29211 withval="$with_libiconv_prefix"
29212
29213 for dir in `echo "$withval" | tr : ' '`; do
29214 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29215 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29216 done
29217
29218fi;
29219
29220 echo "$as_me:$LINENO: checking for iconv" >&5
29221echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29222if test "${am_cv_func_iconv+set}" = set; then
29223 echo $ECHO_N "(cached) $ECHO_C" >&6
29224else
29225
29226 am_cv_func_iconv="no, consider installing GNU libiconv"
29227 am_cv_lib_iconv=no
29228 cat >conftest.$ac_ext <<_ACEOF
29229/* confdefs.h. */
29230_ACEOF
29231cat confdefs.h >>conftest.$ac_ext
29232cat >>conftest.$ac_ext <<_ACEOF
29233/* end confdefs.h. */
29234#include <stdlib.h>
29235#include <iconv.h>
29236int
29237main ()
29238{
29239iconv_t cd = iconv_open("","");
29240 iconv(cd,NULL,NULL,NULL,NULL);
29241 iconv_close(cd);
29242 ;
29243 return 0;
29244}
29245_ACEOF
29246rm -f conftest.$ac_objext conftest$ac_exeext
29247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29248 (eval $ac_link) 2>conftest.er1
a848cd7e 29249 ac_status=$?
ac1cb8d3
VS
29250 grep -v '^ *+' conftest.er1 >conftest.err
29251 rm -f conftest.er1
29252 cat conftest.err >&5
a848cd7e
SC
29253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254 (exit $ac_status); } &&
7714864e 29255 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29257 (eval $ac_try) 2>&5
29258 ac_status=$?
29259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260 (exit $ac_status); }; } &&
29261 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29263 (eval $ac_try) 2>&5
29264 ac_status=$?
29265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29266 (exit $ac_status); }; }; then
29267 am_cv_func_iconv=yes
29268else
29269 echo "$as_me: failed program was:" >&5
29270sed 's/^/| /' conftest.$ac_ext >&5
29271
29272fi
ac1cb8d3
VS
29273rm -f conftest.err conftest.$ac_objext \
29274 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29275 if test "$am_cv_func_iconv" != yes; then
29276 am_save_LIBS="$LIBS"
29277 LIBS="$LIBS -liconv"
29278 cat >conftest.$ac_ext <<_ACEOF
29279/* confdefs.h. */
29280_ACEOF
29281cat confdefs.h >>conftest.$ac_ext
29282cat >>conftest.$ac_ext <<_ACEOF
29283/* end confdefs.h. */
29284#include <stdlib.h>
29285#include <iconv.h>
29286int
29287main ()
29288{
29289iconv_t cd = iconv_open("","");
29290 iconv(cd,NULL,NULL,NULL,NULL);
29291 iconv_close(cd);
29292 ;
29293 return 0;
29294}
29295_ACEOF
29296rm -f conftest.$ac_objext conftest$ac_exeext
29297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29298 (eval $ac_link) 2>conftest.er1
a848cd7e 29299 ac_status=$?
ac1cb8d3
VS
29300 grep -v '^ *+' conftest.er1 >conftest.err
29301 rm -f conftest.er1
29302 cat conftest.err >&5
a848cd7e
SC
29303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304 (exit $ac_status); } &&
7714864e 29305 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29307 (eval $ac_try) 2>&5
29308 ac_status=$?
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); }; } &&
29311 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29313 (eval $ac_try) 2>&5
29314 ac_status=$?
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); }; }; then
29317 am_cv_lib_iconv=yes
29318 am_cv_func_iconv=yes
29319else
29320 echo "$as_me: failed program was:" >&5
29321sed 's/^/| /' conftest.$ac_ext >&5
29322
29323fi
ac1cb8d3
VS
29324rm -f conftest.err conftest.$ac_objext \
29325 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29326 LIBS="$am_save_LIBS"
29327 fi
29328
29329fi
29330echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29331echo "${ECHO_T}$am_cv_func_iconv" >&6
29332 if test "$am_cv_func_iconv" = yes; then
29333
29334cat >>confdefs.h <<\_ACEOF
29335#define HAVE_ICONV 1
29336_ACEOF
29337
29338 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29339echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29340if test "${wx_cv_func_iconv_const+set}" = set; then
29341 echo $ECHO_N "(cached) $ECHO_C" >&6
29342else
29343 cat >conftest.$ac_ext <<_ACEOF
29344/* confdefs.h. */
29345_ACEOF
29346cat confdefs.h >>conftest.$ac_ext
29347cat >>conftest.$ac_ext <<_ACEOF
29348/* end confdefs.h. */
29349
29350#include <stdlib.h>
29351#include <iconv.h>
29352extern
29353#ifdef __cplusplus
29354"C"
29355#endif
29356#if defined(__STDC__) || defined(__cplusplus)
29357size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29358#else
29359size_t iconv();
29360#endif
29361
29362int
29363main ()
29364{
29365
29366 ;
29367 return 0;
29368}
29369_ACEOF
29370rm -f conftest.$ac_objext
29371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29372 (eval $ac_compile) 2>conftest.er1
a848cd7e 29373 ac_status=$?
ac1cb8d3
VS
29374 grep -v '^ *+' conftest.er1 >conftest.err
29375 rm -f conftest.er1
29376 cat conftest.err >&5
a848cd7e
SC
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); } &&
7714864e 29379 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29381 (eval $ac_try) 2>&5
29382 ac_status=$?
29383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29384 (exit $ac_status); }; } &&
29385 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29387 (eval $ac_try) 2>&5
29388 ac_status=$?
29389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29390 (exit $ac_status); }; }; then
29391 wx_cv_func_iconv_const="no"
29392else
29393 echo "$as_me: failed program was:" >&5
29394sed 's/^/| /' conftest.$ac_ext >&5
29395
29396wx_cv_func_iconv_const="yes"
29397
29398fi
ac1cb8d3 29399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29400
29401fi
29402echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29403echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
29404
29405 iconv_const=
29406 if test "x$wx_cv_func_iconv_const" = "xyes"; then
29407 iconv_const="const"
29408 fi
29409
29410
29411cat >>confdefs.h <<_ACEOF
29412#define ICONV_CONST $iconv_const
29413_ACEOF
29414
29415 fi
29416 LIBICONV=
29417 if test "$am_cv_lib_iconv" = yes; then
29418 LIBICONV="-liconv"
29419 fi
29420
29421
29422LIBS="$LIBICONV $LIBS"
29423ac_ext=c
29424ac_cpp='$CPP $CPPFLAGS'
29425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29427ac_compiler_gnu=$ac_cv_c_compiler_gnu
29428
29429
29430if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
29431
29432for ac_func in sigaction
29433do
29434as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29435echo "$as_me:$LINENO: checking for $ac_func" >&5
29436echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29437if eval "test \"\${$as_ac_var+set}\" = set"; then
29438 echo $ECHO_N "(cached) $ECHO_C" >&6
29439else
29440 cat >conftest.$ac_ext <<_ACEOF
29441/* confdefs.h. */
29442_ACEOF
29443cat confdefs.h >>conftest.$ac_ext
29444cat >>conftest.$ac_ext <<_ACEOF
29445/* end confdefs.h. */
ac1cb8d3
VS
29446/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29447 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29448#define $ac_func innocuous_$ac_func
29449
a848cd7e
SC
29450/* System header to define __stub macros and hopefully few prototypes,
29451 which can conflict with char $ac_func (); below.
29452 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29453 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29454
a848cd7e
SC
29455#ifdef __STDC__
29456# include <limits.h>
29457#else
29458# include <assert.h>
29459#endif
ac1cb8d3
VS
29460
29461#undef $ac_func
29462
a848cd7e
SC
29463/* Override any gcc2 internal prototype to avoid an error. */
29464#ifdef __cplusplus
29465extern "C"
29466{
29467#endif
29468/* We use char because int might match the return type of a gcc2
29469 builtin and then its argument prototype would still apply. */
29470char $ac_func ();
29471/* The GNU C library defines this for functions which it implements
29472 to always fail with ENOSYS. Some functions are actually named
29473 something starting with __ and the normal name is an alias. */
29474#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29475choke me
29476#else
29477char (*f) () = $ac_func;
29478#endif
29479#ifdef __cplusplus
29480}
29481#endif
29482
29483int
29484main ()
29485{
29486return f != $ac_func;
29487 ;
29488 return 0;
29489}
29490_ACEOF
29491rm -f conftest.$ac_objext conftest$ac_exeext
29492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29493 (eval $ac_link) 2>conftest.er1
a848cd7e 29494 ac_status=$?
ac1cb8d3
VS
29495 grep -v '^ *+' conftest.er1 >conftest.err
29496 rm -f conftest.er1
29497 cat conftest.err >&5
a848cd7e
SC
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); } &&
7714864e 29500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29502 (eval $ac_try) 2>&5
29503 ac_status=$?
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); }; } &&
29506 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29508 (eval $ac_try) 2>&5
29509 ac_status=$?
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); }; }; then
29512 eval "$as_ac_var=yes"
29513else
29514 echo "$as_me: failed program was:" >&5
29515sed 's/^/| /' conftest.$ac_ext >&5
29516
29517eval "$as_ac_var=no"
29518fi
ac1cb8d3
VS
29519rm -f conftest.err conftest.$ac_objext \
29520 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29521fi
29522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29523echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29524if test `eval echo '${'$as_ac_var'}'` = yes; then
29525 cat >>confdefs.h <<_ACEOF
29526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29527_ACEOF
29528
29529fi
29530done
29531
29532
29533 if test "$ac_cv_func_sigaction" = "no"; then
29534 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29535echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
29536 wxUSE_ON_FATAL_EXCEPTION=no
29537 fi
29538
29539 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
29540
29541
29542 ac_ext=cc
29543ac_cpp='$CXXCPP $CPPFLAGS'
29544ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29545ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29546ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29547
29548
29549 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29550echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29551if test "${wx_cv_type_sa_handler+set}" = set; then
29552 echo $ECHO_N "(cached) $ECHO_C" >&6
29553else
29554
29555 cat >conftest.$ac_ext <<_ACEOF
29556/* confdefs.h. */
29557_ACEOF
29558cat confdefs.h >>conftest.$ac_ext
29559cat >>conftest.$ac_ext <<_ACEOF
29560/* end confdefs.h. */
29561#include <signal.h>
29562int
29563main ()
29564{
29565
29566 extern void testSigHandler(int);
29567
29568 struct sigaction sa;
29569 sa.sa_handler = testSigHandler;
29570
29571 ;
29572 return 0;
29573}
29574_ACEOF
29575rm -f conftest.$ac_objext
29576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29577 (eval $ac_compile) 2>conftest.er1
a848cd7e 29578 ac_status=$?
ac1cb8d3
VS
29579 grep -v '^ *+' conftest.er1 >conftest.err
29580 rm -f conftest.er1
29581 cat conftest.err >&5
a848cd7e
SC
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); } &&
7714864e 29584 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586 (eval $ac_try) 2>&5
29587 ac_status=$?
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; } &&
29590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29592 (eval $ac_try) 2>&5
29593 ac_status=$?
29594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595 (exit $ac_status); }; }; then
29596
29597 wx_cv_type_sa_handler=int
29598
29599else
29600 echo "$as_me: failed program was:" >&5
29601sed 's/^/| /' conftest.$ac_ext >&5
29602
29603
29604 wx_cv_type_sa_handler=void
29605
29606fi
ac1cb8d3 29607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29608
29609fi
29610echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29611echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
29612
29613 ac_ext=c
29614ac_cpp='$CPP $CPPFLAGS'
29615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29617ac_compiler_gnu=$ac_cv_c_compiler_gnu
29618
29619
29620 cat >>confdefs.h <<_ACEOF
29621#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
29622_ACEOF
29623
29624 fi
29625fi
29626
29627
29628
29629for ac_func in mkstemp mktemp
29630do
29631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29632echo "$as_me:$LINENO: checking for $ac_func" >&5
29633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29634if eval "test \"\${$as_ac_var+set}\" = set"; then
29635 echo $ECHO_N "(cached) $ECHO_C" >&6
29636else
29637 cat >conftest.$ac_ext <<_ACEOF
29638/* confdefs.h. */
29639_ACEOF
29640cat confdefs.h >>conftest.$ac_ext
29641cat >>conftest.$ac_ext <<_ACEOF
29642/* end confdefs.h. */
ac1cb8d3
VS
29643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29645#define $ac_func innocuous_$ac_func
29646
a848cd7e
SC
29647/* System header to define __stub macros and hopefully few prototypes,
29648 which can conflict with char $ac_func (); below.
29649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29650 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29651
a848cd7e
SC
29652#ifdef __STDC__
29653# include <limits.h>
29654#else
29655# include <assert.h>
29656#endif
ac1cb8d3
VS
29657
29658#undef $ac_func
29659
a848cd7e
SC
29660/* Override any gcc2 internal prototype to avoid an error. */
29661#ifdef __cplusplus
29662extern "C"
29663{
29664#endif
29665/* We use char because int might match the return type of a gcc2
29666 builtin and then its argument prototype would still apply. */
29667char $ac_func ();
29668/* The GNU C library defines this for functions which it implements
29669 to always fail with ENOSYS. Some functions are actually named
29670 something starting with __ and the normal name is an alias. */
29671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29672choke me
29673#else
29674char (*f) () = $ac_func;
29675#endif
29676#ifdef __cplusplus
29677}
29678#endif
29679
29680int
29681main ()
29682{
29683return f != $ac_func;
29684 ;
29685 return 0;
29686}
29687_ACEOF
29688rm -f conftest.$ac_objext conftest$ac_exeext
29689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29690 (eval $ac_link) 2>conftest.er1
a848cd7e 29691 ac_status=$?
ac1cb8d3
VS
29692 grep -v '^ *+' conftest.er1 >conftest.err
29693 rm -f conftest.er1
29694 cat conftest.err >&5
a848cd7e
SC
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); } &&
7714864e 29697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29699 (eval $ac_try) 2>&5
29700 ac_status=$?
29701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29702 (exit $ac_status); }; } &&
29703 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29705 (eval $ac_try) 2>&5
29706 ac_status=$?
29707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29708 (exit $ac_status); }; }; then
29709 eval "$as_ac_var=yes"
29710else
29711 echo "$as_me: failed program was:" >&5
29712sed 's/^/| /' conftest.$ac_ext >&5
29713
29714eval "$as_ac_var=no"
29715fi
ac1cb8d3
VS
29716rm -f conftest.err conftest.$ac_objext \
29717 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29718fi
29719echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29720echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29721if test `eval echo '${'$as_ac_var'}'` = yes; then
29722 cat >>confdefs.h <<_ACEOF
29723#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29724_ACEOF
29725 break
29726fi
29727done
29728
29729
29730echo "$as_me:$LINENO: checking for statfs" >&5
29731echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29732if test "${wx_cv_func_statfs+set}" = set; then
29733 echo $ECHO_N "(cached) $ECHO_C" >&6
29734else
29735 cat >conftest.$ac_ext <<_ACEOF
29736/* confdefs.h. */
29737_ACEOF
29738cat confdefs.h >>conftest.$ac_ext
29739cat >>conftest.$ac_ext <<_ACEOF
29740/* end confdefs.h. */
29741
29742 #if defined(__BSD__)
29743 #include <sys/param.h>
29744 #include <sys/mount.h>
29745 #else
29746 #include <sys/vfs.h>
29747 #endif
29748
29749int
29750main ()
29751{
29752
29753 long l;
29754 struct statfs fs;
29755 statfs("/", &fs);
29756 l = fs.f_bsize;
29757 l += fs.f_blocks;
29758 l += fs.f_bavail;
29759
29760 ;
29761 return 0;
29762}
29763_ACEOF
29764rm -f conftest.$ac_objext
29765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29766 (eval $ac_compile) 2>conftest.er1
a848cd7e 29767 ac_status=$?
ac1cb8d3
VS
29768 grep -v '^ *+' conftest.er1 >conftest.err
29769 rm -f conftest.er1
29770 cat conftest.err >&5
a848cd7e
SC
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); } &&
7714864e 29773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29775 (eval $ac_try) 2>&5
29776 ac_status=$?
29777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29778 (exit $ac_status); }; } &&
29779 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29781 (eval $ac_try) 2>&5
29782 ac_status=$?
29783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29784 (exit $ac_status); }; }; then
29785
29786 wx_cv_func_statfs=yes
29787
29788else
29789 echo "$as_me: failed program was:" >&5
29790sed 's/^/| /' conftest.$ac_ext >&5
29791
29792
29793 wx_cv_func_statfs=no
29794
29795
29796fi
ac1cb8d3 29797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29798
29799fi
29800echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29801echo "${ECHO_T}$wx_cv_func_statfs" >&6
29802
29803if test "$wx_cv_func_statfs" = "yes"; then
29804 wx_cv_type_statvfs_t="struct statfs"
29805 cat >>confdefs.h <<\_ACEOF
29806#define HAVE_STATFS 1
29807_ACEOF
29808
29809else
29810 echo "$as_me:$LINENO: checking for statvfs" >&5
29811echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29812if test "${wx_cv_func_statvfs+set}" = set; then
29813 echo $ECHO_N "(cached) $ECHO_C" >&6
29814else
29815 cat >conftest.$ac_ext <<_ACEOF
29816/* confdefs.h. */
29817_ACEOF
29818cat confdefs.h >>conftest.$ac_ext
29819cat >>conftest.$ac_ext <<_ACEOF
29820/* end confdefs.h. */
29821
29822 #include <stddef.h>
29823 #include <sys/statvfs.h>
29824
29825int
29826main ()
29827{
29828
29829 statvfs("/", NULL);
29830
29831 ;
29832 return 0;
29833}
29834_ACEOF
29835rm -f conftest.$ac_objext
29836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29837 (eval $ac_compile) 2>conftest.er1
a848cd7e 29838 ac_status=$?
ac1cb8d3
VS
29839 grep -v '^ *+' conftest.er1 >conftest.err
29840 rm -f conftest.er1
29841 cat conftest.err >&5
a848cd7e
SC
29842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29843 (exit $ac_status); } &&
7714864e 29844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29846 (eval $ac_try) 2>&5
29847 ac_status=$?
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); }; } &&
29850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29852 (eval $ac_try) 2>&5
29853 ac_status=$?
29854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855 (exit $ac_status); }; }; then
29856 wx_cv_func_statvfs=yes
29857else
29858 echo "$as_me: failed program was:" >&5
29859sed 's/^/| /' conftest.$ac_ext >&5
29860
29861wx_cv_func_statvfs=no
29862
29863fi
ac1cb8d3 29864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29865
29866fi
29867echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29868echo "${ECHO_T}$wx_cv_func_statvfs" >&6
29869
29870 if test "$wx_cv_func_statvfs" = "yes"; then
29871
29872
29873 ac_ext=cc
29874ac_cpp='$CXXCPP $CPPFLAGS'
29875ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29876ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29877ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29878
29879
29880 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29881echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29882if test "${wx_cv_type_statvfs_t+set}" = set; then
29883 echo $ECHO_N "(cached) $ECHO_C" >&6
29884else
29885 cat >conftest.$ac_ext <<_ACEOF
29886/* confdefs.h. */
29887_ACEOF
29888cat confdefs.h >>conftest.$ac_ext
29889cat >>conftest.$ac_ext <<_ACEOF
29890/* end confdefs.h. */
29891
29892 #include <sys/statvfs.h>
29893
29894int
29895main ()
29896{
29897
29898 long l;
29899 statvfs_t fs;
29900 statvfs("/", &fs);
29901 l = fs.f_bsize;
29902 l += fs.f_blocks;
29903 l += fs.f_bavail;
29904
29905 ;
29906 return 0;
29907}
29908_ACEOF
29909rm -f conftest.$ac_objext
29910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29911 (eval $ac_compile) 2>conftest.er1
a848cd7e 29912 ac_status=$?
ac1cb8d3
VS
29913 grep -v '^ *+' conftest.er1 >conftest.err
29914 rm -f conftest.er1
29915 cat conftest.err >&5
a848cd7e
SC
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); } &&
7714864e 29918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29920 (eval $ac_try) 2>&5
29921 ac_status=$?
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); }; } &&
29924 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29926 (eval $ac_try) 2>&5
29927 ac_status=$?
29928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29929 (exit $ac_status); }; }; then
29930 wx_cv_type_statvfs_t=statvfs_t
29931else
29932 echo "$as_me: failed program was:" >&5
29933sed 's/^/| /' conftest.$ac_ext >&5
29934
29935
29936 cat >conftest.$ac_ext <<_ACEOF
29937/* confdefs.h. */
29938_ACEOF
29939cat confdefs.h >>conftest.$ac_ext
29940cat >>conftest.$ac_ext <<_ACEOF
29941/* end confdefs.h. */
29942
29943 #include <sys/statvfs.h>
29944
29945int
29946main ()
29947{
29948
29949 long l;
29950 struct statvfs fs;
29951 statvfs("/", &fs);
29952 l = fs.f_bsize;
29953 l += fs.f_blocks;
29954 l += fs.f_bavail;
29955
29956 ;
29957 return 0;
29958}
29959_ACEOF
29960rm -f conftest.$ac_objext
29961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29962 (eval $ac_compile) 2>conftest.er1
a848cd7e 29963 ac_status=$?
ac1cb8d3
VS
29964 grep -v '^ *+' conftest.er1 >conftest.err
29965 rm -f conftest.er1
29966 cat conftest.err >&5
a848cd7e
SC
29967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968 (exit $ac_status); } &&
7714864e 29969 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29971 (eval $ac_try) 2>&5
29972 ac_status=$?
29973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29974 (exit $ac_status); }; } &&
29975 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29977 (eval $ac_try) 2>&5
29978 ac_status=$?
29979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29980 (exit $ac_status); }; }; then
29981 wx_cv_type_statvfs_t="struct statvfs"
29982else
29983 echo "$as_me: failed program was:" >&5
29984sed 's/^/| /' conftest.$ac_ext >&5
29985
29986wx_cv_type_statvfs_t="unknown"
29987
29988fi
ac1cb8d3 29989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29990
29991
29992fi
ac1cb8d3 29993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29994
29995fi
29996echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
29997echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
29998
29999 ac_ext=c
30000ac_cpp='$CPP $CPPFLAGS'
30001ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30002ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30003ac_compiler_gnu=$ac_cv_c_compiler_gnu
30004
30005
30006 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30007 cat >>confdefs.h <<\_ACEOF
30008#define HAVE_STATVFS 1
30009_ACEOF
30010
30011 fi
30012 else
30013 wx_cv_type_statvfs_t="unknown"
30014 fi
30015fi
30016
30017if test "$wx_cv_type_statvfs_t" != "unknown"; then
30018 cat >>confdefs.h <<_ACEOF
30019#define WX_STATFS_T $wx_cv_type_statvfs_t
30020_ACEOF
30021
30022else
30023 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30024echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30025fi
30026
30027if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30028
30029
30030for ac_func in fcntl flock
30031do
30032as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30033echo "$as_me:$LINENO: checking for $ac_func" >&5
30034echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30035if eval "test \"\${$as_ac_var+set}\" = set"; then
30036 echo $ECHO_N "(cached) $ECHO_C" >&6
30037else
30038 cat >conftest.$ac_ext <<_ACEOF
30039/* confdefs.h. */
30040_ACEOF
30041cat confdefs.h >>conftest.$ac_ext
30042cat >>conftest.$ac_ext <<_ACEOF
30043/* end confdefs.h. */
ac1cb8d3
VS
30044/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30046#define $ac_func innocuous_$ac_func
30047
a848cd7e
SC
30048/* System header to define __stub macros and hopefully few prototypes,
30049 which can conflict with char $ac_func (); below.
30050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30051 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30052
a848cd7e
SC
30053#ifdef __STDC__
30054# include <limits.h>
30055#else
30056# include <assert.h>
30057#endif
ac1cb8d3
VS
30058
30059#undef $ac_func
30060
a848cd7e
SC
30061/* Override any gcc2 internal prototype to avoid an error. */
30062#ifdef __cplusplus
30063extern "C"
30064{
30065#endif
30066/* We use char because int might match the return type of a gcc2
30067 builtin and then its argument prototype would still apply. */
30068char $ac_func ();
30069/* The GNU C library defines this for functions which it implements
30070 to always fail with ENOSYS. Some functions are actually named
30071 something starting with __ and the normal name is an alias. */
30072#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30073choke me
30074#else
30075char (*f) () = $ac_func;
30076#endif
30077#ifdef __cplusplus
30078}
30079#endif
30080
30081int
30082main ()
30083{
30084return f != $ac_func;
30085 ;
30086 return 0;
30087}
30088_ACEOF
30089rm -f conftest.$ac_objext conftest$ac_exeext
30090if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30091 (eval $ac_link) 2>conftest.er1
a848cd7e 30092 ac_status=$?
ac1cb8d3
VS
30093 grep -v '^ *+' conftest.er1 >conftest.err
30094 rm -f conftest.er1
30095 cat conftest.err >&5
a848cd7e
SC
30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30097 (exit $ac_status); } &&
7714864e 30098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30100 (eval $ac_try) 2>&5
30101 ac_status=$?
30102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); }; } &&
30104 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106 (eval $ac_try) 2>&5
30107 ac_status=$?
30108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109 (exit $ac_status); }; }; then
30110 eval "$as_ac_var=yes"
30111else
30112 echo "$as_me: failed program was:" >&5
30113sed 's/^/| /' conftest.$ac_ext >&5
30114
30115eval "$as_ac_var=no"
30116fi
ac1cb8d3
VS
30117rm -f conftest.err conftest.$ac_objext \
30118 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30119fi
30120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30121echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30122if test `eval echo '${'$as_ac_var'}'` = yes; then
30123 cat >>confdefs.h <<_ACEOF
30124#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30125_ACEOF
30126 break
30127fi
30128done
30129
30130
30131 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30132 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30133echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30134 wxUSE_SNGLINST_CHECKER=no
30135 fi
30136fi
30137
30138
30139for ac_func in timegm
30140do
30141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30142echo "$as_me:$LINENO: checking for $ac_func" >&5
30143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30144if eval "test \"\${$as_ac_var+set}\" = set"; then
30145 echo $ECHO_N "(cached) $ECHO_C" >&6
30146else
30147 cat >conftest.$ac_ext <<_ACEOF
30148/* confdefs.h. */
30149_ACEOF
30150cat confdefs.h >>conftest.$ac_ext
30151cat >>conftest.$ac_ext <<_ACEOF
30152/* end confdefs.h. */
ac1cb8d3
VS
30153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30155#define $ac_func innocuous_$ac_func
30156
a848cd7e
SC
30157/* System header to define __stub macros and hopefully few prototypes,
30158 which can conflict with char $ac_func (); below.
30159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30160 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30161
a848cd7e
SC
30162#ifdef __STDC__
30163# include <limits.h>
30164#else
30165# include <assert.h>
30166#endif
ac1cb8d3
VS
30167
30168#undef $ac_func
30169
a848cd7e
SC
30170/* Override any gcc2 internal prototype to avoid an error. */
30171#ifdef __cplusplus
30172extern "C"
30173{
30174#endif
30175/* We use char because int might match the return type of a gcc2
30176 builtin and then its argument prototype would still apply. */
30177char $ac_func ();
30178/* The GNU C library defines this for functions which it implements
30179 to always fail with ENOSYS. Some functions are actually named
30180 something starting with __ and the normal name is an alias. */
30181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30182choke me
30183#else
30184char (*f) () = $ac_func;
30185#endif
30186#ifdef __cplusplus
30187}
30188#endif
30189
30190int
30191main ()
30192{
30193return f != $ac_func;
30194 ;
30195 return 0;
30196}
30197_ACEOF
30198rm -f conftest.$ac_objext conftest$ac_exeext
30199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30200 (eval $ac_link) 2>conftest.er1
a848cd7e 30201 ac_status=$?
ac1cb8d3
VS
30202 grep -v '^ *+' conftest.er1 >conftest.err
30203 rm -f conftest.er1
30204 cat conftest.err >&5
a848cd7e
SC
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); } &&
7714864e 30207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30209 (eval $ac_try) 2>&5
30210 ac_status=$?
30211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30212 (exit $ac_status); }; } &&
30213 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30215 (eval $ac_try) 2>&5
30216 ac_status=$?
30217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30218 (exit $ac_status); }; }; then
30219 eval "$as_ac_var=yes"
30220else
30221 echo "$as_me: failed program was:" >&5
30222sed 's/^/| /' conftest.$ac_ext >&5
30223
30224eval "$as_ac_var=no"
30225fi
ac1cb8d3
VS
30226rm -f conftest.err conftest.$ac_objext \
30227 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30228fi
30229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30231if test `eval echo '${'$as_ac_var'}'` = yes; then
30232 cat >>confdefs.h <<_ACEOF
30233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30234_ACEOF
30235
30236fi
30237done
30238
30239
30240
30241
30242for ac_func in putenv setenv
30243do
30244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30245echo "$as_me:$LINENO: checking for $ac_func" >&5
30246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30247if eval "test \"\${$as_ac_var+set}\" = set"; then
30248 echo $ECHO_N "(cached) $ECHO_C" >&6
30249else
30250 cat >conftest.$ac_ext <<_ACEOF
30251/* confdefs.h. */
30252_ACEOF
30253cat confdefs.h >>conftest.$ac_ext
30254cat >>conftest.$ac_ext <<_ACEOF
30255/* end confdefs.h. */
ac1cb8d3
VS
30256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30258#define $ac_func innocuous_$ac_func
30259
a848cd7e
SC
30260/* System header to define __stub macros and hopefully few prototypes,
30261 which can conflict with char $ac_func (); below.
30262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30264
a848cd7e
SC
30265#ifdef __STDC__
30266# include <limits.h>
30267#else
30268# include <assert.h>
30269#endif
ac1cb8d3
VS
30270
30271#undef $ac_func
30272
a848cd7e
SC
30273/* Override any gcc2 internal prototype to avoid an error. */
30274#ifdef __cplusplus
30275extern "C"
30276{
30277#endif
30278/* We use char because int might match the return type of a gcc2
30279 builtin and then its argument prototype would still apply. */
30280char $ac_func ();
30281/* The GNU C library defines this for functions which it implements
30282 to always fail with ENOSYS. Some functions are actually named
30283 something starting with __ and the normal name is an alias. */
30284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30285choke me
30286#else
30287char (*f) () = $ac_func;
30288#endif
30289#ifdef __cplusplus
30290}
30291#endif
30292
30293int
30294main ()
30295{
30296return f != $ac_func;
30297 ;
30298 return 0;
30299}
30300_ACEOF
30301rm -f conftest.$ac_objext conftest$ac_exeext
30302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30303 (eval $ac_link) 2>conftest.er1
a848cd7e 30304 ac_status=$?
ac1cb8d3
VS
30305 grep -v '^ *+' conftest.er1 >conftest.err
30306 rm -f conftest.er1
30307 cat conftest.err >&5
a848cd7e
SC
30308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30309 (exit $ac_status); } &&
7714864e 30310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30312 (eval $ac_try) 2>&5
30313 ac_status=$?
30314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30315 (exit $ac_status); }; } &&
30316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30318 (eval $ac_try) 2>&5
30319 ac_status=$?
30320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30321 (exit $ac_status); }; }; then
30322 eval "$as_ac_var=yes"
30323else
30324 echo "$as_me: failed program was:" >&5
30325sed 's/^/| /' conftest.$ac_ext >&5
30326
30327eval "$as_ac_var=no"
30328fi
ac1cb8d3
VS
30329rm -f conftest.err conftest.$ac_objext \
30330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30331fi
30332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30334if test `eval echo '${'$as_ac_var'}'` = yes; then
30335 cat >>confdefs.h <<_ACEOF
30336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30337_ACEOF
30338 break
30339fi
30340done
30341
30342
30343HAVE_SOME_SLEEP_FUNC=0
30344if test "$USE_BEOS" = 1; then
30345 cat >>confdefs.h <<\_ACEOF
30346#define HAVE_SLEEP 1
30347_ACEOF
30348
30349 HAVE_SOME_SLEEP_FUNC=1
30350fi
30351
30352if test "$USE_DARWIN" = 1; then
30353 cat >>confdefs.h <<\_ACEOF
30354#define HAVE_USLEEP 1
30355_ACEOF
30356
30357 HAVE_SOME_SLEEP_FUNC=1
30358fi
30359
30360if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30361 POSIX4_LINK=
30362
30363for ac_func in nanosleep
30364do
30365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30366echo "$as_me:$LINENO: checking for $ac_func" >&5
30367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30368if eval "test \"\${$as_ac_var+set}\" = set"; then
30369 echo $ECHO_N "(cached) $ECHO_C" >&6
30370else
30371 cat >conftest.$ac_ext <<_ACEOF
30372/* confdefs.h. */
30373_ACEOF
30374cat confdefs.h >>conftest.$ac_ext
30375cat >>conftest.$ac_ext <<_ACEOF
30376/* end confdefs.h. */
ac1cb8d3
VS
30377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30379#define $ac_func innocuous_$ac_func
30380
a848cd7e
SC
30381/* System header to define __stub macros and hopefully few prototypes,
30382 which can conflict with char $ac_func (); below.
30383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30384 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30385
a848cd7e
SC
30386#ifdef __STDC__
30387# include <limits.h>
30388#else
30389# include <assert.h>
30390#endif
ac1cb8d3
VS
30391
30392#undef $ac_func
30393
a848cd7e
SC
30394/* Override any gcc2 internal prototype to avoid an error. */
30395#ifdef __cplusplus
30396extern "C"
30397{
30398#endif
30399/* We use char because int might match the return type of a gcc2
30400 builtin and then its argument prototype would still apply. */
30401char $ac_func ();
30402/* The GNU C library defines this for functions which it implements
30403 to always fail with ENOSYS. Some functions are actually named
30404 something starting with __ and the normal name is an alias. */
30405#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30406choke me
30407#else
30408char (*f) () = $ac_func;
30409#endif
30410#ifdef __cplusplus
30411}
30412#endif
30413
30414int
30415main ()
30416{
30417return f != $ac_func;
30418 ;
30419 return 0;
30420}
30421_ACEOF
30422rm -f conftest.$ac_objext conftest$ac_exeext
30423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30424 (eval $ac_link) 2>conftest.er1
a848cd7e 30425 ac_status=$?
ac1cb8d3
VS
30426 grep -v '^ *+' conftest.er1 >conftest.err
30427 rm -f conftest.er1
30428 cat conftest.err >&5
a848cd7e
SC
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); } &&
7714864e 30431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30433 (eval $ac_try) 2>&5
30434 ac_status=$?
30435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30436 (exit $ac_status); }; } &&
30437 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30439 (eval $ac_try) 2>&5
30440 ac_status=$?
30441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30442 (exit $ac_status); }; }; then
30443 eval "$as_ac_var=yes"
30444else
30445 echo "$as_me: failed program was:" >&5
30446sed 's/^/| /' conftest.$ac_ext >&5
30447
30448eval "$as_ac_var=no"
30449fi
ac1cb8d3
VS
30450rm -f conftest.err conftest.$ac_objext \
30451 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30452fi
30453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30454echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30455if test `eval echo '${'$as_ac_var'}'` = yes; then
30456 cat >>confdefs.h <<_ACEOF
30457#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30458_ACEOF
30459 cat >>confdefs.h <<\_ACEOF
30460#define HAVE_NANOSLEEP 1
30461_ACEOF
30462
30463else
30464
30465 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30466echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30467if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30468 echo $ECHO_N "(cached) $ECHO_C" >&6
30469else
30470 ac_check_lib_save_LIBS=$LIBS
30471LIBS="-lposix4 $LIBS"
30472cat >conftest.$ac_ext <<_ACEOF
30473/* confdefs.h. */
30474_ACEOF
30475cat confdefs.h >>conftest.$ac_ext
30476cat >>conftest.$ac_ext <<_ACEOF
30477/* end confdefs.h. */
30478
30479/* Override any gcc2 internal prototype to avoid an error. */
30480#ifdef __cplusplus
30481extern "C"
30482#endif
30483/* We use char because int might match the return type of a gcc2
30484 builtin and then its argument prototype would still apply. */
30485char nanosleep ();
30486int
30487main ()
30488{
30489nanosleep ();
30490 ;
30491 return 0;
30492}
30493_ACEOF
30494rm -f conftest.$ac_objext conftest$ac_exeext
30495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30496 (eval $ac_link) 2>conftest.er1
a848cd7e 30497 ac_status=$?
ac1cb8d3
VS
30498 grep -v '^ *+' conftest.er1 >conftest.err
30499 rm -f conftest.er1
30500 cat conftest.err >&5
a848cd7e
SC
30501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502 (exit $ac_status); } &&
7714864e 30503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30505 (eval $ac_try) 2>&5
30506 ac_status=$?
30507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30508 (exit $ac_status); }; } &&
30509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30511 (eval $ac_try) 2>&5
30512 ac_status=$?
30513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30514 (exit $ac_status); }; }; then
30515 ac_cv_lib_posix4_nanosleep=yes
30516else
30517 echo "$as_me: failed program was:" >&5
30518sed 's/^/| /' conftest.$ac_ext >&5
30519
30520ac_cv_lib_posix4_nanosleep=no
30521fi
ac1cb8d3
VS
30522rm -f conftest.err conftest.$ac_objext \
30523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30524LIBS=$ac_check_lib_save_LIBS
30525fi
30526echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30527echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30528if test $ac_cv_lib_posix4_nanosleep = yes; then
30529
30530 cat >>confdefs.h <<\_ACEOF
30531#define HAVE_NANOSLEEP 1
30532_ACEOF
30533
30534 POSIX4_LINK=" -lposix4"
30535
30536else
30537
30538
30539for ac_func in usleep
30540do
30541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30542echo "$as_me:$LINENO: checking for $ac_func" >&5
30543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30544if eval "test \"\${$as_ac_var+set}\" = set"; then
30545 echo $ECHO_N "(cached) $ECHO_C" >&6
30546else
30547 cat >conftest.$ac_ext <<_ACEOF
30548/* confdefs.h. */
30549_ACEOF
30550cat confdefs.h >>conftest.$ac_ext
30551cat >>conftest.$ac_ext <<_ACEOF
30552/* end confdefs.h. */
ac1cb8d3
VS
30553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30555#define $ac_func innocuous_$ac_func
30556
a848cd7e
SC
30557/* System header to define __stub macros and hopefully few prototypes,
30558 which can conflict with char $ac_func (); below.
30559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30560 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30561
a848cd7e
SC
30562#ifdef __STDC__
30563# include <limits.h>
30564#else
30565# include <assert.h>
30566#endif
ac1cb8d3
VS
30567
30568#undef $ac_func
30569
a848cd7e
SC
30570/* Override any gcc2 internal prototype to avoid an error. */
30571#ifdef __cplusplus
30572extern "C"
30573{
30574#endif
30575/* We use char because int might match the return type of a gcc2
30576 builtin and then its argument prototype would still apply. */
30577char $ac_func ();
30578/* The GNU C library defines this for functions which it implements
30579 to always fail with ENOSYS. Some functions are actually named
30580 something starting with __ and the normal name is an alias. */
30581#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30582choke me
30583#else
30584char (*f) () = $ac_func;
30585#endif
30586#ifdef __cplusplus
30587}
30588#endif
30589
30590int
30591main ()
30592{
30593return f != $ac_func;
30594 ;
30595 return 0;
30596}
30597_ACEOF
30598rm -f conftest.$ac_objext conftest$ac_exeext
30599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30600 (eval $ac_link) 2>conftest.er1
a848cd7e 30601 ac_status=$?
ac1cb8d3
VS
30602 grep -v '^ *+' conftest.er1 >conftest.err
30603 rm -f conftest.er1
30604 cat conftest.err >&5
a848cd7e
SC
30605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30606 (exit $ac_status); } &&
7714864e 30607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30609 (eval $ac_try) 2>&5
30610 ac_status=$?
30611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 (exit $ac_status); }; } &&
30613 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30615 (eval $ac_try) 2>&5
30616 ac_status=$?
30617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30618 (exit $ac_status); }; }; then
30619 eval "$as_ac_var=yes"
30620else
30621 echo "$as_me: failed program was:" >&5
30622sed 's/^/| /' conftest.$ac_ext >&5
30623
30624eval "$as_ac_var=no"
30625fi
ac1cb8d3
VS
30626rm -f conftest.err conftest.$ac_objext \
30627 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30628fi
30629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30630echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30631if test `eval echo '${'$as_ac_var'}'` = yes; then
30632 cat >>confdefs.h <<_ACEOF
30633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30634_ACEOF
30635 cat >>confdefs.h <<\_ACEOF
30636#define HAVE_USLEEP 1
30637_ACEOF
30638
30639else
30640 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30641echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30642
30643fi
30644done
30645
30646
30647
30648fi
30649
30650
30651
30652fi
30653done
30654
30655fi
30656
30657
30658
30659for ac_func in uname gethostname
30660do
30661as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30662echo "$as_me:$LINENO: checking for $ac_func" >&5
30663echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30664if eval "test \"\${$as_ac_var+set}\" = set"; then
30665 echo $ECHO_N "(cached) $ECHO_C" >&6
30666else
30667 cat >conftest.$ac_ext <<_ACEOF
30668/* confdefs.h. */
30669_ACEOF
30670cat confdefs.h >>conftest.$ac_ext
30671cat >>conftest.$ac_ext <<_ACEOF
30672/* end confdefs.h. */
ac1cb8d3
VS
30673/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30675#define $ac_func innocuous_$ac_func
30676
a848cd7e
SC
30677/* System header to define __stub macros and hopefully few prototypes,
30678 which can conflict with char $ac_func (); below.
30679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30680 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30681
a848cd7e
SC
30682#ifdef __STDC__
30683# include <limits.h>
30684#else
30685# include <assert.h>
30686#endif
ac1cb8d3
VS
30687
30688#undef $ac_func
30689
a848cd7e
SC
30690/* Override any gcc2 internal prototype to avoid an error. */
30691#ifdef __cplusplus
30692extern "C"
30693{
30694#endif
30695/* We use char because int might match the return type of a gcc2
30696 builtin and then its argument prototype would still apply. */
30697char $ac_func ();
30698/* The GNU C library defines this for functions which it implements
30699 to always fail with ENOSYS. Some functions are actually named
30700 something starting with __ and the normal name is an alias. */
30701#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30702choke me
30703#else
30704char (*f) () = $ac_func;
30705#endif
30706#ifdef __cplusplus
30707}
30708#endif
30709
30710int
30711main ()
30712{
30713return f != $ac_func;
30714 ;
30715 return 0;
30716}
30717_ACEOF
30718rm -f conftest.$ac_objext conftest$ac_exeext
30719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30720 (eval $ac_link) 2>conftest.er1
a848cd7e 30721 ac_status=$?
ac1cb8d3
VS
30722 grep -v '^ *+' conftest.er1 >conftest.err
30723 rm -f conftest.er1
30724 cat conftest.err >&5
a848cd7e
SC
30725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30726 (exit $ac_status); } &&
7714864e 30727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30729 (eval $ac_try) 2>&5
30730 ac_status=$?
30731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30732 (exit $ac_status); }; } &&
30733 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30735 (eval $ac_try) 2>&5
30736 ac_status=$?
30737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30738 (exit $ac_status); }; }; then
30739 eval "$as_ac_var=yes"
30740else
30741 echo "$as_me: failed program was:" >&5
30742sed 's/^/| /' conftest.$ac_ext >&5
30743
30744eval "$as_ac_var=no"
30745fi
ac1cb8d3
VS
30746rm -f conftest.err conftest.$ac_objext \
30747 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30748fi
30749echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30750echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30751if test `eval echo '${'$as_ac_var'}'` = yes; then
30752 cat >>confdefs.h <<_ACEOF
30753#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30754_ACEOF
30755 break
30756fi
30757done
30758
30759
30760
30761
30762ac_ext=cc
30763ac_cpp='$CXXCPP $CPPFLAGS'
30764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30767
30768
30769
30770for ac_func in strtok_r
30771do
30772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30773echo "$as_me:$LINENO: checking for $ac_func" >&5
30774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30775if eval "test \"\${$as_ac_var+set}\" = set"; then
30776 echo $ECHO_N "(cached) $ECHO_C" >&6
30777else
30778 cat >conftest.$ac_ext <<_ACEOF
30779/* confdefs.h. */
30780_ACEOF
30781cat confdefs.h >>conftest.$ac_ext
30782cat >>conftest.$ac_ext <<_ACEOF
30783/* end confdefs.h. */
ac1cb8d3
VS
30784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30786#define $ac_func innocuous_$ac_func
30787
a848cd7e
SC
30788/* System header to define __stub macros and hopefully few prototypes,
30789 which can conflict with char $ac_func (); below.
30790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30791 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30792
a848cd7e
SC
30793#ifdef __STDC__
30794# include <limits.h>
30795#else
30796# include <assert.h>
30797#endif
ac1cb8d3
VS
30798
30799#undef $ac_func
30800
a848cd7e
SC
30801/* Override any gcc2 internal prototype to avoid an error. */
30802#ifdef __cplusplus
30803extern "C"
30804{
30805#endif
30806/* We use char because int might match the return type of a gcc2
30807 builtin and then its argument prototype would still apply. */
30808char $ac_func ();
30809/* The GNU C library defines this for functions which it implements
30810 to always fail with ENOSYS. Some functions are actually named
30811 something starting with __ and the normal name is an alias. */
30812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30813choke me
30814#else
30815char (*f) () = $ac_func;
30816#endif
30817#ifdef __cplusplus
30818}
30819#endif
30820
30821int
30822main ()
30823{
30824return f != $ac_func;
30825 ;
30826 return 0;
30827}
30828_ACEOF
30829rm -f conftest.$ac_objext conftest$ac_exeext
30830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30831 (eval $ac_link) 2>conftest.er1
a848cd7e 30832 ac_status=$?
ac1cb8d3
VS
30833 grep -v '^ *+' conftest.er1 >conftest.err
30834 rm -f conftest.er1
30835 cat conftest.err >&5
a848cd7e
SC
30836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30837 (exit $ac_status); } &&
7714864e 30838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30840 (eval $ac_try) 2>&5
30841 ac_status=$?
30842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843 (exit $ac_status); }; } &&
30844 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30846 (eval $ac_try) 2>&5
30847 ac_status=$?
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); }; }; then
30850 eval "$as_ac_var=yes"
30851else
30852 echo "$as_me: failed program was:" >&5
30853sed 's/^/| /' conftest.$ac_ext >&5
30854
30855eval "$as_ac_var=no"
30856fi
ac1cb8d3
VS
30857rm -f conftest.err conftest.$ac_objext \
30858 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30859fi
30860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30861echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30862if test `eval echo '${'$as_ac_var'}'` = yes; then
30863 cat >>confdefs.h <<_ACEOF
30864#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30865_ACEOF
30866
30867fi
30868done
30869
30870
30871ac_ext=c
30872ac_cpp='$CPP $CPPFLAGS'
30873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30875ac_compiler_gnu=$ac_cv_c_compiler_gnu
30876
30877
30878INET_LINK=
30879
30880for ac_func in inet_addr
30881do
30882as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30883echo "$as_me:$LINENO: checking for $ac_func" >&5
30884echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30885if eval "test \"\${$as_ac_var+set}\" = set"; then
30886 echo $ECHO_N "(cached) $ECHO_C" >&6
30887else
30888 cat >conftest.$ac_ext <<_ACEOF
30889/* confdefs.h. */
30890_ACEOF
30891cat confdefs.h >>conftest.$ac_ext
30892cat >>conftest.$ac_ext <<_ACEOF
30893/* end confdefs.h. */
ac1cb8d3
VS
30894/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30896#define $ac_func innocuous_$ac_func
30897
a848cd7e
SC
30898/* System header to define __stub macros and hopefully few prototypes,
30899 which can conflict with char $ac_func (); below.
30900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30901 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30902
a848cd7e
SC
30903#ifdef __STDC__
30904# include <limits.h>
30905#else
30906# include <assert.h>
30907#endif
ac1cb8d3
VS
30908
30909#undef $ac_func
30910
a848cd7e
SC
30911/* Override any gcc2 internal prototype to avoid an error. */
30912#ifdef __cplusplus
30913extern "C"
30914{
30915#endif
30916/* We use char because int might match the return type of a gcc2
30917 builtin and then its argument prototype would still apply. */
30918char $ac_func ();
30919/* The GNU C library defines this for functions which it implements
30920 to always fail with ENOSYS. Some functions are actually named
30921 something starting with __ and the normal name is an alias. */
30922#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30923choke me
30924#else
30925char (*f) () = $ac_func;
30926#endif
30927#ifdef __cplusplus
30928}
30929#endif
30930
30931int
30932main ()
30933{
30934return f != $ac_func;
30935 ;
30936 return 0;
30937}
30938_ACEOF
30939rm -f conftest.$ac_objext conftest$ac_exeext
30940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30941 (eval $ac_link) 2>conftest.er1
a848cd7e 30942 ac_status=$?
ac1cb8d3
VS
30943 grep -v '^ *+' conftest.er1 >conftest.err
30944 rm -f conftest.er1
30945 cat conftest.err >&5
a848cd7e
SC
30946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30947 (exit $ac_status); } &&
7714864e 30948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30950 (eval $ac_try) 2>&5
30951 ac_status=$?
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); }; } &&
30954 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30956 (eval $ac_try) 2>&5
30957 ac_status=$?
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; }; then
30960 eval "$as_ac_var=yes"
30961else
30962 echo "$as_me: failed program was:" >&5
30963sed 's/^/| /' conftest.$ac_ext >&5
30964
30965eval "$as_ac_var=no"
30966fi
ac1cb8d3
VS
30967rm -f conftest.err conftest.$ac_objext \
30968 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30969fi
30970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30971echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30972if test `eval echo '${'$as_ac_var'}'` = yes; then
30973 cat >>confdefs.h <<_ACEOF
30974#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30975_ACEOF
30976 cat >>confdefs.h <<\_ACEOF
30977#define HAVE_INET_ADDR 1
30978_ACEOF
30979
30980else
30981
30982 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30983echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30984if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30985 echo $ECHO_N "(cached) $ECHO_C" >&6
30986else
30987 ac_check_lib_save_LIBS=$LIBS
30988LIBS="-lnsl $LIBS"
30989cat >conftest.$ac_ext <<_ACEOF
30990/* confdefs.h. */
30991_ACEOF
30992cat confdefs.h >>conftest.$ac_ext
30993cat >>conftest.$ac_ext <<_ACEOF
30994/* end confdefs.h. */
30995
30996/* Override any gcc2 internal prototype to avoid an error. */
30997#ifdef __cplusplus
30998extern "C"
30999#endif
31000/* We use char because int might match the return type of a gcc2
31001 builtin and then its argument prototype would still apply. */
31002char inet_addr ();
31003int
31004main ()
31005{
31006inet_addr ();
31007 ;
31008 return 0;
31009}
31010_ACEOF
31011rm -f conftest.$ac_objext conftest$ac_exeext
31012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31013 (eval $ac_link) 2>conftest.er1
a848cd7e 31014 ac_status=$?
ac1cb8d3
VS
31015 grep -v '^ *+' conftest.er1 >conftest.err
31016 rm -f conftest.er1
31017 cat conftest.err >&5
a848cd7e
SC
31018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019 (exit $ac_status); } &&
7714864e 31020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31022 (eval $ac_try) 2>&5
31023 ac_status=$?
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); }; } &&
31026 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31028 (eval $ac_try) 2>&5
31029 ac_status=$?
31030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31031 (exit $ac_status); }; }; then
31032 ac_cv_lib_nsl_inet_addr=yes
31033else
31034 echo "$as_me: failed program was:" >&5
31035sed 's/^/| /' conftest.$ac_ext >&5
31036
31037ac_cv_lib_nsl_inet_addr=no
31038fi
ac1cb8d3
VS
31039rm -f conftest.err conftest.$ac_objext \
31040 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31041LIBS=$ac_check_lib_save_LIBS
31042fi
31043echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31044echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31045if test $ac_cv_lib_nsl_inet_addr = yes; then
31046 INET_LINK="nsl"
31047else
31048
31049 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31050echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31051if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31052 echo $ECHO_N "(cached) $ECHO_C" >&6
31053else
31054 ac_check_lib_save_LIBS=$LIBS
31055LIBS="-lresolv $LIBS"
31056cat >conftest.$ac_ext <<_ACEOF
31057/* confdefs.h. */
31058_ACEOF
31059cat confdefs.h >>conftest.$ac_ext
31060cat >>conftest.$ac_ext <<_ACEOF
31061/* end confdefs.h. */
31062
31063/* Override any gcc2 internal prototype to avoid an error. */
31064#ifdef __cplusplus
31065extern "C"
31066#endif
31067/* We use char because int might match the return type of a gcc2
31068 builtin and then its argument prototype would still apply. */
31069char inet_addr ();
31070int
31071main ()
31072{
31073inet_addr ();
31074 ;
31075 return 0;
31076}
31077_ACEOF
31078rm -f conftest.$ac_objext conftest$ac_exeext
31079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31080 (eval $ac_link) 2>conftest.er1
a848cd7e 31081 ac_status=$?
ac1cb8d3
VS
31082 grep -v '^ *+' conftest.er1 >conftest.err
31083 rm -f conftest.er1
31084 cat conftest.err >&5
a848cd7e
SC
31085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086 (exit $ac_status); } &&
7714864e 31087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31089 (eval $ac_try) 2>&5
31090 ac_status=$?
31091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31092 (exit $ac_status); }; } &&
31093 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31095 (eval $ac_try) 2>&5
31096 ac_status=$?
31097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31098 (exit $ac_status); }; }; then
31099 ac_cv_lib_resolv_inet_addr=yes
31100else
31101 echo "$as_me: failed program was:" >&5
31102sed 's/^/| /' conftest.$ac_ext >&5
31103
31104ac_cv_lib_resolv_inet_addr=no
31105fi
ac1cb8d3
VS
31106rm -f conftest.err conftest.$ac_objext \
31107 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31108LIBS=$ac_check_lib_save_LIBS
31109fi
31110echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31111echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31112if test $ac_cv_lib_resolv_inet_addr = yes; then
31113 INET_LINK="resolv"
31114else
31115
31116 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31117echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31118if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31119 echo $ECHO_N "(cached) $ECHO_C" >&6
31120else
31121 ac_check_lib_save_LIBS=$LIBS
31122LIBS="-lsocket $LIBS"
31123cat >conftest.$ac_ext <<_ACEOF
31124/* confdefs.h. */
31125_ACEOF
31126cat confdefs.h >>conftest.$ac_ext
31127cat >>conftest.$ac_ext <<_ACEOF
31128/* end confdefs.h. */
31129
31130/* Override any gcc2 internal prototype to avoid an error. */
31131#ifdef __cplusplus
31132extern "C"
31133#endif
31134/* We use char because int might match the return type of a gcc2
31135 builtin and then its argument prototype would still apply. */
31136char inet_addr ();
31137int
31138main ()
31139{
31140inet_addr ();
31141 ;
31142 return 0;
31143}
31144_ACEOF
31145rm -f conftest.$ac_objext conftest$ac_exeext
31146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31147 (eval $ac_link) 2>conftest.er1
a848cd7e 31148 ac_status=$?
ac1cb8d3
VS
31149 grep -v '^ *+' conftest.er1 >conftest.err
31150 rm -f conftest.er1
31151 cat conftest.err >&5
a848cd7e
SC
31152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153 (exit $ac_status); } &&
7714864e 31154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31156 (eval $ac_try) 2>&5
31157 ac_status=$?
31158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159 (exit $ac_status); }; } &&
31160 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31162 (eval $ac_try) 2>&5
31163 ac_status=$?
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); }; }; then
31166 ac_cv_lib_socket_inet_addr=yes
31167else
31168 echo "$as_me: failed program was:" >&5
31169sed 's/^/| /' conftest.$ac_ext >&5
31170
31171ac_cv_lib_socket_inet_addr=no
31172fi
ac1cb8d3
VS
31173rm -f conftest.err conftest.$ac_objext \
31174 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31175LIBS=$ac_check_lib_save_LIBS
31176fi
31177echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31178echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31179if test $ac_cv_lib_socket_inet_addr = yes; then
31180 INET_LINK="socket"
31181
31182fi
31183
31184
31185
31186fi
31187
31188
31189
31190fi
31191
31192
31193
31194fi
31195done
31196
31197
31198
31199for ac_func in inet_aton
31200do
31201as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31202echo "$as_me:$LINENO: checking for $ac_func" >&5
31203echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31204if eval "test \"\${$as_ac_var+set}\" = set"; then
31205 echo $ECHO_N "(cached) $ECHO_C" >&6
31206else
31207 cat >conftest.$ac_ext <<_ACEOF
31208/* confdefs.h. */
31209_ACEOF
31210cat confdefs.h >>conftest.$ac_ext
31211cat >>conftest.$ac_ext <<_ACEOF
31212/* end confdefs.h. */
ac1cb8d3
VS
31213/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31215#define $ac_func innocuous_$ac_func
31216
a848cd7e
SC
31217/* System header to define __stub macros and hopefully few prototypes,
31218 which can conflict with char $ac_func (); below.
31219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31220 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31221
a848cd7e
SC
31222#ifdef __STDC__
31223# include <limits.h>
31224#else
31225# include <assert.h>
31226#endif
ac1cb8d3
VS
31227
31228#undef $ac_func
31229
a848cd7e
SC
31230/* Override any gcc2 internal prototype to avoid an error. */
31231#ifdef __cplusplus
31232extern "C"
31233{
31234#endif
31235/* We use char because int might match the return type of a gcc2
31236 builtin and then its argument prototype would still apply. */
31237char $ac_func ();
31238/* The GNU C library defines this for functions which it implements
31239 to always fail with ENOSYS. Some functions are actually named
31240 something starting with __ and the normal name is an alias. */
31241#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31242choke me
31243#else
31244char (*f) () = $ac_func;
31245#endif
31246#ifdef __cplusplus
31247}
31248#endif
31249
31250int
31251main ()
31252{
31253return f != $ac_func;
31254 ;
31255 return 0;
31256}
31257_ACEOF
31258rm -f conftest.$ac_objext conftest$ac_exeext
31259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31260 (eval $ac_link) 2>conftest.er1
a848cd7e 31261 ac_status=$?
ac1cb8d3
VS
31262 grep -v '^ *+' conftest.er1 >conftest.err
31263 rm -f conftest.er1
31264 cat conftest.err >&5
a848cd7e
SC
31265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31266 (exit $ac_status); } &&
7714864e 31267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31269 (eval $ac_try) 2>&5
31270 ac_status=$?
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); }; } &&
31273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31275 (eval $ac_try) 2>&5
31276 ac_status=$?
31277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31278 (exit $ac_status); }; }; then
31279 eval "$as_ac_var=yes"
31280else
31281 echo "$as_me: failed program was:" >&5
31282sed 's/^/| /' conftest.$ac_ext >&5
31283
31284eval "$as_ac_var=no"
31285fi
ac1cb8d3
VS
31286rm -f conftest.err conftest.$ac_objext \
31287 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31288fi
31289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31290echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31291if test `eval echo '${'$as_ac_var'}'` = yes; then
31292 cat >>confdefs.h <<_ACEOF
31293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31294_ACEOF
31295 cat >>confdefs.h <<\_ACEOF
31296#define HAVE_INET_ATON 1
31297_ACEOF
31298
31299else
31300
31301 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31302echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31303echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31304if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31305 echo $ECHO_N "(cached) $ECHO_C" >&6
31306else
31307 ac_check_lib_save_LIBS=$LIBS
31308LIBS="-l$INET_LINK $LIBS"
31309cat >conftest.$ac_ext <<_ACEOF
31310/* confdefs.h. */
31311_ACEOF
31312cat confdefs.h >>conftest.$ac_ext
31313cat >>conftest.$ac_ext <<_ACEOF
31314/* end confdefs.h. */
31315
31316/* Override any gcc2 internal prototype to avoid an error. */
31317#ifdef __cplusplus
31318extern "C"
31319#endif
31320/* We use char because int might match the return type of a gcc2
31321 builtin and then its argument prototype would still apply. */
31322char inet_aton ();
31323int
31324main ()
31325{
31326inet_aton ();
31327 ;
31328 return 0;
31329}
31330_ACEOF
31331rm -f conftest.$ac_objext conftest$ac_exeext
31332if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31333 (eval $ac_link) 2>conftest.er1
a848cd7e 31334 ac_status=$?
ac1cb8d3
VS
31335 grep -v '^ *+' conftest.er1 >conftest.err
31336 rm -f conftest.er1
31337 cat conftest.err >&5
a848cd7e
SC
31338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31339 (exit $ac_status); } &&
7714864e 31340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31342 (eval $ac_try) 2>&5
31343 ac_status=$?
31344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31345 (exit $ac_status); }; } &&
31346 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31348 (eval $ac_try) 2>&5
31349 ac_status=$?
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); }; }; then
31352 eval "$as_ac_Lib=yes"
31353else
31354 echo "$as_me: failed program was:" >&5
31355sed 's/^/| /' conftest.$ac_ext >&5
31356
31357eval "$as_ac_Lib=no"
31358fi
ac1cb8d3
VS
31359rm -f conftest.err conftest.$ac_objext \
31360 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31361LIBS=$ac_check_lib_save_LIBS
31362fi
31363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31364echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31365if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31366 cat >>confdefs.h <<\_ACEOF
31367#define HAVE_INET_ATON 1
31368_ACEOF
31369
31370fi
31371
31372
31373fi
31374done
31375
31376
31377if test "x$INET_LINK" != "x"; then
31378 cat >>confdefs.h <<\_ACEOF
31379#define HAVE_INET_ADDR 1
31380_ACEOF
31381
31382 INET_LINK=" -l$INET_LINK"
31383fi
31384
31385fi
31386
31387
31388
31389EXTRALIBS_ESD=
31390echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31391echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31392if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31393 echo $ECHO_N "(cached) $ECHO_C" >&6
31394else
31395 ac_check_lib_save_LIBS=$LIBS
31396LIBS="-lesd $LIBS"
31397cat >conftest.$ac_ext <<_ACEOF
31398/* confdefs.h. */
31399_ACEOF
31400cat confdefs.h >>conftest.$ac_ext
31401cat >>conftest.$ac_ext <<_ACEOF
31402/* end confdefs.h. */
31403
31404/* Override any gcc2 internal prototype to avoid an error. */
31405#ifdef __cplusplus
31406extern "C"
31407#endif
31408/* We use char because int might match the return type of a gcc2
31409 builtin and then its argument prototype would still apply. */
31410char esd_close ();
31411int
31412main ()
31413{
31414esd_close ();
31415 ;
31416 return 0;
31417}
31418_ACEOF
31419rm -f conftest.$ac_objext conftest$ac_exeext
31420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31421 (eval $ac_link) 2>conftest.er1
a848cd7e 31422 ac_status=$?
ac1cb8d3
VS
31423 grep -v '^ *+' conftest.er1 >conftest.err
31424 rm -f conftest.er1
31425 cat conftest.err >&5
a848cd7e
SC
31426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31427 (exit $ac_status); } &&
7714864e 31428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31430 (eval $ac_try) 2>&5
31431 ac_status=$?
31432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433 (exit $ac_status); }; } &&
31434 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31436 (eval $ac_try) 2>&5
31437 ac_status=$?
31438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31439 (exit $ac_status); }; }; then
31440 ac_cv_lib_esd_esd_close=yes
31441else
31442 echo "$as_me: failed program was:" >&5
31443sed 's/^/| /' conftest.$ac_ext >&5
31444
31445ac_cv_lib_esd_esd_close=no
31446fi
ac1cb8d3
VS
31447rm -f conftest.err conftest.$ac_objext \
31448 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31449LIBS=$ac_check_lib_save_LIBS
31450fi
31451echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31452echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31453if test $ac_cv_lib_esd_esd_close = yes; then
31454
31455
31456for ac_header in esd.h
31457do
31458as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31459if eval "test \"\${$as_ac_Header+set}\" = set"; then
31460 echo "$as_me:$LINENO: checking for $ac_header" >&5
31461echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31462if eval "test \"\${$as_ac_Header+set}\" = set"; then
31463 echo $ECHO_N "(cached) $ECHO_C" >&6
31464fi
31465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31466echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31467else
31468 # Is the header compilable?
31469echo "$as_me:$LINENO: checking $ac_header usability" >&5
31470echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31471cat >conftest.$ac_ext <<_ACEOF
31472/* confdefs.h. */
31473_ACEOF
31474cat confdefs.h >>conftest.$ac_ext
31475cat >>conftest.$ac_ext <<_ACEOF
31476/* end confdefs.h. */
31477$ac_includes_default
31478#include <$ac_header>
31479_ACEOF
31480rm -f conftest.$ac_objext
31481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31482 (eval $ac_compile) 2>conftest.er1
a848cd7e 31483 ac_status=$?
ac1cb8d3
VS
31484 grep -v '^ *+' conftest.er1 >conftest.err
31485 rm -f conftest.er1
31486 cat conftest.err >&5
a848cd7e
SC
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); } &&
7714864e 31489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31491 (eval $ac_try) 2>&5
31492 ac_status=$?
31493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494 (exit $ac_status); }; } &&
31495 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31497 (eval $ac_try) 2>&5
31498 ac_status=$?
31499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); }; }; then
31501 ac_header_compiler=yes
31502else
31503 echo "$as_me: failed program was:" >&5
31504sed 's/^/| /' conftest.$ac_ext >&5
31505
31506ac_header_compiler=no
31507fi
ac1cb8d3 31508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31509echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31510echo "${ECHO_T}$ac_header_compiler" >&6
31511
31512# Is the header present?
31513echo "$as_me:$LINENO: checking $ac_header presence" >&5
31514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31515cat >conftest.$ac_ext <<_ACEOF
31516/* confdefs.h. */
31517_ACEOF
31518cat confdefs.h >>conftest.$ac_ext
31519cat >>conftest.$ac_ext <<_ACEOF
31520/* end confdefs.h. */
31521#include <$ac_header>
31522_ACEOF
31523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31525 ac_status=$?
31526 grep -v '^ *+' conftest.er1 >conftest.err
31527 rm -f conftest.er1
31528 cat conftest.err >&5
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); } >/dev/null; then
31531 if test -s conftest.err; then
31532 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31534 else
31535 ac_cpp_err=
31536 fi
31537else
31538 ac_cpp_err=yes
31539fi
31540if test -z "$ac_cpp_err"; then
31541 ac_header_preproc=yes
31542else
31543 echo "$as_me: failed program was:" >&5
31544sed 's/^/| /' conftest.$ac_ext >&5
31545
31546 ac_header_preproc=no
31547fi
31548rm -f conftest.err conftest.$ac_ext
31549echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31550echo "${ECHO_T}$ac_header_preproc" >&6
31551
31552# So? What about this header?
ac1cb8d3
VS
31553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31554 yes:no: )
a848cd7e
SC
31555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31559 ac_header_preproc=yes
a848cd7e 31560 ;;
ac1cb8d3 31561 no:yes:* )
a848cd7e
SC
31562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31574 (
31575 cat <<\_ASBOX
ac1cb8d3
VS
31576## ----------------------------------------- ##
31577## Report this to wx-dev@lists.wxwidgets.org ##
31578## ----------------------------------------- ##
a848cd7e
SC
31579_ASBOX
31580 ) |
31581 sed "s/^/$as_me: WARNING: /" >&2
31582 ;;
31583esac
31584echo "$as_me:$LINENO: checking for $ac_header" >&5
31585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31586if eval "test \"\${$as_ac_Header+set}\" = set"; then
31587 echo $ECHO_N "(cached) $ECHO_C" >&6
31588else
ac1cb8d3 31589 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
31590fi
31591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31593
31594fi
31595if test `eval echo '${'$as_ac_Header'}'` = yes; then
31596 cat >>confdefs.h <<_ACEOF
31597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31598_ACEOF
31599
31600 EXTRALIBS_ESD="-lesd"
31601
31602fi
31603
31604done
31605
31606
31607fi
31608
31609
31610
31611echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31612echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31613cat >conftest.$ac_ext <<_ACEOF
31614/* confdefs.h. */
31615_ACEOF
31616cat confdefs.h >>conftest.$ac_ext
31617cat >>conftest.$ac_ext <<_ACEOF
31618/* end confdefs.h. */
31619#ifdef __linux__
31620 #include <linux/cdrom.h>
31621 #else
31622 /* For Solaris */
31623 #include <sys/cdio.h>
31624 #endif
31625
31626int
31627main ()
31628{
31629struct cdrom_tocentry entry, old_entry;
31630 ;
31631 return 0;
31632}
31633_ACEOF
31634rm -f conftest.$ac_objext
31635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31636 (eval $ac_compile) 2>conftest.er1
a848cd7e 31637 ac_status=$?
ac1cb8d3
VS
31638 grep -v '^ *+' conftest.er1 >conftest.err
31639 rm -f conftest.er1
31640 cat conftest.err >&5
a848cd7e
SC
31641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31642 (exit $ac_status); } &&
7714864e 31643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31645 (eval $ac_try) 2>&5
31646 ac_status=$?
31647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31648 (exit $ac_status); }; } &&
31649 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31651 (eval $ac_try) 2>&5
31652 ac_status=$?
31653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31654 (exit $ac_status); }; }; then
31655 echo "$as_me:$LINENO: result: yes" >&5
31656echo "${ECHO_T}yes" >&6
31657 cat >>confdefs.h <<\_ACEOF
31658#define HAVE_KNOWN_CDROM_INTERFACE 1
31659_ACEOF
31660
31661else
31662 echo "$as_me: failed program was:" >&5
31663sed 's/^/| /' conftest.$ac_ext >&5
31664
31665echo "$as_me:$LINENO: result: no" >&5
31666echo "${ECHO_T}no" >&6
31667fi
ac1cb8d3 31668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31669
31670
31671cat >confcache <<\_ACEOF
31672# This file is a shell script that caches the results of configure
31673# tests run on this system so they can be shared between configure
31674# scripts and configure runs, see configure's option --config-cache.
31675# It is not useful on other systems. If it contains results you don't
31676# want to keep, you may remove or edit it.
31677#
31678# config.status only pays attention to the cache file if you give it
31679# the --recheck option to rerun configure.
31680#
31681# `ac_cv_env_foo' variables (set or unset) will be overridden when
31682# loading this file, other *unset* `ac_cv_foo' will be assigned the
31683# following values.
31684
31685_ACEOF
31686
31687# The following way of writing the cache mishandles newlines in values,
31688# but we know of no workaround that is simple, portable, and efficient.
31689# So, don't put newlines in cache variables' values.
31690# Ultrix sh set writes to stderr and can't be redirected directly,
31691# and sets the high bit in the cache file unless we assign to the vars.
31692{
31693 (set) 2>&1 |
31694 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31695 *ac_space=\ *)
31696 # `set' does not quote correctly, so add quotes (double-quote
31697 # substitution turns \\\\ into \\, and sed turns \\ into \).
31698 sed -n \
ac1cb8d3
VS
31699 "s/'/'\\\\''/g;
31700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
31701 ;;
31702 *)
31703 # `set' quotes correctly as required by POSIX, so do not add quotes.
31704 sed -n \
ac1cb8d3 31705 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
31706 ;;
31707 esac;
31708} |
31709 sed '
31710 t clear
31711 : clear
31712 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31713 t end
31714 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31715 : end' >>confcache
31716if diff $cache_file confcache >/dev/null 2>&1; then :; else
31717 if test -w $cache_file; then
31718 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31719 cat confcache >$cache_file
31720 else
31721 echo "not updating unwritable cache $cache_file"
31722 fi
31723fi
31724rm -f confcache
31725
31726
31727CPP_MT_FLAG=
31728if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
31729
31730
31731 THREADS_LINK=
31732 THREADS_CFLAGS=
31733
31734 if test "$wxUSE_THREADS" = "yes" ; then
31735 if test "$USE_BEOS" = 1; then
31736 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31737echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
31738 wxUSE_THREADS="no"
31739 fi
31740 fi
31741
31742 if test "$wxUSE_THREADS" = "yes" ; then
31743
31744
31745 THREAD_OPTS="-pthread"
31746 case "${host}" in
31747 *-*-solaris2* | *-*-sunos4* )
31748 if test "x$GCC" = "xyes"; then
31749 THREAD_OPTS="-pthreads $THREAD_OPTS"
31750 else
31751 THREAD_OPTS="-mt $THREAD_OPTS"
31752 fi
31753 ;;
31754 *-*-freebsd*)
31755 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31756 ;;
31757 *-*-darwin* | *-*-cygwin* )
31758 THREAD_OPTS=""
31759 ;;
31760 *-*-aix*)
31761 THREAD_OPTS="pthreads"
31762 ;;
31763 *-hp-hpux* )
31764 if test "x$GCC" != "xyes"; then
31765 THREAD_OPTS=""
31766 fi
31767 ;;
31768
31769 *-*-irix* )
31770 if test "x$GCC" = "xyes"; then
31771 THREAD_OPTS=""
31772 fi
31773 ;;
31774
31775 *-*-*UnixWare*)
31776 if test "x$GCC" != "xyes"; then
31777 THREAD_OPTS="-Ethread"
31778 fi
31779 ;;
31780 esac
31781
31782 THREAD_OPTS="$THREAD_OPTS pthread none"
31783
31784 THREADS_OK=no
31785 for flag in $THREAD_OPTS; do
31786 case $flag in
31787 none)
31788 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31789echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
31790 ;;
31791
31792 -*)
31793 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31794echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
31795 THREADS_CFLAGS="$flag"
31796 ;;
31797
31798 *)
31799 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31800echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
31801 THREADS_LINK="-l$flag"
31802 ;;
31803 esac
31804
31805 save_LIBS="$LIBS"
31806 save_CFLAGS="$CFLAGS"
31807 LIBS="$THREADS_LINK $LIBS"
31808 CFLAGS="$THREADS_CFLAGS $CFLAGS"
31809
31810 cat >conftest.$ac_ext <<_ACEOF
31811/* confdefs.h. */
31812_ACEOF
31813cat confdefs.h >>conftest.$ac_ext
31814cat >>conftest.$ac_ext <<_ACEOF
31815/* end confdefs.h. */
31816#include <pthread.h>
31817int
31818main ()
31819{
31820pthread_create(0,0,0,0);
31821 ;
31822 return 0;
31823}
31824_ACEOF
31825rm -f conftest.$ac_objext conftest$ac_exeext
31826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31827 (eval $ac_link) 2>conftest.er1
a848cd7e 31828 ac_status=$?
ac1cb8d3
VS
31829 grep -v '^ *+' conftest.er1 >conftest.err
31830 rm -f conftest.er1
31831 cat conftest.err >&5
a848cd7e
SC
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); } &&
7714864e 31834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31836 (eval $ac_try) 2>&5
31837 ac_status=$?
31838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31839 (exit $ac_status); }; } &&
31840 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31842 (eval $ac_try) 2>&5
31843 ac_status=$?
31844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845 (exit $ac_status); }; }; then
31846 THREADS_OK=yes
31847else
31848 echo "$as_me: failed program was:" >&5
31849sed 's/^/| /' conftest.$ac_ext >&5
31850
31851fi
ac1cb8d3
VS
31852rm -f conftest.err conftest.$ac_objext \
31853 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31854
31855 LIBS="$save_LIBS"
31856 CFLAGS="$save_CFLAGS"
31857
31858 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31859echo "${ECHO_T}$THREADS_OK" >&6
31860 if test "x$THREADS_OK" = "xyes"; then
31861 break;
31862 fi
31863
31864 THREADS_LINK=""
31865 THREADS_CFLAGS=""
31866 done
31867
31868 if test "x$THREADS_OK" != "xyes"; then
31869 wxUSE_THREADS=no
31870 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31871echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
31872 else
31873 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31874 LIBS="$THREADS_LINK $LIBS"
31875
31876 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31877echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
31878 flag=no
31879 case "${host}" in
31880 *-aix*)
31881 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31882 flag="-D_THREAD_SAFE"
31883 ;;
31884 *-freebsd*)
31885 flag="-D_THREAD_SAFE"
31886 ;;
31887 *-hp-hpux* )
31888 flag="-D_REENTRANT"
31889 if test "x$GCC" != "xyes"; then
31890 flag="$flag -D_RWSTD_MULTI_THREAD"
473276a9
VS
31891
31892 LIBS="$LIBS -lcma"
a848cd7e
SC
31893 fi
31894 ;;
31895 *solaris* | alpha*-osf*)
31896 flag="-D_REENTRANT"
31897 ;;
31898 esac
31899 echo "$as_me:$LINENO: result: ${flag}" >&5
31900echo "${ECHO_T}${flag}" >&6
31901 if test "x$flag" != xno; then
31902 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
31903 fi
31904
31905 if test "x$THREADS_CFLAGS" != "x"; then
31906 CFLAGS="$CFLAGS $THREADS_CFLAGS"
31907 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31908 fi
31909 fi
31910 fi
31911
31912 if test "$wxUSE_THREADS" = "yes" ; then
31913
31914for ac_func in thr_setconcurrency
31915do
31916as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31917echo "$as_me:$LINENO: checking for $ac_func" >&5
31918echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31919if eval "test \"\${$as_ac_var+set}\" = set"; then
31920 echo $ECHO_N "(cached) $ECHO_C" >&6
31921else
31922 cat >conftest.$ac_ext <<_ACEOF
31923/* confdefs.h. */
31924_ACEOF
31925cat confdefs.h >>conftest.$ac_ext
31926cat >>conftest.$ac_ext <<_ACEOF
31927/* end confdefs.h. */
ac1cb8d3
VS
31928/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31930#define $ac_func innocuous_$ac_func
31931
a848cd7e
SC
31932/* System header to define __stub macros and hopefully few prototypes,
31933 which can conflict with char $ac_func (); below.
31934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31935 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31936
a848cd7e
SC
31937#ifdef __STDC__
31938# include <limits.h>
31939#else
31940# include <assert.h>
31941#endif
ac1cb8d3
VS
31942
31943#undef $ac_func
31944
a848cd7e
SC
31945/* Override any gcc2 internal prototype to avoid an error. */
31946#ifdef __cplusplus
31947extern "C"
31948{
31949#endif
31950/* We use char because int might match the return type of a gcc2
31951 builtin and then its argument prototype would still apply. */
31952char $ac_func ();
31953/* The GNU C library defines this for functions which it implements
31954 to always fail with ENOSYS. Some functions are actually named
31955 something starting with __ and the normal name is an alias. */
31956#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31957choke me
31958#else
31959char (*f) () = $ac_func;
31960#endif
31961#ifdef __cplusplus
31962}
31963#endif
31964
31965int
31966main ()
31967{
31968return f != $ac_func;
31969 ;
31970 return 0;
31971}
31972_ACEOF
31973rm -f conftest.$ac_objext conftest$ac_exeext
31974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31975 (eval $ac_link) 2>conftest.er1
a848cd7e 31976 ac_status=$?
ac1cb8d3
VS
31977 grep -v '^ *+' conftest.er1 >conftest.err
31978 rm -f conftest.er1
31979 cat conftest.err >&5
a848cd7e
SC
31980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981 (exit $ac_status); } &&
7714864e 31982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31984 (eval $ac_try) 2>&5
31985 ac_status=$?
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); }; } &&
31988 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31990 (eval $ac_try) 2>&5
31991 ac_status=$?
31992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993 (exit $ac_status); }; }; then
31994 eval "$as_ac_var=yes"
31995else
31996 echo "$as_me: failed program was:" >&5
31997sed 's/^/| /' conftest.$ac_ext >&5
31998
31999eval "$as_ac_var=no"
32000fi
ac1cb8d3
VS
32001rm -f conftest.err conftest.$ac_objext \
32002 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32003fi
32004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32005echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32006if test `eval echo '${'$as_ac_var'}'` = yes; then
32007 cat >>confdefs.h <<_ACEOF
32008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32009_ACEOF
32010
32011fi
32012done
32013
32014
32015
32016for ac_header in sched.h
32017do
32018as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32019if eval "test \"\${$as_ac_Header+set}\" = set"; then
32020 echo "$as_me:$LINENO: checking for $ac_header" >&5
32021echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32022if eval "test \"\${$as_ac_Header+set}\" = set"; then
32023 echo $ECHO_N "(cached) $ECHO_C" >&6
32024fi
32025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32026echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32027else
32028 # Is the header compilable?
32029echo "$as_me:$LINENO: checking $ac_header usability" >&5
32030echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32031cat >conftest.$ac_ext <<_ACEOF
32032/* confdefs.h. */
32033_ACEOF
32034cat confdefs.h >>conftest.$ac_ext
32035cat >>conftest.$ac_ext <<_ACEOF
32036/* end confdefs.h. */
32037$ac_includes_default
32038#include <$ac_header>
32039_ACEOF
32040rm -f conftest.$ac_objext
32041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32042 (eval $ac_compile) 2>conftest.er1
a848cd7e 32043 ac_status=$?
ac1cb8d3
VS
32044 grep -v '^ *+' conftest.er1 >conftest.err
32045 rm -f conftest.er1
32046 cat conftest.err >&5
a848cd7e
SC
32047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32048 (exit $ac_status); } &&
7714864e 32049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32051 (eval $ac_try) 2>&5
32052 ac_status=$?
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054 (exit $ac_status); }; } &&
32055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32057 (eval $ac_try) 2>&5
32058 ac_status=$?
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); }; }; then
32061 ac_header_compiler=yes
32062else
32063 echo "$as_me: failed program was:" >&5
32064sed 's/^/| /' conftest.$ac_ext >&5
32065
32066ac_header_compiler=no
32067fi
ac1cb8d3 32068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32069echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32070echo "${ECHO_T}$ac_header_compiler" >&6
32071
32072# Is the header present?
32073echo "$as_me:$LINENO: checking $ac_header presence" >&5
32074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32075cat >conftest.$ac_ext <<_ACEOF
32076/* confdefs.h. */
32077_ACEOF
32078cat confdefs.h >>conftest.$ac_ext
32079cat >>conftest.$ac_ext <<_ACEOF
32080/* end confdefs.h. */
32081#include <$ac_header>
32082_ACEOF
32083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32085 ac_status=$?
32086 grep -v '^ *+' conftest.er1 >conftest.err
32087 rm -f conftest.er1
32088 cat conftest.err >&5
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); } >/dev/null; then
32091 if test -s conftest.err; then
32092 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32094 else
32095 ac_cpp_err=
32096 fi
32097else
32098 ac_cpp_err=yes
32099fi
32100if test -z "$ac_cpp_err"; then
32101 ac_header_preproc=yes
32102else
32103 echo "$as_me: failed program was:" >&5
32104sed 's/^/| /' conftest.$ac_ext >&5
32105
32106 ac_header_preproc=no
32107fi
32108rm -f conftest.err conftest.$ac_ext
32109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32110echo "${ECHO_T}$ac_header_preproc" >&6
32111
32112# So? What about this header?
ac1cb8d3
VS
32113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32114 yes:no: )
a848cd7e
SC
32115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32118echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32119 ac_header_preproc=yes
a848cd7e 32120 ;;
ac1cb8d3 32121 no:yes:* )
a848cd7e
SC
32122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32123echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32125echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32127echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32129echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32131echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32133echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32134 (
32135 cat <<\_ASBOX
ac1cb8d3
VS
32136## ----------------------------------------- ##
32137## Report this to wx-dev@lists.wxwidgets.org ##
32138## ----------------------------------------- ##
a848cd7e
SC
32139_ASBOX
32140 ) |
32141 sed "s/^/$as_me: WARNING: /" >&2
32142 ;;
32143esac
32144echo "$as_me:$LINENO: checking for $ac_header" >&5
32145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32146if eval "test \"\${$as_ac_Header+set}\" = set"; then
32147 echo $ECHO_N "(cached) $ECHO_C" >&6
32148else
ac1cb8d3 32149 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32150fi
32151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32153
32154fi
32155if test `eval echo '${'$as_ac_Header'}'` = yes; then
32156 cat >>confdefs.h <<_ACEOF
32157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32158_ACEOF
32159
32160fi
32161
32162done
32163
32164 if test "$ac_cv_header_sched_h" = "yes"; then
32165 echo "$as_me:$LINENO: checking for sched_yield" >&5
32166echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32167if test "${ac_cv_func_sched_yield+set}" = set; then
32168 echo $ECHO_N "(cached) $ECHO_C" >&6
32169else
32170 cat >conftest.$ac_ext <<_ACEOF
32171/* confdefs.h. */
32172_ACEOF
32173cat confdefs.h >>conftest.$ac_ext
32174cat >>conftest.$ac_ext <<_ACEOF
32175/* end confdefs.h. */
ac1cb8d3
VS
32176/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32178#define sched_yield innocuous_sched_yield
32179
a848cd7e
SC
32180/* System header to define __stub macros and hopefully few prototypes,
32181 which can conflict with char sched_yield (); below.
32182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32183 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32184
a848cd7e
SC
32185#ifdef __STDC__
32186# include <limits.h>
32187#else
32188# include <assert.h>
32189#endif
ac1cb8d3
VS
32190
32191#undef sched_yield
32192
a848cd7e
SC
32193/* Override any gcc2 internal prototype to avoid an error. */
32194#ifdef __cplusplus
32195extern "C"
32196{
32197#endif
32198/* We use char because int might match the return type of a gcc2
32199 builtin and then its argument prototype would still apply. */
32200char sched_yield ();
32201/* The GNU C library defines this for functions which it implements
32202 to always fail with ENOSYS. Some functions are actually named
32203 something starting with __ and the normal name is an alias. */
32204#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32205choke me
32206#else
32207char (*f) () = sched_yield;
32208#endif
32209#ifdef __cplusplus
32210}
32211#endif
32212
32213int
32214main ()
32215{
32216return f != sched_yield;
32217 ;
32218 return 0;
32219}
32220_ACEOF
32221rm -f conftest.$ac_objext conftest$ac_exeext
32222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32223 (eval $ac_link) 2>conftest.er1
a848cd7e 32224 ac_status=$?
ac1cb8d3
VS
32225 grep -v '^ *+' conftest.er1 >conftest.err
32226 rm -f conftest.er1
32227 cat conftest.err >&5
a848cd7e
SC
32228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32229 (exit $ac_status); } &&
7714864e 32230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32232 (eval $ac_try) 2>&5
32233 ac_status=$?
32234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32235 (exit $ac_status); }; } &&
32236 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32238 (eval $ac_try) 2>&5
32239 ac_status=$?
32240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32241 (exit $ac_status); }; }; then
32242 ac_cv_func_sched_yield=yes
32243else
32244 echo "$as_me: failed program was:" >&5
32245sed 's/^/| /' conftest.$ac_ext >&5
32246
32247ac_cv_func_sched_yield=no
32248fi
ac1cb8d3
VS
32249rm -f conftest.err conftest.$ac_objext \
32250 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32251fi
32252echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32253echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32254if test $ac_cv_func_sched_yield = yes; then
32255 cat >>confdefs.h <<\_ACEOF
32256#define HAVE_SCHED_YIELD 1
32257_ACEOF
32258
32259else
32260
32261 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32262echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32263if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32264 echo $ECHO_N "(cached) $ECHO_C" >&6
32265else
32266 ac_check_lib_save_LIBS=$LIBS
32267LIBS="-lposix4 $LIBS"
32268cat >conftest.$ac_ext <<_ACEOF
32269/* confdefs.h. */
32270_ACEOF
32271cat confdefs.h >>conftest.$ac_ext
32272cat >>conftest.$ac_ext <<_ACEOF
32273/* end confdefs.h. */
32274
32275/* Override any gcc2 internal prototype to avoid an error. */
32276#ifdef __cplusplus
32277extern "C"
32278#endif
32279/* We use char because int might match the return type of a gcc2
32280 builtin and then its argument prototype would still apply. */
32281char sched_yield ();
32282int
32283main ()
32284{
32285sched_yield ();
32286 ;
32287 return 0;
32288}
32289_ACEOF
32290rm -f conftest.$ac_objext conftest$ac_exeext
32291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32292 (eval $ac_link) 2>conftest.er1
a848cd7e 32293 ac_status=$?
ac1cb8d3
VS
32294 grep -v '^ *+' conftest.er1 >conftest.err
32295 rm -f conftest.er1
32296 cat conftest.err >&5
a848cd7e
SC
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 (exit $ac_status); } &&
7714864e 32299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32301 (eval $ac_try) 2>&5
32302 ac_status=$?
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; } &&
32305 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32307 (eval $ac_try) 2>&5
32308 ac_status=$?
32309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32310 (exit $ac_status); }; }; then
32311 ac_cv_lib_posix4_sched_yield=yes
32312else
32313 echo "$as_me: failed program was:" >&5
32314sed 's/^/| /' conftest.$ac_ext >&5
32315
32316ac_cv_lib_posix4_sched_yield=no
32317fi
ac1cb8d3
VS
32318rm -f conftest.err conftest.$ac_objext \
32319 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32320LIBS=$ac_check_lib_save_LIBS
32321fi
32322echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32323echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32324if test $ac_cv_lib_posix4_sched_yield = yes; then
32325 cat >>confdefs.h <<\_ACEOF
32326#define HAVE_SCHED_YIELD 1
32327_ACEOF
32328 POSIX4_LINK=" -lposix4"
32329else
32330 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32331echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32332
32333fi
32334
32335
32336
32337fi
32338
32339 fi
32340
32341 HAVE_PRIOR_FUNCS=0
32342 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32343echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32344if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32345 echo $ECHO_N "(cached) $ECHO_C" >&6
32346else
32347 cat >conftest.$ac_ext <<_ACEOF
32348/* confdefs.h. */
32349_ACEOF
32350cat confdefs.h >>conftest.$ac_ext
32351cat >>conftest.$ac_ext <<_ACEOF
32352/* end confdefs.h. */
ac1cb8d3
VS
32353/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32355#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32356
a848cd7e
SC
32357/* System header to define __stub macros and hopefully few prototypes,
32358 which can conflict with char pthread_attr_getschedpolicy (); below.
32359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32360 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32361
a848cd7e
SC
32362#ifdef __STDC__
32363# include <limits.h>
32364#else
32365# include <assert.h>
32366#endif
ac1cb8d3
VS
32367
32368#undef pthread_attr_getschedpolicy
32369
a848cd7e
SC
32370/* Override any gcc2 internal prototype to avoid an error. */
32371#ifdef __cplusplus
32372extern "C"
32373{
32374#endif
32375/* We use char because int might match the return type of a gcc2
32376 builtin and then its argument prototype would still apply. */
32377char pthread_attr_getschedpolicy ();
32378/* The GNU C library defines this for functions which it implements
32379 to always fail with ENOSYS. Some functions are actually named
32380 something starting with __ and the normal name is an alias. */
32381#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32382choke me
32383#else
32384char (*f) () = pthread_attr_getschedpolicy;
32385#endif
32386#ifdef __cplusplus
32387}
32388#endif
32389
32390int
32391main ()
32392{
32393return f != pthread_attr_getschedpolicy;
32394 ;
32395 return 0;
32396}
32397_ACEOF
32398rm -f conftest.$ac_objext conftest$ac_exeext
32399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32400 (eval $ac_link) 2>conftest.er1
a848cd7e 32401 ac_status=$?
ac1cb8d3
VS
32402 grep -v '^ *+' conftest.er1 >conftest.err
32403 rm -f conftest.er1
32404 cat conftest.err >&5
a848cd7e
SC
32405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32406 (exit $ac_status); } &&
7714864e 32407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32409 (eval $ac_try) 2>&5
32410 ac_status=$?
32411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32412 (exit $ac_status); }; } &&
32413 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32415 (eval $ac_try) 2>&5
32416 ac_status=$?
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); }; }; then
32419 ac_cv_func_pthread_attr_getschedpolicy=yes
32420else
32421 echo "$as_me: failed program was:" >&5
32422sed 's/^/| /' conftest.$ac_ext >&5
32423
32424ac_cv_func_pthread_attr_getschedpolicy=no
32425fi
ac1cb8d3
VS
32426rm -f conftest.err conftest.$ac_objext \
32427 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32428fi
32429echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32430echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32431if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32432 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32433echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32434if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32435 echo $ECHO_N "(cached) $ECHO_C" >&6
32436else
32437 cat >conftest.$ac_ext <<_ACEOF
32438/* confdefs.h. */
32439_ACEOF
32440cat confdefs.h >>conftest.$ac_ext
32441cat >>conftest.$ac_ext <<_ACEOF
32442/* end confdefs.h. */
ac1cb8d3
VS
32443/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32445#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32446
a848cd7e
SC
32447/* System header to define __stub macros and hopefully few prototypes,
32448 which can conflict with char pthread_attr_setschedparam (); below.
32449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32450 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32451
a848cd7e
SC
32452#ifdef __STDC__
32453# include <limits.h>
32454#else
32455# include <assert.h>
32456#endif
ac1cb8d3
VS
32457
32458#undef pthread_attr_setschedparam
32459
a848cd7e
SC
32460/* Override any gcc2 internal prototype to avoid an error. */
32461#ifdef __cplusplus
32462extern "C"
32463{
32464#endif
32465/* We use char because int might match the return type of a gcc2
32466 builtin and then its argument prototype would still apply. */
32467char pthread_attr_setschedparam ();
32468/* The GNU C library defines this for functions which it implements
32469 to always fail with ENOSYS. Some functions are actually named
32470 something starting with __ and the normal name is an alias. */
32471#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32472choke me
32473#else
32474char (*f) () = pthread_attr_setschedparam;
32475#endif
32476#ifdef __cplusplus
32477}
32478#endif
32479
32480int
32481main ()
32482{
32483return f != pthread_attr_setschedparam;
32484 ;
32485 return 0;
32486}
32487_ACEOF
32488rm -f conftest.$ac_objext conftest$ac_exeext
32489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32490 (eval $ac_link) 2>conftest.er1
a848cd7e 32491 ac_status=$?
ac1cb8d3
VS
32492 grep -v '^ *+' conftest.er1 >conftest.err
32493 rm -f conftest.er1
32494 cat conftest.err >&5
a848cd7e
SC
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); } &&
7714864e 32497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32499 (eval $ac_try) 2>&5
32500 ac_status=$?
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); }; } &&
32503 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32505 (eval $ac_try) 2>&5
32506 ac_status=$?
32507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508 (exit $ac_status); }; }; then
32509 ac_cv_func_pthread_attr_setschedparam=yes
32510else
32511 echo "$as_me: failed program was:" >&5
32512sed 's/^/| /' conftest.$ac_ext >&5
32513
32514ac_cv_func_pthread_attr_setschedparam=no
32515fi
ac1cb8d3
VS
32516rm -f conftest.err conftest.$ac_objext \
32517 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32518fi
32519echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32520echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32521if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32522 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32523echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32524if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32525 echo $ECHO_N "(cached) $ECHO_C" >&6
32526else
32527 cat >conftest.$ac_ext <<_ACEOF
32528/* confdefs.h. */
32529_ACEOF
32530cat confdefs.h >>conftest.$ac_ext
32531cat >>conftest.$ac_ext <<_ACEOF
32532/* end confdefs.h. */
ac1cb8d3
VS
32533/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32535#define sched_get_priority_max innocuous_sched_get_priority_max
32536
a848cd7e
SC
32537/* System header to define __stub macros and hopefully few prototypes,
32538 which can conflict with char sched_get_priority_max (); below.
32539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32540 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32541
a848cd7e
SC
32542#ifdef __STDC__
32543# include <limits.h>
32544#else
32545# include <assert.h>
32546#endif
ac1cb8d3
VS
32547
32548#undef sched_get_priority_max
32549
a848cd7e
SC
32550/* Override any gcc2 internal prototype to avoid an error. */
32551#ifdef __cplusplus
32552extern "C"
32553{
32554#endif
32555/* We use char because int might match the return type of a gcc2
32556 builtin and then its argument prototype would still apply. */
32557char sched_get_priority_max ();
32558/* The GNU C library defines this for functions which it implements
32559 to always fail with ENOSYS. Some functions are actually named
32560 something starting with __ and the normal name is an alias. */
32561#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32562choke me
32563#else
32564char (*f) () = sched_get_priority_max;
32565#endif
32566#ifdef __cplusplus
32567}
32568#endif
32569
32570int
32571main ()
32572{
32573return f != sched_get_priority_max;
32574 ;
32575 return 0;
32576}
32577_ACEOF
32578rm -f conftest.$ac_objext conftest$ac_exeext
32579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32580 (eval $ac_link) 2>conftest.er1
a848cd7e 32581 ac_status=$?
ac1cb8d3
VS
32582 grep -v '^ *+' conftest.er1 >conftest.err
32583 rm -f conftest.er1
32584 cat conftest.err >&5
a848cd7e
SC
32585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32586 (exit $ac_status); } &&
7714864e 32587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32589 (eval $ac_try) 2>&5
32590 ac_status=$?
32591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32592 (exit $ac_status); }; } &&
32593 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32595 (eval $ac_try) 2>&5
32596 ac_status=$?
32597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32598 (exit $ac_status); }; }; then
32599 ac_cv_func_sched_get_priority_max=yes
32600else
32601 echo "$as_me: failed program was:" >&5
32602sed 's/^/| /' conftest.$ac_ext >&5
32603
32604ac_cv_func_sched_get_priority_max=no
32605fi
ac1cb8d3
VS
32606rm -f conftest.err conftest.$ac_objext \
32607 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32608fi
32609echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32610echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32611if test $ac_cv_func_sched_get_priority_max = yes; then
32612 HAVE_PRIOR_FUNCS=1
32613else
32614 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32615echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32616if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32617 echo $ECHO_N "(cached) $ECHO_C" >&6
32618else
32619 ac_check_lib_save_LIBS=$LIBS
32620LIBS="-lposix4 $LIBS"
32621cat >conftest.$ac_ext <<_ACEOF
32622/* confdefs.h. */
32623_ACEOF
32624cat confdefs.h >>conftest.$ac_ext
32625cat >>conftest.$ac_ext <<_ACEOF
32626/* end confdefs.h. */
32627
32628/* Override any gcc2 internal prototype to avoid an error. */
32629#ifdef __cplusplus
32630extern "C"
32631#endif
32632/* We use char because int might match the return type of a gcc2
32633 builtin and then its argument prototype would still apply. */
32634char sched_get_priority_max ();
32635int
32636main ()
32637{
32638sched_get_priority_max ();
32639 ;
32640 return 0;
32641}
32642_ACEOF
32643rm -f conftest.$ac_objext conftest$ac_exeext
32644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32645 (eval $ac_link) 2>conftest.er1
a848cd7e 32646 ac_status=$?
ac1cb8d3
VS
32647 grep -v '^ *+' conftest.er1 >conftest.err
32648 rm -f conftest.er1
32649 cat conftest.err >&5
a848cd7e
SC
32650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651 (exit $ac_status); } &&
7714864e 32652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32654 (eval $ac_try) 2>&5
32655 ac_status=$?
32656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); }; } &&
32658 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32660 (eval $ac_try) 2>&5
32661 ac_status=$?
32662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32663 (exit $ac_status); }; }; then
32664 ac_cv_lib_posix4_sched_get_priority_max=yes
32665else
32666 echo "$as_me: failed program was:" >&5
32667sed 's/^/| /' conftest.$ac_ext >&5
32668
32669ac_cv_lib_posix4_sched_get_priority_max=no
32670fi
ac1cb8d3
VS
32671rm -f conftest.err conftest.$ac_objext \
32672 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32673LIBS=$ac_check_lib_save_LIBS
32674fi
32675echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32676echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32677if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
32678
32679 HAVE_PRIOR_FUNCS=1
32680 POSIX4_LINK=" -lposix4"
32681
32682fi
32683
32684
32685fi
32686
32687
32688fi
32689
32690
32691fi
32692
32693
32694 if test "$HAVE_PRIOR_FUNCS" = 1; then
32695 cat >>confdefs.h <<\_ACEOF
32696#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
32697_ACEOF
32698
32699 else
32700 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32701echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
32702 fi
32703
32704 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32705echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32706if test "${ac_cv_func_pthread_cancel+set}" = set; then
32707 echo $ECHO_N "(cached) $ECHO_C" >&6
32708else
32709 cat >conftest.$ac_ext <<_ACEOF
32710/* confdefs.h. */
32711_ACEOF
32712cat confdefs.h >>conftest.$ac_ext
32713cat >>conftest.$ac_ext <<_ACEOF
32714/* end confdefs.h. */
ac1cb8d3
VS
32715/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32717#define pthread_cancel innocuous_pthread_cancel
32718
a848cd7e
SC
32719/* System header to define __stub macros and hopefully few prototypes,
32720 which can conflict with char pthread_cancel (); below.
32721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32722 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32723
a848cd7e
SC
32724#ifdef __STDC__
32725# include <limits.h>
32726#else
32727# include <assert.h>
32728#endif
ac1cb8d3
VS
32729
32730#undef pthread_cancel
32731
a848cd7e
SC
32732/* Override any gcc2 internal prototype to avoid an error. */
32733#ifdef __cplusplus
32734extern "C"
32735{
32736#endif
32737/* We use char because int might match the return type of a gcc2
32738 builtin and then its argument prototype would still apply. */
32739char pthread_cancel ();
32740/* The GNU C library defines this for functions which it implements
32741 to always fail with ENOSYS. Some functions are actually named
32742 something starting with __ and the normal name is an alias. */
32743#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32744choke me
32745#else
32746char (*f) () = pthread_cancel;
32747#endif
32748#ifdef __cplusplus
32749}
32750#endif
32751
32752int
32753main ()
32754{
32755return f != pthread_cancel;
32756 ;
32757 return 0;
32758}
32759_ACEOF
32760rm -f conftest.$ac_objext conftest$ac_exeext
32761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32762 (eval $ac_link) 2>conftest.er1
a848cd7e 32763 ac_status=$?
ac1cb8d3
VS
32764 grep -v '^ *+' conftest.er1 >conftest.err
32765 rm -f conftest.er1
32766 cat conftest.err >&5
a848cd7e
SC
32767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32768 (exit $ac_status); } &&
7714864e 32769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32771 (eval $ac_try) 2>&5
32772 ac_status=$?
32773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32774 (exit $ac_status); }; } &&
32775 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32777 (eval $ac_try) 2>&5
32778 ac_status=$?
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); }; }; then
32781 ac_cv_func_pthread_cancel=yes
32782else
32783 echo "$as_me: failed program was:" >&5
32784sed 's/^/| /' conftest.$ac_ext >&5
32785
32786ac_cv_func_pthread_cancel=no
32787fi
ac1cb8d3
VS
32788rm -f conftest.err conftest.$ac_objext \
32789 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32790fi
32791echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32792echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32793if test $ac_cv_func_pthread_cancel = yes; then
32794 cat >>confdefs.h <<\_ACEOF
32795#define HAVE_PTHREAD_CANCEL 1
32796_ACEOF
32797
32798else
32799 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32800echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
32801fi
32802
32803
32804
32805
32806 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32807echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32808if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32809 echo $ECHO_N "(cached) $ECHO_C" >&6
32810else
32811
32812 cat >conftest.$ac_ext <<_ACEOF
32813/* confdefs.h. */
32814_ACEOF
32815cat confdefs.h >>conftest.$ac_ext
32816cat >>conftest.$ac_ext <<_ACEOF
32817/* end confdefs.h. */
32818#include <pthread.h>
32819int
32820main ()
32821{
32822
32823 pthread_mutexattr_t attr;
32824 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
32825
32826 ;
32827 return 0;
32828}
32829_ACEOF
32830rm -f conftest.$ac_objext
32831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32832 (eval $ac_compile) 2>conftest.er1
a848cd7e 32833 ac_status=$?
ac1cb8d3
VS
32834 grep -v '^ *+' conftest.er1 >conftest.err
32835 rm -f conftest.er1
32836 cat conftest.err >&5
a848cd7e
SC
32837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32838 (exit $ac_status); } &&
7714864e 32839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32841 (eval $ac_try) 2>&5
32842 ac_status=$?
32843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844 (exit $ac_status); }; } &&
32845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32847 (eval $ac_try) 2>&5
32848 ac_status=$?
32849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850 (exit $ac_status); }; }; then
32851
32852 wx_cv_type_pthread_mutexattr_t=yes
32853
32854else
32855 echo "$as_me: failed program was:" >&5
32856sed 's/^/| /' conftest.$ac_ext >&5
32857
32858
32859 wx_cv_type_pthread_mutexattr_t=no
32860
32861
32862fi
ac1cb8d3 32863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32864
32865fi
32866echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32867echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
32868
32869 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
32870 cat >>confdefs.h <<\_ACEOF
32871#define HAVE_PTHREAD_MUTEXATTR_T 1
32872_ACEOF
32873
32874 else
32875 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32876echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32877if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32878 echo $ECHO_N "(cached) $ECHO_C" >&6
32879else
32880
32881 cat >conftest.$ac_ext <<_ACEOF
32882/* confdefs.h. */
32883_ACEOF
32884cat confdefs.h >>conftest.$ac_ext
32885cat >>conftest.$ac_ext <<_ACEOF
32886/* end confdefs.h. */
32887#include <pthread.h>
32888int
32889main ()
32890{
32891
32892 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
32893
32894 ;
32895 return 0;
32896}
32897_ACEOF
32898rm -f conftest.$ac_objext
32899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32900 (eval $ac_compile) 2>conftest.er1
a848cd7e 32901 ac_status=$?
ac1cb8d3
VS
32902 grep -v '^ *+' conftest.er1 >conftest.err
32903 rm -f conftest.er1
32904 cat conftest.err >&5
a848cd7e
SC
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); } &&
7714864e 32907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32909 (eval $ac_try) 2>&5
32910 ac_status=$?
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); }; } &&
32913 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32915 (eval $ac_try) 2>&5
32916 ac_status=$?
32917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918 (exit $ac_status); }; }; then
32919
32920 wx_cv_type_pthread_rec_mutex_init=yes
32921
32922else
32923 echo "$as_me: failed program was:" >&5
32924sed 's/^/| /' conftest.$ac_ext >&5
32925
32926
32927 wx_cv_type_pthread_rec_mutex_init=no
32928
32929
32930fi
ac1cb8d3 32931rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32932
32933fi
32934echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32935echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
32936 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
32937 cat >>confdefs.h <<\_ACEOF
32938#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
32939_ACEOF
32940
32941 else
32942 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32943echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
32944 fi
32945 fi
32946 fi
32947
32948else
32949 if test "$wxUSE_THREADS" = "yes" ; then
32950 case "${host}" in
32951 *-*-mingw32* )
32952 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32953echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32954if test "${wx_cv_cflags_mthread+set}" = set; then
32955 echo $ECHO_N "(cached) $ECHO_C" >&6
32956else
32957
32958 CFLAGS_OLD="$CFLAGS"
32959 CFLAGS="$CFLAGS -mthreads"
32960 cat >conftest.$ac_ext <<_ACEOF
32961/* confdefs.h. */
32962_ACEOF
32963cat confdefs.h >>conftest.$ac_ext
32964cat >>conftest.$ac_ext <<_ACEOF
32965/* end confdefs.h. */
32966
32967int
32968main ()
32969{
32970
32971 ;
32972 return 0;
32973}
32974_ACEOF
32975rm -f conftest.$ac_objext
32976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32977 (eval $ac_compile) 2>conftest.er1
a848cd7e 32978 ac_status=$?
ac1cb8d3
VS
32979 grep -v '^ *+' conftest.er1 >conftest.err
32980 rm -f conftest.er1
32981 cat conftest.err >&5
a848cd7e
SC
32982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32983 (exit $ac_status); } &&
7714864e 32984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32986 (eval $ac_try) 2>&5
32987 ac_status=$?
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); }; } &&
32990 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32992 (eval $ac_try) 2>&5
32993 ac_status=$?
32994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32995 (exit $ac_status); }; }; then
32996 wx_cv_cflags_mthread=yes
32997else
32998 echo "$as_me: failed program was:" >&5
32999sed 's/^/| /' conftest.$ac_ext >&5
33000
33001wx_cv_cflags_mthread=no
33002
33003fi
ac1cb8d3 33004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33005
33006
33007fi
33008echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33009echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33010
33011 if test "$wx_cv_cflags_mthread" = "yes"; then
33012 CXXFLAGS="$CXXFLAGS -mthreads"
33013 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33014 LDFLAGS="$LDFLAGS -mthreads"
33015 else
33016 CFLAGS="$CFLAGS_OLD"
33017 fi
33018 ;;
33019 *-pc-os2*emx )
33020 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33021 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33022 LDFLAGS="$LDFLAGS -Zmt"
33023 ;;
33024 esac
33025 fi
33026fi
33027
33028if test "$wxUSE_THREADS" = "yes"; then
33029 cat >>confdefs.h <<\_ACEOF
33030#define wxUSE_THREADS 1
33031_ACEOF
33032
33033
33034 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33035else
33036 if test "$ac_cv_func_strtok_r" = "yes"; then
33037 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33038echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33039 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33040 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33041 echo "$as_me:$LINENO: result: yes" >&5
33042echo "${ECHO_T}yes" >&6
33043 else
33044 echo "$as_me:$LINENO: result: no" >&5
33045echo "${ECHO_T}no" >&6
33046 fi
33047 fi
33048fi
33049
33050if test "$WXGTK20" = 1 ; then
33051 cat >>confdefs.h <<_ACEOF
33052#define __WXGTK20__ $WXGTK20
33053_ACEOF
33054
33055 WXGTK12=1
33056fi
33057
33058if test "$WXGTK12" = 1 ; then
33059 cat >>confdefs.h <<_ACEOF
33060#define __WXGTK12__ $WXGTK12
33061_ACEOF
33062
33063fi
33064
33065if test "$WXGTK127" = 1 ; then
33066 cat >>confdefs.h <<_ACEOF
33067#define __WXGTK127__ $WXGTK127
33068_ACEOF
33069
33070fi
33071
33072if test "$WXGPE" = 1 ; then
33073 cat >>confdefs.h <<_ACEOF
33074#define __WXGPE__ $WXGPE
33075_ACEOF
33076
33077fi
33078
33079WXDEBUG=
33080
33081if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33082 WXDEBUG="-g"
33083 wxUSE_OPTIMISE=no
33084fi
33085
33086if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33087 wxUSE_DEBUG_INFO=yes
33088 WXDEBUG="-ggdb"
33089fi
33090
33091if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33092 cat >>confdefs.h <<\_ACEOF
33093#define WXDEBUG 1
33094_ACEOF
33095
33096 WXDEBUG_DEFINE="-D__WXDEBUG__"
33097else
33098 if test "$wxUSE_GTK" = 1 ; then
33099 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33100 fi
33101fi
33102
33103if test "$wxUSE_MEM_TRACING" = "yes" ; then
33104 cat >>confdefs.h <<\_ACEOF
33105#define wxUSE_MEMORY_TRACING 1
33106_ACEOF
33107
33108 cat >>confdefs.h <<\_ACEOF
33109#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33110_ACEOF
33111
33112 cat >>confdefs.h <<\_ACEOF
33113#define wxUSE_DEBUG_NEW_ALWAYS 1
33114_ACEOF
33115
33116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33117fi
33118
33119if test "$wxUSE_DMALLOC" = "yes" ; then
33120 DMALLOC_LIBS="-ldmalloc"
33121fi
33122
33123PROFILE=
33124if test "$wxUSE_PROFILE" = "yes" ; then
33125 PROFILE=" -pg"
33126fi
33127
33128CODE_GEN_FLAGS=
33129CODE_GEN_FLAGS_CXX=
33130if test "$GCC" = "yes" ; then
33131 if test "$wxUSE_NO_RTTI" = "yes" ; then
33132 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33133 fi
33134 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33135 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33136 fi
33137 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33138 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33139 fi
33140
33141 case "${host}" in
33142 powerpc*-*-aix* )
33143 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33144 ;;
33145 *-hppa* )
33146 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33147 ;;
33148 esac
33149fi
33150
33151OPTIMISE=
33152if test "$wxUSE_OPTIMISE" = "no" ; then
33153 if test "$GCC" = yes ; then
33154 OPTIMISE="-O0"
33155 fi
33156else
33157 if test "$GCC" = yes ; then
33158 OPTIMISE="-O2"
33159
33160 case "${host}" in
33161 i586-*-*|i686-*-* )
33162 OPTIMISE="${OPTIMISE} "
33163 ;;
33164 esac
33165 else
33166 OPTIMISE="-O"
33167 fi
33168fi
33169
33170
33171if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33172 cat >>confdefs.h <<\_ACEOF
33173#define WXWIN_COMPATIBILITY_2_2 1
33174_ACEOF
33175
33176
33177 WXWIN_COMPATIBILITY_2_4="yes"
33178fi
33179
33180if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33181 cat >>confdefs.h <<\_ACEOF
33182#define WXWIN_COMPATIBILITY_2_4 1
33183_ACEOF
33184
33185fi
33186
33187
33188if test "$wxUSE_GUI" = "yes"; then
33189 cat >>confdefs.h <<\_ACEOF
33190#define wxUSE_GUI 1
33191_ACEOF
33192
33193
33194 else
33195 cat >>confdefs.h <<\_ACEOF
33196#define wxUSE_NOGUI 1
33197_ACEOF
33198
33199fi
33200
33201
33202if test "$wxUSE_UNIX" = "yes"; then
33203 cat >>confdefs.h <<\_ACEOF
33204#define wxUSE_UNIX 1
33205_ACEOF
33206
33207fi
33208
33209
33210if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33211
33212 HAVE_DL_FUNCS=0
33213 HAVE_SHL_FUNCS=0
33214 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33215 if test "$USE_DARWIN" = 1; then
33216 HAVE_DL_FUNCS=1
33217 else
33218
33219for ac_func in dlopen
33220do
33221as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33222echo "$as_me:$LINENO: checking for $ac_func" >&5
33223echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33224if eval "test \"\${$as_ac_var+set}\" = set"; then
33225 echo $ECHO_N "(cached) $ECHO_C" >&6
33226else
33227 cat >conftest.$ac_ext <<_ACEOF
33228/* confdefs.h. */
33229_ACEOF
33230cat confdefs.h >>conftest.$ac_ext
33231cat >>conftest.$ac_ext <<_ACEOF
33232/* end confdefs.h. */
ac1cb8d3
VS
33233/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33235#define $ac_func innocuous_$ac_func
33236
a848cd7e
SC
33237/* System header to define __stub macros and hopefully few prototypes,
33238 which can conflict with char $ac_func (); below.
33239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33240 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33241
a848cd7e
SC
33242#ifdef __STDC__
33243# include <limits.h>
33244#else
33245# include <assert.h>
33246#endif
ac1cb8d3
VS
33247
33248#undef $ac_func
33249
a848cd7e
SC
33250/* Override any gcc2 internal prototype to avoid an error. */
33251#ifdef __cplusplus
33252extern "C"
33253{
33254#endif
33255/* We use char because int might match the return type of a gcc2
33256 builtin and then its argument prototype would still apply. */
33257char $ac_func ();
33258/* The GNU C library defines this for functions which it implements
33259 to always fail with ENOSYS. Some functions are actually named
33260 something starting with __ and the normal name is an alias. */
33261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33262choke me
33263#else
33264char (*f) () = $ac_func;
33265#endif
33266#ifdef __cplusplus
33267}
33268#endif
33269
33270int
33271main ()
33272{
33273return f != $ac_func;
33274 ;
33275 return 0;
33276}
33277_ACEOF
33278rm -f conftest.$ac_objext conftest$ac_exeext
33279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33280 (eval $ac_link) 2>conftest.er1
a848cd7e 33281 ac_status=$?
ac1cb8d3
VS
33282 grep -v '^ *+' conftest.er1 >conftest.err
33283 rm -f conftest.er1
33284 cat conftest.err >&5
a848cd7e
SC
33285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286 (exit $ac_status); } &&
7714864e 33287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33289 (eval $ac_try) 2>&5
33290 ac_status=$?
33291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33292 (exit $ac_status); }; } &&
33293 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33295 (eval $ac_try) 2>&5
33296 ac_status=$?
33297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298 (exit $ac_status); }; }; then
33299 eval "$as_ac_var=yes"
33300else
33301 echo "$as_me: failed program was:" >&5
33302sed 's/^/| /' conftest.$ac_ext >&5
33303
33304eval "$as_ac_var=no"
33305fi
ac1cb8d3
VS
33306rm -f conftest.err conftest.$ac_objext \
33307 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33308fi
33309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33310echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33311if test `eval echo '${'$as_ac_var'}'` = yes; then
33312 cat >>confdefs.h <<_ACEOF
33313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33314_ACEOF
33315
33316 cat >>confdefs.h <<\_ACEOF
33317#define HAVE_DLOPEN 1
33318_ACEOF
33319
33320 HAVE_DL_FUNCS=1
33321
33322else
33323
33324 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33325echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33326if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33327 echo $ECHO_N "(cached) $ECHO_C" >&6
33328else
33329 ac_check_lib_save_LIBS=$LIBS
33330LIBS="-ldl $LIBS"
33331cat >conftest.$ac_ext <<_ACEOF
33332/* confdefs.h. */
33333_ACEOF
33334cat confdefs.h >>conftest.$ac_ext
33335cat >>conftest.$ac_ext <<_ACEOF
33336/* end confdefs.h. */
33337
33338/* Override any gcc2 internal prototype to avoid an error. */
33339#ifdef __cplusplus
33340extern "C"
33341#endif
33342/* We use char because int might match the return type of a gcc2
33343 builtin and then its argument prototype would still apply. */
33344char dlopen ();
33345int
33346main ()
33347{
33348dlopen ();
33349 ;
33350 return 0;
33351}
33352_ACEOF
33353rm -f conftest.$ac_objext conftest$ac_exeext
33354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33355 (eval $ac_link) 2>conftest.er1
a848cd7e 33356 ac_status=$?
ac1cb8d3
VS
33357 grep -v '^ *+' conftest.er1 >conftest.err
33358 rm -f conftest.er1
33359 cat conftest.err >&5
a848cd7e
SC
33360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33361 (exit $ac_status); } &&
7714864e 33362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33364 (eval $ac_try) 2>&5
33365 ac_status=$?
33366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367 (exit $ac_status); }; } &&
33368 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33370 (eval $ac_try) 2>&5
33371 ac_status=$?
33372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33373 (exit $ac_status); }; }; then
33374 ac_cv_lib_dl_dlopen=yes
33375else
33376 echo "$as_me: failed program was:" >&5
33377sed 's/^/| /' conftest.$ac_ext >&5
33378
33379ac_cv_lib_dl_dlopen=no
33380fi
ac1cb8d3
VS
33381rm -f conftest.err conftest.$ac_objext \
33382 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33383LIBS=$ac_check_lib_save_LIBS
33384fi
33385echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33386echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33387if test $ac_cv_lib_dl_dlopen = yes; then
33388
33389 cat >>confdefs.h <<\_ACEOF
33390#define HAVE_DLOPEN 1
33391_ACEOF
33392
33393 HAVE_DL_FUNCS=1
33394 DL_LINK=" -ldl$DL_LINK"
33395
33396else
33397
33398
33399for ac_func in shl_load
33400do
33401as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33402echo "$as_me:$LINENO: checking for $ac_func" >&5
33403echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33404if eval "test \"\${$as_ac_var+set}\" = set"; then
33405 echo $ECHO_N "(cached) $ECHO_C" >&6
33406else
33407 cat >conftest.$ac_ext <<_ACEOF
33408/* confdefs.h. */
33409_ACEOF
33410cat confdefs.h >>conftest.$ac_ext
33411cat >>conftest.$ac_ext <<_ACEOF
33412/* end confdefs.h. */
ac1cb8d3
VS
33413/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33415#define $ac_func innocuous_$ac_func
33416
a848cd7e
SC
33417/* System header to define __stub macros and hopefully few prototypes,
33418 which can conflict with char $ac_func (); below.
33419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33420 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33421
a848cd7e
SC
33422#ifdef __STDC__
33423# include <limits.h>
33424#else
33425# include <assert.h>
33426#endif
ac1cb8d3
VS
33427
33428#undef $ac_func
33429
a848cd7e
SC
33430/* Override any gcc2 internal prototype to avoid an error. */
33431#ifdef __cplusplus
33432extern "C"
33433{
33434#endif
33435/* We use char because int might match the return type of a gcc2
33436 builtin and then its argument prototype would still apply. */
33437char $ac_func ();
33438/* The GNU C library defines this for functions which it implements
33439 to always fail with ENOSYS. Some functions are actually named
33440 something starting with __ and the normal name is an alias. */
33441#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33442choke me
33443#else
33444char (*f) () = $ac_func;
33445#endif
33446#ifdef __cplusplus
33447}
33448#endif
33449
33450int
33451main ()
33452{
33453return f != $ac_func;
33454 ;
33455 return 0;
33456}
33457_ACEOF
33458rm -f conftest.$ac_objext conftest$ac_exeext
33459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33460 (eval $ac_link) 2>conftest.er1
a848cd7e 33461 ac_status=$?
ac1cb8d3
VS
33462 grep -v '^ *+' conftest.er1 >conftest.err
33463 rm -f conftest.er1
33464 cat conftest.err >&5
a848cd7e
SC
33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33466 (exit $ac_status); } &&
7714864e 33467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33469 (eval $ac_try) 2>&5
33470 ac_status=$?
33471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33472 (exit $ac_status); }; } &&
33473 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33475 (eval $ac_try) 2>&5
33476 ac_status=$?
33477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33478 (exit $ac_status); }; }; then
33479 eval "$as_ac_var=yes"
33480else
33481 echo "$as_me: failed program was:" >&5
33482sed 's/^/| /' conftest.$ac_ext >&5
33483
33484eval "$as_ac_var=no"
33485fi
ac1cb8d3
VS
33486rm -f conftest.err conftest.$ac_objext \
33487 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33488fi
33489echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33490echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33491if test `eval echo '${'$as_ac_var'}'` = yes; then
33492 cat >>confdefs.h <<_ACEOF
33493#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33494_ACEOF
33495
33496 cat >>confdefs.h <<\_ACEOF
33497#define HAVE_SHL_LOAD 1
33498_ACEOF
33499
33500 HAVE_SHL_FUNCS=1
33501
33502else
33503
33504 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33505echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33506if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33507 echo $ECHO_N "(cached) $ECHO_C" >&6
33508else
33509 ac_check_lib_save_LIBS=$LIBS
33510LIBS="-lshl_load $LIBS"
33511cat >conftest.$ac_ext <<_ACEOF
33512/* confdefs.h. */
33513_ACEOF
33514cat confdefs.h >>conftest.$ac_ext
33515cat >>conftest.$ac_ext <<_ACEOF
33516/* end confdefs.h. */
33517
33518/* Override any gcc2 internal prototype to avoid an error. */
33519#ifdef __cplusplus
33520extern "C"
33521#endif
33522/* We use char because int might match the return type of a gcc2
33523 builtin and then its argument prototype would still apply. */
33524char dld ();
33525int
33526main ()
33527{
33528dld ();
33529 ;
33530 return 0;
33531}
33532_ACEOF
33533rm -f conftest.$ac_objext conftest$ac_exeext
33534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33535 (eval $ac_link) 2>conftest.er1
a848cd7e 33536 ac_status=$?
ac1cb8d3
VS
33537 grep -v '^ *+' conftest.er1 >conftest.err
33538 rm -f conftest.er1
33539 cat conftest.err >&5
a848cd7e
SC
33540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33541 (exit $ac_status); } &&
7714864e 33542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33544 (eval $ac_try) 2>&5
33545 ac_status=$?
33546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33547 (exit $ac_status); }; } &&
33548 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33550 (eval $ac_try) 2>&5
33551 ac_status=$?
33552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553 (exit $ac_status); }; }; then
33554 ac_cv_lib_shl_load_dld=yes
33555else
33556 echo "$as_me: failed program was:" >&5
33557sed 's/^/| /' conftest.$ac_ext >&5
33558
33559ac_cv_lib_shl_load_dld=no
33560fi
ac1cb8d3
VS
33561rm -f conftest.err conftest.$ac_objext \
33562 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33563LIBS=$ac_check_lib_save_LIBS
33564fi
33565echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33566echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33567if test $ac_cv_lib_shl_load_dld = yes; then
33568
33569 HAVE_SHL_FUNCS=1
33570 DL_LINK=" -ldld$DL_LINK"
33571
33572fi
33573
33574
33575fi
33576done
33577
33578
33579fi
33580
33581
33582fi
33583done
33584
33585
33586 if test "$HAVE_DL_FUNCS" = 1; then
33587
33588for ac_func in dlerror
33589do
33590as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33591echo "$as_me:$LINENO: checking for $ac_func" >&5
33592echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33593if eval "test \"\${$as_ac_var+set}\" = set"; then
33594 echo $ECHO_N "(cached) $ECHO_C" >&6
33595else
33596 cat >conftest.$ac_ext <<_ACEOF
33597/* confdefs.h. */
33598_ACEOF
33599cat confdefs.h >>conftest.$ac_ext
33600cat >>conftest.$ac_ext <<_ACEOF
33601/* end confdefs.h. */
ac1cb8d3
VS
33602/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33604#define $ac_func innocuous_$ac_func
33605
a848cd7e
SC
33606/* System header to define __stub macros and hopefully few prototypes,
33607 which can conflict with char $ac_func (); below.
33608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33609 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33610
a848cd7e
SC
33611#ifdef __STDC__
33612# include <limits.h>
33613#else
33614# include <assert.h>
33615#endif
ac1cb8d3
VS
33616
33617#undef $ac_func
33618
a848cd7e
SC
33619/* Override any gcc2 internal prototype to avoid an error. */
33620#ifdef __cplusplus
33621extern "C"
33622{
33623#endif
33624/* We use char because int might match the return type of a gcc2
33625 builtin and then its argument prototype would still apply. */
33626char $ac_func ();
33627/* The GNU C library defines this for functions which it implements
33628 to always fail with ENOSYS. Some functions are actually named
33629 something starting with __ and the normal name is an alias. */
33630#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33631choke me
33632#else
33633char (*f) () = $ac_func;
33634#endif
33635#ifdef __cplusplus
33636}
33637#endif
33638
33639int
33640main ()
33641{
33642return f != $ac_func;
33643 ;
33644 return 0;
33645}
33646_ACEOF
33647rm -f conftest.$ac_objext conftest$ac_exeext
33648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33649 (eval $ac_link) 2>conftest.er1
a848cd7e 33650 ac_status=$?
ac1cb8d3
VS
33651 grep -v '^ *+' conftest.er1 >conftest.err
33652 rm -f conftest.er1
33653 cat conftest.err >&5
a848cd7e
SC
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); } &&
7714864e 33656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33658 (eval $ac_try) 2>&5
33659 ac_status=$?
33660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33661 (exit $ac_status); }; } &&
33662 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33664 (eval $ac_try) 2>&5
33665 ac_status=$?
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); }; }; then
33668 eval "$as_ac_var=yes"
33669else
33670 echo "$as_me: failed program was:" >&5
33671sed 's/^/| /' conftest.$ac_ext >&5
33672
33673eval "$as_ac_var=no"
33674fi
ac1cb8d3
VS
33675rm -f conftest.err conftest.$ac_objext \
33676 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33677fi
33678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33679echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33680if test `eval echo '${'$as_ac_var'}'` = yes; then
33681 cat >>confdefs.h <<_ACEOF
33682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33683_ACEOF
33684 cat >>confdefs.h <<\_ACEOF
33685#define HAVE_DLERROR 1
33686_ACEOF
33687
33688else
33689
33690 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33691echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33692if test "${ac_cv_lib_dl_dlerror+set}" = set; then
33693 echo $ECHO_N "(cached) $ECHO_C" >&6
33694else
33695 ac_check_lib_save_LIBS=$LIBS
33696LIBS="-ldl $LIBS"
33697cat >conftest.$ac_ext <<_ACEOF
33698/* confdefs.h. */
33699_ACEOF
33700cat confdefs.h >>conftest.$ac_ext
33701cat >>conftest.$ac_ext <<_ACEOF
33702/* end confdefs.h. */
33703
33704/* Override any gcc2 internal prototype to avoid an error. */
33705#ifdef __cplusplus
33706extern "C"
33707#endif
33708/* We use char because int might match the return type of a gcc2
33709 builtin and then its argument prototype would still apply. */
33710char dlerror ();
33711int
33712main ()
33713{
33714dlerror ();
33715 ;
33716 return 0;
33717}
33718_ACEOF
33719rm -f conftest.$ac_objext conftest$ac_exeext
33720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33721 (eval $ac_link) 2>conftest.er1
a848cd7e 33722 ac_status=$?
ac1cb8d3
VS
33723 grep -v '^ *+' conftest.er1 >conftest.err
33724 rm -f conftest.er1
33725 cat conftest.err >&5
a848cd7e
SC
33726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33727 (exit $ac_status); } &&
7714864e 33728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33730 (eval $ac_try) 2>&5
33731 ac_status=$?
33732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33733 (exit $ac_status); }; } &&
33734 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33736 (eval $ac_try) 2>&5
33737 ac_status=$?
33738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33739 (exit $ac_status); }; }; then
33740 ac_cv_lib_dl_dlerror=yes
33741else
33742 echo "$as_me: failed program was:" >&5
33743sed 's/^/| /' conftest.$ac_ext >&5
33744
33745ac_cv_lib_dl_dlerror=no
33746fi
ac1cb8d3
VS
33747rm -f conftest.err conftest.$ac_objext \
33748 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33749LIBS=$ac_check_lib_save_LIBS
33750fi
33751echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33752echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33753if test $ac_cv_lib_dl_dlerror = yes; then
33754 cat >>confdefs.h <<\_ACEOF
33755#define HAVE_DLERROR 1
33756_ACEOF
33757
33758fi
33759
33760
33761
33762fi
33763done
33764
33765 fi
33766 fi
33767
33768 if test "$HAVE_DL_FUNCS" = 0; then
33769 if test "$HAVE_SHL_FUNCS" = 0; then
33770 if test "$USE_UNIX" = 1; then
33771 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33772echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33773 wxUSE_DYNAMIC_LOADER=no
33774 wxUSE_DYNLIB_CLASS=no
33775 else
33776 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33777echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33778 fi
33779 fi
33780 fi
33781 fi
33782fi
33783
33784if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33785 cat >>confdefs.h <<\_ACEOF
33786#define wxUSE_DYNAMIC_LOADER 1
33787_ACEOF
33788
33789fi
33790if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33791 cat >>confdefs.h <<\_ACEOF
33792#define wxUSE_DYNLIB_CLASS 1
33793_ACEOF
33794
33795fi
33796
33797
33798
33799if test "$wxUSE_PLUGINS" = "yes" ; then
33800 if test "$wxUSE_SHARED" = "no" ; then
33801 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33802echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33803 wxUSE_PLUGINS=no
33804 fi
33805 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33806 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33807echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33808 wxUSE_PLUGINS=no
33809 fi
33810 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33811 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33812echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33813 wxUSE_PLUGINS=no
33814 fi
33815 if test "$wxUSE_PLUGINS" = "yes" ; then
33816 cat >>confdefs.h <<\_ACEOF
33817#define wxUSE_PLUGINS 1
33818_ACEOF
33819
33820 fi
33821fi
33822
33823
33824if test "$wxUSE_STL" = "yes"; then
33825 cat >>confdefs.h <<\_ACEOF
33826#define wxUSE_STL 1
33827_ACEOF
33828
33829fi
33830
33831if test "$wxUSE_APPLE_IEEE" = "yes"; then
33832 cat >>confdefs.h <<\_ACEOF
33833#define wxUSE_APPLE_IEEE 1
33834_ACEOF
33835
33836fi
33837
33838if test "$wxUSE_TIMER" = "yes"; then
33839 cat >>confdefs.h <<\_ACEOF
33840#define wxUSE_TIMER 1
33841_ACEOF
33842
33843fi
33844
33845WITH_PLUGIN_SDL=0
33846if test "$wxUSE_SOUND" = "yes"; then
33847 if test "$USE_UNIX" = "1" ; then
33848
33849for ac_header in sys/soundcard.h
33850do
33851as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33852if eval "test \"\${$as_ac_Header+set}\" = set"; then
33853 echo "$as_me:$LINENO: checking for $ac_header" >&5
33854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33855if eval "test \"\${$as_ac_Header+set}\" = set"; then
33856 echo $ECHO_N "(cached) $ECHO_C" >&6
33857fi
33858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33859echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33860else
33861 # Is the header compilable?
33862echo "$as_me:$LINENO: checking $ac_header usability" >&5
33863echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33864cat >conftest.$ac_ext <<_ACEOF
33865/* confdefs.h. */
33866_ACEOF
33867cat confdefs.h >>conftest.$ac_ext
33868cat >>conftest.$ac_ext <<_ACEOF
33869/* end confdefs.h. */
33870$ac_includes_default
33871#include <$ac_header>
33872_ACEOF
33873rm -f conftest.$ac_objext
33874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33875 (eval $ac_compile) 2>conftest.er1
a848cd7e 33876 ac_status=$?
ac1cb8d3
VS
33877 grep -v '^ *+' conftest.er1 >conftest.err
33878 rm -f conftest.er1
33879 cat conftest.err >&5
a848cd7e
SC
33880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33881 (exit $ac_status); } &&
7714864e 33882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33884 (eval $ac_try) 2>&5
33885 ac_status=$?
33886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33887 (exit $ac_status); }; } &&
33888 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33890 (eval $ac_try) 2>&5
33891 ac_status=$?
33892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33893 (exit $ac_status); }; }; then
33894 ac_header_compiler=yes
33895else
33896 echo "$as_me: failed program was:" >&5
33897sed 's/^/| /' conftest.$ac_ext >&5
33898
33899ac_header_compiler=no
33900fi
ac1cb8d3 33901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33903echo "${ECHO_T}$ac_header_compiler" >&6
33904
33905# Is the header present?
33906echo "$as_me:$LINENO: checking $ac_header presence" >&5
33907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33908cat >conftest.$ac_ext <<_ACEOF
33909/* confdefs.h. */
33910_ACEOF
33911cat confdefs.h >>conftest.$ac_ext
33912cat >>conftest.$ac_ext <<_ACEOF
33913/* end confdefs.h. */
33914#include <$ac_header>
33915_ACEOF
33916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33918 ac_status=$?
33919 grep -v '^ *+' conftest.er1 >conftest.err
33920 rm -f conftest.er1
33921 cat conftest.err >&5
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923 (exit $ac_status); } >/dev/null; then
33924 if test -s conftest.err; then
33925 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 33926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
33927 else
33928 ac_cpp_err=
33929 fi
33930else
33931 ac_cpp_err=yes
33932fi
33933if test -z "$ac_cpp_err"; then
33934 ac_header_preproc=yes
33935else
33936 echo "$as_me: failed program was:" >&5
33937sed 's/^/| /' conftest.$ac_ext >&5
33938
33939 ac_header_preproc=no
33940fi
33941rm -f conftest.err conftest.$ac_ext
33942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33943echo "${ECHO_T}$ac_header_preproc" >&6
33944
33945# So? What about this header?
ac1cb8d3
VS
33946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33947 yes:no: )
a848cd7e
SC
33948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
33950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33952 ac_header_preproc=yes
a848cd7e 33953 ;;
ac1cb8d3 33954 no:yes:* )
a848cd7e
SC
33955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
33957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
33963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
33965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
33967 (
33968 cat <<\_ASBOX
ac1cb8d3
VS
33969## ----------------------------------------- ##
33970## Report this to wx-dev@lists.wxwidgets.org ##
33971## ----------------------------------------- ##
a848cd7e
SC
33972_ASBOX
33973 ) |
33974 sed "s/^/$as_me: WARNING: /" >&2
33975 ;;
33976esac
33977echo "$as_me:$LINENO: checking for $ac_header" >&5
33978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33979if eval "test \"\${$as_ac_Header+set}\" = set"; then
33980 echo $ECHO_N "(cached) $ECHO_C" >&6
33981else
ac1cb8d3 33982 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
33983fi
33984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33986
33987fi
33988if test `eval echo '${'$as_ac_Header'}'` = yes; then
33989 cat >>confdefs.h <<_ACEOF
33990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33991_ACEOF
33992
33993fi
33994
33995done
33996
33997
33998 if test "$wxUSE_LIBSDL" != "no"; then
33999
34000# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34001if test "${with_sdl_prefix+set}" = set; then
34002 withval="$with_sdl_prefix"
34003 sdl_prefix="$withval"
34004else
34005 sdl_prefix=""
34006fi;
34007
34008# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34009if test "${with_sdl_exec_prefix+set}" = set; then
34010 withval="$with_sdl_exec_prefix"
34011 sdl_exec_prefix="$withval"
34012else
34013 sdl_exec_prefix=""
34014fi;
34015# Check whether --enable-sdltest or --disable-sdltest was given.
34016if test "${enable_sdltest+set}" = set; then
34017 enableval="$enable_sdltest"
34018
34019else
34020 enable_sdltest=yes
34021fi;
34022
34023 if test x$sdl_exec_prefix != x ; then
34024 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34025 if test x${SDL_CONFIG+set} != xset ; then
34026 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34027 fi
34028 fi
34029 if test x$sdl_prefix != x ; then
34030 sdl_args="$sdl_args --prefix=$sdl_prefix"
34031 if test x${SDL_CONFIG+set} != xset ; then
34032 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34033 fi
34034 fi
34035
34036
34037 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34038 # Extract the first word of "sdl-config", so it can be a program name with args.
34039set dummy sdl-config; ac_word=$2
34040echo "$as_me:$LINENO: checking for $ac_word" >&5
34041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34042if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34043 echo $ECHO_N "(cached) $ECHO_C" >&6
34044else
34045 case $SDL_CONFIG in
34046 [\\/]* | ?:[\\/]*)
34047 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34048 ;;
34049 *)
34050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34051for as_dir in $PATH
34052do
34053 IFS=$as_save_IFS
34054 test -z "$as_dir" && as_dir=.
34055 for ac_exec_ext in '' $ac_executable_extensions; do
34056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34057 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34059 break 2
34060 fi
34061done
34062done
34063
34064 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34065 ;;
34066esac
34067fi
34068SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34069
34070if test -n "$SDL_CONFIG"; then
34071 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34072echo "${ECHO_T}$SDL_CONFIG" >&6
34073else
34074 echo "$as_me:$LINENO: result: no" >&5
34075echo "${ECHO_T}no" >&6
34076fi
34077
34078 min_sdl_version=1.2.0
34079 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34080echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34081 no_sdl=""
34082 if test "$SDL_CONFIG" = "no" ; then
34083 no_sdl=yes
34084 else
34085 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34086 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34087
34088 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34089 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34090 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34091 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34092 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34093 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34094 if test "x$enable_sdltest" = "xyes" ; then
34095 ac_save_CFLAGS="$CFLAGS"
34096 ac_save_LIBS="$LIBS"
34097 CFLAGS="$CFLAGS $SDL_CFLAGS"
34098 LIBS="$LIBS $SDL_LIBS"
34099 rm -f conf.sdltest
34100 if test "$cross_compiling" = yes; then
34101 echo $ac_n "cross compiling; assumed OK... $ac_c"
34102else
34103 cat >conftest.$ac_ext <<_ACEOF
34104/* confdefs.h. */
34105_ACEOF
34106cat confdefs.h >>conftest.$ac_ext
34107cat >>conftest.$ac_ext <<_ACEOF
34108/* end confdefs.h. */
34109
34110#include <stdio.h>
34111#include <stdlib.h>
34112#include <string.h>
34113#include "SDL.h"
34114
34115char*
34116my_strdup (char *str)
34117{
34118 char *new_str;
34119
34120 if (str)
34121 {
34122 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34123 strcpy (new_str, str);
34124 }
34125 else
34126 new_str = NULL;
34127
34128 return new_str;
34129}
34130
34131int main (int argc, char *argv[])
34132{
34133 int major, minor, micro;
34134 char *tmp_version;
34135
34136 /* This hangs on some systems (?)
34137 system ("touch conf.sdltest");
34138 */
34139 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34140
34141 /* HP/UX 9 (%@#!) writes to sscanf strings */
34142 tmp_version = my_strdup("$min_sdl_version");
34143 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34144 printf("%s, bad version string\n", "$min_sdl_version");
34145 exit(1);
34146 }
34147
34148 if (($sdl_major_version > major) ||
34149 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34150 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34151 {
34152 return 0;
34153 }
34154 else
34155 {
34156 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34157 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34158 printf("*** best to upgrade to the required version.\n");
34159 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34160 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34161 printf("*** config.cache before re-running configure\n");
34162 return 1;
34163 }
34164}
34165
34166
34167_ACEOF
34168rm -f conftest$ac_exeext
34169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34170 (eval $ac_link) 2>&5
34171 ac_status=$?
34172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34173 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34175 (eval $ac_try) 2>&5
34176 ac_status=$?
34177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34178 (exit $ac_status); }; }; then
34179 :
34180else
34181 echo "$as_me: program exited with status $ac_status" >&5
34182echo "$as_me: failed program was:" >&5
34183sed 's/^/| /' conftest.$ac_ext >&5
34184
34185( exit $ac_status )
34186no_sdl=yes
34187fi
ac1cb8d3 34188rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34189fi
34190 CFLAGS="$ac_save_CFLAGS"
34191 LIBS="$ac_save_LIBS"
34192 fi
34193 fi
34194 if test "x$no_sdl" = x ; then
34195 echo "$as_me:$LINENO: result: yes" >&5
34196echo "${ECHO_T}yes" >&6
34197
34198 EXTRALIBS_SDL="$SDL_LIBS"
34199 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34200 cat >>confdefs.h <<\_ACEOF
34201#define wxUSE_LIBSDL 1
34202_ACEOF
34203
34204
34205 else
34206 echo "$as_me:$LINENO: result: no" >&5
34207echo "${ECHO_T}no" >&6
34208 if test "$SDL_CONFIG" = "no" ; then
34209 echo "*** The sdl-config script installed by SDL could not be found"
34210 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34211 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34212 echo "*** full path to sdl-config."
34213 else
34214 if test -f conf.sdltest ; then
34215 :
34216 else
34217 echo "*** Could not run SDL test program, checking why..."
34218 CFLAGS="$CFLAGS $SDL_CFLAGS"
34219 LIBS="$LIBS $SDL_LIBS"
34220 cat >conftest.$ac_ext <<_ACEOF
34221/* confdefs.h. */
34222_ACEOF
34223cat confdefs.h >>conftest.$ac_ext
34224cat >>conftest.$ac_ext <<_ACEOF
34225/* end confdefs.h. */
34226
34227#include <stdio.h>
34228#include "SDL.h"
34229
34230int main(int argc, char *argv[])
34231{ return 0; }
34232#undef main
34233#define main K_and_R_C_main
34234
34235int
34236main ()
34237{
34238 return 0;
34239 ;
34240 return 0;
34241}
34242_ACEOF
34243rm -f conftest.$ac_objext conftest$ac_exeext
34244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34245 (eval $ac_link) 2>conftest.er1
a848cd7e 34246 ac_status=$?
ac1cb8d3
VS
34247 grep -v '^ *+' conftest.er1 >conftest.err
34248 rm -f conftest.er1
34249 cat conftest.err >&5
a848cd7e
SC
34250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34251 (exit $ac_status); } &&
7714864e 34252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34254 (eval $ac_try) 2>&5
34255 ac_status=$?
34256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34257 (exit $ac_status); }; } &&
34258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34260 (eval $ac_try) 2>&5
34261 ac_status=$?
34262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34263 (exit $ac_status); }; }; then
34264 echo "*** The test program compiled, but did not run. This usually means"
34265 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34266 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34267 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34268 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34269 echo "*** is required on your system"
34270 echo "***"
34271 echo "*** If you have an old version installed, it is best to remove it, although"
34272 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
34273else
34274 echo "$as_me: failed program was:" >&5
34275sed 's/^/| /' conftest.$ac_ext >&5
34276
34277 echo "*** The test program failed to compile or link. See the file config.log for the"
34278 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34279 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34280 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
34281fi
ac1cb8d3
VS
34282rm -f conftest.err conftest.$ac_objext \
34283 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34284 CFLAGS="$ac_save_CFLAGS"
34285 LIBS="$ac_save_LIBS"
34286 fi
34287 fi
34288 SDL_CFLAGS=""
34289 SDL_LIBS=""
34290 wxUSE_LIBSDL="no"
34291 fi
34292
34293
34294 rm -f conf.sdltest
34295
34296 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34297 WITH_PLUGIN_SDL=1
34298 fi
34299 fi
34300 fi
34301
34302 cat >>confdefs.h <<\_ACEOF
34303#define wxUSE_SOUND 1
34304_ACEOF
34305
34306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
34307fi
34308
34309if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34310 cat >>confdefs.h <<\_ACEOF
34311#define wxUSE_CMDLINE_PARSER 1
34312_ACEOF
34313
34314fi
34315
34316if test "$wxUSE_STOPWATCH" = "yes"; then
34317 cat >>confdefs.h <<\_ACEOF
34318#define wxUSE_STOPWATCH 1
34319_ACEOF
34320
34321fi
34322
34323if test "$wxUSE_DATETIME" = "yes"; then
34324 cat >>confdefs.h <<\_ACEOF
34325#define wxUSE_DATETIME 1
34326_ACEOF
34327
34328fi
34329
34330if test "$wxUSE_FILE" = "yes"; then
34331 cat >>confdefs.h <<\_ACEOF
34332#define wxUSE_FILE 1
34333_ACEOF
34334
34335fi
34336
34337if test "$wxUSE_FFILE" = "yes"; then
34338 cat >>confdefs.h <<\_ACEOF
34339#define wxUSE_FFILE 1
34340_ACEOF
34341
34342fi
34343
34344if test "$wxUSE_FILESYSTEM" = "yes"; then
34345 cat >>confdefs.h <<\_ACEOF
34346#define wxUSE_FILESYSTEM 1
34347_ACEOF
34348
34349fi
34350
34351if test "$wxUSE_FS_ZIP" = "yes"; then
34352 cat >>confdefs.h <<\_ACEOF
34353#define wxUSE_FS_ZIP 1
34354_ACEOF
34355
34356fi
34357
34358if test "$wxUSE_ZIPSTREAM" = "yes"; then
34359 cat >>confdefs.h <<\_ACEOF
34360#define wxUSE_ZIPSTREAM 1
34361_ACEOF
34362
34363fi
34364
a848cd7e
SC
34365if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34366 cat >>confdefs.h <<\_ACEOF
34367#define wxUSE_ON_FATAL_EXCEPTION 1
34368_ACEOF
34369
34370fi
34371
34372if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34373 cat >>confdefs.h <<\_ACEOF
34374#define wxUSE_SNGLINST_CHECKER 1
34375_ACEOF
34376
34377fi
34378
34379if test "$wxUSE_BUSYINFO" = "yes"; then
34380 cat >>confdefs.h <<\_ACEOF
34381#define wxUSE_BUSYINFO 1
34382_ACEOF
34383
34384fi
34385
34386if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34387 cat >>confdefs.h <<\_ACEOF
34388#define wxUSE_STD_IOSTREAM 1
34389_ACEOF
34390
34391fi
34392
34393if test "$wxUSE_TEXTBUFFER" = "yes"; then
34394 cat >>confdefs.h <<\_ACEOF
34395#define wxUSE_TEXTBUFFER 1
34396_ACEOF
34397
34398fi
34399
34400if test "$wxUSE_TEXTFILE" = "yes"; then
34401 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34402 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34403echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34404 else
34405 cat >>confdefs.h <<\_ACEOF
34406#define wxUSE_TEXTFILE 1
34407_ACEOF
34408
34409 fi
34410fi
34411
34412if test "$wxUSE_CONFIG" = "yes" ; then
34413 if test "$wxUSE_TEXTFILE" != "yes"; then
34414 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34415echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34416 else
34417 cat >>confdefs.h <<\_ACEOF
34418#define wxUSE_CONFIG 1
34419_ACEOF
34420
34421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34422 fi
34423fi
34424
34425if test "$wxUSE_INTL" = "yes" ; then
34426 if test "$wxUSE_FILE" != "yes"; then
34427 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34428echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34429 else
34430 cat >>confdefs.h <<\_ACEOF
34431#define wxUSE_INTL 1
34432_ACEOF
34433
34434 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34435 GUIDIST="$GUIDIST INTL_DIST"
34436 fi
34437fi
34438
34439if test "$wxUSE_LOG" = "yes"; then
34440 cat >>confdefs.h <<\_ACEOF
34441#define wxUSE_LOG 1
34442_ACEOF
34443
34444
34445 if test "$wxUSE_LOGGUI" = "yes"; then
34446 cat >>confdefs.h <<\_ACEOF
34447#define wxUSE_LOGGUI 1
34448_ACEOF
34449
34450 fi
34451
34452 if test "$wxUSE_LOGWINDOW" = "yes"; then
34453 cat >>confdefs.h <<\_ACEOF
34454#define wxUSE_LOGWINDOW 1
34455_ACEOF
34456
34457 fi
34458
34459 if test "$wxUSE_LOGDIALOG" = "yes"; then
34460 cat >>confdefs.h <<\_ACEOF
34461#define wxUSE_LOG_DIALOG 1
34462_ACEOF
34463
34464 fi
34465fi
34466
34467if test "$wxUSE_LONGLONG" = "yes"; then
34468 cat >>confdefs.h <<\_ACEOF
34469#define wxUSE_LONGLONG 1
34470_ACEOF
34471
34472fi
34473
34474if test "$wxUSE_GEOMETRY" = "yes"; then
34475 cat >>confdefs.h <<\_ACEOF
34476#define wxUSE_GEOMETRY 1
34477_ACEOF
34478
34479fi
34480
34481if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34482 cat >>confdefs.h <<\_ACEOF
34483#define wxUSE_DIALUP_MANAGER 1
34484_ACEOF
34485
34486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34487fi
34488
34489if test "$wxUSE_STREAMS" = "yes" ; then
34490 cat >>confdefs.h <<\_ACEOF
34491#define wxUSE_STREAMS 1
34492_ACEOF
34493
34494fi
34495
34496
34497if test "$wxUSE_DATETIME" = "yes"; then
34498
34499for ac_func in strptime
34500do
34501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34502echo "$as_me:$LINENO: checking for $ac_func" >&5
34503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34504if eval "test \"\${$as_ac_var+set}\" = set"; then
34505 echo $ECHO_N "(cached) $ECHO_C" >&6
34506else
34507 cat >conftest.$ac_ext <<_ACEOF
34508/* confdefs.h. */
34509_ACEOF
34510cat confdefs.h >>conftest.$ac_ext
34511cat >>conftest.$ac_ext <<_ACEOF
34512/* end confdefs.h. */
ac1cb8d3
VS
34513/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34515#define $ac_func innocuous_$ac_func
34516
a848cd7e
SC
34517/* System header to define __stub macros and hopefully few prototypes,
34518 which can conflict with char $ac_func (); below.
34519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34520 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34521
a848cd7e
SC
34522#ifdef __STDC__
34523# include <limits.h>
34524#else
34525# include <assert.h>
34526#endif
ac1cb8d3
VS
34527
34528#undef $ac_func
34529
a848cd7e
SC
34530/* Override any gcc2 internal prototype to avoid an error. */
34531#ifdef __cplusplus
34532extern "C"
34533{
34534#endif
34535/* We use char because int might match the return type of a gcc2
34536 builtin and then its argument prototype would still apply. */
34537char $ac_func ();
34538/* The GNU C library defines this for functions which it implements
34539 to always fail with ENOSYS. Some functions are actually named
34540 something starting with __ and the normal name is an alias. */
34541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34542choke me
34543#else
34544char (*f) () = $ac_func;
34545#endif
34546#ifdef __cplusplus
34547}
34548#endif
34549
34550int
34551main ()
34552{
34553return f != $ac_func;
34554 ;
34555 return 0;
34556}
34557_ACEOF
34558rm -f conftest.$ac_objext conftest$ac_exeext
34559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34560 (eval $ac_link) 2>conftest.er1
a848cd7e 34561 ac_status=$?
ac1cb8d3
VS
34562 grep -v '^ *+' conftest.er1 >conftest.err
34563 rm -f conftest.er1
34564 cat conftest.err >&5
a848cd7e
SC
34565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566 (exit $ac_status); } &&
7714864e 34567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34569 (eval $ac_try) 2>&5
34570 ac_status=$?
34571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34572 (exit $ac_status); }; } &&
34573 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34575 (eval $ac_try) 2>&5
34576 ac_status=$?
34577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578 (exit $ac_status); }; }; then
34579 eval "$as_ac_var=yes"
34580else
34581 echo "$as_me: failed program was:" >&5
34582sed 's/^/| /' conftest.$ac_ext >&5
34583
34584eval "$as_ac_var=no"
34585fi
ac1cb8d3
VS
34586rm -f conftest.err conftest.$ac_objext \
34587 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34588fi
34589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34590echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34591if test `eval echo '${'$as_ac_var'}'` = yes; then
34592 cat >>confdefs.h <<_ACEOF
34593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34594_ACEOF
34595
34596fi
34597done
34598
34599
34600 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34601echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34602if test "${wx_cv_var_timezone+set}" = set; then
34603 echo $ECHO_N "(cached) $ECHO_C" >&6
34604else
34605
34606 cat >conftest.$ac_ext <<_ACEOF
34607/* confdefs.h. */
34608_ACEOF
34609cat confdefs.h >>conftest.$ac_ext
34610cat >>conftest.$ac_ext <<_ACEOF
34611/* end confdefs.h. */
34612
34613 #include <time.h>
34614
34615int
34616main ()
34617{
34618
34619 int tz;
34620 tz = timezone;
34621
34622 ;
34623 return 0;
34624}
34625_ACEOF
34626rm -f conftest.$ac_objext
34627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34628 (eval $ac_compile) 2>conftest.er1
a848cd7e 34629 ac_status=$?
ac1cb8d3
VS
34630 grep -v '^ *+' conftest.er1 >conftest.err
34631 rm -f conftest.er1
34632 cat conftest.err >&5
a848cd7e
SC
34633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34634 (exit $ac_status); } &&
7714864e 34635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34637 (eval $ac_try) 2>&5
34638 ac_status=$?
34639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640 (exit $ac_status); }; } &&
34641 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34643 (eval $ac_try) 2>&5
34644 ac_status=$?
34645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646 (exit $ac_status); }; }; then
34647
34648 wx_cv_var_timezone=timezone
34649
34650else
34651 echo "$as_me: failed program was:" >&5
34652sed 's/^/| /' conftest.$ac_ext >&5
34653
34654
34655 cat >conftest.$ac_ext <<_ACEOF
34656/* confdefs.h. */
34657_ACEOF
34658cat confdefs.h >>conftest.$ac_ext
34659cat >>conftest.$ac_ext <<_ACEOF
34660/* end confdefs.h. */
34661
34662 #include <time.h>
34663
34664int
34665main ()
34666{
34667
34668 int tz;
34669 tz = _timezone;
34670
34671 ;
34672 return 0;
34673}
34674_ACEOF
34675rm -f conftest.$ac_objext
34676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34677 (eval $ac_compile) 2>conftest.er1
a848cd7e 34678 ac_status=$?
ac1cb8d3
VS
34679 grep -v '^ *+' conftest.er1 >conftest.err
34680 rm -f conftest.er1
34681 cat conftest.err >&5
a848cd7e
SC
34682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); } &&
7714864e 34684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686 (eval $ac_try) 2>&5
34687 ac_status=$?
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); }; } &&
34690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34692 (eval $ac_try) 2>&5
34693 ac_status=$?
34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34695 (exit $ac_status); }; }; then
34696
34697 wx_cv_var_timezone=_timezone
34698
34699else
34700 echo "$as_me: failed program was:" >&5
34701sed 's/^/| /' conftest.$ac_ext >&5
34702
34703
34704 cat >conftest.$ac_ext <<_ACEOF
34705/* confdefs.h. */
34706_ACEOF
34707cat confdefs.h >>conftest.$ac_ext
34708cat >>conftest.$ac_ext <<_ACEOF
34709/* end confdefs.h. */
34710
34711 #include <time.h>
34712
34713int
34714main ()
34715{
34716
34717 int tz;
34718 tz = __timezone;
34719
34720 ;
34721 return 0;
34722}
34723_ACEOF
34724rm -f conftest.$ac_objext
34725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34726 (eval $ac_compile) 2>conftest.er1
a848cd7e 34727 ac_status=$?
ac1cb8d3
VS
34728 grep -v '^ *+' conftest.er1 >conftest.err
34729 rm -f conftest.er1
34730 cat conftest.err >&5
a848cd7e
SC
34731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732 (exit $ac_status); } &&
7714864e 34733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34735 (eval $ac_try) 2>&5
34736 ac_status=$?
34737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34738 (exit $ac_status); }; } &&
34739 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34741 (eval $ac_try) 2>&5
34742 ac_status=$?
34743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34744 (exit $ac_status); }; }; then
34745
34746 wx_cv_var_timezone=__timezone
34747
34748else
34749 echo "$as_me: failed program was:" >&5
34750sed 's/^/| /' conftest.$ac_ext >&5
34751
34752
34753 if test "$USE_DOS" = 0 ; then
34754 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34755echo "$as_me: WARNING: no timezone variable" >&2;}
34756 fi
34757
34758
34759fi
ac1cb8d3 34760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34761
34762
34763fi
ac1cb8d3 34764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34765
34766
34767fi
ac1cb8d3 34768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34769
34770
34771fi
34772echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34773echo "${ECHO_T}$wx_cv_var_timezone" >&6
34774
34775 if test "x$wx_cv_var_timezone" != x ; then
34776 cat >>confdefs.h <<_ACEOF
34777#define WX_TIMEZONE $wx_cv_var_timezone
34778_ACEOF
34779
34780 fi
34781
34782
34783for ac_func in localtime
34784do
34785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34786echo "$as_me:$LINENO: checking for $ac_func" >&5
34787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34788if eval "test \"\${$as_ac_var+set}\" = set"; then
34789 echo $ECHO_N "(cached) $ECHO_C" >&6
34790else
34791 cat >conftest.$ac_ext <<_ACEOF
34792/* confdefs.h. */
34793_ACEOF
34794cat confdefs.h >>conftest.$ac_ext
34795cat >>conftest.$ac_ext <<_ACEOF
34796/* end confdefs.h. */
ac1cb8d3
VS
34797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34799#define $ac_func innocuous_$ac_func
34800
a848cd7e
SC
34801/* System header to define __stub macros and hopefully few prototypes,
34802 which can conflict with char $ac_func (); below.
34803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34804 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34805
a848cd7e
SC
34806#ifdef __STDC__
34807# include <limits.h>
34808#else
34809# include <assert.h>
34810#endif
ac1cb8d3
VS
34811
34812#undef $ac_func
34813
a848cd7e
SC
34814/* Override any gcc2 internal prototype to avoid an error. */
34815#ifdef __cplusplus
34816extern "C"
34817{
34818#endif
34819/* We use char because int might match the return type of a gcc2
34820 builtin and then its argument prototype would still apply. */
34821char $ac_func ();
34822/* The GNU C library defines this for functions which it implements
34823 to always fail with ENOSYS. Some functions are actually named
34824 something starting with __ and the normal name is an alias. */
34825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34826choke me
34827#else
34828char (*f) () = $ac_func;
34829#endif
34830#ifdef __cplusplus
34831}
34832#endif
34833
34834int
34835main ()
34836{
34837return f != $ac_func;
34838 ;
34839 return 0;
34840}
34841_ACEOF
34842rm -f conftest.$ac_objext conftest$ac_exeext
34843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34844 (eval $ac_link) 2>conftest.er1
a848cd7e 34845 ac_status=$?
ac1cb8d3
VS
34846 grep -v '^ *+' conftest.er1 >conftest.err
34847 rm -f conftest.er1
34848 cat conftest.err >&5
a848cd7e
SC
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); } &&
7714864e 34851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34853 (eval $ac_try) 2>&5
34854 ac_status=$?
34855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34856 (exit $ac_status); }; } &&
34857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34859 (eval $ac_try) 2>&5
34860 ac_status=$?
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); }; }; then
34863 eval "$as_ac_var=yes"
34864else
34865 echo "$as_me: failed program was:" >&5
34866sed 's/^/| /' conftest.$ac_ext >&5
34867
34868eval "$as_ac_var=no"
34869fi
ac1cb8d3
VS
34870rm -f conftest.err conftest.$ac_objext \
34871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34872fi
34873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34874echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34875if test `eval echo '${'$as_ac_var'}'` = yes; then
34876 cat >>confdefs.h <<_ACEOF
34877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34878_ACEOF
34879
34880fi
34881done
34882
34883
34884 if test "$ac_cv_func_localtime" = "yes"; then
34885 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34886echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34887if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
34888 echo $ECHO_N "(cached) $ECHO_C" >&6
34889else
34890
34891 cat >conftest.$ac_ext <<_ACEOF
34892/* confdefs.h. */
34893_ACEOF
34894cat confdefs.h >>conftest.$ac_ext
34895cat >>conftest.$ac_ext <<_ACEOF
34896/* end confdefs.h. */
34897
34898 #include <time.h>
34899
34900int
34901main ()
34902{
34903
34904 struct tm tm;
34905 tm.tm_gmtoff++;
34906
34907 ;
34908 return 0;
34909}
34910_ACEOF
34911rm -f conftest.$ac_objext
34912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34913 (eval $ac_compile) 2>conftest.er1
a848cd7e 34914 ac_status=$?
ac1cb8d3
VS
34915 grep -v '^ *+' conftest.er1 >conftest.err
34916 rm -f conftest.er1
34917 cat conftest.err >&5
a848cd7e
SC
34918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34919 (exit $ac_status); } &&
7714864e 34920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34922 (eval $ac_try) 2>&5
34923 ac_status=$?
34924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34925 (exit $ac_status); }; } &&
34926 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34928 (eval $ac_try) 2>&5
34929 ac_status=$?
34930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34931 (exit $ac_status); }; }; then
34932
34933 wx_cv_struct_tm_has_gmtoff=yes
34934
34935else
34936 echo "$as_me: failed program was:" >&5
34937sed 's/^/| /' conftest.$ac_ext >&5
34938
34939wx_cv_struct_tm_has_gmtoff=no
34940
34941fi
ac1cb8d3 34942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34943
34944fi
34945echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
34946echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
34947 fi
34948
34949 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
34950 cat >>confdefs.h <<\_ACEOF
34951#define WX_GMTOFF_IN_TM 1
34952_ACEOF
34953
34954 fi
34955
34956
34957
34958for ac_func in gettimeofday ftime
34959do
34960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34961echo "$as_me:$LINENO: checking for $ac_func" >&5
34962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34963if eval "test \"\${$as_ac_var+set}\" = set"; then
34964 echo $ECHO_N "(cached) $ECHO_C" >&6
34965else
34966 cat >conftest.$ac_ext <<_ACEOF
34967/* confdefs.h. */
34968_ACEOF
34969cat confdefs.h >>conftest.$ac_ext
34970cat >>conftest.$ac_ext <<_ACEOF
34971/* end confdefs.h. */
ac1cb8d3
VS
34972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34974#define $ac_func innocuous_$ac_func
34975
a848cd7e
SC
34976/* System header to define __stub macros and hopefully few prototypes,
34977 which can conflict with char $ac_func (); below.
34978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34979 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34980
a848cd7e
SC
34981#ifdef __STDC__
34982# include <limits.h>
34983#else
34984# include <assert.h>
34985#endif
ac1cb8d3
VS
34986
34987#undef $ac_func
34988
a848cd7e
SC
34989/* Override any gcc2 internal prototype to avoid an error. */
34990#ifdef __cplusplus
34991extern "C"
34992{
34993#endif
34994/* We use char because int might match the return type of a gcc2
34995 builtin and then its argument prototype would still apply. */
34996char $ac_func ();
34997/* The GNU C library defines this for functions which it implements
34998 to always fail with ENOSYS. Some functions are actually named
34999 something starting with __ and the normal name is an alias. */
35000#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35001choke me
35002#else
35003char (*f) () = $ac_func;
35004#endif
35005#ifdef __cplusplus
35006}
35007#endif
35008
35009int
35010main ()
35011{
35012return f != $ac_func;
35013 ;
35014 return 0;
35015}
35016_ACEOF
35017rm -f conftest.$ac_objext conftest$ac_exeext
35018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35019 (eval $ac_link) 2>conftest.er1
a848cd7e 35020 ac_status=$?
ac1cb8d3
VS
35021 grep -v '^ *+' conftest.er1 >conftest.err
35022 rm -f conftest.er1
35023 cat conftest.err >&5
a848cd7e
SC
35024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35025 (exit $ac_status); } &&
7714864e 35026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35028 (eval $ac_try) 2>&5
35029 ac_status=$?
35030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35031 (exit $ac_status); }; } &&
35032 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35034 (eval $ac_try) 2>&5
35035 ac_status=$?
35036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35037 (exit $ac_status); }; }; then
35038 eval "$as_ac_var=yes"
35039else
35040 echo "$as_me: failed program was:" >&5
35041sed 's/^/| /' conftest.$ac_ext >&5
35042
35043eval "$as_ac_var=no"
35044fi
ac1cb8d3
VS
35045rm -f conftest.err conftest.$ac_objext \
35046 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35047fi
35048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35049echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35050if test `eval echo '${'$as_ac_var'}'` = yes; then
35051 cat >>confdefs.h <<_ACEOF
35052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35053_ACEOF
35054 break
35055fi
35056done
35057
35058
35059 if test "$ac_cv_func_gettimeofday" = "yes"; then
35060 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35061echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35062if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35063 echo $ECHO_N "(cached) $ECHO_C" >&6
35064else
35065
35066
35067
35068 ac_ext=cc
35069ac_cpp='$CXXCPP $CPPFLAGS'
35070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35073
35074
35075 cat >conftest.$ac_ext <<_ACEOF
35076/* confdefs.h. */
35077_ACEOF
35078cat confdefs.h >>conftest.$ac_ext
35079cat >>conftest.$ac_ext <<_ACEOF
35080/* end confdefs.h. */
35081
35082 #include <sys/time.h>
35083 #include <unistd.h>
35084
35085int
35086main ()
35087{
35088
35089 struct timeval tv;
35090 gettimeofday(&tv, NULL);
35091
35092 ;
35093 return 0;
35094}
35095_ACEOF
35096rm -f conftest.$ac_objext
35097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35098 (eval $ac_compile) 2>conftest.er1
a848cd7e 35099 ac_status=$?
ac1cb8d3
VS
35100 grep -v '^ *+' conftest.er1 >conftest.err
35101 rm -f conftest.er1
35102 cat conftest.err >&5
a848cd7e
SC
35103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35104 (exit $ac_status); } &&
7714864e 35105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35107 (eval $ac_try) 2>&5
35108 ac_status=$?
35109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35110 (exit $ac_status); }; } &&
35111 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35113 (eval $ac_try) 2>&5
35114 ac_status=$?
35115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35116 (exit $ac_status); }; }; then
35117 wx_cv_func_gettimeofday_has_2_args=yes
35118else
35119 echo "$as_me: failed program was:" >&5
35120sed 's/^/| /' conftest.$ac_ext >&5
35121
35122cat >conftest.$ac_ext <<_ACEOF
35123/* confdefs.h. */
35124_ACEOF
35125cat confdefs.h >>conftest.$ac_ext
35126cat >>conftest.$ac_ext <<_ACEOF
35127/* end confdefs.h. */
35128
35129 #include <sys/time.h>
35130 #include <unistd.h>
35131
35132int
35133main ()
35134{
35135
35136 struct timeval tv;
35137 gettimeofday(&tv);
35138
35139 ;
35140 return 0;
35141}
35142_ACEOF
35143rm -f conftest.$ac_objext
35144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35145 (eval $ac_compile) 2>conftest.er1
a848cd7e 35146 ac_status=$?
ac1cb8d3
VS
35147 grep -v '^ *+' conftest.er1 >conftest.err
35148 rm -f conftest.er1
35149 cat conftest.err >&5
a848cd7e
SC
35150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151 (exit $ac_status); } &&
7714864e 35152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35154 (eval $ac_try) 2>&5
35155 ac_status=$?
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); }; } &&
35158 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35160 (eval $ac_try) 2>&5
35161 ac_status=$?
35162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163 (exit $ac_status); }; }; then
35164 wx_cv_func_gettimeofday_has_2_args=no
35165else
35166 echo "$as_me: failed program was:" >&5
35167sed 's/^/| /' conftest.$ac_ext >&5
35168
35169
35170 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35171echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35172 wx_cv_func_gettimeofday_has_2_args=unknown
35173
35174
35175fi
ac1cb8d3 35176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35177
35178fi
ac1cb8d3 35179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35180 ac_ext=c
35181ac_cpp='$CPP $CPPFLAGS'
35182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35184ac_compiler_gnu=$ac_cv_c_compiler_gnu
35185
35186
35187fi
35188echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35189echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35190
35191 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35192 cat >>confdefs.h <<\_ACEOF
35193#define WX_GETTIMEOFDAY_NO_TZ 1
35194_ACEOF
35195
35196 fi
35197 fi
35198
35199 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
35200fi
35201
35202
35203if test "$wxUSE_SOCKETS" = "yes"; then
35204 if test "$wxUSE_MGL" = "1"; then
35205 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35206echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35207 wxUSE_SOCKETS="no"
35208 fi
35209fi
35210
35211if test "$wxUSE_SOCKETS" = "yes"; then
35212 if test "$TOOLKIT" != "MSW"; then
35213 echo "$as_me:$LINENO: checking for socket" >&5
35214echo $ECHO_N "checking for socket... $ECHO_C" >&6
35215if test "${ac_cv_func_socket+set}" = set; then
35216 echo $ECHO_N "(cached) $ECHO_C" >&6
35217else
35218 cat >conftest.$ac_ext <<_ACEOF
35219/* confdefs.h. */
35220_ACEOF
35221cat confdefs.h >>conftest.$ac_ext
35222cat >>conftest.$ac_ext <<_ACEOF
35223/* end confdefs.h. */
ac1cb8d3
VS
35224/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35226#define socket innocuous_socket
35227
a848cd7e
SC
35228/* System header to define __stub macros and hopefully few prototypes,
35229 which can conflict with char socket (); below.
35230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35231 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35232
a848cd7e
SC
35233#ifdef __STDC__
35234# include <limits.h>
35235#else
35236# include <assert.h>
35237#endif
ac1cb8d3
VS
35238
35239#undef socket
35240
a848cd7e
SC
35241/* Override any gcc2 internal prototype to avoid an error. */
35242#ifdef __cplusplus
35243extern "C"
35244{
35245#endif
35246/* We use char because int might match the return type of a gcc2
35247 builtin and then its argument prototype would still apply. */
35248char socket ();
35249/* The GNU C library defines this for functions which it implements
35250 to always fail with ENOSYS. Some functions are actually named
35251 something starting with __ and the normal name is an alias. */
35252#if defined (__stub_socket) || defined (__stub___socket)
35253choke me
35254#else
35255char (*f) () = socket;
35256#endif
35257#ifdef __cplusplus
35258}
35259#endif
35260
35261int
35262main ()
35263{
35264return f != socket;
35265 ;
35266 return 0;
35267}
35268_ACEOF
35269rm -f conftest.$ac_objext conftest$ac_exeext
35270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35271 (eval $ac_link) 2>conftest.er1
a848cd7e 35272 ac_status=$?
ac1cb8d3
VS
35273 grep -v '^ *+' conftest.er1 >conftest.err
35274 rm -f conftest.er1
35275 cat conftest.err >&5
a848cd7e
SC
35276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35277 (exit $ac_status); } &&
7714864e 35278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35280 (eval $ac_try) 2>&5
35281 ac_status=$?
35282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35283 (exit $ac_status); }; } &&
35284 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35286 (eval $ac_try) 2>&5
35287 ac_status=$?
35288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35289 (exit $ac_status); }; }; then
35290 ac_cv_func_socket=yes
35291else
35292 echo "$as_me: failed program was:" >&5
35293sed 's/^/| /' conftest.$ac_ext >&5
35294
35295ac_cv_func_socket=no
35296fi
ac1cb8d3
VS
35297rm -f conftest.err conftest.$ac_objext \
35298 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35299fi
35300echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35301echo "${ECHO_T}$ac_cv_func_socket" >&6
35302if test $ac_cv_func_socket = yes; then
35303 :
35304else
35305
35306 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35307echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35308if test "${ac_cv_lib_socket_socket+set}" = set; then
35309 echo $ECHO_N "(cached) $ECHO_C" >&6
35310else
35311 ac_check_lib_save_LIBS=$LIBS
35312LIBS="-lsocket $LIBS"
35313cat >conftest.$ac_ext <<_ACEOF
35314/* confdefs.h. */
35315_ACEOF
35316cat confdefs.h >>conftest.$ac_ext
35317cat >>conftest.$ac_ext <<_ACEOF
35318/* end confdefs.h. */
35319
35320/* Override any gcc2 internal prototype to avoid an error. */
35321#ifdef __cplusplus
35322extern "C"
35323#endif
35324/* We use char because int might match the return type of a gcc2
35325 builtin and then its argument prototype would still apply. */
35326char socket ();
35327int
35328main ()
35329{
35330socket ();
35331 ;
35332 return 0;
35333}
35334_ACEOF
35335rm -f conftest.$ac_objext conftest$ac_exeext
35336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35337 (eval $ac_link) 2>conftest.er1
a848cd7e 35338 ac_status=$?
ac1cb8d3
VS
35339 grep -v '^ *+' conftest.er1 >conftest.err
35340 rm -f conftest.er1
35341 cat conftest.err >&5
a848cd7e
SC
35342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35343 (exit $ac_status); } &&
7714864e 35344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35346 (eval $ac_try) 2>&5
35347 ac_status=$?
35348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349 (exit $ac_status); }; } &&
35350 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35352 (eval $ac_try) 2>&5
35353 ac_status=$?
35354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35355 (exit $ac_status); }; }; then
35356 ac_cv_lib_socket_socket=yes
35357else
35358 echo "$as_me: failed program was:" >&5
35359sed 's/^/| /' conftest.$ac_ext >&5
35360
35361ac_cv_lib_socket_socket=no
35362fi
ac1cb8d3
VS
35363rm -f conftest.err conftest.$ac_objext \
35364 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35365LIBS=$ac_check_lib_save_LIBS
35366fi
35367echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35368echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35369if test $ac_cv_lib_socket_socket = yes; then
35370 if test "$INET_LINK" != " -lsocket"; then
35371 INET_LINK="$INET_LINK -lsocket"
35372 fi
35373else
35374
35375 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35376echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35377 wxUSE_SOCKETS=no
35378
35379
35380fi
35381
35382
35383
35384fi
35385
35386 fi
35387fi
35388
35389if test "$wxUSE_SOCKETS" = "yes" ; then
35390 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
35391 ac_ext=cc
35392ac_cpp='$CXXCPP $CPPFLAGS'
35393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35396
35397 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
35398echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35399if test "${wx_cv_type_getsockname3+set}" = set; then
35400 echo $ECHO_N "(cached) $ECHO_C" >&6
35401else
35402
35403 cat >conftest.$ac_ext <<_ACEOF
35404/* confdefs.h. */
35405_ACEOF
35406cat confdefs.h >>conftest.$ac_ext
35407cat >>conftest.$ac_ext <<_ACEOF
35408/* end confdefs.h. */
35409
35410 #include <sys/types.h>
35411 #include <sys/socket.h>
35412
35413int
35414main ()
35415{
35416
35417 socklen_t len;
35418 getsockname(0, 0, &len);
35419
35420 ;
35421 return 0;
35422}
35423_ACEOF
35424rm -f conftest.$ac_objext
35425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35426 (eval $ac_compile) 2>conftest.er1
a848cd7e 35427 ac_status=$?
ac1cb8d3
VS
35428 grep -v '^ *+' conftest.er1 >conftest.err
35429 rm -f conftest.er1
35430 cat conftest.err >&5
a848cd7e
SC
35431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35432 (exit $ac_status); } &&
7714864e 35433 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35435 (eval $ac_try) 2>&5
35436 ac_status=$?
35437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35438 (exit $ac_status); }; } &&
35439 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35441 (eval $ac_try) 2>&5
35442 ac_status=$?
35443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35444 (exit $ac_status); }; }; then
35445 wx_cv_type_getsockname3=socklen_t
35446else
35447 echo "$as_me: failed program was:" >&5
35448sed 's/^/| /' conftest.$ac_ext >&5
35449
35450
35451 CFLAGS_OLD="$CFLAGS"
35452 if test "$GCC" = yes ; then
35453 CFLAGS="$CFLAGS -Werror"
35454 fi
35455
35456 cat >conftest.$ac_ext <<_ACEOF
35457/* confdefs.h. */
35458_ACEOF
35459cat confdefs.h >>conftest.$ac_ext
35460cat >>conftest.$ac_ext <<_ACEOF
35461/* end confdefs.h. */
35462
35463 #include <sys/types.h>
35464 #include <sys/socket.h>
35465
35466int
35467main ()
35468{
35469
35470 size_t len;
35471 getsockname(0, 0, &len);
35472
35473 ;
35474 return 0;
35475}
35476_ACEOF
35477rm -f conftest.$ac_objext
35478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35479 (eval $ac_compile) 2>conftest.er1
a848cd7e 35480 ac_status=$?
ac1cb8d3
VS
35481 grep -v '^ *+' conftest.er1 >conftest.err
35482 rm -f conftest.er1
35483 cat conftest.err >&5
a848cd7e
SC
35484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485 (exit $ac_status); } &&
7714864e 35486 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35488 (eval $ac_try) 2>&5
35489 ac_status=$?
35490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491 (exit $ac_status); }; } &&
35492 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35494 (eval $ac_try) 2>&5
35495 ac_status=$?
35496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35497 (exit $ac_status); }; }; then
35498 wx_cv_type_getsockname3=size_t
35499else
35500 echo "$as_me: failed program was:" >&5
35501sed 's/^/| /' conftest.$ac_ext >&5
35502
35503cat >conftest.$ac_ext <<_ACEOF
35504/* confdefs.h. */
35505_ACEOF
35506cat confdefs.h >>conftest.$ac_ext
35507cat >>conftest.$ac_ext <<_ACEOF
35508/* end confdefs.h. */
35509
35510 #include <sys/types.h>
35511 #include <sys/socket.h>
35512
35513int
35514main ()
35515{
35516
35517 int len;
35518 getsockname(0, 0, &len);
35519
35520 ;
35521 return 0;
35522}
35523_ACEOF
35524rm -f conftest.$ac_objext
35525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35526 (eval $ac_compile) 2>conftest.er1
a848cd7e 35527 ac_status=$?
ac1cb8d3
VS
35528 grep -v '^ *+' conftest.er1 >conftest.err
35529 rm -f conftest.er1
35530 cat conftest.err >&5
a848cd7e
SC
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); } &&
7714864e 35533 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35535 (eval $ac_try) 2>&5
35536 ac_status=$?
35537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538 (exit $ac_status); }; } &&
35539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35541 (eval $ac_try) 2>&5
35542 ac_status=$?
35543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35544 (exit $ac_status); }; }; then
35545 wx_cv_type_getsockname3=int
35546else
35547 echo "$as_me: failed program was:" >&5
35548sed 's/^/| /' conftest.$ac_ext >&5
35549
35550wx_cv_type_getsockname3=unknown
35551
35552fi
ac1cb8d3 35553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35554
35555fi
ac1cb8d3 35556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35557
35558 CFLAGS="$CFLAGS_OLD"
35559
35560
35561fi
ac1cb8d3 35562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35563
35564fi
35565echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35566echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35567
35568 if test "$wx_cv_type_getsockname3" = "unknown"; then
35569 wxUSE_SOCKETS=no
35570 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35571echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35572 else
35573 cat >>confdefs.h <<_ACEOF
35574#define SOCKLEN_T $wx_cv_type_getsockname3
35575_ACEOF
35576
35577 fi
4d4ff94c
VZ
35578 ac_ext=c
35579ac_cpp='$CPP $CPPFLAGS'
35580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35582ac_compiler_gnu=$ac_cv_c_compiler_gnu
35583
a848cd7e
SC
35584 fi
35585fi
35586
35587if test "$wxUSE_SOCKETS" = "yes" ; then
35588 cat >>confdefs.h <<\_ACEOF
35589#define wxUSE_SOCKETS 1
35590_ACEOF
35591
35592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
35593fi
35594
35595if test "$wxUSE_PROTOCOL" = "yes"; then
35596 if test "$wxUSE_SOCKETS" != "yes"; then
35597 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35598echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35599 wxUSE_PROTOCOL=no
35600 fi
35601fi
35602
35603if test "$wxUSE_PROTOCOL" = "yes"; then
35604 cat >>confdefs.h <<\_ACEOF
35605#define wxUSE_PROTOCOL 1
35606_ACEOF
35607
35608
35609 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35610 cat >>confdefs.h <<\_ACEOF
35611#define wxUSE_PROTOCOL_HTTP 1
35612_ACEOF
35613
35614 fi
35615 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35616 cat >>confdefs.h <<\_ACEOF
35617#define wxUSE_PROTOCOL_FTP 1
35618_ACEOF
35619
35620 fi
35621 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35622 cat >>confdefs.h <<\_ACEOF
35623#define wxUSE_PROTOCOL_FILE 1
35624_ACEOF
35625
35626 fi
35627else
35628 if test "$wxUSE_FS_INET" = "yes"; then
35629 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35630echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35631 wxUSE_FS_INET="no"
35632 fi
35633fi
35634
35635if test "$wxUSE_URL" = "yes"; then
35636 if test "$wxUSE_PROTOCOL" != "yes"; then
35637 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35638echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35639 wxUSE_URL=no
35640 fi
35641 if test "$wxUSE_URL" = "yes"; then
35642 cat >>confdefs.h <<\_ACEOF
35643#define wxUSE_URL 1
35644_ACEOF
35645
35646 fi
35647fi
35648
35649if test "$wxUSE_FS_INET" = "yes"; then
35650 cat >>confdefs.h <<\_ACEOF
35651#define wxUSE_FS_INET 1
35652_ACEOF
35653
35654fi
35655
35656
35657if test "$wxUSE_GUI" = "yes"; then
35658
35659 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35660 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35661echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35662 wxUSE_JOYSTICK=no
35663 fi
35664
35665 if test "$TOOLKIT" != "MSW"; then
35666 if test "$wxUSE_JOYSTICK" = "yes"; then
35667
35668for ac_header in linux/joystick.h
35669do
35670as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35671if eval "test \"\${$as_ac_Header+set}\" = set"; then
35672 echo "$as_me:$LINENO: checking for $ac_header" >&5
35673echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35674if eval "test \"\${$as_ac_Header+set}\" = set"; then
35675 echo $ECHO_N "(cached) $ECHO_C" >&6
35676fi
35677echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35678echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35679else
35680 # Is the header compilable?
35681echo "$as_me:$LINENO: checking $ac_header usability" >&5
35682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35683cat >conftest.$ac_ext <<_ACEOF
35684/* confdefs.h. */
35685_ACEOF
35686cat confdefs.h >>conftest.$ac_ext
35687cat >>conftest.$ac_ext <<_ACEOF
35688/* end confdefs.h. */
35689$ac_includes_default
35690#include <$ac_header>
35691_ACEOF
35692rm -f conftest.$ac_objext
35693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35694 (eval $ac_compile) 2>conftest.er1
a848cd7e 35695 ac_status=$?
ac1cb8d3
VS
35696 grep -v '^ *+' conftest.er1 >conftest.err
35697 rm -f conftest.er1
35698 cat conftest.err >&5
a848cd7e
SC
35699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700 (exit $ac_status); } &&
7714864e 35701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35703 (eval $ac_try) 2>&5
35704 ac_status=$?
35705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706 (exit $ac_status); }; } &&
35707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709 (eval $ac_try) 2>&5
35710 ac_status=$?
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); }; }; then
35713 ac_header_compiler=yes
35714else
35715 echo "$as_me: failed program was:" >&5
35716sed 's/^/| /' conftest.$ac_ext >&5
35717
35718ac_header_compiler=no
35719fi
ac1cb8d3 35720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35721echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35722echo "${ECHO_T}$ac_header_compiler" >&6
35723
35724# Is the header present?
35725echo "$as_me:$LINENO: checking $ac_header presence" >&5
35726echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35727cat >conftest.$ac_ext <<_ACEOF
35728/* confdefs.h. */
35729_ACEOF
35730cat confdefs.h >>conftest.$ac_ext
35731cat >>conftest.$ac_ext <<_ACEOF
35732/* end confdefs.h. */
35733#include <$ac_header>
35734_ACEOF
35735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35737 ac_status=$?
35738 grep -v '^ *+' conftest.er1 >conftest.err
35739 rm -f conftest.er1
35740 cat conftest.err >&5
35741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35742 (exit $ac_status); } >/dev/null; then
35743 if test -s conftest.err; then
35744 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 35745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
35746 else
35747 ac_cpp_err=
35748 fi
35749else
35750 ac_cpp_err=yes
35751fi
35752if test -z "$ac_cpp_err"; then
35753 ac_header_preproc=yes
35754else
35755 echo "$as_me: failed program was:" >&5
35756sed 's/^/| /' conftest.$ac_ext >&5
35757
35758 ac_header_preproc=no
35759fi
35760rm -f conftest.err conftest.$ac_ext
35761echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35762echo "${ECHO_T}$ac_header_preproc" >&6
35763
35764# So? What about this header?
ac1cb8d3
VS
35765case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35766 yes:no: )
a848cd7e
SC
35767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35768echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
35769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35770echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35771 ac_header_preproc=yes
a848cd7e 35772 ;;
ac1cb8d3 35773 no:yes:* )
a848cd7e
SC
35774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35775echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
35776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35777echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35779echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35781echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
35782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35783echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
35784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35785echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
35786 (
35787 cat <<\_ASBOX
ac1cb8d3
VS
35788## ----------------------------------------- ##
35789## Report this to wx-dev@lists.wxwidgets.org ##
35790## ----------------------------------------- ##
a848cd7e
SC
35791_ASBOX
35792 ) |
35793 sed "s/^/$as_me: WARNING: /" >&2
35794 ;;
35795esac
35796echo "$as_me:$LINENO: checking for $ac_header" >&5
35797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35798if eval "test \"\${$as_ac_Header+set}\" = set"; then
35799 echo $ECHO_N "(cached) $ECHO_C" >&6
35800else
ac1cb8d3 35801 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
35802fi
35803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35805
35806fi
35807if test `eval echo '${'$as_ac_Header'}'` = yes; then
35808 cat >>confdefs.h <<_ACEOF
35809#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35810_ACEOF
35811
35812fi
35813
35814done
35815
35816 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35817 wxUSE_JOYSTICK=no
35818 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35819echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35820 fi
35821 fi
35822 fi
35823
35824 if test "$wxUSE_JOYSTICK" = "yes"; then
35825 cat >>confdefs.h <<\_ACEOF
35826#define wxUSE_JOYSTICK 1
35827_ACEOF
35828
35829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35830 fi
35831fi
35832
35833
35834
35835if test "$wxUSE_FONTMAP" = "yes" ; then
35836 cat >>confdefs.h <<\_ACEOF
35837#define wxUSE_FONTMAP 1
35838_ACEOF
35839
35840fi
35841
35842if test "$wxUSE_UNICODE" = "yes" ; then
35843 cat >>confdefs.h <<\_ACEOF
35844#define wxUSE_UNICODE 1
35845_ACEOF
35846
35847
35848 if test "$USE_WIN32" != 1; then
35849 wxUSE_UNICODE_MSLU=no
35850 fi
35851
35852 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
35853 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35854echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35855if test "${ac_cv_lib_unicows_main+set}" = set; then
35856 echo $ECHO_N "(cached) $ECHO_C" >&6
35857else
35858 ac_check_lib_save_LIBS=$LIBS
35859LIBS="-lunicows $LIBS"
35860cat >conftest.$ac_ext <<_ACEOF
35861/* confdefs.h. */
35862_ACEOF
35863cat confdefs.h >>conftest.$ac_ext
35864cat >>conftest.$ac_ext <<_ACEOF
35865/* end confdefs.h. */
35866
35867
35868int
35869main ()
35870{
35871main ();
35872 ;
35873 return 0;
35874}
35875_ACEOF
35876rm -f conftest.$ac_objext conftest$ac_exeext
35877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35878 (eval $ac_link) 2>conftest.er1
a848cd7e 35879 ac_status=$?
ac1cb8d3
VS
35880 grep -v '^ *+' conftest.er1 >conftest.err
35881 rm -f conftest.er1
35882 cat conftest.err >&5
a848cd7e
SC
35883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35884 (exit $ac_status); } &&
7714864e 35885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35887 (eval $ac_try) 2>&5
35888 ac_status=$?
35889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35890 (exit $ac_status); }; } &&
35891 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35893 (eval $ac_try) 2>&5
35894 ac_status=$?
35895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35896 (exit $ac_status); }; }; then
35897 ac_cv_lib_unicows_main=yes
35898else
35899 echo "$as_me: failed program was:" >&5
35900sed 's/^/| /' conftest.$ac_ext >&5
35901
35902ac_cv_lib_unicows_main=no
35903fi
ac1cb8d3
VS
35904rm -f conftest.err conftest.$ac_objext \
35905 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35906LIBS=$ac_check_lib_save_LIBS
35907fi
35908echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35909echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35910if test $ac_cv_lib_unicows_main = yes; then
35911
35912 cat >>confdefs.h <<\_ACEOF
35913#define wxUSE_UNICODE_MSLU 1
35914_ACEOF
35915
35916
35917else
35918
35919 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35920 Applications will only run on Windows NT/2000/XP!" >&5
35921echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35922 Applications will only run on Windows NT/2000/XP!" >&2;}
35923 wxUSE_UNICODE_MSLU=no
35924
35925fi
35926
35927 fi
35928fi
35929
35930if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
35931 cat >>confdefs.h <<\_ACEOF
35932#define wxUSE_EXPERIMENTAL_PRINTF 1
35933_ACEOF
35934
35935fi
35936
35937
35938if test "$wxUSE_POSTSCRIPT" = "yes" ; then
35939 cat >>confdefs.h <<\_ACEOF
35940#define wxUSE_POSTSCRIPT 1
35941_ACEOF
35942
35943fi
35944
35945cat >>confdefs.h <<\_ACEOF
35946#define wxUSE_AFM_FOR_POSTSCRIPT 1
35947_ACEOF
35948
35949
35950cat >>confdefs.h <<\_ACEOF
35951#define wxUSE_NORMALIZED_PS_FONTS 1
35952_ACEOF
35953
35954
35955
35956if test "$wxUSE_CONSTRAINTS" = "yes"; then
35957 cat >>confdefs.h <<\_ACEOF
35958#define wxUSE_CONSTRAINTS 1
35959_ACEOF
35960
35961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35962fi
35963
8a7b1113
VZ
35964if test "$wxUSE_MDI" = "yes"; then
35965 cat >>confdefs.h <<\_ACEOF
35966#define wxUSE_MDI 1
35967_ACEOF
35968
35969
35970 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35971 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
35972#define wxUSE_MDI_ARCHITECTURE 1
35973_ACEOF
35974
8a7b1113
VZ
35975 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
35976 fi
a848cd7e
SC
35977fi
35978
35979if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
35980 cat >>confdefs.h <<\_ACEOF
35981#define wxUSE_DOC_VIEW_ARCHITECTURE 1
35982_ACEOF
35983
35984 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35985 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35986 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35987 fi
35988fi
35989
35990if test "$wxUSE_HELP" = "yes"; then
35991 cat >>confdefs.h <<\_ACEOF
35992#define wxUSE_HELP 1
35993_ACEOF
35994
35995 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
35996
35997 if test "$wxUSE_MSW" = 1; then
35998 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
35999 cat >>confdefs.h <<\_ACEOF
36000#define wxUSE_MS_HTML_HELP 1
36001_ACEOF
36002
36003 fi
36004 fi
36005
36006 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36007 if test "$wxUSE_HTML" = "yes"; then
36008 cat >>confdefs.h <<\_ACEOF
36009#define wxUSE_WXHTML_HELP 1
36010_ACEOF
36011
36012 else
36013 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36014echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
36015 wxUSE_WXHTML_HELP=no
36016 fi
36017 fi
36018fi
36019
36020if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36021 if test "$wxUSE_CONSTRAINTS" != "yes"; then
36022 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36023echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
36024 else
36025 cat >>confdefs.h <<\_ACEOF
36026#define wxUSE_PRINTING_ARCHITECTURE 1
36027_ACEOF
36028
36029 fi
36030 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36031fi
36032
36033if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36034 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36035echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36036 { (exit 1); exit 1; }; }
36037fi
36038
36039
36040if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
36041 -o "$wxUSE_CLIPBOARD" = "yes" \
36042 -o "$wxUSE_OLE" = "yes" \
36043 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36044
36045for ac_header in ole2.h
36046do
36047as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36048if eval "test \"\${$as_ac_Header+set}\" = set"; then
36049 echo "$as_me:$LINENO: checking for $ac_header" >&5
36050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36051if eval "test \"\${$as_ac_Header+set}\" = set"; then
36052 echo $ECHO_N "(cached) $ECHO_C" >&6
36053fi
36054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36056else
36057 # Is the header compilable?
36058echo "$as_me:$LINENO: checking $ac_header usability" >&5
36059echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36060cat >conftest.$ac_ext <<_ACEOF
36061/* confdefs.h. */
36062_ACEOF
36063cat confdefs.h >>conftest.$ac_ext
36064cat >>conftest.$ac_ext <<_ACEOF
36065/* end confdefs.h. */
36066$ac_includes_default
36067#include <$ac_header>
36068_ACEOF
36069rm -f conftest.$ac_objext
36070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36071 (eval $ac_compile) 2>conftest.er1
a848cd7e 36072 ac_status=$?
ac1cb8d3
VS
36073 grep -v '^ *+' conftest.er1 >conftest.err
36074 rm -f conftest.er1
36075 cat conftest.err >&5
a848cd7e
SC
36076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36077 (exit $ac_status); } &&
7714864e 36078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36080 (eval $ac_try) 2>&5
36081 ac_status=$?
36082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36083 (exit $ac_status); }; } &&
36084 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36086 (eval $ac_try) 2>&5
36087 ac_status=$?
36088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36089 (exit $ac_status); }; }; then
36090 ac_header_compiler=yes
36091else
36092 echo "$as_me: failed program was:" >&5
36093sed 's/^/| /' conftest.$ac_ext >&5
36094
36095ac_header_compiler=no
36096fi
ac1cb8d3 36097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36098echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36099echo "${ECHO_T}$ac_header_compiler" >&6
36100
36101# Is the header present?
36102echo "$as_me:$LINENO: checking $ac_header presence" >&5
36103echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36104cat >conftest.$ac_ext <<_ACEOF
36105/* confdefs.h. */
36106_ACEOF
36107cat confdefs.h >>conftest.$ac_ext
36108cat >>conftest.$ac_ext <<_ACEOF
36109/* end confdefs.h. */
36110#include <$ac_header>
36111_ACEOF
36112if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36114 ac_status=$?
36115 grep -v '^ *+' conftest.er1 >conftest.err
36116 rm -f conftest.er1
36117 cat conftest.err >&5
36118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36119 (exit $ac_status); } >/dev/null; then
36120 if test -s conftest.err; then
36121 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36123 else
36124 ac_cpp_err=
36125 fi
36126else
36127 ac_cpp_err=yes
36128fi
36129if test -z "$ac_cpp_err"; then
36130 ac_header_preproc=yes
36131else
36132 echo "$as_me: failed program was:" >&5
36133sed 's/^/| /' conftest.$ac_ext >&5
36134
36135 ac_header_preproc=no
36136fi
36137rm -f conftest.err conftest.$ac_ext
36138echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36139echo "${ECHO_T}$ac_header_preproc" >&6
36140
36141# So? What about this header?
ac1cb8d3
VS
36142case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36143 yes:no: )
a848cd7e
SC
36144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36145echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36147echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36148 ac_header_preproc=yes
a848cd7e 36149 ;;
ac1cb8d3 36150 no:yes:* )
a848cd7e
SC
36151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36152echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36154echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36156echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36158echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36160echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36162echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36163 (
36164 cat <<\_ASBOX
ac1cb8d3
VS
36165## ----------------------------------------- ##
36166## Report this to wx-dev@lists.wxwidgets.org ##
36167## ----------------------------------------- ##
a848cd7e
SC
36168_ASBOX
36169 ) |
36170 sed "s/^/$as_me: WARNING: /" >&2
36171 ;;
36172esac
36173echo "$as_me:$LINENO: checking for $ac_header" >&5
36174echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36175if eval "test \"\${$as_ac_Header+set}\" = set"; then
36176 echo $ECHO_N "(cached) $ECHO_C" >&6
36177else
ac1cb8d3 36178 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36179fi
36180echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36181echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36182
36183fi
36184if test `eval echo '${'$as_ac_Header'}'` = yes; then
36185 cat >>confdefs.h <<_ACEOF
36186#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36187_ACEOF
36188
36189fi
36190
36191done
36192
36193
36194 if test "$ac_cv_header_ole2_h" = "yes" ; then
36195 if test "$GCC" = yes ; then
36196
36197
36198 ac_ext=cc
36199ac_cpp='$CXXCPP $CPPFLAGS'
36200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36203
36204
36205 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36206echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36207 cat >conftest.$ac_ext <<_ACEOF
36208/* confdefs.h. */
36209_ACEOF
36210cat confdefs.h >>conftest.$ac_ext
36211cat >>conftest.$ac_ext <<_ACEOF
36212/* end confdefs.h. */
36213#include <windows.h>
36214 #include <ole2.h>
36215int
36216main ()
36217{
36218
36219 ;
36220 return 0;
36221}
36222_ACEOF
36223rm -f conftest.$ac_objext
36224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36225 (eval $ac_compile) 2>conftest.er1
a848cd7e 36226 ac_status=$?
ac1cb8d3
VS
36227 grep -v '^ *+' conftest.er1 >conftest.err
36228 rm -f conftest.er1
36229 cat conftest.err >&5
a848cd7e
SC
36230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36231 (exit $ac_status); } &&
7714864e 36232 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36234 (eval $ac_try) 2>&5
36235 ac_status=$?
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); }; } &&
36238 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36240 (eval $ac_try) 2>&5
36241 ac_status=$?
36242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243 (exit $ac_status); }; }; then
36244 echo "$as_me:$LINENO: result: no" >&5
36245echo "${ECHO_T}no" >&6
36246else
36247 echo "$as_me: failed program was:" >&5
36248sed 's/^/| /' conftest.$ac_ext >&5
36249
36250echo "$as_me:$LINENO: result: yes" >&5
36251echo "${ECHO_T}yes" >&6
36252 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36253fi
ac1cb8d3 36254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36255 ac_ext=c
36256ac_cpp='$CPP $CPPFLAGS'
36257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36259ac_compiler_gnu=$ac_cv_c_compiler_gnu
36260
a848cd7e
SC
36261 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
36262 if test "$wxUSE_OLE" = "yes" ; then
36263 cat >>confdefs.h <<\_ACEOF
36264#define wxUSE_OLE 1
36265_ACEOF
36266
36267 fi
36268 fi
36269
36270 if test "$wxUSE_DATAOBJ" = "yes" ; then
36271 cat >>confdefs.h <<\_ACEOF
36272#define wxUSE_DATAOBJ 1
36273_ACEOF
36274
36275 fi
36276 else
36277 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36278echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
36279
36280 wxUSE_CLIPBOARD=no
36281 wxUSE_DRAG_AND_DROP=no
36282 wxUSE_DATAOBJ=no
36283 wxUSE_OLE=no
36284 fi
36285
36286 if test "$wxUSE_METAFILE" = "yes"; then
36287 cat >>confdefs.h <<\_ACEOF
36288#define wxUSE_METAFILE 1
36289_ACEOF
36290
36291
36292 cat >>confdefs.h <<\_ACEOF
36293#define wxUSE_ENH_METAFILE 1
36294_ACEOF
36295
36296 fi
36297fi
36298
36299if test "$wxUSE_IPC" = "yes"; then
36300 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
36301 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
36302echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
36303 fi
36304
36305 cat >>confdefs.h <<\_ACEOF
36306#define wxUSE_IPC 1
36307_ACEOF
36308
36309fi
36310
36311if test "$wxUSE_CLIPBOARD" = "yes"; then
36312 if test "$wxUSE_MGL" = 1; then
36313 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36314echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
36315 wxUSE_CLIPBOARD=no
36316 fi
36317
36318 if test "$wxUSE_CLIPBOARD" = "yes"; then
36319 cat >>confdefs.h <<\_ACEOF
36320#define wxUSE_CLIPBOARD 1
36321_ACEOF
36322
36323
36324 cat >>confdefs.h <<\_ACEOF
36325#define wxUSE_DATAOBJ 1
36326_ACEOF
36327
36328 fi
36329fi
36330
36331if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36332 if test "$wxUSE_GTK" = 1; then
36333 if test "$WXGTK12" != 1; then
36334 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36335echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
36336 wxUSE_DRAG_AND_DROP=no
36337 fi
36338 fi
36339
36340 if test "$wxUSE_MOTIF" = 1; then
36341 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36342echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
36343 wxUSE_DRAG_AND_DROP=no
36344 fi
36345
36346 if test "$wxUSE_X11" = 1; then
36347 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36348echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
36349 wxUSE_DRAG_AND_DROP=no
36350 fi
36351
36352 if test "$wxUSE_MGL" = 1; then
36353 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36354echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
36355 wxUSE_DRAG_AND_DROP=no
36356 fi
36357
36358 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
36359 cat >>confdefs.h <<\_ACEOF
36360#define wxUSE_DRAG_AND_DROP 1
36361_ACEOF
36362
36363 fi
36364
36365fi
36366
36367if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
36368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36369fi
36370
36371if test "$wxUSE_SPLINES" = "yes" ; then
36372 cat >>confdefs.h <<\_ACEOF
36373#define wxUSE_SPLINES 1
36374_ACEOF
36375
36376fi
36377
36378
36379USES_CONTROLS=0
36380if test "$wxUSE_CONTROLS" = "yes"; then
36381 USES_CONTROLS=1
36382fi
36383
36384if test "$wxUSE_ACCEL" = "yes"; then
36385 cat >>confdefs.h <<\_ACEOF
36386#define wxUSE_ACCEL 1
36387_ACEOF
36388
36389 USES_CONTROLS=1
36390fi
36391
36392if test "$wxUSE_BUTTON" = "yes"; then
36393 cat >>confdefs.h <<\_ACEOF
36394#define wxUSE_BUTTON 1
36395_ACEOF
36396
36397 USES_CONTROLS=1
36398fi
36399
36400if test "$wxUSE_BMPBUTTON" = "yes"; then
36401 cat >>confdefs.h <<\_ACEOF
36402#define wxUSE_BMPBUTTON 1
36403_ACEOF
36404
36405 USES_CONTROLS=1
36406fi
36407
36408if test "$wxUSE_CALCTRL" = "yes"; then
36409 cat >>confdefs.h <<\_ACEOF
36410#define wxUSE_CALENDARCTRL 1
36411_ACEOF
36412
36413 USES_CONTROLS=1
36414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
36415fi
36416
36417if test "$wxUSE_CARET" = "yes"; then
36418 cat >>confdefs.h <<\_ACEOF
36419#define wxUSE_CARET 1
36420_ACEOF
36421
36422 USES_CONTROLS=1
36423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36424fi
36425
36426if test "$wxUSE_COMBOBOX" = "yes"; then
36427 cat >>confdefs.h <<\_ACEOF
36428#define wxUSE_COMBOBOX 1
36429_ACEOF
36430
36431 USES_CONTROLS=1
36432fi
36433
36434if test "$wxUSE_CHOICE" = "yes"; then
36435 cat >>confdefs.h <<\_ACEOF
36436#define wxUSE_CHOICE 1
36437_ACEOF
36438
36439 USES_CONTROLS=1
36440fi
36441
92bbdbcd
WS
36442if test "$wxUSE_CHOICEBOOK" = "yes"; then
36443 cat >>confdefs.h <<\_ACEOF
36444#define wxUSE_CHOICEBOOK 1
36445_ACEOF
36446
36447 USES_CONTROLS=1
36448fi
36449
a848cd7e
SC
36450if test "$wxUSE_CHECKBOX" = "yes"; then
36451 cat >>confdefs.h <<\_ACEOF
36452#define wxUSE_CHECKBOX 1
36453_ACEOF
36454
36455 USES_CONTROLS=1
36456fi
36457
36458if test "$wxUSE_CHECKLST" = "yes"; then
36459 cat >>confdefs.h <<\_ACEOF
36460#define wxUSE_CHECKLISTBOX 1
36461_ACEOF
36462
36463 USES_CONTROLS=1
36464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36465fi
36466
36467if test "$wxUSE_DISPLAY" = "yes"; then
36468 cat >>confdefs.h <<\_ACEOF
36469#define wxUSE_DISPLAY 1
36470_ACEOF
36471
36472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36473fi
36474
36475if test "$wxUSE_GAUGE" = "yes"; then
36476 cat >>confdefs.h <<\_ACEOF
36477#define wxUSE_GAUGE 1
36478_ACEOF
36479
36480 USES_CONTROLS=1
36481fi
36482
36483if test "$wxUSE_GRID" = "yes"; then
36484 cat >>confdefs.h <<\_ACEOF
36485#define wxUSE_GRID 1
36486_ACEOF
36487
36488 USES_CONTROLS=1
36489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
36490fi
36491
36492if test "$wxUSE_IMAGLIST" = "yes"; then
36493 cat >>confdefs.h <<\_ACEOF
36494#define wxUSE_IMAGLIST 1
36495_ACEOF
36496
36497fi
36498
36499if test "$wxUSE_LISTBOOK" = "yes"; then
36500 cat >>confdefs.h <<\_ACEOF
36501#define wxUSE_LISTBOOK 1
36502_ACEOF
36503
36504 USES_CONTROLS=1
36505fi
36506
36507if test "$wxUSE_LISTBOX" = "yes"; then
36508 cat >>confdefs.h <<\_ACEOF
36509#define wxUSE_LISTBOX 1
36510_ACEOF
36511
36512 USES_CONTROLS=1
36513fi
36514
36515if test "$wxUSE_LISTCTRL" = "yes"; then
36516 if test "$wxUSE_IMAGLIST" = "yes"; then
36517 cat >>confdefs.h <<\_ACEOF
36518#define wxUSE_LISTCTRL 1
36519_ACEOF
36520
36521 USES_CONTROLS=1
36522 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36523 else
36524 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36525echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
36526 fi
36527fi
36528
36529if test "$wxUSE_NOTEBOOK" = "yes"; then
36530 cat >>confdefs.h <<\_ACEOF
36531#define wxUSE_NOTEBOOK 1
36532_ACEOF
36533
36534 USES_CONTROLS=1
36535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36536fi
36537
36538
36539if test "$wxUSE_RADIOBOX" = "yes"; then
36540 cat >>confdefs.h <<\_ACEOF
36541#define wxUSE_RADIOBOX 1
36542_ACEOF
36543
36544 USES_CONTROLS=1
36545fi
36546
36547if test "$wxUSE_RADIOBTN" = "yes"; then
36548 cat >>confdefs.h <<\_ACEOF
36549#define wxUSE_RADIOBTN 1
36550_ACEOF
36551
36552 USES_CONTROLS=1
36553fi
36554
36555if test "$wxUSE_SASH" = "yes"; then
36556 cat >>confdefs.h <<\_ACEOF
36557#define wxUSE_SASH 1
36558_ACEOF
36559
36560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36561fi
36562
36563if test "$wxUSE_SCROLLBAR" = "yes"; then
36564 cat >>confdefs.h <<\_ACEOF
36565#define wxUSE_SCROLLBAR 1
36566_ACEOF
36567
36568 USES_CONTROLS=1
36569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
36570fi
36571
36572if test "$wxUSE_SLIDER" = "yes"; then
36573 cat >>confdefs.h <<\_ACEOF
36574#define wxUSE_SLIDER 1
36575_ACEOF
36576
36577 USES_CONTROLS=1
36578fi
36579
36580if test "$wxUSE_SPINBTN" = "yes"; then
36581 cat >>confdefs.h <<\_ACEOF
36582#define wxUSE_SPINBTN 1
36583_ACEOF
36584
36585 USES_CONTROLS=1
36586fi
36587
36588if test "$wxUSE_SPINCTRL" = "yes"; then
36589 cat >>confdefs.h <<\_ACEOF
36590#define wxUSE_SPINCTRL 1
36591_ACEOF
36592
36593 USES_CONTROLS=1
36594fi
36595
36596if test "$wxUSE_SPLITTER" = "yes"; then
36597 cat >>confdefs.h <<\_ACEOF
36598#define wxUSE_SPLITTER 1
36599_ACEOF
36600
36601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36602fi
36603
36604if test "$wxUSE_STATBMP" = "yes"; then
36605 cat >>confdefs.h <<\_ACEOF
36606#define wxUSE_STATBMP 1
36607_ACEOF
36608
36609 USES_CONTROLS=1
36610fi
36611
36612if test "$wxUSE_STATBOX" = "yes"; then
36613 cat >>confdefs.h <<\_ACEOF
36614#define wxUSE_STATBOX 1
36615_ACEOF
36616
36617 USES_CONTROLS=1
36618fi
36619
36620if test "$wxUSE_STATTEXT" = "yes"; then
36621 cat >>confdefs.h <<\_ACEOF
36622#define wxUSE_STATTEXT 1
36623_ACEOF
36624
36625 USES_CONTROLS=1
36626fi
36627
36628if test "$wxUSE_STATLINE" = "yes"; then
36629 cat >>confdefs.h <<\_ACEOF
36630#define wxUSE_STATLINE 1
36631_ACEOF
36632
36633 USES_CONTROLS=1
36634fi
36635
36636if test "$wxUSE_STATUSBAR" = "yes"; then
36637 cat >>confdefs.h <<\_ACEOF
36638#define wxUSE_STATUSBAR 1
36639_ACEOF
36640
36641 USES_CONTROLS=1
36642
36643 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
36644fi
36645
36646if test "$wxUSE_TABDIALOG" = "yes"; then
36647 cat >>confdefs.h <<\_ACEOF
36648#define wxUSE_TAB_DIALOG 1
36649_ACEOF
36650
36651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36652fi
36653
36654if test "$wxUSE_TEXTCTRL" = "yes"; then
36655 cat >>confdefs.h <<\_ACEOF
36656#define wxUSE_TEXTCTRL 1
36657_ACEOF
36658
36659 USES_CONTROLS=1
36660 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36661fi
36662
36663if test "$wxUSE_TOGGLEBTN" = "yes"; then
36664 if test "$wxUSE_COCOA" = 1 ; then
36665 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36666echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
36667 wxUSE_TOGGLEBTN=no
bdcade0a
MB
36668 else
36669 if test "$wxUSE_PM" = 1; then
36670 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
36671echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
36672 wxUSE_TOGGLEBTN=no
36673 fi
a848cd7e
SC
36674 fi
36675 if test "$wxUSE_UNIVERSAL" = "yes"; then
36676 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36677echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
36678 wxUSE_TOGGLEBTN=no
36679 fi
36680
36681 if test "$wxUSE_TOGGLEBTN" = "yes"; then
36682 cat >>confdefs.h <<\_ACEOF
36683#define wxUSE_TOGGLEBTN 1
36684_ACEOF
36685
36686 USES_CONTROLS=1
36687 fi
36688fi
36689
36690if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
36691 cat >>confdefs.h <<\_ACEOF
36692#define wxUSE_TOOLBAR_SIMPLE 1
36693_ACEOF
36694
36695 wxUSE_TOOLBAR="yes"
36696 USES_CONTROLS=1
36697fi
36698
36699if test "$wxUSE_TOOLBAR" = "yes"; then
36700 cat >>confdefs.h <<\_ACEOF
36701#define wxUSE_TOOLBAR 1
36702_ACEOF
36703
36704 USES_CONTROLS=1
36705
36706 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36707 wxUSE_TOOLBAR_NATIVE="yes"
36708 fi
36709
36710 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
36711 cat >>confdefs.h <<\_ACEOF
36712#define wxUSE_TOOLBAR_NATIVE 1
36713_ACEOF
36714
36715 USES_CONTROLS=1
36716 fi
36717
36718 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
36719fi
36720
36721if test "$wxUSE_TOOLTIPS" = "yes"; then
36722 if test "$wxUSE_MOTIF" = 1; then
36723 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36724echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
36725 else
36726 if test "$wxUSE_UNIVERSAL" = "yes"; then
36727 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36728echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
36729 else
36730 cat >>confdefs.h <<\_ACEOF
36731#define wxUSE_TOOLTIPS 1
36732_ACEOF
36733
36734 fi
36735 fi
36736fi
36737
36738if test "$wxUSE_TREECTRL" = "yes"; then
36739 if test "$wxUSE_IMAGLIST" = "yes"; then
36740 cat >>confdefs.h <<\_ACEOF
36741#define wxUSE_TREECTRL 1
36742_ACEOF
36743
36744 USES_CONTROLS=1
36745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36746 else
36747 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36748echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
36749 fi
36750fi
36751
36752if test "$wxUSE_POPUPWIN" = "yes"; then
36753 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
36754 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36755echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
36756 else
36757 if test "$wxUSE_PM" = 1; then
36758 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
36759echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
36760 else
36761 cat >>confdefs.h <<\_ACEOF
36762#define wxUSE_POPUPWIN 1
36763_ACEOF
36764
36765
36766 USES_CONTROLS=1
36767 fi
36768 fi
36769fi
36770
36771if test "$wxUSE_TIPWINDOW" = "yes"; then
36772 if test "$wxUSE_PM" = 1; then
36773 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36774echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
36775 else
36776 cat >>confdefs.h <<\_ACEOF
36777#define wxUSE_TIPWINDOW 1
36778_ACEOF
36779
36780 fi
36781fi
36782
36783if test "$USES_CONTROLS" = 1; then
36784 cat >>confdefs.h <<\_ACEOF
36785#define wxUSE_CONTROLS 1
36786_ACEOF
36787
36788fi
36789
36790
36791if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36792 cat >>confdefs.h <<\_ACEOF
36793#define wxUSE_ACCESSIBILITY 1
36794_ACEOF
36795
36796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36797fi
36798
36799if test "$wxUSE_DRAGIMAGE" = "yes"; then
36800 cat >>confdefs.h <<\_ACEOF
36801#define wxUSE_DRAGIMAGE 1
36802_ACEOF
36803
36804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36805fi
36806
36807if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
36808 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
36809 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
36810echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
36811 else
36812 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
36813#define wxUSE_EXCEPTIONS 1
36814_ACEOF
36815
07bea8f0
VS
36816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
36817 fi
a848cd7e
SC
36818fi
36819
36820USE_HTML=0
36821if test "$wxUSE_HTML" = "yes"; then
36822 cat >>confdefs.h <<\_ACEOF
36823#define wxUSE_HTML 1
36824_ACEOF
36825
36826 USE_HTML=1
36827 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
36828 if test "$wxUSE_MAC" = 1; then
36829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
36830 fi
a848cd7e 36831fi
646b6ec1 36832if test "$wxUSE_WEBKIT" = "yes"; then
07bea8f0
VS
36833 if test "$wxUSE_MAC" = 1; then
36834 old_CPPFLAGS="$CPPFLAGS"
36835 CPPFLAGS="$CPPFLAGS -x objective-c++"
36836 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
36837echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
36838if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
36839 echo $ECHO_N "(cached) $ECHO_C" >&6
36840else
36841 cat >conftest.$ac_ext <<_ACEOF
36842/* confdefs.h. */
36843_ACEOF
36844cat confdefs.h >>conftest.$ac_ext
36845cat >>conftest.$ac_ext <<_ACEOF
36846/* end confdefs.h. */
36847#include <Carbon/Carbon.h>
36848
36849#include <WebKit/HIWebView.h>
36850_ACEOF
36851rm -f conftest.$ac_objext
36852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36853 (eval $ac_compile) 2>conftest.er1
36854 ac_status=$?
36855 grep -v '^ *+' conftest.er1 >conftest.err
36856 rm -f conftest.er1
36857 cat conftest.err >&5
36858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36859 (exit $ac_status); } &&
7714864e 36860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
36861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36862 (eval $ac_try) 2>&5
36863 ac_status=$?
36864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36865 (exit $ac_status); }; } &&
36866 { ac_try='test -s conftest.$ac_objext'
36867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36868 (eval $ac_try) 2>&5
36869 ac_status=$?
36870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36871 (exit $ac_status); }; }; then
36872 ac_cv_header_WebKit_HIWebView_h=yes
36873else
36874 echo "$as_me: failed program was:" >&5
36875sed 's/^/| /' conftest.$ac_ext >&5
36876
36877ac_cv_header_WebKit_HIWebView_h=no
36878fi
36879rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36880fi
36881echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
36882echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
36883if test $ac_cv_header_WebKit_HIWebView_h = yes; then
36884
36885 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
36886#define wxUSE_WEBKIT 1
36887_ACEOF
36888
07bea8f0
VS
36889 WEBKIT_LINK="-framework WebKit"
36890
36891else
36892
36893 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
36894echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
36895 wxUSE_WEBKIT=no
36896
646b6ec1
VS
36897fi
36898
07bea8f0
VS
36899
36900 CPPFLAGS="$old_CPPFLAGS"
36901 elif test "$wxUSE_COCOA" = 1; then
36902 cat >>confdefs.h <<\_ACEOF
36903#define wxUSE_WEBKIT 1
36904_ACEOF
36905
36906 else
36907 wxUSE_WEBKIT=no
36908 fi
36909fi
36910
9a8f0513
VS
36911USE_XRC=0
36912if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
36913 if test "$wxUSE_XML" != "yes"; then
36914 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
36915echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
36916 wxUSE_XRC=no
36917 else
36918 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
36919#define wxUSE_XRC 1
36920_ACEOF
36921
d2ebf0b7
VS
36922 USE_XRC=1
36923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
36924 fi
9a8f0513 36925fi
07bea8f0 36926
a848cd7e
SC
36927if test "$wxUSE_MENUS" = "yes"; then
36928 cat >>confdefs.h <<\_ACEOF
36929#define wxUSE_MENUS 1
36930_ACEOF
36931
36932 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
36933fi
36934
36935if test "$wxUSE_METAFILE" = "yes"; then
36936 cat >>confdefs.h <<\_ACEOF
36937#define wxUSE_METAFILE 1
36938_ACEOF
36939
36940fi
36941
36942if test "$wxUSE_MIMETYPE" = "yes"; then
36943 cat >>confdefs.h <<\_ACEOF
36944#define wxUSE_MIMETYPE 1
36945_ACEOF
36946
36947fi
36948
36949if test "$wxUSE_MINIFRAME" = "yes"; then
36950 cat >>confdefs.h <<\_ACEOF
36951#define wxUSE_MINIFRAME 1
36952_ACEOF
36953
36954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36955fi
36956
36957if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
36958 cat >>confdefs.h <<\_ACEOF
36959#define wxUSE_SYSTEM_OPTIONS 1
36960_ACEOF
36961
36962 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36963 "$TOOLKIT" = "MOTIF"; then
36964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36965 fi
36966fi
36967
36968
36969if test "$wxUSE_VALIDATORS" = "yes"; then
36970 cat >>confdefs.h <<\_ACEOF
36971#define wxUSE_VALIDATORS 1
36972_ACEOF
36973
36974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36975fi
36976
36977if test "$wxUSE_PALETTE" = "yes" ; then
36978 cat >>confdefs.h <<\_ACEOF
36979#define wxUSE_PALETTE 1
36980_ACEOF
36981
36982fi
36983
36984if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36985 LIBS=" -lunicows $LIBS"
36986fi
36987
36988
36989if test "$wxUSE_IMAGE" = "yes" ; then
36990 cat >>confdefs.h <<\_ACEOF
36991#define wxUSE_IMAGE 1
36992_ACEOF
36993
36994
36995 if test "$wxUSE_GIF" = "yes" ; then
36996 cat >>confdefs.h <<\_ACEOF
36997#define wxUSE_GIF 1
36998_ACEOF
36999
37000 fi
37001
37002 if test "$wxUSE_PCX" = "yes" ; then
37003 cat >>confdefs.h <<\_ACEOF
37004#define wxUSE_PCX 1
37005_ACEOF
37006
37007 fi
37008
37009 if test "$wxUSE_IFF" = "yes" ; then
37010 cat >>confdefs.h <<\_ACEOF
37011#define wxUSE_IFF 1
37012_ACEOF
37013
37014 fi
37015
37016 if test "$wxUSE_PNM" = "yes" ; then
37017 cat >>confdefs.h <<\_ACEOF
37018#define wxUSE_PNM 1
37019_ACEOF
37020
37021 fi
37022
37023 if test "$wxUSE_XPM" = "yes" ; then
37024 cat >>confdefs.h <<\_ACEOF
37025#define wxUSE_XPM 1
37026_ACEOF
37027
37028 fi
37029
37030 if test "$wxUSE_ICO_CUR" = "yes" ; then
37031 cat >>confdefs.h <<\_ACEOF
37032#define wxUSE_ICO_CUR 1
37033_ACEOF
37034
37035 fi
37036fi
37037
37038
37039if test "$wxUSE_CHOICEDLG" = "yes"; then
37040 cat >>confdefs.h <<\_ACEOF
37041#define wxUSE_CHOICEDLG 1
37042_ACEOF
37043
37044fi
37045
37046if test "$wxUSE_COLOURDLG" = "yes"; then
37047 cat >>confdefs.h <<\_ACEOF
37048#define wxUSE_COLOURDLG 1
37049_ACEOF
37050
37051fi
37052
37053if test "$wxUSE_FILEDLG" = "yes"; then
37054 cat >>confdefs.h <<\_ACEOF
37055#define wxUSE_FILEDLG 1
37056_ACEOF
37057
37058fi
37059
37060if test "$wxUSE_FINDREPLDLG" = "yes"; then
37061 cat >>confdefs.h <<\_ACEOF
37062#define wxUSE_FINDREPLDLG 1
37063_ACEOF
37064
37065fi
37066
37067if test "$wxUSE_FONTDLG" = "yes"; then
37068 cat >>confdefs.h <<\_ACEOF
37069#define wxUSE_FONTDLG 1
37070_ACEOF
37071
37072fi
37073
37074if test "$wxUSE_DIRDLG" = "yes"; then
37075 if test "$wxUSE_TREECTRL" != "yes"; then
37076 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37077echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
37078 else
37079 cat >>confdefs.h <<\_ACEOF
37080#define wxUSE_DIRDLG 1
37081_ACEOF
37082
37083 fi
37084fi
37085
37086if test "$wxUSE_MSGDLG" = "yes"; then
37087 cat >>confdefs.h <<\_ACEOF
37088#define wxUSE_MSGDLG 1
37089_ACEOF
37090
37091fi
37092
37093if test "$wxUSE_NUMBERDLG" = "yes"; then
37094 cat >>confdefs.h <<\_ACEOF
37095#define wxUSE_NUMBERDLG 1
37096_ACEOF
37097
37098fi
37099
37100if test "$wxUSE_PROGRESSDLG" = "yes"; then
37101 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37102 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37103echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
37104 else
37105 cat >>confdefs.h <<\_ACEOF
37106#define wxUSE_PROGRESSDLG 1
37107_ACEOF
37108
37109 fi
37110fi
37111
37112if test "$wxUSE_SPLASH" = "yes"; then
37113 cat >>confdefs.h <<\_ACEOF
37114#define wxUSE_SPLASH 1
37115_ACEOF
37116
2057db16 37117 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
37118fi
37119
37120if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37121 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37122 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37123echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
37124 else
37125 cat >>confdefs.h <<\_ACEOF
37126#define wxUSE_STARTUP_TIPS 1
37127_ACEOF
37128
37129 fi
37130fi
37131
37132if test "$wxUSE_TEXTDLG" = "yes"; then
37133 cat >>confdefs.h <<\_ACEOF
37134#define wxUSE_TEXTDLG 1
37135_ACEOF
37136
37137fi
37138
37139if test "$wxUSE_WIZARDDLG" = "yes"; then
37140 cat >>confdefs.h <<\_ACEOF
37141#define wxUSE_WIZARDDLG 1
37142_ACEOF
37143
37144 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37145fi
37146
37147
37148if test "$cross_compiling" = "yes"; then
37149 OSINFO="\"$host\""
37150else
37151 OSINFO=`uname -s -r -m`
37152 OSINFO="\"$OSINFO\""
37153fi
37154
37155cat >>confdefs.h <<_ACEOF
37156#define WXWIN_OS_DESCRIPTION $OSINFO
37157_ACEOF
37158
37159
37160
37161if test "x$prefix" != "xNONE"; then
37162 wxPREFIX=$prefix
37163else
37164 wxPREFIX=$ac_default_prefix
37165fi
37166
37167cat >>confdefs.h <<_ACEOF
37168#define wxINSTALL_PREFIX "$wxPREFIX"
37169_ACEOF
37170
37171
a848cd7e
SC
37172
37173
37174CORE_BASE_LIBS="net base"
37175CORE_GUI_LIBS="adv core"
37176
37177if test "$wxUSE_XML" = "yes" ; then
37178 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37179fi
37180if test "$wxUSE_ODBC" != "no" ; then
37181 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37182 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
37183fi
37184if test "$wxUSE_HTML" = "yes" ; then
37185 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37186fi
9a8f0513
VS
37187if test "$wxUSE_XRC" = "yes" ; then
37188 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
37189fi
a848cd7e
SC
37190
37191if test "$wxUSE_GUI" != "yes"; then
37192 CORE_GUI_LIBS=""
37193fi
37194
37195
37196
37197
37198
37199
37200
37201
37202if test "$wxUSE_MAC" = 1 ; then
07bea8f0
VS
37203 if test "$wxUSE_SOUND" = "yes"; then
37204 LDFLAGS="$LDFLAGS -framework QuickTime"
37205 fi
5dcf30a0
RN
37206 if test "$USE_DARWIN" = 1; then
37207 LDFLAGS="$LDFLAGS -framework IOKit"
37208 fi
07bea8f0 37209 LDFLAGS="$LDFLAGS -framework Carbon -framework Cocoa -framework System"
a848cd7e
SC
37210fi
37211if test "$wxUSE_COCOA" = 1 ; then
37212 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37213fi
37214
37215
37216LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37217
37218have_cos=0
37219have_floor=0
37220
37221for ac_func in cos
37222do
37223as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37224echo "$as_me:$LINENO: checking for $ac_func" >&5
37225echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37226if eval "test \"\${$as_ac_var+set}\" = set"; then
37227 echo $ECHO_N "(cached) $ECHO_C" >&6
37228else
37229 cat >conftest.$ac_ext <<_ACEOF
37230/* confdefs.h. */
37231_ACEOF
37232cat confdefs.h >>conftest.$ac_ext
37233cat >>conftest.$ac_ext <<_ACEOF
37234/* end confdefs.h. */
ac1cb8d3
VS
37235/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37237#define $ac_func innocuous_$ac_func
37238
a848cd7e
SC
37239/* System header to define __stub macros and hopefully few prototypes,
37240 which can conflict with char $ac_func (); below.
37241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37242 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37243
a848cd7e
SC
37244#ifdef __STDC__
37245# include <limits.h>
37246#else
37247# include <assert.h>
37248#endif
ac1cb8d3
VS
37249
37250#undef $ac_func
37251
a848cd7e
SC
37252/* Override any gcc2 internal prototype to avoid an error. */
37253#ifdef __cplusplus
37254extern "C"
37255{
37256#endif
37257/* We use char because int might match the return type of a gcc2
37258 builtin and then its argument prototype would still apply. */
37259char $ac_func ();
37260/* The GNU C library defines this for functions which it implements
37261 to always fail with ENOSYS. Some functions are actually named
37262 something starting with __ and the normal name is an alias. */
37263#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37264choke me
37265#else
37266char (*f) () = $ac_func;
37267#endif
37268#ifdef __cplusplus
37269}
37270#endif
37271
37272int
37273main ()
37274{
37275return f != $ac_func;
37276 ;
37277 return 0;
37278}
37279_ACEOF
37280rm -f conftest.$ac_objext conftest$ac_exeext
37281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37282 (eval $ac_link) 2>conftest.er1
a848cd7e 37283 ac_status=$?
ac1cb8d3
VS
37284 grep -v '^ *+' conftest.er1 >conftest.err
37285 rm -f conftest.er1
37286 cat conftest.err >&5
a848cd7e
SC
37287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37288 (exit $ac_status); } &&
7714864e 37289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37291 (eval $ac_try) 2>&5
37292 ac_status=$?
37293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37294 (exit $ac_status); }; } &&
37295 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37297 (eval $ac_try) 2>&5
37298 ac_status=$?
37299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37300 (exit $ac_status); }; }; then
37301 eval "$as_ac_var=yes"
37302else
37303 echo "$as_me: failed program was:" >&5
37304sed 's/^/| /' conftest.$ac_ext >&5
37305
37306eval "$as_ac_var=no"
37307fi
ac1cb8d3
VS
37308rm -f conftest.err conftest.$ac_objext \
37309 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37310fi
37311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37312echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37313if test `eval echo '${'$as_ac_var'}'` = yes; then
37314 cat >>confdefs.h <<_ACEOF
37315#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37316_ACEOF
37317 have_cos=1
37318fi
37319done
37320
37321
37322for ac_func in floor
37323do
37324as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37325echo "$as_me:$LINENO: checking for $ac_func" >&5
37326echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37327if eval "test \"\${$as_ac_var+set}\" = set"; then
37328 echo $ECHO_N "(cached) $ECHO_C" >&6
37329else
37330 cat >conftest.$ac_ext <<_ACEOF
37331/* confdefs.h. */
37332_ACEOF
37333cat confdefs.h >>conftest.$ac_ext
37334cat >>conftest.$ac_ext <<_ACEOF
37335/* end confdefs.h. */
ac1cb8d3
VS
37336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37338#define $ac_func innocuous_$ac_func
37339
a848cd7e
SC
37340/* System header to define __stub macros and hopefully few prototypes,
37341 which can conflict with char $ac_func (); below.
37342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37343 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37344
a848cd7e
SC
37345#ifdef __STDC__
37346# include <limits.h>
37347#else
37348# include <assert.h>
37349#endif
ac1cb8d3
VS
37350
37351#undef $ac_func
37352
a848cd7e
SC
37353/* Override any gcc2 internal prototype to avoid an error. */
37354#ifdef __cplusplus
37355extern "C"
37356{
37357#endif
37358/* We use char because int might match the return type of a gcc2
37359 builtin and then its argument prototype would still apply. */
37360char $ac_func ();
37361/* The GNU C library defines this for functions which it implements
37362 to always fail with ENOSYS. Some functions are actually named
37363 something starting with __ and the normal name is an alias. */
37364#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37365choke me
37366#else
37367char (*f) () = $ac_func;
37368#endif
37369#ifdef __cplusplus
37370}
37371#endif
37372
37373int
37374main ()
37375{
37376return f != $ac_func;
37377 ;
37378 return 0;
37379}
37380_ACEOF
37381rm -f conftest.$ac_objext conftest$ac_exeext
37382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37383 (eval $ac_link) 2>conftest.er1
a848cd7e 37384 ac_status=$?
ac1cb8d3
VS
37385 grep -v '^ *+' conftest.er1 >conftest.err
37386 rm -f conftest.er1
37387 cat conftest.err >&5
a848cd7e
SC
37388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389 (exit $ac_status); } &&
7714864e 37390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37392 (eval $ac_try) 2>&5
37393 ac_status=$?
37394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37395 (exit $ac_status); }; } &&
37396 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37398 (eval $ac_try) 2>&5
37399 ac_status=$?
37400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37401 (exit $ac_status); }; }; then
37402 eval "$as_ac_var=yes"
37403else
37404 echo "$as_me: failed program was:" >&5
37405sed 's/^/| /' conftest.$ac_ext >&5
37406
37407eval "$as_ac_var=no"
37408fi
ac1cb8d3
VS
37409rm -f conftest.err conftest.$ac_objext \
37410 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37411fi
37412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37413echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37414if test `eval echo '${'$as_ac_var'}'` = yes; then
37415 cat >>confdefs.h <<_ACEOF
37416#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37417_ACEOF
37418 have_floor=1
37419fi
37420done
37421
37422echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37423echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
37424if test "$have_cos" = 1 -a "$have_floor" = 1; then
37425 echo "$as_me:$LINENO: result: yes" >&5
37426echo "${ECHO_T}yes" >&6
37427else
37428 echo "$as_me:$LINENO: result: no" >&5
37429echo "${ECHO_T}no" >&6
37430 LIBS="$LIBS -lm"
37431 # use different functions to avoid configure caching
37432 have_sin=0
37433 have_ceil=0
37434
37435for ac_func in sin
37436do
37437as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37438echo "$as_me:$LINENO: checking for $ac_func" >&5
37439echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37440if eval "test \"\${$as_ac_var+set}\" = set"; then
37441 echo $ECHO_N "(cached) $ECHO_C" >&6
37442else
37443 cat >conftest.$ac_ext <<_ACEOF
37444/* confdefs.h. */
37445_ACEOF
37446cat confdefs.h >>conftest.$ac_ext
37447cat >>conftest.$ac_ext <<_ACEOF
37448/* end confdefs.h. */
ac1cb8d3
VS
37449/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37451#define $ac_func innocuous_$ac_func
37452
a848cd7e
SC
37453/* System header to define __stub macros and hopefully few prototypes,
37454 which can conflict with char $ac_func (); below.
37455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37456 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37457
a848cd7e
SC
37458#ifdef __STDC__
37459# include <limits.h>
37460#else
37461# include <assert.h>
37462#endif
ac1cb8d3
VS
37463
37464#undef $ac_func
37465
a848cd7e
SC
37466/* Override any gcc2 internal prototype to avoid an error. */
37467#ifdef __cplusplus
37468extern "C"
37469{
37470#endif
37471/* We use char because int might match the return type of a gcc2
37472 builtin and then its argument prototype would still apply. */
37473char $ac_func ();
37474/* The GNU C library defines this for functions which it implements
37475 to always fail with ENOSYS. Some functions are actually named
37476 something starting with __ and the normal name is an alias. */
37477#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37478choke me
37479#else
37480char (*f) () = $ac_func;
37481#endif
37482#ifdef __cplusplus
37483}
37484#endif
37485
37486int
37487main ()
37488{
37489return f != $ac_func;
37490 ;
37491 return 0;
37492}
37493_ACEOF
37494rm -f conftest.$ac_objext conftest$ac_exeext
37495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37496 (eval $ac_link) 2>conftest.er1
a848cd7e 37497 ac_status=$?
ac1cb8d3
VS
37498 grep -v '^ *+' conftest.er1 >conftest.err
37499 rm -f conftest.er1
37500 cat conftest.err >&5
a848cd7e
SC
37501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502 (exit $ac_status); } &&
7714864e 37503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37505 (eval $ac_try) 2>&5
37506 ac_status=$?
37507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37508 (exit $ac_status); }; } &&
37509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37511 (eval $ac_try) 2>&5
37512 ac_status=$?
37513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37514 (exit $ac_status); }; }; then
37515 eval "$as_ac_var=yes"
37516else
37517 echo "$as_me: failed program was:" >&5
37518sed 's/^/| /' conftest.$ac_ext >&5
37519
37520eval "$as_ac_var=no"
37521fi
ac1cb8d3
VS
37522rm -f conftest.err conftest.$ac_objext \
37523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37524fi
37525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37526echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37527if test `eval echo '${'$as_ac_var'}'` = yes; then
37528 cat >>confdefs.h <<_ACEOF
37529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37530_ACEOF
37531 have_sin=1
37532fi
37533done
37534
37535
37536for ac_func in ceil
37537do
37538as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37539echo "$as_me:$LINENO: checking for $ac_func" >&5
37540echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37541if eval "test \"\${$as_ac_var+set}\" = set"; then
37542 echo $ECHO_N "(cached) $ECHO_C" >&6
37543else
37544 cat >conftest.$ac_ext <<_ACEOF
37545/* confdefs.h. */
37546_ACEOF
37547cat confdefs.h >>conftest.$ac_ext
37548cat >>conftest.$ac_ext <<_ACEOF
37549/* end confdefs.h. */
ac1cb8d3
VS
37550/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37551 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37552#define $ac_func innocuous_$ac_func
37553
a848cd7e
SC
37554/* System header to define __stub macros and hopefully few prototypes,
37555 which can conflict with char $ac_func (); below.
37556 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37557 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37558
a848cd7e
SC
37559#ifdef __STDC__
37560# include <limits.h>
37561#else
37562# include <assert.h>
37563#endif
ac1cb8d3
VS
37564
37565#undef $ac_func
37566
a848cd7e
SC
37567/* Override any gcc2 internal prototype to avoid an error. */
37568#ifdef __cplusplus
37569extern "C"
37570{
37571#endif
37572/* We use char because int might match the return type of a gcc2
37573 builtin and then its argument prototype would still apply. */
37574char $ac_func ();
37575/* The GNU C library defines this for functions which it implements
37576 to always fail with ENOSYS. Some functions are actually named
37577 something starting with __ and the normal name is an alias. */
37578#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37579choke me
37580#else
37581char (*f) () = $ac_func;
37582#endif
37583#ifdef __cplusplus
37584}
37585#endif
37586
37587int
37588main ()
37589{
37590return f != $ac_func;
37591 ;
37592 return 0;
37593}
37594_ACEOF
37595rm -f conftest.$ac_objext conftest$ac_exeext
37596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37597 (eval $ac_link) 2>conftest.er1
a848cd7e 37598 ac_status=$?
ac1cb8d3
VS
37599 grep -v '^ *+' conftest.er1 >conftest.err
37600 rm -f conftest.er1
37601 cat conftest.err >&5
a848cd7e
SC
37602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37603 (exit $ac_status); } &&
7714864e 37604 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37606 (eval $ac_try) 2>&5
37607 ac_status=$?
37608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37609 (exit $ac_status); }; } &&
37610 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37612 (eval $ac_try) 2>&5
37613 ac_status=$?
37614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37615 (exit $ac_status); }; }; then
37616 eval "$as_ac_var=yes"
37617else
37618 echo "$as_me: failed program was:" >&5
37619sed 's/^/| /' conftest.$ac_ext >&5
37620
37621eval "$as_ac_var=no"
37622fi
ac1cb8d3
VS
37623rm -f conftest.err conftest.$ac_objext \
37624 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37625fi
37626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37627echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37628if test `eval echo '${'$as_ac_var'}'` = yes; then
37629 cat >>confdefs.h <<_ACEOF
37630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37631_ACEOF
37632 have_ceil=1
37633fi
37634done
37635
37636 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37637echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
37638 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
37639 echo "$as_me:$LINENO: result: yes" >&5
37640echo "${ECHO_T}yes" >&6
37641 else
37642 echo "$as_me:$LINENO: result: no" >&5
37643echo "${ECHO_T}no" >&6
37644 # not sure we should warn the user, crash, etc.
37645 fi
37646fi
37647
37648if test "$wxUSE_GUI" = "yes"; then
37649
37650
37651 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37652 drawing dynamic erase event exec font image \
37653 minimal propsize rotate shaped widgets render"
37654
37655 if test "$wxUSE_MONOLITHIC" != "yes"; then
37656 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37657 fi
37658else
37659 SAMPLES_SUBDIRS="console"
37660fi
37661
37662
ceec2216 37663INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
37664-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
37665
37666if test "$GXX" = yes ; then
37667 CXXWARNINGS="-Wall"
37668 fi
37669
37670EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37671
0c3c69fc
VS
37672CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
37673CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS`
37674CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
37675
37676
0c3c69fc 37677LIBS=`echo $LIBS`
a848cd7e
SC
37678EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
37679EXTRALIBS_XML="$EXPAT_LINK"
37680EXTRALIBS_HTML="$MSPACK_LINK"
37681EXTRALIBS_ODBC="$ODBC_LINK"
37682if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 37683 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
37684fi
37685if test "$wxUSE_OPENGL" = "yes"; then
37686 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37687fi
37688
37689LDFLAGS="$LDFLAGS $PROFILE"
37690
37691if test "$wxUSE_GTK" = 1; then
37692 WXCONFIG_INCLUDE=
37693else
37694 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37695fi
37696
37697WXCONFIG_EXTRALIBS="$LIBS"
37698
37699if test "$wxUSE_REGEX" = "builtin" ; then
37700 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
37701fi
37702if test "$wxUSE_EXPAT" = "builtin" ; then
37703 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37704fi
37705if test "$wxUSE_ODBC" = "builtin" ; then
37706 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37707fi
37708if test "$wxUSE_LIBTIFF" = "builtin" ; then
37709 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37710fi
37711if test "$wxUSE_LIBJPEG" = "builtin" ; then
37712 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37713fi
37714if test "$wxUSE_LIBPNG" = "builtin" ; then
37715 wxconfig_3rdparty="$wxconfig_3rdparty png"
37716fi
37717if test "$wxUSE_ZLIB" = "builtin" ; then
37718 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37719fi
37720if test "$wxUSE_ODBC" = "builtin" ; then
37721 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37722fi
37723
37724for i in $wxconfig_3rdparty ; do
ceec2216 37725 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
37726done
37727
37728
37729if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37730 WXUNIV=1
37731else
37732 WXUNIV=0
37733fi
37734
37735
37736
37737
37738
37739
37740
37741
37742
37743if test $wxUSE_MONOLITHIC = "yes" ; then
37744 MONOLITHIC=1
37745else
37746 MONOLITHIC=0
37747fi
37748
37749if test $wxUSE_PLUGINS = "yes" ; then
37750 USE_PLUGINS=1
37751else
37752 USE_PLUGINS=0
37753fi
37754
37755if test $wxUSE_ODBC != "no" ; then
37756 USE_ODBC=1
37757else
37758 USE_ODBC=0
37759fi
37760
37761if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37762 OFFICIAL_BUILD=1
37763else
37764 OFFICIAL_BUILD=0
37765fi
37766
37767
37768
37769
37770
37771
37772
37773
37774
37775
37776
37777
37778
37779
37780
37781
37782
37783
37784
ceec2216 37785
a848cd7e
SC
37786
37787
37788TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
37789
37790
37791
37792
37793
37794
37795
37796
4d4ff94c
VZ
37797case "$TOOLKIT" in
37798 GTK)
37799 TOOLKIT_USER="GTK+"
37800 if test "$WXGTK20" = 1; then
37801 TOOLKIT_USER="$TOOLKIT_USER 2"
37802 fi
9a8f0513 37803 ;;
4d4ff94c
VZ
37804
37805 *)
37806 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 37807 ;;
4d4ff94c 37808esac
a848cd7e 37809
9a8f0513 37810
a848cd7e
SC
37811 if test "x$BAKEFILE_HOST" = "x"; then
37812 BAKEFILE_HOST="${host}"
37813 fi
37814
37815 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
37816
37817 if test -n "$ac_tool_prefix"; then
37818 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37819set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37820echo "$as_me:$LINENO: checking for $ac_word" >&5
37821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37822if test "${ac_cv_prog_RANLIB+set}" = set; then
37823 echo $ECHO_N "(cached) $ECHO_C" >&6
37824else
37825 if test -n "$RANLIB"; then
37826 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
37827else
37828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37829for as_dir in $PATH
37830do
37831 IFS=$as_save_IFS
37832 test -z "$as_dir" && as_dir=.
37833 for ac_exec_ext in '' $ac_executable_extensions; do
37834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37835 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37837 break 2
37838 fi
37839done
37840done
37841
37842fi
37843fi
37844RANLIB=$ac_cv_prog_RANLIB
37845if test -n "$RANLIB"; then
37846 echo "$as_me:$LINENO: result: $RANLIB" >&5
37847echo "${ECHO_T}$RANLIB" >&6
37848else
37849 echo "$as_me:$LINENO: result: no" >&5
37850echo "${ECHO_T}no" >&6
37851fi
37852
37853fi
37854if test -z "$ac_cv_prog_RANLIB"; then
37855 ac_ct_RANLIB=$RANLIB
37856 # Extract the first word of "ranlib", so it can be a program name with args.
37857set dummy ranlib; ac_word=$2
37858echo "$as_me:$LINENO: checking for $ac_word" >&5
37859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37860if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37861 echo $ECHO_N "(cached) $ECHO_C" >&6
37862else
37863 if test -n "$ac_ct_RANLIB"; then
37864 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37865else
37866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37867for as_dir in $PATH
37868do
37869 IFS=$as_save_IFS
37870 test -z "$as_dir" && as_dir=.
37871 for ac_exec_ext in '' $ac_executable_extensions; do
37872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37873 ac_cv_prog_ac_ct_RANLIB="ranlib"
37874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37875 break 2
37876 fi
37877done
37878done
37879
37880 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37881fi
37882fi
37883ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37884if test -n "$ac_ct_RANLIB"; then
37885 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37886echo "${ECHO_T}$ac_ct_RANLIB" >&6
37887else
37888 echo "$as_me:$LINENO: result: no" >&5
37889echo "${ECHO_T}no" >&6
37890fi
37891
37892 RANLIB=$ac_ct_RANLIB
37893else
37894 RANLIB="$ac_cv_prog_RANLIB"
37895fi
37896
37897 # Find a good install program. We prefer a C program (faster),
37898# so one script is as good as another. But avoid the broken or
37899# incompatible versions:
37900# SysV /etc/install, /usr/sbin/install
37901# SunOS /usr/etc/install
37902# IRIX /sbin/install
37903# AIX /bin/install
37904# AmigaOS /C/install, which installs bootblocks on floppy discs
37905# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37906# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37907# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 37908# OS/2's system install, which has a completely different semantic
a848cd7e
SC
37909# ./install, which can be erroneously created by make from ./install.sh.
37910echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37911echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
37912if test -z "$INSTALL"; then
37913if test "${ac_cv_path_install+set}" = set; then
37914 echo $ECHO_N "(cached) $ECHO_C" >&6
37915else
37916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37917for as_dir in $PATH
37918do
37919 IFS=$as_save_IFS
37920 test -z "$as_dir" && as_dir=.
37921 # Account for people who put trailing slashes in PATH elements.
37922case $as_dir/ in
37923 ./ | .// | /cC/* | \
37924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 37925 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
37926 /usr/ucb/* ) ;;
37927 *)
37928 # OSF1 and SCO ODT 3.0 have their own names for install.
37929 # Don't use installbsd from OSF since it installs stuff as root
37930 # by default.
37931 for ac_prog in ginstall scoinst install; do
37932 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
37933 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37934 if test $ac_prog = install &&
37935 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37936 # AIX install. It has an incompatible calling convention.
37937 :
37938 elif test $ac_prog = install &&
37939 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37940 # program-specific install script used by HP pwplus--don't use.
37941 :
37942 else
37943 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37944 break 3
37945 fi
37946 fi
a848cd7e
SC
37947 done
37948 done
37949 ;;
37950esac
37951done
37952
37953
37954fi
37955 if test "${ac_cv_path_install+set}" = set; then
37956 INSTALL=$ac_cv_path_install
37957 else
37958 # As a last resort, use the slow shell script. We don't cache a
37959 # path for INSTALL within a source directory, because that will
37960 # break other packages using the cache if that directory is
37961 # removed, or if the path is relative.
37962 INSTALL=$ac_install_sh
37963 fi
37964fi
37965echo "$as_me:$LINENO: result: $INSTALL" >&5
37966echo "${ECHO_T}$INSTALL" >&6
37967
37968# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37969# It thinks the first close brace ends the variable substitution.
37970test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37971
37972test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
37973
37974test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37975
37976 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37977echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37978LN_S=$as_ln_s
37979if test "$LN_S" = "ln -s"; then
37980 echo "$as_me:$LINENO: result: yes" >&5
37981echo "${ECHO_T}yes" >&6
37982else
37983 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37984echo "${ECHO_T}no, using $LN_S" >&6
37985fi
37986
37987
37988 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37989echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 37990set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
37991if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37992 echo $ECHO_N "(cached) $ECHO_C" >&6
37993else
37994 cat >conftest.make <<\_ACEOF
37995all:
37996 @echo 'ac_maketemp="$(MAKE)"'
37997_ACEOF
37998# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
37999eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38000if test -n "$ac_maketemp"; then
38001 eval ac_cv_prog_make_${ac_make}_set=yes
38002else
38003 eval ac_cv_prog_make_${ac_make}_set=no
38004fi
38005rm -f conftest.make
38006fi
38007if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38008 echo "$as_me:$LINENO: result: yes" >&5
38009echo "${ECHO_T}yes" >&6
38010 SET_MAKE=
38011else
38012 echo "$as_me:$LINENO: result: no" >&5
38013echo "${ECHO_T}no" >&6
38014 SET_MAKE="MAKE=${MAKE-make}"
38015fi
38016
38017
38018
38019 if test -n "$ac_tool_prefix"; then
38020 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38021set dummy ${ac_tool_prefix}ar; ac_word=$2
38022echo "$as_me:$LINENO: checking for $ac_word" >&5
38023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38024if test "${ac_cv_prog_AR+set}" = set; then
38025 echo $ECHO_N "(cached) $ECHO_C" >&6
38026else
38027 if test -n "$AR"; then
38028 ac_cv_prog_AR="$AR" # Let the user override the test.
38029else
38030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38031for as_dir in $PATH
38032do
38033 IFS=$as_save_IFS
38034 test -z "$as_dir" && as_dir=.
38035 for ac_exec_ext in '' $ac_executable_extensions; do
38036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38037 ac_cv_prog_AR="${ac_tool_prefix}ar"
38038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38039 break 2
38040 fi
38041done
38042done
38043
38044fi
38045fi
38046AR=$ac_cv_prog_AR
38047if test -n "$AR"; then
38048 echo "$as_me:$LINENO: result: $AR" >&5
38049echo "${ECHO_T}$AR" >&6
38050else
38051 echo "$as_me:$LINENO: result: no" >&5
38052echo "${ECHO_T}no" >&6
38053fi
38054
38055fi
38056if test -z "$ac_cv_prog_AR"; then
38057 ac_ct_AR=$AR
38058 # Extract the first word of "ar", so it can be a program name with args.
38059set dummy ar; ac_word=$2
38060echo "$as_me:$LINENO: checking for $ac_word" >&5
38061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38062if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38063 echo $ECHO_N "(cached) $ECHO_C" >&6
38064else
38065 if test -n "$ac_ct_AR"; then
38066 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38067else
38068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38069for as_dir in $PATH
38070do
38071 IFS=$as_save_IFS
38072 test -z "$as_dir" && as_dir=.
38073 for ac_exec_ext in '' $ac_executable_extensions; do
38074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38075 ac_cv_prog_ac_ct_AR="ar"
38076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38077 break 2
38078 fi
38079done
38080done
38081
38082 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38083fi
38084fi
38085ac_ct_AR=$ac_cv_prog_ac_ct_AR
38086if test -n "$ac_ct_AR"; then
38087 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38088echo "${ECHO_T}$ac_ct_AR" >&6
38089else
38090 echo "$as_me:$LINENO: result: no" >&5
38091echo "${ECHO_T}no" >&6
38092fi
38093
38094 AR=$ac_ct_AR
38095else
38096 AR="$ac_cv_prog_AR"
38097fi
38098
38099 if test -n "$ac_tool_prefix"; then
38100 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38101set dummy ${ac_tool_prefix}strip; ac_word=$2
38102echo "$as_me:$LINENO: checking for $ac_word" >&5
38103echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38104if test "${ac_cv_prog_STRIP+set}" = set; then
38105 echo $ECHO_N "(cached) $ECHO_C" >&6
38106else
38107 if test -n "$STRIP"; then
38108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38109else
38110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38111for as_dir in $PATH
38112do
38113 IFS=$as_save_IFS
38114 test -z "$as_dir" && as_dir=.
38115 for ac_exec_ext in '' $ac_executable_extensions; do
38116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38117 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
38118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38119 break 2
38120 fi
38121done
38122done
38123
38124fi
38125fi
38126STRIP=$ac_cv_prog_STRIP
38127if test -n "$STRIP"; then
38128 echo "$as_me:$LINENO: result: $STRIP" >&5
38129echo "${ECHO_T}$STRIP" >&6
38130else
38131 echo "$as_me:$LINENO: result: no" >&5
38132echo "${ECHO_T}no" >&6
38133fi
38134
38135fi
38136if test -z "$ac_cv_prog_STRIP"; then
38137 ac_ct_STRIP=$STRIP
38138 # Extract the first word of "strip", so it can be a program name with args.
38139set dummy strip; ac_word=$2
38140echo "$as_me:$LINENO: checking for $ac_word" >&5
38141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38142if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38143 echo $ECHO_N "(cached) $ECHO_C" >&6
38144else
38145 if test -n "$ac_ct_STRIP"; then
38146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38147else
38148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38149for as_dir in $PATH
38150do
38151 IFS=$as_save_IFS
38152 test -z "$as_dir" && as_dir=.
38153 for ac_exec_ext in '' $ac_executable_extensions; do
38154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38155 ac_cv_prog_ac_ct_STRIP="strip"
38156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38157 break 2
38158 fi
38159done
38160done
38161
38162 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38163fi
38164fi
38165ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38166if test -n "$ac_ct_STRIP"; then
38167 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38168echo "${ECHO_T}$ac_ct_STRIP" >&6
38169else
38170 echo "$as_me:$LINENO: result: no" >&5
38171echo "${ECHO_T}no" >&6
38172fi
38173
38174 STRIP=$ac_ct_STRIP
38175else
38176 STRIP="$ac_cv_prog_STRIP"
38177fi
38178
38179 if test -n "$ac_tool_prefix"; then
38180 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38181set dummy ${ac_tool_prefix}nm; ac_word=$2
38182echo "$as_me:$LINENO: checking for $ac_word" >&5
38183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38184if test "${ac_cv_prog_NM+set}" = set; then
38185 echo $ECHO_N "(cached) $ECHO_C" >&6
38186else
38187 if test -n "$NM"; then
38188 ac_cv_prog_NM="$NM" # Let the user override the test.
38189else
38190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38191for as_dir in $PATH
38192do
38193 IFS=$as_save_IFS
38194 test -z "$as_dir" && as_dir=.
38195 for ac_exec_ext in '' $ac_executable_extensions; do
38196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38197 ac_cv_prog_NM="${ac_tool_prefix}nm"
38198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38199 break 2
38200 fi
38201done
38202done
38203
38204fi
38205fi
38206NM=$ac_cv_prog_NM
38207if test -n "$NM"; then
38208 echo "$as_me:$LINENO: result: $NM" >&5
38209echo "${ECHO_T}$NM" >&6
38210else
38211 echo "$as_me:$LINENO: result: no" >&5
38212echo "${ECHO_T}no" >&6
38213fi
38214
38215fi
38216if test -z "$ac_cv_prog_NM"; then
38217 ac_ct_NM=$NM
38218 # Extract the first word of "nm", so it can be a program name with args.
38219set dummy nm; ac_word=$2
38220echo "$as_me:$LINENO: checking for $ac_word" >&5
38221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38222if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38223 echo $ECHO_N "(cached) $ECHO_C" >&6
38224else
38225 if test -n "$ac_ct_NM"; then
38226 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38227else
38228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38229for as_dir in $PATH
38230do
38231 IFS=$as_save_IFS
38232 test -z "$as_dir" && as_dir=.
38233 for ac_exec_ext in '' $ac_executable_extensions; do
38234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38235 ac_cv_prog_ac_ct_NM="nm"
38236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38237 break 2
38238 fi
38239done
38240done
38241
38242 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38243fi
38244fi
38245ac_ct_NM=$ac_cv_prog_ac_ct_NM
38246if test -n "$ac_ct_NM"; then
38247 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38248echo "${ECHO_T}$ac_ct_NM" >&6
38249else
38250 echo "$as_me:$LINENO: result: no" >&5
38251echo "${ECHO_T}no" >&6
38252fi
38253
38254 NM=$ac_ct_NM
38255else
38256 NM="$ac_cv_prog_NM"
38257fi
38258
38259
38260 case ${BAKEFILE_HOST} in
38261 *-hp-hpux* )
ecd16d74 38262 INSTALL_DIR="mkdir -p"
a848cd7e
SC
38263 ;;
38264 *) INSTALL_DIR="$INSTALL -d"
38265 ;;
38266 esac
38267
38268
38269 LDFLAGS_GUI=
38270 case ${BAKEFILE_HOST} in
38271 *-*-cygwin* | *-*-mingw32* )
38272 LDFLAGS_GUI="-mwindows"
38273 esac
38274
38275
38276 fi
38277
38278 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38279echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
38280if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
38281 echo $ECHO_N "(cached) $ECHO_C" >&6
38282else
38283
38284 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38285 egrep -s GNU > /dev/null); then
38286 bakefile_cv_prog_makeisgnu="yes"
38287 else
38288 bakefile_cv_prog_makeisgnu="no"
38289 fi
38290
38291fi
38292echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38293echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
38294
38295 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38296 IF_GNU_MAKE=""
38297 else
38298 IF_GNU_MAKE="#"
38299 fi
38300
38301
38302
38303 PLATFORM_UNIX=0
38304 PLATFORM_WIN32=0
38305 PLATFORM_MSDOS=0
38306 PLATFORM_MAC=0
38307 PLATFORM_MACOSX=0
38308 PLATFORM_OS2=0
38309
38310 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38311 case "${BAKEFILE_HOST}" in
38312 *-*-cygwin* | *-*-mingw32* )
38313 PLATFORM_WIN32=1
38314 ;;
38315 *-pc-msdosdjgpp )
38316 PLATFORM_MSDOS=1
38317 ;;
38318 *-pc-os2_emx | *-pc-os2-emx )
38319 PLATFORM_OS2=1
38320 ;;
38321 powerpc-*-darwin* )
38322 PLATFORM_MAC=1
38323 PLATFORM_MACOSX=1
38324 ;;
38325 * )
38326 PLATFORM_UNIX=1
38327 ;;
38328 esac
38329 else
38330 case "$BAKEFILE_FORCE_PLATFORM" in
38331 win32 )
38332 PLATFORM_WIN32=1
38333 ;;
38334 msdos )
38335 PLATFORM_MSDOS=1
38336 ;;
38337 os2 )
38338 PLATFORM_OS2=1
38339 ;;
38340 darwin )
38341 PLATFORM_MAC=1
38342 PLATFORM_MACOSX=1
38343 ;;
38344 unix )
38345 PLATFORM_UNIX=1
38346 ;;
38347 * )
38348 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38349echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38350 { (exit 1); exit 1; }; }
38351 ;;
38352 esac
38353 fi
38354
38355
38356
38357
38358
38359
38360
38361
38362
38363 # Check whether --enable-omf or --disable-omf was given.
38364if test "${enable_omf+set}" = set; then
38365 enableval="$enable_omf"
38366 bk_os2_use_omf="$enableval"
38367fi;
38368
38369 case "${BAKEFILE_HOST}" in
38370 *-*-darwin* )
38371 CFLAGS="$CFLAGS -fno-common"
38372 CXXFLAGS="$CXXFLAGS -fno-common"
38373 ;;
38374
38375 *-pc-os2_emx | *-pc-os2-emx )
38376 if test "x$bk_os2_use_omf" = "xyes" ; then
38377 AR=emxomfar
38378 RANLIB=:
38379 LDFLAGS="-Zomf $LDFLAGS"
38380 CFLAGS="-Zomf $CFLAGS"
38381 CXXFLAGS="-Zomf $CXXFLAGS"
38382 OS2_LIBEXT="lib"
38383 else
38384 OS2_LIBEXT="a"
38385 fi
38386 ;;
38387 esac
38388
38389
38390 SO_SUFFIX="so"
38391 SO_SUFFIX_MODULE="so"
38392 EXEEXT=""
38393 LIBPREFIX="lib"
38394 LIBEXT=".a"
38395 DLLPREFIX="lib"
38396 DLLPREFIX_MODULE=""
38397 DLLIMP_SUFFIX=""
38398
38399 case "${BAKEFILE_HOST}" in
38400 *-hp-hpux* )
38401 SO_SUFFIX="sl"
38402 SO_SUFFIX_MODULE="sl"
38403 ;;
38404 *-*-aix* )
38405 SO_SUFFIX="a"
38406 SO_SUFFIX_MODULE="a"
38407 ;;
38408 *-*-cygwin* | *-*-mingw32* )
38409 SO_SUFFIX="dll"
38410 SO_SUFFIX_MODULE="dll"
38411 DLLIMP_SUFFIX="dll.a"
38412 EXEEXT=".exe"
38413 DLLPREFIX=""
38414 ;;
38415 *-pc-msdosdjgpp )
38416 EXEEXT=".exe"
38417 DLLPREFIX=""
38418 ;;
38419 *-pc-os2_emx | *-pc-os2-emx )
38420 SO_SUFFIX="dll"
38421 SO_SUFFIX_MODULE="dll"
38422 DLLIMP_SUFFIX=$OS2_LIBEXT
38423 EXEEXT=".exe"
38424 DLLPREFIX=""
38425 LIBPREFIX=""
38426 LIBEXT=".$OS2_LIBEXT"
38427 ;;
38428 powerpc-*-darwin* )
38429 SO_SUFFIX="dylib"
38430 SO_SUFFIX_MODULE="bundle"
38431 ;;
38432 esac
38433
38434 if test "x$DLLIMP_SUFFIX" = "x" ; then
38435 DLLIMP_SUFFIX="$SO_SUFFIX"
38436 fi
38437
38438
38439
38440
38441
38442
38443
38444
38445
38446
38447
38448 SHARED_LD_CC="\$(CC) -shared -o"
38449 SHARED_LD_CXX="\$(CXX) -shared -o"
38450
38451 if test "x$GCC" = "xyes"; then
38452 PIC_FLAG="-fPIC"
38453 fi
38454
38455 case "${BAKEFILE_HOST}" in
38456 *-hp-hpux* )
38457 if test "x$GCC" = "xyes"; then
38458 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38459 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38460 else
38461 LDFLAGS="$LDFLAGS -L/usr/lib"
38462
38463 SHARED_LD_CC="${CC} -b -o"
38464 SHARED_LD_CXX="${CXX} -b -o"
38465 PIC_FLAG="+Z"
38466 fi
38467 ;;
38468
38469 *-*-linux* )
38470 if test "x$GCC" != "xyes"; then
38471 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38472echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38473if test "${bakefile_cv_prog_icc+set}" = set; then
38474 echo $ECHO_N "(cached) $ECHO_C" >&6
38475else
38476
38477 cat >conftest.$ac_ext <<_ACEOF
38478/* confdefs.h. */
38479_ACEOF
38480cat confdefs.h >>conftest.$ac_ext
38481cat >>conftest.$ac_ext <<_ACEOF
38482/* end confdefs.h. */
38483
38484int
38485main ()
38486{
38487
38488 #ifndef __INTEL_COMPILER
38489 #error Not icc
38490 #endif
38491
38492 ;
38493 return 0;
38494}
38495_ACEOF
38496rm -f conftest.$ac_objext
38497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38498 (eval $ac_compile) 2>conftest.er1
a848cd7e 38499 ac_status=$?
ac1cb8d3
VS
38500 grep -v '^ *+' conftest.er1 >conftest.err
38501 rm -f conftest.er1
38502 cat conftest.err >&5
a848cd7e
SC
38503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38504 (exit $ac_status); } &&
7714864e 38505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38507 (eval $ac_try) 2>&5
38508 ac_status=$?
38509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38510 (exit $ac_status); }; } &&
38511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38513 (eval $ac_try) 2>&5
38514 ac_status=$?
38515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38516 (exit $ac_status); }; }; then
38517 bakefile_cv_prog_icc=yes
38518else
38519 echo "$as_me: failed program was:" >&5
38520sed 's/^/| /' conftest.$ac_ext >&5
38521
38522bakefile_cv_prog_icc=no
38523
38524fi
ac1cb8d3 38525rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38526
38527fi
38528echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38529echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
38530 if test "$bakefile_cv_prog_icc" = "yes"; then
38531 PIC_FLAG="-KPIC"
38532 fi
38533 fi
38534 ;;
38535
38536 *-*-solaris2* )
38537 if test "x$GCC" != xyes ; then
38538 SHARED_LD_CC="${CC} -G -o"
38539 SHARED_LD_CXX="${CXX} -G -o"
38540 PIC_FLAG="-KPIC"
38541 fi
38542 ;;
38543
38544 *-*-darwin* )
38545
38546 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
38547echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38548if test "${wx_cv_gcc31+set}" = set; then
38549 echo $ECHO_N "(cached) $ECHO_C" >&6
38550else
38551
38552 cat >conftest.$ac_ext <<_ACEOF
38553/* confdefs.h. */
38554_ACEOF
38555cat confdefs.h >>conftest.$ac_ext
38556cat >>conftest.$ac_ext <<_ACEOF
38557/* end confdefs.h. */
38558
38559int
38560main ()
38561{
38562
38563 #if (__GNUC__ < 3) || \
38564 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38565 #error old gcc
38566 #endif
38567
38568 ;
38569 return 0;
38570}
38571_ACEOF
38572rm -f conftest.$ac_objext
38573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 38574 (eval $ac_compile) 2>conftest.er1
a848cd7e 38575 ac_status=$?
ac1cb8d3
VS
38576 grep -v '^ *+' conftest.er1 >conftest.err
38577 rm -f conftest.er1
38578 cat conftest.err >&5
a848cd7e
SC
38579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38580 (exit $ac_status); } &&
7714864e 38581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38583 (eval $ac_try) 2>&5
38584 ac_status=$?
38585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38586 (exit $ac_status); }; } &&
38587 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
38588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38589 (eval $ac_try) 2>&5
38590 ac_status=$?
38591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38592 (exit $ac_status); }; }; then
38593
38594 wx_cv_gcc31=yes
38595
38596else
38597 echo "$as_me: failed program was:" >&5
38598sed 's/^/| /' conftest.$ac_ext >&5
38599
38600
38601 wx_cv_gcc31=no
38602
38603
38604fi
ac1cb8d3 38605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
38606
38607fi
38608echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38609echo "${ECHO_T}$wx_cv_gcc31" >&6
38610 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
38611
38612D='$'
38613cat <<EOF >shared-ld-sh
a848cd7e
SC
38614#!/bin/sh
38615#-----------------------------------------------------------------------------
38616#-- Name: distrib/mac/shared-ld-sh
38617#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38618#-- Author: Gilles Depeyrot
38619#-- Copyright: (c) 2002 Gilles Depeyrot
38620#-- Licence: any use permitted
38621#-----------------------------------------------------------------------------
38622
38623verbose=0
38624args=""
38625objects=""
38626linking_flag="-dynamiclib"
38627
473276a9
VS
38628while test ${D}# -gt 0; do
38629 case ${D}1 in
a848cd7e
SC
38630
38631 -v)
38632 verbose=1
38633 ;;
38634
38635 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38636 # collect these options and values
473276a9 38637 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
38638 shift
38639 ;;
38640
38641 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
38642 # collect these options
473276a9 38643 args="${D}{args} ${D}1"
a848cd7e
SC
38644 ;;
38645
38646 -dynamiclib|-bundle)
473276a9 38647 linking_flag="${D}1"
a848cd7e
SC
38648 ;;
38649
38650 -*)
473276a9 38651 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
38652 exit 1
38653 ;;
38654
38655 *.o | *.a | *.dylib)
38656 # collect object files
473276a9 38657 objects="${D}{objects} ${D}1"
a848cd7e
SC
38658 ;;
38659
38660 *)
473276a9 38661 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
38662 exit 1
38663 ;;
38664
38665 esac
38666 shift
38667done
38668
38669#
38670# Link one module containing all the others
38671#
473276a9
VS
38672if test ${D}{verbose} = 1; then
38673 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 38674fi
473276a9
VS
38675c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
38676status=${D}?
38677if test ${D}{status} != 0; then
38678 exit ${D}{status}
a848cd7e
SC
38679fi
38680
38681#
38682# Link the shared library from the single module created
38683#
473276a9
VS
38684if test ${D}{verbose} = 1; then
38685 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 38686fi
473276a9
VS
38687c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
38688status=${D}?
38689if test ${D}{status} != 0; then
38690 exit ${D}{status}
a848cd7e
SC
38691fi
38692
38693#
38694# Remove intermediate module
38695#
473276a9 38696rm -f master.${D}${D}.o
a848cd7e
SC
38697
38698exit 0
38699EOF
473276a9 38700
a848cd7e
SC
38701 chmod +x shared-ld-sh
38702
38703 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38704 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
38705 SHARED_LD_CXX="$SHARED_LD_CC"
38706 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38707 else
38708 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38709 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38710 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38711 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
38712 fi
38713
38714 PIC_FLAG="-dynamic -fPIC"
38715 ;;
38716
38717 *-*-aix* )
38718 if test "x$GCC" != "xyes"; then
38719 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38720set dummy makeC++SharedLib; ac_word=$2
38721echo "$as_me:$LINENO: checking for $ac_word" >&5
38722echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38723if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38724 echo $ECHO_N "(cached) $ECHO_C" >&6
38725else
38726 if test -n "$AIX_CXX_LD"; then
38727 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38728else
38729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38730for as_dir in $PATH
38731do
38732 IFS=$as_save_IFS
38733 test -z "$as_dir" && as_dir=.
38734 for ac_exec_ext in '' $ac_executable_extensions; do
38735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38736 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38738 break 2
38739 fi
38740done
38741done
38742
38743 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38744fi
38745fi
38746AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
38747if test -n "$AIX_CXX_LD"; then
38748 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38749echo "${ECHO_T}$AIX_CXX_LD" >&6
38750else
38751 echo "$as_me:$LINENO: result: no" >&5
38752echo "${ECHO_T}no" >&6
38753fi
38754
38755 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38756 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38757 fi
38758 ;;
38759
38760 *-*-beos* )
38761 SHARED_LD_CC="${LD} -shared -o"
38762 SHARED_LD_CXX="${LD} -shared -o"
38763 ;;
38764
38765 *-*-irix* )
38766 if test "x$GCC" != "xyes"; then
38767 PIC_FLAG="-KPIC"
38768 fi
38769 ;;
38770
38771 *-*-cygwin* | *-*-mingw32* )
38772 PIC_FLAG=""
38773 ;;
38774
38775 *-pc-os2_emx | *-pc-os2-emx )
473276a9
VS
38776 SHARED_LD_CC="`pwd`/dllar.sh -o"
38777 SHARED_LD_CXX="`pwd`/dllar.sh -o"
a848cd7e 38778 PIC_FLAG=""
473276a9
VS
38779
38780D='$'
38781cat <<EOF >dllar.sh
38782#!/bin/sh
38783#
38784# dllar - a tool to build both a .dll and an .a file
38785# from a set of object (.o) files for EMX/OS2.
38786#
38787# Written by Andrew Zabolotny, bit@freya.etu.ru
38788# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
38789#
38790# This script will accept a set of files on the command line.
38791# All the public symbols from the .o files will be exported into
38792# a .DEF file, then linker will be run (through gcc) against them to
38793# build a shared library consisting of all given .o files. All libraries
38794# (.a) will be first decompressed into component .o files then act as
38795# described above. You can optionally give a description (-d "description")
38796# which will be put into .DLL. To see the list of accepted options (as well
38797# as command-line format) simply run this program without options. The .DLL
38798# is built to be imported by name (there is no guarantee that new versions
38799# of the library you build will have same ordinals for same symbols).
38800#
38801# dllar is free software; you can redistribute it and/or modify
38802# it under the terms of the GNU General Public License as published by
38803# the Free Software Foundation; either version 2, or (at your option)
38804# any later version.
38805#
38806# dllar is distributed in the hope that it will be useful,
38807# but WITHOUT ANY WARRANTY; without even the implied warranty of
38808# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38809# GNU General Public License for more details.
38810#
38811# You should have received a copy of the GNU General Public License
38812# along with dllar; see the file COPYING. If not, write to the Free
38813# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
38814# 02111-1307, USA.
38815
38816# To successfuly run this program you will need:
38817# - Current drive should have LFN support (HPFS, ext2, network, etc)
38818# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
38819# - gcc
38820# (used to build the .dll)
38821# - emxexp
38822# (used to create .def file from .o files)
38823# - emximp
38824# (used to create .a file from .def file)
38825# - GNU text utilites (cat, sort, uniq)
38826# used to process emxexp output
38827# - GNU file utilities (mv, rm)
38828# - GNU sed
38829# - lxlite (optional, see flag below)
38830# (used for general .dll cleanup)
38831#
38832
38833flag_USE_LXLITE=1;
38834
38835#
38836# helper functions
38837# basnam, variant of basename, which does _not_ remove the path, _iff_
38838# second argument (suffix to remove) is given
38839basnam(){
38840 case ${D}# in
38841 1)
38842 echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//'
38843 ;;
38844 2)
38845 echo ${D}1 | sed 's/'${D}2'${D}//'
38846 ;;
38847 *)
38848 echo "error in basnam ${D}*"
38849 exit 8
38850 ;;
38851 esac
38852}
38853
38854# Cleanup temporary files and output
38855CleanUp() {
38856 cd ${D}curDir
38857 for i in ${D}inputFiles ; do
38858 case ${D}i in
38859 *!)
38860 rm -rf \`basnam ${D}i !\`
38861 ;;
38862 *)
38863 ;;
38864 esac
38865 done
38866
38867 # Kill result in case of failure as there is just to many stupid make/nmake
38868 # things out there which doesn't do this.
2057db16 38869 if [] ${D}# -eq 0 []; then
473276a9
VS
38870 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
38871 fi
38872}
38873
38874# Print usage and exit script with rc=1.
38875PrintHelp() {
2057db16
VS
38876 echo 'Usage: dllar []-o[[]utput[]] output_file[] []-i[[]mport[]] importlib_name[]'
38877 echo ' []-d[[]escription[]] "dll descrption"[] []-cc "CC"[] []-f[[]lags[]] "CFLAGS"[]'
38878 echo ' []-ord[[]inals[]][] -ex[]clude[] "symbol(s)"'
38879 echo ' []-libf[[]lags[]] "{INIT|TERM}{GLOBAL|INSTANCE}"[] []-nocrt[[]dll[]][] []-nolxl[[]ite[]][]'
38880 echo ' []*.o[] []*.a[]'
473276a9
VS
38881 echo '*> "output_file" should have no extension.'
38882 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
38883 echo ' The import library name is derived from this and is set to "name".a,'
38884 echo ' unless overridden by -import'
38885 echo '*> "importlib_name" should have no extension.'
38886 echo ' If it has the .o, or .a extension, it is automatically removed.'
38887 echo ' This name is used as the import library name and may be longer and'
38888 echo ' more descriptive than the DLL name which has to follow the old '
38889 echo ' 8.3 convention of FAT.'
38890 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
38891 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
38892 echo ' These flags will be put at the start of GCC command line.'
2057db16
VS
38893 echo '*> -ord[]inals[] tells dllar to export entries by ordinals. Be careful.'
38894 echo '*> -ex[]clude[] defines symbols which will not be exported. You can define'
473276a9
VS
38895 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
38896 echo ' If the last character of a symbol is "*", all symbols beginning'
38897 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
2057db16 38898 echo '*> -libf[]lags[] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 38899 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
2057db16 38900 echo '*> -nocrt[]dll[] switch will disable linking the library against emx''s'
473276a9 38901 echo ' C runtime DLLs.'
2057db16 38902 echo '*> -nolxl[]ite[] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
38903 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
38904 echo ' unchanged to GCC at the end of command line.'
38905 echo '*> If you create a DLL from a library and you do not specify -o,'
38906 echo ' the basename for DLL and import library will be set to library name,'
38907 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
38908 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
38909 echo ' library will be renamed into gcc_s.a.'
38910 echo '--------'
38911 echo 'Example:'
38912 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
38913 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
38914 CleanUp
38915 exit 1
38916}
38917
38918# Execute a command.
38919# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
38920# @Uses Whatever CleanUp() uses.
38921doCommand() {
38922 echo "${D}*"
38923 eval ${D}*
38924 rcCmd=${D}?
38925
2057db16 38926 if [] ${D}rcCmd -ne 0 []; then
473276a9
VS
38927 echo "command failed, exit code="${D}rcCmd
38928 CleanUp
38929 exit ${D}rcCmd
38930 fi
38931}
38932
38933# main routine
38934# setup globals
38935cmdLine=${D}*
38936outFile=""
38937outimpFile=""
38938inputFiles=""
38939description=""
38940CC=gcc.exe
38941CFLAGS="-s -Zcrtdll"
38942EXTRA_CFLAGS=""
38943EXPORT_BY_ORDINALS=0
38944exclude_symbols=""
38945library_flags=""
38946curDir=\`pwd\`
38947curDirS=curDir
38948case ${D}curDirS in
38949*/)
38950 ;;
38951*)
38952 curDirS=${D}{curDirS}"/"
38953 ;;
38954esac
38955# Parse commandline
38956libsToLink=0
2057db16 38957while [] ${D}1 []; do
473276a9
VS
38958 case ${D}1 in
38959 -ord*)
38960 EXPORT_BY_ORDINALS=1;
38961 ;;
38962 -o*)
38963 shift
38964 outFile=${D}1
38965 ;;
38966 -i*)
38967 shift
38968 outimpFile=${D}1
38969 ;;
38970 -d*)
38971 shift
38972 description=${D}1
38973 ;;
38974 -f*)
38975 shift
38976 CFLAGS=${D}1
38977 ;;
38978 -c*)
38979 shift
38980 CC=${D}1
38981 ;;
38982 -h*)
38983 PrintHelp
38984 ;;
38985 -ex*)
38986 shift
38987 exclude_symbols=${D}{exclude_symbols}${D}1" "
38988 ;;
38989 -libf*)
38990 shift
38991 library_flags=${D}{library_flags}${D}1" "
38992 ;;
38993 -nocrt*)
38994 CFLAGS="-s"
38995 ;;
38996 -nolxl*)
38997 flag_USE_LXLITE=0
38998 ;;
38999 -* | /*)
39000 case ${D}1 in
39001 -L* | -l*)
39002 libsToLink=1
39003 ;;
39004 *)
39005 ;;
39006 esac
39007 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39008 ;;
39009 *)
39010 found=0;
2057db16 39011 if [] ${D}libsToLink -ne 0 []; then
473276a9
VS
39012 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
39013 else
39014 for file in ${D}1 ; do
2057db16 39015 if [] -f ${D}file []; then
473276a9
VS
39016 inputFiles="${D}{inputFiles} ${D}file"
39017 found=1
39018 fi
39019 done
2057db16 39020 if [] ${D}found -eq 0 []; then
473276a9
VS
39021 echo "ERROR: No file(s) found: "${D}1
39022 exit 8
39023 fi
39024 fi
39025 ;;
39026 esac
39027 shift
39028done # iterate cmdline words
39029
39030#
2057db16 39031if [] -z "${D}inputFiles" []; then
473276a9
VS
39032 echo "dllar: no input files"
39033 PrintHelp
39034fi
39035
39036# Now extract all .o files from .a files
39037newInputFiles=""
39038for file in ${D}inputFiles ; do
39039 case ${D}file in
39040 *.a | *.lib)
39041 case ${D}file in
39042 *.a)
39043 suffix=".a"
39044 AR="ar"
39045 ;;
39046 *.lib)
39047 suffix=".lib"
39048 AR="emxomfar"
39049 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
39050 ;;
39051 *)
39052 ;;
39053 esac
39054 dirname=\`basnam ${D}file ${D}suffix\`"_%"
39055 mkdir ${D}dirname
2057db16 39056 if [] ${D}? -ne 0 []; then
473276a9
VS
39057 echo "Failed to create subdirectory ./${D}dirname"
39058 CleanUp
39059 exit 8;
39060 fi
39061 # Append '!' to indicate archive
39062 newInputFiles="${D}newInputFiles ${D}{dirname}!"
39063 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
39064 cd ${D}curDir
39065 found=0;
39066 for subfile in ${D}dirname/*.o* ; do
2057db16 39067 if [] -f ${D}subfile []; then
473276a9 39068 found=1
2057db16 39069 if [] -s ${D}subfile []; then
473276a9
VS
39070 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
39071 newInputFiles="${D}newInputFiles ${D}subfile"
39072 fi
39073 fi
39074 done
2057db16 39075 if [] ${D}found -eq 0 []; then
473276a9
VS
39076 echo "WARNING: there are no files in archive \'${D}file\'"
39077 fi
39078 ;;
39079 *)
39080 newInputFiles="${D}{newInputFiles} ${D}file"
39081 ;;
39082 esac
39083done
39084inputFiles="${D}newInputFiles"
39085
39086# Output filename(s).
39087do_backup=0;
2057db16 39088if [] -z ${D}outFile []; then
473276a9
VS
39089 do_backup=1;
39090 set outFile ${D}inputFiles; outFile=${D}2
39091fi
39092
39093# If it is an archive, remove the '!' and the '_%' suffixes
39094case ${D}outFile in
39095*_%!)
39096 outFile=\`basnam ${D}outFile _%!\`
39097 ;;
39098*)
39099 ;;
39100esac
39101case ${D}outFile in
39102*.dll)
39103 outFile=\`basnam ${D}outFile .dll\`
39104 ;;
39105*.DLL)
39106 outFile=\`basnam ${D}outFile .DLL\`
39107 ;;
39108*.o)
39109 outFile=\`basnam ${D}outFile .o\`
39110 ;;
39111*.obj)
39112 outFile=\`basnam ${D}outFile .obj\`
39113 ;;
39114*.a)
39115 outFile=\`basnam ${D}outFile .a\`
39116 ;;
39117*.lib)
39118 outFile=\`basnam ${D}outFile .lib\`
39119 ;;
39120*)
39121 ;;
39122esac
39123case ${D}outimpFile in
39124*.a)
39125 outimpFile=\`basnam ${D}outimpFile .a\`
39126 ;;
39127*.lib)
39128 outimpFile=\`basnam ${D}outimpFile .lib\`
39129 ;;
39130*)
39131 ;;
39132esac
2057db16 39133if [] -z ${D}outimpFile []; then
473276a9
VS
39134 outimpFile=${D}outFile
39135fi
39136defFile="${D}{outFile}.def"
39137arcFile="${D}{outimpFile}.a"
39138arcFile2="${D}{outimpFile}.lib"
39139dllFile="${D}outFile"
39140# Add suffix to dllFile later, first we need a version to use as
39141# name in .def file.
39142
2057db16
VS
39143if [] ${D}do_backup -ne 0 [] ; then
39144 if [] -f ${D}arcFile [] ; then
473276a9
VS
39145 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
39146 fi
2057db16 39147 if [] -f ${D}arcFile2 [] ; then
473276a9
VS
39148 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
39149 fi
39150fi
39151
39152# Extract public symbols from all the object files.
39153tmpdefFile=${D}{defFile}_%
39154rm -f ${D}tmpdefFile
39155for file in ${D}inputFiles ; do
39156 case ${D}file in
39157 *!)
39158 ;;
39159 *)
39160 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
39161 ;;
39162 esac
39163done
39164
39165# Create the def file.
39166rm -f ${D}defFile
39167echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
39168dllFile="${D}dllFile.dll"
2057db16 39169if [] -n ${D}description []; then
473276a9
VS
39170 echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile
39171fi
39172echo "EXPORTS" >> ${D}defFile
39173
39174doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
39175grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
39176
39177# Checks if the export is ok or not.
39178for word in ${D}exclude_symbols; do
39179 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
39180 mv ${D}{tmpdefFile}% ${D}tmpdefFile
39181done
39182
39183
2057db16 39184if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39185 sed "=" < ${D}tmpdefFile | \
39186 sed '
39187 N
39188 : loop
2057db16 39189 s/^\([]0-9[]\+\)\([]^;[]*\)\(;.*\)\?/\2 @\1 NONAME/
473276a9
VS
39190 t loop
39191 ' > ${D}{tmpdefFile}%
39192 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
39193else
39194 rm -f ${D}{tmpdefFile}%
39195fi
39196cat ${D}tmpdefFile >> ${D}defFile
39197rm -f ${D}tmpdefFile
39198
39199# Do linking, create implib, and apply lxlite.
39200gccCmdl="";
39201for file in ${D}inputFiles ; do
39202 case ${D}file in
39203 *!)
39204 ;;
39205 *)
39206 gccCmdl="${D}gccCmdl ${D}file"
39207 ;;
39208 esac
39209done
39210doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
39211touch "${D}{outFile}.dll"
39212
39213doCommand "emximp -o ${D}arcFile ${D}defFile"
2057db16 39214if [] ${D}flag_USE_LXLITE -ne 0 []; then
473276a9 39215 add_flags="";
2057db16 39216 if [] ${D}EXPORT_BY_ORDINALS -ne 0 []; then
473276a9
VS
39217 add_flags="-ynd"
39218 fi
39219 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
39220fi
39221doCommand "emxomf -s -l ${D}arcFile"
39222
39223# Successful exit.
39224CleanUp 1
39225exit 0
39226EOF
39227
39228 chmod +x dllar.sh
a848cd7e
SC
39229 ;;
39230
39231 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
39232 *-*-sunos4* | \
39233 *-*-osf* | \
39234 *-*-dgux5* | \
39235 *-*-sysv5* )
39236 ;;
39237
39238 *)
39239 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
39240echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
39241 { (exit 1); exit 1; }; }
39242 esac
39243
2057db16
VS
39244 if test "x$PIC_FLAG" != "x" ; then
39245 PIC_FLAG="$PIC_FLAG -DPIC"
39246 fi
39247
a848cd7e
SC
39248 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
39249 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
39250 fi
39251 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
39252 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
39253 fi
39254
39255
39256
39257
39258
39259
39260
39261
39262 USE_SOVERSION=0
39263 USE_SOVERLINUX=0
39264 USE_SOVERSOLARIS=0
39265 USE_SOSYMLINKS=0
39266 USE_MACVERSION=0
39267 SONAME_FLAG=
39268
39269 case "${BAKEFILE_HOST}" in
39270 *-*-linux* )
39271 SONAME_FLAG="-Wl,-soname,"
39272 USE_SOVERSION=1
39273 USE_SOVERLINUX=1
39274 USE_SOSYMLINKS=1
39275 ;;
39276
39277 *-*-solaris2* )
39278 SONAME_FLAG="-h "
39279 USE_SOVERSION=1
39280 USE_SOVERSOLARIS=1
39281 USE_SOSYMLINKS=1
39282 ;;
39283
39284 *-*-darwin* )
39285 USE_MACVERSION=1
39286 USE_SOVERSION=1
39287 USE_SOSYMLINKS=1
39288 ;;
39289 esac
39290
39291
39292
39293
39294
39295
39296
39297
39298
39299 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
39300echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
39301 DEPS_TRACKING=0
39302
39303 if test "x$GCC" = "xyes"; then
39304 DEPSMODE=gcc
39305 DEPS_TRACKING=1
39306 case "${BAKEFILE_HOST}" in
39307 powerpc-*-darwin* )
39308 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
39309 ;;
39310 * )
39311 DEPSFLAG_GCC="-MMD"
39312 ;;
39313 esac
39314 echo "$as_me:$LINENO: result: gcc" >&5
39315echo "${ECHO_T}gcc" >&6
39316 else
39317 echo "$as_me:$LINENO: result: none" >&5
39318echo "${ECHO_T}none" >&6
39319 fi
39320
39321 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
39322
39323D='$'
39324cat <<EOF >bk-deps
a848cd7e
SC
39325#!/bin/sh
39326
39327# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39328# script. It is used to track C/C++ files dependencies in portable way.
39329#
39330# Permission is given to use this file in any way.
39331
473276a9 39332DEPSMODE=${DEPSMODE}
a848cd7e 39333DEPSDIR=.deps
473276a9 39334DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 39335
473276a9 39336mkdir -p ${D}DEPSDIR
a848cd7e 39337
473276a9
VS
39338if test ${D}DEPSMODE = gcc ; then
39339 ${D}* ${D}{DEPSFLAG_GCC}
39340 status=${D}?
39341 if test ${D}{status} != 0 ; then
39342 exit ${D}{status}
a848cd7e
SC
39343 fi
39344 # move created file to the location we want it in:
473276a9
VS
39345 while test ${D}# -gt 0; do
39346 case "${D}1" in
a848cd7e
SC
39347 -o )
39348 shift
473276a9 39349 objfile=${D}1
a848cd7e
SC
39350 ;;
39351 -* )
39352 ;;
39353 * )
473276a9 39354 srcfile=${D}1
a848cd7e
SC
39355 ;;
39356 esac
39357 shift
39358 done
473276a9
VS
39359 depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\`
39360 depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\`
39361 if test -f ${D}depfile ; then
39362 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39363 rm -f ${D}depfile
a848cd7e 39364 else
473276a9
VS
39365 depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\`
39366 if test -f ${D}depfile ; then
39367 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
39368 rm -f ${D}depfile
a848cd7e
SC
39369 fi
39370 fi
39371 exit 0
39372else
473276a9
VS
39373 ${D}*
39374 exit ${D}?
a848cd7e
SC
39375fi
39376EOF
473276a9 39377
a848cd7e
SC
39378 chmod +x bk-deps
39379 fi
39380
39381
39382
39383
39384 RESCOMP=
39385 SETFILE=
39386
39387 case ${BAKEFILE_HOST} in
39388 *-*-cygwin* | *-*-mingw32* )
39389 if test "$build" != "$host" ; then
39390 RESCOMP=$host_alias-windres
39391 else
39392 # Extract the first word of "windres", so it can be a program name with args.
39393set dummy windres; ac_word=$2
39394echo "$as_me:$LINENO: checking for $ac_word" >&5
39395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39396if test "${ac_cv_prog_RESCOMP+set}" = set; then
39397 echo $ECHO_N "(cached) $ECHO_C" >&6
39398else
39399 if test -n "$RESCOMP"; then
39400 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39401else
39402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39403for as_dir in $PATH
39404do
39405 IFS=$as_save_IFS
39406 test -z "$as_dir" && as_dir=.
39407 for ac_exec_ext in '' $ac_executable_extensions; do
39408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39409 ac_cv_prog_RESCOMP="windres"
39410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39411 break 2
39412 fi
39413done
39414done
39415
39416 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39417fi
39418fi
39419RESCOMP=$ac_cv_prog_RESCOMP
39420if test -n "$RESCOMP"; then
39421 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39422echo "${ECHO_T}$RESCOMP" >&6
39423else
39424 echo "$as_me:$LINENO: result: no" >&5
39425echo "${ECHO_T}no" >&6
39426fi
39427
39428 fi
39429 ;;
39430
39431 *-*-darwin* )
39432 # Extract the first word of "Rez", so it can be a program name with args.
39433set dummy Rez; ac_word=$2
39434echo "$as_me:$LINENO: checking for $ac_word" >&5
39435echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39436if test "${ac_cv_prog_RESCOMP+set}" = set; then
39437 echo $ECHO_N "(cached) $ECHO_C" >&6
39438else
39439 if test -n "$RESCOMP"; then
39440 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39441else
39442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39443for as_dir in $PATH
39444do
39445 IFS=$as_save_IFS
39446 test -z "$as_dir" && as_dir=.
39447 for ac_exec_ext in '' $ac_executable_extensions; do
39448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39449 ac_cv_prog_RESCOMP="Rez"
39450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39451 break 2
39452 fi
39453done
39454done
39455
39456 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39457fi
39458fi
39459RESCOMP=$ac_cv_prog_RESCOMP
39460if test -n "$RESCOMP"; then
39461 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39462echo "${ECHO_T}$RESCOMP" >&6
39463else
39464 echo "$as_me:$LINENO: result: no" >&5
39465echo "${ECHO_T}no" >&6
39466fi
39467
39468 # Extract the first word of "SetFile", so it can be a program name with args.
39469set dummy SetFile; ac_word=$2
39470echo "$as_me:$LINENO: checking for $ac_word" >&5
39471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39472if test "${ac_cv_prog_SETFILE+set}" = set; then
39473 echo $ECHO_N "(cached) $ECHO_C" >&6
39474else
39475 if test -n "$SETFILE"; then
39476 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39477else
39478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39479for as_dir in $PATH
39480do
39481 IFS=$as_save_IFS
39482 test -z "$as_dir" && as_dir=.
39483 for ac_exec_ext in '' $ac_executable_extensions; do
39484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39485 ac_cv_prog_SETFILE="SetFile"
39486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39487 break 2
39488 fi
39489done
39490done
39491
39492 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39493fi
39494fi
39495SETFILE=$ac_cv_prog_SETFILE
39496if test -n "$SETFILE"; then
39497 echo "$as_me:$LINENO: result: $SETFILE" >&5
39498echo "${ECHO_T}$SETFILE" >&6
39499else
39500 echo "$as_me:$LINENO: result: no" >&5
39501echo "${ECHO_T}no" >&6
39502fi
39503
39504 ;;
39505 esac
39506
39507
39508
39509
39510
2057db16 39511 BAKEFILE_BAKEFILE_M4_VERSION="0.1.4"
a848cd7e 39512
dcc1b6ad 39513
ceec2216 39514
9f45f08e 39515BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
a848cd7e 39516
646b6ec1 39517
74b84332 39518
a848cd7e
SC
39519 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39520if test "${enable_precomp_headers+set}" = set; then
39521 enableval="$enable_precomp_headers"
39522 bk_use_pch="$enableval"
39523fi;
39524
39525 GCC_PCH=0
39526
39527 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39528 if test "x$GCC" = "xyes"; then
39529 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39530echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39531 cat >conftest.$ac_ext <<_ACEOF
39532/* confdefs.h. */
39533_ACEOF
39534cat confdefs.h >>conftest.$ac_ext
39535cat >>conftest.$ac_ext <<_ACEOF
39536/* end confdefs.h. */
39537
39538int
39539main ()
39540{
39541
39542 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39543 #error "no pch support"
39544 #endif
39545 #if (__GNUC__ < 3)
39546 #error "no pch support"
39547 #endif
39548 #if (__GNUC__ == 3) && \
39549 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39550 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39551 #error "no pch support"
39552 #endif
39553
39554 ;
39555 return 0;
39556}
39557_ACEOF
39558rm -f conftest.$ac_objext
39559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39560 (eval $ac_compile) 2>conftest.er1
a848cd7e 39561 ac_status=$?
ac1cb8d3
VS
39562 grep -v '^ *+' conftest.er1 >conftest.err
39563 rm -f conftest.er1
39564 cat conftest.err >&5
a848cd7e
SC
39565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39566 (exit $ac_status); } &&
7714864e 39567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39569 (eval $ac_try) 2>&5
39570 ac_status=$?
39571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39572 (exit $ac_status); }; } &&
39573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39575 (eval $ac_try) 2>&5
39576 ac_status=$?
39577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39578 (exit $ac_status); }; }; then
39579
39580 echo "$as_me:$LINENO: result: yes" >&5
39581echo "${ECHO_T}yes" >&6
a848cd7e
SC
39582 GCC_PCH=1
39583
39584else
39585 echo "$as_me: failed program was:" >&5
39586sed 's/^/| /' conftest.$ac_ext >&5
39587
39588
39589 echo "$as_me:$LINENO: result: no" >&5
39590echo "${ECHO_T}no" >&6
39591
39592fi
ac1cb8d3 39593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39594 if test $GCC_PCH = 1 ; then
39595 cat <<EOF >bk-make-pch
39596#!/bin/sh
39597
39598# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39599# script. It is used to generated precompiled headers.
39600#
39601# Permission is given to use this file in any way.
39602
39603outfile="\${1}"
39604header="\${2}"
39605shift
39606shift
39607
39608compiler=
39609headerfile=
39610while test \${#} -gt 0; do
39611 case "\${1}" in
39612 -I* )
39613 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39614 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39615 headerfile="\${incdir}/\${header}"
39616 fi
39617 ;;
39618 esac
39619 compiler="\${compiler} \${1}"
39620 shift
39621done
39622
39623if test "x\${headerfile}" = "x" ; then
39624 echo "error: can't find header \${header} in include paths" >2
39625else
39626 if test -f \${outfile} ; then
39627 rm -f \${outfile}
39628 else
39629 mkdir -p \`dirname \${outfile}\`
39630 fi
39631 depsfile=".deps/\`basename \${outfile}\`.d"
39632 mkdir -p .deps
39633 # can do this because gcc is >= 3.4:
39634 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39635 exit \${?}
39636fi
39637EOF
39638 chmod +x bk-make-pch
39639 fi
39640 fi
39641 fi
39642
39643
39644
39645
39646
dcc1b6ad
VS
39647
39648
39649 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39650if test "${enable_precomp_headers+set}" = set; then
39651 enableval="$enable_precomp_headers"
39652 bk_use_pch="$enableval"
39653fi;
39654
39655 GCC_PCH=0
39656
39657 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39658 if test "x$GCC" = "xyes"; then
39659 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39660echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39661 cat >conftest.$ac_ext <<_ACEOF
39662/* confdefs.h. */
39663_ACEOF
39664cat confdefs.h >>conftest.$ac_ext
39665cat >>conftest.$ac_ext <<_ACEOF
39666/* end confdefs.h. */
39667
39668int
39669main ()
39670{
39671
39672 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39673 #error "no pch support"
39674 #endif
39675 #if (__GNUC__ < 3)
39676 #error "no pch support"
39677 #endif
39678 #if (__GNUC__ == 3) && \
39679 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39680 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39681 #error "no pch support"
39682 #endif
39683
39684 ;
39685 return 0;
39686}
39687_ACEOF
39688rm -f conftest.$ac_objext
39689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39690 (eval $ac_compile) 2>conftest.er1
dcc1b6ad 39691 ac_status=$?
ac1cb8d3
VS
39692 grep -v '^ *+' conftest.er1 >conftest.err
39693 rm -f conftest.er1
39694 cat conftest.err >&5
dcc1b6ad
VS
39695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39696 (exit $ac_status); } &&
7714864e 39697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39699 (eval $ac_try) 2>&5
39700 ac_status=$?
39701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39702 (exit $ac_status); }; } &&
39703 { ac_try='test -s conftest.$ac_objext'
dcc1b6ad
VS
39704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39705 (eval $ac_try) 2>&5
39706 ac_status=$?
39707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39708 (exit $ac_status); }; }; then
39709
39710 echo "$as_me:$LINENO: result: yes" >&5
39711echo "${ECHO_T}yes" >&6
dcc1b6ad
VS
39712 GCC_PCH=1
39713
39714else
39715 echo "$as_me: failed program was:" >&5
39716sed 's/^/| /' conftest.$ac_ext >&5
39717
39718
39719 echo "$as_me:$LINENO: result: no" >&5
39720echo "${ECHO_T}no" >&6
39721
39722fi
ac1cb8d3 39723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dcc1b6ad
VS
39724 if test $GCC_PCH = 1 ; then
39725 cat <<EOF >bk-make-pch
39726#!/bin/sh
39727
39728# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39729# script. It is used to generated precompiled headers.
39730#
39731# Permission is given to use this file in any way.
39732
39733outfile="\${1}"
39734header="\${2}"
39735shift
39736shift
39737
39738compiler=
39739headerfile=
39740while test \${#} -gt 0; do
39741 case "\${1}" in
39742 -I* )
39743 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39744 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39745 headerfile="\${incdir}/\${header}"
39746 fi
39747 ;;
39748 esac
39749 compiler="\${compiler} \${1}"
39750 shift
39751done
39752
39753if test "x\${headerfile}" = "x" ; then
39754 echo "error: can't find header \${header} in include paths" >2
39755else
39756 if test -f \${outfile} ; then
39757 rm -f \${outfile}
39758 else
39759 mkdir -p \`dirname \${outfile}\`
39760 fi
39761 depsfile=".deps/\`basename \${outfile}\`.d"
39762 mkdir -p .deps
39763 # can do this because gcc is >= 3.4:
39764 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39765 exit \${?}
39766fi
39767EOF
39768 chmod +x bk-make-pch
39769 fi
39770 fi
39771 fi
39772
39773
39774
a848cd7e
SC
39775 COND_BUILD_DEBUG="#"
39776 if test "x$BUILD" = "xdebug" ; then
39777 COND_BUILD_DEBUG=""
39778 fi
39779
39780 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39781 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39782 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39783 fi
39784
39785 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39786 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39787 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39788 fi
39789
39790 COND_BUILD_DEBUG_UNICODE_0="#"
39791 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39792 COND_BUILD_DEBUG_UNICODE_0=""
39793 fi
39794
39795 COND_BUILD_DEBUG_UNICODE_1="#"
39796 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39797 COND_BUILD_DEBUG_UNICODE_1=""
39798 fi
39799
39800 COND_BUILD_RELEASE="#"
39801 if test "x$BUILD" = "xrelease" ; then
39802 COND_BUILD_RELEASE=""
39803 fi
39804
39805 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39806 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39807 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39808 fi
39809
39810 COND_BUILD_RELEASE_UNICODE_0="#"
39811 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39812 COND_BUILD_RELEASE_UNICODE_0=""
39813 fi
39814
39815 COND_BUILD_RELEASE_UNICODE_1="#"
39816 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39817 COND_BUILD_RELEASE_UNICODE_1=""
39818 fi
39819
39820 COND_DEBUG_FLAG_1="#"
39821 if test "x$DEBUG_FLAG" = "x1" ; then
39822 COND_DEBUG_FLAG_1=""
39823 fi
39824
39825 COND_DEBUG_INFO_0="#"
39826 if test "x$DEBUG_INFO" = "x0" ; then
39827 COND_DEBUG_INFO_0=""
39828 fi
39829
39830 COND_DEBUG_INFO_1="#"
39831 if test "x$DEBUG_INFO" = "x1" ; then
39832 COND_DEBUG_INFO_1=""
39833 fi
39834
39835 COND_DEPS_TRACKING_0="#"
39836 if test "x$DEPS_TRACKING" = "x0" ; then
39837 COND_DEPS_TRACKING_0=""
39838 fi
39839
39840 COND_DEPS_TRACKING_1="#"
39841 if test "x$DEPS_TRACKING" = "x1" ; then
39842 COND_DEPS_TRACKING_1=""
39843 fi
39844
39845 COND_GCC_PCH_1="#"
39846 if test "x$GCC_PCH" = "x1" ; then
39847 COND_GCC_PCH_1=""
39848 fi
39849
39850 COND_MONOLITHIC_0="#"
39851 if test "x$MONOLITHIC" = "x0" ; then
39852 COND_MONOLITHIC_0=""
39853 fi
39854
39855 COND_MONOLITHIC_0_SHARED_0="#"
39856 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39857 COND_MONOLITHIC_0_SHARED_0=""
39858 fi
39859
39860 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39861 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39862 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
39863 fi
39864
39865 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39866 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39867 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39868 fi
39869
39870 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39871 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39872 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39873 fi
39874
39875 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39876 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39877 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39878 fi
39879
ceec2216
RL
39880 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
39881 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
39882 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
39883 fi
39884
a848cd7e
SC
39885 COND_MONOLITHIC_0_SHARED_1="#"
39886 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39887 COND_MONOLITHIC_0_SHARED_1=""
39888 fi
39889
39890 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39891 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39892 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39893 fi
39894
39895 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39896 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39897 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39898 fi
39899
39900 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39901 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39902 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39903 fi
39904
39905 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39906 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39907 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39908 fi
39909
ceec2216
RL
39910 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
39911 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
39912 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
39913 fi
39914
a848cd7e
SC
39915 COND_MONOLITHIC_0_USE_ODBC_1="#"
39916 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39917 COND_MONOLITHIC_0_USE_ODBC_1=""
39918 fi
39919
39920 COND_MONOLITHIC_1="#"
39921 if test "x$MONOLITHIC" = "x1" ; then
39922 COND_MONOLITHIC_1=""
39923 fi
39924
39925 COND_MONOLITHIC_1_SHARED_0="#"
39926 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39927 COND_MONOLITHIC_1_SHARED_0=""
39928 fi
39929
39930 COND_MONOLITHIC_1_SHARED_1="#"
39931 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39932 COND_MONOLITHIC_1_SHARED_1=""
39933 fi
39934
39935 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39936 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39937 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39938 fi
39939
39940 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39941 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39942 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39943 fi
39944
39945 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39946 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39947 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39948 fi
39949
39950 COND_PLATFORM_MACOSX_1="#"
39951 if test "x$PLATFORM_MACOSX" = "x1" ; then
39952 COND_PLATFORM_MACOSX_1=""
39953 fi
39954
39955 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39956 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39957 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39958 fi
39959
39960 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39961 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39962 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39963 fi
39964
39965 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39966 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39967 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39968 fi
39969
ebee3cd0
VS
39970 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
39971 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
39972 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
39973 fi
39974
39975 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
39976 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
39977 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
39978 fi
39979
a848cd7e
SC
39980 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39981 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39982 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39983 fi
39984
39985 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39986 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39987 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39988 fi
39989
39990 COND_PLATFORM_MAC_1="#"
39991 if test "x$PLATFORM_MAC" = "x1" ; then
39992 COND_PLATFORM_MAC_1=""
39993 fi
39994
39995 COND_PLATFORM_OS2_1="#"
39996 if test "x$PLATFORM_OS2" = "x1" ; then
39997 COND_PLATFORM_OS2_1=""
39998 fi
39999
40000 COND_PLATFORM_UNIX_0="#"
40001 if test "x$PLATFORM_UNIX" = "x0" ; then
40002 COND_PLATFORM_UNIX_0=""
40003 fi
40004
40005 COND_PLATFORM_UNIX_1="#"
40006 if test "x$PLATFORM_UNIX" = "x1" ; then
40007 COND_PLATFORM_UNIX_1=""
40008 fi
40009
40010 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40011 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40012 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40013 fi
40014
40015 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40016 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40017 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40018 fi
40019
40020 COND_PLATFORM_WIN32_0="#"
40021 if test "x$PLATFORM_WIN32" = "x0" ; then
40022 COND_PLATFORM_WIN32_0=""
40023 fi
40024
40025 COND_PLATFORM_WIN32_1="#"
40026 if test "x$PLATFORM_WIN32" = "x1" ; then
40027 COND_PLATFORM_WIN32_1=""
40028 fi
40029
40030 COND_SHARED_0="#"
40031 if test "x$SHARED" = "x0" ; then
40032 COND_SHARED_0=""
40033 fi
40034
ceec2216
RL
40035 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
40036 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40037 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
40038 fi
40039
40040 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
40041 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40042 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
40043 fi
40044
40045 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
40046 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40047 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
40048 fi
40049
a848cd7e
SC
40050 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40051 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40052 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40053 fi
40054
40055 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40056 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40057 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40058 fi
40059
40060 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40061 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40062 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40063 fi
40064
40065 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40066 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40067 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40068 fi
40069
40070 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40071 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40072 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40073 fi
40074
40075 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40076 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40077 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40078 fi
40079
40080 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40081 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40082 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40083 fi
40084
40085 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40086 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40087 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40088 fi
40089
40090 COND_SHARED_1="#"
40091 if test "x$SHARED" = "x1" ; then
40092 COND_SHARED_1=""
40093 fi
40094
40095 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40096 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40097 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40098 fi
40099
40100 COND_TOOLKIT_COCOA="#"
40101 if test "x$TOOLKIT" = "xCOCOA" ; then
40102 COND_TOOLKIT_COCOA=""
40103 fi
40104
40105 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40106 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40107 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40108 fi
40109
40110 COND_TOOLKIT_GTK="#"
40111 if test "x$TOOLKIT" = "xGTK" ; then
40112 COND_TOOLKIT_GTK=""
40113 fi
40114
40115 COND_TOOLKIT_GTK_USE_GUI_1="#"
40116 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40117 COND_TOOLKIT_GTK_USE_GUI_1=""
40118 fi
40119
40120 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40121 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40122 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40123 fi
40124
40125 COND_TOOLKIT_MAC="#"
40126 if test "x$TOOLKIT" = "xMAC" ; then
40127 COND_TOOLKIT_MAC=""
40128 fi
40129
40130 COND_TOOLKIT_MAC_USE_GUI_1="#"
40131 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40132 COND_TOOLKIT_MAC_USE_GUI_1=""
40133 fi
40134
40135 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40136 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40137 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40138 fi
40139
40140 COND_TOOLKIT_MGL="#"
40141 if test "x$TOOLKIT" = "xMGL" ; then
40142 COND_TOOLKIT_MGL=""
40143 fi
40144
40145 COND_TOOLKIT_MGL_USE_GUI_1="#"
40146 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40147 COND_TOOLKIT_MGL_USE_GUI_1=""
40148 fi
40149
40150 COND_TOOLKIT_MOTIF="#"
40151 if test "x$TOOLKIT" = "xMOTIF" ; then
40152 COND_TOOLKIT_MOTIF=""
40153 fi
40154
40155 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40156 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40157 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40158 fi
40159
40160 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40161 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40162 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40163 fi
40164
40165 COND_TOOLKIT_MSW="#"
40166 if test "x$TOOLKIT" = "xMSW" ; then
40167 COND_TOOLKIT_MSW=""
40168 fi
40169
40170 COND_TOOLKIT_MSW_USE_GUI_1="#"
40171 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40172 COND_TOOLKIT_MSW_USE_GUI_1=""
40173 fi
40174
40175 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40176 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40177 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40178 fi
40179
40180 COND_TOOLKIT_PM="#"
40181 if test "x$TOOLKIT" = "xPM" ; then
40182 COND_TOOLKIT_PM=""
40183 fi
40184
40185 COND_TOOLKIT_PM_USE_GUI_1="#"
40186 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40187 COND_TOOLKIT_PM_USE_GUI_1=""
40188 fi
40189
40190 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40191 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40192 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40193 fi
40194
3fd9c298
DE
40195 COND_TOOLKIT_WINCE="#"
40196 if test "x$TOOLKIT" = "xWINCE" ; then
40197 COND_TOOLKIT_WINCE=""
40198 fi
40199
40200 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40201 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40202 COND_TOOLKIT_WINCE_USE_GUI_1=""
40203 fi
40204
40205 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40206 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40207 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40208 fi
40209
a848cd7e
SC
40210 COND_TOOLKIT_X11="#"
40211 if test "x$TOOLKIT" = "xX11" ; then
40212 COND_TOOLKIT_X11=""
40213 fi
40214
40215 COND_TOOLKIT_X11_USE_GUI_1="#"
40216 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40217 COND_TOOLKIT_X11_USE_GUI_1=""
40218 fi
40219
40220 COND_UNICODE_1="#"
40221 if test "x$UNICODE" = "x1" ; then
40222 COND_UNICODE_1=""
40223 fi
40224
40225 COND_USE_EXCEPTIONS_0="#"
40226 if test "x$USE_EXCEPTIONS" = "x0" ; then
40227 COND_USE_EXCEPTIONS_0=""
40228 fi
40229
40230 COND_USE_EXCEPTIONS_1="#"
40231 if test "x$USE_EXCEPTIONS" = "x1" ; then
40232 COND_USE_EXCEPTIONS_1=""
40233 fi
40234
40235 COND_USE_GUI_0="#"
40236 if test "x$USE_GUI" = "x0" ; then
40237 COND_USE_GUI_0=""
40238 fi
40239
40240 COND_USE_GUI_1="#"
40241 if test "x$USE_GUI" = "x1" ; then
40242 COND_USE_GUI_1=""
40243 fi
40244
40245 COND_USE_GUI_1_WXUNIV_0="#"
40246 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40247 COND_USE_GUI_1_WXUNIV_0=""
40248 fi
40249
40250 COND_USE_GUI_1_WXUNIV_1="#"
40251 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40252 COND_USE_GUI_1_WXUNIV_1=""
40253 fi
40254
40255 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40256 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40257 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40258 fi
40259
40260 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40261 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40262 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40263 fi
40264
40265 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40266 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40267 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40268 fi
40269
ceec2216
RL
40270 COND_USE_ODBC_1="#"
40271 if test "x$USE_ODBC" = "x1" ; then
40272 COND_USE_ODBC_1=""
40273 fi
40274
a848cd7e
SC
40275 COND_USE_PLUGINS_0="#"
40276 if test "x$USE_PLUGINS" = "x0" ; then
40277 COND_USE_PLUGINS_0=""
40278 fi
40279
40280 COND_USE_SOSYMLINKS_1="#"
40281 if test "x$USE_SOSYMLINKS" = "x1" ; then
40282 COND_USE_SOSYMLINKS_1=""
40283 fi
40284
40285 COND_USE_SOVERLINUX_1="#"
40286 if test "x$USE_SOVERLINUX" = "x1" ; then
40287 COND_USE_SOVERLINUX_1=""
40288 fi
40289
40290 COND_USE_SOVERSION_0="#"
40291 if test "x$USE_SOVERSION" = "x0" ; then
40292 COND_USE_SOVERSION_0=""
40293 fi
40294
40295 COND_USE_SOVERSOLARIS_1="#"
40296 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40297 COND_USE_SOVERSOLARIS_1=""
40298 fi
40299
a13a7f89
RL
40300 COND_USE_XRC_1="#"
40301 if test "x$USE_XRC" = "x1" ; then
40302 COND_USE_XRC_1=""
40303 fi
40304
a848cd7e
SC
40305 COND_WITH_PLUGIN_SDL_1="#"
40306 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40307 COND_WITH_PLUGIN_SDL_1=""
40308 fi
40309
a848cd7e
SC
40310 COND_WXUNIV_1="#"
40311 if test "x$WXUNIV" = "x1" ; then
40312 COND_WXUNIV_1=""
40313 fi
40314
40315 COND_WXUSE_EXPAT_BUILTIN="#"
40316 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40317 COND_WXUSE_EXPAT_BUILTIN=""
40318 fi
40319
40320 COND_WXUSE_LIBJPEG_BUILTIN="#"
40321 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40322 COND_WXUSE_LIBJPEG_BUILTIN=""
40323 fi
40324
40325 COND_WXUSE_LIBPNG_BUILTIN="#"
40326 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40327 COND_WXUSE_LIBPNG_BUILTIN=""
40328 fi
40329
40330 COND_WXUSE_LIBTIFF_BUILTIN="#"
40331 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40332 COND_WXUSE_LIBTIFF_BUILTIN=""
40333 fi
40334
40335 COND_WXUSE_ODBC_BUILTIN="#"
40336 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40337 COND_WXUSE_ODBC_BUILTIN=""
40338 fi
40339
40340 COND_WXUSE_REGEX_BUILTIN="#"
40341 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40342 COND_WXUSE_REGEX_BUILTIN=""
40343 fi
40344
40345 COND_WXUSE_ZLIB_BUILTIN="#"
40346 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40347 COND_WXUSE_ZLIB_BUILTIN=""
40348 fi
40349
dcc1b6ad
VS
40350 COND_BUILD_DEBUG="#"
40351 if test "x$BUILD" = "xdebug" ; then
40352 COND_BUILD_DEBUG=""
40353 fi
40354
40355 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40356 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40357 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40358 fi
40359
40360 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40361 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40362 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40363 fi
40364
40365 COND_BUILD_DEBUG_UNICODE_0="#"
40366 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40367 COND_BUILD_DEBUG_UNICODE_0=""
40368 fi
40369
40370 COND_BUILD_DEBUG_UNICODE_1="#"
40371 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40372 COND_BUILD_DEBUG_UNICODE_1=""
40373 fi
40374
40375 COND_BUILD_RELEASE="#"
40376 if test "x$BUILD" = "xrelease" ; then
40377 COND_BUILD_RELEASE=""
40378 fi
40379
40380 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40381 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40382 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40383 fi
40384
40385 COND_BUILD_RELEASE_UNICODE_0="#"
40386 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40387 COND_BUILD_RELEASE_UNICODE_0=""
40388 fi
40389
40390 COND_BUILD_RELEASE_UNICODE_1="#"
40391 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40392 COND_BUILD_RELEASE_UNICODE_1=""
40393 fi
40394
40395 COND_DEBUG_FLAG_1="#"
40396 if test "x$DEBUG_FLAG" = "x1" ; then
40397 COND_DEBUG_FLAG_1=""
40398 fi
40399
40400 COND_DEBUG_INFO_0="#"
40401 if test "x$DEBUG_INFO" = "x0" ; then
40402 COND_DEBUG_INFO_0=""
40403 fi
40404
40405 COND_DEBUG_INFO_1="#"
40406 if test "x$DEBUG_INFO" = "x1" ; then
40407 COND_DEBUG_INFO_1=""
40408 fi
40409
40410 COND_DEPS_TRACKING_0="#"
40411 if test "x$DEPS_TRACKING" = "x0" ; then
40412 COND_DEPS_TRACKING_0=""
40413 fi
40414
40415 COND_DEPS_TRACKING_1="#"
40416 if test "x$DEPS_TRACKING" = "x1" ; then
40417 COND_DEPS_TRACKING_1=""
40418 fi
40419
40420 COND_GCC_PCH_1="#"
40421 if test "x$GCC_PCH" = "x1" ; then
40422 COND_GCC_PCH_1=""
40423 fi
40424
40425 COND_MONOLITHIC_0="#"
40426 if test "x$MONOLITHIC" = "x0" ; then
40427 COND_MONOLITHIC_0=""
40428 fi
40429
40430 COND_MONOLITHIC_0_SHARED_0="#"
40431 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40432 COND_MONOLITHIC_0_SHARED_0=""
40433 fi
40434
40435 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40436 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40437 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40438 fi
40439
40440 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40441 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40442 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40443 fi
40444
40445 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
40446 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
40447 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
40448 fi
40449
40450 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40451 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40452 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40453 fi
40454
9a8f0513
VS
40455 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40456 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40457 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40458 fi
40459
dcc1b6ad
VS
40460 COND_MONOLITHIC_0_SHARED_1="#"
40461 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40462 COND_MONOLITHIC_0_SHARED_1=""
40463 fi
40464
40465 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40466 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40467 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40468 fi
40469
40470 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40471 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40472 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40473 fi
40474
40475 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
40476 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
40477 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
40478 fi
40479
40480 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40481 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40482 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40483 fi
40484
9a8f0513
VS
40485 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40486 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40487 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40488 fi
40489
dcc1b6ad
VS
40490 COND_MONOLITHIC_0_USE_ODBC_1="#"
40491 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40492 COND_MONOLITHIC_0_USE_ODBC_1=""
40493 fi
40494
40495 COND_MONOLITHIC_1="#"
40496 if test "x$MONOLITHIC" = "x1" ; then
40497 COND_MONOLITHIC_1=""
40498 fi
40499
40500 COND_MONOLITHIC_1_SHARED_0="#"
40501 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40502 COND_MONOLITHIC_1_SHARED_0=""
40503 fi
40504
40505 COND_MONOLITHIC_1_SHARED_1="#"
40506 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40507 COND_MONOLITHIC_1_SHARED_1=""
40508 fi
40509
40510 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40511 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40512 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40513 fi
40514
40515 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
40516 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
40517 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
40518 fi
40519
40520 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
40521 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
40522 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
40523 fi
40524
40525 COND_PLATFORM_MACOSX_1="#"
40526 if test "x$PLATFORM_MACOSX" = "x1" ; then
40527 COND_PLATFORM_MACOSX_1=""
40528 fi
40529
40530 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
40531 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
40532 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
40533 fi
40534
40535 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
40536 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
40537 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
40538 fi
40539
40540 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
40541 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
40542 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
40543 fi
40544
9a8f0513
VS
40545 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
40546 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
40547 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
40548 fi
40549
40550 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
40551 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
40552 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
40553 fi
40554
dcc1b6ad
VS
40555 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
40556 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
40557 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
40558 fi
40559
40560 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
40561 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
40562 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
40563 fi
40564
40565 COND_PLATFORM_MAC_1="#"
40566 if test "x$PLATFORM_MAC" = "x1" ; then
40567 COND_PLATFORM_MAC_1=""
40568 fi
40569
40570 COND_PLATFORM_OS2_1="#"
40571 if test "x$PLATFORM_OS2" = "x1" ; then
40572 COND_PLATFORM_OS2_1=""
40573 fi
40574
40575 COND_PLATFORM_UNIX_0="#"
40576 if test "x$PLATFORM_UNIX" = "x0" ; then
40577 COND_PLATFORM_UNIX_0=""
40578 fi
40579
40580 COND_PLATFORM_UNIX_1="#"
40581 if test "x$PLATFORM_UNIX" = "x1" ; then
40582 COND_PLATFORM_UNIX_1=""
40583 fi
40584
40585 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
40586 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
40587 COND_PLATFORM_UNIX_1_USE_GUI_1=""
40588 fi
40589
40590 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
40591 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
40592 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
40593 fi
40594
40595 COND_PLATFORM_WIN32_0="#"
40596 if test "x$PLATFORM_WIN32" = "x0" ; then
40597 COND_PLATFORM_WIN32_0=""
40598 fi
40599
40600 COND_PLATFORM_WIN32_1="#"
40601 if test "x$PLATFORM_WIN32" = "x1" ; then
40602 COND_PLATFORM_WIN32_1=""
40603 fi
40604
40605 COND_SHARED_0="#"
40606 if test "x$SHARED" = "x0" ; then
40607 COND_SHARED_0=""
40608 fi
40609
40610 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
40611 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40612 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
40613 fi
40614
40615 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40616 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40617 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40618 fi
40619
40620 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40621 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40622 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40623 fi
40624
40625 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40626 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40627 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40628 fi
40629
40630 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
40631 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
40632 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
40633 fi
40634
40635 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
40636 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
40637 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
40638 fi
40639
40640 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
40641 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
40642 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
40643 fi
40644
40645 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
40646 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
40647 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
40648 fi
40649
40650 COND_SHARED_1="#"
40651 if test "x$SHARED" = "x1" ; then
40652 COND_SHARED_1=""
40653 fi
40654
40655 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
40656 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
40657 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
40658 fi
40659
40660 COND_TOOLKIT_COCOA="#"
40661 if test "x$TOOLKIT" = "xCOCOA" ; then
40662 COND_TOOLKIT_COCOA=""
40663 fi
40664
40665 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
40666 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40667 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
40668 fi
40669
40670 COND_TOOLKIT_GTK="#"
40671 if test "x$TOOLKIT" = "xGTK" ; then
40672 COND_TOOLKIT_GTK=""
40673 fi
40674
40675 COND_TOOLKIT_GTK_USE_GUI_1="#"
40676 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
40677 COND_TOOLKIT_GTK_USE_GUI_1=""
40678 fi
40679
40680 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
40681 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40682 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
40683 fi
40684
40685 COND_TOOLKIT_MAC="#"
40686 if test "x$TOOLKIT" = "xMAC" ; then
40687 COND_TOOLKIT_MAC=""
40688 fi
40689
40690 COND_TOOLKIT_MAC_USE_GUI_1="#"
40691 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
40692 COND_TOOLKIT_MAC_USE_GUI_1=""
40693 fi
40694
40695 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
40696 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40697 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
40698 fi
40699
9a8f0513
VS
40700 COND_TOOLKIT_MAC_WXUNIV_0="#"
40701 if test "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
40702 COND_TOOLKIT_MAC_WXUNIV_0=""
40703 fi
40704
dcc1b6ad
VS
40705 COND_TOOLKIT_MGL="#"
40706 if test "x$TOOLKIT" = "xMGL" ; then
40707 COND_TOOLKIT_MGL=""
40708 fi
40709
40710 COND_TOOLKIT_MGL_USE_GUI_1="#"
40711 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
40712 COND_TOOLKIT_MGL_USE_GUI_1=""
40713 fi
40714
40715 COND_TOOLKIT_MOTIF="#"
40716 if test "x$TOOLKIT" = "xMOTIF" ; then
40717 COND_TOOLKIT_MOTIF=""
40718 fi
40719
40720 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
40721 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
40722 COND_TOOLKIT_MOTIF_USE_GUI_1=""
40723 fi
40724
40725 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
40726 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40727 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
40728 fi
40729
40730 COND_TOOLKIT_MSW="#"
40731 if test "x$TOOLKIT" = "xMSW" ; then
40732 COND_TOOLKIT_MSW=""
40733 fi
40734
40735 COND_TOOLKIT_MSW_USE_GUI_1="#"
40736 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
40737 COND_TOOLKIT_MSW_USE_GUI_1=""
40738 fi
40739
40740 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
40741 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40742 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
40743 fi
40744
9a8f0513
VS
40745 COND_TOOLKIT_MSW_WXUNIV_0="#"
40746 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
40747 COND_TOOLKIT_MSW_WXUNIV_0=""
40748 fi
40749
dcc1b6ad
VS
40750 COND_TOOLKIT_PM="#"
40751 if test "x$TOOLKIT" = "xPM" ; then
40752 COND_TOOLKIT_PM=""
40753 fi
40754
40755 COND_TOOLKIT_PM_USE_GUI_1="#"
40756 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
40757 COND_TOOLKIT_PM_USE_GUI_1=""
40758 fi
40759
40760 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
40761 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40762 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
40763 fi
40764
9a8f0513
VS
40765 COND_TOOLKIT_PM_WXUNIV_0="#"
40766 if test "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
40767 COND_TOOLKIT_PM_WXUNIV_0=""
40768 fi
40769
dcc1b6ad
VS
40770 COND_TOOLKIT_WINCE="#"
40771 if test "x$TOOLKIT" = "xWINCE" ; then
40772 COND_TOOLKIT_WINCE=""
40773 fi
40774
40775 COND_TOOLKIT_WINCE_USE_GUI_1="#"
40776 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
40777 COND_TOOLKIT_WINCE_USE_GUI_1=""
40778 fi
40779
40780 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
40781 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40782 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
40783 fi
40784
40785 COND_TOOLKIT_X11="#"
40786 if test "x$TOOLKIT" = "xX11" ; then
40787 COND_TOOLKIT_X11=""
40788 fi
40789
40790 COND_TOOLKIT_X11_USE_GUI_1="#"
40791 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
40792 COND_TOOLKIT_X11_USE_GUI_1=""
40793 fi
40794
40795 COND_UNICODE_1="#"
40796 if test "x$UNICODE" = "x1" ; then
40797 COND_UNICODE_1=""
40798 fi
40799
40800 COND_USE_EXCEPTIONS_0="#"
40801 if test "x$USE_EXCEPTIONS" = "x0" ; then
40802 COND_USE_EXCEPTIONS_0=""
40803 fi
40804
40805 COND_USE_EXCEPTIONS_1="#"
40806 if test "x$USE_EXCEPTIONS" = "x1" ; then
40807 COND_USE_EXCEPTIONS_1=""
40808 fi
40809
40810 COND_USE_GUI_0="#"
40811 if test "x$USE_GUI" = "x0" ; then
40812 COND_USE_GUI_0=""
40813 fi
40814
40815 COND_USE_GUI_1="#"
40816 if test "x$USE_GUI" = "x1" ; then
40817 COND_USE_GUI_1=""
40818 fi
40819
40820 COND_USE_GUI_1_WXUNIV_0="#"
40821 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
40822 COND_USE_GUI_1_WXUNIV_0=""
40823 fi
40824
40825 COND_USE_GUI_1_WXUNIV_1="#"
40826 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
40827 COND_USE_GUI_1_WXUNIV_1=""
40828 fi
40829
40830 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
40831 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40832 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
40833 fi
40834
40835 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
40836 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40837 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
40838 fi
40839
40840 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
40841 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40842 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
40843 fi
40844
40845 COND_USE_ODBC_1="#"
40846 if test "x$USE_ODBC" = "x1" ; then
40847 COND_USE_ODBC_1=""
40848 fi
40849
40850 COND_USE_PLUGINS_0="#"
40851 if test "x$USE_PLUGINS" = "x0" ; then
40852 COND_USE_PLUGINS_0=""
40853 fi
40854
40855 COND_USE_SOSYMLINKS_1="#"
40856 if test "x$USE_SOSYMLINKS" = "x1" ; then
40857 COND_USE_SOSYMLINKS_1=""
40858 fi
40859
40860 COND_USE_SOVERLINUX_1="#"
40861 if test "x$USE_SOVERLINUX" = "x1" ; then
40862 COND_USE_SOVERLINUX_1=""
40863 fi
40864
40865 COND_USE_SOVERSION_0="#"
40866 if test "x$USE_SOVERSION" = "x0" ; then
40867 COND_USE_SOVERSION_0=""
40868 fi
40869
40870 COND_USE_SOVERSOLARIS_1="#"
40871 if test "x$USE_SOVERSOLARIS" = "x1" ; then
40872 COND_USE_SOVERSOLARIS_1=""
40873 fi
40874
40875 COND_WITH_PLUGIN_SDL_1="#"
40876 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
40877 COND_WITH_PLUGIN_SDL_1=""
40878 fi
40879
40880 COND_WXUNIV_1="#"
40881 if test "x$WXUNIV" = "x1" ; then
40882 COND_WXUNIV_1=""
40883 fi
40884
40885 COND_WXUSE_EXPAT_BUILTIN="#"
40886 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
40887 COND_WXUSE_EXPAT_BUILTIN=""
40888 fi
40889
40890 COND_WXUSE_LIBJPEG_BUILTIN="#"
40891 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
40892 COND_WXUSE_LIBJPEG_BUILTIN=""
40893 fi
40894
40895 COND_WXUSE_LIBPNG_BUILTIN="#"
40896 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
40897 COND_WXUSE_LIBPNG_BUILTIN=""
40898 fi
40899
40900 COND_WXUSE_LIBTIFF_BUILTIN="#"
40901 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
40902 COND_WXUSE_LIBTIFF_BUILTIN=""
40903 fi
40904
40905 COND_WXUSE_ODBC_BUILTIN="#"
40906 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
40907 COND_WXUSE_ODBC_BUILTIN=""
40908 fi
40909
40910 COND_WXUSE_REGEX_BUILTIN="#"
40911 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
40912 COND_WXUSE_REGEX_BUILTIN=""
40913 fi
40914
40915 COND_WXUSE_ZLIB_BUILTIN="#"
40916 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
40917 COND_WXUSE_ZLIB_BUILTIN=""
40918 fi
40919
a848cd7e
SC
40920
40921
2057db16
VS
40922 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
40923 { { 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
40924echo "$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;}
40925 { (exit 1); exit 1; }; }
40926 fi
40927
a848cd7e 40928
ceec2216
RL
40929if test "$wxUSE_SHARED" = "yes"; then
40930
40931 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
40932 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
40933
40934else
40935
40936 EXE_LINKER="$CXX -o"
40937
40938fi
a848cd7e 40939
74b84332 40940GCC_PRAGMA_FLAGS=""
a848cd7e 40941if test $GCC_PCH = 1 ; then
74b84332 40942 GCC_PRAGMA_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
a848cd7e
SC
40943else
40944 case "${host}" in
40945 powerpc-*-darwin* )
74b84332 40946 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 40947 ;;
bea8e651 40948 *-*-mingw32* )
1f344abf
VS
40949 if test "$wxUSE_STL" = "yes" -o \
40950 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
40951 "$wxUSE_NO_RTTI" != "yes"; then
40952 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
40953echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
40954 cat >conftest.$ac_ext <<_ACEOF
40955/* confdefs.h. */
40956_ACEOF
40957cat confdefs.h >>conftest.$ac_ext
40958cat >>conftest.$ac_ext <<_ACEOF
40959/* end confdefs.h. */
40960
40961int
40962main ()
40963{
1f344abf 40964#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
40965 #error "Not GCC 3.2 or greater"
40966 #endif
40967
40968 ;
40969 return 0;
40970}
40971_ACEOF
40972rm -f conftest.$ac_objext
40973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40974 (eval $ac_compile) 2>conftest.er1
bea8e651 40975 ac_status=$?
ac1cb8d3
VS
40976 grep -v '^ *+' conftest.er1 >conftest.err
40977 rm -f conftest.er1
40978 cat conftest.err >&5
bea8e651
MB
40979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40980 (exit $ac_status); } &&
7714864e 40981 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40983 (eval $ac_try) 2>&5
40984 ac_status=$?
40985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40986 (exit $ac_status); }; } &&
40987 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
40988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40989 (eval $ac_try) 2>&5
40990 ac_status=$?
40991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40992 (exit $ac_status); }; }; then
74b84332 40993 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
40994 echo "$as_me:$LINENO: result: yes" >&5
40995echo "${ECHO_T}yes" >&6
40996else
40997 echo "$as_me: failed program was:" >&5
40998sed 's/^/| /' conftest.$ac_ext >&5
40999
41000echo "$as_me:$LINENO: result: no" >&5
41001echo "${ECHO_T}no" >&6
41002fi
ac1cb8d3 41003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41004 fi
41005 ;;
a848cd7e
SC
41006 esac
41007fi
74b84332 41008CPPFLAGS="$GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41009
41010
41011SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41012
41013
41014
41015
41016
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034
41035
41036
41037
41038
41039
41040
41041
41042
41043
41044
41045
41046
41047
41048
41049
41050
41051
41052
41053
a848cd7e
SC
41054
41055
41056
41057
41058
41059
41060
41061
41062
41063
41064
41065
41066
41067
41068
41069
41070
41071
74b84332 41072
a848cd7e
SC
41073
41074
41075echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41076echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41077set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41078if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41079 echo $ECHO_N "(cached) $ECHO_C" >&6
41080else
41081 cat >conftest.make <<\_ACEOF
41082all:
41083 @echo 'ac_maketemp="$(MAKE)"'
41084_ACEOF
41085# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41086eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41087if test -n "$ac_maketemp"; then
41088 eval ac_cv_prog_make_${ac_make}_set=yes
41089else
41090 eval ac_cv_prog_make_${ac_make}_set=no
41091fi
41092rm -f conftest.make
41093fi
41094if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41095 echo "$as_me:$LINENO: result: yes" >&5
41096echo "${ECHO_T}yes" >&6
41097 SET_MAKE=
41098else
41099 echo "$as_me:$LINENO: result: no" >&5
41100echo "${ECHO_T}no" >&6
41101 SET_MAKE="MAKE=${MAKE-make}"
41102fi
41103
41104
a848cd7e 41105
ceec2216
RL
41106 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41107
a848cd7e 41108
ceec2216 41109 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41110
a848cd7e 41111
ceec2216 41112 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41113
ceec2216
RL
41114
41115 ac_config_files="$ac_config_files version-script Makefile"
41116
41117
41118 ac_config_commands="$ac_config_commands wx-config
41119 "
a848cd7e
SC
41120
41121
9103d280
RL
41122
41123
a848cd7e
SC
41124if test "$wxUSE_GUI" = "yes"; then
41125 SUBDIRS="samples demos utils contrib"
41126else SUBDIRS="samples utils"
41127fi
41128
41129
41130
41131# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41132if test "${with_cppunit_prefix+set}" = set; then
41133 withval="$with_cppunit_prefix"
41134 cppunit_config_prefix="$withval"
41135else
41136 cppunit_config_prefix=""
41137fi;
41138
41139# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41140if test "${with_cppunit_exec_prefix+set}" = set; then
41141 withval="$with_cppunit_exec_prefix"
41142 cppunit_config_exec_prefix="$withval"
41143else
41144 cppunit_config_exec_prefix=""
41145fi;
41146
41147 if test x$cppunit_config_exec_prefix != x ; then
41148 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41149 if test x${CPPUNIT_CONFIG+set} != xset ; then
41150 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41151 fi
41152 fi
41153 if test x$cppunit_config_prefix != x ; then
41154 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41155 if test x${CPPUNIT_CONFIG+set} != xset ; then
41156 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41157 fi
41158 fi
41159
41160 # Extract the first word of "cppunit-config", so it can be a program name with args.
41161set dummy cppunit-config; ac_word=$2
41162echo "$as_me:$LINENO: checking for $ac_word" >&5
41163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41164if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41165 echo $ECHO_N "(cached) $ECHO_C" >&6
41166else
41167 case $CPPUNIT_CONFIG in
41168 [\\/]* | ?:[\\/]*)
41169 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41170 ;;
41171 *)
41172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41173for as_dir in $PATH
41174do
41175 IFS=$as_save_IFS
41176 test -z "$as_dir" && as_dir=.
41177 for ac_exec_ext in '' $ac_executable_extensions; do
41178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41179 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41181 break 2
41182 fi
41183done
41184done
41185
41186 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41187 ;;
41188esac
41189fi
41190CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41191
41192if test -n "$CPPUNIT_CONFIG"; then
41193 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41194echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41195else
41196 echo "$as_me:$LINENO: result: no" >&5
41197echo "${ECHO_T}no" >&6
41198fi
41199
41200 cppunit_version_min=1.8.0
41201
41202 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41203echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41204 no_cppunit=""
41205 if test "$CPPUNIT_CONFIG" = "no" ; then
41206 no_cppunit=yes
41207 else
41208 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41209 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41210 cppunit_version=`$CPPUNIT_CONFIG --version`
41211
41212 cppunit_major_version=`echo $cppunit_version | \
41213 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41214 cppunit_minor_version=`echo $cppunit_version | \
41215 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41216 cppunit_micro_version=`echo $cppunit_version | \
41217 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41218
41219 cppunit_major_min=`echo $cppunit_version_min | \
41220 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41221 cppunit_minor_min=`echo $cppunit_version_min | \
41222 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41223 cppunit_micro_min=`echo $cppunit_version_min | \
41224 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41225
41226 cppunit_version_proper=`expr \
41227 $cppunit_major_version \> $cppunit_major_min \| \
41228 $cppunit_major_version \= $cppunit_major_min \& \
41229 $cppunit_minor_version \> $cppunit_minor_min \| \
41230 $cppunit_major_version \= $cppunit_major_min \& \
41231 $cppunit_minor_version \= $cppunit_minor_min \& \
41232 $cppunit_micro_version \>= $cppunit_micro_min `
41233
41234 if test "$cppunit_version_proper" = "1" ; then
41235 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41236echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41237 else
41238 echo "$as_me:$LINENO: result: no" >&5
41239echo "${ECHO_T}no" >&6
41240 no_cppunit=yes
41241 fi
41242 fi
41243
41244 if test "x$no_cppunit" = x ; then
c2218763 41245 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41246 else
41247 CPPUNIT_CFLAGS=""
41248 CPPUNIT_LIBS=""
c2218763 41249 :
a848cd7e
SC
41250 fi
41251
41252
41253
41254
41255
41256for subdir in `echo $SUBDIRS`; do
41257 if test -d ${srcdir}/${subdir} ; then
41258 if test "$wxUSE_GUI" = "yes"; then
41259 if test ${subdir} = "samples"; then
41260 makefiles="samples/Makefile.in $makefiles"
41261 for sample in `echo $SAMPLES_SUBDIRS`; do
41262 if test -d $srcdir/samples/$sample; then
41263 makefiles="samples/$sample/Makefile.in $makefiles"
41264 fi
41265 done
41266 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41267 fi
41268 else if test ${subdir} = "samples"; then
41269 makefiles="samples/Makefile.in samples/console/Makefile.in"
41270 elif test ${subdir} = "utils"; then
41271 makefiles="utils/HelpGen/Makefile.in \
41272 utils/HelpGen/src/Makefile.in \
41273 utils/tex2rtf/Makefile.in \
41274 utils/tex2rtf/src/Makefile.in"
41275 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41276 fi
41277 fi
41278
41279 for mkin in $makefiles ; do
41280 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41281 ac_config_files="$ac_config_files $mk"
41282
41283 done
41284 fi
41285done
41286
41287
41288cat >confcache <<\_ACEOF
41289# This file is a shell script that caches the results of configure
41290# tests run on this system so they can be shared between configure
41291# scripts and configure runs, see configure's option --config-cache.
41292# It is not useful on other systems. If it contains results you don't
41293# want to keep, you may remove or edit it.
41294#
41295# config.status only pays attention to the cache file if you give it
41296# the --recheck option to rerun configure.
41297#
41298# `ac_cv_env_foo' variables (set or unset) will be overridden when
41299# loading this file, other *unset* `ac_cv_foo' will be assigned the
41300# following values.
41301
41302_ACEOF
41303
41304# The following way of writing the cache mishandles newlines in values,
41305# but we know of no workaround that is simple, portable, and efficient.
41306# So, don't put newlines in cache variables' values.
41307# Ultrix sh set writes to stderr and can't be redirected directly,
41308# and sets the high bit in the cache file unless we assign to the vars.
41309{
41310 (set) 2>&1 |
41311 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41312 *ac_space=\ *)
41313 # `set' does not quote correctly, so add quotes (double-quote
41314 # substitution turns \\\\ into \\, and sed turns \\ into \).
41315 sed -n \
ac1cb8d3
VS
41316 "s/'/'\\\\''/g;
41317 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41318 ;;
41319 *)
41320 # `set' quotes correctly as required by POSIX, so do not add quotes.
41321 sed -n \
ac1cb8d3 41322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41323 ;;
41324 esac;
41325} |
41326 sed '
41327 t clear
41328 : clear
41329 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41330 t end
41331 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41332 : end' >>confcache
41333if diff $cache_file confcache >/dev/null 2>&1; then :; else
41334 if test -w $cache_file; then
41335 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41336 cat confcache >$cache_file
41337 else
41338 echo "not updating unwritable cache $cache_file"
41339 fi
41340fi
41341rm -f confcache
41342
41343test "x$prefix" = xNONE && prefix=$ac_default_prefix
41344# Let make expand exec_prefix.
41345test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41346
41347# VPATH may cause trouble with some makes, so we remove $(srcdir),
41348# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41349# trailing colons and then remove the whole line if VPATH becomes empty
41350# (actually we leave an empty line to preserve line numbers).
41351if test "x$srcdir" = x.; then
ac1cb8d3 41352 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41353s/:*\$(srcdir):*/:/;
41354s/:*\${srcdir}:*/:/;
41355s/:*@srcdir@:*/:/;
ac1cb8d3 41356s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41357s/:*$//;
ac1cb8d3 41358s/^[^=]*=[ ]*$//;
a848cd7e
SC
41359}'
41360fi
41361
41362DEFS=-DHAVE_CONFIG_H
41363
41364ac_libobjs=
41365ac_ltlibobjs=
41366for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41367 # 1. Remove the extension, and $U if already installed.
41368 ac_i=`echo "$ac_i" |
ac1cb8d3 41369 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41370 # 2. Add them.
41371 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41372 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41373done
41374LIBOBJS=$ac_libobjs
41375
41376LTLIBOBJS=$ac_ltlibobjs
41377
41378
41379
41380: ${CONFIG_STATUS=./config.status}
41381ac_clean_files_save=$ac_clean_files
41382ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41383{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41384echo "$as_me: creating $CONFIG_STATUS" >&6;}
41385cat >$CONFIG_STATUS <<_ACEOF
41386#! $SHELL
41387# Generated by $as_me.
41388# Run this file to recreate the current configuration.
41389# Compiler output produced by configure, useful for debugging
41390# configure, is in config.log if it exists.
41391
41392debug=false
41393ac_cs_recheck=false
41394ac_cs_silent=false
41395SHELL=\${CONFIG_SHELL-$SHELL}
41396_ACEOF
41397
41398cat >>$CONFIG_STATUS <<\_ACEOF
41399## --------------------- ##
41400## M4sh Initialization. ##
41401## --------------------- ##
41402
41403# Be Bourne compatible
41404if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
41405 emulate sh
41406 NULLCMD=:
41407 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41408 # is contrary to our usage. Disable this feature.
41409 alias -g '${1+"$@"}'='"$@"'
41410elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
41411 set -o posix
41412fi
ac1cb8d3 41413DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
41414
41415# Support unset when possible.
ac1cb8d3 41416if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
41417 as_unset=unset
41418else
41419 as_unset=false
41420fi
41421
41422
41423# Work around bugs in pre-3.0 UWIN ksh.
41424$as_unset ENV MAIL MAILPATH
41425PS1='$ '
41426PS2='> '
41427PS4='+ '
41428
41429# NLS nuisances.
41430for as_var in \
41431 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41432 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
41433 LC_TELEPHONE LC_TIME
41434do
ac1cb8d3 41435 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
41436 eval $as_var=C; export $as_var
41437 else
41438 $as_unset $as_var
41439 fi
41440done
41441
41442# Required to use basename.
41443if expr a : '\(a\)' >/dev/null 2>&1; then
41444 as_expr=expr
41445else
41446 as_expr=false
41447fi
41448
41449if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
41450 as_basename=basename
41451else
41452 as_basename=false
41453fi
41454
41455
41456# Name of the executable.
41457as_me=`$as_basename "$0" ||
41458$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41459 X"$0" : 'X\(//\)$' \| \
41460 X"$0" : 'X\(/\)$' \| \
41461 . : '\(.\)' 2>/dev/null ||
41462echo X/"$0" |
41463 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
41464 /^X\/\(\/\/\)$/{ s//\1/; q; }
41465 /^X\/\(\/\).*/{ s//\1/; q; }
41466 s/.*/./; q'`
41467
41468
41469# PATH needs CR, and LINENO needs CR and PATH.
41470# Avoid depending upon Character Ranges.
41471as_cr_letters='abcdefghijklmnopqrstuvwxyz'
41472as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41473as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41474as_cr_digits='0123456789'
41475as_cr_alnum=$as_cr_Letters$as_cr_digits
41476
41477# The user is always right.
41478if test "${PATH_SEPARATOR+set}" != set; then
41479 echo "#! /bin/sh" >conf$$.sh
41480 echo "exit 0" >>conf$$.sh
41481 chmod +x conf$$.sh
41482 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
41483 PATH_SEPARATOR=';'
41484 else
41485 PATH_SEPARATOR=:
41486 fi
41487 rm -f conf$$.sh
41488fi
41489
41490
41491 as_lineno_1=$LINENO
41492 as_lineno_2=$LINENO
41493 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41494 test "x$as_lineno_1" != "x$as_lineno_2" &&
41495 test "x$as_lineno_3" = "x$as_lineno_2" || {
41496 # Find who we are. Look in the path if we contain no path at all
41497 # relative or not.
41498 case $0 in
41499 *[\\/]* ) as_myself=$0 ;;
41500 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41501for as_dir in $PATH
41502do
41503 IFS=$as_save_IFS
41504 test -z "$as_dir" && as_dir=.
41505 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41506done
41507
41508 ;;
41509 esac
41510 # We did not find ourselves, most probably we were run as `sh COMMAND'
41511 # in which case we are not to be found in the path.
41512 if test "x$as_myself" = x; then
41513 as_myself=$0
41514 fi
41515 if test ! -f "$as_myself"; then
41516 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
41517echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
41518 { (exit 1); exit 1; }; }
41519 fi
41520 case $CONFIG_SHELL in
41521 '')
41522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41523for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
41524do
41525 IFS=$as_save_IFS
41526 test -z "$as_dir" && as_dir=.
41527 for as_base in sh bash ksh sh5; do
41528 case $as_dir in
41529 /*)
41530 if ("$as_dir/$as_base" -c '
41531 as_lineno_1=$LINENO
41532 as_lineno_2=$LINENO
41533 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
41534 test "x$as_lineno_1" != "x$as_lineno_2" &&
41535 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
41536 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
41537 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
41538 CONFIG_SHELL=$as_dir/$as_base
41539 export CONFIG_SHELL
41540 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
41541 fi;;
41542 esac
41543 done
41544done
41545;;
41546 esac
41547
41548 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41549 # uniformly replaced by the line number. The first 'sed' inserts a
41550 # line-number line before each line; the second 'sed' does the real
41551 # work. The second script uses 'N' to pair each line-number line
41552 # with the numbered line, and appends trailing '-' during
41553 # substitution so that $LINENO is not a special case at line end.
41554 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41555 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
41556 sed '=' <$as_myself |
41557 sed '
41558 N
41559 s,$,-,
41560 : loop
41561 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
41562 t loop
41563 s,-$,,
41564 s,^['$as_cr_digits']*\n,,
41565 ' >$as_me.lineno &&
41566 chmod +x $as_me.lineno ||
41567 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
41568echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
41569 { (exit 1); exit 1; }; }
41570
41571 # Don't try to exec as it changes $[0], causing all sort of problems
41572 # (the dirname of $[0] is not the place where we might find the
41573 # original and so on. Autoconf is especially sensible to this).
41574 . ./$as_me.lineno
41575 # Exit status is that of the last command.
41576 exit
41577}
41578
41579
41580case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
41581 *c*,-n*) ECHO_N= ECHO_C='
41582' ECHO_T=' ' ;;
41583 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
41584 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
41585esac
41586
41587if expr a : '\(a\)' >/dev/null 2>&1; then
41588 as_expr=expr
41589else
41590 as_expr=false
41591fi
41592
41593rm -f conf$$ conf$$.exe conf$$.file
41594echo >conf$$.file
41595if ln -s conf$$.file conf$$ 2>/dev/null; then
41596 # We could just check for DJGPP; but this test a) works b) is more generic
41597 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
41598 if test -f conf$$.exe; then
41599 # Don't use ln at all; we don't have any links
41600 as_ln_s='cp -p'
41601 else
41602 as_ln_s='ln -s'
41603 fi
41604elif ln conf$$.file conf$$ 2>/dev/null; then
41605 as_ln_s=ln
41606else
41607 as_ln_s='cp -p'
41608fi
41609rm -f conf$$ conf$$.exe conf$$.file
41610
41611if mkdir -p . 2>/dev/null; then
41612 as_mkdir_p=:
41613else
ac1cb8d3 41614 test -d ./-p && rmdir ./-p
a848cd7e
SC
41615 as_mkdir_p=false
41616fi
41617
41618as_executable_p="test -f"
41619
41620# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 41621as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41622
41623# Sed expression to map a string onto a valid variable name.
ac1cb8d3 41624as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
41625
41626
41627# IFS
41628# We need space, tab and new line, in precisely that order.
41629as_nl='
41630'
41631IFS=" $as_nl"
41632
41633# CDPATH.
41634$as_unset CDPATH
41635
41636exec 6>&1
41637
41638# Open the log real soon, to keep \$[0] and so on meaningful, and to
41639# report actual input values of CONFIG_FILES etc. instead of their
41640# values after options handling. Logging --version etc. is OK.
41641exec 5>>config.log
41642{
41643 echo
41644 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41645## Running $as_me. ##
41646_ASBOX
41647} >&5
41648cat >&5 <<_CSEOF
41649
7714864e 41650This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 41651generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
41652
41653 CONFIG_FILES = $CONFIG_FILES
41654 CONFIG_HEADERS = $CONFIG_HEADERS
41655 CONFIG_LINKS = $CONFIG_LINKS
41656 CONFIG_COMMANDS = $CONFIG_COMMANDS
41657 $ $0 $@
41658
41659_CSEOF
41660echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
41661echo >&5
41662_ACEOF
41663
41664# Files that config.status was made for.
41665if test -n "$ac_config_files"; then
41666 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
41667fi
41668
41669if test -n "$ac_config_headers"; then
41670 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
41671fi
41672
41673if test -n "$ac_config_links"; then
41674 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
41675fi
41676
41677if test -n "$ac_config_commands"; then
41678 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
41679fi
41680
41681cat >>$CONFIG_STATUS <<\_ACEOF
41682
41683ac_cs_usage="\
41684\`$as_me' instantiates files from templates according to the
41685current configuration.
41686
41687Usage: $0 [OPTIONS] [FILE]...
41688
41689 -h, --help print this help, then exit
41690 -V, --version print version number, then exit
41691 -q, --quiet do not print progress messages
41692 -d, --debug don't remove temporary files
41693 --recheck update $as_me by reconfiguring in the same conditions
41694 --file=FILE[:TEMPLATE]
ac1cb8d3 41695 instantiate the configuration file FILE
a848cd7e 41696 --header=FILE[:TEMPLATE]
ac1cb8d3 41697 instantiate the configuration header FILE
a848cd7e
SC
41698
41699Configuration files:
41700$config_files
41701
41702Configuration headers:
41703$config_headers
41704
41705Configuration commands:
41706$config_commands
41707
41708Report bugs to <bug-autoconf@gnu.org>."
41709_ACEOF
41710
41711cat >>$CONFIG_STATUS <<_ACEOF
41712ac_cs_version="\\
7714864e 41713wxWidgets config.status 2.5.3
ac1cb8d3 41714configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
41715 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
41716
ac1cb8d3 41717Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
41718This config.status script is free software; the Free Software Foundation
41719gives unlimited permission to copy, distribute and modify it."
41720srcdir=$srcdir
41721INSTALL="$INSTALL"
41722_ACEOF
41723
41724cat >>$CONFIG_STATUS <<\_ACEOF
41725# If no file are specified by the user, then we need to provide default
41726# value. By we need to know if files were specified by the user.
41727ac_need_defaults=:
41728while test $# != 0
41729do
41730 case $1 in
41731 --*=*)
41732 ac_option=`expr "x$1" : 'x\([^=]*\)='`
41733 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
41734 ac_shift=:
41735 ;;
41736 -*)
41737 ac_option=$1
41738 ac_optarg=$2
41739 ac_shift=shift
41740 ;;
41741 *) # This is not an option, so the user has probably given explicit
41742 # arguments.
41743 ac_option=$1
41744 ac_need_defaults=false;;
41745 esac
41746
41747 case $ac_option in
41748 # Handling of the options.
41749_ACEOF
41750cat >>$CONFIG_STATUS <<\_ACEOF
41751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
41752 ac_cs_recheck=: ;;
41753 --version | --vers* | -V )
41754 echo "$ac_cs_version"; exit 0 ;;
41755 --he | --h)
41756 # Conflict between --help and --header
41757 { { echo "$as_me:$LINENO: error: ambiguous option: $1
41758Try \`$0 --help' for more information." >&5
41759echo "$as_me: error: ambiguous option: $1
41760Try \`$0 --help' for more information." >&2;}
41761 { (exit 1); exit 1; }; };;
41762 --help | --hel | -h )
41763 echo "$ac_cs_usage"; exit 0 ;;
41764 --debug | --d* | -d )
41765 debug=: ;;
41766 --file | --fil | --fi | --f )
41767 $ac_shift
41768 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
41769 ac_need_defaults=false;;
41770 --header | --heade | --head | --hea )
41771 $ac_shift
41772 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
41773 ac_need_defaults=false;;
41774 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
41775 | -silent | --silent | --silen | --sile | --sil | --si | --s)
41776 ac_cs_silent=: ;;
41777
41778 # This is an error.
41779 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
41780Try \`$0 --help' for more information." >&5
41781echo "$as_me: error: unrecognized option: $1
41782Try \`$0 --help' for more information." >&2;}
41783 { (exit 1); exit 1; }; } ;;
41784
41785 *) ac_config_targets="$ac_config_targets $1" ;;
41786
41787 esac
41788 shift
41789done
41790
41791ac_configure_extra_args=
41792
41793if $ac_cs_silent; then
41794 exec 6>/dev/null
41795 ac_configure_extra_args="$ac_configure_extra_args --silent"
41796fi
41797
41798_ACEOF
41799cat >>$CONFIG_STATUS <<_ACEOF
41800if \$ac_cs_recheck; then
41801 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
41802 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41803fi
41804
41805_ACEOF
41806
41807cat >>$CONFIG_STATUS <<_ACEOF
41808#
41809# INIT-COMMANDS section.
41810#
41811
ceec2216
RL
41812 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41813 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41814 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
41815 LN_S="${LN_S}"
a848cd7e
SC
41816
41817
41818_ACEOF
41819
41820
41821
41822cat >>$CONFIG_STATUS <<\_ACEOF
41823for ac_config_target in $ac_config_targets
41824do
41825 case "$ac_config_target" in
41826 # Handling of arguments.
ceec2216
RL
41827 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
41828 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
41829 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
41830 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
41831 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
41832 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
41833 "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
41834 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
41835echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
41836 { (exit 1); exit 1; }; };;
41837 esac
41838done
41839
41840# If the user did not use the arguments to specify the items to instantiate,
41841# then the envvar interface is used. Set only those that are not.
41842# We use the long form for the default assignment because of an extremely
41843# bizarre bug on SunOS 4.1.3.
41844if $ac_need_defaults; then
41845 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
41846 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
41847 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
41848fi
41849
41850# Have a temporary directory for convenience. Make it in the build tree
41851# simply because there is no reason to put it here, and in addition,
41852# creating and moving files from /tmp can sometimes cause problems.
41853# Create a temporary directory, and hook for its removal unless debugging.
41854$debug ||
41855{
41856 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
41857 trap '{ (exit 1); exit 1; }' 1 2 13 15
41858}
41859
41860# Create a (secure) tmp directory for tmp files.
41861
41862{
41863 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
41864 test -n "$tmp" && test -d "$tmp"
41865} ||
41866{
41867 tmp=./confstat$$-$RANDOM
41868 (umask 077 && mkdir $tmp)
41869} ||
41870{
41871 echo "$me: cannot create a temporary directory in ." >&2
41872 { (exit 1); exit 1; }
41873}
41874
41875_ACEOF
41876
41877cat >>$CONFIG_STATUS <<_ACEOF
41878
41879#
41880# CONFIG_FILES section.
41881#
41882
41883# No need to generate the scripts if there are no CONFIG_FILES.
41884# This happens for instance when ./config.status config.h
41885if test -n "\$CONFIG_FILES"; then
41886 # Protect against being on the right side of a sed subst in config.status.
41887 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
41888 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
41889s,@SHELL@,$SHELL,;t t
41890s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
41891s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
41892s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
41893s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
41894s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
41895s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
41896s,@exec_prefix@,$exec_prefix,;t t
41897s,@prefix@,$prefix,;t t
41898s,@program_transform_name@,$program_transform_name,;t t
41899s,@bindir@,$bindir,;t t
41900s,@sbindir@,$sbindir,;t t
41901s,@libexecdir@,$libexecdir,;t t
41902s,@datadir@,$datadir,;t t
41903s,@sysconfdir@,$sysconfdir,;t t
41904s,@sharedstatedir@,$sharedstatedir,;t t
41905s,@localstatedir@,$localstatedir,;t t
41906s,@libdir@,$libdir,;t t
41907s,@includedir@,$includedir,;t t
41908s,@oldincludedir@,$oldincludedir,;t t
41909s,@infodir@,$infodir,;t t
41910s,@mandir@,$mandir,;t t
41911s,@build_alias@,$build_alias,;t t
41912s,@host_alias@,$host_alias,;t t
41913s,@target_alias@,$target_alias,;t t
41914s,@DEFS@,$DEFS,;t t
41915s,@ECHO_C@,$ECHO_C,;t t
41916s,@ECHO_N@,$ECHO_N,;t t
41917s,@ECHO_T@,$ECHO_T,;t t
41918s,@LIBS@,$LIBS,;t t
41919s,@build@,$build,;t t
41920s,@build_cpu@,$build_cpu,;t t
41921s,@build_vendor@,$build_vendor,;t t
41922s,@build_os@,$build_os,;t t
41923s,@host@,$host,;t t
41924s,@host_cpu@,$host_cpu,;t t
41925s,@host_vendor@,$host_vendor,;t t
41926s,@host_os@,$host_os,;t t
41927s,@target@,$target,;t t
41928s,@target_cpu@,$target_cpu,;t t
41929s,@target_vendor@,$target_vendor,;t t
41930s,@target_os@,$target_os,;t t
41931s,@CC@,$CC,;t t
41932s,@CFLAGS@,$CFLAGS,;t t
41933s,@LDFLAGS@,$LDFLAGS,;t t
41934s,@CPPFLAGS@,$CPPFLAGS,;t t
41935s,@ac_ct_CC@,$ac_ct_CC,;t t
41936s,@EXEEXT@,$EXEEXT,;t t
41937s,@OBJEXT@,$OBJEXT,;t t
41938s,@CPP@,$CPP,;t t
41939s,@EGREP@,$EGREP,;t t
41940s,@CXX@,$CXX,;t t
41941s,@CXXFLAGS@,$CXXFLAGS,;t t
41942s,@ac_ct_CXX@,$ac_ct_CXX,;t t
41943s,@RANLIB@,$RANLIB,;t t
41944s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
41945s,@AR@,$AR,;t t
41946s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
41947s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
41948s,@INSTALL_DATA@,$INSTALL_DATA,;t t
41949s,@STRIP@,$STRIP,;t t
41950s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
41951s,@LN_S@,$LN_S,;t t
41952s,@CXXCPP@,$CXXCPP,;t t
41953s,@subdirs@,$subdirs,;t t
41954s,@PKG_CONFIG@,$PKG_CONFIG,;t t
41955s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
41956s,@GTK_LIBS@,$GTK_LIBS,;t t
41957s,@GTK_CONFIG@,$GTK_CONFIG,;t t
41958s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
41959s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
41960s,@X_CFLAGS@,$X_CFLAGS,;t t
41961s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
41962s,@X_LIBS@,$X_LIBS,;t t
41963s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
41964s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
41965s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
41966s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
41967s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
41968s,@RESCOMP@,$RESCOMP,;t t
41969s,@DEREZ@,$DEREZ,;t t
41970s,@SETFILE@,$SETFILE,;t t
41971s,@LIBICONV@,$LIBICONV,;t t
41972s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
41973s,@SDL_CONFIG@,$SDL_CONFIG,;t t
41974s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
41975s,@SDL_LIBS@,$SDL_LIBS,;t t
41976s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
41977s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
41978s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
41979s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
41980s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
41981s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
41982s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
41983s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
41984s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
41985s,@VENDOR@,$VENDOR,;t t
41986s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
41987s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
41988s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
41989s,@WXUNIV@,$WXUNIV,;t t
41990s,@MONOLITHIC@,$MONOLITHIC,;t t
41991s,@USE_PLUGINS@,$USE_PLUGINS,;t t
41992s,@EXTRALIBS@,$EXTRALIBS,;t t
41993s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
41994s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
41995s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
41996s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
41997s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
41998s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
41999s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
42000s,@UNICODE@,$UNICODE,;t t
42001s,@BUILD@,$BUILD,;t t
42002s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42003s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42004s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42005s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42006s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42007s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42008s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42009s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42010s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42011s,@SET_MAKE@,$SET_MAKE,;t t
42012s,@MAKE_SET@,$MAKE_SET,;t t
42013s,@ac_ct_AR@,$ac_ct_AR,;t t
42014s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42015s,@NM@,$NM,;t t
42016s,@ac_ct_NM@,$ac_ct_NM,;t t
42017s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42018s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42019s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42020s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42021s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42022s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
42023s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42024s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
42025s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42026s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42027s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42028s,@LIBPREFIX@,$LIBPREFIX,;t t
42029s,@LIBEXT@,$LIBEXT,;t t
42030s,@DLLPREFIX@,$DLLPREFIX,;t t
42031s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42032s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42033s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42034s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42035s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42036s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42037s,@PIC_FLAG@,$PIC_FLAG,;t t
42038s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42039s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42040s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42041s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42042s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42043s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42044s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42045s,@GCC_PCH@,$GCC_PCH,;t t
42046s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42047s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42048s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42049s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42050s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42051s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42052s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42053s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42054s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42055s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42056s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42057s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42058s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42059s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42060s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42061s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42062s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42063s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
42064s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
42065s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
42066s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42067s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42068s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42069s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
42070s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
42071s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
42072s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42073s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42074s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42075s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42076s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42077s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42078s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42079s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42080s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42081s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
42082s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42083s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42084s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
ebee3cd0
VS
42085s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42086s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42087s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42088s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
42089s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42090s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42091s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42092s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42093s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42094s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42095s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42096s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42097s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42098s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42099s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42100s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42101s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42102s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42103s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42104s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42105s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42106s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42107s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42108s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42109s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42110s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
42111s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
42112s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42113s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42114s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42115s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42116s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42117s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42118s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42119s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42120s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42121s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42122s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42123s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42124s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42125s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42126s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42127s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42128s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42129s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42130s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42131s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42132s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42133s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42134s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42135s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42136s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42137s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42138s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42139s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42140s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42141s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42142s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42143s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42144s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42145s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
a848cd7e
SC
42146s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42147s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42148s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42149s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42150s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42151s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42152s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
a848cd7e
SC
42153s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42154s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42155s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42156s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42157s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42158s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42159s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42160s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
9a8f0513
VS
42161s,@COND_TOOLKIT_MAC_WXUNIV_0@,$COND_TOOLKIT_MAC_WXUNIV_0,;t t
42162s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
42163s,@COND_TOOLKIT_PM_WXUNIV_0@,$COND_TOOLKIT_PM_WXUNIV_0,;t t
ceec2216 42164s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42165s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42166s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42167s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42168s,@USE_GUI@,$USE_GUI,;t t
42169s,@AFMINSTALL@,$AFMINSTALL,;t t
42170s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42171s,@TOOLKIT@,$TOOLKIT,;t t
42172s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42173s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42174s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42175s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42176s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42177s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42178s,@WIDGET_SET@,$WIDGET_SET,;t t
42179s,@WX_RELEASE@,$WX_RELEASE,;t t
42180s,@WX_VERSION@,$WX_VERSION,;t t
42181s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42182s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42183s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42184s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42185s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42186s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42187s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42188s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42189s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42190s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42191s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42192s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42193s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42194s,@DISTDIR@,$DISTDIR,;t t
42195s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42196s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42197s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42198s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42199s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42200s,@RESFLAGS@,$RESFLAGS,;t t
42201s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42202s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42203s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42204s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42205s,@MACRESCOMP@,$MACRESCOMP,;t t
42206s,@MACSETFILE@,$MACSETFILE,;t t
42207s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42208s,@GCC@,$GCC,;t t
a848cd7e 42209s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42210s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42211s,@LIBOBJS@,$LIBOBJS,;t t
42212s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42213CEOF
42214
42215_ACEOF
42216
42217 cat >>$CONFIG_STATUS <<\_ACEOF
42218 # Split the substitutions into bite-sized pieces for seds with
42219 # small command number limits, like on Digital OSF/1 and HP-UX.
42220 ac_max_sed_lines=48
42221 ac_sed_frag=1 # Number of current file.
42222 ac_beg=1 # First line for current file.
42223 ac_end=$ac_max_sed_lines # Line after last line for current file.
42224 ac_more_lines=:
42225 ac_sed_cmds=
42226 while $ac_more_lines; do
42227 if test $ac_beg -gt 1; then
42228 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42229 else
42230 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42231 fi
42232 if test ! -s $tmp/subs.frag; then
42233 ac_more_lines=false
42234 else
42235 # The purpose of the label and of the branching condition is to
42236 # speed up the sed processing (if there are no `@' at all, there
42237 # is no need to browse any of the substitutions).
42238 # These are the two extra sed commands mentioned above.
42239 (echo ':t
42240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42241 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42242 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42243 else
ac1cb8d3 42244 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42245 fi
42246 ac_sed_frag=`expr $ac_sed_frag + 1`
42247 ac_beg=$ac_end
42248 ac_end=`expr $ac_end + $ac_max_sed_lines`
42249 fi
42250 done
42251 if test -z "$ac_sed_cmds"; then
42252 ac_sed_cmds=cat
42253 fi
42254fi # test -n "$CONFIG_FILES"
42255
42256_ACEOF
42257cat >>$CONFIG_STATUS <<\_ACEOF
42258for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42259 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42260 case $ac_file in
42261 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42262 cat >$tmp/stdin
42263 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42265 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42266 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42267 * ) ac_file_in=$ac_file.in ;;
42268 esac
42269
42270 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42271 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42272$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42273 X"$ac_file" : 'X\(//\)[^/]' \| \
42274 X"$ac_file" : 'X\(//\)$' \| \
42275 X"$ac_file" : 'X\(/\)' \| \
42276 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42277echo X"$ac_file" |
42278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42279 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42280 /^X\(\/\/\)$/{ s//\1/; q; }
42281 /^X\(\/\).*/{ s//\1/; q; }
42282 s/.*/./; q'`
42283 { if $as_mkdir_p; then
42284 mkdir -p "$ac_dir"
42285 else
42286 as_dir="$ac_dir"
42287 as_dirs=
42288 while test ! -d "$as_dir"; do
42289 as_dirs="$as_dir $as_dirs"
42290 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42292 X"$as_dir" : 'X\(//\)[^/]' \| \
42293 X"$as_dir" : 'X\(//\)$' \| \
42294 X"$as_dir" : 'X\(/\)' \| \
42295 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42296echo X"$as_dir" |
42297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42298 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42299 /^X\(\/\/\)$/{ s//\1/; q; }
42300 /^X\(\/\).*/{ s//\1/; q; }
42301 s/.*/./; q'`
42302 done
42303 test ! -n "$as_dirs" || mkdir $as_dirs
42304 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42305echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42306 { (exit 1); exit 1; }; }; }
42307
42308 ac_builddir=.
42309
42310if test "$ac_dir" != .; then
42311 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42312 # A "../" for each directory in $ac_dir_suffix.
42313 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42314else
42315 ac_dir_suffix= ac_top_builddir=
42316fi
42317
42318case $srcdir in
42319 .) # No --srcdir option. We are building in place.
42320 ac_srcdir=.
42321 if test -z "$ac_top_builddir"; then
42322 ac_top_srcdir=.
42323 else
42324 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42325 fi ;;
42326 [\\/]* | ?:[\\/]* ) # Absolute path.
42327 ac_srcdir=$srcdir$ac_dir_suffix;
42328 ac_top_srcdir=$srcdir ;;
42329 *) # Relative path.
42330 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42331 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42332esac
ac1cb8d3
VS
42333
42334# Do not use `cd foo && pwd` to compute absolute paths, because
42335# the directories may not exist.
42336case `pwd` in
42337.) ac_abs_builddir="$ac_dir";;
42338*)
42339 case "$ac_dir" in
42340 .) ac_abs_builddir=`pwd`;;
42341 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42342 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42343 esac;;
42344esac
42345case $ac_abs_builddir in
42346.) ac_abs_top_builddir=${ac_top_builddir}.;;
42347*)
42348 case ${ac_top_builddir}. in
42349 .) ac_abs_top_builddir=$ac_abs_builddir;;
42350 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42351 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42352 esac;;
42353esac
42354case $ac_abs_builddir in
42355.) ac_abs_srcdir=$ac_srcdir;;
42356*)
42357 case $ac_srcdir in
42358 .) ac_abs_srcdir=$ac_abs_builddir;;
42359 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42360 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42361 esac;;
42362esac
42363case $ac_abs_builddir in
42364.) ac_abs_top_srcdir=$ac_top_srcdir;;
42365*)
42366 case $ac_top_srcdir in
42367 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42368 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42369 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42370 esac;;
42371esac
a848cd7e
SC
42372
42373
42374 case $INSTALL in
42375 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42376 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42377 esac
42378
a848cd7e
SC
42379 # Let's still pretend it is `configure' which instantiates (i.e., don't
42380 # use $as_me), people would be surprised to read:
42381 # /* config.h. Generated by config.status. */
42382 if test x"$ac_file" = x-; then
42383 configure_input=
42384 else
42385 configure_input="$ac_file. "
42386 fi
42387 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 42388 sed 's,.*/,,'` by configure."
a848cd7e
SC
42389
42390 # First look for the input files in the build tree, otherwise in the
42391 # src tree.
42392 ac_file_inputs=`IFS=:
42393 for f in $ac_file_in; do
42394 case $f in
42395 -) echo $tmp/stdin ;;
42396 [\\/$]*)
ac1cb8d3
VS
42397 # Absolute (can't be DOS-style, as IFS=:)
42398 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42399echo "$as_me: error: cannot find input file: $f" >&2;}
42400 { (exit 1); exit 1; }; }
ac1cb8d3 42401 echo "$f";;
a848cd7e 42402 *) # Relative
ac1cb8d3
VS
42403 if test -f "$f"; then
42404 # Build tree
42405 echo "$f"
42406 elif test -f "$srcdir/$f"; then
42407 # Source tree
42408 echo "$srcdir/$f"
42409 else
42410 # /dev/null tree
42411 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42412echo "$as_me: error: cannot find input file: $f" >&2;}
42413 { (exit 1); exit 1; }; }
ac1cb8d3 42414 fi;;
a848cd7e
SC
42415 esac
42416 done` || { (exit 1); exit 1; }
7714864e
RL
42417
42418 if test x"$ac_file" != x-; then
42419 { echo "$as_me:$LINENO: creating $ac_file" >&5
42420echo "$as_me: creating $ac_file" >&6;}
42421 rm -f "$ac_file"
42422 fi
a848cd7e
SC
42423_ACEOF
42424cat >>$CONFIG_STATUS <<_ACEOF
42425 sed "$ac_vpsub
42426$extrasub
42427_ACEOF
42428cat >>$CONFIG_STATUS <<\_ACEOF
42429:t
42430/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
42431s,@configure_input@,$configure_input,;t t
42432s,@srcdir@,$ac_srcdir,;t t
42433s,@abs_srcdir@,$ac_abs_srcdir,;t t
42434s,@top_srcdir@,$ac_top_srcdir,;t t
42435s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
42436s,@builddir@,$ac_builddir,;t t
42437s,@abs_builddir@,$ac_abs_builddir,;t t
42438s,@top_builddir@,$ac_top_builddir,;t t
42439s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
42440s,@INSTALL@,$ac_INSTALL,;t t
42441" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
42442 rm -f $tmp/stdin
42443 if test x"$ac_file" != x-; then
42444 mv $tmp/out $ac_file
42445 else
42446 cat $tmp/out
42447 rm -f $tmp/out
42448 fi
42449
ceec2216
RL
42450 # Run the commands associated with the file.
42451 case $ac_file in
42452 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
42453 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
42454 esac
a848cd7e
SC
42455done
42456_ACEOF
42457cat >>$CONFIG_STATUS <<\_ACEOF
42458
42459#
42460# CONFIG_HEADER section.
42461#
42462
42463# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
42464# NAME is the cpp macro being defined and VALUE is the value it is being given.
42465#
42466# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
42467ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
42468ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
42469ac_dC=' '
42470ac_dD=',;t'
42471# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 42472ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
42473ac_uB='$,\1#\2define\3'
42474ac_uC=' '
42475ac_uD=',;t'
42476
42477for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
42478 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42479 case $ac_file in
42480 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42481 cat >$tmp/stdin
42482 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42483 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42484 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42485 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42486 * ) ac_file_in=$ac_file.in ;;
42487 esac
42488
42489 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
42490echo "$as_me: creating $ac_file" >&6;}
42491
42492 # First look for the input files in the build tree, otherwise in the
42493 # src tree.
42494 ac_file_inputs=`IFS=:
42495 for f in $ac_file_in; do
42496 case $f in
42497 -) echo $tmp/stdin ;;
42498 [\\/$]*)
ac1cb8d3
VS
42499 # Absolute (can't be DOS-style, as IFS=:)
42500 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42501echo "$as_me: error: cannot find input file: $f" >&2;}
42502 { (exit 1); exit 1; }; }
ac1cb8d3
VS
42503 # Do quote $f, to prevent DOS paths from being IFS'd.
42504 echo "$f";;
a848cd7e 42505 *) # Relative
ac1cb8d3
VS
42506 if test -f "$f"; then
42507 # Build tree
42508 echo "$f"
42509 elif test -f "$srcdir/$f"; then
42510 # Source tree
42511 echo "$srcdir/$f"
42512 else
42513 # /dev/null tree
42514 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
42515echo "$as_me: error: cannot find input file: $f" >&2;}
42516 { (exit 1); exit 1; }; }
ac1cb8d3 42517 fi;;
a848cd7e
SC
42518 esac
42519 done` || { (exit 1); exit 1; }
42520 # Remove the trailing spaces.
ac1cb8d3 42521 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
42522
42523_ACEOF
42524
42525# Transform confdefs.h into two sed scripts, `conftest.defines' and
42526# `conftest.undefs', that substitutes the proper values into
42527# config.h.in to produce config.h. The first handles `#define'
42528# templates, and the second `#undef' templates.
42529# And first: Protect against being on the right side of a sed subst in
42530# config.status. Protect against being in an unquoted here document
42531# in config.status.
42532rm -f conftest.defines conftest.undefs
42533# Using a here document instead of a string reduces the quoting nightmare.
42534# Putting comments in sed scripts is not portable.
42535#
42536# `end' is used to avoid that the second main sed command (meant for
42537# 0-ary CPP macros) applies to n-ary macro definitions.
42538# See the Autoconf documentation for `clear'.
42539cat >confdef2sed.sed <<\_ACEOF
42540s/[\\&,]/\\&/g
42541s,[\\$`],\\&,g
42542t clear
42543: clear
ac1cb8d3 42544s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 42545t end
ac1cb8d3 42546s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
42547: end
42548_ACEOF
42549# If some macros were called several times there might be several times
42550# the same #defines, which is useless. Nevertheless, we may not want to
42551# sort them, since we want the *last* AC-DEFINE to be honored.
42552uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
42553sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
42554rm -f confdef2sed.sed
42555
42556# This sed command replaces #undef with comments. This is necessary, for
42557# example, in the case of _POSIX_SOURCE, which is predefined and required
42558# on some systems where configure will not decide to define it.
42559cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 42560s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
42561_ACEOF
42562
42563# Break up conftest.defines because some shells have a limit on the size
42564# of here documents, and old seds have small limits too (100 cmds).
42565echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 42566echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
42567echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
42568echo ' :' >>$CONFIG_STATUS
42569rm -f conftest.tail
42570while grep . conftest.defines >/dev/null
42571do
42572 # Write a limited-size here document to $tmp/defines.sed.
42573 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
42574 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 42575 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
42576 # Work around the forget-to-reset-the-flag bug.
42577 echo 't clr' >>$CONFIG_STATUS
42578 echo ': clr' >>$CONFIG_STATUS
42579 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
42580 echo 'CEOF
42581 sed -f $tmp/defines.sed $tmp/in >$tmp/out
42582 rm -f $tmp/in
42583 mv $tmp/out $tmp/in
42584' >>$CONFIG_STATUS
42585 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
42586 rm -f conftest.defines
42587 mv conftest.tail conftest.defines
42588done
42589rm -f conftest.defines
42590echo ' fi # grep' >>$CONFIG_STATUS
42591echo >>$CONFIG_STATUS
42592
42593# Break up conftest.undefs because some shells have a limit on the size
42594# of here documents, and old seds have small limits too (100 cmds).
42595echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
42596rm -f conftest.tail
42597while grep . conftest.undefs >/dev/null
42598do
42599 # Write a limited-size here document to $tmp/undefs.sed.
42600 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
42601 # Speed up: don't consider the non `#undef'
ac1cb8d3 42602 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
42603 # Work around the forget-to-reset-the-flag bug.
42604 echo 't clr' >>$CONFIG_STATUS
42605 echo ': clr' >>$CONFIG_STATUS
42606 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
42607 echo 'CEOF
42608 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
42609 rm -f $tmp/in
42610 mv $tmp/out $tmp/in
42611' >>$CONFIG_STATUS
42612 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
42613 rm -f conftest.undefs
42614 mv conftest.tail conftest.undefs
42615done
42616rm -f conftest.undefs
42617
42618cat >>$CONFIG_STATUS <<\_ACEOF
42619 # Let's still pretend it is `configure' which instantiates (i.e., don't
42620 # use $as_me), people would be surprised to read:
42621 # /* config.h. Generated by config.status. */
42622 if test x"$ac_file" = x-; then
42623 echo "/* Generated by configure. */" >$tmp/config.h
42624 else
42625 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
42626 fi
42627 cat $tmp/in >>$tmp/config.h
42628 rm -f $tmp/in
42629 if test x"$ac_file" != x-; then
42630 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
42631 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42632echo "$as_me: $ac_file is unchanged" >&6;}
42633 else
42634 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42635$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42636 X"$ac_file" : 'X\(//\)[^/]' \| \
42637 X"$ac_file" : 'X\(//\)$' \| \
42638 X"$ac_file" : 'X\(/\)' \| \
42639 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42640echo X"$ac_file" |
42641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42642 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42643 /^X\(\/\/\)$/{ s//\1/; q; }
42644 /^X\(\/\).*/{ s//\1/; q; }
42645 s/.*/./; q'`
42646 { if $as_mkdir_p; then
42647 mkdir -p "$ac_dir"
42648 else
42649 as_dir="$ac_dir"
42650 as_dirs=
42651 while test ! -d "$as_dir"; do
42652 as_dirs="$as_dir $as_dirs"
42653 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42654$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42655 X"$as_dir" : 'X\(//\)[^/]' \| \
42656 X"$as_dir" : 'X\(//\)$' \| \
42657 X"$as_dir" : 'X\(/\)' \| \
42658 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42659echo X"$as_dir" |
42660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42661 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42662 /^X\(\/\/\)$/{ s//\1/; q; }
42663 /^X\(\/\).*/{ s//\1/; q; }
42664 s/.*/./; q'`
42665 done
42666 test ! -n "$as_dirs" || mkdir $as_dirs
42667 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42668echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42669 { (exit 1); exit 1; }; }; }
42670
42671 rm -f $ac_file
42672 mv $tmp/config.h $ac_file
42673 fi
42674 else
42675 cat $tmp/config.h
42676 rm -f $tmp/config.h
42677 fi
42678done
42679_ACEOF
42680cat >>$CONFIG_STATUS <<\_ACEOF
42681
42682#
42683# CONFIG_COMMANDS section.
42684#
42685for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
42686 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
42687 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
42688 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
42689$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42690 X"$ac_dest" : 'X\(//\)[^/]' \| \
42691 X"$ac_dest" : 'X\(//\)$' \| \
42692 X"$ac_dest" : 'X\(/\)' \| \
42693 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42694echo X"$ac_dest" |
42695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42697 /^X\(\/\/\)$/{ s//\1/; q; }
42698 /^X\(\/\).*/{ s//\1/; q; }
42699 s/.*/./; q'`
ac1cb8d3
VS
42700 { if $as_mkdir_p; then
42701 mkdir -p "$ac_dir"
42702 else
42703 as_dir="$ac_dir"
42704 as_dirs=
42705 while test ! -d "$as_dir"; do
42706 as_dirs="$as_dir $as_dirs"
42707 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42708$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42709 X"$as_dir" : 'X\(//\)[^/]' \| \
42710 X"$as_dir" : 'X\(//\)$' \| \
42711 X"$as_dir" : 'X\(/\)' \| \
42712 . : '\(.\)' 2>/dev/null ||
42713echo X"$as_dir" |
42714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42716 /^X\(\/\/\)$/{ s//\1/; q; }
42717 /^X\(\/\).*/{ s//\1/; q; }
42718 s/.*/./; q'`
42719 done
42720 test ! -n "$as_dirs" || mkdir $as_dirs
42721 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42722echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42723 { (exit 1); exit 1; }; }; }
42724
a848cd7e
SC
42725 ac_builddir=.
42726
42727if test "$ac_dir" != .; then
42728 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42729 # A "../" for each directory in $ac_dir_suffix.
42730 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42731else
42732 ac_dir_suffix= ac_top_builddir=
42733fi
42734
42735case $srcdir in
42736 .) # No --srcdir option. We are building in place.
42737 ac_srcdir=.
42738 if test -z "$ac_top_builddir"; then
42739 ac_top_srcdir=.
42740 else
42741 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42742 fi ;;
42743 [\\/]* | ?:[\\/]* ) # Absolute path.
42744 ac_srcdir=$srcdir$ac_dir_suffix;
42745 ac_top_srcdir=$srcdir ;;
42746 *) # Relative path.
42747 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42748 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42749esac
ac1cb8d3
VS
42750
42751# Do not use `cd foo && pwd` to compute absolute paths, because
42752# the directories may not exist.
42753case `pwd` in
42754.) ac_abs_builddir="$ac_dir";;
42755*)
42756 case "$ac_dir" in
42757 .) ac_abs_builddir=`pwd`;;
42758 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42759 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42760 esac;;
42761esac
42762case $ac_abs_builddir in
42763.) ac_abs_top_builddir=${ac_top_builddir}.;;
42764*)
42765 case ${ac_top_builddir}. in
42766 .) ac_abs_top_builddir=$ac_abs_builddir;;
42767 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42768 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42769 esac;;
42770esac
42771case $ac_abs_builddir in
42772.) ac_abs_srcdir=$ac_srcdir;;
42773*)
42774 case $ac_srcdir in
42775 .) ac_abs_srcdir=$ac_abs_builddir;;
42776 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42777 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42778 esac;;
42779esac
42780case $ac_abs_builddir in
42781.) ac_abs_top_srcdir=$ac_top_srcdir;;
42782*)
42783 case $ac_top_srcdir in
42784 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42785 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42786 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42787 esac;;
42788esac
a848cd7e
SC
42789
42790
42791 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
42792echo "$as_me: executing $ac_dest commands" >&6;}
42793 case $ac_dest in
ceec2216
RL
42794 wx-config ) rm -f wx-config
42795 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
42796 ;;
a848cd7e
SC
42797 esac
42798done
42799_ACEOF
42800
42801cat >>$CONFIG_STATUS <<\_ACEOF
42802
42803{ (exit 0); exit 0; }
42804_ACEOF
42805chmod +x $CONFIG_STATUS
42806ac_clean_files=$ac_clean_files_save
42807
42808
42809# configure is writing to config.log, and then calls config.status.
42810# config.status does its own redirection, appending to config.log.
42811# Unfortunately, on DOS this fails, as config.log is still kept open
42812# by configure, so config.status won't be able to write to it; its
42813# output is simply discarded. So we exec the FD to /dev/null,
42814# effectively closing config.log, so it can be properly (re)opened and
42815# appended to by config.status. When coming back to configure, we
42816# need to make the FD available again.
42817if test "$no_create" != yes; then
42818 ac_cs_success=:
42819 ac_config_status_args=
42820 test "$silent" = yes &&
42821 ac_config_status_args="$ac_config_status_args --quiet"
42822 exec 5>/dev/null
42823 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
42824 exec 5>>config.log
42825 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
42826 # would make configure fail if this is the last instruction.
42827 $ac_cs_success || { (exit 1); exit 1; }
42828fi
42829
42830#
42831# CONFIG_SUBDIRS section.
42832#
42833if test "$no_recursion" != yes; then
42834
42835 # Remove --cache-file and --srcdir arguments so they do not pile up.
42836 ac_sub_configure_args=
42837 ac_prev=
42838 for ac_arg in $ac_configure_args; do
42839 if test -n "$ac_prev"; then
42840 ac_prev=
42841 continue
42842 fi
42843 case $ac_arg in
42844 -cache-file | --cache-file | --cache-fil | --cache-fi \
42845 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
42846 ac_prev=cache_file ;;
42847 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
42848 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
42849 | --c=*)
42850 ;;
42851 --config-cache | -C)
42852 ;;
42853 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
42854 ac_prev=srcdir ;;
42855 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
42856 ;;
42857 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
42858 ac_prev=prefix ;;
42859 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
42860 ;;
42861 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
42862 esac
42863 done
42864
42865 # Always prepend --prefix to ensure using the same prefix
42866 # in subdir configurations.
42867 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
42868
42869 ac_popdir=`pwd`
42870 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42871
42872 # Do not complain, so a configure script can configure whichever
42873 # parts of a large source tree are present.
42874 test -d $srcdir/$ac_dir || continue
42875
42876 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
42877echo "$as_me: configuring in $ac_dir" >&6;}
42878 { if $as_mkdir_p; then
42879 mkdir -p "$ac_dir"
42880 else
42881 as_dir="$ac_dir"
42882 as_dirs=
42883 while test ! -d "$as_dir"; do
42884 as_dirs="$as_dir $as_dirs"
42885 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42886$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42887 X"$as_dir" : 'X\(//\)[^/]' \| \
42888 X"$as_dir" : 'X\(//\)$' \| \
42889 X"$as_dir" : 'X\(/\)' \| \
42890 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42891echo X"$as_dir" |
42892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42893 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42894 /^X\(\/\/\)$/{ s//\1/; q; }
42895 /^X\(\/\).*/{ s//\1/; q; }
42896 s/.*/./; q'`
42897 done
42898 test ! -n "$as_dirs" || mkdir $as_dirs
42899 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42900echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42901 { (exit 1); exit 1; }; }; }
42902
42903 ac_builddir=.
42904
42905if test "$ac_dir" != .; then
42906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42907 # A "../" for each directory in $ac_dir_suffix.
42908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42909else
42910 ac_dir_suffix= ac_top_builddir=
42911fi
42912
42913case $srcdir in
42914 .) # No --srcdir option. We are building in place.
42915 ac_srcdir=.
42916 if test -z "$ac_top_builddir"; then
42917 ac_top_srcdir=.
42918 else
42919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42920 fi ;;
42921 [\\/]* | ?:[\\/]* ) # Absolute path.
42922 ac_srcdir=$srcdir$ac_dir_suffix;
42923 ac_top_srcdir=$srcdir ;;
42924 *) # Relative path.
42925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42927esac
ac1cb8d3
VS
42928
42929# Do not use `cd foo && pwd` to compute absolute paths, because
42930# the directories may not exist.
42931case `pwd` in
42932.) ac_abs_builddir="$ac_dir";;
42933*)
42934 case "$ac_dir" in
42935 .) ac_abs_builddir=`pwd`;;
42936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42938 esac;;
42939esac
42940case $ac_abs_builddir in
42941.) ac_abs_top_builddir=${ac_top_builddir}.;;
42942*)
42943 case ${ac_top_builddir}. in
42944 .) ac_abs_top_builddir=$ac_abs_builddir;;
42945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42947 esac;;
42948esac
42949case $ac_abs_builddir in
42950.) ac_abs_srcdir=$ac_srcdir;;
42951*)
42952 case $ac_srcdir in
42953 .) ac_abs_srcdir=$ac_abs_builddir;;
42954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42956 esac;;
42957esac
42958case $ac_abs_builddir in
42959.) ac_abs_top_srcdir=$ac_top_srcdir;;
42960*)
42961 case $ac_top_srcdir in
42962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42965 esac;;
42966esac
a848cd7e
SC
42967
42968
42969 cd $ac_dir
42970
42971 # Check for guested configure; otherwise get Cygnus style configure.
42972 if test -f $ac_srcdir/configure.gnu; then
42973 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
42974 elif test -f $ac_srcdir/configure; then
42975 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
42976 elif test -f $ac_srcdir/configure.in; then
42977 ac_sub_configure=$ac_configure
42978 else
42979 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
42980echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
42981 ac_sub_configure=
42982 fi
42983
42984 # The recursion is here.
42985 if test -n "$ac_sub_configure"; then
42986 # Make the cache file name correct relative to the subdirectory.
42987 case $cache_file in
42988 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
42989 *) # Relative path.
ac1cb8d3 42990 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
42991 esac
42992
42993 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
42994echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
42995 # The eval makes quoting arguments work.
42996 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
42997 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
42998 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
42999echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43000 { (exit 1); exit 1; }; }
43001 fi
43002
7714864e 43003 cd "$ac_popdir"
a848cd7e
SC
43004 done
43005fi
43006
43007
43008echo
77ffb593 43009echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43010echo ""
4d4ff94c 43011echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43012echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43013
77ffb593
JS
43014echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43015echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43016echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43017
77ffb593
JS
43018echo " What level of wxWidgets compatibility should be enabled?"
43019echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43020echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43021
77ffb593 43022echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43023echo " jpeg ${wxUSE_LIBJPEG-none}"
43024echo " png ${wxUSE_LIBPNG-none}"
43025echo " regex ${wxUSE_REGEX}"
43026echo " tiff ${wxUSE_LIBTIFF-none}"
43027if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43028echo " xpm ${wxUSE_LIBXPM-none}"
43029fi
43030echo " zlib ${wxUSE_ZLIB}"
43031echo " odbc ${wxUSE_ODBC}"
43032echo " expat ${wxUSE_EXPAT}"
43033echo " libmspack ${wxUSE_LIBMSPACK}"
43034echo " sdl ${wxUSE_LIBSDL}"
43035
43036echo ""
43037