]> git.saurik.com Git - wxWidgets.git/blame - configure
Adjust the bounding box of the labels to client coordinants
[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"
1e6eb025 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 X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOFT2_CFLAGS PANGOFT2_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_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 EXTRALIBS_GNOMEPRINT 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_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS 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_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_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_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_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_ COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 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_MACOS_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_ COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1 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_OPENGL_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_0 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 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
ffa0583f 894 --disable-rpath disable use of rpath for uninstalled builds
a848cd7e
SC
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)
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
a848cd7e
SC
908 --enable-cmdline use wxCmdLineParser class
909 --enable-datetime use wxDateTime class
910 --enable-dialupman use dialup network classes
911 --enable-dynlib use wxLibrary class for DLL loading
912 --enable-dynamicloader use (new) wxDynamicLibrary class
913 --enable-exceptions build exception-safe library
914 --enable-ffile use wxFFile class
915 --enable-file use wxFile class
916 --enable-filesystem use virtual file systems classes
917 --enable-fontmap use font encodings conversion classes
918 --enable-fs_inet use virtual HTTP/FTP filesystems
919 --enable-fs_zip use virtual ZIP filesystems
920 --enable-geometry use geometry class
921 --enable-log use logging system
922 --enable-longlong use wxLongLong class
923 --enable-mimetype use wxMimeTypesManager
924 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
925 --enable-snglinst use wxSingleInstanceChecker class
926 --enable-streams use wxStream etc classes
927 --enable-std_iostreams use standard C++ stream classes
928 --enable-stopwatch use wxStopWatch class
929 --enable-sysoptions use wxSystemOptions
930 --enable-textbuf use wxTextBuffer class
931 --enable-textfile use wxTextFile class
932 --enable-timer use wxTimer class
933 --enable-unicode compile wxString with Unicode support
934 --enable-sound use wxSound class
3b57de8b 935 --enable-mediactrl use wxMediaCtrl class
77ffb593 936 --enable-wxprintfv use wxWidgets implementation of vprintf()
a848cd7e 937 --enable-zipstream use wxZipInputStream
a848cd7e
SC
938 --enable-url use wxURL class
939 --enable-protocol use wxProtocol class
940 --enable-protocol-http HTTP support in wxProtocol
941 --enable-protocol-ftp FTP support in wxProtocol
942 --enable-protocol-file FILE support in wxProtocol
943 --enable-threads use threads
944 --enable-docview use document view architecture
945 --enable-help use help subsystem
946 --enable-mshtmlhelp use MS HTML Help (win32)
947 --enable-html use wxHTML sub-library
948 --enable-htmlhelp use wxHTML-based help
9a8f0513 949 --enable-xrc use XRC resources sub-library
a848cd7e
SC
950 --enable-constraints use layout-constraints system
951 --enable-printarch use printing architecture
952 --enable-mdi use multiple document interface architecture
8a7b1113 953 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
954 --enable-loggui use standard GUI logger
955 --enable-logwin use wxLogWindow
956 --enable-logdialog use wxLogDialog
646b6ec1 957 --enable-webkit use wxWebKitCtrl (Mac)
a848cd7e
SC
958 --enable-postscript use wxPostscriptDC device context (default for gtk+)
959 --enable-prologio not available; see contrib
960 --enable-resources not available; see contrib
961 --enable-clipboard use wxClipboard class
962 --enable-dnd use Drag'n'Drop classes
963 --enable-metafile use win32 metafiles
964 --enable-controls use all usual controls
965 --enable-accel use accelerators
966 --enable-button use wxButton class
967 --enable-bmpbutton use wxBitmapButton class
968 --enable-calendar use wxCalendarCtrl class
969 --enable-caret use wxCaret class
970 --enable-checkbox use wxCheckBox class
971 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
972 --enable-choice use wxChoice class
92bbdbcd 973 --enable-choicebook use wxChoicebook class
a848cd7e
SC
974 --enable-combobox use wxComboBox class
975 --enable-display use wxDisplay class
976 --enable-gauge use wxGauge class
977 --enable-grid use wxGrid class
978 --enable-imaglist use wxImageList class
979 --enable-listbook use wxListbook class
980 --enable-listbox use wxListBox class
981 --enable-listctrl use wxListCtrl class
982 --enable-notebook use wxNotebook class
983 --enable-radiobox use wxRadioBox class
984 --enable-radiobtn use wxRadioButton class
985 --enable-sash use wxSashWindow class
986 --enable-scrollbar use wxScrollBar class and scrollable windows
987 --enable-slider use wxSlider class
988 --enable-spinbtn use wxSpinButton class
989 --enable-spinctrl use wxSpinCtrl class
990 --enable-splitter use wxSplitterWindow class
991 --enable-statbmp use wxStaticBitmap class
992 --enable-statbox use wxStaticBox class
993 --enable-statline use wxStaticLine class
994 --enable-stattext use wxStaticText class
995 --enable-statusbar use wxStatusBar class
996 --enable-tabdialog use wxTabControl class
997 --enable-textctrl use wxTextCtrl class
998 --enable-togglebtn use wxToggleButton class
999 --enable-toolbar use wxToolBar class
1000 --enable-tbarnative use native wxToolBar class
1001 --enable-tbarsmpl use wxToolBarSimple class
1002 --enable-treectrl use wxTreeCtrl class
1003 --enable-tipwindow use wxTipWindow class
1004 --enable-popupwin use wxPopUpWindow class
1005 --enable-commondlg use all common dialogs
1006 --enable-choicedlg use wxChoiceDialog
1007 --enable-coldlg use wxColourDialog
1008 --enable-filedlg use wxFileDialog
1009 --enable-finddlg use wxFindReplaceDialog
1010 --enable-fontdlg use wxFontDialog
1011 --enable-dirdlg use wxDirDialog
1012 --enable-msgdlg use wxMessageDialog
1013 --enable-numberdlg use wxNumberEntryDialog
1014 --enable-splash use wxSplashScreen
1015 --enable-textdlg use wxTextDialog
1016 --enable-tipdlg use startup tips
1017 --enable-progressdlg use wxProgressDialog
1018 --enable-wizarddlg use wxWizard
1019 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1020 --enable-miniframe use wxMiniFrame class
1021 --enable-tooltips use wxToolTip class
1022 --enable-splines use spline drawing code
1023 --enable-validators use wxValidator and derived classes
1024 --enable-busyinfo use wxBusyInfo
1025 --enable-joystick use wxJoystick (Linux only)
1026 --enable-metafiles use wxMetaFile (Windows only)
1027 --enable-dragimage use wxDragImage
1028 --enable-accessibility enable accessibility support
1029 --enable-palette use wxPalette class
1030 --enable-image use wxImage class
1031 --enable-gif use gif images (GIF file format)
1032 --enable-pcx use pcx images (PCX file format)
1033 --enable-iff use iff images (IFF file format)
1034 --enable-pnm use pnm images (PNM file format)
1035 --enable-xpm use xpm images (XPM file format)
1036 --enable-icocur use Windows ICO and CUR formats
77ffb593 1037 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1038 --enable-vendor=VENDOR vendor name (win32 DLL only)
1039 --disable-largefile omit support for large files
1040 --disable-gtktest do not try to compile and run a test GTK+ program
1041 --disable-gtktest Do not try to compile and run a test GTK program
1042 --disable-sdltest Do not try to compile and run a test SDL program
1043 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1044 --disable-precomp-headers
1045 don't use precompiled headers even if compiler can
a848cd7e
SC
1046
1047Optional Packages:
1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1050 --with-gtk use GTK+
1051 --with-motif use Motif/Lesstif
1052 --with-mac use Mac OS X
1053 --with-cocoa use Cocoa
1054 --with-wine use Wine
1055 --with-msw use MS-Windows
1056 --with-pm use OS/2 Presentation Manager
1057 --with-mgl use SciTech MGL
1058 --with-microwin use MicroWindows
1059 --with-x11 use X11
1060 --with-libpng use libpng (PNG image format)
1061 --with-libjpeg use libjpeg (JPEG file format)
1062 --with-libtiff use libtiff (TIFF file format)
1063 --with-libxpm use libxpm (XPM file format)
1064 --with-libmspack use libmspack (CHM help files loading)
1065 --with-sdl use SDL for audio on Unix
d51253e8 1066 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1067 --with-opengl use OpenGL (or Mesa)
1068 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1069 --with-regex enable support for wxRegEx class
1070 --with-zlib use zlib for LZW compression
1071 --with-odbc use the IODBC and wxODBC classes
1072 --with-expat enable XML support using expat parser
ceec2216 1073 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1074 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1075 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1076 --with-x use the X Window System
1077 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1078 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1079 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1080 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1081 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1082
1083Some influential environment variables:
dcc1b6ad
VS
1084 CC C compiler command
1085 CFLAGS C compiler flags
1086 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1087 nonstandard directory <lib dir>
1088 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1089 headers in a nonstandard directory <include dir>
1090 CPP C preprocessor
1091 CXX C++ compiler command
1092 CXXFLAGS C++ compiler flags
1093 CXXCPP C++ preprocessor
a848cd7e
SC
1094
1095Use these variables to override the choices made by `configure' or to help
1096it to find libraries and programs with nonstandard names/locations.
1097
77ffb593 1098Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1099_ACEOF
1100fi
1101
1102if test "$ac_init_help" = "recursive"; then
1103 # If there are subdirs, report their specific --help.
1104 ac_popdir=`pwd`
1105 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1106 test -d $ac_dir || continue
1107 ac_builddir=.
1108
1109if test "$ac_dir" != .; then
1110 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1111 # A "../" for each directory in $ac_dir_suffix.
1112 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1113else
1114 ac_dir_suffix= ac_top_builddir=
1115fi
1116
1117case $srcdir in
1118 .) # No --srcdir option. We are building in place.
1119 ac_srcdir=.
1120 if test -z "$ac_top_builddir"; then
1121 ac_top_srcdir=.
1122 else
1123 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1124 fi ;;
1125 [\\/]* | ?:[\\/]* ) # Absolute path.
1126 ac_srcdir=$srcdir$ac_dir_suffix;
1127 ac_top_srcdir=$srcdir ;;
1128 *) # Relative path.
1129 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1130 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1131esac
ac1cb8d3
VS
1132
1133# Do not use `cd foo && pwd` to compute absolute paths, because
1134# the directories may not exist.
1135case `pwd` in
1136.) ac_abs_builddir="$ac_dir";;
1137*)
1138 case "$ac_dir" in
1139 .) ac_abs_builddir=`pwd`;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1141 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1142 esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_top_builddir=${ac_top_builddir}.;;
1146*)
1147 case ${ac_top_builddir}. in
1148 .) ac_abs_top_builddir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1150 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1151 esac;;
1152esac
1153case $ac_abs_builddir in
1154.) ac_abs_srcdir=$ac_srcdir;;
1155*)
1156 case $ac_srcdir in
1157 .) ac_abs_srcdir=$ac_abs_builddir;;
1158 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1159 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1160 esac;;
1161esac
1162case $ac_abs_builddir in
1163.) ac_abs_top_srcdir=$ac_top_srcdir;;
1164*)
1165 case $ac_top_srcdir in
1166 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1167 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1168 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1169 esac;;
1170esac
a848cd7e
SC
1171
1172 cd $ac_dir
1173 # Check for guested configure; otherwise get Cygnus style configure.
1174 if test -f $ac_srcdir/configure.gnu; then
1175 echo
1176 $SHELL $ac_srcdir/configure.gnu --help=recursive
1177 elif test -f $ac_srcdir/configure; then
1178 echo
1179 $SHELL $ac_srcdir/configure --help=recursive
1180 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1181 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1182 echo
1183 $ac_configure --help
1184 else
1185 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1186 fi
04840eaa 1187 cd $ac_popdir
a848cd7e
SC
1188 done
1189fi
1190
1191test -n "$ac_init_help" && exit 0
1192if $ac_init_version; then
1193 cat <<\_ACEOF
7714864e 1194wxWidgets configure 2.5.3
ac1cb8d3 1195generated by GNU Autoconf 2.59
a848cd7e 1196
ac1cb8d3 1197Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1198This configure script is free software; the Free Software Foundation
1199gives unlimited permission to copy, distribute and modify it.
1200_ACEOF
1201 exit 0
1202fi
1203exec 5>config.log
1204cat >&5 <<_ACEOF
1205This file contains any messages produced by compilers while
1206running configure, to aid debugging if configure makes a mistake.
1207
7714864e 1208It was created by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 1209generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1210
1211 $ $0 $@
1212
1213_ACEOF
1214{
1215cat <<_ASUNAME
1216## --------- ##
1217## Platform. ##
1218## --------- ##
1219
1220hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1221uname -m = `(uname -m) 2>/dev/null || echo unknown`
1222uname -r = `(uname -r) 2>/dev/null || echo unknown`
1223uname -s = `(uname -s) 2>/dev/null || echo unknown`
1224uname -v = `(uname -v) 2>/dev/null || echo unknown`
1225
1226/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1227/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1228
1229/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1230/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1231/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1232hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1233/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1234/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1235/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1236
1237_ASUNAME
1238
1239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1240for as_dir in $PATH
1241do
1242 IFS=$as_save_IFS
1243 test -z "$as_dir" && as_dir=.
1244 echo "PATH: $as_dir"
1245done
1246
1247} >&5
1248
1249cat >&5 <<_ACEOF
1250
1251
1252## ----------- ##
1253## Core tests. ##
1254## ----------- ##
1255
1256_ACEOF
1257
1258
1259# Keep a trace of the command line.
1260# Strip out --no-create and --no-recursion so they do not pile up.
1261# Strip out --silent because we don't want to record it for future runs.
1262# Also quote any args containing shell meta-characters.
1263# Make two passes to allow for proper duplicate-argument suppression.
1264ac_configure_args=
1265ac_configure_args0=
1266ac_configure_args1=
1267ac_sep=
1268ac_must_keep_next=false
1269for ac_pass in 1 2
1270do
1271 for ac_arg
1272 do
1273 case $ac_arg in
1274 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1275 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276 | -silent | --silent | --silen | --sile | --sil)
1277 continue ;;
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 esac
1281 case $ac_pass in
1282 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1283 2)
1284 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1285 if test $ac_must_keep_next = true; then
ac1cb8d3 1286 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1287 else
ac1cb8d3
VS
1288 case $ac_arg in
1289 *=* | --config-cache | -C | -disable-* | --disable-* \
1290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1292 | -with-* | --with-* | -without-* | --without-* | --x)
1293 case "$ac_configure_args0 " in
1294 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1295 esac
1296 ;;
1297 -* ) ac_must_keep_next=true ;;
1298 esac
a848cd7e
SC
1299 fi
1300 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1301 # Get rid of the leading space.
1302 ac_sep=" "
1303 ;;
1304 esac
1305 done
1306done
1307$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1308$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1309
1310# When interrupted or exit'd, cleanup temporary files, and complete
1311# config.log. We remove comments because anyway the quotes in there
1312# would cause problems or look ugly.
1313# WARNING: Be sure not to use single quotes in there, as some shells,
1314# such as our DU 5.0 friend, will then `close' the trap.
1315trap 'exit_status=$?
1316 # Save into config.log some information that might help in debugging.
1317 {
1318 echo
1319
1320 cat <<\_ASBOX
1321## ---------------- ##
1322## Cache variables. ##
1323## ---------------- ##
1324_ASBOX
1325 echo
1326 # The following way of writing the cache mishandles newlines in values,
1327{
1328 (set) 2>&1 |
1329 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1330 *ac_space=\ *)
1331 sed -n \
ac1cb8d3
VS
1332 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1333 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1334 ;;
1335 *)
1336 sed -n \
ac1cb8d3 1337 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1338 ;;
1339 esac;
1340}
1341 echo
1342
1343 cat <<\_ASBOX
1344## ----------------- ##
1345## Output variables. ##
1346## ----------------- ##
1347_ASBOX
1348 echo
1349 for ac_var in $ac_subst_vars
1350 do
1351 eval ac_val=$`echo $ac_var`
1352 echo "$ac_var='"'"'$ac_val'"'"'"
1353 done | sort
1354 echo
1355
1356 if test -n "$ac_subst_files"; then
1357 cat <<\_ASBOX
1358## ------------- ##
1359## Output files. ##
1360## ------------- ##
1361_ASBOX
1362 echo
1363 for ac_var in $ac_subst_files
1364 do
1365 eval ac_val=$`echo $ac_var`
ac1cb8d3 1366 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1367 done | sort
1368 echo
1369 fi
1370
1371 if test -s confdefs.h; then
1372 cat <<\_ASBOX
1373## ----------- ##
1374## confdefs.h. ##
1375## ----------- ##
1376_ASBOX
1377 echo
1378 sed "/^$/d" confdefs.h | sort
1379 echo
1380 fi
1381 test "$ac_signal" != 0 &&
1382 echo "$as_me: caught signal $ac_signal"
1383 echo "$as_me: exit $exit_status"
1384 } >&5
ac1cb8d3 1385 rm -f core *.core &&
a848cd7e
SC
1386 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1387 exit $exit_status
1388 ' 0
1389for ac_signal in 1 2 13 15; do
1390 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1391done
1392ac_signal=0
1393
1394# confdefs.h avoids OS command line length limits that DEFS can exceed.
1395rm -rf conftest* confdefs.h
1396# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1397echo >confdefs.h
1398
1399# Predefined preprocessor variables.
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_NAME "$PACKAGE_NAME"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_VERSION "$PACKAGE_VERSION"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_STRING "$PACKAGE_STRING"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1423_ACEOF
1424
1425
1426# Let the site file select an alternate cache file if it wants to.
1427# Prefer explicitly selected file to automatically selected ones.
1428if test -z "$CONFIG_SITE"; then
1429 if test "x$prefix" != xNONE; then
1430 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1431 else
1432 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1433 fi
1434fi
1435for ac_site_file in $CONFIG_SITE; do
1436 if test -r "$ac_site_file"; then
1437 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1438echo "$as_me: loading site script $ac_site_file" >&6;}
1439 sed 's/^/| /' "$ac_site_file" >&5
1440 . "$ac_site_file"
1441 fi
1442done
1443
1444if test -r "$cache_file"; then
1445 # Some versions of bash will fail to source /dev/null (special
1446 # files actually), so we avoid doing that.
1447 if test -f "$cache_file"; then
1448 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1449echo "$as_me: loading cache $cache_file" >&6;}
1450 case $cache_file in
1451 [\\/]* | ?:[\\/]* ) . $cache_file;;
1452 *) . ./$cache_file;;
1453 esac
1454 fi
1455else
1456 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1457echo "$as_me: creating cache $cache_file" >&6;}
1458 >$cache_file
1459fi
1460
1461# Check that the precious variables saved in the cache have kept the same
1462# value.
1463ac_cache_corrupted=false
1464for ac_var in `(set) 2>&1 |
ac1cb8d3 1465 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1466 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467 eval ac_new_set=\$ac_env_${ac_var}_set
1468 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469 eval ac_new_val="\$ac_env_${ac_var}_value"
1470 case $ac_old_set,$ac_new_set in
1471 set,)
1472 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474 ac_cache_corrupted=: ;;
1475 ,set)
1476 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478 ac_cache_corrupted=: ;;
1479 ,);;
1480 *)
1481 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1482 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1483echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1484 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1485echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1486 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1487echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1488 ac_cache_corrupted=:
a848cd7e
SC
1489 fi;;
1490 esac
1491 # Pass precious variables to config.status.
1492 if test "$ac_new_set" = set; then
1493 case $ac_new_val in
1494 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496 *) ac_arg=$ac_var=$ac_new_val ;;
1497 esac
1498 case " $ac_configure_args " in
1499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1500 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501 esac
1502 fi
1503done
1504if $ac_cache_corrupted; then
1505 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509 { (exit 1); exit 1; }; }
1510fi
1511
1512ac_ext=c
1513ac_cpp='$CPP $CPPFLAGS'
1514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1544
1545
1546
1547ac_aux_dir=
1548for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1549 if test -f $ac_dir/install-sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install-sh -c"
1552 break
1553 elif test -f $ac_dir/install.sh; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/install.sh -c"
1556 break
1557 elif test -f $ac_dir/shtool; then
1558 ac_aux_dir=$ac_dir
1559 ac_install_sh="$ac_aux_dir/shtool install -c"
1560 break
1561 fi
1562done
1563if test -z "$ac_aux_dir"; then
1564 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1565echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1566 { (exit 1); exit 1; }; }
1567fi
1568ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1569ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1570ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1571
1572# Make sure we can run config.sub.
1573$ac_config_sub sun4 >/dev/null 2>&1 ||
1574 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1575echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1576 { (exit 1); exit 1; }; }
1577
1578echo "$as_me:$LINENO: checking build system type" >&5
1579echo $ECHO_N "checking build system type... $ECHO_C" >&6
1580if test "${ac_cv_build+set}" = set; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1582else
1583 ac_cv_build_alias=$build_alias
1584test -z "$ac_cv_build_alias" &&
1585 ac_cv_build_alias=`$ac_config_guess`
1586test -z "$ac_cv_build_alias" &&
1587 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1588echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1589 { (exit 1); exit 1; }; }
1590ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1591 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1592echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1593 { (exit 1); exit 1; }; }
1594
1595fi
1596echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1597echo "${ECHO_T}$ac_cv_build" >&6
1598build=$ac_cv_build
1599build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1600build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1601build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1602
1603
1604echo "$as_me:$LINENO: checking host system type" >&5
1605echo $ECHO_N "checking host system type... $ECHO_C" >&6
1606if test "${ac_cv_host+set}" = set; then
1607 echo $ECHO_N "(cached) $ECHO_C" >&6
1608else
1609 ac_cv_host_alias=$host_alias
1610test -z "$ac_cv_host_alias" &&
1611 ac_cv_host_alias=$ac_cv_build_alias
1612ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1613 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1614echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1615 { (exit 1); exit 1; }; }
1616
1617fi
1618echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1619echo "${ECHO_T}$ac_cv_host" >&6
1620host=$ac_cv_host
1621host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1622host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1623host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1624
1625
1626echo "$as_me:$LINENO: checking target system type" >&5
1627echo $ECHO_N "checking target system type... $ECHO_C" >&6
1628if test "${ac_cv_target+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 ac_cv_target_alias=$target_alias
1632test "x$ac_cv_target_alias" = "x" &&
1633 ac_cv_target_alias=$ac_cv_host_alias
1634ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1636echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1638
1639fi
1640echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1641echo "${ECHO_T}$ac_cv_target" >&6
1642target=$ac_cv_target
1643target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1646
1647
1648# The aliases save the names the user supplied, while $host etc.
1649# will get canonicalized.
1650test -n "$target_alias" &&
1651 test "$program_prefix$program_suffix$program_transform_name" = \
1652 NONENONEs,x,x, &&
1653 program_prefix=${target_alias}-
1654
1655
1656
ceec2216
RL
1657wx_major_version_number=2
1658wx_minor_version_number=5
7714864e 1659wx_release_number=3
0210f373 1660wx_subrelease_number=3
a848cd7e 1661
ceec2216
RL
1662WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1663WX_VERSION=$WX_RELEASE.$wx_release_number
1664WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1665
ceec2216 1666WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1667
e653e181 1668WX_CURRENT=3
a848cd7e 1669WX_REVISION=0
0210f373 1670WX_AGE=3
a848cd7e
SC
1671
1672
1673
1674USE_UNIX=1
1675USE_OS2=0
1676USE_WIN32=0
1677USE_DOS=0
1678USE_BEOS=0
1679USE_MAC=0
1680
1681USE_AIX=
1682USE_BSD= USE_DARWIN= USE_FREEBSD=
1683USE_GNU= USE_HPUX=
1684USE_LINUX=
1685USE_NETBSD=
1686USE_OPENBSD=
1687USE_OSF= USE_SGI=
1688USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1689USE_ULTRIX=
1690USE_UNIXWARE=
1691
1692USE_ALPHA=
1693
1694NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1695
1696ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1697
1698DEFAULT_wxUSE_COCOA=0
1699DEFAULT_wxUSE_GTK=0
1700DEFAULT_wxUSE_MAC=0
1701DEFAULT_wxUSE_MGL=0
1702DEFAULT_wxUSE_MICROWIN=0
1703DEFAULT_wxUSE_MOTIF=0
1704DEFAULT_wxUSE_MSW=0
1705DEFAULT_wxUSE_PM=0
1706DEFAULT_wxUSE_X11=0
1707
1708DEFAULT_DEFAULT_wxUSE_COCOA=0
1709DEFAULT_DEFAULT_wxUSE_GTK=0
1710DEFAULT_DEFAULT_wxUSE_MAC=0
1711DEFAULT_DEFAULT_wxUSE_MGL=0
1712DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1713DEFAULT_DEFAULT_wxUSE_MOTIF=0
1714DEFAULT_DEFAULT_wxUSE_MSW=0
1715DEFAULT_DEFAULT_wxUSE_PM=0
1716DEFAULT_DEFAULT_wxUSE_X11=0
1717
1718PROGRAM_EXT=
1719SO_SUFFIX=so
1720SAMPLES_RPATH_FLAG=
1721SAMPLES_RPATH_POSTLINK=
1722
1723case "${host}" in
1724 *-hp-hpux* )
1725 USE_HPUX=1
1726 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1727 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1728 SO_SUFFIX=sl
1729 cat >>confdefs.h <<\_ACEOF
1730#define __HPUX__ 1
1731_ACEOF
1732
1733 ;;
1734 *-*-linux* )
1735 USE_LINUX=1
1736 cat >>confdefs.h <<\_ACEOF
1737#define __LINUX__ 1
1738_ACEOF
1739
1740 TMP=`uname -m`
1741 if test "x$TMP" = "xalpha"; then
1742 USE_ALPHA=1
1743 cat >>confdefs.h <<\_ACEOF
1744#define __ALPHA__ 1
1745_ACEOF
1746
1747 fi
1748 DEFAULT_DEFAULT_wxUSE_GTK=1
1749 ;;
1750 *-*-gnu* | *-*-k*bsd*-gnu )
1751 USE_GNU=1
1752 TMP=`uname -m`
1753 if test "x$TMP" = "xalpha"; then
1754 USE_ALPHA=1
1755 cat >>confdefs.h <<\_ACEOF
1756#define __ALPHA__ 1
1757_ACEOF
1758
1759 fi
1760 DEFAULT_DEFAULT_wxUSE_GTK=1
1761 ;;
1762 *-*-irix5* | *-*-irix6* )
1763 USE_SGI=1
1764 USE_SVR4=1
1765 cat >>confdefs.h <<\_ACEOF
1766#define __SGI__ 1
1767_ACEOF
1768
1769 cat >>confdefs.h <<\_ACEOF
1770#define __SVR4__ 1
1771_ACEOF
1772
1773 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1774 ;;
1775 *-*-solaris2* )
1776 USE_SUN=1
1777 USE_SOLARIS=1
1778 USE_SVR4=1
1779 cat >>confdefs.h <<\_ACEOF
1780#define __SUN__ 1
1781_ACEOF
1782
1783 cat >>confdefs.h <<\_ACEOF
1784#define __SOLARIS__ 1
1785_ACEOF
1786
1787 cat >>confdefs.h <<\_ACEOF
1788#define __SVR4__ 1
1789_ACEOF
1790
1791 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1792 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1793 ;;
1794 *-*-sunos4* )
1795 USE_SUN=1
1796 USE_SUNOS=1
1797 USE_BSD=1
1798 cat >>confdefs.h <<\_ACEOF
1799#define __SUN__ 1
1800_ACEOF
1801
1802 cat >>confdefs.h <<\_ACEOF
1803#define __SUNOS__ 1
1804_ACEOF
1805
1806 cat >>confdefs.h <<\_ACEOF
1807#define __BSD__ 1
1808_ACEOF
1809
1810 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1811 ;;
1812 *-*-freebsd*)
1813 USE_BSD=1
1814 USE_FREEBSD=1
1815 cat >>confdefs.h <<\_ACEOF
1816#define __FREEBSD__ 1
1817_ACEOF
1818
1819 cat >>confdefs.h <<\_ACEOF
1820#define __BSD__ 1
1821_ACEOF
1822
1823 DEFAULT_DEFAULT_wxUSE_GTK=1
1824 ;;
1825 *-*-openbsd*)
1826 USE_BSD=1
1827 USE_OPENBSD=1
1828 cat >>confdefs.h <<\_ACEOF
1829#define __OPENBSD__ 1
1830_ACEOF
1831
1832 cat >>confdefs.h <<\_ACEOF
1833#define __BSD__ 1
1834_ACEOF
1835
1836 DEFAULT_DEFAULT_wxUSE_GTK=1
1837 ;;
1838 *-*-netbsd*)
1839 USE_BSD=1
1840 USE_NETBSD=1
1841 cat >>confdefs.h <<\_ACEOF
1842#define __NETBSD__ 1
1843_ACEOF
1844
1845 cat >>confdefs.h <<\_ACEOF
1846#define __BSD__ 1
1847_ACEOF
1848
1849 DEFAULT_DEFAULT_wxUSE_GTK=1
1850 ;;
1851 *-*-osf* )
1852 USE_ALPHA=1
1853 USE_OSF=1
1854 cat >>confdefs.h <<\_ACEOF
1855#define __ALPHA__ 1
1856_ACEOF
1857
1858 cat >>confdefs.h <<\_ACEOF
1859#define __OSF__ 1
1860_ACEOF
1861
1862 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1863 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1864 ;;
1865 *-*-dgux5* )
1866 USE_ALPHA=1
1867 USE_SVR4=1
1868 cat >>confdefs.h <<\_ACEOF
1869#define __ALPHA__ 1
1870_ACEOF
1871
1872 cat >>confdefs.h <<\_ACEOF
1873#define __SVR4__ 1
1874_ACEOF
1875
1876 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1877 ;;
1878 *-*-sysv5* )
1879 USE_SYSV=1
1880 USE_SVR4=1
1881 cat >>confdefs.h <<\_ACEOF
1882#define __SYSV__ 1
1883_ACEOF
1884
1885 cat >>confdefs.h <<\_ACEOF
1886#define __SVR4__ 1
1887_ACEOF
1888
1889 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1890 ;;
1891 *-*-aix* )
1892 USE_AIX=1
1893 USE_SYSV=1
1894 USE_SVR4=1
1895 SO_SUFFIX=a
1896 cat >>confdefs.h <<\_ACEOF
1897#define __AIX__ 1
1898_ACEOF
1899
1900 cat >>confdefs.h <<\_ACEOF
1901#define __SYSV__ 1
1902_ACEOF
1903
1904 cat >>confdefs.h <<\_ACEOF
1905#define __SVR4__ 1
1906_ACEOF
1907
1908 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1909 ;;
1910
1911 *-*-*UnixWare*)
1912 USE_SYSV=1
1913 USE_SVR4=1
1914 USE_UNIXWARE=1
1915 cat >>confdefs.h <<\_ACEOF
1916#define __UNIXWARE__ 1
1917_ACEOF
1918
1919 ;;
1920
1921 *-*-cygwin* | *-*-mingw32* )
1922 SO_SUFFIX=dll
1923 PROGRAM_EXT=".exe"
1924 RESCOMP=windres
1925 DEFAULT_DEFAULT_wxUSE_MSW=1
1926 ;;
1927
1928 *-pc-msdosdjgpp )
1929 USE_UNIX=0
1930 USE_DOS=1
1931 cat >>confdefs.h <<\_ACEOF
1932#define __DOS__ 1
1933_ACEOF
1934
1935 PROGRAM_EXT=".exe"
1936 DEFAULT_DEFAULT_wxUSE_MGL=1
1937 LIBS="$LIBS -lstdc++"
1938 ;;
1939
1940 *-pc-os2_emx | *-pc-os2-emx )
1941 cat >>confdefs.h <<\_ACEOF
1942#define __EMX__ 1
1943_ACEOF
1944
1945 USE_OS2=1
1946 cat >>confdefs.h <<\_ACEOF
1947#define __OS2__ 1
1948_ACEOF
1949
1950 PROGRAM_EXT=".exe"
1951 DEFAULT_DEFAULT_wxUSE_PM=1
1952 CXX=gcc
1953 LDFLAGS="$LDFLAGS -Zcrtdll"
1954 ac_executable_extensions=".exe"
1955 export ac_executable_extensions
1956 ac_save_IFS="$IFS"
1957 IFS='\\'
1958 ac_TEMP_PATH=
1959 for ac_dir in $PATH; do
1960 IFS=$ac_save_IFS
1961 if test -z "$ac_TEMP_PATH"; then
1962 ac_TEMP_PATH="$ac_dir"
1963 else
1964 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1965 fi
1966 done
1967 export PATH="$ac_TEMP_PATH"
1968 unset ac_TEMP_PATH
1969 ;;
1970
1971 powerpc-*-darwin* )
1972 USE_BSD=1
1973 USE_DARWIN=1
1974 SO_SUFFIX=dylib
1975 cat >>confdefs.h <<\_ACEOF
1976#define __BSD__ 1
1977_ACEOF
1978
1979 cat >>confdefs.h <<\_ACEOF
1980#define __DARWIN__ 1
1981_ACEOF
1982
1983 cat >>confdefs.h <<\_ACEOF
1984#define __POWERPC__ 1
1985_ACEOF
1986
1987 cat >>confdefs.h <<\_ACEOF
1988#define TARGET_CARBON 1
1989_ACEOF
1990
1991 DEFAULT_DEFAULT_wxUSE_MAC=1
1992 ;;
1e9e8aba
DE
1993 powerpc-apple-macos* )
1994 USE_UNIX=0
1995 ac_cv_c_bigendian=yes
1996 SO_SUFFIX=shlib
1997 DEFAULT_DEFAULT_wxUSE_MAC=1
1998 ;;
a848cd7e
SC
1999
2000 *-*-beos* )
2001 USE_BEOS=1
2002 cat >>confdefs.h <<\_ACEOF
2003#define __BEOS__ 1
2004_ACEOF
2005
2006 ;;
2007
2008 *)
2009 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2010echo "$as_me: error: unknown system type ${host}." >&2;}
2011 { (exit 1); exit 1; }; }
2012esac
2013
2014
2015
2016
2017 wx_arg_cache_file="configarg.cache"
2018 echo "loading argument cache $wx_arg_cache_file"
2019 rm -f ${wx_arg_cache_file}.tmp
2020 touch ${wx_arg_cache_file}.tmp
2021 touch ${wx_arg_cache_file}
2022
2023
2024DEBUG_CONFIGURE=0
2025if test $DEBUG_CONFIGURE = 1; then
2026 DEFAULT_wxUSE_UNIVERSAL=no
2027 DEFAULT_wxUSE_STL=no
2028
2029 DEFAULT_wxUSE_NANOX=no
2030
2031 DEFAULT_wxUSE_THREADS=yes
2032
2033 DEFAULT_wxUSE_SHARED=yes
2034 DEFAULT_wxUSE_OPTIMISE=no
2035 DEFAULT_wxUSE_PROFILE=no
2036 DEFAULT_wxUSE_NO_DEPS=no
2037 DEFAULT_wxUSE_NO_RTTI=no
2038 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2039 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2040 DEFAULT_wxUSE_PERMISSIVE=no
2041 DEFAULT_wxUSE_DEBUG_FLAG=yes
2042 DEFAULT_wxUSE_DEBUG_INFO=yes
2043 DEFAULT_wxUSE_DEBUG_GDB=yes
2044 DEFAULT_wxUSE_MEM_TRACING=no
2045 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2046 DEFAULT_wxUSE_DMALLOC=no
2047 DEFAULT_wxUSE_APPLE_IEEE=no
2048
2049 DEFAULT_wxUSE_EXCEPTIONS=no
2050 DEFAULT_wxUSE_LOG=yes
2051 DEFAULT_wxUSE_LOGWINDOW=no
2052 DEFAULT_wxUSE_LOGGUI=no
2053 DEFAULT_wxUSE_LOGDIALOG=no
2054
2055 DEFAULT_wxUSE_GUI=yes
2056 DEFAULT_wxUSE_CONTROLS=no
2057
2058 DEFAULT_wxUSE_REGEX=no
2059 DEFAULT_wxUSE_XML=no
2060 DEFAULT_wxUSE_EXPAT=no
2061 DEFAULT_wxUSE_ZLIB=no
2062 DEFAULT_wxUSE_LIBPNG=no
2063 DEFAULT_wxUSE_LIBJPEG=no
2064 DEFAULT_wxUSE_LIBTIFF=no
2065 DEFAULT_wxUSE_LIBXPM=no
2066 DEFAULT_wxUSE_LIBMSPACK=no
2067 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2068 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2069 DEFAULT_wxUSE_ODBC=no
2070 DEFAULT_wxUSE_OPENGL=no
2071
2072 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2073 DEFAULT_wxUSE_STACKWALKER=no
a848cd7e
SC
2074 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2075 DEFAULT_wxUSE_STD_IOSTREAM=no
2076 DEFAULT_wxUSE_CMDLINE_PARSER=no
2077 DEFAULT_wxUSE_DATETIME=no
2078 DEFAULT_wxUSE_TIMER=no
2079 DEFAULT_wxUSE_STOPWATCH=no
2080 DEFAULT_wxUSE_FILE=no
2081 DEFAULT_wxUSE_FFILE=no
2082 DEFAULT_wxUSE_TEXTBUFFER=no
2083 DEFAULT_wxUSE_TEXTFILE=no
2084 DEFAULT_wxUSE_SOUND=no
3b57de8b
RL
2085 DEFAULT_wxUSE_MEDIACTRL=no
2086 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2087 DEFAULT_wxUSE_INTL=no
2088 DEFAULT_wxUSE_CONFIG=no
2089 DEFAULT_wxUSE_FONTMAP=no
2090 DEFAULT_wxUSE_STREAMS=no
2091 DEFAULT_wxUSE_SOCKETS=no
2092 DEFAULT_wxUSE_OLE=no
2093 DEFAULT_wxUSE_DATAOBJ=no
2094 DEFAULT_wxUSE_DIALUP_MANAGER=no
2095 DEFAULT_wxUSE_JOYSTICK=no
2096 DEFAULT_wxUSE_DYNLIB_CLASS=no
2097 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2098 DEFAULT_wxUSE_LONGLONG=no
2099 DEFAULT_wxUSE_GEOMETRY=no
2100
2101 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2102 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2103 DEFAULT_wxUSE_POSTSCRIPT=no
2104
2105 DEFAULT_wxUSE_CLIPBOARD=no
2106 DEFAULT_wxUSE_TOOLTIPS=no
2107 DEFAULT_wxUSE_DRAG_AND_DROP=no
2108 DEFAULT_wxUSE_DRAGIMAGE=no
2109 DEFAULT_wxUSE_SPLINES=no
2110
8a7b1113 2111 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2112 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2113 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2114 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2115
2116 DEFAULT_wxUSE_RESOURCES=no
2117 DEFAULT_wxUSE_CONSTRAINTS=no
2118 DEFAULT_wxUSE_IPC=no
2119 DEFAULT_wxUSE_HELP=no
2120 DEFAULT_wxUSE_MS_HTML_HELP=no
2121 DEFAULT_wxUSE_WXHTML_HELP=no
2122 DEFAULT_wxUSE_TREELAYOUT=no
2123 DEFAULT_wxUSE_METAFILE=no
2124 DEFAULT_wxUSE_MIMETYPE=no
2125 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2126 DEFAULT_wxUSE_PROTOCOL=no
2127 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2128 DEFAULT_wxUSE_PROTOCOL_FTP=no
2129 DEFAULT_wxUSE_PROTOCOL_FILE=no
2130 DEFAULT_wxUSE_URL=no
2131
2132 DEFAULT_wxUSE_COMMONDLGS=no
2133 DEFAULT_wxUSE_CHOICEDLG=no
2134 DEFAULT_wxUSE_COLOURDLG=no
2135 DEFAULT_wxUSE_DIRDLG=no
2136 DEFAULT_wxUSE_FILEDLG=no
2137 DEFAULT_wxUSE_FINDREPLDLG=no
2138 DEFAULT_wxUSE_FONTDLG=no
2139 DEFAULT_wxUSE_MSGDLG=no
2140 DEFAULT_wxUSE_NUMBERDLG=no
2141 DEFAULT_wxUSE_TEXTDLG=no
2142 DEFAULT_wxUSE_SPLASH=no
2143 DEFAULT_wxUSE_STARTUP_TIPS=no
2144 DEFAULT_wxUSE_PROGRESSDLG=no
2145 DEFAULT_wxUSE_WIZARDDLG=no
2146
2147 DEFAULT_wxUSE_MENUS=no
2148 DEFAULT_wxUSE_MINIFRAME=no
2149 DEFAULT_wxUSE_HTML=no
9a8f0513 2150 DEFAULT_wxUSE_XRC=no
646b6ec1 2151 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2152 DEFAULT_wxUSE_FILESYSTEM=no
2153 DEFAULT_wxUSE_FS_INET=no
2154 DEFAULT_wxUSE_FS_ZIP=no
2155 DEFAULT_wxUSE_BUSYINFO=no
2156 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2157 DEFAULT_wxUSE_VALIDATORS=no
2158
2159 DEFAULT_wxUSE_ACCEL=no
2160 DEFAULT_wxUSE_BUTTON=no
2161 DEFAULT_wxUSE_BMPBUTTON=no
2162 DEFAULT_wxUSE_CALCTRL=no
2163 DEFAULT_wxUSE_CARET=no
2164 DEFAULT_wxUSE_CHECKBOX=no
2165 DEFAULT_wxUSE_CHECKLST=no
2166 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2167 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
2168 DEFAULT_wxUSE_COMBOBOX=no
2169 DEFAULT_wxUSE_DISPLAY=no
2170 DEFAULT_wxUSE_GAUGE=no
2171 DEFAULT_wxUSE_GRID=no
2172 DEFAULT_wxUSE_IMAGLIST=no
2173 DEFAULT_wxUSE_LISTBOOK=no
2174 DEFAULT_wxUSE_LISTBOX=no
2175 DEFAULT_wxUSE_LISTCTRL=no
2176 DEFAULT_wxUSE_NOTEBOOK=no
2177 DEFAULT_wxUSE_RADIOBOX=no
2178 DEFAULT_wxUSE_RADIOBTN=no
2179 DEFAULT_wxUSE_SASH=no
2180 DEFAULT_wxUSE_SCROLLBAR=no
2181 DEFAULT_wxUSE_SLIDER=no
2182 DEFAULT_wxUSE_SPINBTN=no
2183 DEFAULT_wxUSE_SPINCTRL=no
2184 DEFAULT_wxUSE_SPLITTER=no
2185 DEFAULT_wxUSE_STATBMP=no
2186 DEFAULT_wxUSE_STATBOX=no
2187 DEFAULT_wxUSE_STATLINE=no
2188 DEFAULT_wxUSE_STATTEXT=no
2189 DEFAULT_wxUSE_STATUSBAR=yes
2190 DEFAULT_wxUSE_TABDIALOG=no
2191 DEFAULT_wxUSE_TEXTCTRL=no
2192 DEFAULT_wxUSE_TOGGLEBTN=no
2193 DEFAULT_wxUSE_TOOLBAR=no
2194 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2195 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
2196 DEFAULT_wxUSE_TREECTRL=no
2197 DEFAULT_wxUSE_POPUPWIN=no
2198 DEFAULT_wxUSE_TIPWINDOW=no
2199
2200 DEFAULT_wxUSE_UNICODE=no
2201 DEFAULT_wxUSE_UNICODE_MSLU=no
2202 DEFAULT_wxUSE_WCSRTOMBS=no
2203
2204 DEFAULT_wxUSE_PALETTE=no
2205 DEFAULT_wxUSE_IMAGE=no
2206 DEFAULT_wxUSE_GIF=no
2207 DEFAULT_wxUSE_PCX=no
2208 DEFAULT_wxUSE_PNM=no
2209 DEFAULT_wxUSE_IFF=no
2210 DEFAULT_wxUSE_XPM=no
2211 DEFAULT_wxUSE_ICO_CUR=no
2212 DEFAULT_wxUSE_ACCESSIBILITY=no
2213
2214 DEFAULT_wxUSE_MONOLITHIC=no
2215 DEFAULT_wxUSE_PLUGINS=no
2216 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2217else
2218 DEFAULT_wxUSE_UNIVERSAL=no
2219 DEFAULT_wxUSE_STL=no
2220
2221 DEFAULT_wxUSE_NANOX=no
2222
2223 DEFAULT_wxUSE_THREADS=yes
2224
2225 DEFAULT_wxUSE_SHARED=yes
2226 DEFAULT_wxUSE_OPTIMISE=yes
2227 DEFAULT_wxUSE_PROFILE=no
2228 DEFAULT_wxUSE_NO_DEPS=no
2229 DEFAULT_wxUSE_NO_RTTI=no
2230 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2231 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2232 DEFAULT_wxUSE_PERMISSIVE=no
2233 DEFAULT_wxUSE_DEBUG_FLAG=no
2234 DEFAULT_wxUSE_DEBUG_INFO=no
2235 DEFAULT_wxUSE_DEBUG_GDB=no
2236 DEFAULT_wxUSE_MEM_TRACING=no
2237 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2238 DEFAULT_wxUSE_DMALLOC=no
2239 DEFAULT_wxUSE_APPLE_IEEE=yes
2240
2241 DEFAULT_wxUSE_EXCEPTIONS=yes
2242 DEFAULT_wxUSE_LOG=yes
2243 DEFAULT_wxUSE_LOGWINDOW=yes
2244 DEFAULT_wxUSE_LOGGUI=yes
2245 DEFAULT_wxUSE_LOGDIALOG=yes
2246
2247 DEFAULT_wxUSE_GUI=yes
2248
2249 DEFAULT_wxUSE_REGEX=yes
2250 DEFAULT_wxUSE_XML=yes
2251 DEFAULT_wxUSE_EXPAT=yes
2252 DEFAULT_wxUSE_ZLIB=yes
2253 DEFAULT_wxUSE_LIBPNG=yes
2254 DEFAULT_wxUSE_LIBJPEG=yes
2255 DEFAULT_wxUSE_LIBTIFF=yes
2256 DEFAULT_wxUSE_LIBXPM=yes
2257 DEFAULT_wxUSE_LIBMSPACK=yes
2258 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2259 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2260 DEFAULT_wxUSE_ODBC=no
2261 DEFAULT_wxUSE_OPENGL=no
2262
2263 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2264 DEFAULT_wxUSE_STACKWALKER=yes
a848cd7e
SC
2265 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
2266 DEFAULT_wxUSE_STD_IOSTREAM=no
2267 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2268 DEFAULT_wxUSE_DATETIME=yes
2269 DEFAULT_wxUSE_TIMER=yes
2270 DEFAULT_wxUSE_STOPWATCH=yes
2271 DEFAULT_wxUSE_FILE=yes
2272 DEFAULT_wxUSE_FFILE=yes
2273 DEFAULT_wxUSE_TEXTBUFFER=yes
2274 DEFAULT_wxUSE_TEXTFILE=yes
2275 DEFAULT_wxUSE_SOUND=yes
3b57de8b
RL
2276 DEFAULT_wxUSE_MEDIACTRL=no
2277 DEFAULT_wxUSE_DIRECTSHOW=no
a848cd7e
SC
2278 DEFAULT_wxUSE_INTL=yes
2279 DEFAULT_wxUSE_CONFIG=yes
2280 DEFAULT_wxUSE_FONTMAP=yes
2281 DEFAULT_wxUSE_STREAMS=yes
2282 DEFAULT_wxUSE_SOCKETS=yes
2283 DEFAULT_wxUSE_OLE=yes
2284 DEFAULT_wxUSE_DATAOBJ=yes
2285 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2286 DEFAULT_wxUSE_JOYSTICK=yes
2287 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2288 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2289 DEFAULT_wxUSE_LONGLONG=yes
2290 DEFAULT_wxUSE_GEOMETRY=yes
2291
2292 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2293 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2294 DEFAULT_wxUSE_POSTSCRIPT=yes
2295
2296 DEFAULT_wxUSE_CLIPBOARD=yes
2297 DEFAULT_wxUSE_TOOLTIPS=yes
2298 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2299 DEFAULT_wxUSE_DRAGIMAGE=yes
2300 DEFAULT_wxUSE_SPLINES=yes
2301
8a7b1113 2302 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2303 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2304 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2305 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2306
2307 DEFAULT_wxUSE_RESOURCES=no
2308 DEFAULT_wxUSE_CONSTRAINTS=yes
2309 DEFAULT_wxUSE_IPC=yes
2310 DEFAULT_wxUSE_HELP=yes
2311 DEFAULT_wxUSE_MS_HTML_HELP=yes
2312 DEFAULT_wxUSE_WXHTML_HELP=yes
2313 DEFAULT_wxUSE_TREELAYOUT=yes
2314 DEFAULT_wxUSE_METAFILE=yes
2315 DEFAULT_wxUSE_MIMETYPE=yes
2316 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2317 DEFAULT_wxUSE_PROTOCOL=yes
2318 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2319 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2320 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2321 DEFAULT_wxUSE_URL=yes
2322
2323 DEFAULT_wxUSE_COMMONDLGS=yes
2324 DEFAULT_wxUSE_CHOICEDLG=yes
2325 DEFAULT_wxUSE_COLOURDLG=yes
2326 DEFAULT_wxUSE_DIRDLG=yes
2327 DEFAULT_wxUSE_FILEDLG=yes
2328 DEFAULT_wxUSE_FINDREPLDLG=yes
2329 DEFAULT_wxUSE_FONTDLG=yes
2330 DEFAULT_wxUSE_MSGDLG=yes
2331 DEFAULT_wxUSE_NUMBERDLG=yes
2332 DEFAULT_wxUSE_TEXTDLG=yes
2333 DEFAULT_wxUSE_SPLASH=yes
2334 DEFAULT_wxUSE_STARTUP_TIPS=yes
2335 DEFAULT_wxUSE_PROGRESSDLG=yes
2336 DEFAULT_wxUSE_WIZARDDLG=yes
2337
2338 DEFAULT_wxUSE_MENUS=yes
2339 DEFAULT_wxUSE_MINIFRAME=yes
2340 DEFAULT_wxUSE_HTML=yes
9a8f0513 2341 DEFAULT_wxUSE_XRC=yes
646b6ec1 2342 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2343 DEFAULT_wxUSE_FILESYSTEM=yes
2344 DEFAULT_wxUSE_FS_INET=yes
2345 DEFAULT_wxUSE_FS_ZIP=yes
2346 DEFAULT_wxUSE_BUSYINFO=yes
2347 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2348 DEFAULT_wxUSE_VALIDATORS=yes
2349
2350 DEFAULT_wxUSE_ACCEL=yes
2351 DEFAULT_wxUSE_BUTTON=yes
2352 DEFAULT_wxUSE_BMPBUTTON=yes
2353 DEFAULT_wxUSE_CALCTRL=yes
2354 DEFAULT_wxUSE_CARET=yes
2355 DEFAULT_wxUSE_CHECKBOX=yes
2356 DEFAULT_wxUSE_CHECKLST=yes
2357 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2358 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
2359 DEFAULT_wxUSE_COMBOBOX=yes
2360 DEFAULT_wxUSE_DISPLAY=yes
2361 DEFAULT_wxUSE_GAUGE=yes
2362 DEFAULT_wxUSE_GRID=yes
2363 DEFAULT_wxUSE_IMAGLIST=yes
2364 DEFAULT_wxUSE_LISTBOOK=yes
2365 DEFAULT_wxUSE_LISTBOX=yes
2366 DEFAULT_wxUSE_LISTCTRL=yes
2367 DEFAULT_wxUSE_NOTEBOOK=yes
2368 DEFAULT_wxUSE_RADIOBOX=yes
2369 DEFAULT_wxUSE_RADIOBTN=yes
2370 DEFAULT_wxUSE_SASH=yes
2371 DEFAULT_wxUSE_SCROLLBAR=yes
2372 DEFAULT_wxUSE_SLIDER=yes
2373 DEFAULT_wxUSE_SPINBTN=yes
2374 DEFAULT_wxUSE_SPINCTRL=yes
2375 DEFAULT_wxUSE_SPLITTER=yes
2376 DEFAULT_wxUSE_STATBMP=yes
2377 DEFAULT_wxUSE_STATBOX=yes
2378 DEFAULT_wxUSE_STATLINE=yes
2379 DEFAULT_wxUSE_STATTEXT=yes
2380 DEFAULT_wxUSE_STATUSBAR=yes
2381 DEFAULT_wxUSE_TABDIALOG=no
2382 DEFAULT_wxUSE_TEXTCTRL=yes
2383 DEFAULT_wxUSE_TOGGLEBTN=yes
2384 DEFAULT_wxUSE_TOOLBAR=yes
2385 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2386 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
2387 DEFAULT_wxUSE_TREECTRL=yes
2388 DEFAULT_wxUSE_POPUPWIN=yes
2389 DEFAULT_wxUSE_TIPWINDOW=yes
2390
2391 DEFAULT_wxUSE_UNICODE=no
2392 DEFAULT_wxUSE_UNICODE_MSLU=yes
2393 DEFAULT_wxUSE_WCSRTOMBS=no
2394
2395 DEFAULT_wxUSE_PALETTE=yes
2396 DEFAULT_wxUSE_IMAGE=yes
2397 DEFAULT_wxUSE_GIF=yes
2398 DEFAULT_wxUSE_PCX=yes
2399 DEFAULT_wxUSE_IFF=no
2400 DEFAULT_wxUSE_PNM=yes
2401 DEFAULT_wxUSE_XPM=yes
2402 DEFAULT_wxUSE_ICO_CUR=yes
2403 DEFAULT_wxUSE_ACCESSIBILITY=no
2404
2405 DEFAULT_wxUSE_MONOLITHIC=no
2406 DEFAULT_wxUSE_PLUGINS=no
2407 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e
VS
2408
2409 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2410fi
2411
2412
2413
2414for toolkit in `echo $ALL_TOOLKITS`; do
2415 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2416 if test "x$LINE" != "x" ; then
2417 has_toolkit_in_cache=1
2418 eval "DEFAULT_$LINE"
2419 eval "CACHE_$toolkit=1"
2420 fi
2421done
2422
2423
2424
2425 enablestring=
2426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2427echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2428 no_cache=0
2429 # Check whether --enable-gui or --disable-gui was given.
2430if test "${enable_gui+set}" = set; then
2431 enableval="$enable_gui"
2432
2433 if test "$enableval" = yes; then
2434 ac_cv_use_gui='wxUSE_GUI=yes'
2435 else
2436 ac_cv_use_gui='wxUSE_GUI=no'
2437 fi
2438
2439else
2440
2441 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2442 if test "x$LINE" != x ; then
2443 eval "DEFAULT_$LINE"
2444 else
2445 no_cache=1
2446 fi
2447
2448 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2449
2450fi;
2451
2452 eval "$ac_cv_use_gui"
2453 if test "$no_cache" != 1; then
2454 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2455 fi
2456
2457 if test "$wxUSE_GUI" = yes; then
2458 echo "$as_me:$LINENO: result: yes" >&5
2459echo "${ECHO_T}yes" >&6
2460 else
2461 echo "$as_me:$LINENO: result: no" >&5
2462echo "${ECHO_T}no" >&6
2463 fi
2464
2465
2466 enablestring=
2467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2468echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2469 no_cache=0
2470 # Check whether --enable-monolithic or --disable-monolithic was given.
2471if test "${enable_monolithic+set}" = set; then
2472 enableval="$enable_monolithic"
2473
2474 if test "$enableval" = yes; then
2475 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2476 else
2477 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2478 fi
2479
2480else
2481
2482 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2483 if test "x$LINE" != x ; then
2484 eval "DEFAULT_$LINE"
2485 else
2486 no_cache=1
2487 fi
2488
2489 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2490
2491fi;
2492
2493 eval "$ac_cv_use_monolithic"
2494 if test "$no_cache" != 1; then
2495 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2496 fi
2497
2498 if test "$wxUSE_MONOLITHIC" = yes; then
2499 echo "$as_me:$LINENO: result: yes" >&5
2500echo "${ECHO_T}yes" >&6
2501 else
2502 echo "$as_me:$LINENO: result: no" >&5
2503echo "${ECHO_T}no" >&6
2504 fi
2505
2506
2507 enablestring=
2508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2509echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2510 no_cache=0
2511 # Check whether --enable-plugins or --disable-plugins was given.
2512if test "${enable_plugins+set}" = set; then
2513 enableval="$enable_plugins"
2514
2515 if test "$enableval" = yes; then
2516 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2517 else
2518 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2519 fi
2520
2521else
2522
2523 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2524 if test "x$LINE" != x ; then
2525 eval "DEFAULT_$LINE"
2526 else
2527 no_cache=1
2528 fi
2529
2530 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2531
2532fi;
2533
2534 eval "$ac_cv_use_plugins"
2535 if test "$no_cache" != 1; then
2536 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2537 fi
2538
2539 if test "$wxUSE_PLUGINS" = yes; then
2540 echo "$as_me:$LINENO: result: yes" >&5
2541echo "${ECHO_T}yes" >&6
2542 else
2543 echo "$as_me:$LINENO: result: no" >&5
2544echo "${ECHO_T}no" >&6
2545 fi
2546
2547
2548if test "$wxUSE_GUI" = "yes"; then
2549
2550
2551 enablestring=
2552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2553echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2554 no_cache=0
2555 # Check whether --enable-universal or --disable-universal was given.
2556if test "${enable_universal+set}" = set; then
2557 enableval="$enable_universal"
2558
2559 if test "$enableval" = yes; then
2560 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2561 else
2562 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2563 fi
2564
2565else
2566
2567 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2568 if test "x$LINE" != x ; then
2569 eval "DEFAULT_$LINE"
2570 else
2571 no_cache=1
2572 fi
2573
2574 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2575
2576fi;
2577
2578 eval "$ac_cv_use_universal"
2579 if test "$no_cache" != 1; then
2580 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2581 fi
2582
2583 if test "$wxUSE_UNIVERSAL" = yes; then
2584 echo "$as_me:$LINENO: result: yes" >&5
2585echo "${ECHO_T}yes" >&6
2586 else
2587 echo "$as_me:$LINENO: result: no" >&5
2588echo "${ECHO_T}no" >&6
2589 fi
2590
2591
2592# Check whether --with-gtk or --without-gtk was given.
2593if test "${with_gtk+set}" = set; then
2594 withval="$with_gtk"
2595 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2596fi;
2597
2598# Check whether --with-motif or --without-motif was given.
2599if test "${with_motif+set}" = set; then
2600 withval="$with_motif"
2601 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2602fi;
2603
2604# Check whether --with-mac or --without-mac was given.
2605if test "${with_mac+set}" = set; then
2606 withval="$with_mac"
c228d3a4 2607 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2608fi;
2609
2610# Check whether --with-cocoa or --without-cocoa was given.
2611if test "${with_cocoa+set}" = set; then
2612 withval="$with_cocoa"
c228d3a4 2613 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2614fi;
2615
2616# Check whether --with-wine or --without-wine was given.
2617if test "${with_wine+set}" = set; then
2618 withval="$with_wine"
2619 wxUSE_WINE="$withval" CACHE_WINE=1
2620fi;
2621
2622# Check whether --with-msw or --without-msw was given.
2623if test "${with_msw+set}" = set; then
2624 withval="$with_msw"
2625 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2626fi;
2627
2628# Check whether --with-pm or --without-pm was given.
2629if test "${with_pm+set}" = set; then
2630 withval="$with_pm"
2631 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2632fi;
2633
2634# Check whether --with-mgl or --without-mgl was given.
2635if test "${with_mgl+set}" = set; then
2636 withval="$with_mgl"
2637 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2638fi;
2639
2640# Check whether --with-microwin or --without-microwin was given.
2641if test "${with_microwin+set}" = set; then
2642 withval="$with_microwin"
2643 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2644fi;
2645
2646# Check whether --with-x11 or --without-x11 was given.
2647if test "${with_x11+set}" = set; then
2648 withval="$with_x11"
2649 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2650fi;
2651
2652 enablestring=
2653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2654echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2655 no_cache=0
2656 # Check whether --enable-nanox or --disable-nanox was given.
2657if test "${enable_nanox+set}" = set; then
2658 enableval="$enable_nanox"
2659
2660 if test "$enableval" = yes; then
2661 ac_cv_use_nanox='wxUSE_NANOX=yes'
2662 else
2663 ac_cv_use_nanox='wxUSE_NANOX=no'
2664 fi
2665
2666else
2667
2668 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2669 if test "x$LINE" != x ; then
2670 eval "DEFAULT_$LINE"
2671 else
2672 no_cache=1
2673 fi
2674
2675 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2676
2677fi;
2678
2679 eval "$ac_cv_use_nanox"
2680 if test "$no_cache" != 1; then
2681 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2682 fi
2683
2684 if test "$wxUSE_NANOX" = yes; then
2685 echo "$as_me:$LINENO: result: yes" >&5
2686echo "${ECHO_T}yes" >&6
2687 else
2688 echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6
2690 fi
2691
2692
2693
2694 enablestring=
2695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2696echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
2697 no_cache=0
2698 # Check whether --enable-gtk2 or --disable-gtk2 was given.
2699if test "${enable_gtk2+set}" = set; then
2700 enableval="$enable_gtk2"
2701
2702 if test "$enableval" = yes; then
2703 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2704 else
2705 ac_cv_use_gtk2='wxUSE_GTK2=no'
2706 fi
2707
2708else
2709
2710 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2711 if test "x$LINE" != x ; then
2712 eval "DEFAULT_$LINE"
2713 else
2714 no_cache=1
2715 fi
2716
2717 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
2718
2719fi;
2720
2721 eval "$ac_cv_use_gtk2"
2722 if test "$no_cache" != 1; then
2723 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2724 fi
2725
2726 if test "$wxUSE_GTK2" = yes; then
2727 echo "$as_me:$LINENO: result: yes" >&5
2728echo "${ECHO_T}yes" >&6
2729 else
2730 echo "$as_me:$LINENO: result: no" >&5
2731echo "${ECHO_T}no" >&6
2732 fi
2733
2734
2735 enablestring=
2736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2737echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2738 no_cache=0
2739 # Check whether --enable-gpe or --disable-gpe was given.
2740if test "${enable_gpe+set}" = set; then
2741 enableval="$enable_gpe"
2742
2743 if test "$enableval" = yes; then
2744 ac_cv_use_gpe='wxUSE_GPE=yes'
2745 else
2746 ac_cv_use_gpe='wxUSE_GPE=no'
2747 fi
2748
2749else
2750
2751 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
2758 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2759
2760fi;
2761
2762 eval "$ac_cv_use_gpe"
2763 if test "$no_cache" != 1; then
2764 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2765 fi
2766
2767 if test "$wxUSE_GPE" = yes; then
2768 echo "$as_me:$LINENO: result: yes" >&5
2769echo "${ECHO_T}yes" >&6
2770 else
2771 echo "$as_me:$LINENO: result: no" >&5
2772echo "${ECHO_T}no" >&6
2773 fi
2774
2775
2776
2777 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2778echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2779 no_cache=0
2780
2781# Check whether --with-libpng or --without-libpng was given.
2782if test "${with_libpng+set}" = set; then
2783 withval="$with_libpng"
2784
2785 if test "$withval" = yes; then
2786 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2787 elif test "$withval" = no; then
2788 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2789 elif test "$withval" = sys; then
2790 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2791 elif test "$withval" = builtin; then
2792 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2793 else
2794 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2795echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2796 { (exit 1); exit 1; }; }
2797 fi
2798
2799else
2800
2801 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2802 if test "x$LINE" != x ; then
2803 eval "DEFAULT_$LINE"
2804 else
2805 no_cache=1
2806 fi
2807
2808 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2809
2810fi;
2811
2812 eval "$ac_cv_use_libpng"
2813 if test "$no_cache" != 1; then
2814 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2815 fi
2816
2817 if test "$wxUSE_LIBPNG" = yes; then
2818 echo "$as_me:$LINENO: result: yes" >&5
2819echo "${ECHO_T}yes" >&6
2820 elif test "$wxUSE_LIBPNG" = no; then
2821 echo "$as_me:$LINENO: result: no" >&5
2822echo "${ECHO_T}no" >&6
2823 elif test "$wxUSE_LIBPNG" = sys; then
2824 echo "$as_me:$LINENO: result: system version" >&5
2825echo "${ECHO_T}system version" >&6
2826 elif test "$wxUSE_LIBPNG" = builtin; then
2827 echo "$as_me:$LINENO: result: builtin version" >&5
2828echo "${ECHO_T}builtin version" >&6
2829 else
2830 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2831echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2832 { (exit 1); exit 1; }; }
2833 fi
2834
2835
2836 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2837echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2838 no_cache=0
2839
2840# Check whether --with-libjpeg or --without-libjpeg was given.
2841if test "${with_libjpeg+set}" = set; then
2842 withval="$with_libjpeg"
2843
2844 if test "$withval" = yes; then
2845 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2846 elif test "$withval" = no; then
2847 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2848 elif test "$withval" = sys; then
2849 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2850 elif test "$withval" = builtin; then
2851 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2852 else
2853 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2854echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2855 { (exit 1); exit 1; }; }
2856 fi
2857
2858else
2859
2860 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2861 if test "x$LINE" != x ; then
2862 eval "DEFAULT_$LINE"
2863 else
2864 no_cache=1
2865 fi
2866
2867 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2868
2869fi;
2870
2871 eval "$ac_cv_use_libjpeg"
2872 if test "$no_cache" != 1; then
2873 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2874 fi
2875
2876 if test "$wxUSE_LIBJPEG" = yes; then
2877 echo "$as_me:$LINENO: result: yes" >&5
2878echo "${ECHO_T}yes" >&6
2879 elif test "$wxUSE_LIBJPEG" = no; then
2880 echo "$as_me:$LINENO: result: no" >&5
2881echo "${ECHO_T}no" >&6
2882 elif test "$wxUSE_LIBJPEG" = sys; then
2883 echo "$as_me:$LINENO: result: system version" >&5
2884echo "${ECHO_T}system version" >&6
2885 elif test "$wxUSE_LIBJPEG" = builtin; then
2886 echo "$as_me:$LINENO: result: builtin version" >&5
2887echo "${ECHO_T}builtin version" >&6
2888 else
2889 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2890echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2891 { (exit 1); exit 1; }; }
2892 fi
2893
2894
2895 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2896echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2897 no_cache=0
2898
2899# Check whether --with-libtiff or --without-libtiff was given.
2900if test "${with_libtiff+set}" = set; then
2901 withval="$with_libtiff"
2902
2903 if test "$withval" = yes; then
2904 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2905 elif test "$withval" = no; then
2906 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2907 elif test "$withval" = sys; then
2908 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2909 elif test "$withval" = builtin; then
2910 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2911 else
2912 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2913echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2914 { (exit 1); exit 1; }; }
2915 fi
2916
2917else
2918
2919 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2920 if test "x$LINE" != x ; then
2921 eval "DEFAULT_$LINE"
2922 else
2923 no_cache=1
2924 fi
2925
2926 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2927
2928fi;
2929
2930 eval "$ac_cv_use_libtiff"
2931 if test "$no_cache" != 1; then
2932 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2933 fi
2934
2935 if test "$wxUSE_LIBTIFF" = yes; then
2936 echo "$as_me:$LINENO: result: yes" >&5
2937echo "${ECHO_T}yes" >&6
2938 elif test "$wxUSE_LIBTIFF" = no; then
2939 echo "$as_me:$LINENO: result: no" >&5
2940echo "${ECHO_T}no" >&6
2941 elif test "$wxUSE_LIBTIFF" = sys; then
2942 echo "$as_me:$LINENO: result: system version" >&5
2943echo "${ECHO_T}system version" >&6
2944 elif test "$wxUSE_LIBTIFF" = builtin; then
2945 echo "$as_me:$LINENO: result: builtin version" >&5
2946echo "${ECHO_T}builtin version" >&6
2947 else
2948 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2949echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2950 { (exit 1); exit 1; }; }
2951 fi
2952
2953
2954 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2955echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2956 no_cache=0
2957
2958# Check whether --with-libxpm or --without-libxpm was given.
2959if test "${with_libxpm+set}" = set; then
2960 withval="$with_libxpm"
2961
2962 if test "$withval" = yes; then
2963 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2964 elif test "$withval" = no; then
2965 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2966 elif test "$withval" = sys; then
2967 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2968 elif test "$withval" = builtin; then
2969 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2970 else
2971 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2972echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2973 { (exit 1); exit 1; }; }
2974 fi
2975
2976else
2977
2978 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2986
2987fi;
2988
2989 eval "$ac_cv_use_libxpm"
2990 if test "$no_cache" != 1; then
2991 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2992 fi
2993
2994 if test "$wxUSE_LIBXPM" = yes; then
2995 echo "$as_me:$LINENO: result: yes" >&5
2996echo "${ECHO_T}yes" >&6
2997 elif test "$wxUSE_LIBXPM" = no; then
2998 echo "$as_me:$LINENO: result: no" >&5
2999echo "${ECHO_T}no" >&6
3000 elif test "$wxUSE_LIBXPM" = sys; then
3001 echo "$as_me:$LINENO: result: system version" >&5
3002echo "${ECHO_T}system version" >&6
3003 elif test "$wxUSE_LIBXPM" = builtin; then
3004 echo "$as_me:$LINENO: result: builtin version" >&5
3005echo "${ECHO_T}builtin version" >&6
3006 else
3007 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3008echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3009 { (exit 1); exit 1; }; }
3010 fi
3011
3012
3013 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
3014echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
3015 no_cache=0
3016
3017# Check whether --with-libmspack or --without-libmspack was given.
3018if test "${with_libmspack+set}" = set; then
3019 withval="$with_libmspack"
3020
3021 if test "$withval" = yes; then
3022 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3023 else
3024 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3025 fi
3026
3027else
3028
3029 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3030 if test "x$LINE" != x ; then
3031 eval "DEFAULT_$LINE"
3032 else
3033 no_cache=1
3034 fi
3035
3036 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3037
3038fi;
3039
3040 eval "$ac_cv_use_libmspack"
3041 if test "$no_cache" != 1; then
3042 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3043 fi
3044
3045 if test "$wxUSE_LIBMSPACK" = yes; then
3046 echo "$as_me:$LINENO: result: yes" >&5
3047echo "${ECHO_T}yes" >&6
3048 else
3049 echo "$as_me:$LINENO: result: no" >&5
3050echo "${ECHO_T}no" >&6
3051 fi
3052
3053
3054 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3055echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3056 no_cache=0
3057
3058# Check whether --with-sdl or --without-sdl was given.
3059if test "${with_sdl+set}" = set; then
3060 withval="$with_sdl"
3061
3062 if test "$withval" = yes; then
3063 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3064 else
3065 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3066 fi
3067
3068else
3069
3070 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3071 if test "x$LINE" != x ; then
3072 eval "DEFAULT_$LINE"
3073 else
3074 no_cache=1
3075 fi
3076
3077 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3078
3079fi;
3080
3081 eval "$ac_cv_use_sdl"
3082 if test "$no_cache" != 1; then
3083 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3084 fi
3085
3086 if test "$wxUSE_LIBSDL" = yes; then
3087 echo "$as_me:$LINENO: result: yes" >&5
3088echo "${ECHO_T}yes" >&6
3089 else
3090 echo "$as_me:$LINENO: result: no" >&5
3091echo "${ECHO_T}no" >&6
3092 fi
3093
3094
d1c38808
VZ
3095 echo "$as_me:$LINENO: checking for --with-gnomeprint" >&5
3096echo $ECHO_N "checking for --with-gnomeprint... $ECHO_C" >&6
3097 no_cache=0
3098
3099# Check whether --with-gnomeprint or --without-gnomeprint was given.
3100if test "${with_gnomeprint+set}" = set; then
3101 withval="$with_gnomeprint"
3102
3103 if test "$withval" = yes; then
3104 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3105 else
3106 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3107 fi
3108
3109else
3110
3111 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3112 if test "x$LINE" != x ; then
3113 eval "DEFAULT_$LINE"
3114 else
3115 no_cache=1
3116 fi
3117
3118 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3119
3120fi;
3121
3122 eval "$ac_cv_use_gnomeprint"
3123 if test "$no_cache" != 1; then
3124 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3125 fi
3126
3127 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3128 echo "$as_me:$LINENO: result: yes" >&5
3129echo "${ECHO_T}yes" >&6
3130 else
3131 echo "$as_me:$LINENO: result: no" >&5
3132echo "${ECHO_T}no" >&6
3133 fi
3134
3135
a848cd7e
SC
3136 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3137echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
3138 no_cache=0
3139
3140# Check whether --with-opengl or --without-opengl was given.
3141if test "${with_opengl+set}" = set; then
3142 withval="$with_opengl"
3143
3144 if test "$withval" = yes; then
3145 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3146 else
3147 ac_cv_use_opengl='wxUSE_OPENGL=no'
3148 fi
3149
3150else
3151
3152 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3153 if test "x$LINE" != x ; then
3154 eval "DEFAULT_$LINE"
3155 else
3156 no_cache=1
3157 fi
3158
3159 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3160
3161fi;
3162
3163 eval "$ac_cv_use_opengl"
3164 if test "$no_cache" != 1; then
3165 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3166 fi
3167
3168 if test "$wxUSE_OPENGL" = yes; then
3169 echo "$as_me:$LINENO: result: yes" >&5
3170echo "${ECHO_T}yes" >&6
3171 else
3172 echo "$as_me:$LINENO: result: no" >&5
3173echo "${ECHO_T}no" >&6
3174 fi
3175
3176
3177fi
3178
3179
3180 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3181echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
3182 no_cache=0
3183
3184# Check whether --with-dmalloc or --without-dmalloc was given.
3185if test "${with_dmalloc+set}" = set; then
3186 withval="$with_dmalloc"
3187
3188 if test "$withval" = yes; then
3189 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3190 else
3191 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3192 fi
3193
3194else
3195
3196 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3197 if test "x$LINE" != x ; then
3198 eval "DEFAULT_$LINE"
3199 else
3200 no_cache=1
3201 fi
3202
3203 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3204
3205fi;
3206
3207 eval "$ac_cv_use_dmalloc"
3208 if test "$no_cache" != 1; then
3209 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3210 fi
3211
3212 if test "$wxUSE_DMALLOC" = yes; then
3213 echo "$as_me:$LINENO: result: yes" >&5
3214echo "${ECHO_T}yes" >&6
3215 else
3216 echo "$as_me:$LINENO: result: no" >&5
3217echo "${ECHO_T}no" >&6
3218 fi
3219
3220
3221 echo "$as_me:$LINENO: checking for --with-regex" >&5
3222echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3223 no_cache=0
3224
3225# Check whether --with-regex or --without-regex was given.
3226if test "${with_regex+set}" = set; then
3227 withval="$with_regex"
3228
3229 if test "$withval" = yes; then
3230 ac_cv_use_regex='wxUSE_REGEX=yes'
3231 elif test "$withval" = no; then
3232 ac_cv_use_regex='wxUSE_REGEX=no'
3233 elif test "$withval" = sys; then
3234 ac_cv_use_regex='wxUSE_REGEX=sys'
3235 elif test "$withval" = builtin; then
3236 ac_cv_use_regex='wxUSE_REGEX=builtin'
3237 else
3238 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3239echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3240 { (exit 1); exit 1; }; }
3241 fi
3242
3243else
3244
3245 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3246 if test "x$LINE" != x ; then
3247 eval "DEFAULT_$LINE"
3248 else
3249 no_cache=1
3250 fi
3251
3252 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3253
3254fi;
3255
3256 eval "$ac_cv_use_regex"
3257 if test "$no_cache" != 1; then
3258 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3259 fi
3260
3261 if test "$wxUSE_REGEX" = yes; then
3262 echo "$as_me:$LINENO: result: yes" >&5
3263echo "${ECHO_T}yes" >&6
3264 elif test "$wxUSE_REGEX" = no; then
3265 echo "$as_me:$LINENO: result: no" >&5
3266echo "${ECHO_T}no" >&6
3267 elif test "$wxUSE_REGEX" = sys; then
3268 echo "$as_me:$LINENO: result: system version" >&5
3269echo "${ECHO_T}system version" >&6
3270 elif test "$wxUSE_REGEX" = builtin; then
3271 echo "$as_me:$LINENO: result: builtin version" >&5
3272echo "${ECHO_T}builtin version" >&6
3273 else
3274 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3275echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3276 { (exit 1); exit 1; }; }
3277 fi
3278
3279
3280 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3281echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3282 no_cache=0
3283
3284# Check whether --with-zlib or --without-zlib was given.
3285if test "${with_zlib+set}" = set; then
3286 withval="$with_zlib"
3287
3288 if test "$withval" = yes; then
3289 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3290 elif test "$withval" = no; then
3291 ac_cv_use_zlib='wxUSE_ZLIB=no'
3292 elif test "$withval" = sys; then
3293 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3294 elif test "$withval" = builtin; then
3295 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3296 else
3297 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3298echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3299 { (exit 1); exit 1; }; }
3300 fi
3301
3302else
3303
3304 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3312
3313fi;
3314
3315 eval "$ac_cv_use_zlib"
3316 if test "$no_cache" != 1; then
3317 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3318 fi
3319
3320 if test "$wxUSE_ZLIB" = yes; then
3321 echo "$as_me:$LINENO: result: yes" >&5
3322echo "${ECHO_T}yes" >&6
3323 elif test "$wxUSE_ZLIB" = no; then
3324 echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
3326 elif test "$wxUSE_ZLIB" = sys; then
3327 echo "$as_me:$LINENO: result: system version" >&5
3328echo "${ECHO_T}system version" >&6
3329 elif test "$wxUSE_ZLIB" = builtin; then
3330 echo "$as_me:$LINENO: result: builtin version" >&5
3331echo "${ECHO_T}builtin version" >&6
3332 else
3333 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3334echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3335 { (exit 1); exit 1; }; }
3336 fi
3337
3338
3339 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3340echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3341 no_cache=0
3342
3343# Check whether --with-odbc or --without-odbc was given.
3344if test "${with_odbc+set}" = set; then
3345 withval="$with_odbc"
3346
3347 if test "$withval" = yes; then
3348 ac_cv_use_odbc='wxUSE_ODBC=yes'
3349 elif test "$withval" = no; then
3350 ac_cv_use_odbc='wxUSE_ODBC=no'
3351 elif test "$withval" = sys; then
3352 ac_cv_use_odbc='wxUSE_ODBC=sys'
3353 elif test "$withval" = builtin; then
3354 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3355 else
3356 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3357echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3358 { (exit 1); exit 1; }; }
3359 fi
3360
3361else
3362
3363 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3364 if test "x$LINE" != x ; then
3365 eval "DEFAULT_$LINE"
3366 else
3367 no_cache=1
3368 fi
3369
3370 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3371
3372fi;
3373
3374 eval "$ac_cv_use_odbc"
3375 if test "$no_cache" != 1; then
3376 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3377 fi
3378
3379 if test "$wxUSE_ODBC" = yes; then
3380 echo "$as_me:$LINENO: result: yes" >&5
3381echo "${ECHO_T}yes" >&6
3382 elif test "$wxUSE_ODBC" = no; then
3383 echo "$as_me:$LINENO: result: no" >&5
3384echo "${ECHO_T}no" >&6
3385 elif test "$wxUSE_ODBC" = sys; then
3386 echo "$as_me:$LINENO: result: system version" >&5
3387echo "${ECHO_T}system version" >&6
3388 elif test "$wxUSE_ODBC" = builtin; then
3389 echo "$as_me:$LINENO: result: builtin version" >&5
3390echo "${ECHO_T}builtin version" >&6
3391 else
3392 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3393echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3394 { (exit 1); exit 1; }; }
3395 fi
3396
3397
3398 echo "$as_me:$LINENO: checking for --with-expat" >&5
3399echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3400 no_cache=0
3401
3402# Check whether --with-expat or --without-expat was given.
3403if test "${with_expat+set}" = set; then
3404 withval="$with_expat"
3405
3406 if test "$withval" = yes; then
3407 ac_cv_use_expat='wxUSE_EXPAT=yes'
3408 elif test "$withval" = no; then
3409 ac_cv_use_expat='wxUSE_EXPAT=no'
3410 elif test "$withval" = sys; then
3411 ac_cv_use_expat='wxUSE_EXPAT=sys'
3412 elif test "$withval" = builtin; then
3413 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3414 else
3415 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3416echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3417 { (exit 1); exit 1; }; }
3418 fi
3419
3420else
3421
3422 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3423 if test "x$LINE" != x ; then
3424 eval "DEFAULT_$LINE"
3425 else
3426 no_cache=1
3427 fi
3428
3429 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3430
3431fi;
3432
3433 eval "$ac_cv_use_expat"
3434 if test "$no_cache" != 1; then
3435 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3436 fi
3437
3438 if test "$wxUSE_EXPAT" = yes; then
3439 echo "$as_me:$LINENO: result: yes" >&5
3440echo "${ECHO_T}yes" >&6
3441 elif test "$wxUSE_EXPAT" = no; then
3442 echo "$as_me:$LINENO: result: no" >&5
3443echo "${ECHO_T}no" >&6
3444 elif test "$wxUSE_EXPAT" = sys; then
3445 echo "$as_me:$LINENO: result: system version" >&5
3446echo "${ECHO_T}system version" >&6
3447 elif test "$wxUSE_EXPAT" = builtin; then
3448 echo "$as_me:$LINENO: result: builtin version" >&5
3449echo "${ECHO_T}builtin version" >&6
3450 else
3451 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3452echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3453 { (exit 1); exit 1; }; }
3454 fi
3455
3456
3457
3458
3459 enablestring=
3460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3461echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3462 no_cache=0
3463 # Check whether --enable-shared or --disable-shared was given.
3464if test "${enable_shared+set}" = set; then
3465 enableval="$enable_shared"
3466
3467 if test "$enableval" = yes; then
3468 ac_cv_use_shared='wxUSE_SHARED=yes'
3469 else
3470 ac_cv_use_shared='wxUSE_SHARED=no'
3471 fi
3472
3473else
3474
3475 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3476 if test "x$LINE" != x ; then
3477 eval "DEFAULT_$LINE"
3478 else
3479 no_cache=1
3480 fi
3481
3482 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3483
3484fi;
3485
3486 eval "$ac_cv_use_shared"
3487 if test "$no_cache" != 1; then
3488 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3489 fi
3490
3491 if test "$wxUSE_SHARED" = yes; then
3492 echo "$as_me:$LINENO: result: yes" >&5
3493echo "${ECHO_T}yes" >&6
3494 else
3495 echo "$as_me:$LINENO: result: no" >&5
3496echo "${ECHO_T}no" >&6
3497 fi
3498
3499
3500 enablestring=
3501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3502echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3503 no_cache=0
3504 # Check whether --enable-optimise or --disable-optimise was given.
3505if test "${enable_optimise+set}" = set; then
3506 enableval="$enable_optimise"
3507
3508 if test "$enableval" = yes; then
3509 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3510 else
3511 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3512 fi
3513
3514else
3515
3516 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3517 if test "x$LINE" != x ; then
3518 eval "DEFAULT_$LINE"
3519 else
3520 no_cache=1
3521 fi
3522
3523 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3524
3525fi;
3526
3527 eval "$ac_cv_use_optimise"
3528 if test "$no_cache" != 1; then
3529 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3530 fi
3531
3532 if test "$wxUSE_OPTIMISE" = yes; then
3533 echo "$as_me:$LINENO: result: yes" >&5
3534echo "${ECHO_T}yes" >&6
3535 else
3536 echo "$as_me:$LINENO: result: no" >&5
3537echo "${ECHO_T}no" >&6
3538 fi
3539
3540
3541 enablestring=
3542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3543echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3544 no_cache=0
3545 # Check whether --enable-debug or --disable-debug was given.
3546if test "${enable_debug+set}" = set; then
3547 enableval="$enable_debug"
3548
3549 if test "$enableval" = yes; then
3550 ac_cv_use_debug='wxUSE_DEBUG=yes'
3551 else
3552 ac_cv_use_debug='wxUSE_DEBUG=no'
3553 fi
3554
3555else
3556
3557 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3558 if test "x$LINE" != x ; then
3559 eval "DEFAULT_$LINE"
3560 else
3561 no_cache=1
3562 fi
3563
3564 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3565
3566fi;
3567
3568 eval "$ac_cv_use_debug"
3569 if test "$no_cache" != 1; then
3570 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3571 fi
3572
3573 if test "$wxUSE_DEBUG" = yes; then
3574 echo "$as_me:$LINENO: result: yes" >&5
3575echo "${ECHO_T}yes" >&6
3576 else
3577 echo "$as_me:$LINENO: result: no" >&5
3578echo "${ECHO_T}no" >&6
3579 fi
3580
3581
3582 enablestring=
3583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3584echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3585 no_cache=0
3586 # Check whether --enable-stl or --disable-stl was given.
3587if test "${enable_stl+set}" = set; then
3588 enableval="$enable_stl"
3589
3590 if test "$enableval" = yes; then
3591 ac_cv_use_stl='wxUSE_STL=yes'
3592 else
3593 ac_cv_use_stl='wxUSE_STL=no'
3594 fi
3595
3596else
3597
3598 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3599 if test "x$LINE" != x ; then
3600 eval "DEFAULT_$LINE"
3601 else
3602 no_cache=1
3603 fi
3604
3605 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3606
3607fi;
3608
3609 eval "$ac_cv_use_stl"
3610 if test "$no_cache" != 1; then
3611 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3612 fi
3613
3614 if test "$wxUSE_STL" = yes; then
3615 echo "$as_me:$LINENO: result: yes" >&5
3616echo "${ECHO_T}yes" >&6
3617 else
3618 echo "$as_me:$LINENO: result: no" >&5
3619echo "${ECHO_T}no" >&6
3620 fi
3621
3622if test "$USE_OS2" = "1"; then
3623
3624 enablestring=
3625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3626echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3627 no_cache=0
3628 # Check whether --enable-omf or --disable-omf was given.
3629if test "${enable_omf+set}" = set; then
3630 enableval="$enable_omf"
3631
3632 if test "$enableval" = yes; then
3633 ac_cv_use_omf='wxUSE_OMF=yes'
3634 else
3635 ac_cv_use_omf='wxUSE_OMF=no'
3636 fi
3637
3638else
3639
3640 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3641 if test "x$LINE" != x ; then
3642 eval "DEFAULT_$LINE"
3643 else
3644 no_cache=1
3645 fi
3646
3647 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3648
3649fi;
3650
3651 eval "$ac_cv_use_omf"
3652 if test "$no_cache" != 1; then
3653 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3654 fi
3655
3656 if test "$wxUSE_OMF" = yes; then
3657 echo "$as_me:$LINENO: result: yes" >&5
3658echo "${ECHO_T}yes" >&6
3659 else
3660 echo "$as_me:$LINENO: result: no" >&5
3661echo "${ECHO_T}no" >&6
3662 fi
3663
3664fi
3665
3666if test "$wxUSE_DEBUG" = "yes"; then
3667 DEFAULT_wxUSE_DEBUG_FLAG=yes
3668 DEFAULT_wxUSE_DEBUG_INFO=yes
3669 BUILD=debug
3670elif test "$wxUSE_DEBUG" = "no"; then
3671 DEFAULT_wxUSE_DEBUG_FLAG=no
3672 DEFAULT_wxUSE_DEBUG_INFO=no
3673 BUILD=release
3674fi
3675
3676
3677 enablestring=
3678 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3679echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3680 no_cache=0
3681 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3682if test "${enable_debug_flag+set}" = set; then
3683 enableval="$enable_debug_flag"
3684
3685 if test "$enableval" = yes; then
3686 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3687 else
3688 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3689 fi
3690
3691else
3692
3693 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3694 if test "x$LINE" != x ; then
3695 eval "DEFAULT_$LINE"
3696 else
3697 no_cache=1
3698 fi
3699
3700 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3701
3702fi;
3703
3704 eval "$ac_cv_use_debug_flag"
3705 if test "$no_cache" != 1; then
3706 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3707 fi
3708
3709 if test "$wxUSE_DEBUG_FLAG" = yes; then
3710 echo "$as_me:$LINENO: result: yes" >&5
3711echo "${ECHO_T}yes" >&6
3712 else
3713 echo "$as_me:$LINENO: result: no" >&5
3714echo "${ECHO_T}no" >&6
3715 fi
3716
3717
3718 enablestring=
3719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3720echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3721 no_cache=0
3722 # Check whether --enable-debug_info or --disable-debug_info was given.
3723if test "${enable_debug_info+set}" = set; then
3724 enableval="$enable_debug_info"
3725
3726 if test "$enableval" = yes; then
3727 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3728 else
3729 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3730 fi
3731
3732else
3733
3734 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3735 if test "x$LINE" != x ; then
3736 eval "DEFAULT_$LINE"
3737 else
3738 no_cache=1
3739 fi
3740
3741 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3742
3743fi;
3744
3745 eval "$ac_cv_use_debug_info"
3746 if test "$no_cache" != 1; then
3747 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3748 fi
3749
3750 if test "$wxUSE_DEBUG_INFO" = yes; then
3751 echo "$as_me:$LINENO: result: yes" >&5
3752echo "${ECHO_T}yes" >&6
3753 else
3754 echo "$as_me:$LINENO: result: no" >&5
3755echo "${ECHO_T}no" >&6
3756 fi
3757
3758
3759 enablestring=
3760 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3761echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3762 no_cache=0
3763 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3764if test "${enable_debug_gdb+set}" = set; then
3765 enableval="$enable_debug_gdb"
3766
3767 if test "$enableval" = yes; then
3768 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3769 else
3770 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3771 fi
3772
3773else
3774
3775 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3776 if test "x$LINE" != x ; then
3777 eval "DEFAULT_$LINE"
3778 else
3779 no_cache=1
3780 fi
3781
3782 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3783
3784fi;
3785
3786 eval "$ac_cv_use_debug_gdb"
3787 if test "$no_cache" != 1; then
3788 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3789 fi
3790
3791 if test "$wxUSE_DEBUG_GDB" = yes; then
3792 echo "$as_me:$LINENO: result: yes" >&5
3793echo "${ECHO_T}yes" >&6
3794 else
3795 echo "$as_me:$LINENO: result: no" >&5
3796echo "${ECHO_T}no" >&6
3797 fi
3798
3799
3800 enablestring=
3801 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3802echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3803 no_cache=0
3804 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3805if test "${enable_debug_cntxt+set}" = set; then
3806 enableval="$enable_debug_cntxt"
3807
3808 if test "$enableval" = yes; then
3809 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3810 else
3811 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3812 fi
3813
3814else
3815
3816 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3817 if test "x$LINE" != x ; then
3818 eval "DEFAULT_$LINE"
3819 else
3820 no_cache=1
3821 fi
3822
3823 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3824
3825fi;
3826
3827 eval "$ac_cv_use_debug_cntxt"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
3833 echo "$as_me:$LINENO: result: yes" >&5
3834echo "${ECHO_T}yes" >&6
3835 else
3836 echo "$as_me:$LINENO: result: no" >&5
3837echo "${ECHO_T}no" >&6
3838 fi
3839
3840
3841 enablestring=
3842 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3843echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3844 no_cache=0
3845 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3846if test "${enable_mem_tracing+set}" = set; then
3847 enableval="$enable_mem_tracing"
3848
3849 if test "$enableval" = yes; then
3850 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3851 else
3852 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3853 fi
3854
3855else
3856
3857 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3858 if test "x$LINE" != x ; then
3859 eval "DEFAULT_$LINE"
3860 else
3861 no_cache=1
3862 fi
3863
3864 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3865
3866fi;
3867
3868 eval "$ac_cv_use_mem_tracing"
3869 if test "$no_cache" != 1; then
3870 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3871 fi
3872
3873 if test "$wxUSE_MEM_TRACING" = yes; then
3874 echo "$as_me:$LINENO: result: yes" >&5
3875echo "${ECHO_T}yes" >&6
3876 else
3877 echo "$as_me:$LINENO: result: no" >&5
3878echo "${ECHO_T}no" >&6
3879 fi
3880
3881
3882 enablestring=
3883 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3884echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3885 no_cache=0
3886 # Check whether --enable-profile or --disable-profile was given.
3887if test "${enable_profile+set}" = set; then
3888 enableval="$enable_profile"
3889
3890 if test "$enableval" = yes; then
3891 ac_cv_use_profile='wxUSE_PROFILE=yes'
3892 else
3893 ac_cv_use_profile='wxUSE_PROFILE=no'
3894 fi
3895
3896else
3897
3898 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3899 if test "x$LINE" != x ; then
3900 eval "DEFAULT_$LINE"
3901 else
3902 no_cache=1
3903 fi
3904
3905 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3906
3907fi;
3908
3909 eval "$ac_cv_use_profile"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_PROFILE" = yes; then
3915 echo "$as_me:$LINENO: result: yes" >&5
3916echo "${ECHO_T}yes" >&6
3917 else
3918 echo "$as_me:$LINENO: result: no" >&5
3919echo "${ECHO_T}no" >&6
3920 fi
3921
3922
3923 enablestring=
3924 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3925echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3926 no_cache=0
3927 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3928if test "${enable_no_rtti+set}" = set; then
3929 enableval="$enable_no_rtti"
3930
3931 if test "$enableval" = yes; then
3932 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3933 else
3934 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3935 fi
3936
3937else
3938
3939 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3940 if test "x$LINE" != x ; then
3941 eval "DEFAULT_$LINE"
3942 else
3943 no_cache=1
3944 fi
3945
3946 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3947
3948fi;
3949
3950 eval "$ac_cv_use_no_rtti"
3951 if test "$no_cache" != 1; then
3952 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3953 fi
3954
3955 if test "$wxUSE_NO_RTTI" = yes; then
3956 echo "$as_me:$LINENO: result: yes" >&5
3957echo "${ECHO_T}yes" >&6
3958 else
3959 echo "$as_me:$LINENO: result: no" >&5
3960echo "${ECHO_T}no" >&6
3961 fi
3962
3963
3964 enablestring=
3965 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3966echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
3967 no_cache=0
3968 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3969if test "${enable_no_exceptions+set}" = set; then
3970 enableval="$enable_no_exceptions"
3971
3972 if test "$enableval" = yes; then
3973 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3974 else
3975 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3976 fi
3977
3978else
3979
3980 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3981 if test "x$LINE" != x ; then
3982 eval "DEFAULT_$LINE"
3983 else
3984 no_cache=1
3985 fi
3986
3987 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
3988
3989fi;
3990
3991 eval "$ac_cv_use_no_exceptions"
3992 if test "$no_cache" != 1; then
3993 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3994 fi
3995
3996 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
3997 echo "$as_me:$LINENO: result: yes" >&5
3998echo "${ECHO_T}yes" >&6
3999 else
4000 echo "$as_me:$LINENO: result: no" >&5
4001echo "${ECHO_T}no" >&6
4002 fi
4003
4004
4005 enablestring=
4006 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
4007echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4008 no_cache=0
4009 # Check whether --enable-permissive or --disable-permissive was given.
4010if test "${enable_permissive+set}" = set; then
4011 enableval="$enable_permissive"
4012
4013 if test "$enableval" = yes; then
4014 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4015 else
4016 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4017 fi
4018
4019else
4020
4021 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
4022 if test "x$LINE" != x ; then
4023 eval "DEFAULT_$LINE"
4024 else
4025 no_cache=1
4026 fi
4027
4028 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4029
4030fi;
4031
4032 eval "$ac_cv_use_permissive"
4033 if test "$no_cache" != 1; then
4034 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4035 fi
4036
4037 if test "$wxUSE_PERMISSIVE" = yes; then
4038 echo "$as_me:$LINENO: result: yes" >&5
4039echo "${ECHO_T}yes" >&6
4040 else
4041 echo "$as_me:$LINENO: result: no" >&5
4042echo "${ECHO_T}no" >&6
4043 fi
4044
4045
4046 enablestring=
4047 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4048echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4049 no_cache=0
4050 # Check whether --enable-no_deps or --disable-no_deps was given.
4051if test "${enable_no_deps+set}" = set; then
4052 enableval="$enable_no_deps"
4053
4054 if test "$enableval" = yes; then
4055 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4056 else
4057 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4058 fi
4059
4060else
4061
4062 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4063 if test "x$LINE" != x ; then
4064 eval "DEFAULT_$LINE"
4065 else
4066 no_cache=1
4067 fi
4068
4069 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4070
4071fi;
4072
4073 eval "$ac_cv_use_no_deps"
4074 if test "$no_cache" != 1; then
4075 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4076 fi
4077
4078 if test "$wxUSE_NO_DEPS" = yes; then
4079 echo "$as_me:$LINENO: result: yes" >&5
4080echo "${ECHO_T}yes" >&6
4081 else
4082 echo "$as_me:$LINENO: result: no" >&5
4083echo "${ECHO_T}no" >&6
4084 fi
4085
4086
4087
4088 enablestring=
4089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
4090echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
4091 no_cache=0
4092 # Check whether --enable-compat22 or --disable-compat22 was given.
4093if test "${enable_compat22+set}" = set; then
4094 enableval="$enable_compat22"
4095
4096 if test "$enableval" = yes; then
4097 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
4098 else
4099 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
4100 fi
4101
4102else
4103
4104 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
4105 if test "x$LINE" != x ; then
4106 eval "DEFAULT_$LINE"
4107 else
4108 no_cache=1
4109 fi
4110
4111 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
4112
4113fi;
4114
4115 eval "$ac_cv_use_compat22"
4116 if test "$no_cache" != 1; then
4117 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4118 fi
4119
4120 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
4121 echo "$as_me:$LINENO: result: yes" >&5
4122echo "${ECHO_T}yes" >&6
4123 else
4124 echo "$as_me:$LINENO: result: no" >&5
4125echo "${ECHO_T}no" >&6
4126 fi
4127
4128
4129 enablestring=disable
4130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4131echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
4132 no_cache=0
4133 # Check whether --enable-compat24 or --disable-compat24 was given.
4134if test "${enable_compat24+set}" = set; then
4135 enableval="$enable_compat24"
4136
4137 if test "$enableval" = yes; then
4138 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4139 else
4140 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4141 fi
4142
4143else
4144
4145 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4146 if test "x$LINE" != x ; then
4147 eval "DEFAULT_$LINE"
4148 else
4149 no_cache=1
4150 fi
4151
4152 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
4153
4154fi;
4155
4156 eval "$ac_cv_use_compat24"
4157 if test "$no_cache" != 1; then
4158 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4159 fi
4160
4161 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
4162 echo "$as_me:$LINENO: result: yes" >&5
4163echo "${ECHO_T}yes" >&6
4164 else
4165 echo "$as_me:$LINENO: result: no" >&5
4166echo "${ECHO_T}no" >&6
4167 fi
4168
4169
ffa0583f
RL
4170
4171 enablestring=
4172 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4173echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4174 no_cache=0
4175 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4176if test "${enable_rpath+set}" = set; then
4177 enableval="$enable_rpath"
ffa0583f
RL
4178
4179 if test "$enableval" = yes; then
4180 ac_cv_use_rpath='wxUSE_RPATH=yes'
4181 else
4182 ac_cv_use_rpath='wxUSE_RPATH=no'
4183 fi
4184
4185else
4186
4187 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4188 if test "x$LINE" != x ; then
4189 eval "DEFAULT_$LINE"
4190 else
4191 no_cache=1
4192 fi
4193
4194 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4195
a848cd7e
SC
4196fi;
4197
ffa0583f
RL
4198 eval "$ac_cv_use_rpath"
4199 if test "$no_cache" != 1; then
4200 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4201 fi
4202
4203 if test "$wxUSE_RPATH" = yes; then
4204 echo "$as_me:$LINENO: result: yes" >&5
4205echo "${ECHO_T}yes" >&6
4206 else
4207 echo "$as_me:$LINENO: result: no" >&5
4208echo "${ECHO_T}no" >&6
4209 fi
4210
a848cd7e
SC
4211
4212
4213
4214
4215 enablestring=
4216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4217echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4218 no_cache=0
4219 # Check whether --enable-intl or --disable-intl was given.
4220if test "${enable_intl+set}" = set; then
4221 enableval="$enable_intl"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_intl='wxUSE_INTL=yes'
4225 else
4226 ac_cv_use_intl='wxUSE_INTL=no'
4227 fi
4228
4229else
4230
4231 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4239
4240fi;
4241
4242 eval "$ac_cv_use_intl"
4243 if test "$no_cache" != 1; then
4244 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4245 fi
4246
4247 if test "$wxUSE_INTL" = yes; then
4248 echo "$as_me:$LINENO: result: yes" >&5
4249echo "${ECHO_T}yes" >&6
4250 else
4251 echo "$as_me:$LINENO: result: no" >&5
4252echo "${ECHO_T}no" >&6
4253 fi
4254
4255
4256 enablestring=
4257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4258echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4259 no_cache=0
4260 # Check whether --enable-config or --disable-config was given.
4261if test "${enable_config+set}" = set; then
4262 enableval="$enable_config"
4263
4264 if test "$enableval" = yes; then
4265 ac_cv_use_config='wxUSE_CONFIG=yes'
4266 else
4267 ac_cv_use_config='wxUSE_CONFIG=no'
4268 fi
4269
4270else
4271
4272 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4273 if test "x$LINE" != x ; then
4274 eval "DEFAULT_$LINE"
4275 else
4276 no_cache=1
4277 fi
4278
4279 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4280
4281fi;
4282
4283 eval "$ac_cv_use_config"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_CONFIG" = yes; then
4289 echo "$as_me:$LINENO: result: yes" >&5
4290echo "${ECHO_T}yes" >&6
4291 else
4292 echo "$as_me:$LINENO: result: no" >&5
4293echo "${ECHO_T}no" >&6
4294 fi
4295
4296
4297
4298 enablestring=
4299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4300echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4301 no_cache=0
4302 # Check whether --enable-protocols or --disable-protocols was given.
4303if test "${enable_protocols+set}" = set; then
4304 enableval="$enable_protocols"
4305
4306 if test "$enableval" = yes; then
4307 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4308 else
4309 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4310 fi
4311
4312else
4313
4314 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4315 if test "x$LINE" != x ; then
4316 eval "DEFAULT_$LINE"
4317 else
4318 no_cache=1
4319 fi
4320
4321 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4322
4323fi;
4324
4325 eval "$ac_cv_use_protocols"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_PROTOCOL" = yes; then
4331 echo "$as_me:$LINENO: result: yes" >&5
4332echo "${ECHO_T}yes" >&6
4333 else
4334 echo "$as_me:$LINENO: result: no" >&5
4335echo "${ECHO_T}no" >&6
4336 fi
4337
4338
4339 enablestring=
4340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4341echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4342 no_cache=0
4343 # Check whether --enable-ftp or --disable-ftp was given.
4344if test "${enable_ftp+set}" = set; then
4345 enableval="$enable_ftp"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4349 else
4350 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4351 fi
4352
4353else
4354
4355 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4363
4364fi;
4365
4366 eval "$ac_cv_use_ftp"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4372 echo "$as_me:$LINENO: result: yes" >&5
4373echo "${ECHO_T}yes" >&6
4374 else
4375 echo "$as_me:$LINENO: result: no" >&5
4376echo "${ECHO_T}no" >&6
4377 fi
4378
4379
4380 enablestring=
4381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4382echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4383 no_cache=0
4384 # Check whether --enable-http or --disable-http was given.
4385if test "${enable_http+set}" = set; then
4386 enableval="$enable_http"
4387
4388 if test "$enableval" = yes; then
4389 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4390 else
4391 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4392 fi
4393
4394else
4395
4396 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4397 if test "x$LINE" != x ; then
4398 eval "DEFAULT_$LINE"
4399 else
4400 no_cache=1
4401 fi
4402
4403 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4404
4405fi;
4406
4407 eval "$ac_cv_use_http"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4413 echo "$as_me:$LINENO: result: yes" >&5
4414echo "${ECHO_T}yes" >&6
4415 else
4416 echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
4418 fi
4419
4420
4421 enablestring=
4422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4423echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4424 no_cache=0
4425 # Check whether --enable-fileproto or --disable-fileproto was given.
4426if test "${enable_fileproto+set}" = set; then
4427 enableval="$enable_fileproto"
4428
4429 if test "$enableval" = yes; then
4430 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4431 else
4432 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4433 fi
4434
4435else
4436
4437 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4438 if test "x$LINE" != x ; then
4439 eval "DEFAULT_$LINE"
4440 else
4441 no_cache=1
4442 fi
4443
4444 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4445
4446fi;
4447
4448 eval "$ac_cv_use_fileproto"
4449 if test "$no_cache" != 1; then
4450 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4451 fi
4452
4453 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4454 echo "$as_me:$LINENO: result: yes" >&5
4455echo "${ECHO_T}yes" >&6
4456 else
4457 echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6
4459 fi
4460
4461
4462 enablestring=
4463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4464echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4465 no_cache=0
4466 # Check whether --enable-sockets or --disable-sockets was given.
4467if test "${enable_sockets+set}" = set; then
4468 enableval="$enable_sockets"
4469
4470 if test "$enableval" = yes; then
4471 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4472 else
4473 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4474 fi
4475
4476else
4477
4478 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4479 if test "x$LINE" != x ; then
4480 eval "DEFAULT_$LINE"
4481 else
4482 no_cache=1
4483 fi
4484
4485 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4486
4487fi;
4488
4489 eval "$ac_cv_use_sockets"
4490 if test "$no_cache" != 1; then
4491 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4492 fi
4493
4494 if test "$wxUSE_SOCKETS" = yes; then
4495 echo "$as_me:$LINENO: result: yes" >&5
4496echo "${ECHO_T}yes" >&6
4497 else
4498 echo "$as_me:$LINENO: result: no" >&5
4499echo "${ECHO_T}no" >&6
4500 fi
4501
4502
4503 enablestring=
4504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4505echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4506 no_cache=0
4507 # Check whether --enable-ole or --disable-ole was given.
4508if test "${enable_ole+set}" = set; then
4509 enableval="$enable_ole"
4510
4511 if test "$enableval" = yes; then
4512 ac_cv_use_ole='wxUSE_OLE=yes'
4513 else
4514 ac_cv_use_ole='wxUSE_OLE=no'
4515 fi
4516
4517else
4518
4519 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4520 if test "x$LINE" != x ; then
4521 eval "DEFAULT_$LINE"
4522 else
4523 no_cache=1
4524 fi
4525
4526 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4527
4528fi;
4529
4530 eval "$ac_cv_use_ole"
4531 if test "$no_cache" != 1; then
4532 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4533 fi
4534
4535 if test "$wxUSE_OLE" = yes; then
4536 echo "$as_me:$LINENO: result: yes" >&5
4537echo "${ECHO_T}yes" >&6
4538 else
4539 echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6
4541 fi
4542
4543
4544 enablestring=
4545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4546echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4547 no_cache=0
4548 # Check whether --enable-dataobj or --disable-dataobj was given.
4549if test "${enable_dataobj+set}" = set; then
4550 enableval="$enable_dataobj"
4551
4552 if test "$enableval" = yes; then
4553 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4554 else
4555 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4556 fi
4557
4558else
4559
4560 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4561 if test "x$LINE" != x ; then
4562 eval "DEFAULT_$LINE"
4563 else
4564 no_cache=1
4565 fi
4566
4567 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4568
4569fi;
4570
4571 eval "$ac_cv_use_dataobj"
4572 if test "$no_cache" != 1; then
4573 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4574 fi
4575
4576 if test "$wxUSE_DATAOBJ" = yes; then
4577 echo "$as_me:$LINENO: result: yes" >&5
4578echo "${ECHO_T}yes" >&6
4579 else
4580 echo "$as_me:$LINENO: result: no" >&5
4581echo "${ECHO_T}no" >&6
4582 fi
4583
4584
4585
4586 enablestring=
4587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4588echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4589 no_cache=0
4590 # Check whether --enable-ipc or --disable-ipc was given.
4591if test "${enable_ipc+set}" = set; then
4592 enableval="$enable_ipc"
4593
4594 if test "$enableval" = yes; then
4595 ac_cv_use_ipc='wxUSE_IPC=yes'
4596 else
4597 ac_cv_use_ipc='wxUSE_IPC=no'
4598 fi
4599
4600else
4601
4602 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4603 if test "x$LINE" != x ; then
4604 eval "DEFAULT_$LINE"
4605 else
4606 no_cache=1
4607 fi
4608
4609 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4610
4611fi;
4612
4613 eval "$ac_cv_use_ipc"
4614 if test "$no_cache" != 1; then
4615 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4616 fi
4617
4618 if test "$wxUSE_IPC" = yes; then
4619 echo "$as_me:$LINENO: result: yes" >&5
4620echo "${ECHO_T}yes" >&6
4621 else
4622 echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6
4624 fi
4625
4626
4627
4628 enablestring=
4629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4630echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4631 no_cache=0
4632 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4633if test "${enable_apple_ieee+set}" = set; then
4634 enableval="$enable_apple_ieee"
4635
4636 if test "$enableval" = yes; then
4637 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4638 else
4639 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4640 fi
4641
4642else
4643
4644 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
4651 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4652
4653fi;
4654
4655 eval "$ac_cv_use_apple_ieee"
4656 if test "$no_cache" != 1; then
4657 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4658 fi
4659
4660 if test "$wxUSE_APPLE_IEEE" = yes; then
4661 echo "$as_me:$LINENO: result: yes" >&5
4662echo "${ECHO_T}yes" >&6
4663 else
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
4666 fi
4667
4668
4669 enablestring=
4670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4671echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
4672 no_cache=0
4673 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4674if test "${enable_catch_segvs+set}" = set; then
4675 enableval="$enable_catch_segvs"
4676
4677 if test "$enableval" = yes; then
4678 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4679 else
4680 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4681 fi
4682
4683else
4684
4685 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
4692 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4693
4694fi;
4695
4696 eval "$ac_cv_use_catch_segvs"
4697 if test "$no_cache" != 1; then
4698 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4699 fi
4700
4701 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4702 echo "$as_me:$LINENO: result: yes" >&5
4703echo "${ECHO_T}yes" >&6
4704 else
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
4707 fi
4708
4709
eaff0f0d
VZ
4710 enablestring=
4711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4712echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
4713 no_cache=0
4714 # Check whether --enable-backtrace or --disable-backtrace was given.
4715if test "${enable_backtrace+set}" = set; then
4716 enableval="$enable_backtrace"
4717
4718 if test "$enableval" = yes; then
4719 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
4720 else
4721 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
4722 fi
4723
4724else
4725
4726 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
4727 if test "x$LINE" != x ; then
4728 eval "DEFAULT_$LINE"
4729 else
4730 no_cache=1
4731 fi
4732
4733 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
4734
4735fi;
4736
4737 eval "$ac_cv_use_backtrace"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
4740 fi
4741
4742 if test "$wxUSE_STACKWALKER" = yes; then
4743 echo "$as_me:$LINENO: result: yes" >&5
4744echo "${ECHO_T}yes" >&6
4745 else
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
4748 fi
4749
4750
a848cd7e
SC
4751 enablestring=
4752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4753echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4754 no_cache=0
4755 # Check whether --enable-cmdline or --disable-cmdline was given.
4756if test "${enable_cmdline+set}" = set; then
4757 enableval="$enable_cmdline"
4758
4759 if test "$enableval" = yes; then
4760 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4761 else
4762 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4763 fi
4764
4765else
4766
4767 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
4768 if test "x$LINE" != x ; then
4769 eval "DEFAULT_$LINE"
4770 else
4771 no_cache=1
4772 fi
4773
4774 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4775
4776fi;
4777
4778 eval "$ac_cv_use_cmdline"
4779 if test "$no_cache" != 1; then
4780 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4781 fi
4782
4783 if test "$wxUSE_CMDLINE_PARSER" = yes; then
4784 echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
4786 else
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
4789 fi
4790
4791
4792 enablestring=
4793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4794echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4795 no_cache=0
4796 # Check whether --enable-datetime or --disable-datetime was given.
4797if test "${enable_datetime+set}" = set; then
4798 enableval="$enable_datetime"
4799
4800 if test "$enableval" = yes; then
4801 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4802 else
4803 ac_cv_use_datetime='wxUSE_DATETIME=no'
4804 fi
4805
4806else
4807
4808 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
4809 if test "x$LINE" != x ; then
4810 eval "DEFAULT_$LINE"
4811 else
4812 no_cache=1
4813 fi
4814
4815 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4816
4817fi;
4818
4819 eval "$ac_cv_use_datetime"
4820 if test "$no_cache" != 1; then
4821 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4822 fi
4823
4824 if test "$wxUSE_DATETIME" = yes; then
4825 echo "$as_me:$LINENO: result: yes" >&5
4826echo "${ECHO_T}yes" >&6
4827 else
4828 echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6
4830 fi
4831
4832
4833 enablestring=
4834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4835echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4836 no_cache=0
4837 # Check whether --enable-dialupman or --disable-dialupman was given.
4838if test "${enable_dialupman+set}" = set; then
4839 enableval="$enable_dialupman"
4840
4841 if test "$enableval" = yes; then
4842 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4843 else
4844 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4845 fi
4846
4847else
4848
4849 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
4856 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4857
4858fi;
4859
4860 eval "$ac_cv_use_dialupman"
4861 if test "$no_cache" != 1; then
4862 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4863 fi
4864
4865 if test "$wxUSE_DIALUP_MANAGER" = yes; then
4866 echo "$as_me:$LINENO: result: yes" >&5
4867echo "${ECHO_T}yes" >&6
4868 else
4869 echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6
4871 fi
4872
4873
4874 enablestring=
4875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4876echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
4877 no_cache=0
4878 # Check whether --enable-dynlib or --disable-dynlib was given.
4879if test "${enable_dynlib+set}" = set; then
4880 enableval="$enable_dynlib"
4881
4882 if test "$enableval" = yes; then
4883 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4884 else
4885 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4886 fi
4887
4888else
4889
4890 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
4897 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
4898
4899fi;
4900
4901 eval "$ac_cv_use_dynlib"
4902 if test "$no_cache" != 1; then
4903 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4904 fi
4905
4906 if test "$wxUSE_DYNLIB_CLASS" = yes; then
4907 echo "$as_me:$LINENO: result: yes" >&5
4908echo "${ECHO_T}yes" >&6
4909 else
4910 echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6
4912 fi
4913
4914
4915 enablestring=
4916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4917echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
4918 no_cache=0
4919 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4920if test "${enable_dynamicloader+set}" = set; then
4921 enableval="$enable_dynamicloader"
4922
4923 if test "$enableval" = yes; then
4924 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4925 else
4926 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4927 fi
4928
4929else
4930
4931 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4932 if test "x$LINE" != x ; then
4933 eval "DEFAULT_$LINE"
4934 else
4935 no_cache=1
4936 fi
4937
4938 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
4939
4940fi;
4941
4942 eval "$ac_cv_use_dynamicloader"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
4948 echo "$as_me:$LINENO: result: yes" >&5
4949echo "${ECHO_T}yes" >&6
4950 else
4951 echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
4953 fi
4954
4955
4956 enablestring=
4957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4958echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
4959 no_cache=0
4960 # Check whether --enable-exceptions or --disable-exceptions was given.
4961if test "${enable_exceptions+set}" = set; then
4962 enableval="$enable_exceptions"
4963
4964 if test "$enableval" = yes; then
4965 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
4966 else
4967 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
4968 fi
4969
4970else
4971
4972 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
4979 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
4980
4981fi;
4982
4983 eval "$ac_cv_use_exceptions"
4984 if test "$no_cache" != 1; then
4985 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
4986 fi
4987
4988 if test "$wxUSE_EXCEPTIONS" = yes; then
4989 echo "$as_me:$LINENO: result: yes" >&5
4990echo "${ECHO_T}yes" >&6
4991 else
4992 echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6
4994 fi
4995
4996
4997 enablestring=
4998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4999echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5000 no_cache=0
5001 # Check whether --enable-ffile or --disable-ffile was given.
5002if test "${enable_ffile+set}" = set; then
5003 enableval="$enable_ffile"
5004
5005 if test "$enableval" = yes; then
5006 ac_cv_use_ffile='wxUSE_FFILE=yes'
5007 else
5008 ac_cv_use_ffile='wxUSE_FFILE=no'
5009 fi
5010
5011else
5012
5013 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
5020 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5021
5022fi;
5023
5024 eval "$ac_cv_use_ffile"
5025 if test "$no_cache" != 1; then
5026 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5027 fi
5028
5029 if test "$wxUSE_FFILE" = yes; then
5030 echo "$as_me:$LINENO: result: yes" >&5
5031echo "${ECHO_T}yes" >&6
5032 else
5033 echo "$as_me:$LINENO: result: no" >&5
5034echo "${ECHO_T}no" >&6
5035 fi
5036
5037
5038 enablestring=
5039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
5040echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5041 no_cache=0
5042 # Check whether --enable-file or --disable-file was given.
5043if test "${enable_file+set}" = set; then
5044 enableval="$enable_file"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_file='wxUSE_FILE=yes'
5048 else
5049 ac_cv_use_file='wxUSE_FILE=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5062
5063fi;
5064
5065 eval "$ac_cv_use_file"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_FILE" = yes; then
5071 echo "$as_me:$LINENO: result: yes" >&5
5072echo "${ECHO_T}yes" >&6
5073 else
5074 echo "$as_me:$LINENO: result: no" >&5
5075echo "${ECHO_T}no" >&6
5076 fi
5077
5078
5079 enablestring=
5080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
5081echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5082 no_cache=0
5083 # Check whether --enable-filesystem or --disable-filesystem was given.
5084if test "${enable_filesystem+set}" = set; then
5085 enableval="$enable_filesystem"
5086
5087 if test "$enableval" = yes; then
5088 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5089 else
5090 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5091 fi
5092
5093else
5094
5095 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
5096 if test "x$LINE" != x ; then
5097 eval "DEFAULT_$LINE"
5098 else
5099 no_cache=1
5100 fi
5101
5102 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5103
5104fi;
5105
5106 eval "$ac_cv_use_filesystem"
5107 if test "$no_cache" != 1; then
5108 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5109 fi
5110
5111 if test "$wxUSE_FILESYSTEM" = yes; then
5112 echo "$as_me:$LINENO: result: yes" >&5
5113echo "${ECHO_T}yes" >&6
5114 else
5115 echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6
5117 fi
5118
5119
5120 enablestring=
5121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
5122echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5123 no_cache=0
5124 # Check whether --enable-fontmap or --disable-fontmap was given.
5125if test "${enable_fontmap+set}" = set; then
5126 enableval="$enable_fontmap"
5127
5128 if test "$enableval" = yes; then
5129 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5130 else
5131 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5132 fi
5133
5134else
5135
5136 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
5143 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5144
5145fi;
5146
5147 eval "$ac_cv_use_fontmap"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_FONTMAP" = yes; then
5153 echo "$as_me:$LINENO: result: yes" >&5
5154echo "${ECHO_T}yes" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158 fi
5159
5160
5161 enablestring=
5162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
5163echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5164 no_cache=0
5165 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5166if test "${enable_fs_inet+set}" = set; then
5167 enableval="$enable_fs_inet"
5168
5169 if test "$enableval" = yes; then
5170 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5171 else
5172 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5173 fi
5174
5175else
5176
5177 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5185
5186fi;
5187
5188 eval "$ac_cv_use_fs_inet"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_FS_INET" = yes; then
5194 echo "$as_me:$LINENO: result: yes" >&5
5195echo "${ECHO_T}yes" >&6
5196 else
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
5199 fi
5200
5201
5202 enablestring=
5203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5204echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5205 no_cache=0
5206 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5207if test "${enable_fs_zip+set}" = set; then
5208 enableval="$enable_fs_zip"
5209
5210 if test "$enableval" = yes; then
5211 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5212 else
5213 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5214 fi
5215
5216else
5217
5218 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5226
5227fi;
5228
5229 eval "$ac_cv_use_fs_zip"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_FS_ZIP" = yes; then
5235 echo "$as_me:$LINENO: result: yes" >&5
5236echo "${ECHO_T}yes" >&6
5237 else
5238 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
5240 fi
5241
5242
5243 enablestring=
5244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5245echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5246 no_cache=0
5247 # Check whether --enable-geometry or --disable-geometry was given.
5248if test "${enable_geometry+set}" = set; then
5249 enableval="$enable_geometry"
5250
5251 if test "$enableval" = yes; then
5252 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5253 else
5254 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5255 fi
5256
5257else
5258
5259 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
5260 if test "x$LINE" != x ; then
5261 eval "DEFAULT_$LINE"
5262 else
5263 no_cache=1
5264 fi
5265
5266 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5267
5268fi;
5269
5270 eval "$ac_cv_use_geometry"
5271 if test "$no_cache" != 1; then
5272 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5273 fi
5274
5275 if test "$wxUSE_GEOMETRY" = yes; then
5276 echo "$as_me:$LINENO: result: yes" >&5
5277echo "${ECHO_T}yes" >&6
5278 else
5279 echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
5281 fi
5282
5283
5284 enablestring=
5285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5286echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5287 no_cache=0
5288 # Check whether --enable-log or --disable-log was given.
5289if test "${enable_log+set}" = set; then
5290 enableval="$enable_log"
5291
5292 if test "$enableval" = yes; then
5293 ac_cv_use_log='wxUSE_LOG=yes'
5294 else
5295 ac_cv_use_log='wxUSE_LOG=no'
5296 fi
5297
5298else
5299
5300 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
5301 if test "x$LINE" != x ; then
5302 eval "DEFAULT_$LINE"
5303 else
5304 no_cache=1
5305 fi
5306
5307 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5308
5309fi;
5310
5311 eval "$ac_cv_use_log"
5312 if test "$no_cache" != 1; then
5313 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5314 fi
5315
5316 if test "$wxUSE_LOG" = yes; then
5317 echo "$as_me:$LINENO: result: yes" >&5
5318echo "${ECHO_T}yes" >&6
5319 else
5320 echo "$as_me:$LINENO: result: no" >&5
5321echo "${ECHO_T}no" >&6
5322 fi
5323
5324
5325 enablestring=
5326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5327echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5328 no_cache=0
5329 # Check whether --enable-longlong or --disable-longlong was given.
5330if test "${enable_longlong+set}" = set; then
5331 enableval="$enable_longlong"
5332
5333 if test "$enableval" = yes; then
5334 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5335 else
5336 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5337 fi
5338
5339else
5340
5341 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5349
5350fi;
5351
5352 eval "$ac_cv_use_longlong"
5353 if test "$no_cache" != 1; then
5354 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5355 fi
5356
5357 if test "$wxUSE_LONGLONG" = yes; then
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
5360 else
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
5363 fi
5364
5365
5366 enablestring=
5367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5368echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5369 no_cache=0
5370 # Check whether --enable-mimetype or --disable-mimetype was given.
5371if test "${enable_mimetype+set}" = set; then
5372 enableval="$enable_mimetype"
5373
5374 if test "$enableval" = yes; then
5375 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5376 else
5377 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5378 fi
5379
5380else
5381
5382 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
5389 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5390
5391fi;
5392
5393 eval "$ac_cv_use_mimetype"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_MIMETYPE" = yes; then
5399 echo "$as_me:$LINENO: result: yes" >&5
5400echo "${ECHO_T}yes" >&6
5401 else
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
5404 fi
5405
5406
5407 enablestring=
5408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5409echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5410 no_cache=0
5411 # Check whether --enable-mslu or --disable-mslu was given.
5412if test "${enable_mslu+set}" = set; then
5413 enableval="$enable_mslu"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5417 else
5418 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5419 fi
5420
5421else
5422
5423 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
5430 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5431
5432fi;
5433
5434 eval "$ac_cv_use_mslu"
5435 if test "$no_cache" != 1; then
5436 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5437 fi
5438
5439 if test "$wxUSE_UNICODE_MSLU" = yes; then
5440 echo "$as_me:$LINENO: result: yes" >&5
5441echo "${ECHO_T}yes" >&6
5442 else
5443 echo "$as_me:$LINENO: result: no" >&5
5444echo "${ECHO_T}no" >&6
5445 fi
5446
5447
5448 enablestring=
5449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5450echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5451 no_cache=0
5452 # Check whether --enable-snglinst or --disable-snglinst was given.
5453if test "${enable_snglinst+set}" = set; then
5454 enableval="$enable_snglinst"
5455
5456 if test "$enableval" = yes; then
5457 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5458 else
5459 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5460 fi
5461
5462else
5463
5464 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
5471 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5472
5473fi;
5474
5475 eval "$ac_cv_use_snglinst"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5481 echo "$as_me:$LINENO: result: yes" >&5
5482echo "${ECHO_T}yes" >&6
5483 else
5484 echo "$as_me:$LINENO: result: no" >&5
5485echo "${ECHO_T}no" >&6
5486 fi
5487
5488
5489 enablestring=
5490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5491echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5492 no_cache=0
5493 # Check whether --enable-streams or --disable-streams was given.
5494if test "${enable_streams+set}" = set; then
5495 enableval="$enable_streams"
5496
5497 if test "$enableval" = yes; then
5498 ac_cv_use_streams='wxUSE_STREAMS=yes'
5499 else
5500 ac_cv_use_streams='wxUSE_STREAMS=no'
5501 fi
5502
5503else
5504
5505 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5513
5514fi;
5515
5516 eval "$ac_cv_use_streams"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_STREAMS" = yes; then
5522 echo "$as_me:$LINENO: result: yes" >&5
5523echo "${ECHO_T}yes" >&6
5524 else
5525 echo "$as_me:$LINENO: result: no" >&5
5526echo "${ECHO_T}no" >&6
5527 fi
5528
5529
5530 enablestring=
5531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5532echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
5533 no_cache=0
5534 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5535if test "${enable_std_iostreams+set}" = set; then
5536 enableval="$enable_std_iostreams"
5537
5538 if test "$enableval" = yes; then
5539 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5540 else
5541 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5542 fi
5543
5544else
5545
5546 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
5553 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
5554
5555fi;
5556
5557 eval "$ac_cv_use_std_iostreams"
5558 if test "$no_cache" != 1; then
5559 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5560 fi
5561
5562 if test "$wxUSE_STD_IOSTREAM" = yes; then
5563 echo "$as_me:$LINENO: result: yes" >&5
5564echo "${ECHO_T}yes" >&6
5565 else
5566 echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
5568 fi
5569
5570
5571 enablestring=
5572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5573echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5574 no_cache=0
5575 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5576if test "${enable_stopwatch+set}" = set; then
5577 enableval="$enable_stopwatch"
5578
5579 if test "$enableval" = yes; then
5580 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5581 else
5582 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5583 fi
5584
5585else
5586
5587 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
5594 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5595
5596fi;
5597
5598 eval "$ac_cv_use_stopwatch"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_STOPWATCH" = yes; then
5604 echo "$as_me:$LINENO: result: yes" >&5
5605echo "${ECHO_T}yes" >&6
5606 else
5607 echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
5609 fi
5610
5611
5612 enablestring=
5613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5614echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5615 no_cache=0
5616 # Check whether --enable-system_options or --disable-system_options was given.
5617if test "${enable_system_options+set}" = set; then
5618 enableval="$enable_system_options"
5619
5620 if test "$enableval" = yes; then
5621 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5622 else
5623 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5624 fi
5625
5626else
5627
5628 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
5629 if test "x$LINE" != x ; then
5630 eval "DEFAULT_$LINE"
5631 else
5632 no_cache=1
5633 fi
5634
5635 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5636
5637fi;
5638
5639 eval "$ac_cv_use_system_options"
5640 if test "$no_cache" != 1; then
5641 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5642 fi
5643
5644 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
5645 echo "$as_me:$LINENO: result: yes" >&5
5646echo "${ECHO_T}yes" >&6
5647 else
5648 echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
5650 fi
5651
5652
5653 enablestring=
5654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5655echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5656 no_cache=0
5657 # Check whether --enable-textbuf or --disable-textbuf was given.
5658if test "${enable_textbuf+set}" = set; then
5659 enableval="$enable_textbuf"
5660
5661 if test "$enableval" = yes; then
5662 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5663 else
5664 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5665 fi
5666
5667else
5668
5669 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
5670 if test "x$LINE" != x ; then
5671 eval "DEFAULT_$LINE"
5672 else
5673 no_cache=1
5674 fi
5675
5676 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5677
5678fi;
5679
5680 eval "$ac_cv_use_textbuf"
5681 if test "$no_cache" != 1; then
5682 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5683 fi
5684
5685 if test "$wxUSE_TEXTBUFFER" = yes; then
5686 echo "$as_me:$LINENO: result: yes" >&5
5687echo "${ECHO_T}yes" >&6
5688 else
5689 echo "$as_me:$LINENO: result: no" >&5
5690echo "${ECHO_T}no" >&6
5691 fi
5692
5693
5694 enablestring=
5695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5696echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5697 no_cache=0
5698 # Check whether --enable-textfile or --disable-textfile was given.
5699if test "${enable_textfile+set}" = set; then
5700 enableval="$enable_textfile"
5701
5702 if test "$enableval" = yes; then
5703 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5704 else
5705 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5706 fi
5707
5708else
5709
5710 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
5711 if test "x$LINE" != x ; then
5712 eval "DEFAULT_$LINE"
5713 else
5714 no_cache=1
5715 fi
5716
5717 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5718
5719fi;
5720
5721 eval "$ac_cv_use_textfile"
5722 if test "$no_cache" != 1; then
5723 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5724 fi
5725
5726 if test "$wxUSE_TEXTFILE" = yes; then
5727 echo "$as_me:$LINENO: result: yes" >&5
5728echo "${ECHO_T}yes" >&6
5729 else
5730 echo "$as_me:$LINENO: result: no" >&5
5731echo "${ECHO_T}no" >&6
5732 fi
5733
5734
5735 enablestring=
5736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5737echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5738 no_cache=0
5739 # Check whether --enable-timer or --disable-timer was given.
5740if test "${enable_timer+set}" = set; then
5741 enableval="$enable_timer"
5742
5743 if test "$enableval" = yes; then
5744 ac_cv_use_timer='wxUSE_TIMER=yes'
5745 else
5746 ac_cv_use_timer='wxUSE_TIMER=no'
5747 fi
5748
5749else
5750
5751 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
5752 if test "x$LINE" != x ; then
5753 eval "DEFAULT_$LINE"
5754 else
5755 no_cache=1
5756 fi
5757
5758 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5759
5760fi;
5761
5762 eval "$ac_cv_use_timer"
5763 if test "$no_cache" != 1; then
5764 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5765 fi
5766
5767 if test "$wxUSE_TIMER" = yes; then
5768 echo "$as_me:$LINENO: result: yes" >&5
5769echo "${ECHO_T}yes" >&6
5770 else
5771 echo "$as_me:$LINENO: result: no" >&5
5772echo "${ECHO_T}no" >&6
5773 fi
5774
5775
5776 enablestring=
5777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5778echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5779 no_cache=0
5780 # Check whether --enable-unicode or --disable-unicode was given.
5781if test "${enable_unicode+set}" = set; then
5782 enableval="$enable_unicode"
5783
5784 if test "$enableval" = yes; then
5785 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5786 else
5787 ac_cv_use_unicode='wxUSE_UNICODE=no'
5788 fi
5789
5790else
5791
5792 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5793 if test "x$LINE" != x ; then
5794 eval "DEFAULT_$LINE"
5795 else
5796 no_cache=1
5797 fi
5798
5799 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
5800
5801fi;
5802
5803 eval "$ac_cv_use_unicode"
5804 if test "$no_cache" != 1; then
5805 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
5806 fi
5807
5808 if test "$wxUSE_UNICODE" = yes; then
5809 echo "$as_me:$LINENO: result: yes" >&5
5810echo "${ECHO_T}yes" >&6
5811 else
5812 echo "$as_me:$LINENO: result: no" >&5
5813echo "${ECHO_T}no" >&6
5814 fi
5815
5816
5817 enablestring=
5818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5819echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
5820 no_cache=0
5821 # Check whether --enable-sound or --disable-sound was given.
5822if test "${enable_sound+set}" = set; then
5823 enableval="$enable_sound"
5824
5825 if test "$enableval" = yes; then
5826 ac_cv_use_sound='wxUSE_SOUND=yes'
5827 else
5828 ac_cv_use_sound='wxUSE_SOUND=no'
5829 fi
5830
5831else
5832
5833 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
5834 if test "x$LINE" != x ; then
5835 eval "DEFAULT_$LINE"
5836 else
5837 no_cache=1
5838 fi
5839
5840 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
5841
5842fi;
5843
5844 eval "$ac_cv_use_sound"
5845 if test "$no_cache" != 1; then
5846 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
5847 fi
5848
5849 if test "$wxUSE_SOUND" = yes; then
5850 echo "$as_me:$LINENO: result: yes" >&5
5851echo "${ECHO_T}yes" >&6
5852 else
5853 echo "$as_me:$LINENO: result: no" >&5
5854echo "${ECHO_T}no" >&6
5855 fi
5856
5857
3b57de8b
RL
5858 enablestring=
5859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
5860echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
5861 no_cache=0
5862 # Check whether --enable-mediactrl or --disable-mediactrl was given.
5863if test "${enable_mediactrl+set}" = set; then
5864 enableval="$enable_mediactrl"
5865
5866 if test "$enableval" = yes; then
5867 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
5868 else
5869 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
5870 fi
5871
5872else
5873
5874 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
5875 if test "x$LINE" != x ; then
5876 eval "DEFAULT_$LINE"
5877 else
5878 no_cache=1
5879 fi
5880
5881 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
5882
5883fi;
5884
5885 eval "$ac_cv_use_mediactrl"
5886 if test "$no_cache" != 1; then
5887 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
5888 fi
5889
5890 if test "$wxUSE_MEDIACTRL" = yes; then
5891 echo "$as_me:$LINENO: result: yes" >&5
5892echo "${ECHO_T}yes" >&6
5893 else
5894 echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6
5896 fi
5897
5898
a848cd7e
SC
5899 enablestring=
5900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5901echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
5902 no_cache=0
5903 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5904if test "${enable_wxprintfv+set}" = set; then
5905 enableval="$enable_wxprintfv"
5906
5907 if test "$enableval" = yes; then
5908 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
5909 else
5910 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
5911 fi
5912
5913else
5914
5915 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
5916 if test "x$LINE" != x ; then
5917 eval "DEFAULT_$LINE"
5918 else
5919 no_cache=1
5920 fi
5921
5922 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
5923
5924fi;
5925
5926 eval "$ac_cv_use_wxprintfv"
5927 if test "$no_cache" != 1; then
5928 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
5929 fi
5930
5931 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
5932 echo "$as_me:$LINENO: result: yes" >&5
5933echo "${ECHO_T}yes" >&6
5934 else
5935 echo "$as_me:$LINENO: result: no" >&5
5936echo "${ECHO_T}no" >&6
5937 fi
5938
5939
5940 enablestring=
5941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5942echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
5943 no_cache=0
5944 # Check whether --enable-zipstream or --disable-zipstream was given.
5945if test "${enable_zipstream+set}" = set; then
5946 enableval="$enable_zipstream"
5947
5948 if test "$enableval" = yes; then
5949 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
5950 else
5951 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
5952 fi
5953
5954else
5955
5956 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
5957 if test "x$LINE" != x ; then
5958 eval "DEFAULT_$LINE"
5959 else
5960 no_cache=1
5961 fi
5962
5963 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
5964
5965fi;
5966
5967 eval "$ac_cv_use_zipstream"
5968 if test "$no_cache" != 1; then
5969 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
5970 fi
5971
5972 if test "$wxUSE_ZIPSTREAM" = yes; then
5973 echo "$as_me:$LINENO: result: yes" >&5
5974echo "${ECHO_T}yes" >&6
5975 else
5976 echo "$as_me:$LINENO: result: no" >&5
5977echo "${ECHO_T}no" >&6
5978 fi
5979
5980
a848cd7e
SC
5981
5982 enablestring=
5983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5984echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
5985 no_cache=0
5986 # Check whether --enable-url or --disable-url was given.
5987if test "${enable_url+set}" = set; then
5988 enableval="$enable_url"
5989
5990 if test "$enableval" = yes; then
5991 ac_cv_use_url='wxUSE_URL=yes'
5992 else
5993 ac_cv_use_url='wxUSE_URL=no'
5994 fi
5995
5996else
5997
5998 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5999 if test "x$LINE" != x ; then
6000 eval "DEFAULT_$LINE"
6001 else
6002 no_cache=1
6003 fi
6004
6005 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6006
6007fi;
6008
6009 eval "$ac_cv_use_url"
6010 if test "$no_cache" != 1; then
6011 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6012 fi
6013
6014 if test "$wxUSE_URL" = yes; then
6015 echo "$as_me:$LINENO: result: yes" >&5
6016echo "${ECHO_T}yes" >&6
6017 else
6018 echo "$as_me:$LINENO: result: no" >&5
6019echo "${ECHO_T}no" >&6
6020 fi
6021
6022
6023 enablestring=
6024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6025echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6026 no_cache=0
6027 # Check whether --enable-protocol or --disable-protocol was given.
6028if test "${enable_protocol+set}" = set; then
6029 enableval="$enable_protocol"
6030
6031 if test "$enableval" = yes; then
6032 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6033 else
6034 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6035 fi
6036
6037else
6038
6039 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6040 if test "x$LINE" != x ; then
6041 eval "DEFAULT_$LINE"
6042 else
6043 no_cache=1
6044 fi
6045
6046 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6047
6048fi;
6049
6050 eval "$ac_cv_use_protocol"
6051 if test "$no_cache" != 1; then
6052 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6053 fi
6054
6055 if test "$wxUSE_PROTOCOL" = yes; then
6056 echo "$as_me:$LINENO: result: yes" >&5
6057echo "${ECHO_T}yes" >&6
6058 else
6059 echo "$as_me:$LINENO: result: no" >&5
6060echo "${ECHO_T}no" >&6
6061 fi
6062
6063
6064 enablestring=
6065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6066echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6067 no_cache=0
6068 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6069if test "${enable_protocol_http+set}" = set; then
6070 enableval="$enable_protocol_http"
6071
6072 if test "$enableval" = yes; then
6073 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6074 else
6075 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6076 fi
6077
6078else
6079
6080 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6081 if test "x$LINE" != x ; then
6082 eval "DEFAULT_$LINE"
6083 else
6084 no_cache=1
6085 fi
6086
6087 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6088
6089fi;
6090
6091 eval "$ac_cv_use_protocol_http"
6092 if test "$no_cache" != 1; then
6093 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6094 fi
6095
6096 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6097 echo "$as_me:$LINENO: result: yes" >&5
6098echo "${ECHO_T}yes" >&6
6099 else
6100 echo "$as_me:$LINENO: result: no" >&5
6101echo "${ECHO_T}no" >&6
6102 fi
6103
6104
6105 enablestring=
6106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6107echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6108 no_cache=0
6109 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6110if test "${enable_protocol_ftp+set}" = set; then
6111 enableval="$enable_protocol_ftp"
6112
6113 if test "$enableval" = yes; then
6114 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6115 else
6116 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6117 fi
6118
6119else
6120
6121 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6122 if test "x$LINE" != x ; then
6123 eval "DEFAULT_$LINE"
6124 else
6125 no_cache=1
6126 fi
6127
6128 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6129
6130fi;
6131
6132 eval "$ac_cv_use_protocol_ftp"
6133 if test "$no_cache" != 1; then
6134 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6135 fi
6136
6137 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6138 echo "$as_me:$LINENO: result: yes" >&5
6139echo "${ECHO_T}yes" >&6
6140 else
6141 echo "$as_me:$LINENO: result: no" >&5
6142echo "${ECHO_T}no" >&6
6143 fi
6144
6145
6146 enablestring=
6147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6148echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6149 no_cache=0
6150 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6151if test "${enable_protocol_file+set}" = set; then
6152 enableval="$enable_protocol_file"
6153
6154 if test "$enableval" = yes; then
6155 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6156 else
6157 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6158 fi
6159
6160else
6161
6162 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6170
6171fi;
6172
6173 eval "$ac_cv_use_protocol_file"
6174 if test "$no_cache" != 1; then
6175 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6176 fi
6177
6178 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6179 echo "$as_me:$LINENO: result: yes" >&5
6180echo "${ECHO_T}yes" >&6
6181 else
6182 echo "$as_me:$LINENO: result: no" >&5
6183echo "${ECHO_T}no" >&6
6184 fi
6185
6186
6187
6188
6189
6190 enablestring=
6191 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6192echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6193 no_cache=0
6194 # Check whether --enable-threads or --disable-threads was given.
6195if test "${enable_threads+set}" = set; then
6196 enableval="$enable_threads"
6197
6198 if test "$enableval" = yes; then
6199 ac_cv_use_threads='wxUSE_THREADS=yes'
6200 else
6201 ac_cv_use_threads='wxUSE_THREADS=no'
6202 fi
6203
6204else
6205
6206 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6207 if test "x$LINE" != x ; then
6208 eval "DEFAULT_$LINE"
6209 else
6210 no_cache=1
6211 fi
6212
6213 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6214
6215fi;
6216
6217 eval "$ac_cv_use_threads"
6218 if test "$no_cache" != 1; then
6219 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6220 fi
6221
6222 if test "$wxUSE_THREADS" = yes; then
6223 echo "$as_me:$LINENO: result: yes" >&5
6224echo "${ECHO_T}yes" >&6
6225 else
6226 echo "$as_me:$LINENO: result: no" >&5
6227echo "${ECHO_T}no" >&6
6228 fi
6229
6230
6231if test "$wxUSE_GUI" = "yes"; then
6232
6233
6234
6235 enablestring=
6236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6237echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6238 no_cache=0
6239 # Check whether --enable-docview or --disable-docview was given.
6240if test "${enable_docview+set}" = set; then
6241 enableval="$enable_docview"
6242
6243 if test "$enableval" = yes; then
6244 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6245 else
6246 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6247 fi
6248
6249else
6250
6251 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6252 if test "x$LINE" != x ; then
6253 eval "DEFAULT_$LINE"
6254 else
6255 no_cache=1
6256 fi
6257
6258 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6259
6260fi;
6261
6262 eval "$ac_cv_use_docview"
6263 if test "$no_cache" != 1; then
6264 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6265 fi
6266
6267 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
6268 echo "$as_me:$LINENO: result: yes" >&5
6269echo "${ECHO_T}yes" >&6
6270 else
6271 echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6
6273 fi
6274
6275
6276 enablestring=
6277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6278echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6279 no_cache=0
6280 # Check whether --enable-help or --disable-help was given.
6281if test "${enable_help+set}" = set; then
6282 enableval="$enable_help"
6283
6284 if test "$enableval" = yes; then
6285 ac_cv_use_help='wxUSE_HELP=yes'
6286 else
6287 ac_cv_use_help='wxUSE_HELP=no'
6288 fi
6289
6290else
6291
6292 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6293 if test "x$LINE" != x ; then
6294 eval "DEFAULT_$LINE"
6295 else
6296 no_cache=1
6297 fi
6298
6299 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6300
6301fi;
6302
6303 eval "$ac_cv_use_help"
6304 if test "$no_cache" != 1; then
6305 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6306 fi
6307
6308 if test "$wxUSE_HELP" = yes; then
6309 echo "$as_me:$LINENO: result: yes" >&5
6310echo "${ECHO_T}yes" >&6
6311 else
6312 echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6
6314 fi
6315
6316
6317 enablestring=
6318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6319echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6320 no_cache=0
6321 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6322if test "${enable_mshtmlhelp+set}" = set; then
6323 enableval="$enable_mshtmlhelp"
6324
6325 if test "$enableval" = yes; then
6326 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6327 else
6328 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6329 fi
6330
6331else
6332
6333 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6341
6342fi;
6343
6344 eval "$ac_cv_use_mshtmlhelp"
6345 if test "$no_cache" != 1; then
6346 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6347 fi
6348
6349 if test "$wxUSE_MS_HTML_HELP" = yes; then
6350 echo "$as_me:$LINENO: result: yes" >&5
6351echo "${ECHO_T}yes" >&6
6352 else
6353 echo "$as_me:$LINENO: result: no" >&5
6354echo "${ECHO_T}no" >&6
6355 fi
6356
6357
6358 enablestring=
6359 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6360echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6361 no_cache=0
6362 # Check whether --enable-html or --disable-html was given.
6363if test "${enable_html+set}" = set; then
6364 enableval="$enable_html"
6365
6366 if test "$enableval" = yes; then
6367 ac_cv_use_html='wxUSE_HTML=yes'
6368 else
6369 ac_cv_use_html='wxUSE_HTML=no'
6370 fi
6371
6372else
6373
6374 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6375 if test "x$LINE" != x ; then
6376 eval "DEFAULT_$LINE"
6377 else
6378 no_cache=1
6379 fi
6380
6381 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6382
6383fi;
6384
6385 eval "$ac_cv_use_html"
6386 if test "$no_cache" != 1; then
6387 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6388 fi
6389
6390 if test "$wxUSE_HTML" = yes; then
6391 echo "$as_me:$LINENO: result: yes" >&5
6392echo "${ECHO_T}yes" >&6
6393 else
6394 echo "$as_me:$LINENO: result: no" >&5
6395echo "${ECHO_T}no" >&6
6396 fi
6397
6398
6399 enablestring=
6400 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6401echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6402 no_cache=0
6403 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6404if test "${enable_htmlhelp+set}" = set; then
6405 enableval="$enable_htmlhelp"
6406
6407 if test "$enableval" = yes; then
6408 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6409 else
6410 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6411 fi
6412
6413else
6414
6415 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6416 if test "x$LINE" != x ; then
6417 eval "DEFAULT_$LINE"
6418 else
6419 no_cache=1
6420 fi
6421
6422 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6423
6424fi;
6425
6426 eval "$ac_cv_use_htmlhelp"
6427 if test "$no_cache" != 1; then
6428 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6429 fi
6430
6431 if test "$wxUSE_WXHTML_HELP" = yes; then
6432 echo "$as_me:$LINENO: result: yes" >&5
6433echo "${ECHO_T}yes" >&6
6434 else
6435 echo "$as_me:$LINENO: result: no" >&5
6436echo "${ECHO_T}no" >&6
6437 fi
6438
6439
9a8f0513
VS
6440 enablestring=
6441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6442echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6443 no_cache=0
6444 # Check whether --enable-xrc or --disable-xrc was given.
6445if test "${enable_xrc+set}" = set; then
6446 enableval="$enable_xrc"
6447
6448 if test "$enableval" = yes; then
6449 ac_cv_use_xrc='wxUSE_XRC=yes'
6450 else
6451 ac_cv_use_xrc='wxUSE_XRC=no'
6452 fi
6453
6454else
6455
6456 LINE=`grep "wxUSE_XRC" ${wx_arg_cache_file}`
6457 if test "x$LINE" != x ; then
6458 eval "DEFAULT_$LINE"
6459 else
6460 no_cache=1
6461 fi
6462
6463 ac_cv_use_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6464
6465fi;
6466
6467 eval "$ac_cv_use_xrc"
6468 if test "$no_cache" != 1; then
6469 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6470 fi
6471
6472 if test "$wxUSE_XRC" = yes; then
6473 echo "$as_me:$LINENO: result: yes" >&5
6474echo "${ECHO_T}yes" >&6
6475 else
6476 echo "$as_me:$LINENO: result: no" >&5
6477echo "${ECHO_T}no" >&6
6478 fi
6479
6480
a848cd7e
SC
6481 enablestring=
6482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6483echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6484 no_cache=0
6485 # Check whether --enable-constraints or --disable-constraints was given.
6486if test "${enable_constraints+set}" = set; then
6487 enableval="$enable_constraints"
6488
6489 if test "$enableval" = yes; then
6490 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6491 else
6492 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6493 fi
6494
6495else
6496
6497 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6498 if test "x$LINE" != x ; then
6499 eval "DEFAULT_$LINE"
6500 else
6501 no_cache=1
6502 fi
6503
6504 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6505
6506fi;
6507
6508 eval "$ac_cv_use_constraints"
6509 if test "$no_cache" != 1; then
6510 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6511 fi
6512
6513 if test "$wxUSE_CONSTRAINTS" = yes; then
6514 echo "$as_me:$LINENO: result: yes" >&5
6515echo "${ECHO_T}yes" >&6
6516 else
6517 echo "$as_me:$LINENO: result: no" >&5
6518echo "${ECHO_T}no" >&6
6519 fi
6520
6521
6522 enablestring=
6523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6524echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6525 no_cache=0
6526 # Check whether --enable-printarch or --disable-printarch was given.
6527if test "${enable_printarch+set}" = set; then
6528 enableval="$enable_printarch"
6529
6530 if test "$enableval" = yes; then
6531 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6532 else
6533 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6534 fi
6535
6536else
6537
6538 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6539 if test "x$LINE" != x ; then
6540 eval "DEFAULT_$LINE"
6541 else
6542 no_cache=1
6543 fi
6544
6545 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6546
6547fi;
6548
6549 eval "$ac_cv_use_printarch"
6550 if test "$no_cache" != 1; then
6551 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6552 fi
6553
6554 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
6555 echo "$as_me:$LINENO: result: yes" >&5
6556echo "${ECHO_T}yes" >&6
6557 else
6558 echo "$as_me:$LINENO: result: no" >&5
6559echo "${ECHO_T}no" >&6
6560 fi
6561
6562
6563 enablestring=
6564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6565echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6566 no_cache=0
6567 # Check whether --enable-mdi or --disable-mdi was given.
6568if test "${enable_mdi+set}" = set; then
6569 enableval="$enable_mdi"
6570
6571 if test "$enableval" = yes; then
8a7b1113 6572 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6573 else
8a7b1113 6574 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6575 fi
6576
6577else
6578
8a7b1113 6579 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6580 if test "x$LINE" != x ; then
6581 eval "DEFAULT_$LINE"
6582 else
6583 no_cache=1
6584 fi
6585
8a7b1113 6586 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6587
6588fi;
6589
6590 eval "$ac_cv_use_mdi"
6591 if test "$no_cache" != 1; then
6592 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6593 fi
6594
8a7b1113
VZ
6595 if test "$wxUSE_MDI" = yes; then
6596 echo "$as_me:$LINENO: result: yes" >&5
6597echo "${ECHO_T}yes" >&6
6598 else
6599 echo "$as_me:$LINENO: result: no" >&5
6600echo "${ECHO_T}no" >&6
6601 fi
6602
6603
6604 enablestring=
6605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6606echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6607 no_cache=0
6608 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6609if test "${enable_mdidoc+set}" = set; then
6610 enableval="$enable_mdidoc"
6611
6612 if test "$enableval" = yes; then
6613 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6614 else
6615 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6616 fi
6617
6618else
6619
6620 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6621 if test "x$LINE" != x ; then
6622 eval "DEFAULT_$LINE"
6623 else
6624 no_cache=1
6625 fi
6626
6627 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6628
6629fi;
6630
6631 eval "$ac_cv_use_mdidoc"
6632 if test "$no_cache" != 1; then
6633 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6634 fi
6635
a848cd7e
SC
6636 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6637 echo "$as_me:$LINENO: result: yes" >&5
6638echo "${ECHO_T}yes" >&6
6639 else
6640 echo "$as_me:$LINENO: result: no" >&5
6641echo "${ECHO_T}no" >&6
6642 fi
6643
6644
6645 enablestring=
6646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6647echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6648 no_cache=0
6649 # Check whether --enable-loggui or --disable-loggui was given.
6650if test "${enable_loggui+set}" = set; then
6651 enableval="$enable_loggui"
6652
6653 if test "$enableval" = yes; then
6654 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6655 else
6656 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6657 fi
6658
6659else
6660
6661 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6662 if test "x$LINE" != x ; then
6663 eval "DEFAULT_$LINE"
6664 else
6665 no_cache=1
6666 fi
6667
6668 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6669
6670fi;
6671
6672 eval "$ac_cv_use_loggui"
6673 if test "$no_cache" != 1; then
6674 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6675 fi
6676
6677 if test "$wxUSE_LOGGUI" = yes; then
6678 echo "$as_me:$LINENO: result: yes" >&5
6679echo "${ECHO_T}yes" >&6
6680 else
6681 echo "$as_me:$LINENO: result: no" >&5
6682echo "${ECHO_T}no" >&6
6683 fi
6684
6685
6686 enablestring=
6687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6688echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6689 no_cache=0
6690 # Check whether --enable-logwin or --disable-logwin was given.
6691if test "${enable_logwin+set}" = set; then
6692 enableval="$enable_logwin"
6693
6694 if test "$enableval" = yes; then
6695 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6696 else
6697 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6698 fi
6699
6700else
6701
6702 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6703 if test "x$LINE" != x ; then
6704 eval "DEFAULT_$LINE"
6705 else
6706 no_cache=1
6707 fi
6708
6709 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6710
6711fi;
6712
6713 eval "$ac_cv_use_logwin"
6714 if test "$no_cache" != 1; then
6715 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6716 fi
6717
6718 if test "$wxUSE_LOGWINDOW" = yes; then
6719 echo "$as_me:$LINENO: result: yes" >&5
6720echo "${ECHO_T}yes" >&6
6721 else
6722 echo "$as_me:$LINENO: result: no" >&5
6723echo "${ECHO_T}no" >&6
6724 fi
6725
6726
6727 enablestring=
6728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6729echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6730 no_cache=0
6731 # Check whether --enable-logdialog or --disable-logdialog was given.
6732if test "${enable_logdialog+set}" = set; then
6733 enableval="$enable_logdialog"
6734
6735 if test "$enableval" = yes; then
6736 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6737 else
6738 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6739 fi
6740
6741else
6742
6743 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6751
6752fi;
6753
6754 eval "$ac_cv_use_logdialog"
6755 if test "$no_cache" != 1; then
6756 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6757 fi
6758
6759 if test "$wxUSE_LOGDIALOG" = yes; then
6760 echo "$as_me:$LINENO: result: yes" >&5
6761echo "${ECHO_T}yes" >&6
6762 else
6763 echo "$as_me:$LINENO: result: no" >&5
6764echo "${ECHO_T}no" >&6
6765 fi
6766
6767
646b6ec1
VS
6768 enablestring=
6769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6770echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6771 no_cache=0
6772 # Check whether --enable-webkit or --disable-webkit was given.
6773if test "${enable_webkit+set}" = set; then
6774 enableval="$enable_webkit"
6775
6776 if test "$enableval" = yes; then
6777 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6778 else
6779 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6780 fi
6781
6782else
6783
6784 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
6791 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6792
6793fi;
6794
6795 eval "$ac_cv_use_webkit"
6796 if test "$no_cache" != 1; then
6797 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
6798 fi
6799
6800 if test "$wxUSE_WEBKIT" = yes; then
6801 echo "$as_me:$LINENO: result: yes" >&5
6802echo "${ECHO_T}yes" >&6
6803 else
6804 echo "$as_me:$LINENO: result: no" >&5
6805echo "${ECHO_T}no" >&6
6806 fi
6807
6808
a848cd7e
SC
6809
6810 enablestring=
6811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6812echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
6813 no_cache=0
6814 # Check whether --enable-postscript or --disable-postscript was given.
6815if test "${enable_postscript+set}" = set; then
6816 enableval="$enable_postscript"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6820 else
6821 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6822 fi
6823
6824else
6825
6826 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6827 if test "x$LINE" != x ; then
6828 eval "DEFAULT_$LINE"
6829 else
6830 no_cache=1
6831 fi
6832
6833 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6834
6835fi;
6836
6837 eval "$ac_cv_use_postscript"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_POSTSCRIPT" = yes; then
6843 echo "$as_me:$LINENO: result: yes" >&5
6844echo "${ECHO_T}yes" >&6
6845 else
6846 echo "$as_me:$LINENO: result: no" >&5
6847echo "${ECHO_T}no" >&6
6848 fi
6849
6850
6851
6852
6853
6854 enablestring=
6855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6856echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
6857 no_cache=0
6858 # Check whether --enable-prologio or --disable-prologio was given.
6859if test "${enable_prologio+set}" = set; then
6860 enableval="$enable_prologio"
6861
6862 if test "$enableval" = yes; then
6863 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
6864 else
6865 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
6866 fi
6867
6868else
6869
6870 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
6871 if test "x$LINE" != x ; then
6872 eval "DEFAULT_$LINE"
6873 else
6874 no_cache=1
6875 fi
6876
6877 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6878
6879fi;
6880
6881 eval "$ac_cv_use_prologio"
6882 if test "$no_cache" != 1; then
6883 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
6884 fi
6885
6886 if test "$wxUSE_PROLOGIO" = yes; then
6887 echo "$as_me:$LINENO: result: yes" >&5
6888echo "${ECHO_T}yes" >&6
6889 else
6890 echo "$as_me:$LINENO: result: no" >&5
6891echo "${ECHO_T}no" >&6
6892 fi
6893
6894
6895 enablestring=
6896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6897echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
6898 no_cache=0
6899 # Check whether --enable-resources or --disable-resources was given.
6900if test "${enable_resources+set}" = set; then
6901 enableval="$enable_resources"
6902
6903 if test "$enableval" = yes; then
6904 ac_cv_use_resources='wxUSE_RESOURCES=yes'
6905 else
6906 ac_cv_use_resources='wxUSE_RESOURCES=no'
6907 fi
6908
6909else
6910
6911 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
6912 if test "x$LINE" != x ; then
6913 eval "DEFAULT_$LINE"
6914 else
6915 no_cache=1
6916 fi
6917
6918 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6919
6920fi;
6921
6922 eval "$ac_cv_use_resources"
6923 if test "$no_cache" != 1; then
6924 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
6925 fi
6926
6927 if test "$wxUSE_RESOURCES" = yes; then
6928 echo "$as_me:$LINENO: result: yes" >&5
6929echo "${ECHO_T}yes" >&6
6930 else
6931 echo "$as_me:$LINENO: result: no" >&5
6932echo "${ECHO_T}no" >&6
6933 fi
6934
6935
6936
6937
6938 enablestring=
6939 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6940echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
6941 no_cache=0
6942 # Check whether --enable-clipboard or --disable-clipboard was given.
6943if test "${enable_clipboard+set}" = set; then
6944 enableval="$enable_clipboard"
6945
6946 if test "$enableval" = yes; then
6947 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6948 else
6949 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6950 fi
6951
6952else
6953
6954 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6955 if test "x$LINE" != x ; then
6956 eval "DEFAULT_$LINE"
6957 else
6958 no_cache=1
6959 fi
6960
6961 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6962
6963fi;
6964
6965 eval "$ac_cv_use_clipboard"
6966 if test "$no_cache" != 1; then
6967 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6968 fi
6969
6970 if test "$wxUSE_CLIPBOARD" = yes; then
6971 echo "$as_me:$LINENO: result: yes" >&5
6972echo "${ECHO_T}yes" >&6
6973 else
6974 echo "$as_me:$LINENO: result: no" >&5
6975echo "${ECHO_T}no" >&6
6976 fi
6977
6978
6979 enablestring=
6980 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6981echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
6982 no_cache=0
6983 # Check whether --enable-dnd or --disable-dnd was given.
6984if test "${enable_dnd+set}" = set; then
6985 enableval="$enable_dnd"
6986
6987 if test "$enableval" = yes; then
6988 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6989 else
6990 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6991 fi
6992
6993else
6994
6995 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6996 if test "x$LINE" != x ; then
6997 eval "DEFAULT_$LINE"
6998 else
6999 no_cache=1
7000 fi
7001
7002 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7003
7004fi;
7005
7006 eval "$ac_cv_use_dnd"
7007 if test "$no_cache" != 1; then
7008 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7009 fi
7010
7011 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7012 echo "$as_me:$LINENO: result: yes" >&5
7013echo "${ECHO_T}yes" >&6
7014 else
7015 echo "$as_me:$LINENO: result: no" >&5
7016echo "${ECHO_T}no" >&6
7017 fi
7018
7019
7020 enablestring=
7021 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7022echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7023 no_cache=0
7024 # Check whether --enable-metafile or --disable-metafile was given.
7025if test "${enable_metafile+set}" = set; then
7026 enableval="$enable_metafile"
7027
7028 if test "$enableval" = yes; then
7029 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7030 else
7031 ac_cv_use_metafile='wxUSE_METAFILE=no'
7032 fi
7033
7034else
7035
7036 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7037 if test "x$LINE" != x ; then
7038 eval "DEFAULT_$LINE"
7039 else
7040 no_cache=1
7041 fi
7042
7043 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7044
7045fi;
7046
7047 eval "$ac_cv_use_metafile"
7048 if test "$no_cache" != 1; then
7049 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7050 fi
7051
7052 if test "$wxUSE_METAFILE" = yes; then
7053 echo "$as_me:$LINENO: result: yes" >&5
7054echo "${ECHO_T}yes" >&6
7055 else
7056 echo "$as_me:$LINENO: result: no" >&5
7057echo "${ECHO_T}no" >&6
7058 fi
7059
7060
7061
7062
7063
7064 enablestring=
7065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7066echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7067 no_cache=0
7068 # Check whether --enable-controls or --disable-controls was given.
7069if test "${enable_controls+set}" = set; then
7070 enableval="$enable_controls"
7071
7072 if test "$enableval" = yes; then
7073 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7074 else
7075 ac_cv_use_controls='wxUSE_CONTROLS=no'
7076 fi
7077
7078else
7079
7080 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7081 if test "x$LINE" != x ; then
7082 eval "DEFAULT_$LINE"
7083 else
7084 no_cache=1
7085 fi
7086
7087 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7088
7089fi;
7090
7091 eval "$ac_cv_use_controls"
7092 if test "$no_cache" != 1; then
7093 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7094 fi
7095
7096 if test "$wxUSE_CONTROLS" = yes; then
7097 echo "$as_me:$LINENO: result: yes" >&5
7098echo "${ECHO_T}yes" >&6
7099 else
7100 echo "$as_me:$LINENO: result: no" >&5
7101echo "${ECHO_T}no" >&6
7102 fi
7103
7104
7105if test "$wxUSE_CONTROLS" = "yes"; then
7106 DEFAULT_wxUSE_ACCEL=yes
7107 DEFAULT_wxUSE_BMPBUTTON=yes
7108 DEFAULT_wxUSE_BUTTON=yes
7109 DEFAULT_wxUSE_CALCTRL=no
7110 DEFAULT_wxUSE_CARET=yes
7111 DEFAULT_wxUSE_COMBOBOX=yes
7112 DEFAULT_wxUSE_CHECKBOX=yes
7113 DEFAULT_wxUSE_CHECKLISTBOX=yes
7114 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7115 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e
SC
7116 DEFAULT_wxUSE_GAUGE=yes
7117 DEFAULT_wxUSE_GRID=yes
7118 DEFAULT_wxUSE_IMAGLIST=yes
7119 DEFAULT_wxUSE_LISTBOOK=yes
7120 DEFAULT_wxUSE_LISTBOX=yes
7121 DEFAULT_wxUSE_LISTCTRL=yes
7122 DEFAULT_wxUSE_NOTEBOOK=yes
7123 DEFAULT_wxUSE_RADIOBOX=yes
7124 DEFAULT_wxUSE_RADIOBTN=yes
7125 DEFAULT_wxUSE_SASH=yes
7126 DEFAULT_wxUSE_SCROLLBAR=yes
7127 DEFAULT_wxUSE_SLIDER=yes
7128 DEFAULT_wxUSE_SPINBTN=yes
7129 DEFAULT_wxUSE_SPINCTRL=yes
7130 DEFAULT_wxUSE_SPLITTER=yes
7131 DEFAULT_wxUSE_STATBMP=yes
7132 DEFAULT_wxUSE_STATBOX=yes
7133 DEFAULT_wxUSE_STATLINE=yes
7134 DEFAULT_wxUSE_STATUSBAR=yes
7135 DEFAULT_wxUSE_TAB_DIALOG=yes
7136 DEFAULT_wxUSE_TOGGLEBTN=yes
7137 DEFAULT_wxUSE_TOOLBAR=yes
7138 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7139 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7140 DEFAULT_wxUSE_TOOLTIPS=yes
7141 DEFAULT_wxUSE_TREECTRL=yes
7142 DEFAULT_wxUSE_POPUPWIN=yes
7143 DEFAULT_wxUSE_TIPWINDOW=yes
7144elif test "$wxUSE_CONTROLS" = "no"; then
7145 DEFAULT_wxUSE_ACCEL=no
7146 DEFAULT_wxUSE_BMPBUTTON=no
7147 DEFAULT_wxUSE_BUTTON=no
7148 DEFAULT_wxUSE_CALCTRL=no
7149 DEFAULT_wxUSE_CARET=no
7150 DEFAULT_wxUSE_COMBOBOX=no
7151 DEFAULT_wxUSE_CHECKBOX=no
7152 DEFAULT_wxUSE_CHECKLISTBOX=no
7153 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7154 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e
SC
7155 DEFAULT_wxUSE_GAUGE=no
7156 DEFAULT_wxUSE_GRID=no
7157 DEFAULT_wxUSE_IMAGLIST=no
7158 DEFAULT_wxUSE_LISTBOOK=no
7159 DEFAULT_wxUSE_LISTBOX=no
7160 DEFAULT_wxUSE_LISTCTRL=no
7161 DEFAULT_wxUSE_NOTEBOOK=no
7162 DEFAULT_wxUSE_RADIOBOX=no
7163 DEFAULT_wxUSE_RADIOBTN=no
7164 DEFAULT_wxUSE_SASH=no
7165 DEFAULT_wxUSE_SCROLLBAR=no
7166 DEFAULT_wxUSE_SLIDER=no
7167 DEFAULT_wxUSE_SPINBTN=no
7168 DEFAULT_wxUSE_SPINCTRL=no
7169 DEFAULT_wxUSE_SPLITTER=no
7170 DEFAULT_wxUSE_STATBMP=no
7171 DEFAULT_wxUSE_STATBOX=no
7172 DEFAULT_wxUSE_STATLINE=no
7173 DEFAULT_wxUSE_STATUSBAR=no
7174 DEFAULT_wxUSE_TAB_DIALOG=no
7175 DEFAULT_wxUSE_TOGGLEBTN=no
7176 DEFAULT_wxUSE_TOOLBAR=no
7177 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7178 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7179 DEFAULT_wxUSE_TOOLTIPS=no
7180 DEFAULT_wxUSE_TREECTRL=no
7181 DEFAULT_wxUSE_POPUPWIN=no
7182 DEFAULT_wxUSE_TIPWINDOW=no
7183fi
7184
a848cd7e
SC
7185
7186 enablestring=
7187 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7188echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7189 no_cache=0
7190 # Check whether --enable-accel or --disable-accel was given.
7191if test "${enable_accel+set}" = set; then
7192 enableval="$enable_accel"
7193
7194 if test "$enableval" = yes; then
7195 ac_cv_use_accel='wxUSE_ACCEL=yes'
7196 else
7197 ac_cv_use_accel='wxUSE_ACCEL=no'
7198 fi
7199
7200else
7201
7202 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7203 if test "x$LINE" != x ; then
7204 eval "DEFAULT_$LINE"
7205 else
7206 no_cache=1
7207 fi
7208
7209 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7210
7211fi;
7212
7213 eval "$ac_cv_use_accel"
7214 if test "$no_cache" != 1; then
7215 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7216 fi
7217
7218 if test "$wxUSE_ACCEL" = yes; then
7219 echo "$as_me:$LINENO: result: yes" >&5
7220echo "${ECHO_T}yes" >&6
7221 else
7222 echo "$as_me:$LINENO: result: no" >&5
7223echo "${ECHO_T}no" >&6
7224 fi
7225
7226
7227 enablestring=
7228 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7229echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7230 no_cache=0
7231 # Check whether --enable-button or --disable-button was given.
7232if test "${enable_button+set}" = set; then
7233 enableval="$enable_button"
7234
7235 if test "$enableval" = yes; then
7236 ac_cv_use_button='wxUSE_BUTTON=yes'
7237 else
7238 ac_cv_use_button='wxUSE_BUTTON=no'
7239 fi
7240
7241else
7242
7243 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7244 if test "x$LINE" != x ; then
7245 eval "DEFAULT_$LINE"
7246 else
7247 no_cache=1
7248 fi
7249
7250 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7251
7252fi;
7253
7254 eval "$ac_cv_use_button"
7255 if test "$no_cache" != 1; then
7256 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7257 fi
7258
7259 if test "$wxUSE_BUTTON" = yes; then
7260 echo "$as_me:$LINENO: result: yes" >&5
7261echo "${ECHO_T}yes" >&6
7262 else
7263 echo "$as_me:$LINENO: result: no" >&5
7264echo "${ECHO_T}no" >&6
7265 fi
7266
7267
7268 enablestring=
7269 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7270echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7271 no_cache=0
7272 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7273if test "${enable_bmpbutton+set}" = set; then
7274 enableval="$enable_bmpbutton"
7275
7276 if test "$enableval" = yes; then
7277 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7278 else
7279 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7280 fi
7281
7282else
7283
7284 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7285 if test "x$LINE" != x ; then
7286 eval "DEFAULT_$LINE"
7287 else
7288 no_cache=1
7289 fi
7290
7291 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7292
7293fi;
7294
7295 eval "$ac_cv_use_bmpbutton"
7296 if test "$no_cache" != 1; then
7297 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7298 fi
7299
7300 if test "$wxUSE_BMPBUTTON" = yes; then
7301 echo "$as_me:$LINENO: result: yes" >&5
7302echo "${ECHO_T}yes" >&6
7303 else
7304 echo "$as_me:$LINENO: result: no" >&5
7305echo "${ECHO_T}no" >&6
7306 fi
7307
7308
7309 enablestring=
7310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7311echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7312 no_cache=0
7313 # Check whether --enable-calendar or --disable-calendar was given.
7314if test "${enable_calendar+set}" = set; then
7315 enableval="$enable_calendar"
7316
7317 if test "$enableval" = yes; then
7318 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7319 else
7320 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7321 fi
7322
7323else
7324
7325 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7326 if test "x$LINE" != x ; then
7327 eval "DEFAULT_$LINE"
7328 else
7329 no_cache=1
7330 fi
7331
7332 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7333
7334fi;
7335
7336 eval "$ac_cv_use_calendar"
7337 if test "$no_cache" != 1; then
7338 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7339 fi
7340
7341 if test "$wxUSE_CALCTRL" = yes; then
7342 echo "$as_me:$LINENO: result: yes" >&5
7343echo "${ECHO_T}yes" >&6
7344 else
7345 echo "$as_me:$LINENO: result: no" >&5
7346echo "${ECHO_T}no" >&6
7347 fi
7348
7349
7350 enablestring=
7351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7352echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7353 no_cache=0
7354 # Check whether --enable-caret or --disable-caret was given.
7355if test "${enable_caret+set}" = set; then
7356 enableval="$enable_caret"
7357
7358 if test "$enableval" = yes; then
7359 ac_cv_use_caret='wxUSE_CARET=yes'
7360 else
7361 ac_cv_use_caret='wxUSE_CARET=no'
7362 fi
7363
7364else
7365
7366 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7367 if test "x$LINE" != x ; then
7368 eval "DEFAULT_$LINE"
7369 else
7370 no_cache=1
7371 fi
7372
7373 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7374
7375fi;
7376
7377 eval "$ac_cv_use_caret"
7378 if test "$no_cache" != 1; then
7379 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7380 fi
7381
7382 if test "$wxUSE_CARET" = yes; then
7383 echo "$as_me:$LINENO: result: yes" >&5
7384echo "${ECHO_T}yes" >&6
7385 else
7386 echo "$as_me:$LINENO: result: no" >&5
7387echo "${ECHO_T}no" >&6
7388 fi
7389
7390
7391 enablestring=
7392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7393echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7394 no_cache=0
7395 # Check whether --enable-checkbox or --disable-checkbox was given.
7396if test "${enable_checkbox+set}" = set; then
7397 enableval="$enable_checkbox"
7398
7399 if test "$enableval" = yes; then
7400 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7401 else
7402 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7403 fi
7404
7405else
7406
7407 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7408 if test "x$LINE" != x ; then
7409 eval "DEFAULT_$LINE"
7410 else
7411 no_cache=1
7412 fi
7413
7414 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7415
7416fi;
7417
7418 eval "$ac_cv_use_checkbox"
7419 if test "$no_cache" != 1; then
7420 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7421 fi
7422
7423 if test "$wxUSE_CHECKBOX" = yes; then
7424 echo "$as_me:$LINENO: result: yes" >&5
7425echo "${ECHO_T}yes" >&6
7426 else
7427 echo "$as_me:$LINENO: result: no" >&5
7428echo "${ECHO_T}no" >&6
7429 fi
7430
7431
7432 enablestring=
7433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7434echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7435 no_cache=0
7436 # Check whether --enable-checklst or --disable-checklst was given.
7437if test "${enable_checklst+set}" = set; then
7438 enableval="$enable_checklst"
7439
7440 if test "$enableval" = yes; then
7441 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7442 else
7443 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7444 fi
7445
7446else
7447
7448 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7449 if test "x$LINE" != x ; then
7450 eval "DEFAULT_$LINE"
7451 else
7452 no_cache=1
7453 fi
7454
7455 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7456
7457fi;
7458
7459 eval "$ac_cv_use_checklst"
7460 if test "$no_cache" != 1; then
7461 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7462 fi
7463
7464 if test "$wxUSE_CHECKLST" = yes; then
7465 echo "$as_me:$LINENO: result: yes" >&5
7466echo "${ECHO_T}yes" >&6
7467 else
7468 echo "$as_me:$LINENO: result: no" >&5
7469echo "${ECHO_T}no" >&6
7470 fi
7471
7472
7473 enablestring=
7474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7475echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7476 no_cache=0
7477 # Check whether --enable-choice or --disable-choice was given.
7478if test "${enable_choice+set}" = set; then
7479 enableval="$enable_choice"
7480
7481 if test "$enableval" = yes; then
7482 ac_cv_use_choice='wxUSE_CHOICE=yes'
7483 else
7484 ac_cv_use_choice='wxUSE_CHOICE=no'
7485 fi
7486
7487else
7488
7489 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7490 if test "x$LINE" != x ; then
7491 eval "DEFAULT_$LINE"
7492 else
7493 no_cache=1
7494 fi
7495
7496 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7497
7498fi;
7499
7500 eval "$ac_cv_use_choice"
7501 if test "$no_cache" != 1; then
7502 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7503 fi
7504
7505 if test "$wxUSE_CHOICE" = yes; then
7506 echo "$as_me:$LINENO: result: yes" >&5
7507echo "${ECHO_T}yes" >&6
7508 else
7509 echo "$as_me:$LINENO: result: no" >&5
7510echo "${ECHO_T}no" >&6
7511 fi
7512
7513
92bbdbcd
WS
7514 enablestring=
7515 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7516echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7517 no_cache=0
7518 # Check whether --enable-choicebook or --disable-choicebook was given.
7519if test "${enable_choicebook+set}" = set; then
7520 enableval="$enable_choicebook"
7521
7522 if test "$enableval" = yes; then
7523 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7524 else
7525 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7526 fi
7527
7528else
7529
7530 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7531 if test "x$LINE" != x ; then
7532 eval "DEFAULT_$LINE"
7533 else
7534 no_cache=1
7535 fi
7536
7537 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7538
7539fi;
7540
7541 eval "$ac_cv_use_choicebook"
7542 if test "$no_cache" != 1; then
7543 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7544 fi
7545
7546 if test "$wxUSE_CHOICEBOOK" = yes; then
7547 echo "$as_me:$LINENO: result: yes" >&5
7548echo "${ECHO_T}yes" >&6
7549 else
7550 echo "$as_me:$LINENO: result: no" >&5
7551echo "${ECHO_T}no" >&6
7552 fi
7553
7554
a848cd7e
SC
7555 enablestring=
7556 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7557echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7558 no_cache=0
7559 # Check whether --enable-combobox or --disable-combobox was given.
7560if test "${enable_combobox+set}" = set; then
7561 enableval="$enable_combobox"
7562
7563 if test "$enableval" = yes; then
7564 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7565 else
7566 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7567 fi
7568
7569else
7570
7571 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7572 if test "x$LINE" != x ; then
7573 eval "DEFAULT_$LINE"
7574 else
7575 no_cache=1
7576 fi
7577
7578 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7579
7580fi;
7581
7582 eval "$ac_cv_use_combobox"
7583 if test "$no_cache" != 1; then
7584 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7585 fi
7586
7587 if test "$wxUSE_COMBOBOX" = yes; then
7588 echo "$as_me:$LINENO: result: yes" >&5
7589echo "${ECHO_T}yes" >&6
7590 else
7591 echo "$as_me:$LINENO: result: no" >&5
7592echo "${ECHO_T}no" >&6
7593 fi
7594
7595
7596 enablestring=
7597 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7598echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7599 no_cache=0
7600 # Check whether --enable-display or --disable-display was given.
7601if test "${enable_display+set}" = set; then
7602 enableval="$enable_display"
7603
7604 if test "$enableval" = yes; then
7605 ac_cv_use_display='wxUSE_DISPLAY=yes'
7606 else
7607 ac_cv_use_display='wxUSE_DISPLAY=no'
7608 fi
7609
7610else
7611
7612 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7613 if test "x$LINE" != x ; then
7614 eval "DEFAULT_$LINE"
7615 else
7616 no_cache=1
7617 fi
7618
7619 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7620
7621fi;
7622
7623 eval "$ac_cv_use_display"
7624 if test "$no_cache" != 1; then
7625 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7626 fi
7627
7628 if test "$wxUSE_DISPLAY" = yes; then
7629 echo "$as_me:$LINENO: result: yes" >&5
7630echo "${ECHO_T}yes" >&6
7631 else
7632 echo "$as_me:$LINENO: result: no" >&5
7633echo "${ECHO_T}no" >&6
7634 fi
7635
7636
7637 enablestring=
7638 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7639echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7640 no_cache=0
7641 # Check whether --enable-gauge or --disable-gauge was given.
7642if test "${enable_gauge+set}" = set; then
7643 enableval="$enable_gauge"
7644
7645 if test "$enableval" = yes; then
7646 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7647 else
7648 ac_cv_use_gauge='wxUSE_GAUGE=no'
7649 fi
7650
7651else
7652
7653 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7654 if test "x$LINE" != x ; then
7655 eval "DEFAULT_$LINE"
7656 else
7657 no_cache=1
7658 fi
7659
7660 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7661
7662fi;
7663
7664 eval "$ac_cv_use_gauge"
7665 if test "$no_cache" != 1; then
7666 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7667 fi
7668
7669 if test "$wxUSE_GAUGE" = yes; then
7670 echo "$as_me:$LINENO: result: yes" >&5
7671echo "${ECHO_T}yes" >&6
7672 else
7673 echo "$as_me:$LINENO: result: no" >&5
7674echo "${ECHO_T}no" >&6
7675 fi
7676
7677
7678 enablestring=
7679 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7680echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7681 no_cache=0
7682 # Check whether --enable-grid or --disable-grid was given.
7683if test "${enable_grid+set}" = set; then
7684 enableval="$enable_grid"
7685
7686 if test "$enableval" = yes; then
7687 ac_cv_use_grid='wxUSE_GRID=yes'
7688 else
7689 ac_cv_use_grid='wxUSE_GRID=no'
7690 fi
7691
7692else
7693
7694 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7695 if test "x$LINE" != x ; then
7696 eval "DEFAULT_$LINE"
7697 else
7698 no_cache=1
7699 fi
7700
7701 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7702
7703fi;
7704
7705 eval "$ac_cv_use_grid"
7706 if test "$no_cache" != 1; then
7707 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7708 fi
7709
7710 if test "$wxUSE_GRID" = yes; then
7711 echo "$as_me:$LINENO: result: yes" >&5
7712echo "${ECHO_T}yes" >&6
7713 else
7714 echo "$as_me:$LINENO: result: no" >&5
7715echo "${ECHO_T}no" >&6
7716 fi
7717
7718
7719 enablestring=
7720 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7721echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
7722 no_cache=0
7723 # Check whether --enable-imaglist or --disable-imaglist was given.
7724if test "${enable_imaglist+set}" = set; then
7725 enableval="$enable_imaglist"
7726
7727 if test "$enableval" = yes; then
7728 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7729 else
7730 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7731 fi
7732
7733else
7734
7735 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7736 if test "x$LINE" != x ; then
7737 eval "DEFAULT_$LINE"
7738 else
7739 no_cache=1
7740 fi
7741
7742 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
7743
7744fi;
7745
7746 eval "$ac_cv_use_imaglist"
7747 if test "$no_cache" != 1; then
7748 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7749 fi
7750
7751 if test "$wxUSE_IMAGLIST" = yes; then
7752 echo "$as_me:$LINENO: result: yes" >&5
7753echo "${ECHO_T}yes" >&6
7754 else
7755 echo "$as_me:$LINENO: result: no" >&5
7756echo "${ECHO_T}no" >&6
7757 fi
7758
7759
7760 enablestring=
7761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7762echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7763 no_cache=0
7764 # Check whether --enable-listbook or --disable-listbook was given.
7765if test "${enable_listbook+set}" = set; then
7766 enableval="$enable_listbook"
7767
7768 if test "$enableval" = yes; then
7769 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7770 else
7771 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7772 fi
7773
7774else
7775
7776 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7777 if test "x$LINE" != x ; then
7778 eval "DEFAULT_$LINE"
7779 else
7780 no_cache=1
7781 fi
7782
7783 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7784
7785fi;
7786
7787 eval "$ac_cv_use_listbook"
7788 if test "$no_cache" != 1; then
7789 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7790 fi
7791
7792 if test "$wxUSE_LISTBOOK" = yes; then
7793 echo "$as_me:$LINENO: result: yes" >&5
7794echo "${ECHO_T}yes" >&6
7795 else
7796 echo "$as_me:$LINENO: result: no" >&5
7797echo "${ECHO_T}no" >&6
7798 fi
7799
7800
7801 enablestring=
7802 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7803echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
7804 no_cache=0
7805 # Check whether --enable-listbox or --disable-listbox was given.
7806if test "${enable_listbox+set}" = set; then
7807 enableval="$enable_listbox"
7808
7809 if test "$enableval" = yes; then
7810 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7811 else
7812 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7813 fi
7814
7815else
7816
7817 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7818 if test "x$LINE" != x ; then
7819 eval "DEFAULT_$LINE"
7820 else
7821 no_cache=1
7822 fi
7823
7824 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
7825
7826fi;
7827
7828 eval "$ac_cv_use_listbox"
7829 if test "$no_cache" != 1; then
7830 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7831 fi
7832
7833 if test "$wxUSE_LISTBOX" = yes; then
7834 echo "$as_me:$LINENO: result: yes" >&5
7835echo "${ECHO_T}yes" >&6
7836 else
7837 echo "$as_me:$LINENO: result: no" >&5
7838echo "${ECHO_T}no" >&6
7839 fi
7840
7841
7842 enablestring=
7843 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7844echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
7845 no_cache=0
7846 # Check whether --enable-listctrl or --disable-listctrl was given.
7847if test "${enable_listctrl+set}" = set; then
7848 enableval="$enable_listctrl"
7849
7850 if test "$enableval" = yes; then
7851 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7852 else
7853 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7854 fi
7855
7856else
7857
7858 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7859 if test "x$LINE" != x ; then
7860 eval "DEFAULT_$LINE"
7861 else
7862 no_cache=1
7863 fi
7864
7865 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
7866
7867fi;
7868
7869 eval "$ac_cv_use_listctrl"
7870 if test "$no_cache" != 1; then
7871 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7872 fi
7873
7874 if test "$wxUSE_LISTCTRL" = yes; then
7875 echo "$as_me:$LINENO: result: yes" >&5
7876echo "${ECHO_T}yes" >&6
7877 else
7878 echo "$as_me:$LINENO: result: no" >&5
7879echo "${ECHO_T}no" >&6
7880 fi
7881
7882
7883 enablestring=
7884 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7885echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
7886 no_cache=0
7887 # Check whether --enable-notebook or --disable-notebook was given.
7888if test "${enable_notebook+set}" = set; then
7889 enableval="$enable_notebook"
7890
7891 if test "$enableval" = yes; then
7892 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7893 else
7894 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7895 fi
7896
7897else
7898
7899 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7900 if test "x$LINE" != x ; then
7901 eval "DEFAULT_$LINE"
7902 else
7903 no_cache=1
7904 fi
7905
7906 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
7907
7908fi;
7909
7910 eval "$ac_cv_use_notebook"
7911 if test "$no_cache" != 1; then
7912 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7913 fi
7914
7915 if test "$wxUSE_NOTEBOOK" = yes; then
7916 echo "$as_me:$LINENO: result: yes" >&5
7917echo "${ECHO_T}yes" >&6
7918 else
7919 echo "$as_me:$LINENO: result: no" >&5
7920echo "${ECHO_T}no" >&6
7921 fi
7922
7923
7924 enablestring=
7925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7926echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
7927 no_cache=0
7928 # Check whether --enable-radiobox or --disable-radiobox was given.
7929if test "${enable_radiobox+set}" = set; then
7930 enableval="$enable_radiobox"
7931
7932 if test "$enableval" = yes; then
7933 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7934 else
7935 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7936 fi
7937
7938else
7939
7940 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7941 if test "x$LINE" != x ; then
7942 eval "DEFAULT_$LINE"
7943 else
7944 no_cache=1
7945 fi
7946
7947 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
7948
7949fi;
7950
7951 eval "$ac_cv_use_radiobox"
7952 if test "$no_cache" != 1; then
7953 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7954 fi
7955
7956 if test "$wxUSE_RADIOBOX" = yes; then
7957 echo "$as_me:$LINENO: result: yes" >&5
7958echo "${ECHO_T}yes" >&6
7959 else
7960 echo "$as_me:$LINENO: result: no" >&5
7961echo "${ECHO_T}no" >&6
7962 fi
7963
7964
7965 enablestring=
7966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7967echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
7968 no_cache=0
7969 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7970if test "${enable_radiobtn+set}" = set; then
7971 enableval="$enable_radiobtn"
7972
7973 if test "$enableval" = yes; then
7974 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7975 else
7976 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7977 fi
7978
7979else
7980
7981 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7982 if test "x$LINE" != x ; then
7983 eval "DEFAULT_$LINE"
7984 else
7985 no_cache=1
7986 fi
7987
7988 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
7989
7990fi;
7991
7992 eval "$ac_cv_use_radiobtn"
7993 if test "$no_cache" != 1; then
7994 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7995 fi
7996
7997 if test "$wxUSE_RADIOBTN" = yes; then
7998 echo "$as_me:$LINENO: result: yes" >&5
7999echo "${ECHO_T}yes" >&6
8000 else
8001 echo "$as_me:$LINENO: result: no" >&5
8002echo "${ECHO_T}no" >&6
8003 fi
8004
8005
8006 enablestring=
8007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8008echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8009 no_cache=0
8010 # Check whether --enable-sash or --disable-sash was given.
8011if test "${enable_sash+set}" = set; then
8012 enableval="$enable_sash"
8013
8014 if test "$enableval" = yes; then
8015 ac_cv_use_sash='wxUSE_SASH=yes'
8016 else
8017 ac_cv_use_sash='wxUSE_SASH=no'
8018 fi
8019
8020else
8021
8022 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8023 if test "x$LINE" != x ; then
8024 eval "DEFAULT_$LINE"
8025 else
8026 no_cache=1
8027 fi
8028
8029 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8030
8031fi;
8032
8033 eval "$ac_cv_use_sash"
8034 if test "$no_cache" != 1; then
8035 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8036 fi
8037
8038 if test "$wxUSE_SASH" = yes; then
8039 echo "$as_me:$LINENO: result: yes" >&5
8040echo "${ECHO_T}yes" >&6
8041 else
8042 echo "$as_me:$LINENO: result: no" >&5
8043echo "${ECHO_T}no" >&6
8044 fi
8045
8046
8047 enablestring=
8048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8049echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8050 no_cache=0
8051 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8052if test "${enable_scrollbar+set}" = set; then
8053 enableval="$enable_scrollbar"
8054
8055 if test "$enableval" = yes; then
8056 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8057 else
8058 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8059 fi
8060
8061else
8062
8063 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8064 if test "x$LINE" != x ; then
8065 eval "DEFAULT_$LINE"
8066 else
8067 no_cache=1
8068 fi
8069
8070 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8071
8072fi;
8073
8074 eval "$ac_cv_use_scrollbar"
8075 if test "$no_cache" != 1; then
8076 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8077 fi
8078
8079 if test "$wxUSE_SCROLLBAR" = yes; then
8080 echo "$as_me:$LINENO: result: yes" >&5
8081echo "${ECHO_T}yes" >&6
8082 else
8083 echo "$as_me:$LINENO: result: no" >&5
8084echo "${ECHO_T}no" >&6
8085 fi
8086
8087
8088 enablestring=
8089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8090echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8091 no_cache=0
8092 # Check whether --enable-slider or --disable-slider was given.
8093if test "${enable_slider+set}" = set; then
8094 enableval="$enable_slider"
8095
8096 if test "$enableval" = yes; then
8097 ac_cv_use_slider='wxUSE_SLIDER=yes'
8098 else
8099 ac_cv_use_slider='wxUSE_SLIDER=no'
8100 fi
8101
8102else
8103
8104 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8105 if test "x$LINE" != x ; then
8106 eval "DEFAULT_$LINE"
8107 else
8108 no_cache=1
8109 fi
8110
8111 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8112
8113fi;
8114
8115 eval "$ac_cv_use_slider"
8116 if test "$no_cache" != 1; then
8117 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8118 fi
8119
8120 if test "$wxUSE_SLIDER" = yes; then
8121 echo "$as_me:$LINENO: result: yes" >&5
8122echo "${ECHO_T}yes" >&6
8123 else
8124 echo "$as_me:$LINENO: result: no" >&5
8125echo "${ECHO_T}no" >&6
8126 fi
8127
8128
8129 enablestring=
8130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8131echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8132 no_cache=0
8133 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8134if test "${enable_spinbtn+set}" = set; then
8135 enableval="$enable_spinbtn"
8136
8137 if test "$enableval" = yes; then
8138 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8139 else
8140 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8141 fi
8142
8143else
8144
8145 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8146 if test "x$LINE" != x ; then
8147 eval "DEFAULT_$LINE"
8148 else
8149 no_cache=1
8150 fi
8151
8152 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8153
8154fi;
8155
8156 eval "$ac_cv_use_spinbtn"
8157 if test "$no_cache" != 1; then
8158 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8159 fi
8160
8161 if test "$wxUSE_SPINBTN" = yes; then
8162 echo "$as_me:$LINENO: result: yes" >&5
8163echo "${ECHO_T}yes" >&6
8164 else
8165 echo "$as_me:$LINENO: result: no" >&5
8166echo "${ECHO_T}no" >&6
8167 fi
8168
8169
8170 enablestring=
8171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8172echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8173 no_cache=0
8174 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8175if test "${enable_spinctrl+set}" = set; then
8176 enableval="$enable_spinctrl"
8177
8178 if test "$enableval" = yes; then
8179 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8180 else
8181 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8182 fi
8183
8184else
8185
8186 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8187 if test "x$LINE" != x ; then
8188 eval "DEFAULT_$LINE"
8189 else
8190 no_cache=1
8191 fi
8192
8193 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8194
8195fi;
8196
8197 eval "$ac_cv_use_spinctrl"
8198 if test "$no_cache" != 1; then
8199 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8200 fi
8201
8202 if test "$wxUSE_SPINCTRL" = yes; then
8203 echo "$as_me:$LINENO: result: yes" >&5
8204echo "${ECHO_T}yes" >&6
8205 else
8206 echo "$as_me:$LINENO: result: no" >&5
8207echo "${ECHO_T}no" >&6
8208 fi
8209
8210
8211 enablestring=
8212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8213echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8214 no_cache=0
8215 # Check whether --enable-splitter or --disable-splitter was given.
8216if test "${enable_splitter+set}" = set; then
8217 enableval="$enable_splitter"
8218
8219 if test "$enableval" = yes; then
8220 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8221 else
8222 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8223 fi
8224
8225else
8226
8227 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8228 if test "x$LINE" != x ; then
8229 eval "DEFAULT_$LINE"
8230 else
8231 no_cache=1
8232 fi
8233
8234 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8235
8236fi;
8237
8238 eval "$ac_cv_use_splitter"
8239 if test "$no_cache" != 1; then
8240 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8241 fi
8242
8243 if test "$wxUSE_SPLITTER" = yes; then
8244 echo "$as_me:$LINENO: result: yes" >&5
8245echo "${ECHO_T}yes" >&6
8246 else
8247 echo "$as_me:$LINENO: result: no" >&5
8248echo "${ECHO_T}no" >&6
8249 fi
8250
8251
8252 enablestring=
8253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8254echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8255 no_cache=0
8256 # Check whether --enable-statbmp or --disable-statbmp was given.
8257if test "${enable_statbmp+set}" = set; then
8258 enableval="$enable_statbmp"
8259
8260 if test "$enableval" = yes; then
8261 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8262 else
8263 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8264 fi
8265
8266else
8267
8268 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8269 if test "x$LINE" != x ; then
8270 eval "DEFAULT_$LINE"
8271 else
8272 no_cache=1
8273 fi
8274
8275 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8276
8277fi;
8278
8279 eval "$ac_cv_use_statbmp"
8280 if test "$no_cache" != 1; then
8281 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8282 fi
8283
8284 if test "$wxUSE_STATBMP" = yes; then
8285 echo "$as_me:$LINENO: result: yes" >&5
8286echo "${ECHO_T}yes" >&6
8287 else
8288 echo "$as_me:$LINENO: result: no" >&5
8289echo "${ECHO_T}no" >&6
8290 fi
8291
8292
8293 enablestring=
8294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8295echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8296 no_cache=0
8297 # Check whether --enable-statbox or --disable-statbox was given.
8298if test "${enable_statbox+set}" = set; then
8299 enableval="$enable_statbox"
8300
8301 if test "$enableval" = yes; then
8302 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8303 else
8304 ac_cv_use_statbox='wxUSE_STATBOX=no'
8305 fi
8306
8307else
8308
8309 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8310 if test "x$LINE" != x ; then
8311 eval "DEFAULT_$LINE"
8312 else
8313 no_cache=1
8314 fi
8315
8316 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8317
8318fi;
8319
8320 eval "$ac_cv_use_statbox"
8321 if test "$no_cache" != 1; then
8322 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8323 fi
8324
8325 if test "$wxUSE_STATBOX" = yes; then
8326 echo "$as_me:$LINENO: result: yes" >&5
8327echo "${ECHO_T}yes" >&6
8328 else
8329 echo "$as_me:$LINENO: result: no" >&5
8330echo "${ECHO_T}no" >&6
8331 fi
8332
8333
8334 enablestring=
8335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8336echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8337 no_cache=0
8338 # Check whether --enable-statline or --disable-statline was given.
8339if test "${enable_statline+set}" = set; then
8340 enableval="$enable_statline"
8341
8342 if test "$enableval" = yes; then
8343 ac_cv_use_statline='wxUSE_STATLINE=yes'
8344 else
8345 ac_cv_use_statline='wxUSE_STATLINE=no'
8346 fi
8347
8348else
8349
8350 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8351 if test "x$LINE" != x ; then
8352 eval "DEFAULT_$LINE"
8353 else
8354 no_cache=1
8355 fi
8356
8357 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8358
8359fi;
8360
8361 eval "$ac_cv_use_statline"
8362 if test "$no_cache" != 1; then
8363 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8364 fi
8365
8366 if test "$wxUSE_STATLINE" = yes; then
8367 echo "$as_me:$LINENO: result: yes" >&5
8368echo "${ECHO_T}yes" >&6
8369 else
8370 echo "$as_me:$LINENO: result: no" >&5
8371echo "${ECHO_T}no" >&6
8372 fi
8373
8374
8375 enablestring=
8376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8377echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8378 no_cache=0
8379 # Check whether --enable-stattext or --disable-stattext was given.
8380if test "${enable_stattext+set}" = set; then
8381 enableval="$enable_stattext"
8382
8383 if test "$enableval" = yes; then
8384 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8385 else
8386 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8387 fi
8388
8389else
8390
8391 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8392 if test "x$LINE" != x ; then
8393 eval "DEFAULT_$LINE"
8394 else
8395 no_cache=1
8396 fi
8397
8398 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8399
8400fi;
8401
8402 eval "$ac_cv_use_stattext"
8403 if test "$no_cache" != 1; then
8404 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8405 fi
8406
8407 if test "$wxUSE_STATTEXT" = yes; then
8408 echo "$as_me:$LINENO: result: yes" >&5
8409echo "${ECHO_T}yes" >&6
8410 else
8411 echo "$as_me:$LINENO: result: no" >&5
8412echo "${ECHO_T}no" >&6
8413 fi
8414
8415
8416 enablestring=
8417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8418echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8419 no_cache=0
8420 # Check whether --enable-statusbar or --disable-statusbar was given.
8421if test "${enable_statusbar+set}" = set; then
8422 enableval="$enable_statusbar"
8423
8424 if test "$enableval" = yes; then
8425 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8426 else
8427 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8428 fi
8429
8430else
8431
8432 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8433 if test "x$LINE" != x ; then
8434 eval "DEFAULT_$LINE"
8435 else
8436 no_cache=1
8437 fi
8438
8439 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8440
8441fi;
8442
8443 eval "$ac_cv_use_statusbar"
8444 if test "$no_cache" != 1; then
8445 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8446 fi
8447
8448 if test "$wxUSE_STATUSBAR" = yes; then
8449 echo "$as_me:$LINENO: result: yes" >&5
8450echo "${ECHO_T}yes" >&6
8451 else
8452 echo "$as_me:$LINENO: result: no" >&5
8453echo "${ECHO_T}no" >&6
8454 fi
8455
8456
8457 enablestring=
8458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8459echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8460 no_cache=0
8461 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8462if test "${enable_tabdialog+set}" = set; then
8463 enableval="$enable_tabdialog"
8464
8465 if test "$enableval" = yes; then
8466 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8467 else
8468 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8469 fi
8470
8471else
8472
8473 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8474 if test "x$LINE" != x ; then
8475 eval "DEFAULT_$LINE"
8476 else
8477 no_cache=1
8478 fi
8479
8480 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8481
8482fi;
8483
8484 eval "$ac_cv_use_tabdialog"
8485 if test "$no_cache" != 1; then
8486 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8487 fi
8488
8489 if test "$wxUSE_TABDIALOG" = yes; then
8490 echo "$as_me:$LINENO: result: yes" >&5
8491echo "${ECHO_T}yes" >&6
8492 else
8493 echo "$as_me:$LINENO: result: no" >&5
8494echo "${ECHO_T}no" >&6
8495 fi
8496
8497
8498 enablestring=
8499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8500echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8501 no_cache=0
8502 # Check whether --enable-textctrl or --disable-textctrl was given.
8503if test "${enable_textctrl+set}" = set; then
8504 enableval="$enable_textctrl"
8505
8506 if test "$enableval" = yes; then
8507 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8508 else
8509 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8510 fi
8511
8512else
8513
8514 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8515 if test "x$LINE" != x ; then
8516 eval "DEFAULT_$LINE"
8517 else
8518 no_cache=1
8519 fi
8520
8521 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8522
8523fi;
8524
8525 eval "$ac_cv_use_textctrl"
8526 if test "$no_cache" != 1; then
8527 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8528 fi
8529
8530 if test "$wxUSE_TEXTCTRL" = yes; then
8531 echo "$as_me:$LINENO: result: yes" >&5
8532echo "${ECHO_T}yes" >&6
8533 else
8534 echo "$as_me:$LINENO: result: no" >&5
8535echo "${ECHO_T}no" >&6
8536 fi
8537
8538
8539 enablestring=
8540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8541echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8542 no_cache=0
8543 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8544if test "${enable_togglebtn+set}" = set; then
8545 enableval="$enable_togglebtn"
8546
8547 if test "$enableval" = yes; then
8548 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8549 else
8550 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8551 fi
8552
8553else
8554
8555 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8556 if test "x$LINE" != x ; then
8557 eval "DEFAULT_$LINE"
8558 else
8559 no_cache=1
8560 fi
8561
8562 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8563
8564fi;
8565
8566 eval "$ac_cv_use_togglebtn"
8567 if test "$no_cache" != 1; then
8568 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8569 fi
8570
8571 if test "$wxUSE_TOGGLEBTN" = yes; then
8572 echo "$as_me:$LINENO: result: yes" >&5
8573echo "${ECHO_T}yes" >&6
8574 else
8575 echo "$as_me:$LINENO: result: no" >&5
8576echo "${ECHO_T}no" >&6
8577 fi
8578
8579
8580 enablestring=
8581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8582echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8583 no_cache=0
8584 # Check whether --enable-toolbar or --disable-toolbar was given.
8585if test "${enable_toolbar+set}" = set; then
8586 enableval="$enable_toolbar"
8587
8588 if test "$enableval" = yes; then
8589 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8590 else
8591 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8592 fi
8593
8594else
8595
8596 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8597 if test "x$LINE" != x ; then
8598 eval "DEFAULT_$LINE"
8599 else
8600 no_cache=1
8601 fi
8602
8603 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8604
8605fi;
8606
8607 eval "$ac_cv_use_toolbar"
8608 if test "$no_cache" != 1; then
8609 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8610 fi
8611
8612 if test "$wxUSE_TOOLBAR" = yes; then
8613 echo "$as_me:$LINENO: result: yes" >&5
8614echo "${ECHO_T}yes" >&6
8615 else
8616 echo "$as_me:$LINENO: result: no" >&5
8617echo "${ECHO_T}no" >&6
8618 fi
8619
8620
8621 enablestring=
8622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8623echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8624 no_cache=0
8625 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8626if test "${enable_tbarnative+set}" = set; then
8627 enableval="$enable_tbarnative"
8628
8629 if test "$enableval" = yes; then
8630 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8631 else
8632 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8633 fi
8634
8635else
8636
8637 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8638 if test "x$LINE" != x ; then
8639 eval "DEFAULT_$LINE"
8640 else
8641 no_cache=1
8642 fi
8643
8644 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8645
8646fi;
8647
8648 eval "$ac_cv_use_tbarnative"
8649 if test "$no_cache" != 1; then
8650 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8651 fi
8652
8653 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8654 echo "$as_me:$LINENO: result: yes" >&5
8655echo "${ECHO_T}yes" >&6
8656 else
8657 echo "$as_me:$LINENO: result: no" >&5
8658echo "${ECHO_T}no" >&6
8659 fi
8660
8661
8662 enablestring=
8663 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8664echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8665 no_cache=0
8666 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8667if test "${enable_tbarsmpl+set}" = set; then
8668 enableval="$enable_tbarsmpl"
8669
8670 if test "$enableval" = yes; then
8671 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8672 else
8673 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8674 fi
8675
8676else
8677
8678 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8679 if test "x$LINE" != x ; then
8680 eval "DEFAULT_$LINE"
8681 else
8682 no_cache=1
8683 fi
8684
8685 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8686
8687fi;
8688
8689 eval "$ac_cv_use_tbarsmpl"
8690 if test "$no_cache" != 1; then
8691 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8692 fi
8693
8694 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8695 echo "$as_me:$LINENO: result: yes" >&5
8696echo "${ECHO_T}yes" >&6
8697 else
8698 echo "$as_me:$LINENO: result: no" >&5
8699echo "${ECHO_T}no" >&6
8700 fi
8701
8702
8703 enablestring=
8704 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8705echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
8706 no_cache=0
8707 # Check whether --enable-treectrl or --disable-treectrl was given.
8708if test "${enable_treectrl+set}" = set; then
8709 enableval="$enable_treectrl"
8710
8711 if test "$enableval" = yes; then
8712 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8713 else
8714 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8715 fi
8716
8717else
8718
8719 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8720 if test "x$LINE" != x ; then
8721 eval "DEFAULT_$LINE"
8722 else
8723 no_cache=1
8724 fi
8725
8726 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
8727
8728fi;
8729
8730 eval "$ac_cv_use_treectrl"
8731 if test "$no_cache" != 1; then
8732 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8733 fi
8734
8735 if test "$wxUSE_TREECTRL" = yes; then
8736 echo "$as_me:$LINENO: result: yes" >&5
8737echo "${ECHO_T}yes" >&6
8738 else
8739 echo "$as_me:$LINENO: result: no" >&5
8740echo "${ECHO_T}no" >&6
8741 fi
8742
8743
8744 enablestring=
8745 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8746echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
8747 no_cache=0
8748 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8749if test "${enable_tipwindow+set}" = set; then
8750 enableval="$enable_tipwindow"
8751
8752 if test "$enableval" = yes; then
8753 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8754 else
8755 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8756 fi
8757
8758else
8759
8760 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8761 if test "x$LINE" != x ; then
8762 eval "DEFAULT_$LINE"
8763 else
8764 no_cache=1
8765 fi
8766
8767 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
8768
8769fi;
8770
8771 eval "$ac_cv_use_tipwindow"
8772 if test "$no_cache" != 1; then
8773 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8774 fi
8775
8776 if test "$wxUSE_TIPWINDOW" = yes; then
8777 echo "$as_me:$LINENO: result: yes" >&5
8778echo "${ECHO_T}yes" >&6
8779 else
8780 echo "$as_me:$LINENO: result: no" >&5
8781echo "${ECHO_T}no" >&6
8782 fi
8783
8784
8785 enablestring=
8786 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8787echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
8788 no_cache=0
8789 # Check whether --enable-popupwin or --disable-popupwin was given.
8790if test "${enable_popupwin+set}" = set; then
8791 enableval="$enable_popupwin"
8792
8793 if test "$enableval" = yes; then
8794 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8795 else
8796 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8797 fi
8798
8799else
8800
8801 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8802 if test "x$LINE" != x ; then
8803 eval "DEFAULT_$LINE"
8804 else
8805 no_cache=1
8806 fi
8807
8808 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
8809
8810fi;
8811
8812 eval "$ac_cv_use_popupwin"
8813 if test "$no_cache" != 1; then
8814 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8815 fi
8816
8817 if test "$wxUSE_POPUPWIN" = yes; then
8818 echo "$as_me:$LINENO: result: yes" >&5
8819echo "${ECHO_T}yes" >&6
8820 else
8821 echo "$as_me:$LINENO: result: no" >&5
8822echo "${ECHO_T}no" >&6
8823 fi
8824
8825
8826
8827
8828 enablestring=
8829 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8830echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
8831 no_cache=0
8832 # Check whether --enable-commondlg or --disable-commondlg was given.
8833if test "${enable_commondlg+set}" = set; then
8834 enableval="$enable_commondlg"
8835
8836 if test "$enableval" = yes; then
8837 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8838 else
8839 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8840 fi
8841
8842else
8843
8844 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8845 if test "x$LINE" != x ; then
8846 eval "DEFAULT_$LINE"
8847 else
8848 no_cache=1
8849 fi
8850
8851 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
8852
8853fi;
8854
8855 eval "$ac_cv_use_commondlg"
8856 if test "$no_cache" != 1; then
8857 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8858 fi
8859
8860 if test "$wxUSE_COMMONDLGS" = yes; then
8861 echo "$as_me:$LINENO: result: yes" >&5
8862echo "${ECHO_T}yes" >&6
8863 else
8864 echo "$as_me:$LINENO: result: no" >&5
8865echo "${ECHO_T}no" >&6
8866 fi
8867
8868
8869 enablestring=
8870 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8871echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
8872 no_cache=0
8873 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8874if test "${enable_choicedlg+set}" = set; then
8875 enableval="$enable_choicedlg"
8876
8877 if test "$enableval" = yes; then
8878 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8879 else
8880 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8881 fi
8882
8883else
8884
8885 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8886 if test "x$LINE" != x ; then
8887 eval "DEFAULT_$LINE"
8888 else
8889 no_cache=1
8890 fi
8891
8892 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
8893
8894fi;
8895
8896 eval "$ac_cv_use_choicedlg"
8897 if test "$no_cache" != 1; then
8898 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8899 fi
8900
8901 if test "$wxUSE_CHOICEDLG" = yes; then
8902 echo "$as_me:$LINENO: result: yes" >&5
8903echo "${ECHO_T}yes" >&6
8904 else
8905 echo "$as_me:$LINENO: result: no" >&5
8906echo "${ECHO_T}no" >&6
8907 fi
8908
8909
8910 enablestring=
8911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8912echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
8913 no_cache=0
8914 # Check whether --enable-coldlg or --disable-coldlg was given.
8915if test "${enable_coldlg+set}" = set; then
8916 enableval="$enable_coldlg"
8917
8918 if test "$enableval" = yes; then
8919 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8920 else
8921 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8922 fi
8923
8924else
8925
8926 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8927 if test "x$LINE" != x ; then
8928 eval "DEFAULT_$LINE"
8929 else
8930 no_cache=1
8931 fi
8932
8933 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
8934
8935fi;
8936
8937 eval "$ac_cv_use_coldlg"
8938 if test "$no_cache" != 1; then
8939 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8940 fi
8941
8942 if test "$wxUSE_COLOURDLG" = yes; then
8943 echo "$as_me:$LINENO: result: yes" >&5
8944echo "${ECHO_T}yes" >&6
8945 else
8946 echo "$as_me:$LINENO: result: no" >&5
8947echo "${ECHO_T}no" >&6
8948 fi
8949
8950
8951 enablestring=
8952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8953echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
8954 no_cache=0
8955 # Check whether --enable-filedlg or --disable-filedlg was given.
8956if test "${enable_filedlg+set}" = set; then
8957 enableval="$enable_filedlg"
8958
8959 if test "$enableval" = yes; then
8960 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8961 else
8962 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8963 fi
8964
8965else
8966
8967 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8968 if test "x$LINE" != x ; then
8969 eval "DEFAULT_$LINE"
8970 else
8971 no_cache=1
8972 fi
8973
8974 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
8975
8976fi;
8977
8978 eval "$ac_cv_use_filedlg"
8979 if test "$no_cache" != 1; then
8980 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8981 fi
8982
8983 if test "$wxUSE_FILEDLG" = yes; then
8984 echo "$as_me:$LINENO: result: yes" >&5
8985echo "${ECHO_T}yes" >&6
8986 else
8987 echo "$as_me:$LINENO: result: no" >&5
8988echo "${ECHO_T}no" >&6
8989 fi
8990
8991
8992 enablestring=
8993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8994echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8995 no_cache=0
8996 # Check whether --enable-finddlg or --disable-finddlg was given.
8997if test "${enable_finddlg+set}" = set; then
8998 enableval="$enable_finddlg"
8999
9000 if test "$enableval" = yes; then
9001 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9002 else
9003 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9004 fi
9005
9006else
9007
9008 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9009 if test "x$LINE" != x ; then
9010 eval "DEFAULT_$LINE"
9011 else
9012 no_cache=1
9013 fi
9014
9015 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9016
9017fi;
9018
9019 eval "$ac_cv_use_finddlg"
9020 if test "$no_cache" != 1; then
9021 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9022 fi
9023
9024 if test "$wxUSE_FINDREPLDLG" = yes; then
9025 echo "$as_me:$LINENO: result: yes" >&5
9026echo "${ECHO_T}yes" >&6
9027 else
9028 echo "$as_me:$LINENO: result: no" >&5
9029echo "${ECHO_T}no" >&6
9030 fi
9031
9032
9033 enablestring=
9034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9035echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9036 no_cache=0
9037 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9038if test "${enable_fontdlg+set}" = set; then
9039 enableval="$enable_fontdlg"
9040
9041 if test "$enableval" = yes; then
9042 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9043 else
9044 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9045 fi
9046
9047else
9048
9049 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9050 if test "x$LINE" != x ; then
9051 eval "DEFAULT_$LINE"
9052 else
9053 no_cache=1
9054 fi
9055
9056 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9057
9058fi;
9059
9060 eval "$ac_cv_use_fontdlg"
9061 if test "$no_cache" != 1; then
9062 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9063 fi
9064
9065 if test "$wxUSE_FONTDLG" = yes; then
9066 echo "$as_me:$LINENO: result: yes" >&5
9067echo "${ECHO_T}yes" >&6
9068 else
9069 echo "$as_me:$LINENO: result: no" >&5
9070echo "${ECHO_T}no" >&6
9071 fi
9072
9073
9074 enablestring=
9075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9076echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9077 no_cache=0
9078 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9079if test "${enable_dirdlg+set}" = set; then
9080 enableval="$enable_dirdlg"
9081
9082 if test "$enableval" = yes; then
9083 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9084 else
9085 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9086 fi
9087
9088else
9089
9090 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9091 if test "x$LINE" != x ; then
9092 eval "DEFAULT_$LINE"
9093 else
9094 no_cache=1
9095 fi
9096
9097 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9098
9099fi;
9100
9101 eval "$ac_cv_use_dirdlg"
9102 if test "$no_cache" != 1; then
9103 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9104 fi
9105
9106 if test "$wxUSE_DIRDLG" = yes; then
9107 echo "$as_me:$LINENO: result: yes" >&5
9108echo "${ECHO_T}yes" >&6
9109 else
9110 echo "$as_me:$LINENO: result: no" >&5
9111echo "${ECHO_T}no" >&6
9112 fi
9113
9114
9115 enablestring=
9116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9117echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9118 no_cache=0
9119 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9120if test "${enable_msgdlg+set}" = set; then
9121 enableval="$enable_msgdlg"
9122
9123 if test "$enableval" = yes; then
9124 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9125 else
9126 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9127 fi
9128
9129else
9130
9131 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9132 if test "x$LINE" != x ; then
9133 eval "DEFAULT_$LINE"
9134 else
9135 no_cache=1
9136 fi
9137
9138 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9139
9140fi;
9141
9142 eval "$ac_cv_use_msgdlg"
9143 if test "$no_cache" != 1; then
9144 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9145 fi
9146
9147 if test "$wxUSE_MSGDLG" = yes; then
9148 echo "$as_me:$LINENO: result: yes" >&5
9149echo "${ECHO_T}yes" >&6
9150 else
9151 echo "$as_me:$LINENO: result: no" >&5
9152echo "${ECHO_T}no" >&6
9153 fi
9154
9155
9156 enablestring=
9157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9158echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9159 no_cache=0
9160 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9161if test "${enable_numberdlg+set}" = set; then
9162 enableval="$enable_numberdlg"
9163
9164 if test "$enableval" = yes; then
9165 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9166 else
9167 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9168 fi
9169
9170else
9171
9172 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9173 if test "x$LINE" != x ; then
9174 eval "DEFAULT_$LINE"
9175 else
9176 no_cache=1
9177 fi
9178
9179 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9180
9181fi;
9182
9183 eval "$ac_cv_use_numberdlg"
9184 if test "$no_cache" != 1; then
9185 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9186 fi
9187
9188 if test "$wxUSE_NUMBERDLG" = yes; then
9189 echo "$as_me:$LINENO: result: yes" >&5
9190echo "${ECHO_T}yes" >&6
9191 else
9192 echo "$as_me:$LINENO: result: no" >&5
9193echo "${ECHO_T}no" >&6
9194 fi
9195
9196
9197 enablestring=
9198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9199echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9200 no_cache=0
9201 # Check whether --enable-splash or --disable-splash was given.
9202if test "${enable_splash+set}" = set; then
9203 enableval="$enable_splash"
9204
9205 if test "$enableval" = yes; then
9206 ac_cv_use_splash='wxUSE_SPLASH=yes'
9207 else
9208 ac_cv_use_splash='wxUSE_SPLASH=no'
9209 fi
9210
9211else
9212
9213 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9214 if test "x$LINE" != x ; then
9215 eval "DEFAULT_$LINE"
9216 else
9217 no_cache=1
9218 fi
9219
9220 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9221
9222fi;
9223
9224 eval "$ac_cv_use_splash"
9225 if test "$no_cache" != 1; then
9226 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9227 fi
9228
9229 if test "$wxUSE_SPLASH" = yes; then
9230 echo "$as_me:$LINENO: result: yes" >&5
9231echo "${ECHO_T}yes" >&6
9232 else
9233 echo "$as_me:$LINENO: result: no" >&5
9234echo "${ECHO_T}no" >&6
9235 fi
9236
9237
9238 enablestring=
9239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9240echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9241 no_cache=0
9242 # Check whether --enable-textdlg or --disable-textdlg was given.
9243if test "${enable_textdlg+set}" = set; then
9244 enableval="$enable_textdlg"
9245
9246 if test "$enableval" = yes; then
9247 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9248 else
9249 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9250 fi
9251
9252else
9253
9254 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9255 if test "x$LINE" != x ; then
9256 eval "DEFAULT_$LINE"
9257 else
9258 no_cache=1
9259 fi
9260
9261 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9262
9263fi;
9264
9265 eval "$ac_cv_use_textdlg"
9266 if test "$no_cache" != 1; then
9267 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9268 fi
9269
9270 if test "$wxUSE_TEXTDLG" = yes; then
9271 echo "$as_me:$LINENO: result: yes" >&5
9272echo "${ECHO_T}yes" >&6
9273 else
9274 echo "$as_me:$LINENO: result: no" >&5
9275echo "${ECHO_T}no" >&6
9276 fi
9277
9278
9279 enablestring=
9280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9281echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9282 no_cache=0
9283 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9284if test "${enable_tipdlg+set}" = set; then
9285 enableval="$enable_tipdlg"
9286
9287 if test "$enableval" = yes; then
9288 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9289 else
9290 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9291 fi
9292
9293else
9294
9295 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9296 if test "x$LINE" != x ; then
9297 eval "DEFAULT_$LINE"
9298 else
9299 no_cache=1
9300 fi
9301
9302 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9303
9304fi;
9305
9306 eval "$ac_cv_use_tipdlg"
9307 if test "$no_cache" != 1; then
9308 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9309 fi
9310
9311 if test "$wxUSE_STARTUP_TIPS" = yes; then
9312 echo "$as_me:$LINENO: result: yes" >&5
9313echo "${ECHO_T}yes" >&6
9314 else
9315 echo "$as_me:$LINENO: result: no" >&5
9316echo "${ECHO_T}no" >&6
9317 fi
9318
9319
9320 enablestring=
9321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9322echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9323 no_cache=0
9324 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9325if test "${enable_progressdlg+set}" = set; then
9326 enableval="$enable_progressdlg"
9327
9328 if test "$enableval" = yes; then
9329 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9330 else
9331 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9332 fi
9333
9334else
9335
9336 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9337 if test "x$LINE" != x ; then
9338 eval "DEFAULT_$LINE"
9339 else
9340 no_cache=1
9341 fi
9342
9343 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9344
9345fi;
9346
9347 eval "$ac_cv_use_progressdlg"
9348 if test "$no_cache" != 1; then
9349 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9350 fi
9351
9352 if test "$wxUSE_PROGRESSDLG" = yes; then
9353 echo "$as_me:$LINENO: result: yes" >&5
9354echo "${ECHO_T}yes" >&6
9355 else
9356 echo "$as_me:$LINENO: result: no" >&5
9357echo "${ECHO_T}no" >&6
9358 fi
9359
9360
9361 enablestring=
9362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9363echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9364 no_cache=0
9365 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9366if test "${enable_wizarddlg+set}" = set; then
9367 enableval="$enable_wizarddlg"
9368
9369 if test "$enableval" = yes; then
9370 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9371 else
9372 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9373 fi
9374
9375else
9376
9377 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9378 if test "x$LINE" != x ; then
9379 eval "DEFAULT_$LINE"
9380 else
9381 no_cache=1
9382 fi
9383
9384 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9385
9386fi;
9387
9388 eval "$ac_cv_use_wizarddlg"
9389 if test "$no_cache" != 1; then
9390 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9391 fi
9392
9393 if test "$wxUSE_WIZARDDLG" = yes; then
9394 echo "$as_me:$LINENO: result: yes" >&5
9395echo "${ECHO_T}yes" >&6
9396 else
9397 echo "$as_me:$LINENO: result: no" >&5
9398echo "${ECHO_T}no" >&6
9399 fi
9400
9401
9402
9403
9404 enablestring=
9405 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9406echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9407 no_cache=0
9408 # Check whether --enable-menus or --disable-menus was given.
9409if test "${enable_menus+set}" = set; then
9410 enableval="$enable_menus"
9411
9412 if test "$enableval" = yes; then
9413 ac_cv_use_menus='wxUSE_MENUS=yes'
9414 else
9415 ac_cv_use_menus='wxUSE_MENUS=no'
9416 fi
9417
9418else
9419
9420 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9421 if test "x$LINE" != x ; then
9422 eval "DEFAULT_$LINE"
9423 else
9424 no_cache=1
9425 fi
9426
9427 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9428
9429fi;
9430
9431 eval "$ac_cv_use_menus"
9432 if test "$no_cache" != 1; then
9433 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9434 fi
9435
9436 if test "$wxUSE_MENUS" = yes; then
9437 echo "$as_me:$LINENO: result: yes" >&5
9438echo "${ECHO_T}yes" >&6
9439 else
9440 echo "$as_me:$LINENO: result: no" >&5
9441echo "${ECHO_T}no" >&6
9442 fi
9443
9444
9445 enablestring=
9446 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9447echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9448 no_cache=0
9449 # Check whether --enable-miniframe or --disable-miniframe was given.
9450if test "${enable_miniframe+set}" = set; then
9451 enableval="$enable_miniframe"
9452
9453 if test "$enableval" = yes; then
9454 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9455 else
9456 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9457 fi
9458
9459else
9460
9461 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9462 if test "x$LINE" != x ; then
9463 eval "DEFAULT_$LINE"
9464 else
9465 no_cache=1
9466 fi
9467
9468 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9469
9470fi;
9471
9472 eval "$ac_cv_use_miniframe"
9473 if test "$no_cache" != 1; then
9474 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9475 fi
9476
9477 if test "$wxUSE_MINIFRAME" = yes; then
9478 echo "$as_me:$LINENO: result: yes" >&5
9479echo "${ECHO_T}yes" >&6
9480 else
9481 echo "$as_me:$LINENO: result: no" >&5
9482echo "${ECHO_T}no" >&6
9483 fi
9484
9485
9486 enablestring=
9487 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9488echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9489 no_cache=0
9490 # Check whether --enable-tooltips or --disable-tooltips was given.
9491if test "${enable_tooltips+set}" = set; then
9492 enableval="$enable_tooltips"
9493
9494 if test "$enableval" = yes; then
9495 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9496 else
9497 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9498 fi
9499
9500else
9501
9502 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9503 if test "x$LINE" != x ; then
9504 eval "DEFAULT_$LINE"
9505 else
9506 no_cache=1
9507 fi
9508
9509 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9510
9511fi;
9512
9513 eval "$ac_cv_use_tooltips"
9514 if test "$no_cache" != 1; then
9515 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9516 fi
9517
9518 if test "$wxUSE_TOOLTIPS" = yes; then
9519 echo "$as_me:$LINENO: result: yes" >&5
9520echo "${ECHO_T}yes" >&6
9521 else
9522 echo "$as_me:$LINENO: result: no" >&5
9523echo "${ECHO_T}no" >&6
9524 fi
9525
9526
9527 enablestring=
9528 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9529echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9530 no_cache=0
9531 # Check whether --enable-splines or --disable-splines was given.
9532if test "${enable_splines+set}" = set; then
9533 enableval="$enable_splines"
9534
9535 if test "$enableval" = yes; then
9536 ac_cv_use_splines='wxUSE_SPLINES=yes'
9537 else
9538 ac_cv_use_splines='wxUSE_SPLINES=no'
9539 fi
9540
9541else
9542
9543 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9544 if test "x$LINE" != x ; then
9545 eval "DEFAULT_$LINE"
9546 else
9547 no_cache=1
9548 fi
9549
9550 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9551
9552fi;
9553
9554 eval "$ac_cv_use_splines"
9555 if test "$no_cache" != 1; then
9556 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9557 fi
9558
9559 if test "$wxUSE_SPLINES" = yes; then
9560 echo "$as_me:$LINENO: result: yes" >&5
9561echo "${ECHO_T}yes" >&6
9562 else
9563 echo "$as_me:$LINENO: result: no" >&5
9564echo "${ECHO_T}no" >&6
9565 fi
9566
9567
9568 enablestring=
9569 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9570echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9571 no_cache=0
9572 # Check whether --enable-validators or --disable-validators was given.
9573if test "${enable_validators+set}" = set; then
9574 enableval="$enable_validators"
9575
9576 if test "$enableval" = yes; then
9577 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9578 else
9579 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9580 fi
9581
9582else
9583
9584 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9585 if test "x$LINE" != x ; then
9586 eval "DEFAULT_$LINE"
9587 else
9588 no_cache=1
9589 fi
9590
9591 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9592
9593fi;
9594
9595 eval "$ac_cv_use_validators"
9596 if test "$no_cache" != 1; then
9597 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9598 fi
9599
9600 if test "$wxUSE_VALIDATORS" = yes; then
9601 echo "$as_me:$LINENO: result: yes" >&5
9602echo "${ECHO_T}yes" >&6
9603 else
9604 echo "$as_me:$LINENO: result: no" >&5
9605echo "${ECHO_T}no" >&6
9606 fi
9607
9608
9609 enablestring=
9610 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9611echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9612 no_cache=0
9613 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9614if test "${enable_busyinfo+set}" = set; then
9615 enableval="$enable_busyinfo"
9616
9617 if test "$enableval" = yes; then
9618 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9619 else
9620 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9621 fi
9622
9623else
9624
9625 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9626 if test "x$LINE" != x ; then
9627 eval "DEFAULT_$LINE"
9628 else
9629 no_cache=1
9630 fi
9631
9632 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
9633
9634fi;
9635
9636 eval "$ac_cv_use_busyinfo"
9637 if test "$no_cache" != 1; then
9638 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9639 fi
9640
9641 if test "$wxUSE_BUSYINFO" = yes; then
9642 echo "$as_me:$LINENO: result: yes" >&5
9643echo "${ECHO_T}yes" >&6
9644 else
9645 echo "$as_me:$LINENO: result: no" >&5
9646echo "${ECHO_T}no" >&6
9647 fi
9648
9649
9650 enablestring=
9651 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9652echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
9653 no_cache=0
9654 # Check whether --enable-joystick or --disable-joystick was given.
9655if test "${enable_joystick+set}" = set; then
9656 enableval="$enable_joystick"
9657
9658 if test "$enableval" = yes; then
9659 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9660 else
9661 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9662 fi
9663
9664else
9665
9666 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9667 if test "x$LINE" != x ; then
9668 eval "DEFAULT_$LINE"
9669 else
9670 no_cache=1
9671 fi
9672
9673 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
9674
9675fi;
9676
9677 eval "$ac_cv_use_joystick"
9678 if test "$no_cache" != 1; then
9679 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9680 fi
9681
9682 if test "$wxUSE_JOYSTICK" = yes; then
9683 echo "$as_me:$LINENO: result: yes" >&5
9684echo "${ECHO_T}yes" >&6
9685 else
9686 echo "$as_me:$LINENO: result: no" >&5
9687echo "${ECHO_T}no" >&6
9688 fi
9689
9690
9691 enablestring=
9692 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9693echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
9694 no_cache=0
9695 # Check whether --enable-metafile or --disable-metafile was given.
9696if test "${enable_metafile+set}" = set; then
9697 enableval="$enable_metafile"
9698
9699 if test "$enableval" = yes; then
9700 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9701 else
9702 ac_cv_use_metafile='wxUSE_METAFILE=no'
9703 fi
9704
9705else
9706
9707 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9708 if test "x$LINE" != x ; then
9709 eval "DEFAULT_$LINE"
9710 else
9711 no_cache=1
9712 fi
9713
9714 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
9715
9716fi;
9717
9718 eval "$ac_cv_use_metafile"
9719 if test "$no_cache" != 1; then
9720 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9721 fi
9722
9723 if test "$wxUSE_METAFILE" = yes; then
9724 echo "$as_me:$LINENO: result: yes" >&5
9725echo "${ECHO_T}yes" >&6
9726 else
9727 echo "$as_me:$LINENO: result: no" >&5
9728echo "${ECHO_T}no" >&6
9729 fi
9730
9731
9732 enablestring=
9733 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9734echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
9735 no_cache=0
9736 # Check whether --enable-dragimage or --disable-dragimage was given.
9737if test "${enable_dragimage+set}" = set; then
9738 enableval="$enable_dragimage"
9739
9740 if test "$enableval" = yes; then
9741 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9742 else
9743 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9744 fi
9745
9746else
9747
9748 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9749 if test "x$LINE" != x ; then
9750 eval "DEFAULT_$LINE"
9751 else
9752 no_cache=1
9753 fi
9754
9755 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
9756
9757fi;
9758
9759 eval "$ac_cv_use_dragimage"
9760 if test "$no_cache" != 1; then
9761 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9762 fi
9763
9764 if test "$wxUSE_DRAGIMAGE" = yes; then
9765 echo "$as_me:$LINENO: result: yes" >&5
9766echo "${ECHO_T}yes" >&6
9767 else
9768 echo "$as_me:$LINENO: result: no" >&5
9769echo "${ECHO_T}no" >&6
9770 fi
9771
9772
9773 enablestring=
9774 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9775echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
9776 no_cache=0
9777 # Check whether --enable-accessibility or --disable-accessibility was given.
9778if test "${enable_accessibility+set}" = set; then
9779 enableval="$enable_accessibility"
9780
9781 if test "$enableval" = yes; then
9782 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9783 else
9784 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9785 fi
9786
9787else
9788
9789 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9790 if test "x$LINE" != x ; then
9791 eval "DEFAULT_$LINE"
9792 else
9793 no_cache=1
9794 fi
9795
9796 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
9797
9798fi;
9799
9800 eval "$ac_cv_use_accessibility"
9801 if test "$no_cache" != 1; then
9802 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9803 fi
9804
9805 if test "$wxUSE_ACCESSIBILITY" = yes; then
9806 echo "$as_me:$LINENO: result: yes" >&5
9807echo "${ECHO_T}yes" >&6
9808 else
9809 echo "$as_me:$LINENO: result: no" >&5
9810echo "${ECHO_T}no" >&6
9811 fi
9812
9813
9814
9815
9816 enablestring=
9817 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9818echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
9819 no_cache=0
9820 # Check whether --enable-palette or --disable-palette was given.
9821if test "${enable_palette+set}" = set; then
9822 enableval="$enable_palette"
9823
9824 if test "$enableval" = yes; then
9825 ac_cv_use_palette='wxUSE_PALETTE=yes'
9826 else
9827 ac_cv_use_palette='wxUSE_PALETTE=no'
9828 fi
9829
9830else
9831
9832 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9833 if test "x$LINE" != x ; then
9834 eval "DEFAULT_$LINE"
9835 else
9836 no_cache=1
9837 fi
9838
9839 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
9840
9841fi;
9842
9843 eval "$ac_cv_use_palette"
9844 if test "$no_cache" != 1; then
9845 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9846 fi
9847
9848 if test "$wxUSE_PALETTE" = yes; then
9849 echo "$as_me:$LINENO: result: yes" >&5
9850echo "${ECHO_T}yes" >&6
9851 else
9852 echo "$as_me:$LINENO: result: no" >&5
9853echo "${ECHO_T}no" >&6
9854 fi
9855
9856
9857 enablestring=
9858 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9859echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
9860 no_cache=0
9861 # Check whether --enable-image or --disable-image was given.
9862if test "${enable_image+set}" = set; then
9863 enableval="$enable_image"
9864
9865 if test "$enableval" = yes; then
9866 ac_cv_use_image='wxUSE_IMAGE=yes'
9867 else
9868 ac_cv_use_image='wxUSE_IMAGE=no'
9869 fi
9870
9871else
9872
9873 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9874 if test "x$LINE" != x ; then
9875 eval "DEFAULT_$LINE"
9876 else
9877 no_cache=1
9878 fi
9879
9880 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
9881
9882fi;
9883
9884 eval "$ac_cv_use_image"
9885 if test "$no_cache" != 1; then
9886 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9887 fi
9888
9889 if test "$wxUSE_IMAGE" = yes; then
9890 echo "$as_me:$LINENO: result: yes" >&5
9891echo "${ECHO_T}yes" >&6
9892 else
9893 echo "$as_me:$LINENO: result: no" >&5
9894echo "${ECHO_T}no" >&6
9895 fi
9896
9897
9898 enablestring=
9899 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9900echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
9901 no_cache=0
9902 # Check whether --enable-gif or --disable-gif was given.
9903if test "${enable_gif+set}" = set; then
9904 enableval="$enable_gif"
9905
9906 if test "$enableval" = yes; then
9907 ac_cv_use_gif='wxUSE_GIF=yes'
9908 else
9909 ac_cv_use_gif='wxUSE_GIF=no'
9910 fi
9911
9912else
9913
9914 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9915 if test "x$LINE" != x ; then
9916 eval "DEFAULT_$LINE"
9917 else
9918 no_cache=1
9919 fi
9920
9921 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
9922
9923fi;
9924
9925 eval "$ac_cv_use_gif"
9926 if test "$no_cache" != 1; then
9927 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9928 fi
9929
9930 if test "$wxUSE_GIF" = yes; then
9931 echo "$as_me:$LINENO: result: yes" >&5
9932echo "${ECHO_T}yes" >&6
9933 else
9934 echo "$as_me:$LINENO: result: no" >&5
9935echo "${ECHO_T}no" >&6
9936 fi
9937
9938
9939 enablestring=
9940 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9941echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
9942 no_cache=0
9943 # Check whether --enable-pcx or --disable-pcx was given.
9944if test "${enable_pcx+set}" = set; then
9945 enableval="$enable_pcx"
9946
9947 if test "$enableval" = yes; then
9948 ac_cv_use_pcx='wxUSE_PCX=yes'
9949 else
9950 ac_cv_use_pcx='wxUSE_PCX=no'
9951 fi
9952
9953else
9954
9955 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9956 if test "x$LINE" != x ; then
9957 eval "DEFAULT_$LINE"
9958 else
9959 no_cache=1
9960 fi
9961
9962 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
9963
9964fi;
9965
9966 eval "$ac_cv_use_pcx"
9967 if test "$no_cache" != 1; then
9968 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9969 fi
9970
9971 if test "$wxUSE_PCX" = yes; then
9972 echo "$as_me:$LINENO: result: yes" >&5
9973echo "${ECHO_T}yes" >&6
9974 else
9975 echo "$as_me:$LINENO: result: no" >&5
9976echo "${ECHO_T}no" >&6
9977 fi
9978
9979
9980 enablestring=
9981 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9982echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
9983 no_cache=0
9984 # Check whether --enable-iff or --disable-iff was given.
9985if test "${enable_iff+set}" = set; then
9986 enableval="$enable_iff"
9987
9988 if test "$enableval" = yes; then
9989 ac_cv_use_iff='wxUSE_IFF=yes'
9990 else
9991 ac_cv_use_iff='wxUSE_IFF=no'
9992 fi
9993
9994else
9995
9996 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9997 if test "x$LINE" != x ; then
9998 eval "DEFAULT_$LINE"
9999 else
10000 no_cache=1
10001 fi
10002
10003 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10004
10005fi;
10006
10007 eval "$ac_cv_use_iff"
10008 if test "$no_cache" != 1; then
10009 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10010 fi
10011
10012 if test "$wxUSE_IFF" = yes; then
10013 echo "$as_me:$LINENO: result: yes" >&5
10014echo "${ECHO_T}yes" >&6
10015 else
10016 echo "$as_me:$LINENO: result: no" >&5
10017echo "${ECHO_T}no" >&6
10018 fi
10019
10020
10021 enablestring=
10022 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10023echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10024 no_cache=0
10025 # Check whether --enable-pnm or --disable-pnm was given.
10026if test "${enable_pnm+set}" = set; then
10027 enableval="$enable_pnm"
10028
10029 if test "$enableval" = yes; then
10030 ac_cv_use_pnm='wxUSE_PNM=yes'
10031 else
10032 ac_cv_use_pnm='wxUSE_PNM=no'
10033 fi
10034
10035else
10036
10037 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10038 if test "x$LINE" != x ; then
10039 eval "DEFAULT_$LINE"
10040 else
10041 no_cache=1
10042 fi
10043
10044 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10045
10046fi;
10047
10048 eval "$ac_cv_use_pnm"
10049 if test "$no_cache" != 1; then
10050 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10051 fi
10052
10053 if test "$wxUSE_PNM" = yes; then
10054 echo "$as_me:$LINENO: result: yes" >&5
10055echo "${ECHO_T}yes" >&6
10056 else
10057 echo "$as_me:$LINENO: result: no" >&5
10058echo "${ECHO_T}no" >&6
10059 fi
10060
10061
10062 enablestring=
10063 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10064echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10065 no_cache=0
10066 # Check whether --enable-xpm or --disable-xpm was given.
10067if test "${enable_xpm+set}" = set; then
10068 enableval="$enable_xpm"
10069
10070 if test "$enableval" = yes; then
10071 ac_cv_use_xpm='wxUSE_XPM=yes'
10072 else
10073 ac_cv_use_xpm='wxUSE_XPM=no'
10074 fi
10075
10076else
10077
10078 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10079 if test "x$LINE" != x ; then
10080 eval "DEFAULT_$LINE"
10081 else
10082 no_cache=1
10083 fi
10084
10085 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10086
10087fi;
10088
10089 eval "$ac_cv_use_xpm"
10090 if test "$no_cache" != 1; then
10091 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10092 fi
10093
10094 if test "$wxUSE_XPM" = yes; then
10095 echo "$as_me:$LINENO: result: yes" >&5
10096echo "${ECHO_T}yes" >&6
10097 else
10098 echo "$as_me:$LINENO: result: no" >&5
10099echo "${ECHO_T}no" >&6
10100 fi
10101
10102
10103 enablestring=
10104 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10105echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10106 no_cache=0
10107 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10108if test "${enable_ico_cur+set}" = set; then
10109 enableval="$enable_ico_cur"
10110
10111 if test "$enableval" = yes; then
10112 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10113 else
10114 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10115 fi
10116
10117else
10118
10119 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10120 if test "x$LINE" != x ; then
10121 eval "DEFAULT_$LINE"
10122 else
10123 no_cache=1
10124 fi
10125
10126 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10127
10128fi;
10129
10130 eval "$ac_cv_use_ico_cur"
10131 if test "$no_cache" != 1; then
10132 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10133 fi
10134
10135 if test "$wxUSE_ICO_CUR" = yes; then
10136 echo "$as_me:$LINENO: result: yes" >&5
10137echo "${ECHO_T}yes" >&6
10138 else
10139 echo "$as_me:$LINENO: result: no" >&5
10140echo "${ECHO_T}no" >&6
10141 fi
10142
10143
10144fi
10145
10146
10147
ceec2216
RL
10148# Check whether --with-flavour or --without-flavour was given.
10149if test "${with_flavour+set}" = set; then
10150 withval="$with_flavour"
10151 WX_FLAVOUR="$withval"
10152fi;
10153
10154
10155
a848cd7e
SC
10156 enablestring=
10157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10158echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10159 no_cache=0
10160 # Check whether --enable-official_build or --disable-official_build was given.
10161if test "${enable_official_build+set}" = set; then
10162 enableval="$enable_official_build"
10163
10164 if test "$enableval" = yes; then
10165 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10166 else
10167 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10168 fi
10169
10170else
10171
10172 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10173 if test "x$LINE" != x ; then
10174 eval "DEFAULT_$LINE"
10175 else
10176 no_cache=1
10177 fi
10178
10179 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10180
10181fi;
10182
10183 eval "$ac_cv_use_official_build"
10184 if test "$no_cache" != 1; then
10185 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10186 fi
10187
10188 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10189 echo "$as_me:$LINENO: result: yes" >&5
10190echo "${ECHO_T}yes" >&6
10191 else
10192 echo "$as_me:$LINENO: result: no" >&5
10193echo "${ECHO_T}no" >&6
10194 fi
10195
10196# Check whether --enable-vendor or --disable-vendor was given.
10197if test "${enable_vendor+set}" = set; then
10198 enableval="$enable_vendor"
10199 VENDOR="$enableval"
10200fi;
10201if test "x$VENDOR" = "x"; then
10202 VENDOR="custom"
10203fi
10204
a848cd7e
SC
10205
10206
10207
10208 echo "saving argument cache $wx_arg_cache_file"
10209 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10210
10211
10212
10213echo "$as_me:$LINENO: checking for toolkit" >&5
10214echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10215
10216# In Wine, we need to default to MSW, not GTK or MOTIF
10217if test "$wxUSE_WINE" = "yes"; then
10218 DEFAULT_DEFAULT_wxUSE_GTK=0
10219 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10220 DEFAULT_DEFAULT_wxUSE_MSW=1
10221 wxUSE_SHARED=no
10222fi
10223
10224if test "$wxUSE_GUI" = "yes"; then
10225
10226 if test "$USE_BEOS" = 1; then
10227 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10228echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10229 { (exit 1); exit 1; }; }
10230 fi
10231
10232 if test "$TOOLKIT_GIVEN" = 1; then
10233 for toolkit in `echo $ALL_TOOLKITS`; do
10234 var=wxUSE_$toolkit
10235 eval "value=\$${var}"
10236 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
10237 done
10238 else
10239 for toolkit in `echo $ALL_TOOLKITS`; do
10240 if test "$has_toolkit_in_cache" != 1; then
10241 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10242 else
10243 var=DEFAULT_wxUSE_$toolkit
10244 fi
10245 eval "wxUSE_$toolkit=\$${var}"
10246 done
10247 fi
10248
10249 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10250 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10251 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10252
10253 case "${host}" in
10254 *-pc-os2_emx | *-pc-os2-emx )
10255 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10256 esac
10257
10258 case "$NUM_TOOLKITS" in
10259 1)
10260 ;;
10261 0)
10262 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10263echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10264 { (exit 1); exit 1; }; }
10265 ;;
10266 *)
10267 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10268echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10269 { (exit 1); exit 1; }; }
10270 esac
10271
10272 for toolkit in `echo $ALL_TOOLKITS`; do
10273 var=wxUSE_$toolkit
10274 eval "value=\$${var}"
10275 if test "x$value" != x; then
10276 cache_var=CACHE_$toolkit
10277 eval "cache=\$${cache_var}"
10278 if test "$cache" = 1; then
10279 echo "$var=$value" >> ${wx_arg_cache_file}
10280 fi
10281 if test "$value" = 1; then
10282 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10283 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10284echo "${ECHO_T}$toolkit_echo" >&6
10285 fi
10286 fi
10287 done
10288else
10289 if test "x$host_alias" != "x"; then
10290 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10291echo "${ECHO_T}base ($host_alias hosted) only" >&6
10292 else
10293 echo "$as_me:$LINENO: result: base only" >&5
10294echo "${ECHO_T}base only" >&6
10295 fi
10296fi
10297
10298wants_win32=0
10299doesnt_want_win32=0
10300case "${host}" in
10301 *-*-cygwin*)
10302 if test "$wxUSE_MSW" = 1 ; then
10303 wants_win32=1
10304 else
10305 doesnt_want_win32=1
10306 fi
10307 ;;
10308 *-*-mingw*)
10309 wants_win32=1
10310 ;;
10311esac
10312
10313if test "$wxUSE_WINE" = "yes"; then
10314 wants_win32=1
10315 CC=winegcc
10316 CXX=wineg++
10317 RESCOMP=wrc
10318 LDFLAGS_GUI="-mwindows"
10319fi
10320
10321if test "$wants_win32" = 1 ; then
10322 USE_UNIX=0
10323 USE_WIN32=1
10324 cat >>confdefs.h <<\_ACEOF
10325#define __WIN32__ 1
10326_ACEOF
10327
10328 cat >>confdefs.h <<\_ACEOF
10329#define __WIN95__ 1
10330_ACEOF
10331
10332 cat >>confdefs.h <<\_ACEOF
10333#define __WINDOWS__ 1
10334_ACEOF
10335
10336 cat >>confdefs.h <<\_ACEOF
10337#define __GNUWIN32__ 1
10338_ACEOF
10339
10340 cat >>confdefs.h <<\_ACEOF
10341#define STRICT 1
10342_ACEOF
10343
10344 cat >>confdefs.h <<\_ACEOF
10345#define WINVER 0x0400
10346_ACEOF
10347
10348fi
10349if test "$doesnt_want_win32" = 1 ; then
10350 USE_UNIX=1
10351 USE_WIN32=0
10352fi
10353
10354if test "$USE_UNIX" = 1 ; then
10355 wxUSE_UNIX=yes
10356 cat >>confdefs.h <<\_ACEOF
10357#define __UNIX__ 1
10358_ACEOF
10359
10360fi
10361
10362
10363cat >confcache <<\_ACEOF
10364# This file is a shell script that caches the results of configure
10365# tests run on this system so they can be shared between configure
10366# scripts and configure runs, see configure's option --config-cache.
10367# It is not useful on other systems. If it contains results you don't
10368# want to keep, you may remove or edit it.
10369#
10370# config.status only pays attention to the cache file if you give it
10371# the --recheck option to rerun configure.
10372#
10373# `ac_cv_env_foo' variables (set or unset) will be overridden when
10374# loading this file, other *unset* `ac_cv_foo' will be assigned the
10375# following values.
10376
10377_ACEOF
10378
10379# The following way of writing the cache mishandles newlines in values,
10380# but we know of no workaround that is simple, portable, and efficient.
10381# So, don't put newlines in cache variables' values.
10382# Ultrix sh set writes to stderr and can't be redirected directly,
10383# and sets the high bit in the cache file unless we assign to the vars.
10384{
10385 (set) 2>&1 |
10386 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10387 *ac_space=\ *)
10388 # `set' does not quote correctly, so add quotes (double-quote
10389 # substitution turns \\\\ into \\, and sed turns \\ into \).
10390 sed -n \
ac1cb8d3
VS
10391 "s/'/'\\\\''/g;
10392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10393 ;;
10394 *)
10395 # `set' quotes correctly as required by POSIX, so do not add quotes.
10396 sed -n \
ac1cb8d3 10397 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10398 ;;
10399 esac;
10400} |
10401 sed '
10402 t clear
10403 : clear
10404 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10405 t end
10406 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10407 : end' >>confcache
10408if diff $cache_file confcache >/dev/null 2>&1; then :; else
10409 if test -w $cache_file; then
10410 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10411 cat confcache >$cache_file
10412 else
10413 echo "not updating unwritable cache $cache_file"
10414 fi
10415fi
10416rm -f confcache
10417
10418if test "$build" != "$host" ; then
1e9e8aba 10419 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX" = 1; then
a848cd7e
SC
10420 CC=$host_alias-gcc
10421 CXX=$host_alias-c++
10422 AR=$host_alias-ar
10423 RANLIB=$host_alias-ranlib
10424 DLLTOOL=$host_alias-dlltool
10425 RESCOMP=$host_alias-windres
a848cd7e 10426 STRIP=$host_alias-strip
1e9e8aba
DE
10427 elif test "x$CC" '!=' "x"; then
10428 echo "You set CC, I assume you know what you are doing."
a848cd7e
SC
10429 else
10430 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10431echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10432 { (exit 1); exit 1; }; }
10433 fi
10434fi
10435
10436CFLAGS=${CFLAGS:=}
10437ac_ext=c
10438ac_cpp='$CPP $CPPFLAGS'
10439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10441ac_compiler_gnu=$ac_cv_c_compiler_gnu
10442if test -n "$ac_tool_prefix"; then
10443 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10444set dummy ${ac_tool_prefix}gcc; ac_word=$2
10445echo "$as_me:$LINENO: checking for $ac_word" >&5
10446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10447if test "${ac_cv_prog_CC+set}" = set; then
10448 echo $ECHO_N "(cached) $ECHO_C" >&6
10449else
10450 if test -n "$CC"; then
10451 ac_cv_prog_CC="$CC" # Let the user override the test.
10452else
10453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10454for as_dir in $PATH
10455do
10456 IFS=$as_save_IFS
10457 test -z "$as_dir" && as_dir=.
10458 for ac_exec_ext in '' $ac_executable_extensions; do
10459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10460 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10462 break 2
10463 fi
10464done
10465done
10466
10467fi
10468fi
10469CC=$ac_cv_prog_CC
10470if test -n "$CC"; then
10471 echo "$as_me:$LINENO: result: $CC" >&5
10472echo "${ECHO_T}$CC" >&6
10473else
10474 echo "$as_me:$LINENO: result: no" >&5
10475echo "${ECHO_T}no" >&6
10476fi
10477
10478fi
10479if test -z "$ac_cv_prog_CC"; then
10480 ac_ct_CC=$CC
10481 # Extract the first word of "gcc", so it can be a program name with args.
10482set dummy gcc; ac_word=$2
10483echo "$as_me:$LINENO: checking for $ac_word" >&5
10484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10485if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10486 echo $ECHO_N "(cached) $ECHO_C" >&6
10487else
10488 if test -n "$ac_ct_CC"; then
10489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10490else
10491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10492for as_dir in $PATH
10493do
10494 IFS=$as_save_IFS
10495 test -z "$as_dir" && as_dir=.
10496 for ac_exec_ext in '' $ac_executable_extensions; do
10497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10498 ac_cv_prog_ac_ct_CC="gcc"
10499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10500 break 2
10501 fi
10502done
10503done
10504
10505fi
10506fi
10507ac_ct_CC=$ac_cv_prog_ac_ct_CC
10508if test -n "$ac_ct_CC"; then
10509 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10510echo "${ECHO_T}$ac_ct_CC" >&6
10511else
10512 echo "$as_me:$LINENO: result: no" >&5
10513echo "${ECHO_T}no" >&6
10514fi
10515
10516 CC=$ac_ct_CC
10517else
10518 CC="$ac_cv_prog_CC"
10519fi
10520
10521if test -z "$CC"; then
10522 if test -n "$ac_tool_prefix"; then
10523 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10524set dummy ${ac_tool_prefix}cc; ac_word=$2
10525echo "$as_me:$LINENO: checking for $ac_word" >&5
10526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10527if test "${ac_cv_prog_CC+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10529else
10530 if test -n "$CC"; then
10531 ac_cv_prog_CC="$CC" # Let the user override the test.
10532else
10533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534for as_dir in $PATH
10535do
10536 IFS=$as_save_IFS
10537 test -z "$as_dir" && as_dir=.
10538 for ac_exec_ext in '' $ac_executable_extensions; do
10539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10540 ac_cv_prog_CC="${ac_tool_prefix}cc"
10541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10542 break 2
10543 fi
10544done
10545done
10546
10547fi
10548fi
10549CC=$ac_cv_prog_CC
10550if test -n "$CC"; then
10551 echo "$as_me:$LINENO: result: $CC" >&5
10552echo "${ECHO_T}$CC" >&6
10553else
10554 echo "$as_me:$LINENO: result: no" >&5
10555echo "${ECHO_T}no" >&6
10556fi
10557
10558fi
10559if test -z "$ac_cv_prog_CC"; then
10560 ac_ct_CC=$CC
10561 # Extract the first word of "cc", so it can be a program name with args.
10562set dummy cc; ac_word=$2
10563echo "$as_me:$LINENO: checking for $ac_word" >&5
10564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10565if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567else
10568 if test -n "$ac_ct_CC"; then
10569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10570else
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10578 ac_cv_prog_ac_ct_CC="cc"
10579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 break 2
10581 fi
10582done
10583done
10584
10585fi
10586fi
10587ac_ct_CC=$ac_cv_prog_ac_ct_CC
10588if test -n "$ac_ct_CC"; then
10589 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10590echo "${ECHO_T}$ac_ct_CC" >&6
10591else
10592 echo "$as_me:$LINENO: result: no" >&5
10593echo "${ECHO_T}no" >&6
10594fi
10595
10596 CC=$ac_ct_CC
10597else
10598 CC="$ac_cv_prog_CC"
10599fi
10600
10601fi
10602if test -z "$CC"; then
10603 # Extract the first word of "cc", so it can be a program name with args.
10604set dummy cc; ac_word=$2
10605echo "$as_me:$LINENO: checking for $ac_word" >&5
10606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10607if test "${ac_cv_prog_CC+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10609else
10610 if test -n "$CC"; then
10611 ac_cv_prog_CC="$CC" # Let the user override the test.
10612else
10613 ac_prog_rejected=no
10614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10615for as_dir in $PATH
10616do
10617 IFS=$as_save_IFS
10618 test -z "$as_dir" && as_dir=.
10619 for ac_exec_ext in '' $ac_executable_extensions; do
10620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10621 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10622 ac_prog_rejected=yes
10623 continue
10624 fi
10625 ac_cv_prog_CC="cc"
10626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 break 2
10628 fi
10629done
10630done
10631
10632if test $ac_prog_rejected = yes; then
10633 # We found a bogon in the path, so make sure we never use it.
10634 set dummy $ac_cv_prog_CC
10635 shift
10636 if test $# != 0; then
10637 # We chose a different compiler from the bogus one.
10638 # However, it has the same basename, so the bogon will be chosen
10639 # first if we set CC to just the basename; use the full file name.
10640 shift
10641 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10642 fi
10643fi
10644fi
10645fi
10646CC=$ac_cv_prog_CC
10647if test -n "$CC"; then
10648 echo "$as_me:$LINENO: result: $CC" >&5
10649echo "${ECHO_T}$CC" >&6
10650else
10651 echo "$as_me:$LINENO: result: no" >&5
10652echo "${ECHO_T}no" >&6
10653fi
10654
10655fi
10656if test -z "$CC"; then
10657 if test -n "$ac_tool_prefix"; then
10658 for ac_prog in cl
10659 do
10660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10661set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10662echo "$as_me:$LINENO: checking for $ac_word" >&5
10663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10664if test "${ac_cv_prog_CC+set}" = set; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10666else
10667 if test -n "$CC"; then
10668 ac_cv_prog_CC="$CC" # Let the user override the test.
10669else
10670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671for as_dir in $PATH
10672do
10673 IFS=$as_save_IFS
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10679 break 2
10680 fi
10681done
10682done
10683
10684fi
10685fi
10686CC=$ac_cv_prog_CC
10687if test -n "$CC"; then
10688 echo "$as_me:$LINENO: result: $CC" >&5
10689echo "${ECHO_T}$CC" >&6
10690else
10691 echo "$as_me:$LINENO: result: no" >&5
10692echo "${ECHO_T}no" >&6
10693fi
10694
10695 test -n "$CC" && break
10696 done
10697fi
10698if test -z "$CC"; then
10699 ac_ct_CC=$CC
10700 for ac_prog in cl
10701do
10702 # Extract the first word of "$ac_prog", so it can be a program name with args.
10703set dummy $ac_prog; ac_word=$2
10704echo "$as_me:$LINENO: checking for $ac_word" >&5
10705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10706if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10707 echo $ECHO_N "(cached) $ECHO_C" >&6
10708else
10709 if test -n "$ac_ct_CC"; then
10710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10711else
10712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713for as_dir in $PATH
10714do
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
10717 for ac_exec_ext in '' $ac_executable_extensions; do
10718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10719 ac_cv_prog_ac_ct_CC="$ac_prog"
10720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10721 break 2
10722 fi
10723done
10724done
10725
10726fi
10727fi
10728ac_ct_CC=$ac_cv_prog_ac_ct_CC
10729if test -n "$ac_ct_CC"; then
10730 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10731echo "${ECHO_T}$ac_ct_CC" >&6
10732else
10733 echo "$as_me:$LINENO: result: no" >&5
10734echo "${ECHO_T}no" >&6
10735fi
10736
10737 test -n "$ac_ct_CC" && break
10738done
10739
10740 CC=$ac_ct_CC
10741fi
10742
10743fi
10744
10745
10746test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10747See \`config.log' for more details." >&5
10748echo "$as_me: error: no acceptable C compiler found in \$PATH
10749See \`config.log' for more details." >&2;}
10750 { (exit 1); exit 1; }; }
10751
10752# Provide some information about the compiler.
10753echo "$as_me:$LINENO:" \
10754 "checking for C compiler version" >&5
10755ac_compiler=`set X $ac_compile; echo $2`
10756{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10757 (eval $ac_compiler --version </dev/null >&5) 2>&5
10758 ac_status=$?
10759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760 (exit $ac_status); }
10761{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10762 (eval $ac_compiler -v </dev/null >&5) 2>&5
10763 ac_status=$?
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); }
10766{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10767 (eval $ac_compiler -V </dev/null >&5) 2>&5
10768 ac_status=$?
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }
10771
10772cat >conftest.$ac_ext <<_ACEOF
10773/* confdefs.h. */
10774_ACEOF
10775cat confdefs.h >>conftest.$ac_ext
10776cat >>conftest.$ac_ext <<_ACEOF
10777/* end confdefs.h. */
10778
10779int
10780main ()
10781{
10782
10783 ;
10784 return 0;
10785}
10786_ACEOF
10787ac_clean_files_save=$ac_clean_files
10788ac_clean_files="$ac_clean_files a.out a.exe b.out"
10789# Try to create an executable without -o first, disregard a.out.
10790# It will help us diagnose broken compilers, and finding out an intuition
10791# of exeext.
ac1cb8d3
VS
10792echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10793echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
10794ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10795if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10796 (eval $ac_link_default) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; then
10800 # Find the output, starting from the most likely. This scheme is
10801# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10802# resort.
10803
10804# Be careful to initialize this variable, since it used to be cached.
10805# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10806ac_cv_exeext=
10807# b.out is created by i960 compilers.
10808for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10809do
10810 test -f "$ac_file" || continue
10811 case $ac_file in
10812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 10813 ;;
a848cd7e 10814 conftest.$ac_ext )
ac1cb8d3
VS
10815 # This is the source file.
10816 ;;
a848cd7e 10817 [ab].out )
ac1cb8d3
VS
10818 # We found the default executable, but exeext='' is most
10819 # certainly right.
10820 break;;
a848cd7e 10821 *.* )
ac1cb8d3
VS
10822 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10823 # FIXME: I believe we export ac_cv_exeext for Libtool,
10824 # but it would be cool to find out if it's true. Does anybody
10825 # maintain Libtool? --akim.
10826 export ac_cv_exeext
10827 break;;
a848cd7e 10828 * )
ac1cb8d3 10829 break;;
a848cd7e
SC
10830 esac
10831done
10832else
10833 echo "$as_me: failed program was:" >&5
10834sed 's/^/| /' conftest.$ac_ext >&5
10835
10836{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10837See \`config.log' for more details." >&5
10838echo "$as_me: error: C compiler cannot create executables
10839See \`config.log' for more details." >&2;}
10840 { (exit 77); exit 77; }; }
10841fi
10842
10843ac_exeext=$ac_cv_exeext
10844echo "$as_me:$LINENO: result: $ac_file" >&5
10845echo "${ECHO_T}$ac_file" >&6
10846
10847# Check the compiler produces executables we can run. If not, either
10848# the compiler is broken, or we cross compile.
10849echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10850echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10851# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10852# If not cross compiling, check that we can run a simple program.
10853if test "$cross_compiling" != yes; then
10854 if { ac_try='./$ac_file'
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 cross_compiling=no
10861 else
10862 if test "$cross_compiling" = maybe; then
10863 cross_compiling=yes
10864 else
10865 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10866If you meant to cross compile, use \`--host'.
10867See \`config.log' for more details." >&5
10868echo "$as_me: error: cannot run C compiled programs.
10869If you meant to cross compile, use \`--host'.
10870See \`config.log' for more details." >&2;}
10871 { (exit 1); exit 1; }; }
10872 fi
10873 fi
10874fi
10875echo "$as_me:$LINENO: result: yes" >&5
10876echo "${ECHO_T}yes" >&6
10877
10878rm -f a.out a.exe conftest$ac_cv_exeext b.out
10879ac_clean_files=$ac_clean_files_save
10880# Check the compiler produces executables we can run. If not, either
10881# the compiler is broken, or we cross compile.
10882echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10883echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10884echo "$as_me:$LINENO: result: $cross_compiling" >&5
10885echo "${ECHO_T}$cross_compiling" >&6
10886
10887echo "$as_me:$LINENO: checking for suffix of executables" >&5
10888echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10890 (eval $ac_link) 2>&5
10891 ac_status=$?
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; then
10894 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10895# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10896# work properly (i.e., refer to `conftest.exe'), while it won't with
10897# `rm'.
10898for ac_file in conftest.exe conftest conftest.*; do
10899 test -f "$ac_file" || continue
10900 case $ac_file in
10901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10902 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
10903 export ac_cv_exeext
10904 break;;
a848cd7e
SC
10905 * ) break;;
10906 esac
10907done
10908else
10909 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10910See \`config.log' for more details." >&5
10911echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10912See \`config.log' for more details." >&2;}
10913 { (exit 1); exit 1; }; }
10914fi
10915
10916rm -f conftest$ac_cv_exeext
10917echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10918echo "${ECHO_T}$ac_cv_exeext" >&6
10919
10920rm -f conftest.$ac_ext
10921EXEEXT=$ac_cv_exeext
10922ac_exeext=$EXEEXT
10923echo "$as_me:$LINENO: checking for suffix of object files" >&5
10924echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10925if test "${ac_cv_objext+set}" = set; then
10926 echo $ECHO_N "(cached) $ECHO_C" >&6
10927else
10928 cat >conftest.$ac_ext <<_ACEOF
10929/* confdefs.h. */
10930_ACEOF
10931cat confdefs.h >>conftest.$ac_ext
10932cat >>conftest.$ac_ext <<_ACEOF
10933/* end confdefs.h. */
10934
10935int
10936main ()
10937{
10938
10939 ;
10940 return 0;
10941}
10942_ACEOF
10943rm -f conftest.o conftest.obj
10944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10945 (eval $ac_compile) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; then
10949 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10950 case $ac_file in
10951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10952 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10953 break;;
10954 esac
10955done
10956else
10957 echo "$as_me: failed program was:" >&5
10958sed 's/^/| /' conftest.$ac_ext >&5
10959
10960{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10961See \`config.log' for more details." >&5
10962echo "$as_me: error: cannot compute suffix of object files: cannot compile
10963See \`config.log' for more details." >&2;}
10964 { (exit 1); exit 1; }; }
10965fi
10966
10967rm -f conftest.$ac_cv_objext conftest.$ac_ext
10968fi
10969echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10970echo "${ECHO_T}$ac_cv_objext" >&6
10971OBJEXT=$ac_cv_objext
10972ac_objext=$OBJEXT
10973echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10974echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10975if test "${ac_cv_c_compiler_gnu+set}" = set; then
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977else
10978 cat >conftest.$ac_ext <<_ACEOF
10979/* confdefs.h. */
10980_ACEOF
10981cat confdefs.h >>conftest.$ac_ext
10982cat >>conftest.$ac_ext <<_ACEOF
10983/* end confdefs.h. */
10984
10985int
10986main ()
10987{
10988#ifndef __GNUC__
10989 choke me
10990#endif
10991
10992 ;
10993 return 0;
10994}
10995_ACEOF
10996rm -f conftest.$ac_objext
10997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 10998 (eval $ac_compile) 2>conftest.er1
a848cd7e 10999 ac_status=$?
ac1cb8d3
VS
11000 grep -v '^ *+' conftest.er1 >conftest.err
11001 rm -f conftest.er1
11002 cat conftest.err >&5
a848cd7e
SC
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
04840eaa
VS
11005 { ac_try='test -z "$ac_c_werror_flag"
11006 || test ! -s conftest.err'
ac1cb8d3
VS
11007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11008 (eval $ac_try) 2>&5
11009 ac_status=$?
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; } &&
11012 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11014 (eval $ac_try) 2>&5
11015 ac_status=$?
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); }; }; then
11018 ac_compiler_gnu=yes
11019else
11020 echo "$as_me: failed program was:" >&5
11021sed 's/^/| /' conftest.$ac_ext >&5
11022
11023ac_compiler_gnu=no
11024fi
ac1cb8d3 11025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11026ac_cv_c_compiler_gnu=$ac_compiler_gnu
11027
11028fi
11029echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11030echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11031GCC=`test $ac_compiler_gnu = yes && echo yes`
11032ac_test_CFLAGS=${CFLAGS+set}
11033ac_save_CFLAGS=$CFLAGS
11034CFLAGS="-g"
11035echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11036echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11037if test "${ac_cv_prog_cc_g+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11039else
11040 cat >conftest.$ac_ext <<_ACEOF
11041/* confdefs.h. */
11042_ACEOF
11043cat confdefs.h >>conftest.$ac_ext
11044cat >>conftest.$ac_ext <<_ACEOF
11045/* end confdefs.h. */
11046
11047int
11048main ()
11049{
11050
11051 ;
11052 return 0;
11053}
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); } &&
04840eaa
VS
11064 { ac_try='test -z "$ac_c_werror_flag"
11065 || test ! -s conftest.err'
ac1cb8d3
VS
11066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11067 (eval $ac_try) 2>&5
11068 ac_status=$?
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; } &&
11071 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11073 (eval $ac_try) 2>&5
11074 ac_status=$?
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); }; }; then
11077 ac_cv_prog_cc_g=yes
11078else
11079 echo "$as_me: failed program was:" >&5
11080sed 's/^/| /' conftest.$ac_ext >&5
11081
11082ac_cv_prog_cc_g=no
11083fi
ac1cb8d3 11084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11085fi
11086echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11087echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11088if test "$ac_test_CFLAGS" = set; then
11089 CFLAGS=$ac_save_CFLAGS
11090elif test $ac_cv_prog_cc_g = yes; then
11091 if test "$GCC" = yes; then
11092 CFLAGS="-g -O2"
11093 else
11094 CFLAGS="-g"
11095 fi
11096else
11097 if test "$GCC" = yes; then
11098 CFLAGS="-O2"
11099 else
11100 CFLAGS=
11101 fi
11102fi
11103echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11104echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11105if test "${ac_cv_prog_cc_stdc+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11107else
11108 ac_cv_prog_cc_stdc=no
11109ac_save_CC=$CC
11110cat >conftest.$ac_ext <<_ACEOF
11111/* confdefs.h. */
11112_ACEOF
11113cat confdefs.h >>conftest.$ac_ext
11114cat >>conftest.$ac_ext <<_ACEOF
11115/* end confdefs.h. */
11116#include <stdarg.h>
11117#include <stdio.h>
11118#include <sys/types.h>
11119#include <sys/stat.h>
11120/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11121struct buf { int x; };
11122FILE * (*rcsopen) (struct buf *, struct stat *, int);
11123static char *e (p, i)
11124 char **p;
11125 int i;
11126{
11127 return p[i];
11128}
11129static char *f (char * (*g) (char **, int), char **p, ...)
11130{
11131 char *s;
11132 va_list v;
11133 va_start (v,p);
11134 s = g (p, va_arg (v,int));
11135 va_end (v);
11136 return s;
11137}
ac1cb8d3
VS
11138
11139/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11140 function prototypes and stuff, but not '\xHH' hex character constants.
11141 These don't provoke an error unfortunately, instead are silently treated
11142 as 'x'. The following induces an error, until -std1 is added to get
11143 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11144 array size at least. It's necessary to write '\x00'==0 to get something
11145 that's true only with -std1. */
11146int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11147
a848cd7e
SC
11148int test (int i, double x);
11149struct s1 {int (*f) (int a);};
11150struct s2 {int (*f) (double a);};
11151int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11152int argc;
11153char **argv;
11154int
11155main ()
11156{
11157return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11158 ;
11159 return 0;
11160}
11161_ACEOF
11162# Don't try gcc -ansi; that turns off useful extensions and
11163# breaks some systems' header files.
11164# AIX -qlanglvl=ansi
11165# Ultrix and OSF/1 -std1
11166# HP-UX 10.20 and later -Ae
11167# HP-UX older versions -Aa -D_HPUX_SOURCE
11168# SVR4 -Xc -D__EXTENSIONS__
11169for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11170do
11171 CC="$ac_save_CC $ac_arg"
11172 rm -f conftest.$ac_objext
11173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11174 (eval $ac_compile) 2>conftest.er1
a848cd7e 11175 ac_status=$?
ac1cb8d3
VS
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
a848cd7e
SC
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } &&
04840eaa
VS
11181 { ac_try='test -z "$ac_c_werror_flag"
11182 || test ! -s conftest.err'
ac1cb8d3
VS
11183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11184 (eval $ac_try) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }; } &&
11188 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11190 (eval $ac_try) 2>&5
11191 ac_status=$?
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); }; }; then
11194 ac_cv_prog_cc_stdc=$ac_arg
11195break
11196else
11197 echo "$as_me: failed program was:" >&5
11198sed 's/^/| /' conftest.$ac_ext >&5
11199
11200fi
ac1cb8d3 11201rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11202done
11203rm -f conftest.$ac_ext conftest.$ac_objext
11204CC=$ac_save_CC
11205
11206fi
11207
11208case "x$ac_cv_prog_cc_stdc" in
11209 x|xno)
11210 echo "$as_me:$LINENO: result: none needed" >&5
11211echo "${ECHO_T}none needed" >&6 ;;
11212 *)
11213 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11214echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11215 CC="$CC $ac_cv_prog_cc_stdc" ;;
11216esac
11217
11218# Some people use a C++ compiler to compile C. Since we use `exit',
11219# in C++ we need to declare it. In case someone uses the same compiler
11220# for both compiling C and C++ we need to have the C++ compiler decide
11221# the declaration of exit, since it's the most demanding environment.
11222cat >conftest.$ac_ext <<_ACEOF
11223#ifndef __cplusplus
11224 choke me
11225#endif
11226_ACEOF
11227rm -f conftest.$ac_objext
11228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11229 (eval $ac_compile) 2>conftest.er1
a848cd7e 11230 ac_status=$?
ac1cb8d3
VS
11231 grep -v '^ *+' conftest.er1 >conftest.err
11232 rm -f conftest.er1
11233 cat conftest.err >&5
a848cd7e
SC
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } &&
04840eaa
VS
11236 { ac_try='test -z "$ac_c_werror_flag"
11237 || test ! -s conftest.err'
ac1cb8d3
VS
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11240 ac_status=$?
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11246 ac_status=$?
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 for ac_declaration in \
ac1cb8d3 11250 '' \
a848cd7e
SC
11251 'extern "C" void std::exit (int) throw (); using std::exit;' \
11252 'extern "C" void std::exit (int); using std::exit;' \
11253 'extern "C" void exit (int) throw ();' \
11254 'extern "C" void exit (int);' \
11255 'void exit (int);'
11256do
11257 cat >conftest.$ac_ext <<_ACEOF
11258/* confdefs.h. */
11259_ACEOF
11260cat confdefs.h >>conftest.$ac_ext
11261cat >>conftest.$ac_ext <<_ACEOF
11262/* end confdefs.h. */
de59c161 11263$ac_declaration
ac1cb8d3 11264#include <stdlib.h>
a848cd7e
SC
11265int
11266main ()
11267{
11268exit (42);
11269 ;
11270 return 0;
11271}
11272_ACEOF
11273rm -f conftest.$ac_objext
11274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11275 (eval $ac_compile) 2>conftest.er1
a848cd7e 11276 ac_status=$?
ac1cb8d3
VS
11277 grep -v '^ *+' conftest.er1 >conftest.err
11278 rm -f conftest.er1
11279 cat conftest.err >&5
a848cd7e
SC
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } &&
04840eaa
VS
11282 { ac_try='test -z "$ac_c_werror_flag"
11283 || test ! -s conftest.err'
ac1cb8d3
VS
11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11286 ac_status=$?
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; } &&
11289 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; }; then
11295 :
11296else
11297 echo "$as_me: failed program was:" >&5
11298sed 's/^/| /' conftest.$ac_ext >&5
11299
11300continue
11301fi
ac1cb8d3 11302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11303 cat >conftest.$ac_ext <<_ACEOF
11304/* confdefs.h. */
11305_ACEOF
11306cat confdefs.h >>conftest.$ac_ext
11307cat >>conftest.$ac_ext <<_ACEOF
11308/* end confdefs.h. */
11309$ac_declaration
11310int
11311main ()
11312{
11313exit (42);
11314 ;
11315 return 0;
11316}
11317_ACEOF
11318rm -f conftest.$ac_objext
11319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11320 (eval $ac_compile) 2>conftest.er1
a848cd7e 11321 ac_status=$?
ac1cb8d3
VS
11322 grep -v '^ *+' conftest.er1 >conftest.err
11323 rm -f conftest.er1
11324 cat conftest.err >&5
a848cd7e
SC
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); } &&
04840eaa
VS
11327 { ac_try='test -z "$ac_c_werror_flag"
11328 || test ! -s conftest.err'
ac1cb8d3
VS
11329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11330 (eval $ac_try) 2>&5
11331 ac_status=$?
11332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11333 (exit $ac_status); }; } &&
11334 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; }; then
11340 break
11341else
11342 echo "$as_me: failed program was:" >&5
11343sed 's/^/| /' conftest.$ac_ext >&5
11344
11345fi
ac1cb8d3 11346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11347done
11348rm -f conftest*
11349if test -n "$ac_declaration"; then
11350 echo '#ifdef __cplusplus' >>confdefs.h
11351 echo $ac_declaration >>confdefs.h
11352 echo '#endif' >>confdefs.h
11353fi
11354
11355else
11356 echo "$as_me: failed program was:" >&5
11357sed 's/^/| /' conftest.$ac_ext >&5
11358
11359fi
ac1cb8d3 11360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11361ac_ext=c
11362ac_cpp='$CPP $CPPFLAGS'
11363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11365ac_compiler_gnu=$ac_cv_c_compiler_gnu
11366
11367
11368
11369ac_ext=c
11370ac_cpp='$CPP $CPPFLAGS'
11371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11373ac_compiler_gnu=$ac_cv_c_compiler_gnu
11374echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11375echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
11376# On Suns, sometimes $CPP names a directory.
11377if test -n "$CPP" && test -d "$CPP"; then
11378 CPP=
11379fi
11380if test -z "$CPP"; then
11381 if test "${ac_cv_prog_CPP+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11383else
11384 # Double quotes because CPP needs to be expanded
11385 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11386 do
11387 ac_preproc_ok=false
11388for ac_c_preproc_warn_flag in '' yes
11389do
11390 # Use a header file that comes with gcc, so configuring glibc
11391 # with a fresh cross-compiler works.
11392 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11393 # <limits.h> exists even on freestanding compilers.
11394 # On the NeXT, cc -E runs the code through the compiler's parser,
11395 # not just through cpp. "Syntax error" is here to catch this case.
11396 cat >conftest.$ac_ext <<_ACEOF
11397/* confdefs.h. */
11398_ACEOF
11399cat confdefs.h >>conftest.$ac_ext
11400cat >>conftest.$ac_ext <<_ACEOF
11401/* end confdefs.h. */
11402#ifdef __STDC__
11403# include <limits.h>
11404#else
11405# include <assert.h>
11406#endif
ac1cb8d3 11407 Syntax error
a848cd7e
SC
11408_ACEOF
11409if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11410 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11411 ac_status=$?
11412 grep -v '^ *+' conftest.er1 >conftest.err
11413 rm -f conftest.er1
11414 cat conftest.err >&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); } >/dev/null; then
11417 if test -s conftest.err; then
11418 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11420 else
11421 ac_cpp_err=
11422 fi
11423else
11424 ac_cpp_err=yes
11425fi
11426if test -z "$ac_cpp_err"; then
11427 :
11428else
11429 echo "$as_me: failed program was:" >&5
11430sed 's/^/| /' conftest.$ac_ext >&5
11431
11432 # Broken: fails on valid input.
11433continue
11434fi
11435rm -f conftest.err conftest.$ac_ext
11436
11437 # OK, works on sane cases. Now check whether non-existent headers
11438 # can be detected and how.
11439 cat >conftest.$ac_ext <<_ACEOF
11440/* confdefs.h. */
11441_ACEOF
11442cat confdefs.h >>conftest.$ac_ext
11443cat >>conftest.$ac_ext <<_ACEOF
11444/* end confdefs.h. */
11445#include <ac_nonexistent.h>
11446_ACEOF
11447if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11449 ac_status=$?
11450 grep -v '^ *+' conftest.er1 >conftest.err
11451 rm -f conftest.er1
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } >/dev/null; then
11455 if test -s conftest.err; then
11456 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11458 else
11459 ac_cpp_err=
11460 fi
11461else
11462 ac_cpp_err=yes
11463fi
11464if test -z "$ac_cpp_err"; then
11465 # Broken: success on invalid input.
11466continue
11467else
11468 echo "$as_me: failed program was:" >&5
11469sed 's/^/| /' conftest.$ac_ext >&5
11470
11471 # Passes both tests.
11472ac_preproc_ok=:
11473break
11474fi
11475rm -f conftest.err conftest.$ac_ext
11476
11477done
11478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11479rm -f conftest.err conftest.$ac_ext
11480if $ac_preproc_ok; then
11481 break
11482fi
11483
11484 done
11485 ac_cv_prog_CPP=$CPP
11486
11487fi
11488 CPP=$ac_cv_prog_CPP
11489else
11490 ac_cv_prog_CPP=$CPP
11491fi
11492echo "$as_me:$LINENO: result: $CPP" >&5
11493echo "${ECHO_T}$CPP" >&6
11494ac_preproc_ok=false
11495for ac_c_preproc_warn_flag in '' yes
11496do
11497 # Use a header file that comes with gcc, so configuring glibc
11498 # with a fresh cross-compiler works.
11499 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11500 # <limits.h> exists even on freestanding compilers.
11501 # On the NeXT, cc -E runs the code through the compiler's parser,
11502 # not just through cpp. "Syntax error" is here to catch this case.
11503 cat >conftest.$ac_ext <<_ACEOF
11504/* confdefs.h. */
11505_ACEOF
11506cat confdefs.h >>conftest.$ac_ext
11507cat >>conftest.$ac_ext <<_ACEOF
11508/* end confdefs.h. */
11509#ifdef __STDC__
11510# include <limits.h>
11511#else
11512# include <assert.h>
11513#endif
ac1cb8d3 11514 Syntax error
a848cd7e
SC
11515_ACEOF
11516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11518 ac_status=$?
11519 grep -v '^ *+' conftest.er1 >conftest.err
11520 rm -f conftest.er1
11521 cat conftest.err >&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } >/dev/null; then
11524 if test -s conftest.err; then
11525 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11527 else
11528 ac_cpp_err=
11529 fi
11530else
11531 ac_cpp_err=yes
11532fi
11533if test -z "$ac_cpp_err"; then
11534 :
11535else
11536 echo "$as_me: failed program was:" >&5
11537sed 's/^/| /' conftest.$ac_ext >&5
11538
11539 # Broken: fails on valid input.
11540continue
11541fi
11542rm -f conftest.err conftest.$ac_ext
11543
11544 # OK, works on sane cases. Now check whether non-existent headers
11545 # can be detected and how.
11546 cat >conftest.$ac_ext <<_ACEOF
11547/* confdefs.h. */
11548_ACEOF
11549cat confdefs.h >>conftest.$ac_ext
11550cat >>conftest.$ac_ext <<_ACEOF
11551/* end confdefs.h. */
11552#include <ac_nonexistent.h>
11553_ACEOF
11554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } >/dev/null; then
11562 if test -s conftest.err; then
11563 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 11564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
11565 else
11566 ac_cpp_err=
11567 fi
11568else
11569 ac_cpp_err=yes
11570fi
11571if test -z "$ac_cpp_err"; then
11572 # Broken: success on invalid input.
11573continue
11574else
11575 echo "$as_me: failed program was:" >&5
11576sed 's/^/| /' conftest.$ac_ext >&5
11577
11578 # Passes both tests.
11579ac_preproc_ok=:
11580break
11581fi
11582rm -f conftest.err conftest.$ac_ext
11583
11584done
11585# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11586rm -f conftest.err conftest.$ac_ext
11587if $ac_preproc_ok; then
11588 :
11589else
11590 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11591See \`config.log' for more details." >&5
11592echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11593See \`config.log' for more details." >&2;}
11594 { (exit 1); exit 1; }; }
11595fi
11596
11597ac_ext=c
11598ac_cpp='$CPP $CPPFLAGS'
11599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11601ac_compiler_gnu=$ac_cv_c_compiler_gnu
11602
11603
11604echo "$as_me:$LINENO: checking for egrep" >&5
11605echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11606if test "${ac_cv_prog_egrep+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
11608else
11609 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11610 then ac_cv_prog_egrep='grep -E'
11611 else ac_cv_prog_egrep='egrep'
11612 fi
11613fi
11614echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11615echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11616 EGREP=$ac_cv_prog_egrep
11617
11618
11619if test $ac_cv_c_compiler_gnu = yes; then
11620 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11621echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11622if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11623 echo $ECHO_N "(cached) $ECHO_C" >&6
11624else
11625 ac_pattern="Autoconf.*'x'"
11626 cat >conftest.$ac_ext <<_ACEOF
11627/* confdefs.h. */
11628_ACEOF
11629cat confdefs.h >>conftest.$ac_ext
11630cat >>conftest.$ac_ext <<_ACEOF
11631/* end confdefs.h. */
11632#include <sgtty.h>
11633Autoconf TIOCGETP
11634_ACEOF
11635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11636 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11637 ac_cv_prog_gcc_traditional=yes
11638else
11639 ac_cv_prog_gcc_traditional=no
11640fi
11641rm -f conftest*
11642
11643
11644 if test $ac_cv_prog_gcc_traditional = no; then
11645 cat >conftest.$ac_ext <<_ACEOF
11646/* confdefs.h. */
11647_ACEOF
11648cat confdefs.h >>conftest.$ac_ext
11649cat >>conftest.$ac_ext <<_ACEOF
11650/* end confdefs.h. */
11651#include <termio.h>
11652Autoconf TCGETA
11653_ACEOF
11654if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11655 $EGREP "$ac_pattern" >/dev/null 2>&1; then
11656 ac_cv_prog_gcc_traditional=yes
11657fi
11658rm -f conftest*
11659
11660 fi
11661fi
11662echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11663echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
11664 if test $ac_cv_prog_gcc_traditional = yes; then
11665 CC="$CC -traditional"
11666 fi
11667fi
11668
11669
11670
11671
11672ac_ext=cc
11673ac_cpp='$CXXCPP $CPPFLAGS'
11674ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11675ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11676ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11677
11678
11679CXXFLAGS=${CXXFLAGS:=}
11680ac_ext=cc
11681ac_cpp='$CXXCPP $CPPFLAGS'
11682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11685if test -n "$ac_tool_prefix"; then
11686 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11687 do
11688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11689set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11690echo "$as_me:$LINENO: checking for $ac_word" >&5
11691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11692if test "${ac_cv_prog_CXX+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11694else
11695 if test -n "$CXX"; then
11696 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11697else
11698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11699for as_dir in $PATH
11700do
11701 IFS=$as_save_IFS
11702 test -z "$as_dir" && as_dir=.
11703 for ac_exec_ext in '' $ac_executable_extensions; do
11704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11705 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11707 break 2
11708 fi
11709done
11710done
11711
11712fi
11713fi
11714CXX=$ac_cv_prog_CXX
11715if test -n "$CXX"; then
11716 echo "$as_me:$LINENO: result: $CXX" >&5
11717echo "${ECHO_T}$CXX" >&6
11718else
11719 echo "$as_me:$LINENO: result: no" >&5
11720echo "${ECHO_T}no" >&6
11721fi
11722
11723 test -n "$CXX" && break
11724 done
11725fi
11726if test -z "$CXX"; then
11727 ac_ct_CXX=$CXX
11728 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11729do
11730 # Extract the first word of "$ac_prog", so it can be a program name with args.
11731set dummy $ac_prog; ac_word=$2
11732echo "$as_me:$LINENO: checking for $ac_word" >&5
11733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11734if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736else
11737 if test -n "$ac_ct_CXX"; then
11738 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11739else
11740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11741for as_dir in $PATH
11742do
11743 IFS=$as_save_IFS
11744 test -z "$as_dir" && as_dir=.
11745 for ac_exec_ext in '' $ac_executable_extensions; do
11746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11747 ac_cv_prog_ac_ct_CXX="$ac_prog"
11748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11749 break 2
11750 fi
11751done
11752done
11753
11754fi
11755fi
11756ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11757if test -n "$ac_ct_CXX"; then
11758 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11759echo "${ECHO_T}$ac_ct_CXX" >&6
11760else
11761 echo "$as_me:$LINENO: result: no" >&5
11762echo "${ECHO_T}no" >&6
11763fi
11764
11765 test -n "$ac_ct_CXX" && break
11766done
11767test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11768
11769 CXX=$ac_ct_CXX
11770fi
11771
11772
11773# Provide some information about the compiler.
11774echo "$as_me:$LINENO:" \
11775 "checking for C++ compiler version" >&5
11776ac_compiler=`set X $ac_compile; echo $2`
11777{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11778 (eval $ac_compiler --version </dev/null >&5) 2>&5
11779 ac_status=$?
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }
11782{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11783 (eval $ac_compiler -v </dev/null >&5) 2>&5
11784 ac_status=$?
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }
11787{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11788 (eval $ac_compiler -V </dev/null >&5) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }
11792
11793echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11794echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11795if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
11797else
11798 cat >conftest.$ac_ext <<_ACEOF
11799/* confdefs.h. */
11800_ACEOF
11801cat confdefs.h >>conftest.$ac_ext
11802cat >>conftest.$ac_ext <<_ACEOF
11803/* end confdefs.h. */
11804
11805int
11806main ()
11807{
11808#ifndef __GNUC__
11809 choke me
11810#endif
11811
11812 ;
11813 return 0;
11814}
11815_ACEOF
11816rm -f conftest.$ac_objext
11817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11818 (eval $ac_compile) 2>conftest.er1
a848cd7e 11819 ac_status=$?
ac1cb8d3
VS
11820 grep -v '^ *+' conftest.er1 >conftest.err
11821 rm -f conftest.er1
11822 cat conftest.err >&5
a848cd7e
SC
11823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11824 (exit $ac_status); } &&
04840eaa
VS
11825 { ac_try='test -z "$ac_cxx_werror_flag"
11826 || test ! -s conftest.err'
ac1cb8d3
VS
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11829 ac_status=$?
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; } &&
11832 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11834 (eval $ac_try) 2>&5
11835 ac_status=$?
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); }; }; then
11838 ac_compiler_gnu=yes
11839else
11840 echo "$as_me: failed program was:" >&5
11841sed 's/^/| /' conftest.$ac_ext >&5
11842
11843ac_compiler_gnu=no
11844fi
ac1cb8d3 11845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11846ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11847
11848fi
11849echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11850echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11851GXX=`test $ac_compiler_gnu = yes && echo yes`
11852ac_test_CXXFLAGS=${CXXFLAGS+set}
11853ac_save_CXXFLAGS=$CXXFLAGS
11854CXXFLAGS="-g"
11855echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11856echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11857if test "${ac_cv_prog_cxx_g+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859else
11860 cat >conftest.$ac_ext <<_ACEOF
11861/* confdefs.h. */
11862_ACEOF
11863cat confdefs.h >>conftest.$ac_ext
11864cat >>conftest.$ac_ext <<_ACEOF
11865/* end confdefs.h. */
11866
11867int
11868main ()
11869{
11870
11871 ;
11872 return 0;
11873}
11874_ACEOF
11875rm -f conftest.$ac_objext
11876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11877 (eval $ac_compile) 2>conftest.er1
a848cd7e 11878 ac_status=$?
ac1cb8d3
VS
11879 grep -v '^ *+' conftest.er1 >conftest.err
11880 rm -f conftest.er1
11881 cat conftest.err >&5
a848cd7e
SC
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } &&
04840eaa
VS
11884 { ac_try='test -z "$ac_cxx_werror_flag"
11885 || test ! -s conftest.err'
ac1cb8d3
VS
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11888 ac_status=$?
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; } &&
11891 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893 (eval $ac_try) 2>&5
11894 ac_status=$?
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); }; }; then
11897 ac_cv_prog_cxx_g=yes
11898else
11899 echo "$as_me: failed program was:" >&5
11900sed 's/^/| /' conftest.$ac_ext >&5
11901
11902ac_cv_prog_cxx_g=no
11903fi
ac1cb8d3 11904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11905fi
11906echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11907echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
11908if test "$ac_test_CXXFLAGS" = set; then
11909 CXXFLAGS=$ac_save_CXXFLAGS
11910elif test $ac_cv_prog_cxx_g = yes; then
11911 if test "$GXX" = yes; then
11912 CXXFLAGS="-g -O2"
11913 else
11914 CXXFLAGS="-g"
11915 fi
11916else
11917 if test "$GXX" = yes; then
11918 CXXFLAGS="-O2"
11919 else
11920 CXXFLAGS=
11921 fi
11922fi
11923for ac_declaration in \
ac1cb8d3 11924 '' \
a848cd7e
SC
11925 'extern "C" void std::exit (int) throw (); using std::exit;' \
11926 'extern "C" void std::exit (int); using std::exit;' \
11927 'extern "C" void exit (int) throw ();' \
11928 'extern "C" void exit (int);' \
11929 'void exit (int);'
11930do
11931 cat >conftest.$ac_ext <<_ACEOF
11932/* confdefs.h. */
11933_ACEOF
11934cat confdefs.h >>conftest.$ac_ext
11935cat >>conftest.$ac_ext <<_ACEOF
11936/* end confdefs.h. */
de59c161 11937$ac_declaration
ac1cb8d3 11938#include <stdlib.h>
a848cd7e
SC
11939int
11940main ()
11941{
11942exit (42);
11943 ;
11944 return 0;
11945}
11946_ACEOF
11947rm -f conftest.$ac_objext
11948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11949 (eval $ac_compile) 2>conftest.er1
a848cd7e 11950 ac_status=$?
ac1cb8d3
VS
11951 grep -v '^ *+' conftest.er1 >conftest.err
11952 rm -f conftest.er1
11953 cat conftest.err >&5
a848cd7e
SC
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
04840eaa
VS
11956 { ac_try='test -z "$ac_cxx_werror_flag"
11957 || test ! -s conftest.err'
ac1cb8d3
VS
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; } &&
11963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; }; then
11969 :
11970else
11971 echo "$as_me: failed program was:" >&5
11972sed 's/^/| /' conftest.$ac_ext >&5
11973
11974continue
11975fi
ac1cb8d3 11976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11977 cat >conftest.$ac_ext <<_ACEOF
11978/* confdefs.h. */
11979_ACEOF
11980cat confdefs.h >>conftest.$ac_ext
11981cat >>conftest.$ac_ext <<_ACEOF
11982/* end confdefs.h. */
11983$ac_declaration
11984int
11985main ()
11986{
11987exit (42);
11988 ;
11989 return 0;
11990}
11991_ACEOF
11992rm -f conftest.$ac_objext
11993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11994 (eval $ac_compile) 2>conftest.er1
a848cd7e 11995 ac_status=$?
ac1cb8d3
VS
11996 grep -v '^ *+' conftest.er1 >conftest.err
11997 rm -f conftest.er1
11998 cat conftest.err >&5
a848cd7e
SC
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
04840eaa
VS
12001 { ac_try='test -z "$ac_cxx_werror_flag"
12002 || test ! -s conftest.err'
ac1cb8d3
VS
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014 break
12015else
12016 echo "$as_me: failed program was:" >&5
12017sed 's/^/| /' conftest.$ac_ext >&5
12018
12019fi
ac1cb8d3 12020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12021done
12022rm -f conftest*
12023if test -n "$ac_declaration"; then
12024 echo '#ifdef __cplusplus' >>confdefs.h
12025 echo $ac_declaration >>confdefs.h
12026 echo '#endif' >>confdefs.h
12027fi
12028
12029ac_ext=cc
12030ac_cpp='$CXXCPP $CPPFLAGS'
12031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12034
12035
12036ac_ext=c
12037ac_cpp='$CPP $CPPFLAGS'
12038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12040ac_compiler_gnu=$ac_cv_c_compiler_gnu
12041
12042
a848cd7e
SC
12043if test -n "$ac_tool_prefix"; then
12044 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12045set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12046echo "$as_me:$LINENO: checking for $ac_word" >&5
12047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12048if test "${ac_cv_prog_RANLIB+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12050else
12051 if test -n "$RANLIB"; then
12052 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12053else
12054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055for as_dir in $PATH
12056do
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12061 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12064 fi
12065done
12066done
12067
12068fi
12069fi
12070RANLIB=$ac_cv_prog_RANLIB
12071if test -n "$RANLIB"; then
12072 echo "$as_me:$LINENO: result: $RANLIB" >&5
12073echo "${ECHO_T}$RANLIB" >&6
12074else
12075 echo "$as_me:$LINENO: result: no" >&5
12076echo "${ECHO_T}no" >&6
12077fi
12078
12079fi
12080if test -z "$ac_cv_prog_RANLIB"; then
12081 ac_ct_RANLIB=$RANLIB
12082 # Extract the first word of "ranlib", so it can be a program name with args.
12083set dummy ranlib; ac_word=$2
12084echo "$as_me:$LINENO: checking for $ac_word" >&5
12085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12086if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12087 echo $ECHO_N "(cached) $ECHO_C" >&6
12088else
12089 if test -n "$ac_ct_RANLIB"; then
12090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12091else
12092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093for as_dir in $PATH
12094do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12099 ac_cv_prog_ac_ct_RANLIB="ranlib"
12100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12102 fi
12103done
12104done
12105
12106 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
12107fi
12108fi
12109ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12110if test -n "$ac_ct_RANLIB"; then
12111 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12112echo "${ECHO_T}$ac_ct_RANLIB" >&6
12113else
12114 echo "$as_me:$LINENO: result: no" >&5
12115echo "${ECHO_T}no" >&6
12116fi
12117
12118 RANLIB=$ac_ct_RANLIB
12119else
12120 RANLIB="$ac_cv_prog_RANLIB"
12121fi
12122
12123
12124# Extract the first word of "ar", so it can be a program name with args.
12125set dummy ar; ac_word=$2
12126echo "$as_me:$LINENO: checking for $ac_word" >&5
12127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12128if test "${ac_cv_prog_AR+set}" = set; then
12129 echo $ECHO_N "(cached) $ECHO_C" >&6
12130else
12131 if test -n "$AR"; then
12132 ac_cv_prog_AR="$AR" # Let the user override the test.
12133else
12134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135for as_dir in $PATH
12136do
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12141 ac_cv_prog_AR="ar"
12142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12143 break 2
12144 fi
12145done
12146done
12147
12148fi
12149fi
12150AR=$ac_cv_prog_AR
12151if test -n "$AR"; then
12152 echo "$as_me:$LINENO: result: $AR" >&5
12153echo "${ECHO_T}$AR" >&6
12154else
12155 echo "$as_me:$LINENO: result: no" >&5
12156echo "${ECHO_T}no" >&6
12157fi
12158
12159if test "x$AR" = "x" ; then
77ffb593
JS
12160 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
12161echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
12162 { (exit 1); exit 1; }; }
12163fi
12164
12165# Find a good install program. We prefer a C program (faster),
12166# so one script is as good as another. But avoid the broken or
12167# incompatible versions:
12168# SysV /etc/install, /usr/sbin/install
12169# SunOS /usr/etc/install
12170# IRIX /sbin/install
12171# AIX /bin/install
12172# AmigaOS /C/install, which installs bootblocks on floppy discs
12173# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12174# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12175# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 12176# OS/2's system install, which has a completely different semantic
a848cd7e
SC
12177# ./install, which can be erroneously created by make from ./install.sh.
12178echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12179echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
12180if test -z "$INSTALL"; then
12181if test "${ac_cv_path_install+set}" = set; then
12182 echo $ECHO_N "(cached) $ECHO_C" >&6
12183else
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185for as_dir in $PATH
12186do
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
12189 # Account for people who put trailing slashes in PATH elements.
12190case $as_dir/ in
12191 ./ | .// | /cC/* | \
12192 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 12193 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
12194 /usr/ucb/* ) ;;
12195 *)
12196 # OSF1 and SCO ODT 3.0 have their own names for install.
12197 # Don't use installbsd from OSF since it installs stuff as root
12198 # by default.
12199 for ac_prog in ginstall scoinst install; do
12200 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
12201 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
12202 if test $ac_prog = install &&
12203 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12204 # AIX install. It has an incompatible calling convention.
12205 :
12206 elif test $ac_prog = install &&
12207 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12208 # program-specific install script used by HP pwplus--don't use.
12209 :
12210 else
12211 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12212 break 3
12213 fi
12214 fi
a848cd7e
SC
12215 done
12216 done
12217 ;;
12218esac
12219done
12220
12221
12222fi
12223 if test "${ac_cv_path_install+set}" = set; then
12224 INSTALL=$ac_cv_path_install
12225 else
12226 # As a last resort, use the slow shell script. We don't cache a
12227 # path for INSTALL within a source directory, because that will
12228 # break other packages using the cache if that directory is
12229 # removed, or if the path is relative.
12230 INSTALL=$ac_install_sh
12231 fi
12232fi
12233echo "$as_me:$LINENO: result: $INSTALL" >&5
12234echo "${ECHO_T}$INSTALL" >&6
12235
12236# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12237# It thinks the first close brace ends the variable substitution.
12238test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12239
12240test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12241
12242test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12243
12244
12245case ${INSTALL} in
12246 /* ) # Absolute
12247 ;;
12248 ?:* ) # Drive letter, considered as absolute.
12249 ;;
12250 *)
12251 INSTALL=`pwd`/${INSTALL} ;;
12252esac
12253
a848cd7e
SC
12254
12255case "${host}" in
12256
12257 powerpc-*-darwin* )
12258 INSTALL_PROGRAM="cp -fp"
12259 INSTALL_DATA="cp -fp"
12260 ;;
12261 *)
12262 ;;
12263esac
12264
12265# Extract the first word of "strip", so it can be a program name with args.
12266set dummy strip; ac_word=$2
12267echo "$as_me:$LINENO: checking for $ac_word" >&5
12268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12269if test "${ac_cv_prog_STRIP+set}" = set; then
12270 echo $ECHO_N "(cached) $ECHO_C" >&6
12271else
12272 if test -n "$STRIP"; then
12273 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12274else
12275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276for as_dir in $PATH
12277do
12278 IFS=$as_save_IFS
12279 test -z "$as_dir" && as_dir=.
12280 for ac_exec_ext in '' $ac_executable_extensions; do
12281 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12282 ac_cv_prog_STRIP="strip"
12283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12284 break 2
12285 fi
12286done
12287done
12288
12289 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
12290fi
12291fi
12292STRIP=$ac_cv_prog_STRIP
12293if test -n "$STRIP"; then
12294 echo "$as_me:$LINENO: result: $STRIP" >&5
12295echo "${ECHO_T}$STRIP" >&6
12296else
12297 echo "$as_me:$LINENO: result: no" >&5
12298echo "${ECHO_T}no" >&6
12299fi
12300
12301
12302echo "$as_me:$LINENO: checking if make is GNU make" >&5
12303echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
12304if test "${wx_cv_prog_makeisgnu+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306else
12307
12308 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
12309 egrep -s GNU > /dev/null); then
12310 wx_cv_prog_makeisgnu="yes"
12311 else
12312 wx_cv_prog_makeisgnu="no"
12313 fi
12314
12315fi
12316echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
12317echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
12318
12319if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
12320 IF_GNU_MAKE=""
12321else
12322 IF_GNU_MAKE="#"
12323fi
12324
12325
12326
12327if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
12328echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12329echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12330if test "${wx_cv_prog_makevpath+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12332else
12333
12334cat - << EOF > confMake
12335check : file
12336 cp \$? \$@
12337 cp \$? final_file
12338EOF
12339
12340if test ! -d sub ; then
12341 mkdir sub
12342fi
12343echo dummy > sub/file
12344${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
12345RESULT=$?
12346rm -f sub/file check final_file confMake
12347rmdir sub
12348if test "$RESULT" = 0; then
12349 wx_cv_prog_makevpath="yes"
12350else
12351 wx_cv_prog_makevpath="no"
12352fi
12353
12354fi
12355echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12356echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
12357
12358if test "x$wx_cv_prog_makevpath" != "xyes"; then
12359{ { echo "$as_me:$LINENO: error:
12360You need a make-utility that is able to use the variable
12361VPATH correctly.
12362If your version of make does not support VPATH correctly,
12363please install GNU-make (possibly as gmake), and start
12364configure with the following command:
12365export MAKE=gmake; ./configure for sh-type shells
12366setenv MAKE gmake; ./configure for csh-type shells
12367Also please do remember to use gmake in this case every time
12368you are trying to compile.
12369" >&5
12370echo "$as_me: error:
12371You need a make-utility that is able to use the variable
12372VPATH correctly.
12373If your version of make does not support VPATH correctly,
12374please install GNU-make (possibly as gmake), and start
12375configure with the following command:
12376export MAKE=gmake; ./configure for sh-type shells
12377setenv MAKE gmake; ./configure for csh-type shells
12378Also please do remember to use gmake in this case every time
12379you are trying to compile.
12380" >&2;}
12381 { (exit 1); exit 1; }; }
12382fi fi
12383echo "$as_me:$LINENO: checking whether ln -s works" >&5
12384echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12385LN_S=$as_ln_s
12386if test "$LN_S" = "ln -s"; then
12387 echo "$as_me:$LINENO: result: yes" >&5
12388echo "${ECHO_T}yes" >&6
12389else
12390 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12391echo "${ECHO_T}no, using $LN_S" >&6
12392fi
12393
12394
12395
12396case "${host}" in
12397 *-pc-os2_emx | *-pc-os2-emx )
12398 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
12399 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12400echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12401if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12403else
12404 ac_check_lib_save_LIBS=$LIBS
12405LIBS="-lcExt $LIBS"
12406cat >conftest.$ac_ext <<_ACEOF
12407/* confdefs.h. */
12408_ACEOF
12409cat confdefs.h >>conftest.$ac_ext
12410cat >>conftest.$ac_ext <<_ACEOF
12411/* end confdefs.h. */
12412
12413/* Override any gcc2 internal prototype to avoid an error. */
12414#ifdef __cplusplus
12415extern "C"
12416#endif
12417/* We use char because int might match the return type of a gcc2
12418 builtin and then its argument prototype would still apply. */
12419char drand48 ();
12420int
12421main ()
12422{
12423drand48 ();
12424 ;
12425 return 0;
12426}
12427_ACEOF
12428rm -f conftest.$ac_objext conftest$ac_exeext
12429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12430 (eval $ac_link) 2>conftest.er1
a848cd7e 12431 ac_status=$?
ac1cb8d3
VS
12432 grep -v '^ *+' conftest.er1 >conftest.err
12433 rm -f conftest.er1
12434 cat conftest.err >&5
a848cd7e
SC
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
04840eaa
VS
12437 { ac_try='test -z "$ac_c_werror_flag"
12438 || test ! -s conftest.err'
ac1cb8d3
VS
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12441 ac_status=$?
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; } &&
12444 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12447 ac_status=$?
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 ac_cv_lib_cExt_drand48=yes
12451else
12452 echo "$as_me: failed program was:" >&5
12453sed 's/^/| /' conftest.$ac_ext >&5
12454
12455ac_cv_lib_cExt_drand48=no
12456fi
ac1cb8d3
VS
12457rm -f conftest.err conftest.$ac_objext \
12458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12459LIBS=$ac_check_lib_save_LIBS
12460fi
12461echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12462echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12463if test $ac_cv_lib_cExt_drand48 = yes; then
12464 LIBS="$LIBS -lcExt"
12465fi
12466
12467 else
12468 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12469 fi
12470 echo "$as_me:$LINENO: checking for gcc version" >&5
12471echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12472if test "${wx_cv_gccversion+set}" = set; then
12473 echo $ECHO_N "(cached) $ECHO_C" >&6
12474else
12475
12476 cat >conftest.$ac_ext <<_ACEOF
12477/* confdefs.h. */
12478_ACEOF
12479cat confdefs.h >>conftest.$ac_ext
12480cat >>conftest.$ac_ext <<_ACEOF
12481/* end confdefs.h. */
12482
12483int
12484main ()
12485{
12486
12487 #if (__GNUC__ < 3)
12488 #error old gcc
12489 #endif
12490
12491 ;
12492 return 0;
12493}
12494_ACEOF
12495rm -f conftest.$ac_objext
12496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12497 (eval $ac_compile) 2>conftest.er1
a848cd7e 12498 ac_status=$?
ac1cb8d3
VS
12499 grep -v '^ *+' conftest.er1 >conftest.err
12500 rm -f conftest.er1
12501 cat conftest.err >&5
a848cd7e
SC
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } &&
04840eaa
VS
12504 { ac_try='test -z "$ac_c_werror_flag"
12505 || test ! -s conftest.err'
ac1cb8d3
VS
12506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12507 (eval $ac_try) 2>&5
12508 ac_status=$?
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12513 (eval $ac_try) 2>&5
12514 ac_status=$?
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); }; }; then
12517
12518 cat >conftest.$ac_ext <<_ACEOF
12519/* confdefs.h. */
12520_ACEOF
12521cat confdefs.h >>conftest.$ac_ext
12522cat >>conftest.$ac_ext <<_ACEOF
12523/* end confdefs.h. */
12524
12525int
12526main ()
12527{
12528
12529 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12530 #error intermediate gcc
12531 #endif
12532
12533 ;
12534 return 0;
12535}
12536_ACEOF
12537rm -f conftest.$ac_objext
12538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12539 (eval $ac_compile) 2>conftest.er1
a848cd7e 12540 ac_status=$?
ac1cb8d3
VS
12541 grep -v '^ *+' conftest.er1 >conftest.err
12542 rm -f conftest.er1
12543 cat conftest.err >&5
a848cd7e
SC
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); } &&
04840eaa
VS
12546 { ac_try='test -z "$ac_c_werror_flag"
12547 || test ! -s conftest.err'
ac1cb8d3
VS
12548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12549 (eval $ac_try) 2>&5
12550 ac_status=$?
12551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12552 (exit $ac_status); }; } &&
12553 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12555 (eval $ac_try) 2>&5
12556 ac_status=$?
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559
12560 wx_cv_gccversion=Innotek
12561
12562else
12563 echo "$as_me: failed program was:" >&5
12564sed 's/^/| /' conftest.$ac_ext >&5
12565
12566
12567 wx_cv_gccversion=3
12568
12569
12570fi
ac1cb8d3 12571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12572
12573else
12574 echo "$as_me: failed program was:" >&5
12575sed 's/^/| /' conftest.$ac_ext >&5
12576
12577
12578 wx_cv_gccversion=2
12579
12580
12581fi
ac1cb8d3 12582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12583
12584fi
12585echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12586echo "${ECHO_T}$wx_cv_gccversion" >&6
12587 if test "$wx_cv_gccversion" = "2"; then
12588 LIBS="$LIBS -lstdcpp"
12589 LDFLAGS="$LDFLAGS -Zsysv-signals"
12590 else
12591 if test "$wx_cv_gccversion" = "3"; then
12592 LIBS="$LIBS -lstdcxx"
12593 LDFLAGS="$LDFLAGS -Zsysv-signals"
12594 else
12595 LIBS="$LIBS -lstdc++"
12596 fi
12597 fi
12598 if test "$wxUSE_OMF" = "yes"; then
de59c161 12599 LDFLAGS="$LDFLAGS -Zomf -Zlinker /PMTYPE:PM -Zlinker /EXEPACK"
a848cd7e
SC
12600 fi
12601 ;;
12602 *)
12603
12604
12605
12606 ac_ext=cc
12607ac_cpp='$CXXCPP $CPPFLAGS'
12608ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12609ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12610ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12611
12612
12613
12614echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12615echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12616if test "${ac_cv_string_strcasecmp+set}" = set; then
12617 echo $ECHO_N "(cached) $ECHO_C" >&6
12618else
12619
12620 cat >conftest.$ac_ext <<_ACEOF
12621/* confdefs.h. */
12622_ACEOF
12623cat confdefs.h >>conftest.$ac_ext
12624cat >>conftest.$ac_ext <<_ACEOF
12625/* end confdefs.h. */
12626
12627 #include <string.h>
12628
12629int
12630main ()
12631{
12632
12633 strcasecmp("foo", "bar");
12634
12635 ;
12636 return 0;
12637}
12638_ACEOF
12639rm -f conftest.$ac_objext conftest$ac_exeext
12640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12641 (eval $ac_link) 2>conftest.er1
a848cd7e 12642 ac_status=$?
ac1cb8d3
VS
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
a848cd7e
SC
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
04840eaa
VS
12648 { ac_try='test -z "$ac_cxx_werror_flag"
12649 || test ! -s conftest.err'
ac1cb8d3
VS
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } &&
12655 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12658 ac_status=$?
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 ac_cv_string_strcasecmp=yes
12662else
12663 echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
12666ac_cv_string_strcasecmp=no
12667
12668fi
ac1cb8d3
VS
12669rm -f conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12671
12672fi
12673echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12674echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12675
12676 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12677 cat >>confdefs.h <<\_ACEOF
12678#define HAVE_STRCASECMP_IN_STRING_H 1
12679_ACEOF
12680
12681 else
12682 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
12683echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12684if test "${ac_cv_strings_strcasecmp+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12686else
12687
12688 cat >conftest.$ac_ext <<_ACEOF
12689/* confdefs.h. */
12690_ACEOF
12691cat confdefs.h >>conftest.$ac_ext
12692cat >>conftest.$ac_ext <<_ACEOF
12693/* end confdefs.h. */
12694
12695 #include <strings.h>
12696
12697int
12698main ()
12699{
12700
12701 strcasecmp("foo", "bar");
12702
12703 ;
12704 return 0;
12705}
12706_ACEOF
12707rm -f conftest.$ac_objext conftest$ac_exeext
12708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 12709 (eval $ac_link) 2>conftest.er1
a848cd7e 12710 ac_status=$?
ac1cb8d3
VS
12711 grep -v '^ *+' conftest.er1 >conftest.err
12712 rm -f conftest.er1
12713 cat conftest.err >&5
a848cd7e
SC
12714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715 (exit $ac_status); } &&
04840eaa
VS
12716 { ac_try='test -z "$ac_cxx_werror_flag"
12717 || test ! -s conftest.err'
ac1cb8d3
VS
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; } &&
12723 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
12724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12725 (eval $ac_try) 2>&5
12726 ac_status=$?
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); }; }; then
12729 ac_cv_strings_strcasecmp=yes
12730else
12731 echo "$as_me: failed program was:" >&5
12732sed 's/^/| /' conftest.$ac_ext >&5
12733
12734ac_cv_strings_strcasecmp=no
12735
12736fi
ac1cb8d3
VS
12737rm -f conftest.err conftest.$ac_objext \
12738 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
12739
12740fi
12741echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12742echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12743
0c3c69fc 12744 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
12745 cat >>confdefs.h <<\_ACEOF
12746#define HAVE_STRCASECMP_IN_STRINGS_H 1
12747_ACEOF
12748
12749 else
12750 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
12751echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12752 { (exit 1); exit 1; }; }
12753 fi
12754 fi
12755
12756 ac_ext=c
12757ac_cpp='$CPP $CPPFLAGS'
12758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12760ac_compiler_gnu=$ac_cv_c_compiler_gnu
12761
12762 ;;
12763esac
12764
12765
12766echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12767echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12768if test "${ac_cv_header_stdc+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12770else
12771 cat >conftest.$ac_ext <<_ACEOF
12772/* confdefs.h. */
12773_ACEOF
12774cat confdefs.h >>conftest.$ac_ext
12775cat >>conftest.$ac_ext <<_ACEOF
12776/* end confdefs.h. */
12777#include <stdlib.h>
12778#include <stdarg.h>
12779#include <string.h>
12780#include <float.h>
12781
12782int
12783main ()
12784{
12785
12786 ;
12787 return 0;
12788}
12789_ACEOF
12790rm -f conftest.$ac_objext
12791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12792 (eval $ac_compile) 2>conftest.er1
a848cd7e 12793 ac_status=$?
ac1cb8d3
VS
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
a848cd7e
SC
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } &&
04840eaa
VS
12799 { ac_try='test -z "$ac_c_werror_flag"
12800 || test ! -s conftest.err'
ac1cb8d3
VS
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12803 ac_status=$?
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; } &&
12806 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12809 ac_status=$?
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12812 ac_cv_header_stdc=yes
12813else
12814 echo "$as_me: failed program was:" >&5
12815sed 's/^/| /' conftest.$ac_ext >&5
12816
12817ac_cv_header_stdc=no
12818fi
ac1cb8d3 12819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12820
12821if test $ac_cv_header_stdc = yes; then
12822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12823 cat >conftest.$ac_ext <<_ACEOF
12824/* confdefs.h. */
12825_ACEOF
12826cat confdefs.h >>conftest.$ac_ext
12827cat >>conftest.$ac_ext <<_ACEOF
12828/* end confdefs.h. */
12829#include <string.h>
12830
12831_ACEOF
12832if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12833 $EGREP "memchr" >/dev/null 2>&1; then
12834 :
12835else
12836 ac_cv_header_stdc=no
12837fi
12838rm -f conftest*
12839
12840fi
12841
12842if test $ac_cv_header_stdc = yes; then
12843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12844 cat >conftest.$ac_ext <<_ACEOF
12845/* confdefs.h. */
12846_ACEOF
12847cat confdefs.h >>conftest.$ac_ext
12848cat >>conftest.$ac_ext <<_ACEOF
12849/* end confdefs.h. */
12850#include <stdlib.h>
12851
12852_ACEOF
12853if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12854 $EGREP "free" >/dev/null 2>&1; then
12855 :
12856else
12857 ac_cv_header_stdc=no
12858fi
12859rm -f conftest*
12860
12861fi
12862
12863if test $ac_cv_header_stdc = yes; then
12864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12865 if test "$cross_compiling" = yes; then
12866 :
12867else
12868 cat >conftest.$ac_ext <<_ACEOF
12869/* confdefs.h. */
12870_ACEOF
12871cat confdefs.h >>conftest.$ac_ext
12872cat >>conftest.$ac_ext <<_ACEOF
12873/* end confdefs.h. */
12874#include <ctype.h>
12875#if ((' ' & 0x0FF) == 0x020)
12876# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12877# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12878#else
12879# define ISLOWER(c) \
ac1cb8d3
VS
12880 (('a' <= (c) && (c) <= 'i') \
12881 || ('j' <= (c) && (c) <= 'r') \
12882 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
12883# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12884#endif
12885
12886#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12887int
12888main ()
12889{
12890 int i;
12891 for (i = 0; i < 256; i++)
12892 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 12893 || toupper (i) != TOUPPER (i))
a848cd7e
SC
12894 exit(2);
12895 exit (0);
12896}
12897_ACEOF
12898rm -f conftest$ac_exeext
12899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12900 (eval $ac_link) 2>&5
12901 ac_status=$?
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
12909 :
12910else
12911 echo "$as_me: program exited with status $ac_status" >&5
12912echo "$as_me: failed program was:" >&5
12913sed 's/^/| /' conftest.$ac_ext >&5
12914
12915( exit $ac_status )
12916ac_cv_header_stdc=no
12917fi
ac1cb8d3 12918rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12919fi
12920fi
12921fi
12922echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12923echo "${ECHO_T}$ac_cv_header_stdc" >&6
12924if test $ac_cv_header_stdc = yes; then
12925
12926cat >>confdefs.h <<\_ACEOF
12927#define STDC_HEADERS 1
12928_ACEOF
12929
12930fi
12931
12932# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 12943 inttypes.h stdint.h unistd.h
a848cd7e
SC
12944do
12945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12946echo "$as_me:$LINENO: checking for $ac_header" >&5
12947echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12948if eval "test \"\${$as_ac_Header+set}\" = set"; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12950else
12951 cat >conftest.$ac_ext <<_ACEOF
12952/* confdefs.h. */
12953_ACEOF
12954cat confdefs.h >>conftest.$ac_ext
12955cat >>conftest.$ac_ext <<_ACEOF
12956/* end confdefs.h. */
12957$ac_includes_default
12958
12959#include <$ac_header>
12960_ACEOF
12961rm -f conftest.$ac_objext
12962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 12963 (eval $ac_compile) 2>conftest.er1
a848cd7e 12964 ac_status=$?
ac1cb8d3
VS
12965 grep -v '^ *+' conftest.er1 >conftest.err
12966 rm -f conftest.er1
12967 cat conftest.err >&5
a848cd7e
SC
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 (exit $ac_status); } &&
04840eaa
VS
12970 { ac_try='test -z "$ac_c_werror_flag"
12971 || test ! -s conftest.err'
ac1cb8d3
VS
12972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12973 (eval $ac_try) 2>&5
12974 ac_status=$?
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; } &&
12977 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
12978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12979 (eval $ac_try) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 eval "$as_ac_Header=yes"
12984else
12985 echo "$as_me: failed program was:" >&5
12986sed 's/^/| /' conftest.$ac_ext >&5
12987
12988eval "$as_ac_Header=no"
12989fi
ac1cb8d3 12990rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
12991fi
12992echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12993echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12994if test `eval echo '${'$as_ac_Header'}'` = yes; then
12995 cat >>confdefs.h <<_ACEOF
12996#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12997_ACEOF
12998
12999fi
13000
13001done
13002
13003
13004
13005for ac_header in stdlib.h
13006do
13007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13008if eval "test \"\${$as_ac_Header+set}\" = set"; then
13009 echo "$as_me:$LINENO: checking for $ac_header" >&5
13010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13011if eval "test \"\${$as_ac_Header+set}\" = set"; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13013fi
13014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13016else
13017 # Is the header compilable?
13018echo "$as_me:$LINENO: checking $ac_header usability" >&5
13019echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13020cat >conftest.$ac_ext <<_ACEOF
13021/* confdefs.h. */
13022_ACEOF
13023cat confdefs.h >>conftest.$ac_ext
13024cat >>conftest.$ac_ext <<_ACEOF
13025/* end confdefs.h. */
13026$ac_includes_default
13027#include <$ac_header>
13028_ACEOF
13029rm -f conftest.$ac_objext
13030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13031 (eval $ac_compile) 2>conftest.er1
a848cd7e 13032 ac_status=$?
ac1cb8d3
VS
13033 grep -v '^ *+' conftest.er1 >conftest.err
13034 rm -f conftest.er1
13035 cat conftest.err >&5
a848cd7e
SC
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); } &&
04840eaa
VS
13038 { ac_try='test -z "$ac_c_werror_flag"
13039 || test ! -s conftest.err'
ac1cb8d3
VS
13040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13041 (eval $ac_try) 2>&5
13042 ac_status=$?
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); }; } &&
13045 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13047 (eval $ac_try) 2>&5
13048 ac_status=$?
13049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13050 (exit $ac_status); }; }; then
13051 ac_header_compiler=yes
13052else
13053 echo "$as_me: failed program was:" >&5
13054sed 's/^/| /' conftest.$ac_ext >&5
13055
13056ac_header_compiler=no
13057fi
ac1cb8d3 13058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13059echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13060echo "${ECHO_T}$ac_header_compiler" >&6
13061
13062# Is the header present?
13063echo "$as_me:$LINENO: checking $ac_header presence" >&5
13064echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13065cat >conftest.$ac_ext <<_ACEOF
13066/* confdefs.h. */
13067_ACEOF
13068cat confdefs.h >>conftest.$ac_ext
13069cat >>conftest.$ac_ext <<_ACEOF
13070/* end confdefs.h. */
13071#include <$ac_header>
13072_ACEOF
13073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } >/dev/null; then
13081 if test -s conftest.err; then
13082 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13084 else
13085 ac_cpp_err=
13086 fi
13087else
13088 ac_cpp_err=yes
13089fi
13090if test -z "$ac_cpp_err"; then
13091 ac_header_preproc=yes
13092else
13093 echo "$as_me: failed program was:" >&5
13094sed 's/^/| /' conftest.$ac_ext >&5
13095
13096 ac_header_preproc=no
13097fi
13098rm -f conftest.err conftest.$ac_ext
13099echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13100echo "${ECHO_T}$ac_header_preproc" >&6
13101
13102# So? What about this header?
ac1cb8d3
VS
13103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13104 yes:no: )
a848cd7e
SC
13105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13108echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13109 ac_header_preproc=yes
a848cd7e 13110 ;;
ac1cb8d3 13111 no:yes:* )
a848cd7e
SC
13112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13115echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13117echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13119echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13123echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13124 (
13125 cat <<\_ASBOX
ac1cb8d3
VS
13126## ----------------------------------------- ##
13127## Report this to wx-dev@lists.wxwidgets.org ##
13128## ----------------------------------------- ##
a848cd7e
SC
13129_ASBOX
13130 ) |
13131 sed "s/^/$as_me: WARNING: /" >&2
13132 ;;
13133esac
13134echo "$as_me:$LINENO: checking for $ac_header" >&5
13135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13136if eval "test \"\${$as_ac_Header+set}\" = set"; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13138else
ac1cb8d3 13139 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13140fi
13141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13143
13144fi
13145if test `eval echo '${'$as_ac_Header'}'` = yes; then
13146 cat >>confdefs.h <<_ACEOF
13147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13148_ACEOF
13149
13150fi
13151
13152done
13153
13154
13155for ac_header in malloc.h
13156do
13157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13158if eval "test \"\${$as_ac_Header+set}\" = set"; then
13159 echo "$as_me:$LINENO: checking for $ac_header" >&5
13160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13161if eval "test \"\${$as_ac_Header+set}\" = set"; then
13162 echo $ECHO_N "(cached) $ECHO_C" >&6
13163fi
13164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13166else
13167 # Is the header compilable?
13168echo "$as_me:$LINENO: checking $ac_header usability" >&5
13169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13170cat >conftest.$ac_ext <<_ACEOF
13171/* confdefs.h. */
13172_ACEOF
13173cat confdefs.h >>conftest.$ac_ext
13174cat >>conftest.$ac_ext <<_ACEOF
13175/* end confdefs.h. */
13176$ac_includes_default
13177#include <$ac_header>
13178_ACEOF
13179rm -f conftest.$ac_objext
13180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13181 (eval $ac_compile) 2>conftest.er1
a848cd7e 13182 ac_status=$?
ac1cb8d3
VS
13183 grep -v '^ *+' conftest.er1 >conftest.err
13184 rm -f conftest.er1
13185 cat conftest.err >&5
a848cd7e
SC
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
04840eaa
VS
13188 { ac_try='test -z "$ac_c_werror_flag"
13189 || test ! -s conftest.err'
ac1cb8d3
VS
13190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13191 (eval $ac_try) 2>&5
13192 ac_status=$?
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); }; } &&
13195 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13197 (eval $ac_try) 2>&5
13198 ac_status=$?
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); }; }; then
13201 ac_header_compiler=yes
13202else
13203 echo "$as_me: failed program was:" >&5
13204sed 's/^/| /' conftest.$ac_ext >&5
13205
13206ac_header_compiler=no
13207fi
ac1cb8d3 13208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13210echo "${ECHO_T}$ac_header_compiler" >&6
13211
13212# Is the header present?
13213echo "$as_me:$LINENO: checking $ac_header presence" >&5
13214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13215cat >conftest.$ac_ext <<_ACEOF
13216/* confdefs.h. */
13217_ACEOF
13218cat confdefs.h >>conftest.$ac_ext
13219cat >>conftest.$ac_ext <<_ACEOF
13220/* end confdefs.h. */
13221#include <$ac_header>
13222_ACEOF
13223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13225 ac_status=$?
13226 grep -v '^ *+' conftest.er1 >conftest.err
13227 rm -f conftest.er1
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } >/dev/null; then
13231 if test -s conftest.err; then
13232 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13234 else
13235 ac_cpp_err=
13236 fi
13237else
13238 ac_cpp_err=yes
13239fi
13240if test -z "$ac_cpp_err"; then
13241 ac_header_preproc=yes
13242else
13243 echo "$as_me: failed program was:" >&5
13244sed 's/^/| /' conftest.$ac_ext >&5
13245
13246 ac_header_preproc=no
13247fi
13248rm -f conftest.err conftest.$ac_ext
13249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13250echo "${ECHO_T}$ac_header_preproc" >&6
13251
13252# So? What about this header?
ac1cb8d3
VS
13253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13254 yes:no: )
a848cd7e
SC
13255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13259 ac_header_preproc=yes
a848cd7e 13260 ;;
ac1cb8d3 13261 no:yes:* )
a848cd7e
SC
13262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13274 (
13275 cat <<\_ASBOX
ac1cb8d3
VS
13276## ----------------------------------------- ##
13277## Report this to wx-dev@lists.wxwidgets.org ##
13278## ----------------------------------------- ##
a848cd7e
SC
13279_ASBOX
13280 ) |
13281 sed "s/^/$as_me: WARNING: /" >&2
13282 ;;
13283esac
13284echo "$as_me:$LINENO: checking for $ac_header" >&5
13285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13286if eval "test \"\${$as_ac_Header+set}\" = set"; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288else
ac1cb8d3 13289 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13290fi
13291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13293
13294fi
13295if test `eval echo '${'$as_ac_Header'}'` = yes; then
13296 cat >>confdefs.h <<_ACEOF
13297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13298_ACEOF
13299
13300fi
13301
13302done
13303
13304
13305for ac_header in unistd.h
13306do
13307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13308if eval "test \"\${$as_ac_Header+set}\" = set"; then
13309 echo "$as_me:$LINENO: checking for $ac_header" >&5
13310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13311if eval "test \"\${$as_ac_Header+set}\" = set"; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313fi
13314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13316else
13317 # Is the header compilable?
13318echo "$as_me:$LINENO: checking $ac_header usability" >&5
13319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13320cat >conftest.$ac_ext <<_ACEOF
13321/* confdefs.h. */
13322_ACEOF
13323cat confdefs.h >>conftest.$ac_ext
13324cat >>conftest.$ac_ext <<_ACEOF
13325/* end confdefs.h. */
13326$ac_includes_default
13327#include <$ac_header>
13328_ACEOF
13329rm -f conftest.$ac_objext
13330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13331 (eval $ac_compile) 2>conftest.er1
a848cd7e 13332 ac_status=$?
ac1cb8d3
VS
13333 grep -v '^ *+' conftest.er1 >conftest.err
13334 rm -f conftest.er1
13335 cat conftest.err >&5
a848cd7e
SC
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } &&
04840eaa
VS
13338 { ac_try='test -z "$ac_c_werror_flag"
13339 || test ! -s conftest.err'
ac1cb8d3
VS
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; } &&
13345 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13347 (eval $ac_try) 2>&5
13348 ac_status=$?
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); }; }; then
13351 ac_header_compiler=yes
13352else
13353 echo "$as_me: failed program was:" >&5
13354sed 's/^/| /' conftest.$ac_ext >&5
13355
13356ac_header_compiler=no
13357fi
ac1cb8d3 13358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13360echo "${ECHO_T}$ac_header_compiler" >&6
13361
13362# Is the header present?
13363echo "$as_me:$LINENO: checking $ac_header presence" >&5
13364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13365cat >conftest.$ac_ext <<_ACEOF
13366/* confdefs.h. */
13367_ACEOF
13368cat confdefs.h >>conftest.$ac_ext
13369cat >>conftest.$ac_ext <<_ACEOF
13370/* end confdefs.h. */
13371#include <$ac_header>
13372_ACEOF
13373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13375 ac_status=$?
13376 grep -v '^ *+' conftest.er1 >conftest.err
13377 rm -f conftest.er1
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } >/dev/null; then
13381 if test -s conftest.err; then
13382 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13384 else
13385 ac_cpp_err=
13386 fi
13387else
13388 ac_cpp_err=yes
13389fi
13390if test -z "$ac_cpp_err"; then
13391 ac_header_preproc=yes
13392else
13393 echo "$as_me: failed program was:" >&5
13394sed 's/^/| /' conftest.$ac_ext >&5
13395
13396 ac_header_preproc=no
13397fi
13398rm -f conftest.err conftest.$ac_ext
13399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13400echo "${ECHO_T}$ac_header_preproc" >&6
13401
13402# So? What about this header?
ac1cb8d3
VS
13403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13404 yes:no: )
a848cd7e
SC
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13409 ac_header_preproc=yes
a848cd7e 13410 ;;
ac1cb8d3 13411 no:yes:* )
a848cd7e
SC
13412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13415echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13419echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13424 (
13425 cat <<\_ASBOX
ac1cb8d3
VS
13426## ----------------------------------------- ##
13427## Report this to wx-dev@lists.wxwidgets.org ##
13428## ----------------------------------------- ##
a848cd7e
SC
13429_ASBOX
13430 ) |
13431 sed "s/^/$as_me: WARNING: /" >&2
13432 ;;
13433esac
13434echo "$as_me:$LINENO: checking for $ac_header" >&5
13435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13436if eval "test \"\${$as_ac_Header+set}\" = set"; then
13437 echo $ECHO_N "(cached) $ECHO_C" >&6
13438else
ac1cb8d3 13439 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13440fi
13441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13443
13444fi
13445if test `eval echo '${'$as_ac_Header'}'` = yes; then
13446 cat >>confdefs.h <<_ACEOF
13447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13448_ACEOF
13449
13450fi
13451
13452done
13453
13454
13455for ac_header in wchar.h
13456do
13457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13458if eval "test \"\${$as_ac_Header+set}\" = set"; then
13459 echo "$as_me:$LINENO: checking for $ac_header" >&5
13460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13461if eval "test \"\${$as_ac_Header+set}\" = set"; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
13463fi
13464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13466else
13467 # Is the header compilable?
13468echo "$as_me:$LINENO: checking $ac_header usability" >&5
13469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13470cat >conftest.$ac_ext <<_ACEOF
13471/* confdefs.h. */
13472_ACEOF
13473cat confdefs.h >>conftest.$ac_ext
13474cat >>conftest.$ac_ext <<_ACEOF
13475/* end confdefs.h. */
13476$ac_includes_default
13477#include <$ac_header>
13478_ACEOF
13479rm -f conftest.$ac_objext
13480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13481 (eval $ac_compile) 2>conftest.er1
a848cd7e 13482 ac_status=$?
ac1cb8d3
VS
13483 grep -v '^ *+' conftest.er1 >conftest.err
13484 rm -f conftest.er1
13485 cat conftest.err >&5
a848cd7e
SC
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
04840eaa
VS
13488 { ac_try='test -z "$ac_c_werror_flag"
13489 || test ! -s conftest.err'
ac1cb8d3
VS
13490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13491 (eval $ac_try) 2>&5
13492 ac_status=$?
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); }; } &&
13495 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13497 (eval $ac_try) 2>&5
13498 ac_status=$?
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; }; then
13501 ac_header_compiler=yes
13502else
13503 echo "$as_me: failed program was:" >&5
13504sed 's/^/| /' conftest.$ac_ext >&5
13505
13506ac_header_compiler=no
13507fi
ac1cb8d3 13508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13509echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13510echo "${ECHO_T}$ac_header_compiler" >&6
13511
13512# Is the header present?
13513echo "$as_me:$LINENO: checking $ac_header presence" >&5
13514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13515cat >conftest.$ac_ext <<_ACEOF
13516/* confdefs.h. */
13517_ACEOF
13518cat confdefs.h >>conftest.$ac_ext
13519cat >>conftest.$ac_ext <<_ACEOF
13520/* end confdefs.h. */
13521#include <$ac_header>
13522_ACEOF
13523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13525 ac_status=$?
13526 grep -v '^ *+' conftest.er1 >conftest.err
13527 rm -f conftest.er1
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } >/dev/null; then
13531 if test -s conftest.err; then
13532 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13534 else
13535 ac_cpp_err=
13536 fi
13537else
13538 ac_cpp_err=yes
13539fi
13540if test -z "$ac_cpp_err"; then
13541 ac_header_preproc=yes
13542else
13543 echo "$as_me: failed program was:" >&5
13544sed 's/^/| /' conftest.$ac_ext >&5
13545
13546 ac_header_preproc=no
13547fi
13548rm -f conftest.err conftest.$ac_ext
13549echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13550echo "${ECHO_T}$ac_header_preproc" >&6
13551
13552# So? What about this header?
ac1cb8d3
VS
13553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13554 yes:no: )
a848cd7e
SC
13555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13559 ac_header_preproc=yes
a848cd7e 13560 ;;
ac1cb8d3 13561 no:yes:* )
a848cd7e
SC
13562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13574 (
13575 cat <<\_ASBOX
ac1cb8d3
VS
13576## ----------------------------------------- ##
13577## Report this to wx-dev@lists.wxwidgets.org ##
13578## ----------------------------------------- ##
a848cd7e
SC
13579_ASBOX
13580 ) |
13581 sed "s/^/$as_me: WARNING: /" >&2
13582 ;;
13583esac
13584echo "$as_me:$LINENO: checking for $ac_header" >&5
13585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13586if eval "test \"\${$as_ac_Header+set}\" = set"; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13588else
ac1cb8d3 13589 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13590fi
13591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13593
13594fi
13595if test `eval echo '${'$as_ac_Header'}'` = yes; then
13596 cat >>confdefs.h <<_ACEOF
13597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13598_ACEOF
13599
13600fi
13601
13602done
13603
13604
13605if test "$ac_cv_header_wchar_h" != "yes"; then
13606
13607for ac_header in wcstr.h
13608do
13609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13610if eval "test \"\${$as_ac_Header+set}\" = set"; then
13611 echo "$as_me:$LINENO: checking for $ac_header" >&5
13612echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13613if eval "test \"\${$as_ac_Header+set}\" = set"; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615fi
13616echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13617echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13618else
13619 # Is the header compilable?
13620echo "$as_me:$LINENO: checking $ac_header usability" >&5
13621echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13622cat >conftest.$ac_ext <<_ACEOF
13623/* confdefs.h. */
13624_ACEOF
13625cat confdefs.h >>conftest.$ac_ext
13626cat >>conftest.$ac_ext <<_ACEOF
13627/* end confdefs.h. */
13628$ac_includes_default
13629#include <$ac_header>
13630_ACEOF
13631rm -f conftest.$ac_objext
13632if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13633 (eval $ac_compile) 2>conftest.er1
a848cd7e 13634 ac_status=$?
ac1cb8d3
VS
13635 grep -v '^ *+' conftest.er1 >conftest.err
13636 rm -f conftest.er1
13637 cat conftest.err >&5
a848cd7e
SC
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
04840eaa
VS
13640 { ac_try='test -z "$ac_c_werror_flag"
13641 || test ! -s conftest.err'
ac1cb8d3
VS
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; } &&
13647 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13650 ac_status=$?
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13653 ac_header_compiler=yes
13654else
13655 echo "$as_me: failed program was:" >&5
13656sed 's/^/| /' conftest.$ac_ext >&5
13657
13658ac_header_compiler=no
13659fi
ac1cb8d3 13660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13661echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13662echo "${ECHO_T}$ac_header_compiler" >&6
13663
13664# Is the header present?
13665echo "$as_me:$LINENO: checking $ac_header presence" >&5
13666echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13667cat >conftest.$ac_ext <<_ACEOF
13668/* confdefs.h. */
13669_ACEOF
13670cat confdefs.h >>conftest.$ac_ext
13671cat >>conftest.$ac_ext <<_ACEOF
13672/* end confdefs.h. */
13673#include <$ac_header>
13674_ACEOF
13675if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13677 ac_status=$?
13678 grep -v '^ *+' conftest.er1 >conftest.err
13679 rm -f conftest.er1
13680 cat conftest.err >&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } >/dev/null; then
13683 if test -s conftest.err; then
13684 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13686 else
13687 ac_cpp_err=
13688 fi
13689else
13690 ac_cpp_err=yes
13691fi
13692if test -z "$ac_cpp_err"; then
13693 ac_header_preproc=yes
13694else
13695 echo "$as_me: failed program was:" >&5
13696sed 's/^/| /' conftest.$ac_ext >&5
13697
13698 ac_header_preproc=no
13699fi
13700rm -f conftest.err conftest.$ac_ext
13701echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13702echo "${ECHO_T}$ac_header_preproc" >&6
13703
13704# So? What about this header?
ac1cb8d3
VS
13705case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13706 yes:no: )
a848cd7e
SC
13707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13708echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13710echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13711 ac_header_preproc=yes
a848cd7e 13712 ;;
ac1cb8d3 13713 no:yes:* )
a848cd7e
SC
13714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13715echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13717echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13719echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13721echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13723echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13725echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13726 (
13727 cat <<\_ASBOX
ac1cb8d3
VS
13728## ----------------------------------------- ##
13729## Report this to wx-dev@lists.wxwidgets.org ##
13730## ----------------------------------------- ##
a848cd7e
SC
13731_ASBOX
13732 ) |
13733 sed "s/^/$as_me: WARNING: /" >&2
13734 ;;
13735esac
13736echo "$as_me:$LINENO: checking for $ac_header" >&5
13737echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13738if eval "test \"\${$as_ac_Header+set}\" = set"; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13740else
ac1cb8d3 13741 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13742fi
13743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13745
13746fi
13747if test `eval echo '${'$as_ac_Header'}'` = yes; then
13748 cat >>confdefs.h <<_ACEOF
13749#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13750_ACEOF
13751
13752fi
13753
13754done
13755
13756fi
13757
13758
13759for ac_header in fnmatch.h
13760do
13761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13762if eval "test \"\${$as_ac_Header+set}\" = set"; then
13763 echo "$as_me:$LINENO: checking for $ac_header" >&5
13764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13765if eval "test \"\${$as_ac_Header+set}\" = set"; then
13766 echo $ECHO_N "(cached) $ECHO_C" >&6
13767fi
13768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13770else
13771 # Is the header compilable?
13772echo "$as_me:$LINENO: checking $ac_header usability" >&5
13773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13774cat >conftest.$ac_ext <<_ACEOF
13775/* confdefs.h. */
13776_ACEOF
13777cat confdefs.h >>conftest.$ac_ext
13778cat >>conftest.$ac_ext <<_ACEOF
13779/* end confdefs.h. */
13780$ac_includes_default
13781#include <$ac_header>
13782_ACEOF
13783rm -f conftest.$ac_objext
13784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13785 (eval $ac_compile) 2>conftest.er1
a848cd7e 13786 ac_status=$?
ac1cb8d3
VS
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
a848cd7e
SC
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } &&
04840eaa
VS
13792 { ac_try='test -z "$ac_c_werror_flag"
13793 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
13799 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801 (eval $ac_try) 2>&5
13802 ac_status=$?
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 ac_header_compiler=yes
13806else
13807 echo "$as_me: failed program was:" >&5
13808sed 's/^/| /' conftest.$ac_ext >&5
13809
13810ac_header_compiler=no
13811fi
ac1cb8d3 13812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13813echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13814echo "${ECHO_T}$ac_header_compiler" >&6
13815
13816# Is the header present?
13817echo "$as_me:$LINENO: checking $ac_header presence" >&5
13818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13819cat >conftest.$ac_ext <<_ACEOF
13820/* confdefs.h. */
13821_ACEOF
13822cat confdefs.h >>conftest.$ac_ext
13823cat >>conftest.$ac_ext <<_ACEOF
13824/* end confdefs.h. */
13825#include <$ac_header>
13826_ACEOF
13827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13829 ac_status=$?
13830 grep -v '^ *+' conftest.er1 >conftest.err
13831 rm -f conftest.er1
13832 cat conftest.err >&5
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); } >/dev/null; then
13835 if test -s conftest.err; then
13836 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 13837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
13838 else
13839 ac_cpp_err=
13840 fi
13841else
13842 ac_cpp_err=yes
13843fi
13844if test -z "$ac_cpp_err"; then
13845 ac_header_preproc=yes
13846else
13847 echo "$as_me: failed program was:" >&5
13848sed 's/^/| /' conftest.$ac_ext >&5
13849
13850 ac_header_preproc=no
13851fi
13852rm -f conftest.err conftest.$ac_ext
13853echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13854echo "${ECHO_T}$ac_header_preproc" >&6
13855
13856# So? What about this header?
ac1cb8d3
VS
13857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13858 yes:no: )
a848cd7e
SC
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
13861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13863 ac_header_preproc=yes
a848cd7e 13864 ;;
ac1cb8d3 13865 no:yes:* )
a848cd7e
SC
13866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
13868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13869echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13873echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
13876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
13878 (
13879 cat <<\_ASBOX
ac1cb8d3
VS
13880## ----------------------------------------- ##
13881## Report this to wx-dev@lists.wxwidgets.org ##
13882## ----------------------------------------- ##
a848cd7e
SC
13883_ASBOX
13884 ) |
13885 sed "s/^/$as_me: WARNING: /" >&2
13886 ;;
13887esac
13888echo "$as_me:$LINENO: checking for $ac_header" >&5
13889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13890if eval "test \"\${$as_ac_Header+set}\" = set"; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13892else
ac1cb8d3 13893 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
13894fi
13895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13897
13898fi
13899if test `eval echo '${'$as_ac_Header'}'` = yes; then
13900 cat >>confdefs.h <<_ACEOF
13901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13902_ACEOF
13903
13904fi
13905
13906done
13907
13908
13909if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
13910
13911for ac_func in fnmatch
13912do
13913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13914echo "$as_me:$LINENO: checking for $ac_func" >&5
13915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13916if eval "test \"\${$as_ac_var+set}\" = set"; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918else
13919 cat >conftest.$ac_ext <<_ACEOF
13920/* confdefs.h. */
13921_ACEOF
13922cat confdefs.h >>conftest.$ac_ext
13923cat >>conftest.$ac_ext <<_ACEOF
13924/* end confdefs.h. */
ac1cb8d3
VS
13925/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13927#define $ac_func innocuous_$ac_func
13928
a848cd7e
SC
13929/* System header to define __stub macros and hopefully few prototypes,
13930 which can conflict with char $ac_func (); below.
13931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13932 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 13933
a848cd7e
SC
13934#ifdef __STDC__
13935# include <limits.h>
13936#else
13937# include <assert.h>
13938#endif
ac1cb8d3
VS
13939
13940#undef $ac_func
13941
a848cd7e
SC
13942/* Override any gcc2 internal prototype to avoid an error. */
13943#ifdef __cplusplus
13944extern "C"
13945{
13946#endif
13947/* We use char because int might match the return type of a gcc2
13948 builtin and then its argument prototype would still apply. */
13949char $ac_func ();
13950/* The GNU C library defines this for functions which it implements
13951 to always fail with ENOSYS. Some functions are actually named
13952 something starting with __ and the normal name is an alias. */
13953#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13954choke me
13955#else
13956char (*f) () = $ac_func;
13957#endif
13958#ifdef __cplusplus
13959}
13960#endif
13961
13962int
13963main ()
13964{
13965return f != $ac_func;
13966 ;
13967 return 0;
13968}
13969_ACEOF
13970rm -f conftest.$ac_objext conftest$ac_exeext
13971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 13972 (eval $ac_link) 2>conftest.er1
a848cd7e 13973 ac_status=$?
ac1cb8d3
VS
13974 grep -v '^ *+' conftest.er1 >conftest.err
13975 rm -f conftest.er1
13976 cat conftest.err >&5
a848cd7e
SC
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } &&
04840eaa
VS
13979 { ac_try='test -z "$ac_c_werror_flag"
13980 || test ! -s conftest.err'
ac1cb8d3
VS
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; } &&
13986 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; }; then
13992 eval "$as_ac_var=yes"
13993else
13994 echo "$as_me: failed program was:" >&5
13995sed 's/^/| /' conftest.$ac_ext >&5
13996
13997eval "$as_ac_var=no"
13998fi
ac1cb8d3
VS
13999rm -f conftest.err conftest.$ac_objext \
14000 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14001fi
14002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14003echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14004if test `eval echo '${'$as_ac_var'}'` = yes; then
14005 cat >>confdefs.h <<_ACEOF
14006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14007_ACEOF
14008
14009fi
14010done
14011
14012fi
14013
14014
14015for ac_header in langinfo.h
14016do
14017as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14018if eval "test \"\${$as_ac_Header+set}\" = set"; then
14019 echo "$as_me:$LINENO: checking for $ac_header" >&5
14020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14021if eval "test \"\${$as_ac_Header+set}\" = set"; then
14022 echo $ECHO_N "(cached) $ECHO_C" >&6
14023fi
14024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14025echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14026else
14027 # Is the header compilable?
14028echo "$as_me:$LINENO: checking $ac_header usability" >&5
14029echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14030cat >conftest.$ac_ext <<_ACEOF
14031/* confdefs.h. */
14032_ACEOF
14033cat confdefs.h >>conftest.$ac_ext
14034cat >>conftest.$ac_ext <<_ACEOF
14035/* end confdefs.h. */
14036$ac_includes_default
14037#include <$ac_header>
14038_ACEOF
14039rm -f conftest.$ac_objext
14040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14041 (eval $ac_compile) 2>conftest.er1
a848cd7e 14042 ac_status=$?
ac1cb8d3
VS
14043 grep -v '^ *+' conftest.er1 >conftest.err
14044 rm -f conftest.er1
14045 cat conftest.err >&5
a848cd7e
SC
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
04840eaa
VS
14048 { ac_try='test -z "$ac_c_werror_flag"
14049 || test ! -s conftest.err'
ac1cb8d3
VS
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_header_compiler=yes
14062else
14063 echo "$as_me: failed program was:" >&5
14064sed 's/^/| /' conftest.$ac_ext >&5
14065
14066ac_header_compiler=no
14067fi
ac1cb8d3 14068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14069echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14070echo "${ECHO_T}$ac_header_compiler" >&6
14071
14072# Is the header present?
14073echo "$as_me:$LINENO: checking $ac_header presence" >&5
14074echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14075cat >conftest.$ac_ext <<_ACEOF
14076/* confdefs.h. */
14077_ACEOF
14078cat confdefs.h >>conftest.$ac_ext
14079cat >>conftest.$ac_ext <<_ACEOF
14080/* end confdefs.h. */
14081#include <$ac_header>
14082_ACEOF
14083if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14085 ac_status=$?
14086 grep -v '^ *+' conftest.er1 >conftest.err
14087 rm -f conftest.er1
14088 cat conftest.err >&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } >/dev/null; then
14091 if test -s conftest.err; then
14092 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14094 else
14095 ac_cpp_err=
14096 fi
14097else
14098 ac_cpp_err=yes
14099fi
14100if test -z "$ac_cpp_err"; then
14101 ac_header_preproc=yes
14102else
14103 echo "$as_me: failed program was:" >&5
14104sed 's/^/| /' conftest.$ac_ext >&5
14105
14106 ac_header_preproc=no
14107fi
14108rm -f conftest.err conftest.$ac_ext
14109echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14110echo "${ECHO_T}$ac_header_preproc" >&6
14111
14112# So? What about this header?
ac1cb8d3
VS
14113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14114 yes:no: )
a848cd7e
SC
14115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14116echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14118echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14119 ac_header_preproc=yes
a848cd7e 14120 ;;
ac1cb8d3 14121 no:yes:* )
a848cd7e
SC
14122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14123echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14125echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14127echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14129echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14131echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14133echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14134 (
14135 cat <<\_ASBOX
ac1cb8d3
VS
14136## ----------------------------------------- ##
14137## Report this to wx-dev@lists.wxwidgets.org ##
14138## ----------------------------------------- ##
a848cd7e
SC
14139_ASBOX
14140 ) |
14141 sed "s/^/$as_me: WARNING: /" >&2
14142 ;;
14143esac
14144echo "$as_me:$LINENO: checking for $ac_header" >&5
14145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14146if eval "test \"\${$as_ac_Header+set}\" = set"; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148else
ac1cb8d3 14149 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14150fi
14151echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14153
14154fi
14155if test `eval echo '${'$as_ac_Header'}'` = yes; then
14156 cat >>confdefs.h <<_ACEOF
14157#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14158_ACEOF
14159
14160fi
14161
14162done
14163
14164
14165case "${host}" in
14166 *-pc-os2_emx | *-pc-os2-emx )
14167 if test $ac_cv_header_langinfo_h = "yes"; then
14168 LIBS="$LIBS -lintl"
14169 fi
14170 ;;
14171esac
14172
14173if test "$wxUSE_GUI" = "yes"; then
14174 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
14175
14176for ac_header in X11/Xlib.h
14177do
14178as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14179if eval "test \"\${$as_ac_Header+set}\" = set"; then
14180 echo "$as_me:$LINENO: checking for $ac_header" >&5
14181echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14182if eval "test \"\${$as_ac_Header+set}\" = set"; then
14183 echo $ECHO_N "(cached) $ECHO_C" >&6
14184fi
14185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14187else
14188 # Is the header compilable?
14189echo "$as_me:$LINENO: checking $ac_header usability" >&5
14190echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14191cat >conftest.$ac_ext <<_ACEOF
14192/* confdefs.h. */
14193_ACEOF
14194cat confdefs.h >>conftest.$ac_ext
14195cat >>conftest.$ac_ext <<_ACEOF
14196/* end confdefs.h. */
14197$ac_includes_default
14198#include <$ac_header>
14199_ACEOF
14200rm -f conftest.$ac_objext
14201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14202 (eval $ac_compile) 2>conftest.er1
a848cd7e 14203 ac_status=$?
ac1cb8d3
VS
14204 grep -v '^ *+' conftest.er1 >conftest.err
14205 rm -f conftest.er1
14206 cat conftest.err >&5
a848cd7e
SC
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); } &&
04840eaa
VS
14209 { ac_try='test -z "$ac_c_werror_flag"
14210 || test ! -s conftest.err'
ac1cb8d3
VS
14211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14212 (eval $ac_try) 2>&5
14213 ac_status=$?
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); }; } &&
14216 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14218 (eval $ac_try) 2>&5
14219 ac_status=$?
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); }; }; then
14222 ac_header_compiler=yes
14223else
14224 echo "$as_me: failed program was:" >&5
14225sed 's/^/| /' conftest.$ac_ext >&5
14226
14227ac_header_compiler=no
14228fi
ac1cb8d3 14229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14230echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14231echo "${ECHO_T}$ac_header_compiler" >&6
14232
14233# Is the header present?
14234echo "$as_me:$LINENO: checking $ac_header presence" >&5
14235echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14236cat >conftest.$ac_ext <<_ACEOF
14237/* confdefs.h. */
14238_ACEOF
14239cat confdefs.h >>conftest.$ac_ext
14240cat >>conftest.$ac_ext <<_ACEOF
14241/* end confdefs.h. */
14242#include <$ac_header>
14243_ACEOF
14244if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14245 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14246 ac_status=$?
14247 grep -v '^ *+' conftest.er1 >conftest.err
14248 rm -f conftest.er1
14249 cat conftest.err >&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } >/dev/null; then
14252 if test -s conftest.err; then
14253 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 14254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
14255 else
14256 ac_cpp_err=
14257 fi
14258else
14259 ac_cpp_err=yes
14260fi
14261if test -z "$ac_cpp_err"; then
14262 ac_header_preproc=yes
14263else
14264 echo "$as_me: failed program was:" >&5
14265sed 's/^/| /' conftest.$ac_ext >&5
14266
14267 ac_header_preproc=no
14268fi
14269rm -f conftest.err conftest.$ac_ext
14270echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14271echo "${ECHO_T}$ac_header_preproc" >&6
14272
14273# So? What about this header?
ac1cb8d3
VS
14274case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14275 yes:no: )
a848cd7e
SC
14276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14277echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
14278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14279echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14280 ac_header_preproc=yes
a848cd7e 14281 ;;
ac1cb8d3 14282 no:yes:* )
a848cd7e
SC
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14284echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
14285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14286echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14288echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14290echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14292echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
14293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14294echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
14295 (
14296 cat <<\_ASBOX
ac1cb8d3
VS
14297## ----------------------------------------- ##
14298## Report this to wx-dev@lists.wxwidgets.org ##
14299## ----------------------------------------- ##
a848cd7e
SC
14300_ASBOX
14301 ) |
14302 sed "s/^/$as_me: WARNING: /" >&2
14303 ;;
14304esac
14305echo "$as_me:$LINENO: checking for $ac_header" >&5
14306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14307if eval "test \"\${$as_ac_Header+set}\" = set"; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309else
ac1cb8d3 14310 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
14311fi
14312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14314
14315fi
14316if test `eval echo '${'$as_ac_Header'}'` = yes; then
14317 cat >>confdefs.h <<_ACEOF
14318#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14319_ACEOF
14320
14321fi
14322
14323done
14324
14325
14326for ac_header in X11/XKBlib.h
14327do
14328as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14329echo "$as_me:$LINENO: checking for $ac_header" >&5
14330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14331if eval "test \"\${$as_ac_Header+set}\" = set"; then
14332 echo $ECHO_N "(cached) $ECHO_C" >&6
14333else
14334 cat >conftest.$ac_ext <<_ACEOF
14335/* confdefs.h. */
14336_ACEOF
14337cat confdefs.h >>conftest.$ac_ext
14338cat >>conftest.$ac_ext <<_ACEOF
14339/* end confdefs.h. */
14340
14341 #if HAVE_X11_XLIB_H
14342 #include <X11/Xlib.h>
14343 #endif
14344
14345
14346#include <$ac_header>
14347_ACEOF
14348rm -f conftest.$ac_objext
14349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14350 (eval $ac_compile) 2>conftest.er1
a848cd7e 14351 ac_status=$?
ac1cb8d3
VS
14352 grep -v '^ *+' conftest.er1 >conftest.err
14353 rm -f conftest.er1
14354 cat conftest.err >&5
a848cd7e
SC
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } &&
04840eaa
VS
14357 { ac_try='test -z "$ac_c_werror_flag"
14358 || test ! -s conftest.err'
ac1cb8d3
VS
14359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14360 (eval $ac_try) 2>&5
14361 ac_status=$?
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); }; } &&
14364 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14366 (eval $ac_try) 2>&5
14367 ac_status=$?
14368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14369 (exit $ac_status); }; }; then
14370 eval "$as_ac_Header=yes"
14371else
14372 echo "$as_me: failed program was:" >&5
14373sed 's/^/| /' conftest.$ac_ext >&5
14374
14375eval "$as_ac_Header=no"
14376fi
ac1cb8d3 14377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14378fi
14379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14381if test `eval echo '${'$as_ac_Header'}'` = yes; then
14382 cat >>confdefs.h <<_ACEOF
14383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14384_ACEOF
14385
14386fi
14387
14388done
14389
14390 fi
14391fi
14392
14393
14394echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14395echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14396if test "${ac_cv_c_const+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14398else
14399 cat >conftest.$ac_ext <<_ACEOF
14400/* confdefs.h. */
14401_ACEOF
14402cat confdefs.h >>conftest.$ac_ext
14403cat >>conftest.$ac_ext <<_ACEOF
14404/* end confdefs.h. */
14405
14406int
14407main ()
14408{
14409/* FIXME: Include the comments suggested by Paul. */
14410#ifndef __cplusplus
14411 /* Ultrix mips cc rejects this. */
14412 typedef int charset[2];
14413 const charset x;
14414 /* SunOS 4.1.1 cc rejects this. */
14415 char const *const *ccp;
14416 char **p;
14417 /* NEC SVR4.0.2 mips cc rejects this. */
14418 struct point {int x, y;};
14419 static struct point const zero = {0,0};
14420 /* AIX XL C 1.02.0.0 rejects this.
14421 It does not let you subtract one const X* pointer from another in
14422 an arm of an if-expression whose if-part is not a constant
14423 expression */
14424 const char *g = "string";
14425 ccp = &g + (g ? g-g : 0);
14426 /* HPUX 7.0 cc rejects these. */
14427 ++ccp;
14428 p = (char**) ccp;
14429 ccp = (char const *const *) p;
14430 { /* SCO 3.2v4 cc rejects this. */
14431 char *t;
14432 char const *s = 0 ? (char *) 0 : (char const *) 0;
14433
14434 *t++ = 0;
14435 }
14436 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14437 int x[] = {25, 17};
14438 const int *foo = &x[0];
14439 ++foo;
14440 }
14441 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14442 typedef const int *iptr;
14443 iptr p = 0;
14444 ++p;
14445 }
14446 { /* AIX XL C 1.02.0.0 rejects this saying
14447 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14448 struct s { int j; const int *ap[3]; };
14449 struct s *b; b->j = 5;
14450 }
14451 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14452 const int foo = 10;
14453 }
14454#endif
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); } &&
04840eaa
VS
14469 { ac_try='test -z "$ac_c_werror_flag"
14470 || test ! -s conftest.err'
ac1cb8d3
VS
14471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14472 (eval $ac_try) 2>&5
14473 ac_status=$?
14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475 (exit $ac_status); }; } &&
14476 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14478 (eval $ac_try) 2>&5
14479 ac_status=$?
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_c_const=yes
14483else
14484 echo "$as_me: failed program was:" >&5
14485sed 's/^/| /' conftest.$ac_ext >&5
14486
14487ac_cv_c_const=no
14488fi
ac1cb8d3 14489rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14490fi
14491echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14492echo "${ECHO_T}$ac_cv_c_const" >&6
14493if test $ac_cv_c_const = no; then
14494
14495cat >>confdefs.h <<\_ACEOF
14496#define const
14497_ACEOF
14498
14499fi
14500
14501echo "$as_me:$LINENO: checking for inline" >&5
14502echo $ECHO_N "checking for inline... $ECHO_C" >&6
14503if test "${ac_cv_c_inline+set}" = set; then
14504 echo $ECHO_N "(cached) $ECHO_C" >&6
14505else
14506 ac_cv_c_inline=no
14507for ac_kw in inline __inline__ __inline; do
14508 cat >conftest.$ac_ext <<_ACEOF
14509/* confdefs.h. */
14510_ACEOF
14511cat confdefs.h >>conftest.$ac_ext
14512cat >>conftest.$ac_ext <<_ACEOF
14513/* end confdefs.h. */
14514#ifndef __cplusplus
14515typedef int foo_t;
14516static $ac_kw foo_t static_foo () {return 0; }
14517$ac_kw foo_t foo () {return 0; }
14518#endif
14519
14520_ACEOF
14521rm -f conftest.$ac_objext
14522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14523 (eval $ac_compile) 2>conftest.er1
a848cd7e 14524 ac_status=$?
ac1cb8d3
VS
14525 grep -v '^ *+' conftest.er1 >conftest.err
14526 rm -f conftest.er1
14527 cat conftest.err >&5
a848cd7e
SC
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } &&
04840eaa
VS
14530 { ac_try='test -z "$ac_c_werror_flag"
14531 || test ! -s conftest.err'
ac1cb8d3
VS
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14534 ac_status=$?
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; } &&
14537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14539 (eval $ac_try) 2>&5
14540 ac_status=$?
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); }; }; then
14543 ac_cv_c_inline=$ac_kw; break
14544else
14545 echo "$as_me: failed program was:" >&5
14546sed 's/^/| /' conftest.$ac_ext >&5
14547
14548fi
ac1cb8d3 14549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14550done
14551
14552fi
14553echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14554echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
14555
14556
a848cd7e
SC
14557case $ac_cv_c_inline in
14558 inline | yes) ;;
ac1cb8d3
VS
14559 *)
14560 case $ac_cv_c_inline in
14561 no) ac_val=;;
14562 *) ac_val=$ac_cv_c_inline;;
14563 esac
14564 cat >>confdefs.h <<_ACEOF
14565#ifndef __cplusplus
14566#define inline $ac_val
14567#endif
de59c161 14568_ACEOF
ac1cb8d3 14569 ;;
a848cd7e
SC
14570esac
14571
14572
14573echo "$as_me:$LINENO: checking for char" >&5
14574echo $ECHO_N "checking for char... $ECHO_C" >&6
14575if test "${ac_cv_type_char+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14577else
14578 cat >conftest.$ac_ext <<_ACEOF
14579/* confdefs.h. */
14580_ACEOF
14581cat confdefs.h >>conftest.$ac_ext
14582cat >>conftest.$ac_ext <<_ACEOF
14583/* end confdefs.h. */
14584$ac_includes_default
14585int
14586main ()
14587{
14588if ((char *) 0)
14589 return 0;
14590if (sizeof (char))
14591 return 0;
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); } &&
04840eaa
VS
14605 { ac_try='test -z "$ac_c_werror_flag"
14606 || test ! -s conftest.err'
ac1cb8d3
VS
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14609 ac_status=$?
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; } &&
14612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14614 (eval $ac_try) 2>&5
14615 ac_status=$?
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); }; }; then
14618 ac_cv_type_char=yes
14619else
14620 echo "$as_me: failed program was:" >&5
14621sed 's/^/| /' conftest.$ac_ext >&5
14622
14623ac_cv_type_char=no
14624fi
ac1cb8d3 14625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14626fi
14627echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14628echo "${ECHO_T}$ac_cv_type_char" >&6
14629
14630echo "$as_me:$LINENO: checking size of char" >&5
14631echo $ECHO_N "checking size of char... $ECHO_C" >&6
14632if test "${ac_cv_sizeof_char+set}" = set; then
14633 echo $ECHO_N "(cached) $ECHO_C" >&6
14634else
14635 if test "$ac_cv_type_char" = yes; then
14636 # The cast to unsigned long works around a bug in the HP C Compiler
14637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14639 # This bug is HP SR number 8606223364.
14640 if test "$cross_compiling" = yes; then
14641 # Depending upon the size, compute the lo and hi bounds.
14642cat >conftest.$ac_ext <<_ACEOF
14643/* confdefs.h. */
14644_ACEOF
14645cat confdefs.h >>conftest.$ac_ext
14646cat >>conftest.$ac_ext <<_ACEOF
14647/* end confdefs.h. */
14648$ac_includes_default
14649int
14650main ()
14651{
14652static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14653test_array [0] = 0
14654
14655 ;
14656 return 0;
14657}
14658_ACEOF
14659rm -f conftest.$ac_objext
14660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14661 (eval $ac_compile) 2>conftest.er1
a848cd7e 14662 ac_status=$?
ac1cb8d3
VS
14663 grep -v '^ *+' conftest.er1 >conftest.err
14664 rm -f conftest.er1
14665 cat conftest.err >&5
a848cd7e
SC
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
04840eaa
VS
14668 { ac_try='test -z "$ac_c_werror_flag"
14669 || 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_lo=0 ac_mid=0
14682 while :; do
14683 cat >conftest.$ac_ext <<_ACEOF
14684/* confdefs.h. */
14685_ACEOF
14686cat confdefs.h >>conftest.$ac_ext
14687cat >>conftest.$ac_ext <<_ACEOF
14688/* end confdefs.h. */
14689$ac_includes_default
14690int
14691main ()
14692{
14693static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14694test_array [0] = 0
14695
14696 ;
14697 return 0;
14698}
14699_ACEOF
14700rm -f conftest.$ac_objext
14701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14702 (eval $ac_compile) 2>conftest.er1
a848cd7e 14703 ac_status=$?
ac1cb8d3
VS
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
a848cd7e
SC
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } &&
04840eaa
VS
14709 { ac_try='test -z "$ac_c_werror_flag"
14710 || test ! -s conftest.err'
ac1cb8d3
VS
14711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712 (eval $ac_try) 2>&5
14713 ac_status=$?
14714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715 (exit $ac_status); }; } &&
14716 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14718 (eval $ac_try) 2>&5
14719 ac_status=$?
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_hi=$ac_mid; break
14723else
14724 echo "$as_me: failed program was:" >&5
14725sed 's/^/| /' conftest.$ac_ext >&5
14726
14727ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
14728 if test $ac_lo -le $ac_mid; then
14729 ac_lo= ac_hi=
14730 break
14731 fi
14732 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 14733fi
ac1cb8d3 14734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14735 done
14736else
14737 echo "$as_me: failed program was:" >&5
14738sed 's/^/| /' conftest.$ac_ext >&5
14739
14740cat >conftest.$ac_ext <<_ACEOF
14741/* confdefs.h. */
14742_ACEOF
14743cat confdefs.h >>conftest.$ac_ext
14744cat >>conftest.$ac_ext <<_ACEOF
14745/* end confdefs.h. */
14746$ac_includes_default
14747int
14748main ()
14749{
14750static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14751test_array [0] = 0
14752
14753 ;
14754 return 0;
14755}
14756_ACEOF
14757rm -f conftest.$ac_objext
14758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14759 (eval $ac_compile) 2>conftest.er1
a848cd7e 14760 ac_status=$?
ac1cb8d3
VS
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
a848cd7e
SC
14764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } &&
04840eaa
VS
14766 { ac_try='test -z "$ac_c_werror_flag"
14767 || test ! -s conftest.err'
ac1cb8d3
VS
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; } &&
14773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14776 ac_status=$?
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; }; then
14779 ac_hi=-1 ac_mid=-1
14780 while :; do
14781 cat >conftest.$ac_ext <<_ACEOF
14782/* confdefs.h. */
14783_ACEOF
14784cat confdefs.h >>conftest.$ac_ext
14785cat >>conftest.$ac_ext <<_ACEOF
14786/* end confdefs.h. */
14787$ac_includes_default
14788int
14789main ()
14790{
14791static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14792test_array [0] = 0
14793
14794 ;
14795 return 0;
14796}
14797_ACEOF
14798rm -f conftest.$ac_objext
14799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14800 (eval $ac_compile) 2>conftest.er1
a848cd7e 14801 ac_status=$?
ac1cb8d3
VS
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
a848cd7e
SC
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
04840eaa
VS
14807 { ac_try='test -z "$ac_c_werror_flag"
14808 || test ! -s conftest.err'
ac1cb8d3
VS
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; } &&
14814 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14816 (eval $ac_try) 2>&5
14817 ac_status=$?
14818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819 (exit $ac_status); }; }; then
14820 ac_lo=$ac_mid; break
14821else
14822 echo "$as_me: failed program was:" >&5
14823sed 's/^/| /' conftest.$ac_ext >&5
14824
14825ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
14826 if test $ac_mid -le $ac_hi; then
14827 ac_lo= ac_hi=
14828 break
14829 fi
14830 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 14831fi
ac1cb8d3 14832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14833 done
14834else
14835 echo "$as_me: failed program was:" >&5
14836sed 's/^/| /' conftest.$ac_ext >&5
14837
14838ac_lo= ac_hi=
14839fi
ac1cb8d3 14840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 14841fi
ac1cb8d3 14842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14843# Binary search between lo and hi bounds.
14844while test "x$ac_lo" != "x$ac_hi"; do
14845 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14846 cat >conftest.$ac_ext <<_ACEOF
14847/* confdefs.h. */
14848_ACEOF
14849cat confdefs.h >>conftest.$ac_ext
14850cat >>conftest.$ac_ext <<_ACEOF
14851/* end confdefs.h. */
14852$ac_includes_default
14853int
14854main ()
14855{
14856static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14857test_array [0] = 0
14858
14859 ;
14860 return 0;
14861}
14862_ACEOF
14863rm -f conftest.$ac_objext
14864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 14865 (eval $ac_compile) 2>conftest.er1
a848cd7e 14866 ac_status=$?
ac1cb8d3
VS
14867 grep -v '^ *+' conftest.er1 >conftest.err
14868 rm -f conftest.er1
14869 cat conftest.err >&5
a848cd7e
SC
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } &&
04840eaa
VS
14872 { ac_try='test -z "$ac_c_werror_flag"
14873 || test ! -s conftest.err'
ac1cb8d3
VS
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; } &&
14879 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_hi=$ac_mid
14886else
14887 echo "$as_me: failed program was:" >&5
14888sed 's/^/| /' conftest.$ac_ext >&5
14889
14890ac_lo=`expr '(' $ac_mid ')' + 1`
14891fi
ac1cb8d3 14892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14893done
14894case $ac_lo in
14895?*) ac_cv_sizeof_char=$ac_lo;;
14896'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14897See \`config.log' for more details." >&5
14898echo "$as_me: error: cannot compute sizeof (char), 77
14899See \`config.log' for more details." >&2;}
14900 { (exit 1); exit 1; }; } ;;
14901esac
14902else
14903 if test "$cross_compiling" = yes; then
04840eaa
VS
14904 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14905See \`config.log' for more details." >&5
14906echo "$as_me: error: cannot run test program while cross compiling
14907See \`config.log' for more details." >&2;}
a848cd7e
SC
14908 { (exit 1); exit 1; }; }
14909else
14910 cat >conftest.$ac_ext <<_ACEOF
14911/* confdefs.h. */
14912_ACEOF
14913cat confdefs.h >>conftest.$ac_ext
14914cat >>conftest.$ac_ext <<_ACEOF
14915/* end confdefs.h. */
14916$ac_includes_default
14917long longval () { return (long) (sizeof (char)); }
14918unsigned long ulongval () { return (long) (sizeof (char)); }
14919#include <stdio.h>
14920#include <stdlib.h>
14921int
14922main ()
14923{
14924
14925 FILE *f = fopen ("conftest.val", "w");
14926 if (! f)
14927 exit (1);
14928 if (((long) (sizeof (char))) < 0)
14929 {
14930 long i = longval ();
14931 if (i != ((long) (sizeof (char))))
14932 exit (1);
14933 fprintf (f, "%ld\n", i);
14934 }
14935 else
14936 {
14937 unsigned long i = ulongval ();
14938 if (i != ((long) (sizeof (char))))
14939 exit (1);
14940 fprintf (f, "%lu\n", i);
14941 }
14942 exit (ferror (f) || fclose (f) != 0);
14943
14944 ;
14945 return 0;
14946}
14947_ACEOF
14948rm -f conftest$ac_exeext
14949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14950 (eval $ac_link) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14955 (eval $ac_try) 2>&5
14956 ac_status=$?
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); }; }; then
14959 ac_cv_sizeof_char=`cat conftest.val`
14960else
14961 echo "$as_me: program exited with status $ac_status" >&5
14962echo "$as_me: failed program was:" >&5
14963sed 's/^/| /' conftest.$ac_ext >&5
14964
14965( exit $ac_status )
14966{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14967See \`config.log' for more details." >&5
14968echo "$as_me: error: cannot compute sizeof (char), 77
14969See \`config.log' for more details." >&2;}
14970 { (exit 1); exit 1; }; }
14971fi
ac1cb8d3 14972rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
14973fi
14974fi
14975rm -f conftest.val
14976else
14977 ac_cv_sizeof_char=0
14978fi
14979fi
14980echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14981echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14982cat >>confdefs.h <<_ACEOF
14983#define SIZEOF_CHAR $ac_cv_sizeof_char
14984_ACEOF
14985
14986
14987echo "$as_me:$LINENO: checking for short" >&5
14988echo $ECHO_N "checking for short... $ECHO_C" >&6
14989if test "${ac_cv_type_short+set}" = set; then
14990 echo $ECHO_N "(cached) $ECHO_C" >&6
14991else
14992 cat >conftest.$ac_ext <<_ACEOF
14993/* confdefs.h. */
14994_ACEOF
14995cat confdefs.h >>conftest.$ac_ext
14996cat >>conftest.$ac_ext <<_ACEOF
14997/* end confdefs.h. */
14998$ac_includes_default
14999int
15000main ()
15001{
15002if ((short *) 0)
15003 return 0;
15004if (sizeof (short))
15005 return 0;
15006 ;
15007 return 0;
15008}
15009_ACEOF
15010rm -f conftest.$ac_objext
15011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15012 (eval $ac_compile) 2>conftest.er1
a848cd7e 15013 ac_status=$?
ac1cb8d3
VS
15014 grep -v '^ *+' conftest.er1 >conftest.err
15015 rm -f conftest.er1
15016 cat conftest.err >&5
a848cd7e
SC
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } &&
04840eaa
VS
15019 { ac_try='test -z "$ac_c_werror_flag"
15020 || test ! -s conftest.err'
ac1cb8d3
VS
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15023 ac_status=$?
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; } &&
15026 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15032 ac_cv_type_short=yes
15033else
15034 echo "$as_me: failed program was:" >&5
15035sed 's/^/| /' conftest.$ac_ext >&5
15036
15037ac_cv_type_short=no
15038fi
ac1cb8d3 15039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15040fi
15041echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
15042echo "${ECHO_T}$ac_cv_type_short" >&6
15043
15044echo "$as_me:$LINENO: checking size of short" >&5
15045echo $ECHO_N "checking size of short... $ECHO_C" >&6
15046if test "${ac_cv_sizeof_short+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15048else
15049 if test "$ac_cv_type_short" = yes; then
15050 # The cast to unsigned long works around a bug in the HP C Compiler
15051 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15052 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15053 # This bug is HP SR number 8606223364.
15054 if test "$cross_compiling" = yes; then
15055 # Depending upon the size, compute the lo and hi bounds.
15056cat >conftest.$ac_ext <<_ACEOF
15057/* confdefs.h. */
15058_ACEOF
15059cat confdefs.h >>conftest.$ac_ext
15060cat >>conftest.$ac_ext <<_ACEOF
15061/* end confdefs.h. */
15062$ac_includes_default
15063int
15064main ()
15065{
15066static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
15067test_array [0] = 0
15068
15069 ;
15070 return 0;
15071}
15072_ACEOF
15073rm -f conftest.$ac_objext
15074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15075 (eval $ac_compile) 2>conftest.er1
a848cd7e 15076 ac_status=$?
ac1cb8d3
VS
15077 grep -v '^ *+' conftest.er1 >conftest.err
15078 rm -f conftest.er1
15079 cat conftest.err >&5
a848cd7e
SC
15080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081 (exit $ac_status); } &&
04840eaa
VS
15082 { ac_try='test -z "$ac_c_werror_flag"
15083 || test ! -s conftest.err'
ac1cb8d3
VS
15084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15085 (eval $ac_try) 2>&5
15086 ac_status=$?
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); }; } &&
15089 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15092 ac_status=$?
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 ac_lo=0 ac_mid=0
15096 while :; do
15097 cat >conftest.$ac_ext <<_ACEOF
15098/* confdefs.h. */
15099_ACEOF
15100cat confdefs.h >>conftest.$ac_ext
15101cat >>conftest.$ac_ext <<_ACEOF
15102/* end confdefs.h. */
15103$ac_includes_default
15104int
15105main ()
15106{
15107static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15108test_array [0] = 0
15109
15110 ;
15111 return 0;
15112}
15113_ACEOF
15114rm -f conftest.$ac_objext
15115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15116 (eval $ac_compile) 2>conftest.er1
a848cd7e 15117 ac_status=$?
ac1cb8d3
VS
15118 grep -v '^ *+' conftest.er1 >conftest.err
15119 rm -f conftest.er1
15120 cat conftest.err >&5
a848cd7e
SC
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); } &&
04840eaa
VS
15123 { ac_try='test -z "$ac_c_werror_flag"
15124 || test ! -s conftest.err'
ac1cb8d3
VS
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; } &&
15130 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15132 (eval $ac_try) 2>&5
15133 ac_status=$?
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); }; }; then
15136 ac_hi=$ac_mid; break
15137else
15138 echo "$as_me: failed program was:" >&5
15139sed 's/^/| /' conftest.$ac_ext >&5
15140
15141ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15142 if test $ac_lo -le $ac_mid; then
15143 ac_lo= ac_hi=
15144 break
15145 fi
15146 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15147fi
ac1cb8d3 15148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15149 done
15150else
15151 echo "$as_me: failed program was:" >&5
15152sed 's/^/| /' conftest.$ac_ext >&5
15153
15154cat >conftest.$ac_ext <<_ACEOF
15155/* confdefs.h. */
15156_ACEOF
15157cat confdefs.h >>conftest.$ac_ext
15158cat >>conftest.$ac_ext <<_ACEOF
15159/* end confdefs.h. */
15160$ac_includes_default
15161int
15162main ()
15163{
15164static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
15165test_array [0] = 0
15166
15167 ;
15168 return 0;
15169}
15170_ACEOF
15171rm -f conftest.$ac_objext
15172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15173 (eval $ac_compile) 2>conftest.er1
a848cd7e 15174 ac_status=$?
ac1cb8d3
VS
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
a848cd7e
SC
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
04840eaa
VS
15180 { ac_try='test -z "$ac_c_werror_flag"
15181 || test ! -s conftest.err'
ac1cb8d3
VS
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_hi=-1 ac_mid=-1
15194 while :; do
15195 cat >conftest.$ac_ext <<_ACEOF
15196/* confdefs.h. */
15197_ACEOF
15198cat confdefs.h >>conftest.$ac_ext
15199cat >>conftest.$ac_ext <<_ACEOF
15200/* end confdefs.h. */
15201$ac_includes_default
15202int
15203main ()
15204{
15205static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
15206test_array [0] = 0
15207
15208 ;
15209 return 0;
15210}
15211_ACEOF
15212rm -f conftest.$ac_objext
15213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15214 (eval $ac_compile) 2>conftest.er1
a848cd7e 15215 ac_status=$?
ac1cb8d3
VS
15216 grep -v '^ *+' conftest.er1 >conftest.err
15217 rm -f conftest.er1
15218 cat conftest.err >&5
a848cd7e
SC
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
04840eaa
VS
15221 { ac_try='test -z "$ac_c_werror_flag"
15222 || test ! -s conftest.err'
ac1cb8d3
VS
15223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224 (eval $ac_try) 2>&5
15225 ac_status=$?
15226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); }; } &&
15228 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230 (eval $ac_try) 2>&5
15231 ac_status=$?
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 ac_lo=$ac_mid; break
15235else
15236 echo "$as_me: failed program was:" >&5
15237sed 's/^/| /' conftest.$ac_ext >&5
15238
15239ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15240 if test $ac_mid -le $ac_hi; then
15241 ac_lo= ac_hi=
15242 break
15243 fi
15244 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15245fi
ac1cb8d3 15246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15247 done
15248else
15249 echo "$as_me: failed program was:" >&5
15250sed 's/^/| /' conftest.$ac_ext >&5
15251
15252ac_lo= ac_hi=
15253fi
ac1cb8d3 15254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15255fi
ac1cb8d3 15256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15257# Binary search between lo and hi bounds.
15258while test "x$ac_lo" != "x$ac_hi"; do
15259 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15260 cat >conftest.$ac_ext <<_ACEOF
15261/* confdefs.h. */
15262_ACEOF
15263cat confdefs.h >>conftest.$ac_ext
15264cat >>conftest.$ac_ext <<_ACEOF
15265/* end confdefs.h. */
15266$ac_includes_default
15267int
15268main ()
15269{
15270static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
15271test_array [0] = 0
15272
15273 ;
15274 return 0;
15275}
15276_ACEOF
15277rm -f conftest.$ac_objext
15278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15279 (eval $ac_compile) 2>conftest.er1
a848cd7e 15280 ac_status=$?
ac1cb8d3
VS
15281 grep -v '^ *+' conftest.er1 >conftest.err
15282 rm -f conftest.er1
15283 cat conftest.err >&5
a848cd7e
SC
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } &&
04840eaa
VS
15286 { ac_try='test -z "$ac_c_werror_flag"
15287 || test ! -s conftest.err'
ac1cb8d3
VS
15288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15289 (eval $ac_try) 2>&5
15290 ac_status=$?
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); }; } &&
15293 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15295 (eval $ac_try) 2>&5
15296 ac_status=$?
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; }; then
15299 ac_hi=$ac_mid
15300else
15301 echo "$as_me: failed program was:" >&5
15302sed 's/^/| /' conftest.$ac_ext >&5
15303
15304ac_lo=`expr '(' $ac_mid ')' + 1`
15305fi
ac1cb8d3 15306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15307done
15308case $ac_lo in
15309?*) ac_cv_sizeof_short=$ac_lo;;
15310'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15311See \`config.log' for more details." >&5
15312echo "$as_me: error: cannot compute sizeof (short), 77
15313See \`config.log' for more details." >&2;}
15314 { (exit 1); exit 1; }; } ;;
15315esac
15316else
15317 if test "$cross_compiling" = yes; then
04840eaa
VS
15318 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15319See \`config.log' for more details." >&5
15320echo "$as_me: error: cannot run test program while cross compiling
15321See \`config.log' for more details." >&2;}
a848cd7e
SC
15322 { (exit 1); exit 1; }; }
15323else
15324 cat >conftest.$ac_ext <<_ACEOF
15325/* confdefs.h. */
15326_ACEOF
15327cat confdefs.h >>conftest.$ac_ext
15328cat >>conftest.$ac_ext <<_ACEOF
15329/* end confdefs.h. */
15330$ac_includes_default
15331long longval () { return (long) (sizeof (short)); }
15332unsigned long ulongval () { return (long) (sizeof (short)); }
15333#include <stdio.h>
15334#include <stdlib.h>
15335int
15336main ()
15337{
15338
15339 FILE *f = fopen ("conftest.val", "w");
15340 if (! f)
15341 exit (1);
15342 if (((long) (sizeof (short))) < 0)
15343 {
15344 long i = longval ();
15345 if (i != ((long) (sizeof (short))))
15346 exit (1);
15347 fprintf (f, "%ld\n", i);
15348 }
15349 else
15350 {
15351 unsigned long i = ulongval ();
15352 if (i != ((long) (sizeof (short))))
15353 exit (1);
15354 fprintf (f, "%lu\n", i);
15355 }
15356 exit (ferror (f) || fclose (f) != 0);
15357
15358 ;
15359 return 0;
15360}
15361_ACEOF
15362rm -f conftest$ac_exeext
15363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15364 (eval $ac_link) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15369 (eval $ac_try) 2>&5
15370 ac_status=$?
15371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15372 (exit $ac_status); }; }; then
15373 ac_cv_sizeof_short=`cat conftest.val`
15374else
15375 echo "$as_me: program exited with status $ac_status" >&5
15376echo "$as_me: failed program was:" >&5
15377sed 's/^/| /' conftest.$ac_ext >&5
15378
15379( exit $ac_status )
15380{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15381See \`config.log' for more details." >&5
15382echo "$as_me: error: cannot compute sizeof (short), 77
15383See \`config.log' for more details." >&2;}
15384 { (exit 1); exit 1; }; }
15385fi
ac1cb8d3 15386rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15387fi
15388fi
15389rm -f conftest.val
15390else
15391 ac_cv_sizeof_short=0
15392fi
15393fi
15394echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15395echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15396cat >>confdefs.h <<_ACEOF
15397#define SIZEOF_SHORT $ac_cv_sizeof_short
15398_ACEOF
15399
15400
15401echo "$as_me:$LINENO: checking for void *" >&5
15402echo $ECHO_N "checking for void *... $ECHO_C" >&6
15403if test "${ac_cv_type_void_p+set}" = set; then
15404 echo $ECHO_N "(cached) $ECHO_C" >&6
15405else
15406 cat >conftest.$ac_ext <<_ACEOF
15407/* confdefs.h. */
15408_ACEOF
15409cat confdefs.h >>conftest.$ac_ext
15410cat >>conftest.$ac_ext <<_ACEOF
15411/* end confdefs.h. */
15412$ac_includes_default
15413int
15414main ()
15415{
15416if ((void * *) 0)
15417 return 0;
15418if (sizeof (void *))
15419 return 0;
15420 ;
15421 return 0;
15422}
15423_ACEOF
15424rm -f conftest.$ac_objext
15425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15426 (eval $ac_compile) 2>conftest.er1
a848cd7e 15427 ac_status=$?
ac1cb8d3
VS
15428 grep -v '^ *+' conftest.er1 >conftest.err
15429 rm -f conftest.er1
15430 cat conftest.err >&5
a848cd7e
SC
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } &&
04840eaa
VS
15433 { ac_try='test -z "$ac_c_werror_flag"
15434 || test ! -s conftest.err'
ac1cb8d3
VS
15435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436 (eval $ac_try) 2>&5
15437 ac_status=$?
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); }; } &&
15440 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442 (eval $ac_try) 2>&5
15443 ac_status=$?
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); }; }; then
15446 ac_cv_type_void_p=yes
15447else
15448 echo "$as_me: failed program was:" >&5
15449sed 's/^/| /' conftest.$ac_ext >&5
15450
15451ac_cv_type_void_p=no
15452fi
ac1cb8d3 15453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15454fi
15455echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15456echo "${ECHO_T}$ac_cv_type_void_p" >&6
15457
15458echo "$as_me:$LINENO: checking size of void *" >&5
15459echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15460if test "${ac_cv_sizeof_void_p+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15462else
15463 if test "$ac_cv_type_void_p" = yes; then
15464 # The cast to unsigned long works around a bug in the HP C Compiler
15465 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15466 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15467 # This bug is HP SR number 8606223364.
15468 if test "$cross_compiling" = yes; then
15469 # Depending upon the size, compute the lo and hi bounds.
15470cat >conftest.$ac_ext <<_ACEOF
15471/* confdefs.h. */
15472_ACEOF
15473cat confdefs.h >>conftest.$ac_ext
15474cat >>conftest.$ac_ext <<_ACEOF
15475/* end confdefs.h. */
15476$ac_includes_default
15477int
15478main ()
15479{
15480static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15481test_array [0] = 0
15482
15483 ;
15484 return 0;
15485}
15486_ACEOF
15487rm -f conftest.$ac_objext
15488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15489 (eval $ac_compile) 2>conftest.er1
a848cd7e 15490 ac_status=$?
ac1cb8d3
VS
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
a848cd7e
SC
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } &&
04840eaa
VS
15496 { ac_try='test -z "$ac_c_werror_flag"
15497 || test ! -s conftest.err'
ac1cb8d3
VS
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15500 ac_status=$?
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; } &&
15503 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15505 (eval $ac_try) 2>&5
15506 ac_status=$?
15507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15508 (exit $ac_status); }; }; then
15509 ac_lo=0 ac_mid=0
15510 while :; do
15511 cat >conftest.$ac_ext <<_ACEOF
15512/* confdefs.h. */
15513_ACEOF
15514cat confdefs.h >>conftest.$ac_ext
15515cat >>conftest.$ac_ext <<_ACEOF
15516/* end confdefs.h. */
15517$ac_includes_default
15518int
15519main ()
15520{
15521static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15522test_array [0] = 0
15523
15524 ;
15525 return 0;
15526}
15527_ACEOF
15528rm -f conftest.$ac_objext
15529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15530 (eval $ac_compile) 2>conftest.er1
a848cd7e 15531 ac_status=$?
ac1cb8d3
VS
15532 grep -v '^ *+' conftest.er1 >conftest.err
15533 rm -f conftest.er1
15534 cat conftest.err >&5
a848cd7e
SC
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); } &&
04840eaa
VS
15537 { ac_try='test -z "$ac_c_werror_flag"
15538 || test ! -s conftest.err'
ac1cb8d3
VS
15539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15540 (eval $ac_try) 2>&5
15541 ac_status=$?
15542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15543 (exit $ac_status); }; } &&
15544 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15546 (eval $ac_try) 2>&5
15547 ac_status=$?
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 ac_hi=$ac_mid; break
15551else
15552 echo "$as_me: failed program was:" >&5
15553sed 's/^/| /' conftest.$ac_ext >&5
15554
15555ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15556 if test $ac_lo -le $ac_mid; then
15557 ac_lo= ac_hi=
15558 break
15559 fi
15560 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15561fi
ac1cb8d3 15562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15563 done
15564else
15565 echo "$as_me: failed program was:" >&5
15566sed 's/^/| /' conftest.$ac_ext >&5
15567
15568cat >conftest.$ac_ext <<_ACEOF
15569/* confdefs.h. */
15570_ACEOF
15571cat confdefs.h >>conftest.$ac_ext
15572cat >>conftest.$ac_ext <<_ACEOF
15573/* end confdefs.h. */
15574$ac_includes_default
15575int
15576main ()
15577{
15578static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15579test_array [0] = 0
15580
15581 ;
15582 return 0;
15583}
15584_ACEOF
15585rm -f conftest.$ac_objext
15586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15587 (eval $ac_compile) 2>conftest.er1
a848cd7e 15588 ac_status=$?
ac1cb8d3
VS
15589 grep -v '^ *+' conftest.er1 >conftest.err
15590 rm -f conftest.er1
15591 cat conftest.err >&5
a848cd7e
SC
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } &&
04840eaa
VS
15594 { ac_try='test -z "$ac_c_werror_flag"
15595 || test ! -s conftest.err'
ac1cb8d3
VS
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; } &&
15601 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 ac_hi=-1 ac_mid=-1
15608 while :; do
15609 cat >conftest.$ac_ext <<_ACEOF
15610/* confdefs.h. */
15611_ACEOF
15612cat confdefs.h >>conftest.$ac_ext
15613cat >>conftest.$ac_ext <<_ACEOF
15614/* end confdefs.h. */
15615$ac_includes_default
15616int
15617main ()
15618{
15619static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15620test_array [0] = 0
15621
15622 ;
15623 return 0;
15624}
15625_ACEOF
15626rm -f conftest.$ac_objext
15627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15628 (eval $ac_compile) 2>conftest.er1
a848cd7e 15629 ac_status=$?
ac1cb8d3
VS
15630 grep -v '^ *+' conftest.er1 >conftest.err
15631 rm -f conftest.er1
15632 cat conftest.err >&5
a848cd7e
SC
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } &&
04840eaa
VS
15635 { ac_try='test -z "$ac_c_werror_flag"
15636 || test ! -s conftest.err'
ac1cb8d3
VS
15637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15638 (eval $ac_try) 2>&5
15639 ac_status=$?
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); }; } &&
15642 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15644 (eval $ac_try) 2>&5
15645 ac_status=$?
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); }; }; then
15648 ac_lo=$ac_mid; break
15649else
15650 echo "$as_me: failed program was:" >&5
15651sed 's/^/| /' conftest.$ac_ext >&5
15652
15653ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
15654 if test $ac_mid -le $ac_hi; then
15655 ac_lo= ac_hi=
15656 break
15657 fi
15658 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 15659fi
ac1cb8d3 15660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15661 done
15662else
15663 echo "$as_me: failed program was:" >&5
15664sed 's/^/| /' conftest.$ac_ext >&5
15665
15666ac_lo= ac_hi=
15667fi
ac1cb8d3 15668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 15669fi
ac1cb8d3 15670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15671# Binary search between lo and hi bounds.
15672while test "x$ac_lo" != "x$ac_hi"; do
15673 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15674 cat >conftest.$ac_ext <<_ACEOF
15675/* confdefs.h. */
15676_ACEOF
15677cat confdefs.h >>conftest.$ac_ext
15678cat >>conftest.$ac_ext <<_ACEOF
15679/* end confdefs.h. */
15680$ac_includes_default
15681int
15682main ()
15683{
15684static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15685test_array [0] = 0
15686
15687 ;
15688 return 0;
15689}
15690_ACEOF
15691rm -f conftest.$ac_objext
15692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15693 (eval $ac_compile) 2>conftest.er1
a848cd7e 15694 ac_status=$?
ac1cb8d3
VS
15695 grep -v '^ *+' conftest.er1 >conftest.err
15696 rm -f conftest.er1
15697 cat conftest.err >&5
a848cd7e
SC
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); } &&
04840eaa
VS
15700 { ac_try='test -z "$ac_c_werror_flag"
15701 || test ! -s conftest.err'
ac1cb8d3
VS
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15704 ac_status=$?
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; } &&
15707 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15709 (eval $ac_try) 2>&5
15710 ac_status=$?
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); }; }; then
15713 ac_hi=$ac_mid
15714else
15715 echo "$as_me: failed program was:" >&5
15716sed 's/^/| /' conftest.$ac_ext >&5
15717
15718ac_lo=`expr '(' $ac_mid ')' + 1`
15719fi
ac1cb8d3 15720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15721done
15722case $ac_lo in
15723?*) ac_cv_sizeof_void_p=$ac_lo;;
15724'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15725See \`config.log' for more details." >&5
15726echo "$as_me: error: cannot compute sizeof (void *), 77
15727See \`config.log' for more details." >&2;}
15728 { (exit 1); exit 1; }; } ;;
15729esac
15730else
15731 if test "$cross_compiling" = yes; then
04840eaa
VS
15732 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15733See \`config.log' for more details." >&5
15734echo "$as_me: error: cannot run test program while cross compiling
15735See \`config.log' for more details." >&2;}
a848cd7e
SC
15736 { (exit 1); exit 1; }; }
15737else
15738 cat >conftest.$ac_ext <<_ACEOF
15739/* confdefs.h. */
15740_ACEOF
15741cat confdefs.h >>conftest.$ac_ext
15742cat >>conftest.$ac_ext <<_ACEOF
15743/* end confdefs.h. */
15744$ac_includes_default
15745long longval () { return (long) (sizeof (void *)); }
15746unsigned long ulongval () { return (long) (sizeof (void *)); }
15747#include <stdio.h>
15748#include <stdlib.h>
15749int
15750main ()
15751{
15752
15753 FILE *f = fopen ("conftest.val", "w");
15754 if (! f)
15755 exit (1);
15756 if (((long) (sizeof (void *))) < 0)
15757 {
15758 long i = longval ();
15759 if (i != ((long) (sizeof (void *))))
15760 exit (1);
15761 fprintf (f, "%ld\n", i);
15762 }
15763 else
15764 {
15765 unsigned long i = ulongval ();
15766 if (i != ((long) (sizeof (void *))))
15767 exit (1);
15768 fprintf (f, "%lu\n", i);
15769 }
15770 exit (ferror (f) || fclose (f) != 0);
15771
15772 ;
15773 return 0;
15774}
15775_ACEOF
15776rm -f conftest$ac_exeext
15777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15778 (eval $ac_link) 2>&5
15779 ac_status=$?
15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15783 (eval $ac_try) 2>&5
15784 ac_status=$?
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); }; }; then
15787 ac_cv_sizeof_void_p=`cat conftest.val`
15788else
15789 echo "$as_me: program exited with status $ac_status" >&5
15790echo "$as_me: failed program was:" >&5
15791sed 's/^/| /' conftest.$ac_ext >&5
15792
15793( exit $ac_status )
15794{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15795See \`config.log' for more details." >&5
15796echo "$as_me: error: cannot compute sizeof (void *), 77
15797See \`config.log' for more details." >&2;}
15798 { (exit 1); exit 1; }; }
15799fi
ac1cb8d3 15800rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15801fi
15802fi
15803rm -f conftest.val
15804else
15805 ac_cv_sizeof_void_p=0
15806fi
15807fi
15808echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15809echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15810cat >>confdefs.h <<_ACEOF
15811#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15812_ACEOF
15813
15814
15815echo "$as_me:$LINENO: checking for int" >&5
15816echo $ECHO_N "checking for int... $ECHO_C" >&6
15817if test "${ac_cv_type_int+set}" = set; then
15818 echo $ECHO_N "(cached) $ECHO_C" >&6
15819else
15820 cat >conftest.$ac_ext <<_ACEOF
15821/* confdefs.h. */
15822_ACEOF
15823cat confdefs.h >>conftest.$ac_ext
15824cat >>conftest.$ac_ext <<_ACEOF
15825/* end confdefs.h. */
15826$ac_includes_default
15827int
15828main ()
15829{
15830if ((int *) 0)
15831 return 0;
15832if (sizeof (int))
15833 return 0;
15834 ;
15835 return 0;
15836}
15837_ACEOF
15838rm -f conftest.$ac_objext
15839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15840 (eval $ac_compile) 2>conftest.er1
a848cd7e 15841 ac_status=$?
ac1cb8d3
VS
15842 grep -v '^ *+' conftest.er1 >conftest.err
15843 rm -f conftest.er1
15844 cat conftest.err >&5
a848cd7e
SC
15845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15846 (exit $ac_status); } &&
04840eaa
VS
15847 { ac_try='test -z "$ac_c_werror_flag"
15848 || test ! -s conftest.err'
ac1cb8d3
VS
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; } &&
15854 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15857 ac_status=$?
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15860 ac_cv_type_int=yes
15861else
15862 echo "$as_me: failed program was:" >&5
15863sed 's/^/| /' conftest.$ac_ext >&5
15864
15865ac_cv_type_int=no
15866fi
ac1cb8d3 15867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15868fi
15869echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15870echo "${ECHO_T}$ac_cv_type_int" >&6
15871
15872echo "$as_me:$LINENO: checking size of int" >&5
15873echo $ECHO_N "checking size of int... $ECHO_C" >&6
15874if test "${ac_cv_sizeof_int+set}" = set; then
15875 echo $ECHO_N "(cached) $ECHO_C" >&6
15876else
15877 if test "$ac_cv_type_int" = yes; then
15878 # The cast to unsigned long works around a bug in the HP C Compiler
15879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15881 # This bug is HP SR number 8606223364.
15882 if test "$cross_compiling" = yes; then
15883 # Depending upon the size, compute the lo and hi bounds.
15884cat >conftest.$ac_ext <<_ACEOF
15885/* confdefs.h. */
15886_ACEOF
15887cat confdefs.h >>conftest.$ac_ext
15888cat >>conftest.$ac_ext <<_ACEOF
15889/* end confdefs.h. */
15890$ac_includes_default
15891int
15892main ()
15893{
15894static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15895test_array [0] = 0
15896
15897 ;
15898 return 0;
15899}
15900_ACEOF
15901rm -f conftest.$ac_objext
15902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15903 (eval $ac_compile) 2>conftest.er1
a848cd7e 15904 ac_status=$?
ac1cb8d3
VS
15905 grep -v '^ *+' conftest.er1 >conftest.err
15906 rm -f conftest.er1
15907 cat conftest.err >&5
a848cd7e
SC
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); } &&
04840eaa
VS
15910 { ac_try='test -z "$ac_c_werror_flag"
15911 || test ! -s conftest.err'
ac1cb8d3
VS
15912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15913 (eval $ac_try) 2>&5
15914 ac_status=$?
15915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15916 (exit $ac_status); }; } &&
15917 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919 (eval $ac_try) 2>&5
15920 ac_status=$?
15921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922 (exit $ac_status); }; }; then
15923 ac_lo=0 ac_mid=0
15924 while :; do
15925 cat >conftest.$ac_ext <<_ACEOF
15926/* confdefs.h. */
15927_ACEOF
15928cat confdefs.h >>conftest.$ac_ext
15929cat >>conftest.$ac_ext <<_ACEOF
15930/* end confdefs.h. */
15931$ac_includes_default
15932int
15933main ()
15934{
15935static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15936test_array [0] = 0
15937
15938 ;
15939 return 0;
15940}
15941_ACEOF
15942rm -f conftest.$ac_objext
15943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15944 (eval $ac_compile) 2>conftest.er1
a848cd7e 15945 ac_status=$?
ac1cb8d3
VS
15946 grep -v '^ *+' conftest.er1 >conftest.err
15947 rm -f conftest.er1
15948 cat conftest.err >&5
a848cd7e
SC
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
04840eaa
VS
15951 { ac_try='test -z "$ac_c_werror_flag"
15952 || test ! -s conftest.err'
ac1cb8d3
VS
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_hi=$ac_mid; break
15965else
15966 echo "$as_me: failed program was:" >&5
15967sed 's/^/| /' conftest.$ac_ext >&5
15968
15969ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
15970 if test $ac_lo -le $ac_mid; then
15971 ac_lo= ac_hi=
15972 break
15973 fi
15974 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 15975fi
ac1cb8d3 15976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15977 done
15978else
15979 echo "$as_me: failed program was:" >&5
15980sed 's/^/| /' conftest.$ac_ext >&5
15981
15982cat >conftest.$ac_ext <<_ACEOF
15983/* confdefs.h. */
15984_ACEOF
15985cat confdefs.h >>conftest.$ac_ext
15986cat >>conftest.$ac_ext <<_ACEOF
15987/* end confdefs.h. */
15988$ac_includes_default
15989int
15990main ()
15991{
15992static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15993test_array [0] = 0
15994
15995 ;
15996 return 0;
15997}
15998_ACEOF
15999rm -f conftest.$ac_objext
16000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16001 (eval $ac_compile) 2>conftest.er1
a848cd7e 16002 ac_status=$?
ac1cb8d3
VS
16003 grep -v '^ *+' conftest.er1 >conftest.err
16004 rm -f conftest.er1
16005 cat conftest.err >&5
a848cd7e
SC
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); } &&
04840eaa
VS
16008 { ac_try='test -z "$ac_c_werror_flag"
16009 || test ! -s conftest.err'
ac1cb8d3
VS
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; } &&
16015 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16018 ac_status=$?
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 ac_hi=-1 ac_mid=-1
16022 while :; do
16023 cat >conftest.$ac_ext <<_ACEOF
16024/* confdefs.h. */
16025_ACEOF
16026cat confdefs.h >>conftest.$ac_ext
16027cat >>conftest.$ac_ext <<_ACEOF
16028/* end confdefs.h. */
16029$ac_includes_default
16030int
16031main ()
16032{
16033static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
16034test_array [0] = 0
16035
16036 ;
16037 return 0;
16038}
16039_ACEOF
16040rm -f conftest.$ac_objext
16041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16042 (eval $ac_compile) 2>conftest.er1
a848cd7e 16043 ac_status=$?
ac1cb8d3
VS
16044 grep -v '^ *+' conftest.er1 >conftest.err
16045 rm -f conftest.er1
16046 cat conftest.err >&5
a848cd7e
SC
16047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048 (exit $ac_status); } &&
04840eaa
VS
16049 { ac_try='test -z "$ac_c_werror_flag"
16050 || test ! -s conftest.err'
ac1cb8d3
VS
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16053 ac_status=$?
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } &&
16056 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16058 (eval $ac_try) 2>&5
16059 ac_status=$?
16060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061 (exit $ac_status); }; }; then
16062 ac_lo=$ac_mid; break
16063else
16064 echo "$as_me: failed program was:" >&5
16065sed 's/^/| /' conftest.$ac_ext >&5
16066
16067ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16068 if test $ac_mid -le $ac_hi; then
16069 ac_lo= ac_hi=
16070 break
16071 fi
16072 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16073fi
ac1cb8d3 16074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16075 done
16076else
16077 echo "$as_me: failed program was:" >&5
16078sed 's/^/| /' conftest.$ac_ext >&5
16079
16080ac_lo= ac_hi=
16081fi
ac1cb8d3 16082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16083fi
ac1cb8d3 16084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16085# Binary search between lo and hi bounds.
16086while test "x$ac_lo" != "x$ac_hi"; do
16087 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16088 cat >conftest.$ac_ext <<_ACEOF
16089/* confdefs.h. */
16090_ACEOF
16091cat confdefs.h >>conftest.$ac_ext
16092cat >>conftest.$ac_ext <<_ACEOF
16093/* end confdefs.h. */
16094$ac_includes_default
16095int
16096main ()
16097{
16098static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
16099test_array [0] = 0
16100
16101 ;
16102 return 0;
16103}
16104_ACEOF
16105rm -f conftest.$ac_objext
16106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16107 (eval $ac_compile) 2>conftest.er1
a848cd7e 16108 ac_status=$?
ac1cb8d3
VS
16109 grep -v '^ *+' conftest.er1 >conftest.err
16110 rm -f conftest.er1
16111 cat conftest.err >&5
a848cd7e
SC
16112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16113 (exit $ac_status); } &&
04840eaa
VS
16114 { ac_try='test -z "$ac_c_werror_flag"
16115 || test ! -s conftest.err'
ac1cb8d3
VS
16116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16117 (eval $ac_try) 2>&5
16118 ac_status=$?
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); }; } &&
16121 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123 (eval $ac_try) 2>&5
16124 ac_status=$?
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; }; then
16127 ac_hi=$ac_mid
16128else
16129 echo "$as_me: failed program was:" >&5
16130sed 's/^/| /' conftest.$ac_ext >&5
16131
16132ac_lo=`expr '(' $ac_mid ')' + 1`
16133fi
ac1cb8d3 16134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16135done
16136case $ac_lo in
16137?*) ac_cv_sizeof_int=$ac_lo;;
16138'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16139See \`config.log' for more details." >&5
16140echo "$as_me: error: cannot compute sizeof (int), 77
16141See \`config.log' for more details." >&2;}
16142 { (exit 1); exit 1; }; } ;;
16143esac
16144else
16145 if test "$cross_compiling" = yes; then
04840eaa
VS
16146 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16147See \`config.log' for more details." >&5
16148echo "$as_me: error: cannot run test program while cross compiling
16149See \`config.log' for more details." >&2;}
a848cd7e
SC
16150 { (exit 1); exit 1; }; }
16151else
16152 cat >conftest.$ac_ext <<_ACEOF
16153/* confdefs.h. */
16154_ACEOF
16155cat confdefs.h >>conftest.$ac_ext
16156cat >>conftest.$ac_ext <<_ACEOF
16157/* end confdefs.h. */
16158$ac_includes_default
16159long longval () { return (long) (sizeof (int)); }
16160unsigned long ulongval () { return (long) (sizeof (int)); }
16161#include <stdio.h>
16162#include <stdlib.h>
16163int
16164main ()
16165{
16166
16167 FILE *f = fopen ("conftest.val", "w");
16168 if (! f)
16169 exit (1);
16170 if (((long) (sizeof (int))) < 0)
16171 {
16172 long i = longval ();
16173 if (i != ((long) (sizeof (int))))
16174 exit (1);
16175 fprintf (f, "%ld\n", i);
16176 }
16177 else
16178 {
16179 unsigned long i = ulongval ();
16180 if (i != ((long) (sizeof (int))))
16181 exit (1);
16182 fprintf (f, "%lu\n", i);
16183 }
16184 exit (ferror (f) || fclose (f) != 0);
16185
16186 ;
16187 return 0;
16188}
16189_ACEOF
16190rm -f conftest$ac_exeext
16191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16192 (eval $ac_link) 2>&5
16193 ac_status=$?
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_cv_sizeof_int=`cat conftest.val`
16202else
16203 echo "$as_me: program exited with status $ac_status" >&5
16204echo "$as_me: failed program was:" >&5
16205sed 's/^/| /' conftest.$ac_ext >&5
16206
16207( exit $ac_status )
16208{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
16209See \`config.log' for more details." >&5
16210echo "$as_me: error: cannot compute sizeof (int), 77
16211See \`config.log' for more details." >&2;}
16212 { (exit 1); exit 1; }; }
16213fi
ac1cb8d3 16214rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16215fi
16216fi
16217rm -f conftest.val
16218else
16219 ac_cv_sizeof_int=0
16220fi
16221fi
16222echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
16223echo "${ECHO_T}$ac_cv_sizeof_int" >&6
16224cat >>confdefs.h <<_ACEOF
16225#define SIZEOF_INT $ac_cv_sizeof_int
16226_ACEOF
16227
16228
16229echo "$as_me:$LINENO: checking for long" >&5
16230echo $ECHO_N "checking for long... $ECHO_C" >&6
16231if test "${ac_cv_type_long+set}" = set; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16233else
16234 cat >conftest.$ac_ext <<_ACEOF
16235/* confdefs.h. */
16236_ACEOF
16237cat confdefs.h >>conftest.$ac_ext
16238cat >>conftest.$ac_ext <<_ACEOF
16239/* end confdefs.h. */
16240$ac_includes_default
16241int
16242main ()
16243{
16244if ((long *) 0)
16245 return 0;
16246if (sizeof (long))
16247 return 0;
16248 ;
16249 return 0;
16250}
16251_ACEOF
16252rm -f conftest.$ac_objext
16253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16254 (eval $ac_compile) 2>conftest.er1
a848cd7e 16255 ac_status=$?
ac1cb8d3
VS
16256 grep -v '^ *+' conftest.er1 >conftest.err
16257 rm -f conftest.er1
16258 cat conftest.err >&5
a848cd7e
SC
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
04840eaa
VS
16261 { ac_try='test -z "$ac_c_werror_flag"
16262 || test ! -s conftest.err'
ac1cb8d3
VS
16263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16264 (eval $ac_try) 2>&5
16265 ac_status=$?
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); }; } &&
16268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16271 ac_status=$?
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 ac_cv_type_long=yes
16275else
16276 echo "$as_me: failed program was:" >&5
16277sed 's/^/| /' conftest.$ac_ext >&5
16278
16279ac_cv_type_long=no
16280fi
ac1cb8d3 16281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16282fi
16283echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
16284echo "${ECHO_T}$ac_cv_type_long" >&6
16285
16286echo "$as_me:$LINENO: checking size of long" >&5
16287echo $ECHO_N "checking size of long... $ECHO_C" >&6
16288if test "${ac_cv_sizeof_long+set}" = set; then
16289 echo $ECHO_N "(cached) $ECHO_C" >&6
16290else
16291 if test "$ac_cv_type_long" = yes; then
16292 # The cast to unsigned long works around a bug in the HP C Compiler
16293 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16294 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16295 # This bug is HP SR number 8606223364.
16296 if test "$cross_compiling" = yes; then
16297 # Depending upon the size, compute the lo and hi bounds.
16298cat >conftest.$ac_ext <<_ACEOF
16299/* confdefs.h. */
16300_ACEOF
16301cat confdefs.h >>conftest.$ac_ext
16302cat >>conftest.$ac_ext <<_ACEOF
16303/* end confdefs.h. */
16304$ac_includes_default
16305int
16306main ()
16307{
16308static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
16309test_array [0] = 0
16310
16311 ;
16312 return 0;
16313}
16314_ACEOF
16315rm -f conftest.$ac_objext
16316if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16317 (eval $ac_compile) 2>conftest.er1
a848cd7e 16318 ac_status=$?
ac1cb8d3
VS
16319 grep -v '^ *+' conftest.er1 >conftest.err
16320 rm -f conftest.er1
16321 cat conftest.err >&5
a848cd7e
SC
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); } &&
04840eaa
VS
16324 { ac_try='test -z "$ac_c_werror_flag"
16325 || test ! -s conftest.err'
ac1cb8d3
VS
16326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327 (eval $ac_try) 2>&5
16328 ac_status=$?
16329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330 (exit $ac_status); }; } &&
16331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16333 (eval $ac_try) 2>&5
16334 ac_status=$?
16335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); }; }; then
16337 ac_lo=0 ac_mid=0
16338 while :; do
16339 cat >conftest.$ac_ext <<_ACEOF
16340/* confdefs.h. */
16341_ACEOF
16342cat confdefs.h >>conftest.$ac_ext
16343cat >>conftest.$ac_ext <<_ACEOF
16344/* end confdefs.h. */
16345$ac_includes_default
16346int
16347main ()
16348{
16349static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16350test_array [0] = 0
16351
16352 ;
16353 return 0;
16354}
16355_ACEOF
16356rm -f conftest.$ac_objext
16357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16358 (eval $ac_compile) 2>conftest.er1
a848cd7e 16359 ac_status=$?
ac1cb8d3
VS
16360 grep -v '^ *+' conftest.er1 >conftest.err
16361 rm -f conftest.er1
16362 cat conftest.err >&5
a848cd7e
SC
16363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364 (exit $ac_status); } &&
04840eaa
VS
16365 { ac_try='test -z "$ac_c_werror_flag"
16366 || test ! -s conftest.err'
ac1cb8d3
VS
16367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16368 (eval $ac_try) 2>&5
16369 ac_status=$?
16370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371 (exit $ac_status); }; } &&
16372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16374 (eval $ac_try) 2>&5
16375 ac_status=$?
16376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16377 (exit $ac_status); }; }; then
16378 ac_hi=$ac_mid; break
16379else
16380 echo "$as_me: failed program was:" >&5
16381sed 's/^/| /' conftest.$ac_ext >&5
16382
16383ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16384 if test $ac_lo -le $ac_mid; then
16385 ac_lo= ac_hi=
16386 break
16387 fi
16388 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16389fi
ac1cb8d3 16390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16391 done
16392else
16393 echo "$as_me: failed program was:" >&5
16394sed 's/^/| /' conftest.$ac_ext >&5
16395
16396cat >conftest.$ac_ext <<_ACEOF
16397/* confdefs.h. */
16398_ACEOF
16399cat confdefs.h >>conftest.$ac_ext
16400cat >>conftest.$ac_ext <<_ACEOF
16401/* end confdefs.h. */
16402$ac_includes_default
16403int
16404main ()
16405{
16406static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16407test_array [0] = 0
16408
16409 ;
16410 return 0;
16411}
16412_ACEOF
16413rm -f conftest.$ac_objext
16414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16415 (eval $ac_compile) 2>conftest.er1
a848cd7e 16416 ac_status=$?
ac1cb8d3
VS
16417 grep -v '^ *+' conftest.er1 >conftest.err
16418 rm -f conftest.er1
16419 cat conftest.err >&5
a848cd7e
SC
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); } &&
04840eaa
VS
16422 { ac_try='test -z "$ac_c_werror_flag"
16423 || test ! -s conftest.err'
ac1cb8d3
VS
16424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16425 (eval $ac_try) 2>&5
16426 ac_status=$?
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; } &&
16429 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16431 (eval $ac_try) 2>&5
16432 ac_status=$?
16433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16434 (exit $ac_status); }; }; then
16435 ac_hi=-1 ac_mid=-1
16436 while :; do
16437 cat >conftest.$ac_ext <<_ACEOF
16438/* confdefs.h. */
16439_ACEOF
16440cat confdefs.h >>conftest.$ac_ext
16441cat >>conftest.$ac_ext <<_ACEOF
16442/* end confdefs.h. */
16443$ac_includes_default
16444int
16445main ()
16446{
16447static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16448test_array [0] = 0
16449
16450 ;
16451 return 0;
16452}
16453_ACEOF
16454rm -f conftest.$ac_objext
16455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16456 (eval $ac_compile) 2>conftest.er1
a848cd7e 16457 ac_status=$?
ac1cb8d3
VS
16458 grep -v '^ *+' conftest.er1 >conftest.err
16459 rm -f conftest.er1
16460 cat conftest.err >&5
a848cd7e
SC
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } &&
04840eaa
VS
16463 { ac_try='test -z "$ac_c_werror_flag"
16464 || test ! -s conftest.err'
ac1cb8d3
VS
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16467 ac_status=$?
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; } &&
16470 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472 (eval $ac_try) 2>&5
16473 ac_status=$?
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); }; }; then
16476 ac_lo=$ac_mid; break
16477else
16478 echo "$as_me: failed program was:" >&5
16479sed 's/^/| /' conftest.$ac_ext >&5
16480
16481ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16482 if test $ac_mid -le $ac_hi; then
16483 ac_lo= ac_hi=
16484 break
16485 fi
16486 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16487fi
ac1cb8d3 16488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16489 done
16490else
16491 echo "$as_me: failed program was:" >&5
16492sed 's/^/| /' conftest.$ac_ext >&5
16493
16494ac_lo= ac_hi=
16495fi
ac1cb8d3 16496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16497fi
ac1cb8d3 16498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16499# Binary search between lo and hi bounds.
16500while test "x$ac_lo" != "x$ac_hi"; do
16501 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16502 cat >conftest.$ac_ext <<_ACEOF
16503/* confdefs.h. */
16504_ACEOF
16505cat confdefs.h >>conftest.$ac_ext
16506cat >>conftest.$ac_ext <<_ACEOF
16507/* end confdefs.h. */
16508$ac_includes_default
16509int
16510main ()
16511{
16512static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16513test_array [0] = 0
16514
16515 ;
16516 return 0;
16517}
16518_ACEOF
16519rm -f conftest.$ac_objext
16520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16521 (eval $ac_compile) 2>conftest.er1
a848cd7e 16522 ac_status=$?
ac1cb8d3
VS
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
a848cd7e
SC
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } &&
04840eaa
VS
16528 { ac_try='test -z "$ac_c_werror_flag"
16529 || test ! -s conftest.err'
ac1cb8d3
VS
16530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531 (eval $ac_try) 2>&5
16532 ac_status=$?
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); }; } &&
16535 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537 (eval $ac_try) 2>&5
16538 ac_status=$?
16539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540 (exit $ac_status); }; }; then
16541 ac_hi=$ac_mid
16542else
16543 echo "$as_me: failed program was:" >&5
16544sed 's/^/| /' conftest.$ac_ext >&5
16545
16546ac_lo=`expr '(' $ac_mid ')' + 1`
16547fi
ac1cb8d3 16548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16549done
16550case $ac_lo in
16551?*) ac_cv_sizeof_long=$ac_lo;;
16552'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16553See \`config.log' for more details." >&5
16554echo "$as_me: error: cannot compute sizeof (long), 77
16555See \`config.log' for more details." >&2;}
16556 { (exit 1); exit 1; }; } ;;
16557esac
16558else
16559 if test "$cross_compiling" = yes; then
04840eaa
VS
16560 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16561See \`config.log' for more details." >&5
16562echo "$as_me: error: cannot run test program while cross compiling
16563See \`config.log' for more details." >&2;}
a848cd7e
SC
16564 { (exit 1); exit 1; }; }
16565else
16566 cat >conftest.$ac_ext <<_ACEOF
16567/* confdefs.h. */
16568_ACEOF
16569cat confdefs.h >>conftest.$ac_ext
16570cat >>conftest.$ac_ext <<_ACEOF
16571/* end confdefs.h. */
16572$ac_includes_default
16573long longval () { return (long) (sizeof (long)); }
16574unsigned long ulongval () { return (long) (sizeof (long)); }
16575#include <stdio.h>
16576#include <stdlib.h>
16577int
16578main ()
16579{
16580
16581 FILE *f = fopen ("conftest.val", "w");
16582 if (! f)
16583 exit (1);
16584 if (((long) (sizeof (long))) < 0)
16585 {
16586 long i = longval ();
16587 if (i != ((long) (sizeof (long))))
16588 exit (1);
16589 fprintf (f, "%ld\n", i);
16590 }
16591 else
16592 {
16593 unsigned long i = ulongval ();
16594 if (i != ((long) (sizeof (long))))
16595 exit (1);
16596 fprintf (f, "%lu\n", i);
16597 }
16598 exit (ferror (f) || fclose (f) != 0);
16599
16600 ;
16601 return 0;
16602}
16603_ACEOF
16604rm -f conftest$ac_exeext
16605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606 (eval $ac_link) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16612 ac_status=$?
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_cv_sizeof_long=`cat conftest.val`
16616else
16617 echo "$as_me: program exited with status $ac_status" >&5
16618echo "$as_me: failed program was:" >&5
16619sed 's/^/| /' conftest.$ac_ext >&5
16620
16621( exit $ac_status )
16622{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16623See \`config.log' for more details." >&5
16624echo "$as_me: error: cannot compute sizeof (long), 77
16625See \`config.log' for more details." >&2;}
16626 { (exit 1); exit 1; }; }
16627fi
ac1cb8d3 16628rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16629fi
16630fi
16631rm -f conftest.val
16632else
16633 ac_cv_sizeof_long=0
16634fi
16635fi
16636echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16637echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16638cat >>confdefs.h <<_ACEOF
16639#define SIZEOF_LONG $ac_cv_sizeof_long
16640_ACEOF
16641
16642
16643echo "$as_me:$LINENO: checking for size_t" >&5
16644echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16645if test "${ac_cv_type_size_t+set}" = set; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16647else
16648 cat >conftest.$ac_ext <<_ACEOF
16649/* confdefs.h. */
16650_ACEOF
16651cat confdefs.h >>conftest.$ac_ext
16652cat >>conftest.$ac_ext <<_ACEOF
16653/* end confdefs.h. */
16654$ac_includes_default
16655int
16656main ()
16657{
16658if ((size_t *) 0)
16659 return 0;
16660if (sizeof (size_t))
16661 return 0;
16662 ;
16663 return 0;
16664}
16665_ACEOF
16666rm -f conftest.$ac_objext
16667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16668 (eval $ac_compile) 2>conftest.er1
a848cd7e 16669 ac_status=$?
ac1cb8d3
VS
16670 grep -v '^ *+' conftest.er1 >conftest.err
16671 rm -f conftest.er1
16672 cat conftest.err >&5
a848cd7e
SC
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); } &&
04840eaa
VS
16675 { ac_try='test -z "$ac_c_werror_flag"
16676 || test ! -s conftest.err'
ac1cb8d3
VS
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; } &&
16682 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684 (eval $ac_try) 2>&5
16685 ac_status=$?
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; }; then
16688 ac_cv_type_size_t=yes
16689else
16690 echo "$as_me: failed program was:" >&5
16691sed 's/^/| /' conftest.$ac_ext >&5
16692
16693ac_cv_type_size_t=no
16694fi
ac1cb8d3 16695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16696fi
16697echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16698echo "${ECHO_T}$ac_cv_type_size_t" >&6
16699
16700echo "$as_me:$LINENO: checking size of size_t" >&5
16701echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16702if test "${ac_cv_sizeof_size_t+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16704else
16705 if test "$ac_cv_type_size_t" = yes; then
16706 # The cast to unsigned long works around a bug in the HP C Compiler
16707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16709 # This bug is HP SR number 8606223364.
16710 if test "$cross_compiling" = yes; then
16711 # Depending upon the size, compute the lo and hi bounds.
16712cat >conftest.$ac_ext <<_ACEOF
16713/* confdefs.h. */
16714_ACEOF
16715cat confdefs.h >>conftest.$ac_ext
16716cat >>conftest.$ac_ext <<_ACEOF
16717/* end confdefs.h. */
16718$ac_includes_default
16719int
16720main ()
16721{
16722static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16723test_array [0] = 0
16724
16725 ;
16726 return 0;
16727}
16728_ACEOF
16729rm -f conftest.$ac_objext
16730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16731 (eval $ac_compile) 2>conftest.er1
a848cd7e 16732 ac_status=$?
ac1cb8d3
VS
16733 grep -v '^ *+' conftest.er1 >conftest.err
16734 rm -f conftest.er1
16735 cat conftest.err >&5
a848cd7e
SC
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
04840eaa
VS
16738 { ac_try='test -z "$ac_c_werror_flag"
16739 || test ! -s conftest.err'
ac1cb8d3
VS
16740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741 (eval $ac_try) 2>&5
16742 ac_status=$?
16743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744 (exit $ac_status); }; } &&
16745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16747 (eval $ac_try) 2>&5
16748 ac_status=$?
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); }; }; then
16751 ac_lo=0 ac_mid=0
16752 while :; do
16753 cat >conftest.$ac_ext <<_ACEOF
16754/* confdefs.h. */
16755_ACEOF
16756cat confdefs.h >>conftest.$ac_ext
16757cat >>conftest.$ac_ext <<_ACEOF
16758/* end confdefs.h. */
16759$ac_includes_default
16760int
16761main ()
16762{
16763static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16764test_array [0] = 0
16765
16766 ;
16767 return 0;
16768}
16769_ACEOF
16770rm -f conftest.$ac_objext
16771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16772 (eval $ac_compile) 2>conftest.er1
a848cd7e 16773 ac_status=$?
ac1cb8d3
VS
16774 grep -v '^ *+' conftest.er1 >conftest.err
16775 rm -f conftest.er1
16776 cat conftest.err >&5
a848cd7e
SC
16777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778 (exit $ac_status); } &&
04840eaa
VS
16779 { ac_try='test -z "$ac_c_werror_flag"
16780 || test ! -s conftest.err'
ac1cb8d3
VS
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; } &&
16786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788 (eval $ac_try) 2>&5
16789 ac_status=$?
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; }; then
16792 ac_hi=$ac_mid; break
16793else
16794 echo "$as_me: failed program was:" >&5
16795sed 's/^/| /' conftest.$ac_ext >&5
16796
16797ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16798 if test $ac_lo -le $ac_mid; then
16799 ac_lo= ac_hi=
16800 break
16801 fi
16802 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16803fi
ac1cb8d3 16804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16805 done
16806else
16807 echo "$as_me: failed program was:" >&5
16808sed 's/^/| /' conftest.$ac_ext >&5
16809
16810cat >conftest.$ac_ext <<_ACEOF
16811/* confdefs.h. */
16812_ACEOF
16813cat confdefs.h >>conftest.$ac_ext
16814cat >>conftest.$ac_ext <<_ACEOF
16815/* end confdefs.h. */
16816$ac_includes_default
16817int
16818main ()
16819{
16820static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16821test_array [0] = 0
16822
16823 ;
16824 return 0;
16825}
16826_ACEOF
16827rm -f conftest.$ac_objext
16828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16829 (eval $ac_compile) 2>conftest.er1
a848cd7e 16830 ac_status=$?
ac1cb8d3
VS
16831 grep -v '^ *+' conftest.er1 >conftest.err
16832 rm -f conftest.er1
16833 cat conftest.err >&5
a848cd7e
SC
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
04840eaa
VS
16836 { ac_try='test -z "$ac_c_werror_flag"
16837 || test ! -s conftest.err'
ac1cb8d3
VS
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_hi=-1 ac_mid=-1
16850 while :; do
16851 cat >conftest.$ac_ext <<_ACEOF
16852/* confdefs.h. */
16853_ACEOF
16854cat confdefs.h >>conftest.$ac_ext
16855cat >>conftest.$ac_ext <<_ACEOF
16856/* end confdefs.h. */
16857$ac_includes_default
16858int
16859main ()
16860{
16861static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16862test_array [0] = 0
16863
16864 ;
16865 return 0;
16866}
16867_ACEOF
16868rm -f conftest.$ac_objext
16869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16870 (eval $ac_compile) 2>conftest.er1
a848cd7e 16871 ac_status=$?
ac1cb8d3
VS
16872 grep -v '^ *+' conftest.er1 >conftest.err
16873 rm -f conftest.er1
16874 cat conftest.err >&5
a848cd7e
SC
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } &&
04840eaa
VS
16877 { ac_try='test -z "$ac_c_werror_flag"
16878 || test ! -s conftest.err'
ac1cb8d3
VS
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 ac_lo=$ac_mid; break
16891else
16892 echo "$as_me: failed program was:" >&5
16893sed 's/^/| /' conftest.$ac_ext >&5
16894
16895ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16896 if test $ac_mid -le $ac_hi; then
16897 ac_lo= ac_hi=
16898 break
16899 fi
16900 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16901fi
ac1cb8d3 16902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16903 done
16904else
16905 echo "$as_me: failed program was:" >&5
16906sed 's/^/| /' conftest.$ac_ext >&5
16907
16908ac_lo= ac_hi=
16909fi
ac1cb8d3 16910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16911fi
ac1cb8d3 16912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16913# Binary search between lo and hi bounds.
16914while test "x$ac_lo" != "x$ac_hi"; do
16915 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16916 cat >conftest.$ac_ext <<_ACEOF
16917/* confdefs.h. */
16918_ACEOF
16919cat confdefs.h >>conftest.$ac_ext
16920cat >>conftest.$ac_ext <<_ACEOF
16921/* end confdefs.h. */
16922$ac_includes_default
16923int
16924main ()
16925{
16926static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16927test_array [0] = 0
16928
16929 ;
16930 return 0;
16931}
16932_ACEOF
16933rm -f conftest.$ac_objext
16934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16935 (eval $ac_compile) 2>conftest.er1
a848cd7e 16936 ac_status=$?
ac1cb8d3
VS
16937 grep -v '^ *+' conftest.er1 >conftest.err
16938 rm -f conftest.er1
16939 cat conftest.err >&5
a848cd7e
SC
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 (exit $ac_status); } &&
04840eaa
VS
16942 { ac_try='test -z "$ac_c_werror_flag"
16943 || test ! -s conftest.err'
ac1cb8d3
VS
16944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945 (eval $ac_try) 2>&5
16946 ac_status=$?
16947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948 (exit $ac_status); }; } &&
16949 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951 (eval $ac_try) 2>&5
16952 ac_status=$?
16953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954 (exit $ac_status); }; }; then
16955 ac_hi=$ac_mid
16956else
16957 echo "$as_me: failed program was:" >&5
16958sed 's/^/| /' conftest.$ac_ext >&5
16959
16960ac_lo=`expr '(' $ac_mid ')' + 1`
16961fi
ac1cb8d3 16962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16963done
16964case $ac_lo in
16965?*) ac_cv_sizeof_size_t=$ac_lo;;
16966'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16967See \`config.log' for more details." >&5
16968echo "$as_me: error: cannot compute sizeof (size_t), 77
16969See \`config.log' for more details." >&2;}
16970 { (exit 1); exit 1; }; } ;;
16971esac
16972else
16973 if test "$cross_compiling" = yes; then
04840eaa
VS
16974 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16975See \`config.log' for more details." >&5
16976echo "$as_me: error: cannot run test program while cross compiling
16977See \`config.log' for more details." >&2;}
a848cd7e
SC
16978 { (exit 1); exit 1; }; }
16979else
16980 cat >conftest.$ac_ext <<_ACEOF
16981/* confdefs.h. */
16982_ACEOF
16983cat confdefs.h >>conftest.$ac_ext
16984cat >>conftest.$ac_ext <<_ACEOF
16985/* end confdefs.h. */
16986$ac_includes_default
16987long longval () { return (long) (sizeof (size_t)); }
16988unsigned long ulongval () { return (long) (sizeof (size_t)); }
16989#include <stdio.h>
16990#include <stdlib.h>
16991int
16992main ()
16993{
16994
16995 FILE *f = fopen ("conftest.val", "w");
16996 if (! f)
16997 exit (1);
16998 if (((long) (sizeof (size_t))) < 0)
16999 {
17000 long i = longval ();
17001 if (i != ((long) (sizeof (size_t))))
17002 exit (1);
17003 fprintf (f, "%ld\n", i);
17004 }
17005 else
17006 {
17007 unsigned long i = ulongval ();
17008 if (i != ((long) (sizeof (size_t))))
17009 exit (1);
17010 fprintf (f, "%lu\n", i);
17011 }
17012 exit (ferror (f) || fclose (f) != 0);
17013
17014 ;
17015 return 0;
17016}
17017_ACEOF
17018rm -f conftest$ac_exeext
17019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17020 (eval $ac_link) 2>&5
17021 ac_status=$?
17022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17023 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
17029 ac_cv_sizeof_size_t=`cat conftest.val`
17030else
17031 echo "$as_me: program exited with status $ac_status" >&5
17032echo "$as_me: failed program was:" >&5
17033sed 's/^/| /' conftest.$ac_ext >&5
17034
17035( exit $ac_status )
17036{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
17037See \`config.log' for more details." >&5
17038echo "$as_me: error: cannot compute sizeof (size_t), 77
17039See \`config.log' for more details." >&2;}
17040 { (exit 1); exit 1; }; }
17041fi
ac1cb8d3 17042rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17043fi
17044fi
17045rm -f conftest.val
17046else
17047 ac_cv_sizeof_size_t=0
17048fi
17049fi
17050echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
17051echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
17052cat >>confdefs.h <<_ACEOF
17053#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
17054_ACEOF
17055
17056
17057
17058case "${host}" in
17059 arm-*-linux* )
17060 echo "$as_me:$LINENO: checking for long long" >&5
17061echo $ECHO_N "checking for long long... $ECHO_C" >&6
17062if test "${ac_cv_type_long_long+set}" = set; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17064else
17065 cat >conftest.$ac_ext <<_ACEOF
17066/* confdefs.h. */
17067_ACEOF
17068cat confdefs.h >>conftest.$ac_ext
17069cat >>conftest.$ac_ext <<_ACEOF
17070/* end confdefs.h. */
17071$ac_includes_default
17072int
17073main ()
17074{
17075if ((long long *) 0)
17076 return 0;
17077if (sizeof (long long))
17078 return 0;
17079 ;
17080 return 0;
17081}
17082_ACEOF
17083rm -f conftest.$ac_objext
17084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17085 (eval $ac_compile) 2>conftest.er1
a848cd7e 17086 ac_status=$?
ac1cb8d3
VS
17087 grep -v '^ *+' conftest.er1 >conftest.err
17088 rm -f conftest.er1
17089 cat conftest.err >&5
a848cd7e
SC
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); } &&
04840eaa
VS
17092 { ac_try='test -z "$ac_c_werror_flag"
17093 || test ! -s conftest.err'
ac1cb8d3
VS
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; } &&
17099 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17101 (eval $ac_try) 2>&5
17102 ac_status=$?
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); }; }; then
17105 ac_cv_type_long_long=yes
17106else
17107 echo "$as_me: failed program was:" >&5
17108sed 's/^/| /' conftest.$ac_ext >&5
17109
17110ac_cv_type_long_long=no
17111fi
ac1cb8d3 17112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17113fi
17114echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17115echo "${ECHO_T}$ac_cv_type_long_long" >&6
17116
17117echo "$as_me:$LINENO: checking size of long long" >&5
17118echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17119if test "${ac_cv_sizeof_long_long+set}" = set; then
17120 echo $ECHO_N "(cached) $ECHO_C" >&6
17121else
17122 if test "$ac_cv_type_long_long" = yes; then
17123 # The cast to unsigned long works around a bug in the HP C Compiler
17124 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17125 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17126 # This bug is HP SR number 8606223364.
17127 if test "$cross_compiling" = yes; then
17128 # Depending upon the size, compute the lo and hi bounds.
17129cat >conftest.$ac_ext <<_ACEOF
17130/* confdefs.h. */
17131_ACEOF
17132cat confdefs.h >>conftest.$ac_ext
17133cat >>conftest.$ac_ext <<_ACEOF
17134/* end confdefs.h. */
17135$ac_includes_default
17136int
17137main ()
17138{
17139static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17140test_array [0] = 0
17141
17142 ;
17143 return 0;
17144}
17145_ACEOF
17146rm -f conftest.$ac_objext
17147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17148 (eval $ac_compile) 2>conftest.er1
a848cd7e 17149 ac_status=$?
ac1cb8d3
VS
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
a848cd7e
SC
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
04840eaa
VS
17155 { ac_try='test -z "$ac_c_werror_flag"
17156 || test ! -s conftest.err'
ac1cb8d3
VS
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_lo=0 ac_mid=0
17169 while :; do
17170 cat >conftest.$ac_ext <<_ACEOF
17171/* confdefs.h. */
17172_ACEOF
17173cat confdefs.h >>conftest.$ac_ext
17174cat >>conftest.$ac_ext <<_ACEOF
17175/* end confdefs.h. */
17176$ac_includes_default
17177int
17178main ()
17179{
17180static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17181test_array [0] = 0
17182
17183 ;
17184 return 0;
17185}
17186_ACEOF
17187rm -f conftest.$ac_objext
17188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17189 (eval $ac_compile) 2>conftest.er1
a848cd7e 17190 ac_status=$?
ac1cb8d3
VS
17191 grep -v '^ *+' conftest.er1 >conftest.err
17192 rm -f conftest.er1
17193 cat conftest.err >&5
a848cd7e
SC
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
04840eaa
VS
17196 { ac_try='test -z "$ac_c_werror_flag"
17197 || test ! -s conftest.err'
ac1cb8d3
VS
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17200 ac_status=$?
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; } &&
17203 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; }; then
17209 ac_hi=$ac_mid; break
17210else
17211 echo "$as_me: failed program was:" >&5
17212sed 's/^/| /' conftest.$ac_ext >&5
17213
17214ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17215 if test $ac_lo -le $ac_mid; then
17216 ac_lo= ac_hi=
17217 break
17218 fi
17219 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17220fi
ac1cb8d3 17221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17222 done
17223else
17224 echo "$as_me: failed program was:" >&5
17225sed 's/^/| /' conftest.$ac_ext >&5
17226
17227cat >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{
17237static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17238test_array [0] = 0
17239
17240 ;
17241 return 0;
17242}
17243_ACEOF
17244rm -f conftest.$ac_objext
17245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17246 (eval $ac_compile) 2>conftest.er1
a848cd7e 17247 ac_status=$?
ac1cb8d3
VS
17248 grep -v '^ *+' conftest.er1 >conftest.err
17249 rm -f conftest.er1
17250 cat conftest.err >&5
a848cd7e
SC
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
04840eaa
VS
17253 { ac_try='test -z "$ac_c_werror_flag"
17254 || 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_hi=-1 ac_mid=-1
17267 while :; do
17268 cat >conftest.$ac_ext <<_ACEOF
17269/* confdefs.h. */
17270_ACEOF
17271cat confdefs.h >>conftest.$ac_ext
17272cat >>conftest.$ac_ext <<_ACEOF
17273/* end confdefs.h. */
17274$ac_includes_default
17275int
17276main ()
17277{
17278static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17279test_array [0] = 0
17280
17281 ;
17282 return 0;
17283}
17284_ACEOF
17285rm -f conftest.$ac_objext
17286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17287 (eval $ac_compile) 2>conftest.er1
a848cd7e 17288 ac_status=$?
ac1cb8d3
VS
17289 grep -v '^ *+' conftest.er1 >conftest.err
17290 rm -f conftest.er1
17291 cat conftest.err >&5
a848cd7e
SC
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
04840eaa
VS
17294 { ac_try='test -z "$ac_c_werror_flag"
17295 || test ! -s conftest.err'
ac1cb8d3
VS
17296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17297 (eval $ac_try) 2>&5
17298 ac_status=$?
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); }; } &&
17301 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 ac_lo=$ac_mid; break
17308else
17309 echo "$as_me: failed program was:" >&5
17310sed 's/^/| /' conftest.$ac_ext >&5
17311
17312ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17313 if test $ac_mid -le $ac_hi; then
17314 ac_lo= ac_hi=
17315 break
17316 fi
17317 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17318fi
ac1cb8d3 17319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17320 done
17321else
17322 echo "$as_me: failed program was:" >&5
17323sed 's/^/| /' conftest.$ac_ext >&5
17324
17325ac_lo= ac_hi=
17326fi
ac1cb8d3 17327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17328fi
ac1cb8d3 17329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17330# Binary search between lo and hi bounds.
17331while test "x$ac_lo" != "x$ac_hi"; do
17332 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17333 cat >conftest.$ac_ext <<_ACEOF
17334/* confdefs.h. */
17335_ACEOF
17336cat confdefs.h >>conftest.$ac_ext
17337cat >>conftest.$ac_ext <<_ACEOF
17338/* end confdefs.h. */
17339$ac_includes_default
17340int
17341main ()
17342{
17343static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17344test_array [0] = 0
17345
17346 ;
17347 return 0;
17348}
17349_ACEOF
17350rm -f conftest.$ac_objext
17351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17352 (eval $ac_compile) 2>conftest.er1
a848cd7e 17353 ac_status=$?
ac1cb8d3
VS
17354 grep -v '^ *+' conftest.er1 >conftest.err
17355 rm -f conftest.er1
17356 cat conftest.err >&5
a848cd7e
SC
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); } &&
04840eaa
VS
17359 { ac_try='test -z "$ac_c_werror_flag"
17360 || test ! -s conftest.err'
ac1cb8d3
VS
17361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17362 (eval $ac_try) 2>&5
17363 ac_status=$?
17364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17365 (exit $ac_status); }; } &&
17366 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368 (eval $ac_try) 2>&5
17369 ac_status=$?
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); }; }; then
17372 ac_hi=$ac_mid
17373else
17374 echo "$as_me: failed program was:" >&5
17375sed 's/^/| /' conftest.$ac_ext >&5
17376
17377ac_lo=`expr '(' $ac_mid ')' + 1`
17378fi
ac1cb8d3 17379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17380done
17381case $ac_lo in
17382?*) ac_cv_sizeof_long_long=$ac_lo;;
17383'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17384See \`config.log' for more details." >&5
17385echo "$as_me: error: cannot compute sizeof (long long), 77
17386See \`config.log' for more details." >&2;}
17387 { (exit 1); exit 1; }; } ;;
17388esac
17389else
17390 if test "$cross_compiling" = yes; then
04840eaa
VS
17391 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17392See \`config.log' for more details." >&5
17393echo "$as_me: error: cannot run test program while cross compiling
17394See \`config.log' for more details." >&2;}
a848cd7e
SC
17395 { (exit 1); exit 1; }; }
17396else
17397 cat >conftest.$ac_ext <<_ACEOF
17398/* confdefs.h. */
17399_ACEOF
17400cat confdefs.h >>conftest.$ac_ext
17401cat >>conftest.$ac_ext <<_ACEOF
17402/* end confdefs.h. */
17403$ac_includes_default
17404long longval () { return (long) (sizeof (long long)); }
17405unsigned long ulongval () { return (long) (sizeof (long long)); }
17406#include <stdio.h>
17407#include <stdlib.h>
17408int
17409main ()
17410{
17411
17412 FILE *f = fopen ("conftest.val", "w");
17413 if (! f)
17414 exit (1);
17415 if (((long) (sizeof (long long))) < 0)
17416 {
17417 long i = longval ();
17418 if (i != ((long) (sizeof (long long))))
17419 exit (1);
17420 fprintf (f, "%ld\n", i);
17421 }
17422 else
17423 {
17424 unsigned long i = ulongval ();
17425 if (i != ((long) (sizeof (long long))))
17426 exit (1);
17427 fprintf (f, "%lu\n", i);
17428 }
17429 exit (ferror (f) || fclose (f) != 0);
17430
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest$ac_exeext
17436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17437 (eval $ac_link) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17442 (eval $ac_try) 2>&5
17443 ac_status=$?
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); }; }; then
17446 ac_cv_sizeof_long_long=`cat conftest.val`
17447else
17448 echo "$as_me: program exited with status $ac_status" >&5
17449echo "$as_me: failed program was:" >&5
17450sed 's/^/| /' conftest.$ac_ext >&5
17451
17452( exit $ac_status )
17453{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17454See \`config.log' for more details." >&5
17455echo "$as_me: error: cannot compute sizeof (long long), 77
17456See \`config.log' for more details." >&2;}
17457 { (exit 1); exit 1; }; }
17458fi
ac1cb8d3 17459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17460fi
17461fi
17462rm -f conftest.val
17463else
17464 ac_cv_sizeof_long_long=0
17465fi
17466fi
17467echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17468echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17469cat >>confdefs.h <<_ACEOF
17470#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17471_ACEOF
17472
17473
17474 ;;
17475 *-hp-hpux* )
17476 echo "$as_me:$LINENO: checking for long long" >&5
17477echo $ECHO_N "checking for long long... $ECHO_C" >&6
17478if test "${ac_cv_type_long_long+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17480else
17481 cat >conftest.$ac_ext <<_ACEOF
17482/* confdefs.h. */
17483_ACEOF
17484cat confdefs.h >>conftest.$ac_ext
17485cat >>conftest.$ac_ext <<_ACEOF
17486/* end confdefs.h. */
17487$ac_includes_default
17488int
17489main ()
17490{
17491if ((long long *) 0)
17492 return 0;
17493if (sizeof (long long))
17494 return 0;
17495 ;
17496 return 0;
17497}
17498_ACEOF
17499rm -f conftest.$ac_objext
17500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17501 (eval $ac_compile) 2>conftest.er1
a848cd7e 17502 ac_status=$?
ac1cb8d3
VS
17503 grep -v '^ *+' conftest.er1 >conftest.err
17504 rm -f conftest.er1
17505 cat conftest.err >&5
a848cd7e
SC
17506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507 (exit $ac_status); } &&
04840eaa
VS
17508 { ac_try='test -z "$ac_c_werror_flag"
17509 || test ! -s conftest.err'
ac1cb8d3
VS
17510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17511 (eval $ac_try) 2>&5
17512 ac_status=$?
17513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514 (exit $ac_status); }; } &&
17515 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17517 (eval $ac_try) 2>&5
17518 ac_status=$?
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; }; then
17521 ac_cv_type_long_long=yes
17522else
17523 echo "$as_me: failed program was:" >&5
17524sed 's/^/| /' conftest.$ac_ext >&5
17525
17526ac_cv_type_long_long=no
17527fi
ac1cb8d3 17528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17529fi
17530echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17531echo "${ECHO_T}$ac_cv_type_long_long" >&6
17532
17533echo "$as_me:$LINENO: checking size of long long" >&5
17534echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17535if test "${ac_cv_sizeof_long_long+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17537else
17538 if test "$ac_cv_type_long_long" = yes; then
17539 # The cast to unsigned long works around a bug in the HP C Compiler
17540 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17541 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17542 # This bug is HP SR number 8606223364.
17543 if test "$cross_compiling" = yes; then
17544 # Depending upon the size, compute the lo and hi bounds.
17545cat >conftest.$ac_ext <<_ACEOF
17546/* confdefs.h. */
17547_ACEOF
17548cat confdefs.h >>conftest.$ac_ext
17549cat >>conftest.$ac_ext <<_ACEOF
17550/* end confdefs.h. */
17551$ac_includes_default
17552int
17553main ()
17554{
17555static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17556test_array [0] = 0
17557
17558 ;
17559 return 0;
17560}
17561_ACEOF
17562rm -f conftest.$ac_objext
17563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17564 (eval $ac_compile) 2>conftest.er1
a848cd7e 17565 ac_status=$?
ac1cb8d3
VS
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
a848cd7e
SC
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
04840eaa
VS
17571 { ac_try='test -z "$ac_c_werror_flag"
17572 || test ! -s conftest.err'
ac1cb8d3
VS
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; } &&
17578 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17580 (eval $ac_try) 2>&5
17581 ac_status=$?
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); }; }; then
17584 ac_lo=0 ac_mid=0
17585 while :; do
17586 cat >conftest.$ac_ext <<_ACEOF
17587/* confdefs.h. */
17588_ACEOF
17589cat confdefs.h >>conftest.$ac_ext
17590cat >>conftest.$ac_ext <<_ACEOF
17591/* end confdefs.h. */
17592$ac_includes_default
17593int
17594main ()
17595{
17596static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17597test_array [0] = 0
17598
17599 ;
17600 return 0;
17601}
17602_ACEOF
17603rm -f conftest.$ac_objext
17604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17605 (eval $ac_compile) 2>conftest.er1
a848cd7e 17606 ac_status=$?
ac1cb8d3
VS
17607 grep -v '^ *+' conftest.er1 >conftest.err
17608 rm -f conftest.er1
17609 cat conftest.err >&5
a848cd7e
SC
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); } &&
04840eaa
VS
17612 { ac_try='test -z "$ac_c_werror_flag"
17613 || test ! -s conftest.err'
ac1cb8d3
VS
17614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17615 (eval $ac_try) 2>&5
17616 ac_status=$?
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); }; } &&
17619 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17622 ac_status=$?
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625 ac_hi=$ac_mid; break
17626else
17627 echo "$as_me: failed program was:" >&5
17628sed 's/^/| /' conftest.$ac_ext >&5
17629
17630ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17631 if test $ac_lo -le $ac_mid; then
17632 ac_lo= ac_hi=
17633 break
17634 fi
17635 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17636fi
ac1cb8d3 17637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17638 done
17639else
17640 echo "$as_me: failed program was:" >&5
17641sed 's/^/| /' conftest.$ac_ext >&5
17642
17643cat >conftest.$ac_ext <<_ACEOF
17644/* confdefs.h. */
17645_ACEOF
17646cat confdefs.h >>conftest.$ac_ext
17647cat >>conftest.$ac_ext <<_ACEOF
17648/* end confdefs.h. */
17649$ac_includes_default
17650int
17651main ()
17652{
17653static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17654test_array [0] = 0
17655
17656 ;
17657 return 0;
17658}
17659_ACEOF
17660rm -f conftest.$ac_objext
17661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17662 (eval $ac_compile) 2>conftest.er1
a848cd7e 17663 ac_status=$?
ac1cb8d3
VS
17664 grep -v '^ *+' conftest.er1 >conftest.err
17665 rm -f conftest.er1
17666 cat conftest.err >&5
a848cd7e
SC
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } &&
04840eaa
VS
17669 { ac_try='test -z "$ac_c_werror_flag"
17670 || test ! -s conftest.err'
ac1cb8d3
VS
17671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17672 (eval $ac_try) 2>&5
17673 ac_status=$?
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }; } &&
17676 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17678 (eval $ac_try) 2>&5
17679 ac_status=$?
17680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681 (exit $ac_status); }; }; then
17682 ac_hi=-1 ac_mid=-1
17683 while :; do
17684 cat >conftest.$ac_ext <<_ACEOF
17685/* confdefs.h. */
17686_ACEOF
17687cat confdefs.h >>conftest.$ac_ext
17688cat >>conftest.$ac_ext <<_ACEOF
17689/* end confdefs.h. */
17690$ac_includes_default
17691int
17692main ()
17693{
17694static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17695test_array [0] = 0
17696
17697 ;
17698 return 0;
17699}
17700_ACEOF
17701rm -f conftest.$ac_objext
17702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17703 (eval $ac_compile) 2>conftest.er1
a848cd7e 17704 ac_status=$?
ac1cb8d3
VS
17705 grep -v '^ *+' conftest.er1 >conftest.err
17706 rm -f conftest.er1
17707 cat conftest.err >&5
a848cd7e
SC
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
04840eaa
VS
17710 { ac_try='test -z "$ac_c_werror_flag"
17711 || test ! -s conftest.err'
ac1cb8d3
VS
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; } &&
17717 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17720 ac_status=$?
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 ac_lo=$ac_mid; break
17724else
17725 echo "$as_me: failed program was:" >&5
17726sed 's/^/| /' conftest.$ac_ext >&5
17727
17728ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17729 if test $ac_mid -le $ac_hi; then
17730 ac_lo= ac_hi=
17731 break
17732 fi
17733 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17734fi
ac1cb8d3 17735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17736 done
17737else
17738 echo "$as_me: failed program was:" >&5
17739sed 's/^/| /' conftest.$ac_ext >&5
17740
17741ac_lo= ac_hi=
17742fi
ac1cb8d3 17743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17744fi
ac1cb8d3 17745rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17746# Binary search between lo and hi bounds.
17747while test "x$ac_lo" != "x$ac_hi"; do
17748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17749 cat >conftest.$ac_ext <<_ACEOF
17750/* confdefs.h. */
17751_ACEOF
17752cat confdefs.h >>conftest.$ac_ext
17753cat >>conftest.$ac_ext <<_ACEOF
17754/* end confdefs.h. */
17755$ac_includes_default
17756int
17757main ()
17758{
17759static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17760test_array [0] = 0
17761
17762 ;
17763 return 0;
17764}
17765_ACEOF
17766rm -f conftest.$ac_objext
17767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17768 (eval $ac_compile) 2>conftest.er1
a848cd7e 17769 ac_status=$?
ac1cb8d3
VS
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
a848cd7e
SC
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
04840eaa
VS
17775 { ac_try='test -z "$ac_c_werror_flag"
17776 || test ! -s conftest.err'
ac1cb8d3
VS
17777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17778 (eval $ac_try) 2>&5
17779 ac_status=$?
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); }; } &&
17782 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17784 (eval $ac_try) 2>&5
17785 ac_status=$?
17786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); }; }; then
17788 ac_hi=$ac_mid
17789else
17790 echo "$as_me: failed program was:" >&5
17791sed 's/^/| /' conftest.$ac_ext >&5
17792
17793ac_lo=`expr '(' $ac_mid ')' + 1`
17794fi
ac1cb8d3 17795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17796done
17797case $ac_lo in
17798?*) ac_cv_sizeof_long_long=$ac_lo;;
17799'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17800See \`config.log' for more details." >&5
17801echo "$as_me: error: cannot compute sizeof (long long), 77
17802See \`config.log' for more details." >&2;}
17803 { (exit 1); exit 1; }; } ;;
17804esac
17805else
17806 if test "$cross_compiling" = yes; then
04840eaa
VS
17807 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17808See \`config.log' for more details." >&5
17809echo "$as_me: error: cannot run test program while cross compiling
17810See \`config.log' for more details." >&2;}
a848cd7e
SC
17811 { (exit 1); exit 1; }; }
17812else
17813 cat >conftest.$ac_ext <<_ACEOF
17814/* confdefs.h. */
17815_ACEOF
17816cat confdefs.h >>conftest.$ac_ext
17817cat >>conftest.$ac_ext <<_ACEOF
17818/* end confdefs.h. */
17819$ac_includes_default
17820long longval () { return (long) (sizeof (long long)); }
17821unsigned long ulongval () { return (long) (sizeof (long long)); }
17822#include <stdio.h>
17823#include <stdlib.h>
17824int
17825main ()
17826{
17827
17828 FILE *f = fopen ("conftest.val", "w");
17829 if (! f)
17830 exit (1);
17831 if (((long) (sizeof (long long))) < 0)
17832 {
17833 long i = longval ();
17834 if (i != ((long) (sizeof (long long))))
17835 exit (1);
17836 fprintf (f, "%ld\n", i);
17837 }
17838 else
17839 {
17840 unsigned long i = ulongval ();
17841 if (i != ((long) (sizeof (long long))))
17842 exit (1);
17843 fprintf (f, "%lu\n", i);
17844 }
17845 exit (ferror (f) || fclose (f) != 0);
17846
17847 ;
17848 return 0;
17849}
17850_ACEOF
17851rm -f conftest$ac_exeext
17852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17853 (eval $ac_link) 2>&5
17854 ac_status=$?
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17858 (eval $ac_try) 2>&5
17859 ac_status=$?
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); }; }; then
17862 ac_cv_sizeof_long_long=`cat conftest.val`
17863else
17864 echo "$as_me: program exited with status $ac_status" >&5
17865echo "$as_me: failed program was:" >&5
17866sed 's/^/| /' conftest.$ac_ext >&5
17867
17868( exit $ac_status )
17869{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17870See \`config.log' for more details." >&5
17871echo "$as_me: error: cannot compute sizeof (long long), 77
17872See \`config.log' for more details." >&2;}
17873 { (exit 1); exit 1; }; }
17874fi
ac1cb8d3 17875rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17876fi
17877fi
17878rm -f conftest.val
17879else
17880 ac_cv_sizeof_long_long=0
17881fi
17882fi
17883echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17884echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17885cat >>confdefs.h <<_ACEOF
17886#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17887_ACEOF
17888
17889
17890 if test "$ac_cv_sizeof_long_long" != "0"; then
17891 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17892 fi
17893 ;;
17894 * )
17895 echo "$as_me:$LINENO: checking for long long" >&5
17896echo $ECHO_N "checking for long long... $ECHO_C" >&6
17897if test "${ac_cv_type_long_long+set}" = set; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17899else
17900 cat >conftest.$ac_ext <<_ACEOF
17901/* confdefs.h. */
17902_ACEOF
17903cat confdefs.h >>conftest.$ac_ext
17904cat >>conftest.$ac_ext <<_ACEOF
17905/* end confdefs.h. */
17906$ac_includes_default
17907int
17908main ()
17909{
17910if ((long long *) 0)
17911 return 0;
17912if (sizeof (long long))
17913 return 0;
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); } &&
04840eaa
VS
17927 { ac_try='test -z "$ac_c_werror_flag"
17928 || test ! -s conftest.err'
ac1cb8d3
VS
17929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930 (eval $ac_try) 2>&5
17931 ac_status=$?
17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933 (exit $ac_status); }; } &&
17934 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17936 (eval $ac_try) 2>&5
17937 ac_status=$?
17938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939 (exit $ac_status); }; }; then
17940 ac_cv_type_long_long=yes
17941else
17942 echo "$as_me: failed program was:" >&5
17943sed 's/^/| /' conftest.$ac_ext >&5
17944
17945ac_cv_type_long_long=no
17946fi
ac1cb8d3 17947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17948fi
17949echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17950echo "${ECHO_T}$ac_cv_type_long_long" >&6
17951
17952echo "$as_me:$LINENO: checking size of long long" >&5
17953echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17954if test "${ac_cv_sizeof_long_long+set}" = set; then
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17956else
17957 if test "$ac_cv_type_long_long" = yes; then
17958 # The cast to unsigned long works around a bug in the HP C Compiler
17959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17961 # This bug is HP SR number 8606223364.
17962 if test "$cross_compiling" = yes; then
17963 # Depending upon the size, compute the lo and hi bounds.
17964cat >conftest.$ac_ext <<_ACEOF
17965/* confdefs.h. */
17966_ACEOF
17967cat confdefs.h >>conftest.$ac_ext
17968cat >>conftest.$ac_ext <<_ACEOF
17969/* end confdefs.h. */
17970$ac_includes_default
17971int
17972main ()
17973{
17974static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17975test_array [0] = 0
17976
17977 ;
17978 return 0;
17979}
17980_ACEOF
17981rm -f conftest.$ac_objext
17982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17983 (eval $ac_compile) 2>conftest.er1
a848cd7e 17984 ac_status=$?
ac1cb8d3
VS
17985 grep -v '^ *+' conftest.er1 >conftest.err
17986 rm -f conftest.er1
17987 cat conftest.err >&5
a848cd7e
SC
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } &&
04840eaa
VS
17990 { ac_try='test -z "$ac_c_werror_flag"
17991 || test ! -s conftest.err'
ac1cb8d3
VS
17992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17993 (eval $ac_try) 2>&5
17994 ac_status=$?
17995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17996 (exit $ac_status); }; } &&
17997 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17999 (eval $ac_try) 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; }; then
18003 ac_lo=0 ac_mid=0
18004 while :; do
18005 cat >conftest.$ac_ext <<_ACEOF
18006/* confdefs.h. */
18007_ACEOF
18008cat confdefs.h >>conftest.$ac_ext
18009cat >>conftest.$ac_ext <<_ACEOF
18010/* end confdefs.h. */
18011$ac_includes_default
18012int
18013main ()
18014{
18015static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18016test_array [0] = 0
18017
18018 ;
18019 return 0;
18020}
18021_ACEOF
18022rm -f conftest.$ac_objext
18023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18024 (eval $ac_compile) 2>conftest.er1
a848cd7e 18025 ac_status=$?
ac1cb8d3
VS
18026 grep -v '^ *+' conftest.er1 >conftest.err
18027 rm -f conftest.er1
18028 cat conftest.err >&5
a848cd7e
SC
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } &&
04840eaa
VS
18031 { ac_try='test -z "$ac_c_werror_flag"
18032 || test ! -s conftest.err'
ac1cb8d3
VS
18033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18034 (eval $ac_try) 2>&5
18035 ac_status=$?
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); }; } &&
18038 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18041 ac_status=$?
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; }; then
18044 ac_hi=$ac_mid; break
18045else
18046 echo "$as_me: failed program was:" >&5
18047sed 's/^/| /' conftest.$ac_ext >&5
18048
18049ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18050 if test $ac_lo -le $ac_mid; then
18051 ac_lo= ac_hi=
18052 break
18053 fi
18054 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18055fi
ac1cb8d3 18056rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18057 done
18058else
18059 echo "$as_me: failed program was:" >&5
18060sed 's/^/| /' conftest.$ac_ext >&5
18061
18062cat >conftest.$ac_ext <<_ACEOF
18063/* confdefs.h. */
18064_ACEOF
18065cat confdefs.h >>conftest.$ac_ext
18066cat >>conftest.$ac_ext <<_ACEOF
18067/* end confdefs.h. */
18068$ac_includes_default
18069int
18070main ()
18071{
18072static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
18073test_array [0] = 0
18074
18075 ;
18076 return 0;
18077}
18078_ACEOF
18079rm -f conftest.$ac_objext
18080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18081 (eval $ac_compile) 2>conftest.er1
a848cd7e 18082 ac_status=$?
ac1cb8d3
VS
18083 grep -v '^ *+' conftest.er1 >conftest.err
18084 rm -f conftest.er1
18085 cat conftest.err >&5
a848cd7e
SC
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } &&
04840eaa
VS
18088 { ac_try='test -z "$ac_c_werror_flag"
18089 || test ! -s conftest.err'
ac1cb8d3
VS
18090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18091 (eval $ac_try) 2>&5
18092 ac_status=$?
18093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18094 (exit $ac_status); }; } &&
18095 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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 ac_hi=-1 ac_mid=-1
18102 while :; do
18103 cat >conftest.$ac_ext <<_ACEOF
18104/* confdefs.h. */
18105_ACEOF
18106cat confdefs.h >>conftest.$ac_ext
18107cat >>conftest.$ac_ext <<_ACEOF
18108/* end confdefs.h. */
18109$ac_includes_default
18110int
18111main ()
18112{
18113static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
18114test_array [0] = 0
18115
18116 ;
18117 return 0;
18118}
18119_ACEOF
18120rm -f conftest.$ac_objext
18121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18122 (eval $ac_compile) 2>conftest.er1
a848cd7e 18123 ac_status=$?
ac1cb8d3
VS
18124 grep -v '^ *+' conftest.er1 >conftest.err
18125 rm -f conftest.er1
18126 cat conftest.err >&5
a848cd7e
SC
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } &&
04840eaa
VS
18129 { ac_try='test -z "$ac_c_werror_flag"
18130 || test ! -s conftest.err'
ac1cb8d3
VS
18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18132 (eval $ac_try) 2>&5
18133 ac_status=$?
18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18135 (exit $ac_status); }; } &&
18136 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; }; then
18142 ac_lo=$ac_mid; break
18143else
18144 echo "$as_me: failed program was:" >&5
18145sed 's/^/| /' conftest.$ac_ext >&5
18146
18147ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18148 if test $ac_mid -le $ac_hi; then
18149 ac_lo= ac_hi=
18150 break
18151 fi
18152 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18153fi
ac1cb8d3 18154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18155 done
18156else
18157 echo "$as_me: failed program was:" >&5
18158sed 's/^/| /' conftest.$ac_ext >&5
18159
18160ac_lo= ac_hi=
18161fi
ac1cb8d3 18162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18163fi
ac1cb8d3 18164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18165# Binary search between lo and hi bounds.
18166while test "x$ac_lo" != "x$ac_hi"; do
18167 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18168 cat >conftest.$ac_ext <<_ACEOF
18169/* confdefs.h. */
18170_ACEOF
18171cat confdefs.h >>conftest.$ac_ext
18172cat >>conftest.$ac_ext <<_ACEOF
18173/* end confdefs.h. */
18174$ac_includes_default
18175int
18176main ()
18177{
18178static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
18179test_array [0] = 0
18180
18181 ;
18182 return 0;
18183}
18184_ACEOF
18185rm -f conftest.$ac_objext
18186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18187 (eval $ac_compile) 2>conftest.er1
a848cd7e 18188 ac_status=$?
ac1cb8d3
VS
18189 grep -v '^ *+' conftest.er1 >conftest.err
18190 rm -f conftest.er1
18191 cat conftest.err >&5
a848cd7e
SC
18192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18193 (exit $ac_status); } &&
04840eaa
VS
18194 { ac_try='test -z "$ac_c_werror_flag"
18195 || test ! -s conftest.err'
ac1cb8d3
VS
18196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18197 (eval $ac_try) 2>&5
18198 ac_status=$?
18199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200 (exit $ac_status); }; } &&
18201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18204 ac_status=$?
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; }; then
18207 ac_hi=$ac_mid
18208else
18209 echo "$as_me: failed program was:" >&5
18210sed 's/^/| /' conftest.$ac_ext >&5
18211
18212ac_lo=`expr '(' $ac_mid ')' + 1`
18213fi
ac1cb8d3 18214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18215done
18216case $ac_lo in
18217?*) ac_cv_sizeof_long_long=$ac_lo;;
18218'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18219See \`config.log' for more details." >&5
18220echo "$as_me: error: cannot compute sizeof (long long), 77
18221See \`config.log' for more details." >&2;}
18222 { (exit 1); exit 1; }; } ;;
18223esac
18224else
18225 if test "$cross_compiling" = yes; then
04840eaa
VS
18226 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18227See \`config.log' for more details." >&5
18228echo "$as_me: error: cannot run test program while cross compiling
18229See \`config.log' for more details." >&2;}
a848cd7e
SC
18230 { (exit 1); exit 1; }; }
18231else
18232 cat >conftest.$ac_ext <<_ACEOF
18233/* confdefs.h. */
18234_ACEOF
18235cat confdefs.h >>conftest.$ac_ext
18236cat >>conftest.$ac_ext <<_ACEOF
18237/* end confdefs.h. */
18238$ac_includes_default
18239long longval () { return (long) (sizeof (long long)); }
18240unsigned long ulongval () { return (long) (sizeof (long long)); }
18241#include <stdio.h>
18242#include <stdlib.h>
18243int
18244main ()
18245{
18246
18247 FILE *f = fopen ("conftest.val", "w");
18248 if (! f)
18249 exit (1);
18250 if (((long) (sizeof (long long))) < 0)
18251 {
18252 long i = longval ();
18253 if (i != ((long) (sizeof (long long))))
18254 exit (1);
18255 fprintf (f, "%ld\n", i);
18256 }
18257 else
18258 {
18259 unsigned long i = ulongval ();
18260 if (i != ((long) (sizeof (long long))))
18261 exit (1);
18262 fprintf (f, "%lu\n", i);
18263 }
18264 exit (ferror (f) || fclose (f) != 0);
18265
18266 ;
18267 return 0;
18268}
18269_ACEOF
18270rm -f conftest$ac_exeext
18271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18272 (eval $ac_link) 2>&5
18273 ac_status=$?
18274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18277 (eval $ac_try) 2>&5
18278 ac_status=$?
18279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280 (exit $ac_status); }; }; then
18281 ac_cv_sizeof_long_long=`cat conftest.val`
18282else
18283 echo "$as_me: program exited with status $ac_status" >&5
18284echo "$as_me: failed program was:" >&5
18285sed 's/^/| /' conftest.$ac_ext >&5
18286
18287( exit $ac_status )
18288{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
18289See \`config.log' for more details." >&5
18290echo "$as_me: error: cannot compute sizeof (long long), 77
18291See \`config.log' for more details." >&2;}
18292 { (exit 1); exit 1; }; }
18293fi
ac1cb8d3 18294rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18295fi
18296fi
18297rm -f conftest.val
18298else
18299 ac_cv_sizeof_long_long=0
18300fi
18301fi
18302echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
18303echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
18304cat >>confdefs.h <<_ACEOF
18305#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
18306_ACEOF
18307
18308
18309esac
18310
18311echo "$as_me:$LINENO: checking size of wchar_t" >&5
18312echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
18313if test "${wx_cv_sizeof_wchar_t+set}" = set; then
18314 echo $ECHO_N "(cached) $ECHO_C" >&6
18315else
18316
18317 if test "$cross_compiling" = yes; then
18318
18319 case "${host}" in
18320 *-pc-msdosdjgpp )
18321 wx_cv_sizeof_wchar_t=0
18322 ;;
18323 * )
18324 wx_cv_sizeof_wchar_t=4
18325 ;;
18326 esac
18327
18328
18329else
18330 cat >conftest.$ac_ext <<_ACEOF
18331/* confdefs.h. */
18332_ACEOF
18333cat confdefs.h >>conftest.$ac_ext
18334cat >>conftest.$ac_ext <<_ACEOF
18335/* end confdefs.h. */
18336
18337 /* DJGPP only has fake wchar_t: */
18338 #ifdef __DJGPP__
18339 # error "fake wchar_t"
18340 #endif
18341 #ifdef HAVE_WCHAR_H
18342 # ifdef __CYGWIN__
18343 # include <stddef.h>
18344 # endif
18345 # include <wchar.h>
18346 #endif
18347 #ifdef HAVE_STDLIB_H
18348 # include <stdlib.h>
18349 #endif
18350 #include <stdio.h>
18351 int main()
18352 {
18353 FILE *f=fopen("conftestval", "w");
18354 if (!f) exit(1);
18355 fprintf(f, "%i", sizeof(wchar_t));
18356 exit(0);
18357 }
18358
18359_ACEOF
18360rm -f conftest$ac_exeext
18361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18362 (eval $ac_link) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; }; then
18371 wx_cv_sizeof_wchar_t=`cat conftestval`
18372else
18373 echo "$as_me: program exited with status $ac_status" >&5
18374echo "$as_me: failed program was:" >&5
18375sed 's/^/| /' conftest.$ac_ext >&5
18376
18377( exit $ac_status )
18378wx_cv_sizeof_wchar_t=0
18379fi
ac1cb8d3 18380rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18381fi
18382
18383fi
18384echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18385echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
18386
18387cat >>confdefs.h <<_ACEOF
18388#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
18389_ACEOF
18390
18391
ba3d13e1
VZ
18392echo "$as_me:$LINENO: checking for va_copy" >&5
18393echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
18394if test "${wx_cv_func_va_copy+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18396else
18397
18398 cat >conftest.$ac_ext <<_ACEOF
18399
18400 #include <stdarg.h>
18401 void foo(char *f, ...)
18402 {
18403 va_list ap1, ap2;
18404 va_start(ap1, f);
18405 va_copy(ap2, ap1);
18406 va_end(ap2);
18407 va_end(ap1);
18408 }
5886b072
VZ
18409 int main()
18410 {
b902e639
VZ
18411 foo("hi", 17);
18412 return 0;
5886b072 18413 }
ba3d13e1
VZ
18414_ACEOF
18415rm -f conftest.$ac_objext conftest$ac_exeext
18416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18417 (eval $ac_link) 2>conftest.er1
18418 ac_status=$?
18419 grep -v '^ *+' conftest.er1 >conftest.err
18420 rm -f conftest.er1
18421 cat conftest.err >&5
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18423 (exit $ac_status); } &&
04840eaa
VS
18424 { ac_try='test -z "$ac_c_werror_flag"
18425 || test ! -s conftest.err'
ba3d13e1
VZ
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18428 ac_status=$?
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; } &&
18431 { ac_try='test -s conftest$ac_exeext'
18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18433 (eval $ac_try) 2>&5
18434 ac_status=$?
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; }; then
18437 wx_cv_func_va_copy=yes
18438else
18439 echo "$as_me: failed program was:" >&5
18440sed 's/^/| /' conftest.$ac_ext >&5
18441
18442wx_cv_func_va_copy=no
18443
18444fi
18445rm -f conftest.err conftest.$ac_objext \
18446 conftest$ac_exeext conftest.$ac_ext
18447
18448
18449fi
18450echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
18451echo "${ECHO_T}$wx_cv_func_va_copy" >&6
18452
18453if test $wx_cv_func_va_copy = "yes"; then
18454 cat >>confdefs.h <<\_ACEOF
18455#define HAVE_VA_COPY 1
18456_ACEOF
18457
18458else
18459 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
18460echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
18461if test "${wx_cv_type_va_list_lvalue+set}" = set; then
18462 echo $ECHO_N "(cached) $ECHO_C" >&6
18463else
18464
18465 if test "$cross_compiling" = yes; then
18466 wx_cv_type_va_list_lvalue=yes
18467
18468else
18469 cat >conftest.$ac_ext <<_ACEOF
18470
18471 #include <stdarg.h>
18472 int foo(char *f, ...)
18473 {
18474 va_list ap1, ap2;
18475 va_start(ap1, f);
18476 ap2 = ap1;
18477 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
18478 return 1;
18479 va_end(ap2);
18480 va_end(ap1);
18481 return 0;
18482 }
18483 int main()
18484 {
18485 return foo("hi", 17);
18486 }
18487_ACEOF
18488rm -f conftest$ac_exeext
18489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18490 (eval $ac_link) 2>&5
18491 ac_status=$?
18492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18495 (eval $ac_try) 2>&5
18496 ac_status=$?
18497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18498 (exit $ac_status); }; }; then
18499 wx_cv_type_va_list_lvalue=yes
18500else
18501 echo "$as_me: program exited with status $ac_status" >&5
18502echo "$as_me: failed program was:" >&5
18503sed 's/^/| /' conftest.$ac_ext >&5
18504
18505( exit $ac_status )
18506wx_cv_type_va_list_lvalue=no
18507fi
18508rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18509fi
18510
18511
18512fi
18513echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
18514echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
18515
18516 if test $wx_cv_type_va_list_lvalue != "yes"; then
18517 cat >>confdefs.h <<\_ACEOF
18518#define VA_LIST_IS_ARRAY 1
18519_ACEOF
18520
18521 fi
18522fi
18523
a848cd7e
SC
18524# Check whether --enable-largefile or --disable-largefile was given.
18525if test "${enable_largefile+set}" = set; then
18526 enableval="$enable_largefile"
18527
18528fi;
18529if test "$enable_largefile" != no; then
18530 wx_largefile=no
18531
18532 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18533echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18534if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18535 echo $ECHO_N "(cached) $ECHO_C" >&6
18536else
18537
18538 cat >conftest.$ac_ext <<_ACEOF
18539/* confdefs.h. */
18540_ACEOF
18541cat confdefs.h >>conftest.$ac_ext
18542cat >>conftest.$ac_ext <<_ACEOF
18543/* end confdefs.h. */
18544#define _FILE_OFFSET_BITS 64
18545 #include <sys/types.h>
18546int
18547main ()
18548{
18549typedef struct {
18550 unsigned int field: sizeof(off_t) == 8;
18551} wxlf;
18552
18553 ;
18554 return 0;
18555}
18556_ACEOF
18557rm -f conftest.$ac_objext
18558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18559 (eval $ac_compile) 2>conftest.er1
a848cd7e 18560 ac_status=$?
ac1cb8d3
VS
18561 grep -v '^ *+' conftest.er1 >conftest.err
18562 rm -f conftest.er1
18563 cat conftest.err >&5
a848cd7e
SC
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); } &&
04840eaa
VS
18566 { ac_try='test -z "$ac_c_werror_flag"
18567 || test ! -s conftest.err'
ac1cb8d3
VS
18568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18569 (eval $ac_try) 2>&5
18570 ac_status=$?
18571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18572 (exit $ac_status); }; } &&
18573 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18575 (eval $ac_try) 2>&5
18576 ac_status=$?
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); }; }; then
18579 ac_cv_sys_file_offset_bits=64
18580else
18581 echo "$as_me: failed program was:" >&5
18582sed 's/^/| /' conftest.$ac_ext >&5
18583
18584ac_cv_sys_file_offset_bits=no
18585fi
ac1cb8d3 18586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18587
18588
18589fi
18590echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18591echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
18592
18593 if test "$ac_cv_sys_file_offset_bits" != no; then
18594 wx_largefile=yes
18595 cat >>confdefs.h <<_ACEOF
18596#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18597_ACEOF
18598
18599 fi
18600
18601 if test "x$wx_largefile" != "xyes"; then
18602
18603 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18604echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18605if test "${ac_cv_sys_large_files+set}" = set; then
18606 echo $ECHO_N "(cached) $ECHO_C" >&6
18607else
18608
18609 cat >conftest.$ac_ext <<_ACEOF
18610/* confdefs.h. */
18611_ACEOF
18612cat confdefs.h >>conftest.$ac_ext
18613cat >>conftest.$ac_ext <<_ACEOF
18614/* end confdefs.h. */
18615#define _LARGE_FILES 1
18616 #include <sys/types.h>
18617int
18618main ()
18619{
18620typedef struct {
18621 unsigned int field: sizeof(off_t) == 8;
18622} wxlf;
18623
18624 ;
18625 return 0;
18626}
18627_ACEOF
18628rm -f conftest.$ac_objext
18629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18630 (eval $ac_compile) 2>conftest.er1
a848cd7e 18631 ac_status=$?
ac1cb8d3
VS
18632 grep -v '^ *+' conftest.er1 >conftest.err
18633 rm -f conftest.er1
18634 cat conftest.err >&5
a848cd7e
SC
18635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18636 (exit $ac_status); } &&
04840eaa
VS
18637 { ac_try='test -z "$ac_c_werror_flag"
18638 || test ! -s conftest.err'
ac1cb8d3
VS
18639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18640 (eval $ac_try) 2>&5
18641 ac_status=$?
18642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18643 (exit $ac_status); }; } &&
18644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18646 (eval $ac_try) 2>&5
18647 ac_status=$?
18648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18649 (exit $ac_status); }; }; then
18650 ac_cv_sys_large_files=1
18651else
18652 echo "$as_me: failed program was:" >&5
18653sed 's/^/| /' conftest.$ac_ext >&5
18654
18655ac_cv_sys_large_files=no
18656fi
ac1cb8d3 18657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18658
18659
18660fi
18661echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18662echo "${ECHO_T}$ac_cv_sys_large_files" >&6
18663
18664 if test "$ac_cv_sys_large_files" != no; then
18665 wx_largefile=yes
18666 cat >>confdefs.h <<_ACEOF
18667#define _LARGE_FILES $ac_cv_sys_large_files
18668_ACEOF
18669
18670 fi
18671
18672 fi
18673
18674 echo "$as_me:$LINENO: checking if large file support is available" >&5
18675echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
18676 if test "x$wx_largefile" = "xyes"; then
18677 cat >>confdefs.h <<\_ACEOF
18678#define HAVE_LARGEFILE_SUPPORT 1
18679_ACEOF
18680
18681 fi
18682 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18683echo "${ECHO_T}$wx_largefile" >&6
18684fi
18685
5b674b9d
DE
18686
18687if test "x$wx_largefile" = "xyes"; then
18688 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18689 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
18690 else
18691 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
18692 fi
18693 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
18694echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
18695if test "${ac_cv_sys_largefile_source+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18697else
18698 while :; do
18699 ac_cv_sys_largefile_source=no
18700 cat >conftest.$ac_ext <<_ACEOF
18701/* confdefs.h. */
18702_ACEOF
18703cat confdefs.h >>conftest.$ac_ext
18704cat >>conftest.$ac_ext <<_ACEOF
18705/* end confdefs.h. */
18706#include <stdio.h>
18707int
18708main ()
18709{
18710return !fseeko;
18711 ;
18712 return 0;
18713}
18714_ACEOF
18715rm -f conftest.$ac_objext
18716if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18717 (eval $ac_compile) 2>conftest.er1
18718 ac_status=$?
18719 grep -v '^ *+' conftest.er1 >conftest.err
18720 rm -f conftest.er1
18721 cat conftest.err >&5
18722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); } &&
04840eaa
VS
18724 { ac_try='test -z "$ac_c_werror_flag"
18725 || test ! -s conftest.err'
5294a27e
VZ
18726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18727 (eval $ac_try) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); }; } &&
18731 { ac_try='test -s conftest.$ac_objext'
18732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18733 (eval $ac_try) 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 break
18738else
18739 echo "$as_me: failed program was:" >&5
18740sed 's/^/| /' conftest.$ac_ext >&5
18741
18742fi
18743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18744 cat >conftest.$ac_ext <<_ACEOF
18745/* confdefs.h. */
18746_ACEOF
18747cat confdefs.h >>conftest.$ac_ext
18748cat >>conftest.$ac_ext <<_ACEOF
18749/* end confdefs.h. */
18750#define _LARGEFILE_SOURCE 1
18751#include <stdio.h>
18752int
18753main ()
18754{
18755return !fseeko;
18756 ;
18757 return 0;
18758}
18759_ACEOF
18760rm -f conftest.$ac_objext
18761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18762 (eval $ac_compile) 2>conftest.er1
18763 ac_status=$?
18764 grep -v '^ *+' conftest.er1 >conftest.err
18765 rm -f conftest.er1
18766 cat conftest.err >&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); } &&
04840eaa
VS
18769 { ac_try='test -z "$ac_c_werror_flag"
18770 || test ! -s conftest.err'
5294a27e
VZ
18771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18772 (eval $ac_try) 2>&5
18773 ac_status=$?
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); }; } &&
18776 { ac_try='test -s conftest.$ac_objext'
18777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18778 (eval $ac_try) 2>&5
18779 ac_status=$?
18780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781 (exit $ac_status); }; }; then
18782 ac_cv_sys_largefile_source=1; break
18783else
18784 echo "$as_me: failed program was:" >&5
18785sed 's/^/| /' conftest.$ac_ext >&5
18786
18787fi
18788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18789 break
18790done
18791fi
18792echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18793echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
18794if test "$ac_cv_sys_largefile_source" != no; then
18795
18796cat >>confdefs.h <<_ACEOF
18797#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18798_ACEOF
18799
18800fi
18801rm -f conftest*
18802
18803# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18804# in glibc 2.1.3, but that breaks too many other things.
18805# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18806echo "$as_me:$LINENO: checking for fseeko" >&5
18807echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
18808if test "${ac_cv_func_fseeko+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18810else
18811 cat >conftest.$ac_ext <<_ACEOF
18812/* confdefs.h. */
18813_ACEOF
18814cat confdefs.h >>conftest.$ac_ext
18815cat >>conftest.$ac_ext <<_ACEOF
18816/* end confdefs.h. */
18817#include <stdio.h>
18818int
18819main ()
18820{
18821return fseeko && fseeko (stdin, 0, 0);
18822 ;
18823 return 0;
18824}
18825_ACEOF
18826rm -f conftest.$ac_objext conftest$ac_exeext
18827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18828 (eval $ac_link) 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } &&
04840eaa
VS
18835 { ac_try='test -z "$ac_c_werror_flag"
18836 || test ! -s conftest.err'
5294a27e
VZ
18837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18838 (eval $ac_try) 2>&5
18839 ac_status=$?
18840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18841 (exit $ac_status); }; } &&
18842 { ac_try='test -s conftest$ac_exeext'
18843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18844 (eval $ac_try) 2>&5
18845 ac_status=$?
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; }; then
18848 ac_cv_func_fseeko=yes
18849else
18850 echo "$as_me: failed program was:" >&5
18851sed 's/^/| /' conftest.$ac_ext >&5
18852
18853ac_cv_func_fseeko=no
18854fi
18855rm -f conftest.err conftest.$ac_objext \
18856 conftest$ac_exeext conftest.$ac_ext
18857fi
18858echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
18859echo "${ECHO_T}$ac_cv_func_fseeko" >&6
18860if test $ac_cv_func_fseeko = yes; then
18861
18862cat >>confdefs.h <<\_ACEOF
18863#define HAVE_FSEEKO 1
18864_ACEOF
18865
18866fi
18867
5b674b9d
DE
18868 if test "$ac_cv_sys_largefile_source" != no; then
18869 WX_LARGEFILE_FLAGS="$WX_LARGEFILE_FLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e
SC
18870 fi
18871 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
18872fi
18873
18874echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18875echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18876if test "${ac_cv_c_bigendian+set}" = set; then
18877 echo $ECHO_N "(cached) $ECHO_C" >&6
18878else
18879 ac_cv_c_bigendian=unknown
18880# See if sys/param.h defines the BYTE_ORDER macro.
18881cat >conftest.$ac_ext <<_ACEOF
18882/* confdefs.h. */
18883_ACEOF
18884cat confdefs.h >>conftest.$ac_ext
18885cat >>conftest.$ac_ext <<_ACEOF
18886/* end confdefs.h. */
18887#include <sys/types.h>
18888#include <sys/param.h>
18889int
18890main ()
18891{
18892
18893#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18894 bogus endian macros
18895#endif
18896 ;
18897 return 0;
18898}
18899_ACEOF
18900rm -f conftest.$ac_objext
18901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18902 (eval $ac_compile) 2>conftest.er1
a848cd7e 18903 ac_status=$?
ac1cb8d3
VS
18904 grep -v '^ *+' conftest.er1 >conftest.err
18905 rm -f conftest.er1
18906 cat conftest.err >&5
a848cd7e
SC
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); } &&
04840eaa
VS
18909 { ac_try='test -z "$ac_c_werror_flag"
18910 || test ! -s conftest.err'
ac1cb8d3
VS
18911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18912 (eval $ac_try) 2>&5
18913 ac_status=$?
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); }; } &&
18916 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18918 (eval $ac_try) 2>&5
18919 ac_status=$?
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; }; then
18922 # It does; now see whether it defined to BIG_ENDIAN or not.
18923cat >conftest.$ac_ext <<_ACEOF
18924/* confdefs.h. */
18925_ACEOF
18926cat confdefs.h >>conftest.$ac_ext
18927cat >>conftest.$ac_ext <<_ACEOF
18928/* end confdefs.h. */
18929#include <sys/types.h>
18930#include <sys/param.h>
18931int
18932main ()
18933{
18934
18935#if BYTE_ORDER != BIG_ENDIAN
18936 not big endian
18937#endif
18938 ;
18939 return 0;
18940}
18941_ACEOF
18942rm -f conftest.$ac_objext
18943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18944 (eval $ac_compile) 2>conftest.er1
a848cd7e 18945 ac_status=$?
ac1cb8d3
VS
18946 grep -v '^ *+' conftest.er1 >conftest.err
18947 rm -f conftest.er1
18948 cat conftest.err >&5
a848cd7e
SC
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); } &&
04840eaa
VS
18951 { ac_try='test -z "$ac_c_werror_flag"
18952 || test ! -s conftest.err'
ac1cb8d3
VS
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; } &&
18958 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18960 (eval $ac_try) 2>&5
18961 ac_status=$?
18962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18963 (exit $ac_status); }; }; then
18964 ac_cv_c_bigendian=yes
18965else
18966 echo "$as_me: failed program was:" >&5
18967sed 's/^/| /' conftest.$ac_ext >&5
18968
18969ac_cv_c_bigendian=no
18970fi
ac1cb8d3 18971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18972else
18973 echo "$as_me: failed program was:" >&5
18974sed 's/^/| /' conftest.$ac_ext >&5
18975
18976fi
ac1cb8d3 18977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18978if test $ac_cv_c_bigendian = unknown; then
18979if test "$cross_compiling" = yes; then
18980 ac_cv_c_bigendian=unknown
18981else
18982 cat >conftest.$ac_ext <<_ACEOF
18983/* confdefs.h. */
18984_ACEOF
18985cat confdefs.h >>conftest.$ac_ext
18986cat >>conftest.$ac_ext <<_ACEOF
18987/* end confdefs.h. */
18988main () {
18989 /* Are we little or big endian? From Harbison&Steele. */
18990 union
18991 {
18992 long l;
18993 char c[sizeof (long)];
18994 } u;
18995 u.l = 1;
18996 exit (u.c[sizeof (long) - 1] == 1);
18997}
18998_ACEOF
18999rm -f conftest$ac_exeext
19000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19001 (eval $ac_link) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19007 ac_status=$?
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; }; then
19010 ac_cv_c_bigendian=no
19011else
19012 echo "$as_me: program exited with status $ac_status" >&5
19013echo "$as_me: failed program was:" >&5
19014sed 's/^/| /' conftest.$ac_ext >&5
19015
19016( exit $ac_status )
19017ac_cv_c_bigendian=yes
19018fi
ac1cb8d3 19019rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19020fi
19021fi
19022fi
19023echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
19024echo "${ECHO_T}$ac_cv_c_bigendian" >&6
19025if test $ac_cv_c_bigendian = unknown; then
19026 { 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
19027echo "$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;}
19028fi
19029if test $ac_cv_c_bigendian = yes; then
19030 cat >>confdefs.h <<\_ACEOF
19031#define WORDS_BIGENDIAN 1
19032_ACEOF
19033
19034fi
19035
19036
19037ac_ext=cc
19038ac_cpp='$CXXCPP $CPPFLAGS'
19039ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19040ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19041ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19042echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
19043echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
19044if test -z "$CXXCPP"; then
19045 if test "${ac_cv_prog_CXXCPP+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
19047else
19048 # Double quotes because CXXCPP needs to be expanded
19049 for CXXCPP in "$CXX -E" "/lib/cpp"
19050 do
19051 ac_preproc_ok=false
19052for ac_cxx_preproc_warn_flag in '' yes
19053do
19054 # Use a header file that comes with gcc, so configuring glibc
19055 # with a fresh cross-compiler works.
19056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19057 # <limits.h> exists even on freestanding compilers.
19058 # On the NeXT, cc -E runs the code through the compiler's parser,
19059 # not just through cpp. "Syntax error" is here to catch this case.
19060 cat >conftest.$ac_ext <<_ACEOF
19061/* confdefs.h. */
19062_ACEOF
19063cat confdefs.h >>conftest.$ac_ext
19064cat >>conftest.$ac_ext <<_ACEOF
19065/* end confdefs.h. */
19066#ifdef __STDC__
19067# include <limits.h>
19068#else
19069# include <assert.h>
19070#endif
ac1cb8d3 19071 Syntax error
a848cd7e
SC
19072_ACEOF
19073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19075 ac_status=$?
19076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } >/dev/null; then
19081 if test -s conftest.err; then
19082 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19083 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19084 else
19085 ac_cpp_err=
19086 fi
19087else
19088 ac_cpp_err=yes
19089fi
19090if test -z "$ac_cpp_err"; then
19091 :
19092else
19093 echo "$as_me: failed program was:" >&5
19094sed 's/^/| /' conftest.$ac_ext >&5
19095
19096 # Broken: fails on valid input.
19097continue
19098fi
19099rm -f conftest.err conftest.$ac_ext
19100
19101 # OK, works on sane cases. Now check whether non-existent headers
19102 # can be detected and how.
19103 cat >conftest.$ac_ext <<_ACEOF
19104/* confdefs.h. */
19105_ACEOF
19106cat confdefs.h >>conftest.$ac_ext
19107cat >>conftest.$ac_ext <<_ACEOF
19108/* end confdefs.h. */
19109#include <ac_nonexistent.h>
19110_ACEOF
19111if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19113 ac_status=$?
19114 grep -v '^ *+' conftest.er1 >conftest.err
19115 rm -f conftest.er1
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } >/dev/null; then
19119 if test -s conftest.err; then
19120 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19121 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19122 else
19123 ac_cpp_err=
19124 fi
19125else
19126 ac_cpp_err=yes
19127fi
19128if test -z "$ac_cpp_err"; then
19129 # Broken: success on invalid input.
19130continue
19131else
19132 echo "$as_me: failed program was:" >&5
19133sed 's/^/| /' conftest.$ac_ext >&5
19134
19135 # Passes both tests.
19136ac_preproc_ok=:
19137break
19138fi
19139rm -f conftest.err conftest.$ac_ext
19140
19141done
19142# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19143rm -f conftest.err conftest.$ac_ext
19144if $ac_preproc_ok; then
19145 break
19146fi
19147
19148 done
19149 ac_cv_prog_CXXCPP=$CXXCPP
19150
19151fi
19152 CXXCPP=$ac_cv_prog_CXXCPP
19153else
19154 ac_cv_prog_CXXCPP=$CXXCPP
19155fi
19156echo "$as_me:$LINENO: result: $CXXCPP" >&5
19157echo "${ECHO_T}$CXXCPP" >&6
19158ac_preproc_ok=false
19159for ac_cxx_preproc_warn_flag in '' yes
19160do
19161 # Use a header file that comes with gcc, so configuring glibc
19162 # with a fresh cross-compiler works.
19163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19164 # <limits.h> exists even on freestanding compilers.
19165 # On the NeXT, cc -E runs the code through the compiler's parser,
19166 # not just through cpp. "Syntax error" is here to catch this case.
19167 cat >conftest.$ac_ext <<_ACEOF
19168/* confdefs.h. */
19169_ACEOF
19170cat confdefs.h >>conftest.$ac_ext
19171cat >>conftest.$ac_ext <<_ACEOF
19172/* end confdefs.h. */
19173#ifdef __STDC__
19174# include <limits.h>
19175#else
19176# include <assert.h>
19177#endif
ac1cb8d3 19178 Syntax error
a848cd7e
SC
19179_ACEOF
19180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19182 ac_status=$?
19183 grep -v '^ *+' conftest.er1 >conftest.err
19184 rm -f conftest.er1
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } >/dev/null; then
19188 if test -s conftest.err; then
19189 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19190 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19191 else
19192 ac_cpp_err=
19193 fi
19194else
19195 ac_cpp_err=yes
19196fi
19197if test -z "$ac_cpp_err"; then
19198 :
19199else
19200 echo "$as_me: failed program was:" >&5
19201sed 's/^/| /' conftest.$ac_ext >&5
19202
19203 # Broken: fails on valid input.
19204continue
19205fi
19206rm -f conftest.err conftest.$ac_ext
19207
19208 # OK, works on sane cases. Now check whether non-existent headers
19209 # can be detected and how.
19210 cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216#include <ac_nonexistent.h>
19217_ACEOF
19218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19220 ac_status=$?
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } >/dev/null; then
19226 if test -s conftest.err; then
19227 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19228 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19229 else
19230 ac_cpp_err=
19231 fi
19232else
19233 ac_cpp_err=yes
19234fi
19235if test -z "$ac_cpp_err"; then
19236 # Broken: success on invalid input.
19237continue
19238else
19239 echo "$as_me: failed program was:" >&5
19240sed 's/^/| /' conftest.$ac_ext >&5
19241
19242 # Passes both tests.
19243ac_preproc_ok=:
19244break
19245fi
19246rm -f conftest.err conftest.$ac_ext
19247
19248done
19249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19250rm -f conftest.err conftest.$ac_ext
19251if $ac_preproc_ok; then
19252 :
19253else
19254 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19255See \`config.log' for more details." >&5
19256echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
19257See \`config.log' for more details." >&2;}
19258 { (exit 1); exit 1; }; }
19259fi
19260
19261ac_ext=cc
19262ac_cpp='$CXXCPP $CPPFLAGS'
19263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19266
19267
19268
19269
19270
19271 ac_ext=cc
19272ac_cpp='$CXXCPP $CPPFLAGS'
19273ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19274ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19275ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19276
19277
19278
19279for ac_header in iostream
19280do
19281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19282if eval "test \"\${$as_ac_Header+set}\" = set"; then
19283 echo "$as_me:$LINENO: checking for $ac_header" >&5
19284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19285if eval "test \"\${$as_ac_Header+set}\" = set"; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19287fi
19288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19290else
19291 # Is the header compilable?
19292echo "$as_me:$LINENO: checking $ac_header usability" >&5
19293echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19294cat >conftest.$ac_ext <<_ACEOF
19295/* confdefs.h. */
19296_ACEOF
19297cat confdefs.h >>conftest.$ac_ext
19298cat >>conftest.$ac_ext <<_ACEOF
19299/* end confdefs.h. */
19300$ac_includes_default
19301#include <$ac_header>
19302_ACEOF
19303rm -f conftest.$ac_objext
19304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19305 (eval $ac_compile) 2>conftest.er1
a848cd7e 19306 ac_status=$?
ac1cb8d3
VS
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
a848cd7e
SC
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } &&
04840eaa
VS
19312 { ac_try='test -z "$ac_cxx_werror_flag"
19313 || test ! -s conftest.err'
ac1cb8d3
VS
19314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19315 (eval $ac_try) 2>&5
19316 ac_status=$?
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); }; } &&
19319 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19321 (eval $ac_try) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); }; }; then
19325 ac_header_compiler=yes
19326else
19327 echo "$as_me: failed program was:" >&5
19328sed 's/^/| /' conftest.$ac_ext >&5
19329
19330ac_header_compiler=no
19331fi
ac1cb8d3 19332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19334echo "${ECHO_T}$ac_header_compiler" >&6
19335
19336# Is the header present?
19337echo "$as_me:$LINENO: checking $ac_header presence" >&5
19338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19339cat >conftest.$ac_ext <<_ACEOF
19340/* confdefs.h. */
19341_ACEOF
19342cat confdefs.h >>conftest.$ac_ext
19343cat >>conftest.$ac_ext <<_ACEOF
19344/* end confdefs.h. */
19345#include <$ac_header>
19346_ACEOF
19347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } >/dev/null; then
19355 if test -s conftest.err; then
19356 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 19357 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
19358 else
19359 ac_cpp_err=
19360 fi
19361else
19362 ac_cpp_err=yes
19363fi
19364if test -z "$ac_cpp_err"; then
19365 ac_header_preproc=yes
19366else
19367 echo "$as_me: failed program was:" >&5
19368sed 's/^/| /' conftest.$ac_ext >&5
19369
19370 ac_header_preproc=no
19371fi
19372rm -f conftest.err conftest.$ac_ext
19373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19374echo "${ECHO_T}$ac_header_preproc" >&6
19375
19376# So? What about this header?
ac1cb8d3
VS
19377case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
19378 yes:no: )
a848cd7e
SC
19379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
19381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19383 ac_header_preproc=yes
a848cd7e 19384 ;;
ac1cb8d3 19385 no:yes:* )
a848cd7e
SC
19386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
19388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19389echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19393echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
19394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
19396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
19398 (
19399 cat <<\_ASBOX
ac1cb8d3
VS
19400## ----------------------------------------- ##
19401## Report this to wx-dev@lists.wxwidgets.org ##
19402## ----------------------------------------- ##
a848cd7e
SC
19403_ASBOX
19404 ) |
19405 sed "s/^/$as_me: WARNING: /" >&2
19406 ;;
19407esac
19408echo "$as_me:$LINENO: checking for $ac_header" >&5
19409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19410if eval "test \"\${$as_ac_Header+set}\" = set"; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19412else
ac1cb8d3 19413 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
19414fi
19415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19417
19418fi
19419if test `eval echo '${'$as_ac_Header'}'` = yes; then
19420 cat >>confdefs.h <<_ACEOF
19421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19422_ACEOF
19423
19424fi
19425
19426done
19427
19428
19429 if test "$ac_cv_header_iostream" = "yes" ; then
19430 :
19431 else
19432 cat >>confdefs.h <<\_ACEOF
19433#define wxUSE_IOSTREAMH 1
19434_ACEOF
19435
19436 fi
19437
19438 ac_ext=c
19439ac_cpp='$CPP $CPPFLAGS'
19440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19442ac_compiler_gnu=$ac_cv_c_compiler_gnu
19443
19444
19445
19446
19447 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
19448echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
19449if test "${wx_cv_cpp_bool+set}" = set; then
19450 echo $ECHO_N "(cached) $ECHO_C" >&6
19451else
19452
19453
19454
19455 ac_ext=cc
19456ac_cpp='$CXXCPP $CPPFLAGS'
19457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19460
19461
19462 cat >conftest.$ac_ext <<_ACEOF
19463/* confdefs.h. */
19464_ACEOF
19465cat confdefs.h >>conftest.$ac_ext
19466cat >>conftest.$ac_ext <<_ACEOF
19467/* end confdefs.h. */
19468
19469
19470int
19471main ()
19472{
19473
19474 bool b = true;
19475
19476 return 0;
19477
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); } &&
04840eaa
VS
19491 { ac_try='test -z "$ac_cxx_werror_flag"
19492 || test ! -s conftest.err'
ac1cb8d3
VS
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19495 ac_status=$?
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; } &&
19498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; }; then
19504
19505 wx_cv_cpp_bool=yes
19506
19507else
19508 echo "$as_me: failed program was:" >&5
19509sed 's/^/| /' conftest.$ac_ext >&5
19510
19511
19512 wx_cv_cpp_bool=no
19513
19514
19515fi
ac1cb8d3 19516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19517
19518 ac_ext=c
19519ac_cpp='$CPP $CPPFLAGS'
19520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19522ac_compiler_gnu=$ac_cv_c_compiler_gnu
19523
19524
19525fi
19526echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
19527echo "${ECHO_T}$wx_cv_cpp_bool" >&6
19528
19529 if test "$wx_cv_cpp_bool" = "yes"; then
19530 cat >>confdefs.h <<\_ACEOF
19531#define HAVE_BOOL 1
19532_ACEOF
19533
19534 fi
19535
19536
19537
19538 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
19539echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
19540if test "${wx_cv_explicit+set}" = set; then
19541 echo $ECHO_N "(cached) $ECHO_C" >&6
19542else
19543
19544
19545
19546 ac_ext=cc
19547ac_cpp='$CXXCPP $CPPFLAGS'
19548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19551
19552
19553 cat >conftest.$ac_ext <<_ACEOF
19554/* confdefs.h. */
19555_ACEOF
19556cat confdefs.h >>conftest.$ac_ext
19557cat >>conftest.$ac_ext <<_ACEOF
19558/* end confdefs.h. */
19559
19560 class Foo { public: explicit Foo(int) {} };
19561
19562int
19563main ()
19564{
19565
19566 return 0;
19567
19568 ;
19569 return 0;
19570}
19571_ACEOF
19572rm -f conftest.$ac_objext
19573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19574 (eval $ac_compile) 2>conftest.er1
a848cd7e 19575 ac_status=$?
ac1cb8d3
VS
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
a848cd7e
SC
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } &&
04840eaa
VS
19581 { ac_try='test -z "$ac_cxx_werror_flag"
19582 || test ! -s conftest.err'
ac1cb8d3
VS
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; } &&
19588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; }; then
19594
19595 cat >conftest.$ac_ext <<_ACEOF
19596/* confdefs.h. */
19597_ACEOF
19598cat confdefs.h >>conftest.$ac_ext
19599cat >>conftest.$ac_ext <<_ACEOF
19600/* end confdefs.h. */
19601
19602 class Foo { public: explicit Foo(int) {} };
19603 static void TakeFoo(const Foo& foo) { }
19604
19605int
19606main ()
19607{
19608
19609 TakeFoo(17);
19610 return 0;
19611
19612 ;
19613 return 0;
19614}
19615_ACEOF
19616rm -f conftest.$ac_objext
19617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19618 (eval $ac_compile) 2>conftest.er1
a848cd7e 19619 ac_status=$?
ac1cb8d3
VS
19620 grep -v '^ *+' conftest.er1 >conftest.err
19621 rm -f conftest.er1
19622 cat conftest.err >&5
a848cd7e
SC
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); } &&
04840eaa
VS
19625 { ac_try='test -z "$ac_cxx_werror_flag"
19626 || test ! -s conftest.err'
ac1cb8d3
VS
19627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19628 (eval $ac_try) 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); }; } &&
19632 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634 (eval $ac_try) 2>&5
19635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); }; }; then
19638 wx_cv_explicit=no
19639else
19640 echo "$as_me: failed program was:" >&5
19641sed 's/^/| /' conftest.$ac_ext >&5
19642
19643wx_cv_explicit=yes
19644
19645fi
ac1cb8d3 19646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19647
19648else
19649 echo "$as_me: failed program was:" >&5
19650sed 's/^/| /' conftest.$ac_ext >&5
19651
19652wx_cv_explicit=no
19653
19654fi
ac1cb8d3 19655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19656
19657 ac_ext=c
19658ac_cpp='$CPP $CPPFLAGS'
19659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19661ac_compiler_gnu=$ac_cv_c_compiler_gnu
19662
19663
19664fi
19665echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19666echo "${ECHO_T}$wx_cv_explicit" >&6
19667
19668 if test "$wx_cv_explicit" = "yes"; then
19669 cat >>confdefs.h <<\_ACEOF
19670#define HAVE_EXPLICIT 1
19671_ACEOF
19672
19673 fi
19674
19675
19676echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19677echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19678if test "${ac_cv_cxx_const_cast+set}" = set; then
19679 echo $ECHO_N "(cached) $ECHO_C" >&6
19680else
19681
19682
19683 ac_ext=cc
19684ac_cpp='$CXXCPP $CPPFLAGS'
19685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19688
19689 cat >conftest.$ac_ext <<_ACEOF
19690/* confdefs.h. */
19691_ACEOF
19692cat confdefs.h >>conftest.$ac_ext
19693cat >>conftest.$ac_ext <<_ACEOF
19694/* end confdefs.h. */
19695
19696int
19697main ()
19698{
19699int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
19700 ;
19701 return 0;
19702}
19703_ACEOF
19704rm -f conftest.$ac_objext
19705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19706 (eval $ac_compile) 2>conftest.er1
a848cd7e 19707 ac_status=$?
ac1cb8d3
VS
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
a848cd7e
SC
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
04840eaa
VS
19713 { ac_try='test -z "$ac_cxx_werror_flag"
19714 || test ! -s conftest.err'
ac1cb8d3
VS
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 ac_cv_cxx_const_cast=yes
19727else
19728 echo "$as_me: failed program was:" >&5
19729sed 's/^/| /' conftest.$ac_ext >&5
19730
19731ac_cv_cxx_const_cast=no
19732fi
ac1cb8d3 19733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19734 ac_ext=c
19735ac_cpp='$CPP $CPPFLAGS'
19736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19738ac_compiler_gnu=$ac_cv_c_compiler_gnu
19739
19740
19741fi
19742echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19743echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
19744if test "$ac_cv_cxx_const_cast" = yes; then
19745
19746cat >>confdefs.h <<\_ACEOF
19747#define HAVE_CONST_CAST
19748_ACEOF
19749
19750fi
19751
7714864e
RL
19752echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
19753echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
19754if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756else
19757
19758
19759 ac_ext=cc
19760ac_cpp='$CXXCPP $CPPFLAGS'
19761ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19762ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19763ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19764
19765 cat >conftest.$ac_ext <<_ACEOF
19766/* confdefs.h. */
19767_ACEOF
19768cat confdefs.h >>conftest.$ac_ext
19769cat >>conftest.$ac_ext <<_ACEOF
19770/* end confdefs.h. */
19771#include <typeinfo>
19772class Base { public : Base () {} virtual void f () = 0;};
19773class Derived : public Base { public : Derived () {} virtual void f () {} };
19774class Unrelated { public : Unrelated () {} };
19775int g (Unrelated&) { return 0; }
19776int
19777main ()
19778{
19779
19780Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
19781 ;
19782 return 0;
19783}
19784_ACEOF
19785rm -f conftest.$ac_objext
19786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19787 (eval $ac_compile) 2>conftest.er1
19788 ac_status=$?
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
04840eaa
VS
19794 { ac_try='test -z "$ac_cxx_werror_flag"
19795 || test ! -s conftest.err'
7714864e
RL
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 ac_cv_cxx_reinterpret_cast=yes
19808else
19809 echo "$as_me: failed program was:" >&5
19810sed 's/^/| /' conftest.$ac_ext >&5
19811
19812ac_cv_cxx_reinterpret_cast=no
19813fi
19814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19815 ac_ext=c
19816ac_cpp='$CPP $CPPFLAGS'
19817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19819ac_compiler_gnu=$ac_cv_c_compiler_gnu
19820
19821
19822fi
19823echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
19824echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
19825if test "$ac_cv_cxx_reinterpret_cast" = yes; then
19826
19827cat >>confdefs.h <<\_ACEOF
19828#define HAVE_REINTERPRET_CAST
19829_ACEOF
19830
19831fi
19832
a848cd7e
SC
19833echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19834echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19835if test "${ac_cv_cxx_static_cast+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19837else
19838
19839
19840 ac_ext=cc
19841ac_cpp='$CXXCPP $CPPFLAGS'
19842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19845
19846 cat >conftest.$ac_ext <<_ACEOF
19847/* confdefs.h. */
19848_ACEOF
19849cat confdefs.h >>conftest.$ac_ext
19850cat >>conftest.$ac_ext <<_ACEOF
19851/* end confdefs.h. */
19852#include <typeinfo>
19853class Base { public : Base () {} virtual void f () = 0; };
19854class Derived : public Base { public : Derived () {} virtual void f () {} };
19855int g (Derived&) { return 0; }
19856int
19857main ()
19858{
19859
19860Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19861 ;
19862 return 0;
19863}
19864_ACEOF
19865rm -f conftest.$ac_objext
19866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19867 (eval $ac_compile) 2>conftest.er1
a848cd7e 19868 ac_status=$?
ac1cb8d3
VS
19869 grep -v '^ *+' conftest.er1 >conftest.err
19870 rm -f conftest.er1
19871 cat conftest.err >&5
a848cd7e
SC
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); } &&
04840eaa
VS
19874 { ac_try='test -z "$ac_cxx_werror_flag"
19875 || test ! -s conftest.err'
ac1cb8d3
VS
19876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19877 (eval $ac_try) 2>&5
19878 ac_status=$?
19879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); }; } &&
19881 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19883 (eval $ac_try) 2>&5
19884 ac_status=$?
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); }; }; then
19887 ac_cv_cxx_static_cast=yes
19888else
19889 echo "$as_me: failed program was:" >&5
19890sed 's/^/| /' conftest.$ac_ext >&5
19891
19892ac_cv_cxx_static_cast=no
19893fi
ac1cb8d3 19894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19895 ac_ext=c
19896ac_cpp='$CPP $CPPFLAGS'
19897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19899ac_compiler_gnu=$ac_cv_c_compiler_gnu
19900
19901
19902fi
19903echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19904echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19905if test "$ac_cv_cxx_static_cast" = yes; then
19906
19907cat >>confdefs.h <<\_ACEOF
19908#define HAVE_STATIC_CAST
19909_ACEOF
19910
19911fi
19912
19913
19914if test "$wxUSE_STL" = "yes"; then
19915 ac_ext=cc
19916ac_cpp='$CXXCPP $CPPFLAGS'
19917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19920
19921
19922 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19923echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19924 cat >conftest.$ac_ext <<_ACEOF
19925/* confdefs.h. */
19926_ACEOF
19927cat confdefs.h >>conftest.$ac_ext
19928cat >>conftest.$ac_ext <<_ACEOF
19929/* end confdefs.h. */
19930#include <string>
19931 #include <functional>
19932 #include <algorithm>
19933 #include <vector>
19934 #include <list>
19935int
19936main ()
19937{
19938std::vector<int> moo;
19939 std::list<int> foo;
19940 std::vector<int>::iterator it =
19941 std::find_if(moo.begin(), moo.end(),
19942 std::bind2nd(std::less<int>(), 3));
19943 ;
19944 return 0;
19945}
19946_ACEOF
19947rm -f conftest.$ac_objext
19948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19949 (eval $ac_compile) 2>conftest.er1
a848cd7e 19950 ac_status=$?
ac1cb8d3
VS
19951 grep -v '^ *+' conftest.er1 >conftest.err
19952 rm -f conftest.er1
19953 cat conftest.err >&5
a848cd7e
SC
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); } &&
04840eaa
VS
19956 { ac_try='test -z "$ac_cxx_werror_flag"
19957 || test ! -s conftest.err'
ac1cb8d3
VS
19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19959 (eval $ac_try) 2>&5
19960 ac_status=$?
19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19962 (exit $ac_status); }; } &&
19963 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19965 (eval $ac_try) 2>&5
19966 ac_status=$?
19967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968 (exit $ac_status); }; }; then
19969 echo "$as_me:$LINENO: result: yes" >&5
19970echo "${ECHO_T}yes" >&6
19971else
19972 echo "$as_me: failed program was:" >&5
19973sed 's/^/| /' conftest.$ac_ext >&5
19974
19975echo "$as_me:$LINENO: result: no" >&5
19976echo "${ECHO_T}no" >&6
19977 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19978echo "$as_me: error: Basic STL functionality missing" >&2;}
19979 { (exit 1); exit 1; }; }
19980fi
ac1cb8d3 19981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19982
19983 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19984echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19985 cat >conftest.$ac_ext <<_ACEOF
19986/* confdefs.h. */
19987_ACEOF
19988cat confdefs.h >>conftest.$ac_ext
19989cat >>conftest.$ac_ext <<_ACEOF
19990/* end confdefs.h. */
19991#include <string>
19992int
19993main ()
19994{
19995std::wstring foo;
19996 ;
19997 return 0;
19998}
19999_ACEOF
20000rm -f conftest.$ac_objext
20001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20002 (eval $ac_compile) 2>conftest.er1
a848cd7e 20003 ac_status=$?
ac1cb8d3
VS
20004 grep -v '^ *+' conftest.er1 >conftest.err
20005 rm -f conftest.er1
20006 cat conftest.err >&5
a848cd7e
SC
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); } &&
04840eaa
VS
20009 { ac_try='test -z "$ac_cxx_werror_flag"
20010 || test ! -s conftest.err'
ac1cb8d3
VS
20011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20012 (eval $ac_try) 2>&5
20013 ac_status=$?
20014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20015 (exit $ac_status); }; } &&
20016 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20018 (eval $ac_try) 2>&5
20019 ac_status=$?
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; }; then
20022 echo "$as_me:$LINENO: result: yes" >&5
20023echo "${ECHO_T}yes" >&6
20024 cat >>confdefs.h <<\_ACEOF
20025#define HAVE_STD_WSTRING 1
20026_ACEOF
20027
20028else
20029 echo "$as_me: failed program was:" >&5
20030sed 's/^/| /' conftest.$ac_ext >&5
20031
20032echo "$as_me:$LINENO: result: no" >&5
20033echo "${ECHO_T}no" >&6
20034fi
ac1cb8d3 20035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20036
20037 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
20038echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
20039 cat >conftest.$ac_ext <<_ACEOF
20040/* confdefs.h. */
20041_ACEOF
20042cat confdefs.h >>conftest.$ac_ext
20043cat >>conftest.$ac_ext <<_ACEOF
20044/* end confdefs.h. */
20045#include <string>
20046int
20047main ()
20048{
20049std::string foo, bar;
20050 foo.compare(bar);
20051 foo.compare(1, 1, bar);
20052 foo.compare(1, 1, bar, 1, 1);
20053 foo.compare("");
20054 foo.compare(1, 1, "");
20055 foo.compare(1, 1, "", 2);
20056 ;
20057 return 0;
20058}
20059_ACEOF
20060rm -f conftest.$ac_objext
20061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20062 (eval $ac_compile) 2>conftest.er1
a848cd7e 20063 ac_status=$?
ac1cb8d3
VS
20064 grep -v '^ *+' conftest.er1 >conftest.err
20065 rm -f conftest.er1
20066 cat conftest.err >&5
a848cd7e
SC
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } &&
04840eaa
VS
20069 { ac_try='test -z "$ac_cxx_werror_flag"
20070 || test ! -s conftest.err'
ac1cb8d3
VS
20071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20072 (eval $ac_try) 2>&5
20073 ac_status=$?
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); }; } &&
20076 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20078 (eval $ac_try) 2>&5
20079 ac_status=$?
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); }; }; then
20082 echo "$as_me:$LINENO: result: yes" >&5
20083echo "${ECHO_T}yes" >&6
20084 cat >>confdefs.h <<\_ACEOF
20085#define HAVE_STD_STRING_COMPARE 1
20086_ACEOF
20087
20088else
20089 echo "$as_me: failed program was:" >&5
20090sed 's/^/| /' conftest.$ac_ext >&5
20091
20092echo "$as_me:$LINENO: result: no" >&5
20093echo "${ECHO_T}no" >&6
20094fi
ac1cb8d3 20095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20096
20097 if test "${ac_cv_header_hash_map+set}" = set; then
20098 echo "$as_me:$LINENO: checking for hash_map" >&5
20099echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20100if test "${ac_cv_header_hash_map+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20102fi
20103echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20104echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20105else
20106 # Is the header compilable?
20107echo "$as_me:$LINENO: checking hash_map usability" >&5
20108echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
20109cat >conftest.$ac_ext <<_ACEOF
20110/* confdefs.h. */
20111_ACEOF
20112cat confdefs.h >>conftest.$ac_ext
20113cat >>conftest.$ac_ext <<_ACEOF
20114/* end confdefs.h. */
20115$ac_includes_default
20116#include <hash_map>
20117_ACEOF
20118rm -f conftest.$ac_objext
20119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20120 (eval $ac_compile) 2>conftest.er1
bdcade0a 20121 ac_status=$?
ac1cb8d3
VS
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
bdcade0a
MB
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } &&
04840eaa
VS
20127 { ac_try='test -z "$ac_cxx_werror_flag"
20128 || test ! -s conftest.err'
ac1cb8d3
VS
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20131 ac_status=$?
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; } &&
20134 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20136 (eval $ac_try) 2>&5
20137 ac_status=$?
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; }; then
20140 ac_header_compiler=yes
20141else
20142 echo "$as_me: failed program was:" >&5
20143sed 's/^/| /' conftest.$ac_ext >&5
20144
20145ac_header_compiler=no
20146fi
ac1cb8d3 20147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20148echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20149echo "${ECHO_T}$ac_header_compiler" >&6
20150
20151# Is the header present?
20152echo "$as_me:$LINENO: checking hash_map presence" >&5
20153echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
20154cat >conftest.$ac_ext <<_ACEOF
20155/* confdefs.h. */
20156_ACEOF
20157cat confdefs.h >>conftest.$ac_ext
20158cat >>conftest.$ac_ext <<_ACEOF
20159/* end confdefs.h. */
20160#include <hash_map>
20161_ACEOF
20162if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20163 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20164 ac_status=$?
20165 grep -v '^ *+' conftest.er1 >conftest.err
20166 rm -f conftest.er1
20167 cat conftest.err >&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); } >/dev/null; then
20170 if test -s conftest.err; then
20171 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20172 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20173 else
20174 ac_cpp_err=
20175 fi
20176else
20177 ac_cpp_err=yes
20178fi
20179if test -z "$ac_cpp_err"; then
20180 ac_header_preproc=yes
20181else
20182 echo "$as_me: failed program was:" >&5
20183sed 's/^/| /' conftest.$ac_ext >&5
20184
20185 ac_header_preproc=no
20186fi
20187rm -f conftest.err conftest.$ac_ext
20188echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20189echo "${ECHO_T}$ac_header_preproc" >&6
20190
20191# So? What about this header?
ac1cb8d3
VS
20192case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20193 yes:no: )
bdcade0a
MB
20194 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20195echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20196 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
20197echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
20198 ac_header_preproc=yes
bdcade0a 20199 ;;
ac1cb8d3 20200 no:yes:* )
bdcade0a
MB
20201 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
20202echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20203 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
20204echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
20205 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
20206echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
20207 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
20208echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20209 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
20210echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20211 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
20212echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20213 (
20214 cat <<\_ASBOX
ac1cb8d3
VS
20215## ----------------------------------------- ##
20216## Report this to wx-dev@lists.wxwidgets.org ##
20217## ----------------------------------------- ##
bdcade0a
MB
20218_ASBOX
20219 ) |
20220 sed "s/^/$as_me: WARNING: /" >&2
20221 ;;
20222esac
20223echo "$as_me:$LINENO: checking for hash_map" >&5
20224echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
20225if test "${ac_cv_header_hash_map+set}" = set; then
20226 echo $ECHO_N "(cached) $ECHO_C" >&6
20227else
20228 ac_cv_header_hash_map=$ac_header_preproc
20229fi
20230echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
20231echo "${ECHO_T}$ac_cv_header_hash_map" >&6
20232
20233fi
20234if test $ac_cv_header_hash_map = yes; then
20235 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20236echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20237 cat >conftest.$ac_ext <<_ACEOF
20238/* confdefs.h. */
20239_ACEOF
20240cat confdefs.h >>conftest.$ac_ext
20241cat >>conftest.$ac_ext <<_ACEOF
20242/* end confdefs.h. */
20243#include <hash_map>
20244 #include <hash_set>
20245int
20246main ()
20247{
20248std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
20249 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
20250 ;
20251 return 0;
20252}
20253_ACEOF
20254rm -f conftest.$ac_objext
20255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20256 (eval $ac_compile) 2>conftest.er1
bdcade0a 20257 ac_status=$?
ac1cb8d3
VS
20258 grep -v '^ *+' conftest.er1 >conftest.err
20259 rm -f conftest.er1
20260 cat conftest.err >&5
bdcade0a
MB
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } &&
04840eaa
VS
20263 { ac_try='test -z "$ac_cxx_werror_flag"
20264 || test ! -s conftest.err'
ac1cb8d3
VS
20265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20266 (eval $ac_try) 2>&5
20267 ac_status=$?
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); }; } &&
20270 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272 (eval $ac_try) 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; }; then
20276 echo "$as_me:$LINENO: result: yes" >&5
20277echo "${ECHO_T}yes" >&6
20278 cat >>confdefs.h <<\_ACEOF
20279#define HAVE_HASH_MAP 1
20280_ACEOF
20281
20282 cat >>confdefs.h <<\_ACEOF
20283#define HAVE_STD_HASH_MAP 1
20284_ACEOF
20285
20286else
20287 echo "$as_me: failed program was:" >&5
20288sed 's/^/| /' conftest.$ac_ext >&5
20289
20290echo "$as_me:$LINENO: result: no" >&5
20291echo "${ECHO_T}no" >&6
20292fi
ac1cb8d3 20293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20294
20295fi
20296
20297
20298
20299 if test "${ac_cv_header_ext_hash_map+set}" = set; then
20300 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20301echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20302if test "${ac_cv_header_ext_hash_map+set}" = set; then
20303 echo $ECHO_N "(cached) $ECHO_C" >&6
20304fi
20305echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20306echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20307else
20308 # Is the header compilable?
20309echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
20310echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
20311cat >conftest.$ac_ext <<_ACEOF
20312/* confdefs.h. */
20313_ACEOF
20314cat confdefs.h >>conftest.$ac_ext
20315cat >>conftest.$ac_ext <<_ACEOF
20316/* end confdefs.h. */
20317$ac_includes_default
20318#include <ext/hash_map>
20319_ACEOF
20320rm -f conftest.$ac_objext
20321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20322 (eval $ac_compile) 2>conftest.er1
bdcade0a 20323 ac_status=$?
ac1cb8d3
VS
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
bdcade0a
MB
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } &&
04840eaa
VS
20329 { ac_try='test -z "$ac_cxx_werror_flag"
20330 || test ! -s conftest.err'
ac1cb8d3
VS
20331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20332 (eval $ac_try) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); }; } &&
20336 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; }; then
20342 ac_header_compiler=yes
20343else
20344 echo "$as_me: failed program was:" >&5
20345sed 's/^/| /' conftest.$ac_ext >&5
20346
20347ac_header_compiler=no
20348fi
ac1cb8d3 20349rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20350echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20351echo "${ECHO_T}$ac_header_compiler" >&6
20352
20353# Is the header present?
20354echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
20355echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
20356cat >conftest.$ac_ext <<_ACEOF
20357/* confdefs.h. */
20358_ACEOF
20359cat confdefs.h >>conftest.$ac_ext
20360cat >>conftest.$ac_ext <<_ACEOF
20361/* end confdefs.h. */
20362#include <ext/hash_map>
20363_ACEOF
20364if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20366 ac_status=$?
20367 grep -v '^ *+' conftest.er1 >conftest.err
20368 rm -f conftest.er1
20369 cat conftest.err >&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); } >/dev/null; then
20372 if test -s conftest.err; then
20373 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 20374 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
20375 else
20376 ac_cpp_err=
20377 fi
20378else
20379 ac_cpp_err=yes
20380fi
20381if test -z "$ac_cpp_err"; then
20382 ac_header_preproc=yes
20383else
20384 echo "$as_me: failed program was:" >&5
20385sed 's/^/| /' conftest.$ac_ext >&5
20386
20387 ac_header_preproc=no
20388fi
20389rm -f conftest.err conftest.$ac_ext
20390echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20391echo "${ECHO_T}$ac_header_preproc" >&6
20392
20393# So? What about this header?
ac1cb8d3
VS
20394case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
20395 yes:no: )
bdcade0a
MB
20396 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
20397echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20398 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
20399echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
20400 ac_header_preproc=yes
bdcade0a 20401 ;;
ac1cb8d3 20402 no:yes:* )
bdcade0a
MB
20403 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
20404echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20405 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
20406echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
20407 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
20408echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
20409 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
20410echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
20411 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
20412echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20413 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
20414echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
20415 (
20416 cat <<\_ASBOX
ac1cb8d3
VS
20417## ----------------------------------------- ##
20418## Report this to wx-dev@lists.wxwidgets.org ##
20419## ----------------------------------------- ##
bdcade0a
MB
20420_ASBOX
20421 ) |
20422 sed "s/^/$as_me: WARNING: /" >&2
20423 ;;
20424esac
20425echo "$as_me:$LINENO: checking for ext/hash_map" >&5
20426echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
20427if test "${ac_cv_header_ext_hash_map+set}" = set; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20429else
20430 ac_cv_header_ext_hash_map=$ac_header_preproc
20431fi
20432echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
20433echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
20434
20435fi
20436if test $ac_cv_header_ext_hash_map = yes; then
20437 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
20438echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
20439 cat >conftest.$ac_ext <<_ACEOF
20440/* confdefs.h. */
20441_ACEOF
20442cat confdefs.h >>conftest.$ac_ext
20443cat >>conftest.$ac_ext <<_ACEOF
20444/* end confdefs.h. */
20445#include <ext/hash_map>
20446 #include <ext/hash_set>
20447int
20448main ()
20449{
20450__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
20451 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
20452 ;
20453 return 0;
20454}
20455_ACEOF
20456rm -f conftest.$ac_objext
20457if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20458 (eval $ac_compile) 2>conftest.er1
bdcade0a 20459 ac_status=$?
ac1cb8d3
VS
20460 grep -v '^ *+' conftest.er1 >conftest.err
20461 rm -f conftest.er1
20462 cat conftest.err >&5
bdcade0a
MB
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); } &&
04840eaa
VS
20465 { ac_try='test -z "$ac_cxx_werror_flag"
20466 || test ! -s conftest.err'
ac1cb8d3
VS
20467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20468 (eval $ac_try) 2>&5
20469 ac_status=$?
20470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471 (exit $ac_status); }; } &&
20472 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
20473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20474 (eval $ac_try) 2>&5
20475 ac_status=$?
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); }; }; then
20478 echo "$as_me:$LINENO: result: yes" >&5
20479echo "${ECHO_T}yes" >&6
20480 cat >>confdefs.h <<\_ACEOF
20481#define HAVE_EXT_HASH_MAP 1
20482_ACEOF
20483
20484 cat >>confdefs.h <<\_ACEOF
20485#define HAVE_GNU_CXX_HASH_MAP 1
20486_ACEOF
20487
20488else
20489 echo "$as_me: failed program was:" >&5
20490sed 's/^/| /' conftest.$ac_ext >&5
20491
20492echo "$as_me:$LINENO: result: no" >&5
20493echo "${ECHO_T}no" >&6
20494fi
ac1cb8d3 20495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
20496
20497fi
20498
20499
a848cd7e
SC
20500
20501 ac_ext=c
20502ac_cpp='$CPP $CPPFLAGS'
20503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20505ac_compiler_gnu=$ac_cv_c_compiler_gnu
20506
20507fi
20508
20509
20510SEARCH_INCLUDE="\
20511 /usr/local/include \
20512 \
20513 /usr/Motif-2.1/include \
20514 /usr/Motif-1.2/include \
20515 /usr/include/Motif1.2 \
20516 /opt/xpm/include/X11 \
20517 /opt/GBxpm/include/ \
20518 /opt/GBxpm/X11/include/ \
20519 \
20520 /usr/dt/include \
20521 /usr/openwin/include \
20522 \
20523 /usr/include/Xm \
20524 \
20525 /usr/X11R6/include \
20526 /usr/X11R6.4/include \
20527 /usr/X11R5/include \
20528 /usr/X11R4/include \
20529 \
20530 /usr/include/X11R6 \
20531 /usr/include/X11R5 \
20532 /usr/include/X11R4 \
20533 \
20534 /usr/local/X11R6/include \
20535 /usr/local/X11R5/include \
20536 /usr/local/X11R4/include \
20537 \
20538 /usr/local/include/X11R6 \
20539 /usr/local/include/X11R5 \
20540 /usr/local/include/X11R4 \
20541 \
20542 /usr/X11/include \
20543 /usr/include/X11 \
20544 /usr/local/X11/include \
20545 /usr/local/include/X11 \
20546 \
20547 /usr/X386/include \
20548 /usr/x386/include \
20549 /usr/XFree86/include/X11 \
20550 \
20551 X:/XFree86/include \
20552 X:/XFree86/include/X11 \
20553 \
20554 /usr/include/gtk \
20555 /usr/local/include/gtk \
20556 /usr/include/glib \
20557 /usr/local/include/glib \
20558 \
20559 /usr/include/qt \
20560 /usr/local/include/qt \
20561 \
20562 /usr/local/arm/3.3.2/include \
20563 \
20564 /usr/include/windows \
20565 /usr/include/wine \
20566 /usr/local/include/wine \
20567 \
20568 /usr/unsupported/include \
20569 /usr/athena/include \
20570 /usr/local/x11r5/include \
20571 /usr/lpp/Xamples/include \
20572 \
20573 /usr/openwin/share/include"
20574
20575SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
20576
20577
20578cat >confcache <<\_ACEOF
20579# This file is a shell script that caches the results of configure
20580# tests run on this system so they can be shared between configure
20581# scripts and configure runs, see configure's option --config-cache.
20582# It is not useful on other systems. If it contains results you don't
20583# want to keep, you may remove or edit it.
20584#
20585# config.status only pays attention to the cache file if you give it
20586# the --recheck option to rerun configure.
20587#
20588# `ac_cv_env_foo' variables (set or unset) will be overridden when
20589# loading this file, other *unset* `ac_cv_foo' will be assigned the
20590# following values.
20591
20592_ACEOF
20593
20594# The following way of writing the cache mishandles newlines in values,
20595# but we know of no workaround that is simple, portable, and efficient.
20596# So, don't put newlines in cache variables' values.
20597# Ultrix sh set writes to stderr and can't be redirected directly,
20598# and sets the high bit in the cache file unless we assign to the vars.
20599{
20600 (set) 2>&1 |
20601 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20602 *ac_space=\ *)
20603 # `set' does not quote correctly, so add quotes (double-quote
20604 # substitution turns \\\\ into \\, and sed turns \\ into \).
20605 sed -n \
ac1cb8d3
VS
20606 "s/'/'\\\\''/g;
20607 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
20608 ;;
20609 *)
20610 # `set' quotes correctly as required by POSIX, so do not add quotes.
20611 sed -n \
ac1cb8d3 20612 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
20613 ;;
20614 esac;
20615} |
20616 sed '
20617 t clear
20618 : clear
20619 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20620 t end
20621 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20622 : end' >>confcache
20623if diff $cache_file confcache >/dev/null 2>&1; then :; else
20624 if test -w $cache_file; then
20625 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20626 cat confcache >$cache_file
20627 else
20628 echo "not updating unwritable cache $cache_file"
20629 fi
20630fi
20631rm -f confcache
20632
20633if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
20634 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
20635echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
20636if test "${wx_cv_lib_glibc21+set}" = set; then
20637 echo $ECHO_N "(cached) $ECHO_C" >&6
20638else
20639
20640 cat >conftest.$ac_ext <<_ACEOF
20641/* confdefs.h. */
20642_ACEOF
20643cat confdefs.h >>conftest.$ac_ext
20644cat >>conftest.$ac_ext <<_ACEOF
20645/* end confdefs.h. */
20646#include <features.h>
20647int
20648main ()
20649{
20650
20651 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
20652 #error not glibc2.1
20653 #endif
20654
20655 ;
20656 return 0;
20657}
20658_ACEOF
20659rm -f conftest.$ac_objext
20660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20661 (eval $ac_compile) 2>conftest.er1
a848cd7e 20662 ac_status=$?
ac1cb8d3
VS
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
a848cd7e
SC
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } &&
04840eaa
VS
20668 { ac_try='test -z "$ac_c_werror_flag"
20669 || test ! -s conftest.err'
ac1cb8d3
VS
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; } &&
20675 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677 (eval $ac_try) 2>&5
20678 ac_status=$?
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); }; }; then
20681
20682 wx_cv_lib_glibc21=yes
20683
20684else
20685 echo "$as_me: failed program was:" >&5
20686sed 's/^/| /' conftest.$ac_ext >&5
20687
20688
20689 wx_cv_lib_glibc21=no
20690
20691
20692fi
ac1cb8d3 20693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20694
20695fi
20696echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
20697echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
20698 if test "$wx_cv_lib_glibc21" = "yes"; then
20699 cat >>confdefs.h <<\_ACEOF
20700#define wxHAVE_GLIBC2 1
20701_ACEOF
20702
20703 fi
20704fi
20705
20706if test "x$wx_cv_lib_glibc21" = "xyes"; then
20707 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
20708 cat >>confdefs.h <<\_ACEOF
20709#define _GNU_SOURCE 1
20710_ACEOF
20711
20712 fi
20713fi
20714
20715
20716
20717if test "$wxUSE_REGEX" != "no"; then
20718 cat >>confdefs.h <<\_ACEOF
20719#define wxUSE_REGEX 1
20720_ACEOF
20721
20722
20723 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
20724 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
20725echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
20726 wxUSE_REGEX=builtin
20727 fi
20728
20729 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
20730 if test "${ac_cv_header_regex_h+set}" = set; then
20731 echo "$as_me:$LINENO: checking for regex.h" >&5
20732echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20733if test "${ac_cv_header_regex_h+set}" = set; then
20734 echo $ECHO_N "(cached) $ECHO_C" >&6
20735fi
20736echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20737echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20738else
20739 # Is the header compilable?
20740echo "$as_me:$LINENO: checking regex.h usability" >&5
20741echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20742cat >conftest.$ac_ext <<_ACEOF
20743/* confdefs.h. */
20744_ACEOF
20745cat confdefs.h >>conftest.$ac_ext
20746cat >>conftest.$ac_ext <<_ACEOF
20747/* end confdefs.h. */
20748$ac_includes_default
20749#include <regex.h>
20750_ACEOF
20751rm -f conftest.$ac_objext
20752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20753 (eval $ac_compile) 2>conftest.er1
a848cd7e 20754 ac_status=$?
ac1cb8d3
VS
20755 grep -v '^ *+' conftest.er1 >conftest.err
20756 rm -f conftest.er1
20757 cat conftest.err >&5
a848cd7e
SC
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } &&
04840eaa
VS
20760 { ac_try='test -z "$ac_c_werror_flag"
20761 || test ! -s conftest.err'
ac1cb8d3
VS
20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20763 (eval $ac_try) 2>&5
20764 ac_status=$?
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); }; } &&
20767 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20769 (eval $ac_try) 2>&5
20770 ac_status=$?
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); }; }; then
20773 ac_header_compiler=yes
20774else
20775 echo "$as_me: failed program was:" >&5
20776sed 's/^/| /' conftest.$ac_ext >&5
20777
20778ac_header_compiler=no
20779fi
ac1cb8d3 20780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20782echo "${ECHO_T}$ac_header_compiler" >&6
20783
20784# Is the header present?
20785echo "$as_me:$LINENO: checking regex.h presence" >&5
20786echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20787cat >conftest.$ac_ext <<_ACEOF
20788/* confdefs.h. */
20789_ACEOF
20790cat confdefs.h >>conftest.$ac_ext
20791cat >>conftest.$ac_ext <<_ACEOF
20792/* end confdefs.h. */
20793#include <regex.h>
20794_ACEOF
20795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20796 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20797 ac_status=$?
20798 grep -v '^ *+' conftest.er1 >conftest.err
20799 rm -f conftest.er1
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } >/dev/null; then
20803 if test -s conftest.err; then
20804 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 20805 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
20806 else
20807 ac_cpp_err=
20808 fi
20809else
20810 ac_cpp_err=yes
20811fi
20812if test -z "$ac_cpp_err"; then
20813 ac_header_preproc=yes
20814else
20815 echo "$as_me: failed program was:" >&5
20816sed 's/^/| /' conftest.$ac_ext >&5
20817
20818 ac_header_preproc=no
20819fi
20820rm -f conftest.err conftest.$ac_ext
20821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20822echo "${ECHO_T}$ac_header_preproc" >&6
20823
20824# So? What about this header?
ac1cb8d3
VS
20825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20826 yes:no: )
a848cd7e
SC
20827 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20828echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
20829 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20830echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20831 ac_header_preproc=yes
a848cd7e 20832 ;;
ac1cb8d3 20833 no:yes:* )
a848cd7e
SC
20834 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20835echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
20836 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20837echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20838 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20839echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20840 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20841echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
20842 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20843echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
20844 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20845echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
20846 (
20847 cat <<\_ASBOX
ac1cb8d3
VS
20848## ----------------------------------------- ##
20849## Report this to wx-dev@lists.wxwidgets.org ##
20850## ----------------------------------------- ##
a848cd7e
SC
20851_ASBOX
20852 ) |
20853 sed "s/^/$as_me: WARNING: /" >&2
20854 ;;
20855esac
20856echo "$as_me:$LINENO: checking for regex.h" >&5
20857echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20858if test "${ac_cv_header_regex_h+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20860else
20861 ac_cv_header_regex_h=$ac_header_preproc
20862fi
20863echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20864echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20865
20866fi
20867if test $ac_cv_header_regex_h = yes; then
20868
20869for ac_func in regcomp
20870do
20871as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20872echo "$as_me:$LINENO: checking for $ac_func" >&5
20873echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20874if eval "test \"\${$as_ac_var+set}\" = set"; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20876else
20877 cat >conftest.$ac_ext <<_ACEOF
20878/* confdefs.h. */
20879_ACEOF
20880cat confdefs.h >>conftest.$ac_ext
20881cat >>conftest.$ac_ext <<_ACEOF
20882/* end confdefs.h. */
ac1cb8d3
VS
20883/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20885#define $ac_func innocuous_$ac_func
20886
a848cd7e
SC
20887/* System header to define __stub macros and hopefully few prototypes,
20888 which can conflict with char $ac_func (); below.
20889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20890 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 20891
a848cd7e
SC
20892#ifdef __STDC__
20893# include <limits.h>
20894#else
20895# include <assert.h>
20896#endif
ac1cb8d3
VS
20897
20898#undef $ac_func
20899
a848cd7e
SC
20900/* Override any gcc2 internal prototype to avoid an error. */
20901#ifdef __cplusplus
20902extern "C"
20903{
20904#endif
20905/* We use char because int might match the return type of a gcc2
20906 builtin and then its argument prototype would still apply. */
20907char $ac_func ();
20908/* The GNU C library defines this for functions which it implements
20909 to always fail with ENOSYS. Some functions are actually named
20910 something starting with __ and the normal name is an alias. */
20911#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20912choke me
20913#else
20914char (*f) () = $ac_func;
20915#endif
20916#ifdef __cplusplus
20917}
20918#endif
20919
20920int
20921main ()
20922{
20923return f != $ac_func;
20924 ;
20925 return 0;
20926}
20927_ACEOF
20928rm -f conftest.$ac_objext conftest$ac_exeext
20929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 20930 (eval $ac_link) 2>conftest.er1
a848cd7e 20931 ac_status=$?
ac1cb8d3
VS
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
a848cd7e
SC
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
04840eaa
VS
20937 { ac_try='test -z "$ac_c_werror_flag"
20938 || test ! -s conftest.err'
ac1cb8d3
VS
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; } &&
20944 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 eval "$as_ac_var=yes"
20951else
20952 echo "$as_me: failed program was:" >&5
20953sed 's/^/| /' conftest.$ac_ext >&5
20954
20955eval "$as_ac_var=no"
20956fi
ac1cb8d3
VS
20957rm -f conftest.err conftest.$ac_objext \
20958 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
20959fi
20960echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20961echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20962if test `eval echo '${'$as_ac_var'}'` = yes; then
20963 cat >>confdefs.h <<_ACEOF
20964#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20965_ACEOF
20966
20967fi
20968done
20969
20970fi
20971
20972
20973
20974 if test "x$ac_cv_func_regcomp" != "xyes"; then
20975 if test "$wxUSE_REGEX" = "sys" ; then
20976 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
20977echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
20978 { (exit 1); exit 1; }; }
20979 else
20980 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
20981echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
20982 wxUSE_REGEX=builtin
20983 fi
20984 else
20985 wxUSE_REGEX=sys
20986 cat >>confdefs.h <<\_ACEOF
20987#define WX_NO_REGEX_ADVANCED 1
20988_ACEOF
20989
20990 fi
20991 fi
20992fi
20993
20994
20995ZLIB_LINK=
20996if test "$wxUSE_ZLIB" != "no" ; then
20997 cat >>confdefs.h <<\_ACEOF
20998#define wxUSE_ZLIB 1
20999_ACEOF
21000
21001
21002 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
21003 if test "$USE_DARWIN" = 1; then
21004 system_zlib_h_ok="yes"
21005 else
21006 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
21007echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
21008if test "${ac_cv_header_zlib_h+set}" = set; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21010else
21011 if test "$cross_compiling" = yes; then
21012 unset ac_cv_header_zlib_h
21013
21014else
21015 cat >conftest.$ac_ext <<_ACEOF
21016/* confdefs.h. */
21017_ACEOF
21018cat confdefs.h >>conftest.$ac_ext
21019cat >>conftest.$ac_ext <<_ACEOF
21020/* end confdefs.h. */
21021
21022 #include <zlib.h>
21023 #include <stdio.h>
21024
21025 int main()
21026 {
21027 FILE *f=fopen("conftestval", "w");
21028 if (!f) exit(1);
21029 fprintf(f, "%s",
21030 ZLIB_VERSION[0] == '1' &&
21031 (ZLIB_VERSION[2] > '1' ||
21032 (ZLIB_VERSION[2] == '1' &&
21033 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
21034 exit(0);
21035 }
21036
21037_ACEOF
21038rm -f conftest$ac_exeext
21039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21040 (eval $ac_link) 2>&5
21041 ac_status=$?
21042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21045 (eval $ac_try) 2>&5
21046 ac_status=$?
21047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048 (exit $ac_status); }; }; then
21049 ac_cv_header_zlib_h=`cat conftestval`
21050else
21051 echo "$as_me: program exited with status $ac_status" >&5
21052echo "$as_me: failed program was:" >&5
21053sed 's/^/| /' conftest.$ac_ext >&5
21054
21055( exit $ac_status )
21056ac_cv_header_zlib_h=no
21057fi
ac1cb8d3 21058rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21059fi
21060
21061fi
21062echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21063echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21064 if test "${ac_cv_header_zlib_h+set}" = set; then
21065 echo "$as_me:$LINENO: checking for zlib.h" >&5
21066echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21067if test "${ac_cv_header_zlib_h+set}" = set; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21069fi
21070echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21071echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21072else
21073 # Is the header compilable?
21074echo "$as_me:$LINENO: checking zlib.h usability" >&5
21075echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
21076cat >conftest.$ac_ext <<_ACEOF
21077/* confdefs.h. */
21078_ACEOF
21079cat confdefs.h >>conftest.$ac_ext
21080cat >>conftest.$ac_ext <<_ACEOF
21081/* end confdefs.h. */
21082$ac_includes_default
21083#include <zlib.h>
21084_ACEOF
21085rm -f conftest.$ac_objext
21086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21087 (eval $ac_compile) 2>conftest.er1
a848cd7e 21088 ac_status=$?
ac1cb8d3
VS
21089 grep -v '^ *+' conftest.er1 >conftest.err
21090 rm -f conftest.er1
21091 cat conftest.err >&5
a848cd7e
SC
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } &&
04840eaa
VS
21094 { ac_try='test -z "$ac_c_werror_flag"
21095 || test ! -s conftest.err'
ac1cb8d3
VS
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; } &&
21101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21104 ac_status=$?
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 ac_header_compiler=yes
21108else
21109 echo "$as_me: failed program was:" >&5
21110sed 's/^/| /' conftest.$ac_ext >&5
21111
21112ac_header_compiler=no
21113fi
ac1cb8d3 21114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21116echo "${ECHO_T}$ac_header_compiler" >&6
21117
21118# Is the header present?
21119echo "$as_me:$LINENO: checking zlib.h presence" >&5
21120echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
21121cat >conftest.$ac_ext <<_ACEOF
21122/* confdefs.h. */
21123_ACEOF
21124cat confdefs.h >>conftest.$ac_ext
21125cat >>conftest.$ac_ext <<_ACEOF
21126/* end confdefs.h. */
21127#include <zlib.h>
21128_ACEOF
21129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21131 ac_status=$?
21132 grep -v '^ *+' conftest.er1 >conftest.err
21133 rm -f conftest.er1
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } >/dev/null; then
21137 if test -s conftest.err; then
21138 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21140 else
21141 ac_cpp_err=
21142 fi
21143else
21144 ac_cpp_err=yes
21145fi
21146if test -z "$ac_cpp_err"; then
21147 ac_header_preproc=yes
21148else
21149 echo "$as_me: failed program was:" >&5
21150sed 's/^/| /' conftest.$ac_ext >&5
21151
21152 ac_header_preproc=no
21153fi
21154rm -f conftest.err conftest.$ac_ext
21155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21156echo "${ECHO_T}$ac_header_preproc" >&6
21157
21158# So? What about this header?
ac1cb8d3
VS
21159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21160 yes:no: )
a848cd7e
SC
21161 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
21162echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21163 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
21164echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
21165 ac_header_preproc=yes
a848cd7e 21166 ;;
ac1cb8d3 21167 no:yes:* )
a848cd7e
SC
21168 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
21169echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21170 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
21171echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
21172 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
21173echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
21175echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21176 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
21177echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21178 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
21179echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21180 (
21181 cat <<\_ASBOX
ac1cb8d3
VS
21182## ----------------------------------------- ##
21183## Report this to wx-dev@lists.wxwidgets.org ##
21184## ----------------------------------------- ##
a848cd7e
SC
21185_ASBOX
21186 ) |
21187 sed "s/^/$as_me: WARNING: /" >&2
21188 ;;
21189esac
21190echo "$as_me:$LINENO: checking for zlib.h" >&5
21191echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
21192if test "${ac_cv_header_zlib_h+set}" = set; then
21193 echo $ECHO_N "(cached) $ECHO_C" >&6
21194else
21195 ac_cv_header_zlib_h=$ac_header_preproc
21196fi
21197echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
21198echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
21199
21200fi
21201
21202
21203
21204 system_zlib_h_ok=$ac_cv_header_zlib_h
21205 fi
21206
21207 if test "$system_zlib_h_ok" = "yes"; then
21208 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
21209echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
21210if test "${ac_cv_lib_z_deflate+set}" = set; then
21211 echo $ECHO_N "(cached) $ECHO_C" >&6
21212else
21213 ac_check_lib_save_LIBS=$LIBS
21214LIBS="-lz $LIBS"
21215cat >conftest.$ac_ext <<_ACEOF
21216/* confdefs.h. */
21217_ACEOF
21218cat confdefs.h >>conftest.$ac_ext
21219cat >>conftest.$ac_ext <<_ACEOF
21220/* end confdefs.h. */
21221
21222/* Override any gcc2 internal prototype to avoid an error. */
21223#ifdef __cplusplus
21224extern "C"
21225#endif
21226/* We use char because int might match the return type of a gcc2
21227 builtin and then its argument prototype would still apply. */
21228char deflate ();
21229int
21230main ()
21231{
21232deflate ();
21233 ;
21234 return 0;
21235}
21236_ACEOF
21237rm -f conftest.$ac_objext conftest$ac_exeext
21238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21239 (eval $ac_link) 2>conftest.er1
a848cd7e 21240 ac_status=$?
ac1cb8d3
VS
21241 grep -v '^ *+' conftest.er1 >conftest.err
21242 rm -f conftest.er1
21243 cat conftest.err >&5
a848cd7e
SC
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } &&
04840eaa
VS
21246 { ac_try='test -z "$ac_c_werror_flag"
21247 || test ! -s conftest.err'
ac1cb8d3
VS
21248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249 (eval $ac_try) 2>&5
21250 ac_status=$?
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; } &&
21253 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21256 ac_status=$?
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; }; then
21259 ac_cv_lib_z_deflate=yes
21260else
21261 echo "$as_me: failed program was:" >&5
21262sed 's/^/| /' conftest.$ac_ext >&5
21263
21264ac_cv_lib_z_deflate=no
21265fi
ac1cb8d3
VS
21266rm -f conftest.err conftest.$ac_objext \
21267 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21268LIBS=$ac_check_lib_save_LIBS
21269fi
21270echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
21271echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
21272if test $ac_cv_lib_z_deflate = yes; then
21273 ZLIB_LINK=" -lz"
21274fi
21275
21276 fi
21277
21278 if test "x$ZLIB_LINK" = "x" ; then
21279 if test "$wxUSE_ZLIB" = "sys" ; then
21280 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
21281echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
21282 { (exit 1); exit 1; }; }
21283 else
21284 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
21285echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21286 wxUSE_ZLIB=builtin
21287 fi
21288 else
21289 wxUSE_ZLIB=sys
21290 fi
21291 fi
21292fi
21293
21294
21295PNG_LINK=
21296if test "$wxUSE_LIBPNG" != "no" ; then
21297 cat >>confdefs.h <<\_ACEOF
21298#define wxUSE_LIBPNG 1
21299_ACEOF
21300
21301
21302 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
21303 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
21304echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21305 wxUSE_LIBPNG=sys
21306 fi
21307
21308 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
21309 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
21310echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21311 wxUSE_LIBPNG=builtin
21312 fi
21313
21314 if test "$wxUSE_MGL" != 1 ; then
21315 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
21316 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
21317echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
21318if test "${ac_cv_header_png_h+set}" = set; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21320else
21321 if test "$cross_compiling" = yes; then
21322 unset ac_cv_header_png_h
21323
21324else
21325 cat >conftest.$ac_ext <<_ACEOF
21326/* confdefs.h. */
21327_ACEOF
21328cat confdefs.h >>conftest.$ac_ext
21329cat >>conftest.$ac_ext <<_ACEOF
21330/* end confdefs.h. */
21331
21332 #include <png.h>
21333 #include <stdio.h>
21334
21335 int main()
21336 {
21337 FILE *f=fopen("conftestval", "w");
21338 if (!f) exit(1);
21339 fprintf(f, "%s",
21340 PNG_LIBPNG_VER > 90 ? "yes" : "no");
21341 exit(0);
21342 }
21343
21344_ACEOF
21345rm -f conftest$ac_exeext
21346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21347 (eval $ac_link) 2>&5
21348 ac_status=$?
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_header_png_h=`cat conftestval`
21357else
21358 echo "$as_me: program exited with status $ac_status" >&5
21359echo "$as_me: failed program was:" >&5
21360sed 's/^/| /' conftest.$ac_ext >&5
21361
21362( exit $ac_status )
21363ac_cv_header_png_h=no
21364fi
ac1cb8d3 21365rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21366fi
21367
21368fi
21369echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21370echo "${ECHO_T}$ac_cv_header_png_h" >&6
21371 if test "${ac_cv_header_png_h+set}" = set; then
21372 echo "$as_me:$LINENO: checking for png.h" >&5
21373echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21374if test "${ac_cv_header_png_h+set}" = set; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21376fi
21377echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21378echo "${ECHO_T}$ac_cv_header_png_h" >&6
21379else
21380 # Is the header compilable?
21381echo "$as_me:$LINENO: checking png.h usability" >&5
21382echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
21383cat >conftest.$ac_ext <<_ACEOF
21384/* confdefs.h. */
21385_ACEOF
21386cat confdefs.h >>conftest.$ac_ext
21387cat >>conftest.$ac_ext <<_ACEOF
21388/* end confdefs.h. */
21389$ac_includes_default
21390#include <png.h>
21391_ACEOF
21392rm -f conftest.$ac_objext
21393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21394 (eval $ac_compile) 2>conftest.er1
a848cd7e 21395 ac_status=$?
ac1cb8d3
VS
21396 grep -v '^ *+' conftest.er1 >conftest.err
21397 rm -f conftest.er1
21398 cat conftest.err >&5
a848cd7e
SC
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } &&
04840eaa
VS
21401 { ac_try='test -z "$ac_c_werror_flag"
21402 || test ! -s conftest.err'
ac1cb8d3
VS
21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21405 ac_status=$?
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; } &&
21408 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; }; then
21414 ac_header_compiler=yes
21415else
21416 echo "$as_me: failed program was:" >&5
21417sed 's/^/| /' conftest.$ac_ext >&5
21418
21419ac_header_compiler=no
21420fi
ac1cb8d3 21421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21422echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21423echo "${ECHO_T}$ac_header_compiler" >&6
21424
21425# Is the header present?
21426echo "$as_me:$LINENO: checking png.h presence" >&5
21427echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
21428cat >conftest.$ac_ext <<_ACEOF
21429/* confdefs.h. */
21430_ACEOF
21431cat confdefs.h >>conftest.$ac_ext
21432cat >>conftest.$ac_ext <<_ACEOF
21433/* end confdefs.h. */
21434#include <png.h>
21435_ACEOF
21436if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21438 ac_status=$?
21439 grep -v '^ *+' conftest.er1 >conftest.err
21440 rm -f conftest.er1
21441 cat conftest.err >&5
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); } >/dev/null; then
21444 if test -s conftest.err; then
21445 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21446 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21447 else
21448 ac_cpp_err=
21449 fi
21450else
21451 ac_cpp_err=yes
21452fi
21453if test -z "$ac_cpp_err"; then
21454 ac_header_preproc=yes
21455else
21456 echo "$as_me: failed program was:" >&5
21457sed 's/^/| /' conftest.$ac_ext >&5
21458
21459 ac_header_preproc=no
21460fi
21461rm -f conftest.err conftest.$ac_ext
21462echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21463echo "${ECHO_T}$ac_header_preproc" >&6
21464
21465# So? What about this header?
ac1cb8d3
VS
21466case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21467 yes:no: )
a848cd7e
SC
21468 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
21469echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21470 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
21471echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
21472 ac_header_preproc=yes
a848cd7e 21473 ;;
ac1cb8d3 21474 no:yes:* )
a848cd7e
SC
21475 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
21476echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21477 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
21478echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
21479 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
21480echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
21481 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
21482echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21483 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
21484echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21485 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
21486echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21487 (
21488 cat <<\_ASBOX
ac1cb8d3
VS
21489## ----------------------------------------- ##
21490## Report this to wx-dev@lists.wxwidgets.org ##
21491## ----------------------------------------- ##
a848cd7e
SC
21492_ASBOX
21493 ) |
21494 sed "s/^/$as_me: WARNING: /" >&2
21495 ;;
21496esac
21497echo "$as_me:$LINENO: checking for png.h" >&5
21498echo $ECHO_N "checking for png.h... $ECHO_C" >&6
21499if test "${ac_cv_header_png_h+set}" = set; then
21500 echo $ECHO_N "(cached) $ECHO_C" >&6
21501else
21502 ac_cv_header_png_h=$ac_header_preproc
21503fi
21504echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
21505echo "${ECHO_T}$ac_cv_header_png_h" >&6
21506
21507fi
21508
21509
21510
21511 if test "$ac_cv_header_png_h" = "yes"; then
21512 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
21513echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
21514if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
21515 echo $ECHO_N "(cached) $ECHO_C" >&6
21516else
21517 ac_check_lib_save_LIBS=$LIBS
21518LIBS="-lpng -lz -lm $LIBS"
21519cat >conftest.$ac_ext <<_ACEOF
21520/* confdefs.h. */
21521_ACEOF
21522cat confdefs.h >>conftest.$ac_ext
21523cat >>conftest.$ac_ext <<_ACEOF
21524/* end confdefs.h. */
21525
21526/* Override any gcc2 internal prototype to avoid an error. */
21527#ifdef __cplusplus
21528extern "C"
21529#endif
21530/* We use char because int might match the return type of a gcc2
21531 builtin and then its argument prototype would still apply. */
21532char png_check_sig ();
21533int
21534main ()
21535{
21536png_check_sig ();
21537 ;
21538 return 0;
21539}
21540_ACEOF
21541rm -f conftest.$ac_objext conftest$ac_exeext
21542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21543 (eval $ac_link) 2>conftest.er1
a848cd7e 21544 ac_status=$?
ac1cb8d3
VS
21545 grep -v '^ *+' conftest.er1 >conftest.err
21546 rm -f conftest.er1
21547 cat conftest.err >&5
a848cd7e
SC
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } &&
04840eaa
VS
21550 { ac_try='test -z "$ac_c_werror_flag"
21551 || test ! -s conftest.err'
ac1cb8d3
VS
21552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21553 (eval $ac_try) 2>&5
21554 ac_status=$?
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); }; } &&
21557 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21559 (eval $ac_try) 2>&5
21560 ac_status=$?
21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21562 (exit $ac_status); }; }; then
21563 ac_cv_lib_png_png_check_sig=yes
21564else
21565 echo "$as_me: failed program was:" >&5
21566sed 's/^/| /' conftest.$ac_ext >&5
21567
21568ac_cv_lib_png_png_check_sig=no
21569fi
ac1cb8d3
VS
21570rm -f conftest.err conftest.$ac_objext \
21571 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21572LIBS=$ac_check_lib_save_LIBS
21573fi
21574echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
21575echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
21576if test $ac_cv_lib_png_png_check_sig = yes; then
21577 PNG_LINK=" -lpng -lz"
21578fi
21579
21580 fi
21581
21582 if test "x$PNG_LINK" = "x" ; then
21583 if test "$wxUSE_LIBPNG" = "sys" ; then
21584 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
21585echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
21586 { (exit 1); exit 1; }; }
21587 else
21588 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
21589echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21590 wxUSE_LIBPNG=builtin
21591 fi
21592 else
21593 wxUSE_LIBPNG=sys
21594 fi
21595 fi
21596 fi
21597
21598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
21599fi
21600
21601
21602JPEG_LINK=
21603if test "$wxUSE_LIBJPEG" != "no" ; then
21604 cat >>confdefs.h <<\_ACEOF
21605#define wxUSE_LIBJPEG 1
21606_ACEOF
21607
21608
21609 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
21610 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
21611echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21612 wxUSE_LIBJPEG=sys
21613 fi
21614
21615 if test "$wxUSE_MGL" != 1 ; then
21616 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
21617 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
21618echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
21619 if test "${ac_cv_header_jpeglib_h+set}" = set; then
21620 echo $ECHO_N "(cached) $ECHO_C" >&6
21621else
21622 cat >conftest.$ac_ext <<_ACEOF
21623/* confdefs.h. */
21624_ACEOF
21625cat confdefs.h >>conftest.$ac_ext
21626cat >>conftest.$ac_ext <<_ACEOF
21627/* end confdefs.h. */
21628
21629 #undef HAVE_STDLIB_H
21630 #include <stdio.h>
21631 #include <jpeglib.h>
21632
21633int
21634main ()
21635{
21636
21637
21638 ;
21639 return 0;
21640}
21641_ACEOF
21642rm -f conftest.$ac_objext
21643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21644 (eval $ac_compile) 2>conftest.er1
a848cd7e 21645 ac_status=$?
ac1cb8d3
VS
21646 grep -v '^ *+' conftest.er1 >conftest.err
21647 rm -f conftest.er1
21648 cat conftest.err >&5
a848cd7e
SC
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } &&
04840eaa
VS
21651 { ac_try='test -z "$ac_c_werror_flag"
21652 || test ! -s conftest.err'
ac1cb8d3
VS
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; } &&
21658 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660 (eval $ac_try) 2>&5
21661 ac_status=$?
21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663 (exit $ac_status); }; }; then
21664 ac_cv_header_jpeglib_h=yes
21665else
21666 echo "$as_me: failed program was:" >&5
21667sed 's/^/| /' conftest.$ac_ext >&5
21668
21669ac_cv_header_jpeglib_h=no
21670
21671fi
ac1cb8d3 21672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21673
21674fi
21675
21676 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
21677echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
21678
21679 if test "$ac_cv_header_jpeglib_h" = "yes"; then
21680 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
21681echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
21682if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
21683 echo $ECHO_N "(cached) $ECHO_C" >&6
21684else
21685 ac_check_lib_save_LIBS=$LIBS
21686LIBS="-ljpeg $LIBS"
21687cat >conftest.$ac_ext <<_ACEOF
21688/* confdefs.h. */
21689_ACEOF
21690cat confdefs.h >>conftest.$ac_ext
21691cat >>conftest.$ac_ext <<_ACEOF
21692/* end confdefs.h. */
21693
21694/* Override any gcc2 internal prototype to avoid an error. */
21695#ifdef __cplusplus
21696extern "C"
21697#endif
21698/* We use char because int might match the return type of a gcc2
21699 builtin and then its argument prototype would still apply. */
21700char jpeg_read_header ();
21701int
21702main ()
21703{
21704jpeg_read_header ();
21705 ;
21706 return 0;
21707}
21708_ACEOF
21709rm -f conftest.$ac_objext conftest$ac_exeext
21710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21711 (eval $ac_link) 2>conftest.er1
a848cd7e 21712 ac_status=$?
ac1cb8d3
VS
21713 grep -v '^ *+' conftest.er1 >conftest.err
21714 rm -f conftest.er1
21715 cat conftest.err >&5
a848cd7e
SC
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } &&
04840eaa
VS
21718 { ac_try='test -z "$ac_c_werror_flag"
21719 || test ! -s conftest.err'
ac1cb8d3
VS
21720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21722 ac_status=$?
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; } &&
21725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21728 ac_status=$?
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; }; then
21731 ac_cv_lib_jpeg_jpeg_read_header=yes
21732else
21733 echo "$as_me: failed program was:" >&5
21734sed 's/^/| /' conftest.$ac_ext >&5
21735
21736ac_cv_lib_jpeg_jpeg_read_header=no
21737fi
ac1cb8d3
VS
21738rm -f conftest.err conftest.$ac_objext \
21739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21740LIBS=$ac_check_lib_save_LIBS
21741fi
21742echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
21743echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
21744if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21745 JPEG_LINK=" -ljpeg"
21746fi
21747
21748 fi
21749
21750 if test "x$JPEG_LINK" = "x" ; then
21751 if test "$wxUSE_LIBJPEG" = "sys" ; then
21752 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
21753echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
21754 { (exit 1); exit 1; }; }
21755 else
21756 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
21757echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21758 wxUSE_LIBJPEG=builtin
21759 fi
21760 else
21761 wxUSE_LIBJPEG=sys
21762 fi
21763 fi
21764 fi
21765fi
21766
21767
21768TIFF_LINK=
21769TIFF_PREREQ_LINKS=-lm
21770if test "$wxUSE_LIBTIFF" != "no" ; then
21771 cat >>confdefs.h <<\_ACEOF
21772#define wxUSE_LIBTIFF 1
21773_ACEOF
21774
21775
21776 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
21777 if test "$wxUSE_LIBJPEG" = "sys"; then
21778 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
21779 fi
21780 if test "$wxUSE_ZLIB" = "sys"; then
21781 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
21782 fi
21783 if test "${ac_cv_header_tiffio_h+set}" = set; then
21784 echo "$as_me:$LINENO: checking for tiffio.h" >&5
21785echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21786if test "${ac_cv_header_tiffio_h+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788fi
21789echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21790echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21791else
21792 # Is the header compilable?
21793echo "$as_me:$LINENO: checking tiffio.h usability" >&5
21794echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
21795cat >conftest.$ac_ext <<_ACEOF
21796/* confdefs.h. */
21797_ACEOF
21798cat confdefs.h >>conftest.$ac_ext
21799cat >>conftest.$ac_ext <<_ACEOF
21800/* end confdefs.h. */
21801$ac_includes_default
21802#include <tiffio.h>
21803_ACEOF
21804rm -f conftest.$ac_objext
21805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21806 (eval $ac_compile) 2>conftest.er1
a848cd7e 21807 ac_status=$?
ac1cb8d3
VS
21808 grep -v '^ *+' conftest.er1 >conftest.err
21809 rm -f conftest.er1
21810 cat conftest.err >&5
a848cd7e
SC
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } &&
04840eaa
VS
21813 { ac_try='test -z "$ac_c_werror_flag"
21814 || test ! -s conftest.err'
ac1cb8d3
VS
21815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816 (eval $ac_try) 2>&5
21817 ac_status=$?
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); }; } &&
21820 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822 (eval $ac_try) 2>&5
21823 ac_status=$?
21824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825 (exit $ac_status); }; }; then
21826 ac_header_compiler=yes
21827else
21828 echo "$as_me: failed program was:" >&5
21829sed 's/^/| /' conftest.$ac_ext >&5
21830
21831ac_header_compiler=no
21832fi
ac1cb8d3 21833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21834echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21835echo "${ECHO_T}$ac_header_compiler" >&6
21836
21837# Is the header present?
21838echo "$as_me:$LINENO: checking tiffio.h presence" >&5
21839echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
21840cat >conftest.$ac_ext <<_ACEOF
21841/* confdefs.h. */
21842_ACEOF
21843cat confdefs.h >>conftest.$ac_ext
21844cat >>conftest.$ac_ext <<_ACEOF
21845/* end confdefs.h. */
21846#include <tiffio.h>
21847_ACEOF
21848if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21850 ac_status=$?
21851 grep -v '^ *+' conftest.er1 >conftest.err
21852 rm -f conftest.er1
21853 cat conftest.err >&5
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); } >/dev/null; then
21856 if test -s conftest.err; then
21857 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 21858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
21859 else
21860 ac_cpp_err=
21861 fi
21862else
21863 ac_cpp_err=yes
21864fi
21865if test -z "$ac_cpp_err"; then
21866 ac_header_preproc=yes
21867else
21868 echo "$as_me: failed program was:" >&5
21869sed 's/^/| /' conftest.$ac_ext >&5
21870
21871 ac_header_preproc=no
21872fi
21873rm -f conftest.err conftest.$ac_ext
21874echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21875echo "${ECHO_T}$ac_header_preproc" >&6
21876
21877# So? What about this header?
ac1cb8d3
VS
21878case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21879 yes:no: )
a848cd7e
SC
21880 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
21881echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21882 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
21883echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
21884 ac_header_preproc=yes
a848cd7e 21885 ;;
ac1cb8d3 21886 no:yes:* )
a848cd7e
SC
21887 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
21888echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21889 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
21890echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
21891 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
21892echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
21893 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
21894echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21895 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
21896echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21897 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
21898echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21899 (
21900 cat <<\_ASBOX
ac1cb8d3
VS
21901## ----------------------------------------- ##
21902## Report this to wx-dev@lists.wxwidgets.org ##
21903## ----------------------------------------- ##
a848cd7e
SC
21904_ASBOX
21905 ) |
21906 sed "s/^/$as_me: WARNING: /" >&2
21907 ;;
21908esac
21909echo "$as_me:$LINENO: checking for tiffio.h" >&5
21910echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
21911if test "${ac_cv_header_tiffio_h+set}" = set; then
21912 echo $ECHO_N "(cached) $ECHO_C" >&6
21913else
21914 ac_cv_header_tiffio_h=$ac_header_preproc
21915fi
21916echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
21917echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
21918
21919fi
21920if test $ac_cv_header_tiffio_h = yes; then
21921
21922 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
21923echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
21924if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
21925 echo $ECHO_N "(cached) $ECHO_C" >&6
21926else
21927 ac_check_lib_save_LIBS=$LIBS
21928LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
21929cat >conftest.$ac_ext <<_ACEOF
21930/* confdefs.h. */
21931_ACEOF
21932cat confdefs.h >>conftest.$ac_ext
21933cat >>conftest.$ac_ext <<_ACEOF
21934/* end confdefs.h. */
21935
21936/* Override any gcc2 internal prototype to avoid an error. */
21937#ifdef __cplusplus
21938extern "C"
21939#endif
21940/* We use char because int might match the return type of a gcc2
21941 builtin and then its argument prototype would still apply. */
21942char TIFFError ();
21943int
21944main ()
21945{
21946TIFFError ();
21947 ;
21948 return 0;
21949}
21950_ACEOF
21951rm -f conftest.$ac_objext conftest$ac_exeext
21952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 21953 (eval $ac_link) 2>conftest.er1
a848cd7e 21954 ac_status=$?
ac1cb8d3
VS
21955 grep -v '^ *+' conftest.er1 >conftest.err
21956 rm -f conftest.er1
21957 cat conftest.err >&5
a848cd7e
SC
21958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21959 (exit $ac_status); } &&
04840eaa
VS
21960 { ac_try='test -z "$ac_c_werror_flag"
21961 || test ! -s conftest.err'
ac1cb8d3
VS
21962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21963 (eval $ac_try) 2>&5
21964 ac_status=$?
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); }; } &&
21967 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
21968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21969 (eval $ac_try) 2>&5
21970 ac_status=$?
21971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21972 (exit $ac_status); }; }; then
21973 ac_cv_lib_tiff_TIFFError=yes
21974else
21975 echo "$as_me: failed program was:" >&5
21976sed 's/^/| /' conftest.$ac_ext >&5
21977
21978ac_cv_lib_tiff_TIFFError=no
21979fi
ac1cb8d3
VS
21980rm -f conftest.err conftest.$ac_objext \
21981 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
21982LIBS=$ac_check_lib_save_LIBS
21983fi
21984echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
21985echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
21986if test $ac_cv_lib_tiff_TIFFError = yes; then
21987 TIFF_LINK=" -ltiff"
21988fi
21989
21990
21991
21992fi
21993
21994
21995
21996 if test "x$TIFF_LINK" = "x" ; then
21997 if test "$wxUSE_LIBTIFF" = "sys" ; then
21998 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
21999echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
22000 { (exit 1); exit 1; }; }
22001 else
22002 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
22003echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
22004 wxUSE_LIBTIFF=builtin
22005 fi
22006 else
22007 wxUSE_LIBTIFF=sys
22008 fi
22009 fi
22010fi
22011
22012
22013if test "$wxUSE_EXPAT" != "no"; then
22014 wxUSE_XML=yes
22015 cat >>confdefs.h <<\_ACEOF
22016#define wxUSE_EXPAT 1
22017_ACEOF
22018
22019 cat >>confdefs.h <<\_ACEOF
22020#define wxUSE_XML 1
22021_ACEOF
22022
22023
22024 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
22025 if test "${ac_cv_header_expat_h+set}" = set; then
22026 echo "$as_me:$LINENO: checking for expat.h" >&5
22027echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22028if test "${ac_cv_header_expat_h+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22030fi
22031echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22032echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22033else
22034 # Is the header compilable?
22035echo "$as_me:$LINENO: checking expat.h usability" >&5
22036echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
22037cat >conftest.$ac_ext <<_ACEOF
22038/* confdefs.h. */
22039_ACEOF
22040cat confdefs.h >>conftest.$ac_ext
22041cat >>conftest.$ac_ext <<_ACEOF
22042/* end confdefs.h. */
22043$ac_includes_default
22044#include <expat.h>
22045_ACEOF
22046rm -f conftest.$ac_objext
22047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22048 (eval $ac_compile) 2>conftest.er1
a848cd7e 22049 ac_status=$?
ac1cb8d3
VS
22050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
a848cd7e
SC
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
04840eaa
VS
22055 { ac_try='test -z "$ac_c_werror_flag"
22056 || test ! -s conftest.err'
ac1cb8d3
VS
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; } &&
22062 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068 ac_header_compiler=yes
22069else
22070 echo "$as_me: failed program was:" >&5
22071sed 's/^/| /' conftest.$ac_ext >&5
22072
22073ac_header_compiler=no
22074fi
ac1cb8d3 22075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22076echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22077echo "${ECHO_T}$ac_header_compiler" >&6
22078
22079# Is the header present?
22080echo "$as_me:$LINENO: checking expat.h presence" >&5
22081echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
22082cat >conftest.$ac_ext <<_ACEOF
22083/* confdefs.h. */
22084_ACEOF
22085cat confdefs.h >>conftest.$ac_ext
22086cat >>conftest.$ac_ext <<_ACEOF
22087/* end confdefs.h. */
22088#include <expat.h>
22089_ACEOF
22090if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22091 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22092 ac_status=$?
22093 grep -v '^ *+' conftest.er1 >conftest.err
22094 rm -f conftest.er1
22095 cat conftest.err >&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } >/dev/null; then
22098 if test -s conftest.err; then
22099 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22101 else
22102 ac_cpp_err=
22103 fi
22104else
22105 ac_cpp_err=yes
22106fi
22107if test -z "$ac_cpp_err"; then
22108 ac_header_preproc=yes
22109else
22110 echo "$as_me: failed program was:" >&5
22111sed 's/^/| /' conftest.$ac_ext >&5
22112
22113 ac_header_preproc=no
22114fi
22115rm -f conftest.err conftest.$ac_ext
22116echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22117echo "${ECHO_T}$ac_header_preproc" >&6
22118
22119# So? What about this header?
ac1cb8d3
VS
22120case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22121 yes:no: )
a848cd7e
SC
22122 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
22123echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22124 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
22125echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
22126 ac_header_preproc=yes
a848cd7e 22127 ;;
ac1cb8d3 22128 no:yes:* )
a848cd7e
SC
22129 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
22130echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22131 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
22132echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
22133 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
22134echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
22135 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
22136echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22137 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
22138echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22139 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
22140echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22141 (
22142 cat <<\_ASBOX
ac1cb8d3
VS
22143## ----------------------------------------- ##
22144## Report this to wx-dev@lists.wxwidgets.org ##
22145## ----------------------------------------- ##
a848cd7e
SC
22146_ASBOX
22147 ) |
22148 sed "s/^/$as_me: WARNING: /" >&2
22149 ;;
22150esac
22151echo "$as_me:$LINENO: checking for expat.h" >&5
22152echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
22153if test "${ac_cv_header_expat_h+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22155else
22156 ac_cv_header_expat_h=$ac_header_preproc
22157fi
22158echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
22159echo "${ECHO_T}$ac_cv_header_expat_h" >&6
22160
22161fi
22162if test $ac_cv_header_expat_h = yes; then
22163 found_expat_h=1
22164fi
22165
22166
22167 if test "x$found_expat_h" = "x1"; then
22168 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
22169echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
22170if test "${wx_cv_expat_is_not_broken+set}" = set; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22172else
22173
22174
22175
22176 ac_ext=cc
22177ac_cpp='$CXXCPP $CPPFLAGS'
22178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22181
22182 cat >conftest.$ac_ext <<_ACEOF
22183/* confdefs.h. */
22184_ACEOF
22185cat confdefs.h >>conftest.$ac_ext
22186cat >>conftest.$ac_ext <<_ACEOF
22187/* end confdefs.h. */
22188#include <expat.h>
22189int
22190main ()
22191{
22192
22193 ;
22194 return 0;
22195}
22196_ACEOF
22197rm -f conftest.$ac_objext
22198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22199 (eval $ac_compile) 2>conftest.er1
a848cd7e 22200 ac_status=$?
ac1cb8d3
VS
22201 grep -v '^ *+' conftest.er1 >conftest.err
22202 rm -f conftest.er1
22203 cat conftest.err >&5
a848cd7e
SC
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); } &&
04840eaa
VS
22206 { ac_try='test -z "$ac_cxx_werror_flag"
22207 || test ! -s conftest.err'
ac1cb8d3
VS
22208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22209 (eval $ac_try) 2>&5
22210 ac_status=$?
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); }; } &&
22213 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22216 ac_status=$?
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; }; then
22219 wx_cv_expat_is_not_broken=yes
22220else
22221 echo "$as_me: failed program was:" >&5
22222sed 's/^/| /' conftest.$ac_ext >&5
22223
22224wx_cv_expat_is_not_broken=no
22225
22226fi
ac1cb8d3 22227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22228 ac_ext=c
22229ac_cpp='$CPP $CPPFLAGS'
22230ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22231ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22232ac_compiler_gnu=$ac_cv_c_compiler_gnu
22233
22234
22235
22236fi
22237echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
22238echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
22239 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
22240 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
22241echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
22242if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
22243 echo $ECHO_N "(cached) $ECHO_C" >&6
22244else
22245 ac_check_lib_save_LIBS=$LIBS
22246LIBS="-lexpat $LIBS"
22247cat >conftest.$ac_ext <<_ACEOF
22248/* confdefs.h. */
22249_ACEOF
22250cat confdefs.h >>conftest.$ac_ext
22251cat >>conftest.$ac_ext <<_ACEOF
22252/* end confdefs.h. */
22253
22254/* Override any gcc2 internal prototype to avoid an error. */
22255#ifdef __cplusplus
22256extern "C"
22257#endif
22258/* We use char because int might match the return type of a gcc2
22259 builtin and then its argument prototype would still apply. */
22260char XML_ParserCreate ();
22261int
22262main ()
22263{
22264XML_ParserCreate ();
22265 ;
22266 return 0;
22267}
22268_ACEOF
22269rm -f conftest.$ac_objext conftest$ac_exeext
22270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22271 (eval $ac_link) 2>conftest.er1
a848cd7e 22272 ac_status=$?
ac1cb8d3
VS
22273 grep -v '^ *+' conftest.er1 >conftest.err
22274 rm -f conftest.er1
22275 cat conftest.err >&5
a848cd7e
SC
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } &&
04840eaa
VS
22278 { ac_try='test -z "$ac_c_werror_flag"
22279 || test ! -s conftest.err'
ac1cb8d3
VS
22280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; } &&
22285 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
22291 ac_cv_lib_expat_XML_ParserCreate=yes
22292else
22293 echo "$as_me: failed program was:" >&5
22294sed 's/^/| /' conftest.$ac_ext >&5
22295
22296ac_cv_lib_expat_XML_ParserCreate=no
22297fi
ac1cb8d3
VS
22298rm -f conftest.err conftest.$ac_objext \
22299 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22300LIBS=$ac_check_lib_save_LIBS
22301fi
22302echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
22303echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
22304if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
22305 EXPAT_LINK=" -lexpat"
22306fi
22307
22308 fi
22309 fi
22310 if test "x$EXPAT_LINK" = "x" ; then
22311 if test "$wxUSE_EXPAT" = "sys" ; then
22312 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
22313echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
22314 { (exit 1); exit 1; }; }
22315 else
22316 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
22317echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
22318 wxUSE_EXPAT=builtin
22319 fi
22320 else
22321 wxUSE_EXPAT=sys
22322 fi
22323 fi
22324 if test "$wxUSE_EXPAT" = "builtin" ; then
22325
22326
22327subdirs="$subdirs src/expat"
22328
22329 fi
22330fi
22331
22332
22333
22334if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
22335 if test "${ac_cv_header_mspack_h+set}" = set; then
22336 echo "$as_me:$LINENO: checking for mspack.h" >&5
22337echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22338if test "${ac_cv_header_mspack_h+set}" = set; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
22340fi
22341echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22342echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22343else
22344 # Is the header compilable?
22345echo "$as_me:$LINENO: checking mspack.h usability" >&5
22346echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
22347cat >conftest.$ac_ext <<_ACEOF
22348/* confdefs.h. */
22349_ACEOF
22350cat confdefs.h >>conftest.$ac_ext
22351cat >>conftest.$ac_ext <<_ACEOF
22352/* end confdefs.h. */
22353$ac_includes_default
22354#include <mspack.h>
22355_ACEOF
22356rm -f conftest.$ac_objext
22357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22358 (eval $ac_compile) 2>conftest.er1
a848cd7e 22359 ac_status=$?
ac1cb8d3
VS
22360 grep -v '^ *+' conftest.er1 >conftest.err
22361 rm -f conftest.er1
22362 cat conftest.err >&5
a848cd7e
SC
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); } &&
04840eaa
VS
22365 { ac_try='test -z "$ac_c_werror_flag"
22366 || test ! -s conftest.err'
ac1cb8d3
VS
22367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368 (eval $ac_try) 2>&5
22369 ac_status=$?
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; } &&
22372 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374 (eval $ac_try) 2>&5
22375 ac_status=$?
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); }; }; then
22378 ac_header_compiler=yes
22379else
22380 echo "$as_me: failed program was:" >&5
22381sed 's/^/| /' conftest.$ac_ext >&5
22382
22383ac_header_compiler=no
22384fi
ac1cb8d3 22385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22387echo "${ECHO_T}$ac_header_compiler" >&6
22388
22389# Is the header present?
22390echo "$as_me:$LINENO: checking mspack.h presence" >&5
22391echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
22392cat >conftest.$ac_ext <<_ACEOF
22393/* confdefs.h. */
22394_ACEOF
22395cat confdefs.h >>conftest.$ac_ext
22396cat >>conftest.$ac_ext <<_ACEOF
22397/* end confdefs.h. */
22398#include <mspack.h>
22399_ACEOF
22400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22402 ac_status=$?
22403 grep -v '^ *+' conftest.er1 >conftest.err
22404 rm -f conftest.er1
22405 cat conftest.err >&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } >/dev/null; then
22408 if test -s conftest.err; then
22409 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22410 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22411 else
22412 ac_cpp_err=
22413 fi
22414else
22415 ac_cpp_err=yes
22416fi
22417if test -z "$ac_cpp_err"; then
22418 ac_header_preproc=yes
22419else
22420 echo "$as_me: failed program was:" >&5
22421sed 's/^/| /' conftest.$ac_ext >&5
22422
22423 ac_header_preproc=no
22424fi
22425rm -f conftest.err conftest.$ac_ext
22426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22427echo "${ECHO_T}$ac_header_preproc" >&6
22428
22429# So? What about this header?
ac1cb8d3
VS
22430case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22431 yes:no: )
a848cd7e
SC
22432 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
22433echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22434 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
22435echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
22436 ac_header_preproc=yes
a848cd7e 22437 ;;
ac1cb8d3 22438 no:yes:* )
a848cd7e
SC
22439 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
22440echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22441 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
22442echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
22443 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
22444echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
22445 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
22446echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22447 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
22448echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22449 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
22450echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22451 (
22452 cat <<\_ASBOX
ac1cb8d3
VS
22453## ----------------------------------------- ##
22454## Report this to wx-dev@lists.wxwidgets.org ##
22455## ----------------------------------------- ##
a848cd7e
SC
22456_ASBOX
22457 ) |
22458 sed "s/^/$as_me: WARNING: /" >&2
22459 ;;
22460esac
22461echo "$as_me:$LINENO: checking for mspack.h" >&5
22462echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
22463if test "${ac_cv_header_mspack_h+set}" = set; then
22464 echo $ECHO_N "(cached) $ECHO_C" >&6
22465else
22466 ac_cv_header_mspack_h=$ac_header_preproc
22467fi
22468echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
22469echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
22470
22471fi
22472if test $ac_cv_header_mspack_h = yes; then
22473 found_mspack_h=1
22474fi
22475
22476
22477 if test "x$found_mspack_h" = "x1"; then
22478 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
22479echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
22480if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
22481 echo $ECHO_N "(cached) $ECHO_C" >&6
22482else
22483 ac_check_lib_save_LIBS=$LIBS
22484LIBS="-lmspack $LIBS"
22485cat >conftest.$ac_ext <<_ACEOF
22486/* confdefs.h. */
22487_ACEOF
22488cat confdefs.h >>conftest.$ac_ext
22489cat >>conftest.$ac_ext <<_ACEOF
22490/* end confdefs.h. */
22491
22492/* Override any gcc2 internal prototype to avoid an error. */
22493#ifdef __cplusplus
22494extern "C"
22495#endif
22496/* We use char because int might match the return type of a gcc2
22497 builtin and then its argument prototype would still apply. */
22498char mspack_create_chm_decompressor ();
22499int
22500main ()
22501{
22502mspack_create_chm_decompressor ();
22503 ;
22504 return 0;
22505}
22506_ACEOF
22507rm -f conftest.$ac_objext conftest$ac_exeext
22508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 22509 (eval $ac_link) 2>conftest.er1
a848cd7e 22510 ac_status=$?
ac1cb8d3
VS
22511 grep -v '^ *+' conftest.er1 >conftest.err
22512 rm -f conftest.er1
22513 cat conftest.err >&5
a848cd7e
SC
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } &&
04840eaa
VS
22516 { ac_try='test -z "$ac_c_werror_flag"
22517 || test ! -s conftest.err'
ac1cb8d3
VS
22518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519 (eval $ac_try) 2>&5
22520 ac_status=$?
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); }; } &&
22523 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
22524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22525 (eval $ac_try) 2>&5
22526 ac_status=$?
22527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22528 (exit $ac_status); }; }; then
22529 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
22530else
22531 echo "$as_me: failed program was:" >&5
22532sed 's/^/| /' conftest.$ac_ext >&5
22533
22534ac_cv_lib_mspack_mspack_create_chm_decompressor=no
22535fi
ac1cb8d3
VS
22536rm -f conftest.err conftest.$ac_objext \
22537 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
22538LIBS=$ac_check_lib_save_LIBS
22539fi
22540echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
22541echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
22542if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
22543 MSPACK_LINK=" -lmspack"
22544fi
22545
22546 fi
22547 if test "x$MSPACK_LINK" = "x" ; then
22548 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
22549 fi
22550fi
22551
22552if test "$wxUSE_LIBMSPACK" != "no"; then
22553 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
22554#define wxUSE_LIBMSPACK 1
22555_ACEOF
22556
a848cd7e
SC
22557fi
22558
22559
22560
22561AFMINSTALL=
22562WIN32INSTALL=
22563
22564TOOLKIT=
22565TOOLKIT_INCLUDE=
22566WIDGET_SET=
22567
22568if test "$USE_WIN32" = 1 ; then
22569
22570for ac_header in w32api.h
22571do
22572as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22573if eval "test \"\${$as_ac_Header+set}\" = set"; then
22574 echo "$as_me:$LINENO: checking for $ac_header" >&5
22575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22576if eval "test \"\${$as_ac_Header+set}\" = set"; then
22577 echo $ECHO_N "(cached) $ECHO_C" >&6
22578fi
22579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22581else
22582 # Is the header compilable?
22583echo "$as_me:$LINENO: checking $ac_header usability" >&5
22584echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22585cat >conftest.$ac_ext <<_ACEOF
22586/* confdefs.h. */
22587_ACEOF
22588cat confdefs.h >>conftest.$ac_ext
22589cat >>conftest.$ac_ext <<_ACEOF
22590/* end confdefs.h. */
22591$ac_includes_default
22592#include <$ac_header>
22593_ACEOF
22594rm -f conftest.$ac_objext
22595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22596 (eval $ac_compile) 2>conftest.er1
a848cd7e 22597 ac_status=$?
ac1cb8d3
VS
22598 grep -v '^ *+' conftest.er1 >conftest.err
22599 rm -f conftest.er1
22600 cat conftest.err >&5
a848cd7e
SC
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); } &&
04840eaa
VS
22603 { ac_try='test -z "$ac_c_werror_flag"
22604 || test ! -s conftest.err'
ac1cb8d3
VS
22605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22606 (eval $ac_try) 2>&5
22607 ac_status=$?
22608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); }; } &&
22610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22612 (eval $ac_try) 2>&5
22613 ac_status=$?
22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22615 (exit $ac_status); }; }; then
22616 ac_header_compiler=yes
22617else
22618 echo "$as_me: failed program was:" >&5
22619sed 's/^/| /' conftest.$ac_ext >&5
22620
22621ac_header_compiler=no
22622fi
ac1cb8d3 22623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22624echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22625echo "${ECHO_T}$ac_header_compiler" >&6
22626
22627# Is the header present?
22628echo "$as_me:$LINENO: checking $ac_header presence" >&5
22629echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22630cat >conftest.$ac_ext <<_ACEOF
22631/* confdefs.h. */
22632_ACEOF
22633cat confdefs.h >>conftest.$ac_ext
22634cat >>conftest.$ac_ext <<_ACEOF
22635/* end confdefs.h. */
22636#include <$ac_header>
22637_ACEOF
22638if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22640 ac_status=$?
22641 grep -v '^ *+' conftest.er1 >conftest.err
22642 rm -f conftest.er1
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } >/dev/null; then
22646 if test -s conftest.err; then
22647 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22648 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22649 else
22650 ac_cpp_err=
22651 fi
22652else
22653 ac_cpp_err=yes
22654fi
22655if test -z "$ac_cpp_err"; then
22656 ac_header_preproc=yes
22657else
22658 echo "$as_me: failed program was:" >&5
22659sed 's/^/| /' conftest.$ac_ext >&5
22660
22661 ac_header_preproc=no
22662fi
22663rm -f conftest.err conftest.$ac_ext
22664echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22665echo "${ECHO_T}$ac_header_preproc" >&6
22666
22667# So? What about this header?
ac1cb8d3
VS
22668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22669 yes:no: )
a848cd7e
SC
22670 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22671echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22673echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22674 ac_header_preproc=yes
a848cd7e 22675 ;;
ac1cb8d3 22676 no:yes:* )
a848cd7e
SC
22677 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22678echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22679 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22680echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22681 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22682echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22683 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22684echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22687 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22688echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22689 (
22690 cat <<\_ASBOX
ac1cb8d3
VS
22691## ----------------------------------------- ##
22692## Report this to wx-dev@lists.wxwidgets.org ##
22693## ----------------------------------------- ##
a848cd7e
SC
22694_ASBOX
22695 ) |
22696 sed "s/^/$as_me: WARNING: /" >&2
22697 ;;
22698esac
22699echo "$as_me:$LINENO: checking for $ac_header" >&5
22700echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22701if eval "test \"\${$as_ac_Header+set}\" = set"; then
22702 echo $ECHO_N "(cached) $ECHO_C" >&6
22703else
ac1cb8d3 22704 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
22705fi
22706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22708
22709fi
22710if test `eval echo '${'$as_ac_Header'}'` = yes; then
22711 cat >>confdefs.h <<_ACEOF
22712#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22713_ACEOF
22714
22715fi
22716
22717done
22718
22719 if test "${ac_cv_header_windows_h+set}" = set; then
22720 echo "$as_me:$LINENO: checking for windows.h" >&5
22721echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22722if test "${ac_cv_header_windows_h+set}" = set; then
22723 echo $ECHO_N "(cached) $ECHO_C" >&6
22724fi
22725echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22726echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22727else
22728 # Is the header compilable?
22729echo "$as_me:$LINENO: checking windows.h usability" >&5
22730echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
22731cat >conftest.$ac_ext <<_ACEOF
22732/* confdefs.h. */
22733_ACEOF
22734cat confdefs.h >>conftest.$ac_ext
22735cat >>conftest.$ac_ext <<_ACEOF
22736/* end confdefs.h. */
22737$ac_includes_default
22738#include <windows.h>
22739_ACEOF
22740rm -f conftest.$ac_objext
22741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22742 (eval $ac_compile) 2>conftest.er1
a848cd7e 22743 ac_status=$?
ac1cb8d3
VS
22744 grep -v '^ *+' conftest.er1 >conftest.err
22745 rm -f conftest.er1
22746 cat conftest.err >&5
a848cd7e
SC
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } &&
04840eaa
VS
22749 { ac_try='test -z "$ac_c_werror_flag"
22750 || test ! -s conftest.err'
ac1cb8d3
VS
22751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22753 ac_status=$?
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; } &&
22756 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758 (eval $ac_try) 2>&5
22759 ac_status=$?
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); }; }; then
22762 ac_header_compiler=yes
22763else
22764 echo "$as_me: failed program was:" >&5
22765sed 's/^/| /' conftest.$ac_ext >&5
22766
22767ac_header_compiler=no
22768fi
ac1cb8d3 22769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22770echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22771echo "${ECHO_T}$ac_header_compiler" >&6
22772
22773# Is the header present?
22774echo "$as_me:$LINENO: checking windows.h presence" >&5
22775echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
22776cat >conftest.$ac_ext <<_ACEOF
22777/* confdefs.h. */
22778_ACEOF
22779cat confdefs.h >>conftest.$ac_ext
22780cat >>conftest.$ac_ext <<_ACEOF
22781/* end confdefs.h. */
22782#include <windows.h>
22783_ACEOF
22784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22785 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22786 ac_status=$?
22787 grep -v '^ *+' conftest.er1 >conftest.err
22788 rm -f conftest.er1
22789 cat conftest.err >&5
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } >/dev/null; then
22792 if test -s conftest.err; then
22793 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 22794 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
22795 else
22796 ac_cpp_err=
22797 fi
22798else
22799 ac_cpp_err=yes
22800fi
22801if test -z "$ac_cpp_err"; then
22802 ac_header_preproc=yes
22803else
22804 echo "$as_me: failed program was:" >&5
22805sed 's/^/| /' conftest.$ac_ext >&5
22806
22807 ac_header_preproc=no
22808fi
22809rm -f conftest.err conftest.$ac_ext
22810echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22811echo "${ECHO_T}$ac_header_preproc" >&6
22812
22813# So? What about this header?
ac1cb8d3
VS
22814case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22815 yes:no: )
a848cd7e
SC
22816 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
22817echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
22818 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
22819echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
22820 ac_header_preproc=yes
a848cd7e 22821 ;;
ac1cb8d3 22822 no:yes:* )
a848cd7e
SC
22823 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
22824echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
22825 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
22826echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
22827 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
22828echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
22829 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
22830echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
22831 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
22832echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
22833 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
22834echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
22835 (
22836 cat <<\_ASBOX
ac1cb8d3
VS
22837## ----------------------------------------- ##
22838## Report this to wx-dev@lists.wxwidgets.org ##
22839## ----------------------------------------- ##
a848cd7e
SC
22840_ASBOX
22841 ) |
22842 sed "s/^/$as_me: WARNING: /" >&2
22843 ;;
22844esac
22845echo "$as_me:$LINENO: checking for windows.h" >&5
22846echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
22847if test "${ac_cv_header_windows_h+set}" = set; then
22848 echo $ECHO_N "(cached) $ECHO_C" >&6
22849else
22850 ac_cv_header_windows_h=$ac_header_preproc
22851fi
22852echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
22853echo "${ECHO_T}$ac_cv_header_windows_h" >&6
22854
22855fi
22856if test $ac_cv_header_windows_h = yes; then
22857 :
22858else
22859
22860 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
22861echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
22862 { (exit 1); exit 1; }; }
22863
22864fi
22865
22866
22867
22868 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
22869
22870 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
22871 LIBS="$LIBS -loleacc"
22872 fi
22873
22874 case "${host}" in
22875 *-*-cygwin* )
22876 LIBS="$LIBS -lkernel32 -luser32"
22877 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
22878 esac
22879
22880 if test "$wxUSE_ODBC" = "sys" ; then
22881 wxUSE_ODBC = "yes"
22882 fi
22883 if test "$wxUSE_ODBC" = "yes" ; then
22884 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
22885 cat >>confdefs.h <<\_ACEOF
22886#define wxUSE_ODBC 1
22887_ACEOF
22888
22889 fi
22890
22891 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
22892 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
22893
22894 WIN32INSTALL=win32install
22895fi
22896
22897if test "$wxUSE_GUI" = "yes"; then
22898 USE_GUI=1
22899
22900 GUI_TK_LIBRARY=
22901
22902 WXGTK12=
22903 WXGTK127=
22904 WXGTK20=
22905 WXGPE=
22906
207bc66c
RN
22907 if test "$wxUSE_COCOA" = 1 ; then
22908 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
22909 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
22910echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
22911 wxUSE_PRINTING_ARCHITECTURE=no
22912 fi
22913 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
22914 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
22915echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
22916 wxUSE_DRAG_AND_DROP=no
22917 fi
22918 if test "$wxUSE_DRAGIMAGE" = "yes"; then
22919 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
22920echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
22921 wxUSE_DRAGIMAGE=no
22922 fi
22923 fi
22924
a848cd7e
SC
22925 if test "$wxUSE_MSW" = 1 ; then
22926 TOOLKIT=MSW
22927 GUIDIST=MSW_DIST
22928
ceec2216 22929 case "${host}" in
a848cd7e
SC
22930 *-*-mingw32* )
22931 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
22932 esac
22933 fi
22934
22935 if test "$wxUSE_GTK" = 1; then
22936 echo "$as_me:$LINENO: checking for GTK+ version" >&5
22937echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
22938
22939 gtk_version_cached=1
22940 if test "${wx_cv_lib_gtk+set}" = set; then
22941 echo $ECHO_N "(cached) $ECHO_C" >&6
22942else
22943
22944 gtk_version_cached=0
22945 echo "$as_me:$LINENO: result: " >&5
22946echo "${ECHO_T}" >&6
22947
22948 GTK_MODULES=
22949 if test "$wxUSE_THREADS" = "yes"; then
22950 GTK_MODULES=gthread
22951 fi
22952
22953 wx_cv_lib_gtk=
22954 if test "x$wxUSE_GTK2" = "xyes"; then
22955 # Check whether --enable-gtktest or --disable-gtktest was given.
22956if test "${enable_gtktest+set}" = set; then
22957 enableval="$enable_gtktest"
22958
22959else
22960 enable_gtktest=yes
22961fi;
22962
22963 pkg_config_args=gtk+-2.0
22964 for module in . $GTK_MODULES
22965 do
22966 case "$module" in
22967 gthread)
22968 pkg_config_args="$pkg_config_args gthread-2.0"
22969 ;;
22970 esac
22971 done
22972
22973 no_gtk=""
22974
22975 # Extract the first word of "pkg-config", so it can be a program name with args.
22976set dummy pkg-config; ac_word=$2
22977echo "$as_me:$LINENO: checking for $ac_word" >&5
22978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22979if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22980 echo $ECHO_N "(cached) $ECHO_C" >&6
22981else
22982 case $PKG_CONFIG in
22983 [\\/]* | ?:[\\/]*)
22984 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22985 ;;
22986 *)
22987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22988for as_dir in $PATH
22989do
22990 IFS=$as_save_IFS
22991 test -z "$as_dir" && as_dir=.
22992 for ac_exec_ext in '' $ac_executable_extensions; do
22993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22994 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22996 break 2
22997 fi
22998done
22999done
23000
23001 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23002 ;;
23003esac
23004fi
23005PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23006
23007if test -n "$PKG_CONFIG"; then
23008 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23009echo "${ECHO_T}$PKG_CONFIG" >&6
23010else
23011 echo "$as_me:$LINENO: result: no" >&5
23012echo "${ECHO_T}no" >&6
23013fi
23014
23015
23016 if test x$PKG_CONFIG != xno ; then
23017 if pkg-config --atleast-pkgconfig-version 0.7 ; then
23018 :
23019 else
c2218763 23020 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
23021 no_gtk=yes
23022 PKG_CONFIG=no
23023 fi
23024 else
23025 no_gtk=yes
23026 fi
23027
23028 min_gtk_version=2.0.0
23029 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
23030echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
23031
23032 if test x$PKG_CONFIG != xno ; then
23033 ## don't try to run the test against uninstalled libtool libs
23034 if $PKG_CONFIG --uninstalled $pkg_config_args; then
23035 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
23036 enable_gtktest=no
23037 fi
23038
23039 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
23040 :
23041 else
23042 no_gtk=yes
23043 fi
23044 fi
23045
23046 if test x"$no_gtk" = x ; then
23047 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
23048 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
23049 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23050 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23051 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23052 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23053 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
23054 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23055 if test "x$enable_gtktest" = "xyes" ; then
23056 ac_save_CFLAGS="$CFLAGS"
23057 ac_save_LIBS="$LIBS"
23058 CFLAGS="$CFLAGS $GTK_CFLAGS"
23059 LIBS="$GTK_LIBS $LIBS"
23060 rm -f conf.gtktest
23061 if test "$cross_compiling" = yes; then
23062 echo $ac_n "cross compiling; assumed OK... $ac_c"
23063else
23064 cat >conftest.$ac_ext <<_ACEOF
23065/* confdefs.h. */
23066_ACEOF
23067cat confdefs.h >>conftest.$ac_ext
23068cat >>conftest.$ac_ext <<_ACEOF
23069/* end confdefs.h. */
23070
23071#include <gtk/gtk.h>
23072#include <stdio.h>
23073#include <stdlib.h>
23074
23075int
23076main ()
23077{
23078 int major, minor, micro;
23079 char *tmp_version;
23080
23081 system ("touch conf.gtktest");
23082
23083 /* HP/UX 9 (%@#!) writes to sscanf strings */
23084 tmp_version = g_strdup("$min_gtk_version");
23085 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23086 printf("%s, bad version string\n", "$min_gtk_version");
23087 exit(1);
23088 }
23089
23090 if ((gtk_major_version != $gtk_config_major_version) ||
23091 (gtk_minor_version != $gtk_config_minor_version) ||
23092 (gtk_micro_version != $gtk_config_micro_version))
23093 {
23094 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23095 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23096 gtk_major_version, gtk_minor_version, gtk_micro_version);
23097 printf ("*** was found! If pkg-config was correct, then it is best\n");
23098 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23099 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23100 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23101 printf("*** required on your system.\n");
23102 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
23103 printf("*** to point to the correct configuration files\n");
23104 }
23105 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23106 (gtk_minor_version != GTK_MINOR_VERSION) ||
23107 (gtk_micro_version != GTK_MICRO_VERSION))
23108 {
23109 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23110 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23111 printf("*** library (version %d.%d.%d)\n",
23112 gtk_major_version, gtk_minor_version, gtk_micro_version);
23113 }
23114 else
23115 {
23116 if ((gtk_major_version > major) ||
23117 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23118 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23119 {
23120 return 0;
23121 }
23122 else
23123 {
23124 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23125 gtk_major_version, gtk_minor_version, gtk_micro_version);
23126 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23127 major, minor, micro);
23128 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23129 printf("***\n");
23130 printf("*** If you have already installed a sufficiently new version, this error\n");
23131 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
23132 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23133 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
23134 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
23135 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23136 printf("*** so that the correct libraries are found at run-time))\n");
23137 }
23138 }
23139 return 1;
23140}
23141
23142_ACEOF
23143rm -f conftest$ac_exeext
23144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23145 (eval $ac_link) 2>&5
23146 ac_status=$?
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23151 ac_status=$?
23152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; }; then
23154 :
23155else
23156 echo "$as_me: program exited with status $ac_status" >&5
23157echo "$as_me: failed program was:" >&5
23158sed 's/^/| /' conftest.$ac_ext >&5
23159
23160( exit $ac_status )
23161no_gtk=yes
23162fi
ac1cb8d3 23163rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23164fi
23165 CFLAGS="$ac_save_CFLAGS"
23166 LIBS="$ac_save_LIBS"
23167 fi
23168 fi
23169 if test "x$no_gtk" = x ; then
23170 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
23171echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
23172 wx_cv_lib_gtk=2.0
23173 else
23174 echo "$as_me:$LINENO: result: no" >&5
23175echo "${ECHO_T}no" >&6
23176 if test "$PKG_CONFIG" = "no" ; then
23177 echo "*** A new enough version of pkg-config was not found."
23178 echo "*** See http://pkgconfig.sourceforge.net"
23179 else
23180 if test -f conf.gtktest ; then
23181 :
23182 else
23183 echo "*** Could not run GTK+ test program, checking why..."
23184 ac_save_CFLAGS="$CFLAGS"
23185 ac_save_LIBS="$LIBS"
23186 CFLAGS="$CFLAGS $GTK_CFLAGS"
23187 LIBS="$LIBS $GTK_LIBS"
23188 cat >conftest.$ac_ext <<_ACEOF
23189/* confdefs.h. */
23190_ACEOF
23191cat confdefs.h >>conftest.$ac_ext
23192cat >>conftest.$ac_ext <<_ACEOF
23193/* end confdefs.h. */
23194
23195#include <gtk/gtk.h>
23196#include <stdio.h>
23197
23198int
23199main ()
23200{
23201 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23202 ;
23203 return 0;
23204}
23205_ACEOF
23206rm -f conftest.$ac_objext conftest$ac_exeext
23207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23208 (eval $ac_link) 2>conftest.er1
a848cd7e 23209 ac_status=$?
ac1cb8d3
VS
23210 grep -v '^ *+' conftest.er1 >conftest.err
23211 rm -f conftest.er1
23212 cat conftest.err >&5
a848cd7e
SC
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } &&
04840eaa
VS
23215 { ac_try='test -z "$ac_c_werror_flag"
23216 || test ! -s conftest.err'
ac1cb8d3
VS
23217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218 (eval $ac_try) 2>&5
23219 ac_status=$?
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); }; } &&
23222 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; }; then
23228 echo "*** The test program compiled, but did not run. This usually means"
23229 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
23230 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
23231 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23232 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23233 echo "*** is required on your system"
23234 echo "***"
23235 echo "*** If you have an old version installed, it is best to remove it, although"
23236 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23237else
23238 echo "$as_me: failed program was:" >&5
23239sed 's/^/| /' conftest.$ac_ext >&5
23240
23241 echo "*** The test program failed to compile or link. See the file config.log for the"
23242 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
23243fi
ac1cb8d3
VS
23244rm -f conftest.err conftest.$ac_objext \
23245 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23246 CFLAGS="$ac_save_CFLAGS"
23247 LIBS="$ac_save_LIBS"
23248 fi
23249 fi
23250 GTK_CFLAGS=""
23251 GTK_LIBS=""
23252 :
23253 fi
23254
23255
23256 rm -f conf.gtktest
23257
23258 else
23259
23260# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23261if test "${with_gtk_prefix+set}" = set; then
23262 withval="$with_gtk_prefix"
23263 gtk_config_prefix="$withval"
23264else
23265 gtk_config_prefix=""
23266fi;
23267
23268# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23269if test "${with_gtk_exec_prefix+set}" = set; then
23270 withval="$with_gtk_exec_prefix"
23271 gtk_config_exec_prefix="$withval"
23272else
23273 gtk_config_exec_prefix=""
23274fi;
23275# Check whether --enable-gtktest or --disable-gtktest was given.
23276if test "${enable_gtktest+set}" = set; then
23277 enableval="$enable_gtktest"
23278
23279else
23280 enable_gtktest=yes
23281fi;
23282
23283 for module in . $GTK_MODULES
23284 do
23285 case "$module" in
23286 gthread)
23287 gtk_config_args="$gtk_config_args gthread"
23288 ;;
23289 esac
23290 done
23291
23292 if test x$gtk_config_exec_prefix != x ; then
23293 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23294 if test x${GTK_CONFIG+set} != xset ; then
23295 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23296 fi
23297 fi
23298 if test x$gtk_config_prefix != x ; then
23299 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23300 if test x${GTK_CONFIG+set} != xset ; then
23301 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23302 fi
23303 fi
23304
23305 # Extract the first word of "gtk-config", so it can be a program name with args.
23306set dummy gtk-config; ac_word=$2
23307echo "$as_me:$LINENO: checking for $ac_word" >&5
23308echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23309if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23310 echo $ECHO_N "(cached) $ECHO_C" >&6
23311else
23312 case $GTK_CONFIG in
23313 [\\/]* | ?:[\\/]*)
23314 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23315 ;;
23316 *)
23317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23318for as_dir in $PATH
23319do
23320 IFS=$as_save_IFS
23321 test -z "$as_dir" && as_dir=.
23322 for ac_exec_ext in '' $ac_executable_extensions; do
23323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23324 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23326 break 2
23327 fi
23328done
23329done
23330
23331 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23332 ;;
23333esac
23334fi
23335GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23336
23337if test -n "$GTK_CONFIG"; then
23338 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23339echo "${ECHO_T}$GTK_CONFIG" >&6
23340else
23341 echo "$as_me:$LINENO: result: no" >&5
23342echo "${ECHO_T}no" >&6
23343fi
23344
23345 min_gtk_version=1.2.7
23346 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23347echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23348 no_gtk=""
23349 if test "$GTK_CONFIG" = "no" ; then
23350 no_gtk=yes
23351 else
23352 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23353 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23354 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23355 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23356 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23357 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23358 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23359 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23360 if test "x$enable_gtktest" = "xyes" ; then
23361 ac_save_CFLAGS="$CFLAGS"
23362 ac_save_LIBS="$LIBS"
23363 CFLAGS="$CFLAGS $GTK_CFLAGS"
23364 LIBS="$GTK_LIBS $LIBS"
23365 rm -f conf.gtktest
23366 if test "$cross_compiling" = yes; then
23367 echo $ac_n "cross compiling; assumed OK... $ac_c"
23368else
23369 cat >conftest.$ac_ext <<_ACEOF
23370/* confdefs.h. */
23371_ACEOF
23372cat confdefs.h >>conftest.$ac_ext
23373cat >>conftest.$ac_ext <<_ACEOF
23374/* end confdefs.h. */
23375
23376#include <gtk/gtk.h>
23377#include <stdio.h>
23378#include <stdlib.h>
23379
23380int
23381main ()
23382{
23383 int major, minor, micro;
23384 char *tmp_version;
23385
23386 system ("touch conf.gtktest");
23387
23388 /* HP/UX 9 (%@#!) writes to sscanf strings */
23389 tmp_version = g_strdup("$min_gtk_version");
23390 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23391 printf("%s, bad version string\n", "$min_gtk_version");
23392 exit(1);
23393 }
23394
23395 if ((gtk_major_version != $gtk_config_major_version) ||
23396 (gtk_minor_version != $gtk_config_minor_version) ||
23397 (gtk_micro_version != $gtk_config_micro_version))
23398 {
23399 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23400 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23401 gtk_major_version, gtk_minor_version, gtk_micro_version);
23402 printf ("*** was found! If gtk-config was correct, then it is best\n");
23403 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23404 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23405 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23406 printf("*** required on your system.\n");
23407 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23408 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23409 printf("*** before re-running configure\n");
23410 }
23411#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23412 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23413 (gtk_minor_version != GTK_MINOR_VERSION) ||
23414 (gtk_micro_version != GTK_MICRO_VERSION))
23415 {
23416 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23417 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23418 printf("*** library (version %d.%d.%d)\n",
23419 gtk_major_version, gtk_minor_version, gtk_micro_version);
23420 }
23421#endif /* defined (GTK_MAJOR_VERSION) ... */
23422 else
23423 {
23424 if ((gtk_major_version > major) ||
23425 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23426 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23427 {
23428 return 0;
23429 }
23430 else
23431 {
23432 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23433 gtk_major_version, gtk_minor_version, gtk_micro_version);
23434 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23435 major, minor, micro);
23436 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23437 printf("***\n");
23438 printf("*** If you have already installed a sufficiently new version, this error\n");
23439 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23440 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23441 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23442 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23443 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23444 printf("*** so that the correct libraries are found at run-time))\n");
23445 }
23446 }
23447 return 1;
23448}
23449
23450_ACEOF
23451rm -f conftest$ac_exeext
23452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23453 (eval $ac_link) 2>&5
23454 ac_status=$?
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23459 ac_status=$?
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; }; then
23462 :
23463else
23464 echo "$as_me: program exited with status $ac_status" >&5
23465echo "$as_me: failed program was:" >&5
23466sed 's/^/| /' conftest.$ac_ext >&5
23467
23468( exit $ac_status )
23469no_gtk=yes
23470fi
ac1cb8d3 23471rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23472fi
23473 CFLAGS="$ac_save_CFLAGS"
23474 LIBS="$ac_save_LIBS"
23475 fi
23476 fi
23477 if test "x$no_gtk" = x ; then
23478 echo "$as_me:$LINENO: result: yes" >&5
23479echo "${ECHO_T}yes" >&6
23480 wx_cv_lib_gtk=1.2.7
23481 else
23482 echo "$as_me:$LINENO: result: no" >&5
23483echo "${ECHO_T}no" >&6
23484 if test "$GTK_CONFIG" = "no" ; then
23485 echo "*** The gtk-config script installed by GTK could not be found"
23486 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23487 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23488 echo "*** full path to gtk-config."
23489 else
23490 if test -f conf.gtktest ; then
23491 :
23492 else
23493 echo "*** Could not run GTK test program, checking why..."
23494 CFLAGS="$CFLAGS $GTK_CFLAGS"
23495 LIBS="$LIBS $GTK_LIBS"
23496 cat >conftest.$ac_ext <<_ACEOF
23497/* confdefs.h. */
23498_ACEOF
23499cat confdefs.h >>conftest.$ac_ext
23500cat >>conftest.$ac_ext <<_ACEOF
23501/* end confdefs.h. */
23502
23503#include <gtk/gtk.h>
23504#include <stdio.h>
23505
23506int
23507main ()
23508{
23509 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23510 ;
23511 return 0;
23512}
23513_ACEOF
23514rm -f conftest.$ac_objext conftest$ac_exeext
23515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23516 (eval $ac_link) 2>conftest.er1
a848cd7e 23517 ac_status=$?
ac1cb8d3
VS
23518 grep -v '^ *+' conftest.er1 >conftest.err
23519 rm -f conftest.er1
23520 cat conftest.err >&5
a848cd7e
SC
23521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522 (exit $ac_status); } &&
04840eaa
VS
23523 { ac_try='test -z "$ac_c_werror_flag"
23524 || test ! -s conftest.err'
ac1cb8d3
VS
23525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23526 (eval $ac_try) 2>&5
23527 ac_status=$?
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); }; } &&
23530 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23532 (eval $ac_try) 2>&5
23533 ac_status=$?
23534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23535 (exit $ac_status); }; }; then
23536 echo "*** The test program compiled, but did not run. This usually means"
23537 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23538 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23539 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23540 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23541 echo "*** is required on your system"
23542 echo "***"
23543 echo "*** If you have an old version installed, it is best to remove it, although"
23544 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23545 echo "***"
23546 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23547 echo "*** came with the system with the command"
23548 echo "***"
23549 echo "*** rpm --erase --nodeps gtk gtk-devel"
23550else
23551 echo "$as_me: failed program was:" >&5
23552sed 's/^/| /' conftest.$ac_ext >&5
23553
23554 echo "*** The test program failed to compile or link. See the file config.log for the"
23555 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23556 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23557 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23558fi
ac1cb8d3
VS
23559rm -f conftest.err conftest.$ac_objext \
23560 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23561 CFLAGS="$ac_save_CFLAGS"
23562 LIBS="$ac_save_LIBS"
23563 fi
23564 fi
23565 GTK_CFLAGS=""
23566 GTK_LIBS=""
23567 :
23568 fi
23569
23570
23571 rm -f conf.gtktest
23572
23573
23574 if test -z "$wx_cv_lib_gtk"; then
23575
23576# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
23577if test "${with_gtk_prefix+set}" = set; then
23578 withval="$with_gtk_prefix"
23579 gtk_config_prefix="$withval"
23580else
23581 gtk_config_prefix=""
23582fi;
23583
23584# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
23585if test "${with_gtk_exec_prefix+set}" = set; then
23586 withval="$with_gtk_exec_prefix"
23587 gtk_config_exec_prefix="$withval"
23588else
23589 gtk_config_exec_prefix=""
23590fi;
23591# Check whether --enable-gtktest or --disable-gtktest was given.
23592if test "${enable_gtktest+set}" = set; then
23593 enableval="$enable_gtktest"
23594
23595else
23596 enable_gtktest=yes
23597fi;
23598
23599 for module in . $GTK_MODULES
23600 do
23601 case "$module" in
23602 gthread)
23603 gtk_config_args="$gtk_config_args gthread"
23604 ;;
23605 esac
23606 done
23607
23608 if test x$gtk_config_exec_prefix != x ; then
23609 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
23610 if test x${GTK_CONFIG+set} != xset ; then
23611 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
23612 fi
23613 fi
23614 if test x$gtk_config_prefix != x ; then
23615 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
23616 if test x${GTK_CONFIG+set} != xset ; then
23617 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
23618 fi
23619 fi
23620
23621 # Extract the first word of "gtk-config", so it can be a program name with args.
23622set dummy gtk-config; ac_word=$2
23623echo "$as_me:$LINENO: checking for $ac_word" >&5
23624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23625if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
23626 echo $ECHO_N "(cached) $ECHO_C" >&6
23627else
23628 case $GTK_CONFIG in
23629 [\\/]* | ?:[\\/]*)
23630 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
23631 ;;
23632 *)
23633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23634for as_dir in $PATH
23635do
23636 IFS=$as_save_IFS
23637 test -z "$as_dir" && as_dir=.
23638 for ac_exec_ext in '' $ac_executable_extensions; do
23639 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23640 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23642 break 2
23643 fi
23644done
23645done
23646
23647 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
23648 ;;
23649esac
23650fi
23651GTK_CONFIG=$ac_cv_path_GTK_CONFIG
23652
23653if test -n "$GTK_CONFIG"; then
23654 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23655echo "${ECHO_T}$GTK_CONFIG" >&6
23656else
23657 echo "$as_me:$LINENO: result: no" >&5
23658echo "${ECHO_T}no" >&6
23659fi
23660
23661 min_gtk_version=1.2.3
23662 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
23663echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
23664 no_gtk=""
23665 if test "$GTK_CONFIG" = "no" ; then
23666 no_gtk=yes
23667 else
23668 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
23669 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
23670 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
23671 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
23672 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
23673 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
23674 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
23675 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
23676 if test "x$enable_gtktest" = "xyes" ; then
23677 ac_save_CFLAGS="$CFLAGS"
23678 ac_save_LIBS="$LIBS"
23679 CFLAGS="$CFLAGS $GTK_CFLAGS"
23680 LIBS="$GTK_LIBS $LIBS"
23681 rm -f conf.gtktest
23682 if test "$cross_compiling" = yes; then
23683 echo $ac_n "cross compiling; assumed OK... $ac_c"
23684else
23685 cat >conftest.$ac_ext <<_ACEOF
23686/* confdefs.h. */
23687_ACEOF
23688cat confdefs.h >>conftest.$ac_ext
23689cat >>conftest.$ac_ext <<_ACEOF
23690/* end confdefs.h. */
23691
23692#include <gtk/gtk.h>
23693#include <stdio.h>
23694#include <stdlib.h>
23695
23696int
23697main ()
23698{
23699 int major, minor, micro;
23700 char *tmp_version;
23701
23702 system ("touch conf.gtktest");
23703
23704 /* HP/UX 9 (%@#!) writes to sscanf strings */
23705 tmp_version = g_strdup("$min_gtk_version");
23706 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
23707 printf("%s, bad version string\n", "$min_gtk_version");
23708 exit(1);
23709 }
23710
23711 if ((gtk_major_version != $gtk_config_major_version) ||
23712 (gtk_minor_version != $gtk_config_minor_version) ||
23713 (gtk_micro_version != $gtk_config_micro_version))
23714 {
23715 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
23716 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
23717 gtk_major_version, gtk_minor_version, gtk_micro_version);
23718 printf ("*** was found! If gtk-config was correct, then it is best\n");
23719 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
23720 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
23721 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
23722 printf("*** required on your system.\n");
23723 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
23724 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
23725 printf("*** before re-running configure\n");
23726 }
23727#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
23728 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
23729 (gtk_minor_version != GTK_MINOR_VERSION) ||
23730 (gtk_micro_version != GTK_MICRO_VERSION))
23731 {
23732 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
23733 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
23734 printf("*** library (version %d.%d.%d)\n",
23735 gtk_major_version, gtk_minor_version, gtk_micro_version);
23736 }
23737#endif /* defined (GTK_MAJOR_VERSION) ... */
23738 else
23739 {
23740 if ((gtk_major_version > major) ||
23741 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
23742 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
23743 {
23744 return 0;
23745 }
23746 else
23747 {
23748 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
23749 gtk_major_version, gtk_minor_version, gtk_micro_version);
23750 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
23751 major, minor, micro);
23752 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
23753 printf("***\n");
23754 printf("*** If you have already installed a sufficiently new version, this error\n");
23755 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
23756 printf("*** being found. The easiest way to fix this is to remove the old version\n");
23757 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
23758 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
23759 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
23760 printf("*** so that the correct libraries are found at run-time))\n");
23761 }
23762 }
23763 return 1;
23764}
23765
23766_ACEOF
23767rm -f conftest$ac_exeext
23768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23769 (eval $ac_link) 2>&5
23770 ac_status=$?
23771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23774 (eval $ac_try) 2>&5
23775 ac_status=$?
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); }; }; then
23778 :
23779else
23780 echo "$as_me: program exited with status $ac_status" >&5
23781echo "$as_me: failed program was:" >&5
23782sed 's/^/| /' conftest.$ac_ext >&5
23783
23784( exit $ac_status )
23785no_gtk=yes
23786fi
ac1cb8d3 23787rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23788fi
23789 CFLAGS="$ac_save_CFLAGS"
23790 LIBS="$ac_save_LIBS"
23791 fi
23792 fi
23793 if test "x$no_gtk" = x ; then
23794 echo "$as_me:$LINENO: result: yes" >&5
23795echo "${ECHO_T}yes" >&6
23796 wx_cv_lib_gtk=1.2.3
23797 else
23798 echo "$as_me:$LINENO: result: no" >&5
23799echo "${ECHO_T}no" >&6
23800 if test "$GTK_CONFIG" = "no" ; then
23801 echo "*** The gtk-config script installed by GTK could not be found"
23802 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
23803 echo "*** your path, or set the GTK_CONFIG environment variable to the"
23804 echo "*** full path to gtk-config."
23805 else
23806 if test -f conf.gtktest ; then
23807 :
23808 else
23809 echo "*** Could not run GTK test program, checking why..."
23810 CFLAGS="$CFLAGS $GTK_CFLAGS"
23811 LIBS="$LIBS $GTK_LIBS"
23812 cat >conftest.$ac_ext <<_ACEOF
23813/* confdefs.h. */
23814_ACEOF
23815cat confdefs.h >>conftest.$ac_ext
23816cat >>conftest.$ac_ext <<_ACEOF
23817/* end confdefs.h. */
23818
23819#include <gtk/gtk.h>
23820#include <stdio.h>
23821
23822int
23823main ()
23824{
23825 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
23826 ;
23827 return 0;
23828}
23829_ACEOF
23830rm -f conftest.$ac_objext conftest$ac_exeext
23831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23832 (eval $ac_link) 2>conftest.er1
a848cd7e 23833 ac_status=$?
ac1cb8d3
VS
23834 grep -v '^ *+' conftest.er1 >conftest.err
23835 rm -f conftest.er1
23836 cat conftest.err >&5
a848cd7e
SC
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } &&
04840eaa
VS
23839 { ac_try='test -z "$ac_c_werror_flag"
23840 || test ! -s conftest.err'
ac1cb8d3
VS
23841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23842 (eval $ac_try) 2>&5
23843 ac_status=$?
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); }; } &&
23846 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848 (eval $ac_try) 2>&5
23849 ac_status=$?
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; }; then
23852 echo "*** The test program compiled, but did not run. This usually means"
23853 echo "*** that the run-time linker is not finding GTK or finding the wrong"
23854 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
23855 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
23856 echo "*** to the installed location Also, make sure you have run ldconfig if that"
23857 echo "*** is required on your system"
23858 echo "***"
23859 echo "*** If you have an old version installed, it is best to remove it, although"
23860 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
23861 echo "***"
23862 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
23863 echo "*** came with the system with the command"
23864 echo "***"
23865 echo "*** rpm --erase --nodeps gtk gtk-devel"
23866else
23867 echo "$as_me: failed program was:" >&5
23868sed 's/^/| /' conftest.$ac_ext >&5
23869
23870 echo "*** The test program failed to compile or link. See the file config.log for the"
23871 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
23872 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
23873 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
23874fi
ac1cb8d3
VS
23875rm -f conftest.err conftest.$ac_objext \
23876 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23877 CFLAGS="$ac_save_CFLAGS"
23878 LIBS="$ac_save_LIBS"
23879 fi
23880 fi
23881 GTK_CFLAGS=""
23882 GTK_LIBS=""
23883 :
23884 fi
23885
23886
23887 rm -f conf.gtktest
23888
23889 fi
23890 fi
23891
23892 if test -z "$wx_cv_lib_gtk"; then
23893 wx_cv_lib_gtk=none
23894 else
23895 wx_cv_cflags_gtk=$GTK_CFLAGS
23896 wx_cv_libs_gtk=$GTK_LIBS
23897 fi
23898
23899
23900fi
23901
23902
23903 if test "$gtk_version_cached" = 1; then
23904 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
23905echo "${ECHO_T}$wx_cv_lib_gtk" >&6
23906 fi
23907
23908 case "$wx_cv_lib_gtk" in
23909 2.0) WXGTK20=1
23910 TOOLKIT_VERSION=2
23911 ;;
23912 1.2.7) WXGTK127=1
23913 WXGTK12=1
23914 ;;
23915 1.2.3) WXGTK12=1
23916 ;;
23917 *) { { echo "$as_me:$LINENO: error:
23918Please check that gtk-config is in path, the directory
23919where GTK+ libraries are installed (returned by
23920'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23921equivalent variable and GTK+ is version 1.2.3 or above.
23922 " >&5
23923echo "$as_me: error:
23924Please check that gtk-config is in path, the directory
23925where GTK+ libraries are installed (returned by
23926'gtk-config --libs' command) is in LD_LIBRARY_PATH or
23927equivalent variable and GTK+ is version 1.2.3 or above.
23928 " >&2;}
23929 { (exit 1); exit 1; }; }
23930 ;;
23931 esac
23932
23933 if test "$WXGTK20" = 1; then
304205f1
VS
23934 save_CFLAGS="$CFLAGS"
23935 save_LIBS="$LIBS"
23936 CFLAGS="$CFLAGS $GTK_CFLAGS"
23937 LIBS="$LIBS $GTK_LIBS"
23938
9755e73b 23939
304205f1
VS
23940for ac_func in pango_font_family_is_monospace
23941do
23942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23943echo "$as_me:$LINENO: checking for $ac_func" >&5
23944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23945if eval "test \"\${$as_ac_var+set}\" = set"; then
23946 echo $ECHO_N "(cached) $ECHO_C" >&6
23947else
23948 cat >conftest.$ac_ext <<_ACEOF
23949/* confdefs.h. */
23950_ACEOF
23951cat confdefs.h >>conftest.$ac_ext
23952cat >>conftest.$ac_ext <<_ACEOF
23953/* end confdefs.h. */
23954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23956#define $ac_func innocuous_$ac_func
23957
23958/* System header to define __stub macros and hopefully few prototypes,
23959 which can conflict with char $ac_func (); below.
23960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23961 <limits.h> exists even on freestanding compilers. */
23962
23963#ifdef __STDC__
23964# include <limits.h>
23965#else
23966# include <assert.h>
23967#endif
23968
23969#undef $ac_func
23970
23971/* Override any gcc2 internal prototype to avoid an error. */
23972#ifdef __cplusplus
23973extern "C"
23974{
23975#endif
23976/* We use char because int might match the return type of a gcc2
23977 builtin and then its argument prototype would still apply. */
23978char $ac_func ();
23979/* The GNU C library defines this for functions which it implements
23980 to always fail with ENOSYS. Some functions are actually named
23981 something starting with __ and the normal name is an alias. */
23982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23983choke me
23984#else
23985char (*f) () = $ac_func;
23986#endif
23987#ifdef __cplusplus
23988}
23989#endif
23990
23991int
23992main ()
23993{
23994return f != $ac_func;
23995 ;
23996 return 0;
23997}
23998_ACEOF
23999rm -f conftest.$ac_objext conftest$ac_exeext
24000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24001 (eval $ac_link) 2>conftest.er1
24002 ac_status=$?
24003 grep -v '^ *+' conftest.er1 >conftest.err
24004 rm -f conftest.er1
24005 cat conftest.err >&5
24006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24007 (exit $ac_status); } &&
04840eaa
VS
24008 { ac_try='test -z "$ac_c_werror_flag"
24009 || test ! -s conftest.err'
304205f1
VS
24010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24011 (eval $ac_try) 2>&5
24012 ac_status=$?
24013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24014 (exit $ac_status); }; } &&
24015 { ac_try='test -s conftest$ac_exeext'
24016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24017 (eval $ac_try) 2>&5
24018 ac_status=$?
24019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24020 (exit $ac_status); }; }; then
24021 eval "$as_ac_var=yes"
24022else
24023 echo "$as_me: failed program was:" >&5
24024sed 's/^/| /' conftest.$ac_ext >&5
24025
24026eval "$as_ac_var=no"
24027fi
24028rm -f conftest.err conftest.$ac_objext \
24029 conftest$ac_exeext conftest.$ac_ext
24030fi
24031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24032echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24033if test `eval echo '${'$as_ac_var'}'` = yes; then
24034 cat >>confdefs.h <<_ACEOF
24035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24036_ACEOF
24037
24038fi
24039done
24040
9755e73b
VS
24041
24042 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
24043echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
24044 cat >conftest.$ac_ext <<_ACEOF
24045/* confdefs.h. */
24046_ACEOF
24047cat confdefs.h >>conftest.$ac_ext
24048cat >>conftest.$ac_ext <<_ACEOF
24049/* end confdefs.h. */
24050
24051 #include <gtk/gtk.h>
24052
24053int
24054main ()
24055{
24056
24057 #if !GTK_CHECK_VERSION(2,4,0)
24058 #error "Not GTK+ 2.4"
24059 #endif
24060
24061 ;
24062 return 0;
24063}
24064_ACEOF
24065rm -f conftest.$ac_objext
24066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24067 (eval $ac_compile) 2>conftest.er1
24068 ac_status=$?
24069 grep -v '^ *+' conftest.er1 >conftest.err
24070 rm -f conftest.er1
24071 cat conftest.err >&5
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); } &&
04840eaa
VS
24074 { ac_try='test -z "$ac_c_werror_flag"
24075 || test ! -s conftest.err'
9755e73b
VS
24076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077 (eval $ac_try) 2>&5
24078 ac_status=$?
24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080 (exit $ac_status); }; } &&
24081 { ac_try='test -s conftest.$ac_objext'
24082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083 (eval $ac_try) 2>&5
24084 ac_status=$?
24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); }; }; then
24087
24088 cat >>confdefs.h <<\_ACEOF
24089#define __WXGTK24__ 1
24090_ACEOF
24091
24092 echo "$as_me:$LINENO: result: yes" >&5
24093echo "${ECHO_T}yes" >&6
24094
24095else
24096 echo "$as_me: failed program was:" >&5
24097sed 's/^/| /' conftest.$ac_ext >&5
24098
24099
24100 echo "$as_me:$LINENO: result: no" >&5
24101echo "${ECHO_T}no" >&6
24102
24103fi
24104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24105
304205f1
VS
24106 CFLAGS="$save_CFLAGS"
24107 LIBS="$save_LIBS"
a848cd7e
SC
24108 else
24109 if test "$wxUSE_UNICODE" = "yes"; then
24110 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
24111echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
24112 wxUSE_UNICODE=no
24113 fi
24114 fi
24115
24116 if test "$USE_DARWIN" != 1; then
24117
24118for ac_func in poll
24119do
24120as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24121echo "$as_me:$LINENO: checking for $ac_func" >&5
24122echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24123if eval "test \"\${$as_ac_var+set}\" = set"; then
24124 echo $ECHO_N "(cached) $ECHO_C" >&6
24125else
24126 cat >conftest.$ac_ext <<_ACEOF
24127/* confdefs.h. */
24128_ACEOF
24129cat confdefs.h >>conftest.$ac_ext
24130cat >>conftest.$ac_ext <<_ACEOF
24131/* end confdefs.h. */
ac1cb8d3
VS
24132/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24134#define $ac_func innocuous_$ac_func
24135
a848cd7e
SC
24136/* System header to define __stub macros and hopefully few prototypes,
24137 which can conflict with char $ac_func (); below.
24138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24139 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 24140
a848cd7e
SC
24141#ifdef __STDC__
24142# include <limits.h>
24143#else
24144# include <assert.h>
24145#endif
ac1cb8d3
VS
24146
24147#undef $ac_func
24148
a848cd7e
SC
24149/* Override any gcc2 internal prototype to avoid an error. */
24150#ifdef __cplusplus
24151extern "C"
24152{
24153#endif
24154/* We use char because int might match the return type of a gcc2
24155 builtin and then its argument prototype would still apply. */
24156char $ac_func ();
24157/* The GNU C library defines this for functions which it implements
24158 to always fail with ENOSYS. Some functions are actually named
24159 something starting with __ and the normal name is an alias. */
24160#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24161choke me
24162#else
24163char (*f) () = $ac_func;
24164#endif
24165#ifdef __cplusplus
24166}
24167#endif
24168
24169int
24170main ()
24171{
24172return f != $ac_func;
24173 ;
24174 return 0;
24175}
24176_ACEOF
24177rm -f conftest.$ac_objext conftest$ac_exeext
24178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24179 (eval $ac_link) 2>conftest.er1
a848cd7e 24180 ac_status=$?
ac1cb8d3
VS
24181 grep -v '^ *+' conftest.er1 >conftest.err
24182 rm -f conftest.er1
24183 cat conftest.err >&5
a848cd7e
SC
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); } &&
04840eaa
VS
24186 { ac_try='test -z "$ac_c_werror_flag"
24187 || test ! -s conftest.err'
ac1cb8d3
VS
24188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24189 (eval $ac_try) 2>&5
24190 ac_status=$?
24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192 (exit $ac_status); }; } &&
24193 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24195 (eval $ac_try) 2>&5
24196 ac_status=$?
24197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198 (exit $ac_status); }; }; then
24199 eval "$as_ac_var=yes"
24200else
24201 echo "$as_me: failed program was:" >&5
24202sed 's/^/| /' conftest.$ac_ext >&5
24203
24204eval "$as_ac_var=no"
24205fi
ac1cb8d3
VS
24206rm -f conftest.err conftest.$ac_objext \
24207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24208fi
24209echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24210echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24211if test `eval echo '${'$as_ac_var'}'` = yes; then
24212 cat >>confdefs.h <<_ACEOF
24213#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24214_ACEOF
24215
24216fi
24217done
24218
24219 fi
24220
24221 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
24222 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
24223
24224 AFMINSTALL=afminstall
24225 TOOLKIT=GTK
24226 GUIDIST=GTK_DIST
24227
24228 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
24229echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
24230if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
24231 echo $ECHO_N "(cached) $ECHO_C" >&6
24232else
24233 ac_check_lib_save_LIBS=$LIBS
24234LIBS="-lgdk $LIBS"
24235cat >conftest.$ac_ext <<_ACEOF
24236/* confdefs.h. */
24237_ACEOF
24238cat confdefs.h >>conftest.$ac_ext
24239cat >>conftest.$ac_ext <<_ACEOF
24240/* end confdefs.h. */
24241
24242/* Override any gcc2 internal prototype to avoid an error. */
24243#ifdef __cplusplus
24244extern "C"
24245#endif
24246/* We use char because int might match the return type of a gcc2
24247 builtin and then its argument prototype would still apply. */
24248char gdk_im_open ();
24249int
24250main ()
24251{
24252gdk_im_open ();
24253 ;
24254 return 0;
24255}
24256_ACEOF
24257rm -f conftest.$ac_objext conftest$ac_exeext
24258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24259 (eval $ac_link) 2>conftest.er1
a848cd7e 24260 ac_status=$?
ac1cb8d3
VS
24261 grep -v '^ *+' conftest.er1 >conftest.err
24262 rm -f conftest.er1
24263 cat conftest.err >&5
a848cd7e
SC
24264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24265 (exit $ac_status); } &&
04840eaa
VS
24266 { ac_try='test -z "$ac_c_werror_flag"
24267 || test ! -s conftest.err'
ac1cb8d3
VS
24268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24269 (eval $ac_try) 2>&5
24270 ac_status=$?
24271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); }; } &&
24273 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24275 (eval $ac_try) 2>&5
24276 ac_status=$?
24277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278 (exit $ac_status); }; }; then
24279 ac_cv_lib_gdk_gdk_im_open=yes
24280else
24281 echo "$as_me: failed program was:" >&5
24282sed 's/^/| /' conftest.$ac_ext >&5
24283
24284ac_cv_lib_gdk_gdk_im_open=no
24285fi
ac1cb8d3
VS
24286rm -f conftest.err conftest.$ac_objext \
24287 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24288LIBS=$ac_check_lib_save_LIBS
24289fi
24290echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
24291echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
24292if test $ac_cv_lib_gdk_gdk_im_open = yes; then
24293 cat >>confdefs.h <<\_ACEOF
24294#define HAVE_XIM 1
24295_ACEOF
24296
24297fi
24298
24299
24300
24301 if test "$wxUSE_GPE" = "yes"; then
24302 echo "$as_me:$LINENO: checking for gpewidget library" >&5
24303echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
24304
24305ac_find_libraries=
24306for ac_dir in $SEARCH_LIB /usr/lib;
24307 do
24308 for ac_extension in a so sl dylib; do
24309 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
24310 ac_find_libraries=$ac_dir
24311 break 2
24312 fi
24313 done
24314 done
24315
24316 if test "$ac_find_libraries" != "" ; then
24317
24318 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24319 result=$?
24320 if test $result = 0; then
24321 ac_path_to_link=""
24322 else
24323 ac_path_to_link=" -L$ac_find_libraries"
24324 fi
24325
24326 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
24327 WXGPE=1
24328 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24329echo "${ECHO_T}found at $ac_find_libraries" >&6
24330 else
24331 echo "$as_me:$LINENO: result: not found" >&5
24332echo "${ECHO_T}not found" >&6
24333 fi
24334
24335 fi
24336 fi
24337
24338 if test "$wxUSE_MGL" = 1; then
24339 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
24340echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
24341 if test "x$MGL_ROOT" = x ; then
24342 echo "$as_me:$LINENO: result: not found" >&5
24343echo "${ECHO_T}not found" >&6
24344 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
24345echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
24346 { (exit 1); exit 1; }; }
24347 else
24348 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
24349echo "${ECHO_T}$MGL_ROOT" >&6
24350 fi
24351
24352 echo "$as_me:$LINENO: checking for libmgl location" >&5
24353echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
24354 case "${host}" in
24355 *-*-linux* )
24356 if test "x$wxUSE_SHARED" = xyes ; then
24357 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
24358 else
24359 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
24360 fi
24361 ;;
24362 *-pc-msdosdjgpp )
24363 mgl_os_candidates="dos32/dj2"
24364 ;;
24365 *)
24366 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
24367echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
24368 { (exit 1); exit 1; }; }
24369 esac
24370
24371 mgl_lib_type=""
24372 mgl_os=""
24373
24374 for mgl_os_i in $mgl_os_candidates ; do
24375 if test "x$mgl_os" = x ; then
24376 if test "$wxUSE_DEBUG_FLAG" = yes ; then
24377 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
24378 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
24379 mgl_lib_type=debug
24380 mgl_os=$mgl_os_i
24381 fi
24382 fi
24383 if test "x$mgl_lib_type" = x ; then
24384 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
24385 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
24386 mgl_lib_type=release
24387 mgl_os=$mgl_os_i
24388 fi
24389 fi
24390 fi
24391 done
24392
24393 if test "x$mgl_os" = x ; then
24394 echo "$as_me:$LINENO: result: not found" >&5
24395echo "${ECHO_T}not found" >&6
24396 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
24397echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
24398 { (exit 1); exit 1; }; }
24399 fi
24400 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
24401echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
24402
24403 wxUSE_UNIVERSAL="yes"
24404
24405 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
24406 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
24407
24408 AFMINSTALL=afminstall
24409 TOOLKIT=MGL
24410 GUIDIST=MGL_DIST
24411 fi
24412
24413 if test "$wxUSE_MICROWIN" = 1; then
24414 echo "$as_me:$LINENO: checking for MicroWindows" >&5
24415echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
24416 if test "x$MICROWINDOWS" = x ; then
24417 echo "$as_me:$LINENO: result: not found" >&5
24418echo "${ECHO_T}not found" >&6
24419 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
24420echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
24421 { (exit 1); exit 1; }; }
24422 else
24423 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
24424echo "${ECHO_T}$MICROWINDOWS" >&6
24425 fi
24426
24427 if test -f $MICROWINDOWS/lib/libmwin.a; then
24428 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
24429echo "${ECHO_T}MicroWindows' libraries found." >&6
24430 else
24431 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
24432echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
24433 { (exit 1); exit 1; }; }
24434 fi
24435
24436 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
24437 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
24438
24439 wxUSE_UNIVERSAL="yes"
24440
24441 AFMINSTALL=afminstall
24442 TOOLKIT=MICROWIN
24443 GUIDIST=MICROWIN_DIST
24444
24445 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
24446 fi
24447
74b84332 24448 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
04840eaa 24449 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
24450echo $ECHO_N "checking for X... $ECHO_C" >&6
24451
24452
24453# Check whether --with-x or --without-x was given.
24454if test "${with_x+set}" = set; then
24455 withval="$with_x"
24456
24457fi;
24458# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24459if test "x$with_x" = xno; then
24460 # The user explicitly disabled X.
24461 have_x=disabled
24462else
24463 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
24464 # Both variables are already set.
24465 have_x=yes
24466 else
24467 if test "${ac_cv_have_x+set}" = set; then
24468 echo $ECHO_N "(cached) $ECHO_C" >&6
24469else
24470 # One or both of the vars are not set, and there is no cached value.
24471ac_x_includes=no ac_x_libraries=no
24472rm -fr conftest.dir
24473if mkdir conftest.dir; then
24474 cd conftest.dir
24475 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
24476 cat >Imakefile <<'_ACEOF'
24477acfindx:
24478 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
24479_ACEOF
24480 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
24481 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24482 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
24483 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24484 for ac_extension in a so sl; do
24485 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
24486 test -f $ac_im_libdir/libX11.$ac_extension; then
24487 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
24488 fi
24489 done
24490 # Screen out bogus values from the imake configuration. They are
24491 # bogus both because they are the default anyway, and because
24492 # using them would break gcc on systems where it needs fixed includes.
24493 case $ac_im_incroot in
24494 /usr/include) ;;
24495 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24496 esac
24497 case $ac_im_usrlibdir in
24498 /usr/lib | /lib) ;;
24499 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24500 esac
24501 fi
24502 cd ..
24503 rm -fr conftest.dir
24504fi
24505
24506# Standard set of common directories for X headers.
24507# Check X11 before X11Rn because it is often a symlink to the current release.
24508ac_x_header_dirs='
24509/usr/X11/include
24510/usr/X11R6/include
24511/usr/X11R5/include
24512/usr/X11R4/include
24513
24514/usr/include/X11
24515/usr/include/X11R6
24516/usr/include/X11R5
24517/usr/include/X11R4
24518
24519/usr/local/X11/include
24520/usr/local/X11R6/include
24521/usr/local/X11R5/include
24522/usr/local/X11R4/include
24523
24524/usr/local/include/X11
24525/usr/local/include/X11R6
24526/usr/local/include/X11R5
24527/usr/local/include/X11R4
24528
24529/usr/X386/include
24530/usr/x386/include
24531/usr/XFree86/include/X11
24532
24533/usr/include
24534/usr/local/include
24535/usr/unsupported/include
24536/usr/athena/include
24537/usr/local/x11r5/include
24538/usr/lpp/Xamples/include
24539
24540/usr/openwin/include
24541/usr/openwin/share/include'
24542
24543if test "$ac_x_includes" = no; then
04840eaa 24544 # Guess where to find include files, by looking for Intrinsic.h.
a848cd7e
SC
24545 # First, try using that file with no special directory specified.
24546 cat >conftest.$ac_ext <<_ACEOF
24547/* confdefs.h. */
24548_ACEOF
24549cat confdefs.h >>conftest.$ac_ext
24550cat >>conftest.$ac_ext <<_ACEOF
24551/* end confdefs.h. */
24552#include <X11/Intrinsic.h>
24553_ACEOF
24554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24556 ac_status=$?
24557 grep -v '^ *+' conftest.er1 >conftest.err
24558 rm -f conftest.er1
24559 cat conftest.err >&5
24560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561 (exit $ac_status); } >/dev/null; then
24562 if test -s conftest.err; then
24563 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24565 else
24566 ac_cpp_err=
24567 fi
24568else
24569 ac_cpp_err=yes
24570fi
24571if test -z "$ac_cpp_err"; then
24572 # We can compile using X headers with no special include directory.
24573ac_x_includes=
24574else
24575 echo "$as_me: failed program was:" >&5
24576sed 's/^/| /' conftest.$ac_ext >&5
24577
24578 for ac_dir in $ac_x_header_dirs; do
24579 if test -r "$ac_dir/X11/Intrinsic.h"; then
24580 ac_x_includes=$ac_dir
24581 break
24582 fi
24583done
24584fi
24585rm -f conftest.err conftest.$ac_ext
24586fi # $ac_x_includes = no
24587
24588if test "$ac_x_libraries" = no; then
24589 # Check for the libraries.
24590 # See if we find them without any special options.
24591 # Don't add to $LIBS permanently.
24592 ac_save_LIBS=$LIBS
24593 LIBS="-lXt $LIBS"
24594 cat >conftest.$ac_ext <<_ACEOF
24595/* confdefs.h. */
24596_ACEOF
24597cat confdefs.h >>conftest.$ac_ext
24598cat >>conftest.$ac_ext <<_ACEOF
24599/* end confdefs.h. */
24600#include <X11/Intrinsic.h>
24601int
24602main ()
24603{
24604XtMalloc (0)
24605 ;
24606 return 0;
24607}
24608_ACEOF
24609rm -f conftest.$ac_objext conftest$ac_exeext
24610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24611 (eval $ac_link) 2>conftest.er1
a848cd7e 24612 ac_status=$?
ac1cb8d3
VS
24613 grep -v '^ *+' conftest.er1 >conftest.err
24614 rm -f conftest.er1
24615 cat conftest.err >&5
a848cd7e
SC
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } &&
04840eaa
VS
24618 { ac_try='test -z "$ac_c_werror_flag"
24619 || test ! -s conftest.err'
ac1cb8d3
VS
24620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24621 (eval $ac_try) 2>&5
24622 ac_status=$?
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); }; } &&
24625 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24627 (eval $ac_try) 2>&5
24628 ac_status=$?
24629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); }; }; then
24631 LIBS=$ac_save_LIBS
24632# We can link X programs with no special library path.
24633ac_x_libraries=
24634else
24635 echo "$as_me: failed program was:" >&5
24636sed 's/^/| /' conftest.$ac_ext >&5
24637
24638LIBS=$ac_save_LIBS
24639for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24640do
24641 # Don't even attempt the hair of trying to link an X program!
24642 for ac_extension in a so sl; do
24643 if test -r $ac_dir/libXt.$ac_extension; then
24644 ac_x_libraries=$ac_dir
24645 break 2
24646 fi
24647 done
24648done
24649fi
ac1cb8d3
VS
24650rm -f conftest.err conftest.$ac_objext \
24651 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24652fi # $ac_x_libraries = no
24653
24654if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
24655 # Didn't find X anywhere. Cache the known absence of X.
24656 ac_cv_have_x="have_x=no"
24657else
24658 # Record where we found X for the cache.
24659 ac_cv_have_x="have_x=yes \
ac1cb8d3 24660 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
24661fi
24662fi
24663
24664 fi
24665 eval "$ac_cv_have_x"
24666fi # $with_x != no
24667
24668if test "$have_x" != yes; then
24669 echo "$as_me:$LINENO: result: $have_x" >&5
24670echo "${ECHO_T}$have_x" >&6
24671 no_x=yes
24672else
24673 # If each of the values was on the command line, it overrides each guess.
24674 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24675 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24676 # Update the cache value to reflect the command line values.
24677 ac_cv_have_x="have_x=yes \
24678 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
04840eaa
VS
24679 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
24680echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
a848cd7e
SC
24681fi
24682
24683if test "$no_x" = yes; then
24684 # Not all programs may use this symbol, but it does not hurt to define it.
24685
24686cat >>confdefs.h <<\_ACEOF
24687#define X_DISPLAY_MISSING 1
24688_ACEOF
24689
24690 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24691else
24692 if test -n "$x_includes"; then
24693 X_CFLAGS="$X_CFLAGS -I$x_includes"
24694 fi
24695
24696 # It would also be nice to do this for all -L options, not just this one.
24697 if test -n "$x_libraries"; then
24698 X_LIBS="$X_LIBS -L$x_libraries"
24699 # For Solaris; some versions of Sun CC require a space after -R and
24700 # others require no space. Words are not sufficient . . . .
24701 case `(uname -sr) 2>/dev/null` in
24702 "SunOS 5"*)
24703 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24704echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24705 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24706 cat >conftest.$ac_ext <<_ACEOF
24707/* confdefs.h. */
24708_ACEOF
24709cat confdefs.h >>conftest.$ac_ext
24710cat >>conftest.$ac_ext <<_ACEOF
24711/* end confdefs.h. */
24712
24713int
24714main ()
24715{
24716
24717 ;
24718 return 0;
24719}
24720_ACEOF
24721rm -f conftest.$ac_objext conftest$ac_exeext
24722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24723 (eval $ac_link) 2>conftest.er1
a848cd7e 24724 ac_status=$?
ac1cb8d3
VS
24725 grep -v '^ *+' conftest.er1 >conftest.err
24726 rm -f conftest.er1
24727 cat conftest.err >&5
a848cd7e
SC
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } &&
04840eaa
VS
24730 { ac_try='test -z "$ac_c_werror_flag"
24731 || test ! -s conftest.err'
ac1cb8d3
VS
24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733 (eval $ac_try) 2>&5
24734 ac_status=$?
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; } &&
24737 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739 (eval $ac_try) 2>&5
24740 ac_status=$?
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); }; }; then
24743 ac_R_nospace=yes
24744else
24745 echo "$as_me: failed program was:" >&5
24746sed 's/^/| /' conftest.$ac_ext >&5
24747
24748ac_R_nospace=no
24749fi
ac1cb8d3
VS
24750rm -f conftest.err conftest.$ac_objext \
24751 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24752 if test $ac_R_nospace = yes; then
24753 echo "$as_me:$LINENO: result: no" >&5
24754echo "${ECHO_T}no" >&6
24755 X_LIBS="$X_LIBS -R$x_libraries"
24756 else
24757 LIBS="$ac_xsave_LIBS -R $x_libraries"
24758 cat >conftest.$ac_ext <<_ACEOF
24759/* confdefs.h. */
24760_ACEOF
24761cat confdefs.h >>conftest.$ac_ext
24762cat >>conftest.$ac_ext <<_ACEOF
24763/* end confdefs.h. */
24764
24765int
24766main ()
24767{
24768
24769 ;
24770 return 0;
24771}
24772_ACEOF
24773rm -f conftest.$ac_objext conftest$ac_exeext
24774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24775 (eval $ac_link) 2>conftest.er1
a848cd7e 24776 ac_status=$?
ac1cb8d3
VS
24777 grep -v '^ *+' conftest.er1 >conftest.err
24778 rm -f conftest.er1
24779 cat conftest.err >&5
a848cd7e
SC
24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781 (exit $ac_status); } &&
04840eaa
VS
24782 { ac_try='test -z "$ac_c_werror_flag"
24783 || test ! -s conftest.err'
ac1cb8d3
VS
24784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24785 (eval $ac_try) 2>&5
24786 ac_status=$?
24787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24788 (exit $ac_status); }; } &&
24789 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24791 (eval $ac_try) 2>&5
24792 ac_status=$?
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; }; then
24795 ac_R_space=yes
24796else
24797 echo "$as_me: failed program was:" >&5
24798sed 's/^/| /' conftest.$ac_ext >&5
24799
24800ac_R_space=no
24801fi
ac1cb8d3
VS
24802rm -f conftest.err conftest.$ac_objext \
24803 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24804 if test $ac_R_space = yes; then
24805 echo "$as_me:$LINENO: result: yes" >&5
24806echo "${ECHO_T}yes" >&6
24807 X_LIBS="$X_LIBS -R $x_libraries"
24808 else
24809 echo "$as_me:$LINENO: result: neither works" >&5
24810echo "${ECHO_T}neither works" >&6
24811 fi
24812 fi
24813 LIBS=$ac_xsave_LIBS
24814 esac
24815 fi
24816
24817 # Check for system-dependent libraries X programs must link with.
24818 # Do this before checking for the system-independent R6 libraries
24819 # (-lICE), since we may need -lsocket or whatever for X linking.
24820
24821 if test "$ISC" = yes; then
24822 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24823 else
24824 # Martyn Johnson says this is needed for Ultrix, if the X
24825 # libraries were built with DECnet support. And Karl Berry says
24826 # the Alpha needs dnet_stub (dnet does not exist).
24827 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24828 cat >conftest.$ac_ext <<_ACEOF
24829/* confdefs.h. */
24830_ACEOF
24831cat confdefs.h >>conftest.$ac_ext
24832cat >>conftest.$ac_ext <<_ACEOF
24833/* end confdefs.h. */
24834
24835/* Override any gcc2 internal prototype to avoid an error. */
24836#ifdef __cplusplus
24837extern "C"
24838#endif
24839/* We use char because int might match the return type of a gcc2
24840 builtin and then its argument prototype would still apply. */
24841char XOpenDisplay ();
24842int
24843main ()
24844{
24845XOpenDisplay ();
24846 ;
24847 return 0;
24848}
24849_ACEOF
24850rm -f conftest.$ac_objext conftest$ac_exeext
24851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24852 (eval $ac_link) 2>conftest.er1
a848cd7e 24853 ac_status=$?
ac1cb8d3
VS
24854 grep -v '^ *+' conftest.er1 >conftest.err
24855 rm -f conftest.er1
24856 cat conftest.err >&5
a848cd7e
SC
24857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24858 (exit $ac_status); } &&
04840eaa
VS
24859 { ac_try='test -z "$ac_c_werror_flag"
24860 || test ! -s conftest.err'
ac1cb8d3
VS
24861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24862 (eval $ac_try) 2>&5
24863 ac_status=$?
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); }; } &&
24866 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24868 (eval $ac_try) 2>&5
24869 ac_status=$?
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); }; }; then
24872 :
24873else
24874 echo "$as_me: failed program was:" >&5
24875sed 's/^/| /' conftest.$ac_ext >&5
24876
24877echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24878echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24879if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24880 echo $ECHO_N "(cached) $ECHO_C" >&6
24881else
24882 ac_check_lib_save_LIBS=$LIBS
24883LIBS="-ldnet $LIBS"
24884cat >conftest.$ac_ext <<_ACEOF
24885/* confdefs.h. */
24886_ACEOF
24887cat confdefs.h >>conftest.$ac_ext
24888cat >>conftest.$ac_ext <<_ACEOF
24889/* end confdefs.h. */
24890
24891/* Override any gcc2 internal prototype to avoid an error. */
24892#ifdef __cplusplus
24893extern "C"
24894#endif
24895/* We use char because int might match the return type of a gcc2
24896 builtin and then its argument prototype would still apply. */
24897char dnet_ntoa ();
24898int
24899main ()
24900{
24901dnet_ntoa ();
24902 ;
24903 return 0;
24904}
24905_ACEOF
24906rm -f conftest.$ac_objext conftest$ac_exeext
24907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24908 (eval $ac_link) 2>conftest.er1
a848cd7e 24909 ac_status=$?
ac1cb8d3
VS
24910 grep -v '^ *+' conftest.er1 >conftest.err
24911 rm -f conftest.er1
24912 cat conftest.err >&5
a848cd7e
SC
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); } &&
04840eaa
VS
24915 { ac_try='test -z "$ac_c_werror_flag"
24916 || test ! -s conftest.err'
ac1cb8d3
VS
24917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918 (eval $ac_try) 2>&5
24919 ac_status=$?
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; } &&
24922 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24924 (eval $ac_try) 2>&5
24925 ac_status=$?
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }; }; then
24928 ac_cv_lib_dnet_dnet_ntoa=yes
24929else
24930 echo "$as_me: failed program was:" >&5
24931sed 's/^/| /' conftest.$ac_ext >&5
24932
24933ac_cv_lib_dnet_dnet_ntoa=no
24934fi
ac1cb8d3
VS
24935rm -f conftest.err conftest.$ac_objext \
24936 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24937LIBS=$ac_check_lib_save_LIBS
24938fi
24939echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24940echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24941if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24942 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24943fi
24944
24945 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24946 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24947echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24948if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24949 echo $ECHO_N "(cached) $ECHO_C" >&6
24950else
24951 ac_check_lib_save_LIBS=$LIBS
24952LIBS="-ldnet_stub $LIBS"
24953cat >conftest.$ac_ext <<_ACEOF
24954/* confdefs.h. */
24955_ACEOF
24956cat confdefs.h >>conftest.$ac_ext
24957cat >>conftest.$ac_ext <<_ACEOF
24958/* end confdefs.h. */
24959
24960/* Override any gcc2 internal prototype to avoid an error. */
24961#ifdef __cplusplus
24962extern "C"
24963#endif
24964/* We use char because int might match the return type of a gcc2
24965 builtin and then its argument prototype would still apply. */
24966char dnet_ntoa ();
24967int
24968main ()
24969{
24970dnet_ntoa ();
24971 ;
24972 return 0;
24973}
24974_ACEOF
24975rm -f conftest.$ac_objext conftest$ac_exeext
24976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24977 (eval $ac_link) 2>conftest.er1
a848cd7e 24978 ac_status=$?
ac1cb8d3
VS
24979 grep -v '^ *+' conftest.er1 >conftest.err
24980 rm -f conftest.er1
24981 cat conftest.err >&5
a848cd7e
SC
24982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); } &&
04840eaa
VS
24984 { ac_try='test -z "$ac_c_werror_flag"
24985 || test ! -s conftest.err'
ac1cb8d3
VS
24986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24987 (eval $ac_try) 2>&5
24988 ac_status=$?
24989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24990 (exit $ac_status); }; } &&
24991 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993 (eval $ac_try) 2>&5
24994 ac_status=$?
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; }; then
24997 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24998else
24999 echo "$as_me: failed program was:" >&5
25000sed 's/^/| /' conftest.$ac_ext >&5
25001
25002ac_cv_lib_dnet_stub_dnet_ntoa=no
25003fi
ac1cb8d3
VS
25004rm -f conftest.err conftest.$ac_objext \
25005 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25006LIBS=$ac_check_lib_save_LIBS
25007fi
25008echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25009echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25010if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
25011 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25012fi
25013
25014 fi
25015fi
ac1cb8d3
VS
25016rm -f conftest.err conftest.$ac_objext \
25017 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25018 LIBS="$ac_xsave_LIBS"
25019
25020 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25021 # to get the SysV transport functions.
25022 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25023 # needs -lnsl.
25024 # The nsl library prevents programs from opening the X display
25025 # on Irix 5.2, according to T.E. Dickey.
25026 # The functions gethostbyname, getservbyname, and inet_addr are
25027 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25028 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25029echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25030if test "${ac_cv_func_gethostbyname+set}" = set; then
25031 echo $ECHO_N "(cached) $ECHO_C" >&6
25032else
25033 cat >conftest.$ac_ext <<_ACEOF
25034/* confdefs.h. */
25035_ACEOF
25036cat confdefs.h >>conftest.$ac_ext
25037cat >>conftest.$ac_ext <<_ACEOF
25038/* end confdefs.h. */
ac1cb8d3
VS
25039/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25040 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25041#define gethostbyname innocuous_gethostbyname
25042
a848cd7e
SC
25043/* System header to define __stub macros and hopefully few prototypes,
25044 which can conflict with char gethostbyname (); below.
25045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25046 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25047
a848cd7e
SC
25048#ifdef __STDC__
25049# include <limits.h>
25050#else
25051# include <assert.h>
25052#endif
ac1cb8d3
VS
25053
25054#undef gethostbyname
25055
a848cd7e
SC
25056/* Override any gcc2 internal prototype to avoid an error. */
25057#ifdef __cplusplus
25058extern "C"
25059{
25060#endif
25061/* We use char because int might match the return type of a gcc2
25062 builtin and then its argument prototype would still apply. */
25063char gethostbyname ();
25064/* The GNU C library defines this for functions which it implements
25065 to always fail with ENOSYS. Some functions are actually named
25066 something starting with __ and the normal name is an alias. */
25067#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25068choke me
25069#else
25070char (*f) () = gethostbyname;
25071#endif
25072#ifdef __cplusplus
25073}
25074#endif
25075
25076int
25077main ()
25078{
25079return f != gethostbyname;
25080 ;
25081 return 0;
25082}
25083_ACEOF
25084rm -f conftest.$ac_objext conftest$ac_exeext
25085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25086 (eval $ac_link) 2>conftest.er1
a848cd7e 25087 ac_status=$?
ac1cb8d3
VS
25088 grep -v '^ *+' conftest.er1 >conftest.err
25089 rm -f conftest.er1
25090 cat conftest.err >&5
a848cd7e
SC
25091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092 (exit $ac_status); } &&
04840eaa
VS
25093 { ac_try='test -z "$ac_c_werror_flag"
25094 || test ! -s conftest.err'
ac1cb8d3
VS
25095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25096 (eval $ac_try) 2>&5
25097 ac_status=$?
25098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); }; } &&
25100 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25102 (eval $ac_try) 2>&5
25103 ac_status=$?
25104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105 (exit $ac_status); }; }; then
25106 ac_cv_func_gethostbyname=yes
25107else
25108 echo "$as_me: failed program was:" >&5
25109sed 's/^/| /' conftest.$ac_ext >&5
25110
25111ac_cv_func_gethostbyname=no
25112fi
ac1cb8d3
VS
25113rm -f conftest.err conftest.$ac_objext \
25114 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25115fi
25116echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25117echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
25118
25119 if test $ac_cv_func_gethostbyname = no; then
25120 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25121echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25122if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25123 echo $ECHO_N "(cached) $ECHO_C" >&6
25124else
25125 ac_check_lib_save_LIBS=$LIBS
25126LIBS="-lnsl $LIBS"
25127cat >conftest.$ac_ext <<_ACEOF
25128/* confdefs.h. */
25129_ACEOF
25130cat confdefs.h >>conftest.$ac_ext
25131cat >>conftest.$ac_ext <<_ACEOF
25132/* end confdefs.h. */
25133
25134/* Override any gcc2 internal prototype to avoid an error. */
25135#ifdef __cplusplus
25136extern "C"
25137#endif
25138/* We use char because int might match the return type of a gcc2
25139 builtin and then its argument prototype would still apply. */
25140char gethostbyname ();
25141int
25142main ()
25143{
25144gethostbyname ();
25145 ;
25146 return 0;
25147}
25148_ACEOF
25149rm -f conftest.$ac_objext conftest$ac_exeext
25150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
25151 (eval $ac_link) 2>conftest.er1
25152 ac_status=$?
25153 grep -v '^ *+' conftest.er1 >conftest.err
25154 rm -f conftest.er1
25155 cat conftest.err >&5
25156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); } &&
04840eaa
VS
25158 { ac_try='test -z "$ac_c_werror_flag"
25159 || test ! -s conftest.err'
ac1cb8d3
VS
25160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25161 (eval $ac_try) 2>&5
25162 ac_status=$?
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); }; } &&
25165 { ac_try='test -s conftest$ac_exeext'
25166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25167 (eval $ac_try) 2>&5
25168 ac_status=$?
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); }; }; then
25171 ac_cv_lib_nsl_gethostbyname=yes
25172else
25173 echo "$as_me: failed program was:" >&5
25174sed 's/^/| /' conftest.$ac_ext >&5
25175
25176ac_cv_lib_nsl_gethostbyname=no
25177fi
25178rm -f conftest.err conftest.$ac_objext \
25179 conftest$ac_exeext conftest.$ac_ext
25180LIBS=$ac_check_lib_save_LIBS
25181fi
25182echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25183echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25184if test $ac_cv_lib_nsl_gethostbyname = yes; then
25185 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25186fi
25187
25188 if test $ac_cv_lib_nsl_gethostbyname = no; then
25189 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25190echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25191if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25192 echo $ECHO_N "(cached) $ECHO_C" >&6
25193else
25194 ac_check_lib_save_LIBS=$LIBS
25195LIBS="-lbsd $LIBS"
25196cat >conftest.$ac_ext <<_ACEOF
25197/* confdefs.h. */
25198_ACEOF
25199cat confdefs.h >>conftest.$ac_ext
25200cat >>conftest.$ac_ext <<_ACEOF
25201/* end confdefs.h. */
25202
25203/* Override any gcc2 internal prototype to avoid an error. */
25204#ifdef __cplusplus
25205extern "C"
25206#endif
25207/* We use char because int might match the return type of a gcc2
25208 builtin and then its argument prototype would still apply. */
25209char gethostbyname ();
25210int
25211main ()
25212{
25213gethostbyname ();
25214 ;
25215 return 0;
25216}
25217_ACEOF
25218rm -f conftest.$ac_objext conftest$ac_exeext
25219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25220 (eval $ac_link) 2>conftest.er1
a848cd7e 25221 ac_status=$?
ac1cb8d3
VS
25222 grep -v '^ *+' conftest.er1 >conftest.err
25223 rm -f conftest.er1
25224 cat conftest.err >&5
a848cd7e
SC
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } &&
04840eaa
VS
25227 { ac_try='test -z "$ac_c_werror_flag"
25228 || test ! -s conftest.err'
a848cd7e
SC
25229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230 (eval $ac_try) 2>&5
25231 ac_status=$?
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
25233 (exit $ac_status); }; } &&
25234 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25237 ac_status=$?
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25240 ac_cv_lib_bsd_gethostbyname=yes
25241else
25242 echo "$as_me: failed program was:" >&5
25243sed 's/^/| /' conftest.$ac_ext >&5
25244
25245ac_cv_lib_bsd_gethostbyname=no
25246fi
ac1cb8d3
VS
25247rm -f conftest.err conftest.$ac_objext \
25248 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25249LIBS=$ac_check_lib_save_LIBS
25250fi
25251echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25252echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25253if test $ac_cv_lib_bsd_gethostbyname = yes; then
25254 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25255fi
25256
25257 fi
25258 fi
25259
25260 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25261 # socket/setsockopt and other routines are undefined under SCO ODT
25262 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25263 # on later versions), says Simon Leinen: it contains gethostby*
25264 # variants that don't use the name server (or something). -lsocket
25265 # must be given before -lnsl if both are needed. We assume that
25266 # if connect needs -lnsl, so does gethostbyname.
25267 echo "$as_me:$LINENO: checking for connect" >&5
25268echo $ECHO_N "checking for connect... $ECHO_C" >&6
25269if test "${ac_cv_func_connect+set}" = set; then
25270 echo $ECHO_N "(cached) $ECHO_C" >&6
25271else
25272 cat >conftest.$ac_ext <<_ACEOF
25273/* confdefs.h. */
25274_ACEOF
25275cat confdefs.h >>conftest.$ac_ext
25276cat >>conftest.$ac_ext <<_ACEOF
25277/* end confdefs.h. */
ac1cb8d3
VS
25278/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25280#define connect innocuous_connect
25281
a848cd7e
SC
25282/* System header to define __stub macros and hopefully few prototypes,
25283 which can conflict with char connect (); below.
25284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25285 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25286
a848cd7e
SC
25287#ifdef __STDC__
25288# include <limits.h>
25289#else
25290# include <assert.h>
25291#endif
ac1cb8d3
VS
25292
25293#undef connect
25294
a848cd7e
SC
25295/* Override any gcc2 internal prototype to avoid an error. */
25296#ifdef __cplusplus
25297extern "C"
25298{
25299#endif
25300/* We use char because int might match the return type of a gcc2
25301 builtin and then its argument prototype would still apply. */
25302char connect ();
25303/* The GNU C library defines this for functions which it implements
25304 to always fail with ENOSYS. Some functions are actually named
25305 something starting with __ and the normal name is an alias. */
25306#if defined (__stub_connect) || defined (__stub___connect)
25307choke me
25308#else
25309char (*f) () = connect;
25310#endif
25311#ifdef __cplusplus
25312}
25313#endif
25314
25315int
25316main ()
25317{
25318return f != connect;
25319 ;
25320 return 0;
25321}
25322_ACEOF
25323rm -f conftest.$ac_objext conftest$ac_exeext
25324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25325 (eval $ac_link) 2>conftest.er1
a848cd7e 25326 ac_status=$?
ac1cb8d3
VS
25327 grep -v '^ *+' conftest.er1 >conftest.err
25328 rm -f conftest.er1
25329 cat conftest.err >&5
a848cd7e
SC
25330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331 (exit $ac_status); } &&
04840eaa
VS
25332 { ac_try='test -z "$ac_c_werror_flag"
25333 || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
25339 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341 (eval $ac_try) 2>&5
25342 ac_status=$?
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; }; then
25345 ac_cv_func_connect=yes
25346else
25347 echo "$as_me: failed program was:" >&5
25348sed 's/^/| /' conftest.$ac_ext >&5
25349
25350ac_cv_func_connect=no
25351fi
ac1cb8d3
VS
25352rm -f conftest.err conftest.$ac_objext \
25353 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25354fi
25355echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25356echo "${ECHO_T}$ac_cv_func_connect" >&6
25357
25358 if test $ac_cv_func_connect = no; then
25359 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25360echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25361if test "${ac_cv_lib_socket_connect+set}" = set; then
25362 echo $ECHO_N "(cached) $ECHO_C" >&6
25363else
25364 ac_check_lib_save_LIBS=$LIBS
25365LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25366cat >conftest.$ac_ext <<_ACEOF
25367/* confdefs.h. */
25368_ACEOF
25369cat confdefs.h >>conftest.$ac_ext
25370cat >>conftest.$ac_ext <<_ACEOF
25371/* end confdefs.h. */
25372
25373/* Override any gcc2 internal prototype to avoid an error. */
25374#ifdef __cplusplus
25375extern "C"
25376#endif
25377/* We use char because int might match the return type of a gcc2
25378 builtin and then its argument prototype would still apply. */
25379char connect ();
25380int
25381main ()
25382{
25383connect ();
25384 ;
25385 return 0;
25386}
25387_ACEOF
25388rm -f conftest.$ac_objext conftest$ac_exeext
25389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25390 (eval $ac_link) 2>conftest.er1
a848cd7e 25391 ac_status=$?
ac1cb8d3
VS
25392 grep -v '^ *+' conftest.er1 >conftest.err
25393 rm -f conftest.er1
25394 cat conftest.err >&5
a848cd7e
SC
25395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25396 (exit $ac_status); } &&
04840eaa
VS
25397 { ac_try='test -z "$ac_c_werror_flag"
25398 || test ! -s conftest.err'
ac1cb8d3
VS
25399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25400 (eval $ac_try) 2>&5
25401 ac_status=$?
25402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403 (exit $ac_status); }; } &&
25404 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25406 (eval $ac_try) 2>&5
25407 ac_status=$?
25408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); }; }; then
25410 ac_cv_lib_socket_connect=yes
25411else
25412 echo "$as_me: failed program was:" >&5
25413sed 's/^/| /' conftest.$ac_ext >&5
25414
25415ac_cv_lib_socket_connect=no
25416fi
ac1cb8d3
VS
25417rm -f conftest.err conftest.$ac_objext \
25418 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25419LIBS=$ac_check_lib_save_LIBS
25420fi
25421echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25422echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25423if test $ac_cv_lib_socket_connect = yes; then
25424 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25425fi
25426
25427 fi
25428
25429 # Guillermo Gomez says -lposix is necessary on A/UX.
25430 echo "$as_me:$LINENO: checking for remove" >&5
25431echo $ECHO_N "checking for remove... $ECHO_C" >&6
25432if test "${ac_cv_func_remove+set}" = set; then
25433 echo $ECHO_N "(cached) $ECHO_C" >&6
25434else
25435 cat >conftest.$ac_ext <<_ACEOF
25436/* confdefs.h. */
25437_ACEOF
25438cat confdefs.h >>conftest.$ac_ext
25439cat >>conftest.$ac_ext <<_ACEOF
25440/* end confdefs.h. */
ac1cb8d3
VS
25441/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25443#define remove innocuous_remove
25444
a848cd7e
SC
25445/* System header to define __stub macros and hopefully few prototypes,
25446 which can conflict with char remove (); below.
25447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25448 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25449
a848cd7e
SC
25450#ifdef __STDC__
25451# include <limits.h>
25452#else
25453# include <assert.h>
25454#endif
ac1cb8d3
VS
25455
25456#undef remove
25457
a848cd7e
SC
25458/* Override any gcc2 internal prototype to avoid an error. */
25459#ifdef __cplusplus
25460extern "C"
25461{
25462#endif
25463/* We use char because int might match the return type of a gcc2
25464 builtin and then its argument prototype would still apply. */
25465char remove ();
25466/* The GNU C library defines this for functions which it implements
25467 to always fail with ENOSYS. Some functions are actually named
25468 something starting with __ and the normal name is an alias. */
25469#if defined (__stub_remove) || defined (__stub___remove)
25470choke me
25471#else
25472char (*f) () = remove;
25473#endif
25474#ifdef __cplusplus
25475}
25476#endif
25477
25478int
25479main ()
25480{
25481return f != remove;
25482 ;
25483 return 0;
25484}
25485_ACEOF
25486rm -f conftest.$ac_objext conftest$ac_exeext
25487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25488 (eval $ac_link) 2>conftest.er1
a848cd7e 25489 ac_status=$?
ac1cb8d3
VS
25490 grep -v '^ *+' conftest.er1 >conftest.err
25491 rm -f conftest.er1
25492 cat conftest.err >&5
a848cd7e
SC
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } &&
04840eaa
VS
25495 { ac_try='test -z "$ac_c_werror_flag"
25496 || test ! -s conftest.err'
ac1cb8d3
VS
25497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498 (eval $ac_try) 2>&5
25499 ac_status=$?
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); }; } &&
25502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25504 (eval $ac_try) 2>&5
25505 ac_status=$?
25506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507 (exit $ac_status); }; }; then
25508 ac_cv_func_remove=yes
25509else
25510 echo "$as_me: failed program was:" >&5
25511sed 's/^/| /' conftest.$ac_ext >&5
25512
25513ac_cv_func_remove=no
25514fi
ac1cb8d3
VS
25515rm -f conftest.err conftest.$ac_objext \
25516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25517fi
25518echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25519echo "${ECHO_T}$ac_cv_func_remove" >&6
25520
25521 if test $ac_cv_func_remove = no; then
25522 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25523echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25524if test "${ac_cv_lib_posix_remove+set}" = set; then
25525 echo $ECHO_N "(cached) $ECHO_C" >&6
25526else
25527 ac_check_lib_save_LIBS=$LIBS
25528LIBS="-lposix $LIBS"
25529cat >conftest.$ac_ext <<_ACEOF
25530/* confdefs.h. */
25531_ACEOF
25532cat confdefs.h >>conftest.$ac_ext
25533cat >>conftest.$ac_ext <<_ACEOF
25534/* end confdefs.h. */
25535
25536/* Override any gcc2 internal prototype to avoid an error. */
25537#ifdef __cplusplus
25538extern "C"
25539#endif
25540/* We use char because int might match the return type of a gcc2
25541 builtin and then its argument prototype would still apply. */
25542char remove ();
25543int
25544main ()
25545{
25546remove ();
25547 ;
25548 return 0;
25549}
25550_ACEOF
25551rm -f conftest.$ac_objext conftest$ac_exeext
25552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25553 (eval $ac_link) 2>conftest.er1
a848cd7e 25554 ac_status=$?
ac1cb8d3
VS
25555 grep -v '^ *+' conftest.er1 >conftest.err
25556 rm -f conftest.er1
25557 cat conftest.err >&5
a848cd7e
SC
25558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25559 (exit $ac_status); } &&
04840eaa
VS
25560 { ac_try='test -z "$ac_c_werror_flag"
25561 || test ! -s conftest.err'
ac1cb8d3
VS
25562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; } &&
25567 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569 (eval $ac_try) 2>&5
25570 ac_status=$?
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); }; }; then
25573 ac_cv_lib_posix_remove=yes
25574else
25575 echo "$as_me: failed program was:" >&5
25576sed 's/^/| /' conftest.$ac_ext >&5
25577
25578ac_cv_lib_posix_remove=no
25579fi
ac1cb8d3
VS
25580rm -f conftest.err conftest.$ac_objext \
25581 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25582LIBS=$ac_check_lib_save_LIBS
25583fi
25584echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25585echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25586if test $ac_cv_lib_posix_remove = yes; then
25587 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25588fi
25589
25590 fi
25591
25592 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25593 echo "$as_me:$LINENO: checking for shmat" >&5
25594echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25595if test "${ac_cv_func_shmat+set}" = set; then
25596 echo $ECHO_N "(cached) $ECHO_C" >&6
25597else
25598 cat >conftest.$ac_ext <<_ACEOF
25599/* confdefs.h. */
25600_ACEOF
25601cat confdefs.h >>conftest.$ac_ext
25602cat >>conftest.$ac_ext <<_ACEOF
25603/* end confdefs.h. */
ac1cb8d3
VS
25604/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25606#define shmat innocuous_shmat
25607
a848cd7e
SC
25608/* System header to define __stub macros and hopefully few prototypes,
25609 which can conflict with char shmat (); below.
25610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25611 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 25612
a848cd7e
SC
25613#ifdef __STDC__
25614# include <limits.h>
25615#else
25616# include <assert.h>
25617#endif
ac1cb8d3
VS
25618
25619#undef shmat
25620
a848cd7e
SC
25621/* Override any gcc2 internal prototype to avoid an error. */
25622#ifdef __cplusplus
25623extern "C"
25624{
25625#endif
25626/* We use char because int might match the return type of a gcc2
25627 builtin and then its argument prototype would still apply. */
25628char shmat ();
25629/* The GNU C library defines this for functions which it implements
25630 to always fail with ENOSYS. Some functions are actually named
25631 something starting with __ and the normal name is an alias. */
25632#if defined (__stub_shmat) || defined (__stub___shmat)
25633choke me
25634#else
25635char (*f) () = shmat;
25636#endif
25637#ifdef __cplusplus
25638}
25639#endif
25640
25641int
25642main ()
25643{
25644return f != shmat;
25645 ;
25646 return 0;
25647}
25648_ACEOF
25649rm -f conftest.$ac_objext conftest$ac_exeext
25650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25651 (eval $ac_link) 2>conftest.er1
a848cd7e 25652 ac_status=$?
ac1cb8d3
VS
25653 grep -v '^ *+' conftest.er1 >conftest.err
25654 rm -f conftest.er1
25655 cat conftest.err >&5
a848cd7e
SC
25656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 (exit $ac_status); } &&
04840eaa
VS
25658 { ac_try='test -z "$ac_c_werror_flag"
25659 || test ! -s conftest.err'
ac1cb8d3
VS
25660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25661 (eval $ac_try) 2>&5
25662 ac_status=$?
25663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664 (exit $ac_status); }; } &&
25665 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25667 (eval $ac_try) 2>&5
25668 ac_status=$?
25669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25670 (exit $ac_status); }; }; then
25671 ac_cv_func_shmat=yes
25672else
25673 echo "$as_me: failed program was:" >&5
25674sed 's/^/| /' conftest.$ac_ext >&5
25675
25676ac_cv_func_shmat=no
25677fi
ac1cb8d3
VS
25678rm -f conftest.err conftest.$ac_objext \
25679 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25680fi
25681echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25682echo "${ECHO_T}$ac_cv_func_shmat" >&6
25683
25684 if test $ac_cv_func_shmat = no; then
25685 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25686echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25687if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25688 echo $ECHO_N "(cached) $ECHO_C" >&6
25689else
25690 ac_check_lib_save_LIBS=$LIBS
25691LIBS="-lipc $LIBS"
25692cat >conftest.$ac_ext <<_ACEOF
25693/* confdefs.h. */
25694_ACEOF
25695cat confdefs.h >>conftest.$ac_ext
25696cat >>conftest.$ac_ext <<_ACEOF
25697/* end confdefs.h. */
25698
25699/* Override any gcc2 internal prototype to avoid an error. */
25700#ifdef __cplusplus
25701extern "C"
25702#endif
25703/* We use char because int might match the return type of a gcc2
25704 builtin and then its argument prototype would still apply. */
25705char shmat ();
25706int
25707main ()
25708{
25709shmat ();
25710 ;
25711 return 0;
25712}
25713_ACEOF
25714rm -f conftest.$ac_objext conftest$ac_exeext
25715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25716 (eval $ac_link) 2>conftest.er1
a848cd7e 25717 ac_status=$?
ac1cb8d3
VS
25718 grep -v '^ *+' conftest.er1 >conftest.err
25719 rm -f conftest.er1
25720 cat conftest.err >&5
a848cd7e
SC
25721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25722 (exit $ac_status); } &&
04840eaa
VS
25723 { ac_try='test -z "$ac_c_werror_flag"
25724 || test ! -s conftest.err'
ac1cb8d3
VS
25725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25726 (eval $ac_try) 2>&5
25727 ac_status=$?
25728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25729 (exit $ac_status); }; } &&
25730 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25732 (eval $ac_try) 2>&5
25733 ac_status=$?
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); }; }; then
25736 ac_cv_lib_ipc_shmat=yes
25737else
25738 echo "$as_me: failed program was:" >&5
25739sed 's/^/| /' conftest.$ac_ext >&5
25740
25741ac_cv_lib_ipc_shmat=no
25742fi
ac1cb8d3
VS
25743rm -f conftest.err conftest.$ac_objext \
25744 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25745LIBS=$ac_check_lib_save_LIBS
25746fi
25747echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25748echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25749if test $ac_cv_lib_ipc_shmat = yes; then
25750 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25751fi
25752
25753 fi
25754 fi
25755
25756 # Check for libraries that X11R6 Xt/Xaw programs need.
25757 ac_save_LDFLAGS=$LDFLAGS
25758 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25759 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25760 # check for ICE first), but we must link in the order -lSM -lICE or
25761 # we get undefined symbols. So assume we have SM if we have ICE.
25762 # These have to be linked with before -lX11, unlike the other
25763 # libraries we check for below, so use a different variable.
25764 # John Interrante, Karl Berry
25765 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25766echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25767if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25768 echo $ECHO_N "(cached) $ECHO_C" >&6
25769else
25770 ac_check_lib_save_LIBS=$LIBS
25771LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25772cat >conftest.$ac_ext <<_ACEOF
25773/* confdefs.h. */
25774_ACEOF
25775cat confdefs.h >>conftest.$ac_ext
25776cat >>conftest.$ac_ext <<_ACEOF
25777/* end confdefs.h. */
25778
25779/* Override any gcc2 internal prototype to avoid an error. */
25780#ifdef __cplusplus
25781extern "C"
25782#endif
25783/* We use char because int might match the return type of a gcc2
25784 builtin and then its argument prototype would still apply. */
25785char IceConnectionNumber ();
25786int
25787main ()
25788{
25789IceConnectionNumber ();
25790 ;
25791 return 0;
25792}
25793_ACEOF
25794rm -f conftest.$ac_objext conftest$ac_exeext
25795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25796 (eval $ac_link) 2>conftest.er1
a848cd7e 25797 ac_status=$?
ac1cb8d3
VS
25798 grep -v '^ *+' conftest.er1 >conftest.err
25799 rm -f conftest.er1
25800 cat conftest.err >&5
a848cd7e
SC
25801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25802 (exit $ac_status); } &&
04840eaa
VS
25803 { ac_try='test -z "$ac_c_werror_flag"
25804 || test ! -s conftest.err'
ac1cb8d3
VS
25805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25806 (eval $ac_try) 2>&5
25807 ac_status=$?
25808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25809 (exit $ac_status); }; } &&
25810 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25812 (eval $ac_try) 2>&5
25813 ac_status=$?
25814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25815 (exit $ac_status); }; }; then
25816 ac_cv_lib_ICE_IceConnectionNumber=yes
25817else
25818 echo "$as_me: failed program was:" >&5
25819sed 's/^/| /' conftest.$ac_ext >&5
25820
25821ac_cv_lib_ICE_IceConnectionNumber=no
25822fi
ac1cb8d3
VS
25823rm -f conftest.err conftest.$ac_objext \
25824 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25825LIBS=$ac_check_lib_save_LIBS
25826fi
25827echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25828echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25829if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
25830 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25831fi
25832
25833 LDFLAGS=$ac_save_LDFLAGS
25834
25835fi
25836
25837
25838 if test "$no_x" = "yes"; then
25839 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25840echo "$as_me: error: X11 not found" >&2;}
25841 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
25842 fi
25843
74b84332
VS
25844 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
25845 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
25846 AFMINSTALL=afminstall
25847 COMPILED_X_PROGRAM=0
25848
74b84332
VS
25849 fi
25850
25851 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
25852 if test "$wxUSE_NANOX" = "yes"; then
25853 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
25854echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
25855 if test "x$MICROWIN" = x ; then
25856 echo "$as_me:$LINENO: result: not found" >&5
25857echo "${ECHO_T}not found" >&6
25858 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
25859echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
25860 { (exit 1); exit 1; }; }
25861 else
25862 echo "$as_me:$LINENO: result: $MICROWIN" >&5
25863echo "${ECHO_T}$MICROWIN" >&6
25864 cat >>confdefs.h <<\_ACEOF
25865#define wxUSE_NANOX 1
25866_ACEOF
25867
25868 fi
25869 fi
25870
25871 if test "$wxUSE_UNICODE" = "yes"; then
25872
25873 succeeded=no
25874
25875 if test -z "$PKG_CONFIG"; then
25876 # Extract the first word of "pkg-config", so it can be a program name with args.
25877set dummy pkg-config; ac_word=$2
25878echo "$as_me:$LINENO: checking for $ac_word" >&5
25879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25880if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25881 echo $ECHO_N "(cached) $ECHO_C" >&6
25882else
25883 case $PKG_CONFIG in
25884 [\\/]* | ?:[\\/]*)
25885 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25886 ;;
25887 *)
25888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25889for as_dir in $PATH
25890do
25891 IFS=$as_save_IFS
25892 test -z "$as_dir" && as_dir=.
25893 for ac_exec_ext in '' $ac_executable_extensions; do
25894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25895 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25897 break 2
25898 fi
25899done
25900done
25901
25902 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25903 ;;
25904esac
25905fi
25906PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25907
25908if test -n "$PKG_CONFIG"; then
25909 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25910echo "${ECHO_T}$PKG_CONFIG" >&6
25911else
25912 echo "$as_me:$LINENO: result: no" >&5
25913echo "${ECHO_T}no" >&6
25914fi
25915
25916 fi
25917
25918 if test "$PKG_CONFIG" = "no" ; then
25919 echo "*** The pkg-config script could not be found. Make sure it is"
25920 echo "*** in your path, or set the PKG_CONFIG environment variable"
25921 echo "*** to the full path to pkg-config."
25922 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25923 else
25924 PKG_CONFIG_MIN_VERSION=0.9.0
25925 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25926 echo "$as_me:$LINENO: checking for pangox" >&5
25927echo $ECHO_N "checking for pangox... $ECHO_C" >&6
25928
25929 if $PKG_CONFIG --exists "pangox" ; then
25930 echo "$as_me:$LINENO: result: yes" >&5
25931echo "${ECHO_T}yes" >&6
25932 succeeded=yes
25933
25934 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
25935echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
25936 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
25937 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
25938echo "${ECHO_T}$PANGOX_CFLAGS" >&6
25939
25940 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
25941echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
25942 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
25943 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
25944echo "${ECHO_T}$PANGOX_LIBS" >&6
25945 else
25946 PANGOX_CFLAGS=""
25947 PANGOX_LIBS=""
25948 ## If we have a custom action on failure, don't print errors, but
25949 ## do set a variable so people can do so.
25950 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
25951
25952 fi
25953
25954
25955
25956 else
25957 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25958 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25959 fi
25960 fi
25961
25962 if test $succeeded = yes; then
25963
25964 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
25965 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
25966
25967 else
25968
25969 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
25970echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
25971 { (exit 1); exit 1; }; }
25972
25973
25974 fi
25975
25976
25977 succeeded=no
25978
25979 if test -z "$PKG_CONFIG"; then
25980 # Extract the first word of "pkg-config", so it can be a program name with args.
25981set dummy pkg-config; ac_word=$2
25982echo "$as_me:$LINENO: checking for $ac_word" >&5
25983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25984if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25985 echo $ECHO_N "(cached) $ECHO_C" >&6
25986else
25987 case $PKG_CONFIG in
25988 [\\/]* | ?:[\\/]*)
25989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25990 ;;
25991 *)
25992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25993for as_dir in $PATH
25994do
25995 IFS=$as_save_IFS
25996 test -z "$as_dir" && as_dir=.
25997 for ac_exec_ext in '' $ac_executable_extensions; do
25998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25999 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26001 break 2
26002 fi
26003done
26004done
26005
26006 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26007 ;;
26008esac
26009fi
26010PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26011
26012if test -n "$PKG_CONFIG"; then
26013 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26014echo "${ECHO_T}$PKG_CONFIG" >&6
26015else
26016 echo "$as_me:$LINENO: result: no" >&5
26017echo "${ECHO_T}no" >&6
26018fi
26019
26020 fi
26021
26022 if test "$PKG_CONFIG" = "no" ; then
26023 echo "*** The pkg-config script could not be found. Make sure it is"
26024 echo "*** in your path, or set the PKG_CONFIG environment variable"
26025 echo "*** to the full path to pkg-config."
26026 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26027 else
26028 PKG_CONFIG_MIN_VERSION=0.9.0
26029 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26030 echo "$as_me:$LINENO: checking for pangoft2" >&5
26031echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
26032
26033 if $PKG_CONFIG --exists "pangoft2" ; then
26034 echo "$as_me:$LINENO: result: yes" >&5
26035echo "${ECHO_T}yes" >&6
26036 succeeded=yes
26037
26038 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
26039echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
26040 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
26041 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
26042echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
26043
26044 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
26045echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
26046 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
26047 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
26048echo "${ECHO_T}$PANGOFT2_LIBS" >&6
26049 else
26050 PANGOFT2_CFLAGS=""
26051 PANGOFT2_LIBS=""
26052 ## If we have a custom action on failure, don't print errors, but
26053 ## do set a variable so people can do so.
26054 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
26055
26056 fi
26057
26058
26059
26060 else
26061 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26062 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26063 fi
26064 fi
26065
26066 if test $succeeded = yes; then
26067
26068 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
26069 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
26070
26071 else
26072
26073 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
26074echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
26075 wxUSE_PRINTING_ARCHITECTURE="no"
26076
26077
26078 fi
26079
26080
26081 succeeded=no
26082
26083 if test -z "$PKG_CONFIG"; then
26084 # Extract the first word of "pkg-config", so it can be a program name with args.
26085set dummy pkg-config; ac_word=$2
26086echo "$as_me:$LINENO: checking for $ac_word" >&5
26087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26088if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26090else
26091 case $PKG_CONFIG in
26092 [\\/]* | ?:[\\/]*)
26093 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26094 ;;
26095 *)
26096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26097for as_dir in $PATH
26098do
26099 IFS=$as_save_IFS
26100 test -z "$as_dir" && as_dir=.
26101 for ac_exec_ext in '' $ac_executable_extensions; do
26102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26103 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26105 break 2
26106 fi
26107done
26108done
26109
26110 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26111 ;;
26112esac
26113fi
26114PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26115
26116if test -n "$PKG_CONFIG"; then
26117 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26118echo "${ECHO_T}$PKG_CONFIG" >&6
26119else
26120 echo "$as_me:$LINENO: result: no" >&5
26121echo "${ECHO_T}no" >&6
26122fi
26123
26124 fi
26125
26126 if test "$PKG_CONFIG" = "no" ; then
26127 echo "*** The pkg-config script could not be found. Make sure it is"
26128 echo "*** in your path, or set the PKG_CONFIG environment variable"
26129 echo "*** to the full path to pkg-config."
26130 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26131 else
26132 PKG_CONFIG_MIN_VERSION=0.9.0
26133 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26134 echo "$as_me:$LINENO: checking for pangoxft" >&5
26135echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
26136
26137 if $PKG_CONFIG --exists "pangoxft" ; then
26138 echo "$as_me:$LINENO: result: yes" >&5
26139echo "${ECHO_T}yes" >&6
26140 succeeded=yes
26141
26142 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
26143echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
26144 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
26145 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
26146echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
26147
26148 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
26149echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
26150 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
26151 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
26152echo "${ECHO_T}$PANGOXFT_LIBS" >&6
26153 else
26154 PANGOXFT_CFLAGS=""
26155 PANGOXFT_LIBS=""
26156 ## If we have a custom action on failure, don't print errors, but
26157 ## do set a variable so people can do so.
26158 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
26159
26160 fi
26161
26162
26163
26164 else
26165 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26166 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26167 fi
26168 fi
26169
26170 if test $succeeded = yes; then
26171
4ae1af05
MB
26172 cat >>confdefs.h <<\_ACEOF
26173#define HAVE_PANGO_XFT 1
26174_ACEOF
26175
a848cd7e
SC
26176 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
26177 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
26178
26179 else
26180
26181 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
26182echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
26183
26184
26185 fi
26186
304205f1
VS
26187 save_CFLAGS="$CFLAGS"
26188 save_LIBS="$LIBS"
26189 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
26190 LIBS="$LIBS $PANGOX_LIBS"
26191
26192for ac_func in pango_font_family_is_monospace
26193do
26194as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26195echo "$as_me:$LINENO: checking for $ac_func" >&5
26196echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26197if eval "test \"\${$as_ac_var+set}\" = set"; then
26198 echo $ECHO_N "(cached) $ECHO_C" >&6
26199else
26200 cat >conftest.$ac_ext <<_ACEOF
26201/* confdefs.h. */
26202_ACEOF
26203cat confdefs.h >>conftest.$ac_ext
26204cat >>conftest.$ac_ext <<_ACEOF
26205/* end confdefs.h. */
26206/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26208#define $ac_func innocuous_$ac_func
26209
26210/* System header to define __stub macros and hopefully few prototypes,
26211 which can conflict with char $ac_func (); below.
26212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26213 <limits.h> exists even on freestanding compilers. */
26214
26215#ifdef __STDC__
26216# include <limits.h>
26217#else
26218# include <assert.h>
26219#endif
26220
26221#undef $ac_func
26222
26223/* Override any gcc2 internal prototype to avoid an error. */
26224#ifdef __cplusplus
26225extern "C"
26226{
26227#endif
26228/* We use char because int might match the return type of a gcc2
26229 builtin and then its argument prototype would still apply. */
26230char $ac_func ();
26231/* The GNU C library defines this for functions which it implements
26232 to always fail with ENOSYS. Some functions are actually named
26233 something starting with __ and the normal name is an alias. */
26234#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26235choke me
26236#else
26237char (*f) () = $ac_func;
26238#endif
26239#ifdef __cplusplus
26240}
26241#endif
26242
26243int
26244main ()
26245{
26246return f != $ac_func;
26247 ;
26248 return 0;
26249}
26250_ACEOF
26251rm -f conftest.$ac_objext conftest$ac_exeext
26252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26253 (eval $ac_link) 2>conftest.er1
26254 ac_status=$?
26255 grep -v '^ *+' conftest.er1 >conftest.err
26256 rm -f conftest.er1
26257 cat conftest.err >&5
26258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26259 (exit $ac_status); } &&
04840eaa
VS
26260 { ac_try='test -z "$ac_c_werror_flag"
26261 || test ! -s conftest.err'
304205f1
VS
26262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26263 (eval $ac_try) 2>&5
26264 ac_status=$?
26265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266 (exit $ac_status); }; } &&
26267 { ac_try='test -s conftest$ac_exeext'
26268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26269 (eval $ac_try) 2>&5
26270 ac_status=$?
26271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26272 (exit $ac_status); }; }; then
26273 eval "$as_ac_var=yes"
26274else
26275 echo "$as_me: failed program was:" >&5
26276sed 's/^/| /' conftest.$ac_ext >&5
26277
26278eval "$as_ac_var=no"
26279fi
26280rm -f conftest.err conftest.$ac_objext \
26281 conftest$ac_exeext conftest.$ac_ext
26282fi
26283echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26284echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26285if test `eval echo '${'$as_ac_var'}'` = yes; then
26286 cat >>confdefs.h <<_ACEOF
26287#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26288_ACEOF
26289
26290fi
26291done
26292
26293 CFLAGS="$save_CFLAGS"
26294 LIBS="$save_LIBS"
a848cd7e
SC
26295 fi
26296
26297 wxUSE_UNIVERSAL="yes"
26298
26299 if test "$wxUSE_NANOX" = "yes"; then
26300 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
26301 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"
26302 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
26303 else
26304 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
26305 fi
26306
a848cd7e
SC
26307 TOOLKIT=X11
26308 GUIDIST=X11_DIST
26309 fi
26310
26311 if test "$wxUSE_MOTIF" = 1; then
74b84332
VS
26312 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26313echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 26314
74b84332
VS
26315ac_find_includes=
26316for ac_dir in $SEARCH_INCLUDE /usr/include;
26317 do
26318 if test -f "$ac_dir/Xm/Xm.h"; then
26319 ac_find_includes=$ac_dir
26320 break
26321 fi
26322 done
a848cd7e 26323
74b84332
VS
26324 if test "$ac_find_includes" != "" ; then
26325 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26326echo "${ECHO_T}found in $ac_find_includes" >&6
26327
26328 if test "x$ac_find_includes" = "x/usr/include"; then
26329 ac_path_to_include=""
26330 else
26331 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26332 result=$?
26333 if test $result = 0; then
26334 ac_path_to_include=""
26335 else
26336 ac_path_to_include=" -I$ac_find_includes"
26337 fi
a848cd7e
SC
26338 fi
26339
74b84332
VS
26340 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
26341 else
26342 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26343/* confdefs.h. */
26344_ACEOF
26345cat confdefs.h >>conftest.$ac_ext
26346cat >>conftest.$ac_ext <<_ACEOF
26347/* end confdefs.h. */
26348
74b84332
VS
26349 #include <Xm/Xm.h>
26350
a848cd7e
SC
26351int
26352main ()
26353{
26354
74b84332
VS
26355 int version;
26356 version = xmUseVersion;
26357
a848cd7e
SC
26358 ;
26359 return 0;
26360}
26361_ACEOF
74b84332
VS
26362rm -f conftest.$ac_objext
26363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26364 (eval $ac_compile) 2>conftest.er1
a848cd7e 26365 ac_status=$?
ac1cb8d3
VS
26366 grep -v '^ *+' conftest.er1 >conftest.err
26367 rm -f conftest.er1
26368 cat conftest.err >&5
a848cd7e
SC
26369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); } &&
04840eaa
VS
26371 { ac_try='test -z "$ac_c_werror_flag"
26372 || test ! -s conftest.err'
ac1cb8d3
VS
26373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26374 (eval $ac_try) 2>&5
26375 ac_status=$?
26376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26377 (exit $ac_status); }; } &&
74b84332 26378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26380 (eval $ac_try) 2>&5
26381 ac_status=$?
26382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26383 (exit $ac_status); }; }; then
74b84332
VS
26384
26385 echo "$as_me:$LINENO: result: found in default search path" >&5
26386echo "${ECHO_T}found in default search path" >&6
26387 COMPILED_X_PROGRAM=1
26388
a848cd7e
SC
26389else
26390 echo "$as_me: failed program was:" >&5
26391sed 's/^/| /' conftest.$ac_ext >&5
26392
a848cd7e 26393
74b84332
VS
26394 echo "$as_me:$LINENO: result: no" >&5
26395echo "${ECHO_T}no" >&6
26396 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26397echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26398 { (exit 1); exit 1; }; }
a848cd7e 26399
a848cd7e 26400
a848cd7e 26401fi
74b84332
VS
26402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26403 fi
26404
26405 if test "$COMPILED_X_PROGRAM" = 0; then
26406 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26407echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26408
26409ac_find_libraries=
26410for ac_dir in $SEARCH_LIB /usr/lib;
26411 do
26412 for ac_extension in a so sl dylib; do
26413 if test -f "$ac_dir/libXm.$ac_extension"; then
26414 ac_find_libraries=$ac_dir
26415 break 2
a848cd7e 26416 fi
74b84332
VS
26417 done
26418 done
a848cd7e 26419
74b84332
VS
26420 if test "$ac_find_libraries" != "" ; then
26421 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26422echo "${ECHO_T}found at $ac_find_libraries" >&6
a848cd7e 26423
74b84332
VS
26424
26425 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26426 result=$?
26427 if test $result = 0; then
26428 ac_path_to_link=""
a848cd7e 26429 else
74b84332
VS
26430 ac_path_to_link=" -L$ac_find_libraries"
26431 fi
26432
26433 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26434 else
26435 save_CFLAGS=$CFLAGS
26436 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26437
26438 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26439/* confdefs.h. */
26440_ACEOF
26441cat confdefs.h >>conftest.$ac_ext
26442cat >>conftest.$ac_ext <<_ACEOF
26443/* end confdefs.h. */
26444
74b84332
VS
26445 #include <Xm/Xm.h>
26446
a848cd7e
SC
26447int
26448main ()
26449{
74b84332
VS
26450
26451 int version;
26452 version = xmUseVersion;
26453
a848cd7e
SC
26454 ;
26455 return 0;
26456}
26457_ACEOF
74b84332
VS
26458rm -f conftest.$ac_objext
26459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26460 (eval $ac_compile) 2>conftest.er1
a848cd7e 26461 ac_status=$?
ac1cb8d3
VS
26462 grep -v '^ *+' conftest.er1 >conftest.err
26463 rm -f conftest.er1
26464 cat conftest.err >&5
a848cd7e
SC
26465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466 (exit $ac_status); } &&
04840eaa
VS
26467 { ac_try='test -z "$ac_c_werror_flag"
26468 || test ! -s conftest.err'
ac1cb8d3
VS
26469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26470 (eval $ac_try) 2>&5
26471 ac_status=$?
26472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473 (exit $ac_status); }; } &&
74b84332 26474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26476 (eval $ac_try) 2>&5
26477 ac_status=$?
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); }; }; then
74b84332
VS
26480
26481 echo "$as_me:$LINENO: result: found in default search path" >&5
26482echo "${ECHO_T}found in default search path" >&6
26483 COMPILED_X_PROGRAM=1
26484
a848cd7e
SC
26485else
26486 echo "$as_me: failed program was:" >&5
26487sed 's/^/| /' conftest.$ac_ext >&5
26488
74b84332
VS
26489
26490 echo "$as_me:$LINENO: result: no" >&5
26491echo "${ECHO_T}no" >&6
26492 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26493echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26494 { (exit 1); exit 1; }; }
26495
26496
26497fi
26498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26499
26500 CFLAGS=$save_CFLAGS
26501 fi
26502 fi
26503
26504 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26505echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
26506 libp_link=""
26507 libsm_ice_link=""
26508 libs_found=0
26509 for libp in "" " -lXp"; do
26510 if test "$libs_found" = "0"; then
26511 for libsm_ice in "" " -lSM -lICE"; do
26512 if test "$libs_found" = "0"; then
26513 save_LIBS="$LIBS"
26514 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
26515 save_CFLAGS=$CFLAGS
26516 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26517
26518 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
26519/* confdefs.h. */
26520_ACEOF
26521cat confdefs.h >>conftest.$ac_ext
26522cat >>conftest.$ac_ext <<_ACEOF
26523/* end confdefs.h. */
26524
74b84332
VS
26525 #include <Xm/Xm.h>
26526 #include <Xm/List.h>
26527
a848cd7e
SC
26528int
26529main ()
26530{
74b84332
VS
26531
26532 XmString string = NULL;
26533 Widget w = NULL;
26534 int position = 0;
26535 XmListAddItem(w, string, position);
26536
a848cd7e
SC
26537 ;
26538 return 0;
26539}
26540_ACEOF
26541rm -f conftest.$ac_objext conftest$ac_exeext
26542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26543 (eval $ac_link) 2>conftest.er1
a848cd7e 26544 ac_status=$?
ac1cb8d3
VS
26545 grep -v '^ *+' conftest.er1 >conftest.err
26546 rm -f conftest.er1
26547 cat conftest.err >&5
a848cd7e
SC
26548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26549 (exit $ac_status); } &&
04840eaa
VS
26550 { ac_try='test -z "$ac_c_werror_flag"
26551 || test ! -s conftest.err'
ac1cb8d3
VS
26552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26553 (eval $ac_try) 2>&5
26554 ac_status=$?
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); }; } &&
26557 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26559 (eval $ac_try) 2>&5
26560 ac_status=$?
26561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26562 (exit $ac_status); }; }; then
26563
26564 libp_link="$libp"
26565 libsm_ice_link="$libsm_ice"
26566 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26567echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
26568 libs_found=1
26569
26570else
26571 echo "$as_me: failed program was:" >&5
26572sed 's/^/| /' conftest.$ac_ext >&5
26573
26574
26575
26576fi
ac1cb8d3
VS
26577rm -f conftest.err conftest.$ac_objext \
26578 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26579
26580 LIBS="$save_LIBS"
26581 CFLAGS=$save_CFLAGS
26582 fi
26583 done
26584 fi
26585 done
26586
26587 if test "$libs_found" = "0"; then
26588 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26589echo "${ECHO_T}can't find the right libraries" >&6
26590 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26591echo "$as_me: error: can't link a simple motif program" >&2;}
26592 { (exit 1); exit 1; }; }
26593 fi
26594
26595 save_CFLAGS=$CFLAGS
26596 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26597 echo "$as_me:$LINENO: checking for Motif 2" >&5
26598echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26599 cat >conftest.$ac_ext <<_ACEOF
26600/* confdefs.h. */
26601_ACEOF
26602cat confdefs.h >>conftest.$ac_ext
26603cat >>conftest.$ac_ext <<_ACEOF
26604/* end confdefs.h. */
26605
26606 #include <Xm/Xm.h>
26607
26608int
26609main ()
26610{
26611
26612 #if XmVersion < 2000
26613 #error "Not Motif 2"
26614 #endif
26615
26616 ;
26617 return 0;
26618}
26619_ACEOF
26620rm -f conftest.$ac_objext
26621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26622 (eval $ac_compile) 2>conftest.er1
a848cd7e 26623 ac_status=$?
ac1cb8d3
VS
26624 grep -v '^ *+' conftest.er1 >conftest.err
26625 rm -f conftest.er1
26626 cat conftest.err >&5
a848cd7e
SC
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); } &&
04840eaa
VS
26629 { ac_try='test -z "$ac_c_werror_flag"
26630 || test ! -s conftest.err'
ac1cb8d3
VS
26631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26632 (eval $ac_try) 2>&5
26633 ac_status=$?
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); }; } &&
26636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; }; then
26642
26643 cat >>confdefs.h <<\_ACEOF
26644#define __WXMOTIF20__ 1
26645_ACEOF
26646
26647 echo "$as_me:$LINENO: result: found" >&5
26648echo "${ECHO_T}found" >&6
26649
26650else
26651 echo "$as_me: failed program was:" >&5
26652sed 's/^/| /' conftest.$ac_ext >&5
26653
26654
26655 cat >>confdefs.h <<\_ACEOF
26656#define __WXMOTIF20__ 0
26657_ACEOF
26658
26659 echo "$as_me:$LINENO: result: not found" >&5
26660echo "${ECHO_T}not found" >&6
26661
26662fi
ac1cb8d3 26663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26664 CFLAGS=$save_CFLAGS
26665
26666 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
26667 TOOLKIT=MOTIF
26668 GUIDIST=MOTIF_DIST
26669 fi
26670
74b84332 26671 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
26672 if test "$wxUSE_LIBXPM" = "sys"; then
26673 echo "$as_me:$LINENO: checking for Xpm library" >&5
26674echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26675
26676ac_find_libraries=
26677for ac_dir in $SEARCH_LIB /usr/lib;
26678 do
26679 for ac_extension in a so sl dylib; do
26680 if test -f "$ac_dir/libXpm.$ac_extension"; then
26681 ac_find_libraries=$ac_dir
26682 break 2
26683 fi
26684 done
26685 done
26686
26687 if test "$ac_find_libraries" != "" ; then
26688
26689 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26690 result=$?
26691 if test $result = 0; then
26692 ac_path_to_link=""
26693 else
26694 ac_path_to_link=" -L$ac_find_libraries"
26695 fi
26696
26697 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26698 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26699echo "${ECHO_T}found at $ac_find_libraries" >&6
26700
26701 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26702echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26703if test "${wx_cv_x11_xpm_h+set}" = set; then
26704 echo $ECHO_N "(cached) $ECHO_C" >&6
26705else
26706
26707 save_CFLAGS=$CFLAGS
26708 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26709
26710 cat >conftest.$ac_ext <<_ACEOF
26711/* confdefs.h. */
26712_ACEOF
26713cat confdefs.h >>conftest.$ac_ext
26714cat >>conftest.$ac_ext <<_ACEOF
26715/* end confdefs.h. */
26716
26717 #include <X11/xpm.h>
26718
26719int
26720main ()
26721{
26722
26723 int version;
26724 version = XpmLibraryVersion();
26725
26726 ;
26727 return 0;
26728}
26729_ACEOF
26730rm -f conftest.$ac_objext
26731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26732 (eval $ac_compile) 2>conftest.er1
a848cd7e 26733 ac_status=$?
ac1cb8d3
VS
26734 grep -v '^ *+' conftest.er1 >conftest.err
26735 rm -f conftest.er1
26736 cat conftest.err >&5
a848cd7e
SC
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); } &&
04840eaa
VS
26739 { ac_try='test -z "$ac_c_werror_flag"
26740 || test ! -s conftest.err'
ac1cb8d3
VS
26741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26742 (eval $ac_try) 2>&5
26743 ac_status=$?
26744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745 (exit $ac_status); }; } &&
26746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26748 (eval $ac_try) 2>&5
26749 ac_status=$?
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); }; }; then
26752 wx_cv_x11_xpm_h=yes
26753else
26754 echo "$as_me: failed program was:" >&5
26755sed 's/^/| /' conftest.$ac_ext >&5
26756
26757wx_cv_x11_xpm_h=no
26758
26759fi
ac1cb8d3 26760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26761
26762 CFLAGS=$save_CFLAGS
26763
26764
26765fi
26766echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26767echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26768
26769 if test $wx_cv_x11_xpm_h = "yes"; then
26770 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
26771 cat >>confdefs.h <<\_ACEOF
26772#define wxHAVE_LIB_XPM 1
26773_ACEOF
26774
26775 else
26776 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26777echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26778 fi
26779 fi
26780
26781 fi
26782
26783 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26784echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26785if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26786 echo $ECHO_N "(cached) $ECHO_C" >&6
26787else
26788 ac_check_lib_save_LIBS=$LIBS
26789LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26790cat >conftest.$ac_ext <<_ACEOF
26791/* confdefs.h. */
26792_ACEOF
26793cat confdefs.h >>conftest.$ac_ext
26794cat >>conftest.$ac_ext <<_ACEOF
26795/* end confdefs.h. */
26796
26797/* Override any gcc2 internal prototype to avoid an error. */
26798#ifdef __cplusplus
26799extern "C"
26800#endif
26801/* We use char because int might match the return type of a gcc2
26802 builtin and then its argument prototype would still apply. */
26803char XShapeQueryExtension ();
26804int
26805main ()
26806{
26807XShapeQueryExtension ();
26808 ;
26809 return 0;
26810}
26811_ACEOF
26812rm -f conftest.$ac_objext conftest$ac_exeext
26813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26814 (eval $ac_link) 2>conftest.er1
a848cd7e 26815 ac_status=$?
ac1cb8d3
VS
26816 grep -v '^ *+' conftest.er1 >conftest.err
26817 rm -f conftest.er1
26818 cat conftest.err >&5
a848cd7e
SC
26819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26820 (exit $ac_status); } &&
04840eaa
VS
26821 { ac_try='test -z "$ac_c_werror_flag"
26822 || test ! -s conftest.err'
ac1cb8d3
VS
26823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26824 (eval $ac_try) 2>&5
26825 ac_status=$?
26826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827 (exit $ac_status); }; } &&
26828 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26830 (eval $ac_try) 2>&5
26831 ac_status=$?
26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26833 (exit $ac_status); }; }; then
26834 ac_cv_lib_Xext_XShapeQueryExtension=yes
26835else
26836 echo "$as_me: failed program was:" >&5
26837sed 's/^/| /' conftest.$ac_ext >&5
26838
26839ac_cv_lib_Xext_XShapeQueryExtension=no
26840fi
ac1cb8d3
VS
26841rm -f conftest.err conftest.$ac_objext \
26842 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26843LIBS=$ac_check_lib_save_LIBS
26844fi
26845echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26846echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26847if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26848
26849 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26850 wxHAVE_XEXT_LIB=1
26851
26852fi
26853
26854
26855 if test "$wxHAVE_XEXT_LIB" = 1; then
26856 save_CFLAGS="$CFLAGS"
26857 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26858
26859 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
26860echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
26861 cat >conftest.$ac_ext <<_ACEOF
26862/* confdefs.h. */
26863_ACEOF
26864cat confdefs.h >>conftest.$ac_ext
26865cat >>conftest.$ac_ext <<_ACEOF
26866/* end confdefs.h. */
26867
26868 #include <X11/Xlib.h>
26869 #include <X11/extensions/shape.h>
26870
26871int
26872main ()
26873{
26874
26875 int dummy1, dummy2;
26876 XShapeQueryExtension((Display*)NULL,
26877 (int*)NULL, (int*)NULL);
26878
26879 ;
26880 return 0;
26881}
26882_ACEOF
26883rm -f conftest.$ac_objext
26884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26885 (eval $ac_compile) 2>conftest.er1
a848cd7e 26886 ac_status=$?
ac1cb8d3
VS
26887 grep -v '^ *+' conftest.er1 >conftest.err
26888 rm -f conftest.er1
26889 cat conftest.err >&5
a848cd7e
SC
26890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26891 (exit $ac_status); } &&
04840eaa
VS
26892 { ac_try='test -z "$ac_c_werror_flag"
26893 || test ! -s conftest.err'
ac1cb8d3
VS
26894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26895 (eval $ac_try) 2>&5
26896 ac_status=$?
26897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26898 (exit $ac_status); }; } &&
26899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
26900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26901 (eval $ac_try) 2>&5
26902 ac_status=$?
26903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904 (exit $ac_status); }; }; then
26905
26906 cat >>confdefs.h <<\_ACEOF
26907#define HAVE_XSHAPE 1
26908_ACEOF
26909
26910 echo "$as_me:$LINENO: result: found" >&5
26911echo "${ECHO_T}found" >&6
26912
26913else
26914 echo "$as_me: failed program was:" >&5
26915sed 's/^/| /' conftest.$ac_ext >&5
26916
26917
26918 echo "$as_me:$LINENO: result: not found" >&5
26919echo "${ECHO_T}not found" >&6
26920
26921fi
ac1cb8d3 26922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26923 CFLAGS="$save_CFLAGS"
26924
26925 fi
26926 fi
26927
26928 if test "$wxUSE_MAC" = 1; then
26929 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26930echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26931 if test "$GCC" = yes; then
26932 echo "$as_me:$LINENO: result: gcc" >&5
26933echo "${ECHO_T}gcc" >&6
26934 CPPFLAGS_PASCAL="-fpascal-strings"
26935 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26936 echo "$as_me:$LINENO: result: xlc" >&5
26937echo "${ECHO_T}xlc" >&6
26938 CPPFLAGS_PASCAL="-qmacpstr"
26939 else
26940 echo "$as_me:$LINENO: result: none" >&5
26941echo "${ECHO_T}none" >&6
26942 fi
26943
1e9e8aba
DE
26944 if test "x$wxUSE_UNIX" = "xyes"; then
26945 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
26946 else
26947 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
26948 fi
a848cd7e 26949
a848cd7e
SC
26950 TOOLKIT=MAC
26951 GUIDIST=MACX_DIST
dd21ced8 26952 WXBASEPORT="_carbon"
a848cd7e
SC
26953 fi
26954
26955 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
26956 TOOLKIT=COCOA
26957 GUIDIST=COCOA_DIST
26958 fi
26959
26960 if test "$wxUSE_PM" = 1; then
26961 TOOLKIT=PM
de59c161
RD
26962 GUIDIST=PM_DIST
26963 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
26964echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
26965if test "${wx_cv_spbcdata+set}" = set; then
26966 echo $ECHO_N "(cached) $ECHO_C" >&6
26967else
26968
26969 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
26970/* confdefs.h. */
26971_ACEOF
26972cat confdefs.h >>conftest.$ac_ext
26973cat >>conftest.$ac_ext <<_ACEOF
26974/* end confdefs.h. */
26975
26976 #define INCL_PM
26977 #include <os2.h>
26978
26979int
26980main ()
26981{
26982
26983 SPBCDATA test;
26984
26985 ;
26986 return 0;
26987}
26988_ACEOF
26989rm -f conftest.$ac_objext
26990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 26991 (eval $ac_compile) 2>conftest.er1
de59c161 26992 ac_status=$?
ac1cb8d3
VS
26993 grep -v '^ *+' conftest.er1 >conftest.err
26994 rm -f conftest.er1
26995 cat conftest.err >&5
de59c161
RD
26996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997 (exit $ac_status); } &&
04840eaa
VS
26998 { ac_try='test -z "$ac_c_werror_flag"
26999 || test ! -s conftest.err'
ac1cb8d3
VS
27000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27001 (eval $ac_try) 2>&5
27002 ac_status=$?
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); }; } &&
27005 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
27006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27007 (eval $ac_try) 2>&5
27008 ac_status=$?
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); }; }; then
27011 wx_cv_spbcdata=yes
27012else
27013 echo "$as_me: failed program was:" >&5
27014sed 's/^/| /' conftest.$ac_ext >&5
27015
27016wx_cv_spbcdata=no
27017
27018fi
ac1cb8d3 27019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
27020
27021
27022fi
27023echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
27024echo "${ECHO_T}$wx_cv_spbcdata" >&6
27025
27026 if test $wx_cv_spbcdata = "yes"; then
27027 cat >>confdefs.h <<\_ACEOF
27028#define HAVE_SPBCDATA 1
27029_ACEOF
27030
27031 fi
a848cd7e
SC
27032 fi
27033
27034 if test "$TOOLKIT" = "PM" ; then
27035 TOOLKIT_DIR="os2"
27036 else
27037 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
27038 fi
27039
a848cd7e 27040 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
27041 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
27042 WIDGET_SET=univ
a848cd7e
SC
27043 fi
27044
27045 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
27046 DISTDIR="wx\$(TOOLKIT)"
27047else
27048 USE_GUI=0
27049
27050 TOOLKIT_DIR="base"
27051
27052 if test "$USE_WIN32" = 1 ; then
a848cd7e 27053 TOOLKIT="MSW"
a848cd7e
SC
27054 fi
27055
a848cd7e
SC
27056 GUIDIST="BASE_DIST"
27057 DISTDIR="wxBase"
27058fi
27059
27060
27061
27062
27063IODBC_C_SRC=""
27064
27065
27066if test "$TOOLKIT" != "MSW" ; then
27067
27068 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
27069
27070 if test "${ac_cv_header_sql_h+set}" = set; then
27071 echo "$as_me:$LINENO: checking for sql.h" >&5
27072echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27073if test "${ac_cv_header_sql_h+set}" = set; then
27074 echo $ECHO_N "(cached) $ECHO_C" >&6
27075fi
27076echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27077echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27078else
27079 # Is the header compilable?
27080echo "$as_me:$LINENO: checking sql.h usability" >&5
27081echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
27082cat >conftest.$ac_ext <<_ACEOF
27083/* confdefs.h. */
27084_ACEOF
27085cat confdefs.h >>conftest.$ac_ext
27086cat >>conftest.$ac_ext <<_ACEOF
27087/* end confdefs.h. */
27088$ac_includes_default
27089#include <sql.h>
27090_ACEOF
27091rm -f conftest.$ac_objext
27092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27093 (eval $ac_compile) 2>conftest.er1
a848cd7e 27094 ac_status=$?
ac1cb8d3
VS
27095 grep -v '^ *+' conftest.er1 >conftest.err
27096 rm -f conftest.er1
27097 cat conftest.err >&5
a848cd7e
SC
27098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27099 (exit $ac_status); } &&
04840eaa
VS
27100 { ac_try='test -z "$ac_c_werror_flag"
27101 || test ! -s conftest.err'
ac1cb8d3
VS
27102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27103 (eval $ac_try) 2>&5
27104 ac_status=$?
27105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106 (exit $ac_status); }; } &&
27107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27109 (eval $ac_try) 2>&5
27110 ac_status=$?
27111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27112 (exit $ac_status); }; }; then
27113 ac_header_compiler=yes
27114else
27115 echo "$as_me: failed program was:" >&5
27116sed 's/^/| /' conftest.$ac_ext >&5
27117
27118ac_header_compiler=no
27119fi
ac1cb8d3 27120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27121echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27122echo "${ECHO_T}$ac_header_compiler" >&6
27123
27124# Is the header present?
27125echo "$as_me:$LINENO: checking sql.h presence" >&5
27126echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
27127cat >conftest.$ac_ext <<_ACEOF
27128/* confdefs.h. */
27129_ACEOF
27130cat confdefs.h >>conftest.$ac_ext
27131cat >>conftest.$ac_ext <<_ACEOF
27132/* end confdefs.h. */
27133#include <sql.h>
27134_ACEOF
27135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27137 ac_status=$?
27138 grep -v '^ *+' conftest.er1 >conftest.err
27139 rm -f conftest.er1
27140 cat conftest.err >&5
27141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142 (exit $ac_status); } >/dev/null; then
27143 if test -s conftest.err; then
27144 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27146 else
27147 ac_cpp_err=
27148 fi
27149else
27150 ac_cpp_err=yes
27151fi
27152if test -z "$ac_cpp_err"; then
27153 ac_header_preproc=yes
27154else
27155 echo "$as_me: failed program was:" >&5
27156sed 's/^/| /' conftest.$ac_ext >&5
27157
27158 ac_header_preproc=no
27159fi
27160rm -f conftest.err conftest.$ac_ext
27161echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27162echo "${ECHO_T}$ac_header_preproc" >&6
27163
27164# So? What about this header?
ac1cb8d3
VS
27165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27166 yes:no: )
a848cd7e
SC
27167 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
27168echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27169 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
27170echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
27171 ac_header_preproc=yes
a848cd7e 27172 ;;
ac1cb8d3 27173 no:yes:* )
a848cd7e
SC
27174 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27175echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27176 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27177echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27178 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27179echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27180 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27181echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27182 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27183echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27184 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27185echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27186 (
27187 cat <<\_ASBOX
ac1cb8d3
VS
27188## ----------------------------------------- ##
27189## Report this to wx-dev@lists.wxwidgets.org ##
27190## ----------------------------------------- ##
a848cd7e
SC
27191_ASBOX
27192 ) |
27193 sed "s/^/$as_me: WARNING: /" >&2
27194 ;;
27195esac
27196echo "$as_me:$LINENO: checking for sql.h" >&5
27197echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27198if test "${ac_cv_header_sql_h+set}" = set; then
27199 echo $ECHO_N "(cached) $ECHO_C" >&6
27200else
27201 ac_cv_header_sql_h=$ac_header_preproc
27202fi
27203echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27204echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27205
27206fi
27207if test $ac_cv_header_sql_h = yes; then
27208 found_sql_h=1
27209fi
27210
27211
27212 if test "x$found_sql_h" = "x1" ; then
27213 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27214echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27215if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
27216 echo $ECHO_N "(cached) $ECHO_C" >&6
27217else
27218 ac_check_lib_save_LIBS=$LIBS
27219LIBS="-liodbc $LIBS"
27220cat >conftest.$ac_ext <<_ACEOF
27221/* confdefs.h. */
27222_ACEOF
27223cat confdefs.h >>conftest.$ac_ext
27224cat >>conftest.$ac_ext <<_ACEOF
27225/* end confdefs.h. */
27226
27227/* Override any gcc2 internal prototype to avoid an error. */
27228#ifdef __cplusplus
27229extern "C"
27230#endif
27231/* We use char because int might match the return type of a gcc2
27232 builtin and then its argument prototype would still apply. */
27233char SQLAllocEnv ();
27234int
27235main ()
27236{
27237SQLAllocEnv ();
27238 ;
27239 return 0;
27240}
27241_ACEOF
27242rm -f conftest.$ac_objext conftest$ac_exeext
27243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27244 (eval $ac_link) 2>conftest.er1
a848cd7e 27245 ac_status=$?
ac1cb8d3
VS
27246 grep -v '^ *+' conftest.er1 >conftest.err
27247 rm -f conftest.er1
27248 cat conftest.err >&5
a848cd7e
SC
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); } &&
04840eaa
VS
27251 { ac_try='test -z "$ac_c_werror_flag"
27252 || test ! -s conftest.err'
ac1cb8d3
VS
27253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254 (eval $ac_try) 2>&5
27255 ac_status=$?
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; } &&
27258 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27261 ac_status=$?
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; }; then
27264 ac_cv_lib_iodbc_SQLAllocEnv=yes
27265else
27266 echo "$as_me: failed program was:" >&5
27267sed 's/^/| /' conftest.$ac_ext >&5
27268
27269ac_cv_lib_iodbc_SQLAllocEnv=no
27270fi
ac1cb8d3
VS
27271rm -f conftest.err conftest.$ac_objext \
27272 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27273LIBS=$ac_check_lib_save_LIBS
27274fi
27275echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27276echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27277if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
27278 ODBC_LINK=" -liodbc"
27279else
27280
27281 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27282echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27283if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
27284 echo $ECHO_N "(cached) $ECHO_C" >&6
27285else
27286 ac_check_lib_save_LIBS=$LIBS
27287LIBS="-lunixodbc $LIBS"
27288cat >conftest.$ac_ext <<_ACEOF
27289/* confdefs.h. */
27290_ACEOF
27291cat confdefs.h >>conftest.$ac_ext
27292cat >>conftest.$ac_ext <<_ACEOF
27293/* end confdefs.h. */
27294
27295/* Override any gcc2 internal prototype to avoid an error. */
27296#ifdef __cplusplus
27297extern "C"
27298#endif
27299/* We use char because int might match the return type of a gcc2
27300 builtin and then its argument prototype would still apply. */
27301char SQLAllocEnv ();
27302int
27303main ()
27304{
27305SQLAllocEnv ();
27306 ;
27307 return 0;
27308}
27309_ACEOF
27310rm -f conftest.$ac_objext conftest$ac_exeext
27311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27312 (eval $ac_link) 2>conftest.er1
a848cd7e 27313 ac_status=$?
ac1cb8d3
VS
27314 grep -v '^ *+' conftest.er1 >conftest.err
27315 rm -f conftest.er1
27316 cat conftest.err >&5
a848cd7e
SC
27317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27318 (exit $ac_status); } &&
04840eaa
VS
27319 { ac_try='test -z "$ac_c_werror_flag"
27320 || test ! -s conftest.err'
ac1cb8d3
VS
27321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27322 (eval $ac_try) 2>&5
27323 ac_status=$?
27324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27325 (exit $ac_status); }; } &&
27326 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27328 (eval $ac_try) 2>&5
27329 ac_status=$?
27330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331 (exit $ac_status); }; }; then
27332 ac_cv_lib_unixodbc_SQLAllocEnv=yes
27333else
27334 echo "$as_me: failed program was:" >&5
27335sed 's/^/| /' conftest.$ac_ext >&5
27336
27337ac_cv_lib_unixodbc_SQLAllocEnv=no
27338fi
ac1cb8d3
VS
27339rm -f conftest.err conftest.$ac_objext \
27340 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27341LIBS=$ac_check_lib_save_LIBS
27342fi
27343echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27344echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27345if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
27346 ODBC_LINK=" -lunixodbc"
27347else
27348
27349 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27350echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27351if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
27352 echo $ECHO_N "(cached) $ECHO_C" >&6
27353else
27354 ac_check_lib_save_LIBS=$LIBS
27355LIBS="-lodbc $LIBS"
27356cat >conftest.$ac_ext <<_ACEOF
27357/* confdefs.h. */
27358_ACEOF
27359cat confdefs.h >>conftest.$ac_ext
27360cat >>conftest.$ac_ext <<_ACEOF
27361/* end confdefs.h. */
27362
27363/* Override any gcc2 internal prototype to avoid an error. */
27364#ifdef __cplusplus
27365extern "C"
27366#endif
27367/* We use char because int might match the return type of a gcc2
27368 builtin and then its argument prototype would still apply. */
27369char SQLAllocEnv ();
27370int
27371main ()
27372{
27373SQLAllocEnv ();
27374 ;
27375 return 0;
27376}
27377_ACEOF
27378rm -f conftest.$ac_objext conftest$ac_exeext
27379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27380 (eval $ac_link) 2>conftest.er1
a848cd7e 27381 ac_status=$?
ac1cb8d3
VS
27382 grep -v '^ *+' conftest.er1 >conftest.err
27383 rm -f conftest.er1
27384 cat conftest.err >&5
a848cd7e
SC
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); } &&
04840eaa
VS
27387 { ac_try='test -z "$ac_c_werror_flag"
27388 || test ! -s conftest.err'
ac1cb8d3
VS
27389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27390 (eval $ac_try) 2>&5
27391 ac_status=$?
27392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27393 (exit $ac_status); }; } &&
27394 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27396 (eval $ac_try) 2>&5
27397 ac_status=$?
27398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27399 (exit $ac_status); }; }; then
27400 ac_cv_lib_odbc_SQLAllocEnv=yes
27401else
27402 echo "$as_me: failed program was:" >&5
27403sed 's/^/| /' conftest.$ac_ext >&5
27404
27405ac_cv_lib_odbc_SQLAllocEnv=no
27406fi
ac1cb8d3
VS
27407rm -f conftest.err conftest.$ac_objext \
27408 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27409LIBS=$ac_check_lib_save_LIBS
27410fi
27411echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27412echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27413if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
27414 ODBC_LINK=" -lodbc"
27415fi
27416
27417
27418fi
27419
27420
27421fi
27422
27423 fi
27424 if test "x$ODBC_LINK" = "x" ; then
27425 if test "$wxUSE_ODBC" = "sys" ; then
27426 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27427echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27428 { (exit 1); exit 1; }; }
27429 else
27430 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27431echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27432 wxUSE_ODBC=builtin
27433 fi
27434 else
27435 wxUSE_ODBC=sys
27436 fi
27437 fi
27438 if test "$wxUSE_ODBC" != "no" ; then
27439 cat >>confdefs.h <<\_ACEOF
27440#define wxUSE_ODBC 1
27441_ACEOF
27442
27443 if test "$wxUSE_ODBC" = "builtin" ; then
27444 cat >>confdefs.h <<\_ACEOF
27445#define wxUSE_BUILTIN_IODBC 1
27446_ACEOF
27447
27448 fi
27449 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27450
27451 WXODBCFLAG="-D_IODBC_"
27452 fi
27453fi
27454
a848cd7e 27455
01cb68df 27456
a848cd7e 27457if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 27458 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
27459 echo "$as_me:$LINENO: checking for Xinerama" >&5
27460echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27461
27462ac_find_libraries=
27463for ac_dir in $SEARCH_LIB /usr/lib;
27464 do
27465 for ac_extension in a so sl dylib; do
27466 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27467 ac_find_libraries=$ac_dir
27468 break 2
27469 fi
27470 done
27471 done
27472
27473 if test "$ac_find_libraries" != "" ; then
27474
27475 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27476 result=$?
27477 if test $result = 0; then
27478 ac_path_to_link=""
27479 else
27480 ac_path_to_link=" -L$ac_find_libraries"
27481 fi
27482
27483 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27484 LDFLAGS="$LDFLAGS $ac_path_to_link"
27485 fi
27486 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27487 echo "$as_me:$LINENO: result: yes" >&5
27488echo "${ECHO_T}yes" >&6
27489
27490 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27491echo $ECHO_N "checking for Xxf86vm extension... $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/libXxf86vm.$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 echo "$as_me:$LINENO: result: yes" >&5
27506echo "${ECHO_T}yes" >&6
27507
27508for ac_header in X11/extensions/xf86vmode.h
27509do
27510as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27511echo "$as_me:$LINENO: checking for $ac_header" >&5
27512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27513if eval "test \"\${$as_ac_Header+set}\" = set"; then
27514 echo $ECHO_N "(cached) $ECHO_C" >&6
27515else
27516 cat >conftest.$ac_ext <<_ACEOF
27517/* confdefs.h. */
27518_ACEOF
27519cat confdefs.h >>conftest.$ac_ext
27520cat >>conftest.$ac_ext <<_ACEOF
27521/* end confdefs.h. */
27522
27523 #if HAVE_X11_XLIB_H
27524 #include <X11/Xlib.h>
27525 #endif
27526
27527
27528#include <$ac_header>
27529_ACEOF
27530rm -f conftest.$ac_objext
27531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27532 (eval $ac_compile) 2>conftest.er1
a848cd7e 27533 ac_status=$?
ac1cb8d3
VS
27534 grep -v '^ *+' conftest.er1 >conftest.err
27535 rm -f conftest.er1
27536 cat conftest.err >&5
a848cd7e
SC
27537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27538 (exit $ac_status); } &&
04840eaa
VS
27539 { ac_try='test -z "$ac_c_werror_flag"
27540 || test ! -s conftest.err'
ac1cb8d3
VS
27541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27542 (eval $ac_try) 2>&5
27543 ac_status=$?
27544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); }; } &&
27546 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27548 (eval $ac_try) 2>&5
27549 ac_status=$?
27550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551 (exit $ac_status); }; }; then
27552 eval "$as_ac_Header=yes"
27553else
27554 echo "$as_me: failed program was:" >&5
27555sed 's/^/| /' conftest.$ac_ext >&5
27556
27557eval "$as_ac_Header=no"
27558fi
ac1cb8d3 27559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27560fi
27561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27563if test `eval echo '${'$as_ac_Header'}'` = yes; then
27564 cat >>confdefs.h <<_ACEOF
27565#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27566_ACEOF
27567
27568 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27569
27570fi
27571
27572done
27573
27574 else
27575 echo "$as_me:$LINENO: result: no" >&5
27576echo "${ECHO_T}no" >&6
27577 fi
27578
27579 else
27580 echo "$as_me:$LINENO: result: no" >&5
27581echo "${ECHO_T}no" >&6
dcc1b6ad
VS
27582 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
27583echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
27584 wxUSE_DISPLAY="no"
27585 fi
01cb68df
RG
27586 elif test "$wxUSE_MSW" = 1; then
27587
27588
27589for ac_header in multimon.h ddraw.h
27590do
27591as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27592echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
27593echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27594if eval "test \"\${$as_ac_Header+set}\" = set"; then
27595 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 27596else
5294a27e 27597 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
27598/* confdefs.h. */
27599_ACEOF
27600cat confdefs.h >>conftest.$ac_ext
27601cat >>conftest.$ac_ext <<_ACEOF
27602/* end confdefs.h. */
5294a27e
VZ
27603#include <windows.h>
27604
01cb68df
RG
27605#include <$ac_header>
27606_ACEOF
27607rm -f conftest.$ac_objext
27608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27609 (eval $ac_compile) 2>conftest.er1
01cb68df 27610 ac_status=$?
ac1cb8d3
VS
27611 grep -v '^ *+' conftest.er1 >conftest.err
27612 rm -f conftest.er1
27613 cat conftest.err >&5
01cb68df
RG
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); } &&
04840eaa
VS
27616 { ac_try='test -z "$ac_c_werror_flag"
27617 || test ! -s conftest.err'
ac1cb8d3
VS
27618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619 (eval $ac_try) 2>&5
27620 ac_status=$?
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); }; } &&
27623 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
27624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27625 (eval $ac_try) 2>&5
27626 ac_status=$?
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); }; }; then
5294a27e 27629 eval "$as_ac_Header=yes"
01cb68df
RG
27630else
27631 echo "$as_me: failed program was:" >&5
27632sed 's/^/| /' conftest.$ac_ext >&5
27633
5294a27e 27634eval "$as_ac_Header=no"
01cb68df 27635fi
ac1cb8d3 27636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
27637fi
27638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
27640if test `eval echo '${'$as_ac_Header'}'` = yes; then
27641 cat >>confdefs.h <<_ACEOF
27642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27643_ACEOF
27644
27645else
27646
5294a27e
VZ
27647 wxUSE_DISPLAY="no"
27648 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 27649echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
27650
27651fi
27652
27653done
27654
a848cd7e
SC
27655 fi
27656fi
27657
27658
3b57de8b
RL
27659if test "$wxUSE_MEDIACTRL" = "yes"; then
27660 if test "$wxUSE_MSW" = 1; then
27661 wxUSE_DIRECTSHOW="yes"
27662
27663for ac_header in dshow.h
27664do
27665as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 27666echo "$as_me:$LINENO: checking for $ac_header" >&5
3b57de8b
RL
27667echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27668if eval "test \"\${$as_ac_Header+set}\" = set"; then
27669 echo $ECHO_N "(cached) $ECHO_C" >&6
3b57de8b 27670else
5294a27e 27671 cat >conftest.$ac_ext <<_ACEOF
3b57de8b
RL
27672/* confdefs.h. */
27673_ACEOF
27674cat confdefs.h >>conftest.$ac_ext
27675cat >>conftest.$ac_ext <<_ACEOF
27676/* end confdefs.h. */
5294a27e
VZ
27677#include <windows.h>
27678
3b57de8b
RL
27679#include <$ac_header>
27680_ACEOF
27681rm -f conftest.$ac_objext
27682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27683 (eval $ac_compile) 2>conftest.er1
27684 ac_status=$?
27685 grep -v '^ *+' conftest.er1 >conftest.err
27686 rm -f conftest.er1
27687 cat conftest.err >&5
27688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689 (exit $ac_status); } &&
04840eaa
VS
27690 { ac_try='test -z "$ac_c_werror_flag"
27691 || test ! -s conftest.err'
3b57de8b
RL
27692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27693 (eval $ac_try) 2>&5
27694 ac_status=$?
27695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27696 (exit $ac_status); }; } &&
27697 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
5294a27e 27703 eval "$as_ac_Header=yes"
3b57de8b
RL
27704else
27705 echo "$as_me: failed program was:" >&5
27706sed 's/^/| /' conftest.$ac_ext >&5
27707
5294a27e 27708eval "$as_ac_Header=no"
3b57de8b
RL
27709fi
27710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3b57de8b
RL
27711fi
27712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3b57de8b
RL
27714if test `eval echo '${'$as_ac_Header'}'` = yes; then
27715 cat >>confdefs.h <<_ACEOF
27716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27717_ACEOF
27718
27719else
27720
5294a27e
VZ
27721 wxUSE_DIRECTSHOW="no"
27722 { echo "$as_me:$LINENO: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&5
3b57de8b
RL
27723echo "$as_me: WARNING: DirectShow not installed; consider installing the DirectX7 SDK or higher" >&2;}
27724
27725fi
27726
27727done
27728
27729
27730 if test "$wxUSE_DIRECTSHOW" = "yes"; then
5294a27e 27731 cat >>confdefs.h <<\_ACEOF
3b57de8b
RL
27732#define wxUSE_DIRECTSHOW 1
27733_ACEOF
27734
5294a27e 27735 LIBS="$LIBS -lstrmiids"
a98bf0c0 27736 fi
3b57de8b 27737 fi
7e4a1c28 27738
fa9ad408 27739 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
7e4a1c28
RN
27740 cat >>confdefs.h <<\_ACEOF
27741#define wxUSE_MEDIACTRL 1
27742_ACEOF
27743
3b57de8b
RL
27744fi
27745
27746
a848cd7e
SC
27747USE_OPENGL=0
27748if test "$wxUSE_OPENGL" = "yes"; then
27749 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27750 OPENGL_LIBS="-framework OpenGL -framework AGL"
27751 elif test "$wxUSE_MSW" = 1; then
27752 OPENGL_LIBS="-lopengl32 -lglu32"
27753 else
27754
27755
27756ac_find_includes=
27757for ac_dir in $SEARCH_INCLUDE /usr/include;
27758 do
27759 if test -f "$ac_dir/GL/gl.h"; then
27760 ac_find_includes=$ac_dir
27761 break
27762 fi
27763 done
27764
27765 if test "$ac_find_includes" != "" ; then
27766 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27767echo "${ECHO_T}found in $ac_find_includes" >&6
27768
27769 if test "x$ac_find_includes" = "x/usr/include"; then
27770 ac_path_to_include=""
27771 else
27772 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27773 result=$?
27774 if test $result = 0; then
27775 ac_path_to_include=""
27776 else
27777 ac_path_to_include=" -I$ac_find_includes"
27778 fi
27779 fi
27780
27781 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
27782 fi
27783
27784 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27785 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27786echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27787if test "${ac_cv_header_GL_gl_h+set}" = set; then
27788 echo $ECHO_N "(cached) $ECHO_C" >&6
27789fi
27790echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27791echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27792else
27793 # Is the header compilable?
27794echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27795echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27796cat >conftest.$ac_ext <<_ACEOF
27797/* confdefs.h. */
27798_ACEOF
27799cat confdefs.h >>conftest.$ac_ext
27800cat >>conftest.$ac_ext <<_ACEOF
27801/* end confdefs.h. */
27802$ac_includes_default
27803#include <GL/gl.h>
27804_ACEOF
27805rm -f conftest.$ac_objext
27806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 27807 (eval $ac_compile) 2>conftest.er1
a848cd7e 27808 ac_status=$?
ac1cb8d3
VS
27809 grep -v '^ *+' conftest.er1 >conftest.err
27810 rm -f conftest.er1
27811 cat conftest.err >&5
a848cd7e
SC
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); } &&
04840eaa
VS
27814 { ac_try='test -z "$ac_c_werror_flag"
27815 || test ! -s conftest.err'
ac1cb8d3
VS
27816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817 (eval $ac_try) 2>&5
27818 ac_status=$?
27819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820 (exit $ac_status); }; } &&
27821 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
27822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27823 (eval $ac_try) 2>&5
27824 ac_status=$?
27825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826 (exit $ac_status); }; }; then
27827 ac_header_compiler=yes
27828else
27829 echo "$as_me: failed program was:" >&5
27830sed 's/^/| /' conftest.$ac_ext >&5
27831
27832ac_header_compiler=no
27833fi
ac1cb8d3 27834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
27835echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27836echo "${ECHO_T}$ac_header_compiler" >&6
27837
27838# Is the header present?
27839echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27840echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27841cat >conftest.$ac_ext <<_ACEOF
27842/* confdefs.h. */
27843_ACEOF
27844cat confdefs.h >>conftest.$ac_ext
27845cat >>conftest.$ac_ext <<_ACEOF
27846/* end confdefs.h. */
27847#include <GL/gl.h>
27848_ACEOF
27849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27851 ac_status=$?
27852 grep -v '^ *+' conftest.er1 >conftest.err
27853 rm -f conftest.er1
27854 cat conftest.err >&5
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); } >/dev/null; then
27857 if test -s conftest.err; then
27858 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27860 else
27861 ac_cpp_err=
27862 fi
27863else
27864 ac_cpp_err=yes
27865fi
27866if test -z "$ac_cpp_err"; then
27867 ac_header_preproc=yes
27868else
27869 echo "$as_me: failed program was:" >&5
27870sed 's/^/| /' conftest.$ac_ext >&5
27871
27872 ac_header_preproc=no
27873fi
27874rm -f conftest.err conftest.$ac_ext
27875echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27876echo "${ECHO_T}$ac_header_preproc" >&6
27877
27878# So? What about this header?
ac1cb8d3
VS
27879case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27880 yes:no: )
a848cd7e
SC
27881 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27882echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
27883 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27884echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27885 ac_header_preproc=yes
a848cd7e 27886 ;;
ac1cb8d3 27887 no:yes:* )
a848cd7e
SC
27888 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27889echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
27890 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27891echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27892 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27893echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27894 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27895echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
27896 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27897echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
27898 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27899echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
27900 (
27901 cat <<\_ASBOX
ac1cb8d3
VS
27902## ----------------------------------------- ##
27903## Report this to wx-dev@lists.wxwidgets.org ##
27904## ----------------------------------------- ##
a848cd7e
SC
27905_ASBOX
27906 ) |
27907 sed "s/^/$as_me: WARNING: /" >&2
27908 ;;
27909esac
27910echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27911echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27912if test "${ac_cv_header_GL_gl_h+set}" = set; then
27913 echo $ECHO_N "(cached) $ECHO_C" >&6
27914else
27915 ac_cv_header_GL_gl_h=$ac_header_preproc
27916fi
27917echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27918echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27919
27920fi
27921if test $ac_cv_header_GL_gl_h = yes; then
27922
27923 found_gl=0
27924
27925 echo "$as_me:$LINENO: checking for -lGL" >&5
27926echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27927
27928ac_find_libraries=
27929for ac_dir in $SEARCH_LIB /usr/lib;
27930 do
27931 for ac_extension in a so sl dylib; do
27932 if test -f "$ac_dir/libGL.$ac_extension"; then
27933 ac_find_libraries=$ac_dir
27934 break 2
27935 fi
27936 done
27937 done
27938
27939 if test "$ac_find_libraries" != "" ; then
27940
27941 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27942 result=$?
27943 if test $result = 0; then
27944 ac_path_to_link=""
27945 else
27946 ac_path_to_link=" -L$ac_find_libraries"
27947 fi
27948
27949 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27950 LDFLAGS_GL="$ac_path_to_link"
27951 fi
27952
27953
27954ac_find_libraries=
27955for ac_dir in $SEARCH_LIB /usr/lib;
27956 do
27957 for ac_extension in a so sl dylib; do
27958 if test -f "$ac_dir/libGLU.$ac_extension"; then
27959 ac_find_libraries=$ac_dir
27960 break 2
27961 fi
27962 done
27963 done
27964
27965 if test "$ac_find_libraries" != "" ; then
27966
27967 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27968 result=$?
27969 if test $result = 0; then
27970 ac_path_to_link=""
27971 else
27972 ac_path_to_link=" -L$ac_find_libraries"
27973 fi
27974
27975 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27976 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27977 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27978 fi
27979
27980 found_gl=1
27981 OPENGL_LIBS="-lGL -lGLU"
27982 echo "$as_me:$LINENO: result: yes" >&5
27983echo "${ECHO_T}yes" >&6
27984 fi
27985 fi
27986
27987 if test "$found_gl" != 1; then
27988 echo "$as_me:$LINENO: result: no" >&5
27989echo "${ECHO_T}no" >&6
27990 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27991echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27992
27993ac_find_libraries=
27994for ac_dir in $SEARCH_LIB /usr/lib;
27995 do
27996 for ac_extension in a so sl dylib; do
27997 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27998 ac_find_libraries=$ac_dir
27999 break 2
28000 fi
28001 done
28002 done
28003
28004 if test "$ac_find_libraries" != "" ; then
28005
28006 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
28007 result=$?
28008 if test $result = 0; then
28009 ac_path_to_link=""
28010 else
28011 ac_path_to_link=" -L$ac_find_libraries"
28012 fi
28013
28014 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
28015 OPENGL_LIBS="-lMesaGL -lMesaGLU"
28016 echo "$as_me:$LINENO: result: yes" >&5
28017echo "${ECHO_T}yes" >&6
28018 else
28019 echo "$as_me:$LINENO: result: no" >&5
28020echo "${ECHO_T}no" >&6
28021 fi
28022 fi
28023
28024fi
28025
28026
28027
28028 if test "x$OPENGL_LIBS" = "x"; then
28029 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
28030echo "$as_me: error: OpenGL libraries not available" >&2;}
28031 { (exit 1); exit 1; }; }
28032 fi
28033 fi
28034
28035 if test "$wxUSE_OPENGL" = "yes"; then
28036 USE_OPENGL=1
28037 cat >>confdefs.h <<\_ACEOF
28038#define wxUSE_OPENGL 1
28039_ACEOF
28040
28041 cat >>confdefs.h <<\_ACEOF
28042#define wxUSE_GLCANVAS 1
28043_ACEOF
28044
28045 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
28046 fi
28047fi
28048
a848cd7e
SC
28049
28050if test -n "$TOOLKIT" ; then
28051 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
28052fi
28053
a848cd7e
SC
28054
28055
28056if test "$wxUSE_SHARED" = "yes"; then
28057 case "${host}" in
28058 *-pc-msdosdjgpp )
28059 wxUSE_SHARED=no
28060 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
28061echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
28062 ;;
28063 esac
28064fi
28065
a848cd7e 28066if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
28067
28068
28069 found_versioning=no
28070
28071
28072 if test $found_versioning = no ; then
28073 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
28074echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
28075if test "${wx_cv_version_script+set}" = set; then
28076 echo $ECHO_N "(cached) $ECHO_C" >&6
28077else
28078
28079 echo "VER_1 { *; };" >conftest.sym
28080 echo "int main() { return 0; }" >conftest.cpp
28081
28082 if { ac_try='
28083 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
28084 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
28085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28086 (eval $ac_try) 2>&5
28087 ac_status=$?
28088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); }; } ; then
28090 if test -s conftest.stderr ; then
28091 wx_cv_version_script=no
28092 else
28093 wx_cv_version_script=yes
28094 fi
28095 else
28096 wx_cv_version_script=no
28097 fi
28098 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
28099
28100fi
28101echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
28102echo "${ECHO_T}$wx_cv_version_script" >&6
28103 if test $wx_cv_version_script = yes ; then
28104 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
28105 fi
28106 fi
28107
28108
28109 case "${host}" in
28110 *-*-linux* | *-*-gnu* )
28111 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28112 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28113 ;;
28114
28115 *-*-solaris2* )
28116 if test "$GCC" = yes ; then
28117 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
28118
28119 saveLdflags="$LDFLAGS"
28120 LDFLAGS="$saveLdflags -Wl,-rpath,/"
28121 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
28122echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
28123 cat >conftest.$ac_ext <<_ACEOF
28124/* confdefs.h. */
28125_ACEOF
28126cat confdefs.h >>conftest.$ac_ext
28127cat >>conftest.$ac_ext <<_ACEOF
28128/* end confdefs.h. */
28129
28130int
28131main ()
28132{
28133
28134 ;
28135 return 0;
28136}
28137_ACEOF
28138rm -f conftest.$ac_objext conftest$ac_exeext
28139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28140 (eval $ac_link) 2>conftest.er1
a848cd7e 28141 ac_status=$?
ac1cb8d3
VS
28142 grep -v '^ *+' conftest.er1 >conftest.err
28143 rm -f conftest.er1
28144 cat conftest.err >&5
a848cd7e
SC
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); } &&
04840eaa
VS
28147 { ac_try='test -z "$ac_c_werror_flag"
28148 || test ! -s conftest.err'
ac1cb8d3
VS
28149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28150 (eval $ac_try) 2>&5
28151 ac_status=$?
28152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28153 (exit $ac_status); }; } &&
28154 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28156 (eval $ac_try) 2>&5
28157 ac_status=$?
28158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28159 (exit $ac_status); }; }; then
28160
28161 echo "$as_me:$LINENO: result: yes" >&5
28162echo "${ECHO_T}yes" >&6
28163 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 28164 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
28165
28166else
28167 echo "$as_me: failed program was:" >&5
28168sed 's/^/| /' conftest.$ac_ext >&5
28169
28170
28171 echo "$as_me:$LINENO: result: no" >&5
28172echo "${ECHO_T}no" >&6
28173 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
28174echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
28175 LDFLAGS="$saveLdflags -Wl,-R,/"
28176 cat >conftest.$ac_ext <<_ACEOF
28177/* confdefs.h. */
28178_ACEOF
28179cat confdefs.h >>conftest.$ac_ext
28180cat >>conftest.$ac_ext <<_ACEOF
28181/* end confdefs.h. */
28182
28183int
28184main ()
28185{
28186
28187 ;
28188 return 0;
28189}
28190_ACEOF
28191rm -f conftest.$ac_objext conftest$ac_exeext
28192if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28193 (eval $ac_link) 2>conftest.er1
a848cd7e 28194 ac_status=$?
ac1cb8d3
VS
28195 grep -v '^ *+' conftest.er1 >conftest.err
28196 rm -f conftest.er1
28197 cat conftest.err >&5
a848cd7e
SC
28198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199 (exit $ac_status); } &&
04840eaa
VS
28200 { ac_try='test -z "$ac_c_werror_flag"
28201 || test ! -s conftest.err'
ac1cb8d3
VS
28202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28203 (eval $ac_try) 2>&5
28204 ac_status=$?
28205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28206 (exit $ac_status); }; } &&
28207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28209 (eval $ac_try) 2>&5
28210 ac_status=$?
28211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212 (exit $ac_status); }; }; then
28213
ffa0583f 28214 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 28215echo "${ECHO_T}yes" >&6
ffa0583f
RL
28216 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
28217 WXCONFIG_RPATH="-Wl,-R,\$libdir"
28218
a848cd7e
SC
28219else
28220 echo "$as_me: failed program was:" >&5
28221sed 's/^/| /' conftest.$ac_ext >&5
28222
28223
28224 echo "$as_me:$LINENO: result: no" >&5
28225echo "${ECHO_T}no" >&6
28226
28227fi
ac1cb8d3
VS
28228rm -f conftest.err conftest.$ac_objext \
28229 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28230
28231fi
ac1cb8d3
VS
28232rm -f conftest.err conftest.$ac_objext \
28233 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28234 LDFLAGS="$saveLdflags"
28235 else
a848cd7e 28236 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 28237 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
28238 fi
28239 ;;
28240
28241 powerpc-*-darwin* )
28242 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
28243 cat <<EOF >change-install-names
28244#!/bin/sh
28245libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28246inst_cmd="install_name_tool "
28247for i in \${libnames} ; do
28248 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28249done
28250\${inst_cmd} \${3}
28251EOF
28252 chmod +x change-install-names
28253 ;;
28254
28255 *-*-cygwin* | *-*-mingw32* )
28256 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
28257 ;;
28258
28259 esac
ceec2216 28260
ffa0583f
RL
28261 if test $wxUSE_RPATH = "no"; then
28262 SAMPLES_RPATH_FLAG=''
28263 SAMPLES_RPATH_POSTLINK=''
28264 WXCONFIG_RPATH=''
28265 fi
28266
28267 SHARED=1
28268
28269else
28270
ceec2216
RL
28271 config_linkage_component="-static"
28272 SHARED=0
ffa0583f 28273
ceec2216 28274fi
a848cd7e 28275
a848cd7e 28276
ceec2216
RL
28277UNICODE=0
28278lib_unicode_suffix=
28279WX_CHARTYPE="ansi"
28280if test "$wxUSE_UNICODE" = "yes"; then
28281 lib_unicode_suffix=u
28282 WX_CHARTYPE="unicode"
28283 UNICODE=1
a848cd7e
SC
28284fi
28285
ceec2216
RL
28286lib_debug_suffix=
28287WX_DEBUGTYPE="release"
28288DEBUG_FLAG=0
28289if test "$wxUSE_DEBUG_FLAG" = "yes"; then
28290 lib_debug_suffix=d
28291 WX_DEBUGTYPE="debug"
28292 DEBUG_FLAG=1
28293fi
a848cd7e 28294
ceec2216
RL
28295WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
28296WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 28297
ceec2216
RL
28298DEBUG_INFO=0
28299if test "$wxUSE_DEBUG_INFO" = "yes"; then
28300 DEBUG_INFO=1
28301fi
a848cd7e 28302
ceec2216 28303WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 28304
ceec2216 28305TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 28306
ceec2216 28307TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 28308
ceec2216
RL
28309if test "$cross_compiling" = "yes"; then
28310 HOST_SUFFIX="-$host_alias"
28311 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
28312 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
28313fi
28314
dd21ced8 28315WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
ceec2216
RL
28316WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
28317
28318
28319
a848cd7e 28320if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
28321 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
28322 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 28323
a848cd7e 28324 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
28325
28326 # Extract the first word of "Rez", so it can be a program name with args.
28327set dummy Rez; ac_word=$2
28328echo "$as_me:$LINENO: checking for $ac_word" >&5
28329echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28330if test "${ac_cv_prog_RESCOMP+set}" = set; then
28331 echo $ECHO_N "(cached) $ECHO_C" >&6
28332else
28333 if test -n "$RESCOMP"; then
28334 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
28335else
28336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28337for as_dir in $PATH
28338do
28339 IFS=$as_save_IFS
28340 test -z "$as_dir" && as_dir=.
28341 for ac_exec_ext in '' $ac_executable_extensions; do
28342 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28343 ac_cv_prog_RESCOMP="Rez"
28344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28345 break 2
28346 fi
28347done
28348done
28349
28350 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
28351fi
28352fi
28353RESCOMP=$ac_cv_prog_RESCOMP
28354if test -n "$RESCOMP"; then
28355 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28356echo "${ECHO_T}$RESCOMP" >&6
28357else
28358 echo "$as_me:$LINENO: result: no" >&5
28359echo "${ECHO_T}no" >&6
28360fi
28361
28362 # Extract the first word of "DeRez", so it can be a program name with args.
28363set dummy DeRez; ac_word=$2
28364echo "$as_me:$LINENO: checking for $ac_word" >&5
28365echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28366if test "${ac_cv_prog_DEREZ+set}" = set; then
28367 echo $ECHO_N "(cached) $ECHO_C" >&6
28368else
28369 if test -n "$DEREZ"; then
28370 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
28371else
28372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28373for as_dir in $PATH
28374do
28375 IFS=$as_save_IFS
28376 test -z "$as_dir" && as_dir=.
28377 for ac_exec_ext in '' $ac_executable_extensions; do
28378 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28379 ac_cv_prog_DEREZ="DeRez"
28380 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28381 break 2
28382 fi
28383done
28384done
28385
28386 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
28387fi
28388fi
28389DEREZ=$ac_cv_prog_DEREZ
28390if test -n "$DEREZ"; then
28391 echo "$as_me:$LINENO: result: $DEREZ" >&5
28392echo "${ECHO_T}$DEREZ" >&6
28393else
28394 echo "$as_me:$LINENO: result: no" >&5
28395echo "${ECHO_T}no" >&6
28396fi
28397
28398 # Extract the first word of "SetFile", so it can be a program name with args.
28399set dummy SetFile; ac_word=$2
28400echo "$as_me:$LINENO: checking for $ac_word" >&5
28401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28402if test "${ac_cv_prog_SETFILE+set}" = set; then
28403 echo $ECHO_N "(cached) $ECHO_C" >&6
28404else
28405 if test -n "$SETFILE"; then
28406 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28407else
28408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28409for as_dir in $PATH
28410do
28411 IFS=$as_save_IFS
28412 test -z "$as_dir" && as_dir=.
28413 for ac_exec_ext in '' $ac_executable_extensions; do
28414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28415 ac_cv_prog_SETFILE="SetFile"
28416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28417 break 2
28418 fi
28419done
28420done
28421
28422 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28423fi
28424fi
28425SETFILE=$ac_cv_prog_SETFILE
28426if test -n "$SETFILE"; then
28427 echo "$as_me:$LINENO: result: $SETFILE" >&5
28428echo "${ECHO_T}$SETFILE" >&6
28429else
28430 echo "$as_me:$LINENO: result: no" >&5
28431echo "${ECHO_T}no" >&6
28432fi
28433
28434
28435 MACSETFILE="\$(SETFILE)"
28436
28437 if test "$wxUSE_MAC" = 1; then
28438 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
28439
28440 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28441 else
28442 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28443 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28444 fi
28445else
ffa0583f
RL
28446 MACSETFILE="@true"
28447 MACRESWXCONFIG="@true"
a848cd7e
SC
28448
28449 if test "$wxUSE_PM" = 1; then
28450 MACRESCOMP="emxbind -ep"
28451 else
ffa0583f 28452 MACRESCOMP="@true"
a848cd7e
SC
28453 fi
28454fi
28455
28456
28457
28458echo "$as_me:$LINENO: checking for mode_t" >&5
28459echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28460if test "${ac_cv_type_mode_t+set}" = set; then
28461 echo $ECHO_N "(cached) $ECHO_C" >&6
28462else
28463 cat >conftest.$ac_ext <<_ACEOF
28464/* confdefs.h. */
28465_ACEOF
28466cat confdefs.h >>conftest.$ac_ext
28467cat >>conftest.$ac_ext <<_ACEOF
28468/* end confdefs.h. */
28469$ac_includes_default
28470int
28471main ()
28472{
28473if ((mode_t *) 0)
28474 return 0;
28475if (sizeof (mode_t))
28476 return 0;
28477 ;
28478 return 0;
28479}
28480_ACEOF
28481rm -f conftest.$ac_objext
28482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28483 (eval $ac_compile) 2>conftest.er1
a848cd7e 28484 ac_status=$?
ac1cb8d3
VS
28485 grep -v '^ *+' conftest.er1 >conftest.err
28486 rm -f conftest.er1
28487 cat conftest.err >&5
a848cd7e
SC
28488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489 (exit $ac_status); } &&
04840eaa
VS
28490 { ac_try='test -z "$ac_c_werror_flag"
28491 || test ! -s conftest.err'
ac1cb8d3
VS
28492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28493 (eval $ac_try) 2>&5
28494 ac_status=$?
28495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28496 (exit $ac_status); }; } &&
28497 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28499 (eval $ac_try) 2>&5
28500 ac_status=$?
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); }; }; then
28503 ac_cv_type_mode_t=yes
28504else
28505 echo "$as_me: failed program was:" >&5
28506sed 's/^/| /' conftest.$ac_ext >&5
28507
28508ac_cv_type_mode_t=no
28509fi
ac1cb8d3 28510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28511fi
28512echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28513echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28514if test $ac_cv_type_mode_t = yes; then
28515 :
28516else
28517
28518cat >>confdefs.h <<_ACEOF
28519#define mode_t int
28520_ACEOF
28521
28522fi
28523
28524echo "$as_me:$LINENO: checking for off_t" >&5
28525echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28526if test "${ac_cv_type_off_t+set}" = set; then
28527 echo $ECHO_N "(cached) $ECHO_C" >&6
28528else
28529 cat >conftest.$ac_ext <<_ACEOF
28530/* confdefs.h. */
28531_ACEOF
28532cat confdefs.h >>conftest.$ac_ext
28533cat >>conftest.$ac_ext <<_ACEOF
28534/* end confdefs.h. */
28535$ac_includes_default
28536int
28537main ()
28538{
28539if ((off_t *) 0)
28540 return 0;
28541if (sizeof (off_t))
28542 return 0;
28543 ;
28544 return 0;
28545}
28546_ACEOF
28547rm -f conftest.$ac_objext
28548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28549 (eval $ac_compile) 2>conftest.er1
a848cd7e 28550 ac_status=$?
ac1cb8d3
VS
28551 grep -v '^ *+' conftest.er1 >conftest.err
28552 rm -f conftest.er1
28553 cat conftest.err >&5
a848cd7e
SC
28554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28555 (exit $ac_status); } &&
04840eaa
VS
28556 { ac_try='test -z "$ac_c_werror_flag"
28557 || test ! -s conftest.err'
ac1cb8d3
VS
28558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28559 (eval $ac_try) 2>&5
28560 ac_status=$?
28561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28562 (exit $ac_status); }; } &&
28563 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28565 (eval $ac_try) 2>&5
28566 ac_status=$?
28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568 (exit $ac_status); }; }; then
28569 ac_cv_type_off_t=yes
28570else
28571 echo "$as_me: failed program was:" >&5
28572sed 's/^/| /' conftest.$ac_ext >&5
28573
28574ac_cv_type_off_t=no
28575fi
ac1cb8d3 28576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28577fi
28578echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28579echo "${ECHO_T}$ac_cv_type_off_t" >&6
28580if test $ac_cv_type_off_t = yes; then
28581 :
28582else
28583
28584cat >>confdefs.h <<_ACEOF
28585#define off_t long
28586_ACEOF
28587
28588fi
28589
28590echo "$as_me:$LINENO: checking for pid_t" >&5
28591echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28592if test "${ac_cv_type_pid_t+set}" = set; then
28593 echo $ECHO_N "(cached) $ECHO_C" >&6
28594else
28595 cat >conftest.$ac_ext <<_ACEOF
28596/* confdefs.h. */
28597_ACEOF
28598cat confdefs.h >>conftest.$ac_ext
28599cat >>conftest.$ac_ext <<_ACEOF
28600/* end confdefs.h. */
28601$ac_includes_default
28602int
28603main ()
28604{
28605if ((pid_t *) 0)
28606 return 0;
28607if (sizeof (pid_t))
28608 return 0;
28609 ;
28610 return 0;
28611}
28612_ACEOF
28613rm -f conftest.$ac_objext
28614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28615 (eval $ac_compile) 2>conftest.er1
a848cd7e 28616 ac_status=$?
ac1cb8d3
VS
28617 grep -v '^ *+' conftest.er1 >conftest.err
28618 rm -f conftest.er1
28619 cat conftest.err >&5
a848cd7e
SC
28620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28621 (exit $ac_status); } &&
04840eaa
VS
28622 { ac_try='test -z "$ac_c_werror_flag"
28623 || test ! -s conftest.err'
ac1cb8d3
VS
28624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28625 (eval $ac_try) 2>&5
28626 ac_status=$?
28627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28628 (exit $ac_status); }; } &&
28629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28631 (eval $ac_try) 2>&5
28632 ac_status=$?
28633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634 (exit $ac_status); }; }; then
28635 ac_cv_type_pid_t=yes
28636else
28637 echo "$as_me: failed program was:" >&5
28638sed 's/^/| /' conftest.$ac_ext >&5
28639
28640ac_cv_type_pid_t=no
28641fi
ac1cb8d3 28642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28643fi
28644echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28645echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28646if test $ac_cv_type_pid_t = yes; then
28647 :
28648else
28649
28650cat >>confdefs.h <<_ACEOF
28651#define pid_t int
28652_ACEOF
28653
28654fi
28655
28656echo "$as_me:$LINENO: checking for size_t" >&5
28657echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28658if test "${ac_cv_type_size_t+set}" = set; then
28659 echo $ECHO_N "(cached) $ECHO_C" >&6
28660else
28661 cat >conftest.$ac_ext <<_ACEOF
28662/* confdefs.h. */
28663_ACEOF
28664cat confdefs.h >>conftest.$ac_ext
28665cat >>conftest.$ac_ext <<_ACEOF
28666/* end confdefs.h. */
28667$ac_includes_default
28668int
28669main ()
28670{
28671if ((size_t *) 0)
28672 return 0;
28673if (sizeof (size_t))
28674 return 0;
28675 ;
28676 return 0;
28677}
28678_ACEOF
28679rm -f conftest.$ac_objext
28680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28681 (eval $ac_compile) 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); } &&
04840eaa
VS
28688 { ac_try='test -z "$ac_c_werror_flag"
28689 || test ! -s conftest.err'
ac1cb8d3
VS
28690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28691 (eval $ac_try) 2>&5
28692 ac_status=$?
28693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28694 (exit $ac_status); }; } &&
28695 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28697 (eval $ac_try) 2>&5
28698 ac_status=$?
28699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700 (exit $ac_status); }; }; then
28701 ac_cv_type_size_t=yes
28702else
28703 echo "$as_me: failed program was:" >&5
28704sed 's/^/| /' conftest.$ac_ext >&5
28705
28706ac_cv_type_size_t=no
28707fi
ac1cb8d3 28708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28709fi
28710echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28711echo "${ECHO_T}$ac_cv_type_size_t" >&6
28712if test $ac_cv_type_size_t = yes; then
28713 :
28714else
28715
28716cat >>confdefs.h <<_ACEOF
28717#define size_t unsigned
28718_ACEOF
28719
28720fi
28721
28722echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28723echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28724if test "${ac_cv_type_uid_t+set}" = set; then
28725 echo $ECHO_N "(cached) $ECHO_C" >&6
28726else
28727 cat >conftest.$ac_ext <<_ACEOF
28728/* confdefs.h. */
28729_ACEOF
28730cat confdefs.h >>conftest.$ac_ext
28731cat >>conftest.$ac_ext <<_ACEOF
28732/* end confdefs.h. */
28733#include <sys/types.h>
28734
28735_ACEOF
28736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28737 $EGREP "uid_t" >/dev/null 2>&1; then
28738 ac_cv_type_uid_t=yes
28739else
28740 ac_cv_type_uid_t=no
28741fi
28742rm -f conftest*
28743
28744fi
28745echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28746echo "${ECHO_T}$ac_cv_type_uid_t" >&6
28747if test $ac_cv_type_uid_t = no; then
28748
28749cat >>confdefs.h <<\_ACEOF
28750#define uid_t int
28751_ACEOF
28752
28753
28754cat >>confdefs.h <<\_ACEOF
28755#define gid_t int
28756_ACEOF
28757
28758fi
28759
28760
d51253e8
RL
28761echo "$as_me:$LINENO: checking for ssize_t" >&5
28762echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
28763if test "${ac_cv_type_ssize_t+set}" = set; then
28764 echo $ECHO_N "(cached) $ECHO_C" >&6
28765else
28766 cat >conftest.$ac_ext <<_ACEOF
28767/* confdefs.h. */
28768_ACEOF
28769cat confdefs.h >>conftest.$ac_ext
28770cat >>conftest.$ac_ext <<_ACEOF
28771/* end confdefs.h. */
28772$ac_includes_default
28773int
28774main ()
28775{
28776if ((ssize_t *) 0)
28777 return 0;
28778if (sizeof (ssize_t))
28779 return 0;
28780 ;
28781 return 0;
28782}
28783_ACEOF
28784rm -f conftest.$ac_objext
28785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28786 (eval $ac_compile) 2>conftest.er1
28787 ac_status=$?
28788 grep -v '^ *+' conftest.er1 >conftest.err
28789 rm -f conftest.er1
28790 cat conftest.err >&5
28791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28792 (exit $ac_status); } &&
04840eaa
VS
28793 { ac_try='test -z "$ac_c_werror_flag"
28794 || test ! -s conftest.err'
d51253e8
RL
28795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28796 (eval $ac_try) 2>&5
28797 ac_status=$?
28798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28799 (exit $ac_status); }; } &&
28800 { ac_try='test -s conftest.$ac_objext'
28801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28802 (eval $ac_try) 2>&5
28803 ac_status=$?
28804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28805 (exit $ac_status); }; }; then
28806 ac_cv_type_ssize_t=yes
28807else
28808 echo "$as_me: failed program was:" >&5
28809sed 's/^/| /' conftest.$ac_ext >&5
28810
28811ac_cv_type_ssize_t=no
28812fi
28813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28814fi
28815echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
28816echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
28817if test $ac_cv_type_ssize_t = yes; then
28818
28819cat >>confdefs.h <<_ACEOF
28820#define HAVE_SSIZE_T 1
28821_ACEOF
28822
28823
28824fi
28825
28826
a848cd7e
SC
28827
28828
28829ac_ext=cc
28830ac_cpp='$CXXCPP $CPPFLAGS'
28831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28834
28835echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28836echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28837if test "${wx_cv_size_t_is_uint+set}" = set; then
28838 echo $ECHO_N "(cached) $ECHO_C" >&6
28839else
28840
28841 cat >conftest.$ac_ext <<_ACEOF
28842/* confdefs.h. */
28843_ACEOF
28844cat confdefs.h >>conftest.$ac_ext
28845cat >>conftest.$ac_ext <<_ACEOF
28846/* end confdefs.h. */
28847#include <stddef.h>
28848int
28849main ()
28850{
28851
28852 return 0; }
28853
28854 struct Foo { void foo(size_t); void foo(unsigned int); };
28855
28856 int bar() {
28857
28858 ;
28859 return 0;
28860}
28861_ACEOF
28862rm -f conftest.$ac_objext
28863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28864 (eval $ac_compile) 2>conftest.er1
a848cd7e 28865 ac_status=$?
ac1cb8d3
VS
28866 grep -v '^ *+' conftest.er1 >conftest.err
28867 rm -f conftest.er1
28868 cat conftest.err >&5
a848cd7e
SC
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); } &&
04840eaa
VS
28871 { ac_try='test -z "$ac_cxx_werror_flag"
28872 || test ! -s conftest.err'
ac1cb8d3
VS
28873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28874 (eval $ac_try) 2>&5
28875 ac_status=$?
28876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877 (exit $ac_status); }; } &&
28878 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28880 (eval $ac_try) 2>&5
28881 ac_status=$?
28882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883 (exit $ac_status); }; }; then
28884 wx_cv_size_t_is_uint=no
28885else
28886 echo "$as_me: failed program was:" >&5
28887sed 's/^/| /' conftest.$ac_ext >&5
28888
28889wx_cv_size_t_is_uint=yes
28890
28891fi
ac1cb8d3 28892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28893
28894
28895fi
28896echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28897echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
28898
28899if test "$wx_cv_size_t_is_uint" = "yes"; then
28900 cat >>confdefs.h <<\_ACEOF
28901#define wxSIZE_T_IS_UINT 1
28902_ACEOF
28903
28904else
28905 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28906echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28907if test "${wx_cv_size_t_is_ulong+set}" = set; then
28908 echo $ECHO_N "(cached) $ECHO_C" >&6
28909else
28910 cat >conftest.$ac_ext <<_ACEOF
28911/* confdefs.h. */
28912_ACEOF
28913cat confdefs.h >>conftest.$ac_ext
28914cat >>conftest.$ac_ext <<_ACEOF
28915/* end confdefs.h. */
28916#include <stddef.h>
28917int
28918main ()
28919{
28920
28921 return 0; }
28922
28923 struct Foo { void foo(size_t); void foo(unsigned long); };
28924
28925 int bar() {
28926
28927 ;
28928 return 0;
28929}
28930_ACEOF
28931rm -f conftest.$ac_objext
28932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 28933 (eval $ac_compile) 2>conftest.er1
a848cd7e 28934 ac_status=$?
ac1cb8d3
VS
28935 grep -v '^ *+' conftest.er1 >conftest.err
28936 rm -f conftest.er1
28937 cat conftest.err >&5
a848cd7e
SC
28938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939 (exit $ac_status); } &&
04840eaa
VS
28940 { ac_try='test -z "$ac_cxx_werror_flag"
28941 || test ! -s conftest.err'
ac1cb8d3
VS
28942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28943 (eval $ac_try) 2>&5
28944 ac_status=$?
28945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28946 (exit $ac_status); }; } &&
28947 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
28948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28949 (eval $ac_try) 2>&5
28950 ac_status=$?
28951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952 (exit $ac_status); }; }; then
28953 wx_cv_size_t_is_ulong=no
28954else
28955 echo "$as_me: failed program was:" >&5
28956sed 's/^/| /' conftest.$ac_ext >&5
28957
28958wx_cv_size_t_is_ulong=yes
28959
28960fi
ac1cb8d3 28961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
28962
28963fi
28964echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28965echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
28966
28967 if test "$wx_cv_size_t_is_ulong" = "yes"; then
28968 cat >>confdefs.h <<\_ACEOF
28969#define wxSIZE_T_IS_ULONG 1
28970_ACEOF
28971
28972 fi
28973fi
28974
28975ac_ext=c
28976ac_cpp='$CPP $CPPFLAGS'
28977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28979ac_compiler_gnu=$ac_cv_c_compiler_gnu
28980
28981
28982
28983echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28984echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28985if test "${wx_cv_struct_pw_gecos+set}" = set; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28987else
28988
28989 cat >conftest.$ac_ext <<_ACEOF
28990/* confdefs.h. */
28991_ACEOF
28992cat confdefs.h >>conftest.$ac_ext
28993cat >>conftest.$ac_ext <<_ACEOF
28994/* end confdefs.h. */
28995#include <pwd.h>
28996int
28997main ()
28998{
28999
29000 char *p;
29001 struct passwd *pw;
29002 p = pw->pw_gecos;
29003
29004 ;
29005 return 0;
29006}
29007_ACEOF
29008rm -f conftest.$ac_objext
29009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29010 (eval $ac_compile) 2>conftest.er1
a848cd7e 29011 ac_status=$?
ac1cb8d3
VS
29012 grep -v '^ *+' conftest.er1 >conftest.err
29013 rm -f conftest.er1
29014 cat conftest.err >&5
a848cd7e
SC
29015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29016 (exit $ac_status); } &&
04840eaa
VS
29017 { ac_try='test -z "$ac_c_werror_flag"
29018 || test ! -s conftest.err'
ac1cb8d3
VS
29019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29020 (eval $ac_try) 2>&5
29021 ac_status=$?
29022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023 (exit $ac_status); }; } &&
29024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026 (eval $ac_try) 2>&5
29027 ac_status=$?
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; }; then
29030
29031 wx_cv_struct_pw_gecos=yes
29032
29033else
29034 echo "$as_me: failed program was:" >&5
29035sed 's/^/| /' conftest.$ac_ext >&5
29036
29037
29038 wx_cv_struct_pw_gecos=no
29039
29040
29041fi
ac1cb8d3 29042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29043
29044
29045fi
29046echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
29047echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
29048
29049if test "$wx_cv_struct_pw_gecos" = "yes"; then
29050 cat >>confdefs.h <<\_ACEOF
29051#define HAVE_PW_GECOS 1
29052_ACEOF
29053
29054fi
29055
29056
29057if test "$wx_cv_sizeof_wchar_t" != "0"; then
29058 cat >>confdefs.h <<\_ACEOF
29059#define wxUSE_WCHAR_T 1
29060_ACEOF
29061
29062
29063 WCSLEN_FOUND=0
29064 WCHAR_LINK=
29065
29066for ac_func in wcslen
29067do
29068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29069echo "$as_me:$LINENO: checking for $ac_func" >&5
29070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29071if eval "test \"\${$as_ac_var+set}\" = set"; then
29072 echo $ECHO_N "(cached) $ECHO_C" >&6
29073else
29074 cat >conftest.$ac_ext <<_ACEOF
29075/* confdefs.h. */
29076_ACEOF
29077cat confdefs.h >>conftest.$ac_ext
29078cat >>conftest.$ac_ext <<_ACEOF
29079/* end confdefs.h. */
ac1cb8d3
VS
29080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29082#define $ac_func innocuous_$ac_func
29083
a848cd7e
SC
29084/* System header to define __stub macros and hopefully few prototypes,
29085 which can conflict with char $ac_func (); below.
29086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29087 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29088
a848cd7e
SC
29089#ifdef __STDC__
29090# include <limits.h>
29091#else
29092# include <assert.h>
29093#endif
ac1cb8d3
VS
29094
29095#undef $ac_func
29096
a848cd7e
SC
29097/* Override any gcc2 internal prototype to avoid an error. */
29098#ifdef __cplusplus
29099extern "C"
29100{
29101#endif
29102/* We use char because int might match the return type of a gcc2
29103 builtin and then its argument prototype would still apply. */
29104char $ac_func ();
29105/* The GNU C library defines this for functions which it implements
29106 to always fail with ENOSYS. Some functions are actually named
29107 something starting with __ and the normal name is an alias. */
29108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29109choke me
29110#else
29111char (*f) () = $ac_func;
29112#endif
29113#ifdef __cplusplus
29114}
29115#endif
29116
29117int
29118main ()
29119{
29120return f != $ac_func;
29121 ;
29122 return 0;
29123}
29124_ACEOF
29125rm -f conftest.$ac_objext conftest$ac_exeext
29126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29127 (eval $ac_link) 2>conftest.er1
a848cd7e 29128 ac_status=$?
ac1cb8d3
VS
29129 grep -v '^ *+' conftest.er1 >conftest.err
29130 rm -f conftest.er1
29131 cat conftest.err >&5
a848cd7e
SC
29132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29133 (exit $ac_status); } &&
04840eaa
VS
29134 { ac_try='test -z "$ac_c_werror_flag"
29135 || test ! -s conftest.err'
ac1cb8d3
VS
29136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29137 (eval $ac_try) 2>&5
29138 ac_status=$?
29139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140 (exit $ac_status); }; } &&
29141 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29143 (eval $ac_try) 2>&5
29144 ac_status=$?
29145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29146 (exit $ac_status); }; }; then
29147 eval "$as_ac_var=yes"
29148else
29149 echo "$as_me: failed program was:" >&5
29150sed 's/^/| /' conftest.$ac_ext >&5
29151
29152eval "$as_ac_var=no"
29153fi
ac1cb8d3
VS
29154rm -f conftest.err conftest.$ac_objext \
29155 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29156fi
29157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29159if test `eval echo '${'$as_ac_var'}'` = yes; then
29160 cat >>confdefs.h <<_ACEOF
29161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29162_ACEOF
29163 WCSLEN_FOUND=1
29164fi
29165done
29166
29167
29168 if test "$WCSLEN_FOUND" = 0; then
29169 if test "$TOOLKIT" = "MSW"; then
29170 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
29171echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
29172if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
29173 echo $ECHO_N "(cached) $ECHO_C" >&6
29174else
29175 ac_check_lib_save_LIBS=$LIBS
29176LIBS="-lmsvcrt $LIBS"
29177cat >conftest.$ac_ext <<_ACEOF
29178/* confdefs.h. */
29179_ACEOF
29180cat confdefs.h >>conftest.$ac_ext
29181cat >>conftest.$ac_ext <<_ACEOF
29182/* end confdefs.h. */
29183
29184/* Override any gcc2 internal prototype to avoid an error. */
29185#ifdef __cplusplus
29186extern "C"
29187#endif
29188/* We use char because int might match the return type of a gcc2
29189 builtin and then its argument prototype would still apply. */
29190char wcslen ();
29191int
29192main ()
29193{
29194wcslen ();
29195 ;
29196 return 0;
29197}
29198_ACEOF
29199rm -f conftest.$ac_objext conftest$ac_exeext
29200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29201 (eval $ac_link) 2>conftest.er1
a848cd7e 29202 ac_status=$?
ac1cb8d3
VS
29203 grep -v '^ *+' conftest.er1 >conftest.err
29204 rm -f conftest.er1
29205 cat conftest.err >&5
a848cd7e
SC
29206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207 (exit $ac_status); } &&
04840eaa
VS
29208 { ac_try='test -z "$ac_c_werror_flag"
29209 || test ! -s conftest.err'
ac1cb8d3
VS
29210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29211 (eval $ac_try) 2>&5
29212 ac_status=$?
29213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29214 (exit $ac_status); }; } &&
29215 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29217 (eval $ac_try) 2>&5
29218 ac_status=$?
29219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29220 (exit $ac_status); }; }; then
29221 ac_cv_lib_msvcrt_wcslen=yes
29222else
29223 echo "$as_me: failed program was:" >&5
29224sed 's/^/| /' conftest.$ac_ext >&5
29225
29226ac_cv_lib_msvcrt_wcslen=no
29227fi
ac1cb8d3
VS
29228rm -f conftest.err conftest.$ac_objext \
29229 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29230LIBS=$ac_check_lib_save_LIBS
29231fi
29232echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
29233echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
29234if test $ac_cv_lib_msvcrt_wcslen = yes; then
29235 WCHAR_OK=1
29236fi
29237
29238 else
29239 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
29240echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
29241if test "${ac_cv_lib_w_wcslen+set}" = set; then
29242 echo $ECHO_N "(cached) $ECHO_C" >&6
29243else
29244 ac_check_lib_save_LIBS=$LIBS
29245LIBS="-lw $LIBS"
29246cat >conftest.$ac_ext <<_ACEOF
29247/* confdefs.h. */
29248_ACEOF
29249cat confdefs.h >>conftest.$ac_ext
29250cat >>conftest.$ac_ext <<_ACEOF
29251/* end confdefs.h. */
29252
29253/* Override any gcc2 internal prototype to avoid an error. */
29254#ifdef __cplusplus
29255extern "C"
29256#endif
29257/* We use char because int might match the return type of a gcc2
29258 builtin and then its argument prototype would still apply. */
29259char wcslen ();
29260int
29261main ()
29262{
29263wcslen ();
29264 ;
29265 return 0;
29266}
29267_ACEOF
29268rm -f conftest.$ac_objext conftest$ac_exeext
29269if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29270 (eval $ac_link) 2>conftest.er1
a848cd7e 29271 ac_status=$?
ac1cb8d3
VS
29272 grep -v '^ *+' conftest.er1 >conftest.err
29273 rm -f conftest.er1
29274 cat conftest.err >&5
a848cd7e
SC
29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276 (exit $ac_status); } &&
04840eaa
VS
29277 { ac_try='test -z "$ac_c_werror_flag"
29278 || test ! -s conftest.err'
ac1cb8d3
VS
29279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29280 (eval $ac_try) 2>&5
29281 ac_status=$?
29282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29283 (exit $ac_status); }; } &&
29284 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29286 (eval $ac_try) 2>&5
29287 ac_status=$?
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); }; }; then
29290 ac_cv_lib_w_wcslen=yes
29291else
29292 echo "$as_me: failed program was:" >&5
29293sed 's/^/| /' conftest.$ac_ext >&5
29294
29295ac_cv_lib_w_wcslen=no
29296fi
ac1cb8d3
VS
29297rm -f conftest.err conftest.$ac_objext \
29298 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29299LIBS=$ac_check_lib_save_LIBS
29300fi
29301echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
29302echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
29303if test $ac_cv_lib_w_wcslen = yes; then
29304
29305 WCHAR_LINK=" -lw"
29306 WCSLEN_FOUND=1
29307
29308fi
29309
29310 fi
29311 fi
29312
29313 if test "$WCSLEN_FOUND" = 1; then
29314 cat >>confdefs.h <<\_ACEOF
29315#define HAVE_WCSLEN 1
29316_ACEOF
29317
29318 fi
29319
473276a9
VS
29320 if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then
29321 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
29322 fi
29323
a848cd7e
SC
29324
29325for ac_func in wcsrtombs
29326do
29327as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29328echo "$as_me:$LINENO: checking for $ac_func" >&5
29329echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29330if eval "test \"\${$as_ac_var+set}\" = set"; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29332else
29333 cat >conftest.$ac_ext <<_ACEOF
29334/* confdefs.h. */
29335_ACEOF
29336cat confdefs.h >>conftest.$ac_ext
29337cat >>conftest.$ac_ext <<_ACEOF
29338/* end confdefs.h. */
ac1cb8d3
VS
29339/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29341#define $ac_func innocuous_$ac_func
29342
a848cd7e
SC
29343/* System header to define __stub macros and hopefully few prototypes,
29344 which can conflict with char $ac_func (); below.
29345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29346 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29347
a848cd7e
SC
29348#ifdef __STDC__
29349# include <limits.h>
29350#else
29351# include <assert.h>
29352#endif
ac1cb8d3
VS
29353
29354#undef $ac_func
29355
a848cd7e
SC
29356/* Override any gcc2 internal prototype to avoid an error. */
29357#ifdef __cplusplus
29358extern "C"
29359{
29360#endif
29361/* We use char because int might match the return type of a gcc2
29362 builtin and then its argument prototype would still apply. */
29363char $ac_func ();
29364/* The GNU C library defines this for functions which it implements
29365 to always fail with ENOSYS. Some functions are actually named
29366 something starting with __ and the normal name is an alias. */
29367#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29368choke me
29369#else
29370char (*f) () = $ac_func;
29371#endif
29372#ifdef __cplusplus
29373}
29374#endif
29375
29376int
29377main ()
29378{
29379return f != $ac_func;
29380 ;
29381 return 0;
29382}
29383_ACEOF
29384rm -f conftest.$ac_objext conftest$ac_exeext
29385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29386 (eval $ac_link) 2>conftest.er1
a848cd7e 29387 ac_status=$?
ac1cb8d3
VS
29388 grep -v '^ *+' conftest.er1 >conftest.err
29389 rm -f conftest.er1
29390 cat conftest.err >&5
a848cd7e
SC
29391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29392 (exit $ac_status); } &&
04840eaa
VS
29393 { ac_try='test -z "$ac_c_werror_flag"
29394 || test ! -s conftest.err'
ac1cb8d3
VS
29395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29396 (eval $ac_try) 2>&5
29397 ac_status=$?
29398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399 (exit $ac_status); }; } &&
29400 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29402 (eval $ac_try) 2>&5
29403 ac_status=$?
29404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29405 (exit $ac_status); }; }; then
29406 eval "$as_ac_var=yes"
29407else
29408 echo "$as_me: failed program was:" >&5
29409sed 's/^/| /' conftest.$ac_ext >&5
29410
29411eval "$as_ac_var=no"
29412fi
ac1cb8d3
VS
29413rm -f conftest.err conftest.$ac_objext \
29414 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29415fi
29416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29417echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29418if test `eval echo '${'$as_ac_var'}'` = yes; then
29419 cat >>confdefs.h <<_ACEOF
29420#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29421_ACEOF
29422
29423fi
29424done
29425
29426else
29427 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29428echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
29429fi
29430
29431
29432
29433ac_ext=cc
29434ac_cpp='$CXXCPP $CPPFLAGS'
29435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29438
29439
29440
29441for ac_func in vsnprintf
29442do
29443as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29444echo "$as_me:$LINENO: checking for $ac_func" >&5
29445echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29446if eval "test \"\${$as_ac_var+set}\" = set"; then
29447 echo $ECHO_N "(cached) $ECHO_C" >&6
29448else
29449 cat >conftest.$ac_ext <<_ACEOF
29450/* confdefs.h. */
29451_ACEOF
29452cat confdefs.h >>conftest.$ac_ext
29453cat >>conftest.$ac_ext <<_ACEOF
29454/* end confdefs.h. */
ac1cb8d3
VS
29455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29457#define $ac_func innocuous_$ac_func
29458
a848cd7e
SC
29459/* System header to define __stub macros and hopefully few prototypes,
29460 which can conflict with char $ac_func (); below.
29461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29462 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29463
a848cd7e
SC
29464#ifdef __STDC__
29465# include <limits.h>
29466#else
29467# include <assert.h>
29468#endif
ac1cb8d3
VS
29469
29470#undef $ac_func
29471
a848cd7e
SC
29472/* Override any gcc2 internal prototype to avoid an error. */
29473#ifdef __cplusplus
29474extern "C"
29475{
29476#endif
29477/* We use char because int might match the return type of a gcc2
29478 builtin and then its argument prototype would still apply. */
29479char $ac_func ();
29480/* The GNU C library defines this for functions which it implements
29481 to always fail with ENOSYS. Some functions are actually named
29482 something starting with __ and the normal name is an alias. */
29483#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29484choke me
29485#else
29486char (*f) () = $ac_func;
29487#endif
29488#ifdef __cplusplus
29489}
29490#endif
29491
29492int
29493main ()
29494{
29495return f != $ac_func;
29496 ;
29497 return 0;
29498}
29499_ACEOF
29500rm -f conftest.$ac_objext conftest$ac_exeext
29501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29502 (eval $ac_link) 2>conftest.er1
a848cd7e 29503 ac_status=$?
ac1cb8d3
VS
29504 grep -v '^ *+' conftest.er1 >conftest.err
29505 rm -f conftest.er1
29506 cat conftest.err >&5
a848cd7e
SC
29507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29508 (exit $ac_status); } &&
04840eaa
VS
29509 { ac_try='test -z "$ac_cxx_werror_flag"
29510 || test ! -s conftest.err'
ac1cb8d3
VS
29511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29512 (eval $ac_try) 2>&5
29513 ac_status=$?
29514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29515 (exit $ac_status); }; } &&
29516 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29518 (eval $ac_try) 2>&5
29519 ac_status=$?
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); }; }; then
29522 eval "$as_ac_var=yes"
29523else
29524 echo "$as_me: failed program was:" >&5
29525sed 's/^/| /' conftest.$ac_ext >&5
29526
29527eval "$as_ac_var=no"
29528fi
ac1cb8d3
VS
29529rm -f conftest.err conftest.$ac_objext \
29530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29531fi
29532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29533echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29534if test `eval echo '${'$as_ac_var'}'` = yes; then
29535 cat >>confdefs.h <<_ACEOF
29536#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29537_ACEOF
29538
29539fi
29540done
29541
29542
29543if test "$ac_cv_func_vsnprintf" = "yes"; then
29544 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29545echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29546if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29547 echo $ECHO_N "(cached) $ECHO_C" >&6
29548else
29549
29550 cat >conftest.$ac_ext <<_ACEOF
29551/* confdefs.h. */
29552_ACEOF
29553cat confdefs.h >>conftest.$ac_ext
29554cat >>conftest.$ac_ext <<_ACEOF
29555/* end confdefs.h. */
29556
29557 #include <stdio.h>
29558 #include <stdarg.h>
29559
29560int
29561main ()
29562{
29563
29564 char *buf;
29565 va_list ap;
29566 vsnprintf(buf, 10u, "%s", ap);
29567
29568 ;
29569 return 0;
29570}
29571_ACEOF
29572rm -f conftest.$ac_objext
29573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29574 (eval $ac_compile) 2>conftest.er1
a848cd7e 29575 ac_status=$?
ac1cb8d3
VS
29576 grep -v '^ *+' conftest.er1 >conftest.err
29577 rm -f conftest.er1
29578 cat conftest.err >&5
a848cd7e
SC
29579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580 (exit $ac_status); } &&
04840eaa
VS
29581 { ac_try='test -z "$ac_cxx_werror_flag"
29582 || test ! -s conftest.err'
ac1cb8d3
VS
29583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29584 (eval $ac_try) 2>&5
29585 ac_status=$?
29586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29587 (exit $ac_status); }; } &&
29588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29590 (eval $ac_try) 2>&5
29591 ac_status=$?
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); }; }; then
29594 wx_cv_func_vsnprintf_decl=yes
29595else
29596 echo "$as_me: failed program was:" >&5
29597sed 's/^/| /' conftest.$ac_ext >&5
29598
29599wx_cv_func_vsnprintf_decl=no
29600
29601fi
ac1cb8d3 29602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29603
29604
29605fi
29606echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29607echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
29608
29609 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
29610 cat >>confdefs.h <<\_ACEOF
29611#define HAVE_VSNPRINTF_DECL 1
29612_ACEOF
29613
29614 fi
29615fi
29616
29617if test "$wxUSE_UNICODE" = yes; then
29618
29619
29620
fbe47c7b
VS
29621
29622
29623
29624for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
29625do
29626as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29627echo "$as_me:$LINENO: checking for $ac_func" >&5
29628echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29629if eval "test \"\${$as_ac_var+set}\" = set"; then
29630 echo $ECHO_N "(cached) $ECHO_C" >&6
29631else
29632 cat >conftest.$ac_ext <<_ACEOF
29633/* confdefs.h. */
29634_ACEOF
29635cat confdefs.h >>conftest.$ac_ext
29636cat >>conftest.$ac_ext <<_ACEOF
29637/* end confdefs.h. */
ac1cb8d3
VS
29638/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29640#define $ac_func innocuous_$ac_func
29641
a848cd7e
SC
29642/* System header to define __stub macros and hopefully few prototypes,
29643 which can conflict with char $ac_func (); below.
29644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29645 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 29646
a848cd7e
SC
29647#ifdef __STDC__
29648# include <limits.h>
29649#else
29650# include <assert.h>
29651#endif
ac1cb8d3
VS
29652
29653#undef $ac_func
29654
a848cd7e
SC
29655/* Override any gcc2 internal prototype to avoid an error. */
29656#ifdef __cplusplus
29657extern "C"
29658{
29659#endif
29660/* We use char because int might match the return type of a gcc2
29661 builtin and then its argument prototype would still apply. */
29662char $ac_func ();
29663/* The GNU C library defines this for functions which it implements
29664 to always fail with ENOSYS. Some functions are actually named
29665 something starting with __ and the normal name is an alias. */
29666#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29667choke me
29668#else
29669char (*f) () = $ac_func;
29670#endif
29671#ifdef __cplusplus
29672}
29673#endif
29674
29675int
29676main ()
29677{
29678return f != $ac_func;
29679 ;
29680 return 0;
29681}
29682_ACEOF
29683rm -f conftest.$ac_objext conftest$ac_exeext
29684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29685 (eval $ac_link) 2>conftest.er1
a848cd7e 29686 ac_status=$?
ac1cb8d3
VS
29687 grep -v '^ *+' conftest.er1 >conftest.err
29688 rm -f conftest.er1
29689 cat conftest.err >&5
a848cd7e
SC
29690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691 (exit $ac_status); } &&
04840eaa
VS
29692 { ac_try='test -z "$ac_cxx_werror_flag"
29693 || test ! -s conftest.err'
ac1cb8d3
VS
29694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29695 (eval $ac_try) 2>&5
29696 ac_status=$?
29697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698 (exit $ac_status); }; } &&
29699 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29701 (eval $ac_try) 2>&5
29702 ac_status=$?
29703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704 (exit $ac_status); }; }; then
29705 eval "$as_ac_var=yes"
29706else
29707 echo "$as_me: failed program was:" >&5
29708sed 's/^/| /' conftest.$ac_ext >&5
29709
29710eval "$as_ac_var=no"
29711fi
ac1cb8d3
VS
29712rm -f conftest.err conftest.$ac_objext \
29713 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29714fi
29715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29716echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29717if test `eval echo '${'$as_ac_var'}'` = yes; then
29718 cat >>confdefs.h <<_ACEOF
29719#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29720_ACEOF
29721
29722fi
29723done
29724
29725
29726 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29727echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29728 cat >conftest.$ac_ext <<_ACEOF
29729/* confdefs.h. */
29730_ACEOF
29731cat confdefs.h >>conftest.$ac_ext
29732cat >>conftest.$ac_ext <<_ACEOF
29733/* end confdefs.h. */
29734#include <wchar.h>
29735int
29736main ()
29737{
29738&_vsnwprintf;
29739 ;
29740 return 0;
29741}
29742_ACEOF
29743rm -f conftest.$ac_objext
29744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29745 (eval $ac_compile) 2>conftest.er1
a848cd7e 29746 ac_status=$?
ac1cb8d3
VS
29747 grep -v '^ *+' conftest.er1 >conftest.err
29748 rm -f conftest.er1
29749 cat conftest.err >&5
a848cd7e
SC
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); } &&
04840eaa
VS
29752 { ac_try='test -z "$ac_cxx_werror_flag"
29753 || test ! -s conftest.err'
ac1cb8d3
VS
29754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29755 (eval $ac_try) 2>&5
29756 ac_status=$?
29757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29758 (exit $ac_status); }; } &&
29759 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29761 (eval $ac_try) 2>&5
29762 ac_status=$?
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); }; }; then
29765 echo "$as_me:$LINENO: result: yes" >&5
29766echo "${ECHO_T}yes" >&6
29767 cat >>confdefs.h <<\_ACEOF
29768#define HAVE__VSNWPRINTF 1
29769_ACEOF
29770
29771else
29772 echo "$as_me: failed program was:" >&5
29773sed 's/^/| /' conftest.$ac_ext >&5
29774
29775echo "$as_me:$LINENO: result: no" >&5
29776echo "${ECHO_T}no" >&6
29777fi
ac1cb8d3 29778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
29779fi
29780
29781ac_ext=c
29782ac_cpp='$CPP $CPPFLAGS'
29783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29785ac_compiler_gnu=$ac_cv_c_compiler_gnu
29786
29787
29788
29789
29790if test "$TOOLKIT" != "MSW"; then
29791
29792
29793
29794
29795ac_ext=cc
29796ac_cpp='$CXXCPP $CPPFLAGS'
29797ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29798ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29799ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29800
29801
29802
29803
29804# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
29805if test "${with_libiconv_prefix+set}" = set; then
29806 withval="$with_libiconv_prefix"
29807
29808 for dir in `echo "$withval" | tr : ' '`; do
29809 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29810 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29811 done
29812
29813fi;
29814
29815 echo "$as_me:$LINENO: checking for iconv" >&5
29816echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29817if test "${am_cv_func_iconv+set}" = set; then
29818 echo $ECHO_N "(cached) $ECHO_C" >&6
29819else
29820
29821 am_cv_func_iconv="no, consider installing GNU libiconv"
29822 am_cv_lib_iconv=no
29823 cat >conftest.$ac_ext <<_ACEOF
29824/* confdefs.h. */
29825_ACEOF
29826cat confdefs.h >>conftest.$ac_ext
29827cat >>conftest.$ac_ext <<_ACEOF
29828/* end confdefs.h. */
29829#include <stdlib.h>
29830#include <iconv.h>
29831int
29832main ()
29833{
29834iconv_t cd = iconv_open("","");
29835 iconv(cd,NULL,NULL,NULL,NULL);
29836 iconv_close(cd);
29837 ;
29838 return 0;
29839}
29840_ACEOF
29841rm -f conftest.$ac_objext conftest$ac_exeext
29842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29843 (eval $ac_link) 2>conftest.er1
a848cd7e 29844 ac_status=$?
ac1cb8d3
VS
29845 grep -v '^ *+' conftest.er1 >conftest.err
29846 rm -f conftest.er1
29847 cat conftest.err >&5
a848cd7e
SC
29848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29849 (exit $ac_status); } &&
04840eaa
VS
29850 { ac_try='test -z "$ac_cxx_werror_flag"
29851 || test ! -s conftest.err'
ac1cb8d3
VS
29852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29853 (eval $ac_try) 2>&5
29854 ac_status=$?
29855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29856 (exit $ac_status); }; } &&
29857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29859 (eval $ac_try) 2>&5
29860 ac_status=$?
29861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29862 (exit $ac_status); }; }; then
29863 am_cv_func_iconv=yes
29864else
29865 echo "$as_me: failed program was:" >&5
29866sed 's/^/| /' conftest.$ac_ext >&5
29867
29868fi
ac1cb8d3
VS
29869rm -f conftest.err conftest.$ac_objext \
29870 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29871 if test "$am_cv_func_iconv" != yes; then
29872 am_save_LIBS="$LIBS"
29873 LIBS="$LIBS -liconv"
29874 cat >conftest.$ac_ext <<_ACEOF
29875/* confdefs.h. */
29876_ACEOF
29877cat confdefs.h >>conftest.$ac_ext
29878cat >>conftest.$ac_ext <<_ACEOF
29879/* end confdefs.h. */
29880#include <stdlib.h>
29881#include <iconv.h>
29882int
29883main ()
29884{
29885iconv_t cd = iconv_open("","");
29886 iconv(cd,NULL,NULL,NULL,NULL);
29887 iconv_close(cd);
29888 ;
29889 return 0;
29890}
29891_ACEOF
29892rm -f conftest.$ac_objext conftest$ac_exeext
29893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29894 (eval $ac_link) 2>conftest.er1
a848cd7e 29895 ac_status=$?
ac1cb8d3
VS
29896 grep -v '^ *+' conftest.er1 >conftest.err
29897 rm -f conftest.er1
29898 cat conftest.err >&5
a848cd7e
SC
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); } &&
04840eaa
VS
29901 { ac_try='test -z "$ac_cxx_werror_flag"
29902 || test ! -s conftest.err'
ac1cb8d3
VS
29903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29904 (eval $ac_try) 2>&5
29905 ac_status=$?
29906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29907 (exit $ac_status); }; } &&
29908 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29910 (eval $ac_try) 2>&5
29911 ac_status=$?
29912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913 (exit $ac_status); }; }; then
29914 am_cv_lib_iconv=yes
29915 am_cv_func_iconv=yes
29916else
29917 echo "$as_me: failed program was:" >&5
29918sed 's/^/| /' conftest.$ac_ext >&5
29919
29920fi
ac1cb8d3
VS
29921rm -f conftest.err conftest.$ac_objext \
29922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29923 LIBS="$am_save_LIBS"
29924 fi
29925
29926fi
29927echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29928echo "${ECHO_T}$am_cv_func_iconv" >&6
29929 if test "$am_cv_func_iconv" = yes; then
29930
29931cat >>confdefs.h <<\_ACEOF
29932#define HAVE_ICONV 1
29933_ACEOF
29934
29935 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29936echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29937if test "${wx_cv_func_iconv_const+set}" = set; then
29938 echo $ECHO_N "(cached) $ECHO_C" >&6
29939else
29940 cat >conftest.$ac_ext <<_ACEOF
29941/* confdefs.h. */
29942_ACEOF
29943cat confdefs.h >>conftest.$ac_ext
29944cat >>conftest.$ac_ext <<_ACEOF
29945/* end confdefs.h. */
29946
29947#include <stdlib.h>
29948#include <iconv.h>
29949extern
29950#ifdef __cplusplus
29951"C"
29952#endif
29953#if defined(__STDC__) || defined(__cplusplus)
29954size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29955#else
29956size_t iconv();
29957#endif
29958
29959int
29960main ()
29961{
29962
29963 ;
29964 return 0;
29965}
29966_ACEOF
29967rm -f conftest.$ac_objext
29968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29969 (eval $ac_compile) 2>conftest.er1
a848cd7e 29970 ac_status=$?
ac1cb8d3
VS
29971 grep -v '^ *+' conftest.er1 >conftest.err
29972 rm -f conftest.er1
29973 cat conftest.err >&5
a848cd7e
SC
29974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975 (exit $ac_status); } &&
04840eaa
VS
29976 { ac_try='test -z "$ac_cxx_werror_flag"
29977 || test ! -s conftest.err'
ac1cb8d3
VS
29978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29979 (eval $ac_try) 2>&5
29980 ac_status=$?
29981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); }; } &&
29983 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29985 (eval $ac_try) 2>&5
29986 ac_status=$?
29987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988 (exit $ac_status); }; }; then
29989 wx_cv_func_iconv_const="no"
29990else
29991 echo "$as_me: failed program was:" >&5
29992sed 's/^/| /' conftest.$ac_ext >&5
29993
29994wx_cv_func_iconv_const="yes"
29995
29996fi
ac1cb8d3 29997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29998
29999fi
30000echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
30001echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
30002
30003 iconv_const=
30004 if test "x$wx_cv_func_iconv_const" = "xyes"; then
30005 iconv_const="const"
30006 fi
30007
30008
30009cat >>confdefs.h <<_ACEOF
30010#define ICONV_CONST $iconv_const
30011_ACEOF
30012
30013 fi
30014 LIBICONV=
30015 if test "$am_cv_lib_iconv" = yes; then
30016 LIBICONV="-liconv"
30017 fi
30018
30019
30020LIBS="$LIBICONV $LIBS"
30021ac_ext=c
30022ac_cpp='$CPP $CPPFLAGS'
30023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30025ac_compiler_gnu=$ac_cv_c_compiler_gnu
30026
30027
30028if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30029
30030for ac_func in sigaction
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); } &&
04840eaa
VS
30098 { ac_try='test -z "$ac_c_werror_flag"
30099 || test ! -s conftest.err'
ac1cb8d3
VS
30100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30101 (eval $ac_try) 2>&5
30102 ac_status=$?
30103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30104 (exit $ac_status); }; } &&
30105 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30107 (eval $ac_try) 2>&5
30108 ac_status=$?
30109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; }; then
30111 eval "$as_ac_var=yes"
30112else
30113 echo "$as_me: failed program was:" >&5
30114sed 's/^/| /' conftest.$ac_ext >&5
30115
30116eval "$as_ac_var=no"
30117fi
ac1cb8d3
VS
30118rm -f conftest.err conftest.$ac_objext \
30119 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30120fi
30121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30123if test `eval echo '${'$as_ac_var'}'` = yes; then
30124 cat >>confdefs.h <<_ACEOF
30125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30126_ACEOF
30127
30128fi
30129done
30130
30131
30132 if test "$ac_cv_func_sigaction" = "no"; then
30133 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
30134echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
30135 wxUSE_ON_FATAL_EXCEPTION=no
30136 fi
30137
30138 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
30139
30140
30141 ac_ext=cc
30142ac_cpp='$CXXCPP $CPPFLAGS'
30143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30146
30147
30148 echo "$as_me:$LINENO: checking for sa_handler type" >&5
30149echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
30150if test "${wx_cv_type_sa_handler+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30152else
30153
30154 cat >conftest.$ac_ext <<_ACEOF
30155/* confdefs.h. */
30156_ACEOF
30157cat confdefs.h >>conftest.$ac_ext
30158cat >>conftest.$ac_ext <<_ACEOF
30159/* end confdefs.h. */
30160#include <signal.h>
30161int
30162main ()
30163{
30164
30165 extern void testSigHandler(int);
30166
30167 struct sigaction sa;
30168 sa.sa_handler = testSigHandler;
30169
30170 ;
30171 return 0;
30172}
30173_ACEOF
30174rm -f conftest.$ac_objext
30175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30176 (eval $ac_compile) 2>conftest.er1
a848cd7e 30177 ac_status=$?
ac1cb8d3
VS
30178 grep -v '^ *+' conftest.er1 >conftest.err
30179 rm -f conftest.er1
30180 cat conftest.err >&5
a848cd7e
SC
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); } &&
04840eaa
VS
30183 { ac_try='test -z "$ac_cxx_werror_flag"
30184 || test ! -s conftest.err'
ac1cb8d3
VS
30185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30186 (eval $ac_try) 2>&5
30187 ac_status=$?
30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30189 (exit $ac_status); }; } &&
30190 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30192 (eval $ac_try) 2>&5
30193 ac_status=$?
30194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195 (exit $ac_status); }; }; then
30196
30197 wx_cv_type_sa_handler=int
30198
30199else
30200 echo "$as_me: failed program was:" >&5
30201sed 's/^/| /' conftest.$ac_ext >&5
30202
30203
30204 wx_cv_type_sa_handler=void
30205
30206fi
ac1cb8d3 30207rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30208
30209fi
30210echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
30211echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
30212
30213 ac_ext=c
30214ac_cpp='$CPP $CPPFLAGS'
30215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30217ac_compiler_gnu=$ac_cv_c_compiler_gnu
30218
30219
30220 cat >>confdefs.h <<_ACEOF
30221#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
30222_ACEOF
30223
30224 fi
30225fi
30226
eaff0f0d
VZ
30227if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
30228
30229
30230 ac_ext=cc
30231ac_cpp='$CXXCPP $CPPFLAGS'
30232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30235
30236
30237 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
30238echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
30239if test "${wx_cv_func_backtrace+set}" = set; then
30240 echo $ECHO_N "(cached) $ECHO_C" >&6
30241else
30242
30243 cat >conftest.$ac_ext <<_ACEOF
30244/* confdefs.h. */
30245_ACEOF
30246cat confdefs.h >>conftest.$ac_ext
30247cat >>conftest.$ac_ext <<_ACEOF
30248/* end confdefs.h. */
30249#include <execinfo.h>
30250int
30251main ()
30252{
30253
30254 void *trace[1];
30255 char **messages;
30256
30257 backtrace(trace, 1);
30258 messages = backtrace_symbols(trace, 1);
30259
30260 ;
30261 return 0;
30262}
30263_ACEOF
30264rm -f conftest.$ac_objext
30265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30266 (eval $ac_compile) 2>conftest.er1
30267 ac_status=$?
30268 grep -v '^ *+' conftest.er1 >conftest.err
30269 rm -f conftest.er1
30270 cat conftest.err >&5
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); } &&
04840eaa
VS
30273 { ac_try='test -z "$ac_cxx_werror_flag"
30274 || test ! -s conftest.err'
eaff0f0d
VZ
30275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30276 (eval $ac_try) 2>&5
30277 ac_status=$?
30278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30279 (exit $ac_status); }; } &&
30280 { ac_try='test -s conftest.$ac_objext'
30281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30282 (eval $ac_try) 2>&5
30283 ac_status=$?
30284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285 (exit $ac_status); }; }; then
30286 wx_cv_func_backtrace=yes
30287else
30288 echo "$as_me: failed program was:" >&5
30289sed 's/^/| /' conftest.$ac_ext >&5
30290
30291wx_cv_func_backtrace=no
30292
30293fi
30294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30295
30296
30297fi
30298echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
30299echo "${ECHO_T}$wx_cv_func_backtrace" >&6
30300
30301
30302 if test "$wx_cv_func_backtrace" = "no"; then
30303 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
30304echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
30305 wxUSE_STACKWALKER=no
30306 else
30307 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
30308echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
30309if test "${wx_cv_func_cxa_demangle+set}" = set; then
30310 echo $ECHO_N "(cached) $ECHO_C" >&6
30311else
30312
30313 cat >conftest.$ac_ext <<_ACEOF
30314/* confdefs.h. */
30315_ACEOF
30316cat confdefs.h >>conftest.$ac_ext
30317cat >>conftest.$ac_ext <<_ACEOF
30318/* end confdefs.h. */
30319#include <cxxabi.h>
30320int
30321main ()
30322{
30323
30324 int rc;
30325 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
30326
30327 ;
30328 return 0;
30329}
30330_ACEOF
30331rm -f conftest.$ac_objext
30332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30333 (eval $ac_compile) 2>conftest.er1
30334 ac_status=$?
30335 grep -v '^ *+' conftest.er1 >conftest.err
30336 rm -f conftest.er1
30337 cat conftest.err >&5
30338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339 (exit $ac_status); } &&
04840eaa
VS
30340 { ac_try='test -z "$ac_cxx_werror_flag"
30341 || test ! -s conftest.err'
eaff0f0d
VZ
30342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30343 (eval $ac_try) 2>&5
30344 ac_status=$?
30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30346 (exit $ac_status); }; } &&
30347 { ac_try='test -s conftest.$ac_objext'
30348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30349 (eval $ac_try) 2>&5
30350 ac_status=$?
30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30352 (exit $ac_status); }; }; then
30353 wx_cv_func_cxa_demangle=yes
30354else
30355 echo "$as_me: failed program was:" >&5
30356sed 's/^/| /' conftest.$ac_ext >&5
30357
30358wx_cv_func_cxa_demangle=no
30359
30360fi
30361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30362
30363
30364fi
30365echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
30366echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
30367
30368 if test "$wx_cv_func_cxa_demangle" = "yes"; then
30369 cat >>confdefs.h <<\_ACEOF
30370#define HAVE_CXA_DEMANGLE 1
30371_ACEOF
30372
30373 fi
30374 fi
30375
30376 ac_ext=c
30377ac_cpp='$CPP $CPPFLAGS'
30378ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30379ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30380ac_compiler_gnu=$ac_cv_c_compiler_gnu
30381
30382fi
30383
a848cd7e
SC
30384
30385
30386for ac_func in mkstemp mktemp
30387do
30388as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30389echo "$as_me:$LINENO: checking for $ac_func" >&5
30390echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30391if eval "test \"\${$as_ac_var+set}\" = set"; then
30392 echo $ECHO_N "(cached) $ECHO_C" >&6
30393else
30394 cat >conftest.$ac_ext <<_ACEOF
30395/* confdefs.h. */
30396_ACEOF
30397cat confdefs.h >>conftest.$ac_ext
30398cat >>conftest.$ac_ext <<_ACEOF
30399/* end confdefs.h. */
ac1cb8d3
VS
30400/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30402#define $ac_func innocuous_$ac_func
30403
a848cd7e
SC
30404/* System header to define __stub macros and hopefully few prototypes,
30405 which can conflict with char $ac_func (); below.
30406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30407 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30408
a848cd7e
SC
30409#ifdef __STDC__
30410# include <limits.h>
30411#else
30412# include <assert.h>
30413#endif
ac1cb8d3
VS
30414
30415#undef $ac_func
30416
a848cd7e
SC
30417/* Override any gcc2 internal prototype to avoid an error. */
30418#ifdef __cplusplus
30419extern "C"
30420{
30421#endif
30422/* We use char because int might match the return type of a gcc2
30423 builtin and then its argument prototype would still apply. */
30424char $ac_func ();
30425/* The GNU C library defines this for functions which it implements
30426 to always fail with ENOSYS. Some functions are actually named
30427 something starting with __ and the normal name is an alias. */
30428#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30429choke me
30430#else
30431char (*f) () = $ac_func;
30432#endif
30433#ifdef __cplusplus
30434}
30435#endif
30436
30437int
30438main ()
30439{
30440return f != $ac_func;
30441 ;
30442 return 0;
30443}
30444_ACEOF
30445rm -f conftest.$ac_objext conftest$ac_exeext
30446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30447 (eval $ac_link) 2>conftest.er1
a848cd7e 30448 ac_status=$?
ac1cb8d3
VS
30449 grep -v '^ *+' conftest.er1 >conftest.err
30450 rm -f conftest.er1
30451 cat conftest.err >&5
a848cd7e
SC
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); } &&
04840eaa
VS
30454 { ac_try='test -z "$ac_c_werror_flag"
30455 || test ! -s conftest.err'
ac1cb8d3
VS
30456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30457 (eval $ac_try) 2>&5
30458 ac_status=$?
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); }; } &&
30461 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30463 (eval $ac_try) 2>&5
30464 ac_status=$?
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; }; then
30467 eval "$as_ac_var=yes"
30468else
30469 echo "$as_me: failed program was:" >&5
30470sed 's/^/| /' conftest.$ac_ext >&5
30471
30472eval "$as_ac_var=no"
30473fi
ac1cb8d3
VS
30474rm -f conftest.err conftest.$ac_objext \
30475 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30476fi
30477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30478echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30479if test `eval echo '${'$as_ac_var'}'` = yes; then
30480 cat >>confdefs.h <<_ACEOF
30481#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30482_ACEOF
30483 break
30484fi
30485done
30486
30487
30488echo "$as_me:$LINENO: checking for statfs" >&5
30489echo $ECHO_N "checking for statfs... $ECHO_C" >&6
30490if test "${wx_cv_func_statfs+set}" = set; then
30491 echo $ECHO_N "(cached) $ECHO_C" >&6
30492else
30493 cat >conftest.$ac_ext <<_ACEOF
30494/* confdefs.h. */
30495_ACEOF
30496cat confdefs.h >>conftest.$ac_ext
30497cat >>conftest.$ac_ext <<_ACEOF
30498/* end confdefs.h. */
30499
30500 #if defined(__BSD__)
30501 #include <sys/param.h>
30502 #include <sys/mount.h>
30503 #else
30504 #include <sys/vfs.h>
30505 #endif
30506
30507int
30508main ()
30509{
30510
30511 long l;
30512 struct statfs fs;
30513 statfs("/", &fs);
30514 l = fs.f_bsize;
30515 l += fs.f_blocks;
30516 l += fs.f_bavail;
30517
30518 ;
30519 return 0;
30520}
30521_ACEOF
30522rm -f conftest.$ac_objext
30523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30524 (eval $ac_compile) 2>conftest.er1
a848cd7e 30525 ac_status=$?
ac1cb8d3
VS
30526 grep -v '^ *+' conftest.er1 >conftest.err
30527 rm -f conftest.er1
30528 cat conftest.err >&5
a848cd7e
SC
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } &&
04840eaa
VS
30531 { ac_try='test -z "$ac_c_werror_flag"
30532 || test ! -s conftest.err'
ac1cb8d3
VS
30533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30534 (eval $ac_try) 2>&5
30535 ac_status=$?
30536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537 (exit $ac_status); }; } &&
30538 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30540 (eval $ac_try) 2>&5
30541 ac_status=$?
30542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30543 (exit $ac_status); }; }; then
30544
30545 wx_cv_func_statfs=yes
30546
30547else
30548 echo "$as_me: failed program was:" >&5
30549sed 's/^/| /' conftest.$ac_ext >&5
30550
30551
30552 wx_cv_func_statfs=no
30553
30554
30555fi
ac1cb8d3 30556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30557
30558fi
30559echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30560echo "${ECHO_T}$wx_cv_func_statfs" >&6
30561
30562if test "$wx_cv_func_statfs" = "yes"; then
30563 wx_cv_type_statvfs_t="struct statfs"
30564 cat >>confdefs.h <<\_ACEOF
30565#define HAVE_STATFS 1
30566_ACEOF
30567
30568else
30569 echo "$as_me:$LINENO: checking for statvfs" >&5
30570echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30571if test "${wx_cv_func_statvfs+set}" = set; then
30572 echo $ECHO_N "(cached) $ECHO_C" >&6
30573else
30574 cat >conftest.$ac_ext <<_ACEOF
30575/* confdefs.h. */
30576_ACEOF
30577cat confdefs.h >>conftest.$ac_ext
30578cat >>conftest.$ac_ext <<_ACEOF
30579/* end confdefs.h. */
30580
30581 #include <stddef.h>
30582 #include <sys/statvfs.h>
30583
30584int
30585main ()
30586{
30587
30588 statvfs("/", NULL);
30589
30590 ;
30591 return 0;
30592}
30593_ACEOF
30594rm -f conftest.$ac_objext
30595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30596 (eval $ac_compile) 2>conftest.er1
a848cd7e 30597 ac_status=$?
ac1cb8d3
VS
30598 grep -v '^ *+' conftest.er1 >conftest.err
30599 rm -f conftest.er1
30600 cat conftest.err >&5
a848cd7e
SC
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); } &&
04840eaa
VS
30603 { ac_try='test -z "$ac_c_werror_flag"
30604 || test ! -s conftest.err'
ac1cb8d3
VS
30605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30606 (eval $ac_try) 2>&5
30607 ac_status=$?
30608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30609 (exit $ac_status); }; } &&
30610 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30612 (eval $ac_try) 2>&5
30613 ac_status=$?
30614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30615 (exit $ac_status); }; }; then
30616 wx_cv_func_statvfs=yes
30617else
30618 echo "$as_me: failed program was:" >&5
30619sed 's/^/| /' conftest.$ac_ext >&5
30620
30621wx_cv_func_statvfs=no
30622
30623fi
ac1cb8d3 30624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30625
30626fi
30627echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30628echo "${ECHO_T}$wx_cv_func_statvfs" >&6
30629
30630 if test "$wx_cv_func_statvfs" = "yes"; then
30631
30632
30633 ac_ext=cc
30634ac_cpp='$CXXCPP $CPPFLAGS'
30635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30638
30639
30640 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30641echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30642if test "${wx_cv_type_statvfs_t+set}" = set; then
30643 echo $ECHO_N "(cached) $ECHO_C" >&6
30644else
30645 cat >conftest.$ac_ext <<_ACEOF
30646/* confdefs.h. */
30647_ACEOF
30648cat confdefs.h >>conftest.$ac_ext
30649cat >>conftest.$ac_ext <<_ACEOF
30650/* end confdefs.h. */
30651
30652 #include <sys/statvfs.h>
30653
30654int
30655main ()
30656{
30657
30658 long l;
30659 statvfs_t fs;
30660 statvfs("/", &fs);
30661 l = fs.f_bsize;
30662 l += fs.f_blocks;
30663 l += fs.f_bavail;
30664
30665 ;
30666 return 0;
30667}
30668_ACEOF
30669rm -f conftest.$ac_objext
30670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30671 (eval $ac_compile) 2>conftest.er1
a848cd7e 30672 ac_status=$?
ac1cb8d3
VS
30673 grep -v '^ *+' conftest.er1 >conftest.err
30674 rm -f conftest.er1
30675 cat conftest.err >&5
a848cd7e
SC
30676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677 (exit $ac_status); } &&
04840eaa
VS
30678 { ac_try='test -z "$ac_cxx_werror_flag"
30679 || test ! -s conftest.err'
ac1cb8d3
VS
30680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30681 (eval $ac_try) 2>&5
30682 ac_status=$?
30683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684 (exit $ac_status); }; } &&
30685 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30687 (eval $ac_try) 2>&5
30688 ac_status=$?
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); }; }; then
30691 wx_cv_type_statvfs_t=statvfs_t
30692else
30693 echo "$as_me: failed program was:" >&5
30694sed 's/^/| /' conftest.$ac_ext >&5
30695
30696
30697 cat >conftest.$ac_ext <<_ACEOF
30698/* confdefs.h. */
30699_ACEOF
30700cat confdefs.h >>conftest.$ac_ext
30701cat >>conftest.$ac_ext <<_ACEOF
30702/* end confdefs.h. */
30703
30704 #include <sys/statvfs.h>
30705
30706int
30707main ()
30708{
30709
30710 long l;
30711 struct statvfs fs;
30712 statvfs("/", &fs);
30713 l = fs.f_bsize;
30714 l += fs.f_blocks;
30715 l += fs.f_bavail;
30716
30717 ;
30718 return 0;
30719}
30720_ACEOF
30721rm -f conftest.$ac_objext
30722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30723 (eval $ac_compile) 2>conftest.er1
a848cd7e 30724 ac_status=$?
ac1cb8d3
VS
30725 grep -v '^ *+' conftest.er1 >conftest.err
30726 rm -f conftest.er1
30727 cat conftest.err >&5
a848cd7e
SC
30728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30729 (exit $ac_status); } &&
04840eaa
VS
30730 { ac_try='test -z "$ac_cxx_werror_flag"
30731 || test ! -s conftest.err'
ac1cb8d3
VS
30732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30733 (eval $ac_try) 2>&5
30734 ac_status=$?
30735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30736 (exit $ac_status); }; } &&
30737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30739 (eval $ac_try) 2>&5
30740 ac_status=$?
30741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30742 (exit $ac_status); }; }; then
30743 wx_cv_type_statvfs_t="struct statvfs"
30744else
30745 echo "$as_me: failed program was:" >&5
30746sed 's/^/| /' conftest.$ac_ext >&5
30747
30748wx_cv_type_statvfs_t="unknown"
30749
30750fi
ac1cb8d3 30751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30752
30753
30754fi
ac1cb8d3 30755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30756
30757fi
30758echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30759echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
30760
30761 ac_ext=c
30762ac_cpp='$CPP $CPPFLAGS'
30763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30765ac_compiler_gnu=$ac_cv_c_compiler_gnu
30766
30767
30768 if test "$wx_cv_type_statvfs_t" != "unknown"; then
30769 cat >>confdefs.h <<\_ACEOF
30770#define HAVE_STATVFS 1
30771_ACEOF
30772
30773 fi
30774 else
30775 wx_cv_type_statvfs_t="unknown"
30776 fi
30777fi
30778
30779if test "$wx_cv_type_statvfs_t" != "unknown"; then
30780 cat >>confdefs.h <<_ACEOF
30781#define WX_STATFS_T $wx_cv_type_statvfs_t
30782_ACEOF
30783
30784else
30785 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30786echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
30787fi
30788
30789if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
30790
30791
30792for ac_func in fcntl flock
30793do
30794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30795echo "$as_me:$LINENO: checking for $ac_func" >&5
30796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30797if eval "test \"\${$as_ac_var+set}\" = set"; then
30798 echo $ECHO_N "(cached) $ECHO_C" >&6
30799else
30800 cat >conftest.$ac_ext <<_ACEOF
30801/* confdefs.h. */
30802_ACEOF
30803cat confdefs.h >>conftest.$ac_ext
30804cat >>conftest.$ac_ext <<_ACEOF
30805/* end confdefs.h. */
ac1cb8d3
VS
30806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30808#define $ac_func innocuous_$ac_func
30809
a848cd7e
SC
30810/* System header to define __stub macros and hopefully few prototypes,
30811 which can conflict with char $ac_func (); below.
30812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30813 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30814
a848cd7e
SC
30815#ifdef __STDC__
30816# include <limits.h>
30817#else
30818# include <assert.h>
30819#endif
ac1cb8d3
VS
30820
30821#undef $ac_func
30822
a848cd7e
SC
30823/* Override any gcc2 internal prototype to avoid an error. */
30824#ifdef __cplusplus
30825extern "C"
30826{
30827#endif
30828/* We use char because int might match the return type of a gcc2
30829 builtin and then its argument prototype would still apply. */
30830char $ac_func ();
30831/* The GNU C library defines this for functions which it implements
30832 to always fail with ENOSYS. Some functions are actually named
30833 something starting with __ and the normal name is an alias. */
30834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30835choke me
30836#else
30837char (*f) () = $ac_func;
30838#endif
30839#ifdef __cplusplus
30840}
30841#endif
30842
30843int
30844main ()
30845{
30846return f != $ac_func;
30847 ;
30848 return 0;
30849}
30850_ACEOF
30851rm -f conftest.$ac_objext conftest$ac_exeext
30852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30853 (eval $ac_link) 2>conftest.er1
a848cd7e 30854 ac_status=$?
ac1cb8d3
VS
30855 grep -v '^ *+' conftest.er1 >conftest.err
30856 rm -f conftest.er1
30857 cat conftest.err >&5
a848cd7e
SC
30858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30859 (exit $ac_status); } &&
04840eaa
VS
30860 { ac_try='test -z "$ac_c_werror_flag"
30861 || test ! -s conftest.err'
ac1cb8d3
VS
30862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30863 (eval $ac_try) 2>&5
30864 ac_status=$?
30865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30866 (exit $ac_status); }; } &&
30867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30869 (eval $ac_try) 2>&5
30870 ac_status=$?
30871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30872 (exit $ac_status); }; }; then
30873 eval "$as_ac_var=yes"
30874else
30875 echo "$as_me: failed program was:" >&5
30876sed 's/^/| /' conftest.$ac_ext >&5
30877
30878eval "$as_ac_var=no"
30879fi
ac1cb8d3
VS
30880rm -f conftest.err conftest.$ac_objext \
30881 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30882fi
30883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30884echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30885if test `eval echo '${'$as_ac_var'}'` = yes; then
30886 cat >>confdefs.h <<_ACEOF
30887#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30888_ACEOF
30889 break
30890fi
30891done
30892
30893
30894 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
30895 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30896echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
30897 wxUSE_SNGLINST_CHECKER=no
30898 fi
30899fi
30900
30901
30902for ac_func in timegm
30903do
30904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30905echo "$as_me:$LINENO: checking for $ac_func" >&5
30906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30907if eval "test \"\${$as_ac_var+set}\" = set"; then
30908 echo $ECHO_N "(cached) $ECHO_C" >&6
30909else
30910 cat >conftest.$ac_ext <<_ACEOF
30911/* confdefs.h. */
30912_ACEOF
30913cat confdefs.h >>conftest.$ac_ext
30914cat >>conftest.$ac_ext <<_ACEOF
30915/* end confdefs.h. */
ac1cb8d3
VS
30916/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30918#define $ac_func innocuous_$ac_func
30919
a848cd7e
SC
30920/* System header to define __stub macros and hopefully few prototypes,
30921 which can conflict with char $ac_func (); below.
30922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30923 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 30924
a848cd7e
SC
30925#ifdef __STDC__
30926# include <limits.h>
30927#else
30928# include <assert.h>
30929#endif
ac1cb8d3
VS
30930
30931#undef $ac_func
30932
a848cd7e
SC
30933/* Override any gcc2 internal prototype to avoid an error. */
30934#ifdef __cplusplus
30935extern "C"
30936{
30937#endif
30938/* We use char because int might match the return type of a gcc2
30939 builtin and then its argument prototype would still apply. */
30940char $ac_func ();
30941/* The GNU C library defines this for functions which it implements
30942 to always fail with ENOSYS. Some functions are actually named
30943 something starting with __ and the normal name is an alias. */
30944#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30945choke me
30946#else
30947char (*f) () = $ac_func;
30948#endif
30949#ifdef __cplusplus
30950}
30951#endif
30952
30953int
30954main ()
30955{
30956return f != $ac_func;
30957 ;
30958 return 0;
30959}
30960_ACEOF
30961rm -f conftest.$ac_objext conftest$ac_exeext
30962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30963 (eval $ac_link) 2>conftest.er1
a848cd7e 30964 ac_status=$?
ac1cb8d3
VS
30965 grep -v '^ *+' conftest.er1 >conftest.err
30966 rm -f conftest.er1
30967 cat conftest.err >&5
a848cd7e
SC
30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30969 (exit $ac_status); } &&
04840eaa
VS
30970 { ac_try='test -z "$ac_c_werror_flag"
30971 || test ! -s conftest.err'
ac1cb8d3
VS
30972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30973 (eval $ac_try) 2>&5
30974 ac_status=$?
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); }; } &&
30977 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30979 (eval $ac_try) 2>&5
30980 ac_status=$?
30981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); }; }; then
30983 eval "$as_ac_var=yes"
30984else
30985 echo "$as_me: failed program was:" >&5
30986sed 's/^/| /' conftest.$ac_ext >&5
30987
30988eval "$as_ac_var=no"
30989fi
ac1cb8d3
VS
30990rm -f conftest.err conftest.$ac_objext \
30991 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30992fi
30993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30994echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30995if test `eval echo '${'$as_ac_var'}'` = yes; then
30996 cat >>confdefs.h <<_ACEOF
30997#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30998_ACEOF
30999
31000fi
31001done
31002
31003
31004
31005
31006for ac_func in putenv setenv
31007do
31008as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31009echo "$as_me:$LINENO: checking for $ac_func" >&5
31010echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31011if eval "test \"\${$as_ac_var+set}\" = set"; then
31012 echo $ECHO_N "(cached) $ECHO_C" >&6
31013else
31014 cat >conftest.$ac_ext <<_ACEOF
31015/* confdefs.h. */
31016_ACEOF
31017cat confdefs.h >>conftest.$ac_ext
31018cat >>conftest.$ac_ext <<_ACEOF
31019/* end confdefs.h. */
ac1cb8d3
VS
31020/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31022#define $ac_func innocuous_$ac_func
31023
a848cd7e
SC
31024/* System header to define __stub macros and hopefully few prototypes,
31025 which can conflict with char $ac_func (); below.
31026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31027 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31028
a848cd7e
SC
31029#ifdef __STDC__
31030# include <limits.h>
31031#else
31032# include <assert.h>
31033#endif
ac1cb8d3
VS
31034
31035#undef $ac_func
31036
a848cd7e
SC
31037/* Override any gcc2 internal prototype to avoid an error. */
31038#ifdef __cplusplus
31039extern "C"
31040{
31041#endif
31042/* We use char because int might match the return type of a gcc2
31043 builtin and then its argument prototype would still apply. */
31044char $ac_func ();
31045/* The GNU C library defines this for functions which it implements
31046 to always fail with ENOSYS. Some functions are actually named
31047 something starting with __ and the normal name is an alias. */
31048#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31049choke me
31050#else
31051char (*f) () = $ac_func;
31052#endif
31053#ifdef __cplusplus
31054}
31055#endif
31056
31057int
31058main ()
31059{
31060return f != $ac_func;
31061 ;
31062 return 0;
31063}
31064_ACEOF
31065rm -f conftest.$ac_objext conftest$ac_exeext
31066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31067 (eval $ac_link) 2>conftest.er1
a848cd7e 31068 ac_status=$?
ac1cb8d3
VS
31069 grep -v '^ *+' conftest.er1 >conftest.err
31070 rm -f conftest.er1
31071 cat conftest.err >&5
a848cd7e
SC
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); } &&
04840eaa
VS
31074 { ac_try='test -z "$ac_c_werror_flag"
31075 || test ! -s conftest.err'
ac1cb8d3
VS
31076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31077 (eval $ac_try) 2>&5
31078 ac_status=$?
31079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31080 (exit $ac_status); }; } &&
31081 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31083 (eval $ac_try) 2>&5
31084 ac_status=$?
31085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31086 (exit $ac_status); }; }; then
31087 eval "$as_ac_var=yes"
31088else
31089 echo "$as_me: failed program was:" >&5
31090sed 's/^/| /' conftest.$ac_ext >&5
31091
31092eval "$as_ac_var=no"
31093fi
ac1cb8d3
VS
31094rm -f conftest.err conftest.$ac_objext \
31095 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31096fi
31097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31098echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31099if test `eval echo '${'$as_ac_var'}'` = yes; then
31100 cat >>confdefs.h <<_ACEOF
31101#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31102_ACEOF
31103 break
31104fi
31105done
31106
31107
31108HAVE_SOME_SLEEP_FUNC=0
31109if test "$USE_BEOS" = 1; then
31110 cat >>confdefs.h <<\_ACEOF
31111#define HAVE_SLEEP 1
31112_ACEOF
31113
31114 HAVE_SOME_SLEEP_FUNC=1
31115fi
31116
31117if test "$USE_DARWIN" = 1; then
31118 cat >>confdefs.h <<\_ACEOF
31119#define HAVE_USLEEP 1
31120_ACEOF
31121
31122 HAVE_SOME_SLEEP_FUNC=1
31123fi
31124
31125if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
31126 POSIX4_LINK=
31127
31128for ac_func in nanosleep
31129do
31130as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31131echo "$as_me:$LINENO: checking for $ac_func" >&5
31132echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31133if eval "test \"\${$as_ac_var+set}\" = set"; then
31134 echo $ECHO_N "(cached) $ECHO_C" >&6
31135else
31136 cat >conftest.$ac_ext <<_ACEOF
31137/* confdefs.h. */
31138_ACEOF
31139cat confdefs.h >>conftest.$ac_ext
31140cat >>conftest.$ac_ext <<_ACEOF
31141/* end confdefs.h. */
ac1cb8d3
VS
31142/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31144#define $ac_func innocuous_$ac_func
31145
a848cd7e
SC
31146/* System header to define __stub macros and hopefully few prototypes,
31147 which can conflict with char $ac_func (); below.
31148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31149 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31150
a848cd7e
SC
31151#ifdef __STDC__
31152# include <limits.h>
31153#else
31154# include <assert.h>
31155#endif
ac1cb8d3
VS
31156
31157#undef $ac_func
31158
a848cd7e
SC
31159/* Override any gcc2 internal prototype to avoid an error. */
31160#ifdef __cplusplus
31161extern "C"
31162{
31163#endif
31164/* We use char because int might match the return type of a gcc2
31165 builtin and then its argument prototype would still apply. */
31166char $ac_func ();
31167/* The GNU C library defines this for functions which it implements
31168 to always fail with ENOSYS. Some functions are actually named
31169 something starting with __ and the normal name is an alias. */
31170#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31171choke me
31172#else
31173char (*f) () = $ac_func;
31174#endif
31175#ifdef __cplusplus
31176}
31177#endif
31178
31179int
31180main ()
31181{
31182return f != $ac_func;
31183 ;
31184 return 0;
31185}
31186_ACEOF
31187rm -f conftest.$ac_objext conftest$ac_exeext
31188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31189 (eval $ac_link) 2>conftest.er1
a848cd7e 31190 ac_status=$?
ac1cb8d3
VS
31191 grep -v '^ *+' conftest.er1 >conftest.err
31192 rm -f conftest.er1
31193 cat conftest.err >&5
a848cd7e
SC
31194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195 (exit $ac_status); } &&
04840eaa
VS
31196 { ac_try='test -z "$ac_c_werror_flag"
31197 || test ! -s conftest.err'
ac1cb8d3
VS
31198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31199 (eval $ac_try) 2>&5
31200 ac_status=$?
31201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31202 (exit $ac_status); }; } &&
31203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31205 (eval $ac_try) 2>&5
31206 ac_status=$?
31207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31208 (exit $ac_status); }; }; then
31209 eval "$as_ac_var=yes"
31210else
31211 echo "$as_me: failed program was:" >&5
31212sed 's/^/| /' conftest.$ac_ext >&5
31213
31214eval "$as_ac_var=no"
31215fi
ac1cb8d3
VS
31216rm -f conftest.err conftest.$ac_objext \
31217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31218fi
31219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31220echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31221if test `eval echo '${'$as_ac_var'}'` = yes; then
31222 cat >>confdefs.h <<_ACEOF
31223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31224_ACEOF
31225 cat >>confdefs.h <<\_ACEOF
31226#define HAVE_NANOSLEEP 1
31227_ACEOF
31228
31229else
31230
31231 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
31232echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
31233if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
31234 echo $ECHO_N "(cached) $ECHO_C" >&6
31235else
31236 ac_check_lib_save_LIBS=$LIBS
31237LIBS="-lposix4 $LIBS"
31238cat >conftest.$ac_ext <<_ACEOF
31239/* confdefs.h. */
31240_ACEOF
31241cat confdefs.h >>conftest.$ac_ext
31242cat >>conftest.$ac_ext <<_ACEOF
31243/* end confdefs.h. */
31244
31245/* Override any gcc2 internal prototype to avoid an error. */
31246#ifdef __cplusplus
31247extern "C"
31248#endif
31249/* We use char because int might match the return type of a gcc2
31250 builtin and then its argument prototype would still apply. */
31251char nanosleep ();
31252int
31253main ()
31254{
31255nanosleep ();
31256 ;
31257 return 0;
31258}
31259_ACEOF
31260rm -f conftest.$ac_objext conftest$ac_exeext
31261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31262 (eval $ac_link) 2>conftest.er1
a848cd7e 31263 ac_status=$?
ac1cb8d3
VS
31264 grep -v '^ *+' conftest.er1 >conftest.err
31265 rm -f conftest.er1
31266 cat conftest.err >&5
a848cd7e
SC
31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31268 (exit $ac_status); } &&
04840eaa
VS
31269 { ac_try='test -z "$ac_c_werror_flag"
31270 || test ! -s conftest.err'
ac1cb8d3
VS
31271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31272 (eval $ac_try) 2>&5
31273 ac_status=$?
31274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275 (exit $ac_status); }; } &&
31276 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31278 (eval $ac_try) 2>&5
31279 ac_status=$?
31280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281 (exit $ac_status); }; }; then
31282 ac_cv_lib_posix4_nanosleep=yes
31283else
31284 echo "$as_me: failed program was:" >&5
31285sed 's/^/| /' conftest.$ac_ext >&5
31286
31287ac_cv_lib_posix4_nanosleep=no
31288fi
ac1cb8d3
VS
31289rm -f conftest.err conftest.$ac_objext \
31290 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31291LIBS=$ac_check_lib_save_LIBS
31292fi
31293echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
31294echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
31295if test $ac_cv_lib_posix4_nanosleep = yes; then
31296
31297 cat >>confdefs.h <<\_ACEOF
31298#define HAVE_NANOSLEEP 1
31299_ACEOF
31300
31301 POSIX4_LINK=" -lposix4"
31302
31303else
31304
31305
31306for ac_func in usleep
31307do
31308as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31309echo "$as_me:$LINENO: checking for $ac_func" >&5
31310echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31311if eval "test \"\${$as_ac_var+set}\" = set"; then
31312 echo $ECHO_N "(cached) $ECHO_C" >&6
31313else
31314 cat >conftest.$ac_ext <<_ACEOF
31315/* confdefs.h. */
31316_ACEOF
31317cat confdefs.h >>conftest.$ac_ext
31318cat >>conftest.$ac_ext <<_ACEOF
31319/* end confdefs.h. */
ac1cb8d3
VS
31320/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31322#define $ac_func innocuous_$ac_func
31323
a848cd7e
SC
31324/* System header to define __stub macros and hopefully few prototypes,
31325 which can conflict with char $ac_func (); below.
31326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31327 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31328
a848cd7e
SC
31329#ifdef __STDC__
31330# include <limits.h>
31331#else
31332# include <assert.h>
31333#endif
ac1cb8d3
VS
31334
31335#undef $ac_func
31336
a848cd7e
SC
31337/* Override any gcc2 internal prototype to avoid an error. */
31338#ifdef __cplusplus
31339extern "C"
31340{
31341#endif
31342/* We use char because int might match the return type of a gcc2
31343 builtin and then its argument prototype would still apply. */
31344char $ac_func ();
31345/* The GNU C library defines this for functions which it implements
31346 to always fail with ENOSYS. Some functions are actually named
31347 something starting with __ and the normal name is an alias. */
31348#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31349choke me
31350#else
31351char (*f) () = $ac_func;
31352#endif
31353#ifdef __cplusplus
31354}
31355#endif
31356
31357int
31358main ()
31359{
31360return f != $ac_func;
31361 ;
31362 return 0;
31363}
31364_ACEOF
31365rm -f conftest.$ac_objext conftest$ac_exeext
31366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31367 (eval $ac_link) 2>conftest.er1
a848cd7e 31368 ac_status=$?
ac1cb8d3
VS
31369 grep -v '^ *+' conftest.er1 >conftest.err
31370 rm -f conftest.er1
31371 cat conftest.err >&5
a848cd7e
SC
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); } &&
04840eaa
VS
31374 { ac_try='test -z "$ac_c_werror_flag"
31375 || test ! -s conftest.err'
ac1cb8d3
VS
31376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31377 (eval $ac_try) 2>&5
31378 ac_status=$?
31379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31380 (exit $ac_status); }; } &&
31381 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31383 (eval $ac_try) 2>&5
31384 ac_status=$?
31385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31386 (exit $ac_status); }; }; then
31387 eval "$as_ac_var=yes"
31388else
31389 echo "$as_me: failed program was:" >&5
31390sed 's/^/| /' conftest.$ac_ext >&5
31391
31392eval "$as_ac_var=no"
31393fi
ac1cb8d3
VS
31394rm -f conftest.err conftest.$ac_objext \
31395 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31396fi
31397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31398echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31399if test `eval echo '${'$as_ac_var'}'` = yes; then
31400 cat >>confdefs.h <<_ACEOF
31401#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31402_ACEOF
31403 cat >>confdefs.h <<\_ACEOF
31404#define HAVE_USLEEP 1
31405_ACEOF
31406
31407else
31408 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
31409echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
31410
31411fi
31412done
31413
31414
31415
31416fi
31417
31418
31419
31420fi
31421done
31422
31423fi
31424
31425
31426
31427for ac_func in uname gethostname
31428do
31429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31430echo "$as_me:$LINENO: checking for $ac_func" >&5
31431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31432if eval "test \"\${$as_ac_var+set}\" = set"; then
31433 echo $ECHO_N "(cached) $ECHO_C" >&6
31434else
31435 cat >conftest.$ac_ext <<_ACEOF
31436/* confdefs.h. */
31437_ACEOF
31438cat confdefs.h >>conftest.$ac_ext
31439cat >>conftest.$ac_ext <<_ACEOF
31440/* end confdefs.h. */
ac1cb8d3
VS
31441/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31443#define $ac_func innocuous_$ac_func
31444
a848cd7e
SC
31445/* System header to define __stub macros and hopefully few prototypes,
31446 which can conflict with char $ac_func (); below.
31447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31448 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31449
a848cd7e
SC
31450#ifdef __STDC__
31451# include <limits.h>
31452#else
31453# include <assert.h>
31454#endif
ac1cb8d3
VS
31455
31456#undef $ac_func
31457
a848cd7e
SC
31458/* Override any gcc2 internal prototype to avoid an error. */
31459#ifdef __cplusplus
31460extern "C"
31461{
31462#endif
31463/* We use char because int might match the return type of a gcc2
31464 builtin and then its argument prototype would still apply. */
31465char $ac_func ();
31466/* The GNU C library defines this for functions which it implements
31467 to always fail with ENOSYS. Some functions are actually named
31468 something starting with __ and the normal name is an alias. */
31469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31470choke me
31471#else
31472char (*f) () = $ac_func;
31473#endif
31474#ifdef __cplusplus
31475}
31476#endif
31477
31478int
31479main ()
31480{
31481return f != $ac_func;
31482 ;
31483 return 0;
31484}
31485_ACEOF
31486rm -f conftest.$ac_objext conftest$ac_exeext
31487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31488 (eval $ac_link) 2>conftest.er1
a848cd7e 31489 ac_status=$?
ac1cb8d3
VS
31490 grep -v '^ *+' conftest.er1 >conftest.err
31491 rm -f conftest.er1
31492 cat conftest.err >&5
a848cd7e
SC
31493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31494 (exit $ac_status); } &&
04840eaa
VS
31495 { ac_try='test -z "$ac_c_werror_flag"
31496 || test ! -s conftest.err'
ac1cb8d3
VS
31497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31498 (eval $ac_try) 2>&5
31499 ac_status=$?
31500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501 (exit $ac_status); }; } &&
31502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31504 (eval $ac_try) 2>&5
31505 ac_status=$?
31506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31507 (exit $ac_status); }; }; then
31508 eval "$as_ac_var=yes"
31509else
31510 echo "$as_me: failed program was:" >&5
31511sed 's/^/| /' conftest.$ac_ext >&5
31512
31513eval "$as_ac_var=no"
31514fi
ac1cb8d3
VS
31515rm -f conftest.err conftest.$ac_objext \
31516 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31517fi
31518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31520if test `eval echo '${'$as_ac_var'}'` = yes; then
31521 cat >>confdefs.h <<_ACEOF
31522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31523_ACEOF
31524 break
31525fi
31526done
31527
31528
31529
31530
31531ac_ext=cc
31532ac_cpp='$CXXCPP $CPPFLAGS'
31533ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31534ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31535ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31536
31537
31538
31539for ac_func in strtok_r
31540do
31541as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31542echo "$as_me:$LINENO: checking for $ac_func" >&5
31543echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31544if eval "test \"\${$as_ac_var+set}\" = set"; then
31545 echo $ECHO_N "(cached) $ECHO_C" >&6
31546else
31547 cat >conftest.$ac_ext <<_ACEOF
31548/* confdefs.h. */
31549_ACEOF
31550cat confdefs.h >>conftest.$ac_ext
31551cat >>conftest.$ac_ext <<_ACEOF
31552/* end confdefs.h. */
ac1cb8d3
VS
31553/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31555#define $ac_func innocuous_$ac_func
31556
a848cd7e
SC
31557/* System header to define __stub macros and hopefully few prototypes,
31558 which can conflict with char $ac_func (); below.
31559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31560 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31561
a848cd7e
SC
31562#ifdef __STDC__
31563# include <limits.h>
31564#else
31565# include <assert.h>
31566#endif
ac1cb8d3
VS
31567
31568#undef $ac_func
31569
a848cd7e
SC
31570/* Override any gcc2 internal prototype to avoid an error. */
31571#ifdef __cplusplus
31572extern "C"
31573{
31574#endif
31575/* We use char because int might match the return type of a gcc2
31576 builtin and then its argument prototype would still apply. */
31577char $ac_func ();
31578/* The GNU C library defines this for functions which it implements
31579 to always fail with ENOSYS. Some functions are actually named
31580 something starting with __ and the normal name is an alias. */
31581#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31582choke me
31583#else
31584char (*f) () = $ac_func;
31585#endif
31586#ifdef __cplusplus
31587}
31588#endif
31589
31590int
31591main ()
31592{
31593return f != $ac_func;
31594 ;
31595 return 0;
31596}
31597_ACEOF
31598rm -f conftest.$ac_objext conftest$ac_exeext
31599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31600 (eval $ac_link) 2>conftest.er1
a848cd7e 31601 ac_status=$?
ac1cb8d3
VS
31602 grep -v '^ *+' conftest.er1 >conftest.err
31603 rm -f conftest.er1
31604 cat conftest.err >&5
a848cd7e
SC
31605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31606 (exit $ac_status); } &&
04840eaa
VS
31607 { ac_try='test -z "$ac_cxx_werror_flag"
31608 || test ! -s conftest.err'
ac1cb8d3
VS
31609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31610 (eval $ac_try) 2>&5
31611 ac_status=$?
31612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31613 (exit $ac_status); }; } &&
31614 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31616 (eval $ac_try) 2>&5
31617 ac_status=$?
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); }; }; then
31620 eval "$as_ac_var=yes"
31621else
31622 echo "$as_me: failed program was:" >&5
31623sed 's/^/| /' conftest.$ac_ext >&5
31624
31625eval "$as_ac_var=no"
31626fi
ac1cb8d3
VS
31627rm -f conftest.err conftest.$ac_objext \
31628 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31629fi
31630echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31631echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31632if test `eval echo '${'$as_ac_var'}'` = yes; then
31633 cat >>confdefs.h <<_ACEOF
31634#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31635_ACEOF
31636
31637fi
31638done
31639
31640
31641ac_ext=c
31642ac_cpp='$CPP $CPPFLAGS'
31643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31645ac_compiler_gnu=$ac_cv_c_compiler_gnu
31646
31647
31648INET_LINK=
31649
31650for ac_func in inet_addr
31651do
31652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31653echo "$as_me:$LINENO: checking for $ac_func" >&5
31654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31655if eval "test \"\${$as_ac_var+set}\" = set"; then
31656 echo $ECHO_N "(cached) $ECHO_C" >&6
31657else
31658 cat >conftest.$ac_ext <<_ACEOF
31659/* confdefs.h. */
31660_ACEOF
31661cat confdefs.h >>conftest.$ac_ext
31662cat >>conftest.$ac_ext <<_ACEOF
31663/* end confdefs.h. */
ac1cb8d3
VS
31664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31666#define $ac_func innocuous_$ac_func
31667
a848cd7e
SC
31668/* System header to define __stub macros and hopefully few prototypes,
31669 which can conflict with char $ac_func (); below.
31670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31671 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31672
a848cd7e
SC
31673#ifdef __STDC__
31674# include <limits.h>
31675#else
31676# include <assert.h>
31677#endif
ac1cb8d3
VS
31678
31679#undef $ac_func
31680
a848cd7e
SC
31681/* Override any gcc2 internal prototype to avoid an error. */
31682#ifdef __cplusplus
31683extern "C"
31684{
31685#endif
31686/* We use char because int might match the return type of a gcc2
31687 builtin and then its argument prototype would still apply. */
31688char $ac_func ();
31689/* The GNU C library defines this for functions which it implements
31690 to always fail with ENOSYS. Some functions are actually named
31691 something starting with __ and the normal name is an alias. */
31692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31693choke me
31694#else
31695char (*f) () = $ac_func;
31696#endif
31697#ifdef __cplusplus
31698}
31699#endif
31700
31701int
31702main ()
31703{
31704return f != $ac_func;
31705 ;
31706 return 0;
31707}
31708_ACEOF
31709rm -f conftest.$ac_objext conftest$ac_exeext
31710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31711 (eval $ac_link) 2>conftest.er1
a848cd7e 31712 ac_status=$?
ac1cb8d3
VS
31713 grep -v '^ *+' conftest.er1 >conftest.err
31714 rm -f conftest.er1
31715 cat conftest.err >&5
a848cd7e
SC
31716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31717 (exit $ac_status); } &&
04840eaa
VS
31718 { ac_try='test -z "$ac_c_werror_flag"
31719 || test ! -s conftest.err'
ac1cb8d3
VS
31720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31721 (eval $ac_try) 2>&5
31722 ac_status=$?
31723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31724 (exit $ac_status); }; } &&
31725 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31727 (eval $ac_try) 2>&5
31728 ac_status=$?
31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730 (exit $ac_status); }; }; then
31731 eval "$as_ac_var=yes"
31732else
31733 echo "$as_me: failed program was:" >&5
31734sed 's/^/| /' conftest.$ac_ext >&5
31735
31736eval "$as_ac_var=no"
31737fi
ac1cb8d3
VS
31738rm -f conftest.err conftest.$ac_objext \
31739 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31740fi
31741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31743if test `eval echo '${'$as_ac_var'}'` = yes; then
31744 cat >>confdefs.h <<_ACEOF
31745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31746_ACEOF
31747 cat >>confdefs.h <<\_ACEOF
31748#define HAVE_INET_ADDR 1
31749_ACEOF
31750
31751else
31752
31753 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31754echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31755if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31756 echo $ECHO_N "(cached) $ECHO_C" >&6
31757else
31758 ac_check_lib_save_LIBS=$LIBS
31759LIBS="-lnsl $LIBS"
31760cat >conftest.$ac_ext <<_ACEOF
31761/* confdefs.h. */
31762_ACEOF
31763cat confdefs.h >>conftest.$ac_ext
31764cat >>conftest.$ac_ext <<_ACEOF
31765/* end confdefs.h. */
31766
31767/* Override any gcc2 internal prototype to avoid an error. */
31768#ifdef __cplusplus
31769extern "C"
31770#endif
31771/* We use char because int might match the return type of a gcc2
31772 builtin and then its argument prototype would still apply. */
31773char inet_addr ();
31774int
31775main ()
31776{
31777inet_addr ();
31778 ;
31779 return 0;
31780}
31781_ACEOF
31782rm -f conftest.$ac_objext conftest$ac_exeext
31783if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31784 (eval $ac_link) 2>conftest.er1
a848cd7e 31785 ac_status=$?
ac1cb8d3
VS
31786 grep -v '^ *+' conftest.er1 >conftest.err
31787 rm -f conftest.er1
31788 cat conftest.err >&5
a848cd7e
SC
31789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31790 (exit $ac_status); } &&
04840eaa
VS
31791 { ac_try='test -z "$ac_c_werror_flag"
31792 || test ! -s conftest.err'
ac1cb8d3
VS
31793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31794 (eval $ac_try) 2>&5
31795 ac_status=$?
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); }; } &&
31798 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31800 (eval $ac_try) 2>&5
31801 ac_status=$?
31802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31803 (exit $ac_status); }; }; then
31804 ac_cv_lib_nsl_inet_addr=yes
31805else
31806 echo "$as_me: failed program was:" >&5
31807sed 's/^/| /' conftest.$ac_ext >&5
31808
31809ac_cv_lib_nsl_inet_addr=no
31810fi
ac1cb8d3
VS
31811rm -f conftest.err conftest.$ac_objext \
31812 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31813LIBS=$ac_check_lib_save_LIBS
31814fi
31815echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31816echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31817if test $ac_cv_lib_nsl_inet_addr = yes; then
31818 INET_LINK="nsl"
31819else
31820
31821 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
31822echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31823if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31824 echo $ECHO_N "(cached) $ECHO_C" >&6
31825else
31826 ac_check_lib_save_LIBS=$LIBS
31827LIBS="-lresolv $LIBS"
31828cat >conftest.$ac_ext <<_ACEOF
31829/* confdefs.h. */
31830_ACEOF
31831cat confdefs.h >>conftest.$ac_ext
31832cat >>conftest.$ac_ext <<_ACEOF
31833/* end confdefs.h. */
31834
31835/* Override any gcc2 internal prototype to avoid an error. */
31836#ifdef __cplusplus
31837extern "C"
31838#endif
31839/* We use char because int might match the return type of a gcc2
31840 builtin and then its argument prototype would still apply. */
31841char inet_addr ();
31842int
31843main ()
31844{
31845inet_addr ();
31846 ;
31847 return 0;
31848}
31849_ACEOF
31850rm -f conftest.$ac_objext conftest$ac_exeext
31851if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31852 (eval $ac_link) 2>conftest.er1
a848cd7e 31853 ac_status=$?
ac1cb8d3
VS
31854 grep -v '^ *+' conftest.er1 >conftest.err
31855 rm -f conftest.er1
31856 cat conftest.err >&5
a848cd7e
SC
31857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31858 (exit $ac_status); } &&
04840eaa
VS
31859 { ac_try='test -z "$ac_c_werror_flag"
31860 || test ! -s conftest.err'
ac1cb8d3
VS
31861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31862 (eval $ac_try) 2>&5
31863 ac_status=$?
31864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31865 (exit $ac_status); }; } &&
31866 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31868 (eval $ac_try) 2>&5
31869 ac_status=$?
31870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31871 (exit $ac_status); }; }; then
31872 ac_cv_lib_resolv_inet_addr=yes
31873else
31874 echo "$as_me: failed program was:" >&5
31875sed 's/^/| /' conftest.$ac_ext >&5
31876
31877ac_cv_lib_resolv_inet_addr=no
31878fi
ac1cb8d3
VS
31879rm -f conftest.err conftest.$ac_objext \
31880 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31881LIBS=$ac_check_lib_save_LIBS
31882fi
31883echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31884echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31885if test $ac_cv_lib_resolv_inet_addr = yes; then
31886 INET_LINK="resolv"
31887else
31888
31889 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
31890echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31891if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31892 echo $ECHO_N "(cached) $ECHO_C" >&6
31893else
31894 ac_check_lib_save_LIBS=$LIBS
31895LIBS="-lsocket $LIBS"
31896cat >conftest.$ac_ext <<_ACEOF
31897/* confdefs.h. */
31898_ACEOF
31899cat confdefs.h >>conftest.$ac_ext
31900cat >>conftest.$ac_ext <<_ACEOF
31901/* end confdefs.h. */
31902
31903/* Override any gcc2 internal prototype to avoid an error. */
31904#ifdef __cplusplus
31905extern "C"
31906#endif
31907/* We use char because int might match the return type of a gcc2
31908 builtin and then its argument prototype would still apply. */
31909char inet_addr ();
31910int
31911main ()
31912{
31913inet_addr ();
31914 ;
31915 return 0;
31916}
31917_ACEOF
31918rm -f conftest.$ac_objext conftest$ac_exeext
31919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31920 (eval $ac_link) 2>conftest.er1
a848cd7e 31921 ac_status=$?
ac1cb8d3
VS
31922 grep -v '^ *+' conftest.er1 >conftest.err
31923 rm -f conftest.er1
31924 cat conftest.err >&5
a848cd7e
SC
31925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31926 (exit $ac_status); } &&
04840eaa
VS
31927 { ac_try='test -z "$ac_c_werror_flag"
31928 || test ! -s conftest.err'
ac1cb8d3
VS
31929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31930 (eval $ac_try) 2>&5
31931 ac_status=$?
31932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31933 (exit $ac_status); }; } &&
31934 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936 (eval $ac_try) 2>&5
31937 ac_status=$?
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; }; then
31940 ac_cv_lib_socket_inet_addr=yes
31941else
31942 echo "$as_me: failed program was:" >&5
31943sed 's/^/| /' conftest.$ac_ext >&5
31944
31945ac_cv_lib_socket_inet_addr=no
31946fi
ac1cb8d3
VS
31947rm -f conftest.err conftest.$ac_objext \
31948 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31949LIBS=$ac_check_lib_save_LIBS
31950fi
31951echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31952echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31953if test $ac_cv_lib_socket_inet_addr = yes; then
31954 INET_LINK="socket"
31955
31956fi
31957
31958
31959
31960fi
31961
31962
31963
31964fi
31965
31966
31967
31968fi
31969done
31970
31971
31972
31973for ac_func in inet_aton
31974do
31975as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31976echo "$as_me:$LINENO: checking for $ac_func" >&5
31977echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31978if eval "test \"\${$as_ac_var+set}\" = set"; then
31979 echo $ECHO_N "(cached) $ECHO_C" >&6
31980else
31981 cat >conftest.$ac_ext <<_ACEOF
31982/* confdefs.h. */
31983_ACEOF
31984cat confdefs.h >>conftest.$ac_ext
31985cat >>conftest.$ac_ext <<_ACEOF
31986/* end confdefs.h. */
ac1cb8d3
VS
31987/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31989#define $ac_func innocuous_$ac_func
31990
a848cd7e
SC
31991/* System header to define __stub macros and hopefully few prototypes,
31992 which can conflict with char $ac_func (); below.
31993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31994 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 31995
a848cd7e
SC
31996#ifdef __STDC__
31997# include <limits.h>
31998#else
31999# include <assert.h>
32000#endif
ac1cb8d3
VS
32001
32002#undef $ac_func
32003
a848cd7e
SC
32004/* Override any gcc2 internal prototype to avoid an error. */
32005#ifdef __cplusplus
32006extern "C"
32007{
32008#endif
32009/* We use char because int might match the return type of a gcc2
32010 builtin and then its argument prototype would still apply. */
32011char $ac_func ();
32012/* The GNU C library defines this for functions which it implements
32013 to always fail with ENOSYS. Some functions are actually named
32014 something starting with __ and the normal name is an alias. */
32015#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32016choke me
32017#else
32018char (*f) () = $ac_func;
32019#endif
32020#ifdef __cplusplus
32021}
32022#endif
32023
32024int
32025main ()
32026{
32027return f != $ac_func;
32028 ;
32029 return 0;
32030}
32031_ACEOF
32032rm -f conftest.$ac_objext conftest$ac_exeext
32033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32034 (eval $ac_link) 2>conftest.er1
a848cd7e 32035 ac_status=$?
ac1cb8d3
VS
32036 grep -v '^ *+' conftest.er1 >conftest.err
32037 rm -f conftest.er1
32038 cat conftest.err >&5
a848cd7e
SC
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); } &&
04840eaa
VS
32041 { ac_try='test -z "$ac_c_werror_flag"
32042 || test ! -s conftest.err'
ac1cb8d3
VS
32043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32044 (eval $ac_try) 2>&5
32045 ac_status=$?
32046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047 (exit $ac_status); }; } &&
32048 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32050 (eval $ac_try) 2>&5
32051 ac_status=$?
32052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32053 (exit $ac_status); }; }; then
32054 eval "$as_ac_var=yes"
32055else
32056 echo "$as_me: failed program was:" >&5
32057sed 's/^/| /' conftest.$ac_ext >&5
32058
32059eval "$as_ac_var=no"
32060fi
ac1cb8d3
VS
32061rm -f conftest.err conftest.$ac_objext \
32062 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32063fi
32064echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32065echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32066if test `eval echo '${'$as_ac_var'}'` = yes; then
32067 cat >>confdefs.h <<_ACEOF
32068#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32069_ACEOF
32070 cat >>confdefs.h <<\_ACEOF
32071#define HAVE_INET_ATON 1
32072_ACEOF
32073
32074else
32075
32076 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
32077echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
32078echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
32079if eval "test \"\${$as_ac_Lib+set}\" = set"; then
32080 echo $ECHO_N "(cached) $ECHO_C" >&6
32081else
32082 ac_check_lib_save_LIBS=$LIBS
32083LIBS="-l$INET_LINK $LIBS"
32084cat >conftest.$ac_ext <<_ACEOF
32085/* confdefs.h. */
32086_ACEOF
32087cat confdefs.h >>conftest.$ac_ext
32088cat >>conftest.$ac_ext <<_ACEOF
32089/* end confdefs.h. */
32090
32091/* Override any gcc2 internal prototype to avoid an error. */
32092#ifdef __cplusplus
32093extern "C"
32094#endif
32095/* We use char because int might match the return type of a gcc2
32096 builtin and then its argument prototype would still apply. */
32097char inet_aton ();
32098int
32099main ()
32100{
32101inet_aton ();
32102 ;
32103 return 0;
32104}
32105_ACEOF
32106rm -f conftest.$ac_objext conftest$ac_exeext
32107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32108 (eval $ac_link) 2>conftest.er1
a848cd7e 32109 ac_status=$?
ac1cb8d3
VS
32110 grep -v '^ *+' conftest.er1 >conftest.err
32111 rm -f conftest.er1
32112 cat conftest.err >&5
a848cd7e
SC
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); } &&
04840eaa
VS
32115 { ac_try='test -z "$ac_c_werror_flag"
32116 || test ! -s conftest.err'
ac1cb8d3
VS
32117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32118 (eval $ac_try) 2>&5
32119 ac_status=$?
32120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32121 (exit $ac_status); }; } &&
32122 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32124 (eval $ac_try) 2>&5
32125 ac_status=$?
32126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32127 (exit $ac_status); }; }; then
32128 eval "$as_ac_Lib=yes"
32129else
32130 echo "$as_me: failed program was:" >&5
32131sed 's/^/| /' conftest.$ac_ext >&5
32132
32133eval "$as_ac_Lib=no"
32134fi
ac1cb8d3
VS
32135rm -f conftest.err conftest.$ac_objext \
32136 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32137LIBS=$ac_check_lib_save_LIBS
32138fi
32139echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
32140echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
32141if test `eval echo '${'$as_ac_Lib'}'` = yes; then
32142 cat >>confdefs.h <<\_ACEOF
32143#define HAVE_INET_ATON 1
32144_ACEOF
32145
32146fi
32147
32148
32149fi
32150done
32151
32152
32153if test "x$INET_LINK" != "x"; then
32154 cat >>confdefs.h <<\_ACEOF
32155#define HAVE_INET_ADDR 1
32156_ACEOF
32157
32158 INET_LINK=" -l$INET_LINK"
32159fi
32160
32161fi
32162
32163
32164
32165EXTRALIBS_ESD=
32166echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
32167echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
32168if test "${ac_cv_lib_esd_esd_close+set}" = set; then
32169 echo $ECHO_N "(cached) $ECHO_C" >&6
32170else
32171 ac_check_lib_save_LIBS=$LIBS
32172LIBS="-lesd $LIBS"
32173cat >conftest.$ac_ext <<_ACEOF
32174/* confdefs.h. */
32175_ACEOF
32176cat confdefs.h >>conftest.$ac_ext
32177cat >>conftest.$ac_ext <<_ACEOF
32178/* end confdefs.h. */
32179
32180/* Override any gcc2 internal prototype to avoid an error. */
32181#ifdef __cplusplus
32182extern "C"
32183#endif
32184/* We use char because int might match the return type of a gcc2
32185 builtin and then its argument prototype would still apply. */
32186char esd_close ();
32187int
32188main ()
32189{
32190esd_close ();
32191 ;
32192 return 0;
32193}
32194_ACEOF
32195rm -f conftest.$ac_objext conftest$ac_exeext
32196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32197 (eval $ac_link) 2>conftest.er1
a848cd7e 32198 ac_status=$?
ac1cb8d3
VS
32199 grep -v '^ *+' conftest.er1 >conftest.err
32200 rm -f conftest.er1
32201 cat conftest.err >&5
a848cd7e
SC
32202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203 (exit $ac_status); } &&
04840eaa
VS
32204 { ac_try='test -z "$ac_c_werror_flag"
32205 || test ! -s conftest.err'
ac1cb8d3
VS
32206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32207 (eval $ac_try) 2>&5
32208 ac_status=$?
32209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32210 (exit $ac_status); }; } &&
32211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32213 (eval $ac_try) 2>&5
32214 ac_status=$?
32215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32216 (exit $ac_status); }; }; then
32217 ac_cv_lib_esd_esd_close=yes
32218else
32219 echo "$as_me: failed program was:" >&5
32220sed 's/^/| /' conftest.$ac_ext >&5
32221
32222ac_cv_lib_esd_esd_close=no
32223fi
ac1cb8d3
VS
32224rm -f conftest.err conftest.$ac_objext \
32225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32226LIBS=$ac_check_lib_save_LIBS
32227fi
32228echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
32229echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
32230if test $ac_cv_lib_esd_esd_close = yes; then
32231
32232
32233for ac_header in esd.h
32234do
32235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32236if eval "test \"\${$as_ac_Header+set}\" = set"; then
32237 echo "$as_me:$LINENO: checking for $ac_header" >&5
32238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32239if eval "test \"\${$as_ac_Header+set}\" = set"; then
32240 echo $ECHO_N "(cached) $ECHO_C" >&6
32241fi
32242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32244else
32245 # Is the header compilable?
32246echo "$as_me:$LINENO: checking $ac_header usability" >&5
32247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32248cat >conftest.$ac_ext <<_ACEOF
32249/* confdefs.h. */
32250_ACEOF
32251cat confdefs.h >>conftest.$ac_ext
32252cat >>conftest.$ac_ext <<_ACEOF
32253/* end confdefs.h. */
32254$ac_includes_default
32255#include <$ac_header>
32256_ACEOF
32257rm -f conftest.$ac_objext
32258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32259 (eval $ac_compile) 2>conftest.er1
a848cd7e 32260 ac_status=$?
ac1cb8d3
VS
32261 grep -v '^ *+' conftest.er1 >conftest.err
32262 rm -f conftest.er1
32263 cat conftest.err >&5
a848cd7e
SC
32264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265 (exit $ac_status); } &&
04840eaa
VS
32266 { ac_try='test -z "$ac_c_werror_flag"
32267 || test ! -s conftest.err'
ac1cb8d3
VS
32268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32269 (eval $ac_try) 2>&5
32270 ac_status=$?
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); }; } &&
32273 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32275 (eval $ac_try) 2>&5
32276 ac_status=$?
32277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278 (exit $ac_status); }; }; then
32279 ac_header_compiler=yes
32280else
32281 echo "$as_me: failed program was:" >&5
32282sed 's/^/| /' conftest.$ac_ext >&5
32283
32284ac_header_compiler=no
32285fi
ac1cb8d3 32286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32288echo "${ECHO_T}$ac_header_compiler" >&6
32289
32290# Is the header present?
32291echo "$as_me:$LINENO: checking $ac_header presence" >&5
32292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32293cat >conftest.$ac_ext <<_ACEOF
32294/* confdefs.h. */
32295_ACEOF
32296cat confdefs.h >>conftest.$ac_ext
32297cat >>conftest.$ac_ext <<_ACEOF
32298/* end confdefs.h. */
32299#include <$ac_header>
32300_ACEOF
32301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32303 ac_status=$?
32304 grep -v '^ *+' conftest.er1 >conftest.err
32305 rm -f conftest.er1
32306 cat conftest.err >&5
32307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32308 (exit $ac_status); } >/dev/null; then
32309 if test -s conftest.err; then
32310 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32312 else
32313 ac_cpp_err=
32314 fi
32315else
32316 ac_cpp_err=yes
32317fi
32318if test -z "$ac_cpp_err"; then
32319 ac_header_preproc=yes
32320else
32321 echo "$as_me: failed program was:" >&5
32322sed 's/^/| /' conftest.$ac_ext >&5
32323
32324 ac_header_preproc=no
32325fi
32326rm -f conftest.err conftest.$ac_ext
32327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32328echo "${ECHO_T}$ac_header_preproc" >&6
32329
32330# So? What about this header?
ac1cb8d3
VS
32331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32332 yes:no: )
a848cd7e
SC
32333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32337 ac_header_preproc=yes
a848cd7e 32338 ;;
ac1cb8d3 32339 no:yes:* )
a848cd7e
SC
32340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32352 (
32353 cat <<\_ASBOX
ac1cb8d3
VS
32354## ----------------------------------------- ##
32355## Report this to wx-dev@lists.wxwidgets.org ##
32356## ----------------------------------------- ##
a848cd7e
SC
32357_ASBOX
32358 ) |
32359 sed "s/^/$as_me: WARNING: /" >&2
32360 ;;
32361esac
32362echo "$as_me:$LINENO: checking for $ac_header" >&5
32363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32364if eval "test \"\${$as_ac_Header+set}\" = set"; then
32365 echo $ECHO_N "(cached) $ECHO_C" >&6
32366else
ac1cb8d3 32367 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32368fi
32369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32371
32372fi
32373if test `eval echo '${'$as_ac_Header'}'` = yes; then
32374 cat >>confdefs.h <<_ACEOF
32375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32376_ACEOF
32377
32378 EXTRALIBS_ESD="-lesd"
32379
32380fi
32381
32382done
32383
32384
32385fi
32386
32387
32388
32389echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
32390echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
32391cat >conftest.$ac_ext <<_ACEOF
32392/* confdefs.h. */
32393_ACEOF
32394cat confdefs.h >>conftest.$ac_ext
32395cat >>conftest.$ac_ext <<_ACEOF
32396/* end confdefs.h. */
32397#ifdef __linux__
32398 #include <linux/cdrom.h>
32399 #else
32400 /* For Solaris */
32401 #include <sys/cdio.h>
32402 #endif
32403
32404int
32405main ()
32406{
32407struct cdrom_tocentry entry, old_entry;
32408 ;
32409 return 0;
32410}
32411_ACEOF
32412rm -f conftest.$ac_objext
32413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32414 (eval $ac_compile) 2>conftest.er1
a848cd7e 32415 ac_status=$?
ac1cb8d3
VS
32416 grep -v '^ *+' conftest.er1 >conftest.err
32417 rm -f conftest.er1
32418 cat conftest.err >&5
a848cd7e
SC
32419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32420 (exit $ac_status); } &&
04840eaa
VS
32421 { ac_try='test -z "$ac_c_werror_flag"
32422 || test ! -s conftest.err'
ac1cb8d3
VS
32423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32424 (eval $ac_try) 2>&5
32425 ac_status=$?
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); }; } &&
32428 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32430 (eval $ac_try) 2>&5
32431 ac_status=$?
32432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32433 (exit $ac_status); }; }; then
32434 echo "$as_me:$LINENO: result: yes" >&5
32435echo "${ECHO_T}yes" >&6
32436 cat >>confdefs.h <<\_ACEOF
32437#define HAVE_KNOWN_CDROM_INTERFACE 1
32438_ACEOF
32439
32440else
32441 echo "$as_me: failed program was:" >&5
32442sed 's/^/| /' conftest.$ac_ext >&5
32443
32444echo "$as_me:$LINENO: result: no" >&5
32445echo "${ECHO_T}no" >&6
32446fi
ac1cb8d3 32447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32448
32449
32450cat >confcache <<\_ACEOF
32451# This file is a shell script that caches the results of configure
32452# tests run on this system so they can be shared between configure
32453# scripts and configure runs, see configure's option --config-cache.
32454# It is not useful on other systems. If it contains results you don't
32455# want to keep, you may remove or edit it.
32456#
32457# config.status only pays attention to the cache file if you give it
32458# the --recheck option to rerun configure.
32459#
32460# `ac_cv_env_foo' variables (set or unset) will be overridden when
32461# loading this file, other *unset* `ac_cv_foo' will be assigned the
32462# following values.
32463
32464_ACEOF
32465
32466# The following way of writing the cache mishandles newlines in values,
32467# but we know of no workaround that is simple, portable, and efficient.
32468# So, don't put newlines in cache variables' values.
32469# Ultrix sh set writes to stderr and can't be redirected directly,
32470# and sets the high bit in the cache file unless we assign to the vars.
32471{
32472 (set) 2>&1 |
32473 case `(ac_space=' '; set | grep ac_space) 2>&1` in
32474 *ac_space=\ *)
32475 # `set' does not quote correctly, so add quotes (double-quote
32476 # substitution turns \\\\ into \\, and sed turns \\ into \).
32477 sed -n \
ac1cb8d3
VS
32478 "s/'/'\\\\''/g;
32479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
32480 ;;
32481 *)
32482 # `set' quotes correctly as required by POSIX, so do not add quotes.
32483 sed -n \
ac1cb8d3 32484 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
32485 ;;
32486 esac;
32487} |
32488 sed '
32489 t clear
32490 : clear
32491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32492 t end
32493 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32494 : end' >>confcache
32495if diff $cache_file confcache >/dev/null 2>&1; then :; else
32496 if test -w $cache_file; then
32497 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
32498 cat confcache >$cache_file
32499 else
32500 echo "not updating unwritable cache $cache_file"
32501 fi
32502fi
32503rm -f confcache
32504
32505
32506CPP_MT_FLAG=
32507if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
32508
32509
32510 THREADS_LINK=
32511 THREADS_CFLAGS=
32512
32513 if test "$wxUSE_THREADS" = "yes" ; then
32514 if test "$USE_BEOS" = 1; then
32515 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32516echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
32517 wxUSE_THREADS="no"
32518 fi
32519 fi
32520
32521 if test "$wxUSE_THREADS" = "yes" ; then
32522
32523
32524 THREAD_OPTS="-pthread"
32525 case "${host}" in
32526 *-*-solaris2* | *-*-sunos4* )
32527 if test "x$GCC" = "xyes"; then
32528 THREAD_OPTS="-pthreads $THREAD_OPTS"
32529 else
32530 THREAD_OPTS="-mt $THREAD_OPTS"
32531 fi
32532 ;;
32533 *-*-freebsd*)
32534 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32535 ;;
32536 *-*-darwin* | *-*-cygwin* )
32537 THREAD_OPTS=""
32538 ;;
32539 *-*-aix*)
32540 THREAD_OPTS="pthreads"
32541 ;;
32542 *-hp-hpux* )
32543 if test "x$GCC" != "xyes"; then
32544 THREAD_OPTS=""
32545 fi
32546 ;;
32547
32548 *-*-irix* )
32549 if test "x$GCC" = "xyes"; then
32550 THREAD_OPTS=""
32551 fi
32552 ;;
32553
32554 *-*-*UnixWare*)
32555 if test "x$GCC" != "xyes"; then
32556 THREAD_OPTS="-Ethread"
32557 fi
32558 ;;
32559 esac
32560
32561 THREAD_OPTS="$THREAD_OPTS pthread none"
32562
32563 THREADS_OK=no
32564 for flag in $THREAD_OPTS; do
32565 case $flag in
32566 none)
32567 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32568echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
32569 ;;
32570
32571 -*)
32572 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32573echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
32574 THREADS_CFLAGS="$flag"
32575 ;;
32576
32577 *)
32578 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32579echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
32580 THREADS_LINK="-l$flag"
32581 ;;
32582 esac
32583
32584 save_LIBS="$LIBS"
32585 save_CFLAGS="$CFLAGS"
32586 LIBS="$THREADS_LINK $LIBS"
32587 CFLAGS="$THREADS_CFLAGS $CFLAGS"
32588
32589 cat >conftest.$ac_ext <<_ACEOF
32590/* confdefs.h. */
32591_ACEOF
32592cat confdefs.h >>conftest.$ac_ext
32593cat >>conftest.$ac_ext <<_ACEOF
32594/* end confdefs.h. */
32595#include <pthread.h>
32596int
32597main ()
32598{
32599pthread_create(0,0,0,0);
32600 ;
32601 return 0;
32602}
32603_ACEOF
32604rm -f conftest.$ac_objext conftest$ac_exeext
32605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32606 (eval $ac_link) 2>conftest.er1
a848cd7e 32607 ac_status=$?
ac1cb8d3
VS
32608 grep -v '^ *+' conftest.er1 >conftest.err
32609 rm -f conftest.er1
32610 cat conftest.err >&5
a848cd7e
SC
32611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32612 (exit $ac_status); } &&
04840eaa
VS
32613 { ac_try='test -z "$ac_c_werror_flag"
32614 || test ! -s conftest.err'
ac1cb8d3
VS
32615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616 (eval $ac_try) 2>&5
32617 ac_status=$?
32618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; } &&
32620 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32622 (eval $ac_try) 2>&5
32623 ac_status=$?
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); }; }; then
32626 THREADS_OK=yes
32627else
32628 echo "$as_me: failed program was:" >&5
32629sed 's/^/| /' conftest.$ac_ext >&5
32630
32631fi
ac1cb8d3
VS
32632rm -f conftest.err conftest.$ac_objext \
32633 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32634
32635 LIBS="$save_LIBS"
32636 CFLAGS="$save_CFLAGS"
32637
32638 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32639echo "${ECHO_T}$THREADS_OK" >&6
32640 if test "x$THREADS_OK" = "xyes"; then
32641 break;
32642 fi
32643
32644 THREADS_LINK=""
32645 THREADS_CFLAGS=""
32646 done
32647
32648 if test "x$THREADS_OK" != "xyes"; then
32649 wxUSE_THREADS=no
32650 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32651echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
32652 else
32653 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32654 LIBS="$THREADS_LINK $LIBS"
32655
32656 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32657echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
32658 flag=no
32659 case "${host}" in
32660 *-aix*)
32661 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32662 flag="-D_THREAD_SAFE"
32663 ;;
32664 *-freebsd*)
32665 flag="-D_THREAD_SAFE"
32666 ;;
32667 *-hp-hpux* )
32668 flag="-D_REENTRANT"
32669 if test "x$GCC" != "xyes"; then
32670 flag="$flag -D_RWSTD_MULTI_THREAD"
32671 fi
32672 ;;
32673 *solaris* | alpha*-osf*)
32674 flag="-D_REENTRANT"
32675 ;;
32676 esac
32677 echo "$as_me:$LINENO: result: ${flag}" >&5
32678echo "${ECHO_T}${flag}" >&6
32679 if test "x$flag" != xno; then
32680 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
32681 fi
32682
32683 if test "x$THREADS_CFLAGS" != "x"; then
32684 CFLAGS="$CFLAGS $THREADS_CFLAGS"
32685 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32686 fi
32687 fi
32688 fi
32689
32690 if test "$wxUSE_THREADS" = "yes" ; then
32691
32692for ac_func in thr_setconcurrency
32693do
32694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32695echo "$as_me:$LINENO: checking for $ac_func" >&5
32696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32697if eval "test \"\${$as_ac_var+set}\" = set"; then
32698 echo $ECHO_N "(cached) $ECHO_C" >&6
32699else
32700 cat >conftest.$ac_ext <<_ACEOF
32701/* confdefs.h. */
32702_ACEOF
32703cat confdefs.h >>conftest.$ac_ext
32704cat >>conftest.$ac_ext <<_ACEOF
32705/* end confdefs.h. */
ac1cb8d3
VS
32706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32708#define $ac_func innocuous_$ac_func
32709
a848cd7e
SC
32710/* System header to define __stub macros and hopefully few prototypes,
32711 which can conflict with char $ac_func (); below.
32712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32713 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32714
a848cd7e
SC
32715#ifdef __STDC__
32716# include <limits.h>
32717#else
32718# include <assert.h>
32719#endif
ac1cb8d3
VS
32720
32721#undef $ac_func
32722
a848cd7e
SC
32723/* Override any gcc2 internal prototype to avoid an error. */
32724#ifdef __cplusplus
32725extern "C"
32726{
32727#endif
32728/* We use char because int might match the return type of a gcc2
32729 builtin and then its argument prototype would still apply. */
32730char $ac_func ();
32731/* The GNU C library defines this for functions which it implements
32732 to always fail with ENOSYS. Some functions are actually named
32733 something starting with __ and the normal name is an alias. */
32734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32735choke me
32736#else
32737char (*f) () = $ac_func;
32738#endif
32739#ifdef __cplusplus
32740}
32741#endif
32742
32743int
32744main ()
32745{
32746return f != $ac_func;
32747 ;
32748 return 0;
32749}
32750_ACEOF
32751rm -f conftest.$ac_objext conftest$ac_exeext
32752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32753 (eval $ac_link) 2>conftest.er1
a848cd7e 32754 ac_status=$?
ac1cb8d3
VS
32755 grep -v '^ *+' conftest.er1 >conftest.err
32756 rm -f conftest.er1
32757 cat conftest.err >&5
a848cd7e
SC
32758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759 (exit $ac_status); } &&
04840eaa
VS
32760 { ac_try='test -z "$ac_c_werror_flag"
32761 || test ! -s conftest.err'
ac1cb8d3
VS
32762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32763 (eval $ac_try) 2>&5
32764 ac_status=$?
32765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766 (exit $ac_status); }; } &&
32767 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32769 (eval $ac_try) 2>&5
32770 ac_status=$?
32771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772 (exit $ac_status); }; }; then
32773 eval "$as_ac_var=yes"
32774else
32775 echo "$as_me: failed program was:" >&5
32776sed 's/^/| /' conftest.$ac_ext >&5
32777
32778eval "$as_ac_var=no"
32779fi
ac1cb8d3
VS
32780rm -f conftest.err conftest.$ac_objext \
32781 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32782fi
32783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32784echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32785if test `eval echo '${'$as_ac_var'}'` = yes; then
32786 cat >>confdefs.h <<_ACEOF
32787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32788_ACEOF
32789
32790fi
32791done
32792
32793
32794
32795for ac_header in sched.h
32796do
32797as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32798if eval "test \"\${$as_ac_Header+set}\" = set"; then
32799 echo "$as_me:$LINENO: checking for $ac_header" >&5
32800echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32801if eval "test \"\${$as_ac_Header+set}\" = set"; then
32802 echo $ECHO_N "(cached) $ECHO_C" >&6
32803fi
32804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32806else
32807 # Is the header compilable?
32808echo "$as_me:$LINENO: checking $ac_header usability" >&5
32809echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32810cat >conftest.$ac_ext <<_ACEOF
32811/* confdefs.h. */
32812_ACEOF
32813cat confdefs.h >>conftest.$ac_ext
32814cat >>conftest.$ac_ext <<_ACEOF
32815/* end confdefs.h. */
32816$ac_includes_default
32817#include <$ac_header>
32818_ACEOF
32819rm -f conftest.$ac_objext
32820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32821 (eval $ac_compile) 2>conftest.er1
a848cd7e 32822 ac_status=$?
ac1cb8d3
VS
32823 grep -v '^ *+' conftest.er1 >conftest.err
32824 rm -f conftest.er1
32825 cat conftest.err >&5
a848cd7e
SC
32826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32827 (exit $ac_status); } &&
04840eaa
VS
32828 { ac_try='test -z "$ac_c_werror_flag"
32829 || test ! -s conftest.err'
ac1cb8d3
VS
32830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32831 (eval $ac_try) 2>&5
32832 ac_status=$?
32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32834 (exit $ac_status); }; } &&
32835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32837 (eval $ac_try) 2>&5
32838 ac_status=$?
32839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840 (exit $ac_status); }; }; then
32841 ac_header_compiler=yes
32842else
32843 echo "$as_me: failed program was:" >&5
32844sed 's/^/| /' conftest.$ac_ext >&5
32845
32846ac_header_compiler=no
32847fi
ac1cb8d3 32848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32849echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32850echo "${ECHO_T}$ac_header_compiler" >&6
32851
32852# Is the header present?
32853echo "$as_me:$LINENO: checking $ac_header presence" >&5
32854echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32855cat >conftest.$ac_ext <<_ACEOF
32856/* confdefs.h. */
32857_ACEOF
32858cat confdefs.h >>conftest.$ac_ext
32859cat >>conftest.$ac_ext <<_ACEOF
32860/* end confdefs.h. */
32861#include <$ac_header>
32862_ACEOF
32863if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32864 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32865 ac_status=$?
32866 grep -v '^ *+' conftest.er1 >conftest.err
32867 rm -f conftest.er1
32868 cat conftest.err >&5
32869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870 (exit $ac_status); } >/dev/null; then
32871 if test -s conftest.err; then
32872 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 32873 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
32874 else
32875 ac_cpp_err=
32876 fi
32877else
32878 ac_cpp_err=yes
32879fi
32880if test -z "$ac_cpp_err"; then
32881 ac_header_preproc=yes
32882else
32883 echo "$as_me: failed program was:" >&5
32884sed 's/^/| /' conftest.$ac_ext >&5
32885
32886 ac_header_preproc=no
32887fi
32888rm -f conftest.err conftest.$ac_ext
32889echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32890echo "${ECHO_T}$ac_header_preproc" >&6
32891
32892# So? What about this header?
ac1cb8d3
VS
32893case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32894 yes:no: )
a848cd7e
SC
32895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32896echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
32897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32898echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32899 ac_header_preproc=yes
a848cd7e 32900 ;;
ac1cb8d3 32901 no:yes:* )
a848cd7e
SC
32902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32903echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
32904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32905echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32907echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32909echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
32910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32911echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
32912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32913echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
32914 (
32915 cat <<\_ASBOX
ac1cb8d3
VS
32916## ----------------------------------------- ##
32917## Report this to wx-dev@lists.wxwidgets.org ##
32918## ----------------------------------------- ##
a848cd7e
SC
32919_ASBOX
32920 ) |
32921 sed "s/^/$as_me: WARNING: /" >&2
32922 ;;
32923esac
32924echo "$as_me:$LINENO: checking for $ac_header" >&5
32925echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32926if eval "test \"\${$as_ac_Header+set}\" = set"; then
32927 echo $ECHO_N "(cached) $ECHO_C" >&6
32928else
ac1cb8d3 32929 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
32930fi
32931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32933
32934fi
32935if test `eval echo '${'$as_ac_Header'}'` = yes; then
32936 cat >>confdefs.h <<_ACEOF
32937#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32938_ACEOF
32939
32940fi
32941
32942done
32943
32944 if test "$ac_cv_header_sched_h" = "yes"; then
32945 echo "$as_me:$LINENO: checking for sched_yield" >&5
32946echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32947if test "${ac_cv_func_sched_yield+set}" = set; then
32948 echo $ECHO_N "(cached) $ECHO_C" >&6
32949else
32950 cat >conftest.$ac_ext <<_ACEOF
32951/* confdefs.h. */
32952_ACEOF
32953cat confdefs.h >>conftest.$ac_ext
32954cat >>conftest.$ac_ext <<_ACEOF
32955/* end confdefs.h. */
ac1cb8d3
VS
32956/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32958#define sched_yield innocuous_sched_yield
32959
a848cd7e
SC
32960/* System header to define __stub macros and hopefully few prototypes,
32961 which can conflict with char sched_yield (); below.
32962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32963 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32964
a848cd7e
SC
32965#ifdef __STDC__
32966# include <limits.h>
32967#else
32968# include <assert.h>
32969#endif
ac1cb8d3
VS
32970
32971#undef sched_yield
32972
a848cd7e
SC
32973/* Override any gcc2 internal prototype to avoid an error. */
32974#ifdef __cplusplus
32975extern "C"
32976{
32977#endif
32978/* We use char because int might match the return type of a gcc2
32979 builtin and then its argument prototype would still apply. */
32980char sched_yield ();
32981/* The GNU C library defines this for functions which it implements
32982 to always fail with ENOSYS. Some functions are actually named
32983 something starting with __ and the normal name is an alias. */
32984#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32985choke me
32986#else
32987char (*f) () = sched_yield;
32988#endif
32989#ifdef __cplusplus
32990}
32991#endif
32992
32993int
32994main ()
32995{
32996return f != sched_yield;
32997 ;
32998 return 0;
32999}
33000_ACEOF
33001rm -f conftest.$ac_objext conftest$ac_exeext
33002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33003 (eval $ac_link) 2>conftest.er1
a848cd7e 33004 ac_status=$?
ac1cb8d3
VS
33005 grep -v '^ *+' conftest.er1 >conftest.err
33006 rm -f conftest.er1
33007 cat conftest.err >&5
a848cd7e
SC
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); } &&
04840eaa
VS
33010 { ac_try='test -z "$ac_c_werror_flag"
33011 || test ! -s conftest.err'
ac1cb8d3
VS
33012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33013 (eval $ac_try) 2>&5
33014 ac_status=$?
33015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33016 (exit $ac_status); }; } &&
33017 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33019 (eval $ac_try) 2>&5
33020 ac_status=$?
33021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33022 (exit $ac_status); }; }; then
33023 ac_cv_func_sched_yield=yes
33024else
33025 echo "$as_me: failed program was:" >&5
33026sed 's/^/| /' conftest.$ac_ext >&5
33027
33028ac_cv_func_sched_yield=no
33029fi
ac1cb8d3
VS
33030rm -f conftest.err conftest.$ac_objext \
33031 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33032fi
33033echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
33034echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
33035if test $ac_cv_func_sched_yield = yes; then
33036 cat >>confdefs.h <<\_ACEOF
33037#define HAVE_SCHED_YIELD 1
33038_ACEOF
33039
33040else
33041
33042 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
33043echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
33044if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
33045 echo $ECHO_N "(cached) $ECHO_C" >&6
33046else
33047 ac_check_lib_save_LIBS=$LIBS
33048LIBS="-lposix4 $LIBS"
33049cat >conftest.$ac_ext <<_ACEOF
33050/* confdefs.h. */
33051_ACEOF
33052cat confdefs.h >>conftest.$ac_ext
33053cat >>conftest.$ac_ext <<_ACEOF
33054/* end confdefs.h. */
33055
33056/* Override any gcc2 internal prototype to avoid an error. */
33057#ifdef __cplusplus
33058extern "C"
33059#endif
33060/* We use char because int might match the return type of a gcc2
33061 builtin and then its argument prototype would still apply. */
33062char sched_yield ();
33063int
33064main ()
33065{
33066sched_yield ();
33067 ;
33068 return 0;
33069}
33070_ACEOF
33071rm -f conftest.$ac_objext conftest$ac_exeext
33072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33073 (eval $ac_link) 2>conftest.er1
a848cd7e 33074 ac_status=$?
ac1cb8d3
VS
33075 grep -v '^ *+' conftest.er1 >conftest.err
33076 rm -f conftest.er1
33077 cat conftest.err >&5
a848cd7e
SC
33078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33079 (exit $ac_status); } &&
04840eaa
VS
33080 { ac_try='test -z "$ac_c_werror_flag"
33081 || test ! -s conftest.err'
ac1cb8d3
VS
33082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33083 (eval $ac_try) 2>&5
33084 ac_status=$?
33085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33086 (exit $ac_status); }; } &&
33087 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33089 (eval $ac_try) 2>&5
33090 ac_status=$?
33091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092 (exit $ac_status); }; }; then
33093 ac_cv_lib_posix4_sched_yield=yes
33094else
33095 echo "$as_me: failed program was:" >&5
33096sed 's/^/| /' conftest.$ac_ext >&5
33097
33098ac_cv_lib_posix4_sched_yield=no
33099fi
ac1cb8d3
VS
33100rm -f conftest.err conftest.$ac_objext \
33101 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33102LIBS=$ac_check_lib_save_LIBS
33103fi
33104echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
33105echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
33106if test $ac_cv_lib_posix4_sched_yield = yes; then
33107 cat >>confdefs.h <<\_ACEOF
33108#define HAVE_SCHED_YIELD 1
33109_ACEOF
33110 POSIX4_LINK=" -lposix4"
33111else
33112 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
33113echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
33114
33115fi
33116
33117
33118
33119fi
33120
33121 fi
33122
33123 HAVE_PRIOR_FUNCS=0
33124 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
33125echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
33126if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
33127 echo $ECHO_N "(cached) $ECHO_C" >&6
33128else
33129 cat >conftest.$ac_ext <<_ACEOF
33130/* confdefs.h. */
33131_ACEOF
33132cat confdefs.h >>conftest.$ac_ext
33133cat >>conftest.$ac_ext <<_ACEOF
33134/* end confdefs.h. */
ac1cb8d3
VS
33135/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
33136 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33137#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
33138
a848cd7e
SC
33139/* System header to define __stub macros and hopefully few prototypes,
33140 which can conflict with char pthread_attr_getschedpolicy (); below.
33141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33142 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33143
a848cd7e
SC
33144#ifdef __STDC__
33145# include <limits.h>
33146#else
33147# include <assert.h>
33148#endif
ac1cb8d3
VS
33149
33150#undef pthread_attr_getschedpolicy
33151
a848cd7e
SC
33152/* Override any gcc2 internal prototype to avoid an error. */
33153#ifdef __cplusplus
33154extern "C"
33155{
33156#endif
33157/* We use char because int might match the return type of a gcc2
33158 builtin and then its argument prototype would still apply. */
33159char pthread_attr_getschedpolicy ();
33160/* The GNU C library defines this for functions which it implements
33161 to always fail with ENOSYS. Some functions are actually named
33162 something starting with __ and the normal name is an alias. */
33163#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
33164choke me
33165#else
33166char (*f) () = pthread_attr_getschedpolicy;
33167#endif
33168#ifdef __cplusplus
33169}
33170#endif
33171
33172int
33173main ()
33174{
33175return f != pthread_attr_getschedpolicy;
33176 ;
33177 return 0;
33178}
33179_ACEOF
33180rm -f conftest.$ac_objext conftest$ac_exeext
33181if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33182 (eval $ac_link) 2>conftest.er1
a848cd7e 33183 ac_status=$?
ac1cb8d3
VS
33184 grep -v '^ *+' conftest.er1 >conftest.err
33185 rm -f conftest.er1
33186 cat conftest.err >&5
a848cd7e
SC
33187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188 (exit $ac_status); } &&
04840eaa
VS
33189 { ac_try='test -z "$ac_c_werror_flag"
33190 || test ! -s conftest.err'
ac1cb8d3
VS
33191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33192 (eval $ac_try) 2>&5
33193 ac_status=$?
33194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33195 (exit $ac_status); }; } &&
33196 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33198 (eval $ac_try) 2>&5
33199 ac_status=$?
33200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201 (exit $ac_status); }; }; then
33202 ac_cv_func_pthread_attr_getschedpolicy=yes
33203else
33204 echo "$as_me: failed program was:" >&5
33205sed 's/^/| /' conftest.$ac_ext >&5
33206
33207ac_cv_func_pthread_attr_getschedpolicy=no
33208fi
ac1cb8d3
VS
33209rm -f conftest.err conftest.$ac_objext \
33210 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33211fi
33212echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
33213echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
33214if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
33215 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
33216echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
33217if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
33218 echo $ECHO_N "(cached) $ECHO_C" >&6
33219else
33220 cat >conftest.$ac_ext <<_ACEOF
33221/* confdefs.h. */
33222_ACEOF
33223cat confdefs.h >>conftest.$ac_ext
33224cat >>conftest.$ac_ext <<_ACEOF
33225/* end confdefs.h. */
ac1cb8d3
VS
33226/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
33227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33228#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
33229
a848cd7e
SC
33230/* System header to define __stub macros and hopefully few prototypes,
33231 which can conflict with char pthread_attr_setschedparam (); below.
33232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33233 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33234
a848cd7e
SC
33235#ifdef __STDC__
33236# include <limits.h>
33237#else
33238# include <assert.h>
33239#endif
ac1cb8d3
VS
33240
33241#undef pthread_attr_setschedparam
33242
a848cd7e
SC
33243/* Override any gcc2 internal prototype to avoid an error. */
33244#ifdef __cplusplus
33245extern "C"
33246{
33247#endif
33248/* We use char because int might match the return type of a gcc2
33249 builtin and then its argument prototype would still apply. */
33250char pthread_attr_setschedparam ();
33251/* The GNU C library defines this for functions which it implements
33252 to always fail with ENOSYS. Some functions are actually named
33253 something starting with __ and the normal name is an alias. */
33254#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
33255choke me
33256#else
33257char (*f) () = pthread_attr_setschedparam;
33258#endif
33259#ifdef __cplusplus
33260}
33261#endif
33262
33263int
33264main ()
33265{
33266return f != pthread_attr_setschedparam;
33267 ;
33268 return 0;
33269}
33270_ACEOF
33271rm -f conftest.$ac_objext conftest$ac_exeext
33272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33273 (eval $ac_link) 2>conftest.er1
a848cd7e 33274 ac_status=$?
ac1cb8d3
VS
33275 grep -v '^ *+' conftest.er1 >conftest.err
33276 rm -f conftest.er1
33277 cat conftest.err >&5
a848cd7e
SC
33278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279 (exit $ac_status); } &&
04840eaa
VS
33280 { ac_try='test -z "$ac_c_werror_flag"
33281 || test ! -s conftest.err'
ac1cb8d3
VS
33282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33283 (eval $ac_try) 2>&5
33284 ac_status=$?
33285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33286 (exit $ac_status); }; } &&
33287 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
33293 ac_cv_func_pthread_attr_setschedparam=yes
33294else
33295 echo "$as_me: failed program was:" >&5
33296sed 's/^/| /' conftest.$ac_ext >&5
33297
33298ac_cv_func_pthread_attr_setschedparam=no
33299fi
ac1cb8d3
VS
33300rm -f conftest.err conftest.$ac_objext \
33301 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33302fi
33303echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
33304echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
33305if test $ac_cv_func_pthread_attr_setschedparam = yes; then
33306 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
33307echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
33308if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
33309 echo $ECHO_N "(cached) $ECHO_C" >&6
33310else
33311 cat >conftest.$ac_ext <<_ACEOF
33312/* confdefs.h. */
33313_ACEOF
33314cat confdefs.h >>conftest.$ac_ext
33315cat >>conftest.$ac_ext <<_ACEOF
33316/* end confdefs.h. */
ac1cb8d3
VS
33317/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
33318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33319#define sched_get_priority_max innocuous_sched_get_priority_max
33320
a848cd7e
SC
33321/* System header to define __stub macros and hopefully few prototypes,
33322 which can conflict with char sched_get_priority_max (); below.
33323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33324 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33325
a848cd7e
SC
33326#ifdef __STDC__
33327# include <limits.h>
33328#else
33329# include <assert.h>
33330#endif
ac1cb8d3
VS
33331
33332#undef sched_get_priority_max
33333
a848cd7e
SC
33334/* Override any gcc2 internal prototype to avoid an error. */
33335#ifdef __cplusplus
33336extern "C"
33337{
33338#endif
33339/* We use char because int might match the return type of a gcc2
33340 builtin and then its argument prototype would still apply. */
33341char sched_get_priority_max ();
33342/* The GNU C library defines this for functions which it implements
33343 to always fail with ENOSYS. Some functions are actually named
33344 something starting with __ and the normal name is an alias. */
33345#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
33346choke me
33347#else
33348char (*f) () = sched_get_priority_max;
33349#endif
33350#ifdef __cplusplus
33351}
33352#endif
33353
33354int
33355main ()
33356{
33357return f != sched_get_priority_max;
33358 ;
33359 return 0;
33360}
33361_ACEOF
33362rm -f conftest.$ac_objext conftest$ac_exeext
33363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33364 (eval $ac_link) 2>conftest.er1
a848cd7e 33365 ac_status=$?
ac1cb8d3
VS
33366 grep -v '^ *+' conftest.er1 >conftest.err
33367 rm -f conftest.er1
33368 cat conftest.err >&5
a848cd7e
SC
33369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33370 (exit $ac_status); } &&
04840eaa
VS
33371 { ac_try='test -z "$ac_c_werror_flag"
33372 || test ! -s conftest.err'
ac1cb8d3
VS
33373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33374 (eval $ac_try) 2>&5
33375 ac_status=$?
33376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377 (exit $ac_status); }; } &&
33378 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33380 (eval $ac_try) 2>&5
33381 ac_status=$?
33382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33383 (exit $ac_status); }; }; then
33384 ac_cv_func_sched_get_priority_max=yes
33385else
33386 echo "$as_me: failed program was:" >&5
33387sed 's/^/| /' conftest.$ac_ext >&5
33388
33389ac_cv_func_sched_get_priority_max=no
33390fi
ac1cb8d3
VS
33391rm -f conftest.err conftest.$ac_objext \
33392 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33393fi
33394echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
33395echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
33396if test $ac_cv_func_sched_get_priority_max = yes; then
33397 HAVE_PRIOR_FUNCS=1
33398else
33399 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
33400echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
33401if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
33402 echo $ECHO_N "(cached) $ECHO_C" >&6
33403else
33404 ac_check_lib_save_LIBS=$LIBS
33405LIBS="-lposix4 $LIBS"
33406cat >conftest.$ac_ext <<_ACEOF
33407/* confdefs.h. */
33408_ACEOF
33409cat confdefs.h >>conftest.$ac_ext
33410cat >>conftest.$ac_ext <<_ACEOF
33411/* end confdefs.h. */
33412
33413/* Override any gcc2 internal prototype to avoid an error. */
33414#ifdef __cplusplus
33415extern "C"
33416#endif
33417/* We use char because int might match the return type of a gcc2
33418 builtin and then its argument prototype would still apply. */
33419char sched_get_priority_max ();
33420int
33421main ()
33422{
33423sched_get_priority_max ();
33424 ;
33425 return 0;
33426}
33427_ACEOF
33428rm -f conftest.$ac_objext conftest$ac_exeext
33429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33430 (eval $ac_link) 2>conftest.er1
a848cd7e 33431 ac_status=$?
ac1cb8d3
VS
33432 grep -v '^ *+' conftest.er1 >conftest.err
33433 rm -f conftest.er1
33434 cat conftest.err >&5
a848cd7e
SC
33435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436 (exit $ac_status); } &&
04840eaa
VS
33437 { ac_try='test -z "$ac_c_werror_flag"
33438 || test ! -s conftest.err'
ac1cb8d3
VS
33439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33440 (eval $ac_try) 2>&5
33441 ac_status=$?
33442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443 (exit $ac_status); }; } &&
33444 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33446 (eval $ac_try) 2>&5
33447 ac_status=$?
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); }; }; then
33450 ac_cv_lib_posix4_sched_get_priority_max=yes
33451else
33452 echo "$as_me: failed program was:" >&5
33453sed 's/^/| /' conftest.$ac_ext >&5
33454
33455ac_cv_lib_posix4_sched_get_priority_max=no
33456fi
ac1cb8d3
VS
33457rm -f conftest.err conftest.$ac_objext \
33458 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33459LIBS=$ac_check_lib_save_LIBS
33460fi
33461echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
33462echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
33463if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
33464
33465 HAVE_PRIOR_FUNCS=1
33466 POSIX4_LINK=" -lposix4"
33467
33468fi
33469
33470
33471fi
33472
33473
33474fi
33475
33476
33477fi
33478
33479
33480 if test "$HAVE_PRIOR_FUNCS" = 1; then
33481 cat >>confdefs.h <<\_ACEOF
33482#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
33483_ACEOF
33484
33485 else
33486 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
33487echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
33488 fi
33489
33490 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
33491echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
33492if test "${ac_cv_func_pthread_cancel+set}" = set; then
33493 echo $ECHO_N "(cached) $ECHO_C" >&6
33494else
33495 cat >conftest.$ac_ext <<_ACEOF
33496/* confdefs.h. */
33497_ACEOF
33498cat confdefs.h >>conftest.$ac_ext
33499cat >>conftest.$ac_ext <<_ACEOF
33500/* end confdefs.h. */
ac1cb8d3
VS
33501/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33503#define pthread_cancel innocuous_pthread_cancel
33504
a848cd7e
SC
33505/* System header to define __stub macros and hopefully few prototypes,
33506 which can conflict with char pthread_cancel (); below.
33507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33508 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33509
a848cd7e
SC
33510#ifdef __STDC__
33511# include <limits.h>
33512#else
33513# include <assert.h>
33514#endif
ac1cb8d3
VS
33515
33516#undef pthread_cancel
33517
a848cd7e
SC
33518/* Override any gcc2 internal prototype to avoid an error. */
33519#ifdef __cplusplus
33520extern "C"
33521{
33522#endif
33523/* We use char because int might match the return type of a gcc2
33524 builtin and then its argument prototype would still apply. */
33525char pthread_cancel ();
33526/* The GNU C library defines this for functions which it implements
33527 to always fail with ENOSYS. Some functions are actually named
33528 something starting with __ and the normal name is an alias. */
33529#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33530choke me
33531#else
33532char (*f) () = pthread_cancel;
33533#endif
33534#ifdef __cplusplus
33535}
33536#endif
33537
33538int
33539main ()
33540{
33541return f != pthread_cancel;
33542 ;
33543 return 0;
33544}
33545_ACEOF
33546rm -f conftest.$ac_objext conftest$ac_exeext
33547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33548 (eval $ac_link) 2>conftest.er1
a848cd7e 33549 ac_status=$?
ac1cb8d3
VS
33550 grep -v '^ *+' conftest.er1 >conftest.err
33551 rm -f conftest.er1
33552 cat conftest.err >&5
a848cd7e
SC
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); } &&
04840eaa
VS
33555 { ac_try='test -z "$ac_c_werror_flag"
33556 || test ! -s conftest.err'
ac1cb8d3
VS
33557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33558 (eval $ac_try) 2>&5
33559 ac_status=$?
33560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33561 (exit $ac_status); }; } &&
33562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33564 (eval $ac_try) 2>&5
33565 ac_status=$?
33566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33567 (exit $ac_status); }; }; then
33568 ac_cv_func_pthread_cancel=yes
33569else
33570 echo "$as_me: failed program was:" >&5
33571sed 's/^/| /' conftest.$ac_ext >&5
33572
33573ac_cv_func_pthread_cancel=no
33574fi
ac1cb8d3
VS
33575rm -f conftest.err conftest.$ac_objext \
33576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33577fi
33578echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33579echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33580if test $ac_cv_func_pthread_cancel = yes; then
33581 cat >>confdefs.h <<\_ACEOF
33582#define HAVE_PTHREAD_CANCEL 1
33583_ACEOF
33584
33585else
33586 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33587echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
33588fi
33589
33590
33591
33592
33593 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33594echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33595if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33596 echo $ECHO_N "(cached) $ECHO_C" >&6
33597else
33598
33599 cat >conftest.$ac_ext <<_ACEOF
33600/* confdefs.h. */
33601_ACEOF
33602cat confdefs.h >>conftest.$ac_ext
33603cat >>conftest.$ac_ext <<_ACEOF
33604/* end confdefs.h. */
33605#include <pthread.h>
33606int
33607main ()
33608{
33609
33610 pthread_mutexattr_t attr;
33611 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
33612
33613 ;
33614 return 0;
33615}
33616_ACEOF
33617rm -f conftest.$ac_objext
33618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33619 (eval $ac_compile) 2>conftest.er1
a848cd7e 33620 ac_status=$?
ac1cb8d3
VS
33621 grep -v '^ *+' conftest.er1 >conftest.err
33622 rm -f conftest.er1
33623 cat conftest.err >&5
a848cd7e
SC
33624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33625 (exit $ac_status); } &&
04840eaa
VS
33626 { ac_try='test -z "$ac_c_werror_flag"
33627 || test ! -s conftest.err'
ac1cb8d3
VS
33628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33629 (eval $ac_try) 2>&5
33630 ac_status=$?
33631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33632 (exit $ac_status); }; } &&
33633 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33635 (eval $ac_try) 2>&5
33636 ac_status=$?
33637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638 (exit $ac_status); }; }; then
33639
33640 wx_cv_type_pthread_mutexattr_t=yes
33641
33642else
33643 echo "$as_me: failed program was:" >&5
33644sed 's/^/| /' conftest.$ac_ext >&5
33645
33646
33647 wx_cv_type_pthread_mutexattr_t=no
33648
33649
33650fi
ac1cb8d3 33651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33652
33653fi
33654echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33655echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
33656
33657 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
33658 cat >>confdefs.h <<\_ACEOF
33659#define HAVE_PTHREAD_MUTEXATTR_T 1
33660_ACEOF
33661
33662 else
33663 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33664echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33665if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33666 echo $ECHO_N "(cached) $ECHO_C" >&6
33667else
33668
33669 cat >conftest.$ac_ext <<_ACEOF
33670/* confdefs.h. */
33671_ACEOF
33672cat confdefs.h >>conftest.$ac_ext
33673cat >>conftest.$ac_ext <<_ACEOF
33674/* end confdefs.h. */
33675#include <pthread.h>
33676int
33677main ()
33678{
33679
33680 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
33681
33682 ;
33683 return 0;
33684}
33685_ACEOF
33686rm -f conftest.$ac_objext
33687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33688 (eval $ac_compile) 2>conftest.er1
a848cd7e 33689 ac_status=$?
ac1cb8d3
VS
33690 grep -v '^ *+' conftest.er1 >conftest.err
33691 rm -f conftest.er1
33692 cat conftest.err >&5
a848cd7e
SC
33693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694 (exit $ac_status); } &&
04840eaa
VS
33695 { ac_try='test -z "$ac_c_werror_flag"
33696 || test ! -s conftest.err'
ac1cb8d3
VS
33697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33698 (eval $ac_try) 2>&5
33699 ac_status=$?
33700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701 (exit $ac_status); }; } &&
33702 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33704 (eval $ac_try) 2>&5
33705 ac_status=$?
33706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33707 (exit $ac_status); }; }; then
33708
33709 wx_cv_type_pthread_rec_mutex_init=yes
33710
33711else
33712 echo "$as_me: failed program was:" >&5
33713sed 's/^/| /' conftest.$ac_ext >&5
33714
33715
33716 wx_cv_type_pthread_rec_mutex_init=no
33717
33718
33719fi
ac1cb8d3 33720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33721
33722fi
33723echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33724echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
33725 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
33726 cat >>confdefs.h <<\_ACEOF
33727#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
33728_ACEOF
33729
33730 else
33731 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33732echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
33733 fi
33734 fi
33735 fi
33736
33737else
33738 if test "$wxUSE_THREADS" = "yes" ; then
33739 case "${host}" in
33740 *-*-mingw32* )
33741 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33742echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33743if test "${wx_cv_cflags_mthread+set}" = set; then
33744 echo $ECHO_N "(cached) $ECHO_C" >&6
33745else
33746
33747 CFLAGS_OLD="$CFLAGS"
33748 CFLAGS="$CFLAGS -mthreads"
33749 cat >conftest.$ac_ext <<_ACEOF
33750/* confdefs.h. */
33751_ACEOF
33752cat confdefs.h >>conftest.$ac_ext
33753cat >>conftest.$ac_ext <<_ACEOF
33754/* end confdefs.h. */
33755
33756int
33757main ()
33758{
33759
33760 ;
33761 return 0;
33762}
33763_ACEOF
33764rm -f conftest.$ac_objext
33765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33766 (eval $ac_compile) 2>conftest.er1
a848cd7e 33767 ac_status=$?
ac1cb8d3
VS
33768 grep -v '^ *+' conftest.er1 >conftest.err
33769 rm -f conftest.er1
33770 cat conftest.err >&5
a848cd7e
SC
33771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33772 (exit $ac_status); } &&
04840eaa
VS
33773 { ac_try='test -z "$ac_c_werror_flag"
33774 || test ! -s conftest.err'
ac1cb8d3
VS
33775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33776 (eval $ac_try) 2>&5
33777 ac_status=$?
33778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33779 (exit $ac_status); }; } &&
33780 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33782 (eval $ac_try) 2>&5
33783 ac_status=$?
33784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33785 (exit $ac_status); }; }; then
33786 wx_cv_cflags_mthread=yes
33787else
33788 echo "$as_me: failed program was:" >&5
33789sed 's/^/| /' conftest.$ac_ext >&5
33790
33791wx_cv_cflags_mthread=no
33792
33793fi
ac1cb8d3 33794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33795
33796
33797fi
33798echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33799echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
33800
33801 if test "$wx_cv_cflags_mthread" = "yes"; then
33802 CXXFLAGS="$CXXFLAGS -mthreads"
33803 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33804 LDFLAGS="$LDFLAGS -mthreads"
33805 else
33806 CFLAGS="$CFLAGS_OLD"
33807 fi
33808 ;;
33809 *-pc-os2*emx )
33810 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33811 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33812 LDFLAGS="$LDFLAGS -Zmt"
33813 ;;
33814 esac
33815 fi
33816fi
33817
33818if test "$wxUSE_THREADS" = "yes"; then
33819 cat >>confdefs.h <<\_ACEOF
33820#define wxUSE_THREADS 1
33821_ACEOF
33822
33823
33824 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
33825else
33826 if test "$ac_cv_func_strtok_r" = "yes"; then
33827 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33828echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
33829 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33830 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
33831 echo "$as_me:$LINENO: result: yes" >&5
33832echo "${ECHO_T}yes" >&6
33833 else
33834 echo "$as_me:$LINENO: result: no" >&5
33835echo "${ECHO_T}no" >&6
33836 fi
33837 fi
33838fi
33839
33840if test "$WXGTK20" = 1 ; then
33841 cat >>confdefs.h <<_ACEOF
33842#define __WXGTK20__ $WXGTK20
33843_ACEOF
33844
33845 WXGTK12=1
33846fi
33847
33848if test "$WXGTK12" = 1 ; then
33849 cat >>confdefs.h <<_ACEOF
33850#define __WXGTK12__ $WXGTK12
33851_ACEOF
33852
33853fi
33854
33855if test "$WXGTK127" = 1 ; then
33856 cat >>confdefs.h <<_ACEOF
33857#define __WXGTK127__ $WXGTK127
33858_ACEOF
33859
33860fi
33861
33862if test "$WXGPE" = 1 ; then
33863 cat >>confdefs.h <<_ACEOF
33864#define __WXGPE__ $WXGPE
33865_ACEOF
33866
33867fi
33868
33869WXDEBUG=
33870
33871if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33872 WXDEBUG="-g"
33873 wxUSE_OPTIMISE=no
33874fi
33875
33876if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33877 wxUSE_DEBUG_INFO=yes
33878 WXDEBUG="-ggdb"
33879fi
33880
33881if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
33882 cat >>confdefs.h <<\_ACEOF
33883#define WXDEBUG 1
33884_ACEOF
33885
33886 WXDEBUG_DEFINE="-D__WXDEBUG__"
33887else
33888 if test "$wxUSE_GTK" = 1 ; then
33889 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33890 fi
33891fi
33892
33893if test "$wxUSE_MEM_TRACING" = "yes" ; then
33894 cat >>confdefs.h <<\_ACEOF
33895#define wxUSE_MEMORY_TRACING 1
33896_ACEOF
33897
33898 cat >>confdefs.h <<\_ACEOF
33899#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
33900_ACEOF
33901
33902 cat >>confdefs.h <<\_ACEOF
33903#define wxUSE_DEBUG_NEW_ALWAYS 1
33904_ACEOF
33905
33906 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33907fi
33908
33909if test "$wxUSE_DMALLOC" = "yes" ; then
33910 DMALLOC_LIBS="-ldmalloc"
33911fi
33912
33913PROFILE=
33914if test "$wxUSE_PROFILE" = "yes" ; then
33915 PROFILE=" -pg"
33916fi
33917
33918CODE_GEN_FLAGS=
33919CODE_GEN_FLAGS_CXX=
33920if test "$GCC" = "yes" ; then
33921 if test "$wxUSE_NO_RTTI" = "yes" ; then
33922 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
33923 fi
33924 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33925 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33926 fi
33927 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33928 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33929 fi
33930
33931 case "${host}" in
33932 powerpc*-*-aix* )
33933 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33934 ;;
33935 *-hppa* )
33936 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33937 ;;
33938 esac
33939fi
33940
33941OPTIMISE=
33942if test "$wxUSE_OPTIMISE" = "no" ; then
33943 if test "$GCC" = yes ; then
33944 OPTIMISE="-O0"
33945 fi
33946else
33947 if test "$GCC" = yes ; then
33948 OPTIMISE="-O2"
33949
33950 case "${host}" in
33951 i586-*-*|i686-*-* )
33952 OPTIMISE="${OPTIMISE} "
33953 ;;
33954 esac
33955 else
33956 OPTIMISE="-O"
33957 fi
33958fi
33959
33960
33961if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
33962 cat >>confdefs.h <<\_ACEOF
33963#define WXWIN_COMPATIBILITY_2_2 1
33964_ACEOF
33965
33966
33967 WXWIN_COMPATIBILITY_2_4="yes"
33968fi
33969
33970if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
33971 cat >>confdefs.h <<\_ACEOF
33972#define WXWIN_COMPATIBILITY_2_4 1
33973_ACEOF
33974
33975fi
33976
33977
33978if test "$wxUSE_GUI" = "yes"; then
881bfcd6 33979 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
33980#define wxUSE_GUI 1
33981_ACEOF
33982
33983
370fd4c2 33984 fi
a848cd7e
SC
33985
33986
33987if test "$wxUSE_UNIX" = "yes"; then
33988 cat >>confdefs.h <<\_ACEOF
33989#define wxUSE_UNIX 1
33990_ACEOF
33991
33992fi
33993
33994
33995if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
33996
33997 HAVE_DL_FUNCS=0
33998 HAVE_SHL_FUNCS=0
33999 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34000 if test "$USE_DARWIN" = 1; then
34001 HAVE_DL_FUNCS=1
34002 else
34003
34004for ac_func in dlopen
34005do
34006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34007echo "$as_me:$LINENO: checking for $ac_func" >&5
34008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34009if eval "test \"\${$as_ac_var+set}\" = set"; then
34010 echo $ECHO_N "(cached) $ECHO_C" >&6
34011else
34012 cat >conftest.$ac_ext <<_ACEOF
34013/* confdefs.h. */
34014_ACEOF
34015cat confdefs.h >>conftest.$ac_ext
34016cat >>conftest.$ac_ext <<_ACEOF
34017/* end confdefs.h. */
ac1cb8d3
VS
34018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34020#define $ac_func innocuous_$ac_func
34021
a848cd7e
SC
34022/* System header to define __stub macros and hopefully few prototypes,
34023 which can conflict with char $ac_func (); below.
34024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34025 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34026
a848cd7e
SC
34027#ifdef __STDC__
34028# include <limits.h>
34029#else
34030# include <assert.h>
34031#endif
ac1cb8d3
VS
34032
34033#undef $ac_func
34034
a848cd7e
SC
34035/* Override any gcc2 internal prototype to avoid an error. */
34036#ifdef __cplusplus
34037extern "C"
34038{
34039#endif
34040/* We use char because int might match the return type of a gcc2
34041 builtin and then its argument prototype would still apply. */
34042char $ac_func ();
34043/* The GNU C library defines this for functions which it implements
34044 to always fail with ENOSYS. Some functions are actually named
34045 something starting with __ and the normal name is an alias. */
34046#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34047choke me
34048#else
34049char (*f) () = $ac_func;
34050#endif
34051#ifdef __cplusplus
34052}
34053#endif
34054
34055int
34056main ()
34057{
34058return f != $ac_func;
34059 ;
34060 return 0;
34061}
34062_ACEOF
34063rm -f conftest.$ac_objext conftest$ac_exeext
34064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34065 (eval $ac_link) 2>conftest.er1
a848cd7e 34066 ac_status=$?
ac1cb8d3
VS
34067 grep -v '^ *+' conftest.er1 >conftest.err
34068 rm -f conftest.er1
34069 cat conftest.err >&5
a848cd7e
SC
34070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34071 (exit $ac_status); } &&
04840eaa
VS
34072 { ac_try='test -z "$ac_c_werror_flag"
34073 || test ! -s conftest.err'
ac1cb8d3
VS
34074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34075 (eval $ac_try) 2>&5
34076 ac_status=$?
34077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34078 (exit $ac_status); }; } &&
34079 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34081 (eval $ac_try) 2>&5
34082 ac_status=$?
34083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34084 (exit $ac_status); }; }; then
34085 eval "$as_ac_var=yes"
34086else
34087 echo "$as_me: failed program was:" >&5
34088sed 's/^/| /' conftest.$ac_ext >&5
34089
34090eval "$as_ac_var=no"
34091fi
ac1cb8d3
VS
34092rm -f conftest.err conftest.$ac_objext \
34093 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34094fi
34095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34096echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34097if test `eval echo '${'$as_ac_var'}'` = yes; then
34098 cat >>confdefs.h <<_ACEOF
34099#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34100_ACEOF
34101
34102 cat >>confdefs.h <<\_ACEOF
34103#define HAVE_DLOPEN 1
34104_ACEOF
34105
34106 HAVE_DL_FUNCS=1
34107
34108else
34109
34110 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34111echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34112if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34113 echo $ECHO_N "(cached) $ECHO_C" >&6
34114else
34115 ac_check_lib_save_LIBS=$LIBS
34116LIBS="-ldl $LIBS"
34117cat >conftest.$ac_ext <<_ACEOF
34118/* confdefs.h. */
34119_ACEOF
34120cat confdefs.h >>conftest.$ac_ext
34121cat >>conftest.$ac_ext <<_ACEOF
34122/* end confdefs.h. */
34123
34124/* Override any gcc2 internal prototype to avoid an error. */
34125#ifdef __cplusplus
34126extern "C"
34127#endif
34128/* We use char because int might match the return type of a gcc2
34129 builtin and then its argument prototype would still apply. */
34130char dlopen ();
34131int
34132main ()
34133{
34134dlopen ();
34135 ;
34136 return 0;
34137}
34138_ACEOF
34139rm -f conftest.$ac_objext conftest$ac_exeext
34140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34141 (eval $ac_link) 2>conftest.er1
a848cd7e 34142 ac_status=$?
ac1cb8d3
VS
34143 grep -v '^ *+' conftest.er1 >conftest.err
34144 rm -f conftest.er1
34145 cat conftest.err >&5
a848cd7e
SC
34146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34147 (exit $ac_status); } &&
04840eaa
VS
34148 { ac_try='test -z "$ac_c_werror_flag"
34149 || test ! -s conftest.err'
ac1cb8d3
VS
34150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34151 (eval $ac_try) 2>&5
34152 ac_status=$?
34153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34154 (exit $ac_status); }; } &&
34155 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34157 (eval $ac_try) 2>&5
34158 ac_status=$?
34159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34160 (exit $ac_status); }; }; then
34161 ac_cv_lib_dl_dlopen=yes
34162else
34163 echo "$as_me: failed program was:" >&5
34164sed 's/^/| /' conftest.$ac_ext >&5
34165
34166ac_cv_lib_dl_dlopen=no
34167fi
ac1cb8d3
VS
34168rm -f conftest.err conftest.$ac_objext \
34169 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34170LIBS=$ac_check_lib_save_LIBS
34171fi
34172echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34173echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34174if test $ac_cv_lib_dl_dlopen = yes; then
34175
34176 cat >>confdefs.h <<\_ACEOF
34177#define HAVE_DLOPEN 1
34178_ACEOF
34179
34180 HAVE_DL_FUNCS=1
34181 DL_LINK=" -ldl$DL_LINK"
34182
34183else
34184
34185
34186for ac_func in shl_load
34187do
34188as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34189echo "$as_me:$LINENO: checking for $ac_func" >&5
34190echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34191if eval "test \"\${$as_ac_var+set}\" = set"; then
34192 echo $ECHO_N "(cached) $ECHO_C" >&6
34193else
34194 cat >conftest.$ac_ext <<_ACEOF
34195/* confdefs.h. */
34196_ACEOF
34197cat confdefs.h >>conftest.$ac_ext
34198cat >>conftest.$ac_ext <<_ACEOF
34199/* end confdefs.h. */
ac1cb8d3
VS
34200/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34202#define $ac_func innocuous_$ac_func
34203
a848cd7e
SC
34204/* System header to define __stub macros and hopefully few prototypes,
34205 which can conflict with char $ac_func (); below.
34206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34207 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34208
a848cd7e
SC
34209#ifdef __STDC__
34210# include <limits.h>
34211#else
34212# include <assert.h>
34213#endif
ac1cb8d3
VS
34214
34215#undef $ac_func
34216
a848cd7e
SC
34217/* Override any gcc2 internal prototype to avoid an error. */
34218#ifdef __cplusplus
34219extern "C"
34220{
34221#endif
34222/* We use char because int might match the return type of a gcc2
34223 builtin and then its argument prototype would still apply. */
34224char $ac_func ();
34225/* The GNU C library defines this for functions which it implements
34226 to always fail with ENOSYS. Some functions are actually named
34227 something starting with __ and the normal name is an alias. */
34228#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34229choke me
34230#else
34231char (*f) () = $ac_func;
34232#endif
34233#ifdef __cplusplus
34234}
34235#endif
34236
34237int
34238main ()
34239{
34240return f != $ac_func;
34241 ;
34242 return 0;
34243}
34244_ACEOF
34245rm -f conftest.$ac_objext conftest$ac_exeext
34246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34247 (eval $ac_link) 2>conftest.er1
a848cd7e 34248 ac_status=$?
ac1cb8d3
VS
34249 grep -v '^ *+' conftest.er1 >conftest.err
34250 rm -f conftest.er1
34251 cat conftest.err >&5
a848cd7e
SC
34252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34253 (exit $ac_status); } &&
04840eaa
VS
34254 { ac_try='test -z "$ac_c_werror_flag"
34255 || test ! -s conftest.err'
ac1cb8d3
VS
34256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34257 (eval $ac_try) 2>&5
34258 ac_status=$?
34259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34260 (exit $ac_status); }; } &&
34261 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34263 (eval $ac_try) 2>&5
34264 ac_status=$?
34265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34266 (exit $ac_status); }; }; then
34267 eval "$as_ac_var=yes"
34268else
34269 echo "$as_me: failed program was:" >&5
34270sed 's/^/| /' conftest.$ac_ext >&5
34271
34272eval "$as_ac_var=no"
34273fi
ac1cb8d3
VS
34274rm -f conftest.err conftest.$ac_objext \
34275 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34276fi
34277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34279if test `eval echo '${'$as_ac_var'}'` = yes; then
34280 cat >>confdefs.h <<_ACEOF
34281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34282_ACEOF
34283
34284 cat >>confdefs.h <<\_ACEOF
34285#define HAVE_SHL_LOAD 1
34286_ACEOF
34287
34288 HAVE_SHL_FUNCS=1
34289
34290else
34291
34292 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34293echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34294if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34295 echo $ECHO_N "(cached) $ECHO_C" >&6
34296else
34297 ac_check_lib_save_LIBS=$LIBS
34298LIBS="-lshl_load $LIBS"
34299cat >conftest.$ac_ext <<_ACEOF
34300/* confdefs.h. */
34301_ACEOF
34302cat confdefs.h >>conftest.$ac_ext
34303cat >>conftest.$ac_ext <<_ACEOF
34304/* end confdefs.h. */
34305
34306/* Override any gcc2 internal prototype to avoid an error. */
34307#ifdef __cplusplus
34308extern "C"
34309#endif
34310/* We use char because int might match the return type of a gcc2
34311 builtin and then its argument prototype would still apply. */
34312char dld ();
34313int
34314main ()
34315{
34316dld ();
34317 ;
34318 return 0;
34319}
34320_ACEOF
34321rm -f conftest.$ac_objext conftest$ac_exeext
34322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34323 (eval $ac_link) 2>conftest.er1
a848cd7e 34324 ac_status=$?
ac1cb8d3
VS
34325 grep -v '^ *+' conftest.er1 >conftest.err
34326 rm -f conftest.er1
34327 cat conftest.err >&5
a848cd7e
SC
34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34329 (exit $ac_status); } &&
04840eaa
VS
34330 { ac_try='test -z "$ac_c_werror_flag"
34331 || test ! -s conftest.err'
ac1cb8d3
VS
34332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34333 (eval $ac_try) 2>&5
34334 ac_status=$?
34335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34336 (exit $ac_status); }; } &&
34337 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34339 (eval $ac_try) 2>&5
34340 ac_status=$?
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); }; }; then
34343 ac_cv_lib_shl_load_dld=yes
34344else
34345 echo "$as_me: failed program was:" >&5
34346sed 's/^/| /' conftest.$ac_ext >&5
34347
34348ac_cv_lib_shl_load_dld=no
34349fi
ac1cb8d3
VS
34350rm -f conftest.err conftest.$ac_objext \
34351 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34352LIBS=$ac_check_lib_save_LIBS
34353fi
34354echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34355echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34356if test $ac_cv_lib_shl_load_dld = yes; then
34357
34358 HAVE_SHL_FUNCS=1
34359 DL_LINK=" -ldld$DL_LINK"
34360
34361fi
34362
34363
34364fi
34365done
34366
34367
34368fi
34369
34370
34371fi
34372done
34373
34374
34375 if test "$HAVE_DL_FUNCS" = 1; then
34376
34377for ac_func in dlerror
34378do
34379as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34380echo "$as_me:$LINENO: checking for $ac_func" >&5
34381echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34382if eval "test \"\${$as_ac_var+set}\" = set"; then
34383 echo $ECHO_N "(cached) $ECHO_C" >&6
34384else
34385 cat >conftest.$ac_ext <<_ACEOF
34386/* confdefs.h. */
34387_ACEOF
34388cat confdefs.h >>conftest.$ac_ext
34389cat >>conftest.$ac_ext <<_ACEOF
34390/* end confdefs.h. */
ac1cb8d3
VS
34391/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34393#define $ac_func innocuous_$ac_func
34394
a848cd7e
SC
34395/* System header to define __stub macros and hopefully few prototypes,
34396 which can conflict with char $ac_func (); below.
34397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34398 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34399
a848cd7e
SC
34400#ifdef __STDC__
34401# include <limits.h>
34402#else
34403# include <assert.h>
34404#endif
ac1cb8d3
VS
34405
34406#undef $ac_func
34407
a848cd7e
SC
34408/* Override any gcc2 internal prototype to avoid an error. */
34409#ifdef __cplusplus
34410extern "C"
34411{
34412#endif
34413/* We use char because int might match the return type of a gcc2
34414 builtin and then its argument prototype would still apply. */
34415char $ac_func ();
34416/* The GNU C library defines this for functions which it implements
34417 to always fail with ENOSYS. Some functions are actually named
34418 something starting with __ and the normal name is an alias. */
34419#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34420choke me
34421#else
34422char (*f) () = $ac_func;
34423#endif
34424#ifdef __cplusplus
34425}
34426#endif
34427
34428int
34429main ()
34430{
34431return f != $ac_func;
34432 ;
34433 return 0;
34434}
34435_ACEOF
34436rm -f conftest.$ac_objext conftest$ac_exeext
34437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34438 (eval $ac_link) 2>conftest.er1
a848cd7e 34439 ac_status=$?
ac1cb8d3
VS
34440 grep -v '^ *+' conftest.er1 >conftest.err
34441 rm -f conftest.er1
34442 cat conftest.err >&5
a848cd7e
SC
34443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); } &&
04840eaa
VS
34445 { ac_try='test -z "$ac_c_werror_flag"
34446 || test ! -s conftest.err'
ac1cb8d3
VS
34447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34448 (eval $ac_try) 2>&5
34449 ac_status=$?
34450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34451 (exit $ac_status); }; } &&
34452 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34454 (eval $ac_try) 2>&5
34455 ac_status=$?
34456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34457 (exit $ac_status); }; }; then
34458 eval "$as_ac_var=yes"
34459else
34460 echo "$as_me: failed program was:" >&5
34461sed 's/^/| /' conftest.$ac_ext >&5
34462
34463eval "$as_ac_var=no"
34464fi
ac1cb8d3
VS
34465rm -f conftest.err conftest.$ac_objext \
34466 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34467fi
34468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34470if test `eval echo '${'$as_ac_var'}'` = yes; then
34471 cat >>confdefs.h <<_ACEOF
34472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34473_ACEOF
34474 cat >>confdefs.h <<\_ACEOF
34475#define HAVE_DLERROR 1
34476_ACEOF
34477
34478else
34479
34480 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
34481echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34482if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34483 echo $ECHO_N "(cached) $ECHO_C" >&6
34484else
34485 ac_check_lib_save_LIBS=$LIBS
34486LIBS="-ldl $LIBS"
34487cat >conftest.$ac_ext <<_ACEOF
34488/* confdefs.h. */
34489_ACEOF
34490cat confdefs.h >>conftest.$ac_ext
34491cat >>conftest.$ac_ext <<_ACEOF
34492/* end confdefs.h. */
34493
34494/* Override any gcc2 internal prototype to avoid an error. */
34495#ifdef __cplusplus
34496extern "C"
34497#endif
34498/* We use char because int might match the return type of a gcc2
34499 builtin and then its argument prototype would still apply. */
34500char dlerror ();
34501int
34502main ()
34503{
34504dlerror ();
34505 ;
34506 return 0;
34507}
34508_ACEOF
34509rm -f conftest.$ac_objext conftest$ac_exeext
34510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34511 (eval $ac_link) 2>conftest.er1
a848cd7e 34512 ac_status=$?
ac1cb8d3
VS
34513 grep -v '^ *+' conftest.er1 >conftest.err
34514 rm -f conftest.er1
34515 cat conftest.err >&5
a848cd7e
SC
34516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517 (exit $ac_status); } &&
04840eaa
VS
34518 { ac_try='test -z "$ac_c_werror_flag"
34519 || test ! -s conftest.err'
ac1cb8d3
VS
34520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34521 (eval $ac_try) 2>&5
34522 ac_status=$?
34523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34524 (exit $ac_status); }; } &&
34525 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34527 (eval $ac_try) 2>&5
34528 ac_status=$?
34529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34530 (exit $ac_status); }; }; then
34531 ac_cv_lib_dl_dlerror=yes
34532else
34533 echo "$as_me: failed program was:" >&5
34534sed 's/^/| /' conftest.$ac_ext >&5
34535
34536ac_cv_lib_dl_dlerror=no
34537fi
ac1cb8d3
VS
34538rm -f conftest.err conftest.$ac_objext \
34539 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34540LIBS=$ac_check_lib_save_LIBS
34541fi
34542echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34543echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34544if test $ac_cv_lib_dl_dlerror = yes; then
34545 cat >>confdefs.h <<\_ACEOF
34546#define HAVE_DLERROR 1
34547_ACEOF
34548
34549fi
34550
34551
34552
34553fi
34554done
34555
34556 fi
34557 fi
34558
34559 if test "$HAVE_DL_FUNCS" = 0; then
34560 if test "$HAVE_SHL_FUNCS" = 0; then
34561 if test "$USE_UNIX" = 1; then
34562 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34563echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34564 wxUSE_DYNAMIC_LOADER=no
34565 wxUSE_DYNLIB_CLASS=no
34566 else
34567 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34568echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34569 fi
34570 fi
34571 fi
34572 fi
34573fi
34574
34575if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34576 cat >>confdefs.h <<\_ACEOF
34577#define wxUSE_DYNAMIC_LOADER 1
34578_ACEOF
34579
34580fi
34581if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34582 cat >>confdefs.h <<\_ACEOF
34583#define wxUSE_DYNLIB_CLASS 1
34584_ACEOF
34585
34586fi
34587
34588
34589
34590if test "$wxUSE_PLUGINS" = "yes" ; then
34591 if test "$wxUSE_SHARED" = "no" ; then
34592 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34593echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34594 wxUSE_PLUGINS=no
34595 fi
34596 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34597 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34598echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34599 wxUSE_PLUGINS=no
34600 fi
34601 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34602 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34603echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34604 wxUSE_PLUGINS=no
34605 fi
34606 if test "$wxUSE_PLUGINS" = "yes" ; then
34607 cat >>confdefs.h <<\_ACEOF
34608#define wxUSE_PLUGINS 1
34609_ACEOF
34610
34611 fi
34612fi
34613
34614
34615if test "$wxUSE_STL" = "yes"; then
34616 cat >>confdefs.h <<\_ACEOF
34617#define wxUSE_STL 1
34618_ACEOF
34619
34620fi
34621
34622if test "$wxUSE_APPLE_IEEE" = "yes"; then
34623 cat >>confdefs.h <<\_ACEOF
34624#define wxUSE_APPLE_IEEE 1
34625_ACEOF
34626
34627fi
34628
34629if test "$wxUSE_TIMER" = "yes"; then
34630 cat >>confdefs.h <<\_ACEOF
34631#define wxUSE_TIMER 1
34632_ACEOF
34633
34634fi
34635
34636WITH_PLUGIN_SDL=0
34637if test "$wxUSE_SOUND" = "yes"; then
34638 if test "$USE_UNIX" = "1" ; then
34639
34640for ac_header in sys/soundcard.h
34641do
34642as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34643if eval "test \"\${$as_ac_Header+set}\" = set"; then
34644 echo "$as_me:$LINENO: checking for $ac_header" >&5
34645echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34646if eval "test \"\${$as_ac_Header+set}\" = set"; then
34647 echo $ECHO_N "(cached) $ECHO_C" >&6
34648fi
34649echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34650echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34651else
34652 # Is the header compilable?
34653echo "$as_me:$LINENO: checking $ac_header usability" >&5
34654echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34655cat >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$ac_includes_default
34662#include <$ac_header>
34663_ACEOF
34664rm -f conftest.$ac_objext
34665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34666 (eval $ac_compile) 2>conftest.er1
a848cd7e 34667 ac_status=$?
ac1cb8d3
VS
34668 grep -v '^ *+' conftest.er1 >conftest.err
34669 rm -f conftest.er1
34670 cat conftest.err >&5
a848cd7e
SC
34671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34672 (exit $ac_status); } &&
04840eaa
VS
34673 { ac_try='test -z "$ac_c_werror_flag"
34674 || test ! -s conftest.err'
ac1cb8d3
VS
34675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34676 (eval $ac_try) 2>&5
34677 ac_status=$?
34678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679 (exit $ac_status); }; } &&
34680 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34682 (eval $ac_try) 2>&5
34683 ac_status=$?
34684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34685 (exit $ac_status); }; }; then
34686 ac_header_compiler=yes
34687else
34688 echo "$as_me: failed program was:" >&5
34689sed 's/^/| /' conftest.$ac_ext >&5
34690
34691ac_header_compiler=no
34692fi
ac1cb8d3 34693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34694echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34695echo "${ECHO_T}$ac_header_compiler" >&6
34696
34697# Is the header present?
34698echo "$as_me:$LINENO: checking $ac_header presence" >&5
34699echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34700cat >conftest.$ac_ext <<_ACEOF
34701/* confdefs.h. */
34702_ACEOF
34703cat confdefs.h >>conftest.$ac_ext
34704cat >>conftest.$ac_ext <<_ACEOF
34705/* end confdefs.h. */
34706#include <$ac_header>
34707_ACEOF
34708if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34710 ac_status=$?
34711 grep -v '^ *+' conftest.er1 >conftest.err
34712 rm -f conftest.er1
34713 cat conftest.err >&5
34714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34715 (exit $ac_status); } >/dev/null; then
34716 if test -s conftest.err; then
34717 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 34718 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
34719 else
34720 ac_cpp_err=
34721 fi
34722else
34723 ac_cpp_err=yes
34724fi
34725if test -z "$ac_cpp_err"; then
34726 ac_header_preproc=yes
34727else
34728 echo "$as_me: failed program was:" >&5
34729sed 's/^/| /' conftest.$ac_ext >&5
34730
34731 ac_header_preproc=no
34732fi
34733rm -f conftest.err conftest.$ac_ext
34734echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34735echo "${ECHO_T}$ac_header_preproc" >&6
34736
34737# So? What about this header?
ac1cb8d3
VS
34738case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34739 yes:no: )
a848cd7e
SC
34740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34741echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
34742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34743echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34744 ac_header_preproc=yes
a848cd7e 34745 ;;
ac1cb8d3 34746 no:yes:* )
a848cd7e
SC
34747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34748echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
34749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34750echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34752echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34754echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
34755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34756echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
34757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34758echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
34759 (
34760 cat <<\_ASBOX
ac1cb8d3
VS
34761## ----------------------------------------- ##
34762## Report this to wx-dev@lists.wxwidgets.org ##
34763## ----------------------------------------- ##
a848cd7e
SC
34764_ASBOX
34765 ) |
34766 sed "s/^/$as_me: WARNING: /" >&2
34767 ;;
34768esac
34769echo "$as_me:$LINENO: checking for $ac_header" >&5
34770echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34771if eval "test \"\${$as_ac_Header+set}\" = set"; then
34772 echo $ECHO_N "(cached) $ECHO_C" >&6
34773else
ac1cb8d3 34774 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
34775fi
34776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34778
34779fi
34780if test `eval echo '${'$as_ac_Header'}'` = yes; then
34781 cat >>confdefs.h <<_ACEOF
34782#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34783_ACEOF
34784
34785fi
34786
34787done
34788
34789
34790 if test "$wxUSE_LIBSDL" != "no"; then
34791
34792# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34793if test "${with_sdl_prefix+set}" = set; then
34794 withval="$with_sdl_prefix"
34795 sdl_prefix="$withval"
34796else
34797 sdl_prefix=""
34798fi;
34799
34800# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34801if test "${with_sdl_exec_prefix+set}" = set; then
34802 withval="$with_sdl_exec_prefix"
34803 sdl_exec_prefix="$withval"
34804else
34805 sdl_exec_prefix=""
34806fi;
34807# Check whether --enable-sdltest or --disable-sdltest was given.
34808if test "${enable_sdltest+set}" = set; then
34809 enableval="$enable_sdltest"
34810
34811else
34812 enable_sdltest=yes
34813fi;
34814
34815 if test x$sdl_exec_prefix != x ; then
34816 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34817 if test x${SDL_CONFIG+set} != xset ; then
34818 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34819 fi
34820 fi
34821 if test x$sdl_prefix != x ; then
34822 sdl_args="$sdl_args --prefix=$sdl_prefix"
34823 if test x${SDL_CONFIG+set} != xset ; then
34824 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34825 fi
34826 fi
34827
34828
34829 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34830 # Extract the first word of "sdl-config", so it can be a program name with args.
34831set dummy sdl-config; ac_word=$2
34832echo "$as_me:$LINENO: checking for $ac_word" >&5
34833echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34834if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34835 echo $ECHO_N "(cached) $ECHO_C" >&6
34836else
34837 case $SDL_CONFIG in
34838 [\\/]* | ?:[\\/]*)
34839 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34840 ;;
34841 *)
34842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34843for as_dir in $PATH
34844do
34845 IFS=$as_save_IFS
34846 test -z "$as_dir" && as_dir=.
34847 for ac_exec_ext in '' $ac_executable_extensions; do
34848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34849 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34851 break 2
34852 fi
34853done
34854done
34855
34856 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34857 ;;
34858esac
34859fi
34860SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34861
34862if test -n "$SDL_CONFIG"; then
34863 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34864echo "${ECHO_T}$SDL_CONFIG" >&6
34865else
34866 echo "$as_me:$LINENO: result: no" >&5
34867echo "${ECHO_T}no" >&6
34868fi
34869
34870 min_sdl_version=1.2.0
34871 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34872echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34873 no_sdl=""
34874 if test "$SDL_CONFIG" = "no" ; then
34875 no_sdl=yes
34876 else
34877 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34878 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34879
34880 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34881 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34882 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34883 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34884 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34885 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34886 if test "x$enable_sdltest" = "xyes" ; then
34887 ac_save_CFLAGS="$CFLAGS"
34888 ac_save_LIBS="$LIBS"
34889 CFLAGS="$CFLAGS $SDL_CFLAGS"
34890 LIBS="$LIBS $SDL_LIBS"
34891 rm -f conf.sdltest
34892 if test "$cross_compiling" = yes; then
34893 echo $ac_n "cross compiling; assumed OK... $ac_c"
34894else
34895 cat >conftest.$ac_ext <<_ACEOF
34896/* confdefs.h. */
34897_ACEOF
34898cat confdefs.h >>conftest.$ac_ext
34899cat >>conftest.$ac_ext <<_ACEOF
34900/* end confdefs.h. */
34901
34902#include <stdio.h>
34903#include <stdlib.h>
34904#include <string.h>
34905#include "SDL.h"
34906
34907char*
34908my_strdup (char *str)
34909{
34910 char *new_str;
34911
34912 if (str)
34913 {
34914 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34915 strcpy (new_str, str);
34916 }
34917 else
34918 new_str = NULL;
34919
34920 return new_str;
34921}
34922
34923int main (int argc, char *argv[])
34924{
34925 int major, minor, micro;
34926 char *tmp_version;
34927
34928 /* This hangs on some systems (?)
34929 system ("touch conf.sdltest");
34930 */
34931 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34932
34933 /* HP/UX 9 (%@#!) writes to sscanf strings */
34934 tmp_version = my_strdup("$min_sdl_version");
34935 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34936 printf("%s, bad version string\n", "$min_sdl_version");
34937 exit(1);
34938 }
34939
34940 if (($sdl_major_version > major) ||
34941 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34942 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34943 {
34944 return 0;
34945 }
34946 else
34947 {
34948 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34949 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34950 printf("*** best to upgrade to the required version.\n");
34951 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34952 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34953 printf("*** config.cache before re-running configure\n");
34954 return 1;
34955 }
34956}
34957
34958
34959_ACEOF
34960rm -f conftest$ac_exeext
34961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34962 (eval $ac_link) 2>&5
34963 ac_status=$?
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34967 (eval $ac_try) 2>&5
34968 ac_status=$?
34969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34970 (exit $ac_status); }; }; then
34971 :
34972else
34973 echo "$as_me: program exited with status $ac_status" >&5
34974echo "$as_me: failed program was:" >&5
34975sed 's/^/| /' conftest.$ac_ext >&5
34976
34977( exit $ac_status )
34978no_sdl=yes
34979fi
ac1cb8d3 34980rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34981fi
34982 CFLAGS="$ac_save_CFLAGS"
34983 LIBS="$ac_save_LIBS"
34984 fi
34985 fi
34986 if test "x$no_sdl" = x ; then
34987 echo "$as_me:$LINENO: result: yes" >&5
34988echo "${ECHO_T}yes" >&6
34989
34990 EXTRALIBS_SDL="$SDL_LIBS"
34991 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34992 cat >>confdefs.h <<\_ACEOF
34993#define wxUSE_LIBSDL 1
34994_ACEOF
34995
34996
34997 else
34998 echo "$as_me:$LINENO: result: no" >&5
34999echo "${ECHO_T}no" >&6
35000 if test "$SDL_CONFIG" = "no" ; then
35001 echo "*** The sdl-config script installed by SDL could not be found"
35002 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
35003 echo "*** your path, or set the SDL_CONFIG environment variable to the"
35004 echo "*** full path to sdl-config."
35005 else
35006 if test -f conf.sdltest ; then
35007 :
35008 else
35009 echo "*** Could not run SDL test program, checking why..."
35010 CFLAGS="$CFLAGS $SDL_CFLAGS"
35011 LIBS="$LIBS $SDL_LIBS"
35012 cat >conftest.$ac_ext <<_ACEOF
35013/* confdefs.h. */
35014_ACEOF
35015cat confdefs.h >>conftest.$ac_ext
35016cat >>conftest.$ac_ext <<_ACEOF
35017/* end confdefs.h. */
35018
35019#include <stdio.h>
35020#include "SDL.h"
35021
35022int main(int argc, char *argv[])
35023{ return 0; }
35024#undef main
35025#define main K_and_R_C_main
35026
35027int
35028main ()
35029{
35030 return 0;
35031 ;
35032 return 0;
35033}
35034_ACEOF
35035rm -f conftest.$ac_objext conftest$ac_exeext
35036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35037 (eval $ac_link) 2>conftest.er1
a848cd7e 35038 ac_status=$?
ac1cb8d3
VS
35039 grep -v '^ *+' conftest.er1 >conftest.err
35040 rm -f conftest.er1
35041 cat conftest.err >&5
a848cd7e
SC
35042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35043 (exit $ac_status); } &&
04840eaa
VS
35044 { ac_try='test -z "$ac_c_werror_flag"
35045 || test ! -s conftest.err'
ac1cb8d3
VS
35046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35047 (eval $ac_try) 2>&5
35048 ac_status=$?
35049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050 (exit $ac_status); }; } &&
35051 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35053 (eval $ac_try) 2>&5
35054 ac_status=$?
35055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35056 (exit $ac_status); }; }; then
35057 echo "*** The test program compiled, but did not run. This usually means"
35058 echo "*** that the run-time linker is not finding SDL or finding the wrong"
35059 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
35060 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
35061 echo "*** to the installed location Also, make sure you have run ldconfig if that"
35062 echo "*** is required on your system"
35063 echo "***"
35064 echo "*** If you have an old version installed, it is best to remove it, although"
35065 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
35066else
35067 echo "$as_me: failed program was:" >&5
35068sed 's/^/| /' conftest.$ac_ext >&5
35069
35070 echo "*** The test program failed to compile or link. See the file config.log for the"
35071 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
35072 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
35073 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
35074fi
ac1cb8d3
VS
35075rm -f conftest.err conftest.$ac_objext \
35076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35077 CFLAGS="$ac_save_CFLAGS"
35078 LIBS="$ac_save_LIBS"
35079 fi
35080 fi
35081 SDL_CFLAGS=""
35082 SDL_LIBS=""
35083 wxUSE_LIBSDL="no"
35084 fi
35085
35086
35087 rm -f conf.sdltest
35088
35089 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
35090 WITH_PLUGIN_SDL=1
35091 fi
35092 fi
35093 fi
35094
35095 cat >>confdefs.h <<\_ACEOF
35096#define wxUSE_SOUND 1
35097_ACEOF
35098
35099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
35100fi
35101
d1c38808
VZ
35102if test "$WXGTK20" = 1; then
35103 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35104 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
35105
35106
35107 succeeded=no
35108
35109 if test -z "$PKG_CONFIG"; then
35110 # Extract the first word of "pkg-config", so it can be a program name with args.
35111set dummy pkg-config; ac_word=$2
35112echo "$as_me:$LINENO: checking for $ac_word" >&5
35113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35114if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
35115 echo $ECHO_N "(cached) $ECHO_C" >&6
35116else
35117 case $PKG_CONFIG in
35118 [\\/]* | ?:[\\/]*)
35119 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
35120 ;;
35121 *)
35122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35123for as_dir in $PATH
35124do
35125 IFS=$as_save_IFS
35126 test -z "$as_dir" && as_dir=.
35127 for ac_exec_ext in '' $ac_executable_extensions; do
35128 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35129 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35131 break 2
35132 fi
35133done
35134done
35135
35136 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
35137 ;;
35138esac
35139fi
35140PKG_CONFIG=$ac_cv_path_PKG_CONFIG
35141
35142if test -n "$PKG_CONFIG"; then
35143 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
35144echo "${ECHO_T}$PKG_CONFIG" >&6
35145else
35146 echo "$as_me:$LINENO: result: no" >&5
35147echo "${ECHO_T}no" >&6
35148fi
35149
35150 fi
35151
35152 if test "$PKG_CONFIG" = "no" ; then
35153 echo "*** The pkg-config script could not be found. Make sure it is"
35154 echo "*** in your path, or set the PKG_CONFIG environment variable"
35155 echo "*** to the full path to pkg-config."
35156 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
35157 else
35158 PKG_CONFIG_MIN_VERSION=0.9.0
35159 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
35160 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
35161echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 35162
ffa762ff 35163 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
35164 echo "$as_me:$LINENO: result: yes" >&5
35165echo "${ECHO_T}yes" >&6
35166 succeeded=yes
35167
35168 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
35169echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 35170 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35171 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
35172echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
35173
35174 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
35175echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 35176 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35177 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
35178echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
35179 else
35180 LIBGNOMEPRINTUI_CFLAGS=""
35181 LIBGNOMEPRINTUI_LIBS=""
35182 ## If we have a custom action on failure, don't print errors, but
35183 ## do set a variable so people can do so.
ffa762ff 35184 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
35185
35186 fi
35187
35188
35189
35190 else
35191 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
35192 echo "*** See http://www.freedesktop.org/software/pkgconfig"
35193 fi
35194 fi
35195
35196 if test $succeeded = yes; then
35197
d1c38808
VZ
35198 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
35199 cat >>confdefs.h <<\_ACEOF
35200#define wxUSE_LIBGNOMEPRINT 1
35201_ACEOF
35202
35203
35204 else
35205
35206 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
35207echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
35208 wxUSE_LIBGNOMEPRINT="no"
35209
35210
35211 fi
35212
35213 fi
35214 fi
35215fi
35216
35217
a848cd7e
SC
35218if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
35219 cat >>confdefs.h <<\_ACEOF
35220#define wxUSE_CMDLINE_PARSER 1
35221_ACEOF
35222
35223fi
35224
35225if test "$wxUSE_STOPWATCH" = "yes"; then
35226 cat >>confdefs.h <<\_ACEOF
35227#define wxUSE_STOPWATCH 1
35228_ACEOF
35229
35230fi
35231
35232if test "$wxUSE_DATETIME" = "yes"; then
35233 cat >>confdefs.h <<\_ACEOF
35234#define wxUSE_DATETIME 1
35235_ACEOF
35236
35237fi
35238
35239if test "$wxUSE_FILE" = "yes"; then
35240 cat >>confdefs.h <<\_ACEOF
35241#define wxUSE_FILE 1
35242_ACEOF
35243
35244fi
35245
35246if test "$wxUSE_FFILE" = "yes"; then
35247 cat >>confdefs.h <<\_ACEOF
35248#define wxUSE_FFILE 1
35249_ACEOF
35250
35251fi
35252
35253if test "$wxUSE_FILESYSTEM" = "yes"; then
35254 cat >>confdefs.h <<\_ACEOF
35255#define wxUSE_FILESYSTEM 1
35256_ACEOF
35257
35258fi
35259
35260if test "$wxUSE_FS_ZIP" = "yes"; then
35261 cat >>confdefs.h <<\_ACEOF
35262#define wxUSE_FS_ZIP 1
35263_ACEOF
35264
35265fi
35266
35267if test "$wxUSE_ZIPSTREAM" = "yes"; then
35268 cat >>confdefs.h <<\_ACEOF
35269#define wxUSE_ZIPSTREAM 1
35270_ACEOF
35271
35272fi
35273
a848cd7e
SC
35274if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
35275 cat >>confdefs.h <<\_ACEOF
35276#define wxUSE_ON_FATAL_EXCEPTION 1
35277_ACEOF
35278
35279fi
35280
eaff0f0d
VZ
35281if test "$wxUSE_STACKWALKER" = "yes"; then
35282 cat >>confdefs.h <<\_ACEOF
35283#define wxUSE_STACKWALKER 1
35284_ACEOF
35285
35286fi
35287
a848cd7e
SC
35288if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
35289 cat >>confdefs.h <<\_ACEOF
35290#define wxUSE_SNGLINST_CHECKER 1
35291_ACEOF
35292
35293fi
35294
35295if test "$wxUSE_BUSYINFO" = "yes"; then
35296 cat >>confdefs.h <<\_ACEOF
35297#define wxUSE_BUSYINFO 1
35298_ACEOF
35299
35300fi
35301
35302if test "$wxUSE_STD_IOSTREAM" = "yes"; then
35303 cat >>confdefs.h <<\_ACEOF
35304#define wxUSE_STD_IOSTREAM 1
35305_ACEOF
35306
35307fi
35308
35309if test "$wxUSE_TEXTBUFFER" = "yes"; then
35310 cat >>confdefs.h <<\_ACEOF
35311#define wxUSE_TEXTBUFFER 1
35312_ACEOF
35313
35314fi
35315
35316if test "$wxUSE_TEXTFILE" = "yes"; then
35317 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
35318 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
35319echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
35320 else
35321 cat >>confdefs.h <<\_ACEOF
35322#define wxUSE_TEXTFILE 1
35323_ACEOF
35324
35325 fi
35326fi
35327
35328if test "$wxUSE_CONFIG" = "yes" ; then
35329 if test "$wxUSE_TEXTFILE" != "yes"; then
35330 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
35331echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
35332 else
35333 cat >>confdefs.h <<\_ACEOF
35334#define wxUSE_CONFIG 1
35335_ACEOF
35336
35337 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
35338 fi
35339fi
35340
35341if test "$wxUSE_INTL" = "yes" ; then
35342 if test "$wxUSE_FILE" != "yes"; then
35343 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
35344echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
35345 else
35346 cat >>confdefs.h <<\_ACEOF
35347#define wxUSE_INTL 1
35348_ACEOF
35349
35350 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
35351 GUIDIST="$GUIDIST INTL_DIST"
35352 fi
35353fi
35354
35355if test "$wxUSE_LOG" = "yes"; then
35356 cat >>confdefs.h <<\_ACEOF
35357#define wxUSE_LOG 1
35358_ACEOF
35359
35360
35361 if test "$wxUSE_LOGGUI" = "yes"; then
35362 cat >>confdefs.h <<\_ACEOF
35363#define wxUSE_LOGGUI 1
35364_ACEOF
35365
35366 fi
35367
35368 if test "$wxUSE_LOGWINDOW" = "yes"; then
35369 cat >>confdefs.h <<\_ACEOF
35370#define wxUSE_LOGWINDOW 1
35371_ACEOF
35372
35373 fi
35374
35375 if test "$wxUSE_LOGDIALOG" = "yes"; then
35376 cat >>confdefs.h <<\_ACEOF
35377#define wxUSE_LOG_DIALOG 1
35378_ACEOF
35379
35380 fi
35381fi
35382
35383if test "$wxUSE_LONGLONG" = "yes"; then
35384 cat >>confdefs.h <<\_ACEOF
35385#define wxUSE_LONGLONG 1
35386_ACEOF
35387
35388fi
35389
35390if test "$wxUSE_GEOMETRY" = "yes"; then
35391 cat >>confdefs.h <<\_ACEOF
35392#define wxUSE_GEOMETRY 1
35393_ACEOF
35394
35395fi
35396
35397if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
35398 cat >>confdefs.h <<\_ACEOF
35399#define wxUSE_DIALUP_MANAGER 1
35400_ACEOF
35401
35402 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
35403fi
35404
35405if test "$wxUSE_STREAMS" = "yes" ; then
35406 cat >>confdefs.h <<\_ACEOF
35407#define wxUSE_STREAMS 1
35408_ACEOF
35409
35410fi
35411
35412
35413if test "$wxUSE_DATETIME" = "yes"; then
35414
35415for ac_func in strptime
35416do
35417as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35418echo "$as_me:$LINENO: checking for $ac_func" >&5
35419echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35420if eval "test \"\${$as_ac_var+set}\" = set"; then
35421 echo $ECHO_N "(cached) $ECHO_C" >&6
35422else
35423 cat >conftest.$ac_ext <<_ACEOF
35424/* confdefs.h. */
35425_ACEOF
35426cat confdefs.h >>conftest.$ac_ext
35427cat >>conftest.$ac_ext <<_ACEOF
35428/* end confdefs.h. */
ac1cb8d3
VS
35429/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35431#define $ac_func innocuous_$ac_func
35432
a848cd7e
SC
35433/* System header to define __stub macros and hopefully few prototypes,
35434 which can conflict with char $ac_func (); below.
35435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35436 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35437
a848cd7e
SC
35438#ifdef __STDC__
35439# include <limits.h>
35440#else
35441# include <assert.h>
35442#endif
ac1cb8d3
VS
35443
35444#undef $ac_func
35445
a848cd7e
SC
35446/* Override any gcc2 internal prototype to avoid an error. */
35447#ifdef __cplusplus
35448extern "C"
35449{
35450#endif
35451/* We use char because int might match the return type of a gcc2
35452 builtin and then its argument prototype would still apply. */
35453char $ac_func ();
35454/* The GNU C library defines this for functions which it implements
35455 to always fail with ENOSYS. Some functions are actually named
35456 something starting with __ and the normal name is an alias. */
35457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35458choke me
35459#else
35460char (*f) () = $ac_func;
35461#endif
35462#ifdef __cplusplus
35463}
35464#endif
35465
35466int
35467main ()
35468{
35469return f != $ac_func;
35470 ;
35471 return 0;
35472}
35473_ACEOF
35474rm -f conftest.$ac_objext conftest$ac_exeext
35475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35476 (eval $ac_link) 2>conftest.er1
a848cd7e 35477 ac_status=$?
ac1cb8d3
VS
35478 grep -v '^ *+' conftest.er1 >conftest.err
35479 rm -f conftest.er1
35480 cat conftest.err >&5
a848cd7e
SC
35481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35482 (exit $ac_status); } &&
04840eaa
VS
35483 { ac_try='test -z "$ac_c_werror_flag"
35484 || test ! -s conftest.err'
ac1cb8d3
VS
35485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35486 (eval $ac_try) 2>&5
35487 ac_status=$?
35488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35489 (exit $ac_status); }; } &&
35490 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35492 (eval $ac_try) 2>&5
35493 ac_status=$?
35494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35495 (exit $ac_status); }; }; then
35496 eval "$as_ac_var=yes"
35497else
35498 echo "$as_me: failed program was:" >&5
35499sed 's/^/| /' conftest.$ac_ext >&5
35500
35501eval "$as_ac_var=no"
35502fi
ac1cb8d3
VS
35503rm -f conftest.err conftest.$ac_objext \
35504 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35505fi
35506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35507echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35508if test `eval echo '${'$as_ac_var'}'` = yes; then
35509 cat >>confdefs.h <<_ACEOF
35510#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35511_ACEOF
35512
35513fi
35514done
35515
35516
35517 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
35518echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
35519if test "${wx_cv_var_timezone+set}" = set; then
35520 echo $ECHO_N "(cached) $ECHO_C" >&6
35521else
35522
35523 cat >conftest.$ac_ext <<_ACEOF
35524/* confdefs.h. */
35525_ACEOF
35526cat confdefs.h >>conftest.$ac_ext
35527cat >>conftest.$ac_ext <<_ACEOF
35528/* end confdefs.h. */
35529
35530 #include <time.h>
35531
35532int
35533main ()
35534{
35535
35536 int tz;
35537 tz = timezone;
35538
35539 ;
35540 return 0;
35541}
35542_ACEOF
35543rm -f conftest.$ac_objext
35544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35545 (eval $ac_compile) 2>conftest.er1
a848cd7e 35546 ac_status=$?
ac1cb8d3
VS
35547 grep -v '^ *+' conftest.er1 >conftest.err
35548 rm -f conftest.er1
35549 cat conftest.err >&5
a848cd7e
SC
35550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35551 (exit $ac_status); } &&
04840eaa
VS
35552 { ac_try='test -z "$ac_c_werror_flag"
35553 || test ! -s conftest.err'
ac1cb8d3
VS
35554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35555 (eval $ac_try) 2>&5
35556 ac_status=$?
35557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35558 (exit $ac_status); }; } &&
35559 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35561 (eval $ac_try) 2>&5
35562 ac_status=$?
35563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35564 (exit $ac_status); }; }; then
35565
35566 wx_cv_var_timezone=timezone
35567
35568else
35569 echo "$as_me: failed program was:" >&5
35570sed 's/^/| /' conftest.$ac_ext >&5
35571
35572
35573 cat >conftest.$ac_ext <<_ACEOF
35574/* confdefs.h. */
35575_ACEOF
35576cat confdefs.h >>conftest.$ac_ext
35577cat >>conftest.$ac_ext <<_ACEOF
35578/* end confdefs.h. */
35579
35580 #include <time.h>
35581
35582int
35583main ()
35584{
35585
35586 int tz;
35587 tz = _timezone;
35588
35589 ;
35590 return 0;
35591}
35592_ACEOF
35593rm -f conftest.$ac_objext
35594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35595 (eval $ac_compile) 2>conftest.er1
a848cd7e 35596 ac_status=$?
ac1cb8d3
VS
35597 grep -v '^ *+' conftest.er1 >conftest.err
35598 rm -f conftest.er1
35599 cat conftest.err >&5
a848cd7e
SC
35600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35601 (exit $ac_status); } &&
04840eaa
VS
35602 { ac_try='test -z "$ac_c_werror_flag"
35603 || test ! -s conftest.err'
ac1cb8d3
VS
35604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35605 (eval $ac_try) 2>&5
35606 ac_status=$?
35607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35608 (exit $ac_status); }; } &&
35609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35611 (eval $ac_try) 2>&5
35612 ac_status=$?
35613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35614 (exit $ac_status); }; }; then
35615
35616 wx_cv_var_timezone=_timezone
35617
35618else
35619 echo "$as_me: failed program was:" >&5
35620sed 's/^/| /' conftest.$ac_ext >&5
35621
35622
35623 cat >conftest.$ac_ext <<_ACEOF
35624/* confdefs.h. */
35625_ACEOF
35626cat confdefs.h >>conftest.$ac_ext
35627cat >>conftest.$ac_ext <<_ACEOF
35628/* end confdefs.h. */
35629
35630 #include <time.h>
35631
35632int
35633main ()
35634{
35635
35636 int tz;
35637 tz = __timezone;
35638
35639 ;
35640 return 0;
35641}
35642_ACEOF
35643rm -f conftest.$ac_objext
35644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35645 (eval $ac_compile) 2>conftest.er1
a848cd7e 35646 ac_status=$?
ac1cb8d3
VS
35647 grep -v '^ *+' conftest.er1 >conftest.err
35648 rm -f conftest.er1
35649 cat conftest.err >&5
a848cd7e
SC
35650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35651 (exit $ac_status); } &&
04840eaa
VS
35652 { ac_try='test -z "$ac_c_werror_flag"
35653 || test ! -s conftest.err'
ac1cb8d3
VS
35654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35655 (eval $ac_try) 2>&5
35656 ac_status=$?
35657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658 (exit $ac_status); }; } &&
35659 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35661 (eval $ac_try) 2>&5
35662 ac_status=$?
35663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35664 (exit $ac_status); }; }; then
35665
35666 wx_cv_var_timezone=__timezone
35667
35668else
35669 echo "$as_me: failed program was:" >&5
35670sed 's/^/| /' conftest.$ac_ext >&5
35671
35672
35673 if test "$USE_DOS" = 0 ; then
35674 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35675echo "$as_me: WARNING: no timezone variable" >&2;}
35676 fi
35677
35678
35679fi
ac1cb8d3 35680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35681
35682
35683fi
ac1cb8d3 35684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35685
35686
35687fi
ac1cb8d3 35688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35689
35690
35691fi
35692echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35693echo "${ECHO_T}$wx_cv_var_timezone" >&6
35694
35695 if test "x$wx_cv_var_timezone" != x ; then
35696 cat >>confdefs.h <<_ACEOF
35697#define WX_TIMEZONE $wx_cv_var_timezone
35698_ACEOF
35699
35700 fi
35701
35702
35703for ac_func in localtime
35704do
35705as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35706echo "$as_me:$LINENO: checking for $ac_func" >&5
35707echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35708if eval "test \"\${$as_ac_var+set}\" = set"; then
35709 echo $ECHO_N "(cached) $ECHO_C" >&6
35710else
35711 cat >conftest.$ac_ext <<_ACEOF
35712/* confdefs.h. */
35713_ACEOF
35714cat confdefs.h >>conftest.$ac_ext
35715cat >>conftest.$ac_ext <<_ACEOF
35716/* end confdefs.h. */
ac1cb8d3
VS
35717/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35719#define $ac_func innocuous_$ac_func
35720
a848cd7e
SC
35721/* System header to define __stub macros and hopefully few prototypes,
35722 which can conflict with char $ac_func (); below.
35723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35724 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35725
a848cd7e
SC
35726#ifdef __STDC__
35727# include <limits.h>
35728#else
35729# include <assert.h>
35730#endif
ac1cb8d3
VS
35731
35732#undef $ac_func
35733
a848cd7e
SC
35734/* Override any gcc2 internal prototype to avoid an error. */
35735#ifdef __cplusplus
35736extern "C"
35737{
35738#endif
35739/* We use char because int might match the return type of a gcc2
35740 builtin and then its argument prototype would still apply. */
35741char $ac_func ();
35742/* The GNU C library defines this for functions which it implements
35743 to always fail with ENOSYS. Some functions are actually named
35744 something starting with __ and the normal name is an alias. */
35745#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35746choke me
35747#else
35748char (*f) () = $ac_func;
35749#endif
35750#ifdef __cplusplus
35751}
35752#endif
35753
35754int
35755main ()
35756{
35757return f != $ac_func;
35758 ;
35759 return 0;
35760}
35761_ACEOF
35762rm -f conftest.$ac_objext conftest$ac_exeext
35763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35764 (eval $ac_link) 2>conftest.er1
a848cd7e 35765 ac_status=$?
ac1cb8d3
VS
35766 grep -v '^ *+' conftest.er1 >conftest.err
35767 rm -f conftest.er1
35768 cat conftest.err >&5
a848cd7e
SC
35769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35770 (exit $ac_status); } &&
04840eaa
VS
35771 { ac_try='test -z "$ac_c_werror_flag"
35772 || test ! -s conftest.err'
ac1cb8d3
VS
35773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35774 (eval $ac_try) 2>&5
35775 ac_status=$?
35776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35777 (exit $ac_status); }; } &&
35778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35780 (eval $ac_try) 2>&5
35781 ac_status=$?
35782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35783 (exit $ac_status); }; }; then
35784 eval "$as_ac_var=yes"
35785else
35786 echo "$as_me: failed program was:" >&5
35787sed 's/^/| /' conftest.$ac_ext >&5
35788
35789eval "$as_ac_var=no"
35790fi
ac1cb8d3
VS
35791rm -f conftest.err conftest.$ac_objext \
35792 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35793fi
35794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35796if test `eval echo '${'$as_ac_var'}'` = yes; then
35797 cat >>confdefs.h <<_ACEOF
35798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35799_ACEOF
35800
35801fi
35802done
35803
35804
35805 if test "$ac_cv_func_localtime" = "yes"; then
35806 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35807echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35808if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
35809 echo $ECHO_N "(cached) $ECHO_C" >&6
35810else
35811
35812 cat >conftest.$ac_ext <<_ACEOF
35813/* confdefs.h. */
35814_ACEOF
35815cat confdefs.h >>conftest.$ac_ext
35816cat >>conftest.$ac_ext <<_ACEOF
35817/* end confdefs.h. */
35818
35819 #include <time.h>
35820
35821int
35822main ()
35823{
35824
35825 struct tm tm;
35826 tm.tm_gmtoff++;
35827
35828 ;
35829 return 0;
35830}
35831_ACEOF
35832rm -f conftest.$ac_objext
35833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 35834 (eval $ac_compile) 2>conftest.er1
a848cd7e 35835 ac_status=$?
ac1cb8d3
VS
35836 grep -v '^ *+' conftest.er1 >conftest.err
35837 rm -f conftest.er1
35838 cat conftest.err >&5
a848cd7e
SC
35839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840 (exit $ac_status); } &&
04840eaa
VS
35841 { ac_try='test -z "$ac_c_werror_flag"
35842 || test ! -s conftest.err'
ac1cb8d3
VS
35843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35844 (eval $ac_try) 2>&5
35845 ac_status=$?
35846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35847 (exit $ac_status); }; } &&
35848 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
35849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35850 (eval $ac_try) 2>&5
35851 ac_status=$?
35852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853 (exit $ac_status); }; }; then
35854
35855 wx_cv_struct_tm_has_gmtoff=yes
35856
35857else
35858 echo "$as_me: failed program was:" >&5
35859sed 's/^/| /' conftest.$ac_ext >&5
35860
35861wx_cv_struct_tm_has_gmtoff=no
35862
35863fi
ac1cb8d3 35864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
35865
35866fi
35867echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35868echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35869 fi
35870
35871 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35872 cat >>confdefs.h <<\_ACEOF
35873#define WX_GMTOFF_IN_TM 1
35874_ACEOF
35875
35876 fi
35877
35878
35879
35880for ac_func in gettimeofday ftime
35881do
35882as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35883echo "$as_me:$LINENO: checking for $ac_func" >&5
35884echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35885if eval "test \"\${$as_ac_var+set}\" = set"; then
35886 echo $ECHO_N "(cached) $ECHO_C" >&6
35887else
35888 cat >conftest.$ac_ext <<_ACEOF
35889/* confdefs.h. */
35890_ACEOF
35891cat confdefs.h >>conftest.$ac_ext
35892cat >>conftest.$ac_ext <<_ACEOF
35893/* end confdefs.h. */
ac1cb8d3
VS
35894/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35896#define $ac_func innocuous_$ac_func
35897
a848cd7e
SC
35898/* System header to define __stub macros and hopefully few prototypes,
35899 which can conflict with char $ac_func (); below.
35900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35901 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35902
a848cd7e
SC
35903#ifdef __STDC__
35904# include <limits.h>
35905#else
35906# include <assert.h>
35907#endif
ac1cb8d3
VS
35908
35909#undef $ac_func
35910
a848cd7e
SC
35911/* Override any gcc2 internal prototype to avoid an error. */
35912#ifdef __cplusplus
35913extern "C"
35914{
35915#endif
35916/* We use char because int might match the return type of a gcc2
35917 builtin and then its argument prototype would still apply. */
35918char $ac_func ();
35919/* The GNU C library defines this for functions which it implements
35920 to always fail with ENOSYS. Some functions are actually named
35921 something starting with __ and the normal name is an alias. */
35922#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35923choke me
35924#else
35925char (*f) () = $ac_func;
35926#endif
35927#ifdef __cplusplus
35928}
35929#endif
35930
35931int
35932main ()
35933{
35934return f != $ac_func;
35935 ;
35936 return 0;
35937}
35938_ACEOF
35939rm -f conftest.$ac_objext conftest$ac_exeext
35940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35941 (eval $ac_link) 2>conftest.er1
a848cd7e 35942 ac_status=$?
ac1cb8d3
VS
35943 grep -v '^ *+' conftest.er1 >conftest.err
35944 rm -f conftest.er1
35945 cat conftest.err >&5
a848cd7e
SC
35946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35947 (exit $ac_status); } &&
04840eaa
VS
35948 { ac_try='test -z "$ac_c_werror_flag"
35949 || test ! -s conftest.err'
ac1cb8d3
VS
35950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35951 (eval $ac_try) 2>&5
35952 ac_status=$?
35953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); }; } &&
35955 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35957 (eval $ac_try) 2>&5
35958 ac_status=$?
35959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35960 (exit $ac_status); }; }; then
35961 eval "$as_ac_var=yes"
35962else
35963 echo "$as_me: failed program was:" >&5
35964sed 's/^/| /' conftest.$ac_ext >&5
35965
35966eval "$as_ac_var=no"
35967fi
ac1cb8d3
VS
35968rm -f conftest.err conftest.$ac_objext \
35969 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35970fi
35971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35972echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35973if test `eval echo '${'$as_ac_var'}'` = yes; then
35974 cat >>confdefs.h <<_ACEOF
35975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35976_ACEOF
35977 break
35978fi
35979done
35980
35981
35982 if test "$ac_cv_func_gettimeofday" = "yes"; then
35983 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35984echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35985if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35986 echo $ECHO_N "(cached) $ECHO_C" >&6
35987else
35988
35989
35990
35991 ac_ext=cc
35992ac_cpp='$CXXCPP $CPPFLAGS'
35993ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35994ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35995ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35996
35997
35998 cat >conftest.$ac_ext <<_ACEOF
35999/* confdefs.h. */
36000_ACEOF
36001cat confdefs.h >>conftest.$ac_ext
36002cat >>conftest.$ac_ext <<_ACEOF
36003/* end confdefs.h. */
36004
36005 #include <sys/time.h>
36006 #include <unistd.h>
36007
36008int
36009main ()
36010{
36011
36012 struct timeval tv;
36013 gettimeofday(&tv, NULL);
36014
36015 ;
36016 return 0;
36017}
36018_ACEOF
36019rm -f conftest.$ac_objext
36020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36021 (eval $ac_compile) 2>conftest.er1
a848cd7e 36022 ac_status=$?
ac1cb8d3
VS
36023 grep -v '^ *+' conftest.er1 >conftest.err
36024 rm -f conftest.er1
36025 cat conftest.err >&5
a848cd7e
SC
36026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36027 (exit $ac_status); } &&
04840eaa
VS
36028 { ac_try='test -z "$ac_cxx_werror_flag"
36029 || test ! -s conftest.err'
ac1cb8d3
VS
36030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36031 (eval $ac_try) 2>&5
36032 ac_status=$?
36033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36034 (exit $ac_status); }; } &&
36035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36037 (eval $ac_try) 2>&5
36038 ac_status=$?
36039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36040 (exit $ac_status); }; }; then
36041 wx_cv_func_gettimeofday_has_2_args=yes
36042else
36043 echo "$as_me: failed program was:" >&5
36044sed 's/^/| /' conftest.$ac_ext >&5
36045
36046cat >conftest.$ac_ext <<_ACEOF
36047/* confdefs.h. */
36048_ACEOF
36049cat confdefs.h >>conftest.$ac_ext
36050cat >>conftest.$ac_ext <<_ACEOF
36051/* end confdefs.h. */
36052
36053 #include <sys/time.h>
36054 #include <unistd.h>
36055
36056int
36057main ()
36058{
36059
36060 struct timeval tv;
36061 gettimeofday(&tv);
36062
36063 ;
36064 return 0;
36065}
36066_ACEOF
36067rm -f conftest.$ac_objext
36068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36069 (eval $ac_compile) 2>conftest.er1
a848cd7e 36070 ac_status=$?
ac1cb8d3
VS
36071 grep -v '^ *+' conftest.er1 >conftest.err
36072 rm -f conftest.er1
36073 cat conftest.err >&5
a848cd7e
SC
36074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36075 (exit $ac_status); } &&
04840eaa
VS
36076 { ac_try='test -z "$ac_cxx_werror_flag"
36077 || test ! -s conftest.err'
ac1cb8d3
VS
36078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36079 (eval $ac_try) 2>&5
36080 ac_status=$?
36081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082 (exit $ac_status); }; } &&
36083 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36085 (eval $ac_try) 2>&5
36086 ac_status=$?
36087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088 (exit $ac_status); }; }; then
36089 wx_cv_func_gettimeofday_has_2_args=no
36090else
36091 echo "$as_me: failed program was:" >&5
36092sed 's/^/| /' conftest.$ac_ext >&5
36093
36094
36095 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
36096echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
36097 wx_cv_func_gettimeofday_has_2_args=unknown
36098
36099
36100fi
ac1cb8d3 36101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36102
36103fi
ac1cb8d3 36104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36105 ac_ext=c
36106ac_cpp='$CPP $CPPFLAGS'
36107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36109ac_compiler_gnu=$ac_cv_c_compiler_gnu
36110
36111
36112fi
36113echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
36114echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
36115
36116 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
36117 cat >>confdefs.h <<\_ACEOF
36118#define WX_GETTIMEOFDAY_NO_TZ 1
36119_ACEOF
36120
36121 fi
36122 fi
36123
36124 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
36125fi
36126
36127
36128if test "$wxUSE_SOCKETS" = "yes"; then
36129 if test "$wxUSE_MGL" = "1"; then
36130 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
36131echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
36132 wxUSE_SOCKETS="no"
36133 fi
36134fi
36135
36136if test "$wxUSE_SOCKETS" = "yes"; then
36137 if test "$TOOLKIT" != "MSW"; then
36138 echo "$as_me:$LINENO: checking for socket" >&5
36139echo $ECHO_N "checking for socket... $ECHO_C" >&6
36140if test "${ac_cv_func_socket+set}" = set; then
36141 echo $ECHO_N "(cached) $ECHO_C" >&6
36142else
36143 cat >conftest.$ac_ext <<_ACEOF
36144/* confdefs.h. */
36145_ACEOF
36146cat confdefs.h >>conftest.$ac_ext
36147cat >>conftest.$ac_ext <<_ACEOF
36148/* end confdefs.h. */
ac1cb8d3
VS
36149/* Define socket to an innocuous variant, in case <limits.h> declares socket.
36150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36151#define socket innocuous_socket
36152
a848cd7e
SC
36153/* System header to define __stub macros and hopefully few prototypes,
36154 which can conflict with char socket (); below.
36155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36156 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36157
a848cd7e
SC
36158#ifdef __STDC__
36159# include <limits.h>
36160#else
36161# include <assert.h>
36162#endif
ac1cb8d3
VS
36163
36164#undef socket
36165
a848cd7e
SC
36166/* Override any gcc2 internal prototype to avoid an error. */
36167#ifdef __cplusplus
36168extern "C"
36169{
36170#endif
36171/* We use char because int might match the return type of a gcc2
36172 builtin and then its argument prototype would still apply. */
36173char socket ();
36174/* The GNU C library defines this for functions which it implements
36175 to always fail with ENOSYS. Some functions are actually named
36176 something starting with __ and the normal name is an alias. */
36177#if defined (__stub_socket) || defined (__stub___socket)
36178choke me
36179#else
36180char (*f) () = socket;
36181#endif
36182#ifdef __cplusplus
36183}
36184#endif
36185
36186int
36187main ()
36188{
36189return f != socket;
36190 ;
36191 return 0;
36192}
36193_ACEOF
36194rm -f conftest.$ac_objext conftest$ac_exeext
36195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36196 (eval $ac_link) 2>conftest.er1
a848cd7e 36197 ac_status=$?
ac1cb8d3
VS
36198 grep -v '^ *+' conftest.er1 >conftest.err
36199 rm -f conftest.er1
36200 cat conftest.err >&5
a848cd7e
SC
36201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36202 (exit $ac_status); } &&
04840eaa
VS
36203 { ac_try='test -z "$ac_c_werror_flag"
36204 || test ! -s conftest.err'
ac1cb8d3
VS
36205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36206 (eval $ac_try) 2>&5
36207 ac_status=$?
36208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36209 (exit $ac_status); }; } &&
36210 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36212 (eval $ac_try) 2>&5
36213 ac_status=$?
36214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36215 (exit $ac_status); }; }; then
36216 ac_cv_func_socket=yes
36217else
36218 echo "$as_me: failed program was:" >&5
36219sed 's/^/| /' conftest.$ac_ext >&5
36220
36221ac_cv_func_socket=no
36222fi
ac1cb8d3
VS
36223rm -f conftest.err conftest.$ac_objext \
36224 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36225fi
36226echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
36227echo "${ECHO_T}$ac_cv_func_socket" >&6
36228if test $ac_cv_func_socket = yes; then
36229 :
36230else
36231
36232 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
36233echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
36234if test "${ac_cv_lib_socket_socket+set}" = set; then
36235 echo $ECHO_N "(cached) $ECHO_C" >&6
36236else
36237 ac_check_lib_save_LIBS=$LIBS
36238LIBS="-lsocket $LIBS"
36239cat >conftest.$ac_ext <<_ACEOF
36240/* confdefs.h. */
36241_ACEOF
36242cat confdefs.h >>conftest.$ac_ext
36243cat >>conftest.$ac_ext <<_ACEOF
36244/* end confdefs.h. */
36245
36246/* Override any gcc2 internal prototype to avoid an error. */
36247#ifdef __cplusplus
36248extern "C"
36249#endif
36250/* We use char because int might match the return type of a gcc2
36251 builtin and then its argument prototype would still apply. */
36252char socket ();
36253int
36254main ()
36255{
36256socket ();
36257 ;
36258 return 0;
36259}
36260_ACEOF
36261rm -f conftest.$ac_objext conftest$ac_exeext
36262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36263 (eval $ac_link) 2>conftest.er1
a848cd7e 36264 ac_status=$?
ac1cb8d3
VS
36265 grep -v '^ *+' conftest.er1 >conftest.err
36266 rm -f conftest.er1
36267 cat conftest.err >&5
a848cd7e
SC
36268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269 (exit $ac_status); } &&
04840eaa
VS
36270 { ac_try='test -z "$ac_c_werror_flag"
36271 || test ! -s conftest.err'
ac1cb8d3
VS
36272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36273 (eval $ac_try) 2>&5
36274 ac_status=$?
36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); }; } &&
36277 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279 (eval $ac_try) 2>&5
36280 ac_status=$?
36281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282 (exit $ac_status); }; }; then
36283 ac_cv_lib_socket_socket=yes
36284else
36285 echo "$as_me: failed program was:" >&5
36286sed 's/^/| /' conftest.$ac_ext >&5
36287
36288ac_cv_lib_socket_socket=no
36289fi
ac1cb8d3
VS
36290rm -f conftest.err conftest.$ac_objext \
36291 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36292LIBS=$ac_check_lib_save_LIBS
36293fi
36294echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
36295echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
36296if test $ac_cv_lib_socket_socket = yes; then
36297 if test "$INET_LINK" != " -lsocket"; then
36298 INET_LINK="$INET_LINK -lsocket"
36299 fi
36300else
36301
36302 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
36303echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
36304 wxUSE_SOCKETS=no
36305
36306
36307fi
36308
36309
36310
36311fi
36312
36313 fi
36314fi
36315
36316if test "$wxUSE_SOCKETS" = "yes" ; then
36317 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
36318 ac_ext=cc
36319ac_cpp='$CXXCPP $CPPFLAGS'
36320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36323
36324 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
36325echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
36326if test "${wx_cv_type_getsockname3+set}" = set; then
36327 echo $ECHO_N "(cached) $ECHO_C" >&6
36328else
36329
36330 cat >conftest.$ac_ext <<_ACEOF
36331/* confdefs.h. */
36332_ACEOF
36333cat confdefs.h >>conftest.$ac_ext
36334cat >>conftest.$ac_ext <<_ACEOF
36335/* end confdefs.h. */
36336
36337 #include <sys/types.h>
36338 #include <sys/socket.h>
36339
36340int
36341main ()
36342{
36343
36344 socklen_t len;
36345 getsockname(0, 0, &len);
36346
36347 ;
36348 return 0;
36349}
36350_ACEOF
36351rm -f conftest.$ac_objext
36352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36353 (eval $ac_compile) 2>conftest.er1
a848cd7e 36354 ac_status=$?
ac1cb8d3
VS
36355 grep -v '^ *+' conftest.er1 >conftest.err
36356 rm -f conftest.er1
36357 cat conftest.err >&5
a848cd7e
SC
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); } &&
04840eaa
VS
36360 { ac_try='test -z "$ac_cxx_werror_flag"
36361 || test ! -s conftest.err'
ac1cb8d3
VS
36362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36363 (eval $ac_try) 2>&5
36364 ac_status=$?
36365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36366 (exit $ac_status); }; } &&
36367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36369 (eval $ac_try) 2>&5
36370 ac_status=$?
36371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36372 (exit $ac_status); }; }; then
36373 wx_cv_type_getsockname3=socklen_t
36374else
36375 echo "$as_me: failed program was:" >&5
36376sed 's/^/| /' conftest.$ac_ext >&5
36377
36378
36379 CFLAGS_OLD="$CFLAGS"
36380 if test "$GCC" = yes ; then
36381 CFLAGS="$CFLAGS -Werror"
36382 fi
36383
36384 cat >conftest.$ac_ext <<_ACEOF
36385/* confdefs.h. */
36386_ACEOF
36387cat confdefs.h >>conftest.$ac_ext
36388cat >>conftest.$ac_ext <<_ACEOF
36389/* end confdefs.h. */
36390
36391 #include <sys/types.h>
36392 #include <sys/socket.h>
36393
36394int
36395main ()
36396{
36397
36398 size_t len;
36399 getsockname(0, 0, &len);
36400
36401 ;
36402 return 0;
36403}
36404_ACEOF
36405rm -f conftest.$ac_objext
36406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36407 (eval $ac_compile) 2>conftest.er1
a848cd7e 36408 ac_status=$?
ac1cb8d3
VS
36409 grep -v '^ *+' conftest.er1 >conftest.err
36410 rm -f conftest.er1
36411 cat conftest.err >&5
a848cd7e
SC
36412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413 (exit $ac_status); } &&
04840eaa
VS
36414 { ac_try='test -z "$ac_cxx_werror_flag"
36415 || test ! -s conftest.err'
ac1cb8d3
VS
36416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36417 (eval $ac_try) 2>&5
36418 ac_status=$?
36419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); }; } &&
36421 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36423 (eval $ac_try) 2>&5
36424 ac_status=$?
36425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36426 (exit $ac_status); }; }; then
36427 wx_cv_type_getsockname3=size_t
36428else
36429 echo "$as_me: failed program was:" >&5
36430sed 's/^/| /' conftest.$ac_ext >&5
36431
36432cat >conftest.$ac_ext <<_ACEOF
36433/* confdefs.h. */
36434_ACEOF
36435cat confdefs.h >>conftest.$ac_ext
36436cat >>conftest.$ac_ext <<_ACEOF
36437/* end confdefs.h. */
36438
36439 #include <sys/types.h>
36440 #include <sys/socket.h>
36441
36442int
36443main ()
36444{
36445
36446 int len;
36447 getsockname(0, 0, &len);
36448
36449 ;
36450 return 0;
36451}
36452_ACEOF
36453rm -f conftest.$ac_objext
36454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36455 (eval $ac_compile) 2>conftest.er1
a848cd7e 36456 ac_status=$?
ac1cb8d3
VS
36457 grep -v '^ *+' conftest.er1 >conftest.err
36458 rm -f conftest.er1
36459 cat conftest.err >&5
a848cd7e
SC
36460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36461 (exit $ac_status); } &&
04840eaa
VS
36462 { ac_try='test -z "$ac_cxx_werror_flag"
36463 || test ! -s conftest.err'
ac1cb8d3
VS
36464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36465 (eval $ac_try) 2>&5
36466 ac_status=$?
36467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468 (exit $ac_status); }; } &&
36469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36471 (eval $ac_try) 2>&5
36472 ac_status=$?
36473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36474 (exit $ac_status); }; }; then
36475 wx_cv_type_getsockname3=int
36476else
36477 echo "$as_me: failed program was:" >&5
36478sed 's/^/| /' conftest.$ac_ext >&5
36479
36480wx_cv_type_getsockname3=unknown
36481
36482fi
ac1cb8d3 36483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36484
36485fi
ac1cb8d3 36486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36487
36488 CFLAGS="$CFLAGS_OLD"
36489
36490
36491fi
ac1cb8d3 36492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36493
36494fi
36495echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
36496echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
36497
36498 if test "$wx_cv_type_getsockname3" = "unknown"; then
36499 wxUSE_SOCKETS=no
36500 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36501echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36502 else
36503 cat >>confdefs.h <<_ACEOF
36504#define SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
36505_ACEOF
36506
36507 fi
36508 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
36509echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
36510if test "${wx_cv_type_getsockopt5+set}" = set; then
36511 echo $ECHO_N "(cached) $ECHO_C" >&6
36512else
36513
36514 cat >conftest.$ac_ext <<_ACEOF
36515/* confdefs.h. */
36516_ACEOF
36517cat confdefs.h >>conftest.$ac_ext
36518cat >>conftest.$ac_ext <<_ACEOF
36519/* end confdefs.h. */
36520
36521 #include <sys/types.h>
36522 #include <sys/socket.h>
36523
36524int
36525main ()
36526{
36527
36528 socklen_t len;
36529 getsockopt(0, 0, 0, 0, &len);
36530
36531 ;
36532 return 0;
36533}
36534_ACEOF
36535rm -f conftest.$ac_objext
36536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36537 (eval $ac_compile) 2>conftest.er1
36538 ac_status=$?
36539 grep -v '^ *+' conftest.er1 >conftest.err
36540 rm -f conftest.er1
36541 cat conftest.err >&5
36542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36543 (exit $ac_status); } &&
04840eaa
VS
36544 { ac_try='test -z "$ac_cxx_werror_flag"
36545 || test ! -s conftest.err'
5b674b9d
DE
36546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36547 (eval $ac_try) 2>&5
36548 ac_status=$?
36549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36550 (exit $ac_status); }; } &&
36551 { ac_try='test -s conftest.$ac_objext'
36552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36553 (eval $ac_try) 2>&5
36554 ac_status=$?
36555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36556 (exit $ac_status); }; }; then
36557 wx_cv_type_getsockopt5=socklen_t
36558else
36559 echo "$as_me: failed program was:" >&5
36560sed 's/^/| /' conftest.$ac_ext >&5
36561
36562
36563 CFLAGS_OLD="$CFLAGS"
36564 if test "$GCC" = yes ; then
36565 CFLAGS="$CFLAGS -Werror"
36566 fi
36567
36568 cat >conftest.$ac_ext <<_ACEOF
36569/* confdefs.h. */
36570_ACEOF
36571cat confdefs.h >>conftest.$ac_ext
36572cat >>conftest.$ac_ext <<_ACEOF
36573/* end confdefs.h. */
36574
36575 #include <sys/types.h>
36576 #include <sys/socket.h>
36577
36578int
36579main ()
36580{
36581
36582 size_t len;
36583 getsockopt(0, 0, 0, 0, &len);
36584
36585 ;
36586 return 0;
36587}
36588_ACEOF
36589rm -f conftest.$ac_objext
36590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36591 (eval $ac_compile) 2>conftest.er1
36592 ac_status=$?
36593 grep -v '^ *+' conftest.er1 >conftest.err
36594 rm -f conftest.er1
36595 cat conftest.err >&5
36596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36597 (exit $ac_status); } &&
04840eaa
VS
36598 { ac_try='test -z "$ac_cxx_werror_flag"
36599 || test ! -s conftest.err'
5b674b9d
DE
36600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36601 (eval $ac_try) 2>&5
36602 ac_status=$?
36603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36604 (exit $ac_status); }; } &&
36605 { ac_try='test -s conftest.$ac_objext'
36606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36607 (eval $ac_try) 2>&5
36608 ac_status=$?
36609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610 (exit $ac_status); }; }; then
36611 wx_cv_type_getsockopt5=size_t
36612else
36613 echo "$as_me: failed program was:" >&5
36614sed 's/^/| /' conftest.$ac_ext >&5
36615
36616cat >conftest.$ac_ext <<_ACEOF
36617/* confdefs.h. */
36618_ACEOF
36619cat confdefs.h >>conftest.$ac_ext
36620cat >>conftest.$ac_ext <<_ACEOF
36621/* end confdefs.h. */
36622
36623 #include <sys/types.h>
36624 #include <sys/socket.h>
36625
36626int
36627main ()
36628{
36629
36630 int len;
36631 getsockopt(0, 0, 0, 0, &len);
36632
36633 ;
36634 return 0;
36635}
36636_ACEOF
36637rm -f conftest.$ac_objext
36638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36639 (eval $ac_compile) 2>conftest.er1
36640 ac_status=$?
36641 grep -v '^ *+' conftest.er1 >conftest.err
36642 rm -f conftest.er1
36643 cat conftest.err >&5
36644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36645 (exit $ac_status); } &&
04840eaa
VS
36646 { ac_try='test -z "$ac_cxx_werror_flag"
36647 || test ! -s conftest.err'
5b674b9d
DE
36648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36649 (eval $ac_try) 2>&5
36650 ac_status=$?
36651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36652 (exit $ac_status); }; } &&
36653 { ac_try='test -s conftest.$ac_objext'
36654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36655 (eval $ac_try) 2>&5
36656 ac_status=$?
36657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36658 (exit $ac_status); }; }; then
36659 wx_cv_type_getsockopt5=int
36660else
36661 echo "$as_me: failed program was:" >&5
36662sed 's/^/| /' conftest.$ac_ext >&5
36663
36664wx_cv_type_getsockopt5=unknown
36665
36666fi
36667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36668
36669fi
36670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36671
36672 CFLAGS="$CFLAGS_OLD"
36673
36674
36675fi
36676rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36677
36678fi
36679echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
36680echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
36681
36682 if test "$wx_cv_type_getsockopt5" = "unknown"; then
36683 wxUSE_SOCKETS=no
36684 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
36685echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
36686 else
36687 cat >>confdefs.h <<_ACEOF
36688#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
36689_ACEOF
36690
36691 fi
4d4ff94c
VZ
36692 ac_ext=c
36693ac_cpp='$CPP $CPPFLAGS'
36694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36696ac_compiler_gnu=$ac_cv_c_compiler_gnu
36697
a848cd7e
SC
36698 fi
36699fi
36700
36701if test "$wxUSE_SOCKETS" = "yes" ; then
36702 cat >>confdefs.h <<\_ACEOF
36703#define wxUSE_SOCKETS 1
36704_ACEOF
36705
36706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
36707fi
36708
36709if test "$wxUSE_PROTOCOL" = "yes"; then
36710 if test "$wxUSE_SOCKETS" != "yes"; then
36711 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
36712echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
36713 wxUSE_PROTOCOL=no
36714 fi
36715fi
36716
36717if test "$wxUSE_PROTOCOL" = "yes"; then
36718 cat >>confdefs.h <<\_ACEOF
36719#define wxUSE_PROTOCOL 1
36720_ACEOF
36721
36722
36723 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
36724 cat >>confdefs.h <<\_ACEOF
36725#define wxUSE_PROTOCOL_HTTP 1
36726_ACEOF
36727
36728 fi
36729 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
36730 cat >>confdefs.h <<\_ACEOF
36731#define wxUSE_PROTOCOL_FTP 1
36732_ACEOF
36733
36734 fi
36735 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
36736 cat >>confdefs.h <<\_ACEOF
36737#define wxUSE_PROTOCOL_FILE 1
36738_ACEOF
36739
36740 fi
36741else
36742 if test "$wxUSE_FS_INET" = "yes"; then
36743 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
36744echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
36745 wxUSE_FS_INET="no"
36746 fi
36747fi
36748
36749if test "$wxUSE_URL" = "yes"; then
36750 if test "$wxUSE_PROTOCOL" != "yes"; then
36751 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
36752echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
36753 wxUSE_URL=no
36754 fi
36755 if test "$wxUSE_URL" = "yes"; then
36756 cat >>confdefs.h <<\_ACEOF
36757#define wxUSE_URL 1
36758_ACEOF
36759
36760 fi
36761fi
36762
36763if test "$wxUSE_FS_INET" = "yes"; then
36764 cat >>confdefs.h <<\_ACEOF
36765#define wxUSE_FS_INET 1
36766_ACEOF
36767
36768fi
36769
36770
36771if test "$wxUSE_GUI" = "yes"; then
36772
36773 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
36774 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
36775echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
36776 wxUSE_JOYSTICK=no
36777 fi
36778
36779 if test "$TOOLKIT" != "MSW"; then
36780 if test "$wxUSE_JOYSTICK" = "yes"; then
36781
36782for ac_header in linux/joystick.h
36783do
36784as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36785if eval "test \"\${$as_ac_Header+set}\" = set"; then
36786 echo "$as_me:$LINENO: checking for $ac_header" >&5
36787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36788if eval "test \"\${$as_ac_Header+set}\" = set"; then
36789 echo $ECHO_N "(cached) $ECHO_C" >&6
36790fi
36791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36792echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36793else
36794 # Is the header compilable?
36795echo "$as_me:$LINENO: checking $ac_header usability" >&5
36796echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36797cat >conftest.$ac_ext <<_ACEOF
36798/* confdefs.h. */
36799_ACEOF
36800cat confdefs.h >>conftest.$ac_ext
36801cat >>conftest.$ac_ext <<_ACEOF
36802/* end confdefs.h. */
36803$ac_includes_default
36804#include <$ac_header>
36805_ACEOF
36806rm -f conftest.$ac_objext
36807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36808 (eval $ac_compile) 2>conftest.er1
a848cd7e 36809 ac_status=$?
ac1cb8d3
VS
36810 grep -v '^ *+' conftest.er1 >conftest.err
36811 rm -f conftest.er1
36812 cat conftest.err >&5
a848cd7e
SC
36813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36814 (exit $ac_status); } &&
04840eaa
VS
36815 { ac_try='test -z "$ac_c_werror_flag"
36816 || test ! -s conftest.err'
ac1cb8d3
VS
36817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36818 (eval $ac_try) 2>&5
36819 ac_status=$?
36820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36821 (exit $ac_status); }; } &&
36822 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36824 (eval $ac_try) 2>&5
36825 ac_status=$?
36826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36827 (exit $ac_status); }; }; then
36828 ac_header_compiler=yes
36829else
36830 echo "$as_me: failed program was:" >&5
36831sed 's/^/| /' conftest.$ac_ext >&5
36832
36833ac_header_compiler=no
36834fi
ac1cb8d3 36835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36836echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36837echo "${ECHO_T}$ac_header_compiler" >&6
36838
36839# Is the header present?
36840echo "$as_me:$LINENO: checking $ac_header presence" >&5
36841echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36842cat >conftest.$ac_ext <<_ACEOF
36843/* confdefs.h. */
36844_ACEOF
36845cat confdefs.h >>conftest.$ac_ext
36846cat >>conftest.$ac_ext <<_ACEOF
36847/* end confdefs.h. */
36848#include <$ac_header>
36849_ACEOF
36850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36852 ac_status=$?
36853 grep -v '^ *+' conftest.er1 >conftest.err
36854 rm -f conftest.er1
36855 cat conftest.err >&5
36856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857 (exit $ac_status); } >/dev/null; then
36858 if test -s conftest.err; then
36859 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36860 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36861 else
36862 ac_cpp_err=
36863 fi
36864else
36865 ac_cpp_err=yes
36866fi
36867if test -z "$ac_cpp_err"; then
36868 ac_header_preproc=yes
36869else
36870 echo "$as_me: failed program was:" >&5
36871sed 's/^/| /' conftest.$ac_ext >&5
36872
36873 ac_header_preproc=no
36874fi
36875rm -f conftest.err conftest.$ac_ext
36876echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36877echo "${ECHO_T}$ac_header_preproc" >&6
36878
36879# So? What about this header?
ac1cb8d3
VS
36880case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36881 yes:no: )
a848cd7e
SC
36882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36883echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36885echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36886 ac_header_preproc=yes
a848cd7e 36887 ;;
ac1cb8d3 36888 no:yes:* )
a848cd7e
SC
36889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36890echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36892echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36894echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36896echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36900echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36901 (
36902 cat <<\_ASBOX
ac1cb8d3
VS
36903## ----------------------------------------- ##
36904## Report this to wx-dev@lists.wxwidgets.org ##
36905## ----------------------------------------- ##
a848cd7e
SC
36906_ASBOX
36907 ) |
36908 sed "s/^/$as_me: WARNING: /" >&2
36909 ;;
36910esac
36911echo "$as_me:$LINENO: checking for $ac_header" >&5
36912echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36913if eval "test \"\${$as_ac_Header+set}\" = set"; then
36914 echo $ECHO_N "(cached) $ECHO_C" >&6
36915else
ac1cb8d3 36916 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36917fi
36918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36920
36921fi
36922if test `eval echo '${'$as_ac_Header'}'` = yes; then
36923 cat >>confdefs.h <<_ACEOF
36924#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36925_ACEOF
36926
36927fi
36928
36929done
36930
36931 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36932 wxUSE_JOYSTICK=no
36933 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36934echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36935 fi
36936 fi
36937 fi
36938
36939 if test "$wxUSE_JOYSTICK" = "yes"; then
36940 cat >>confdefs.h <<\_ACEOF
36941#define wxUSE_JOYSTICK 1
36942_ACEOF
36943
36944 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36945 fi
36946fi
36947
36948
36949
36950if test "$wxUSE_FONTMAP" = "yes" ; then
36951 cat >>confdefs.h <<\_ACEOF
36952#define wxUSE_FONTMAP 1
36953_ACEOF
36954
36955fi
36956
36957if test "$wxUSE_UNICODE" = "yes" ; then
36958 cat >>confdefs.h <<\_ACEOF
36959#define wxUSE_UNICODE 1
36960_ACEOF
36961
36962
36963 if test "$USE_WIN32" != 1; then
36964 wxUSE_UNICODE_MSLU=no
36965 fi
36966
36967 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
36968 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36969echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36970if test "${ac_cv_lib_unicows_main+set}" = set; then
36971 echo $ECHO_N "(cached) $ECHO_C" >&6
36972else
36973 ac_check_lib_save_LIBS=$LIBS
36974LIBS="-lunicows $LIBS"
36975cat >conftest.$ac_ext <<_ACEOF
36976/* confdefs.h. */
36977_ACEOF
36978cat confdefs.h >>conftest.$ac_ext
36979cat >>conftest.$ac_ext <<_ACEOF
36980/* end confdefs.h. */
36981
36982
36983int
36984main ()
36985{
36986main ();
36987 ;
36988 return 0;
36989}
36990_ACEOF
36991rm -f conftest.$ac_objext conftest$ac_exeext
36992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36993 (eval $ac_link) 2>conftest.er1
a848cd7e 36994 ac_status=$?
ac1cb8d3
VS
36995 grep -v '^ *+' conftest.er1 >conftest.err
36996 rm -f conftest.er1
36997 cat conftest.err >&5
a848cd7e
SC
36998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36999 (exit $ac_status); } &&
04840eaa
VS
37000 { ac_try='test -z "$ac_c_werror_flag"
37001 || test ! -s conftest.err'
ac1cb8d3
VS
37002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37003 (eval $ac_try) 2>&5
37004 ac_status=$?
37005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37006 (exit $ac_status); }; } &&
37007 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37009 (eval $ac_try) 2>&5
37010 ac_status=$?
37011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37012 (exit $ac_status); }; }; then
37013 ac_cv_lib_unicows_main=yes
37014else
37015 echo "$as_me: failed program was:" >&5
37016sed 's/^/| /' conftest.$ac_ext >&5
37017
37018ac_cv_lib_unicows_main=no
37019fi
ac1cb8d3
VS
37020rm -f conftest.err conftest.$ac_objext \
37021 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37022LIBS=$ac_check_lib_save_LIBS
37023fi
37024echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
37025echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
37026if test $ac_cv_lib_unicows_main = yes; then
37027
37028 cat >>confdefs.h <<\_ACEOF
37029#define wxUSE_UNICODE_MSLU 1
37030_ACEOF
37031
37032
37033else
37034
37035 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37036 Applications will only run on Windows NT/2000/XP!" >&5
37037echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
37038 Applications will only run on Windows NT/2000/XP!" >&2;}
37039 wxUSE_UNICODE_MSLU=no
37040
37041fi
37042
37043 fi
37044fi
37045
37046if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
37047 cat >>confdefs.h <<\_ACEOF
37048#define wxUSE_EXPERIMENTAL_PRINTF 1
37049_ACEOF
37050
37051fi
37052
37053
37054if test "$wxUSE_POSTSCRIPT" = "yes" ; then
37055 cat >>confdefs.h <<\_ACEOF
37056#define wxUSE_POSTSCRIPT 1
37057_ACEOF
37058
37059fi
37060
37061cat >>confdefs.h <<\_ACEOF
37062#define wxUSE_AFM_FOR_POSTSCRIPT 1
37063_ACEOF
37064
37065
37066cat >>confdefs.h <<\_ACEOF
37067#define wxUSE_NORMALIZED_PS_FONTS 1
37068_ACEOF
37069
37070
37071
37072if test "$wxUSE_CONSTRAINTS" = "yes"; then
37073 cat >>confdefs.h <<\_ACEOF
37074#define wxUSE_CONSTRAINTS 1
37075_ACEOF
37076
37077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
37078fi
37079
8a7b1113
VZ
37080if test "$wxUSE_MDI" = "yes"; then
37081 cat >>confdefs.h <<\_ACEOF
37082#define wxUSE_MDI 1
37083_ACEOF
37084
37085
37086 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37087 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37088#define wxUSE_MDI_ARCHITECTURE 1
37089_ACEOF
37090
8a7b1113
VZ
37091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
37092 fi
a848cd7e
SC
37093fi
37094
37095if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
37096 cat >>confdefs.h <<\_ACEOF
37097#define wxUSE_DOC_VIEW_ARCHITECTURE 1
37098_ACEOF
37099
37100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
37101 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
37102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
37103 fi
37104fi
37105
37106if test "$wxUSE_HELP" = "yes"; then
37107 cat >>confdefs.h <<\_ACEOF
37108#define wxUSE_HELP 1
37109_ACEOF
37110
37111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
37112
37113 if test "$wxUSE_MSW" = 1; then
37114 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
37115 cat >>confdefs.h <<\_ACEOF
37116#define wxUSE_MS_HTML_HELP 1
37117_ACEOF
37118
37119 fi
37120 fi
37121
37122 if test "$wxUSE_WXHTML_HELP" = "yes"; then
37123 if test "$wxUSE_HTML" = "yes"; then
37124 cat >>confdefs.h <<\_ACEOF
37125#define wxUSE_WXHTML_HELP 1
37126_ACEOF
37127
37128 else
37129 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
37130echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
37131 wxUSE_WXHTML_HELP=no
37132 fi
37133 fi
37134fi
37135
37136if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
37137 if test "$wxUSE_CONSTRAINTS" != "yes"; then
37138 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
37139echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
37140 else
37141 cat >>confdefs.h <<\_ACEOF
37142#define wxUSE_PRINTING_ARCHITECTURE 1
37143_ACEOF
37144
37145 fi
37146 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
37147fi
37148
37149if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
37150 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
37151echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
37152 { (exit 1); exit 1; }; }
37153fi
37154
37155
37156if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
37157 -o "$wxUSE_CLIPBOARD" = "yes" \
37158 -o "$wxUSE_OLE" = "yes" \
37159 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
37160
37161for ac_header in ole2.h
37162do
37163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37164if eval "test \"\${$as_ac_Header+set}\" = set"; then
37165 echo "$as_me:$LINENO: checking for $ac_header" >&5
37166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37167if eval "test \"\${$as_ac_Header+set}\" = set"; then
37168 echo $ECHO_N "(cached) $ECHO_C" >&6
37169fi
37170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37171echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37172else
37173 # Is the header compilable?
37174echo "$as_me:$LINENO: checking $ac_header usability" >&5
37175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37176cat >conftest.$ac_ext <<_ACEOF
37177/* confdefs.h. */
37178_ACEOF
37179cat confdefs.h >>conftest.$ac_ext
37180cat >>conftest.$ac_ext <<_ACEOF
37181/* end confdefs.h. */
37182$ac_includes_default
37183#include <$ac_header>
37184_ACEOF
37185rm -f conftest.$ac_objext
37186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37187 (eval $ac_compile) 2>conftest.er1
a848cd7e 37188 ac_status=$?
ac1cb8d3
VS
37189 grep -v '^ *+' conftest.er1 >conftest.err
37190 rm -f conftest.er1
37191 cat conftest.err >&5
a848cd7e
SC
37192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37193 (exit $ac_status); } &&
04840eaa
VS
37194 { ac_try='test -z "$ac_c_werror_flag"
37195 || test ! -s conftest.err'
ac1cb8d3
VS
37196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37197 (eval $ac_try) 2>&5
37198 ac_status=$?
37199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200 (exit $ac_status); }; } &&
37201 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37203 (eval $ac_try) 2>&5
37204 ac_status=$?
37205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37206 (exit $ac_status); }; }; then
37207 ac_header_compiler=yes
37208else
37209 echo "$as_me: failed program was:" >&5
37210sed 's/^/| /' conftest.$ac_ext >&5
37211
37212ac_header_compiler=no
37213fi
ac1cb8d3 37214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37215echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37216echo "${ECHO_T}$ac_header_compiler" >&6
37217
37218# Is the header present?
37219echo "$as_me:$LINENO: checking $ac_header presence" >&5
37220echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37221cat >conftest.$ac_ext <<_ACEOF
37222/* confdefs.h. */
37223_ACEOF
37224cat confdefs.h >>conftest.$ac_ext
37225cat >>conftest.$ac_ext <<_ACEOF
37226/* end confdefs.h. */
37227#include <$ac_header>
37228_ACEOF
37229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37231 ac_status=$?
37232 grep -v '^ *+' conftest.er1 >conftest.err
37233 rm -f conftest.er1
37234 cat conftest.err >&5
37235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37236 (exit $ac_status); } >/dev/null; then
37237 if test -s conftest.err; then
37238 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 37239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
37240 else
37241 ac_cpp_err=
37242 fi
37243else
37244 ac_cpp_err=yes
37245fi
37246if test -z "$ac_cpp_err"; then
37247 ac_header_preproc=yes
37248else
37249 echo "$as_me: failed program was:" >&5
37250sed 's/^/| /' conftest.$ac_ext >&5
37251
37252 ac_header_preproc=no
37253fi
37254rm -f conftest.err conftest.$ac_ext
37255echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37256echo "${ECHO_T}$ac_header_preproc" >&6
37257
37258# So? What about this header?
ac1cb8d3
VS
37259case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37260 yes:no: )
a848cd7e
SC
37261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37262echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
37263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37264echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37265 ac_header_preproc=yes
a848cd7e 37266 ;;
ac1cb8d3 37267 no:yes:* )
a848cd7e
SC
37268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37269echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
37270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37271echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37273echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37275echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
37276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37277echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
37278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37279echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
37280 (
37281 cat <<\_ASBOX
ac1cb8d3
VS
37282## ----------------------------------------- ##
37283## Report this to wx-dev@lists.wxwidgets.org ##
37284## ----------------------------------------- ##
a848cd7e
SC
37285_ASBOX
37286 ) |
37287 sed "s/^/$as_me: WARNING: /" >&2
37288 ;;
37289esac
37290echo "$as_me:$LINENO: checking for $ac_header" >&5
37291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37292if eval "test \"\${$as_ac_Header+set}\" = set"; then
37293 echo $ECHO_N "(cached) $ECHO_C" >&6
37294else
ac1cb8d3 37295 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
37296fi
37297echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37298echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37299
37300fi
37301if test `eval echo '${'$as_ac_Header'}'` = yes; then
37302 cat >>confdefs.h <<_ACEOF
37303#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37304_ACEOF
37305
37306fi
37307
37308done
37309
37310
37311 if test "$ac_cv_header_ole2_h" = "yes" ; then
37312 if test "$GCC" = yes ; then
37313
37314
37315 ac_ext=cc
37316ac_cpp='$CXXCPP $CPPFLAGS'
37317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37320
37321
37322 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
37323echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
37324 cat >conftest.$ac_ext <<_ACEOF
37325/* confdefs.h. */
37326_ACEOF
37327cat confdefs.h >>conftest.$ac_ext
37328cat >>conftest.$ac_ext <<_ACEOF
37329/* end confdefs.h. */
37330#include <windows.h>
37331 #include <ole2.h>
37332int
37333main ()
37334{
37335
37336 ;
37337 return 0;
37338}
37339_ACEOF
37340rm -f conftest.$ac_objext
37341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37342 (eval $ac_compile) 2>conftest.er1
a848cd7e 37343 ac_status=$?
ac1cb8d3
VS
37344 grep -v '^ *+' conftest.er1 >conftest.err
37345 rm -f conftest.er1
37346 cat conftest.err >&5
a848cd7e
SC
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); } &&
04840eaa
VS
37349 { ac_try='test -z "$ac_cxx_werror_flag"
37350 || test ! -s conftest.err'
ac1cb8d3
VS
37351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37352 (eval $ac_try) 2>&5
37353 ac_status=$?
37354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355 (exit $ac_status); }; } &&
37356 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37358 (eval $ac_try) 2>&5
37359 ac_status=$?
37360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361 (exit $ac_status); }; }; then
37362 echo "$as_me:$LINENO: result: no" >&5
37363echo "${ECHO_T}no" >&6
37364else
37365 echo "$as_me: failed program was:" >&5
37366sed 's/^/| /' conftest.$ac_ext >&5
37367
37368echo "$as_me:$LINENO: result: yes" >&5
37369echo "${ECHO_T}yes" >&6
37370 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
37371fi
ac1cb8d3 37372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37373 ac_ext=c
37374ac_cpp='$CPP $CPPFLAGS'
37375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37377ac_compiler_gnu=$ac_cv_c_compiler_gnu
37378
a848cd7e
SC
37379 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
37380 if test "$wxUSE_OLE" = "yes" ; then
37381 cat >>confdefs.h <<\_ACEOF
37382#define wxUSE_OLE 1
37383_ACEOF
37384
37385 fi
37386 fi
37387
37388 if test "$wxUSE_DATAOBJ" = "yes" ; then
37389 cat >>confdefs.h <<\_ACEOF
37390#define wxUSE_DATAOBJ 1
37391_ACEOF
37392
37393 fi
37394 else
37395 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
37396echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
37397
37398 wxUSE_CLIPBOARD=no
37399 wxUSE_DRAG_AND_DROP=no
37400 wxUSE_DATAOBJ=no
37401 wxUSE_OLE=no
37402 fi
37403
37404 if test "$wxUSE_METAFILE" = "yes"; then
37405 cat >>confdefs.h <<\_ACEOF
37406#define wxUSE_METAFILE 1
37407_ACEOF
37408
37409
37410 cat >>confdefs.h <<\_ACEOF
37411#define wxUSE_ENH_METAFILE 1
37412_ACEOF
37413
37414 fi
37415fi
37416
37417if test "$wxUSE_IPC" = "yes"; then
37418 if test "$wxUSE_SOCKETS" != "yes"; then
77ffb593
JS
37419 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
37420echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
a848cd7e
SC
37421 fi
37422
37423 cat >>confdefs.h <<\_ACEOF
37424#define wxUSE_IPC 1
37425_ACEOF
37426
37427fi
37428
37429if test "$wxUSE_CLIPBOARD" = "yes"; then
37430 if test "$wxUSE_MGL" = 1; then
37431 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
37432echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
37433 wxUSE_CLIPBOARD=no
37434 fi
37435
37436 if test "$wxUSE_CLIPBOARD" = "yes"; then
37437 cat >>confdefs.h <<\_ACEOF
37438#define wxUSE_CLIPBOARD 1
37439_ACEOF
37440
37441
37442 cat >>confdefs.h <<\_ACEOF
37443#define wxUSE_DATAOBJ 1
37444_ACEOF
37445
37446 fi
37447fi
37448
37449if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
37450 if test "$wxUSE_GTK" = 1; then
37451 if test "$WXGTK12" != 1; then
37452 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
37453echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
37454 wxUSE_DRAG_AND_DROP=no
37455 fi
37456 fi
37457
37458 if test "$wxUSE_MOTIF" = 1; then
37459 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
37460echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
37461 wxUSE_DRAG_AND_DROP=no
37462 fi
37463
37464 if test "$wxUSE_X11" = 1; then
37465 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
37466echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
37467 wxUSE_DRAG_AND_DROP=no
37468 fi
37469
37470 if test "$wxUSE_MGL" = 1; then
37471 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
37472echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
37473 wxUSE_DRAG_AND_DROP=no
37474 fi
37475
37476 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
37477 cat >>confdefs.h <<\_ACEOF
37478#define wxUSE_DRAG_AND_DROP 1
37479_ACEOF
37480
37481 fi
37482
37483fi
37484
37485if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
37486 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
37487fi
37488
37489if test "$wxUSE_SPLINES" = "yes" ; then
37490 cat >>confdefs.h <<\_ACEOF
37491#define wxUSE_SPLINES 1
37492_ACEOF
37493
37494fi
37495
37496
37497USES_CONTROLS=0
37498if test "$wxUSE_CONTROLS" = "yes"; then
37499 USES_CONTROLS=1
37500fi
37501
37502if test "$wxUSE_ACCEL" = "yes"; then
37503 cat >>confdefs.h <<\_ACEOF
37504#define wxUSE_ACCEL 1
37505_ACEOF
37506
37507 USES_CONTROLS=1
37508fi
37509
37510if test "$wxUSE_BUTTON" = "yes"; then
37511 cat >>confdefs.h <<\_ACEOF
37512#define wxUSE_BUTTON 1
37513_ACEOF
37514
37515 USES_CONTROLS=1
37516fi
37517
37518if test "$wxUSE_BMPBUTTON" = "yes"; then
37519 cat >>confdefs.h <<\_ACEOF
37520#define wxUSE_BMPBUTTON 1
37521_ACEOF
37522
37523 USES_CONTROLS=1
37524fi
37525
37526if test "$wxUSE_CALCTRL" = "yes"; then
37527 cat >>confdefs.h <<\_ACEOF
37528#define wxUSE_CALENDARCTRL 1
37529_ACEOF
37530
37531 USES_CONTROLS=1
37532 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
37533fi
37534
37535if test "$wxUSE_CARET" = "yes"; then
37536 cat >>confdefs.h <<\_ACEOF
37537#define wxUSE_CARET 1
37538_ACEOF
37539
37540 USES_CONTROLS=1
37541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
37542fi
37543
37544if test "$wxUSE_COMBOBOX" = "yes"; then
37545 cat >>confdefs.h <<\_ACEOF
37546#define wxUSE_COMBOBOX 1
37547_ACEOF
37548
37549 USES_CONTROLS=1
37550fi
37551
37552if test "$wxUSE_CHOICE" = "yes"; then
37553 cat >>confdefs.h <<\_ACEOF
37554#define wxUSE_CHOICE 1
37555_ACEOF
37556
37557 USES_CONTROLS=1
37558fi
37559
92bbdbcd
WS
37560if test "$wxUSE_CHOICEBOOK" = "yes"; then
37561 cat >>confdefs.h <<\_ACEOF
37562#define wxUSE_CHOICEBOOK 1
37563_ACEOF
37564
37565 USES_CONTROLS=1
37566fi
37567
a848cd7e
SC
37568if test "$wxUSE_CHECKBOX" = "yes"; then
37569 cat >>confdefs.h <<\_ACEOF
37570#define wxUSE_CHECKBOX 1
37571_ACEOF
37572
37573 USES_CONTROLS=1
37574fi
37575
37576if test "$wxUSE_CHECKLST" = "yes"; then
37577 cat >>confdefs.h <<\_ACEOF
37578#define wxUSE_CHECKLISTBOX 1
37579_ACEOF
37580
37581 USES_CONTROLS=1
37582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
37583fi
37584
37585if test "$wxUSE_DISPLAY" = "yes"; then
37586 cat >>confdefs.h <<\_ACEOF
37587#define wxUSE_DISPLAY 1
37588_ACEOF
37589
37590 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
37591fi
37592
37593if test "$wxUSE_GAUGE" = "yes"; then
37594 cat >>confdefs.h <<\_ACEOF
37595#define wxUSE_GAUGE 1
37596_ACEOF
37597
37598 USES_CONTROLS=1
37599fi
37600
37601if test "$wxUSE_GRID" = "yes"; then
37602 cat >>confdefs.h <<\_ACEOF
37603#define wxUSE_GRID 1
37604_ACEOF
37605
37606 USES_CONTROLS=1
37607 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
37608fi
37609
37610if test "$wxUSE_IMAGLIST" = "yes"; then
37611 cat >>confdefs.h <<\_ACEOF
37612#define wxUSE_IMAGLIST 1
37613_ACEOF
37614
37615fi
37616
37617if test "$wxUSE_LISTBOOK" = "yes"; then
37618 cat >>confdefs.h <<\_ACEOF
37619#define wxUSE_LISTBOOK 1
37620_ACEOF
37621
37622 USES_CONTROLS=1
37623fi
37624
37625if test "$wxUSE_LISTBOX" = "yes"; then
37626 cat >>confdefs.h <<\_ACEOF
37627#define wxUSE_LISTBOX 1
37628_ACEOF
37629
37630 USES_CONTROLS=1
37631fi
37632
37633if test "$wxUSE_LISTCTRL" = "yes"; then
37634 if test "$wxUSE_IMAGLIST" = "yes"; then
37635 cat >>confdefs.h <<\_ACEOF
37636#define wxUSE_LISTCTRL 1
37637_ACEOF
37638
37639 USES_CONTROLS=1
37640 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
37641 else
37642 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
37643echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
37644 fi
37645fi
37646
37647if test "$wxUSE_NOTEBOOK" = "yes"; then
37648 cat >>confdefs.h <<\_ACEOF
37649#define wxUSE_NOTEBOOK 1
37650_ACEOF
37651
37652 USES_CONTROLS=1
37653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
37654fi
37655
37656
37657if test "$wxUSE_RADIOBOX" = "yes"; then
37658 cat >>confdefs.h <<\_ACEOF
37659#define wxUSE_RADIOBOX 1
37660_ACEOF
37661
37662 USES_CONTROLS=1
37663fi
37664
37665if test "$wxUSE_RADIOBTN" = "yes"; then
37666 cat >>confdefs.h <<\_ACEOF
37667#define wxUSE_RADIOBTN 1
37668_ACEOF
37669
37670 USES_CONTROLS=1
37671fi
37672
37673if test "$wxUSE_SASH" = "yes"; then
37674 cat >>confdefs.h <<\_ACEOF
37675#define wxUSE_SASH 1
37676_ACEOF
37677
37678 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
37679fi
37680
37681if test "$wxUSE_SCROLLBAR" = "yes"; then
37682 cat >>confdefs.h <<\_ACEOF
37683#define wxUSE_SCROLLBAR 1
37684_ACEOF
37685
37686 USES_CONTROLS=1
37687 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
37688fi
37689
37690if test "$wxUSE_SLIDER" = "yes"; then
37691 cat >>confdefs.h <<\_ACEOF
37692#define wxUSE_SLIDER 1
37693_ACEOF
37694
37695 USES_CONTROLS=1
37696fi
37697
37698if test "$wxUSE_SPINBTN" = "yes"; then
37699 cat >>confdefs.h <<\_ACEOF
37700#define wxUSE_SPINBTN 1
37701_ACEOF
37702
37703 USES_CONTROLS=1
37704fi
37705
37706if test "$wxUSE_SPINCTRL" = "yes"; then
37707 cat >>confdefs.h <<\_ACEOF
37708#define wxUSE_SPINCTRL 1
37709_ACEOF
37710
37711 USES_CONTROLS=1
37712fi
37713
37714if test "$wxUSE_SPLITTER" = "yes"; then
37715 cat >>confdefs.h <<\_ACEOF
37716#define wxUSE_SPLITTER 1
37717_ACEOF
37718
37719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
37720fi
37721
37722if test "$wxUSE_STATBMP" = "yes"; then
37723 cat >>confdefs.h <<\_ACEOF
37724#define wxUSE_STATBMP 1
37725_ACEOF
37726
37727 USES_CONTROLS=1
37728fi
37729
37730if test "$wxUSE_STATBOX" = "yes"; then
37731 cat >>confdefs.h <<\_ACEOF
37732#define wxUSE_STATBOX 1
37733_ACEOF
37734
37735 USES_CONTROLS=1
37736fi
37737
37738if test "$wxUSE_STATTEXT" = "yes"; then
37739 cat >>confdefs.h <<\_ACEOF
37740#define wxUSE_STATTEXT 1
37741_ACEOF
37742
37743 USES_CONTROLS=1
37744fi
37745
37746if test "$wxUSE_STATLINE" = "yes"; then
37747 cat >>confdefs.h <<\_ACEOF
37748#define wxUSE_STATLINE 1
37749_ACEOF
37750
37751 USES_CONTROLS=1
37752fi
37753
37754if test "$wxUSE_STATUSBAR" = "yes"; then
37755 cat >>confdefs.h <<\_ACEOF
37756#define wxUSE_STATUSBAR 1
37757_ACEOF
37758
37759 USES_CONTROLS=1
37760
37761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
37762fi
37763
37764if test "$wxUSE_TABDIALOG" = "yes"; then
37765 cat >>confdefs.h <<\_ACEOF
37766#define wxUSE_TAB_DIALOG 1
37767_ACEOF
37768
37769 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
37770fi
37771
37772if test "$wxUSE_TEXTCTRL" = "yes"; then
37773 cat >>confdefs.h <<\_ACEOF
37774#define wxUSE_TEXTCTRL 1
37775_ACEOF
37776
37777 USES_CONTROLS=1
37778 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
37779fi
37780
37781if test "$wxUSE_TOGGLEBTN" = "yes"; then
37782 if test "$wxUSE_COCOA" = 1 ; then
37783 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
37784echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
37785 wxUSE_TOGGLEBTN=no
bdcade0a
MB
37786 else
37787 if test "$wxUSE_PM" = 1; then
37788 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under PM... disabled" >&5
37789echo "$as_me: WARNING: Toggle button not yet supported under PM... disabled" >&2;}
37790 wxUSE_TOGGLEBTN=no
37791 fi
a848cd7e
SC
37792 fi
37793 if test "$wxUSE_UNIVERSAL" = "yes"; then
37794 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
37795echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
37796 wxUSE_TOGGLEBTN=no
37797 fi
37798
37799 if test "$wxUSE_TOGGLEBTN" = "yes"; then
37800 cat >>confdefs.h <<\_ACEOF
37801#define wxUSE_TOGGLEBTN 1
37802_ACEOF
37803
37804 USES_CONTROLS=1
37805 fi
37806fi
37807
37808if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
37809 cat >>confdefs.h <<\_ACEOF
37810#define wxUSE_TOOLBAR_SIMPLE 1
37811_ACEOF
37812
37813 wxUSE_TOOLBAR="yes"
37814 USES_CONTROLS=1
37815fi
37816
37817if test "$wxUSE_TOOLBAR" = "yes"; then
37818 cat >>confdefs.h <<\_ACEOF
37819#define wxUSE_TOOLBAR 1
37820_ACEOF
37821
37822 USES_CONTROLS=1
37823
37824 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
37825 wxUSE_TOOLBAR_NATIVE="yes"
37826 fi
37827
37828 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
37829 cat >>confdefs.h <<\_ACEOF
37830#define wxUSE_TOOLBAR_NATIVE 1
37831_ACEOF
37832
37833 USES_CONTROLS=1
37834 fi
37835
37836 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
37837fi
37838
37839if test "$wxUSE_TOOLTIPS" = "yes"; then
37840 if test "$wxUSE_MOTIF" = 1; then
37841 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37842echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
37843 else
37844 if test "$wxUSE_UNIVERSAL" = "yes"; then
37845 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37846echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
37847 else
37848 cat >>confdefs.h <<\_ACEOF
37849#define wxUSE_TOOLTIPS 1
37850_ACEOF
37851
37852 fi
37853 fi
37854fi
37855
37856if test "$wxUSE_TREECTRL" = "yes"; then
37857 if test "$wxUSE_IMAGLIST" = "yes"; then
37858 cat >>confdefs.h <<\_ACEOF
37859#define wxUSE_TREECTRL 1
37860_ACEOF
37861
37862 USES_CONTROLS=1
37863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37864 else
37865 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37866echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
37867 fi
37868fi
37869
37870if test "$wxUSE_POPUPWIN" = "yes"; then
37871 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
37872 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37873echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
37874 else
37875 if test "$wxUSE_PM" = 1; then
37876 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
37877echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
37878 else
37879 cat >>confdefs.h <<\_ACEOF
37880#define wxUSE_POPUPWIN 1
37881_ACEOF
37882
37883
37884 USES_CONTROLS=1
37885 fi
37886 fi
37887fi
37888
37889if test "$wxUSE_TIPWINDOW" = "yes"; then
37890 if test "$wxUSE_PM" = 1; then
37891 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37892echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
37893 else
37894 cat >>confdefs.h <<\_ACEOF
37895#define wxUSE_TIPWINDOW 1
37896_ACEOF
37897
37898 fi
37899fi
37900
37901if test "$USES_CONTROLS" = 1; then
37902 cat >>confdefs.h <<\_ACEOF
37903#define wxUSE_CONTROLS 1
37904_ACEOF
37905
37906fi
37907
37908
37909if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37910 cat >>confdefs.h <<\_ACEOF
37911#define wxUSE_ACCESSIBILITY 1
37912_ACEOF
37913
37914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37915fi
37916
37917if test "$wxUSE_DRAGIMAGE" = "yes"; then
37918 cat >>confdefs.h <<\_ACEOF
37919#define wxUSE_DRAGIMAGE 1
37920_ACEOF
37921
37922 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37923fi
37924
37925if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
37926 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
37927 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
37928echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
37929 else
37930 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
37931#define wxUSE_EXCEPTIONS 1
37932_ACEOF
37933
07bea8f0
VS
37934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
37935 fi
a848cd7e
SC
37936fi
37937
37938USE_HTML=0
37939if test "$wxUSE_HTML" = "yes"; then
37940 cat >>confdefs.h <<\_ACEOF
37941#define wxUSE_HTML 1
37942_ACEOF
37943
37944 USE_HTML=1
37945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
37946 if test "$wxUSE_MAC" = 1; then
37947 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
37948 fi
a848cd7e 37949fi
646b6ec1 37950if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 37951 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
37952 old_CPPFLAGS="$CPPFLAGS"
37953 CPPFLAGS="$CPPFLAGS -x objective-c++"
37954 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
37955echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
37956if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
37957 echo $ECHO_N "(cached) $ECHO_C" >&6
37958else
37959 cat >conftest.$ac_ext <<_ACEOF
37960/* confdefs.h. */
37961_ACEOF
37962cat confdefs.h >>conftest.$ac_ext
37963cat >>conftest.$ac_ext <<_ACEOF
37964/* end confdefs.h. */
37965#include <Carbon/Carbon.h>
37966
37967#include <WebKit/HIWebView.h>
37968_ACEOF
37969rm -f conftest.$ac_objext
37970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37971 (eval $ac_compile) 2>conftest.er1
37972 ac_status=$?
37973 grep -v '^ *+' conftest.er1 >conftest.err
37974 rm -f conftest.er1
37975 cat conftest.err >&5
37976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); } &&
04840eaa
VS
37978 { ac_try='test -z "$ac_c_werror_flag"
37979 || test ! -s conftest.err'
07bea8f0
VS
37980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37981 (eval $ac_try) 2>&5
37982 ac_status=$?
37983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37984 (exit $ac_status); }; } &&
37985 { ac_try='test -s conftest.$ac_objext'
37986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37987 (eval $ac_try) 2>&5
37988 ac_status=$?
37989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37990 (exit $ac_status); }; }; then
37991 ac_cv_header_WebKit_HIWebView_h=yes
37992else
37993 echo "$as_me: failed program was:" >&5
37994sed 's/^/| /' conftest.$ac_ext >&5
37995
37996ac_cv_header_WebKit_HIWebView_h=no
37997fi
37998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37999fi
38000echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
38001echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
38002if test $ac_cv_header_WebKit_HIWebView_h = yes; then
38003
38004 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
38005#define wxUSE_WEBKIT 1
38006_ACEOF
38007
07bea8f0
VS
38008 WEBKIT_LINK="-framework WebKit"
38009
38010else
38011
38012 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
38013echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
38014 wxUSE_WEBKIT=no
38015
646b6ec1
VS
38016fi
38017
07bea8f0
VS
38018
38019 CPPFLAGS="$old_CPPFLAGS"
38020 elif test "$wxUSE_COCOA" = 1; then
38021 cat >>confdefs.h <<\_ACEOF
38022#define wxUSE_WEBKIT 1
38023_ACEOF
38024
38025 else
38026 wxUSE_WEBKIT=no
38027 fi
38028fi
38029
9a8f0513
VS
38030USE_XRC=0
38031if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
38032 if test "$wxUSE_XML" != "yes"; then
38033 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
38034echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
38035 wxUSE_XRC=no
38036 else
38037 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
38038#define wxUSE_XRC 1
38039_ACEOF
38040
d2ebf0b7
VS
38041 USE_XRC=1
38042 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
38043 fi
9a8f0513 38044fi
07bea8f0 38045
a848cd7e
SC
38046if test "$wxUSE_MENUS" = "yes"; then
38047 cat >>confdefs.h <<\_ACEOF
38048#define wxUSE_MENUS 1
38049_ACEOF
38050
38051 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
38052fi
38053
38054if test "$wxUSE_METAFILE" = "yes"; then
38055 cat >>confdefs.h <<\_ACEOF
38056#define wxUSE_METAFILE 1
38057_ACEOF
38058
38059fi
38060
38061if test "$wxUSE_MIMETYPE" = "yes"; then
38062 cat >>confdefs.h <<\_ACEOF
38063#define wxUSE_MIMETYPE 1
38064_ACEOF
38065
38066fi
38067
38068if test "$wxUSE_MINIFRAME" = "yes"; then
38069 cat >>confdefs.h <<\_ACEOF
38070#define wxUSE_MINIFRAME 1
38071_ACEOF
38072
38073 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
38074fi
38075
38076if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
38077 cat >>confdefs.h <<\_ACEOF
38078#define wxUSE_SYSTEM_OPTIONS 1
38079_ACEOF
38080
38081 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 38082 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
38083 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
38084 fi
38085fi
38086
38087
38088if test "$wxUSE_VALIDATORS" = "yes"; then
38089 cat >>confdefs.h <<\_ACEOF
38090#define wxUSE_VALIDATORS 1
38091_ACEOF
38092
38093 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
38094fi
38095
38096if test "$wxUSE_PALETTE" = "yes" ; then
38097 cat >>confdefs.h <<\_ACEOF
38098#define wxUSE_PALETTE 1
38099_ACEOF
38100
38101fi
38102
38103if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
38104 LIBS=" -lunicows $LIBS"
38105fi
38106
38107
38108if test "$wxUSE_IMAGE" = "yes" ; then
38109 cat >>confdefs.h <<\_ACEOF
38110#define wxUSE_IMAGE 1
38111_ACEOF
38112
38113
38114 if test "$wxUSE_GIF" = "yes" ; then
38115 cat >>confdefs.h <<\_ACEOF
38116#define wxUSE_GIF 1
38117_ACEOF
38118
38119 fi
38120
38121 if test "$wxUSE_PCX" = "yes" ; then
38122 cat >>confdefs.h <<\_ACEOF
38123#define wxUSE_PCX 1
38124_ACEOF
38125
38126 fi
38127
38128 if test "$wxUSE_IFF" = "yes" ; then
38129 cat >>confdefs.h <<\_ACEOF
38130#define wxUSE_IFF 1
38131_ACEOF
38132
38133 fi
38134
38135 if test "$wxUSE_PNM" = "yes" ; then
38136 cat >>confdefs.h <<\_ACEOF
38137#define wxUSE_PNM 1
38138_ACEOF
38139
38140 fi
38141
38142 if test "$wxUSE_XPM" = "yes" ; then
38143 cat >>confdefs.h <<\_ACEOF
38144#define wxUSE_XPM 1
38145_ACEOF
38146
38147 fi
38148
38149 if test "$wxUSE_ICO_CUR" = "yes" ; then
38150 cat >>confdefs.h <<\_ACEOF
38151#define wxUSE_ICO_CUR 1
38152_ACEOF
38153
38154 fi
38155fi
38156
38157
38158if test "$wxUSE_CHOICEDLG" = "yes"; then
38159 cat >>confdefs.h <<\_ACEOF
38160#define wxUSE_CHOICEDLG 1
38161_ACEOF
38162
38163fi
38164
38165if test "$wxUSE_COLOURDLG" = "yes"; then
38166 cat >>confdefs.h <<\_ACEOF
38167#define wxUSE_COLOURDLG 1
38168_ACEOF
38169
38170fi
38171
38172if test "$wxUSE_FILEDLG" = "yes"; then
38173 cat >>confdefs.h <<\_ACEOF
38174#define wxUSE_FILEDLG 1
38175_ACEOF
38176
38177fi
38178
38179if test "$wxUSE_FINDREPLDLG" = "yes"; then
38180 cat >>confdefs.h <<\_ACEOF
38181#define wxUSE_FINDREPLDLG 1
38182_ACEOF
38183
38184fi
38185
38186if test "$wxUSE_FONTDLG" = "yes"; then
38187 cat >>confdefs.h <<\_ACEOF
38188#define wxUSE_FONTDLG 1
38189_ACEOF
38190
38191fi
38192
38193if test "$wxUSE_DIRDLG" = "yes"; then
38194 if test "$wxUSE_TREECTRL" != "yes"; then
38195 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
38196echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
38197 else
38198 cat >>confdefs.h <<\_ACEOF
38199#define wxUSE_DIRDLG 1
38200_ACEOF
38201
38202 fi
38203fi
38204
38205if test "$wxUSE_MSGDLG" = "yes"; then
38206 cat >>confdefs.h <<\_ACEOF
38207#define wxUSE_MSGDLG 1
38208_ACEOF
38209
38210fi
38211
38212if test "$wxUSE_NUMBERDLG" = "yes"; then
38213 cat >>confdefs.h <<\_ACEOF
38214#define wxUSE_NUMBERDLG 1
38215_ACEOF
38216
38217fi
38218
38219if test "$wxUSE_PROGRESSDLG" = "yes"; then
38220 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38221 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
38222echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
38223 else
38224 cat >>confdefs.h <<\_ACEOF
38225#define wxUSE_PROGRESSDLG 1
38226_ACEOF
38227
38228 fi
38229fi
38230
38231if test "$wxUSE_SPLASH" = "yes"; then
38232 cat >>confdefs.h <<\_ACEOF
38233#define wxUSE_SPLASH 1
38234_ACEOF
38235
2057db16 38236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
38237fi
38238
38239if test "$wxUSE_STARTUP_TIPS" = "yes"; then
38240 if test "$wxUSE_CONSTRAINTS" != "yes"; then
38241 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
38242echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
38243 else
38244 cat >>confdefs.h <<\_ACEOF
38245#define wxUSE_STARTUP_TIPS 1
38246_ACEOF
38247
38248 fi
38249fi
38250
38251if test "$wxUSE_TEXTDLG" = "yes"; then
38252 cat >>confdefs.h <<\_ACEOF
38253#define wxUSE_TEXTDLG 1
38254_ACEOF
38255
38256fi
38257
38258if test "$wxUSE_WIZARDDLG" = "yes"; then
38259 cat >>confdefs.h <<\_ACEOF
38260#define wxUSE_WIZARDDLG 1
38261_ACEOF
38262
38263 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
38264fi
38265
38266
38267if test "$cross_compiling" = "yes"; then
38268 OSINFO="\"$host\""
38269else
38270 OSINFO=`uname -s -r -m`
38271 OSINFO="\"$OSINFO\""
38272fi
38273
38274cat >>confdefs.h <<_ACEOF
38275#define WXWIN_OS_DESCRIPTION $OSINFO
38276_ACEOF
38277
38278
38279
38280if test "x$prefix" != "xNONE"; then
38281 wxPREFIX=$prefix
38282else
38283 wxPREFIX=$ac_default_prefix
38284fi
38285
38286cat >>confdefs.h <<_ACEOF
38287#define wxINSTALL_PREFIX "$wxPREFIX"
38288_ACEOF
38289
38290
a848cd7e
SC
38291
38292
38293CORE_BASE_LIBS="net base"
38294CORE_GUI_LIBS="adv core"
38295
38296if test "$wxUSE_XML" = "yes" ; then
38297 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
38298fi
38299if test "$wxUSE_ODBC" != "no" ; then
38300 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
38301 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
38302fi
38303if test "$wxUSE_HTML" = "yes" ; then
38304 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
38305fi
9a8f0513
VS
38306if test "$wxUSE_XRC" = "yes" ; then
38307 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
38308fi
a848cd7e
SC
38309
38310if test "$wxUSE_GUI" != "yes"; then
38311 CORE_GUI_LIBS=""
38312fi
38313
38314
38315
38316
38317
38318
38319
38320
38321if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 38322 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
38323 if test "$USE_DARWIN" = 1; then
38324 LDFLAGS="$LDFLAGS -framework QuickTime"
38325 else
38326 LDFLAGS="$LDFLAGS -lQuickTimeLib"
38327 fi
07bea8f0 38328 fi
5dcf30a0 38329 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
38330 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
38331 else
38332 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 38333 fi
a848cd7e
SC
38334fi
38335if test "$wxUSE_COCOA" = 1 ; then
f7e98dee 38336 LDFLAGS="$LDFLAGS -framework Cocoa"
a848cd7e
SC
38337fi
38338
38339
38340LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
38341
38342have_cos=0
38343have_floor=0
38344
38345for ac_func in cos
38346do
38347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38348echo "$as_me:$LINENO: checking for $ac_func" >&5
38349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38350if eval "test \"\${$as_ac_var+set}\" = set"; then
38351 echo $ECHO_N "(cached) $ECHO_C" >&6
38352else
38353 cat >conftest.$ac_ext <<_ACEOF
38354/* confdefs.h. */
38355_ACEOF
38356cat confdefs.h >>conftest.$ac_ext
38357cat >>conftest.$ac_ext <<_ACEOF
38358/* end confdefs.h. */
ac1cb8d3
VS
38359/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38361#define $ac_func innocuous_$ac_func
38362
a848cd7e
SC
38363/* System header to define __stub macros and hopefully few prototypes,
38364 which can conflict with char $ac_func (); below.
38365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38366 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38367
a848cd7e
SC
38368#ifdef __STDC__
38369# include <limits.h>
38370#else
38371# include <assert.h>
38372#endif
ac1cb8d3
VS
38373
38374#undef $ac_func
38375
a848cd7e
SC
38376/* Override any gcc2 internal prototype to avoid an error. */
38377#ifdef __cplusplus
38378extern "C"
38379{
38380#endif
38381/* We use char because int might match the return type of a gcc2
38382 builtin and then its argument prototype would still apply. */
38383char $ac_func ();
38384/* The GNU C library defines this for functions which it implements
38385 to always fail with ENOSYS. Some functions are actually named
38386 something starting with __ and the normal name is an alias. */
38387#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38388choke me
38389#else
38390char (*f) () = $ac_func;
38391#endif
38392#ifdef __cplusplus
38393}
38394#endif
38395
38396int
38397main ()
38398{
38399return f != $ac_func;
38400 ;
38401 return 0;
38402}
38403_ACEOF
38404rm -f conftest.$ac_objext conftest$ac_exeext
38405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38406 (eval $ac_link) 2>conftest.er1
a848cd7e 38407 ac_status=$?
ac1cb8d3
VS
38408 grep -v '^ *+' conftest.er1 >conftest.err
38409 rm -f conftest.er1
38410 cat conftest.err >&5
a848cd7e
SC
38411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38412 (exit $ac_status); } &&
04840eaa
VS
38413 { ac_try='test -z "$ac_c_werror_flag"
38414 || test ! -s conftest.err'
ac1cb8d3
VS
38415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38416 (eval $ac_try) 2>&5
38417 ac_status=$?
38418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38419 (exit $ac_status); }; } &&
38420 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38422 (eval $ac_try) 2>&5
38423 ac_status=$?
38424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38425 (exit $ac_status); }; }; then
38426 eval "$as_ac_var=yes"
38427else
38428 echo "$as_me: failed program was:" >&5
38429sed 's/^/| /' conftest.$ac_ext >&5
38430
38431eval "$as_ac_var=no"
38432fi
ac1cb8d3
VS
38433rm -f conftest.err conftest.$ac_objext \
38434 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38435fi
38436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38437echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38438if test `eval echo '${'$as_ac_var'}'` = yes; then
38439 cat >>confdefs.h <<_ACEOF
38440#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38441_ACEOF
38442 have_cos=1
38443fi
38444done
38445
38446
38447for ac_func in floor
38448do
38449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38450echo "$as_me:$LINENO: checking for $ac_func" >&5
38451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38452if eval "test \"\${$as_ac_var+set}\" = set"; then
38453 echo $ECHO_N "(cached) $ECHO_C" >&6
38454else
38455 cat >conftest.$ac_ext <<_ACEOF
38456/* confdefs.h. */
38457_ACEOF
38458cat confdefs.h >>conftest.$ac_ext
38459cat >>conftest.$ac_ext <<_ACEOF
38460/* end confdefs.h. */
ac1cb8d3
VS
38461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38463#define $ac_func innocuous_$ac_func
38464
a848cd7e
SC
38465/* System header to define __stub macros and hopefully few prototypes,
38466 which can conflict with char $ac_func (); below.
38467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38468 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38469
a848cd7e
SC
38470#ifdef __STDC__
38471# include <limits.h>
38472#else
38473# include <assert.h>
38474#endif
ac1cb8d3
VS
38475
38476#undef $ac_func
38477
a848cd7e
SC
38478/* Override any gcc2 internal prototype to avoid an error. */
38479#ifdef __cplusplus
38480extern "C"
38481{
38482#endif
38483/* We use char because int might match the return type of a gcc2
38484 builtin and then its argument prototype would still apply. */
38485char $ac_func ();
38486/* The GNU C library defines this for functions which it implements
38487 to always fail with ENOSYS. Some functions are actually named
38488 something starting with __ and the normal name is an alias. */
38489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38490choke me
38491#else
38492char (*f) () = $ac_func;
38493#endif
38494#ifdef __cplusplus
38495}
38496#endif
38497
38498int
38499main ()
38500{
38501return f != $ac_func;
38502 ;
38503 return 0;
38504}
38505_ACEOF
38506rm -f conftest.$ac_objext conftest$ac_exeext
38507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38508 (eval $ac_link) 2>conftest.er1
a848cd7e 38509 ac_status=$?
ac1cb8d3
VS
38510 grep -v '^ *+' conftest.er1 >conftest.err
38511 rm -f conftest.er1
38512 cat conftest.err >&5
a848cd7e
SC
38513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38514 (exit $ac_status); } &&
04840eaa
VS
38515 { ac_try='test -z "$ac_c_werror_flag"
38516 || test ! -s conftest.err'
ac1cb8d3
VS
38517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38518 (eval $ac_try) 2>&5
38519 ac_status=$?
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); }; } &&
38522 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38524 (eval $ac_try) 2>&5
38525 ac_status=$?
38526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38527 (exit $ac_status); }; }; then
38528 eval "$as_ac_var=yes"
38529else
38530 echo "$as_me: failed program was:" >&5
38531sed 's/^/| /' conftest.$ac_ext >&5
38532
38533eval "$as_ac_var=no"
38534fi
ac1cb8d3
VS
38535rm -f conftest.err conftest.$ac_objext \
38536 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38537fi
38538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38539echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38540if test `eval echo '${'$as_ac_var'}'` = yes; then
38541 cat >>confdefs.h <<_ACEOF
38542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38543_ACEOF
38544 have_floor=1
38545fi
38546done
38547
38548echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
38549echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
38550if test "$have_cos" = 1 -a "$have_floor" = 1; then
38551 echo "$as_me:$LINENO: result: yes" >&5
38552echo "${ECHO_T}yes" >&6
38553else
38554 echo "$as_me:$LINENO: result: no" >&5
38555echo "${ECHO_T}no" >&6
38556 LIBS="$LIBS -lm"
38557 # use different functions to avoid configure caching
38558 have_sin=0
38559 have_ceil=0
38560
38561for ac_func in sin
38562do
38563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38564echo "$as_me:$LINENO: checking for $ac_func" >&5
38565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38566if eval "test \"\${$as_ac_var+set}\" = set"; then
38567 echo $ECHO_N "(cached) $ECHO_C" >&6
38568else
38569 cat >conftest.$ac_ext <<_ACEOF
38570/* confdefs.h. */
38571_ACEOF
38572cat confdefs.h >>conftest.$ac_ext
38573cat >>conftest.$ac_ext <<_ACEOF
38574/* end confdefs.h. */
ac1cb8d3
VS
38575/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38577#define $ac_func innocuous_$ac_func
38578
a848cd7e
SC
38579/* System header to define __stub macros and hopefully few prototypes,
38580 which can conflict with char $ac_func (); below.
38581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38582 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38583
a848cd7e
SC
38584#ifdef __STDC__
38585# include <limits.h>
38586#else
38587# include <assert.h>
38588#endif
ac1cb8d3
VS
38589
38590#undef $ac_func
38591
a848cd7e
SC
38592/* Override any gcc2 internal prototype to avoid an error. */
38593#ifdef __cplusplus
38594extern "C"
38595{
38596#endif
38597/* We use char because int might match the return type of a gcc2
38598 builtin and then its argument prototype would still apply. */
38599char $ac_func ();
38600/* The GNU C library defines this for functions which it implements
38601 to always fail with ENOSYS. Some functions are actually named
38602 something starting with __ and the normal name is an alias. */
38603#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38604choke me
38605#else
38606char (*f) () = $ac_func;
38607#endif
38608#ifdef __cplusplus
38609}
38610#endif
38611
38612int
38613main ()
38614{
38615return f != $ac_func;
38616 ;
38617 return 0;
38618}
38619_ACEOF
38620rm -f conftest.$ac_objext conftest$ac_exeext
38621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38622 (eval $ac_link) 2>conftest.er1
a848cd7e 38623 ac_status=$?
ac1cb8d3
VS
38624 grep -v '^ *+' conftest.er1 >conftest.err
38625 rm -f conftest.er1
38626 cat conftest.err >&5
a848cd7e
SC
38627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38628 (exit $ac_status); } &&
04840eaa
VS
38629 { ac_try='test -z "$ac_c_werror_flag"
38630 || test ! -s conftest.err'
ac1cb8d3
VS
38631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38632 (eval $ac_try) 2>&5
38633 ac_status=$?
38634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38635 (exit $ac_status); }; } &&
38636 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38638 (eval $ac_try) 2>&5
38639 ac_status=$?
38640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38641 (exit $ac_status); }; }; then
38642 eval "$as_ac_var=yes"
38643else
38644 echo "$as_me: failed program was:" >&5
38645sed 's/^/| /' conftest.$ac_ext >&5
38646
38647eval "$as_ac_var=no"
38648fi
ac1cb8d3
VS
38649rm -f conftest.err conftest.$ac_objext \
38650 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38651fi
38652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38653echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38654if test `eval echo '${'$as_ac_var'}'` = yes; then
38655 cat >>confdefs.h <<_ACEOF
38656#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38657_ACEOF
38658 have_sin=1
38659fi
38660done
38661
38662
38663for ac_func in ceil
38664do
38665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38666echo "$as_me:$LINENO: checking for $ac_func" >&5
38667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38668if eval "test \"\${$as_ac_var+set}\" = set"; then
38669 echo $ECHO_N "(cached) $ECHO_C" >&6
38670else
38671 cat >conftest.$ac_ext <<_ACEOF
38672/* confdefs.h. */
38673_ACEOF
38674cat confdefs.h >>conftest.$ac_ext
38675cat >>conftest.$ac_ext <<_ACEOF
38676/* end confdefs.h. */
ac1cb8d3
VS
38677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38679#define $ac_func innocuous_$ac_func
38680
a848cd7e
SC
38681/* System header to define __stub macros and hopefully few prototypes,
38682 which can conflict with char $ac_func (); below.
38683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38684 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38685
a848cd7e
SC
38686#ifdef __STDC__
38687# include <limits.h>
38688#else
38689# include <assert.h>
38690#endif
ac1cb8d3
VS
38691
38692#undef $ac_func
38693
a848cd7e
SC
38694/* Override any gcc2 internal prototype to avoid an error. */
38695#ifdef __cplusplus
38696extern "C"
38697{
38698#endif
38699/* We use char because int might match the return type of a gcc2
38700 builtin and then its argument prototype would still apply. */
38701char $ac_func ();
38702/* The GNU C library defines this for functions which it implements
38703 to always fail with ENOSYS. Some functions are actually named
38704 something starting with __ and the normal name is an alias. */
38705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38706choke me
38707#else
38708char (*f) () = $ac_func;
38709#endif
38710#ifdef __cplusplus
38711}
38712#endif
38713
38714int
38715main ()
38716{
38717return f != $ac_func;
38718 ;
38719 return 0;
38720}
38721_ACEOF
38722rm -f conftest.$ac_objext conftest$ac_exeext
38723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38724 (eval $ac_link) 2>conftest.er1
a848cd7e 38725 ac_status=$?
ac1cb8d3
VS
38726 grep -v '^ *+' conftest.er1 >conftest.err
38727 rm -f conftest.er1
38728 cat conftest.err >&5
a848cd7e
SC
38729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38730 (exit $ac_status); } &&
04840eaa
VS
38731 { ac_try='test -z "$ac_c_werror_flag"
38732 || test ! -s conftest.err'
ac1cb8d3
VS
38733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38734 (eval $ac_try) 2>&5
38735 ac_status=$?
38736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38737 (exit $ac_status); }; } &&
38738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38740 (eval $ac_try) 2>&5
38741 ac_status=$?
38742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38743 (exit $ac_status); }; }; then
38744 eval "$as_ac_var=yes"
38745else
38746 echo "$as_me: failed program was:" >&5
38747sed 's/^/| /' conftest.$ac_ext >&5
38748
38749eval "$as_ac_var=no"
38750fi
ac1cb8d3
VS
38751rm -f conftest.err conftest.$ac_objext \
38752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38753fi
38754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38755echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38756if test `eval echo '${'$as_ac_var'}'` = yes; then
38757 cat >>confdefs.h <<_ACEOF
38758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38759_ACEOF
38760 have_ceil=1
38761fi
38762done
38763
38764 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
38765echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
38766 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
38767 echo "$as_me:$LINENO: result: yes" >&5
38768echo "${ECHO_T}yes" >&6
38769 else
38770 echo "$as_me:$LINENO: result: no" >&5
38771echo "${ECHO_T}no" >&6
38772 # not sure we should warn the user, crash, etc.
38773 fi
38774fi
38775
38776if test "$wxUSE_GUI" = "yes"; then
38777
38778
38779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
38780 drawing dynamic erase event exec font image \
38781 minimal propsize rotate shaped widgets render"
38782
38783 if test "$wxUSE_MONOLITHIC" != "yes"; then
38784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
38785 fi
38786else
38787 SAMPLES_SUBDIRS="console"
38788fi
38789
38790
ceec2216 38791INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
a848cd7e
SC
38792-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
38793
38794if test "$GXX" = yes ; then
5294a27e
VZ
38795 CWARNINGS="-Wall"
38796 CXXWARNINGS="$CWARNINGS -Wno-ctor-dtor-privacy"
a848cd7e
SC
38797 fi
38798
38799EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
38800
0c3c69fc 38801CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS`
5294a27e 38802CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CWARNINGS`
0c3c69fc 38803CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS`
a848cd7e
SC
38804
38805
0c3c69fc 38806LIBS=`echo $LIBS`
a848cd7e
SC
38807EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
38808EXTRALIBS_XML="$EXPAT_LINK"
38809EXTRALIBS_HTML="$MSPACK_LINK"
38810EXTRALIBS_ODBC="$ODBC_LINK"
38811if test "$wxUSE_GUI" = "yes"; then
0c3c69fc 38812 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK`
a848cd7e
SC
38813fi
38814if test "$wxUSE_OPENGL" = "yes"; then
38815 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
38816fi
38817
38818LDFLAGS="$LDFLAGS $PROFILE"
38819
38820if test "$wxUSE_GTK" = 1; then
38821 WXCONFIG_INCLUDE=
38822else
38823 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
38824fi
38825
38826WXCONFIG_EXTRALIBS="$LIBS"
38827
38828if test "$wxUSE_REGEX" = "builtin" ; then
38829 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
38830fi
38831if test "$wxUSE_EXPAT" = "builtin" ; then
38832 wxconfig_3rdparty="$wxconfig_3rdparty expat"
38833fi
38834if test "$wxUSE_ODBC" = "builtin" ; then
38835 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38836fi
38837if test "$wxUSE_LIBTIFF" = "builtin" ; then
38838 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
38839fi
38840if test "$wxUSE_LIBJPEG" = "builtin" ; then
38841 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
38842fi
38843if test "$wxUSE_LIBPNG" = "builtin" ; then
38844 wxconfig_3rdparty="$wxconfig_3rdparty png"
38845fi
38846if test "$wxUSE_ZLIB" = "builtin" ; then
38847 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
38848fi
38849if test "$wxUSE_ODBC" = "builtin" ; then
38850 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
38851fi
38852
38853for i in $wxconfig_3rdparty ; do
ceec2216 38854 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
a848cd7e
SC
38855done
38856
38857
38858if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
38859 WXUNIV=1
38860else
38861 WXUNIV=0
38862fi
38863
38864
38865
38866
38867
38868
38869
38870
38871
38872if test $wxUSE_MONOLITHIC = "yes" ; then
38873 MONOLITHIC=1
38874else
38875 MONOLITHIC=0
38876fi
38877
38878if test $wxUSE_PLUGINS = "yes" ; then
38879 USE_PLUGINS=1
38880else
38881 USE_PLUGINS=0
38882fi
38883
38884if test $wxUSE_ODBC != "no" ; then
38885 USE_ODBC=1
38886else
38887 USE_ODBC=0
38888fi
38889
38890if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
38891 OFFICIAL_BUILD=1
38892else
38893 OFFICIAL_BUILD=0
38894fi
38895
38896
38897
38898
38899
38900
38901
38902
38903
38904
38905
38906
38907
38908
38909
38910
38911
38912
38913
ceec2216 38914
d1c38808 38915
a848cd7e
SC
38916
38917
38918TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
38919
38920
38921
38922
38923
38924
38925
38926
4d4ff94c
VZ
38927case "$TOOLKIT" in
38928 GTK)
38929 TOOLKIT_USER="GTK+"
38930 if test "$WXGTK20" = 1; then
38931 TOOLKIT_USER="$TOOLKIT_USER 2"
38932 fi
9a8f0513 38933 ;;
4d4ff94c
VZ
38934
38935 *)
38936 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 38937 ;;
4d4ff94c 38938esac
a848cd7e 38939
9a8f0513 38940
1e9e8aba
DE
38941
38942
a848cd7e
SC
38943 if test "x$BAKEFILE_HOST" = "x"; then
38944 BAKEFILE_HOST="${host}"
38945 fi
38946
38947 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
38948
38949 if test -n "$ac_tool_prefix"; then
38950 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
38951set dummy ${ac_tool_prefix}ranlib; ac_word=$2
38952echo "$as_me:$LINENO: checking for $ac_word" >&5
38953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38954if test "${ac_cv_prog_RANLIB+set}" = set; then
38955 echo $ECHO_N "(cached) $ECHO_C" >&6
38956else
38957 if test -n "$RANLIB"; then
38958 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
38959else
38960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38961for as_dir in $PATH
38962do
38963 IFS=$as_save_IFS
38964 test -z "$as_dir" && as_dir=.
38965 for ac_exec_ext in '' $ac_executable_extensions; do
38966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38967 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38969 break 2
38970 fi
38971done
38972done
38973
38974fi
38975fi
38976RANLIB=$ac_cv_prog_RANLIB
38977if test -n "$RANLIB"; then
38978 echo "$as_me:$LINENO: result: $RANLIB" >&5
38979echo "${ECHO_T}$RANLIB" >&6
38980else
38981 echo "$as_me:$LINENO: result: no" >&5
38982echo "${ECHO_T}no" >&6
38983fi
38984
38985fi
38986if test -z "$ac_cv_prog_RANLIB"; then
38987 ac_ct_RANLIB=$RANLIB
38988 # Extract the first word of "ranlib", so it can be a program name with args.
38989set dummy ranlib; ac_word=$2
38990echo "$as_me:$LINENO: checking for $ac_word" >&5
38991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38992if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38993 echo $ECHO_N "(cached) $ECHO_C" >&6
38994else
38995 if test -n "$ac_ct_RANLIB"; then
38996 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38997else
38998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38999for as_dir in $PATH
39000do
39001 IFS=$as_save_IFS
39002 test -z "$as_dir" && as_dir=.
39003 for ac_exec_ext in '' $ac_executable_extensions; do
39004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39005 ac_cv_prog_ac_ct_RANLIB="ranlib"
39006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39007 break 2
39008 fi
39009done
39010done
39011
39012 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
39013fi
39014fi
39015ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
39016if test -n "$ac_ct_RANLIB"; then
39017 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
39018echo "${ECHO_T}$ac_ct_RANLIB" >&6
39019else
39020 echo "$as_me:$LINENO: result: no" >&5
39021echo "${ECHO_T}no" >&6
39022fi
39023
39024 RANLIB=$ac_ct_RANLIB
39025else
39026 RANLIB="$ac_cv_prog_RANLIB"
39027fi
39028
39029 # Find a good install program. We prefer a C program (faster),
39030# so one script is as good as another. But avoid the broken or
39031# incompatible versions:
39032# SysV /etc/install, /usr/sbin/install
39033# SunOS /usr/etc/install
39034# IRIX /sbin/install
39035# AIX /bin/install
39036# AmigaOS /C/install, which installs bootblocks on floppy discs
39037# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
39038# AFS /usr/afsws/bin/install, which mishandles nonexistent args
39039# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 39040# OS/2's system install, which has a completely different semantic
a848cd7e
SC
39041# ./install, which can be erroneously created by make from ./install.sh.
39042echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
39043echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
39044if test -z "$INSTALL"; then
39045if test "${ac_cv_path_install+set}" = set; then
39046 echo $ECHO_N "(cached) $ECHO_C" >&6
39047else
39048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39049for as_dir in $PATH
39050do
39051 IFS=$as_save_IFS
39052 test -z "$as_dir" && as_dir=.
39053 # Account for people who put trailing slashes in PATH elements.
39054case $as_dir/ in
39055 ./ | .// | /cC/* | \
39056 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 39057 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
39058 /usr/ucb/* ) ;;
39059 *)
39060 # OSF1 and SCO ODT 3.0 have their own names for install.
39061 # Don't use installbsd from OSF since it installs stuff as root
39062 # by default.
39063 for ac_prog in ginstall scoinst install; do
39064 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
39065 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
39066 if test $ac_prog = install &&
39067 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39068 # AIX install. It has an incompatible calling convention.
39069 :
39070 elif test $ac_prog = install &&
39071 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
39072 # program-specific install script used by HP pwplus--don't use.
39073 :
39074 else
39075 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
39076 break 3
39077 fi
39078 fi
a848cd7e
SC
39079 done
39080 done
39081 ;;
39082esac
39083done
39084
39085
39086fi
39087 if test "${ac_cv_path_install+set}" = set; then
39088 INSTALL=$ac_cv_path_install
39089 else
39090 # As a last resort, use the slow shell script. We don't cache a
39091 # path for INSTALL within a source directory, because that will
39092 # break other packages using the cache if that directory is
39093 # removed, or if the path is relative.
39094 INSTALL=$ac_install_sh
39095 fi
39096fi
39097echo "$as_me:$LINENO: result: $INSTALL" >&5
39098echo "${ECHO_T}$INSTALL" >&6
39099
39100# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
39101# It thinks the first close brace ends the variable substitution.
39102test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
39103
39104test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
39105
39106test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39107
39108 echo "$as_me:$LINENO: checking whether ln -s works" >&5
39109echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
39110LN_S=$as_ln_s
39111if test "$LN_S" = "ln -s"; then
39112 echo "$as_me:$LINENO: result: yes" >&5
39113echo "${ECHO_T}yes" >&6
39114else
39115 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
39116echo "${ECHO_T}no, using $LN_S" >&6
39117fi
39118
39119
39120 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39121echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 39122set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
39123if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39124 echo $ECHO_N "(cached) $ECHO_C" >&6
39125else
39126 cat >conftest.make <<\_ACEOF
39127all:
39128 @echo 'ac_maketemp="$(MAKE)"'
39129_ACEOF
39130# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39131eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39132if test -n "$ac_maketemp"; then
39133 eval ac_cv_prog_make_${ac_make}_set=yes
39134else
39135 eval ac_cv_prog_make_${ac_make}_set=no
39136fi
39137rm -f conftest.make
39138fi
39139if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39140 echo "$as_me:$LINENO: result: yes" >&5
39141echo "${ECHO_T}yes" >&6
39142 SET_MAKE=
39143else
39144 echo "$as_me:$LINENO: result: no" >&5
39145echo "${ECHO_T}no" >&6
39146 SET_MAKE="MAKE=${MAKE-make}"
39147fi
39148
39149
39150
39151 if test -n "$ac_tool_prefix"; then
39152 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
39153set dummy ${ac_tool_prefix}ar; ac_word=$2
39154echo "$as_me:$LINENO: checking for $ac_word" >&5
39155echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39156if test "${ac_cv_prog_AR+set}" = set; then
39157 echo $ECHO_N "(cached) $ECHO_C" >&6
39158else
39159 if test -n "$AR"; then
39160 ac_cv_prog_AR="$AR" # Let the user override the test.
39161else
39162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39163for as_dir in $PATH
39164do
39165 IFS=$as_save_IFS
39166 test -z "$as_dir" && as_dir=.
39167 for ac_exec_ext in '' $ac_executable_extensions; do
39168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39169 ac_cv_prog_AR="${ac_tool_prefix}ar"
39170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39171 break 2
39172 fi
39173done
39174done
39175
39176fi
39177fi
39178AR=$ac_cv_prog_AR
39179if test -n "$AR"; then
39180 echo "$as_me:$LINENO: result: $AR" >&5
39181echo "${ECHO_T}$AR" >&6
39182else
39183 echo "$as_me:$LINENO: result: no" >&5
39184echo "${ECHO_T}no" >&6
39185fi
39186
39187fi
39188if test -z "$ac_cv_prog_AR"; then
39189 ac_ct_AR=$AR
39190 # Extract the first word of "ar", so it can be a program name with args.
39191set dummy ar; ac_word=$2
39192echo "$as_me:$LINENO: checking for $ac_word" >&5
39193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39194if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
39195 echo $ECHO_N "(cached) $ECHO_C" >&6
39196else
39197 if test -n "$ac_ct_AR"; then
39198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
39199else
39200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39201for as_dir in $PATH
39202do
39203 IFS=$as_save_IFS
39204 test -z "$as_dir" && as_dir=.
39205 for ac_exec_ext in '' $ac_executable_extensions; do
39206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39207 ac_cv_prog_ac_ct_AR="ar"
39208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39209 break 2
39210 fi
39211done
39212done
39213
39214 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
39215fi
39216fi
39217ac_ct_AR=$ac_cv_prog_ac_ct_AR
39218if test -n "$ac_ct_AR"; then
39219 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
39220echo "${ECHO_T}$ac_ct_AR" >&6
39221else
39222 echo "$as_me:$LINENO: result: no" >&5
39223echo "${ECHO_T}no" >&6
39224fi
39225
39226 AR=$ac_ct_AR
39227else
39228 AR="$ac_cv_prog_AR"
39229fi
39230
39231 if test -n "$ac_tool_prefix"; then
39232 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
39233set dummy ${ac_tool_prefix}strip; ac_word=$2
39234echo "$as_me:$LINENO: checking for $ac_word" >&5
39235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39236if test "${ac_cv_prog_STRIP+set}" = set; then
39237 echo $ECHO_N "(cached) $ECHO_C" >&6
39238else
39239 if test -n "$STRIP"; then
39240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
39241else
39242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39243for as_dir in $PATH
39244do
39245 IFS=$as_save_IFS
39246 test -z "$as_dir" && as_dir=.
39247 for ac_exec_ext in '' $ac_executable_extensions; do
39248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39249 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
39250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39251 break 2
39252 fi
39253done
39254done
39255
39256fi
39257fi
39258STRIP=$ac_cv_prog_STRIP
39259if test -n "$STRIP"; then
39260 echo "$as_me:$LINENO: result: $STRIP" >&5
39261echo "${ECHO_T}$STRIP" >&6
39262else
39263 echo "$as_me:$LINENO: result: no" >&5
39264echo "${ECHO_T}no" >&6
39265fi
39266
39267fi
39268if test -z "$ac_cv_prog_STRIP"; then
39269 ac_ct_STRIP=$STRIP
39270 # Extract the first word of "strip", so it can be a program name with args.
39271set dummy strip; ac_word=$2
39272echo "$as_me:$LINENO: checking for $ac_word" >&5
39273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39274if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
39275 echo $ECHO_N "(cached) $ECHO_C" >&6
39276else
39277 if test -n "$ac_ct_STRIP"; then
39278 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
39279else
39280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39281for as_dir in $PATH
39282do
39283 IFS=$as_save_IFS
39284 test -z "$as_dir" && as_dir=.
39285 for ac_exec_ext in '' $ac_executable_extensions; do
39286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39287 ac_cv_prog_ac_ct_STRIP="strip"
39288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39289 break 2
39290 fi
39291done
39292done
39293
39294 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
39295fi
39296fi
39297ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
39298if test -n "$ac_ct_STRIP"; then
39299 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
39300echo "${ECHO_T}$ac_ct_STRIP" >&6
39301else
39302 echo "$as_me:$LINENO: result: no" >&5
39303echo "${ECHO_T}no" >&6
39304fi
39305
39306 STRIP=$ac_ct_STRIP
39307else
39308 STRIP="$ac_cv_prog_STRIP"
39309fi
39310
39311 if test -n "$ac_tool_prefix"; then
39312 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
39313set dummy ${ac_tool_prefix}nm; ac_word=$2
39314echo "$as_me:$LINENO: checking for $ac_word" >&5
39315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39316if test "${ac_cv_prog_NM+set}" = set; then
39317 echo $ECHO_N "(cached) $ECHO_C" >&6
39318else
39319 if test -n "$NM"; then
39320 ac_cv_prog_NM="$NM" # Let the user override the test.
39321else
39322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39323for as_dir in $PATH
39324do
39325 IFS=$as_save_IFS
39326 test -z "$as_dir" && as_dir=.
39327 for ac_exec_ext in '' $ac_executable_extensions; do
39328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39329 ac_cv_prog_NM="${ac_tool_prefix}nm"
39330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39331 break 2
39332 fi
39333done
39334done
39335
39336fi
39337fi
39338NM=$ac_cv_prog_NM
39339if test -n "$NM"; then
39340 echo "$as_me:$LINENO: result: $NM" >&5
39341echo "${ECHO_T}$NM" >&6
39342else
39343 echo "$as_me:$LINENO: result: no" >&5
39344echo "${ECHO_T}no" >&6
39345fi
39346
39347fi
39348if test -z "$ac_cv_prog_NM"; then
39349 ac_ct_NM=$NM
39350 # Extract the first word of "nm", so it can be a program name with args.
39351set dummy nm; ac_word=$2
39352echo "$as_me:$LINENO: checking for $ac_word" >&5
39353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39354if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
39355 echo $ECHO_N "(cached) $ECHO_C" >&6
39356else
39357 if test -n "$ac_ct_NM"; then
39358 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
39359else
39360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39361for as_dir in $PATH
39362do
39363 IFS=$as_save_IFS
39364 test -z "$as_dir" && as_dir=.
39365 for ac_exec_ext in '' $ac_executable_extensions; do
39366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39367 ac_cv_prog_ac_ct_NM="nm"
39368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39369 break 2
39370 fi
39371done
39372done
39373
39374 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
39375fi
39376fi
39377ac_ct_NM=$ac_cv_prog_ac_ct_NM
39378if test -n "$ac_ct_NM"; then
39379 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
39380echo "${ECHO_T}$ac_ct_NM" >&6
39381else
39382 echo "$as_me:$LINENO: result: no" >&5
39383echo "${ECHO_T}no" >&6
39384fi
39385
39386 NM=$ac_ct_NM
39387else
39388 NM="$ac_cv_prog_NM"
39389fi
39390
39391
39392 case ${BAKEFILE_HOST} in
39393 *-hp-hpux* )
1e9e8aba 39394 INSTALL_DIR="mkdir -p"
a848cd7e
SC
39395 ;;
39396 *) INSTALL_DIR="$INSTALL -d"
39397 ;;
39398 esac
39399
39400
39401 LDFLAGS_GUI=
39402 case ${BAKEFILE_HOST} in
39403 *-*-cygwin* | *-*-mingw32* )
39404 LDFLAGS_GUI="-mwindows"
39405 esac
39406
39407
39408 fi
39409
39410 echo "$as_me:$LINENO: checking if make is GNU make" >&5
39411echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
39412if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
39413 echo $ECHO_N "(cached) $ECHO_C" >&6
39414else
39415
39416 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
39417 egrep -s GNU > /dev/null); then
39418 bakefile_cv_prog_makeisgnu="yes"
39419 else
39420 bakefile_cv_prog_makeisgnu="no"
39421 fi
39422
39423fi
39424echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
39425echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
39426
39427 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
39428 IF_GNU_MAKE=""
39429 else
39430 IF_GNU_MAKE="#"
39431 fi
39432
39433
39434
39435 PLATFORM_UNIX=0
39436 PLATFORM_WIN32=0
39437 PLATFORM_MSDOS=0
39438 PLATFORM_MAC=0
1e9e8aba 39439 PLATFORM_MACOS=0
a848cd7e
SC
39440 PLATFORM_MACOSX=0
39441 PLATFORM_OS2=0
1e9e8aba 39442 PLATFORM_BEOS=0
a848cd7e
SC
39443
39444 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
39445 case "${BAKEFILE_HOST}" in
39446 *-*-cygwin* | *-*-mingw32* )
39447 PLATFORM_WIN32=1
39448 ;;
39449 *-pc-msdosdjgpp )
39450 PLATFORM_MSDOS=1
39451 ;;
39452 *-pc-os2_emx | *-pc-os2-emx )
39453 PLATFORM_OS2=1
39454 ;;
39455 powerpc-*-darwin* )
39456 PLATFORM_MAC=1
39457 PLATFORM_MACOSX=1
39458 ;;
1e9e8aba
DE
39459 *-*-beos* )
39460 PLATFORM_BEOS=1
39461 ;;
39462 powerpc-apple-macos* )
39463 PLATFORM_MAC=1
39464 PLATFORM_MACOS=1
39465 ;;
a848cd7e
SC
39466 * )
39467 PLATFORM_UNIX=1
39468 ;;
39469 esac
39470 else
39471 case "$BAKEFILE_FORCE_PLATFORM" in
39472 win32 )
39473 PLATFORM_WIN32=1
39474 ;;
39475 msdos )
39476 PLATFORM_MSDOS=1
39477 ;;
39478 os2 )
39479 PLATFORM_OS2=1
39480 ;;
39481 darwin )
39482 PLATFORM_MAC=1
39483 PLATFORM_MACOSX=1
39484 ;;
39485 unix )
39486 PLATFORM_UNIX=1
39487 ;;
1e9e8aba
DE
39488 beos )
39489 PLATFORM_BEOS=1
39490 ;;
a848cd7e
SC
39491 * )
39492 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
39493echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
39494 { (exit 1); exit 1; }; }
39495 ;;
39496 esac
39497 fi
39498
39499
39500
39501
39502
39503
39504
39505
39506
1e9e8aba
DE
39507
39508
a848cd7e
SC
39509 # Check whether --enable-omf or --disable-omf was given.
39510if test "${enable_omf+set}" = set; then
39511 enableval="$enable_omf"
39512 bk_os2_use_omf="$enableval"
39513fi;
39514
39515 case "${BAKEFILE_HOST}" in
39516 *-*-darwin* )
39517 CFLAGS="$CFLAGS -fno-common"
39518 CXXFLAGS="$CXXFLAGS -fno-common"
39519 ;;
39520
39521 *-pc-os2_emx | *-pc-os2-emx )
39522 if test "x$bk_os2_use_omf" = "xyes" ; then
39523 AR=emxomfar
39524 RANLIB=:
39525 LDFLAGS="-Zomf $LDFLAGS"
39526 CFLAGS="-Zomf $CFLAGS"
39527 CXXFLAGS="-Zomf $CXXFLAGS"
39528 OS2_LIBEXT="lib"
39529 else
39530 OS2_LIBEXT="a"
39531 fi
39532 ;;
1e9e8aba
DE
39533
39534 i*86-*-beos* )
39535 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
39536 ;;
a848cd7e
SC
39537 esac
39538
39539
39540 SO_SUFFIX="so"
39541 SO_SUFFIX_MODULE="so"
39542 EXEEXT=""
39543 LIBPREFIX="lib"
39544 LIBEXT=".a"
39545 DLLPREFIX="lib"
39546 DLLPREFIX_MODULE=""
39547 DLLIMP_SUFFIX=""
39548
39549 case "${BAKEFILE_HOST}" in
39550 *-hp-hpux* )
39551 SO_SUFFIX="sl"
39552 SO_SUFFIX_MODULE="sl"
39553 ;;
39554 *-*-aix* )
39555 SO_SUFFIX="a"
39556 SO_SUFFIX_MODULE="a"
39557 ;;
39558 *-*-cygwin* | *-*-mingw32* )
39559 SO_SUFFIX="dll"
39560 SO_SUFFIX_MODULE="dll"
39561 DLLIMP_SUFFIX="dll.a"
39562 EXEEXT=".exe"
39563 DLLPREFIX=""
39564 ;;
39565 *-pc-msdosdjgpp )
39566 EXEEXT=".exe"
39567 DLLPREFIX=""
39568 ;;
39569 *-pc-os2_emx | *-pc-os2-emx )
39570 SO_SUFFIX="dll"
39571 SO_SUFFIX_MODULE="dll"
39572 DLLIMP_SUFFIX=$OS2_LIBEXT
39573 EXEEXT=".exe"
39574 DLLPREFIX=""
39575 LIBPREFIX=""
39576 LIBEXT=".$OS2_LIBEXT"
39577 ;;
39578 powerpc-*-darwin* )
39579 SO_SUFFIX="dylib"
39580 SO_SUFFIX_MODULE="bundle"
39581 ;;
39582 esac
39583
39584 if test "x$DLLIMP_SUFFIX" = "x" ; then
39585 DLLIMP_SUFFIX="$SO_SUFFIX"
39586 fi
39587
39588
39589
39590
39591
39592
39593
39594
39595
39596
39597
1e9e8aba
DE
39598 PIC_FLAG=""
39599 if test "x$GCC" = "xyes"; then
a848cd7e
SC
39600 PIC_FLAG="-fPIC"
39601 fi
39602
1e9e8aba
DE
39603 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
39604 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
39605
a848cd7e
SC
39606 case "${BAKEFILE_HOST}" in
39607 *-hp-hpux* )
1e9e8aba 39608 if test "x$GCC" != "xyes"; then
a848cd7e
SC
39609 LDFLAGS="$LDFLAGS -L/usr/lib"
39610
39611 SHARED_LD_CC="${CC} -b -o"
39612 SHARED_LD_CXX="${CXX} -b -o"
39613 PIC_FLAG="+Z"
39614 fi
39615 ;;
39616
39617 *-*-linux* )
39618 if test "x$GCC" != "xyes"; then
39619 echo "$as_me:$LINENO: checking for Intel compiler" >&5
39620echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
39621if test "${bakefile_cv_prog_icc+set}" = set; then
39622 echo $ECHO_N "(cached) $ECHO_C" >&6
39623else
39624
39625 cat >conftest.$ac_ext <<_ACEOF
39626/* confdefs.h. */
39627_ACEOF
39628cat confdefs.h >>conftest.$ac_ext
39629cat >>conftest.$ac_ext <<_ACEOF
39630/* end confdefs.h. */
39631
39632int
39633main ()
39634{
39635
39636 #ifndef __INTEL_COMPILER
39637 #error Not icc
39638 #endif
39639
39640 ;
39641 return 0;
39642}
39643_ACEOF
39644rm -f conftest.$ac_objext
39645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39646 (eval $ac_compile) 2>conftest.er1
a848cd7e 39647 ac_status=$?
ac1cb8d3
VS
39648 grep -v '^ *+' conftest.er1 >conftest.err
39649 rm -f conftest.er1
39650 cat conftest.err >&5
a848cd7e
SC
39651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39652 (exit $ac_status); } &&
04840eaa
VS
39653 { ac_try='test -z "$ac_c_werror_flag"
39654 || test ! -s conftest.err'
ac1cb8d3
VS
39655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39656 (eval $ac_try) 2>&5
39657 ac_status=$?
39658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39659 (exit $ac_status); }; } &&
39660 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39662 (eval $ac_try) 2>&5
39663 ac_status=$?
39664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39665 (exit $ac_status); }; }; then
39666 bakefile_cv_prog_icc=yes
39667else
39668 echo "$as_me: failed program was:" >&5
39669sed 's/^/| /' conftest.$ac_ext >&5
39670
39671bakefile_cv_prog_icc=no
39672
39673fi
ac1cb8d3 39674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39675
39676fi
39677echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
39678echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
39679 if test "$bakefile_cv_prog_icc" = "yes"; then
39680 PIC_FLAG="-KPIC"
39681 fi
39682 fi
39683 ;;
39684
39685 *-*-solaris2* )
39686 if test "x$GCC" != xyes ; then
39687 SHARED_LD_CC="${CC} -G -o"
39688 SHARED_LD_CXX="${CXX} -G -o"
39689 PIC_FLAG="-KPIC"
39690 fi
39691 ;;
39692
39693 *-*-darwin* )
39694
39695 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
39696echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
39697if test "${wx_cv_gcc31+set}" = set; then
39698 echo $ECHO_N "(cached) $ECHO_C" >&6
39699else
39700
39701 cat >conftest.$ac_ext <<_ACEOF
39702/* confdefs.h. */
39703_ACEOF
39704cat confdefs.h >>conftest.$ac_ext
39705cat >>conftest.$ac_ext <<_ACEOF
39706/* end confdefs.h. */
39707
39708int
39709main ()
39710{
39711
39712 #if (__GNUC__ < 3) || \
39713 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
39714 #error old gcc
39715 #endif
39716
39717 ;
39718 return 0;
39719}
39720_ACEOF
39721rm -f conftest.$ac_objext
39722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39723 (eval $ac_compile) 2>conftest.er1
a848cd7e 39724 ac_status=$?
ac1cb8d3
VS
39725 grep -v '^ *+' conftest.er1 >conftest.err
39726 rm -f conftest.er1
39727 cat conftest.err >&5
a848cd7e
SC
39728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39729 (exit $ac_status); } &&
04840eaa
VS
39730 { ac_try='test -z "$ac_c_werror_flag"
39731 || test ! -s conftest.err'
ac1cb8d3
VS
39732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39733 (eval $ac_try) 2>&5
39734 ac_status=$?
39735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736 (exit $ac_status); }; } &&
39737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39739 (eval $ac_try) 2>&5
39740 ac_status=$?
39741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39742 (exit $ac_status); }; }; then
39743
39744 wx_cv_gcc31=yes
39745
39746else
39747 echo "$as_me: failed program was:" >&5
39748sed 's/^/| /' conftest.$ac_ext >&5
39749
39750
39751 wx_cv_gcc31=no
39752
39753
39754fi
ac1cb8d3 39755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39756
39757fi
39758echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
39759echo "${ECHO_T}$wx_cv_gcc31" >&6
39760 if test "$wx_cv_gcc31" = "no"; then
473276a9
VS
39761
39762D='$'
39763cat <<EOF >shared-ld-sh
a848cd7e
SC
39764#!/bin/sh
39765#-----------------------------------------------------------------------------
39766#-- Name: distrib/mac/shared-ld-sh
39767#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
39768#-- Author: Gilles Depeyrot
39769#-- Copyright: (c) 2002 Gilles Depeyrot
39770#-- Licence: any use permitted
39771#-----------------------------------------------------------------------------
39772
39773verbose=0
39774args=""
39775objects=""
39776linking_flag="-dynamiclib"
39777
473276a9
VS
39778while test ${D}# -gt 0; do
39779 case ${D}1 in
a848cd7e
SC
39780
39781 -v)
39782 verbose=1
39783 ;;
39784
39785 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
39786 # collect these options and values
473276a9 39787 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
39788 shift
39789 ;;
39790
39791 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
39792 # collect these options
473276a9 39793 args="${D}{args} ${D}1"
a848cd7e
SC
39794 ;;
39795
39796 -dynamiclib|-bundle)
473276a9 39797 linking_flag="${D}1"
a848cd7e
SC
39798 ;;
39799
39800 -*)
473276a9 39801 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
39802 exit 1
39803 ;;
39804
39805 *.o | *.a | *.dylib)
39806 # collect object files
473276a9 39807 objects="${D}{objects} ${D}1"
a848cd7e
SC
39808 ;;
39809
39810 *)
473276a9 39811 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
39812 exit 1
39813 ;;
39814
39815 esac
39816 shift
39817done
39818
39819#
39820# Link one module containing all the others
39821#
473276a9
VS
39822if test ${D}{verbose} = 1; then
39823 echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o"
a848cd7e 39824fi
473276a9
VS
39825c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o
39826status=${D}?
39827if test ${D}{status} != 0; then
39828 exit ${D}{status}
a848cd7e
SC
39829fi
39830
39831#
39832# Link the shared library from the single module created
39833#
473276a9
VS
39834if test ${D}{verbose} = 1; then
39835 echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
a848cd7e 39836fi
473276a9
VS
39837c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
39838status=${D}?
39839if test ${D}{status} != 0; then
39840 exit ${D}{status}
a848cd7e
SC
39841fi
39842
39843#
39844# Remove intermediate module
39845#
473276a9 39846rm -f master.${D}${D}.o
a848cd7e
SC
39847
39848exit 0
39849EOF
473276a9 39850
a848cd7e
SC
39851 chmod +x shared-ld-sh
39852
39853 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
39854 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
39855 SHARED_LD_CXX="$SHARED_LD_CC"
39856 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
39857 else
39858 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
39859 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
39860 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
39861 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
39862 fi
39863
39864 PIC_FLAG="-dynamic -fPIC"
39865 ;;
39866
39867 *-*-aix* )
39868 if test "x$GCC" != "xyes"; then
39869 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
39870set dummy makeC++SharedLib; ac_word=$2
39871echo "$as_me:$LINENO: checking for $ac_word" >&5
39872echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39873if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
39874 echo $ECHO_N "(cached) $ECHO_C" >&6
39875else
39876 if test -n "$AIX_CXX_LD"; then
39877 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
39878else
39879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39880for as_dir in $PATH
39881do
39882 IFS=$as_save_IFS
39883 test -z "$as_dir" && as_dir=.
39884 for ac_exec_ext in '' $ac_executable_extensions; do
39885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39886 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
39887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39888 break 2
39889 fi
39890done
39891done
39892
39893 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
39894fi
39895fi
39896AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
39897if test -n "$AIX_CXX_LD"; then
39898 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
39899echo "${ECHO_T}$AIX_CXX_LD" >&6
39900else
39901 echo "$as_me:$LINENO: result: no" >&5
39902echo "${ECHO_T}no" >&6
39903fi
39904
39905 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
39906 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
39907 fi
39908 ;;
39909
39910 *-*-beos* )
1e9e8aba
DE
39911 SHARED_LD_CC="${LD} -nostart -o"
39912 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
39913 ;;
39914
39915 *-*-irix* )
39916 if test "x$GCC" != "xyes"; then
39917 PIC_FLAG="-KPIC"
39918 fi
39919 ;;
39920
39921 *-*-cygwin* | *-*-mingw32* )
39922 PIC_FLAG=""
1e9e8aba
DE
39923 SHARED_LD_CC="\$(CC) -shared -o"
39924 SHARED_LD_CXX="\$(CXX) -shared -o"
a848cd7e
SC
39925 ;;
39926
39927 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
39928 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
39929 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 39930 PIC_FLAG=""
473276a9
VS
39931
39932D='$'
39933cat <<EOF >dllar.sh
39934#!/bin/sh
39935#
39936# dllar - a tool to build both a .dll and an .a file
39937# from a set of object (.o) files for EMX/OS2.
39938#
39939# Written by Andrew Zabolotny, bit@freya.etu.ru
39940# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
39941#
39942# This script will accept a set of files on the command line.
39943# All the public symbols from the .o files will be exported into
39944# a .DEF file, then linker will be run (through gcc) against them to
39945# build a shared library consisting of all given .o files. All libraries
39946# (.a) will be first decompressed into component .o files then act as
39947# described above. You can optionally give a description (-d "description")
39948# which will be put into .DLL. To see the list of accepted options (as well
39949# as command-line format) simply run this program without options. The .DLL
39950# is built to be imported by name (there is no guarantee that new versions
39951# of the library you build will have same ordinals for same symbols).
39952#
39953# dllar is free software; you can redistribute it and/or modify
39954# it under the terms of the GNU General Public License as published by
39955# the Free Software Foundation; either version 2, or (at your option)
39956# any later version.
39957#
39958# dllar is distributed in the hope that it will be useful,
39959# but WITHOUT ANY WARRANTY; without even the implied warranty of
39960# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39961# GNU General Public License for more details.
39962#
39963# You should have received a copy of the GNU General Public License
39964# along with dllar; see the file COPYING. If not, write to the Free
39965# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
39966# 02111-1307, USA.
39967
39968# To successfuly run this program you will need:
39969# - Current drive should have LFN support (HPFS, ext2, network, etc)
39970# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
39971# - gcc
39972# (used to build the .dll)
39973# - emxexp
39974# (used to create .def file from .o files)
39975# - emximp
39976# (used to create .a file from .def file)
39977# - GNU text utilites (cat, sort, uniq)
39978# used to process emxexp output
39979# - GNU file utilities (mv, rm)
39980# - GNU sed
39981# - lxlite (optional, see flag below)
39982# (used for general .dll cleanup)
39983#
39984
39985flag_USE_LXLITE=1;
39986
39987#
39988# helper functions
39989# basnam, variant of basename, which does _not_ remove the path, _iff_
39990# second argument (suffix to remove) is given
39991basnam(){
39992 case ${D}# in
39993 1)
1e9e8aba 39994 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
39995 ;;
39996 2)
39997 echo ${D}1 | sed 's/'${D}2'${D}//'
39998 ;;
39999 *)
40000 echo "error in basnam ${D}*"
40001 exit 8
40002 ;;
40003 esac
40004}
40005
40006# Cleanup temporary files and output
40007CleanUp() {
40008 cd ${D}curDir
40009 for i in ${D}inputFiles ; do
40010 case ${D}i in
40011 *!)
40012 rm -rf \`basnam ${D}i !\`
40013 ;;
40014 *)
40015 ;;
40016 esac
40017 done
40018
40019 # Kill result in case of failure as there is just to many stupid make/nmake
40020 # things out there which doesn't do this.
1e9e8aba 40021 if [ ${D}# -eq 0 ]; then
473276a9
VS
40022 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
40023 fi
40024}
40025
40026# Print usage and exit script with rc=1.
40027PrintHelp() {
b1d22ded
DE
40028 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
40029 echo ' [-name-mangler-script script.sh]'
40030 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
40031 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
40032 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 40033 echo ' [*.o] [*.a]'
473276a9
VS
40034 echo '*> "output_file" should have no extension.'
40035 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
40036 echo ' The import library name is derived from this and is set to "name".a,'
40037 echo ' unless overridden by -import'
40038 echo '*> "importlib_name" should have no extension.'
40039 echo ' If it has the .o, or .a extension, it is automatically removed.'
40040 echo ' This name is used as the import library name and may be longer and'
40041 echo ' more descriptive than the DLL name which has to follow the old '
40042 echo ' 8.3 convention of FAT.'
b1d22ded
DE
40043 echo '*> "script.sh may be given to override the output_file name by a'
40044 echo ' different name. It is mainly useful if the regular make process'
40045 echo ' of some package does not take into account OS/2 restriction of'
40046 echo ' DLL name lengths. It takes the importlib name as input and is'
40047 echo ' supposed to procude a shorter name as output. The script should'
40048 echo ' expect to get importlib_name without extension and should produce'
40049 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
40050 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
40051 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
40052 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
40053 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
40054 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
40055 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
40056 echo ' If the last character of a symbol is "*", all symbols beginning'
40057 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 40058 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 40059 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 40060 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 40061 echo ' C runtime DLLs.'
b1d22ded 40062 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
40063 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
40064 echo ' unchanged to GCC at the end of command line.'
40065 echo '*> If you create a DLL from a library and you do not specify -o,'
40066 echo ' the basename for DLL and import library will be set to library name,'
40067 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
40068 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
40069 echo ' library will be renamed into gcc_s.a.'
40070 echo '--------'
40071 echo 'Example:'
40072 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
40073 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
40074 CleanUp
40075 exit 1
40076}
40077
40078# Execute a command.
40079# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
40080# @Uses Whatever CleanUp() uses.
40081doCommand() {
40082 echo "${D}*"
40083 eval ${D}*
40084 rcCmd=${D}?
40085
1e9e8aba 40086 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
40087 echo "command failed, exit code="${D}rcCmd
40088 CleanUp
40089 exit ${D}rcCmd
40090 fi
40091}
40092
40093# main routine
40094# setup globals
40095cmdLine=${D}*
40096outFile=""
40097outimpFile=""
40098inputFiles=""
b1d22ded 40099renameScript=""
473276a9
VS
40100description=""
40101CC=gcc.exe
40102CFLAGS="-s -Zcrtdll"
40103EXTRA_CFLAGS=""
40104EXPORT_BY_ORDINALS=0
40105exclude_symbols=""
40106library_flags=""
40107curDir=\`pwd\`
40108curDirS=curDir
40109case ${D}curDirS in
40110*/)
40111 ;;
40112*)
40113 curDirS=${D}{curDirS}"/"
40114 ;;
40115esac
40116# Parse commandline
40117libsToLink=0
b1d22ded 40118omfLinking=0
1e9e8aba 40119while [ ${D}1 ]; do
473276a9
VS
40120 case ${D}1 in
40121 -ord*)
40122 EXPORT_BY_ORDINALS=1;
40123 ;;
40124 -o*)
40125 shift
40126 outFile=${D}1
40127 ;;
40128 -i*)
40129 shift
40130 outimpFile=${D}1
40131 ;;
b1d22ded
DE
40132 -name-mangler-script)
40133 shift
40134 renameScript=${D}1
40135 ;;
473276a9
VS
40136 -d*)
40137 shift
40138 description=${D}1
40139 ;;
40140 -f*)
40141 shift
40142 CFLAGS=${D}1
40143 ;;
40144 -c*)
40145 shift
40146 CC=${D}1
40147 ;;
40148 -h*)
40149 PrintHelp
40150 ;;
40151 -ex*)
40152 shift
40153 exclude_symbols=${D}{exclude_symbols}${D}1" "
40154 ;;
40155 -libf*)
40156 shift
40157 library_flags=${D}{library_flags}${D}1" "
40158 ;;
40159 -nocrt*)
40160 CFLAGS="-s"
40161 ;;
40162 -nolxl*)
40163 flag_USE_LXLITE=0
40164 ;;
40165 -* | /*)
40166 case ${D}1 in
40167 -L* | -l*)
40168 libsToLink=1
40169 ;;
b1d22ded
DE
40170 -Zomf)
40171 omfLinking=1
40172 ;;
473276a9
VS
40173 *)
40174 ;;
40175 esac
40176 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40177 ;;
b1d22ded
DE
40178 *.dll)
40179 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
40180 if [ ${D}omfLinking -eq 1 ]; then
40181 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
40182 else
40183 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
40184 fi
40185 ;;
473276a9
VS
40186 *)
40187 found=0;
1e9e8aba 40188 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
40189 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
40190 else
40191 for file in ${D}1 ; do
1e9e8aba 40192 if [ -f ${D}file ]; then
473276a9
VS
40193 inputFiles="${D}{inputFiles} ${D}file"
40194 found=1
40195 fi
40196 done
1e9e8aba 40197 if [ ${D}found -eq 0 ]; then
473276a9
VS
40198 echo "ERROR: No file(s) found: "${D}1
40199 exit 8
40200 fi
40201 fi
40202 ;;
40203 esac
40204 shift
40205done # iterate cmdline words
40206
40207#
1e9e8aba 40208if [ -z "${D}inputFiles" ]; then
473276a9
VS
40209 echo "dllar: no input files"
40210 PrintHelp
40211fi
40212
40213# Now extract all .o files from .a files
40214newInputFiles=""
40215for file in ${D}inputFiles ; do
40216 case ${D}file in
40217 *.a | *.lib)
40218 case ${D}file in
40219 *.a)
40220 suffix=".a"
40221 AR="ar"
40222 ;;
40223 *.lib)
40224 suffix=".lib"
40225 AR="emxomfar"
40226 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
40227 ;;
40228 *)
40229 ;;
40230 esac
40231 dirname=\`basnam ${D}file ${D}suffix\`"_%"
40232 mkdir ${D}dirname
1e9e8aba 40233 if [ ${D}? -ne 0 ]; then
473276a9
VS
40234 echo "Failed to create subdirectory ./${D}dirname"
40235 CleanUp
40236 exit 8;
40237 fi
40238 # Append '!' to indicate archive
40239 newInputFiles="${D}newInputFiles ${D}{dirname}!"
40240 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
40241 cd ${D}curDir
40242 found=0;
40243 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 40244 if [ -f ${D}subfile ]; then
473276a9 40245 found=1
1e9e8aba 40246 if [ -s ${D}subfile ]; then
473276a9
VS
40247 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
40248 newInputFiles="${D}newInputFiles ${D}subfile"
40249 fi
40250 fi
40251 done
1e9e8aba
DE
40252 if [ ${D}found -eq 0 ]; then
40253 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
40254 fi
40255 ;;
40256 *)
40257 newInputFiles="${D}{newInputFiles} ${D}file"
40258 ;;
40259 esac
40260done
40261inputFiles="${D}newInputFiles"
40262
40263# Output filename(s).
40264do_backup=0;
1e9e8aba 40265if [ -z ${D}outFile ]; then
473276a9
VS
40266 do_backup=1;
40267 set outFile ${D}inputFiles; outFile=${D}2
40268fi
40269
40270# If it is an archive, remove the '!' and the '_%' suffixes
40271case ${D}outFile in
40272*_%!)
40273 outFile=\`basnam ${D}outFile _%!\`
40274 ;;
40275*)
40276 ;;
40277esac
40278case ${D}outFile in
40279*.dll)
40280 outFile=\`basnam ${D}outFile .dll\`
40281 ;;
40282*.DLL)
40283 outFile=\`basnam ${D}outFile .DLL\`
40284 ;;
40285*.o)
40286 outFile=\`basnam ${D}outFile .o\`
40287 ;;
40288*.obj)
40289 outFile=\`basnam ${D}outFile .obj\`
40290 ;;
40291*.a)
40292 outFile=\`basnam ${D}outFile .a\`
40293 ;;
40294*.lib)
40295 outFile=\`basnam ${D}outFile .lib\`
40296 ;;
40297*)
40298 ;;
40299esac
40300case ${D}outimpFile in
40301*.a)
40302 outimpFile=\`basnam ${D}outimpFile .a\`
40303 ;;
40304*.lib)
40305 outimpFile=\`basnam ${D}outimpFile .lib\`
40306 ;;
40307*)
40308 ;;
40309esac
1e9e8aba 40310if [ -z ${D}outimpFile ]; then
473276a9
VS
40311 outimpFile=${D}outFile
40312fi
40313defFile="${D}{outFile}.def"
40314arcFile="${D}{outimpFile}.a"
40315arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
40316
40317#create ${D}dllFile as something matching 8.3 restrictions,
40318if [ -z ${D}renameScript ] ; then
40319 dllFile="${D}outFile"
40320else
40321 dllFile=\`${D}renameScript ${D}outimpFile\`
40322fi
473276a9 40323
1e9e8aba
DE
40324if [ ${D}do_backup -ne 0 ] ; then
40325 if [ -f ${D}arcFile ] ; then
473276a9
VS
40326 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
40327 fi
1e9e8aba 40328 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
40329 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
40330 fi
40331fi
40332
40333# Extract public symbols from all the object files.
40334tmpdefFile=${D}{defFile}_%
40335rm -f ${D}tmpdefFile
40336for file in ${D}inputFiles ; do
40337 case ${D}file in
40338 *!)
40339 ;;
40340 *)
40341 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
40342 ;;
40343 esac
40344done
40345
40346# Create the def file.
40347rm -f ${D}defFile
40348echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
40349dllFile="${D}{dllFile}.dll"
40350if [ ! -z ${D}description ]; then
1e9e8aba 40351 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
40352fi
40353echo "EXPORTS" >> ${D}defFile
40354
40355doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
40356grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
40357
40358# Checks if the export is ok or not.
40359for word in ${D}exclude_symbols; do
40360 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
40361 mv ${D}{tmpdefFile}% ${D}tmpdefFile
40362done
40363
40364
1e9e8aba
DE
40365if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
40366 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
40367 sed '
40368 N
40369 : loop
1e9e8aba 40370 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
40371 t loop
40372 ' > ${D}{tmpdefFile}%
40373 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
40374else
40375 rm -f ${D}{tmpdefFile}%
40376fi
40377cat ${D}tmpdefFile >> ${D}defFile
40378rm -f ${D}tmpdefFile
40379
40380# Do linking, create implib, and apply lxlite.
40381gccCmdl="";
40382for file in ${D}inputFiles ; do
40383 case ${D}file in
40384 *!)
40385 ;;
40386 *)
40387 gccCmdl="${D}gccCmdl ${D}file"
40388 ;;
40389 esac
40390done
40391doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
40392touch "${D}{outFile}.dll"
40393
40394doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 40395if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 40396 add_flags="";
1e9e8aba 40397 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
40398 add_flags="-ynd"
40399 fi
40400 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
40401fi
40402doCommand "emxomf -s -l ${D}arcFile"
40403
40404# Successful exit.
40405CleanUp 1
40406exit 0
40407EOF
40408
40409 chmod +x dllar.sh
a848cd7e
SC
40410 ;;
40411
1e9e8aba 40412 powerpc-apple-macos* | \
a848cd7e
SC
40413 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
40414 *-*-sunos4* | \
40415 *-*-osf* | \
40416 *-*-dgux5* | \
40417 *-*-sysv5* )
40418 ;;
40419
40420 *)
40421 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
40422echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
40423 { (exit 1); exit 1; }; }
40424 esac
40425
2057db16
VS
40426 if test "x$PIC_FLAG" != "x" ; then
40427 PIC_FLAG="$PIC_FLAG -DPIC"
40428 fi
40429
a848cd7e
SC
40430 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
40431 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
40432 fi
40433 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
40434 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
40435 fi
40436
40437
40438
40439
40440
40441
40442
40443
40444 USE_SOVERSION=0
40445 USE_SOVERLINUX=0
40446 USE_SOVERSOLARIS=0
40447 USE_SOSYMLINKS=0
40448 USE_MACVERSION=0
40449 SONAME_FLAG=
40450
40451 case "${BAKEFILE_HOST}" in
b1d22ded 40452 *-*-linux* | *-*-freebsd* )
5f652d0d
VS
40453 SONAME_FLAG="-Wl,-soname,"
40454 USE_SOVERSION=1
40455 USE_SOVERLINUX=1
40456 USE_SOSYMLINKS=1
40457 ;;
40458
a848cd7e
SC
40459 *-*-solaris2* )
40460 SONAME_FLAG="-h "
40461 USE_SOVERSION=1
40462 USE_SOVERSOLARIS=1
40463 USE_SOSYMLINKS=1
40464 ;;
40465
40466 *-*-darwin* )
40467 USE_MACVERSION=1
40468 USE_SOVERSION=1
40469 USE_SOSYMLINKS=1
40470 ;;
40471 esac
40472
40473
40474
40475
40476
40477
40478
40479
40480
40481 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
40482echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
40483 DEPS_TRACKING=0
40484
40485 if test "x$GCC" = "xyes"; then
40486 DEPSMODE=gcc
40487 DEPS_TRACKING=1
40488 case "${BAKEFILE_HOST}" in
40489 powerpc-*-darwin* )
40490 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
40491 ;;
40492 * )
40493 DEPSFLAG_GCC="-MMD"
40494 ;;
40495 esac
40496 echo "$as_me:$LINENO: result: gcc" >&5
40497echo "${ECHO_T}gcc" >&6
b1d22ded 40498 elif test "x$MWCC" = "xyes"; then
04840eaa 40499 DEPSMODE=gcc
b1d22ded 40500 DEPS_TRACKING=1
04840eaa 40501 DEPSFLAG_GCC="-MMD"
b1d22ded
DE
40502 echo "$as_me:$LINENO: result: mwcc" >&5
40503echo "${ECHO_T}mwcc" >&6
a848cd7e
SC
40504 else
40505 echo "$as_me:$LINENO: result: none" >&5
40506echo "${ECHO_T}none" >&6
40507 fi
40508
40509 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
40510
40511D='$'
40512cat <<EOF >bk-deps
a848cd7e
SC
40513#!/bin/sh
40514
40515# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40516# script. It is used to track C/C++ files dependencies in portable way.
40517#
40518# Permission is given to use this file in any way.
40519
473276a9 40520DEPSMODE=${DEPSMODE}
a848cd7e 40521DEPSDIR=.deps
473276a9 40522DEPSFLAG_GCC="${DEPSFLAG_GCC}"
a848cd7e 40523
473276a9 40524mkdir -p ${D}DEPSDIR
a848cd7e 40525
473276a9
VS
40526if test ${D}DEPSMODE = gcc ; then
40527 ${D}* ${D}{DEPSFLAG_GCC}
40528 status=${D}?
40529 if test ${D}{status} != 0 ; then
40530 exit ${D}{status}
a848cd7e
SC
40531 fi
40532 # move created file to the location we want it in:
473276a9
VS
40533 while test ${D}# -gt 0; do
40534 case "${D}1" in
a848cd7e
SC
40535 -o )
40536 shift
473276a9 40537 objfile=${D}1
a848cd7e
SC
40538 ;;
40539 -* )
40540 ;;
40541 * )
473276a9 40542 srcfile=${D}1
a848cd7e
SC
40543 ;;
40544 esac
40545 shift
40546 done
1e9e8aba
DE
40547 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
40548 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
40549 if test -f ${D}depfile ; then
40550 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40551 rm -f ${D}depfile
a848cd7e 40552 else
1e9e8aba 40553 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
473276a9
VS
40554 if test -f ${D}depfile ; then
40555 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
40556 rm -f ${D}depfile
a848cd7e
SC
40557 fi
40558 fi
40559 exit 0
40560else
473276a9
VS
40561 ${D}*
40562 exit ${D}?
a848cd7e
SC
40563fi
40564EOF
473276a9 40565
a848cd7e
SC
40566 chmod +x bk-deps
40567 fi
40568
40569
40570
40571
40572 RESCOMP=
40573 SETFILE=
40574
40575 case ${BAKEFILE_HOST} in
40576 *-*-cygwin* | *-*-mingw32* )
40577 if test "$build" != "$host" ; then
40578 RESCOMP=$host_alias-windres
40579 else
40580 # Extract the first word of "windres", so it can be a program name with args.
40581set dummy windres; ac_word=$2
40582echo "$as_me:$LINENO: checking for $ac_word" >&5
40583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40584if test "${ac_cv_prog_RESCOMP+set}" = set; then
40585 echo $ECHO_N "(cached) $ECHO_C" >&6
40586else
40587 if test -n "$RESCOMP"; then
40588 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40589else
40590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40591for as_dir in $PATH
40592do
40593 IFS=$as_save_IFS
40594 test -z "$as_dir" && as_dir=.
40595 for ac_exec_ext in '' $ac_executable_extensions; do
40596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40597 ac_cv_prog_RESCOMP="windres"
40598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40599 break 2
40600 fi
40601done
40602done
40603
40604 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
40605fi
40606fi
40607RESCOMP=$ac_cv_prog_RESCOMP
40608if test -n "$RESCOMP"; then
40609 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40610echo "${ECHO_T}$RESCOMP" >&6
40611else
40612 echo "$as_me:$LINENO: result: no" >&5
40613echo "${ECHO_T}no" >&6
40614fi
40615
40616 fi
40617 ;;
40618
1e9e8aba 40619 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
40620 # Extract the first word of "Rez", so it can be a program name with args.
40621set dummy Rez; ac_word=$2
40622echo "$as_me:$LINENO: checking for $ac_word" >&5
40623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40624if test "${ac_cv_prog_RESCOMP+set}" = set; then
40625 echo $ECHO_N "(cached) $ECHO_C" >&6
40626else
40627 if test -n "$RESCOMP"; then
40628 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
40629else
40630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40631for as_dir in $PATH
40632do
40633 IFS=$as_save_IFS
40634 test -z "$as_dir" && as_dir=.
40635 for ac_exec_ext in '' $ac_executable_extensions; do
40636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40637 ac_cv_prog_RESCOMP="Rez"
40638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40639 break 2
40640 fi
40641done
40642done
40643
40644 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
40645fi
40646fi
40647RESCOMP=$ac_cv_prog_RESCOMP
40648if test -n "$RESCOMP"; then
40649 echo "$as_me:$LINENO: result: $RESCOMP" >&5
40650echo "${ECHO_T}$RESCOMP" >&6
40651else
40652 echo "$as_me:$LINENO: result: no" >&5
40653echo "${ECHO_T}no" >&6
40654fi
40655
40656 # Extract the first word of "SetFile", so it can be a program name with args.
40657set dummy SetFile; ac_word=$2
40658echo "$as_me:$LINENO: checking for $ac_word" >&5
40659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40660if test "${ac_cv_prog_SETFILE+set}" = set; then
40661 echo $ECHO_N "(cached) $ECHO_C" >&6
40662else
40663 if test -n "$SETFILE"; then
40664 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
40665else
40666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40667for as_dir in $PATH
40668do
40669 IFS=$as_save_IFS
40670 test -z "$as_dir" && as_dir=.
40671 for ac_exec_ext in '' $ac_executable_extensions; do
40672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40673 ac_cv_prog_SETFILE="SetFile"
40674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40675 break 2
40676 fi
40677done
40678done
40679
40680 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
40681fi
40682fi
40683SETFILE=$ac_cv_prog_SETFILE
40684if test -n "$SETFILE"; then
40685 echo "$as_me:$LINENO: result: $SETFILE" >&5
40686echo "${ECHO_T}$SETFILE" >&6
40687else
40688 echo "$as_me:$LINENO: result: no" >&5
40689echo "${ECHO_T}no" >&6
40690fi
40691
40692 ;;
40693 esac
40694
40695
40696
40697
40698
04840eaa 40699 BAKEFILE_BAKEFILE_M4_VERSION="0.1.5"
a848cd7e 40700
dcc1b6ad 40701
04840eaa 40702BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.5"
a848cd7e 40703
646b6ec1 40704
74b84332 40705
a848cd7e
SC
40706 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
40707if test "${enable_precomp_headers+set}" = set; then
40708 enableval="$enable_precomp_headers"
40709 bk_use_pch="$enableval"
40710fi;
40711
40712 GCC_PCH=0
40713
40714 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
40715 if test "x$GCC" = "xyes"; then
40716 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
40717echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
40718 cat >conftest.$ac_ext <<_ACEOF
40719/* confdefs.h. */
40720_ACEOF
40721cat confdefs.h >>conftest.$ac_ext
40722cat >>conftest.$ac_ext <<_ACEOF
40723/* end confdefs.h. */
40724
40725int
40726main ()
40727{
40728
40729 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
40730 #error "no pch support"
40731 #endif
40732 #if (__GNUC__ < 3)
40733 #error "no pch support"
40734 #endif
40735 #if (__GNUC__ == 3) && \
40736 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
40737 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
40738 #error "no pch support"
40739 #endif
40740
40741 ;
40742 return 0;
40743}
40744_ACEOF
40745rm -f conftest.$ac_objext
40746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40747 (eval $ac_compile) 2>conftest.er1
a848cd7e 40748 ac_status=$?
ac1cb8d3
VS
40749 grep -v '^ *+' conftest.er1 >conftest.err
40750 rm -f conftest.er1
40751 cat conftest.err >&5
a848cd7e
SC
40752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40753 (exit $ac_status); } &&
04840eaa
VS
40754 { ac_try='test -z "$ac_c_werror_flag"
40755 || test ! -s conftest.err'
ac1cb8d3
VS
40756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40757 (eval $ac_try) 2>&5
40758 ac_status=$?
40759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40760 (exit $ac_status); }; } &&
40761 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40763 (eval $ac_try) 2>&5
40764 ac_status=$?
40765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40766 (exit $ac_status); }; }; then
40767
40768 echo "$as_me:$LINENO: result: yes" >&5
40769echo "${ECHO_T}yes" >&6
a848cd7e
SC
40770 GCC_PCH=1
40771
40772else
40773 echo "$as_me: failed program was:" >&5
40774sed 's/^/| /' conftest.$ac_ext >&5
40775
40776
40777 echo "$as_me:$LINENO: result: no" >&5
40778echo "${ECHO_T}no" >&6
40779
40780fi
ac1cb8d3 40781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40782 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
40783
40784D='$'
40785cat <<EOF >bk-make-pch
a848cd7e
SC
40786#!/bin/sh
40787
40788# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
40789# script. It is used to generated precompiled headers.
40790#
40791# Permission is given to use this file in any way.
40792
1e9e8aba
DE
40793outfile="${D}{1}"
40794header="${D}{2}"
a848cd7e
SC
40795shift
40796shift
40797
40798compiler=
40799headerfile=
1e9e8aba
DE
40800while test ${D}{#} -gt 0; do
40801 case "${D}{1}" in
a848cd7e 40802 -I* )
1e9e8aba
DE
40803 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
40804 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
40805 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
40806 fi
40807 ;;
40808 esac
1e9e8aba 40809 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
40810 shift
40811done
40812
1e9e8aba
DE
40813if test "x${D}{headerfile}" = "x" ; then
40814 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 40815else
1e9e8aba
DE
40816 if test -f ${D}{outfile} ; then
40817 rm -f ${D}{outfile}
a848cd7e 40818 else
1e9e8aba 40819 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 40820 fi
1e9e8aba 40821 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
40822 mkdir -p .deps
40823 # can do this because gcc is >= 3.4:
1e9e8aba
DE
40824 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
40825 exit ${D}{?}
a848cd7e
SC
40826fi
40827EOF
1e9e8aba 40828
a848cd7e
SC
40829 chmod +x bk-make-pch
40830 fi
40831 fi
40832 fi
40833
40834
40835
a848cd7e
SC
40836 COND_BUILD_DEBUG="#"
40837 if test "x$BUILD" = "xdebug" ; then
40838 COND_BUILD_DEBUG=""
40839 fi
40840
40841 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
40842 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
40843 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
40844 fi
40845
40846 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
40847 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
40848 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
40849 fi
40850
40851 COND_BUILD_DEBUG_UNICODE_0="#"
40852 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
40853 COND_BUILD_DEBUG_UNICODE_0=""
40854 fi
40855
40856 COND_BUILD_DEBUG_UNICODE_1="#"
40857 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
40858 COND_BUILD_DEBUG_UNICODE_1=""
40859 fi
40860
40861 COND_BUILD_RELEASE="#"
40862 if test "x$BUILD" = "xrelease" ; then
40863 COND_BUILD_RELEASE=""
40864 fi
40865
40866 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
40867 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
40868 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
40869 fi
40870
40871 COND_BUILD_RELEASE_UNICODE_0="#"
40872 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
40873 COND_BUILD_RELEASE_UNICODE_0=""
40874 fi
40875
40876 COND_BUILD_RELEASE_UNICODE_1="#"
40877 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
40878 COND_BUILD_RELEASE_UNICODE_1=""
40879 fi
40880
40881 COND_DEBUG_FLAG_1="#"
40882 if test "x$DEBUG_FLAG" = "x1" ; then
40883 COND_DEBUG_FLAG_1=""
40884 fi
40885
40886 COND_DEBUG_INFO_0="#"
40887 if test "x$DEBUG_INFO" = "x0" ; then
40888 COND_DEBUG_INFO_0=""
40889 fi
40890
40891 COND_DEBUG_INFO_1="#"
40892 if test "x$DEBUG_INFO" = "x1" ; then
40893 COND_DEBUG_INFO_1=""
40894 fi
40895
40896 COND_DEPS_TRACKING_0="#"
40897 if test "x$DEPS_TRACKING" = "x0" ; then
40898 COND_DEPS_TRACKING_0=""
40899 fi
40900
40901 COND_DEPS_TRACKING_1="#"
40902 if test "x$DEPS_TRACKING" = "x1" ; then
40903 COND_DEPS_TRACKING_1=""
40904 fi
40905
40906 COND_GCC_PCH_1="#"
40907 if test "x$GCC_PCH" = "x1" ; then
40908 COND_GCC_PCH_1=""
40909 fi
40910
40911 COND_MONOLITHIC_0="#"
40912 if test "x$MONOLITHIC" = "x0" ; then
40913 COND_MONOLITHIC_0=""
40914 fi
40915
40916 COND_MONOLITHIC_0_SHARED_0="#"
40917 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
40918 COND_MONOLITHIC_0_SHARED_0=""
40919 fi
40920
40921 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
40922 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
40923 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
40924 fi
40925
90970d69
DE
40926 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
40927 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40928 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
40929 fi
40930
a848cd7e
SC
40931 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
40932 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40933 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
40934 fi
40935
a848cd7e
SC
40936 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
40937 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
40938 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
40939 fi
40940
ceec2216
RL
40941 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
40942 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
40943 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
40944 fi
40945
a848cd7e
SC
40946 COND_MONOLITHIC_0_SHARED_1="#"
40947 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
40948 COND_MONOLITHIC_0_SHARED_1=""
40949 fi
40950
40951 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
40952 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
40953 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
40954 fi
40955
90970d69
DE
40956 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
40957 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
40958 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
40959 fi
40960
a848cd7e
SC
40961 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
40962 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
40963 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
40964 fi
40965
a848cd7e
SC
40966 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
40967 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
40968 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
40969 fi
40970
ceec2216
RL
40971 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
40972 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
40973 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
40974 fi
40975
a848cd7e
SC
40976 COND_MONOLITHIC_0_USE_ODBC_1="#"
40977 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
40978 COND_MONOLITHIC_0_USE_ODBC_1=""
40979 fi
40980
40981 COND_MONOLITHIC_1="#"
40982 if test "x$MONOLITHIC" = "x1" ; then
40983 COND_MONOLITHIC_1=""
40984 fi
40985
40986 COND_MONOLITHIC_1_SHARED_0="#"
40987 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
40988 COND_MONOLITHIC_1_SHARED_0=""
40989 fi
40990
40991 COND_MONOLITHIC_1_SHARED_1="#"
40992 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
40993 COND_MONOLITHIC_1_SHARED_1=""
40994 fi
40995
40996 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
40997 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
40998 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
40999 fi
41000
41001 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
41002 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
41003 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
41004 fi
41005
41006 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
41007 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
41008 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
41009 fi
41010
41011 COND_PLATFORM_MACOSX_1="#"
41012 if test "x$PLATFORM_MACOSX" = "x1" ; then
41013 COND_PLATFORM_MACOSX_1=""
41014 fi
41015
a30f955f
VS
41016 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
41017 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
41018 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
41019 fi
41020
a848cd7e
SC
41021 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
41022 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
41023 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
41024 fi
41025
41026 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
41027 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
41028 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
41029 fi
41030
41031 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
41032 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
41033 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
41034 fi
41035
fc480dc1
DE
41036 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
41037 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41038 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
41039 fi
41040
1e9e8aba
DE
41041 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41042 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41043 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41044 fi
41045
ebee3cd0
VS
41046 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
41047 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
41048 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
41049 fi
41050
41051 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
41052 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
41053 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
41054 fi
41055
a848cd7e
SC
41056 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
41057 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
41058 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
41059 fi
41060
41061 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
41062 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
41063 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
41064 fi
41065
b48a2016
DE
41066 COND_PLATFORM_MACOS_1="#"
41067 if test "x$PLATFORM_MACOS" = "x1" ; then
41068 COND_PLATFORM_MACOS_1=""
41069 fi
41070
a848cd7e
SC
41071 COND_PLATFORM_MAC_1="#"
41072 if test "x$PLATFORM_MAC" = "x1" ; then
41073 COND_PLATFORM_MAC_1=""
41074 fi
41075
41076 COND_PLATFORM_OS2_1="#"
41077 if test "x$PLATFORM_OS2" = "x1" ; then
41078 COND_PLATFORM_OS2_1=""
41079 fi
41080
41081 COND_PLATFORM_UNIX_0="#"
41082 if test "x$PLATFORM_UNIX" = "x0" ; then
41083 COND_PLATFORM_UNIX_0=""
41084 fi
41085
41086 COND_PLATFORM_UNIX_1="#"
41087 if test "x$PLATFORM_UNIX" = "x1" ; then
41088 COND_PLATFORM_UNIX_1=""
41089 fi
41090
41091 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
41092 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
41093 COND_PLATFORM_UNIX_1_USE_GUI_1=""
41094 fi
41095
41096 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
41097 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
41098 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
41099 fi
41100
41101 COND_PLATFORM_WIN32_0="#"
41102 if test "x$PLATFORM_WIN32" = "x0" ; then
41103 COND_PLATFORM_WIN32_0=""
41104 fi
41105
41106 COND_PLATFORM_WIN32_1="#"
41107 if test "x$PLATFORM_WIN32" = "x1" ; then
41108 COND_PLATFORM_WIN32_1=""
41109 fi
41110
41111 COND_SHARED_0="#"
41112 if test "x$SHARED" = "x0" ; then
41113 COND_SHARED_0=""
41114 fi
41115
ceec2216
RL
41116 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
41117 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
41118 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
41119 fi
41120
41121 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
41122 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
41123 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
41124 fi
41125
41126 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
41127 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
41128 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
41129 fi
41130
a848cd7e
SC
41131 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
41132 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41133 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
41134 fi
41135
41136 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41137 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41138 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41139 fi
41140
41141 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41142 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41143 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41144 fi
41145
41146 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41147 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41148 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41149 fi
41150
41151 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
41152 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
41153 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
41154 fi
41155
41156 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
41157 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
41158 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
41159 fi
41160
41161 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
41162 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
41163 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
41164 fi
41165
41166 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
41167 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
41168 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
41169 fi
41170
41171 COND_SHARED_1="#"
41172 if test "x$SHARED" = "x1" ; then
41173 COND_SHARED_1=""
41174 fi
41175
41176 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
41177 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
41178 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
41179 fi
41180
a30f955f
VS
41181 COND_TOOLKIT_="#"
41182 if test "x$TOOLKIT" = "x" ; then
41183 COND_TOOLKIT_=""
41184 fi
41185
a848cd7e
SC
41186 COND_TOOLKIT_COCOA="#"
41187 if test "x$TOOLKIT" = "xCOCOA" ; then
41188 COND_TOOLKIT_COCOA=""
41189 fi
41190
a49baeab
DE
41191 COND_TOOLKIT_COCOA_USE_GUI_1="#"
41192 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
41193 COND_TOOLKIT_COCOA_USE_GUI_1=""
41194 fi
41195
a848cd7e
SC
41196 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
41197 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41198 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
41199 fi
41200
41201 COND_TOOLKIT_GTK="#"
41202 if test "x$TOOLKIT" = "xGTK" ; then
41203 COND_TOOLKIT_GTK=""
41204 fi
41205
41206 COND_TOOLKIT_GTK_USE_GUI_1="#"
41207 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
41208 COND_TOOLKIT_GTK_USE_GUI_1=""
41209 fi
41210
41211 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
41212 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41213 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
41214 fi
41215
41216 COND_TOOLKIT_MAC="#"
41217 if test "x$TOOLKIT" = "xMAC" ; then
41218 COND_TOOLKIT_MAC=""
41219 fi
41220
41221 COND_TOOLKIT_MAC_USE_GUI_1="#"
41222 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
41223 COND_TOOLKIT_MAC_USE_GUI_1=""
41224 fi
41225
41226 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
41227 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41228 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
41229 fi
41230
41231 COND_TOOLKIT_MGL="#"
41232 if test "x$TOOLKIT" = "xMGL" ; then
41233 COND_TOOLKIT_MGL=""
41234 fi
41235
41236 COND_TOOLKIT_MGL_USE_GUI_1="#"
41237 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
41238 COND_TOOLKIT_MGL_USE_GUI_1=""
41239 fi
41240
41241 COND_TOOLKIT_MOTIF="#"
41242 if test "x$TOOLKIT" = "xMOTIF" ; then
41243 COND_TOOLKIT_MOTIF=""
41244 fi
41245
41246 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
41247 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
41248 COND_TOOLKIT_MOTIF_USE_GUI_1=""
41249 fi
41250
41251 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
41252 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41253 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
41254 fi
41255
41256 COND_TOOLKIT_MSW="#"
41257 if test "x$TOOLKIT" = "xMSW" ; then
41258 COND_TOOLKIT_MSW=""
41259 fi
41260
41261 COND_TOOLKIT_MSW_USE_GUI_1="#"
41262 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
41263 COND_TOOLKIT_MSW_USE_GUI_1=""
41264 fi
41265
41266 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
41267 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41268 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
41269 fi
41270
41271 COND_TOOLKIT_PM="#"
41272 if test "x$TOOLKIT" = "xPM" ; then
41273 COND_TOOLKIT_PM=""
41274 fi
41275
41276 COND_TOOLKIT_PM_USE_GUI_1="#"
41277 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
41278 COND_TOOLKIT_PM_USE_GUI_1=""
41279 fi
41280
41281 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
41282 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41283 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
41284 fi
41285
3fd9c298
DE
41286 COND_TOOLKIT_WINCE="#"
41287 if test "x$TOOLKIT" = "xWINCE" ; then
41288 COND_TOOLKIT_WINCE=""
41289 fi
41290
41291 COND_TOOLKIT_WINCE_USE_GUI_1="#"
41292 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
41293 COND_TOOLKIT_WINCE_USE_GUI_1=""
41294 fi
41295
41296 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
41297 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41298 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
41299 fi
41300
a848cd7e
SC
41301 COND_TOOLKIT_X11="#"
41302 if test "x$TOOLKIT" = "xX11" ; then
41303 COND_TOOLKIT_X11=""
41304 fi
41305
41306 COND_TOOLKIT_X11_USE_GUI_1="#"
41307 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
41308 COND_TOOLKIT_X11_USE_GUI_1=""
41309 fi
41310
41311 COND_UNICODE_1="#"
41312 if test "x$UNICODE" = "x1" ; then
41313 COND_UNICODE_1=""
41314 fi
41315
41316 COND_USE_EXCEPTIONS_0="#"
41317 if test "x$USE_EXCEPTIONS" = "x0" ; then
41318 COND_USE_EXCEPTIONS_0=""
41319 fi
41320
41321 COND_USE_EXCEPTIONS_1="#"
41322 if test "x$USE_EXCEPTIONS" = "x1" ; then
41323 COND_USE_EXCEPTIONS_1=""
41324 fi
41325
41326 COND_USE_GUI_0="#"
41327 if test "x$USE_GUI" = "x0" ; then
41328 COND_USE_GUI_0=""
41329 fi
41330
41331 COND_USE_GUI_1="#"
41332 if test "x$USE_GUI" = "x1" ; then
41333 COND_USE_GUI_1=""
41334 fi
41335
41336 COND_USE_GUI_1_WXUNIV_0="#"
41337 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
41338 COND_USE_GUI_1_WXUNIV_0=""
41339 fi
41340
41341 COND_USE_GUI_1_WXUNIV_1="#"
41342 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
41343 COND_USE_GUI_1_WXUNIV_1=""
41344 fi
41345
41346 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
41347 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41348 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
41349 fi
41350
41351 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
41352 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41353 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
41354 fi
41355
41356 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
41357 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41358 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
41359 fi
41360
ceec2216
RL
41361 COND_USE_ODBC_1="#"
41362 if test "x$USE_ODBC" = "x1" ; then
41363 COND_USE_ODBC_1=""
41364 fi
41365
ffa0583f
RL
41366 COND_USE_OPENGL_1="#"
41367 if test "x$USE_OPENGL" = "x1" ; then
41368 COND_USE_OPENGL_1=""
41369 fi
41370
a848cd7e
SC
41371 COND_USE_PLUGINS_0="#"
41372 if test "x$USE_PLUGINS" = "x0" ; then
41373 COND_USE_PLUGINS_0=""
41374 fi
41375
41376 COND_USE_SOSYMLINKS_1="#"
41377 if test "x$USE_SOSYMLINKS" = "x1" ; then
41378 COND_USE_SOSYMLINKS_1=""
41379 fi
41380
41381 COND_USE_SOVERLINUX_1="#"
41382 if test "x$USE_SOVERLINUX" = "x1" ; then
41383 COND_USE_SOVERLINUX_1=""
41384 fi
41385
41386 COND_USE_SOVERSION_0="#"
41387 if test "x$USE_SOVERSION" = "x0" ; then
41388 COND_USE_SOVERSION_0=""
41389 fi
41390
41391 COND_USE_SOVERSOLARIS_1="#"
41392 if test "x$USE_SOVERSOLARIS" = "x1" ; then
41393 COND_USE_SOVERSOLARIS_1=""
41394 fi
41395
a13a7f89
RL
41396 COND_USE_XRC_1="#"
41397 if test "x$USE_XRC" = "x1" ; then
41398 COND_USE_XRC_1=""
41399 fi
41400
a848cd7e
SC
41401 COND_WITH_PLUGIN_SDL_1="#"
41402 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
41403 COND_WITH_PLUGIN_SDL_1=""
41404 fi
41405
1e6eb025
VZ
41406 COND_WXUNIV_0="#"
41407 if test "x$WXUNIV" = "x0" ; then
41408 COND_WXUNIV_0=""
41409 fi
41410
a848cd7e
SC
41411 COND_WXUNIV_1="#"
41412 if test "x$WXUNIV" = "x1" ; then
41413 COND_WXUNIV_1=""
41414 fi
41415
41416 COND_WXUSE_EXPAT_BUILTIN="#"
41417 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
41418 COND_WXUSE_EXPAT_BUILTIN=""
41419 fi
41420
41421 COND_WXUSE_LIBJPEG_BUILTIN="#"
41422 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
41423 COND_WXUSE_LIBJPEG_BUILTIN=""
41424 fi
41425
41426 COND_WXUSE_LIBPNG_BUILTIN="#"
41427 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
41428 COND_WXUSE_LIBPNG_BUILTIN=""
41429 fi
41430
41431 COND_WXUSE_LIBTIFF_BUILTIN="#"
41432 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
41433 COND_WXUSE_LIBTIFF_BUILTIN=""
41434 fi
41435
41436 COND_WXUSE_ODBC_BUILTIN="#"
41437 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
41438 COND_WXUSE_ODBC_BUILTIN=""
41439 fi
41440
41441 COND_WXUSE_REGEX_BUILTIN="#"
41442 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
41443 COND_WXUSE_REGEX_BUILTIN=""
41444 fi
41445
41446 COND_WXUSE_ZLIB_BUILTIN="#"
41447 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
41448 COND_WXUSE_ZLIB_BUILTIN=""
41449 fi
41450
41451
41452
2057db16
VS
41453 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
41454 { { 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
41455echo "$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;}
41456 { (exit 1); exit 1; }; }
41457 fi
41458
a848cd7e 41459
ceec2216
RL
41460if test "$wxUSE_SHARED" = "yes"; then
41461
41462 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
41463 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
41464
5b674b9d
DE
41465 case "${host}" in
41466 *-pc-os2_emx | *-pc-os2-emx )
41467 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41468 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
41469 cp -p ${srcdir}/src/os2/dllnames.sh .
41470 cp -p ${srcdir}/src/os2/dllar.sh .
41471 ;;
41472 esac
ceec2216
RL
41473else
41474
41475 EXE_LINKER="$CXX -o"
41476
41477fi
a848cd7e 41478
74b84332 41479GCC_PRAGMA_FLAGS=""
a848cd7e
SC
41480 case "${host}" in
41481 powerpc-*-darwin* )
74b84332 41482 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
a848cd7e 41483 ;;
bea8e651 41484 *-*-mingw32* )
1f344abf
VS
41485 if test "$wxUSE_STL" = "yes" -o \
41486 "$wxUSE_NO_EXCEPTIONS" != "yes" -o \
41487 "$wxUSE_NO_RTTI" != "yes"; then
41488 echo "$as_me:$LINENO: checking if this MinGW version needs -DNO_GCC_PRAGMA" >&5
41489echo $ECHO_N "checking if this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
bea8e651
MB
41490 cat >conftest.$ac_ext <<_ACEOF
41491/* confdefs.h. */
41492_ACEOF
41493cat confdefs.h >>conftest.$ac_ext
41494cat >>conftest.$ac_ext <<_ACEOF
41495/* end confdefs.h. */
41496
3314e67b
RR
41497int
41498main ()
41499{
41500#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
41501 #error "Not GCC 3.2 or greater"
41502 #endif
41503
41504 ;
41505 return 0;
41506}
41507_ACEOF
41508rm -f conftest.$ac_objext
41509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41510 (eval $ac_compile) 2>conftest.er1
41511 ac_status=$?
41512 grep -v '^ *+' conftest.er1 >conftest.err
41513 rm -f conftest.er1
41514 cat conftest.err >&5
41515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516 (exit $ac_status); } &&
04840eaa
VS
41517 { ac_try='test -z "$ac_c_werror_flag"
41518 || test ! -s conftest.err'
3314e67b
RR
41519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41520 (eval $ac_try) 2>&5
41521 ac_status=$?
41522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41523 (exit $ac_status); }; } &&
41524 { ac_try='test -s conftest.$ac_objext'
41525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41526 (eval $ac_try) 2>&5
41527 ac_status=$?
41528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41529 (exit $ac_status); }; }; then
41530 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
41531 echo "$as_me:$LINENO: result: yes" >&5
41532echo "${ECHO_T}yes" >&6
41533else
41534 echo "$as_me: failed program was:" >&5
41535sed 's/^/| /' conftest.$ac_ext >&5
41536
41537echo "$as_me:$LINENO: result: no" >&5
41538echo "${ECHO_T}no" >&6
41539fi
41540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41541 fi
41542 ;;
41543 *-pc-os2_emx | *-pc-os2-emx )
41544 if test "$wxUSE_STL" = "yes"; then
41545 echo "$as_me:$LINENO: checking if this gcc version needs -DNO_GCC_PRAGMA" >&5
41546echo $ECHO_N "checking if this gcc version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6
41547 cat >conftest.$ac_ext <<_ACEOF
41548/* confdefs.h. */
41549_ACEOF
41550cat confdefs.h >>conftest.$ac_ext
41551cat >>conftest.$ac_ext <<_ACEOF
41552/* end confdefs.h. */
41553
bea8e651
MB
41554int
41555main ()
41556{
1f344abf 41557#if !(__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 2))
bea8e651
MB
41558 #error "Not GCC 3.2 or greater"
41559 #endif
41560
41561 ;
41562 return 0;
41563}
41564_ACEOF
41565rm -f conftest.$ac_objext
41566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41567 (eval $ac_compile) 2>conftest.er1
bea8e651 41568 ac_status=$?
ac1cb8d3
VS
41569 grep -v '^ *+' conftest.er1 >conftest.err
41570 rm -f conftest.er1
41571 cat conftest.err >&5
bea8e651
MB
41572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41573 (exit $ac_status); } &&
04840eaa
VS
41574 { ac_try='test -z "$ac_c_werror_flag"
41575 || test ! -s conftest.err'
ac1cb8d3
VS
41576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41577 (eval $ac_try) 2>&5
41578 ac_status=$?
41579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41580 (exit $ac_status); }; } &&
41581 { ac_try='test -s conftest.$ac_objext'
bea8e651
MB
41582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41583 (eval $ac_try) 2>&5
41584 ac_status=$?
41585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41586 (exit $ac_status); }; }; then
74b84332 41587 GCC_PRAGMA_FLAGS="-DNO_GCC_PRAGMA"
bea8e651
MB
41588 echo "$as_me:$LINENO: result: yes" >&5
41589echo "${ECHO_T}yes" >&6
41590else
41591 echo "$as_me: failed program was:" >&5
41592sed 's/^/| /' conftest.$ac_ext >&5
41593
41594echo "$as_me:$LINENO: result: no" >&5
41595echo "${ECHO_T}no" >&6
41596fi
ac1cb8d3 41597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bea8e651
MB
41598 fi
41599 ;;
a848cd7e 41600 esac
d2083416
DE
41601
41602PCH_FLAGS=""
41603if test $GCC_PCH = 1 ; then
41604 if test "x$GCC_PRAGMA_FLAGS" = "x"; then
41605 PCH_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA"
41606 else
41607 PCH_FLAGS="-DWX_PRECOMP"
41608 fi
a848cd7e 41609fi
d2083416
DE
41610
41611CPPFLAGS="$PCH_FLAGS $GCC_PRAGMA_FLAGS $CPPFLAGS"
a848cd7e
SC
41612
41613
41614SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
41615
41616
41617
41618
41619
41620
41621
41622
41623
41624
41625
41626
41627
41628
41629
41630
41631
41632
41633
41634
41635
41636
41637
41638
41639
41640
41641
41642
41643
41644
41645
41646
41647
41648
41649
41650
41651
41652
41653
41654
41655
41656
a848cd7e
SC
41657
41658
41659
41660
41661
41662
41663
41664
41665
41666
41667
41668
41669
41670
41671
41672
41673
41674
74b84332 41675
a848cd7e
SC
41676
41677
41678echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
41679echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 41680set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
41681if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
41682 echo $ECHO_N "(cached) $ECHO_C" >&6
41683else
41684 cat >conftest.make <<\_ACEOF
41685all:
41686 @echo 'ac_maketemp="$(MAKE)"'
41687_ACEOF
41688# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
41689eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
41690if test -n "$ac_maketemp"; then
41691 eval ac_cv_prog_make_${ac_make}_set=yes
41692else
41693 eval ac_cv_prog_make_${ac_make}_set=no
41694fi
41695rm -f conftest.make
41696fi
41697if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
41698 echo "$as_me:$LINENO: result: yes" >&5
41699echo "${ECHO_T}yes" >&6
41700 SET_MAKE=
41701else
41702 echo "$as_me:$LINENO: result: no" >&5
41703echo "${ECHO_T}no" >&6
41704 SET_MAKE="MAKE=${MAKE-make}"
41705fi
41706
41707
a848cd7e 41708
ceec2216
RL
41709 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
41710
a848cd7e 41711
ceec2216 41712 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 41713
a848cd7e 41714
ceec2216 41715 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 41716
ceec2216
RL
41717
41718 ac_config_files="$ac_config_files version-script Makefile"
41719
41720
41721 ac_config_commands="$ac_config_commands wx-config
41722 "
a848cd7e
SC
41723
41724
9103d280
RL
41725
41726
a848cd7e
SC
41727if test "$wxUSE_GUI" = "yes"; then
41728 SUBDIRS="samples demos utils contrib"
41729else SUBDIRS="samples utils"
41730fi
41731
41732
41733
41734# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
41735if test "${with_cppunit_prefix+set}" = set; then
41736 withval="$with_cppunit_prefix"
41737 cppunit_config_prefix="$withval"
41738else
41739 cppunit_config_prefix=""
41740fi;
41741
41742# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
41743if test "${with_cppunit_exec_prefix+set}" = set; then
41744 withval="$with_cppunit_exec_prefix"
41745 cppunit_config_exec_prefix="$withval"
41746else
41747 cppunit_config_exec_prefix=""
41748fi;
41749
41750 if test x$cppunit_config_exec_prefix != x ; then
41751 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
41752 if test x${CPPUNIT_CONFIG+set} != xset ; then
41753 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
41754 fi
41755 fi
41756 if test x$cppunit_config_prefix != x ; then
41757 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
41758 if test x${CPPUNIT_CONFIG+set} != xset ; then
41759 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
41760 fi
41761 fi
41762
41763 # Extract the first word of "cppunit-config", so it can be a program name with args.
41764set dummy cppunit-config; ac_word=$2
41765echo "$as_me:$LINENO: checking for $ac_word" >&5
41766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
41767if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
41768 echo $ECHO_N "(cached) $ECHO_C" >&6
41769else
41770 case $CPPUNIT_CONFIG in
41771 [\\/]* | ?:[\\/]*)
41772 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
41773 ;;
41774 *)
41775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41776for as_dir in $PATH
41777do
41778 IFS=$as_save_IFS
41779 test -z "$as_dir" && as_dir=.
41780 for ac_exec_ext in '' $ac_executable_extensions; do
41781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41782 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
41783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
41784 break 2
41785 fi
41786done
41787done
41788
41789 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
41790 ;;
41791esac
41792fi
41793CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
41794
41795if test -n "$CPPUNIT_CONFIG"; then
41796 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
41797echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
41798else
41799 echo "$as_me:$LINENO: result: no" >&5
41800echo "${ECHO_T}no" >&6
41801fi
41802
41803 cppunit_version_min=1.8.0
41804
41805 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
41806echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
41807 no_cppunit=""
41808 if test "$CPPUNIT_CONFIG" = "no" ; then
41809 no_cppunit=yes
41810 else
41811 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
41812 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
41813 cppunit_version=`$CPPUNIT_CONFIG --version`
41814
41815 cppunit_major_version=`echo $cppunit_version | \
41816 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41817 cppunit_minor_version=`echo $cppunit_version | \
41818 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41819 cppunit_micro_version=`echo $cppunit_version | \
41820 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41821
41822 cppunit_major_min=`echo $cppunit_version_min | \
41823 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
41824 cppunit_minor_min=`echo $cppunit_version_min | \
41825 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
41826 cppunit_micro_min=`echo $cppunit_version_min | \
41827 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
41828
41829 cppunit_version_proper=`expr \
41830 $cppunit_major_version \> $cppunit_major_min \| \
41831 $cppunit_major_version \= $cppunit_major_min \& \
41832 $cppunit_minor_version \> $cppunit_minor_min \| \
41833 $cppunit_major_version \= $cppunit_major_min \& \
41834 $cppunit_minor_version \= $cppunit_minor_min \& \
41835 $cppunit_micro_version \>= $cppunit_micro_min `
41836
41837 if test "$cppunit_version_proper" = "1" ; then
41838 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
41839echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
41840 else
41841 echo "$as_me:$LINENO: result: no" >&5
41842echo "${ECHO_T}no" >&6
41843 no_cppunit=yes
41844 fi
41845 fi
41846
41847 if test "x$no_cppunit" = x ; then
c2218763 41848 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
41849 else
41850 CPPUNIT_CFLAGS=""
41851 CPPUNIT_LIBS=""
c2218763 41852 :
a848cd7e
SC
41853 fi
41854
41855
41856
41857
41858
41859for subdir in `echo $SUBDIRS`; do
41860 if test -d ${srcdir}/${subdir} ; then
41861 if test "$wxUSE_GUI" = "yes"; then
41862 if test ${subdir} = "samples"; then
41863 makefiles="samples/Makefile.in $makefiles"
41864 for sample in `echo $SAMPLES_SUBDIRS`; do
41865 if test -d $srcdir/samples/$sample; then
41866 makefiles="samples/$sample/Makefile.in $makefiles"
41867 fi
41868 done
41869 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41870 fi
41871 else if test ${subdir} = "samples"; then
41872 makefiles="samples/Makefile.in samples/console/Makefile.in"
41873 elif test ${subdir} = "utils"; then
6537ccf8
VS
41874 makefiles=""
41875 for util in HelpGen tex2rtf ; do
41876 if test -d $srcdir/utils/$util ; then
41877 makefiles="utils/$util/Makefile.in \
41878 utils/$util/src/Makefile.in \
41879 $makefiles"
41880 fi
41881 done
a848cd7e
SC
41882 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
41883 fi
41884 fi
41885
41886 for mkin in $makefiles ; do
41887 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
41888 ac_config_files="$ac_config_files $mk"
41889
41890 done
41891 fi
41892done
41893
41894
41895cat >confcache <<\_ACEOF
41896# This file is a shell script that caches the results of configure
41897# tests run on this system so they can be shared between configure
41898# scripts and configure runs, see configure's option --config-cache.
41899# It is not useful on other systems. If it contains results you don't
41900# want to keep, you may remove or edit it.
41901#
41902# config.status only pays attention to the cache file if you give it
41903# the --recheck option to rerun configure.
41904#
41905# `ac_cv_env_foo' variables (set or unset) will be overridden when
41906# loading this file, other *unset* `ac_cv_foo' will be assigned the
41907# following values.
41908
41909_ACEOF
41910
41911# The following way of writing the cache mishandles newlines in values,
41912# but we know of no workaround that is simple, portable, and efficient.
41913# So, don't put newlines in cache variables' values.
41914# Ultrix sh set writes to stderr and can't be redirected directly,
41915# and sets the high bit in the cache file unless we assign to the vars.
41916{
41917 (set) 2>&1 |
41918 case `(ac_space=' '; set | grep ac_space) 2>&1` in
41919 *ac_space=\ *)
41920 # `set' does not quote correctly, so add quotes (double-quote
41921 # substitution turns \\\\ into \\, and sed turns \\ into \).
41922 sed -n \
ac1cb8d3
VS
41923 "s/'/'\\\\''/g;
41924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
41925 ;;
41926 *)
41927 # `set' quotes correctly as required by POSIX, so do not add quotes.
41928 sed -n \
ac1cb8d3 41929 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
41930 ;;
41931 esac;
41932} |
41933 sed '
41934 t clear
41935 : clear
41936 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41937 t end
41938 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41939 : end' >>confcache
41940if diff $cache_file confcache >/dev/null 2>&1; then :; else
41941 if test -w $cache_file; then
41942 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
41943 cat confcache >$cache_file
41944 else
41945 echo "not updating unwritable cache $cache_file"
41946 fi
41947fi
41948rm -f confcache
41949
41950test "x$prefix" = xNONE && prefix=$ac_default_prefix
41951# Let make expand exec_prefix.
41952test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41953
41954# VPATH may cause trouble with some makes, so we remove $(srcdir),
41955# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
41956# trailing colons and then remove the whole line if VPATH becomes empty
41957# (actually we leave an empty line to preserve line numbers).
41958if test "x$srcdir" = x.; then
ac1cb8d3 41959 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
41960s/:*\$(srcdir):*/:/;
41961s/:*\${srcdir}:*/:/;
41962s/:*@srcdir@:*/:/;
ac1cb8d3 41963s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 41964s/:*$//;
ac1cb8d3 41965s/^[^=]*=[ ]*$//;
a848cd7e
SC
41966}'
41967fi
41968
41969DEFS=-DHAVE_CONFIG_H
41970
41971ac_libobjs=
41972ac_ltlibobjs=
41973for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41974 # 1. Remove the extension, and $U if already installed.
41975 ac_i=`echo "$ac_i" |
ac1cb8d3 41976 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
41977 # 2. Add them.
41978 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
41979 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
41980done
41981LIBOBJS=$ac_libobjs
41982
41983LTLIBOBJS=$ac_ltlibobjs
41984
41985
41986
41987: ${CONFIG_STATUS=./config.status}
41988ac_clean_files_save=$ac_clean_files
41989ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41990{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41991echo "$as_me: creating $CONFIG_STATUS" >&6;}
41992cat >$CONFIG_STATUS <<_ACEOF
41993#! $SHELL
41994# Generated by $as_me.
41995# Run this file to recreate the current configuration.
41996# Compiler output produced by configure, useful for debugging
41997# configure, is in config.log if it exists.
41998
41999debug=false
42000ac_cs_recheck=false
42001ac_cs_silent=false
42002SHELL=\${CONFIG_SHELL-$SHELL}
42003_ACEOF
42004
42005cat >>$CONFIG_STATUS <<\_ACEOF
42006## --------------------- ##
42007## M4sh Initialization. ##
42008## --------------------- ##
42009
42010# Be Bourne compatible
42011if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42012 emulate sh
42013 NULLCMD=:
42014 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42015 # is contrary to our usage. Disable this feature.
42016 alias -g '${1+"$@"}'='"$@"'
42017elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
42018 set -o posix
42019fi
ac1cb8d3 42020DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
42021
42022# Support unset when possible.
ac1cb8d3 42023if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
42024 as_unset=unset
42025else
42026 as_unset=false
42027fi
42028
42029
42030# Work around bugs in pre-3.0 UWIN ksh.
42031$as_unset ENV MAIL MAILPATH
42032PS1='$ '
42033PS2='> '
42034PS4='+ '
42035
42036# NLS nuisances.
42037for as_var in \
42038 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42039 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42040 LC_TELEPHONE LC_TIME
42041do
ac1cb8d3 42042 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
42043 eval $as_var=C; export $as_var
42044 else
42045 $as_unset $as_var
42046 fi
42047done
42048
42049# Required to use basename.
42050if expr a : '\(a\)' >/dev/null 2>&1; then
42051 as_expr=expr
42052else
42053 as_expr=false
42054fi
42055
42056if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
42057 as_basename=basename
42058else
42059 as_basename=false
42060fi
42061
42062
42063# Name of the executable.
42064as_me=`$as_basename "$0" ||
42065$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42066 X"$0" : 'X\(//\)$' \| \
42067 X"$0" : 'X\(/\)$' \| \
42068 . : '\(.\)' 2>/dev/null ||
42069echo X/"$0" |
42070 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
42071 /^X\/\(\/\/\)$/{ s//\1/; q; }
42072 /^X\/\(\/\).*/{ s//\1/; q; }
42073 s/.*/./; q'`
42074
42075
42076# PATH needs CR, and LINENO needs CR and PATH.
42077# Avoid depending upon Character Ranges.
42078as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42079as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42080as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42081as_cr_digits='0123456789'
42082as_cr_alnum=$as_cr_Letters$as_cr_digits
42083
42084# The user is always right.
42085if test "${PATH_SEPARATOR+set}" != set; then
42086 echo "#! /bin/sh" >conf$$.sh
42087 echo "exit 0" >>conf$$.sh
42088 chmod +x conf$$.sh
42089 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42090 PATH_SEPARATOR=';'
42091 else
42092 PATH_SEPARATOR=:
42093 fi
42094 rm -f conf$$.sh
42095fi
42096
42097
42098 as_lineno_1=$LINENO
42099 as_lineno_2=$LINENO
42100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42101 test "x$as_lineno_1" != "x$as_lineno_2" &&
42102 test "x$as_lineno_3" = "x$as_lineno_2" || {
42103 # Find who we are. Look in the path if we contain no path at all
42104 # relative or not.
42105 case $0 in
42106 *[\\/]* ) as_myself=$0 ;;
42107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42108for as_dir in $PATH
42109do
42110 IFS=$as_save_IFS
42111 test -z "$as_dir" && as_dir=.
42112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
42113done
42114
42115 ;;
42116 esac
42117 # We did not find ourselves, most probably we were run as `sh COMMAND'
42118 # in which case we are not to be found in the path.
42119 if test "x$as_myself" = x; then
42120 as_myself=$0
42121 fi
42122 if test ! -f "$as_myself"; then
42123 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
42124echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
42125 { (exit 1); exit 1; }; }
42126 fi
42127 case $CONFIG_SHELL in
42128 '')
42129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42130for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
42131do
42132 IFS=$as_save_IFS
42133 test -z "$as_dir" && as_dir=.
42134 for as_base in sh bash ksh sh5; do
42135 case $as_dir in
42136 /*)
42137 if ("$as_dir/$as_base" -c '
42138 as_lineno_1=$LINENO
42139 as_lineno_2=$LINENO
42140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
42141 test "x$as_lineno_1" != "x$as_lineno_2" &&
42142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
42143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
42144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
42145 CONFIG_SHELL=$as_dir/$as_base
42146 export CONFIG_SHELL
42147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
42148 fi;;
42149 esac
42150 done
42151done
42152;;
42153 esac
42154
42155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
42156 # uniformly replaced by the line number. The first 'sed' inserts a
42157 # line-number line before each line; the second 'sed' does the real
42158 # work. The second script uses 'N' to pair each line-number line
42159 # with the numbered line, and appends trailing '-' during
42160 # substitution so that $LINENO is not a special case at line end.
42161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
42162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
42163 sed '=' <$as_myself |
42164 sed '
42165 N
42166 s,$,-,
42167 : loop
42168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
42169 t loop
42170 s,-$,,
42171 s,^['$as_cr_digits']*\n,,
42172 ' >$as_me.lineno &&
42173 chmod +x $as_me.lineno ||
42174 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
42175echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
42176 { (exit 1); exit 1; }; }
42177
42178 # Don't try to exec as it changes $[0], causing all sort of problems
42179 # (the dirname of $[0] is not the place where we might find the
42180 # original and so on. Autoconf is especially sensible to this).
42181 . ./$as_me.lineno
42182 # Exit status is that of the last command.
42183 exit
42184}
42185
42186
42187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
42188 *c*,-n*) ECHO_N= ECHO_C='
42189' ECHO_T=' ' ;;
42190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
42191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
42192esac
42193
42194if expr a : '\(a\)' >/dev/null 2>&1; then
42195 as_expr=expr
42196else
42197 as_expr=false
42198fi
42199
42200rm -f conf$$ conf$$.exe conf$$.file
42201echo >conf$$.file
42202if ln -s conf$$.file conf$$ 2>/dev/null; then
42203 # We could just check for DJGPP; but this test a) works b) is more generic
42204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
42205 if test -f conf$$.exe; then
42206 # Don't use ln at all; we don't have any links
42207 as_ln_s='cp -p'
42208 else
42209 as_ln_s='ln -s'
42210 fi
42211elif ln conf$$.file conf$$ 2>/dev/null; then
42212 as_ln_s=ln
42213else
42214 as_ln_s='cp -p'
42215fi
42216rm -f conf$$ conf$$.exe conf$$.file
42217
42218if mkdir -p . 2>/dev/null; then
42219 as_mkdir_p=:
42220else
ac1cb8d3 42221 test -d ./-p && rmdir ./-p
a848cd7e
SC
42222 as_mkdir_p=false
42223fi
42224
42225as_executable_p="test -f"
42226
42227# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 42228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42229
42230# Sed expression to map a string onto a valid variable name.
ac1cb8d3 42231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
42232
42233
42234# IFS
42235# We need space, tab and new line, in precisely that order.
42236as_nl='
42237'
42238IFS=" $as_nl"
42239
42240# CDPATH.
42241$as_unset CDPATH
42242
42243exec 6>&1
42244
42245# Open the log real soon, to keep \$[0] and so on meaningful, and to
42246# report actual input values of CONFIG_FILES etc. instead of their
42247# values after options handling. Logging --version etc. is OK.
42248exec 5>>config.log
42249{
42250 echo
42251 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42252## Running $as_me. ##
42253_ASBOX
42254} >&5
42255cat >&5 <<_CSEOF
42256
7714864e 42257This file was extended by wxWidgets $as_me 2.5.3, which was
ac1cb8d3 42258generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
42259
42260 CONFIG_FILES = $CONFIG_FILES
42261 CONFIG_HEADERS = $CONFIG_HEADERS
42262 CONFIG_LINKS = $CONFIG_LINKS
42263 CONFIG_COMMANDS = $CONFIG_COMMANDS
42264 $ $0 $@
42265
42266_CSEOF
42267echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
42268echo >&5
42269_ACEOF
42270
42271# Files that config.status was made for.
42272if test -n "$ac_config_files"; then
42273 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
42274fi
42275
42276if test -n "$ac_config_headers"; then
42277 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
42278fi
42279
42280if test -n "$ac_config_links"; then
42281 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
42282fi
42283
42284if test -n "$ac_config_commands"; then
42285 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
42286fi
42287
42288cat >>$CONFIG_STATUS <<\_ACEOF
42289
42290ac_cs_usage="\
42291\`$as_me' instantiates files from templates according to the
42292current configuration.
42293
42294Usage: $0 [OPTIONS] [FILE]...
42295
42296 -h, --help print this help, then exit
42297 -V, --version print version number, then exit
42298 -q, --quiet do not print progress messages
42299 -d, --debug don't remove temporary files
42300 --recheck update $as_me by reconfiguring in the same conditions
42301 --file=FILE[:TEMPLATE]
ac1cb8d3 42302 instantiate the configuration file FILE
a848cd7e 42303 --header=FILE[:TEMPLATE]
ac1cb8d3 42304 instantiate the configuration header FILE
a848cd7e
SC
42305
42306Configuration files:
42307$config_files
42308
42309Configuration headers:
42310$config_headers
42311
42312Configuration commands:
42313$config_commands
42314
42315Report bugs to <bug-autoconf@gnu.org>."
42316_ACEOF
42317
42318cat >>$CONFIG_STATUS <<_ACEOF
42319ac_cs_version="\\
7714864e 42320wxWidgets config.status 2.5.3
ac1cb8d3 42321configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
42322 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
42323
ac1cb8d3 42324Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
42325This config.status script is free software; the Free Software Foundation
42326gives unlimited permission to copy, distribute and modify it."
42327srcdir=$srcdir
42328INSTALL="$INSTALL"
42329_ACEOF
42330
42331cat >>$CONFIG_STATUS <<\_ACEOF
42332# If no file are specified by the user, then we need to provide default
42333# value. By we need to know if files were specified by the user.
42334ac_need_defaults=:
42335while test $# != 0
42336do
42337 case $1 in
42338 --*=*)
42339 ac_option=`expr "x$1" : 'x\([^=]*\)='`
42340 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
42341 ac_shift=:
42342 ;;
42343 -*)
42344 ac_option=$1
42345 ac_optarg=$2
42346 ac_shift=shift
42347 ;;
42348 *) # This is not an option, so the user has probably given explicit
42349 # arguments.
42350 ac_option=$1
42351 ac_need_defaults=false;;
42352 esac
42353
42354 case $ac_option in
42355 # Handling of the options.
42356_ACEOF
42357cat >>$CONFIG_STATUS <<\_ACEOF
42358 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42359 ac_cs_recheck=: ;;
42360 --version | --vers* | -V )
42361 echo "$ac_cs_version"; exit 0 ;;
42362 --he | --h)
42363 # Conflict between --help and --header
42364 { { echo "$as_me:$LINENO: error: ambiguous option: $1
42365Try \`$0 --help' for more information." >&5
42366echo "$as_me: error: ambiguous option: $1
42367Try \`$0 --help' for more information." >&2;}
42368 { (exit 1); exit 1; }; };;
42369 --help | --hel | -h )
42370 echo "$ac_cs_usage"; exit 0 ;;
42371 --debug | --d* | -d )
42372 debug=: ;;
42373 --file | --fil | --fi | --f )
42374 $ac_shift
42375 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
42376 ac_need_defaults=false;;
42377 --header | --heade | --head | --hea )
42378 $ac_shift
42379 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
42380 ac_need_defaults=false;;
42381 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42382 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42383 ac_cs_silent=: ;;
42384
42385 # This is an error.
42386 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
42387Try \`$0 --help' for more information." >&5
42388echo "$as_me: error: unrecognized option: $1
42389Try \`$0 --help' for more information." >&2;}
42390 { (exit 1); exit 1; }; } ;;
42391
42392 *) ac_config_targets="$ac_config_targets $1" ;;
42393
42394 esac
42395 shift
42396done
42397
42398ac_configure_extra_args=
42399
42400if $ac_cs_silent; then
42401 exec 6>/dev/null
42402 ac_configure_extra_args="$ac_configure_extra_args --silent"
42403fi
42404
42405_ACEOF
42406cat >>$CONFIG_STATUS <<_ACEOF
42407if \$ac_cs_recheck; then
42408 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
42409 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42410fi
42411
42412_ACEOF
42413
42414cat >>$CONFIG_STATUS <<_ACEOF
42415#
42416# INIT-COMMANDS section.
42417#
42418
ceec2216
RL
42419 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42420 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42421 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
42422 LN_S="${LN_S}"
a848cd7e
SC
42423
42424
42425_ACEOF
42426
42427
42428
42429cat >>$CONFIG_STATUS <<\_ACEOF
42430for ac_config_target in $ac_config_targets
42431do
42432 case "$ac_config_target" in
42433 # Handling of arguments.
ceec2216
RL
42434 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
42435 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
42436 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
42437 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42438 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
ceec2216
RL
42439 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
42440 "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
42441 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42442echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42443 { (exit 1); exit 1; }; };;
42444 esac
42445done
42446
42447# If the user did not use the arguments to specify the items to instantiate,
42448# then the envvar interface is used. Set only those that are not.
42449# We use the long form for the default assignment because of an extremely
42450# bizarre bug on SunOS 4.1.3.
42451if $ac_need_defaults; then
42452 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42453 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42454 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42455fi
42456
42457# Have a temporary directory for convenience. Make it in the build tree
42458# simply because there is no reason to put it here, and in addition,
42459# creating and moving files from /tmp can sometimes cause problems.
42460# Create a temporary directory, and hook for its removal unless debugging.
42461$debug ||
42462{
42463 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
42464 trap '{ (exit 1); exit 1; }' 1 2 13 15
42465}
42466
42467# Create a (secure) tmp directory for tmp files.
42468
42469{
42470 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
42471 test -n "$tmp" && test -d "$tmp"
42472} ||
42473{
42474 tmp=./confstat$$-$RANDOM
42475 (umask 077 && mkdir $tmp)
42476} ||
42477{
42478 echo "$me: cannot create a temporary directory in ." >&2
42479 { (exit 1); exit 1; }
42480}
42481
42482_ACEOF
42483
42484cat >>$CONFIG_STATUS <<_ACEOF
42485
42486#
42487# CONFIG_FILES section.
42488#
42489
42490# No need to generate the scripts if there are no CONFIG_FILES.
42491# This happens for instance when ./config.status config.h
42492if test -n "\$CONFIG_FILES"; then
42493 # Protect against being on the right side of a sed subst in config.status.
42494 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
42495 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
42496s,@SHELL@,$SHELL,;t t
42497s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
42498s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
42499s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
42500s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
42501s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
42502s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
42503s,@exec_prefix@,$exec_prefix,;t t
42504s,@prefix@,$prefix,;t t
42505s,@program_transform_name@,$program_transform_name,;t t
42506s,@bindir@,$bindir,;t t
42507s,@sbindir@,$sbindir,;t t
42508s,@libexecdir@,$libexecdir,;t t
42509s,@datadir@,$datadir,;t t
42510s,@sysconfdir@,$sysconfdir,;t t
42511s,@sharedstatedir@,$sharedstatedir,;t t
42512s,@localstatedir@,$localstatedir,;t t
42513s,@libdir@,$libdir,;t t
42514s,@includedir@,$includedir,;t t
42515s,@oldincludedir@,$oldincludedir,;t t
42516s,@infodir@,$infodir,;t t
42517s,@mandir@,$mandir,;t t
42518s,@build_alias@,$build_alias,;t t
42519s,@host_alias@,$host_alias,;t t
42520s,@target_alias@,$target_alias,;t t
42521s,@DEFS@,$DEFS,;t t
42522s,@ECHO_C@,$ECHO_C,;t t
42523s,@ECHO_N@,$ECHO_N,;t t
42524s,@ECHO_T@,$ECHO_T,;t t
42525s,@LIBS@,$LIBS,;t t
42526s,@build@,$build,;t t
42527s,@build_cpu@,$build_cpu,;t t
42528s,@build_vendor@,$build_vendor,;t t
42529s,@build_os@,$build_os,;t t
42530s,@host@,$host,;t t
42531s,@host_cpu@,$host_cpu,;t t
42532s,@host_vendor@,$host_vendor,;t t
42533s,@host_os@,$host_os,;t t
42534s,@target@,$target,;t t
42535s,@target_cpu@,$target_cpu,;t t
42536s,@target_vendor@,$target_vendor,;t t
42537s,@target_os@,$target_os,;t t
42538s,@CC@,$CC,;t t
42539s,@CFLAGS@,$CFLAGS,;t t
42540s,@LDFLAGS@,$LDFLAGS,;t t
42541s,@CPPFLAGS@,$CPPFLAGS,;t t
42542s,@ac_ct_CC@,$ac_ct_CC,;t t
42543s,@EXEEXT@,$EXEEXT,;t t
42544s,@OBJEXT@,$OBJEXT,;t t
42545s,@CPP@,$CPP,;t t
42546s,@EGREP@,$EGREP,;t t
42547s,@CXX@,$CXX,;t t
42548s,@CXXFLAGS@,$CXXFLAGS,;t t
42549s,@ac_ct_CXX@,$ac_ct_CXX,;t t
42550s,@RANLIB@,$RANLIB,;t t
42551s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
42552s,@AR@,$AR,;t t
42553s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
42554s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
42555s,@INSTALL_DATA@,$INSTALL_DATA,;t t
42556s,@STRIP@,$STRIP,;t t
42557s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
42558s,@LN_S@,$LN_S,;t t
42559s,@CXXCPP@,$CXXCPP,;t t
42560s,@subdirs@,$subdirs,;t t
42561s,@PKG_CONFIG@,$PKG_CONFIG,;t t
42562s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
42563s,@GTK_LIBS@,$GTK_LIBS,;t t
42564s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
42565s,@X_CFLAGS@,$X_CFLAGS,;t t
42566s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
42567s,@X_LIBS@,$X_LIBS,;t t
42568s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
42569s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
42570s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
42571s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
42572s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
42573s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
42574s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
42575s,@RESCOMP@,$RESCOMP,;t t
42576s,@DEREZ@,$DEREZ,;t t
42577s,@SETFILE@,$SETFILE,;t t
42578s,@LIBICONV@,$LIBICONV,;t t
42579s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
42580s,@SDL_CONFIG@,$SDL_CONFIG,;t t
42581s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
42582s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
42583s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
42584s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
a848cd7e
SC
42585s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
42586s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
42587s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
42588s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
42589s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
42590s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
42591s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
42592s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
42593s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
42594s,@VENDOR@,$VENDOR,;t t
42595s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
42596s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
42597s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
42598s,@WXUNIV@,$WXUNIV,;t t
42599s,@MONOLITHIC@,$MONOLITHIC,;t t
42600s,@USE_PLUGINS@,$USE_PLUGINS,;t t
42601s,@EXTRALIBS@,$EXTRALIBS,;t t
42602s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
42603s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
42604s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
42605s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
42606s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
42607s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
42608s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 42609s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
42610s,@UNICODE@,$UNICODE,;t t
42611s,@BUILD@,$BUILD,;t t
42612s,@DEBUG_INFO@,$DEBUG_INFO,;t t
42613s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
42614s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
42615s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
42616s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
42617s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
42618s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
42619s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
42620s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
42621s,@SET_MAKE@,$SET_MAKE,;t t
42622s,@MAKE_SET@,$MAKE_SET,;t t
42623s,@ac_ct_AR@,$ac_ct_AR,;t t
42624s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
42625s,@NM@,$NM,;t t
42626s,@ac_ct_NM@,$ac_ct_NM,;t t
42627s,@INSTALL_DIR@,$INSTALL_DIR,;t t
42628s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
42629s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
42630s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
42631s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
42632s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 42633s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
42634s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
42635s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 42636s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
42637s,@SO_SUFFIX@,$SO_SUFFIX,;t t
42638s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
42639s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
42640s,@LIBPREFIX@,$LIBPREFIX,;t t
42641s,@LIBEXT@,$LIBEXT,;t t
42642s,@DLLPREFIX@,$DLLPREFIX,;t t
42643s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
42644s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
42645s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
42646s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
42647s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
42648s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
42649s,@PIC_FLAG@,$PIC_FLAG,;t t
42650s,@USE_SOVERSION@,$USE_SOVERSION,;t t
42651s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
42652s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
42653s,@USE_MACVERSION@,$USE_MACVERSION,;t t
42654s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
42655s,@SONAME_FLAG@,$SONAME_FLAG,;t t
42656s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
42657s,@GCC_PCH@,$GCC_PCH,;t t
42658s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
42659s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
42660s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
42661s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
42662s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
42663s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
42664s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
42665s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
42666s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
42667s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
42668s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
42669s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
42670s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
42671s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
42672s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
42673s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
42674s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
42675s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 42676s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 42677s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 42678s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 42679s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
42680s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
42681s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 42682s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1,;t t
a848cd7e 42683s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
a848cd7e 42684s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 42685s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
42686s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
42687s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
42688s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
42689s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
42690s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
42691s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
42692s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
42693s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 42694s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
42695s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
42696s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
42697s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 42698s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 42699s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
ebee3cd0
VS
42700s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
42701s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
42702s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
42703s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 42704s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
a848cd7e
SC
42705s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
42706s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
42707s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
42708s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
42709s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
42710s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
42711s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
42712s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
42713s,@COND_SHARED_0@,$COND_SHARED_0,;t t
ceec2216
RL
42714s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
42715s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
42716s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
42717s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
42718s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42719s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42720s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
42721s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
42722s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
42723s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
42724s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
42725s,@COND_SHARED_1@,$COND_SHARED_1,;t t
42726s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
a30f955f 42727s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 42728s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 42729s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
42730s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
42731s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
42732s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
42733s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
42734s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
42735s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
42736s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
42737s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
42738s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
42739s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
42740s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
42741s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
42742s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
42743s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
42744s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
42745s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
42746s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
42747s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
42748s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
42749s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
42750s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
a848cd7e
SC
42751s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
42752s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
42753s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
42754s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
42755s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
42756s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
42757s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
42758s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
42759s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
42760s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
42761s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
42762s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
ceec2216 42763s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
ffa0583f 42764s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e
SC
42765s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
42766s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
42767s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
42768s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
42769s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
a13a7f89 42770s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
a848cd7e 42771s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 42772s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
42773s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
42774s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
42775s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
42776s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
42777s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
42778s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
42779s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
42780s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 42781s,@SHARED@,$SHARED,;t t
a848cd7e
SC
42782s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
42783s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
42784s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
42785s,@USE_GUI@,$USE_GUI,;t t
42786s,@AFMINSTALL@,$AFMINSTALL,;t t
42787s,@WIN32INSTALL@,$WIN32INSTALL,;t t
42788s,@TOOLKIT@,$TOOLKIT,;t t
42789s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 42790s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 42791s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e
SC
42792s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
42793s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
a848cd7e 42794s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
42795s,@WIDGET_SET@,$WIDGET_SET,;t t
42796s,@WX_RELEASE@,$WX_RELEASE,;t t
42797s,@WX_VERSION@,$WX_VERSION,;t t
42798s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
42799s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
42800s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
a848cd7e 42801s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
a848cd7e
SC
42802s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
42803s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
42804s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
42805s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
74b84332 42806s,@GCC_PRAGMA_FLAGS@,$GCC_PRAGMA_FLAGS,;t t
a848cd7e
SC
42807s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
42808s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
ceec2216 42809s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 42810s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
42811s,@DISTDIR@,$DISTDIR,;t t
42812s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
42813s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
42814s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
42815s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
42816s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
42817s,@RESFLAGS@,$RESFLAGS,;t t
42818s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
42819s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
42820s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
42821s,@LIBWXMACRES@,$LIBWXMACRES,;t t
42822s,@MACRESCOMP@,$MACRESCOMP,;t t
42823s,@MACSETFILE@,$MACSETFILE,;t t
42824s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
42825s,@GCC@,$GCC,;t t
a848cd7e 42826s,@DLLTOOL@,$DLLTOOL,;t t
a848cd7e
SC
42827s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
42828s,@LIBOBJS@,$LIBOBJS,;t t
42829s,@LTLIBOBJS@,$LTLIBOBJS,;t t
42830CEOF
42831
42832_ACEOF
42833
42834 cat >>$CONFIG_STATUS <<\_ACEOF
42835 # Split the substitutions into bite-sized pieces for seds with
42836 # small command number limits, like on Digital OSF/1 and HP-UX.
42837 ac_max_sed_lines=48
42838 ac_sed_frag=1 # Number of current file.
42839 ac_beg=1 # First line for current file.
42840 ac_end=$ac_max_sed_lines # Line after last line for current file.
42841 ac_more_lines=:
42842 ac_sed_cmds=
42843 while $ac_more_lines; do
42844 if test $ac_beg -gt 1; then
42845 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42846 else
42847 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
42848 fi
42849 if test ! -s $tmp/subs.frag; then
42850 ac_more_lines=false
42851 else
42852 # The purpose of the label and of the branching condition is to
42853 # speed up the sed processing (if there are no `@' at all, there
42854 # is no need to browse any of the substitutions).
42855 # These are the two extra sed commands mentioned above.
42856 (echo ':t
42857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
42858 if test -z "$ac_sed_cmds"; then
ac1cb8d3 42859 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 42860 else
ac1cb8d3 42861 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
42862 fi
42863 ac_sed_frag=`expr $ac_sed_frag + 1`
42864 ac_beg=$ac_end
42865 ac_end=`expr $ac_end + $ac_max_sed_lines`
42866 fi
42867 done
42868 if test -z "$ac_sed_cmds"; then
42869 ac_sed_cmds=cat
42870 fi
42871fi # test -n "$CONFIG_FILES"
42872
42873_ACEOF
42874cat >>$CONFIG_STATUS <<\_ACEOF
42875for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
42876 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
42877 case $ac_file in
42878 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
42879 cat >$tmp/stdin
42880 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
42881 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 42882 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 42883 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
42884 * ) ac_file_in=$ac_file.in ;;
42885 esac
42886
42887 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
42888 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
42889$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42890 X"$ac_file" : 'X\(//\)[^/]' \| \
42891 X"$ac_file" : 'X\(//\)$' \| \
42892 X"$ac_file" : 'X\(/\)' \| \
42893 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42894echo X"$ac_file" |
42895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42896 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42897 /^X\(\/\/\)$/{ s//\1/; q; }
42898 /^X\(\/\).*/{ s//\1/; q; }
42899 s/.*/./; q'`
42900 { if $as_mkdir_p; then
42901 mkdir -p "$ac_dir"
42902 else
42903 as_dir="$ac_dir"
42904 as_dirs=
42905 while test ! -d "$as_dir"; do
42906 as_dirs="$as_dir $as_dirs"
42907 as_dir=`(dirname "$as_dir") 2>/dev/null ||
42908$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
42909 X"$as_dir" : 'X\(//\)[^/]' \| \
42910 X"$as_dir" : 'X\(//\)$' \| \
42911 X"$as_dir" : 'X\(/\)' \| \
42912 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
42913echo X"$as_dir" |
42914 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
42915 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
42916 /^X\(\/\/\)$/{ s//\1/; q; }
42917 /^X\(\/\).*/{ s//\1/; q; }
42918 s/.*/./; q'`
42919 done
42920 test ! -n "$as_dirs" || mkdir $as_dirs
42921 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
42922echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
42923 { (exit 1); exit 1; }; }; }
42924
42925 ac_builddir=.
42926
42927if test "$ac_dir" != .; then
42928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
42929 # A "../" for each directory in $ac_dir_suffix.
42930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
42931else
42932 ac_dir_suffix= ac_top_builddir=
42933fi
42934
42935case $srcdir in
42936 .) # No --srcdir option. We are building in place.
42937 ac_srcdir=.
42938 if test -z "$ac_top_builddir"; then
42939 ac_top_srcdir=.
42940 else
42941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
42942 fi ;;
42943 [\\/]* | ?:[\\/]* ) # Absolute path.
42944 ac_srcdir=$srcdir$ac_dir_suffix;
42945 ac_top_srcdir=$srcdir ;;
42946 *) # Relative path.
42947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
42948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
42949esac
ac1cb8d3
VS
42950
42951# Do not use `cd foo && pwd` to compute absolute paths, because
42952# the directories may not exist.
42953case `pwd` in
42954.) ac_abs_builddir="$ac_dir";;
42955*)
42956 case "$ac_dir" in
42957 .) ac_abs_builddir=`pwd`;;
42958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
42959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
42960 esac;;
42961esac
42962case $ac_abs_builddir in
42963.) ac_abs_top_builddir=${ac_top_builddir}.;;
42964*)
42965 case ${ac_top_builddir}. in
42966 .) ac_abs_top_builddir=$ac_abs_builddir;;
42967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
42968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
42969 esac;;
42970esac
42971case $ac_abs_builddir in
42972.) ac_abs_srcdir=$ac_srcdir;;
42973*)
42974 case $ac_srcdir in
42975 .) ac_abs_srcdir=$ac_abs_builddir;;
42976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
42977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
42978 esac;;
42979esac
42980case $ac_abs_builddir in
42981.) ac_abs_top_srcdir=$ac_top_srcdir;;
42982*)
42983 case $ac_top_srcdir in
42984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
42985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
42986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
42987 esac;;
42988esac
a848cd7e
SC
42989
42990
42991 case $INSTALL in
42992 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
42993 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
42994 esac
42995
04840eaa
VS
42996 if test x"$ac_file" != x-; then
42997 { echo "$as_me:$LINENO: creating $ac_file" >&5
42998echo "$as_me: creating $ac_file" >&6;}
42999 rm -f "$ac_file"
43000 fi
a848cd7e
SC
43001 # Let's still pretend it is `configure' which instantiates (i.e., don't
43002 # use $as_me), people would be surprised to read:
43003 # /* config.h. Generated by config.status. */
43004 if test x"$ac_file" = x-; then
43005 configure_input=
43006 else
43007 configure_input="$ac_file. "
43008 fi
43009 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 43010 sed 's,.*/,,'` by configure."
a848cd7e
SC
43011
43012 # First look for the input files in the build tree, otherwise in the
43013 # src tree.
43014 ac_file_inputs=`IFS=:
43015 for f in $ac_file_in; do
43016 case $f in
43017 -) echo $tmp/stdin ;;
43018 [\\/$]*)
ac1cb8d3
VS
43019 # Absolute (can't be DOS-style, as IFS=:)
43020 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43021echo "$as_me: error: cannot find input file: $f" >&2;}
43022 { (exit 1); exit 1; }; }
ac1cb8d3 43023 echo "$f";;
a848cd7e 43024 *) # Relative
ac1cb8d3
VS
43025 if test -f "$f"; then
43026 # Build tree
43027 echo "$f"
43028 elif test -f "$srcdir/$f"; then
43029 # Source tree
43030 echo "$srcdir/$f"
43031 else
43032 # /dev/null tree
43033 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43034echo "$as_me: error: cannot find input file: $f" >&2;}
43035 { (exit 1); exit 1; }; }
ac1cb8d3 43036 fi;;
a848cd7e
SC
43037 esac
43038 done` || { (exit 1); exit 1; }
43039_ACEOF
43040cat >>$CONFIG_STATUS <<_ACEOF
43041 sed "$ac_vpsub
43042$extrasub
43043_ACEOF
43044cat >>$CONFIG_STATUS <<\_ACEOF
43045:t
43046/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43047s,@configure_input@,$configure_input,;t t
43048s,@srcdir@,$ac_srcdir,;t t
43049s,@abs_srcdir@,$ac_abs_srcdir,;t t
43050s,@top_srcdir@,$ac_top_srcdir,;t t
43051s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
43052s,@builddir@,$ac_builddir,;t t
43053s,@abs_builddir@,$ac_abs_builddir,;t t
43054s,@top_builddir@,$ac_top_builddir,;t t
43055s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
43056s,@INSTALL@,$ac_INSTALL,;t t
43057" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
43058 rm -f $tmp/stdin
43059 if test x"$ac_file" != x-; then
43060 mv $tmp/out $ac_file
43061 else
43062 cat $tmp/out
43063 rm -f $tmp/out
43064 fi
43065
ceec2216
RL
43066 # Run the commands associated with the file.
43067 case $ac_file in
43068 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
43069 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
43070 esac
a848cd7e
SC
43071done
43072_ACEOF
43073cat >>$CONFIG_STATUS <<\_ACEOF
43074
43075#
43076# CONFIG_HEADER section.
43077#
43078
43079# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
43080# NAME is the cpp macro being defined and VALUE is the value it is being given.
43081#
43082# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
43083ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
43084ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
43085ac_dC=' '
43086ac_dD=',;t'
43087# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 43088ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
43089ac_uB='$,\1#\2define\3'
43090ac_uC=' '
43091ac_uD=',;t'
43092
43093for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
43094 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
43095 case $ac_file in
43096 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
43097 cat >$tmp/stdin
43098 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
43099 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 43100 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 43101 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
43102 * ) ac_file_in=$ac_file.in ;;
43103 esac
43104
43105 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
43106echo "$as_me: creating $ac_file" >&6;}
43107
43108 # First look for the input files in the build tree, otherwise in the
43109 # src tree.
43110 ac_file_inputs=`IFS=:
43111 for f in $ac_file_in; do
43112 case $f in
43113 -) echo $tmp/stdin ;;
43114 [\\/$]*)
ac1cb8d3
VS
43115 # Absolute (can't be DOS-style, as IFS=:)
43116 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43117echo "$as_me: error: cannot find input file: $f" >&2;}
43118 { (exit 1); exit 1; }; }
ac1cb8d3
VS
43119 # Do quote $f, to prevent DOS paths from being IFS'd.
43120 echo "$f";;
a848cd7e 43121 *) # Relative
ac1cb8d3
VS
43122 if test -f "$f"; then
43123 # Build tree
43124 echo "$f"
43125 elif test -f "$srcdir/$f"; then
43126 # Source tree
43127 echo "$srcdir/$f"
43128 else
43129 # /dev/null tree
43130 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
43131echo "$as_me: error: cannot find input file: $f" >&2;}
43132 { (exit 1); exit 1; }; }
ac1cb8d3 43133 fi;;
a848cd7e
SC
43134 esac
43135 done` || { (exit 1); exit 1; }
43136 # Remove the trailing spaces.
ac1cb8d3 43137 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
43138
43139_ACEOF
43140
43141# Transform confdefs.h into two sed scripts, `conftest.defines' and
43142# `conftest.undefs', that substitutes the proper values into
43143# config.h.in to produce config.h. The first handles `#define'
43144# templates, and the second `#undef' templates.
43145# And first: Protect against being on the right side of a sed subst in
43146# config.status. Protect against being in an unquoted here document
43147# in config.status.
43148rm -f conftest.defines conftest.undefs
43149# Using a here document instead of a string reduces the quoting nightmare.
43150# Putting comments in sed scripts is not portable.
43151#
43152# `end' is used to avoid that the second main sed command (meant for
43153# 0-ary CPP macros) applies to n-ary macro definitions.
43154# See the Autoconf documentation for `clear'.
43155cat >confdef2sed.sed <<\_ACEOF
43156s/[\\&,]/\\&/g
43157s,[\\$`],\\&,g
43158t clear
43159: clear
ac1cb8d3 43160s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 43161t end
ac1cb8d3 43162s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
43163: end
43164_ACEOF
43165# If some macros were called several times there might be several times
43166# the same #defines, which is useless. Nevertheless, we may not want to
43167# sort them, since we want the *last* AC-DEFINE to be honored.
43168uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
43169sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
43170rm -f confdef2sed.sed
43171
43172# This sed command replaces #undef with comments. This is necessary, for
43173# example, in the case of _POSIX_SOURCE, which is predefined and required
43174# on some systems where configure will not decide to define it.
43175cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 43176s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
43177_ACEOF
43178
43179# Break up conftest.defines because some shells have a limit on the size
43180# of here documents, and old seds have small limits too (100 cmds).
43181echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 43182echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
43183echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
43184echo ' :' >>$CONFIG_STATUS
43185rm -f conftest.tail
43186while grep . conftest.defines >/dev/null
43187do
43188 # Write a limited-size here document to $tmp/defines.sed.
43189 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
43190 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 43191 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
43192 # Work around the forget-to-reset-the-flag bug.
43193 echo 't clr' >>$CONFIG_STATUS
43194 echo ': clr' >>$CONFIG_STATUS
43195 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
43196 echo 'CEOF
43197 sed -f $tmp/defines.sed $tmp/in >$tmp/out
43198 rm -f $tmp/in
43199 mv $tmp/out $tmp/in
43200' >>$CONFIG_STATUS
43201 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
43202 rm -f conftest.defines
43203 mv conftest.tail conftest.defines
43204done
43205rm -f conftest.defines
43206echo ' fi # grep' >>$CONFIG_STATUS
43207echo >>$CONFIG_STATUS
43208
43209# Break up conftest.undefs because some shells have a limit on the size
43210# of here documents, and old seds have small limits too (100 cmds).
43211echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
43212rm -f conftest.tail
43213while grep . conftest.undefs >/dev/null
43214do
43215 # Write a limited-size here document to $tmp/undefs.sed.
43216 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
43217 # Speed up: don't consider the non `#undef'
ac1cb8d3 43218 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
43219 # Work around the forget-to-reset-the-flag bug.
43220 echo 't clr' >>$CONFIG_STATUS
43221 echo ': clr' >>$CONFIG_STATUS
43222 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
43223 echo 'CEOF
43224 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
43225 rm -f $tmp/in
43226 mv $tmp/out $tmp/in
43227' >>$CONFIG_STATUS
43228 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
43229 rm -f conftest.undefs
43230 mv conftest.tail conftest.undefs
43231done
43232rm -f conftest.undefs
43233
43234cat >>$CONFIG_STATUS <<\_ACEOF
43235 # Let's still pretend it is `configure' which instantiates (i.e., don't
43236 # use $as_me), people would be surprised to read:
43237 # /* config.h. Generated by config.status. */
43238 if test x"$ac_file" = x-; then
43239 echo "/* Generated by configure. */" >$tmp/config.h
43240 else
43241 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
43242 fi
43243 cat $tmp/in >>$tmp/config.h
43244 rm -f $tmp/in
43245 if test x"$ac_file" != x-; then
43246 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
43247 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
43248echo "$as_me: $ac_file is unchanged" >&6;}
43249 else
43250 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
43251$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43252 X"$ac_file" : 'X\(//\)[^/]' \| \
43253 X"$ac_file" : 'X\(//\)$' \| \
43254 X"$ac_file" : 'X\(/\)' \| \
43255 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43256echo X"$ac_file" |
43257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43258 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43259 /^X\(\/\/\)$/{ s//\1/; q; }
43260 /^X\(\/\).*/{ s//\1/; q; }
43261 s/.*/./; q'`
43262 { if $as_mkdir_p; then
43263 mkdir -p "$ac_dir"
43264 else
43265 as_dir="$ac_dir"
43266 as_dirs=
43267 while test ! -d "$as_dir"; do
43268 as_dirs="$as_dir $as_dirs"
43269 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43270$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43271 X"$as_dir" : 'X\(//\)[^/]' \| \
43272 X"$as_dir" : 'X\(//\)$' \| \
43273 X"$as_dir" : 'X\(/\)' \| \
43274 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43275echo X"$as_dir" |
43276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43278 /^X\(\/\/\)$/{ s//\1/; q; }
43279 /^X\(\/\).*/{ s//\1/; q; }
43280 s/.*/./; q'`
43281 done
43282 test ! -n "$as_dirs" || mkdir $as_dirs
43283 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43284echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43285 { (exit 1); exit 1; }; }; }
43286
43287 rm -f $ac_file
43288 mv $tmp/config.h $ac_file
43289 fi
43290 else
43291 cat $tmp/config.h
43292 rm -f $tmp/config.h
43293 fi
43294done
43295_ACEOF
43296cat >>$CONFIG_STATUS <<\_ACEOF
43297
43298#
43299# CONFIG_COMMANDS section.
43300#
43301for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
43302 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
43303 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
43304 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
43305$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43306 X"$ac_dest" : 'X\(//\)[^/]' \| \
43307 X"$ac_dest" : 'X\(//\)$' \| \
43308 X"$ac_dest" : 'X\(/\)' \| \
43309 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43310echo X"$ac_dest" |
43311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43312 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43313 /^X\(\/\/\)$/{ s//\1/; q; }
43314 /^X\(\/\).*/{ s//\1/; q; }
43315 s/.*/./; q'`
ac1cb8d3
VS
43316 { if $as_mkdir_p; then
43317 mkdir -p "$ac_dir"
43318 else
43319 as_dir="$ac_dir"
43320 as_dirs=
43321 while test ! -d "$as_dir"; do
43322 as_dirs="$as_dir $as_dirs"
43323 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43324$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43325 X"$as_dir" : 'X\(//\)[^/]' \| \
43326 X"$as_dir" : 'X\(//\)$' \| \
43327 X"$as_dir" : 'X\(/\)' \| \
43328 . : '\(.\)' 2>/dev/null ||
43329echo X"$as_dir" |
43330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43331 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43332 /^X\(\/\/\)$/{ s//\1/; q; }
43333 /^X\(\/\).*/{ s//\1/; q; }
43334 s/.*/./; q'`
43335 done
43336 test ! -n "$as_dirs" || mkdir $as_dirs
43337 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43338echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43339 { (exit 1); exit 1; }; }; }
43340
a848cd7e
SC
43341 ac_builddir=.
43342
43343if test "$ac_dir" != .; then
43344 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43345 # A "../" for each directory in $ac_dir_suffix.
43346 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43347else
43348 ac_dir_suffix= ac_top_builddir=
43349fi
43350
43351case $srcdir in
43352 .) # No --srcdir option. We are building in place.
43353 ac_srcdir=.
43354 if test -z "$ac_top_builddir"; then
43355 ac_top_srcdir=.
43356 else
43357 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43358 fi ;;
43359 [\\/]* | ?:[\\/]* ) # Absolute path.
43360 ac_srcdir=$srcdir$ac_dir_suffix;
43361 ac_top_srcdir=$srcdir ;;
43362 *) # Relative path.
43363 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43364 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43365esac
ac1cb8d3
VS
43366
43367# Do not use `cd foo && pwd` to compute absolute paths, because
43368# the directories may not exist.
43369case `pwd` in
43370.) ac_abs_builddir="$ac_dir";;
43371*)
43372 case "$ac_dir" in
43373 .) ac_abs_builddir=`pwd`;;
43374 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43375 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43376 esac;;
43377esac
43378case $ac_abs_builddir in
43379.) ac_abs_top_builddir=${ac_top_builddir}.;;
43380*)
43381 case ${ac_top_builddir}. in
43382 .) ac_abs_top_builddir=$ac_abs_builddir;;
43383 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43384 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43385 esac;;
43386esac
43387case $ac_abs_builddir in
43388.) ac_abs_srcdir=$ac_srcdir;;
43389*)
43390 case $ac_srcdir in
43391 .) ac_abs_srcdir=$ac_abs_builddir;;
43392 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43393 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43394 esac;;
43395esac
43396case $ac_abs_builddir in
43397.) ac_abs_top_srcdir=$ac_top_srcdir;;
43398*)
43399 case $ac_top_srcdir in
43400 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43401 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43402 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43403 esac;;
43404esac
a848cd7e
SC
43405
43406
43407 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
43408echo "$as_me: executing $ac_dest commands" >&6;}
43409 case $ac_dest in
ceec2216
RL
43410 wx-config ) rm -f wx-config
43411 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
43412 ;;
a848cd7e
SC
43413 esac
43414done
43415_ACEOF
43416
43417cat >>$CONFIG_STATUS <<\_ACEOF
43418
43419{ (exit 0); exit 0; }
43420_ACEOF
43421chmod +x $CONFIG_STATUS
43422ac_clean_files=$ac_clean_files_save
43423
43424
43425# configure is writing to config.log, and then calls config.status.
43426# config.status does its own redirection, appending to config.log.
43427# Unfortunately, on DOS this fails, as config.log is still kept open
43428# by configure, so config.status won't be able to write to it; its
43429# output is simply discarded. So we exec the FD to /dev/null,
43430# effectively closing config.log, so it can be properly (re)opened and
43431# appended to by config.status. When coming back to configure, we
43432# need to make the FD available again.
43433if test "$no_create" != yes; then
43434 ac_cs_success=:
43435 ac_config_status_args=
43436 test "$silent" = yes &&
43437 ac_config_status_args="$ac_config_status_args --quiet"
43438 exec 5>/dev/null
43439 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
43440 exec 5>>config.log
43441 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43442 # would make configure fail if this is the last instruction.
43443 $ac_cs_success || { (exit 1); exit 1; }
43444fi
43445
43446#
43447# CONFIG_SUBDIRS section.
43448#
43449if test "$no_recursion" != yes; then
43450
43451 # Remove --cache-file and --srcdir arguments so they do not pile up.
43452 ac_sub_configure_args=
43453 ac_prev=
43454 for ac_arg in $ac_configure_args; do
43455 if test -n "$ac_prev"; then
43456 ac_prev=
43457 continue
43458 fi
43459 case $ac_arg in
43460 -cache-file | --cache-file | --cache-fil | --cache-fi \
43461 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
43462 ac_prev=cache_file ;;
43463 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
43464 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
43465 | --c=*)
43466 ;;
43467 --config-cache | -C)
43468 ;;
43469 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
43470 ac_prev=srcdir ;;
43471 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
43472 ;;
43473 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
43474 ac_prev=prefix ;;
43475 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
43476 ;;
43477 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
43478 esac
43479 done
43480
43481 # Always prepend --prefix to ensure using the same prefix
43482 # in subdir configurations.
43483 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
43484
43485 ac_popdir=`pwd`
43486 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
43487
43488 # Do not complain, so a configure script can configure whichever
43489 # parts of a large source tree are present.
43490 test -d $srcdir/$ac_dir || continue
43491
43492 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
43493echo "$as_me: configuring in $ac_dir" >&6;}
43494 { if $as_mkdir_p; then
43495 mkdir -p "$ac_dir"
43496 else
43497 as_dir="$ac_dir"
43498 as_dirs=
43499 while test ! -d "$as_dir"; do
43500 as_dirs="$as_dir $as_dirs"
43501 as_dir=`(dirname "$as_dir") 2>/dev/null ||
43502$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
43503 X"$as_dir" : 'X\(//\)[^/]' \| \
43504 X"$as_dir" : 'X\(//\)$' \| \
43505 X"$as_dir" : 'X\(/\)' \| \
43506 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
43507echo X"$as_dir" |
43508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
43509 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
43510 /^X\(\/\/\)$/{ s//\1/; q; }
43511 /^X\(\/\).*/{ s//\1/; q; }
43512 s/.*/./; q'`
43513 done
43514 test ! -n "$as_dirs" || mkdir $as_dirs
43515 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
43516echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
43517 { (exit 1); exit 1; }; }; }
43518
43519 ac_builddir=.
43520
43521if test "$ac_dir" != .; then
43522 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
43523 # A "../" for each directory in $ac_dir_suffix.
43524 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
43525else
43526 ac_dir_suffix= ac_top_builddir=
43527fi
43528
43529case $srcdir in
43530 .) # No --srcdir option. We are building in place.
43531 ac_srcdir=.
43532 if test -z "$ac_top_builddir"; then
43533 ac_top_srcdir=.
43534 else
43535 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
43536 fi ;;
43537 [\\/]* | ?:[\\/]* ) # Absolute path.
43538 ac_srcdir=$srcdir$ac_dir_suffix;
43539 ac_top_srcdir=$srcdir ;;
43540 *) # Relative path.
43541 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
43542 ac_top_srcdir=$ac_top_builddir$srcdir ;;
43543esac
ac1cb8d3
VS
43544
43545# Do not use `cd foo && pwd` to compute absolute paths, because
43546# the directories may not exist.
43547case `pwd` in
43548.) ac_abs_builddir="$ac_dir";;
43549*)
43550 case "$ac_dir" in
43551 .) ac_abs_builddir=`pwd`;;
43552 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
43553 *) ac_abs_builddir=`pwd`/"$ac_dir";;
43554 esac;;
43555esac
43556case $ac_abs_builddir in
43557.) ac_abs_top_builddir=${ac_top_builddir}.;;
43558*)
43559 case ${ac_top_builddir}. in
43560 .) ac_abs_top_builddir=$ac_abs_builddir;;
43561 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
43562 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
43563 esac;;
43564esac
43565case $ac_abs_builddir in
43566.) ac_abs_srcdir=$ac_srcdir;;
43567*)
43568 case $ac_srcdir in
43569 .) ac_abs_srcdir=$ac_abs_builddir;;
43570 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
43571 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
43572 esac;;
43573esac
43574case $ac_abs_builddir in
43575.) ac_abs_top_srcdir=$ac_top_srcdir;;
43576*)
43577 case $ac_top_srcdir in
43578 .) ac_abs_top_srcdir=$ac_abs_builddir;;
43579 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
43580 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
43581 esac;;
43582esac
a848cd7e
SC
43583
43584
43585 cd $ac_dir
43586
43587 # Check for guested configure; otherwise get Cygnus style configure.
43588 if test -f $ac_srcdir/configure.gnu; then
43589 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
43590 elif test -f $ac_srcdir/configure; then
43591 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
43592 elif test -f $ac_srcdir/configure.in; then
43593 ac_sub_configure=$ac_configure
43594 else
43595 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
43596echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
43597 ac_sub_configure=
43598 fi
43599
43600 # The recursion is here.
43601 if test -n "$ac_sub_configure"; then
43602 # Make the cache file name correct relative to the subdirectory.
43603 case $cache_file in
43604 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
43605 *) # Relative path.
ac1cb8d3 43606 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
43607 esac
43608
43609 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
43610echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
43611 # The eval makes quoting arguments work.
43612 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
43613 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
43614 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
43615echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
43616 { (exit 1); exit 1; }; }
43617 fi
43618
04840eaa 43619 cd $ac_popdir
a848cd7e
SC
43620 done
43621fi
43622
43623
43624echo
77ffb593 43625echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 43626echo ""
4d4ff94c 43627echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 43628echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 43629
77ffb593
JS
43630echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
43631echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
43632echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 43633
77ffb593
JS
43634echo " What level of wxWidgets compatibility should be enabled?"
43635echo " wxWidgets 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
43636echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
a848cd7e 43637
77ffb593 43638echo " Which libraries should wxWidgets use?"
a848cd7e
SC
43639echo " jpeg ${wxUSE_LIBJPEG-none}"
43640echo " png ${wxUSE_LIBPNG-none}"
43641echo " regex ${wxUSE_REGEX}"
43642echo " tiff ${wxUSE_LIBTIFF-none}"
43643if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
43644echo " xpm ${wxUSE_LIBXPM-none}"
43645fi
43646echo " zlib ${wxUSE_ZLIB}"
43647echo " odbc ${wxUSE_ODBC}"
43648echo " expat ${wxUSE_EXPAT}"
43649echo " libmspack ${wxUSE_LIBMSPACK}"
43650echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 43651echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
43652
43653echo ""
43654