]> git.saurik.com Git - wxWidgets.git/blame - configure
Should use LoadFile for file, not LoadPage
[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.
dd8df4fc 4# Generated by GNU Autoconf 2.59 for wxWidgets 2.7.0.
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'
dd8df4fc
VZ
273PACKAGE_VERSION='2.7.0'
274PACKAGE_STRING='wxWidgets 2.7.0'
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"
a55d039a 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 ac_ct_AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES DLLTOOL ac_ct_DLLTOOL IF_GNU_MAKE LN_S LNDIR 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 REZ DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBGNOMEPRINTUI_CFLAGS LIBGNOMEPRINTUI_LIBS GSTREAMER_CFLAGS GSTREAMER_LIBS GST_INSPECT 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 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 dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN 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_GUI_1_USE_QA_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_GUI_1_USE_QA_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_SOVERCYGWIN_0_USE_SOVERSION_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_MSDOS_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_USE_XRC_1 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_SHARED_1_USE_XRC_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_MSW_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_WINCE_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_RTTI_0 COND_USE_RTTI_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_USE_THREADS_0 COND_USE_THREADS_1 COND_USE_XRC_1 COND_WINDOWS_IMPLIB_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 USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLCHAIN_NAME TOOLCHAIN_FULLNAME cross_compiling WIDGET_SET WX_RELEASE WX_VERSION WX_SUBVERSION WX_CHARTYPE WX_DEBUGTYPE WXCONFIG_CPPFLAGS WXCONFIG_CFLAGS WXCONFIG_CXXFLAGS WXCONFIG_LIBS WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WXCONFIG_RESFLAGS EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESCOMP RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES POSTLINK_COMMAND MACSETFILE GCC 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
dd8df4fc 797\`configure' configures wxWidgets 2.7.0 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
dd8df4fc 863 short | recursive ) echo "Configuration of wxWidgets 2.7.0:";;
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
f34ca037 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
dee1a63f
MB
892 --enable-compat24 enable wxWidgets 2.4 compatibility
893 --disable-compat26 disable wxWidgets 2.6 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
81f90336 906 --enable-arcstream use wxArchive streams
eaff0f0d 907 --enable-backtrace use wxStackWalker class for getting backtraces
36b6448c 908 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
a848cd7e
SC
909 --enable-cmdline use wxCmdLineParser class
910 --enable-datetime use wxDateTime class
36b6448c 911 --enable-debugreport use wxDebugReport class
a848cd7e
SC
912 --enable-dialupman use dialup network classes
913 --enable-dynlib use wxLibrary class for DLL loading
914 --enable-dynamicloader use (new) wxDynamicLibrary class
915 --enable-exceptions build exception-safe library
916 --enable-ffile use wxFFile class
917 --enable-file use wxFile class
918 --enable-filesystem use virtual file systems classes
919 --enable-fontmap use font encodings conversion classes
920 --enable-fs_inet use virtual HTTP/FTP filesystems
921 --enable-fs_zip use virtual ZIP filesystems
922 --enable-geometry use geometry class
923 --enable-log use logging system
924 --enable-longlong use wxLongLong class
925 --enable-mimetype use wxMimeTypesManager
926 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
927 --enable-snglinst use wxSingleInstanceChecker class
a848cd7e 928 --enable-std_iostreams use standard C++ stream classes
59746b65 929 --enable-std_string use standard C++ string classes
07158944 930 --enable-stdpaths use wxStandardPaths class
a848cd7e 931 --enable-stopwatch use wxStopWatch class
07158944 932 --enable-streams use wxStream etc classes
a848cd7e
SC
933 --enable-sysoptions use wxSystemOptions
934 --enable-textbuf use wxTextBuffer class
935 --enable-textfile use wxTextFile class
936 --enable-timer use wxTimer class
937 --enable-unicode compile wxString with Unicode support
938 --enable-sound use wxSound class
3b57de8b 939 --enable-mediactrl use wxMediaCtrl class
77ffb593 940 --enable-wxprintfv use wxWidgets implementation of vprintf()
81f90336 941 --enable-zipstream use wxZip streams
a848cd7e
SC
942 --enable-url use wxURL class
943 --enable-protocol use wxProtocol class
944 --enable-protocol-http HTTP support in wxProtocol
945 --enable-protocol-ftp FTP support in wxProtocol
946 --enable-protocol-file FILE support in wxProtocol
947 --enable-threads use threads
948 --enable-docview use document view architecture
949 --enable-help use help subsystem
950 --enable-mshtmlhelp use MS HTML Help (win32)
951 --enable-html use wxHTML sub-library
952 --enable-htmlhelp use wxHTML-based help
9a8f0513 953 --enable-xrc use XRC resources sub-library
a848cd7e
SC
954 --enable-constraints use layout-constraints system
955 --enable-printarch use printing architecture
956 --enable-mdi use multiple document interface architecture
8a7b1113 957 --enable-mdidoc use docview architecture with MDI
a848cd7e
SC
958 --enable-loggui use standard GUI logger
959 --enable-logwin use wxLogWindow
960 --enable-logdialog use wxLogDialog
646b6ec1 961 --enable-webkit use wxWebKitCtrl (Mac)
91dea314 962 --enable-richtext use wxRichTextCtrl
a848cd7e
SC
963 --enable-postscript use wxPostscriptDC device context (default for gtk+)
964 --enable-prologio not available; see contrib
965 --enable-resources not available; see contrib
966 --enable-clipboard use wxClipboard class
967 --enable-dnd use Drag'n'Drop classes
968 --enable-metafile use win32 metafiles
969 --enable-controls use all usual controls
970 --enable-accel use accelerators
971 --enable-button use wxButton class
972 --enable-bmpbutton use wxBitmapButton class
973 --enable-calendar use wxCalendarCtrl class
974 --enable-caret use wxCaret class
975 --enable-checkbox use wxCheckBox class
976 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
977 --enable-choice use wxChoice class
92bbdbcd 978 --enable-choicebook use wxChoicebook class
a848cd7e 979 --enable-combobox use wxComboBox class
da98e9be 980 --enable-datepick use wxDatePickerCtrl class
a848cd7e
SC
981 --enable-display use wxDisplay class
982 --enable-gauge use wxGauge class
983 --enable-grid use wxGrid class
984 --enable-imaglist use wxImageList class
985 --enable-listbook use wxListbook class
986 --enable-listbox use wxListBox class
987 --enable-listctrl use wxListCtrl class
988 --enable-notebook use wxNotebook class
989 --enable-radiobox use wxRadioBox class
990 --enable-radiobtn use wxRadioButton class
991 --enable-sash use wxSashWindow class
992 --enable-scrollbar use wxScrollBar class and scrollable windows
993 --enable-slider use wxSlider class
994 --enable-spinbtn use wxSpinButton class
995 --enable-spinctrl use wxSpinCtrl class
996 --enable-splitter use wxSplitterWindow class
997 --enable-statbmp use wxStaticBitmap class
998 --enable-statbox use wxStaticBox class
999 --enable-statline use wxStaticLine class
1000 --enable-stattext use wxStaticText class
1001 --enable-statusbar use wxStatusBar class
1002 --enable-tabdialog use wxTabControl class
1003 --enable-textctrl use wxTextCtrl class
1004 --enable-togglebtn use wxToggleButton class
1005 --enable-toolbar use wxToolBar class
1006 --enable-tbarnative use native wxToolBar class
1007 --enable-tbarsmpl use wxToolBarSimple class
0093c2fc 1008 --enable-treebook use wxTreebook class
a848cd7e
SC
1009 --enable-treectrl use wxTreeCtrl class
1010 --enable-tipwindow use wxTipWindow class
1011 --enable-popupwin use wxPopUpWindow class
1012 --enable-commondlg use all common dialogs
1013 --enable-choicedlg use wxChoiceDialog
1014 --enable-coldlg use wxColourDialog
1015 --enable-filedlg use wxFileDialog
1016 --enable-finddlg use wxFindReplaceDialog
1017 --enable-fontdlg use wxFontDialog
1018 --enable-dirdlg use wxDirDialog
1019 --enable-msgdlg use wxMessageDialog
1020 --enable-numberdlg use wxNumberEntryDialog
1021 --enable-splash use wxSplashScreen
1022 --enable-textdlg use wxTextDialog
1023 --enable-tipdlg use startup tips
1024 --enable-progressdlg use wxProgressDialog
1025 --enable-wizarddlg use wxWizard
1026 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1027 --enable-miniframe use wxMiniFrame class
1028 --enable-tooltips use wxToolTip class
1029 --enable-splines use spline drawing code
fbe2ca43 1030 --enable-mousewheel use mousewheel
a848cd7e
SC
1031 --enable-validators use wxValidator and derived classes
1032 --enable-busyinfo use wxBusyInfo
4cb1d3da 1033 --enable-joystick use wxJoystick
38b4a946 1034 --enable-metafiles use wxMetaFile (Win32 only)
a848cd7e
SC
1035 --enable-dragimage use wxDragImage
1036 --enable-accessibility enable accessibility support
38b4a946 1037 --enable-dccache cache temporary wxDC objects (Win32 only)
a848cd7e
SC
1038 --enable-palette use wxPalette class
1039 --enable-image use wxImage class
1040 --enable-gif use gif images (GIF file format)
1041 --enable-pcx use pcx images (PCX file format)
1042 --enable-iff use iff images (IFF file format)
1043 --enable-pnm use pnm images (PNM file format)
1044 --enable-xpm use xpm images (XPM file format)
1045 --enable-icocur use Windows ICO and CUR formats
77ffb593 1046 --enable-official_build official build of wxWidgets (win32 DLL only)
a848cd7e
SC
1047 --enable-vendor=VENDOR vendor name (win32 DLL only)
1048 --disable-largefile omit support for large files
1049 --disable-gtktest do not try to compile and run a test GTK+ program
1050 --disable-gtktest Do not try to compile and run a test GTK program
1051 --disable-sdltest Do not try to compile and run a test SDL program
1052 --enable-omf use OMF object format (OS/2)
ebee3cd0
VS
1053 --disable-precomp-headers
1054 don't use precompiled headers even if compiler can
a848cd7e
SC
1055
1056Optional Packages:
1057 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1058 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1c14217d 1059 --without-subdirs don't generate makefiles for samples/demos/...
f34ca037 1060 --with-gtk[=VERSION] use GTK+, VERSION can be 2 (default), 1 or "any"
a848cd7e
SC
1061 --with-motif use Motif/Lesstif
1062 --with-mac use Mac OS X
1063 --with-cocoa use Cocoa
1064 --with-wine use Wine
1065 --with-msw use MS-Windows
1066 --with-pm use OS/2 Presentation Manager
1067 --with-mgl use SciTech MGL
1068 --with-microwin use MicroWindows
1069 --with-x11 use X11
1070 --with-libpng use libpng (PNG image format)
1071 --with-libjpeg use libjpeg (JPEG file format)
1072 --with-libtiff use libtiff (TIFF file format)
1073 --with-libxpm use libxpm (XPM file format)
1074 --with-libmspack use libmspack (CHM help files loading)
1075 --with-sdl use SDL for audio on Unix
d51253e8 1076 --with-gnomeprint use GNOME print for printing under Unix
a848cd7e
SC
1077 --with-opengl use OpenGL (or Mesa)
1078 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1079 --with-regex enable support for wxRegEx class
1080 --with-zlib use zlib for LZW compression
1081 --with-odbc use the IODBC and wxODBC classes
1082 --with-expat enable XML support using expat parser
ceec2216 1083 --with-flavour=NAME specify a name to identify this build
a848cd7e
SC
1084 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1085 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1086 --with-x use the X Window System
1087 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1088 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1089 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1090 --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
1091 --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
1092
1093Some influential environment variables:
dcc1b6ad
VS
1094 CC C compiler command
1095 CFLAGS C compiler flags
1096 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1097 nonstandard directory <lib dir>
1098 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1099 headers in a nonstandard directory <include dir>
1100 CPP C preprocessor
1101 CXX C++ compiler command
1102 CXXFLAGS C++ compiler flags
1103 CXXCPP C++ preprocessor
a848cd7e
SC
1104
1105Use these variables to override the choices made by `configure' or to help
1106it to find libraries and programs with nonstandard names/locations.
1107
77ffb593 1108Report bugs to <wx-dev@lists.wxwidgets.org>.
a848cd7e
SC
1109_ACEOF
1110fi
1111
1112if test "$ac_init_help" = "recursive"; then
1113 # If there are subdirs, report their specific --help.
1114 ac_popdir=`pwd`
1115 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1116 test -d $ac_dir || continue
1117 ac_builddir=.
1118
1119if test "$ac_dir" != .; then
1120 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1121 # A "../" for each directory in $ac_dir_suffix.
1122 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1123else
1124 ac_dir_suffix= ac_top_builddir=
1125fi
1126
1127case $srcdir in
1128 .) # No --srcdir option. We are building in place.
1129 ac_srcdir=.
1130 if test -z "$ac_top_builddir"; then
1131 ac_top_srcdir=.
1132 else
1133 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1134 fi ;;
1135 [\\/]* | ?:[\\/]* ) # Absolute path.
1136 ac_srcdir=$srcdir$ac_dir_suffix;
1137 ac_top_srcdir=$srcdir ;;
1138 *) # Relative path.
1139 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1140 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1141esac
ac1cb8d3
VS
1142
1143# Do not use `cd foo && pwd` to compute absolute paths, because
1144# the directories may not exist.
1145case `pwd` in
1146.) ac_abs_builddir="$ac_dir";;
1147*)
1148 case "$ac_dir" in
1149 .) ac_abs_builddir=`pwd`;;
1150 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1151 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1152 esac;;
1153esac
1154case $ac_abs_builddir in
1155.) ac_abs_top_builddir=${ac_top_builddir}.;;
1156*)
1157 case ${ac_top_builddir}. in
1158 .) ac_abs_top_builddir=$ac_abs_builddir;;
1159 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1160 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1161 esac;;
1162esac
1163case $ac_abs_builddir in
1164.) ac_abs_srcdir=$ac_srcdir;;
1165*)
1166 case $ac_srcdir in
1167 .) ac_abs_srcdir=$ac_abs_builddir;;
1168 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1169 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1170 esac;;
1171esac
1172case $ac_abs_builddir in
1173.) ac_abs_top_srcdir=$ac_top_srcdir;;
1174*)
1175 case $ac_top_srcdir in
1176 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1177 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1178 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1179 esac;;
1180esac
a848cd7e
SC
1181
1182 cd $ac_dir
1183 # Check for guested configure; otherwise get Cygnus style configure.
1184 if test -f $ac_srcdir/configure.gnu; then
1185 echo
1186 $SHELL $ac_srcdir/configure.gnu --help=recursive
1187 elif test -f $ac_srcdir/configure; then
1188 echo
1189 $SHELL $ac_srcdir/configure --help=recursive
1190 elif test -f $ac_srcdir/configure.ac ||
ac1cb8d3 1191 test -f $ac_srcdir/configure.in; then
a848cd7e
SC
1192 echo
1193 $ac_configure --help
1194 else
1195 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1196 fi
5ff751d6 1197 cd "$ac_popdir"
a848cd7e
SC
1198 done
1199fi
1200
1201test -n "$ac_init_help" && exit 0
1202if $ac_init_version; then
1203 cat <<\_ACEOF
dd8df4fc 1204wxWidgets configure 2.7.0
ac1cb8d3 1205generated by GNU Autoconf 2.59
a848cd7e 1206
ac1cb8d3 1207Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
1208This configure script is free software; the Free Software Foundation
1209gives unlimited permission to copy, distribute and modify it.
1210_ACEOF
1211 exit 0
1212fi
1213exec 5>config.log
1214cat >&5 <<_ACEOF
1215This file contains any messages produced by compilers while
1216running configure, to aid debugging if configure makes a mistake.
1217
dd8df4fc 1218It was created by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 1219generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
1220
1221 $ $0 $@
1222
1223_ACEOF
1224{
1225cat <<_ASUNAME
1226## --------- ##
1227## Platform. ##
1228## --------- ##
1229
1230hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1231uname -m = `(uname -m) 2>/dev/null || echo unknown`
1232uname -r = `(uname -r) 2>/dev/null || echo unknown`
1233uname -s = `(uname -s) 2>/dev/null || echo unknown`
1234uname -v = `(uname -v) 2>/dev/null || echo unknown`
1235
1236/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1237/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1238
1239/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1240/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1241/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1242hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1243/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1244/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1245/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1246
1247_ASUNAME
1248
1249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1250for as_dir in $PATH
1251do
1252 IFS=$as_save_IFS
1253 test -z "$as_dir" && as_dir=.
1254 echo "PATH: $as_dir"
1255done
1256
1257} >&5
1258
1259cat >&5 <<_ACEOF
1260
1261
1262## ----------- ##
1263## Core tests. ##
1264## ----------- ##
1265
1266_ACEOF
1267
1268
1269# Keep a trace of the command line.
1270# Strip out --no-create and --no-recursion so they do not pile up.
1271# Strip out --silent because we don't want to record it for future runs.
1272# Also quote any args containing shell meta-characters.
1273# Make two passes to allow for proper duplicate-argument suppression.
1274ac_configure_args=
1275ac_configure_args0=
1276ac_configure_args1=
1277ac_sep=
1278ac_must_keep_next=false
1279for ac_pass in 1 2
1280do
1281 for ac_arg
1282 do
1283 case $ac_arg in
1284 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286 | -silent | --silent | --silen | --sile | --sil)
1287 continue ;;
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 esac
1291 case $ac_pass in
1292 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1293 2)
1294 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1295 if test $ac_must_keep_next = true; then
ac1cb8d3 1296 ac_must_keep_next=false # Got value, back to normal.
a848cd7e 1297 else
ac1cb8d3
VS
1298 case $ac_arg in
1299 *=* | --config-cache | -C | -disable-* | --disable-* \
1300 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1301 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1302 | -with-* | --with-* | -without-* | --without-* | --x)
1303 case "$ac_configure_args0 " in
1304 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1305 esac
1306 ;;
1307 -* ) ac_must_keep_next=true ;;
1308 esac
a848cd7e
SC
1309 fi
1310 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1311 # Get rid of the leading space.
1312 ac_sep=" "
1313 ;;
1314 esac
1315 done
1316done
1317$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1318$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1319
1320# When interrupted or exit'd, cleanup temporary files, and complete
1321# config.log. We remove comments because anyway the quotes in there
1322# would cause problems or look ugly.
1323# WARNING: Be sure not to use single quotes in there, as some shells,
1324# such as our DU 5.0 friend, will then `close' the trap.
1325trap 'exit_status=$?
1326 # Save into config.log some information that might help in debugging.
1327 {
1328 echo
1329
1330 cat <<\_ASBOX
1331## ---------------- ##
1332## Cache variables. ##
1333## ---------------- ##
1334_ASBOX
1335 echo
1336 # The following way of writing the cache mishandles newlines in values,
1337{
1338 (set) 2>&1 |
1339 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1340 *ac_space=\ *)
1341 sed -n \
ac1cb8d3
VS
1342 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
a848cd7e
SC
1344 ;;
1345 *)
1346 sed -n \
ac1cb8d3 1347 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
1348 ;;
1349 esac;
1350}
1351 echo
1352
1353 cat <<\_ASBOX
1354## ----------------- ##
1355## Output variables. ##
1356## ----------------- ##
1357_ASBOX
1358 echo
1359 for ac_var in $ac_subst_vars
1360 do
1361 eval ac_val=$`echo $ac_var`
1362 echo "$ac_var='"'"'$ac_val'"'"'"
1363 done | sort
1364 echo
1365
1366 if test -n "$ac_subst_files"; then
1367 cat <<\_ASBOX
1368## ------------- ##
1369## Output files. ##
1370## ------------- ##
1371_ASBOX
1372 echo
1373 for ac_var in $ac_subst_files
1374 do
1375 eval ac_val=$`echo $ac_var`
ac1cb8d3 1376 echo "$ac_var='"'"'$ac_val'"'"'"
a848cd7e
SC
1377 done | sort
1378 echo
1379 fi
1380
1381 if test -s confdefs.h; then
1382 cat <<\_ASBOX
1383## ----------- ##
1384## confdefs.h. ##
1385## ----------- ##
1386_ASBOX
1387 echo
1388 sed "/^$/d" confdefs.h | sort
1389 echo
1390 fi
1391 test "$ac_signal" != 0 &&
1392 echo "$as_me: caught signal $ac_signal"
1393 echo "$as_me: exit $exit_status"
1394 } >&5
ac1cb8d3 1395 rm -f core *.core &&
a848cd7e
SC
1396 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1397 exit $exit_status
1398 ' 0
1399for ac_signal in 1 2 13 15; do
1400 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1401done
1402ac_signal=0
1403
1404# confdefs.h avoids OS command line length limits that DEFS can exceed.
1405rm -rf conftest* confdefs.h
1406# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1407echo >confdefs.h
1408
1409# Predefined preprocessor variables.
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_NAME "$PACKAGE_NAME"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_VERSION "$PACKAGE_VERSION"
1423_ACEOF
1424
1425
1426cat >>confdefs.h <<_ACEOF
1427#define PACKAGE_STRING "$PACKAGE_STRING"
1428_ACEOF
1429
1430
1431cat >>confdefs.h <<_ACEOF
1432#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1433_ACEOF
1434
1435
1436# Let the site file select an alternate cache file if it wants to.
1437# Prefer explicitly selected file to automatically selected ones.
1438if test -z "$CONFIG_SITE"; then
1439 if test "x$prefix" != xNONE; then
1440 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1441 else
1442 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1443 fi
1444fi
1445for ac_site_file in $CONFIG_SITE; do
1446 if test -r "$ac_site_file"; then
1447 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1448echo "$as_me: loading site script $ac_site_file" >&6;}
1449 sed 's/^/| /' "$ac_site_file" >&5
1450 . "$ac_site_file"
1451 fi
1452done
1453
1454if test -r "$cache_file"; then
1455 # Some versions of bash will fail to source /dev/null (special
1456 # files actually), so we avoid doing that.
1457 if test -f "$cache_file"; then
1458 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1459echo "$as_me: loading cache $cache_file" >&6;}
1460 case $cache_file in
1461 [\\/]* | ?:[\\/]* ) . $cache_file;;
1462 *) . ./$cache_file;;
1463 esac
1464 fi
1465else
1466 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1467echo "$as_me: creating cache $cache_file" >&6;}
1468 >$cache_file
1469fi
1470
1471# Check that the precious variables saved in the cache have kept the same
1472# value.
1473ac_cache_corrupted=false
1474for ac_var in `(set) 2>&1 |
ac1cb8d3 1475 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
a848cd7e
SC
1476 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1477 eval ac_new_set=\$ac_env_${ac_var}_set
1478 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1479 eval ac_new_val="\$ac_env_${ac_var}_value"
1480 case $ac_old_set,$ac_new_set in
1481 set,)
1482 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1483echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1484 ac_cache_corrupted=: ;;
1485 ,set)
1486 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1487echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1488 ac_cache_corrupted=: ;;
1489 ,);;
1490 *)
1491 if test "x$ac_old_val" != "x$ac_new_val"; then
ac1cb8d3 1492 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
a848cd7e 1493echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
ac1cb8d3 1494 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
a848cd7e 1495echo "$as_me: former value: $ac_old_val" >&2;}
ac1cb8d3 1496 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
a848cd7e 1497echo "$as_me: current value: $ac_new_val" >&2;}
ac1cb8d3 1498 ac_cache_corrupted=:
a848cd7e
SC
1499 fi;;
1500 esac
1501 # Pass precious variables to config.status.
1502 if test "$ac_new_set" = set; then
1503 case $ac_new_val in
1504 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1505 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1506 *) ac_arg=$ac_var=$ac_new_val ;;
1507 esac
1508 case " $ac_configure_args " in
1509 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1510 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1511 esac
1512 fi
1513done
1514if $ac_cache_corrupted; then
1515 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1516echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1517 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1518echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1519 { (exit 1); exit 1; }; }
1520fi
1521
1522ac_ext=c
1523ac_cpp='$CPP $CPPFLAGS'
1524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1526ac_compiler_gnu=$ac_cv_c_compiler_gnu
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557ac_aux_dir=
1558for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1559 if test -f $ac_dir/install-sh; then
1560 ac_aux_dir=$ac_dir
1561 ac_install_sh="$ac_aux_dir/install-sh -c"
1562 break
1563 elif test -f $ac_dir/install.sh; then
1564 ac_aux_dir=$ac_dir
1565 ac_install_sh="$ac_aux_dir/install.sh -c"
1566 break
1567 elif test -f $ac_dir/shtool; then
1568 ac_aux_dir=$ac_dir
1569 ac_install_sh="$ac_aux_dir/shtool install -c"
1570 break
1571 fi
1572done
1573if test -z "$ac_aux_dir"; then
1574 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1575echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1576 { (exit 1); exit 1; }; }
1577fi
1578ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1579ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1580ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1581
1582# Make sure we can run config.sub.
1583$ac_config_sub sun4 >/dev/null 2>&1 ||
1584 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1585echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1586 { (exit 1); exit 1; }; }
1587
1588echo "$as_me:$LINENO: checking build system type" >&5
1589echo $ECHO_N "checking build system type... $ECHO_C" >&6
1590if test "${ac_cv_build+set}" = set; then
1591 echo $ECHO_N "(cached) $ECHO_C" >&6
1592else
1593 ac_cv_build_alias=$build_alias
1594test -z "$ac_cv_build_alias" &&
1595 ac_cv_build_alias=`$ac_config_guess`
1596test -z "$ac_cv_build_alias" &&
1597 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1598echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1599 { (exit 1); exit 1; }; }
1600ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1601 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1602echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1603 { (exit 1); exit 1; }; }
1604
1605fi
1606echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1607echo "${ECHO_T}$ac_cv_build" >&6
1608build=$ac_cv_build
1609build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1610build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1611build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1612
1613
1614echo "$as_me:$LINENO: checking host system type" >&5
1615echo $ECHO_N "checking host system type... $ECHO_C" >&6
1616if test "${ac_cv_host+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618else
1619 ac_cv_host_alias=$host_alias
1620test -z "$ac_cv_host_alias" &&
1621 ac_cv_host_alias=$ac_cv_build_alias
1622ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1623 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1624echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1625 { (exit 1); exit 1; }; }
1626
1627fi
1628echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1629echo "${ECHO_T}$ac_cv_host" >&6
1630host=$ac_cv_host
1631host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1632host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1633host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634
1635
1636echo "$as_me:$LINENO: checking target system type" >&5
1637echo $ECHO_N "checking target system type... $ECHO_C" >&6
1638if test "${ac_cv_target+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641 ac_cv_target_alias=$target_alias
1642test "x$ac_cv_target_alias" = "x" &&
1643 ac_cv_target_alias=$ac_cv_host_alias
1644ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1645 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1646echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1647 { (exit 1); exit 1; }; }
1648
1649fi
1650echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1651echo "${ECHO_T}$ac_cv_target" >&6
1652target=$ac_cv_target
1653target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1654target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1655target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1656
1657
1658# The aliases save the names the user supplied, while $host etc.
1659# will get canonicalized.
1660test -n "$target_alias" &&
1661 test "$program_prefix$program_suffix$program_transform_name" = \
1662 NONENONEs,x,x, &&
1663 program_prefix=${target_alias}-
1664
1665
1666
ceec2216 1667wx_major_version_number=2
dd8df4fc
VZ
1668wx_minor_version_number=7
1669wx_release_number=0
1670wx_subrelease_number=0
a848cd7e 1671
ceec2216
RL
1672WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
1673WX_VERSION=$WX_RELEASE.$wx_release_number
1674WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
a848cd7e 1675
ceec2216 1676WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
a848cd7e 1677
a848cd7e
SC
1678
1679
1680
1681USE_UNIX=1
1682USE_OS2=0
1683USE_WIN32=0
1684USE_DOS=0
1685USE_BEOS=0
1686USE_MAC=0
1687
1688USE_AIX=
1689USE_BSD= USE_DARWIN= USE_FREEBSD=
1690USE_GNU= USE_HPUX=
1691USE_LINUX=
1692USE_NETBSD=
1693USE_OPENBSD=
1694USE_OSF= USE_SGI=
1695USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
1696USE_ULTRIX=
1697USE_UNIXWARE=
1698
1699USE_ALPHA=
1700
1701NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1702
1703ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
1704
1705DEFAULT_wxUSE_COCOA=0
1706DEFAULT_wxUSE_GTK=0
1707DEFAULT_wxUSE_MAC=0
1708DEFAULT_wxUSE_MGL=0
1709DEFAULT_wxUSE_MICROWIN=0
1710DEFAULT_wxUSE_MOTIF=0
1711DEFAULT_wxUSE_MSW=0
1712DEFAULT_wxUSE_PM=0
1713DEFAULT_wxUSE_X11=0
1714
1715DEFAULT_DEFAULT_wxUSE_COCOA=0
1716DEFAULT_DEFAULT_wxUSE_GTK=0
1717DEFAULT_DEFAULT_wxUSE_MAC=0
1718DEFAULT_DEFAULT_wxUSE_MGL=0
1719DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1720DEFAULT_DEFAULT_wxUSE_MOTIF=0
1721DEFAULT_DEFAULT_wxUSE_MSW=0
1722DEFAULT_DEFAULT_wxUSE_PM=0
1723DEFAULT_DEFAULT_wxUSE_X11=0
1724
1725PROGRAM_EXT=
1726SO_SUFFIX=so
1727SAMPLES_RPATH_FLAG=
1728SAMPLES_RPATH_POSTLINK=
1729
a03b8b04
RD
1730DEFAULT_STD_FLAG=yes
1731
a848cd7e
SC
1732case "${host}" in
1733 *-hp-hpux* )
1734 USE_HPUX=1
1735 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1736 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1737 SO_SUFFIX=sl
1738 cat >>confdefs.h <<\_ACEOF
1739#define __HPUX__ 1
1740_ACEOF
1741
2eef8513 1742
c92ad099 1743 CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
a848cd7e
SC
1744 ;;
1745 *-*-linux* )
1746 USE_LINUX=1
1747 cat >>confdefs.h <<\_ACEOF
1748#define __LINUX__ 1
1749_ACEOF
1750
1751 TMP=`uname -m`
1752 if test "x$TMP" = "xalpha"; then
1753 USE_ALPHA=1
1754 cat >>confdefs.h <<\_ACEOF
1755#define __ALPHA__ 1
1756_ACEOF
1757
1758 fi
1759 DEFAULT_DEFAULT_wxUSE_GTK=1
1760 ;;
1761 *-*-gnu* | *-*-k*bsd*-gnu )
1762 USE_GNU=1
1763 TMP=`uname -m`
1764 if test "x$TMP" = "xalpha"; then
1765 USE_ALPHA=1
1766 cat >>confdefs.h <<\_ACEOF
1767#define __ALPHA__ 1
1768_ACEOF
1769
1770 fi
1771 DEFAULT_DEFAULT_wxUSE_GTK=1
1772 ;;
1773 *-*-irix5* | *-*-irix6* )
1774 USE_SGI=1
1775 USE_SVR4=1
1776 cat >>confdefs.h <<\_ACEOF
1777#define __SGI__ 1
1778_ACEOF
1779
1780 cat >>confdefs.h <<\_ACEOF
1781#define __SVR4__ 1
1782_ACEOF
1783
1784 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1785 ;;
1786 *-*-solaris2* )
1787 USE_SUN=1
1788 USE_SOLARIS=1
1789 USE_SVR4=1
1790 cat >>confdefs.h <<\_ACEOF
1791#define __SUN__ 1
1792_ACEOF
1793
1794 cat >>confdefs.h <<\_ACEOF
1795#define __SOLARIS__ 1
1796_ACEOF
1797
1798 cat >>confdefs.h <<\_ACEOF
1799#define __SVR4__ 1
1800_ACEOF
1801
1802 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1803 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1804 ;;
1805 *-*-sunos4* )
1806 USE_SUN=1
1807 USE_SUNOS=1
1808 USE_BSD=1
1809 cat >>confdefs.h <<\_ACEOF
1810#define __SUN__ 1
1811_ACEOF
1812
1813 cat >>confdefs.h <<\_ACEOF
1814#define __SUNOS__ 1
1815_ACEOF
1816
1817 cat >>confdefs.h <<\_ACEOF
1818#define __BSD__ 1
1819_ACEOF
1820
1821 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1822 ;;
1823 *-*-freebsd*)
1824 USE_BSD=1
1825 USE_FREEBSD=1
1826 cat >>confdefs.h <<\_ACEOF
1827#define __FREEBSD__ 1
1828_ACEOF
1829
1830 cat >>confdefs.h <<\_ACEOF
1831#define __BSD__ 1
1832_ACEOF
1833
1834 DEFAULT_DEFAULT_wxUSE_GTK=1
1835 ;;
1836 *-*-openbsd*)
1837 USE_BSD=1
1838 USE_OPENBSD=1
1839 cat >>confdefs.h <<\_ACEOF
1840#define __OPENBSD__ 1
1841_ACEOF
1842
1843 cat >>confdefs.h <<\_ACEOF
1844#define __BSD__ 1
1845_ACEOF
1846
1847 DEFAULT_DEFAULT_wxUSE_GTK=1
1848 ;;
1849 *-*-netbsd*)
1850 USE_BSD=1
1851 USE_NETBSD=1
1852 cat >>confdefs.h <<\_ACEOF
1853#define __NETBSD__ 1
1854_ACEOF
1855
1856 cat >>confdefs.h <<\_ACEOF
1857#define __BSD__ 1
1858_ACEOF
1859
1860 DEFAULT_DEFAULT_wxUSE_GTK=1
1861 ;;
1862 *-*-osf* )
1863 USE_ALPHA=1
1864 USE_OSF=1
1865 cat >>confdefs.h <<\_ACEOF
1866#define __ALPHA__ 1
1867_ACEOF
1868
1869 cat >>confdefs.h <<\_ACEOF
1870#define __OSF__ 1
1871_ACEOF
1872
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1875 ;;
1876 *-*-dgux5* )
1877 USE_ALPHA=1
1878 USE_SVR4=1
1879 cat >>confdefs.h <<\_ACEOF
1880#define __ALPHA__ 1
1881_ACEOF
1882
1883 cat >>confdefs.h <<\_ACEOF
1884#define __SVR4__ 1
1885_ACEOF
1886
1887 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1888 ;;
1889 *-*-sysv5* )
1890 USE_SYSV=1
1891 USE_SVR4=1
1892 cat >>confdefs.h <<\_ACEOF
1893#define __SYSV__ 1
1894_ACEOF
1895
1896 cat >>confdefs.h <<\_ACEOF
1897#define __SVR4__ 1
1898_ACEOF
1899
1900 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1901 ;;
1902 *-*-aix* )
1903 USE_AIX=1
1904 USE_SYSV=1
1905 USE_SVR4=1
1906 SO_SUFFIX=a
1907 cat >>confdefs.h <<\_ACEOF
1908#define __AIX__ 1
1909_ACEOF
1910
1911 cat >>confdefs.h <<\_ACEOF
1912#define __SYSV__ 1
1913_ACEOF
1914
1915 cat >>confdefs.h <<\_ACEOF
1916#define __SVR4__ 1
1917_ACEOF
1918
1919 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1920 ;;
1921
1922 *-*-*UnixWare*)
1923 USE_SYSV=1
1924 USE_SVR4=1
1925 USE_UNIXWARE=1
1926 cat >>confdefs.h <<\_ACEOF
1927#define __UNIXWARE__ 1
1928_ACEOF
1929
1930 ;;
1931
1932 *-*-cygwin* | *-*-mingw32* )
1933 SO_SUFFIX=dll
1934 PROGRAM_EXT=".exe"
a848cd7e 1935 DEFAULT_DEFAULT_wxUSE_MSW=1
a03b8b04 1936 DEFAULT_STD_FLAG=no
a848cd7e
SC
1937 ;;
1938
1939 *-pc-msdosdjgpp )
1940 USE_UNIX=0
1941 USE_DOS=1
1942 cat >>confdefs.h <<\_ACEOF
1943#define __DOS__ 1
1944_ACEOF
1945
1946 PROGRAM_EXT=".exe"
1947 DEFAULT_DEFAULT_wxUSE_MGL=1
a848cd7e
SC
1948 ;;
1949
1950 *-pc-os2_emx | *-pc-os2-emx )
1951 cat >>confdefs.h <<\_ACEOF
1952#define __EMX__ 1
1953_ACEOF
1954
1955 USE_OS2=1
1956 cat >>confdefs.h <<\_ACEOF
1957#define __OS2__ 1
1958_ACEOF
1959
1960 PROGRAM_EXT=".exe"
1961 DEFAULT_DEFAULT_wxUSE_PM=1
1962 CXX=gcc
1963 LDFLAGS="$LDFLAGS -Zcrtdll"
1964 ac_executable_extensions=".exe"
1965 export ac_executable_extensions
1966 ac_save_IFS="$IFS"
1967 IFS='\\'
1968 ac_TEMP_PATH=
1969 for ac_dir in $PATH; do
1970 IFS=$ac_save_IFS
1971 if test -z "$ac_TEMP_PATH"; then
1972 ac_TEMP_PATH="$ac_dir"
1973 else
1974 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1975 fi
1976 done
1977 export PATH="$ac_TEMP_PATH"
1978 unset ac_TEMP_PATH
a03b8b04 1979 DEFAULT_STD_FLAG=no
a848cd7e
SC
1980 ;;
1981
cfda0ea8 1982 *-*-darwin* )
a848cd7e
SC
1983 USE_BSD=1
1984 USE_DARWIN=1
1985 SO_SUFFIX=dylib
1986 cat >>confdefs.h <<\_ACEOF
1987#define __BSD__ 1
1988_ACEOF
1989
1990 cat >>confdefs.h <<\_ACEOF
1991#define __DARWIN__ 1
a848cd7e
SC
1992_ACEOF
1993
1994 cat >>confdefs.h <<\_ACEOF
1995#define TARGET_CARBON 1
1996_ACEOF
1997
1998 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 1999 DEFAULT_STD_FLAG=no
a848cd7e 2000 ;;
1e9e8aba
DE
2001 powerpc-apple-macos* )
2002 USE_UNIX=0
2003 ac_cv_c_bigendian=yes
2004 SO_SUFFIX=shlib
2005 DEFAULT_DEFAULT_wxUSE_MAC=1
a03b8b04 2006 DEFAULT_STD_FLAG=no
1e9e8aba 2007 ;;
a848cd7e
SC
2008
2009 *-*-beos* )
2010 USE_BEOS=1
2011 cat >>confdefs.h <<\_ACEOF
2012#define __BEOS__ 1
2013_ACEOF
2014
2015 ;;
2016
2017 *)
2018 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
2019echo "$as_me: error: unknown system type ${host}." >&2;}
2020 { (exit 1); exit 1; }; }
2021esac
2022
2023
2024
2025
2026 wx_arg_cache_file="configarg.cache"
2027 echo "loading argument cache $wx_arg_cache_file"
2028 rm -f ${wx_arg_cache_file}.tmp
2029 touch ${wx_arg_cache_file}.tmp
2030 touch ${wx_arg_cache_file}
2031
2032
2033DEBUG_CONFIGURE=0
2034if test $DEBUG_CONFIGURE = 1; then
2035 DEFAULT_wxUSE_UNIVERSAL=no
2036 DEFAULT_wxUSE_STL=no
2037
2038 DEFAULT_wxUSE_NANOX=no
2039
2040 DEFAULT_wxUSE_THREADS=yes
2041
2042 DEFAULT_wxUSE_SHARED=yes
2043 DEFAULT_wxUSE_OPTIMISE=no
2044 DEFAULT_wxUSE_PROFILE=no
2045 DEFAULT_wxUSE_NO_DEPS=no
2046 DEFAULT_wxUSE_NO_RTTI=no
2047 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2048 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2049 DEFAULT_wxUSE_PERMISSIVE=no
2050 DEFAULT_wxUSE_DEBUG_FLAG=yes
2051 DEFAULT_wxUSE_DEBUG_INFO=yes
2052 DEFAULT_wxUSE_DEBUG_GDB=yes
2053 DEFAULT_wxUSE_MEM_TRACING=no
2054 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2055 DEFAULT_wxUSE_DMALLOC=no
2056 DEFAULT_wxUSE_APPLE_IEEE=no
2057
2058 DEFAULT_wxUSE_EXCEPTIONS=no
2059 DEFAULT_wxUSE_LOG=yes
2060 DEFAULT_wxUSE_LOGWINDOW=no
2061 DEFAULT_wxUSE_LOGGUI=no
2062 DEFAULT_wxUSE_LOGDIALOG=no
2063
2064 DEFAULT_wxUSE_GUI=yes
2065 DEFAULT_wxUSE_CONTROLS=no
2066
2067 DEFAULT_wxUSE_REGEX=no
2068 DEFAULT_wxUSE_XML=no
2069 DEFAULT_wxUSE_EXPAT=no
2070 DEFAULT_wxUSE_ZLIB=no
2071 DEFAULT_wxUSE_LIBPNG=no
2072 DEFAULT_wxUSE_LIBJPEG=no
2073 DEFAULT_wxUSE_LIBTIFF=no
2074 DEFAULT_wxUSE_LIBXPM=no
2075 DEFAULT_wxUSE_LIBMSPACK=no
2076 DEFAULT_wxUSE_LIBSDL=no
d1c38808 2077 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e
SC
2078 DEFAULT_wxUSE_ODBC=no
2079 DEFAULT_wxUSE_OPENGL=no
2080
2081 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
eaff0f0d 2082 DEFAULT_wxUSE_STACKWALKER=no
36b6448c 2083 DEFAULT_wxUSE_DEBUGREPORT=no
a848cd7e
SC
2084 DEFAULT_wxUSE_SNGLINST_CHECKER=no
2085 DEFAULT_wxUSE_STD_IOSTREAM=no
59746b65 2086 DEFAULT_wxUSE_STD_STRING=no
a848cd7e
SC
2087 DEFAULT_wxUSE_CMDLINE_PARSER=no
2088 DEFAULT_wxUSE_DATETIME=no
2089 DEFAULT_wxUSE_TIMER=no
2090 DEFAULT_wxUSE_STOPWATCH=no
2091 DEFAULT_wxUSE_FILE=no
2092 DEFAULT_wxUSE_FFILE=no
07158944 2093 DEFAULT_wxUSE_STDPATHS=no
a848cd7e
SC
2094 DEFAULT_wxUSE_TEXTBUFFER=no
2095 DEFAULT_wxUSE_TEXTFILE=no
2096 DEFAULT_wxUSE_SOUND=no
3b57de8b 2097 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2098 DEFAULT_wxUSE_INTL=no
2099 DEFAULT_wxUSE_CONFIG=no
2100 DEFAULT_wxUSE_FONTMAP=no
2101 DEFAULT_wxUSE_STREAMS=no
2102 DEFAULT_wxUSE_SOCKETS=no
2103 DEFAULT_wxUSE_OLE=no
2104 DEFAULT_wxUSE_DATAOBJ=no
2105 DEFAULT_wxUSE_DIALUP_MANAGER=no
2106 DEFAULT_wxUSE_JOYSTICK=no
2107 DEFAULT_wxUSE_DYNLIB_CLASS=no
2108 DEFAULT_wxUSE_DYNAMIC_LOADER=no
2109 DEFAULT_wxUSE_LONGLONG=no
2110 DEFAULT_wxUSE_GEOMETRY=no
2111
2112 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2113 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2114 DEFAULT_wxUSE_POSTSCRIPT=no
2115
2116 DEFAULT_wxUSE_CLIPBOARD=no
2117 DEFAULT_wxUSE_TOOLTIPS=no
2118 DEFAULT_wxUSE_DRAG_AND_DROP=no
2119 DEFAULT_wxUSE_DRAGIMAGE=no
2120 DEFAULT_wxUSE_SPLINES=no
fbe2ca43 2121 DEFAULT_wxUSE_MOUSEWHEEL=no
a848cd7e 2122
8a7b1113 2123 DEFAULT_wxUSE_MDI=no
a848cd7e
SC
2124 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2125 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2126 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2127
2128 DEFAULT_wxUSE_RESOURCES=no
2129 DEFAULT_wxUSE_CONSTRAINTS=no
2130 DEFAULT_wxUSE_IPC=no
2131 DEFAULT_wxUSE_HELP=no
2132 DEFAULT_wxUSE_MS_HTML_HELP=no
2133 DEFAULT_wxUSE_WXHTML_HELP=no
2134 DEFAULT_wxUSE_TREELAYOUT=no
2135 DEFAULT_wxUSE_METAFILE=no
2136 DEFAULT_wxUSE_MIMETYPE=no
2137 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2138 DEFAULT_wxUSE_PROTOCOL=no
2139 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2140 DEFAULT_wxUSE_PROTOCOL_FTP=no
2141 DEFAULT_wxUSE_PROTOCOL_FILE=no
2142 DEFAULT_wxUSE_URL=no
2143
2144 DEFAULT_wxUSE_COMMONDLGS=no
2145 DEFAULT_wxUSE_CHOICEDLG=no
2146 DEFAULT_wxUSE_COLOURDLG=no
2147 DEFAULT_wxUSE_DIRDLG=no
2148 DEFAULT_wxUSE_FILEDLG=no
2149 DEFAULT_wxUSE_FINDREPLDLG=no
2150 DEFAULT_wxUSE_FONTDLG=no
2151 DEFAULT_wxUSE_MSGDLG=no
2152 DEFAULT_wxUSE_NUMBERDLG=no
2153 DEFAULT_wxUSE_TEXTDLG=no
2154 DEFAULT_wxUSE_SPLASH=no
2155 DEFAULT_wxUSE_STARTUP_TIPS=no
2156 DEFAULT_wxUSE_PROGRESSDLG=no
2157 DEFAULT_wxUSE_WIZARDDLG=no
2158
2159 DEFAULT_wxUSE_MENUS=no
2160 DEFAULT_wxUSE_MINIFRAME=no
2161 DEFAULT_wxUSE_HTML=no
91dea314 2162 DEFAULT_wxUSE_RICHTEXT=no
9a8f0513 2163 DEFAULT_wxUSE_XRC=no
646b6ec1 2164 DEFAULT_wxUSE_WEBKIT=no
a848cd7e
SC
2165 DEFAULT_wxUSE_FILESYSTEM=no
2166 DEFAULT_wxUSE_FS_INET=no
2167 DEFAULT_wxUSE_FS_ZIP=no
2168 DEFAULT_wxUSE_BUSYINFO=no
9e8e867f 2169 DEFAULT_wxUSE_ARCHIVE_STREAMS=no
a848cd7e 2170 DEFAULT_wxUSE_ZIPSTREAM=no
a848cd7e
SC
2171 DEFAULT_wxUSE_VALIDATORS=no
2172
2173 DEFAULT_wxUSE_ACCEL=no
2174 DEFAULT_wxUSE_BUTTON=no
2175 DEFAULT_wxUSE_BMPBUTTON=no
2176 DEFAULT_wxUSE_CALCTRL=no
2177 DEFAULT_wxUSE_CARET=no
2178 DEFAULT_wxUSE_CHECKBOX=no
2179 DEFAULT_wxUSE_CHECKLST=no
2180 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 2181 DEFAULT_wxUSE_CHOICEBOOK=no
a848cd7e 2182 DEFAULT_wxUSE_COMBOBOX=no
da98e9be 2183 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
2184 DEFAULT_wxUSE_DISPLAY=no
2185 DEFAULT_wxUSE_GAUGE=no
2186 DEFAULT_wxUSE_GRID=no
2187 DEFAULT_wxUSE_IMAGLIST=no
2188 DEFAULT_wxUSE_LISTBOOK=no
2189 DEFAULT_wxUSE_LISTBOX=no
2190 DEFAULT_wxUSE_LISTCTRL=no
2191 DEFAULT_wxUSE_NOTEBOOK=no
2192 DEFAULT_wxUSE_RADIOBOX=no
2193 DEFAULT_wxUSE_RADIOBTN=no
2194 DEFAULT_wxUSE_SASH=no
2195 DEFAULT_wxUSE_SCROLLBAR=no
2196 DEFAULT_wxUSE_SLIDER=no
2197 DEFAULT_wxUSE_SPINBTN=no
2198 DEFAULT_wxUSE_SPINCTRL=no
2199 DEFAULT_wxUSE_SPLITTER=no
2200 DEFAULT_wxUSE_STATBMP=no
2201 DEFAULT_wxUSE_STATBOX=no
2202 DEFAULT_wxUSE_STATLINE=no
2203 DEFAULT_wxUSE_STATTEXT=no
2204 DEFAULT_wxUSE_STATUSBAR=yes
2205 DEFAULT_wxUSE_TABDIALOG=no
2206 DEFAULT_wxUSE_TEXTCTRL=no
2207 DEFAULT_wxUSE_TOGGLEBTN=no
2208 DEFAULT_wxUSE_TOOLBAR=no
2209 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2210 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
0093c2fc 2211 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
2212 DEFAULT_wxUSE_TREECTRL=no
2213 DEFAULT_wxUSE_POPUPWIN=no
2214 DEFAULT_wxUSE_TIPWINDOW=no
2215
2216 DEFAULT_wxUSE_UNICODE=no
2217 DEFAULT_wxUSE_UNICODE_MSLU=no
2218 DEFAULT_wxUSE_WCSRTOMBS=no
2219
2220 DEFAULT_wxUSE_PALETTE=no
2221 DEFAULT_wxUSE_IMAGE=no
2222 DEFAULT_wxUSE_GIF=no
2223 DEFAULT_wxUSE_PCX=no
2224 DEFAULT_wxUSE_PNM=no
2225 DEFAULT_wxUSE_IFF=no
2226 DEFAULT_wxUSE_XPM=no
2227 DEFAULT_wxUSE_ICO_CUR=no
2228 DEFAULT_wxUSE_ACCESSIBILITY=no
2229
2230 DEFAULT_wxUSE_MONOLITHIC=no
2231 DEFAULT_wxUSE_PLUGINS=no
2232 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2233else
2234 DEFAULT_wxUSE_UNIVERSAL=no
2235 DEFAULT_wxUSE_STL=no
2236
2237 DEFAULT_wxUSE_NANOX=no
2238
2239 DEFAULT_wxUSE_THREADS=yes
2240
2241 DEFAULT_wxUSE_SHARED=yes
2242 DEFAULT_wxUSE_OPTIMISE=yes
2243 DEFAULT_wxUSE_PROFILE=no
2244 DEFAULT_wxUSE_NO_DEPS=no
2245 DEFAULT_wxUSE_NO_RTTI=no
2246 DEFAULT_wxUSE_NO_EXCEPTIONS=no
ffa0583f 2247 DEFAULT_wxUSE_RPATH=yes
a848cd7e
SC
2248 DEFAULT_wxUSE_PERMISSIVE=no
2249 DEFAULT_wxUSE_DEBUG_FLAG=no
2250 DEFAULT_wxUSE_DEBUG_INFO=no
2251 DEFAULT_wxUSE_DEBUG_GDB=no
2252 DEFAULT_wxUSE_MEM_TRACING=no
2253 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2254 DEFAULT_wxUSE_DMALLOC=no
2255 DEFAULT_wxUSE_APPLE_IEEE=yes
2256
2257 DEFAULT_wxUSE_EXCEPTIONS=yes
2258 DEFAULT_wxUSE_LOG=yes
2259 DEFAULT_wxUSE_LOGWINDOW=yes
2260 DEFAULT_wxUSE_LOGGUI=yes
2261 DEFAULT_wxUSE_LOGDIALOG=yes
2262
2263 DEFAULT_wxUSE_GUI=yes
2264
2265 DEFAULT_wxUSE_REGEX=yes
2266 DEFAULT_wxUSE_XML=yes
2267 DEFAULT_wxUSE_EXPAT=yes
2268 DEFAULT_wxUSE_ZLIB=yes
2269 DEFAULT_wxUSE_LIBPNG=yes
2270 DEFAULT_wxUSE_LIBJPEG=yes
2271 DEFAULT_wxUSE_LIBTIFF=yes
2272 DEFAULT_wxUSE_LIBXPM=yes
2273 DEFAULT_wxUSE_LIBMSPACK=yes
2274 DEFAULT_wxUSE_LIBSDL=no
a03b8b04 2275 DEFAULT_wxUSE_LIBGNOMEPRINT=no
a848cd7e 2276 DEFAULT_wxUSE_ODBC=no
52cb607e 2277 DEFAULT_wxUSE_OPENGL=no
a848cd7e
SC
2278
2279 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
eaff0f0d 2280 DEFAULT_wxUSE_STACKWALKER=yes
6671c68b 2281 DEFAULT_wxUSE_DEBUGREPORT=yes
a848cd7e 2282 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
a03b8b04
RD
2283 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2284 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
a848cd7e
SC
2285 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2286 DEFAULT_wxUSE_DATETIME=yes
2287 DEFAULT_wxUSE_TIMER=yes
2288 DEFAULT_wxUSE_STOPWATCH=yes
2289 DEFAULT_wxUSE_FILE=yes
2290 DEFAULT_wxUSE_FFILE=yes
07158944 2291 DEFAULT_wxUSE_STDPATHS=yes
a848cd7e
SC
2292 DEFAULT_wxUSE_TEXTBUFFER=yes
2293 DEFAULT_wxUSE_TEXTFILE=yes
2294 DEFAULT_wxUSE_SOUND=yes
3b57de8b 2295 DEFAULT_wxUSE_MEDIACTRL=no
a848cd7e
SC
2296 DEFAULT_wxUSE_INTL=yes
2297 DEFAULT_wxUSE_CONFIG=yes
2298 DEFAULT_wxUSE_FONTMAP=yes
2299 DEFAULT_wxUSE_STREAMS=yes
2300 DEFAULT_wxUSE_SOCKETS=yes
2301 DEFAULT_wxUSE_OLE=yes
2302 DEFAULT_wxUSE_DATAOBJ=yes
2303 DEFAULT_wxUSE_DIALUP_MANAGER=yes
2304 DEFAULT_wxUSE_JOYSTICK=yes
2305 DEFAULT_wxUSE_DYNLIB_CLASS=yes
2306 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
2307 DEFAULT_wxUSE_LONGLONG=yes
2308 DEFAULT_wxUSE_GEOMETRY=yes
2309
2310 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2311 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2312 DEFAULT_wxUSE_POSTSCRIPT=yes
2313
2314 DEFAULT_wxUSE_CLIPBOARD=yes
2315 DEFAULT_wxUSE_TOOLTIPS=yes
2316 DEFAULT_wxUSE_DRAG_AND_DROP=yes
2317 DEFAULT_wxUSE_DRAGIMAGE=yes
2318 DEFAULT_wxUSE_SPLINES=yes
fbe2ca43 2319 DEFAULT_wxUSE_MOUSEWHEEL=yes
a848cd7e 2320
8a7b1113 2321 DEFAULT_wxUSE_MDI=yes
a848cd7e
SC
2322 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2323 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2324 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2325
2326 DEFAULT_wxUSE_RESOURCES=no
2327 DEFAULT_wxUSE_CONSTRAINTS=yes
2328 DEFAULT_wxUSE_IPC=yes
2329 DEFAULT_wxUSE_HELP=yes
2330 DEFAULT_wxUSE_MS_HTML_HELP=yes
2331 DEFAULT_wxUSE_WXHTML_HELP=yes
2332 DEFAULT_wxUSE_TREELAYOUT=yes
2333 DEFAULT_wxUSE_METAFILE=yes
2334 DEFAULT_wxUSE_MIMETYPE=yes
2335 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
2336 DEFAULT_wxUSE_PROTOCOL=yes
2337 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2338 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2339 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2340 DEFAULT_wxUSE_URL=yes
2341
2342 DEFAULT_wxUSE_COMMONDLGS=yes
2343 DEFAULT_wxUSE_CHOICEDLG=yes
2344 DEFAULT_wxUSE_COLOURDLG=yes
2345 DEFAULT_wxUSE_DIRDLG=yes
2346 DEFAULT_wxUSE_FILEDLG=yes
2347 DEFAULT_wxUSE_FINDREPLDLG=yes
2348 DEFAULT_wxUSE_FONTDLG=yes
2349 DEFAULT_wxUSE_MSGDLG=yes
2350 DEFAULT_wxUSE_NUMBERDLG=yes
2351 DEFAULT_wxUSE_TEXTDLG=yes
2352 DEFAULT_wxUSE_SPLASH=yes
2353 DEFAULT_wxUSE_STARTUP_TIPS=yes
2354 DEFAULT_wxUSE_PROGRESSDLG=yes
2355 DEFAULT_wxUSE_WIZARDDLG=yes
2356
2357 DEFAULT_wxUSE_MENUS=yes
2358 DEFAULT_wxUSE_MINIFRAME=yes
2359 DEFAULT_wxUSE_HTML=yes
91dea314 2360 DEFAULT_wxUSE_RICHTEXT=yes
9a8f0513 2361 DEFAULT_wxUSE_XRC=yes
646b6ec1 2362 DEFAULT_wxUSE_WEBKIT=yes
a848cd7e
SC
2363 DEFAULT_wxUSE_FILESYSTEM=yes
2364 DEFAULT_wxUSE_FS_INET=yes
2365 DEFAULT_wxUSE_FS_ZIP=yes
2366 DEFAULT_wxUSE_BUSYINFO=yes
9e8e867f 2367 DEFAULT_wxUSE_ARCHIVE_STREAMS=yes
a848cd7e 2368 DEFAULT_wxUSE_ZIPSTREAM=yes
a848cd7e
SC
2369 DEFAULT_wxUSE_VALIDATORS=yes
2370
2371 DEFAULT_wxUSE_ACCEL=yes
2372 DEFAULT_wxUSE_BUTTON=yes
2373 DEFAULT_wxUSE_BMPBUTTON=yes
2374 DEFAULT_wxUSE_CALCTRL=yes
2375 DEFAULT_wxUSE_CARET=yes
2376 DEFAULT_wxUSE_CHECKBOX=yes
2377 DEFAULT_wxUSE_CHECKLST=yes
2378 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 2379 DEFAULT_wxUSE_CHOICEBOOK=yes
a848cd7e 2380 DEFAULT_wxUSE_COMBOBOX=yes
da98e9be 2381 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
2382 DEFAULT_wxUSE_DISPLAY=yes
2383 DEFAULT_wxUSE_GAUGE=yes
2384 DEFAULT_wxUSE_GRID=yes
2385 DEFAULT_wxUSE_IMAGLIST=yes
2386 DEFAULT_wxUSE_LISTBOOK=yes
2387 DEFAULT_wxUSE_LISTBOX=yes
2388 DEFAULT_wxUSE_LISTCTRL=yes
2389 DEFAULT_wxUSE_NOTEBOOK=yes
2390 DEFAULT_wxUSE_RADIOBOX=yes
2391 DEFAULT_wxUSE_RADIOBTN=yes
2392 DEFAULT_wxUSE_SASH=yes
2393 DEFAULT_wxUSE_SCROLLBAR=yes
2394 DEFAULT_wxUSE_SLIDER=yes
2395 DEFAULT_wxUSE_SPINBTN=yes
2396 DEFAULT_wxUSE_SPINCTRL=yes
2397 DEFAULT_wxUSE_SPLITTER=yes
2398 DEFAULT_wxUSE_STATBMP=yes
2399 DEFAULT_wxUSE_STATBOX=yes
2400 DEFAULT_wxUSE_STATLINE=yes
2401 DEFAULT_wxUSE_STATTEXT=yes
2402 DEFAULT_wxUSE_STATUSBAR=yes
2403 DEFAULT_wxUSE_TABDIALOG=no
2404 DEFAULT_wxUSE_TEXTCTRL=yes
2405 DEFAULT_wxUSE_TOGGLEBTN=yes
2406 DEFAULT_wxUSE_TOOLBAR=yes
2407 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2408 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
0093c2fc 2409 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
2410 DEFAULT_wxUSE_TREECTRL=yes
2411 DEFAULT_wxUSE_POPUPWIN=yes
2412 DEFAULT_wxUSE_TIPWINDOW=yes
2413
78de529b 2414 DEFAULT_wxUSE_UNICODE=no
a848cd7e
SC
2415 DEFAULT_wxUSE_UNICODE_MSLU=yes
2416 DEFAULT_wxUSE_WCSRTOMBS=no
2417
2418 DEFAULT_wxUSE_PALETTE=yes
2419 DEFAULT_wxUSE_IMAGE=yes
2420 DEFAULT_wxUSE_GIF=yes
2421 DEFAULT_wxUSE_PCX=yes
2422 DEFAULT_wxUSE_IFF=no
2423 DEFAULT_wxUSE_PNM=yes
2424 DEFAULT_wxUSE_XPM=yes
2425 DEFAULT_wxUSE_ICO_CUR=yes
2426 DEFAULT_wxUSE_ACCESSIBILITY=no
2427
2428 DEFAULT_wxUSE_MONOLITHIC=no
2429 DEFAULT_wxUSE_PLUGINS=no
2430 DEFAULT_wxUSE_OFFICIAL_BUILD=no
9f45f08e 2431
f34ca037 2432 DEFAULT_wxUSE_GTK2=yes
a848cd7e
SC
2433fi
2434
2435
2436
f34ca037 2437
a848cd7e
SC
2438for toolkit in `echo $ALL_TOOLKITS`; do
2439 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2440 if test "x$LINE" != "x" ; then
2441 has_toolkit_in_cache=1
2442 eval "DEFAULT_$LINE"
2443 eval "CACHE_$toolkit=1"
f34ca037
MW
2444
2445 LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2446 if test "x$LINE" != "x" ; then
2447 eval "DEFAULT_$LINE"
2448 fi
a848cd7e
SC
2449 fi
2450done
2451
2452
2453
2454 enablestring=
2455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2456echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
2457 no_cache=0
2458 # Check whether --enable-gui or --disable-gui was given.
2459if test "${enable_gui+set}" = set; then
2460 enableval="$enable_gui"
2461
2462 if test "$enableval" = yes; then
2463 ac_cv_use_gui='wxUSE_GUI=yes'
2464 else
2465 ac_cv_use_gui='wxUSE_GUI=no'
2466 fi
2467
2468else
2469
2470 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2471 if test "x$LINE" != x ; then
2472 eval "DEFAULT_$LINE"
2473 else
2474 no_cache=1
2475 fi
2476
2477 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
2478
2479fi;
2480
2481 eval "$ac_cv_use_gui"
2482 if test "$no_cache" != 1; then
2483 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2484 fi
2485
2486 if test "$wxUSE_GUI" = yes; then
2487 echo "$as_me:$LINENO: result: yes" >&5
2488echo "${ECHO_T}yes" >&6
2489 else
2490 echo "$as_me:$LINENO: result: no" >&5
2491echo "${ECHO_T}no" >&6
2492 fi
2493
2494
2495 enablestring=
2496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2497echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2498 no_cache=0
2499 # Check whether --enable-monolithic or --disable-monolithic was given.
2500if test "${enable_monolithic+set}" = set; then
2501 enableval="$enable_monolithic"
2502
2503 if test "$enableval" = yes; then
2504 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2505 else
2506 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2507 fi
2508
2509else
2510
2511 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2512 if test "x$LINE" != x ; then
2513 eval "DEFAULT_$LINE"
2514 else
2515 no_cache=1
2516 fi
2517
2518 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2519
2520fi;
2521
2522 eval "$ac_cv_use_monolithic"
2523 if test "$no_cache" != 1; then
2524 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2525 fi
2526
2527 if test "$wxUSE_MONOLITHIC" = yes; then
2528 echo "$as_me:$LINENO: result: yes" >&5
2529echo "${ECHO_T}yes" >&6
2530 else
2531 echo "$as_me:$LINENO: result: no" >&5
2532echo "${ECHO_T}no" >&6
2533 fi
2534
2535
2536 enablestring=
2537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2538echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2539 no_cache=0
2540 # Check whether --enable-plugins or --disable-plugins was given.
2541if test "${enable_plugins+set}" = set; then
2542 enableval="$enable_plugins"
2543
2544 if test "$enableval" = yes; then
2545 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2546 else
2547 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2548 fi
2549
2550else
2551
2552 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2553 if test "x$LINE" != x ; then
2554 eval "DEFAULT_$LINE"
2555 else
2556 no_cache=1
2557 fi
2558
2559 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2560
2561fi;
2562
2563 eval "$ac_cv_use_plugins"
2564 if test "$no_cache" != 1; then
2565 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2566 fi
2567
2568 if test "$wxUSE_PLUGINS" = yes; then
2569 echo "$as_me:$LINENO: result: yes" >&5
2570echo "${ECHO_T}yes" >&6
2571 else
2572 echo "$as_me:$LINENO: result: no" >&5
2573echo "${ECHO_T}no" >&6
2574 fi
2575
2576
1c14217d
VZ
2577 withstring=without
2578 echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
2579echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6
2580 no_cache=0
2581
2582# Check whether --with-subdirs or --without-subdirs was given.
2583if test "${with_subdirs+set}" = set; then
2584 withval="$with_subdirs"
2585
2586 if test "$withval" = yes; then
2587 ac_cv_use_subdirs='wxWITH_SUBDIRS=yes'
2588 else
2589 ac_cv_use_subdirs='wxWITH_SUBDIRS=no'
2590 fi
2591
2592else
2593
2594 LINE=`grep "wxWITH_SUBDIRS" ${wx_arg_cache_file}`
2595 if test "x$LINE" != x ; then
2596 eval "DEFAULT_$LINE"
2597 else
2598 no_cache=1
2599 fi
2600
2601 ac_cv_use_subdirs='wxWITH_SUBDIRS='$DEFAULT_wxWITH_SUBDIRS
2602
2603fi;
2604
2605 eval "$ac_cv_use_subdirs"
2606 if test "$no_cache" != 1; then
2607 echo $ac_cv_use_subdirs >> ${wx_arg_cache_file}.tmp
2608 fi
2609
2610 if test "$wxWITH_SUBDIRS" = yes; then
2611 echo "$as_me:$LINENO: result: yes" >&5
2612echo "${ECHO_T}yes" >&6
2613 else
2614 echo "$as_me:$LINENO: result: no" >&5
2615echo "${ECHO_T}no" >&6
2616 fi
2617
2618
a848cd7e
SC
2619if test "$wxUSE_GUI" = "yes"; then
2620
2621
2622 enablestring=
2623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2624echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
2625 no_cache=0
2626 # Check whether --enable-universal or --disable-universal was given.
2627if test "${enable_universal+set}" = set; then
2628 enableval="$enable_universal"
2629
2630 if test "$enableval" = yes; then
2631 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2632 else
2633 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2634 fi
2635
2636else
2637
2638 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2639 if test "x$LINE" != x ; then
2640 eval "DEFAULT_$LINE"
2641 else
2642 no_cache=1
2643 fi
2644
2645 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
2646
2647fi;
2648
2649 eval "$ac_cv_use_universal"
2650 if test "$no_cache" != 1; then
2651 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2652 fi
2653
2654 if test "$wxUSE_UNIVERSAL" = yes; then
2655 echo "$as_me:$LINENO: result: yes" >&5
2656echo "${ECHO_T}yes" >&6
2657 else
2658 echo "$as_me:$LINENO: result: no" >&5
2659echo "${ECHO_T}no" >&6
2660 fi
2661
2662
2663# Check whether --with-gtk or --without-gtk was given.
2664if test "${with_gtk+set}" = set; then
2665 withval="$with_gtk"
2666 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
2667fi;
2668
2669# Check whether --with-motif or --without-motif was given.
2670if test "${with_motif+set}" = set; then
2671 withval="$with_motif"
2672 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
2673fi;
2674
2675# Check whether --with-mac or --without-mac was given.
2676if test "${with_mac+set}" = set; then
2677 withval="$with_mac"
c228d3a4 2678 wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2679fi;
2680
2681# Check whether --with-cocoa or --without-cocoa was given.
2682if test "${with_cocoa+set}" = set; then
2683 withval="$with_cocoa"
c228d3a4 2684 wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
a848cd7e
SC
2685fi;
2686
2687# Check whether --with-wine or --without-wine was given.
2688if test "${with_wine+set}" = set; then
2689 withval="$with_wine"
2690 wxUSE_WINE="$withval" CACHE_WINE=1
2691fi;
2692
2693# Check whether --with-msw or --without-msw was given.
2694if test "${with_msw+set}" = set; then
2695 withval="$with_msw"
2696 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
2697fi;
2698
2699# Check whether --with-pm or --without-pm was given.
2700if test "${with_pm+set}" = set; then
2701 withval="$with_pm"
2702 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
2703fi;
2704
2705# Check whether --with-mgl or --without-mgl was given.
2706if test "${with_mgl+set}" = set; then
2707 withval="$with_mgl"
2708 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
2709fi;
2710
2711# Check whether --with-microwin or --without-microwin was given.
2712if test "${with_microwin+set}" = set; then
2713 withval="$with_microwin"
2714 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
2715fi;
2716
2717# Check whether --with-x11 or --without-x11 was given.
2718if test "${with_x11+set}" = set; then
2719 withval="$with_x11"
2720 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
2721fi;
2722
2723 enablestring=
2724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2725echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
2726 no_cache=0
2727 # Check whether --enable-nanox or --disable-nanox was given.
2728if test "${enable_nanox+set}" = set; then
2729 enableval="$enable_nanox"
2730
2731 if test "$enableval" = yes; then
2732 ac_cv_use_nanox='wxUSE_NANOX=yes'
2733 else
2734 ac_cv_use_nanox='wxUSE_NANOX=no'
2735 fi
2736
2737else
2738
2739 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2740 if test "x$LINE" != x ; then
2741 eval "DEFAULT_$LINE"
2742 else
2743 no_cache=1
2744 fi
2745
2746 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
2747
2748fi;
2749
2750 eval "$ac_cv_use_nanox"
2751 if test "$no_cache" != 1; then
2752 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
2753 fi
2754
2755 if test "$wxUSE_NANOX" = yes; then
2756 echo "$as_me:$LINENO: result: yes" >&5
2757echo "${ECHO_T}yes" >&6
2758 else
2759 echo "$as_me:$LINENO: result: no" >&5
2760echo "${ECHO_T}no" >&6
2761 fi
2762
2763
f34ca037
MW
2764# Check whether --enable-gtk2 or --disable-gtk2 was given.
2765if test "${enable_gtk2+set}" = set; then
2766 enableval="$enable_gtk2"
2767 wxUSE_GTK2="$enableval"
2768fi;
a848cd7e 2769
a848cd7e
SC
2770 enablestring=
2771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2772echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2773 no_cache=0
2774 # Check whether --enable-gpe or --disable-gpe was given.
2775if test "${enable_gpe+set}" = set; then
2776 enableval="$enable_gpe"
2777
2778 if test "$enableval" = yes; then
2779 ac_cv_use_gpe='wxUSE_GPE=yes'
2780 else
2781 ac_cv_use_gpe='wxUSE_GPE=no'
2782 fi
2783
2784else
2785
2786 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2787 if test "x$LINE" != x ; then
2788 eval "DEFAULT_$LINE"
2789 else
2790 no_cache=1
2791 fi
2792
2793 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2794
2795fi;
2796
2797 eval "$ac_cv_use_gpe"
2798 if test "$no_cache" != 1; then
2799 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2800 fi
2801
2802 if test "$wxUSE_GPE" = yes; then
2803 echo "$as_me:$LINENO: result: yes" >&5
2804echo "${ECHO_T}yes" >&6
2805 else
2806 echo "$as_me:$LINENO: result: no" >&5
2807echo "${ECHO_T}no" >&6
2808 fi
2809
2810
2811
2812 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2813echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
2814 no_cache=0
2815
2816# Check whether --with-libpng or --without-libpng was given.
2817if test "${with_libpng+set}" = set; then
2818 withval="$with_libpng"
2819
2820 if test "$withval" = yes; then
2821 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
2822 elif test "$withval" = no; then
2823 ac_cv_use_libpng='wxUSE_LIBPNG=no'
2824 elif test "$withval" = sys; then
2825 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
2826 elif test "$withval" = builtin; then
2827 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
2828 else
2829 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2830echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2831 { (exit 1); exit 1; }; }
2832 fi
2833
2834else
2835
2836 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
2837 if test "x$LINE" != x ; then
2838 eval "DEFAULT_$LINE"
2839 else
2840 no_cache=1
2841 fi
2842
2843 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
2844
2845fi;
2846
2847 eval "$ac_cv_use_libpng"
2848 if test "$no_cache" != 1; then
2849 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
2850 fi
2851
2852 if test "$wxUSE_LIBPNG" = yes; then
2853 echo "$as_me:$LINENO: result: yes" >&5
2854echo "${ECHO_T}yes" >&6
2855 elif test "$wxUSE_LIBPNG" = no; then
2856 echo "$as_me:$LINENO: result: no" >&5
2857echo "${ECHO_T}no" >&6
2858 elif test "$wxUSE_LIBPNG" = sys; then
2859 echo "$as_me:$LINENO: result: system version" >&5
2860echo "${ECHO_T}system version" >&6
2861 elif test "$wxUSE_LIBPNG" = builtin; then
2862 echo "$as_me:$LINENO: result: builtin version" >&5
2863echo "${ECHO_T}builtin version" >&6
2864 else
2865 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2866echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2867 { (exit 1); exit 1; }; }
2868 fi
2869
2870
2871 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2872echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
2873 no_cache=0
2874
2875# Check whether --with-libjpeg or --without-libjpeg was given.
2876if test "${with_libjpeg+set}" = set; then
2877 withval="$with_libjpeg"
2878
2879 if test "$withval" = yes; then
2880 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2881 elif test "$withval" = no; then
2882 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2883 elif test "$withval" = sys; then
2884 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2885 elif test "$withval" = builtin; then
2886 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2887 else
2888 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2889echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2890 { (exit 1); exit 1; }; }
2891 fi
2892
2893else
2894
2895 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2896 if test "x$LINE" != x ; then
2897 eval "DEFAULT_$LINE"
2898 else
2899 no_cache=1
2900 fi
2901
2902 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2903
2904fi;
2905
2906 eval "$ac_cv_use_libjpeg"
2907 if test "$no_cache" != 1; then
2908 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2909 fi
2910
2911 if test "$wxUSE_LIBJPEG" = yes; then
2912 echo "$as_me:$LINENO: result: yes" >&5
2913echo "${ECHO_T}yes" >&6
2914 elif test "$wxUSE_LIBJPEG" = no; then
2915 echo "$as_me:$LINENO: result: no" >&5
2916echo "${ECHO_T}no" >&6
2917 elif test "$wxUSE_LIBJPEG" = sys; then
2918 echo "$as_me:$LINENO: result: system version" >&5
2919echo "${ECHO_T}system version" >&6
2920 elif test "$wxUSE_LIBJPEG" = builtin; then
2921 echo "$as_me:$LINENO: result: builtin version" >&5
2922echo "${ECHO_T}builtin version" >&6
2923 else
2924 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2925echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2926 { (exit 1); exit 1; }; }
2927 fi
2928
2929
2930 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2931echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
2932 no_cache=0
2933
2934# Check whether --with-libtiff or --without-libtiff was given.
2935if test "${with_libtiff+set}" = set; then
2936 withval="$with_libtiff"
2937
2938 if test "$withval" = yes; then
2939 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2940 elif test "$withval" = no; then
2941 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2942 elif test "$withval" = sys; then
2943 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2944 elif test "$withval" = builtin; then
2945 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2946 else
2947 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2948echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2949 { (exit 1); exit 1; }; }
2950 fi
2951
2952else
2953
2954 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2955 if test "x$LINE" != x ; then
2956 eval "DEFAULT_$LINE"
2957 else
2958 no_cache=1
2959 fi
2960
2961 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2962
2963fi;
2964
2965 eval "$ac_cv_use_libtiff"
2966 if test "$no_cache" != 1; then
2967 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2968 fi
2969
2970 if test "$wxUSE_LIBTIFF" = yes; then
2971 echo "$as_me:$LINENO: result: yes" >&5
2972echo "${ECHO_T}yes" >&6
2973 elif test "$wxUSE_LIBTIFF" = no; then
2974 echo "$as_me:$LINENO: result: no" >&5
2975echo "${ECHO_T}no" >&6
2976 elif test "$wxUSE_LIBTIFF" = sys; then
2977 echo "$as_me:$LINENO: result: system version" >&5
2978echo "${ECHO_T}system version" >&6
2979 elif test "$wxUSE_LIBTIFF" = builtin; then
2980 echo "$as_me:$LINENO: result: builtin version" >&5
2981echo "${ECHO_T}builtin version" >&6
2982 else
2983 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2984echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2985 { (exit 1); exit 1; }; }
2986 fi
2987
2988
2989 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2990echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2991 no_cache=0
2992
2993# Check whether --with-libxpm or --without-libxpm was given.
2994if test "${with_libxpm+set}" = set; then
2995 withval="$with_libxpm"
2996
2997 if test "$withval" = yes; then
2998 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2999 elif test "$withval" = no; then
3000 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
3001 elif test "$withval" = sys; then
3002 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
3003 elif test "$withval" = builtin; then
3004 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3005 else
3006 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3007echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3008 { (exit 1); exit 1; }; }
3009 fi
3010
3011else
3012
3013 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
3014 if test "x$LINE" != x ; then
3015 eval "DEFAULT_$LINE"
3016 else
3017 no_cache=1
3018 fi
3019
3020 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
3021
3022fi;
3023
3024 eval "$ac_cv_use_libxpm"
3025 if test "$no_cache" != 1; then
3026 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
3027 fi
3028
3029 if test "$wxUSE_LIBXPM" = yes; then
3030 echo "$as_me:$LINENO: result: yes" >&5
3031echo "${ECHO_T}yes" >&6
3032 elif test "$wxUSE_LIBXPM" = no; then
3033 echo "$as_me:$LINENO: result: no" >&5
3034echo "${ECHO_T}no" >&6
3035 elif test "$wxUSE_LIBXPM" = sys; then
3036 echo "$as_me:$LINENO: result: system version" >&5
3037echo "${ECHO_T}system version" >&6
3038 elif test "$wxUSE_LIBXPM" = builtin; then
3039 echo "$as_me:$LINENO: result: builtin version" >&5
3040echo "${ECHO_T}builtin version" >&6
3041 else
3042 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3043echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3044 { (exit 1); exit 1; }; }
3045 fi
3046
3047
1c14217d
VZ
3048 withstring=
3049 echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3050echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6
a848cd7e
SC
3051 no_cache=0
3052
3053# Check whether --with-libmspack or --without-libmspack was given.
3054if test "${with_libmspack+set}" = set; then
3055 withval="$with_libmspack"
3056
3057 if test "$withval" = yes; then
3058 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3059 else
3060 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3061 fi
3062
3063else
3064
3065 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
3066 if test "x$LINE" != x ; then
3067 eval "DEFAULT_$LINE"
3068 else
3069 no_cache=1
3070 fi
3071
3072 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3073
3074fi;
3075
3076 eval "$ac_cv_use_libmspack"
3077 if test "$no_cache" != 1; then
3078 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3079 fi
3080
3081 if test "$wxUSE_LIBMSPACK" = yes; then
3082 echo "$as_me:$LINENO: result: yes" >&5
3083echo "${ECHO_T}yes" >&6
3084 else
3085 echo "$as_me:$LINENO: result: no" >&5
3086echo "${ECHO_T}no" >&6
3087 fi
3088
3089
1c14217d
VZ
3090 withstring=
3091 echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
3092echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6
a848cd7e
SC
3093 no_cache=0
3094
3095# Check whether --with-sdl or --without-sdl was given.
3096if test "${with_sdl+set}" = set; then
3097 withval="$with_sdl"
3098
3099 if test "$withval" = yes; then
3100 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3101 else
3102 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3103 fi
3104
3105else
3106
3107 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3108 if test "x$LINE" != x ; then
3109 eval "DEFAULT_$LINE"
3110 else
3111 no_cache=1
3112 fi
3113
3114 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3115
3116fi;
3117
3118 eval "$ac_cv_use_sdl"
3119 if test "$no_cache" != 1; then
3120 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3121 fi
3122
3123 if test "$wxUSE_LIBSDL" = yes; then
3124 echo "$as_me:$LINENO: result: yes" >&5
3125echo "${ECHO_T}yes" >&6
3126 else
3127 echo "$as_me:$LINENO: result: no" >&5
3128echo "${ECHO_T}no" >&6
3129 fi
3130
3131
1c14217d
VZ
3132 withstring=
3133 echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3134echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6
d1c38808
VZ
3135 no_cache=0
3136
3137# Check whether --with-gnomeprint or --without-gnomeprint was given.
3138if test "${with_gnomeprint+set}" = set; then
3139 withval="$with_gnomeprint"
3140
3141 if test "$withval" = yes; then
3142 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3143 else
3144 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3145 fi
3146
3147else
3148
3149 LINE=`grep "wxUSE_LIBGNOMEPRINT" ${wx_arg_cache_file}`
3150 if test "x$LINE" != x ; then
3151 eval "DEFAULT_$LINE"
3152 else
3153 no_cache=1
3154 fi
3155
3156 ac_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT='$DEFAULT_wxUSE_LIBGNOMEPRINT
3157
3158fi;
3159
3160 eval "$ac_cv_use_gnomeprint"
3161 if test "$no_cache" != 1; then
3162 echo $ac_cv_use_gnomeprint >> ${wx_arg_cache_file}.tmp
3163 fi
3164
3165 if test "$wxUSE_LIBGNOMEPRINT" = yes; then
3166 echo "$as_me:$LINENO: result: yes" >&5
3167echo "${ECHO_T}yes" >&6
3168 else
3169 echo "$as_me:$LINENO: result: no" >&5
3170echo "${ECHO_T}no" >&6
3171 fi
3172
3173
1c14217d
VZ
3174 withstring=
3175 echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
3176echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6
a848cd7e
SC
3177 no_cache=0
3178
3179# Check whether --with-opengl or --without-opengl was given.
3180if test "${with_opengl+set}" = set; then
3181 withval="$with_opengl"
3182
3183 if test "$withval" = yes; then
3184 ac_cv_use_opengl='wxUSE_OPENGL=yes'
3185 else
3186 ac_cv_use_opengl='wxUSE_OPENGL=no'
3187 fi
3188
3189else
3190
3191 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
3192 if test "x$LINE" != x ; then
3193 eval "DEFAULT_$LINE"
3194 else
3195 no_cache=1
3196 fi
3197
3198 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
3199
3200fi;
3201
3202 eval "$ac_cv_use_opengl"
3203 if test "$no_cache" != 1; then
3204 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
3205 fi
3206
3207 if test "$wxUSE_OPENGL" = yes; then
3208 echo "$as_me:$LINENO: result: yes" >&5
3209echo "${ECHO_T}yes" >&6
3210 else
3211 echo "$as_me:$LINENO: result: no" >&5
3212echo "${ECHO_T}no" >&6
3213 fi
3214
3215
3216fi
3217
3218
1c14217d
VZ
3219 withstring=
3220 echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
3221echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6
a848cd7e
SC
3222 no_cache=0
3223
3224# Check whether --with-dmalloc or --without-dmalloc was given.
3225if test "${with_dmalloc+set}" = set; then
3226 withval="$with_dmalloc"
3227
3228 if test "$withval" = yes; then
3229 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
3230 else
3231 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
3232 fi
3233
3234else
3235
3236 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
3237 if test "x$LINE" != x ; then
3238 eval "DEFAULT_$LINE"
3239 else
3240 no_cache=1
3241 fi
3242
3243 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
3244
3245fi;
3246
3247 eval "$ac_cv_use_dmalloc"
3248 if test "$no_cache" != 1; then
3249 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
3250 fi
3251
3252 if test "$wxUSE_DMALLOC" = yes; then
3253 echo "$as_me:$LINENO: result: yes" >&5
3254echo "${ECHO_T}yes" >&6
3255 else
3256 echo "$as_me:$LINENO: result: no" >&5
3257echo "${ECHO_T}no" >&6
3258 fi
3259
3260
3261 echo "$as_me:$LINENO: checking for --with-regex" >&5
3262echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3263 no_cache=0
3264
3265# Check whether --with-regex or --without-regex was given.
3266if test "${with_regex+set}" = set; then
3267 withval="$with_regex"
3268
3269 if test "$withval" = yes; then
3270 ac_cv_use_regex='wxUSE_REGEX=yes'
3271 elif test "$withval" = no; then
3272 ac_cv_use_regex='wxUSE_REGEX=no'
3273 elif test "$withval" = sys; then
3274 ac_cv_use_regex='wxUSE_REGEX=sys'
3275 elif test "$withval" = builtin; then
3276 ac_cv_use_regex='wxUSE_REGEX=builtin'
3277 else
3278 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3279echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3280 { (exit 1); exit 1; }; }
3281 fi
3282
3283else
3284
3285 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3286 if test "x$LINE" != x ; then
3287 eval "DEFAULT_$LINE"
3288 else
3289 no_cache=1
3290 fi
3291
3292 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3293
3294fi;
3295
3296 eval "$ac_cv_use_regex"
3297 if test "$no_cache" != 1; then
3298 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3299 fi
3300
3301 if test "$wxUSE_REGEX" = yes; then
3302 echo "$as_me:$LINENO: result: yes" >&5
3303echo "${ECHO_T}yes" >&6
3304 elif test "$wxUSE_REGEX" = no; then
3305 echo "$as_me:$LINENO: result: no" >&5
3306echo "${ECHO_T}no" >&6
3307 elif test "$wxUSE_REGEX" = sys; then
3308 echo "$as_me:$LINENO: result: system version" >&5
3309echo "${ECHO_T}system version" >&6
3310 elif test "$wxUSE_REGEX" = builtin; then
3311 echo "$as_me:$LINENO: result: builtin version" >&5
3312echo "${ECHO_T}builtin version" >&6
3313 else
3314 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3315echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3316 { (exit 1); exit 1; }; }
3317 fi
3318
3319
3320 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3321echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
3322 no_cache=0
3323
3324# Check whether --with-zlib or --without-zlib was given.
3325if test "${with_zlib+set}" = set; then
3326 withval="$with_zlib"
3327
3328 if test "$withval" = yes; then
3329 ac_cv_use_zlib='wxUSE_ZLIB=yes'
3330 elif test "$withval" = no; then
3331 ac_cv_use_zlib='wxUSE_ZLIB=no'
3332 elif test "$withval" = sys; then
3333 ac_cv_use_zlib='wxUSE_ZLIB=sys'
3334 elif test "$withval" = builtin; then
3335 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
3336 else
3337 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3338echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3339 { (exit 1); exit 1; }; }
3340 fi
3341
3342else
3343
3344 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
3345 if test "x$LINE" != x ; then
3346 eval "DEFAULT_$LINE"
3347 else
3348 no_cache=1
3349 fi
3350
3351 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
3352
3353fi;
3354
3355 eval "$ac_cv_use_zlib"
3356 if test "$no_cache" != 1; then
3357 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
3358 fi
3359
3360 if test "$wxUSE_ZLIB" = yes; then
3361 echo "$as_me:$LINENO: result: yes" >&5
3362echo "${ECHO_T}yes" >&6
3363 elif test "$wxUSE_ZLIB" = no; then
3364 echo "$as_me:$LINENO: result: no" >&5
3365echo "${ECHO_T}no" >&6
3366 elif test "$wxUSE_ZLIB" = sys; then
3367 echo "$as_me:$LINENO: result: system version" >&5
3368echo "${ECHO_T}system version" >&6
3369 elif test "$wxUSE_ZLIB" = builtin; then
3370 echo "$as_me:$LINENO: result: builtin version" >&5
3371echo "${ECHO_T}builtin version" >&6
3372 else
3373 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3374echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3375 { (exit 1); exit 1; }; }
3376 fi
3377
3378
3379 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3380echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
3381 no_cache=0
3382
3383# Check whether --with-odbc or --without-odbc was given.
3384if test "${with_odbc+set}" = set; then
3385 withval="$with_odbc"
3386
3387 if test "$withval" = yes; then
3388 ac_cv_use_odbc='wxUSE_ODBC=yes'
3389 elif test "$withval" = no; then
3390 ac_cv_use_odbc='wxUSE_ODBC=no'
3391 elif test "$withval" = sys; then
3392 ac_cv_use_odbc='wxUSE_ODBC=sys'
3393 elif test "$withval" = builtin; then
3394 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3395 else
3396 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3397echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3398 { (exit 1); exit 1; }; }
3399 fi
3400
3401else
3402
3403 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3404 if test "x$LINE" != x ; then
3405 eval "DEFAULT_$LINE"
3406 else
3407 no_cache=1
3408 fi
3409
3410 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
3411
3412fi;
3413
3414 eval "$ac_cv_use_odbc"
3415 if test "$no_cache" != 1; then
3416 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3417 fi
3418
3419 if test "$wxUSE_ODBC" = yes; then
3420 echo "$as_me:$LINENO: result: yes" >&5
3421echo "${ECHO_T}yes" >&6
3422 elif test "$wxUSE_ODBC" = no; then
3423 echo "$as_me:$LINENO: result: no" >&5
3424echo "${ECHO_T}no" >&6
3425 elif test "$wxUSE_ODBC" = sys; then
3426 echo "$as_me:$LINENO: result: system version" >&5
3427echo "${ECHO_T}system version" >&6
3428 elif test "$wxUSE_ODBC" = builtin; then
3429 echo "$as_me:$LINENO: result: builtin version" >&5
3430echo "${ECHO_T}builtin version" >&6
3431 else
3432 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3433echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3434 { (exit 1); exit 1; }; }
3435 fi
3436
3437
3438 echo "$as_me:$LINENO: checking for --with-expat" >&5
3439echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3440 no_cache=0
3441
3442# Check whether --with-expat or --without-expat was given.
3443if test "${with_expat+set}" = set; then
3444 withval="$with_expat"
3445
3446 if test "$withval" = yes; then
3447 ac_cv_use_expat='wxUSE_EXPAT=yes'
3448 elif test "$withval" = no; then
3449 ac_cv_use_expat='wxUSE_EXPAT=no'
3450 elif test "$withval" = sys; then
3451 ac_cv_use_expat='wxUSE_EXPAT=sys'
3452 elif test "$withval" = builtin; then
3453 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3454 else
3455 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3456echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3457 { (exit 1); exit 1; }; }
3458 fi
3459
3460else
3461
3462 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3463 if test "x$LINE" != x ; then
3464 eval "DEFAULT_$LINE"
3465 else
3466 no_cache=1
3467 fi
3468
3469 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3470
3471fi;
3472
3473 eval "$ac_cv_use_expat"
3474 if test "$no_cache" != 1; then
3475 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3476 fi
3477
3478 if test "$wxUSE_EXPAT" = yes; then
3479 echo "$as_me:$LINENO: result: yes" >&5
3480echo "${ECHO_T}yes" >&6
3481 elif test "$wxUSE_EXPAT" = no; then
3482 echo "$as_me:$LINENO: result: no" >&5
3483echo "${ECHO_T}no" >&6
3484 elif test "$wxUSE_EXPAT" = sys; then
3485 echo "$as_me:$LINENO: result: system version" >&5
3486echo "${ECHO_T}system version" >&6
3487 elif test "$wxUSE_EXPAT" = builtin; then
3488 echo "$as_me:$LINENO: result: builtin version" >&5
3489echo "${ECHO_T}builtin version" >&6
3490 else
3491 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3492echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3493 { (exit 1); exit 1; }; }
3494 fi
3495
3496
3497
3498
3499 enablestring=
3500 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3501echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
3502 no_cache=0
3503 # Check whether --enable-shared or --disable-shared was given.
3504if test "${enable_shared+set}" = set; then
3505 enableval="$enable_shared"
3506
3507 if test "$enableval" = yes; then
3508 ac_cv_use_shared='wxUSE_SHARED=yes'
3509 else
3510 ac_cv_use_shared='wxUSE_SHARED=no'
3511 fi
3512
3513else
3514
3515 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3516 if test "x$LINE" != x ; then
3517 eval "DEFAULT_$LINE"
3518 else
3519 no_cache=1
3520 fi
3521
3522 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
3523
3524fi;
3525
3526 eval "$ac_cv_use_shared"
3527 if test "$no_cache" != 1; then
3528 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3529 fi
3530
3531 if test "$wxUSE_SHARED" = yes; then
3532 echo "$as_me:$LINENO: result: yes" >&5
3533echo "${ECHO_T}yes" >&6
3534 else
3535 echo "$as_me:$LINENO: result: no" >&5
3536echo "${ECHO_T}no" >&6
3537 fi
3538
3539
3540 enablestring=
3541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3542echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
3543 no_cache=0
3544 # Check whether --enable-optimise or --disable-optimise was given.
3545if test "${enable_optimise+set}" = set; then
3546 enableval="$enable_optimise"
3547
3548 if test "$enableval" = yes; then
3549 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3550 else
3551 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3552 fi
3553
3554else
3555
3556 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3557 if test "x$LINE" != x ; then
3558 eval "DEFAULT_$LINE"
3559 else
3560 no_cache=1
3561 fi
3562
3563 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
3564
3565fi;
3566
3567 eval "$ac_cv_use_optimise"
3568 if test "$no_cache" != 1; then
3569 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3570 fi
3571
3572 if test "$wxUSE_OPTIMISE" = yes; then
3573 echo "$as_me:$LINENO: result: yes" >&5
3574echo "${ECHO_T}yes" >&6
3575 else
3576 echo "$as_me:$LINENO: result: no" >&5
3577echo "${ECHO_T}no" >&6
3578 fi
3579
3580
3581 enablestring=
3582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3583echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
3584 no_cache=0
3585 # Check whether --enable-debug or --disable-debug was given.
3586if test "${enable_debug+set}" = set; then
3587 enableval="$enable_debug"
3588
3589 if test "$enableval" = yes; then
3590 ac_cv_use_debug='wxUSE_DEBUG=yes'
3591 else
3592 ac_cv_use_debug='wxUSE_DEBUG=no'
3593 fi
3594
3595else
3596
3597 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3598 if test "x$LINE" != x ; then
3599 eval "DEFAULT_$LINE"
3600 else
3601 no_cache=1
3602 fi
3603
3604 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
3605
3606fi;
3607
3608 eval "$ac_cv_use_debug"
3609 if test "$no_cache" != 1; then
3610 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3611 fi
3612
3613 if test "$wxUSE_DEBUG" = yes; then
3614 echo "$as_me:$LINENO: result: yes" >&5
3615echo "${ECHO_T}yes" >&6
3616 else
3617 echo "$as_me:$LINENO: result: no" >&5
3618echo "${ECHO_T}no" >&6
3619 fi
3620
3621
3622 enablestring=
3623 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3624echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3625 no_cache=0
3626 # Check whether --enable-stl or --disable-stl was given.
3627if test "${enable_stl+set}" = set; then
3628 enableval="$enable_stl"
3629
3630 if test "$enableval" = yes; then
3631 ac_cv_use_stl='wxUSE_STL=yes'
3632 else
3633 ac_cv_use_stl='wxUSE_STL=no'
3634 fi
3635
3636else
3637
3638 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3639 if test "x$LINE" != x ; then
3640 eval "DEFAULT_$LINE"
3641 else
3642 no_cache=1
3643 fi
3644
3645 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3646
3647fi;
3648
3649 eval "$ac_cv_use_stl"
3650 if test "$no_cache" != 1; then
3651 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3652 fi
3653
3654 if test "$wxUSE_STL" = yes; then
3655 echo "$as_me:$LINENO: result: yes" >&5
3656echo "${ECHO_T}yes" >&6
3657 else
3658 echo "$as_me:$LINENO: result: no" >&5
3659echo "${ECHO_T}no" >&6
3660 fi
3661
3662if test "$USE_OS2" = "1"; then
69120ee4 3663 DEFAULT_wxUSE_OMF=no
a848cd7e
SC
3664
3665 enablestring=
3666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
3667echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6
3668 no_cache=0
3669 # Check whether --enable-omf or --disable-omf was given.
3670if test "${enable_omf+set}" = set; then
3671 enableval="$enable_omf"
3672
3673 if test "$enableval" = yes; then
3674 ac_cv_use_omf='wxUSE_OMF=yes'
3675 else
3676 ac_cv_use_omf='wxUSE_OMF=no'
3677 fi
3678
3679else
3680
3681 LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}`
3682 if test "x$LINE" != x ; then
3683 eval "DEFAULT_$LINE"
3684 else
3685 no_cache=1
3686 fi
3687
3688 ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF
3689
3690fi;
3691
3692 eval "$ac_cv_use_omf"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_OMF" = yes; then
3698 echo "$as_me:$LINENO: result: yes" >&5
3699echo "${ECHO_T}yes" >&6
3700 else
3701 echo "$as_me:$LINENO: result: no" >&5
3702echo "${ECHO_T}no" >&6
3703 fi
3704
3705fi
3706
3707if test "$wxUSE_DEBUG" = "yes"; then
3708 DEFAULT_wxUSE_DEBUG_FLAG=yes
3709 DEFAULT_wxUSE_DEBUG_INFO=yes
3710 BUILD=debug
3711elif test "$wxUSE_DEBUG" = "no"; then
3712 DEFAULT_wxUSE_DEBUG_FLAG=no
3713 DEFAULT_wxUSE_DEBUG_INFO=no
3714 BUILD=release
3715fi
3716
3717
3718 enablestring=
3719 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3720echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
3721 no_cache=0
3722 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3723if test "${enable_debug_flag+set}" = set; then
3724 enableval="$enable_debug_flag"
3725
3726 if test "$enableval" = yes; then
3727 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3728 else
3729 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3730 fi
3731
3732else
3733
3734 LINE=`grep "wxUSE_DEBUG_FLAG" ${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_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
3742
3743fi;
3744
3745 eval "$ac_cv_use_debug_flag"
3746 if test "$no_cache" != 1; then
3747 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3748 fi
3749
3750 if test "$wxUSE_DEBUG_FLAG" = 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_info" >&5
3761echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
3762 no_cache=0
3763 # Check whether --enable-debug_info or --disable-debug_info was given.
3764if test "${enable_debug_info+set}" = set; then
3765 enableval="$enable_debug_info"
3766
3767 if test "$enableval" = yes; then
3768 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3769 else
3770 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3771 fi
3772
3773else
3774
3775 LINE=`grep "wxUSE_DEBUG_INFO" ${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_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
3783
3784fi;
3785
3786 eval "$ac_cv_use_debug_info"
3787 if test "$no_cache" != 1; then
3788 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3789 fi
3790
3791 if test "$wxUSE_DEBUG_INFO" = 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_gdb" >&5
3802echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
3803 no_cache=0
3804 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3805if test "${enable_debug_gdb+set}" = set; then
3806 enableval="$enable_debug_gdb"
3807
3808 if test "$enableval" = yes; then
3809 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3810 else
3811 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3812 fi
3813
3814else
3815
3816 LINE=`grep "wxUSE_DEBUG_GDB" ${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_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
3824
3825fi;
3826
3827 eval "$ac_cv_use_debug_gdb"
3828 if test "$no_cache" != 1; then
3829 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3830 fi
3831
3832 if test "$wxUSE_DEBUG_GDB" = 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}-debug_cntxt" >&5
3843echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
3844 no_cache=0
3845 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3846if test "${enable_debug_cntxt+set}" = set; then
3847 enableval="$enable_debug_cntxt"
3848
3849 if test "$enableval" = yes; then
3850 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3851 else
3852 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3853 fi
3854
3855else
3856
3857 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${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_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
3865
3866fi;
3867
3868 eval "$ac_cv_use_debug_cntxt"
3869 if test "$no_cache" != 1; then
3870 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3871 fi
3872
3873 if test "$wxUSE_DEBUG_CONTEXT" = 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}-mem_tracing" >&5
3884echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
3885 no_cache=0
3886 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3887if test "${enable_mem_tracing+set}" = set; then
3888 enableval="$enable_mem_tracing"
3889
3890 if test "$enableval" = yes; then
3891 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3892 else
3893 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3894 fi
3895
3896else
3897
3898 LINE=`grep "wxUSE_MEM_TRACING" ${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_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
3906
3907fi;
3908
3909 eval "$ac_cv_use_mem_tracing"
3910 if test "$no_cache" != 1; then
3911 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3912 fi
3913
3914 if test "$wxUSE_MEM_TRACING" = 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}-profile" >&5
3925echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
3926 no_cache=0
3927 # Check whether --enable-profile or --disable-profile was given.
3928if test "${enable_profile+set}" = set; then
3929 enableval="$enable_profile"
3930
3931 if test "$enableval" = yes; then
3932 ac_cv_use_profile='wxUSE_PROFILE=yes'
3933 else
3934 ac_cv_use_profile='wxUSE_PROFILE=no'
3935 fi
3936
3937else
3938
3939 LINE=`grep "wxUSE_PROFILE" ${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_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
3947
3948fi;
3949
3950 eval "$ac_cv_use_profile"
3951 if test "$no_cache" != 1; then
3952 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3953 fi
3954
3955 if test "$wxUSE_PROFILE" = 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_rtti" >&5
3966echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
3967 no_cache=0
3968 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3969if test "${enable_no_rtti+set}" = set; then
3970 enableval="$enable_no_rtti"
3971
3972 if test "$enableval" = yes; then
3973 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3974 else
3975 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3976 fi
3977
3978else
3979
3980 LINE=`grep "wxUSE_NO_RTTI" ${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_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
3988
3989fi;
3990
3991 eval "$ac_cv_use_no_rtti"
3992 if test "$no_cache" != 1; then
3993 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3994 fi
3995
3996 if test "$wxUSE_NO_RTTI" = 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}-no_exceptions" >&5
4007echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
4008 no_cache=0
4009 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
4010if test "${enable_no_exceptions+set}" = set; then
4011 enableval="$enable_no_exceptions"
4012
4013 if test "$enableval" = yes; then
4014 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
4015 else
4016 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
4017 fi
4018
4019else
4020
4021 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${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_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
4029
4030fi;
4031
4032 eval "$ac_cv_use_no_exceptions"
4033 if test "$no_cache" != 1; then
4034 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
4035 fi
4036
4037 if test "$wxUSE_NO_EXCEPTIONS" = 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}-permissive" >&5
4048echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
4049 no_cache=0
4050 # Check whether --enable-permissive or --disable-permissive was given.
4051if test "${enable_permissive+set}" = set; then
4052 enableval="$enable_permissive"
4053
4054 if test "$enableval" = yes; then
4055 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
4056 else
4057 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
4058 fi
4059
4060else
4061
4062 LINE=`grep "wxUSE_PERMISSIVE" ${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_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
4070
4071fi;
4072
4073 eval "$ac_cv_use_permissive"
4074 if test "$no_cache" != 1; then
4075 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
4076 fi
4077
4078 if test "$wxUSE_PERMISSIVE" = 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 enablestring=
4088 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
4089echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
4090 no_cache=0
4091 # Check whether --enable-no_deps or --disable-no_deps was given.
4092if test "${enable_no_deps+set}" = set; then
4093 enableval="$enable_no_deps"
4094
4095 if test "$enableval" = yes; then
4096 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
4097 else
4098 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
4099 fi
4100
4101else
4102
4103 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
4104 if test "x$LINE" != x ; then
4105 eval "DEFAULT_$LINE"
4106 else
4107 no_cache=1
4108 fi
4109
4110 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
4111
4112fi;
4113
4114 eval "$ac_cv_use_no_deps"
4115 if test "$no_cache" != 1; then
4116 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
4117 fi
4118
4119 if test "$wxUSE_NO_DEPS" = yes; then
4120 echo "$as_me:$LINENO: result: yes" >&5
4121echo "${ECHO_T}yes" >&6
4122 else
4123 echo "$as_me:$LINENO: result: no" >&5
4124echo "${ECHO_T}no" >&6
4125 fi
4126
4127
4128
dee1a63f
MB
4129 enablestring=enable
4130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4131echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
a848cd7e 4132 no_cache=0
dee1a63f
MB
4133 # Check whether --enable-compat24 or --disable-compat24 was given.
4134if test "${enable_compat24+set}" = set; then
4135 enableval="$enable_compat24"
a848cd7e
SC
4136
4137 if test "$enableval" = yes; then
dee1a63f 4138 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
a848cd7e 4139 else
dee1a63f 4140 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
a848cd7e
SC
4141 fi
4142
4143else
4144
dee1a63f 4145 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
a848cd7e
SC
4146 if test "x$LINE" != x ; then
4147 eval "DEFAULT_$LINE"
4148 else
4149 no_cache=1
4150 fi
4151
dee1a63f 4152 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
a848cd7e
SC
4153
4154fi;
4155
dee1a63f 4156 eval "$ac_cv_use_compat24"
a848cd7e 4157 if test "$no_cache" != 1; then
dee1a63f 4158 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4159 fi
4160
dee1a63f 4161 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
a848cd7e
SC
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
4170 enablestring=disable
dee1a63f
MB
4171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
4172echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6
a848cd7e 4173 no_cache=0
dee1a63f
MB
4174 # Check whether --enable-compat26 or --disable-compat26 was given.
4175if test "${enable_compat26+set}" = set; then
4176 enableval="$enable_compat26"
a848cd7e
SC
4177
4178 if test "$enableval" = yes; then
dee1a63f 4179 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
a848cd7e 4180 else
dee1a63f 4181 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
a848cd7e
SC
4182 fi
4183
4184else
4185
dee1a63f 4186 LINE=`grep "WXWIN_COMPATIBILITY_2_6" ${wx_arg_cache_file}`
a848cd7e
SC
4187 if test "x$LINE" != x ; then
4188 eval "DEFAULT_$LINE"
4189 else
4190 no_cache=1
4191 fi
4192
dee1a63f 4193 ac_cv_use_compat26='WXWIN_COMPATIBILITY_2_6='$DEFAULT_WXWIN_COMPATIBILITY_2_6
a848cd7e
SC
4194
4195fi;
4196
dee1a63f 4197 eval "$ac_cv_use_compat26"
a848cd7e 4198 if test "$no_cache" != 1; then
dee1a63f 4199 echo $ac_cv_use_compat26 >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4200 fi
4201
dee1a63f 4202 if test "$WXWIN_COMPATIBILITY_2_6" = yes; then
a848cd7e
SC
4203 echo "$as_me:$LINENO: result: yes" >&5
4204echo "${ECHO_T}yes" >&6
4205 else
4206 echo "$as_me:$LINENO: result: no" >&5
4207echo "${ECHO_T}no" >&6
4208 fi
4209
4210
ffa0583f
RL
4211
4212 enablestring=
4213 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
4214echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6
4215 no_cache=0
4216 # Check whether --enable-rpath or --disable-rpath was given.
a848cd7e
SC
4217if test "${enable_rpath+set}" = set; then
4218 enableval="$enable_rpath"
ffa0583f
RL
4219
4220 if test "$enableval" = yes; then
4221 ac_cv_use_rpath='wxUSE_RPATH=yes'
4222 else
4223 ac_cv_use_rpath='wxUSE_RPATH=no'
4224 fi
4225
4226else
4227
4228 LINE=`grep "wxUSE_RPATH" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_rpath='wxUSE_RPATH='$DEFAULT_wxUSE_RPATH
4236
a848cd7e
SC
4237fi;
4238
ffa0583f
RL
4239 eval "$ac_cv_use_rpath"
4240 if test "$no_cache" != 1; then
4241 echo $ac_cv_use_rpath >> ${wx_arg_cache_file}.tmp
4242 fi
4243
4244 if test "$wxUSE_RPATH" = yes; then
4245 echo "$as_me:$LINENO: result: yes" >&5
4246echo "${ECHO_T}yes" >&6
4247 else
4248 echo "$as_me:$LINENO: result: no" >&5
4249echo "${ECHO_T}no" >&6
4250 fi
4251
a848cd7e
SC
4252
4253
4254
4255
4256 enablestring=
4257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4258echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
4259 no_cache=0
4260 # Check whether --enable-intl or --disable-intl was given.
4261if test "${enable_intl+set}" = set; then
4262 enableval="$enable_intl"
4263
4264 if test "$enableval" = yes; then
4265 ac_cv_use_intl='wxUSE_INTL=yes'
4266 else
4267 ac_cv_use_intl='wxUSE_INTL=no'
4268 fi
4269
4270else
4271
4272 LINE=`grep "wxUSE_INTL" ${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_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
4280
4281fi;
4282
4283 eval "$ac_cv_use_intl"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_INTL" = 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 enablestring=
4298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4299echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
4300 no_cache=0
4301 # Check whether --enable-config or --disable-config was given.
4302if test "${enable_config+set}" = set; then
4303 enableval="$enable_config"
4304
4305 if test "$enableval" = yes; then
4306 ac_cv_use_config='wxUSE_CONFIG=yes'
4307 else
4308 ac_cv_use_config='wxUSE_CONFIG=no'
4309 fi
4310
4311else
4312
4313 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4314 if test "x$LINE" != x ; then
4315 eval "DEFAULT_$LINE"
4316 else
4317 no_cache=1
4318 fi
4319
4320 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
4321
4322fi;
4323
4324 eval "$ac_cv_use_config"
4325 if test "$no_cache" != 1; then
4326 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4327 fi
4328
4329 if test "$wxUSE_CONFIG" = yes; then
4330 echo "$as_me:$LINENO: result: yes" >&5
4331echo "${ECHO_T}yes" >&6
4332 else
4333 echo "$as_me:$LINENO: result: no" >&5
4334echo "${ECHO_T}no" >&6
4335 fi
4336
4337
4338
4339 enablestring=
4340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4341echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
4342 no_cache=0
4343 # Check whether --enable-protocols or --disable-protocols was given.
4344if test "${enable_protocols+set}" = set; then
4345 enableval="$enable_protocols"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4349 else
4350 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4351 fi
4352
4353else
4354
4355 LINE=`grep "wxUSE_PROTOCOL" ${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_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4363
4364fi;
4365
4366 eval "$ac_cv_use_protocols"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_PROTOCOL" = 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}-ftp" >&5
4382echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
4383 no_cache=0
4384 # Check whether --enable-ftp or --disable-ftp was given.
4385if test "${enable_ftp+set}" = set; then
4386 enableval="$enable_ftp"
4387
4388 if test "$enableval" = yes; then
4389 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4390 else
4391 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4392 fi
4393
4394else
4395
4396 LINE=`grep "wxUSE_PROTOCOL_FTP" ${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_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4404
4405fi;
4406
4407 eval "$ac_cv_use_ftp"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_PROTOCOL_FTP" = 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}-http" >&5
4423echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
4424 no_cache=0
4425 # Check whether --enable-http or --disable-http was given.
4426if test "${enable_http+set}" = set; then
4427 enableval="$enable_http"
4428
4429 if test "$enableval" = yes; then
4430 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4431 else
4432 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4433 fi
4434
4435else
4436
4437 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${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_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4445
4446fi;
4447
4448 eval "$ac_cv_use_http"
4449 if test "$no_cache" != 1; then
4450 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4451 fi
4452
4453 if test "$wxUSE_PROTOCOL_HTTP" = 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}-fileproto" >&5
4464echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
4465 no_cache=0
4466 # Check whether --enable-fileproto or --disable-fileproto was given.
4467if test "${enable_fileproto+set}" = set; then
4468 enableval="$enable_fileproto"
4469
4470 if test "$enableval" = yes; then
4471 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4472 else
4473 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4474 fi
4475
4476else
4477
4478 LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4486
4487fi;
4488
4489 eval "$ac_cv_use_fileproto"
4490 if test "$no_cache" != 1; then
4491 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4492 fi
4493
4494 if test "$wxUSE_PROTOCOL_FILE" = 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}-sockets" >&5
4505echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
4506 no_cache=0
4507 # Check whether --enable-sockets or --disable-sockets was given.
4508if test "${enable_sockets+set}" = set; then
4509 enableval="$enable_sockets"
4510
4511 if test "$enableval" = yes; then
4512 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4513 else
4514 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4515 fi
4516
4517else
4518
4519 LINE=`grep "wxUSE_SOCKETS" ${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_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
4527
4528fi;
4529
4530 eval "$ac_cv_use_sockets"
4531 if test "$no_cache" != 1; then
4532 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4533 fi
4534
4535 if test "$wxUSE_SOCKETS" = 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}-ole" >&5
4546echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
4547 no_cache=0
4548 # Check whether --enable-ole or --disable-ole was given.
4549if test "${enable_ole+set}" = set; then
4550 enableval="$enable_ole"
4551
4552 if test "$enableval" = yes; then
4553 ac_cv_use_ole='wxUSE_OLE=yes'
4554 else
4555 ac_cv_use_ole='wxUSE_OLE=no'
4556 fi
4557
4558else
4559
4560 LINE=`grep "wxUSE_OLE" ${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_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
4568
4569fi;
4570
4571 eval "$ac_cv_use_ole"
4572 if test "$no_cache" != 1; then
4573 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4574 fi
4575
4576 if test "$wxUSE_OLE" = 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 enablestring=
4586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4587echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
4588 no_cache=0
4589 # Check whether --enable-dataobj or --disable-dataobj was given.
4590if test "${enable_dataobj+set}" = set; then
4591 enableval="$enable_dataobj"
4592
4593 if test "$enableval" = yes; then
4594 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4595 else
4596 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4597 fi
4598
4599else
4600
4601 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4602 if test "x$LINE" != x ; then
4603 eval "DEFAULT_$LINE"
4604 else
4605 no_cache=1
4606 fi
4607
4608 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
4609
4610fi;
4611
4612 eval "$ac_cv_use_dataobj"
4613 if test "$no_cache" != 1; then
4614 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4615 fi
4616
4617 if test "$wxUSE_DATAOBJ" = yes; then
4618 echo "$as_me:$LINENO: result: yes" >&5
4619echo "${ECHO_T}yes" >&6
4620 else
4621 echo "$as_me:$LINENO: result: no" >&5
4622echo "${ECHO_T}no" >&6
4623 fi
4624
4625
4626
4627 enablestring=
4628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4629echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
4630 no_cache=0
4631 # Check whether --enable-ipc or --disable-ipc was given.
4632if test "${enable_ipc+set}" = set; then
4633 enableval="$enable_ipc"
4634
4635 if test "$enableval" = yes; then
4636 ac_cv_use_ipc='wxUSE_IPC=yes'
4637 else
4638 ac_cv_use_ipc='wxUSE_IPC=no'
4639 fi
4640
4641else
4642
4643 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
4644 if test "x$LINE" != x ; then
4645 eval "DEFAULT_$LINE"
4646 else
4647 no_cache=1
4648 fi
4649
4650 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
4651
4652fi;
4653
4654 eval "$ac_cv_use_ipc"
4655 if test "$no_cache" != 1; then
4656 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
4657 fi
4658
4659 if test "$wxUSE_IPC" = yes; then
4660 echo "$as_me:$LINENO: result: yes" >&5
4661echo "${ECHO_T}yes" >&6
4662 else
4663 echo "$as_me:$LINENO: result: no" >&5
4664echo "${ECHO_T}no" >&6
4665 fi
4666
4667
4668
4669 enablestring=
4670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4671echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
4672 no_cache=0
4673 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4674if test "${enable_apple_ieee+set}" = set; then
4675 enableval="$enable_apple_ieee"
4676
4677 if test "$enableval" = yes; then
4678 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
4679 else
4680 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
4681 fi
4682
4683else
4684
4685 LINE=`grep "wxUSE_APPLE_IEEE" ${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_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
4693
4694fi;
4695
4696 eval "$ac_cv_use_apple_ieee"
4697 if test "$no_cache" != 1; then
4698 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
4699 fi
4700
4701 if test "$wxUSE_APPLE_IEEE" = 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
81f90336
MW
4710 enablestring=
4711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
4712echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6
4713 no_cache=0
4714 # Check whether --enable-arcstream or --disable-arcstream was given.
4715if test "${enable_arcstream+set}" = set; then
4716 enableval="$enable_arcstream"
4717
4718 if test "$enableval" = yes; then
9e8e867f 4719 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
81f90336 4720 else
9e8e867f 4721 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
81f90336
MW
4722 fi
4723
4724else
4725
9e8e867f 4726 LINE=`grep "wxUSE_ARCHIVE_STREAMS" ${wx_arg_cache_file}`
81f90336
MW
4727 if test "x$LINE" != x ; then
4728 eval "DEFAULT_$LINE"
4729 else
4730 no_cache=1
4731 fi
4732
9e8e867f 4733 ac_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS='$DEFAULT_wxUSE_ARCHIVE_STREAMS
81f90336
MW
4734
4735fi;
4736
4737 eval "$ac_cv_use_arcstream"
4738 if test "$no_cache" != 1; then
4739 echo $ac_cv_use_arcstream >> ${wx_arg_cache_file}.tmp
4740 fi
4741
9e8e867f 4742 if test "$wxUSE_ARCHIVE_STREAMS" = yes; then
81f90336
MW
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 4751 enablestring=
36b6448c
VZ
4752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
4753echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6
a848cd7e 4754 no_cache=0
36b6448c
VZ
4755 # Check whether --enable-backtrace or --disable-backtrace was given.
4756if test "${enable_backtrace+set}" = set; then
4757 enableval="$enable_backtrace"
a848cd7e
SC
4758
4759 if test "$enableval" = yes; then
36b6448c 4760 ac_cv_use_backtrace='wxUSE_STACKWALKER=yes'
a848cd7e 4761 else
36b6448c 4762 ac_cv_use_backtrace='wxUSE_STACKWALKER=no'
a848cd7e
SC
4763 fi
4764
4765else
4766
36b6448c 4767 LINE=`grep "wxUSE_STACKWALKER" ${wx_arg_cache_file}`
a848cd7e
SC
4768 if test "x$LINE" != x ; then
4769 eval "DEFAULT_$LINE"
4770 else
4771 no_cache=1
4772 fi
4773
36b6448c 4774 ac_cv_use_backtrace='wxUSE_STACKWALKER='$DEFAULT_wxUSE_STACKWALKER
a848cd7e
SC
4775
4776fi;
4777
36b6448c 4778 eval "$ac_cv_use_backtrace"
a848cd7e 4779 if test "$no_cache" != 1; then
36b6448c 4780 echo $ac_cv_use_backtrace >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
4781 fi
4782
36b6448c 4783 if test "$wxUSE_STACKWALKER" = yes; then
a848cd7e
SC
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
eaff0f0d 4792 enablestring=
36b6448c
VZ
4793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4794echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
eaff0f0d 4795 no_cache=0
36b6448c
VZ
4796 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4797if test "${enable_catch_segvs+set}" = set; then
4798 enableval="$enable_catch_segvs"
eaff0f0d
VZ
4799
4800 if test "$enableval" = yes; then
36b6448c 4801 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
eaff0f0d 4802 else
36b6448c 4803 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
eaff0f0d
VZ
4804 fi
4805
4806else
4807
36b6448c 4808 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
eaff0f0d
VZ
4809 if test "x$LINE" != x ; then
4810 eval "DEFAULT_$LINE"
4811 else
4812 no_cache=1
4813 fi
4814
36b6448c 4815 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
eaff0f0d
VZ
4816
4817fi;
4818
36b6448c 4819 eval "$ac_cv_use_catch_segvs"
eaff0f0d 4820 if test "$no_cache" != 1; then
36b6448c 4821 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
eaff0f0d
VZ
4822 fi
4823
36b6448c 4824 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
eaff0f0d
VZ
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
a848cd7e
SC
4833 enablestring=
4834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4835echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
4836 no_cache=0
4837 # Check whether --enable-cmdline or --disable-cmdline was given.
4838if test "${enable_cmdline+set}" = set; then
4839 enableval="$enable_cmdline"
4840
4841 if test "$enableval" = yes; then
4842 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
4843 else
4844 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
4845 fi
4846
4847else
4848
4849 LINE=`grep "wxUSE_CMDLINE_PARSER" ${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_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
4857
4858fi;
4859
4860 eval "$ac_cv_use_cmdline"
4861 if test "$no_cache" != 1; then
4862 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
4863 fi
4864
4865 if test "$wxUSE_CMDLINE_PARSER" = 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}-datetime" >&5
4876echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
4877 no_cache=0
4878 # Check whether --enable-datetime or --disable-datetime was given.
4879if test "${enable_datetime+set}" = set; then
4880 enableval="$enable_datetime"
4881
4882 if test "$enableval" = yes; then
4883 ac_cv_use_datetime='wxUSE_DATETIME=yes'
4884 else
4885 ac_cv_use_datetime='wxUSE_DATETIME=no'
4886 fi
4887
4888else
4889
4890 LINE=`grep "wxUSE_DATETIME" ${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_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
4898
4899fi;
4900
4901 eval "$ac_cv_use_datetime"
4902 if test "$no_cache" != 1; then
4903 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
4904 fi
4905
4906 if test "$wxUSE_DATETIME" = 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
36b6448c
VZ
4915 enablestring=
4916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
4917echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6
4918 no_cache=0
4919 # Check whether --enable-debugreport or --disable-debugreport was given.
4920if test "${enable_debugreport+set}" = set; then
4921 enableval="$enable_debugreport"
4922
4923 if test "$enableval" = yes; then
4924 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
4925 else
4926 ac_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
4927 fi
4928
4929else
4930
4931 LINE=`grep "wxUSE_DEBUGREPORT" ${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_debugreport='wxUSE_DEBUGREPORT='$DEFAULT_wxUSE_DEBUGREPORT
4939
4940fi;
4941
4942 eval "$ac_cv_use_debugreport"
4943 if test "$no_cache" != 1; then
4944 echo $ac_cv_use_debugreport >> ${wx_arg_cache_file}.tmp
4945 fi
4946
4947 if test "$wxUSE_DEBUGREPORT" = 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
a848cd7e
SC
4956 enablestring=
4957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4958echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
4959 no_cache=0
4960 # Check whether --enable-dialupman or --disable-dialupman was given.
4961if test "${enable_dialupman+set}" = set; then
4962 enableval="$enable_dialupman"
4963
4964 if test "$enableval" = yes; then
4965 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
4966 else
4967 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
4968 fi
4969
4970else
4971
4972 LINE=`grep "wxUSE_DIALUP_MANAGER" ${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_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
4980
4981fi;
4982
4983 eval "$ac_cv_use_dialupman"
4984 if test "$no_cache" != 1; then
4985 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
4986 fi
4987
4988 if test "$wxUSE_DIALUP_MANAGER" = 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}-dynlib" >&5
4999echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
5000 no_cache=0
5001 # Check whether --enable-dynlib or --disable-dynlib was given.
5002if test "${enable_dynlib+set}" = set; then
5003 enableval="$enable_dynlib"
5004
5005 if test "$enableval" = yes; then
5006 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
5007 else
5008 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
5009 fi
5010
5011else
5012
5013 LINE=`grep "wxUSE_DYNLIB_CLASS" ${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_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5021
5022fi;
5023
5024 eval "$ac_cv_use_dynlib"
5025 if test "$no_cache" != 1; then
5026 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
5027 fi
5028
5029 if test "$wxUSE_DYNLIB_CLASS" = 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}-dynamicloader" >&5
5040echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
5041 no_cache=0
5042 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
5043if test "${enable_dynamicloader+set}" = set; then
5044 enableval="$enable_dynamicloader"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
5048 else
5049 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${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_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
5062
5063fi;
5064
5065 eval "$ac_cv_use_dynamicloader"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_DYNAMIC_LOADER" = 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}-exceptions" >&5
5081echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
5082 no_cache=0
5083 # Check whether --enable-exceptions or --disable-exceptions was given.
5084if test "${enable_exceptions+set}" = set; then
5085 enableval="$enable_exceptions"
5086
5087 if test "$enableval" = yes; then
5088 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
5089 else
5090 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
5091 fi
5092
5093else
5094
5095 LINE=`grep "wxUSE_EXCEPTIONS" ${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_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
5103
5104fi;
5105
5106 eval "$ac_cv_use_exceptions"
5107 if test "$no_cache" != 1; then
5108 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
5109 fi
5110
5111 if test "$wxUSE_EXCEPTIONS" = 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}-ffile" >&5
5122echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
5123 no_cache=0
5124 # Check whether --enable-ffile or --disable-ffile was given.
5125if test "${enable_ffile+set}" = set; then
5126 enableval="$enable_ffile"
5127
5128 if test "$enableval" = yes; then
5129 ac_cv_use_ffile='wxUSE_FFILE=yes'
5130 else
5131 ac_cv_use_ffile='wxUSE_FFILE=no'
5132 fi
5133
5134else
5135
5136 LINE=`grep "wxUSE_FFILE" ${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_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
5144
5145fi;
5146
5147 eval "$ac_cv_use_ffile"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_FFILE" = 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}-file" >&5
5163echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
5164 no_cache=0
5165 # Check whether --enable-file or --disable-file was given.
5166if test "${enable_file+set}" = set; then
5167 enableval="$enable_file"
5168
5169 if test "$enableval" = yes; then
5170 ac_cv_use_file='wxUSE_FILE=yes'
5171 else
5172 ac_cv_use_file='wxUSE_FILE=no'
5173 fi
5174
5175else
5176
5177 LINE=`grep "wxUSE_FILE" ${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_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
5185
5186fi;
5187
5188 eval "$ac_cv_use_file"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_FILE" = 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}-filesystem" >&5
5204echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
5205 no_cache=0
5206 # Check whether --enable-filesystem or --disable-filesystem was given.
5207if test "${enable_filesystem+set}" = set; then
5208 enableval="$enable_filesystem"
5209
5210 if test "$enableval" = yes; then
5211 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
5212 else
5213 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
5214 fi
5215
5216else
5217
5218 LINE=`grep "wxUSE_FILESYSTEM" ${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_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
5226
5227fi;
5228
5229 eval "$ac_cv_use_filesystem"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_FILESYSTEM" = 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}-fontmap" >&5
5245echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
5246 no_cache=0
5247 # Check whether --enable-fontmap or --disable-fontmap was given.
5248if test "${enable_fontmap+set}" = set; then
5249 enableval="$enable_fontmap"
5250
5251 if test "$enableval" = yes; then
5252 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
5253 else
5254 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
5255 fi
5256
5257else
5258
5259 LINE=`grep "wxUSE_FONTMAP" ${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_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
5267
5268fi;
5269
5270 eval "$ac_cv_use_fontmap"
5271 if test "$no_cache" != 1; then
5272 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
5273 fi
5274
5275 if test "$wxUSE_FONTMAP" = 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}-fs_inet" >&5
5286echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
5287 no_cache=0
5288 # Check whether --enable-fs_inet or --disable-fs_inet was given.
5289if test "${enable_fs_inet+set}" = set; then
5290 enableval="$enable_fs_inet"
5291
5292 if test "$enableval" = yes; then
5293 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
5294 else
5295 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
5296 fi
5297
5298else
5299
5300 LINE=`grep "wxUSE_FS_INET" ${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_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
5308
5309fi;
5310
5311 eval "$ac_cv_use_fs_inet"
5312 if test "$no_cache" != 1; then
5313 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
5314 fi
5315
5316 if test "$wxUSE_FS_INET" = 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}-fs_zip" >&5
5327echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
5328 no_cache=0
5329 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5330if test "${enable_fs_zip+set}" = set; then
5331 enableval="$enable_fs_zip"
5332
5333 if test "$enableval" = yes; then
5334 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
5335 else
5336 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
5337 fi
5338
5339else
5340
5341 LINE=`grep "wxUSE_FS_ZIP" ${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_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
5349
5350fi;
5351
5352 eval "$ac_cv_use_fs_zip"
5353 if test "$no_cache" != 1; then
5354 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
5355 fi
5356
5357 if test "$wxUSE_FS_ZIP" = 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}-geometry" >&5
5368echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
5369 no_cache=0
5370 # Check whether --enable-geometry or --disable-geometry was given.
5371if test "${enable_geometry+set}" = set; then
5372 enableval="$enable_geometry"
5373
5374 if test "$enableval" = yes; then
5375 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
5376 else
5377 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
5378 fi
5379
5380else
5381
5382 LINE=`grep "wxUSE_GEOMETRY" ${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_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
5390
5391fi;
5392
5393 eval "$ac_cv_use_geometry"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_GEOMETRY" = 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}-log" >&5
5409echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
5410 no_cache=0
5411 # Check whether --enable-log or --disable-log was given.
5412if test "${enable_log+set}" = set; then
5413 enableval="$enable_log"
5414
5415 if test "$enableval" = yes; then
5416 ac_cv_use_log='wxUSE_LOG=yes'
5417 else
5418 ac_cv_use_log='wxUSE_LOG=no'
5419 fi
5420
5421else
5422
5423 LINE=`grep "wxUSE_LOG" ${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_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
5431
5432fi;
5433
5434 eval "$ac_cv_use_log"
5435 if test "$no_cache" != 1; then
5436 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
5437 fi
5438
5439 if test "$wxUSE_LOG" = 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}-longlong" >&5
5450echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
5451 no_cache=0
5452 # Check whether --enable-longlong or --disable-longlong was given.
5453if test "${enable_longlong+set}" = set; then
5454 enableval="$enable_longlong"
5455
5456 if test "$enableval" = yes; then
5457 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
5458 else
5459 ac_cv_use_longlong='wxUSE_LONGLONG=no'
5460 fi
5461
5462else
5463
5464 LINE=`grep "wxUSE_LONGLONG" ${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_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
5472
5473fi;
5474
5475 eval "$ac_cv_use_longlong"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_LONGLONG" = 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}-mimetype" >&5
5491echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5492 no_cache=0
5493 # Check whether --enable-mimetype or --disable-mimetype was given.
5494if test "${enable_mimetype+set}" = set; then
5495 enableval="$enable_mimetype"
5496
5497 if test "$enableval" = yes; then
5498 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5499 else
5500 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5501 fi
5502
5503else
5504
5505 LINE=`grep "wxUSE_MIMETYPE" ${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_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5513
5514fi;
5515
5516 eval "$ac_cv_use_mimetype"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_MIMETYPE" = 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}-mslu" >&5
5532echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
5533 no_cache=0
5534 # Check whether --enable-mslu or --disable-mslu was given.
5535if test "${enable_mslu+set}" = set; then
5536 enableval="$enable_mslu"
5537
5538 if test "$enableval" = yes; then
5539 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5540 else
5541 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5542 fi
5543
5544else
5545
5546 LINE=`grep "wxUSE_UNICODE_MSLU" ${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_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
5554
5555fi;
5556
5557 eval "$ac_cv_use_mslu"
5558 if test "$no_cache" != 1; then
5559 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5560 fi
5561
5562 if test "$wxUSE_UNICODE_MSLU" = 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}-snglinst" >&5
5573echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
5574 no_cache=0
5575 # Check whether --enable-snglinst or --disable-snglinst was given.
5576if test "${enable_snglinst+set}" = set; then
5577 enableval="$enable_snglinst"
5578
5579 if test "$enableval" = yes; then
5580 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
5581 else
5582 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
5583 fi
5584
5585else
5586
5587 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${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_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
5595
5596fi;
5597
5598 eval "$ac_cv_use_snglinst"
5599 if test "$no_cache" != 1; then
5600 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
5601 fi
5602
5603 if test "$wxUSE_SNGLINST_CHECKER" = 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=
07158944
VZ
5613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5614echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
a848cd7e 5615 no_cache=0
07158944
VZ
5616 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5617if test "${enable_std_iostreams+set}" = set; then
5618 enableval="$enable_std_iostreams"
a848cd7e
SC
5619
5620 if test "$enableval" = yes; then
07158944 5621 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
a848cd7e 5622 else
07158944 5623 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
a848cd7e
SC
5624 fi
5625
5626else
5627
07158944 5628 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
a848cd7e
SC
5629 if test "x$LINE" != x ; then
5630 eval "DEFAULT_$LINE"
5631 else
5632 no_cache=1
5633 fi
5634
07158944 5635 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
a848cd7e
SC
5636
5637fi;
5638
07158944 5639 eval "$ac_cv_use_std_iostreams"
a848cd7e 5640 if test "$no_cache" != 1; then
07158944 5641 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5642 fi
5643
07158944 5644 if test "$wxUSE_STD_IOSTREAM" = yes; then
a848cd7e
SC
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
59746b65
MW
5653 enablestring=
5654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
5655echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6
5656 no_cache=0
5657 # Check whether --enable-std_string or --disable-std_string was given.
5658if test "${enable_std_string+set}" = set; then
5659 enableval="$enable_std_string"
5660
5661 if test "$enableval" = yes; then
5662 ac_cv_use_std_string='wxUSE_STD_STRING=yes'
5663 else
5664 ac_cv_use_std_string='wxUSE_STD_STRING=no'
5665 fi
5666
5667else
5668
5669 LINE=`grep "wxUSE_STD_STRING" ${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_std_string='wxUSE_STD_STRING='$DEFAULT_wxUSE_STD_STRING
5677
5678fi;
5679
5680 eval "$ac_cv_use_std_string"
5681 if test "$no_cache" != 1; then
5682 echo $ac_cv_use_std_string >> ${wx_arg_cache_file}.tmp
5683 fi
5684
5685 if test "$wxUSE_STD_STRING" = 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
a848cd7e 5694 enablestring=
07158944
VZ
5695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
5696echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6
a848cd7e 5697 no_cache=0
07158944
VZ
5698 # Check whether --enable-stdpaths or --disable-stdpaths was given.
5699if test "${enable_stdpaths+set}" = set; then
5700 enableval="$enable_stdpaths"
a848cd7e
SC
5701
5702 if test "$enableval" = yes; then
07158944 5703 ac_cv_use_stdpaths='wxUSE_STDPATHS=yes'
a848cd7e 5704 else
07158944 5705 ac_cv_use_stdpaths='wxUSE_STDPATHS=no'
a848cd7e
SC
5706 fi
5707
5708else
5709
07158944 5710 LINE=`grep "wxUSE_STDPATHS" ${wx_arg_cache_file}`
a848cd7e
SC
5711 if test "x$LINE" != x ; then
5712 eval "DEFAULT_$LINE"
5713 else
5714 no_cache=1
5715 fi
5716
07158944 5717 ac_cv_use_stdpaths='wxUSE_STDPATHS='$DEFAULT_wxUSE_STDPATHS
a848cd7e
SC
5718
5719fi;
5720
07158944 5721 eval "$ac_cv_use_stdpaths"
a848cd7e 5722 if test "$no_cache" != 1; then
07158944 5723 echo $ac_cv_use_stdpaths >> ${wx_arg_cache_file}.tmp
a848cd7e
SC
5724 fi
5725
07158944 5726 if test "$wxUSE_STDPATHS" = yes; then
a848cd7e
SC
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}-stopwatch" >&5
5737echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
5738 no_cache=0
5739 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5740if test "${enable_stopwatch+set}" = set; then
5741 enableval="$enable_stopwatch"
5742
5743 if test "$enableval" = yes; then
5744 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
5745 else
5746 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
5747 fi
5748
5749else
5750
5751 LINE=`grep "wxUSE_STOPWATCH" ${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_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
5759
5760fi;
5761
5762 eval "$ac_cv_use_stopwatch"
5763 if test "$no_cache" != 1; then
5764 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
5765 fi
5766
5767 if test "$wxUSE_STOPWATCH" = 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
07158944
VZ
5776 enablestring=
5777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5778echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5779 no_cache=0
5780 # Check whether --enable-streams or --disable-streams was given.
5781if test "${enable_streams+set}" = set; then
5782 enableval="$enable_streams"
5783
5784 if test "$enableval" = yes; then
5785 ac_cv_use_streams='wxUSE_STREAMS=yes'
5786 else
5787 ac_cv_use_streams='wxUSE_STREAMS=no'
5788 fi
5789
5790else
5791
5792 LINE=`grep "wxUSE_STREAMS" ${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_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5800
5801fi;
5802
5803 eval "$ac_cv_use_streams"
5804 if test "$no_cache" != 1; then
5805 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5806 fi
5807
5808 if test "$wxUSE_STREAMS" = 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
a848cd7e
SC
5817 enablestring=
5818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5819echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
5820 no_cache=0
5821 # Check whether --enable-system_options or --disable-system_options was given.
5822if test "${enable_system_options+set}" = set; then
5823 enableval="$enable_system_options"
5824
5825 if test "$enableval" = yes; then
5826 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
5827 else
5828 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
5829 fi
5830
5831else
5832
5833 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${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_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
5841
5842fi;
5843
5844 eval "$ac_cv_use_system_options"
5845 if test "$no_cache" != 1; then
5846 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
5847 fi
5848
5849 if test "$wxUSE_SYSTEM_OPTIONS" = 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
5858 enablestring=
5859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5860echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
5861 no_cache=0
5862 # Check whether --enable-textbuf or --disable-textbuf was given.
5863if test "${enable_textbuf+set}" = set; then
5864 enableval="$enable_textbuf"
5865
5866 if test "$enableval" = yes; then
5867 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
5868 else
5869 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
5870 fi
5871
5872else
5873
5874 LINE=`grep "wxUSE_TEXTBUFFER" ${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_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
5882
5883fi;
5884
5885 eval "$ac_cv_use_textbuf"
5886 if test "$no_cache" != 1; then
5887 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
5888 fi
5889
5890 if test "$wxUSE_TEXTBUFFER" = 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
5899 enablestring=
5900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5901echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
5902 no_cache=0
5903 # Check whether --enable-textfile or --disable-textfile was given.
5904if test "${enable_textfile+set}" = set; then
5905 enableval="$enable_textfile"
5906
5907 if test "$enableval" = yes; then
5908 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
5909 else
5910 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
5911 fi
5912
5913else
5914
5915 LINE=`grep "wxUSE_TEXTFILE" ${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_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
5923
5924fi;
5925
5926 eval "$ac_cv_use_textfile"
5927 if test "$no_cache" != 1; then
5928 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
5929 fi
5930
5931 if test "$wxUSE_TEXTFILE" = 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}-timer" >&5
5942echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
5943 no_cache=0
5944 # Check whether --enable-timer or --disable-timer was given.
5945if test "${enable_timer+set}" = set; then
5946 enableval="$enable_timer"
5947
5948 if test "$enableval" = yes; then
5949 ac_cv_use_timer='wxUSE_TIMER=yes'
5950 else
5951 ac_cv_use_timer='wxUSE_TIMER=no'
5952 fi
5953
5954else
5955
5956 LINE=`grep "wxUSE_TIMER" ${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_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
5964
5965fi;
5966
5967 eval "$ac_cv_use_timer"
5968 if test "$no_cache" != 1; then
5969 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
5970 fi
5971
5972 if test "$wxUSE_TIMER" = 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
5981 enablestring=
5982 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5983echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
5984 no_cache=0
5985 # Check whether --enable-unicode or --disable-unicode was given.
5986if test "${enable_unicode+set}" = set; then
5987 enableval="$enable_unicode"
5988
5989 if test "$enableval" = yes; then
5990 ac_cv_use_unicode='wxUSE_UNICODE=yes'
5991 else
5992 ac_cv_use_unicode='wxUSE_UNICODE=no'
5993 fi
5994
5995else
5996
5997 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
5998 if test "x$LINE" != x ; then
5999 eval "DEFAULT_$LINE"
6000 else
6001 no_cache=1
6002 fi
6003
6004 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6005
6006fi;
6007
6008 eval "$ac_cv_use_unicode"
6009 if test "$no_cache" != 1; then
6010 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
6011 fi
6012
6013 if test "$wxUSE_UNICODE" = yes; then
6014 echo "$as_me:$LINENO: result: yes" >&5
6015echo "${ECHO_T}yes" >&6
6016 else
6017 echo "$as_me:$LINENO: result: no" >&5
6018echo "${ECHO_T}no" >&6
6019 fi
6020
6021
6022 enablestring=
6023 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
6024echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
6025 no_cache=0
6026 # Check whether --enable-sound or --disable-sound was given.
6027if test "${enable_sound+set}" = set; then
6028 enableval="$enable_sound"
6029
6030 if test "$enableval" = yes; then
6031 ac_cv_use_sound='wxUSE_SOUND=yes'
6032 else
6033 ac_cv_use_sound='wxUSE_SOUND=no'
6034 fi
6035
6036else
6037
6038 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
6039 if test "x$LINE" != x ; then
6040 eval "DEFAULT_$LINE"
6041 else
6042 no_cache=1
6043 fi
6044
6045 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
6046
6047fi;
6048
6049 eval "$ac_cv_use_sound"
6050 if test "$no_cache" != 1; then
6051 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
6052 fi
6053
6054 if test "$wxUSE_SOUND" = yes; then
6055 echo "$as_me:$LINENO: result: yes" >&5
6056echo "${ECHO_T}yes" >&6
6057 else
6058 echo "$as_me:$LINENO: result: no" >&5
6059echo "${ECHO_T}no" >&6
6060 fi
6061
6062
3b57de8b
RL
6063 enablestring=
6064 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
6065echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6
6066 no_cache=0
6067 # Check whether --enable-mediactrl or --disable-mediactrl was given.
6068if test "${enable_mediactrl+set}" = set; then
6069 enableval="$enable_mediactrl"
6070
6071 if test "$enableval" = yes; then
6072 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
6073 else
6074 ac_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
6075 fi
6076
6077else
6078
6079 LINE=`grep "wxUSE_MEDIACTRL" ${wx_arg_cache_file}`
6080 if test "x$LINE" != x ; then
6081 eval "DEFAULT_$LINE"
6082 else
6083 no_cache=1
6084 fi
6085
6086 ac_cv_use_mediactrl='wxUSE_MEDIACTRL='$DEFAULT_wxUSE_MEDIACTRL
6087
6088fi;
6089
6090 eval "$ac_cv_use_mediactrl"
6091 if test "$no_cache" != 1; then
6092 echo $ac_cv_use_mediactrl >> ${wx_arg_cache_file}.tmp
6093 fi
6094
6095 if test "$wxUSE_MEDIACTRL" = yes; then
6096 echo "$as_me:$LINENO: result: yes" >&5
6097echo "${ECHO_T}yes" >&6
6098 else
6099 echo "$as_me:$LINENO: result: no" >&5
6100echo "${ECHO_T}no" >&6
6101 fi
6102
6103
a848cd7e
SC
6104 enablestring=
6105 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
6106echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
6107 no_cache=0
6108 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
6109if test "${enable_wxprintfv+set}" = set; then
6110 enableval="$enable_wxprintfv"
6111
6112 if test "$enableval" = yes; then
6113 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
6114 else
6115 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
6116 fi
6117
6118else
6119
6120 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
6121 if test "x$LINE" != x ; then
6122 eval "DEFAULT_$LINE"
6123 else
6124 no_cache=1
6125 fi
6126
6127 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
6128
6129fi;
6130
6131 eval "$ac_cv_use_wxprintfv"
6132 if test "$no_cache" != 1; then
6133 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
6134 fi
6135
6136 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
6137 echo "$as_me:$LINENO: result: yes" >&5
6138echo "${ECHO_T}yes" >&6
6139 else
6140 echo "$as_me:$LINENO: result: no" >&5
6141echo "${ECHO_T}no" >&6
6142 fi
6143
6144
6145 enablestring=
6146 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
6147echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
6148 no_cache=0
6149 # Check whether --enable-zipstream or --disable-zipstream was given.
6150if test "${enable_zipstream+set}" = set; then
6151 enableval="$enable_zipstream"
6152
6153 if test "$enableval" = yes; then
6154 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
6155 else
6156 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
6157 fi
6158
6159else
6160
6161 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
6162 if test "x$LINE" != x ; then
6163 eval "DEFAULT_$LINE"
6164 else
6165 no_cache=1
6166 fi
6167
6168 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
6169
6170fi;
6171
6172 eval "$ac_cv_use_zipstream"
6173 if test "$no_cache" != 1; then
6174 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
6175 fi
6176
6177 if test "$wxUSE_ZIPSTREAM" = yes; then
6178 echo "$as_me:$LINENO: result: yes" >&5
6179echo "${ECHO_T}yes" >&6
6180 else
6181 echo "$as_me:$LINENO: result: no" >&5
6182echo "${ECHO_T}no" >&6
6183 fi
6184
6185
a848cd7e
SC
6186
6187 enablestring=
6188 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
6189echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
6190 no_cache=0
6191 # Check whether --enable-url or --disable-url was given.
6192if test "${enable_url+set}" = set; then
6193 enableval="$enable_url"
6194
6195 if test "$enableval" = yes; then
6196 ac_cv_use_url='wxUSE_URL=yes'
6197 else
6198 ac_cv_use_url='wxUSE_URL=no'
6199 fi
6200
6201else
6202
6203 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
6204 if test "x$LINE" != x ; then
6205 eval "DEFAULT_$LINE"
6206 else
6207 no_cache=1
6208 fi
6209
6210 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
6211
6212fi;
6213
6214 eval "$ac_cv_use_url"
6215 if test "$no_cache" != 1; then
6216 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
6217 fi
6218
6219 if test "$wxUSE_URL" = yes; then
6220 echo "$as_me:$LINENO: result: yes" >&5
6221echo "${ECHO_T}yes" >&6
6222 else
6223 echo "$as_me:$LINENO: result: no" >&5
6224echo "${ECHO_T}no" >&6
6225 fi
6226
6227
6228 enablestring=
6229 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
6230echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
6231 no_cache=0
6232 # Check whether --enable-protocol or --disable-protocol was given.
6233if test "${enable_protocol+set}" = set; then
6234 enableval="$enable_protocol"
6235
6236 if test "$enableval" = yes; then
6237 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
6238 else
6239 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
6240 fi
6241
6242else
6243
6244 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
6245 if test "x$LINE" != x ; then
6246 eval "DEFAULT_$LINE"
6247 else
6248 no_cache=1
6249 fi
6250
6251 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
6252
6253fi;
6254
6255 eval "$ac_cv_use_protocol"
6256 if test "$no_cache" != 1; then
6257 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
6258 fi
6259
6260 if test "$wxUSE_PROTOCOL" = yes; then
6261 echo "$as_me:$LINENO: result: yes" >&5
6262echo "${ECHO_T}yes" >&6
6263 else
6264 echo "$as_me:$LINENO: result: no" >&5
6265echo "${ECHO_T}no" >&6
6266 fi
6267
6268
6269 enablestring=
6270 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
6271echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
6272 no_cache=0
6273 # Check whether --enable-protocol_http or --disable-protocol_http was given.
6274if test "${enable_protocol_http+set}" = set; then
6275 enableval="$enable_protocol_http"
6276
6277 if test "$enableval" = yes; then
6278 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
6279 else
6280 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
6281 fi
6282
6283else
6284
6285 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
6286 if test "x$LINE" != x ; then
6287 eval "DEFAULT_$LINE"
6288 else
6289 no_cache=1
6290 fi
6291
6292 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
6293
6294fi;
6295
6296 eval "$ac_cv_use_protocol_http"
6297 if test "$no_cache" != 1; then
6298 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
6299 fi
6300
6301 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
6302 echo "$as_me:$LINENO: result: yes" >&5
6303echo "${ECHO_T}yes" >&6
6304 else
6305 echo "$as_me:$LINENO: result: no" >&5
6306echo "${ECHO_T}no" >&6
6307 fi
6308
6309
6310 enablestring=
6311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
6312echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
6313 no_cache=0
6314 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
6315if test "${enable_protocol_ftp+set}" = set; then
6316 enableval="$enable_protocol_ftp"
6317
6318 if test "$enableval" = yes; then
6319 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
6320 else
6321 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
6322 fi
6323
6324else
6325
6326 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
6327 if test "x$LINE" != x ; then
6328 eval "DEFAULT_$LINE"
6329 else
6330 no_cache=1
6331 fi
6332
6333 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
6334
6335fi;
6336
6337 eval "$ac_cv_use_protocol_ftp"
6338 if test "$no_cache" != 1; then
6339 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
6340 fi
6341
6342 if test "$wxUSE_PROTOCOL_FTP" = yes; then
6343 echo "$as_me:$LINENO: result: yes" >&5
6344echo "${ECHO_T}yes" >&6
6345 else
6346 echo "$as_me:$LINENO: result: no" >&5
6347echo "${ECHO_T}no" >&6
6348 fi
6349
6350
6351 enablestring=
6352 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
6353echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
6354 no_cache=0
6355 # Check whether --enable-protocol_file or --disable-protocol_file was given.
6356if test "${enable_protocol_file+set}" = set; then
6357 enableval="$enable_protocol_file"
6358
6359 if test "$enableval" = yes; then
6360 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
6361 else
6362 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
6363 fi
6364
6365else
6366
6367 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
6368 if test "x$LINE" != x ; then
6369 eval "DEFAULT_$LINE"
6370 else
6371 no_cache=1
6372 fi
6373
6374 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
6375
6376fi;
6377
6378 eval "$ac_cv_use_protocol_file"
6379 if test "$no_cache" != 1; then
6380 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
6381 fi
6382
6383 if test "$wxUSE_PROTOCOL_FILE" = yes; then
6384 echo "$as_me:$LINENO: result: yes" >&5
6385echo "${ECHO_T}yes" >&6
6386 else
6387 echo "$as_me:$LINENO: result: no" >&5
6388echo "${ECHO_T}no" >&6
6389 fi
6390
6391
6392
6393
6394
6395 enablestring=
6396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6397echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
6398 no_cache=0
6399 # Check whether --enable-threads or --disable-threads was given.
6400if test "${enable_threads+set}" = set; then
6401 enableval="$enable_threads"
6402
6403 if test "$enableval" = yes; then
6404 ac_cv_use_threads='wxUSE_THREADS=yes'
6405 else
6406 ac_cv_use_threads='wxUSE_THREADS=no'
6407 fi
6408
6409else
6410
6411 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6412 if test "x$LINE" != x ; then
6413 eval "DEFAULT_$LINE"
6414 else
6415 no_cache=1
6416 fi
6417
6418 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
6419
6420fi;
6421
6422 eval "$ac_cv_use_threads"
6423 if test "$no_cache" != 1; then
6424 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6425 fi
6426
6427 if test "$wxUSE_THREADS" = yes; then
6428 echo "$as_me:$LINENO: result: yes" >&5
6429echo "${ECHO_T}yes" >&6
6430 else
6431 echo "$as_me:$LINENO: result: no" >&5
6432echo "${ECHO_T}no" >&6
6433 fi
6434
6435
6436if test "$wxUSE_GUI" = "yes"; then
6437
6438
6439
6440 enablestring=
6441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6442echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
6443 no_cache=0
6444 # Check whether --enable-docview or --disable-docview was given.
6445if test "${enable_docview+set}" = set; then
6446 enableval="$enable_docview"
6447
6448 if test "$enableval" = yes; then
6449 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6450 else
6451 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6452 fi
6453
6454else
6455
6456 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${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_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6464
6465fi;
6466
6467 eval "$ac_cv_use_docview"
6468 if test "$no_cache" != 1; then
6469 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6470 fi
6471
6472 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 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
6481 enablestring=
6482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6483echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
6484 no_cache=0
6485 # Check whether --enable-help or --disable-help was given.
6486if test "${enable_help+set}" = set; then
6487 enableval="$enable_help"
6488
6489 if test "$enableval" = yes; then
6490 ac_cv_use_help='wxUSE_HELP=yes'
6491 else
6492 ac_cv_use_help='wxUSE_HELP=no'
6493 fi
6494
6495else
6496
6497 LINE=`grep "wxUSE_HELP" ${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_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6505
6506fi;
6507
6508 eval "$ac_cv_use_help"
6509 if test "$no_cache" != 1; then
6510 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6511 fi
6512
6513 if test "$wxUSE_HELP" = 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}-mshtmlhelp" >&5
6524echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
6525 no_cache=0
6526 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6527if test "${enable_mshtmlhelp+set}" = set; then
6528 enableval="$enable_mshtmlhelp"
6529
6530 if test "$enableval" = yes; then
6531 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6532 else
6533 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6534 fi
6535
6536else
6537
6538 LINE=`grep "wxUSE_MS_HTML_HELP" ${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_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
6546
6547fi;
6548
6549 eval "$ac_cv_use_mshtmlhelp"
6550 if test "$no_cache" != 1; then
6551 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6552 fi
6553
6554 if test "$wxUSE_MS_HTML_HELP" = 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}-html" >&5
6565echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
6566 no_cache=0
6567 # Check whether --enable-html or --disable-html was given.
6568if test "${enable_html+set}" = set; then
6569 enableval="$enable_html"
6570
6571 if test "$enableval" = yes; then
6572 ac_cv_use_html='wxUSE_HTML=yes'
6573 else
6574 ac_cv_use_html='wxUSE_HTML=no'
6575 fi
6576
6577else
6578
6579 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6580 if test "x$LINE" != x ; then
6581 eval "DEFAULT_$LINE"
6582 else
6583 no_cache=1
6584 fi
6585
6586 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
6587
6588fi;
6589
6590 eval "$ac_cv_use_html"
6591 if test "$no_cache" != 1; then
6592 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6593 fi
6594
6595 if test "$wxUSE_HTML" = 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}-htmlhelp" >&5
6606echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
6607 no_cache=0
6608 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6609if test "${enable_htmlhelp+set}" = set; then
6610 enableval="$enable_htmlhelp"
6611
6612 if test "$enableval" = yes; then
6613 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6614 else
6615 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6616 fi
6617
6618else
6619
6620 LINE=`grep "wxUSE_WXHTML_HELP" ${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_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
6628
6629fi;
6630
6631 eval "$ac_cv_use_htmlhelp"
6632 if test "$no_cache" != 1; then
6633 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6634 fi
6635
6636 if test "$wxUSE_WXHTML_HELP" = 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
9a8f0513
VS
6645 enablestring=
6646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
6647echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6
6648 no_cache=0
6649 # Check whether --enable-xrc or --disable-xrc was given.
6650if test "${enable_xrc+set}" = set; then
6651 enableval="$enable_xrc"
6652
6653 if test "$enableval" = yes; then
6654 ac_cv_use_xrc='wxUSE_XRC=yes'
6655 else
6656 ac_cv_use_xrc='wxUSE_XRC=no'
6657 fi
6658
6659else
6660
6661 LINE=`grep "wxUSE_XRC" ${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_xrc='wxUSE_XRC='$DEFAULT_wxUSE_XRC
6669
6670fi;
6671
6672 eval "$ac_cv_use_xrc"
6673 if test "$no_cache" != 1; then
6674 echo $ac_cv_use_xrc >> ${wx_arg_cache_file}.tmp
6675 fi
6676
6677 if test "$wxUSE_XRC" = 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
a848cd7e
SC
6686 enablestring=
6687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6688echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
6689 no_cache=0
6690 # Check whether --enable-constraints or --disable-constraints was given.
6691if test "${enable_constraints+set}" = set; then
6692 enableval="$enable_constraints"
6693
6694 if test "$enableval" = yes; then
6695 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6696 else
6697 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6698 fi
6699
6700else
6701
6702 LINE=`grep "wxUSE_CONSTRAINTS" ${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_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
6710
6711fi;
6712
6713 eval "$ac_cv_use_constraints"
6714 if test "$no_cache" != 1; then
6715 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6716 fi
6717
6718 if test "$wxUSE_CONSTRAINTS" = 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}-printarch" >&5
6729echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
6730 no_cache=0
6731 # Check whether --enable-printarch or --disable-printarch was given.
6732if test "${enable_printarch+set}" = set; then
6733 enableval="$enable_printarch"
6734
6735 if test "$enableval" = yes; then
6736 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6737 else
6738 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6739 fi
6740
6741else
6742
6743 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${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_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6751
6752fi;
6753
6754 eval "$ac_cv_use_printarch"
6755 if test "$no_cache" != 1; then
6756 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6757 fi
6758
6759 if test "$wxUSE_PRINTING_ARCHITECTURE" = 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
6768 enablestring=
6769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6770echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
6771 no_cache=0
6772 # Check whether --enable-mdi or --disable-mdi was given.
6773if test "${enable_mdi+set}" = set; then
6774 enableval="$enable_mdi"
6775
6776 if test "$enableval" = yes; then
8a7b1113 6777 ac_cv_use_mdi='wxUSE_MDI=yes'
a848cd7e 6778 else
8a7b1113 6779 ac_cv_use_mdi='wxUSE_MDI=no'
a848cd7e
SC
6780 fi
6781
6782else
6783
8a7b1113 6784 LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}`
a848cd7e
SC
6785 if test "x$LINE" != x ; then
6786 eval "DEFAULT_$LINE"
6787 else
6788 no_cache=1
6789 fi
6790
8a7b1113 6791 ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI
a848cd7e
SC
6792
6793fi;
6794
6795 eval "$ac_cv_use_mdi"
6796 if test "$no_cache" != 1; then
6797 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6798 fi
6799
8a7b1113
VZ
6800 if test "$wxUSE_MDI" = 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
6809 enablestring=
6810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
6811echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6
6812 no_cache=0
6813 # Check whether --enable-mdidoc or --disable-mdidoc was given.
6814if test "${enable_mdidoc+set}" = set; then
6815 enableval="$enable_mdidoc"
6816
6817 if test "$enableval" = yes; then
6818 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
6819 else
6820 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
6821 fi
6822
6823else
6824
6825 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6826 if test "x$LINE" != x ; then
6827 eval "DEFAULT_$LINE"
6828 else
6829 no_cache=1
6830 fi
6831
6832 ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6833
6834fi;
6835
6836 eval "$ac_cv_use_mdidoc"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp
6839 fi
6840
a848cd7e
SC
6841 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
6842 echo "$as_me:$LINENO: result: yes" >&5
6843echo "${ECHO_T}yes" >&6
6844 else
6845 echo "$as_me:$LINENO: result: no" >&5
6846echo "${ECHO_T}no" >&6
6847 fi
6848
6849
6850 enablestring=
6851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6852echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
6853 no_cache=0
6854 # Check whether --enable-loggui or --disable-loggui was given.
6855if test "${enable_loggui+set}" = set; then
6856 enableval="$enable_loggui"
6857
6858 if test "$enableval" = yes; then
6859 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6860 else
6861 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6862 fi
6863
6864else
6865
6866 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6867 if test "x$LINE" != x ; then
6868 eval "DEFAULT_$LINE"
6869 else
6870 no_cache=1
6871 fi
6872
6873 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
6874
6875fi;
6876
6877 eval "$ac_cv_use_loggui"
6878 if test "$no_cache" != 1; then
6879 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6880 fi
6881
6882 if test "$wxUSE_LOGGUI" = yes; then
6883 echo "$as_me:$LINENO: result: yes" >&5
6884echo "${ECHO_T}yes" >&6
6885 else
6886 echo "$as_me:$LINENO: result: no" >&5
6887echo "${ECHO_T}no" >&6
6888 fi
6889
6890
6891 enablestring=
6892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6893echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
6894 no_cache=0
6895 # Check whether --enable-logwin or --disable-logwin was given.
6896if test "${enable_logwin+set}" = set; then
6897 enableval="$enable_logwin"
6898
6899 if test "$enableval" = yes; then
6900 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6901 else
6902 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6903 fi
6904
6905else
6906
6907 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6908 if test "x$LINE" != x ; then
6909 eval "DEFAULT_$LINE"
6910 else
6911 no_cache=1
6912 fi
6913
6914 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
6915
6916fi;
6917
6918 eval "$ac_cv_use_logwin"
6919 if test "$no_cache" != 1; then
6920 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6921 fi
6922
6923 if test "$wxUSE_LOGWINDOW" = yes; then
6924 echo "$as_me:$LINENO: result: yes" >&5
6925echo "${ECHO_T}yes" >&6
6926 else
6927 echo "$as_me:$LINENO: result: no" >&5
6928echo "${ECHO_T}no" >&6
6929 fi
6930
6931
6932 enablestring=
6933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6934echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
6935 no_cache=0
6936 # Check whether --enable-logdialog or --disable-logdialog was given.
6937if test "${enable_logdialog+set}" = set; then
6938 enableval="$enable_logdialog"
6939
6940 if test "$enableval" = yes; then
6941 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6942 else
6943 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6944 fi
6945
6946else
6947
6948 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6949 if test "x$LINE" != x ; then
6950 eval "DEFAULT_$LINE"
6951 else
6952 no_cache=1
6953 fi
6954
6955 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
6956
6957fi;
6958
6959 eval "$ac_cv_use_logdialog"
6960 if test "$no_cache" != 1; then
6961 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6962 fi
6963
6964 if test "$wxUSE_LOGDIALOG" = yes; then
6965 echo "$as_me:$LINENO: result: yes" >&5
6966echo "${ECHO_T}yes" >&6
6967 else
6968 echo "$as_me:$LINENO: result: no" >&5
6969echo "${ECHO_T}no" >&6
6970 fi
6971
6972
646b6ec1
VS
6973 enablestring=
6974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
6975echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6
6976 no_cache=0
6977 # Check whether --enable-webkit or --disable-webkit was given.
6978if test "${enable_webkit+set}" = set; then
6979 enableval="$enable_webkit"
6980
6981 if test "$enableval" = yes; then
6982 ac_cv_use_webkit='wxUSE_WEBKIT=yes'
6983 else
6984 ac_cv_use_webkit='wxUSE_WEBKIT=no'
6985 fi
6986
6987else
6988
6989 LINE=`grep "wxUSE_WEBKIT" ${wx_arg_cache_file}`
6990 if test "x$LINE" != x ; then
6991 eval "DEFAULT_$LINE"
6992 else
6993 no_cache=1
6994 fi
6995
6996 ac_cv_use_webkit='wxUSE_WEBKIT='$DEFAULT_wxUSE_WEBKIT
6997
6998fi;
6999
7000 eval "$ac_cv_use_webkit"
7001 if test "$no_cache" != 1; then
7002 echo $ac_cv_use_webkit >> ${wx_arg_cache_file}.tmp
7003 fi
7004
7005 if test "$wxUSE_WEBKIT" = yes; then
7006 echo "$as_me:$LINENO: result: yes" >&5
7007echo "${ECHO_T}yes" >&6
7008 else
7009 echo "$as_me:$LINENO: result: no" >&5
7010echo "${ECHO_T}no" >&6
7011 fi
7012
7013
91dea314
MW
7014 enablestring=
7015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
7016echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
7017 no_cache=0
7018 # Check whether --enable-html or --disable-html was given.
7019if test "${enable_html+set}" = set; then
7020 enableval="$enable_html"
7021
7022 if test "$enableval" = yes; then
7023 ac_cv_use_html='wxUSE_RICHTEXT=yes'
7024 else
7025 ac_cv_use_html='wxUSE_RICHTEXT=no'
7026 fi
7027
7028else
7029
7030 LINE=`grep "wxUSE_RICHTEXT" ${wx_arg_cache_file}`
7031 if test "x$LINE" != x ; then
7032 eval "DEFAULT_$LINE"
7033 else
7034 no_cache=1
7035 fi
7036
7037 ac_cv_use_html='wxUSE_RICHTEXT='$DEFAULT_wxUSE_RICHTEXT
7038
7039fi;
7040
7041 eval "$ac_cv_use_html"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_RICHTEXT" = yes; then
7047 echo "$as_me:$LINENO: result: yes" >&5
7048echo "${ECHO_T}yes" >&6
7049 else
7050 echo "$as_me:$LINENO: result: no" >&5
7051echo "${ECHO_T}no" >&6
7052 fi
7053
7054
a848cd7e
SC
7055
7056 enablestring=
7057 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
7058echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
7059 no_cache=0
7060 # Check whether --enable-postscript or --disable-postscript was given.
7061if test "${enable_postscript+set}" = set; then
7062 enableval="$enable_postscript"
7063
7064 if test "$enableval" = yes; then
7065 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
7066 else
7067 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
7068 fi
7069
7070else
7071
7072 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
7073 if test "x$LINE" != x ; then
7074 eval "DEFAULT_$LINE"
7075 else
7076 no_cache=1
7077 fi
7078
7079 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
7080
7081fi;
7082
7083 eval "$ac_cv_use_postscript"
7084 if test "$no_cache" != 1; then
7085 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
7086 fi
7087
7088 if test "$wxUSE_POSTSCRIPT" = yes; then
7089 echo "$as_me:$LINENO: result: yes" >&5
7090echo "${ECHO_T}yes" >&6
7091 else
7092 echo "$as_me:$LINENO: result: no" >&5
7093echo "${ECHO_T}no" >&6
7094 fi
7095
7096
7097
7098
7099
7100 enablestring=
7101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
7102echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
7103 no_cache=0
7104 # Check whether --enable-prologio or --disable-prologio was given.
7105if test "${enable_prologio+set}" = set; then
7106 enableval="$enable_prologio"
7107
7108 if test "$enableval" = yes; then
7109 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
7110 else
7111 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
7112 fi
7113
7114else
7115
7116 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
7117 if test "x$LINE" != x ; then
7118 eval "DEFAULT_$LINE"
7119 else
7120 no_cache=1
7121 fi
7122
7123 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
7124
7125fi;
7126
7127 eval "$ac_cv_use_prologio"
7128 if test "$no_cache" != 1; then
7129 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
7130 fi
7131
7132 if test "$wxUSE_PROLOGIO" = yes; then
7133 echo "$as_me:$LINENO: result: yes" >&5
7134echo "${ECHO_T}yes" >&6
7135 else
7136 echo "$as_me:$LINENO: result: no" >&5
7137echo "${ECHO_T}no" >&6
7138 fi
7139
7140
7141 enablestring=
7142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
7143echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
7144 no_cache=0
7145 # Check whether --enable-resources or --disable-resources was given.
7146if test "${enable_resources+set}" = set; then
7147 enableval="$enable_resources"
7148
7149 if test "$enableval" = yes; then
7150 ac_cv_use_resources='wxUSE_RESOURCES=yes'
7151 else
7152 ac_cv_use_resources='wxUSE_RESOURCES=no'
7153 fi
7154
7155else
7156
7157 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
7158 if test "x$LINE" != x ; then
7159 eval "DEFAULT_$LINE"
7160 else
7161 no_cache=1
7162 fi
7163
7164 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
7165
7166fi;
7167
7168 eval "$ac_cv_use_resources"
7169 if test "$no_cache" != 1; then
7170 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
7171 fi
7172
7173 if test "$wxUSE_RESOURCES" = yes; then
7174 echo "$as_me:$LINENO: result: yes" >&5
7175echo "${ECHO_T}yes" >&6
7176 else
7177 echo "$as_me:$LINENO: result: no" >&5
7178echo "${ECHO_T}no" >&6
7179 fi
7180
7181
7182
7183
7184 enablestring=
7185 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
7186echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
7187 no_cache=0
7188 # Check whether --enable-clipboard or --disable-clipboard was given.
7189if test "${enable_clipboard+set}" = set; then
7190 enableval="$enable_clipboard"
7191
7192 if test "$enableval" = yes; then
7193 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
7194 else
7195 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
7196 fi
7197
7198else
7199
7200 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
7201 if test "x$LINE" != x ; then
7202 eval "DEFAULT_$LINE"
7203 else
7204 no_cache=1
7205 fi
7206
7207 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
7208
7209fi;
7210
7211 eval "$ac_cv_use_clipboard"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_CLIPBOARD" = yes; then
7217 echo "$as_me:$LINENO: result: yes" >&5
7218echo "${ECHO_T}yes" >&6
7219 else
7220 echo "$as_me:$LINENO: result: no" >&5
7221echo "${ECHO_T}no" >&6
7222 fi
7223
7224
7225 enablestring=
7226 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
7227echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
7228 no_cache=0
7229 # Check whether --enable-dnd or --disable-dnd was given.
7230if test "${enable_dnd+set}" = set; then
7231 enableval="$enable_dnd"
7232
7233 if test "$enableval" = yes; then
7234 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
7235 else
7236 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
7237 fi
7238
7239else
7240
7241 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
7242 if test "x$LINE" != x ; then
7243 eval "DEFAULT_$LINE"
7244 else
7245 no_cache=1
7246 fi
7247
7248 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
7249
7250fi;
7251
7252 eval "$ac_cv_use_dnd"
7253 if test "$no_cache" != 1; then
7254 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
7255 fi
7256
7257 if test "$wxUSE_DRAG_AND_DROP" = yes; then
7258 echo "$as_me:$LINENO: result: yes" >&5
7259echo "${ECHO_T}yes" >&6
7260 else
7261 echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6
7263 fi
7264
7265
7266 enablestring=
7267 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
7268echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
7269 no_cache=0
7270 # Check whether --enable-metafile or --disable-metafile was given.
7271if test "${enable_metafile+set}" = set; then
7272 enableval="$enable_metafile"
7273
7274 if test "$enableval" = yes; then
7275 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7276 else
7277 ac_cv_use_metafile='wxUSE_METAFILE=no'
7278 fi
7279
7280else
7281
7282 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7283 if test "x$LINE" != x ; then
7284 eval "DEFAULT_$LINE"
7285 else
7286 no_cache=1
7287 fi
7288
7289 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7290
7291fi;
7292
7293 eval "$ac_cv_use_metafile"
7294 if test "$no_cache" != 1; then
7295 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7296 fi
7297
7298 if test "$wxUSE_METAFILE" = yes; then
7299 echo "$as_me:$LINENO: result: yes" >&5
7300echo "${ECHO_T}yes" >&6
7301 else
7302 echo "$as_me:$LINENO: result: no" >&5
7303echo "${ECHO_T}no" >&6
7304 fi
7305
7306
7307
7308
7309
7310 enablestring=
7311 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
7312echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
7313 no_cache=0
7314 # Check whether --enable-controls or --disable-controls was given.
7315if test "${enable_controls+set}" = set; then
7316 enableval="$enable_controls"
7317
7318 if test "$enableval" = yes; then
7319 ac_cv_use_controls='wxUSE_CONTROLS=yes'
7320 else
7321 ac_cv_use_controls='wxUSE_CONTROLS=no'
7322 fi
7323
7324else
7325
7326 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
7327 if test "x$LINE" != x ; then
7328 eval "DEFAULT_$LINE"
7329 else
7330 no_cache=1
7331 fi
7332
7333 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
7334
7335fi;
7336
7337 eval "$ac_cv_use_controls"
7338 if test "$no_cache" != 1; then
7339 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
7340 fi
7341
7342 if test "$wxUSE_CONTROLS" = yes; then
7343 echo "$as_me:$LINENO: result: yes" >&5
7344echo "${ECHO_T}yes" >&6
7345 else
7346 echo "$as_me:$LINENO: result: no" >&5
7347echo "${ECHO_T}no" >&6
7348 fi
7349
7350
7351if test "$wxUSE_CONTROLS" = "yes"; then
7352 DEFAULT_wxUSE_ACCEL=yes
7353 DEFAULT_wxUSE_BMPBUTTON=yes
7354 DEFAULT_wxUSE_BUTTON=yes
da98e9be 7355 DEFAULT_wxUSE_CALCTRL=yes
a848cd7e
SC
7356 DEFAULT_wxUSE_CARET=yes
7357 DEFAULT_wxUSE_COMBOBOX=yes
7358 DEFAULT_wxUSE_CHECKBOX=yes
7359 DEFAULT_wxUSE_CHECKLISTBOX=yes
7360 DEFAULT_wxUSE_CHOICE=yes
92bbdbcd 7361 DEFAULT_wxUSE_CHOICEBOOK=yes
da98e9be 7362 DEFAULT_wxUSE_DATEPICKCTRL=yes
a848cd7e
SC
7363 DEFAULT_wxUSE_GAUGE=yes
7364 DEFAULT_wxUSE_GRID=yes
7365 DEFAULT_wxUSE_IMAGLIST=yes
7366 DEFAULT_wxUSE_LISTBOOK=yes
7367 DEFAULT_wxUSE_LISTBOX=yes
7368 DEFAULT_wxUSE_LISTCTRL=yes
7369 DEFAULT_wxUSE_NOTEBOOK=yes
7370 DEFAULT_wxUSE_RADIOBOX=yes
7371 DEFAULT_wxUSE_RADIOBTN=yes
7372 DEFAULT_wxUSE_SASH=yes
7373 DEFAULT_wxUSE_SCROLLBAR=yes
7374 DEFAULT_wxUSE_SLIDER=yes
7375 DEFAULT_wxUSE_SPINBTN=yes
7376 DEFAULT_wxUSE_SPINCTRL=yes
7377 DEFAULT_wxUSE_SPLITTER=yes
7378 DEFAULT_wxUSE_STATBMP=yes
7379 DEFAULT_wxUSE_STATBOX=yes
7380 DEFAULT_wxUSE_STATLINE=yes
7381 DEFAULT_wxUSE_STATUSBAR=yes
7382 DEFAULT_wxUSE_TAB_DIALOG=yes
7383 DEFAULT_wxUSE_TOGGLEBTN=yes
7384 DEFAULT_wxUSE_TOOLBAR=yes
7385 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
7386 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
7387 DEFAULT_wxUSE_TOOLTIPS=yes
0093c2fc 7388 DEFAULT_wxUSE_TREEBOOK=yes
a848cd7e
SC
7389 DEFAULT_wxUSE_TREECTRL=yes
7390 DEFAULT_wxUSE_POPUPWIN=yes
7391 DEFAULT_wxUSE_TIPWINDOW=yes
7392elif test "$wxUSE_CONTROLS" = "no"; then
7393 DEFAULT_wxUSE_ACCEL=no
7394 DEFAULT_wxUSE_BMPBUTTON=no
7395 DEFAULT_wxUSE_BUTTON=no
7396 DEFAULT_wxUSE_CALCTRL=no
7397 DEFAULT_wxUSE_CARET=no
7398 DEFAULT_wxUSE_COMBOBOX=no
7399 DEFAULT_wxUSE_CHECKBOX=no
7400 DEFAULT_wxUSE_CHECKLISTBOX=no
7401 DEFAULT_wxUSE_CHOICE=no
92bbdbcd 7402 DEFAULT_wxUSE_CHOICEBOOK=no
da98e9be 7403 DEFAULT_wxUSE_DATEPICKCTRL=no
a848cd7e
SC
7404 DEFAULT_wxUSE_GAUGE=no
7405 DEFAULT_wxUSE_GRID=no
7406 DEFAULT_wxUSE_IMAGLIST=no
7407 DEFAULT_wxUSE_LISTBOOK=no
7408 DEFAULT_wxUSE_LISTBOX=no
7409 DEFAULT_wxUSE_LISTCTRL=no
7410 DEFAULT_wxUSE_NOTEBOOK=no
7411 DEFAULT_wxUSE_RADIOBOX=no
7412 DEFAULT_wxUSE_RADIOBTN=no
7413 DEFAULT_wxUSE_SASH=no
7414 DEFAULT_wxUSE_SCROLLBAR=no
7415 DEFAULT_wxUSE_SLIDER=no
7416 DEFAULT_wxUSE_SPINBTN=no
7417 DEFAULT_wxUSE_SPINCTRL=no
7418 DEFAULT_wxUSE_SPLITTER=no
7419 DEFAULT_wxUSE_STATBMP=no
7420 DEFAULT_wxUSE_STATBOX=no
7421 DEFAULT_wxUSE_STATLINE=no
7422 DEFAULT_wxUSE_STATUSBAR=no
7423 DEFAULT_wxUSE_TAB_DIALOG=no
7424 DEFAULT_wxUSE_TOGGLEBTN=no
7425 DEFAULT_wxUSE_TOOLBAR=no
7426 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
7427 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
7428 DEFAULT_wxUSE_TOOLTIPS=no
0093c2fc 7429 DEFAULT_wxUSE_TREEBOOK=no
a848cd7e
SC
7430 DEFAULT_wxUSE_TREECTRL=no
7431 DEFAULT_wxUSE_POPUPWIN=no
7432 DEFAULT_wxUSE_TIPWINDOW=no
7433fi
7434
a848cd7e
SC
7435
7436 enablestring=
7437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
7438echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
7439 no_cache=0
7440 # Check whether --enable-accel or --disable-accel was given.
7441if test "${enable_accel+set}" = set; then
7442 enableval="$enable_accel"
7443
7444 if test "$enableval" = yes; then
7445 ac_cv_use_accel='wxUSE_ACCEL=yes'
7446 else
7447 ac_cv_use_accel='wxUSE_ACCEL=no'
7448 fi
7449
7450else
7451
7452 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
7453 if test "x$LINE" != x ; then
7454 eval "DEFAULT_$LINE"
7455 else
7456 no_cache=1
7457 fi
7458
7459 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
7460
7461fi;
7462
7463 eval "$ac_cv_use_accel"
7464 if test "$no_cache" != 1; then
7465 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
7466 fi
7467
7468 if test "$wxUSE_ACCEL" = yes; then
7469 echo "$as_me:$LINENO: result: yes" >&5
7470echo "${ECHO_T}yes" >&6
7471 else
7472 echo "$as_me:$LINENO: result: no" >&5
7473echo "${ECHO_T}no" >&6
7474 fi
7475
7476
7477 enablestring=
7478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
7479echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
7480 no_cache=0
7481 # Check whether --enable-button or --disable-button was given.
7482if test "${enable_button+set}" = set; then
7483 enableval="$enable_button"
7484
7485 if test "$enableval" = yes; then
7486 ac_cv_use_button='wxUSE_BUTTON=yes'
7487 else
7488 ac_cv_use_button='wxUSE_BUTTON=no'
7489 fi
7490
7491else
7492
7493 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
7494 if test "x$LINE" != x ; then
7495 eval "DEFAULT_$LINE"
7496 else
7497 no_cache=1
7498 fi
7499
7500 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
7501
7502fi;
7503
7504 eval "$ac_cv_use_button"
7505 if test "$no_cache" != 1; then
7506 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
7507 fi
7508
7509 if test "$wxUSE_BUTTON" = yes; then
7510 echo "$as_me:$LINENO: result: yes" >&5
7511echo "${ECHO_T}yes" >&6
7512 else
7513 echo "$as_me:$LINENO: result: no" >&5
7514echo "${ECHO_T}no" >&6
7515 fi
7516
7517
7518 enablestring=
7519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
7520echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
7521 no_cache=0
7522 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
7523if test "${enable_bmpbutton+set}" = set; then
7524 enableval="$enable_bmpbutton"
7525
7526 if test "$enableval" = yes; then
7527 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
7528 else
7529 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
7530 fi
7531
7532else
7533
7534 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
7535 if test "x$LINE" != x ; then
7536 eval "DEFAULT_$LINE"
7537 else
7538 no_cache=1
7539 fi
7540
7541 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
7542
7543fi;
7544
7545 eval "$ac_cv_use_bmpbutton"
7546 if test "$no_cache" != 1; then
7547 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
7548 fi
7549
7550 if test "$wxUSE_BMPBUTTON" = yes; then
7551 echo "$as_me:$LINENO: result: yes" >&5
7552echo "${ECHO_T}yes" >&6
7553 else
7554 echo "$as_me:$LINENO: result: no" >&5
7555echo "${ECHO_T}no" >&6
7556 fi
7557
7558
7559 enablestring=
7560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7561echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
7562 no_cache=0
7563 # Check whether --enable-calendar or --disable-calendar was given.
7564if test "${enable_calendar+set}" = set; then
7565 enableval="$enable_calendar"
7566
7567 if test "$enableval" = yes; then
7568 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7569 else
7570 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7571 fi
7572
7573else
7574
7575 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7576 if test "x$LINE" != x ; then
7577 eval "DEFAULT_$LINE"
7578 else
7579 no_cache=1
7580 fi
7581
7582 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
7583
7584fi;
7585
7586 eval "$ac_cv_use_calendar"
7587 if test "$no_cache" != 1; then
7588 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7589 fi
7590
7591 if test "$wxUSE_CALCTRL" = yes; then
7592 echo "$as_me:$LINENO: result: yes" >&5
7593echo "${ECHO_T}yes" >&6
7594 else
7595 echo "$as_me:$LINENO: result: no" >&5
7596echo "${ECHO_T}no" >&6
7597 fi
7598
7599
7600 enablestring=
7601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7602echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
7603 no_cache=0
7604 # Check whether --enable-caret or --disable-caret was given.
7605if test "${enable_caret+set}" = set; then
7606 enableval="$enable_caret"
7607
7608 if test "$enableval" = yes; then
7609 ac_cv_use_caret='wxUSE_CARET=yes'
7610 else
7611 ac_cv_use_caret='wxUSE_CARET=no'
7612 fi
7613
7614else
7615
7616 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7617 if test "x$LINE" != x ; then
7618 eval "DEFAULT_$LINE"
7619 else
7620 no_cache=1
7621 fi
7622
7623 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
7624
7625fi;
7626
7627 eval "$ac_cv_use_caret"
7628 if test "$no_cache" != 1; then
7629 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7630 fi
7631
7632 if test "$wxUSE_CARET" = yes; then
7633 echo "$as_me:$LINENO: result: yes" >&5
7634echo "${ECHO_T}yes" >&6
7635 else
7636 echo "$as_me:$LINENO: result: no" >&5
7637echo "${ECHO_T}no" >&6
7638 fi
7639
7640
7641 enablestring=
7642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7643echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
7644 no_cache=0
7645 # Check whether --enable-checkbox or --disable-checkbox was given.
7646if test "${enable_checkbox+set}" = set; then
7647 enableval="$enable_checkbox"
7648
7649 if test "$enableval" = yes; then
7650 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7651 else
7652 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7653 fi
7654
7655else
7656
7657 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7658 if test "x$LINE" != x ; then
7659 eval "DEFAULT_$LINE"
7660 else
7661 no_cache=1
7662 fi
7663
7664 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
7665
7666fi;
7667
7668 eval "$ac_cv_use_checkbox"
7669 if test "$no_cache" != 1; then
7670 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7671 fi
7672
7673 if test "$wxUSE_CHECKBOX" = yes; then
7674 echo "$as_me:$LINENO: result: yes" >&5
7675echo "${ECHO_T}yes" >&6
7676 else
7677 echo "$as_me:$LINENO: result: no" >&5
7678echo "${ECHO_T}no" >&6
7679 fi
7680
7681
7682 enablestring=
7683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7684echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
7685 no_cache=0
7686 # Check whether --enable-checklst or --disable-checklst was given.
7687if test "${enable_checklst+set}" = set; then
7688 enableval="$enable_checklst"
7689
7690 if test "$enableval" = yes; then
7691 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7692 else
7693 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7694 fi
7695
7696else
7697
7698 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7699 if test "x$LINE" != x ; then
7700 eval "DEFAULT_$LINE"
7701 else
7702 no_cache=1
7703 fi
7704
7705 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
7706
7707fi;
7708
7709 eval "$ac_cv_use_checklst"
7710 if test "$no_cache" != 1; then
7711 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7712 fi
7713
7714 if test "$wxUSE_CHECKLST" = yes; then
7715 echo "$as_me:$LINENO: result: yes" >&5
7716echo "${ECHO_T}yes" >&6
7717 else
7718 echo "$as_me:$LINENO: result: no" >&5
7719echo "${ECHO_T}no" >&6
7720 fi
7721
7722
7723 enablestring=
7724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7725echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
7726 no_cache=0
7727 # Check whether --enable-choice or --disable-choice was given.
7728if test "${enable_choice+set}" = set; then
7729 enableval="$enable_choice"
7730
7731 if test "$enableval" = yes; then
7732 ac_cv_use_choice='wxUSE_CHOICE=yes'
7733 else
7734 ac_cv_use_choice='wxUSE_CHOICE=no'
7735 fi
7736
7737else
7738
7739 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7740 if test "x$LINE" != x ; then
7741 eval "DEFAULT_$LINE"
7742 else
7743 no_cache=1
7744 fi
7745
7746 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
7747
7748fi;
7749
7750 eval "$ac_cv_use_choice"
7751 if test "$no_cache" != 1; then
7752 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7753 fi
7754
7755 if test "$wxUSE_CHOICE" = yes; then
7756 echo "$as_me:$LINENO: result: yes" >&5
7757echo "${ECHO_T}yes" >&6
7758 else
7759 echo "$as_me:$LINENO: result: no" >&5
7760echo "${ECHO_T}no" >&6
7761 fi
7762
7763
92bbdbcd
WS
7764 enablestring=
7765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
7766echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6
7767 no_cache=0
7768 # Check whether --enable-choicebook or --disable-choicebook was given.
7769if test "${enable_choicebook+set}" = set; then
7770 enableval="$enable_choicebook"
7771
7772 if test "$enableval" = yes; then
7773 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
7774 else
7775 ac_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
7776 fi
7777
7778else
7779
7780 LINE=`grep "wxUSE_CHOICEBOOK" ${wx_arg_cache_file}`
7781 if test "x$LINE" != x ; then
7782 eval "DEFAULT_$LINE"
7783 else
7784 no_cache=1
7785 fi
7786
7787 ac_cv_use_choicebook='wxUSE_CHOICEBOOK='$DEFAULT_wxUSE_CHOICEBOOK
7788
7789fi;
7790
7791 eval "$ac_cv_use_choicebook"
7792 if test "$no_cache" != 1; then
7793 echo $ac_cv_use_choicebook >> ${wx_arg_cache_file}.tmp
7794 fi
7795
7796 if test "$wxUSE_CHOICEBOOK" = yes; then
7797 echo "$as_me:$LINENO: result: yes" >&5
7798echo "${ECHO_T}yes" >&6
7799 else
7800 echo "$as_me:$LINENO: result: no" >&5
7801echo "${ECHO_T}no" >&6
7802 fi
7803
7804
a848cd7e
SC
7805 enablestring=
7806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7807echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
7808 no_cache=0
7809 # Check whether --enable-combobox or --disable-combobox was given.
7810if test "${enable_combobox+set}" = set; then
7811 enableval="$enable_combobox"
7812
7813 if test "$enableval" = yes; then
7814 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7815 else
7816 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7817 fi
7818
7819else
7820
7821 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7822 if test "x$LINE" != x ; then
7823 eval "DEFAULT_$LINE"
7824 else
7825 no_cache=1
7826 fi
7827
7828 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
7829
7830fi;
7831
7832 eval "$ac_cv_use_combobox"
7833 if test "$no_cache" != 1; then
7834 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7835 fi
7836
7837 if test "$wxUSE_COMBOBOX" = yes; then
7838 echo "$as_me:$LINENO: result: yes" >&5
7839echo "${ECHO_T}yes" >&6
7840 else
7841 echo "$as_me:$LINENO: result: no" >&5
7842echo "${ECHO_T}no" >&6
7843 fi
7844
7845
da98e9be
VZ
7846 enablestring=
7847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
7848echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6
7849 no_cache=0
7850 # Check whether --enable-datepick or --disable-datepick was given.
7851if test "${enable_datepick+set}" = set; then
7852 enableval="$enable_datepick"
7853
7854 if test "$enableval" = yes; then
7855 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
7856 else
7857 ac_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
7858 fi
7859
7860else
7861
7862 LINE=`grep "wxUSE_DATEPICKCTRL" ${wx_arg_cache_file}`
7863 if test "x$LINE" != x ; then
7864 eval "DEFAULT_$LINE"
7865 else
7866 no_cache=1
7867 fi
7868
7869 ac_cv_use_datepick='wxUSE_DATEPICKCTRL='$DEFAULT_wxUSE_DATEPICKCTRL
7870
7871fi;
7872
7873 eval "$ac_cv_use_datepick"
7874 if test "$no_cache" != 1; then
7875 echo $ac_cv_use_datepick >> ${wx_arg_cache_file}.tmp
7876 fi
7877
7878 if test "$wxUSE_DATEPICKCTRL" = yes; then
7879 echo "$as_me:$LINENO: result: yes" >&5
7880echo "${ECHO_T}yes" >&6
7881 else
7882 echo "$as_me:$LINENO: result: no" >&5
7883echo "${ECHO_T}no" >&6
7884 fi
7885
7886
a848cd7e
SC
7887 enablestring=
7888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7889echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
7890 no_cache=0
7891 # Check whether --enable-display or --disable-display was given.
7892if test "${enable_display+set}" = set; then
7893 enableval="$enable_display"
7894
7895 if test "$enableval" = yes; then
7896 ac_cv_use_display='wxUSE_DISPLAY=yes'
7897 else
7898 ac_cv_use_display='wxUSE_DISPLAY=no'
7899 fi
7900
7901else
7902
7903 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7904 if test "x$LINE" != x ; then
7905 eval "DEFAULT_$LINE"
7906 else
7907 no_cache=1
7908 fi
7909
7910 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
7911
7912fi;
7913
7914 eval "$ac_cv_use_display"
7915 if test "$no_cache" != 1; then
7916 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7917 fi
7918
7919 if test "$wxUSE_DISPLAY" = yes; then
7920 echo "$as_me:$LINENO: result: yes" >&5
7921echo "${ECHO_T}yes" >&6
7922 else
7923 echo "$as_me:$LINENO: result: no" >&5
7924echo "${ECHO_T}no" >&6
7925 fi
7926
7927
7928 enablestring=
7929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7930echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
7931 no_cache=0
7932 # Check whether --enable-gauge or --disable-gauge was given.
7933if test "${enable_gauge+set}" = set; then
7934 enableval="$enable_gauge"
7935
7936 if test "$enableval" = yes; then
7937 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7938 else
7939 ac_cv_use_gauge='wxUSE_GAUGE=no'
7940 fi
7941
7942else
7943
7944 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7945 if test "x$LINE" != x ; then
7946 eval "DEFAULT_$LINE"
7947 else
7948 no_cache=1
7949 fi
7950
7951 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
7952
7953fi;
7954
7955 eval "$ac_cv_use_gauge"
7956 if test "$no_cache" != 1; then
7957 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7958 fi
7959
7960 if test "$wxUSE_GAUGE" = yes; then
7961 echo "$as_me:$LINENO: result: yes" >&5
7962echo "${ECHO_T}yes" >&6
7963 else
7964 echo "$as_me:$LINENO: result: no" >&5
7965echo "${ECHO_T}no" >&6
7966 fi
7967
7968
7969 enablestring=
7970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7971echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
7972 no_cache=0
7973 # Check whether --enable-grid or --disable-grid was given.
7974if test "${enable_grid+set}" = set; then
7975 enableval="$enable_grid"
7976
7977 if test "$enableval" = yes; then
7978 ac_cv_use_grid='wxUSE_GRID=yes'
7979 else
7980 ac_cv_use_grid='wxUSE_GRID=no'
7981 fi
7982
7983else
7984
7985 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7986 if test "x$LINE" != x ; then
7987 eval "DEFAULT_$LINE"
7988 else
7989 no_cache=1
7990 fi
7991
7992 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
7993
7994fi;
7995
7996 eval "$ac_cv_use_grid"
7997 if test "$no_cache" != 1; then
7998 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7999 fi
8000
8001 if test "$wxUSE_GRID" = yes; then
8002 echo "$as_me:$LINENO: result: yes" >&5
8003echo "${ECHO_T}yes" >&6
8004 else
8005 echo "$as_me:$LINENO: result: no" >&5
8006echo "${ECHO_T}no" >&6
8007 fi
8008
8009
8010 enablestring=
8011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
8012echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
8013 no_cache=0
8014 # Check whether --enable-imaglist or --disable-imaglist was given.
8015if test "${enable_imaglist+set}" = set; then
8016 enableval="$enable_imaglist"
8017
8018 if test "$enableval" = yes; then
8019 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
8020 else
8021 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
8022 fi
8023
8024else
8025
8026 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
8027 if test "x$LINE" != x ; then
8028 eval "DEFAULT_$LINE"
8029 else
8030 no_cache=1
8031 fi
8032
8033 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
8034
8035fi;
8036
8037 eval "$ac_cv_use_imaglist"
8038 if test "$no_cache" != 1; then
8039 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
8040 fi
8041
8042 if test "$wxUSE_IMAGLIST" = yes; then
8043 echo "$as_me:$LINENO: result: yes" >&5
8044echo "${ECHO_T}yes" >&6
8045 else
8046 echo "$as_me:$LINENO: result: no" >&5
8047echo "${ECHO_T}no" >&6
8048 fi
8049
8050
8051 enablestring=
8052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
8053echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
8054 no_cache=0
8055 # Check whether --enable-listbook or --disable-listbook was given.
8056if test "${enable_listbook+set}" = set; then
8057 enableval="$enable_listbook"
8058
8059 if test "$enableval" = yes; then
8060 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
8061 else
8062 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
8063 fi
8064
8065else
8066
8067 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
8068 if test "x$LINE" != x ; then
8069 eval "DEFAULT_$LINE"
8070 else
8071 no_cache=1
8072 fi
8073
8074 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
8075
8076fi;
8077
8078 eval "$ac_cv_use_listbook"
8079 if test "$no_cache" != 1; then
8080 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
8081 fi
8082
8083 if test "$wxUSE_LISTBOOK" = yes; then
8084 echo "$as_me:$LINENO: result: yes" >&5
8085echo "${ECHO_T}yes" >&6
8086 else
8087 echo "$as_me:$LINENO: result: no" >&5
8088echo "${ECHO_T}no" >&6
8089 fi
8090
8091
8092 enablestring=
8093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
8094echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
8095 no_cache=0
8096 # Check whether --enable-listbox or --disable-listbox was given.
8097if test "${enable_listbox+set}" = set; then
8098 enableval="$enable_listbox"
8099
8100 if test "$enableval" = yes; then
8101 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
8102 else
8103 ac_cv_use_listbox='wxUSE_LISTBOX=no'
8104 fi
8105
8106else
8107
8108 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
8109 if test "x$LINE" != x ; then
8110 eval "DEFAULT_$LINE"
8111 else
8112 no_cache=1
8113 fi
8114
8115 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
8116
8117fi;
8118
8119 eval "$ac_cv_use_listbox"
8120 if test "$no_cache" != 1; then
8121 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
8122 fi
8123
8124 if test "$wxUSE_LISTBOX" = yes; then
8125 echo "$as_me:$LINENO: result: yes" >&5
8126echo "${ECHO_T}yes" >&6
8127 else
8128 echo "$as_me:$LINENO: result: no" >&5
8129echo "${ECHO_T}no" >&6
8130 fi
8131
8132
8133 enablestring=
8134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
8135echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
8136 no_cache=0
8137 # Check whether --enable-listctrl or --disable-listctrl was given.
8138if test "${enable_listctrl+set}" = set; then
8139 enableval="$enable_listctrl"
8140
8141 if test "$enableval" = yes; then
8142 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
8143 else
8144 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
8145 fi
8146
8147else
8148
8149 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
8150 if test "x$LINE" != x ; then
8151 eval "DEFAULT_$LINE"
8152 else
8153 no_cache=1
8154 fi
8155
8156 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
8157
8158fi;
8159
8160 eval "$ac_cv_use_listctrl"
8161 if test "$no_cache" != 1; then
8162 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
8163 fi
8164
8165 if test "$wxUSE_LISTCTRL" = yes; then
8166 echo "$as_me:$LINENO: result: yes" >&5
8167echo "${ECHO_T}yes" >&6
8168 else
8169 echo "$as_me:$LINENO: result: no" >&5
8170echo "${ECHO_T}no" >&6
8171 fi
8172
8173
8174 enablestring=
8175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
8176echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
8177 no_cache=0
8178 # Check whether --enable-notebook or --disable-notebook was given.
8179if test "${enable_notebook+set}" = set; then
8180 enableval="$enable_notebook"
8181
8182 if test "$enableval" = yes; then
8183 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
8184 else
8185 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
8186 fi
8187
8188else
8189
8190 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
8191 if test "x$LINE" != x ; then
8192 eval "DEFAULT_$LINE"
8193 else
8194 no_cache=1
8195 fi
8196
8197 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
8198
8199fi;
8200
8201 eval "$ac_cv_use_notebook"
8202 if test "$no_cache" != 1; then
8203 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
8204 fi
8205
8206 if test "$wxUSE_NOTEBOOK" = yes; then
8207 echo "$as_me:$LINENO: result: yes" >&5
8208echo "${ECHO_T}yes" >&6
8209 else
8210 echo "$as_me:$LINENO: result: no" >&5
8211echo "${ECHO_T}no" >&6
8212 fi
8213
8214
8215 enablestring=
8216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
8217echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
8218 no_cache=0
8219 # Check whether --enable-radiobox or --disable-radiobox was given.
8220if test "${enable_radiobox+set}" = set; then
8221 enableval="$enable_radiobox"
8222
8223 if test "$enableval" = yes; then
8224 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
8225 else
8226 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
8227 fi
8228
8229else
8230
8231 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
8232 if test "x$LINE" != x ; then
8233 eval "DEFAULT_$LINE"
8234 else
8235 no_cache=1
8236 fi
8237
8238 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
8239
8240fi;
8241
8242 eval "$ac_cv_use_radiobox"
8243 if test "$no_cache" != 1; then
8244 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
8245 fi
8246
8247 if test "$wxUSE_RADIOBOX" = yes; then
8248 echo "$as_me:$LINENO: result: yes" >&5
8249echo "${ECHO_T}yes" >&6
8250 else
8251 echo "$as_me:$LINENO: result: no" >&5
8252echo "${ECHO_T}no" >&6
8253 fi
8254
8255
8256 enablestring=
8257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
8258echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
8259 no_cache=0
8260 # Check whether --enable-radiobtn or --disable-radiobtn was given.
8261if test "${enable_radiobtn+set}" = set; then
8262 enableval="$enable_radiobtn"
8263
8264 if test "$enableval" = yes; then
8265 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
8266 else
8267 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
8268 fi
8269
8270else
8271
8272 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
8273 if test "x$LINE" != x ; then
8274 eval "DEFAULT_$LINE"
8275 else
8276 no_cache=1
8277 fi
8278
8279 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
8280
8281fi;
8282
8283 eval "$ac_cv_use_radiobtn"
8284 if test "$no_cache" != 1; then
8285 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
8286 fi
8287
8288 if test "$wxUSE_RADIOBTN" = yes; then
8289 echo "$as_me:$LINENO: result: yes" >&5
8290echo "${ECHO_T}yes" >&6
8291 else
8292 echo "$as_me:$LINENO: result: no" >&5
8293echo "${ECHO_T}no" >&6
8294 fi
8295
8296
8297 enablestring=
8298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
8299echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
8300 no_cache=0
8301 # Check whether --enable-sash or --disable-sash was given.
8302if test "${enable_sash+set}" = set; then
8303 enableval="$enable_sash"
8304
8305 if test "$enableval" = yes; then
8306 ac_cv_use_sash='wxUSE_SASH=yes'
8307 else
8308 ac_cv_use_sash='wxUSE_SASH=no'
8309 fi
8310
8311else
8312
8313 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
8321
8322fi;
8323
8324 eval "$ac_cv_use_sash"
8325 if test "$no_cache" != 1; then
8326 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
8327 fi
8328
8329 if test "$wxUSE_SASH" = yes; then
8330 echo "$as_me:$LINENO: result: yes" >&5
8331echo "${ECHO_T}yes" >&6
8332 else
8333 echo "$as_me:$LINENO: result: no" >&5
8334echo "${ECHO_T}no" >&6
8335 fi
8336
8337
8338 enablestring=
8339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
8340echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
8341 no_cache=0
8342 # Check whether --enable-scrollbar or --disable-scrollbar was given.
8343if test "${enable_scrollbar+set}" = set; then
8344 enableval="$enable_scrollbar"
8345
8346 if test "$enableval" = yes; then
8347 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
8348 else
8349 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
8350 fi
8351
8352else
8353
8354 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
8355 if test "x$LINE" != x ; then
8356 eval "DEFAULT_$LINE"
8357 else
8358 no_cache=1
8359 fi
8360
8361 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
8362
8363fi;
8364
8365 eval "$ac_cv_use_scrollbar"
8366 if test "$no_cache" != 1; then
8367 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
8368 fi
8369
8370 if test "$wxUSE_SCROLLBAR" = yes; then
8371 echo "$as_me:$LINENO: result: yes" >&5
8372echo "${ECHO_T}yes" >&6
8373 else
8374 echo "$as_me:$LINENO: result: no" >&5
8375echo "${ECHO_T}no" >&6
8376 fi
8377
8378
8379 enablestring=
8380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
8381echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
8382 no_cache=0
8383 # Check whether --enable-slider or --disable-slider was given.
8384if test "${enable_slider+set}" = set; then
8385 enableval="$enable_slider"
8386
8387 if test "$enableval" = yes; then
8388 ac_cv_use_slider='wxUSE_SLIDER=yes'
8389 else
8390 ac_cv_use_slider='wxUSE_SLIDER=no'
8391 fi
8392
8393else
8394
8395 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
8396 if test "x$LINE" != x ; then
8397 eval "DEFAULT_$LINE"
8398 else
8399 no_cache=1
8400 fi
8401
8402 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
8403
8404fi;
8405
8406 eval "$ac_cv_use_slider"
8407 if test "$no_cache" != 1; then
8408 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
8409 fi
8410
8411 if test "$wxUSE_SLIDER" = yes; then
8412 echo "$as_me:$LINENO: result: yes" >&5
8413echo "${ECHO_T}yes" >&6
8414 else
8415 echo "$as_me:$LINENO: result: no" >&5
8416echo "${ECHO_T}no" >&6
8417 fi
8418
8419
8420 enablestring=
8421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
8422echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
8423 no_cache=0
8424 # Check whether --enable-spinbtn or --disable-spinbtn was given.
8425if test "${enable_spinbtn+set}" = set; then
8426 enableval="$enable_spinbtn"
8427
8428 if test "$enableval" = yes; then
8429 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
8430 else
8431 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
8432 fi
8433
8434else
8435
8436 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
8437 if test "x$LINE" != x ; then
8438 eval "DEFAULT_$LINE"
8439 else
8440 no_cache=1
8441 fi
8442
8443 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
8444
8445fi;
8446
8447 eval "$ac_cv_use_spinbtn"
8448 if test "$no_cache" != 1; then
8449 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
8450 fi
8451
8452 if test "$wxUSE_SPINBTN" = yes; then
8453 echo "$as_me:$LINENO: result: yes" >&5
8454echo "${ECHO_T}yes" >&6
8455 else
8456 echo "$as_me:$LINENO: result: no" >&5
8457echo "${ECHO_T}no" >&6
8458 fi
8459
8460
8461 enablestring=
8462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
8463echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
8464 no_cache=0
8465 # Check whether --enable-spinctrl or --disable-spinctrl was given.
8466if test "${enable_spinctrl+set}" = set; then
8467 enableval="$enable_spinctrl"
8468
8469 if test "$enableval" = yes; then
8470 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
8471 else
8472 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
8473 fi
8474
8475else
8476
8477 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
8478 if test "x$LINE" != x ; then
8479 eval "DEFAULT_$LINE"
8480 else
8481 no_cache=1
8482 fi
8483
8484 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
8485
8486fi;
8487
8488 eval "$ac_cv_use_spinctrl"
8489 if test "$no_cache" != 1; then
8490 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
8491 fi
8492
8493 if test "$wxUSE_SPINCTRL" = yes; then
8494 echo "$as_me:$LINENO: result: yes" >&5
8495echo "${ECHO_T}yes" >&6
8496 else
8497 echo "$as_me:$LINENO: result: no" >&5
8498echo "${ECHO_T}no" >&6
8499 fi
8500
8501
8502 enablestring=
8503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
8504echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
8505 no_cache=0
8506 # Check whether --enable-splitter or --disable-splitter was given.
8507if test "${enable_splitter+set}" = set; then
8508 enableval="$enable_splitter"
8509
8510 if test "$enableval" = yes; then
8511 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
8512 else
8513 ac_cv_use_splitter='wxUSE_SPLITTER=no'
8514 fi
8515
8516else
8517
8518 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
8519 if test "x$LINE" != x ; then
8520 eval "DEFAULT_$LINE"
8521 else
8522 no_cache=1
8523 fi
8524
8525 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
8526
8527fi;
8528
8529 eval "$ac_cv_use_splitter"
8530 if test "$no_cache" != 1; then
8531 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
8532 fi
8533
8534 if test "$wxUSE_SPLITTER" = yes; then
8535 echo "$as_me:$LINENO: result: yes" >&5
8536echo "${ECHO_T}yes" >&6
8537 else
8538 echo "$as_me:$LINENO: result: no" >&5
8539echo "${ECHO_T}no" >&6
8540 fi
8541
8542
8543 enablestring=
8544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
8545echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
8546 no_cache=0
8547 # Check whether --enable-statbmp or --disable-statbmp was given.
8548if test "${enable_statbmp+set}" = set; then
8549 enableval="$enable_statbmp"
8550
8551 if test "$enableval" = yes; then
8552 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
8553 else
8554 ac_cv_use_statbmp='wxUSE_STATBMP=no'
8555 fi
8556
8557else
8558
8559 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
8560 if test "x$LINE" != x ; then
8561 eval "DEFAULT_$LINE"
8562 else
8563 no_cache=1
8564 fi
8565
8566 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
8567
8568fi;
8569
8570 eval "$ac_cv_use_statbmp"
8571 if test "$no_cache" != 1; then
8572 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
8573 fi
8574
8575 if test "$wxUSE_STATBMP" = yes; then
8576 echo "$as_me:$LINENO: result: yes" >&5
8577echo "${ECHO_T}yes" >&6
8578 else
8579 echo "$as_me:$LINENO: result: no" >&5
8580echo "${ECHO_T}no" >&6
8581 fi
8582
8583
8584 enablestring=
8585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
8586echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
8587 no_cache=0
8588 # Check whether --enable-statbox or --disable-statbox was given.
8589if test "${enable_statbox+set}" = set; then
8590 enableval="$enable_statbox"
8591
8592 if test "$enableval" = yes; then
8593 ac_cv_use_statbox='wxUSE_STATBOX=yes'
8594 else
8595 ac_cv_use_statbox='wxUSE_STATBOX=no'
8596 fi
8597
8598else
8599
8600 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
8601 if test "x$LINE" != x ; then
8602 eval "DEFAULT_$LINE"
8603 else
8604 no_cache=1
8605 fi
8606
8607 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
8608
8609fi;
8610
8611 eval "$ac_cv_use_statbox"
8612 if test "$no_cache" != 1; then
8613 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
8614 fi
8615
8616 if test "$wxUSE_STATBOX" = yes; then
8617 echo "$as_me:$LINENO: result: yes" >&5
8618echo "${ECHO_T}yes" >&6
8619 else
8620 echo "$as_me:$LINENO: result: no" >&5
8621echo "${ECHO_T}no" >&6
8622 fi
8623
8624
8625 enablestring=
8626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
8627echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
8628 no_cache=0
8629 # Check whether --enable-statline or --disable-statline was given.
8630if test "${enable_statline+set}" = set; then
8631 enableval="$enable_statline"
8632
8633 if test "$enableval" = yes; then
8634 ac_cv_use_statline='wxUSE_STATLINE=yes'
8635 else
8636 ac_cv_use_statline='wxUSE_STATLINE=no'
8637 fi
8638
8639else
8640
8641 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8642 if test "x$LINE" != x ; then
8643 eval "DEFAULT_$LINE"
8644 else
8645 no_cache=1
8646 fi
8647
8648 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
8649
8650fi;
8651
8652 eval "$ac_cv_use_statline"
8653 if test "$no_cache" != 1; then
8654 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8655 fi
8656
8657 if test "$wxUSE_STATLINE" = yes; then
8658 echo "$as_me:$LINENO: result: yes" >&5
8659echo "${ECHO_T}yes" >&6
8660 else
8661 echo "$as_me:$LINENO: result: no" >&5
8662echo "${ECHO_T}no" >&6
8663 fi
8664
8665
8666 enablestring=
8667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8668echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
8669 no_cache=0
8670 # Check whether --enable-stattext or --disable-stattext was given.
8671if test "${enable_stattext+set}" = set; then
8672 enableval="$enable_stattext"
8673
8674 if test "$enableval" = yes; then
8675 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8676 else
8677 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8678 fi
8679
8680else
8681
8682 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8683 if test "x$LINE" != x ; then
8684 eval "DEFAULT_$LINE"
8685 else
8686 no_cache=1
8687 fi
8688
8689 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
8690
8691fi;
8692
8693 eval "$ac_cv_use_stattext"
8694 if test "$no_cache" != 1; then
8695 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8696 fi
8697
8698 if test "$wxUSE_STATTEXT" = yes; then
8699 echo "$as_me:$LINENO: result: yes" >&5
8700echo "${ECHO_T}yes" >&6
8701 else
8702 echo "$as_me:$LINENO: result: no" >&5
8703echo "${ECHO_T}no" >&6
8704 fi
8705
8706
8707 enablestring=
8708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8709echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
8710 no_cache=0
8711 # Check whether --enable-statusbar or --disable-statusbar was given.
8712if test "${enable_statusbar+set}" = set; then
8713 enableval="$enable_statusbar"
8714
8715 if test "$enableval" = yes; then
8716 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8717 else
8718 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8719 fi
8720
8721else
8722
8723 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8724 if test "x$LINE" != x ; then
8725 eval "DEFAULT_$LINE"
8726 else
8727 no_cache=1
8728 fi
8729
8730 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
8731
8732fi;
8733
8734 eval "$ac_cv_use_statusbar"
8735 if test "$no_cache" != 1; then
8736 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8737 fi
8738
8739 if test "$wxUSE_STATUSBAR" = yes; then
8740 echo "$as_me:$LINENO: result: yes" >&5
8741echo "${ECHO_T}yes" >&6
8742 else
8743 echo "$as_me:$LINENO: result: no" >&5
8744echo "${ECHO_T}no" >&6
8745 fi
8746
8747
8748 enablestring=
8749 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8750echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
8751 no_cache=0
8752 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8753if test "${enable_tabdialog+set}" = set; then
8754 enableval="$enable_tabdialog"
8755
8756 if test "$enableval" = yes; then
8757 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8758 else
8759 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8760 fi
8761
8762else
8763
8764 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8765 if test "x$LINE" != x ; then
8766 eval "DEFAULT_$LINE"
8767 else
8768 no_cache=1
8769 fi
8770
8771 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
8772
8773fi;
8774
8775 eval "$ac_cv_use_tabdialog"
8776 if test "$no_cache" != 1; then
8777 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8778 fi
8779
8780 if test "$wxUSE_TABDIALOG" = yes; then
8781 echo "$as_me:$LINENO: result: yes" >&5
8782echo "${ECHO_T}yes" >&6
8783 else
8784 echo "$as_me:$LINENO: result: no" >&5
8785echo "${ECHO_T}no" >&6
8786 fi
8787
8788
8789 enablestring=
8790 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8791echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
8792 no_cache=0
8793 # Check whether --enable-textctrl or --disable-textctrl was given.
8794if test "${enable_textctrl+set}" = set; then
8795 enableval="$enable_textctrl"
8796
8797 if test "$enableval" = yes; then
8798 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8799 else
8800 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8801 fi
8802
8803else
8804
8805 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8806 if test "x$LINE" != x ; then
8807 eval "DEFAULT_$LINE"
8808 else
8809 no_cache=1
8810 fi
8811
8812 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
8813
8814fi;
8815
8816 eval "$ac_cv_use_textctrl"
8817 if test "$no_cache" != 1; then
8818 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8819 fi
8820
8821 if test "$wxUSE_TEXTCTRL" = yes; then
8822 echo "$as_me:$LINENO: result: yes" >&5
8823echo "${ECHO_T}yes" >&6
8824 else
8825 echo "$as_me:$LINENO: result: no" >&5
8826echo "${ECHO_T}no" >&6
8827 fi
8828
8829
8830 enablestring=
8831 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8832echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
8833 no_cache=0
8834 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8835if test "${enable_togglebtn+set}" = set; then
8836 enableval="$enable_togglebtn"
8837
8838 if test "$enableval" = yes; then
8839 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8840 else
8841 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8842 fi
8843
8844else
8845
8846 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8847 if test "x$LINE" != x ; then
8848 eval "DEFAULT_$LINE"
8849 else
8850 no_cache=1
8851 fi
8852
8853 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
8854
8855fi;
8856
8857 eval "$ac_cv_use_togglebtn"
8858 if test "$no_cache" != 1; then
8859 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8860 fi
8861
8862 if test "$wxUSE_TOGGLEBTN" = yes; then
8863 echo "$as_me:$LINENO: result: yes" >&5
8864echo "${ECHO_T}yes" >&6
8865 else
8866 echo "$as_me:$LINENO: result: no" >&5
8867echo "${ECHO_T}no" >&6
8868 fi
8869
8870
8871 enablestring=
8872 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8873echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
8874 no_cache=0
8875 # Check whether --enable-toolbar or --disable-toolbar was given.
8876if test "${enable_toolbar+set}" = set; then
8877 enableval="$enable_toolbar"
8878
8879 if test "$enableval" = yes; then
8880 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8881 else
8882 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8883 fi
8884
8885else
8886
8887 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8888 if test "x$LINE" != x ; then
8889 eval "DEFAULT_$LINE"
8890 else
8891 no_cache=1
8892 fi
8893
8894 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
8895
8896fi;
8897
8898 eval "$ac_cv_use_toolbar"
8899 if test "$no_cache" != 1; then
8900 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8901 fi
8902
8903 if test "$wxUSE_TOOLBAR" = yes; then
8904 echo "$as_me:$LINENO: result: yes" >&5
8905echo "${ECHO_T}yes" >&6
8906 else
8907 echo "$as_me:$LINENO: result: no" >&5
8908echo "${ECHO_T}no" >&6
8909 fi
8910
8911
8912 enablestring=
8913 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8914echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
8915 no_cache=0
8916 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8917if test "${enable_tbarnative+set}" = set; then
8918 enableval="$enable_tbarnative"
8919
8920 if test "$enableval" = yes; then
8921 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8922 else
8923 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8924 fi
8925
8926else
8927
8928 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8929 if test "x$LINE" != x ; then
8930 eval "DEFAULT_$LINE"
8931 else
8932 no_cache=1
8933 fi
8934
8935 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
8936
8937fi;
8938
8939 eval "$ac_cv_use_tbarnative"
8940 if test "$no_cache" != 1; then
8941 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8942 fi
8943
8944 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
8945 echo "$as_me:$LINENO: result: yes" >&5
8946echo "${ECHO_T}yes" >&6
8947 else
8948 echo "$as_me:$LINENO: result: no" >&5
8949echo "${ECHO_T}no" >&6
8950 fi
8951
8952
8953 enablestring=
8954 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8955echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
8956 no_cache=0
8957 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8958if test "${enable_tbarsmpl+set}" = set; then
8959 enableval="$enable_tbarsmpl"
8960
8961 if test "$enableval" = yes; then
8962 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8963 else
8964 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8965 fi
8966
8967else
8968
8969 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8970 if test "x$LINE" != x ; then
8971 eval "DEFAULT_$LINE"
8972 else
8973 no_cache=1
8974 fi
8975
8976 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
8977
8978fi;
8979
8980 eval "$ac_cv_use_tbarsmpl"
8981 if test "$no_cache" != 1; then
8982 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8983 fi
8984
8985 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
8986 echo "$as_me:$LINENO: result: yes" >&5
8987echo "${ECHO_T}yes" >&6
8988 else
8989 echo "$as_me:$LINENO: result: no" >&5
8990echo "${ECHO_T}no" >&6
8991 fi
8992
8993
0093c2fc
VZ
8994 enablestring=
8995 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
8996echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6
8997 no_cache=0
8998 # Check whether --enable-treebook or --disable-treebook was given.
8999if test "${enable_treebook+set}" = set; then
9000 enableval="$enable_treebook"
9001
9002 if test "$enableval" = yes; then
9003 ac_cv_use_treebook='wxUSE_TREEBOOK=yes'
9004 else
9005 ac_cv_use_treebook='wxUSE_TREEBOOK=no'
9006 fi
9007
9008else
9009
9010 LINE=`grep "wxUSE_TREEBOOK" ${wx_arg_cache_file}`
9011 if test "x$LINE" != x ; then
9012 eval "DEFAULT_$LINE"
9013 else
9014 no_cache=1
9015 fi
9016
9017 ac_cv_use_treebook='wxUSE_TREEBOOK='$DEFAULT_wxUSE_TREEBOOK
9018
9019fi;
9020
9021 eval "$ac_cv_use_treebook"
9022 if test "$no_cache" != 1; then
9023 echo $ac_cv_use_treebook >> ${wx_arg_cache_file}.tmp
9024 fi
9025
9026 if test "$wxUSE_TREEBOOK" = yes; then
9027 echo "$as_me:$LINENO: result: yes" >&5
9028echo "${ECHO_T}yes" >&6
9029 else
9030 echo "$as_me:$LINENO: result: no" >&5
9031echo "${ECHO_T}no" >&6
9032 fi
9033
9034
a848cd7e
SC
9035 enablestring=
9036 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
9037echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
9038 no_cache=0
9039 # Check whether --enable-treectrl or --disable-treectrl was given.
9040if test "${enable_treectrl+set}" = set; then
9041 enableval="$enable_treectrl"
9042
9043 if test "$enableval" = yes; then
9044 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
9045 else
9046 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
9047 fi
9048
9049else
9050
9051 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
9052 if test "x$LINE" != x ; then
9053 eval "DEFAULT_$LINE"
9054 else
9055 no_cache=1
9056 fi
9057
9058 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
9059
9060fi;
9061
9062 eval "$ac_cv_use_treectrl"
9063 if test "$no_cache" != 1; then
9064 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
9065 fi
9066
9067 if test "$wxUSE_TREECTRL" = yes; then
9068 echo "$as_me:$LINENO: result: yes" >&5
9069echo "${ECHO_T}yes" >&6
9070 else
9071 echo "$as_me:$LINENO: result: no" >&5
9072echo "${ECHO_T}no" >&6
9073 fi
9074
9075
9076 enablestring=
9077 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
9078echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9079 no_cache=0
9080 # Check whether --enable-tipwindow or --disable-tipwindow was given.
9081if test "${enable_tipwindow+set}" = set; then
9082 enableval="$enable_tipwindow"
9083
9084 if test "$enableval" = yes; then
9085 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
9086 else
9087 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
9088 fi
9089
9090else
9091
9092 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
9093 if test "x$LINE" != x ; then
9094 eval "DEFAULT_$LINE"
9095 else
9096 no_cache=1
9097 fi
9098
9099 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9100
9101fi;
9102
9103 eval "$ac_cv_use_tipwindow"
9104 if test "$no_cache" != 1; then
9105 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
9106 fi
9107
9108 if test "$wxUSE_TIPWINDOW" = yes; then
9109 echo "$as_me:$LINENO: result: yes" >&5
9110echo "${ECHO_T}yes" >&6
9111 else
9112 echo "$as_me:$LINENO: result: no" >&5
9113echo "${ECHO_T}no" >&6
9114 fi
9115
9116
9117 enablestring=
9118 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
9119echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9120 no_cache=0
9121 # Check whether --enable-popupwin or --disable-popupwin was given.
9122if test "${enable_popupwin+set}" = set; then
9123 enableval="$enable_popupwin"
9124
9125 if test "$enableval" = yes; then
9126 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
9127 else
9128 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
9129 fi
9130
9131else
9132
9133 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
9134 if test "x$LINE" != x ; then
9135 eval "DEFAULT_$LINE"
9136 else
9137 no_cache=1
9138 fi
9139
9140 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9141
9142fi;
9143
9144 eval "$ac_cv_use_popupwin"
9145 if test "$no_cache" != 1; then
9146 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
9147 fi
9148
9149 if test "$wxUSE_POPUPWIN" = yes; then
9150 echo "$as_me:$LINENO: result: yes" >&5
9151echo "${ECHO_T}yes" >&6
9152 else
9153 echo "$as_me:$LINENO: result: no" >&5
9154echo "${ECHO_T}no" >&6
9155 fi
9156
9157
9158
9159
9160 enablestring=
9161 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
9162echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
9163 no_cache=0
9164 # Check whether --enable-commondlg or --disable-commondlg was given.
9165if test "${enable_commondlg+set}" = set; then
9166 enableval="$enable_commondlg"
9167
9168 if test "$enableval" = yes; then
9169 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
9170 else
9171 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
9172 fi
9173
9174else
9175
9176 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
9177 if test "x$LINE" != x ; then
9178 eval "DEFAULT_$LINE"
9179 else
9180 no_cache=1
9181 fi
9182
9183 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
9184
9185fi;
9186
9187 eval "$ac_cv_use_commondlg"
9188 if test "$no_cache" != 1; then
9189 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
9190 fi
9191
9192 if test "$wxUSE_COMMONDLGS" = yes; then
9193 echo "$as_me:$LINENO: result: yes" >&5
9194echo "${ECHO_T}yes" >&6
9195 else
9196 echo "$as_me:$LINENO: result: no" >&5
9197echo "${ECHO_T}no" >&6
9198 fi
9199
9200
9201 enablestring=
9202 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
9203echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
9204 no_cache=0
9205 # Check whether --enable-choicedlg or --disable-choicedlg was given.
9206if test "${enable_choicedlg+set}" = set; then
9207 enableval="$enable_choicedlg"
9208
9209 if test "$enableval" = yes; then
9210 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
9211 else
9212 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
9213 fi
9214
9215else
9216
9217 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
9218 if test "x$LINE" != x ; then
9219 eval "DEFAULT_$LINE"
9220 else
9221 no_cache=1
9222 fi
9223
9224 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
9225
9226fi;
9227
9228 eval "$ac_cv_use_choicedlg"
9229 if test "$no_cache" != 1; then
9230 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
9231 fi
9232
9233 if test "$wxUSE_CHOICEDLG" = yes; then
9234 echo "$as_me:$LINENO: result: yes" >&5
9235echo "${ECHO_T}yes" >&6
9236 else
9237 echo "$as_me:$LINENO: result: no" >&5
9238echo "${ECHO_T}no" >&6
9239 fi
9240
9241
9242 enablestring=
9243 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
9244echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
9245 no_cache=0
9246 # Check whether --enable-coldlg or --disable-coldlg was given.
9247if test "${enable_coldlg+set}" = set; then
9248 enableval="$enable_coldlg"
9249
9250 if test "$enableval" = yes; then
9251 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
9252 else
9253 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
9254 fi
9255
9256else
9257
9258 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
9259 if test "x$LINE" != x ; then
9260 eval "DEFAULT_$LINE"
9261 else
9262 no_cache=1
9263 fi
9264
9265 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
9266
9267fi;
9268
9269 eval "$ac_cv_use_coldlg"
9270 if test "$no_cache" != 1; then
9271 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
9272 fi
9273
9274 if test "$wxUSE_COLOURDLG" = yes; then
9275 echo "$as_me:$LINENO: result: yes" >&5
9276echo "${ECHO_T}yes" >&6
9277 else
9278 echo "$as_me:$LINENO: result: no" >&5
9279echo "${ECHO_T}no" >&6
9280 fi
9281
9282
9283 enablestring=
9284 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
9285echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
9286 no_cache=0
9287 # Check whether --enable-filedlg or --disable-filedlg was given.
9288if test "${enable_filedlg+set}" = set; then
9289 enableval="$enable_filedlg"
9290
9291 if test "$enableval" = yes; then
9292 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
9293 else
9294 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
9295 fi
9296
9297else
9298
9299 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
9300 if test "x$LINE" != x ; then
9301 eval "DEFAULT_$LINE"
9302 else
9303 no_cache=1
9304 fi
9305
9306 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
9307
9308fi;
9309
9310 eval "$ac_cv_use_filedlg"
9311 if test "$no_cache" != 1; then
9312 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
9313 fi
9314
9315 if test "$wxUSE_FILEDLG" = yes; then
9316 echo "$as_me:$LINENO: result: yes" >&5
9317echo "${ECHO_T}yes" >&6
9318 else
9319 echo "$as_me:$LINENO: result: no" >&5
9320echo "${ECHO_T}no" >&6
9321 fi
9322
9323
9324 enablestring=
9325 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
9326echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
9327 no_cache=0
9328 # Check whether --enable-finddlg or --disable-finddlg was given.
9329if test "${enable_finddlg+set}" = set; then
9330 enableval="$enable_finddlg"
9331
9332 if test "$enableval" = yes; then
9333 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
9334 else
9335 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
9336 fi
9337
9338else
9339
9340 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
9341 if test "x$LINE" != x ; then
9342 eval "DEFAULT_$LINE"
9343 else
9344 no_cache=1
9345 fi
9346
9347 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
9348
9349fi;
9350
9351 eval "$ac_cv_use_finddlg"
9352 if test "$no_cache" != 1; then
9353 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
9354 fi
9355
9356 if test "$wxUSE_FINDREPLDLG" = yes; then
9357 echo "$as_me:$LINENO: result: yes" >&5
9358echo "${ECHO_T}yes" >&6
9359 else
9360 echo "$as_me:$LINENO: result: no" >&5
9361echo "${ECHO_T}no" >&6
9362 fi
9363
9364
9365 enablestring=
9366 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
9367echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
9368 no_cache=0
9369 # Check whether --enable-fontdlg or --disable-fontdlg was given.
9370if test "${enable_fontdlg+set}" = set; then
9371 enableval="$enable_fontdlg"
9372
9373 if test "$enableval" = yes; then
9374 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
9375 else
9376 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
9377 fi
9378
9379else
9380
9381 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
9382 if test "x$LINE" != x ; then
9383 eval "DEFAULT_$LINE"
9384 else
9385 no_cache=1
9386 fi
9387
9388 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
9389
9390fi;
9391
9392 eval "$ac_cv_use_fontdlg"
9393 if test "$no_cache" != 1; then
9394 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
9395 fi
9396
9397 if test "$wxUSE_FONTDLG" = yes; then
9398 echo "$as_me:$LINENO: result: yes" >&5
9399echo "${ECHO_T}yes" >&6
9400 else
9401 echo "$as_me:$LINENO: result: no" >&5
9402echo "${ECHO_T}no" >&6
9403 fi
9404
9405
9406 enablestring=
9407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
9408echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
9409 no_cache=0
9410 # Check whether --enable-dirdlg or --disable-dirdlg was given.
9411if test "${enable_dirdlg+set}" = set; then
9412 enableval="$enable_dirdlg"
9413
9414 if test "$enableval" = yes; then
9415 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
9416 else
9417 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
9418 fi
9419
9420else
9421
9422 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
9423 if test "x$LINE" != x ; then
9424 eval "DEFAULT_$LINE"
9425 else
9426 no_cache=1
9427 fi
9428
9429 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
9430
9431fi;
9432
9433 eval "$ac_cv_use_dirdlg"
9434 if test "$no_cache" != 1; then
9435 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
9436 fi
9437
9438 if test "$wxUSE_DIRDLG" = yes; then
9439 echo "$as_me:$LINENO: result: yes" >&5
9440echo "${ECHO_T}yes" >&6
9441 else
9442 echo "$as_me:$LINENO: result: no" >&5
9443echo "${ECHO_T}no" >&6
9444 fi
9445
9446
9447 enablestring=
9448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
9449echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
9450 no_cache=0
9451 # Check whether --enable-msgdlg or --disable-msgdlg was given.
9452if test "${enable_msgdlg+set}" = set; then
9453 enableval="$enable_msgdlg"
9454
9455 if test "$enableval" = yes; then
9456 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
9457 else
9458 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
9459 fi
9460
9461else
9462
9463 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
9464 if test "x$LINE" != x ; then
9465 eval "DEFAULT_$LINE"
9466 else
9467 no_cache=1
9468 fi
9469
9470 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
9471
9472fi;
9473
9474 eval "$ac_cv_use_msgdlg"
9475 if test "$no_cache" != 1; then
9476 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
9477 fi
9478
9479 if test "$wxUSE_MSGDLG" = yes; then
9480 echo "$as_me:$LINENO: result: yes" >&5
9481echo "${ECHO_T}yes" >&6
9482 else
9483 echo "$as_me:$LINENO: result: no" >&5
9484echo "${ECHO_T}no" >&6
9485 fi
9486
9487
9488 enablestring=
9489 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
9490echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
9491 no_cache=0
9492 # Check whether --enable-numberdlg or --disable-numberdlg was given.
9493if test "${enable_numberdlg+set}" = set; then
9494 enableval="$enable_numberdlg"
9495
9496 if test "$enableval" = yes; then
9497 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
9498 else
9499 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
9500 fi
9501
9502else
9503
9504 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
9505 if test "x$LINE" != x ; then
9506 eval "DEFAULT_$LINE"
9507 else
9508 no_cache=1
9509 fi
9510
9511 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
9512
9513fi;
9514
9515 eval "$ac_cv_use_numberdlg"
9516 if test "$no_cache" != 1; then
9517 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
9518 fi
9519
9520 if test "$wxUSE_NUMBERDLG" = yes; then
9521 echo "$as_me:$LINENO: result: yes" >&5
9522echo "${ECHO_T}yes" >&6
9523 else
9524 echo "$as_me:$LINENO: result: no" >&5
9525echo "${ECHO_T}no" >&6
9526 fi
9527
9528
9529 enablestring=
9530 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
9531echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
9532 no_cache=0
9533 # Check whether --enable-splash or --disable-splash was given.
9534if test "${enable_splash+set}" = set; then
9535 enableval="$enable_splash"
9536
9537 if test "$enableval" = yes; then
9538 ac_cv_use_splash='wxUSE_SPLASH=yes'
9539 else
9540 ac_cv_use_splash='wxUSE_SPLASH=no'
9541 fi
9542
9543else
9544
9545 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
9546 if test "x$LINE" != x ; then
9547 eval "DEFAULT_$LINE"
9548 else
9549 no_cache=1
9550 fi
9551
9552 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
9553
9554fi;
9555
9556 eval "$ac_cv_use_splash"
9557 if test "$no_cache" != 1; then
9558 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
9559 fi
9560
9561 if test "$wxUSE_SPLASH" = yes; then
9562 echo "$as_me:$LINENO: result: yes" >&5
9563echo "${ECHO_T}yes" >&6
9564 else
9565 echo "$as_me:$LINENO: result: no" >&5
9566echo "${ECHO_T}no" >&6
9567 fi
9568
9569
9570 enablestring=
9571 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
9572echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
9573 no_cache=0
9574 # Check whether --enable-textdlg or --disable-textdlg was given.
9575if test "${enable_textdlg+set}" = set; then
9576 enableval="$enable_textdlg"
9577
9578 if test "$enableval" = yes; then
9579 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
9580 else
9581 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
9582 fi
9583
9584else
9585
9586 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
9587 if test "x$LINE" != x ; then
9588 eval "DEFAULT_$LINE"
9589 else
9590 no_cache=1
9591 fi
9592
9593 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
9594
9595fi;
9596
9597 eval "$ac_cv_use_textdlg"
9598 if test "$no_cache" != 1; then
9599 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
9600 fi
9601
9602 if test "$wxUSE_TEXTDLG" = yes; then
9603 echo "$as_me:$LINENO: result: yes" >&5
9604echo "${ECHO_T}yes" >&6
9605 else
9606 echo "$as_me:$LINENO: result: no" >&5
9607echo "${ECHO_T}no" >&6
9608 fi
9609
9610
9611 enablestring=
9612 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
9613echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
9614 no_cache=0
9615 # Check whether --enable-tipdlg or --disable-tipdlg was given.
9616if test "${enable_tipdlg+set}" = set; then
9617 enableval="$enable_tipdlg"
9618
9619 if test "$enableval" = yes; then
9620 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
9621 else
9622 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
9623 fi
9624
9625else
9626
9627 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
9628 if test "x$LINE" != x ; then
9629 eval "DEFAULT_$LINE"
9630 else
9631 no_cache=1
9632 fi
9633
9634 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
9635
9636fi;
9637
9638 eval "$ac_cv_use_tipdlg"
9639 if test "$no_cache" != 1; then
9640 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
9641 fi
9642
9643 if test "$wxUSE_STARTUP_TIPS" = yes; then
9644 echo "$as_me:$LINENO: result: yes" >&5
9645echo "${ECHO_T}yes" >&6
9646 else
9647 echo "$as_me:$LINENO: result: no" >&5
9648echo "${ECHO_T}no" >&6
9649 fi
9650
9651
9652 enablestring=
9653 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
9654echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
9655 no_cache=0
9656 # Check whether --enable-progressdlg or --disable-progressdlg was given.
9657if test "${enable_progressdlg+set}" = set; then
9658 enableval="$enable_progressdlg"
9659
9660 if test "$enableval" = yes; then
9661 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
9662 else
9663 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
9664 fi
9665
9666else
9667
9668 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
9669 if test "x$LINE" != x ; then
9670 eval "DEFAULT_$LINE"
9671 else
9672 no_cache=1
9673 fi
9674
9675 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
9676
9677fi;
9678
9679 eval "$ac_cv_use_progressdlg"
9680 if test "$no_cache" != 1; then
9681 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9682 fi
9683
9684 if test "$wxUSE_PROGRESSDLG" = yes; then
9685 echo "$as_me:$LINENO: result: yes" >&5
9686echo "${ECHO_T}yes" >&6
9687 else
9688 echo "$as_me:$LINENO: result: no" >&5
9689echo "${ECHO_T}no" >&6
9690 fi
9691
9692
9693 enablestring=
9694 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9695echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
9696 no_cache=0
9697 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9698if test "${enable_wizarddlg+set}" = set; then
9699 enableval="$enable_wizarddlg"
9700
9701 if test "$enableval" = yes; then
9702 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9703 else
9704 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9705 fi
9706
9707else
9708
9709 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9710 if test "x$LINE" != x ; then
9711 eval "DEFAULT_$LINE"
9712 else
9713 no_cache=1
9714 fi
9715
9716 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
9717
9718fi;
9719
9720 eval "$ac_cv_use_wizarddlg"
9721 if test "$no_cache" != 1; then
9722 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9723 fi
9724
9725 if test "$wxUSE_WIZARDDLG" = yes; then
9726 echo "$as_me:$LINENO: result: yes" >&5
9727echo "${ECHO_T}yes" >&6
9728 else
9729 echo "$as_me:$LINENO: result: no" >&5
9730echo "${ECHO_T}no" >&6
9731 fi
9732
9733
9734
9735
9736 enablestring=
9737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9738echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
9739 no_cache=0
9740 # Check whether --enable-menus or --disable-menus was given.
9741if test "${enable_menus+set}" = set; then
9742 enableval="$enable_menus"
9743
9744 if test "$enableval" = yes; then
9745 ac_cv_use_menus='wxUSE_MENUS=yes'
9746 else
9747 ac_cv_use_menus='wxUSE_MENUS=no'
9748 fi
9749
9750else
9751
9752 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9753 if test "x$LINE" != x ; then
9754 eval "DEFAULT_$LINE"
9755 else
9756 no_cache=1
9757 fi
9758
9759 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
9760
9761fi;
9762
9763 eval "$ac_cv_use_menus"
9764 if test "$no_cache" != 1; then
9765 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9766 fi
9767
9768 if test "$wxUSE_MENUS" = yes; then
9769 echo "$as_me:$LINENO: result: yes" >&5
9770echo "${ECHO_T}yes" >&6
9771 else
9772 echo "$as_me:$LINENO: result: no" >&5
9773echo "${ECHO_T}no" >&6
9774 fi
9775
9776
9777 enablestring=
9778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9779echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
9780 no_cache=0
9781 # Check whether --enable-miniframe or --disable-miniframe was given.
9782if test "${enable_miniframe+set}" = set; then
9783 enableval="$enable_miniframe"
9784
9785 if test "$enableval" = yes; then
9786 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9787 else
9788 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9789 fi
9790
9791else
9792
9793 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9794 if test "x$LINE" != x ; then
9795 eval "DEFAULT_$LINE"
9796 else
9797 no_cache=1
9798 fi
9799
9800 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
9801
9802fi;
9803
9804 eval "$ac_cv_use_miniframe"
9805 if test "$no_cache" != 1; then
9806 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9807 fi
9808
9809 if test "$wxUSE_MINIFRAME" = yes; then
9810 echo "$as_me:$LINENO: result: yes" >&5
9811echo "${ECHO_T}yes" >&6
9812 else
9813 echo "$as_me:$LINENO: result: no" >&5
9814echo "${ECHO_T}no" >&6
9815 fi
9816
9817
9818 enablestring=
9819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9820echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
9821 no_cache=0
9822 # Check whether --enable-tooltips or --disable-tooltips was given.
9823if test "${enable_tooltips+set}" = set; then
9824 enableval="$enable_tooltips"
9825
9826 if test "$enableval" = yes; then
9827 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9828 else
9829 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9830 fi
9831
9832else
9833
9834 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9835 if test "x$LINE" != x ; then
9836 eval "DEFAULT_$LINE"
9837 else
9838 no_cache=1
9839 fi
9840
9841 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
9842
9843fi;
9844
9845 eval "$ac_cv_use_tooltips"
9846 if test "$no_cache" != 1; then
9847 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9848 fi
9849
9850 if test "$wxUSE_TOOLTIPS" = yes; then
9851 echo "$as_me:$LINENO: result: yes" >&5
9852echo "${ECHO_T}yes" >&6
9853 else
9854 echo "$as_me:$LINENO: result: no" >&5
9855echo "${ECHO_T}no" >&6
9856 fi
9857
9858
9859 enablestring=
9860 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9861echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
9862 no_cache=0
9863 # Check whether --enable-splines or --disable-splines was given.
9864if test "${enable_splines+set}" = set; then
9865 enableval="$enable_splines"
9866
9867 if test "$enableval" = yes; then
9868 ac_cv_use_splines='wxUSE_SPLINES=yes'
9869 else
9870 ac_cv_use_splines='wxUSE_SPLINES=no'
9871 fi
9872
9873else
9874
9875 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9876 if test "x$LINE" != x ; then
9877 eval "DEFAULT_$LINE"
9878 else
9879 no_cache=1
9880 fi
9881
9882 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
9883
9884fi;
9885
9886 eval "$ac_cv_use_splines"
9887 if test "$no_cache" != 1; then
9888 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9889 fi
9890
9891 if test "$wxUSE_SPLINES" = yes; then
9892 echo "$as_me:$LINENO: result: yes" >&5
9893echo "${ECHO_T}yes" >&6
9894 else
9895 echo "$as_me:$LINENO: result: no" >&5
9896echo "${ECHO_T}no" >&6
9897 fi
9898
9899
fbe2ca43
SN
9900 enablestring=
9901 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
9902echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6
9903 no_cache=0
9904 # Check whether --enable-mousewheel or --disable-mousewheel was given.
9905if test "${enable_mousewheel+set}" = set; then
9906 enableval="$enable_mousewheel"
9907
9908 if test "$enableval" = yes; then
9909 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
9910 else
9911 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
9912 fi
9913
9914else
9915
9916 LINE=`grep "wxUSE_MOUSEWHEEL" ${wx_arg_cache_file}`
9917 if test "x$LINE" != x ; then
9918 eval "DEFAULT_$LINE"
9919 else
9920 no_cache=1
9921 fi
9922
9923 ac_cv_use_mousewheel='wxUSE_MOUSEWHEEL='$DEFAULT_wxUSE_MOUSEWHEEL
9924
9925fi;
9926
9927 eval "$ac_cv_use_mousewheel"
9928 if test "$no_cache" != 1; then
9929 echo $ac_cv_use_mousewheel >> ${wx_arg_cache_file}.tmp
9930 fi
9931
9932 if test "$wxUSE_MOUSEWHEEL" = yes; then
9933 echo "$as_me:$LINENO: result: yes" >&5
9934echo "${ECHO_T}yes" >&6
9935 else
9936 echo "$as_me:$LINENO: result: no" >&5
9937echo "${ECHO_T}no" >&6
9938 fi
9939
9940
a848cd7e
SC
9941 enablestring=
9942 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9943echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
9944 no_cache=0
9945 # Check whether --enable-validators or --disable-validators was given.
9946if test "${enable_validators+set}" = set; then
9947 enableval="$enable_validators"
9948
9949 if test "$enableval" = yes; then
9950 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9951 else
9952 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9953 fi
9954
9955else
9956
9957 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9958 if test "x$LINE" != x ; then
9959 eval "DEFAULT_$LINE"
9960 else
9961 no_cache=1
9962 fi
9963
9964 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
9965
9966fi;
9967
9968 eval "$ac_cv_use_validators"
9969 if test "$no_cache" != 1; then
9970 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9971 fi
9972
9973 if test "$wxUSE_VALIDATORS" = yes; then
9974 echo "$as_me:$LINENO: result: yes" >&5
9975echo "${ECHO_T}yes" >&6
9976 else
9977 echo "$as_me:$LINENO: result: no" >&5
9978echo "${ECHO_T}no" >&6
9979 fi
9980
9981
9982 enablestring=
9983 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9984echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
9985 no_cache=0
9986 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9987if test "${enable_busyinfo+set}" = set; then
9988 enableval="$enable_busyinfo"
9989
9990 if test "$enableval" = yes; then
9991 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9992 else
9993 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9994 fi
9995
9996else
9997
9998 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9999 if test "x$LINE" != x ; then
10000 eval "DEFAULT_$LINE"
10001 else
10002 no_cache=1
10003 fi
10004
10005 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10006
10007fi;
10008
10009 eval "$ac_cv_use_busyinfo"
10010 if test "$no_cache" != 1; then
10011 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
10012 fi
10013
10014 if test "$wxUSE_BUSYINFO" = yes; then
10015 echo "$as_me:$LINENO: result: yes" >&5
10016echo "${ECHO_T}yes" >&6
10017 else
10018 echo "$as_me:$LINENO: result: no" >&5
10019echo "${ECHO_T}no" >&6
10020 fi
10021
10022
10023 enablestring=
10024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
10025echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
10026 no_cache=0
10027 # Check whether --enable-joystick or --disable-joystick was given.
10028if test "${enable_joystick+set}" = set; then
10029 enableval="$enable_joystick"
10030
10031 if test "$enableval" = yes; then
10032 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
10033 else
10034 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
10035 fi
10036
10037else
10038
10039 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
10040 if test "x$LINE" != x ; then
10041 eval "DEFAULT_$LINE"
10042 else
10043 no_cache=1
10044 fi
10045
10046 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
10047
10048fi;
10049
10050 eval "$ac_cv_use_joystick"
10051 if test "$no_cache" != 1; then
10052 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
10053 fi
10054
10055 if test "$wxUSE_JOYSTICK" = yes; then
10056 echo "$as_me:$LINENO: result: yes" >&5
10057echo "${ECHO_T}yes" >&6
10058 else
10059 echo "$as_me:$LINENO: result: no" >&5
10060echo "${ECHO_T}no" >&6
10061 fi
10062
10063
10064 enablestring=
10065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10066echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
10067 no_cache=0
10068 # Check whether --enable-metafile or --disable-metafile was given.
10069if test "${enable_metafile+set}" = set; then
10070 enableval="$enable_metafile"
10071
10072 if test "$enableval" = yes; then
10073 ac_cv_use_metafile='wxUSE_METAFILE=yes'
10074 else
10075 ac_cv_use_metafile='wxUSE_METAFILE=no'
10076 fi
10077
10078else
10079
10080 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
10081 if test "x$LINE" != x ; then
10082 eval "DEFAULT_$LINE"
10083 else
10084 no_cache=1
10085 fi
10086
10087 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
10088
10089fi;
10090
10091 eval "$ac_cv_use_metafile"
10092 if test "$no_cache" != 1; then
10093 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
10094 fi
10095
10096 if test "$wxUSE_METAFILE" = yes; then
10097 echo "$as_me:$LINENO: result: yes" >&5
10098echo "${ECHO_T}yes" >&6
10099 else
10100 echo "$as_me:$LINENO: result: no" >&5
10101echo "${ECHO_T}no" >&6
10102 fi
10103
10104
10105 enablestring=
10106 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
10107echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
10108 no_cache=0
10109 # Check whether --enable-dragimage or --disable-dragimage was given.
10110if test "${enable_dragimage+set}" = set; then
10111 enableval="$enable_dragimage"
10112
10113 if test "$enableval" = yes; then
10114 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
10115 else
10116 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
10117 fi
10118
10119else
10120
10121 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
10122 if test "x$LINE" != x ; then
10123 eval "DEFAULT_$LINE"
10124 else
10125 no_cache=1
10126 fi
10127
10128 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
10129
10130fi;
10131
10132 eval "$ac_cv_use_dragimage"
10133 if test "$no_cache" != 1; then
10134 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
10135 fi
10136
10137 if test "$wxUSE_DRAGIMAGE" = yes; then
10138 echo "$as_me:$LINENO: result: yes" >&5
10139echo "${ECHO_T}yes" >&6
10140 else
10141 echo "$as_me:$LINENO: result: no" >&5
10142echo "${ECHO_T}no" >&6
10143 fi
10144
10145
10146 enablestring=
10147 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
10148echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
10149 no_cache=0
10150 # Check whether --enable-accessibility or --disable-accessibility was given.
10151if test "${enable_accessibility+set}" = set; then
10152 enableval="$enable_accessibility"
10153
10154 if test "$enableval" = yes; then
10155 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
10156 else
10157 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
10158 fi
10159
10160else
10161
10162 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
10163 if test "x$LINE" != x ; then
10164 eval "DEFAULT_$LINE"
10165 else
10166 no_cache=1
10167 fi
10168
10169 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
10170
10171fi;
10172
10173 eval "$ac_cv_use_accessibility"
10174 if test "$no_cache" != 1; then
10175 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
10176 fi
10177
10178 if test "$wxUSE_ACCESSIBILITY" = yes; then
10179 echo "$as_me:$LINENO: result: yes" >&5
10180echo "${ECHO_T}yes" >&6
10181 else
10182 echo "$as_me:$LINENO: result: no" >&5
10183echo "${ECHO_T}no" >&6
10184 fi
10185
10186
38b4a946
VZ
10187if test "$wxUSE_MSW" = "1"; then
10188
10189 enablestring=
10190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
10191echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6
10192 no_cache=0
10193 # Check whether --enable-dccache or --disable-dccache was given.
10194if test "${enable_dccache+set}" = set; then
10195 enableval="$enable_dccache"
10196
10197 if test "$enableval" = yes; then
10198 ac_cv_use_dccache='wxUSE_DC_CACHEING=yes'
10199 else
10200 ac_cv_use_dccache='wxUSE_DC_CACHEING=no'
10201 fi
10202
10203else
10204
10205 LINE=`grep "wxUSE_DC_CACHEING" ${wx_arg_cache_file}`
10206 if test "x$LINE" != x ; then
10207 eval "DEFAULT_$LINE"
10208 else
10209 no_cache=1
10210 fi
10211
10212 ac_cv_use_dccache='wxUSE_DC_CACHEING='$DEFAULT_wxUSE_DC_CACHEING
10213
10214fi;
10215
10216 eval "$ac_cv_use_dccache"
10217 if test "$no_cache" != 1; then
10218 echo $ac_cv_use_dccache >> ${wx_arg_cache_file}.tmp
10219 fi
10220
10221 if test "$wxUSE_DC_CACHEING" = yes; then
10222 echo "$as_me:$LINENO: result: yes" >&5
10223echo "${ECHO_T}yes" >&6
10224 else
10225 echo "$as_me:$LINENO: result: no" >&5
10226echo "${ECHO_T}no" >&6
10227 fi
10228
10229fi
10230
a848cd7e
SC
10231
10232
10233 enablestring=
10234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
10235echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
10236 no_cache=0
10237 # Check whether --enable-palette or --disable-palette was given.
10238if test "${enable_palette+set}" = set; then
10239 enableval="$enable_palette"
10240
10241 if test "$enableval" = yes; then
10242 ac_cv_use_palette='wxUSE_PALETTE=yes'
10243 else
10244 ac_cv_use_palette='wxUSE_PALETTE=no'
10245 fi
10246
10247else
10248
10249 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
10250 if test "x$LINE" != x ; then
10251 eval "DEFAULT_$LINE"
10252 else
10253 no_cache=1
10254 fi
10255
10256 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
10257
10258fi;
10259
10260 eval "$ac_cv_use_palette"
10261 if test "$no_cache" != 1; then
10262 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
10263 fi
10264
10265 if test "$wxUSE_PALETTE" = yes; then
10266 echo "$as_me:$LINENO: result: yes" >&5
10267echo "${ECHO_T}yes" >&6
10268 else
10269 echo "$as_me:$LINENO: result: no" >&5
10270echo "${ECHO_T}no" >&6
10271 fi
10272
10273
10274 enablestring=
10275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
10276echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
10277 no_cache=0
10278 # Check whether --enable-image or --disable-image was given.
10279if test "${enable_image+set}" = set; then
10280 enableval="$enable_image"
10281
10282 if test "$enableval" = yes; then
10283 ac_cv_use_image='wxUSE_IMAGE=yes'
10284 else
10285 ac_cv_use_image='wxUSE_IMAGE=no'
10286 fi
10287
10288else
10289
10290 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
10291 if test "x$LINE" != x ; then
10292 eval "DEFAULT_$LINE"
10293 else
10294 no_cache=1
10295 fi
10296
10297 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
10298
10299fi;
10300
10301 eval "$ac_cv_use_image"
10302 if test "$no_cache" != 1; then
10303 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
10304 fi
10305
10306 if test "$wxUSE_IMAGE" = yes; then
10307 echo "$as_me:$LINENO: result: yes" >&5
10308echo "${ECHO_T}yes" >&6
10309 else
10310 echo "$as_me:$LINENO: result: no" >&5
10311echo "${ECHO_T}no" >&6
10312 fi
10313
10314
10315 enablestring=
10316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
10317echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10318 no_cache=0
10319 # Check whether --enable-gif or --disable-gif was given.
10320if test "${enable_gif+set}" = set; then
10321 enableval="$enable_gif"
10322
10323 if test "$enableval" = yes; then
10324 ac_cv_use_gif='wxUSE_GIF=yes'
10325 else
10326 ac_cv_use_gif='wxUSE_GIF=no'
10327 fi
10328
10329else
10330
10331 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
10332 if test "x$LINE" != x ; then
10333 eval "DEFAULT_$LINE"
10334 else
10335 no_cache=1
10336 fi
10337
10338 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10339
10340fi;
10341
10342 eval "$ac_cv_use_gif"
10343 if test "$no_cache" != 1; then
10344 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
10345 fi
10346
10347 if test "$wxUSE_GIF" = yes; then
10348 echo "$as_me:$LINENO: result: yes" >&5
10349echo "${ECHO_T}yes" >&6
10350 else
10351 echo "$as_me:$LINENO: result: no" >&5
10352echo "${ECHO_T}no" >&6
10353 fi
10354
10355
10356 enablestring=
10357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
10358echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10359 no_cache=0
10360 # Check whether --enable-pcx or --disable-pcx was given.
10361if test "${enable_pcx+set}" = set; then
10362 enableval="$enable_pcx"
10363
10364 if test "$enableval" = yes; then
10365 ac_cv_use_pcx='wxUSE_PCX=yes'
10366 else
10367 ac_cv_use_pcx='wxUSE_PCX=no'
10368 fi
10369
10370else
10371
10372 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
10373 if test "x$LINE" != x ; then
10374 eval "DEFAULT_$LINE"
10375 else
10376 no_cache=1
10377 fi
10378
10379 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10380
10381fi;
10382
10383 eval "$ac_cv_use_pcx"
10384 if test "$no_cache" != 1; then
10385 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
10386 fi
10387
10388 if test "$wxUSE_PCX" = yes; then
10389 echo "$as_me:$LINENO: result: yes" >&5
10390echo "${ECHO_T}yes" >&6
10391 else
10392 echo "$as_me:$LINENO: result: no" >&5
10393echo "${ECHO_T}no" >&6
10394 fi
10395
10396
10397 enablestring=
10398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
10399echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
10400 no_cache=0
10401 # Check whether --enable-iff or --disable-iff was given.
10402if test "${enable_iff+set}" = set; then
10403 enableval="$enable_iff"
10404
10405 if test "$enableval" = yes; then
10406 ac_cv_use_iff='wxUSE_IFF=yes'
10407 else
10408 ac_cv_use_iff='wxUSE_IFF=no'
10409 fi
10410
10411else
10412
10413 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
10414 if test "x$LINE" != x ; then
10415 eval "DEFAULT_$LINE"
10416 else
10417 no_cache=1
10418 fi
10419
10420 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
10421
10422fi;
10423
10424 eval "$ac_cv_use_iff"
10425 if test "$no_cache" != 1; then
10426 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
10427 fi
10428
10429 if test "$wxUSE_IFF" = yes; then
10430 echo "$as_me:$LINENO: result: yes" >&5
10431echo "${ECHO_T}yes" >&6
10432 else
10433 echo "$as_me:$LINENO: result: no" >&5
10434echo "${ECHO_T}no" >&6
10435 fi
10436
10437
10438 enablestring=
10439 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
10440echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10441 no_cache=0
10442 # Check whether --enable-pnm or --disable-pnm was given.
10443if test "${enable_pnm+set}" = set; then
10444 enableval="$enable_pnm"
10445
10446 if test "$enableval" = yes; then
10447 ac_cv_use_pnm='wxUSE_PNM=yes'
10448 else
10449 ac_cv_use_pnm='wxUSE_PNM=no'
10450 fi
10451
10452else
10453
10454 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
10455 if test "x$LINE" != x ; then
10456 eval "DEFAULT_$LINE"
10457 else
10458 no_cache=1
10459 fi
10460
10461 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10462
10463fi;
10464
10465 eval "$ac_cv_use_pnm"
10466 if test "$no_cache" != 1; then
10467 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
10468 fi
10469
10470 if test "$wxUSE_PNM" = yes; then
10471 echo "$as_me:$LINENO: result: yes" >&5
10472echo "${ECHO_T}yes" >&6
10473 else
10474 echo "$as_me:$LINENO: result: no" >&5
10475echo "${ECHO_T}no" >&6
10476 fi
10477
10478
10479 enablestring=
10480 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
10481echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
10482 no_cache=0
10483 # Check whether --enable-xpm or --disable-xpm was given.
10484if test "${enable_xpm+set}" = set; then
10485 enableval="$enable_xpm"
10486
10487 if test "$enableval" = yes; then
10488 ac_cv_use_xpm='wxUSE_XPM=yes'
10489 else
10490 ac_cv_use_xpm='wxUSE_XPM=no'
10491 fi
10492
10493else
10494
10495 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
10496 if test "x$LINE" != x ; then
10497 eval "DEFAULT_$LINE"
10498 else
10499 no_cache=1
10500 fi
10501
10502 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
10503
10504fi;
10505
10506 eval "$ac_cv_use_xpm"
10507 if test "$no_cache" != 1; then
10508 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
10509 fi
10510
10511 if test "$wxUSE_XPM" = yes; then
10512 echo "$as_me:$LINENO: result: yes" >&5
10513echo "${ECHO_T}yes" >&6
10514 else
10515 echo "$as_me:$LINENO: result: no" >&5
10516echo "${ECHO_T}no" >&6
10517 fi
10518
10519
10520 enablestring=
10521 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
10522echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
10523 no_cache=0
10524 # Check whether --enable-ico_cur or --disable-ico_cur was given.
10525if test "${enable_ico_cur+set}" = set; then
10526 enableval="$enable_ico_cur"
10527
10528 if test "$enableval" = yes; then
10529 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
10530 else
10531 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
10532 fi
10533
10534else
10535
10536 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
10537 if test "x$LINE" != x ; then
10538 eval "DEFAULT_$LINE"
10539 else
10540 no_cache=1
10541 fi
10542
10543 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
10544
10545fi;
10546
10547 eval "$ac_cv_use_ico_cur"
10548 if test "$no_cache" != 1; then
10549 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
10550 fi
10551
10552 if test "$wxUSE_ICO_CUR" = yes; then
10553 echo "$as_me:$LINENO: result: yes" >&5
10554echo "${ECHO_T}yes" >&6
10555 else
10556 echo "$as_me:$LINENO: result: no" >&5
10557echo "${ECHO_T}no" >&6
10558 fi
10559
10560
10561fi
10562
10563
10564
ceec2216
RL
10565# Check whether --with-flavour or --without-flavour was given.
10566if test "${with_flavour+set}" = set; then
10567 withval="$with_flavour"
10568 WX_FLAVOUR="$withval"
10569fi;
10570
10571
10572
a848cd7e
SC
10573 enablestring=
10574 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
10575echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
10576 no_cache=0
10577 # Check whether --enable-official_build or --disable-official_build was given.
10578if test "${enable_official_build+set}" = set; then
10579 enableval="$enable_official_build"
10580
10581 if test "$enableval" = yes; then
10582 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
10583 else
10584 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
10585 fi
10586
10587else
10588
10589 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
10590 if test "x$LINE" != x ; then
10591 eval "DEFAULT_$LINE"
10592 else
10593 no_cache=1
10594 fi
10595
10596 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
10597
10598fi;
10599
10600 eval "$ac_cv_use_official_build"
10601 if test "$no_cache" != 1; then
10602 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
10603 fi
10604
10605 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
10606 echo "$as_me:$LINENO: result: yes" >&5
10607echo "${ECHO_T}yes" >&6
10608 else
10609 echo "$as_me:$LINENO: result: no" >&5
10610echo "${ECHO_T}no" >&6
10611 fi
10612
10613# Check whether --enable-vendor or --disable-vendor was given.
10614if test "${enable_vendor+set}" = set; then
10615 enableval="$enable_vendor"
10616 VENDOR="$enableval"
10617fi;
10618if test "x$VENDOR" = "x"; then
10619 VENDOR="custom"
10620fi
10621
a848cd7e
SC
10622
10623
10624
10625 echo "saving argument cache $wx_arg_cache_file"
10626 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
10627
10628
10629
10630echo "$as_me:$LINENO: checking for toolkit" >&5
10631echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
10632
10633# In Wine, we need to default to MSW, not GTK or MOTIF
10634if test "$wxUSE_WINE" = "yes"; then
10635 DEFAULT_DEFAULT_wxUSE_GTK=0
10636 DEFAULT_DEFAULT_wxUSE_MOTIF=0
10637 DEFAULT_DEFAULT_wxUSE_MSW=1
10638 wxUSE_SHARED=no
10639fi
10640
f597b41c 10641
a848cd7e
SC
10642if test "$wxUSE_GUI" = "yes"; then
10643
10644 if test "$USE_BEOS" = 1; then
10645 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
10646echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
10647 { (exit 1); exit 1; }; }
10648 fi
10649
10650 if test "$TOOLKIT_GIVEN" = 1; then
10651 for toolkit in `echo $ALL_TOOLKITS`; do
10652 var=wxUSE_$toolkit
10653 eval "value=\$${var}"
f34ca037
MW
10654 if test "x$value" = "xno"; then
10655 eval "$var=0"
10656 elif test "x$value" != "x"; then
10657 eval "$var=1"
10658 fi
10659
10660 if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
10661 eval "wx${toolkit}_VERSION=$value"
10662 fi
a848cd7e
SC
10663 done
10664 else
10665 for toolkit in `echo $ALL_TOOLKITS`; do
10666 if test "$has_toolkit_in_cache" != 1; then
10667 var=DEFAULT_DEFAULT_wxUSE_$toolkit
10668 else
10669 var=DEFAULT_wxUSE_$toolkit
f34ca037
MW
10670
10671 eval "version=\$DEFAULT_wx${toolkit}_VERSION"
10672 if test "x$version" != "x"; then
10673 eval "wx${toolkit}_VERSION=$version"
10674 fi
a848cd7e
SC
10675 fi
10676 eval "wxUSE_$toolkit=\$${var}"
10677 done
10678 fi
10679
10680 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
10681 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
10682 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10683
10684 case "${host}" in
10685 *-pc-os2_emx | *-pc-os2-emx )
10686 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
10687 esac
10688
10689 case "$NUM_TOOLKITS" in
10690 1)
10691 ;;
10692 0)
10693 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
10694echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
10695 { (exit 1); exit 1; }; }
10696 ;;
10697 *)
10698 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
10699echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
10700 { (exit 1); exit 1; }; }
10701 esac
10702
f34ca037
MW
10703 # to be removed when --disable-gtk2 isn't needed
10704 if test "x$wxUSE_GTK2" = "xyes"; then
10705 wxGTK_VERSION=2
10706 elif test "x$wxUSE_GTK2" = "xno"; then
10707 wxGTK_VERSION=1
10708 fi
10709
a848cd7e
SC
10710 for toolkit in `echo $ALL_TOOLKITS`; do
10711 var=wxUSE_$toolkit
10712 eval "value=\$${var}"
10713 if test "x$value" != x; then
10714 cache_var=CACHE_$toolkit
10715 eval "cache=\$${cache_var}"
10716 if test "$cache" = 1; then
10717 echo "$var=$value" >> ${wx_arg_cache_file}
f34ca037
MW
10718 eval "version=\$wx${toolkit}_VERSION"
10719 if test "x$version" != "x"; then
10720 echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
10721 fi
a848cd7e
SC
10722 fi
10723 if test "$value" = 1; then
10724 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
10725 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
10726echo "${ECHO_T}$toolkit_echo" >&6
10727 fi
10728 fi
10729 done
10730else
10731 if test "x$host_alias" != "x"; then
10732 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
10733echo "${ECHO_T}base ($host_alias hosted) only" >&6
10734 else
10735 echo "$as_me:$LINENO: result: base only" >&5
10736echo "${ECHO_T}base only" >&6
10737 fi
10738fi
10739
10740wants_win32=0
10741doesnt_want_win32=0
10742case "${host}" in
10743 *-*-cygwin*)
10744 if test "$wxUSE_MSW" = 1 ; then
10745 wants_win32=1
7275146d 10746 BAKEFILE_FORCE_PLATFORM=win32
a848cd7e
SC
10747 else
10748 doesnt_want_win32=1
10749 fi
10750 ;;
10751 *-*-mingw*)
10752 wants_win32=1
10753 ;;
10754esac
10755
10756if test "$wxUSE_WINE" = "yes"; then
10757 wants_win32=1
10758 CC=winegcc
10759 CXX=wineg++
a848cd7e
SC
10760 LDFLAGS_GUI="-mwindows"
10761fi
10762
10763if test "$wants_win32" = 1 ; then
10764 USE_UNIX=0
10765 USE_WIN32=1
10766 cat >>confdefs.h <<\_ACEOF
10767#define __WIN32__ 1
10768_ACEOF
10769
10770 cat >>confdefs.h <<\_ACEOF
10771#define __WIN95__ 1
10772_ACEOF
10773
10774 cat >>confdefs.h <<\_ACEOF
10775#define __WINDOWS__ 1
10776_ACEOF
10777
10778 cat >>confdefs.h <<\_ACEOF
10779#define __GNUWIN32__ 1
10780_ACEOF
10781
10782 cat >>confdefs.h <<\_ACEOF
10783#define STRICT 1
10784_ACEOF
10785
10786 cat >>confdefs.h <<\_ACEOF
10787#define WINVER 0x0400
10788_ACEOF
10789
10790fi
10791if test "$doesnt_want_win32" = 1 ; then
10792 USE_UNIX=1
10793 USE_WIN32=0
10794fi
10795
10796if test "$USE_UNIX" = 1 ; then
10797 wxUSE_UNIX=yes
10798 cat >>confdefs.h <<\_ACEOF
10799#define __UNIX__ 1
10800_ACEOF
10801
10802fi
10803
10804
10805cat >confcache <<\_ACEOF
10806# This file is a shell script that caches the results of configure
10807# tests run on this system so they can be shared between configure
10808# scripts and configure runs, see configure's option --config-cache.
10809# It is not useful on other systems. If it contains results you don't
10810# want to keep, you may remove or edit it.
10811#
10812# config.status only pays attention to the cache file if you give it
10813# the --recheck option to rerun configure.
10814#
10815# `ac_cv_env_foo' variables (set or unset) will be overridden when
10816# loading this file, other *unset* `ac_cv_foo' will be assigned the
10817# following values.
10818
10819_ACEOF
10820
10821# The following way of writing the cache mishandles newlines in values,
10822# but we know of no workaround that is simple, portable, and efficient.
10823# So, don't put newlines in cache variables' values.
10824# Ultrix sh set writes to stderr and can't be redirected directly,
10825# and sets the high bit in the cache file unless we assign to the vars.
10826{
10827 (set) 2>&1 |
10828 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10829 *ac_space=\ *)
10830 # `set' does not quote correctly, so add quotes (double-quote
10831 # substitution turns \\\\ into \\, and sed turns \\ into \).
10832 sed -n \
ac1cb8d3
VS
10833 "s/'/'\\\\''/g;
10834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
10835 ;;
10836 *)
10837 # `set' quotes correctly as required by POSIX, so do not add quotes.
10838 sed -n \
ac1cb8d3 10839 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
10840 ;;
10841 esac;
10842} |
10843 sed '
10844 t clear
10845 : clear
10846 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10847 t end
10848 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10849 : end' >>confcache
10850if diff $cache_file confcache >/dev/null 2>&1; then :; else
10851 if test -w $cache_file; then
10852 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10853 cat confcache >$cache_file
10854 else
10855 echo "not updating unwritable cache $cache_file"
10856 fi
10857fi
10858rm -f confcache
10859
a848cd7e 10860CFLAGS=${CFLAGS:=}
6dcfc289
DE
10861
10862
3006edc0 10863
6dcfc289 10864 ac_ext=c
a848cd7e
SC
10865ac_cpp='$CPP $CPPFLAGS'
10866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10868ac_compiler_gnu=$ac_cv_c_compiler_gnu
10869if test -n "$ac_tool_prefix"; then
10870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10871set dummy ${ac_tool_prefix}gcc; ac_word=$2
10872echo "$as_me:$LINENO: checking for $ac_word" >&5
10873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10874if test "${ac_cv_prog_CC+set}" = set; then
10875 echo $ECHO_N "(cached) $ECHO_C" >&6
10876else
10877 if test -n "$CC"; then
10878 ac_cv_prog_CC="$CC" # Let the user override the test.
10879else
10880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881for as_dir in $PATH
10882do
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10890 fi
10891done
10892done
10893
10894fi
10895fi
10896CC=$ac_cv_prog_CC
10897if test -n "$CC"; then
10898 echo "$as_me:$LINENO: result: $CC" >&5
10899echo "${ECHO_T}$CC" >&6
10900else
10901 echo "$as_me:$LINENO: result: no" >&5
10902echo "${ECHO_T}no" >&6
10903fi
10904
10905fi
10906if test -z "$ac_cv_prog_CC"; then
10907 ac_ct_CC=$CC
10908 # Extract the first word of "gcc", so it can be a program name with args.
10909set dummy gcc; ac_word=$2
10910echo "$as_me:$LINENO: checking for $ac_word" >&5
10911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10912if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10913 echo $ECHO_N "(cached) $ECHO_C" >&6
10914else
10915 if test -n "$ac_ct_CC"; then
10916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10917else
10918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919for as_dir in $PATH
10920do
10921 IFS=$as_save_IFS
10922 test -z "$as_dir" && as_dir=.
10923 for ac_exec_ext in '' $ac_executable_extensions; do
10924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10925 ac_cv_prog_ac_ct_CC="gcc"
10926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 break 2
10928 fi
10929done
10930done
10931
10932fi
10933fi
10934ac_ct_CC=$ac_cv_prog_ac_ct_CC
10935if test -n "$ac_ct_CC"; then
10936 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10937echo "${ECHO_T}$ac_ct_CC" >&6
10938else
10939 echo "$as_me:$LINENO: result: no" >&5
10940echo "${ECHO_T}no" >&6
10941fi
10942
10943 CC=$ac_ct_CC
10944else
10945 CC="$ac_cv_prog_CC"
10946fi
10947
10948if test -z "$CC"; then
10949 if test -n "$ac_tool_prefix"; then
10950 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10951set dummy ${ac_tool_prefix}cc; ac_word=$2
10952echo "$as_me:$LINENO: checking for $ac_word" >&5
10953echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10954if test "${ac_cv_prog_CC+set}" = set; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10956else
10957 if test -n "$CC"; then
10958 ac_cv_prog_CC="$CC" # Let the user override the test.
10959else
10960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10961for as_dir in $PATH
10962do
10963 IFS=$as_save_IFS
10964 test -z "$as_dir" && as_dir=.
10965 for ac_exec_ext in '' $ac_executable_extensions; do
10966 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10967 ac_cv_prog_CC="${ac_tool_prefix}cc"
10968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10969 break 2
10970 fi
10971done
10972done
10973
10974fi
10975fi
10976CC=$ac_cv_prog_CC
10977if test -n "$CC"; then
10978 echo "$as_me:$LINENO: result: $CC" >&5
10979echo "${ECHO_T}$CC" >&6
10980else
10981 echo "$as_me:$LINENO: result: no" >&5
10982echo "${ECHO_T}no" >&6
10983fi
10984
10985fi
10986if test -z "$ac_cv_prog_CC"; then
10987 ac_ct_CC=$CC
10988 # Extract the first word of "cc", so it can be a program name with args.
10989set dummy cc; ac_word=$2
10990echo "$as_me:$LINENO: checking for $ac_word" >&5
10991echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10992if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10994else
10995 if test -n "$ac_ct_CC"; then
10996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10997else
10998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999for as_dir in $PATH
11000do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11005 ac_cv_prog_ac_ct_CC="cc"
11006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11007 break 2
11008 fi
11009done
11010done
11011
11012fi
11013fi
11014ac_ct_CC=$ac_cv_prog_ac_ct_CC
11015if test -n "$ac_ct_CC"; then
11016 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11017echo "${ECHO_T}$ac_ct_CC" >&6
11018else
11019 echo "$as_me:$LINENO: result: no" >&5
11020echo "${ECHO_T}no" >&6
11021fi
11022
11023 CC=$ac_ct_CC
11024else
11025 CC="$ac_cv_prog_CC"
11026fi
11027
11028fi
11029if test -z "$CC"; then
11030 # Extract the first word of "cc", so it can be a program name with args.
11031set dummy cc; ac_word=$2
11032echo "$as_me:$LINENO: checking for $ac_word" >&5
11033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11034if test "${ac_cv_prog_CC+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11036else
11037 if test -n "$CC"; then
11038 ac_cv_prog_CC="$CC" # Let the user override the test.
11039else
11040 ac_prog_rejected=no
11041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042for as_dir in $PATH
11043do
11044 IFS=$as_save_IFS
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11048 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11049 ac_prog_rejected=yes
11050 continue
11051 fi
11052 ac_cv_prog_CC="cc"
11053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 break 2
11055 fi
11056done
11057done
11058
11059if test $ac_prog_rejected = yes; then
11060 # We found a bogon in the path, so make sure we never use it.
11061 set dummy $ac_cv_prog_CC
11062 shift
11063 if test $# != 0; then
11064 # We chose a different compiler from the bogus one.
11065 # However, it has the same basename, so the bogon will be chosen
11066 # first if we set CC to just the basename; use the full file name.
11067 shift
11068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11069 fi
11070fi
11071fi
11072fi
11073CC=$ac_cv_prog_CC
11074if test -n "$CC"; then
11075 echo "$as_me:$LINENO: result: $CC" >&5
11076echo "${ECHO_T}$CC" >&6
11077else
11078 echo "$as_me:$LINENO: result: no" >&5
11079echo "${ECHO_T}no" >&6
11080fi
11081
11082fi
11083if test -z "$CC"; then
11084 if test -n "$ac_tool_prefix"; then
11085 for ac_prog in cl
11086 do
11087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11088set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11089echo "$as_me:$LINENO: checking for $ac_word" >&5
11090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11091if test "${ac_cv_prog_CC+set}" = set; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11093else
11094 if test -n "$CC"; then
11095 ac_cv_prog_CC="$CC" # Let the user override the test.
11096else
11097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11098for as_dir in $PATH
11099do
11100 IFS=$as_save_IFS
11101 test -z "$as_dir" && as_dir=.
11102 for ac_exec_ext in '' $ac_executable_extensions; do
11103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11104 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11106 break 2
11107 fi
11108done
11109done
11110
11111fi
11112fi
11113CC=$ac_cv_prog_CC
11114if test -n "$CC"; then
11115 echo "$as_me:$LINENO: result: $CC" >&5
11116echo "${ECHO_T}$CC" >&6
11117else
11118 echo "$as_me:$LINENO: result: no" >&5
11119echo "${ECHO_T}no" >&6
11120fi
11121
11122 test -n "$CC" && break
11123 done
11124fi
11125if test -z "$CC"; then
11126 ac_ct_CC=$CC
11127 for ac_prog in cl
11128do
11129 # Extract the first word of "$ac_prog", so it can be a program name with args.
11130set dummy $ac_prog; ac_word=$2
11131echo "$as_me:$LINENO: checking for $ac_word" >&5
11132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11133if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11135else
11136 if test -n "$ac_ct_CC"; then
11137 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11138else
11139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140for as_dir in $PATH
11141do
11142 IFS=$as_save_IFS
11143 test -z "$as_dir" && as_dir=.
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146 ac_cv_prog_ac_ct_CC="$ac_prog"
11147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11148 break 2
11149 fi
11150done
11151done
11152
11153fi
11154fi
11155ac_ct_CC=$ac_cv_prog_ac_ct_CC
11156if test -n "$ac_ct_CC"; then
11157 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11158echo "${ECHO_T}$ac_ct_CC" >&6
11159else
11160 echo "$as_me:$LINENO: result: no" >&5
11161echo "${ECHO_T}no" >&6
11162fi
11163
11164 test -n "$ac_ct_CC" && break
11165done
11166
11167 CC=$ac_ct_CC
11168fi
11169
11170fi
11171
11172
11173test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
11174See \`config.log' for more details." >&5
11175echo "$as_me: error: no acceptable C compiler found in \$PATH
11176See \`config.log' for more details." >&2;}
11177 { (exit 1); exit 1; }; }
11178
11179# Provide some information about the compiler.
11180echo "$as_me:$LINENO:" \
11181 "checking for C compiler version" >&5
11182ac_compiler=`set X $ac_compile; echo $2`
11183{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11184 (eval $ac_compiler --version </dev/null >&5) 2>&5
11185 ac_status=$?
11186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187 (exit $ac_status); }
11188{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11189 (eval $ac_compiler -v </dev/null >&5) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }
11193{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11194 (eval $ac_compiler -V </dev/null >&5) 2>&5
11195 ac_status=$?
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); }
11198
11199cat >conftest.$ac_ext <<_ACEOF
11200/* confdefs.h. */
11201_ACEOF
11202cat confdefs.h >>conftest.$ac_ext
11203cat >>conftest.$ac_ext <<_ACEOF
11204/* end confdefs.h. */
11205
11206int
11207main ()
11208{
11209
11210 ;
11211 return 0;
11212}
11213_ACEOF
11214ac_clean_files_save=$ac_clean_files
11215ac_clean_files="$ac_clean_files a.out a.exe b.out"
11216# Try to create an executable without -o first, disregard a.out.
11217# It will help us diagnose broken compilers, and finding out an intuition
11218# of exeext.
ac1cb8d3
VS
11219echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
11220echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
a848cd7e
SC
11221ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
11222if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
11223 (eval $ac_link_default) 2>&5
11224 ac_status=$?
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; then
11227 # Find the output, starting from the most likely. This scheme is
11228# not robust to junk in `.', hence go to wildcards (a.*) only as a last
11229# resort.
11230
11231# Be careful to initialize this variable, since it used to be cached.
11232# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
11233ac_cv_exeext=
11234# b.out is created by i960 compilers.
11235for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
11236do
11237 test -f "$ac_file" || continue
11238 case $ac_file in
11239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
ac1cb8d3 11240 ;;
a848cd7e 11241 conftest.$ac_ext )
ac1cb8d3
VS
11242 # This is the source file.
11243 ;;
a848cd7e 11244 [ab].out )
ac1cb8d3
VS
11245 # We found the default executable, but exeext='' is most
11246 # certainly right.
11247 break;;
a848cd7e 11248 *.* )
ac1cb8d3
VS
11249 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
11250 # FIXME: I believe we export ac_cv_exeext for Libtool,
11251 # but it would be cool to find out if it's true. Does anybody
11252 # maintain Libtool? --akim.
11253 export ac_cv_exeext
11254 break;;
a848cd7e 11255 * )
ac1cb8d3 11256 break;;
a848cd7e
SC
11257 esac
11258done
11259else
11260 echo "$as_me: failed program was:" >&5
11261sed 's/^/| /' conftest.$ac_ext >&5
11262
11263{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
11264See \`config.log' for more details." >&5
11265echo "$as_me: error: C compiler cannot create executables
11266See \`config.log' for more details." >&2;}
11267 { (exit 77); exit 77; }; }
11268fi
11269
11270ac_exeext=$ac_cv_exeext
11271echo "$as_me:$LINENO: result: $ac_file" >&5
11272echo "${ECHO_T}$ac_file" >&6
11273
11274# Check the compiler produces executables we can run. If not, either
11275# the compiler is broken, or we cross compile.
11276echo "$as_me:$LINENO: checking whether the C compiler works" >&5
11277echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
11278# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
11279# If not cross compiling, check that we can run a simple program.
11280if test "$cross_compiling" != yes; then
11281 if { ac_try='./$ac_file'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11284 ac_status=$?
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 cross_compiling=no
11288 else
11289 if test "$cross_compiling" = maybe; then
11290 cross_compiling=yes
11291 else
11292 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
11293If you meant to cross compile, use \`--host'.
11294See \`config.log' for more details." >&5
11295echo "$as_me: error: cannot run C compiled programs.
11296If you meant to cross compile, use \`--host'.
11297See \`config.log' for more details." >&2;}
11298 { (exit 1); exit 1; }; }
11299 fi
11300 fi
11301fi
11302echo "$as_me:$LINENO: result: yes" >&5
11303echo "${ECHO_T}yes" >&6
11304
11305rm -f a.out a.exe conftest$ac_cv_exeext b.out
11306ac_clean_files=$ac_clean_files_save
11307# Check the compiler produces executables we can run. If not, either
11308# the compiler is broken, or we cross compile.
11309echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
11310echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
11311echo "$as_me:$LINENO: result: $cross_compiling" >&5
11312echo "${ECHO_T}$cross_compiling" >&6
11313
11314echo "$as_me:$LINENO: checking for suffix of executables" >&5
11315echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
11316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11317 (eval $ac_link) 2>&5
11318 ac_status=$?
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); }; then
11321 # If both `conftest.exe' and `conftest' are `present' (well, observable)
11322# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
11323# work properly (i.e., refer to `conftest.exe'), while it won't with
11324# `rm'.
11325for ac_file in conftest.exe conftest conftest.*; do
11326 test -f "$ac_file" || continue
11327 case $ac_file in
11328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
11329 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ac1cb8d3
VS
11330 export ac_cv_exeext
11331 break;;
a848cd7e
SC
11332 * ) break;;
11333 esac
11334done
11335else
11336 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
11337See \`config.log' for more details." >&5
11338echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
11339See \`config.log' for more details." >&2;}
11340 { (exit 1); exit 1; }; }
11341fi
11342
11343rm -f conftest$ac_cv_exeext
11344echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
11345echo "${ECHO_T}$ac_cv_exeext" >&6
11346
11347rm -f conftest.$ac_ext
11348EXEEXT=$ac_cv_exeext
11349ac_exeext=$EXEEXT
11350echo "$as_me:$LINENO: checking for suffix of object files" >&5
11351echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
11352if test "${ac_cv_objext+set}" = set; then
11353 echo $ECHO_N "(cached) $ECHO_C" >&6
11354else
11355 cat >conftest.$ac_ext <<_ACEOF
11356/* confdefs.h. */
11357_ACEOF
11358cat confdefs.h >>conftest.$ac_ext
11359cat >>conftest.$ac_ext <<_ACEOF
11360/* end confdefs.h. */
11361
11362int
11363main ()
11364{
11365
11366 ;
11367 return 0;
11368}
11369_ACEOF
11370rm -f conftest.o conftest.obj
11371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11372 (eval $ac_compile) 2>&5
11373 ac_status=$?
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }; then
11376 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
11377 case $ac_file in
11378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
11379 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
11380 break;;
11381 esac
11382done
11383else
11384 echo "$as_me: failed program was:" >&5
11385sed 's/^/| /' conftest.$ac_ext >&5
11386
11387{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
11388See \`config.log' for more details." >&5
11389echo "$as_me: error: cannot compute suffix of object files: cannot compile
11390See \`config.log' for more details." >&2;}
11391 { (exit 1); exit 1; }; }
11392fi
11393
11394rm -f conftest.$ac_cv_objext conftest.$ac_ext
11395fi
11396echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
11397echo "${ECHO_T}$ac_cv_objext" >&6
11398OBJEXT=$ac_cv_objext
11399ac_objext=$OBJEXT
11400echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
11401echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
11402if test "${ac_cv_c_compiler_gnu+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404else
11405 cat >conftest.$ac_ext <<_ACEOF
11406/* confdefs.h. */
11407_ACEOF
11408cat confdefs.h >>conftest.$ac_ext
11409cat >>conftest.$ac_ext <<_ACEOF
11410/* end confdefs.h. */
11411
11412int
11413main ()
11414{
11415#ifndef __GNUC__
11416 choke me
11417#endif
11418
11419 ;
11420 return 0;
11421}
11422_ACEOF
11423rm -f conftest.$ac_objext
11424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11425 (eval $ac_compile) 2>conftest.er1
a848cd7e 11426 ac_status=$?
ac1cb8d3
VS
11427 grep -v '^ *+' conftest.er1 >conftest.err
11428 rm -f conftest.er1
11429 cat conftest.err >&5
a848cd7e
SC
11430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11431 (exit $ac_status); } &&
5ff751d6 11432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11434 (eval $ac_try) 2>&5
11435 ac_status=$?
11436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11437 (exit $ac_status); }; } &&
11438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; }; then
11444 ac_compiler_gnu=yes
11445else
11446 echo "$as_me: failed program was:" >&5
11447sed 's/^/| /' conftest.$ac_ext >&5
11448
11449ac_compiler_gnu=no
11450fi
ac1cb8d3 11451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11452ac_cv_c_compiler_gnu=$ac_compiler_gnu
11453
11454fi
11455echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
11456echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
11457GCC=`test $ac_compiler_gnu = yes && echo yes`
11458ac_test_CFLAGS=${CFLAGS+set}
11459ac_save_CFLAGS=$CFLAGS
8aeeb05c 11460CFLAGS="-g"
a848cd7e
SC
11461echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11462echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11463if test "${ac_cv_prog_cc_g+set}" = set; then
11464 echo $ECHO_N "(cached) $ECHO_C" >&6
11465else
11466 cat >conftest.$ac_ext <<_ACEOF
11467/* confdefs.h. */
11468_ACEOF
11469cat confdefs.h >>conftest.$ac_ext
11470cat >>conftest.$ac_ext <<_ACEOF
11471/* end confdefs.h. */
11472
11473int
11474main ()
11475{
11476
11477 ;
11478 return 0;
11479}
11480_ACEOF
11481rm -f conftest.$ac_objext
11482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11483 (eval $ac_compile) 2>conftest.er1
a848cd7e 11484 ac_status=$?
ac1cb8d3
VS
11485 grep -v '^ *+' conftest.er1 >conftest.err
11486 rm -f conftest.er1
11487 cat conftest.err >&5
a848cd7e
SC
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
5ff751d6 11490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; } &&
11496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; }; then
11502 ac_cv_prog_cc_g=yes
11503else
11504 echo "$as_me: failed program was:" >&5
11505sed 's/^/| /' conftest.$ac_ext >&5
11506
11507ac_cv_prog_cc_g=no
11508fi
ac1cb8d3 11509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11510fi
11511echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11512echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11513if test "$ac_test_CFLAGS" = set; then
11514 CFLAGS=$ac_save_CFLAGS
11515elif test $ac_cv_prog_cc_g = yes; then
11516 if test "$GCC" = yes; then
11517 CFLAGS="-g -O2"
11518 else
11519 CFLAGS="-g"
11520 fi
11521else
11522 if test "$GCC" = yes; then
11523 CFLAGS="-O2"
11524 else
11525 CFLAGS=
11526 fi
11527fi
11528echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
11529echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
11530if test "${ac_cv_prog_cc_stdc+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
11532else
11533 ac_cv_prog_cc_stdc=no
11534ac_save_CC=$CC
11535cat >conftest.$ac_ext <<_ACEOF
11536/* confdefs.h. */
11537_ACEOF
11538cat confdefs.h >>conftest.$ac_ext
11539cat >>conftest.$ac_ext <<_ACEOF
11540/* end confdefs.h. */
11541#include <stdarg.h>
11542#include <stdio.h>
11543#include <sys/types.h>
11544#include <sys/stat.h>
11545/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11546struct buf { int x; };
11547FILE * (*rcsopen) (struct buf *, struct stat *, int);
11548static char *e (p, i)
11549 char **p;
11550 int i;
11551{
11552 return p[i];
11553}
11554static char *f (char * (*g) (char **, int), char **p, ...)
11555{
11556 char *s;
11557 va_list v;
11558 va_start (v,p);
11559 s = g (p, va_arg (v,int));
11560 va_end (v);
11561 return s;
11562}
ac1cb8d3
VS
11563
11564/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11565 function prototypes and stuff, but not '\xHH' hex character constants.
11566 These don't provoke an error unfortunately, instead are silently treated
11567 as 'x'. The following induces an error, until -std1 is added to get
11568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11569 array size at least. It's necessary to write '\x00'==0 to get something
11570 that's true only with -std1. */
11571int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11572
a848cd7e
SC
11573int test (int i, double x);
11574struct s1 {int (*f) (int a);};
11575struct s2 {int (*f) (double a);};
11576int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11577int argc;
11578char **argv;
11579int
11580main ()
11581{
11582return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587# Don't try gcc -ansi; that turns off useful extensions and
11588# breaks some systems' header files.
11589# AIX -qlanglvl=ansi
11590# Ultrix and OSF/1 -std1
11591# HP-UX 10.20 and later -Ae
11592# HP-UX older versions -Aa -D_HPUX_SOURCE
11593# SVR4 -Xc -D__EXTENSIONS__
11594for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11595do
11596 CC="$ac_save_CC $ac_arg"
11597 rm -f conftest.$ac_objext
11598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11599 (eval $ac_compile) 2>conftest.er1
a848cd7e 11600 ac_status=$?
ac1cb8d3
VS
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
a848cd7e
SC
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } &&
5ff751d6 11606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; } &&
11612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 ac_cv_prog_cc_stdc=$ac_arg
11619break
11620else
11621 echo "$as_me: failed program was:" >&5
11622sed 's/^/| /' conftest.$ac_ext >&5
11623
11624fi
ac1cb8d3 11625rm -f conftest.err conftest.$ac_objext
a848cd7e
SC
11626done
11627rm -f conftest.$ac_ext conftest.$ac_objext
11628CC=$ac_save_CC
11629
11630fi
11631
11632case "x$ac_cv_prog_cc_stdc" in
11633 x|xno)
11634 echo "$as_me:$LINENO: result: none needed" >&5
11635echo "${ECHO_T}none needed" >&6 ;;
11636 *)
11637 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
11638echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
11639 CC="$CC $ac_cv_prog_cc_stdc" ;;
11640esac
11641
11642# Some people use a C++ compiler to compile C. Since we use `exit',
11643# in C++ we need to declare it. In case someone uses the same compiler
11644# for both compiling C and C++ we need to have the C++ compiler decide
11645# the declaration of exit, since it's the most demanding environment.
11646cat >conftest.$ac_ext <<_ACEOF
11647#ifndef __cplusplus
11648 choke me
11649#endif
11650_ACEOF
11651rm -f conftest.$ac_objext
11652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11653 (eval $ac_compile) 2>conftest.er1
a848cd7e 11654 ac_status=$?
ac1cb8d3
VS
11655 grep -v '^ *+' conftest.er1 >conftest.err
11656 rm -f conftest.er1
11657 cat conftest.err >&5
a848cd7e
SC
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
5ff751d6 11660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11662 (eval $ac_try) 2>&5
11663 ac_status=$?
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); }; } &&
11666 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11669 ac_status=$?
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; }; then
11672 for ac_declaration in \
ac1cb8d3 11673 '' \
a848cd7e
SC
11674 'extern "C" void std::exit (int) throw (); using std::exit;' \
11675 'extern "C" void std::exit (int); using std::exit;' \
11676 'extern "C" void exit (int) throw ();' \
11677 'extern "C" void exit (int);' \
11678 'void exit (int);'
11679do
11680 cat >conftest.$ac_ext <<_ACEOF
11681/* confdefs.h. */
11682_ACEOF
11683cat confdefs.h >>conftest.$ac_ext
11684cat >>conftest.$ac_ext <<_ACEOF
11685/* end confdefs.h. */
de59c161 11686$ac_declaration
ac1cb8d3 11687#include <stdlib.h>
a848cd7e
SC
11688int
11689main ()
11690{
11691exit (42);
11692 ;
11693 return 0;
11694}
11695_ACEOF
11696rm -f conftest.$ac_objext
11697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11698 (eval $ac_compile) 2>conftest.er1
a848cd7e 11699 ac_status=$?
ac1cb8d3
VS
11700 grep -v '^ *+' conftest.er1 >conftest.err
11701 rm -f conftest.er1
11702 cat conftest.err >&5
a848cd7e
SC
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); } &&
5ff751d6 11705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; } &&
11711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 :
11718else
11719 echo "$as_me: failed program was:" >&5
11720sed 's/^/| /' conftest.$ac_ext >&5
11721
11722continue
11723fi
ac1cb8d3 11724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11725 cat >conftest.$ac_ext <<_ACEOF
11726/* confdefs.h. */
11727_ACEOF
11728cat confdefs.h >>conftest.$ac_ext
11729cat >>conftest.$ac_ext <<_ACEOF
11730/* end confdefs.h. */
11731$ac_declaration
11732int
11733main ()
11734{
11735exit (42);
11736 ;
11737 return 0;
11738}
11739_ACEOF
11740rm -f conftest.$ac_objext
11741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 11742 (eval $ac_compile) 2>conftest.er1
a848cd7e 11743 ac_status=$?
ac1cb8d3
VS
11744 grep -v '^ *+' conftest.er1 >conftest.err
11745 rm -f conftest.er1
11746 cat conftest.err >&5
a848cd7e
SC
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); } &&
5ff751d6 11749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
11750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11751 (eval $ac_try) 2>&5
11752 ac_status=$?
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); }; } &&
11755 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
11756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11757 (eval $ac_try) 2>&5
11758 ac_status=$?
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 break
11762else
11763 echo "$as_me: failed program was:" >&5
11764sed 's/^/| /' conftest.$ac_ext >&5
11765
11766fi
ac1cb8d3 11767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11768done
11769rm -f conftest*
11770if test -n "$ac_declaration"; then
11771 echo '#ifdef __cplusplus' >>confdefs.h
11772 echo $ac_declaration >>confdefs.h
11773 echo '#endif' >>confdefs.h
11774fi
11775
11776else
11777 echo "$as_me: failed program was:" >&5
11778sed 's/^/| /' conftest.$ac_ext >&5
11779
11780fi
ac1cb8d3 11781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
11782ac_ext=c
11783ac_cpp='$CPP $CPPFLAGS'
11784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11786ac_compiler_gnu=$ac_cv_c_compiler_gnu
11787
ab0ad5f1
VZ
11788
11789
11790 ac_ext=c
11791ac_cpp='$CPP $CPPFLAGS'
11792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11794ac_compiler_gnu=$ac_cv_c_compiler_gnu
11795
11796 echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
11797echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6
11798if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11800else
11801 cat >conftest.$ac_ext <<_ACEOF
11802/* confdefs.h. */
11803_ACEOF
11804cat confdefs.h >>conftest.$ac_ext
11805cat >>conftest.$ac_ext <<_ACEOF
11806/* end confdefs.h. */
11807
11808int
11809main ()
11810{
11811
11812 #ifndef __INTEL_COMPILER
11813 choke me
11814 #endif
11815
11816 ;
11817 return 0;
11818}
11819_ACEOF
11820rm -f conftest.$ac_objext
11821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11822 (eval $ac_compile) 2>conftest.er1
11823 ac_status=$?
11824 grep -v '^ *+' conftest.er1 >conftest.err
11825 rm -f conftest.er1
11826 cat conftest.err >&5
11827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11828 (exit $ac_status); } &&
5ff751d6 11829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
11830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11831 (eval $ac_try) 2>&5
11832 ac_status=$?
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); }; } &&
11835 { ac_try='test -s conftest.$ac_objext'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11838 ac_status=$?
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 bakefile_cv_c_compiler___INTEL_COMPILER=yes
11842else
11843 echo "$as_me: failed program was:" >&5
11844sed 's/^/| /' conftest.$ac_ext >&5
11845
11846bakefile_cv_c_compiler___INTEL_COMPILER=no
11847
11848fi
11849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11850
11851
11852fi
11853echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
11854echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6
11855 ac_ext=c
11856ac_cpp='$CPP $CPPFLAGS'
11857ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11858ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11859ac_compiler_gnu=$ac_cv_c_compiler_gnu
11860
11861 if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
11862 :; INTELCC=yes
11863 else
11864 :;
11865 fi
11866
11867
11868 if test "x$GCC" != "xyes"; then
3006edc0
VZ
11869 if test "xCC" = "xC"; then
11870 echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
480ccd21 11871echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6
0093c2fc 11872if test "${bakefile_cv_c_exto+set}" = set; then
480ccd21
DE
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874else
11875 cat >conftest.$ac_ext <<_ACEOF
11876/* confdefs.h. */
11877_ACEOF
11878cat confdefs.h >>conftest.$ac_ext
11879cat >>conftest.$ac_ext <<_ACEOF
11880/* end confdefs.h. */
11881
11882int
11883main ()
11884{
11885
11886 ;
11887 return 0;
11888}
11889_ACEOF
11890rm -f conftest.$ac_objext conftest.$ac_ext.o
11891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11892 (eval $ac_compile) 2>&5
11893 ac_status=$?
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; then
11896 for ac_file in `(ls conftest.* 2>/dev/null)`; do
11897 case $ac_file in
11898 conftest.$ac_ext.o)
0093c2fc 11899 bakefile_cv_c_exto="-ext o"
480ccd21
DE
11900 ;;
11901 *)
11902 ;;
11903 esac
11904done
11905else
11906 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
11907See \`config.log' for more details." >&5
11908echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
11909See \`config.log' for more details." >&2;}
11910 { (exit 1); exit 1; }; }
11911
11912fi
11913
11914rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
11915
11916fi
0093c2fc
VZ
11917echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
11918echo "${ECHO_T}$bakefile_cv_c_exto" >&6
11919if test "x$bakefile_cv_c_exto" '!=' "x"; then
480ccd21 11920 if test "c" = "c"; then
0093c2fc 11921 CFLAGS="$bakefile_cv_c_exto $CFLAGS"
480ccd21
DE
11922 fi
11923 if test "c" = "cxx"; then
0093c2fc 11924 CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
480ccd21
DE
11925 fi
11926fi
11927
0093c2fc 11928 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
11929 unset ac_cv_prog_cc_g
11930 ac_test_CFLAGS=${CFLAGS+set}
480ccd21 11931ac_save_CFLAGS=$CFLAGS
8aeeb05c 11932CFLAGS="-g"
480ccd21
DE
11933echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
11934echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
11935if test "${ac_cv_prog_cc_g+set}" = set; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11937else
11938 cat >conftest.$ac_ext <<_ACEOF
11939/* confdefs.h. */
11940_ACEOF
11941cat confdefs.h >>conftest.$ac_ext
11942cat >>conftest.$ac_ext <<_ACEOF
11943/* end confdefs.h. */
11944
11945int
11946main ()
11947{
11948
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext
11954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11955 (eval $ac_compile) 2>conftest.er1
11956 ac_status=$?
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
5ff751d6 11962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
480ccd21
DE
11963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11964 (eval $ac_try) 2>&5
11965 ac_status=$?
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); }; } &&
11968 { ac_try='test -s conftest.$ac_objext'
11969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11970 (eval $ac_try) 2>&5
11971 ac_status=$?
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); }; }; then
11974 ac_cv_prog_cc_g=yes
11975else
11976 echo "$as_me: failed program was:" >&5
11977sed 's/^/| /' conftest.$ac_ext >&5
11978
11979ac_cv_prog_cc_g=no
11980fi
11981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11982fi
11983echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
11984echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
11985if test "$ac_test_CFLAGS" = set; then
11986 CFLAGS=$ac_save_CFLAGS
11987elif test $ac_cv_prog_cc_g = yes; then
11988 if test "$GCC" = yes; then
11989 CFLAGS="-g -O2"
11990 else
11991 CFLAGS="-g"
11992 fi
11993else
11994 if test "$GCC" = yes; then
11995 CFLAGS="-O2"
11996 else
11997 CFLAGS=
11998 fi
11999fi
3006edc0 12000 fi
ab0ad5f1 12001 fi
3006edc0
VZ
12002
12003 case `uname -s` in
12004 AIX*)
12005 ac_ext=c
12006ac_cpp='$CPP $CPPFLAGS'
12007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12009ac_compiler_gnu=$ac_cv_c_compiler_gnu
12010
12011echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12012echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12013if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
3006edc0
VZ
12014 echo $ECHO_N "(cached) $ECHO_C" >&6
12015else
12016 cat >conftest.$ac_ext <<_ACEOF
12017/* confdefs.h. */
12018_ACEOF
12019cat confdefs.h >>conftest.$ac_ext
12020cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */
12022
12023int
12024main ()
12025{
12026#ifndef __xlC__
12027 choke me
12028#endif
12029
12030 ;
12031 return 0;
12032}
12033_ACEOF
12034rm -f conftest.$ac_objext
12035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12036 (eval $ac_compile) 2>conftest.er1
12037 ac_status=$?
12038 grep -v '^ *+' conftest.er1 >conftest.err
12039 rm -f conftest.er1
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } &&
5ff751d6 12043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12046 ac_status=$?
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; } &&
12049 { ac_try='test -s conftest.$ac_objext'
12050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051 (eval $ac_try) 2>&5
12052 ac_status=$?
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); }; }; then
0093c2fc 12055 bakefile_compiler_xlc=yes
3006edc0
VZ
12056else
12057 echo "$as_me: failed program was:" >&5
12058sed 's/^/| /' conftest.$ac_ext >&5
12059
0093c2fc 12060bakefile_compiler_xlc=no
3006edc0
VZ
12061fi
12062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12063 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
12064
12065fi
0093c2fc
VZ
12066echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12067echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
3006edc0 12068
0093c2fc 12069XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
3006edc0
VZ
12070ac_ext=c
12071ac_cpp='$CPP $CPPFLAGS'
12072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12074ac_compiler_gnu=$ac_cv_c_compiler_gnu
12075
12076
12077 ;;
12078
12079 Darwin)
12080 ac_ext=c
95986553
DE
12081ac_cpp='$CPP $CPPFLAGS'
12082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12084ac_compiler_gnu=$ac_cv_c_compiler_gnu
12085
12086echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
12087echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6
12088if test "${bakefile_cv_c_compiler_mwerks+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12090else
12091 cat >conftest.$ac_ext <<_ACEOF
12092/* confdefs.h. */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12095cat >>conftest.$ac_ext <<_ACEOF
12096/* end confdefs.h. */
12097
12098int
12099main ()
12100{
12101#ifndef __MWERKS__
12102 choke me
12103#endif
12104
12105 ;
12106 return 0;
12107}
12108_ACEOF
12109rm -f conftest.$ac_objext
12110if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12111 (eval $ac_compile) 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } &&
5ff751d6 12118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
95986553
DE
12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120 (eval $ac_try) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); }; } &&
12124 { ac_try='test -s conftest.$ac_objext'
12125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12126 (eval $ac_try) 2>&5
12127 ac_status=$?
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); }; }; then
12130 bakefile_compiler_mwerks=yes
12131else
12132 echo "$as_me: failed program was:" >&5
12133sed 's/^/| /' conftest.$ac_ext >&5
12134
12135bakefile_compiler_mwerks=no
12136fi
12137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12138 bakefile_cv_c_compiler_mwerks=$bakefile_compiler_mwerks
12139
12140fi
12141echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_mwerks" >&5
12142echo "${ECHO_T}$bakefile_cv_c_compiler_mwerks" >&6
12143
0e6fa1d9 12144MWCC=`test $bakefile_cv_c_compiler_mwerks = yes && echo yes`
95986553
DE
12145ac_ext=c
12146ac_cpp='$CPP $CPPFLAGS'
12147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12149ac_compiler_gnu=$ac_cv_c_compiler_gnu
12150
12151
3006edc0 12152 ac_ext=c
9273ffba
DE
12153ac_cpp='$CPP $CPPFLAGS'
12154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12156ac_compiler_gnu=$ac_cv_c_compiler_gnu
12157
12158echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
12159echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6
0093c2fc 12160if test "${bakefile_cv_c_compiler_xlc+set}" = set; then
9273ffba
DE
12161 echo $ECHO_N "(cached) $ECHO_C" >&6
12162else
12163 cat >conftest.$ac_ext <<_ACEOF
12164/* confdefs.h. */
12165_ACEOF
12166cat confdefs.h >>conftest.$ac_ext
12167cat >>conftest.$ac_ext <<_ACEOF
12168/* end confdefs.h. */
12169
12170int
12171main ()
12172{
12173#ifndef __xlC__
12174 choke me
12175#endif
12176
12177 ;
12178 return 0;
12179}
12180_ACEOF
12181rm -f conftest.$ac_objext
12182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12183 (eval $ac_compile) 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } &&
5ff751d6 12190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9273ffba
DE
12191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12192 (eval $ac_try) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); }; } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12199 ac_status=$?
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
0093c2fc 12202 bakefile_compiler_xlc=yes
9273ffba
DE
12203else
12204 echo "$as_me: failed program was:" >&5
12205sed 's/^/| /' conftest.$ac_ext >&5
12206
0093c2fc 12207bakefile_compiler_xlc=no
9273ffba
DE
12208fi
12209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 12210 bakefile_cv_c_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
12211
12212fi
0093c2fc
VZ
12213echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler_xlc" >&5
12214echo "${ECHO_T}$bakefile_cv_c_compiler_xlc" >&6
9273ffba 12215
0093c2fc 12216XLCC=`test $bakefile_cv_c_compiler_xlc = yes && echo yes`
9273ffba
DE
12217ac_ext=c
12218ac_cpp='$CPP $CPPFLAGS'
12219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12221ac_compiler_gnu=$ac_cv_c_compiler_gnu
12222
12223
3006edc0
VZ
12224 ;;
12225
12226 IRIX*)
a848cd7e 12227
6dcfc289 12228
0ad5d837
VZ
12229 ac_ext=c
12230ac_cpp='$CPP $CPPFLAGS'
12231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12233ac_compiler_gnu=$ac_cv_c_compiler_gnu
12234
12235 echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
12236echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6
12237if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
12238 echo $ECHO_N "(cached) $ECHO_C" >&6
12239else
12240 cat >conftest.$ac_ext <<_ACEOF
12241/* confdefs.h. */
12242_ACEOF
12243cat confdefs.h >>conftest.$ac_ext
12244cat >>conftest.$ac_ext <<_ACEOF
12245/* end confdefs.h. */
12246
12247int
12248main ()
12249{
12250
12251 #ifndef _SGI_COMPILER_VERSION
12252 choke me
12253 #endif
12254
12255 ;
12256 return 0;
12257}
12258_ACEOF
12259rm -f conftest.$ac_objext
12260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12261 (eval $ac_compile) 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
5ff751d6 12268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12271 ac_status=$?
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; } &&
12274 { ac_try='test -s conftest.$ac_objext'
12275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12276 (eval $ac_try) 2>&5
12277 ac_status=$?
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); }; }; then
12280 bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
12281else
12282 echo "$as_me: failed program was:" >&5
12283sed 's/^/| /' conftest.$ac_ext >&5
12284
12285bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
12286
12287fi
12288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12289
12290
12291fi
12292echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
12293echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6
12294 ac_ext=c
12295ac_cpp='$CPP $CPPFLAGS'
12296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298ac_compiler_gnu=$ac_cv_c_compiler_gnu
12299
12300 if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
12301 :; SGICC=yes
12302 else
12303 :;
12304 fi
12305
12306
3006edc0
VZ
12307 ;;
12308
0093c2fc 12309 HP-UX*)
3006edc0
VZ
12310
12311
12312 ac_ext=c
12313ac_cpp='$CPP $CPPFLAGS'
12314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12316ac_compiler_gnu=$ac_cv_c_compiler_gnu
12317
0093c2fc
VZ
12318 echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
12319echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6
12320if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
3006edc0
VZ
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322else
12323 cat >conftest.$ac_ext <<_ACEOF
12324/* confdefs.h. */
12325_ACEOF
12326cat confdefs.h >>conftest.$ac_ext
12327cat >>conftest.$ac_ext <<_ACEOF
12328/* end confdefs.h. */
12329
12330int
12331main ()
12332{
12333
0093c2fc 12334 #ifndef __HP_cc
3006edc0
VZ
12335 choke me
12336 #endif
12337
12338 ;
12339 return 0;
12340}
12341_ACEOF
12342rm -f conftest.$ac_objext
12343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344 (eval $ac_compile) 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
5ff751d6 12351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12354 ac_status=$?
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest.$ac_objext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
0093c2fc 12363 bakefile_cv_c_compiler___HP_cc=yes
3006edc0
VZ
12364else
12365 echo "$as_me: failed program was:" >&5
12366sed 's/^/| /' conftest.$ac_ext >&5
12367
0093c2fc 12368bakefile_cv_c_compiler___HP_cc=no
3006edc0
VZ
12369
12370fi
12371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12372
12373
12374fi
0093c2fc
VZ
12375echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
12376echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6
3006edc0
VZ
12377 ac_ext=c
12378ac_cpp='$CPP $CPPFLAGS'
12379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381ac_compiler_gnu=$ac_cv_c_compiler_gnu
12382
0093c2fc
VZ
12383 if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
12384 :; HPCC=yes
a1aa0349
VZ
12385 else
12386 :;
12387 fi
12388
12389
12390 ;;
12391
0093c2fc 12392 OSF1)
a1aa0349
VZ
12393
12394
12395 ac_ext=c
12396ac_cpp='$CPP $CPPFLAGS'
12397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12399ac_compiler_gnu=$ac_cv_c_compiler_gnu
12400
0093c2fc
VZ
12401 echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
12402echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6
12403if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
a1aa0349
VZ
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405else
12406 cat >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
12413int
12414main ()
12415{
12416
0093c2fc 12417 #ifndef __DECC
a1aa0349
VZ
12418 choke me
12419 #endif
12420
12421 ;
12422 return 0;
12423}
12424_ACEOF
12425rm -f conftest.$ac_objext
12426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12427 (eval $ac_compile) 2>conftest.er1
12428 ac_status=$?
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
5ff751d6 12434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
0093c2fc 12446 bakefile_cv_c_compiler___DECC=yes
a1aa0349
VZ
12447else
12448 echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
0093c2fc 12451bakefile_cv_c_compiler___DECC=no
a1aa0349
VZ
12452
12453fi
12454rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12455
12456
12457fi
0093c2fc
VZ
12458echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
12459echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6
a1aa0349
VZ
12460 ac_ext=c
12461ac_cpp='$CPP $CPPFLAGS'
12462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12464ac_compiler_gnu=$ac_cv_c_compiler_gnu
12465
0093c2fc
VZ
12466 if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
12467 :; COMPAQCC=yes
12468 else
12469 :;
12470 fi
12471
12472
12473 ;;
12474
12475 SunOS)
12476
12477
12478 ac_ext=c
12479ac_cpp='$CPP $CPPFLAGS'
12480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12482ac_compiler_gnu=$ac_cv_c_compiler_gnu
12483
12484 echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
12485echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6
12486if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12488else
12489 cat >conftest.$ac_ext <<_ACEOF
12490/* confdefs.h. */
12491_ACEOF
12492cat confdefs.h >>conftest.$ac_ext
12493cat >>conftest.$ac_ext <<_ACEOF
12494/* end confdefs.h. */
12495
12496int
12497main ()
12498{
12499
12500 #ifndef __SUNPRO_C
12501 choke me
12502 #endif
12503
12504 ;
12505 return 0;
12506}
12507_ACEOF
12508rm -f conftest.$ac_objext
12509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12510 (eval $ac_compile) 2>conftest.er1
12511 ac_status=$?
12512 grep -v '^ *+' conftest.er1 >conftest.err
12513 rm -f conftest.er1
12514 cat conftest.err >&5
12515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12516 (exit $ac_status); } &&
5ff751d6 12517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
12518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12519 (eval $ac_try) 2>&5
12520 ac_status=$?
12521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522 (exit $ac_status); }; } &&
12523 { ac_try='test -s conftest.$ac_objext'
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12526 ac_status=$?
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; }; then
12529 bakefile_cv_c_compiler___SUNPRO_C=yes
12530else
12531 echo "$as_me: failed program was:" >&5
12532sed 's/^/| /' conftest.$ac_ext >&5
12533
12534bakefile_cv_c_compiler___SUNPRO_C=no
12535
12536fi
12537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12538
12539
12540fi
12541echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
12542echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6
12543 ac_ext=c
12544ac_cpp='$CPP $CPPFLAGS'
12545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12547ac_compiler_gnu=$ac_cv_c_compiler_gnu
12548
12549 if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
12550 :; SUNCC=yes
3006edc0
VZ
12551 else
12552 :;
12553 fi
12554
12555
12556 ;;
12557 esac
ab0ad5f1 12558 fi
a9e5b1f0
MW
12559
12560
3006edc0 12561
a848cd7e
SC
12562ac_ext=c
12563ac_cpp='$CPP $CPPFLAGS'
12564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12566ac_compiler_gnu=$ac_cv_c_compiler_gnu
12567echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12568echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
12569# On Suns, sometimes $CPP names a directory.
12570if test -n "$CPP" && test -d "$CPP"; then
12571 CPP=
12572fi
12573if test -z "$CPP"; then
12574 if test "${ac_cv_prog_CPP+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12576else
12577 # Double quotes because CPP needs to be expanded
12578 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12579 do
12580 ac_preproc_ok=false
12581for ac_c_preproc_warn_flag in '' yes
12582do
12583 # Use a header file that comes with gcc, so configuring glibc
12584 # with a fresh cross-compiler works.
12585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586 # <limits.h> exists even on freestanding compilers.
12587 # On the NeXT, cc -E runs the code through the compiler's parser,
12588 # not just through cpp. "Syntax error" is here to catch this case.
12589 cat >conftest.$ac_ext <<_ACEOF
12590/* confdefs.h. */
12591_ACEOF
12592cat confdefs.h >>conftest.$ac_ext
12593cat >>conftest.$ac_ext <<_ACEOF
12594/* end confdefs.h. */
12595#ifdef __STDC__
12596# include <limits.h>
12597#else
12598# include <assert.h>
12599#endif
ac1cb8d3 12600 Syntax error
a848cd7e
SC
12601_ACEOF
12602if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } >/dev/null; then
12610 if test -s conftest.err; then
12611 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12613 else
12614 ac_cpp_err=
12615 fi
12616else
12617 ac_cpp_err=yes
12618fi
12619if test -z "$ac_cpp_err"; then
12620 :
12621else
12622 echo "$as_me: failed program was:" >&5
12623sed 's/^/| /' conftest.$ac_ext >&5
12624
12625 # Broken: fails on valid input.
12626continue
12627fi
12628rm -f conftest.err conftest.$ac_ext
12629
12630 # OK, works on sane cases. Now check whether non-existent headers
12631 # can be detected and how.
12632 cat >conftest.$ac_ext <<_ACEOF
12633/* confdefs.h. */
12634_ACEOF
12635cat confdefs.h >>conftest.$ac_ext
12636cat >>conftest.$ac_ext <<_ACEOF
12637/* end confdefs.h. */
12638#include <ac_nonexistent.h>
12639_ACEOF
12640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } >/dev/null; then
12648 if test -s conftest.err; then
12649 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12650 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12651 else
12652 ac_cpp_err=
12653 fi
12654else
12655 ac_cpp_err=yes
12656fi
12657if test -z "$ac_cpp_err"; then
12658 # Broken: success on invalid input.
12659continue
12660else
12661 echo "$as_me: failed program was:" >&5
12662sed 's/^/| /' conftest.$ac_ext >&5
12663
12664 # Passes both tests.
12665ac_preproc_ok=:
12666break
12667fi
12668rm -f conftest.err conftest.$ac_ext
12669
12670done
12671# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12672rm -f conftest.err conftest.$ac_ext
12673if $ac_preproc_ok; then
12674 break
12675fi
12676
12677 done
12678 ac_cv_prog_CPP=$CPP
12679
12680fi
12681 CPP=$ac_cv_prog_CPP
12682else
12683 ac_cv_prog_CPP=$CPP
12684fi
12685echo "$as_me:$LINENO: result: $CPP" >&5
12686echo "${ECHO_T}$CPP" >&6
12687ac_preproc_ok=false
12688for ac_c_preproc_warn_flag in '' yes
12689do
12690 # Use a header file that comes with gcc, so configuring glibc
12691 # with a fresh cross-compiler works.
12692 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12693 # <limits.h> exists even on freestanding compilers.
12694 # On the NeXT, cc -E runs the code through the compiler's parser,
12695 # not just through cpp. "Syntax error" is here to catch this case.
12696 cat >conftest.$ac_ext <<_ACEOF
12697/* confdefs.h. */
12698_ACEOF
12699cat confdefs.h >>conftest.$ac_ext
12700cat >>conftest.$ac_ext <<_ACEOF
12701/* end confdefs.h. */
12702#ifdef __STDC__
12703# include <limits.h>
12704#else
12705# include <assert.h>
12706#endif
ac1cb8d3 12707 Syntax error
a848cd7e
SC
12708_ACEOF
12709if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12710 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12711 ac_status=$?
12712 grep -v '^ *+' conftest.er1 >conftest.err
12713 rm -f conftest.er1
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } >/dev/null; then
12717 if test -s conftest.err; then
12718 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12719 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12720 else
12721 ac_cpp_err=
12722 fi
12723else
12724 ac_cpp_err=yes
12725fi
12726if test -z "$ac_cpp_err"; then
12727 :
12728else
12729 echo "$as_me: failed program was:" >&5
12730sed 's/^/| /' conftest.$ac_ext >&5
12731
12732 # Broken: fails on valid input.
12733continue
12734fi
12735rm -f conftest.err conftest.$ac_ext
12736
12737 # OK, works on sane cases. Now check whether non-existent headers
12738 # can be detected and how.
12739 cat >conftest.$ac_ext <<_ACEOF
12740/* confdefs.h. */
12741_ACEOF
12742cat confdefs.h >>conftest.$ac_ext
12743cat >>conftest.$ac_ext <<_ACEOF
12744/* end confdefs.h. */
12745#include <ac_nonexistent.h>
12746_ACEOF
12747if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12748 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12749 ac_status=$?
12750 grep -v '^ *+' conftest.er1 >conftest.err
12751 rm -f conftest.er1
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } >/dev/null; then
12755 if test -s conftest.err; then
12756 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 12757 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
12758 else
12759 ac_cpp_err=
12760 fi
12761else
12762 ac_cpp_err=yes
12763fi
12764if test -z "$ac_cpp_err"; then
12765 # Broken: success on invalid input.
12766continue
12767else
12768 echo "$as_me: failed program was:" >&5
12769sed 's/^/| /' conftest.$ac_ext >&5
12770
12771 # Passes both tests.
12772ac_preproc_ok=:
12773break
12774fi
12775rm -f conftest.err conftest.$ac_ext
12776
12777done
12778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12779rm -f conftest.err conftest.$ac_ext
12780if $ac_preproc_ok; then
12781 :
12782else
12783 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12784See \`config.log' for more details." >&5
12785echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12786See \`config.log' for more details." >&2;}
12787 { (exit 1); exit 1; }; }
12788fi
12789
12790ac_ext=c
12791ac_cpp='$CPP $CPPFLAGS'
12792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12794ac_compiler_gnu=$ac_cv_c_compiler_gnu
12795
12796
12797echo "$as_me:$LINENO: checking for egrep" >&5
12798echo $ECHO_N "checking for egrep... $ECHO_C" >&6
12799if test "${ac_cv_prog_egrep+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12801else
12802 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
12803 then ac_cv_prog_egrep='grep -E'
12804 else ac_cv_prog_egrep='egrep'
12805 fi
12806fi
12807echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
12808echo "${ECHO_T}$ac_cv_prog_egrep" >&6
12809 EGREP=$ac_cv_prog_egrep
12810
12811
12812if test $ac_cv_c_compiler_gnu = yes; then
12813 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12814echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
12815if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12816 echo $ECHO_N "(cached) $ECHO_C" >&6
12817else
12818 ac_pattern="Autoconf.*'x'"
12819 cat >conftest.$ac_ext <<_ACEOF
12820/* confdefs.h. */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
12824/* end confdefs.h. */
12825#include <sgtty.h>
12826Autoconf TIOCGETP
12827_ACEOF
12828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12829 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12830 ac_cv_prog_gcc_traditional=yes
12831else
12832 ac_cv_prog_gcc_traditional=no
12833fi
12834rm -f conftest*
12835
12836
12837 if test $ac_cv_prog_gcc_traditional = no; then
12838 cat >conftest.$ac_ext <<_ACEOF
12839/* confdefs.h. */
12840_ACEOF
12841cat confdefs.h >>conftest.$ac_ext
12842cat >>conftest.$ac_ext <<_ACEOF
12843/* end confdefs.h. */
12844#include <termio.h>
12845Autoconf TCGETA
12846_ACEOF
12847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12848 $EGREP "$ac_pattern" >/dev/null 2>&1; then
12849 ac_cv_prog_gcc_traditional=yes
12850fi
12851rm -f conftest*
12852
12853 fi
12854fi
12855echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12856echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
12857 if test $ac_cv_prog_gcc_traditional = yes; then
12858 CC="$CC -traditional"
12859 fi
12860fi
12861
12862
12863
12864
12865ac_ext=cc
12866ac_cpp='$CXXCPP $CPPFLAGS'
12867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12870
12871
12872CXXFLAGS=${CXXFLAGS:=}
6dcfc289
DE
12873
12874
3006edc0 12875
6dcfc289 12876 ac_ext=cc
a848cd7e
SC
12877ac_cpp='$CXXCPP $CPPFLAGS'
12878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12881if test -n "$ac_tool_prefix"; then
12882 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12883 do
12884 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12886echo "$as_me:$LINENO: checking for $ac_word" >&5
12887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12888if test "${ac_cv_prog_CXX+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12890else
12891 if test -n "$CXX"; then
12892 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12893else
12894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895for as_dir in $PATH
12896do
12897 IFS=$as_save_IFS
12898 test -z "$as_dir" && as_dir=.
12899 for ac_exec_ext in '' $ac_executable_extensions; do
12900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12901 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12903 break 2
12904 fi
12905done
12906done
12907
12908fi
12909fi
12910CXX=$ac_cv_prog_CXX
12911if test -n "$CXX"; then
12912 echo "$as_me:$LINENO: result: $CXX" >&5
12913echo "${ECHO_T}$CXX" >&6
12914else
12915 echo "$as_me:$LINENO: result: no" >&5
12916echo "${ECHO_T}no" >&6
12917fi
12918
12919 test -n "$CXX" && break
12920 done
12921fi
12922if test -z "$CXX"; then
12923 ac_ct_CXX=$CXX
12924 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
12925do
12926 # Extract the first word of "$ac_prog", so it can be a program name with args.
12927set dummy $ac_prog; ac_word=$2
12928echo "$as_me:$LINENO: checking for $ac_word" >&5
12929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12930if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12932else
12933 if test -n "$ac_ct_CXX"; then
12934 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12935else
12936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12937for as_dir in $PATH
12938do
12939 IFS=$as_save_IFS
12940 test -z "$as_dir" && as_dir=.
12941 for ac_exec_ext in '' $ac_executable_extensions; do
12942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12943 ac_cv_prog_ac_ct_CXX="$ac_prog"
12944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12945 break 2
12946 fi
12947done
12948done
12949
12950fi
12951fi
12952ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12953if test -n "$ac_ct_CXX"; then
12954 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
12955echo "${ECHO_T}$ac_ct_CXX" >&6
12956else
12957 echo "$as_me:$LINENO: result: no" >&5
12958echo "${ECHO_T}no" >&6
12959fi
12960
12961 test -n "$ac_ct_CXX" && break
12962done
12963test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
12964
12965 CXX=$ac_ct_CXX
12966fi
12967
12968
12969# Provide some information about the compiler.
12970echo "$as_me:$LINENO:" \
12971 "checking for C++ compiler version" >&5
12972ac_compiler=`set X $ac_compile; echo $2`
12973{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
12974 (eval $ac_compiler --version </dev/null >&5) 2>&5
12975 ac_status=$?
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }
12978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
12979 (eval $ac_compiler -v </dev/null >&5) 2>&5
12980 ac_status=$?
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }
12983{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
12984 (eval $ac_compiler -V </dev/null >&5) 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); }
12988
12989echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
12990echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
12991if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
12992 echo $ECHO_N "(cached) $ECHO_C" >&6
12993else
12994 cat >conftest.$ac_ext <<_ACEOF
12995/* confdefs.h. */
12996_ACEOF
12997cat confdefs.h >>conftest.$ac_ext
12998cat >>conftest.$ac_ext <<_ACEOF
12999/* end confdefs.h. */
13000
13001int
13002main ()
13003{
13004#ifndef __GNUC__
13005 choke me
13006#endif
13007
13008 ;
13009 return 0;
13010}
13011_ACEOF
13012rm -f conftest.$ac_objext
13013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13014 (eval $ac_compile) 2>conftest.er1
a848cd7e 13015 ac_status=$?
ac1cb8d3
VS
13016 grep -v '^ *+' conftest.er1 >conftest.err
13017 rm -f conftest.er1
13018 cat conftest.err >&5
a848cd7e
SC
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } &&
5ff751d6 13021 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13023 (eval $ac_try) 2>&5
13024 ac_status=$?
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); }; } &&
13027 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13029 (eval $ac_try) 2>&5
13030 ac_status=$?
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); }; }; then
13033 ac_compiler_gnu=yes
13034else
13035 echo "$as_me: failed program was:" >&5
13036sed 's/^/| /' conftest.$ac_ext >&5
13037
13038ac_compiler_gnu=no
13039fi
ac1cb8d3 13040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13041ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13042
13043fi
13044echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
13045echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
13046GXX=`test $ac_compiler_gnu = yes && echo yes`
13047ac_test_CXXFLAGS=${CXXFLAGS+set}
13048ac_save_CXXFLAGS=$CXXFLAGS
13049CXXFLAGS="-g"
13050echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
13051echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
13052if test "${ac_cv_prog_cxx_g+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13054else
13055 cat >conftest.$ac_ext <<_ACEOF
13056/* confdefs.h. */
13057_ACEOF
13058cat confdefs.h >>conftest.$ac_ext
13059cat >>conftest.$ac_ext <<_ACEOF
13060/* end confdefs.h. */
13061
13062int
13063main ()
13064{
13065
13066 ;
13067 return 0;
13068}
13069_ACEOF
13070rm -f conftest.$ac_objext
13071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13072 (eval $ac_compile) 2>conftest.er1
a848cd7e 13073 ac_status=$?
ac1cb8d3
VS
13074 grep -v '^ *+' conftest.er1 >conftest.err
13075 rm -f conftest.er1
13076 cat conftest.err >&5
a848cd7e
SC
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
5ff751d6 13079 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13082 ac_status=$?
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13087 (eval $ac_try) 2>&5
13088 ac_status=$?
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); }; }; then
13091 ac_cv_prog_cxx_g=yes
13092else
13093 echo "$as_me: failed program was:" >&5
13094sed 's/^/| /' conftest.$ac_ext >&5
13095
13096ac_cv_prog_cxx_g=no
13097fi
ac1cb8d3 13098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13099fi
13100echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
13101echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
13102if test "$ac_test_CXXFLAGS" = set; then
13103 CXXFLAGS=$ac_save_CXXFLAGS
13104elif test $ac_cv_prog_cxx_g = yes; then
13105 if test "$GXX" = yes; then
8aeeb05c 13106 CXXFLAGS="-g -O2"
a848cd7e 13107 else
8aeeb05c 13108 CXXFLAGS="-g"
a848cd7e
SC
13109 fi
13110else
13111 if test "$GXX" = yes; then
13112 CXXFLAGS="-O2"
13113 else
13114 CXXFLAGS=
13115 fi
13116fi
13117for ac_declaration in \
ac1cb8d3 13118 '' \
a848cd7e
SC
13119 'extern "C" void std::exit (int) throw (); using std::exit;' \
13120 'extern "C" void std::exit (int); using std::exit;' \
13121 'extern "C" void exit (int) throw ();' \
13122 'extern "C" void exit (int);' \
13123 'void exit (int);'
13124do
13125 cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
de59c161 13131$ac_declaration
ac1cb8d3 13132#include <stdlib.h>
a848cd7e
SC
13133int
13134main ()
13135{
13136exit (42);
13137 ;
13138 return 0;
13139}
13140_ACEOF
13141rm -f conftest.$ac_objext
13142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13143 (eval $ac_compile) 2>conftest.er1
a848cd7e 13144 ac_status=$?
ac1cb8d3
VS
13145 grep -v '^ *+' conftest.er1 >conftest.err
13146 rm -f conftest.er1
13147 cat conftest.err >&5
a848cd7e
SC
13148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13149 (exit $ac_status); } &&
5ff751d6 13150 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13152 (eval $ac_try) 2>&5
13153 ac_status=$?
13154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155 (exit $ac_status); }; } &&
13156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13159 ac_status=$?
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 :
13163else
13164 echo "$as_me: failed program was:" >&5
13165sed 's/^/| /' conftest.$ac_ext >&5
13166
13167continue
13168fi
ac1cb8d3 13169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13170 cat >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_declaration
13177int
13178main ()
13179{
13180exit (42);
13181 ;
13182 return 0;
13183}
13184_ACEOF
13185rm -f conftest.$ac_objext
13186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 13187 (eval $ac_compile) 2>conftest.er1
a848cd7e 13188 ac_status=$?
ac1cb8d3
VS
13189 grep -v '^ *+' conftest.er1 >conftest.err
13190 rm -f conftest.er1
13191 cat conftest.err >&5
a848cd7e
SC
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); } &&
5ff751d6 13194 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
13195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13196 (eval $ac_try) 2>&5
13197 ac_status=$?
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; } &&
13200 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; }; then
13206 break
13207else
13208 echo "$as_me: failed program was:" >&5
13209sed 's/^/| /' conftest.$ac_ext >&5
13210
13211fi
ac1cb8d3 13212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
13213done
13214rm -f conftest*
13215if test -n "$ac_declaration"; then
13216 echo '#ifdef __cplusplus' >>confdefs.h
13217 echo $ac_declaration >>confdefs.h
13218 echo '#endif' >>confdefs.h
13219fi
13220
13221ac_ext=cc
13222ac_cpp='$CXXCPP $CPPFLAGS'
13223ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13224ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13225ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13226
ab0ad5f1
VZ
13227
13228
13229 ac_ext=cc
13230ac_cpp='$CXXCPP $CPPFLAGS'
13231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13234
13235 echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
13236echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6
13237if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13239else
13240 cat >conftest.$ac_ext <<_ACEOF
13241/* confdefs.h. */
13242_ACEOF
13243cat confdefs.h >>conftest.$ac_ext
13244cat >>conftest.$ac_ext <<_ACEOF
13245/* end confdefs.h. */
13246
13247int
13248main ()
13249{
13250
13251 #ifndef __INTEL_COMPILER
13252 choke me
13253 #endif
13254
13255 ;
13256 return 0;
13257}
13258_ACEOF
13259rm -f conftest.$ac_objext
13260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13261 (eval $ac_compile) 2>conftest.er1
13262 ac_status=$?
13263 grep -v '^ *+' conftest.er1 >conftest.err
13264 rm -f conftest.er1
13265 cat conftest.err >&5
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); } &&
5ff751d6 13268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ab0ad5f1
VZ
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13277 ac_status=$?
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
13281else
13282 echo "$as_me: failed program was:" >&5
13283sed 's/^/| /' conftest.$ac_ext >&5
13284
13285bakefile_cv_cxx_compiler___INTEL_COMPILER=no
13286
13287fi
13288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13289
13290
13291fi
13292echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
13293echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6
13294 ac_ext=cc
13295ac_cpp='$CXXCPP $CPPFLAGS'
13296ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13297ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13298ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13299
13300 if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
13301 :; INTELCXX=yes
13302 else
13303 :;
13304 fi
13305
13306
3006edc0
VZ
13307 if test "x$GCXX" != "xyes"; then
13308 if test "xCXX" = "xC"; then
13309 echo "$as_me:$LINENO: checking if the C++ compiler requires -ext o" >&5
480ccd21 13310echo $ECHO_N "checking if the C++ compiler requires -ext o... $ECHO_C" >&6
0093c2fc 13311if test "${bakefile_cv_cxx_exto+set}" = set; then
480ccd21
DE
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13313else
13314 cat >conftest.$ac_ext <<_ACEOF
13315/* confdefs.h. */
13316_ACEOF
13317cat confdefs.h >>conftest.$ac_ext
13318cat >>conftest.$ac_ext <<_ACEOF
13319/* end confdefs.h. */
13320
13321int
13322main ()
13323{
13324
13325 ;
13326 return 0;
13327}
13328_ACEOF
13329rm -f conftest.$ac_objext conftest.$ac_ext.o
13330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13331 (eval $ac_compile) 2>&5
13332 ac_status=$?
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; then
13335 for ac_file in `(ls conftest.* 2>/dev/null)`; do
13336 case $ac_file in
13337 conftest.$ac_ext.o)
0093c2fc 13338 bakefile_cv_cxx_exto="-ext o"
480ccd21
DE
13339 ;;
13340 *)
13341 ;;
13342 esac
13343done
13344else
13345 { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
13346See \`config.log' for more details." >&5
13347echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
13348See \`config.log' for more details." >&2;}
13349 { (exit 1); exit 1; }; }
13350
13351fi
13352
13353rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
13354
13355fi
0093c2fc
VZ
13356echo "$as_me:$LINENO: result: $bakefile_cv_cxx_exto" >&5
13357echo "${ECHO_T}$bakefile_cv_cxx_exto" >&6
13358if test "x$bakefile_cv_cxx_exto" '!=' "x"; then
480ccd21 13359 if test "cxx" = "c"; then
0093c2fc 13360 CFLAGS="$bakefile_cv_cxx_exto $CFLAGS"
480ccd21
DE
13361 fi
13362 if test "cxx" = "cxx"; then
0093c2fc 13363 CXXFLAGS="$bakefile_cv_cxx_exto $CXXFLAGS"
480ccd21
DE
13364 fi
13365fi
13366
0093c2fc 13367 if test "x$bakefile_cv_c_exto" '!=' "x"; then
3006edc0
VZ
13368 unset ac_cv_prog_cc_g
13369 ac_test_CFLAGS=${CFLAGS+set}
13370ac_save_CFLAGS=$CFLAGS
8aeeb05c 13371CFLAGS="-g"
3006edc0
VZ
13372echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13373echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
13374if test "${ac_cv_prog_cc_g+set}" = set; then
480ccd21
DE
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376else
13377 cat >conftest.$ac_ext <<_ACEOF
13378/* confdefs.h. */
13379_ACEOF
13380cat confdefs.h >>conftest.$ac_ext
13381cat >>conftest.$ac_ext <<_ACEOF
13382/* end confdefs.h. */
13383
13384int
13385main ()
13386{
13387
13388 ;
13389 return 0;
13390}
13391_ACEOF
13392rm -f conftest.$ac_objext
13393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13394 (eval $ac_compile) 2>conftest.er1
13395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } &&
5ff751d6 13401 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
480ccd21
DE
13402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13403 (eval $ac_try) 2>&5
13404 ac_status=$?
13405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13406 (exit $ac_status); }; } &&
13407 { ac_try='test -s conftest.$ac_objext'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
3006edc0 13413 ac_cv_prog_cc_g=yes
480ccd21
DE
13414else
13415 echo "$as_me: failed program was:" >&5
13416sed 's/^/| /' conftest.$ac_ext >&5
13417
3006edc0 13418ac_cv_prog_cc_g=no
480ccd21
DE
13419fi
13420rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13421fi
3006edc0
VZ
13422echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13423echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
13424if test "$ac_test_CFLAGS" = set; then
13425 CFLAGS=$ac_save_CFLAGS
13426elif test $ac_cv_prog_cc_g = yes; then
13427 if test "$GCC" = yes; then
13428 CFLAGS="-g -O2"
480ccd21 13429 else
3006edc0 13430 CFLAGS="-g"
480ccd21
DE
13431 fi
13432else
3006edc0
VZ
13433 if test "$GCC" = yes; then
13434 CFLAGS="-O2"
480ccd21 13435 else
3006edc0 13436 CFLAGS=
480ccd21
DE
13437 fi
13438fi
3006edc0 13439 fi
ab0ad5f1 13440 fi
3006edc0
VZ
13441
13442 case `uname -s` in
13443 AIX*)
13444 ac_ext=cc
13445ac_cpp='$CXXCPP $CPPFLAGS'
13446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13449
13450echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13451echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13452if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
3006edc0
VZ
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13454else
13455 cat >conftest.$ac_ext <<_ACEOF
13456/* confdefs.h. */
13457_ACEOF
13458cat confdefs.h >>conftest.$ac_ext
13459cat >>conftest.$ac_ext <<_ACEOF
13460/* end confdefs.h. */
13461
13462int
13463main ()
13464{
13465#ifndef __xlC__
13466 choke me
13467#endif
13468
13469 ;
13470 return 0;
13471}
13472_ACEOF
13473rm -f conftest.$ac_objext
13474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13475 (eval $ac_compile) 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } &&
5ff751d6 13482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest.$ac_objext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
0093c2fc 13494 bakefile_compiler_xlc=yes
3006edc0
VZ
13495else
13496 echo "$as_me: failed program was:" >&5
13497sed 's/^/| /' conftest.$ac_ext >&5
13498
0093c2fc 13499bakefile_compiler_xlc=no
3006edc0
VZ
13500fi
13501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13502 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
3006edc0
VZ
13503
13504fi
0093c2fc
VZ
13505echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13506echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
3006edc0 13507
0093c2fc 13508XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
3006edc0
VZ
13509ac_ext=cc
13510ac_cpp='$CXXCPP $CPPFLAGS'
13511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13514
13515
13516 ;;
13517
13518 Darwin)
13519 ac_ext=cc
95986553
DE
13520ac_cpp='$CXXCPP $CPPFLAGS'
13521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13524
13525echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
13526echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6
13527if test "${bakefile_cv_cxx_compiler_mwerks+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13529else
13530 cat >conftest.$ac_ext <<_ACEOF
13531/* confdefs.h. */
13532_ACEOF
13533cat confdefs.h >>conftest.$ac_ext
13534cat >>conftest.$ac_ext <<_ACEOF
13535/* end confdefs.h. */
13536
13537int
13538main ()
13539{
13540#ifndef __MWERKS__
13541 choke me
13542#endif
13543
13544 ;
13545 return 0;
13546}
13547_ACEOF
13548rm -f conftest.$ac_objext
13549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13550 (eval $ac_compile) 2>conftest.er1
13551 ac_status=$?
13552 grep -v '^ *+' conftest.er1 >conftest.err
13553 rm -f conftest.er1
13554 cat conftest.err >&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); } &&
5ff751d6 13557 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
95986553
DE
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; } &&
13563 { ac_try='test -s conftest.$ac_objext'
13564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13565 (eval $ac_try) 2>&5
13566 ac_status=$?
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); }; }; then
13569 bakefile_compiler_mwerks=yes
13570else
13571 echo "$as_me: failed program was:" >&5
13572sed 's/^/| /' conftest.$ac_ext >&5
13573
13574bakefile_compiler_mwerks=no
13575fi
13576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13577 bakefile_cv_cxx_compiler_mwerks=$bakefile_compiler_mwerks
13578
13579fi
13580echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_mwerks" >&5
13581echo "${ECHO_T}$bakefile_cv_cxx_compiler_mwerks" >&6
13582
0e6fa1d9 13583MWCXX=`test $bakefile_cv_cxx_compiler_mwerks = yes && echo yes`
95986553
DE
13584ac_ext=cc
13585ac_cpp='$CXXCPP $CPPFLAGS'
13586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13589
13590
3006edc0 13591 ac_ext=cc
9273ffba
DE
13592ac_cpp='$CXXCPP $CPPFLAGS'
13593ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13594ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13595ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13596
13597echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
13598echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6
0093c2fc 13599if test "${bakefile_cv_cxx_compiler_xlc+set}" = set; then
9273ffba
DE
13600 echo $ECHO_N "(cached) $ECHO_C" >&6
13601else
13602 cat >conftest.$ac_ext <<_ACEOF
13603/* confdefs.h. */
13604_ACEOF
13605cat confdefs.h >>conftest.$ac_ext
13606cat >>conftest.$ac_ext <<_ACEOF
13607/* end confdefs.h. */
13608
13609int
13610main ()
13611{
13612#ifndef __xlC__
13613 choke me
13614#endif
13615
13616 ;
13617 return 0;
13618}
13619_ACEOF
13620rm -f conftest.$ac_objext
13621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13622 (eval $ac_compile) 2>conftest.er1
13623 ac_status=$?
13624 grep -v '^ *+' conftest.er1 >conftest.err
13625 rm -f conftest.er1
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
5ff751d6 13629 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9273ffba
DE
13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13631 (eval $ac_try) 2>&5
13632 ac_status=$?
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); }; } &&
13635 { ac_try='test -s conftest.$ac_objext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
0093c2fc 13641 bakefile_compiler_xlc=yes
9273ffba
DE
13642else
13643 echo "$as_me: failed program was:" >&5
13644sed 's/^/| /' conftest.$ac_ext >&5
13645
0093c2fc 13646bakefile_compiler_xlc=no
9273ffba
DE
13647fi
13648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
0093c2fc 13649 bakefile_cv_cxx_compiler_xlc=$bakefile_compiler_xlc
9273ffba
DE
13650
13651fi
0093c2fc
VZ
13652echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler_xlc" >&5
13653echo "${ECHO_T}$bakefile_cv_cxx_compiler_xlc" >&6
9273ffba 13654
0093c2fc 13655XLCXX=`test $bakefile_cv_cxx_compiler_xlc = yes && echo yes`
9273ffba
DE
13656ac_ext=cc
13657ac_cpp='$CXXCPP $CPPFLAGS'
13658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13661
13662
3006edc0
VZ
13663 ;;
13664
13665 IRIX*)
95986553 13666
6dcfc289 13667
0ad5d837
VZ
13668 ac_ext=cc
13669ac_cpp='$CXXCPP $CPPFLAGS'
13670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13673
13674 echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
13675echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6
13676if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
13678else
13679 cat >conftest.$ac_ext <<_ACEOF
13680/* confdefs.h. */
13681_ACEOF
13682cat confdefs.h >>conftest.$ac_ext
13683cat >>conftest.$ac_ext <<_ACEOF
13684/* end confdefs.h. */
13685
13686int
13687main ()
13688{
13689
13690 #ifndef _SGI_COMPILER_VERSION
13691 choke me
13692 #endif
13693
13694 ;
13695 return 0;
13696}
13697_ACEOF
13698rm -f conftest.$ac_objext
13699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13700 (eval $ac_compile) 2>conftest.er1
13701 ac_status=$?
13702 grep -v '^ *+' conftest.er1 >conftest.err
13703 rm -f conftest.er1
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
5ff751d6 13707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13710 ac_status=$?
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; } &&
13713 { ac_try='test -s conftest.$ac_objext'
13714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13715 (eval $ac_try) 2>&5
13716 ac_status=$?
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); }; }; then
13719 bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
13720else
13721 echo "$as_me: failed program was:" >&5
13722sed 's/^/| /' conftest.$ac_ext >&5
13723
13724bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
13725
13726fi
13727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13728
13729
13730fi
13731echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
13732echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6
13733 ac_ext=cc
13734ac_cpp='$CXXCPP $CPPFLAGS'
13735ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13736ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13737ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13738
13739 if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
13740 :; SGICXX=yes
13741 else
13742 :;
13743 fi
13744
13745
3006edc0
VZ
13746 ;;
13747
0093c2fc 13748 HP-UX*)
3006edc0
VZ
13749
13750
13751 ac_ext=cc
13752ac_cpp='$CXXCPP $CPPFLAGS'
13753ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13754ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13755ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13756
0093c2fc
VZ
13757 echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
13758echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6
13759if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
3006edc0
VZ
13760 echo $ECHO_N "(cached) $ECHO_C" >&6
13761else
13762 cat >conftest.$ac_ext <<_ACEOF
13763/* confdefs.h. */
13764_ACEOF
13765cat confdefs.h >>conftest.$ac_ext
13766cat >>conftest.$ac_ext <<_ACEOF
13767/* end confdefs.h. */
13768
13769int
13770main ()
13771{
13772
0093c2fc 13773 #ifndef __HP_aCC
3006edc0
VZ
13774 choke me
13775 #endif
13776
13777 ;
13778 return 0;
13779}
13780_ACEOF
13781rm -f conftest.$ac_objext
13782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13783 (eval $ac_compile) 2>conftest.er1
13784 ac_status=$?
13785 grep -v '^ *+' conftest.er1 >conftest.err
13786 rm -f conftest.er1
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } &&
5ff751d6 13790 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3006edc0
VZ
13791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13792 (eval $ac_try) 2>&5
13793 ac_status=$?
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); }; } &&
13796 { ac_try='test -s conftest.$ac_objext'
13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13798 (eval $ac_try) 2>&5
13799 ac_status=$?
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
0093c2fc 13802 bakefile_cv_cxx_compiler___HP_aCC=yes
3006edc0
VZ
13803else
13804 echo "$as_me: failed program was:" >&5
13805sed 's/^/| /' conftest.$ac_ext >&5
13806
0093c2fc 13807bakefile_cv_cxx_compiler___HP_aCC=no
3006edc0
VZ
13808
13809fi
13810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13811
13812
13813fi
0093c2fc
VZ
13814echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
13815echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6
3006edc0
VZ
13816 ac_ext=cc
13817ac_cpp='$CXXCPP $CPPFLAGS'
13818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13821
0093c2fc
VZ
13822 if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
13823 :; HPCXX=yes
a1aa0349
VZ
13824 else
13825 :;
13826 fi
13827
13828
13829 ;;
13830
0093c2fc 13831 OSF1)
a1aa0349
VZ
13832
13833
13834 ac_ext=cc
13835ac_cpp='$CXXCPP $CPPFLAGS'
13836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13839
0093c2fc
VZ
13840 echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
13841echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6
13842if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
a1aa0349
VZ
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13844else
13845 cat >conftest.$ac_ext <<_ACEOF
13846/* confdefs.h. */
13847_ACEOF
13848cat confdefs.h >>conftest.$ac_ext
13849cat >>conftest.$ac_ext <<_ACEOF
13850/* end confdefs.h. */
13851
13852int
13853main ()
13854{
13855
0093c2fc 13856 #ifndef __DECCXX
a1aa0349
VZ
13857 choke me
13858 #endif
13859
13860 ;
13861 return 0;
13862}
13863_ACEOF
13864rm -f conftest.$ac_objext
13865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13866 (eval $ac_compile) 2>conftest.er1
13867 ac_status=$?
13868 grep -v '^ *+' conftest.er1 >conftest.err
13869 rm -f conftest.er1
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } &&
5ff751d6 13873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
a1aa0349
VZ
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13876 ac_status=$?
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; } &&
13879 { ac_try='test -s conftest.$ac_objext'
13880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13881 (eval $ac_try) 2>&5
13882 ac_status=$?
13883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); }; }; then
0093c2fc 13885 bakefile_cv_cxx_compiler___DECCXX=yes
a1aa0349
VZ
13886else
13887 echo "$as_me: failed program was:" >&5
13888sed 's/^/| /' conftest.$ac_ext >&5
13889
0093c2fc 13890bakefile_cv_cxx_compiler___DECCXX=no
a1aa0349
VZ
13891
13892fi
13893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13894
13895
13896fi
0093c2fc
VZ
13897echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
13898echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6
a1aa0349
VZ
13899 ac_ext=cc
13900ac_cpp='$CXXCPP $CPPFLAGS'
13901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13904
0093c2fc
VZ
13905 if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
13906 :; COMPAQCXX=yes
13907 else
13908 :;
13909 fi
13910
13911
13912 ;;
13913
13914 SunOS)
13915
13916
13917 ac_ext=cc
13918ac_cpp='$CXXCPP $CPPFLAGS'
13919ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13920ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13921ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13922
13923 echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
13924echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6
13925if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13927else
13928 cat >conftest.$ac_ext <<_ACEOF
13929/* confdefs.h. */
13930_ACEOF
13931cat confdefs.h >>conftest.$ac_ext
13932cat >>conftest.$ac_ext <<_ACEOF
13933/* end confdefs.h. */
13934
13935int
13936main ()
13937{
13938
13939 #ifndef __SUNPRO_CC
13940 choke me
13941 #endif
13942
13943 ;
13944 return 0;
13945}
13946_ACEOF
13947rm -f conftest.$ac_objext
13948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13949 (eval $ac_compile) 2>conftest.er1
13950 ac_status=$?
13951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
5ff751d6 13956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0093c2fc
VZ
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 bakefile_cv_cxx_compiler___SUNPRO_CC=yes
13969else
13970 echo "$as_me: failed program was:" >&5
13971sed 's/^/| /' conftest.$ac_ext >&5
13972
13973bakefile_cv_cxx_compiler___SUNPRO_CC=no
13974
13975fi
13976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13977
13978
13979fi
13980echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
13981echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6
13982 ac_ext=cc
13983ac_cpp='$CXXCPP $CPPFLAGS'
13984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13987
13988 if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
13989 :; SUNCXX=yes
3006edc0
VZ
13990 else
13991 :;
ab0ad5f1 13992 fi
a9e5b1f0
MW
13993
13994
3006edc0
VZ
13995 ;;
13996 esac
13997 fi
13998
13999
14000
a848cd7e
SC
14001ac_ext=c
14002ac_cpp='$CPP $CPPFLAGS'
14003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14005ac_compiler_gnu=$ac_cv_c_compiler_gnu
14006
14007
a848cd7e
SC
14008if test -n "$ac_tool_prefix"; then
14009 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14010set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14011echo "$as_me:$LINENO: checking for $ac_word" >&5
14012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14013if test "${ac_cv_prog_RANLIB+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14015else
14016 if test -n "$RANLIB"; then
14017 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14018else
14019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14020for as_dir in $PATH
14021do
14022 IFS=$as_save_IFS
14023 test -z "$as_dir" && as_dir=.
14024 for ac_exec_ext in '' $ac_executable_extensions; do
14025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14026 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14028 break 2
14029 fi
14030done
14031done
14032
14033fi
14034fi
14035RANLIB=$ac_cv_prog_RANLIB
14036if test -n "$RANLIB"; then
14037 echo "$as_me:$LINENO: result: $RANLIB" >&5
14038echo "${ECHO_T}$RANLIB" >&6
14039else
14040 echo "$as_me:$LINENO: result: no" >&5
14041echo "${ECHO_T}no" >&6
14042fi
14043
14044fi
14045if test -z "$ac_cv_prog_RANLIB"; then
14046 ac_ct_RANLIB=$RANLIB
14047 # Extract the first word of "ranlib", so it can be a program name with args.
14048set dummy ranlib; ac_word=$2
14049echo "$as_me:$LINENO: checking for $ac_word" >&5
14050echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14051if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14053else
14054 if test -n "$ac_ct_RANLIB"; then
14055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14056else
14057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14058for as_dir in $PATH
14059do
14060 IFS=$as_save_IFS
14061 test -z "$as_dir" && as_dir=.
14062 for ac_exec_ext in '' $ac_executable_extensions; do
14063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14064 ac_cv_prog_ac_ct_RANLIB="ranlib"
14065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14066 break 2
14067 fi
14068done
14069done
14070
14071 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
14072fi
14073fi
14074ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14075if test -n "$ac_ct_RANLIB"; then
14076 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
14077echo "${ECHO_T}$ac_ct_RANLIB" >&6
14078else
14079 echo "$as_me:$LINENO: result: no" >&5
14080echo "${ECHO_T}no" >&6
14081fi
14082
14083 RANLIB=$ac_ct_RANLIB
14084else
14085 RANLIB="$ac_cv_prog_RANLIB"
14086fi
14087
14088
8c80d384
DE
14089if test -n "$ac_tool_prefix"; then
14090 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14091set dummy ${ac_tool_prefix}ar; ac_word=$2
a848cd7e
SC
14092echo "$as_me:$LINENO: checking for $ac_word" >&5
14093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14094if test "${ac_cv_prog_AR+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14096else
14097 if test -n "$AR"; then
14098 ac_cv_prog_AR="$AR" # Let the user override the test.
14099else
14100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14101for as_dir in $PATH
14102do
14103 IFS=$as_save_IFS
14104 test -z "$as_dir" && as_dir=.
14105 for ac_exec_ext in '' $ac_executable_extensions; do
14106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14107 ac_cv_prog_AR="${ac_tool_prefix}ar"
a848cd7e
SC
14108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14109 break 2
14110 fi
14111done
14112done
14113
14114fi
14115fi
14116AR=$ac_cv_prog_AR
14117if test -n "$AR"; then
14118 echo "$as_me:$LINENO: result: $AR" >&5
14119echo "${ECHO_T}$AR" >&6
14120else
14121 echo "$as_me:$LINENO: result: no" >&5
14122echo "${ECHO_T}no" >&6
14123fi
14124
8c80d384
DE
14125fi
14126if test -z "$ac_cv_prog_AR"; then
14127 ac_ct_AR=$AR
14128 # Extract the first word of "ar", so it can be a program name with args.
14129set dummy ar; ac_word=$2
14130echo "$as_me:$LINENO: checking for $ac_word" >&5
14131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14132if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
14133 echo $ECHO_N "(cached) $ECHO_C" >&6
14134else
14135 if test -n "$ac_ct_AR"; then
14136 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14137else
14138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139for as_dir in $PATH
14140do
14141 IFS=$as_save_IFS
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
14144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14145 ac_cv_prog_ac_ct_AR="ar"
14146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14147 break 2
14148 fi
14149done
14150done
14151
14152fi
14153fi
14154ac_ct_AR=$ac_cv_prog_ac_ct_AR
14155if test -n "$ac_ct_AR"; then
14156 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
14157echo "${ECHO_T}$ac_ct_AR" >&6
14158else
14159 echo "$as_me:$LINENO: result: no" >&5
14160echo "${ECHO_T}no" >&6
14161fi
14162
14163 AR=$ac_ct_AR
14164else
14165 AR="$ac_cv_prog_AR"
14166fi
14167
a848cd7e 14168if test "x$AR" = "x" ; then
77ffb593
JS
14169 { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
14170echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
a848cd7e
SC
14171 { (exit 1); exit 1; }; }
14172fi
14173
14174# Find a good install program. We prefer a C program (faster),
14175# so one script is as good as another. But avoid the broken or
14176# incompatible versions:
14177# SysV /etc/install, /usr/sbin/install
14178# SunOS /usr/etc/install
14179# IRIX /sbin/install
14180# AIX /bin/install
14181# AmigaOS /C/install, which installs bootblocks on floppy discs
14182# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14183# AFS /usr/afsws/bin/install, which mishandles nonexistent args
14184# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 14185# OS/2's system install, which has a completely different semantic
a848cd7e
SC
14186# ./install, which can be erroneously created by make from ./install.sh.
14187echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
14188echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
14189if test -z "$INSTALL"; then
14190if test "${ac_cv_path_install+set}" = set; then
14191 echo $ECHO_N "(cached) $ECHO_C" >&6
14192else
14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194for as_dir in $PATH
14195do
14196 IFS=$as_save_IFS
14197 test -z "$as_dir" && as_dir=.
14198 # Account for people who put trailing slashes in PATH elements.
14199case $as_dir/ in
14200 ./ | .// | /cC/* | \
14201 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 14202 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
14203 /usr/ucb/* ) ;;
14204 *)
14205 # OSF1 and SCO ODT 3.0 have their own names for install.
14206 # Don't use installbsd from OSF since it installs stuff as root
14207 # by default.
14208 for ac_prog in ginstall scoinst install; do
14209 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
14210 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
14211 if test $ac_prog = install &&
14212 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14213 # AIX install. It has an incompatible calling convention.
14214 :
14215 elif test $ac_prog = install &&
14216 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14217 # program-specific install script used by HP pwplus--don't use.
14218 :
14219 else
14220 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14221 break 3
14222 fi
14223 fi
a848cd7e
SC
14224 done
14225 done
14226 ;;
14227esac
14228done
14229
14230
14231fi
14232 if test "${ac_cv_path_install+set}" = set; then
14233 INSTALL=$ac_cv_path_install
14234 else
14235 # As a last resort, use the slow shell script. We don't cache a
14236 # path for INSTALL within a source directory, because that will
14237 # break other packages using the cache if that directory is
14238 # removed, or if the path is relative.
14239 INSTALL=$ac_install_sh
14240 fi
14241fi
14242echo "$as_me:$LINENO: result: $INSTALL" >&5
14243echo "${ECHO_T}$INSTALL" >&6
14244
14245# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14246# It thinks the first close brace ends the variable substitution.
14247test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14248
14249test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14250
14251test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14252
14253
14254case ${INSTALL} in
14255 /* ) # Absolute
14256 ;;
14257 ?:* ) # Drive letter, considered as absolute.
14258 ;;
14259 *)
14260 INSTALL=`pwd`/${INSTALL} ;;
14261esac
14262
a848cd7e
SC
14263
14264case "${host}" in
14265
cfda0ea8 14266 *-*-darwin* )
a848cd7e
SC
14267 INSTALL_PROGRAM="cp -fp"
14268 INSTALL_DATA="cp -fp"
14269 ;;
14270 *)
14271 ;;
14272esac
14273
8c80d384
DE
14274if test -n "$ac_tool_prefix"; then
14275 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14276set dummy ${ac_tool_prefix}strip; ac_word=$2
a848cd7e
SC
14277echo "$as_me:$LINENO: checking for $ac_word" >&5
14278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14279if test "${ac_cv_prog_STRIP+set}" = set; then
14280 echo $ECHO_N "(cached) $ECHO_C" >&6
14281else
14282 if test -n "$STRIP"; then
14283 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
14284else
14285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286for as_dir in $PATH
14287do
14288 IFS=$as_save_IFS
14289 test -z "$as_dir" && as_dir=.
14290 for ac_exec_ext in '' $ac_executable_extensions; do
14291 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8c80d384 14292 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
a848cd7e
SC
14293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14294 break 2
14295 fi
14296done
14297done
14298
a848cd7e
SC
14299fi
14300fi
14301STRIP=$ac_cv_prog_STRIP
14302if test -n "$STRIP"; then
14303 echo "$as_me:$LINENO: result: $STRIP" >&5
14304echo "${ECHO_T}$STRIP" >&6
14305else
14306 echo "$as_me:$LINENO: result: no" >&5
14307echo "${ECHO_T}no" >&6
14308fi
14309
8c80d384
DE
14310fi
14311if test -z "$ac_cv_prog_STRIP"; then
14312 ac_ct_STRIP=$STRIP
14313 # Extract the first word of "strip", so it can be a program name with args.
14314set dummy strip; ac_word=$2
14315echo "$as_me:$LINENO: checking for $ac_word" >&5
14316echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14317if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14319else
14320 if test -n "$ac_ct_STRIP"; then
14321 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14322else
14323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14324for as_dir in $PATH
14325do
14326 IFS=$as_save_IFS
14327 test -z "$as_dir" && as_dir=.
14328 for ac_exec_ext in '' $ac_executable_extensions; do
14329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14330 ac_cv_prog_ac_ct_STRIP="strip"
14331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14332 break 2
14333 fi
14334done
14335done
14336
14337 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="true"
14338fi
14339fi
14340ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14341if test -n "$ac_ct_STRIP"; then
14342 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
14343echo "${ECHO_T}$ac_ct_STRIP" >&6
14344else
14345 echo "$as_me:$LINENO: result: no" >&5
14346echo "${ECHO_T}no" >&6
14347fi
14348
14349 STRIP=$ac_ct_STRIP
14350else
14351 STRIP="$ac_cv_prog_STRIP"
14352fi
14353
14354
14355if test "$wxUSE_WINE" = "yes"; then
14356 if test -n "$ac_tool_prefix"; then
14357 # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
14358set dummy ${ac_tool_prefix}wrc; ac_word=$2
14359echo "$as_me:$LINENO: checking for $ac_word" >&5
14360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14361if test "${ac_cv_prog_WINDRES+set}" = set; then
8c80d384
DE
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
8ced02f6
DE
14364 if test -n "$WINDRES"; then
14365 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8c80d384
DE
14366else
14367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368for as_dir in $PATH
14369do
14370 IFS=$as_save_IFS
14371 test -z "$as_dir" && as_dir=.
14372 for ac_exec_ext in '' $ac_executable_extensions; do
14373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14374 ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
8c80d384
DE
14375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14376 break 2
14377 fi
14378done
14379done
14380
14381fi
14382fi
8ced02f6
DE
14383WINDRES=$ac_cv_prog_WINDRES
14384if test -n "$WINDRES"; then
14385 echo "$as_me:$LINENO: result: $WINDRES" >&5
14386echo "${ECHO_T}$WINDRES" >&6
8c80d384
DE
14387else
14388 echo "$as_me:$LINENO: result: no" >&5
14389echo "${ECHO_T}no" >&6
14390fi
14391
14392fi
8ced02f6
DE
14393if test -z "$ac_cv_prog_WINDRES"; then
14394 ac_ct_WINDRES=$WINDRES
8c80d384
DE
14395 # Extract the first word of "wrc", so it can be a program name with args.
14396set dummy wrc; ac_word=$2
14397echo "$as_me:$LINENO: checking for $ac_word" >&5
14398echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 14399if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
8c80d384
DE
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401else
8ced02f6
DE
14402 if test -n "$ac_ct_WINDRES"; then
14403 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
8c80d384
DE
14404else
14405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14406for as_dir in $PATH
14407do
14408 IFS=$as_save_IFS
14409 test -z "$as_dir" && as_dir=.
14410 for ac_exec_ext in '' $ac_executable_extensions; do
14411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 14412 ac_cv_prog_ac_ct_WINDRES="wrc"
8c80d384
DE
14413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14414 break 2
14415 fi
14416done
14417done
14418
14419fi
14420fi
8ced02f6
DE
14421ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14422if test -n "$ac_ct_WINDRES"; then
14423 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14424echo "${ECHO_T}$ac_ct_WINDRES" >&6
8c80d384
DE
14425else
14426 echo "$as_me:$LINENO: result: no" >&5
14427echo "${ECHO_T}no" >&6
14428fi
14429
8ced02f6 14430 WINDRES=$ac_ct_WINDRES
8c80d384 14431else
8ced02f6 14432 WINDRES="$ac_cv_prog_WINDRES"
8c80d384
DE
14433fi
14434
004ee6da 14435 RESCOMP="$WINDRES"
8c80d384
DE
14436else
14437 case "${host}" in
14438 *-*-cygwin* | *-*-mingw32* )
004ee6da
RL
14439 if test -n "$ac_tool_prefix"; then
14440 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14441set dummy ${ac_tool_prefix}windres; ac_word=$2
14442echo "$as_me:$LINENO: checking for $ac_word" >&5
14443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14444if test "${ac_cv_prog_WINDRES+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14446else
14447 if test -n "$WINDRES"; then
14448 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
14449else
14450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451for as_dir in $PATH
14452do
14453 IFS=$as_save_IFS
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14457 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
14458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14459 break 2
14460 fi
14461done
14462done
14463
14464fi
14465fi
14466WINDRES=$ac_cv_prog_WINDRES
14467if test -n "$WINDRES"; then
14468 echo "$as_me:$LINENO: result: $WINDRES" >&5
14469echo "${ECHO_T}$WINDRES" >&6
14470else
14471 echo "$as_me:$LINENO: result: no" >&5
14472echo "${ECHO_T}no" >&6
14473fi
14474
14475fi
14476if test -z "$ac_cv_prog_WINDRES"; then
14477 ac_ct_WINDRES=$WINDRES
14478 # Extract the first word of "windres", so it can be a program name with args.
14479set dummy windres; ac_word=$2
14480echo "$as_me:$LINENO: checking for $ac_word" >&5
14481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14482if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484else
14485 if test -n "$ac_ct_WINDRES"; then
14486 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
14487else
14488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14489for as_dir in $PATH
14490do
14491 IFS=$as_save_IFS
14492 test -z "$as_dir" && as_dir=.
14493 for ac_exec_ext in '' $ac_executable_extensions; do
14494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14495 ac_cv_prog_ac_ct_WINDRES="windres"
14496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14497 break 2
14498 fi
14499done
14500done
14501
14502fi
14503fi
14504ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
14505if test -n "$ac_ct_WINDRES"; then
14506 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
14507echo "${ECHO_T}$ac_ct_WINDRES" >&6
14508else
14509 echo "$as_me:$LINENO: result: no" >&5
14510echo "${ECHO_T}no" >&6
14511fi
14512
14513 WINDRES=$ac_ct_WINDRES
14514else
14515 WINDRES="$ac_cv_prog_WINDRES"
14516fi
14517
14518 RESCOMP="$WINDRES"
14519 if test -n "$ac_tool_prefix"; then
8c80d384
DE
14520 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14521set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14522echo "$as_me:$LINENO: checking for $ac_word" >&5
14523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14524if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14525 echo $ECHO_N "(cached) $ECHO_C" >&6
14526else
14527 if test -n "$DLLTOOL"; then
14528 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14529else
14530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14531for as_dir in $PATH
14532do
14533 IFS=$as_save_IFS
14534 test -z "$as_dir" && as_dir=.
14535 for ac_exec_ext in '' $ac_executable_extensions; do
14536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14537 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14539 break 2
14540 fi
14541done
14542done
14543
14544fi
14545fi
14546DLLTOOL=$ac_cv_prog_DLLTOOL
14547if test -n "$DLLTOOL"; then
14548 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14549echo "${ECHO_T}$DLLTOOL" >&6
14550else
14551 echo "$as_me:$LINENO: result: no" >&5
14552echo "${ECHO_T}no" >&6
14553fi
14554
14555fi
14556if test -z "$ac_cv_prog_DLLTOOL"; then
14557 ac_ct_DLLTOOL=$DLLTOOL
14558 # Extract the first word of "dlltool", so it can be a program name with args.
14559set dummy dlltool; ac_word=$2
14560echo "$as_me:$LINENO: checking for $ac_word" >&5
14561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14562if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14564else
14565 if test -n "$ac_ct_DLLTOOL"; then
14566 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14567else
14568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14569for as_dir in $PATH
14570do
14571 IFS=$as_save_IFS
14572 test -z "$as_dir" && as_dir=.
14573 for ac_exec_ext in '' $ac_executable_extensions; do
14574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14575 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14577 break 2
14578 fi
14579done
14580done
14581
14582fi
14583fi
14584ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14585if test -n "$ac_ct_DLLTOOL"; then
14586 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14587echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14588else
14589 echo "$as_me:$LINENO: result: no" >&5
14590echo "${ECHO_T}no" >&6
14591fi
14592
14593 DLLTOOL=$ac_ct_DLLTOOL
14594else
14595 DLLTOOL="$ac_cv_prog_DLLTOOL"
14596fi
14597
14598 ;;
14599 esac
14600fi
a848cd7e
SC
14601
14602echo "$as_me:$LINENO: checking if make is GNU make" >&5
14603echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14604if test "${wx_cv_prog_makeisgnu+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14606else
14607
14608 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14609 egrep -s GNU > /dev/null); then
14610 wx_cv_prog_makeisgnu="yes"
14611 else
14612 wx_cv_prog_makeisgnu="no"
14613 fi
14614
14615fi
14616echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14617echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14618
14619if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14620 IF_GNU_MAKE=""
14621else
14622 IF_GNU_MAKE="#"
14623fi
14624
14625
14626
14627if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14628echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14629echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14630if test "${wx_cv_prog_makevpath+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632else
14633
14634cat - << EOF > confMake
14635check : file
14636 cp \$? \$@
14637 cp \$? final_file
14638EOF
14639
14640if test ! -d sub ; then
14641 mkdir sub
14642fi
14643echo dummy > sub/file
14644${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14645RESULT=$?
14646rm -f sub/file check final_file confMake
14647rmdir sub
14648if test "$RESULT" = 0; then
14649 wx_cv_prog_makevpath="yes"
14650else
14651 wx_cv_prog_makevpath="no"
14652fi
14653
14654fi
14655echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14656echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14657
14658if test "x$wx_cv_prog_makevpath" != "xyes"; then
14659{ { echo "$as_me:$LINENO: error:
14660You need a make-utility that is able to use the variable
14661VPATH correctly.
14662If your version of make does not support VPATH correctly,
14663please install GNU-make (possibly as gmake), and start
14664configure with the following command:
14665export MAKE=gmake; ./configure for sh-type shells
14666setenv MAKE gmake; ./configure for csh-type shells
14667Also please do remember to use gmake in this case every time
14668you are trying to compile.
14669" >&5
14670echo "$as_me: error:
14671You need a make-utility that is able to use the variable
14672VPATH correctly.
14673If your version of make does not support VPATH correctly,
14674please install GNU-make (possibly as gmake), and start
14675configure with the following command:
14676export MAKE=gmake; ./configure for sh-type shells
14677setenv MAKE gmake; ./configure for csh-type shells
14678Also please do remember to use gmake in this case every time
14679you are trying to compile.
14680" >&2;}
14681 { (exit 1); exit 1; }; }
14682fi fi
14683echo "$as_me:$LINENO: checking whether ln -s works" >&5
14684echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14685LN_S=$as_ln_s
14686if test "$LN_S" = "ln -s"; then
14687 echo "$as_me:$LINENO: result: yes" >&5
14688echo "${ECHO_T}yes" >&6
14689else
14690 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14691echo "${ECHO_T}no, using $LN_S" >&6
14692fi
14693
14694
bcaab0f9
MW
14695for ac_prog in lndir
14696do
14697 # Extract the first word of "$ac_prog", so it can be a program name with args.
14698set dummy $ac_prog; ac_word=$2
14699echo "$as_me:$LINENO: checking for $ac_word" >&5
14700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14701if test "${ac_cv_prog_LNDIR+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14703else
14704 if test -n "$LNDIR"; then
14705 ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test.
14706else
14707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14708for as_dir in $PATH
14709do
14710 IFS=$as_save_IFS
14711 test -z "$as_dir" && as_dir=.
14712 for ac_exec_ext in '' $ac_executable_extensions; do
14713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14714 ac_cv_prog_LNDIR="$ac_prog"
14715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14716 break 2
14717 fi
14718done
14719done
14720
14721fi
14722fi
14723LNDIR=$ac_cv_prog_LNDIR
14724if test -n "$LNDIR"; then
14725 echo "$as_me:$LINENO: result: $LNDIR" >&5
14726echo "${ECHO_T}$LNDIR" >&6
14727else
14728 echo "$as_me:$LINENO: result: no" >&5
14729echo "${ECHO_T}no" >&6
14730fi
14731
14732 test -n "$LNDIR" && break
14733done
91dea314 14734test -n "$LNDIR" || LNDIR="cp -pR"
bcaab0f9
MW
14735
14736
14737
a848cd7e 14738
2113bc77 14739if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
c92ad099 14740 CXXFLAGS="-qunique $CXXFLAGS"
9273ffba
DE
14741fi
14742
4d7ec9f1
DE
14743case "${host}" in
14744 powerpc-*-darwin* )
14745 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14746echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14747 cat >conftest.$ac_ext <<_ACEOF
14748/* confdefs.h. */
14749_ACEOF
14750cat confdefs.h >>conftest.$ac_ext
14751cat >>conftest.$ac_ext <<_ACEOF
14752/* end confdefs.h. */
14753
14754int
14755main ()
14756{
14757#ifndef __POWERPC__
14758 choke me for lack of PowerPC
14759#endif
14760
14761 ;
14762 return 0;
14763}
14764_ACEOF
14765rm -f conftest.$ac_objext
14766if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14767 (eval $ac_compile) 2>conftest.er1
14768 ac_status=$?
14769 grep -v '^ *+' conftest.er1 >conftest.err
14770 rm -f conftest.er1
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
5ff751d6 14774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14777 ac_status=$?
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; } &&
14780 { ac_try='test -s conftest.$ac_objext'
14781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14782 (eval $ac_try) 2>&5
14783 ac_status=$?
14784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14785 (exit $ac_status); }; }; then
14786 echo "$as_me:$LINENO: result: yes" >&5
14787echo "${ECHO_T}yes" >&6
14788else
14789 echo "$as_me: failed program was:" >&5
14790sed 's/^/| /' conftest.$ac_ext >&5
14791
14792echo "$as_me:$LINENO: result: no" >&5
14793echo "${ECHO_T}no" >&6
14794 cat >>confdefs.h <<\_ACEOF
14795#define __POWERPC__ 1
14796_ACEOF
14797
14798
14799fi
14800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14801 ;;
14802esac
14803
14804case "${host}" in
14805 *-*-darwin* )
4d7ec9f1
DE
14806 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14807echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14808 cat >conftest.$ac_ext <<_ACEOF
14809/* confdefs.h. */
14810_ACEOF
14811cat confdefs.h >>conftest.$ac_ext
14812cat >>conftest.$ac_ext <<_ACEOF
14813/* end confdefs.h. */
14814#include <CoreFoundation/CFBase.h>
14815
14816int
14817main ()
14818{
14819
14820 ;
14821 return 0;
14822}
14823_ACEOF
14824rm -f conftest.$ac_objext
14825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14826 (eval $ac_compile) 2>conftest.er1
14827 ac_status=$?
14828 grep -v '^ *+' conftest.er1 >conftest.err
14829 rm -f conftest.er1
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } &&
5ff751d6 14833 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14836 ac_status=$?
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14842 ac_status=$?
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 echo "$as_me:$LINENO: result: yes" >&5
14846echo "${ECHO_T}yes" >&6
14847else
14848 echo "$as_me: failed program was:" >&5
14849sed 's/^/| /' conftest.$ac_ext >&5
14850
14851echo "$as_me:$LINENO: result: no" >&5
14852echo "${ECHO_T}no" >&6
14853 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14854echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14855 cat >conftest.$ac_ext <<_ACEOF
14856/* confdefs.h. */
14857_ACEOF
14858cat confdefs.h >>conftest.$ac_ext
14859cat >>conftest.$ac_ext <<_ACEOF
14860/* end confdefs.h. */
14861#define __CF_USE_FRAMEWORK_INCLUDES__
14862#include <CoreFoundation/CFBase.h>
14863
14864int
14865main ()
14866{
14867
14868 ;
14869 return 0;
14870}
14871_ACEOF
14872rm -f conftest.$ac_objext
14873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874 (eval $ac_compile) 2>conftest.er1
14875 ac_status=$?
14876 grep -v '^ *+' conftest.er1 >conftest.err
14877 rm -f conftest.er1
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
5ff751d6 14881 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14884 ac_status=$?
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; } &&
14887 { ac_try='test -s conftest.$ac_objext'
14888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14889 (eval $ac_try) 2>&5
14890 ac_status=$?
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); }; }; then
14893 echo "$as_me:$LINENO: result: yes" >&5
14894echo "${ECHO_T}yes" >&6
c92ad099 14895 CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
4d7ec9f1
DE
14896else
14897 echo "$as_me: failed program was:" >&5
14898sed 's/^/| /' conftest.$ac_ext >&5
14899
14900{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14901See \`config.log' for more details." >&5
14902echo "$as_me: error: no. CoreFoundation not available.
14903See \`config.log' for more details." >&2;}
14904 { (exit 1); exit 1; }; }
14905
14906fi
14907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14908
14909
14910fi
14911rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14912 ;;
14913esac
14914
a848cd7e
SC
14915case "${host}" in
14916 *-pc-os2_emx | *-pc-os2-emx )
14917 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14918 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14919echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14920if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14921 echo $ECHO_N "(cached) $ECHO_C" >&6
14922else
14923 ac_check_lib_save_LIBS=$LIBS
14924LIBS="-lcExt $LIBS"
14925cat >conftest.$ac_ext <<_ACEOF
14926/* confdefs.h. */
14927_ACEOF
14928cat confdefs.h >>conftest.$ac_ext
14929cat >>conftest.$ac_ext <<_ACEOF
14930/* end confdefs.h. */
14931
14932/* Override any gcc2 internal prototype to avoid an error. */
14933#ifdef __cplusplus
14934extern "C"
14935#endif
14936/* We use char because int might match the return type of a gcc2
14937 builtin and then its argument prototype would still apply. */
14938char drand48 ();
14939int
14940main ()
14941{
14942drand48 ();
14943 ;
14944 return 0;
14945}
14946_ACEOF
14947rm -f conftest.$ac_objext conftest$ac_exeext
14948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14949 (eval $ac_link) 2>conftest.er1
a848cd7e 14950 ac_status=$?
ac1cb8d3
VS
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
a848cd7e
SC
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } &&
5ff751d6 14956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; } &&
14962 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964 (eval $ac_try) 2>&5
14965 ac_status=$?
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); }; }; then
14968 ac_cv_lib_cExt_drand48=yes
14969else
14970 echo "$as_me: failed program was:" >&5
14971sed 's/^/| /' conftest.$ac_ext >&5
14972
14973ac_cv_lib_cExt_drand48=no
14974fi
ac1cb8d3
VS
14975rm -f conftest.err conftest.$ac_objext \
14976 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14977LIBS=$ac_check_lib_save_LIBS
14978fi
14979echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14980echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14981if test $ac_cv_lib_cExt_drand48 = yes; then
14982 LIBS="$LIBS -lcExt"
14983fi
14984
14985 else
14986 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14987 fi
69120ee4
VZ
14988 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14989echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14990if test "${wx_cv_gccversion+set}" = set; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14992else
14993
391a765e
VS
14994 if test "$cross_compiling" = yes; then
14995 wx_cv_gccversion="EMX2"
14996
14997else
14998 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14999/* confdefs.h. */
15000_ACEOF
15001cat confdefs.h >>conftest.$ac_ext
15002cat >>conftest.$ac_ext <<_ACEOF
15003/* end confdefs.h. */
15004
391a765e 15005 #include <stdio.h>
a848cd7e 15006
391a765e
VS
15007 int main()
15008 {
15009 FILE *f=fopen("conftestval", "w");
15010 if (!f) exit(1);
15011 fprintf(f,
a848cd7e 15012 #if (__GNUC__ < 3)
391a765e
VS
15013 "EMX2"
15014 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15015 "EMX3"
15016 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15017 "Innotek5"
15018 #else
15019 "Innotek6"
a848cd7e 15020 #endif
391a765e
VS
15021 );
15022 exit(0);
15023 }
a848cd7e 15024
a848cd7e 15025_ACEOF
391a765e
VS
15026rm -f conftest$ac_exeext
15027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15028 (eval $ac_link) 2>&5
ac1cb8d3
VS
15029 ac_status=$?
15030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15034 ac_status=$?
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
391a765e 15037 wx_cv_gccversion=`cat conftestval`
a848cd7e 15038else
391a765e
VS
15039 echo "$as_me: program exited with status $ac_status" >&5
15040echo "$as_me: failed program was:" >&5
a848cd7e
SC
15041sed 's/^/| /' conftest.$ac_ext >&5
15042
391a765e
VS
15043( exit $ac_status )
15044wx_cv_gccversion="EMX2"
a848cd7e 15045fi
391a765e 15046rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15047fi
a848cd7e
SC
15048
15049fi
15050echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15051echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 15052 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15053 LIBS="$LIBS -lstdcpp"
15054 LDFLAGS="$LDFLAGS -Zsysv-signals"
15055 else
391a765e 15056 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15057 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15058 LDFLAGS="$LDFLAGS -Zsysv-signals"
15059 else
15060 LIBS="$LIBS -lstdc++"
15061 fi
15062 fi
94acd38e
DE
15063 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15064 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15065echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15066 wxUSE_OMF=yes
2da0c077 15067 enable_omf=yes
a848cd7e
SC
15068 fi
15069 ;;
15070 *)
15071
15072
15073
15074 ac_ext=cc
15075ac_cpp='$CXXCPP $CPPFLAGS'
15076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15079
15080
95986553 15081 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15082echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15083if test "${ac_cv_string_strcasecmp+set}" = set; then
15084 echo $ECHO_N "(cached) $ECHO_C" >&6
15085else
15086
15087 cat >conftest.$ac_ext <<_ACEOF
15088/* confdefs.h. */
15089_ACEOF
15090cat confdefs.h >>conftest.$ac_ext
15091cat >>conftest.$ac_ext <<_ACEOF
15092/* end confdefs.h. */
15093
15094 #include <string.h>
15095
15096int
15097main ()
15098{
15099
15100 strcasecmp("foo", "bar");
15101
15102 ;
15103 return 0;
15104}
15105_ACEOF
15106rm -f conftest.$ac_objext conftest$ac_exeext
15107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15108 (eval $ac_link) 2>conftest.er1
a848cd7e 15109 ac_status=$?
ac1cb8d3
VS
15110 grep -v '^ *+' conftest.er1 >conftest.err
15111 rm -f conftest.er1
15112 cat conftest.err >&5
a848cd7e
SC
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); } &&
5ff751d6 15115 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; } &&
15121 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15124 ac_status=$?
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_cv_string_strcasecmp=yes
15128else
15129 echo "$as_me: failed program was:" >&5
15130sed 's/^/| /' conftest.$ac_ext >&5
15131
15132ac_cv_string_strcasecmp=no
15133
15134fi
ac1cb8d3
VS
15135rm -f conftest.err conftest.$ac_objext \
15136 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15137
15138fi
15139echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15140echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15141
15142 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15143 cat >>confdefs.h <<\_ACEOF
15144#define HAVE_STRCASECMP_IN_STRING_H 1
15145_ACEOF
15146
15147 else
15148 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15149echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15150if test "${ac_cv_strings_strcasecmp+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15152else
15153
15154 cat >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
15161 #include <strings.h>
15162
15163int
15164main ()
15165{
15166
15167 strcasecmp("foo", "bar");
15168
15169 ;
15170 return 0;
15171}
15172_ACEOF
15173rm -f conftest.$ac_objext conftest$ac_exeext
15174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15175 (eval $ac_link) 2>conftest.er1
a848cd7e 15176 ac_status=$?
ac1cb8d3
VS
15177 grep -v '^ *+' conftest.er1 >conftest.err
15178 rm -f conftest.er1
15179 cat conftest.err >&5
a848cd7e
SC
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
5ff751d6 15182 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15185 ac_status=$?
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; } &&
15188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15190 (eval $ac_try) 2>&5
15191 ac_status=$?
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; }; then
15194 ac_cv_strings_strcasecmp=yes
15195else
15196 echo "$as_me: failed program was:" >&5
15197sed 's/^/| /' conftest.$ac_ext >&5
15198
15199ac_cv_strings_strcasecmp=no
15200
15201fi
ac1cb8d3
VS
15202rm -f conftest.err conftest.$ac_objext \
15203 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15204
15205fi
15206echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15207echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15208
0c3c69fc 15209 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15210 cat >>confdefs.h <<\_ACEOF
15211#define HAVE_STRCASECMP_IN_STRINGS_H 1
15212_ACEOF
15213
15214 else
15215 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15216echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15217 { (exit 1); exit 1; }; }
15218 fi
15219 fi
15220
15221 ac_ext=c
15222ac_cpp='$CPP $CPPFLAGS'
15223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15225ac_compiler_gnu=$ac_cv_c_compiler_gnu
15226
15227 ;;
15228esac
15229
15230
15231echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15232echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15233if test "${ac_cv_header_stdc+set}" = set; then
15234 echo $ECHO_N "(cached) $ECHO_C" >&6
15235else
15236 cat >conftest.$ac_ext <<_ACEOF
15237/* confdefs.h. */
15238_ACEOF
15239cat confdefs.h >>conftest.$ac_ext
15240cat >>conftest.$ac_ext <<_ACEOF
15241/* end confdefs.h. */
15242#include <stdlib.h>
15243#include <stdarg.h>
15244#include <string.h>
15245#include <float.h>
15246
15247int
15248main ()
15249{
15250
15251 ;
15252 return 0;
15253}
15254_ACEOF
15255rm -f conftest.$ac_objext
15256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15257 (eval $ac_compile) 2>conftest.er1
a848cd7e 15258 ac_status=$?
ac1cb8d3
VS
15259 grep -v '^ *+' conftest.er1 >conftest.err
15260 rm -f conftest.er1
15261 cat conftest.err >&5
a848cd7e
SC
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } &&
5ff751d6 15264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15266 (eval $ac_try) 2>&5
15267 ac_status=$?
15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269 (exit $ac_status); }; } &&
15270 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15272 (eval $ac_try) 2>&5
15273 ac_status=$?
15274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); }; }; then
15276 ac_cv_header_stdc=yes
15277else
15278 echo "$as_me: failed program was:" >&5
15279sed 's/^/| /' conftest.$ac_ext >&5
15280
15281ac_cv_header_stdc=no
15282fi
ac1cb8d3 15283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15284
15285if test $ac_cv_header_stdc = yes; then
15286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15287 cat >conftest.$ac_ext <<_ACEOF
15288/* confdefs.h. */
15289_ACEOF
15290cat confdefs.h >>conftest.$ac_ext
15291cat >>conftest.$ac_ext <<_ACEOF
15292/* end confdefs.h. */
15293#include <string.h>
15294
15295_ACEOF
15296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15297 $EGREP "memchr" >/dev/null 2>&1; then
15298 :
15299else
15300 ac_cv_header_stdc=no
15301fi
15302rm -f conftest*
15303
15304fi
15305
15306if test $ac_cv_header_stdc = yes; then
15307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15308 cat >conftest.$ac_ext <<_ACEOF
15309/* confdefs.h. */
15310_ACEOF
15311cat confdefs.h >>conftest.$ac_ext
15312cat >>conftest.$ac_ext <<_ACEOF
15313/* end confdefs.h. */
15314#include <stdlib.h>
15315
15316_ACEOF
15317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15318 $EGREP "free" >/dev/null 2>&1; then
15319 :
15320else
15321 ac_cv_header_stdc=no
15322fi
15323rm -f conftest*
15324
15325fi
15326
15327if test $ac_cv_header_stdc = yes; then
15328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15329 if test "$cross_compiling" = yes; then
15330 :
15331else
15332 cat >conftest.$ac_ext <<_ACEOF
15333/* confdefs.h. */
15334_ACEOF
15335cat confdefs.h >>conftest.$ac_ext
15336cat >>conftest.$ac_ext <<_ACEOF
15337/* end confdefs.h. */
15338#include <ctype.h>
15339#if ((' ' & 0x0FF) == 0x020)
15340# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15341# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15342#else
15343# define ISLOWER(c) \
ac1cb8d3
VS
15344 (('a' <= (c) && (c) <= 'i') \
15345 || ('j' <= (c) && (c) <= 'r') \
15346 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15347# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15348#endif
15349
15350#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15351int
15352main ()
15353{
15354 int i;
15355 for (i = 0; i < 256; i++)
15356 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15357 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15358 exit(2);
15359 exit (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 :
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 )
15380ac_cv_header_stdc=no
15381fi
ac1cb8d3 15382rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15383fi
15384fi
15385fi
15386echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15387echo "${ECHO_T}$ac_cv_header_stdc" >&6
15388if test $ac_cv_header_stdc = yes; then
15389
15390cat >>confdefs.h <<\_ACEOF
15391#define STDC_HEADERS 1
15392_ACEOF
15393
15394fi
15395
15396# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15407 inttypes.h stdint.h unistd.h
a848cd7e
SC
15408do
15409as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15410echo "$as_me:$LINENO: checking for $ac_header" >&5
15411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15412if eval "test \"\${$as_ac_Header+set}\" = set"; then
15413 echo $ECHO_N "(cached) $ECHO_C" >&6
15414else
15415 cat >conftest.$ac_ext <<_ACEOF
15416/* confdefs.h. */
15417_ACEOF
15418cat confdefs.h >>conftest.$ac_ext
15419cat >>conftest.$ac_ext <<_ACEOF
15420/* end confdefs.h. */
15421$ac_includes_default
15422
15423#include <$ac_header>
15424_ACEOF
15425rm -f conftest.$ac_objext
15426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15427 (eval $ac_compile) 2>conftest.er1
a848cd7e 15428 ac_status=$?
ac1cb8d3
VS
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
a848cd7e
SC
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } &&
5ff751d6 15434 { ac_try='test -z "$ac_c_werror_flag" || 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 eval "$as_ac_Header=yes"
15447else
15448 echo "$as_me: failed program was:" >&5
15449sed 's/^/| /' conftest.$ac_ext >&5
15450
15451eval "$as_ac_Header=no"
15452fi
ac1cb8d3 15453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15454fi
15455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15457if test `eval echo '${'$as_ac_Header'}'` = yes; then
15458 cat >>confdefs.h <<_ACEOF
15459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15460_ACEOF
15461
15462fi
15463
15464done
15465
15466
15467
15468for ac_header in stdlib.h
15469do
15470as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15471if eval "test \"\${$as_ac_Header+set}\" = set"; then
15472 echo "$as_me:$LINENO: checking for $ac_header" >&5
15473echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15474if eval "test \"\${$as_ac_Header+set}\" = set"; then
15475 echo $ECHO_N "(cached) $ECHO_C" >&6
15476fi
15477echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15478echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15479else
15480 # Is the header compilable?
15481echo "$as_me:$LINENO: checking $ac_header usability" >&5
15482echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15483cat >conftest.$ac_ext <<_ACEOF
15484/* confdefs.h. */
15485_ACEOF
15486cat confdefs.h >>conftest.$ac_ext
15487cat >>conftest.$ac_ext <<_ACEOF
15488/* end confdefs.h. */
15489$ac_includes_default
15490#include <$ac_header>
15491_ACEOF
15492rm -f conftest.$ac_objext
15493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15494 (eval $ac_compile) 2>conftest.er1
a848cd7e 15495 ac_status=$?
ac1cb8d3
VS
15496 grep -v '^ *+' conftest.er1 >conftest.err
15497 rm -f conftest.er1
15498 cat conftest.err >&5
a848cd7e
SC
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); } &&
5ff751d6 15501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_header_compiler=yes
15514else
15515 echo "$as_me: failed program was:" >&5
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
15518ac_header_compiler=no
15519fi
ac1cb8d3 15520rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15522echo "${ECHO_T}$ac_header_compiler" >&6
15523
15524# Is the header present?
15525echo "$as_me:$LINENO: checking $ac_header presence" >&5
15526echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15527cat >conftest.$ac_ext <<_ACEOF
15528/* confdefs.h. */
15529_ACEOF
15530cat confdefs.h >>conftest.$ac_ext
15531cat >>conftest.$ac_ext <<_ACEOF
15532/* end confdefs.h. */
15533#include <$ac_header>
15534_ACEOF
15535if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15537 ac_status=$?
15538 grep -v '^ *+' conftest.er1 >conftest.err
15539 rm -f conftest.er1
15540 cat conftest.err >&5
15541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15542 (exit $ac_status); } >/dev/null; then
15543 if test -s conftest.err; then
15544 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15546 else
15547 ac_cpp_err=
15548 fi
15549else
15550 ac_cpp_err=yes
15551fi
15552if test -z "$ac_cpp_err"; then
15553 ac_header_preproc=yes
15554else
15555 echo "$as_me: failed program was:" >&5
15556sed 's/^/| /' conftest.$ac_ext >&5
15557
15558 ac_header_preproc=no
15559fi
15560rm -f conftest.err conftest.$ac_ext
15561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15562echo "${ECHO_T}$ac_header_preproc" >&6
15563
15564# So? What about this header?
ac1cb8d3
VS
15565case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15566 yes:no: )
a848cd7e
SC
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15570echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15571 ac_header_preproc=yes
a848cd7e 15572 ;;
ac1cb8d3 15573 no:yes:* )
a848cd7e
SC
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15575echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15577echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15579echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15581echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15583echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15585echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15586 (
15587 cat <<\_ASBOX
ac1cb8d3
VS
15588## ----------------------------------------- ##
15589## Report this to wx-dev@lists.wxwidgets.org ##
15590## ----------------------------------------- ##
a848cd7e
SC
15591_ASBOX
15592 ) |
15593 sed "s/^/$as_me: WARNING: /" >&2
15594 ;;
15595esac
15596echo "$as_me:$LINENO: checking for $ac_header" >&5
15597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15598if eval "test \"\${$as_ac_Header+set}\" = set"; then
15599 echo $ECHO_N "(cached) $ECHO_C" >&6
15600else
ac1cb8d3 15601 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15602fi
15603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15605
15606fi
15607if test `eval echo '${'$as_ac_Header'}'` = yes; then
15608 cat >>confdefs.h <<_ACEOF
15609#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15610_ACEOF
15611
15612fi
15613
15614done
15615
15616
15617for ac_header in malloc.h
15618do
15619as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15620if eval "test \"\${$as_ac_Header+set}\" = set"; then
15621 echo "$as_me:$LINENO: checking for $ac_header" >&5
15622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15623if eval "test \"\${$as_ac_Header+set}\" = set"; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15625fi
15626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15628else
15629 # Is the header compilable?
15630echo "$as_me:$LINENO: checking $ac_header usability" >&5
15631echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15632cat >conftest.$ac_ext <<_ACEOF
15633/* confdefs.h. */
15634_ACEOF
15635cat confdefs.h >>conftest.$ac_ext
15636cat >>conftest.$ac_ext <<_ACEOF
15637/* end confdefs.h. */
15638$ac_includes_default
15639#include <$ac_header>
15640_ACEOF
15641rm -f conftest.$ac_objext
15642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15643 (eval $ac_compile) 2>conftest.er1
a848cd7e 15644 ac_status=$?
ac1cb8d3
VS
15645 grep -v '^ *+' conftest.er1 >conftest.err
15646 rm -f conftest.er1
15647 cat conftest.err >&5
a848cd7e
SC
15648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649 (exit $ac_status); } &&
5ff751d6 15650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652 (eval $ac_try) 2>&5
15653 ac_status=$?
15654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); }; } &&
15656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658 (eval $ac_try) 2>&5
15659 ac_status=$?
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); }; }; then
15662 ac_header_compiler=yes
15663else
15664 echo "$as_me: failed program was:" >&5
15665sed 's/^/| /' conftest.$ac_ext >&5
15666
15667ac_header_compiler=no
15668fi
ac1cb8d3 15669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15670echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15671echo "${ECHO_T}$ac_header_compiler" >&6
15672
15673# Is the header present?
15674echo "$as_me:$LINENO: checking $ac_header presence" >&5
15675echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15676cat >conftest.$ac_ext <<_ACEOF
15677/* confdefs.h. */
15678_ACEOF
15679cat confdefs.h >>conftest.$ac_ext
15680cat >>conftest.$ac_ext <<_ACEOF
15681/* end confdefs.h. */
15682#include <$ac_header>
15683_ACEOF
15684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15685 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15686 ac_status=$?
15687 grep -v '^ *+' conftest.er1 >conftest.err
15688 rm -f conftest.er1
15689 cat conftest.err >&5
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); } >/dev/null; then
15692 if test -s conftest.err; then
15693 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15694 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15695 else
15696 ac_cpp_err=
15697 fi
15698else
15699 ac_cpp_err=yes
15700fi
15701if test -z "$ac_cpp_err"; then
15702 ac_header_preproc=yes
15703else
15704 echo "$as_me: failed program was:" >&5
15705sed 's/^/| /' conftest.$ac_ext >&5
15706
15707 ac_header_preproc=no
15708fi
15709rm -f conftest.err conftest.$ac_ext
15710echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15711echo "${ECHO_T}$ac_header_preproc" >&6
15712
15713# So? What about this header?
ac1cb8d3
VS
15714case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15715 yes:no: )
a848cd7e
SC
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15717echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15719echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15720 ac_header_preproc=yes
a848cd7e 15721 ;;
ac1cb8d3 15722 no:yes:* )
a848cd7e
SC
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15724echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15726echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15728echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15730echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15732echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15733 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15734echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15735 (
15736 cat <<\_ASBOX
ac1cb8d3
VS
15737## ----------------------------------------- ##
15738## Report this to wx-dev@lists.wxwidgets.org ##
15739## ----------------------------------------- ##
a848cd7e
SC
15740_ASBOX
15741 ) |
15742 sed "s/^/$as_me: WARNING: /" >&2
15743 ;;
15744esac
15745echo "$as_me:$LINENO: checking for $ac_header" >&5
15746echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15747if eval "test \"\${$as_ac_Header+set}\" = set"; then
15748 echo $ECHO_N "(cached) $ECHO_C" >&6
15749else
ac1cb8d3 15750 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15751fi
15752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15754
15755fi
15756if test `eval echo '${'$as_ac_Header'}'` = yes; then
15757 cat >>confdefs.h <<_ACEOF
15758#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15759_ACEOF
15760
15761fi
15762
15763done
15764
15765
15766for ac_header in unistd.h
15767do
15768as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15769if eval "test \"\${$as_ac_Header+set}\" = set"; then
15770 echo "$as_me:$LINENO: checking for $ac_header" >&5
15771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15772if eval "test \"\${$as_ac_Header+set}\" = set"; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15774fi
15775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15776echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15777else
15778 # Is the header compilable?
15779echo "$as_me:$LINENO: checking $ac_header usability" >&5
15780echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15781cat >conftest.$ac_ext <<_ACEOF
15782/* confdefs.h. */
15783_ACEOF
15784cat confdefs.h >>conftest.$ac_ext
15785cat >>conftest.$ac_ext <<_ACEOF
15786/* end confdefs.h. */
15787$ac_includes_default
15788#include <$ac_header>
15789_ACEOF
15790rm -f conftest.$ac_objext
15791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15792 (eval $ac_compile) 2>conftest.er1
a848cd7e 15793 ac_status=$?
ac1cb8d3
VS
15794 grep -v '^ *+' conftest.er1 >conftest.err
15795 rm -f conftest.er1
15796 cat conftest.err >&5
a848cd7e
SC
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } &&
5ff751d6 15799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_header_compiler=yes
15812else
15813 echo "$as_me: failed program was:" >&5
15814sed 's/^/| /' conftest.$ac_ext >&5
15815
15816ac_header_compiler=no
15817fi
ac1cb8d3 15818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15819echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15820echo "${ECHO_T}$ac_header_compiler" >&6
15821
15822# Is the header present?
15823echo "$as_me:$LINENO: checking $ac_header presence" >&5
15824echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15825cat >conftest.$ac_ext <<_ACEOF
15826/* confdefs.h. */
15827_ACEOF
15828cat confdefs.h >>conftest.$ac_ext
15829cat >>conftest.$ac_ext <<_ACEOF
15830/* end confdefs.h. */
15831#include <$ac_header>
15832_ACEOF
15833if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15834 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15835 ac_status=$?
15836 grep -v '^ *+' conftest.er1 >conftest.err
15837 rm -f conftest.er1
15838 cat conftest.err >&5
15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } >/dev/null; then
15841 if test -s conftest.err; then
15842 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15844 else
15845 ac_cpp_err=
15846 fi
15847else
15848 ac_cpp_err=yes
15849fi
15850if test -z "$ac_cpp_err"; then
15851 ac_header_preproc=yes
15852else
15853 echo "$as_me: failed program was:" >&5
15854sed 's/^/| /' conftest.$ac_ext >&5
15855
15856 ac_header_preproc=no
15857fi
15858rm -f conftest.err conftest.$ac_ext
15859echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15860echo "${ECHO_T}$ac_header_preproc" >&6
15861
15862# So? What about this header?
ac1cb8d3
VS
15863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15864 yes:no: )
a848cd7e
SC
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15866echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15868echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15869 ac_header_preproc=yes
a848cd7e 15870 ;;
ac1cb8d3 15871 no:yes:* )
a848cd7e
SC
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15873echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15875echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15877echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15879echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15881echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15883echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15884 (
15885 cat <<\_ASBOX
ac1cb8d3
VS
15886## ----------------------------------------- ##
15887## Report this to wx-dev@lists.wxwidgets.org ##
15888## ----------------------------------------- ##
a848cd7e
SC
15889_ASBOX
15890 ) |
15891 sed "s/^/$as_me: WARNING: /" >&2
15892 ;;
15893esac
15894echo "$as_me:$LINENO: checking for $ac_header" >&5
15895echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15896if eval "test \"\${$as_ac_Header+set}\" = set"; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15898else
ac1cb8d3 15899 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15900fi
15901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15902echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15903
15904fi
15905if test `eval echo '${'$as_ac_Header'}'` = yes; then
15906 cat >>confdefs.h <<_ACEOF
15907#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15908_ACEOF
15909
15910fi
15911
15912done
15913
15914
15915for ac_header in wchar.h
15916do
15917as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15918if eval "test \"\${$as_ac_Header+set}\" = set"; then
15919 echo "$as_me:$LINENO: checking for $ac_header" >&5
15920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15921if eval "test \"\${$as_ac_Header+set}\" = set"; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15923fi
15924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15926else
15927 # Is the header compilable?
15928echo "$as_me:$LINENO: checking $ac_header usability" >&5
15929echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15930cat >conftest.$ac_ext <<_ACEOF
15931/* confdefs.h. */
15932_ACEOF
15933cat confdefs.h >>conftest.$ac_ext
15934cat >>conftest.$ac_ext <<_ACEOF
15935/* end confdefs.h. */
15936$ac_includes_default
15937#include <$ac_header>
15938_ACEOF
15939rm -f conftest.$ac_objext
15940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15941 (eval $ac_compile) 2>conftest.er1
a848cd7e 15942 ac_status=$?
ac1cb8d3
VS
15943 grep -v '^ *+' conftest.er1 >conftest.err
15944 rm -f conftest.er1
15945 cat conftest.err >&5
a848cd7e
SC
15946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15947 (exit $ac_status); } &&
5ff751d6 15948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15950 (eval $ac_try) 2>&5
15951 ac_status=$?
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); }; } &&
15954 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_header_compiler=yes
15961else
15962 echo "$as_me: failed program was:" >&5
15963sed 's/^/| /' conftest.$ac_ext >&5
15964
15965ac_header_compiler=no
15966fi
ac1cb8d3 15967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15969echo "${ECHO_T}$ac_header_compiler" >&6
15970
15971# Is the header present?
15972echo "$as_me:$LINENO: checking $ac_header presence" >&5
15973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15974cat >conftest.$ac_ext <<_ACEOF
15975/* confdefs.h. */
15976_ACEOF
15977cat confdefs.h >>conftest.$ac_ext
15978cat >>conftest.$ac_ext <<_ACEOF
15979/* end confdefs.h. */
15980#include <$ac_header>
15981_ACEOF
15982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15984 ac_status=$?
15985 grep -v '^ *+' conftest.er1 >conftest.err
15986 rm -f conftest.er1
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); } >/dev/null; then
15990 if test -s conftest.err; then
15991 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15993 else
15994 ac_cpp_err=
15995 fi
15996else
15997 ac_cpp_err=yes
15998fi
15999if test -z "$ac_cpp_err"; then
16000 ac_header_preproc=yes
16001else
16002 echo "$as_me: failed program was:" >&5
16003sed 's/^/| /' conftest.$ac_ext >&5
16004
16005 ac_header_preproc=no
16006fi
16007rm -f conftest.err conftest.$ac_ext
16008echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16009echo "${ECHO_T}$ac_header_preproc" >&6
16010
16011# So? What about this header?
ac1cb8d3
VS
16012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16013 yes:no: )
a848cd7e
SC
16014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16018 ac_header_preproc=yes
a848cd7e 16019 ;;
ac1cb8d3 16020 no:yes:* )
a848cd7e
SC
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16033 (
16034 cat <<\_ASBOX
ac1cb8d3
VS
16035## ----------------------------------------- ##
16036## Report this to wx-dev@lists.wxwidgets.org ##
16037## ----------------------------------------- ##
a848cd7e
SC
16038_ASBOX
16039 ) |
16040 sed "s/^/$as_me: WARNING: /" >&2
16041 ;;
16042esac
16043echo "$as_me:$LINENO: checking for $ac_header" >&5
16044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16045if eval "test \"\${$as_ac_Header+set}\" = set"; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16047else
ac1cb8d3 16048 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16049fi
16050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16052
16053fi
16054if test `eval echo '${'$as_ac_Header'}'` = yes; then
16055 cat >>confdefs.h <<_ACEOF
16056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16057_ACEOF
16058
16059fi
16060
16061done
16062
16063
16064if test "$ac_cv_header_wchar_h" != "yes"; then
16065
16066for ac_header in wcstr.h
16067do
16068as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16069if eval "test \"\${$as_ac_Header+set}\" = set"; then
16070 echo "$as_me:$LINENO: checking for $ac_header" >&5
16071echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16072if eval "test \"\${$as_ac_Header+set}\" = set"; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16074fi
16075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16076echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16077else
16078 # Is the header compilable?
16079echo "$as_me:$LINENO: checking $ac_header usability" >&5
16080echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16081cat >conftest.$ac_ext <<_ACEOF
16082/* confdefs.h. */
16083_ACEOF
16084cat confdefs.h >>conftest.$ac_ext
16085cat >>conftest.$ac_ext <<_ACEOF
16086/* end confdefs.h. */
16087$ac_includes_default
16088#include <$ac_header>
16089_ACEOF
16090rm -f conftest.$ac_objext
16091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16092 (eval $ac_compile) 2>conftest.er1
a848cd7e 16093 ac_status=$?
ac1cb8d3
VS
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
a848cd7e
SC
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } &&
5ff751d6 16099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16101 (eval $ac_try) 2>&5
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); }; } &&
16105 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ac_header_compiler=yes
16112else
16113 echo "$as_me: failed program was:" >&5
16114sed 's/^/| /' conftest.$ac_ext >&5
16115
16116ac_header_compiler=no
16117fi
ac1cb8d3 16118rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16119echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16120echo "${ECHO_T}$ac_header_compiler" >&6
16121
16122# Is the header present?
16123echo "$as_me:$LINENO: checking $ac_header presence" >&5
16124echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16125cat >conftest.$ac_ext <<_ACEOF
16126/* confdefs.h. */
16127_ACEOF
16128cat confdefs.h >>conftest.$ac_ext
16129cat >>conftest.$ac_ext <<_ACEOF
16130/* end confdefs.h. */
16131#include <$ac_header>
16132_ACEOF
16133if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16135 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1
16138 cat conftest.err >&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } >/dev/null; then
16141 if test -s conftest.err; then
16142 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16143 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16144 else
16145 ac_cpp_err=
16146 fi
16147else
16148 ac_cpp_err=yes
16149fi
16150if test -z "$ac_cpp_err"; then
16151 ac_header_preproc=yes
16152else
16153 echo "$as_me: failed program was:" >&5
16154sed 's/^/| /' conftest.$ac_ext >&5
16155
16156 ac_header_preproc=no
16157fi
16158rm -f conftest.err conftest.$ac_ext
16159echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16160echo "${ECHO_T}$ac_header_preproc" >&6
16161
16162# So? What about this header?
ac1cb8d3
VS
16163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16164 yes:no: )
a848cd7e
SC
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16166echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16168echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16169 ac_header_preproc=yes
a848cd7e 16170 ;;
ac1cb8d3 16171 no:yes:* )
a848cd7e
SC
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16173echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16175echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16177echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16179echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16181echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16183echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16184 (
16185 cat <<\_ASBOX
ac1cb8d3
VS
16186## ----------------------------------------- ##
16187## Report this to wx-dev@lists.wxwidgets.org ##
16188## ----------------------------------------- ##
a848cd7e
SC
16189_ASBOX
16190 ) |
16191 sed "s/^/$as_me: WARNING: /" >&2
16192 ;;
16193esac
16194echo "$as_me:$LINENO: checking for $ac_header" >&5
16195echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16196if eval "test \"\${$as_ac_Header+set}\" = set"; then
16197 echo $ECHO_N "(cached) $ECHO_C" >&6
16198else
ac1cb8d3 16199 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16200fi
16201echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16202echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16203
16204fi
16205if test `eval echo '${'$as_ac_Header'}'` = yes; then
16206 cat >>confdefs.h <<_ACEOF
16207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16208_ACEOF
16209
16210fi
16211
16212done
16213
16214fi
16215
16216
16217for ac_header in fnmatch.h
16218do
16219as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16220if eval "test \"\${$as_ac_Header+set}\" = set"; then
16221 echo "$as_me:$LINENO: checking for $ac_header" >&5
16222echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16223if eval "test \"\${$as_ac_Header+set}\" = set"; then
16224 echo $ECHO_N "(cached) $ECHO_C" >&6
16225fi
16226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16228else
16229 # Is the header compilable?
16230echo "$as_me:$LINENO: checking $ac_header usability" >&5
16231echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16232cat >conftest.$ac_ext <<_ACEOF
16233/* confdefs.h. */
16234_ACEOF
16235cat confdefs.h >>conftest.$ac_ext
16236cat >>conftest.$ac_ext <<_ACEOF
16237/* end confdefs.h. */
16238$ac_includes_default
16239#include <$ac_header>
16240_ACEOF
16241rm -f conftest.$ac_objext
16242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16243 (eval $ac_compile) 2>conftest.er1
a848cd7e 16244 ac_status=$?
ac1cb8d3
VS
16245 grep -v '^ *+' conftest.er1 >conftest.err
16246 rm -f conftest.er1
16247 cat conftest.err >&5
a848cd7e
SC
16248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16249 (exit $ac_status); } &&
5ff751d6 16250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16252 (eval $ac_try) 2>&5
16253 ac_status=$?
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); }; } &&
16256 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16258 (eval $ac_try) 2>&5
16259 ac_status=$?
16260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16261 (exit $ac_status); }; }; then
16262 ac_header_compiler=yes
16263else
16264 echo "$as_me: failed program was:" >&5
16265sed 's/^/| /' conftest.$ac_ext >&5
16266
16267ac_header_compiler=no
16268fi
ac1cb8d3 16269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16270echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16271echo "${ECHO_T}$ac_header_compiler" >&6
16272
16273# Is the header present?
16274echo "$as_me:$LINENO: checking $ac_header presence" >&5
16275echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16276cat >conftest.$ac_ext <<_ACEOF
16277/* confdefs.h. */
16278_ACEOF
16279cat confdefs.h >>conftest.$ac_ext
16280cat >>conftest.$ac_ext <<_ACEOF
16281/* end confdefs.h. */
16282#include <$ac_header>
16283_ACEOF
16284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16286 ac_status=$?
16287 grep -v '^ *+' conftest.er1 >conftest.err
16288 rm -f conftest.er1
16289 cat conftest.err >&5
16290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291 (exit $ac_status); } >/dev/null; then
16292 if test -s conftest.err; then
16293 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16295 else
16296 ac_cpp_err=
16297 fi
16298else
16299 ac_cpp_err=yes
16300fi
16301if test -z "$ac_cpp_err"; then
16302 ac_header_preproc=yes
16303else
16304 echo "$as_me: failed program was:" >&5
16305sed 's/^/| /' conftest.$ac_ext >&5
16306
16307 ac_header_preproc=no
16308fi
16309rm -f conftest.err conftest.$ac_ext
16310echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16311echo "${ECHO_T}$ac_header_preproc" >&6
16312
16313# So? What about this header?
ac1cb8d3
VS
16314case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16315 yes:no: )
a848cd7e
SC
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16317echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16319echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16320 ac_header_preproc=yes
a848cd7e 16321 ;;
ac1cb8d3 16322 no:yes:* )
a848cd7e
SC
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16324echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16326echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16328echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16330echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16332echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16334echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16335 (
16336 cat <<\_ASBOX
ac1cb8d3
VS
16337## ----------------------------------------- ##
16338## Report this to wx-dev@lists.wxwidgets.org ##
16339## ----------------------------------------- ##
a848cd7e
SC
16340_ASBOX
16341 ) |
16342 sed "s/^/$as_me: WARNING: /" >&2
16343 ;;
16344esac
16345echo "$as_me:$LINENO: checking for $ac_header" >&5
16346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16347if eval "test \"\${$as_ac_Header+set}\" = set"; then
16348 echo $ECHO_N "(cached) $ECHO_C" >&6
16349else
ac1cb8d3 16350 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16351fi
16352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16354
16355fi
16356if test `eval echo '${'$as_ac_Header'}'` = yes; then
16357 cat >>confdefs.h <<_ACEOF
16358#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16359_ACEOF
16360
16361fi
16362
16363done
16364
16365
a848cd7e
SC
16366
16367for ac_header in langinfo.h
16368do
16369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16370if eval "test \"\${$as_ac_Header+set}\" = set"; then
16371 echo "$as_me:$LINENO: checking for $ac_header" >&5
16372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16373if eval "test \"\${$as_ac_Header+set}\" = set"; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16375fi
16376echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16377echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16378else
16379 # Is the header compilable?
16380echo "$as_me:$LINENO: checking $ac_header usability" >&5
16381echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16382cat >conftest.$ac_ext <<_ACEOF
16383/* confdefs.h. */
16384_ACEOF
16385cat confdefs.h >>conftest.$ac_ext
16386cat >>conftest.$ac_ext <<_ACEOF
16387/* end confdefs.h. */
16388$ac_includes_default
16389#include <$ac_header>
16390_ACEOF
16391rm -f conftest.$ac_objext
16392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16393 (eval $ac_compile) 2>conftest.er1
a848cd7e 16394 ac_status=$?
ac1cb8d3
VS
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
a848cd7e
SC
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } &&
5ff751d6 16400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402 (eval $ac_try) 2>&5
16403 ac_status=$?
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); }; } &&
16406 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; }; then
16412 ac_header_compiler=yes
16413else
16414 echo "$as_me: failed program was:" >&5
16415sed 's/^/| /' conftest.$ac_ext >&5
16416
16417ac_header_compiler=no
16418fi
ac1cb8d3 16419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16420echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16421echo "${ECHO_T}$ac_header_compiler" >&6
16422
16423# Is the header present?
16424echo "$as_me:$LINENO: checking $ac_header presence" >&5
16425echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16426cat >conftest.$ac_ext <<_ACEOF
16427/* confdefs.h. */
16428_ACEOF
16429cat confdefs.h >>conftest.$ac_ext
16430cat >>conftest.$ac_ext <<_ACEOF
16431/* end confdefs.h. */
16432#include <$ac_header>
16433_ACEOF
16434if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16436 ac_status=$?
16437 grep -v '^ *+' conftest.er1 >conftest.err
16438 rm -f conftest.er1
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } >/dev/null; then
16442 if test -s conftest.err; then
16443 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16445 else
16446 ac_cpp_err=
16447 fi
16448else
16449 ac_cpp_err=yes
16450fi
16451if test -z "$ac_cpp_err"; then
16452 ac_header_preproc=yes
16453else
16454 echo "$as_me: failed program was:" >&5
16455sed 's/^/| /' conftest.$ac_ext >&5
16456
16457 ac_header_preproc=no
16458fi
16459rm -f conftest.err conftest.$ac_ext
16460echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16461echo "${ECHO_T}$ac_header_preproc" >&6
16462
16463# So? What about this header?
ac1cb8d3
VS
16464case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16465 yes:no: )
a848cd7e
SC
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16467echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16469echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16470 ac_header_preproc=yes
a848cd7e 16471 ;;
ac1cb8d3 16472 no:yes:* )
a848cd7e
SC
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16474echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16476echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16478echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16480echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16482echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16484echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16485 (
16486 cat <<\_ASBOX
ac1cb8d3
VS
16487## ----------------------------------------- ##
16488## Report this to wx-dev@lists.wxwidgets.org ##
16489## ----------------------------------------- ##
a848cd7e
SC
16490_ASBOX
16491 ) |
16492 sed "s/^/$as_me: WARNING: /" >&2
16493 ;;
16494esac
16495echo "$as_me:$LINENO: checking for $ac_header" >&5
16496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16497if eval "test \"\${$as_ac_Header+set}\" = set"; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499else
ac1cb8d3 16500 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16501fi
16502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16503echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16504
16505fi
16506if test `eval echo '${'$as_ac_Header'}'` = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16509_ACEOF
16510
16511fi
16512
16513done
16514
16515
16516case "${host}" in
16517 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16518 if test $ac_cv_header_langinfo_h = "yes" \
16519 -a \( "$wx_cv_gccversion" = "EMX2" \
16520 -o "$wx_cv_gccversion" = "EMX3" \
16521 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16522 LIBS="$LIBS -lintl"
16523 fi
16524 ;;
16525esac
16526
a848cd7e
SC
16527
16528echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16529echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16530if test "${ac_cv_c_const+set}" = set; then
16531 echo $ECHO_N "(cached) $ECHO_C" >&6
16532else
16533 cat >conftest.$ac_ext <<_ACEOF
16534/* confdefs.h. */
16535_ACEOF
16536cat confdefs.h >>conftest.$ac_ext
16537cat >>conftest.$ac_ext <<_ACEOF
16538/* end confdefs.h. */
16539
16540int
16541main ()
16542{
16543/* FIXME: Include the comments suggested by Paul. */
16544#ifndef __cplusplus
16545 /* Ultrix mips cc rejects this. */
16546 typedef int charset[2];
16547 const charset x;
16548 /* SunOS 4.1.1 cc rejects this. */
16549 char const *const *ccp;
16550 char **p;
16551 /* NEC SVR4.0.2 mips cc rejects this. */
16552 struct point {int x, y;};
16553 static struct point const zero = {0,0};
16554 /* AIX XL C 1.02.0.0 rejects this.
16555 It does not let you subtract one const X* pointer from another in
16556 an arm of an if-expression whose if-part is not a constant
16557 expression */
16558 const char *g = "string";
16559 ccp = &g + (g ? g-g : 0);
16560 /* HPUX 7.0 cc rejects these. */
16561 ++ccp;
16562 p = (char**) ccp;
16563 ccp = (char const *const *) p;
16564 { /* SCO 3.2v4 cc rejects this. */
16565 char *t;
16566 char const *s = 0 ? (char *) 0 : (char const *) 0;
16567
16568 *t++ = 0;
16569 }
16570 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16571 int x[] = {25, 17};
16572 const int *foo = &x[0];
16573 ++foo;
16574 }
16575 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16576 typedef const int *iptr;
16577 iptr p = 0;
16578 ++p;
16579 }
16580 { /* AIX XL C 1.02.0.0 rejects this saying
16581 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16582 struct s { int j; const int *ap[3]; };
16583 struct s *b; b->j = 5;
16584 }
16585 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16586 const int foo = 10;
16587 }
16588#endif
16589
16590 ;
16591 return 0;
16592}
16593_ACEOF
16594rm -f conftest.$ac_objext
16595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16596 (eval $ac_compile) 2>conftest.er1
a848cd7e 16597 ac_status=$?
ac1cb8d3
VS
16598 grep -v '^ *+' conftest.er1 >conftest.err
16599 rm -f conftest.er1
16600 cat conftest.err >&5
a848cd7e
SC
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); } &&
5ff751d6 16603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16605 (eval $ac_try) 2>&5
16606 ac_status=$?
16607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608 (exit $ac_status); }; } &&
16609 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
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_c_const=yes
16616else
16617 echo "$as_me: failed program was:" >&5
16618sed 's/^/| /' conftest.$ac_ext >&5
16619
16620ac_cv_c_const=no
16621fi
ac1cb8d3 16622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16623fi
16624echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16625echo "${ECHO_T}$ac_cv_c_const" >&6
16626if test $ac_cv_c_const = no; then
16627
16628cat >>confdefs.h <<\_ACEOF
16629#define const
16630_ACEOF
16631
16632fi
16633
16634echo "$as_me:$LINENO: checking for inline" >&5
16635echo $ECHO_N "checking for inline... $ECHO_C" >&6
16636if test "${ac_cv_c_inline+set}" = set; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16638else
16639 ac_cv_c_inline=no
16640for ac_kw in inline __inline__ __inline; do
16641 cat >conftest.$ac_ext <<_ACEOF
16642/* confdefs.h. */
16643_ACEOF
16644cat confdefs.h >>conftest.$ac_ext
16645cat >>conftest.$ac_ext <<_ACEOF
16646/* end confdefs.h. */
16647#ifndef __cplusplus
16648typedef int foo_t;
16649static $ac_kw foo_t static_foo () {return 0; }
16650$ac_kw foo_t foo () {return 0; }
16651#endif
16652
16653_ACEOF
16654rm -f conftest.$ac_objext
16655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16656 (eval $ac_compile) 2>conftest.er1
a848cd7e 16657 ac_status=$?
ac1cb8d3
VS
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
a848cd7e
SC
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
5ff751d6 16663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16665 (eval $ac_try) 2>&5
16666 ac_status=$?
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; } &&
16669 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16671 (eval $ac_try) 2>&5
16672 ac_status=$?
16673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16674 (exit $ac_status); }; }; then
16675 ac_cv_c_inline=$ac_kw; break
16676else
16677 echo "$as_me: failed program was:" >&5
16678sed 's/^/| /' conftest.$ac_ext >&5
16679
16680fi
ac1cb8d3 16681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16682done
16683
16684fi
16685echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16686echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16687
16688
a848cd7e
SC
16689case $ac_cv_c_inline in
16690 inline | yes) ;;
ac1cb8d3
VS
16691 *)
16692 case $ac_cv_c_inline in
16693 no) ac_val=;;
16694 *) ac_val=$ac_cv_c_inline;;
16695 esac
16696 cat >>confdefs.h <<_ACEOF
16697#ifndef __cplusplus
16698#define inline $ac_val
16699#endif
de59c161 16700_ACEOF
ac1cb8d3 16701 ;;
a848cd7e
SC
16702esac
16703
16704
16705echo "$as_me:$LINENO: checking for char" >&5
16706echo $ECHO_N "checking for char... $ECHO_C" >&6
16707if test "${ac_cv_type_char+set}" = set; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16709else
16710 cat >conftest.$ac_ext <<_ACEOF
16711/* confdefs.h. */
16712_ACEOF
16713cat confdefs.h >>conftest.$ac_ext
16714cat >>conftest.$ac_ext <<_ACEOF
16715/* end confdefs.h. */
16716$ac_includes_default
16717int
16718main ()
16719{
16720if ((char *) 0)
16721 return 0;
16722if (sizeof (char))
16723 return 0;
16724 ;
16725 return 0;
16726}
16727_ACEOF
16728rm -f conftest.$ac_objext
16729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16730 (eval $ac_compile) 2>conftest.er1
a848cd7e 16731 ac_status=$?
ac1cb8d3
VS
16732 grep -v '^ *+' conftest.er1 >conftest.err
16733 rm -f conftest.er1
16734 cat conftest.err >&5
a848cd7e
SC
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
5ff751d6 16737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; } &&
16743 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16745 (eval $ac_try) 2>&5
16746 ac_status=$?
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); }; }; then
16749 ac_cv_type_char=yes
16750else
16751 echo "$as_me: failed program was:" >&5
16752sed 's/^/| /' conftest.$ac_ext >&5
16753
16754ac_cv_type_char=no
16755fi
ac1cb8d3 16756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16757fi
16758echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16759echo "${ECHO_T}$ac_cv_type_char" >&6
16760
16761echo "$as_me:$LINENO: checking size of char" >&5
16762echo $ECHO_N "checking size of char... $ECHO_C" >&6
16763if test "${ac_cv_sizeof_char+set}" = set; then
16764 echo $ECHO_N "(cached) $ECHO_C" >&6
16765else
16766 if test "$ac_cv_type_char" = yes; then
16767 # The cast to unsigned long works around a bug in the HP C Compiler
16768 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16769 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16770 # This bug is HP SR number 8606223364.
16771 if test "$cross_compiling" = yes; then
16772 # Depending upon the size, compute the lo and hi bounds.
16773cat >conftest.$ac_ext <<_ACEOF
16774/* confdefs.h. */
16775_ACEOF
16776cat confdefs.h >>conftest.$ac_ext
16777cat >>conftest.$ac_ext <<_ACEOF
16778/* end confdefs.h. */
16779$ac_includes_default
16780int
16781main ()
16782{
16783static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16784test_array [0] = 0
16785
16786 ;
16787 return 0;
16788}
16789_ACEOF
16790rm -f conftest.$ac_objext
16791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16792 (eval $ac_compile) 2>conftest.er1
a848cd7e 16793 ac_status=$?
ac1cb8d3
VS
16794 grep -v '^ *+' conftest.er1 >conftest.err
16795 rm -f conftest.er1
16796 cat conftest.err >&5
a848cd7e
SC
16797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16798 (exit $ac_status); } &&
5ff751d6 16799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16802 ac_status=$?
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; } &&
16805 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16808 ac_status=$?
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16811 ac_lo=0 ac_mid=0
16812 while :; do
16813 cat >conftest.$ac_ext <<_ACEOF
16814/* confdefs.h. */
16815_ACEOF
16816cat confdefs.h >>conftest.$ac_ext
16817cat >>conftest.$ac_ext <<_ACEOF
16818/* end confdefs.h. */
16819$ac_includes_default
16820int
16821main ()
16822{
16823static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16824test_array [0] = 0
16825
16826 ;
16827 return 0;
16828}
16829_ACEOF
16830rm -f conftest.$ac_objext
16831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16832 (eval $ac_compile) 2>conftest.er1
a848cd7e 16833 ac_status=$?
ac1cb8d3
VS
16834 grep -v '^ *+' conftest.er1 >conftest.err
16835 rm -f conftest.er1
16836 cat conftest.err >&5
a848cd7e
SC
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } &&
5ff751d6 16839 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; } &&
16845 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16847 (eval $ac_try) 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16851 ac_hi=$ac_mid; break
16852else
16853 echo "$as_me: failed program was:" >&5
16854sed 's/^/| /' conftest.$ac_ext >&5
16855
16856ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16857 if test $ac_lo -le $ac_mid; then
16858 ac_lo= ac_hi=
16859 break
16860 fi
16861 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16862fi
ac1cb8d3 16863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16864 done
16865else
16866 echo "$as_me: failed program was:" >&5
16867sed 's/^/| /' conftest.$ac_ext >&5
16868
16869cat >conftest.$ac_ext <<_ACEOF
16870/* confdefs.h. */
16871_ACEOF
16872cat confdefs.h >>conftest.$ac_ext
16873cat >>conftest.$ac_ext <<_ACEOF
16874/* end confdefs.h. */
16875$ac_includes_default
16876int
16877main ()
16878{
16879static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16880test_array [0] = 0
16881
16882 ;
16883 return 0;
16884}
16885_ACEOF
16886rm -f conftest.$ac_objext
16887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16888 (eval $ac_compile) 2>conftest.er1
a848cd7e 16889 ac_status=$?
ac1cb8d3
VS
16890 grep -v '^ *+' conftest.er1 >conftest.err
16891 rm -f conftest.er1
16892 cat conftest.err >&5
a848cd7e
SC
16893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894 (exit $ac_status); } &&
5ff751d6 16895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897 (eval $ac_try) 2>&5
16898 ac_status=$?
16899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); }; } &&
16901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16903 (eval $ac_try) 2>&5
16904 ac_status=$?
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); }; }; then
16907 ac_hi=-1 ac_mid=-1
16908 while :; do
16909 cat >conftest.$ac_ext <<_ACEOF
16910/* confdefs.h. */
16911_ACEOF
16912cat confdefs.h >>conftest.$ac_ext
16913cat >>conftest.$ac_ext <<_ACEOF
16914/* end confdefs.h. */
16915$ac_includes_default
16916int
16917main ()
16918{
16919static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16920test_array [0] = 0
16921
16922 ;
16923 return 0;
16924}
16925_ACEOF
16926rm -f conftest.$ac_objext
16927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16928 (eval $ac_compile) 2>conftest.er1
a848cd7e 16929 ac_status=$?
ac1cb8d3
VS
16930 grep -v '^ *+' conftest.er1 >conftest.err
16931 rm -f conftest.er1
16932 cat conftest.err >&5
a848cd7e
SC
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } &&
5ff751d6 16935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16937 (eval $ac_try) 2>&5
16938 ac_status=$?
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); }; } &&
16941 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; }; then
16947 ac_lo=$ac_mid; break
16948else
16949 echo "$as_me: failed program was:" >&5
16950sed 's/^/| /' conftest.$ac_ext >&5
16951
16952ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16953 if test $ac_mid -le $ac_hi; then
16954 ac_lo= ac_hi=
16955 break
16956 fi
16957 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16958fi
ac1cb8d3 16959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16960 done
16961else
16962 echo "$as_me: failed program was:" >&5
16963sed 's/^/| /' conftest.$ac_ext >&5
16964
16965ac_lo= ac_hi=
16966fi
ac1cb8d3 16967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16968fi
ac1cb8d3 16969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16970# Binary search between lo and hi bounds.
16971while test "x$ac_lo" != "x$ac_hi"; do
16972 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16973 cat >conftest.$ac_ext <<_ACEOF
16974/* confdefs.h. */
16975_ACEOF
16976cat confdefs.h >>conftest.$ac_ext
16977cat >>conftest.$ac_ext <<_ACEOF
16978/* end confdefs.h. */
16979$ac_includes_default
16980int
16981main ()
16982{
16983static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16984test_array [0] = 0
16985
16986 ;
16987 return 0;
16988}
16989_ACEOF
16990rm -f conftest.$ac_objext
16991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16992 (eval $ac_compile) 2>conftest.er1
a848cd7e 16993 ac_status=$?
ac1cb8d3
VS
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
a848cd7e
SC
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
5ff751d6 16999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17007 (eval $ac_try) 2>&5
17008 ac_status=$?
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); }; }; then
17011 ac_hi=$ac_mid
17012else
17013 echo "$as_me: failed program was:" >&5
17014sed 's/^/| /' conftest.$ac_ext >&5
17015
17016ac_lo=`expr '(' $ac_mid ')' + 1`
17017fi
ac1cb8d3 17018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17019done
17020case $ac_lo in
17021?*) ac_cv_sizeof_char=$ac_lo;;
17022'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17023See \`config.log' for more details." >&5
17024echo "$as_me: error: cannot compute sizeof (char), 77
17025See \`config.log' for more details." >&2;}
17026 { (exit 1); exit 1; }; } ;;
17027esac
17028else
17029 if test "$cross_compiling" = yes; then
5ff751d6
VZ
17030 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17031echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17032 { (exit 1); exit 1; }; }
17033else
17034 cat >conftest.$ac_ext <<_ACEOF
17035/* confdefs.h. */
17036_ACEOF
17037cat confdefs.h >>conftest.$ac_ext
17038cat >>conftest.$ac_ext <<_ACEOF
17039/* end confdefs.h. */
17040$ac_includes_default
17041long longval () { return (long) (sizeof (char)); }
17042unsigned long ulongval () { return (long) (sizeof (char)); }
17043#include <stdio.h>
17044#include <stdlib.h>
17045int
17046main ()
17047{
17048
17049 FILE *f = fopen ("conftest.val", "w");
17050 if (! f)
17051 exit (1);
17052 if (((long) (sizeof (char))) < 0)
17053 {
17054 long i = longval ();
17055 if (i != ((long) (sizeof (char))))
17056 exit (1);
17057 fprintf (f, "%ld\n", i);
17058 }
17059 else
17060 {
17061 unsigned long i = ulongval ();
17062 if (i != ((long) (sizeof (char))))
17063 exit (1);
17064 fprintf (f, "%lu\n", i);
17065 }
17066 exit (ferror (f) || fclose (f) != 0);
17067
17068 ;
17069 return 0;
17070}
17071_ACEOF
17072rm -f conftest$ac_exeext
17073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17074 (eval $ac_link) 2>&5
17075 ac_status=$?
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 ac_cv_sizeof_char=`cat conftest.val`
17084else
17085 echo "$as_me: program exited with status $ac_status" >&5
17086echo "$as_me: failed program was:" >&5
17087sed 's/^/| /' conftest.$ac_ext >&5
17088
17089( exit $ac_status )
17090{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17091See \`config.log' for more details." >&5
17092echo "$as_me: error: cannot compute sizeof (char), 77
17093See \`config.log' for more details." >&2;}
17094 { (exit 1); exit 1; }; }
17095fi
ac1cb8d3 17096rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17097fi
17098fi
17099rm -f conftest.val
17100else
17101 ac_cv_sizeof_char=0
17102fi
17103fi
17104echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17105echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17106cat >>confdefs.h <<_ACEOF
17107#define SIZEOF_CHAR $ac_cv_sizeof_char
17108_ACEOF
17109
17110
17111echo "$as_me:$LINENO: checking for short" >&5
17112echo $ECHO_N "checking for short... $ECHO_C" >&6
17113if test "${ac_cv_type_short+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17115else
17116 cat >conftest.$ac_ext <<_ACEOF
17117/* confdefs.h. */
17118_ACEOF
17119cat confdefs.h >>conftest.$ac_ext
17120cat >>conftest.$ac_ext <<_ACEOF
17121/* end confdefs.h. */
17122$ac_includes_default
17123int
17124main ()
17125{
17126if ((short *) 0)
17127 return 0;
17128if (sizeof (short))
17129 return 0;
17130 ;
17131 return 0;
17132}
17133_ACEOF
17134rm -f conftest.$ac_objext
17135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17136 (eval $ac_compile) 2>conftest.er1
a848cd7e 17137 ac_status=$?
ac1cb8d3
VS
17138 grep -v '^ *+' conftest.er1 >conftest.err
17139 rm -f conftest.er1
17140 cat conftest.err >&5
a848cd7e
SC
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); } &&
5ff751d6 17143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17146 ac_status=$?
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; } &&
17149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151 (eval $ac_try) 2>&5
17152 ac_status=$?
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; }; then
17155 ac_cv_type_short=yes
17156else
17157 echo "$as_me: failed program was:" >&5
17158sed 's/^/| /' conftest.$ac_ext >&5
17159
17160ac_cv_type_short=no
17161fi
ac1cb8d3 17162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17163fi
17164echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17165echo "${ECHO_T}$ac_cv_type_short" >&6
17166
17167echo "$as_me:$LINENO: checking size of short" >&5
17168echo $ECHO_N "checking size of short... $ECHO_C" >&6
17169if test "${ac_cv_sizeof_short+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17171else
17172 if test "$ac_cv_type_short" = yes; then
17173 # The cast to unsigned long works around a bug in the HP C Compiler
17174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17176 # This bug is HP SR number 8606223364.
17177 if test "$cross_compiling" = yes; then
17178 # Depending upon the size, compute the lo and hi bounds.
17179cat >conftest.$ac_ext <<_ACEOF
17180/* confdefs.h. */
17181_ACEOF
17182cat confdefs.h >>conftest.$ac_ext
17183cat >>conftest.$ac_ext <<_ACEOF
17184/* end confdefs.h. */
17185$ac_includes_default
17186int
17187main ()
17188{
17189static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17190test_array [0] = 0
17191
17192 ;
17193 return 0;
17194}
17195_ACEOF
17196rm -f conftest.$ac_objext
17197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17198 (eval $ac_compile) 2>conftest.er1
a848cd7e 17199 ac_status=$?
ac1cb8d3
VS
17200 grep -v '^ *+' conftest.er1 >conftest.err
17201 rm -f conftest.er1
17202 cat conftest.err >&5
a848cd7e
SC
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); } &&
5ff751d6 17205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207 (eval $ac_try) 2>&5
17208 ac_status=$?
17209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210 (exit $ac_status); }; } &&
17211 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17214 ac_status=$?
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; }; then
17217 ac_lo=0 ac_mid=0
17218 while :; do
17219 cat >conftest.$ac_ext <<_ACEOF
17220/* confdefs.h. */
17221_ACEOF
17222cat confdefs.h >>conftest.$ac_ext
17223cat >>conftest.$ac_ext <<_ACEOF
17224/* end confdefs.h. */
17225$ac_includes_default
17226int
17227main ()
17228{
17229static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17230test_array [0] = 0
17231
17232 ;
17233 return 0;
17234}
17235_ACEOF
17236rm -f conftest.$ac_objext
17237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17238 (eval $ac_compile) 2>conftest.er1
a848cd7e 17239 ac_status=$?
ac1cb8d3
VS
17240 grep -v '^ *+' conftest.er1 >conftest.err
17241 rm -f conftest.er1
17242 cat conftest.err >&5
a848cd7e
SC
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); } &&
5ff751d6 17245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17247 (eval $ac_try) 2>&5
17248 ac_status=$?
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17253 (eval $ac_try) 2>&5
17254 ac_status=$?
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); }; }; then
17257 ac_hi=$ac_mid; break
17258else
17259 echo "$as_me: failed program was:" >&5
17260sed 's/^/| /' conftest.$ac_ext >&5
17261
17262ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17263 if test $ac_lo -le $ac_mid; then
17264 ac_lo= ac_hi=
17265 break
17266 fi
17267 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17268fi
ac1cb8d3 17269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17270 done
17271else
17272 echo "$as_me: failed program was:" >&5
17273sed 's/^/| /' conftest.$ac_ext >&5
17274
17275cat >conftest.$ac_ext <<_ACEOF
17276/* confdefs.h. */
17277_ACEOF
17278cat confdefs.h >>conftest.$ac_ext
17279cat >>conftest.$ac_ext <<_ACEOF
17280/* end confdefs.h. */
17281$ac_includes_default
17282int
17283main ()
17284{
17285static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17286test_array [0] = 0
17287
17288 ;
17289 return 0;
17290}
17291_ACEOF
17292rm -f conftest.$ac_objext
17293if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17294 (eval $ac_compile) 2>conftest.er1
a848cd7e 17295 ac_status=$?
ac1cb8d3
VS
17296 grep -v '^ *+' conftest.er1 >conftest.err
17297 rm -f conftest.er1
17298 cat conftest.err >&5
a848cd7e
SC
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } &&
5ff751d6 17301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
17307 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309 (eval $ac_try) 2>&5
17310 ac_status=$?
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); }; }; then
17313 ac_hi=-1 ac_mid=-1
17314 while :; do
17315 cat >conftest.$ac_ext <<_ACEOF
17316/* confdefs.h. */
17317_ACEOF
17318cat confdefs.h >>conftest.$ac_ext
17319cat >>conftest.$ac_ext <<_ACEOF
17320/* end confdefs.h. */
17321$ac_includes_default
17322int
17323main ()
17324{
17325static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17326test_array [0] = 0
17327
17328 ;
17329 return 0;
17330}
17331_ACEOF
17332rm -f conftest.$ac_objext
17333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17334 (eval $ac_compile) 2>conftest.er1
a848cd7e 17335 ac_status=$?
ac1cb8d3
VS
17336 grep -v '^ *+' conftest.er1 >conftest.err
17337 rm -f conftest.er1
17338 cat conftest.err >&5
a848cd7e
SC
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
5ff751d6 17341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17343 (eval $ac_try) 2>&5
17344 ac_status=$?
17345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346 (exit $ac_status); }; } &&
17347 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; }; then
17353 ac_lo=$ac_mid; break
17354else
17355 echo "$as_me: failed program was:" >&5
17356sed 's/^/| /' conftest.$ac_ext >&5
17357
17358ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17359 if test $ac_mid -le $ac_hi; then
17360 ac_lo= ac_hi=
17361 break
17362 fi
17363 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17364fi
ac1cb8d3 17365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17366 done
17367else
17368 echo "$as_me: failed program was:" >&5
17369sed 's/^/| /' conftest.$ac_ext >&5
17370
17371ac_lo= ac_hi=
17372fi
ac1cb8d3 17373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17374fi
ac1cb8d3 17375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17376# Binary search between lo and hi bounds.
17377while test "x$ac_lo" != "x$ac_hi"; do
17378 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17379 cat >conftest.$ac_ext <<_ACEOF
17380/* confdefs.h. */
17381_ACEOF
17382cat confdefs.h >>conftest.$ac_ext
17383cat >>conftest.$ac_ext <<_ACEOF
17384/* end confdefs.h. */
17385$ac_includes_default
17386int
17387main ()
17388{
17389static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17390test_array [0] = 0
17391
17392 ;
17393 return 0;
17394}
17395_ACEOF
17396rm -f conftest.$ac_objext
17397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17398 (eval $ac_compile) 2>conftest.er1
a848cd7e 17399 ac_status=$?
ac1cb8d3
VS
17400 grep -v '^ *+' conftest.er1 >conftest.err
17401 rm -f conftest.er1
17402 cat conftest.err >&5
a848cd7e
SC
17403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17404 (exit $ac_status); } &&
5ff751d6 17405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17407 (eval $ac_try) 2>&5
17408 ac_status=$?
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); }; } &&
17411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17414 ac_status=$?
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; }; then
17417 ac_hi=$ac_mid
17418else
17419 echo "$as_me: failed program was:" >&5
17420sed 's/^/| /' conftest.$ac_ext >&5
17421
17422ac_lo=`expr '(' $ac_mid ')' + 1`
17423fi
ac1cb8d3 17424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17425done
17426case $ac_lo in
17427?*) ac_cv_sizeof_short=$ac_lo;;
17428'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17429See \`config.log' for more details." >&5
17430echo "$as_me: error: cannot compute sizeof (short), 77
17431See \`config.log' for more details." >&2;}
17432 { (exit 1); exit 1; }; } ;;
17433esac
17434else
17435 if test "$cross_compiling" = yes; then
5ff751d6
VZ
17436 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17437echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17438 { (exit 1); exit 1; }; }
17439else
17440 cat >conftest.$ac_ext <<_ACEOF
17441/* confdefs.h. */
17442_ACEOF
17443cat confdefs.h >>conftest.$ac_ext
17444cat >>conftest.$ac_ext <<_ACEOF
17445/* end confdefs.h. */
17446$ac_includes_default
17447long longval () { return (long) (sizeof (short)); }
17448unsigned long ulongval () { return (long) (sizeof (short)); }
17449#include <stdio.h>
17450#include <stdlib.h>
17451int
17452main ()
17453{
17454
17455 FILE *f = fopen ("conftest.val", "w");
17456 if (! f)
17457 exit (1);
17458 if (((long) (sizeof (short))) < 0)
17459 {
17460 long i = longval ();
17461 if (i != ((long) (sizeof (short))))
17462 exit (1);
17463 fprintf (f, "%ld\n", i);
17464 }
17465 else
17466 {
17467 unsigned long i = ulongval ();
17468 if (i != ((long) (sizeof (short))))
17469 exit (1);
17470 fprintf (f, "%lu\n", i);
17471 }
17472 exit (ferror (f) || fclose (f) != 0);
17473
17474 ;
17475 return 0;
17476}
17477_ACEOF
17478rm -f conftest$ac_exeext
17479if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17480 (eval $ac_link) 2>&5
17481 ac_status=$?
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17486 ac_status=$?
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 ac_cv_sizeof_short=`cat conftest.val`
17490else
17491 echo "$as_me: program exited with status $ac_status" >&5
17492echo "$as_me: failed program was:" >&5
17493sed 's/^/| /' conftest.$ac_ext >&5
17494
17495( exit $ac_status )
17496{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17497See \`config.log' for more details." >&5
17498echo "$as_me: error: cannot compute sizeof (short), 77
17499See \`config.log' for more details." >&2;}
17500 { (exit 1); exit 1; }; }
17501fi
ac1cb8d3 17502rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17503fi
17504fi
17505rm -f conftest.val
17506else
17507 ac_cv_sizeof_short=0
17508fi
17509fi
17510echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17511echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17512cat >>confdefs.h <<_ACEOF
17513#define SIZEOF_SHORT $ac_cv_sizeof_short
17514_ACEOF
17515
17516
17517echo "$as_me:$LINENO: checking for void *" >&5
17518echo $ECHO_N "checking for void *... $ECHO_C" >&6
17519if test "${ac_cv_type_void_p+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17521else
17522 cat >conftest.$ac_ext <<_ACEOF
17523/* confdefs.h. */
17524_ACEOF
17525cat confdefs.h >>conftest.$ac_ext
17526cat >>conftest.$ac_ext <<_ACEOF
17527/* end confdefs.h. */
17528$ac_includes_default
17529int
17530main ()
17531{
17532if ((void * *) 0)
17533 return 0;
17534if (sizeof (void *))
17535 return 0;
17536 ;
17537 return 0;
17538}
17539_ACEOF
17540rm -f conftest.$ac_objext
17541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17542 (eval $ac_compile) 2>conftest.er1
a848cd7e 17543 ac_status=$?
ac1cb8d3
VS
17544 grep -v '^ *+' conftest.er1 >conftest.err
17545 rm -f conftest.er1
17546 cat conftest.err >&5
a848cd7e
SC
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } &&
5ff751d6 17549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; } &&
17555 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; }; then
17561 ac_cv_type_void_p=yes
17562else
17563 echo "$as_me: failed program was:" >&5
17564sed 's/^/| /' conftest.$ac_ext >&5
17565
17566ac_cv_type_void_p=no
17567fi
ac1cb8d3 17568rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17569fi
17570echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17571echo "${ECHO_T}$ac_cv_type_void_p" >&6
17572
17573echo "$as_me:$LINENO: checking size of void *" >&5
17574echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17575if test "${ac_cv_sizeof_void_p+set}" = set; then
17576 echo $ECHO_N "(cached) $ECHO_C" >&6
17577else
17578 if test "$ac_cv_type_void_p" = yes; then
17579 # The cast to unsigned long works around a bug in the HP C Compiler
17580 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17581 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17582 # This bug is HP SR number 8606223364.
17583 if test "$cross_compiling" = yes; then
17584 # Depending upon the size, compute the lo and hi bounds.
17585cat >conftest.$ac_ext <<_ACEOF
17586/* confdefs.h. */
17587_ACEOF
17588cat confdefs.h >>conftest.$ac_ext
17589cat >>conftest.$ac_ext <<_ACEOF
17590/* end confdefs.h. */
17591$ac_includes_default
17592int
17593main ()
17594{
17595static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17596test_array [0] = 0
17597
17598 ;
17599 return 0;
17600}
17601_ACEOF
17602rm -f conftest.$ac_objext
17603if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17604 (eval $ac_compile) 2>conftest.er1
a848cd7e 17605 ac_status=$?
ac1cb8d3
VS
17606 grep -v '^ *+' conftest.er1 >conftest.err
17607 rm -f conftest.er1
17608 cat conftest.err >&5
a848cd7e
SC
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); } &&
5ff751d6 17611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; } &&
17617 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17619 (eval $ac_try) 2>&5
17620 ac_status=$?
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); }; }; then
17623 ac_lo=0 ac_mid=0
17624 while :; do
17625 cat >conftest.$ac_ext <<_ACEOF
17626/* confdefs.h. */
17627_ACEOF
17628cat confdefs.h >>conftest.$ac_ext
17629cat >>conftest.$ac_ext <<_ACEOF
17630/* end confdefs.h. */
17631$ac_includes_default
17632int
17633main ()
17634{
17635static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17636test_array [0] = 0
17637
17638 ;
17639 return 0;
17640}
17641_ACEOF
17642rm -f conftest.$ac_objext
17643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17644 (eval $ac_compile) 2>conftest.er1
a848cd7e 17645 ac_status=$?
ac1cb8d3
VS
17646 grep -v '^ *+' conftest.er1 >conftest.err
17647 rm -f conftest.er1
17648 cat conftest.err >&5
a848cd7e
SC
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); } &&
5ff751d6 17651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
17657 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_hi=$ac_mid; break
17664else
17665 echo "$as_me: failed program was:" >&5
17666sed 's/^/| /' conftest.$ac_ext >&5
17667
17668ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17669 if test $ac_lo -le $ac_mid; then
17670 ac_lo= ac_hi=
17671 break
17672 fi
17673 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17674fi
ac1cb8d3 17675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17676 done
17677else
17678 echo "$as_me: failed program was:" >&5
17679sed 's/^/| /' conftest.$ac_ext >&5
17680
17681cat >conftest.$ac_ext <<_ACEOF
17682/* confdefs.h. */
17683_ACEOF
17684cat confdefs.h >>conftest.$ac_ext
17685cat >>conftest.$ac_ext <<_ACEOF
17686/* end confdefs.h. */
17687$ac_includes_default
17688int
17689main ()
17690{
17691static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17692test_array [0] = 0
17693
17694 ;
17695 return 0;
17696}
17697_ACEOF
17698rm -f conftest.$ac_objext
17699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17700 (eval $ac_compile) 2>conftest.er1
a848cd7e 17701 ac_status=$?
ac1cb8d3
VS
17702 grep -v '^ *+' conftest.er1 >conftest.err
17703 rm -f conftest.er1
17704 cat conftest.err >&5
a848cd7e
SC
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); } &&
5ff751d6 17707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709 (eval $ac_try) 2>&5
17710 ac_status=$?
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); }; } &&
17713 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17716 ac_status=$?
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; }; then
17719 ac_hi=-1 ac_mid=-1
17720 while :; do
17721 cat >conftest.$ac_ext <<_ACEOF
17722/* confdefs.h. */
17723_ACEOF
17724cat confdefs.h >>conftest.$ac_ext
17725cat >>conftest.$ac_ext <<_ACEOF
17726/* end confdefs.h. */
17727$ac_includes_default
17728int
17729main ()
17730{
17731static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17732test_array [0] = 0
17733
17734 ;
17735 return 0;
17736}
17737_ACEOF
17738rm -f conftest.$ac_objext
17739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17740 (eval $ac_compile) 2>conftest.er1
a848cd7e 17741 ac_status=$?
ac1cb8d3
VS
17742 grep -v '^ *+' conftest.er1 >conftest.err
17743 rm -f conftest.er1
17744 cat conftest.err >&5
a848cd7e
SC
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); } &&
5ff751d6 17747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17749 (eval $ac_try) 2>&5
17750 ac_status=$?
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); }; } &&
17753 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; }; then
17759 ac_lo=$ac_mid; break
17760else
17761 echo "$as_me: failed program was:" >&5
17762sed 's/^/| /' conftest.$ac_ext >&5
17763
17764ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17765 if test $ac_mid -le $ac_hi; then
17766 ac_lo= ac_hi=
17767 break
17768 fi
17769 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17770fi
ac1cb8d3 17771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17772 done
17773else
17774 echo "$as_me: failed program was:" >&5
17775sed 's/^/| /' conftest.$ac_ext >&5
17776
17777ac_lo= ac_hi=
17778fi
ac1cb8d3 17779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17780fi
ac1cb8d3 17781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17782# Binary search between lo and hi bounds.
17783while test "x$ac_lo" != "x$ac_hi"; do
17784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17785 cat >conftest.$ac_ext <<_ACEOF
17786/* confdefs.h. */
17787_ACEOF
17788cat confdefs.h >>conftest.$ac_ext
17789cat >>conftest.$ac_ext <<_ACEOF
17790/* end confdefs.h. */
17791$ac_includes_default
17792int
17793main ()
17794{
17795static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17796test_array [0] = 0
17797
17798 ;
17799 return 0;
17800}
17801_ACEOF
17802rm -f conftest.$ac_objext
17803if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17804 (eval $ac_compile) 2>conftest.er1
a848cd7e 17805 ac_status=$?
ac1cb8d3
VS
17806 grep -v '^ *+' conftest.er1 >conftest.err
17807 rm -f conftest.er1
17808 cat conftest.err >&5
a848cd7e
SC
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
5ff751d6 17811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17813 (eval $ac_try) 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17819 (eval $ac_try) 2>&5
17820 ac_status=$?
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); }; }; then
17823 ac_hi=$ac_mid
17824else
17825 echo "$as_me: failed program was:" >&5
17826sed 's/^/| /' conftest.$ac_ext >&5
17827
17828ac_lo=`expr '(' $ac_mid ')' + 1`
17829fi
ac1cb8d3 17830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17831done
17832case $ac_lo in
17833?*) ac_cv_sizeof_void_p=$ac_lo;;
17834'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17835See \`config.log' for more details." >&5
17836echo "$as_me: error: cannot compute sizeof (void *), 77
17837See \`config.log' for more details." >&2;}
17838 { (exit 1); exit 1; }; } ;;
17839esac
17840else
17841 if test "$cross_compiling" = yes; then
5ff751d6
VZ
17842 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17843echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17844 { (exit 1); exit 1; }; }
17845else
17846 cat >conftest.$ac_ext <<_ACEOF
17847/* confdefs.h. */
17848_ACEOF
17849cat confdefs.h >>conftest.$ac_ext
17850cat >>conftest.$ac_ext <<_ACEOF
17851/* end confdefs.h. */
17852$ac_includes_default
17853long longval () { return (long) (sizeof (void *)); }
17854unsigned long ulongval () { return (long) (sizeof (void *)); }
17855#include <stdio.h>
17856#include <stdlib.h>
17857int
17858main ()
17859{
17860
17861 FILE *f = fopen ("conftest.val", "w");
17862 if (! f)
17863 exit (1);
17864 if (((long) (sizeof (void *))) < 0)
17865 {
17866 long i = longval ();
17867 if (i != ((long) (sizeof (void *))))
17868 exit (1);
17869 fprintf (f, "%ld\n", i);
17870 }
17871 else
17872 {
17873 unsigned long i = ulongval ();
17874 if (i != ((long) (sizeof (void *))))
17875 exit (1);
17876 fprintf (f, "%lu\n", i);
17877 }
17878 exit (ferror (f) || fclose (f) != 0);
17879
17880 ;
17881 return 0;
17882}
17883_ACEOF
17884rm -f conftest$ac_exeext
17885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17886 (eval $ac_link) 2>&5
17887 ac_status=$?
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17892 ac_status=$?
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; }; then
17895 ac_cv_sizeof_void_p=`cat conftest.val`
17896else
17897 echo "$as_me: program exited with status $ac_status" >&5
17898echo "$as_me: failed program was:" >&5
17899sed 's/^/| /' conftest.$ac_ext >&5
17900
17901( exit $ac_status )
17902{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17903See \`config.log' for more details." >&5
17904echo "$as_me: error: cannot compute sizeof (void *), 77
17905See \`config.log' for more details." >&2;}
17906 { (exit 1); exit 1; }; }
17907fi
ac1cb8d3 17908rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17909fi
17910fi
17911rm -f conftest.val
17912else
17913 ac_cv_sizeof_void_p=0
17914fi
17915fi
17916echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17917echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17918cat >>confdefs.h <<_ACEOF
17919#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17920_ACEOF
17921
17922
17923echo "$as_me:$LINENO: checking for int" >&5
17924echo $ECHO_N "checking for int... $ECHO_C" >&6
17925if test "${ac_cv_type_int+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927else
17928 cat >conftest.$ac_ext <<_ACEOF
17929/* confdefs.h. */
17930_ACEOF
17931cat confdefs.h >>conftest.$ac_ext
17932cat >>conftest.$ac_ext <<_ACEOF
17933/* end confdefs.h. */
17934$ac_includes_default
17935int
17936main ()
17937{
17938if ((int *) 0)
17939 return 0;
17940if (sizeof (int))
17941 return 0;
17942 ;
17943 return 0;
17944}
17945_ACEOF
17946rm -f conftest.$ac_objext
17947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17948 (eval $ac_compile) 2>conftest.er1
a848cd7e 17949 ac_status=$?
ac1cb8d3
VS
17950 grep -v '^ *+' conftest.er1 >conftest.err
17951 rm -f conftest.er1
17952 cat conftest.err >&5
a848cd7e
SC
17953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17954 (exit $ac_status); } &&
5ff751d6 17955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17957 (eval $ac_try) 2>&5
17958 ac_status=$?
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); }; } &&
17961 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17963 (eval $ac_try) 2>&5
17964 ac_status=$?
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); }; }; then
17967 ac_cv_type_int=yes
17968else
17969 echo "$as_me: failed program was:" >&5
17970sed 's/^/| /' conftest.$ac_ext >&5
17971
17972ac_cv_type_int=no
17973fi
ac1cb8d3 17974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17975fi
17976echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17977echo "${ECHO_T}$ac_cv_type_int" >&6
17978
17979echo "$as_me:$LINENO: checking size of int" >&5
17980echo $ECHO_N "checking size of int... $ECHO_C" >&6
17981if test "${ac_cv_sizeof_int+set}" = set; then
17982 echo $ECHO_N "(cached) $ECHO_C" >&6
17983else
17984 if test "$ac_cv_type_int" = yes; then
17985 # The cast to unsigned long works around a bug in the HP C Compiler
17986 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17987 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17988 # This bug is HP SR number 8606223364.
17989 if test "$cross_compiling" = yes; then
17990 # Depending upon the size, compute the lo and hi bounds.
17991cat >conftest.$ac_ext <<_ACEOF
17992/* confdefs.h. */
17993_ACEOF
17994cat confdefs.h >>conftest.$ac_ext
17995cat >>conftest.$ac_ext <<_ACEOF
17996/* end confdefs.h. */
17997$ac_includes_default
17998int
17999main ()
18000{
18001static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18002test_array [0] = 0
18003
18004 ;
18005 return 0;
18006}
18007_ACEOF
18008rm -f conftest.$ac_objext
18009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18010 (eval $ac_compile) 2>conftest.er1
a848cd7e 18011 ac_status=$?
ac1cb8d3
VS
18012 grep -v '^ *+' conftest.er1 >conftest.err
18013 rm -f conftest.er1
18014 cat conftest.err >&5
a848cd7e
SC
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); } &&
5ff751d6 18017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18019 (eval $ac_try) 2>&5
18020 ac_status=$?
18021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18022 (exit $ac_status); }; } &&
18023 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18025 (eval $ac_try) 2>&5
18026 ac_status=$?
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); }; }; then
18029 ac_lo=0 ac_mid=0
18030 while :; do
18031 cat >conftest.$ac_ext <<_ACEOF
18032/* confdefs.h. */
18033_ACEOF
18034cat confdefs.h >>conftest.$ac_ext
18035cat >>conftest.$ac_ext <<_ACEOF
18036/* end confdefs.h. */
18037$ac_includes_default
18038int
18039main ()
18040{
18041static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18042test_array [0] = 0
18043
18044 ;
18045 return 0;
18046}
18047_ACEOF
18048rm -f conftest.$ac_objext
18049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18050 (eval $ac_compile) 2>conftest.er1
a848cd7e 18051 ac_status=$?
ac1cb8d3
VS
18052 grep -v '^ *+' conftest.er1 >conftest.err
18053 rm -f conftest.er1
18054 cat conftest.err >&5
a848cd7e
SC
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } &&
5ff751d6 18057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_hi=$ac_mid; break
18070else
18071 echo "$as_me: failed program was:" >&5
18072sed 's/^/| /' conftest.$ac_ext >&5
18073
18074ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18075 if test $ac_lo -le $ac_mid; then
18076 ac_lo= ac_hi=
18077 break
18078 fi
18079 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18080fi
ac1cb8d3 18081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18082 done
18083else
18084 echo "$as_me: failed program was:" >&5
18085sed 's/^/| /' conftest.$ac_ext >&5
18086
18087cat >conftest.$ac_ext <<_ACEOF
18088/* confdefs.h. */
18089_ACEOF
18090cat confdefs.h >>conftest.$ac_ext
18091cat >>conftest.$ac_ext <<_ACEOF
18092/* end confdefs.h. */
18093$ac_includes_default
18094int
18095main ()
18096{
18097static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18098test_array [0] = 0
18099
18100 ;
18101 return 0;
18102}
18103_ACEOF
18104rm -f conftest.$ac_objext
18105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18106 (eval $ac_compile) 2>conftest.er1
a848cd7e 18107 ac_status=$?
ac1cb8d3
VS
18108 grep -v '^ *+' conftest.er1 >conftest.err
18109 rm -f conftest.er1
18110 cat conftest.err >&5
a848cd7e
SC
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
5ff751d6 18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } &&
18119 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18122 ac_status=$?
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_hi=-1 ac_mid=-1
18126 while :; do
18127 cat >conftest.$ac_ext <<_ACEOF
18128/* confdefs.h. */
18129_ACEOF
18130cat confdefs.h >>conftest.$ac_ext
18131cat >>conftest.$ac_ext <<_ACEOF
18132/* end confdefs.h. */
18133$ac_includes_default
18134int
18135main ()
18136{
18137static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18138test_array [0] = 0
18139
18140 ;
18141 return 0;
18142}
18143_ACEOF
18144rm -f conftest.$ac_objext
18145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18146 (eval $ac_compile) 2>conftest.er1
a848cd7e 18147 ac_status=$?
ac1cb8d3
VS
18148 grep -v '^ *+' conftest.er1 >conftest.err
18149 rm -f conftest.er1
18150 cat conftest.err >&5
a848cd7e
SC
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
5ff751d6 18153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18156 ac_status=$?
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; } &&
18159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18161 (eval $ac_try) 2>&5
18162 ac_status=$?
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); }; }; then
18165 ac_lo=$ac_mid; break
18166else
18167 echo "$as_me: failed program was:" >&5
18168sed 's/^/| /' conftest.$ac_ext >&5
18169
18170ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18171 if test $ac_mid -le $ac_hi; then
18172 ac_lo= ac_hi=
18173 break
18174 fi
18175 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18176fi
ac1cb8d3 18177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18178 done
18179else
18180 echo "$as_me: failed program was:" >&5
18181sed 's/^/| /' conftest.$ac_ext >&5
18182
18183ac_lo= ac_hi=
18184fi
ac1cb8d3 18185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18186fi
ac1cb8d3 18187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18188# Binary search between lo and hi bounds.
18189while test "x$ac_lo" != "x$ac_hi"; do
18190 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18191 cat >conftest.$ac_ext <<_ACEOF
18192/* confdefs.h. */
18193_ACEOF
18194cat confdefs.h >>conftest.$ac_ext
18195cat >>conftest.$ac_ext <<_ACEOF
18196/* end confdefs.h. */
18197$ac_includes_default
18198int
18199main ()
18200{
18201static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18202test_array [0] = 0
18203
18204 ;
18205 return 0;
18206}
18207_ACEOF
18208rm -f conftest.$ac_objext
18209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18210 (eval $ac_compile) 2>conftest.er1
a848cd7e 18211 ac_status=$?
ac1cb8d3
VS
18212 grep -v '^ *+' conftest.er1 >conftest.err
18213 rm -f conftest.er1
18214 cat conftest.err >&5
a848cd7e
SC
18215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18216 (exit $ac_status); } &&
5ff751d6 18217 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219 (eval $ac_try) 2>&5
18220 ac_status=$?
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); }; } &&
18223 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225 (eval $ac_try) 2>&5
18226 ac_status=$?
18227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228 (exit $ac_status); }; }; then
18229 ac_hi=$ac_mid
18230else
18231 echo "$as_me: failed program was:" >&5
18232sed 's/^/| /' conftest.$ac_ext >&5
18233
18234ac_lo=`expr '(' $ac_mid ')' + 1`
18235fi
ac1cb8d3 18236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18237done
18238case $ac_lo in
18239?*) ac_cv_sizeof_int=$ac_lo;;
18240'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18241See \`config.log' for more details." >&5
18242echo "$as_me: error: cannot compute sizeof (int), 77
18243See \`config.log' for more details." >&2;}
18244 { (exit 1); exit 1; }; } ;;
18245esac
18246else
18247 if test "$cross_compiling" = yes; then
5ff751d6
VZ
18248 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18249echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18250 { (exit 1); exit 1; }; }
18251else
18252 cat >conftest.$ac_ext <<_ACEOF
18253/* confdefs.h. */
18254_ACEOF
18255cat confdefs.h >>conftest.$ac_ext
18256cat >>conftest.$ac_ext <<_ACEOF
18257/* end confdefs.h. */
18258$ac_includes_default
18259long longval () { return (long) (sizeof (int)); }
18260unsigned long ulongval () { return (long) (sizeof (int)); }
18261#include <stdio.h>
18262#include <stdlib.h>
18263int
18264main ()
18265{
18266
18267 FILE *f = fopen ("conftest.val", "w");
18268 if (! f)
18269 exit (1);
18270 if (((long) (sizeof (int))) < 0)
18271 {
18272 long i = longval ();
18273 if (i != ((long) (sizeof (int))))
18274 exit (1);
18275 fprintf (f, "%ld\n", i);
18276 }
18277 else
18278 {
18279 unsigned long i = ulongval ();
18280 if (i != ((long) (sizeof (int))))
18281 exit (1);
18282 fprintf (f, "%lu\n", i);
18283 }
18284 exit (ferror (f) || fclose (f) != 0);
18285
18286 ;
18287 return 0;
18288}
18289_ACEOF
18290rm -f conftest$ac_exeext
18291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18292 (eval $ac_link) 2>&5
18293 ac_status=$?
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18297 (eval $ac_try) 2>&5
18298 ac_status=$?
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); }; }; then
18301 ac_cv_sizeof_int=`cat conftest.val`
18302else
18303 echo "$as_me: program exited with status $ac_status" >&5
18304echo "$as_me: failed program was:" >&5
18305sed 's/^/| /' conftest.$ac_ext >&5
18306
18307( exit $ac_status )
18308{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18309See \`config.log' for more details." >&5
18310echo "$as_me: error: cannot compute sizeof (int), 77
18311See \`config.log' for more details." >&2;}
18312 { (exit 1); exit 1; }; }
18313fi
ac1cb8d3 18314rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18315fi
18316fi
18317rm -f conftest.val
18318else
18319 ac_cv_sizeof_int=0
18320fi
18321fi
18322echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18323echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18324cat >>confdefs.h <<_ACEOF
18325#define SIZEOF_INT $ac_cv_sizeof_int
18326_ACEOF
18327
18328
18329echo "$as_me:$LINENO: checking for long" >&5
18330echo $ECHO_N "checking for long... $ECHO_C" >&6
18331if test "${ac_cv_type_long+set}" = set; then
18332 echo $ECHO_N "(cached) $ECHO_C" >&6
18333else
18334 cat >conftest.$ac_ext <<_ACEOF
18335/* confdefs.h. */
18336_ACEOF
18337cat confdefs.h >>conftest.$ac_ext
18338cat >>conftest.$ac_ext <<_ACEOF
18339/* end confdefs.h. */
18340$ac_includes_default
18341int
18342main ()
18343{
18344if ((long *) 0)
18345 return 0;
18346if (sizeof (long))
18347 return 0;
18348 ;
18349 return 0;
18350}
18351_ACEOF
18352rm -f conftest.$ac_objext
18353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18354 (eval $ac_compile) 2>conftest.er1
a848cd7e 18355 ac_status=$?
ac1cb8d3
VS
18356 grep -v '^ *+' conftest.er1 >conftest.err
18357 rm -f conftest.er1
18358 cat conftest.err >&5
a848cd7e
SC
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); } &&
5ff751d6 18361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18363 (eval $ac_try) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); }; } &&
18367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18369 (eval $ac_try) 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 ac_cv_type_long=yes
18374else
18375 echo "$as_me: failed program was:" >&5
18376sed 's/^/| /' conftest.$ac_ext >&5
18377
18378ac_cv_type_long=no
18379fi
ac1cb8d3 18380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18381fi
18382echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18383echo "${ECHO_T}$ac_cv_type_long" >&6
18384
18385echo "$as_me:$LINENO: checking size of long" >&5
18386echo $ECHO_N "checking size of long... $ECHO_C" >&6
18387if test "${ac_cv_sizeof_long+set}" = set; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18389else
18390 if test "$ac_cv_type_long" = yes; then
18391 # The cast to unsigned long works around a bug in the HP C Compiler
18392 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18393 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18394 # This bug is HP SR number 8606223364.
18395 if test "$cross_compiling" = yes; then
18396 # Depending upon the size, compute the lo and hi bounds.
18397cat >conftest.$ac_ext <<_ACEOF
18398/* confdefs.h. */
18399_ACEOF
18400cat confdefs.h >>conftest.$ac_ext
18401cat >>conftest.$ac_ext <<_ACEOF
18402/* end confdefs.h. */
18403$ac_includes_default
18404int
18405main ()
18406{
18407static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18408test_array [0] = 0
18409
18410 ;
18411 return 0;
18412}
18413_ACEOF
18414rm -f conftest.$ac_objext
18415if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18416 (eval $ac_compile) 2>conftest.er1
a848cd7e 18417 ac_status=$?
ac1cb8d3
VS
18418 grep -v '^ *+' conftest.er1 >conftest.err
18419 rm -f conftest.er1
18420 cat conftest.err >&5
a848cd7e
SC
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } &&
5ff751d6 18423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } &&
18429 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18431 (eval $ac_try) 2>&5
18432 ac_status=$?
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); }; }; then
18435 ac_lo=0 ac_mid=0
18436 while :; do
18437 cat >conftest.$ac_ext <<_ACEOF
18438/* confdefs.h. */
18439_ACEOF
18440cat confdefs.h >>conftest.$ac_ext
18441cat >>conftest.$ac_ext <<_ACEOF
18442/* end confdefs.h. */
18443$ac_includes_default
18444int
18445main ()
18446{
18447static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18448test_array [0] = 0
18449
18450 ;
18451 return 0;
18452}
18453_ACEOF
18454rm -f conftest.$ac_objext
18455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18456 (eval $ac_compile) 2>conftest.er1
a848cd7e 18457 ac_status=$?
ac1cb8d3
VS
18458 grep -v '^ *+' conftest.er1 >conftest.err
18459 rm -f conftest.er1
18460 cat conftest.err >&5
a848cd7e
SC
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
5ff751d6 18463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } &&
18469 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; }; then
18475 ac_hi=$ac_mid; break
18476else
18477 echo "$as_me: failed program was:" >&5
18478sed 's/^/| /' conftest.$ac_ext >&5
18479
18480ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18481 if test $ac_lo -le $ac_mid; then
18482 ac_lo= ac_hi=
18483 break
18484 fi
18485 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18486fi
ac1cb8d3 18487rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18488 done
18489else
18490 echo "$as_me: failed program was:" >&5
18491sed 's/^/| /' conftest.$ac_ext >&5
18492
18493cat >conftest.$ac_ext <<_ACEOF
18494/* confdefs.h. */
18495_ACEOF
18496cat confdefs.h >>conftest.$ac_ext
18497cat >>conftest.$ac_ext <<_ACEOF
18498/* end confdefs.h. */
18499$ac_includes_default
18500int
18501main ()
18502{
18503static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18504test_array [0] = 0
18505
18506 ;
18507 return 0;
18508}
18509_ACEOF
18510rm -f conftest.$ac_objext
18511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18512 (eval $ac_compile) 2>conftest.er1
a848cd7e 18513 ac_status=$?
ac1cb8d3
VS
18514 grep -v '^ *+' conftest.er1 >conftest.err
18515 rm -f conftest.er1
18516 cat conftest.err >&5
a848cd7e
SC
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
5ff751d6 18519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18522 ac_status=$?
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; } &&
18525 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18527 (eval $ac_try) 2>&5
18528 ac_status=$?
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; }; then
18531 ac_hi=-1 ac_mid=-1
18532 while :; do
18533 cat >conftest.$ac_ext <<_ACEOF
18534/* confdefs.h. */
18535_ACEOF
18536cat confdefs.h >>conftest.$ac_ext
18537cat >>conftest.$ac_ext <<_ACEOF
18538/* end confdefs.h. */
18539$ac_includes_default
18540int
18541main ()
18542{
18543static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18544test_array [0] = 0
18545
18546 ;
18547 return 0;
18548}
18549_ACEOF
18550rm -f conftest.$ac_objext
18551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18552 (eval $ac_compile) 2>conftest.er1
a848cd7e 18553 ac_status=$?
ac1cb8d3
VS
18554 grep -v '^ *+' conftest.er1 >conftest.err
18555 rm -f conftest.er1
18556 cat conftest.err >&5
a848cd7e
SC
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
5ff751d6 18559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18561 (eval $ac_try) 2>&5
18562 ac_status=$?
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); }; } &&
18565 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 ac_lo=$ac_mid; break
18572else
18573 echo "$as_me: failed program was:" >&5
18574sed 's/^/| /' conftest.$ac_ext >&5
18575
18576ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18577 if test $ac_mid -le $ac_hi; then
18578 ac_lo= ac_hi=
18579 break
18580 fi
18581 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18582fi
ac1cb8d3 18583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18584 done
18585else
18586 echo "$as_me: failed program was:" >&5
18587sed 's/^/| /' conftest.$ac_ext >&5
18588
18589ac_lo= ac_hi=
18590fi
ac1cb8d3 18591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18592fi
ac1cb8d3 18593rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18594# Binary search between lo and hi bounds.
18595while test "x$ac_lo" != "x$ac_hi"; do
18596 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18597 cat >conftest.$ac_ext <<_ACEOF
18598/* confdefs.h. */
18599_ACEOF
18600cat confdefs.h >>conftest.$ac_ext
18601cat >>conftest.$ac_ext <<_ACEOF
18602/* end confdefs.h. */
18603$ac_includes_default
18604int
18605main ()
18606{
18607static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18608test_array [0] = 0
18609
18610 ;
18611 return 0;
18612}
18613_ACEOF
18614rm -f conftest.$ac_objext
18615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18616 (eval $ac_compile) 2>conftest.er1
a848cd7e 18617 ac_status=$?
ac1cb8d3
VS
18618 grep -v '^ *+' conftest.er1 >conftest.err
18619 rm -f conftest.er1
18620 cat conftest.err >&5
a848cd7e
SC
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } &&
5ff751d6 18623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
18635 ac_hi=$ac_mid
18636else
18637 echo "$as_me: failed program was:" >&5
18638sed 's/^/| /' conftest.$ac_ext >&5
18639
18640ac_lo=`expr '(' $ac_mid ')' + 1`
18641fi
ac1cb8d3 18642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18643done
18644case $ac_lo in
18645?*) ac_cv_sizeof_long=$ac_lo;;
18646'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18647See \`config.log' for more details." >&5
18648echo "$as_me: error: cannot compute sizeof (long), 77
18649See \`config.log' for more details." >&2;}
18650 { (exit 1); exit 1; }; } ;;
18651esac
18652else
18653 if test "$cross_compiling" = yes; then
5ff751d6
VZ
18654 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18655echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18656 { (exit 1); exit 1; }; }
18657else
18658 cat >conftest.$ac_ext <<_ACEOF
18659/* confdefs.h. */
18660_ACEOF
18661cat confdefs.h >>conftest.$ac_ext
18662cat >>conftest.$ac_ext <<_ACEOF
18663/* end confdefs.h. */
18664$ac_includes_default
18665long longval () { return (long) (sizeof (long)); }
18666unsigned long ulongval () { return (long) (sizeof (long)); }
18667#include <stdio.h>
18668#include <stdlib.h>
18669int
18670main ()
18671{
18672
18673 FILE *f = fopen ("conftest.val", "w");
18674 if (! f)
18675 exit (1);
18676 if (((long) (sizeof (long))) < 0)
18677 {
18678 long i = longval ();
18679 if (i != ((long) (sizeof (long))))
18680 exit (1);
18681 fprintf (f, "%ld\n", i);
18682 }
18683 else
18684 {
18685 unsigned long i = ulongval ();
18686 if (i != ((long) (sizeof (long))))
18687 exit (1);
18688 fprintf (f, "%lu\n", i);
18689 }
18690 exit (ferror (f) || fclose (f) != 0);
18691
18692 ;
18693 return 0;
18694}
18695_ACEOF
18696rm -f conftest$ac_exeext
18697if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18698 (eval $ac_link) 2>&5
18699 ac_status=$?
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18703 (eval $ac_try) 2>&5
18704 ac_status=$?
18705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18706 (exit $ac_status); }; }; then
18707 ac_cv_sizeof_long=`cat conftest.val`
18708else
18709 echo "$as_me: program exited with status $ac_status" >&5
18710echo "$as_me: failed program was:" >&5
18711sed 's/^/| /' conftest.$ac_ext >&5
18712
18713( exit $ac_status )
18714{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18715See \`config.log' for more details." >&5
18716echo "$as_me: error: cannot compute sizeof (long), 77
18717See \`config.log' for more details." >&2;}
18718 { (exit 1); exit 1; }; }
18719fi
ac1cb8d3 18720rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18721fi
18722fi
18723rm -f conftest.val
18724else
18725 ac_cv_sizeof_long=0
18726fi
18727fi
18728echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18729echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18730cat >>confdefs.h <<_ACEOF
18731#define SIZEOF_LONG $ac_cv_sizeof_long
18732_ACEOF
18733
18734
18735echo "$as_me:$LINENO: checking for size_t" >&5
18736echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18737if test "${ac_cv_type_size_t+set}" = set; then
18738 echo $ECHO_N "(cached) $ECHO_C" >&6
18739else
18740 cat >conftest.$ac_ext <<_ACEOF
18741/* confdefs.h. */
18742_ACEOF
18743cat confdefs.h >>conftest.$ac_ext
18744cat >>conftest.$ac_ext <<_ACEOF
18745/* end confdefs.h. */
18746$ac_includes_default
18747int
18748main ()
18749{
18750if ((size_t *) 0)
18751 return 0;
18752if (sizeof (size_t))
18753 return 0;
18754 ;
18755 return 0;
18756}
18757_ACEOF
18758rm -f conftest.$ac_objext
18759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18760 (eval $ac_compile) 2>conftest.er1
a848cd7e 18761 ac_status=$?
ac1cb8d3
VS
18762 grep -v '^ *+' conftest.er1 >conftest.err
18763 rm -f conftest.er1
18764 cat conftest.err >&5
a848cd7e
SC
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } &&
5ff751d6 18767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18769 (eval $ac_try) 2>&5
18770 ac_status=$?
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; } &&
18773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18775 (eval $ac_try) 2>&5
18776 ac_status=$?
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; }; then
18779 ac_cv_type_size_t=yes
18780else
18781 echo "$as_me: failed program was:" >&5
18782sed 's/^/| /' conftest.$ac_ext >&5
18783
18784ac_cv_type_size_t=no
18785fi
ac1cb8d3 18786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18787fi
18788echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18789echo "${ECHO_T}$ac_cv_type_size_t" >&6
18790
18791echo "$as_me:$LINENO: checking size of size_t" >&5
18792echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18793if test "${ac_cv_sizeof_size_t+set}" = set; then
18794 echo $ECHO_N "(cached) $ECHO_C" >&6
18795else
18796 if test "$ac_cv_type_size_t" = yes; then
18797 # The cast to unsigned long works around a bug in the HP C Compiler
18798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18800 # This bug is HP SR number 8606223364.
18801 if test "$cross_compiling" = yes; then
18802 # Depending upon the size, compute the lo and hi bounds.
18803cat >conftest.$ac_ext <<_ACEOF
18804/* confdefs.h. */
18805_ACEOF
18806cat confdefs.h >>conftest.$ac_ext
18807cat >>conftest.$ac_ext <<_ACEOF
18808/* end confdefs.h. */
18809$ac_includes_default
18810int
18811main ()
18812{
18813static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18814test_array [0] = 0
18815
18816 ;
18817 return 0;
18818}
18819_ACEOF
18820rm -f conftest.$ac_objext
18821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18822 (eval $ac_compile) 2>conftest.er1
a848cd7e 18823 ac_status=$?
ac1cb8d3
VS
18824 grep -v '^ *+' conftest.er1 >conftest.err
18825 rm -f conftest.er1
18826 cat conftest.err >&5
a848cd7e
SC
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); } &&
5ff751d6 18829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18831 (eval $ac_try) 2>&5
18832 ac_status=$?
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); }; } &&
18835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; }; then
18841 ac_lo=0 ac_mid=0
18842 while :; do
18843 cat >conftest.$ac_ext <<_ACEOF
18844/* confdefs.h. */
18845_ACEOF
18846cat confdefs.h >>conftest.$ac_ext
18847cat >>conftest.$ac_ext <<_ACEOF
18848/* end confdefs.h. */
18849$ac_includes_default
18850int
18851main ()
18852{
18853static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18854test_array [0] = 0
18855
18856 ;
18857 return 0;
18858}
18859_ACEOF
18860rm -f conftest.$ac_objext
18861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18862 (eval $ac_compile) 2>conftest.er1
a848cd7e 18863 ac_status=$?
ac1cb8d3
VS
18864 grep -v '^ *+' conftest.er1 >conftest.err
18865 rm -f conftest.er1
18866 cat conftest.err >&5
a848cd7e
SC
18867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18868 (exit $ac_status); } &&
5ff751d6 18869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18871 (eval $ac_try) 2>&5
18872 ac_status=$?
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); }; } &&
18875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18878 ac_status=$?
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18881 ac_hi=$ac_mid; break
18882else
18883 echo "$as_me: failed program was:" >&5
18884sed 's/^/| /' conftest.$ac_ext >&5
18885
18886ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18887 if test $ac_lo -le $ac_mid; then
18888 ac_lo= ac_hi=
18889 break
18890 fi
18891 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18892fi
ac1cb8d3 18893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18894 done
18895else
18896 echo "$as_me: failed program was:" >&5
18897sed 's/^/| /' conftest.$ac_ext >&5
18898
18899cat >conftest.$ac_ext <<_ACEOF
18900/* confdefs.h. */
18901_ACEOF
18902cat confdefs.h >>conftest.$ac_ext
18903cat >>conftest.$ac_ext <<_ACEOF
18904/* end confdefs.h. */
18905$ac_includes_default
18906int
18907main ()
18908{
18909static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18910test_array [0] = 0
18911
18912 ;
18913 return 0;
18914}
18915_ACEOF
18916rm -f conftest.$ac_objext
18917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18918 (eval $ac_compile) 2>conftest.er1
a848cd7e 18919 ac_status=$?
ac1cb8d3
VS
18920 grep -v '^ *+' conftest.er1 >conftest.err
18921 rm -f conftest.er1
18922 cat conftest.err >&5
a848cd7e
SC
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } &&
5ff751d6 18925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; } &&
18931 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18933 (eval $ac_try) 2>&5
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936 (exit $ac_status); }; }; then
18937 ac_hi=-1 ac_mid=-1
18938 while :; do
18939 cat >conftest.$ac_ext <<_ACEOF
18940/* confdefs.h. */
18941_ACEOF
18942cat confdefs.h >>conftest.$ac_ext
18943cat >>conftest.$ac_ext <<_ACEOF
18944/* end confdefs.h. */
18945$ac_includes_default
18946int
18947main ()
18948{
18949static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18950test_array [0] = 0
18951
18952 ;
18953 return 0;
18954}
18955_ACEOF
18956rm -f conftest.$ac_objext
18957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18958 (eval $ac_compile) 2>conftest.er1
a848cd7e 18959 ac_status=$?
ac1cb8d3
VS
18960 grep -v '^ *+' conftest.er1 >conftest.err
18961 rm -f conftest.er1
18962 cat conftest.err >&5
a848cd7e
SC
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); } &&
5ff751d6 18965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; } &&
18971 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18973 (eval $ac_try) 2>&5
18974 ac_status=$?
18975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); }; }; then
18977 ac_lo=$ac_mid; break
18978else
18979 echo "$as_me: failed program was:" >&5
18980sed 's/^/| /' conftest.$ac_ext >&5
18981
18982ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18983 if test $ac_mid -le $ac_hi; then
18984 ac_lo= ac_hi=
18985 break
18986 fi
18987 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18988fi
ac1cb8d3 18989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18990 done
18991else
18992 echo "$as_me: failed program was:" >&5
18993sed 's/^/| /' conftest.$ac_ext >&5
18994
18995ac_lo= ac_hi=
18996fi
ac1cb8d3 18997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18998fi
ac1cb8d3 18999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19000# Binary search between lo and hi bounds.
19001while test "x$ac_lo" != "x$ac_hi"; do
19002 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19003 cat >conftest.$ac_ext <<_ACEOF
19004/* confdefs.h. */
19005_ACEOF
19006cat confdefs.h >>conftest.$ac_ext
19007cat >>conftest.$ac_ext <<_ACEOF
19008/* end confdefs.h. */
19009$ac_includes_default
19010int
19011main ()
19012{
19013static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19014test_array [0] = 0
19015
19016 ;
19017 return 0;
19018}
19019_ACEOF
19020rm -f conftest.$ac_objext
19021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19022 (eval $ac_compile) 2>conftest.er1
a848cd7e 19023 ac_status=$?
ac1cb8d3
VS
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
a848cd7e
SC
19027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } &&
5ff751d6 19029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031 (eval $ac_try) 2>&5
19032 ac_status=$?
19033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); }; } &&
19035 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19037 (eval $ac_try) 2>&5
19038 ac_status=$?
19039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040 (exit $ac_status); }; }; then
19041 ac_hi=$ac_mid
19042else
19043 echo "$as_me: failed program was:" >&5
19044sed 's/^/| /' conftest.$ac_ext >&5
19045
19046ac_lo=`expr '(' $ac_mid ')' + 1`
19047fi
ac1cb8d3 19048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19049done
19050case $ac_lo in
19051?*) ac_cv_sizeof_size_t=$ac_lo;;
19052'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19053See \`config.log' for more details." >&5
19054echo "$as_me: error: cannot compute sizeof (size_t), 77
19055See \`config.log' for more details." >&2;}
19056 { (exit 1); exit 1; }; } ;;
19057esac
19058else
19059 if test "$cross_compiling" = yes; then
5ff751d6
VZ
19060 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19061echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19062 { (exit 1); exit 1; }; }
19063else
19064 cat >conftest.$ac_ext <<_ACEOF
19065/* confdefs.h. */
19066_ACEOF
19067cat confdefs.h >>conftest.$ac_ext
19068cat >>conftest.$ac_ext <<_ACEOF
19069/* end confdefs.h. */
19070$ac_includes_default
19071long longval () { return (long) (sizeof (size_t)); }
19072unsigned long ulongval () { return (long) (sizeof (size_t)); }
19073#include <stdio.h>
19074#include <stdlib.h>
19075int
19076main ()
19077{
19078
19079 FILE *f = fopen ("conftest.val", "w");
19080 if (! f)
19081 exit (1);
19082 if (((long) (sizeof (size_t))) < 0)
19083 {
19084 long i = longval ();
19085 if (i != ((long) (sizeof (size_t))))
19086 exit (1);
19087 fprintf (f, "%ld\n", i);
19088 }
19089 else
19090 {
19091 unsigned long i = ulongval ();
19092 if (i != ((long) (sizeof (size_t))))
19093 exit (1);
19094 fprintf (f, "%lu\n", i);
19095 }
19096 exit (ferror (f) || fclose (f) != 0);
19097
19098 ;
19099 return 0;
19100}
19101_ACEOF
19102rm -f conftest$ac_exeext
19103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19104 (eval $ac_link) 2>&5
19105 ac_status=$?
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 ac_cv_sizeof_size_t=`cat conftest.val`
19114else
19115 echo "$as_me: program exited with status $ac_status" >&5
19116echo "$as_me: failed program was:" >&5
19117sed 's/^/| /' conftest.$ac_ext >&5
19118
19119( exit $ac_status )
19120{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19121See \`config.log' for more details." >&5
19122echo "$as_me: error: cannot compute sizeof (size_t), 77
19123See \`config.log' for more details." >&2;}
19124 { (exit 1); exit 1; }; }
19125fi
ac1cb8d3 19126rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19127fi
19128fi
19129rm -f conftest.val
19130else
19131 ac_cv_sizeof_size_t=0
19132fi
19133fi
19134echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19135echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19136cat >>confdefs.h <<_ACEOF
19137#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19138_ACEOF
19139
19140
19141
19142case "${host}" in
19143 arm-*-linux* )
19144 echo "$as_me:$LINENO: checking for long long" >&5
19145echo $ECHO_N "checking for long long... $ECHO_C" >&6
19146if test "${ac_cv_type_long_long+set}" = set; then
19147 echo $ECHO_N "(cached) $ECHO_C" >&6
19148else
19149 cat >conftest.$ac_ext <<_ACEOF
19150/* confdefs.h. */
19151_ACEOF
19152cat confdefs.h >>conftest.$ac_ext
19153cat >>conftest.$ac_ext <<_ACEOF
19154/* end confdefs.h. */
19155$ac_includes_default
19156int
19157main ()
19158{
19159if ((long long *) 0)
19160 return 0;
19161if (sizeof (long long))
19162 return 0;
19163 ;
19164 return 0;
19165}
19166_ACEOF
19167rm -f conftest.$ac_objext
19168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19169 (eval $ac_compile) 2>conftest.er1
a848cd7e 19170 ac_status=$?
ac1cb8d3
VS
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
a848cd7e
SC
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } &&
5ff751d6 19176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19179 ac_status=$?
19180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; } &&
19182 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19184 (eval $ac_try) 2>&5
19185 ac_status=$?
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; }; then
19188 ac_cv_type_long_long=yes
19189else
19190 echo "$as_me: failed program was:" >&5
19191sed 's/^/| /' conftest.$ac_ext >&5
19192
19193ac_cv_type_long_long=no
19194fi
ac1cb8d3 19195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19196fi
19197echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19198echo "${ECHO_T}$ac_cv_type_long_long" >&6
19199
19200echo "$as_me:$LINENO: checking size of long long" >&5
19201echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19202if test "${ac_cv_sizeof_long_long+set}" = set; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19204else
19205 if test "$ac_cv_type_long_long" = yes; then
19206 # The cast to unsigned long works around a bug in the HP C Compiler
19207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19209 # This bug is HP SR number 8606223364.
19210 if test "$cross_compiling" = yes; then
19211 # Depending upon the size, compute the lo and hi bounds.
19212cat >conftest.$ac_ext <<_ACEOF
19213/* confdefs.h. */
19214_ACEOF
19215cat confdefs.h >>conftest.$ac_ext
19216cat >>conftest.$ac_ext <<_ACEOF
19217/* end confdefs.h. */
19218$ac_includes_default
19219int
19220main ()
19221{
19222static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19223test_array [0] = 0
19224
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext
19230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19231 (eval $ac_compile) 2>conftest.er1
a848cd7e 19232 ac_status=$?
ac1cb8d3
VS
19233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
a848cd7e
SC
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
5ff751d6 19238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19240 (eval $ac_try) 2>&5
19241 ac_status=$?
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); }; } &&
19244 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19246 (eval $ac_try) 2>&5
19247 ac_status=$?
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); }; }; then
19250 ac_lo=0 ac_mid=0
19251 while :; do
19252 cat >conftest.$ac_ext <<_ACEOF
19253/* confdefs.h. */
19254_ACEOF
19255cat confdefs.h >>conftest.$ac_ext
19256cat >>conftest.$ac_ext <<_ACEOF
19257/* end confdefs.h. */
19258$ac_includes_default
19259int
19260main ()
19261{
19262static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19263test_array [0] = 0
19264
19265 ;
19266 return 0;
19267}
19268_ACEOF
19269rm -f conftest.$ac_objext
19270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19271 (eval $ac_compile) 2>conftest.er1
a848cd7e 19272 ac_status=$?
ac1cb8d3
VS
19273 grep -v '^ *+' conftest.er1 >conftest.err
19274 rm -f conftest.er1
19275 cat conftest.err >&5
a848cd7e
SC
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
5ff751d6 19278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19280 (eval $ac_try) 2>&5
19281 ac_status=$?
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); }; } &&
19284 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; }; then
19290 ac_hi=$ac_mid; break
19291else
19292 echo "$as_me: failed program was:" >&5
19293sed 's/^/| /' conftest.$ac_ext >&5
19294
19295ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19296 if test $ac_lo -le $ac_mid; then
19297 ac_lo= ac_hi=
19298 break
19299 fi
19300 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19301fi
ac1cb8d3 19302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19303 done
19304else
19305 echo "$as_me: failed program was:" >&5
19306sed 's/^/| /' conftest.$ac_ext >&5
19307
19308cat >conftest.$ac_ext <<_ACEOF
19309/* confdefs.h. */
19310_ACEOF
19311cat confdefs.h >>conftest.$ac_ext
19312cat >>conftest.$ac_ext <<_ACEOF
19313/* end confdefs.h. */
19314$ac_includes_default
19315int
19316main ()
19317{
19318static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19319test_array [0] = 0
19320
19321 ;
19322 return 0;
19323}
19324_ACEOF
19325rm -f conftest.$ac_objext
19326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19327 (eval $ac_compile) 2>conftest.er1
a848cd7e 19328 ac_status=$?
ac1cb8d3
VS
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
a848cd7e
SC
19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } &&
5ff751d6 19334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 ac_hi=-1 ac_mid=-1
19347 while :; do
19348 cat >conftest.$ac_ext <<_ACEOF
19349/* confdefs.h. */
19350_ACEOF
19351cat confdefs.h >>conftest.$ac_ext
19352cat >>conftest.$ac_ext <<_ACEOF
19353/* end confdefs.h. */
19354$ac_includes_default
19355int
19356main ()
19357{
19358static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19359test_array [0] = 0
19360
19361 ;
19362 return 0;
19363}
19364_ACEOF
19365rm -f conftest.$ac_objext
19366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19367 (eval $ac_compile) 2>conftest.er1
a848cd7e 19368 ac_status=$?
ac1cb8d3
VS
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
a848cd7e
SC
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } &&
5ff751d6 19374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; } &&
19380 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 ac_lo=$ac_mid; break
19387else
19388 echo "$as_me: failed program was:" >&5
19389sed 's/^/| /' conftest.$ac_ext >&5
19390
19391ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19392 if test $ac_mid -le $ac_hi; then
19393 ac_lo= ac_hi=
19394 break
19395 fi
19396 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19397fi
ac1cb8d3 19398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19399 done
19400else
19401 echo "$as_me: failed program was:" >&5
19402sed 's/^/| /' conftest.$ac_ext >&5
19403
19404ac_lo= ac_hi=
19405fi
ac1cb8d3 19406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19407fi
ac1cb8d3 19408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19409# Binary search between lo and hi bounds.
19410while test "x$ac_lo" != "x$ac_hi"; do
19411 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19412 cat >conftest.$ac_ext <<_ACEOF
19413/* confdefs.h. */
19414_ACEOF
19415cat confdefs.h >>conftest.$ac_ext
19416cat >>conftest.$ac_ext <<_ACEOF
19417/* end confdefs.h. */
19418$ac_includes_default
19419int
19420main ()
19421{
19422static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19423test_array [0] = 0
19424
19425 ;
19426 return 0;
19427}
19428_ACEOF
19429rm -f conftest.$ac_objext
19430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19431 (eval $ac_compile) 2>conftest.er1
a848cd7e 19432 ac_status=$?
ac1cb8d3
VS
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
a848cd7e
SC
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
5ff751d6 19438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19441 ac_status=$?
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; } &&
19444 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
19450 ac_hi=$ac_mid
19451else
19452 echo "$as_me: failed program was:" >&5
19453sed 's/^/| /' conftest.$ac_ext >&5
19454
19455ac_lo=`expr '(' $ac_mid ')' + 1`
19456fi
ac1cb8d3 19457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19458done
19459case $ac_lo in
19460?*) ac_cv_sizeof_long_long=$ac_lo;;
19461'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19462See \`config.log' for more details." >&5
19463echo "$as_me: error: cannot compute sizeof (long long), 77
19464See \`config.log' for more details." >&2;}
19465 { (exit 1); exit 1; }; } ;;
19466esac
19467else
19468 if test "$cross_compiling" = yes; then
5ff751d6
VZ
19469 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19470echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19471 { (exit 1); exit 1; }; }
19472else
19473 cat >conftest.$ac_ext <<_ACEOF
19474/* confdefs.h. */
19475_ACEOF
19476cat confdefs.h >>conftest.$ac_ext
19477cat >>conftest.$ac_ext <<_ACEOF
19478/* end confdefs.h. */
19479$ac_includes_default
19480long longval () { return (long) (sizeof (long long)); }
19481unsigned long ulongval () { return (long) (sizeof (long long)); }
19482#include <stdio.h>
19483#include <stdlib.h>
19484int
19485main ()
19486{
19487
19488 FILE *f = fopen ("conftest.val", "w");
19489 if (! f)
19490 exit (1);
19491 if (((long) (sizeof (long long))) < 0)
19492 {
19493 long i = longval ();
19494 if (i != ((long) (sizeof (long long))))
19495 exit (1);
19496 fprintf (f, "%ld\n", i);
19497 }
19498 else
19499 {
19500 unsigned long i = ulongval ();
19501 if (i != ((long) (sizeof (long long))))
19502 exit (1);
19503 fprintf (f, "%lu\n", i);
19504 }
19505 exit (ferror (f) || fclose (f) != 0);
19506
19507 ;
19508 return 0;
19509}
19510_ACEOF
19511rm -f conftest$ac_exeext
19512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19513 (eval $ac_link) 2>&5
19514 ac_status=$?
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19519 ac_status=$?
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; }; then
19522 ac_cv_sizeof_long_long=`cat conftest.val`
19523else
19524 echo "$as_me: program exited with status $ac_status" >&5
19525echo "$as_me: failed program was:" >&5
19526sed 's/^/| /' conftest.$ac_ext >&5
19527
19528( exit $ac_status )
19529{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19530See \`config.log' for more details." >&5
19531echo "$as_me: error: cannot compute sizeof (long long), 77
19532See \`config.log' for more details." >&2;}
19533 { (exit 1); exit 1; }; }
19534fi
ac1cb8d3 19535rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19536fi
19537fi
19538rm -f conftest.val
19539else
19540 ac_cv_sizeof_long_long=0
19541fi
19542fi
19543echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19544echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19545cat >>confdefs.h <<_ACEOF
19546#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19547_ACEOF
19548
19549
19550 ;;
19551 *-hp-hpux* )
19552 echo "$as_me:$LINENO: checking for long long" >&5
19553echo $ECHO_N "checking for long long... $ECHO_C" >&6
19554if test "${ac_cv_type_long_long+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556else
19557 cat >conftest.$ac_ext <<_ACEOF
19558/* confdefs.h. */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h. */
19563$ac_includes_default
19564int
19565main ()
19566{
19567if ((long long *) 0)
19568 return 0;
19569if (sizeof (long long))
19570 return 0;
19571 ;
19572 return 0;
19573}
19574_ACEOF
19575rm -f conftest.$ac_objext
19576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19577 (eval $ac_compile) 2>conftest.er1
a848cd7e 19578 ac_status=$?
ac1cb8d3
VS
19579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
a848cd7e
SC
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
5ff751d6 19584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 ac_cv_type_long_long=yes
19597else
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601ac_cv_type_long_long=no
19602fi
ac1cb8d3 19603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19604fi
19605echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19606echo "${ECHO_T}$ac_cv_type_long_long" >&6
19607
19608echo "$as_me:$LINENO: checking size of long long" >&5
19609echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19610if test "${ac_cv_sizeof_long_long+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19612else
19613 if test "$ac_cv_type_long_long" = yes; then
19614 # The cast to unsigned long works around a bug in the HP C Compiler
19615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19617 # This bug is HP SR number 8606223364.
19618 if test "$cross_compiling" = yes; then
19619 # Depending upon the size, compute the lo and hi bounds.
19620cat >conftest.$ac_ext <<_ACEOF
19621/* confdefs.h. */
19622_ACEOF
19623cat confdefs.h >>conftest.$ac_ext
19624cat >>conftest.$ac_ext <<_ACEOF
19625/* end confdefs.h. */
19626$ac_includes_default
19627int
19628main ()
19629{
19630static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19631test_array [0] = 0
19632
19633 ;
19634 return 0;
19635}
19636_ACEOF
19637rm -f conftest.$ac_objext
19638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19639 (eval $ac_compile) 2>conftest.er1
a848cd7e 19640 ac_status=$?
ac1cb8d3
VS
19641 grep -v '^ *+' conftest.er1 >conftest.err
19642 rm -f conftest.er1
19643 cat conftest.err >&5
a848cd7e
SC
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } &&
5ff751d6 19646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19648 (eval $ac_try) 2>&5
19649 ac_status=$?
19650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19651 (exit $ac_status); }; } &&
19652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19654 (eval $ac_try) 2>&5
19655 ac_status=$?
19656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19657 (exit $ac_status); }; }; then
19658 ac_lo=0 ac_mid=0
19659 while :; do
19660 cat >conftest.$ac_ext <<_ACEOF
19661/* confdefs.h. */
19662_ACEOF
19663cat confdefs.h >>conftest.$ac_ext
19664cat >>conftest.$ac_ext <<_ACEOF
19665/* end confdefs.h. */
19666$ac_includes_default
19667int
19668main ()
19669{
19670static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19671test_array [0] = 0
19672
19673 ;
19674 return 0;
19675}
19676_ACEOF
19677rm -f conftest.$ac_objext
19678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19679 (eval $ac_compile) 2>conftest.er1
a848cd7e 19680 ac_status=$?
ac1cb8d3
VS
19681 grep -v '^ *+' conftest.er1 >conftest.err
19682 rm -f conftest.er1
19683 cat conftest.err >&5
a848cd7e
SC
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } &&
5ff751d6 19686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; } &&
19692 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19694 (eval $ac_try) 2>&5
19695 ac_status=$?
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 ac_hi=$ac_mid; break
19699else
19700 echo "$as_me: failed program was:" >&5
19701sed 's/^/| /' conftest.$ac_ext >&5
19702
19703ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19704 if test $ac_lo -le $ac_mid; then
19705 ac_lo= ac_hi=
19706 break
19707 fi
19708 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19709fi
ac1cb8d3 19710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19711 done
19712else
19713 echo "$as_me: failed program was:" >&5
19714sed 's/^/| /' conftest.$ac_ext >&5
19715
19716cat >conftest.$ac_ext <<_ACEOF
19717/* confdefs.h. */
19718_ACEOF
19719cat confdefs.h >>conftest.$ac_ext
19720cat >>conftest.$ac_ext <<_ACEOF
19721/* end confdefs.h. */
19722$ac_includes_default
19723int
19724main ()
19725{
19726static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19727test_array [0] = 0
19728
19729 ;
19730 return 0;
19731}
19732_ACEOF
19733rm -f conftest.$ac_objext
19734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19735 (eval $ac_compile) 2>conftest.er1
a848cd7e 19736 ac_status=$?
ac1cb8d3
VS
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
a848cd7e
SC
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
5ff751d6 19742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; } &&
19748 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19751 ac_status=$?
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_hi=-1 ac_mid=-1
19755 while :; do
19756 cat >conftest.$ac_ext <<_ACEOF
19757/* confdefs.h. */
19758_ACEOF
19759cat confdefs.h >>conftest.$ac_ext
19760cat >>conftest.$ac_ext <<_ACEOF
19761/* end confdefs.h. */
19762$ac_includes_default
19763int
19764main ()
19765{
19766static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19767test_array [0] = 0
19768
19769 ;
19770 return 0;
19771}
19772_ACEOF
19773rm -f conftest.$ac_objext
19774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19775 (eval $ac_compile) 2>conftest.er1
a848cd7e 19776 ac_status=$?
ac1cb8d3
VS
19777 grep -v '^ *+' conftest.er1 >conftest.err
19778 rm -f conftest.er1
19779 cat conftest.err >&5
a848cd7e
SC
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } &&
5ff751d6 19782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; } &&
19788 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; }; then
19794 ac_lo=$ac_mid; break
19795else
19796 echo "$as_me: failed program was:" >&5
19797sed 's/^/| /' conftest.$ac_ext >&5
19798
19799ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19800 if test $ac_mid -le $ac_hi; then
19801 ac_lo= ac_hi=
19802 break
19803 fi
19804 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19805fi
ac1cb8d3 19806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19807 done
19808else
19809 echo "$as_me: failed program was:" >&5
19810sed 's/^/| /' conftest.$ac_ext >&5
19811
19812ac_lo= ac_hi=
19813fi
ac1cb8d3 19814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19815fi
ac1cb8d3 19816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19817# Binary search between lo and hi bounds.
19818while test "x$ac_lo" != "x$ac_hi"; do
19819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19820 cat >conftest.$ac_ext <<_ACEOF
19821/* confdefs.h. */
19822_ACEOF
19823cat confdefs.h >>conftest.$ac_ext
19824cat >>conftest.$ac_ext <<_ACEOF
19825/* end confdefs.h. */
19826$ac_includes_default
19827int
19828main ()
19829{
19830static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19831test_array [0] = 0
19832
19833 ;
19834 return 0;
19835}
19836_ACEOF
19837rm -f conftest.$ac_objext
19838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19839 (eval $ac_compile) 2>conftest.er1
a848cd7e 19840 ac_status=$?
ac1cb8d3
VS
19841 grep -v '^ *+' conftest.er1 >conftest.err
19842 rm -f conftest.er1
19843 cat conftest.err >&5
a848cd7e
SC
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } &&
5ff751d6 19846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19848 (eval $ac_try) 2>&5
19849 ac_status=$?
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); }; } &&
19852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19855 ac_status=$?
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; }; then
19858 ac_hi=$ac_mid
19859else
19860 echo "$as_me: failed program was:" >&5
19861sed 's/^/| /' conftest.$ac_ext >&5
19862
19863ac_lo=`expr '(' $ac_mid ')' + 1`
19864fi
ac1cb8d3 19865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19866done
19867case $ac_lo in
19868?*) ac_cv_sizeof_long_long=$ac_lo;;
19869'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19870See \`config.log' for more details." >&5
19871echo "$as_me: error: cannot compute sizeof (long long), 77
19872See \`config.log' for more details." >&2;}
19873 { (exit 1); exit 1; }; } ;;
19874esac
19875else
19876 if test "$cross_compiling" = yes; then
5ff751d6
VZ
19877 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19878echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19879 { (exit 1); exit 1; }; }
19880else
19881 cat >conftest.$ac_ext <<_ACEOF
19882/* confdefs.h. */
19883_ACEOF
19884cat confdefs.h >>conftest.$ac_ext
19885cat >>conftest.$ac_ext <<_ACEOF
19886/* end confdefs.h. */
19887$ac_includes_default
19888long longval () { return (long) (sizeof (long long)); }
19889unsigned long ulongval () { return (long) (sizeof (long long)); }
19890#include <stdio.h>
19891#include <stdlib.h>
19892int
19893main ()
19894{
19895
19896 FILE *f = fopen ("conftest.val", "w");
19897 if (! f)
19898 exit (1);
19899 if (((long) (sizeof (long long))) < 0)
19900 {
19901 long i = longval ();
19902 if (i != ((long) (sizeof (long long))))
19903 exit (1);
19904 fprintf (f, "%ld\n", i);
19905 }
19906 else
19907 {
19908 unsigned long i = ulongval ();
19909 if (i != ((long) (sizeof (long long))))
19910 exit (1);
19911 fprintf (f, "%lu\n", i);
19912 }
19913 exit (ferror (f) || fclose (f) != 0);
19914
19915 ;
19916 return 0;
19917}
19918_ACEOF
19919rm -f conftest$ac_exeext
19920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19921 (eval $ac_link) 2>&5
19922 ac_status=$?
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 ac_cv_sizeof_long_long=`cat conftest.val`
19931else
19932 echo "$as_me: program exited with status $ac_status" >&5
19933echo "$as_me: failed program was:" >&5
19934sed 's/^/| /' conftest.$ac_ext >&5
19935
19936( exit $ac_status )
19937{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19938See \`config.log' for more details." >&5
19939echo "$as_me: error: cannot compute sizeof (long long), 77
19940See \`config.log' for more details." >&2;}
19941 { (exit 1); exit 1; }; }
19942fi
ac1cb8d3 19943rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19944fi
19945fi
19946rm -f conftest.val
19947else
19948 ac_cv_sizeof_long_long=0
19949fi
19950fi
19951echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19952echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19953cat >>confdefs.h <<_ACEOF
19954#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19955_ACEOF
19956
19957
19958 if test "$ac_cv_sizeof_long_long" != "0"; then
c92ad099 19959 CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
a848cd7e
SC
19960 fi
19961 ;;
19962 * )
19963 echo "$as_me:$LINENO: checking for long long" >&5
19964echo $ECHO_N "checking for long long... $ECHO_C" >&6
19965if test "${ac_cv_type_long_long+set}" = set; then
19966 echo $ECHO_N "(cached) $ECHO_C" >&6
19967else
19968 cat >conftest.$ac_ext <<_ACEOF
19969/* confdefs.h. */
19970_ACEOF
19971cat confdefs.h >>conftest.$ac_ext
19972cat >>conftest.$ac_ext <<_ACEOF
19973/* end confdefs.h. */
19974$ac_includes_default
19975int
19976main ()
19977{
19978if ((long long *) 0)
19979 return 0;
19980if (sizeof (long long))
19981 return 0;
19982 ;
19983 return 0;
19984}
19985_ACEOF
19986rm -f conftest.$ac_objext
19987if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19988 (eval $ac_compile) 2>conftest.er1
a848cd7e 19989 ac_status=$?
ac1cb8d3
VS
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
a848cd7e
SC
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } &&
5ff751d6 19995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 ac_cv_type_long_long=yes
20008else
20009 echo "$as_me: failed program was:" >&5
20010sed 's/^/| /' conftest.$ac_ext >&5
20011
20012ac_cv_type_long_long=no
20013fi
ac1cb8d3 20014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20015fi
20016echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20017echo "${ECHO_T}$ac_cv_type_long_long" >&6
20018
20019echo "$as_me:$LINENO: checking size of long long" >&5
20020echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20021if test "${ac_cv_sizeof_long_long+set}" = set; then
20022 echo $ECHO_N "(cached) $ECHO_C" >&6
20023else
20024 if test "$ac_cv_type_long_long" = yes; then
20025 # The cast to unsigned long works around a bug in the HP C Compiler
20026 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20027 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20028 # This bug is HP SR number 8606223364.
20029 if test "$cross_compiling" = yes; then
20030 # Depending upon the size, compute the lo and hi bounds.
20031cat >conftest.$ac_ext <<_ACEOF
20032/* confdefs.h. */
20033_ACEOF
20034cat confdefs.h >>conftest.$ac_ext
20035cat >>conftest.$ac_ext <<_ACEOF
20036/* end confdefs.h. */
20037$ac_includes_default
20038int
20039main ()
20040{
20041static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20042test_array [0] = 0
20043
20044 ;
20045 return 0;
20046}
20047_ACEOF
20048rm -f conftest.$ac_objext
20049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20050 (eval $ac_compile) 2>conftest.er1
a848cd7e 20051 ac_status=$?
ac1cb8d3
VS
20052 grep -v '^ *+' conftest.er1 >conftest.err
20053 rm -f conftest.er1
20054 cat conftest.err >&5
a848cd7e
SC
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } &&
5ff751d6 20057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20060 ac_status=$?
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; } &&
20063 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20065 (eval $ac_try) 2>&5
20066 ac_status=$?
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); }; }; then
20069 ac_lo=0 ac_mid=0
20070 while :; do
20071 cat >conftest.$ac_ext <<_ACEOF
20072/* confdefs.h. */
20073_ACEOF
20074cat confdefs.h >>conftest.$ac_ext
20075cat >>conftest.$ac_ext <<_ACEOF
20076/* end confdefs.h. */
20077$ac_includes_default
20078int
20079main ()
20080{
20081static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20082test_array [0] = 0
20083
20084 ;
20085 return 0;
20086}
20087_ACEOF
20088rm -f conftest.$ac_objext
20089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20090 (eval $ac_compile) 2>conftest.er1
a848cd7e 20091 ac_status=$?
ac1cb8d3
VS
20092 grep -v '^ *+' conftest.er1 >conftest.err
20093 rm -f conftest.er1
20094 cat conftest.err >&5
a848cd7e
SC
20095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20096 (exit $ac_status); } &&
5ff751d6 20097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20099 (eval $ac_try) 2>&5
20100 ac_status=$?
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); }; } &&
20103 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105 (eval $ac_try) 2>&5
20106 ac_status=$?
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; }; then
20109 ac_hi=$ac_mid; break
20110else
20111 echo "$as_me: failed program was:" >&5
20112sed 's/^/| /' conftest.$ac_ext >&5
20113
20114ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20115 if test $ac_lo -le $ac_mid; then
20116 ac_lo= ac_hi=
20117 break
20118 fi
20119 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20120fi
ac1cb8d3 20121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20122 done
20123else
20124 echo "$as_me: failed program was:" >&5
20125sed 's/^/| /' conftest.$ac_ext >&5
20126
20127cat >conftest.$ac_ext <<_ACEOF
20128/* confdefs.h. */
20129_ACEOF
20130cat confdefs.h >>conftest.$ac_ext
20131cat >>conftest.$ac_ext <<_ACEOF
20132/* end confdefs.h. */
20133$ac_includes_default
20134int
20135main ()
20136{
20137static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20138test_array [0] = 0
20139
20140 ;
20141 return 0;
20142}
20143_ACEOF
20144rm -f conftest.$ac_objext
20145if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20146 (eval $ac_compile) 2>conftest.er1
a848cd7e 20147 ac_status=$?
ac1cb8d3
VS
20148 grep -v '^ *+' conftest.er1 >conftest.err
20149 rm -f conftest.er1
20150 cat conftest.err >&5
a848cd7e
SC
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } &&
5ff751d6 20153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20155 (eval $ac_try) 2>&5
20156 ac_status=$?
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); }; } &&
20159 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161 (eval $ac_try) 2>&5
20162 ac_status=$?
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; }; then
20165 ac_hi=-1 ac_mid=-1
20166 while :; do
20167 cat >conftest.$ac_ext <<_ACEOF
20168/* confdefs.h. */
20169_ACEOF
20170cat confdefs.h >>conftest.$ac_ext
20171cat >>conftest.$ac_ext <<_ACEOF
20172/* end confdefs.h. */
20173$ac_includes_default
20174int
20175main ()
20176{
20177static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20178test_array [0] = 0
20179
20180 ;
20181 return 0;
20182}
20183_ACEOF
20184rm -f conftest.$ac_objext
20185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20186 (eval $ac_compile) 2>conftest.er1
a848cd7e 20187 ac_status=$?
ac1cb8d3
VS
20188 grep -v '^ *+' conftest.er1 >conftest.err
20189 rm -f conftest.er1
20190 cat conftest.err >&5
a848cd7e
SC
20191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192 (exit $ac_status); } &&
5ff751d6 20193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20196 ac_status=$?
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20202 ac_status=$?
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 ac_lo=$ac_mid; break
20206else
20207 echo "$as_me: failed program was:" >&5
20208sed 's/^/| /' conftest.$ac_ext >&5
20209
20210ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20211 if test $ac_mid -le $ac_hi; then
20212 ac_lo= ac_hi=
20213 break
20214 fi
20215 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20216fi
ac1cb8d3 20217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20218 done
20219else
20220 echo "$as_me: failed program was:" >&5
20221sed 's/^/| /' conftest.$ac_ext >&5
20222
20223ac_lo= ac_hi=
20224fi
ac1cb8d3 20225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20226fi
ac1cb8d3 20227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20228# Binary search between lo and hi bounds.
20229while test "x$ac_lo" != "x$ac_hi"; do
20230 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20231 cat >conftest.$ac_ext <<_ACEOF
20232/* confdefs.h. */
20233_ACEOF
20234cat confdefs.h >>conftest.$ac_ext
20235cat >>conftest.$ac_ext <<_ACEOF
20236/* end confdefs.h. */
20237$ac_includes_default
20238int
20239main ()
20240{
20241static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20242test_array [0] = 0
20243
20244 ;
20245 return 0;
20246}
20247_ACEOF
20248rm -f conftest.$ac_objext
20249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20250 (eval $ac_compile) 2>conftest.er1
a848cd7e 20251 ac_status=$?
ac1cb8d3
VS
20252 grep -v '^ *+' conftest.er1 >conftest.err
20253 rm -f conftest.er1
20254 cat conftest.err >&5
a848cd7e
SC
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); } &&
5ff751d6 20257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20260 ac_status=$?
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } &&
20263 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20265 (eval $ac_try) 2>&5
20266 ac_status=$?
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); }; }; then
20269 ac_hi=$ac_mid
20270else
20271 echo "$as_me: failed program was:" >&5
20272sed 's/^/| /' conftest.$ac_ext >&5
20273
20274ac_lo=`expr '(' $ac_mid ')' + 1`
20275fi
ac1cb8d3 20276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20277done
20278case $ac_lo in
20279?*) ac_cv_sizeof_long_long=$ac_lo;;
20280'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20281See \`config.log' for more details." >&5
20282echo "$as_me: error: cannot compute sizeof (long long), 77
20283See \`config.log' for more details." >&2;}
20284 { (exit 1); exit 1; }; } ;;
20285esac
20286else
20287 if test "$cross_compiling" = yes; then
5ff751d6
VZ
20288 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20289echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20290 { (exit 1); exit 1; }; }
20291else
20292 cat >conftest.$ac_ext <<_ACEOF
20293/* confdefs.h. */
20294_ACEOF
20295cat confdefs.h >>conftest.$ac_ext
20296cat >>conftest.$ac_ext <<_ACEOF
20297/* end confdefs.h. */
20298$ac_includes_default
20299long longval () { return (long) (sizeof (long long)); }
20300unsigned long ulongval () { return (long) (sizeof (long long)); }
20301#include <stdio.h>
20302#include <stdlib.h>
20303int
20304main ()
20305{
20306
20307 FILE *f = fopen ("conftest.val", "w");
20308 if (! f)
20309 exit (1);
20310 if (((long) (sizeof (long long))) < 0)
20311 {
20312 long i = longval ();
20313 if (i != ((long) (sizeof (long long))))
20314 exit (1);
20315 fprintf (f, "%ld\n", i);
20316 }
20317 else
20318 {
20319 unsigned long i = ulongval ();
20320 if (i != ((long) (sizeof (long long))))
20321 exit (1);
20322 fprintf (f, "%lu\n", i);
20323 }
20324 exit (ferror (f) || fclose (f) != 0);
20325
20326 ;
20327 return 0;
20328}
20329_ACEOF
20330rm -f conftest$ac_exeext
20331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20332 (eval $ac_link) 2>&5
20333 ac_status=$?
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20338 ac_status=$?
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; }; then
20341 ac_cv_sizeof_long_long=`cat conftest.val`
20342else
20343 echo "$as_me: program exited with status $ac_status" >&5
20344echo "$as_me: failed program was:" >&5
20345sed 's/^/| /' conftest.$ac_ext >&5
20346
20347( exit $ac_status )
20348{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20349See \`config.log' for more details." >&5
20350echo "$as_me: error: cannot compute sizeof (long long), 77
20351See \`config.log' for more details." >&2;}
20352 { (exit 1); exit 1; }; }
20353fi
ac1cb8d3 20354rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20355fi
20356fi
20357rm -f conftest.val
20358else
20359 ac_cv_sizeof_long_long=0
20360fi
20361fi
20362echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20363echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20364cat >>confdefs.h <<_ACEOF
20365#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20366_ACEOF
20367
20368
20369esac
20370
238ecede
MW
20371echo "$as_me:$LINENO: checking for wchar_t" >&5
20372echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20373if test "${ac_cv_type_wchar_t+set}" = set; then
20374 echo $ECHO_N "(cached) $ECHO_C" >&6
20375else
20376 cat >conftest.$ac_ext <<_ACEOF
20377/* confdefs.h. */
20378_ACEOF
20379cat confdefs.h >>conftest.$ac_ext
20380cat >>conftest.$ac_ext <<_ACEOF
20381/* end confdefs.h. */
20382
83d8eb47
MW
20383 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20384 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20385 # error "fake wchar_t"
20386 #endif
20387 #ifdef HAVE_WCHAR_H
20388 # ifdef __CYGWIN__
20389 # include <stddef.h>
20390 # endif
20391 # include <wchar.h>
20392 #endif
20393 #ifdef HAVE_STDLIB_H
20394 # include <stdlib.h>
20395 #endif
20396 #include <stdio.h>
20397
20398
20399
20400int
20401main ()
20402{
20403if ((wchar_t *) 0)
20404 return 0;
20405if (sizeof (wchar_t))
20406 return 0;
20407 ;
20408 return 0;
20409}
20410_ACEOF
20411rm -f conftest.$ac_objext
20412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20413 (eval $ac_compile) 2>conftest.er1
20414 ac_status=$?
20415 grep -v '^ *+' conftest.er1 >conftest.err
20416 rm -f conftest.er1
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } &&
5ff751d6 20420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; } &&
20426 { ac_try='test -s conftest.$ac_objext'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20432 ac_cv_type_wchar_t=yes
20433else
20434 echo "$as_me: failed program was:" >&5
20435sed 's/^/| /' conftest.$ac_ext >&5
20436
20437ac_cv_type_wchar_t=no
20438fi
20439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20440fi
20441echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20442echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20443
a848cd7e
SC
20444echo "$as_me:$LINENO: checking size of wchar_t" >&5
20445echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20446if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20448else
238ecede
MW
20449 if test "$ac_cv_type_wchar_t" = yes; then
20450 # The cast to unsigned long works around a bug in the HP C Compiler
20451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20453 # This bug is HP SR number 8606223364.
20454 if test "$cross_compiling" = yes; then
20455 # Depending upon the size, compute the lo and hi bounds.
20456cat >conftest.$ac_ext <<_ACEOF
20457/* confdefs.h. */
20458_ACEOF
20459cat confdefs.h >>conftest.$ac_ext
20460cat >>conftest.$ac_ext <<_ACEOF
20461/* end confdefs.h. */
20462
83d8eb47
MW
20463 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20464 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20465 # error "fake wchar_t"
20466 #endif
20467 #ifdef HAVE_WCHAR_H
20468 # ifdef __CYGWIN__
20469 # include <stddef.h>
20470 # endif
20471 # include <wchar.h>
20472 #endif
20473 #ifdef HAVE_STDLIB_H
20474 # include <stdlib.h>
20475 #endif
20476 #include <stdio.h>
20477
20478
20479
20480int
20481main ()
20482{
20483static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20484test_array [0] = 0
20485
20486 ;
20487 return 0;
20488}
20489_ACEOF
20490rm -f conftest.$ac_objext
20491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20492 (eval $ac_compile) 2>conftest.er1
20493 ac_status=$?
20494 grep -v '^ *+' conftest.er1 >conftest.err
20495 rm -f conftest.er1
20496 cat conftest.err >&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } &&
5ff751d6 20499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20501 (eval $ac_try) 2>&5
20502 ac_status=$?
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); }; } &&
20505 { ac_try='test -s conftest.$ac_objext'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; }; then
20511 ac_lo=0 ac_mid=0
20512 while :; do
20513 cat >conftest.$ac_ext <<_ACEOF
20514/* confdefs.h. */
20515_ACEOF
20516cat confdefs.h >>conftest.$ac_ext
20517cat >>conftest.$ac_ext <<_ACEOF
20518/* end confdefs.h. */
20519
83d8eb47
MW
20520 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20521 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20522 # error "fake wchar_t"
20523 #endif
20524 #ifdef HAVE_WCHAR_H
20525 # ifdef __CYGWIN__
20526 # include <stddef.h>
20527 # endif
20528 # include <wchar.h>
20529 #endif
20530 #ifdef HAVE_STDLIB_H
20531 # include <stdlib.h>
20532 #endif
20533 #include <stdio.h>
20534
20535
20536
20537int
20538main ()
20539{
20540static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20541test_array [0] = 0
20542
20543 ;
20544 return 0;
20545}
20546_ACEOF
20547rm -f conftest.$ac_objext
20548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20549 (eval $ac_compile) 2>conftest.er1
20550 ac_status=$?
20551 grep -v '^ *+' conftest.er1 >conftest.err
20552 rm -f conftest.er1
20553 cat conftest.err >&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); } &&
5ff751d6 20556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } &&
20562 { ac_try='test -s conftest.$ac_objext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 ac_hi=$ac_mid; break
20569else
20570 echo "$as_me: failed program was:" >&5
20571sed 's/^/| /' conftest.$ac_ext >&5
20572
20573ac_lo=`expr $ac_mid + 1`
20574 if test $ac_lo -le $ac_mid; then
20575 ac_lo= ac_hi=
20576 break
20577 fi
20578 ac_mid=`expr 2 '*' $ac_mid + 1`
20579fi
20580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20581 done
20582else
20583 echo "$as_me: failed program was:" >&5
20584sed 's/^/| /' conftest.$ac_ext >&5
20585
20586cat >conftest.$ac_ext <<_ACEOF
20587/* confdefs.h. */
20588_ACEOF
20589cat confdefs.h >>conftest.$ac_ext
20590cat >>conftest.$ac_ext <<_ACEOF
20591/* end confdefs.h. */
20592
83d8eb47
MW
20593 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20594 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20595 # error "fake wchar_t"
20596 #endif
20597 #ifdef HAVE_WCHAR_H
20598 # ifdef __CYGWIN__
20599 # include <stddef.h>
20600 # endif
20601 # include <wchar.h>
20602 #endif
20603 #ifdef HAVE_STDLIB_H
20604 # include <stdlib.h>
20605 #endif
20606 #include <stdio.h>
20607
20608
20609
20610int
20611main ()
20612{
20613static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20614test_array [0] = 0
20615
20616 ;
20617 return 0;
20618}
20619_ACEOF
20620rm -f conftest.$ac_objext
20621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20622 (eval $ac_compile) 2>conftest.er1
20623 ac_status=$?
20624 grep -v '^ *+' conftest.er1 >conftest.err
20625 rm -f conftest.er1
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628 (exit $ac_status); } &&
5ff751d6 20629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20631 (eval $ac_try) 2>&5
20632 ac_status=$?
20633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; } &&
20635 { ac_try='test -s conftest.$ac_objext'
20636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20637 (eval $ac_try) 2>&5
20638 ac_status=$?
20639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20640 (exit $ac_status); }; }; then
20641 ac_hi=-1 ac_mid=-1
20642 while :; do
20643 cat >conftest.$ac_ext <<_ACEOF
20644/* confdefs.h. */
20645_ACEOF
20646cat confdefs.h >>conftest.$ac_ext
20647cat >>conftest.$ac_ext <<_ACEOF
20648/* end confdefs.h. */
20649
83d8eb47
MW
20650 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20651 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20652 # error "fake wchar_t"
20653 #endif
20654 #ifdef HAVE_WCHAR_H
20655 # ifdef __CYGWIN__
20656 # include <stddef.h>
20657 # endif
20658 # include <wchar.h>
20659 #endif
20660 #ifdef HAVE_STDLIB_H
20661 # include <stdlib.h>
20662 #endif
20663 #include <stdio.h>
20664
20665
20666
20667int
20668main ()
20669{
20670static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20671test_array [0] = 0
20672
20673 ;
20674 return 0;
20675}
20676_ACEOF
20677rm -f conftest.$ac_objext
20678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20679 (eval $ac_compile) 2>conftest.er1
20680 ac_status=$?
20681 grep -v '^ *+' conftest.er1 >conftest.err
20682 rm -f conftest.er1
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
5ff751d6 20686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; } &&
20692 { ac_try='test -s conftest.$ac_objext'
20693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20694 (eval $ac_try) 2>&5
20695 ac_status=$?
20696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20697 (exit $ac_status); }; }; then
20698 ac_lo=$ac_mid; break
20699else
20700 echo "$as_me: failed program was:" >&5
20701sed 's/^/| /' conftest.$ac_ext >&5
20702
20703ac_hi=`expr '(' $ac_mid ')' - 1`
20704 if test $ac_mid -le $ac_hi; then
20705 ac_lo= ac_hi=
20706 break
20707 fi
20708 ac_mid=`expr 2 '*' $ac_mid`
20709fi
20710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20711 done
20712else
20713 echo "$as_me: failed program was:" >&5
20714sed 's/^/| /' conftest.$ac_ext >&5
20715
20716ac_lo= ac_hi=
20717fi
20718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20719fi
20720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20721# Binary search between lo and hi bounds.
20722while test "x$ac_lo" != "x$ac_hi"; do
20723 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20724 cat >conftest.$ac_ext <<_ACEOF
20725/* confdefs.h. */
20726_ACEOF
20727cat confdefs.h >>conftest.$ac_ext
20728cat >>conftest.$ac_ext <<_ACEOF
20729/* end confdefs.h. */
20730
83d8eb47
MW
20731 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20732 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20733 # error "fake wchar_t"
20734 #endif
20735 #ifdef HAVE_WCHAR_H
20736 # ifdef __CYGWIN__
20737 # include <stddef.h>
20738 # endif
20739 # include <wchar.h>
20740 #endif
20741 #ifdef HAVE_STDLIB_H
20742 # include <stdlib.h>
20743 #endif
20744 #include <stdio.h>
a848cd7e 20745
a848cd7e 20746
a848cd7e 20747
238ecede
MW
20748int
20749main ()
20750{
20751static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20752test_array [0] = 0
a848cd7e 20753
238ecede
MW
20754 ;
20755 return 0;
20756}
20757_ACEOF
20758rm -f conftest.$ac_objext
20759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20760 (eval $ac_compile) 2>conftest.er1
20761 ac_status=$?
20762 grep -v '^ *+' conftest.er1 >conftest.err
20763 rm -f conftest.er1
20764 cat conftest.err >&5
20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20766 (exit $ac_status); } &&
5ff751d6 20767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
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); }; } &&
20773 { ac_try='test -s conftest.$ac_objext'
20774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20775 (eval $ac_try) 2>&5
20776 ac_status=$?
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); }; }; then
20779 ac_hi=$ac_mid
20780else
20781 echo "$as_me: failed program was:" >&5
20782sed 's/^/| /' conftest.$ac_ext >&5
20783
20784ac_lo=`expr '(' $ac_mid ')' + 1`
20785fi
20786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20787done
20788case $ac_lo in
20789?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20790'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20791See \`config.log' for more details." >&5
20792echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20793See \`config.log' for more details." >&2;}
20794 { (exit 1); exit 1; }; } ;;
20795esac
20796else
20797 if test "$cross_compiling" = yes; then
5ff751d6
VZ
20798 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20799echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 20800 { (exit 1); exit 1; }; }
a848cd7e
SC
20801else
20802 cat >conftest.$ac_ext <<_ACEOF
20803/* confdefs.h. */
20804_ACEOF
20805cat confdefs.h >>conftest.$ac_ext
20806cat >>conftest.$ac_ext <<_ACEOF
20807/* end confdefs.h. */
20808
83d8eb47
MW
20809 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20810 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20811 # error "fake wchar_t"
20812 #endif
20813 #ifdef HAVE_WCHAR_H
20814 # ifdef __CYGWIN__
20815 # include <stddef.h>
20816 # endif
20817 # include <wchar.h>
20818 #endif
20819 #ifdef HAVE_STDLIB_H
20820 # include <stdlib.h>
20821 #endif
20822 #include <stdio.h>
20823
20824
20825
20826long longval () { return (long) (sizeof (wchar_t)); }
20827unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20828#include <stdio.h>
20829#include <stdlib.h>
20830int
20831main ()
20832{
a848cd7e 20833
238ecede
MW
20834 FILE *f = fopen ("conftest.val", "w");
20835 if (! f)
20836 exit (1);
20837 if (((long) (sizeof (wchar_t))) < 0)
20838 {
20839 long i = longval ();
20840 if (i != ((long) (sizeof (wchar_t))))
20841 exit (1);
20842 fprintf (f, "%ld\n", i);
20843 }
20844 else
20845 {
20846 unsigned long i = ulongval ();
20847 if (i != ((long) (sizeof (wchar_t))))
20848 exit (1);
20849 fprintf (f, "%lu\n", i);
20850 }
20851 exit (ferror (f) || fclose (f) != 0);
20852
20853 ;
20854 return 0;
20855}
a848cd7e
SC
20856_ACEOF
20857rm -f conftest$ac_exeext
20858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20859 (eval $ac_link) 2>&5
20860 ac_status=$?
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20864 (eval $ac_try) 2>&5
20865 ac_status=$?
20866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20867 (exit $ac_status); }; }; then
238ecede 20868 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20869else
20870 echo "$as_me: program exited with status $ac_status" >&5
20871echo "$as_me: failed program was:" >&5
20872sed 's/^/| /' conftest.$ac_ext >&5
20873
20874( exit $ac_status )
238ecede
MW
20875{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20876See \`config.log' for more details." >&5
20877echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20878See \`config.log' for more details." >&2;}
20879 { (exit 1); exit 1; }; }
a848cd7e 20880fi
ac1cb8d3 20881rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20882fi
a848cd7e 20883fi
238ecede
MW
20884rm -f conftest.val
20885else
20886 ac_cv_sizeof_wchar_t=0
20887fi
20888fi
20889echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20890echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20891cat >>confdefs.h <<_ACEOF
238ecede 20892#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20893_ACEOF
20894
20895
47a7e797
MW
20896if test "$ac_cv_sizeof_wchar_t" != "0"; then
20897 wxUSE_WCHAR_T=yes
20898else
20899 wxUSE_WCHAR_T=no
20900fi
238ecede 20901
ba3d13e1
VZ
20902echo "$as_me:$LINENO: checking for va_copy" >&5
20903echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20904if test "${wx_cv_func_va_copy+set}" = set; then
20905 echo $ECHO_N "(cached) $ECHO_C" >&6
20906else
20907
20908 cat >conftest.$ac_ext <<_ACEOF
20909
20910 #include <stdarg.h>
20911 void foo(char *f, ...)
20912 {
20913 va_list ap1, ap2;
20914 va_start(ap1, f);
20915 va_copy(ap2, ap1);
20916 va_end(ap2);
20917 va_end(ap1);
20918 }
5886b072
VZ
20919 int main()
20920 {
b902e639
VZ
20921 foo("hi", 17);
20922 return 0;
5886b072 20923 }
ba3d13e1
VZ
20924_ACEOF
20925rm -f conftest.$ac_objext conftest$ac_exeext
20926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20927 (eval $ac_link) 2>conftest.er1
20928 ac_status=$?
20929 grep -v '^ *+' conftest.er1 >conftest.err
20930 rm -f conftest.er1
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } &&
5ff751d6 20934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
20935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20937 ac_status=$?
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; } &&
20940 { ac_try='test -s conftest$ac_exeext'
20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); }; }; then
20946 wx_cv_func_va_copy=yes
20947else
20948 echo "$as_me: failed program was:" >&5
20949sed 's/^/| /' conftest.$ac_ext >&5
20950
20951wx_cv_func_va_copy=no
20952
20953fi
20954rm -f conftest.err conftest.$ac_objext \
20955 conftest$ac_exeext conftest.$ac_ext
20956
20957
20958fi
20959echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20960echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20961
20962if test $wx_cv_func_va_copy = "yes"; then
20963 cat >>confdefs.h <<\_ACEOF
20964#define HAVE_VA_COPY 1
20965_ACEOF
20966
20967else
20968 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20969echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20970if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20971 echo $ECHO_N "(cached) $ECHO_C" >&6
20972else
20973
20974 if test "$cross_compiling" = yes; then
20975 wx_cv_type_va_list_lvalue=yes
20976
20977else
20978 cat >conftest.$ac_ext <<_ACEOF
20979
20980 #include <stdarg.h>
20981 int foo(char *f, ...)
20982 {
20983 va_list ap1, ap2;
20984 va_start(ap1, f);
20985 ap2 = ap1;
20986 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20987 return 1;
20988 va_end(ap2);
20989 va_end(ap1);
20990 return 0;
20991 }
20992 int main()
20993 {
20994 return foo("hi", 17);
20995 }
20996_ACEOF
20997rm -f conftest$ac_exeext
20998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20999 (eval $ac_link) 2>&5
21000 ac_status=$?
21001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21004 (eval $ac_try) 2>&5
21005 ac_status=$?
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); }; }; then
21008 wx_cv_type_va_list_lvalue=yes
21009else
21010 echo "$as_me: program exited with status $ac_status" >&5
21011echo "$as_me: failed program was:" >&5
21012sed 's/^/| /' conftest.$ac_ext >&5
21013
21014( exit $ac_status )
21015wx_cv_type_va_list_lvalue=no
21016fi
21017rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21018fi
21019
21020
21021fi
21022echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21023echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21024
21025 if test $wx_cv_type_va_list_lvalue != "yes"; then
21026 cat >>confdefs.h <<\_ACEOF
21027#define VA_LIST_IS_ARRAY 1
21028_ACEOF
21029
21030 fi
21031fi
21032
a848cd7e
SC
21033# Check whether --enable-largefile or --disable-largefile was given.
21034if test "${enable_largefile+set}" = set; then
21035 enableval="$enable_largefile"
21036
21037fi;
21038if test "$enable_largefile" != no; then
21039 wx_largefile=no
21040
21041 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21042echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21043if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21044 echo $ECHO_N "(cached) $ECHO_C" >&6
21045else
21046
21047 cat >conftest.$ac_ext <<_ACEOF
21048/* confdefs.h. */
21049_ACEOF
21050cat confdefs.h >>conftest.$ac_ext
21051cat >>conftest.$ac_ext <<_ACEOF
21052/* end confdefs.h. */
21053#define _FILE_OFFSET_BITS 64
21054 #include <sys/types.h>
21055int
21056main ()
21057{
21058typedef struct {
21059 unsigned int field: sizeof(off_t) == 8;
21060} wxlf;
21061
21062 ;
21063 return 0;
21064}
21065_ACEOF
21066rm -f conftest.$ac_objext
21067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21068 (eval $ac_compile) 2>conftest.er1
a848cd7e 21069 ac_status=$?
ac1cb8d3
VS
21070 grep -v '^ *+' conftest.er1 >conftest.err
21071 rm -f conftest.er1
21072 cat conftest.err >&5
a848cd7e
SC
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
5ff751d6 21075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_sys_file_offset_bits=64
21088else
21089 echo "$as_me: failed program was:" >&5
21090sed 's/^/| /' conftest.$ac_ext >&5
21091
21092ac_cv_sys_file_offset_bits=no
21093fi
ac1cb8d3 21094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21095
21096
21097fi
21098echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21099echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21100
21101 if test "$ac_cv_sys_file_offset_bits" != no; then
21102 wx_largefile=yes
21103 cat >>confdefs.h <<_ACEOF
21104#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21105_ACEOF
21106
21107 fi
21108
21109 if test "x$wx_largefile" != "xyes"; then
21110
21111 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21112echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21113if test "${ac_cv_sys_large_files+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21115else
21116
21117 cat >conftest.$ac_ext <<_ACEOF
21118/* confdefs.h. */
21119_ACEOF
21120cat confdefs.h >>conftest.$ac_ext
21121cat >>conftest.$ac_ext <<_ACEOF
21122/* end confdefs.h. */
21123#define _LARGE_FILES 1
21124 #include <sys/types.h>
21125int
21126main ()
21127{
21128typedef struct {
21129 unsigned int field: sizeof(off_t) == 8;
21130} wxlf;
21131
21132 ;
21133 return 0;
21134}
21135_ACEOF
21136rm -f conftest.$ac_objext
21137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21138 (eval $ac_compile) 2>conftest.er1
a848cd7e 21139 ac_status=$?
ac1cb8d3
VS
21140 grep -v '^ *+' conftest.er1 >conftest.err
21141 rm -f conftest.er1
21142 cat conftest.err >&5
a848cd7e
SC
21143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144 (exit $ac_status); } &&
5ff751d6 21145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21147 (eval $ac_try) 2>&5
21148 ac_status=$?
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); }; } &&
21151 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21153 (eval $ac_try) 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
21157 ac_cv_sys_large_files=1
21158else
21159 echo "$as_me: failed program was:" >&5
21160sed 's/^/| /' conftest.$ac_ext >&5
21161
21162ac_cv_sys_large_files=no
21163fi
ac1cb8d3 21164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21165
21166
21167fi
21168echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21169echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21170
21171 if test "$ac_cv_sys_large_files" != no; then
21172 wx_largefile=yes
21173 cat >>confdefs.h <<_ACEOF
21174#define _LARGE_FILES $ac_cv_sys_large_files
21175_ACEOF
21176
21177 fi
21178
21179 fi
21180
21181 echo "$as_me:$LINENO: checking if large file support is available" >&5
21182echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21183 if test "x$wx_largefile" = "xyes"; then
21184 cat >>confdefs.h <<\_ACEOF
21185#define HAVE_LARGEFILE_SUPPORT 1
21186_ACEOF
21187
21188 fi
21189 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21190echo "${ECHO_T}$wx_largefile" >&6
21191fi
21192
5b674b9d
DE
21193
21194if test "x$wx_largefile" = "xyes"; then
21195 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21196 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21197
21198 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21199 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21200echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21201if test "${wx_cv_STDC_EXT_required+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21203else
21204
21205
21206
21207 ac_ext=cc
21208ac_cpp='$CXXCPP $CPPFLAGS'
21209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21212
21213 cat >conftest.$ac_ext <<_ACEOF
21214/* confdefs.h. */
21215_ACEOF
21216cat confdefs.h >>conftest.$ac_ext
21217cat >>conftest.$ac_ext <<_ACEOF
21218/* end confdefs.h. */
21219
21220int
21221main ()
21222{
21223
21224 #ifndef __STDC_EXT__
21225 choke me
21226 #endif
21227
21228 ;
21229 return 0;
21230}
21231_ACEOF
21232rm -f conftest.$ac_objext
21233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21234 (eval $ac_compile) 2>conftest.er1
21235 ac_status=$?
21236 grep -v '^ *+' conftest.er1 >conftest.err
21237 rm -f conftest.er1
21238 cat conftest.err >&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); } &&
5ff751d6 21241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
21242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; } &&
21247 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
21253 wx_cv_STDC_EXT_required=no
21254else
21255 echo "$as_me: failed program was:" >&5
21256sed 's/^/| /' conftest.$ac_ext >&5
21257
21258wx_cv_STDC_EXT_required=yes
21259
21260fi
21261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21262 ac_ext=c
21263ac_cpp='$CPP $CPPFLAGS'
21264ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21265ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21266ac_compiler_gnu=$ac_cv_c_compiler_gnu
21267
21268
21269
21270fi
21271echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21272echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21273 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21274 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21275 fi
21276 fi
5b674b9d 21277 else
5ff751d6 21278 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21279 fi
21280 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21281echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21282if test "${ac_cv_sys_largefile_source+set}" = set; then
21283 echo $ECHO_N "(cached) $ECHO_C" >&6
21284else
21285 while :; do
21286 ac_cv_sys_largefile_source=no
21287 cat >conftest.$ac_ext <<_ACEOF
21288/* confdefs.h. */
21289_ACEOF
21290cat confdefs.h >>conftest.$ac_ext
21291cat >>conftest.$ac_ext <<_ACEOF
21292/* end confdefs.h. */
21293#include <stdio.h>
21294int
21295main ()
21296{
21297return !fseeko;
21298 ;
21299 return 0;
21300}
21301_ACEOF
21302rm -f conftest.$ac_objext
21303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21304 (eval $ac_compile) 2>conftest.er1
21305 ac_status=$?
21306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
5ff751d6 21311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21313 (eval $ac_try) 2>&5
21314 ac_status=$?
21315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21316 (exit $ac_status); }; } &&
21317 { ac_try='test -s conftest.$ac_objext'
21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
21323 break
21324else
21325 echo "$as_me: failed program was:" >&5
21326sed 's/^/| /' conftest.$ac_ext >&5
21327
21328fi
21329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21330 cat >conftest.$ac_ext <<_ACEOF
21331/* confdefs.h. */
21332_ACEOF
21333cat confdefs.h >>conftest.$ac_ext
21334cat >>conftest.$ac_ext <<_ACEOF
21335/* end confdefs.h. */
21336#define _LARGEFILE_SOURCE 1
21337#include <stdio.h>
21338int
21339main ()
21340{
21341return !fseeko;
21342 ;
21343 return 0;
21344}
21345_ACEOF
21346rm -f conftest.$ac_objext
21347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21348 (eval $ac_compile) 2>conftest.er1
21349 ac_status=$?
21350 grep -v '^ *+' conftest.er1 >conftest.err
21351 rm -f conftest.er1
21352 cat conftest.err >&5
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); } &&
5ff751d6 21355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21357 (eval $ac_try) 2>&5
21358 ac_status=$?
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); }; } &&
21361 { ac_try='test -s conftest.$ac_objext'
21362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21364 ac_status=$?
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; }; then
21367 ac_cv_sys_largefile_source=1; break
21368else
21369 echo "$as_me: failed program was:" >&5
21370sed 's/^/| /' conftest.$ac_ext >&5
21371
21372fi
21373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21374 break
21375done
21376fi
21377echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21378echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21379if test "$ac_cv_sys_largefile_source" != no; then
21380
21381cat >>confdefs.h <<_ACEOF
21382#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21383_ACEOF
21384
21385fi
21386rm -f conftest*
21387
21388# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21389# in glibc 2.1.3, but that breaks too many other things.
21390# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21391echo "$as_me:$LINENO: checking for fseeko" >&5
21392echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21393if test "${ac_cv_func_fseeko+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21395else
21396 cat >conftest.$ac_ext <<_ACEOF
21397/* confdefs.h. */
21398_ACEOF
21399cat confdefs.h >>conftest.$ac_ext
21400cat >>conftest.$ac_ext <<_ACEOF
21401/* end confdefs.h. */
21402#include <stdio.h>
21403int
21404main ()
21405{
21406return fseeko && fseeko (stdin, 0, 0);
21407 ;
21408 return 0;
21409}
21410_ACEOF
21411rm -f conftest.$ac_objext conftest$ac_exeext
21412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413 (eval $ac_link) 2>conftest.er1
21414 ac_status=$?
21415 grep -v '^ *+' conftest.er1 >conftest.err
21416 rm -f conftest.er1
21417 cat conftest.err >&5
21418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419 (exit $ac_status); } &&
5ff751d6 21420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21422 (eval $ac_try) 2>&5
21423 ac_status=$?
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); }; } &&
21426 { ac_try='test -s conftest$ac_exeext'
21427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21428 (eval $ac_try) 2>&5
21429 ac_status=$?
21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21431 (exit $ac_status); }; }; then
21432 ac_cv_func_fseeko=yes
21433else
21434 echo "$as_me: failed program was:" >&5
21435sed 's/^/| /' conftest.$ac_ext >&5
21436
21437ac_cv_func_fseeko=no
21438fi
21439rm -f conftest.err conftest.$ac_objext \
21440 conftest$ac_exeext conftest.$ac_ext
21441fi
21442echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21443echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21444if test $ac_cv_func_fseeko = yes; then
21445
21446cat >>confdefs.h <<\_ACEOF
21447#define HAVE_FSEEKO 1
21448_ACEOF
21449
21450fi
21451
5b674b9d 21452 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21453 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21454 fi
a848cd7e
SC
21455fi
21456
21457echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21458echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21459if test "${ac_cv_c_bigendian+set}" = set; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21461else
21462 ac_cv_c_bigendian=unknown
21463# See if sys/param.h defines the BYTE_ORDER macro.
21464cat >conftest.$ac_ext <<_ACEOF
21465/* confdefs.h. */
21466_ACEOF
21467cat confdefs.h >>conftest.$ac_ext
21468cat >>conftest.$ac_ext <<_ACEOF
21469/* end confdefs.h. */
21470#include <sys/types.h>
21471#include <sys/param.h>
21472int
21473main ()
21474{
21475
21476#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21477 bogus endian macros
21478#endif
21479 ;
21480 return 0;
21481}
21482_ACEOF
21483rm -f conftest.$ac_objext
21484if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21485 (eval $ac_compile) 2>conftest.er1
a848cd7e 21486 ac_status=$?
ac1cb8d3
VS
21487 grep -v '^ *+' conftest.er1 >conftest.err
21488 rm -f conftest.er1
21489 cat conftest.err >&5
a848cd7e
SC
21490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21491 (exit $ac_status); } &&
5ff751d6 21492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; }; then
21504 # It does; now see whether it defined to BIG_ENDIAN or not.
21505cat >conftest.$ac_ext <<_ACEOF
21506/* confdefs.h. */
21507_ACEOF
21508cat confdefs.h >>conftest.$ac_ext
21509cat >>conftest.$ac_ext <<_ACEOF
21510/* end confdefs.h. */
21511#include <sys/types.h>
21512#include <sys/param.h>
21513int
21514main ()
21515{
21516
21517#if BYTE_ORDER != BIG_ENDIAN
21518 not big endian
21519#endif
21520 ;
21521 return 0;
21522}
21523_ACEOF
21524rm -f conftest.$ac_objext
21525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21526 (eval $ac_compile) 2>conftest.er1
a848cd7e 21527 ac_status=$?
ac1cb8d3
VS
21528 grep -v '^ *+' conftest.er1 >conftest.err
21529 rm -f conftest.er1
21530 cat conftest.err >&5
a848cd7e
SC
21531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532 (exit $ac_status); } &&
5ff751d6 21533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21535 (eval $ac_try) 2>&5
21536 ac_status=$?
21537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21538 (exit $ac_status); }; } &&
21539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21541 (eval $ac_try) 2>&5
21542 ac_status=$?
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); }; }; then
21545 ac_cv_c_bigendian=yes
21546else
21547 echo "$as_me: failed program was:" >&5
21548sed 's/^/| /' conftest.$ac_ext >&5
21549
21550ac_cv_c_bigendian=no
21551fi
ac1cb8d3 21552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21553else
21554 echo "$as_me: failed program was:" >&5
21555sed 's/^/| /' conftest.$ac_ext >&5
21556
21557fi
ac1cb8d3 21558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21559if test $ac_cv_c_bigendian = unknown; then
21560if test "$cross_compiling" = yes; then
21561 ac_cv_c_bigendian=unknown
21562else
21563 cat >conftest.$ac_ext <<_ACEOF
21564/* confdefs.h. */
21565_ACEOF
21566cat confdefs.h >>conftest.$ac_ext
21567cat >>conftest.$ac_ext <<_ACEOF
21568/* end confdefs.h. */
21569main () {
21570 /* Are we little or big endian? From Harbison&Steele. */
21571 union
21572 {
21573 long l;
21574 char c[sizeof (long)];
21575 } u;
21576 u.l = 1;
21577 exit (u.c[sizeof (long) - 1] == 1);
21578}
21579_ACEOF
21580rm -f conftest$ac_exeext
21581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21582 (eval $ac_link) 2>&5
21583 ac_status=$?
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21587 (eval $ac_try) 2>&5
21588 ac_status=$?
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); }; }; then
21591 ac_cv_c_bigendian=no
21592else
21593 echo "$as_me: program exited with status $ac_status" >&5
21594echo "$as_me: failed program was:" >&5
21595sed 's/^/| /' conftest.$ac_ext >&5
21596
21597( exit $ac_status )
21598ac_cv_c_bigendian=yes
21599fi
ac1cb8d3 21600rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21601fi
21602fi
21603fi
21604echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21605echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21606if test $ac_cv_c_bigendian = unknown; then
21607 { 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
21608echo "$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;}
21609fi
21610if test $ac_cv_c_bigendian = yes; then
21611 cat >>confdefs.h <<\_ACEOF
21612#define WORDS_BIGENDIAN 1
21613_ACEOF
21614
21615fi
21616
21617
21618ac_ext=cc
21619ac_cpp='$CXXCPP $CPPFLAGS'
21620ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21621ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21622ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21623echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21624echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21625if test -z "$CXXCPP"; then
21626 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21628else
21629 # Double quotes because CXXCPP needs to be expanded
21630 for CXXCPP in "$CXX -E" "/lib/cpp"
21631 do
21632 ac_preproc_ok=false
21633for ac_cxx_preproc_warn_flag in '' yes
21634do
21635 # Use a header file that comes with gcc, so configuring glibc
21636 # with a fresh cross-compiler works.
21637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21638 # <limits.h> exists even on freestanding compilers.
21639 # On the NeXT, cc -E runs the code through the compiler's parser,
21640 # not just through cpp. "Syntax error" is here to catch this case.
21641 cat >conftest.$ac_ext <<_ACEOF
21642/* confdefs.h. */
21643_ACEOF
21644cat confdefs.h >>conftest.$ac_ext
21645cat >>conftest.$ac_ext <<_ACEOF
21646/* end confdefs.h. */
21647#ifdef __STDC__
21648# include <limits.h>
21649#else
21650# include <assert.h>
21651#endif
ac1cb8d3 21652 Syntax error
a848cd7e
SC
21653_ACEOF
21654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21656 ac_status=$?
21657 grep -v '^ *+' conftest.er1 >conftest.err
21658 rm -f conftest.er1
21659 cat conftest.err >&5
21660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661 (exit $ac_status); } >/dev/null; then
21662 if test -s conftest.err; then
21663 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21664 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21665 else
21666 ac_cpp_err=
21667 fi
21668else
21669 ac_cpp_err=yes
21670fi
21671if test -z "$ac_cpp_err"; then
21672 :
21673else
21674 echo "$as_me: failed program was:" >&5
21675sed 's/^/| /' conftest.$ac_ext >&5
21676
21677 # Broken: fails on valid input.
21678continue
21679fi
21680rm -f conftest.err conftest.$ac_ext
21681
21682 # OK, works on sane cases. Now check whether non-existent headers
21683 # can be detected and how.
21684 cat >conftest.$ac_ext <<_ACEOF
21685/* confdefs.h. */
21686_ACEOF
21687cat confdefs.h >>conftest.$ac_ext
21688cat >>conftest.$ac_ext <<_ACEOF
21689/* end confdefs.h. */
21690#include <ac_nonexistent.h>
21691_ACEOF
21692if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21693 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21694 ac_status=$?
21695 grep -v '^ *+' conftest.er1 >conftest.err
21696 rm -f conftest.er1
21697 cat conftest.err >&5
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); } >/dev/null; then
21700 if test -s conftest.err; then
21701 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21702 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21703 else
21704 ac_cpp_err=
21705 fi
21706else
21707 ac_cpp_err=yes
21708fi
21709if test -z "$ac_cpp_err"; then
21710 # Broken: success on invalid input.
21711continue
21712else
21713 echo "$as_me: failed program was:" >&5
21714sed 's/^/| /' conftest.$ac_ext >&5
21715
21716 # Passes both tests.
21717ac_preproc_ok=:
21718break
21719fi
21720rm -f conftest.err conftest.$ac_ext
21721
21722done
21723# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21724rm -f conftest.err conftest.$ac_ext
21725if $ac_preproc_ok; then
21726 break
21727fi
21728
21729 done
21730 ac_cv_prog_CXXCPP=$CXXCPP
21731
21732fi
21733 CXXCPP=$ac_cv_prog_CXXCPP
21734else
21735 ac_cv_prog_CXXCPP=$CXXCPP
21736fi
21737echo "$as_me:$LINENO: result: $CXXCPP" >&5
21738echo "${ECHO_T}$CXXCPP" >&6
21739ac_preproc_ok=false
21740for ac_cxx_preproc_warn_flag in '' yes
21741do
21742 # Use a header file that comes with gcc, so configuring glibc
21743 # with a fresh cross-compiler works.
21744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21745 # <limits.h> exists even on freestanding compilers.
21746 # On the NeXT, cc -E runs the code through the compiler's parser,
21747 # not just through cpp. "Syntax error" is here to catch this case.
21748 cat >conftest.$ac_ext <<_ACEOF
21749/* confdefs.h. */
21750_ACEOF
21751cat confdefs.h >>conftest.$ac_ext
21752cat >>conftest.$ac_ext <<_ACEOF
21753/* end confdefs.h. */
21754#ifdef __STDC__
21755# include <limits.h>
21756#else
21757# include <assert.h>
21758#endif
ac1cb8d3 21759 Syntax error
a848cd7e
SC
21760_ACEOF
21761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21763 ac_status=$?
21764 grep -v '^ *+' conftest.er1 >conftest.err
21765 rm -f conftest.er1
21766 cat conftest.err >&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); } >/dev/null; then
21769 if test -s conftest.err; then
21770 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21771 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21772 else
21773 ac_cpp_err=
21774 fi
21775else
21776 ac_cpp_err=yes
21777fi
21778if test -z "$ac_cpp_err"; then
21779 :
21780else
21781 echo "$as_me: failed program was:" >&5
21782sed 's/^/| /' conftest.$ac_ext >&5
21783
21784 # Broken: fails on valid input.
21785continue
21786fi
21787rm -f conftest.err conftest.$ac_ext
21788
21789 # OK, works on sane cases. Now check whether non-existent headers
21790 # can be detected and how.
21791 cat >conftest.$ac_ext <<_ACEOF
21792/* confdefs.h. */
21793_ACEOF
21794cat confdefs.h >>conftest.$ac_ext
21795cat >>conftest.$ac_ext <<_ACEOF
21796/* end confdefs.h. */
21797#include <ac_nonexistent.h>
21798_ACEOF
21799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21801 ac_status=$?
21802 grep -v '^ *+' conftest.er1 >conftest.err
21803 rm -f conftest.er1
21804 cat conftest.err >&5
21805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806 (exit $ac_status); } >/dev/null; then
21807 if test -s conftest.err; then
21808 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21809 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21810 else
21811 ac_cpp_err=
21812 fi
21813else
21814 ac_cpp_err=yes
21815fi
21816if test -z "$ac_cpp_err"; then
21817 # Broken: success on invalid input.
21818continue
21819else
21820 echo "$as_me: failed program was:" >&5
21821sed 's/^/| /' conftest.$ac_ext >&5
21822
21823 # Passes both tests.
21824ac_preproc_ok=:
21825break
21826fi
21827rm -f conftest.err conftest.$ac_ext
21828
21829done
21830# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21831rm -f conftest.err conftest.$ac_ext
21832if $ac_preproc_ok; then
21833 :
21834else
21835 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21836See \`config.log' for more details." >&5
21837echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21838See \`config.log' for more details." >&2;}
21839 { (exit 1); exit 1; }; }
21840fi
21841
21842ac_ext=cc
21843ac_cpp='$CXXCPP $CPPFLAGS'
21844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21847
21848
21849
21850
21851
21852 ac_ext=cc
21853ac_cpp='$CXXCPP $CPPFLAGS'
21854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21857
21858
21859
21860for ac_header in iostream
21861do
21862as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21863if eval "test \"\${$as_ac_Header+set}\" = set"; then
21864 echo "$as_me:$LINENO: checking for $ac_header" >&5
21865echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21866if eval "test \"\${$as_ac_Header+set}\" = set"; then
21867 echo $ECHO_N "(cached) $ECHO_C" >&6
21868fi
21869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21870echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21871else
21872 # Is the header compilable?
21873echo "$as_me:$LINENO: checking $ac_header usability" >&5
21874echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21875cat >conftest.$ac_ext <<_ACEOF
21876/* confdefs.h. */
21877_ACEOF
21878cat confdefs.h >>conftest.$ac_ext
21879cat >>conftest.$ac_ext <<_ACEOF
21880/* end confdefs.h. */
21881$ac_includes_default
21882#include <$ac_header>
21883_ACEOF
21884rm -f conftest.$ac_objext
21885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21886 (eval $ac_compile) 2>conftest.er1
a848cd7e 21887 ac_status=$?
ac1cb8d3
VS
21888 grep -v '^ *+' conftest.er1 >conftest.err
21889 rm -f conftest.er1
21890 cat conftest.err >&5
a848cd7e
SC
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); } &&
5ff751d6 21893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; } &&
21899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21901 (eval $ac_try) 2>&5
21902 ac_status=$?
21903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); }; }; then
21905 ac_header_compiler=yes
21906else
21907 echo "$as_me: failed program was:" >&5
21908sed 's/^/| /' conftest.$ac_ext >&5
21909
21910ac_header_compiler=no
21911fi
ac1cb8d3 21912rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21913echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21914echo "${ECHO_T}$ac_header_compiler" >&6
21915
21916# Is the header present?
21917echo "$as_me:$LINENO: checking $ac_header presence" >&5
21918echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21919cat >conftest.$ac_ext <<_ACEOF
21920/* confdefs.h. */
21921_ACEOF
21922cat confdefs.h >>conftest.$ac_ext
21923cat >>conftest.$ac_ext <<_ACEOF
21924/* end confdefs.h. */
21925#include <$ac_header>
21926_ACEOF
21927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21929 ac_status=$?
21930 grep -v '^ *+' conftest.er1 >conftest.err
21931 rm -f conftest.er1
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); } >/dev/null; then
21935 if test -s conftest.err; then
21936 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21937 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21938 else
21939 ac_cpp_err=
21940 fi
21941else
21942 ac_cpp_err=yes
21943fi
21944if test -z "$ac_cpp_err"; then
21945 ac_header_preproc=yes
21946else
21947 echo "$as_me: failed program was:" >&5
21948sed 's/^/| /' conftest.$ac_ext >&5
21949
21950 ac_header_preproc=no
21951fi
21952rm -f conftest.err conftest.$ac_ext
21953echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21954echo "${ECHO_T}$ac_header_preproc" >&6
21955
21956# So? What about this header?
ac1cb8d3
VS
21957case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21958 yes:no: )
a848cd7e
SC
21959 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21960echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21962echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21963 ac_header_preproc=yes
a848cd7e 21964 ;;
ac1cb8d3 21965 no:yes:* )
a848cd7e
SC
21966 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21967echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21968 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21969echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21971echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21973echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21975echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21976 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21977echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21978 (
21979 cat <<\_ASBOX
ac1cb8d3
VS
21980## ----------------------------------------- ##
21981## Report this to wx-dev@lists.wxwidgets.org ##
21982## ----------------------------------------- ##
a848cd7e
SC
21983_ASBOX
21984 ) |
21985 sed "s/^/$as_me: WARNING: /" >&2
21986 ;;
21987esac
21988echo "$as_me:$LINENO: checking for $ac_header" >&5
21989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21990if eval "test \"\${$as_ac_Header+set}\" = set"; then
21991 echo $ECHO_N "(cached) $ECHO_C" >&6
21992else
ac1cb8d3 21993 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21994fi
21995echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21996echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21997
21998fi
21999if test `eval echo '${'$as_ac_Header'}'` = yes; then
22000 cat >>confdefs.h <<_ACEOF
22001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22002_ACEOF
22003
22004fi
22005
22006done
22007
22008
22009 if test "$ac_cv_header_iostream" = "yes" ; then
22010 :
22011 else
22012 cat >>confdefs.h <<\_ACEOF
22013#define wxUSE_IOSTREAMH 1
22014_ACEOF
22015
22016 fi
22017
22018 ac_ext=c
22019ac_cpp='$CPP $CPPFLAGS'
22020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22022ac_compiler_gnu=$ac_cv_c_compiler_gnu
22023
22024
22025
22026
22027 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22028echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22029if test "${wx_cv_cpp_bool+set}" = set; then
22030 echo $ECHO_N "(cached) $ECHO_C" >&6
22031else
22032
22033
22034
22035 ac_ext=cc
22036ac_cpp='$CXXCPP $CPPFLAGS'
22037ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22038ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22039ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22040
22041
22042 cat >conftest.$ac_ext <<_ACEOF
22043/* confdefs.h. */
22044_ACEOF
22045cat confdefs.h >>conftest.$ac_ext
22046cat >>conftest.$ac_ext <<_ACEOF
22047/* end confdefs.h. */
22048
22049
22050int
22051main ()
22052{
22053
22054 bool b = true;
22055
22056 return 0;
22057
22058 ;
22059 return 0;
22060}
22061_ACEOF
22062rm -f conftest.$ac_objext
22063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22064 (eval $ac_compile) 2>conftest.er1
a848cd7e 22065 ac_status=$?
ac1cb8d3
VS
22066 grep -v '^ *+' conftest.er1 >conftest.err
22067 rm -f conftest.er1
22068 cat conftest.err >&5
a848cd7e
SC
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); } &&
5ff751d6 22071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22073 (eval $ac_try) 2>&5
22074 ac_status=$?
22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076 (exit $ac_status); }; } &&
22077 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22079 (eval $ac_try) 2>&5
22080 ac_status=$?
22081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); }; }; then
22083
22084 wx_cv_cpp_bool=yes
22085
22086else
22087 echo "$as_me: failed program was:" >&5
22088sed 's/^/| /' conftest.$ac_ext >&5
22089
22090
22091 wx_cv_cpp_bool=no
22092
22093
22094fi
ac1cb8d3 22095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22096
22097 ac_ext=c
22098ac_cpp='$CPP $CPPFLAGS'
22099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22101ac_compiler_gnu=$ac_cv_c_compiler_gnu
22102
22103
22104fi
22105echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22106echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22107
22108 if test "$wx_cv_cpp_bool" = "yes"; then
22109 cat >>confdefs.h <<\_ACEOF
22110#define HAVE_BOOL 1
22111_ACEOF
22112
22113 fi
22114
22115
22116
22117 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22118echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22119if test "${wx_cv_explicit+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22121else
22122
22123
22124
22125 ac_ext=cc
22126ac_cpp='$CXXCPP $CPPFLAGS'
22127ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22128ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22129ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22130
22131
22132 cat >conftest.$ac_ext <<_ACEOF
22133/* confdefs.h. */
22134_ACEOF
22135cat confdefs.h >>conftest.$ac_ext
22136cat >>conftest.$ac_ext <<_ACEOF
22137/* end confdefs.h. */
22138
22139 class Foo { public: explicit Foo(int) {} };
22140
22141int
22142main ()
22143{
22144
22145 return 0;
22146
22147 ;
22148 return 0;
22149}
22150_ACEOF
22151rm -f conftest.$ac_objext
22152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22153 (eval $ac_compile) 2>conftest.er1
a848cd7e 22154 ac_status=$?
ac1cb8d3
VS
22155 grep -v '^ *+' conftest.er1 >conftest.err
22156 rm -f conftest.er1
22157 cat conftest.err >&5
a848cd7e
SC
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
5ff751d6 22160 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22163 ac_status=$?
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; } &&
22166 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }; then
22172
22173 cat >conftest.$ac_ext <<_ACEOF
22174/* confdefs.h. */
22175_ACEOF
22176cat confdefs.h >>conftest.$ac_ext
22177cat >>conftest.$ac_ext <<_ACEOF
22178/* end confdefs.h. */
22179
22180 class Foo { public: explicit Foo(int) {} };
22181 static void TakeFoo(const Foo& foo) { }
22182
22183int
22184main ()
22185{
22186
22187 TakeFoo(17);
22188 return 0;
22189
22190 ;
22191 return 0;
22192}
22193_ACEOF
22194rm -f conftest.$ac_objext
22195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22196 (eval $ac_compile) 2>conftest.er1
a848cd7e 22197 ac_status=$?
ac1cb8d3
VS
22198 grep -v '^ *+' conftest.er1 >conftest.err
22199 rm -f conftest.er1
22200 cat conftest.err >&5
a848cd7e
SC
22201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); } &&
5ff751d6 22203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22205 (eval $ac_try) 2>&5
22206 ac_status=$?
22207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208 (exit $ac_status); }; } &&
22209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22211 (eval $ac_try) 2>&5
22212 ac_status=$?
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); }; }; then
22215 wx_cv_explicit=no
22216else
22217 echo "$as_me: failed program was:" >&5
22218sed 's/^/| /' conftest.$ac_ext >&5
22219
22220wx_cv_explicit=yes
22221
22222fi
ac1cb8d3 22223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22224
22225else
22226 echo "$as_me: failed program was:" >&5
22227sed 's/^/| /' conftest.$ac_ext >&5
22228
22229wx_cv_explicit=no
22230
22231fi
ac1cb8d3 22232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22233
22234 ac_ext=c
22235ac_cpp='$CPP $CPPFLAGS'
22236ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22237ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22238ac_compiler_gnu=$ac_cv_c_compiler_gnu
22239
22240
22241fi
22242echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22243echo "${ECHO_T}$wx_cv_explicit" >&6
22244
22245 if test "$wx_cv_explicit" = "yes"; then
22246 cat >>confdefs.h <<\_ACEOF
22247#define HAVE_EXPLICIT 1
22248_ACEOF
22249
22250 fi
22251
22252
22253echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22254echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22255if test "${ac_cv_cxx_const_cast+set}" = set; then
22256 echo $ECHO_N "(cached) $ECHO_C" >&6
22257else
22258
22259
22260 ac_ext=cc
22261ac_cpp='$CXXCPP $CPPFLAGS'
22262ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22263ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22264ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22265
22266 cat >conftest.$ac_ext <<_ACEOF
22267/* confdefs.h. */
22268_ACEOF
22269cat confdefs.h >>conftest.$ac_ext
22270cat >>conftest.$ac_ext <<_ACEOF
22271/* end confdefs.h. */
22272
22273int
22274main ()
22275{
22276int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22277 ;
22278 return 0;
22279}
22280_ACEOF
22281rm -f conftest.$ac_objext
22282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22283 (eval $ac_compile) 2>conftest.er1
a848cd7e 22284 ac_status=$?
ac1cb8d3
VS
22285 grep -v '^ *+' conftest.er1 >conftest.err
22286 rm -f conftest.er1
22287 cat conftest.err >&5
a848cd7e
SC
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } &&
5ff751d6 22290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22293 ac_status=$?
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; } &&
22296 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; }; then
22302 ac_cv_cxx_const_cast=yes
22303else
22304 echo "$as_me: failed program was:" >&5
22305sed 's/^/| /' conftest.$ac_ext >&5
22306
22307ac_cv_cxx_const_cast=no
22308fi
ac1cb8d3 22309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22310 ac_ext=c
22311ac_cpp='$CPP $CPPFLAGS'
22312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22314ac_compiler_gnu=$ac_cv_c_compiler_gnu
22315
22316
22317fi
22318echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22319echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22320if test "$ac_cv_cxx_const_cast" = yes; then
22321
22322cat >>confdefs.h <<\_ACEOF
22323#define HAVE_CONST_CAST
22324_ACEOF
22325
22326fi
22327
7714864e
RL
22328echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22329echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22330if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22331 echo $ECHO_N "(cached) $ECHO_C" >&6
22332else
22333
22334
22335 ac_ext=cc
22336ac_cpp='$CXXCPP $CPPFLAGS'
22337ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22338ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22339ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22340
22341 cat >conftest.$ac_ext <<_ACEOF
22342/* confdefs.h. */
22343_ACEOF
22344cat confdefs.h >>conftest.$ac_ext
22345cat >>conftest.$ac_ext <<_ACEOF
22346/* end confdefs.h. */
22347#include <typeinfo>
22348class Base { public : Base () {} virtual void f () = 0;};
22349class Derived : public Base { public : Derived () {} virtual void f () {} };
22350class Unrelated { public : Unrelated () {} };
22351int g (Unrelated&) { return 0; }
22352int
22353main ()
22354{
22355
22356Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22357 ;
22358 return 0;
22359}
22360_ACEOF
22361rm -f conftest.$ac_objext
22362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22363 (eval $ac_compile) 2>conftest.er1
22364 ac_status=$?
22365 grep -v '^ *+' conftest.er1 >conftest.err
22366 rm -f conftest.er1
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22369 (exit $ac_status); } &&
5ff751d6 22370 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22372 (eval $ac_try) 2>&5
22373 ac_status=$?
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); }; } &&
22376 { ac_try='test -s conftest.$ac_objext'
22377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378 (eval $ac_try) 2>&5
22379 ac_status=$?
22380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381 (exit $ac_status); }; }; then
22382 ac_cv_cxx_reinterpret_cast=yes
22383else
22384 echo "$as_me: failed program was:" >&5
22385sed 's/^/| /' conftest.$ac_ext >&5
22386
22387ac_cv_cxx_reinterpret_cast=no
22388fi
22389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22390 ac_ext=c
22391ac_cpp='$CPP $CPPFLAGS'
22392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22394ac_compiler_gnu=$ac_cv_c_compiler_gnu
22395
22396
22397fi
22398echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22399echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22400if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22401
22402cat >>confdefs.h <<\_ACEOF
22403#define HAVE_REINTERPRET_CAST
22404_ACEOF
22405
22406fi
22407
a848cd7e
SC
22408echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22409echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22410if test "${ac_cv_cxx_static_cast+set}" = set; then
22411 echo $ECHO_N "(cached) $ECHO_C" >&6
22412else
22413
22414
22415 ac_ext=cc
22416ac_cpp='$CXXCPP $CPPFLAGS'
22417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22420
22421 cat >conftest.$ac_ext <<_ACEOF
22422/* confdefs.h. */
22423_ACEOF
22424cat confdefs.h >>conftest.$ac_ext
22425cat >>conftest.$ac_ext <<_ACEOF
22426/* end confdefs.h. */
22427#include <typeinfo>
22428class Base { public : Base () {} virtual void f () = 0; };
22429class Derived : public Base { public : Derived () {} virtual void f () {} };
22430int g (Derived&) { return 0; }
22431int
22432main ()
22433{
22434
22435Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22436 ;
22437 return 0;
22438}
22439_ACEOF
22440rm -f conftest.$ac_objext
22441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22442 (eval $ac_compile) 2>conftest.er1
a848cd7e 22443 ac_status=$?
ac1cb8d3
VS
22444 grep -v '^ *+' conftest.er1 >conftest.err
22445 rm -f conftest.er1
22446 cat conftest.err >&5
a848cd7e
SC
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); } &&
5ff751d6 22449 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22451 (eval $ac_try) 2>&5
22452 ac_status=$?
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); }; } &&
22455 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22457 (eval $ac_try) 2>&5
22458 ac_status=$?
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); }; }; then
22461 ac_cv_cxx_static_cast=yes
22462else
22463 echo "$as_me: failed program was:" >&5
22464sed 's/^/| /' conftest.$ac_ext >&5
22465
22466ac_cv_cxx_static_cast=no
22467fi
ac1cb8d3 22468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22469 ac_ext=c
22470ac_cpp='$CPP $CPPFLAGS'
22471ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22472ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22473ac_compiler_gnu=$ac_cv_c_compiler_gnu
22474
22475
22476fi
22477echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22478echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22479if test "$ac_cv_cxx_static_cast" = yes; then
22480
22481cat >>confdefs.h <<\_ACEOF
22482#define HAVE_STATIC_CAST
22483_ACEOF
22484
22485fi
22486
22487
3c28b7cb 22488if test "x$SUNCXX" = xyes; then
c92ad099 22489 CXXFLAGS="-features=tmplife $CXXFLAGS"
3c28b7cb
MW
22490fi
22491
9122d155 22492if test "x$SUNCC" = xyes; then
c92ad099 22493 CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
9122d155
VZ
22494fi
22495
0ad5d837 22496if test "x$SGICC" = "xyes"; then
c92ad099 22497 CFLAGS="-woff 3970 $CFLAGS"
0ad5d837
VZ
22498fi
22499if test "x$SGICXX" = "xyes"; then
c92ad099 22500 CXXFLAGS="-woff 3970 $CXXFLAGS"
0ad5d837
VZ
22501fi
22502
2eef8513 22503if test "x$HPCC" = "xyes"; then
c92ad099 22504 CFLAGS="+W 2011,2450 $CFLAGS"
2eef8513
VZ
22505fi
22506if test "x$HPCXX" = "xyes"; then
c92ad099 22507 CXXFLAGS="+W 2340 $CXXFLAGS"
2eef8513
VZ
22508fi
22509
22510if test "x$COMPAQCXX" = "xyes"; then
22511 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22512fi
22513
f56c22b4 22514if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22515 ac_ext=cc
22516ac_cpp='$CXXCPP $CPPFLAGS'
22517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22520
22521
f56c22b4
MW
22522 if test "$wxUSE_UNICODE" = "yes"; then
22523 std_string="std::wstring"
22524 char_type="wchar_t"
22525 else
22526 std_string="std::string"
22527 char_type="char"
22528 fi
22529
22530 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22531echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22532 cat >conftest.$ac_ext <<_ACEOF
22533/* confdefs.h. */
22534_ACEOF
22535cat confdefs.h >>conftest.$ac_ext
22536cat >>conftest.$ac_ext <<_ACEOF
22537/* end confdefs.h. */
22538#include <string>
a848cd7e
SC
22539int
22540main ()
22541{
f56c22b4 22542$std_string foo;
a848cd7e
SC
22543 ;
22544 return 0;
22545}
22546_ACEOF
22547rm -f conftest.$ac_objext
22548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22549 (eval $ac_compile) 2>conftest.er1
a848cd7e 22550 ac_status=$?
ac1cb8d3
VS
22551 grep -v '^ *+' conftest.er1 >conftest.err
22552 rm -f conftest.er1
22553 cat conftest.err >&5
a848cd7e
SC
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } &&
5ff751d6 22556 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 (eval $ac_try) 2>&5
22559 ac_status=$?
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); }; } &&
22562 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564 (eval $ac_try) 2>&5
22565 ac_status=$?
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); }; }; then
22568 echo "$as_me:$LINENO: result: yes" >&5
22569echo "${ECHO_T}yes" >&6
0a08f02a
MB
22570 cat >>confdefs.h <<\_ACEOF
22571#define HAVE_STD_WSTRING 1
22572_ACEOF
22573
a848cd7e
SC
22574else
22575 echo "$as_me: failed program was:" >&5
22576sed 's/^/| /' conftest.$ac_ext >&5
22577
22578echo "$as_me:$LINENO: result: no" >&5
22579echo "${ECHO_T}no" >&6
f56c22b4
MW
22580 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22581echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22582 cat >conftest.$ac_ext <<_ACEOF
22583/* confdefs.h. */
22584_ACEOF
22585cat confdefs.h >>conftest.$ac_ext
22586cat >>conftest.$ac_ext <<_ACEOF
22587/* end confdefs.h. */
22588
22589 #ifdef HAVE_WCHAR_H
22590 # ifdef __CYGWIN__
22591 # include <stddef.h>
22592 # endif
22593 # include <wchar.h>
22594 #endif
22595 #ifdef HAVE_STDLIB_H
22596 # include <stdlib.h>
22597 #endif
22598 #include <stdio.h>
22599 #include <string>
22600
22601int
22602main ()
22603{
f56c22b4
MW
22604std::basic_string<$char_type> foo;
22605 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22606 ;
22607 return 0;
22608}
22609_ACEOF
22610rm -f conftest.$ac_objext
22611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22612 (eval $ac_compile) 2>conftest.er1
22613 ac_status=$?
22614 grep -v '^ *+' conftest.er1 >conftest.err
22615 rm -f conftest.er1
22616 cat conftest.err >&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); } &&
5ff751d6 22619 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
22620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22621 (eval $ac_try) 2>&5
22622 ac_status=$?
22623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22624 (exit $ac_status); }; } &&
22625 { ac_try='test -s conftest.$ac_objext'
22626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22627 (eval $ac_try) 2>&5
22628 ac_status=$?
22629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22630 (exit $ac_status); }; }; then
22631 echo "$as_me:$LINENO: result: yes" >&5
22632echo "${ECHO_T}yes" >&6
22633else
22634 echo "$as_me: failed program was:" >&5
22635sed 's/^/| /' conftest.$ac_ext >&5
22636
22637echo "$as_me:$LINENO: result: no" >&5
22638echo "${ECHO_T}no" >&6
f56c22b4 22639 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22640 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22641echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22642 { (exit 1); exit 1; }; }
22643 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22644 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22645echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22646 { (exit 1); exit 1; }; }
f56c22b4
MW
22647 else
22648 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22649echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22650 wxUSE_STD_STRING=no
22651 fi
22652
0a08f02a 22653
a848cd7e 22654fi
ac1cb8d3 22655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22656
0a08f02a
MB
22657fi
22658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22659
22660 ac_ext=c
22661ac_cpp='$CPP $CPPFLAGS'
22662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22664ac_compiler_gnu=$ac_cv_c_compiler_gnu
22665
22666fi
22667
22668if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22669 ac_ext=cc
22670ac_cpp='$CXXCPP $CPPFLAGS'
22671ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22672ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22673ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22674
22675
22676 echo "$as_me:$LINENO: checking for std::istream" >&5
22677echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22678if test "${ac_cv_type_std__istream+set}" = set; then
22679 echo $ECHO_N "(cached) $ECHO_C" >&6
22680else
22681 cat >conftest.$ac_ext <<_ACEOF
22682/* confdefs.h. */
22683_ACEOF
22684cat confdefs.h >>conftest.$ac_ext
22685cat >>conftest.$ac_ext <<_ACEOF
22686/* end confdefs.h. */
22687#include <iostream>
22688
22689int
22690main ()
22691{
22692if ((std::istream *) 0)
22693 return 0;
22694if (sizeof (std::istream))
22695 return 0;
22696 ;
22697 return 0;
22698}
22699_ACEOF
22700rm -f conftest.$ac_objext
22701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22702 (eval $ac_compile) 2>conftest.er1
22703 ac_status=$?
22704 grep -v '^ *+' conftest.er1 >conftest.err
22705 rm -f conftest.er1
22706 cat conftest.err >&5
22707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); } &&
5ff751d6 22709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711 (eval $ac_try) 2>&5
22712 ac_status=$?
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); }; } &&
22715 { ac_try='test -s conftest.$ac_objext'
22716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22717 (eval $ac_try) 2>&5
22718 ac_status=$?
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; }; then
22721 ac_cv_type_std__istream=yes
22722else
22723 echo "$as_me: failed program was:" >&5
22724sed 's/^/| /' conftest.$ac_ext >&5
22725
22726ac_cv_type_std__istream=no
22727fi
22728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22729fi
22730echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22731echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22732if test $ac_cv_type_std__istream = yes; then
22733
22734cat >>confdefs.h <<_ACEOF
22735#define HAVE_STD__ISTREAM 1
22736_ACEOF
22737
22738
22739else
22740 wxUSE_STD_IOSTREAM=no
22741fi
22742echo "$as_me:$LINENO: checking for std::ostream" >&5
22743echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22744if test "${ac_cv_type_std__ostream+set}" = set; then
22745 echo $ECHO_N "(cached) $ECHO_C" >&6
22746else
22747 cat >conftest.$ac_ext <<_ACEOF
22748/* confdefs.h. */
22749_ACEOF
22750cat confdefs.h >>conftest.$ac_ext
22751cat >>conftest.$ac_ext <<_ACEOF
22752/* end confdefs.h. */
22753#include <iostream>
22754
22755int
22756main ()
22757{
22758if ((std::ostream *) 0)
22759 return 0;
22760if (sizeof (std::ostream))
22761 return 0;
22762 ;
22763 return 0;
22764}
22765_ACEOF
22766rm -f conftest.$ac_objext
22767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22768 (eval $ac_compile) 2>conftest.er1
22769 ac_status=$?
22770 grep -v '^ *+' conftest.er1 >conftest.err
22771 rm -f conftest.er1
22772 cat conftest.err >&5
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); } &&
5ff751d6 22775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22778 ac_status=$?
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; } &&
22781 { ac_try='test -s conftest.$ac_objext'
22782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783 (eval $ac_try) 2>&5
22784 ac_status=$?
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; }; then
22787 ac_cv_type_std__ostream=yes
22788else
22789 echo "$as_me: failed program was:" >&5
22790sed 's/^/| /' conftest.$ac_ext >&5
22791
22792ac_cv_type_std__ostream=no
22793fi
22794rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22795fi
22796echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22797echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22798if test $ac_cv_type_std__ostream = yes; then
22799
22800cat >>confdefs.h <<_ACEOF
22801#define HAVE_STD__OSTREAM 1
22802_ACEOF
22803
22804
22805else
22806 wxUSE_STD_IOSTREAM=no
22807fi
22808
22809
22810 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22811 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22812 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22813echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22814 { (exit 1); exit 1; }; }
22815 else
22816 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22817echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22818 fi
f56c22b4
MW
22819 fi
22820
22821 ac_ext=c
22822ac_cpp='$CPP $CPPFLAGS'
22823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22825ac_compiler_gnu=$ac_cv_c_compiler_gnu
22826
22827fi
22828
22829if test "$wxUSE_STL" = "yes"; then
22830 ac_ext=cc
22831ac_cpp='$CXXCPP $CPPFLAGS'
22832ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22833ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22834ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22835
22836
22837 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22838echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22839 cat >conftest.$ac_ext <<_ACEOF
22840/* confdefs.h. */
22841_ACEOF
22842cat confdefs.h >>conftest.$ac_ext
22843cat >>conftest.$ac_ext <<_ACEOF
22844/* end confdefs.h. */
22845#include <string>
0a08f02a
MB
22846 #include <functional>
22847 #include <algorithm>
22848 #include <vector>
22849 #include <list>
a848cd7e
SC
22850int
22851main ()
22852{
0a08f02a
MB
22853std::vector<int> moo;
22854 std::list<int> foo;
22855 std::vector<int>::iterator it =
22856 std::find_if(moo.begin(), moo.end(),
22857 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
22858 ;
22859 return 0;
22860}
22861_ACEOF
22862rm -f conftest.$ac_objext
22863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22864 (eval $ac_compile) 2>conftest.er1
a848cd7e 22865 ac_status=$?
ac1cb8d3
VS
22866 grep -v '^ *+' conftest.er1 >conftest.err
22867 rm -f conftest.er1
22868 cat conftest.err >&5
a848cd7e
SC
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); } &&
5ff751d6 22871 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22873 (eval $ac_try) 2>&5
22874 ac_status=$?
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); }; } &&
22877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22879 (eval $ac_try) 2>&5
22880 ac_status=$?
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); }; }; then
22883 echo "$as_me:$LINENO: result: yes" >&5
22884echo "${ECHO_T}yes" >&6
a848cd7e
SC
22885else
22886 echo "$as_me: failed program was:" >&5
22887sed 's/^/| /' conftest.$ac_ext >&5
22888
22889echo "$as_me:$LINENO: result: no" >&5
22890echo "${ECHO_T}no" >&6
0a08f02a
MB
22891 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22892echo "$as_me: error: Basic STL functionality missing" >&2;}
22893 { (exit 1); exit 1; }; }
a848cd7e 22894fi
ac1cb8d3 22895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22896
22897 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22898echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22899 cat >conftest.$ac_ext <<_ACEOF
22900/* confdefs.h. */
22901_ACEOF
22902cat confdefs.h >>conftest.$ac_ext
22903cat >>conftest.$ac_ext <<_ACEOF
22904/* end confdefs.h. */
22905#include <string>
22906int
22907main ()
22908{
22909std::string foo, bar;
22910 foo.compare(bar);
22911 foo.compare(1, 1, bar);
22912 foo.compare(1, 1, bar, 1, 1);
22913 foo.compare("");
22914 foo.compare(1, 1, "");
22915 foo.compare(1, 1, "", 2);
22916 ;
22917 return 0;
22918}
22919_ACEOF
22920rm -f conftest.$ac_objext
22921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22922 (eval $ac_compile) 2>conftest.er1
a848cd7e 22923 ac_status=$?
ac1cb8d3
VS
22924 grep -v '^ *+' conftest.er1 >conftest.err
22925 rm -f conftest.er1
22926 cat conftest.err >&5
a848cd7e
SC
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); } &&
5ff751d6 22929 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; } &&
22935 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937 (eval $ac_try) 2>&5
22938 ac_status=$?
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); }; }; then
22941 echo "$as_me:$LINENO: result: yes" >&5
22942echo "${ECHO_T}yes" >&6
22943 cat >>confdefs.h <<\_ACEOF
22944#define HAVE_STD_STRING_COMPARE 1
22945_ACEOF
22946
22947else
22948 echo "$as_me: failed program was:" >&5
22949sed 's/^/| /' conftest.$ac_ext >&5
22950
22951echo "$as_me:$LINENO: result: no" >&5
22952echo "${ECHO_T}no" >&6
22953fi
ac1cb8d3 22954rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22955
22956 if test "${ac_cv_header_hash_map+set}" = set; then
22957 echo "$as_me:$LINENO: checking for hash_map" >&5
22958echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22959if test "${ac_cv_header_hash_map+set}" = set; then
22960 echo $ECHO_N "(cached) $ECHO_C" >&6
22961fi
22962echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22963echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22964else
22965 # Is the header compilable?
22966echo "$as_me:$LINENO: checking hash_map usability" >&5
22967echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22968cat >conftest.$ac_ext <<_ACEOF
22969/* confdefs.h. */
22970_ACEOF
22971cat confdefs.h >>conftest.$ac_ext
22972cat >>conftest.$ac_ext <<_ACEOF
22973/* end confdefs.h. */
22974$ac_includes_default
22975#include <hash_map>
22976_ACEOF
22977rm -f conftest.$ac_objext
22978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22979 (eval $ac_compile) 2>conftest.er1
bdcade0a 22980 ac_status=$?
ac1cb8d3
VS
22981 grep -v '^ *+' conftest.er1 >conftest.err
22982 rm -f conftest.er1
22983 cat conftest.err >&5
bdcade0a
MB
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); } &&
5ff751d6 22986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22989 ac_status=$?
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); }; } &&
22992 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22994 (eval $ac_try) 2>&5
22995 ac_status=$?
22996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22997 (exit $ac_status); }; }; then
22998 ac_header_compiler=yes
22999else
23000 echo "$as_me: failed program was:" >&5
23001sed 's/^/| /' conftest.$ac_ext >&5
23002
23003ac_header_compiler=no
23004fi
ac1cb8d3 23005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23006echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23007echo "${ECHO_T}$ac_header_compiler" >&6
23008
23009# Is the header present?
23010echo "$as_me:$LINENO: checking hash_map presence" >&5
23011echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23012cat >conftest.$ac_ext <<_ACEOF
23013/* confdefs.h. */
23014_ACEOF
23015cat confdefs.h >>conftest.$ac_ext
23016cat >>conftest.$ac_ext <<_ACEOF
23017/* end confdefs.h. */
23018#include <hash_map>
23019_ACEOF
23020if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23022 ac_status=$?
23023 grep -v '^ *+' conftest.er1 >conftest.err
23024 rm -f conftest.er1
23025 cat conftest.err >&5
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); } >/dev/null; then
23028 if test -s conftest.err; then
23029 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23030 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23031 else
23032 ac_cpp_err=
23033 fi
23034else
23035 ac_cpp_err=yes
23036fi
23037if test -z "$ac_cpp_err"; then
23038 ac_header_preproc=yes
23039else
23040 echo "$as_me: failed program was:" >&5
23041sed 's/^/| /' conftest.$ac_ext >&5
23042
23043 ac_header_preproc=no
23044fi
23045rm -f conftest.err conftest.$ac_ext
23046echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23047echo "${ECHO_T}$ac_header_preproc" >&6
23048
23049# So? What about this header?
ac1cb8d3
VS
23050case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23051 yes:no: )
bdcade0a
MB
23052 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23053echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23054 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23055echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23056 ac_header_preproc=yes
bdcade0a 23057 ;;
ac1cb8d3 23058 no:yes:* )
bdcade0a
MB
23059 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23060echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23061 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23062echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23063 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23064echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23065 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23066echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23067 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23068echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23069 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23070echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23071 (
23072 cat <<\_ASBOX
ac1cb8d3
VS
23073## ----------------------------------------- ##
23074## Report this to wx-dev@lists.wxwidgets.org ##
23075## ----------------------------------------- ##
bdcade0a
MB
23076_ASBOX
23077 ) |
23078 sed "s/^/$as_me: WARNING: /" >&2
23079 ;;
23080esac
23081echo "$as_me:$LINENO: checking for hash_map" >&5
23082echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23083if test "${ac_cv_header_hash_map+set}" = set; then
23084 echo $ECHO_N "(cached) $ECHO_C" >&6
23085else
23086 ac_cv_header_hash_map=$ac_header_preproc
23087fi
23088echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23089echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23090
23091fi
23092if test $ac_cv_header_hash_map = yes; then
23093 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23094echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23095 cat >conftest.$ac_ext <<_ACEOF
23096/* confdefs.h. */
23097_ACEOF
23098cat confdefs.h >>conftest.$ac_ext
23099cat >>conftest.$ac_ext <<_ACEOF
23100/* end confdefs.h. */
23101#include <hash_map>
23102 #include <hash_set>
23103int
23104main ()
23105{
23106std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23107 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23108 ;
23109 return 0;
23110}
23111_ACEOF
23112rm -f conftest.$ac_objext
23113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23114 (eval $ac_compile) 2>conftest.er1
bdcade0a 23115 ac_status=$?
ac1cb8d3
VS
23116 grep -v '^ *+' conftest.er1 >conftest.err
23117 rm -f conftest.er1
23118 cat conftest.err >&5
bdcade0a
MB
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); } &&
5ff751d6 23121 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23123 (eval $ac_try) 2>&5
23124 ac_status=$?
23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23126 (exit $ac_status); }; } &&
23127 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23129 (eval $ac_try) 2>&5
23130 ac_status=$?
23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23132 (exit $ac_status); }; }; then
23133 echo "$as_me:$LINENO: result: yes" >&5
23134echo "${ECHO_T}yes" >&6
23135 cat >>confdefs.h <<\_ACEOF
23136#define HAVE_HASH_MAP 1
23137_ACEOF
23138
23139 cat >>confdefs.h <<\_ACEOF
23140#define HAVE_STD_HASH_MAP 1
23141_ACEOF
23142
23143else
23144 echo "$as_me: failed program was:" >&5
23145sed 's/^/| /' conftest.$ac_ext >&5
23146
23147echo "$as_me:$LINENO: result: no" >&5
23148echo "${ECHO_T}no" >&6
23149fi
ac1cb8d3 23150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23151
23152fi
23153
23154
23155
23156 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23157 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23158echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23159if test "${ac_cv_header_ext_hash_map+set}" = set; then
23160 echo $ECHO_N "(cached) $ECHO_C" >&6
23161fi
23162echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23163echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23164else
23165 # Is the header compilable?
23166echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23167echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23168cat >conftest.$ac_ext <<_ACEOF
23169/* confdefs.h. */
23170_ACEOF
23171cat confdefs.h >>conftest.$ac_ext
23172cat >>conftest.$ac_ext <<_ACEOF
23173/* end confdefs.h. */
23174$ac_includes_default
23175#include <ext/hash_map>
23176_ACEOF
23177rm -f conftest.$ac_objext
23178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23179 (eval $ac_compile) 2>conftest.er1
bdcade0a 23180 ac_status=$?
ac1cb8d3
VS
23181 grep -v '^ *+' conftest.er1 >conftest.err
23182 rm -f conftest.er1
23183 cat conftest.err >&5
bdcade0a
MB
23184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23185 (exit $ac_status); } &&
5ff751d6 23186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23188 (eval $ac_try) 2>&5
23189 ac_status=$?
23190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191 (exit $ac_status); }; } &&
23192 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23194 (eval $ac_try) 2>&5
23195 ac_status=$?
23196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23197 (exit $ac_status); }; }; then
23198 ac_header_compiler=yes
23199else
23200 echo "$as_me: failed program was:" >&5
23201sed 's/^/| /' conftest.$ac_ext >&5
23202
23203ac_header_compiler=no
23204fi
ac1cb8d3 23205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23206echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23207echo "${ECHO_T}$ac_header_compiler" >&6
23208
23209# Is the header present?
23210echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23211echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23212cat >conftest.$ac_ext <<_ACEOF
23213/* confdefs.h. */
23214_ACEOF
23215cat confdefs.h >>conftest.$ac_ext
23216cat >>conftest.$ac_ext <<_ACEOF
23217/* end confdefs.h. */
23218#include <ext/hash_map>
23219_ACEOF
23220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23222 ac_status=$?
23223 grep -v '^ *+' conftest.er1 >conftest.err
23224 rm -f conftest.er1
23225 cat conftest.err >&5
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); } >/dev/null; then
23228 if test -s conftest.err; then
23229 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23230 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23231 else
23232 ac_cpp_err=
23233 fi
23234else
23235 ac_cpp_err=yes
23236fi
23237if test -z "$ac_cpp_err"; then
23238 ac_header_preproc=yes
23239else
23240 echo "$as_me: failed program was:" >&5
23241sed 's/^/| /' conftest.$ac_ext >&5
23242
23243 ac_header_preproc=no
23244fi
23245rm -f conftest.err conftest.$ac_ext
23246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23247echo "${ECHO_T}$ac_header_preproc" >&6
23248
23249# So? What about this header?
ac1cb8d3
VS
23250case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23251 yes:no: )
bdcade0a
MB
23252 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23253echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23254 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23255echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23256 ac_header_preproc=yes
bdcade0a 23257 ;;
ac1cb8d3 23258 no:yes:* )
bdcade0a
MB
23259 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23260echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23261 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23262echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23263 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23264echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23265 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23266echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23267 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23268echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23269 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23270echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23271 (
23272 cat <<\_ASBOX
ac1cb8d3
VS
23273## ----------------------------------------- ##
23274## Report this to wx-dev@lists.wxwidgets.org ##
23275## ----------------------------------------- ##
bdcade0a
MB
23276_ASBOX
23277 ) |
23278 sed "s/^/$as_me: WARNING: /" >&2
23279 ;;
23280esac
23281echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23282echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23283if test "${ac_cv_header_ext_hash_map+set}" = set; then
23284 echo $ECHO_N "(cached) $ECHO_C" >&6
23285else
23286 ac_cv_header_ext_hash_map=$ac_header_preproc
23287fi
23288echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23289echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23290
23291fi
23292if test $ac_cv_header_ext_hash_map = yes; then
23293 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23294echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23295 cat >conftest.$ac_ext <<_ACEOF
23296/* confdefs.h. */
23297_ACEOF
23298cat confdefs.h >>conftest.$ac_ext
23299cat >>conftest.$ac_ext <<_ACEOF
23300/* end confdefs.h. */
23301#include <ext/hash_map>
23302 #include <ext/hash_set>
23303int
23304main ()
23305{
23306__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23307 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23308 ;
23309 return 0;
23310}
23311_ACEOF
23312rm -f conftest.$ac_objext
23313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23314 (eval $ac_compile) 2>conftest.er1
bdcade0a 23315 ac_status=$?
ac1cb8d3
VS
23316 grep -v '^ *+' conftest.er1 >conftest.err
23317 rm -f conftest.er1
23318 cat conftest.err >&5
bdcade0a
MB
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); } &&
5ff751d6 23321 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; } &&
23327 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23329 (eval $ac_try) 2>&5
23330 ac_status=$?
23331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332 (exit $ac_status); }; }; then
23333 echo "$as_me:$LINENO: result: yes" >&5
23334echo "${ECHO_T}yes" >&6
23335 cat >>confdefs.h <<\_ACEOF
23336#define HAVE_EXT_HASH_MAP 1
23337_ACEOF
23338
23339 cat >>confdefs.h <<\_ACEOF
23340#define HAVE_GNU_CXX_HASH_MAP 1
23341_ACEOF
23342
23343else
23344 echo "$as_me: failed program was:" >&5
23345sed 's/^/| /' conftest.$ac_ext >&5
23346
23347echo "$as_me:$LINENO: result: no" >&5
23348echo "${ECHO_T}no" >&6
23349fi
ac1cb8d3 23350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23351
23352fi
23353
23354
a848cd7e
SC
23355
23356 ac_ext=c
23357ac_cpp='$CPP $CPPFLAGS'
23358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23360ac_compiler_gnu=$ac_cv_c_compiler_gnu
23361
23362fi
23363
23364
23365SEARCH_INCLUDE="\
23366 /usr/local/include \
23367 \
23368 /usr/Motif-2.1/include \
23369 /usr/Motif-1.2/include \
23370 /usr/include/Motif1.2 \
a848cd7e
SC
23371 \
23372 /usr/dt/include \
23373 /usr/openwin/include \
23374 \
23375 /usr/include/Xm \
23376 \
23377 /usr/X11R6/include \
23378 /usr/X11R6.4/include \
23379 /usr/X11R5/include \
23380 /usr/X11R4/include \
23381 \
23382 /usr/include/X11R6 \
23383 /usr/include/X11R5 \
23384 /usr/include/X11R4 \
23385 \
23386 /usr/local/X11R6/include \
23387 /usr/local/X11R5/include \
23388 /usr/local/X11R4/include \
23389 \
23390 /usr/local/include/X11R6 \
23391 /usr/local/include/X11R5 \
23392 /usr/local/include/X11R4 \
23393 \
23394 /usr/X11/include \
23395 /usr/include/X11 \
23396 /usr/local/X11/include \
23397 /usr/local/include/X11 \
23398 \
a848cd7e 23399 /usr/XFree86/include/X11 \
e051b34e
MW
23400 /usr/pkg/include \
23401 \
a848cd7e
SC
23402 /usr/openwin/share/include"
23403
6f9cf1e6 23404echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23405echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23406
23407case "${host}" in
23408 *-*-irix6* )
23409 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23410 echo $ECHO_N "(cached) $ECHO_C" >&6
23411else
23412
c687b303
VZ
23413 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23414 for e in a so sl dylib dll.a; do
23415 libc="$d/libc.$e"
23416 if test -f $libc; then
23417 save_LIBS="$LIBS"
23418 LIBS="$libc"
23419 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23420int main() { return 0; }
23421_ACEOF
23422rm -f conftest.$ac_objext conftest$ac_exeext
23423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23424 (eval $ac_link) 2>conftest.er1
23425 ac_status=$?
23426 grep -v '^ *+' conftest.er1 >conftest.err
23427 rm -f conftest.er1
23428 cat conftest.err >&5
23429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430 (exit $ac_status); } &&
5ff751d6 23431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
23432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433 (eval $ac_try) 2>&5
23434 ac_status=$?
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); }; } &&
23437 { ac_try='test -s conftest$ac_exeext'
23438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439 (eval $ac_try) 2>&5
23440 ac_status=$?
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); }; }; then
23443 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23444else
23445 echo "$as_me: failed program was:" >&5
23446sed 's/^/| /' conftest.$ac_ext >&5
23447
23448fi
23449rm -f conftest.err conftest.$ac_objext \
23450 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23451 LIBS="$save_LIBS"
23452 if test "x$wx_cv_std_libpath" != "x"; then
23453 break 2
23454 fi
23455 fi
23456 done
23457 done
23458 if test "x$wx_cv_std_libpath" = "x"; then
23459 wx_cv_std_libpath="lib"
0ad5d837 23460 fi
0ad5d837
VZ
23461
23462
23463fi
6f9cf1e6
MW
23464
23465 ;;
23466
23467 *-*-solaris2* )
23468 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23469 wx_cv_std_libpath="lib/64"
23470 else
23471 wx_cv_std_libpath="lib"
23472 fi
23473 ;;
23474
23475 *-*-linux* )
23476 if test "$ac_cv_sizeof_void_p" = 8 -a \
23477 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23478 wx_cv_std_libpath="lib64"
23479 else
23480 wx_cv_std_libpath="lib"
23481 fi
c687b303
VZ
23482 ;;
23483
23484 *)
23485 wx_cv_std_libpath="lib";
23486 ;;
23487esac
0ad5d837 23488
6f9cf1e6
MW
23489echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23490echo "${ECHO_T}$wx_cv_std_libpath" >&6
23491
23492SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23493
3eca31dc
MW
23494if test "$build" != "$host" -a "$GCC" = yes; then
23495 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23496 cross_root=`dirname $cross_root`
23497 cross_root=`dirname $cross_root`
23498
23499 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23500 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23501 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23502
23503 if test -z "$PKG_CONFIG_PATH"; then
23504 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23505 export PKG_CONFIG_PATH
23506 fi
23507
23508 if test -z "$x_includes" -o "$x_includes" = NONE; then
23509
23510ac_find_includes=
23511for ac_dir in $SEARCH_INCLUDE /usr/include;
23512 do
23513 if test -f "$ac_dir/X11/Intrinsic.h"; then
23514 ac_find_includes=$ac_dir
23515 break
23516 fi
23517 done
23518
23519 x_includes=$ac_find_includes
23520 fi
23521 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23522
0ad5d837
VZ
23523 ac_find_libraries=
23524 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23525 do
23526 for ac_extension in a so sl dylib dll.a; do
23527 if test -f "$ac_dir/libXt.$ac_extension"; then
23528 ac_find_libraries=$ac_dir
23529 break 2
23530 fi
23531 done
23532 done
23533
23534 x_libraries=$ac_find_libraries
23535 fi
23536 fi
23537fi
23538
a848cd7e
SC
23539
23540cat >confcache <<\_ACEOF
23541# This file is a shell script that caches the results of configure
23542# tests run on this system so they can be shared between configure
23543# scripts and configure runs, see configure's option --config-cache.
23544# It is not useful on other systems. If it contains results you don't
23545# want to keep, you may remove or edit it.
23546#
23547# config.status only pays attention to the cache file if you give it
23548# the --recheck option to rerun configure.
23549#
23550# `ac_cv_env_foo' variables (set or unset) will be overridden when
23551# loading this file, other *unset* `ac_cv_foo' will be assigned the
23552# following values.
23553
23554_ACEOF
23555
23556# The following way of writing the cache mishandles newlines in values,
23557# but we know of no workaround that is simple, portable, and efficient.
23558# So, don't put newlines in cache variables' values.
23559# Ultrix sh set writes to stderr and can't be redirected directly,
23560# and sets the high bit in the cache file unless we assign to the vars.
23561{
23562 (set) 2>&1 |
23563 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23564 *ac_space=\ *)
23565 # `set' does not quote correctly, so add quotes (double-quote
23566 # substitution turns \\\\ into \\, and sed turns \\ into \).
23567 sed -n \
ac1cb8d3
VS
23568 "s/'/'\\\\''/g;
23569 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23570 ;;
23571 *)
23572 # `set' quotes correctly as required by POSIX, so do not add quotes.
23573 sed -n \
ac1cb8d3 23574 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23575 ;;
23576 esac;
23577} |
23578 sed '
23579 t clear
23580 : clear
23581 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23582 t end
23583 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23584 : end' >>confcache
23585if diff $cache_file confcache >/dev/null 2>&1; then :; else
23586 if test -w $cache_file; then
23587 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23588 cat confcache >$cache_file
23589 else
23590 echo "not updating unwritable cache $cache_file"
23591 fi
23592fi
23593rm -f confcache
23594
23595if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23596 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23597echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23598if test "${wx_cv_lib_glibc21+set}" = set; then
23599 echo $ECHO_N "(cached) $ECHO_C" >&6
23600else
23601
23602 cat >conftest.$ac_ext <<_ACEOF
23603/* confdefs.h. */
23604_ACEOF
23605cat confdefs.h >>conftest.$ac_ext
23606cat >>conftest.$ac_ext <<_ACEOF
23607/* end confdefs.h. */
23608#include <features.h>
23609int
23610main ()
23611{
23612
23613 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23614 not glibc 2.1
a848cd7e
SC
23615 #endif
23616
23617 ;
23618 return 0;
23619}
23620_ACEOF
23621rm -f conftest.$ac_objext
23622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23623 (eval $ac_compile) 2>conftest.er1
a848cd7e 23624 ac_status=$?
ac1cb8d3
VS
23625 grep -v '^ *+' conftest.er1 >conftest.err
23626 rm -f conftest.er1
23627 cat conftest.err >&5
a848cd7e
SC
23628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23629 (exit $ac_status); } &&
5ff751d6 23630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23632 (eval $ac_try) 2>&5
23633 ac_status=$?
23634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635 (exit $ac_status); }; } &&
23636 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23638 (eval $ac_try) 2>&5
23639 ac_status=$?
23640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23641 (exit $ac_status); }; }; then
23642
23643 wx_cv_lib_glibc21=yes
23644
23645else
23646 echo "$as_me: failed program was:" >&5
23647sed 's/^/| /' conftest.$ac_ext >&5
23648
23649
23650 wx_cv_lib_glibc21=no
23651
23652
23653fi
ac1cb8d3 23654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23655
23656fi
23657echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23658echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23659 if test "$wx_cv_lib_glibc21" = "yes"; then
23660 cat >>confdefs.h <<\_ACEOF
23661#define wxHAVE_GLIBC2 1
23662_ACEOF
23663
23664 fi
23665fi
23666
23667if test "x$wx_cv_lib_glibc21" = "xyes"; then
23668 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23669 cat >>confdefs.h <<\_ACEOF
23670#define _GNU_SOURCE 1
23671_ACEOF
23672
23673 fi
23674fi
23675
23676
23677
23678if test "$wxUSE_REGEX" != "no"; then
23679 cat >>confdefs.h <<\_ACEOF
23680#define wxUSE_REGEX 1
23681_ACEOF
23682
23683
23684 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23685 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23686echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23687 wxUSE_REGEX=builtin
23688 fi
23689
23690 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23691 if test "${ac_cv_header_regex_h+set}" = set; then
23692 echo "$as_me:$LINENO: checking for regex.h" >&5
23693echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23694if test "${ac_cv_header_regex_h+set}" = set; then
23695 echo $ECHO_N "(cached) $ECHO_C" >&6
23696fi
23697echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23698echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23699else
23700 # Is the header compilable?
23701echo "$as_me:$LINENO: checking regex.h usability" >&5
23702echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23703cat >conftest.$ac_ext <<_ACEOF
23704/* confdefs.h. */
23705_ACEOF
23706cat confdefs.h >>conftest.$ac_ext
23707cat >>conftest.$ac_ext <<_ACEOF
23708/* end confdefs.h. */
23709$ac_includes_default
23710#include <regex.h>
23711_ACEOF
23712rm -f conftest.$ac_objext
23713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23714 (eval $ac_compile) 2>conftest.er1
a848cd7e 23715 ac_status=$?
ac1cb8d3
VS
23716 grep -v '^ *+' conftest.er1 >conftest.err
23717 rm -f conftest.er1
23718 cat conftest.err >&5
a848cd7e
SC
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); } &&
5ff751d6 23721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23723 (eval $ac_try) 2>&5
23724 ac_status=$?
23725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); }; } &&
23727 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23729 (eval $ac_try) 2>&5
23730 ac_status=$?
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); }; }; then
23733 ac_header_compiler=yes
23734else
23735 echo "$as_me: failed program was:" >&5
23736sed 's/^/| /' conftest.$ac_ext >&5
23737
23738ac_header_compiler=no
23739fi
ac1cb8d3 23740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23741echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23742echo "${ECHO_T}$ac_header_compiler" >&6
23743
23744# Is the header present?
23745echo "$as_me:$LINENO: checking regex.h presence" >&5
23746echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23747cat >conftest.$ac_ext <<_ACEOF
23748/* confdefs.h. */
23749_ACEOF
23750cat confdefs.h >>conftest.$ac_ext
23751cat >>conftest.$ac_ext <<_ACEOF
23752/* end confdefs.h. */
23753#include <regex.h>
23754_ACEOF
23755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23757 ac_status=$?
23758 grep -v '^ *+' conftest.er1 >conftest.err
23759 rm -f conftest.er1
23760 cat conftest.err >&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } >/dev/null; then
23763 if test -s conftest.err; then
23764 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23766 else
23767 ac_cpp_err=
23768 fi
23769else
23770 ac_cpp_err=yes
23771fi
23772if test -z "$ac_cpp_err"; then
23773 ac_header_preproc=yes
23774else
23775 echo "$as_me: failed program was:" >&5
23776sed 's/^/| /' conftest.$ac_ext >&5
23777
23778 ac_header_preproc=no
23779fi
23780rm -f conftest.err conftest.$ac_ext
23781echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23782echo "${ECHO_T}$ac_header_preproc" >&6
23783
23784# So? What about this header?
ac1cb8d3
VS
23785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23786 yes:no: )
a848cd7e
SC
23787 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23788echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23789 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23790echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23791 ac_header_preproc=yes
a848cd7e 23792 ;;
ac1cb8d3 23793 no:yes:* )
a848cd7e
SC
23794 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23795echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23796 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23797echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23798 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23799echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23800 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23801echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23802 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23803echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23804 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23805echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23806 (
23807 cat <<\_ASBOX
ac1cb8d3
VS
23808## ----------------------------------------- ##
23809## Report this to wx-dev@lists.wxwidgets.org ##
23810## ----------------------------------------- ##
a848cd7e
SC
23811_ASBOX
23812 ) |
23813 sed "s/^/$as_me: WARNING: /" >&2
23814 ;;
23815esac
23816echo "$as_me:$LINENO: checking for regex.h" >&5
23817echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23818if test "${ac_cv_header_regex_h+set}" = set; then
23819 echo $ECHO_N "(cached) $ECHO_C" >&6
23820else
23821 ac_cv_header_regex_h=$ac_header_preproc
23822fi
23823echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23824echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23825
23826fi
23827if test $ac_cv_header_regex_h = yes; then
23828
ab0f0edd
MW
23829
23830for ac_func in regcomp re_search
a848cd7e
SC
23831do
23832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23833echo "$as_me:$LINENO: checking for $ac_func" >&5
23834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23835if eval "test \"\${$as_ac_var+set}\" = set"; then
23836 echo $ECHO_N "(cached) $ECHO_C" >&6
23837else
23838 cat >conftest.$ac_ext <<_ACEOF
23839/* confdefs.h. */
23840_ACEOF
23841cat confdefs.h >>conftest.$ac_ext
23842cat >>conftest.$ac_ext <<_ACEOF
23843/* end confdefs.h. */
ac1cb8d3
VS
23844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23846#define $ac_func innocuous_$ac_func
23847
a848cd7e
SC
23848/* System header to define __stub macros and hopefully few prototypes,
23849 which can conflict with char $ac_func (); below.
23850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23851 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23852
a848cd7e
SC
23853#ifdef __STDC__
23854# include <limits.h>
23855#else
23856# include <assert.h>
23857#endif
ac1cb8d3
VS
23858
23859#undef $ac_func
23860
a848cd7e
SC
23861/* Override any gcc2 internal prototype to avoid an error. */
23862#ifdef __cplusplus
23863extern "C"
23864{
23865#endif
23866/* We use char because int might match the return type of a gcc2
23867 builtin and then its argument prototype would still apply. */
23868char $ac_func ();
23869/* The GNU C library defines this for functions which it implements
23870 to always fail with ENOSYS. Some functions are actually named
23871 something starting with __ and the normal name is an alias. */
23872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23873choke me
23874#else
23875char (*f) () = $ac_func;
23876#endif
23877#ifdef __cplusplus
23878}
23879#endif
23880
23881int
23882main ()
23883{
23884return f != $ac_func;
23885 ;
23886 return 0;
23887}
23888_ACEOF
23889rm -f conftest.$ac_objext conftest$ac_exeext
23890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23891 (eval $ac_link) 2>conftest.er1
a848cd7e 23892 ac_status=$?
ac1cb8d3
VS
23893 grep -v '^ *+' conftest.er1 >conftest.err
23894 rm -f conftest.er1
23895 cat conftest.err >&5
a848cd7e
SC
23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23897 (exit $ac_status); } &&
5ff751d6 23898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23900 (eval $ac_try) 2>&5
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); }; } &&
23904 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; }; then
23910 eval "$as_ac_var=yes"
23911else
23912 echo "$as_me: failed program was:" >&5
23913sed 's/^/| /' conftest.$ac_ext >&5
23914
23915eval "$as_ac_var=no"
23916fi
ac1cb8d3
VS
23917rm -f conftest.err conftest.$ac_objext \
23918 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23919fi
23920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23921echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23922if test `eval echo '${'$as_ac_var'}'` = yes; then
23923 cat >>confdefs.h <<_ACEOF
23924#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23925_ACEOF
23926
23927fi
23928done
23929
23930fi
23931
23932
23933
23934 if test "x$ac_cv_func_regcomp" != "xyes"; then
23935 if test "$wxUSE_REGEX" = "sys" ; then
23936 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23937echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23938 { (exit 1); exit 1; }; }
23939 else
23940 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23941echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23942 wxUSE_REGEX=builtin
23943 fi
23944 else
23945 wxUSE_REGEX=sys
23946 cat >>confdefs.h <<\_ACEOF
23947#define WX_NO_REGEX_ADVANCED 1
23948_ACEOF
23949
23950 fi
23951 fi
23952fi
23953
23954
23955ZLIB_LINK=
23956if test "$wxUSE_ZLIB" != "no" ; then
23957 cat >>confdefs.h <<\_ACEOF
23958#define wxUSE_ZLIB 1
23959_ACEOF
23960
23961
23962 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23963 if test "$USE_DARWIN" = 1; then
23964 system_zlib_h_ok="yes"
23965 else
23966 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23967echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23968if test "${ac_cv_header_zlib_h+set}" = set; then
23969 echo $ECHO_N "(cached) $ECHO_C" >&6
23970else
23971 if test "$cross_compiling" = yes; then
23972 unset ac_cv_header_zlib_h
23973
23974else
23975 cat >conftest.$ac_ext <<_ACEOF
23976/* confdefs.h. */
23977_ACEOF
23978cat confdefs.h >>conftest.$ac_ext
23979cat >>conftest.$ac_ext <<_ACEOF
23980/* end confdefs.h. */
23981
23982 #include <zlib.h>
23983 #include <stdio.h>
23984
23985 int main()
23986 {
23987 FILE *f=fopen("conftestval", "w");
23988 if (!f) exit(1);
23989 fprintf(f, "%s",
23990 ZLIB_VERSION[0] == '1' &&
23991 (ZLIB_VERSION[2] > '1' ||
23992 (ZLIB_VERSION[2] == '1' &&
23993 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23994 exit(0);
23995 }
23996
23997_ACEOF
23998rm -f conftest$ac_exeext
23999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24000 (eval $ac_link) 2>&5
24001 ac_status=$?
24002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24005 (eval $ac_try) 2>&5
24006 ac_status=$?
24007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24008 (exit $ac_status); }; }; then
24009 ac_cv_header_zlib_h=`cat conftestval`
24010else
24011 echo "$as_me: program exited with status $ac_status" >&5
24012echo "$as_me: failed program was:" >&5
24013sed 's/^/| /' conftest.$ac_ext >&5
24014
24015( exit $ac_status )
24016ac_cv_header_zlib_h=no
24017fi
ac1cb8d3 24018rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24019fi
24020
24021fi
24022echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24023echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24024 if test "${ac_cv_header_zlib_h+set}" = set; then
24025 echo "$as_me:$LINENO: checking for zlib.h" >&5
24026echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24027if test "${ac_cv_header_zlib_h+set}" = set; then
24028 echo $ECHO_N "(cached) $ECHO_C" >&6
24029fi
24030echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24031echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24032else
24033 # Is the header compilable?
24034echo "$as_me:$LINENO: checking zlib.h usability" >&5
24035echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24036cat >conftest.$ac_ext <<_ACEOF
24037/* confdefs.h. */
24038_ACEOF
24039cat confdefs.h >>conftest.$ac_ext
24040cat >>conftest.$ac_ext <<_ACEOF
24041/* end confdefs.h. */
24042$ac_includes_default
24043#include <zlib.h>
24044_ACEOF
24045rm -f conftest.$ac_objext
24046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24047 (eval $ac_compile) 2>conftest.er1
a848cd7e 24048 ac_status=$?
ac1cb8d3
VS
24049 grep -v '^ *+' conftest.er1 >conftest.err
24050 rm -f conftest.er1
24051 cat conftest.err >&5
a848cd7e
SC
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); } &&
5ff751d6 24054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056 (eval $ac_try) 2>&5
24057 ac_status=$?
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); }; } &&
24060 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24062 (eval $ac_try) 2>&5
24063 ac_status=$?
24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); }; }; then
24066 ac_header_compiler=yes
24067else
24068 echo "$as_me: failed program was:" >&5
24069sed 's/^/| /' conftest.$ac_ext >&5
24070
24071ac_header_compiler=no
24072fi
ac1cb8d3 24073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24074echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24075echo "${ECHO_T}$ac_header_compiler" >&6
24076
24077# Is the header present?
24078echo "$as_me:$LINENO: checking zlib.h presence" >&5
24079echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24080cat >conftest.$ac_ext <<_ACEOF
24081/* confdefs.h. */
24082_ACEOF
24083cat confdefs.h >>conftest.$ac_ext
24084cat >>conftest.$ac_ext <<_ACEOF
24085/* end confdefs.h. */
24086#include <zlib.h>
24087_ACEOF
24088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24089 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24090 ac_status=$?
24091 grep -v '^ *+' conftest.er1 >conftest.err
24092 rm -f conftest.er1
24093 cat conftest.err >&5
24094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095 (exit $ac_status); } >/dev/null; then
24096 if test -s conftest.err; then
24097 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24098 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24099 else
24100 ac_cpp_err=
24101 fi
24102else
24103 ac_cpp_err=yes
24104fi
24105if test -z "$ac_cpp_err"; then
24106 ac_header_preproc=yes
24107else
24108 echo "$as_me: failed program was:" >&5
24109sed 's/^/| /' conftest.$ac_ext >&5
24110
24111 ac_header_preproc=no
24112fi
24113rm -f conftest.err conftest.$ac_ext
24114echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24115echo "${ECHO_T}$ac_header_preproc" >&6
24116
24117# So? What about this header?
ac1cb8d3
VS
24118case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24119 yes:no: )
a848cd7e
SC
24120 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24121echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24122 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24123echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24124 ac_header_preproc=yes
a848cd7e 24125 ;;
ac1cb8d3 24126 no:yes:* )
a848cd7e
SC
24127 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24128echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24129 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24130echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24131 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24132echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24133 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24134echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24135 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24136echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24137 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24138echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24139 (
24140 cat <<\_ASBOX
ac1cb8d3
VS
24141## ----------------------------------------- ##
24142## Report this to wx-dev@lists.wxwidgets.org ##
24143## ----------------------------------------- ##
a848cd7e
SC
24144_ASBOX
24145 ) |
24146 sed "s/^/$as_me: WARNING: /" >&2
24147 ;;
24148esac
24149echo "$as_me:$LINENO: checking for zlib.h" >&5
24150echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24151if test "${ac_cv_header_zlib_h+set}" = set; then
24152 echo $ECHO_N "(cached) $ECHO_C" >&6
24153else
24154 ac_cv_header_zlib_h=$ac_header_preproc
24155fi
24156echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24157echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24158
24159fi
24160
24161
24162
24163 system_zlib_h_ok=$ac_cv_header_zlib_h
24164 fi
24165
24166 if test "$system_zlib_h_ok" = "yes"; then
24167 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24168echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24169if test "${ac_cv_lib_z_deflate+set}" = set; then
24170 echo $ECHO_N "(cached) $ECHO_C" >&6
24171else
24172 ac_check_lib_save_LIBS=$LIBS
24173LIBS="-lz $LIBS"
24174cat >conftest.$ac_ext <<_ACEOF
24175/* confdefs.h. */
24176_ACEOF
24177cat confdefs.h >>conftest.$ac_ext
24178cat >>conftest.$ac_ext <<_ACEOF
24179/* end confdefs.h. */
24180
24181/* Override any gcc2 internal prototype to avoid an error. */
24182#ifdef __cplusplus
24183extern "C"
24184#endif
24185/* We use char because int might match the return type of a gcc2
24186 builtin and then its argument prototype would still apply. */
24187char deflate ();
24188int
24189main ()
24190{
24191deflate ();
24192 ;
24193 return 0;
24194}
24195_ACEOF
24196rm -f conftest.$ac_objext conftest$ac_exeext
24197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24198 (eval $ac_link) 2>conftest.er1
a848cd7e 24199 ac_status=$?
ac1cb8d3
VS
24200 grep -v '^ *+' conftest.er1 >conftest.err
24201 rm -f conftest.er1
24202 cat conftest.err >&5
a848cd7e
SC
24203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24204 (exit $ac_status); } &&
5ff751d6 24205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24207 (eval $ac_try) 2>&5
24208 ac_status=$?
24209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24210 (exit $ac_status); }; } &&
24211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24213 (eval $ac_try) 2>&5
24214 ac_status=$?
24215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216 (exit $ac_status); }; }; then
24217 ac_cv_lib_z_deflate=yes
24218else
24219 echo "$as_me: failed program was:" >&5
24220sed 's/^/| /' conftest.$ac_ext >&5
24221
24222ac_cv_lib_z_deflate=no
24223fi
ac1cb8d3
VS
24224rm -f conftest.err conftest.$ac_objext \
24225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24226LIBS=$ac_check_lib_save_LIBS
24227fi
24228echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24229echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24230if test $ac_cv_lib_z_deflate = yes; then
24231 ZLIB_LINK=" -lz"
24232fi
24233
24234 fi
24235
24236 if test "x$ZLIB_LINK" = "x" ; then
24237 if test "$wxUSE_ZLIB" = "sys" ; then
24238 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24239echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24240 { (exit 1); exit 1; }; }
24241 else
24242 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24243echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24244 wxUSE_ZLIB=builtin
24245 fi
24246 else
24247 wxUSE_ZLIB=sys
24248 fi
24249 fi
24250fi
24251
24252
24253PNG_LINK=
24254if test "$wxUSE_LIBPNG" != "no" ; then
24255 cat >>confdefs.h <<\_ACEOF
24256#define wxUSE_LIBPNG 1
24257_ACEOF
24258
24259
24260 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24261 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24262echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24263 wxUSE_LIBPNG=sys
24264 fi
24265
24266 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24267 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24268echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24269 wxUSE_LIBPNG=builtin
24270 fi
24271
24272 if test "$wxUSE_MGL" != 1 ; then
24273 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24274 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24275echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24276if test "${ac_cv_header_png_h+set}" = set; then
24277 echo $ECHO_N "(cached) $ECHO_C" >&6
24278else
24279 if test "$cross_compiling" = yes; then
24280 unset ac_cv_header_png_h
24281
24282else
24283 cat >conftest.$ac_ext <<_ACEOF
24284/* confdefs.h. */
24285_ACEOF
24286cat confdefs.h >>conftest.$ac_ext
24287cat >>conftest.$ac_ext <<_ACEOF
24288/* end confdefs.h. */
24289
24290 #include <png.h>
24291 #include <stdio.h>
24292
24293 int main()
24294 {
24295 FILE *f=fopen("conftestval", "w");
24296 if (!f) exit(1);
24297 fprintf(f, "%s",
24298 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24299 exit(0);
24300 }
24301
24302_ACEOF
24303rm -f conftest$ac_exeext
24304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24305 (eval $ac_link) 2>&5
24306 ac_status=$?
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24310 (eval $ac_try) 2>&5
24311 ac_status=$?
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); }; }; then
24314 ac_cv_header_png_h=`cat conftestval`
24315else
24316 echo "$as_me: program exited with status $ac_status" >&5
24317echo "$as_me: failed program was:" >&5
24318sed 's/^/| /' conftest.$ac_ext >&5
24319
24320( exit $ac_status )
24321ac_cv_header_png_h=no
24322fi
ac1cb8d3 24323rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24324fi
24325
24326fi
24327echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24328echo "${ECHO_T}$ac_cv_header_png_h" >&6
24329 if test "${ac_cv_header_png_h+set}" = set; then
24330 echo "$as_me:$LINENO: checking for png.h" >&5
24331echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24332if test "${ac_cv_header_png_h+set}" = set; then
24333 echo $ECHO_N "(cached) $ECHO_C" >&6
24334fi
24335echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24336echo "${ECHO_T}$ac_cv_header_png_h" >&6
24337else
24338 # Is the header compilable?
24339echo "$as_me:$LINENO: checking png.h usability" >&5
24340echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24341cat >conftest.$ac_ext <<_ACEOF
24342/* confdefs.h. */
24343_ACEOF
24344cat confdefs.h >>conftest.$ac_ext
24345cat >>conftest.$ac_ext <<_ACEOF
24346/* end confdefs.h. */
24347$ac_includes_default
24348#include <png.h>
24349_ACEOF
24350rm -f conftest.$ac_objext
24351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24352 (eval $ac_compile) 2>conftest.er1
a848cd7e 24353 ac_status=$?
ac1cb8d3
VS
24354 grep -v '^ *+' conftest.er1 >conftest.err
24355 rm -f conftest.er1
24356 cat conftest.err >&5
a848cd7e
SC
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); } &&
5ff751d6 24359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361 (eval $ac_try) 2>&5
24362 ac_status=$?
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; } &&
24365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24367 (eval $ac_try) 2>&5
24368 ac_status=$?
24369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24370 (exit $ac_status); }; }; then
24371 ac_header_compiler=yes
24372else
24373 echo "$as_me: failed program was:" >&5
24374sed 's/^/| /' conftest.$ac_ext >&5
24375
24376ac_header_compiler=no
24377fi
ac1cb8d3 24378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24380echo "${ECHO_T}$ac_header_compiler" >&6
24381
24382# Is the header present?
24383echo "$as_me:$LINENO: checking png.h presence" >&5
24384echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24385cat >conftest.$ac_ext <<_ACEOF
24386/* confdefs.h. */
24387_ACEOF
24388cat confdefs.h >>conftest.$ac_ext
24389cat >>conftest.$ac_ext <<_ACEOF
24390/* end confdefs.h. */
24391#include <png.h>
24392_ACEOF
24393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24395 ac_status=$?
24396 grep -v '^ *+' conftest.er1 >conftest.err
24397 rm -f conftest.er1
24398 cat conftest.err >&5
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); } >/dev/null; then
24401 if test -s conftest.err; then
24402 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24404 else
24405 ac_cpp_err=
24406 fi
24407else
24408 ac_cpp_err=yes
24409fi
24410if test -z "$ac_cpp_err"; then
24411 ac_header_preproc=yes
24412else
24413 echo "$as_me: failed program was:" >&5
24414sed 's/^/| /' conftest.$ac_ext >&5
24415
24416 ac_header_preproc=no
24417fi
24418rm -f conftest.err conftest.$ac_ext
24419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24420echo "${ECHO_T}$ac_header_preproc" >&6
24421
24422# So? What about this header?
ac1cb8d3
VS
24423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24424 yes:no: )
a848cd7e
SC
24425 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24426echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24427 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24428echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24429 ac_header_preproc=yes
a848cd7e 24430 ;;
ac1cb8d3 24431 no:yes:* )
a848cd7e
SC
24432 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24433echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24434 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24435echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24436 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24437echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24438 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24439echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24440 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24441echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24442 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24443echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24444 (
24445 cat <<\_ASBOX
ac1cb8d3
VS
24446## ----------------------------------------- ##
24447## Report this to wx-dev@lists.wxwidgets.org ##
24448## ----------------------------------------- ##
a848cd7e
SC
24449_ASBOX
24450 ) |
24451 sed "s/^/$as_me: WARNING: /" >&2
24452 ;;
24453esac
24454echo "$as_me:$LINENO: checking for png.h" >&5
24455echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24456if test "${ac_cv_header_png_h+set}" = set; then
24457 echo $ECHO_N "(cached) $ECHO_C" >&6
24458else
24459 ac_cv_header_png_h=$ac_header_preproc
24460fi
24461echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24462echo "${ECHO_T}$ac_cv_header_png_h" >&6
24463
24464fi
24465
24466
24467
24468 if test "$ac_cv_header_png_h" = "yes"; then
24469 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24470echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24471if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24472 echo $ECHO_N "(cached) $ECHO_C" >&6
24473else
24474 ac_check_lib_save_LIBS=$LIBS
24475LIBS="-lpng -lz -lm $LIBS"
24476cat >conftest.$ac_ext <<_ACEOF
24477/* confdefs.h. */
24478_ACEOF
24479cat confdefs.h >>conftest.$ac_ext
24480cat >>conftest.$ac_ext <<_ACEOF
24481/* end confdefs.h. */
24482
24483/* Override any gcc2 internal prototype to avoid an error. */
24484#ifdef __cplusplus
24485extern "C"
24486#endif
24487/* We use char because int might match the return type of a gcc2
24488 builtin and then its argument prototype would still apply. */
24489char png_check_sig ();
24490int
24491main ()
24492{
24493png_check_sig ();
24494 ;
24495 return 0;
24496}
24497_ACEOF
24498rm -f conftest.$ac_objext conftest$ac_exeext
24499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24500 (eval $ac_link) 2>conftest.er1
a848cd7e 24501 ac_status=$?
ac1cb8d3
VS
24502 grep -v '^ *+' conftest.er1 >conftest.err
24503 rm -f conftest.er1
24504 cat conftest.err >&5
a848cd7e
SC
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); } &&
5ff751d6 24507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24509 (eval $ac_try) 2>&5
24510 ac_status=$?
24511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); }; } &&
24513 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24515 (eval $ac_try) 2>&5
24516 ac_status=$?
24517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24518 (exit $ac_status); }; }; then
24519 ac_cv_lib_png_png_check_sig=yes
24520else
24521 echo "$as_me: failed program was:" >&5
24522sed 's/^/| /' conftest.$ac_ext >&5
24523
24524ac_cv_lib_png_png_check_sig=no
24525fi
ac1cb8d3
VS
24526rm -f conftest.err conftest.$ac_objext \
24527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24528LIBS=$ac_check_lib_save_LIBS
24529fi
24530echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24531echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24532if test $ac_cv_lib_png_png_check_sig = yes; then
24533 PNG_LINK=" -lpng -lz"
24534fi
24535
24536 fi
24537
24538 if test "x$PNG_LINK" = "x" ; then
24539 if test "$wxUSE_LIBPNG" = "sys" ; then
24540 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24541echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24542 { (exit 1); exit 1; }; }
24543 else
24544 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24545echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24546 wxUSE_LIBPNG=builtin
24547 fi
24548 else
24549 wxUSE_LIBPNG=sys
24550 fi
24551 fi
24552 fi
24553
24554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24555fi
24556
24557
24558JPEG_LINK=
24559if test "$wxUSE_LIBJPEG" != "no" ; then
24560 cat >>confdefs.h <<\_ACEOF
24561#define wxUSE_LIBJPEG 1
24562_ACEOF
24563
24564
24565 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24566 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24567echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24568 wxUSE_LIBJPEG=sys
24569 fi
24570
24571 if test "$wxUSE_MGL" != 1 ; then
24572 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24573 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24574echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24575 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24576 echo $ECHO_N "(cached) $ECHO_C" >&6
24577else
24578 cat >conftest.$ac_ext <<_ACEOF
24579/* confdefs.h. */
24580_ACEOF
24581cat confdefs.h >>conftest.$ac_ext
24582cat >>conftest.$ac_ext <<_ACEOF
24583/* end confdefs.h. */
24584
24585 #undef HAVE_STDLIB_H
24586 #include <stdio.h>
24587 #include <jpeglib.h>
24588
24589int
24590main ()
24591{
24592
24593
24594 ;
24595 return 0;
24596}
24597_ACEOF
24598rm -f conftest.$ac_objext
24599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24600 (eval $ac_compile) 2>conftest.er1
a848cd7e 24601 ac_status=$?
ac1cb8d3
VS
24602 grep -v '^ *+' conftest.er1 >conftest.err
24603 rm -f conftest.er1
24604 cat conftest.err >&5
a848cd7e
SC
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } &&
5ff751d6 24607 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24609 (eval $ac_try) 2>&5
24610 ac_status=$?
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); }; } &&
24613 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24615 (eval $ac_try) 2>&5
24616 ac_status=$?
24617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24618 (exit $ac_status); }; }; then
24619 ac_cv_header_jpeglib_h=yes
24620else
24621 echo "$as_me: failed program was:" >&5
24622sed 's/^/| /' conftest.$ac_ext >&5
24623
24624ac_cv_header_jpeglib_h=no
24625
24626fi
ac1cb8d3 24627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24628
24629fi
24630
24631 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24632echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24633
24634 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24635 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24636echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24637if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24638 echo $ECHO_N "(cached) $ECHO_C" >&6
24639else
24640 ac_check_lib_save_LIBS=$LIBS
24641LIBS="-ljpeg $LIBS"
24642cat >conftest.$ac_ext <<_ACEOF
24643/* confdefs.h. */
24644_ACEOF
24645cat confdefs.h >>conftest.$ac_ext
24646cat >>conftest.$ac_ext <<_ACEOF
24647/* end confdefs.h. */
24648
24649/* Override any gcc2 internal prototype to avoid an error. */
24650#ifdef __cplusplus
24651extern "C"
24652#endif
24653/* We use char because int might match the return type of a gcc2
24654 builtin and then its argument prototype would still apply. */
24655char jpeg_read_header ();
24656int
24657main ()
24658{
24659jpeg_read_header ();
24660 ;
24661 return 0;
24662}
24663_ACEOF
24664rm -f conftest.$ac_objext conftest$ac_exeext
24665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24666 (eval $ac_link) 2>conftest.er1
a848cd7e 24667 ac_status=$?
ac1cb8d3
VS
24668 grep -v '^ *+' conftest.er1 >conftest.err
24669 rm -f conftest.er1
24670 cat conftest.err >&5
a848cd7e
SC
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); } &&
5ff751d6 24673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675 (eval $ac_try) 2>&5
24676 ac_status=$?
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; } &&
24679 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; }; then
24685 ac_cv_lib_jpeg_jpeg_read_header=yes
24686else
24687 echo "$as_me: failed program was:" >&5
24688sed 's/^/| /' conftest.$ac_ext >&5
24689
24690ac_cv_lib_jpeg_jpeg_read_header=no
24691fi
ac1cb8d3
VS
24692rm -f conftest.err conftest.$ac_objext \
24693 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24694LIBS=$ac_check_lib_save_LIBS
24695fi
24696echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24697echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24698if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24699 JPEG_LINK=" -ljpeg"
24700fi
24701
24702 fi
24703
24704 if test "x$JPEG_LINK" = "x" ; then
24705 if test "$wxUSE_LIBJPEG" = "sys" ; then
24706 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24707echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24708 { (exit 1); exit 1; }; }
24709 else
24710 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24711echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24712 wxUSE_LIBJPEG=builtin
24713 fi
24714 else
24715 wxUSE_LIBJPEG=sys
24716 fi
24717 fi
24718 fi
24719fi
24720
24721
24722TIFF_LINK=
24723TIFF_PREREQ_LINKS=-lm
24724if test "$wxUSE_LIBTIFF" != "no" ; then
24725 cat >>confdefs.h <<\_ACEOF
24726#define wxUSE_LIBTIFF 1
24727_ACEOF
24728
24729
24730 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24731 if test "$wxUSE_LIBJPEG" = "sys"; then
24732 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24733 fi
24734 if test "$wxUSE_ZLIB" = "sys"; then
24735 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24736 fi
24737 if test "${ac_cv_header_tiffio_h+set}" = set; then
24738 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24739echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24740if test "${ac_cv_header_tiffio_h+set}" = set; then
24741 echo $ECHO_N "(cached) $ECHO_C" >&6
24742fi
24743echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24744echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24745else
24746 # Is the header compilable?
24747echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24748echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24749cat >conftest.$ac_ext <<_ACEOF
24750/* confdefs.h. */
24751_ACEOF
24752cat confdefs.h >>conftest.$ac_ext
24753cat >>conftest.$ac_ext <<_ACEOF
24754/* end confdefs.h. */
24755$ac_includes_default
24756#include <tiffio.h>
24757_ACEOF
24758rm -f conftest.$ac_objext
24759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24760 (eval $ac_compile) 2>conftest.er1
a848cd7e 24761 ac_status=$?
ac1cb8d3
VS
24762 grep -v '^ *+' conftest.er1 >conftest.err
24763 rm -f conftest.er1
24764 cat conftest.err >&5
a848cd7e
SC
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); } &&
5ff751d6 24767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24769 (eval $ac_try) 2>&5
24770 ac_status=$?
24771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); }; } &&
24773 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24775 (eval $ac_try) 2>&5
24776 ac_status=$?
24777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778 (exit $ac_status); }; }; then
24779 ac_header_compiler=yes
24780else
24781 echo "$as_me: failed program was:" >&5
24782sed 's/^/| /' conftest.$ac_ext >&5
24783
24784ac_header_compiler=no
24785fi
ac1cb8d3 24786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24787echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24788echo "${ECHO_T}$ac_header_compiler" >&6
24789
24790# Is the header present?
24791echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24792echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24793cat >conftest.$ac_ext <<_ACEOF
24794/* confdefs.h. */
24795_ACEOF
24796cat confdefs.h >>conftest.$ac_ext
24797cat >>conftest.$ac_ext <<_ACEOF
24798/* end confdefs.h. */
24799#include <tiffio.h>
24800_ACEOF
24801if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24802 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24803 ac_status=$?
24804 grep -v '^ *+' conftest.er1 >conftest.err
24805 rm -f conftest.er1
24806 cat conftest.err >&5
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); } >/dev/null; then
24809 if test -s conftest.err; then
24810 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24811 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24812 else
24813 ac_cpp_err=
24814 fi
24815else
24816 ac_cpp_err=yes
24817fi
24818if test -z "$ac_cpp_err"; then
24819 ac_header_preproc=yes
24820else
24821 echo "$as_me: failed program was:" >&5
24822sed 's/^/| /' conftest.$ac_ext >&5
24823
24824 ac_header_preproc=no
24825fi
24826rm -f conftest.err conftest.$ac_ext
24827echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24828echo "${ECHO_T}$ac_header_preproc" >&6
24829
24830# So? What about this header?
ac1cb8d3
VS
24831case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24832 yes:no: )
a848cd7e
SC
24833 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24834echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24835 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24836echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24837 ac_header_preproc=yes
a848cd7e 24838 ;;
ac1cb8d3 24839 no:yes:* )
a848cd7e
SC
24840 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24841echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24842 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24843echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24844 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24845echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24846 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24847echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24848 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24849echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24850 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24851echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24852 (
24853 cat <<\_ASBOX
ac1cb8d3
VS
24854## ----------------------------------------- ##
24855## Report this to wx-dev@lists.wxwidgets.org ##
24856## ----------------------------------------- ##
a848cd7e
SC
24857_ASBOX
24858 ) |
24859 sed "s/^/$as_me: WARNING: /" >&2
24860 ;;
24861esac
24862echo "$as_me:$LINENO: checking for tiffio.h" >&5
24863echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24864if test "${ac_cv_header_tiffio_h+set}" = set; then
24865 echo $ECHO_N "(cached) $ECHO_C" >&6
24866else
24867 ac_cv_header_tiffio_h=$ac_header_preproc
24868fi
24869echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24870echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24871
24872fi
24873if test $ac_cv_header_tiffio_h = yes; then
24874
24875 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24876echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24877if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24878 echo $ECHO_N "(cached) $ECHO_C" >&6
24879else
24880 ac_check_lib_save_LIBS=$LIBS
24881LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24882cat >conftest.$ac_ext <<_ACEOF
24883/* confdefs.h. */
24884_ACEOF
24885cat confdefs.h >>conftest.$ac_ext
24886cat >>conftest.$ac_ext <<_ACEOF
24887/* end confdefs.h. */
24888
24889/* Override any gcc2 internal prototype to avoid an error. */
24890#ifdef __cplusplus
24891extern "C"
24892#endif
24893/* We use char because int might match the return type of a gcc2
24894 builtin and then its argument prototype would still apply. */
24895char TIFFError ();
24896int
24897main ()
24898{
24899TIFFError ();
24900 ;
24901 return 0;
24902}
24903_ACEOF
24904rm -f conftest.$ac_objext conftest$ac_exeext
24905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24906 (eval $ac_link) 2>conftest.er1
a848cd7e 24907 ac_status=$?
ac1cb8d3
VS
24908 grep -v '^ *+' conftest.er1 >conftest.err
24909 rm -f conftest.er1
24910 cat conftest.err >&5
a848cd7e
SC
24911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24912 (exit $ac_status); } &&
5ff751d6 24913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24915 (eval $ac_try) 2>&5
24916 ac_status=$?
24917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24918 (exit $ac_status); }; } &&
24919 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24921 (eval $ac_try) 2>&5
24922 ac_status=$?
24923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); }; }; then
24925 ac_cv_lib_tiff_TIFFError=yes
24926else
24927 echo "$as_me: failed program was:" >&5
24928sed 's/^/| /' conftest.$ac_ext >&5
24929
24930ac_cv_lib_tiff_TIFFError=no
24931fi
ac1cb8d3
VS
24932rm -f conftest.err conftest.$ac_objext \
24933 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24934LIBS=$ac_check_lib_save_LIBS
24935fi
24936echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24937echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24938if test $ac_cv_lib_tiff_TIFFError = yes; then
24939 TIFF_LINK=" -ltiff"
24940fi
24941
24942
24943
24944fi
24945
24946
24947
24948 if test "x$TIFF_LINK" = "x" ; then
24949 if test "$wxUSE_LIBTIFF" = "sys" ; then
24950 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24951echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24952 { (exit 1); exit 1; }; }
24953 else
24954 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24955echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24956 wxUSE_LIBTIFF=builtin
24957 fi
24958 else
24959 wxUSE_LIBTIFF=sys
24960 fi
24961 fi
24962fi
24963
24964
47a7e797
MW
24965if test "$wxUSE_WCHAR_T" != "yes"; then
24966 if test "$wxUSE_EXPAT" != "no"; then
24967 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24968echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24969 wxUSE_EXPAT=no
24970 fi
24971 if test "$wxUSE_XML" != "no"; then
24972 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24973echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24974 wxUSE_XML=no
24975 fi
24976fi
24977
a848cd7e
SC
24978if test "$wxUSE_EXPAT" != "no"; then
24979 wxUSE_XML=yes
24980 cat >>confdefs.h <<\_ACEOF
24981#define wxUSE_EXPAT 1
24982_ACEOF
24983
24984 cat >>confdefs.h <<\_ACEOF
24985#define wxUSE_XML 1
24986_ACEOF
24987
24988
24989 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24990 if test "${ac_cv_header_expat_h+set}" = set; then
24991 echo "$as_me:$LINENO: checking for expat.h" >&5
24992echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24993if test "${ac_cv_header_expat_h+set}" = set; then
24994 echo $ECHO_N "(cached) $ECHO_C" >&6
24995fi
24996echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24997echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24998else
24999 # Is the header compilable?
25000echo "$as_me:$LINENO: checking expat.h usability" >&5
25001echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25002cat >conftest.$ac_ext <<_ACEOF
25003/* confdefs.h. */
25004_ACEOF
25005cat confdefs.h >>conftest.$ac_ext
25006cat >>conftest.$ac_ext <<_ACEOF
25007/* end confdefs.h. */
25008$ac_includes_default
25009#include <expat.h>
25010_ACEOF
25011rm -f conftest.$ac_objext
25012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25013 (eval $ac_compile) 2>conftest.er1
a848cd7e 25014 ac_status=$?
ac1cb8d3
VS
25015 grep -v '^ *+' conftest.er1 >conftest.err
25016 rm -f conftest.er1
25017 cat conftest.err >&5
a848cd7e
SC
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } &&
5ff751d6 25020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25022 (eval $ac_try) 2>&5
25023 ac_status=$?
25024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25025 (exit $ac_status); }; } &&
25026 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25028 (eval $ac_try) 2>&5
25029 ac_status=$?
25030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); }; }; then
25032 ac_header_compiler=yes
25033else
25034 echo "$as_me: failed program was:" >&5
25035sed 's/^/| /' conftest.$ac_ext >&5
25036
25037ac_header_compiler=no
25038fi
ac1cb8d3 25039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25040echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25041echo "${ECHO_T}$ac_header_compiler" >&6
25042
25043# Is the header present?
25044echo "$as_me:$LINENO: checking expat.h presence" >&5
25045echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25046cat >conftest.$ac_ext <<_ACEOF
25047/* confdefs.h. */
25048_ACEOF
25049cat confdefs.h >>conftest.$ac_ext
25050cat >>conftest.$ac_ext <<_ACEOF
25051/* end confdefs.h. */
25052#include <expat.h>
25053_ACEOF
25054if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25055 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25056 ac_status=$?
25057 grep -v '^ *+' conftest.er1 >conftest.err
25058 rm -f conftest.er1
25059 cat conftest.err >&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } >/dev/null; then
25062 if test -s conftest.err; then
25063 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25064 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25065 else
25066 ac_cpp_err=
25067 fi
25068else
25069 ac_cpp_err=yes
25070fi
25071if test -z "$ac_cpp_err"; then
25072 ac_header_preproc=yes
25073else
25074 echo "$as_me: failed program was:" >&5
25075sed 's/^/| /' conftest.$ac_ext >&5
25076
25077 ac_header_preproc=no
25078fi
25079rm -f conftest.err conftest.$ac_ext
25080echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25081echo "${ECHO_T}$ac_header_preproc" >&6
25082
25083# So? What about this header?
ac1cb8d3
VS
25084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25085 yes:no: )
a848cd7e
SC
25086 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25087echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25088 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25089echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25090 ac_header_preproc=yes
a848cd7e 25091 ;;
ac1cb8d3 25092 no:yes:* )
a848cd7e
SC
25093 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25094echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25095 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25096echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25097 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25098echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25099 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25100echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25101 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25102echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25103 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25104echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25105 (
25106 cat <<\_ASBOX
ac1cb8d3
VS
25107## ----------------------------------------- ##
25108## Report this to wx-dev@lists.wxwidgets.org ##
25109## ----------------------------------------- ##
a848cd7e
SC
25110_ASBOX
25111 ) |
25112 sed "s/^/$as_me: WARNING: /" >&2
25113 ;;
25114esac
25115echo "$as_me:$LINENO: checking for expat.h" >&5
25116echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25117if test "${ac_cv_header_expat_h+set}" = set; then
25118 echo $ECHO_N "(cached) $ECHO_C" >&6
25119else
25120 ac_cv_header_expat_h=$ac_header_preproc
25121fi
25122echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25123echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25124
25125fi
25126if test $ac_cv_header_expat_h = yes; then
25127 found_expat_h=1
25128fi
25129
25130
25131 if test "x$found_expat_h" = "x1"; then
25132 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25133echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25134if test "${wx_cv_expat_is_not_broken+set}" = set; then
25135 echo $ECHO_N "(cached) $ECHO_C" >&6
25136else
25137
25138
25139
25140 ac_ext=cc
25141ac_cpp='$CXXCPP $CPPFLAGS'
25142ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25143ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25144ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25145
25146 cat >conftest.$ac_ext <<_ACEOF
25147/* confdefs.h. */
25148_ACEOF
25149cat confdefs.h >>conftest.$ac_ext
25150cat >>conftest.$ac_ext <<_ACEOF
25151/* end confdefs.h. */
25152#include <expat.h>
25153int
25154main ()
25155{
25156
25157 ;
25158 return 0;
25159}
25160_ACEOF
25161rm -f conftest.$ac_objext
25162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25163 (eval $ac_compile) 2>conftest.er1
a848cd7e 25164 ac_status=$?
ac1cb8d3
VS
25165 grep -v '^ *+' conftest.er1 >conftest.err
25166 rm -f conftest.er1
25167 cat conftest.err >&5
a848cd7e
SC
25168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169 (exit $ac_status); } &&
5ff751d6 25170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25172 (eval $ac_try) 2>&5
25173 ac_status=$?
25174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25175 (exit $ac_status); }; } &&
25176 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25178 (eval $ac_try) 2>&5
25179 ac_status=$?
25180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181 (exit $ac_status); }; }; then
25182 wx_cv_expat_is_not_broken=yes
25183else
25184 echo "$as_me: failed program was:" >&5
25185sed 's/^/| /' conftest.$ac_ext >&5
25186
25187wx_cv_expat_is_not_broken=no
25188
25189fi
ac1cb8d3 25190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25191 ac_ext=c
25192ac_cpp='$CPP $CPPFLAGS'
25193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25195ac_compiler_gnu=$ac_cv_c_compiler_gnu
25196
25197
25198
25199fi
25200echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25201echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25202 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25203 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25204echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25205if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25206 echo $ECHO_N "(cached) $ECHO_C" >&6
25207else
25208 ac_check_lib_save_LIBS=$LIBS
25209LIBS="-lexpat $LIBS"
25210cat >conftest.$ac_ext <<_ACEOF
25211/* confdefs.h. */
25212_ACEOF
25213cat confdefs.h >>conftest.$ac_ext
25214cat >>conftest.$ac_ext <<_ACEOF
25215/* end confdefs.h. */
25216
25217/* Override any gcc2 internal prototype to avoid an error. */
25218#ifdef __cplusplus
25219extern "C"
25220#endif
25221/* We use char because int might match the return type of a gcc2
25222 builtin and then its argument prototype would still apply. */
25223char XML_ParserCreate ();
25224int
25225main ()
25226{
25227XML_ParserCreate ();
25228 ;
25229 return 0;
25230}
25231_ACEOF
25232rm -f conftest.$ac_objext conftest$ac_exeext
25233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25234 (eval $ac_link) 2>conftest.er1
a848cd7e 25235 ac_status=$?
ac1cb8d3
VS
25236 grep -v '^ *+' conftest.er1 >conftest.err
25237 rm -f conftest.er1
25238 cat conftest.err >&5
a848cd7e
SC
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); } &&
5ff751d6 25241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25243 (eval $ac_try) 2>&5
25244 ac_status=$?
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); }; } &&
25247 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25249 (eval $ac_try) 2>&5
25250 ac_status=$?
25251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252 (exit $ac_status); }; }; then
25253 ac_cv_lib_expat_XML_ParserCreate=yes
25254else
25255 echo "$as_me: failed program was:" >&5
25256sed 's/^/| /' conftest.$ac_ext >&5
25257
25258ac_cv_lib_expat_XML_ParserCreate=no
25259fi
ac1cb8d3
VS
25260rm -f conftest.err conftest.$ac_objext \
25261 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25262LIBS=$ac_check_lib_save_LIBS
25263fi
25264echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25265echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25266if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25267 EXPAT_LINK=" -lexpat"
25268fi
25269
25270 fi
25271 fi
25272 if test "x$EXPAT_LINK" = "x" ; then
25273 if test "$wxUSE_EXPAT" = "sys" ; then
25274 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25275echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25276 { (exit 1); exit 1; }; }
25277 else
25278 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25279echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25280 wxUSE_EXPAT=builtin
25281 fi
25282 else
25283 wxUSE_EXPAT=sys
25284 fi
25285 fi
25286 if test "$wxUSE_EXPAT" = "builtin" ; then
25287
25288
25289subdirs="$subdirs src/expat"
25290
25291 fi
25292fi
25293
25294
25295
25296if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25297 if test "${ac_cv_header_mspack_h+set}" = set; then
25298 echo "$as_me:$LINENO: checking for mspack.h" >&5
25299echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25300if test "${ac_cv_header_mspack_h+set}" = set; then
25301 echo $ECHO_N "(cached) $ECHO_C" >&6
25302fi
25303echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25304echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25305else
25306 # Is the header compilable?
25307echo "$as_me:$LINENO: checking mspack.h usability" >&5
25308echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25309cat >conftest.$ac_ext <<_ACEOF
25310/* confdefs.h. */
25311_ACEOF
25312cat confdefs.h >>conftest.$ac_ext
25313cat >>conftest.$ac_ext <<_ACEOF
25314/* end confdefs.h. */
25315$ac_includes_default
25316#include <mspack.h>
25317_ACEOF
25318rm -f conftest.$ac_objext
25319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25320 (eval $ac_compile) 2>conftest.er1
a848cd7e 25321 ac_status=$?
ac1cb8d3
VS
25322 grep -v '^ *+' conftest.er1 >conftest.err
25323 rm -f conftest.er1
25324 cat conftest.err >&5
a848cd7e
SC
25325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25326 (exit $ac_status); } &&
5ff751d6 25327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25329 (eval $ac_try) 2>&5
25330 ac_status=$?
25331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332 (exit $ac_status); }; } &&
25333 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25335 (eval $ac_try) 2>&5
25336 ac_status=$?
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); }; }; then
25339 ac_header_compiler=yes
25340else
25341 echo "$as_me: failed program was:" >&5
25342sed 's/^/| /' conftest.$ac_ext >&5
25343
25344ac_header_compiler=no
25345fi
ac1cb8d3 25346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25347echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25348echo "${ECHO_T}$ac_header_compiler" >&6
25349
25350# Is the header present?
25351echo "$as_me:$LINENO: checking mspack.h presence" >&5
25352echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25353cat >conftest.$ac_ext <<_ACEOF
25354/* confdefs.h. */
25355_ACEOF
25356cat confdefs.h >>conftest.$ac_ext
25357cat >>conftest.$ac_ext <<_ACEOF
25358/* end confdefs.h. */
25359#include <mspack.h>
25360_ACEOF
25361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25363 ac_status=$?
25364 grep -v '^ *+' conftest.er1 >conftest.err
25365 rm -f conftest.er1
25366 cat conftest.err >&5
25367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368 (exit $ac_status); } >/dev/null; then
25369 if test -s conftest.err; then
25370 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25372 else
25373 ac_cpp_err=
25374 fi
25375else
25376 ac_cpp_err=yes
25377fi
25378if test -z "$ac_cpp_err"; then
25379 ac_header_preproc=yes
25380else
25381 echo "$as_me: failed program was:" >&5
25382sed 's/^/| /' conftest.$ac_ext >&5
25383
25384 ac_header_preproc=no
25385fi
25386rm -f conftest.err conftest.$ac_ext
25387echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25388echo "${ECHO_T}$ac_header_preproc" >&6
25389
25390# So? What about this header?
ac1cb8d3
VS
25391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25392 yes:no: )
a848cd7e
SC
25393 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25394echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25395 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25396echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25397 ac_header_preproc=yes
a848cd7e 25398 ;;
ac1cb8d3 25399 no:yes:* )
a848cd7e
SC
25400 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25401echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25402 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25403echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25404 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25405echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25406 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25407echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25408 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25409echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25410 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25411echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25412 (
25413 cat <<\_ASBOX
ac1cb8d3
VS
25414## ----------------------------------------- ##
25415## Report this to wx-dev@lists.wxwidgets.org ##
25416## ----------------------------------------- ##
a848cd7e
SC
25417_ASBOX
25418 ) |
25419 sed "s/^/$as_me: WARNING: /" >&2
25420 ;;
25421esac
25422echo "$as_me:$LINENO: checking for mspack.h" >&5
25423echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25424if test "${ac_cv_header_mspack_h+set}" = set; then
25425 echo $ECHO_N "(cached) $ECHO_C" >&6
25426else
25427 ac_cv_header_mspack_h=$ac_header_preproc
25428fi
25429echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25430echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25431
25432fi
25433if test $ac_cv_header_mspack_h = yes; then
25434 found_mspack_h=1
25435fi
25436
25437
25438 if test "x$found_mspack_h" = "x1"; then
25439 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25440echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25441if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25442 echo $ECHO_N "(cached) $ECHO_C" >&6
25443else
25444 ac_check_lib_save_LIBS=$LIBS
25445LIBS="-lmspack $LIBS"
25446cat >conftest.$ac_ext <<_ACEOF
25447/* confdefs.h. */
25448_ACEOF
25449cat confdefs.h >>conftest.$ac_ext
25450cat >>conftest.$ac_ext <<_ACEOF
25451/* end confdefs.h. */
25452
25453/* Override any gcc2 internal prototype to avoid an error. */
25454#ifdef __cplusplus
25455extern "C"
25456#endif
25457/* We use char because int might match the return type of a gcc2
25458 builtin and then its argument prototype would still apply. */
25459char mspack_create_chm_decompressor ();
25460int
25461main ()
25462{
25463mspack_create_chm_decompressor ();
25464 ;
25465 return 0;
25466}
25467_ACEOF
25468rm -f conftest.$ac_objext conftest$ac_exeext
25469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25470 (eval $ac_link) 2>conftest.er1
a848cd7e 25471 ac_status=$?
ac1cb8d3
VS
25472 grep -v '^ *+' conftest.er1 >conftest.err
25473 rm -f conftest.er1
25474 cat conftest.err >&5
a848cd7e
SC
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } &&
5ff751d6 25477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479 (eval $ac_try) 2>&5
25480 ac_status=$?
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); }; } &&
25483 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485 (eval $ac_try) 2>&5
25486 ac_status=$?
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); }; }; then
25489 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25490else
25491 echo "$as_me: failed program was:" >&5
25492sed 's/^/| /' conftest.$ac_ext >&5
25493
25494ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25495fi
ac1cb8d3
VS
25496rm -f conftest.err conftest.$ac_objext \
25497 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25498LIBS=$ac_check_lib_save_LIBS
25499fi
25500echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25501echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25502if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25503 MSPACK_LINK=" -lmspack"
25504fi
25505
25506 fi
25507 if test "x$MSPACK_LINK" = "x" ; then
25508 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25509 fi
25510fi
25511
25512if test "$wxUSE_LIBMSPACK" != "no"; then
25513 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25514#define wxUSE_LIBMSPACK 1
25515_ACEOF
25516
a848cd7e
SC
25517fi
25518
25519
25520
25521AFMINSTALL=
25522WIN32INSTALL=
25523
25524TOOLKIT=
25525TOOLKIT_INCLUDE=
25526WIDGET_SET=
25527
25528if test "$USE_WIN32" = 1 ; then
25529
25530for ac_header in w32api.h
25531do
25532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25533if eval "test \"\${$as_ac_Header+set}\" = set"; then
25534 echo "$as_me:$LINENO: checking for $ac_header" >&5
25535echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25536if eval "test \"\${$as_ac_Header+set}\" = set"; then
25537 echo $ECHO_N "(cached) $ECHO_C" >&6
25538fi
25539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25541else
25542 # Is the header compilable?
25543echo "$as_me:$LINENO: checking $ac_header usability" >&5
25544echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25545cat >conftest.$ac_ext <<_ACEOF
25546/* confdefs.h. */
25547_ACEOF
25548cat confdefs.h >>conftest.$ac_ext
25549cat >>conftest.$ac_ext <<_ACEOF
25550/* end confdefs.h. */
25551$ac_includes_default
25552#include <$ac_header>
25553_ACEOF
25554rm -f conftest.$ac_objext
25555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25556 (eval $ac_compile) 2>conftest.er1
a848cd7e 25557 ac_status=$?
ac1cb8d3
VS
25558 grep -v '^ *+' conftest.er1 >conftest.err
25559 rm -f conftest.er1
25560 cat conftest.err >&5
a848cd7e
SC
25561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); } &&
5ff751d6 25563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25565 (eval $ac_try) 2>&5
25566 ac_status=$?
25567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25568 (exit $ac_status); }; } &&
25569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25571 (eval $ac_try) 2>&5
25572 ac_status=$?
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); }; }; then
25575 ac_header_compiler=yes
25576else
25577 echo "$as_me: failed program was:" >&5
25578sed 's/^/| /' conftest.$ac_ext >&5
25579
25580ac_header_compiler=no
25581fi
ac1cb8d3 25582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25584echo "${ECHO_T}$ac_header_compiler" >&6
25585
25586# Is the header present?
25587echo "$as_me:$LINENO: checking $ac_header presence" >&5
25588echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25589cat >conftest.$ac_ext <<_ACEOF
25590/* confdefs.h. */
25591_ACEOF
25592cat confdefs.h >>conftest.$ac_ext
25593cat >>conftest.$ac_ext <<_ACEOF
25594/* end confdefs.h. */
25595#include <$ac_header>
25596_ACEOF
25597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25599 ac_status=$?
25600 grep -v '^ *+' conftest.er1 >conftest.err
25601 rm -f conftest.er1
25602 cat conftest.err >&5
25603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604 (exit $ac_status); } >/dev/null; then
25605 if test -s conftest.err; then
25606 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25608 else
25609 ac_cpp_err=
25610 fi
25611else
25612 ac_cpp_err=yes
25613fi
25614if test -z "$ac_cpp_err"; then
25615 ac_header_preproc=yes
25616else
25617 echo "$as_me: failed program was:" >&5
25618sed 's/^/| /' conftest.$ac_ext >&5
25619
25620 ac_header_preproc=no
25621fi
25622rm -f conftest.err conftest.$ac_ext
25623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25624echo "${ECHO_T}$ac_header_preproc" >&6
25625
25626# So? What about this header?
ac1cb8d3
VS
25627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25628 yes:no: )
a848cd7e
SC
25629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25630echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25632echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25633 ac_header_preproc=yes
a848cd7e 25634 ;;
ac1cb8d3 25635 no:yes:* )
a848cd7e
SC
25636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25637echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25639echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25641echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25643echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25645echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25647echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25648 (
25649 cat <<\_ASBOX
ac1cb8d3
VS
25650## ----------------------------------------- ##
25651## Report this to wx-dev@lists.wxwidgets.org ##
25652## ----------------------------------------- ##
a848cd7e
SC
25653_ASBOX
25654 ) |
25655 sed "s/^/$as_me: WARNING: /" >&2
25656 ;;
25657esac
25658echo "$as_me:$LINENO: checking for $ac_header" >&5
25659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25660if eval "test \"\${$as_ac_Header+set}\" = set"; then
25661 echo $ECHO_N "(cached) $ECHO_C" >&6
25662else
ac1cb8d3 25663 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25664fi
25665echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25666echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25667
25668fi
25669if test `eval echo '${'$as_ac_Header'}'` = yes; then
25670 cat >>confdefs.h <<_ACEOF
25671#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25672_ACEOF
25673
25674fi
25675
25676done
25677
25678 if test "${ac_cv_header_windows_h+set}" = set; then
25679 echo "$as_me:$LINENO: checking for windows.h" >&5
25680echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25681if test "${ac_cv_header_windows_h+set}" = set; then
25682 echo $ECHO_N "(cached) $ECHO_C" >&6
25683fi
25684echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25685echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25686else
25687 # Is the header compilable?
25688echo "$as_me:$LINENO: checking windows.h usability" >&5
25689echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25690cat >conftest.$ac_ext <<_ACEOF
25691/* confdefs.h. */
25692_ACEOF
25693cat confdefs.h >>conftest.$ac_ext
25694cat >>conftest.$ac_ext <<_ACEOF
25695/* end confdefs.h. */
25696$ac_includes_default
25697#include <windows.h>
25698_ACEOF
25699rm -f conftest.$ac_objext
25700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25701 (eval $ac_compile) 2>conftest.er1
a848cd7e 25702 ac_status=$?
ac1cb8d3
VS
25703 grep -v '^ *+' conftest.er1 >conftest.err
25704 rm -f conftest.er1
25705 cat conftest.err >&5
a848cd7e
SC
25706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } &&
5ff751d6 25708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25710 (eval $ac_try) 2>&5
25711 ac_status=$?
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); }; } &&
25714 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25716 (eval $ac_try) 2>&5
25717 ac_status=$?
25718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25719 (exit $ac_status); }; }; then
25720 ac_header_compiler=yes
25721else
25722 echo "$as_me: failed program was:" >&5
25723sed 's/^/| /' conftest.$ac_ext >&5
25724
25725ac_header_compiler=no
25726fi
ac1cb8d3 25727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25728echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25729echo "${ECHO_T}$ac_header_compiler" >&6
25730
25731# Is the header present?
25732echo "$as_me:$LINENO: checking windows.h presence" >&5
25733echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25734cat >conftest.$ac_ext <<_ACEOF
25735/* confdefs.h. */
25736_ACEOF
25737cat confdefs.h >>conftest.$ac_ext
25738cat >>conftest.$ac_ext <<_ACEOF
25739/* end confdefs.h. */
25740#include <windows.h>
25741_ACEOF
25742if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25744 ac_status=$?
25745 grep -v '^ *+' conftest.er1 >conftest.err
25746 rm -f conftest.er1
25747 cat conftest.err >&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); } >/dev/null; then
25750 if test -s conftest.err; then
25751 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25752 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25753 else
25754 ac_cpp_err=
25755 fi
25756else
25757 ac_cpp_err=yes
25758fi
25759if test -z "$ac_cpp_err"; then
25760 ac_header_preproc=yes
25761else
25762 echo "$as_me: failed program was:" >&5
25763sed 's/^/| /' conftest.$ac_ext >&5
25764
25765 ac_header_preproc=no
25766fi
25767rm -f conftest.err conftest.$ac_ext
25768echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25769echo "${ECHO_T}$ac_header_preproc" >&6
25770
25771# So? What about this header?
ac1cb8d3
VS
25772case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25773 yes:no: )
a848cd7e
SC
25774 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25775echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25776 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25777echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25778 ac_header_preproc=yes
a848cd7e 25779 ;;
ac1cb8d3 25780 no:yes:* )
a848cd7e
SC
25781 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25782echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25783 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25784echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25785 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25786echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25787 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25788echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25789 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25790echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25791 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25792echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25793 (
25794 cat <<\_ASBOX
ac1cb8d3
VS
25795## ----------------------------------------- ##
25796## Report this to wx-dev@lists.wxwidgets.org ##
25797## ----------------------------------------- ##
a848cd7e
SC
25798_ASBOX
25799 ) |
25800 sed "s/^/$as_me: WARNING: /" >&2
25801 ;;
25802esac
25803echo "$as_me:$LINENO: checking for windows.h" >&5
25804echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25805if test "${ac_cv_header_windows_h+set}" = set; then
25806 echo $ECHO_N "(cached) $ECHO_C" >&6
25807else
25808 ac_cv_header_windows_h=$ac_header_preproc
25809fi
25810echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25811echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25812
25813fi
25814if test $ac_cv_header_windows_h = yes; then
25815 :
25816else
25817
25818 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25819echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25820 { (exit 1); exit 1; }; }
25821
25822fi
25823
25824
25825
25826 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25827
25828 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25829 LIBS="$LIBS -loleacc"
25830 fi
25831
25832 case "${host}" in
25833 *-*-cygwin* )
25834 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
25835 esac
25836
25837 if test "$wxUSE_ODBC" = "sys" ; then
25838 wxUSE_ODBC = "yes"
25839 fi
25840 if test "$wxUSE_ODBC" = "yes" ; then
25841 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25842 cat >>confdefs.h <<\_ACEOF
25843#define wxUSE_ODBC 1
25844_ACEOF
25845
25846 fi
25847
370d2fd7 25848 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
a848cd7e
SC
25849 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25850
004ee6da 25851 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
370d2fd7 25852
a848cd7e
SC
25853 WIN32INSTALL=win32install
25854fi
25855
25856if test "$wxUSE_GUI" = "yes"; then
25857 USE_GUI=1
25858
25859 GUI_TK_LIBRARY=
25860
25861 WXGTK12=
25862 WXGTK127=
25863 WXGTK20=
25864 WXGPE=
25865
207bc66c
RN
25866 if test "$wxUSE_COCOA" = 1 ; then
25867 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25868 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25869echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25870 wxUSE_PRINTING_ARCHITECTURE=no
25871 fi
25872 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25873 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25874echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25875 wxUSE_DRAG_AND_DROP=no
25876 fi
25877 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25878 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25879echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25880 wxUSE_DRAGIMAGE=no
25881 fi
25882 fi
25883
a848cd7e
SC
25884 if test "$wxUSE_MSW" = 1 ; then
25885 TOOLKIT=MSW
25886 GUIDIST=MSW_DIST
25887
ceec2216 25888 case "${host}" in
a848cd7e
SC
25889 *-*-mingw32* )
25890 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25891 esac
25892 fi
25893
25894 if test "$wxUSE_GTK" = 1; then
25895 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25896echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25897
25898 gtk_version_cached=1
25899 if test "${wx_cv_lib_gtk+set}" = set; then
25900 echo $ECHO_N "(cached) $ECHO_C" >&6
25901else
25902
25903 gtk_version_cached=0
25904 echo "$as_me:$LINENO: result: " >&5
25905echo "${ECHO_T}" >&6
25906
25907 GTK_MODULES=
25908 if test "$wxUSE_THREADS" = "yes"; then
25909 GTK_MODULES=gthread
25910 fi
25911
f597b41c 25912 wx_cv_lib_gtk=
5001df0d
MW
25913 if test "x$wxGTK_VERSION" != "x1"
25914 then
25915 case "${host}" in
25916 *-*-solaris2* )
25917 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 25918 enable_gtktest=no
5001df0d
MW
25919 fi
25920 esac
25921
a848cd7e
SC
25922 # Check whether --enable-gtktest or --disable-gtktest was given.
25923if test "${enable_gtktest+set}" = set; then
25924 enableval="$enable_gtktest"
25925
25926else
25927 enable_gtktest=yes
25928fi;
25929
25930 pkg_config_args=gtk+-2.0
25931 for module in . $GTK_MODULES
25932 do
25933 case "$module" in
25934 gthread)
25935 pkg_config_args="$pkg_config_args gthread-2.0"
25936 ;;
25937 esac
25938 done
25939
25940 no_gtk=""
25941
25942 # Extract the first word of "pkg-config", so it can be a program name with args.
25943set dummy pkg-config; ac_word=$2
25944echo "$as_me:$LINENO: checking for $ac_word" >&5
25945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25946if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25947 echo $ECHO_N "(cached) $ECHO_C" >&6
25948else
25949 case $PKG_CONFIG in
25950 [\\/]* | ?:[\\/]*)
25951 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25952 ;;
25953 *)
25954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25955for as_dir in $PATH
25956do
25957 IFS=$as_save_IFS
25958 test -z "$as_dir" && as_dir=.
25959 for ac_exec_ext in '' $ac_executable_extensions; do
25960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25961 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25963 break 2
25964 fi
25965done
25966done
25967
25968 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25969 ;;
25970esac
25971fi
25972PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25973
25974if test -n "$PKG_CONFIG"; then
25975 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25976echo "${ECHO_T}$PKG_CONFIG" >&6
25977else
25978 echo "$as_me:$LINENO: result: no" >&5
25979echo "${ECHO_T}no" >&6
25980fi
25981
25982
25983 if test x$PKG_CONFIG != xno ; then
25984 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25985 :
25986 else
c2218763 25987 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25988 no_gtk=yes
25989 PKG_CONFIG=no
25990 fi
25991 else
25992 no_gtk=yes
25993 fi
25994
25995 min_gtk_version=2.0.0
25996 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25997echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25998
25999 if test x$PKG_CONFIG != xno ; then
26000 ## don't try to run the test against uninstalled libtool libs
26001 if $PKG_CONFIG --uninstalled $pkg_config_args; then
26002 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
26003 enable_gtktest=no
26004 fi
26005
26006 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26007 :
26008 else
26009 no_gtk=yes
26010 fi
26011 fi
26012
26013 if test x"$no_gtk" = x ; then
26014 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26015 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26016 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26017 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26018 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26019 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26020 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26021 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26022 if test "x$enable_gtktest" = "xyes" ; then
26023 ac_save_CFLAGS="$CFLAGS"
26024 ac_save_LIBS="$LIBS"
26025 CFLAGS="$CFLAGS $GTK_CFLAGS"
26026 LIBS="$GTK_LIBS $LIBS"
26027 rm -f conf.gtktest
26028 if test "$cross_compiling" = yes; then
26029 echo $ac_n "cross compiling; assumed OK... $ac_c"
26030else
26031 cat >conftest.$ac_ext <<_ACEOF
26032/* confdefs.h. */
26033_ACEOF
26034cat confdefs.h >>conftest.$ac_ext
26035cat >>conftest.$ac_ext <<_ACEOF
26036/* end confdefs.h. */
26037
26038#include <gtk/gtk.h>
26039#include <stdio.h>
26040#include <stdlib.h>
26041
26042int
26043main ()
26044{
26045 int major, minor, micro;
26046 char *tmp_version;
26047
26048 system ("touch conf.gtktest");
26049
26050 /* HP/UX 9 (%@#!) writes to sscanf strings */
26051 tmp_version = g_strdup("$min_gtk_version");
26052 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26053 printf("%s, bad version string\n", "$min_gtk_version");
26054 exit(1);
26055 }
26056
26057 if ((gtk_major_version != $gtk_config_major_version) ||
26058 (gtk_minor_version != $gtk_config_minor_version) ||
26059 (gtk_micro_version != $gtk_config_micro_version))
26060 {
26061 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26062 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26063 gtk_major_version, gtk_minor_version, gtk_micro_version);
26064 printf ("*** was found! If pkg-config was correct, then it is best\n");
26065 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26066 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26067 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26068 printf("*** required on your system.\n");
26069 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26070 printf("*** to point to the correct configuration files\n");
26071 }
26072 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26073 (gtk_minor_version != GTK_MINOR_VERSION) ||
26074 (gtk_micro_version != GTK_MICRO_VERSION))
26075 {
26076 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26077 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26078 printf("*** library (version %d.%d.%d)\n",
26079 gtk_major_version, gtk_minor_version, gtk_micro_version);
26080 }
26081 else
26082 {
26083 if ((gtk_major_version > major) ||
26084 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26085 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26086 {
26087 return 0;
26088 }
26089 else
26090 {
26091 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26092 gtk_major_version, gtk_minor_version, gtk_micro_version);
26093 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26094 major, minor, micro);
26095 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26096 printf("***\n");
26097 printf("*** If you have already installed a sufficiently new version, this error\n");
26098 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26099 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26100 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26101 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26102 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26103 printf("*** so that the correct libraries are found at run-time))\n");
26104 }
26105 }
26106 return 1;
26107}
26108
26109_ACEOF
26110rm -f conftest$ac_exeext
26111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26112 (eval $ac_link) 2>&5
26113 ac_status=$?
26114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117 (eval $ac_try) 2>&5
26118 ac_status=$?
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); }; }; then
26121 :
26122else
26123 echo "$as_me: program exited with status $ac_status" >&5
26124echo "$as_me: failed program was:" >&5
26125sed 's/^/| /' conftest.$ac_ext >&5
26126
26127( exit $ac_status )
26128no_gtk=yes
26129fi
ac1cb8d3 26130rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26131fi
26132 CFLAGS="$ac_save_CFLAGS"
26133 LIBS="$ac_save_LIBS"
26134 fi
26135 fi
26136 if test "x$no_gtk" = x ; then
26137 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26138echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26139 wx_cv_lib_gtk=2.0
26140 else
26141 echo "$as_me:$LINENO: result: no" >&5
26142echo "${ECHO_T}no" >&6
26143 if test "$PKG_CONFIG" = "no" ; then
26144 echo "*** A new enough version of pkg-config was not found."
26145 echo "*** See http://pkgconfig.sourceforge.net"
26146 else
26147 if test -f conf.gtktest ; then
26148 :
26149 else
26150 echo "*** Could not run GTK+ test program, checking why..."
26151 ac_save_CFLAGS="$CFLAGS"
26152 ac_save_LIBS="$LIBS"
26153 CFLAGS="$CFLAGS $GTK_CFLAGS"
26154 LIBS="$LIBS $GTK_LIBS"
26155 cat >conftest.$ac_ext <<_ACEOF
26156/* confdefs.h. */
26157_ACEOF
26158cat confdefs.h >>conftest.$ac_ext
26159cat >>conftest.$ac_ext <<_ACEOF
26160/* end confdefs.h. */
26161
26162#include <gtk/gtk.h>
26163#include <stdio.h>
26164
26165int
26166main ()
26167{
26168 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26169 ;
26170 return 0;
26171}
26172_ACEOF
26173rm -f conftest.$ac_objext conftest$ac_exeext
26174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26175 (eval $ac_link) 2>conftest.er1
a848cd7e 26176 ac_status=$?
ac1cb8d3
VS
26177 grep -v '^ *+' conftest.er1 >conftest.err
26178 rm -f conftest.er1
26179 cat conftest.err >&5
a848cd7e
SC
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); } &&
5ff751d6 26182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184 (eval $ac_try) 2>&5
26185 ac_status=$?
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); }; } &&
26188 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26190 (eval $ac_try) 2>&5
26191 ac_status=$?
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); }; }; then
26194 echo "*** The test program compiled, but did not run. This usually means"
26195 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26196 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26197 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26198 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26199 echo "*** is required on your system"
26200 echo "***"
26201 echo "*** If you have an old version installed, it is best to remove it, although"
26202 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26203else
26204 echo "$as_me: failed program was:" >&5
26205sed 's/^/| /' conftest.$ac_ext >&5
26206
26207 echo "*** The test program failed to compile or link. See the file config.log for the"
26208 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26209fi
ac1cb8d3
VS
26210rm -f conftest.err conftest.$ac_objext \
26211 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26212 CFLAGS="$ac_save_CFLAGS"
26213 LIBS="$ac_save_LIBS"
26214 fi
26215 fi
26216 GTK_CFLAGS=""
26217 GTK_LIBS=""
26218 :
26219 fi
26220
26221
26222 rm -f conf.gtktest
26223
5001df0d
MW
26224
26225 case "${host}" in
26226 *-*-solaris2* )
26227 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26228 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26229 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26230 fi
26231 if test "$wxUSE_SHARED" != "yes"; then
26232 GTK_LIBS="$GTK_LIBS -lX11"
26233 fi
26234 esac
f597b41c
MW
26235 fi
26236
f34ca037
MW
26237 if test -z "$wx_cv_lib_gtk"; then
26238 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26239
26240# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26241if test "${with_gtk_prefix+set}" = set; then
26242 withval="$with_gtk_prefix"
26243 gtk_config_prefix="$withval"
26244else
26245 gtk_config_prefix=""
26246fi;
26247
26248# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26249if test "${with_gtk_exec_prefix+set}" = set; then
26250 withval="$with_gtk_exec_prefix"
26251 gtk_config_exec_prefix="$withval"
26252else
26253 gtk_config_exec_prefix=""
26254fi;
26255# Check whether --enable-gtktest or --disable-gtktest was given.
26256if test "${enable_gtktest+set}" = set; then
26257 enableval="$enable_gtktest"
26258
26259else
26260 enable_gtktest=yes
26261fi;
26262
26263 for module in . $GTK_MODULES
26264 do
26265 case "$module" in
26266 gthread)
26267 gtk_config_args="$gtk_config_args gthread"
26268 ;;
26269 esac
26270 done
26271
26272 if test x$gtk_config_exec_prefix != x ; then
26273 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26274 if test x${GTK_CONFIG+set} != xset ; then
26275 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26276 fi
26277 fi
26278 if test x$gtk_config_prefix != x ; then
26279 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26280 if test x${GTK_CONFIG+set} != xset ; then
26281 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26282 fi
26283 fi
26284
26285 # Extract the first word of "gtk-config", so it can be a program name with args.
26286set dummy gtk-config; ac_word=$2
26287echo "$as_me:$LINENO: checking for $ac_word" >&5
26288echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26289if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26290 echo $ECHO_N "(cached) $ECHO_C" >&6
26291else
26292 case $GTK_CONFIG in
26293 [\\/]* | ?:[\\/]*)
26294 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26295 ;;
26296 *)
26297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26298for as_dir in $PATH
26299do
26300 IFS=$as_save_IFS
26301 test -z "$as_dir" && as_dir=.
26302 for ac_exec_ext in '' $ac_executable_extensions; do
26303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26304 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26306 break 2
26307 fi
26308done
26309done
26310
26311 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26312 ;;
26313esac
26314fi
26315GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26316
26317if test -n "$GTK_CONFIG"; then
26318 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26319echo "${ECHO_T}$GTK_CONFIG" >&6
26320else
26321 echo "$as_me:$LINENO: result: no" >&5
26322echo "${ECHO_T}no" >&6
26323fi
26324
26325 min_gtk_version=1.2.7
26326 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26327echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26328 no_gtk=""
26329 if test "$GTK_CONFIG" = "no" ; then
26330 no_gtk=yes
26331 else
26332 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26333 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26334 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26335 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26336 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26337 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26338 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26339 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26340 if test "x$enable_gtktest" = "xyes" ; then
26341 ac_save_CFLAGS="$CFLAGS"
26342 ac_save_LIBS="$LIBS"
26343 CFLAGS="$CFLAGS $GTK_CFLAGS"
26344 LIBS="$GTK_LIBS $LIBS"
26345 rm -f conf.gtktest
26346 if test "$cross_compiling" = yes; then
26347 echo $ac_n "cross compiling; assumed OK... $ac_c"
26348else
26349 cat >conftest.$ac_ext <<_ACEOF
26350/* confdefs.h. */
26351_ACEOF
26352cat confdefs.h >>conftest.$ac_ext
26353cat >>conftest.$ac_ext <<_ACEOF
26354/* end confdefs.h. */
26355
26356#include <gtk/gtk.h>
26357#include <stdio.h>
26358#include <stdlib.h>
26359
26360int
26361main ()
26362{
26363 int major, minor, micro;
26364 char *tmp_version;
26365
26366 system ("touch conf.gtktest");
26367
26368 /* HP/UX 9 (%@#!) writes to sscanf strings */
26369 tmp_version = g_strdup("$min_gtk_version");
26370 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26371 printf("%s, bad version string\n", "$min_gtk_version");
26372 exit(1);
26373 }
26374
26375 if ((gtk_major_version != $gtk_config_major_version) ||
26376 (gtk_minor_version != $gtk_config_minor_version) ||
26377 (gtk_micro_version != $gtk_config_micro_version))
26378 {
26379 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26380 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26381 gtk_major_version, gtk_minor_version, gtk_micro_version);
26382 printf ("*** was found! If gtk-config was correct, then it is best\n");
26383 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26384 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26385 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26386 printf("*** required on your system.\n");
26387 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26388 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26389 printf("*** before re-running configure\n");
26390 }
26391#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26392 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26393 (gtk_minor_version != GTK_MINOR_VERSION) ||
26394 (gtk_micro_version != GTK_MICRO_VERSION))
26395 {
26396 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26397 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26398 printf("*** library (version %d.%d.%d)\n",
26399 gtk_major_version, gtk_minor_version, gtk_micro_version);
26400 }
26401#endif /* defined (GTK_MAJOR_VERSION) ... */
26402 else
26403 {
26404 if ((gtk_major_version > major) ||
26405 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26406 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26407 {
26408 return 0;
26409 }
26410 else
26411 {
26412 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26413 gtk_major_version, gtk_minor_version, gtk_micro_version);
26414 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26415 major, minor, micro);
26416 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26417 printf("***\n");
26418 printf("*** If you have already installed a sufficiently new version, this error\n");
26419 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26420 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26421 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26422 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26423 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26424 printf("*** so that the correct libraries are found at run-time))\n");
26425 }
26426 }
26427 return 1;
26428}
26429
26430_ACEOF
26431rm -f conftest$ac_exeext
26432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26433 (eval $ac_link) 2>&5
26434 ac_status=$?
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26438 (eval $ac_try) 2>&5
26439 ac_status=$?
26440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26441 (exit $ac_status); }; }; then
26442 :
26443else
26444 echo "$as_me: program exited with status $ac_status" >&5
26445echo "$as_me: failed program was:" >&5
26446sed 's/^/| /' conftest.$ac_ext >&5
26447
26448( exit $ac_status )
26449no_gtk=yes
26450fi
ac1cb8d3 26451rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26452fi
26453 CFLAGS="$ac_save_CFLAGS"
26454 LIBS="$ac_save_LIBS"
26455 fi
26456 fi
26457 if test "x$no_gtk" = x ; then
26458 echo "$as_me:$LINENO: result: yes" >&5
26459echo "${ECHO_T}yes" >&6
26460 wx_cv_lib_gtk=1.2.7
26461 else
26462 echo "$as_me:$LINENO: result: no" >&5
26463echo "${ECHO_T}no" >&6
26464 if test "$GTK_CONFIG" = "no" ; then
26465 echo "*** The gtk-config script installed by GTK could not be found"
26466 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26467 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26468 echo "*** full path to gtk-config."
26469 else
26470 if test -f conf.gtktest ; then
26471 :
26472 else
26473 echo "*** Could not run GTK test program, checking why..."
26474 CFLAGS="$CFLAGS $GTK_CFLAGS"
26475 LIBS="$LIBS $GTK_LIBS"
26476 cat >conftest.$ac_ext <<_ACEOF
26477/* confdefs.h. */
26478_ACEOF
26479cat confdefs.h >>conftest.$ac_ext
26480cat >>conftest.$ac_ext <<_ACEOF
26481/* end confdefs.h. */
26482
26483#include <gtk/gtk.h>
26484#include <stdio.h>
26485
26486int
26487main ()
26488{
26489 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26490 ;
26491 return 0;
26492}
26493_ACEOF
26494rm -f conftest.$ac_objext conftest$ac_exeext
26495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26496 (eval $ac_link) 2>conftest.er1
a848cd7e 26497 ac_status=$?
ac1cb8d3
VS
26498 grep -v '^ *+' conftest.er1 >conftest.err
26499 rm -f conftest.er1
26500 cat conftest.err >&5
a848cd7e
SC
26501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502 (exit $ac_status); } &&
5ff751d6 26503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26505 (eval $ac_try) 2>&5
26506 ac_status=$?
26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26508 (exit $ac_status); }; } &&
26509 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26511 (eval $ac_try) 2>&5
26512 ac_status=$?
26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); }; }; then
26515 echo "*** The test program compiled, but did not run. This usually means"
26516 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26517 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26518 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26519 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26520 echo "*** is required on your system"
26521 echo "***"
26522 echo "*** If you have an old version installed, it is best to remove it, although"
26523 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26524 echo "***"
26525 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26526 echo "*** came with the system with the command"
26527 echo "***"
26528 echo "*** rpm --erase --nodeps gtk gtk-devel"
26529else
26530 echo "$as_me: failed program was:" >&5
26531sed 's/^/| /' conftest.$ac_ext >&5
26532
26533 echo "*** The test program failed to compile or link. See the file config.log for the"
26534 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26535 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26536 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26537fi
ac1cb8d3
VS
26538rm -f conftest.err conftest.$ac_objext \
26539 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26540 CFLAGS="$ac_save_CFLAGS"
26541 LIBS="$ac_save_LIBS"
26542 fi
26543 fi
26544 GTK_CFLAGS=""
26545 GTK_LIBS=""
26546 :
26547 fi
26548
26549
26550 rm -f conf.gtktest
26551
26552
f34ca037 26553 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26554
26555# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26556if test "${with_gtk_prefix+set}" = set; then
26557 withval="$with_gtk_prefix"
26558 gtk_config_prefix="$withval"
26559else
26560 gtk_config_prefix=""
26561fi;
26562
26563# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26564if test "${with_gtk_exec_prefix+set}" = set; then
26565 withval="$with_gtk_exec_prefix"
26566 gtk_config_exec_prefix="$withval"
26567else
26568 gtk_config_exec_prefix=""
26569fi;
26570# Check whether --enable-gtktest or --disable-gtktest was given.
26571if test "${enable_gtktest+set}" = set; then
26572 enableval="$enable_gtktest"
26573
26574else
26575 enable_gtktest=yes
26576fi;
26577
26578 for module in . $GTK_MODULES
26579 do
26580 case "$module" in
26581 gthread)
26582 gtk_config_args="$gtk_config_args gthread"
26583 ;;
26584 esac
26585 done
26586
26587 if test x$gtk_config_exec_prefix != x ; then
26588 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26589 if test x${GTK_CONFIG+set} != xset ; then
26590 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26591 fi
26592 fi
26593 if test x$gtk_config_prefix != x ; then
26594 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26595 if test x${GTK_CONFIG+set} != xset ; then
26596 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26597 fi
26598 fi
26599
26600 # Extract the first word of "gtk-config", so it can be a program name with args.
26601set dummy gtk-config; ac_word=$2
26602echo "$as_me:$LINENO: checking for $ac_word" >&5
26603echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26604if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26605 echo $ECHO_N "(cached) $ECHO_C" >&6
26606else
26607 case $GTK_CONFIG in
26608 [\\/]* | ?:[\\/]*)
26609 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26610 ;;
26611 *)
26612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26613for as_dir in $PATH
26614do
26615 IFS=$as_save_IFS
26616 test -z "$as_dir" && as_dir=.
26617 for ac_exec_ext in '' $ac_executable_extensions; do
26618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26619 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26621 break 2
26622 fi
26623done
26624done
26625
26626 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26627 ;;
26628esac
26629fi
26630GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26631
26632if test -n "$GTK_CONFIG"; then
26633 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26634echo "${ECHO_T}$GTK_CONFIG" >&6
26635else
26636 echo "$as_me:$LINENO: result: no" >&5
26637echo "${ECHO_T}no" >&6
26638fi
26639
26640 min_gtk_version=1.2.3
26641 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26642echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26643 no_gtk=""
26644 if test "$GTK_CONFIG" = "no" ; then
26645 no_gtk=yes
26646 else
26647 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26648 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26649 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26650 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26651 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26652 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26653 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26654 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26655 if test "x$enable_gtktest" = "xyes" ; then
26656 ac_save_CFLAGS="$CFLAGS"
26657 ac_save_LIBS="$LIBS"
26658 CFLAGS="$CFLAGS $GTK_CFLAGS"
26659 LIBS="$GTK_LIBS $LIBS"
26660 rm -f conf.gtktest
26661 if test "$cross_compiling" = yes; then
26662 echo $ac_n "cross compiling; assumed OK... $ac_c"
26663else
26664 cat >conftest.$ac_ext <<_ACEOF
26665/* confdefs.h. */
26666_ACEOF
26667cat confdefs.h >>conftest.$ac_ext
26668cat >>conftest.$ac_ext <<_ACEOF
26669/* end confdefs.h. */
26670
26671#include <gtk/gtk.h>
26672#include <stdio.h>
26673#include <stdlib.h>
26674
26675int
26676main ()
26677{
26678 int major, minor, micro;
26679 char *tmp_version;
26680
26681 system ("touch conf.gtktest");
26682
26683 /* HP/UX 9 (%@#!) writes to sscanf strings */
26684 tmp_version = g_strdup("$min_gtk_version");
26685 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26686 printf("%s, bad version string\n", "$min_gtk_version");
26687 exit(1);
26688 }
26689
26690 if ((gtk_major_version != $gtk_config_major_version) ||
26691 (gtk_minor_version != $gtk_config_minor_version) ||
26692 (gtk_micro_version != $gtk_config_micro_version))
26693 {
26694 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26695 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26696 gtk_major_version, gtk_minor_version, gtk_micro_version);
26697 printf ("*** was found! If gtk-config was correct, then it is best\n");
26698 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26699 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26700 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26701 printf("*** required on your system.\n");
26702 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26703 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26704 printf("*** before re-running configure\n");
26705 }
26706#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26707 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26708 (gtk_minor_version != GTK_MINOR_VERSION) ||
26709 (gtk_micro_version != GTK_MICRO_VERSION))
26710 {
26711 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26712 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26713 printf("*** library (version %d.%d.%d)\n",
26714 gtk_major_version, gtk_minor_version, gtk_micro_version);
26715 }
26716#endif /* defined (GTK_MAJOR_VERSION) ... */
26717 else
26718 {
26719 if ((gtk_major_version > major) ||
26720 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26721 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26722 {
26723 return 0;
26724 }
26725 else
26726 {
26727 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26728 gtk_major_version, gtk_minor_version, gtk_micro_version);
26729 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26730 major, minor, micro);
26731 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26732 printf("***\n");
26733 printf("*** If you have already installed a sufficiently new version, this error\n");
26734 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26735 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26736 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26737 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26738 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26739 printf("*** so that the correct libraries are found at run-time))\n");
26740 }
26741 }
26742 return 1;
26743}
26744
26745_ACEOF
26746rm -f conftest$ac_exeext
26747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26748 (eval $ac_link) 2>&5
26749 ac_status=$?
26750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26753 (eval $ac_try) 2>&5
26754 ac_status=$?
26755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26756 (exit $ac_status); }; }; then
26757 :
26758else
26759 echo "$as_me: program exited with status $ac_status" >&5
26760echo "$as_me: failed program was:" >&5
26761sed 's/^/| /' conftest.$ac_ext >&5
26762
26763( exit $ac_status )
26764no_gtk=yes
26765fi
ac1cb8d3 26766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26767fi
26768 CFLAGS="$ac_save_CFLAGS"
26769 LIBS="$ac_save_LIBS"
26770 fi
26771 fi
26772 if test "x$no_gtk" = x ; then
26773 echo "$as_me:$LINENO: result: yes" >&5
26774echo "${ECHO_T}yes" >&6
26775 wx_cv_lib_gtk=1.2.3
26776 else
26777 echo "$as_me:$LINENO: result: no" >&5
26778echo "${ECHO_T}no" >&6
26779 if test "$GTK_CONFIG" = "no" ; then
26780 echo "*** The gtk-config script installed by GTK could not be found"
26781 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26782 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26783 echo "*** full path to gtk-config."
26784 else
26785 if test -f conf.gtktest ; then
26786 :
26787 else
26788 echo "*** Could not run GTK test program, checking why..."
26789 CFLAGS="$CFLAGS $GTK_CFLAGS"
26790 LIBS="$LIBS $GTK_LIBS"
26791 cat >conftest.$ac_ext <<_ACEOF
26792/* confdefs.h. */
26793_ACEOF
26794cat confdefs.h >>conftest.$ac_ext
26795cat >>conftest.$ac_ext <<_ACEOF
26796/* end confdefs.h. */
26797
26798#include <gtk/gtk.h>
26799#include <stdio.h>
26800
26801int
26802main ()
26803{
26804 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26805 ;
26806 return 0;
26807}
26808_ACEOF
26809rm -f conftest.$ac_objext conftest$ac_exeext
26810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26811 (eval $ac_link) 2>conftest.er1
a848cd7e 26812 ac_status=$?
ac1cb8d3
VS
26813 grep -v '^ *+' conftest.er1 >conftest.err
26814 rm -f conftest.er1
26815 cat conftest.err >&5
a848cd7e
SC
26816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26817 (exit $ac_status); } &&
5ff751d6 26818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26820 (eval $ac_try) 2>&5
26821 ac_status=$?
26822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; } &&
26824 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26826 (eval $ac_try) 2>&5
26827 ac_status=$?
26828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26829 (exit $ac_status); }; }; then
26830 echo "*** The test program compiled, but did not run. This usually means"
26831 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26832 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26833 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26834 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26835 echo "*** is required on your system"
26836 echo "***"
26837 echo "*** If you have an old version installed, it is best to remove it, although"
26838 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26839 echo "***"
26840 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26841 echo "*** came with the system with the command"
26842 echo "***"
26843 echo "*** rpm --erase --nodeps gtk gtk-devel"
26844else
26845 echo "$as_me: failed program was:" >&5
26846sed 's/^/| /' conftest.$ac_ext >&5
26847
26848 echo "*** The test program failed to compile or link. See the file config.log for the"
26849 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26850 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26851 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26852fi
ac1cb8d3
VS
26853rm -f conftest.err conftest.$ac_objext \
26854 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26855 CFLAGS="$ac_save_CFLAGS"
26856 LIBS="$ac_save_LIBS"
26857 fi
26858 fi
26859 GTK_CFLAGS=""
26860 GTK_LIBS=""
26861 :
26862 fi
26863
26864
26865 rm -f conf.gtktest
26866
f34ca037 26867 fi
a848cd7e
SC
26868 fi
26869 fi
26870
26871 if test -z "$wx_cv_lib_gtk"; then
26872 wx_cv_lib_gtk=none
26873 else
26874 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 26875 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
26876 fi
26877
26878
26879fi
26880
26881
26882 if test "$gtk_version_cached" = 1; then
26883 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26884echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26885 fi
26886
26887 case "$wx_cv_lib_gtk" in
26888 2.0) WXGTK20=1
26889 TOOLKIT_VERSION=2
26890 ;;
26891 1.2.7) WXGTK127=1
26892 WXGTK12=1
26893 ;;
26894 1.2.3) WXGTK12=1
26895 ;;
26896 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26897The development files for GTK+ were not found. For GTK+ 2, please
26898ensure that pkg-config is in the path and that gtk+-2.0.pc is
26899installed. For GTK+ 1.2 please check that gtk-config is in the path,
26900and that the version is 1.2.3 or above. Also check that the
26901libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26902--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26903 " >&5
26904echo "$as_me: error:
f597b41c
MW
26905The development files for GTK+ were not found. For GTK+ 2, please
26906ensure that pkg-config is in the path and that gtk+-2.0.pc is
26907installed. For GTK+ 1.2 please check that gtk-config is in the path,
26908and that the version is 1.2.3 or above. Also check that the
26909libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26910--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26911 " >&2;}
26912 { (exit 1); exit 1; }; }
26913 ;;
26914 esac
26915
26916 if test "$WXGTK20" = 1; then
304205f1
VS
26917 save_CFLAGS="$CFLAGS"
26918 save_LIBS="$LIBS"
c92ad099 26919 CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
abc736fd 26920 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26921
d12aef51
VZ
26922 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26923echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26924 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26925/* confdefs.h. */
26926_ACEOF
26927cat confdefs.h >>conftest.$ac_ext
26928cat >>conftest.$ac_ext <<_ACEOF
26929/* end confdefs.h. */
304205f1 26930
d12aef51 26931 #include <gtk/gtk.h>
304205f1 26932
d12aef51
VZ
26933int
26934main ()
26935{
304205f1 26936
d12aef51 26937 void *f = gtk_icon_size_lookup;
abc736fd
MW
26938
26939 ;
26940 return 0;
26941}
26942_ACEOF
26943rm -f conftest.$ac_objext
26944if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26945 (eval $ac_compile) 2>conftest.er1
26946 ac_status=$?
26947 grep -v '^ *+' conftest.er1 >conftest.err
26948 rm -f conftest.er1
26949 cat conftest.err >&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); } &&
5ff751d6 26952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
26953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26954 (eval $ac_try) 2>&5
26955 ac_status=$?
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); }; } &&
26958 { ac_try='test -s conftest.$ac_objext'
26959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26960 (eval $ac_try) 2>&5
26961 ac_status=$?
26962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26963 (exit $ac_status); }; }; then
26964
26965 echo "$as_me:$LINENO: result: no" >&5
26966echo "${ECHO_T}no" >&6
26967
26968else
26969 echo "$as_me: failed program was:" >&5
26970sed 's/^/| /' conftest.$ac_ext >&5
26971
26972
26973 cat >>confdefs.h <<\_ACEOF
26974#define NEED_GTK_ICON_SIZE_LOOKUP 1
26975_ACEOF
26976
26977 echo "$as_me:$LINENO: result: yes" >&5
26978echo "${ECHO_T}yes" >&6
26979
26980fi
26981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26982
9755e73b
VS
26983 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26984echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26985 cat >conftest.$ac_ext <<_ACEOF
26986/* confdefs.h. */
26987_ACEOF
26988cat confdefs.h >>conftest.$ac_ext
26989cat >>conftest.$ac_ext <<_ACEOF
26990/* end confdefs.h. */
26991
26992 #include <gtk/gtk.h>
26993
26994int
26995main ()
26996{
26997
26998 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26999 Not GTK+ 2.4
9755e73b
VS
27000 #endif
27001
27002 ;
27003 return 0;
27004}
27005_ACEOF
27006rm -f conftest.$ac_objext
27007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27008 (eval $ac_compile) 2>conftest.er1
27009 ac_status=$?
27010 grep -v '^ *+' conftest.er1 >conftest.err
27011 rm -f conftest.er1
27012 cat conftest.err >&5
27013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); } &&
5ff751d6 27015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
27016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017 (eval $ac_try) 2>&5
27018 ac_status=$?
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); }; } &&
27021 { ac_try='test -s conftest.$ac_objext'
27022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023 (eval $ac_try) 2>&5
27024 ac_status=$?
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; }; then
27027
27028 cat >>confdefs.h <<\_ACEOF
27029#define __WXGTK24__ 1
27030_ACEOF
27031
27032 echo "$as_me:$LINENO: result: yes" >&5
27033echo "${ECHO_T}yes" >&6
27034
27035else
27036 echo "$as_me: failed program was:" >&5
27037sed 's/^/| /' conftest.$ac_ext >&5
27038
27039
27040 echo "$as_me:$LINENO: result: no" >&5
27041echo "${ECHO_T}no" >&6
27042
27043fi
27044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27045
304205f1
VS
27046 CFLAGS="$save_CFLAGS"
27047 LIBS="$save_LIBS"
a848cd7e
SC
27048 else
27049 if test "$wxUSE_UNICODE" = "yes"; then
27050 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27051echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27052 wxUSE_UNICODE=no
27053 fi
27054 fi
27055
27056 if test "$USE_DARWIN" != 1; then
27057
27058for ac_func in poll
27059do
27060as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27061echo "$as_me:$LINENO: checking for $ac_func" >&5
27062echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27063if eval "test \"\${$as_ac_var+set}\" = set"; then
27064 echo $ECHO_N "(cached) $ECHO_C" >&6
27065else
27066 cat >conftest.$ac_ext <<_ACEOF
27067/* confdefs.h. */
27068_ACEOF
27069cat confdefs.h >>conftest.$ac_ext
27070cat >>conftest.$ac_ext <<_ACEOF
27071/* end confdefs.h. */
ac1cb8d3
VS
27072/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27073 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27074#define $ac_func innocuous_$ac_func
27075
a848cd7e
SC
27076/* System header to define __stub macros and hopefully few prototypes,
27077 which can conflict with char $ac_func (); below.
27078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27079 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27080
a848cd7e
SC
27081#ifdef __STDC__
27082# include <limits.h>
27083#else
27084# include <assert.h>
27085#endif
ac1cb8d3
VS
27086
27087#undef $ac_func
27088
a848cd7e
SC
27089/* Override any gcc2 internal prototype to avoid an error. */
27090#ifdef __cplusplus
27091extern "C"
27092{
27093#endif
27094/* We use char because int might match the return type of a gcc2
27095 builtin and then its argument prototype would still apply. */
27096char $ac_func ();
27097/* The GNU C library defines this for functions which it implements
27098 to always fail with ENOSYS. Some functions are actually named
27099 something starting with __ and the normal name is an alias. */
27100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27101choke me
27102#else
27103char (*f) () = $ac_func;
27104#endif
27105#ifdef __cplusplus
27106}
27107#endif
27108
27109int
27110main ()
27111{
27112return f != $ac_func;
27113 ;
27114 return 0;
27115}
27116_ACEOF
27117rm -f conftest.$ac_objext conftest$ac_exeext
27118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27119 (eval $ac_link) 2>conftest.er1
a848cd7e 27120 ac_status=$?
ac1cb8d3
VS
27121 grep -v '^ *+' conftest.er1 >conftest.err
27122 rm -f conftest.er1
27123 cat conftest.err >&5
a848cd7e
SC
27124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27125 (exit $ac_status); } &&
5ff751d6 27126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27128 (eval $ac_try) 2>&5
27129 ac_status=$?
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); }; } &&
27132 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27134 (eval $ac_try) 2>&5
27135 ac_status=$?
27136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); }; }; then
27138 eval "$as_ac_var=yes"
27139else
27140 echo "$as_me: failed program was:" >&5
27141sed 's/^/| /' conftest.$ac_ext >&5
27142
27143eval "$as_ac_var=no"
27144fi
ac1cb8d3
VS
27145rm -f conftest.err conftest.$ac_objext \
27146 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27147fi
27148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27149echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27150if test `eval echo '${'$as_ac_var'}'` = yes; then
27151 cat >>confdefs.h <<_ACEOF
27152#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27153_ACEOF
27154
27155fi
27156done
27157
27158 fi
27159
27160 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27161 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27162
27163 AFMINSTALL=afminstall
27164 TOOLKIT=GTK
27165 GUIDIST=GTK_DIST
27166
27167 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27168echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27169if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27171else
27172 ac_check_lib_save_LIBS=$LIBS
27173LIBS="-lgdk $LIBS"
27174cat >conftest.$ac_ext <<_ACEOF
27175/* confdefs.h. */
27176_ACEOF
27177cat confdefs.h >>conftest.$ac_ext
27178cat >>conftest.$ac_ext <<_ACEOF
27179/* end confdefs.h. */
27180
27181/* Override any gcc2 internal prototype to avoid an error. */
27182#ifdef __cplusplus
27183extern "C"
27184#endif
27185/* We use char because int might match the return type of a gcc2
27186 builtin and then its argument prototype would still apply. */
27187char gdk_im_open ();
27188int
27189main ()
27190{
27191gdk_im_open ();
27192 ;
27193 return 0;
27194}
27195_ACEOF
27196rm -f conftest.$ac_objext conftest$ac_exeext
27197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27198 (eval $ac_link) 2>conftest.er1
a848cd7e 27199 ac_status=$?
ac1cb8d3
VS
27200 grep -v '^ *+' conftest.er1 >conftest.err
27201 rm -f conftest.er1
27202 cat conftest.err >&5
a848cd7e
SC
27203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27204 (exit $ac_status); } &&
5ff751d6 27205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27207 (eval $ac_try) 2>&5
27208 ac_status=$?
27209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210 (exit $ac_status); }; } &&
27211 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27213 (eval $ac_try) 2>&5
27214 ac_status=$?
27215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27216 (exit $ac_status); }; }; then
27217 ac_cv_lib_gdk_gdk_im_open=yes
27218else
27219 echo "$as_me: failed program was:" >&5
27220sed 's/^/| /' conftest.$ac_ext >&5
27221
27222ac_cv_lib_gdk_gdk_im_open=no
27223fi
ac1cb8d3
VS
27224rm -f conftest.err conftest.$ac_objext \
27225 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27226LIBS=$ac_check_lib_save_LIBS
27227fi
27228echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27229echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27230if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27231 cat >>confdefs.h <<\_ACEOF
27232#define HAVE_XIM 1
27233_ACEOF
27234
27235fi
27236
27237
27238
27239 if test "$wxUSE_GPE" = "yes"; then
27240 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27241echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27242
0ad5d837
VZ
27243 ac_find_libraries=
27244 for ac_dir in $SEARCH_LIB;
a848cd7e 27245 do
3eca31dc 27246 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27247 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27248 ac_find_libraries=$ac_dir
27249 break 2
27250 fi
27251 done
27252 done
27253
27254 if test "$ac_find_libraries" != "" ; then
27255
0ad5d837 27256 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27257 ac_path_to_link=""
27258 else
0ad5d837
VZ
27259 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27260 result=$?
27261 if test $result = 0; then
27262 ac_path_to_link=""
27263 else
27264 ac_path_to_link=" -L$ac_find_libraries"
27265 fi
a848cd7e
SC
27266 fi
27267
27268 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27269 WXGPE=1
0ad5d837
VZ
27270 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27271echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27272 else
27273 echo "$as_me:$LINENO: result: not found" >&5
27274echo "${ECHO_T}not found" >&6
27275 fi
27276
27277 fi
27278 fi
27279
27280 if test "$wxUSE_MGL" = 1; then
27281 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27282echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27283 if test "x$MGL_ROOT" = x ; then
27284 echo "$as_me:$LINENO: result: not found" >&5
27285echo "${ECHO_T}not found" >&6
27286 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27287echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27288 { (exit 1); exit 1; }; }
27289 else
27290 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27291echo "${ECHO_T}$MGL_ROOT" >&6
27292 fi
27293
27294 echo "$as_me:$LINENO: checking for libmgl location" >&5
27295echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27296 case "${host}" in
27297 *-*-linux* )
27298 if test "x$wxUSE_SHARED" = xyes ; then
27299 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27300 else
27301 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27302 fi
27303 ;;
27304 *-pc-msdosdjgpp )
27305 mgl_os_candidates="dos32/dj2"
27306 ;;
27307 *)
27308 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27309echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27310 { (exit 1); exit 1; }; }
27311 esac
27312
27313 mgl_lib_type=""
27314 mgl_os=""
27315
27316 for mgl_os_i in $mgl_os_candidates ; do
27317 if test "x$mgl_os" = x ; then
27318 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27319 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27320 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27321 mgl_lib_type=debug
27322 mgl_os=$mgl_os_i
27323 fi
27324 fi
27325 if test "x$mgl_lib_type" = x ; then
27326 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27327 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27328 mgl_lib_type=release
27329 mgl_os=$mgl_os_i
27330 fi
27331 fi
27332 fi
27333 done
27334
27335 if test "x$mgl_os" = x ; then
27336 echo "$as_me:$LINENO: result: not found" >&5
27337echo "${ECHO_T}not found" >&6
27338 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27339echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27340 { (exit 1); exit 1; }; }
27341 fi
27342 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27343echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27344
27345 wxUSE_UNIVERSAL="yes"
27346
27347 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27348 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27349
27350 AFMINSTALL=afminstall
27351 TOOLKIT=MGL
27352 GUIDIST=MGL_DIST
27353 fi
27354
27355 if test "$wxUSE_MICROWIN" = 1; then
27356 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27357echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27358 if test "x$MICROWINDOWS" = x ; then
27359 echo "$as_me:$LINENO: result: not found" >&5
27360echo "${ECHO_T}not found" >&6
27361 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27362echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27363 { (exit 1); exit 1; }; }
27364 else
27365 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27366echo "${ECHO_T}$MICROWINDOWS" >&6
27367 fi
27368
27369 if test -f $MICROWINDOWS/lib/libmwin.a; then
27370 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27371echo "${ECHO_T}MicroWindows' libraries found." >&6
27372 else
27373 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27374echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27375 { (exit 1); exit 1; }; }
27376 fi
27377
27378 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27379 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27380
27381 wxUSE_UNIVERSAL="yes"
27382
27383 AFMINSTALL=afminstall
27384 TOOLKIT=MICROWIN
27385 GUIDIST=MICROWIN_DIST
27386
27387 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27388 fi
27389
74b84332 27390 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
5ff751d6
VZ
27391
27392if test "x$ac_path_x_has_been_run" != xyes; then
27393 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27394echo $ECHO_N "checking for X... $ECHO_C" >&6
27395
5ff751d6 27396ac_path_x_has_been_run=yes
a848cd7e
SC
27397
27398# Check whether --with-x or --without-x was given.
27399if test "${with_x+set}" = set; then
27400 withval="$with_x"
27401
27402fi;
27403# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27404if test "x$with_x" = xno; then
27405 # The user explicitly disabled X.
27406 have_x=disabled
27407else
27408 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27409 # Both variables are already set.
27410 have_x=yes
27411 else
27412 if test "${ac_cv_have_x+set}" = set; then
27413 echo $ECHO_N "(cached) $ECHO_C" >&6
27414else
27415 # One or both of the vars are not set, and there is no cached value.
27416ac_x_includes=no ac_x_libraries=no
27417rm -fr conftest.dir
27418if mkdir conftest.dir; then
27419 cd conftest.dir
27420 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27421 cat >Imakefile <<'_ACEOF'
27422acfindx:
27423 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27424_ACEOF
27425 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27426 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27427 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27428 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27429 for ac_extension in a so sl; do
27430 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27431 test -f $ac_im_libdir/libX11.$ac_extension; then
27432 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27433 fi
27434 done
27435 # Screen out bogus values from the imake configuration. They are
27436 # bogus both because they are the default anyway, and because
27437 # using them would break gcc on systems where it needs fixed includes.
27438 case $ac_im_incroot in
27439 /usr/include) ;;
27440 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27441 esac
27442 case $ac_im_usrlibdir in
27443 /usr/lib | /lib) ;;
27444 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27445 esac
27446 fi
27447 cd ..
27448 rm -fr conftest.dir
27449fi
27450
27451# Standard set of common directories for X headers.
27452# Check X11 before X11Rn because it is often a symlink to the current release.
27453ac_x_header_dirs='
27454/usr/X11/include
27455/usr/X11R6/include
27456/usr/X11R5/include
27457/usr/X11R4/include
27458
27459/usr/include/X11
27460/usr/include/X11R6
27461/usr/include/X11R5
27462/usr/include/X11R4
27463
27464/usr/local/X11/include
27465/usr/local/X11R6/include
27466/usr/local/X11R5/include
27467/usr/local/X11R4/include
27468
27469/usr/local/include/X11
27470/usr/local/include/X11R6
27471/usr/local/include/X11R5
27472/usr/local/include/X11R4
27473
27474/usr/X386/include
27475/usr/x386/include
27476/usr/XFree86/include/X11
27477
27478/usr/include
27479/usr/local/include
27480/usr/unsupported/include
27481/usr/athena/include
27482/usr/local/x11r5/include
27483/usr/lpp/Xamples/include
27484
27485/usr/openwin/include
27486/usr/openwin/share/include'
27487
27488if test "$ac_x_includes" = no; then
5ff751d6 27489 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
27490 # First, try using that file with no special directory specified.
27491 cat >conftest.$ac_ext <<_ACEOF
27492/* confdefs.h. */
27493_ACEOF
27494cat confdefs.h >>conftest.$ac_ext
27495cat >>conftest.$ac_ext <<_ACEOF
27496/* end confdefs.h. */
8aeeb05c 27497#include <X11/Xlib.h>
a848cd7e
SC
27498_ACEOF
27499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27501 ac_status=$?
27502 grep -v '^ *+' conftest.er1 >conftest.err
27503 rm -f conftest.er1
27504 cat conftest.err >&5
27505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27506 (exit $ac_status); } >/dev/null; then
27507 if test -s conftest.err; then
27508 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27510 else
27511 ac_cpp_err=
27512 fi
27513else
27514 ac_cpp_err=yes
27515fi
27516if test -z "$ac_cpp_err"; then
27517 # We can compile using X headers with no special include directory.
27518ac_x_includes=
27519else
27520 echo "$as_me: failed program was:" >&5
27521sed 's/^/| /' conftest.$ac_ext >&5
27522
27523 for ac_dir in $ac_x_header_dirs; do
8aeeb05c 27524 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
27525 ac_x_includes=$ac_dir
27526 break
27527 fi
27528done
27529fi
27530rm -f conftest.err conftest.$ac_ext
27531fi # $ac_x_includes = no
27532
27533if test "$ac_x_libraries" = no; then
27534 # Check for the libraries.
27535 # See if we find them without any special options.
27536 # Don't add to $LIBS permanently.
27537 ac_save_LIBS=$LIBS
8aeeb05c 27538 LIBS="-lX11 $LIBS"
a848cd7e
SC
27539 cat >conftest.$ac_ext <<_ACEOF
27540/* confdefs.h. */
27541_ACEOF
27542cat confdefs.h >>conftest.$ac_ext
27543cat >>conftest.$ac_ext <<_ACEOF
27544/* end confdefs.h. */
8aeeb05c 27545#include <X11/Xlib.h>
a848cd7e
SC
27546int
27547main ()
27548{
8aeeb05c 27549XrmInitialize ()
a848cd7e
SC
27550 ;
27551 return 0;
27552}
27553_ACEOF
27554rm -f conftest.$ac_objext conftest$ac_exeext
27555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27556 (eval $ac_link) 2>conftest.er1
a848cd7e 27557 ac_status=$?
ac1cb8d3
VS
27558 grep -v '^ *+' conftest.er1 >conftest.err
27559 rm -f conftest.er1
27560 cat conftest.err >&5
a848cd7e
SC
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); } &&
5ff751d6 27563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565 (eval $ac_try) 2>&5
27566 ac_status=$?
27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); }; } &&
27569 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27571 (eval $ac_try) 2>&5
27572 ac_status=$?
27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574 (exit $ac_status); }; }; then
27575 LIBS=$ac_save_LIBS
27576# We can link X programs with no special library path.
27577ac_x_libraries=
27578else
27579 echo "$as_me: failed program was:" >&5
27580sed 's/^/| /' conftest.$ac_ext >&5
27581
27582LIBS=$ac_save_LIBS
27583for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27584do
27585 # Don't even attempt the hair of trying to link an X program!
27586 for ac_extension in a so sl; do
8aeeb05c 27587 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
27588 ac_x_libraries=$ac_dir
27589 break 2
27590 fi
27591 done
27592done
27593fi
ac1cb8d3
VS
27594rm -f conftest.err conftest.$ac_objext \
27595 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27596fi # $ac_x_libraries = no
27597
27598if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27599 # Didn't find X anywhere. Cache the known absence of X.
27600 ac_cv_have_x="have_x=no"
27601else
27602 # Record where we found X for the cache.
27603 ac_cv_have_x="have_x=yes \
ac1cb8d3 27604 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27605fi
27606fi
27607
27608 fi
27609 eval "$ac_cv_have_x"
27610fi # $with_x != no
27611
27612if test "$have_x" != yes; then
27613 echo "$as_me:$LINENO: result: $have_x" >&5
27614echo "${ECHO_T}$have_x" >&6
27615 no_x=yes
27616else
27617 # If each of the values was on the command line, it overrides each guess.
27618 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27619 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27620 # Update the cache value to reflect the command line values.
27621 ac_cv_have_x="have_x=yes \
27622 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5ff751d6
VZ
27623 # It might be that x_includes is empty (headers are found in the
27624 # standard search path. Then output the corresponding message
27625 ac_out_x_includes=$x_includes
27626 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
27627 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
27628echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
27629fi
27630
5ff751d6 27631fi
a848cd7e
SC
27632if test "$no_x" = yes; then
27633 # Not all programs may use this symbol, but it does not hurt to define it.
27634
27635cat >>confdefs.h <<\_ACEOF
27636#define X_DISPLAY_MISSING 1
27637_ACEOF
27638
27639 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27640else
27641 if test -n "$x_includes"; then
27642 X_CFLAGS="$X_CFLAGS -I$x_includes"
27643 fi
27644
27645 # It would also be nice to do this for all -L options, not just this one.
27646 if test -n "$x_libraries"; then
27647 X_LIBS="$X_LIBS -L$x_libraries"
27648 # For Solaris; some versions of Sun CC require a space after -R and
27649 # others require no space. Words are not sufficient . . . .
27650 case `(uname -sr) 2>/dev/null` in
27651 "SunOS 5"*)
27652 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27653echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27654 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27655 cat >conftest.$ac_ext <<_ACEOF
27656/* confdefs.h. */
27657_ACEOF
27658cat confdefs.h >>conftest.$ac_ext
27659cat >>conftest.$ac_ext <<_ACEOF
27660/* end confdefs.h. */
27661
27662int
27663main ()
27664{
27665
27666 ;
27667 return 0;
27668}
27669_ACEOF
27670rm -f conftest.$ac_objext conftest$ac_exeext
27671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27672 (eval $ac_link) 2>conftest.er1
a848cd7e 27673 ac_status=$?
ac1cb8d3
VS
27674 grep -v '^ *+' conftest.er1 >conftest.err
27675 rm -f conftest.er1
27676 cat conftest.err >&5
a848cd7e
SC
27677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27678 (exit $ac_status); } &&
5ff751d6 27679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27681 (eval $ac_try) 2>&5
27682 ac_status=$?
27683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27684 (exit $ac_status); }; } &&
27685 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27687 (eval $ac_try) 2>&5
27688 ac_status=$?
27689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690 (exit $ac_status); }; }; then
27691 ac_R_nospace=yes
27692else
27693 echo "$as_me: failed program was:" >&5
27694sed 's/^/| /' conftest.$ac_ext >&5
27695
27696ac_R_nospace=no
27697fi
ac1cb8d3
VS
27698rm -f conftest.err conftest.$ac_objext \
27699 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27700 if test $ac_R_nospace = yes; then
27701 echo "$as_me:$LINENO: result: no" >&5
27702echo "${ECHO_T}no" >&6
27703 X_LIBS="$X_LIBS -R$x_libraries"
27704 else
27705 LIBS="$ac_xsave_LIBS -R $x_libraries"
27706 cat >conftest.$ac_ext <<_ACEOF
27707/* confdefs.h. */
27708_ACEOF
27709cat confdefs.h >>conftest.$ac_ext
27710cat >>conftest.$ac_ext <<_ACEOF
27711/* end confdefs.h. */
27712
27713int
27714main ()
27715{
27716
27717 ;
27718 return 0;
27719}
27720_ACEOF
27721rm -f conftest.$ac_objext conftest$ac_exeext
27722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27723 (eval $ac_link) 2>conftest.er1
a848cd7e 27724 ac_status=$?
ac1cb8d3
VS
27725 grep -v '^ *+' conftest.er1 >conftest.err
27726 rm -f conftest.er1
27727 cat conftest.err >&5
a848cd7e
SC
27728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27729 (exit $ac_status); } &&
5ff751d6 27730 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27732 (eval $ac_try) 2>&5
27733 ac_status=$?
27734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735 (exit $ac_status); }; } &&
27736 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27738 (eval $ac_try) 2>&5
27739 ac_status=$?
27740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27741 (exit $ac_status); }; }; then
27742 ac_R_space=yes
27743else
27744 echo "$as_me: failed program was:" >&5
27745sed 's/^/| /' conftest.$ac_ext >&5
27746
27747ac_R_space=no
27748fi
ac1cb8d3
VS
27749rm -f conftest.err conftest.$ac_objext \
27750 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27751 if test $ac_R_space = yes; then
27752 echo "$as_me:$LINENO: result: yes" >&5
27753echo "${ECHO_T}yes" >&6
27754 X_LIBS="$X_LIBS -R $x_libraries"
27755 else
27756 echo "$as_me:$LINENO: result: neither works" >&5
27757echo "${ECHO_T}neither works" >&6
27758 fi
27759 fi
27760 LIBS=$ac_xsave_LIBS
27761 esac
27762 fi
27763
27764 # Check for system-dependent libraries X programs must link with.
27765 # Do this before checking for the system-independent R6 libraries
27766 # (-lICE), since we may need -lsocket or whatever for X linking.
27767
27768 if test "$ISC" = yes; then
27769 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27770 else
27771 # Martyn Johnson says this is needed for Ultrix, if the X
27772 # libraries were built with DECnet support. And Karl Berry says
27773 # the Alpha needs dnet_stub (dnet does not exist).
27774 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27775 cat >conftest.$ac_ext <<_ACEOF
27776/* confdefs.h. */
27777_ACEOF
27778cat confdefs.h >>conftest.$ac_ext
27779cat >>conftest.$ac_ext <<_ACEOF
27780/* end confdefs.h. */
27781
27782/* Override any gcc2 internal prototype to avoid an error. */
27783#ifdef __cplusplus
27784extern "C"
27785#endif
27786/* We use char because int might match the return type of a gcc2
27787 builtin and then its argument prototype would still apply. */
27788char XOpenDisplay ();
27789int
27790main ()
27791{
27792XOpenDisplay ();
27793 ;
27794 return 0;
27795}
27796_ACEOF
27797rm -f conftest.$ac_objext conftest$ac_exeext
27798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27799 (eval $ac_link) 2>conftest.er1
a848cd7e 27800 ac_status=$?
ac1cb8d3
VS
27801 grep -v '^ *+' conftest.er1 >conftest.err
27802 rm -f conftest.er1
27803 cat conftest.err >&5
a848cd7e
SC
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); } &&
5ff751d6 27806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808 (eval $ac_try) 2>&5
27809 ac_status=$?
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); }; } &&
27812 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27814 (eval $ac_try) 2>&5
27815 ac_status=$?
27816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27817 (exit $ac_status); }; }; then
27818 :
27819else
27820 echo "$as_me: failed program was:" >&5
27821sed 's/^/| /' conftest.$ac_ext >&5
27822
27823echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27824echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27825if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827else
27828 ac_check_lib_save_LIBS=$LIBS
27829LIBS="-ldnet $LIBS"
27830cat >conftest.$ac_ext <<_ACEOF
27831/* confdefs.h. */
27832_ACEOF
27833cat confdefs.h >>conftest.$ac_ext
27834cat >>conftest.$ac_ext <<_ACEOF
27835/* end confdefs.h. */
27836
27837/* Override any gcc2 internal prototype to avoid an error. */
27838#ifdef __cplusplus
27839extern "C"
27840#endif
27841/* We use char because int might match the return type of a gcc2
27842 builtin and then its argument prototype would still apply. */
27843char dnet_ntoa ();
27844int
27845main ()
27846{
27847dnet_ntoa ();
27848 ;
27849 return 0;
27850}
27851_ACEOF
27852rm -f conftest.$ac_objext conftest$ac_exeext
27853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27854 (eval $ac_link) 2>conftest.er1
a848cd7e 27855 ac_status=$?
ac1cb8d3
VS
27856 grep -v '^ *+' conftest.er1 >conftest.err
27857 rm -f conftest.er1
27858 cat conftest.err >&5
a848cd7e
SC
27859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860 (exit $ac_status); } &&
5ff751d6 27861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27863 (eval $ac_try) 2>&5
27864 ac_status=$?
27865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27866 (exit $ac_status); }; } &&
27867 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27869 (eval $ac_try) 2>&5
27870 ac_status=$?
27871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27872 (exit $ac_status); }; }; then
27873 ac_cv_lib_dnet_dnet_ntoa=yes
27874else
27875 echo "$as_me: failed program was:" >&5
27876sed 's/^/| /' conftest.$ac_ext >&5
27877
27878ac_cv_lib_dnet_dnet_ntoa=no
27879fi
ac1cb8d3
VS
27880rm -f conftest.err conftest.$ac_objext \
27881 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27882LIBS=$ac_check_lib_save_LIBS
27883fi
27884echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27885echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27886if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27887 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27888fi
27889
27890 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27891 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27892echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27893if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27894 echo $ECHO_N "(cached) $ECHO_C" >&6
27895else
27896 ac_check_lib_save_LIBS=$LIBS
27897LIBS="-ldnet_stub $LIBS"
27898cat >conftest.$ac_ext <<_ACEOF
27899/* confdefs.h. */
27900_ACEOF
27901cat confdefs.h >>conftest.$ac_ext
27902cat >>conftest.$ac_ext <<_ACEOF
27903/* end confdefs.h. */
27904
27905/* Override any gcc2 internal prototype to avoid an error. */
27906#ifdef __cplusplus
27907extern "C"
27908#endif
27909/* We use char because int might match the return type of a gcc2
27910 builtin and then its argument prototype would still apply. */
27911char dnet_ntoa ();
27912int
27913main ()
27914{
27915dnet_ntoa ();
27916 ;
27917 return 0;
27918}
27919_ACEOF
27920rm -f conftest.$ac_objext conftest$ac_exeext
27921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27922 (eval $ac_link) 2>conftest.er1
a848cd7e 27923 ac_status=$?
ac1cb8d3
VS
27924 grep -v '^ *+' conftest.er1 >conftest.err
27925 rm -f conftest.er1
27926 cat conftest.err >&5
a848cd7e
SC
27927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928 (exit $ac_status); } &&
5ff751d6 27929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27931 (eval $ac_try) 2>&5
27932 ac_status=$?
27933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934 (exit $ac_status); }; } &&
27935 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27937 (eval $ac_try) 2>&5
27938 ac_status=$?
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); }; }; then
27941 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27942else
27943 echo "$as_me: failed program was:" >&5
27944sed 's/^/| /' conftest.$ac_ext >&5
27945
27946ac_cv_lib_dnet_stub_dnet_ntoa=no
27947fi
ac1cb8d3
VS
27948rm -f conftest.err conftest.$ac_objext \
27949 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27950LIBS=$ac_check_lib_save_LIBS
27951fi
27952echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27953echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27954if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27955 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27956fi
27957
27958 fi
27959fi
ac1cb8d3
VS
27960rm -f conftest.err conftest.$ac_objext \
27961 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27962 LIBS="$ac_xsave_LIBS"
27963
27964 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27965 # to get the SysV transport functions.
27966 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27967 # needs -lnsl.
27968 # The nsl library prevents programs from opening the X display
27969 # on Irix 5.2, according to T.E. Dickey.
27970 # The functions gethostbyname, getservbyname, and inet_addr are
27971 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27972 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27973echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27974if test "${ac_cv_func_gethostbyname+set}" = set; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27976else
27977 cat >conftest.$ac_ext <<_ACEOF
27978/* confdefs.h. */
27979_ACEOF
27980cat confdefs.h >>conftest.$ac_ext
27981cat >>conftest.$ac_ext <<_ACEOF
27982/* end confdefs.h. */
ac1cb8d3
VS
27983/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27985#define gethostbyname innocuous_gethostbyname
27986
a848cd7e
SC
27987/* System header to define __stub macros and hopefully few prototypes,
27988 which can conflict with char gethostbyname (); below.
27989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27990 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27991
a848cd7e
SC
27992#ifdef __STDC__
27993# include <limits.h>
27994#else
27995# include <assert.h>
27996#endif
ac1cb8d3
VS
27997
27998#undef gethostbyname
27999
a848cd7e
SC
28000/* Override any gcc2 internal prototype to avoid an error. */
28001#ifdef __cplusplus
28002extern "C"
28003{
28004#endif
28005/* We use char because int might match the return type of a gcc2
28006 builtin and then its argument prototype would still apply. */
28007char gethostbyname ();
28008/* The GNU C library defines this for functions which it implements
28009 to always fail with ENOSYS. Some functions are actually named
28010 something starting with __ and the normal name is an alias. */
28011#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28012choke me
28013#else
28014char (*f) () = gethostbyname;
28015#endif
28016#ifdef __cplusplus
28017}
28018#endif
28019
28020int
28021main ()
28022{
28023return f != gethostbyname;
28024 ;
28025 return 0;
28026}
28027_ACEOF
28028rm -f conftest.$ac_objext conftest$ac_exeext
28029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28030 (eval $ac_link) 2>conftest.er1
a848cd7e 28031 ac_status=$?
ac1cb8d3
VS
28032 grep -v '^ *+' conftest.er1 >conftest.err
28033 rm -f conftest.er1
28034 cat conftest.err >&5
a848cd7e
SC
28035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28036 (exit $ac_status); } &&
5ff751d6 28037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28039 (eval $ac_try) 2>&5
28040 ac_status=$?
28041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042 (exit $ac_status); }; } &&
28043 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28045 (eval $ac_try) 2>&5
28046 ac_status=$?
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); }; }; then
28049 ac_cv_func_gethostbyname=yes
28050else
28051 echo "$as_me: failed program was:" >&5
28052sed 's/^/| /' conftest.$ac_ext >&5
28053
28054ac_cv_func_gethostbyname=no
28055fi
ac1cb8d3
VS
28056rm -f conftest.err conftest.$ac_objext \
28057 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28058fi
28059echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28060echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28061
28062 if test $ac_cv_func_gethostbyname = no; then
28063 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28064echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28065if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28066 echo $ECHO_N "(cached) $ECHO_C" >&6
28067else
28068 ac_check_lib_save_LIBS=$LIBS
28069LIBS="-lnsl $LIBS"
28070cat >conftest.$ac_ext <<_ACEOF
28071/* confdefs.h. */
28072_ACEOF
28073cat confdefs.h >>conftest.$ac_ext
28074cat >>conftest.$ac_ext <<_ACEOF
28075/* end confdefs.h. */
28076
28077/* Override any gcc2 internal prototype to avoid an error. */
28078#ifdef __cplusplus
28079extern "C"
28080#endif
28081/* We use char because int might match the return type of a gcc2
28082 builtin and then its argument prototype would still apply. */
28083char gethostbyname ();
28084int
28085main ()
28086{
28087gethostbyname ();
28088 ;
28089 return 0;
28090}
28091_ACEOF
28092rm -f conftest.$ac_objext conftest$ac_exeext
28093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28094 (eval $ac_link) 2>conftest.er1
28095 ac_status=$?
28096 grep -v '^ *+' conftest.er1 >conftest.err
28097 rm -f conftest.er1
28098 cat conftest.err >&5
28099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100 (exit $ac_status); } &&
5ff751d6 28101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28103 (eval $ac_try) 2>&5
28104 ac_status=$?
28105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28106 (exit $ac_status); }; } &&
28107 { ac_try='test -s conftest$ac_exeext'
28108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28109 (eval $ac_try) 2>&5
28110 ac_status=$?
28111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); }; }; then
28113 ac_cv_lib_nsl_gethostbyname=yes
28114else
28115 echo "$as_me: failed program was:" >&5
28116sed 's/^/| /' conftest.$ac_ext >&5
28117
28118ac_cv_lib_nsl_gethostbyname=no
28119fi
28120rm -f conftest.err conftest.$ac_objext \
28121 conftest$ac_exeext conftest.$ac_ext
28122LIBS=$ac_check_lib_save_LIBS
28123fi
28124echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28125echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28126if test $ac_cv_lib_nsl_gethostbyname = yes; then
28127 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28128fi
28129
28130 if test $ac_cv_lib_nsl_gethostbyname = no; then
28131 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28132echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28133if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28134 echo $ECHO_N "(cached) $ECHO_C" >&6
28135else
28136 ac_check_lib_save_LIBS=$LIBS
28137LIBS="-lbsd $LIBS"
28138cat >conftest.$ac_ext <<_ACEOF
28139/* confdefs.h. */
28140_ACEOF
28141cat confdefs.h >>conftest.$ac_ext
28142cat >>conftest.$ac_ext <<_ACEOF
28143/* end confdefs.h. */
28144
28145/* Override any gcc2 internal prototype to avoid an error. */
28146#ifdef __cplusplus
28147extern "C"
28148#endif
28149/* We use char because int might match the return type of a gcc2
28150 builtin and then its argument prototype would still apply. */
28151char gethostbyname ();
28152int
28153main ()
28154{
28155gethostbyname ();
28156 ;
28157 return 0;
28158}
28159_ACEOF
28160rm -f conftest.$ac_objext conftest$ac_exeext
28161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28162 (eval $ac_link) 2>conftest.er1
a848cd7e 28163 ac_status=$?
ac1cb8d3
VS
28164 grep -v '^ *+' conftest.er1 >conftest.err
28165 rm -f conftest.er1
28166 cat conftest.err >&5
a848cd7e
SC
28167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28168 (exit $ac_status); } &&
5ff751d6 28169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28171 (eval $ac_try) 2>&5
28172 ac_status=$?
28173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28174 (exit $ac_status); }; } &&
28175 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28177 (eval $ac_try) 2>&5
28178 ac_status=$?
28179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28180 (exit $ac_status); }; }; then
28181 ac_cv_lib_bsd_gethostbyname=yes
28182else
28183 echo "$as_me: failed program was:" >&5
28184sed 's/^/| /' conftest.$ac_ext >&5
28185
28186ac_cv_lib_bsd_gethostbyname=no
28187fi
ac1cb8d3
VS
28188rm -f conftest.err conftest.$ac_objext \
28189 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28190LIBS=$ac_check_lib_save_LIBS
28191fi
28192echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28193echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28194if test $ac_cv_lib_bsd_gethostbyname = yes; then
28195 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28196fi
28197
28198 fi
28199 fi
28200
28201 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28202 # socket/setsockopt and other routines are undefined under SCO ODT
28203 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28204 # on later versions), says Simon Leinen: it contains gethostby*
28205 # variants that don't use the name server (or something). -lsocket
28206 # must be given before -lnsl if both are needed. We assume that
28207 # if connect needs -lnsl, so does gethostbyname.
28208 echo "$as_me:$LINENO: checking for connect" >&5
28209echo $ECHO_N "checking for connect... $ECHO_C" >&6
28210if test "${ac_cv_func_connect+set}" = set; then
28211 echo $ECHO_N "(cached) $ECHO_C" >&6
28212else
28213 cat >conftest.$ac_ext <<_ACEOF
28214/* confdefs.h. */
28215_ACEOF
28216cat confdefs.h >>conftest.$ac_ext
28217cat >>conftest.$ac_ext <<_ACEOF
28218/* end confdefs.h. */
ac1cb8d3
VS
28219/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28221#define connect innocuous_connect
28222
a848cd7e
SC
28223/* System header to define __stub macros and hopefully few prototypes,
28224 which can conflict with char connect (); below.
28225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28226 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28227
a848cd7e
SC
28228#ifdef __STDC__
28229# include <limits.h>
28230#else
28231# include <assert.h>
28232#endif
ac1cb8d3
VS
28233
28234#undef connect
28235
a848cd7e
SC
28236/* Override any gcc2 internal prototype to avoid an error. */
28237#ifdef __cplusplus
28238extern "C"
28239{
28240#endif
28241/* We use char because int might match the return type of a gcc2
28242 builtin and then its argument prototype would still apply. */
28243char connect ();
28244/* The GNU C library defines this for functions which it implements
28245 to always fail with ENOSYS. Some functions are actually named
28246 something starting with __ and the normal name is an alias. */
28247#if defined (__stub_connect) || defined (__stub___connect)
28248choke me
28249#else
28250char (*f) () = connect;
28251#endif
28252#ifdef __cplusplus
28253}
28254#endif
28255
28256int
28257main ()
28258{
28259return f != connect;
28260 ;
28261 return 0;
28262}
28263_ACEOF
28264rm -f conftest.$ac_objext conftest$ac_exeext
28265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28266 (eval $ac_link) 2>conftest.er1
a848cd7e 28267 ac_status=$?
ac1cb8d3
VS
28268 grep -v '^ *+' conftest.er1 >conftest.err
28269 rm -f conftest.er1
28270 cat conftest.err >&5
a848cd7e
SC
28271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28272 (exit $ac_status); } &&
5ff751d6 28273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28275 (eval $ac_try) 2>&5
28276 ac_status=$?
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); }; } &&
28279 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281 (eval $ac_try) 2>&5
28282 ac_status=$?
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; }; then
28285 ac_cv_func_connect=yes
28286else
28287 echo "$as_me: failed program was:" >&5
28288sed 's/^/| /' conftest.$ac_ext >&5
28289
28290ac_cv_func_connect=no
28291fi
ac1cb8d3
VS
28292rm -f conftest.err conftest.$ac_objext \
28293 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28294fi
28295echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28296echo "${ECHO_T}$ac_cv_func_connect" >&6
28297
28298 if test $ac_cv_func_connect = no; then
28299 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28300echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28301if test "${ac_cv_lib_socket_connect+set}" = set; then
28302 echo $ECHO_N "(cached) $ECHO_C" >&6
28303else
28304 ac_check_lib_save_LIBS=$LIBS
28305LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28306cat >conftest.$ac_ext <<_ACEOF
28307/* confdefs.h. */
28308_ACEOF
28309cat confdefs.h >>conftest.$ac_ext
28310cat >>conftest.$ac_ext <<_ACEOF
28311/* end confdefs.h. */
28312
28313/* Override any gcc2 internal prototype to avoid an error. */
28314#ifdef __cplusplus
28315extern "C"
28316#endif
28317/* We use char because int might match the return type of a gcc2
28318 builtin and then its argument prototype would still apply. */
28319char connect ();
28320int
28321main ()
28322{
28323connect ();
28324 ;
28325 return 0;
28326}
28327_ACEOF
28328rm -f conftest.$ac_objext conftest$ac_exeext
28329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28330 (eval $ac_link) 2>conftest.er1
a848cd7e 28331 ac_status=$?
ac1cb8d3
VS
28332 grep -v '^ *+' conftest.er1 >conftest.err
28333 rm -f conftest.er1
28334 cat conftest.err >&5
a848cd7e
SC
28335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336 (exit $ac_status); } &&
5ff751d6 28337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28339 (eval $ac_try) 2>&5
28340 ac_status=$?
28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28342 (exit $ac_status); }; } &&
28343 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28345 (eval $ac_try) 2>&5
28346 ac_status=$?
28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348 (exit $ac_status); }; }; then
28349 ac_cv_lib_socket_connect=yes
28350else
28351 echo "$as_me: failed program was:" >&5
28352sed 's/^/| /' conftest.$ac_ext >&5
28353
28354ac_cv_lib_socket_connect=no
28355fi
ac1cb8d3
VS
28356rm -f conftest.err conftest.$ac_objext \
28357 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28358LIBS=$ac_check_lib_save_LIBS
28359fi
28360echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28361echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28362if test $ac_cv_lib_socket_connect = yes; then
28363 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28364fi
28365
28366 fi
28367
28368 # Guillermo Gomez says -lposix is necessary on A/UX.
28369 echo "$as_me:$LINENO: checking for remove" >&5
28370echo $ECHO_N "checking for remove... $ECHO_C" >&6
28371if test "${ac_cv_func_remove+set}" = set; then
28372 echo $ECHO_N "(cached) $ECHO_C" >&6
28373else
28374 cat >conftest.$ac_ext <<_ACEOF
28375/* confdefs.h. */
28376_ACEOF
28377cat confdefs.h >>conftest.$ac_ext
28378cat >>conftest.$ac_ext <<_ACEOF
28379/* end confdefs.h. */
ac1cb8d3
VS
28380/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28382#define remove innocuous_remove
28383
a848cd7e
SC
28384/* System header to define __stub macros and hopefully few prototypes,
28385 which can conflict with char remove (); below.
28386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28387 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28388
a848cd7e
SC
28389#ifdef __STDC__
28390# include <limits.h>
28391#else
28392# include <assert.h>
28393#endif
ac1cb8d3
VS
28394
28395#undef remove
28396
a848cd7e
SC
28397/* Override any gcc2 internal prototype to avoid an error. */
28398#ifdef __cplusplus
28399extern "C"
28400{
28401#endif
28402/* We use char because int might match the return type of a gcc2
28403 builtin and then its argument prototype would still apply. */
28404char remove ();
28405/* The GNU C library defines this for functions which it implements
28406 to always fail with ENOSYS. Some functions are actually named
28407 something starting with __ and the normal name is an alias. */
28408#if defined (__stub_remove) || defined (__stub___remove)
28409choke me
28410#else
28411char (*f) () = remove;
28412#endif
28413#ifdef __cplusplus
28414}
28415#endif
28416
28417int
28418main ()
28419{
28420return f != remove;
28421 ;
28422 return 0;
28423}
28424_ACEOF
28425rm -f conftest.$ac_objext conftest$ac_exeext
28426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28427 (eval $ac_link) 2>conftest.er1
a848cd7e 28428 ac_status=$?
ac1cb8d3
VS
28429 grep -v '^ *+' conftest.er1 >conftest.err
28430 rm -f conftest.er1
28431 cat conftest.err >&5
a848cd7e
SC
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); } &&
5ff751d6 28434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436 (eval $ac_try) 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; } &&
28440 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442 (eval $ac_try) 2>&5
28443 ac_status=$?
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); }; }; then
28446 ac_cv_func_remove=yes
28447else
28448 echo "$as_me: failed program was:" >&5
28449sed 's/^/| /' conftest.$ac_ext >&5
28450
28451ac_cv_func_remove=no
28452fi
ac1cb8d3
VS
28453rm -f conftest.err conftest.$ac_objext \
28454 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28455fi
28456echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28457echo "${ECHO_T}$ac_cv_func_remove" >&6
28458
28459 if test $ac_cv_func_remove = no; then
28460 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28461echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28462if test "${ac_cv_lib_posix_remove+set}" = set; then
28463 echo $ECHO_N "(cached) $ECHO_C" >&6
28464else
28465 ac_check_lib_save_LIBS=$LIBS
28466LIBS="-lposix $LIBS"
28467cat >conftest.$ac_ext <<_ACEOF
28468/* confdefs.h. */
28469_ACEOF
28470cat confdefs.h >>conftest.$ac_ext
28471cat >>conftest.$ac_ext <<_ACEOF
28472/* end confdefs.h. */
28473
28474/* Override any gcc2 internal prototype to avoid an error. */
28475#ifdef __cplusplus
28476extern "C"
28477#endif
28478/* We use char because int might match the return type of a gcc2
28479 builtin and then its argument prototype would still apply. */
28480char remove ();
28481int
28482main ()
28483{
28484remove ();
28485 ;
28486 return 0;
28487}
28488_ACEOF
28489rm -f conftest.$ac_objext conftest$ac_exeext
28490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28491 (eval $ac_link) 2>conftest.er1
a848cd7e 28492 ac_status=$?
ac1cb8d3
VS
28493 grep -v '^ *+' conftest.er1 >conftest.err
28494 rm -f conftest.er1
28495 cat conftest.err >&5
a848cd7e
SC
28496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497 (exit $ac_status); } &&
5ff751d6 28498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500 (eval $ac_try) 2>&5
28501 ac_status=$?
28502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503 (exit $ac_status); }; } &&
28504 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28506 (eval $ac_try) 2>&5
28507 ac_status=$?
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); }; }; then
28510 ac_cv_lib_posix_remove=yes
28511else
28512 echo "$as_me: failed program was:" >&5
28513sed 's/^/| /' conftest.$ac_ext >&5
28514
28515ac_cv_lib_posix_remove=no
28516fi
ac1cb8d3
VS
28517rm -f conftest.err conftest.$ac_objext \
28518 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28519LIBS=$ac_check_lib_save_LIBS
28520fi
28521echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28522echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28523if test $ac_cv_lib_posix_remove = yes; then
28524 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28525fi
28526
28527 fi
28528
28529 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28530 echo "$as_me:$LINENO: checking for shmat" >&5
28531echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28532if test "${ac_cv_func_shmat+set}" = set; then
28533 echo $ECHO_N "(cached) $ECHO_C" >&6
28534else
28535 cat >conftest.$ac_ext <<_ACEOF
28536/* confdefs.h. */
28537_ACEOF
28538cat confdefs.h >>conftest.$ac_ext
28539cat >>conftest.$ac_ext <<_ACEOF
28540/* end confdefs.h. */
ac1cb8d3
VS
28541/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28543#define shmat innocuous_shmat
28544
a848cd7e
SC
28545/* System header to define __stub macros and hopefully few prototypes,
28546 which can conflict with char shmat (); below.
28547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28548 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28549
a848cd7e
SC
28550#ifdef __STDC__
28551# include <limits.h>
28552#else
28553# include <assert.h>
28554#endif
ac1cb8d3
VS
28555
28556#undef shmat
28557
a848cd7e
SC
28558/* Override any gcc2 internal prototype to avoid an error. */
28559#ifdef __cplusplus
28560extern "C"
28561{
28562#endif
28563/* We use char because int might match the return type of a gcc2
28564 builtin and then its argument prototype would still apply. */
28565char shmat ();
28566/* The GNU C library defines this for functions which it implements
28567 to always fail with ENOSYS. Some functions are actually named
28568 something starting with __ and the normal name is an alias. */
28569#if defined (__stub_shmat) || defined (__stub___shmat)
28570choke me
28571#else
28572char (*f) () = shmat;
28573#endif
28574#ifdef __cplusplus
28575}
28576#endif
28577
28578int
28579main ()
28580{
28581return f != shmat;
28582 ;
28583 return 0;
28584}
28585_ACEOF
28586rm -f conftest.$ac_objext conftest$ac_exeext
28587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28588 (eval $ac_link) 2>conftest.er1
a848cd7e 28589 ac_status=$?
ac1cb8d3
VS
28590 grep -v '^ *+' conftest.er1 >conftest.err
28591 rm -f conftest.er1
28592 cat conftest.err >&5
a848cd7e
SC
28593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28594 (exit $ac_status); } &&
5ff751d6 28595 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28597 (eval $ac_try) 2>&5
28598 ac_status=$?
28599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 (exit $ac_status); }; } &&
28601 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603 (eval $ac_try) 2>&5
28604 ac_status=$?
28605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 (exit $ac_status); }; }; then
28607 ac_cv_func_shmat=yes
28608else
28609 echo "$as_me: failed program was:" >&5
28610sed 's/^/| /' conftest.$ac_ext >&5
28611
28612ac_cv_func_shmat=no
28613fi
ac1cb8d3
VS
28614rm -f conftest.err conftest.$ac_objext \
28615 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28616fi
28617echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28618echo "${ECHO_T}$ac_cv_func_shmat" >&6
28619
28620 if test $ac_cv_func_shmat = no; then
28621 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28622echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28623if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28624 echo $ECHO_N "(cached) $ECHO_C" >&6
28625else
28626 ac_check_lib_save_LIBS=$LIBS
28627LIBS="-lipc $LIBS"
28628cat >conftest.$ac_ext <<_ACEOF
28629/* confdefs.h. */
28630_ACEOF
28631cat confdefs.h >>conftest.$ac_ext
28632cat >>conftest.$ac_ext <<_ACEOF
28633/* end confdefs.h. */
28634
28635/* Override any gcc2 internal prototype to avoid an error. */
28636#ifdef __cplusplus
28637extern "C"
28638#endif
28639/* We use char because int might match the return type of a gcc2
28640 builtin and then its argument prototype would still apply. */
28641char shmat ();
28642int
28643main ()
28644{
28645shmat ();
28646 ;
28647 return 0;
28648}
28649_ACEOF
28650rm -f conftest.$ac_objext conftest$ac_exeext
28651if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28652 (eval $ac_link) 2>conftest.er1
a848cd7e 28653 ac_status=$?
ac1cb8d3
VS
28654 grep -v '^ *+' conftest.er1 >conftest.err
28655 rm -f conftest.er1
28656 cat conftest.err >&5
a848cd7e
SC
28657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658 (exit $ac_status); } &&
5ff751d6 28659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28661 (eval $ac_try) 2>&5
28662 ac_status=$?
28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28664 (exit $ac_status); }; } &&
28665 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667 (eval $ac_try) 2>&5
28668 ac_status=$?
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; }; then
28671 ac_cv_lib_ipc_shmat=yes
28672else
28673 echo "$as_me: failed program was:" >&5
28674sed 's/^/| /' conftest.$ac_ext >&5
28675
28676ac_cv_lib_ipc_shmat=no
28677fi
ac1cb8d3
VS
28678rm -f conftest.err conftest.$ac_objext \
28679 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28680LIBS=$ac_check_lib_save_LIBS
28681fi
28682echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28683echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28684if test $ac_cv_lib_ipc_shmat = yes; then
28685 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28686fi
28687
28688 fi
28689 fi
28690
28691 # Check for libraries that X11R6 Xt/Xaw programs need.
28692 ac_save_LDFLAGS=$LDFLAGS
28693 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28694 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28695 # check for ICE first), but we must link in the order -lSM -lICE or
28696 # we get undefined symbols. So assume we have SM if we have ICE.
28697 # These have to be linked with before -lX11, unlike the other
28698 # libraries we check for below, so use a different variable.
28699 # John Interrante, Karl Berry
28700 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28701echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28702if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28703 echo $ECHO_N "(cached) $ECHO_C" >&6
28704else
28705 ac_check_lib_save_LIBS=$LIBS
28706LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28707cat >conftest.$ac_ext <<_ACEOF
28708/* confdefs.h. */
28709_ACEOF
28710cat confdefs.h >>conftest.$ac_ext
28711cat >>conftest.$ac_ext <<_ACEOF
28712/* end confdefs.h. */
28713
28714/* Override any gcc2 internal prototype to avoid an error. */
28715#ifdef __cplusplus
28716extern "C"
28717#endif
28718/* We use char because int might match the return type of a gcc2
28719 builtin and then its argument prototype would still apply. */
28720char IceConnectionNumber ();
28721int
28722main ()
28723{
28724IceConnectionNumber ();
28725 ;
28726 return 0;
28727}
28728_ACEOF
28729rm -f conftest.$ac_objext conftest$ac_exeext
28730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28731 (eval $ac_link) 2>conftest.er1
a848cd7e 28732 ac_status=$?
ac1cb8d3
VS
28733 grep -v '^ *+' conftest.er1 >conftest.err
28734 rm -f conftest.er1
28735 cat conftest.err >&5
a848cd7e
SC
28736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28737 (exit $ac_status); } &&
5ff751d6 28738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28740 (eval $ac_try) 2>&5
28741 ac_status=$?
28742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743 (exit $ac_status); }; } &&
28744 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28746 (eval $ac_try) 2>&5
28747 ac_status=$?
28748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; }; then
28750 ac_cv_lib_ICE_IceConnectionNumber=yes
28751else
28752 echo "$as_me: failed program was:" >&5
28753sed 's/^/| /' conftest.$ac_ext >&5
28754
28755ac_cv_lib_ICE_IceConnectionNumber=no
28756fi
ac1cb8d3
VS
28757rm -f conftest.err conftest.$ac_objext \
28758 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28759LIBS=$ac_check_lib_save_LIBS
28760fi
28761echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28762echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28763if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28764 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28765fi
28766
28767 LDFLAGS=$ac_save_LDFLAGS
28768
28769fi
28770
28771
28772 if test "$no_x" = "yes"; then
89d90d6d
VZ
28773 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28774echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28775 { (exit 1); exit 1; }; }
a848cd7e
SC
28776 fi
28777
74b84332
VS
28778 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28779 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28780 AFMINSTALL=afminstall
28781 COMPILED_X_PROGRAM=0
28782
74b84332
VS
28783 fi
28784
28785 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28786 if test "$wxUSE_NANOX" = "yes"; then
28787 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28788echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28789 if test "x$MICROWIN" = x ; then
28790 echo "$as_me:$LINENO: result: not found" >&5
28791echo "${ECHO_T}not found" >&6
28792 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28793echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28794 { (exit 1); exit 1; }; }
28795 else
28796 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28797echo "${ECHO_T}$MICROWIN" >&6
28798 cat >>confdefs.h <<\_ACEOF
28799#define wxUSE_NANOX 1
28800_ACEOF
28801
28802 fi
28803 fi
28804
28805 if test "$wxUSE_UNICODE" = "yes"; then
28806
28807 succeeded=no
28808
28809 if test -z "$PKG_CONFIG"; then
28810 # Extract the first word of "pkg-config", so it can be a program name with args.
28811set dummy pkg-config; ac_word=$2
28812echo "$as_me:$LINENO: checking for $ac_word" >&5
28813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28814if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28815 echo $ECHO_N "(cached) $ECHO_C" >&6
28816else
28817 case $PKG_CONFIG in
28818 [\\/]* | ?:[\\/]*)
28819 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28820 ;;
28821 *)
28822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28823for as_dir in $PATH
28824do
28825 IFS=$as_save_IFS
28826 test -z "$as_dir" && as_dir=.
28827 for ac_exec_ext in '' $ac_executable_extensions; do
28828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28829 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28831 break 2
28832 fi
28833done
28834done
28835
28836 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28837 ;;
28838esac
28839fi
28840PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28841
28842if test -n "$PKG_CONFIG"; then
28843 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28844echo "${ECHO_T}$PKG_CONFIG" >&6
28845else
28846 echo "$as_me:$LINENO: result: no" >&5
28847echo "${ECHO_T}no" >&6
28848fi
28849
28850 fi
28851
28852 if test "$PKG_CONFIG" = "no" ; then
28853 echo "*** The pkg-config script could not be found. Make sure it is"
28854 echo "*** in your path, or set the PKG_CONFIG environment variable"
28855 echo "*** to the full path to pkg-config."
28856 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28857 else
28858 PKG_CONFIG_MIN_VERSION=0.9.0
28859 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28860 echo "$as_me:$LINENO: checking for pangox" >&5
28861echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28862
28863 if $PKG_CONFIG --exists "pangox" ; then
28864 echo "$as_me:$LINENO: result: yes" >&5
28865echo "${ECHO_T}yes" >&6
28866 succeeded=yes
28867
28868 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28869echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28870 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28871 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28872echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28873
28874 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28875echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28876 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28877 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28878echo "${ECHO_T}$PANGOX_LIBS" >&6
28879 else
28880 PANGOX_CFLAGS=""
28881 PANGOX_LIBS=""
28882 ## If we have a custom action on failure, don't print errors, but
28883 ## do set a variable so people can do so.
28884 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28885
28886 fi
28887
28888
28889
28890 else
28891 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28892 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28893 fi
28894 fi
28895
28896 if test $succeeded = yes; then
28897
c92ad099 28898 CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
a848cd7e
SC
28899 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28900
28901 else
28902
28903 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28904echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28905 { (exit 1); exit 1; }; }
28906
28907
28908 fi
28909
28910
28911 succeeded=no
28912
28913 if test -z "$PKG_CONFIG"; then
28914 # Extract the first word of "pkg-config", so it can be a program name with args.
28915set dummy pkg-config; ac_word=$2
28916echo "$as_me:$LINENO: checking for $ac_word" >&5
28917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28918if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28919 echo $ECHO_N "(cached) $ECHO_C" >&6
28920else
28921 case $PKG_CONFIG in
28922 [\\/]* | ?:[\\/]*)
28923 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28924 ;;
28925 *)
28926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28927for as_dir in $PATH
28928do
28929 IFS=$as_save_IFS
28930 test -z "$as_dir" && as_dir=.
28931 for ac_exec_ext in '' $ac_executable_extensions; do
28932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28933 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28935 break 2
28936 fi
28937done
28938done
28939
28940 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28941 ;;
28942esac
28943fi
28944PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28945
28946if test -n "$PKG_CONFIG"; then
28947 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28948echo "${ECHO_T}$PKG_CONFIG" >&6
28949else
28950 echo "$as_me:$LINENO: result: no" >&5
28951echo "${ECHO_T}no" >&6
28952fi
28953
28954 fi
28955
28956 if test "$PKG_CONFIG" = "no" ; then
28957 echo "*** The pkg-config script could not be found. Make sure it is"
28958 echo "*** in your path, or set the PKG_CONFIG environment variable"
28959 echo "*** to the full path to pkg-config."
28960 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28961 else
28962 PKG_CONFIG_MIN_VERSION=0.9.0
28963 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28964 echo "$as_me:$LINENO: checking for pangoft2" >&5
28965echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28966
28967 if $PKG_CONFIG --exists "pangoft2" ; then
28968 echo "$as_me:$LINENO: result: yes" >&5
28969echo "${ECHO_T}yes" >&6
28970 succeeded=yes
28971
28972 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28973echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28974 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28975 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28976echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28977
28978 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28979echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28980 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28981 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28982echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28983 else
28984 PANGOFT2_CFLAGS=""
28985 PANGOFT2_LIBS=""
28986 ## If we have a custom action on failure, don't print errors, but
28987 ## do set a variable so people can do so.
28988 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28989
28990 fi
28991
28992
28993
28994 else
28995 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28996 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28997 fi
28998 fi
28999
29000 if test $succeeded = yes; then
29001
c92ad099 29002 CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
a848cd7e
SC
29003 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29004
29005 else
29006
29007 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29008echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29009 wxUSE_PRINTING_ARCHITECTURE="no"
29010
29011
29012 fi
29013
29014
29015 succeeded=no
29016
29017 if test -z "$PKG_CONFIG"; then
29018 # Extract the first word of "pkg-config", so it can be a program name with args.
29019set dummy pkg-config; ac_word=$2
29020echo "$as_me:$LINENO: checking for $ac_word" >&5
29021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29022if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29023 echo $ECHO_N "(cached) $ECHO_C" >&6
29024else
29025 case $PKG_CONFIG in
29026 [\\/]* | ?:[\\/]*)
29027 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29028 ;;
29029 *)
29030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29031for as_dir in $PATH
29032do
29033 IFS=$as_save_IFS
29034 test -z "$as_dir" && as_dir=.
29035 for ac_exec_ext in '' $ac_executable_extensions; do
29036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29037 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29039 break 2
29040 fi
29041done
29042done
29043
29044 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29045 ;;
29046esac
29047fi
29048PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29049
29050if test -n "$PKG_CONFIG"; then
29051 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29052echo "${ECHO_T}$PKG_CONFIG" >&6
29053else
29054 echo "$as_me:$LINENO: result: no" >&5
29055echo "${ECHO_T}no" >&6
29056fi
29057
29058 fi
29059
29060 if test "$PKG_CONFIG" = "no" ; then
29061 echo "*** The pkg-config script could not be found. Make sure it is"
29062 echo "*** in your path, or set the PKG_CONFIG environment variable"
29063 echo "*** to the full path to pkg-config."
29064 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29065 else
29066 PKG_CONFIG_MIN_VERSION=0.9.0
29067 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29068 echo "$as_me:$LINENO: checking for pangoxft" >&5
29069echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29070
29071 if $PKG_CONFIG --exists "pangoxft" ; then
29072 echo "$as_me:$LINENO: result: yes" >&5
29073echo "${ECHO_T}yes" >&6
29074 succeeded=yes
29075
29076 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29077echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29078 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29079 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29080echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29081
29082 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29083echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29084 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29085 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29086echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29087 else
29088 PANGOXFT_CFLAGS=""
29089 PANGOXFT_LIBS=""
29090 ## If we have a custom action on failure, don't print errors, but
29091 ## do set a variable so people can do so.
29092 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29093
29094 fi
29095
29096
29097
29098 else
29099 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29100 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29101 fi
29102 fi
29103
29104 if test $succeeded = yes; then
29105
4ae1af05
MB
29106 cat >>confdefs.h <<\_ACEOF
29107#define HAVE_PANGO_XFT 1
29108_ACEOF
29109
c92ad099 29110 CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
a848cd7e
SC
29111 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29112
29113 else
29114
29115 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29116echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29117
29118
29119 fi
29120
304205f1
VS
29121 save_CFLAGS="$CFLAGS"
29122 save_LIBS="$LIBS"
c92ad099 29123 CFLAGS="$PANGOX_CFLAGS $CFLAGS"
304205f1
VS
29124 LIBS="$LIBS $PANGOX_LIBS"
29125
29126for ac_func in pango_font_family_is_monospace
29127do
29128as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29129echo "$as_me:$LINENO: checking for $ac_func" >&5
29130echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29131if eval "test \"\${$as_ac_var+set}\" = set"; then
29132 echo $ECHO_N "(cached) $ECHO_C" >&6
29133else
29134 cat >conftest.$ac_ext <<_ACEOF
29135/* confdefs.h. */
29136_ACEOF
29137cat confdefs.h >>conftest.$ac_ext
29138cat >>conftest.$ac_ext <<_ACEOF
29139/* end confdefs.h. */
29140/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29142#define $ac_func innocuous_$ac_func
29143
29144/* System header to define __stub macros and hopefully few prototypes,
29145 which can conflict with char $ac_func (); below.
29146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29147 <limits.h> exists even on freestanding compilers. */
29148
29149#ifdef __STDC__
29150# include <limits.h>
29151#else
29152# include <assert.h>
29153#endif
29154
29155#undef $ac_func
29156
29157/* Override any gcc2 internal prototype to avoid an error. */
29158#ifdef __cplusplus
29159extern "C"
29160{
29161#endif
29162/* We use char because int might match the return type of a gcc2
29163 builtin and then its argument prototype would still apply. */
29164char $ac_func ();
29165/* The GNU C library defines this for functions which it implements
29166 to always fail with ENOSYS. Some functions are actually named
29167 something starting with __ and the normal name is an alias. */
29168#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29169choke me
29170#else
29171char (*f) () = $ac_func;
29172#endif
29173#ifdef __cplusplus
29174}
29175#endif
29176
29177int
29178main ()
29179{
29180return f != $ac_func;
29181 ;
29182 return 0;
29183}
29184_ACEOF
29185rm -f conftest.$ac_objext conftest$ac_exeext
29186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29187 (eval $ac_link) 2>conftest.er1
29188 ac_status=$?
29189 grep -v '^ *+' conftest.er1 >conftest.err
29190 rm -f conftest.er1
29191 cat conftest.err >&5
29192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29193 (exit $ac_status); } &&
5ff751d6 29194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
29195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29196 (eval $ac_try) 2>&5
29197 ac_status=$?
29198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199 (exit $ac_status); }; } &&
29200 { ac_try='test -s conftest$ac_exeext'
29201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202 (eval $ac_try) 2>&5
29203 ac_status=$?
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); }; }; then
29206 eval "$as_ac_var=yes"
29207else
29208 echo "$as_me: failed program was:" >&5
29209sed 's/^/| /' conftest.$ac_ext >&5
29210
29211eval "$as_ac_var=no"
29212fi
29213rm -f conftest.err conftest.$ac_objext \
29214 conftest$ac_exeext conftest.$ac_ext
29215fi
29216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29217echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29218if test `eval echo '${'$as_ac_var'}'` = yes; then
29219 cat >>confdefs.h <<_ACEOF
29220#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29221_ACEOF
29222
29223fi
29224done
29225
29226 CFLAGS="$save_CFLAGS"
29227 LIBS="$save_LIBS"
a848cd7e
SC
29228 fi
29229
29230 wxUSE_UNIVERSAL="yes"
29231
29232 if test "$wxUSE_NANOX" = "yes"; then
29233 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29234 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"
29235 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29236 else
29237 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29238 fi
29239
a848cd7e
SC
29240 TOOLKIT=X11
29241 GUIDIST=X11_DIST
29242 fi
29243
29244 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29245 if test "$wxUSE_UNICODE" = "yes"; then
29246 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29247echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29248 { (exit 1); exit 1; }; }
29249 fi
29250
74b84332
VS
29251 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29252echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29253
74b84332
VS
29254ac_find_includes=
29255for ac_dir in $SEARCH_INCLUDE /usr/include;
29256 do
29257 if test -f "$ac_dir/Xm/Xm.h"; then
29258 ac_find_includes=$ac_dir
29259 break
29260 fi
29261 done
a848cd7e 29262
74b84332
VS
29263 if test "$ac_find_includes" != "" ; then
29264 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29265echo "${ECHO_T}found in $ac_find_includes" >&6
29266
29267 if test "x$ac_find_includes" = "x/usr/include"; then
29268 ac_path_to_include=""
29269 else
29270 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29271 result=$?
29272 if test $result = 0; then
29273 ac_path_to_include=""
29274 else
29275 ac_path_to_include=" -I$ac_find_includes"
29276 fi
a848cd7e
SC
29277 fi
29278
74b84332
VS
29279 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29280 else
e051b34e 29281 save_CFLAGS=$CFLAGS
c92ad099 29282 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
e051b34e 29283
74b84332 29284 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29285/* confdefs.h. */
29286_ACEOF
29287cat confdefs.h >>conftest.$ac_ext
29288cat >>conftest.$ac_ext <<_ACEOF
29289/* end confdefs.h. */
29290
74b84332
VS
29291 #include <Xm/Xm.h>
29292
a848cd7e
SC
29293int
29294main ()
29295{
29296
74b84332
VS
29297 int version;
29298 version = xmUseVersion;
29299
a848cd7e
SC
29300 ;
29301 return 0;
29302}
29303_ACEOF
74b84332
VS
29304rm -f conftest.$ac_objext
29305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29306 (eval $ac_compile) 2>conftest.er1
a848cd7e 29307 ac_status=$?
ac1cb8d3
VS
29308 grep -v '^ *+' conftest.er1 >conftest.err
29309 rm -f conftest.er1
29310 cat conftest.err >&5
a848cd7e
SC
29311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312 (exit $ac_status); } &&
5ff751d6 29313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29315 (eval $ac_try) 2>&5
29316 ac_status=$?
29317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318 (exit $ac_status); }; } &&
74b84332 29319 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29321 (eval $ac_try) 2>&5
29322 ac_status=$?
29323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29324 (exit $ac_status); }; }; then
74b84332
VS
29325
29326 echo "$as_me:$LINENO: result: found in default search path" >&5
29327echo "${ECHO_T}found in default search path" >&6
29328 COMPILED_X_PROGRAM=1
29329
a848cd7e
SC
29330else
29331 echo "$as_me: failed program was:" >&5
29332sed 's/^/| /' conftest.$ac_ext >&5
29333
a848cd7e 29334
74b84332
VS
29335 echo "$as_me:$LINENO: result: no" >&5
29336echo "${ECHO_T}no" >&6
e051b34e
MW
29337 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29338echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29339 { (exit 1); exit 1; }; }
a848cd7e 29340
a848cd7e 29341
a848cd7e 29342fi
74b84332 29343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29344
29345 CFLAGS=$save_CFLAGS
74b84332
VS
29346 fi
29347
0ad5d837
VZ
29348
29349 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29350echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29351
0ad5d837
VZ
29352 ac_find_libraries=
29353 for ac_dir in $SEARCH_LIB;
74b84332 29354 do
3eca31dc 29355 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29356 if test -f "$ac_dir/libXm.$ac_extension"; then
29357 ac_find_libraries=$ac_dir
29358 break 2
a848cd7e 29359 fi
74b84332
VS
29360 done
29361 done
a848cd7e 29362
0ad5d837
VZ
29363
29364 if test "x$ac_find_libraries" != "x" ; then
29365 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29366echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29367
74b84332 29368
0ad5d837 29369 if test "$ac_find_libraries" = "default location"; then
74b84332 29370 ac_path_to_link=""
a848cd7e 29371 else
0ad5d837
VZ
29372 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29373 result=$?
29374 if test $result = 0; then
29375 ac_path_to_link=""
29376 else
29377 ac_path_to_link=" -L$ac_find_libraries"
29378 fi
74b84332
VS
29379 fi
29380
0ad5d837
VZ
29381 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29382 else
29383 save_CFLAGS=$CFLAGS
c92ad099 29384 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
6f9cf1e6
MW
29385 save_LIBS="$LIBS"
29386 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29387
0ad5d837 29388 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29389/* confdefs.h. */
29390_ACEOF
29391cat confdefs.h >>conftest.$ac_ext
29392cat >>conftest.$ac_ext <<_ACEOF
29393/* end confdefs.h. */
29394
0ad5d837 29395 #include <Xm/Xm.h>
74b84332 29396
a848cd7e
SC
29397int
29398main ()
29399{
74b84332 29400
0ad5d837
VZ
29401 int version;
29402 version = xmUseVersion;
74b84332 29403
a848cd7e
SC
29404 ;
29405 return 0;
29406}
29407_ACEOF
0ad5d837
VZ
29408rm -f conftest.$ac_objext conftest$ac_exeext
29409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29410 (eval $ac_link) 2>conftest.er1
a848cd7e 29411 ac_status=$?
ac1cb8d3
VS
29412 grep -v '^ *+' conftest.er1 >conftest.err
29413 rm -f conftest.er1
29414 cat conftest.err >&5
a848cd7e
SC
29415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416 (exit $ac_status); } &&
5ff751d6 29417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29419 (eval $ac_try) 2>&5
29420 ac_status=$?
29421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422 (exit $ac_status); }; } &&
0ad5d837 29423 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29425 (eval $ac_try) 2>&5
29426 ac_status=$?
29427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428 (exit $ac_status); }; }; then
74b84332 29429
0ad5d837 29430 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29431echo "${ECHO_T}found in default search path" >&6
0ad5d837 29432 COMPILED_X_PROGRAM=1
74b84332 29433
a848cd7e
SC
29434else
29435 echo "$as_me: failed program was:" >&5
29436sed 's/^/| /' conftest.$ac_ext >&5
29437
74b84332 29438
6f9cf1e6 29439 echo "$as_me:$LINENO: result: no" >&5
74b84332 29440echo "${ECHO_T}no" >&6
6f9cf1e6 29441 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29442echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29443 { (exit 1); exit 1; }; }
29444
29445
29446fi
0ad5d837
VZ
29447rm -f conftest.err conftest.$ac_objext \
29448 conftest$ac_exeext conftest.$ac_ext
74b84332 29449
0ad5d837 29450 CFLAGS=$save_CFLAGS
6f9cf1e6 29451 LIBS="$save_LIBS"
74b84332
VS
29452 fi
29453
29454 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29455echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29456 libp_link=""
29457 libsm_ice_link=""
29458 libs_found=0
29459 for libp in "" " -lXp"; do
29460 if test "$libs_found" = "0"; then
29461 for libsm_ice in "" " -lSM -lICE"; do
29462 if test "$libs_found" = "0"; then
29463 save_LIBS="$LIBS"
29464 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29465 save_CFLAGS=$CFLAGS
c92ad099 29466 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
74b84332
VS
29467
29468 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29469/* confdefs.h. */
29470_ACEOF
29471cat confdefs.h >>conftest.$ac_ext
29472cat >>conftest.$ac_ext <<_ACEOF
29473/* end confdefs.h. */
29474
74b84332
VS
29475 #include <Xm/Xm.h>
29476 #include <Xm/List.h>
29477
a848cd7e
SC
29478int
29479main ()
29480{
74b84332
VS
29481
29482 XmString string = NULL;
29483 Widget w = NULL;
29484 int position = 0;
29485 XmListAddItem(w, string, position);
29486
a848cd7e
SC
29487 ;
29488 return 0;
29489}
29490_ACEOF
29491rm -f conftest.$ac_objext conftest$ac_exeext
29492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29493 (eval $ac_link) 2>conftest.er1
a848cd7e 29494 ac_status=$?
ac1cb8d3
VS
29495 grep -v '^ *+' conftest.er1 >conftest.err
29496 rm -f conftest.er1
29497 cat conftest.err >&5
a848cd7e
SC
29498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499 (exit $ac_status); } &&
5ff751d6 29500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29502 (eval $ac_try) 2>&5
29503 ac_status=$?
29504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505 (exit $ac_status); }; } &&
29506 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29508 (eval $ac_try) 2>&5
29509 ac_status=$?
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); }; }; then
29512
29513 libp_link="$libp"
29514 libsm_ice_link="$libsm_ice"
29515 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29516echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29517 libs_found=1
29518
29519else
29520 echo "$as_me: failed program was:" >&5
29521sed 's/^/| /' conftest.$ac_ext >&5
29522
29523
29524
29525fi
ac1cb8d3
VS
29526rm -f conftest.err conftest.$ac_objext \
29527 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29528
29529 LIBS="$save_LIBS"
29530 CFLAGS=$save_CFLAGS
29531 fi
29532 done
29533 fi
29534 done
29535
29536 if test "$libs_found" = "0"; then
29537 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29538echo "${ECHO_T}can't find the right libraries" >&6
29539 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29540echo "$as_me: error: can't link a simple motif program" >&2;}
29541 { (exit 1); exit 1; }; }
29542 fi
29543
62fa8b3a
MW
29544 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29545echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29546if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29547 echo $ECHO_N "(cached) $ECHO_C" >&6
29548else
29549 ac_check_lib_save_LIBS=$LIBS
29550LIBS="-lSgm $LIBS"
29551cat >conftest.$ac_ext <<_ACEOF
29552/* confdefs.h. */
29553_ACEOF
29554cat confdefs.h >>conftest.$ac_ext
29555cat >>conftest.$ac_ext <<_ACEOF
29556/* end confdefs.h. */
29557
29558/* Override any gcc2 internal prototype to avoid an error. */
29559#ifdef __cplusplus
29560extern "C"
29561#endif
29562/* We use char because int might match the return type of a gcc2
29563 builtin and then its argument prototype would still apply. */
29564char SgCreateList ();
29565int
29566main ()
29567{
29568SgCreateList ();
29569 ;
29570 return 0;
29571}
29572_ACEOF
29573rm -f conftest.$ac_objext conftest$ac_exeext
29574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29575 (eval $ac_link) 2>conftest.er1
29576 ac_status=$?
29577 grep -v '^ *+' conftest.er1 >conftest.err
29578 rm -f conftest.er1
29579 cat conftest.err >&5
29580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29581 (exit $ac_status); } &&
5ff751d6 29582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
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_exeext'
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 ac_cv_lib_Sgm_SgCreateList=yes
29595else
29596 echo "$as_me: failed program was:" >&5
29597sed 's/^/| /' conftest.$ac_ext >&5
29598
29599ac_cv_lib_Sgm_SgCreateList=no
29600fi
29601rm -f conftest.err conftest.$ac_objext \
29602 conftest$ac_exeext conftest.$ac_ext
29603LIBS=$ac_check_lib_save_LIBS
29604fi
29605echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29606echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29607if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29608 libsgm_link=" -lSgm"
29609fi
29610
29611
a848cd7e 29612 save_CFLAGS=$CFLAGS
c92ad099 29613 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
0ad5d837 29614
a848cd7e
SC
29615 echo "$as_me:$LINENO: checking for Motif 2" >&5
29616echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29617if test "${wx_cv_lib_motif2+set}" = set; then
29618 echo $ECHO_N "(cached) $ECHO_C" >&6
29619else
29620 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29621/* confdefs.h. */
29622_ACEOF
29623cat confdefs.h >>conftest.$ac_ext
29624cat >>conftest.$ac_ext <<_ACEOF
29625/* end confdefs.h. */
29626
0ad5d837 29627 #include <Xm/Xm.h>
a848cd7e
SC
29628
29629int
29630main ()
29631{
29632
0ad5d837
VZ
29633 #if XmVersion < 2000
29634 Not Motif 2
29635 #endif
a848cd7e
SC
29636
29637 ;
29638 return 0;
29639}
29640_ACEOF
29641rm -f conftest.$ac_objext
29642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29643 (eval $ac_compile) 2>conftest.er1
a848cd7e 29644 ac_status=$?
ac1cb8d3
VS
29645 grep -v '^ *+' conftest.er1 >conftest.err
29646 rm -f conftest.er1
29647 cat conftest.err >&5
a848cd7e
SC
29648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649 (exit $ac_status); } &&
5ff751d6 29650 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29652 (eval $ac_try) 2>&5
29653 ac_status=$?
29654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29655 (exit $ac_status); }; } &&
29656 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29658 (eval $ac_try) 2>&5
29659 ac_status=$?
29660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29661 (exit $ac_status); }; }; then
0ad5d837 29662 wx_cv_lib_motif2="yes"
a848cd7e
SC
29663else
29664 echo "$as_me: failed program was:" >&5
29665sed 's/^/| /' conftest.$ac_ext >&5
29666
0ad5d837
VZ
29667wx_cv_lib_motif2="no"
29668fi
29669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29670fi
29671echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29672echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29673 if test "$wx_cv_lib_motif2" = "yes"; then
29674 cat >>confdefs.h <<\_ACEOF
29675#define __WXMOTIF20__ 1
29676_ACEOF
a848cd7e 29677
0ad5d837
VZ
29678 else
29679 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29680#define __WXMOTIF20__ 0
29681_ACEOF
29682
0ad5d837 29683 fi
2113bc77
MW
29684
29685 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29686echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29687if test "${wx_cv_lib_lesstif+set}" = set; then
29688 echo $ECHO_N "(cached) $ECHO_C" >&6
29689else
29690 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29691/* confdefs.h. */
29692_ACEOF
29693cat confdefs.h >>conftest.$ac_ext
29694cat >>conftest.$ac_ext <<_ACEOF
29695/* end confdefs.h. */
29696
0ad5d837 29697 #include <Xm/Xm.h>
2113bc77
MW
29698
29699int
29700main ()
29701{
29702
0ad5d837
VZ
29703 #if !defined(LesstifVersion) || LesstifVersion <= 0
29704 Not Lesstif
29705 #endif
2113bc77
MW
29706
29707 ;
29708 return 0;
29709}
29710_ACEOF
29711rm -f conftest.$ac_objext
29712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29713 (eval $ac_compile) 2>conftest.er1
29714 ac_status=$?
29715 grep -v '^ *+' conftest.er1 >conftest.err
29716 rm -f conftest.er1
29717 cat conftest.err >&5
29718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29719 (exit $ac_status); } &&
5ff751d6 29720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
29721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29722 (eval $ac_try) 2>&5
29723 ac_status=$?
29724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29725 (exit $ac_status); }; } &&
29726 { ac_try='test -s conftest.$ac_objext'
29727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29728 (eval $ac_try) 2>&5
29729 ac_status=$?
29730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29731 (exit $ac_status); }; }; then
0ad5d837 29732 wx_cv_lib_lesstif="yes"
2113bc77
MW
29733else
29734 echo "$as_me: failed program was:" >&5
29735sed 's/^/| /' conftest.$ac_ext >&5
29736
0ad5d837
VZ
29737wx_cv_lib_lesstif="no"
29738fi
29739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29740
0ad5d837
VZ
29741fi
29742echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29743echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29744 if test "$wx_cv_lib_lesstif" = "yes"; then
29745 cat >>confdefs.h <<\_ACEOF
29746#define __WXLESSTIF__ 1
29747_ACEOF
29748
29749 else
29750 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29751#define __WXLESSTIF__ 0
29752_ACEOF
29753
0ad5d837 29754 fi
2113bc77 29755
a848cd7e
SC
29756 CFLAGS=$save_CFLAGS
29757
62fa8b3a 29758 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29759 TOOLKIT=MOTIF
29760 GUIDIST=MOTIF_DIST
29761 fi
29762
74b84332 29763 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29764 if test "$wxUSE_LIBXPM" = "sys"; then
29765 echo "$as_me:$LINENO: checking for Xpm library" >&5
29766echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29767
0ad5d837
VZ
29768 ac_find_libraries=
29769 for ac_dir in $SEARCH_LIB;
a848cd7e 29770 do
3eca31dc 29771 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29772 if test -f "$ac_dir/libXpm.$ac_extension"; then
29773 ac_find_libraries=$ac_dir
29774 break 2
29775 fi
29776 done
29777 done
29778
29779 if test "$ac_find_libraries" != "" ; then
29780
0ad5d837 29781 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29782 ac_path_to_link=""
29783 else
0ad5d837
VZ
29784 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29785 result=$?
29786 if test $result = 0; then
29787 ac_path_to_link=""
29788 else
29789 ac_path_to_link=" -L$ac_find_libraries"
29790 fi
a848cd7e
SC
29791 fi
29792
29793 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29794 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29795echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29796
29797 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29798echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29799if test "${wx_cv_x11_xpm_h+set}" = set; then
29800 echo $ECHO_N "(cached) $ECHO_C" >&6
29801else
29802
29803 save_CFLAGS=$CFLAGS
c92ad099 29804 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
29805
29806 cat >conftest.$ac_ext <<_ACEOF
29807/* confdefs.h. */
29808_ACEOF
29809cat confdefs.h >>conftest.$ac_ext
29810cat >>conftest.$ac_ext <<_ACEOF
29811/* end confdefs.h. */
29812
29813 #include <X11/xpm.h>
29814
29815int
29816main ()
29817{
29818
29819 int version;
29820 version = XpmLibraryVersion();
29821
29822 ;
29823 return 0;
29824}
29825_ACEOF
29826rm -f conftest.$ac_objext
29827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29828 (eval $ac_compile) 2>conftest.er1
a848cd7e 29829 ac_status=$?
ac1cb8d3
VS
29830 grep -v '^ *+' conftest.er1 >conftest.err
29831 rm -f conftest.er1
29832 cat conftest.err >&5
a848cd7e
SC
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); } &&
5ff751d6 29835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29837 (eval $ac_try) 2>&5
29838 ac_status=$?
29839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29840 (exit $ac_status); }; } &&
29841 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29843 (eval $ac_try) 2>&5
29844 ac_status=$?
29845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29846 (exit $ac_status); }; }; then
29847 wx_cv_x11_xpm_h=yes
29848else
29849 echo "$as_me: failed program was:" >&5
29850sed 's/^/| /' conftest.$ac_ext >&5
29851
29852wx_cv_x11_xpm_h=no
29853
29854fi
ac1cb8d3 29855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29856
29857 CFLAGS=$save_CFLAGS
29858
29859
29860fi
29861echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29862echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29863
29864 if test $wx_cv_x11_xpm_h = "yes"; then
29865 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29866 cat >>confdefs.h <<\_ACEOF
29867#define wxHAVE_LIB_XPM 1
29868_ACEOF
29869
29870 else
29871 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29872echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29873 fi
29874 fi
29875
29876 fi
29877
29878 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29879echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29880if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29881 echo $ECHO_N "(cached) $ECHO_C" >&6
29882else
29883 ac_check_lib_save_LIBS=$LIBS
29884LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29885cat >conftest.$ac_ext <<_ACEOF
29886/* confdefs.h. */
29887_ACEOF
29888cat confdefs.h >>conftest.$ac_ext
29889cat >>conftest.$ac_ext <<_ACEOF
29890/* end confdefs.h. */
29891
29892/* Override any gcc2 internal prototype to avoid an error. */
29893#ifdef __cplusplus
29894extern "C"
29895#endif
29896/* We use char because int might match the return type of a gcc2
29897 builtin and then its argument prototype would still apply. */
29898char XShapeQueryExtension ();
29899int
29900main ()
29901{
29902XShapeQueryExtension ();
29903 ;
29904 return 0;
29905}
29906_ACEOF
29907rm -f conftest.$ac_objext conftest$ac_exeext
29908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29909 (eval $ac_link) 2>conftest.er1
a848cd7e 29910 ac_status=$?
ac1cb8d3
VS
29911 grep -v '^ *+' conftest.er1 >conftest.err
29912 rm -f conftest.er1
29913 cat conftest.err >&5
a848cd7e
SC
29914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29915 (exit $ac_status); } &&
5ff751d6 29916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29918 (eval $ac_try) 2>&5
29919 ac_status=$?
29920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29921 (exit $ac_status); }; } &&
29922 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29924 (eval $ac_try) 2>&5
29925 ac_status=$?
29926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29927 (exit $ac_status); }; }; then
29928 ac_cv_lib_Xext_XShapeQueryExtension=yes
29929else
29930 echo "$as_me: failed program was:" >&5
29931sed 's/^/| /' conftest.$ac_ext >&5
29932
29933ac_cv_lib_Xext_XShapeQueryExtension=no
29934fi
ac1cb8d3
VS
29935rm -f conftest.err conftest.$ac_objext \
29936 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29937LIBS=$ac_check_lib_save_LIBS
29938fi
29939echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29940echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29941if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29942
29943 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29944 wxHAVE_XEXT_LIB=1
29945
29946fi
29947
29948
29949 if test "$wxHAVE_XEXT_LIB" = 1; then
29950 save_CFLAGS="$CFLAGS"
c92ad099 29951 CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
a848cd7e
SC
29952
29953 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29954echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29955 cat >conftest.$ac_ext <<_ACEOF
29956/* confdefs.h. */
29957_ACEOF
29958cat confdefs.h >>conftest.$ac_ext
29959cat >>conftest.$ac_ext <<_ACEOF
29960/* end confdefs.h. */
29961
29962 #include <X11/Xlib.h>
29963 #include <X11/extensions/shape.h>
29964
29965int
29966main ()
29967{
29968
29969 int dummy1, dummy2;
29970 XShapeQueryExtension((Display*)NULL,
29971 (int*)NULL, (int*)NULL);
29972
29973 ;
29974 return 0;
29975}
29976_ACEOF
29977rm -f conftest.$ac_objext
29978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29979 (eval $ac_compile) 2>conftest.er1
a848cd7e 29980 ac_status=$?
ac1cb8d3
VS
29981 grep -v '^ *+' conftest.er1 >conftest.err
29982 rm -f conftest.er1
29983 cat conftest.err >&5
a848cd7e
SC
29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29985 (exit $ac_status); } &&
5ff751d6 29986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29988 (eval $ac_try) 2>&5
29989 ac_status=$?
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); }; } &&
29992 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29994 (eval $ac_try) 2>&5
29995 ac_status=$?
29996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29997 (exit $ac_status); }; }; then
29998
29999 cat >>confdefs.h <<\_ACEOF
30000#define HAVE_XSHAPE 1
30001_ACEOF
30002
30003 echo "$as_me:$LINENO: result: found" >&5
30004echo "${ECHO_T}found" >&6
30005
30006else
30007 echo "$as_me: failed program was:" >&5
30008sed 's/^/| /' conftest.$ac_ext >&5
30009
30010
30011 echo "$as_me:$LINENO: result: not found" >&5
30012echo "${ECHO_T}not found" >&6
30013
30014fi
ac1cb8d3 30015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30016 CFLAGS="$save_CFLAGS"
30017
30018 fi
30019 fi
30020
30021 if test "$wxUSE_MAC" = 1; then
30022 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30023echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30024 if test "$GCC" = yes; then
30025 echo "$as_me:$LINENO: result: gcc" >&5
30026echo "${ECHO_T}gcc" >&6
30027 CPPFLAGS_PASCAL="-fpascal-strings"
30028 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30029 echo "$as_me:$LINENO: result: xlc" >&5
30030echo "${ECHO_T}xlc" >&6
30031 CPPFLAGS_PASCAL="-qmacpstr"
30032 else
30033 echo "$as_me:$LINENO: result: none" >&5
30034echo "${ECHO_T}none" >&6
30035 fi
30036
1e9e8aba 30037 if test "x$wxUSE_UNIX" = "xyes"; then
c92ad099 30038 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
1e9e8aba 30039 else
c92ad099 30040 CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
1e9e8aba 30041 fi
a848cd7e 30042
a848cd7e
SC
30043 TOOLKIT=MAC
30044 GUIDIST=MACX_DIST
dd21ced8 30045 WXBASEPORT="_carbon"
a848cd7e
SC
30046 fi
30047
30048 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30049 TOOLKIT=COCOA
30050 GUIDIST=COCOA_DIST
30051 fi
30052
30053 if test "$wxUSE_PM" = 1; then
30054 TOOLKIT=PM
de59c161
RD
30055 GUIDIST=PM_DIST
30056 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30057echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30058if test "${wx_cv_spbcdata+set}" = set; then
30059 echo $ECHO_N "(cached) $ECHO_C" >&6
30060else
30061
30062 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30063/* confdefs.h. */
30064_ACEOF
30065cat confdefs.h >>conftest.$ac_ext
30066cat >>conftest.$ac_ext <<_ACEOF
30067/* end confdefs.h. */
30068
30069 #define INCL_PM
30070 #include <os2.h>
30071
30072int
30073main ()
30074{
30075
30076 SPBCDATA test;
30077
30078 ;
30079 return 0;
30080}
30081_ACEOF
30082rm -f conftest.$ac_objext
30083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30084 (eval $ac_compile) 2>conftest.er1
de59c161 30085 ac_status=$?
ac1cb8d3
VS
30086 grep -v '^ *+' conftest.er1 >conftest.err
30087 rm -f conftest.er1
30088 cat conftest.err >&5
de59c161
RD
30089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30090 (exit $ac_status); } &&
5ff751d6 30091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30093 (eval $ac_try) 2>&5
30094 ac_status=$?
30095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096 (exit $ac_status); }; } &&
30097 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099 (eval $ac_try) 2>&5
30100 ac_status=$?
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; }; then
30103 wx_cv_spbcdata=yes
30104else
30105 echo "$as_me: failed program was:" >&5
30106sed 's/^/| /' conftest.$ac_ext >&5
30107
30108wx_cv_spbcdata=no
30109
30110fi
ac1cb8d3 30111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30112
30113
30114fi
30115echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30116echo "${ECHO_T}$wx_cv_spbcdata" >&6
30117
30118 if test $wx_cv_spbcdata = "yes"; then
30119 cat >>confdefs.h <<\_ACEOF
30120#define HAVE_SPBCDATA 1
30121_ACEOF
30122
30123 fi
a848cd7e
SC
30124 fi
30125
30126 if test "$TOOLKIT" = "PM" ; then
30127 TOOLKIT_DIR="os2"
30128 else
30129 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30130 fi
30131
a848cd7e 30132 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30133 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30134 WIDGET_SET=univ
a848cd7e
SC
30135 fi
30136
30137 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30138 DISTDIR="wx\$(TOOLKIT)"
30139else
30140 USE_GUI=0
30141
30142 TOOLKIT_DIR="base"
30143
30144 if test "$USE_WIN32" = 1 ; then
a848cd7e 30145 TOOLKIT="MSW"
a848cd7e
SC
30146 fi
30147
a848cd7e
SC
30148 GUIDIST="BASE_DIST"
30149 DISTDIR="wxBase"
30150fi
30151
30152
d12aef51
VZ
30153if test "$wxUSE_GUI" = "yes"; then
30154 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30155
30156for ac_header in X11/Xlib.h
30157do
30158as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30159if eval "test \"\${$as_ac_Header+set}\" = set"; then
30160 echo "$as_me:$LINENO: checking for $ac_header" >&5
30161echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30162if eval "test \"\${$as_ac_Header+set}\" = set"; then
30163 echo $ECHO_N "(cached) $ECHO_C" >&6
30164fi
30165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30167else
30168 # Is the header compilable?
30169echo "$as_me:$LINENO: checking $ac_header usability" >&5
30170echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30171cat >conftest.$ac_ext <<_ACEOF
30172/* confdefs.h. */
30173_ACEOF
30174cat confdefs.h >>conftest.$ac_ext
30175cat >>conftest.$ac_ext <<_ACEOF
30176/* end confdefs.h. */
30177$ac_includes_default
30178#include <$ac_header>
30179_ACEOF
30180rm -f conftest.$ac_objext
30181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30182 (eval $ac_compile) 2>conftest.er1
30183 ac_status=$?
30184 grep -v '^ *+' conftest.er1 >conftest.err
30185 rm -f conftest.er1
30186 cat conftest.err >&5
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); } &&
5ff751d6 30189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30191 (eval $ac_try) 2>&5
30192 ac_status=$?
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); }; } &&
30195 { ac_try='test -s conftest.$ac_objext'
30196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30197 (eval $ac_try) 2>&5
30198 ac_status=$?
30199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30200 (exit $ac_status); }; }; then
30201 ac_header_compiler=yes
30202else
30203 echo "$as_me: failed program was:" >&5
30204sed 's/^/| /' conftest.$ac_ext >&5
30205
30206ac_header_compiler=no
30207fi
30208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30210echo "${ECHO_T}$ac_header_compiler" >&6
30211
30212# Is the header present?
30213echo "$as_me:$LINENO: checking $ac_header presence" >&5
30214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30215cat >conftest.$ac_ext <<_ACEOF
30216/* confdefs.h. */
30217_ACEOF
30218cat confdefs.h >>conftest.$ac_ext
30219cat >>conftest.$ac_ext <<_ACEOF
30220/* end confdefs.h. */
30221#include <$ac_header>
30222_ACEOF
30223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30225 ac_status=$?
30226 grep -v '^ *+' conftest.er1 >conftest.err
30227 rm -f conftest.er1
30228 cat conftest.err >&5
30229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230 (exit $ac_status); } >/dev/null; then
30231 if test -s conftest.err; then
30232 ac_cpp_err=$ac_c_preproc_warn_flag
30233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30234 else
30235 ac_cpp_err=
30236 fi
30237else
30238 ac_cpp_err=yes
30239fi
30240if test -z "$ac_cpp_err"; then
30241 ac_header_preproc=yes
30242else
30243 echo "$as_me: failed program was:" >&5
30244sed 's/^/| /' conftest.$ac_ext >&5
30245
30246 ac_header_preproc=no
30247fi
30248rm -f conftest.err conftest.$ac_ext
30249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30250echo "${ECHO_T}$ac_header_preproc" >&6
30251
30252# So? What about this header?
30253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30254 yes:no: )
30255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30259 ac_header_preproc=yes
30260 ;;
30261 no:yes:* )
30262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30274 (
30275 cat <<\_ASBOX
30276## ----------------------------------------- ##
30277## Report this to wx-dev@lists.wxwidgets.org ##
30278## ----------------------------------------- ##
30279_ASBOX
30280 ) |
30281 sed "s/^/$as_me: WARNING: /" >&2
30282 ;;
30283esac
30284echo "$as_me:$LINENO: checking for $ac_header" >&5
30285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30286if eval "test \"\${$as_ac_Header+set}\" = set"; then
30287 echo $ECHO_N "(cached) $ECHO_C" >&6
30288else
30289 eval "$as_ac_Header=\$ac_header_preproc"
30290fi
30291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30293
30294fi
30295if test `eval echo '${'$as_ac_Header'}'` = yes; then
30296 cat >>confdefs.h <<_ACEOF
30297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30298_ACEOF
30299
30300fi
30301
30302done
30303
30304
30305for ac_header in X11/XKBlib.h
30306do
30307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30308echo "$as_me:$LINENO: checking for $ac_header" >&5
30309echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30310if eval "test \"\${$as_ac_Header+set}\" = set"; then
30311 echo $ECHO_N "(cached) $ECHO_C" >&6
30312else
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
30320 #if HAVE_X11_XLIB_H
30321 #include <X11/Xlib.h>
30322 #endif
30323
30324
30325#include <$ac_header>
30326_ACEOF
30327rm -f conftest.$ac_objext
30328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30329 (eval $ac_compile) 2>conftest.er1
30330 ac_status=$?
30331 grep -v '^ *+' conftest.er1 >conftest.err
30332 rm -f conftest.er1
30333 cat conftest.err >&5
30334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30335 (exit $ac_status); } &&
5ff751d6 30336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30338 (eval $ac_try) 2>&5
30339 ac_status=$?
30340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30341 (exit $ac_status); }; } &&
30342 { ac_try='test -s conftest.$ac_objext'
30343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30344 (eval $ac_try) 2>&5
30345 ac_status=$?
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); }; }; then
30348 eval "$as_ac_Header=yes"
30349else
30350 echo "$as_me: failed program was:" >&5
30351sed 's/^/| /' conftest.$ac_ext >&5
30352
30353eval "$as_ac_Header=no"
30354fi
30355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30356fi
30357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30359if test `eval echo '${'$as_ac_Header'}'` = yes; then
30360 cat >>confdefs.h <<_ACEOF
30361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30362_ACEOF
30363
30364fi
30365
30366done
30367
30368 fi
30369fi
30370
a848cd7e
SC
30371
30372
30373IODBC_C_SRC=""
30374
30375
30376if test "$TOOLKIT" != "MSW" ; then
30377
30378 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30379
30380 if test "${ac_cv_header_sql_h+set}" = set; then
30381 echo "$as_me:$LINENO: checking for sql.h" >&5
30382echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30383if test "${ac_cv_header_sql_h+set}" = set; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30385fi
30386echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30387echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30388else
30389 # Is the header compilable?
30390echo "$as_me:$LINENO: checking sql.h usability" >&5
30391echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30392cat >conftest.$ac_ext <<_ACEOF
30393/* confdefs.h. */
30394_ACEOF
30395cat confdefs.h >>conftest.$ac_ext
30396cat >>conftest.$ac_ext <<_ACEOF
30397/* end confdefs.h. */
30398$ac_includes_default
30399#include <sql.h>
30400_ACEOF
30401rm -f conftest.$ac_objext
30402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30403 (eval $ac_compile) 2>conftest.er1
a848cd7e 30404 ac_status=$?
ac1cb8d3
VS
30405 grep -v '^ *+' conftest.er1 >conftest.err
30406 rm -f conftest.er1
30407 cat conftest.err >&5
a848cd7e
SC
30408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30409 (exit $ac_status); } &&
5ff751d6 30410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30412 (eval $ac_try) 2>&5
30413 ac_status=$?
30414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30415 (exit $ac_status); }; } &&
30416 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30418 (eval $ac_try) 2>&5
30419 ac_status=$?
30420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421 (exit $ac_status); }; }; then
30422 ac_header_compiler=yes
30423else
30424 echo "$as_me: failed program was:" >&5
30425sed 's/^/| /' conftest.$ac_ext >&5
30426
30427ac_header_compiler=no
30428fi
ac1cb8d3 30429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30430echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30431echo "${ECHO_T}$ac_header_compiler" >&6
30432
30433# Is the header present?
30434echo "$as_me:$LINENO: checking sql.h presence" >&5
30435echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30436cat >conftest.$ac_ext <<_ACEOF
30437/* confdefs.h. */
30438_ACEOF
30439cat confdefs.h >>conftest.$ac_ext
30440cat >>conftest.$ac_ext <<_ACEOF
30441/* end confdefs.h. */
30442#include <sql.h>
30443_ACEOF
30444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30446 ac_status=$?
30447 grep -v '^ *+' conftest.er1 >conftest.err
30448 rm -f conftest.er1
30449 cat conftest.err >&5
30450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451 (exit $ac_status); } >/dev/null; then
30452 if test -s conftest.err; then
30453 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30455 else
30456 ac_cpp_err=
30457 fi
30458else
30459 ac_cpp_err=yes
30460fi
30461if test -z "$ac_cpp_err"; then
30462 ac_header_preproc=yes
30463else
30464 echo "$as_me: failed program was:" >&5
30465sed 's/^/| /' conftest.$ac_ext >&5
30466
30467 ac_header_preproc=no
30468fi
30469rm -f conftest.err conftest.$ac_ext
30470echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30471echo "${ECHO_T}$ac_header_preproc" >&6
30472
30473# So? What about this header?
ac1cb8d3
VS
30474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30475 yes:no: )
a848cd7e
SC
30476 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30477echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30478 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30479echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30480 ac_header_preproc=yes
a848cd7e 30481 ;;
ac1cb8d3 30482 no:yes:* )
a848cd7e
SC
30483 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30484echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30485 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30486echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30487 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30488echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30489 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30490echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30491 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30492echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30493 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30494echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30495 (
30496 cat <<\_ASBOX
ac1cb8d3
VS
30497## ----------------------------------------- ##
30498## Report this to wx-dev@lists.wxwidgets.org ##
30499## ----------------------------------------- ##
a848cd7e
SC
30500_ASBOX
30501 ) |
30502 sed "s/^/$as_me: WARNING: /" >&2
30503 ;;
30504esac
30505echo "$as_me:$LINENO: checking for sql.h" >&5
30506echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30507if test "${ac_cv_header_sql_h+set}" = set; then
30508 echo $ECHO_N "(cached) $ECHO_C" >&6
30509else
30510 ac_cv_header_sql_h=$ac_header_preproc
30511fi
30512echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30513echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30514
30515fi
30516if test $ac_cv_header_sql_h = yes; then
30517 found_sql_h=1
30518fi
30519
30520
30521 if test "x$found_sql_h" = "x1" ; then
30522 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30523echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30524if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30525 echo $ECHO_N "(cached) $ECHO_C" >&6
30526else
30527 ac_check_lib_save_LIBS=$LIBS
30528LIBS="-liodbc $LIBS"
30529cat >conftest.$ac_ext <<_ACEOF
30530/* confdefs.h. */
30531_ACEOF
30532cat confdefs.h >>conftest.$ac_ext
30533cat >>conftest.$ac_ext <<_ACEOF
30534/* end confdefs.h. */
30535
30536/* Override any gcc2 internal prototype to avoid an error. */
30537#ifdef __cplusplus
30538extern "C"
30539#endif
30540/* We use char because int might match the return type of a gcc2
30541 builtin and then its argument prototype would still apply. */
30542char SQLAllocEnv ();
30543int
30544main ()
30545{
30546SQLAllocEnv ();
30547 ;
30548 return 0;
30549}
30550_ACEOF
30551rm -f conftest.$ac_objext conftest$ac_exeext
30552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30553 (eval $ac_link) 2>conftest.er1
a848cd7e 30554 ac_status=$?
ac1cb8d3
VS
30555 grep -v '^ *+' conftest.er1 >conftest.err
30556 rm -f conftest.er1
30557 cat conftest.err >&5
a848cd7e
SC
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); } &&
5ff751d6 30560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30562 (eval $ac_try) 2>&5
30563 ac_status=$?
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); }; } &&
30566 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30568 (eval $ac_try) 2>&5
30569 ac_status=$?
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); }; }; then
30572 ac_cv_lib_iodbc_SQLAllocEnv=yes
30573else
30574 echo "$as_me: failed program was:" >&5
30575sed 's/^/| /' conftest.$ac_ext >&5
30576
30577ac_cv_lib_iodbc_SQLAllocEnv=no
30578fi
ac1cb8d3
VS
30579rm -f conftest.err conftest.$ac_objext \
30580 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30581LIBS=$ac_check_lib_save_LIBS
30582fi
30583echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30584echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30585if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30586 ODBC_LINK=" -liodbc"
30587else
30588
30589 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30590echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30591if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30592 echo $ECHO_N "(cached) $ECHO_C" >&6
30593else
30594 ac_check_lib_save_LIBS=$LIBS
30595LIBS="-lunixodbc $LIBS"
30596cat >conftest.$ac_ext <<_ACEOF
30597/* confdefs.h. */
30598_ACEOF
30599cat confdefs.h >>conftest.$ac_ext
30600cat >>conftest.$ac_ext <<_ACEOF
30601/* end confdefs.h. */
30602
30603/* Override any gcc2 internal prototype to avoid an error. */
30604#ifdef __cplusplus
30605extern "C"
30606#endif
30607/* We use char because int might match the return type of a gcc2
30608 builtin and then its argument prototype would still apply. */
30609char SQLAllocEnv ();
30610int
30611main ()
30612{
30613SQLAllocEnv ();
30614 ;
30615 return 0;
30616}
30617_ACEOF
30618rm -f conftest.$ac_objext conftest$ac_exeext
30619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30620 (eval $ac_link) 2>conftest.er1
a848cd7e 30621 ac_status=$?
ac1cb8d3
VS
30622 grep -v '^ *+' conftest.er1 >conftest.err
30623 rm -f conftest.er1
30624 cat conftest.err >&5
a848cd7e
SC
30625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30626 (exit $ac_status); } &&
5ff751d6 30627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30629 (eval $ac_try) 2>&5
30630 ac_status=$?
30631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632 (exit $ac_status); }; } &&
30633 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30635 (eval $ac_try) 2>&5
30636 ac_status=$?
30637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); }; }; then
30639 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30640else
30641 echo "$as_me: failed program was:" >&5
30642sed 's/^/| /' conftest.$ac_ext >&5
30643
30644ac_cv_lib_unixodbc_SQLAllocEnv=no
30645fi
ac1cb8d3
VS
30646rm -f conftest.err conftest.$ac_objext \
30647 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30648LIBS=$ac_check_lib_save_LIBS
30649fi
30650echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30651echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30652if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30653 ODBC_LINK=" -lunixodbc"
30654else
30655
30656 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30657echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30658if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30659 echo $ECHO_N "(cached) $ECHO_C" >&6
30660else
30661 ac_check_lib_save_LIBS=$LIBS
30662LIBS="-lodbc $LIBS"
30663cat >conftest.$ac_ext <<_ACEOF
30664/* confdefs.h. */
30665_ACEOF
30666cat confdefs.h >>conftest.$ac_ext
30667cat >>conftest.$ac_ext <<_ACEOF
30668/* end confdefs.h. */
30669
30670/* Override any gcc2 internal prototype to avoid an error. */
30671#ifdef __cplusplus
30672extern "C"
30673#endif
30674/* We use char because int might match the return type of a gcc2
30675 builtin and then its argument prototype would still apply. */
30676char SQLAllocEnv ();
30677int
30678main ()
30679{
30680SQLAllocEnv ();
30681 ;
30682 return 0;
30683}
30684_ACEOF
30685rm -f conftest.$ac_objext conftest$ac_exeext
30686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30687 (eval $ac_link) 2>conftest.er1
a848cd7e 30688 ac_status=$?
ac1cb8d3
VS
30689 grep -v '^ *+' conftest.er1 >conftest.err
30690 rm -f conftest.er1
30691 cat conftest.err >&5
a848cd7e
SC
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } &&
5ff751d6 30694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30696 (eval $ac_try) 2>&5
30697 ac_status=$?
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); }; } &&
30700 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30702 (eval $ac_try) 2>&5
30703 ac_status=$?
30704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30705 (exit $ac_status); }; }; then
30706 ac_cv_lib_odbc_SQLAllocEnv=yes
30707else
30708 echo "$as_me: failed program was:" >&5
30709sed 's/^/| /' conftest.$ac_ext >&5
30710
30711ac_cv_lib_odbc_SQLAllocEnv=no
30712fi
ac1cb8d3
VS
30713rm -f conftest.err conftest.$ac_objext \
30714 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30715LIBS=$ac_check_lib_save_LIBS
30716fi
30717echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30718echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30719if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30720 ODBC_LINK=" -lodbc"
30721fi
30722
30723
30724fi
30725
30726
30727fi
30728
30729 fi
30730 if test "x$ODBC_LINK" = "x" ; then
30731 if test "$wxUSE_ODBC" = "sys" ; then
30732 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30733echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30734 { (exit 1); exit 1; }; }
30735 else
30736 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30737echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30738 wxUSE_ODBC=builtin
30739 fi
30740 else
30741 wxUSE_ODBC=sys
30742 fi
30743 fi
a848cd7e 30744
2da0c077
RD
30745 if test "$wxUSE_ODBC" = "builtin" ; then
30746 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30747#define wxUSE_BUILTIN_IODBC 1
30748_ACEOF
30749
a848cd7e
SC
30750 fi
30751fi
30752
2da0c077
RD
30753if test "$wxUSE_ODBC" != "no" ; then
30754 cat >>confdefs.h <<\_ACEOF
30755#define wxUSE_ODBC 1
30756_ACEOF
30757
30758 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30759
5ff751d6 30760 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 30761fi
a848cd7e 30762
01cb68df 30763
a848cd7e 30764if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30765 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30766 echo "$as_me:$LINENO: checking for Xinerama" >&5
30767echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30768
0ad5d837
VZ
30769 ac_find_libraries=
30770 for ac_dir in $SEARCH_LIB;
30771 do
30772 for ac_extension in a so sl dylib dll.a; do
30773 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30774 ac_find_libraries=$ac_dir
30775 break 2
30776 fi
30777 done
30778 done
30779
a848cd7e
SC
30780 if test "$ac_find_libraries" != "" ; then
30781
0ad5d837 30782 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30783 ac_path_to_link=""
30784 else
0ad5d837
VZ
30785 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30786 result=$?
30787 if test $result = 0; then
30788 ac_path_to_link=""
30789 else
30790 ac_path_to_link=" -L$ac_find_libraries"
30791 fi
a848cd7e
SC
30792 fi
30793
30794 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30795 LDFLAGS="$LDFLAGS $ac_path_to_link"
30796 fi
30797 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30798 echo "$as_me:$LINENO: result: yes" >&5
30799echo "${ECHO_T}yes" >&6
30800
30801 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30802echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30803
0ad5d837
VZ
30804 ac_find_libraries=
30805 for ac_dir in $SEARCH_LIB;
a848cd7e 30806 do
3eca31dc 30807 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30808 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30809 ac_find_libraries=$ac_dir
30810 break 2
30811 fi
30812 done
30813 done
30814
30815 if test "$ac_find_libraries" != "" ; then
30816 echo "$as_me:$LINENO: result: yes" >&5
30817echo "${ECHO_T}yes" >&6
30818
30819for ac_header in X11/extensions/xf86vmode.h
30820do
30821as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30822echo "$as_me:$LINENO: checking for $ac_header" >&5
30823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30824if eval "test \"\${$as_ac_Header+set}\" = set"; then
30825 echo $ECHO_N "(cached) $ECHO_C" >&6
30826else
30827 cat >conftest.$ac_ext <<_ACEOF
30828/* confdefs.h. */
30829_ACEOF
30830cat confdefs.h >>conftest.$ac_ext
30831cat >>conftest.$ac_ext <<_ACEOF
30832/* end confdefs.h. */
30833
30834 #if HAVE_X11_XLIB_H
30835 #include <X11/Xlib.h>
30836 #endif
30837
30838
30839#include <$ac_header>
30840_ACEOF
30841rm -f conftest.$ac_objext
30842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30843 (eval $ac_compile) 2>conftest.er1
a848cd7e 30844 ac_status=$?
ac1cb8d3
VS
30845 grep -v '^ *+' conftest.er1 >conftest.err
30846 rm -f conftest.er1
30847 cat conftest.err >&5
a848cd7e
SC
30848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30849 (exit $ac_status); } &&
5ff751d6 30850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30852 (eval $ac_try) 2>&5
30853 ac_status=$?
30854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30855 (exit $ac_status); }; } &&
30856 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30858 (eval $ac_try) 2>&5
30859 ac_status=$?
30860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30861 (exit $ac_status); }; }; then
30862 eval "$as_ac_Header=yes"
30863else
30864 echo "$as_me: failed program was:" >&5
30865sed 's/^/| /' conftest.$ac_ext >&5
30866
30867eval "$as_ac_Header=no"
30868fi
ac1cb8d3 30869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30870fi
30871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30873if test `eval echo '${'$as_ac_Header'}'` = yes; then
30874 cat >>confdefs.h <<_ACEOF
30875#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30876_ACEOF
30877
30878 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30879
30880fi
30881
30882done
30883
30884 else
30885 echo "$as_me:$LINENO: result: no" >&5
30886echo "${ECHO_T}no" >&6
30887 fi
30888
30889 else
30890 echo "$as_me:$LINENO: result: no" >&5
30891echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30892 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30893echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30894 wxUSE_DISPLAY="no"
30895 fi
01cb68df
RG
30896 elif test "$wxUSE_MSW" = 1; then
30897
30898
30899for ac_header in multimon.h ddraw.h
30900do
30901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30902echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30903echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30904if eval "test \"\${$as_ac_Header+set}\" = set"; then
30905 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30906else
5294a27e 30907 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30908/* confdefs.h. */
30909_ACEOF
30910cat confdefs.h >>conftest.$ac_ext
30911cat >>conftest.$ac_ext <<_ACEOF
30912/* end confdefs.h. */
5294a27e
VZ
30913#include <windows.h>
30914
01cb68df
RG
30915#include <$ac_header>
30916_ACEOF
30917rm -f conftest.$ac_objext
30918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30919 (eval $ac_compile) 2>conftest.er1
01cb68df 30920 ac_status=$?
ac1cb8d3
VS
30921 grep -v '^ *+' conftest.er1 >conftest.err
30922 rm -f conftest.er1
30923 cat conftest.err >&5
01cb68df
RG
30924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30925 (exit $ac_status); } &&
5ff751d6 30926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30928 (eval $ac_try) 2>&5
30929 ac_status=$?
30930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30931 (exit $ac_status); }; } &&
30932 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934 (eval $ac_try) 2>&5
30935 ac_status=$?
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); }; }; then
5294a27e 30938 eval "$as_ac_Header=yes"
01cb68df
RG
30939else
30940 echo "$as_me: failed program was:" >&5
30941sed 's/^/| /' conftest.$ac_ext >&5
30942
5294a27e 30943eval "$as_ac_Header=no"
01cb68df 30944fi
ac1cb8d3 30945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30946fi
30947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30949if test `eval echo '${'$as_ac_Header'}'` = yes; then
30950 cat >>confdefs.h <<_ACEOF
30951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30952_ACEOF
30953
30954else
30955
5294a27e
VZ
30956 wxUSE_DISPLAY="no"
30957 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30958echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30959
30960fi
30961
30962done
30963
a848cd7e
SC
30964 fi
30965fi
30966
30967
30968USE_OPENGL=0
30969if test "$wxUSE_OPENGL" = "yes"; then
30970 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30971 OPENGL_LIBS="-framework OpenGL -framework AGL"
30972 elif test "$wxUSE_MSW" = 1; then
30973 OPENGL_LIBS="-lopengl32 -lglu32"
30974 else
30975
30976
30977ac_find_includes=
30978for ac_dir in $SEARCH_INCLUDE /usr/include;
30979 do
30980 if test -f "$ac_dir/GL/gl.h"; then
30981 ac_find_includes=$ac_dir
30982 break
30983 fi
30984 done
30985
30986 if test "$ac_find_includes" != "" ; then
30987 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30988echo "${ECHO_T}found in $ac_find_includes" >&6
30989
30990 if test "x$ac_find_includes" = "x/usr/include"; then
30991 ac_path_to_include=""
30992 else
30993 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30994 result=$?
30995 if test $result = 0; then
30996 ac_path_to_include=""
30997 else
30998 ac_path_to_include=" -I$ac_find_includes"
30999 fi
31000 fi
31001
c92ad099 31002 CPPFLAGS="$ac_path_to_include $CPPFLAGS"
a848cd7e
SC
31003 fi
31004
31005 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31006 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31007echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31008if test "${ac_cv_header_GL_gl_h+set}" = set; then
31009 echo $ECHO_N "(cached) $ECHO_C" >&6
31010fi
31011echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31012echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31013else
31014 # Is the header compilable?
31015echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31016echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31017cat >conftest.$ac_ext <<_ACEOF
31018/* confdefs.h. */
31019_ACEOF
31020cat confdefs.h >>conftest.$ac_ext
31021cat >>conftest.$ac_ext <<_ACEOF
31022/* end confdefs.h. */
31023$ac_includes_default
31024#include <GL/gl.h>
31025_ACEOF
31026rm -f conftest.$ac_objext
31027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31028 (eval $ac_compile) 2>conftest.er1
a848cd7e 31029 ac_status=$?
ac1cb8d3
VS
31030 grep -v '^ *+' conftest.er1 >conftest.err
31031 rm -f conftest.er1
31032 cat conftest.err >&5
a848cd7e
SC
31033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31034 (exit $ac_status); } &&
5ff751d6 31035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31037 (eval $ac_try) 2>&5
31038 ac_status=$?
31039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31040 (exit $ac_status); }; } &&
31041 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31043 (eval $ac_try) 2>&5
31044 ac_status=$?
31045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046 (exit $ac_status); }; }; then
31047 ac_header_compiler=yes
31048else
31049 echo "$as_me: failed program was:" >&5
31050sed 's/^/| /' conftest.$ac_ext >&5
31051
31052ac_header_compiler=no
31053fi
ac1cb8d3 31054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31055echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31056echo "${ECHO_T}$ac_header_compiler" >&6
31057
31058# Is the header present?
31059echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31060echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31061cat >conftest.$ac_ext <<_ACEOF
31062/* confdefs.h. */
31063_ACEOF
31064cat confdefs.h >>conftest.$ac_ext
31065cat >>conftest.$ac_ext <<_ACEOF
31066/* end confdefs.h. */
31067#include <GL/gl.h>
31068_ACEOF
31069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31070 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31071 ac_status=$?
31072 grep -v '^ *+' conftest.er1 >conftest.err
31073 rm -f conftest.er1
31074 cat conftest.err >&5
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); } >/dev/null; then
31077 if test -s conftest.err; then
31078 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31079 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31080 else
31081 ac_cpp_err=
31082 fi
31083else
31084 ac_cpp_err=yes
31085fi
31086if test -z "$ac_cpp_err"; then
31087 ac_header_preproc=yes
31088else
31089 echo "$as_me: failed program was:" >&5
31090sed 's/^/| /' conftest.$ac_ext >&5
31091
31092 ac_header_preproc=no
31093fi
31094rm -f conftest.err conftest.$ac_ext
31095echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31096echo "${ECHO_T}$ac_header_preproc" >&6
31097
31098# So? What about this header?
ac1cb8d3
VS
31099case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31100 yes:no: )
a848cd7e
SC
31101 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31102echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31103 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31104echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31105 ac_header_preproc=yes
a848cd7e 31106 ;;
ac1cb8d3 31107 no:yes:* )
a848cd7e
SC
31108 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31109echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31110 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31111echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31112 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31113echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31114 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31115echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31116 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31117echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31118 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31119echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31120 (
31121 cat <<\_ASBOX
ac1cb8d3
VS
31122## ----------------------------------------- ##
31123## Report this to wx-dev@lists.wxwidgets.org ##
31124## ----------------------------------------- ##
a848cd7e
SC
31125_ASBOX
31126 ) |
31127 sed "s/^/$as_me: WARNING: /" >&2
31128 ;;
31129esac
31130echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31131echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31132if test "${ac_cv_header_GL_gl_h+set}" = set; then
31133 echo $ECHO_N "(cached) $ECHO_C" >&6
31134else
31135 ac_cv_header_GL_gl_h=$ac_header_preproc
31136fi
31137echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31138echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31139
31140fi
31141if test $ac_cv_header_GL_gl_h = yes; then
31142
31143 found_gl=0
31144
31145 echo "$as_me:$LINENO: checking for -lGL" >&5
31146echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31147
0ad5d837
VZ
31148 ac_find_libraries=
31149 for ac_dir in $SEARCH_LIB;
a848cd7e 31150 do
3eca31dc 31151 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31152 if test -f "$ac_dir/libGL.$ac_extension"; then
31153 ac_find_libraries=$ac_dir
31154 break 2
31155 fi
31156 done
31157 done
31158
31159 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31160 echo "$as_me:$LINENO: result: yes" >&5
31161echo "${ECHO_T}yes" >&6
31162
a848cd7e 31163
0ad5d837 31164 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31165 ac_path_to_link=""
31166 else
0ad5d837
VZ
31167 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31168 result=$?
31169 if test $result = 0; then
31170 ac_path_to_link=""
31171 else
31172 ac_path_to_link=" -L$ac_find_libraries"
31173 fi
a848cd7e
SC
31174 fi
31175
31176 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31177 LDFLAGS_GL="$ac_path_to_link"
31178 fi
31179
69120ee4
VZ
31180 echo "$as_me:$LINENO: checking for -lGLU" >&5
31181echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31182
0ad5d837
VZ
31183 ac_find_libraries=
31184 for ac_dir in $SEARCH_LIB;
31185 do
31186 for ac_extension in a so sl dylib dll.a; do
31187 if test -f "$ac_dir/libGLU.$ac_extension"; then
31188 ac_find_libraries=$ac_dir
31189 break 2
31190 fi
31191 done
31192 done
31193
a848cd7e
SC
31194 if test "$ac_find_libraries" != "" ; then
31195
0ad5d837 31196 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31197 ac_path_to_link=""
31198 else
0ad5d837
VZ
31199 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31200 result=$?
31201 if test $result = 0; then
31202 ac_path_to_link=""
31203 else
31204 ac_path_to_link=" -L$ac_find_libraries"
31205 fi
a848cd7e
SC
31206 fi
31207
31208 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31209 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31210 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31211 fi
31212
31213 found_gl=1
31214 OPENGL_LIBS="-lGL -lGLU"
31215 echo "$as_me:$LINENO: result: yes" >&5
31216echo "${ECHO_T}yes" >&6
69120ee4
VZ
31217 else
31218 echo "$as_me:$LINENO: result: no" >&5
31219echo "${ECHO_T}no" >&6
a848cd7e 31220 fi
69120ee4
VZ
31221 else
31222 echo "$as_me:$LINENO: result: no" >&5
31223echo "${ECHO_T}no" >&6
a848cd7e
SC
31224 fi
31225
31226 if test "$found_gl" != 1; then
a848cd7e
SC
31227 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31228echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31229
0ad5d837
VZ
31230 ac_find_libraries=
31231 for ac_dir in $SEARCH_LIB;
a848cd7e 31232 do
3eca31dc 31233 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31234 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31235 ac_find_libraries=$ac_dir
31236 break 2
31237 fi
31238 done
31239 done
31240
31241 if test "$ac_find_libraries" != "" ; then
31242
0ad5d837 31243 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31244 ac_path_to_link=""
31245 else
0ad5d837
VZ
31246 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31247 result=$?
31248 if test $result = 0; then
31249 ac_path_to_link=""
31250 else
31251 ac_path_to_link=" -L$ac_find_libraries"
31252 fi
a848cd7e
SC
31253 fi
31254
31255 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31256 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31257 echo "$as_me:$LINENO: result: yes" >&5
31258echo "${ECHO_T}yes" >&6
31259 else
31260 echo "$as_me:$LINENO: result: no" >&5
31261echo "${ECHO_T}no" >&6
31262 fi
31263 fi
31264
31265fi
31266
31267
31268
31269 if test "x$OPENGL_LIBS" = "x"; then
31270 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31271echo "$as_me: error: OpenGL libraries not available" >&2;}
31272 { (exit 1); exit 1; }; }
31273 fi
31274 fi
31275
31276 if test "$wxUSE_OPENGL" = "yes"; then
31277 USE_OPENGL=1
31278 cat >>confdefs.h <<\_ACEOF
31279#define wxUSE_OPENGL 1
31280_ACEOF
31281
31282 cat >>confdefs.h <<\_ACEOF
31283#define wxUSE_GLCANVAS 1
31284_ACEOF
31285
31286 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31287 fi
31288fi
31289
a848cd7e
SC
31290
31291if test -n "$TOOLKIT" ; then
31292 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31293fi
31294
a848cd7e
SC
31295
31296
31297if test "$wxUSE_SHARED" = "yes"; then
31298 case "${host}" in
31299 *-pc-msdosdjgpp )
31300 wxUSE_SHARED=no
31301 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31302echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31303 ;;
31304 esac
31305fi
31306
a848cd7e 31307if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31308
31309
31310 found_versioning=no
31311
31312
31313 if test $found_versioning = no ; then
31314 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31315echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31316if test "${wx_cv_version_script+set}" = set; then
31317 echo $ECHO_N "(cached) $ECHO_C" >&6
31318else
31319
31320 echo "VER_1 { *; };" >conftest.sym
31321 echo "int main() { return 0; }" >conftest.cpp
31322
31323 if { ac_try='
31324 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31325 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31327 (eval $ac_try) 2>&5
31328 ac_status=$?
31329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31330 (exit $ac_status); }; } ; then
31331 if test -s conftest.stderr ; then
31332 wx_cv_version_script=no
31333 else
31334 wx_cv_version_script=yes
31335 fi
31336 else
31337 wx_cv_version_script=no
31338 fi
e5d4b470
MW
31339
31340 if test $wx_cv_version_script = yes
31341 then
31342 echo "struct B { virtual ~B() { } }; \
31343 struct D : public B { }; \
31344 void F() { D d; }" > conftest.cpp
31345
31346 if { ac_try='
31347 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31348 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31350 (eval $ac_try) 2>&5
31351 ac_status=$?
31352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353 (exit $ac_status); }; } &&
31354 { ac_try='
31355 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31356 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31358 (eval $ac_try) 2>&5
31359 ac_status=$?
31360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31361 (exit $ac_status); }; }
31362 then
31363 if { ac_try='
31364 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31365 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31367 (eval $ac_try) 2>&5
31368 ac_status=$?
31369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31370 (exit $ac_status); }; }
31371 then
31372 wx_cv_version_script=yes
31373 else
31374 wx_cv_version_script=no
31375 fi
31376 fi
31377 fi
31378
a848cd7e 31379 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31380 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31381
31382fi
31383echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31384echo "${ECHO_T}$wx_cv_version_script" >&6
31385 if test $wx_cv_version_script = yes ; then
31386 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31387 fi
31388 fi
31389
31390
31391 case "${host}" in
31392 *-*-linux* | *-*-gnu* )
31393 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31394 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31395 ;;
a848cd7e
SC
31396
31397 *-*-solaris2* )
31398 if test "$GCC" = yes ; then
c92ad099 31399 CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
a848cd7e
SC
31400
31401 saveLdflags="$LDFLAGS"
31402 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31403 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31404echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31405 cat >conftest.$ac_ext <<_ACEOF
31406/* confdefs.h. */
31407_ACEOF
31408cat confdefs.h >>conftest.$ac_ext
31409cat >>conftest.$ac_ext <<_ACEOF
31410/* end confdefs.h. */
31411
31412int
31413main ()
31414{
31415
31416 ;
31417 return 0;
31418}
31419_ACEOF
31420rm -f conftest.$ac_objext conftest$ac_exeext
31421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31422 (eval $ac_link) 2>conftest.er1
a848cd7e 31423 ac_status=$?
ac1cb8d3
VS
31424 grep -v '^ *+' conftest.er1 >conftest.err
31425 rm -f conftest.er1
31426 cat conftest.err >&5
a848cd7e
SC
31427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31428 (exit $ac_status); } &&
5ff751d6 31429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31431 (eval $ac_try) 2>&5
31432 ac_status=$?
31433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31434 (exit $ac_status); }; } &&
31435 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31437 (eval $ac_try) 2>&5
31438 ac_status=$?
31439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31440 (exit $ac_status); }; }; then
31441
31442 echo "$as_me:$LINENO: result: yes" >&5
31443echo "${ECHO_T}yes" >&6
31444 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31445 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31446
31447else
31448 echo "$as_me: failed program was:" >&5
31449sed 's/^/| /' conftest.$ac_ext >&5
31450
31451
31452 echo "$as_me:$LINENO: result: no" >&5
31453echo "${ECHO_T}no" >&6
31454 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31455echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31456 LDFLAGS="$saveLdflags -Wl,-R,/"
31457 cat >conftest.$ac_ext <<_ACEOF
31458/* confdefs.h. */
31459_ACEOF
31460cat confdefs.h >>conftest.$ac_ext
31461cat >>conftest.$ac_ext <<_ACEOF
31462/* end confdefs.h. */
31463
31464int
31465main ()
31466{
31467
31468 ;
31469 return 0;
31470}
31471_ACEOF
31472rm -f conftest.$ac_objext conftest$ac_exeext
31473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31474 (eval $ac_link) 2>conftest.er1
a848cd7e 31475 ac_status=$?
ac1cb8d3
VS
31476 grep -v '^ *+' conftest.er1 >conftest.err
31477 rm -f conftest.er1
31478 cat conftest.err >&5
a848cd7e
SC
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); } &&
5ff751d6 31481 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31483 (eval $ac_try) 2>&5
31484 ac_status=$?
31485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486 (exit $ac_status); }; } &&
31487 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31489 (eval $ac_try) 2>&5
31490 ac_status=$?
31491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31492 (exit $ac_status); }; }; then
31493
ffa0583f 31494 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31495echo "${ECHO_T}yes" >&6
ffa0583f
RL
31496 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31497 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31498
a848cd7e
SC
31499else
31500 echo "$as_me: failed program was:" >&5
31501sed 's/^/| /' conftest.$ac_ext >&5
31502
31503
31504 echo "$as_me:$LINENO: result: no" >&5
31505echo "${ECHO_T}no" >&6
31506
31507fi
ac1cb8d3
VS
31508rm -f conftest.err conftest.$ac_objext \
31509 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31510
31511fi
ac1cb8d3
VS
31512rm -f conftest.err conftest.$ac_objext \
31513 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31514 LDFLAGS="$saveLdflags"
31515 else
a848cd7e 31516 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31517 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31518 fi
31519 ;;
31520
cfda0ea8 31521 *-*-darwin* )
0caebc27
MW
31522 install_name_tool=`which install_name_tool`
31523 if test "$install_name_tool" -a -x "$install_name_tool"; then
31524 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31525 cat <<EOF >change-install-names
a848cd7e
SC
31526#!/bin/sh
31527libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31528inst_cmd="install_name_tool "
31529for i in \${libnames} ; do
31530 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31531done
31532\${inst_cmd} \${3}
31533EOF
0caebc27
MW
31534 chmod +x change-install-names
31535 fi
a848cd7e
SC
31536 ;;
31537
31538 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
31539 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
31540 ;;
a848cd7e 31541
81f90336
MW
31542 *-*-hpux* )
31543 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31544 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 31545 ;;
81f90336 31546
a848cd7e 31547 esac
ceec2216 31548
ffa0583f
RL
31549 if test $wxUSE_RPATH = "no"; then
31550 SAMPLES_RPATH_FLAG=''
31551 SAMPLES_RPATH_POSTLINK=''
31552 WXCONFIG_RPATH=''
31553 fi
31554
31555 SHARED=1
31556
31557else
31558
ceec2216
RL
31559 config_linkage_component="-static"
31560 SHARED=0
ffa0583f 31561
ceec2216 31562fi
a848cd7e 31563
a848cd7e 31564
ceec2216
RL
31565UNICODE=0
31566lib_unicode_suffix=
31567WX_CHARTYPE="ansi"
31568if test "$wxUSE_UNICODE" = "yes"; then
31569 lib_unicode_suffix=u
31570 WX_CHARTYPE="unicode"
31571 UNICODE=1
a848cd7e
SC
31572fi
31573
ceec2216
RL
31574lib_debug_suffix=
31575WX_DEBUGTYPE="release"
31576DEBUG_FLAG=0
31577if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31578 lib_debug_suffix=d
31579 WX_DEBUGTYPE="debug"
31580 DEBUG_FLAG=1
31581fi
a848cd7e 31582
ceec2216
RL
31583WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31584WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31585
ceec2216
RL
31586DEBUG_INFO=0
31587if test "$wxUSE_DEBUG_INFO" = "yes"; then
31588 DEBUG_INFO=1
31589fi
a848cd7e 31590
ceec2216 31591WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31592
ceec2216 31593TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31594
ceec2216 31595TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31596
ceec2216
RL
31597if test "$cross_compiling" = "yes"; then
31598 HOST_SUFFIX="-$host_alias"
31599 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31600 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31601fi
31602
dd21ced8 31603WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31604if test "${TOOLKIT_DIR}" = "os2"; then
31605 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31606else
31607 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31608fi
ceec2216
RL
31609
31610
31611
1d1af5ea
DE
31612if test "$wxUSE_COCOA" = 1; then
31613
31614
31615 ac_ext=c
31616ac_cpp='$CPP $CPPFLAGS'
31617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31619ac_compiler_gnu=$ac_cv_c_compiler_gnu
31620
31621ac_ext=m
31622
31623 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31624echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31625 cat >conftest.$ac_ext <<_ACEOF
31626/* confdefs.h. */
31627_ACEOF
31628cat confdefs.h >>conftest.$ac_ext
31629cat >>conftest.$ac_ext <<_ACEOF
31630/* end confdefs.h. */
31631#include <AppKit/NSEvent.h>
31632#include <CoreFoundation/CoreFoundation.h>
31633
31634int
31635main ()
31636{
31637
31638 ;
31639 return 0;
31640}
31641_ACEOF
31642rm -f conftest.$ac_objext
31643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31644 (eval $ac_compile) 2>conftest.er1
31645 ac_status=$?
31646 grep -v '^ *+' conftest.er1 >conftest.err
31647 rm -f conftest.er1
31648 cat conftest.err >&5
31649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31650 (exit $ac_status); } &&
5ff751d6 31651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31653 (eval $ac_try) 2>&5
31654 ac_status=$?
31655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656 (exit $ac_status); }; } &&
31657 { ac_try='test -s conftest.$ac_objext'
31658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31659 (eval $ac_try) 2>&5
31660 ac_status=$?
31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31662 (exit $ac_status); }; }; then
31663 echo "$as_me:$LINENO: result: no" >&5
31664echo "${ECHO_T}no" >&6
31665else
31666 echo "$as_me: failed program was:" >&5
31667sed 's/^/| /' conftest.$ac_ext >&5
31668
31669echo "$as_me:$LINENO: result: yes" >&5
31670echo "${ECHO_T}yes" >&6
31671 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31672echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31673 cat >conftest.$ac_ext <<_ACEOF
31674/* confdefs.h. */
31675_ACEOF
31676cat confdefs.h >>conftest.$ac_ext
31677cat >>conftest.$ac_ext <<_ACEOF
31678/* end confdefs.h. */
31679#define __Point__ 1
31680#include <AppKit/NSEvent.h>
31681#include <CoreFoundation/CoreFoundation.h>
31682
31683int
31684main ()
31685{
31686
31687 ;
31688 return 0;
31689}
31690_ACEOF
31691rm -f conftest.$ac_objext
31692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31693 (eval $ac_compile) 2>conftest.er1
31694 ac_status=$?
31695 grep -v '^ *+' conftest.er1 >conftest.err
31696 rm -f conftest.er1
31697 cat conftest.err >&5
31698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31699 (exit $ac_status); } &&
5ff751d6 31700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31702 (eval $ac_try) 2>&5
31703 ac_status=$?
31704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31705 (exit $ac_status); }; } &&
31706 { ac_try='test -s conftest.$ac_objext'
31707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31708 (eval $ac_try) 2>&5
31709 ac_status=$?
31710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31711 (exit $ac_status); }; }; then
31712 echo "$as_me:$LINENO: result: yes" >&5
31713echo "${ECHO_T}yes" >&6
31714 cat >>confdefs.h <<\_ACEOF
31715#define __Point__ 1
31716_ACEOF
31717
31718
31719else
31720 echo "$as_me: failed program was:" >&5
31721sed 's/^/| /' conftest.$ac_ext >&5
31722
31723{ { echo "$as_me:$LINENO: error: no
31724See \`config.log' for more details." >&5
31725echo "$as_me: error: no
31726See \`config.log' for more details." >&2;}
31727 { (exit 1); exit 1; }; }
31728
31729fi
31730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31731
31732fi
31733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31734 ac_ext=c
31735ac_cpp='$CPP $CPPFLAGS'
31736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31738ac_compiler_gnu=$ac_cv_c_compiler_gnu
31739
31740fi
31741
a848cd7e 31742if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31743 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31744 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31745
a848cd7e 31746 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31747
31748 # Extract the first word of "Rez", so it can be a program name with args.
31749set dummy Rez; ac_word=$2
31750echo "$as_me:$LINENO: checking for $ac_word" >&5
31751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 31752if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
31753 echo $ECHO_N "(cached) $ECHO_C" >&6
31754else
8ced02f6
DE
31755 if test -n "$REZ"; then
31756 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
31757else
31758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31759for as_dir in $PATH
31760do
31761 IFS=$as_save_IFS
31762 test -z "$as_dir" && as_dir=.
31763 for ac_exec_ext in '' $ac_executable_extensions; do
31764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 31765 ac_cv_prog_REZ="Rez"
a848cd7e
SC
31766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31767 break 2
31768 fi
31769done
31770done
31771
8ced02f6 31772 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
31773fi
31774fi
8ced02f6
DE
31775REZ=$ac_cv_prog_REZ
31776if test -n "$REZ"; then
31777 echo "$as_me:$LINENO: result: $REZ" >&5
31778echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
31779else
31780 echo "$as_me:$LINENO: result: no" >&5
31781echo "${ECHO_T}no" >&6
31782fi
31783
31784 # Extract the first word of "DeRez", so it can be a program name with args.
31785set dummy DeRez; ac_word=$2
31786echo "$as_me:$LINENO: checking for $ac_word" >&5
31787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31788if test "${ac_cv_prog_DEREZ+set}" = set; then
31789 echo $ECHO_N "(cached) $ECHO_C" >&6
31790else
31791 if test -n "$DEREZ"; then
31792 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31793else
31794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31795for as_dir in $PATH
31796do
31797 IFS=$as_save_IFS
31798 test -z "$as_dir" && as_dir=.
31799 for ac_exec_ext in '' $ac_executable_extensions; do
31800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31801 ac_cv_prog_DEREZ="DeRez"
31802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31803 break 2
31804 fi
31805done
31806done
31807
31808 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31809fi
31810fi
31811DEREZ=$ac_cv_prog_DEREZ
31812if test -n "$DEREZ"; then
31813 echo "$as_me:$LINENO: result: $DEREZ" >&5
31814echo "${ECHO_T}$DEREZ" >&6
31815else
31816 echo "$as_me:$LINENO: result: no" >&5
31817echo "${ECHO_T}no" >&6
31818fi
31819
31820 # Extract the first word of "SetFile", so it can be a program name with args.
31821set dummy SetFile; ac_word=$2
31822echo "$as_me:$LINENO: checking for $ac_word" >&5
31823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31824if test "${ac_cv_prog_SETFILE+set}" = set; then
31825 echo $ECHO_N "(cached) $ECHO_C" >&6
31826else
31827 if test -n "$SETFILE"; then
31828 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31829else
31830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31831for as_dir in $PATH
31832do
31833 IFS=$as_save_IFS
31834 test -z "$as_dir" && as_dir=.
31835 for ac_exec_ext in '' $ac_executable_extensions; do
31836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31837 ac_cv_prog_SETFILE="SetFile"
31838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31839 break 2
31840 fi
31841done
31842done
31843
31844 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31845fi
31846fi
31847SETFILE=$ac_cv_prog_SETFILE
31848if test -n "$SETFILE"; then
31849 echo "$as_me:$LINENO: result: $SETFILE" >&5
31850echo "${ECHO_T}$SETFILE" >&6
31851else
31852 echo "$as_me:$LINENO: result: no" >&5
31853echo "${ECHO_T}no" >&6
31854fi
31855
31856
31857 MACSETFILE="\$(SETFILE)"
31858
31859 if test "$wxUSE_MAC" = 1; then
8ced02f6 31860 POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
004ee6da
RL
31861 RESCOMP="$REZ"
31862 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31863 else
004ee6da
RL
31864 POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
31865 RESCOMP="echo -n \| $REZ"
31866 WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
a848cd7e 31867 fi
004ee6da 31868
a848cd7e 31869else
ffa0583f 31870 MACSETFILE="@true"
a848cd7e 31871
8ced02f6 31872 if test "$wxUSE_PM" = 1; then
004ee6da
RL
31873 RESCOMP="emxbind"
31874 WXCONFIG_RESFLAGS="-ep"
31875
31876 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
a848cd7e 31877 else
8ced02f6 31878 POSTLINK_COMMAND="@true"
a848cd7e 31879 fi
004ee6da 31880
a848cd7e
SC
31881fi
31882
31883
31884
31885echo "$as_me:$LINENO: checking for mode_t" >&5
31886echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31887if test "${ac_cv_type_mode_t+set}" = set; then
31888 echo $ECHO_N "(cached) $ECHO_C" >&6
31889else
31890 cat >conftest.$ac_ext <<_ACEOF
31891/* confdefs.h. */
31892_ACEOF
31893cat confdefs.h >>conftest.$ac_ext
31894cat >>conftest.$ac_ext <<_ACEOF
31895/* end confdefs.h. */
31896$ac_includes_default
31897int
31898main ()
31899{
31900if ((mode_t *) 0)
31901 return 0;
31902if (sizeof (mode_t))
31903 return 0;
31904 ;
31905 return 0;
31906}
31907_ACEOF
31908rm -f conftest.$ac_objext
31909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31910 (eval $ac_compile) 2>conftest.er1
a848cd7e 31911 ac_status=$?
ac1cb8d3
VS
31912 grep -v '^ *+' conftest.er1 >conftest.err
31913 rm -f conftest.er1
31914 cat conftest.err >&5
a848cd7e
SC
31915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31916 (exit $ac_status); } &&
5ff751d6 31917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31919 (eval $ac_try) 2>&5
31920 ac_status=$?
31921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31922 (exit $ac_status); }; } &&
31923 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31925 (eval $ac_try) 2>&5
31926 ac_status=$?
31927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31928 (exit $ac_status); }; }; then
31929 ac_cv_type_mode_t=yes
31930else
31931 echo "$as_me: failed program was:" >&5
31932sed 's/^/| /' conftest.$ac_ext >&5
31933
31934ac_cv_type_mode_t=no
31935fi
ac1cb8d3 31936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31937fi
31938echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31939echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31940if test $ac_cv_type_mode_t = yes; then
31941 :
31942else
31943
31944cat >>confdefs.h <<_ACEOF
31945#define mode_t int
31946_ACEOF
31947
31948fi
31949
31950echo "$as_me:$LINENO: checking for off_t" >&5
31951echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31952if test "${ac_cv_type_off_t+set}" = set; then
31953 echo $ECHO_N "(cached) $ECHO_C" >&6
31954else
31955 cat >conftest.$ac_ext <<_ACEOF
31956/* confdefs.h. */
31957_ACEOF
31958cat confdefs.h >>conftest.$ac_ext
31959cat >>conftest.$ac_ext <<_ACEOF
31960/* end confdefs.h. */
31961$ac_includes_default
31962int
31963main ()
31964{
31965if ((off_t *) 0)
31966 return 0;
31967if (sizeof (off_t))
31968 return 0;
31969 ;
31970 return 0;
31971}
31972_ACEOF
31973rm -f conftest.$ac_objext
31974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31975 (eval $ac_compile) 2>conftest.er1
a848cd7e 31976 ac_status=$?
ac1cb8d3
VS
31977 grep -v '^ *+' conftest.er1 >conftest.err
31978 rm -f conftest.er1
31979 cat conftest.err >&5
a848cd7e
SC
31980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981 (exit $ac_status); } &&
5ff751d6 31982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31984 (eval $ac_try) 2>&5
31985 ac_status=$?
31986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31987 (exit $ac_status); }; } &&
31988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31990 (eval $ac_try) 2>&5
31991 ac_status=$?
31992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993 (exit $ac_status); }; }; then
31994 ac_cv_type_off_t=yes
31995else
31996 echo "$as_me: failed program was:" >&5
31997sed 's/^/| /' conftest.$ac_ext >&5
31998
31999ac_cv_type_off_t=no
32000fi
ac1cb8d3 32001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32002fi
32003echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32004echo "${ECHO_T}$ac_cv_type_off_t" >&6
32005if test $ac_cv_type_off_t = yes; then
32006 :
32007else
32008
32009cat >>confdefs.h <<_ACEOF
32010#define off_t long
32011_ACEOF
32012
32013fi
32014
32015echo "$as_me:$LINENO: checking for pid_t" >&5
32016echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32017if test "${ac_cv_type_pid_t+set}" = set; then
32018 echo $ECHO_N "(cached) $ECHO_C" >&6
32019else
32020 cat >conftest.$ac_ext <<_ACEOF
32021/* confdefs.h. */
32022_ACEOF
32023cat confdefs.h >>conftest.$ac_ext
32024cat >>conftest.$ac_ext <<_ACEOF
32025/* end confdefs.h. */
32026$ac_includes_default
32027int
32028main ()
32029{
32030if ((pid_t *) 0)
32031 return 0;
32032if (sizeof (pid_t))
32033 return 0;
32034 ;
32035 return 0;
32036}
32037_ACEOF
32038rm -f conftest.$ac_objext
32039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32040 (eval $ac_compile) 2>conftest.er1
a848cd7e 32041 ac_status=$?
ac1cb8d3
VS
32042 grep -v '^ *+' conftest.er1 >conftest.err
32043 rm -f conftest.er1
32044 cat conftest.err >&5
a848cd7e
SC
32045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32046 (exit $ac_status); } &&
5ff751d6 32047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32049 (eval $ac_try) 2>&5
32050 ac_status=$?
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); }; } &&
32053 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32055 (eval $ac_try) 2>&5
32056 ac_status=$?
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); }; }; then
32059 ac_cv_type_pid_t=yes
32060else
32061 echo "$as_me: failed program was:" >&5
32062sed 's/^/| /' conftest.$ac_ext >&5
32063
32064ac_cv_type_pid_t=no
32065fi
ac1cb8d3 32066rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32067fi
32068echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32069echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32070if test $ac_cv_type_pid_t = yes; then
32071 :
32072else
32073
32074cat >>confdefs.h <<_ACEOF
32075#define pid_t int
32076_ACEOF
32077
32078fi
32079
32080echo "$as_me:$LINENO: checking for size_t" >&5
32081echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32082if test "${ac_cv_type_size_t+set}" = set; then
32083 echo $ECHO_N "(cached) $ECHO_C" >&6
32084else
32085 cat >conftest.$ac_ext <<_ACEOF
32086/* confdefs.h. */
32087_ACEOF
32088cat confdefs.h >>conftest.$ac_ext
32089cat >>conftest.$ac_ext <<_ACEOF
32090/* end confdefs.h. */
32091$ac_includes_default
32092int
32093main ()
32094{
32095if ((size_t *) 0)
32096 return 0;
32097if (sizeof (size_t))
32098 return 0;
32099 ;
32100 return 0;
32101}
32102_ACEOF
32103rm -f conftest.$ac_objext
32104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32105 (eval $ac_compile) 2>conftest.er1
a848cd7e 32106 ac_status=$?
ac1cb8d3
VS
32107 grep -v '^ *+' conftest.er1 >conftest.err
32108 rm -f conftest.er1
32109 cat conftest.err >&5
a848cd7e
SC
32110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32111 (exit $ac_status); } &&
5ff751d6 32112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32114 (eval $ac_try) 2>&5
32115 ac_status=$?
32116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); }; } &&
32118 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32120 (eval $ac_try) 2>&5
32121 ac_status=$?
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); }; }; then
32124 ac_cv_type_size_t=yes
32125else
32126 echo "$as_me: failed program was:" >&5
32127sed 's/^/| /' conftest.$ac_ext >&5
32128
32129ac_cv_type_size_t=no
32130fi
ac1cb8d3 32131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32132fi
32133echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32134echo "${ECHO_T}$ac_cv_type_size_t" >&6
32135if test $ac_cv_type_size_t = yes; then
32136 :
32137else
32138
32139cat >>confdefs.h <<_ACEOF
32140#define size_t unsigned
32141_ACEOF
32142
32143fi
32144
32145echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32146echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32147if test "${ac_cv_type_uid_t+set}" = set; then
32148 echo $ECHO_N "(cached) $ECHO_C" >&6
32149else
32150 cat >conftest.$ac_ext <<_ACEOF
32151/* confdefs.h. */
32152_ACEOF
32153cat confdefs.h >>conftest.$ac_ext
32154cat >>conftest.$ac_ext <<_ACEOF
32155/* end confdefs.h. */
32156#include <sys/types.h>
32157
32158_ACEOF
32159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32160 $EGREP "uid_t" >/dev/null 2>&1; then
32161 ac_cv_type_uid_t=yes
32162else
32163 ac_cv_type_uid_t=no
32164fi
32165rm -f conftest*
32166
32167fi
32168echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32169echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32170if test $ac_cv_type_uid_t = no; then
32171
32172cat >>confdefs.h <<\_ACEOF
32173#define uid_t int
32174_ACEOF
32175
32176
32177cat >>confdefs.h <<\_ACEOF
32178#define gid_t int
32179_ACEOF
32180
32181fi
32182
32183
d51253e8
RL
32184echo "$as_me:$LINENO: checking for ssize_t" >&5
32185echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32186if test "${ac_cv_type_ssize_t+set}" = set; then
32187 echo $ECHO_N "(cached) $ECHO_C" >&6
32188else
32189 cat >conftest.$ac_ext <<_ACEOF
32190/* confdefs.h. */
32191_ACEOF
32192cat confdefs.h >>conftest.$ac_ext
32193cat >>conftest.$ac_ext <<_ACEOF
32194/* end confdefs.h. */
32195$ac_includes_default
32196int
32197main ()
32198{
32199if ((ssize_t *) 0)
32200 return 0;
32201if (sizeof (ssize_t))
32202 return 0;
32203 ;
32204 return 0;
32205}
32206_ACEOF
32207rm -f conftest.$ac_objext
32208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32209 (eval $ac_compile) 2>conftest.er1
32210 ac_status=$?
32211 grep -v '^ *+' conftest.er1 >conftest.err
32212 rm -f conftest.er1
32213 cat conftest.err >&5
32214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32215 (exit $ac_status); } &&
5ff751d6 32216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
32217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32218 (eval $ac_try) 2>&5
32219 ac_status=$?
32220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32221 (exit $ac_status); }; } &&
32222 { ac_try='test -s conftest.$ac_objext'
32223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32224 (eval $ac_try) 2>&5
32225 ac_status=$?
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); }; }; then
32228 ac_cv_type_ssize_t=yes
32229else
32230 echo "$as_me: failed program was:" >&5
32231sed 's/^/| /' conftest.$ac_ext >&5
32232
32233ac_cv_type_ssize_t=no
32234fi
32235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32236fi
32237echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32238echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32239if test $ac_cv_type_ssize_t = yes; then
32240
32241cat >>confdefs.h <<_ACEOF
32242#define HAVE_SSIZE_T 1
32243_ACEOF
32244
32245
32246fi
32247
32248
a848cd7e
SC
32249
32250
32251ac_ext=cc
32252ac_cpp='$CXXCPP $CPPFLAGS'
32253ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32254ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32255ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32256
32257echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32258echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32259if test "${wx_cv_size_t_is_uint+set}" = set; then
32260 echo $ECHO_N "(cached) $ECHO_C" >&6
32261else
32262
32263 cat >conftest.$ac_ext <<_ACEOF
32264/* confdefs.h. */
32265_ACEOF
32266cat confdefs.h >>conftest.$ac_ext
32267cat >>conftest.$ac_ext <<_ACEOF
32268/* end confdefs.h. */
32269#include <stddef.h>
32270int
32271main ()
32272{
32273
32274 return 0; }
32275
32276 struct Foo { void foo(size_t); void foo(unsigned int); };
32277
32278 int bar() {
32279
32280 ;
32281 return 0;
32282}
32283_ACEOF
32284rm -f conftest.$ac_objext
32285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32286 (eval $ac_compile) 2>conftest.er1
a848cd7e 32287 ac_status=$?
ac1cb8d3
VS
32288 grep -v '^ *+' conftest.er1 >conftest.err
32289 rm -f conftest.er1
32290 cat conftest.err >&5
a848cd7e
SC
32291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32292 (exit $ac_status); } &&
5ff751d6 32293 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32295 (eval $ac_try) 2>&5
32296 ac_status=$?
32297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32298 (exit $ac_status); }; } &&
32299 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32301 (eval $ac_try) 2>&5
32302 ac_status=$?
32303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32304 (exit $ac_status); }; }; then
32305 wx_cv_size_t_is_uint=no
32306else
32307 echo "$as_me: failed program was:" >&5
32308sed 's/^/| /' conftest.$ac_ext >&5
32309
32310wx_cv_size_t_is_uint=yes
32311
32312fi
ac1cb8d3 32313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32314
32315
32316fi
32317echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32318echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32319
32320if test "$wx_cv_size_t_is_uint" = "yes"; then
32321 cat >>confdefs.h <<\_ACEOF
32322#define wxSIZE_T_IS_UINT 1
32323_ACEOF
32324
32325else
32326 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32327echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32328if test "${wx_cv_size_t_is_ulong+set}" = set; then
32329 echo $ECHO_N "(cached) $ECHO_C" >&6
32330else
32331 cat >conftest.$ac_ext <<_ACEOF
32332/* confdefs.h. */
32333_ACEOF
32334cat confdefs.h >>conftest.$ac_ext
32335cat >>conftest.$ac_ext <<_ACEOF
32336/* end confdefs.h. */
32337#include <stddef.h>
32338int
32339main ()
32340{
32341
32342 return 0; }
32343
32344 struct Foo { void foo(size_t); void foo(unsigned long); };
32345
32346 int bar() {
32347
32348 ;
32349 return 0;
32350}
32351_ACEOF
32352rm -f conftest.$ac_objext
32353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32354 (eval $ac_compile) 2>conftest.er1
a848cd7e 32355 ac_status=$?
ac1cb8d3
VS
32356 grep -v '^ *+' conftest.er1 >conftest.err
32357 rm -f conftest.er1
32358 cat conftest.err >&5
a848cd7e
SC
32359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32360 (exit $ac_status); } &&
5ff751d6 32361 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32363 (eval $ac_try) 2>&5
32364 ac_status=$?
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); }; } &&
32367 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32369 (eval $ac_try) 2>&5
32370 ac_status=$?
32371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); }; }; then
32373 wx_cv_size_t_is_ulong=no
32374else
32375 echo "$as_me: failed program was:" >&5
32376sed 's/^/| /' conftest.$ac_ext >&5
32377
32378wx_cv_size_t_is_ulong=yes
32379
32380fi
ac1cb8d3 32381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32382
32383fi
32384echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32385echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32386
32387 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32388 cat >>confdefs.h <<\_ACEOF
32389#define wxSIZE_T_IS_ULONG 1
32390_ACEOF
32391
32392 fi
32393fi
32394
32395ac_ext=c
32396ac_cpp='$CPP $CPPFLAGS'
32397ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32398ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32399ac_compiler_gnu=$ac_cv_c_compiler_gnu
32400
32401
32402
32403echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32404echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32405if test "${wx_cv_struct_pw_gecos+set}" = set; then
32406 echo $ECHO_N "(cached) $ECHO_C" >&6
32407else
32408
32409 cat >conftest.$ac_ext <<_ACEOF
32410/* confdefs.h. */
32411_ACEOF
32412cat confdefs.h >>conftest.$ac_ext
32413cat >>conftest.$ac_ext <<_ACEOF
32414/* end confdefs.h. */
32415#include <pwd.h>
32416int
32417main ()
32418{
32419
32420 char *p;
32421 struct passwd *pw;
32422 p = pw->pw_gecos;
32423
32424 ;
32425 return 0;
32426}
32427_ACEOF
32428rm -f conftest.$ac_objext
32429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32430 (eval $ac_compile) 2>conftest.er1
a848cd7e 32431 ac_status=$?
ac1cb8d3
VS
32432 grep -v '^ *+' conftest.er1 >conftest.err
32433 rm -f conftest.er1
32434 cat conftest.err >&5
a848cd7e
SC
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); } &&
5ff751d6 32437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32439 (eval $ac_try) 2>&5
32440 ac_status=$?
32441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32442 (exit $ac_status); }; } &&
32443 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32445 (eval $ac_try) 2>&5
32446 ac_status=$?
32447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448 (exit $ac_status); }; }; then
32449
32450 wx_cv_struct_pw_gecos=yes
32451
32452else
32453 echo "$as_me: failed program was:" >&5
32454sed 's/^/| /' conftest.$ac_ext >&5
32455
32456
32457 wx_cv_struct_pw_gecos=no
32458
32459
32460fi
ac1cb8d3 32461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32462
32463
32464fi
32465echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32466echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32467
32468if test "$wx_cv_struct_pw_gecos" = "yes"; then
32469 cat >>confdefs.h <<\_ACEOF
32470#define HAVE_PW_GECOS 1
32471_ACEOF
32472
32473fi
32474
32475
47a7e797 32476if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32477 cat >>confdefs.h <<\_ACEOF
32478#define wxUSE_WCHAR_T 1
32479_ACEOF
32480
32481
32482 WCSLEN_FOUND=0
32483 WCHAR_LINK=
32484
32485for ac_func in wcslen
32486do
32487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32488echo "$as_me:$LINENO: checking for $ac_func" >&5
32489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32490if eval "test \"\${$as_ac_var+set}\" = set"; then
32491 echo $ECHO_N "(cached) $ECHO_C" >&6
32492else
32493 cat >conftest.$ac_ext <<_ACEOF
32494/* confdefs.h. */
32495_ACEOF
32496cat confdefs.h >>conftest.$ac_ext
32497cat >>conftest.$ac_ext <<_ACEOF
32498/* end confdefs.h. */
ac1cb8d3
VS
32499/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32501#define $ac_func innocuous_$ac_func
32502
a848cd7e
SC
32503/* System header to define __stub macros and hopefully few prototypes,
32504 which can conflict with char $ac_func (); below.
32505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32506 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32507
a848cd7e
SC
32508#ifdef __STDC__
32509# include <limits.h>
32510#else
32511# include <assert.h>
32512#endif
ac1cb8d3
VS
32513
32514#undef $ac_func
32515
a848cd7e
SC
32516/* Override any gcc2 internal prototype to avoid an error. */
32517#ifdef __cplusplus
32518extern "C"
32519{
32520#endif
32521/* We use char because int might match the return type of a gcc2
32522 builtin and then its argument prototype would still apply. */
32523char $ac_func ();
32524/* The GNU C library defines this for functions which it implements
32525 to always fail with ENOSYS. Some functions are actually named
32526 something starting with __ and the normal name is an alias. */
32527#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32528choke me
32529#else
32530char (*f) () = $ac_func;
32531#endif
32532#ifdef __cplusplus
32533}
32534#endif
32535
32536int
32537main ()
32538{
32539return f != $ac_func;
32540 ;
32541 return 0;
32542}
32543_ACEOF
32544rm -f conftest.$ac_objext conftest$ac_exeext
32545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32546 (eval $ac_link) 2>conftest.er1
a848cd7e 32547 ac_status=$?
ac1cb8d3
VS
32548 grep -v '^ *+' conftest.er1 >conftest.err
32549 rm -f conftest.er1
32550 cat conftest.err >&5
a848cd7e
SC
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); } &&
5ff751d6 32553 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32555 (eval $ac_try) 2>&5
32556 ac_status=$?
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; } &&
32559 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32561 (eval $ac_try) 2>&5
32562 ac_status=$?
32563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564 (exit $ac_status); }; }; then
32565 eval "$as_ac_var=yes"
32566else
32567 echo "$as_me: failed program was:" >&5
32568sed 's/^/| /' conftest.$ac_ext >&5
32569
32570eval "$as_ac_var=no"
32571fi
ac1cb8d3
VS
32572rm -f conftest.err conftest.$ac_objext \
32573 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32574fi
32575echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32576echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32577if test `eval echo '${'$as_ac_var'}'` = yes; then
32578 cat >>confdefs.h <<_ACEOF
32579#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32580_ACEOF
32581 WCSLEN_FOUND=1
32582fi
32583done
32584
32585
32586 if test "$WCSLEN_FOUND" = 0; then
32587 if test "$TOOLKIT" = "MSW"; then
32588 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32589echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32590if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32591 echo $ECHO_N "(cached) $ECHO_C" >&6
32592else
32593 ac_check_lib_save_LIBS=$LIBS
32594LIBS="-lmsvcrt $LIBS"
32595cat >conftest.$ac_ext <<_ACEOF
32596/* confdefs.h. */
32597_ACEOF
32598cat confdefs.h >>conftest.$ac_ext
32599cat >>conftest.$ac_ext <<_ACEOF
32600/* end confdefs.h. */
32601
32602/* Override any gcc2 internal prototype to avoid an error. */
32603#ifdef __cplusplus
32604extern "C"
32605#endif
32606/* We use char because int might match the return type of a gcc2
32607 builtin and then its argument prototype would still apply. */
32608char wcslen ();
32609int
32610main ()
32611{
32612wcslen ();
32613 ;
32614 return 0;
32615}
32616_ACEOF
32617rm -f conftest.$ac_objext conftest$ac_exeext
32618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32619 (eval $ac_link) 2>conftest.er1
a848cd7e 32620 ac_status=$?
ac1cb8d3
VS
32621 grep -v '^ *+' conftest.er1 >conftest.err
32622 rm -f conftest.er1
32623 cat conftest.err >&5
a848cd7e
SC
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); } &&
5ff751d6 32626 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32628 (eval $ac_try) 2>&5
32629 ac_status=$?
32630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32631 (exit $ac_status); }; } &&
32632 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32634 (eval $ac_try) 2>&5
32635 ac_status=$?
32636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32637 (exit $ac_status); }; }; then
32638 ac_cv_lib_msvcrt_wcslen=yes
32639else
32640 echo "$as_me: failed program was:" >&5
32641sed 's/^/| /' conftest.$ac_ext >&5
32642
32643ac_cv_lib_msvcrt_wcslen=no
32644fi
ac1cb8d3
VS
32645rm -f conftest.err conftest.$ac_objext \
32646 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32647LIBS=$ac_check_lib_save_LIBS
32648fi
32649echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32650echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32651if test $ac_cv_lib_msvcrt_wcslen = yes; then
32652 WCHAR_OK=1
32653fi
32654
32655 else
32656 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32657echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32658if test "${ac_cv_lib_w_wcslen+set}" = set; then
32659 echo $ECHO_N "(cached) $ECHO_C" >&6
32660else
32661 ac_check_lib_save_LIBS=$LIBS
32662LIBS="-lw $LIBS"
32663cat >conftest.$ac_ext <<_ACEOF
32664/* confdefs.h. */
32665_ACEOF
32666cat confdefs.h >>conftest.$ac_ext
32667cat >>conftest.$ac_ext <<_ACEOF
32668/* end confdefs.h. */
32669
32670/* Override any gcc2 internal prototype to avoid an error. */
32671#ifdef __cplusplus
32672extern "C"
32673#endif
32674/* We use char because int might match the return type of a gcc2
32675 builtin and then its argument prototype would still apply. */
32676char wcslen ();
32677int
32678main ()
32679{
32680wcslen ();
32681 ;
32682 return 0;
32683}
32684_ACEOF
32685rm -f conftest.$ac_objext conftest$ac_exeext
32686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32687 (eval $ac_link) 2>conftest.er1
a848cd7e 32688 ac_status=$?
ac1cb8d3
VS
32689 grep -v '^ *+' conftest.er1 >conftest.err
32690 rm -f conftest.er1
32691 cat conftest.err >&5
a848cd7e
SC
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); } &&
5ff751d6 32694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32696 (eval $ac_try) 2>&5
32697 ac_status=$?
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); }; } &&
32700 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32702 (eval $ac_try) 2>&5
32703 ac_status=$?
32704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32705 (exit $ac_status); }; }; then
32706 ac_cv_lib_w_wcslen=yes
32707else
32708 echo "$as_me: failed program was:" >&5
32709sed 's/^/| /' conftest.$ac_ext >&5
32710
32711ac_cv_lib_w_wcslen=no
32712fi
ac1cb8d3
VS
32713rm -f conftest.err conftest.$ac_objext \
32714 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32715LIBS=$ac_check_lib_save_LIBS
32716fi
32717echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32718echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32719if test $ac_cv_lib_w_wcslen = yes; then
32720
32721 WCHAR_LINK=" -lw"
32722 WCSLEN_FOUND=1
32723
32724fi
32725
32726 fi
32727 fi
32728
32729 if test "$WCSLEN_FOUND" = 1; then
32730 cat >>confdefs.h <<\_ACEOF
32731#define HAVE_WCSLEN 1
32732_ACEOF
32733
32734 fi
32735
efdf6afe 32736 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
c92ad099 32737 CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
473276a9
VS
32738 fi
32739
efdf6afe
VZ
32740 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32741echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32742if test "${ac_cv_type_mbstate_t+set}" = set; then
32743 echo $ECHO_N "(cached) $ECHO_C" >&6
32744else
32745 cat >conftest.$ac_ext <<_ACEOF
32746/* confdefs.h. */
32747_ACEOF
32748cat confdefs.h >>conftest.$ac_ext
32749cat >>conftest.$ac_ext <<_ACEOF
32750/* end confdefs.h. */
32751#include <wchar.h>
32752
32753int
32754main ()
32755{
32756if ((mbstate_t *) 0)
32757 return 0;
32758if (sizeof (mbstate_t))
32759 return 0;
32760 ;
32761 return 0;
32762}
32763_ACEOF
32764rm -f conftest.$ac_objext
32765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32766 (eval $ac_compile) 2>conftest.er1
32767 ac_status=$?
32768 grep -v '^ *+' conftest.er1 >conftest.err
32769 rm -f conftest.er1
32770 cat conftest.err >&5
32771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772 (exit $ac_status); } &&
5ff751d6 32773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
32774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32775 (eval $ac_try) 2>&5
32776 ac_status=$?
32777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); }; } &&
32779 { ac_try='test -s conftest.$ac_objext'
32780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32781 (eval $ac_try) 2>&5
32782 ac_status=$?
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); }; }; then
32785 ac_cv_type_mbstate_t=yes
32786else
32787 echo "$as_me: failed program was:" >&5
32788sed 's/^/| /' conftest.$ac_ext >&5
32789
32790ac_cv_type_mbstate_t=no
32791fi
32792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32793fi
32794echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32795echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32796if test $ac_cv_type_mbstate_t = yes; then
32797
32798cat >>confdefs.h <<_ACEOF
32799#define HAVE_MBSTATE_T 1
32800_ACEOF
32801
a848cd7e
SC
32802
32803for ac_func in wcsrtombs
32804do
32805as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32806echo "$as_me:$LINENO: checking for $ac_func" >&5
32807echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32808if eval "test \"\${$as_ac_var+set}\" = set"; then
32809 echo $ECHO_N "(cached) $ECHO_C" >&6
32810else
32811 cat >conftest.$ac_ext <<_ACEOF
32812/* confdefs.h. */
32813_ACEOF
32814cat confdefs.h >>conftest.$ac_ext
32815cat >>conftest.$ac_ext <<_ACEOF
32816/* end confdefs.h. */
ac1cb8d3
VS
32817/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32819#define $ac_func innocuous_$ac_func
32820
a848cd7e
SC
32821/* System header to define __stub macros and hopefully few prototypes,
32822 which can conflict with char $ac_func (); below.
32823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32824 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32825
a848cd7e
SC
32826#ifdef __STDC__
32827# include <limits.h>
32828#else
32829# include <assert.h>
32830#endif
ac1cb8d3
VS
32831
32832#undef $ac_func
32833
a848cd7e
SC
32834/* Override any gcc2 internal prototype to avoid an error. */
32835#ifdef __cplusplus
32836extern "C"
32837{
32838#endif
32839/* We use char because int might match the return type of a gcc2
32840 builtin and then its argument prototype would still apply. */
32841char $ac_func ();
32842/* The GNU C library defines this for functions which it implements
32843 to always fail with ENOSYS. Some functions are actually named
32844 something starting with __ and the normal name is an alias. */
32845#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32846choke me
32847#else
32848char (*f) () = $ac_func;
32849#endif
32850#ifdef __cplusplus
32851}
32852#endif
32853
32854int
32855main ()
32856{
32857return f != $ac_func;
32858 ;
32859 return 0;
32860}
32861_ACEOF
32862rm -f conftest.$ac_objext conftest$ac_exeext
32863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32864 (eval $ac_link) 2>conftest.er1
a848cd7e 32865 ac_status=$?
ac1cb8d3
VS
32866 grep -v '^ *+' conftest.er1 >conftest.err
32867 rm -f conftest.er1
32868 cat conftest.err >&5
a848cd7e
SC
32869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870 (exit $ac_status); } &&
5ff751d6 32871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32873 (eval $ac_try) 2>&5
32874 ac_status=$?
32875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876 (exit $ac_status); }; } &&
32877 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32879 (eval $ac_try) 2>&5
32880 ac_status=$?
32881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32882 (exit $ac_status); }; }; then
32883 eval "$as_ac_var=yes"
32884else
32885 echo "$as_me: failed program was:" >&5
32886sed 's/^/| /' conftest.$ac_ext >&5
32887
32888eval "$as_ac_var=no"
32889fi
ac1cb8d3
VS
32890rm -f conftest.err conftest.$ac_objext \
32891 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32892fi
32893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32895if test `eval echo '${'$as_ac_var'}'` = yes; then
32896 cat >>confdefs.h <<_ACEOF
32897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32898_ACEOF
32899
32900fi
32901done
32902
efdf6afe
VZ
32903fi
32904
a848cd7e
SC
32905else
32906 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32907echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32908fi
32909
32910
32911
32912ac_ext=cc
32913ac_cpp='$CXXCPP $CPPFLAGS'
32914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32917
32918
32919
4a767dd5
VZ
32920
32921for ac_func in snprintf vsnprintf
a848cd7e
SC
32922do
32923as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32924echo "$as_me:$LINENO: checking for $ac_func" >&5
32925echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32926if eval "test \"\${$as_ac_var+set}\" = set"; then
32927 echo $ECHO_N "(cached) $ECHO_C" >&6
32928else
32929 cat >conftest.$ac_ext <<_ACEOF
32930/* confdefs.h. */
32931_ACEOF
32932cat confdefs.h >>conftest.$ac_ext
32933cat >>conftest.$ac_ext <<_ACEOF
32934/* end confdefs.h. */
ac1cb8d3
VS
32935/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32937#define $ac_func innocuous_$ac_func
32938
a848cd7e
SC
32939/* System header to define __stub macros and hopefully few prototypes,
32940 which can conflict with char $ac_func (); below.
32941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32942 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32943
a848cd7e
SC
32944#ifdef __STDC__
32945# include <limits.h>
32946#else
32947# include <assert.h>
32948#endif
ac1cb8d3
VS
32949
32950#undef $ac_func
32951
a848cd7e
SC
32952/* Override any gcc2 internal prototype to avoid an error. */
32953#ifdef __cplusplus
32954extern "C"
32955{
32956#endif
32957/* We use char because int might match the return type of a gcc2
32958 builtin and then its argument prototype would still apply. */
32959char $ac_func ();
32960/* The GNU C library defines this for functions which it implements
32961 to always fail with ENOSYS. Some functions are actually named
32962 something starting with __ and the normal name is an alias. */
32963#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32964choke me
32965#else
32966char (*f) () = $ac_func;
32967#endif
32968#ifdef __cplusplus
32969}
32970#endif
32971
32972int
32973main ()
32974{
32975return f != $ac_func;
32976 ;
32977 return 0;
32978}
32979_ACEOF
32980rm -f conftest.$ac_objext conftest$ac_exeext
32981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32982 (eval $ac_link) 2>conftest.er1
a848cd7e 32983 ac_status=$?
ac1cb8d3
VS
32984 grep -v '^ *+' conftest.er1 >conftest.err
32985 rm -f conftest.er1
32986 cat conftest.err >&5
a848cd7e
SC
32987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32988 (exit $ac_status); } &&
5ff751d6 32989 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32991 (eval $ac_try) 2>&5
32992 ac_status=$?
32993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32994 (exit $ac_status); }; } &&
32995 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32997 (eval $ac_try) 2>&5
32998 ac_status=$?
32999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33000 (exit $ac_status); }; }; then
33001 eval "$as_ac_var=yes"
33002else
33003 echo "$as_me: failed program was:" >&5
33004sed 's/^/| /' conftest.$ac_ext >&5
33005
33006eval "$as_ac_var=no"
33007fi
ac1cb8d3
VS
33008rm -f conftest.err conftest.$ac_objext \
33009 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33010fi
33011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33012echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33013if test `eval echo '${'$as_ac_var'}'` = yes; then
33014 cat >>confdefs.h <<_ACEOF
33015#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33016_ACEOF
33017
33018fi
33019done
33020
33021
33022if test "$ac_cv_func_vsnprintf" = "yes"; then
33023 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33024echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33025if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33026 echo $ECHO_N "(cached) $ECHO_C" >&6
33027else
33028
efdf6afe 33029 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33030/* confdefs.h. */
33031_ACEOF
33032cat confdefs.h >>conftest.$ac_ext
33033cat >>conftest.$ac_ext <<_ACEOF
33034/* end confdefs.h. */
33035
33036 #include <stdio.h>
33037 #include <stdarg.h>
efdf6afe
VZ
33038 #ifdef __MSL__
33039 #if __MSL__ >= 0x6000
33040 namespace std {}
33041 using namespace std;
33042 #endif
33043 #endif
a848cd7e
SC
33044
33045int
33046main ()
33047{
33048
33049 char *buf;
33050 va_list ap;
62fa8b3a 33051 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33052
33053 ;
33054 return 0;
33055}
33056_ACEOF
33057rm -f conftest.$ac_objext
33058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33059 (eval $ac_compile) 2>conftest.er1
33060 ac_status=$?
33061 grep -v '^ *+' conftest.er1 >conftest.err
33062 rm -f conftest.er1
33063 cat conftest.err >&5
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065 (exit $ac_status); } &&
5ff751d6 33066 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
33067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33068 (eval $ac_try) 2>&5
33069 ac_status=$?
33070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071 (exit $ac_status); }; } &&
33072 { ac_try='test -s conftest.$ac_objext'
33073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33074 (eval $ac_try) 2>&5
33075 ac_status=$?
33076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33077 (exit $ac_status); }; }; then
33078 wx_cv_func_vsnprintf_decl=yes
33079else
33080 echo "$as_me: failed program was:" >&5
33081sed 's/^/| /' conftest.$ac_ext >&5
33082
a848cd7e
SC
33083wx_cv_func_vsnprintf_decl=no
33084
33085fi
ac1cb8d3 33086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33087
33088
33089fi
33090echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33091echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33092
33093 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33094 cat >>confdefs.h <<\_ACEOF
33095#define HAVE_VSNPRINTF_DECL 1
33096_ACEOF
33097
62fa8b3a
MW
33098
33099 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33100echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33101if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33102 echo $ECHO_N "(cached) $ECHO_C" >&6
33103else
33104
33105 cat >conftest.$ac_ext <<_ACEOF
33106/* confdefs.h. */
33107_ACEOF
33108cat confdefs.h >>conftest.$ac_ext
33109cat >>conftest.$ac_ext <<_ACEOF
33110/* end confdefs.h. */
33111
33112 #include <stdio.h>
33113 #include <stdarg.h>
33114 #ifdef __MSL__
33115 #if __MSL__ >= 0x6000
33116 namespace std {}
33117 using namespace std;
33118 #endif
33119 #endif
33120
33121int
33122main ()
33123{
33124
33125 char *buf;
33126 va_list ap;
33127 const char *fmt = "%s";
33128 vsnprintf(buf, 10u, fmt, ap);
33129
33130 ;
33131 return 0;
33132}
33133_ACEOF
33134rm -f conftest.$ac_objext
33135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33136 (eval $ac_compile) 2>conftest.er1
33137 ac_status=$?
33138 grep -v '^ *+' conftest.er1 >conftest.err
33139 rm -f conftest.er1
33140 cat conftest.err >&5
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); } &&
5ff751d6 33143 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33145 (eval $ac_try) 2>&5
33146 ac_status=$?
33147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33148 (exit $ac_status); }; } &&
33149 { ac_try='test -s conftest.$ac_objext'
33150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33151 (eval $ac_try) 2>&5
33152 ac_status=$?
33153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33154 (exit $ac_status); }; }; then
33155 wx_cv_func_broken_vsnprintf_decl=no
33156else
33157 echo "$as_me: failed program was:" >&5
33158sed 's/^/| /' conftest.$ac_ext >&5
33159
33160wx_cv_func_broken_vsnprintf_decl=yes
33161
33162fi
33163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33164
33165
33166fi
33167echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33168echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33169
33170 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33171 cat >>confdefs.h <<\_ACEOF
33172#define HAVE_BROKEN_VSNPRINTF_DECL 1
33173_ACEOF
33174
33175 fi
a848cd7e
SC
33176 fi
33177fi
33178
4a767dd5
VZ
33179if test "$ac_cv_func_snprintf" = "yes"; then
33180 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33181echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33182if test "${wx_cv_func_snprintf_decl+set}" = set; then
33183 echo $ECHO_N "(cached) $ECHO_C" >&6
33184else
33185
33186 cat >conftest.$ac_ext <<_ACEOF
33187/* confdefs.h. */
33188_ACEOF
33189cat confdefs.h >>conftest.$ac_ext
33190cat >>conftest.$ac_ext <<_ACEOF
33191/* end confdefs.h. */
33192
33193 #include <stdio.h>
33194 #include <stdarg.h>
33195 #ifdef __MSL__
33196 #if __MSL__ >= 0x6000
33197 namespace std {}
33198 using namespace std;
33199 #endif
33200 #endif
33201
33202int
33203main ()
33204{
33205
33206 char *buf;
62fa8b3a 33207 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33208
33209 ;
33210 return 0;
33211}
33212_ACEOF
33213rm -f conftest.$ac_objext
33214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33215 (eval $ac_compile) 2>conftest.er1
33216 ac_status=$?
33217 grep -v '^ *+' conftest.er1 >conftest.err
33218 rm -f conftest.er1
33219 cat conftest.err >&5
33220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33221 (exit $ac_status); } &&
5ff751d6 33222 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
33223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33224 (eval $ac_try) 2>&5
33225 ac_status=$?
33226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33227 (exit $ac_status); }; } &&
33228 { ac_try='test -s conftest.$ac_objext'
33229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33230 (eval $ac_try) 2>&5
33231 ac_status=$?
33232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233 (exit $ac_status); }; }; then
33234 wx_cv_func_snprintf_decl=yes
33235else
33236 echo "$as_me: failed program was:" >&5
33237sed 's/^/| /' conftest.$ac_ext >&5
33238
33239wx_cv_func_snprintf_decl=no
33240
33241fi
33242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33243
33244
33245fi
33246echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33247echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33248
33249 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33250 cat >>confdefs.h <<\_ACEOF
33251#define HAVE_SNPRINTF_DECL 1
33252_ACEOF
33253
62fa8b3a
MW
33254
33255 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33256echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33257if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33258 echo $ECHO_N "(cached) $ECHO_C" >&6
33259else
33260
33261 cat >conftest.$ac_ext <<_ACEOF
33262/* confdefs.h. */
33263_ACEOF
33264cat confdefs.h >>conftest.$ac_ext
33265cat >>conftest.$ac_ext <<_ACEOF
33266/* end confdefs.h. */
33267
33268 #include <stdio.h>
33269 #include <stdarg.h>
33270 #ifdef __MSL__
33271 #if __MSL__ >= 0x6000
33272 namespace std {}
33273 using namespace std;
33274 #endif
33275 #endif
33276
33277int
33278main ()
33279{
33280
33281 char *buf;
33282 const char *fmt = "%s";
33283 snprintf(buf, 10u, fmt, "wx");
33284
33285 ;
33286 return 0;
33287}
33288_ACEOF
33289rm -f conftest.$ac_objext
33290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33291 (eval $ac_compile) 2>conftest.er1
33292 ac_status=$?
33293 grep -v '^ *+' conftest.er1 >conftest.err
33294 rm -f conftest.er1
33295 cat conftest.err >&5
33296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33297 (exit $ac_status); } &&
5ff751d6 33298 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33300 (eval $ac_try) 2>&5
33301 ac_status=$?
33302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303 (exit $ac_status); }; } &&
33304 { ac_try='test -s conftest.$ac_objext'
33305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33306 (eval $ac_try) 2>&5
33307 ac_status=$?
33308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 (exit $ac_status); }; }; then
33310 wx_cv_func_broken_snprintf_decl=no
33311else
33312 echo "$as_me: failed program was:" >&5
33313sed 's/^/| /' conftest.$ac_ext >&5
33314
33315wx_cv_func_broken_snprintf_decl=yes
33316
33317fi
33318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33319
33320
33321fi
33322echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33323echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33324
33325 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33326 cat >>confdefs.h <<\_ACEOF
33327#define HAVE_BROKEN_SNPRINTF_DECL 1
33328_ACEOF
33329
33330 fi
4a767dd5
VZ
33331 fi
33332fi
33333
a848cd7e
SC
33334if test "$wxUSE_UNICODE" = yes; then
33335
33336
33337
fbe47c7b
VS
33338
33339
33340
33341for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33342do
33343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33344echo "$as_me:$LINENO: checking for $ac_func" >&5
33345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33346if eval "test \"\${$as_ac_var+set}\" = set"; then
33347 echo $ECHO_N "(cached) $ECHO_C" >&6
33348else
33349 cat >conftest.$ac_ext <<_ACEOF
33350/* confdefs.h. */
33351_ACEOF
33352cat confdefs.h >>conftest.$ac_ext
33353cat >>conftest.$ac_ext <<_ACEOF
33354/* end confdefs.h. */
ac1cb8d3
VS
33355/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33357#define $ac_func innocuous_$ac_func
33358
a848cd7e
SC
33359/* System header to define __stub macros and hopefully few prototypes,
33360 which can conflict with char $ac_func (); below.
33361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33362 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33363
a848cd7e
SC
33364#ifdef __STDC__
33365# include <limits.h>
33366#else
33367# include <assert.h>
33368#endif
ac1cb8d3
VS
33369
33370#undef $ac_func
33371
a848cd7e
SC
33372/* Override any gcc2 internal prototype to avoid an error. */
33373#ifdef __cplusplus
33374extern "C"
33375{
33376#endif
33377/* We use char because int might match the return type of a gcc2
33378 builtin and then its argument prototype would still apply. */
33379char $ac_func ();
33380/* The GNU C library defines this for functions which it implements
33381 to always fail with ENOSYS. Some functions are actually named
33382 something starting with __ and the normal name is an alias. */
33383#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33384choke me
33385#else
33386char (*f) () = $ac_func;
33387#endif
33388#ifdef __cplusplus
33389}
33390#endif
33391
33392int
33393main ()
33394{
33395return f != $ac_func;
33396 ;
33397 return 0;
33398}
33399_ACEOF
33400rm -f conftest.$ac_objext conftest$ac_exeext
33401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33402 (eval $ac_link) 2>conftest.er1
a848cd7e 33403 ac_status=$?
ac1cb8d3
VS
33404 grep -v '^ *+' conftest.er1 >conftest.err
33405 rm -f conftest.er1
33406 cat conftest.err >&5
a848cd7e
SC
33407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33408 (exit $ac_status); } &&
5ff751d6 33409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33411 (eval $ac_try) 2>&5
33412 ac_status=$?
33413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414 (exit $ac_status); }; } &&
33415 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33417 (eval $ac_try) 2>&5
33418 ac_status=$?
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); }; }; then
33421 eval "$as_ac_var=yes"
33422else
33423 echo "$as_me: failed program was:" >&5
33424sed 's/^/| /' conftest.$ac_ext >&5
33425
33426eval "$as_ac_var=no"
33427fi
ac1cb8d3
VS
33428rm -f conftest.err conftest.$ac_objext \
33429 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33430fi
33431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33432echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33433if test `eval echo '${'$as_ac_var'}'` = yes; then
33434 cat >>confdefs.h <<_ACEOF
33435#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33436_ACEOF
33437
33438fi
33439done
33440
33441
33442 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33443echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33444 cat >conftest.$ac_ext <<_ACEOF
33445/* confdefs.h. */
33446_ACEOF
33447cat confdefs.h >>conftest.$ac_ext
33448cat >>conftest.$ac_ext <<_ACEOF
33449/* end confdefs.h. */
33450#include <wchar.h>
33451int
33452main ()
33453{
33454&_vsnwprintf;
33455 ;
33456 return 0;
33457}
33458_ACEOF
33459rm -f conftest.$ac_objext
33460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33461 (eval $ac_compile) 2>conftest.er1
a848cd7e 33462 ac_status=$?
ac1cb8d3
VS
33463 grep -v '^ *+' conftest.er1 >conftest.err
33464 rm -f conftest.er1
33465 cat conftest.err >&5
a848cd7e
SC
33466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33467 (exit $ac_status); } &&
5ff751d6 33468 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33470 (eval $ac_try) 2>&5
33471 ac_status=$?
33472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473 (exit $ac_status); }; } &&
33474 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33476 (eval $ac_try) 2>&5
33477 ac_status=$?
33478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33479 (exit $ac_status); }; }; then
33480 echo "$as_me:$LINENO: result: yes" >&5
33481echo "${ECHO_T}yes" >&6
33482 cat >>confdefs.h <<\_ACEOF
33483#define HAVE__VSNWPRINTF 1
33484_ACEOF
33485
33486else
33487 echo "$as_me: failed program was:" >&5
33488sed 's/^/| /' conftest.$ac_ext >&5
33489
33490echo "$as_me:$LINENO: result: no" >&5
33491echo "${ECHO_T}no" >&6
33492fi
ac1cb8d3 33493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33494fi
33495
33496ac_ext=c
33497ac_cpp='$CPP $CPPFLAGS'
33498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33500ac_compiler_gnu=$ac_cv_c_compiler_gnu
33501
33502
6ebeb4c7
VZ
33503if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33504
33505for ac_func in fnmatch
33506do
33507as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33508echo "$as_me:$LINENO: checking for $ac_func" >&5
33509echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33510if eval "test \"\${$as_ac_var+set}\" = set"; then
33511 echo $ECHO_N "(cached) $ECHO_C" >&6
33512else
33513 cat >conftest.$ac_ext <<_ACEOF
33514/* confdefs.h. */
33515_ACEOF
33516cat confdefs.h >>conftest.$ac_ext
33517cat >>conftest.$ac_ext <<_ACEOF
33518/* end confdefs.h. */
33519/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33521#define $ac_func innocuous_$ac_func
33522
33523/* System header to define __stub macros and hopefully few prototypes,
33524 which can conflict with char $ac_func (); below.
33525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33526 <limits.h> exists even on freestanding compilers. */
33527
33528#ifdef __STDC__
33529# include <limits.h>
33530#else
33531# include <assert.h>
33532#endif
33533
33534#undef $ac_func
33535
33536/* Override any gcc2 internal prototype to avoid an error. */
33537#ifdef __cplusplus
33538extern "C"
33539{
33540#endif
33541/* We use char because int might match the return type of a gcc2
33542 builtin and then its argument prototype would still apply. */
33543char $ac_func ();
33544/* The GNU C library defines this for functions which it implements
33545 to always fail with ENOSYS. Some functions are actually named
33546 something starting with __ and the normal name is an alias. */
33547#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33548choke me
33549#else
33550char (*f) () = $ac_func;
33551#endif
33552#ifdef __cplusplus
33553}
33554#endif
33555
33556int
33557main ()
33558{
33559return f != $ac_func;
33560 ;
33561 return 0;
33562}
33563_ACEOF
33564rm -f conftest.$ac_objext conftest$ac_exeext
33565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33566 (eval $ac_link) 2>conftest.er1
33567 ac_status=$?
33568 grep -v '^ *+' conftest.er1 >conftest.err
33569 rm -f conftest.er1
33570 cat conftest.err >&5
33571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33572 (exit $ac_status); } &&
5ff751d6 33573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
33574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33575 (eval $ac_try) 2>&5
33576 ac_status=$?
33577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33578 (exit $ac_status); }; } &&
33579 { ac_try='test -s conftest$ac_exeext'
33580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33581 (eval $ac_try) 2>&5
33582 ac_status=$?
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); }; }; then
33585 eval "$as_ac_var=yes"
33586else
33587 echo "$as_me: failed program was:" >&5
33588sed 's/^/| /' conftest.$ac_ext >&5
33589
33590eval "$as_ac_var=no"
33591fi
33592rm -f conftest.err conftest.$ac_objext \
33593 conftest$ac_exeext conftest.$ac_ext
33594fi
33595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33596echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33597if test `eval echo '${'$as_ac_var'}'` = yes; then
33598 cat >>confdefs.h <<_ACEOF
33599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33600_ACEOF
33601
33602fi
33603done
33604
33605fi
33606
33607if test "$wxUSE_FILE" = "yes"; then
33608
33609for ac_func in fsync
33610do
33611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33612echo "$as_me:$LINENO: checking for $ac_func" >&5
33613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33614if eval "test \"\${$as_ac_var+set}\" = set"; then
33615 echo $ECHO_N "(cached) $ECHO_C" >&6
33616else
33617 cat >conftest.$ac_ext <<_ACEOF
33618/* confdefs.h. */
33619_ACEOF
33620cat confdefs.h >>conftest.$ac_ext
33621cat >>conftest.$ac_ext <<_ACEOF
33622/* end confdefs.h. */
33623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33625#define $ac_func innocuous_$ac_func
33626
33627/* System header to define __stub macros and hopefully few prototypes,
33628 which can conflict with char $ac_func (); below.
33629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33630 <limits.h> exists even on freestanding compilers. */
33631
33632#ifdef __STDC__
33633# include <limits.h>
33634#else
33635# include <assert.h>
33636#endif
33637
33638#undef $ac_func
33639
33640/* Override any gcc2 internal prototype to avoid an error. */
33641#ifdef __cplusplus
33642extern "C"
33643{
33644#endif
33645/* We use char because int might match the return type of a gcc2
33646 builtin and then its argument prototype would still apply. */
33647char $ac_func ();
33648/* The GNU C library defines this for functions which it implements
33649 to always fail with ENOSYS. Some functions are actually named
33650 something starting with __ and the normal name is an alias. */
33651#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33652choke me
33653#else
33654char (*f) () = $ac_func;
33655#endif
33656#ifdef __cplusplus
33657}
33658#endif
33659
33660int
33661main ()
33662{
33663return f != $ac_func;
33664 ;
33665 return 0;
33666}
33667_ACEOF
33668rm -f conftest.$ac_objext conftest$ac_exeext
33669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33670 (eval $ac_link) 2>conftest.er1
33671 ac_status=$?
33672 grep -v '^ *+' conftest.er1 >conftest.err
33673 rm -f conftest.er1
33674 cat conftest.err >&5
33675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676 (exit $ac_status); } &&
5ff751d6 33677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
33678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33679 (eval $ac_try) 2>&5
33680 ac_status=$?
33681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682 (exit $ac_status); }; } &&
33683 { ac_try='test -s conftest$ac_exeext'
33684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33685 (eval $ac_try) 2>&5
33686 ac_status=$?
33687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33688 (exit $ac_status); }; }; then
33689 eval "$as_ac_var=yes"
33690else
33691 echo "$as_me: failed program was:" >&5
33692sed 's/^/| /' conftest.$ac_ext >&5
33693
33694eval "$as_ac_var=no"
33695fi
33696rm -f conftest.err conftest.$ac_objext \
33697 conftest$ac_exeext conftest.$ac_ext
33698fi
33699echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33700echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33701if test `eval echo '${'$as_ac_var'}'` = yes; then
33702 cat >>confdefs.h <<_ACEOF
33703#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33704_ACEOF
33705
33706fi
33707done
33708
33709fi
a848cd7e
SC
33710
33711
33712if test "$TOOLKIT" != "MSW"; then
33713
33714
33715
33716
33717ac_ext=cc
33718ac_cpp='$CXXCPP $CPPFLAGS'
33719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33722
33723
33724
33725
33726# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33727if test "${with_libiconv_prefix+set}" = set; then
33728 withval="$with_libiconv_prefix"
33729
33730 for dir in `echo "$withval" | tr : ' '`; do
33731 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33732 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33733 done
33734
33735fi;
33736
33737 echo "$as_me:$LINENO: checking for iconv" >&5
33738echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33739if test "${am_cv_func_iconv+set}" = set; then
33740 echo $ECHO_N "(cached) $ECHO_C" >&6
33741else
33742
33743 am_cv_func_iconv="no, consider installing GNU libiconv"
33744 am_cv_lib_iconv=no
33745 cat >conftest.$ac_ext <<_ACEOF
33746/* confdefs.h. */
33747_ACEOF
33748cat confdefs.h >>conftest.$ac_ext
33749cat >>conftest.$ac_ext <<_ACEOF
33750/* end confdefs.h. */
33751#include <stdlib.h>
33752#include <iconv.h>
33753int
33754main ()
33755{
33756iconv_t cd = iconv_open("","");
33757 iconv(cd,NULL,NULL,NULL,NULL);
33758 iconv_close(cd);
33759 ;
33760 return 0;
33761}
33762_ACEOF
33763rm -f conftest.$ac_objext conftest$ac_exeext
33764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33765 (eval $ac_link) 2>conftest.er1
a848cd7e 33766 ac_status=$?
ac1cb8d3
VS
33767 grep -v '^ *+' conftest.er1 >conftest.err
33768 rm -f conftest.er1
33769 cat conftest.err >&5
a848cd7e
SC
33770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771 (exit $ac_status); } &&
5ff751d6 33772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33774 (eval $ac_try) 2>&5
33775 ac_status=$?
33776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33777 (exit $ac_status); }; } &&
33778 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33780 (eval $ac_try) 2>&5
33781 ac_status=$?
33782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33783 (exit $ac_status); }; }; then
33784 am_cv_func_iconv=yes
33785else
33786 echo "$as_me: failed program was:" >&5
33787sed 's/^/| /' conftest.$ac_ext >&5
33788
33789fi
ac1cb8d3
VS
33790rm -f conftest.err conftest.$ac_objext \
33791 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33792 if test "$am_cv_func_iconv" != yes; then
33793 am_save_LIBS="$LIBS"
33794 LIBS="$LIBS -liconv"
33795 cat >conftest.$ac_ext <<_ACEOF
33796/* confdefs.h. */
33797_ACEOF
33798cat confdefs.h >>conftest.$ac_ext
33799cat >>conftest.$ac_ext <<_ACEOF
33800/* end confdefs.h. */
33801#include <stdlib.h>
33802#include <iconv.h>
33803int
33804main ()
33805{
33806iconv_t cd = iconv_open("","");
33807 iconv(cd,NULL,NULL,NULL,NULL);
33808 iconv_close(cd);
33809 ;
33810 return 0;
33811}
33812_ACEOF
33813rm -f conftest.$ac_objext conftest$ac_exeext
33814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33815 (eval $ac_link) 2>conftest.er1
a848cd7e 33816 ac_status=$?
ac1cb8d3
VS
33817 grep -v '^ *+' conftest.er1 >conftest.err
33818 rm -f conftest.er1
33819 cat conftest.err >&5
a848cd7e
SC
33820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33821 (exit $ac_status); } &&
5ff751d6 33822 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33824 (eval $ac_try) 2>&5
33825 ac_status=$?
33826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33827 (exit $ac_status); }; } &&
33828 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33830 (eval $ac_try) 2>&5
33831 ac_status=$?
33832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833 (exit $ac_status); }; }; then
33834 am_cv_lib_iconv=yes
33835 am_cv_func_iconv=yes
33836else
33837 echo "$as_me: failed program was:" >&5
33838sed 's/^/| /' conftest.$ac_ext >&5
33839
33840fi
ac1cb8d3
VS
33841rm -f conftest.err conftest.$ac_objext \
33842 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33843 LIBS="$am_save_LIBS"
33844 fi
33845
33846fi
33847echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33848echo "${ECHO_T}$am_cv_func_iconv" >&6
33849 if test "$am_cv_func_iconv" = yes; then
33850
33851cat >>confdefs.h <<\_ACEOF
33852#define HAVE_ICONV 1
33853_ACEOF
33854
33855 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33856echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33857if test "${wx_cv_func_iconv_const+set}" = set; then
33858 echo $ECHO_N "(cached) $ECHO_C" >&6
33859else
33860 cat >conftest.$ac_ext <<_ACEOF
33861/* confdefs.h. */
33862_ACEOF
33863cat confdefs.h >>conftest.$ac_ext
33864cat >>conftest.$ac_ext <<_ACEOF
33865/* end confdefs.h. */
33866
33867#include <stdlib.h>
33868#include <iconv.h>
33869extern
33870#ifdef __cplusplus
33871"C"
33872#endif
33873#if defined(__STDC__) || defined(__cplusplus)
33874size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33875#else
33876size_t iconv();
33877#endif
33878
33879int
33880main ()
33881{
33882
33883 ;
33884 return 0;
33885}
33886_ACEOF
33887rm -f conftest.$ac_objext
33888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33889 (eval $ac_compile) 2>conftest.er1
a848cd7e 33890 ac_status=$?
ac1cb8d3
VS
33891 grep -v '^ *+' conftest.er1 >conftest.err
33892 rm -f conftest.er1
33893 cat conftest.err >&5
a848cd7e
SC
33894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33895 (exit $ac_status); } &&
5ff751d6 33896 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33898 (eval $ac_try) 2>&5
33899 ac_status=$?
33900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33901 (exit $ac_status); }; } &&
33902 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33904 (eval $ac_try) 2>&5
33905 ac_status=$?
33906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33907 (exit $ac_status); }; }; then
33908 wx_cv_func_iconv_const="no"
33909else
33910 echo "$as_me: failed program was:" >&5
33911sed 's/^/| /' conftest.$ac_ext >&5
33912
33913wx_cv_func_iconv_const="yes"
33914
33915fi
ac1cb8d3 33916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33917
33918fi
33919echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33920echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33921
33922 iconv_const=
33923 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33924 iconv_const="const"
33925 fi
33926
33927
33928cat >>confdefs.h <<_ACEOF
33929#define ICONV_CONST $iconv_const
33930_ACEOF
33931
33932 fi
33933 LIBICONV=
33934 if test "$am_cv_lib_iconv" = yes; then
33935 LIBICONV="-liconv"
33936 fi
33937
33938
33939LIBS="$LIBICONV $LIBS"
33940ac_ext=c
33941ac_cpp='$CPP $CPPFLAGS'
33942ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33943ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33944ac_compiler_gnu=$ac_cv_c_compiler_gnu
33945
33946
33947if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33948
33949for ac_func in sigaction
33950do
33951as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33952echo "$as_me:$LINENO: checking for $ac_func" >&5
33953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33954if eval "test \"\${$as_ac_var+set}\" = set"; then
33955 echo $ECHO_N "(cached) $ECHO_C" >&6
33956else
33957 cat >conftest.$ac_ext <<_ACEOF
33958/* confdefs.h. */
33959_ACEOF
33960cat confdefs.h >>conftest.$ac_ext
33961cat >>conftest.$ac_ext <<_ACEOF
33962/* end confdefs.h. */
ac1cb8d3
VS
33963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33965#define $ac_func innocuous_$ac_func
33966
a848cd7e
SC
33967/* System header to define __stub macros and hopefully few prototypes,
33968 which can conflict with char $ac_func (); below.
33969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33970 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33971
a848cd7e
SC
33972#ifdef __STDC__
33973# include <limits.h>
33974#else
33975# include <assert.h>
33976#endif
ac1cb8d3
VS
33977
33978#undef $ac_func
33979
a848cd7e
SC
33980/* Override any gcc2 internal prototype to avoid an error. */
33981#ifdef __cplusplus
33982extern "C"
33983{
33984#endif
33985/* We use char because int might match the return type of a gcc2
33986 builtin and then its argument prototype would still apply. */
33987char $ac_func ();
33988/* The GNU C library defines this for functions which it implements
33989 to always fail with ENOSYS. Some functions are actually named
33990 something starting with __ and the normal name is an alias. */
33991#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33992choke me
33993#else
33994char (*f) () = $ac_func;
33995#endif
33996#ifdef __cplusplus
33997}
33998#endif
33999
34000int
34001main ()
34002{
34003return f != $ac_func;
34004 ;
34005 return 0;
34006}
34007_ACEOF
34008rm -f conftest.$ac_objext conftest$ac_exeext
34009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34010 (eval $ac_link) 2>conftest.er1
a848cd7e 34011 ac_status=$?
ac1cb8d3
VS
34012 grep -v '^ *+' conftest.er1 >conftest.err
34013 rm -f conftest.er1
34014 cat conftest.err >&5
a848cd7e
SC
34015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); } &&
5ff751d6 34017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34019 (eval $ac_try) 2>&5
34020 ac_status=$?
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); }; } &&
34023 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34025 (eval $ac_try) 2>&5
34026 ac_status=$?
34027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34028 (exit $ac_status); }; }; then
34029 eval "$as_ac_var=yes"
34030else
34031 echo "$as_me: failed program was:" >&5
34032sed 's/^/| /' conftest.$ac_ext >&5
34033
34034eval "$as_ac_var=no"
34035fi
ac1cb8d3
VS
34036rm -f conftest.err conftest.$ac_objext \
34037 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34038fi
34039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34040echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34041if test `eval echo '${'$as_ac_var'}'` = yes; then
34042 cat >>confdefs.h <<_ACEOF
34043#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34044_ACEOF
34045
34046fi
34047done
34048
34049
34050 if test "$ac_cv_func_sigaction" = "no"; then
34051 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34052echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34053 wxUSE_ON_FATAL_EXCEPTION=no
34054 fi
34055
34056 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34057
34058
34059 ac_ext=cc
34060ac_cpp='$CXXCPP $CPPFLAGS'
34061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34064
34065
34066 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34067echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34068if test "${wx_cv_type_sa_handler+set}" = set; then
34069 echo $ECHO_N "(cached) $ECHO_C" >&6
34070else
34071
34072 cat >conftest.$ac_ext <<_ACEOF
34073/* confdefs.h. */
34074_ACEOF
34075cat confdefs.h >>conftest.$ac_ext
34076cat >>conftest.$ac_ext <<_ACEOF
34077/* end confdefs.h. */
34078#include <signal.h>
34079int
34080main ()
34081{
34082
34083 extern void testSigHandler(int);
34084
34085 struct sigaction sa;
34086 sa.sa_handler = testSigHandler;
34087
34088 ;
34089 return 0;
34090}
34091_ACEOF
34092rm -f conftest.$ac_objext
34093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34094 (eval $ac_compile) 2>conftest.er1
a848cd7e 34095 ac_status=$?
ac1cb8d3
VS
34096 grep -v '^ *+' conftest.er1 >conftest.err
34097 rm -f conftest.er1
34098 cat conftest.err >&5
a848cd7e
SC
34099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34100 (exit $ac_status); } &&
5ff751d6 34101 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34103 (eval $ac_try) 2>&5
34104 ac_status=$?
34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34106 (exit $ac_status); }; } &&
34107 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34109 (eval $ac_try) 2>&5
34110 ac_status=$?
34111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34112 (exit $ac_status); }; }; then
34113
34114 wx_cv_type_sa_handler=int
34115
34116else
34117 echo "$as_me: failed program was:" >&5
34118sed 's/^/| /' conftest.$ac_ext >&5
34119
34120
34121 wx_cv_type_sa_handler=void
34122
34123fi
ac1cb8d3 34124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34125
34126fi
34127echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34128echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34129
34130 ac_ext=c
34131ac_cpp='$CPP $CPPFLAGS'
34132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34134ac_compiler_gnu=$ac_cv_c_compiler_gnu
34135
34136
34137 cat >>confdefs.h <<_ACEOF
34138#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34139_ACEOF
34140
34141 fi
34142fi
34143
eaff0f0d
VZ
34144if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34145
34146
34147 ac_ext=cc
34148ac_cpp='$CXXCPP $CPPFLAGS'
34149ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34150ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34151ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34152
34153
34154 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34155echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34156if test "${wx_cv_func_backtrace+set}" = set; then
34157 echo $ECHO_N "(cached) $ECHO_C" >&6
34158else
34159
34160 cat >conftest.$ac_ext <<_ACEOF
34161/* confdefs.h. */
34162_ACEOF
34163cat confdefs.h >>conftest.$ac_ext
34164cat >>conftest.$ac_ext <<_ACEOF
34165/* end confdefs.h. */
34166#include <execinfo.h>
34167int
34168main ()
34169{
34170
34171 void *trace[1];
34172 char **messages;
34173
34174 backtrace(trace, 1);
34175 messages = backtrace_symbols(trace, 1);
34176
34177 ;
34178 return 0;
34179}
34180_ACEOF
34181rm -f conftest.$ac_objext
34182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34183 (eval $ac_compile) 2>conftest.er1
34184 ac_status=$?
34185 grep -v '^ *+' conftest.er1 >conftest.err
34186 rm -f conftest.er1
34187 cat conftest.err >&5
34188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34189 (exit $ac_status); } &&
5ff751d6 34190 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34192 (eval $ac_try) 2>&5
34193 ac_status=$?
34194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34195 (exit $ac_status); }; } &&
34196 { ac_try='test -s conftest.$ac_objext'
34197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34198 (eval $ac_try) 2>&5
34199 ac_status=$?
34200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34201 (exit $ac_status); }; }; then
34202 wx_cv_func_backtrace=yes
34203else
34204 echo "$as_me: failed program was:" >&5
34205sed 's/^/| /' conftest.$ac_ext >&5
34206
34207wx_cv_func_backtrace=no
34208
34209fi
34210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34211
34212
34213fi
34214echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34215echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34216
34217
34218 if test "$wx_cv_func_backtrace" = "no"; then
34219 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34220echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34221 wxUSE_STACKWALKER=no
34222 else
34223 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34224echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34225if test "${wx_cv_func_cxa_demangle+set}" = set; then
34226 echo $ECHO_N "(cached) $ECHO_C" >&6
34227else
34228
34229 cat >conftest.$ac_ext <<_ACEOF
34230/* confdefs.h. */
34231_ACEOF
34232cat confdefs.h >>conftest.$ac_ext
34233cat >>conftest.$ac_ext <<_ACEOF
34234/* end confdefs.h. */
34235#include <cxxabi.h>
34236int
34237main ()
34238{
34239
34240 int rc;
34241 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34242
34243 ;
34244 return 0;
34245}
34246_ACEOF
dfe0c803
JS
34247rm -f conftest.$ac_objext conftest$ac_exeext
34248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34249 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34250 ac_status=$?
34251 grep -v '^ *+' conftest.er1 >conftest.err
34252 rm -f conftest.er1
34253 cat conftest.err >&5
34254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34255 (exit $ac_status); } &&
5ff751d6 34256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34258 (eval $ac_try) 2>&5
34259 ac_status=$?
34260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34261 (exit $ac_status); }; } &&
dfe0c803 34262 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34264 (eval $ac_try) 2>&5
34265 ac_status=$?
34266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34267 (exit $ac_status); }; }; then
34268 wx_cv_func_cxa_demangle=yes
34269else
34270 echo "$as_me: failed program was:" >&5
34271sed 's/^/| /' conftest.$ac_ext >&5
34272
34273wx_cv_func_cxa_demangle=no
34274
34275fi
dfe0c803
JS
34276rm -f conftest.err conftest.$ac_objext \
34277 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34278
34279
34280fi
34281echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34282echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34283
34284 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34285 cat >>confdefs.h <<\_ACEOF
34286#define HAVE_CXA_DEMANGLE 1
34287_ACEOF
34288
34289 fi
34290 fi
34291
34292 ac_ext=c
34293ac_cpp='$CPP $CPPFLAGS'
34294ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34295ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34296ac_compiler_gnu=$ac_cv_c_compiler_gnu
34297
34298fi
34299
898beab1
DE
34300if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34301 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34302echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34303 wxUSE_STACKWALKER=no
34304fi
34305
34306
a848cd7e
SC
34307
34308
34309for ac_func in mkstemp mktemp
34310do
34311as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34312echo "$as_me:$LINENO: checking for $ac_func" >&5
34313echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34314if eval "test \"\${$as_ac_var+set}\" = set"; then
34315 echo $ECHO_N "(cached) $ECHO_C" >&6
34316else
34317 cat >conftest.$ac_ext <<_ACEOF
34318/* confdefs.h. */
34319_ACEOF
34320cat confdefs.h >>conftest.$ac_ext
34321cat >>conftest.$ac_ext <<_ACEOF
34322/* end confdefs.h. */
ac1cb8d3
VS
34323/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34325#define $ac_func innocuous_$ac_func
34326
a848cd7e
SC
34327/* System header to define __stub macros and hopefully few prototypes,
34328 which can conflict with char $ac_func (); below.
34329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34330 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34331
a848cd7e
SC
34332#ifdef __STDC__
34333# include <limits.h>
34334#else
34335# include <assert.h>
34336#endif
ac1cb8d3
VS
34337
34338#undef $ac_func
34339
a848cd7e
SC
34340/* Override any gcc2 internal prototype to avoid an error. */
34341#ifdef __cplusplus
34342extern "C"
34343{
34344#endif
34345/* We use char because int might match the return type of a gcc2
34346 builtin and then its argument prototype would still apply. */
34347char $ac_func ();
34348/* The GNU C library defines this for functions which it implements
34349 to always fail with ENOSYS. Some functions are actually named
34350 something starting with __ and the normal name is an alias. */
34351#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34352choke me
34353#else
34354char (*f) () = $ac_func;
34355#endif
34356#ifdef __cplusplus
34357}
34358#endif
34359
34360int
34361main ()
34362{
34363return f != $ac_func;
34364 ;
34365 return 0;
34366}
34367_ACEOF
34368rm -f conftest.$ac_objext conftest$ac_exeext
34369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34370 (eval $ac_link) 2>conftest.er1
a848cd7e 34371 ac_status=$?
ac1cb8d3
VS
34372 grep -v '^ *+' conftest.er1 >conftest.err
34373 rm -f conftest.er1
34374 cat conftest.err >&5
a848cd7e
SC
34375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376 (exit $ac_status); } &&
5ff751d6 34377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34379 (eval $ac_try) 2>&5
34380 ac_status=$?
34381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34382 (exit $ac_status); }; } &&
34383 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34385 (eval $ac_try) 2>&5
34386 ac_status=$?
34387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34388 (exit $ac_status); }; }; then
34389 eval "$as_ac_var=yes"
34390else
34391 echo "$as_me: failed program was:" >&5
34392sed 's/^/| /' conftest.$ac_ext >&5
34393
34394eval "$as_ac_var=no"
34395fi
ac1cb8d3
VS
34396rm -f conftest.err conftest.$ac_objext \
34397 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34398fi
34399echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34400echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34401if test `eval echo '${'$as_ac_var'}'` = yes; then
34402 cat >>confdefs.h <<_ACEOF
34403#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34404_ACEOF
34405 break
34406fi
34407done
34408
34409
34410echo "$as_me:$LINENO: checking for statfs" >&5
34411echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34412if test "${wx_cv_func_statfs+set}" = set; then
34413 echo $ECHO_N "(cached) $ECHO_C" >&6
34414else
34415 cat >conftest.$ac_ext <<_ACEOF
34416/* confdefs.h. */
34417_ACEOF
34418cat confdefs.h >>conftest.$ac_ext
34419cat >>conftest.$ac_ext <<_ACEOF
34420/* end confdefs.h. */
34421
34422 #if defined(__BSD__)
84ae7ca4
VZ
34423 #include <sys/param.h>
34424 #include <sys/mount.h>
a848cd7e 34425 #else
84ae7ca4 34426 #include <sys/vfs.h>
a848cd7e
SC
34427 #endif
34428
34429int
34430main ()
34431{
34432
34433 long l;
34434 struct statfs fs;
34435 statfs("/", &fs);
34436 l = fs.f_bsize;
34437 l += fs.f_blocks;
34438 l += fs.f_bavail;
34439
34440 ;
34441 return 0;
34442}
34443_ACEOF
34444rm -f conftest.$ac_objext
34445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34446 (eval $ac_compile) 2>conftest.er1
a848cd7e 34447 ac_status=$?
ac1cb8d3
VS
34448 grep -v '^ *+' conftest.er1 >conftest.err
34449 rm -f conftest.er1
34450 cat conftest.err >&5
a848cd7e
SC
34451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34452 (exit $ac_status); } &&
5ff751d6 34453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34455 (eval $ac_try) 2>&5
34456 ac_status=$?
34457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); }; } &&
34459 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34461 (eval $ac_try) 2>&5
34462 ac_status=$?
34463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34464 (exit $ac_status); }; }; then
84ae7ca4 34465 wx_cv_func_statfs=yes
a848cd7e
SC
34466else
34467 echo "$as_me: failed program was:" >&5
34468sed 's/^/| /' conftest.$ac_ext >&5
34469
84ae7ca4 34470wx_cv_func_statfs=no
a848cd7e
SC
34471
34472fi
ac1cb8d3 34473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34474
34475fi
34476echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34477echo "${ECHO_T}$wx_cv_func_statfs" >&6
34478
34479if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34480
34481
34482 ac_ext=cc
34483ac_cpp='$CXXCPP $CPPFLAGS'
34484ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34485ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34486ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34487
34488 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34489echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34490if test "${wx_cv_func_statfs_decl+set}" = set; then
34491 echo $ECHO_N "(cached) $ECHO_C" >&6
34492else
0683aca6
VZ
34493 cat >conftest.$ac_ext <<_ACEOF
34494/* confdefs.h. */
34495_ACEOF
34496cat confdefs.h >>conftest.$ac_ext
34497cat >>conftest.$ac_ext <<_ACEOF
34498/* end confdefs.h. */
84ae7ca4 34499
0683aca6
VZ
34500 #if defined(__BSD__)
34501 #include <sys/param.h>
34502 #include <sys/mount.h>
34503 #else
34504 #include <sys/vfs.h>
34505 #endif
34506
34507int
34508main ()
34509{
34510
34511 struct statfs fs;
34512 statfs("", &fs);
34513
34514 ;
34515 return 0;
34516}
34517_ACEOF
34518rm -f conftest.$ac_objext
34519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34520 (eval $ac_compile) 2>conftest.er1
34521 ac_status=$?
34522 grep -v '^ *+' conftest.er1 >conftest.err
34523 rm -f conftest.er1
34524 cat conftest.err >&5
34525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34526 (exit $ac_status); } &&
5ff751d6 34527 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
34528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34529 (eval $ac_try) 2>&5
34530 ac_status=$?
34531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34532 (exit $ac_status); }; } &&
34533 { ac_try='test -s conftest.$ac_objext'
34534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34535 (eval $ac_try) 2>&5
34536 ac_status=$?
34537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34538 (exit $ac_status); }; }; then
34539 wx_cv_func_statfs_decl=yes
34540else
34541 echo "$as_me: failed program was:" >&5
34542sed 's/^/| /' conftest.$ac_ext >&5
34543
34544wx_cv_func_statfs_decl=no
34545
34546fi
34547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34548
34549fi
34550echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34551echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34552 ac_ext=c
34553ac_cpp='$CPP $CPPFLAGS'
34554ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34555ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34556ac_compiler_gnu=$ac_cv_c_compiler_gnu
34557
34558
34559 if test "$wx_cv_func_statfs_decl" = "yes"; then
34560 cat >>confdefs.h <<\_ACEOF
34561#define HAVE_STATFS_DECL 1
34562_ACEOF
34563
34564 fi
34565
a848cd7e
SC
34566 wx_cv_type_statvfs_t="struct statfs"
34567 cat >>confdefs.h <<\_ACEOF
34568#define HAVE_STATFS 1
34569_ACEOF
34570
34571else
34572 echo "$as_me:$LINENO: checking for statvfs" >&5
34573echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34574if test "${wx_cv_func_statvfs+set}" = set; then
34575 echo $ECHO_N "(cached) $ECHO_C" >&6
34576else
34577 cat >conftest.$ac_ext <<_ACEOF
34578/* confdefs.h. */
34579_ACEOF
34580cat confdefs.h >>conftest.$ac_ext
34581cat >>conftest.$ac_ext <<_ACEOF
34582/* end confdefs.h. */
34583
34584 #include <stddef.h>
34585 #include <sys/statvfs.h>
34586
34587int
34588main ()
34589{
34590
34591 statvfs("/", NULL);
34592
34593 ;
34594 return 0;
34595}
34596_ACEOF
34597rm -f conftest.$ac_objext
34598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34599 (eval $ac_compile) 2>conftest.er1
a848cd7e 34600 ac_status=$?
ac1cb8d3
VS
34601 grep -v '^ *+' conftest.er1 >conftest.err
34602 rm -f conftest.er1
34603 cat conftest.err >&5
a848cd7e
SC
34604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605 (exit $ac_status); } &&
5ff751d6 34606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34608 (eval $ac_try) 2>&5
34609 ac_status=$?
34610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34611 (exit $ac_status); }; } &&
34612 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34614 (eval $ac_try) 2>&5
34615 ac_status=$?
34616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34617 (exit $ac_status); }; }; then
34618 wx_cv_func_statvfs=yes
34619else
34620 echo "$as_me: failed program was:" >&5
34621sed 's/^/| /' conftest.$ac_ext >&5
34622
34623wx_cv_func_statvfs=no
34624
34625fi
ac1cb8d3 34626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34627
34628fi
34629echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34630echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34631
34632 if test "$wx_cv_func_statvfs" = "yes"; then
34633
34634
34635 ac_ext=cc
34636ac_cpp='$CXXCPP $CPPFLAGS'
34637ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34638ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34639ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34640
34641
34642 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34643echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34644if test "${wx_cv_type_statvfs_t+set}" = set; then
34645 echo $ECHO_N "(cached) $ECHO_C" >&6
34646else
34647 cat >conftest.$ac_ext <<_ACEOF
34648/* confdefs.h. */
34649_ACEOF
34650cat confdefs.h >>conftest.$ac_ext
34651cat >>conftest.$ac_ext <<_ACEOF
34652/* end confdefs.h. */
34653
34654 #include <sys/statvfs.h>
34655
34656int
34657main ()
34658{
34659
34660 long l;
34661 statvfs_t fs;
34662 statvfs("/", &fs);
34663 l = fs.f_bsize;
34664 l += fs.f_blocks;
34665 l += fs.f_bavail;
34666
34667 ;
34668 return 0;
34669}
34670_ACEOF
34671rm -f conftest.$ac_objext
34672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34673 (eval $ac_compile) 2>conftest.er1
a848cd7e 34674 ac_status=$?
ac1cb8d3
VS
34675 grep -v '^ *+' conftest.er1 >conftest.err
34676 rm -f conftest.er1
34677 cat conftest.err >&5
a848cd7e
SC
34678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34679 (exit $ac_status); } &&
5ff751d6 34680 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
34686 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34688 (eval $ac_try) 2>&5
34689 ac_status=$?
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); }; }; then
34692 wx_cv_type_statvfs_t=statvfs_t
34693else
34694 echo "$as_me: failed program was:" >&5
34695sed 's/^/| /' conftest.$ac_ext >&5
34696
34697
34698 cat >conftest.$ac_ext <<_ACEOF
34699/* confdefs.h. */
34700_ACEOF
34701cat confdefs.h >>conftest.$ac_ext
34702cat >>conftest.$ac_ext <<_ACEOF
34703/* end confdefs.h. */
34704
34705 #include <sys/statvfs.h>
34706
34707int
34708main ()
34709{
34710
34711 long l;
34712 struct statvfs fs;
34713 statvfs("/", &fs);
34714 l = fs.f_bsize;
34715 l += fs.f_blocks;
34716 l += fs.f_bavail;
34717
34718 ;
34719 return 0;
34720}
34721_ACEOF
34722rm -f conftest.$ac_objext
34723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34724 (eval $ac_compile) 2>conftest.er1
a848cd7e 34725 ac_status=$?
ac1cb8d3
VS
34726 grep -v '^ *+' conftest.er1 >conftest.err
34727 rm -f conftest.er1
34728 cat conftest.err >&5
a848cd7e
SC
34729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34730 (exit $ac_status); } &&
5ff751d6 34731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34733 (eval $ac_try) 2>&5
34734 ac_status=$?
34735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34736 (exit $ac_status); }; } &&
34737 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34739 (eval $ac_try) 2>&5
34740 ac_status=$?
34741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742 (exit $ac_status); }; }; then
34743 wx_cv_type_statvfs_t="struct statvfs"
34744else
34745 echo "$as_me: failed program was:" >&5
34746sed 's/^/| /' conftest.$ac_ext >&5
34747
34748wx_cv_type_statvfs_t="unknown"
34749
34750fi
ac1cb8d3 34751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34752
34753
34754fi
ac1cb8d3 34755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34756
34757fi
34758echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34759echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34760
34761 ac_ext=c
34762ac_cpp='$CPP $CPPFLAGS'
34763ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34764ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34765ac_compiler_gnu=$ac_cv_c_compiler_gnu
34766
34767
34768 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34769 cat >>confdefs.h <<\_ACEOF
34770#define HAVE_STATVFS 1
34771_ACEOF
34772
34773 fi
34774 else
34775 wx_cv_type_statvfs_t="unknown"
34776 fi
34777fi
34778
34779if test "$wx_cv_type_statvfs_t" != "unknown"; then
34780 cat >>confdefs.h <<_ACEOF
34781#define WX_STATFS_T $wx_cv_type_statvfs_t
34782_ACEOF
34783
34784else
34785 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34786echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34787fi
34788
34789if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34790
34791
34792for ac_func in fcntl flock
34793do
34794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34795echo "$as_me:$LINENO: checking for $ac_func" >&5
34796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34797if eval "test \"\${$as_ac_var+set}\" = set"; then
34798 echo $ECHO_N "(cached) $ECHO_C" >&6
34799else
34800 cat >conftest.$ac_ext <<_ACEOF
34801/* confdefs.h. */
34802_ACEOF
34803cat confdefs.h >>conftest.$ac_ext
34804cat >>conftest.$ac_ext <<_ACEOF
34805/* end confdefs.h. */
ac1cb8d3
VS
34806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34808#define $ac_func innocuous_$ac_func
34809
a848cd7e
SC
34810/* System header to define __stub macros and hopefully few prototypes,
34811 which can conflict with char $ac_func (); below.
34812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34813 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34814
a848cd7e
SC
34815#ifdef __STDC__
34816# include <limits.h>
34817#else
34818# include <assert.h>
34819#endif
ac1cb8d3
VS
34820
34821#undef $ac_func
34822
a848cd7e
SC
34823/* Override any gcc2 internal prototype to avoid an error. */
34824#ifdef __cplusplus
34825extern "C"
34826{
34827#endif
34828/* We use char because int might match the return type of a gcc2
34829 builtin and then its argument prototype would still apply. */
34830char $ac_func ();
34831/* The GNU C library defines this for functions which it implements
34832 to always fail with ENOSYS. Some functions are actually named
34833 something starting with __ and the normal name is an alias. */
34834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34835choke me
34836#else
34837char (*f) () = $ac_func;
34838#endif
34839#ifdef __cplusplus
34840}
34841#endif
34842
34843int
34844main ()
34845{
34846return f != $ac_func;
34847 ;
34848 return 0;
34849}
34850_ACEOF
34851rm -f conftest.$ac_objext conftest$ac_exeext
34852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34853 (eval $ac_link) 2>conftest.er1
a848cd7e 34854 ac_status=$?
ac1cb8d3
VS
34855 grep -v '^ *+' conftest.er1 >conftest.err
34856 rm -f conftest.er1
34857 cat conftest.err >&5
a848cd7e
SC
34858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34859 (exit $ac_status); } &&
5ff751d6 34860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34862 (eval $ac_try) 2>&5
34863 ac_status=$?
34864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34865 (exit $ac_status); }; } &&
34866 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34868 (eval $ac_try) 2>&5
34869 ac_status=$?
34870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34871 (exit $ac_status); }; }; then
34872 eval "$as_ac_var=yes"
34873else
34874 echo "$as_me: failed program was:" >&5
34875sed 's/^/| /' conftest.$ac_ext >&5
34876
34877eval "$as_ac_var=no"
34878fi
ac1cb8d3
VS
34879rm -f conftest.err conftest.$ac_objext \
34880 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34881fi
34882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34884if test `eval echo '${'$as_ac_var'}'` = yes; then
34885 cat >>confdefs.h <<_ACEOF
34886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34887_ACEOF
34888 break
34889fi
34890done
34891
34892
34893 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34894 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34895echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34896 wxUSE_SNGLINST_CHECKER=no
34897 fi
34898fi
34899
34900
34901for ac_func in timegm
34902do
34903as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34904echo "$as_me:$LINENO: checking for $ac_func" >&5
34905echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34906if eval "test \"\${$as_ac_var+set}\" = set"; then
34907 echo $ECHO_N "(cached) $ECHO_C" >&6
34908else
34909 cat >conftest.$ac_ext <<_ACEOF
34910/* confdefs.h. */
34911_ACEOF
34912cat confdefs.h >>conftest.$ac_ext
34913cat >>conftest.$ac_ext <<_ACEOF
34914/* end confdefs.h. */
ac1cb8d3
VS
34915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34917#define $ac_func innocuous_$ac_func
34918
a848cd7e
SC
34919/* System header to define __stub macros and hopefully few prototypes,
34920 which can conflict with char $ac_func (); below.
34921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34922 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34923
a848cd7e
SC
34924#ifdef __STDC__
34925# include <limits.h>
34926#else
34927# include <assert.h>
34928#endif
ac1cb8d3
VS
34929
34930#undef $ac_func
34931
a848cd7e
SC
34932/* Override any gcc2 internal prototype to avoid an error. */
34933#ifdef __cplusplus
34934extern "C"
34935{
34936#endif
34937/* We use char because int might match the return type of a gcc2
34938 builtin and then its argument prototype would still apply. */
34939char $ac_func ();
34940/* The GNU C library defines this for functions which it implements
34941 to always fail with ENOSYS. Some functions are actually named
34942 something starting with __ and the normal name is an alias. */
34943#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34944choke me
34945#else
34946char (*f) () = $ac_func;
34947#endif
34948#ifdef __cplusplus
34949}
34950#endif
34951
34952int
34953main ()
34954{
34955return f != $ac_func;
34956 ;
34957 return 0;
34958}
34959_ACEOF
34960rm -f conftest.$ac_objext conftest$ac_exeext
34961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34962 (eval $ac_link) 2>conftest.er1
a848cd7e 34963 ac_status=$?
ac1cb8d3
VS
34964 grep -v '^ *+' conftest.er1 >conftest.err
34965 rm -f conftest.er1
34966 cat conftest.err >&5
a848cd7e
SC
34967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34968 (exit $ac_status); } &&
5ff751d6 34969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34971 (eval $ac_try) 2>&5
34972 ac_status=$?
34973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34974 (exit $ac_status); }; } &&
34975 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34977 (eval $ac_try) 2>&5
34978 ac_status=$?
34979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34980 (exit $ac_status); }; }; then
34981 eval "$as_ac_var=yes"
34982else
34983 echo "$as_me: failed program was:" >&5
34984sed 's/^/| /' conftest.$ac_ext >&5
34985
34986eval "$as_ac_var=no"
34987fi
ac1cb8d3
VS
34988rm -f conftest.err conftest.$ac_objext \
34989 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34990fi
34991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34992echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34993if test `eval echo '${'$as_ac_var'}'` = yes; then
34994 cat >>confdefs.h <<_ACEOF
34995#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34996_ACEOF
34997
34998fi
34999done
35000
35001
35002
35003
35004for ac_func in putenv setenv
35005do
35006as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35007echo "$as_me:$LINENO: checking for $ac_func" >&5
35008echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35009if eval "test \"\${$as_ac_var+set}\" = set"; then
35010 echo $ECHO_N "(cached) $ECHO_C" >&6
35011else
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. */
ac1cb8d3
VS
35018/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35020#define $ac_func innocuous_$ac_func
35021
a848cd7e
SC
35022/* System header to define __stub macros and hopefully few prototypes,
35023 which can conflict with char $ac_func (); below.
35024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35025 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35026
a848cd7e
SC
35027#ifdef __STDC__
35028# include <limits.h>
35029#else
35030# include <assert.h>
35031#endif
ac1cb8d3
VS
35032
35033#undef $ac_func
35034
a848cd7e
SC
35035/* Override any gcc2 internal prototype to avoid an error. */
35036#ifdef __cplusplus
35037extern "C"
35038{
35039#endif
35040/* We use char because int might match the return type of a gcc2
35041 builtin and then its argument prototype would still apply. */
35042char $ac_func ();
35043/* The GNU C library defines this for functions which it implements
35044 to always fail with ENOSYS. Some functions are actually named
35045 something starting with __ and the normal name is an alias. */
35046#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35047choke me
35048#else
35049char (*f) () = $ac_func;
35050#endif
35051#ifdef __cplusplus
35052}
35053#endif
35054
35055int
35056main ()
35057{
35058return f != $ac_func;
35059 ;
35060 return 0;
35061}
35062_ACEOF
35063rm -f conftest.$ac_objext conftest$ac_exeext
35064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35065 (eval $ac_link) 2>conftest.er1
a848cd7e 35066 ac_status=$?
ac1cb8d3
VS
35067 grep -v '^ *+' conftest.er1 >conftest.err
35068 rm -f conftest.er1
35069 cat conftest.err >&5
a848cd7e
SC
35070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35071 (exit $ac_status); } &&
5ff751d6 35072 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35074 (eval $ac_try) 2>&5
35075 ac_status=$?
35076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35077 (exit $ac_status); }; } &&
35078 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35080 (eval $ac_try) 2>&5
35081 ac_status=$?
35082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35083 (exit $ac_status); }; }; then
35084 eval "$as_ac_var=yes"
35085else
35086 echo "$as_me: failed program was:" >&5
35087sed 's/^/| /' conftest.$ac_ext >&5
35088
35089eval "$as_ac_var=no"
35090fi
ac1cb8d3
VS
35091rm -f conftest.err conftest.$ac_objext \
35092 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35093fi
35094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35095echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35096if test `eval echo '${'$as_ac_var'}'` = yes; then
35097 cat >>confdefs.h <<_ACEOF
35098#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35099_ACEOF
35100 break
35101fi
35102done
35103
35104
35105HAVE_SOME_SLEEP_FUNC=0
35106if test "$USE_BEOS" = 1; then
35107 cat >>confdefs.h <<\_ACEOF
35108#define HAVE_SLEEP 1
35109_ACEOF
35110
35111 HAVE_SOME_SLEEP_FUNC=1
35112fi
35113
35114if test "$USE_DARWIN" = 1; then
35115 cat >>confdefs.h <<\_ACEOF
35116#define HAVE_USLEEP 1
35117_ACEOF
35118
35119 HAVE_SOME_SLEEP_FUNC=1
35120fi
35121
35122if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35123 POSIX4_LINK=
35124
35125for ac_func in nanosleep
35126do
35127as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35128echo "$as_me:$LINENO: checking for $ac_func" >&5
35129echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35130if eval "test \"\${$as_ac_var+set}\" = set"; then
35131 echo $ECHO_N "(cached) $ECHO_C" >&6
35132else
35133 cat >conftest.$ac_ext <<_ACEOF
35134/* confdefs.h. */
35135_ACEOF
35136cat confdefs.h >>conftest.$ac_ext
35137cat >>conftest.$ac_ext <<_ACEOF
35138/* end confdefs.h. */
ac1cb8d3
VS
35139/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35141#define $ac_func innocuous_$ac_func
35142
a848cd7e
SC
35143/* System header to define __stub macros and hopefully few prototypes,
35144 which can conflict with char $ac_func (); below.
35145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35146 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35147
a848cd7e
SC
35148#ifdef __STDC__
35149# include <limits.h>
35150#else
35151# include <assert.h>
35152#endif
ac1cb8d3
VS
35153
35154#undef $ac_func
35155
a848cd7e
SC
35156/* Override any gcc2 internal prototype to avoid an error. */
35157#ifdef __cplusplus
35158extern "C"
35159{
35160#endif
35161/* We use char because int might match the return type of a gcc2
35162 builtin and then its argument prototype would still apply. */
35163char $ac_func ();
35164/* The GNU C library defines this for functions which it implements
35165 to always fail with ENOSYS. Some functions are actually named
35166 something starting with __ and the normal name is an alias. */
35167#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35168choke me
35169#else
35170char (*f) () = $ac_func;
35171#endif
35172#ifdef __cplusplus
35173}
35174#endif
35175
35176int
35177main ()
35178{
35179return f != $ac_func;
35180 ;
35181 return 0;
35182}
35183_ACEOF
35184rm -f conftest.$ac_objext conftest$ac_exeext
35185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35186 (eval $ac_link) 2>conftest.er1
a848cd7e 35187 ac_status=$?
ac1cb8d3
VS
35188 grep -v '^ *+' conftest.er1 >conftest.err
35189 rm -f conftest.er1
35190 cat conftest.err >&5
a848cd7e
SC
35191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35192 (exit $ac_status); } &&
5ff751d6 35193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35195 (eval $ac_try) 2>&5
35196 ac_status=$?
35197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35198 (exit $ac_status); }; } &&
35199 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35201 (eval $ac_try) 2>&5
35202 ac_status=$?
35203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35204 (exit $ac_status); }; }; then
35205 eval "$as_ac_var=yes"
35206else
35207 echo "$as_me: failed program was:" >&5
35208sed 's/^/| /' conftest.$ac_ext >&5
35209
35210eval "$as_ac_var=no"
35211fi
ac1cb8d3
VS
35212rm -f conftest.err conftest.$ac_objext \
35213 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35214fi
35215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35216echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35217if test `eval echo '${'$as_ac_var'}'` = yes; then
35218 cat >>confdefs.h <<_ACEOF
35219#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35220_ACEOF
35221 cat >>confdefs.h <<\_ACEOF
35222#define HAVE_NANOSLEEP 1
35223_ACEOF
35224
35225else
35226
35227 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35228echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35229if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35230 echo $ECHO_N "(cached) $ECHO_C" >&6
35231else
35232 ac_check_lib_save_LIBS=$LIBS
35233LIBS="-lposix4 $LIBS"
35234cat >conftest.$ac_ext <<_ACEOF
35235/* confdefs.h. */
35236_ACEOF
35237cat confdefs.h >>conftest.$ac_ext
35238cat >>conftest.$ac_ext <<_ACEOF
35239/* end confdefs.h. */
35240
35241/* Override any gcc2 internal prototype to avoid an error. */
35242#ifdef __cplusplus
35243extern "C"
35244#endif
35245/* We use char because int might match the return type of a gcc2
35246 builtin and then its argument prototype would still apply. */
35247char nanosleep ();
35248int
35249main ()
35250{
35251nanosleep ();
35252 ;
35253 return 0;
35254}
35255_ACEOF
35256rm -f conftest.$ac_objext conftest$ac_exeext
35257if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35258 (eval $ac_link) 2>conftest.er1
a848cd7e 35259 ac_status=$?
ac1cb8d3
VS
35260 grep -v '^ *+' conftest.er1 >conftest.err
35261 rm -f conftest.er1
35262 cat conftest.err >&5
a848cd7e
SC
35263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35264 (exit $ac_status); } &&
5ff751d6 35265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35267 (eval $ac_try) 2>&5
35268 ac_status=$?
35269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35270 (exit $ac_status); }; } &&
35271 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35273 (eval $ac_try) 2>&5
35274 ac_status=$?
35275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35276 (exit $ac_status); }; }; then
35277 ac_cv_lib_posix4_nanosleep=yes
35278else
35279 echo "$as_me: failed program was:" >&5
35280sed 's/^/| /' conftest.$ac_ext >&5
35281
35282ac_cv_lib_posix4_nanosleep=no
35283fi
ac1cb8d3
VS
35284rm -f conftest.err conftest.$ac_objext \
35285 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35286LIBS=$ac_check_lib_save_LIBS
35287fi
35288echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35289echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35290if test $ac_cv_lib_posix4_nanosleep = yes; then
35291
35292 cat >>confdefs.h <<\_ACEOF
35293#define HAVE_NANOSLEEP 1
35294_ACEOF
35295
35296 POSIX4_LINK=" -lposix4"
35297
35298else
35299
35300
35301for ac_func in usleep
35302do
35303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35304echo "$as_me:$LINENO: checking for $ac_func" >&5
35305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35306if eval "test \"\${$as_ac_var+set}\" = set"; then
35307 echo $ECHO_N "(cached) $ECHO_C" >&6
35308else
35309 cat >conftest.$ac_ext <<_ACEOF
35310/* confdefs.h. */
35311_ACEOF
35312cat confdefs.h >>conftest.$ac_ext
35313cat >>conftest.$ac_ext <<_ACEOF
35314/* end confdefs.h. */
ac1cb8d3
VS
35315/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35317#define $ac_func innocuous_$ac_func
35318
a848cd7e
SC
35319/* System header to define __stub macros and hopefully few prototypes,
35320 which can conflict with char $ac_func (); below.
35321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35322 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35323
a848cd7e
SC
35324#ifdef __STDC__
35325# include <limits.h>
35326#else
35327# include <assert.h>
35328#endif
ac1cb8d3
VS
35329
35330#undef $ac_func
35331
a848cd7e
SC
35332/* Override any gcc2 internal prototype to avoid an error. */
35333#ifdef __cplusplus
35334extern "C"
35335{
35336#endif
35337/* We use char because int might match the return type of a gcc2
35338 builtin and then its argument prototype would still apply. */
35339char $ac_func ();
35340/* The GNU C library defines this for functions which it implements
35341 to always fail with ENOSYS. Some functions are actually named
35342 something starting with __ and the normal name is an alias. */
35343#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35344choke me
35345#else
35346char (*f) () = $ac_func;
35347#endif
35348#ifdef __cplusplus
35349}
35350#endif
35351
35352int
35353main ()
35354{
35355return f != $ac_func;
35356 ;
35357 return 0;
35358}
35359_ACEOF
35360rm -f conftest.$ac_objext conftest$ac_exeext
35361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35362 (eval $ac_link) 2>conftest.er1
a848cd7e 35363 ac_status=$?
ac1cb8d3
VS
35364 grep -v '^ *+' conftest.er1 >conftest.err
35365 rm -f conftest.er1
35366 cat conftest.err >&5
a848cd7e
SC
35367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35368 (exit $ac_status); } &&
5ff751d6 35369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35371 (eval $ac_try) 2>&5
35372 ac_status=$?
35373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35374 (exit $ac_status); }; } &&
35375 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35377 (eval $ac_try) 2>&5
35378 ac_status=$?
35379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35380 (exit $ac_status); }; }; then
35381 eval "$as_ac_var=yes"
35382else
35383 echo "$as_me: failed program was:" >&5
35384sed 's/^/| /' conftest.$ac_ext >&5
35385
35386eval "$as_ac_var=no"
35387fi
ac1cb8d3
VS
35388rm -f conftest.err conftest.$ac_objext \
35389 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35390fi
35391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35392echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35393if test `eval echo '${'$as_ac_var'}'` = yes; then
35394 cat >>confdefs.h <<_ACEOF
35395#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35396_ACEOF
35397 cat >>confdefs.h <<\_ACEOF
35398#define HAVE_USLEEP 1
35399_ACEOF
35400
35401else
35402 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35403echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35404
35405fi
35406done
35407
35408
35409
35410fi
35411
35412
35413
35414fi
35415done
35416
35417fi
35418
35419
35420
35421for ac_func in uname gethostname
35422do
35423as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35424echo "$as_me:$LINENO: checking for $ac_func" >&5
35425echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35426if eval "test \"\${$as_ac_var+set}\" = set"; then
35427 echo $ECHO_N "(cached) $ECHO_C" >&6
35428else
35429 cat >conftest.$ac_ext <<_ACEOF
35430/* confdefs.h. */
35431_ACEOF
35432cat confdefs.h >>conftest.$ac_ext
35433cat >>conftest.$ac_ext <<_ACEOF
35434/* end confdefs.h. */
ac1cb8d3
VS
35435/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35436 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35437#define $ac_func innocuous_$ac_func
35438
a848cd7e
SC
35439/* System header to define __stub macros and hopefully few prototypes,
35440 which can conflict with char $ac_func (); below.
35441 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35442 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35443
a848cd7e
SC
35444#ifdef __STDC__
35445# include <limits.h>
35446#else
35447# include <assert.h>
35448#endif
ac1cb8d3
VS
35449
35450#undef $ac_func
35451
a848cd7e
SC
35452/* Override any gcc2 internal prototype to avoid an error. */
35453#ifdef __cplusplus
35454extern "C"
35455{
35456#endif
35457/* We use char because int might match the return type of a gcc2
35458 builtin and then its argument prototype would still apply. */
35459char $ac_func ();
35460/* The GNU C library defines this for functions which it implements
35461 to always fail with ENOSYS. Some functions are actually named
35462 something starting with __ and the normal name is an alias. */
35463#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35464choke me
35465#else
35466char (*f) () = $ac_func;
35467#endif
35468#ifdef __cplusplus
35469}
35470#endif
35471
35472int
35473main ()
35474{
35475return f != $ac_func;
35476 ;
35477 return 0;
35478}
35479_ACEOF
35480rm -f conftest.$ac_objext conftest$ac_exeext
35481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35482 (eval $ac_link) 2>conftest.er1
a848cd7e 35483 ac_status=$?
ac1cb8d3
VS
35484 grep -v '^ *+' conftest.er1 >conftest.err
35485 rm -f conftest.er1
35486 cat conftest.err >&5
a848cd7e
SC
35487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35488 (exit $ac_status); } &&
5ff751d6 35489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35491 (eval $ac_try) 2>&5
35492 ac_status=$?
35493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35494 (exit $ac_status); }; } &&
35495 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35497 (eval $ac_try) 2>&5
35498 ac_status=$?
35499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35500 (exit $ac_status); }; }; then
35501 eval "$as_ac_var=yes"
35502else
35503 echo "$as_me: failed program was:" >&5
35504sed 's/^/| /' conftest.$ac_ext >&5
35505
35506eval "$as_ac_var=no"
35507fi
ac1cb8d3
VS
35508rm -f conftest.err conftest.$ac_objext \
35509 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35510fi
35511echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35512echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35513if test `eval echo '${'$as_ac_var'}'` = yes; then
35514 cat >>confdefs.h <<_ACEOF
35515#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35516_ACEOF
35517 break
35518fi
35519done
35520
35521
35522
35523
35524ac_ext=cc
35525ac_cpp='$CXXCPP $CPPFLAGS'
35526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35529
35530
35531
35532for ac_func in strtok_r
35533do
35534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35535echo "$as_me:$LINENO: checking for $ac_func" >&5
35536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35537if eval "test \"\${$as_ac_var+set}\" = set"; then
35538 echo $ECHO_N "(cached) $ECHO_C" >&6
35539else
35540 cat >conftest.$ac_ext <<_ACEOF
35541/* confdefs.h. */
35542_ACEOF
35543cat confdefs.h >>conftest.$ac_ext
35544cat >>conftest.$ac_ext <<_ACEOF
35545/* end confdefs.h. */
ac1cb8d3
VS
35546/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35548#define $ac_func innocuous_$ac_func
35549
a848cd7e
SC
35550/* System header to define __stub macros and hopefully few prototypes,
35551 which can conflict with char $ac_func (); below.
35552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35553 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35554
a848cd7e
SC
35555#ifdef __STDC__
35556# include <limits.h>
35557#else
35558# include <assert.h>
35559#endif
ac1cb8d3
VS
35560
35561#undef $ac_func
35562
a848cd7e
SC
35563/* Override any gcc2 internal prototype to avoid an error. */
35564#ifdef __cplusplus
35565extern "C"
35566{
35567#endif
35568/* We use char because int might match the return type of a gcc2
35569 builtin and then its argument prototype would still apply. */
35570char $ac_func ();
35571/* The GNU C library defines this for functions which it implements
35572 to always fail with ENOSYS. Some functions are actually named
35573 something starting with __ and the normal name is an alias. */
35574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35575choke me
35576#else
35577char (*f) () = $ac_func;
35578#endif
35579#ifdef __cplusplus
35580}
35581#endif
35582
35583int
35584main ()
35585{
35586return f != $ac_func;
35587 ;
35588 return 0;
35589}
35590_ACEOF
35591rm -f conftest.$ac_objext conftest$ac_exeext
35592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35593 (eval $ac_link) 2>conftest.er1
a848cd7e 35594 ac_status=$?
ac1cb8d3
VS
35595 grep -v '^ *+' conftest.er1 >conftest.err
35596 rm -f conftest.er1
35597 cat conftest.err >&5
a848cd7e
SC
35598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35599 (exit $ac_status); } &&
5ff751d6 35600 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35602 (eval $ac_try) 2>&5
35603 ac_status=$?
35604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35605 (exit $ac_status); }; } &&
35606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35608 (eval $ac_try) 2>&5
35609 ac_status=$?
35610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35611 (exit $ac_status); }; }; then
35612 eval "$as_ac_var=yes"
35613else
35614 echo "$as_me: failed program was:" >&5
35615sed 's/^/| /' conftest.$ac_ext >&5
35616
35617eval "$as_ac_var=no"
35618fi
ac1cb8d3
VS
35619rm -f conftest.err conftest.$ac_objext \
35620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35621fi
35622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35623echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35624if test `eval echo '${'$as_ac_var'}'` = yes; then
35625 cat >>confdefs.h <<_ACEOF
35626#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35627_ACEOF
35628
35629fi
35630done
35631
35632
35633ac_ext=c
35634ac_cpp='$CPP $CPPFLAGS'
35635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35637ac_compiler_gnu=$ac_cv_c_compiler_gnu
35638
35639
35640INET_LINK=
35641
35642for ac_func in inet_addr
35643do
35644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35645echo "$as_me:$LINENO: checking for $ac_func" >&5
35646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35647if eval "test \"\${$as_ac_var+set}\" = set"; then
35648 echo $ECHO_N "(cached) $ECHO_C" >&6
35649else
35650 cat >conftest.$ac_ext <<_ACEOF
35651/* confdefs.h. */
35652_ACEOF
35653cat confdefs.h >>conftest.$ac_ext
35654cat >>conftest.$ac_ext <<_ACEOF
35655/* end confdefs.h. */
ac1cb8d3
VS
35656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35658#define $ac_func innocuous_$ac_func
35659
a848cd7e
SC
35660/* System header to define __stub macros and hopefully few prototypes,
35661 which can conflict with char $ac_func (); below.
35662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35663 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35664
a848cd7e
SC
35665#ifdef __STDC__
35666# include <limits.h>
35667#else
35668# include <assert.h>
35669#endif
ac1cb8d3
VS
35670
35671#undef $ac_func
35672
a848cd7e
SC
35673/* Override any gcc2 internal prototype to avoid an error. */
35674#ifdef __cplusplus
35675extern "C"
35676{
35677#endif
35678/* We use char because int might match the return type of a gcc2
35679 builtin and then its argument prototype would still apply. */
35680char $ac_func ();
35681/* The GNU C library defines this for functions which it implements
35682 to always fail with ENOSYS. Some functions are actually named
35683 something starting with __ and the normal name is an alias. */
35684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35685choke me
35686#else
35687char (*f) () = $ac_func;
35688#endif
35689#ifdef __cplusplus
35690}
35691#endif
35692
35693int
35694main ()
35695{
35696return f != $ac_func;
35697 ;
35698 return 0;
35699}
35700_ACEOF
35701rm -f conftest.$ac_objext conftest$ac_exeext
35702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35703 (eval $ac_link) 2>conftest.er1
a848cd7e 35704 ac_status=$?
ac1cb8d3
VS
35705 grep -v '^ *+' conftest.er1 >conftest.err
35706 rm -f conftest.er1
35707 cat conftest.err >&5
a848cd7e
SC
35708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35709 (exit $ac_status); } &&
5ff751d6 35710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35712 (eval $ac_try) 2>&5
35713 ac_status=$?
35714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35715 (exit $ac_status); }; } &&
35716 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35718 (eval $ac_try) 2>&5
35719 ac_status=$?
35720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721 (exit $ac_status); }; }; then
35722 eval "$as_ac_var=yes"
35723else
35724 echo "$as_me: failed program was:" >&5
35725sed 's/^/| /' conftest.$ac_ext >&5
35726
35727eval "$as_ac_var=no"
35728fi
ac1cb8d3
VS
35729rm -f conftest.err conftest.$ac_objext \
35730 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35731fi
35732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35733echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35734if test `eval echo '${'$as_ac_var'}'` = yes; then
35735 cat >>confdefs.h <<_ACEOF
35736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35737_ACEOF
35738 cat >>confdefs.h <<\_ACEOF
35739#define HAVE_INET_ADDR 1
35740_ACEOF
35741
35742else
35743
35744 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35745echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35746if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35747 echo $ECHO_N "(cached) $ECHO_C" >&6
35748else
35749 ac_check_lib_save_LIBS=$LIBS
35750LIBS="-lnsl $LIBS"
35751cat >conftest.$ac_ext <<_ACEOF
35752/* confdefs.h. */
35753_ACEOF
35754cat confdefs.h >>conftest.$ac_ext
35755cat >>conftest.$ac_ext <<_ACEOF
35756/* end confdefs.h. */
35757
35758/* Override any gcc2 internal prototype to avoid an error. */
35759#ifdef __cplusplus
35760extern "C"
35761#endif
35762/* We use char because int might match the return type of a gcc2
35763 builtin and then its argument prototype would still apply. */
35764char inet_addr ();
35765int
35766main ()
35767{
35768inet_addr ();
35769 ;
35770 return 0;
35771}
35772_ACEOF
35773rm -f conftest.$ac_objext conftest$ac_exeext
35774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35775 (eval $ac_link) 2>conftest.er1
a848cd7e 35776 ac_status=$?
ac1cb8d3
VS
35777 grep -v '^ *+' conftest.er1 >conftest.err
35778 rm -f conftest.er1
35779 cat conftest.err >&5
a848cd7e
SC
35780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781 (exit $ac_status); } &&
5ff751d6 35782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35784 (eval $ac_try) 2>&5
35785 ac_status=$?
35786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35787 (exit $ac_status); }; } &&
35788 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35790 (eval $ac_try) 2>&5
35791 ac_status=$?
35792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35793 (exit $ac_status); }; }; then
35794 ac_cv_lib_nsl_inet_addr=yes
35795else
35796 echo "$as_me: failed program was:" >&5
35797sed 's/^/| /' conftest.$ac_ext >&5
35798
35799ac_cv_lib_nsl_inet_addr=no
35800fi
ac1cb8d3
VS
35801rm -f conftest.err conftest.$ac_objext \
35802 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35803LIBS=$ac_check_lib_save_LIBS
35804fi
35805echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35806echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35807if test $ac_cv_lib_nsl_inet_addr = yes; then
35808 INET_LINK="nsl"
35809else
35810
35811 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35812echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35813if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35814 echo $ECHO_N "(cached) $ECHO_C" >&6
35815else
35816 ac_check_lib_save_LIBS=$LIBS
35817LIBS="-lresolv $LIBS"
35818cat >conftest.$ac_ext <<_ACEOF
35819/* confdefs.h. */
35820_ACEOF
35821cat confdefs.h >>conftest.$ac_ext
35822cat >>conftest.$ac_ext <<_ACEOF
35823/* end confdefs.h. */
35824
35825/* Override any gcc2 internal prototype to avoid an error. */
35826#ifdef __cplusplus
35827extern "C"
35828#endif
35829/* We use char because int might match the return type of a gcc2
35830 builtin and then its argument prototype would still apply. */
35831char inet_addr ();
35832int
35833main ()
35834{
35835inet_addr ();
35836 ;
35837 return 0;
35838}
35839_ACEOF
35840rm -f conftest.$ac_objext conftest$ac_exeext
35841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35842 (eval $ac_link) 2>conftest.er1
a848cd7e 35843 ac_status=$?
ac1cb8d3
VS
35844 grep -v '^ *+' conftest.er1 >conftest.err
35845 rm -f conftest.er1
35846 cat conftest.err >&5
a848cd7e
SC
35847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35848 (exit $ac_status); } &&
5ff751d6 35849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35851 (eval $ac_try) 2>&5
35852 ac_status=$?
35853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35854 (exit $ac_status); }; } &&
35855 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35857 (eval $ac_try) 2>&5
35858 ac_status=$?
35859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860 (exit $ac_status); }; }; then
35861 ac_cv_lib_resolv_inet_addr=yes
35862else
35863 echo "$as_me: failed program was:" >&5
35864sed 's/^/| /' conftest.$ac_ext >&5
35865
35866ac_cv_lib_resolv_inet_addr=no
35867fi
ac1cb8d3
VS
35868rm -f conftest.err conftest.$ac_objext \
35869 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35870LIBS=$ac_check_lib_save_LIBS
35871fi
35872echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35873echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35874if test $ac_cv_lib_resolv_inet_addr = yes; then
35875 INET_LINK="resolv"
35876else
35877
35878 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35879echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35880if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35881 echo $ECHO_N "(cached) $ECHO_C" >&6
35882else
35883 ac_check_lib_save_LIBS=$LIBS
35884LIBS="-lsocket $LIBS"
35885cat >conftest.$ac_ext <<_ACEOF
35886/* confdefs.h. */
35887_ACEOF
35888cat confdefs.h >>conftest.$ac_ext
35889cat >>conftest.$ac_ext <<_ACEOF
35890/* end confdefs.h. */
35891
35892/* Override any gcc2 internal prototype to avoid an error. */
35893#ifdef __cplusplus
35894extern "C"
35895#endif
35896/* We use char because int might match the return type of a gcc2
35897 builtin and then its argument prototype would still apply. */
35898char inet_addr ();
35899int
35900main ()
35901{
35902inet_addr ();
35903 ;
35904 return 0;
35905}
35906_ACEOF
35907rm -f conftest.$ac_objext conftest$ac_exeext
35908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35909 (eval $ac_link) 2>conftest.er1
a848cd7e 35910 ac_status=$?
ac1cb8d3
VS
35911 grep -v '^ *+' conftest.er1 >conftest.err
35912 rm -f conftest.er1
35913 cat conftest.err >&5
a848cd7e
SC
35914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915 (exit $ac_status); } &&
5ff751d6 35916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35918 (eval $ac_try) 2>&5
35919 ac_status=$?
35920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35921 (exit $ac_status); }; } &&
35922 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35924 (eval $ac_try) 2>&5
35925 ac_status=$?
35926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35927 (exit $ac_status); }; }; then
35928 ac_cv_lib_socket_inet_addr=yes
35929else
35930 echo "$as_me: failed program was:" >&5
35931sed 's/^/| /' conftest.$ac_ext >&5
35932
35933ac_cv_lib_socket_inet_addr=no
35934fi
ac1cb8d3
VS
35935rm -f conftest.err conftest.$ac_objext \
35936 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35937LIBS=$ac_check_lib_save_LIBS
35938fi
35939echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35940echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35941if test $ac_cv_lib_socket_inet_addr = yes; then
35942 INET_LINK="socket"
35943
35944fi
35945
35946
35947
35948fi
35949
35950
35951
35952fi
35953
35954
35955
35956fi
35957done
35958
35959
35960
35961for ac_func in inet_aton
35962do
35963as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35964echo "$as_me:$LINENO: checking for $ac_func" >&5
35965echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35966if eval "test \"\${$as_ac_var+set}\" = set"; then
35967 echo $ECHO_N "(cached) $ECHO_C" >&6
35968else
35969 cat >conftest.$ac_ext <<_ACEOF
35970/* confdefs.h. */
35971_ACEOF
35972cat confdefs.h >>conftest.$ac_ext
35973cat >>conftest.$ac_ext <<_ACEOF
35974/* end confdefs.h. */
ac1cb8d3
VS
35975/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35977#define $ac_func innocuous_$ac_func
35978
a848cd7e
SC
35979/* System header to define __stub macros and hopefully few prototypes,
35980 which can conflict with char $ac_func (); below.
35981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35982 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35983
a848cd7e
SC
35984#ifdef __STDC__
35985# include <limits.h>
35986#else
35987# include <assert.h>
35988#endif
ac1cb8d3
VS
35989
35990#undef $ac_func
35991
a848cd7e
SC
35992/* Override any gcc2 internal prototype to avoid an error. */
35993#ifdef __cplusplus
35994extern "C"
35995{
35996#endif
35997/* We use char because int might match the return type of a gcc2
35998 builtin and then its argument prototype would still apply. */
35999char $ac_func ();
36000/* The GNU C library defines this for functions which it implements
36001 to always fail with ENOSYS. Some functions are actually named
36002 something starting with __ and the normal name is an alias. */
36003#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36004choke me
36005#else
36006char (*f) () = $ac_func;
36007#endif
36008#ifdef __cplusplus
36009}
36010#endif
36011
36012int
36013main ()
36014{
36015return f != $ac_func;
36016 ;
36017 return 0;
36018}
36019_ACEOF
36020rm -f conftest.$ac_objext conftest$ac_exeext
36021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36022 (eval $ac_link) 2>conftest.er1
a848cd7e 36023 ac_status=$?
ac1cb8d3
VS
36024 grep -v '^ *+' conftest.er1 >conftest.err
36025 rm -f conftest.er1
36026 cat conftest.err >&5
a848cd7e
SC
36027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36028 (exit $ac_status); } &&
5ff751d6 36029 { ac_try='test -z "$ac_c_werror_flag" || 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_exeext'
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 eval "$as_ac_var=yes"
36042else
36043 echo "$as_me: failed program was:" >&5
36044sed 's/^/| /' conftest.$ac_ext >&5
36045
36046eval "$as_ac_var=no"
36047fi
ac1cb8d3
VS
36048rm -f conftest.err conftest.$ac_objext \
36049 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36050fi
36051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36052echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36053if test `eval echo '${'$as_ac_var'}'` = yes; then
36054 cat >>confdefs.h <<_ACEOF
36055#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36056_ACEOF
36057 cat >>confdefs.h <<\_ACEOF
36058#define HAVE_INET_ATON 1
36059_ACEOF
36060
36061else
36062
36063 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36064echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36065echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36066if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36067 echo $ECHO_N "(cached) $ECHO_C" >&6
36068else
36069 ac_check_lib_save_LIBS=$LIBS
36070LIBS="-l$INET_LINK $LIBS"
36071cat >conftest.$ac_ext <<_ACEOF
36072/* confdefs.h. */
36073_ACEOF
36074cat confdefs.h >>conftest.$ac_ext
36075cat >>conftest.$ac_ext <<_ACEOF
36076/* end confdefs.h. */
36077
36078/* Override any gcc2 internal prototype to avoid an error. */
36079#ifdef __cplusplus
36080extern "C"
36081#endif
36082/* We use char because int might match the return type of a gcc2
36083 builtin and then its argument prototype would still apply. */
36084char inet_aton ();
36085int
36086main ()
36087{
36088inet_aton ();
36089 ;
36090 return 0;
36091}
36092_ACEOF
36093rm -f conftest.$ac_objext conftest$ac_exeext
36094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36095 (eval $ac_link) 2>conftest.er1
a848cd7e 36096 ac_status=$?
ac1cb8d3
VS
36097 grep -v '^ *+' conftest.er1 >conftest.err
36098 rm -f conftest.er1
36099 cat conftest.err >&5
a848cd7e
SC
36100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36101 (exit $ac_status); } &&
5ff751d6 36102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36104 (eval $ac_try) 2>&5
36105 ac_status=$?
36106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36107 (exit $ac_status); }; } &&
36108 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36110 (eval $ac_try) 2>&5
36111 ac_status=$?
36112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36113 (exit $ac_status); }; }; then
36114 eval "$as_ac_Lib=yes"
36115else
36116 echo "$as_me: failed program was:" >&5
36117sed 's/^/| /' conftest.$ac_ext >&5
36118
36119eval "$as_ac_Lib=no"
36120fi
ac1cb8d3
VS
36121rm -f conftest.err conftest.$ac_objext \
36122 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36123LIBS=$ac_check_lib_save_LIBS
36124fi
36125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36126echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36127if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36128 cat >>confdefs.h <<\_ACEOF
36129#define HAVE_INET_ATON 1
36130_ACEOF
36131
36132fi
36133
36134
36135fi
36136done
36137
36138
36139if test "x$INET_LINK" != "x"; then
36140 cat >>confdefs.h <<\_ACEOF
36141#define HAVE_INET_ADDR 1
36142_ACEOF
36143
36144 INET_LINK=" -l$INET_LINK"
36145fi
36146
36147fi
36148
36149
36150
36151EXTRALIBS_ESD=
36152echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36153echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36154if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36155 echo $ECHO_N "(cached) $ECHO_C" >&6
36156else
36157 ac_check_lib_save_LIBS=$LIBS
36158LIBS="-lesd $LIBS"
36159cat >conftest.$ac_ext <<_ACEOF
36160/* confdefs.h. */
36161_ACEOF
36162cat confdefs.h >>conftest.$ac_ext
36163cat >>conftest.$ac_ext <<_ACEOF
36164/* end confdefs.h. */
36165
36166/* Override any gcc2 internal prototype to avoid an error. */
36167#ifdef __cplusplus
36168extern "C"
36169#endif
36170/* We use char because int might match the return type of a gcc2
36171 builtin and then its argument prototype would still apply. */
36172char esd_close ();
36173int
36174main ()
36175{
36176esd_close ();
36177 ;
36178 return 0;
36179}
36180_ACEOF
36181rm -f conftest.$ac_objext conftest$ac_exeext
36182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36183 (eval $ac_link) 2>conftest.er1
a848cd7e 36184 ac_status=$?
ac1cb8d3
VS
36185 grep -v '^ *+' conftest.er1 >conftest.err
36186 rm -f conftest.er1
36187 cat conftest.err >&5
a848cd7e
SC
36188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36189 (exit $ac_status); } &&
5ff751d6 36190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36192 (eval $ac_try) 2>&5
36193 ac_status=$?
36194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36195 (exit $ac_status); }; } &&
36196 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36198 (eval $ac_try) 2>&5
36199 ac_status=$?
36200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36201 (exit $ac_status); }; }; then
36202 ac_cv_lib_esd_esd_close=yes
36203else
36204 echo "$as_me: failed program was:" >&5
36205sed 's/^/| /' conftest.$ac_ext >&5
36206
36207ac_cv_lib_esd_esd_close=no
36208fi
ac1cb8d3
VS
36209rm -f conftest.err conftest.$ac_objext \
36210 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36211LIBS=$ac_check_lib_save_LIBS
36212fi
36213echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36214echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36215if test $ac_cv_lib_esd_esd_close = yes; then
36216
36217
36218for ac_header in esd.h
36219do
36220as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36221if eval "test \"\${$as_ac_Header+set}\" = set"; then
36222 echo "$as_me:$LINENO: checking for $ac_header" >&5
36223echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36224if eval "test \"\${$as_ac_Header+set}\" = set"; then
36225 echo $ECHO_N "(cached) $ECHO_C" >&6
36226fi
36227echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36228echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36229else
36230 # Is the header compilable?
36231echo "$as_me:$LINENO: checking $ac_header usability" >&5
36232echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36233cat >conftest.$ac_ext <<_ACEOF
36234/* confdefs.h. */
36235_ACEOF
36236cat confdefs.h >>conftest.$ac_ext
36237cat >>conftest.$ac_ext <<_ACEOF
36238/* end confdefs.h. */
36239$ac_includes_default
36240#include <$ac_header>
36241_ACEOF
36242rm -f conftest.$ac_objext
36243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36244 (eval $ac_compile) 2>conftest.er1
a848cd7e 36245 ac_status=$?
ac1cb8d3
VS
36246 grep -v '^ *+' conftest.er1 >conftest.err
36247 rm -f conftest.er1
36248 cat conftest.err >&5
a848cd7e
SC
36249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36250 (exit $ac_status); } &&
5ff751d6 36251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36253 (eval $ac_try) 2>&5
36254 ac_status=$?
36255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256 (exit $ac_status); }; } &&
36257 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36259 (eval $ac_try) 2>&5
36260 ac_status=$?
36261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36262 (exit $ac_status); }; }; then
36263 ac_header_compiler=yes
36264else
36265 echo "$as_me: failed program was:" >&5
36266sed 's/^/| /' conftest.$ac_ext >&5
36267
36268ac_header_compiler=no
36269fi
ac1cb8d3 36270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36272echo "${ECHO_T}$ac_header_compiler" >&6
36273
36274# Is the header present?
36275echo "$as_me:$LINENO: checking $ac_header presence" >&5
36276echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36277cat >conftest.$ac_ext <<_ACEOF
36278/* confdefs.h. */
36279_ACEOF
36280cat confdefs.h >>conftest.$ac_ext
36281cat >>conftest.$ac_ext <<_ACEOF
36282/* end confdefs.h. */
36283#include <$ac_header>
36284_ACEOF
36285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36287 ac_status=$?
36288 grep -v '^ *+' conftest.er1 >conftest.err
36289 rm -f conftest.er1
36290 cat conftest.err >&5
36291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36292 (exit $ac_status); } >/dev/null; then
36293 if test -s conftest.err; then
36294 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36296 else
36297 ac_cpp_err=
36298 fi
36299else
36300 ac_cpp_err=yes
36301fi
36302if test -z "$ac_cpp_err"; then
36303 ac_header_preproc=yes
36304else
36305 echo "$as_me: failed program was:" >&5
36306sed 's/^/| /' conftest.$ac_ext >&5
36307
36308 ac_header_preproc=no
36309fi
36310rm -f conftest.err conftest.$ac_ext
36311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36312echo "${ECHO_T}$ac_header_preproc" >&6
36313
36314# So? What about this header?
ac1cb8d3
VS
36315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36316 yes:no: )
a848cd7e
SC
36317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36318echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36320echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36321 ac_header_preproc=yes
a848cd7e 36322 ;;
ac1cb8d3 36323 no:yes:* )
a848cd7e
SC
36324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36325echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36327echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36329echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36331echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36333echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36335echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36336 (
36337 cat <<\_ASBOX
ac1cb8d3
VS
36338## ----------------------------------------- ##
36339## Report this to wx-dev@lists.wxwidgets.org ##
36340## ----------------------------------------- ##
a848cd7e
SC
36341_ASBOX
36342 ) |
36343 sed "s/^/$as_me: WARNING: /" >&2
36344 ;;
36345esac
36346echo "$as_me:$LINENO: checking for $ac_header" >&5
36347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36348if eval "test \"\${$as_ac_Header+set}\" = set"; then
36349 echo $ECHO_N "(cached) $ECHO_C" >&6
36350else
ac1cb8d3 36351 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36352fi
36353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36355
36356fi
36357if test `eval echo '${'$as_ac_Header'}'` = yes; then
36358 cat >>confdefs.h <<_ACEOF
36359#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36360_ACEOF
36361
36362 EXTRALIBS_ESD="-lesd"
36363
36364fi
36365
36366done
36367
36368
36369fi
36370
36371
36372
36373echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36374echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36375cat >conftest.$ac_ext <<_ACEOF
36376/* confdefs.h. */
36377_ACEOF
36378cat confdefs.h >>conftest.$ac_ext
36379cat >>conftest.$ac_ext <<_ACEOF
36380/* end confdefs.h. */
36381#ifdef __linux__
36382 #include <linux/cdrom.h>
36383 #else
36384 /* For Solaris */
36385 #include <sys/cdio.h>
36386 #endif
36387
36388int
36389main ()
36390{
36391struct cdrom_tocentry entry, old_entry;
36392 ;
36393 return 0;
36394}
36395_ACEOF
36396rm -f conftest.$ac_objext
36397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36398 (eval $ac_compile) 2>conftest.er1
a848cd7e 36399 ac_status=$?
ac1cb8d3
VS
36400 grep -v '^ *+' conftest.er1 >conftest.err
36401 rm -f conftest.er1
36402 cat conftest.err >&5
a848cd7e
SC
36403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404 (exit $ac_status); } &&
5ff751d6 36405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36407 (eval $ac_try) 2>&5
36408 ac_status=$?
36409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36410 (exit $ac_status); }; } &&
36411 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36413 (eval $ac_try) 2>&5
36414 ac_status=$?
36415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416 (exit $ac_status); }; }; then
36417 echo "$as_me:$LINENO: result: yes" >&5
36418echo "${ECHO_T}yes" >&6
36419 cat >>confdefs.h <<\_ACEOF
36420#define HAVE_KNOWN_CDROM_INTERFACE 1
36421_ACEOF
36422
36423else
36424 echo "$as_me: failed program was:" >&5
36425sed 's/^/| /' conftest.$ac_ext >&5
36426
36427echo "$as_me:$LINENO: result: no" >&5
36428echo "${ECHO_T}no" >&6
36429fi
ac1cb8d3 36430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36431
36432
36433cat >confcache <<\_ACEOF
36434# This file is a shell script that caches the results of configure
36435# tests run on this system so they can be shared between configure
36436# scripts and configure runs, see configure's option --config-cache.
36437# It is not useful on other systems. If it contains results you don't
36438# want to keep, you may remove or edit it.
36439#
36440# config.status only pays attention to the cache file if you give it
36441# the --recheck option to rerun configure.
36442#
36443# `ac_cv_env_foo' variables (set or unset) will be overridden when
36444# loading this file, other *unset* `ac_cv_foo' will be assigned the
36445# following values.
36446
36447_ACEOF
36448
36449# The following way of writing the cache mishandles newlines in values,
36450# but we know of no workaround that is simple, portable, and efficient.
36451# So, don't put newlines in cache variables' values.
36452# Ultrix sh set writes to stderr and can't be redirected directly,
36453# and sets the high bit in the cache file unless we assign to the vars.
36454{
36455 (set) 2>&1 |
36456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36457 *ac_space=\ *)
36458 # `set' does not quote correctly, so add quotes (double-quote
36459 # substitution turns \\\\ into \\, and sed turns \\ into \).
36460 sed -n \
ac1cb8d3
VS
36461 "s/'/'\\\\''/g;
36462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36463 ;;
36464 *)
36465 # `set' quotes correctly as required by POSIX, so do not add quotes.
36466 sed -n \
ac1cb8d3 36467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36468 ;;
36469 esac;
36470} |
36471 sed '
36472 t clear
36473 : clear
36474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36475 t end
36476 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36477 : end' >>confcache
36478if diff $cache_file confcache >/dev/null 2>&1; then :; else
36479 if test -w $cache_file; then
36480 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36481 cat confcache >$cache_file
36482 else
36483 echo "not updating unwritable cache $cache_file"
36484 fi
36485fi
36486rm -f confcache
36487
36488
a848cd7e
SC
36489if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36490
36491
36492 THREADS_LINK=
36493 THREADS_CFLAGS=
36494
36495 if test "$wxUSE_THREADS" = "yes" ; then
36496 if test "$USE_BEOS" = 1; then
36497 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36498echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36499 wxUSE_THREADS="no"
36500 fi
36501 fi
36502
36503 if test "$wxUSE_THREADS" = "yes" ; then
36504
36505
36506 THREAD_OPTS="-pthread"
36507 case "${host}" in
36508 *-*-solaris2* | *-*-sunos4* )
36509 if test "x$GCC" = "xyes"; then
36510 THREAD_OPTS="-pthreads $THREAD_OPTS"
36511 else
36512 THREAD_OPTS="-mt $THREAD_OPTS"
36513 fi
36514 ;;
36515 *-*-freebsd*)
36516 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36517 ;;
36518 *-*-darwin* | *-*-cygwin* )
36519 THREAD_OPTS=""
36520 ;;
36521 *-*-aix*)
36522 THREAD_OPTS="pthreads"
36523 ;;
36524 *-hp-hpux* )
00421666
MW
36525 if test "x$GCC" = "xyes"; then
36526 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36527 THREAD_OPTS=""
36528 else
0093c2fc 36529 THREAD_OPTS="-mt"
a848cd7e
SC
36530 fi
36531 ;;
36532
36533 *-*-irix* )
36534 if test "x$GCC" = "xyes"; then
36535 THREAD_OPTS=""
36536 fi
36537 ;;
36538
36539 *-*-*UnixWare*)
36540 if test "x$GCC" != "xyes"; then
36541 THREAD_OPTS="-Ethread"
36542 fi
36543 ;;
36544 esac
36545
36546 THREAD_OPTS="$THREAD_OPTS pthread none"
36547
36548 THREADS_OK=no
36549 for flag in $THREAD_OPTS; do
36550 case $flag in
36551 none)
36552 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36553echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36554 ;;
36555
36556 -*)
36557 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36558echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36559 THREADS_CFLAGS="$flag"
36560 ;;
36561
36562 *)
36563 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36564echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36565 THREADS_LINK="-l$flag"
36566 ;;
36567 esac
36568
36569 save_LIBS="$LIBS"
36570 save_CFLAGS="$CFLAGS"
36571 LIBS="$THREADS_LINK $LIBS"
36572 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36573
36574 cat >conftest.$ac_ext <<_ACEOF
36575/* confdefs.h. */
36576_ACEOF
36577cat confdefs.h >>conftest.$ac_ext
36578cat >>conftest.$ac_ext <<_ACEOF
36579/* end confdefs.h. */
36580#include <pthread.h>
36581int
36582main ()
36583{
36584pthread_create(0,0,0,0);
36585 ;
36586 return 0;
36587}
36588_ACEOF
36589rm -f conftest.$ac_objext conftest$ac_exeext
36590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36591 (eval $ac_link) 2>conftest.er1
a848cd7e 36592 ac_status=$?
ac1cb8d3
VS
36593 grep -v '^ *+' conftest.er1 >conftest.err
36594 rm -f conftest.er1
36595 cat conftest.err >&5
a848cd7e
SC
36596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36597 (exit $ac_status); } &&
5ff751d6 36598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36600 (eval $ac_try) 2>&5
36601 ac_status=$?
36602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36603 (exit $ac_status); }; } &&
36604 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36606 (eval $ac_try) 2>&5
36607 ac_status=$?
36608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36609 (exit $ac_status); }; }; then
36610 THREADS_OK=yes
36611else
36612 echo "$as_me: failed program was:" >&5
36613sed 's/^/| /' conftest.$ac_ext >&5
36614
36615fi
ac1cb8d3
VS
36616rm -f conftest.err conftest.$ac_objext \
36617 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36618
36619 LIBS="$save_LIBS"
36620 CFLAGS="$save_CFLAGS"
36621
36622 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36623echo "${ECHO_T}$THREADS_OK" >&6
36624 if test "x$THREADS_OK" = "xyes"; then
36625 break;
36626 fi
36627
36628 THREADS_LINK=""
36629 THREADS_CFLAGS=""
36630 done
36631
36632 if test "x$THREADS_OK" != "xyes"; then
36633 wxUSE_THREADS=no
36634 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36635echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36636 else
36637 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36638 LIBS="$THREADS_LINK $LIBS"
36639
36640 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36641echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36642 flag=no
36643 case "${host}" in
36644 *-aix*)
36645 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36646 flag="-D_THREAD_SAFE"
36647 ;;
36648 *-freebsd*)
36649 flag="-D_THREAD_SAFE"
36650 ;;
36651 *-hp-hpux* )
36652 flag="-D_REENTRANT"
36653 if test "x$GCC" != "xyes"; then
36654 flag="$flag -D_RWSTD_MULTI_THREAD"
36655 fi
36656 ;;
36657 *solaris* | alpha*-osf*)
36658 flag="-D_REENTRANT"
36659 ;;
36660 esac
36661 echo "$as_me:$LINENO: result: ${flag}" >&5
36662echo "${ECHO_T}${flag}" >&6
36663 if test "x$flag" != xno; then
36664 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
36665 fi
36666
5ff751d6 36667 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
36668 fi
36669 fi
36670
36671 if test "$wxUSE_THREADS" = "yes" ; then
36672
36673for ac_func in thr_setconcurrency
36674do
36675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36676echo "$as_me:$LINENO: checking for $ac_func" >&5
36677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36678if eval "test \"\${$as_ac_var+set}\" = set"; then
36679 echo $ECHO_N "(cached) $ECHO_C" >&6
36680else
36681 cat >conftest.$ac_ext <<_ACEOF
36682/* confdefs.h. */
36683_ACEOF
36684cat confdefs.h >>conftest.$ac_ext
36685cat >>conftest.$ac_ext <<_ACEOF
36686/* end confdefs.h. */
ac1cb8d3
VS
36687/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36689#define $ac_func innocuous_$ac_func
36690
a848cd7e
SC
36691/* System header to define __stub macros and hopefully few prototypes,
36692 which can conflict with char $ac_func (); below.
36693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36694 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36695
a848cd7e
SC
36696#ifdef __STDC__
36697# include <limits.h>
36698#else
36699# include <assert.h>
36700#endif
ac1cb8d3
VS
36701
36702#undef $ac_func
36703
a848cd7e
SC
36704/* Override any gcc2 internal prototype to avoid an error. */
36705#ifdef __cplusplus
36706extern "C"
36707{
36708#endif
36709/* We use char because int might match the return type of a gcc2
36710 builtin and then its argument prototype would still apply. */
36711char $ac_func ();
36712/* The GNU C library defines this for functions which it implements
36713 to always fail with ENOSYS. Some functions are actually named
36714 something starting with __ and the normal name is an alias. */
36715#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36716choke me
36717#else
36718char (*f) () = $ac_func;
36719#endif
36720#ifdef __cplusplus
36721}
36722#endif
36723
36724int
36725main ()
36726{
36727return f != $ac_func;
36728 ;
36729 return 0;
36730}
36731_ACEOF
36732rm -f conftest.$ac_objext conftest$ac_exeext
36733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36734 (eval $ac_link) 2>conftest.er1
a848cd7e 36735 ac_status=$?
ac1cb8d3
VS
36736 grep -v '^ *+' conftest.er1 >conftest.err
36737 rm -f conftest.er1
36738 cat conftest.err >&5
a848cd7e
SC
36739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36740 (exit $ac_status); } &&
5ff751d6 36741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36743 (eval $ac_try) 2>&5
36744 ac_status=$?
36745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36746 (exit $ac_status); }; } &&
36747 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36749 (eval $ac_try) 2>&5
36750 ac_status=$?
36751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36752 (exit $ac_status); }; }; then
36753 eval "$as_ac_var=yes"
36754else
36755 echo "$as_me: failed program was:" >&5
36756sed 's/^/| /' conftest.$ac_ext >&5
36757
36758eval "$as_ac_var=no"
36759fi
ac1cb8d3
VS
36760rm -f conftest.err conftest.$ac_objext \
36761 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36762fi
36763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36765if test `eval echo '${'$as_ac_var'}'` = yes; then
36766 cat >>confdefs.h <<_ACEOF
36767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36768_ACEOF
36769
36770fi
36771done
36772
36773
6ebeb4c7
VZ
36774 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36775echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36776if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36777 echo $ECHO_N "(cached) $ECHO_C" >&6
36778else
36779
36780 cat >conftest.$ac_ext <<_ACEOF
36781/* confdefs.h. */
36782_ACEOF
36783cat confdefs.h >>conftest.$ac_ext
36784cat >>conftest.$ac_ext <<_ACEOF
36785/* end confdefs.h. */
36786#include <pthread.h>
36787 void ThreadCleanupFunc(void *p);
36788
36789int
36790main ()
36791{
36792
36793 void *p;
36794 pthread_cleanup_push(ThreadCleanupFunc, p);
36795 pthread_cleanup_pop(0);
36796
36797 ;
36798 return 0;
36799}
36800_ACEOF
36801rm -f conftest.$ac_objext
36802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36803 (eval $ac_compile) 2>conftest.er1
36804 ac_status=$?
36805 grep -v '^ *+' conftest.er1 >conftest.err
36806 rm -f conftest.er1
36807 cat conftest.err >&5
36808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); } &&
5ff751d6 36810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36812 (eval $ac_try) 2>&5
36813 ac_status=$?
36814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36815 (exit $ac_status); }; } &&
36816 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
36822
36823 wx_cv_func_pthread_cleanup=yes
36824
36825else
36826 echo "$as_me: failed program was:" >&5
36827sed 's/^/| /' conftest.$ac_ext >&5
36828
36829
36830 wx_cv_func_pthread_cleanup=no
36831
36832
36833fi
36834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36835
36836fi
36837echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36838echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36839 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36840 cat >>confdefs.h <<\_ACEOF
36841#define wxHAVE_PTHREAD_CLEANUP 1
36842_ACEOF
36843
36844 fi
36845
a848cd7e
SC
36846
36847for ac_header in sched.h
36848do
36849as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36850if eval "test \"\${$as_ac_Header+set}\" = set"; then
36851 echo "$as_me:$LINENO: checking for $ac_header" >&5
36852echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36853if eval "test \"\${$as_ac_Header+set}\" = set"; then
36854 echo $ECHO_N "(cached) $ECHO_C" >&6
36855fi
36856echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36857echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36858else
36859 # Is the header compilable?
36860echo "$as_me:$LINENO: checking $ac_header usability" >&5
36861echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36862cat >conftest.$ac_ext <<_ACEOF
36863/* confdefs.h. */
36864_ACEOF
36865cat confdefs.h >>conftest.$ac_ext
36866cat >>conftest.$ac_ext <<_ACEOF
36867/* end confdefs.h. */
36868$ac_includes_default
36869#include <$ac_header>
36870_ACEOF
36871rm -f conftest.$ac_objext
36872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36873 (eval $ac_compile) 2>conftest.er1
a848cd7e 36874 ac_status=$?
ac1cb8d3
VS
36875 grep -v '^ *+' conftest.er1 >conftest.err
36876 rm -f conftest.er1
36877 cat conftest.err >&5
a848cd7e
SC
36878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36879 (exit $ac_status); } &&
5ff751d6 36880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36882 (eval $ac_try) 2>&5
36883 ac_status=$?
36884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885 (exit $ac_status); }; } &&
36886 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36888 (eval $ac_try) 2>&5
36889 ac_status=$?
36890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36891 (exit $ac_status); }; }; then
36892 ac_header_compiler=yes
36893else
36894 echo "$as_me: failed program was:" >&5
36895sed 's/^/| /' conftest.$ac_ext >&5
36896
36897ac_header_compiler=no
36898fi
ac1cb8d3 36899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36900echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36901echo "${ECHO_T}$ac_header_compiler" >&6
36902
36903# Is the header present?
36904echo "$as_me:$LINENO: checking $ac_header presence" >&5
36905echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36906cat >conftest.$ac_ext <<_ACEOF
36907/* confdefs.h. */
36908_ACEOF
36909cat confdefs.h >>conftest.$ac_ext
36910cat >>conftest.$ac_ext <<_ACEOF
36911/* end confdefs.h. */
36912#include <$ac_header>
36913_ACEOF
36914if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36915 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36916 ac_status=$?
36917 grep -v '^ *+' conftest.er1 >conftest.err
36918 rm -f conftest.er1
36919 cat conftest.err >&5
36920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36921 (exit $ac_status); } >/dev/null; then
36922 if test -s conftest.err; then
36923 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36924 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36925 else
36926 ac_cpp_err=
36927 fi
36928else
36929 ac_cpp_err=yes
36930fi
36931if test -z "$ac_cpp_err"; then
36932 ac_header_preproc=yes
36933else
36934 echo "$as_me: failed program was:" >&5
36935sed 's/^/| /' conftest.$ac_ext >&5
36936
36937 ac_header_preproc=no
36938fi
36939rm -f conftest.err conftest.$ac_ext
36940echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36941echo "${ECHO_T}$ac_header_preproc" >&6
36942
36943# So? What about this header?
ac1cb8d3
VS
36944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36945 yes:no: )
a848cd7e
SC
36946 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36947echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36949echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36950 ac_header_preproc=yes
a848cd7e 36951 ;;
ac1cb8d3 36952 no:yes:* )
a848cd7e
SC
36953 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36954echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36955 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36956echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36957 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36958echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36959 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36960echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36961 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36962echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36963 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36964echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36965 (
36966 cat <<\_ASBOX
ac1cb8d3
VS
36967## ----------------------------------------- ##
36968## Report this to wx-dev@lists.wxwidgets.org ##
36969## ----------------------------------------- ##
a848cd7e
SC
36970_ASBOX
36971 ) |
36972 sed "s/^/$as_me: WARNING: /" >&2
36973 ;;
36974esac
36975echo "$as_me:$LINENO: checking for $ac_header" >&5
36976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36977if eval "test \"\${$as_ac_Header+set}\" = set"; then
36978 echo $ECHO_N "(cached) $ECHO_C" >&6
36979else
ac1cb8d3 36980 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36981fi
36982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36984
36985fi
36986if test `eval echo '${'$as_ac_Header'}'` = yes; then
36987 cat >>confdefs.h <<_ACEOF
36988#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36989_ACEOF
36990
36991fi
36992
36993done
36994
36995 if test "$ac_cv_header_sched_h" = "yes"; then
36996 echo "$as_me:$LINENO: checking for sched_yield" >&5
36997echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36998if test "${ac_cv_func_sched_yield+set}" = set; then
36999 echo $ECHO_N "(cached) $ECHO_C" >&6
37000else
37001 cat >conftest.$ac_ext <<_ACEOF
37002/* confdefs.h. */
37003_ACEOF
37004cat confdefs.h >>conftest.$ac_ext
37005cat >>conftest.$ac_ext <<_ACEOF
37006/* end confdefs.h. */
ac1cb8d3
VS
37007/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
37008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37009#define sched_yield innocuous_sched_yield
37010
a848cd7e
SC
37011/* System header to define __stub macros and hopefully few prototypes,
37012 which can conflict with char sched_yield (); below.
37013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37014 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37015
a848cd7e
SC
37016#ifdef __STDC__
37017# include <limits.h>
37018#else
37019# include <assert.h>
37020#endif
ac1cb8d3
VS
37021
37022#undef sched_yield
37023
a848cd7e
SC
37024/* Override any gcc2 internal prototype to avoid an error. */
37025#ifdef __cplusplus
37026extern "C"
37027{
37028#endif
37029/* We use char because int might match the return type of a gcc2
37030 builtin and then its argument prototype would still apply. */
37031char sched_yield ();
37032/* The GNU C library defines this for functions which it implements
37033 to always fail with ENOSYS. Some functions are actually named
37034 something starting with __ and the normal name is an alias. */
37035#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37036choke me
37037#else
37038char (*f) () = sched_yield;
37039#endif
37040#ifdef __cplusplus
37041}
37042#endif
37043
37044int
37045main ()
37046{
37047return f != sched_yield;
37048 ;
37049 return 0;
37050}
37051_ACEOF
37052rm -f conftest.$ac_objext conftest$ac_exeext
37053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37054 (eval $ac_link) 2>conftest.er1
a848cd7e 37055 ac_status=$?
ac1cb8d3
VS
37056 grep -v '^ *+' conftest.er1 >conftest.err
37057 rm -f conftest.er1
37058 cat conftest.err >&5
a848cd7e
SC
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); } &&
5ff751d6 37061 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37063 (eval $ac_try) 2>&5
37064 ac_status=$?
37065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37066 (exit $ac_status); }; } &&
37067 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37069 (eval $ac_try) 2>&5
37070 ac_status=$?
37071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37072 (exit $ac_status); }; }; then
37073 ac_cv_func_sched_yield=yes
37074else
37075 echo "$as_me: failed program was:" >&5
37076sed 's/^/| /' conftest.$ac_ext >&5
37077
37078ac_cv_func_sched_yield=no
37079fi
ac1cb8d3
VS
37080rm -f conftest.err conftest.$ac_objext \
37081 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37082fi
37083echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37084echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37085if test $ac_cv_func_sched_yield = yes; then
37086 cat >>confdefs.h <<\_ACEOF
37087#define HAVE_SCHED_YIELD 1
37088_ACEOF
37089
37090else
37091
37092 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37093echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37094if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37095 echo $ECHO_N "(cached) $ECHO_C" >&6
37096else
37097 ac_check_lib_save_LIBS=$LIBS
37098LIBS="-lposix4 $LIBS"
37099cat >conftest.$ac_ext <<_ACEOF
37100/* confdefs.h. */
37101_ACEOF
37102cat confdefs.h >>conftest.$ac_ext
37103cat >>conftest.$ac_ext <<_ACEOF
37104/* end confdefs.h. */
37105
37106/* Override any gcc2 internal prototype to avoid an error. */
37107#ifdef __cplusplus
37108extern "C"
37109#endif
37110/* We use char because int might match the return type of a gcc2
37111 builtin and then its argument prototype would still apply. */
37112char sched_yield ();
37113int
37114main ()
37115{
37116sched_yield ();
37117 ;
37118 return 0;
37119}
37120_ACEOF
37121rm -f conftest.$ac_objext conftest$ac_exeext
37122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37123 (eval $ac_link) 2>conftest.er1
a848cd7e 37124 ac_status=$?
ac1cb8d3
VS
37125 grep -v '^ *+' conftest.er1 >conftest.err
37126 rm -f conftest.er1
37127 cat conftest.err >&5
a848cd7e
SC
37128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37129 (exit $ac_status); } &&
5ff751d6 37130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37132 (eval $ac_try) 2>&5
37133 ac_status=$?
37134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37135 (exit $ac_status); }; } &&
37136 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37138 (eval $ac_try) 2>&5
37139 ac_status=$?
37140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141 (exit $ac_status); }; }; then
37142 ac_cv_lib_posix4_sched_yield=yes
37143else
37144 echo "$as_me: failed program was:" >&5
37145sed 's/^/| /' conftest.$ac_ext >&5
37146
37147ac_cv_lib_posix4_sched_yield=no
37148fi
ac1cb8d3
VS
37149rm -f conftest.err conftest.$ac_objext \
37150 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37151LIBS=$ac_check_lib_save_LIBS
37152fi
37153echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37154echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37155if test $ac_cv_lib_posix4_sched_yield = yes; then
37156 cat >>confdefs.h <<\_ACEOF
37157#define HAVE_SCHED_YIELD 1
37158_ACEOF
37159 POSIX4_LINK=" -lposix4"
37160else
37161 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37162echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37163
37164fi
37165
37166
37167
37168fi
37169
37170 fi
37171
37172 HAVE_PRIOR_FUNCS=0
37173 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37174echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37175if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37176 echo $ECHO_N "(cached) $ECHO_C" >&6
37177else
37178 cat >conftest.$ac_ext <<_ACEOF
37179/* confdefs.h. */
37180_ACEOF
37181cat confdefs.h >>conftest.$ac_ext
37182cat >>conftest.$ac_ext <<_ACEOF
37183/* end confdefs.h. */
ac1cb8d3
VS
37184/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37186#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37187
a848cd7e
SC
37188/* System header to define __stub macros and hopefully few prototypes,
37189 which can conflict with char pthread_attr_getschedpolicy (); below.
37190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37191 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37192
a848cd7e
SC
37193#ifdef __STDC__
37194# include <limits.h>
37195#else
37196# include <assert.h>
37197#endif
ac1cb8d3
VS
37198
37199#undef pthread_attr_getschedpolicy
37200
a848cd7e
SC
37201/* Override any gcc2 internal prototype to avoid an error. */
37202#ifdef __cplusplus
37203extern "C"
37204{
37205#endif
37206/* We use char because int might match the return type of a gcc2
37207 builtin and then its argument prototype would still apply. */
37208char pthread_attr_getschedpolicy ();
37209/* The GNU C library defines this for functions which it implements
37210 to always fail with ENOSYS. Some functions are actually named
37211 something starting with __ and the normal name is an alias. */
37212#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37213choke me
37214#else
37215char (*f) () = pthread_attr_getschedpolicy;
37216#endif
37217#ifdef __cplusplus
37218}
37219#endif
37220
37221int
37222main ()
37223{
37224return f != pthread_attr_getschedpolicy;
37225 ;
37226 return 0;
37227}
37228_ACEOF
37229rm -f conftest.$ac_objext conftest$ac_exeext
37230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37231 (eval $ac_link) 2>conftest.er1
a848cd7e 37232 ac_status=$?
ac1cb8d3
VS
37233 grep -v '^ *+' conftest.er1 >conftest.err
37234 rm -f conftest.er1
37235 cat conftest.err >&5
a848cd7e
SC
37236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37237 (exit $ac_status); } &&
5ff751d6 37238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37240 (eval $ac_try) 2>&5
37241 ac_status=$?
37242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243 (exit $ac_status); }; } &&
37244 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37246 (eval $ac_try) 2>&5
37247 ac_status=$?
37248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37249 (exit $ac_status); }; }; then
37250 ac_cv_func_pthread_attr_getschedpolicy=yes
37251else
37252 echo "$as_me: failed program was:" >&5
37253sed 's/^/| /' conftest.$ac_ext >&5
37254
37255ac_cv_func_pthread_attr_getschedpolicy=no
37256fi
ac1cb8d3
VS
37257rm -f conftest.err conftest.$ac_objext \
37258 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37259fi
37260echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37261echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37262if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37263 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37264echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37265if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37266 echo $ECHO_N "(cached) $ECHO_C" >&6
37267else
37268 cat >conftest.$ac_ext <<_ACEOF
37269/* confdefs.h. */
37270_ACEOF
37271cat confdefs.h >>conftest.$ac_ext
37272cat >>conftest.$ac_ext <<_ACEOF
37273/* end confdefs.h. */
ac1cb8d3
VS
37274/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37276#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37277
a848cd7e
SC
37278/* System header to define __stub macros and hopefully few prototypes,
37279 which can conflict with char pthread_attr_setschedparam (); below.
37280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37281 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37282
a848cd7e
SC
37283#ifdef __STDC__
37284# include <limits.h>
37285#else
37286# include <assert.h>
37287#endif
ac1cb8d3
VS
37288
37289#undef pthread_attr_setschedparam
37290
a848cd7e
SC
37291/* Override any gcc2 internal prototype to avoid an error. */
37292#ifdef __cplusplus
37293extern "C"
37294{
37295#endif
37296/* We use char because int might match the return type of a gcc2
37297 builtin and then its argument prototype would still apply. */
37298char pthread_attr_setschedparam ();
37299/* The GNU C library defines this for functions which it implements
37300 to always fail with ENOSYS. Some functions are actually named
37301 something starting with __ and the normal name is an alias. */
37302#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37303choke me
37304#else
37305char (*f) () = pthread_attr_setschedparam;
37306#endif
37307#ifdef __cplusplus
37308}
37309#endif
37310
37311int
37312main ()
37313{
37314return f != pthread_attr_setschedparam;
37315 ;
37316 return 0;
37317}
37318_ACEOF
37319rm -f conftest.$ac_objext conftest$ac_exeext
37320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37321 (eval $ac_link) 2>conftest.er1
a848cd7e 37322 ac_status=$?
ac1cb8d3
VS
37323 grep -v '^ *+' conftest.er1 >conftest.err
37324 rm -f conftest.er1
37325 cat conftest.err >&5
a848cd7e
SC
37326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37327 (exit $ac_status); } &&
5ff751d6 37328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37330 (eval $ac_try) 2>&5
37331 ac_status=$?
37332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37333 (exit $ac_status); }; } &&
37334 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37336 (eval $ac_try) 2>&5
37337 ac_status=$?
37338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37339 (exit $ac_status); }; }; then
37340 ac_cv_func_pthread_attr_setschedparam=yes
37341else
37342 echo "$as_me: failed program was:" >&5
37343sed 's/^/| /' conftest.$ac_ext >&5
37344
37345ac_cv_func_pthread_attr_setschedparam=no
37346fi
ac1cb8d3
VS
37347rm -f conftest.err conftest.$ac_objext \
37348 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37349fi
37350echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37351echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37352if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37353 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37354echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37355if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37356 echo $ECHO_N "(cached) $ECHO_C" >&6
37357else
37358 cat >conftest.$ac_ext <<_ACEOF
37359/* confdefs.h. */
37360_ACEOF
37361cat confdefs.h >>conftest.$ac_ext
37362cat >>conftest.$ac_ext <<_ACEOF
37363/* end confdefs.h. */
ac1cb8d3
VS
37364/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37366#define sched_get_priority_max innocuous_sched_get_priority_max
37367
a848cd7e
SC
37368/* System header to define __stub macros and hopefully few prototypes,
37369 which can conflict with char sched_get_priority_max (); below.
37370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37371 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37372
a848cd7e
SC
37373#ifdef __STDC__
37374# include <limits.h>
37375#else
37376# include <assert.h>
37377#endif
ac1cb8d3
VS
37378
37379#undef sched_get_priority_max
37380
a848cd7e
SC
37381/* Override any gcc2 internal prototype to avoid an error. */
37382#ifdef __cplusplus
37383extern "C"
37384{
37385#endif
37386/* We use char because int might match the return type of a gcc2
37387 builtin and then its argument prototype would still apply. */
37388char sched_get_priority_max ();
37389/* The GNU C library defines this for functions which it implements
37390 to always fail with ENOSYS. Some functions are actually named
37391 something starting with __ and the normal name is an alias. */
37392#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37393choke me
37394#else
37395char (*f) () = sched_get_priority_max;
37396#endif
37397#ifdef __cplusplus
37398}
37399#endif
37400
37401int
37402main ()
37403{
37404return f != sched_get_priority_max;
37405 ;
37406 return 0;
37407}
37408_ACEOF
37409rm -f conftest.$ac_objext conftest$ac_exeext
37410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37411 (eval $ac_link) 2>conftest.er1
a848cd7e 37412 ac_status=$?
ac1cb8d3
VS
37413 grep -v '^ *+' conftest.er1 >conftest.err
37414 rm -f conftest.er1
37415 cat conftest.err >&5
a848cd7e
SC
37416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37417 (exit $ac_status); } &&
5ff751d6 37418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37420 (eval $ac_try) 2>&5
37421 ac_status=$?
37422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423 (exit $ac_status); }; } &&
37424 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37426 (eval $ac_try) 2>&5
37427 ac_status=$?
37428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37429 (exit $ac_status); }; }; then
37430 ac_cv_func_sched_get_priority_max=yes
37431else
37432 echo "$as_me: failed program was:" >&5
37433sed 's/^/| /' conftest.$ac_ext >&5
37434
37435ac_cv_func_sched_get_priority_max=no
37436fi
ac1cb8d3
VS
37437rm -f conftest.err conftest.$ac_objext \
37438 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37439fi
37440echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37441echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37442if test $ac_cv_func_sched_get_priority_max = yes; then
37443 HAVE_PRIOR_FUNCS=1
37444else
37445 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37446echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37447if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37448 echo $ECHO_N "(cached) $ECHO_C" >&6
37449else
37450 ac_check_lib_save_LIBS=$LIBS
37451LIBS="-lposix4 $LIBS"
37452cat >conftest.$ac_ext <<_ACEOF
37453/* confdefs.h. */
37454_ACEOF
37455cat confdefs.h >>conftest.$ac_ext
37456cat >>conftest.$ac_ext <<_ACEOF
37457/* end confdefs.h. */
37458
37459/* Override any gcc2 internal prototype to avoid an error. */
37460#ifdef __cplusplus
37461extern "C"
37462#endif
37463/* We use char because int might match the return type of a gcc2
37464 builtin and then its argument prototype would still apply. */
37465char sched_get_priority_max ();
37466int
37467main ()
37468{
37469sched_get_priority_max ();
37470 ;
37471 return 0;
37472}
37473_ACEOF
37474rm -f conftest.$ac_objext conftest$ac_exeext
37475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37476 (eval $ac_link) 2>conftest.er1
a848cd7e 37477 ac_status=$?
ac1cb8d3
VS
37478 grep -v '^ *+' conftest.er1 >conftest.err
37479 rm -f conftest.er1
37480 cat conftest.err >&5
a848cd7e
SC
37481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37482 (exit $ac_status); } &&
5ff751d6 37483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37485 (eval $ac_try) 2>&5
37486 ac_status=$?
37487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37488 (exit $ac_status); }; } &&
37489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37491 (eval $ac_try) 2>&5
37492 ac_status=$?
37493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37494 (exit $ac_status); }; }; then
37495 ac_cv_lib_posix4_sched_get_priority_max=yes
37496else
37497 echo "$as_me: failed program was:" >&5
37498sed 's/^/| /' conftest.$ac_ext >&5
37499
37500ac_cv_lib_posix4_sched_get_priority_max=no
37501fi
ac1cb8d3
VS
37502rm -f conftest.err conftest.$ac_objext \
37503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37504LIBS=$ac_check_lib_save_LIBS
37505fi
37506echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37507echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37508if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37509
37510 HAVE_PRIOR_FUNCS=1
37511 POSIX4_LINK=" -lposix4"
37512
37513fi
37514
37515
37516fi
37517
37518
37519fi
37520
37521
37522fi
37523
37524
37525 if test "$HAVE_PRIOR_FUNCS" = 1; then
37526 cat >>confdefs.h <<\_ACEOF
37527#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37528_ACEOF
37529
37530 else
37531 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37532echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37533 fi
37534
37535 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37536echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37537if test "${ac_cv_func_pthread_cancel+set}" = set; then
37538 echo $ECHO_N "(cached) $ECHO_C" >&6
37539else
37540 cat >conftest.$ac_ext <<_ACEOF
37541/* confdefs.h. */
37542_ACEOF
37543cat confdefs.h >>conftest.$ac_ext
37544cat >>conftest.$ac_ext <<_ACEOF
37545/* end confdefs.h. */
ac1cb8d3
VS
37546/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37548#define pthread_cancel innocuous_pthread_cancel
37549
a848cd7e
SC
37550/* System header to define __stub macros and hopefully few prototypes,
37551 which can conflict with char pthread_cancel (); below.
37552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37553 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37554
a848cd7e
SC
37555#ifdef __STDC__
37556# include <limits.h>
37557#else
37558# include <assert.h>
37559#endif
ac1cb8d3
VS
37560
37561#undef pthread_cancel
37562
a848cd7e
SC
37563/* Override any gcc2 internal prototype to avoid an error. */
37564#ifdef __cplusplus
37565extern "C"
37566{
37567#endif
37568/* We use char because int might match the return type of a gcc2
37569 builtin and then its argument prototype would still apply. */
37570char pthread_cancel ();
37571/* The GNU C library defines this for functions which it implements
37572 to always fail with ENOSYS. Some functions are actually named
37573 something starting with __ and the normal name is an alias. */
37574#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37575choke me
37576#else
37577char (*f) () = pthread_cancel;
37578#endif
37579#ifdef __cplusplus
37580}
37581#endif
37582
37583int
37584main ()
37585{
37586return f != pthread_cancel;
37587 ;
37588 return 0;
37589}
37590_ACEOF
37591rm -f conftest.$ac_objext conftest$ac_exeext
37592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37593 (eval $ac_link) 2>conftest.er1
a848cd7e 37594 ac_status=$?
ac1cb8d3
VS
37595 grep -v '^ *+' conftest.er1 >conftest.err
37596 rm -f conftest.er1
37597 cat conftest.err >&5
a848cd7e
SC
37598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37599 (exit $ac_status); } &&
5ff751d6 37600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37602 (eval $ac_try) 2>&5
37603 ac_status=$?
37604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37605 (exit $ac_status); }; } &&
37606 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37608 (eval $ac_try) 2>&5
37609 ac_status=$?
37610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611 (exit $ac_status); }; }; then
37612 ac_cv_func_pthread_cancel=yes
37613else
37614 echo "$as_me: failed program was:" >&5
37615sed 's/^/| /' conftest.$ac_ext >&5
37616
37617ac_cv_func_pthread_cancel=no
37618fi
ac1cb8d3
VS
37619rm -f conftest.err conftest.$ac_objext \
37620 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37621fi
37622echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37623echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37624if test $ac_cv_func_pthread_cancel = yes; then
37625 cat >>confdefs.h <<\_ACEOF
37626#define HAVE_PTHREAD_CANCEL 1
37627_ACEOF
37628
37629else
37630 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37631echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37632fi
37633
37634
abc736fd
MW
37635 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37636echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
37637if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
37638 echo $ECHO_N "(cached) $ECHO_C" >&6
37639else
37640 cat >conftest.$ac_ext <<_ACEOF
37641/* confdefs.h. */
37642_ACEOF
37643cat confdefs.h >>conftest.$ac_ext
37644cat >>conftest.$ac_ext <<_ACEOF
37645/* end confdefs.h. */
37646/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
37647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37648#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
37649
37650/* System header to define __stub macros and hopefully few prototypes,
37651 which can conflict with char pthread_attr_setstacksize (); below.
37652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37653 <limits.h> exists even on freestanding compilers. */
37654
37655#ifdef __STDC__
37656# include <limits.h>
37657#else
37658# include <assert.h>
37659#endif
37660
37661#undef pthread_attr_setstacksize
37662
37663/* Override any gcc2 internal prototype to avoid an error. */
37664#ifdef __cplusplus
37665extern "C"
37666{
37667#endif
37668/* We use char because int might match the return type of a gcc2
37669 builtin and then its argument prototype would still apply. */
37670char pthread_attr_setstacksize ();
37671/* The GNU C library defines this for functions which it implements
37672 to always fail with ENOSYS. Some functions are actually named
37673 something starting with __ and the normal name is an alias. */
37674#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37675choke me
37676#else
37677char (*f) () = pthread_attr_setstacksize;
37678#endif
37679#ifdef __cplusplus
37680}
37681#endif
37682
37683int
37684main ()
37685{
37686return f != pthread_attr_setstacksize;
37687 ;
37688 return 0;
37689}
37690_ACEOF
37691rm -f conftest.$ac_objext conftest$ac_exeext
37692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37693 (eval $ac_link) 2>conftest.er1
37694 ac_status=$?
37695 grep -v '^ *+' conftest.er1 >conftest.err
37696 rm -f conftest.er1
37697 cat conftest.err >&5
37698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37699 (exit $ac_status); } &&
5ff751d6 37700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
37701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37702 (eval $ac_try) 2>&5
37703 ac_status=$?
37704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37705 (exit $ac_status); }; } &&
37706 { ac_try='test -s conftest$ac_exeext'
37707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37708 (eval $ac_try) 2>&5
37709 ac_status=$?
37710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37711 (exit $ac_status); }; }; then
37712 ac_cv_func_pthread_attr_setstacksize=yes
37713else
37714 echo "$as_me: failed program was:" >&5
37715sed 's/^/| /' conftest.$ac_ext >&5
37716
37717ac_cv_func_pthread_attr_setstacksize=no
37718fi
37719rm -f conftest.err conftest.$ac_objext \
37720 conftest$ac_exeext conftest.$ac_ext
37721fi
37722echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37723echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37724if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37725 cat >>confdefs.h <<\_ACEOF
37726#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37727_ACEOF
37728
37729fi
37730
a848cd7e
SC
37731
37732
37733 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37734echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37735if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37736 echo $ECHO_N "(cached) $ECHO_C" >&6
37737else
37738
37739 cat >conftest.$ac_ext <<_ACEOF
37740/* confdefs.h. */
37741_ACEOF
37742cat confdefs.h >>conftest.$ac_ext
37743cat >>conftest.$ac_ext <<_ACEOF
37744/* end confdefs.h. */
37745#include <pthread.h>
37746int
37747main ()
37748{
37749
37750 pthread_mutexattr_t attr;
37751 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37752
37753 ;
37754 return 0;
37755}
37756_ACEOF
37757rm -f conftest.$ac_objext
37758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37759 (eval $ac_compile) 2>conftest.er1
a848cd7e 37760 ac_status=$?
ac1cb8d3
VS
37761 grep -v '^ *+' conftest.er1 >conftest.err
37762 rm -f conftest.er1
37763 cat conftest.err >&5
a848cd7e
SC
37764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37765 (exit $ac_status); } &&
5ff751d6 37766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37768 (eval $ac_try) 2>&5
37769 ac_status=$?
37770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37771 (exit $ac_status); }; } &&
37772 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37774 (eval $ac_try) 2>&5
37775 ac_status=$?
37776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37777 (exit $ac_status); }; }; then
123dca7d 37778 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
37779else
37780 echo "$as_me: failed program was:" >&5
37781sed 's/^/| /' conftest.$ac_ext >&5
37782
123dca7d 37783wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
37784
37785fi
ac1cb8d3 37786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37787
37788fi
37789echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37790echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37791
37792 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37793 cat >>confdefs.h <<\_ACEOF
37794#define HAVE_PTHREAD_MUTEXATTR_T 1
37795_ACEOF
37796
123dca7d
VZ
37797
37798 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37799echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37800if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37801 echo $ECHO_N "(cached) $ECHO_C" >&6
37802else
37803
37804 cat >conftest.$ac_ext <<_ACEOF
37805/* confdefs.h. */
37806_ACEOF
37807cat confdefs.h >>conftest.$ac_ext
37808cat >>conftest.$ac_ext <<_ACEOF
37809/* end confdefs.h. */
37810#include <pthread.h>
37811int
37812main ()
37813{
37814
37815 pthread_mutexattr_t attr;
37816 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37817
37818 ;
37819 return 0;
37820}
37821_ACEOF
37822rm -f conftest.$ac_objext
37823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37824 (eval $ac_compile) 2>conftest.er1
37825 ac_status=$?
37826 grep -v '^ *+' conftest.er1 >conftest.err
37827 rm -f conftest.er1
37828 cat conftest.err >&5
37829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37830 (exit $ac_status); } &&
5ff751d6 37831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
37832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37833 (eval $ac_try) 2>&5
37834 ac_status=$?
37835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37836 (exit $ac_status); }; } &&
37837 { ac_try='test -s conftest.$ac_objext'
37838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37839 (eval $ac_try) 2>&5
37840 ac_status=$?
37841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37842 (exit $ac_status); }; }; then
37843 wx_cv_func_pthread_mutexattr_settype_decl=yes
37844else
37845 echo "$as_me: failed program was:" >&5
37846sed 's/^/| /' conftest.$ac_ext >&5
37847
37848wx_cv_func_pthread_mutexattr_settype_decl=no
37849
37850fi
37851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37852
37853fi
37854echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
37855echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
37856 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
37857 cat >>confdefs.h <<\_ACEOF
37858#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
37859_ACEOF
37860
37861 fi
a848cd7e
SC
37862 else
37863 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37864echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37865if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37866 echo $ECHO_N "(cached) $ECHO_C" >&6
37867else
37868
37869 cat >conftest.$ac_ext <<_ACEOF
37870/* confdefs.h. */
37871_ACEOF
37872cat confdefs.h >>conftest.$ac_ext
37873cat >>conftest.$ac_ext <<_ACEOF
37874/* end confdefs.h. */
37875#include <pthread.h>
37876int
37877main ()
37878{
37879
37880 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37881
37882 ;
37883 return 0;
37884}
37885_ACEOF
37886rm -f conftest.$ac_objext
37887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37888 (eval $ac_compile) 2>conftest.er1
a848cd7e 37889 ac_status=$?
ac1cb8d3
VS
37890 grep -v '^ *+' conftest.er1 >conftest.err
37891 rm -f conftest.er1
37892 cat conftest.err >&5
a848cd7e
SC
37893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37894 (exit $ac_status); } &&
5ff751d6 37895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37897 (eval $ac_try) 2>&5
37898 ac_status=$?
37899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37900 (exit $ac_status); }; } &&
37901 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37903 (eval $ac_try) 2>&5
37904 ac_status=$?
37905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37906 (exit $ac_status); }; }; then
37907
37908 wx_cv_type_pthread_rec_mutex_init=yes
37909
37910else
37911 echo "$as_me: failed program was:" >&5
37912sed 's/^/| /' conftest.$ac_ext >&5
37913
37914
37915 wx_cv_type_pthread_rec_mutex_init=no
37916
37917
37918fi
ac1cb8d3 37919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37920
37921fi
37922echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37923echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37924 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37925 cat >>confdefs.h <<\_ACEOF
37926#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37927_ACEOF
37928
37929 else
37930 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37931echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37932 fi
37933 fi
37934 fi
37935
37936else
37937 if test "$wxUSE_THREADS" = "yes" ; then
37938 case "${host}" in
37939 *-*-mingw32* )
37940 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37941echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37942if test "${wx_cv_cflags_mthread+set}" = set; then
37943 echo $ECHO_N "(cached) $ECHO_C" >&6
37944else
37945
37946 CFLAGS_OLD="$CFLAGS"
c92ad099 37947 CFLAGS="-mthreads $CFLAGS"
a848cd7e
SC
37948 cat >conftest.$ac_ext <<_ACEOF
37949/* confdefs.h. */
37950_ACEOF
37951cat confdefs.h >>conftest.$ac_ext
37952cat >>conftest.$ac_ext <<_ACEOF
37953/* end confdefs.h. */
37954
37955int
37956main ()
37957{
37958
37959 ;
37960 return 0;
37961}
37962_ACEOF
37963rm -f conftest.$ac_objext
37964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37965 (eval $ac_compile) 2>conftest.er1
a848cd7e 37966 ac_status=$?
ac1cb8d3
VS
37967 grep -v '^ *+' conftest.er1 >conftest.err
37968 rm -f conftest.er1
37969 cat conftest.err >&5
a848cd7e
SC
37970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971 (exit $ac_status); } &&
5ff751d6 37972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974 (eval $ac_try) 2>&5
37975 ac_status=$?
37976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); }; } &&
37978 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37980 (eval $ac_try) 2>&5
37981 ac_status=$?
37982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37983 (exit $ac_status); }; }; then
37984 wx_cv_cflags_mthread=yes
37985else
37986 echo "$as_me: failed program was:" >&5
37987sed 's/^/| /' conftest.$ac_ext >&5
37988
37989wx_cv_cflags_mthread=no
37990
37991fi
ac1cb8d3 37992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37993
37994
37995fi
37996echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37997echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37998
37999 if test "$wx_cv_cflags_mthread" = "yes"; then
5ff751d6 38000 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
38001 LDFLAGS="$LDFLAGS -mthreads"
38002 else
38003 CFLAGS="$CFLAGS_OLD"
38004 fi
38005 ;;
38006 *-pc-os2*emx )
5ff751d6
VZ
38007 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
38008 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38009 LDFLAGS="$LDFLAGS -Zmt"
38010 ;;
38011 esac
38012 fi
38013fi
38014
004ee6da
RL
38015echo "$as_me:$LINENO: checking for localtime_r" >&5
38016echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6
38017if test "${ac_cv_func_localtime_r+set}" = set; then
a848cd7e
SC
38018 echo $ECHO_N "(cached) $ECHO_C" >&6
38019else
38020 cat >conftest.$ac_ext <<_ACEOF
38021/* confdefs.h. */
38022_ACEOF
38023cat confdefs.h >>conftest.$ac_ext
38024cat >>conftest.$ac_ext <<_ACEOF
38025/* end confdefs.h. */
004ee6da 38026/* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
ac1cb8d3 38027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
004ee6da 38028#define localtime_r innocuous_localtime_r
ac1cb8d3 38029
a848cd7e 38030/* System header to define __stub macros and hopefully few prototypes,
004ee6da 38031 which can conflict with char localtime_r (); below.
a848cd7e
SC
38032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38033 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38034
a848cd7e
SC
38035#ifdef __STDC__
38036# include <limits.h>
38037#else
38038# include <assert.h>
38039#endif
ac1cb8d3 38040
004ee6da 38041#undef localtime_r
ac1cb8d3 38042
a848cd7e
SC
38043/* Override any gcc2 internal prototype to avoid an error. */
38044#ifdef __cplusplus
38045extern "C"
38046{
38047#endif
38048/* We use char because int might match the return type of a gcc2
38049 builtin and then its argument prototype would still apply. */
004ee6da 38050char localtime_r ();
a848cd7e
SC
38051/* The GNU C library defines this for functions which it implements
38052 to always fail with ENOSYS. Some functions are actually named
38053 something starting with __ and the normal name is an alias. */
004ee6da 38054#if defined (__stub_localtime_r) || defined (__stub___localtime_r)
a848cd7e
SC
38055choke me
38056#else
004ee6da 38057char (*f) () = localtime_r;
a848cd7e
SC
38058#endif
38059#ifdef __cplusplus
38060}
38061#endif
38062
38063int
38064main ()
38065{
004ee6da
RL
38066return f != localtime_r;
38067 ;
38068 return 0;
38069}
38070_ACEOF
38071rm -f conftest.$ac_objext conftest$ac_exeext
38072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38073 (eval $ac_link) 2>conftest.er1
38074 ac_status=$?
38075 grep -v '^ *+' conftest.er1 >conftest.err
38076 rm -f conftest.er1
38077 cat conftest.err >&5
38078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38079 (exit $ac_status); } &&
38080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38082 (eval $ac_try) 2>&5
38083 ac_status=$?
38084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38085 (exit $ac_status); }; } &&
38086 { ac_try='test -s conftest$ac_exeext'
38087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38088 (eval $ac_try) 2>&5
38089 ac_status=$?
38090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38091 (exit $ac_status); }; }; then
38092 ac_cv_func_localtime_r=yes
38093else
38094 echo "$as_me: failed program was:" >&5
38095sed 's/^/| /' conftest.$ac_ext >&5
38096
38097ac_cv_func_localtime_r=no
38098fi
38099rm -f conftest.err conftest.$ac_objext \
38100 conftest$ac_exeext conftest.$ac_ext
38101fi
38102echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
38103echo "${ECHO_T}$ac_cv_func_localtime_r" >&6
38104if test $ac_cv_func_localtime_r = yes; then
38105 cat >>confdefs.h <<\_ACEOF
38106#define HAVE_LOCALTIME_R 1
38107_ACEOF
38108
38109fi
38110
38111echo "$as_me:$LINENO: checking for gmtime_r" >&5
38112echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6
38113if test "${ac_cv_func_gmtime_r+set}" = set; then
38114 echo $ECHO_N "(cached) $ECHO_C" >&6
38115else
38116 cat >conftest.$ac_ext <<_ACEOF
38117/* confdefs.h. */
38118_ACEOF
38119cat confdefs.h >>conftest.$ac_ext
38120cat >>conftest.$ac_ext <<_ACEOF
38121/* end confdefs.h. */
38122/* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
38123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38124#define gmtime_r innocuous_gmtime_r
38125
38126/* System header to define __stub macros and hopefully few prototypes,
38127 which can conflict with char gmtime_r (); below.
38128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38129 <limits.h> exists even on freestanding compilers. */
38130
38131#ifdef __STDC__
38132# include <limits.h>
38133#else
38134# include <assert.h>
38135#endif
38136
38137#undef gmtime_r
38138
38139/* Override any gcc2 internal prototype to avoid an error. */
38140#ifdef __cplusplus
38141extern "C"
38142{
38143#endif
38144/* We use char because int might match the return type of a gcc2
38145 builtin and then its argument prototype would still apply. */
38146char gmtime_r ();
38147/* The GNU C library defines this for functions which it implements
38148 to always fail with ENOSYS. Some functions are actually named
38149 something starting with __ and the normal name is an alias. */
38150#if defined (__stub_gmtime_r) || defined (__stub___gmtime_r)
38151choke me
38152#else
38153char (*f) () = gmtime_r;
38154#endif
38155#ifdef __cplusplus
38156}
38157#endif
38158
38159int
38160main ()
38161{
38162return f != gmtime_r;
38163 ;
38164 return 0;
38165}
38166_ACEOF
38167rm -f conftest.$ac_objext conftest$ac_exeext
38168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38169 (eval $ac_link) 2>conftest.er1
38170 ac_status=$?
38171 grep -v '^ *+' conftest.er1 >conftest.err
38172 rm -f conftest.er1
38173 cat conftest.err >&5
38174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38175 (exit $ac_status); } &&
38176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38178 (eval $ac_try) 2>&5
38179 ac_status=$?
38180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181 (exit $ac_status); }; } &&
38182 { ac_try='test -s conftest$ac_exeext'
38183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38184 (eval $ac_try) 2>&5
38185 ac_status=$?
38186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38187 (exit $ac_status); }; }; then
38188 ac_cv_func_gmtime_r=yes
38189else
38190 echo "$as_me: failed program was:" >&5
38191sed 's/^/| /' conftest.$ac_ext >&5
38192
38193ac_cv_func_gmtime_r=no
38194fi
38195rm -f conftest.err conftest.$ac_objext \
38196 conftest$ac_exeext conftest.$ac_ext
38197fi
38198echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
38199echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6
38200if test $ac_cv_func_gmtime_r = yes; then
38201 cat >>confdefs.h <<\_ACEOF
38202#define HAVE_GMTIME_R 1
38203_ACEOF
38204
38205fi
38206
38207echo "$as_me:$LINENO: checking for readdir_r" >&5
38208echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6
38209if test "${ac_cv_func_readdir_r+set}" = set; then
38210 echo $ECHO_N "(cached) $ECHO_C" >&6
38211else
38212 cat >conftest.$ac_ext <<_ACEOF
38213/* confdefs.h. */
38214_ACEOF
38215cat confdefs.h >>conftest.$ac_ext
38216cat >>conftest.$ac_ext <<_ACEOF
38217/* end confdefs.h. */
38218/* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
38219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38220#define readdir_r innocuous_readdir_r
38221
38222/* System header to define __stub macros and hopefully few prototypes,
38223 which can conflict with char readdir_r (); below.
38224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38225 <limits.h> exists even on freestanding compilers. */
38226
38227#ifdef __STDC__
38228# include <limits.h>
38229#else
38230# include <assert.h>
38231#endif
38232
38233#undef readdir_r
38234
38235/* Override any gcc2 internal prototype to avoid an error. */
38236#ifdef __cplusplus
38237extern "C"
38238{
38239#endif
38240/* We use char because int might match the return type of a gcc2
38241 builtin and then its argument prototype would still apply. */
38242char readdir_r ();
38243/* The GNU C library defines this for functions which it implements
38244 to always fail with ENOSYS. Some functions are actually named
38245 something starting with __ and the normal name is an alias. */
38246#if defined (__stub_readdir_r) || defined (__stub___readdir_r)
38247choke me
38248#else
38249char (*f) () = readdir_r;
38250#endif
38251#ifdef __cplusplus
38252}
38253#endif
38254
38255int
38256main ()
38257{
38258return f != readdir_r;
38259 ;
38260 return 0;
38261}
38262_ACEOF
38263rm -f conftest.$ac_objext conftest$ac_exeext
38264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38265 (eval $ac_link) 2>conftest.er1
38266 ac_status=$?
38267 grep -v '^ *+' conftest.er1 >conftest.err
38268 rm -f conftest.er1
38269 cat conftest.err >&5
38270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38271 (exit $ac_status); } &&
38272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38274 (eval $ac_try) 2>&5
38275 ac_status=$?
38276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38277 (exit $ac_status); }; } &&
38278 { ac_try='test -s conftest$ac_exeext'
38279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38280 (eval $ac_try) 2>&5
38281 ac_status=$?
38282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38283 (exit $ac_status); }; }; then
38284 ac_cv_func_readdir_r=yes
38285else
38286 echo "$as_me: failed program was:" >&5
38287sed 's/^/| /' conftest.$ac_ext >&5
38288
38289ac_cv_func_readdir_r=no
38290fi
38291rm -f conftest.err conftest.$ac_objext \
38292 conftest$ac_exeext conftest.$ac_ext
38293fi
38294echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
38295echo "${ECHO_T}$ac_cv_func_readdir_r" >&6
38296if test $ac_cv_func_readdir_r = yes; then
38297 cat >>confdefs.h <<\_ACEOF
38298#define HAVE_READDIR_R 1
38299_ACEOF
38300
38301fi
38302
38303echo "$as_me:$LINENO: checking for getaddrinfo" >&5
38304echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
38305if test "${ac_cv_func_getaddrinfo+set}" = set; then
38306 echo $ECHO_N "(cached) $ECHO_C" >&6
38307else
38308 cat >conftest.$ac_ext <<_ACEOF
38309/* confdefs.h. */
38310_ACEOF
38311cat confdefs.h >>conftest.$ac_ext
38312cat >>conftest.$ac_ext <<_ACEOF
38313/* end confdefs.h. */
38314/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
38315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38316#define getaddrinfo innocuous_getaddrinfo
38317
38318/* System header to define __stub macros and hopefully few prototypes,
38319 which can conflict with char getaddrinfo (); below.
38320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38321 <limits.h> exists even on freestanding compilers. */
38322
38323#ifdef __STDC__
38324# include <limits.h>
38325#else
38326# include <assert.h>
38327#endif
38328
38329#undef getaddrinfo
38330
38331/* Override any gcc2 internal prototype to avoid an error. */
38332#ifdef __cplusplus
38333extern "C"
38334{
38335#endif
38336/* We use char because int might match the return type of a gcc2
38337 builtin and then its argument prototype would still apply. */
38338char getaddrinfo ();
38339/* The GNU C library defines this for functions which it implements
38340 to always fail with ENOSYS. Some functions are actually named
38341 something starting with __ and the normal name is an alias. */
38342#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
38343choke me
38344#else
38345char (*f) () = getaddrinfo;
38346#endif
38347#ifdef __cplusplus
38348}
38349#endif
38350
38351int
38352main ()
38353{
38354return f != getaddrinfo;
38355 ;
38356 return 0;
38357}
38358_ACEOF
38359rm -f conftest.$ac_objext conftest$ac_exeext
38360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38361 (eval $ac_link) 2>conftest.er1
38362 ac_status=$?
38363 grep -v '^ *+' conftest.er1 >conftest.err
38364 rm -f conftest.er1
38365 cat conftest.err >&5
38366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38367 (exit $ac_status); } &&
38368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38370 (eval $ac_try) 2>&5
38371 ac_status=$?
38372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38373 (exit $ac_status); }; } &&
38374 { ac_try='test -s conftest$ac_exeext'
38375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38376 (eval $ac_try) 2>&5
38377 ac_status=$?
38378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38379 (exit $ac_status); }; }; then
38380 ac_cv_func_getaddrinfo=yes
38381else
38382 echo "$as_me: failed program was:" >&5
38383sed 's/^/| /' conftest.$ac_ext >&5
38384
38385ac_cv_func_getaddrinfo=no
38386fi
38387rm -f conftest.err conftest.$ac_objext \
38388 conftest$ac_exeext conftest.$ac_ext
38389fi
38390echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
38391echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
38392if test $ac_cv_func_getaddrinfo = yes; then
38393 cat >>confdefs.h <<\_ACEOF
38394#define HAVE_GETADDRINFO 1
38395_ACEOF
38396
38397else
38398
38399
38400 ac_ext=c
38401ac_cpp='$CPP $CPPFLAGS'
38402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38404ac_compiler_gnu=$ac_cv_c_compiler_gnu
38405
38406 echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
38407echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6
38408
38409 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
38410 echo $ECHO_N "(cached) $ECHO_C" >&6
38411else
38412
38413
38414################################################################
38415
38416ac_cv_func_which_gethostbyname_r=unknown
38417
38418#
38419# ONE ARGUMENT (sanity check)
38420#
38421
38422# This should fail, as there is no variant of gethostbyname_r() that takes
38423# a single argument. If it actually compiles, then we can assume that
38424# netdb.h is not declaring the function, and the compiler is thereby
38425# assuming an implicit prototype. In which case, we're out of luck.
38426#
38427cat >conftest.$ac_ext <<_ACEOF
38428/* confdefs.h. */
38429_ACEOF
38430cat confdefs.h >>conftest.$ac_ext
38431cat >>conftest.$ac_ext <<_ACEOF
38432/* end confdefs.h. */
38433#include <netdb.h>
38434int
38435main ()
38436{
38437
38438 char *name = "www.gnu.org";
38439 (void)gethostbyname_r(name) /* ; */
38440
38441 ;
38442 return 0;
38443}
38444_ACEOF
38445rm -f conftest.$ac_objext
38446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38447 (eval $ac_compile) 2>conftest.er1
38448 ac_status=$?
38449 grep -v '^ *+' conftest.er1 >conftest.err
38450 rm -f conftest.er1
38451 cat conftest.err >&5
38452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38453 (exit $ac_status); } &&
38454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38456 (eval $ac_try) 2>&5
38457 ac_status=$?
38458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38459 (exit $ac_status); }; } &&
38460 { ac_try='test -s conftest.$ac_objext'
38461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38462 (eval $ac_try) 2>&5
38463 ac_status=$?
38464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465 (exit $ac_status); }; }; then
38466 ac_cv_func_which_gethostbyname_r=no
38467else
38468 echo "$as_me: failed program was:" >&5
38469sed 's/^/| /' conftest.$ac_ext >&5
38470
38471fi
38472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38473
38474#
38475# SIX ARGUMENTS
38476# (e.g. Linux)
38477#
38478
38479if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38480
38481cat >conftest.$ac_ext <<_ACEOF
38482/* confdefs.h. */
38483_ACEOF
38484cat confdefs.h >>conftest.$ac_ext
38485cat >>conftest.$ac_ext <<_ACEOF
38486/* end confdefs.h. */
38487#include <netdb.h>
38488int
38489main ()
38490{
38491
38492 char *name = "www.gnu.org";
38493 struct hostent ret, *retp;
38494 char buf[1024];
38495 int buflen = 1024;
38496 int my_h_errno;
38497 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
38498
38499 ;
38500 return 0;
38501}
38502_ACEOF
38503rm -f conftest.$ac_objext
38504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38505 (eval $ac_compile) 2>conftest.er1
38506 ac_status=$?
38507 grep -v '^ *+' conftest.er1 >conftest.err
38508 rm -f conftest.er1
38509 cat conftest.err >&5
38510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38511 (exit $ac_status); } &&
38512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38514 (eval $ac_try) 2>&5
38515 ac_status=$?
38516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38517 (exit $ac_status); }; } &&
38518 { ac_try='test -s conftest.$ac_objext'
38519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38520 (eval $ac_try) 2>&5
38521 ac_status=$?
38522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38523 (exit $ac_status); }; }; then
38524 ac_cv_func_which_gethostbyname_r=six
38525else
38526 echo "$as_me: failed program was:" >&5
38527sed 's/^/| /' conftest.$ac_ext >&5
38528
38529fi
38530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38531
38532fi
38533
38534#
38535# FIVE ARGUMENTS
38536# (e.g. Solaris)
38537#
38538
38539if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38540
38541cat >conftest.$ac_ext <<_ACEOF
38542/* confdefs.h. */
38543_ACEOF
38544cat confdefs.h >>conftest.$ac_ext
38545cat >>conftest.$ac_ext <<_ACEOF
38546/* end confdefs.h. */
38547#include <netdb.h>
38548int
38549main ()
38550{
38551
38552 char *name = "www.gnu.org";
38553 struct hostent ret;
38554 char buf[1024];
38555 int buflen = 1024;
38556 int my_h_errno;
38557 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
38558
38559 ;
38560 return 0;
38561}
38562_ACEOF
38563rm -f conftest.$ac_objext
38564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38565 (eval $ac_compile) 2>conftest.er1
38566 ac_status=$?
38567 grep -v '^ *+' conftest.er1 >conftest.err
38568 rm -f conftest.er1
38569 cat conftest.err >&5
38570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571 (exit $ac_status); } &&
38572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38574 (eval $ac_try) 2>&5
38575 ac_status=$?
38576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38577 (exit $ac_status); }; } &&
38578 { ac_try='test -s conftest.$ac_objext'
38579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38580 (eval $ac_try) 2>&5
38581 ac_status=$?
38582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38583 (exit $ac_status); }; }; then
38584 ac_cv_func_which_gethostbyname_r=five
38585else
38586 echo "$as_me: failed program was:" >&5
38587sed 's/^/| /' conftest.$ac_ext >&5
38588
38589fi
38590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38591
38592fi
38593
38594#
38595# THREE ARGUMENTS
38596# (e.g. AIX, HP-UX, Tru64)
38597#
38598
38599if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
38600
38601cat >conftest.$ac_ext <<_ACEOF
38602/* confdefs.h. */
38603_ACEOF
38604cat confdefs.h >>conftest.$ac_ext
38605cat >>conftest.$ac_ext <<_ACEOF
38606/* end confdefs.h. */
38607#include <netdb.h>
38608int
38609main ()
38610{
38611
38612 char *name = "www.gnu.org";
38613 struct hostent ret;
38614 struct hostent_data data;
38615 (void)gethostbyname_r(name, &ret, &data) /* ; */
38616
38617 ;
38618 return 0;
38619}
38620_ACEOF
38621rm -f conftest.$ac_objext
38622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38623 (eval $ac_compile) 2>conftest.er1
38624 ac_status=$?
38625 grep -v '^ *+' conftest.er1 >conftest.err
38626 rm -f conftest.er1
38627 cat conftest.err >&5
38628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38629 (exit $ac_status); } &&
38630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_objext'
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 ac_cv_func_which_gethostbyname_r=three
38643else
38644 echo "$as_me: failed program was:" >&5
38645sed 's/^/| /' conftest.$ac_ext >&5
38646
38647fi
38648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
38649
38650fi
38651
38652################################################################
38653
38654
38655fi
38656
38657case "$ac_cv_func_which_gethostbyname_r" in
38658 three)
38659 echo "$as_me:$LINENO: result: three" >&5
38660echo "${ECHO_T}three" >&6
38661 cat >>confdefs.h <<\_ACEOF
38662#define HAVE_FUNC_GETHOSTBYNAME_R_3 1
38663_ACEOF
38664
38665 ;;
38666
38667 five)
38668 echo "$as_me:$LINENO: result: five" >&5
38669echo "${ECHO_T}five" >&6
38670 cat >>confdefs.h <<\_ACEOF
38671#define HAVE_FUNC_GETHOSTBYNAME_R_5 1
38672_ACEOF
38673
38674 ;;
38675
38676 six)
38677 echo "$as_me:$LINENO: result: six" >&5
38678echo "${ECHO_T}six" >&6
38679 cat >>confdefs.h <<\_ACEOF
38680#define HAVE_FUNC_GETHOSTBYNAME_R_6 1
38681_ACEOF
38682
38683 ;;
38684
38685 no)
38686 echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
38687echo "${ECHO_T}cannot find function declaration in netdb.h" >&6
38688 ;;
38689
38690 unknown)
38691 echo "$as_me:$LINENO: result: can't tell" >&5
38692echo "${ECHO_T}can't tell" >&6
38693 ;;
38694
38695 *)
38696 { { echo "$as_me:$LINENO: error: internal error" >&5
38697echo "$as_me: error: internal error" >&2;}
38698 { (exit 1); exit 1; }; }
38699 ;;
38700esac
38701
38702ac_ext=c
38703ac_cpp='$CPP $CPPFLAGS'
38704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38706ac_compiler_gnu=$ac_cv_c_compiler_gnu
38707
38708
38709
38710 if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
38711 "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
38712 echo "$as_me:$LINENO: checking for gethostbyname" >&5
38713echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
38714if test "${ac_cv_func_gethostbyname+set}" = set; then
38715 echo $ECHO_N "(cached) $ECHO_C" >&6
38716else
38717 cat >conftest.$ac_ext <<_ACEOF
38718/* confdefs.h. */
38719_ACEOF
38720cat confdefs.h >>conftest.$ac_ext
38721cat >>conftest.$ac_ext <<_ACEOF
38722/* end confdefs.h. */
38723/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
38724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38725#define gethostbyname innocuous_gethostbyname
38726
38727/* System header to define __stub macros and hopefully few prototypes,
38728 which can conflict with char gethostbyname (); below.
38729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38730 <limits.h> exists even on freestanding compilers. */
38731
38732#ifdef __STDC__
38733# include <limits.h>
38734#else
38735# include <assert.h>
38736#endif
38737
38738#undef gethostbyname
38739
38740/* Override any gcc2 internal prototype to avoid an error. */
38741#ifdef __cplusplus
38742extern "C"
38743{
38744#endif
38745/* We use char because int might match the return type of a gcc2
38746 builtin and then its argument prototype would still apply. */
38747char gethostbyname ();
38748/* The GNU C library defines this for functions which it implements
38749 to always fail with ENOSYS. Some functions are actually named
38750 something starting with __ and the normal name is an alias. */
38751#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
38752choke me
38753#else
38754char (*f) () = gethostbyname;
38755#endif
38756#ifdef __cplusplus
38757}
38758#endif
38759
38760int
38761main ()
38762{
38763return f != gethostbyname;
38764 ;
38765 return 0;
38766}
38767_ACEOF
38768rm -f conftest.$ac_objext conftest$ac_exeext
38769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38770 (eval $ac_link) 2>conftest.er1
38771 ac_status=$?
38772 grep -v '^ *+' conftest.er1 >conftest.err
38773 rm -f conftest.er1
38774 cat conftest.err >&5
38775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38776 (exit $ac_status); } &&
38777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38779 (eval $ac_try) 2>&5
38780 ac_status=$?
38781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782 (exit $ac_status); }; } &&
38783 { ac_try='test -s conftest$ac_exeext'
38784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38785 (eval $ac_try) 2>&5
38786 ac_status=$?
38787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38788 (exit $ac_status); }; }; then
38789 ac_cv_func_gethostbyname=yes
38790else
38791 echo "$as_me: failed program was:" >&5
38792sed 's/^/| /' conftest.$ac_ext >&5
38793
38794ac_cv_func_gethostbyname=no
38795fi
38796rm -f conftest.err conftest.$ac_objext \
38797 conftest$ac_exeext conftest.$ac_ext
38798fi
38799echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
38800echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
38801if test $ac_cv_func_gethostbyname = yes; then
38802 cat >>confdefs.h <<\_ACEOF
38803#define HAVE_GETHOSTBYNAME 1
38804_ACEOF
38805
38806fi
38807
38808 fi
38809 echo "$as_me:$LINENO: checking for getservbyname_r" >&5
38810echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
38811if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
38812 echo $ECHO_N "(cached) $ECHO_C" >&6
38813else
38814
38815echo "$as_me:$LINENO: checking for getservbyname_r" >&5
38816echo $ECHO_N "checking for getservbyname_r... $ECHO_C" >&6
38817if test "${ac_cv_func_getservbyname_r+set}" = set; then
38818 echo $ECHO_N "(cached) $ECHO_C" >&6
38819else
38820 cat >conftest.$ac_ext <<_ACEOF
38821/* confdefs.h. */
38822_ACEOF
38823cat confdefs.h >>conftest.$ac_ext
38824cat >>conftest.$ac_ext <<_ACEOF
38825/* end confdefs.h. */
38826/* Define getservbyname_r to an innocuous variant, in case <limits.h> declares getservbyname_r.
38827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38828#define getservbyname_r innocuous_getservbyname_r
38829
38830/* System header to define __stub macros and hopefully few prototypes,
38831 which can conflict with char getservbyname_r (); below.
38832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38833 <limits.h> exists even on freestanding compilers. */
38834
38835#ifdef __STDC__
38836# include <limits.h>
38837#else
38838# include <assert.h>
38839#endif
38840
38841#undef getservbyname_r
38842
38843/* Override any gcc2 internal prototype to avoid an error. */
38844#ifdef __cplusplus
38845extern "C"
38846{
38847#endif
38848/* We use char because int might match the return type of a gcc2
38849 builtin and then its argument prototype would still apply. */
38850char getservbyname_r ();
38851/* The GNU C library defines this for functions which it implements
38852 to always fail with ENOSYS. Some functions are actually named
38853 something starting with __ and the normal name is an alias. */
38854#if defined (__stub_getservbyname_r) || defined (__stub___getservbyname_r)
38855choke me
38856#else
38857char (*f) () = getservbyname_r;
38858#endif
38859#ifdef __cplusplus
38860}
38861#endif
38862
38863int
38864main ()
38865{
38866return f != getservbyname_r;
38867 ;
38868 return 0;
38869}
38870_ACEOF
38871rm -f conftest.$ac_objext conftest$ac_exeext
38872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38873 (eval $ac_link) 2>conftest.er1
38874 ac_status=$?
38875 grep -v '^ *+' conftest.er1 >conftest.err
38876 rm -f conftest.er1
38877 cat conftest.err >&5
38878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38879 (exit $ac_status); } &&
38880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38882 (eval $ac_try) 2>&5
38883 ac_status=$?
38884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38885 (exit $ac_status); }; } &&
38886 { ac_try='test -s conftest$ac_exeext'
38887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38888 (eval $ac_try) 2>&5
38889 ac_status=$?
38890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38891 (exit $ac_status); }; }; then
38892 ac_cv_func_getservbyname_r=yes
38893else
38894 echo "$as_me: failed program was:" >&5
38895sed 's/^/| /' conftest.$ac_ext >&5
38896
38897ac_cv_func_getservbyname_r=no
38898fi
38899rm -f conftest.err conftest.$ac_objext \
38900 conftest$ac_exeext conftest.$ac_ext
38901fi
38902echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_r" >&5
38903echo "${ECHO_T}$ac_cv_func_getservbyname_r" >&6
38904if test $ac_cv_func_getservbyname_r = yes; then
38905
38906 cat >conftest.$ac_ext <<_ACEOF
38907/* confdefs.h. */
38908_ACEOF
38909cat confdefs.h >>conftest.$ac_ext
38910cat >>conftest.$ac_ext <<_ACEOF
38911/* end confdefs.h. */
38912
38913# include <netdb.h>
38914
38915int
38916main ()
38917{
38918
38919
38920 char *name;
38921 char *proto;
38922 struct servent *se;
38923 struct servent_data data;
38924 (void) getservbyname_r(name, proto, se, &data);
38925
38926
38927 ;
38928 return 0;
38929}
38930_ACEOF
38931rm -f conftest.$ac_objext
38932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38933 (eval $ac_compile) 2>conftest.er1
38934 ac_status=$?
38935 grep -v '^ *+' conftest.er1 >conftest.err
38936 rm -f conftest.er1
38937 cat conftest.err >&5
38938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38939 (exit $ac_status); } &&
38940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38942 (eval $ac_try) 2>&5
38943 ac_status=$?
38944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945 (exit $ac_status); }; } &&
38946 { ac_try='test -s conftest.$ac_objext'
38947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38948 (eval $ac_try) 2>&5
38949 ac_status=$?
38950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951 (exit $ac_status); }; }; then
38952 ac_cv_func_which_getservbyname_r=four
38953else
38954 echo "$as_me: failed program was:" >&5
38955sed 's/^/| /' conftest.$ac_ext >&5
38956
38957
38958 cat >conftest.$ac_ext <<_ACEOF
38959/* confdefs.h. */
38960_ACEOF
38961cat confdefs.h >>conftest.$ac_ext
38962cat >>conftest.$ac_ext <<_ACEOF
38963/* end confdefs.h. */
38964
38965# include <netdb.h>
38966
38967int
38968main ()
38969{
38970
38971 char *name;
38972 char *proto;
38973 struct servent *se, *res;
38974 char buffer[2048];
38975 int buflen = 2048;
38976 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
38977
38978 ;
38979 return 0;
38980}
38981_ACEOF
38982rm -f conftest.$ac_objext
38983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38984 (eval $ac_compile) 2>conftest.er1
38985 ac_status=$?
38986 grep -v '^ *+' conftest.er1 >conftest.err
38987 rm -f conftest.er1
38988 cat conftest.err >&5
38989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38990 (exit $ac_status); } &&
38991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
38992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38993 (eval $ac_try) 2>&5
38994 ac_status=$?
38995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38996 (exit $ac_status); }; } &&
38997 { ac_try='test -s conftest.$ac_objext'
38998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38999 (eval $ac_try) 2>&5
39000 ac_status=$?
39001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39002 (exit $ac_status); }; }; then
39003 ac_cv_func_which_getservbyname_r=six
39004else
39005 echo "$as_me: failed program was:" >&5
39006sed 's/^/| /' conftest.$ac_ext >&5
39007
39008
39009 cat >conftest.$ac_ext <<_ACEOF
39010/* confdefs.h. */
39011_ACEOF
39012cat confdefs.h >>conftest.$ac_ext
39013cat >>conftest.$ac_ext <<_ACEOF
39014/* end confdefs.h. */
39015
39016# include <netdb.h>
39017
39018int
39019main ()
39020{
39021
39022 char *name;
39023 char *proto;
39024 struct servent *se;
39025 char buffer[2048];
39026 int buflen = 2048;
39027 (void) getservbyname_r(name, proto, se, buffer, buflen)
39028
39029 ;
39030 return 0;
39031}
39032_ACEOF
39033rm -f conftest.$ac_objext
39034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39035 (eval $ac_compile) 2>conftest.er1
39036 ac_status=$?
39037 grep -v '^ *+' conftest.er1 >conftest.err
39038 rm -f conftest.er1
39039 cat conftest.err >&5
39040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39041 (exit $ac_status); } &&
39042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39044 (eval $ac_try) 2>&5
39045 ac_status=$?
39046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39047 (exit $ac_status); }; } &&
39048 { ac_try='test -s conftest.$ac_objext'
39049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39050 (eval $ac_try) 2>&5
39051 ac_status=$?
39052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39053 (exit $ac_status); }; }; then
39054 ac_cv_func_which_getservbyname_r=five
39055else
39056 echo "$as_me: failed program was:" >&5
39057sed 's/^/| /' conftest.$ac_ext >&5
39058
39059ac_cv_func_which_getservbyname_r=no
39060fi
39061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39062
39063
39064
39065
39066fi
39067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39068
39069
39070fi
39071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39072
39073else
39074 ac_cv_func_which_getservbyname_r=no
39075fi
39076
39077fi
39078echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
39079echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6
39080
39081if test $ac_cv_func_which_getservbyname_r = six; then
39082 cat >>confdefs.h <<\_ACEOF
39083#define HAVE_FUNC_GETSERVBYNAME_R_6 1
39084_ACEOF
39085
39086elif test $ac_cv_func_which_getservbyname_r = five; then
39087 cat >>confdefs.h <<\_ACEOF
39088#define HAVE_FUNC_GETSERVBYNAME_R_5 1
39089_ACEOF
39090
39091elif test $ac_cv_func_which_getservbyname_r = four; then
39092 cat >>confdefs.h <<\_ACEOF
39093#define HAVE_FUNC_GETSERVBYNAME_R_4 1
39094_ACEOF
39095
39096
39097fi
39098
39099
39100 if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
39101 "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
39102
39103for ac_func in getservbyname
39104do
39105as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39106echo "$as_me:$LINENO: checking for $ac_func" >&5
39107echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39108if eval "test \"\${$as_ac_var+set}\" = set"; then
39109 echo $ECHO_N "(cached) $ECHO_C" >&6
39110else
39111 cat >conftest.$ac_ext <<_ACEOF
39112/* confdefs.h. */
39113_ACEOF
39114cat confdefs.h >>conftest.$ac_ext
39115cat >>conftest.$ac_ext <<_ACEOF
39116/* end confdefs.h. */
39117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39119#define $ac_func innocuous_$ac_func
39120
39121/* System header to define __stub macros and hopefully few prototypes,
39122 which can conflict with char $ac_func (); below.
39123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39124 <limits.h> exists even on freestanding compilers. */
39125
39126#ifdef __STDC__
39127# include <limits.h>
39128#else
39129# include <assert.h>
39130#endif
39131
39132#undef $ac_func
39133
39134/* Override any gcc2 internal prototype to avoid an error. */
39135#ifdef __cplusplus
39136extern "C"
39137{
39138#endif
39139/* We use char because int might match the return type of a gcc2
39140 builtin and then its argument prototype would still apply. */
39141char $ac_func ();
39142/* The GNU C library defines this for functions which it implements
39143 to always fail with ENOSYS. Some functions are actually named
39144 something starting with __ and the normal name is an alias. */
39145#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39146choke me
39147#else
39148char (*f) () = $ac_func;
39149#endif
39150#ifdef __cplusplus
39151}
39152#endif
39153
39154int
39155main ()
39156{
39157return f != $ac_func;
39158 ;
39159 return 0;
39160}
39161_ACEOF
39162rm -f conftest.$ac_objext conftest$ac_exeext
39163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39164 (eval $ac_link) 2>conftest.er1
39165 ac_status=$?
39166 grep -v '^ *+' conftest.er1 >conftest.err
39167 rm -f conftest.er1
39168 cat conftest.err >&5
39169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39170 (exit $ac_status); } &&
39171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
39172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39173 (eval $ac_try) 2>&5
39174 ac_status=$?
39175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39176 (exit $ac_status); }; } &&
39177 { ac_try='test -s conftest$ac_exeext'
39178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39179 (eval $ac_try) 2>&5
39180 ac_status=$?
39181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39182 (exit $ac_status); }; }; then
39183 eval "$as_ac_var=yes"
39184else
39185 echo "$as_me: failed program was:" >&5
39186sed 's/^/| /' conftest.$ac_ext >&5
39187
39188eval "$as_ac_var=no"
39189fi
39190rm -f conftest.err conftest.$ac_objext \
39191 conftest$ac_exeext conftest.$ac_ext
39192fi
39193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39194echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39195if test `eval echo '${'$as_ac_var'}'` = yes; then
39196 cat >>confdefs.h <<_ACEOF
39197#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39198_ACEOF
39199 cat >>confdefs.h <<\_ACEOF
39200#define HAVE_GETSERVBYNAME 1
39201_ACEOF
39202
39203fi
39204done
39205
39206 fi
39207
39208
39209fi
39210
39211
39212if test "$wxUSE_THREADS" = "yes"; then
39213 cat >>confdefs.h <<\_ACEOF
39214#define wxUSE_THREADS 1
39215_ACEOF
39216
39217
39218 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
39219else
39220 if test "$ac_cv_func_strtok_r" = "yes"; then
39221 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
39222echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
39223 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
39224 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
39225 echo "$as_me:$LINENO: result: yes" >&5
39226echo "${ECHO_T}yes" >&6
39227 else
39228 echo "$as_me:$LINENO: result: no" >&5
39229echo "${ECHO_T}no" >&6
39230 fi
39231 fi
39232fi
39233
39234if test "$WXGTK20" = 1 ; then
39235 cat >>confdefs.h <<_ACEOF
39236#define __WXGTK20__ $WXGTK20
39237_ACEOF
39238
39239 WXGTK12=1
39240fi
39241
39242if test "$WXGTK12" = 1 ; then
39243 cat >>confdefs.h <<_ACEOF
39244#define __WXGTK12__ $WXGTK12
39245_ACEOF
39246
39247fi
39248
39249if test "$WXGTK127" = 1 ; then
39250 cat >>confdefs.h <<_ACEOF
39251#define __WXGTK127__ $WXGTK127
39252_ACEOF
39253
39254fi
39255
39256if test "$WXGPE" = 1 ; then
39257 cat >>confdefs.h <<_ACEOF
39258#define __WXGPE__ $WXGPE
39259_ACEOF
39260
39261fi
39262
39263DEBUG_CFLAGS=
39264if test "$wxUSE_DEBUG_INFO" = "yes" ; then
39265 DEBUG_CFLAGS="-g"
39266 wxUSE_OPTIMISE=no
39267fi
39268
39269if test "$wxUSE_DEBUG_GDB" = "yes" ; then
39270 wxUSE_DEBUG_INFO=yes
39271 if test "$GCC" = yes; then
39272 DEBUG_CFLAGS="-ggdb"
39273 fi
39274fi
39275
39276if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
39277 cat >>confdefs.h <<\_ACEOF
39278#define WXDEBUG 1
39279_ACEOF
39280
39281 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
39282else
39283 if test "$wxUSE_GTK" = 1 ; then
c92ad099 39284 CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
004ee6da
RL
39285 fi
39286fi
39287
39288if test "$wxUSE_MEM_TRACING" = "yes" ; then
39289 cat >>confdefs.h <<\_ACEOF
39290#define wxUSE_MEMORY_TRACING 1
39291_ACEOF
39292
39293 cat >>confdefs.h <<\_ACEOF
39294#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
39295_ACEOF
39296
39297 cat >>confdefs.h <<\_ACEOF
39298#define wxUSE_DEBUG_NEW_ALWAYS 1
39299_ACEOF
39300
39301 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
39302fi
39303
39304if test "$wxUSE_DMALLOC" = "yes" ; then
39305 DMALLOC_LIBS="-ldmallocthcxx"
39306fi
39307
39308PROFILE_FLAGS=
39309if test "$wxUSE_PROFILE" = "yes" ; then
39310 PROFILE_FLAGS=" -pg"
39311fi
39312
39313if test "$GCC" = "yes" ; then
39314 if test "$wxUSE_NO_RTTI" = "yes" ; then
39315 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
39316 fi
39317 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
39318 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
39319 fi
39320 if test "$wxUSE_PERMISSIVE" = "yes" ; then
39321 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
39322 fi
39323
39324 case "${host}" in
39325 powerpc*-*-aix* )
39326 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
39327 ;;
39328 *-hppa* )
39329 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
39330 ;;
39331 esac
39332fi
39333
39334OPTIMISE_CFLAGS=
39335if test "$wxUSE_OPTIMISE" = "no" ; then
39336 if test "$GCC" = yes ; then
39337 OPTIMISE_CFLAGS="-O0"
39338 fi
39339else
39340 if test "$GCC" = yes ; then
39341 OPTIMISE_CFLAGS="-O2"
39342 else
39343 OPTIMISE_CFLAGS="-O"
39344 fi
39345fi
39346
39347
39348if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
39349 cat >>confdefs.h <<\_ACEOF
39350#define WXWIN_COMPATIBILITY_2_4 1
39351_ACEOF
39352
39353
39354 WXWIN_COMPATIBILITY_2_6="yes"
39355fi
39356
39357if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
39358 cat >>confdefs.h <<\_ACEOF
39359#define WXWIN_COMPATIBILITY_2_6 1
39360_ACEOF
39361
39362fi
39363
39364
39365if test "$wxUSE_GUI" = "yes"; then
39366 cat >>confdefs.h <<\_ACEOF
39367#define wxUSE_GUI 1
39368_ACEOF
39369
39370
39371 fi
39372
39373
39374if test "$wxUSE_UNIX" = "yes"; then
39375 cat >>confdefs.h <<\_ACEOF
39376#define wxUSE_UNIX 1
39377_ACEOF
39378
39379fi
39380
39381
39382if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
39383
39384 HAVE_DL_FUNCS=0
39385 HAVE_SHL_FUNCS=0
39386 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39387 if test "$USE_DARWIN" = 1; then
39388 HAVE_DL_FUNCS=1
39389 elif test "$USE_DOS" = 1; then
39390 HAVE_DL_FUNCS=0
39391 else
39392
39393for ac_func in dlopen
39394do
39395as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39396echo "$as_me:$LINENO: checking for $ac_func" >&5
39397echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39398if eval "test \"\${$as_ac_var+set}\" = set"; then
39399 echo $ECHO_N "(cached) $ECHO_C" >&6
39400else
39401 cat >conftest.$ac_ext <<_ACEOF
39402/* confdefs.h. */
39403_ACEOF
39404cat confdefs.h >>conftest.$ac_ext
39405cat >>conftest.$ac_ext <<_ACEOF
39406/* end confdefs.h. */
39407/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39409#define $ac_func innocuous_$ac_func
39410
39411/* System header to define __stub macros and hopefully few prototypes,
39412 which can conflict with char $ac_func (); below.
39413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39414 <limits.h> exists even on freestanding compilers. */
39415
39416#ifdef __STDC__
39417# include <limits.h>
39418#else
39419# include <assert.h>
39420#endif
39421
39422#undef $ac_func
39423
39424/* Override any gcc2 internal prototype to avoid an error. */
39425#ifdef __cplusplus
39426extern "C"
39427{
39428#endif
39429/* We use char because int might match the return type of a gcc2
39430 builtin and then its argument prototype would still apply. */
39431char $ac_func ();
39432/* The GNU C library defines this for functions which it implements
39433 to always fail with ENOSYS. Some functions are actually named
39434 something starting with __ and the normal name is an alias. */
39435#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39436choke me
39437#else
39438char (*f) () = $ac_func;
39439#endif
39440#ifdef __cplusplus
39441}
39442#endif
39443
39444int
39445main ()
39446{
39447return f != $ac_func;
a848cd7e
SC
39448 ;
39449 return 0;
39450}
39451_ACEOF
39452rm -f conftest.$ac_objext conftest$ac_exeext
39453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39454 (eval $ac_link) 2>conftest.er1
a848cd7e 39455 ac_status=$?
ac1cb8d3
VS
39456 grep -v '^ *+' conftest.er1 >conftest.err
39457 rm -f conftest.er1
39458 cat conftest.err >&5
a848cd7e
SC
39459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39460 (exit $ac_status); } &&
5ff751d6 39461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39463 (eval $ac_try) 2>&5
39464 ac_status=$?
39465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39466 (exit $ac_status); }; } &&
39467 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39469 (eval $ac_try) 2>&5
39470 ac_status=$?
39471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39472 (exit $ac_status); }; }; then
39473 eval "$as_ac_var=yes"
39474else
39475 echo "$as_me: failed program was:" >&5
39476sed 's/^/| /' conftest.$ac_ext >&5
39477
39478eval "$as_ac_var=no"
39479fi
ac1cb8d3
VS
39480rm -f conftest.err conftest.$ac_objext \
39481 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39482fi
39483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39484echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39485if test `eval echo '${'$as_ac_var'}'` = yes; then
39486 cat >>confdefs.h <<_ACEOF
39487#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39488_ACEOF
39489
39490 cat >>confdefs.h <<\_ACEOF
39491#define HAVE_DLOPEN 1
39492_ACEOF
39493
39494 HAVE_DL_FUNCS=1
39495
39496else
39497
39498 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
39499echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
39500if test "${ac_cv_lib_dl_dlopen+set}" = set; then
39501 echo $ECHO_N "(cached) $ECHO_C" >&6
39502else
39503 ac_check_lib_save_LIBS=$LIBS
39504LIBS="-ldl $LIBS"
39505cat >conftest.$ac_ext <<_ACEOF
39506/* confdefs.h. */
39507_ACEOF
39508cat confdefs.h >>conftest.$ac_ext
39509cat >>conftest.$ac_ext <<_ACEOF
39510/* end confdefs.h. */
39511
39512/* Override any gcc2 internal prototype to avoid an error. */
39513#ifdef __cplusplus
39514extern "C"
39515#endif
39516/* We use char because int might match the return type of a gcc2
39517 builtin and then its argument prototype would still apply. */
39518char dlopen ();
39519int
39520main ()
39521{
39522dlopen ();
39523 ;
39524 return 0;
39525}
39526_ACEOF
39527rm -f conftest.$ac_objext conftest$ac_exeext
39528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39529 (eval $ac_link) 2>conftest.er1
a848cd7e 39530 ac_status=$?
ac1cb8d3
VS
39531 grep -v '^ *+' conftest.er1 >conftest.err
39532 rm -f conftest.er1
39533 cat conftest.err >&5
a848cd7e
SC
39534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39535 (exit $ac_status); } &&
5ff751d6 39536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39538 (eval $ac_try) 2>&5
39539 ac_status=$?
39540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541 (exit $ac_status); }; } &&
39542 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39544 (eval $ac_try) 2>&5
39545 ac_status=$?
39546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547 (exit $ac_status); }; }; then
39548 ac_cv_lib_dl_dlopen=yes
39549else
39550 echo "$as_me: failed program was:" >&5
39551sed 's/^/| /' conftest.$ac_ext >&5
39552
39553ac_cv_lib_dl_dlopen=no
39554fi
ac1cb8d3
VS
39555rm -f conftest.err conftest.$ac_objext \
39556 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39557LIBS=$ac_check_lib_save_LIBS
39558fi
39559echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
39560echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
39561if test $ac_cv_lib_dl_dlopen = yes; then
39562
39563 cat >>confdefs.h <<\_ACEOF
39564#define HAVE_DLOPEN 1
39565_ACEOF
39566
39567 HAVE_DL_FUNCS=1
39568 DL_LINK=" -ldl$DL_LINK"
39569
39570else
39571
39572
39573for ac_func in shl_load
39574do
39575as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39576echo "$as_me:$LINENO: checking for $ac_func" >&5
39577echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39578if eval "test \"\${$as_ac_var+set}\" = set"; then
39579 echo $ECHO_N "(cached) $ECHO_C" >&6
39580else
39581 cat >conftest.$ac_ext <<_ACEOF
39582/* confdefs.h. */
39583_ACEOF
39584cat confdefs.h >>conftest.$ac_ext
39585cat >>conftest.$ac_ext <<_ACEOF
39586/* end confdefs.h. */
ac1cb8d3
VS
39587/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39589#define $ac_func innocuous_$ac_func
39590
a848cd7e
SC
39591/* System header to define __stub macros and hopefully few prototypes,
39592 which can conflict with char $ac_func (); below.
39593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39594 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39595
a848cd7e
SC
39596#ifdef __STDC__
39597# include <limits.h>
39598#else
39599# include <assert.h>
39600#endif
ac1cb8d3
VS
39601
39602#undef $ac_func
39603
a848cd7e
SC
39604/* Override any gcc2 internal prototype to avoid an error. */
39605#ifdef __cplusplus
39606extern "C"
39607{
39608#endif
39609/* We use char because int might match the return type of a gcc2
39610 builtin and then its argument prototype would still apply. */
39611char $ac_func ();
39612/* The GNU C library defines this for functions which it implements
39613 to always fail with ENOSYS. Some functions are actually named
39614 something starting with __ and the normal name is an alias. */
39615#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39616choke me
39617#else
39618char (*f) () = $ac_func;
39619#endif
39620#ifdef __cplusplus
39621}
39622#endif
39623
39624int
39625main ()
39626{
39627return f != $ac_func;
39628 ;
39629 return 0;
39630}
39631_ACEOF
39632rm -f conftest.$ac_objext conftest$ac_exeext
39633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39634 (eval $ac_link) 2>conftest.er1
a848cd7e 39635 ac_status=$?
ac1cb8d3
VS
39636 grep -v '^ *+' conftest.er1 >conftest.err
39637 rm -f conftest.er1
39638 cat conftest.err >&5
a848cd7e
SC
39639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39640 (exit $ac_status); } &&
5ff751d6 39641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39643 (eval $ac_try) 2>&5
39644 ac_status=$?
39645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39646 (exit $ac_status); }; } &&
39647 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39649 (eval $ac_try) 2>&5
39650 ac_status=$?
39651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39652 (exit $ac_status); }; }; then
39653 eval "$as_ac_var=yes"
39654else
39655 echo "$as_me: failed program was:" >&5
39656sed 's/^/| /' conftest.$ac_ext >&5
39657
39658eval "$as_ac_var=no"
39659fi
ac1cb8d3
VS
39660rm -f conftest.err conftest.$ac_objext \
39661 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39662fi
39663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39664echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39665if test `eval echo '${'$as_ac_var'}'` = yes; then
39666 cat >>confdefs.h <<_ACEOF
39667#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39668_ACEOF
39669
39670 cat >>confdefs.h <<\_ACEOF
39671#define HAVE_SHL_LOAD 1
39672_ACEOF
39673
39674 HAVE_SHL_FUNCS=1
39675
39676else
39677
39678 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
39679echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
39680if test "${ac_cv_lib_shl_load_dld+set}" = set; then
39681 echo $ECHO_N "(cached) $ECHO_C" >&6
39682else
39683 ac_check_lib_save_LIBS=$LIBS
39684LIBS="-lshl_load $LIBS"
39685cat >conftest.$ac_ext <<_ACEOF
39686/* confdefs.h. */
39687_ACEOF
39688cat confdefs.h >>conftest.$ac_ext
39689cat >>conftest.$ac_ext <<_ACEOF
39690/* end confdefs.h. */
39691
39692/* Override any gcc2 internal prototype to avoid an error. */
39693#ifdef __cplusplus
39694extern "C"
39695#endif
39696/* We use char because int might match the return type of a gcc2
39697 builtin and then its argument prototype would still apply. */
39698char dld ();
39699int
39700main ()
39701{
39702dld ();
39703 ;
39704 return 0;
39705}
39706_ACEOF
39707rm -f conftest.$ac_objext conftest$ac_exeext
39708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39709 (eval $ac_link) 2>conftest.er1
a848cd7e 39710 ac_status=$?
ac1cb8d3
VS
39711 grep -v '^ *+' conftest.er1 >conftest.err
39712 rm -f conftest.er1
39713 cat conftest.err >&5
a848cd7e
SC
39714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39715 (exit $ac_status); } &&
5ff751d6 39716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39718 (eval $ac_try) 2>&5
39719 ac_status=$?
39720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39721 (exit $ac_status); }; } &&
39722 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39724 (eval $ac_try) 2>&5
39725 ac_status=$?
39726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39727 (exit $ac_status); }; }; then
39728 ac_cv_lib_shl_load_dld=yes
39729else
39730 echo "$as_me: failed program was:" >&5
39731sed 's/^/| /' conftest.$ac_ext >&5
39732
39733ac_cv_lib_shl_load_dld=no
39734fi
ac1cb8d3
VS
39735rm -f conftest.err conftest.$ac_objext \
39736 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39737LIBS=$ac_check_lib_save_LIBS
39738fi
39739echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
39740echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
39741if test $ac_cv_lib_shl_load_dld = yes; then
39742
39743 HAVE_SHL_FUNCS=1
39744 DL_LINK=" -ldld$DL_LINK"
39745
39746fi
39747
39748
39749fi
39750done
39751
39752
39753fi
39754
39755
39756fi
39757done
39758
39759
39760 if test "$HAVE_DL_FUNCS" = 1; then
39761
39762for ac_func in dlerror
39763do
39764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39765echo "$as_me:$LINENO: checking for $ac_func" >&5
39766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39767if eval "test \"\${$as_ac_var+set}\" = set"; then
39768 echo $ECHO_N "(cached) $ECHO_C" >&6
39769else
39770 cat >conftest.$ac_ext <<_ACEOF
39771/* confdefs.h. */
39772_ACEOF
39773cat confdefs.h >>conftest.$ac_ext
39774cat >>conftest.$ac_ext <<_ACEOF
39775/* end confdefs.h. */
ac1cb8d3
VS
39776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39778#define $ac_func innocuous_$ac_func
39779
a848cd7e
SC
39780/* System header to define __stub macros and hopefully few prototypes,
39781 which can conflict with char $ac_func (); below.
39782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39783 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39784
a848cd7e
SC
39785#ifdef __STDC__
39786# include <limits.h>
39787#else
39788# include <assert.h>
39789#endif
ac1cb8d3
VS
39790
39791#undef $ac_func
39792
a848cd7e
SC
39793/* Override any gcc2 internal prototype to avoid an error. */
39794#ifdef __cplusplus
39795extern "C"
39796{
39797#endif
39798/* We use char because int might match the return type of a gcc2
39799 builtin and then its argument prototype would still apply. */
39800char $ac_func ();
39801/* The GNU C library defines this for functions which it implements
39802 to always fail with ENOSYS. Some functions are actually named
39803 something starting with __ and the normal name is an alias. */
39804#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39805choke me
39806#else
39807char (*f) () = $ac_func;
39808#endif
39809#ifdef __cplusplus
39810}
39811#endif
39812
39813int
39814main ()
39815{
39816return f != $ac_func;
39817 ;
39818 return 0;
39819}
39820_ACEOF
39821rm -f conftest.$ac_objext conftest$ac_exeext
39822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39823 (eval $ac_link) 2>conftest.er1
a848cd7e 39824 ac_status=$?
ac1cb8d3
VS
39825 grep -v '^ *+' conftest.er1 >conftest.err
39826 rm -f conftest.er1
39827 cat conftest.err >&5
a848cd7e
SC
39828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39829 (exit $ac_status); } &&
5ff751d6 39830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39832 (eval $ac_try) 2>&5
39833 ac_status=$?
39834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39835 (exit $ac_status); }; } &&
39836 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39838 (eval $ac_try) 2>&5
39839 ac_status=$?
39840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39841 (exit $ac_status); }; }; then
39842 eval "$as_ac_var=yes"
39843else
39844 echo "$as_me: failed program was:" >&5
39845sed 's/^/| /' conftest.$ac_ext >&5
39846
39847eval "$as_ac_var=no"
39848fi
ac1cb8d3
VS
39849rm -f conftest.err conftest.$ac_objext \
39850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39851fi
39852echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39853echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39854if test `eval echo '${'$as_ac_var'}'` = yes; then
39855 cat >>confdefs.h <<_ACEOF
39856#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39857_ACEOF
39858 cat >>confdefs.h <<\_ACEOF
39859#define HAVE_DLERROR 1
39860_ACEOF
39861
39862else
39863
39864 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
39865echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
39866if test "${ac_cv_lib_dl_dlerror+set}" = set; then
39867 echo $ECHO_N "(cached) $ECHO_C" >&6
39868else
39869 ac_check_lib_save_LIBS=$LIBS
39870LIBS="-ldl $LIBS"
39871cat >conftest.$ac_ext <<_ACEOF
39872/* confdefs.h. */
39873_ACEOF
39874cat confdefs.h >>conftest.$ac_ext
39875cat >>conftest.$ac_ext <<_ACEOF
39876/* end confdefs.h. */
39877
39878/* Override any gcc2 internal prototype to avoid an error. */
39879#ifdef __cplusplus
39880extern "C"
39881#endif
39882/* We use char because int might match the return type of a gcc2
39883 builtin and then its argument prototype would still apply. */
39884char dlerror ();
39885int
39886main ()
39887{
39888dlerror ();
39889 ;
39890 return 0;
39891}
39892_ACEOF
39893rm -f conftest.$ac_objext conftest$ac_exeext
39894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39895 (eval $ac_link) 2>conftest.er1
a848cd7e 39896 ac_status=$?
ac1cb8d3
VS
39897 grep -v '^ *+' conftest.er1 >conftest.err
39898 rm -f conftest.er1
39899 cat conftest.err >&5
a848cd7e
SC
39900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901 (exit $ac_status); } &&
5ff751d6 39902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39904 (eval $ac_try) 2>&5
39905 ac_status=$?
39906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); }; } &&
39908 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39910 (eval $ac_try) 2>&5
39911 ac_status=$?
39912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39913 (exit $ac_status); }; }; then
39914 ac_cv_lib_dl_dlerror=yes
39915else
39916 echo "$as_me: failed program was:" >&5
39917sed 's/^/| /' conftest.$ac_ext >&5
39918
39919ac_cv_lib_dl_dlerror=no
39920fi
ac1cb8d3
VS
39921rm -f conftest.err conftest.$ac_objext \
39922 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39923LIBS=$ac_check_lib_save_LIBS
39924fi
39925echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
39926echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
39927if test $ac_cv_lib_dl_dlerror = yes; then
39928 cat >>confdefs.h <<\_ACEOF
39929#define HAVE_DLERROR 1
39930_ACEOF
39931
39932fi
39933
39934
39935
39936fi
39937done
39938
39939 fi
39940 fi
39941
39942 if test "$HAVE_DL_FUNCS" = 0; then
39943 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 39944 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
39945 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
39946echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
39947 wxUSE_DYNAMIC_LOADER=no
39948 wxUSE_DYNLIB_CLASS=no
39949 else
39950 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
39951echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
39952 fi
39953 fi
39954 fi
39955 fi
39956fi
39957
39958if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
39959 cat >>confdefs.h <<\_ACEOF
39960#define wxUSE_DYNAMIC_LOADER 1
39961_ACEOF
39962
39963fi
39964if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
39965 cat >>confdefs.h <<\_ACEOF
39966#define wxUSE_DYNLIB_CLASS 1
39967_ACEOF
39968
39969fi
39970
39971
39972
39973if test "$wxUSE_PLUGINS" = "yes" ; then
39974 if test "$wxUSE_SHARED" = "no" ; then
39975 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
39976echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
39977 wxUSE_PLUGINS=no
39978 fi
39979 if test "$wxUSE_MONOLITHIC" = "yes" ; then
39980 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
39981echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
39982 wxUSE_PLUGINS=no
39983 fi
39984 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
39985 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
39986echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
39987 wxUSE_PLUGINS=no
39988 fi
39989 if test "$wxUSE_PLUGINS" = "yes" ; then
39990 cat >>confdefs.h <<\_ACEOF
39991#define wxUSE_PLUGINS 1
39992_ACEOF
39993
39994 fi
39995fi
39996
39997
39998if test "$wxUSE_STL" = "yes"; then
39999 cat >>confdefs.h <<\_ACEOF
40000#define wxUSE_STL 1
40001_ACEOF
40002
40003fi
40004
40005if test "$wxUSE_APPLE_IEEE" = "yes"; then
40006 cat >>confdefs.h <<\_ACEOF
40007#define wxUSE_APPLE_IEEE 1
40008_ACEOF
40009
40010fi
40011
40012if test "$wxUSE_TIMER" = "yes"; then
40013 cat >>confdefs.h <<\_ACEOF
40014#define wxUSE_TIMER 1
40015_ACEOF
40016
40017fi
40018
9c112555 40019if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
40020 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
40021echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
40022if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 40023 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 40024else
d12aef51
VZ
40025
40026 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40027/* confdefs.h. */
40028_ACEOF
40029cat confdefs.h >>conftest.$ac_ext
40030cat >>conftest.$ac_ext <<_ACEOF
40031/* end confdefs.h. */
d12aef51
VZ
40032
40033 #include <sys/soundcard.h>
40034
40035int
40036main ()
40037{
40038
40039 ioctl(0, SNDCTL_DSP_SYNC, 0);
40040
40041 ;
40042 return 0;
40043}
a848cd7e 40044_ACEOF
d12aef51
VZ
40045rm -f conftest.$ac_objext conftest$ac_exeext
40046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40047 (eval $ac_link) 2>conftest.er1
a848cd7e 40048 ac_status=$?
ac1cb8d3
VS
40049 grep -v '^ *+' conftest.er1 >conftest.err
40050 rm -f conftest.er1
40051 cat conftest.err >&5
a848cd7e
SC
40052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40053 (exit $ac_status); } &&
5ff751d6 40054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40056 (eval $ac_try) 2>&5
40057 ac_status=$?
40058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40059 (exit $ac_status); }; } &&
d12aef51 40060 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40062 (eval $ac_try) 2>&5
40063 ac_status=$?
40064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40065 (exit $ac_status); }; }; then
d12aef51 40066 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40067else
40068 echo "$as_me: failed program was:" >&5
40069sed 's/^/| /' conftest.$ac_ext >&5
40070
a848cd7e 40071
d12aef51
VZ
40072 saveLibs="$LIBS"
40073 LIBS="$saveLibs -lossaudio"
40074 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
40075/* confdefs.h. */
40076_ACEOF
40077cat confdefs.h >>conftest.$ac_ext
40078cat >>conftest.$ac_ext <<_ACEOF
40079/* end confdefs.h. */
d12aef51
VZ
40080
40081 #include <sys/soundcard.h>
40082
40083int
40084main ()
40085{
40086
40087 ioctl(0, SNDCTL_DSP_SYNC, 0);
40088
40089 ;
40090 return 0;
40091}
a848cd7e 40092_ACEOF
d12aef51
VZ
40093rm -f conftest.$ac_objext conftest$ac_exeext
40094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40095 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
40096 ac_status=$?
40097 grep -v '^ *+' conftest.er1 >conftest.err
40098 rm -f conftest.er1
40099 cat conftest.err >&5
40100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 40101 (exit $ac_status); } &&
5ff751d6 40102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
40103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40104 (eval $ac_try) 2>&5
40105 ac_status=$?
40106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40107 (exit $ac_status); }; } &&
40108 { ac_try='test -s conftest$ac_exeext'
40109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40110 (eval $ac_try) 2>&5
40111 ac_status=$?
40112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40113 (exit $ac_status); }; }; then
40114 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
40115else
40116 echo "$as_me: failed program was:" >&5
40117sed 's/^/| /' conftest.$ac_ext >&5
40118
a848cd7e 40119
d12aef51
VZ
40120 LIBS="$saveLibs"
40121 ac_cv_header_sys_soundcard=no
40122
40123
a848cd7e 40124fi
d12aef51
VZ
40125rm -f conftest.err conftest.$ac_objext \
40126 conftest$ac_exeext conftest.$ac_ext
40127
a848cd7e
SC
40128
40129fi
d12aef51
VZ
40130rm -f conftest.err conftest.$ac_objext \
40131 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40132
40133fi
d12aef51
VZ
40134echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
40135echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 40136
d12aef51
VZ
40137 if test "$ac_cv_header_sys_soundcard" = "yes"; then
40138 cat >>confdefs.h <<\_ACEOF
40139#define HAVE_SYS_SOUNDCARD_H 1
40140_ACEOF
a848cd7e 40141
d12aef51
VZ
40142 else
40143 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
40144 fi
9c112555
MW
40145fi
40146WITH_PLUGIN_SDL=0
40147if test "$wxUSE_SOUND" = "yes"; then
40148 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
40149 if test "$wxUSE_LIBSDL" != "no"; then
40150
40151# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
40152if test "${with_sdl_prefix+set}" = set; then
40153 withval="$with_sdl_prefix"
40154 sdl_prefix="$withval"
40155else
40156 sdl_prefix=""
40157fi;
40158
40159# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
40160if test "${with_sdl_exec_prefix+set}" = set; then
40161 withval="$with_sdl_exec_prefix"
40162 sdl_exec_prefix="$withval"
40163else
40164 sdl_exec_prefix=""
40165fi;
40166# Check whether --enable-sdltest or --disable-sdltest was given.
40167if test "${enable_sdltest+set}" = set; then
40168 enableval="$enable_sdltest"
40169
40170else
40171 enable_sdltest=yes
40172fi;
40173
40174 if test x$sdl_exec_prefix != x ; then
40175 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
40176 if test x${SDL_CONFIG+set} != xset ; then
40177 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
40178 fi
40179 fi
40180 if test x$sdl_prefix != x ; then
40181 sdl_args="$sdl_args --prefix=$sdl_prefix"
40182 if test x${SDL_CONFIG+set} != xset ; then
40183 SDL_CONFIG=$sdl_prefix/bin/sdl-config
40184 fi
40185 fi
40186
40187
40188 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
40189 # Extract the first word of "sdl-config", so it can be a program name with args.
40190set dummy sdl-config; ac_word=$2
40191echo "$as_me:$LINENO: checking for $ac_word" >&5
40192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40193if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
40194 echo $ECHO_N "(cached) $ECHO_C" >&6
40195else
40196 case $SDL_CONFIG in
40197 [\\/]* | ?:[\\/]*)
40198 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
40199 ;;
40200 *)
40201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40202for as_dir in $PATH
40203do
40204 IFS=$as_save_IFS
40205 test -z "$as_dir" && as_dir=.
40206 for ac_exec_ext in '' $ac_executable_extensions; do
40207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40208 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40210 break 2
40211 fi
40212done
40213done
40214
40215 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
40216 ;;
40217esac
40218fi
40219SDL_CONFIG=$ac_cv_path_SDL_CONFIG
40220
40221if test -n "$SDL_CONFIG"; then
40222 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
40223echo "${ECHO_T}$SDL_CONFIG" >&6
40224else
40225 echo "$as_me:$LINENO: result: no" >&5
40226echo "${ECHO_T}no" >&6
40227fi
40228
40229 min_sdl_version=1.2.0
40230 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
40231echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
40232 no_sdl=""
40233 if test "$SDL_CONFIG" = "no" ; then
40234 no_sdl=yes
40235 else
40236 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
40237 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
40238
40239 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
40240 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
40241 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
40242 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
40243 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
40244 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
40245 if test "x$enable_sdltest" = "xyes" ; then
40246 ac_save_CFLAGS="$CFLAGS"
94acd38e 40247 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
40248 ac_save_LIBS="$LIBS"
40249 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40250 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40251 LIBS="$LIBS $SDL_LIBS"
40252 rm -f conf.sdltest
40253 if test "$cross_compiling" = yes; then
40254 echo $ac_n "cross compiling; assumed OK... $ac_c"
40255else
40256 cat >conftest.$ac_ext <<_ACEOF
40257/* confdefs.h. */
40258_ACEOF
40259cat confdefs.h >>conftest.$ac_ext
40260cat >>conftest.$ac_ext <<_ACEOF
40261/* end confdefs.h. */
40262
40263#include <stdio.h>
40264#include <stdlib.h>
40265#include <string.h>
40266#include "SDL.h"
40267
40268char*
40269my_strdup (char *str)
40270{
40271 char *new_str;
40272
40273 if (str)
40274 {
40275 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
40276 strcpy (new_str, str);
40277 }
40278 else
40279 new_str = NULL;
40280
40281 return new_str;
40282}
40283
40284int main (int argc, char *argv[])
40285{
40286 int major, minor, micro;
40287 char *tmp_version;
40288
40289 /* This hangs on some systems (?)
40290 system ("touch conf.sdltest");
40291 */
40292 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
40293
40294 /* HP/UX 9 (%@#!) writes to sscanf strings */
40295 tmp_version = my_strdup("$min_sdl_version");
40296 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
40297 printf("%s, bad version string\n", "$min_sdl_version");
40298 exit(1);
40299 }
40300
40301 if (($sdl_major_version > major) ||
40302 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
40303 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
40304 {
40305 return 0;
40306 }
40307 else
40308 {
40309 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
40310 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
40311 printf("*** best to upgrade to the required version.\n");
40312 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
40313 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
40314 printf("*** config.cache before re-running configure\n");
40315 return 1;
40316 }
40317}
40318
40319
40320_ACEOF
40321rm -f conftest$ac_exeext
40322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40323 (eval $ac_link) 2>&5
40324 ac_status=$?
40325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40328 (eval $ac_try) 2>&5
40329 ac_status=$?
40330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40331 (exit $ac_status); }; }; then
40332 :
40333else
40334 echo "$as_me: program exited with status $ac_status" >&5
40335echo "$as_me: failed program was:" >&5
40336sed 's/^/| /' conftest.$ac_ext >&5
40337
40338( exit $ac_status )
40339no_sdl=yes
40340fi
ac1cb8d3 40341rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40342fi
40343 CFLAGS="$ac_save_CFLAGS"
94acd38e 40344 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40345 LIBS="$ac_save_LIBS"
40346 fi
40347 fi
40348 if test "x$no_sdl" = x ; then
40349 echo "$as_me:$LINENO: result: yes" >&5
40350echo "${ECHO_T}yes" >&6
40351
40352 EXTRALIBS_SDL="$SDL_LIBS"
c92ad099 40353 CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
a848cd7e
SC
40354 cat >>confdefs.h <<\_ACEOF
40355#define wxUSE_LIBSDL 1
40356_ACEOF
40357
40358
40359 else
40360 echo "$as_me:$LINENO: result: no" >&5
40361echo "${ECHO_T}no" >&6
40362 if test "$SDL_CONFIG" = "no" ; then
40363 echo "*** The sdl-config script installed by SDL could not be found"
40364 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
40365 echo "*** your path, or set the SDL_CONFIG environment variable to the"
40366 echo "*** full path to sdl-config."
40367 else
40368 if test -f conf.sdltest ; then
40369 :
40370 else
40371 echo "*** Could not run SDL test program, checking why..."
40372 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 40373 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
40374 LIBS="$LIBS $SDL_LIBS"
40375 cat >conftest.$ac_ext <<_ACEOF
40376/* confdefs.h. */
40377_ACEOF
40378cat confdefs.h >>conftest.$ac_ext
40379cat >>conftest.$ac_ext <<_ACEOF
40380/* end confdefs.h. */
40381
40382#include <stdio.h>
40383#include "SDL.h"
40384
40385int main(int argc, char *argv[])
40386{ return 0; }
40387#undef main
40388#define main K_and_R_C_main
40389
40390int
40391main ()
40392{
40393 return 0;
40394 ;
40395 return 0;
40396}
40397_ACEOF
40398rm -f conftest.$ac_objext conftest$ac_exeext
40399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40400 (eval $ac_link) 2>conftest.er1
a848cd7e 40401 ac_status=$?
ac1cb8d3
VS
40402 grep -v '^ *+' conftest.er1 >conftest.err
40403 rm -f conftest.er1
40404 cat conftest.err >&5
a848cd7e
SC
40405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40406 (exit $ac_status); } &&
5ff751d6 40407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40409 (eval $ac_try) 2>&5
40410 ac_status=$?
40411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40412 (exit $ac_status); }; } &&
40413 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40415 (eval $ac_try) 2>&5
40416 ac_status=$?
40417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40418 (exit $ac_status); }; }; then
40419 echo "*** The test program compiled, but did not run. This usually means"
40420 echo "*** that the run-time linker is not finding SDL or finding the wrong"
40421 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
40422 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
40423 echo "*** to the installed location Also, make sure you have run ldconfig if that"
40424 echo "*** is required on your system"
40425 echo "***"
40426 echo "*** If you have an old version installed, it is best to remove it, although"
40427 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
40428else
40429 echo "$as_me: failed program was:" >&5
40430sed 's/^/| /' conftest.$ac_ext >&5
40431
40432 echo "*** The test program failed to compile or link. See the file config.log for the"
40433 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
40434 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
40435 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
40436fi
ac1cb8d3
VS
40437rm -f conftest.err conftest.$ac_objext \
40438 conftest$ac_exeext conftest.$ac_ext
a848cd7e 40439 CFLAGS="$ac_save_CFLAGS"
94acd38e 40440 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
40441 LIBS="$ac_save_LIBS"
40442 fi
40443 fi
40444 SDL_CFLAGS=""
40445 SDL_LIBS=""
40446 wxUSE_LIBSDL="no"
40447 fi
40448
40449
40450 rm -f conf.sdltest
40451
40452 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
40453 WITH_PLUGIN_SDL=1
40454 fi
40455 fi
40456 fi
40457
40458 cat >>confdefs.h <<\_ACEOF
40459#define wxUSE_SOUND 1
40460_ACEOF
40461
40462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
40463fi
40464
d1c38808
VZ
40465if test "$WXGTK20" = 1; then
40466 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
40467 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
40468
40469
40470 succeeded=no
40471
40472 if test -z "$PKG_CONFIG"; then
40473 # Extract the first word of "pkg-config", so it can be a program name with args.
40474set dummy pkg-config; ac_word=$2
40475echo "$as_me:$LINENO: checking for $ac_word" >&5
40476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
40477if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
40478 echo $ECHO_N "(cached) $ECHO_C" >&6
40479else
40480 case $PKG_CONFIG in
40481 [\\/]* | ?:[\\/]*)
40482 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
40483 ;;
40484 *)
40485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40486for as_dir in $PATH
40487do
40488 IFS=$as_save_IFS
40489 test -z "$as_dir" && as_dir=.
40490 for ac_exec_ext in '' $ac_executable_extensions; do
40491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40492 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
40493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
40494 break 2
40495 fi
40496done
40497done
40498
40499 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
40500 ;;
40501esac
40502fi
40503PKG_CONFIG=$ac_cv_path_PKG_CONFIG
40504
40505if test -n "$PKG_CONFIG"; then
40506 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
40507echo "${ECHO_T}$PKG_CONFIG" >&6
40508else
40509 echo "$as_me:$LINENO: result: no" >&5
40510echo "${ECHO_T}no" >&6
40511fi
40512
40513 fi
40514
40515 if test "$PKG_CONFIG" = "no" ; then
40516 echo "*** The pkg-config script could not be found. Make sure it is"
40517 echo "*** in your path, or set the PKG_CONFIG environment variable"
40518 echo "*** to the full path to pkg-config."
40519 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
40520 else
40521 PKG_CONFIG_MIN_VERSION=0.9.0
40522 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
40523 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
40524echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 40525
ffa762ff 40526 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
40527 echo "$as_me:$LINENO: result: yes" >&5
40528echo "${ECHO_T}yes" >&6
40529 succeeded=yes
40530
40531 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
40532echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 40533 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40534 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
40535echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
40536
40537 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
40538echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 40539 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40540 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
40541echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
40542 else
40543 LIBGNOMEPRINTUI_CFLAGS=""
40544 LIBGNOMEPRINTUI_LIBS=""
40545 ## If we have a custom action on failure, don't print errors, but
40546 ## do set a variable so people can do so.
ffa762ff 40547 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
40548
40549 fi
40550
40551
40552
40553 else
40554 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
40555 echo "*** See http://www.freedesktop.org/software/pkgconfig"
40556 fi
40557 fi
40558
40559 if test $succeeded = yes; then
40560
c92ad099 40561 CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
d1c38808
VZ
40562 cat >>confdefs.h <<\_ACEOF
40563#define wxUSE_LIBGNOMEPRINT 1
40564_ACEOF
40565
40566
40567 else
40568
40569 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
40570echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
40571 wxUSE_LIBGNOMEPRINT="no"
40572
40573
40574 fi
40575
40576 fi
40577 fi
40578fi
40579
40580
a848cd7e
SC
40581if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
40582 cat >>confdefs.h <<\_ACEOF
40583#define wxUSE_CMDLINE_PARSER 1
40584_ACEOF
40585
40586fi
40587
40588if test "$wxUSE_STOPWATCH" = "yes"; then
40589 cat >>confdefs.h <<\_ACEOF
40590#define wxUSE_STOPWATCH 1
40591_ACEOF
40592
40593fi
40594
40595if test "$wxUSE_DATETIME" = "yes"; then
40596 cat >>confdefs.h <<\_ACEOF
40597#define wxUSE_DATETIME 1
40598_ACEOF
40599
40600fi
40601
40602if test "$wxUSE_FILE" = "yes"; then
40603 cat >>confdefs.h <<\_ACEOF
40604#define wxUSE_FILE 1
40605_ACEOF
40606
40607fi
40608
40609if test "$wxUSE_FFILE" = "yes"; then
40610 cat >>confdefs.h <<\_ACEOF
40611#define wxUSE_FFILE 1
40612_ACEOF
40613
40614fi
40615
40616if test "$wxUSE_FILESYSTEM" = "yes"; then
40617 cat >>confdefs.h <<\_ACEOF
40618#define wxUSE_FILESYSTEM 1
40619_ACEOF
40620
40621fi
40622
40623if test "$wxUSE_FS_ZIP" = "yes"; then
40624 cat >>confdefs.h <<\_ACEOF
40625#define wxUSE_FS_ZIP 1
40626_ACEOF
40627
40628fi
40629
9e8e867f 40630if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 40631 cat >>confdefs.h <<\_ACEOF
9e8e867f 40632#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
40633_ACEOF
40634
40635fi
40636
40637if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 40638 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
40639 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
40640echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
40641 elif test "$wxUSE_ZLIB" = "no"; then
40642 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
40643echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
40644 else
40645 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40646#define wxUSE_ZIPSTREAM 1
40647_ACEOF
40648
81f90336 40649 fi
a848cd7e
SC
40650fi
40651
a848cd7e 40652if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
40653 if test "$USE_UNIX" != 1; then
40654 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
40655echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
40656 wxUSE_ON_FATAL_EXCEPTION=no
40657 else
40658 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
40659#define wxUSE_ON_FATAL_EXCEPTION 1
40660_ACEOF
40661
18228ab4 40662 fi
a848cd7e
SC
40663fi
40664
eaff0f0d
VZ
40665if test "$wxUSE_STACKWALKER" = "yes"; then
40666 cat >>confdefs.h <<\_ACEOF
40667#define wxUSE_STACKWALKER 1
40668_ACEOF
40669
40670fi
40671
36b6448c 40672if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
40673 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
40674 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
40675echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
40676 wxUSE_DEBUGREPORT=no
40677 else
40678 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
40679#define wxUSE_DEBUGREPORT 1
40680_ACEOF
40681
21dfc162
MW
40682 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
40683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
40684 fi
dfe0c803 40685 fi
36b6448c
VZ
40686fi
40687
a848cd7e
SC
40688if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
40689 cat >>confdefs.h <<\_ACEOF
40690#define wxUSE_SNGLINST_CHECKER 1
40691_ACEOF
40692
40693fi
40694
40695if test "$wxUSE_BUSYINFO" = "yes"; then
40696 cat >>confdefs.h <<\_ACEOF
40697#define wxUSE_BUSYINFO 1
40698_ACEOF
40699
40700fi
40701
40702if test "$wxUSE_STD_IOSTREAM" = "yes"; then
40703 cat >>confdefs.h <<\_ACEOF
40704#define wxUSE_STD_IOSTREAM 1
40705_ACEOF
40706
40707fi
40708
59746b65
MW
40709if test "$wxUSE_STD_STRING" = "yes"; then
40710 cat >>confdefs.h <<\_ACEOF
40711#define wxUSE_STD_STRING 1
40712_ACEOF
40713
40714fi
40715
07158944
VZ
40716if test "$wxUSE_STDPATHS" = "yes"; then
40717 cat >>confdefs.h <<\_ACEOF
40718#define wxUSE_STDPATHS 1
40719_ACEOF
40720
40721fi
40722
a848cd7e
SC
40723if test "$wxUSE_TEXTBUFFER" = "yes"; then
40724 cat >>confdefs.h <<\_ACEOF
40725#define wxUSE_TEXTBUFFER 1
40726_ACEOF
40727
40728fi
40729
40730if test "$wxUSE_TEXTFILE" = "yes"; then
40731 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
40732 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
40733echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
40734 else
40735 cat >>confdefs.h <<\_ACEOF
40736#define wxUSE_TEXTFILE 1
40737_ACEOF
40738
40739 fi
40740fi
40741
40742if test "$wxUSE_CONFIG" = "yes" ; then
40743 if test "$wxUSE_TEXTFILE" != "yes"; then
40744 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
40745echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
40746 else
40747 cat >>confdefs.h <<\_ACEOF
40748#define wxUSE_CONFIG 1
89be85c2
VS
40749_ACEOF
40750
40751 cat >>confdefs.h <<\_ACEOF
40752#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
40753_ACEOF
40754
40755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
40756 fi
40757fi
40758
40759if test "$wxUSE_INTL" = "yes" ; then
40760 if test "$wxUSE_FILE" != "yes"; then
40761 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
40762echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
40763 else
40764 cat >>confdefs.h <<\_ACEOF
40765#define wxUSE_INTL 1
40766_ACEOF
40767
40768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
40769 GUIDIST="$GUIDIST INTL_DIST"
40770 fi
40771fi
40772
40773if test "$wxUSE_LOG" = "yes"; then
40774 cat >>confdefs.h <<\_ACEOF
40775#define wxUSE_LOG 1
40776_ACEOF
40777
40778
40779 if test "$wxUSE_LOGGUI" = "yes"; then
40780 cat >>confdefs.h <<\_ACEOF
40781#define wxUSE_LOGGUI 1
40782_ACEOF
40783
40784 fi
40785
40786 if test "$wxUSE_LOGWINDOW" = "yes"; then
40787 cat >>confdefs.h <<\_ACEOF
40788#define wxUSE_LOGWINDOW 1
40789_ACEOF
40790
40791 fi
40792
40793 if test "$wxUSE_LOGDIALOG" = "yes"; then
40794 cat >>confdefs.h <<\_ACEOF
40795#define wxUSE_LOG_DIALOG 1
40796_ACEOF
40797
40798 fi
0b78747f
MW
40799
40800 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
40801fi
40802
40803if test "$wxUSE_LONGLONG" = "yes"; then
40804 cat >>confdefs.h <<\_ACEOF
40805#define wxUSE_LONGLONG 1
40806_ACEOF
40807
40808fi
40809
40810if test "$wxUSE_GEOMETRY" = "yes"; then
40811 cat >>confdefs.h <<\_ACEOF
40812#define wxUSE_GEOMETRY 1
40813_ACEOF
40814
40815fi
40816
a848cd7e
SC
40817if test "$wxUSE_STREAMS" = "yes" ; then
40818 cat >>confdefs.h <<\_ACEOF
40819#define wxUSE_STREAMS 1
40820_ACEOF
40821
40822fi
40823
40824
40825if test "$wxUSE_DATETIME" = "yes"; then
40826
40827for ac_func in strptime
40828do
40829as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40830echo "$as_me:$LINENO: checking for $ac_func" >&5
40831echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40832if eval "test \"\${$as_ac_var+set}\" = set"; then
40833 echo $ECHO_N "(cached) $ECHO_C" >&6
40834else
40835 cat >conftest.$ac_ext <<_ACEOF
40836/* confdefs.h. */
40837_ACEOF
40838cat confdefs.h >>conftest.$ac_ext
40839cat >>conftest.$ac_ext <<_ACEOF
40840/* end confdefs.h. */
ac1cb8d3
VS
40841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40843#define $ac_func innocuous_$ac_func
40844
a848cd7e
SC
40845/* System header to define __stub macros and hopefully few prototypes,
40846 which can conflict with char $ac_func (); below.
40847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40848 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40849
a848cd7e
SC
40850#ifdef __STDC__
40851# include <limits.h>
40852#else
40853# include <assert.h>
40854#endif
ac1cb8d3
VS
40855
40856#undef $ac_func
40857
a848cd7e
SC
40858/* Override any gcc2 internal prototype to avoid an error. */
40859#ifdef __cplusplus
40860extern "C"
40861{
40862#endif
40863/* We use char because int might match the return type of a gcc2
40864 builtin and then its argument prototype would still apply. */
40865char $ac_func ();
40866/* The GNU C library defines this for functions which it implements
40867 to always fail with ENOSYS. Some functions are actually named
40868 something starting with __ and the normal name is an alias. */
40869#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40870choke me
40871#else
40872char (*f) () = $ac_func;
40873#endif
40874#ifdef __cplusplus
40875}
40876#endif
40877
40878int
40879main ()
40880{
40881return f != $ac_func;
40882 ;
40883 return 0;
40884}
40885_ACEOF
40886rm -f conftest.$ac_objext conftest$ac_exeext
40887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40888 (eval $ac_link) 2>conftest.er1
a848cd7e 40889 ac_status=$?
ac1cb8d3
VS
40890 grep -v '^ *+' conftest.er1 >conftest.err
40891 rm -f conftest.er1
40892 cat conftest.err >&5
a848cd7e
SC
40893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40894 (exit $ac_status); } &&
5ff751d6 40895 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40897 (eval $ac_try) 2>&5
40898 ac_status=$?
40899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40900 (exit $ac_status); }; } &&
40901 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40903 (eval $ac_try) 2>&5
40904 ac_status=$?
40905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40906 (exit $ac_status); }; }; then
40907 eval "$as_ac_var=yes"
40908else
40909 echo "$as_me: failed program was:" >&5
40910sed 's/^/| /' conftest.$ac_ext >&5
40911
40912eval "$as_ac_var=no"
40913fi
ac1cb8d3
VS
40914rm -f conftest.err conftest.$ac_objext \
40915 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40916fi
40917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40918echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40919if test `eval echo '${'$as_ac_var'}'` = yes; then
40920 cat >>confdefs.h <<_ACEOF
40921#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40922_ACEOF
40923
40924fi
40925done
40926
f536f005
VZ
40927 if test "$ac_cv_func_strptime" = "yes"; then
40928 echo "$as_me:$LINENO: checking for strptime declaration" >&5
40929echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
40930if test "${wx_cv_func_strptime_decl+set}" = set; then
40931 echo $ECHO_N "(cached) $ECHO_C" >&6
40932else
40933
40934
40935
40936 ac_ext=cc
40937ac_cpp='$CXXCPP $CPPFLAGS'
40938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40941
40942 cat >conftest.$ac_ext <<_ACEOF
40943/* confdefs.h. */
40944_ACEOF
40945cat confdefs.h >>conftest.$ac_ext
40946cat >>conftest.$ac_ext <<_ACEOF
40947/* end confdefs.h. */
40948
40949 #include <time.h>
40950
40951int
40952main ()
40953{
40954
40955 struct tm t;
40956 strptime("foo", "bar", &t);
40957
40958 ;
40959 return 0;
40960}
40961_ACEOF
40962rm -f conftest.$ac_objext
40963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40964 (eval $ac_compile) 2>conftest.er1
40965 ac_status=$?
40966 grep -v '^ *+' conftest.er1 >conftest.err
40967 rm -f conftest.er1
40968 cat conftest.err >&5
40969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40970 (exit $ac_status); } &&
5ff751d6 40971 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
40972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40973 (eval $ac_try) 2>&5
40974 ac_status=$?
40975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40976 (exit $ac_status); }; } &&
40977 { ac_try='test -s conftest.$ac_objext'
40978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40979 (eval $ac_try) 2>&5
40980 ac_status=$?
40981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40982 (exit $ac_status); }; }; then
40983 wx_cv_func_strptime_decl=yes
40984else
40985 echo "$as_me: failed program was:" >&5
40986sed 's/^/| /' conftest.$ac_ext >&5
40987
40988wx_cv_func_strptime_decl=no
40989
40990fi
40991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40992 ac_ext=c
40993ac_cpp='$CPP $CPPFLAGS'
40994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40996ac_compiler_gnu=$ac_cv_c_compiler_gnu
40997
40998
40999
41000fi
41001echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
41002echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
41003 fi
41004 if test "$wx_cv_func_strptime_decl" = "yes"; then
41005 cat >>confdefs.h <<\_ACEOF
41006#define HAVE_STRPTIME_DECL 1
41007_ACEOF
41008
41009 fi
a848cd7e
SC
41010
41011 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
41012echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
41013if test "${wx_cv_var_timezone+set}" = set; then
41014 echo $ECHO_N "(cached) $ECHO_C" >&6
41015else
41016
41017 cat >conftest.$ac_ext <<_ACEOF
41018/* confdefs.h. */
41019_ACEOF
41020cat confdefs.h >>conftest.$ac_ext
41021cat >>conftest.$ac_ext <<_ACEOF
41022/* end confdefs.h. */
41023
41024 #include <time.h>
41025
41026int
41027main ()
41028{
41029
41030 int tz;
41031 tz = timezone;
41032
41033 ;
41034 return 0;
41035}
41036_ACEOF
41037rm -f conftest.$ac_objext
41038if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41039 (eval $ac_compile) 2>conftest.er1
a848cd7e 41040 ac_status=$?
ac1cb8d3
VS
41041 grep -v '^ *+' conftest.er1 >conftest.err
41042 rm -f conftest.er1
41043 cat conftest.err >&5
a848cd7e
SC
41044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41045 (exit $ac_status); } &&
5ff751d6 41046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41048 (eval $ac_try) 2>&5
41049 ac_status=$?
41050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41051 (exit $ac_status); }; } &&
41052 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41054 (eval $ac_try) 2>&5
41055 ac_status=$?
41056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41057 (exit $ac_status); }; }; then
41058
41059 wx_cv_var_timezone=timezone
41060
41061else
41062 echo "$as_me: failed program was:" >&5
41063sed 's/^/| /' conftest.$ac_ext >&5
41064
41065
41066 cat >conftest.$ac_ext <<_ACEOF
41067/* confdefs.h. */
41068_ACEOF
41069cat confdefs.h >>conftest.$ac_ext
41070cat >>conftest.$ac_ext <<_ACEOF
41071/* end confdefs.h. */
41072
41073 #include <time.h>
41074
41075int
41076main ()
41077{
41078
41079 int tz;
41080 tz = _timezone;
41081
41082 ;
41083 return 0;
41084}
41085_ACEOF
41086rm -f conftest.$ac_objext
41087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41088 (eval $ac_compile) 2>conftest.er1
a848cd7e 41089 ac_status=$?
ac1cb8d3
VS
41090 grep -v '^ *+' conftest.er1 >conftest.err
41091 rm -f conftest.er1
41092 cat conftest.err >&5
a848cd7e
SC
41093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41094 (exit $ac_status); } &&
5ff751d6 41095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41097 (eval $ac_try) 2>&5
41098 ac_status=$?
41099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41100 (exit $ac_status); }; } &&
41101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41103 (eval $ac_try) 2>&5
41104 ac_status=$?
41105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41106 (exit $ac_status); }; }; then
41107
41108 wx_cv_var_timezone=_timezone
41109
41110else
41111 echo "$as_me: failed program was:" >&5
41112sed 's/^/| /' conftest.$ac_ext >&5
41113
41114
41115 cat >conftest.$ac_ext <<_ACEOF
41116/* confdefs.h. */
41117_ACEOF
41118cat confdefs.h >>conftest.$ac_ext
41119cat >>conftest.$ac_ext <<_ACEOF
41120/* end confdefs.h. */
41121
41122 #include <time.h>
41123
41124int
41125main ()
41126{
41127
41128 int tz;
41129 tz = __timezone;
41130
41131 ;
41132 return 0;
41133}
41134_ACEOF
41135rm -f conftest.$ac_objext
41136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41137 (eval $ac_compile) 2>conftest.er1
a848cd7e 41138 ac_status=$?
ac1cb8d3
VS
41139 grep -v '^ *+' conftest.er1 >conftest.err
41140 rm -f conftest.er1
41141 cat conftest.err >&5
a848cd7e
SC
41142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41143 (exit $ac_status); } &&
5ff751d6 41144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41146 (eval $ac_try) 2>&5
41147 ac_status=$?
41148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41149 (exit $ac_status); }; } &&
41150 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41152 (eval $ac_try) 2>&5
41153 ac_status=$?
41154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41155 (exit $ac_status); }; }; then
41156
41157 wx_cv_var_timezone=__timezone
41158
41159else
41160 echo "$as_me: failed program was:" >&5
41161sed 's/^/| /' conftest.$ac_ext >&5
41162
41163
41164 if test "$USE_DOS" = 0 ; then
41165 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
41166echo "$as_me: WARNING: no timezone variable" >&2;}
41167 fi
41168
41169
41170fi
ac1cb8d3 41171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41172
41173
41174fi
ac1cb8d3 41175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41176
41177
41178fi
ac1cb8d3 41179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41180
41181
41182fi
41183echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
41184echo "${ECHO_T}$wx_cv_var_timezone" >&6
41185
41186 if test "x$wx_cv_var_timezone" != x ; then
41187 cat >>confdefs.h <<_ACEOF
41188#define WX_TIMEZONE $wx_cv_var_timezone
41189_ACEOF
41190
41191 fi
41192
41193
41194for ac_func in localtime
41195do
41196as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41197echo "$as_me:$LINENO: checking for $ac_func" >&5
41198echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41199if eval "test \"\${$as_ac_var+set}\" = set"; then
41200 echo $ECHO_N "(cached) $ECHO_C" >&6
41201else
41202 cat >conftest.$ac_ext <<_ACEOF
41203/* confdefs.h. */
41204_ACEOF
41205cat confdefs.h >>conftest.$ac_ext
41206cat >>conftest.$ac_ext <<_ACEOF
41207/* end confdefs.h. */
ac1cb8d3
VS
41208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41210#define $ac_func innocuous_$ac_func
41211
a848cd7e
SC
41212/* System header to define __stub macros and hopefully few prototypes,
41213 which can conflict with char $ac_func (); below.
41214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41215 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41216
a848cd7e
SC
41217#ifdef __STDC__
41218# include <limits.h>
41219#else
41220# include <assert.h>
41221#endif
ac1cb8d3
VS
41222
41223#undef $ac_func
41224
a848cd7e
SC
41225/* Override any gcc2 internal prototype to avoid an error. */
41226#ifdef __cplusplus
41227extern "C"
41228{
41229#endif
41230/* We use char because int might match the return type of a gcc2
41231 builtin and then its argument prototype would still apply. */
41232char $ac_func ();
41233/* The GNU C library defines this for functions which it implements
41234 to always fail with ENOSYS. Some functions are actually named
41235 something starting with __ and the normal name is an alias. */
41236#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41237choke me
41238#else
41239char (*f) () = $ac_func;
41240#endif
41241#ifdef __cplusplus
41242}
41243#endif
41244
41245int
41246main ()
41247{
41248return f != $ac_func;
41249 ;
41250 return 0;
41251}
41252_ACEOF
41253rm -f conftest.$ac_objext conftest$ac_exeext
41254if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41255 (eval $ac_link) 2>conftest.er1
a848cd7e 41256 ac_status=$?
ac1cb8d3
VS
41257 grep -v '^ *+' conftest.er1 >conftest.err
41258 rm -f conftest.er1
41259 cat conftest.err >&5
a848cd7e
SC
41260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41261 (exit $ac_status); } &&
5ff751d6 41262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41264 (eval $ac_try) 2>&5
41265 ac_status=$?
41266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41267 (exit $ac_status); }; } &&
41268 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41270 (eval $ac_try) 2>&5
41271 ac_status=$?
41272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273 (exit $ac_status); }; }; then
41274 eval "$as_ac_var=yes"
41275else
41276 echo "$as_me: failed program was:" >&5
41277sed 's/^/| /' conftest.$ac_ext >&5
41278
41279eval "$as_ac_var=no"
41280fi
ac1cb8d3
VS
41281rm -f conftest.err conftest.$ac_objext \
41282 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41283fi
41284echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41285echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41286if test `eval echo '${'$as_ac_var'}'` = yes; then
41287 cat >>confdefs.h <<_ACEOF
41288#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41289_ACEOF
41290
41291fi
41292done
41293
41294
41295 if test "$ac_cv_func_localtime" = "yes"; then
41296 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
41297echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
41298if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
41299 echo $ECHO_N "(cached) $ECHO_C" >&6
41300else
41301
41302 cat >conftest.$ac_ext <<_ACEOF
41303/* confdefs.h. */
41304_ACEOF
41305cat confdefs.h >>conftest.$ac_ext
41306cat >>conftest.$ac_ext <<_ACEOF
41307/* end confdefs.h. */
41308
41309 #include <time.h>
41310
41311int
41312main ()
41313{
41314
41315 struct tm tm;
41316 tm.tm_gmtoff++;
41317
41318 ;
41319 return 0;
41320}
41321_ACEOF
41322rm -f conftest.$ac_objext
41323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41324 (eval $ac_compile) 2>conftest.er1
a848cd7e 41325 ac_status=$?
ac1cb8d3
VS
41326 grep -v '^ *+' conftest.er1 >conftest.err
41327 rm -f conftest.er1
41328 cat conftest.err >&5
a848cd7e
SC
41329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41330 (exit $ac_status); } &&
5ff751d6 41331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41333 (eval $ac_try) 2>&5
41334 ac_status=$?
41335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41336 (exit $ac_status); }; } &&
41337 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41339 (eval $ac_try) 2>&5
41340 ac_status=$?
41341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41342 (exit $ac_status); }; }; then
41343
41344 wx_cv_struct_tm_has_gmtoff=yes
41345
41346else
41347 echo "$as_me: failed program was:" >&5
41348sed 's/^/| /' conftest.$ac_ext >&5
41349
41350wx_cv_struct_tm_has_gmtoff=no
41351
41352fi
ac1cb8d3 41353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41354
41355fi
41356echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
41357echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
41358 fi
41359
41360 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
41361 cat >>confdefs.h <<\_ACEOF
41362#define WX_GMTOFF_IN_TM 1
41363_ACEOF
41364
41365 fi
41366
41367
41368
41369for ac_func in gettimeofday ftime
41370do
41371as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41372echo "$as_me:$LINENO: checking for $ac_func" >&5
41373echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
41374if eval "test \"\${$as_ac_var+set}\" = set"; then
41375 echo $ECHO_N "(cached) $ECHO_C" >&6
41376else
41377 cat >conftest.$ac_ext <<_ACEOF
41378/* confdefs.h. */
41379_ACEOF
41380cat confdefs.h >>conftest.$ac_ext
41381cat >>conftest.$ac_ext <<_ACEOF
41382/* end confdefs.h. */
ac1cb8d3
VS
41383/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41385#define $ac_func innocuous_$ac_func
41386
a848cd7e
SC
41387/* System header to define __stub macros and hopefully few prototypes,
41388 which can conflict with char $ac_func (); below.
41389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41390 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41391
a848cd7e
SC
41392#ifdef __STDC__
41393# include <limits.h>
41394#else
41395# include <assert.h>
41396#endif
ac1cb8d3
VS
41397
41398#undef $ac_func
41399
a848cd7e
SC
41400/* Override any gcc2 internal prototype to avoid an error. */
41401#ifdef __cplusplus
41402extern "C"
41403{
41404#endif
41405/* We use char because int might match the return type of a gcc2
41406 builtin and then its argument prototype would still apply. */
41407char $ac_func ();
41408/* The GNU C library defines this for functions which it implements
41409 to always fail with ENOSYS. Some functions are actually named
41410 something starting with __ and the normal name is an alias. */
41411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
41412choke me
41413#else
41414char (*f) () = $ac_func;
41415#endif
41416#ifdef __cplusplus
41417}
41418#endif
41419
41420int
41421main ()
41422{
41423return f != $ac_func;
41424 ;
41425 return 0;
41426}
41427_ACEOF
41428rm -f conftest.$ac_objext conftest$ac_exeext
41429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41430 (eval $ac_link) 2>conftest.er1
a848cd7e 41431 ac_status=$?
ac1cb8d3
VS
41432 grep -v '^ *+' conftest.er1 >conftest.err
41433 rm -f conftest.er1
41434 cat conftest.err >&5
a848cd7e
SC
41435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41436 (exit $ac_status); } &&
5ff751d6 41437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41439 (eval $ac_try) 2>&5
41440 ac_status=$?
41441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41442 (exit $ac_status); }; } &&
41443 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41445 (eval $ac_try) 2>&5
41446 ac_status=$?
41447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41448 (exit $ac_status); }; }; then
41449 eval "$as_ac_var=yes"
41450else
41451 echo "$as_me: failed program was:" >&5
41452sed 's/^/| /' conftest.$ac_ext >&5
41453
41454eval "$as_ac_var=no"
41455fi
ac1cb8d3
VS
41456rm -f conftest.err conftest.$ac_objext \
41457 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41458fi
41459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
41460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
41461if test `eval echo '${'$as_ac_var'}'` = yes; then
41462 cat >>confdefs.h <<_ACEOF
41463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41464_ACEOF
41465 break
41466fi
41467done
41468
41469
41470 if test "$ac_cv_func_gettimeofday" = "yes"; then
41471 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
41472echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
41473if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
41474 echo $ECHO_N "(cached) $ECHO_C" >&6
41475else
41476
41477
41478
41479 ac_ext=cc
41480ac_cpp='$CXXCPP $CPPFLAGS'
41481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41484
41485
41486 cat >conftest.$ac_ext <<_ACEOF
41487/* confdefs.h. */
41488_ACEOF
41489cat confdefs.h >>conftest.$ac_ext
41490cat >>conftest.$ac_ext <<_ACEOF
41491/* end confdefs.h. */
41492
41493 #include <sys/time.h>
41494 #include <unistd.h>
41495
41496int
41497main ()
41498{
41499
41500 struct timeval tv;
41501 gettimeofday(&tv, NULL);
41502
41503 ;
41504 return 0;
41505}
41506_ACEOF
41507rm -f conftest.$ac_objext
41508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41509 (eval $ac_compile) 2>conftest.er1
a848cd7e 41510 ac_status=$?
ac1cb8d3
VS
41511 grep -v '^ *+' conftest.er1 >conftest.err
41512 rm -f conftest.er1
41513 cat conftest.err >&5
a848cd7e
SC
41514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41515 (exit $ac_status); } &&
5ff751d6 41516 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41518 (eval $ac_try) 2>&5
41519 ac_status=$?
41520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41521 (exit $ac_status); }; } &&
41522 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41524 (eval $ac_try) 2>&5
41525 ac_status=$?
41526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41527 (exit $ac_status); }; }; then
41528 wx_cv_func_gettimeofday_has_2_args=yes
41529else
41530 echo "$as_me: failed program was:" >&5
41531sed 's/^/| /' conftest.$ac_ext >&5
41532
41533cat >conftest.$ac_ext <<_ACEOF
41534/* confdefs.h. */
41535_ACEOF
41536cat confdefs.h >>conftest.$ac_ext
41537cat >>conftest.$ac_ext <<_ACEOF
41538/* end confdefs.h. */
41539
41540 #include <sys/time.h>
41541 #include <unistd.h>
41542
41543int
41544main ()
41545{
41546
41547 struct timeval tv;
41548 gettimeofday(&tv);
41549
41550 ;
41551 return 0;
41552}
41553_ACEOF
41554rm -f conftest.$ac_objext
41555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41556 (eval $ac_compile) 2>conftest.er1
a848cd7e 41557 ac_status=$?
ac1cb8d3
VS
41558 grep -v '^ *+' conftest.er1 >conftest.err
41559 rm -f conftest.er1
41560 cat conftest.err >&5
a848cd7e
SC
41561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41562 (exit $ac_status); } &&
5ff751d6 41563 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41565 (eval $ac_try) 2>&5
41566 ac_status=$?
41567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41568 (exit $ac_status); }; } &&
41569 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41571 (eval $ac_try) 2>&5
41572 ac_status=$?
41573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41574 (exit $ac_status); }; }; then
41575 wx_cv_func_gettimeofday_has_2_args=no
41576else
41577 echo "$as_me: failed program was:" >&5
41578sed 's/^/| /' conftest.$ac_ext >&5
41579
41580
41581 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
41582echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
41583 wx_cv_func_gettimeofday_has_2_args=unknown
41584
41585
41586fi
ac1cb8d3 41587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41588
41589fi
ac1cb8d3 41590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41591 ac_ext=c
41592ac_cpp='$CPP $CPPFLAGS'
41593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41595ac_compiler_gnu=$ac_cv_c_compiler_gnu
41596
41597
41598fi
41599echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
41600echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
41601
41602 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
41603 cat >>confdefs.h <<\_ACEOF
41604#define WX_GETTIMEOFDAY_NO_TZ 1
41605_ACEOF
41606
41607 fi
41608 fi
41609
41610 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
41611fi
41612
41613
41614if test "$wxUSE_SOCKETS" = "yes"; then
41615 if test "$wxUSE_MGL" = "1"; then
41616 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
41617echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
41618 wxUSE_SOCKETS="no"
41619 fi
41620fi
41621
41622if test "$wxUSE_SOCKETS" = "yes"; then
41623 if test "$TOOLKIT" != "MSW"; then
41624 echo "$as_me:$LINENO: checking for socket" >&5
41625echo $ECHO_N "checking for socket... $ECHO_C" >&6
41626if test "${ac_cv_func_socket+set}" = set; then
41627 echo $ECHO_N "(cached) $ECHO_C" >&6
41628else
41629 cat >conftest.$ac_ext <<_ACEOF
41630/* confdefs.h. */
41631_ACEOF
41632cat confdefs.h >>conftest.$ac_ext
41633cat >>conftest.$ac_ext <<_ACEOF
41634/* end confdefs.h. */
ac1cb8d3
VS
41635/* Define socket to an innocuous variant, in case <limits.h> declares socket.
41636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41637#define socket innocuous_socket
41638
a848cd7e
SC
41639/* System header to define __stub macros and hopefully few prototypes,
41640 which can conflict with char socket (); below.
41641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41642 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 41643
a848cd7e
SC
41644#ifdef __STDC__
41645# include <limits.h>
41646#else
41647# include <assert.h>
41648#endif
ac1cb8d3
VS
41649
41650#undef socket
41651
a848cd7e
SC
41652/* Override any gcc2 internal prototype to avoid an error. */
41653#ifdef __cplusplus
41654extern "C"
41655{
41656#endif
41657/* We use char because int might match the return type of a gcc2
41658 builtin and then its argument prototype would still apply. */
41659char socket ();
41660/* The GNU C library defines this for functions which it implements
41661 to always fail with ENOSYS. Some functions are actually named
41662 something starting with __ and the normal name is an alias. */
41663#if defined (__stub_socket) || defined (__stub___socket)
41664choke me
41665#else
41666char (*f) () = socket;
41667#endif
41668#ifdef __cplusplus
41669}
41670#endif
41671
41672int
41673main ()
41674{
41675return f != socket;
41676 ;
41677 return 0;
41678}
41679_ACEOF
41680rm -f conftest.$ac_objext conftest$ac_exeext
41681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41682 (eval $ac_link) 2>conftest.er1
a848cd7e 41683 ac_status=$?
ac1cb8d3
VS
41684 grep -v '^ *+' conftest.er1 >conftest.err
41685 rm -f conftest.er1
41686 cat conftest.err >&5
a848cd7e
SC
41687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41688 (exit $ac_status); } &&
5ff751d6 41689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41691 (eval $ac_try) 2>&5
41692 ac_status=$?
41693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41694 (exit $ac_status); }; } &&
41695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41697 (eval $ac_try) 2>&5
41698 ac_status=$?
41699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41700 (exit $ac_status); }; }; then
41701 ac_cv_func_socket=yes
41702else
41703 echo "$as_me: failed program was:" >&5
41704sed 's/^/| /' conftest.$ac_ext >&5
41705
41706ac_cv_func_socket=no
41707fi
ac1cb8d3
VS
41708rm -f conftest.err conftest.$ac_objext \
41709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41710fi
41711echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
41712echo "${ECHO_T}$ac_cv_func_socket" >&6
41713if test $ac_cv_func_socket = yes; then
41714 :
41715else
41716
41717 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
41718echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
41719if test "${ac_cv_lib_socket_socket+set}" = set; then
41720 echo $ECHO_N "(cached) $ECHO_C" >&6
41721else
41722 ac_check_lib_save_LIBS=$LIBS
41723LIBS="-lsocket $LIBS"
41724cat >conftest.$ac_ext <<_ACEOF
41725/* confdefs.h. */
41726_ACEOF
41727cat confdefs.h >>conftest.$ac_ext
41728cat >>conftest.$ac_ext <<_ACEOF
41729/* end confdefs.h. */
41730
41731/* Override any gcc2 internal prototype to avoid an error. */
41732#ifdef __cplusplus
41733extern "C"
41734#endif
41735/* We use char because int might match the return type of a gcc2
41736 builtin and then its argument prototype would still apply. */
41737char socket ();
41738int
41739main ()
41740{
41741socket ();
41742 ;
41743 return 0;
41744}
41745_ACEOF
41746rm -f conftest.$ac_objext conftest$ac_exeext
41747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41748 (eval $ac_link) 2>conftest.er1
a848cd7e 41749 ac_status=$?
ac1cb8d3
VS
41750 grep -v '^ *+' conftest.er1 >conftest.err
41751 rm -f conftest.er1
41752 cat conftest.err >&5
a848cd7e
SC
41753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41754 (exit $ac_status); } &&
5ff751d6 41755 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41757 (eval $ac_try) 2>&5
41758 ac_status=$?
41759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41760 (exit $ac_status); }; } &&
41761 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
41762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41763 (eval $ac_try) 2>&5
41764 ac_status=$?
41765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41766 (exit $ac_status); }; }; then
41767 ac_cv_lib_socket_socket=yes
41768else
41769 echo "$as_me: failed program was:" >&5
41770sed 's/^/| /' conftest.$ac_ext >&5
41771
41772ac_cv_lib_socket_socket=no
41773fi
ac1cb8d3
VS
41774rm -f conftest.err conftest.$ac_objext \
41775 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41776LIBS=$ac_check_lib_save_LIBS
41777fi
41778echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
41779echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
41780if test $ac_cv_lib_socket_socket = yes; then
41781 if test "$INET_LINK" != " -lsocket"; then
41782 INET_LINK="$INET_LINK -lsocket"
41783 fi
41784else
41785
41786 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
41787echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
41788 wxUSE_SOCKETS=no
41789
41790
41791fi
41792
41793
41794
41795fi
41796
41797 fi
41798fi
41799
41800if test "$wxUSE_SOCKETS" = "yes" ; then
41801 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
41802 ac_ext=cc
41803ac_cpp='$CXXCPP $CPPFLAGS'
41804ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41805ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41806ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41807
41808 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
41809echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
41810if test "${wx_cv_type_getsockname3+set}" = set; then
41811 echo $ECHO_N "(cached) $ECHO_C" >&6
41812else
41813
41814 cat >conftest.$ac_ext <<_ACEOF
41815/* confdefs.h. */
41816_ACEOF
41817cat confdefs.h >>conftest.$ac_ext
41818cat >>conftest.$ac_ext <<_ACEOF
41819/* end confdefs.h. */
41820
41821 #include <sys/types.h>
41822 #include <sys/socket.h>
41823
41824int
41825main ()
41826{
41827
41828 socklen_t len;
41829 getsockname(0, 0, &len);
41830
41831 ;
41832 return 0;
41833}
41834_ACEOF
41835rm -f conftest.$ac_objext
41836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41837 (eval $ac_compile) 2>conftest.er1
a848cd7e 41838 ac_status=$?
ac1cb8d3
VS
41839 grep -v '^ *+' conftest.er1 >conftest.err
41840 rm -f conftest.er1
41841 cat conftest.err >&5
a848cd7e
SC
41842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41843 (exit $ac_status); } &&
5ff751d6 41844 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41846 (eval $ac_try) 2>&5
41847 ac_status=$?
41848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41849 (exit $ac_status); }; } &&
41850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41852 (eval $ac_try) 2>&5
41853 ac_status=$?
41854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41855 (exit $ac_status); }; }; then
41856 wx_cv_type_getsockname3=socklen_t
41857else
41858 echo "$as_me: failed program was:" >&5
41859sed 's/^/| /' conftest.$ac_ext >&5
41860
41861
6459a506 41862 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 41863 if test "$GCC" = yes ; then
c92ad099 41864 CXXFLAGS="-Werror $CXXFLAGS"
a848cd7e
SC
41865 fi
41866
41867 cat >conftest.$ac_ext <<_ACEOF
41868/* confdefs.h. */
41869_ACEOF
41870cat confdefs.h >>conftest.$ac_ext
41871cat >>conftest.$ac_ext <<_ACEOF
41872/* end confdefs.h. */
41873
41874 #include <sys/types.h>
41875 #include <sys/socket.h>
41876
41877int
41878main ()
41879{
41880
41881 size_t len;
41882 getsockname(0, 0, &len);
41883
41884 ;
41885 return 0;
41886}
41887_ACEOF
41888rm -f conftest.$ac_objext
41889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41890 (eval $ac_compile) 2>conftest.er1
a848cd7e 41891 ac_status=$?
ac1cb8d3
VS
41892 grep -v '^ *+' conftest.er1 >conftest.err
41893 rm -f conftest.er1
41894 cat conftest.err >&5
a848cd7e
SC
41895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41896 (exit $ac_status); } &&
5ff751d6 41897 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41899 (eval $ac_try) 2>&5
41900 ac_status=$?
41901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902 (exit $ac_status); }; } &&
41903 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41905 (eval $ac_try) 2>&5
41906 ac_status=$?
41907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41908 (exit $ac_status); }; }; then
41909 wx_cv_type_getsockname3=size_t
41910else
41911 echo "$as_me: failed program was:" >&5
41912sed 's/^/| /' conftest.$ac_ext >&5
41913
41914cat >conftest.$ac_ext <<_ACEOF
41915/* confdefs.h. */
41916_ACEOF
41917cat confdefs.h >>conftest.$ac_ext
41918cat >>conftest.$ac_ext <<_ACEOF
41919/* end confdefs.h. */
41920
41921 #include <sys/types.h>
41922 #include <sys/socket.h>
41923
41924int
41925main ()
41926{
41927
41928 int len;
41929 getsockname(0, 0, &len);
41930
41931 ;
41932 return 0;
41933}
41934_ACEOF
41935rm -f conftest.$ac_objext
41936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41937 (eval $ac_compile) 2>conftest.er1
a848cd7e 41938 ac_status=$?
ac1cb8d3
VS
41939 grep -v '^ *+' conftest.er1 >conftest.err
41940 rm -f conftest.er1
41941 cat conftest.err >&5
a848cd7e
SC
41942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41943 (exit $ac_status); } &&
5ff751d6 41944 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41946 (eval $ac_try) 2>&5
41947 ac_status=$?
41948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41949 (exit $ac_status); }; } &&
41950 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41952 (eval $ac_try) 2>&5
41953 ac_status=$?
41954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41955 (exit $ac_status); }; }; then
41956 wx_cv_type_getsockname3=int
41957else
41958 echo "$as_me: failed program was:" >&5
41959sed 's/^/| /' conftest.$ac_ext >&5
41960
41961wx_cv_type_getsockname3=unknown
41962
41963fi
ac1cb8d3 41964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41965
41966fi
ac1cb8d3 41967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 41968
6459a506 41969 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
41970
41971
41972fi
ac1cb8d3 41973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41974
41975fi
41976echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
41977echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
41978
41979 if test "$wx_cv_type_getsockname3" = "unknown"; then
41980 wxUSE_SOCKETS=no
41981 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
41982echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
41983 else
41984 cat >>confdefs.h <<_ACEOF
9e03e02d 41985#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
41986_ACEOF
41987
41988 fi
41989 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
41990echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
41991if test "${wx_cv_type_getsockopt5+set}" = set; then
41992 echo $ECHO_N "(cached) $ECHO_C" >&6
41993else
41994
41995 cat >conftest.$ac_ext <<_ACEOF
41996/* confdefs.h. */
41997_ACEOF
41998cat confdefs.h >>conftest.$ac_ext
41999cat >>conftest.$ac_ext <<_ACEOF
42000/* end confdefs.h. */
42001
42002 #include <sys/types.h>
42003 #include <sys/socket.h>
42004
42005int
42006main ()
42007{
42008
42009 socklen_t len;
42010 getsockopt(0, 0, 0, 0, &len);
42011
42012 ;
42013 return 0;
42014}
42015_ACEOF
42016rm -f conftest.$ac_objext
42017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42018 (eval $ac_compile) 2>conftest.er1
42019 ac_status=$?
42020 grep -v '^ *+' conftest.er1 >conftest.err
42021 rm -f conftest.er1
42022 cat conftest.err >&5
42023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42024 (exit $ac_status); } &&
5ff751d6 42025 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42027 (eval $ac_try) 2>&5
42028 ac_status=$?
42029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42030 (exit $ac_status); }; } &&
42031 { ac_try='test -s conftest.$ac_objext'
42032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42033 (eval $ac_try) 2>&5
42034 ac_status=$?
42035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42036 (exit $ac_status); }; }; then
42037 wx_cv_type_getsockopt5=socklen_t
42038else
42039 echo "$as_me: failed program was:" >&5
42040sed 's/^/| /' conftest.$ac_ext >&5
42041
42042
6459a506 42043 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 42044 if test "$GCC" = yes ; then
c92ad099 42045 CXXFLAGS="-Werror $CXXFLAGS"
5b674b9d
DE
42046 fi
42047
42048 cat >conftest.$ac_ext <<_ACEOF
42049/* confdefs.h. */
42050_ACEOF
42051cat confdefs.h >>conftest.$ac_ext
42052cat >>conftest.$ac_ext <<_ACEOF
42053/* end confdefs.h. */
42054
42055 #include <sys/types.h>
42056 #include <sys/socket.h>
42057
42058int
42059main ()
42060{
42061
42062 size_t len;
42063 getsockopt(0, 0, 0, 0, &len);
42064
42065 ;
42066 return 0;
42067}
42068_ACEOF
42069rm -f conftest.$ac_objext
42070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42071 (eval $ac_compile) 2>conftest.er1
42072 ac_status=$?
42073 grep -v '^ *+' conftest.er1 >conftest.err
42074 rm -f conftest.er1
42075 cat conftest.err >&5
42076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42077 (exit $ac_status); } &&
5ff751d6 42078 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42080 (eval $ac_try) 2>&5
42081 ac_status=$?
42082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42083 (exit $ac_status); }; } &&
42084 { ac_try='test -s conftest.$ac_objext'
42085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42086 (eval $ac_try) 2>&5
42087 ac_status=$?
42088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42089 (exit $ac_status); }; }; then
42090 wx_cv_type_getsockopt5=size_t
42091else
42092 echo "$as_me: failed program was:" >&5
42093sed 's/^/| /' conftest.$ac_ext >&5
42094
42095cat >conftest.$ac_ext <<_ACEOF
42096/* confdefs.h. */
42097_ACEOF
42098cat confdefs.h >>conftest.$ac_ext
42099cat >>conftest.$ac_ext <<_ACEOF
42100/* end confdefs.h. */
42101
42102 #include <sys/types.h>
42103 #include <sys/socket.h>
42104
42105int
42106main ()
42107{
42108
42109 int len;
42110 getsockopt(0, 0, 0, 0, &len);
42111
42112 ;
42113 return 0;
42114}
42115_ACEOF
42116rm -f conftest.$ac_objext
42117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42118 (eval $ac_compile) 2>conftest.er1
42119 ac_status=$?
42120 grep -v '^ *+' conftest.er1 >conftest.err
42121 rm -f conftest.er1
42122 cat conftest.err >&5
42123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42124 (exit $ac_status); } &&
5ff751d6 42125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
42126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42127 (eval $ac_try) 2>&5
42128 ac_status=$?
42129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42130 (exit $ac_status); }; } &&
42131 { ac_try='test -s conftest.$ac_objext'
42132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42133 (eval $ac_try) 2>&5
42134 ac_status=$?
42135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42136 (exit $ac_status); }; }; then
42137 wx_cv_type_getsockopt5=int
42138else
42139 echo "$as_me: failed program was:" >&5
42140sed 's/^/| /' conftest.$ac_ext >&5
42141
42142wx_cv_type_getsockopt5=unknown
42143
42144fi
42145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42146
42147fi
42148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42149
6459a506 42150 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
42151
42152
42153fi
42154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42155
42156fi
42157echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
42158echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
42159
42160 if test "$wx_cv_type_getsockopt5" = "unknown"; then
42161 wxUSE_SOCKETS=no
42162 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
42163echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
42164 else
42165 cat >>confdefs.h <<_ACEOF
42166#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
42167_ACEOF
42168
42169 fi
4d4ff94c
VZ
42170 ac_ext=c
42171ac_cpp='$CPP $CPPFLAGS'
42172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42174ac_compiler_gnu=$ac_cv_c_compiler_gnu
42175
a848cd7e
SC
42176 fi
42177fi
42178
42179if test "$wxUSE_SOCKETS" = "yes" ; then
42180 cat >>confdefs.h <<\_ACEOF
42181#define wxUSE_SOCKETS 1
42182_ACEOF
42183
42184 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
42185fi
42186
42187if test "$wxUSE_PROTOCOL" = "yes"; then
42188 if test "$wxUSE_SOCKETS" != "yes"; then
42189 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
42190echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
42191 wxUSE_PROTOCOL=no
42192 fi
42193fi
42194
42195if test "$wxUSE_PROTOCOL" = "yes"; then
42196 cat >>confdefs.h <<\_ACEOF
42197#define wxUSE_PROTOCOL 1
42198_ACEOF
42199
42200
42201 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
42202 cat >>confdefs.h <<\_ACEOF
42203#define wxUSE_PROTOCOL_HTTP 1
42204_ACEOF
42205
42206 fi
42207 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
42208 cat >>confdefs.h <<\_ACEOF
42209#define wxUSE_PROTOCOL_FTP 1
42210_ACEOF
42211
42212 fi
42213 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
42214 cat >>confdefs.h <<\_ACEOF
42215#define wxUSE_PROTOCOL_FILE 1
42216_ACEOF
42217
42218 fi
42219else
42220 if test "$wxUSE_FS_INET" = "yes"; then
42221 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
42222echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
42223 wxUSE_FS_INET="no"
42224 fi
42225fi
42226
42227if test "$wxUSE_URL" = "yes"; then
42228 if test "$wxUSE_PROTOCOL" != "yes"; then
42229 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
42230echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
42231 wxUSE_URL=no
42232 fi
42233 if test "$wxUSE_URL" = "yes"; then
42234 cat >>confdefs.h <<\_ACEOF
42235#define wxUSE_URL 1
42236_ACEOF
42237
42238 fi
42239fi
42240
42241if test "$wxUSE_FS_INET" = "yes"; then
42242 cat >>confdefs.h <<\_ACEOF
42243#define wxUSE_FS_INET 1
42244_ACEOF
42245
42246fi
42247
42248
ee45c548
MW
42249if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
42250 wxUSE_JOYSTICK=no
42251
42252 if test "$TOOLKIT" = "MSW"; then
42253 wxUSE_JOYSTICK=yes
42254
42255 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
42256 if test "$USE_DARWIN" = 1; then
42257 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
42258echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
42259 ac_ext=cc
42260ac_cpp='$CXXCPP $CPPFLAGS'
42261ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42262ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42263ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42264
42265 cat >conftest.$ac_ext <<_ACEOF
42266/* confdefs.h. */
42267_ACEOF
42268cat confdefs.h >>conftest.$ac_ext
42269cat >>conftest.$ac_ext <<_ACEOF
42270/* end confdefs.h. */
42271 #include <IOKit/hid/IOHIDLib.h>
42272int
42273main ()
42274{
42275 IOHIDQueueInterface *qi = NULL;
42276 IOHIDCallbackFunction cb = NULL;
42277 qi->setEventCallout(NULL, cb, NULL, NULL);
42278 ;
42279 return 0;
42280}
42281_ACEOF
42282rm -f conftest.$ac_objext
42283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42284 (eval $ac_compile) 2>conftest.er1
42285 ac_status=$?
42286 grep -v '^ *+' conftest.er1 >conftest.err
42287 rm -f conftest.er1
42288 cat conftest.err >&5
42289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42290 (exit $ac_status); } &&
5ff751d6 42291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
42292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42293 (eval $ac_try) 2>&5
42294 ac_status=$?
42295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42296 (exit $ac_status); }; } &&
42297 { ac_try='test -s conftest.$ac_objext'
42298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42299 (eval $ac_try) 2>&5
42300 ac_status=$?
42301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42302 (exit $ac_status); }; }; then
42303 wxUSE_JOYSTICK=yes
a848cd7e 42304
ee45c548
MW
42305else
42306 echo "$as_me: failed program was:" >&5
42307sed 's/^/| /' conftest.$ac_ext >&5
42308
42309fi
42310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42311 ac_ext=c
42312ac_cpp='$CPP $CPPFLAGS'
42313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42315ac_compiler_gnu=$ac_cv_c_compiler_gnu
42316
42317 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
42318echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
42319 fi
42320
42321 else
a848cd7e
SC
42322
42323for ac_header in linux/joystick.h
42324do
42325as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42326if eval "test \"\${$as_ac_Header+set}\" = set"; then
42327 echo "$as_me:$LINENO: checking for $ac_header" >&5
42328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42329if eval "test \"\${$as_ac_Header+set}\" = set"; then
42330 echo $ECHO_N "(cached) $ECHO_C" >&6
42331fi
42332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42333echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42334else
42335 # Is the header compilable?
42336echo "$as_me:$LINENO: checking $ac_header usability" >&5
42337echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42338cat >conftest.$ac_ext <<_ACEOF
42339/* confdefs.h. */
42340_ACEOF
42341cat confdefs.h >>conftest.$ac_ext
42342cat >>conftest.$ac_ext <<_ACEOF
42343/* end confdefs.h. */
42344$ac_includes_default
42345#include <$ac_header>
42346_ACEOF
42347rm -f conftest.$ac_objext
42348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42349 (eval $ac_compile) 2>conftest.er1
a848cd7e 42350 ac_status=$?
ac1cb8d3
VS
42351 grep -v '^ *+' conftest.er1 >conftest.err
42352 rm -f conftest.er1
42353 cat conftest.err >&5
a848cd7e
SC
42354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42355 (exit $ac_status); } &&
5ff751d6 42356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42358 (eval $ac_try) 2>&5
42359 ac_status=$?
42360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42361 (exit $ac_status); }; } &&
42362 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42364 (eval $ac_try) 2>&5
42365 ac_status=$?
42366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42367 (exit $ac_status); }; }; then
42368 ac_header_compiler=yes
42369else
42370 echo "$as_me: failed program was:" >&5
42371sed 's/^/| /' conftest.$ac_ext >&5
42372
42373ac_header_compiler=no
42374fi
ac1cb8d3 42375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42376echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42377echo "${ECHO_T}$ac_header_compiler" >&6
42378
42379# Is the header present?
42380echo "$as_me:$LINENO: checking $ac_header presence" >&5
42381echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42382cat >conftest.$ac_ext <<_ACEOF
42383/* confdefs.h. */
42384_ACEOF
42385cat confdefs.h >>conftest.$ac_ext
42386cat >>conftest.$ac_ext <<_ACEOF
42387/* end confdefs.h. */
42388#include <$ac_header>
42389_ACEOF
42390if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42391 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42392 ac_status=$?
42393 grep -v '^ *+' conftest.er1 >conftest.err
42394 rm -f conftest.er1
42395 cat conftest.err >&5
42396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42397 (exit $ac_status); } >/dev/null; then
42398 if test -s conftest.err; then
42399 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 42400 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
42401 else
42402 ac_cpp_err=
42403 fi
42404else
42405 ac_cpp_err=yes
42406fi
42407if test -z "$ac_cpp_err"; then
42408 ac_header_preproc=yes
42409else
42410 echo "$as_me: failed program was:" >&5
42411sed 's/^/| /' conftest.$ac_ext >&5
42412
42413 ac_header_preproc=no
42414fi
42415rm -f conftest.err conftest.$ac_ext
42416echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42417echo "${ECHO_T}$ac_header_preproc" >&6
42418
42419# So? What about this header?
ac1cb8d3
VS
42420case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42421 yes:no: )
a848cd7e
SC
42422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42423echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
42424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42425echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42426 ac_header_preproc=yes
a848cd7e 42427 ;;
ac1cb8d3 42428 no:yes:* )
a848cd7e
SC
42429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42430echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
42431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42432echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42434echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42436echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
42437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42438echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
42439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42440echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
42441 (
42442 cat <<\_ASBOX
ac1cb8d3
VS
42443## ----------------------------------------- ##
42444## Report this to wx-dev@lists.wxwidgets.org ##
42445## ----------------------------------------- ##
a848cd7e
SC
42446_ASBOX
42447 ) |
42448 sed "s/^/$as_me: WARNING: /" >&2
42449 ;;
42450esac
42451echo "$as_me:$LINENO: checking for $ac_header" >&5
42452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42453if eval "test \"\${$as_ac_Header+set}\" = set"; then
42454 echo $ECHO_N "(cached) $ECHO_C" >&6
42455else
ac1cb8d3 42456 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
42457fi
42458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42460
42461fi
42462if test `eval echo '${'$as_ac_Header'}'` = yes; then
42463 cat >>confdefs.h <<_ACEOF
42464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42465_ACEOF
ee45c548 42466 wxUSE_JOYSTICK=yes
a848cd7e
SC
42467fi
42468
42469done
42470
ee45c548 42471 fi
4cb1d3da 42472
ee45c548
MW
42473 if test "$wxUSE_JOYSTICK" = "yes"; then
42474 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42475#define wxUSE_JOYSTICK 1
42476_ACEOF
42477
ee45c548
MW
42478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
42479 else
42480 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
42481echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
42482 fi
42483fi
42484
42485
42486
42487if test "$wxUSE_FONTMAP" = "yes" ; then
42488 cat >>confdefs.h <<\_ACEOF
42489#define wxUSE_FONTMAP 1
42490_ACEOF
42491
42492fi
42493
42494if test "$wxUSE_UNICODE" = "yes" ; then
42495 cat >>confdefs.h <<\_ACEOF
42496#define wxUSE_UNICODE 1
42497_ACEOF
42498
42499
42500 if test "$USE_WIN32" != 1; then
42501 wxUSE_UNICODE_MSLU=no
42502 fi
42503
42504 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
42505 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
42506echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
42507if test "${ac_cv_lib_unicows_main+set}" = set; then
42508 echo $ECHO_N "(cached) $ECHO_C" >&6
42509else
42510 ac_check_lib_save_LIBS=$LIBS
42511LIBS="-lunicows $LIBS"
42512cat >conftest.$ac_ext <<_ACEOF
42513/* confdefs.h. */
42514_ACEOF
42515cat confdefs.h >>conftest.$ac_ext
42516cat >>conftest.$ac_ext <<_ACEOF
42517/* end confdefs.h. */
42518
42519
42520int
42521main ()
42522{
42523main ();
42524 ;
42525 return 0;
42526}
42527_ACEOF
42528rm -f conftest.$ac_objext conftest$ac_exeext
42529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 42530 (eval $ac_link) 2>conftest.er1
a848cd7e 42531 ac_status=$?
ac1cb8d3
VS
42532 grep -v '^ *+' conftest.er1 >conftest.err
42533 rm -f conftest.er1
42534 cat conftest.err >&5
a848cd7e
SC
42535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42536 (exit $ac_status); } &&
5ff751d6 42537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42539 (eval $ac_try) 2>&5
42540 ac_status=$?
42541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42542 (exit $ac_status); }; } &&
42543 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
42544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42545 (eval $ac_try) 2>&5
42546 ac_status=$?
42547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42548 (exit $ac_status); }; }; then
42549 ac_cv_lib_unicows_main=yes
42550else
42551 echo "$as_me: failed program was:" >&5
42552sed 's/^/| /' conftest.$ac_ext >&5
42553
42554ac_cv_lib_unicows_main=no
42555fi
ac1cb8d3
VS
42556rm -f conftest.err conftest.$ac_objext \
42557 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
42558LIBS=$ac_check_lib_save_LIBS
42559fi
42560echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
42561echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
42562if test $ac_cv_lib_unicows_main = yes; then
42563
42564 cat >>confdefs.h <<\_ACEOF
42565#define wxUSE_UNICODE_MSLU 1
42566_ACEOF
42567
42568
42569else
42570
42571 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
42572 Applications will only run on Windows NT/2000/XP!" >&5
42573echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
42574 Applications will only run on Windows NT/2000/XP!" >&2;}
42575 wxUSE_UNICODE_MSLU=no
42576
42577fi
42578
42579 fi
42580fi
42581
42582if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
42583 cat >>confdefs.h <<\_ACEOF
42584#define wxUSE_EXPERIMENTAL_PRINTF 1
42585_ACEOF
42586
42587fi
42588
42589
42590if test "$wxUSE_POSTSCRIPT" = "yes" ; then
42591 cat >>confdefs.h <<\_ACEOF
42592#define wxUSE_POSTSCRIPT 1
42593_ACEOF
42594
42595fi
42596
42597cat >>confdefs.h <<\_ACEOF
42598#define wxUSE_AFM_FOR_POSTSCRIPT 1
42599_ACEOF
42600
42601
42602cat >>confdefs.h <<\_ACEOF
42603#define wxUSE_NORMALIZED_PS_FONTS 1
42604_ACEOF
42605
42606
42607
42608if test "$wxUSE_CONSTRAINTS" = "yes"; then
42609 cat >>confdefs.h <<\_ACEOF
42610#define wxUSE_CONSTRAINTS 1
42611_ACEOF
42612
42613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
42614fi
42615
8a7b1113
VZ
42616if test "$wxUSE_MDI" = "yes"; then
42617 cat >>confdefs.h <<\_ACEOF
42618#define wxUSE_MDI 1
42619_ACEOF
42620
42621
42622 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
42623 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42624#define wxUSE_MDI_ARCHITECTURE 1
42625_ACEOF
42626
8a7b1113
VZ
42627 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
42628 fi
a848cd7e
SC
42629fi
42630
42631if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
42632 cat >>confdefs.h <<\_ACEOF
42633#define wxUSE_DOC_VIEW_ARCHITECTURE 1
42634_ACEOF
42635
42636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
42637 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
42638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
42639 fi
42640fi
42641
42642if test "$wxUSE_HELP" = "yes"; then
42643 cat >>confdefs.h <<\_ACEOF
42644#define wxUSE_HELP 1
42645_ACEOF
42646
42647 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
42648
42649 if test "$wxUSE_MSW" = 1; then
42650 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
42651 cat >>confdefs.h <<\_ACEOF
42652#define wxUSE_MS_HTML_HELP 1
42653_ACEOF
42654
42655 fi
42656 fi
42657
42658 if test "$wxUSE_WXHTML_HELP" = "yes"; then
42659 if test "$wxUSE_HTML" = "yes"; then
42660 cat >>confdefs.h <<\_ACEOF
42661#define wxUSE_WXHTML_HELP 1
42662_ACEOF
42663
42664 else
42665 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
42666echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
42667 wxUSE_WXHTML_HELP=no
42668 fi
42669 fi
42670fi
42671
42672if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
42673 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42674 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
42675echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
42676 else
42677 cat >>confdefs.h <<\_ACEOF
42678#define wxUSE_PRINTING_ARCHITECTURE 1
42679_ACEOF
42680
42681 fi
42682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
42683fi
42684
42685if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
42686 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
42687echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
42688 { (exit 1); exit 1; }; }
42689fi
42690
42691
efdf6afe
VZ
42692if test "$wxUSE_METAFILE" = "yes"; then
42693 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
42694 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
42695echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
42696 wxUSE_METAFILE=no
42697 fi
42698fi
42699
42700
a848cd7e
SC
42701if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
42702 -o "$wxUSE_CLIPBOARD" = "yes" \
42703 -o "$wxUSE_OLE" = "yes" \
42704 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
42705
42706for ac_header in ole2.h
42707do
42708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42709if eval "test \"\${$as_ac_Header+set}\" = set"; then
42710 echo "$as_me:$LINENO: checking for $ac_header" >&5
42711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42712if eval "test \"\${$as_ac_Header+set}\" = set"; then
42713 echo $ECHO_N "(cached) $ECHO_C" >&6
42714fi
42715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42717else
42718 # Is the header compilable?
42719echo "$as_me:$LINENO: checking $ac_header usability" >&5
42720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
42721cat >conftest.$ac_ext <<_ACEOF
42722/* confdefs.h. */
42723_ACEOF
42724cat confdefs.h >>conftest.$ac_ext
42725cat >>conftest.$ac_ext <<_ACEOF
42726/* end confdefs.h. */
42727$ac_includes_default
42728#include <$ac_header>
42729_ACEOF
42730rm -f conftest.$ac_objext
42731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42732 (eval $ac_compile) 2>conftest.er1
a848cd7e 42733 ac_status=$?
ac1cb8d3
VS
42734 grep -v '^ *+' conftest.er1 >conftest.err
42735 rm -f conftest.er1
42736 cat conftest.err >&5
a848cd7e
SC
42737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42738 (exit $ac_status); } &&
5ff751d6 42739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42741 (eval $ac_try) 2>&5
42742 ac_status=$?
42743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42744 (exit $ac_status); }; } &&
42745 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42747 (eval $ac_try) 2>&5
42748 ac_status=$?
42749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42750 (exit $ac_status); }; }; then
42751 ac_header_compiler=yes
42752else
42753 echo "$as_me: failed program was:" >&5
42754sed 's/^/| /' conftest.$ac_ext >&5
42755
42756ac_header_compiler=no
42757fi
ac1cb8d3 42758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42760echo "${ECHO_T}$ac_header_compiler" >&6
42761
42762# Is the header present?
42763echo "$as_me:$LINENO: checking $ac_header presence" >&5
42764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
42765cat >conftest.$ac_ext <<_ACEOF
42766/* confdefs.h. */
42767_ACEOF
42768cat confdefs.h >>conftest.$ac_ext
42769cat >>conftest.$ac_ext <<_ACEOF
42770/* end confdefs.h. */
42771#include <$ac_header>
42772_ACEOF
42773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
42774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
42775 ac_status=$?
42776 grep -v '^ *+' conftest.er1 >conftest.err
42777 rm -f conftest.er1
42778 cat conftest.err >&5
42779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42780 (exit $ac_status); } >/dev/null; then
42781 if test -s conftest.err; then
42782 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 42783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
42784 else
42785 ac_cpp_err=
42786 fi
42787else
42788 ac_cpp_err=yes
42789fi
42790if test -z "$ac_cpp_err"; then
42791 ac_header_preproc=yes
42792else
42793 echo "$as_me: failed program was:" >&5
42794sed 's/^/| /' conftest.$ac_ext >&5
42795
42796 ac_header_preproc=no
42797fi
42798rm -f conftest.err conftest.$ac_ext
42799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42800echo "${ECHO_T}$ac_header_preproc" >&6
42801
42802# So? What about this header?
ac1cb8d3
VS
42803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42804 yes:no: )
a848cd7e
SC
42805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
42807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42809 ac_header_preproc=yes
a848cd7e 42810 ;;
ac1cb8d3 42811 no:yes:* )
a848cd7e
SC
42812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
42814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42819echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
42820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
42822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
42824 (
42825 cat <<\_ASBOX
ac1cb8d3
VS
42826## ----------------------------------------- ##
42827## Report this to wx-dev@lists.wxwidgets.org ##
42828## ----------------------------------------- ##
a848cd7e
SC
42829_ASBOX
42830 ) |
42831 sed "s/^/$as_me: WARNING: /" >&2
42832 ;;
42833esac
42834echo "$as_me:$LINENO: checking for $ac_header" >&5
42835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
42836if eval "test \"\${$as_ac_Header+set}\" = set"; then
42837 echo $ECHO_N "(cached) $ECHO_C" >&6
42838else
ac1cb8d3 42839 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
42840fi
42841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
42842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
42843
42844fi
42845if test `eval echo '${'$as_ac_Header'}'` = yes; then
42846 cat >>confdefs.h <<_ACEOF
42847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42848_ACEOF
42849
42850fi
42851
42852done
42853
42854
42855 if test "$ac_cv_header_ole2_h" = "yes" ; then
42856 if test "$GCC" = yes ; then
42857
42858
42859 ac_ext=cc
42860ac_cpp='$CXXCPP $CPPFLAGS'
42861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42864
42865
42866 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
42867echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
42868 cat >conftest.$ac_ext <<_ACEOF
42869/* confdefs.h. */
42870_ACEOF
42871cat confdefs.h >>conftest.$ac_ext
42872cat >>conftest.$ac_ext <<_ACEOF
42873/* end confdefs.h. */
42874#include <windows.h>
42875 #include <ole2.h>
42876int
42877main ()
42878{
42879
42880 ;
42881 return 0;
42882}
42883_ACEOF
42884rm -f conftest.$ac_objext
42885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 42886 (eval $ac_compile) 2>conftest.er1
a848cd7e 42887 ac_status=$?
ac1cb8d3
VS
42888 grep -v '^ *+' conftest.er1 >conftest.err
42889 rm -f conftest.er1
42890 cat conftest.err >&5
a848cd7e
SC
42891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42892 (exit $ac_status); } &&
5ff751d6 42893 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
42894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42895 (eval $ac_try) 2>&5
42896 ac_status=$?
42897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42898 (exit $ac_status); }; } &&
42899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
42900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42901 (eval $ac_try) 2>&5
42902 ac_status=$?
42903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42904 (exit $ac_status); }; }; then
42905 echo "$as_me:$LINENO: result: no" >&5
42906echo "${ECHO_T}no" >&6
42907else
42908 echo "$as_me: failed program was:" >&5
42909sed 's/^/| /' conftest.$ac_ext >&5
42910
42911echo "$as_me:$LINENO: result: yes" >&5
42912echo "${ECHO_T}yes" >&6
5ff751d6 42913 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 42914fi
ac1cb8d3 42915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
42916 ac_ext=c
42917ac_cpp='$CPP $CPPFLAGS'
42918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42920ac_compiler_gnu=$ac_cv_c_compiler_gnu
42921
a848cd7e
SC
42922 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
42923 if test "$wxUSE_OLE" = "yes" ; then
42924 cat >>confdefs.h <<\_ACEOF
42925#define wxUSE_OLE 1
42926_ACEOF
42927
0b78747f 42928 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
42929 fi
42930 fi
42931
42932 if test "$wxUSE_DATAOBJ" = "yes" ; then
42933 cat >>confdefs.h <<\_ACEOF
42934#define wxUSE_DATAOBJ 1
42935_ACEOF
42936
42937 fi
42938 else
42939 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
42940echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
42941
42942 wxUSE_CLIPBOARD=no
42943 wxUSE_DRAG_AND_DROP=no
42944 wxUSE_DATAOBJ=no
42945 wxUSE_OLE=no
42946 fi
42947
42948 if test "$wxUSE_METAFILE" = "yes"; then
42949 cat >>confdefs.h <<\_ACEOF
42950#define wxUSE_METAFILE 1
42951_ACEOF
42952
42953
42954 cat >>confdefs.h <<\_ACEOF
42955#define wxUSE_ENH_METAFILE 1
42956_ACEOF
42957
42958 fi
42959fi
42960
42961if test "$wxUSE_IPC" = "yes"; then
0b78747f 42962 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
42963 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
42964echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 42965 wxUSE_IPC=no
a848cd7e
SC
42966 fi
42967
0b78747f
MW
42968 if test "$wxUSE_IPC" = "yes"; then
42969 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42970#define wxUSE_IPC 1
42971_ACEOF
42972
0b78747f
MW
42973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
42974 fi
a848cd7e
SC
42975fi
42976
eb730a0c 42977if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
42978 if test "$wxUSE_MGL" = 1; then
42979 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
42980echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
42981 wxUSE_DATAOBJ=no
42982 else
42983 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
42984#define wxUSE_DATAOBJ 1
42985_ACEOF
42986
2113bc77 42987 fi
eb730a0c
JS
42988else
42989 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
42990echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
42991 wxUSE_CLIPBOARD=no
42992 wxUSE_DRAG_AND_DROP=no
42993fi
42994
a848cd7e
SC
42995if test "$wxUSE_CLIPBOARD" = "yes"; then
42996 if test "$wxUSE_MGL" = 1; then
42997 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
42998echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
42999 wxUSE_CLIPBOARD=no
43000 fi
43001
43002 if test "$wxUSE_CLIPBOARD" = "yes"; then
43003 cat >>confdefs.h <<\_ACEOF
43004#define wxUSE_CLIPBOARD 1
43005_ACEOF
43006
a848cd7e
SC
43007 fi
43008fi
43009
43010if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
43011 if test "$wxUSE_GTK" = 1; then
43012 if test "$WXGTK12" != 1; then
43013 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
43014echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
43015 wxUSE_DRAG_AND_DROP=no
43016 fi
43017 fi
43018
43019 if test "$wxUSE_MOTIF" = 1; then
43020 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
43021echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
43022 wxUSE_DRAG_AND_DROP=no
43023 fi
43024
43025 if test "$wxUSE_X11" = 1; then
43026 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
43027echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
43028 wxUSE_DRAG_AND_DROP=no
43029 fi
43030
43031 if test "$wxUSE_MGL" = 1; then
43032 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
43033echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
43034 wxUSE_DRAG_AND_DROP=no
43035 fi
43036
43037 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
43038 cat >>confdefs.h <<\_ACEOF
43039#define wxUSE_DRAG_AND_DROP 1
43040_ACEOF
43041
43042 fi
43043
43044fi
43045
43046if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
43047 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
43048fi
43049
43050if test "$wxUSE_SPLINES" = "yes" ; then
43051 cat >>confdefs.h <<\_ACEOF
43052#define wxUSE_SPLINES 1
43053_ACEOF
43054
43055fi
43056
fbe2ca43
SN
43057if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
43058 cat >>confdefs.h <<\_ACEOF
43059#define wxUSE_MOUSEWHEEL 1
43060_ACEOF
43061
43062fi
43063
a848cd7e
SC
43064
43065USES_CONTROLS=0
43066if test "$wxUSE_CONTROLS" = "yes"; then
43067 USES_CONTROLS=1
43068fi
43069
43070if test "$wxUSE_ACCEL" = "yes"; then
43071 cat >>confdefs.h <<\_ACEOF
43072#define wxUSE_ACCEL 1
43073_ACEOF
43074
43075 USES_CONTROLS=1
43076fi
43077
43078if test "$wxUSE_BUTTON" = "yes"; then
43079 cat >>confdefs.h <<\_ACEOF
43080#define wxUSE_BUTTON 1
43081_ACEOF
43082
43083 USES_CONTROLS=1
43084fi
43085
43086if test "$wxUSE_BMPBUTTON" = "yes"; then
43087 cat >>confdefs.h <<\_ACEOF
43088#define wxUSE_BMPBUTTON 1
43089_ACEOF
43090
43091 USES_CONTROLS=1
43092fi
43093
43094if test "$wxUSE_CALCTRL" = "yes"; then
43095 cat >>confdefs.h <<\_ACEOF
43096#define wxUSE_CALENDARCTRL 1
43097_ACEOF
43098
43099 USES_CONTROLS=1
43100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
43101fi
43102
43103if test "$wxUSE_CARET" = "yes"; then
43104 cat >>confdefs.h <<\_ACEOF
43105#define wxUSE_CARET 1
43106_ACEOF
43107
43108 USES_CONTROLS=1
43109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
43110fi
43111
43112if test "$wxUSE_COMBOBOX" = "yes"; then
43113 cat >>confdefs.h <<\_ACEOF
43114#define wxUSE_COMBOBOX 1
43115_ACEOF
43116
43117 USES_CONTROLS=1
43118fi
43119
43120if test "$wxUSE_CHOICE" = "yes"; then
43121 cat >>confdefs.h <<\_ACEOF
43122#define wxUSE_CHOICE 1
43123_ACEOF
43124
43125 USES_CONTROLS=1
43126fi
43127
92bbdbcd
WS
43128if test "$wxUSE_CHOICEBOOK" = "yes"; then
43129 cat >>confdefs.h <<\_ACEOF
43130#define wxUSE_CHOICEBOOK 1
43131_ACEOF
43132
43133 USES_CONTROLS=1
43134fi
43135
a848cd7e
SC
43136if test "$wxUSE_CHECKBOX" = "yes"; then
43137 cat >>confdefs.h <<\_ACEOF
43138#define wxUSE_CHECKBOX 1
43139_ACEOF
43140
43141 USES_CONTROLS=1
43142fi
43143
43144if test "$wxUSE_CHECKLST" = "yes"; then
43145 cat >>confdefs.h <<\_ACEOF
43146#define wxUSE_CHECKLISTBOX 1
43147_ACEOF
43148
43149 USES_CONTROLS=1
43150 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
43151fi
43152
da98e9be
VZ
43153if test "$wxUSE_DATEPICKCTRL" = "yes"; then
43154 cat >>confdefs.h <<\_ACEOF
43155#define wxUSE_DATEPICKCTRL 1
43156_ACEOF
43157
43158 USES_CONTROLS=1
43159fi
43160
a848cd7e
SC
43161if test "$wxUSE_DISPLAY" = "yes"; then
43162 cat >>confdefs.h <<\_ACEOF
43163#define wxUSE_DISPLAY 1
43164_ACEOF
43165
0b78747f 43166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
43167fi
43168
43169if test "$wxUSE_GAUGE" = "yes"; then
43170 cat >>confdefs.h <<\_ACEOF
43171#define wxUSE_GAUGE 1
43172_ACEOF
43173
43174 USES_CONTROLS=1
43175fi
43176
43177if test "$wxUSE_GRID" = "yes"; then
43178 cat >>confdefs.h <<\_ACEOF
43179#define wxUSE_GRID 1
43180_ACEOF
43181
43182 USES_CONTROLS=1
43183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
43184fi
43185
43186if test "$wxUSE_IMAGLIST" = "yes"; then
43187 cat >>confdefs.h <<\_ACEOF
43188#define wxUSE_IMAGLIST 1
43189_ACEOF
43190
43191fi
43192
43193if test "$wxUSE_LISTBOOK" = "yes"; then
43194 cat >>confdefs.h <<\_ACEOF
43195#define wxUSE_LISTBOOK 1
43196_ACEOF
43197
43198 USES_CONTROLS=1
43199fi
43200
43201if test "$wxUSE_LISTBOX" = "yes"; then
43202 cat >>confdefs.h <<\_ACEOF
43203#define wxUSE_LISTBOX 1
43204_ACEOF
43205
43206 USES_CONTROLS=1
0b78747f 43207 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
43208fi
43209
43210if test "$wxUSE_LISTCTRL" = "yes"; then
43211 if test "$wxUSE_IMAGLIST" = "yes"; then
43212 cat >>confdefs.h <<\_ACEOF
43213#define wxUSE_LISTCTRL 1
43214_ACEOF
43215
43216 USES_CONTROLS=1
43217 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
43218 else
43219 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
43220echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
43221 fi
43222fi
43223
43224if test "$wxUSE_NOTEBOOK" = "yes"; then
43225 cat >>confdefs.h <<\_ACEOF
43226#define wxUSE_NOTEBOOK 1
43227_ACEOF
43228
43229 USES_CONTROLS=1
43230 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
43231fi
43232
43233
43234if test "$wxUSE_RADIOBOX" = "yes"; then
43235 cat >>confdefs.h <<\_ACEOF
43236#define wxUSE_RADIOBOX 1
43237_ACEOF
43238
43239 USES_CONTROLS=1
43240fi
43241
43242if test "$wxUSE_RADIOBTN" = "yes"; then
43243 cat >>confdefs.h <<\_ACEOF
43244#define wxUSE_RADIOBTN 1
43245_ACEOF
43246
43247 USES_CONTROLS=1
43248fi
43249
43250if test "$wxUSE_SASH" = "yes"; then
43251 cat >>confdefs.h <<\_ACEOF
43252#define wxUSE_SASH 1
43253_ACEOF
43254
43255 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
43256fi
43257
43258if test "$wxUSE_SCROLLBAR" = "yes"; then
43259 cat >>confdefs.h <<\_ACEOF
43260#define wxUSE_SCROLLBAR 1
43261_ACEOF
43262
43263 USES_CONTROLS=1
43264 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
43265fi
43266
43267if test "$wxUSE_SLIDER" = "yes"; then
43268 cat >>confdefs.h <<\_ACEOF
43269#define wxUSE_SLIDER 1
43270_ACEOF
43271
43272 USES_CONTROLS=1
43273fi
43274
43275if test "$wxUSE_SPINBTN" = "yes"; then
43276 cat >>confdefs.h <<\_ACEOF
43277#define wxUSE_SPINBTN 1
43278_ACEOF
43279
43280 USES_CONTROLS=1
43281fi
43282
43283if test "$wxUSE_SPINCTRL" = "yes"; then
43284 cat >>confdefs.h <<\_ACEOF
43285#define wxUSE_SPINCTRL 1
43286_ACEOF
43287
43288 USES_CONTROLS=1
43289fi
43290
43291if test "$wxUSE_SPLITTER" = "yes"; then
43292 cat >>confdefs.h <<\_ACEOF
43293#define wxUSE_SPLITTER 1
43294_ACEOF
43295
43296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
43297fi
43298
43299if test "$wxUSE_STATBMP" = "yes"; then
43300 cat >>confdefs.h <<\_ACEOF
43301#define wxUSE_STATBMP 1
43302_ACEOF
43303
43304 USES_CONTROLS=1
43305fi
43306
43307if test "$wxUSE_STATBOX" = "yes"; then
43308 cat >>confdefs.h <<\_ACEOF
43309#define wxUSE_STATBOX 1
43310_ACEOF
43311
43312 USES_CONTROLS=1
43313fi
43314
43315if test "$wxUSE_STATTEXT" = "yes"; then
43316 cat >>confdefs.h <<\_ACEOF
43317#define wxUSE_STATTEXT 1
43318_ACEOF
43319
43320 USES_CONTROLS=1
43321fi
43322
43323if test "$wxUSE_STATLINE" = "yes"; then
43324 cat >>confdefs.h <<\_ACEOF
43325#define wxUSE_STATLINE 1
43326_ACEOF
43327
43328 USES_CONTROLS=1
43329fi
43330
43331if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
43332 cat >>confdefs.h <<\_ACEOF
43333#define wxUSE_NATIVE_STATUSBAR 1
43334_ACEOF
43335
a848cd7e
SC
43336 cat >>confdefs.h <<\_ACEOF
43337#define wxUSE_STATUSBAR 1
43338_ACEOF
43339
43340 USES_CONTROLS=1
43341
43342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
43343fi
43344
43345if test "$wxUSE_TABDIALOG" = "yes"; then
43346 cat >>confdefs.h <<\_ACEOF
43347#define wxUSE_TAB_DIALOG 1
43348_ACEOF
43349
a848cd7e
SC
43350fi
43351
43352if test "$wxUSE_TEXTCTRL" = "yes"; then
43353 cat >>confdefs.h <<\_ACEOF
43354#define wxUSE_TEXTCTRL 1
43355_ACEOF
43356
43357 USES_CONTROLS=1
43358 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
43359fi
43360
43361if test "$wxUSE_TOGGLEBTN" = "yes"; then
43362 if test "$wxUSE_COCOA" = 1 ; then
43363 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
43364echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
43365 wxUSE_TOGGLEBTN=no
43366 fi
43367 if test "$wxUSE_UNIVERSAL" = "yes"; then
43368 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
43369echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
43370 wxUSE_TOGGLEBTN=no
43371 fi
43372
43373 if test "$wxUSE_TOGGLEBTN" = "yes"; then
43374 cat >>confdefs.h <<\_ACEOF
43375#define wxUSE_TOGGLEBTN 1
43376_ACEOF
43377
43378 USES_CONTROLS=1
43379 fi
43380fi
43381
43382if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
43383 cat >>confdefs.h <<\_ACEOF
43384#define wxUSE_TOOLBAR_SIMPLE 1
43385_ACEOF
43386
43387 wxUSE_TOOLBAR="yes"
43388 USES_CONTROLS=1
43389fi
43390
43391if test "$wxUSE_TOOLBAR" = "yes"; then
43392 cat >>confdefs.h <<\_ACEOF
43393#define wxUSE_TOOLBAR 1
43394_ACEOF
43395
43396 USES_CONTROLS=1
43397
43398 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
43399 wxUSE_TOOLBAR_NATIVE="yes"
43400 fi
43401
43402 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
43403 cat >>confdefs.h <<\_ACEOF
43404#define wxUSE_TOOLBAR_NATIVE 1
43405_ACEOF
43406
43407 USES_CONTROLS=1
43408 fi
43409
43410 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
43411fi
43412
43413if test "$wxUSE_TOOLTIPS" = "yes"; then
43414 if test "$wxUSE_MOTIF" = 1; then
43415 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
43416echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
43417 else
43418 if test "$wxUSE_UNIVERSAL" = "yes"; then
43419 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
43420echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
43421 else
43422 cat >>confdefs.h <<\_ACEOF
43423#define wxUSE_TOOLTIPS 1
43424_ACEOF
43425
43426 fi
43427 fi
43428fi
43429
0093c2fc
VZ
43430if test "$wxUSE_TREEBOOK" = "yes"; then
43431 cat >>confdefs.h <<\_ACEOF
43432#define wxUSE_TREEBOOK 1
43433_ACEOF
43434
43435 USES_CONTROLS=1
43436fi
43437
a848cd7e
SC
43438if test "$wxUSE_TREECTRL" = "yes"; then
43439 if test "$wxUSE_IMAGLIST" = "yes"; then
43440 cat >>confdefs.h <<\_ACEOF
43441#define wxUSE_TREECTRL 1
43442_ACEOF
43443
43444 USES_CONTROLS=1
43445 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
43446 else
43447 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
43448echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
43449 fi
43450fi
43451
43452if test "$wxUSE_POPUPWIN" = "yes"; then
43453 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43454 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
43455echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
43456 else
43457 if test "$wxUSE_PM" = 1; then
43458 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
43459echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
43460 else
43461 cat >>confdefs.h <<\_ACEOF
43462#define wxUSE_POPUPWIN 1
43463_ACEOF
43464
0b78747f 43465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
43466
43467 USES_CONTROLS=1
43468 fi
43469 fi
43470fi
43471
0dcd06dd 43472if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
43473 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
43474 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
43475echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
43476 else
43477 cat >>confdefs.h <<\_ACEOF
43478#define wxUSE_DIALUP_MANAGER 1
43479_ACEOF
43480
43481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
43482 fi
43483fi
43484
a848cd7e
SC
43485if test "$wxUSE_TIPWINDOW" = "yes"; then
43486 if test "$wxUSE_PM" = 1; then
43487 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
43488echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
43489 else
43490 cat >>confdefs.h <<\_ACEOF
43491#define wxUSE_TIPWINDOW 1
43492_ACEOF
43493
43494 fi
43495fi
43496
43497if test "$USES_CONTROLS" = 1; then
43498 cat >>confdefs.h <<\_ACEOF
43499#define wxUSE_CONTROLS 1
43500_ACEOF
43501
43502fi
43503
43504
43505if test "$wxUSE_ACCESSIBILITY" = "yes"; then
43506 cat >>confdefs.h <<\_ACEOF
43507#define wxUSE_ACCESSIBILITY 1
43508_ACEOF
43509
43510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
43511fi
43512
38b4a946
VZ
43513if test "$wxUSE_DC_CACHEING" = "yes"; then
43514 cat >>confdefs.h <<\_ACEOF
43515#define wxUSE_DC_CACHEING 1
43516_ACEOF
43517
43518fi
43519
a848cd7e
SC
43520if test "$wxUSE_DRAGIMAGE" = "yes"; then
43521 cat >>confdefs.h <<\_ACEOF
43522#define wxUSE_DRAGIMAGE 1
43523_ACEOF
43524
43525 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
43526fi
43527
43528if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
43529 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43530 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
43531echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
43532 else
43533 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
43534#define wxUSE_EXCEPTIONS 1
43535_ACEOF
43536
07bea8f0
VS
43537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
43538 fi
a848cd7e
SC
43539fi
43540
43541USE_HTML=0
43542if test "$wxUSE_HTML" = "yes"; then
43543 cat >>confdefs.h <<\_ACEOF
43544#define wxUSE_HTML 1
43545_ACEOF
43546
43547 USE_HTML=1
43548 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
43549 if test "$wxUSE_MAC" = 1; then
43550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
43551 fi
a848cd7e 43552fi
646b6ec1 43553if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 43554 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0 43555 old_CPPFLAGS="$CPPFLAGS"
c92ad099 43556 CPPFLAGS="-x objective-c++ $CPPFLAGS"
07bea8f0
VS
43557 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
43558echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
43559if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
43560 echo $ECHO_N "(cached) $ECHO_C" >&6
43561else
43562 cat >conftest.$ac_ext <<_ACEOF
43563/* confdefs.h. */
43564_ACEOF
43565cat confdefs.h >>conftest.$ac_ext
43566cat >>conftest.$ac_ext <<_ACEOF
43567/* end confdefs.h. */
43568#include <Carbon/Carbon.h>
43569
43570#include <WebKit/HIWebView.h>
43571_ACEOF
43572rm -f conftest.$ac_objext
43573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43574 (eval $ac_compile) 2>conftest.er1
43575 ac_status=$?
43576 grep -v '^ *+' conftest.er1 >conftest.err
43577 rm -f conftest.er1
43578 cat conftest.err >&5
43579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43580 (exit $ac_status); } &&
5ff751d6 43581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
43582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43583 (eval $ac_try) 2>&5
43584 ac_status=$?
43585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43586 (exit $ac_status); }; } &&
43587 { ac_try='test -s conftest.$ac_objext'
43588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43589 (eval $ac_try) 2>&5
43590 ac_status=$?
43591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43592 (exit $ac_status); }; }; then
43593 ac_cv_header_WebKit_HIWebView_h=yes
43594else
43595 echo "$as_me: failed program was:" >&5
43596sed 's/^/| /' conftest.$ac_ext >&5
43597
43598ac_cv_header_WebKit_HIWebView_h=no
43599fi
43600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43601fi
43602echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
43603echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
43604if test $ac_cv_header_WebKit_HIWebView_h = yes; then
43605
43606 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
43607#define wxUSE_WEBKIT 1
43608_ACEOF
43609
07bea8f0
VS
43610 WEBKIT_LINK="-framework WebKit"
43611
43612else
43613
43614 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
43615echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
43616 wxUSE_WEBKIT=no
43617
646b6ec1
VS
43618fi
43619
07bea8f0
VS
43620
43621 CPPFLAGS="$old_CPPFLAGS"
43622 elif test "$wxUSE_COCOA" = 1; then
43623 cat >>confdefs.h <<\_ACEOF
43624#define wxUSE_WEBKIT 1
43625_ACEOF
43626
43627 else
43628 wxUSE_WEBKIT=no
43629 fi
43630fi
43631
9a8f0513
VS
43632USE_XRC=0
43633if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
43634 if test "$wxUSE_XML" != "yes"; then
43635 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
43636echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
43637 wxUSE_XRC=no
43638 else
43639 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
43640#define wxUSE_XRC 1
43641_ACEOF
43642
d2ebf0b7
VS
43643 USE_XRC=1
43644 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
43645 fi
9a8f0513 43646fi
07bea8f0 43647
a848cd7e
SC
43648if test "$wxUSE_MENUS" = "yes"; then
43649 cat >>confdefs.h <<\_ACEOF
43650#define wxUSE_MENUS 1
43651_ACEOF
43652
43653 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
43654fi
43655
43656if test "$wxUSE_METAFILE" = "yes"; then
43657 cat >>confdefs.h <<\_ACEOF
43658#define wxUSE_METAFILE 1
43659_ACEOF
43660
43661fi
43662
43663if test "$wxUSE_MIMETYPE" = "yes"; then
43664 cat >>confdefs.h <<\_ACEOF
43665#define wxUSE_MIMETYPE 1
43666_ACEOF
43667
43668fi
43669
43670if test "$wxUSE_MINIFRAME" = "yes"; then
43671 cat >>confdefs.h <<\_ACEOF
43672#define wxUSE_MINIFRAME 1
43673_ACEOF
43674
43675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
43676fi
43677
43678if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
43679 cat >>confdefs.h <<\_ACEOF
43680#define wxUSE_SYSTEM_OPTIONS 1
43681_ACEOF
43682
43683 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 43684 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
43685 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
43686 fi
43687fi
43688
43689
43690if test "$wxUSE_VALIDATORS" = "yes"; then
43691 cat >>confdefs.h <<\_ACEOF
43692#define wxUSE_VALIDATORS 1
43693_ACEOF
43694
43695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
43696fi
43697
43698if test "$wxUSE_PALETTE" = "yes" ; then
43699 cat >>confdefs.h <<\_ACEOF
43700#define wxUSE_PALETTE 1
43701_ACEOF
43702
43703fi
43704
43705if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
43706 LIBS=" -lunicows $LIBS"
43707fi
43708
91dea314
MW
43709USE_RICHTEXT=0
43710if test "$wxUSE_RICHTEXT" = "yes"; then
43711 cat >>confdefs.h <<\_ACEOF
43712#define wxUSE_RICHTEXT 1
43713_ACEOF
43714
43715 USE_RICHTEXT=1
43716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
43717fi
43718
a848cd7e
SC
43719
43720if test "$wxUSE_IMAGE" = "yes" ; then
43721 cat >>confdefs.h <<\_ACEOF
43722#define wxUSE_IMAGE 1
43723_ACEOF
43724
43725
43726 if test "$wxUSE_GIF" = "yes" ; then
43727 cat >>confdefs.h <<\_ACEOF
43728#define wxUSE_GIF 1
43729_ACEOF
43730
43731 fi
43732
43733 if test "$wxUSE_PCX" = "yes" ; then
43734 cat >>confdefs.h <<\_ACEOF
43735#define wxUSE_PCX 1
43736_ACEOF
43737
43738 fi
43739
43740 if test "$wxUSE_IFF" = "yes" ; then
43741 cat >>confdefs.h <<\_ACEOF
43742#define wxUSE_IFF 1
43743_ACEOF
43744
43745 fi
43746
43747 if test "$wxUSE_PNM" = "yes" ; then
43748 cat >>confdefs.h <<\_ACEOF
43749#define wxUSE_PNM 1
43750_ACEOF
43751
43752 fi
43753
43754 if test "$wxUSE_XPM" = "yes" ; then
43755 cat >>confdefs.h <<\_ACEOF
43756#define wxUSE_XPM 1
43757_ACEOF
43758
43759 fi
43760
43761 if test "$wxUSE_ICO_CUR" = "yes" ; then
43762 cat >>confdefs.h <<\_ACEOF
43763#define wxUSE_ICO_CUR 1
43764_ACEOF
43765
43766 fi
43767fi
43768
43769
43770if test "$wxUSE_CHOICEDLG" = "yes"; then
43771 cat >>confdefs.h <<\_ACEOF
43772#define wxUSE_CHOICEDLG 1
43773_ACEOF
43774
43775fi
43776
43777if test "$wxUSE_COLOURDLG" = "yes"; then
43778 cat >>confdefs.h <<\_ACEOF
43779#define wxUSE_COLOURDLG 1
43780_ACEOF
43781
43782fi
43783
43784if test "$wxUSE_FILEDLG" = "yes"; then
43785 cat >>confdefs.h <<\_ACEOF
43786#define wxUSE_FILEDLG 1
43787_ACEOF
43788
43789fi
43790
43791if test "$wxUSE_FINDREPLDLG" = "yes"; then
43792 cat >>confdefs.h <<\_ACEOF
43793#define wxUSE_FINDREPLDLG 1
43794_ACEOF
43795
43796fi
43797
43798if test "$wxUSE_FONTDLG" = "yes"; then
43799 cat >>confdefs.h <<\_ACEOF
43800#define wxUSE_FONTDLG 1
43801_ACEOF
43802
43803fi
43804
43805if test "$wxUSE_DIRDLG" = "yes"; then
43806 if test "$wxUSE_TREECTRL" != "yes"; then
43807 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
43808echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
43809 else
43810 cat >>confdefs.h <<\_ACEOF
43811#define wxUSE_DIRDLG 1
43812_ACEOF
43813
43814 fi
43815fi
43816
43817if test "$wxUSE_MSGDLG" = "yes"; then
43818 cat >>confdefs.h <<\_ACEOF
43819#define wxUSE_MSGDLG 1
43820_ACEOF
43821
43822fi
43823
43824if test "$wxUSE_NUMBERDLG" = "yes"; then
43825 cat >>confdefs.h <<\_ACEOF
43826#define wxUSE_NUMBERDLG 1
43827_ACEOF
43828
43829fi
43830
43831if test "$wxUSE_PROGRESSDLG" = "yes"; then
43832 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43833 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
43834echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
43835 else
43836 cat >>confdefs.h <<\_ACEOF
43837#define wxUSE_PROGRESSDLG 1
43838_ACEOF
43839
43840 fi
43841fi
43842
43843if test "$wxUSE_SPLASH" = "yes"; then
43844 cat >>confdefs.h <<\_ACEOF
43845#define wxUSE_SPLASH 1
43846_ACEOF
43847
2057db16 43848 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
43849fi
43850
43851if test "$wxUSE_STARTUP_TIPS" = "yes"; then
43852 if test "$wxUSE_CONSTRAINTS" != "yes"; then
43853 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
43854echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
43855 else
43856 cat >>confdefs.h <<\_ACEOF
43857#define wxUSE_STARTUP_TIPS 1
43858_ACEOF
43859
43860 fi
43861fi
43862
43863if test "$wxUSE_TEXTDLG" = "yes"; then
43864 cat >>confdefs.h <<\_ACEOF
43865#define wxUSE_TEXTDLG 1
43866_ACEOF
43867
43868fi
43869
43870if test "$wxUSE_WIZARDDLG" = "yes"; then
43871 cat >>confdefs.h <<\_ACEOF
43872#define wxUSE_WIZARDDLG 1
43873_ACEOF
43874
43875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
43876fi
43877
43878
ce756cb0 43879if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
43880 if test "$wxUSE_GTK" = 1; then
43881 wxUSE_GSTREAMER="yes"
43882
ce756cb0 43883
dae87f93 43884 succeeded=no
ce756cb0 43885
dae87f93
RN
43886 if test -z "$PKG_CONFIG"; then
43887 # Extract the first word of "pkg-config", so it can be a program name with args.
43888set dummy pkg-config; ac_word=$2
43889echo "$as_me:$LINENO: checking for $ac_word" >&5
43890echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43891if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
43892 echo $ECHO_N "(cached) $ECHO_C" >&6
43893else
43894 case $PKG_CONFIG in
43895 [\\/]* | ?:[\\/]*)
43896 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
43897 ;;
43898 *)
43899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43900for as_dir in $PATH
43901do
43902 IFS=$as_save_IFS
43903 test -z "$as_dir" && as_dir=.
43904 for ac_exec_ext in '' $ac_executable_extensions; do
43905 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43906 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
43907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43908 break 2
43909 fi
43910done
43911done
43912
43913 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
43914 ;;
43915esac
43916fi
43917PKG_CONFIG=$ac_cv_path_PKG_CONFIG
43918
43919if test -n "$PKG_CONFIG"; then
43920 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
43921echo "${ECHO_T}$PKG_CONFIG" >&6
43922else
43923 echo "$as_me:$LINENO: result: no" >&5
43924echo "${ECHO_T}no" >&6
43925fi
43926
43927 fi
43928
43929 if test "$PKG_CONFIG" = "no" ; then
43930 echo "*** The pkg-config script could not be found. Make sure it is"
43931 echo "*** in your path, or set the PKG_CONFIG environment variable"
43932 echo "*** to the full path to pkg-config."
43933 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
43934 else
43935 PKG_CONFIG_MIN_VERSION=0.9.0
43936 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
43937 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
43938echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
43939
43940 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
43941 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 43942echo "${ECHO_T}yes" >&6
dae87f93 43943 succeeded=yes
ce756cb0 43944
dae87f93
RN
43945 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
43946echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
43947 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
43948 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
43949echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
43950
43951 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
43952echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
43953 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
43954 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
43955echo "${ECHO_T}$GSTREAMER_LIBS" >&6
43956 else
43957 GSTREAMER_CFLAGS=""
43958 GSTREAMER_LIBS=""
43959 ## If we have a custom action on failure, don't print errors, but
43960 ## do set a variable so people can do so.
43961 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 43962
dae87f93
RN
43963 fi
43964
43965
43966
43967 else
43968 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
43969 echo "*** See http://www.freedesktop.org/software/pkgconfig"
43970 fi
43971 fi
43972
43973 if test $succeeded = yes; then
43974
c92ad099 43975 CPPFLAGS="$GSTREAMER_CFLAGS $CPPFLAGS"
dae87f93 43976 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 43977
ce756cb0 43978 else
dae87f93
RN
43979
43980 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
43981echo "$as_me: WARNING: GStreamer installation not found" >&2;}
43982 wxUSE_GSTREAMER="no"
43983
43984 fi
43985
43986
43987
43988
43989
43990 if test "x$GST_INSPECT" == "x"; then
43991 # Extract the first word of "gst-inspect", so it can be a program name with args.
43992set dummy gst-inspect; ac_word=$2
43993echo "$as_me:$LINENO: checking for $ac_word" >&5
43994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43995if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
43996 echo $ECHO_N "(cached) $ECHO_C" >&6
43997else
43998 if test -n "$GST_INSPECT"; then
43999 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
44000else
44001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44002for as_dir in $PATH
44003do
44004 IFS=$as_save_IFS
44005 test -z "$as_dir" && as_dir=.
44006 for ac_exec_ext in '' $ac_executable_extensions; do
44007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44008 ac_cv_prog_GST_INSPECT="gst-inspect"
44009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44010 break 2
ce756cb0 44011 fi
dae87f93
RN
44012done
44013done
44014
44015fi
44016fi
44017GST_INSPECT=$ac_cv_prog_GST_INSPECT
44018if test -n "$GST_INSPECT"; then
44019 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
44020echo "${ECHO_T}$GST_INSPECT" >&6
44021else
44022 echo "$as_me:$LINENO: result: no" >&5
44023echo "${ECHO_T}no" >&6
44024fi
44025
44026 fi
44027
44028 if test "x$GST_INSPECT" != "x"; then
44029 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
44030echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
44031 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
44032 echo "$as_me:$LINENO: result: found." >&5
44033echo "${ECHO_T}found." >&6
ce756cb0 44034
ce756cb0 44035 else
dae87f93
RN
44036 echo "$as_me:$LINENO: result: not found." >&5
44037echo "${ECHO_T}not found." >&6
44038
44039 wxUSE_GSTREAMER="no"
44040 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
44041echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
44042
44043 fi
44044 fi
44045
44046
44047 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
44048echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
44049if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
44050 echo $ECHO_N "(cached) $ECHO_C" >&6
44051else
44052 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
44053/* confdefs.h. */
44054_ACEOF
44055cat confdefs.h >>conftest.$ac_ext
44056cat >>conftest.$ac_ext <<_ACEOF
44057/* end confdefs.h. */
dae87f93 44058#include <gst/gst.h>
ce756cb0 44059
dae87f93 44060#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
44061_ACEOF
44062rm -f conftest.$ac_objext
44063if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44064 (eval $ac_compile) 2>conftest.er1
44065 ac_status=$?
44066 grep -v '^ *+' conftest.er1 >conftest.err
44067 rm -f conftest.er1
44068 cat conftest.err >&5
44069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44070 (exit $ac_status); } &&
5ff751d6 44071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
44072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44073 (eval $ac_try) 2>&5
44074 ac_status=$?
44075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44076 (exit $ac_status); }; } &&
44077 { ac_try='test -s conftest.$ac_objext'
44078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44079 (eval $ac_try) 2>&5
44080 ac_status=$?
44081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44082 (exit $ac_status); }; }; then
dae87f93 44083 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
44084else
44085 echo "$as_me: failed program was:" >&5
44086sed 's/^/| /' conftest.$ac_ext >&5
44087
dae87f93 44088ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
44089fi
44090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
44091fi
44092echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
44093echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
44094if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
44095 :
44096else
ce756cb0 44097
dae87f93
RN
44098 wxUSE_GSTREAMER="no"
44099 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
44100echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 44101
dae87f93 44102fi
ce756cb0 44103
dae87f93
RN
44104
44105
44106 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
44107echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
44108
0ad5d837
VZ
44109 ac_find_libraries=
44110 for ac_dir in $SEARCH_LIB;
ce756cb0 44111 do
3eca31dc 44112 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
44113 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
44114 ac_find_libraries=$ac_dir
44115 break 2
44116 fi
44117 done
44118 done
44119
ce756cb0 44120
dae87f93
RN
44121 if test "$ac_find_libraries" = "" ; then
44122 echo "$as_me:$LINENO: result: no" >&5
44123echo "${ECHO_T}no" >&6
44124 wxUSE_GSTREAMER="no"
44125 else
44126 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 44127echo "${ECHO_T}yes" >&6
dae87f93 44128 fi
ce756cb0 44129
dae87f93
RN
44130 if test "$wxUSE_GSTREAMER" = "yes"; then
44131 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
44132#define wxUSE_GSTREAMER 1
44133_ACEOF
44134
dae87f93
RN
44135 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
44136echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
44137 fi
44138 fi
44139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
44140 cat >>confdefs.h <<\_ACEOF
44141#define wxUSE_MEDIACTRL 1
44142_ACEOF
44143
44144fi
44145
44146
a848cd7e
SC
44147if test "$cross_compiling" = "yes"; then
44148 OSINFO="\"$host\""
44149else
44150 OSINFO=`uname -s -r -m`
44151 OSINFO="\"$OSINFO\""
44152fi
44153
44154cat >>confdefs.h <<_ACEOF
44155#define WXWIN_OS_DESCRIPTION $OSINFO
44156_ACEOF
44157
44158
44159
44160if test "x$prefix" != "xNONE"; then
44161 wxPREFIX=$prefix
44162else
44163 wxPREFIX=$ac_default_prefix
44164fi
44165
44166cat >>confdefs.h <<_ACEOF
44167#define wxINSTALL_PREFIX "$wxPREFIX"
44168_ACEOF
44169
44170
a848cd7e
SC
44171
44172
44173CORE_BASE_LIBS="net base"
44174CORE_GUI_LIBS="adv core"
44175
44176if test "$wxUSE_XML" = "yes" ; then
44177 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
44178fi
44179if test "$wxUSE_ODBC" != "no" ; then
44180 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
44181 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
44182fi
44183if test "$wxUSE_HTML" = "yes" ; then
44184 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
44185fi
61639efb
VZ
44186if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44187 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
44188fi
9a8f0513
VS
44189if test "$wxUSE_XRC" = "yes" ; then
44190 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
44191fi
a848cd7e
SC
44192
44193if test "$wxUSE_GUI" != "yes"; then
44194 CORE_GUI_LIBS=""
44195fi
44196
44197
44198
44199
44200
44201
44202
44203
44204if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 44205 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
44206 if test "$USE_DARWIN" = 1; then
44207 LDFLAGS="$LDFLAGS -framework QuickTime"
44208 else
44209 LDFLAGS="$LDFLAGS -lQuickTimeLib"
44210 fi
07bea8f0 44211 fi
5dcf30a0 44212 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
44213 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
44214 else
44215 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 44216 fi
a848cd7e
SC
44217fi
44218if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 44219 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
44220 if test "$wxUSE_MEDIACTRL" = "yes"; then
44221 LDFLAGS="$LDFLAGS -framework QuickTime"
44222 fi
a848cd7e 44223fi
19b27e78
MW
44224if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
44225 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
44226fi
a848cd7e
SC
44227
44228
44229LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
44230
44231have_cos=0
44232have_floor=0
44233
44234for ac_func in cos
44235do
44236as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44237echo "$as_me:$LINENO: checking for $ac_func" >&5
44238echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44239if eval "test \"\${$as_ac_var+set}\" = set"; then
44240 echo $ECHO_N "(cached) $ECHO_C" >&6
44241else
44242 cat >conftest.$ac_ext <<_ACEOF
44243/* confdefs.h. */
44244_ACEOF
44245cat confdefs.h >>conftest.$ac_ext
44246cat >>conftest.$ac_ext <<_ACEOF
44247/* end confdefs.h. */
ac1cb8d3
VS
44248/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44250#define $ac_func innocuous_$ac_func
44251
a848cd7e
SC
44252/* System header to define __stub macros and hopefully few prototypes,
44253 which can conflict with char $ac_func (); below.
44254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44255 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44256
a848cd7e
SC
44257#ifdef __STDC__
44258# include <limits.h>
44259#else
44260# include <assert.h>
44261#endif
ac1cb8d3
VS
44262
44263#undef $ac_func
44264
a848cd7e
SC
44265/* Override any gcc2 internal prototype to avoid an error. */
44266#ifdef __cplusplus
44267extern "C"
44268{
44269#endif
44270/* We use char because int might match the return type of a gcc2
44271 builtin and then its argument prototype would still apply. */
44272char $ac_func ();
44273/* The GNU C library defines this for functions which it implements
44274 to always fail with ENOSYS. Some functions are actually named
44275 something starting with __ and the normal name is an alias. */
44276#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44277choke me
44278#else
44279char (*f) () = $ac_func;
44280#endif
44281#ifdef __cplusplus
44282}
44283#endif
44284
44285int
44286main ()
44287{
44288return f != $ac_func;
44289 ;
44290 return 0;
44291}
44292_ACEOF
44293rm -f conftest.$ac_objext conftest$ac_exeext
44294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44295 (eval $ac_link) 2>conftest.er1
a848cd7e 44296 ac_status=$?
ac1cb8d3
VS
44297 grep -v '^ *+' conftest.er1 >conftest.err
44298 rm -f conftest.er1
44299 cat conftest.err >&5
a848cd7e
SC
44300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44301 (exit $ac_status); } &&
5ff751d6 44302 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44304 (eval $ac_try) 2>&5
44305 ac_status=$?
44306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44307 (exit $ac_status); }; } &&
44308 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44310 (eval $ac_try) 2>&5
44311 ac_status=$?
44312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44313 (exit $ac_status); }; }; then
44314 eval "$as_ac_var=yes"
44315else
44316 echo "$as_me: failed program was:" >&5
44317sed 's/^/| /' conftest.$ac_ext >&5
44318
44319eval "$as_ac_var=no"
44320fi
ac1cb8d3
VS
44321rm -f conftest.err conftest.$ac_objext \
44322 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44323fi
44324echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44325echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44326if test `eval echo '${'$as_ac_var'}'` = yes; then
44327 cat >>confdefs.h <<_ACEOF
44328#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44329_ACEOF
44330 have_cos=1
44331fi
44332done
44333
44334
44335for ac_func in floor
44336do
44337as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44338echo "$as_me:$LINENO: checking for $ac_func" >&5
44339echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44340if eval "test \"\${$as_ac_var+set}\" = set"; then
44341 echo $ECHO_N "(cached) $ECHO_C" >&6
44342else
44343 cat >conftest.$ac_ext <<_ACEOF
44344/* confdefs.h. */
44345_ACEOF
44346cat confdefs.h >>conftest.$ac_ext
44347cat >>conftest.$ac_ext <<_ACEOF
44348/* end confdefs.h. */
ac1cb8d3
VS
44349/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44351#define $ac_func innocuous_$ac_func
44352
a848cd7e
SC
44353/* System header to define __stub macros and hopefully few prototypes,
44354 which can conflict with char $ac_func (); below.
44355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44356 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44357
a848cd7e
SC
44358#ifdef __STDC__
44359# include <limits.h>
44360#else
44361# include <assert.h>
44362#endif
ac1cb8d3
VS
44363
44364#undef $ac_func
44365
a848cd7e
SC
44366/* Override any gcc2 internal prototype to avoid an error. */
44367#ifdef __cplusplus
44368extern "C"
44369{
44370#endif
44371/* We use char because int might match the return type of a gcc2
44372 builtin and then its argument prototype would still apply. */
44373char $ac_func ();
44374/* The GNU C library defines this for functions which it implements
44375 to always fail with ENOSYS. Some functions are actually named
44376 something starting with __ and the normal name is an alias. */
44377#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44378choke me
44379#else
44380char (*f) () = $ac_func;
44381#endif
44382#ifdef __cplusplus
44383}
44384#endif
44385
44386int
44387main ()
44388{
44389return f != $ac_func;
44390 ;
44391 return 0;
44392}
44393_ACEOF
44394rm -f conftest.$ac_objext conftest$ac_exeext
44395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44396 (eval $ac_link) 2>conftest.er1
a848cd7e 44397 ac_status=$?
ac1cb8d3
VS
44398 grep -v '^ *+' conftest.er1 >conftest.err
44399 rm -f conftest.er1
44400 cat conftest.err >&5
a848cd7e
SC
44401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44402 (exit $ac_status); } &&
5ff751d6 44403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44405 (eval $ac_try) 2>&5
44406 ac_status=$?
44407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44408 (exit $ac_status); }; } &&
44409 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44411 (eval $ac_try) 2>&5
44412 ac_status=$?
44413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44414 (exit $ac_status); }; }; then
44415 eval "$as_ac_var=yes"
44416else
44417 echo "$as_me: failed program was:" >&5
44418sed 's/^/| /' conftest.$ac_ext >&5
44419
44420eval "$as_ac_var=no"
44421fi
ac1cb8d3
VS
44422rm -f conftest.err conftest.$ac_objext \
44423 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44424fi
44425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44426echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44427if test `eval echo '${'$as_ac_var'}'` = yes; then
44428 cat >>confdefs.h <<_ACEOF
44429#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44430_ACEOF
44431 have_floor=1
44432fi
44433done
44434
44435echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
44436echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
44437if test "$have_cos" = 1 -a "$have_floor" = 1; then
44438 echo "$as_me:$LINENO: result: yes" >&5
44439echo "${ECHO_T}yes" >&6
44440else
44441 echo "$as_me:$LINENO: result: no" >&5
44442echo "${ECHO_T}no" >&6
44443 LIBS="$LIBS -lm"
44444 # use different functions to avoid configure caching
44445 have_sin=0
44446 have_ceil=0
44447
44448for ac_func in sin
44449do
44450as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44451echo "$as_me:$LINENO: checking for $ac_func" >&5
44452echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44453if eval "test \"\${$as_ac_var+set}\" = set"; then
44454 echo $ECHO_N "(cached) $ECHO_C" >&6
44455else
44456 cat >conftest.$ac_ext <<_ACEOF
44457/* confdefs.h. */
44458_ACEOF
44459cat confdefs.h >>conftest.$ac_ext
44460cat >>conftest.$ac_ext <<_ACEOF
44461/* end confdefs.h. */
ac1cb8d3
VS
44462/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44464#define $ac_func innocuous_$ac_func
44465
a848cd7e
SC
44466/* System header to define __stub macros and hopefully few prototypes,
44467 which can conflict with char $ac_func (); below.
44468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44469 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44470
a848cd7e
SC
44471#ifdef __STDC__
44472# include <limits.h>
44473#else
44474# include <assert.h>
44475#endif
ac1cb8d3
VS
44476
44477#undef $ac_func
44478
a848cd7e
SC
44479/* Override any gcc2 internal prototype to avoid an error. */
44480#ifdef __cplusplus
44481extern "C"
44482{
44483#endif
44484/* We use char because int might match the return type of a gcc2
44485 builtin and then its argument prototype would still apply. */
44486char $ac_func ();
44487/* The GNU C library defines this for functions which it implements
44488 to always fail with ENOSYS. Some functions are actually named
44489 something starting with __ and the normal name is an alias. */
44490#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44491choke me
44492#else
44493char (*f) () = $ac_func;
44494#endif
44495#ifdef __cplusplus
44496}
44497#endif
44498
44499int
44500main ()
44501{
44502return f != $ac_func;
44503 ;
44504 return 0;
44505}
44506_ACEOF
44507rm -f conftest.$ac_objext conftest$ac_exeext
44508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44509 (eval $ac_link) 2>conftest.er1
a848cd7e 44510 ac_status=$?
ac1cb8d3
VS
44511 grep -v '^ *+' conftest.er1 >conftest.err
44512 rm -f conftest.er1
44513 cat conftest.err >&5
a848cd7e
SC
44514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44515 (exit $ac_status); } &&
5ff751d6 44516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44518 (eval $ac_try) 2>&5
44519 ac_status=$?
44520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44521 (exit $ac_status); }; } &&
44522 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44524 (eval $ac_try) 2>&5
44525 ac_status=$?
44526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44527 (exit $ac_status); }; }; then
44528 eval "$as_ac_var=yes"
44529else
44530 echo "$as_me: failed program was:" >&5
44531sed 's/^/| /' conftest.$ac_ext >&5
44532
44533eval "$as_ac_var=no"
44534fi
ac1cb8d3
VS
44535rm -f conftest.err conftest.$ac_objext \
44536 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44537fi
44538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44539echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44540if test `eval echo '${'$as_ac_var'}'` = yes; then
44541 cat >>confdefs.h <<_ACEOF
44542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44543_ACEOF
44544 have_sin=1
44545fi
44546done
44547
44548
44549for ac_func in ceil
44550do
44551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44552echo "$as_me:$LINENO: checking for $ac_func" >&5
44553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
44554if eval "test \"\${$as_ac_var+set}\" = set"; then
44555 echo $ECHO_N "(cached) $ECHO_C" >&6
44556else
44557 cat >conftest.$ac_ext <<_ACEOF
44558/* confdefs.h. */
44559_ACEOF
44560cat confdefs.h >>conftest.$ac_ext
44561cat >>conftest.$ac_ext <<_ACEOF
44562/* end confdefs.h. */
ac1cb8d3
VS
44563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44565#define $ac_func innocuous_$ac_func
44566
a848cd7e
SC
44567/* System header to define __stub macros and hopefully few prototypes,
44568 which can conflict with char $ac_func (); below.
44569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44570 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 44571
a848cd7e
SC
44572#ifdef __STDC__
44573# include <limits.h>
44574#else
44575# include <assert.h>
44576#endif
ac1cb8d3
VS
44577
44578#undef $ac_func
44579
a848cd7e
SC
44580/* Override any gcc2 internal prototype to avoid an error. */
44581#ifdef __cplusplus
44582extern "C"
44583{
44584#endif
44585/* We use char because int might match the return type of a gcc2
44586 builtin and then its argument prototype would still apply. */
44587char $ac_func ();
44588/* The GNU C library defines this for functions which it implements
44589 to always fail with ENOSYS. Some functions are actually named
44590 something starting with __ and the normal name is an alias. */
44591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
44592choke me
44593#else
44594char (*f) () = $ac_func;
44595#endif
44596#ifdef __cplusplus
44597}
44598#endif
44599
44600int
44601main ()
44602{
44603return f != $ac_func;
44604 ;
44605 return 0;
44606}
44607_ACEOF
44608rm -f conftest.$ac_objext conftest$ac_exeext
44609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 44610 (eval $ac_link) 2>conftest.er1
a848cd7e 44611 ac_status=$?
ac1cb8d3
VS
44612 grep -v '^ *+' conftest.er1 >conftest.err
44613 rm -f conftest.er1
44614 cat conftest.err >&5
a848cd7e
SC
44615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44616 (exit $ac_status); } &&
5ff751d6 44617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44619 (eval $ac_try) 2>&5
44620 ac_status=$?
44621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44622 (exit $ac_status); }; } &&
44623 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
44624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44625 (eval $ac_try) 2>&5
44626 ac_status=$?
44627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44628 (exit $ac_status); }; }; then
44629 eval "$as_ac_var=yes"
44630else
44631 echo "$as_me: failed program was:" >&5
44632sed 's/^/| /' conftest.$ac_ext >&5
44633
44634eval "$as_ac_var=no"
44635fi
ac1cb8d3
VS
44636rm -f conftest.err conftest.$ac_objext \
44637 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
44638fi
44639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
44640echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
44641if test `eval echo '${'$as_ac_var'}'` = yes; then
44642 cat >>confdefs.h <<_ACEOF
44643#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44644_ACEOF
44645 have_ceil=1
44646fi
44647done
44648
44649 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
44650echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
44651 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
44652 echo "$as_me:$LINENO: result: yes" >&5
44653echo "${ECHO_T}yes" >&6
44654 else
44655 echo "$as_me:$LINENO: result: no" >&5
44656echo "${ECHO_T}no" >&6
44657 # not sure we should warn the user, crash, etc.
44658 fi
44659fi
44660
44661if test "$wxUSE_GUI" = "yes"; then
44662
44663
8bce5cda
MW
44664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
44665 dynamic erase event exec font image minimal mobile \
44666 mobile/wxedit mobile/styles propsize render \
44667 richedit rotate shaped vscroll widgets"
a848cd7e
SC
44668
44669 if test "$wxUSE_MONOLITHIC" != "yes"; then
44670 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
44671 fi
0b78747f 44672 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
44673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
44674 if test "$wxUSE_UNIVERSAL" != "yes"; then
44675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
44676 fi
44677 fi
44678 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
44679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 44680 fi
a848cd7e
SC
44681else
44682 SAMPLES_SUBDIRS="console"
44683fi
44684
44685
48f625bc 44686if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
44687 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
44688elif test "$GCC" = yes ; then
44689 CWARNINGS="-Wall -Wundef"
44690fi
44691
48f625bc 44692if test "x$INTELCXX" = "xyes" ; then
7f47faf4 44693 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
44694elif test "$GXX" = yes ; then
44695 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 44696fi
a848cd7e 44697
a848cd7e 44698
5ff751d6
VZ
44699WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
44700WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
44701
44702
c92ad099 44703CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
bc6ee4ae 44704 -I\\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
c92ad099
VZ
44705 -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
44706 $CPPFLAGS `
5ff751d6 44707
8aeeb05c 44708C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
c92ad099 44709CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
9cbac6d1 44710CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXWARNINGS $C_AND_CXX_FLAGS $CXXFLAGS `
5ff751d6
VZ
44711
44712WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
44713
a848cd7e 44714
95986553
DE
44715if test "x$MWCC" = "xyes"; then
44716
44717 CC="$CC -cwd source -I-"
44718 CXX="$CXX -cwd source -I-"
44719fi
44720
a848cd7e 44721
0c3c69fc 44722LIBS=`echo $LIBS`
a848cd7e
SC
44723EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
44724EXTRALIBS_XML="$EXPAT_LINK"
44725EXTRALIBS_HTML="$MSPACK_LINK"
44726EXTRALIBS_ODBC="$ODBC_LINK"
44727if test "$wxUSE_GUI" = "yes"; then
2e350179 44728 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
44729fi
44730if test "$wxUSE_OPENGL" = "yes"; then
44731 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
44732fi
44733
8aeeb05c 44734LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
a848cd7e 44735
5ff751d6 44736WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
44737
44738if test "$wxUSE_REGEX" = "builtin" ; then
74802184 44739 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
44740fi
44741if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 44742 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
44743fi
44744if test "$wxUSE_ODBC" = "builtin" ; then
74802184 44745 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
44746fi
44747if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 44748 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
44749fi
44750if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 44751 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
44752fi
44753if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 44754 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
44755fi
44756if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 44757 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
44758fi
44759
44760for i in $wxconfig_3rdparty ; do
5ff751d6 44761 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
44762done
44763
44764
44765if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
44766 WXUNIV=1
44767else
44768 WXUNIV=0
44769fi
44770
44771
44772
44773
44774
44775
44776
44777
44778
44779if test $wxUSE_MONOLITHIC = "yes" ; then
44780 MONOLITHIC=1
44781else
44782 MONOLITHIC=0
44783fi
44784
44785if test $wxUSE_PLUGINS = "yes" ; then
44786 USE_PLUGINS=1
44787else
44788 USE_PLUGINS=0
44789fi
44790
44791if test $wxUSE_ODBC != "no" ; then
44792 USE_ODBC=1
44793else
44794 USE_ODBC=0
44795fi
44796
16358932
VZ
44797if test "$wxUSE_DEBUGREPORT" = "yes" ; then
44798 USE_QA=1
44799else
44800 USE_QA=0
44801fi
44802
a848cd7e
SC
44803if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
44804 OFFICIAL_BUILD=1
44805else
44806 OFFICIAL_BUILD=0
44807fi
44808
44809
44810
44811
44812
44813
44814
44815
44816
44817
44818
44819
44820
44821
44822
44823
44824
44825
44826
ceec2216 44827
d1c38808 44828
a848cd7e
SC
44829
44830
44831TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
44832
44833
44834
44835
44836
44837
44838
44839
4d4ff94c
VZ
44840case "$TOOLKIT" in
44841 GTK)
44842 TOOLKIT_USER="GTK+"
44843 if test "$WXGTK20" = 1; then
44844 TOOLKIT_USER="$TOOLKIT_USER 2"
44845 fi
9a8f0513 44846 ;;
4d4ff94c
VZ
44847
44848 *)
44849 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 44850 ;;
4d4ff94c 44851esac
a848cd7e 44852
fb00f58d
JS
44853if test "$wxUSE_WINE" = "yes"; then
44854 BAKEFILE_FORCE_PLATFORM=win32
44855fi
44856
9a8f0513 44857
1e9e8aba
DE
44858
44859
a848cd7e
SC
44860 if test "x$BAKEFILE_HOST" = "x"; then
44861 BAKEFILE_HOST="${host}"
44862 fi
44863
44864 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
44865
44866 if test -n "$ac_tool_prefix"; then
44867 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
44868set dummy ${ac_tool_prefix}ranlib; ac_word=$2
44869echo "$as_me:$LINENO: checking for $ac_word" >&5
44870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44871if test "${ac_cv_prog_RANLIB+set}" = set; then
44872 echo $ECHO_N "(cached) $ECHO_C" >&6
44873else
44874 if test -n "$RANLIB"; then
44875 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
44876else
44877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44878for as_dir in $PATH
44879do
44880 IFS=$as_save_IFS
44881 test -z "$as_dir" && as_dir=.
44882 for ac_exec_ext in '' $ac_executable_extensions; do
44883 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44884 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
44885 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44886 break 2
44887 fi
44888done
44889done
44890
44891fi
44892fi
44893RANLIB=$ac_cv_prog_RANLIB
44894if test -n "$RANLIB"; then
44895 echo "$as_me:$LINENO: result: $RANLIB" >&5
44896echo "${ECHO_T}$RANLIB" >&6
44897else
44898 echo "$as_me:$LINENO: result: no" >&5
44899echo "${ECHO_T}no" >&6
44900fi
44901
44902fi
44903if test -z "$ac_cv_prog_RANLIB"; then
44904 ac_ct_RANLIB=$RANLIB
44905 # Extract the first word of "ranlib", so it can be a program name with args.
44906set dummy ranlib; ac_word=$2
44907echo "$as_me:$LINENO: checking for $ac_word" >&5
44908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44909if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
44910 echo $ECHO_N "(cached) $ECHO_C" >&6
44911else
44912 if test -n "$ac_ct_RANLIB"; then
44913 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
44914else
44915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44916for as_dir in $PATH
44917do
44918 IFS=$as_save_IFS
44919 test -z "$as_dir" && as_dir=.
44920 for ac_exec_ext in '' $ac_executable_extensions; do
44921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44922 ac_cv_prog_ac_ct_RANLIB="ranlib"
44923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44924 break 2
44925 fi
44926done
44927done
44928
44929 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
44930fi
44931fi
44932ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
44933if test -n "$ac_ct_RANLIB"; then
44934 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
44935echo "${ECHO_T}$ac_ct_RANLIB" >&6
44936else
44937 echo "$as_me:$LINENO: result: no" >&5
44938echo "${ECHO_T}no" >&6
44939fi
44940
44941 RANLIB=$ac_ct_RANLIB
44942else
44943 RANLIB="$ac_cv_prog_RANLIB"
44944fi
44945
44946 # Find a good install program. We prefer a C program (faster),
44947# so one script is as good as another. But avoid the broken or
44948# incompatible versions:
44949# SysV /etc/install, /usr/sbin/install
44950# SunOS /usr/etc/install
44951# IRIX /sbin/install
44952# AIX /bin/install
44953# AmigaOS /C/install, which installs bootblocks on floppy discs
44954# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
44955# AFS /usr/afsws/bin/install, which mishandles nonexistent args
44956# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 44957# OS/2's system install, which has a completely different semantic
a848cd7e
SC
44958# ./install, which can be erroneously created by make from ./install.sh.
44959echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
44960echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
44961if test -z "$INSTALL"; then
44962if test "${ac_cv_path_install+set}" = set; then
44963 echo $ECHO_N "(cached) $ECHO_C" >&6
44964else
44965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44966for as_dir in $PATH
44967do
44968 IFS=$as_save_IFS
44969 test -z "$as_dir" && as_dir=.
44970 # Account for people who put trailing slashes in PATH elements.
44971case $as_dir/ in
44972 ./ | .// | /cC/* | \
44973 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 44974 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
44975 /usr/ucb/* ) ;;
44976 *)
44977 # OSF1 and SCO ODT 3.0 have their own names for install.
44978 # Don't use installbsd from OSF since it installs stuff as root
44979 # by default.
44980 for ac_prog in ginstall scoinst install; do
44981 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
44982 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
44983 if test $ac_prog = install &&
44984 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
44985 # AIX install. It has an incompatible calling convention.
44986 :
44987 elif test $ac_prog = install &&
44988 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
44989 # program-specific install script used by HP pwplus--don't use.
44990 :
44991 else
44992 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
44993 break 3
44994 fi
44995 fi
a848cd7e
SC
44996 done
44997 done
44998 ;;
44999esac
45000done
45001
45002
45003fi
45004 if test "${ac_cv_path_install+set}" = set; then
45005 INSTALL=$ac_cv_path_install
45006 else
45007 # As a last resort, use the slow shell script. We don't cache a
45008 # path for INSTALL within a source directory, because that will
45009 # break other packages using the cache if that directory is
45010 # removed, or if the path is relative.
45011 INSTALL=$ac_install_sh
45012 fi
45013fi
45014echo "$as_me:$LINENO: result: $INSTALL" >&5
45015echo "${ECHO_T}$INSTALL" >&6
45016
45017# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
45018# It thinks the first close brace ends the variable substitution.
45019test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
45020
45021test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
45022
45023test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
45024
45025 echo "$as_me:$LINENO: checking whether ln -s works" >&5
45026echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
45027LN_S=$as_ln_s
45028if test "$LN_S" = "ln -s"; then
45029 echo "$as_me:$LINENO: result: yes" >&5
45030echo "${ECHO_T}yes" >&6
45031else
45032 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
45033echo "${ECHO_T}no, using $LN_S" >&6
45034fi
45035
45036
45037 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
45038echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 45039set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
45040if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
45041 echo $ECHO_N "(cached) $ECHO_C" >&6
45042else
45043 cat >conftest.make <<\_ACEOF
45044all:
45045 @echo 'ac_maketemp="$(MAKE)"'
45046_ACEOF
45047# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
45048eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
45049if test -n "$ac_maketemp"; then
45050 eval ac_cv_prog_make_${ac_make}_set=yes
45051else
45052 eval ac_cv_prog_make_${ac_make}_set=no
45053fi
45054rm -f conftest.make
45055fi
45056if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
45057 echo "$as_me:$LINENO: result: yes" >&5
45058echo "${ECHO_T}yes" >&6
45059 SET_MAKE=
45060else
45061 echo "$as_me:$LINENO: result: no" >&5
45062echo "${ECHO_T}no" >&6
45063 SET_MAKE="MAKE=${MAKE-make}"
45064fi
45065
45066
45067
45068 if test -n "$ac_tool_prefix"; then
45069 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
45070set dummy ${ac_tool_prefix}ar; ac_word=$2
45071echo "$as_me:$LINENO: checking for $ac_word" >&5
45072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45073if test "${ac_cv_prog_AR+set}" = set; then
45074 echo $ECHO_N "(cached) $ECHO_C" >&6
45075else
45076 if test -n "$AR"; then
45077 ac_cv_prog_AR="$AR" # Let the user override the test.
45078else
45079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45080for as_dir in $PATH
45081do
45082 IFS=$as_save_IFS
45083 test -z "$as_dir" && as_dir=.
45084 for ac_exec_ext in '' $ac_executable_extensions; do
45085 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45086 ac_cv_prog_AR="${ac_tool_prefix}ar"
45087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45088 break 2
45089 fi
45090done
45091done
45092
45093fi
45094fi
45095AR=$ac_cv_prog_AR
45096if test -n "$AR"; then
45097 echo "$as_me:$LINENO: result: $AR" >&5
45098echo "${ECHO_T}$AR" >&6
45099else
45100 echo "$as_me:$LINENO: result: no" >&5
45101echo "${ECHO_T}no" >&6
45102fi
45103
45104fi
45105if test -z "$ac_cv_prog_AR"; then
45106 ac_ct_AR=$AR
45107 # Extract the first word of "ar", so it can be a program name with args.
45108set dummy ar; ac_word=$2
45109echo "$as_me:$LINENO: checking for $ac_word" >&5
45110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45111if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
45112 echo $ECHO_N "(cached) $ECHO_C" >&6
45113else
45114 if test -n "$ac_ct_AR"; then
45115 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
45116else
45117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45118for as_dir in $PATH
45119do
45120 IFS=$as_save_IFS
45121 test -z "$as_dir" && as_dir=.
45122 for ac_exec_ext in '' $ac_executable_extensions; do
45123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45124 ac_cv_prog_ac_ct_AR="ar"
45125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45126 break 2
45127 fi
45128done
45129done
45130
45131 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
45132fi
45133fi
45134ac_ct_AR=$ac_cv_prog_ac_ct_AR
45135if test -n "$ac_ct_AR"; then
45136 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
45137echo "${ECHO_T}$ac_ct_AR" >&6
45138else
45139 echo "$as_me:$LINENO: result: no" >&5
45140echo "${ECHO_T}no" >&6
45141fi
45142
45143 AR=$ac_ct_AR
45144else
45145 AR="$ac_cv_prog_AR"
45146fi
45147
45148 if test -n "$ac_tool_prefix"; then
45149 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
45150set dummy ${ac_tool_prefix}strip; ac_word=$2
45151echo "$as_me:$LINENO: checking for $ac_word" >&5
45152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45153if test "${ac_cv_prog_STRIP+set}" = set; then
45154 echo $ECHO_N "(cached) $ECHO_C" >&6
45155else
45156 if test -n "$STRIP"; then
45157 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
45158else
45159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45160for as_dir in $PATH
45161do
45162 IFS=$as_save_IFS
45163 test -z "$as_dir" && as_dir=.
45164 for ac_exec_ext in '' $ac_executable_extensions; do
45165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45166 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
45167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45168 break 2
45169 fi
45170done
45171done
45172
45173fi
45174fi
45175STRIP=$ac_cv_prog_STRIP
45176if test -n "$STRIP"; then
45177 echo "$as_me:$LINENO: result: $STRIP" >&5
45178echo "${ECHO_T}$STRIP" >&6
45179else
45180 echo "$as_me:$LINENO: result: no" >&5
45181echo "${ECHO_T}no" >&6
45182fi
45183
45184fi
45185if test -z "$ac_cv_prog_STRIP"; then
45186 ac_ct_STRIP=$STRIP
45187 # Extract the first word of "strip", so it can be a program name with args.
45188set dummy strip; ac_word=$2
45189echo "$as_me:$LINENO: checking for $ac_word" >&5
45190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45191if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
45192 echo $ECHO_N "(cached) $ECHO_C" >&6
45193else
45194 if test -n "$ac_ct_STRIP"; then
45195 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
45196else
45197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45198for as_dir in $PATH
45199do
45200 IFS=$as_save_IFS
45201 test -z "$as_dir" && as_dir=.
45202 for ac_exec_ext in '' $ac_executable_extensions; do
45203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45204 ac_cv_prog_ac_ct_STRIP="strip"
45205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45206 break 2
45207 fi
45208done
45209done
45210
45211 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
45212fi
45213fi
45214ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
45215if test -n "$ac_ct_STRIP"; then
45216 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
45217echo "${ECHO_T}$ac_ct_STRIP" >&6
45218else
45219 echo "$as_me:$LINENO: result: no" >&5
45220echo "${ECHO_T}no" >&6
45221fi
45222
45223 STRIP=$ac_ct_STRIP
45224else
45225 STRIP="$ac_cv_prog_STRIP"
45226fi
45227
45228 if test -n "$ac_tool_prefix"; then
45229 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
45230set dummy ${ac_tool_prefix}nm; ac_word=$2
45231echo "$as_me:$LINENO: checking for $ac_word" >&5
45232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45233if test "${ac_cv_prog_NM+set}" = set; then
45234 echo $ECHO_N "(cached) $ECHO_C" >&6
45235else
45236 if test -n "$NM"; then
45237 ac_cv_prog_NM="$NM" # Let the user override the test.
45238else
45239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45240for as_dir in $PATH
45241do
45242 IFS=$as_save_IFS
45243 test -z "$as_dir" && as_dir=.
45244 for ac_exec_ext in '' $ac_executable_extensions; do
45245 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45246 ac_cv_prog_NM="${ac_tool_prefix}nm"
45247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45248 break 2
45249 fi
45250done
45251done
45252
45253fi
45254fi
45255NM=$ac_cv_prog_NM
45256if test -n "$NM"; then
45257 echo "$as_me:$LINENO: result: $NM" >&5
45258echo "${ECHO_T}$NM" >&6
45259else
45260 echo "$as_me:$LINENO: result: no" >&5
45261echo "${ECHO_T}no" >&6
45262fi
45263
45264fi
45265if test -z "$ac_cv_prog_NM"; then
45266 ac_ct_NM=$NM
45267 # Extract the first word of "nm", so it can be a program name with args.
45268set dummy nm; ac_word=$2
45269echo "$as_me:$LINENO: checking for $ac_word" >&5
45270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45271if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
45272 echo $ECHO_N "(cached) $ECHO_C" >&6
45273else
45274 if test -n "$ac_ct_NM"; then
45275 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
45276else
45277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45278for as_dir in $PATH
45279do
45280 IFS=$as_save_IFS
45281 test -z "$as_dir" && as_dir=.
45282 for ac_exec_ext in '' $ac_executable_extensions; do
45283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45284 ac_cv_prog_ac_ct_NM="nm"
45285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45286 break 2
45287 fi
45288done
45289done
45290
45291 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
45292fi
45293fi
45294ac_ct_NM=$ac_cv_prog_ac_ct_NM
45295if test -n "$ac_ct_NM"; then
45296 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
45297echo "${ECHO_T}$ac_ct_NM" >&6
45298else
45299 echo "$as_me:$LINENO: result: no" >&5
45300echo "${ECHO_T}no" >&6
45301fi
45302
45303 NM=$ac_ct_NM
45304else
45305 NM="$ac_cv_prog_NM"
45306fi
45307
45308
45309 case ${BAKEFILE_HOST} in
45310 *-hp-hpux* )
1e9e8aba 45311 INSTALL_DIR="mkdir -p"
a848cd7e
SC
45312 ;;
45313 *) INSTALL_DIR="$INSTALL -d"
45314 ;;
45315 esac
45316
45317
45318 LDFLAGS_GUI=
45319 case ${BAKEFILE_HOST} in
45320 *-*-cygwin* | *-*-mingw32* )
45321 LDFLAGS_GUI="-mwindows"
45322 esac
45323
45324
45325 fi
45326
45327 echo "$as_me:$LINENO: checking if make is GNU make" >&5
45328echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
45329if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
45330 echo $ECHO_N "(cached) $ECHO_C" >&6
45331else
45332
45333 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
45334 egrep -s GNU > /dev/null); then
45335 bakefile_cv_prog_makeisgnu="yes"
45336 else
45337 bakefile_cv_prog_makeisgnu="no"
45338 fi
45339
45340fi
45341echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
45342echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
45343
45344 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
45345 IF_GNU_MAKE=""
45346 else
45347 IF_GNU_MAKE="#"
45348 fi
45349
45350
45351
45352 PLATFORM_UNIX=0
45353 PLATFORM_WIN32=0
45354 PLATFORM_MSDOS=0
45355 PLATFORM_MAC=0
1e9e8aba 45356 PLATFORM_MACOS=0
a848cd7e
SC
45357 PLATFORM_MACOSX=0
45358 PLATFORM_OS2=0
1e9e8aba 45359 PLATFORM_BEOS=0
a848cd7e
SC
45360
45361 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
45362 case "${BAKEFILE_HOST}" in
810b94f0 45363 *-*-mingw32* )
a848cd7e
SC
45364 PLATFORM_WIN32=1
45365 ;;
45366 *-pc-msdosdjgpp )
45367 PLATFORM_MSDOS=1
45368 ;;
45369 *-pc-os2_emx | *-pc-os2-emx )
45370 PLATFORM_OS2=1
45371 ;;
47bd5406 45372 *-*-darwin* )
a848cd7e
SC
45373 PLATFORM_MAC=1
45374 PLATFORM_MACOSX=1
45375 ;;
1e9e8aba
DE
45376 *-*-beos* )
45377 PLATFORM_BEOS=1
45378 ;;
45379 powerpc-apple-macos* )
45380 PLATFORM_MAC=1
45381 PLATFORM_MACOS=1
45382 ;;
a848cd7e
SC
45383 * )
45384 PLATFORM_UNIX=1
45385 ;;
45386 esac
45387 else
45388 case "$BAKEFILE_FORCE_PLATFORM" in
45389 win32 )
45390 PLATFORM_WIN32=1
45391 ;;
45392 msdos )
45393 PLATFORM_MSDOS=1
45394 ;;
45395 os2 )
45396 PLATFORM_OS2=1
45397 ;;
45398 darwin )
45399 PLATFORM_MAC=1
45400 PLATFORM_MACOSX=1
45401 ;;
45402 unix )
45403 PLATFORM_UNIX=1
45404 ;;
1e9e8aba
DE
45405 beos )
45406 PLATFORM_BEOS=1
45407 ;;
a848cd7e
SC
45408 * )
45409 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
45410echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
45411 { (exit 1); exit 1; }; }
45412 ;;
45413 esac
45414 fi
45415
45416
45417
45418
45419
45420
45421
45422
45423
1e9e8aba
DE
45424
45425
a848cd7e
SC
45426 # Check whether --enable-omf or --disable-omf was given.
45427if test "${enable_omf+set}" = set; then
45428 enableval="$enable_omf"
45429 bk_os2_use_omf="$enableval"
45430fi;
45431
45432 case "${BAKEFILE_HOST}" in
45433 *-*-darwin* )
47bd5406
VZ
45434 if test "x$GCC" = "xyes"; then
45435 CFLAGS="$CFLAGS -fno-common"
45436 CXXFLAGS="$CXXFLAGS -fno-common"
45437 fi
45438 if test "x$XLCC" = "xyes"; then
45439 CFLAGS="$CFLAGS -qnocommon"
45440 CXXFLAGS="$CXXFLAGS -qnocommon"
45441 fi
a848cd7e
SC
45442 ;;
45443
45444 *-pc-os2_emx | *-pc-os2-emx )
45445 if test "x$bk_os2_use_omf" = "xyes" ; then
45446 AR=emxomfar
45447 RANLIB=:
45448 LDFLAGS="-Zomf $LDFLAGS"
45449 CFLAGS="-Zomf $CFLAGS"
45450 CXXFLAGS="-Zomf $CXXFLAGS"
45451 OS2_LIBEXT="lib"
45452 else
45453 OS2_LIBEXT="a"
45454 fi
45455 ;;
1e9e8aba
DE
45456
45457 i*86-*-beos* )
45458 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
45459 ;;
a848cd7e
SC
45460 esac
45461
45462
45463 SO_SUFFIX="so"
45464 SO_SUFFIX_MODULE="so"
45465 EXEEXT=""
45466 LIBPREFIX="lib"
45467 LIBEXT=".a"
45468 DLLPREFIX="lib"
45469 DLLPREFIX_MODULE=""
45470 DLLIMP_SUFFIX=""
810b94f0 45471 dlldir="$libdir"
a848cd7e
SC
45472
45473 case "${BAKEFILE_HOST}" in
45474 *-hp-hpux* )
45475 SO_SUFFIX="sl"
45476 SO_SUFFIX_MODULE="sl"
45477 ;;
45478 *-*-aix* )
45479 SO_SUFFIX="a"
45480 SO_SUFFIX_MODULE="a"
45481 ;;
810b94f0
MW
45482 *-*-cygwin* )
45483 SO_SUFFIX="dll"
45484 SO_SUFFIX_MODULE="dll"
45485 DLLIMP_SUFFIX="dll.a"
45486 EXEEXT=".exe"
45487 DLLPREFIX="cyg"
45488 dlldir="$bindir"
45489 ;;
45490 *-*-mingw32* )
a848cd7e
SC
45491 SO_SUFFIX="dll"
45492 SO_SUFFIX_MODULE="dll"
45493 DLLIMP_SUFFIX="dll.a"
45494 EXEEXT=".exe"
45495 DLLPREFIX=""
810b94f0 45496 dlldir="$bindir"
a848cd7e
SC
45497 ;;
45498 *-pc-msdosdjgpp )
45499 EXEEXT=".exe"
45500 DLLPREFIX=""
810b94f0 45501 dlldir="$bindir"
a848cd7e
SC
45502 ;;
45503 *-pc-os2_emx | *-pc-os2-emx )
45504 SO_SUFFIX="dll"
45505 SO_SUFFIX_MODULE="dll"
45506 DLLIMP_SUFFIX=$OS2_LIBEXT
45507 EXEEXT=".exe"
45508 DLLPREFIX=""
45509 LIBPREFIX=""
45510 LIBEXT=".$OS2_LIBEXT"
810b94f0 45511 dlldir="$bindir"
a848cd7e 45512 ;;
47bd5406 45513 *-*-darwin* )
a848cd7e
SC
45514 SO_SUFFIX="dylib"
45515 SO_SUFFIX_MODULE="bundle"
45516 ;;
45517 esac
45518
45519 if test "x$DLLIMP_SUFFIX" = "x" ; then
45520 DLLIMP_SUFFIX="$SO_SUFFIX"
45521 fi
45522
45523
45524
45525
45526
45527
45528
45529
45530
45531
45532
810b94f0 45533
1e9e8aba
DE
45534 PIC_FLAG=""
45535 if test "x$GCC" = "xyes"; then
a848cd7e
SC
45536 PIC_FLAG="-fPIC"
45537 fi
45538
1e9e8aba
DE
45539 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
45540 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 45541 WINDOWS_IMPLIB=0
1e9e8aba 45542
a848cd7e
SC
45543 case "${BAKEFILE_HOST}" in
45544 *-hp-hpux* )
1e9e8aba 45545 if test "x$GCC" != "xyes"; then
a848cd7e
SC
45546 LDFLAGS="$LDFLAGS -L/usr/lib"
45547
45548 SHARED_LD_CC="${CC} -b -o"
45549 SHARED_LD_CXX="${CXX} -b -o"
45550 PIC_FLAG="+Z"
45551 fi
45552 ;;
45553
45554 *-*-linux* )
45555 if test "x$GCC" != "xyes"; then
45556 echo "$as_me:$LINENO: checking for Intel compiler" >&5
45557echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
45558if test "${bakefile_cv_prog_icc+set}" = set; then
45559 echo $ECHO_N "(cached) $ECHO_C" >&6
45560else
45561
45562 cat >conftest.$ac_ext <<_ACEOF
45563/* confdefs.h. */
45564_ACEOF
45565cat confdefs.h >>conftest.$ac_ext
45566cat >>conftest.$ac_ext <<_ACEOF
45567/* end confdefs.h. */
45568
45569int
45570main ()
45571{
45572
45573 #ifndef __INTEL_COMPILER
45574 #error Not icc
45575 #endif
45576
45577 ;
45578 return 0;
45579}
45580_ACEOF
45581rm -f conftest.$ac_objext
45582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45583 (eval $ac_compile) 2>conftest.er1
a848cd7e 45584 ac_status=$?
ac1cb8d3
VS
45585 grep -v '^ *+' conftest.er1 >conftest.err
45586 rm -f conftest.er1
45587 cat conftest.err >&5
a848cd7e
SC
45588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45589 (exit $ac_status); } &&
5ff751d6 45590 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45592 (eval $ac_try) 2>&5
45593 ac_status=$?
45594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45595 (exit $ac_status); }; } &&
45596 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45598 (eval $ac_try) 2>&5
45599 ac_status=$?
45600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45601 (exit $ac_status); }; }; then
45602 bakefile_cv_prog_icc=yes
45603else
45604 echo "$as_me: failed program was:" >&5
45605sed 's/^/| /' conftest.$ac_ext >&5
45606
45607bakefile_cv_prog_icc=no
45608
45609fi
ac1cb8d3 45610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
45611
45612fi
45613echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
45614echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
45615 if test "$bakefile_cv_prog_icc" = "yes"; then
45616 PIC_FLAG="-KPIC"
45617 fi
45618 fi
45619 ;;
45620
45621 *-*-solaris2* )
45622 if test "x$GCC" != xyes ; then
45623 SHARED_LD_CC="${CC} -G -o"
45624 SHARED_LD_CXX="${CXX} -G -o"
45625 PIC_FLAG="-KPIC"
45626 fi
45627 ;;
45628
45629 *-*-darwin* )
45630
473276a9
VS
45631D='$'
45632cat <<EOF >shared-ld-sh
a848cd7e
SC
45633#!/bin/sh
45634#-----------------------------------------------------------------------------
45635#-- Name: distrib/mac/shared-ld-sh
45636#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
45637#-- Author: Gilles Depeyrot
45638#-- Copyright: (c) 2002 Gilles Depeyrot
45639#-- Licence: any use permitted
45640#-----------------------------------------------------------------------------
45641
45642verbose=0
45643args=""
45644objects=""
45645linking_flag="-dynamiclib"
810b94f0 45646ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 45647
473276a9
VS
45648while test ${D}# -gt 0; do
45649 case ${D}1 in
a848cd7e
SC
45650
45651 -v)
45652 verbose=1
45653 ;;
45654
45655 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
45656 # collect these options and values
473276a9 45657 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
45658 shift
45659 ;;
45660
810b94f0
MW
45661 -s|-Wl,*)
45662 # collect these load args
45663 ldargs="${D}{ldargs} ${D}1"
2113bc77 45664 ;;
810b94f0
MW
45665
45666 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 45667 # collect these options
473276a9 45668 args="${D}{args} ${D}1"
a848cd7e
SC
45669 ;;
45670
45671 -dynamiclib|-bundle)
473276a9 45672 linking_flag="${D}1"
a848cd7e
SC
45673 ;;
45674
45675 -*)
473276a9 45676 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
45677 exit 1
45678 ;;
45679
45680 *.o | *.a | *.dylib)
45681 # collect object files
473276a9 45682 objects="${D}{objects} ${D}1"
a848cd7e
SC
45683 ;;
45684
45685 *)
473276a9 45686 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
45687 exit 1
45688 ;;
45689
45690 esac
45691 shift
45692done
45693
810b94f0
MW
45694status=0
45695
a848cd7e
SC
45696#
45697# Link one module containing all the others
45698#
473276a9 45699if test ${D}{verbose} = 1; then
810b94f0 45700 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 45701fi
810b94f0 45702c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 45703status=${D}?
a848cd7e
SC
45704
45705#
810b94f0
MW
45706# Link the shared library from the single module created, but only if the
45707# previous command didn't fail:
a848cd7e 45708#
810b94f0
MW
45709if test ${D}{status} = 0; then
45710 if test ${D}{verbose} = 1; then
45711 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
45712 fi
45713 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
45714 status=${D}?
a848cd7e
SC
45715fi
45716
45717#
45718# Remove intermediate module
45719#
473276a9 45720rm -f master.${D}${D}.o
a848cd7e 45721
810b94f0 45722exit ${D}status
a848cd7e 45723EOF
473276a9 45724
583d6b4b
VZ
45725 chmod +x shared-ld-sh
45726
45727 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
45728 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
45729
45730
45731 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
45732echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
45733if test "${bakefile_cv_gcc31+set}" = set; then
45734 echo $ECHO_N "(cached) $ECHO_C" >&6
45735else
45736
45737 cat >conftest.$ac_ext <<_ACEOF
45738/* confdefs.h. */
45739_ACEOF
45740cat confdefs.h >>conftest.$ac_ext
45741cat >>conftest.$ac_ext <<_ACEOF
45742/* end confdefs.h. */
45743
45744int
45745main ()
45746{
45747
45748 #if (__GNUC__ < 3) || \
45749 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
45750 #error old gcc
45751 #endif
a848cd7e 45752
583d6b4b
VZ
45753 ;
45754 return 0;
45755}
45756_ACEOF
45757rm -f conftest.$ac_objext
45758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45759 (eval $ac_compile) 2>conftest.er1
45760 ac_status=$?
45761 grep -v '^ *+' conftest.er1 >conftest.err
45762 rm -f conftest.er1
45763 cat conftest.err >&5
45764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45765 (exit $ac_status); } &&
5ff751d6 45766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
45767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45768 (eval $ac_try) 2>&5
45769 ac_status=$?
45770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45771 (exit $ac_status); }; } &&
45772 { ac_try='test -s conftest.$ac_objext'
45773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45774 (eval $ac_try) 2>&5
45775 ac_status=$?
45776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45777 (exit $ac_status); }; }; then
45778
45779 bakefile_cv_gcc31=yes
45780
45781else
45782 echo "$as_me: failed program was:" >&5
45783sed 's/^/| /' conftest.$ac_ext >&5
45784
45785
45786 bakefile_cv_gcc31=no
45787
45788
45789fi
45790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45791
45792fi
45793echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
45794echo "${ECHO_T}$bakefile_cv_gcc31" >&6
45795 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 45796 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 45797 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
45798 else
45799 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 45800 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
45801 fi
45802
47bd5406
VZ
45803 if test "x$GCC" == "xyes"; then
45804 PIC_FLAG="-dynamic -fPIC"
45805 fi
45806 if test "x$XLCC" = "xyes"; then
45807 PIC_FLAG="-dynamic -DPIC"
45808 fi
a848cd7e
SC
45809 ;;
45810
45811 *-*-aix* )
f6b50c59 45812 if test "x$GCC" = "xyes"; then
583d6b4b 45813 PIC_FLAG=""
f6b50c59 45814
583d6b4b
VZ
45815 case "${BAKEFILE_HOST}" in
45816 *-*-aix5* )
45817 LD_EXPFULL="-Wl,-bexpfull"
45818 ;;
45819 esac
f6b50c59 45820
583d6b4b
VZ
45821 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
45822 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
45823 else
45824 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
45825set dummy makeC++SharedLib; ac_word=$2
45826echo "$as_me:$LINENO: checking for $ac_word" >&5
45827echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45828if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
45829 echo $ECHO_N "(cached) $ECHO_C" >&6
45830else
45831 if test -n "$AIX_CXX_LD"; then
45832 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
45833else
45834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45835for as_dir in $PATH
45836do
45837 IFS=$as_save_IFS
45838 test -z "$as_dir" && as_dir=.
45839 for ac_exec_ext in '' $ac_executable_extensions; do
45840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45841 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
45842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45843 break 2
45844 fi
45845done
45846done
45847
45848 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
45849fi
45850fi
45851AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
45852if test -n "$AIX_CXX_LD"; then
45853 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
45854echo "${ECHO_T}$AIX_CXX_LD" >&6
45855else
45856 echo "$as_me:$LINENO: result: no" >&5
45857echo "${ECHO_T}no" >&6
45858fi
45859
f6b50c59 45860 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
45861 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
45862 fi
45863 ;;
45864
45865 *-*-beos* )
1e9e8aba
DE
45866 SHARED_LD_CC="${LD} -nostart -o"
45867 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
45868 ;;
45869
45870 *-*-irix* )
45871 if test "x$GCC" != "xyes"; then
45872 PIC_FLAG="-KPIC"
45873 fi
45874 ;;
45875
45876 *-*-cygwin* | *-*-mingw32* )
45877 PIC_FLAG=""
1e9e8aba
DE
45878 SHARED_LD_CC="\$(CC) -shared -o"
45879 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 45880 WINDOWS_IMPLIB=1
a848cd7e
SC
45881 ;;
45882
45883 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
45884 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
45885 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 45886 PIC_FLAG=""
473276a9
VS
45887
45888D='$'
45889cat <<EOF >dllar.sh
45890#!/bin/sh
45891#
45892# dllar - a tool to build both a .dll and an .a file
45893# from a set of object (.o) files for EMX/OS2.
45894#
45895# Written by Andrew Zabolotny, bit@freya.etu.ru
45896# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
45897#
45898# This script will accept a set of files on the command line.
45899# All the public symbols from the .o files will be exported into
45900# a .DEF file, then linker will be run (through gcc) against them to
45901# build a shared library consisting of all given .o files. All libraries
45902# (.a) will be first decompressed into component .o files then act as
45903# described above. You can optionally give a description (-d "description")
45904# which will be put into .DLL. To see the list of accepted options (as well
45905# as command-line format) simply run this program without options. The .DLL
45906# is built to be imported by name (there is no guarantee that new versions
45907# of the library you build will have same ordinals for same symbols).
45908#
45909# dllar is free software; you can redistribute it and/or modify
45910# it under the terms of the GNU General Public License as published by
45911# the Free Software Foundation; either version 2, or (at your option)
45912# any later version.
45913#
45914# dllar is distributed in the hope that it will be useful,
45915# but WITHOUT ANY WARRANTY; without even the implied warranty of
45916# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45917# GNU General Public License for more details.
45918#
45919# You should have received a copy of the GNU General Public License
45920# along with dllar; see the file COPYING. If not, write to the Free
45921# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
45922# 02111-1307, USA.
45923
45924# To successfuly run this program you will need:
45925# - Current drive should have LFN support (HPFS, ext2, network, etc)
45926# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
45927# - gcc
45928# (used to build the .dll)
45929# - emxexp
45930# (used to create .def file from .o files)
45931# - emximp
45932# (used to create .a file from .def file)
45933# - GNU text utilites (cat, sort, uniq)
45934# used to process emxexp output
45935# - GNU file utilities (mv, rm)
45936# - GNU sed
45937# - lxlite (optional, see flag below)
45938# (used for general .dll cleanup)
45939#
45940
45941flag_USE_LXLITE=1;
45942
45943#
45944# helper functions
45945# basnam, variant of basename, which does _not_ remove the path, _iff_
45946# second argument (suffix to remove) is given
45947basnam(){
45948 case ${D}# in
45949 1)
1e9e8aba 45950 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
45951 ;;
45952 2)
45953 echo ${D}1 | sed 's/'${D}2'${D}//'
45954 ;;
45955 *)
45956 echo "error in basnam ${D}*"
45957 exit 8
45958 ;;
45959 esac
45960}
45961
45962# Cleanup temporary files and output
45963CleanUp() {
45964 cd ${D}curDir
45965 for i in ${D}inputFiles ; do
45966 case ${D}i in
45967 *!)
45968 rm -rf \`basnam ${D}i !\`
45969 ;;
45970 *)
45971 ;;
45972 esac
45973 done
45974
45975 # Kill result in case of failure as there is just to many stupid make/nmake
45976 # things out there which doesn't do this.
1e9e8aba 45977 if [ ${D}# -eq 0 ]; then
473276a9
VS
45978 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
45979 fi
45980}
45981
45982# Print usage and exit script with rc=1.
45983PrintHelp() {
b1d22ded
DE
45984 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
45985 echo ' [-name-mangler-script script.sh]'
45986 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
45987 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
45988 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 45989 echo ' [*.o] [*.a]'
473276a9
VS
45990 echo '*> "output_file" should have no extension.'
45991 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
45992 echo ' The import library name is derived from this and is set to "name".a,'
45993 echo ' unless overridden by -import'
45994 echo '*> "importlib_name" should have no extension.'
45995 echo ' If it has the .o, or .a extension, it is automatically removed.'
45996 echo ' This name is used as the import library name and may be longer and'
45997 echo ' more descriptive than the DLL name which has to follow the old '
45998 echo ' 8.3 convention of FAT.'
b1d22ded
DE
45999 echo '*> "script.sh may be given to override the output_file name by a'
46000 echo ' different name. It is mainly useful if the regular make process'
46001 echo ' of some package does not take into account OS/2 restriction of'
46002 echo ' DLL name lengths. It takes the importlib name as input and is'
46003 echo ' supposed to procude a shorter name as output. The script should'
46004 echo ' expect to get importlib_name without extension and should produce'
46005 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
46006 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
46007 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
46008 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
46009 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
46010 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
46011 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
46012 echo ' If the last character of a symbol is "*", all symbols beginning'
46013 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 46014 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 46015 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 46016 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 46017 echo ' C runtime DLLs.'
b1d22ded 46018 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
46019 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
46020 echo ' unchanged to GCC at the end of command line.'
46021 echo '*> If you create a DLL from a library and you do not specify -o,'
46022 echo ' the basename for DLL and import library will be set to library name,'
46023 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
46024 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
46025 echo ' library will be renamed into gcc_s.a.'
46026 echo '--------'
46027 echo 'Example:'
46028 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
46029 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
46030 CleanUp
46031 exit 1
46032}
46033
46034# Execute a command.
46035# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
46036# @Uses Whatever CleanUp() uses.
46037doCommand() {
46038 echo "${D}*"
46039 eval ${D}*
46040 rcCmd=${D}?
46041
1e9e8aba 46042 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
46043 echo "command failed, exit code="${D}rcCmd
46044 CleanUp
46045 exit ${D}rcCmd
46046 fi
46047}
46048
46049# main routine
46050# setup globals
46051cmdLine=${D}*
46052outFile=""
46053outimpFile=""
46054inputFiles=""
b1d22ded 46055renameScript=""
473276a9
VS
46056description=""
46057CC=gcc.exe
46058CFLAGS="-s -Zcrtdll"
46059EXTRA_CFLAGS=""
46060EXPORT_BY_ORDINALS=0
46061exclude_symbols=""
46062library_flags=""
46063curDir=\`pwd\`
46064curDirS=curDir
46065case ${D}curDirS in
46066*/)
46067 ;;
46068*)
46069 curDirS=${D}{curDirS}"/"
46070 ;;
46071esac
46072# Parse commandline
46073libsToLink=0
b1d22ded 46074omfLinking=0
1e9e8aba 46075while [ ${D}1 ]; do
473276a9
VS
46076 case ${D}1 in
46077 -ord*)
46078 EXPORT_BY_ORDINALS=1;
46079 ;;
46080 -o*)
46081 shift
46082 outFile=${D}1
46083 ;;
46084 -i*)
46085 shift
46086 outimpFile=${D}1
46087 ;;
b1d22ded
DE
46088 -name-mangler-script)
46089 shift
46090 renameScript=${D}1
46091 ;;
473276a9
VS
46092 -d*)
46093 shift
46094 description=${D}1
46095 ;;
46096 -f*)
46097 shift
46098 CFLAGS=${D}1
46099 ;;
46100 -c*)
46101 shift
46102 CC=${D}1
46103 ;;
46104 -h*)
46105 PrintHelp
46106 ;;
46107 -ex*)
46108 shift
46109 exclude_symbols=${D}{exclude_symbols}${D}1" "
46110 ;;
46111 -libf*)
46112 shift
46113 library_flags=${D}{library_flags}${D}1" "
46114 ;;
46115 -nocrt*)
46116 CFLAGS="-s"
46117 ;;
46118 -nolxl*)
46119 flag_USE_LXLITE=0
46120 ;;
46121 -* | /*)
46122 case ${D}1 in
46123 -L* | -l*)
46124 libsToLink=1
46125 ;;
b1d22ded
DE
46126 -Zomf)
46127 omfLinking=1
46128 ;;
473276a9
VS
46129 *)
46130 ;;
46131 esac
46132 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46133 ;;
b1d22ded
DE
46134 *.dll)
46135 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
46136 if [ ${D}omfLinking -eq 1 ]; then
46137 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
46138 else
46139 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
46140 fi
46141 ;;
473276a9
VS
46142 *)
46143 found=0;
1e9e8aba 46144 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
46145 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
46146 else
46147 for file in ${D}1 ; do
1e9e8aba 46148 if [ -f ${D}file ]; then
473276a9
VS
46149 inputFiles="${D}{inputFiles} ${D}file"
46150 found=1
46151 fi
46152 done
1e9e8aba 46153 if [ ${D}found -eq 0 ]; then
473276a9
VS
46154 echo "ERROR: No file(s) found: "${D}1
46155 exit 8
46156 fi
46157 fi
46158 ;;
46159 esac
46160 shift
46161done # iterate cmdline words
46162
46163#
1e9e8aba 46164if [ -z "${D}inputFiles" ]; then
473276a9
VS
46165 echo "dllar: no input files"
46166 PrintHelp
46167fi
46168
46169# Now extract all .o files from .a files
46170newInputFiles=""
46171for file in ${D}inputFiles ; do
46172 case ${D}file in
46173 *.a | *.lib)
46174 case ${D}file in
46175 *.a)
46176 suffix=".a"
46177 AR="ar"
46178 ;;
46179 *.lib)
46180 suffix=".lib"
46181 AR="emxomfar"
46182 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
46183 ;;
46184 *)
46185 ;;
46186 esac
46187 dirname=\`basnam ${D}file ${D}suffix\`"_%"
46188 mkdir ${D}dirname
1e9e8aba 46189 if [ ${D}? -ne 0 ]; then
473276a9
VS
46190 echo "Failed to create subdirectory ./${D}dirname"
46191 CleanUp
46192 exit 8;
46193 fi
46194 # Append '!' to indicate archive
46195 newInputFiles="${D}newInputFiles ${D}{dirname}!"
46196 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
46197 cd ${D}curDir
46198 found=0;
46199 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 46200 if [ -f ${D}subfile ]; then
473276a9 46201 found=1
1e9e8aba 46202 if [ -s ${D}subfile ]; then
473276a9
VS
46203 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
46204 newInputFiles="${D}newInputFiles ${D}subfile"
46205 fi
46206 fi
46207 done
1e9e8aba
DE
46208 if [ ${D}found -eq 0 ]; then
46209 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
46210 fi
46211 ;;
46212 *)
46213 newInputFiles="${D}{newInputFiles} ${D}file"
46214 ;;
46215 esac
46216done
46217inputFiles="${D}newInputFiles"
46218
46219# Output filename(s).
46220do_backup=0;
1e9e8aba 46221if [ -z ${D}outFile ]; then
473276a9
VS
46222 do_backup=1;
46223 set outFile ${D}inputFiles; outFile=${D}2
46224fi
46225
46226# If it is an archive, remove the '!' and the '_%' suffixes
46227case ${D}outFile in
46228*_%!)
46229 outFile=\`basnam ${D}outFile _%!\`
46230 ;;
46231*)
46232 ;;
46233esac
46234case ${D}outFile in
46235*.dll)
46236 outFile=\`basnam ${D}outFile .dll\`
46237 ;;
46238*.DLL)
46239 outFile=\`basnam ${D}outFile .DLL\`
46240 ;;
46241*.o)
46242 outFile=\`basnam ${D}outFile .o\`
46243 ;;
46244*.obj)
46245 outFile=\`basnam ${D}outFile .obj\`
46246 ;;
46247*.a)
46248 outFile=\`basnam ${D}outFile .a\`
46249 ;;
46250*.lib)
46251 outFile=\`basnam ${D}outFile .lib\`
46252 ;;
46253*)
46254 ;;
46255esac
46256case ${D}outimpFile in
46257*.a)
46258 outimpFile=\`basnam ${D}outimpFile .a\`
46259 ;;
46260*.lib)
46261 outimpFile=\`basnam ${D}outimpFile .lib\`
46262 ;;
46263*)
46264 ;;
46265esac
1e9e8aba 46266if [ -z ${D}outimpFile ]; then
473276a9
VS
46267 outimpFile=${D}outFile
46268fi
46269defFile="${D}{outFile}.def"
46270arcFile="${D}{outimpFile}.a"
46271arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
46272
46273#create ${D}dllFile as something matching 8.3 restrictions,
46274if [ -z ${D}renameScript ] ; then
46275 dllFile="${D}outFile"
46276else
46277 dllFile=\`${D}renameScript ${D}outimpFile\`
46278fi
473276a9 46279
1e9e8aba
DE
46280if [ ${D}do_backup -ne 0 ] ; then
46281 if [ -f ${D}arcFile ] ; then
473276a9
VS
46282 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
46283 fi
1e9e8aba 46284 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
46285 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
46286 fi
46287fi
46288
46289# Extract public symbols from all the object files.
46290tmpdefFile=${D}{defFile}_%
46291rm -f ${D}tmpdefFile
46292for file in ${D}inputFiles ; do
46293 case ${D}file in
46294 *!)
46295 ;;
46296 *)
46297 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
46298 ;;
46299 esac
46300done
46301
46302# Create the def file.
46303rm -f ${D}defFile
46304echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
46305dllFile="${D}{dllFile}.dll"
46306if [ ! -z ${D}description ]; then
1e9e8aba 46307 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
46308fi
46309echo "EXPORTS" >> ${D}defFile
46310
46311doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
46312grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
46313
46314# Checks if the export is ok or not.
46315for word in ${D}exclude_symbols; do
46316 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
46317 mv ${D}{tmpdefFile}% ${D}tmpdefFile
46318done
46319
46320
1e9e8aba
DE
46321if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
46322 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
46323 sed '
46324 N
46325 : loop
1e9e8aba 46326 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
46327 t loop
46328 ' > ${D}{tmpdefFile}%
46329 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
46330else
46331 rm -f ${D}{tmpdefFile}%
46332fi
46333cat ${D}tmpdefFile >> ${D}defFile
46334rm -f ${D}tmpdefFile
46335
46336# Do linking, create implib, and apply lxlite.
46337gccCmdl="";
46338for file in ${D}inputFiles ; do
46339 case ${D}file in
46340 *!)
46341 ;;
46342 *)
46343 gccCmdl="${D}gccCmdl ${D}file"
46344 ;;
46345 esac
46346done
46347doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
46348touch "${D}{outFile}.dll"
46349
46350doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 46351if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 46352 add_flags="";
1e9e8aba 46353 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
46354 add_flags="-ynd"
46355 fi
46356 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
46357fi
46358doCommand "emxomf -s -l ${D}arcFile"
46359
46360# Successful exit.
46361CleanUp 1
46362exit 0
46363EOF
46364
46365 chmod +x dllar.sh
a848cd7e
SC
46366 ;;
46367
1e9e8aba 46368 powerpc-apple-macos* | \
0ad5d837 46369 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
46370 *-*-sunos4* | \
46371 *-*-osf* | \
46372 *-*-dgux5* | \
47a7e797
MW
46373 *-*-sysv5* | \
46374 *-pc-msdosdjgpp )
a848cd7e
SC
46375 ;;
46376
46377 *)
46378 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
46379echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
46380 { (exit 1); exit 1; }; }
46381 esac
46382
2057db16
VS
46383 if test "x$PIC_FLAG" != "x" ; then
46384 PIC_FLAG="$PIC_FLAG -DPIC"
46385 fi
46386
a848cd7e
SC
46387 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
46388 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
46389 fi
46390 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
46391 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
46392 fi
46393
46394
46395
46396
46397
46398
46399
46400
810b94f0 46401
a848cd7e
SC
46402 USE_SOVERSION=0
46403 USE_SOVERLINUX=0
46404 USE_SOVERSOLARIS=0
810b94f0 46405 USE_SOVERCYGWIN=0
a848cd7e
SC
46406 USE_SOSYMLINKS=0
46407 USE_MACVERSION=0
46408 SONAME_FLAG=
46409
46410 case "${BAKEFILE_HOST}" in
0ad5d837 46411 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
46412 SONAME_FLAG="-Wl,-soname,"
46413 USE_SOVERSION=1
46414 USE_SOVERLINUX=1
46415 USE_SOSYMLINKS=1
46416 ;;
46417
a848cd7e
SC
46418 *-*-solaris2* )
46419 SONAME_FLAG="-h "
46420 USE_SOVERSION=1
46421 USE_SOVERSOLARIS=1
46422 USE_SOSYMLINKS=1
46423 ;;
46424
46425 *-*-darwin* )
46426 USE_MACVERSION=1
46427 USE_SOVERSION=1
46428 USE_SOSYMLINKS=1
46429 ;;
810b94f0
MW
46430
46431 *-*-cygwin* )
46432 USE_SOVERSION=1
46433 USE_SOVERCYGWIN=1
46434 ;;
a848cd7e
SC
46435 esac
46436
46437
46438
46439
46440
46441
46442
46443
46444
810b94f0 46445
a848cd7e
SC
46446 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
46447echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 46448 DEPS_TRACKING=1
a848cd7e
SC
46449
46450 if test "x$GCC" = "xyes"; then
46451 DEPSMODE=gcc
a848cd7e 46452 case "${BAKEFILE_HOST}" in
47bd5406 46453 *-*-darwin* )
0ad5d837 46454 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
46455 ;;
46456 * )
0ad5d837 46457 DEPSFLAG="-MMD"
a848cd7e
SC
46458 ;;
46459 esac
46460 echo "$as_me:$LINENO: result: gcc" >&5
46461echo "${ECHO_T}gcc" >&6
b1d22ded 46462 elif test "x$MWCC" = "xyes"; then
81f90336 46463 DEPSMODE=mwcc
0ad5d837 46464 DEPSFLAG="-MM"
b1d22ded
DE
46465 echo "$as_me:$LINENO: result: mwcc" >&5
46466echo "${ECHO_T}mwcc" >&6
a9e5b1f0 46467 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
46468 DEPSMODE=unixcc
46469 DEPSFLAG="-xM1"
46470 echo "$as_me:$LINENO: result: Sun cc" >&5
46471echo "${ECHO_T}Sun cc" >&6
46472 elif test "x$SGICC" = "xyes"; then
46473 DEPSMODE=unixcc
46474 DEPSFLAG="-M"
46475 echo "$as_me:$LINENO: result: SGI cc" >&5
46476echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
46477 elif test "x$HPCC" = "xyes"; then
46478 DEPSMODE=unixcc
46479 DEPSFLAG="+make"
46480 echo "$as_me:$LINENO: result: HP cc" >&5
46481echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
46482 elif test "x$COMPAQCC" = "xyes"; then
46483 DEPSMODE=gcc
46484 DEPSFLAG="-MD"
46485 echo "$as_me:$LINENO: result: Compaq cc" >&5
46486echo "${ECHO_T}Compaq cc" >&6
a848cd7e 46487 else
3006edc0 46488 DEPS_TRACKING=0
a848cd7e
SC
46489 echo "$as_me:$LINENO: result: none" >&5
46490echo "${ECHO_T}none" >&6
46491 fi
46492
46493 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
46494
46495D='$'
46496cat <<EOF >bk-deps
a848cd7e
SC
46497#!/bin/sh
46498
46499# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
46500# script. It is used to track C/C++ files dependencies in portable way.
46501#
46502# Permission is given to use this file in any way.
46503
473276a9 46504DEPSMODE=${DEPSMODE}
a848cd7e 46505DEPSDIR=.deps
0ad5d837 46506DEPSFLAG="${DEPSFLAG}"
a848cd7e 46507
473276a9 46508mkdir -p ${D}DEPSDIR
a848cd7e 46509
473276a9 46510if test ${D}DEPSMODE = gcc ; then
0ad5d837 46511 ${D}* ${D}{DEPSFLAG}
473276a9
VS
46512 status=${D}?
46513 if test ${D}{status} != 0 ; then
46514 exit ${D}{status}
a848cd7e
SC
46515 fi
46516 # move created file to the location we want it in:
473276a9
VS
46517 while test ${D}# -gt 0; do
46518 case "${D}1" in
a848cd7e
SC
46519 -o )
46520 shift
473276a9 46521 objfile=${D}1
a848cd7e
SC
46522 ;;
46523 -* )
46524 ;;
46525 * )
473276a9 46526 srcfile=${D}1
a848cd7e
SC
46527 ;;
46528 esac
46529 shift
46530 done
1e9e8aba
DE
46531 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
46532 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
46533 if test -f ${D}depfile ; then
46534 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46535 rm -f ${D}depfile
a848cd7e 46536 else
a1aa0349 46537 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 46538 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
46539 if test ! -f ${D}depfile ; then
46540 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
46541 depfile="${D}objfile.d"
46542 fi
473276a9
VS
46543 if test -f ${D}depfile ; then
46544 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
46545 rm -f ${D}depfile
a848cd7e
SC
46546 fi
46547 fi
46548 exit 0
81f90336 46549elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 46550 ${D}* || exit ${D}?
81f90336
MW
46551 # Run mwcc again with -MM and redirect into the dep file we want
46552 # NOTE: We can't use shift here because we need ${D}* to be valid
46553 prevarg=
46554 for arg in ${D}* ; do
46555 if test "${D}prevarg" = "-o"; then
46556 objfile=${D}arg
46557 else
46558 case "${D}arg" in
46559 -* )
46560 ;;
46561 * )
46562 srcfile=${D}arg
46563 ;;
46564 esac
46565 fi
46566 prevarg="${D}arg"
46567 done
0ad5d837 46568 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 46569 exit 0
0ad5d837 46570elif test ${D}DEPSMODE = unixcc; then
f6b50c59 46571 ${D}* || exit ${D}?
a9e5b1f0
MW
46572 # Run compiler again with deps flag and redirect into the dep file.
46573 # It doesn't work if the '-o FILE' option is used, but without it the
46574 # dependency file will contain the wrong name for the object. So it is
46575 # removed from the command line, and the dep file is fixed with sed.
46576 cmd=""
46577 while test ${D}# -gt 0; do
46578 case "${D}1" in
46579 -o )
46580 shift
46581 objfile=${D}1
46582 ;;
46583 * )
46584 eval arg${D}#=\\${D}1
46585 cmd="${D}cmd \\${D}arg${D}#"
46586 ;;
46587 esac
46588 shift
46589 done
0ad5d837 46590 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 46591 exit 0
a848cd7e 46592else
473276a9
VS
46593 ${D}*
46594 exit ${D}?
a848cd7e
SC
46595fi
46596EOF
473276a9 46597
a848cd7e
SC
46598 chmod +x bk-deps
46599 fi
46600
46601
46602
46603
a848cd7e
SC
46604 case ${BAKEFILE_HOST} in
46605 *-*-cygwin* | *-*-mingw32* )
8ced02f6
DE
46606 if test -n "$ac_tool_prefix"; then
46607 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
46608set dummy ${ac_tool_prefix}windres; ac_word=$2
46609echo "$as_me:$LINENO: checking for $ac_word" >&5
46610echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46611if test "${ac_cv_prog_WINDRES+set}" = set; then
46612 echo $ECHO_N "(cached) $ECHO_C" >&6
46613else
46614 if test -n "$WINDRES"; then
46615 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
46616else
46617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46618for as_dir in $PATH
46619do
46620 IFS=$as_save_IFS
46621 test -z "$as_dir" && as_dir=.
46622 for ac_exec_ext in '' $ac_executable_extensions; do
46623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46624 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
46625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46626 break 2
46627 fi
46628done
46629done
46630
46631fi
46632fi
46633WINDRES=$ac_cv_prog_WINDRES
46634if test -n "$WINDRES"; then
46635 echo "$as_me:$LINENO: result: $WINDRES" >&5
46636echo "${ECHO_T}$WINDRES" >&6
46637else
46638 echo "$as_me:$LINENO: result: no" >&5
46639echo "${ECHO_T}no" >&6
46640fi
46641
46642fi
46643if test -z "$ac_cv_prog_WINDRES"; then
46644 ac_ct_WINDRES=$WINDRES
46645 # Extract the first word of "windres", so it can be a program name with args.
a848cd7e
SC
46646set dummy windres; ac_word=$2
46647echo "$as_me:$LINENO: checking for $ac_word" >&5
46648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 46649if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
a848cd7e
SC
46650 echo $ECHO_N "(cached) $ECHO_C" >&6
46651else
8ced02f6
DE
46652 if test -n "$ac_ct_WINDRES"; then
46653 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
a848cd7e
SC
46654else
46655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46656for as_dir in $PATH
46657do
46658 IFS=$as_save_IFS
46659 test -z "$as_dir" && as_dir=.
46660 for ac_exec_ext in '' $ac_executable_extensions; do
46661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 46662 ac_cv_prog_ac_ct_WINDRES="windres"
a848cd7e
SC
46663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46664 break 2
46665 fi
46666done
46667done
46668
a848cd7e
SC
46669fi
46670fi
8ced02f6
DE
46671ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
46672if test -n "$ac_ct_WINDRES"; then
46673 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
46674echo "${ECHO_T}$ac_ct_WINDRES" >&6
a848cd7e
SC
46675else
46676 echo "$as_me:$LINENO: result: no" >&5
46677echo "${ECHO_T}no" >&6
46678fi
46679
8ced02f6
DE
46680 WINDRES=$ac_ct_WINDRES
46681else
46682 WINDRES="$ac_cv_prog_WINDRES"
46683fi
46684
a848cd7e
SC
46685 ;;
46686
1e9e8aba 46687 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
46688 # Extract the first word of "Rez", so it can be a program name with args.
46689set dummy Rez; ac_word=$2
46690echo "$as_me:$LINENO: checking for $ac_word" >&5
46691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8ced02f6 46692if test "${ac_cv_prog_REZ+set}" = set; then
a848cd7e
SC
46693 echo $ECHO_N "(cached) $ECHO_C" >&6
46694else
8ced02f6
DE
46695 if test -n "$REZ"; then
46696 ac_cv_prog_REZ="$REZ" # Let the user override the test.
a848cd7e
SC
46697else
46698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46699for as_dir in $PATH
46700do
46701 IFS=$as_save_IFS
46702 test -z "$as_dir" && as_dir=.
46703 for ac_exec_ext in '' $ac_executable_extensions; do
46704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8ced02f6 46705 ac_cv_prog_REZ="Rez"
a848cd7e
SC
46706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46707 break 2
46708 fi
46709done
46710done
46711
8ced02f6 46712 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
a848cd7e
SC
46713fi
46714fi
8ced02f6
DE
46715REZ=$ac_cv_prog_REZ
46716if test -n "$REZ"; then
46717 echo "$as_me:$LINENO: result: $REZ" >&5
46718echo "${ECHO_T}$REZ" >&6
a848cd7e
SC
46719else
46720 echo "$as_me:$LINENO: result: no" >&5
46721echo "${ECHO_T}no" >&6
46722fi
46723
46724 # Extract the first word of "SetFile", so it can be a program name with args.
46725set dummy SetFile; ac_word=$2
46726echo "$as_me:$LINENO: checking for $ac_word" >&5
46727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46728if test "${ac_cv_prog_SETFILE+set}" = set; then
46729 echo $ECHO_N "(cached) $ECHO_C" >&6
46730else
46731 if test -n "$SETFILE"; then
46732 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
46733else
46734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46735for as_dir in $PATH
46736do
46737 IFS=$as_save_IFS
46738 test -z "$as_dir" && as_dir=.
46739 for ac_exec_ext in '' $ac_executable_extensions; do
46740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46741 ac_cv_prog_SETFILE="SetFile"
46742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46743 break 2
46744 fi
46745done
46746done
46747
46748 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
46749fi
46750fi
46751SETFILE=$ac_cv_prog_SETFILE
46752if test -n "$SETFILE"; then
46753 echo "$as_me:$LINENO: result: $SETFILE" >&5
46754echo "${ECHO_T}$SETFILE" >&6
46755else
46756 echo "$as_me:$LINENO: result: no" >&5
46757echo "${ECHO_T}no" >&6
46758fi
46759
46760 ;;
46761 esac
46762
46763
46764
46765
46766
8ced02f6 46767
c9469659 46768 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 46769
dcc1b6ad 46770
c9469659 46771BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 46772
646b6ec1 46773
74b84332 46774
a848cd7e
SC
46775 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
46776if test "${enable_precomp_headers+set}" = set; then
46777 enableval="$enable_precomp_headers"
46778 bk_use_pch="$enableval"
46779fi;
46780
46781 GCC_PCH=0
46782
5c60e845
MW
46783 case ${BAKEFILE_HOST} in
46784 *-*-cygwin* )
46785 bk_use_pch="no"
46786 ;;
46787 esac
46788
a848cd7e
SC
46789 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
46790 if test "x$GCC" = "xyes"; then
46791 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
46792echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
46793 cat >conftest.$ac_ext <<_ACEOF
46794/* confdefs.h. */
46795_ACEOF
46796cat confdefs.h >>conftest.$ac_ext
46797cat >>conftest.$ac_ext <<_ACEOF
46798/* end confdefs.h. */
46799
46800int
46801main ()
46802{
46803
46804 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
46805 #error "no pch support"
46806 #endif
46807 #if (__GNUC__ < 3)
46808 #error "no pch support"
46809 #endif
46810 #if (__GNUC__ == 3) && \
46811 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
46812 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
46813 #error "no pch support"
46814 #endif
46815
46816 ;
46817 return 0;
46818}
46819_ACEOF
46820rm -f conftest.$ac_objext
46821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 46822 (eval $ac_compile) 2>conftest.er1
a848cd7e 46823 ac_status=$?
ac1cb8d3
VS
46824 grep -v '^ *+' conftest.er1 >conftest.err
46825 rm -f conftest.er1
46826 cat conftest.err >&5
a848cd7e
SC
46827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46828 (exit $ac_status); } &&
5ff751d6 46829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
46830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46831 (eval $ac_try) 2>&5
46832 ac_status=$?
46833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46834 (exit $ac_status); }; } &&
46835 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
46836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46837 (eval $ac_try) 2>&5
46838 ac_status=$?
46839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46840 (exit $ac_status); }; }; then
46841
46842 echo "$as_me:$LINENO: result: yes" >&5
46843echo "${ECHO_T}yes" >&6
a848cd7e
SC
46844 GCC_PCH=1
46845
46846else
46847 echo "$as_me: failed program was:" >&5
46848sed 's/^/| /' conftest.$ac_ext >&5
46849
46850
46851 echo "$as_me:$LINENO: result: no" >&5
46852echo "${ECHO_T}no" >&6
46853
46854fi
ac1cb8d3 46855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 46856 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
46857
46858D='$'
46859cat <<EOF >bk-make-pch
a848cd7e
SC
46860#!/bin/sh
46861
46862# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
46863# script. It is used to generated precompiled headers.
46864#
46865# Permission is given to use this file in any way.
46866
1e9e8aba
DE
46867outfile="${D}{1}"
46868header="${D}{2}"
a848cd7e
SC
46869shift
46870shift
46871
46872compiler=
46873headerfile=
1e9e8aba
DE
46874while test ${D}{#} -gt 0; do
46875 case "${D}{1}" in
a848cd7e 46876 -I* )
1e9e8aba
DE
46877 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
46878 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
46879 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
46880 fi
46881 ;;
46882 esac
1e9e8aba 46883 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
46884 shift
46885done
46886
1e9e8aba
DE
46887if test "x${D}{headerfile}" = "x" ; then
46888 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 46889else
1e9e8aba
DE
46890 if test -f ${D}{outfile} ; then
46891 rm -f ${D}{outfile}
a848cd7e 46892 else
1e9e8aba 46893 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 46894 fi
1e9e8aba 46895 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
46896 mkdir -p .deps
46897 # can do this because gcc is >= 3.4:
1e9e8aba
DE
46898 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
46899 exit ${D}{?}
a848cd7e
SC
46900fi
46901EOF
1e9e8aba 46902
a848cd7e
SC
46903 chmod +x bk-make-pch
46904 fi
46905 fi
46906 fi
46907
46908
46909
a848cd7e
SC
46910 COND_BUILD_DEBUG="#"
46911 if test "x$BUILD" = "xdebug" ; then
46912 COND_BUILD_DEBUG=""
46913 fi
46914
46915 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
46916 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
46917 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
46918 fi
46919
46920 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
46921 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
46922 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
46923 fi
46924
46925 COND_BUILD_DEBUG_UNICODE_0="#"
46926 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
46927 COND_BUILD_DEBUG_UNICODE_0=""
46928 fi
46929
46930 COND_BUILD_DEBUG_UNICODE_1="#"
46931 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
46932 COND_BUILD_DEBUG_UNICODE_1=""
46933 fi
46934
46935 COND_BUILD_RELEASE="#"
46936 if test "x$BUILD" = "xrelease" ; then
46937 COND_BUILD_RELEASE=""
46938 fi
46939
46940 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
46941 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
46942 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
46943 fi
46944
46945 COND_BUILD_RELEASE_UNICODE_0="#"
46946 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
46947 COND_BUILD_RELEASE_UNICODE_0=""
46948 fi
46949
46950 COND_BUILD_RELEASE_UNICODE_1="#"
46951 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
46952 COND_BUILD_RELEASE_UNICODE_1=""
46953 fi
46954
46955 COND_DEBUG_FLAG_1="#"
46956 if test "x$DEBUG_FLAG" = "x1" ; then
46957 COND_DEBUG_FLAG_1=""
46958 fi
46959
46960 COND_DEBUG_INFO_0="#"
46961 if test "x$DEBUG_INFO" = "x0" ; then
46962 COND_DEBUG_INFO_0=""
46963 fi
46964
46965 COND_DEBUG_INFO_1="#"
46966 if test "x$DEBUG_INFO" = "x1" ; then
46967 COND_DEBUG_INFO_1=""
46968 fi
46969
46970 COND_DEPS_TRACKING_0="#"
46971 if test "x$DEPS_TRACKING" = "x0" ; then
46972 COND_DEPS_TRACKING_0=""
46973 fi
46974
46975 COND_DEPS_TRACKING_1="#"
46976 if test "x$DEPS_TRACKING" = "x1" ; then
46977 COND_DEPS_TRACKING_1=""
46978 fi
46979
46980 COND_GCC_PCH_1="#"
46981 if test "x$GCC_PCH" = "x1" ; then
46982 COND_GCC_PCH_1=""
46983 fi
46984
46985 COND_MONOLITHIC_0="#"
46986 if test "x$MONOLITHIC" = "x0" ; then
46987 COND_MONOLITHIC_0=""
46988 fi
46989
46990 COND_MONOLITHIC_0_SHARED_0="#"
46991 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
46992 COND_MONOLITHIC_0_SHARED_0=""
46993 fi
46994
46995 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
46996 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
46997 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
46998 fi
46999
90970d69
DE
47000 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
47001 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47002 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
47003 fi
47004
a848cd7e
SC
47005 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
47006 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47007 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
47008 fi
47009
6671c68b
VZ
47010 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
47011 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47012 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
47013 fi
47014
a848cd7e
SC
47015 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
47016 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
47017 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
47018 fi
47019
ceec2216
RL
47020 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
47021 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47022 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
47023 fi
47024
a848cd7e
SC
47025 COND_MONOLITHIC_0_SHARED_1="#"
47026 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
47027 COND_MONOLITHIC_0_SHARED_1=""
47028 fi
47029
47030 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
47031 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
47032 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
47033 fi
47034
90970d69
DE
47035 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
47036 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
47037 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
47038 fi
47039
a848cd7e
SC
47040 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
47041 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
47042 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
47043 fi
47044
6671c68b
VZ
47045 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
47046 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
47047 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
47048 fi
47049
a848cd7e
SC
47050 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
47051 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
47052 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
47053 fi
47054
ceec2216
RL
47055 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
47056 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47057 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
47058 fi
47059
a848cd7e
SC
47060 COND_MONOLITHIC_0_USE_ODBC_1="#"
47061 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
47062 COND_MONOLITHIC_0_USE_ODBC_1=""
47063 fi
47064
47065 COND_MONOLITHIC_1="#"
47066 if test "x$MONOLITHIC" = "x1" ; then
47067 COND_MONOLITHIC_1=""
47068 fi
47069
47070 COND_MONOLITHIC_1_SHARED_0="#"
47071 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
47072 COND_MONOLITHIC_1_SHARED_0=""
47073 fi
47074
47075 COND_MONOLITHIC_1_SHARED_1="#"
47076 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
47077 COND_MONOLITHIC_1_SHARED_1=""
47078 fi
47079
47080 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
47081 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
47082 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
47083 fi
47084
47085 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
47086 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
47087 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
47088 fi
47089
eb730a0c
JS
47090 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
47091 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47092 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
47093 fi
47094
a848cd7e
SC
47095 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
47096 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
47097 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
47098 fi
47099
47100 COND_PLATFORM_MACOSX_1="#"
47101 if test "x$PLATFORM_MACOSX" = "x1" ; then
47102 COND_PLATFORM_MACOSX_1=""
47103 fi
47104
a30f955f
VS
47105 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
47106 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
47107 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
47108 fi
47109
a848cd7e
SC
47110 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
47111 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
47112 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
47113 fi
47114
47115 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
47116 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
47117 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
47118 fi
47119
47120 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
47121 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
47122 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
47123 fi
47124
fc480dc1
DE
47125 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
47126 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47127 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
47128 fi
47129
1e9e8aba
DE
47130 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47131 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47132 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47133 fi
47134
ebee3cd0
VS
47135 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
47136 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
47137 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
47138 fi
47139
47140 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
47141 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
47142 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
47143 fi
47144
a848cd7e
SC
47145 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
47146 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
47147 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
47148 fi
47149
47150 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
47151 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47152 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
47153 fi
47154
b48a2016
DE
47155 COND_PLATFORM_MACOS_1="#"
47156 if test "x$PLATFORM_MACOS" = "x1" ; then
47157 COND_PLATFORM_MACOS_1=""
47158 fi
47159
083508af
MW
47160 COND_PLATFORM_MAC_1="#"
47161 if test "x$PLATFORM_MAC" = "x1" ; then
47162 COND_PLATFORM_MAC_1=""
47163 fi
47164
83d8eb47
MW
47165 COND_PLATFORM_MSDOS_1="#"
47166 if test "x$PLATFORM_MSDOS" = "x1" ; then
47167 COND_PLATFORM_MSDOS_1=""
47168 fi
47169
a848cd7e
SC
47170 COND_PLATFORM_OS2_1="#"
47171 if test "x$PLATFORM_OS2" = "x1" ; then
47172 COND_PLATFORM_OS2_1=""
47173 fi
47174
47175 COND_PLATFORM_UNIX_0="#"
47176 if test "x$PLATFORM_UNIX" = "x0" ; then
47177 COND_PLATFORM_UNIX_0=""
47178 fi
47179
47180 COND_PLATFORM_UNIX_1="#"
47181 if test "x$PLATFORM_UNIX" = "x1" ; then
47182 COND_PLATFORM_UNIX_1=""
47183 fi
47184
47185 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
47186 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
47187 COND_PLATFORM_UNIX_1_USE_GUI_1=""
47188 fi
47189
47190 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
47191 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
47192 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
47193 fi
47194
47195 COND_PLATFORM_WIN32_0="#"
47196 if test "x$PLATFORM_WIN32" = "x0" ; then
47197 COND_PLATFORM_WIN32_0=""
47198 fi
47199
47200 COND_PLATFORM_WIN32_1="#"
47201 if test "x$PLATFORM_WIN32" = "x1" ; then
47202 COND_PLATFORM_WIN32_1=""
47203 fi
47204
47205 COND_SHARED_0="#"
47206 if test "x$SHARED" = "x0" ; then
47207 COND_SHARED_0=""
47208 fi
47209
083508af
MW
47210 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
47211 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
47212 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
47213 fi
47214
47215 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
47216 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47217 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
47218 fi
47219
47220 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
47221 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
47222 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
47223 fi
47224
a848cd7e
SC
47225 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
47226 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47227 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
47228 fi
47229
47230 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47231 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47232 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47233 fi
47234
47235 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47236 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47237 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47238 fi
47239
47240 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47241 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47242 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47243 fi
47244
083508af
MW
47245 COND_SHARED_0_USE_XRC_1="#"
47246 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
47247 COND_SHARED_0_USE_XRC_1=""
47248 fi
47249
a848cd7e
SC
47250 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
47251 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
47252 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
47253 fi
47254
47255 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
47256 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
47257 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
47258 fi
47259
47260 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
47261 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
47262 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
47263 fi
47264
47265 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
47266 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
47267 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
47268 fi
47269
47270 COND_SHARED_1="#"
47271 if test "x$SHARED" = "x1" ; then
47272 COND_SHARED_1=""
47273 fi
47274
47275 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
47276 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
47277 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
47278 fi
47279
083508af
MW
47280 COND_SHARED_1_USE_XRC_1="#"
47281 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
47282 COND_SHARED_1_USE_XRC_1=""
47283 fi
47284
a30f955f
VS
47285 COND_TOOLKIT_="#"
47286 if test "x$TOOLKIT" = "x" ; then
47287 COND_TOOLKIT_=""
47288 fi
47289
a848cd7e
SC
47290 COND_TOOLKIT_COCOA="#"
47291 if test "x$TOOLKIT" = "xCOCOA" ; then
47292 COND_TOOLKIT_COCOA=""
47293 fi
47294
a49baeab
DE
47295 COND_TOOLKIT_COCOA_USE_GUI_1="#"
47296 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
47297 COND_TOOLKIT_COCOA_USE_GUI_1=""
47298 fi
47299
a848cd7e
SC
47300 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
47301 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47302 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
47303 fi
47304
47305 COND_TOOLKIT_GTK="#"
47306 if test "x$TOOLKIT" = "xGTK" ; then
47307 COND_TOOLKIT_GTK=""
47308 fi
47309
47310 COND_TOOLKIT_GTK_USE_GUI_1="#"
47311 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
47312 COND_TOOLKIT_GTK_USE_GUI_1=""
47313 fi
47314
47315 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
47316 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47317 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
47318 fi
47319
47320 COND_TOOLKIT_MAC="#"
47321 if test "x$TOOLKIT" = "xMAC" ; then
47322 COND_TOOLKIT_MAC=""
47323 fi
47324
47325 COND_TOOLKIT_MAC_USE_GUI_1="#"
47326 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
47327 COND_TOOLKIT_MAC_USE_GUI_1=""
47328 fi
47329
47330 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
47331 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47332 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
47333 fi
47334
47335 COND_TOOLKIT_MGL="#"
47336 if test "x$TOOLKIT" = "xMGL" ; then
47337 COND_TOOLKIT_MGL=""
47338 fi
47339
47340 COND_TOOLKIT_MGL_USE_GUI_1="#"
47341 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
47342 COND_TOOLKIT_MGL_USE_GUI_1=""
47343 fi
47344
47345 COND_TOOLKIT_MOTIF="#"
47346 if test "x$TOOLKIT" = "xMOTIF" ; then
47347 COND_TOOLKIT_MOTIF=""
47348 fi
47349
47350 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
47351 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
47352 COND_TOOLKIT_MOTIF_USE_GUI_1=""
47353 fi
47354
47355 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
47356 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47357 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
47358 fi
47359
47360 COND_TOOLKIT_MSW="#"
47361 if test "x$TOOLKIT" = "xMSW" ; then
47362 COND_TOOLKIT_MSW=""
47363 fi
47364
47365 COND_TOOLKIT_MSW_USE_GUI_1="#"
47366 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
47367 COND_TOOLKIT_MSW_USE_GUI_1=""
47368 fi
47369
47370 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
47371 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47372 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
47373 fi
47374
0ee4059d
DE
47375 COND_TOOLKIT_MSW_WXUNIV_0="#"
47376 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
47377 COND_TOOLKIT_MSW_WXUNIV_0=""
47378 fi
47379
a848cd7e
SC
47380 COND_TOOLKIT_PM="#"
47381 if test "x$TOOLKIT" = "xPM" ; then
47382 COND_TOOLKIT_PM=""
47383 fi
47384
47385 COND_TOOLKIT_PM_USE_GUI_1="#"
47386 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
47387 COND_TOOLKIT_PM_USE_GUI_1=""
47388 fi
47389
47390 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
47391 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47392 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
47393 fi
47394
3fd9c298
DE
47395 COND_TOOLKIT_WINCE="#"
47396 if test "x$TOOLKIT" = "xWINCE" ; then
47397 COND_TOOLKIT_WINCE=""
47398 fi
47399
47400 COND_TOOLKIT_WINCE_USE_GUI_1="#"
47401 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
47402 COND_TOOLKIT_WINCE_USE_GUI_1=""
47403 fi
47404
47405 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
47406 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47407 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
47408 fi
47409
0ee4059d
DE
47410 COND_TOOLKIT_WINCE_WXUNIV_0="#"
47411 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
47412 COND_TOOLKIT_WINCE_WXUNIV_0=""
47413 fi
47414
a848cd7e
SC
47415 COND_TOOLKIT_X11="#"
47416 if test "x$TOOLKIT" = "xX11" ; then
47417 COND_TOOLKIT_X11=""
47418 fi
47419
47420 COND_TOOLKIT_X11_USE_GUI_1="#"
47421 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
47422 COND_TOOLKIT_X11_USE_GUI_1=""
47423 fi
47424
47425 COND_UNICODE_1="#"
47426 if test "x$UNICODE" = "x1" ; then
47427 COND_UNICODE_1=""
47428 fi
47429
47430 COND_USE_EXCEPTIONS_0="#"
47431 if test "x$USE_EXCEPTIONS" = "x0" ; then
47432 COND_USE_EXCEPTIONS_0=""
47433 fi
47434
47435 COND_USE_EXCEPTIONS_1="#"
47436 if test "x$USE_EXCEPTIONS" = "x1" ; then
47437 COND_USE_EXCEPTIONS_1=""
47438 fi
47439
47440 COND_USE_GUI_0="#"
47441 if test "x$USE_GUI" = "x0" ; then
47442 COND_USE_GUI_0=""
47443 fi
47444
47445 COND_USE_GUI_1="#"
47446 if test "x$USE_GUI" = "x1" ; then
47447 COND_USE_GUI_1=""
47448 fi
47449
47450 COND_USE_GUI_1_WXUNIV_0="#"
47451 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
47452 COND_USE_GUI_1_WXUNIV_0=""
47453 fi
47454
47455 COND_USE_GUI_1_WXUNIV_1="#"
47456 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
47457 COND_USE_GUI_1_WXUNIV_1=""
47458 fi
47459
47460 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
47461 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47462 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
47463 fi
47464
47465 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
47466 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47467 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
47468 fi
47469
47470 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
47471 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47472 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
47473 fi
47474
083508af
MW
47475 COND_USE_ODBC_1="#"
47476 if test "x$USE_ODBC" = "x1" ; then
47477 COND_USE_ODBC_1=""
47478 fi
47479
47480 COND_USE_OPENGL_1="#"
47481 if test "x$USE_OPENGL" = "x1" ; then
47482 COND_USE_OPENGL_1=""
47483 fi
47484
a848cd7e
SC
47485 COND_USE_PLUGINS_0="#"
47486 if test "x$USE_PLUGINS" = "x0" ; then
47487 COND_USE_PLUGINS_0=""
47488 fi
47489
0b78747f
MW
47490 COND_USE_RTTI_0="#"
47491 if test "x$USE_RTTI" = "x0" ; then
47492 COND_USE_RTTI_0=""
47493 fi
47494
47495 COND_USE_RTTI_1="#"
47496 if test "x$USE_RTTI" = "x1" ; then
47497 COND_USE_RTTI_1=""
47498 fi
47499
a848cd7e
SC
47500 COND_USE_SOSYMLINKS_1="#"
47501 if test "x$USE_SOSYMLINKS" = "x1" ; then
47502 COND_USE_SOSYMLINKS_1=""
47503 fi
47504
eb730a0c
JS
47505 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
47506 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
47507 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
47508 fi
47509
a848cd7e
SC
47510 COND_USE_SOVERLINUX_1="#"
47511 if test "x$USE_SOVERLINUX" = "x1" ; then
47512 COND_USE_SOVERLINUX_1=""
47513 fi
47514
47515 COND_USE_SOVERSION_0="#"
47516 if test "x$USE_SOVERSION" = "x0" ; then
47517 COND_USE_SOVERSION_0=""
47518 fi
47519
47520 COND_USE_SOVERSOLARIS_1="#"
47521 if test "x$USE_SOVERSOLARIS" = "x1" ; then
47522 COND_USE_SOVERSOLARIS_1=""
47523 fi
47524
0b78747f
MW
47525 COND_USE_THREADS_0="#"
47526 if test "x$USE_THREADS" = "x0" ; then
47527 COND_USE_THREADS_0=""
47528 fi
47529
47530 COND_USE_THREADS_1="#"
47531 if test "x$USE_THREADS" = "x1" ; then
47532 COND_USE_THREADS_1=""
47533 fi
47534
a13a7f89
RL
47535 COND_USE_XRC_1="#"
47536 if test "x$USE_XRC" = "x1" ; then
47537 COND_USE_XRC_1=""
47538 fi
47539
eb730a0c
JS
47540 COND_WINDOWS_IMPLIB_1="#"
47541 if test "x$WINDOWS_IMPLIB" = "x1" ; then
47542 COND_WINDOWS_IMPLIB_1=""
47543 fi
47544
a848cd7e
SC
47545 COND_WITH_PLUGIN_SDL_1="#"
47546 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
47547 COND_WITH_PLUGIN_SDL_1=""
47548 fi
47549
1e6eb025
VZ
47550 COND_WXUNIV_0="#"
47551 if test "x$WXUNIV" = "x0" ; then
47552 COND_WXUNIV_0=""
47553 fi
47554
a848cd7e
SC
47555 COND_WXUNIV_1="#"
47556 if test "x$WXUNIV" = "x1" ; then
47557 COND_WXUNIV_1=""
47558 fi
47559
47560 COND_WXUSE_EXPAT_BUILTIN="#"
47561 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
47562 COND_WXUSE_EXPAT_BUILTIN=""
47563 fi
47564
47565 COND_WXUSE_LIBJPEG_BUILTIN="#"
47566 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
47567 COND_WXUSE_LIBJPEG_BUILTIN=""
47568 fi
47569
47570 COND_WXUSE_LIBPNG_BUILTIN="#"
47571 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
47572 COND_WXUSE_LIBPNG_BUILTIN=""
47573 fi
47574
47575 COND_WXUSE_LIBTIFF_BUILTIN="#"
47576 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
47577 COND_WXUSE_LIBTIFF_BUILTIN=""
47578 fi
47579
47580 COND_WXUSE_ODBC_BUILTIN="#"
47581 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
47582 COND_WXUSE_ODBC_BUILTIN=""
47583 fi
47584
47585 COND_WXUSE_REGEX_BUILTIN="#"
47586 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
47587 COND_WXUSE_REGEX_BUILTIN=""
47588 fi
47589
47590 COND_WXUSE_ZLIB_BUILTIN="#"
47591 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
47592 COND_WXUSE_ZLIB_BUILTIN=""
47593 fi
47594
47595
47596
810b94f0
MW
47597 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
47598 { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
47599echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
47600 { (exit 1); exit 1; }; }
47601 fi
47602
2057db16
VS
47603 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
47604 { { 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
47605echo "$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;}
47606 { (exit 1); exit 1; }; }
47607 fi
47608
a848cd7e 47609
ceec2216
RL
47610if test "$wxUSE_SHARED" = "yes"; then
47611
47612 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
47613 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
47614
5b674b9d
DE
47615 case "${host}" in
47616 *-pc-os2_emx | *-pc-os2-emx )
47617 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47618 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
47619 cp -p ${srcdir}/src/os2/dllnames.sh .
47620 cp -p ${srcdir}/src/os2/dllar.sh .
47621 ;;
47622 esac
ceec2216
RL
47623else
47624
47625 EXE_LINKER="$CXX -o"
47626
47627fi
69120ee4
VZ
47628if test "$wxUSE_OMF" = "yes"; then
47629 case "${host}" in
47630 *-pc-os2_emx | *-pc-os2-emx )
47631 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
47632 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
47633 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
47634 ;;
47635 esac
47636fi
a848cd7e 47637
c08ebc62 47638if test $GCC_PCH = 1 ; then
254e8e29 47639 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 47640fi
a848cd7e 47641
5ff751d6 47642WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
47643
47644SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
47645
47646
47647
47648
47649
47650
47651
47652
47653
47654
47655
47656
47657
47658
47659
47660
47661
47662
47663
47664
47665
47666
47667
47668
47669
47670
47671
47672
47673
47674
47675
47676
47677
47678
47679
47680
47681
47682
47683
47684
47685
47686
a848cd7e
SC
47687
47688
47689
47690
47691
47692
47693
47694
47695
47696
47697
47698
a848cd7e
SC
47699
47700
ddd14b14 47701
370d2fd7 47702
8ced02f6 47703
a848cd7e
SC
47704
47705
47706echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
47707echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 47708set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
47709if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
47710 echo $ECHO_N "(cached) $ECHO_C" >&6
47711else
47712 cat >conftest.make <<\_ACEOF
47713all:
47714 @echo 'ac_maketemp="$(MAKE)"'
47715_ACEOF
47716# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
47717eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
47718if test -n "$ac_maketemp"; then
47719 eval ac_cv_prog_make_${ac_make}_set=yes
47720else
47721 eval ac_cv_prog_make_${ac_make}_set=no
47722fi
47723rm -f conftest.make
47724fi
47725if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
47726 echo "$as_me:$LINENO: result: yes" >&5
47727echo "${ECHO_T}yes" >&6
47728 SET_MAKE=
47729else
47730 echo "$as_me:$LINENO: result: no" >&5
47731echo "${ECHO_T}no" >&6
47732 SET_MAKE="MAKE=${MAKE-make}"
47733fi
47734
47735
a848cd7e 47736
ceec2216
RL
47737 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
47738
a848cd7e 47739
5c60e845
MW
47740if test "$USE_WIN32" = 1; then
47741 ac_config_commands="$ac_config_commands
47742 rcdefs.h
47743 "
47744
47745fi
47746
ceec2216 47747 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 47748
a848cd7e 47749
ceec2216 47750 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 47751
ceec2216
RL
47752
47753 ac_config_files="$ac_config_files version-script Makefile"
47754
47755
5c60e845 47756 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
47757
47758
9103d280 47759
1c14217d 47760if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
47761if test "$wxUSE_GUI" = "yes"; then
47762 SUBDIRS="samples demos utils contrib"
47763else SUBDIRS="samples utils"
47764fi
47765
47766
47767
47768# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
47769if test "${with_cppunit_prefix+set}" = set; then
47770 withval="$with_cppunit_prefix"
47771 cppunit_config_prefix="$withval"
47772else
47773 cppunit_config_prefix=""
47774fi;
47775
47776# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
47777if test "${with_cppunit_exec_prefix+set}" = set; then
47778 withval="$with_cppunit_exec_prefix"
47779 cppunit_config_exec_prefix="$withval"
47780else
47781 cppunit_config_exec_prefix=""
47782fi;
47783
47784 if test x$cppunit_config_exec_prefix != x ; then
47785 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
47786 if test x${CPPUNIT_CONFIG+set} != xset ; then
47787 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
47788 fi
47789 fi
47790 if test x$cppunit_config_prefix != x ; then
47791 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
47792 if test x${CPPUNIT_CONFIG+set} != xset ; then
47793 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
47794 fi
47795 fi
47796
47797 # Extract the first word of "cppunit-config", so it can be a program name with args.
47798set dummy cppunit-config; ac_word=$2
47799echo "$as_me:$LINENO: checking for $ac_word" >&5
47800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
47801if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
47802 echo $ECHO_N "(cached) $ECHO_C" >&6
47803else
47804 case $CPPUNIT_CONFIG in
47805 [\\/]* | ?:[\\/]*)
47806 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
47807 ;;
47808 *)
47809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47810for as_dir in $PATH
47811do
47812 IFS=$as_save_IFS
47813 test -z "$as_dir" && as_dir=.
47814 for ac_exec_ext in '' $ac_executable_extensions; do
47815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
47816 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
47817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
47818 break 2
47819 fi
47820done
47821done
47822
47823 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
47824 ;;
47825esac
47826fi
47827CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
47828
47829if test -n "$CPPUNIT_CONFIG"; then
47830 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
47831echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
47832else
47833 echo "$as_me:$LINENO: result: no" >&5
47834echo "${ECHO_T}no" >&6
47835fi
47836
47837 cppunit_version_min=1.8.0
47838
47839 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
47840echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
47841 no_cppunit=""
47842 if test "$CPPUNIT_CONFIG" = "no" ; then
47843 no_cppunit=yes
47844 else
47845 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
47846 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
47847 cppunit_version=`$CPPUNIT_CONFIG --version`
47848
47849 cppunit_major_version=`echo $cppunit_version | \
47850 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
47851 cppunit_minor_version=`echo $cppunit_version | \
47852 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
47853 cppunit_micro_version=`echo $cppunit_version | \
47854 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
47855
47856 cppunit_major_min=`echo $cppunit_version_min | \
47857 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
47858 cppunit_minor_min=`echo $cppunit_version_min | \
47859 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
47860 cppunit_micro_min=`echo $cppunit_version_min | \
47861 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
47862
47863 cppunit_version_proper=`expr \
47864 $cppunit_major_version \> $cppunit_major_min \| \
47865 $cppunit_major_version \= $cppunit_major_min \& \
47866 $cppunit_minor_version \> $cppunit_minor_min \| \
47867 $cppunit_major_version \= $cppunit_major_min \& \
47868 $cppunit_minor_version \= $cppunit_minor_min \& \
47869 $cppunit_micro_version \>= $cppunit_micro_min `
47870
47871 if test "$cppunit_version_proper" = "1" ; then
47872 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
47873echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
47874 else
47875 echo "$as_me:$LINENO: result: no" >&5
47876echo "${ECHO_T}no" >&6
47877 no_cppunit=yes
47878 fi
47879 fi
47880
47881 if test "x$no_cppunit" = x ; then
c2218763 47882 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
47883 else
47884 CPPUNIT_CFLAGS=""
47885 CPPUNIT_LIBS=""
c2218763 47886 :
a848cd7e
SC
47887 fi
47888
47889
47890
47891
47892
47893for subdir in `echo $SUBDIRS`; do
47894 if test -d ${srcdir}/${subdir} ; then
47895 if test "$wxUSE_GUI" = "yes"; then
47896 if test ${subdir} = "samples"; then
47897 makefiles="samples/Makefile.in $makefiles"
47898 for sample in `echo $SAMPLES_SUBDIRS`; do
47899 if test -d $srcdir/samples/$sample; then
47900 makefiles="samples/$sample/Makefile.in $makefiles"
47901 fi
47902 done
9c112555
MW
47903 else
47904 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
47905 eval "disabled=\$$disabled_var"
47906 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
47907 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
47908 fi
47909 else if test ${subdir} = "samples"; then
47910 makefiles="samples/Makefile.in samples/console/Makefile.in"
47911 elif test ${subdir} = "utils"; then
6537ccf8
VS
47912 makefiles=""
47913 for util in HelpGen tex2rtf ; do
47914 if test -d $srcdir/utils/$util ; then
47915 makefiles="utils/$util/Makefile.in \
47916 utils/$util/src/Makefile.in \
47917 $makefiles"
47918 fi
47919 done
a848cd7e
SC
47920 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
47921 fi
47922 fi
47923
47924 for mkin in $makefiles ; do
47925 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
47926 ac_config_files="$ac_config_files $mk"
47927
47928 done
47929 fi
47930done
1c14217d 47931fi
a848cd7e
SC
47932cat >confcache <<\_ACEOF
47933# This file is a shell script that caches the results of configure
47934# tests run on this system so they can be shared between configure
47935# scripts and configure runs, see configure's option --config-cache.
47936# It is not useful on other systems. If it contains results you don't
47937# want to keep, you may remove or edit it.
47938#
47939# config.status only pays attention to the cache file if you give it
47940# the --recheck option to rerun configure.
47941#
47942# `ac_cv_env_foo' variables (set or unset) will be overridden when
47943# loading this file, other *unset* `ac_cv_foo' will be assigned the
47944# following values.
47945
47946_ACEOF
47947
47948# The following way of writing the cache mishandles newlines in values,
47949# but we know of no workaround that is simple, portable, and efficient.
47950# So, don't put newlines in cache variables' values.
47951# Ultrix sh set writes to stderr and can't be redirected directly,
47952# and sets the high bit in the cache file unless we assign to the vars.
47953{
47954 (set) 2>&1 |
47955 case `(ac_space=' '; set | grep ac_space) 2>&1` in
47956 *ac_space=\ *)
47957 # `set' does not quote correctly, so add quotes (double-quote
47958 # substitution turns \\\\ into \\, and sed turns \\ into \).
47959 sed -n \
ac1cb8d3
VS
47960 "s/'/'\\\\''/g;
47961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
47962 ;;
47963 *)
47964 # `set' quotes correctly as required by POSIX, so do not add quotes.
47965 sed -n \
ac1cb8d3 47966 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
47967 ;;
47968 esac;
47969} |
47970 sed '
47971 t clear
47972 : clear
47973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
47974 t end
47975 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
47976 : end' >>confcache
47977if diff $cache_file confcache >/dev/null 2>&1; then :; else
47978 if test -w $cache_file; then
47979 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
47980 cat confcache >$cache_file
47981 else
47982 echo "not updating unwritable cache $cache_file"
47983 fi
47984fi
47985rm -f confcache
47986
47987test "x$prefix" = xNONE && prefix=$ac_default_prefix
47988# Let make expand exec_prefix.
47989test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
47990
47991# VPATH may cause trouble with some makes, so we remove $(srcdir),
47992# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
47993# trailing colons and then remove the whole line if VPATH becomes empty
47994# (actually we leave an empty line to preserve line numbers).
47995if test "x$srcdir" = x.; then
ac1cb8d3 47996 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
47997s/:*\$(srcdir):*/:/;
47998s/:*\${srcdir}:*/:/;
47999s/:*@srcdir@:*/:/;
ac1cb8d3 48000s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 48001s/:*$//;
ac1cb8d3 48002s/^[^=]*=[ ]*$//;
a848cd7e
SC
48003}'
48004fi
48005
48006DEFS=-DHAVE_CONFIG_H
48007
48008ac_libobjs=
48009ac_ltlibobjs=
48010for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
48011 # 1. Remove the extension, and $U if already installed.
48012 ac_i=`echo "$ac_i" |
ac1cb8d3 48013 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
48014 # 2. Add them.
48015 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
48016 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
48017done
48018LIBOBJS=$ac_libobjs
48019
48020LTLIBOBJS=$ac_ltlibobjs
48021
48022
48023
48024: ${CONFIG_STATUS=./config.status}
48025ac_clean_files_save=$ac_clean_files
48026ac_clean_files="$ac_clean_files $CONFIG_STATUS"
48027{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
48028echo "$as_me: creating $CONFIG_STATUS" >&6;}
48029cat >$CONFIG_STATUS <<_ACEOF
48030#! $SHELL
48031# Generated by $as_me.
48032# Run this file to recreate the current configuration.
48033# Compiler output produced by configure, useful for debugging
48034# configure, is in config.log if it exists.
48035
48036debug=false
48037ac_cs_recheck=false
48038ac_cs_silent=false
48039SHELL=\${CONFIG_SHELL-$SHELL}
48040_ACEOF
48041
48042cat >>$CONFIG_STATUS <<\_ACEOF
48043## --------------------- ##
48044## M4sh Initialization. ##
48045## --------------------- ##
48046
48047# Be Bourne compatible
48048if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
48049 emulate sh
48050 NULLCMD=:
48051 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
48052 # is contrary to our usage. Disable this feature.
48053 alias -g '${1+"$@"}'='"$@"'
48054elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48055 set -o posix
48056fi
ac1cb8d3 48057DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
48058
48059# Support unset when possible.
ac1cb8d3 48060if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
48061 as_unset=unset
48062else
48063 as_unset=false
48064fi
48065
48066
48067# Work around bugs in pre-3.0 UWIN ksh.
48068$as_unset ENV MAIL MAILPATH
48069PS1='$ '
48070PS2='> '
48071PS4='+ '
48072
48073# NLS nuisances.
48074for as_var in \
48075 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
48076 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
48077 LC_TELEPHONE LC_TIME
48078do
ac1cb8d3 48079 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
48080 eval $as_var=C; export $as_var
48081 else
48082 $as_unset $as_var
48083 fi
48084done
48085
48086# Required to use basename.
48087if expr a : '\(a\)' >/dev/null 2>&1; then
48088 as_expr=expr
48089else
48090 as_expr=false
48091fi
48092
48093if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
48094 as_basename=basename
48095else
48096 as_basename=false
48097fi
48098
48099
48100# Name of the executable.
48101as_me=`$as_basename "$0" ||
48102$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
48103 X"$0" : 'X\(//\)$' \| \
48104 X"$0" : 'X\(/\)$' \| \
48105 . : '\(.\)' 2>/dev/null ||
48106echo X/"$0" |
48107 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
48108 /^X\/\(\/\/\)$/{ s//\1/; q; }
48109 /^X\/\(\/\).*/{ s//\1/; q; }
48110 s/.*/./; q'`
48111
48112
48113# PATH needs CR, and LINENO needs CR and PATH.
48114# Avoid depending upon Character Ranges.
48115as_cr_letters='abcdefghijklmnopqrstuvwxyz'
48116as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
48117as_cr_Letters=$as_cr_letters$as_cr_LETTERS
48118as_cr_digits='0123456789'
48119as_cr_alnum=$as_cr_Letters$as_cr_digits
48120
48121# The user is always right.
48122if test "${PATH_SEPARATOR+set}" != set; then
48123 echo "#! /bin/sh" >conf$$.sh
48124 echo "exit 0" >>conf$$.sh
48125 chmod +x conf$$.sh
48126 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48127 PATH_SEPARATOR=';'
48128 else
48129 PATH_SEPARATOR=:
48130 fi
48131 rm -f conf$$.sh
48132fi
48133
48134
48135 as_lineno_1=$LINENO
48136 as_lineno_2=$LINENO
48137 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48138 test "x$as_lineno_1" != "x$as_lineno_2" &&
48139 test "x$as_lineno_3" = "x$as_lineno_2" || {
48140 # Find who we are. Look in the path if we contain no path at all
48141 # relative or not.
48142 case $0 in
48143 *[\\/]* ) as_myself=$0 ;;
48144 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48145for as_dir in $PATH
48146do
48147 IFS=$as_save_IFS
48148 test -z "$as_dir" && as_dir=.
48149 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
48150done
48151
48152 ;;
48153 esac
48154 # We did not find ourselves, most probably we were run as `sh COMMAND'
48155 # in which case we are not to be found in the path.
48156 if test "x$as_myself" = x; then
48157 as_myself=$0
48158 fi
48159 if test ! -f "$as_myself"; then
48160 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
48161echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
48162 { (exit 1); exit 1; }; }
48163 fi
48164 case $CONFIG_SHELL in
48165 '')
48166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
48167for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
48168do
48169 IFS=$as_save_IFS
48170 test -z "$as_dir" && as_dir=.
48171 for as_base in sh bash ksh sh5; do
48172 case $as_dir in
48173 /*)
48174 if ("$as_dir/$as_base" -c '
48175 as_lineno_1=$LINENO
48176 as_lineno_2=$LINENO
48177 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
48178 test "x$as_lineno_1" != "x$as_lineno_2" &&
48179 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
48180 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
48181 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
48182 CONFIG_SHELL=$as_dir/$as_base
48183 export CONFIG_SHELL
48184 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
48185 fi;;
48186 esac
48187 done
48188done
48189;;
48190 esac
48191
48192 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
48193 # uniformly replaced by the line number. The first 'sed' inserts a
48194 # line-number line before each line; the second 'sed' does the real
48195 # work. The second script uses 'N' to pair each line-number line
48196 # with the numbered line, and appends trailing '-' during
48197 # substitution so that $LINENO is not a special case at line end.
48198 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
48199 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
48200 sed '=' <$as_myself |
48201 sed '
48202 N
48203 s,$,-,
48204 : loop
48205 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
48206 t loop
48207 s,-$,,
48208 s,^['$as_cr_digits']*\n,,
48209 ' >$as_me.lineno &&
48210 chmod +x $as_me.lineno ||
48211 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
48212echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
48213 { (exit 1); exit 1; }; }
48214
48215 # Don't try to exec as it changes $[0], causing all sort of problems
48216 # (the dirname of $[0] is not the place where we might find the
48217 # original and so on. Autoconf is especially sensible to this).
48218 . ./$as_me.lineno
48219 # Exit status is that of the last command.
48220 exit
48221}
48222
48223
48224case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
48225 *c*,-n*) ECHO_N= ECHO_C='
48226' ECHO_T=' ' ;;
48227 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
48228 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
48229esac
48230
48231if expr a : '\(a\)' >/dev/null 2>&1; then
48232 as_expr=expr
48233else
48234 as_expr=false
48235fi
48236
48237rm -f conf$$ conf$$.exe conf$$.file
48238echo >conf$$.file
48239if ln -s conf$$.file conf$$ 2>/dev/null; then
48240 # We could just check for DJGPP; but this test a) works b) is more generic
48241 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
48242 if test -f conf$$.exe; then
48243 # Don't use ln at all; we don't have any links
48244 as_ln_s='cp -p'
48245 else
48246 as_ln_s='ln -s'
48247 fi
48248elif ln conf$$.file conf$$ 2>/dev/null; then
48249 as_ln_s=ln
48250else
48251 as_ln_s='cp -p'
48252fi
48253rm -f conf$$ conf$$.exe conf$$.file
48254
48255if mkdir -p . 2>/dev/null; then
48256 as_mkdir_p=:
48257else
ac1cb8d3 48258 test -d ./-p && rmdir ./-p
a848cd7e
SC
48259 as_mkdir_p=false
48260fi
48261
48262as_executable_p="test -f"
48263
48264# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 48265as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48266
48267# Sed expression to map a string onto a valid variable name.
ac1cb8d3 48268as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
48269
48270
48271# IFS
48272# We need space, tab and new line, in precisely that order.
48273as_nl='
48274'
48275IFS=" $as_nl"
48276
48277# CDPATH.
48278$as_unset CDPATH
48279
48280exec 6>&1
48281
48282# Open the log real soon, to keep \$[0] and so on meaningful, and to
48283# report actual input values of CONFIG_FILES etc. instead of their
48284# values after options handling. Logging --version etc. is OK.
48285exec 5>>config.log
48286{
48287 echo
48288 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
48289## Running $as_me. ##
48290_ASBOX
48291} >&5
48292cat >&5 <<_CSEOF
48293
dd8df4fc 48294This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 48295generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
48296
48297 CONFIG_FILES = $CONFIG_FILES
48298 CONFIG_HEADERS = $CONFIG_HEADERS
48299 CONFIG_LINKS = $CONFIG_LINKS
48300 CONFIG_COMMANDS = $CONFIG_COMMANDS
48301 $ $0 $@
48302
48303_CSEOF
48304echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
48305echo >&5
48306_ACEOF
48307
48308# Files that config.status was made for.
48309if test -n "$ac_config_files"; then
48310 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
48311fi
48312
48313if test -n "$ac_config_headers"; then
48314 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
48315fi
48316
48317if test -n "$ac_config_links"; then
48318 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
48319fi
48320
48321if test -n "$ac_config_commands"; then
48322 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
48323fi
48324
48325cat >>$CONFIG_STATUS <<\_ACEOF
48326
48327ac_cs_usage="\
48328\`$as_me' instantiates files from templates according to the
48329current configuration.
48330
48331Usage: $0 [OPTIONS] [FILE]...
48332
48333 -h, --help print this help, then exit
48334 -V, --version print version number, then exit
48335 -q, --quiet do not print progress messages
48336 -d, --debug don't remove temporary files
48337 --recheck update $as_me by reconfiguring in the same conditions
48338 --file=FILE[:TEMPLATE]
ac1cb8d3 48339 instantiate the configuration file FILE
a848cd7e 48340 --header=FILE[:TEMPLATE]
ac1cb8d3 48341 instantiate the configuration header FILE
a848cd7e
SC
48342
48343Configuration files:
48344$config_files
48345
48346Configuration headers:
48347$config_headers
48348
48349Configuration commands:
48350$config_commands
48351
48352Report bugs to <bug-autoconf@gnu.org>."
48353_ACEOF
48354
48355cat >>$CONFIG_STATUS <<_ACEOF
48356ac_cs_version="\\
dd8df4fc 48357wxWidgets config.status 2.7.0
ac1cb8d3 48358configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
48359 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
48360
ac1cb8d3 48361Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
48362This config.status script is free software; the Free Software Foundation
48363gives unlimited permission to copy, distribute and modify it."
48364srcdir=$srcdir
48365INSTALL="$INSTALL"
48366_ACEOF
48367
48368cat >>$CONFIG_STATUS <<\_ACEOF
48369# If no file are specified by the user, then we need to provide default
48370# value. By we need to know if files were specified by the user.
48371ac_need_defaults=:
48372while test $# != 0
48373do
48374 case $1 in
48375 --*=*)
48376 ac_option=`expr "x$1" : 'x\([^=]*\)='`
48377 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
48378 ac_shift=:
48379 ;;
48380 -*)
48381 ac_option=$1
48382 ac_optarg=$2
48383 ac_shift=shift
48384 ;;
48385 *) # This is not an option, so the user has probably given explicit
48386 # arguments.
48387 ac_option=$1
48388 ac_need_defaults=false;;
48389 esac
48390
48391 case $ac_option in
48392 # Handling of the options.
48393_ACEOF
48394cat >>$CONFIG_STATUS <<\_ACEOF
48395 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
48396 ac_cs_recheck=: ;;
48397 --version | --vers* | -V )
48398 echo "$ac_cs_version"; exit 0 ;;
48399 --he | --h)
48400 # Conflict between --help and --header
48401 { { echo "$as_me:$LINENO: error: ambiguous option: $1
48402Try \`$0 --help' for more information." >&5
48403echo "$as_me: error: ambiguous option: $1
48404Try \`$0 --help' for more information." >&2;}
48405 { (exit 1); exit 1; }; };;
48406 --help | --hel | -h )
48407 echo "$ac_cs_usage"; exit 0 ;;
48408 --debug | --d* | -d )
48409 debug=: ;;
48410 --file | --fil | --fi | --f )
48411 $ac_shift
48412 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
48413 ac_need_defaults=false;;
48414 --header | --heade | --head | --hea )
48415 $ac_shift
48416 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
48417 ac_need_defaults=false;;
48418 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48419 | -silent | --silent | --silen | --sile | --sil | --si | --s)
48420 ac_cs_silent=: ;;
48421
48422 # This is an error.
48423 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
48424Try \`$0 --help' for more information." >&5
48425echo "$as_me: error: unrecognized option: $1
48426Try \`$0 --help' for more information." >&2;}
48427 { (exit 1); exit 1; }; } ;;
48428
48429 *) ac_config_targets="$ac_config_targets $1" ;;
48430
48431 esac
48432 shift
48433done
48434
48435ac_configure_extra_args=
48436
48437if $ac_cs_silent; then
48438 exec 6>/dev/null
48439 ac_configure_extra_args="$ac_configure_extra_args --silent"
48440fi
48441
48442_ACEOF
48443cat >>$CONFIG_STATUS <<_ACEOF
48444if \$ac_cs_recheck; then
48445 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
48446 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
48447fi
48448
48449_ACEOF
48450
48451cat >>$CONFIG_STATUS <<_ACEOF
48452#
48453# INIT-COMMANDS section.
48454#
48455
5c60e845
MW
48456
48457 CPP="$CPP"
48458 infile="$srcdir/include/wx/msw/genrcdefs.h"
48459 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
48460
48461
ceec2216
RL
48462 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48463 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48464 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
48465 LN_S="${LN_S}"
a848cd7e
SC
48466
48467
48468_ACEOF
48469
48470
48471
48472cat >>$CONFIG_STATUS <<\_ACEOF
48473for ac_config_target in $ac_config_targets
48474do
48475 case "$ac_config_target" in
48476 # Handling of arguments.
ceec2216
RL
48477 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
48478 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
48479 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
48480 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
48481 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 48482 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
48483 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
48484 "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
48485 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48486echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48487 { (exit 1); exit 1; }; };;
48488 esac
48489done
48490
48491# If the user did not use the arguments to specify the items to instantiate,
48492# then the envvar interface is used. Set only those that are not.
48493# We use the long form for the default assignment because of an extremely
48494# bizarre bug on SunOS 4.1.3.
48495if $ac_need_defaults; then
48496 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48497 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48498 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48499fi
48500
48501# Have a temporary directory for convenience. Make it in the build tree
48502# simply because there is no reason to put it here, and in addition,
48503# creating and moving files from /tmp can sometimes cause problems.
48504# Create a temporary directory, and hook for its removal unless debugging.
48505$debug ||
48506{
48507 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
48508 trap '{ (exit 1); exit 1; }' 1 2 13 15
48509}
48510
48511# Create a (secure) tmp directory for tmp files.
48512
48513{
48514 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
48515 test -n "$tmp" && test -d "$tmp"
48516} ||
48517{
48518 tmp=./confstat$$-$RANDOM
48519 (umask 077 && mkdir $tmp)
48520} ||
48521{
48522 echo "$me: cannot create a temporary directory in ." >&2
48523 { (exit 1); exit 1; }
48524}
48525
48526_ACEOF
48527
48528cat >>$CONFIG_STATUS <<_ACEOF
48529
48530#
48531# CONFIG_FILES section.
48532#
48533
48534# No need to generate the scripts if there are no CONFIG_FILES.
48535# This happens for instance when ./config.status config.h
48536if test -n "\$CONFIG_FILES"; then
48537 # Protect against being on the right side of a sed subst in config.status.
48538 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
48539 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
48540s,@SHELL@,$SHELL,;t t
48541s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
48542s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
48543s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
48544s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
48545s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
48546s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
48547s,@exec_prefix@,$exec_prefix,;t t
48548s,@prefix@,$prefix,;t t
48549s,@program_transform_name@,$program_transform_name,;t t
48550s,@bindir@,$bindir,;t t
48551s,@sbindir@,$sbindir,;t t
48552s,@libexecdir@,$libexecdir,;t t
48553s,@datadir@,$datadir,;t t
48554s,@sysconfdir@,$sysconfdir,;t t
48555s,@sharedstatedir@,$sharedstatedir,;t t
48556s,@localstatedir@,$localstatedir,;t t
48557s,@libdir@,$libdir,;t t
48558s,@includedir@,$includedir,;t t
48559s,@oldincludedir@,$oldincludedir,;t t
48560s,@infodir@,$infodir,;t t
48561s,@mandir@,$mandir,;t t
48562s,@build_alias@,$build_alias,;t t
48563s,@host_alias@,$host_alias,;t t
48564s,@target_alias@,$target_alias,;t t
48565s,@DEFS@,$DEFS,;t t
48566s,@ECHO_C@,$ECHO_C,;t t
48567s,@ECHO_N@,$ECHO_N,;t t
48568s,@ECHO_T@,$ECHO_T,;t t
48569s,@LIBS@,$LIBS,;t t
48570s,@build@,$build,;t t
48571s,@build_cpu@,$build_cpu,;t t
48572s,@build_vendor@,$build_vendor,;t t
48573s,@build_os@,$build_os,;t t
48574s,@host@,$host,;t t
48575s,@host_cpu@,$host_cpu,;t t
48576s,@host_vendor@,$host_vendor,;t t
48577s,@host_os@,$host_os,;t t
48578s,@target@,$target,;t t
48579s,@target_cpu@,$target_cpu,;t t
48580s,@target_vendor@,$target_vendor,;t t
48581s,@target_os@,$target_os,;t t
48582s,@CC@,$CC,;t t
48583s,@CFLAGS@,$CFLAGS,;t t
48584s,@LDFLAGS@,$LDFLAGS,;t t
48585s,@CPPFLAGS@,$CPPFLAGS,;t t
48586s,@ac_ct_CC@,$ac_ct_CC,;t t
48587s,@EXEEXT@,$EXEEXT,;t t
48588s,@OBJEXT@,$OBJEXT,;t t
48589s,@CPP@,$CPP,;t t
48590s,@EGREP@,$EGREP,;t t
48591s,@CXX@,$CXX,;t t
48592s,@CXXFLAGS@,$CXXFLAGS,;t t
48593s,@ac_ct_CXX@,$ac_ct_CXX,;t t
48594s,@RANLIB@,$RANLIB,;t t
48595s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
48596s,@AR@,$AR,;t t
8c80d384 48597s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
48598s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
48599s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
48600s,@INSTALL_DATA@,$INSTALL_DATA,;t t
48601s,@STRIP@,$STRIP,;t t
8c80d384 48602s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8ced02f6
DE
48603s,@WINDRES@,$WINDRES,;t t
48604s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
8c80d384
DE
48605s,@DLLTOOL@,$DLLTOOL,;t t
48606s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
48607s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
48608s,@LN_S@,$LN_S,;t t
bcaab0f9 48609s,@LNDIR@,$LNDIR,;t t
a848cd7e
SC
48610s,@CXXCPP@,$CXXCPP,;t t
48611s,@subdirs@,$subdirs,;t t
48612s,@PKG_CONFIG@,$PKG_CONFIG,;t t
48613s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
48614s,@GTK_LIBS@,$GTK_LIBS,;t t
48615s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
48616s,@X_CFLAGS@,$X_CFLAGS,;t t
48617s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
48618s,@X_LIBS@,$X_LIBS,;t t
48619s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
48620s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
48621s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
48622s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
48623s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
48624s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
48625s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
8ced02f6 48626s,@REZ@,$REZ,;t t
a848cd7e
SC
48627s,@DEREZ@,$DEREZ,;t t
48628s,@SETFILE@,$SETFILE,;t t
48629s,@LIBICONV@,$LIBICONV,;t t
48630s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
48631s,@SDL_CONFIG@,$SDL_CONFIG,;t t
48632s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
48633s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
48634s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
48635s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
48636s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
48637s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
48638s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
48639s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
48640s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
48641s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
48642s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
48643s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
48644s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
48645s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
48646s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
48647s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
48648s,@VENDOR@,$VENDOR,;t t
48649s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
48650s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
48651s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
48652s,@WXUNIV@,$WXUNIV,;t t
48653s,@MONOLITHIC@,$MONOLITHIC,;t t
48654s,@USE_PLUGINS@,$USE_PLUGINS,;t t
48655s,@EXTRALIBS@,$EXTRALIBS,;t t
48656s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
48657s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
48658s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
48659s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
48660s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
48661s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
48662s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 48663s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
48664s,@UNICODE@,$UNICODE,;t t
48665s,@BUILD@,$BUILD,;t t
48666s,@DEBUG_INFO@,$DEBUG_INFO,;t t
48667s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
48668s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
48669s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
48670s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
48671s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
48672s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
48673s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
48674s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
48675s,@SET_MAKE@,$SET_MAKE,;t t
48676s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
48677s,@NM@,$NM,;t t
48678s,@ac_ct_NM@,$ac_ct_NM,;t t
48679s,@INSTALL_DIR@,$INSTALL_DIR,;t t
48680s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
48681s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
48682s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
48683s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
48684s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 48685s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
48686s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
48687s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 48688s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
48689s,@SO_SUFFIX@,$SO_SUFFIX,;t t
48690s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
48691s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
48692s,@LIBPREFIX@,$LIBPREFIX,;t t
48693s,@LIBEXT@,$LIBEXT,;t t
48694s,@DLLPREFIX@,$DLLPREFIX,;t t
48695s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 48696s,@dlldir@,$dlldir,;t t
a848cd7e
SC
48697s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
48698s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
48699s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
48700s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
48701s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
48702s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 48703s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
48704s,@USE_SOVERSION@,$USE_SOVERSION,;t t
48705s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
48706s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 48707s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
48708s,@USE_MACVERSION@,$USE_MACVERSION,;t t
48709s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
48710s,@SONAME_FLAG@,$SONAME_FLAG,;t t
48711s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
48712s,@GCC_PCH@,$GCC_PCH,;t t
48713s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
48714s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
48715s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
48716s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
48717s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
48718s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
48719s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
48720s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
48721s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
48722s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
48723s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
48724s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
48725s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
48726s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
48727s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
48728s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
48729s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
48730s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 48731s,@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 48732s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 48733s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1,;t t
a848cd7e 48734s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 48735s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
48736s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
48737s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 48738s,@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 48739s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
6671c68b 48740s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1,;t t
a848cd7e 48741s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 48742s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
48743s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
48744s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
48745s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
48746s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
48747s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
48748s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 48749s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
48750s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
48751s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 48752s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
48753s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
48754s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
48755s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 48756s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 48757s,@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
48758s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
48759s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
48760s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
48761s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 48762s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 48763s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 48764s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
48765s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
48766s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
48767s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
48768s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
48769s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
48770s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
48771s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
48772s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
48773s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
48774s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
48775s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
48776s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
48777s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
48778s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
48779s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 48780s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
48781s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
48782s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
48783s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
48784s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
48785s,@COND_SHARED_1@,$COND_SHARED_1,;t t
48786s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 48787s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 48788s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 48789s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 48790s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
48791s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
48792s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
48793s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
48794s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
48795s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
48796s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
48797s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
48798s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
48799s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
48800s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
48801s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
48802s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
48803s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
48804s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
48805s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 48806s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
48807s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
48808s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
48809s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
48810s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
48811s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
48812s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 48813s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
48814s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
48815s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
48816s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
48817s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
48818s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
48819s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
48820s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
48821s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
48822s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
48823s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
48824s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
48825s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
48826s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
48827s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 48828s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
48829s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
48830s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 48831s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 48832s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
48833s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
48834s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
48835s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
48836s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
48837s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 48838s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 48839s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 48840s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 48841s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
48842s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
48843s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
48844s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
48845s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
48846s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
48847s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
48848s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
48849s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 48850s,@SHARED@,$SHARED,;t t
a848cd7e
SC
48851s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
48852s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
48853s,@USE_GUI@,$USE_GUI,;t t
48854s,@AFMINSTALL@,$AFMINSTALL,;t t
48855s,@WIN32INSTALL@,$WIN32INSTALL,;t t
48856s,@TOOLKIT@,$TOOLKIT,;t t
48857s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 48858s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 48859s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 48860s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
48861s,@WIDGET_SET@,$WIDGET_SET,;t t
48862s,@WX_RELEASE@,$WX_RELEASE,;t t
48863s,@WX_VERSION@,$WX_VERSION,;t t
48864s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
48865s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
48866s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
48867s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
48868s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
48869s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
48870s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
48871s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
48872s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
004ee6da 48873s,@WXCONFIG_RESFLAGS@,$WXCONFIG_RESFLAGS,;t t
ceec2216 48874s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 48875s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
48876s,@DISTDIR@,$DISTDIR,;t t
48877s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
48878s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
48879s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
48880s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
48881s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
004ee6da 48882s,@RESCOMP@,$RESCOMP,;t t
a848cd7e
SC
48883s,@RESFLAGS@,$RESFLAGS,;t t
48884s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
48885s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
48886s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
48887s,@LIBWXMACRES@,$LIBWXMACRES,;t t
8ced02f6 48888s,@POSTLINK_COMMAND@,$POSTLINK_COMMAND,;t t
a848cd7e 48889s,@MACSETFILE@,$MACSETFILE,;t t
a848cd7e 48890s,@GCC@,$GCC,;t t
a848cd7e
SC
48891s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
48892s,@LIBOBJS@,$LIBOBJS,;t t
48893s,@LTLIBOBJS@,$LTLIBOBJS,;t t
48894CEOF
48895
48896_ACEOF
48897
48898 cat >>$CONFIG_STATUS <<\_ACEOF
48899 # Split the substitutions into bite-sized pieces for seds with
48900 # small command number limits, like on Digital OSF/1 and HP-UX.
48901 ac_max_sed_lines=48
48902 ac_sed_frag=1 # Number of current file.
48903 ac_beg=1 # First line for current file.
48904 ac_end=$ac_max_sed_lines # Line after last line for current file.
48905 ac_more_lines=:
48906 ac_sed_cmds=
48907 while $ac_more_lines; do
48908 if test $ac_beg -gt 1; then
48909 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
48910 else
48911 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
48912 fi
48913 if test ! -s $tmp/subs.frag; then
48914 ac_more_lines=false
48915 else
48916 # The purpose of the label and of the branching condition is to
48917 # speed up the sed processing (if there are no `@' at all, there
48918 # is no need to browse any of the substitutions).
48919 # These are the two extra sed commands mentioned above.
48920 (echo ':t
48921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
48922 if test -z "$ac_sed_cmds"; then
ac1cb8d3 48923 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 48924 else
ac1cb8d3 48925 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
48926 fi
48927 ac_sed_frag=`expr $ac_sed_frag + 1`
48928 ac_beg=$ac_end
48929 ac_end=`expr $ac_end + $ac_max_sed_lines`
48930 fi
48931 done
48932 if test -z "$ac_sed_cmds"; then
48933 ac_sed_cmds=cat
48934 fi
48935fi # test -n "$CONFIG_FILES"
48936
48937_ACEOF
48938cat >>$CONFIG_STATUS <<\_ACEOF
48939for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
48940 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
48941 case $ac_file in
48942 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
48943 cat >$tmp/stdin
48944 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
48945 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 48946 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 48947 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
48948 * ) ac_file_in=$ac_file.in ;;
48949 esac
48950
48951 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
48952 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
48953$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48954 X"$ac_file" : 'X\(//\)[^/]' \| \
48955 X"$ac_file" : 'X\(//\)$' \| \
48956 X"$ac_file" : 'X\(/\)' \| \
48957 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48958echo X"$ac_file" |
48959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48961 /^X\(\/\/\)$/{ s//\1/; q; }
48962 /^X\(\/\).*/{ s//\1/; q; }
48963 s/.*/./; q'`
48964 { if $as_mkdir_p; then
48965 mkdir -p "$ac_dir"
48966 else
48967 as_dir="$ac_dir"
48968 as_dirs=
48969 while test ! -d "$as_dir"; do
48970 as_dirs="$as_dir $as_dirs"
48971 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48972$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48973 X"$as_dir" : 'X\(//\)[^/]' \| \
48974 X"$as_dir" : 'X\(//\)$' \| \
48975 X"$as_dir" : 'X\(/\)' \| \
48976 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48977echo X"$as_dir" |
48978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48980 /^X\(\/\/\)$/{ s//\1/; q; }
48981 /^X\(\/\).*/{ s//\1/; q; }
48982 s/.*/./; q'`
48983 done
48984 test ! -n "$as_dirs" || mkdir $as_dirs
48985 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48986echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48987 { (exit 1); exit 1; }; }; }
48988
48989 ac_builddir=.
48990
48991if test "$ac_dir" != .; then
48992 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48993 # A "../" for each directory in $ac_dir_suffix.
48994 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48995else
48996 ac_dir_suffix= ac_top_builddir=
48997fi
48998
48999case $srcdir in
49000 .) # No --srcdir option. We are building in place.
49001 ac_srcdir=.
49002 if test -z "$ac_top_builddir"; then
49003 ac_top_srcdir=.
49004 else
49005 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49006 fi ;;
49007 [\\/]* | ?:[\\/]* ) # Absolute path.
49008 ac_srcdir=$srcdir$ac_dir_suffix;
49009 ac_top_srcdir=$srcdir ;;
49010 *) # Relative path.
49011 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49012 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49013esac
ac1cb8d3
VS
49014
49015# Do not use `cd foo && pwd` to compute absolute paths, because
49016# the directories may not exist.
49017case `pwd` in
49018.) ac_abs_builddir="$ac_dir";;
49019*)
49020 case "$ac_dir" in
49021 .) ac_abs_builddir=`pwd`;;
49022 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49023 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49024 esac;;
49025esac
49026case $ac_abs_builddir in
49027.) ac_abs_top_builddir=${ac_top_builddir}.;;
49028*)
49029 case ${ac_top_builddir}. in
49030 .) ac_abs_top_builddir=$ac_abs_builddir;;
49031 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49032 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49033 esac;;
49034esac
49035case $ac_abs_builddir in
49036.) ac_abs_srcdir=$ac_srcdir;;
49037*)
49038 case $ac_srcdir in
49039 .) ac_abs_srcdir=$ac_abs_builddir;;
49040 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49041 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49042 esac;;
49043esac
49044case $ac_abs_builddir in
49045.) ac_abs_top_srcdir=$ac_top_srcdir;;
49046*)
49047 case $ac_top_srcdir in
49048 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49049 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49050 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49051 esac;;
49052esac
a848cd7e
SC
49053
49054
49055 case $INSTALL in
49056 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
49057 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
49058 esac
49059
a848cd7e
SC
49060 # Let's still pretend it is `configure' which instantiates (i.e., don't
49061 # use $as_me), people would be surprised to read:
49062 # /* config.h. Generated by config.status. */
49063 if test x"$ac_file" = x-; then
49064 configure_input=
49065 else
49066 configure_input="$ac_file. "
49067 fi
49068 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 49069 sed 's,.*/,,'` by configure."
a848cd7e
SC
49070
49071 # First look for the input files in the build tree, otherwise in the
49072 # src tree.
49073 ac_file_inputs=`IFS=:
49074 for f in $ac_file_in; do
49075 case $f in
49076 -) echo $tmp/stdin ;;
49077 [\\/$]*)
ac1cb8d3
VS
49078 # Absolute (can't be DOS-style, as IFS=:)
49079 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49080echo "$as_me: error: cannot find input file: $f" >&2;}
49081 { (exit 1); exit 1; }; }
ac1cb8d3 49082 echo "$f";;
a848cd7e 49083 *) # Relative
ac1cb8d3
VS
49084 if test -f "$f"; then
49085 # Build tree
49086 echo "$f"
49087 elif test -f "$srcdir/$f"; then
49088 # Source tree
49089 echo "$srcdir/$f"
49090 else
49091 # /dev/null tree
49092 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49093echo "$as_me: error: cannot find input file: $f" >&2;}
49094 { (exit 1); exit 1; }; }
ac1cb8d3 49095 fi;;
a848cd7e
SC
49096 esac
49097 done` || { (exit 1); exit 1; }
5ff751d6
VZ
49098
49099 if test x"$ac_file" != x-; then
49100 { echo "$as_me:$LINENO: creating $ac_file" >&5
49101echo "$as_me: creating $ac_file" >&6;}
49102 rm -f "$ac_file"
49103 fi
a848cd7e
SC
49104_ACEOF
49105cat >>$CONFIG_STATUS <<_ACEOF
49106 sed "$ac_vpsub
49107$extrasub
49108_ACEOF
49109cat >>$CONFIG_STATUS <<\_ACEOF
49110:t
49111/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
49112s,@configure_input@,$configure_input,;t t
49113s,@srcdir@,$ac_srcdir,;t t
49114s,@abs_srcdir@,$ac_abs_srcdir,;t t
49115s,@top_srcdir@,$ac_top_srcdir,;t t
49116s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
49117s,@builddir@,$ac_builddir,;t t
49118s,@abs_builddir@,$ac_abs_builddir,;t t
49119s,@top_builddir@,$ac_top_builddir,;t t
49120s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
49121s,@INSTALL@,$ac_INSTALL,;t t
49122" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
49123 rm -f $tmp/stdin
49124 if test x"$ac_file" != x-; then
49125 mv $tmp/out $ac_file
49126 else
49127 cat $tmp/out
49128 rm -f $tmp/out
49129 fi
49130
ceec2216
RL
49131 # Run the commands associated with the file.
49132 case $ac_file in
49133 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
49134 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
49135 esac
a848cd7e
SC
49136done
49137_ACEOF
49138cat >>$CONFIG_STATUS <<\_ACEOF
49139
49140#
49141# CONFIG_HEADER section.
49142#
49143
49144# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
49145# NAME is the cpp macro being defined and VALUE is the value it is being given.
49146#
49147# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
49148ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
49149ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
49150ac_dC=' '
49151ac_dD=',;t'
49152# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 49153ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
49154ac_uB='$,\1#\2define\3'
49155ac_uC=' '
49156ac_uD=',;t'
49157
49158for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
49159 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
49160 case $ac_file in
49161 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
49162 cat >$tmp/stdin
49163 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
49164 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 49165 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 49166 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
49167 * ) ac_file_in=$ac_file.in ;;
49168 esac
49169
49170 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
49171echo "$as_me: creating $ac_file" >&6;}
49172
49173 # First look for the input files in the build tree, otherwise in the
49174 # src tree.
49175 ac_file_inputs=`IFS=:
49176 for f in $ac_file_in; do
49177 case $f in
49178 -) echo $tmp/stdin ;;
49179 [\\/$]*)
ac1cb8d3
VS
49180 # Absolute (can't be DOS-style, as IFS=:)
49181 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49182echo "$as_me: error: cannot find input file: $f" >&2;}
49183 { (exit 1); exit 1; }; }
ac1cb8d3
VS
49184 # Do quote $f, to prevent DOS paths from being IFS'd.
49185 echo "$f";;
a848cd7e 49186 *) # Relative
ac1cb8d3
VS
49187 if test -f "$f"; then
49188 # Build tree
49189 echo "$f"
49190 elif test -f "$srcdir/$f"; then
49191 # Source tree
49192 echo "$srcdir/$f"
49193 else
49194 # /dev/null tree
49195 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
49196echo "$as_me: error: cannot find input file: $f" >&2;}
49197 { (exit 1); exit 1; }; }
ac1cb8d3 49198 fi;;
a848cd7e
SC
49199 esac
49200 done` || { (exit 1); exit 1; }
49201 # Remove the trailing spaces.
ac1cb8d3 49202 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
49203
49204_ACEOF
49205
49206# Transform confdefs.h into two sed scripts, `conftest.defines' and
49207# `conftest.undefs', that substitutes the proper values into
49208# config.h.in to produce config.h. The first handles `#define'
49209# templates, and the second `#undef' templates.
49210# And first: Protect against being on the right side of a sed subst in
49211# config.status. Protect against being in an unquoted here document
49212# in config.status.
49213rm -f conftest.defines conftest.undefs
49214# Using a here document instead of a string reduces the quoting nightmare.
49215# Putting comments in sed scripts is not portable.
49216#
49217# `end' is used to avoid that the second main sed command (meant for
49218# 0-ary CPP macros) applies to n-ary macro definitions.
49219# See the Autoconf documentation for `clear'.
49220cat >confdef2sed.sed <<\_ACEOF
49221s/[\\&,]/\\&/g
49222s,[\\$`],\\&,g
49223t clear
49224: clear
ac1cb8d3 49225s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 49226t end
ac1cb8d3 49227s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
49228: end
49229_ACEOF
49230# If some macros were called several times there might be several times
49231# the same #defines, which is useless. Nevertheless, we may not want to
49232# sort them, since we want the *last* AC-DEFINE to be honored.
49233uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
49234sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
49235rm -f confdef2sed.sed
49236
49237# This sed command replaces #undef with comments. This is necessary, for
49238# example, in the case of _POSIX_SOURCE, which is predefined and required
49239# on some systems where configure will not decide to define it.
49240cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 49241s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
49242_ACEOF
49243
49244# Break up conftest.defines because some shells have a limit on the size
49245# of here documents, and old seds have small limits too (100 cmds).
49246echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 49247echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
49248echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
49249echo ' :' >>$CONFIG_STATUS
49250rm -f conftest.tail
49251while grep . conftest.defines >/dev/null
49252do
49253 # Write a limited-size here document to $tmp/defines.sed.
49254 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
49255 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 49256 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
49257 # Work around the forget-to-reset-the-flag bug.
49258 echo 't clr' >>$CONFIG_STATUS
49259 echo ': clr' >>$CONFIG_STATUS
49260 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
49261 echo 'CEOF
49262 sed -f $tmp/defines.sed $tmp/in >$tmp/out
49263 rm -f $tmp/in
49264 mv $tmp/out $tmp/in
49265' >>$CONFIG_STATUS
49266 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
49267 rm -f conftest.defines
49268 mv conftest.tail conftest.defines
49269done
49270rm -f conftest.defines
49271echo ' fi # grep' >>$CONFIG_STATUS
49272echo >>$CONFIG_STATUS
49273
49274# Break up conftest.undefs because some shells have a limit on the size
49275# of here documents, and old seds have small limits too (100 cmds).
49276echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
49277rm -f conftest.tail
49278while grep . conftest.undefs >/dev/null
49279do
49280 # Write a limited-size here document to $tmp/undefs.sed.
49281 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
49282 # Speed up: don't consider the non `#undef'
ac1cb8d3 49283 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
49284 # Work around the forget-to-reset-the-flag bug.
49285 echo 't clr' >>$CONFIG_STATUS
49286 echo ': clr' >>$CONFIG_STATUS
49287 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
49288 echo 'CEOF
49289 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
49290 rm -f $tmp/in
49291 mv $tmp/out $tmp/in
49292' >>$CONFIG_STATUS
49293 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
49294 rm -f conftest.undefs
49295 mv conftest.tail conftest.undefs
49296done
49297rm -f conftest.undefs
49298
49299cat >>$CONFIG_STATUS <<\_ACEOF
49300 # Let's still pretend it is `configure' which instantiates (i.e., don't
49301 # use $as_me), people would be surprised to read:
49302 # /* config.h. Generated by config.status. */
49303 if test x"$ac_file" = x-; then
49304 echo "/* Generated by configure. */" >$tmp/config.h
49305 else
49306 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
49307 fi
49308 cat $tmp/in >>$tmp/config.h
49309 rm -f $tmp/in
49310 if test x"$ac_file" != x-; then
49311 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
49312 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
49313echo "$as_me: $ac_file is unchanged" >&6;}
49314 else
49315 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
49316$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49317 X"$ac_file" : 'X\(//\)[^/]' \| \
49318 X"$ac_file" : 'X\(//\)$' \| \
49319 X"$ac_file" : 'X\(/\)' \| \
49320 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49321echo X"$ac_file" |
49322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49323 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49324 /^X\(\/\/\)$/{ s//\1/; q; }
49325 /^X\(\/\).*/{ s//\1/; q; }
49326 s/.*/./; q'`
49327 { if $as_mkdir_p; then
49328 mkdir -p "$ac_dir"
49329 else
49330 as_dir="$ac_dir"
49331 as_dirs=
49332 while test ! -d "$as_dir"; do
49333 as_dirs="$as_dir $as_dirs"
49334 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49335$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49336 X"$as_dir" : 'X\(//\)[^/]' \| \
49337 X"$as_dir" : 'X\(//\)$' \| \
49338 X"$as_dir" : 'X\(/\)' \| \
49339 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49340echo X"$as_dir" |
49341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49343 /^X\(\/\/\)$/{ s//\1/; q; }
49344 /^X\(\/\).*/{ s//\1/; q; }
49345 s/.*/./; q'`
49346 done
49347 test ! -n "$as_dirs" || mkdir $as_dirs
49348 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49349echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49350 { (exit 1); exit 1; }; }; }
49351
49352 rm -f $ac_file
49353 mv $tmp/config.h $ac_file
49354 fi
49355 else
49356 cat $tmp/config.h
49357 rm -f $tmp/config.h
49358 fi
49359done
49360_ACEOF
49361cat >>$CONFIG_STATUS <<\_ACEOF
49362
49363#
49364# CONFIG_COMMANDS section.
49365#
49366for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
49367 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
49368 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
49369 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
49370$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49371 X"$ac_dest" : 'X\(//\)[^/]' \| \
49372 X"$ac_dest" : 'X\(//\)$' \| \
49373 X"$ac_dest" : 'X\(/\)' \| \
49374 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49375echo X"$ac_dest" |
49376 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49377 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49378 /^X\(\/\/\)$/{ s//\1/; q; }
49379 /^X\(\/\).*/{ s//\1/; q; }
49380 s/.*/./; q'`
ac1cb8d3
VS
49381 { if $as_mkdir_p; then
49382 mkdir -p "$ac_dir"
49383 else
49384 as_dir="$ac_dir"
49385 as_dirs=
49386 while test ! -d "$as_dir"; do
49387 as_dirs="$as_dir $as_dirs"
49388 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49389$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
49390 X"$as_dir" : 'X\(//\)[^/]' \| \
49391 X"$as_dir" : 'X\(//\)$' \| \
49392 X"$as_dir" : 'X\(/\)' \| \
49393 . : '\(.\)' 2>/dev/null ||
49394echo X"$as_dir" |
49395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49396 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49397 /^X\(\/\/\)$/{ s//\1/; q; }
49398 /^X\(\/\).*/{ s//\1/; q; }
49399 s/.*/./; q'`
49400 done
49401 test ! -n "$as_dirs" || mkdir $as_dirs
49402 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49403echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49404 { (exit 1); exit 1; }; }; }
49405
a848cd7e
SC
49406 ac_builddir=.
49407
49408if test "$ac_dir" != .; then
49409 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49410 # A "../" for each directory in $ac_dir_suffix.
49411 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49412else
49413 ac_dir_suffix= ac_top_builddir=
49414fi
49415
49416case $srcdir in
49417 .) # No --srcdir option. We are building in place.
49418 ac_srcdir=.
49419 if test -z "$ac_top_builddir"; then
49420 ac_top_srcdir=.
49421 else
49422 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49423 fi ;;
49424 [\\/]* | ?:[\\/]* ) # Absolute path.
49425 ac_srcdir=$srcdir$ac_dir_suffix;
49426 ac_top_srcdir=$srcdir ;;
49427 *) # Relative path.
49428 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49429 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49430esac
ac1cb8d3
VS
49431
49432# Do not use `cd foo && pwd` to compute absolute paths, because
49433# the directories may not exist.
49434case `pwd` in
49435.) ac_abs_builddir="$ac_dir";;
49436*)
49437 case "$ac_dir" in
49438 .) ac_abs_builddir=`pwd`;;
49439 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49440 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49441 esac;;
49442esac
49443case $ac_abs_builddir in
49444.) ac_abs_top_builddir=${ac_top_builddir}.;;
49445*)
49446 case ${ac_top_builddir}. in
49447 .) ac_abs_top_builddir=$ac_abs_builddir;;
49448 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49449 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49450 esac;;
49451esac
49452case $ac_abs_builddir in
49453.) ac_abs_srcdir=$ac_srcdir;;
49454*)
49455 case $ac_srcdir in
49456 .) ac_abs_srcdir=$ac_abs_builddir;;
49457 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49458 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49459 esac;;
49460esac
49461case $ac_abs_builddir in
49462.) ac_abs_top_srcdir=$ac_top_srcdir;;
49463*)
49464 case $ac_top_srcdir in
49465 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49466 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49467 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49468 esac;;
49469esac
a848cd7e
SC
49470
49471
49472 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
49473echo "$as_me: executing $ac_dest commands" >&6;}
49474 case $ac_dest in
5c60e845
MW
49475 rcdefs.h )
49476 mkdir -p $outdir &&
49477 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
49478 ;;
ceec2216
RL
49479 wx-config ) rm -f wx-config
49480 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
49481 ;;
a848cd7e
SC
49482 esac
49483done
49484_ACEOF
49485
49486cat >>$CONFIG_STATUS <<\_ACEOF
49487
49488{ (exit 0); exit 0; }
49489_ACEOF
49490chmod +x $CONFIG_STATUS
49491ac_clean_files=$ac_clean_files_save
49492
49493
49494# configure is writing to config.log, and then calls config.status.
49495# config.status does its own redirection, appending to config.log.
49496# Unfortunately, on DOS this fails, as config.log is still kept open
49497# by configure, so config.status won't be able to write to it; its
49498# output is simply discarded. So we exec the FD to /dev/null,
49499# effectively closing config.log, so it can be properly (re)opened and
49500# appended to by config.status. When coming back to configure, we
49501# need to make the FD available again.
49502if test "$no_create" != yes; then
49503 ac_cs_success=:
49504 ac_config_status_args=
49505 test "$silent" = yes &&
49506 ac_config_status_args="$ac_config_status_args --quiet"
49507 exec 5>/dev/null
49508 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49509 exec 5>>config.log
49510 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49511 # would make configure fail if this is the last instruction.
49512 $ac_cs_success || { (exit 1); exit 1; }
49513fi
49514
49515#
49516# CONFIG_SUBDIRS section.
49517#
49518if test "$no_recursion" != yes; then
49519
49520 # Remove --cache-file and --srcdir arguments so they do not pile up.
49521 ac_sub_configure_args=
49522 ac_prev=
49523 for ac_arg in $ac_configure_args; do
49524 if test -n "$ac_prev"; then
49525 ac_prev=
49526 continue
49527 fi
49528 case $ac_arg in
49529 -cache-file | --cache-file | --cache-fil | --cache-fi \
49530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
49531 ac_prev=cache_file ;;
49532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
49533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
49534 | --c=*)
49535 ;;
49536 --config-cache | -C)
49537 ;;
49538 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
49539 ac_prev=srcdir ;;
49540 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
49541 ;;
49542 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
49543 ac_prev=prefix ;;
49544 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
49545 ;;
49546 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
49547 esac
49548 done
49549
49550 # Always prepend --prefix to ensure using the same prefix
49551 # in subdir configurations.
49552 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
49553
49554 ac_popdir=`pwd`
49555 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
49556
49557 # Do not complain, so a configure script can configure whichever
49558 # parts of a large source tree are present.
49559 test -d $srcdir/$ac_dir || continue
49560
49561 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
49562echo "$as_me: configuring in $ac_dir" >&6;}
49563 { if $as_mkdir_p; then
49564 mkdir -p "$ac_dir"
49565 else
49566 as_dir="$ac_dir"
49567 as_dirs=
49568 while test ! -d "$as_dir"; do
49569 as_dirs="$as_dir $as_dirs"
49570 as_dir=`(dirname "$as_dir") 2>/dev/null ||
49571$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
49572 X"$as_dir" : 'X\(//\)[^/]' \| \
49573 X"$as_dir" : 'X\(//\)$' \| \
49574 X"$as_dir" : 'X\(/\)' \| \
49575 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
49576echo X"$as_dir" |
49577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
49578 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
49579 /^X\(\/\/\)$/{ s//\1/; q; }
49580 /^X\(\/\).*/{ s//\1/; q; }
49581 s/.*/./; q'`
49582 done
49583 test ! -n "$as_dirs" || mkdir $as_dirs
49584 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
49585echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
49586 { (exit 1); exit 1; }; }; }
49587
49588 ac_builddir=.
49589
49590if test "$ac_dir" != .; then
49591 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
49592 # A "../" for each directory in $ac_dir_suffix.
49593 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
49594else
49595 ac_dir_suffix= ac_top_builddir=
49596fi
49597
49598case $srcdir in
49599 .) # No --srcdir option. We are building in place.
49600 ac_srcdir=.
49601 if test -z "$ac_top_builddir"; then
49602 ac_top_srcdir=.
49603 else
49604 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
49605 fi ;;
49606 [\\/]* | ?:[\\/]* ) # Absolute path.
49607 ac_srcdir=$srcdir$ac_dir_suffix;
49608 ac_top_srcdir=$srcdir ;;
49609 *) # Relative path.
49610 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
49611 ac_top_srcdir=$ac_top_builddir$srcdir ;;
49612esac
ac1cb8d3
VS
49613
49614# Do not use `cd foo && pwd` to compute absolute paths, because
49615# the directories may not exist.
49616case `pwd` in
49617.) ac_abs_builddir="$ac_dir";;
49618*)
49619 case "$ac_dir" in
49620 .) ac_abs_builddir=`pwd`;;
49621 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
49622 *) ac_abs_builddir=`pwd`/"$ac_dir";;
49623 esac;;
49624esac
49625case $ac_abs_builddir in
49626.) ac_abs_top_builddir=${ac_top_builddir}.;;
49627*)
49628 case ${ac_top_builddir}. in
49629 .) ac_abs_top_builddir=$ac_abs_builddir;;
49630 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
49631 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
49632 esac;;
49633esac
49634case $ac_abs_builddir in
49635.) ac_abs_srcdir=$ac_srcdir;;
49636*)
49637 case $ac_srcdir in
49638 .) ac_abs_srcdir=$ac_abs_builddir;;
49639 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
49640 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
49641 esac;;
49642esac
49643case $ac_abs_builddir in
49644.) ac_abs_top_srcdir=$ac_top_srcdir;;
49645*)
49646 case $ac_top_srcdir in
49647 .) ac_abs_top_srcdir=$ac_abs_builddir;;
49648 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
49649 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
49650 esac;;
49651esac
a848cd7e
SC
49652
49653
49654 cd $ac_dir
49655
49656 # Check for guested configure; otherwise get Cygnus style configure.
49657 if test -f $ac_srcdir/configure.gnu; then
49658 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
49659 elif test -f $ac_srcdir/configure; then
49660 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
49661 elif test -f $ac_srcdir/configure.in; then
49662 ac_sub_configure=$ac_configure
49663 else
49664 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
49665echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
49666 ac_sub_configure=
49667 fi
49668
49669 # The recursion is here.
49670 if test -n "$ac_sub_configure"; then
49671 # Make the cache file name correct relative to the subdirectory.
49672 case $cache_file in
49673 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
49674 *) # Relative path.
ac1cb8d3 49675 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
49676 esac
49677
49678 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
49679echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
49680 # The eval makes quoting arguments work.
49681 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
49682 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
49683 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
49684echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
49685 { (exit 1); exit 1; }; }
49686 fi
49687
5ff751d6 49688 cd "$ac_popdir"
a848cd7e
SC
49689 done
49690fi
49691
49692
49693echo
77ffb593 49694echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 49695echo ""
4d4ff94c 49696echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 49697echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 49698
77ffb593
JS
49699echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
49700echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
49701echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 49702
77ffb593 49703echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
49704echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
49705echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 49706
77ffb593 49707echo " Which libraries should wxWidgets use?"
a848cd7e
SC
49708echo " jpeg ${wxUSE_LIBJPEG-none}"
49709echo " png ${wxUSE_LIBPNG-none}"
49710echo " regex ${wxUSE_REGEX}"
49711echo " tiff ${wxUSE_LIBTIFF-none}"
49712if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
49713echo " xpm ${wxUSE_LIBXPM-none}"
49714fi
49715echo " zlib ${wxUSE_ZLIB}"
49716echo " odbc ${wxUSE_ODBC}"
49717echo " expat ${wxUSE_EXPAT}"
49718echo " libmspack ${wxUSE_LIBMSPACK}"
49719echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 49720echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
49721
49722echo ""
49723