]> git.saurik.com Git - wxWidgets.git/blame - configure
autumn cleanup of configure:
[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"
5ff751d6 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 RESCOMP ac_ct_RESCOMP 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 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 EXE_LINKER GUIDIST DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC 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
VZ
1742
1743 CPPFLAGS="$CPPFLAGS -D_HPUX_SOURCE"
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
1c14217d 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
1c14217d 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
1c14217d 13106 CXXFLAGS="-g -O2"
a848cd7e 13107 else
1c14217d 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
13371CFLAGS="-g"
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
14361if test "${ac_cv_prog_RESCOMP+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14363else
14364 if test -n "$RESCOMP"; then
14365 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
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
14374 ac_cv_prog_RESCOMP="${ac_tool_prefix}wrc"
14375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14376 break 2
14377 fi
14378done
14379done
14380
14381fi
14382fi
14383RESCOMP=$ac_cv_prog_RESCOMP
14384if test -n "$RESCOMP"; then
14385 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14386echo "${ECHO_T}$RESCOMP" >&6
14387else
14388 echo "$as_me:$LINENO: result: no" >&5
14389echo "${ECHO_T}no" >&6
14390fi
14391
14392fi
14393if test -z "$ac_cv_prog_RESCOMP"; then
14394 ac_ct_RESCOMP=$RESCOMP
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
14399if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14401else
14402 if test -n "$ac_ct_RESCOMP"; then
14403 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
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
14412 ac_cv_prog_ac_ct_RESCOMP="wrc"
14413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14414 break 2
14415 fi
14416done
14417done
14418
14419fi
14420fi
14421ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14422if test -n "$ac_ct_RESCOMP"; then
14423 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14424echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14425else
14426 echo "$as_me:$LINENO: result: no" >&5
14427echo "${ECHO_T}no" >&6
14428fi
14429
14430 RESCOMP=$ac_ct_RESCOMP
14431else
14432 RESCOMP="$ac_cv_prog_RESCOMP"
14433fi
14434
14435else
14436 case "${host}" in
14437 *-*-cygwin* | *-*-mingw32* )
14438 if test -n "$ac_tool_prefix"; then
14439 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
14440set dummy ${ac_tool_prefix}windres; ac_word=$2
14441echo "$as_me:$LINENO: checking for $ac_word" >&5
14442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14443if test "${ac_cv_prog_RESCOMP+set}" = set; then
14444 echo $ECHO_N "(cached) $ECHO_C" >&6
14445else
14446 if test -n "$RESCOMP"; then
14447 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
14448else
14449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450for as_dir in $PATH
14451do
14452 IFS=$as_save_IFS
14453 test -z "$as_dir" && as_dir=.
14454 for ac_exec_ext in '' $ac_executable_extensions; do
14455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14456 ac_cv_prog_RESCOMP="${ac_tool_prefix}windres"
14457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14458 break 2
14459 fi
14460done
14461done
14462
14463fi
14464fi
14465RESCOMP=$ac_cv_prog_RESCOMP
14466if test -n "$RESCOMP"; then
14467 echo "$as_me:$LINENO: result: $RESCOMP" >&5
14468echo "${ECHO_T}$RESCOMP" >&6
14469else
14470 echo "$as_me:$LINENO: result: no" >&5
14471echo "${ECHO_T}no" >&6
14472fi
14473
14474fi
14475if test -z "$ac_cv_prog_RESCOMP"; then
14476 ac_ct_RESCOMP=$RESCOMP
14477 # Extract the first word of "windres", so it can be a program name with args.
14478set dummy windres; ac_word=$2
14479echo "$as_me:$LINENO: checking for $ac_word" >&5
14480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14481if test "${ac_cv_prog_ac_ct_RESCOMP+set}" = set; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14483else
14484 if test -n "$ac_ct_RESCOMP"; then
14485 ac_cv_prog_ac_ct_RESCOMP="$ac_ct_RESCOMP" # Let the user override the test.
14486else
14487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14488for as_dir in $PATH
14489do
14490 IFS=$as_save_IFS
14491 test -z "$as_dir" && as_dir=.
14492 for ac_exec_ext in '' $ac_executable_extensions; do
14493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14494 ac_cv_prog_ac_ct_RESCOMP="windres"
14495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14496 break 2
14497 fi
14498done
14499done
14500
14501fi
14502fi
14503ac_ct_RESCOMP=$ac_cv_prog_ac_ct_RESCOMP
14504if test -n "$ac_ct_RESCOMP"; then
14505 echo "$as_me:$LINENO: result: $ac_ct_RESCOMP" >&5
14506echo "${ECHO_T}$ac_ct_RESCOMP" >&6
14507else
14508 echo "$as_me:$LINENO: result: no" >&5
14509echo "${ECHO_T}no" >&6
14510fi
14511
14512 RESCOMP=$ac_ct_RESCOMP
14513else
14514 RESCOMP="$ac_cv_prog_RESCOMP"
14515fi
14516
14517 if test -n "$ac_tool_prefix"; then
14518 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14519set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14520echo "$as_me:$LINENO: checking for $ac_word" >&5
14521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14522if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14524else
14525 if test -n "$DLLTOOL"; then
14526 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14527else
14528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14529for as_dir in $PATH
14530do
14531 IFS=$as_save_IFS
14532 test -z "$as_dir" && as_dir=.
14533 for ac_exec_ext in '' $ac_executable_extensions; do
14534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14535 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14537 break 2
14538 fi
14539done
14540done
14541
14542fi
14543fi
14544DLLTOOL=$ac_cv_prog_DLLTOOL
14545if test -n "$DLLTOOL"; then
14546 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14547echo "${ECHO_T}$DLLTOOL" >&6
14548else
14549 echo "$as_me:$LINENO: result: no" >&5
14550echo "${ECHO_T}no" >&6
14551fi
14552
14553fi
14554if test -z "$ac_cv_prog_DLLTOOL"; then
14555 ac_ct_DLLTOOL=$DLLTOOL
14556 # Extract the first word of "dlltool", so it can be a program name with args.
14557set dummy dlltool; ac_word=$2
14558echo "$as_me:$LINENO: checking for $ac_word" >&5
14559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14560if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562else
14563 if test -n "$ac_ct_DLLTOOL"; then
14564 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14565else
14566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14567for as_dir in $PATH
14568do
14569 IFS=$as_save_IFS
14570 test -z "$as_dir" && as_dir=.
14571 for ac_exec_ext in '' $ac_executable_extensions; do
14572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14573 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14575 break 2
14576 fi
14577done
14578done
14579
14580fi
14581fi
14582ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14583if test -n "$ac_ct_DLLTOOL"; then
14584 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
14585echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
14586else
14587 echo "$as_me:$LINENO: result: no" >&5
14588echo "${ECHO_T}no" >&6
14589fi
14590
14591 DLLTOOL=$ac_ct_DLLTOOL
14592else
14593 DLLTOOL="$ac_cv_prog_DLLTOOL"
14594fi
14595
14596 ;;
14597 esac
14598fi
a848cd7e
SC
14599
14600echo "$as_me:$LINENO: checking if make is GNU make" >&5
14601echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
14602if test "${wx_cv_prog_makeisgnu+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14604else
14605
14606 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
14607 egrep -s GNU > /dev/null); then
14608 wx_cv_prog_makeisgnu="yes"
14609 else
14610 wx_cv_prog_makeisgnu="no"
14611 fi
14612
14613fi
14614echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
14615echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
14616
14617if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
14618 IF_GNU_MAKE=""
14619else
14620 IF_GNU_MAKE="#"
14621fi
14622
14623
14624
14625if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
14626echo "$as_me:$LINENO: checking if make supports VPATH" >&5
14627echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
14628if test "${wx_cv_prog_makevpath+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14630else
14631
14632cat - << EOF > confMake
14633check : file
14634 cp \$? \$@
14635 cp \$? final_file
14636EOF
14637
14638if test ! -d sub ; then
14639 mkdir sub
14640fi
14641echo dummy > sub/file
14642${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
14643RESULT=$?
14644rm -f sub/file check final_file confMake
14645rmdir sub
14646if test "$RESULT" = 0; then
14647 wx_cv_prog_makevpath="yes"
14648else
14649 wx_cv_prog_makevpath="no"
14650fi
14651
14652fi
14653echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
14654echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
14655
14656if test "x$wx_cv_prog_makevpath" != "xyes"; then
14657{ { echo "$as_me:$LINENO: error:
14658You need a make-utility that is able to use the variable
14659VPATH correctly.
14660If your version of make does not support VPATH correctly,
14661please install GNU-make (possibly as gmake), and start
14662configure with the following command:
14663export MAKE=gmake; ./configure for sh-type shells
14664setenv MAKE gmake; ./configure for csh-type shells
14665Also please do remember to use gmake in this case every time
14666you are trying to compile.
14667" >&5
14668echo "$as_me: error:
14669You need a make-utility that is able to use the variable
14670VPATH correctly.
14671If your version of make does not support VPATH correctly,
14672please install GNU-make (possibly as gmake), and start
14673configure with the following command:
14674export MAKE=gmake; ./configure for sh-type shells
14675setenv MAKE gmake; ./configure for csh-type shells
14676Also please do remember to use gmake in this case every time
14677you are trying to compile.
14678" >&2;}
14679 { (exit 1); exit 1; }; }
14680fi fi
14681echo "$as_me:$LINENO: checking whether ln -s works" >&5
14682echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
14683LN_S=$as_ln_s
14684if test "$LN_S" = "ln -s"; then
14685 echo "$as_me:$LINENO: result: yes" >&5
14686echo "${ECHO_T}yes" >&6
14687else
14688 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
14689echo "${ECHO_T}no, using $LN_S" >&6
14690fi
14691
14692
bcaab0f9
MW
14693for ac_prog in lndir
14694do
14695 # Extract the first word of "$ac_prog", so it can be a program name with args.
14696set dummy $ac_prog; ac_word=$2
14697echo "$as_me:$LINENO: checking for $ac_word" >&5
14698echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14699if test "${ac_cv_prog_LNDIR+set}" = set; then
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14701else
14702 if test -n "$LNDIR"; then
14703 ac_cv_prog_LNDIR="$LNDIR" # Let the user override the test.
14704else
14705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14706for as_dir in $PATH
14707do
14708 IFS=$as_save_IFS
14709 test -z "$as_dir" && as_dir=.
14710 for ac_exec_ext in '' $ac_executable_extensions; do
14711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14712 ac_cv_prog_LNDIR="$ac_prog"
14713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14714 break 2
14715 fi
14716done
14717done
14718
14719fi
14720fi
14721LNDIR=$ac_cv_prog_LNDIR
14722if test -n "$LNDIR"; then
14723 echo "$as_me:$LINENO: result: $LNDIR" >&5
14724echo "${ECHO_T}$LNDIR" >&6
14725else
14726 echo "$as_me:$LINENO: result: no" >&5
14727echo "${ECHO_T}no" >&6
14728fi
14729
14730 test -n "$LNDIR" && break
14731done
91dea314 14732test -n "$LNDIR" || LNDIR="cp -pR"
bcaab0f9
MW
14733
14734
14735
a848cd7e 14736
2113bc77 14737if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
9273ffba
DE
14738 CXXFLAGS="$CXXFLAGS -qunique"
14739fi
14740
4d7ec9f1
DE
14741case "${host}" in
14742 powerpc-*-darwin* )
14743 echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
14744echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6
14745 cat >conftest.$ac_ext <<_ACEOF
14746/* confdefs.h. */
14747_ACEOF
14748cat confdefs.h >>conftest.$ac_ext
14749cat >>conftest.$ac_ext <<_ACEOF
14750/* end confdefs.h. */
14751
14752int
14753main ()
14754{
14755#ifndef __POWERPC__
14756 choke me for lack of PowerPC
14757#endif
14758
14759 ;
14760 return 0;
14761}
14762_ACEOF
14763rm -f conftest.$ac_objext
14764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14765 (eval $ac_compile) 2>conftest.er1
14766 ac_status=$?
14767 grep -v '^ *+' conftest.er1 >conftest.err
14768 rm -f conftest.er1
14769 cat conftest.err >&5
14770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771 (exit $ac_status); } &&
5ff751d6 14772 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14774 (eval $ac_try) 2>&5
14775 ac_status=$?
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); }; } &&
14778 { ac_try='test -s conftest.$ac_objext'
14779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14780 (eval $ac_try) 2>&5
14781 ac_status=$?
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; }; then
14784 echo "$as_me:$LINENO: result: yes" >&5
14785echo "${ECHO_T}yes" >&6
14786else
14787 echo "$as_me: failed program was:" >&5
14788sed 's/^/| /' conftest.$ac_ext >&5
14789
14790echo "$as_me:$LINENO: result: no" >&5
14791echo "${ECHO_T}no" >&6
14792 cat >>confdefs.h <<\_ACEOF
14793#define __POWERPC__ 1
14794_ACEOF
14795
14796
14797fi
14798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
cfda0ea8
DE
14799 ;;
14800esac
14801
14802case "${host}" in
14803 *-*-darwin* )
4d7ec9f1
DE
14804 echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
14805echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6
14806 cat >conftest.$ac_ext <<_ACEOF
14807/* confdefs.h. */
14808_ACEOF
14809cat confdefs.h >>conftest.$ac_ext
14810cat >>conftest.$ac_ext <<_ACEOF
14811/* end confdefs.h. */
14812#include <CoreFoundation/CFBase.h>
14813
14814int
14815main ()
14816{
14817
14818 ;
14819 return 0;
14820}
14821_ACEOF
14822rm -f conftest.$ac_objext
14823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14824 (eval $ac_compile) 2>conftest.er1
14825 ac_status=$?
14826 grep -v '^ *+' conftest.er1 >conftest.err
14827 rm -f conftest.er1
14828 cat conftest.err >&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); } &&
5ff751d6 14831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14833 (eval $ac_try) 2>&5
14834 ac_status=$?
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); }; } &&
14837 { ac_try='test -s conftest.$ac_objext'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14840 ac_status=$?
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 echo "$as_me:$LINENO: result: yes" >&5
14844echo "${ECHO_T}yes" >&6
14845else
14846 echo "$as_me: failed program was:" >&5
14847sed 's/^/| /' conftest.$ac_ext >&5
14848
14849echo "$as_me:$LINENO: result: no" >&5
14850echo "${ECHO_T}no" >&6
14851 echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
14852echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6
14853 cat >conftest.$ac_ext <<_ACEOF
14854/* confdefs.h. */
14855_ACEOF
14856cat confdefs.h >>conftest.$ac_ext
14857cat >>conftest.$ac_ext <<_ACEOF
14858/* end confdefs.h. */
14859#define __CF_USE_FRAMEWORK_INCLUDES__
14860#include <CoreFoundation/CFBase.h>
14861
14862int
14863main ()
14864{
14865
14866 ;
14867 return 0;
14868}
14869_ACEOF
14870rm -f conftest.$ac_objext
14871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14872 (eval $ac_compile) 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } &&
5ff751d6 14879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4d7ec9f1
DE
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; } &&
14885 { ac_try='test -s conftest.$ac_objext'
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; }; then
14891 echo "$as_me:$LINENO: result: yes" >&5
14892echo "${ECHO_T}yes" >&6
14893 CPPFLAGS="$CPPFLAGS -D__CF_USE_FRAMEWORK_INCLUDES__"
14894else
14895 echo "$as_me: failed program was:" >&5
14896sed 's/^/| /' conftest.$ac_ext >&5
14897
14898{ { echo "$as_me:$LINENO: error: no. CoreFoundation not available.
14899See \`config.log' for more details." >&5
14900echo "$as_me: error: no. CoreFoundation not available.
14901See \`config.log' for more details." >&2;}
14902 { (exit 1); exit 1; }; }
14903
14904fi
14905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14906
14907
14908fi
14909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14910 ;;
14911esac
14912
a848cd7e
SC
14913case "${host}" in
14914 *-pc-os2_emx | *-pc-os2-emx )
14915 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
14916 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
14917echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
14918if test "${ac_cv_lib_cExt_drand48+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14920else
14921 ac_check_lib_save_LIBS=$LIBS
14922LIBS="-lcExt $LIBS"
14923cat >conftest.$ac_ext <<_ACEOF
14924/* confdefs.h. */
14925_ACEOF
14926cat confdefs.h >>conftest.$ac_ext
14927cat >>conftest.$ac_ext <<_ACEOF
14928/* end confdefs.h. */
14929
14930/* Override any gcc2 internal prototype to avoid an error. */
14931#ifdef __cplusplus
14932extern "C"
14933#endif
14934/* We use char because int might match the return type of a gcc2
14935 builtin and then its argument prototype would still apply. */
14936char drand48 ();
14937int
14938main ()
14939{
14940drand48 ();
14941 ;
14942 return 0;
14943}
14944_ACEOF
14945rm -f conftest.$ac_objext conftest$ac_exeext
14946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 14947 (eval $ac_link) 2>conftest.er1
a848cd7e 14948 ac_status=$?
ac1cb8d3
VS
14949 grep -v '^ *+' conftest.er1 >conftest.err
14950 rm -f conftest.er1
14951 cat conftest.err >&5
a848cd7e
SC
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } &&
5ff751d6 14954 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; } &&
14960 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
14961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14962 (eval $ac_try) 2>&5
14963 ac_status=$?
14964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14965 (exit $ac_status); }; }; then
14966 ac_cv_lib_cExt_drand48=yes
14967else
14968 echo "$as_me: failed program was:" >&5
14969sed 's/^/| /' conftest.$ac_ext >&5
14970
14971ac_cv_lib_cExt_drand48=no
14972fi
ac1cb8d3
VS
14973rm -f conftest.err conftest.$ac_objext \
14974 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
14975LIBS=$ac_check_lib_save_LIBS
14976fi
14977echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
14978echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
14979if test $ac_cv_lib_cExt_drand48 = yes; then
14980 LIBS="$LIBS -lcExt"
14981fi
14982
14983 else
14984 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
14985 fi
69120ee4
VZ
14986 echo "$as_me:$LINENO: checking for gcc/libc version" >&5
14987echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6
a848cd7e
SC
14988if test "${wx_cv_gccversion+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14990else
14991
391a765e
VS
14992 if test "$cross_compiling" = yes; then
14993 wx_cv_gccversion="EMX2"
14994
14995else
14996 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
14997/* confdefs.h. */
14998_ACEOF
14999cat confdefs.h >>conftest.$ac_ext
15000cat >>conftest.$ac_ext <<_ACEOF
15001/* end confdefs.h. */
15002
391a765e 15003 #include <stdio.h>
a848cd7e 15004
391a765e
VS
15005 int main()
15006 {
15007 FILE *f=fopen("conftestval", "w");
15008 if (!f) exit(1);
15009 fprintf(f,
a848cd7e 15010 #if (__GNUC__ < 3)
391a765e
VS
15011 "EMX2"
15012 #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
15013 "EMX3"
15014 #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
15015 "Innotek5"
15016 #else
15017 "Innotek6"
a848cd7e 15018 #endif
391a765e
VS
15019 );
15020 exit(0);
15021 }
a848cd7e 15022
a848cd7e 15023_ACEOF
391a765e
VS
15024rm -f conftest$ac_exeext
15025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15026 (eval $ac_link) 2>&5
ac1cb8d3
VS
15027 ac_status=$?
15028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
391a765e 15029 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
a848cd7e
SC
15030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15031 (eval $ac_try) 2>&5
15032 ac_status=$?
15033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034 (exit $ac_status); }; }; then
391a765e 15035 wx_cv_gccversion=`cat conftestval`
a848cd7e 15036else
391a765e
VS
15037 echo "$as_me: program exited with status $ac_status" >&5
15038echo "$as_me: failed program was:" >&5
a848cd7e
SC
15039sed 's/^/| /' conftest.$ac_ext >&5
15040
391a765e
VS
15041( exit $ac_status )
15042wx_cv_gccversion="EMX2"
a848cd7e 15043fi
391a765e 15044rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 15045fi
a848cd7e
SC
15046
15047fi
15048echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
15049echo "${ECHO_T}$wx_cv_gccversion" >&6
391a765e 15050 if test "$wx_cv_gccversion" = "EMX2"; then
a848cd7e
SC
15051 LIBS="$LIBS -lstdcpp"
15052 LDFLAGS="$LDFLAGS -Zsysv-signals"
15053 else
391a765e 15054 if test "$wx_cv_gccversion" = "EMX3"; then
ddd14b14 15055 LIBS="$LIBS -lstdcxx -lgcc"
a848cd7e
SC
15056 LDFLAGS="$LDFLAGS -Zsysv-signals"
15057 else
15058 LIBS="$LIBS -lstdc++"
15059 fi
15060 fi
94acd38e
DE
15061 if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
15062 { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
15063echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
15064 wxUSE_OMF=yes
2da0c077 15065 enable_omf=yes
a848cd7e
SC
15066 fi
15067 ;;
15068 *)
15069
15070
15071
15072 ac_ext=cc
15073ac_cpp='$CXXCPP $CPPFLAGS'
15074ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15075ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15076ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15077
15078
95986553 15079 echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
a848cd7e
SC
15080echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
15081if test "${ac_cv_string_strcasecmp+set}" = set; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15083else
15084
15085 cat >conftest.$ac_ext <<_ACEOF
15086/* confdefs.h. */
15087_ACEOF
15088cat confdefs.h >>conftest.$ac_ext
15089cat >>conftest.$ac_ext <<_ACEOF
15090/* end confdefs.h. */
15091
15092 #include <string.h>
15093
15094int
15095main ()
15096{
15097
15098 strcasecmp("foo", "bar");
15099
15100 ;
15101 return 0;
15102}
15103_ACEOF
15104rm -f conftest.$ac_objext conftest$ac_exeext
15105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15106 (eval $ac_link) 2>conftest.er1
a848cd7e 15107 ac_status=$?
ac1cb8d3
VS
15108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
a848cd7e
SC
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } &&
5ff751d6 15113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; } &&
15119 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15122 ac_status=$?
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }; then
15125 ac_cv_string_strcasecmp=yes
15126else
15127 echo "$as_me: failed program was:" >&5
15128sed 's/^/| /' conftest.$ac_ext >&5
15129
15130ac_cv_string_strcasecmp=no
15131
15132fi
ac1cb8d3
VS
15133rm -f conftest.err conftest.$ac_objext \
15134 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15135
15136fi
15137echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
15138echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
15139
15140 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
15141 cat >>confdefs.h <<\_ACEOF
15142#define HAVE_STRCASECMP_IN_STRING_H 1
15143_ACEOF
15144
15145 else
15146 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
15147echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
15148if test "${ac_cv_strings_strcasecmp+set}" = set; then
15149 echo $ECHO_N "(cached) $ECHO_C" >&6
15150else
15151
15152 cat >conftest.$ac_ext <<_ACEOF
15153/* confdefs.h. */
15154_ACEOF
15155cat confdefs.h >>conftest.$ac_ext
15156cat >>conftest.$ac_ext <<_ACEOF
15157/* end confdefs.h. */
15158
15159 #include <strings.h>
15160
15161int
15162main ()
15163{
15164
15165 strcasecmp("foo", "bar");
15166
15167 ;
15168 return 0;
15169}
15170_ACEOF
15171rm -f conftest.$ac_objext conftest$ac_exeext
15172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 15173 (eval $ac_link) 2>conftest.er1
a848cd7e 15174 ac_status=$?
ac1cb8d3
VS
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
a848cd7e
SC
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
5ff751d6 15180 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15182 (eval $ac_try) 2>&5
15183 ac_status=$?
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); }; } &&
15186 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15189 ac_status=$?
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 ac_cv_strings_strcasecmp=yes
15193else
15194 echo "$as_me: failed program was:" >&5
15195sed 's/^/| /' conftest.$ac_ext >&5
15196
15197ac_cv_strings_strcasecmp=no
15198
15199fi
ac1cb8d3
VS
15200rm -f conftest.err conftest.$ac_objext \
15201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
15202
15203fi
15204echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
15205echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
15206
0c3c69fc 15207 if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
a848cd7e
SC
15208 cat >>confdefs.h <<\_ACEOF
15209#define HAVE_STRCASECMP_IN_STRINGS_H 1
15210_ACEOF
15211
15212 else
15213 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
15214echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
15215 { (exit 1); exit 1; }; }
15216 fi
15217 fi
15218
15219 ac_ext=c
15220ac_cpp='$CPP $CPPFLAGS'
15221ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15222ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15223ac_compiler_gnu=$ac_cv_c_compiler_gnu
15224
15225 ;;
15226esac
15227
15228
15229echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15230echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
15231if test "${ac_cv_header_stdc+set}" = set; then
15232 echo $ECHO_N "(cached) $ECHO_C" >&6
15233else
15234 cat >conftest.$ac_ext <<_ACEOF
15235/* confdefs.h. */
15236_ACEOF
15237cat confdefs.h >>conftest.$ac_ext
15238cat >>conftest.$ac_ext <<_ACEOF
15239/* end confdefs.h. */
15240#include <stdlib.h>
15241#include <stdarg.h>
15242#include <string.h>
15243#include <float.h>
15244
15245int
15246main ()
15247{
15248
15249 ;
15250 return 0;
15251}
15252_ACEOF
15253rm -f conftest.$ac_objext
15254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15255 (eval $ac_compile) 2>conftest.er1
a848cd7e 15256 ac_status=$?
ac1cb8d3
VS
15257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -f conftest.er1
15259 cat conftest.err >&5
a848cd7e
SC
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } &&
5ff751d6 15262 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; } &&
15268 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15271 ac_status=$?
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 ac_cv_header_stdc=yes
15275else
15276 echo "$as_me: failed program was:" >&5
15277sed 's/^/| /' conftest.$ac_ext >&5
15278
15279ac_cv_header_stdc=no
15280fi
ac1cb8d3 15281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15282
15283if test $ac_cv_header_stdc = yes; then
15284 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15285 cat >conftest.$ac_ext <<_ACEOF
15286/* confdefs.h. */
15287_ACEOF
15288cat confdefs.h >>conftest.$ac_ext
15289cat >>conftest.$ac_ext <<_ACEOF
15290/* end confdefs.h. */
15291#include <string.h>
15292
15293_ACEOF
15294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15295 $EGREP "memchr" >/dev/null 2>&1; then
15296 :
15297else
15298 ac_cv_header_stdc=no
15299fi
15300rm -f conftest*
15301
15302fi
15303
15304if test $ac_cv_header_stdc = yes; then
15305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15306 cat >conftest.$ac_ext <<_ACEOF
15307/* confdefs.h. */
15308_ACEOF
15309cat confdefs.h >>conftest.$ac_ext
15310cat >>conftest.$ac_ext <<_ACEOF
15311/* end confdefs.h. */
15312#include <stdlib.h>
15313
15314_ACEOF
15315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15316 $EGREP "free" >/dev/null 2>&1; then
15317 :
15318else
15319 ac_cv_header_stdc=no
15320fi
15321rm -f conftest*
15322
15323fi
15324
15325if test $ac_cv_header_stdc = yes; then
15326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15327 if test "$cross_compiling" = yes; then
15328 :
15329else
15330 cat >conftest.$ac_ext <<_ACEOF
15331/* confdefs.h. */
15332_ACEOF
15333cat confdefs.h >>conftest.$ac_ext
15334cat >>conftest.$ac_ext <<_ACEOF
15335/* end confdefs.h. */
15336#include <ctype.h>
15337#if ((' ' & 0x0FF) == 0x020)
15338# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15339# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15340#else
15341# define ISLOWER(c) \
ac1cb8d3
VS
15342 (('a' <= (c) && (c) <= 'i') \
15343 || ('j' <= (c) && (c) <= 'r') \
15344 || ('s' <= (c) && (c) <= 'z'))
a848cd7e
SC
15345# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15346#endif
15347
15348#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15349int
15350main ()
15351{
15352 int i;
15353 for (i = 0; i < 256; i++)
15354 if (XOR (islower (i), ISLOWER (i))
ac1cb8d3 15355 || toupper (i) != TOUPPER (i))
a848cd7e
SC
15356 exit(2);
15357 exit (0);
15358}
15359_ACEOF
15360rm -f conftest$ac_exeext
15361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15362 (eval $ac_link) 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15368 ac_status=$?
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 :
15372else
15373 echo "$as_me: program exited with status $ac_status" >&5
15374echo "$as_me: failed program was:" >&5
15375sed 's/^/| /' conftest.$ac_ext >&5
15376
15377( exit $ac_status )
15378ac_cv_header_stdc=no
15379fi
ac1cb8d3 15380rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15381fi
15382fi
15383fi
15384echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15385echo "${ECHO_T}$ac_cv_header_stdc" >&6
15386if test $ac_cv_header_stdc = yes; then
15387
15388cat >>confdefs.h <<\_ACEOF
15389#define STDC_HEADERS 1
15390_ACEOF
15391
15392fi
15393
15394# On IRIX 5.3, sys/types and inttypes.h are conflicting.
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
ac1cb8d3 15405 inttypes.h stdint.h unistd.h
a848cd7e
SC
15406do
15407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15408echo "$as_me:$LINENO: checking for $ac_header" >&5
15409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15410if eval "test \"\${$as_ac_Header+set}\" = set"; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15412else
15413 cat >conftest.$ac_ext <<_ACEOF
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
15418/* end confdefs.h. */
15419$ac_includes_default
15420
15421#include <$ac_header>
15422_ACEOF
15423rm -f conftest.$ac_objext
15424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15425 (eval $ac_compile) 2>conftest.er1
a848cd7e 15426 ac_status=$?
ac1cb8d3
VS
15427 grep -v '^ *+' conftest.er1 >conftest.err
15428 rm -f conftest.er1
15429 cat conftest.err >&5
a848cd7e
SC
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); } &&
5ff751d6 15432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; } &&
15438 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15441 ac_status=$?
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 eval "$as_ac_Header=yes"
15445else
15446 echo "$as_me: failed program was:" >&5
15447sed 's/^/| /' conftest.$ac_ext >&5
15448
15449eval "$as_ac_Header=no"
15450fi
ac1cb8d3 15451rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15452fi
15453echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15454echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15455if test `eval echo '${'$as_ac_Header'}'` = yes; then
15456 cat >>confdefs.h <<_ACEOF
15457#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15458_ACEOF
15459
15460fi
15461
15462done
15463
15464
15465
15466for ac_header in stdlib.h
15467do
15468as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15469if eval "test \"\${$as_ac_Header+set}\" = set"; then
15470 echo "$as_me:$LINENO: checking for $ac_header" >&5
15471echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15472if eval "test \"\${$as_ac_Header+set}\" = set"; then
15473 echo $ECHO_N "(cached) $ECHO_C" >&6
15474fi
15475echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15476echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15477else
15478 # Is the header compilable?
15479echo "$as_me:$LINENO: checking $ac_header usability" >&5
15480echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15481cat >conftest.$ac_ext <<_ACEOF
15482/* confdefs.h. */
15483_ACEOF
15484cat confdefs.h >>conftest.$ac_ext
15485cat >>conftest.$ac_ext <<_ACEOF
15486/* end confdefs.h. */
15487$ac_includes_default
15488#include <$ac_header>
15489_ACEOF
15490rm -f conftest.$ac_objext
15491if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15492 (eval $ac_compile) 2>conftest.er1
a848cd7e 15493 ac_status=$?
ac1cb8d3
VS
15494 grep -v '^ *+' conftest.er1 >conftest.err
15495 rm -f conftest.er1
15496 cat conftest.err >&5
a848cd7e
SC
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); } &&
5ff751d6 15499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15501 (eval $ac_try) 2>&5
15502 ac_status=$?
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; } &&
15505 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15507 (eval $ac_try) 2>&5
15508 ac_status=$?
15509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); }; }; then
15511 ac_header_compiler=yes
15512else
15513 echo "$as_me: failed program was:" >&5
15514sed 's/^/| /' conftest.$ac_ext >&5
15515
15516ac_header_compiler=no
15517fi
ac1cb8d3 15518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15519echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15520echo "${ECHO_T}$ac_header_compiler" >&6
15521
15522# Is the header present?
15523echo "$as_me:$LINENO: checking $ac_header presence" >&5
15524echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15525cat >conftest.$ac_ext <<_ACEOF
15526/* confdefs.h. */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
15530/* end confdefs.h. */
15531#include <$ac_header>
15532_ACEOF
15533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15535 ac_status=$?
15536 grep -v '^ *+' conftest.er1 >conftest.err
15537 rm -f conftest.er1
15538 cat conftest.err >&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } >/dev/null; then
15541 if test -s conftest.err; then
15542 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15544 else
15545 ac_cpp_err=
15546 fi
15547else
15548 ac_cpp_err=yes
15549fi
15550if test -z "$ac_cpp_err"; then
15551 ac_header_preproc=yes
15552else
15553 echo "$as_me: failed program was:" >&5
15554sed 's/^/| /' conftest.$ac_ext >&5
15555
15556 ac_header_preproc=no
15557fi
15558rm -f conftest.err conftest.$ac_ext
15559echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15560echo "${ECHO_T}$ac_header_preproc" >&6
15561
15562# So? What about this header?
ac1cb8d3
VS
15563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15564 yes:no: )
a848cd7e
SC
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15566echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15568echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15569 ac_header_preproc=yes
a848cd7e 15570 ;;
ac1cb8d3 15571 no:yes:* )
a848cd7e
SC
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15573echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15575echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15577echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15579echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15581echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15582 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15583echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15584 (
15585 cat <<\_ASBOX
ac1cb8d3
VS
15586## ----------------------------------------- ##
15587## Report this to wx-dev@lists.wxwidgets.org ##
15588## ----------------------------------------- ##
a848cd7e
SC
15589_ASBOX
15590 ) |
15591 sed "s/^/$as_me: WARNING: /" >&2
15592 ;;
15593esac
15594echo "$as_me:$LINENO: checking for $ac_header" >&5
15595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15596if eval "test \"\${$as_ac_Header+set}\" = set"; then
15597 echo $ECHO_N "(cached) $ECHO_C" >&6
15598else
ac1cb8d3 15599 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15600fi
15601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15603
15604fi
15605if test `eval echo '${'$as_ac_Header'}'` = yes; then
15606 cat >>confdefs.h <<_ACEOF
15607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15608_ACEOF
15609
15610fi
15611
15612done
15613
15614
15615for ac_header in malloc.h
15616do
15617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15618if eval "test \"\${$as_ac_Header+set}\" = set"; then
15619 echo "$as_me:$LINENO: checking for $ac_header" >&5
15620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15621if eval "test \"\${$as_ac_Header+set}\" = set"; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623fi
15624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15626else
15627 # Is the header compilable?
15628echo "$as_me:$LINENO: checking $ac_header usability" >&5
15629echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15630cat >conftest.$ac_ext <<_ACEOF
15631/* confdefs.h. */
15632_ACEOF
15633cat confdefs.h >>conftest.$ac_ext
15634cat >>conftest.$ac_ext <<_ACEOF
15635/* end confdefs.h. */
15636$ac_includes_default
15637#include <$ac_header>
15638_ACEOF
15639rm -f conftest.$ac_objext
15640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15641 (eval $ac_compile) 2>conftest.er1
a848cd7e 15642 ac_status=$?
ac1cb8d3
VS
15643 grep -v '^ *+' conftest.er1 >conftest.err
15644 rm -f conftest.er1
15645 cat conftest.err >&5
a848cd7e
SC
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
5ff751d6 15648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15650 (eval $ac_try) 2>&5
15651 ac_status=$?
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); }; } &&
15654 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15656 (eval $ac_try) 2>&5
15657 ac_status=$?
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); }; }; then
15660 ac_header_compiler=yes
15661else
15662 echo "$as_me: failed program was:" >&5
15663sed 's/^/| /' conftest.$ac_ext >&5
15664
15665ac_header_compiler=no
15666fi
ac1cb8d3 15667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15669echo "${ECHO_T}$ac_header_compiler" >&6
15670
15671# Is the header present?
15672echo "$as_me:$LINENO: checking $ac_header presence" >&5
15673echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15674cat >conftest.$ac_ext <<_ACEOF
15675/* confdefs.h. */
15676_ACEOF
15677cat confdefs.h >>conftest.$ac_ext
15678cat >>conftest.$ac_ext <<_ACEOF
15679/* end confdefs.h. */
15680#include <$ac_header>
15681_ACEOF
15682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15684 ac_status=$?
15685 grep -v '^ *+' conftest.er1 >conftest.err
15686 rm -f conftest.er1
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } >/dev/null; then
15690 if test -s conftest.err; then
15691 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15693 else
15694 ac_cpp_err=
15695 fi
15696else
15697 ac_cpp_err=yes
15698fi
15699if test -z "$ac_cpp_err"; then
15700 ac_header_preproc=yes
15701else
15702 echo "$as_me: failed program was:" >&5
15703sed 's/^/| /' conftest.$ac_ext >&5
15704
15705 ac_header_preproc=no
15706fi
15707rm -f conftest.err conftest.$ac_ext
15708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15709echo "${ECHO_T}$ac_header_preproc" >&6
15710
15711# So? What about this header?
ac1cb8d3
VS
15712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15713 yes:no: )
a848cd7e
SC
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15715echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15717echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15718 ac_header_preproc=yes
a848cd7e 15719 ;;
ac1cb8d3 15720 no:yes:* )
a848cd7e
SC
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15722echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15724echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15726echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15728echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15732echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15733 (
15734 cat <<\_ASBOX
ac1cb8d3
VS
15735## ----------------------------------------- ##
15736## Report this to wx-dev@lists.wxwidgets.org ##
15737## ----------------------------------------- ##
a848cd7e
SC
15738_ASBOX
15739 ) |
15740 sed "s/^/$as_me: WARNING: /" >&2
15741 ;;
15742esac
15743echo "$as_me:$LINENO: checking for $ac_header" >&5
15744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15745if eval "test \"\${$as_ac_Header+set}\" = set"; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15747else
ac1cb8d3 15748 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15749fi
15750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15752
15753fi
15754if test `eval echo '${'$as_ac_Header'}'` = yes; then
15755 cat >>confdefs.h <<_ACEOF
15756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15757_ACEOF
15758
15759fi
15760
15761done
15762
15763
15764for ac_header in unistd.h
15765do
15766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15767if eval "test \"\${$as_ac_Header+set}\" = set"; then
15768 echo "$as_me:$LINENO: checking for $ac_header" >&5
15769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15770if eval "test \"\${$as_ac_Header+set}\" = set"; then
15771 echo $ECHO_N "(cached) $ECHO_C" >&6
15772fi
15773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15775else
15776 # Is the header compilable?
15777echo "$as_me:$LINENO: checking $ac_header usability" >&5
15778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15779cat >conftest.$ac_ext <<_ACEOF
15780/* confdefs.h. */
15781_ACEOF
15782cat confdefs.h >>conftest.$ac_ext
15783cat >>conftest.$ac_ext <<_ACEOF
15784/* end confdefs.h. */
15785$ac_includes_default
15786#include <$ac_header>
15787_ACEOF
15788rm -f conftest.$ac_objext
15789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15790 (eval $ac_compile) 2>conftest.er1
a848cd7e 15791 ac_status=$?
ac1cb8d3
VS
15792 grep -v '^ *+' conftest.er1 >conftest.err
15793 rm -f conftest.er1
15794 cat conftest.err >&5
a848cd7e
SC
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); } &&
5ff751d6 15797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15800 ac_status=$?
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; } &&
15803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805 (eval $ac_try) 2>&5
15806 ac_status=$?
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); }; }; then
15809 ac_header_compiler=yes
15810else
15811 echo "$as_me: failed program was:" >&5
15812sed 's/^/| /' conftest.$ac_ext >&5
15813
15814ac_header_compiler=no
15815fi
ac1cb8d3 15816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15817echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15818echo "${ECHO_T}$ac_header_compiler" >&6
15819
15820# Is the header present?
15821echo "$as_me:$LINENO: checking $ac_header presence" >&5
15822echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15823cat >conftest.$ac_ext <<_ACEOF
15824/* confdefs.h. */
15825_ACEOF
15826cat confdefs.h >>conftest.$ac_ext
15827cat >>conftest.$ac_ext <<_ACEOF
15828/* end confdefs.h. */
15829#include <$ac_header>
15830_ACEOF
15831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15833 ac_status=$?
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } >/dev/null; then
15839 if test -s conftest.err; then
15840 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15842 else
15843 ac_cpp_err=
15844 fi
15845else
15846 ac_cpp_err=yes
15847fi
15848if test -z "$ac_cpp_err"; then
15849 ac_header_preproc=yes
15850else
15851 echo "$as_me: failed program was:" >&5
15852sed 's/^/| /' conftest.$ac_ext >&5
15853
15854 ac_header_preproc=no
15855fi
15856rm -f conftest.err conftest.$ac_ext
15857echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15858echo "${ECHO_T}$ac_header_preproc" >&6
15859
15860# So? What about this header?
ac1cb8d3
VS
15861case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15862 yes:no: )
a848cd7e
SC
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15864echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15866echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15867 ac_header_preproc=yes
a848cd7e 15868 ;;
ac1cb8d3 15869 no:yes:* )
a848cd7e
SC
15870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15871echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
15872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15873echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15875echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15877echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15879echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15881echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
15882 (
15883 cat <<\_ASBOX
ac1cb8d3
VS
15884## ----------------------------------------- ##
15885## Report this to wx-dev@lists.wxwidgets.org ##
15886## ----------------------------------------- ##
a848cd7e
SC
15887_ASBOX
15888 ) |
15889 sed "s/^/$as_me: WARNING: /" >&2
15890 ;;
15891esac
15892echo "$as_me:$LINENO: checking for $ac_header" >&5
15893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15894if eval "test \"\${$as_ac_Header+set}\" = set"; then
15895 echo $ECHO_N "(cached) $ECHO_C" >&6
15896else
ac1cb8d3 15897 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
15898fi
15899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15901
15902fi
15903if test `eval echo '${'$as_ac_Header'}'` = yes; then
15904 cat >>confdefs.h <<_ACEOF
15905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15906_ACEOF
15907
15908fi
15909
15910done
15911
15912
15913for ac_header in wchar.h
15914do
15915as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15916if eval "test \"\${$as_ac_Header+set}\" = set"; then
15917 echo "$as_me:$LINENO: checking for $ac_header" >&5
15918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15919if eval "test \"\${$as_ac_Header+set}\" = set"; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15921fi
15922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15923echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15924else
15925 # Is the header compilable?
15926echo "$as_me:$LINENO: checking $ac_header usability" >&5
15927echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15928cat >conftest.$ac_ext <<_ACEOF
15929/* confdefs.h. */
15930_ACEOF
15931cat confdefs.h >>conftest.$ac_ext
15932cat >>conftest.$ac_ext <<_ACEOF
15933/* end confdefs.h. */
15934$ac_includes_default
15935#include <$ac_header>
15936_ACEOF
15937rm -f conftest.$ac_objext
15938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 15939 (eval $ac_compile) 2>conftest.er1
a848cd7e 15940 ac_status=$?
ac1cb8d3
VS
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
a848cd7e
SC
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
5ff751d6 15946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
15947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15948 (eval $ac_try) 2>&5
15949 ac_status=$?
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); }; } &&
15952 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; }; then
15958 ac_header_compiler=yes
15959else
15960 echo "$as_me: failed program was:" >&5
15961sed 's/^/| /' conftest.$ac_ext >&5
15962
15963ac_header_compiler=no
15964fi
ac1cb8d3 15965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
15966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15967echo "${ECHO_T}$ac_header_compiler" >&6
15968
15969# Is the header present?
15970echo "$as_me:$LINENO: checking $ac_header presence" >&5
15971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15972cat >conftest.$ac_ext <<_ACEOF
15973/* confdefs.h. */
15974_ACEOF
15975cat confdefs.h >>conftest.$ac_ext
15976cat >>conftest.$ac_ext <<_ACEOF
15977/* end confdefs.h. */
15978#include <$ac_header>
15979_ACEOF
15980if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15982 ac_status=$?
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } >/dev/null; then
15988 if test -s conftest.err; then
15989 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 15990 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
15991 else
15992 ac_cpp_err=
15993 fi
15994else
15995 ac_cpp_err=yes
15996fi
15997if test -z "$ac_cpp_err"; then
15998 ac_header_preproc=yes
15999else
16000 echo "$as_me: failed program was:" >&5
16001sed 's/^/| /' conftest.$ac_ext >&5
16002
16003 ac_header_preproc=no
16004fi
16005rm -f conftest.err conftest.$ac_ext
16006echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16007echo "${ECHO_T}$ac_header_preproc" >&6
16008
16009# So? What about this header?
ac1cb8d3
VS
16010case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16011 yes:no: )
a848cd7e
SC
16012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16013echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16015echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16016 ac_header_preproc=yes
a848cd7e 16017 ;;
ac1cb8d3 16018 no:yes:* )
a848cd7e
SC
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16020echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16022echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16024echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16026echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16030echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16031 (
16032 cat <<\_ASBOX
ac1cb8d3
VS
16033## ----------------------------------------- ##
16034## Report this to wx-dev@lists.wxwidgets.org ##
16035## ----------------------------------------- ##
a848cd7e
SC
16036_ASBOX
16037 ) |
16038 sed "s/^/$as_me: WARNING: /" >&2
16039 ;;
16040esac
16041echo "$as_me:$LINENO: checking for $ac_header" >&5
16042echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16043if eval "test \"\${$as_ac_Header+set}\" = set"; then
16044 echo $ECHO_N "(cached) $ECHO_C" >&6
16045else
ac1cb8d3 16046 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16047fi
16048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16050
16051fi
16052if test `eval echo '${'$as_ac_Header'}'` = yes; then
16053 cat >>confdefs.h <<_ACEOF
16054#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16055_ACEOF
16056
16057fi
16058
16059done
16060
16061
16062if test "$ac_cv_header_wchar_h" != "yes"; then
16063
16064for ac_header in wcstr.h
16065do
16066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16067if eval "test \"\${$as_ac_Header+set}\" = set"; then
16068 echo "$as_me:$LINENO: checking for $ac_header" >&5
16069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16070if eval "test \"\${$as_ac_Header+set}\" = set"; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16072fi
16073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16075else
16076 # Is the header compilable?
16077echo "$as_me:$LINENO: checking $ac_header usability" >&5
16078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16079cat >conftest.$ac_ext <<_ACEOF
16080/* confdefs.h. */
16081_ACEOF
16082cat confdefs.h >>conftest.$ac_ext
16083cat >>conftest.$ac_ext <<_ACEOF
16084/* end confdefs.h. */
16085$ac_includes_default
16086#include <$ac_header>
16087_ACEOF
16088rm -f conftest.$ac_objext
16089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16090 (eval $ac_compile) 2>conftest.er1
a848cd7e 16091 ac_status=$?
ac1cb8d3
VS
16092 grep -v '^ *+' conftest.er1 >conftest.err
16093 rm -f conftest.er1
16094 cat conftest.err >&5
a848cd7e
SC
16095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096 (exit $ac_status); } &&
5ff751d6 16097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099 (eval $ac_try) 2>&5
16100 ac_status=$?
16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102 (exit $ac_status); }; } &&
16103 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105 (eval $ac_try) 2>&5
16106 ac_status=$?
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; }; then
16109 ac_header_compiler=yes
16110else
16111 echo "$as_me: failed program was:" >&5
16112sed 's/^/| /' conftest.$ac_ext >&5
16113
16114ac_header_compiler=no
16115fi
ac1cb8d3 16116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16118echo "${ECHO_T}$ac_header_compiler" >&6
16119
16120# Is the header present?
16121echo "$as_me:$LINENO: checking $ac_header presence" >&5
16122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16123cat >conftest.$ac_ext <<_ACEOF
16124/* confdefs.h. */
16125_ACEOF
16126cat confdefs.h >>conftest.$ac_ext
16127cat >>conftest.$ac_ext <<_ACEOF
16128/* end confdefs.h. */
16129#include <$ac_header>
16130_ACEOF
16131if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16133 ac_status=$?
16134 grep -v '^ *+' conftest.er1 >conftest.err
16135 rm -f conftest.er1
16136 cat conftest.err >&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } >/dev/null; then
16139 if test -s conftest.err; then
16140 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16141 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16142 else
16143 ac_cpp_err=
16144 fi
16145else
16146 ac_cpp_err=yes
16147fi
16148if test -z "$ac_cpp_err"; then
16149 ac_header_preproc=yes
16150else
16151 echo "$as_me: failed program was:" >&5
16152sed 's/^/| /' conftest.$ac_ext >&5
16153
16154 ac_header_preproc=no
16155fi
16156rm -f conftest.err conftest.$ac_ext
16157echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16158echo "${ECHO_T}$ac_header_preproc" >&6
16159
16160# So? What about this header?
ac1cb8d3
VS
16161case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16162 yes:no: )
a848cd7e
SC
16163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16164echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16166echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16167 ac_header_preproc=yes
a848cd7e 16168 ;;
ac1cb8d3 16169 no:yes:* )
a848cd7e
SC
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16171echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16173echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16175echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16177echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16179echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16181echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16182 (
16183 cat <<\_ASBOX
ac1cb8d3
VS
16184## ----------------------------------------- ##
16185## Report this to wx-dev@lists.wxwidgets.org ##
16186## ----------------------------------------- ##
a848cd7e
SC
16187_ASBOX
16188 ) |
16189 sed "s/^/$as_me: WARNING: /" >&2
16190 ;;
16191esac
16192echo "$as_me:$LINENO: checking for $ac_header" >&5
16193echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16194if eval "test \"\${$as_ac_Header+set}\" = set"; then
16195 echo $ECHO_N "(cached) $ECHO_C" >&6
16196else
ac1cb8d3 16197 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16198fi
16199echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16200echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16201
16202fi
16203if test `eval echo '${'$as_ac_Header'}'` = yes; then
16204 cat >>confdefs.h <<_ACEOF
16205#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16206_ACEOF
16207
16208fi
16209
16210done
16211
16212fi
16213
16214
16215for ac_header in fnmatch.h
16216do
16217as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16218if eval "test \"\${$as_ac_Header+set}\" = set"; then
16219 echo "$as_me:$LINENO: checking for $ac_header" >&5
16220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16221if eval "test \"\${$as_ac_Header+set}\" = set"; then
16222 echo $ECHO_N "(cached) $ECHO_C" >&6
16223fi
16224echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16225echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16226else
16227 # Is the header compilable?
16228echo "$as_me:$LINENO: checking $ac_header usability" >&5
16229echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16230cat >conftest.$ac_ext <<_ACEOF
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236$ac_includes_default
16237#include <$ac_header>
16238_ACEOF
16239rm -f conftest.$ac_objext
16240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16241 (eval $ac_compile) 2>conftest.er1
a848cd7e 16242 ac_status=$?
ac1cb8d3
VS
16243 grep -v '^ *+' conftest.er1 >conftest.err
16244 rm -f conftest.er1
16245 cat conftest.err >&5
a848cd7e
SC
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); } &&
5ff751d6 16248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; } &&
16254 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; }; then
16260 ac_header_compiler=yes
16261else
16262 echo "$as_me: failed program was:" >&5
16263sed 's/^/| /' conftest.$ac_ext >&5
16264
16265ac_header_compiler=no
16266fi
ac1cb8d3 16267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16269echo "${ECHO_T}$ac_header_compiler" >&6
16270
16271# Is the header present?
16272echo "$as_me:$LINENO: checking $ac_header presence" >&5
16273echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16274cat >conftest.$ac_ext <<_ACEOF
16275/* confdefs.h. */
16276_ACEOF
16277cat confdefs.h >>conftest.$ac_ext
16278cat >>conftest.$ac_ext <<_ACEOF
16279/* end confdefs.h. */
16280#include <$ac_header>
16281_ACEOF
16282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16284 ac_status=$?
16285 grep -v '^ *+' conftest.er1 >conftest.err
16286 rm -f conftest.er1
16287 cat conftest.err >&5
16288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16289 (exit $ac_status); } >/dev/null; then
16290 if test -s conftest.err; then
16291 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16293 else
16294 ac_cpp_err=
16295 fi
16296else
16297 ac_cpp_err=yes
16298fi
16299if test -z "$ac_cpp_err"; then
16300 ac_header_preproc=yes
16301else
16302 echo "$as_me: failed program was:" >&5
16303sed 's/^/| /' conftest.$ac_ext >&5
16304
16305 ac_header_preproc=no
16306fi
16307rm -f conftest.err conftest.$ac_ext
16308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16309echo "${ECHO_T}$ac_header_preproc" >&6
16310
16311# So? What about this header?
ac1cb8d3
VS
16312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16313 yes:no: )
a848cd7e
SC
16314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16317echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16318 ac_header_preproc=yes
a848cd7e 16319 ;;
ac1cb8d3 16320 no:yes:* )
a848cd7e
SC
16321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16322echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16324echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16326echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16328echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16330echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16332echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16333 (
16334 cat <<\_ASBOX
ac1cb8d3
VS
16335## ----------------------------------------- ##
16336## Report this to wx-dev@lists.wxwidgets.org ##
16337## ----------------------------------------- ##
a848cd7e
SC
16338_ASBOX
16339 ) |
16340 sed "s/^/$as_me: WARNING: /" >&2
16341 ;;
16342esac
16343echo "$as_me:$LINENO: checking for $ac_header" >&5
16344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16345if eval "test \"\${$as_ac_Header+set}\" = set"; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16347else
ac1cb8d3 16348 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16349fi
16350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16352
16353fi
16354if test `eval echo '${'$as_ac_Header'}'` = yes; then
16355 cat >>confdefs.h <<_ACEOF
16356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16357_ACEOF
16358
16359fi
16360
16361done
16362
16363
a848cd7e
SC
16364
16365for ac_header in langinfo.h
16366do
16367as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16368if eval "test \"\${$as_ac_Header+set}\" = set"; then
16369 echo "$as_me:$LINENO: checking for $ac_header" >&5
16370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16371if eval "test \"\${$as_ac_Header+set}\" = set"; then
16372 echo $ECHO_N "(cached) $ECHO_C" >&6
16373fi
16374echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16375echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16376else
16377 # Is the header compilable?
16378echo "$as_me:$LINENO: checking $ac_header usability" >&5
16379echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16380cat >conftest.$ac_ext <<_ACEOF
16381/* confdefs.h. */
16382_ACEOF
16383cat confdefs.h >>conftest.$ac_ext
16384cat >>conftest.$ac_ext <<_ACEOF
16385/* end confdefs.h. */
16386$ac_includes_default
16387#include <$ac_header>
16388_ACEOF
16389rm -f conftest.$ac_objext
16390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16391 (eval $ac_compile) 2>conftest.er1
a848cd7e 16392 ac_status=$?
ac1cb8d3
VS
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
a848cd7e
SC
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
5ff751d6 16398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16400 (eval $ac_try) 2>&5
16401 ac_status=$?
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); }; } &&
16404 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16407 ac_status=$?
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_header_compiler=yes
16411else
16412 echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415ac_header_compiler=no
16416fi
ac1cb8d3 16417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16418echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16419echo "${ECHO_T}$ac_header_compiler" >&6
16420
16421# Is the header present?
16422echo "$as_me:$LINENO: checking $ac_header presence" >&5
16423echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16424cat >conftest.$ac_ext <<_ACEOF
16425/* confdefs.h. */
16426_ACEOF
16427cat confdefs.h >>conftest.$ac_ext
16428cat >>conftest.$ac_ext <<_ACEOF
16429/* end confdefs.h. */
16430#include <$ac_header>
16431_ACEOF
16432if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16433 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } >/dev/null; then
16440 if test -s conftest.err; then
16441 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 16442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
16443 else
16444 ac_cpp_err=
16445 fi
16446else
16447 ac_cpp_err=yes
16448fi
16449if test -z "$ac_cpp_err"; then
16450 ac_header_preproc=yes
16451else
16452 echo "$as_me: failed program was:" >&5
16453sed 's/^/| /' conftest.$ac_ext >&5
16454
16455 ac_header_preproc=no
16456fi
16457rm -f conftest.err conftest.$ac_ext
16458echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16459echo "${ECHO_T}$ac_header_preproc" >&6
16460
16461# So? What about this header?
ac1cb8d3
VS
16462case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16463 yes:no: )
a848cd7e
SC
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16465echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16467echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16468 ac_header_preproc=yes
a848cd7e 16469 ;;
ac1cb8d3 16470 no:yes:* )
a848cd7e
SC
16471 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16472echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
16473 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16474echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16476echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16478echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16482echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
16483 (
16484 cat <<\_ASBOX
ac1cb8d3
VS
16485## ----------------------------------------- ##
16486## Report this to wx-dev@lists.wxwidgets.org ##
16487## ----------------------------------------- ##
a848cd7e
SC
16488_ASBOX
16489 ) |
16490 sed "s/^/$as_me: WARNING: /" >&2
16491 ;;
16492esac
16493echo "$as_me:$LINENO: checking for $ac_header" >&5
16494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16495if eval "test \"\${$as_ac_Header+set}\" = set"; then
16496 echo $ECHO_N "(cached) $ECHO_C" >&6
16497else
ac1cb8d3 16498 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
16499fi
16500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16502
16503fi
16504if test `eval echo '${'$as_ac_Header'}'` = yes; then
16505 cat >>confdefs.h <<_ACEOF
16506#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16507_ACEOF
16508
16509fi
16510
16511done
16512
16513
16514case "${host}" in
16515 *-pc-os2_emx | *-pc-os2-emx )
391a765e
VS
16516 if test $ac_cv_header_langinfo_h = "yes" \
16517 -a \( "$wx_cv_gccversion" = "EMX2" \
16518 -o "$wx_cv_gccversion" = "EMX3" \
16519 -o "$wx_cv_gccversion" = "Innotek5" \); then
a848cd7e
SC
16520 LIBS="$LIBS -lintl"
16521 fi
16522 ;;
16523esac
16524
a848cd7e
SC
16525
16526echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16527echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16528if test "${ac_cv_c_const+set}" = set; then
16529 echo $ECHO_N "(cached) $ECHO_C" >&6
16530else
16531 cat >conftest.$ac_ext <<_ACEOF
16532/* confdefs.h. */
16533_ACEOF
16534cat confdefs.h >>conftest.$ac_ext
16535cat >>conftest.$ac_ext <<_ACEOF
16536/* end confdefs.h. */
16537
16538int
16539main ()
16540{
16541/* FIXME: Include the comments suggested by Paul. */
16542#ifndef __cplusplus
16543 /* Ultrix mips cc rejects this. */
16544 typedef int charset[2];
16545 const charset x;
16546 /* SunOS 4.1.1 cc rejects this. */
16547 char const *const *ccp;
16548 char **p;
16549 /* NEC SVR4.0.2 mips cc rejects this. */
16550 struct point {int x, y;};
16551 static struct point const zero = {0,0};
16552 /* AIX XL C 1.02.0.0 rejects this.
16553 It does not let you subtract one const X* pointer from another in
16554 an arm of an if-expression whose if-part is not a constant
16555 expression */
16556 const char *g = "string";
16557 ccp = &g + (g ? g-g : 0);
16558 /* HPUX 7.0 cc rejects these. */
16559 ++ccp;
16560 p = (char**) ccp;
16561 ccp = (char const *const *) p;
16562 { /* SCO 3.2v4 cc rejects this. */
16563 char *t;
16564 char const *s = 0 ? (char *) 0 : (char const *) 0;
16565
16566 *t++ = 0;
16567 }
16568 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16569 int x[] = {25, 17};
16570 const int *foo = &x[0];
16571 ++foo;
16572 }
16573 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16574 typedef const int *iptr;
16575 iptr p = 0;
16576 ++p;
16577 }
16578 { /* AIX XL C 1.02.0.0 rejects this saying
16579 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16580 struct s { int j; const int *ap[3]; };
16581 struct s *b; b->j = 5;
16582 }
16583 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16584 const int foo = 10;
16585 }
16586#endif
16587
16588 ;
16589 return 0;
16590}
16591_ACEOF
16592rm -f conftest.$ac_objext
16593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16594 (eval $ac_compile) 2>conftest.er1
a848cd7e 16595 ac_status=$?
ac1cb8d3
VS
16596 grep -v '^ *+' conftest.er1 >conftest.err
16597 rm -f conftest.er1
16598 cat conftest.err >&5
a848cd7e
SC
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
5ff751d6 16601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16604 ac_status=$?
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 ac_cv_c_const=yes
16614else
16615 echo "$as_me: failed program was:" >&5
16616sed 's/^/| /' conftest.$ac_ext >&5
16617
16618ac_cv_c_const=no
16619fi
ac1cb8d3 16620rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16621fi
16622echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16623echo "${ECHO_T}$ac_cv_c_const" >&6
16624if test $ac_cv_c_const = no; then
16625
16626cat >>confdefs.h <<\_ACEOF
16627#define const
16628_ACEOF
16629
16630fi
16631
16632echo "$as_me:$LINENO: checking for inline" >&5
16633echo $ECHO_N "checking for inline... $ECHO_C" >&6
16634if test "${ac_cv_c_inline+set}" = set; then
16635 echo $ECHO_N "(cached) $ECHO_C" >&6
16636else
16637 ac_cv_c_inline=no
16638for ac_kw in inline __inline__ __inline; do
16639 cat >conftest.$ac_ext <<_ACEOF
16640/* confdefs.h. */
16641_ACEOF
16642cat confdefs.h >>conftest.$ac_ext
16643cat >>conftest.$ac_ext <<_ACEOF
16644/* end confdefs.h. */
16645#ifndef __cplusplus
16646typedef int foo_t;
16647static $ac_kw foo_t static_foo () {return 0; }
16648$ac_kw foo_t foo () {return 0; }
16649#endif
16650
16651_ACEOF
16652rm -f conftest.$ac_objext
16653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16654 (eval $ac_compile) 2>conftest.er1
a848cd7e 16655 ac_status=$?
ac1cb8d3
VS
16656 grep -v '^ *+' conftest.er1 >conftest.err
16657 rm -f conftest.er1
16658 cat conftest.err >&5
a848cd7e
SC
16659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } &&
5ff751d6 16661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; } &&
16667 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_cv_c_inline=$ac_kw; break
16674else
16675 echo "$as_me: failed program was:" >&5
16676sed 's/^/| /' conftest.$ac_ext >&5
16677
16678fi
ac1cb8d3 16679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16680done
16681
16682fi
16683echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
16684echo "${ECHO_T}$ac_cv_c_inline" >&6
ac1cb8d3
VS
16685
16686
a848cd7e
SC
16687case $ac_cv_c_inline in
16688 inline | yes) ;;
ac1cb8d3
VS
16689 *)
16690 case $ac_cv_c_inline in
16691 no) ac_val=;;
16692 *) ac_val=$ac_cv_c_inline;;
16693 esac
16694 cat >>confdefs.h <<_ACEOF
16695#ifndef __cplusplus
16696#define inline $ac_val
16697#endif
de59c161 16698_ACEOF
ac1cb8d3 16699 ;;
a848cd7e
SC
16700esac
16701
16702
16703echo "$as_me:$LINENO: checking for char" >&5
16704echo $ECHO_N "checking for char... $ECHO_C" >&6
16705if test "${ac_cv_type_char+set}" = set; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16707else
16708 cat >conftest.$ac_ext <<_ACEOF
16709/* confdefs.h. */
16710_ACEOF
16711cat confdefs.h >>conftest.$ac_ext
16712cat >>conftest.$ac_ext <<_ACEOF
16713/* end confdefs.h. */
16714$ac_includes_default
16715int
16716main ()
16717{
16718if ((char *) 0)
16719 return 0;
16720if (sizeof (char))
16721 return 0;
16722 ;
16723 return 0;
16724}
16725_ACEOF
16726rm -f conftest.$ac_objext
16727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16728 (eval $ac_compile) 2>conftest.er1
a848cd7e 16729 ac_status=$?
ac1cb8d3
VS
16730 grep -v '^ *+' conftest.er1 >conftest.err
16731 rm -f conftest.er1
16732 cat conftest.err >&5
a848cd7e
SC
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
5ff751d6 16735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16738 ac_status=$?
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; } &&
16741 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16743 (eval $ac_try) 2>&5
16744 ac_status=$?
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); }; }; then
16747 ac_cv_type_char=yes
16748else
16749 echo "$as_me: failed program was:" >&5
16750sed 's/^/| /' conftest.$ac_ext >&5
16751
16752ac_cv_type_char=no
16753fi
ac1cb8d3 16754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16755fi
16756echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16757echo "${ECHO_T}$ac_cv_type_char" >&6
16758
16759echo "$as_me:$LINENO: checking size of char" >&5
16760echo $ECHO_N "checking size of char... $ECHO_C" >&6
16761if test "${ac_cv_sizeof_char+set}" = set; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16763else
16764 if test "$ac_cv_type_char" = yes; then
16765 # The cast to unsigned long works around a bug in the HP C Compiler
16766 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16767 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16768 # This bug is HP SR number 8606223364.
16769 if test "$cross_compiling" = yes; then
16770 # Depending upon the size, compute the lo and hi bounds.
16771cat >conftest.$ac_ext <<_ACEOF
16772/* confdefs.h. */
16773_ACEOF
16774cat confdefs.h >>conftest.$ac_ext
16775cat >>conftest.$ac_ext <<_ACEOF
16776/* end confdefs.h. */
16777$ac_includes_default
16778int
16779main ()
16780{
16781static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16782test_array [0] = 0
16783
16784 ;
16785 return 0;
16786}
16787_ACEOF
16788rm -f conftest.$ac_objext
16789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16790 (eval $ac_compile) 2>conftest.er1
a848cd7e 16791 ac_status=$?
ac1cb8d3
VS
16792 grep -v '^ *+' conftest.er1 >conftest.err
16793 rm -f conftest.er1
16794 cat conftest.err >&5
a848cd7e
SC
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); } &&
5ff751d6 16797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16809 ac_lo=0 ac_mid=0
16810 while :; do
16811 cat >conftest.$ac_ext <<_ACEOF
16812/* confdefs.h. */
16813_ACEOF
16814cat confdefs.h >>conftest.$ac_ext
16815cat >>conftest.$ac_ext <<_ACEOF
16816/* end confdefs.h. */
16817$ac_includes_default
16818int
16819main ()
16820{
16821static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16822test_array [0] = 0
16823
16824 ;
16825 return 0;
16826}
16827_ACEOF
16828rm -f conftest.$ac_objext
16829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16830 (eval $ac_compile) 2>conftest.er1
a848cd7e 16831 ac_status=$?
ac1cb8d3
VS
16832 grep -v '^ *+' conftest.er1 >conftest.err
16833 rm -f conftest.er1
16834 cat conftest.err >&5
a848cd7e
SC
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
5ff751d6 16837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; } &&
16843 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16845 (eval $ac_try) 2>&5
16846 ac_status=$?
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_hi=$ac_mid; break
16850else
16851 echo "$as_me: failed program was:" >&5
16852sed 's/^/| /' conftest.$ac_ext >&5
16853
16854ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
16855 if test $ac_lo -le $ac_mid; then
16856 ac_lo= ac_hi=
16857 break
16858 fi
16859 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 16860fi
ac1cb8d3 16861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16862 done
16863else
16864 echo "$as_me: failed program was:" >&5
16865sed 's/^/| /' conftest.$ac_ext >&5
16866
16867cat >conftest.$ac_ext <<_ACEOF
16868/* confdefs.h. */
16869_ACEOF
16870cat confdefs.h >>conftest.$ac_ext
16871cat >>conftest.$ac_ext <<_ACEOF
16872/* end confdefs.h. */
16873$ac_includes_default
16874int
16875main ()
16876{
16877static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16878test_array [0] = 0
16879
16880 ;
16881 return 0;
16882}
16883_ACEOF
16884rm -f conftest.$ac_objext
16885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16886 (eval $ac_compile) 2>conftest.er1
a848cd7e 16887 ac_status=$?
ac1cb8d3
VS
16888 grep -v '^ *+' conftest.er1 >conftest.err
16889 rm -f conftest.er1
16890 cat conftest.err >&5
a848cd7e
SC
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
5ff751d6 16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16895 (eval $ac_try) 2>&5
16896 ac_status=$?
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; } &&
16899 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16902 ac_status=$?
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; }; then
16905 ac_hi=-1 ac_mid=-1
16906 while :; do
16907 cat >conftest.$ac_ext <<_ACEOF
16908/* confdefs.h. */
16909_ACEOF
16910cat confdefs.h >>conftest.$ac_ext
16911cat >>conftest.$ac_ext <<_ACEOF
16912/* end confdefs.h. */
16913$ac_includes_default
16914int
16915main ()
16916{
16917static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16918test_array [0] = 0
16919
16920 ;
16921 return 0;
16922}
16923_ACEOF
16924rm -f conftest.$ac_objext
16925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16926 (eval $ac_compile) 2>conftest.er1
a848cd7e 16927 ac_status=$?
ac1cb8d3
VS
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
a848cd7e
SC
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
5ff751d6 16933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16936 ac_status=$?
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; } &&
16939 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
16940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16942 ac_status=$?
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; }; then
16945 ac_lo=$ac_mid; break
16946else
16947 echo "$as_me: failed program was:" >&5
16948sed 's/^/| /' conftest.$ac_ext >&5
16949
16950ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
16951 if test $ac_mid -le $ac_hi; then
16952 ac_lo= ac_hi=
16953 break
16954 fi
16955 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 16956fi
ac1cb8d3 16957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16958 done
16959else
16960 echo "$as_me: failed program was:" >&5
16961sed 's/^/| /' conftest.$ac_ext >&5
16962
16963ac_lo= ac_hi=
16964fi
ac1cb8d3 16965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 16966fi
ac1cb8d3 16967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
16968# Binary search between lo and hi bounds.
16969while test "x$ac_lo" != "x$ac_hi"; do
16970 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16971 cat >conftest.$ac_ext <<_ACEOF
16972/* confdefs.h. */
16973_ACEOF
16974cat confdefs.h >>conftest.$ac_ext
16975cat >>conftest.$ac_ext <<_ACEOF
16976/* end confdefs.h. */
16977$ac_includes_default
16978int
16979main ()
16980{
16981static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16982test_array [0] = 0
16983
16984 ;
16985 return 0;
16986}
16987_ACEOF
16988rm -f conftest.$ac_objext
16989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 16990 (eval $ac_compile) 2>conftest.er1
a848cd7e 16991 ac_status=$?
ac1cb8d3
VS
16992 grep -v '^ *+' conftest.er1 >conftest.err
16993 rm -f conftest.er1
16994 cat conftest.err >&5
a848cd7e
SC
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); } &&
5ff751d6 16997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17000 ac_status=$?
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; } &&
17003 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17005 (eval $ac_try) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; }; then
17009 ac_hi=$ac_mid
17010else
17011 echo "$as_me: failed program was:" >&5
17012sed 's/^/| /' conftest.$ac_ext >&5
17013
17014ac_lo=`expr '(' $ac_mid ')' + 1`
17015fi
ac1cb8d3 17016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17017done
17018case $ac_lo in
17019?*) ac_cv_sizeof_char=$ac_lo;;
17020'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17021See \`config.log' for more details." >&5
17022echo "$as_me: error: cannot compute sizeof (char), 77
17023See \`config.log' for more details." >&2;}
17024 { (exit 1); exit 1; }; } ;;
17025esac
17026else
17027 if test "$cross_compiling" = yes; then
5ff751d6
VZ
17028 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17029echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17030 { (exit 1); exit 1; }; }
17031else
17032 cat >conftest.$ac_ext <<_ACEOF
17033/* confdefs.h. */
17034_ACEOF
17035cat confdefs.h >>conftest.$ac_ext
17036cat >>conftest.$ac_ext <<_ACEOF
17037/* end confdefs.h. */
17038$ac_includes_default
17039long longval () { return (long) (sizeof (char)); }
17040unsigned long ulongval () { return (long) (sizeof (char)); }
17041#include <stdio.h>
17042#include <stdlib.h>
17043int
17044main ()
17045{
17046
17047 FILE *f = fopen ("conftest.val", "w");
17048 if (! f)
17049 exit (1);
17050 if (((long) (sizeof (char))) < 0)
17051 {
17052 long i = longval ();
17053 if (i != ((long) (sizeof (char))))
17054 exit (1);
17055 fprintf (f, "%ld\n", i);
17056 }
17057 else
17058 {
17059 unsigned long i = ulongval ();
17060 if (i != ((long) (sizeof (char))))
17061 exit (1);
17062 fprintf (f, "%lu\n", i);
17063 }
17064 exit (ferror (f) || fclose (f) != 0);
17065
17066 ;
17067 return 0;
17068}
17069_ACEOF
17070rm -f conftest$ac_exeext
17071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17072 (eval $ac_link) 2>&5
17073 ac_status=$?
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17078 ac_status=$?
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17081 ac_cv_sizeof_char=`cat conftest.val`
17082else
17083 echo "$as_me: program exited with status $ac_status" >&5
17084echo "$as_me: failed program was:" >&5
17085sed 's/^/| /' conftest.$ac_ext >&5
17086
17087( exit $ac_status )
17088{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
17089See \`config.log' for more details." >&5
17090echo "$as_me: error: cannot compute sizeof (char), 77
17091See \`config.log' for more details." >&2;}
17092 { (exit 1); exit 1; }; }
17093fi
ac1cb8d3 17094rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17095fi
17096fi
17097rm -f conftest.val
17098else
17099 ac_cv_sizeof_char=0
17100fi
17101fi
17102echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
17103echo "${ECHO_T}$ac_cv_sizeof_char" >&6
17104cat >>confdefs.h <<_ACEOF
17105#define SIZEOF_CHAR $ac_cv_sizeof_char
17106_ACEOF
17107
17108
17109echo "$as_me:$LINENO: checking for short" >&5
17110echo $ECHO_N "checking for short... $ECHO_C" >&6
17111if test "${ac_cv_type_short+set}" = set; then
17112 echo $ECHO_N "(cached) $ECHO_C" >&6
17113else
17114 cat >conftest.$ac_ext <<_ACEOF
17115/* confdefs.h. */
17116_ACEOF
17117cat confdefs.h >>conftest.$ac_ext
17118cat >>conftest.$ac_ext <<_ACEOF
17119/* end confdefs.h. */
17120$ac_includes_default
17121int
17122main ()
17123{
17124if ((short *) 0)
17125 return 0;
17126if (sizeof (short))
17127 return 0;
17128 ;
17129 return 0;
17130}
17131_ACEOF
17132rm -f conftest.$ac_objext
17133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17134 (eval $ac_compile) 2>conftest.er1
a848cd7e 17135 ac_status=$?
ac1cb8d3
VS
17136 grep -v '^ *+' conftest.er1 >conftest.err
17137 rm -f conftest.er1
17138 cat conftest.err >&5
a848cd7e
SC
17139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140 (exit $ac_status); } &&
5ff751d6 17141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143 (eval $ac_try) 2>&5
17144 ac_status=$?
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); }; } &&
17147 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 ac_cv_type_short=yes
17154else
17155 echo "$as_me: failed program was:" >&5
17156sed 's/^/| /' conftest.$ac_ext >&5
17157
17158ac_cv_type_short=no
17159fi
ac1cb8d3 17160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17161fi
17162echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
17163echo "${ECHO_T}$ac_cv_type_short" >&6
17164
17165echo "$as_me:$LINENO: checking size of short" >&5
17166echo $ECHO_N "checking size of short... $ECHO_C" >&6
17167if test "${ac_cv_sizeof_short+set}" = set; then
17168 echo $ECHO_N "(cached) $ECHO_C" >&6
17169else
17170 if test "$ac_cv_type_short" = yes; then
17171 # The cast to unsigned long works around a bug in the HP C Compiler
17172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17174 # This bug is HP SR number 8606223364.
17175 if test "$cross_compiling" = yes; then
17176 # Depending upon the size, compute the lo and hi bounds.
17177cat >conftest.$ac_ext <<_ACEOF
17178/* confdefs.h. */
17179_ACEOF
17180cat confdefs.h >>conftest.$ac_ext
17181cat >>conftest.$ac_ext <<_ACEOF
17182/* end confdefs.h. */
17183$ac_includes_default
17184int
17185main ()
17186{
17187static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
17188test_array [0] = 0
17189
17190 ;
17191 return 0;
17192}
17193_ACEOF
17194rm -f conftest.$ac_objext
17195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17196 (eval $ac_compile) 2>conftest.er1
a848cd7e 17197 ac_status=$?
ac1cb8d3
VS
17198 grep -v '^ *+' conftest.er1 >conftest.err
17199 rm -f conftest.er1
17200 cat conftest.err >&5
a848cd7e
SC
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); } &&
5ff751d6 17203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17205 (eval $ac_try) 2>&5
17206 ac_status=$?
17207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17208 (exit $ac_status); }; } &&
17209 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17211 (eval $ac_try) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); }; }; then
17215 ac_lo=0 ac_mid=0
17216 while :; do
17217 cat >conftest.$ac_ext <<_ACEOF
17218/* confdefs.h. */
17219_ACEOF
17220cat confdefs.h >>conftest.$ac_ext
17221cat >>conftest.$ac_ext <<_ACEOF
17222/* end confdefs.h. */
17223$ac_includes_default
17224int
17225main ()
17226{
17227static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17228test_array [0] = 0
17229
17230 ;
17231 return 0;
17232}
17233_ACEOF
17234rm -f conftest.$ac_objext
17235if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17236 (eval $ac_compile) 2>conftest.er1
a848cd7e 17237 ac_status=$?
ac1cb8d3
VS
17238 grep -v '^ *+' conftest.er1 >conftest.err
17239 rm -f conftest.er1
17240 cat conftest.err >&5
a848cd7e
SC
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
5ff751d6 17243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17245 (eval $ac_try) 2>&5
17246 ac_status=$?
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); }; } &&
17249 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251 (eval $ac_try) 2>&5
17252 ac_status=$?
17253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254 (exit $ac_status); }; }; then
17255 ac_hi=$ac_mid; break
17256else
17257 echo "$as_me: failed program was:" >&5
17258sed 's/^/| /' conftest.$ac_ext >&5
17259
17260ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17261 if test $ac_lo -le $ac_mid; then
17262 ac_lo= ac_hi=
17263 break
17264 fi
17265 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17266fi
ac1cb8d3 17267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17268 done
17269else
17270 echo "$as_me: failed program was:" >&5
17271sed 's/^/| /' conftest.$ac_ext >&5
17272
17273cat >conftest.$ac_ext <<_ACEOF
17274/* confdefs.h. */
17275_ACEOF
17276cat confdefs.h >>conftest.$ac_ext
17277cat >>conftest.$ac_ext <<_ACEOF
17278/* end confdefs.h. */
17279$ac_includes_default
17280int
17281main ()
17282{
17283static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
17284test_array [0] = 0
17285
17286 ;
17287 return 0;
17288}
17289_ACEOF
17290rm -f conftest.$ac_objext
17291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17292 (eval $ac_compile) 2>conftest.er1
a848cd7e 17293 ac_status=$?
ac1cb8d3
VS
17294 grep -v '^ *+' conftest.er1 >conftest.err
17295 rm -f conftest.er1
17296 cat conftest.err >&5
a848cd7e
SC
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
5ff751d6 17299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17302 ac_status=$?
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; } &&
17305 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17308 ac_status=$?
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; }; then
17311 ac_hi=-1 ac_mid=-1
17312 while :; do
17313 cat >conftest.$ac_ext <<_ACEOF
17314/* confdefs.h. */
17315_ACEOF
17316cat confdefs.h >>conftest.$ac_ext
17317cat >>conftest.$ac_ext <<_ACEOF
17318/* end confdefs.h. */
17319$ac_includes_default
17320int
17321main ()
17322{
17323static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
17324test_array [0] = 0
17325
17326 ;
17327 return 0;
17328}
17329_ACEOF
17330rm -f conftest.$ac_objext
17331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17332 (eval $ac_compile) 2>conftest.er1
a848cd7e 17333 ac_status=$?
ac1cb8d3
VS
17334 grep -v '^ *+' conftest.er1 >conftest.err
17335 rm -f conftest.er1
17336 cat conftest.err >&5
a848cd7e
SC
17337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338 (exit $ac_status); } &&
5ff751d6 17339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341 (eval $ac_try) 2>&5
17342 ac_status=$?
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; } &&
17345 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; }; then
17351 ac_lo=$ac_mid; break
17352else
17353 echo "$as_me: failed program was:" >&5
17354sed 's/^/| /' conftest.$ac_ext >&5
17355
17356ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17357 if test $ac_mid -le $ac_hi; then
17358 ac_lo= ac_hi=
17359 break
17360 fi
17361 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17362fi
ac1cb8d3 17363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17364 done
17365else
17366 echo "$as_me: failed program was:" >&5
17367sed 's/^/| /' conftest.$ac_ext >&5
17368
17369ac_lo= ac_hi=
17370fi
ac1cb8d3 17371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17372fi
ac1cb8d3 17373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17374# Binary search between lo and hi bounds.
17375while test "x$ac_lo" != "x$ac_hi"; do
17376 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17377 cat >conftest.$ac_ext <<_ACEOF
17378/* confdefs.h. */
17379_ACEOF
17380cat confdefs.h >>conftest.$ac_ext
17381cat >>conftest.$ac_ext <<_ACEOF
17382/* end confdefs.h. */
17383$ac_includes_default
17384int
17385main ()
17386{
17387static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
17388test_array [0] = 0
17389
17390 ;
17391 return 0;
17392}
17393_ACEOF
17394rm -f conftest.$ac_objext
17395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17396 (eval $ac_compile) 2>conftest.er1
a848cd7e 17397 ac_status=$?
ac1cb8d3
VS
17398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
a848cd7e
SC
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
5ff751d6 17403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17406 ac_status=$?
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_hi=$ac_mid
17416else
17417 echo "$as_me: failed program was:" >&5
17418sed 's/^/| /' conftest.$ac_ext >&5
17419
17420ac_lo=`expr '(' $ac_mid ')' + 1`
17421fi
ac1cb8d3 17422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17423done
17424case $ac_lo in
17425?*) ac_cv_sizeof_short=$ac_lo;;
17426'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17427See \`config.log' for more details." >&5
17428echo "$as_me: error: cannot compute sizeof (short), 77
17429See \`config.log' for more details." >&2;}
17430 { (exit 1); exit 1; }; } ;;
17431esac
17432else
17433 if test "$cross_compiling" = yes; then
5ff751d6
VZ
17434 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17435echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17436 { (exit 1); exit 1; }; }
17437else
17438 cat >conftest.$ac_ext <<_ACEOF
17439/* confdefs.h. */
17440_ACEOF
17441cat confdefs.h >>conftest.$ac_ext
17442cat >>conftest.$ac_ext <<_ACEOF
17443/* end confdefs.h. */
17444$ac_includes_default
17445long longval () { return (long) (sizeof (short)); }
17446unsigned long ulongval () { return (long) (sizeof (short)); }
17447#include <stdio.h>
17448#include <stdlib.h>
17449int
17450main ()
17451{
17452
17453 FILE *f = fopen ("conftest.val", "w");
17454 if (! f)
17455 exit (1);
17456 if (((long) (sizeof (short))) < 0)
17457 {
17458 long i = longval ();
17459 if (i != ((long) (sizeof (short))))
17460 exit (1);
17461 fprintf (f, "%ld\n", i);
17462 }
17463 else
17464 {
17465 unsigned long i = ulongval ();
17466 if (i != ((long) (sizeof (short))))
17467 exit (1);
17468 fprintf (f, "%lu\n", i);
17469 }
17470 exit (ferror (f) || fclose (f) != 0);
17471
17472 ;
17473 return 0;
17474}
17475_ACEOF
17476rm -f conftest$ac_exeext
17477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17478 (eval $ac_link) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 ac_cv_sizeof_short=`cat conftest.val`
17488else
17489 echo "$as_me: program exited with status $ac_status" >&5
17490echo "$as_me: failed program was:" >&5
17491sed 's/^/| /' conftest.$ac_ext >&5
17492
17493( exit $ac_status )
17494{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
17495See \`config.log' for more details." >&5
17496echo "$as_me: error: cannot compute sizeof (short), 77
17497See \`config.log' for more details." >&2;}
17498 { (exit 1); exit 1; }; }
17499fi
ac1cb8d3 17500rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17501fi
17502fi
17503rm -f conftest.val
17504else
17505 ac_cv_sizeof_short=0
17506fi
17507fi
17508echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
17509echo "${ECHO_T}$ac_cv_sizeof_short" >&6
17510cat >>confdefs.h <<_ACEOF
17511#define SIZEOF_SHORT $ac_cv_sizeof_short
17512_ACEOF
17513
17514
17515echo "$as_me:$LINENO: checking for void *" >&5
17516echo $ECHO_N "checking for void *... $ECHO_C" >&6
17517if test "${ac_cv_type_void_p+set}" = set; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17519else
17520 cat >conftest.$ac_ext <<_ACEOF
17521/* confdefs.h. */
17522_ACEOF
17523cat confdefs.h >>conftest.$ac_ext
17524cat >>conftest.$ac_ext <<_ACEOF
17525/* end confdefs.h. */
17526$ac_includes_default
17527int
17528main ()
17529{
17530if ((void * *) 0)
17531 return 0;
17532if (sizeof (void *))
17533 return 0;
17534 ;
17535 return 0;
17536}
17537_ACEOF
17538rm -f conftest.$ac_objext
17539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17540 (eval $ac_compile) 2>conftest.er1
a848cd7e 17541 ac_status=$?
ac1cb8d3
VS
17542 grep -v '^ *+' conftest.er1 >conftest.err
17543 rm -f conftest.er1
17544 cat conftest.err >&5
a848cd7e
SC
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } &&
5ff751d6 17547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17549 (eval $ac_try) 2>&5
17550 ac_status=$?
17551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17552 (exit $ac_status); }; } &&
17553 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17555 (eval $ac_try) 2>&5
17556 ac_status=$?
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); }; }; then
17559 ac_cv_type_void_p=yes
17560else
17561 echo "$as_me: failed program was:" >&5
17562sed 's/^/| /' conftest.$ac_ext >&5
17563
17564ac_cv_type_void_p=no
17565fi
ac1cb8d3 17566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17567fi
17568echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
17569echo "${ECHO_T}$ac_cv_type_void_p" >&6
17570
17571echo "$as_me:$LINENO: checking size of void *" >&5
17572echo $ECHO_N "checking size of void *... $ECHO_C" >&6
17573if test "${ac_cv_sizeof_void_p+set}" = set; then
17574 echo $ECHO_N "(cached) $ECHO_C" >&6
17575else
17576 if test "$ac_cv_type_void_p" = yes; then
17577 # The cast to unsigned long works around a bug in the HP C Compiler
17578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17580 # This bug is HP SR number 8606223364.
17581 if test "$cross_compiling" = yes; then
17582 # Depending upon the size, compute the lo and hi bounds.
17583cat >conftest.$ac_ext <<_ACEOF
17584/* confdefs.h. */
17585_ACEOF
17586cat confdefs.h >>conftest.$ac_ext
17587cat >>conftest.$ac_ext <<_ACEOF
17588/* end confdefs.h. */
17589$ac_includes_default
17590int
17591main ()
17592{
17593static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
17594test_array [0] = 0
17595
17596 ;
17597 return 0;
17598}
17599_ACEOF
17600rm -f conftest.$ac_objext
17601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17602 (eval $ac_compile) 2>conftest.er1
a848cd7e 17603 ac_status=$?
ac1cb8d3
VS
17604 grep -v '^ *+' conftest.er1 >conftest.err
17605 rm -f conftest.er1
17606 cat conftest.err >&5
a848cd7e
SC
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); } &&
5ff751d6 17609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; } &&
17615 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17617 (eval $ac_try) 2>&5
17618 ac_status=$?
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); }; }; then
17621 ac_lo=0 ac_mid=0
17622 while :; do
17623 cat >conftest.$ac_ext <<_ACEOF
17624/* confdefs.h. */
17625_ACEOF
17626cat confdefs.h >>conftest.$ac_ext
17627cat >>conftest.$ac_ext <<_ACEOF
17628/* end confdefs.h. */
17629$ac_includes_default
17630int
17631main ()
17632{
17633static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17634test_array [0] = 0
17635
17636 ;
17637 return 0;
17638}
17639_ACEOF
17640rm -f conftest.$ac_objext
17641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17642 (eval $ac_compile) 2>conftest.er1
a848cd7e 17643 ac_status=$?
ac1cb8d3
VS
17644 grep -v '^ *+' conftest.er1 >conftest.err
17645 rm -f conftest.er1
17646 cat conftest.err >&5
a848cd7e
SC
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
5ff751d6 17649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17652 ac_status=$?
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; } &&
17655 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657 (eval $ac_try) 2>&5
17658 ac_status=$?
17659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); }; }; then
17661 ac_hi=$ac_mid; break
17662else
17663 echo "$as_me: failed program was:" >&5
17664sed 's/^/| /' conftest.$ac_ext >&5
17665
17666ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
17667 if test $ac_lo -le $ac_mid; then
17668 ac_lo= ac_hi=
17669 break
17670 fi
17671 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 17672fi
ac1cb8d3 17673rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17674 done
17675else
17676 echo "$as_me: failed program was:" >&5
17677sed 's/^/| /' conftest.$ac_ext >&5
17678
17679cat >conftest.$ac_ext <<_ACEOF
17680/* confdefs.h. */
17681_ACEOF
17682cat confdefs.h >>conftest.$ac_ext
17683cat >>conftest.$ac_ext <<_ACEOF
17684/* end confdefs.h. */
17685$ac_includes_default
17686int
17687main ()
17688{
17689static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
17690test_array [0] = 0
17691
17692 ;
17693 return 0;
17694}
17695_ACEOF
17696rm -f conftest.$ac_objext
17697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17698 (eval $ac_compile) 2>conftest.er1
a848cd7e 17699 ac_status=$?
ac1cb8d3
VS
17700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
a848cd7e
SC
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } &&
5ff751d6 17705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; } &&
17711 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17713 (eval $ac_try) 2>&5
17714 ac_status=$?
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; }; then
17717 ac_hi=-1 ac_mid=-1
17718 while :; do
17719 cat >conftest.$ac_ext <<_ACEOF
17720/* confdefs.h. */
17721_ACEOF
17722cat confdefs.h >>conftest.$ac_ext
17723cat >>conftest.$ac_ext <<_ACEOF
17724/* end confdefs.h. */
17725$ac_includes_default
17726int
17727main ()
17728{
17729static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
17730test_array [0] = 0
17731
17732 ;
17733 return 0;
17734}
17735_ACEOF
17736rm -f conftest.$ac_objext
17737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17738 (eval $ac_compile) 2>conftest.er1
a848cd7e 17739 ac_status=$?
ac1cb8d3
VS
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
a848cd7e
SC
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } &&
5ff751d6 17745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17747 (eval $ac_try) 2>&5
17748 ac_status=$?
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); }; } &&
17751 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 ac_lo=$ac_mid; break
17758else
17759 echo "$as_me: failed program was:" >&5
17760sed 's/^/| /' conftest.$ac_ext >&5
17761
17762ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
17763 if test $ac_mid -le $ac_hi; then
17764 ac_lo= ac_hi=
17765 break
17766 fi
17767 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 17768fi
ac1cb8d3 17769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17770 done
17771else
17772 echo "$as_me: failed program was:" >&5
17773sed 's/^/| /' conftest.$ac_ext >&5
17774
17775ac_lo= ac_hi=
17776fi
ac1cb8d3 17777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 17778fi
ac1cb8d3 17779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17780# Binary search between lo and hi bounds.
17781while test "x$ac_lo" != "x$ac_hi"; do
17782 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17783 cat >conftest.$ac_ext <<_ACEOF
17784/* confdefs.h. */
17785_ACEOF
17786cat confdefs.h >>conftest.$ac_ext
17787cat >>conftest.$ac_ext <<_ACEOF
17788/* end confdefs.h. */
17789$ac_includes_default
17790int
17791main ()
17792{
17793static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
17794test_array [0] = 0
17795
17796 ;
17797 return 0;
17798}
17799_ACEOF
17800rm -f conftest.$ac_objext
17801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17802 (eval $ac_compile) 2>conftest.er1
a848cd7e 17803 ac_status=$?
ac1cb8d3
VS
17804 grep -v '^ *+' conftest.er1 >conftest.err
17805 rm -f conftest.er1
17806 cat conftest.err >&5
a848cd7e
SC
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } &&
5ff751d6 17809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17811 (eval $ac_try) 2>&5
17812 ac_status=$?
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); }; } &&
17815 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17817 (eval $ac_try) 2>&5
17818 ac_status=$?
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; }; then
17821 ac_hi=$ac_mid
17822else
17823 echo "$as_me: failed program was:" >&5
17824sed 's/^/| /' conftest.$ac_ext >&5
17825
17826ac_lo=`expr '(' $ac_mid ')' + 1`
17827fi
ac1cb8d3 17828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17829done
17830case $ac_lo in
17831?*) ac_cv_sizeof_void_p=$ac_lo;;
17832'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17833See \`config.log' for more details." >&5
17834echo "$as_me: error: cannot compute sizeof (void *), 77
17835See \`config.log' for more details." >&2;}
17836 { (exit 1); exit 1; }; } ;;
17837esac
17838else
17839 if test "$cross_compiling" = yes; then
5ff751d6
VZ
17840 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
17841echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
17842 { (exit 1); exit 1; }; }
17843else
17844 cat >conftest.$ac_ext <<_ACEOF
17845/* confdefs.h. */
17846_ACEOF
17847cat confdefs.h >>conftest.$ac_ext
17848cat >>conftest.$ac_ext <<_ACEOF
17849/* end confdefs.h. */
17850$ac_includes_default
17851long longval () { return (long) (sizeof (void *)); }
17852unsigned long ulongval () { return (long) (sizeof (void *)); }
17853#include <stdio.h>
17854#include <stdlib.h>
17855int
17856main ()
17857{
17858
17859 FILE *f = fopen ("conftest.val", "w");
17860 if (! f)
17861 exit (1);
17862 if (((long) (sizeof (void *))) < 0)
17863 {
17864 long i = longval ();
17865 if (i != ((long) (sizeof (void *))))
17866 exit (1);
17867 fprintf (f, "%ld\n", i);
17868 }
17869 else
17870 {
17871 unsigned long i = ulongval ();
17872 if (i != ((long) (sizeof (void *))))
17873 exit (1);
17874 fprintf (f, "%lu\n", i);
17875 }
17876 exit (ferror (f) || fclose (f) != 0);
17877
17878 ;
17879 return 0;
17880}
17881_ACEOF
17882rm -f conftest$ac_exeext
17883if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17884 (eval $ac_link) 2>&5
17885 ac_status=$?
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17889 (eval $ac_try) 2>&5
17890 ac_status=$?
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); }; }; then
17893 ac_cv_sizeof_void_p=`cat conftest.val`
17894else
17895 echo "$as_me: program exited with status $ac_status" >&5
17896echo "$as_me: failed program was:" >&5
17897sed 's/^/| /' conftest.$ac_ext >&5
17898
17899( exit $ac_status )
17900{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
17901See \`config.log' for more details." >&5
17902echo "$as_me: error: cannot compute sizeof (void *), 77
17903See \`config.log' for more details." >&2;}
17904 { (exit 1); exit 1; }; }
17905fi
ac1cb8d3 17906rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17907fi
17908fi
17909rm -f conftest.val
17910else
17911 ac_cv_sizeof_void_p=0
17912fi
17913fi
17914echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17915echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
17916cat >>confdefs.h <<_ACEOF
17917#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17918_ACEOF
17919
17920
17921echo "$as_me:$LINENO: checking for int" >&5
17922echo $ECHO_N "checking for int... $ECHO_C" >&6
17923if test "${ac_cv_type_int+set}" = set; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17925else
17926 cat >conftest.$ac_ext <<_ACEOF
17927/* confdefs.h. */
17928_ACEOF
17929cat confdefs.h >>conftest.$ac_ext
17930cat >>conftest.$ac_ext <<_ACEOF
17931/* end confdefs.h. */
17932$ac_includes_default
17933int
17934main ()
17935{
17936if ((int *) 0)
17937 return 0;
17938if (sizeof (int))
17939 return 0;
17940 ;
17941 return 0;
17942}
17943_ACEOF
17944rm -f conftest.$ac_objext
17945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 17946 (eval $ac_compile) 2>conftest.er1
a848cd7e 17947 ac_status=$?
ac1cb8d3
VS
17948 grep -v '^ *+' conftest.er1 >conftest.err
17949 rm -f conftest.er1
17950 cat conftest.err >&5
a848cd7e
SC
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } &&
5ff751d6 17953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
17954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955 (eval $ac_try) 2>&5
17956 ac_status=$?
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; } &&
17959 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
17960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961 (eval $ac_try) 2>&5
17962 ac_status=$?
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); }; }; then
17965 ac_cv_type_int=yes
17966else
17967 echo "$as_me: failed program was:" >&5
17968sed 's/^/| /' conftest.$ac_ext >&5
17969
17970ac_cv_type_int=no
17971fi
ac1cb8d3 17972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
17973fi
17974echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17975echo "${ECHO_T}$ac_cv_type_int" >&6
17976
17977echo "$as_me:$LINENO: checking size of int" >&5
17978echo $ECHO_N "checking size of int... $ECHO_C" >&6
17979if test "${ac_cv_sizeof_int+set}" = set; then
17980 echo $ECHO_N "(cached) $ECHO_C" >&6
17981else
17982 if test "$ac_cv_type_int" = yes; then
17983 # The cast to unsigned long works around a bug in the HP C Compiler
17984 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17985 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17986 # This bug is HP SR number 8606223364.
17987 if test "$cross_compiling" = yes; then
17988 # Depending upon the size, compute the lo and hi bounds.
17989cat >conftest.$ac_ext <<_ACEOF
17990/* confdefs.h. */
17991_ACEOF
17992cat confdefs.h >>conftest.$ac_ext
17993cat >>conftest.$ac_ext <<_ACEOF
17994/* end confdefs.h. */
17995$ac_includes_default
17996int
17997main ()
17998{
17999static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
18000test_array [0] = 0
18001
18002 ;
18003 return 0;
18004}
18005_ACEOF
18006rm -f conftest.$ac_objext
18007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18008 (eval $ac_compile) 2>conftest.er1
a848cd7e 18009 ac_status=$?
ac1cb8d3
VS
18010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
a848cd7e
SC
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } &&
5ff751d6 18015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18017 (eval $ac_try) 2>&5
18018 ac_status=$?
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; } &&
18021 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18023 (eval $ac_try) 2>&5
18024 ac_status=$?
18025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026 (exit $ac_status); }; }; then
18027 ac_lo=0 ac_mid=0
18028 while :; do
18029 cat >conftest.$ac_ext <<_ACEOF
18030/* confdefs.h. */
18031_ACEOF
18032cat confdefs.h >>conftest.$ac_ext
18033cat >>conftest.$ac_ext <<_ACEOF
18034/* end confdefs.h. */
18035$ac_includes_default
18036int
18037main ()
18038{
18039static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18040test_array [0] = 0
18041
18042 ;
18043 return 0;
18044}
18045_ACEOF
18046rm -f conftest.$ac_objext
18047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18048 (eval $ac_compile) 2>conftest.er1
a848cd7e 18049 ac_status=$?
ac1cb8d3
VS
18050 grep -v '^ *+' conftest.er1 >conftest.err
18051 rm -f conftest.er1
18052 cat conftest.err >&5
a848cd7e
SC
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } &&
5ff751d6 18055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057 (eval $ac_try) 2>&5
18058 ac_status=$?
18059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060 (exit $ac_status); }; } &&
18061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18063 (eval $ac_try) 2>&5
18064 ac_status=$?
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); }; }; then
18067 ac_hi=$ac_mid; break
18068else
18069 echo "$as_me: failed program was:" >&5
18070sed 's/^/| /' conftest.$ac_ext >&5
18071
18072ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18073 if test $ac_lo -le $ac_mid; then
18074 ac_lo= ac_hi=
18075 break
18076 fi
18077 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18078fi
ac1cb8d3 18079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18080 done
18081else
18082 echo "$as_me: failed program was:" >&5
18083sed 's/^/| /' conftest.$ac_ext >&5
18084
18085cat >conftest.$ac_ext <<_ACEOF
18086/* confdefs.h. */
18087_ACEOF
18088cat confdefs.h >>conftest.$ac_ext
18089cat >>conftest.$ac_ext <<_ACEOF
18090/* end confdefs.h. */
18091$ac_includes_default
18092int
18093main ()
18094{
18095static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
18096test_array [0] = 0
18097
18098 ;
18099 return 0;
18100}
18101_ACEOF
18102rm -f conftest.$ac_objext
18103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18104 (eval $ac_compile) 2>conftest.er1
a848cd7e 18105 ac_status=$?
ac1cb8d3
VS
18106 grep -v '^ *+' conftest.er1 >conftest.err
18107 rm -f conftest.er1
18108 cat conftest.err >&5
a848cd7e
SC
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } &&
5ff751d6 18111 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; } &&
18117 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; }; then
18123 ac_hi=-1 ac_mid=-1
18124 while :; do
18125 cat >conftest.$ac_ext <<_ACEOF
18126/* confdefs.h. */
18127_ACEOF
18128cat confdefs.h >>conftest.$ac_ext
18129cat >>conftest.$ac_ext <<_ACEOF
18130/* end confdefs.h. */
18131$ac_includes_default
18132int
18133main ()
18134{
18135static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
18136test_array [0] = 0
18137
18138 ;
18139 return 0;
18140}
18141_ACEOF
18142rm -f conftest.$ac_objext
18143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18144 (eval $ac_compile) 2>conftest.er1
a848cd7e 18145 ac_status=$?
ac1cb8d3
VS
18146 grep -v '^ *+' conftest.er1 >conftest.err
18147 rm -f conftest.er1
18148 cat conftest.err >&5
a848cd7e
SC
18149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18150 (exit $ac_status); } &&
5ff751d6 18151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18153 (eval $ac_try) 2>&5
18154 ac_status=$?
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); }; } &&
18157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; }; then
18163 ac_lo=$ac_mid; break
18164else
18165 echo "$as_me: failed program was:" >&5
18166sed 's/^/| /' conftest.$ac_ext >&5
18167
18168ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18169 if test $ac_mid -le $ac_hi; then
18170 ac_lo= ac_hi=
18171 break
18172 fi
18173 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18174fi
ac1cb8d3 18175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18176 done
18177else
18178 echo "$as_me: failed program was:" >&5
18179sed 's/^/| /' conftest.$ac_ext >&5
18180
18181ac_lo= ac_hi=
18182fi
ac1cb8d3 18183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18184fi
ac1cb8d3 18185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18186# Binary search between lo and hi bounds.
18187while test "x$ac_lo" != "x$ac_hi"; do
18188 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18189 cat >conftest.$ac_ext <<_ACEOF
18190/* confdefs.h. */
18191_ACEOF
18192cat confdefs.h >>conftest.$ac_ext
18193cat >>conftest.$ac_ext <<_ACEOF
18194/* end confdefs.h. */
18195$ac_includes_default
18196int
18197main ()
18198{
18199static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
18200test_array [0] = 0
18201
18202 ;
18203 return 0;
18204}
18205_ACEOF
18206rm -f conftest.$ac_objext
18207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18208 (eval $ac_compile) 2>conftest.er1
a848cd7e 18209 ac_status=$?
ac1cb8d3
VS
18210 grep -v '^ *+' conftest.er1 >conftest.err
18211 rm -f conftest.er1
18212 cat conftest.err >&5
a848cd7e
SC
18213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214 (exit $ac_status); } &&
5ff751d6 18215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18217 (eval $ac_try) 2>&5
18218 ac_status=$?
18219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18220 (exit $ac_status); }; } &&
18221 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; }; then
18227 ac_hi=$ac_mid
18228else
18229 echo "$as_me: failed program was:" >&5
18230sed 's/^/| /' conftest.$ac_ext >&5
18231
18232ac_lo=`expr '(' $ac_mid ')' + 1`
18233fi
ac1cb8d3 18234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18235done
18236case $ac_lo in
18237?*) ac_cv_sizeof_int=$ac_lo;;
18238'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18239See \`config.log' for more details." >&5
18240echo "$as_me: error: cannot compute sizeof (int), 77
18241See \`config.log' for more details." >&2;}
18242 { (exit 1); exit 1; }; } ;;
18243esac
18244else
18245 if test "$cross_compiling" = yes; then
5ff751d6
VZ
18246 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18247echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18248 { (exit 1); exit 1; }; }
18249else
18250 cat >conftest.$ac_ext <<_ACEOF
18251/* confdefs.h. */
18252_ACEOF
18253cat confdefs.h >>conftest.$ac_ext
18254cat >>conftest.$ac_ext <<_ACEOF
18255/* end confdefs.h. */
18256$ac_includes_default
18257long longval () { return (long) (sizeof (int)); }
18258unsigned long ulongval () { return (long) (sizeof (int)); }
18259#include <stdio.h>
18260#include <stdlib.h>
18261int
18262main ()
18263{
18264
18265 FILE *f = fopen ("conftest.val", "w");
18266 if (! f)
18267 exit (1);
18268 if (((long) (sizeof (int))) < 0)
18269 {
18270 long i = longval ();
18271 if (i != ((long) (sizeof (int))))
18272 exit (1);
18273 fprintf (f, "%ld\n", i);
18274 }
18275 else
18276 {
18277 unsigned long i = ulongval ();
18278 if (i != ((long) (sizeof (int))))
18279 exit (1);
18280 fprintf (f, "%lu\n", i);
18281 }
18282 exit (ferror (f) || fclose (f) != 0);
18283
18284 ;
18285 return 0;
18286}
18287_ACEOF
18288rm -f conftest$ac_exeext
18289if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18290 (eval $ac_link) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18295 (eval $ac_try) 2>&5
18296 ac_status=$?
18297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298 (exit $ac_status); }; }; then
18299 ac_cv_sizeof_int=`cat conftest.val`
18300else
18301 echo "$as_me: program exited with status $ac_status" >&5
18302echo "$as_me: failed program was:" >&5
18303sed 's/^/| /' conftest.$ac_ext >&5
18304
18305( exit $ac_status )
18306{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
18307See \`config.log' for more details." >&5
18308echo "$as_me: error: cannot compute sizeof (int), 77
18309See \`config.log' for more details." >&2;}
18310 { (exit 1); exit 1; }; }
18311fi
ac1cb8d3 18312rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18313fi
18314fi
18315rm -f conftest.val
18316else
18317 ac_cv_sizeof_int=0
18318fi
18319fi
18320echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18321echo "${ECHO_T}$ac_cv_sizeof_int" >&6
18322cat >>confdefs.h <<_ACEOF
18323#define SIZEOF_INT $ac_cv_sizeof_int
18324_ACEOF
18325
18326
18327echo "$as_me:$LINENO: checking for long" >&5
18328echo $ECHO_N "checking for long... $ECHO_C" >&6
18329if test "${ac_cv_type_long+set}" = set; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18331else
18332 cat >conftest.$ac_ext <<_ACEOF
18333/* confdefs.h. */
18334_ACEOF
18335cat confdefs.h >>conftest.$ac_ext
18336cat >>conftest.$ac_ext <<_ACEOF
18337/* end confdefs.h. */
18338$ac_includes_default
18339int
18340main ()
18341{
18342if ((long *) 0)
18343 return 0;
18344if (sizeof (long))
18345 return 0;
18346 ;
18347 return 0;
18348}
18349_ACEOF
18350rm -f conftest.$ac_objext
18351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18352 (eval $ac_compile) 2>conftest.er1
a848cd7e 18353 ac_status=$?
ac1cb8d3
VS
18354 grep -v '^ *+' conftest.er1 >conftest.err
18355 rm -f conftest.er1
18356 cat conftest.err >&5
a848cd7e
SC
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); } &&
5ff751d6 18359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18361 (eval $ac_try) 2>&5
18362 ac_status=$?
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; } &&
18365 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; }; then
18371 ac_cv_type_long=yes
18372else
18373 echo "$as_me: failed program was:" >&5
18374sed 's/^/| /' conftest.$ac_ext >&5
18375
18376ac_cv_type_long=no
18377fi
ac1cb8d3 18378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18379fi
18380echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
18381echo "${ECHO_T}$ac_cv_type_long" >&6
18382
18383echo "$as_me:$LINENO: checking size of long" >&5
18384echo $ECHO_N "checking size of long... $ECHO_C" >&6
18385if test "${ac_cv_sizeof_long+set}" = set; then
18386 echo $ECHO_N "(cached) $ECHO_C" >&6
18387else
18388 if test "$ac_cv_type_long" = yes; then
18389 # The cast to unsigned long works around a bug in the HP C Compiler
18390 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18391 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18392 # This bug is HP SR number 8606223364.
18393 if test "$cross_compiling" = yes; then
18394 # Depending upon the size, compute the lo and hi bounds.
18395cat >conftest.$ac_ext <<_ACEOF
18396/* confdefs.h. */
18397_ACEOF
18398cat confdefs.h >>conftest.$ac_ext
18399cat >>conftest.$ac_ext <<_ACEOF
18400/* end confdefs.h. */
18401$ac_includes_default
18402int
18403main ()
18404{
18405static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
18406test_array [0] = 0
18407
18408 ;
18409 return 0;
18410}
18411_ACEOF
18412rm -f conftest.$ac_objext
18413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18414 (eval $ac_compile) 2>conftest.er1
a848cd7e 18415 ac_status=$?
ac1cb8d3
VS
18416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
a848cd7e
SC
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } &&
5ff751d6 18421 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18423 (eval $ac_try) 2>&5
18424 ac_status=$?
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); }; } &&
18427 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18429 (eval $ac_try) 2>&5
18430 ac_status=$?
18431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18432 (exit $ac_status); }; }; then
18433 ac_lo=0 ac_mid=0
18434 while :; do
18435 cat >conftest.$ac_ext <<_ACEOF
18436/* confdefs.h. */
18437_ACEOF
18438cat confdefs.h >>conftest.$ac_ext
18439cat >>conftest.$ac_ext <<_ACEOF
18440/* end confdefs.h. */
18441$ac_includes_default
18442int
18443main ()
18444{
18445static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18446test_array [0] = 0
18447
18448 ;
18449 return 0;
18450}
18451_ACEOF
18452rm -f conftest.$ac_objext
18453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18454 (eval $ac_compile) 2>conftest.er1
a848cd7e 18455 ac_status=$?
ac1cb8d3
VS
18456 grep -v '^ *+' conftest.er1 >conftest.err
18457 rm -f conftest.er1
18458 cat conftest.err >&5
a848cd7e
SC
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } &&
5ff751d6 18461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18463 (eval $ac_try) 2>&5
18464 ac_status=$?
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); }; } &&
18467 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18469 (eval $ac_try) 2>&5
18470 ac_status=$?
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); }; }; then
18473 ac_hi=$ac_mid; break
18474else
18475 echo "$as_me: failed program was:" >&5
18476sed 's/^/| /' conftest.$ac_ext >&5
18477
18478ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18479 if test $ac_lo -le $ac_mid; then
18480 ac_lo= ac_hi=
18481 break
18482 fi
18483 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18484fi
ac1cb8d3 18485rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18486 done
18487else
18488 echo "$as_me: failed program was:" >&5
18489sed 's/^/| /' conftest.$ac_ext >&5
18490
18491cat >conftest.$ac_ext <<_ACEOF
18492/* confdefs.h. */
18493_ACEOF
18494cat confdefs.h >>conftest.$ac_ext
18495cat >>conftest.$ac_ext <<_ACEOF
18496/* end confdefs.h. */
18497$ac_includes_default
18498int
18499main ()
18500{
18501static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
18502test_array [0] = 0
18503
18504 ;
18505 return 0;
18506}
18507_ACEOF
18508rm -f conftest.$ac_objext
18509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18510 (eval $ac_compile) 2>conftest.er1
a848cd7e 18511 ac_status=$?
ac1cb8d3
VS
18512 grep -v '^ *+' conftest.er1 >conftest.err
18513 rm -f conftest.er1
18514 cat conftest.err >&5
a848cd7e
SC
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); } &&
5ff751d6 18517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18519 (eval $ac_try) 2>&5
18520 ac_status=$?
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; } &&
18523 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18525 (eval $ac_try) 2>&5
18526 ac_status=$?
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; }; then
18529 ac_hi=-1 ac_mid=-1
18530 while :; do
18531 cat >conftest.$ac_ext <<_ACEOF
18532/* confdefs.h. */
18533_ACEOF
18534cat confdefs.h >>conftest.$ac_ext
18535cat >>conftest.$ac_ext <<_ACEOF
18536/* end confdefs.h. */
18537$ac_includes_default
18538int
18539main ()
18540{
18541static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
18542test_array [0] = 0
18543
18544 ;
18545 return 0;
18546}
18547_ACEOF
18548rm -f conftest.$ac_objext
18549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18550 (eval $ac_compile) 2>conftest.er1
a848cd7e 18551 ac_status=$?
ac1cb8d3
VS
18552 grep -v '^ *+' conftest.er1 >conftest.err
18553 rm -f conftest.er1
18554 cat conftest.err >&5
a848cd7e
SC
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); } &&
5ff751d6 18557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; } &&
18563 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18565 (eval $ac_try) 2>&5
18566 ac_status=$?
18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18568 (exit $ac_status); }; }; then
18569 ac_lo=$ac_mid; break
18570else
18571 echo "$as_me: failed program was:" >&5
18572sed 's/^/| /' conftest.$ac_ext >&5
18573
18574ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18575 if test $ac_mid -le $ac_hi; then
18576 ac_lo= ac_hi=
18577 break
18578 fi
18579 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18580fi
ac1cb8d3 18581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18582 done
18583else
18584 echo "$as_me: failed program was:" >&5
18585sed 's/^/| /' conftest.$ac_ext >&5
18586
18587ac_lo= ac_hi=
18588fi
ac1cb8d3 18589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18590fi
ac1cb8d3 18591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18592# Binary search between lo and hi bounds.
18593while test "x$ac_lo" != "x$ac_hi"; do
18594 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18595 cat >conftest.$ac_ext <<_ACEOF
18596/* confdefs.h. */
18597_ACEOF
18598cat confdefs.h >>conftest.$ac_ext
18599cat >>conftest.$ac_ext <<_ACEOF
18600/* end confdefs.h. */
18601$ac_includes_default
18602int
18603main ()
18604{
18605static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
18606test_array [0] = 0
18607
18608 ;
18609 return 0;
18610}
18611_ACEOF
18612rm -f conftest.$ac_objext
18613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18614 (eval $ac_compile) 2>conftest.er1
a848cd7e 18615 ac_status=$?
ac1cb8d3
VS
18616 grep -v '^ *+' conftest.er1 >conftest.err
18617 rm -f conftest.er1
18618 cat conftest.err >&5
a848cd7e
SC
18619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18620 (exit $ac_status); } &&
5ff751d6 18621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18623 (eval $ac_try) 2>&5
18624 ac_status=$?
18625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18626 (exit $ac_status); }; } &&
18627 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18629 (eval $ac_try) 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); }; }; then
18633 ac_hi=$ac_mid
18634else
18635 echo "$as_me: failed program was:" >&5
18636sed 's/^/| /' conftest.$ac_ext >&5
18637
18638ac_lo=`expr '(' $ac_mid ')' + 1`
18639fi
ac1cb8d3 18640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18641done
18642case $ac_lo in
18643?*) ac_cv_sizeof_long=$ac_lo;;
18644'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18645See \`config.log' for more details." >&5
18646echo "$as_me: error: cannot compute sizeof (long), 77
18647See \`config.log' for more details." >&2;}
18648 { (exit 1); exit 1; }; } ;;
18649esac
18650else
18651 if test "$cross_compiling" = yes; then
5ff751d6
VZ
18652 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
18653echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
18654 { (exit 1); exit 1; }; }
18655else
18656 cat >conftest.$ac_ext <<_ACEOF
18657/* confdefs.h. */
18658_ACEOF
18659cat confdefs.h >>conftest.$ac_ext
18660cat >>conftest.$ac_ext <<_ACEOF
18661/* end confdefs.h. */
18662$ac_includes_default
18663long longval () { return (long) (sizeof (long)); }
18664unsigned long ulongval () { return (long) (sizeof (long)); }
18665#include <stdio.h>
18666#include <stdlib.h>
18667int
18668main ()
18669{
18670
18671 FILE *f = fopen ("conftest.val", "w");
18672 if (! f)
18673 exit (1);
18674 if (((long) (sizeof (long))) < 0)
18675 {
18676 long i = longval ();
18677 if (i != ((long) (sizeof (long))))
18678 exit (1);
18679 fprintf (f, "%ld\n", i);
18680 }
18681 else
18682 {
18683 unsigned long i = ulongval ();
18684 if (i != ((long) (sizeof (long))))
18685 exit (1);
18686 fprintf (f, "%lu\n", i);
18687 }
18688 exit (ferror (f) || fclose (f) != 0);
18689
18690 ;
18691 return 0;
18692}
18693_ACEOF
18694rm -f conftest$ac_exeext
18695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18696 (eval $ac_link) 2>&5
18697 ac_status=$?
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 ac_cv_sizeof_long=`cat conftest.val`
18706else
18707 echo "$as_me: program exited with status $ac_status" >&5
18708echo "$as_me: failed program was:" >&5
18709sed 's/^/| /' conftest.$ac_ext >&5
18710
18711( exit $ac_status )
18712{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
18713See \`config.log' for more details." >&5
18714echo "$as_me: error: cannot compute sizeof (long), 77
18715See \`config.log' for more details." >&2;}
18716 { (exit 1); exit 1; }; }
18717fi
ac1cb8d3 18718rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18719fi
18720fi
18721rm -f conftest.val
18722else
18723 ac_cv_sizeof_long=0
18724fi
18725fi
18726echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
18727echo "${ECHO_T}$ac_cv_sizeof_long" >&6
18728cat >>confdefs.h <<_ACEOF
18729#define SIZEOF_LONG $ac_cv_sizeof_long
18730_ACEOF
18731
18732
18733echo "$as_me:$LINENO: checking for size_t" >&5
18734echo $ECHO_N "checking for size_t... $ECHO_C" >&6
18735if test "${ac_cv_type_size_t+set}" = set; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18737else
18738 cat >conftest.$ac_ext <<_ACEOF
18739/* confdefs.h. */
18740_ACEOF
18741cat confdefs.h >>conftest.$ac_ext
18742cat >>conftest.$ac_ext <<_ACEOF
18743/* end confdefs.h. */
18744$ac_includes_default
18745int
18746main ()
18747{
18748if ((size_t *) 0)
18749 return 0;
18750if (sizeof (size_t))
18751 return 0;
18752 ;
18753 return 0;
18754}
18755_ACEOF
18756rm -f conftest.$ac_objext
18757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18758 (eval $ac_compile) 2>conftest.er1
a848cd7e 18759 ac_status=$?
ac1cb8d3
VS
18760 grep -v '^ *+' conftest.er1 >conftest.err
18761 rm -f conftest.er1
18762 cat conftest.err >&5
a848cd7e
SC
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); } &&
5ff751d6 18765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; } &&
18771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18773 (eval $ac_try) 2>&5
18774 ac_status=$?
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); }; }; then
18777 ac_cv_type_size_t=yes
18778else
18779 echo "$as_me: failed program was:" >&5
18780sed 's/^/| /' conftest.$ac_ext >&5
18781
18782ac_cv_type_size_t=no
18783fi
ac1cb8d3 18784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18785fi
18786echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18787echo "${ECHO_T}$ac_cv_type_size_t" >&6
18788
18789echo "$as_me:$LINENO: checking size of size_t" >&5
18790echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
18791if test "${ac_cv_sizeof_size_t+set}" = set; then
18792 echo $ECHO_N "(cached) $ECHO_C" >&6
18793else
18794 if test "$ac_cv_type_size_t" = yes; then
18795 # The cast to unsigned long works around a bug in the HP C Compiler
18796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18798 # This bug is HP SR number 8606223364.
18799 if test "$cross_compiling" = yes; then
18800 # Depending upon the size, compute the lo and hi bounds.
18801cat >conftest.$ac_ext <<_ACEOF
18802/* confdefs.h. */
18803_ACEOF
18804cat confdefs.h >>conftest.$ac_ext
18805cat >>conftest.$ac_ext <<_ACEOF
18806/* end confdefs.h. */
18807$ac_includes_default
18808int
18809main ()
18810{
18811static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
18812test_array [0] = 0
18813
18814 ;
18815 return 0;
18816}
18817_ACEOF
18818rm -f conftest.$ac_objext
18819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18820 (eval $ac_compile) 2>conftest.er1
a848cd7e 18821 ac_status=$?
ac1cb8d3
VS
18822 grep -v '^ *+' conftest.er1 >conftest.err
18823 rm -f conftest.er1
18824 cat conftest.err >&5
a848cd7e
SC
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } &&
5ff751d6 18827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829 (eval $ac_try) 2>&5
18830 ac_status=$?
18831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832 (exit $ac_status); }; } &&
18833 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835 (eval $ac_try) 2>&5
18836 ac_status=$?
18837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838 (exit $ac_status); }; }; then
18839 ac_lo=0 ac_mid=0
18840 while :; do
18841 cat >conftest.$ac_ext <<_ACEOF
18842/* confdefs.h. */
18843_ACEOF
18844cat confdefs.h >>conftest.$ac_ext
18845cat >>conftest.$ac_ext <<_ACEOF
18846/* end confdefs.h. */
18847$ac_includes_default
18848int
18849main ()
18850{
18851static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
18852test_array [0] = 0
18853
18854 ;
18855 return 0;
18856}
18857_ACEOF
18858rm -f conftest.$ac_objext
18859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18860 (eval $ac_compile) 2>conftest.er1
a848cd7e 18861 ac_status=$?
ac1cb8d3
VS
18862 grep -v '^ *+' conftest.er1 >conftest.err
18863 rm -f conftest.er1
18864 cat conftest.err >&5
a848cd7e
SC
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); } &&
5ff751d6 18867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18869 (eval $ac_try) 2>&5
18870 ac_status=$?
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; } &&
18873 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18875 (eval $ac_try) 2>&5
18876 ac_status=$?
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); }; }; then
18879 ac_hi=$ac_mid; break
18880else
18881 echo "$as_me: failed program was:" >&5
18882sed 's/^/| /' conftest.$ac_ext >&5
18883
18884ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
18885 if test $ac_lo -le $ac_mid; then
18886 ac_lo= ac_hi=
18887 break
18888 fi
18889 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 18890fi
ac1cb8d3 18891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18892 done
18893else
18894 echo "$as_me: failed program was:" >&5
18895sed 's/^/| /' conftest.$ac_ext >&5
18896
18897cat >conftest.$ac_ext <<_ACEOF
18898/* confdefs.h. */
18899_ACEOF
18900cat confdefs.h >>conftest.$ac_ext
18901cat >>conftest.$ac_ext <<_ACEOF
18902/* end confdefs.h. */
18903$ac_includes_default
18904int
18905main ()
18906{
18907static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
18908test_array [0] = 0
18909
18910 ;
18911 return 0;
18912}
18913_ACEOF
18914rm -f conftest.$ac_objext
18915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18916 (eval $ac_compile) 2>conftest.er1
a848cd7e 18917 ac_status=$?
ac1cb8d3
VS
18918 grep -v '^ *+' conftest.er1 >conftest.err
18919 rm -f conftest.er1
18920 cat conftest.err >&5
a848cd7e
SC
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } &&
5ff751d6 18923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18925 (eval $ac_try) 2>&5
18926 ac_status=$?
18927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18928 (exit $ac_status); }; } &&
18929 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18931 (eval $ac_try) 2>&5
18932 ac_status=$?
18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934 (exit $ac_status); }; }; then
18935 ac_hi=-1 ac_mid=-1
18936 while :; do
18937 cat >conftest.$ac_ext <<_ACEOF
18938/* confdefs.h. */
18939_ACEOF
18940cat confdefs.h >>conftest.$ac_ext
18941cat >>conftest.$ac_ext <<_ACEOF
18942/* end confdefs.h. */
18943$ac_includes_default
18944int
18945main ()
18946{
18947static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
18948test_array [0] = 0
18949
18950 ;
18951 return 0;
18952}
18953_ACEOF
18954rm -f conftest.$ac_objext
18955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 18956 (eval $ac_compile) 2>conftest.er1
a848cd7e 18957 ac_status=$?
ac1cb8d3
VS
18958 grep -v '^ *+' conftest.er1 >conftest.err
18959 rm -f conftest.er1
18960 cat conftest.err >&5
a848cd7e
SC
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } &&
5ff751d6 18963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
18964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18965 (eval $ac_try) 2>&5
18966 ac_status=$?
18967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968 (exit $ac_status); }; } &&
18969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
18970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18971 (eval $ac_try) 2>&5
18972 ac_status=$?
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 ac_lo=$ac_mid; break
18976else
18977 echo "$as_me: failed program was:" >&5
18978sed 's/^/| /' conftest.$ac_ext >&5
18979
18980ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
18981 if test $ac_mid -le $ac_hi; then
18982 ac_lo= ac_hi=
18983 break
18984 fi
18985 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 18986fi
ac1cb8d3 18987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18988 done
18989else
18990 echo "$as_me: failed program was:" >&5
18991sed 's/^/| /' conftest.$ac_ext >&5
18992
18993ac_lo= ac_hi=
18994fi
ac1cb8d3 18995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 18996fi
ac1cb8d3 18997rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
18998# Binary search between lo and hi bounds.
18999while test "x$ac_lo" != "x$ac_hi"; do
19000 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19001 cat >conftest.$ac_ext <<_ACEOF
19002/* confdefs.h. */
19003_ACEOF
19004cat confdefs.h >>conftest.$ac_ext
19005cat >>conftest.$ac_ext <<_ACEOF
19006/* end confdefs.h. */
19007$ac_includes_default
19008int
19009main ()
19010{
19011static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
19012test_array [0] = 0
19013
19014 ;
19015 return 0;
19016}
19017_ACEOF
19018rm -f conftest.$ac_objext
19019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19020 (eval $ac_compile) 2>conftest.er1
a848cd7e 19021 ac_status=$?
ac1cb8d3
VS
19022 grep -v '^ *+' conftest.er1 >conftest.err
19023 rm -f conftest.er1
19024 cat conftest.err >&5
a848cd7e
SC
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
5ff751d6 19027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; } &&
19033 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035 (eval $ac_try) 2>&5
19036 ac_status=$?
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); }; }; then
19039 ac_hi=$ac_mid
19040else
19041 echo "$as_me: failed program was:" >&5
19042sed 's/^/| /' conftest.$ac_ext >&5
19043
19044ac_lo=`expr '(' $ac_mid ')' + 1`
19045fi
ac1cb8d3 19046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19047done
19048case $ac_lo in
19049?*) ac_cv_sizeof_size_t=$ac_lo;;
19050'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19051See \`config.log' for more details." >&5
19052echo "$as_me: error: cannot compute sizeof (size_t), 77
19053See \`config.log' for more details." >&2;}
19054 { (exit 1); exit 1; }; } ;;
19055esac
19056else
19057 if test "$cross_compiling" = yes; then
5ff751d6
VZ
19058 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19059echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19060 { (exit 1); exit 1; }; }
19061else
19062 cat >conftest.$ac_ext <<_ACEOF
19063/* confdefs.h. */
19064_ACEOF
19065cat confdefs.h >>conftest.$ac_ext
19066cat >>conftest.$ac_ext <<_ACEOF
19067/* end confdefs.h. */
19068$ac_includes_default
19069long longval () { return (long) (sizeof (size_t)); }
19070unsigned long ulongval () { return (long) (sizeof (size_t)); }
19071#include <stdio.h>
19072#include <stdlib.h>
19073int
19074main ()
19075{
19076
19077 FILE *f = fopen ("conftest.val", "w");
19078 if (! f)
19079 exit (1);
19080 if (((long) (sizeof (size_t))) < 0)
19081 {
19082 long i = longval ();
19083 if (i != ((long) (sizeof (size_t))))
19084 exit (1);
19085 fprintf (f, "%ld\n", i);
19086 }
19087 else
19088 {
19089 unsigned long i = ulongval ();
19090 if (i != ((long) (sizeof (size_t))))
19091 exit (1);
19092 fprintf (f, "%lu\n", i);
19093 }
19094 exit (ferror (f) || fclose (f) != 0);
19095
19096 ;
19097 return 0;
19098}
19099_ACEOF
19100rm -f conftest$ac_exeext
19101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19102 (eval $ac_link) 2>&5
19103 ac_status=$?
19104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107 (eval $ac_try) 2>&5
19108 ac_status=$?
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_cv_sizeof_size_t=`cat conftest.val`
19112else
19113 echo "$as_me: program exited with status $ac_status" >&5
19114echo "$as_me: failed program was:" >&5
19115sed 's/^/| /' conftest.$ac_ext >&5
19116
19117( exit $ac_status )
19118{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
19119See \`config.log' for more details." >&5
19120echo "$as_me: error: cannot compute sizeof (size_t), 77
19121See \`config.log' for more details." >&2;}
19122 { (exit 1); exit 1; }; }
19123fi
ac1cb8d3 19124rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19125fi
19126fi
19127rm -f conftest.val
19128else
19129 ac_cv_sizeof_size_t=0
19130fi
19131fi
19132echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
19133echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
19134cat >>confdefs.h <<_ACEOF
19135#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
19136_ACEOF
19137
19138
19139
19140case "${host}" in
19141 arm-*-linux* )
19142 echo "$as_me:$LINENO: checking for long long" >&5
19143echo $ECHO_N "checking for long long... $ECHO_C" >&6
19144if test "${ac_cv_type_long_long+set}" = set; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19146else
19147 cat >conftest.$ac_ext <<_ACEOF
19148/* confdefs.h. */
19149_ACEOF
19150cat confdefs.h >>conftest.$ac_ext
19151cat >>conftest.$ac_ext <<_ACEOF
19152/* end confdefs.h. */
19153$ac_includes_default
19154int
19155main ()
19156{
19157if ((long long *) 0)
19158 return 0;
19159if (sizeof (long long))
19160 return 0;
19161 ;
19162 return 0;
19163}
19164_ACEOF
19165rm -f conftest.$ac_objext
19166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19167 (eval $ac_compile) 2>conftest.er1
a848cd7e 19168 ac_status=$?
ac1cb8d3
VS
19169 grep -v '^ *+' conftest.er1 >conftest.err
19170 rm -f conftest.er1
19171 cat conftest.err >&5
a848cd7e
SC
19172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } &&
5ff751d6 19174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176 (eval $ac_try) 2>&5
19177 ac_status=$?
19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179 (exit $ac_status); }; } &&
19180 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182 (eval $ac_try) 2>&5
19183 ac_status=$?
19184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185 (exit $ac_status); }; }; then
19186 ac_cv_type_long_long=yes
19187else
19188 echo "$as_me: failed program was:" >&5
19189sed 's/^/| /' conftest.$ac_ext >&5
19190
19191ac_cv_type_long_long=no
19192fi
ac1cb8d3 19193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19194fi
19195echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19196echo "${ECHO_T}$ac_cv_type_long_long" >&6
19197
19198echo "$as_me:$LINENO: checking size of long long" >&5
19199echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19200if test "${ac_cv_sizeof_long_long+set}" = set; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19202else
19203 if test "$ac_cv_type_long_long" = yes; then
19204 # The cast to unsigned long works around a bug in the HP C Compiler
19205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19207 # This bug is HP SR number 8606223364.
19208 if test "$cross_compiling" = yes; then
19209 # Depending upon the size, compute the lo and hi bounds.
19210cat >conftest.$ac_ext <<_ACEOF
19211/* confdefs.h. */
19212_ACEOF
19213cat confdefs.h >>conftest.$ac_ext
19214cat >>conftest.$ac_ext <<_ACEOF
19215/* end confdefs.h. */
19216$ac_includes_default
19217int
19218main ()
19219{
19220static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19221test_array [0] = 0
19222
19223 ;
19224 return 0;
19225}
19226_ACEOF
19227rm -f conftest.$ac_objext
19228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19229 (eval $ac_compile) 2>conftest.er1
a848cd7e 19230 ac_status=$?
ac1cb8d3
VS
19231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
a848cd7e
SC
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
5ff751d6 19236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; } &&
19242 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19244 (eval $ac_try) 2>&5
19245 ac_status=$?
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); }; }; then
19248 ac_lo=0 ac_mid=0
19249 while :; do
19250 cat >conftest.$ac_ext <<_ACEOF
19251/* confdefs.h. */
19252_ACEOF
19253cat confdefs.h >>conftest.$ac_ext
19254cat >>conftest.$ac_ext <<_ACEOF
19255/* end confdefs.h. */
19256$ac_includes_default
19257int
19258main ()
19259{
19260static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19261test_array [0] = 0
19262
19263 ;
19264 return 0;
19265}
19266_ACEOF
19267rm -f conftest.$ac_objext
19268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19269 (eval $ac_compile) 2>conftest.er1
a848cd7e 19270 ac_status=$?
ac1cb8d3
VS
19271 grep -v '^ *+' conftest.er1 >conftest.err
19272 rm -f conftest.er1
19273 cat conftest.err >&5
a848cd7e
SC
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); } &&
5ff751d6 19276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19278 (eval $ac_try) 2>&5
19279 ac_status=$?
19280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281 (exit $ac_status); }; } &&
19282 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19284 (eval $ac_try) 2>&5
19285 ac_status=$?
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; }; then
19288 ac_hi=$ac_mid; break
19289else
19290 echo "$as_me: failed program was:" >&5
19291sed 's/^/| /' conftest.$ac_ext >&5
19292
19293ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19294 if test $ac_lo -le $ac_mid; then
19295 ac_lo= ac_hi=
19296 break
19297 fi
19298 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19299fi
ac1cb8d3 19300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19301 done
19302else
19303 echo "$as_me: failed program was:" >&5
19304sed 's/^/| /' conftest.$ac_ext >&5
19305
19306cat >conftest.$ac_ext <<_ACEOF
19307/* confdefs.h. */
19308_ACEOF
19309cat confdefs.h >>conftest.$ac_ext
19310cat >>conftest.$ac_ext <<_ACEOF
19311/* end confdefs.h. */
19312$ac_includes_default
19313int
19314main ()
19315{
19316static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19317test_array [0] = 0
19318
19319 ;
19320 return 0;
19321}
19322_ACEOF
19323rm -f conftest.$ac_objext
19324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19325 (eval $ac_compile) 2>conftest.er1
a848cd7e 19326 ac_status=$?
ac1cb8d3
VS
19327 grep -v '^ *+' conftest.er1 >conftest.err
19328 rm -f conftest.er1
19329 cat conftest.err >&5
a848cd7e
SC
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); } &&
5ff751d6 19332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19334 (eval $ac_try) 2>&5
19335 ac_status=$?
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); }; } &&
19338 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19340 (eval $ac_try) 2>&5
19341 ac_status=$?
19342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19343 (exit $ac_status); }; }; then
19344 ac_hi=-1 ac_mid=-1
19345 while :; do
19346 cat >conftest.$ac_ext <<_ACEOF
19347/* confdefs.h. */
19348_ACEOF
19349cat confdefs.h >>conftest.$ac_ext
19350cat >>conftest.$ac_ext <<_ACEOF
19351/* end confdefs.h. */
19352$ac_includes_default
19353int
19354main ()
19355{
19356static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19357test_array [0] = 0
19358
19359 ;
19360 return 0;
19361}
19362_ACEOF
19363rm -f conftest.$ac_objext
19364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19365 (eval $ac_compile) 2>conftest.er1
a848cd7e 19366 ac_status=$?
ac1cb8d3
VS
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
a848cd7e
SC
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } &&
5ff751d6 19372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19374 (eval $ac_try) 2>&5
19375 ac_status=$?
19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19377 (exit $ac_status); }; } &&
19378 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19380 (eval $ac_try) 2>&5
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_lo=$ac_mid; break
19385else
19386 echo "$as_me: failed program was:" >&5
19387sed 's/^/| /' conftest.$ac_ext >&5
19388
19389ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19390 if test $ac_mid -le $ac_hi; then
19391 ac_lo= ac_hi=
19392 break
19393 fi
19394 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19395fi
ac1cb8d3 19396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19397 done
19398else
19399 echo "$as_me: failed program was:" >&5
19400sed 's/^/| /' conftest.$ac_ext >&5
19401
19402ac_lo= ac_hi=
19403fi
ac1cb8d3 19404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19405fi
ac1cb8d3 19406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19407# Binary search between lo and hi bounds.
19408while test "x$ac_lo" != "x$ac_hi"; do
19409 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19410 cat >conftest.$ac_ext <<_ACEOF
19411/* confdefs.h. */
19412_ACEOF
19413cat confdefs.h >>conftest.$ac_ext
19414cat >>conftest.$ac_ext <<_ACEOF
19415/* end confdefs.h. */
19416$ac_includes_default
19417int
19418main ()
19419{
19420static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19421test_array [0] = 0
19422
19423 ;
19424 return 0;
19425}
19426_ACEOF
19427rm -f conftest.$ac_objext
19428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19429 (eval $ac_compile) 2>conftest.er1
a848cd7e 19430 ac_status=$?
ac1cb8d3
VS
19431 grep -v '^ *+' conftest.er1 >conftest.err
19432 rm -f conftest.er1
19433 cat conftest.err >&5
a848cd7e
SC
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); } &&
5ff751d6 19436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 ac_hi=$ac_mid
19449else
19450 echo "$as_me: failed program was:" >&5
19451sed 's/^/| /' conftest.$ac_ext >&5
19452
19453ac_lo=`expr '(' $ac_mid ')' + 1`
19454fi
ac1cb8d3 19455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19456done
19457case $ac_lo in
19458?*) ac_cv_sizeof_long_long=$ac_lo;;
19459'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19460See \`config.log' for more details." >&5
19461echo "$as_me: error: cannot compute sizeof (long long), 77
19462See \`config.log' for more details." >&2;}
19463 { (exit 1); exit 1; }; } ;;
19464esac
19465else
19466 if test "$cross_compiling" = yes; then
5ff751d6
VZ
19467 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19468echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19469 { (exit 1); exit 1; }; }
19470else
19471 cat >conftest.$ac_ext <<_ACEOF
19472/* confdefs.h. */
19473_ACEOF
19474cat confdefs.h >>conftest.$ac_ext
19475cat >>conftest.$ac_ext <<_ACEOF
19476/* end confdefs.h. */
19477$ac_includes_default
19478long longval () { return (long) (sizeof (long long)); }
19479unsigned long ulongval () { return (long) (sizeof (long long)); }
19480#include <stdio.h>
19481#include <stdlib.h>
19482int
19483main ()
19484{
19485
19486 FILE *f = fopen ("conftest.val", "w");
19487 if (! f)
19488 exit (1);
19489 if (((long) (sizeof (long long))) < 0)
19490 {
19491 long i = longval ();
19492 if (i != ((long) (sizeof (long long))))
19493 exit (1);
19494 fprintf (f, "%ld\n", i);
19495 }
19496 else
19497 {
19498 unsigned long i = ulongval ();
19499 if (i != ((long) (sizeof (long long))))
19500 exit (1);
19501 fprintf (f, "%lu\n", i);
19502 }
19503 exit (ferror (f) || fclose (f) != 0);
19504
19505 ;
19506 return 0;
19507}
19508_ACEOF
19509rm -f conftest$ac_exeext
19510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19511 (eval $ac_link) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19516 (eval $ac_try) 2>&5
19517 ac_status=$?
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); }; }; then
19520 ac_cv_sizeof_long_long=`cat conftest.val`
19521else
19522 echo "$as_me: program exited with status $ac_status" >&5
19523echo "$as_me: failed program was:" >&5
19524sed 's/^/| /' conftest.$ac_ext >&5
19525
19526( exit $ac_status )
19527{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19528See \`config.log' for more details." >&5
19529echo "$as_me: error: cannot compute sizeof (long long), 77
19530See \`config.log' for more details." >&2;}
19531 { (exit 1); exit 1; }; }
19532fi
ac1cb8d3 19533rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19534fi
19535fi
19536rm -f conftest.val
19537else
19538 ac_cv_sizeof_long_long=0
19539fi
19540fi
19541echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19542echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19543cat >>confdefs.h <<_ACEOF
19544#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19545_ACEOF
19546
19547
19548 ;;
19549 *-hp-hpux* )
19550 echo "$as_me:$LINENO: checking for long long" >&5
19551echo $ECHO_N "checking for long long... $ECHO_C" >&6
19552if test "${ac_cv_type_long_long+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19554else
19555 cat >conftest.$ac_ext <<_ACEOF
19556/* confdefs.h. */
19557_ACEOF
19558cat confdefs.h >>conftest.$ac_ext
19559cat >>conftest.$ac_ext <<_ACEOF
19560/* end confdefs.h. */
19561$ac_includes_default
19562int
19563main ()
19564{
19565if ((long long *) 0)
19566 return 0;
19567if (sizeof (long long))
19568 return 0;
19569 ;
19570 return 0;
19571}
19572_ACEOF
19573rm -f conftest.$ac_objext
19574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19575 (eval $ac_compile) 2>conftest.er1
a848cd7e 19576 ac_status=$?
ac1cb8d3
VS
19577 grep -v '^ *+' conftest.er1 >conftest.err
19578 rm -f conftest.er1
19579 cat conftest.err >&5
a848cd7e
SC
19580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581 (exit $ac_status); } &&
5ff751d6 19582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; } &&
19588 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; }; then
19594 ac_cv_type_long_long=yes
19595else
19596 echo "$as_me: failed program was:" >&5
19597sed 's/^/| /' conftest.$ac_ext >&5
19598
19599ac_cv_type_long_long=no
19600fi
ac1cb8d3 19601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19602fi
19603echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19604echo "${ECHO_T}$ac_cv_type_long_long" >&6
19605
19606echo "$as_me:$LINENO: checking size of long long" >&5
19607echo $ECHO_N "checking size of long long... $ECHO_C" >&6
19608if test "${ac_cv_sizeof_long_long+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19610else
19611 if test "$ac_cv_type_long_long" = yes; then
19612 # The cast to unsigned long works around a bug in the HP C Compiler
19613 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
19614 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
19615 # This bug is HP SR number 8606223364.
19616 if test "$cross_compiling" = yes; then
19617 # Depending upon the size, compute the lo and hi bounds.
19618cat >conftest.$ac_ext <<_ACEOF
19619/* confdefs.h. */
19620_ACEOF
19621cat confdefs.h >>conftest.$ac_ext
19622cat >>conftest.$ac_ext <<_ACEOF
19623/* end confdefs.h. */
19624$ac_includes_default
19625int
19626main ()
19627{
19628static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
19629test_array [0] = 0
19630
19631 ;
19632 return 0;
19633}
19634_ACEOF
19635rm -f conftest.$ac_objext
19636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19637 (eval $ac_compile) 2>conftest.er1
a848cd7e 19638 ac_status=$?
ac1cb8d3
VS
19639 grep -v '^ *+' conftest.er1 >conftest.err
19640 rm -f conftest.er1
19641 cat conftest.err >&5
a848cd7e
SC
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } &&
5ff751d6 19644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19646 (eval $ac_try) 2>&5
19647 ac_status=$?
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19653 ac_status=$?
19654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; }; then
19656 ac_lo=0 ac_mid=0
19657 while :; do
19658 cat >conftest.$ac_ext <<_ACEOF
19659/* confdefs.h. */
19660_ACEOF
19661cat confdefs.h >>conftest.$ac_ext
19662cat >>conftest.$ac_ext <<_ACEOF
19663/* end confdefs.h. */
19664$ac_includes_default
19665int
19666main ()
19667{
19668static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19669test_array [0] = 0
19670
19671 ;
19672 return 0;
19673}
19674_ACEOF
19675rm -f conftest.$ac_objext
19676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19677 (eval $ac_compile) 2>conftest.er1
a848cd7e 19678 ac_status=$?
ac1cb8d3
VS
19679 grep -v '^ *+' conftest.er1 >conftest.err
19680 rm -f conftest.er1
19681 cat conftest.err >&5
a848cd7e
SC
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } &&
5ff751d6 19684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; } &&
19690 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19692 (eval $ac_try) 2>&5
19693 ac_status=$?
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); }; }; then
19696 ac_hi=$ac_mid; break
19697else
19698 echo "$as_me: failed program was:" >&5
19699sed 's/^/| /' conftest.$ac_ext >&5
19700
19701ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
19702 if test $ac_lo -le $ac_mid; then
19703 ac_lo= ac_hi=
19704 break
19705 fi
19706 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 19707fi
ac1cb8d3 19708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19709 done
19710else
19711 echo "$as_me: failed program was:" >&5
19712sed 's/^/| /' conftest.$ac_ext >&5
19713
19714cat >conftest.$ac_ext <<_ACEOF
19715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720$ac_includes_default
19721int
19722main ()
19723{
19724static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
19725test_array [0] = 0
19726
19727 ;
19728 return 0;
19729}
19730_ACEOF
19731rm -f conftest.$ac_objext
19732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19733 (eval $ac_compile) 2>conftest.er1
a848cd7e 19734 ac_status=$?
ac1cb8d3
VS
19735 grep -v '^ *+' conftest.er1 >conftest.err
19736 rm -f conftest.er1
19737 cat conftest.err >&5
a848cd7e
SC
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); } &&
5ff751d6 19740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_hi=-1 ac_mid=-1
19753 while :; do
19754 cat >conftest.$ac_ext <<_ACEOF
19755/* confdefs.h. */
19756_ACEOF
19757cat confdefs.h >>conftest.$ac_ext
19758cat >>conftest.$ac_ext <<_ACEOF
19759/* end confdefs.h. */
19760$ac_includes_default
19761int
19762main ()
19763{
19764static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
19765test_array [0] = 0
19766
19767 ;
19768 return 0;
19769}
19770_ACEOF
19771rm -f conftest.$ac_objext
19772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19773 (eval $ac_compile) 2>conftest.er1
a848cd7e 19774 ac_status=$?
ac1cb8d3
VS
19775 grep -v '^ *+' conftest.er1 >conftest.err
19776 rm -f conftest.er1
19777 cat conftest.err >&5
a848cd7e
SC
19778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779 (exit $ac_status); } &&
5ff751d6 19780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782 (eval $ac_try) 2>&5
19783 ac_status=$?
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19789 ac_status=$?
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; }; then
19792 ac_lo=$ac_mid; break
19793else
19794 echo "$as_me: failed program was:" >&5
19795sed 's/^/| /' conftest.$ac_ext >&5
19796
19797ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
19798 if test $ac_mid -le $ac_hi; then
19799 ac_lo= ac_hi=
19800 break
19801 fi
19802 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 19803fi
ac1cb8d3 19804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19805 done
19806else
19807 echo "$as_me: failed program was:" >&5
19808sed 's/^/| /' conftest.$ac_ext >&5
19809
19810ac_lo= ac_hi=
19811fi
ac1cb8d3 19812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 19813fi
ac1cb8d3 19814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19815# Binary search between lo and hi bounds.
19816while test "x$ac_lo" != "x$ac_hi"; do
19817 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
19818 cat >conftest.$ac_ext <<_ACEOF
19819/* confdefs.h. */
19820_ACEOF
19821cat confdefs.h >>conftest.$ac_ext
19822cat >>conftest.$ac_ext <<_ACEOF
19823/* end confdefs.h. */
19824$ac_includes_default
19825int
19826main ()
19827{
19828static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
19829test_array [0] = 0
19830
19831 ;
19832 return 0;
19833}
19834_ACEOF
19835rm -f conftest.$ac_objext
19836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19837 (eval $ac_compile) 2>conftest.er1
a848cd7e 19838 ac_status=$?
ac1cb8d3
VS
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
a848cd7e
SC
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } &&
5ff751d6 19844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } &&
19850 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
19856 ac_hi=$ac_mid
19857else
19858 echo "$as_me: failed program was:" >&5
19859sed 's/^/| /' conftest.$ac_ext >&5
19860
19861ac_lo=`expr '(' $ac_mid ')' + 1`
19862fi
ac1cb8d3 19863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19864done
19865case $ac_lo in
19866?*) ac_cv_sizeof_long_long=$ac_lo;;
19867'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19868See \`config.log' for more details." >&5
19869echo "$as_me: error: cannot compute sizeof (long long), 77
19870See \`config.log' for more details." >&2;}
19871 { (exit 1); exit 1; }; } ;;
19872esac
19873else
19874 if test "$cross_compiling" = yes; then
5ff751d6
VZ
19875 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
19876echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
19877 { (exit 1); exit 1; }; }
19878else
19879 cat >conftest.$ac_ext <<_ACEOF
19880/* confdefs.h. */
19881_ACEOF
19882cat confdefs.h >>conftest.$ac_ext
19883cat >>conftest.$ac_ext <<_ACEOF
19884/* end confdefs.h. */
19885$ac_includes_default
19886long longval () { return (long) (sizeof (long long)); }
19887unsigned long ulongval () { return (long) (sizeof (long long)); }
19888#include <stdio.h>
19889#include <stdlib.h>
19890int
19891main ()
19892{
19893
19894 FILE *f = fopen ("conftest.val", "w");
19895 if (! f)
19896 exit (1);
19897 if (((long) (sizeof (long long))) < 0)
19898 {
19899 long i = longval ();
19900 if (i != ((long) (sizeof (long long))))
19901 exit (1);
19902 fprintf (f, "%ld\n", i);
19903 }
19904 else
19905 {
19906 unsigned long i = ulongval ();
19907 if (i != ((long) (sizeof (long long))))
19908 exit (1);
19909 fprintf (f, "%lu\n", i);
19910 }
19911 exit (ferror (f) || fclose (f) != 0);
19912
19913 ;
19914 return 0;
19915}
19916_ACEOF
19917rm -f conftest$ac_exeext
19918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19919 (eval $ac_link) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 ac_cv_sizeof_long_long=`cat conftest.val`
19929else
19930 echo "$as_me: program exited with status $ac_status" >&5
19931echo "$as_me: failed program was:" >&5
19932sed 's/^/| /' conftest.$ac_ext >&5
19933
19934( exit $ac_status )
19935{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
19936See \`config.log' for more details." >&5
19937echo "$as_me: error: cannot compute sizeof (long long), 77
19938See \`config.log' for more details." >&2;}
19939 { (exit 1); exit 1; }; }
19940fi
ac1cb8d3 19941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
19942fi
19943fi
19944rm -f conftest.val
19945else
19946 ac_cv_sizeof_long_long=0
19947fi
19948fi
19949echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
19950echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
19951cat >>confdefs.h <<_ACEOF
19952#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
19953_ACEOF
19954
19955
19956 if test "$ac_cv_sizeof_long_long" != "0"; then
19957 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
19958 fi
19959 ;;
19960 * )
19961 echo "$as_me:$LINENO: checking for long long" >&5
19962echo $ECHO_N "checking for long long... $ECHO_C" >&6
19963if test "${ac_cv_type_long_long+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
19965else
19966 cat >conftest.$ac_ext <<_ACEOF
19967/* confdefs.h. */
19968_ACEOF
19969cat confdefs.h >>conftest.$ac_ext
19970cat >>conftest.$ac_ext <<_ACEOF
19971/* end confdefs.h. */
19972$ac_includes_default
19973int
19974main ()
19975{
19976if ((long long *) 0)
19977 return 0;
19978if (sizeof (long long))
19979 return 0;
19980 ;
19981 return 0;
19982}
19983_ACEOF
19984rm -f conftest.$ac_objext
19985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 19986 (eval $ac_compile) 2>conftest.er1
a848cd7e 19987 ac_status=$?
ac1cb8d3
VS
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
a848cd7e
SC
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
5ff751d6 19993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19996 ac_status=$?
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; } &&
19999 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001 (eval $ac_try) 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); }; }; then
20005 ac_cv_type_long_long=yes
20006else
20007 echo "$as_me: failed program was:" >&5
20008sed 's/^/| /' conftest.$ac_ext >&5
20009
20010ac_cv_type_long_long=no
20011fi
ac1cb8d3 20012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20013fi
20014echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20015echo "${ECHO_T}$ac_cv_type_long_long" >&6
20016
20017echo "$as_me:$LINENO: checking size of long long" >&5
20018echo $ECHO_N "checking size of long long... $ECHO_C" >&6
20019if test "${ac_cv_sizeof_long_long+set}" = set; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021else
20022 if test "$ac_cv_type_long_long" = yes; then
20023 # The cast to unsigned long works around a bug in the HP C Compiler
20024 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20025 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20026 # This bug is HP SR number 8606223364.
20027 if test "$cross_compiling" = yes; then
20028 # Depending upon the size, compute the lo and hi bounds.
20029cat >conftest.$ac_ext <<_ACEOF
20030/* confdefs.h. */
20031_ACEOF
20032cat confdefs.h >>conftest.$ac_ext
20033cat >>conftest.$ac_ext <<_ACEOF
20034/* end confdefs.h. */
20035$ac_includes_default
20036int
20037main ()
20038{
20039static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
20040test_array [0] = 0
20041
20042 ;
20043 return 0;
20044}
20045_ACEOF
20046rm -f conftest.$ac_objext
20047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20048 (eval $ac_compile) 2>conftest.er1
a848cd7e 20049 ac_status=$?
ac1cb8d3
VS
20050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
a848cd7e
SC
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } &&
5ff751d6 20055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20057 (eval $ac_try) 2>&5
20058 ac_status=$?
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); }; } &&
20061 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20063 (eval $ac_try) 2>&5
20064 ac_status=$?
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; }; then
20067 ac_lo=0 ac_mid=0
20068 while :; do
20069 cat >conftest.$ac_ext <<_ACEOF
20070/* confdefs.h. */
20071_ACEOF
20072cat confdefs.h >>conftest.$ac_ext
20073cat >>conftest.$ac_ext <<_ACEOF
20074/* end confdefs.h. */
20075$ac_includes_default
20076int
20077main ()
20078{
20079static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20080test_array [0] = 0
20081
20082 ;
20083 return 0;
20084}
20085_ACEOF
20086rm -f conftest.$ac_objext
20087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20088 (eval $ac_compile) 2>conftest.er1
a848cd7e 20089 ac_status=$?
ac1cb8d3
VS
20090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
a848cd7e
SC
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } &&
5ff751d6 20095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; }; then
20107 ac_hi=$ac_mid; break
20108else
20109 echo "$as_me: failed program was:" >&5
20110sed 's/^/| /' conftest.$ac_ext >&5
20111
20112ac_lo=`expr $ac_mid + 1`
ac1cb8d3
VS
20113 if test $ac_lo -le $ac_mid; then
20114 ac_lo= ac_hi=
20115 break
20116 fi
20117 ac_mid=`expr 2 '*' $ac_mid + 1`
a848cd7e 20118fi
ac1cb8d3 20119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20120 done
20121else
20122 echo "$as_me: failed program was:" >&5
20123sed 's/^/| /' conftest.$ac_ext >&5
20124
20125cat >conftest.$ac_ext <<_ACEOF
20126/* confdefs.h. */
20127_ACEOF
20128cat confdefs.h >>conftest.$ac_ext
20129cat >>conftest.$ac_ext <<_ACEOF
20130/* end confdefs.h. */
20131$ac_includes_default
20132int
20133main ()
20134{
20135static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
20136test_array [0] = 0
20137
20138 ;
20139 return 0;
20140}
20141_ACEOF
20142rm -f conftest.$ac_objext
20143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20144 (eval $ac_compile) 2>conftest.er1
a848cd7e 20145 ac_status=$?
ac1cb8d3
VS
20146 grep -v '^ *+' conftest.er1 >conftest.err
20147 rm -f conftest.er1
20148 cat conftest.err >&5
a848cd7e
SC
20149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20150 (exit $ac_status); } &&
5ff751d6 20151 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20153 (eval $ac_try) 2>&5
20154 ac_status=$?
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); }; } &&
20157 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20159 (eval $ac_try) 2>&5
20160 ac_status=$?
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 ac_hi=-1 ac_mid=-1
20164 while :; do
20165 cat >conftest.$ac_ext <<_ACEOF
20166/* confdefs.h. */
20167_ACEOF
20168cat confdefs.h >>conftest.$ac_ext
20169cat >>conftest.$ac_ext <<_ACEOF
20170/* end confdefs.h. */
20171$ac_includes_default
20172int
20173main ()
20174{
20175static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
20176test_array [0] = 0
20177
20178 ;
20179 return 0;
20180}
20181_ACEOF
20182rm -f conftest.$ac_objext
20183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20184 (eval $ac_compile) 2>conftest.er1
a848cd7e 20185 ac_status=$?
ac1cb8d3
VS
20186 grep -v '^ *+' conftest.er1 >conftest.err
20187 rm -f conftest.er1
20188 cat conftest.err >&5
a848cd7e
SC
20189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } &&
5ff751d6 20191 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20193 (eval $ac_try) 2>&5
20194 ac_status=$?
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); }; } &&
20197 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20199 (eval $ac_try) 2>&5
20200 ac_status=$?
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); }; }; then
20203 ac_lo=$ac_mid; break
20204else
20205 echo "$as_me: failed program was:" >&5
20206sed 's/^/| /' conftest.$ac_ext >&5
20207
20208ac_hi=`expr '(' $ac_mid ')' - 1`
ac1cb8d3
VS
20209 if test $ac_mid -le $ac_hi; then
20210 ac_lo= ac_hi=
20211 break
20212 fi
20213 ac_mid=`expr 2 '*' $ac_mid`
a848cd7e 20214fi
ac1cb8d3 20215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20216 done
20217else
20218 echo "$as_me: failed program was:" >&5
20219sed 's/^/| /' conftest.$ac_ext >&5
20220
20221ac_lo= ac_hi=
20222fi
ac1cb8d3 20223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 20224fi
ac1cb8d3 20225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20226# Binary search between lo and hi bounds.
20227while test "x$ac_lo" != "x$ac_hi"; do
20228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20229 cat >conftest.$ac_ext <<_ACEOF
20230/* confdefs.h. */
20231_ACEOF
20232cat confdefs.h >>conftest.$ac_ext
20233cat >>conftest.$ac_ext <<_ACEOF
20234/* end confdefs.h. */
20235$ac_includes_default
20236int
20237main ()
20238{
20239static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
20240test_array [0] = 0
20241
20242 ;
20243 return 0;
20244}
20245_ACEOF
20246rm -f conftest.$ac_objext
20247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 20248 (eval $ac_compile) 2>conftest.er1
a848cd7e 20249 ac_status=$?
ac1cb8d3
VS
20250 grep -v '^ *+' conftest.er1 >conftest.err
20251 rm -f conftest.er1
20252 cat conftest.err >&5
a848cd7e
SC
20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20254 (exit $ac_status); } &&
5ff751d6 20255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
20256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257 (eval $ac_try) 2>&5
20258 ac_status=$?
20259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260 (exit $ac_status); }; } &&
20261 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
20262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263 (eval $ac_try) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); }; }; then
20267 ac_hi=$ac_mid
20268else
20269 echo "$as_me: failed program was:" >&5
20270sed 's/^/| /' conftest.$ac_ext >&5
20271
20272ac_lo=`expr '(' $ac_mid ')' + 1`
20273fi
ac1cb8d3 20274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20275done
20276case $ac_lo in
20277?*) ac_cv_sizeof_long_long=$ac_lo;;
20278'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20279See \`config.log' for more details." >&5
20280echo "$as_me: error: cannot compute sizeof (long long), 77
20281See \`config.log' for more details." >&2;}
20282 { (exit 1); exit 1; }; } ;;
20283esac
20284else
20285 if test "$cross_compiling" = yes; then
5ff751d6
VZ
20286 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20287echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
a848cd7e
SC
20288 { (exit 1); exit 1; }; }
20289else
20290 cat >conftest.$ac_ext <<_ACEOF
20291/* confdefs.h. */
20292_ACEOF
20293cat confdefs.h >>conftest.$ac_ext
20294cat >>conftest.$ac_ext <<_ACEOF
20295/* end confdefs.h. */
20296$ac_includes_default
20297long longval () { return (long) (sizeof (long long)); }
20298unsigned long ulongval () { return (long) (sizeof (long long)); }
20299#include <stdio.h>
20300#include <stdlib.h>
20301int
20302main ()
20303{
20304
20305 FILE *f = fopen ("conftest.val", "w");
20306 if (! f)
20307 exit (1);
20308 if (((long) (sizeof (long long))) < 0)
20309 {
20310 long i = longval ();
20311 if (i != ((long) (sizeof (long long))))
20312 exit (1);
20313 fprintf (f, "%ld\n", i);
20314 }
20315 else
20316 {
20317 unsigned long i = ulongval ();
20318 if (i != ((long) (sizeof (long long))))
20319 exit (1);
20320 fprintf (f, "%lu\n", i);
20321 }
20322 exit (ferror (f) || fclose (f) != 0);
20323
20324 ;
20325 return 0;
20326}
20327_ACEOF
20328rm -f conftest$ac_exeext
20329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20330 (eval $ac_link) 2>&5
20331 ac_status=$?
20332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; }; then
20339 ac_cv_sizeof_long_long=`cat conftest.val`
20340else
20341 echo "$as_me: program exited with status $ac_status" >&5
20342echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345( exit $ac_status )
20346{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
20347See \`config.log' for more details." >&5
20348echo "$as_me: error: cannot compute sizeof (long long), 77
20349See \`config.log' for more details." >&2;}
20350 { (exit 1); exit 1; }; }
20351fi
ac1cb8d3 20352rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
20353fi
20354fi
20355rm -f conftest.val
20356else
20357 ac_cv_sizeof_long_long=0
20358fi
20359fi
20360echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
20361echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
20362cat >>confdefs.h <<_ACEOF
20363#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20364_ACEOF
20365
20366
20367esac
20368
238ecede
MW
20369echo "$as_me:$LINENO: checking for wchar_t" >&5
20370echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
20371if test "${ac_cv_type_wchar_t+set}" = set; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20373else
20374 cat >conftest.$ac_ext <<_ACEOF
20375/* confdefs.h. */
20376_ACEOF
20377cat confdefs.h >>conftest.$ac_ext
20378cat >>conftest.$ac_ext <<_ACEOF
20379/* end confdefs.h. */
20380
83d8eb47
MW
20381 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20382 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20383 # error "fake wchar_t"
20384 #endif
20385 #ifdef HAVE_WCHAR_H
20386 # ifdef __CYGWIN__
20387 # include <stddef.h>
20388 # endif
20389 # include <wchar.h>
20390 #endif
20391 #ifdef HAVE_STDLIB_H
20392 # include <stdlib.h>
20393 #endif
20394 #include <stdio.h>
20395
20396
20397
20398int
20399main ()
20400{
20401if ((wchar_t *) 0)
20402 return 0;
20403if (sizeof (wchar_t))
20404 return 0;
20405 ;
20406 return 0;
20407}
20408_ACEOF
20409rm -f conftest.$ac_objext
20410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20411 (eval $ac_compile) 2>conftest.er1
20412 ac_status=$?
20413 grep -v '^ *+' conftest.er1 >conftest.err
20414 rm -f conftest.er1
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } &&
5ff751d6 20418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; } &&
20424 { ac_try='test -s conftest.$ac_objext'
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20427 ac_status=$?
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20430 ac_cv_type_wchar_t=yes
20431else
20432 echo "$as_me: failed program was:" >&5
20433sed 's/^/| /' conftest.$ac_ext >&5
20434
20435ac_cv_type_wchar_t=no
20436fi
20437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20438fi
20439echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
20440echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
20441
a848cd7e
SC
20442echo "$as_me:$LINENO: checking size of wchar_t" >&5
20443echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
238ecede 20444if test "${ac_cv_sizeof_wchar_t+set}" = set; then
a848cd7e
SC
20445 echo $ECHO_N "(cached) $ECHO_C" >&6
20446else
238ecede
MW
20447 if test "$ac_cv_type_wchar_t" = yes; then
20448 # The cast to unsigned long works around a bug in the HP C Compiler
20449 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20450 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20451 # This bug is HP SR number 8606223364.
20452 if test "$cross_compiling" = yes; then
20453 # Depending upon the size, compute the lo and hi bounds.
20454cat >conftest.$ac_ext <<_ACEOF
20455/* confdefs.h. */
20456_ACEOF
20457cat confdefs.h >>conftest.$ac_ext
20458cat >>conftest.$ac_ext <<_ACEOF
20459/* end confdefs.h. */
20460
83d8eb47
MW
20461 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20462 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20463 # error "fake wchar_t"
20464 #endif
20465 #ifdef HAVE_WCHAR_H
20466 # ifdef __CYGWIN__
20467 # include <stddef.h>
20468 # endif
20469 # include <wchar.h>
20470 #endif
20471 #ifdef HAVE_STDLIB_H
20472 # include <stdlib.h>
20473 #endif
20474 #include <stdio.h>
20475
20476
20477
20478int
20479main ()
20480{
20481static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
20482test_array [0] = 0
20483
20484 ;
20485 return 0;
20486}
20487_ACEOF
20488rm -f conftest.$ac_objext
20489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20490 (eval $ac_compile) 2>conftest.er1
20491 ac_status=$?
20492 grep -v '^ *+' conftest.er1 >conftest.err
20493 rm -f conftest.er1
20494 cat conftest.err >&5
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); } &&
5ff751d6 20497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20499 (eval $ac_try) 2>&5
20500 ac_status=$?
20501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); }; } &&
20503 { ac_try='test -s conftest.$ac_objext'
20504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20505 (eval $ac_try) 2>&5
20506 ac_status=$?
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 ac_lo=0 ac_mid=0
20510 while :; do
20511 cat >conftest.$ac_ext <<_ACEOF
20512/* confdefs.h. */
20513_ACEOF
20514cat confdefs.h >>conftest.$ac_ext
20515cat >>conftest.$ac_ext <<_ACEOF
20516/* end confdefs.h. */
20517
83d8eb47
MW
20518 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20519 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20520 # error "fake wchar_t"
20521 #endif
20522 #ifdef HAVE_WCHAR_H
20523 # ifdef __CYGWIN__
20524 # include <stddef.h>
20525 # endif
20526 # include <wchar.h>
20527 #endif
20528 #ifdef HAVE_STDLIB_H
20529 # include <stdlib.h>
20530 #endif
20531 #include <stdio.h>
20532
20533
20534
20535int
20536main ()
20537{
20538static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20539test_array [0] = 0
20540
20541 ;
20542 return 0;
20543}
20544_ACEOF
20545rm -f conftest.$ac_objext
20546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20547 (eval $ac_compile) 2>conftest.er1
20548 ac_status=$?
20549 grep -v '^ *+' conftest.er1 >conftest.err
20550 rm -f conftest.er1
20551 cat conftest.err >&5
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); } &&
5ff751d6 20554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20556 (eval $ac_try) 2>&5
20557 ac_status=$?
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); }; } &&
20560 { ac_try='test -s conftest.$ac_objext'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; }; then
20566 ac_hi=$ac_mid; break
20567else
20568 echo "$as_me: failed program was:" >&5
20569sed 's/^/| /' conftest.$ac_ext >&5
20570
20571ac_lo=`expr $ac_mid + 1`
20572 if test $ac_lo -le $ac_mid; then
20573 ac_lo= ac_hi=
20574 break
20575 fi
20576 ac_mid=`expr 2 '*' $ac_mid + 1`
20577fi
20578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20579 done
20580else
20581 echo "$as_me: failed program was:" >&5
20582sed 's/^/| /' conftest.$ac_ext >&5
20583
20584cat >conftest.$ac_ext <<_ACEOF
20585/* confdefs.h. */
20586_ACEOF
20587cat confdefs.h >>conftest.$ac_ext
20588cat >>conftest.$ac_ext <<_ACEOF
20589/* end confdefs.h. */
20590
83d8eb47
MW
20591 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20592 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20593 # error "fake wchar_t"
20594 #endif
20595 #ifdef HAVE_WCHAR_H
20596 # ifdef __CYGWIN__
20597 # include <stddef.h>
20598 # endif
20599 # include <wchar.h>
20600 #endif
20601 #ifdef HAVE_STDLIB_H
20602 # include <stdlib.h>
20603 #endif
20604 #include <stdio.h>
20605
20606
20607
20608int
20609main ()
20610{
20611static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
20612test_array [0] = 0
20613
20614 ;
20615 return 0;
20616}
20617_ACEOF
20618rm -f conftest.$ac_objext
20619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20620 (eval $ac_compile) 2>conftest.er1
20621 ac_status=$?
20622 grep -v '^ *+' conftest.er1 >conftest.err
20623 rm -f conftest.er1
20624 cat conftest.err >&5
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } &&
5ff751d6 20627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest.$ac_objext'
20634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20635 (eval $ac_try) 2>&5
20636 ac_status=$?
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); }; }; then
20639 ac_hi=-1 ac_mid=-1
20640 while :; do
20641 cat >conftest.$ac_ext <<_ACEOF
20642/* confdefs.h. */
20643_ACEOF
20644cat confdefs.h >>conftest.$ac_ext
20645cat >>conftest.$ac_ext <<_ACEOF
20646/* end confdefs.h. */
20647
83d8eb47
MW
20648 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20649 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20650 # error "fake wchar_t"
20651 #endif
20652 #ifdef HAVE_WCHAR_H
20653 # ifdef __CYGWIN__
20654 # include <stddef.h>
20655 # endif
20656 # include <wchar.h>
20657 #endif
20658 #ifdef HAVE_STDLIB_H
20659 # include <stdlib.h>
20660 #endif
20661 #include <stdio.h>
20662
20663
20664
20665int
20666main ()
20667{
20668static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
20669test_array [0] = 0
20670
20671 ;
20672 return 0;
20673}
20674_ACEOF
20675rm -f conftest.$ac_objext
20676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20677 (eval $ac_compile) 2>conftest.er1
20678 ac_status=$?
20679 grep -v '^ *+' conftest.er1 >conftest.err
20680 rm -f conftest.er1
20681 cat conftest.err >&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } &&
5ff751d6 20684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20687 ac_status=$?
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; } &&
20690 { ac_try='test -s conftest.$ac_objext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20693 ac_status=$?
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20696 ac_lo=$ac_mid; break
20697else
20698 echo "$as_me: failed program was:" >&5
20699sed 's/^/| /' conftest.$ac_ext >&5
20700
20701ac_hi=`expr '(' $ac_mid ')' - 1`
20702 if test $ac_mid -le $ac_hi; then
20703 ac_lo= ac_hi=
20704 break
20705 fi
20706 ac_mid=`expr 2 '*' $ac_mid`
20707fi
20708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20709 done
20710else
20711 echo "$as_me: failed program was:" >&5
20712sed 's/^/| /' conftest.$ac_ext >&5
20713
20714ac_lo= ac_hi=
20715fi
20716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20717fi
20718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20719# Binary search between lo and hi bounds.
20720while test "x$ac_lo" != "x$ac_hi"; do
20721 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
20722 cat >conftest.$ac_ext <<_ACEOF
20723/* confdefs.h. */
20724_ACEOF
20725cat confdefs.h >>conftest.$ac_ext
20726cat >>conftest.$ac_ext <<_ACEOF
20727/* end confdefs.h. */
20728
83d8eb47
MW
20729 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20730 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20731 # error "fake wchar_t"
20732 #endif
20733 #ifdef HAVE_WCHAR_H
20734 # ifdef __CYGWIN__
20735 # include <stddef.h>
20736 # endif
20737 # include <wchar.h>
20738 #endif
20739 #ifdef HAVE_STDLIB_H
20740 # include <stdlib.h>
20741 #endif
20742 #include <stdio.h>
a848cd7e 20743
a848cd7e 20744
a848cd7e 20745
238ecede
MW
20746int
20747main ()
20748{
20749static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
20750test_array [0] = 0
a848cd7e 20751
238ecede
MW
20752 ;
20753 return 0;
20754}
20755_ACEOF
20756rm -f conftest.$ac_objext
20757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20758 (eval $ac_compile) 2>conftest.er1
20759 ac_status=$?
20760 grep -v '^ *+' conftest.er1 >conftest.err
20761 rm -f conftest.er1
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } &&
5ff751d6 20765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
238ecede
MW
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; } &&
20771 { ac_try='test -s conftest.$ac_objext'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; }; then
20777 ac_hi=$ac_mid
20778else
20779 echo "$as_me: failed program was:" >&5
20780sed 's/^/| /' conftest.$ac_ext >&5
20781
20782ac_lo=`expr '(' $ac_mid ')' + 1`
20783fi
20784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20785done
20786case $ac_lo in
20787?*) ac_cv_sizeof_wchar_t=$ac_lo;;
20788'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20789See \`config.log' for more details." >&5
20790echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20791See \`config.log' for more details." >&2;}
20792 { (exit 1); exit 1; }; } ;;
20793esac
20794else
20795 if test "$cross_compiling" = yes; then
5ff751d6
VZ
20796 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
20797echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
238ecede 20798 { (exit 1); exit 1; }; }
a848cd7e
SC
20799else
20800 cat >conftest.$ac_ext <<_ACEOF
20801/* confdefs.h. */
20802_ACEOF
20803cat confdefs.h >>conftest.$ac_ext
20804cat >>conftest.$ac_ext <<_ACEOF
20805/* end confdefs.h. */
20806
83d8eb47
MW
20807 /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
20808 #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
238ecede
MW
20809 # error "fake wchar_t"
20810 #endif
20811 #ifdef HAVE_WCHAR_H
20812 # ifdef __CYGWIN__
20813 # include <stddef.h>
20814 # endif
20815 # include <wchar.h>
20816 #endif
20817 #ifdef HAVE_STDLIB_H
20818 # include <stdlib.h>
20819 #endif
20820 #include <stdio.h>
20821
20822
20823
20824long longval () { return (long) (sizeof (wchar_t)); }
20825unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
20826#include <stdio.h>
20827#include <stdlib.h>
20828int
20829main ()
20830{
a848cd7e 20831
238ecede
MW
20832 FILE *f = fopen ("conftest.val", "w");
20833 if (! f)
20834 exit (1);
20835 if (((long) (sizeof (wchar_t))) < 0)
20836 {
20837 long i = longval ();
20838 if (i != ((long) (sizeof (wchar_t))))
20839 exit (1);
20840 fprintf (f, "%ld\n", i);
20841 }
20842 else
20843 {
20844 unsigned long i = ulongval ();
20845 if (i != ((long) (sizeof (wchar_t))))
20846 exit (1);
20847 fprintf (f, "%lu\n", i);
20848 }
20849 exit (ferror (f) || fclose (f) != 0);
20850
20851 ;
20852 return 0;
20853}
a848cd7e
SC
20854_ACEOF
20855rm -f conftest$ac_exeext
20856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20857 (eval $ac_link) 2>&5
20858 ac_status=$?
20859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20860 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20863 ac_status=$?
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; }; then
238ecede 20866 ac_cv_sizeof_wchar_t=`cat conftest.val`
a848cd7e
SC
20867else
20868 echo "$as_me: program exited with status $ac_status" >&5
20869echo "$as_me: failed program was:" >&5
20870sed 's/^/| /' conftest.$ac_ext >&5
20871
20872( exit $ac_status )
238ecede
MW
20873{ { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
20874See \`config.log' for more details." >&5
20875echo "$as_me: error: cannot compute sizeof (wchar_t), 77
20876See \`config.log' for more details." >&2;}
20877 { (exit 1); exit 1; }; }
a848cd7e 20878fi
ac1cb8d3 20879rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e 20880fi
a848cd7e 20881fi
238ecede
MW
20882rm -f conftest.val
20883else
20884 ac_cv_sizeof_wchar_t=0
20885fi
20886fi
20887echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
20888echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
a848cd7e 20889cat >>confdefs.h <<_ACEOF
238ecede 20890#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
a848cd7e
SC
20891_ACEOF
20892
20893
47a7e797
MW
20894if test "$ac_cv_sizeof_wchar_t" != "0"; then
20895 wxUSE_WCHAR_T=yes
20896else
20897 wxUSE_WCHAR_T=no
20898fi
238ecede 20899
ba3d13e1
VZ
20900echo "$as_me:$LINENO: checking for va_copy" >&5
20901echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
20902if test "${wx_cv_func_va_copy+set}" = set; then
20903 echo $ECHO_N "(cached) $ECHO_C" >&6
20904else
20905
20906 cat >conftest.$ac_ext <<_ACEOF
20907
20908 #include <stdarg.h>
20909 void foo(char *f, ...)
20910 {
20911 va_list ap1, ap2;
20912 va_start(ap1, f);
20913 va_copy(ap2, ap1);
20914 va_end(ap2);
20915 va_end(ap1);
20916 }
5886b072
VZ
20917 int main()
20918 {
b902e639
VZ
20919 foo("hi", 17);
20920 return 0;
5886b072 20921 }
ba3d13e1
VZ
20922_ACEOF
20923rm -f conftest.$ac_objext conftest$ac_exeext
20924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20925 (eval $ac_link) 2>conftest.er1
20926 ac_status=$?
20927 grep -v '^ *+' conftest.er1 >conftest.err
20928 rm -f conftest.er1
20929 cat conftest.err >&5
20930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931 (exit $ac_status); } &&
5ff751d6 20932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ba3d13e1
VZ
20933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20934 (eval $ac_try) 2>&5
20935 ac_status=$?
20936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20937 (exit $ac_status); }; } &&
20938 { ac_try='test -s conftest$ac_exeext'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; }; then
20944 wx_cv_func_va_copy=yes
20945else
20946 echo "$as_me: failed program was:" >&5
20947sed 's/^/| /' conftest.$ac_ext >&5
20948
20949wx_cv_func_va_copy=no
20950
20951fi
20952rm -f conftest.err conftest.$ac_objext \
20953 conftest$ac_exeext conftest.$ac_ext
20954
20955
20956fi
20957echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
20958echo "${ECHO_T}$wx_cv_func_va_copy" >&6
20959
20960if test $wx_cv_func_va_copy = "yes"; then
20961 cat >>confdefs.h <<\_ACEOF
20962#define HAVE_VA_COPY 1
20963_ACEOF
20964
20965else
20966 echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
20967echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6
20968if test "${wx_cv_type_va_list_lvalue+set}" = set; then
20969 echo $ECHO_N "(cached) $ECHO_C" >&6
20970else
20971
20972 if test "$cross_compiling" = yes; then
20973 wx_cv_type_va_list_lvalue=yes
20974
20975else
20976 cat >conftest.$ac_ext <<_ACEOF
20977
20978 #include <stdarg.h>
20979 int foo(char *f, ...)
20980 {
20981 va_list ap1, ap2;
20982 va_start(ap1, f);
20983 ap2 = ap1;
20984 if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
20985 return 1;
20986 va_end(ap2);
20987 va_end(ap1);
20988 return 0;
20989 }
20990 int main()
20991 {
20992 return foo("hi", 17);
20993 }
20994_ACEOF
20995rm -f conftest$ac_exeext
20996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20997 (eval $ac_link) 2>&5
20998 ac_status=$?
20999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21002 (eval $ac_try) 2>&5
21003 ac_status=$?
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); }; }; then
21006 wx_cv_type_va_list_lvalue=yes
21007else
21008 echo "$as_me: program exited with status $ac_status" >&5
21009echo "$as_me: failed program was:" >&5
21010sed 's/^/| /' conftest.$ac_ext >&5
21011
21012( exit $ac_status )
21013wx_cv_type_va_list_lvalue=no
21014fi
21015rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21016fi
21017
21018
21019fi
21020echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
21021echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6
21022
21023 if test $wx_cv_type_va_list_lvalue != "yes"; then
21024 cat >>confdefs.h <<\_ACEOF
21025#define VA_LIST_IS_ARRAY 1
21026_ACEOF
21027
21028 fi
21029fi
21030
a848cd7e
SC
21031# Check whether --enable-largefile or --disable-largefile was given.
21032if test "${enable_largefile+set}" = set; then
21033 enableval="$enable_largefile"
21034
21035fi;
21036if test "$enable_largefile" != no; then
21037 wx_largefile=no
21038
21039 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
21040echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
21041if test "${ac_cv_sys_file_offset_bits+set}" = set; then
21042 echo $ECHO_N "(cached) $ECHO_C" >&6
21043else
21044
21045 cat >conftest.$ac_ext <<_ACEOF
21046/* confdefs.h. */
21047_ACEOF
21048cat confdefs.h >>conftest.$ac_ext
21049cat >>conftest.$ac_ext <<_ACEOF
21050/* end confdefs.h. */
21051#define _FILE_OFFSET_BITS 64
21052 #include <sys/types.h>
21053int
21054main ()
21055{
21056typedef struct {
21057 unsigned int field: sizeof(off_t) == 8;
21058} wxlf;
21059
21060 ;
21061 return 0;
21062}
21063_ACEOF
21064rm -f conftest.$ac_objext
21065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21066 (eval $ac_compile) 2>conftest.er1
a848cd7e 21067 ac_status=$?
ac1cb8d3
VS
21068 grep -v '^ *+' conftest.er1 >conftest.err
21069 rm -f conftest.er1
21070 cat conftest.err >&5
a848cd7e
SC
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); } &&
5ff751d6 21073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21076 ac_status=$?
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; } &&
21079 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21082 ac_status=$?
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 ac_cv_sys_file_offset_bits=64
21086else
21087 echo "$as_me: failed program was:" >&5
21088sed 's/^/| /' conftest.$ac_ext >&5
21089
21090ac_cv_sys_file_offset_bits=no
21091fi
ac1cb8d3 21092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21093
21094
21095fi
21096echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
21097echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21098
21099 if test "$ac_cv_sys_file_offset_bits" != no; then
21100 wx_largefile=yes
21101 cat >>confdefs.h <<_ACEOF
21102#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
21103_ACEOF
21104
21105 fi
21106
21107 if test "x$wx_largefile" != "xyes"; then
21108
21109 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
21110echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
21111if test "${ac_cv_sys_large_files+set}" = set; then
21112 echo $ECHO_N "(cached) $ECHO_C" >&6
21113else
21114
21115 cat >conftest.$ac_ext <<_ACEOF
21116/* confdefs.h. */
21117_ACEOF
21118cat confdefs.h >>conftest.$ac_ext
21119cat >>conftest.$ac_ext <<_ACEOF
21120/* end confdefs.h. */
21121#define _LARGE_FILES 1
21122 #include <sys/types.h>
21123int
21124main ()
21125{
21126typedef struct {
21127 unsigned int field: sizeof(off_t) == 8;
21128} wxlf;
21129
21130 ;
21131 return 0;
21132}
21133_ACEOF
21134rm -f conftest.$ac_objext
21135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21136 (eval $ac_compile) 2>conftest.er1
a848cd7e 21137 ac_status=$?
ac1cb8d3
VS
21138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
a848cd7e
SC
21141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
5ff751d6 21143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; } &&
21149 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21152 ac_status=$?
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21155 ac_cv_sys_large_files=1
21156else
21157 echo "$as_me: failed program was:" >&5
21158sed 's/^/| /' conftest.$ac_ext >&5
21159
21160ac_cv_sys_large_files=no
21161fi
ac1cb8d3 21162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21163
21164
21165fi
21166echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
21167echo "${ECHO_T}$ac_cv_sys_large_files" >&6
21168
21169 if test "$ac_cv_sys_large_files" != no; then
21170 wx_largefile=yes
21171 cat >>confdefs.h <<_ACEOF
21172#define _LARGE_FILES $ac_cv_sys_large_files
21173_ACEOF
21174
21175 fi
21176
21177 fi
21178
21179 echo "$as_me:$LINENO: checking if large file support is available" >&5
21180echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21181 if test "x$wx_largefile" = "xyes"; then
21182 cat >>confdefs.h <<\_ACEOF
21183#define HAVE_LARGEFILE_SUPPORT 1
21184_ACEOF
21185
21186 fi
21187 echo "$as_me:$LINENO: result: $wx_largefile" >&5
21188echo "${ECHO_T}$wx_largefile" >&6
21189fi
21190
5b674b9d
DE
21191
21192if test "x$wx_largefile" = "xyes"; then
21193 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
5ff751d6 21194 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
00421666
MW
21195
21196 if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
21197 echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
21198echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6
21199if test "${wx_cv_STDC_EXT_required+set}" = set; then
21200 echo $ECHO_N "(cached) $ECHO_C" >&6
21201else
21202
21203
21204
21205 ac_ext=cc
21206ac_cpp='$CXXCPP $CPPFLAGS'
21207ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21208ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21209ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21210
21211 cat >conftest.$ac_ext <<_ACEOF
21212/* confdefs.h. */
21213_ACEOF
21214cat confdefs.h >>conftest.$ac_ext
21215cat >>conftest.$ac_ext <<_ACEOF
21216/* end confdefs.h. */
21217
21218int
21219main ()
21220{
21221
21222 #ifndef __STDC_EXT__
21223 choke me
21224 #endif
21225
21226 ;
21227 return 0;
21228}
21229_ACEOF
21230rm -f conftest.$ac_objext
21231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21232 (eval $ac_compile) 2>conftest.er1
21233 ac_status=$?
21234 grep -v '^ *+' conftest.er1 >conftest.err
21235 rm -f conftest.er1
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238 (exit $ac_status); } &&
5ff751d6 21239 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
00421666
MW
21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21241 (eval $ac_try) 2>&5
21242 ac_status=$?
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); }; } &&
21245 { ac_try='test -s conftest.$ac_objext'
21246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21247 (eval $ac_try) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 wx_cv_STDC_EXT_required=no
21252else
21253 echo "$as_me: failed program was:" >&5
21254sed 's/^/| /' conftest.$ac_ext >&5
21255
21256wx_cv_STDC_EXT_required=yes
21257
21258fi
21259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21260 ac_ext=c
21261ac_cpp='$CPP $CPPFLAGS'
21262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21264ac_compiler_gnu=$ac_cv_c_compiler_gnu
21265
21266
21267
21268fi
21269echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
21270echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6
21271 if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
5ff751d6 21272 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
00421666
MW
21273 fi
21274 fi
5b674b9d 21275 else
5ff751d6 21276 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
5b674b9d
DE
21277 fi
21278 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5294a27e
VZ
21279echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
21280if test "${ac_cv_sys_largefile_source+set}" = set; then
21281 echo $ECHO_N "(cached) $ECHO_C" >&6
21282else
21283 while :; do
21284 ac_cv_sys_largefile_source=no
21285 cat >conftest.$ac_ext <<_ACEOF
21286/* confdefs.h. */
21287_ACEOF
21288cat confdefs.h >>conftest.$ac_ext
21289cat >>conftest.$ac_ext <<_ACEOF
21290/* end confdefs.h. */
21291#include <stdio.h>
21292int
21293main ()
21294{
21295return !fseeko;
21296 ;
21297 return 0;
21298}
21299_ACEOF
21300rm -f conftest.$ac_objext
21301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21302 (eval $ac_compile) 2>conftest.er1
21303 ac_status=$?
21304 grep -v '^ *+' conftest.er1 >conftest.err
21305 rm -f conftest.er1
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } &&
5ff751d6 21309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311 (eval $ac_try) 2>&5
21312 ac_status=$?
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); }; } &&
21315 { ac_try='test -s conftest.$ac_objext'
21316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317 (eval $ac_try) 2>&5
21318 ac_status=$?
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); }; }; then
21321 break
21322else
21323 echo "$as_me: failed program was:" >&5
21324sed 's/^/| /' conftest.$ac_ext >&5
21325
21326fi
21327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21328 cat >conftest.$ac_ext <<_ACEOF
21329/* confdefs.h. */
21330_ACEOF
21331cat confdefs.h >>conftest.$ac_ext
21332cat >>conftest.$ac_ext <<_ACEOF
21333/* end confdefs.h. */
21334#define _LARGEFILE_SOURCE 1
21335#include <stdio.h>
21336int
21337main ()
21338{
21339return !fseeko;
21340 ;
21341 return 0;
21342}
21343_ACEOF
21344rm -f conftest.$ac_objext
21345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21346 (eval $ac_compile) 2>conftest.er1
21347 ac_status=$?
21348 grep -v '^ *+' conftest.er1 >conftest.err
21349 rm -f conftest.er1
21350 cat conftest.err >&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } &&
5ff751d6 21353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21355 (eval $ac_try) 2>&5
21356 ac_status=$?
21357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358 (exit $ac_status); }; } &&
21359 { ac_try='test -s conftest.$ac_objext'
21360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21361 (eval $ac_try) 2>&5
21362 ac_status=$?
21363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21364 (exit $ac_status); }; }; then
21365 ac_cv_sys_largefile_source=1; break
21366else
21367 echo "$as_me: failed program was:" >&5
21368sed 's/^/| /' conftest.$ac_ext >&5
21369
21370fi
21371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21372 break
21373done
21374fi
21375echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
21376echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
21377if test "$ac_cv_sys_largefile_source" != no; then
21378
21379cat >>confdefs.h <<_ACEOF
21380#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
21381_ACEOF
21382
21383fi
21384rm -f conftest*
21385
21386# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
21387# in glibc 2.1.3, but that breaks too many other things.
21388# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
21389echo "$as_me:$LINENO: checking for fseeko" >&5
21390echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
21391if test "${ac_cv_func_fseeko+set}" = set; then
21392 echo $ECHO_N "(cached) $ECHO_C" >&6
21393else
21394 cat >conftest.$ac_ext <<_ACEOF
21395/* confdefs.h. */
21396_ACEOF
21397cat confdefs.h >>conftest.$ac_ext
21398cat >>conftest.$ac_ext <<_ACEOF
21399/* end confdefs.h. */
21400#include <stdio.h>
21401int
21402main ()
21403{
21404return fseeko && fseeko (stdin, 0, 0);
21405 ;
21406 return 0;
21407}
21408_ACEOF
21409rm -f conftest.$ac_objext conftest$ac_exeext
21410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21411 (eval $ac_link) 2>conftest.er1
21412 ac_status=$?
21413 grep -v '^ *+' conftest.er1 >conftest.err
21414 rm -f conftest.er1
21415 cat conftest.err >&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } &&
5ff751d6 21418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5294a27e
VZ
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21421 ac_status=$?
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; } &&
21424 { ac_try='test -s conftest$ac_exeext'
21425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
21430 ac_cv_func_fseeko=yes
21431else
21432 echo "$as_me: failed program was:" >&5
21433sed 's/^/| /' conftest.$ac_ext >&5
21434
21435ac_cv_func_fseeko=no
21436fi
21437rm -f conftest.err conftest.$ac_objext \
21438 conftest$ac_exeext conftest.$ac_ext
21439fi
21440echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
21441echo "${ECHO_T}$ac_cv_func_fseeko" >&6
21442if test $ac_cv_func_fseeko = yes; then
21443
21444cat >>confdefs.h <<\_ACEOF
21445#define HAVE_FSEEKO 1
21446_ACEOF
21447
21448fi
21449
5b674b9d 21450 if test "$ac_cv_sys_largefile_source" != no; then
5ff751d6 21451 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
a848cd7e 21452 fi
a848cd7e
SC
21453fi
21454
21455echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21456echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21457if test "${ac_cv_c_bigendian+set}" = set; then
21458 echo $ECHO_N "(cached) $ECHO_C" >&6
21459else
21460 ac_cv_c_bigendian=unknown
21461# See if sys/param.h defines the BYTE_ORDER macro.
21462cat >conftest.$ac_ext <<_ACEOF
21463/* confdefs.h. */
21464_ACEOF
21465cat confdefs.h >>conftest.$ac_ext
21466cat >>conftest.$ac_ext <<_ACEOF
21467/* end confdefs.h. */
21468#include <sys/types.h>
21469#include <sys/param.h>
21470int
21471main ()
21472{
21473
21474#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21475 bogus endian macros
21476#endif
21477 ;
21478 return 0;
21479}
21480_ACEOF
21481rm -f conftest.$ac_objext
21482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21483 (eval $ac_compile) 2>conftest.er1
a848cd7e 21484 ac_status=$?
ac1cb8d3
VS
21485 grep -v '^ *+' conftest.er1 >conftest.err
21486 rm -f conftest.er1
21487 cat conftest.err >&5
a848cd7e
SC
21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21489 (exit $ac_status); } &&
5ff751d6 21490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21492 (eval $ac_try) 2>&5
21493 ac_status=$?
21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495 (exit $ac_status); }; } &&
21496 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21498 (eval $ac_try) 2>&5
21499 ac_status=$?
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); }; }; then
21502 # It does; now see whether it defined to BIG_ENDIAN or not.
21503cat >conftest.$ac_ext <<_ACEOF
21504/* confdefs.h. */
21505_ACEOF
21506cat confdefs.h >>conftest.$ac_ext
21507cat >>conftest.$ac_ext <<_ACEOF
21508/* end confdefs.h. */
21509#include <sys/types.h>
21510#include <sys/param.h>
21511int
21512main ()
21513{
21514
21515#if BYTE_ORDER != BIG_ENDIAN
21516 not big endian
21517#endif
21518 ;
21519 return 0;
21520}
21521_ACEOF
21522rm -f conftest.$ac_objext
21523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21524 (eval $ac_compile) 2>conftest.er1
a848cd7e 21525 ac_status=$?
ac1cb8d3
VS
21526 grep -v '^ *+' conftest.er1 >conftest.err
21527 rm -f conftest.er1
21528 cat conftest.err >&5
a848cd7e
SC
21529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } &&
5ff751d6 21531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533 (eval $ac_try) 2>&5
21534 ac_status=$?
21535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536 (exit $ac_status); }; } &&
21537 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539 (eval $ac_try) 2>&5
21540 ac_status=$?
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); }; }; then
21543 ac_cv_c_bigendian=yes
21544else
21545 echo "$as_me: failed program was:" >&5
21546sed 's/^/| /' conftest.$ac_ext >&5
21547
21548ac_cv_c_bigendian=no
21549fi
ac1cb8d3 21550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21551else
21552 echo "$as_me: failed program was:" >&5
21553sed 's/^/| /' conftest.$ac_ext >&5
21554
21555fi
ac1cb8d3 21556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21557if test $ac_cv_c_bigendian = unknown; then
21558if test "$cross_compiling" = yes; then
21559 ac_cv_c_bigendian=unknown
21560else
21561 cat >conftest.$ac_ext <<_ACEOF
21562/* confdefs.h. */
21563_ACEOF
21564cat confdefs.h >>conftest.$ac_ext
21565cat >>conftest.$ac_ext <<_ACEOF
21566/* end confdefs.h. */
21567main () {
21568 /* Are we little or big endian? From Harbison&Steele. */
21569 union
21570 {
21571 long l;
21572 char c[sizeof (long)];
21573 } u;
21574 u.l = 1;
21575 exit (u.c[sizeof (long) - 1] == 1);
21576}
21577_ACEOF
21578rm -f conftest$ac_exeext
21579if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21580 (eval $ac_link) 2>&5
21581 ac_status=$?
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585 (eval $ac_try) 2>&5
21586 ac_status=$?
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; }; then
21589 ac_cv_c_bigendian=no
21590else
21591 echo "$as_me: program exited with status $ac_status" >&5
21592echo "$as_me: failed program was:" >&5
21593sed 's/^/| /' conftest.$ac_ext >&5
21594
21595( exit $ac_status )
21596ac_cv_c_bigendian=yes
21597fi
ac1cb8d3 21598rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21599fi
21600fi
21601fi
21602echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21603echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21604if test $ac_cv_c_bigendian = unknown; then
21605 { 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
21606echo "$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;}
21607fi
21608if test $ac_cv_c_bigendian = yes; then
21609 cat >>confdefs.h <<\_ACEOF
21610#define WORDS_BIGENDIAN 1
21611_ACEOF
21612
21613fi
21614
21615
21616ac_ext=cc
21617ac_cpp='$CXXCPP $CPPFLAGS'
21618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21621echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
21622echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
21623if test -z "$CXXCPP"; then
21624 if test "${ac_cv_prog_CXXCPP+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
21626else
21627 # Double quotes because CXXCPP needs to be expanded
21628 for CXXCPP in "$CXX -E" "/lib/cpp"
21629 do
21630 ac_preproc_ok=false
21631for ac_cxx_preproc_warn_flag in '' yes
21632do
21633 # Use a header file that comes with gcc, so configuring glibc
21634 # with a fresh cross-compiler works.
21635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21636 # <limits.h> exists even on freestanding compilers.
21637 # On the NeXT, cc -E runs the code through the compiler's parser,
21638 # not just through cpp. "Syntax error" is here to catch this case.
21639 cat >conftest.$ac_ext <<_ACEOF
21640/* confdefs.h. */
21641_ACEOF
21642cat confdefs.h >>conftest.$ac_ext
21643cat >>conftest.$ac_ext <<_ACEOF
21644/* end confdefs.h. */
21645#ifdef __STDC__
21646# include <limits.h>
21647#else
21648# include <assert.h>
21649#endif
ac1cb8d3 21650 Syntax error
a848cd7e
SC
21651_ACEOF
21652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21654 ac_status=$?
21655 grep -v '^ *+' conftest.er1 >conftest.err
21656 rm -f conftest.er1
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21659 (exit $ac_status); } >/dev/null; then
21660 if test -s conftest.err; then
21661 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21662 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21663 else
21664 ac_cpp_err=
21665 fi
21666else
21667 ac_cpp_err=yes
21668fi
21669if test -z "$ac_cpp_err"; then
21670 :
21671else
21672 echo "$as_me: failed program was:" >&5
21673sed 's/^/| /' conftest.$ac_ext >&5
21674
21675 # Broken: fails on valid input.
21676continue
21677fi
21678rm -f conftest.err conftest.$ac_ext
21679
21680 # OK, works on sane cases. Now check whether non-existent headers
21681 # can be detected and how.
21682 cat >conftest.$ac_ext <<_ACEOF
21683/* confdefs.h. */
21684_ACEOF
21685cat confdefs.h >>conftest.$ac_ext
21686cat >>conftest.$ac_ext <<_ACEOF
21687/* end confdefs.h. */
21688#include <ac_nonexistent.h>
21689_ACEOF
21690if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21692 ac_status=$?
21693 grep -v '^ *+' conftest.er1 >conftest.err
21694 rm -f conftest.er1
21695 cat conftest.err >&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } >/dev/null; then
21698 if test -s conftest.err; then
21699 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21700 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21701 else
21702 ac_cpp_err=
21703 fi
21704else
21705 ac_cpp_err=yes
21706fi
21707if test -z "$ac_cpp_err"; then
21708 # Broken: success on invalid input.
21709continue
21710else
21711 echo "$as_me: failed program was:" >&5
21712sed 's/^/| /' conftest.$ac_ext >&5
21713
21714 # Passes both tests.
21715ac_preproc_ok=:
21716break
21717fi
21718rm -f conftest.err conftest.$ac_ext
21719
21720done
21721# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21722rm -f conftest.err conftest.$ac_ext
21723if $ac_preproc_ok; then
21724 break
21725fi
21726
21727 done
21728 ac_cv_prog_CXXCPP=$CXXCPP
21729
21730fi
21731 CXXCPP=$ac_cv_prog_CXXCPP
21732else
21733 ac_cv_prog_CXXCPP=$CXXCPP
21734fi
21735echo "$as_me:$LINENO: result: $CXXCPP" >&5
21736echo "${ECHO_T}$CXXCPP" >&6
21737ac_preproc_ok=false
21738for ac_cxx_preproc_warn_flag in '' yes
21739do
21740 # Use a header file that comes with gcc, so configuring glibc
21741 # with a fresh cross-compiler works.
21742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21743 # <limits.h> exists even on freestanding compilers.
21744 # On the NeXT, cc -E runs the code through the compiler's parser,
21745 # not just through cpp. "Syntax error" is here to catch this case.
21746 cat >conftest.$ac_ext <<_ACEOF
21747/* confdefs.h. */
21748_ACEOF
21749cat confdefs.h >>conftest.$ac_ext
21750cat >>conftest.$ac_ext <<_ACEOF
21751/* end confdefs.h. */
21752#ifdef __STDC__
21753# include <limits.h>
21754#else
21755# include <assert.h>
21756#endif
ac1cb8d3 21757 Syntax error
a848cd7e
SC
21758_ACEOF
21759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21761 ac_status=$?
21762 grep -v '^ *+' conftest.er1 >conftest.err
21763 rm -f conftest.er1
21764 cat conftest.err >&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } >/dev/null; then
21767 if test -s conftest.err; then
21768 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21769 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21770 else
21771 ac_cpp_err=
21772 fi
21773else
21774 ac_cpp_err=yes
21775fi
21776if test -z "$ac_cpp_err"; then
21777 :
21778else
21779 echo "$as_me: failed program was:" >&5
21780sed 's/^/| /' conftest.$ac_ext >&5
21781
21782 # Broken: fails on valid input.
21783continue
21784fi
21785rm -f conftest.err conftest.$ac_ext
21786
21787 # OK, works on sane cases. Now check whether non-existent headers
21788 # can be detected and how.
21789 cat >conftest.$ac_ext <<_ACEOF
21790/* confdefs.h. */
21791_ACEOF
21792cat confdefs.h >>conftest.$ac_ext
21793cat >>conftest.$ac_ext <<_ACEOF
21794/* end confdefs.h. */
21795#include <ac_nonexistent.h>
21796_ACEOF
21797if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21799 ac_status=$?
21800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } >/dev/null; then
21805 if test -s conftest.err; then
21806 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21807 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21808 else
21809 ac_cpp_err=
21810 fi
21811else
21812 ac_cpp_err=yes
21813fi
21814if test -z "$ac_cpp_err"; then
21815 # Broken: success on invalid input.
21816continue
21817else
21818 echo "$as_me: failed program was:" >&5
21819sed 's/^/| /' conftest.$ac_ext >&5
21820
21821 # Passes both tests.
21822ac_preproc_ok=:
21823break
21824fi
21825rm -f conftest.err conftest.$ac_ext
21826
21827done
21828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21829rm -f conftest.err conftest.$ac_ext
21830if $ac_preproc_ok; then
21831 :
21832else
21833 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21834See \`config.log' for more details." >&5
21835echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
21836See \`config.log' for more details." >&2;}
21837 { (exit 1); exit 1; }; }
21838fi
21839
21840ac_ext=cc
21841ac_cpp='$CXXCPP $CPPFLAGS'
21842ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21843ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21844ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21845
21846
21847
21848
21849
21850 ac_ext=cc
21851ac_cpp='$CXXCPP $CPPFLAGS'
21852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21855
21856
21857
21858for ac_header in iostream
21859do
21860as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21861if eval "test \"\${$as_ac_Header+set}\" = set"; then
21862 echo "$as_me:$LINENO: checking for $ac_header" >&5
21863echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21864if eval "test \"\${$as_ac_Header+set}\" = set"; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21866fi
21867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21869else
21870 # Is the header compilable?
21871echo "$as_me:$LINENO: checking $ac_header usability" >&5
21872echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21873cat >conftest.$ac_ext <<_ACEOF
21874/* confdefs.h. */
21875_ACEOF
21876cat confdefs.h >>conftest.$ac_ext
21877cat >>conftest.$ac_ext <<_ACEOF
21878/* end confdefs.h. */
21879$ac_includes_default
21880#include <$ac_header>
21881_ACEOF
21882rm -f conftest.$ac_objext
21883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 21884 (eval $ac_compile) 2>conftest.er1
a848cd7e 21885 ac_status=$?
ac1cb8d3
VS
21886 grep -v '^ *+' conftest.er1 >conftest.err
21887 rm -f conftest.er1
21888 cat conftest.err >&5
a848cd7e
SC
21889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21890 (exit $ac_status); } &&
5ff751d6 21891 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
21892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893 (eval $ac_try) 2>&5
21894 ac_status=$?
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; } &&
21897 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
21898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21900 ac_status=$?
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; }; then
21903 ac_header_compiler=yes
21904else
21905 echo "$as_me: failed program was:" >&5
21906sed 's/^/| /' conftest.$ac_ext >&5
21907
21908ac_header_compiler=no
21909fi
ac1cb8d3 21910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
21911echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21912echo "${ECHO_T}$ac_header_compiler" >&6
21913
21914# Is the header present?
21915echo "$as_me:$LINENO: checking $ac_header presence" >&5
21916echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21917cat >conftest.$ac_ext <<_ACEOF
21918/* confdefs.h. */
21919_ACEOF
21920cat confdefs.h >>conftest.$ac_ext
21921cat >>conftest.$ac_ext <<_ACEOF
21922/* end confdefs.h. */
21923#include <$ac_header>
21924_ACEOF
21925if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21927 ac_status=$?
21928 grep -v '^ *+' conftest.er1 >conftest.err
21929 rm -f conftest.er1
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } >/dev/null; then
21933 if test -s conftest.err; then
21934 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 21935 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
a848cd7e
SC
21936 else
21937 ac_cpp_err=
21938 fi
21939else
21940 ac_cpp_err=yes
21941fi
21942if test -z "$ac_cpp_err"; then
21943 ac_header_preproc=yes
21944else
21945 echo "$as_me: failed program was:" >&5
21946sed 's/^/| /' conftest.$ac_ext >&5
21947
21948 ac_header_preproc=no
21949fi
21950rm -f conftest.err conftest.$ac_ext
21951echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21952echo "${ECHO_T}$ac_header_preproc" >&6
21953
21954# So? What about this header?
ac1cb8d3
VS
21955case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21956 yes:no: )
a848cd7e
SC
21957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21958echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
21959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21960echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21961 ac_header_preproc=yes
a848cd7e 21962 ;;
ac1cb8d3 21963 no:yes:* )
a848cd7e
SC
21964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21965echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
21966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21967echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21969echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21971echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
21972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21973echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
21974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21975echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
21976 (
21977 cat <<\_ASBOX
ac1cb8d3
VS
21978## ----------------------------------------- ##
21979## Report this to wx-dev@lists.wxwidgets.org ##
21980## ----------------------------------------- ##
a848cd7e
SC
21981_ASBOX
21982 ) |
21983 sed "s/^/$as_me: WARNING: /" >&2
21984 ;;
21985esac
21986echo "$as_me:$LINENO: checking for $ac_header" >&5
21987echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21988if eval "test \"\${$as_ac_Header+set}\" = set"; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21990else
ac1cb8d3 21991 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
21992fi
21993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21994echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21995
21996fi
21997if test `eval echo '${'$as_ac_Header'}'` = yes; then
21998 cat >>confdefs.h <<_ACEOF
21999#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22000_ACEOF
22001
22002fi
22003
22004done
22005
22006
22007 if test "$ac_cv_header_iostream" = "yes" ; then
22008 :
22009 else
22010 cat >>confdefs.h <<\_ACEOF
22011#define wxUSE_IOSTREAMH 1
22012_ACEOF
22013
22014 fi
22015
22016 ac_ext=c
22017ac_cpp='$CPP $CPPFLAGS'
22018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22020ac_compiler_gnu=$ac_cv_c_compiler_gnu
22021
22022
22023
22024
22025 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
22026echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
22027if test "${wx_cv_cpp_bool+set}" = set; then
22028 echo $ECHO_N "(cached) $ECHO_C" >&6
22029else
22030
22031
22032
22033 ac_ext=cc
22034ac_cpp='$CXXCPP $CPPFLAGS'
22035ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22036ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22037ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22038
22039
22040 cat >conftest.$ac_ext <<_ACEOF
22041/* confdefs.h. */
22042_ACEOF
22043cat confdefs.h >>conftest.$ac_ext
22044cat >>conftest.$ac_ext <<_ACEOF
22045/* end confdefs.h. */
22046
22047
22048int
22049main ()
22050{
22051
22052 bool b = true;
22053
22054 return 0;
22055
22056 ;
22057 return 0;
22058}
22059_ACEOF
22060rm -f conftest.$ac_objext
22061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22062 (eval $ac_compile) 2>conftest.er1
a848cd7e 22063 ac_status=$?
ac1cb8d3
VS
22064 grep -v '^ *+' conftest.er1 >conftest.err
22065 rm -f conftest.er1
22066 cat conftest.err >&5
a848cd7e
SC
22067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22068 (exit $ac_status); } &&
5ff751d6 22069 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22071 (eval $ac_try) 2>&5
22072 ac_status=$?
22073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22074 (exit $ac_status); }; } &&
22075 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077 (eval $ac_try) 2>&5
22078 ac_status=$?
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; }; then
22081
22082 wx_cv_cpp_bool=yes
22083
22084else
22085 echo "$as_me: failed program was:" >&5
22086sed 's/^/| /' conftest.$ac_ext >&5
22087
22088
22089 wx_cv_cpp_bool=no
22090
22091
22092fi
ac1cb8d3 22093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22094
22095 ac_ext=c
22096ac_cpp='$CPP $CPPFLAGS'
22097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22099ac_compiler_gnu=$ac_cv_c_compiler_gnu
22100
22101
22102fi
22103echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
22104echo "${ECHO_T}$wx_cv_cpp_bool" >&6
22105
22106 if test "$wx_cv_cpp_bool" = "yes"; then
22107 cat >>confdefs.h <<\_ACEOF
22108#define HAVE_BOOL 1
22109_ACEOF
22110
22111 fi
22112
22113
22114
22115 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
22116echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
22117if test "${wx_cv_explicit+set}" = set; then
22118 echo $ECHO_N "(cached) $ECHO_C" >&6
22119else
22120
22121
22122
22123 ac_ext=cc
22124ac_cpp='$CXXCPP $CPPFLAGS'
22125ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22126ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22127ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22128
22129
22130 cat >conftest.$ac_ext <<_ACEOF
22131/* confdefs.h. */
22132_ACEOF
22133cat confdefs.h >>conftest.$ac_ext
22134cat >>conftest.$ac_ext <<_ACEOF
22135/* end confdefs.h. */
22136
22137 class Foo { public: explicit Foo(int) {} };
22138
22139int
22140main ()
22141{
22142
22143 return 0;
22144
22145 ;
22146 return 0;
22147}
22148_ACEOF
22149rm -f conftest.$ac_objext
22150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22151 (eval $ac_compile) 2>conftest.er1
a848cd7e 22152 ac_status=$?
ac1cb8d3
VS
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
a848cd7e
SC
22156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } &&
5ff751d6 22158 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22160 (eval $ac_try) 2>&5
22161 ac_status=$?
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); }; } &&
22164 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22166 (eval $ac_try) 2>&5
22167 ac_status=$?
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); }; }; then
22170
22171 cat >conftest.$ac_ext <<_ACEOF
22172/* confdefs.h. */
22173_ACEOF
22174cat confdefs.h >>conftest.$ac_ext
22175cat >>conftest.$ac_ext <<_ACEOF
22176/* end confdefs.h. */
22177
22178 class Foo { public: explicit Foo(int) {} };
22179 static void TakeFoo(const Foo& foo) { }
22180
22181int
22182main ()
22183{
22184
22185 TakeFoo(17);
22186 return 0;
22187
22188 ;
22189 return 0;
22190}
22191_ACEOF
22192rm -f conftest.$ac_objext
22193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22194 (eval $ac_compile) 2>conftest.er1
a848cd7e 22195 ac_status=$?
ac1cb8d3
VS
22196 grep -v '^ *+' conftest.er1 >conftest.err
22197 rm -f conftest.er1
22198 cat conftest.err >&5
a848cd7e
SC
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } &&
5ff751d6 22201 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22203 (eval $ac_try) 2>&5
22204 ac_status=$?
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; } &&
22207 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22209 (eval $ac_try) 2>&5
22210 ac_status=$?
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); }; }; then
22213 wx_cv_explicit=no
22214else
22215 echo "$as_me: failed program was:" >&5
22216sed 's/^/| /' conftest.$ac_ext >&5
22217
22218wx_cv_explicit=yes
22219
22220fi
ac1cb8d3 22221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22222
22223else
22224 echo "$as_me: failed program was:" >&5
22225sed 's/^/| /' conftest.$ac_ext >&5
22226
22227wx_cv_explicit=no
22228
22229fi
ac1cb8d3 22230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22231
22232 ac_ext=c
22233ac_cpp='$CPP $CPPFLAGS'
22234ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22235ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22236ac_compiler_gnu=$ac_cv_c_compiler_gnu
22237
22238
22239fi
22240echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
22241echo "${ECHO_T}$wx_cv_explicit" >&6
22242
22243 if test "$wx_cv_explicit" = "yes"; then
22244 cat >>confdefs.h <<\_ACEOF
22245#define HAVE_EXPLICIT 1
22246_ACEOF
22247
22248 fi
22249
22250
22251echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
22252echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
22253if test "${ac_cv_cxx_const_cast+set}" = set; then
22254 echo $ECHO_N "(cached) $ECHO_C" >&6
22255else
22256
22257
22258 ac_ext=cc
22259ac_cpp='$CXXCPP $CPPFLAGS'
22260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22261ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22263
22264 cat >conftest.$ac_ext <<_ACEOF
22265/* confdefs.h. */
22266_ACEOF
22267cat confdefs.h >>conftest.$ac_ext
22268cat >>conftest.$ac_ext <<_ACEOF
22269/* end confdefs.h. */
22270
22271int
22272main ()
22273{
22274int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
22275 ;
22276 return 0;
22277}
22278_ACEOF
22279rm -f conftest.$ac_objext
22280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22281 (eval $ac_compile) 2>conftest.er1
a848cd7e 22282 ac_status=$?
ac1cb8d3
VS
22283 grep -v '^ *+' conftest.er1 >conftest.err
22284 rm -f conftest.er1
22285 cat conftest.err >&5
a848cd7e
SC
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); } &&
5ff751d6 22288 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; } &&
22294 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; }; then
22300 ac_cv_cxx_const_cast=yes
22301else
22302 echo "$as_me: failed program was:" >&5
22303sed 's/^/| /' conftest.$ac_ext >&5
22304
22305ac_cv_cxx_const_cast=no
22306fi
ac1cb8d3 22307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22308 ac_ext=c
22309ac_cpp='$CPP $CPPFLAGS'
22310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22312ac_compiler_gnu=$ac_cv_c_compiler_gnu
22313
22314
22315fi
22316echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
22317echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
22318if test "$ac_cv_cxx_const_cast" = yes; then
22319
22320cat >>confdefs.h <<\_ACEOF
22321#define HAVE_CONST_CAST
22322_ACEOF
22323
22324fi
22325
7714864e
RL
22326echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
22327echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6
22328if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
22329 echo $ECHO_N "(cached) $ECHO_C" >&6
22330else
22331
22332
22333 ac_ext=cc
22334ac_cpp='$CXXCPP $CPPFLAGS'
22335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22338
22339 cat >conftest.$ac_ext <<_ACEOF
22340/* confdefs.h. */
22341_ACEOF
22342cat confdefs.h >>conftest.$ac_ext
22343cat >>conftest.$ac_ext <<_ACEOF
22344/* end confdefs.h. */
22345#include <typeinfo>
22346class Base { public : Base () {} virtual void f () = 0;};
22347class Derived : public Base { public : Derived () {} virtual void f () {} };
22348class Unrelated { public : Unrelated () {} };
22349int g (Unrelated&) { return 0; }
22350int
22351main ()
22352{
22353
22354Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
22355 ;
22356 return 0;
22357}
22358_ACEOF
22359rm -f conftest.$ac_objext
22360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22361 (eval $ac_compile) 2>conftest.er1
22362 ac_status=$?
22363 grep -v '^ *+' conftest.er1 >conftest.err
22364 rm -f conftest.er1
22365 cat conftest.err >&5
22366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367 (exit $ac_status); } &&
5ff751d6 22368 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7714864e
RL
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; } &&
22374 { ac_try='test -s conftest.$ac_objext'
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 ac_cv_cxx_reinterpret_cast=yes
22381else
22382 echo "$as_me: failed program was:" >&5
22383sed 's/^/| /' conftest.$ac_ext >&5
22384
22385ac_cv_cxx_reinterpret_cast=no
22386fi
22387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22388 ac_ext=c
22389ac_cpp='$CPP $CPPFLAGS'
22390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22392ac_compiler_gnu=$ac_cv_c_compiler_gnu
22393
22394
22395fi
22396echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
22397echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6
22398if test "$ac_cv_cxx_reinterpret_cast" = yes; then
22399
22400cat >>confdefs.h <<\_ACEOF
22401#define HAVE_REINTERPRET_CAST
22402_ACEOF
22403
22404fi
22405
a848cd7e
SC
22406echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
22407echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
22408if test "${ac_cv_cxx_static_cast+set}" = set; then
22409 echo $ECHO_N "(cached) $ECHO_C" >&6
22410else
22411
22412
22413 ac_ext=cc
22414ac_cpp='$CXXCPP $CPPFLAGS'
22415ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22416ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22417ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22418
22419 cat >conftest.$ac_ext <<_ACEOF
22420/* confdefs.h. */
22421_ACEOF
22422cat confdefs.h >>conftest.$ac_ext
22423cat >>conftest.$ac_ext <<_ACEOF
22424/* end confdefs.h. */
22425#include <typeinfo>
22426class Base { public : Base () {} virtual void f () = 0; };
22427class Derived : public Base { public : Derived () {} virtual void f () {} };
22428int g (Derived&) { return 0; }
22429int
22430main ()
22431{
22432
22433Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
22434 ;
22435 return 0;
22436}
22437_ACEOF
22438rm -f conftest.$ac_objext
22439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22440 (eval $ac_compile) 2>conftest.er1
a848cd7e 22441 ac_status=$?
ac1cb8d3
VS
22442 grep -v '^ *+' conftest.er1 >conftest.err
22443 rm -f conftest.er1
22444 cat conftest.err >&5
a848cd7e
SC
22445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22446 (exit $ac_status); } &&
5ff751d6 22447 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22449 (eval $ac_try) 2>&5
22450 ac_status=$?
22451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22452 (exit $ac_status); }; } &&
22453 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22455 (eval $ac_try) 2>&5
22456 ac_status=$?
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); }; }; then
22459 ac_cv_cxx_static_cast=yes
22460else
22461 echo "$as_me: failed program was:" >&5
22462sed 's/^/| /' conftest.$ac_ext >&5
22463
22464ac_cv_cxx_static_cast=no
22465fi
ac1cb8d3 22466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22467 ac_ext=c
22468ac_cpp='$CPP $CPPFLAGS'
22469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22471ac_compiler_gnu=$ac_cv_c_compiler_gnu
22472
22473
22474fi
22475echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
22476echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
22477if test "$ac_cv_cxx_static_cast" = yes; then
22478
22479cat >>confdefs.h <<\_ACEOF
22480#define HAVE_STATIC_CAST
22481_ACEOF
22482
22483fi
22484
22485
3c28b7cb
MW
22486if test "x$SUNCXX" = xyes; then
22487 CXXFLAGS="$CXXFLAGS -features=tmplife"
22488fi
22489
9122d155
VZ
22490if test "x$SUNCC" = xyes; then
22491 CFLAGS="$CFLAGS -erroff=E_NO_EXPLICIT_TYPE_GIVEN"
22492fi
22493
0ad5d837
VZ
22494if test "x$SGICC" = "xyes"; then
22495 CFLAGS="$CFLAGS -woff 3970"
22496fi
22497if test "x$SGICXX" = "xyes"; then
22498 CXXFLAGS="$CXXFLAGS -woff 3970"
22499fi
22500
2eef8513
VZ
22501if test "x$HPCC" = "xyes"; then
22502 CFLAGS="$CFLAGS +W 2011,2450"
22503fi
22504if test "x$HPCXX" = "xyes"; then
22505 CXXFLAGS="$CXXFLAGS +W 2340"
22506fi
22507
22508if test "x$COMPAQCXX" = "xyes"; then
22509 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
22510fi
22511
f56c22b4 22512if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
a848cd7e
SC
22513 ac_ext=cc
22514ac_cpp='$CXXCPP $CPPFLAGS'
22515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22518
22519
f56c22b4
MW
22520 if test "$wxUSE_UNICODE" = "yes"; then
22521 std_string="std::wstring"
22522 char_type="wchar_t"
22523 else
22524 std_string="std::string"
22525 char_type="char"
22526 fi
22527
22528 echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
22529echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6
a848cd7e
SC
22530 cat >conftest.$ac_ext <<_ACEOF
22531/* confdefs.h. */
22532_ACEOF
22533cat confdefs.h >>conftest.$ac_ext
22534cat >>conftest.$ac_ext <<_ACEOF
22535/* end confdefs.h. */
22536#include <string>
a848cd7e
SC
22537int
22538main ()
22539{
f56c22b4 22540$std_string foo;
a848cd7e
SC
22541 ;
22542 return 0;
22543}
22544_ACEOF
22545rm -f conftest.$ac_objext
22546if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22547 (eval $ac_compile) 2>conftest.er1
a848cd7e 22548 ac_status=$?
ac1cb8d3
VS
22549 grep -v '^ *+' conftest.er1 >conftest.err
22550 rm -f conftest.er1
22551 cat conftest.err >&5
a848cd7e
SC
22552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22553 (exit $ac_status); } &&
5ff751d6 22554 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22556 (eval $ac_try) 2>&5
22557 ac_status=$?
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); }; } &&
22560 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22562 (eval $ac_try) 2>&5
22563 ac_status=$?
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); }; }; then
22566 echo "$as_me:$LINENO: result: yes" >&5
22567echo "${ECHO_T}yes" >&6
0a08f02a
MB
22568 cat >>confdefs.h <<\_ACEOF
22569#define HAVE_STD_WSTRING 1
22570_ACEOF
22571
a848cd7e
SC
22572else
22573 echo "$as_me: failed program was:" >&5
22574sed 's/^/| /' conftest.$ac_ext >&5
22575
22576echo "$as_me:$LINENO: result: no" >&5
22577echo "${ECHO_T}no" >&6
f56c22b4
MW
22578 echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
22579echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6
0a08f02a
MB
22580 cat >conftest.$ac_ext <<_ACEOF
22581/* confdefs.h. */
22582_ACEOF
22583cat confdefs.h >>conftest.$ac_ext
22584cat >>conftest.$ac_ext <<_ACEOF
22585/* end confdefs.h. */
22586
22587 #ifdef HAVE_WCHAR_H
22588 # ifdef __CYGWIN__
22589 # include <stddef.h>
22590 # endif
22591 # include <wchar.h>
22592 #endif
22593 #ifdef HAVE_STDLIB_H
22594 # include <stdlib.h>
22595 #endif
22596 #include <stdio.h>
22597 #include <string>
22598
22599int
22600main ()
22601{
f56c22b4
MW
22602std::basic_string<$char_type> foo;
22603 const $char_type* dummy = foo.c_str();
0a08f02a
MB
22604 ;
22605 return 0;
22606}
22607_ACEOF
22608rm -f conftest.$ac_objext
22609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22610 (eval $ac_compile) 2>conftest.er1
22611 ac_status=$?
22612 grep -v '^ *+' conftest.er1 >conftest.err
22613 rm -f conftest.er1
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } &&
5ff751d6 22617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0a08f02a
MB
22618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22620 ac_status=$?
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; } &&
22623 { ac_try='test -s conftest.$ac_objext'
22624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22625 (eval $ac_try) 2>&5
22626 ac_status=$?
22627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22628 (exit $ac_status); }; }; then
22629 echo "$as_me:$LINENO: result: yes" >&5
22630echo "${ECHO_T}yes" >&6
22631else
22632 echo "$as_me: failed program was:" >&5
22633sed 's/^/| /' conftest.$ac_ext >&5
22634
22635echo "$as_me:$LINENO: result: no" >&5
22636echo "${ECHO_T}no" >&6
f56c22b4 22637 if test "$wxUSE_STL" = "yes"; then
4b9918c5
MW
22638 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
22639echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
22640 { (exit 1); exit 1; }; }
22641 elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
22642 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
22643echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
a848cd7e 22644 { (exit 1); exit 1; }; }
f56c22b4
MW
22645 else
22646 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
22647echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
22648 wxUSE_STD_STRING=no
22649 fi
22650
0a08f02a 22651
a848cd7e 22652fi
ac1cb8d3 22653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 22654
0a08f02a
MB
22655fi
22656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22657
22658 ac_ext=c
22659ac_cpp='$CPP $CPPFLAGS'
22660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
f56c22b4
MW
22662ac_compiler_gnu=$ac_cv_c_compiler_gnu
22663
22664fi
22665
22666if test "$wxUSE_STD_IOSTREAM" = "yes"; then
22667 ac_ext=cc
22668ac_cpp='$CXXCPP $CPPFLAGS'
22669ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22670ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22671ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22672
22673
22674 echo "$as_me:$LINENO: checking for std::istream" >&5
22675echo $ECHO_N "checking for std::istream... $ECHO_C" >&6
22676if test "${ac_cv_type_std__istream+set}" = set; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
22678else
22679 cat >conftest.$ac_ext <<_ACEOF
22680/* confdefs.h. */
22681_ACEOF
22682cat confdefs.h >>conftest.$ac_ext
22683cat >>conftest.$ac_ext <<_ACEOF
22684/* end confdefs.h. */
22685#include <iostream>
22686
22687int
22688main ()
22689{
22690if ((std::istream *) 0)
22691 return 0;
22692if (sizeof (std::istream))
22693 return 0;
22694 ;
22695 return 0;
22696}
22697_ACEOF
22698rm -f conftest.$ac_objext
22699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22700 (eval $ac_compile) 2>conftest.er1
22701 ac_status=$?
22702 grep -v '^ *+' conftest.er1 >conftest.err
22703 rm -f conftest.er1
22704 cat conftest.err >&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } &&
5ff751d6 22707 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709 (eval $ac_try) 2>&5
22710 ac_status=$?
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; } &&
22713 { ac_try='test -s conftest.$ac_objext'
22714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22715 (eval $ac_try) 2>&5
22716 ac_status=$?
22717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22718 (exit $ac_status); }; }; then
22719 ac_cv_type_std__istream=yes
22720else
22721 echo "$as_me: failed program was:" >&5
22722sed 's/^/| /' conftest.$ac_ext >&5
22723
22724ac_cv_type_std__istream=no
22725fi
22726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22727fi
22728echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
22729echo "${ECHO_T}$ac_cv_type_std__istream" >&6
22730if test $ac_cv_type_std__istream = yes; then
22731
22732cat >>confdefs.h <<_ACEOF
22733#define HAVE_STD__ISTREAM 1
22734_ACEOF
22735
22736
22737else
22738 wxUSE_STD_IOSTREAM=no
22739fi
22740echo "$as_me:$LINENO: checking for std::ostream" >&5
22741echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6
22742if test "${ac_cv_type_std__ostream+set}" = set; then
22743 echo $ECHO_N "(cached) $ECHO_C" >&6
22744else
22745 cat >conftest.$ac_ext <<_ACEOF
22746/* confdefs.h. */
22747_ACEOF
22748cat confdefs.h >>conftest.$ac_ext
22749cat >>conftest.$ac_ext <<_ACEOF
22750/* end confdefs.h. */
22751#include <iostream>
22752
22753int
22754main ()
22755{
22756if ((std::ostream *) 0)
22757 return 0;
22758if (sizeof (std::ostream))
22759 return 0;
22760 ;
22761 return 0;
22762}
22763_ACEOF
22764rm -f conftest.$ac_objext
22765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22766 (eval $ac_compile) 2>conftest.er1
22767 ac_status=$?
22768 grep -v '^ *+' conftest.er1 >conftest.err
22769 rm -f conftest.er1
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } &&
5ff751d6 22773 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f56c22b4
MW
22774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22775 (eval $ac_try) 2>&5
22776 ac_status=$?
22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22778 (exit $ac_status); }; } &&
22779 { ac_try='test -s conftest.$ac_objext'
22780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22781 (eval $ac_try) 2>&5
22782 ac_status=$?
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); }; }; then
22785 ac_cv_type_std__ostream=yes
22786else
22787 echo "$as_me: failed program was:" >&5
22788sed 's/^/| /' conftest.$ac_ext >&5
22789
22790ac_cv_type_std__ostream=no
22791fi
22792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22793fi
22794echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
22795echo "${ECHO_T}$ac_cv_type_std__ostream" >&6
22796if test $ac_cv_type_std__ostream = yes; then
22797
22798cat >>confdefs.h <<_ACEOF
22799#define HAVE_STD__OSTREAM 1
22800_ACEOF
22801
22802
22803else
22804 wxUSE_STD_IOSTREAM=no
22805fi
22806
22807
22808 if test "$wxUSE_STD_IOSTREAM" != "yes"; then
4b9918c5
MW
22809 if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
22810 { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
22811echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
22812 { (exit 1); exit 1; }; }
22813 else
22814 { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
f56c22b4 22815echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
4b9918c5 22816 fi
f56c22b4
MW
22817 fi
22818
22819 ac_ext=c
22820ac_cpp='$CPP $CPPFLAGS'
22821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
0a08f02a
MB
22823ac_compiler_gnu=$ac_cv_c_compiler_gnu
22824
22825fi
22826
22827if test "$wxUSE_STL" = "yes"; then
22828 ac_ext=cc
22829ac_cpp='$CXXCPP $CPPFLAGS'
22830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22833
22834
22835 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
22836echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
a848cd7e
SC
22837 cat >conftest.$ac_ext <<_ACEOF
22838/* confdefs.h. */
22839_ACEOF
22840cat confdefs.h >>conftest.$ac_ext
22841cat >>conftest.$ac_ext <<_ACEOF
22842/* end confdefs.h. */
22843#include <string>
0a08f02a
MB
22844 #include <functional>
22845 #include <algorithm>
22846 #include <vector>
22847 #include <list>
a848cd7e
SC
22848int
22849main ()
22850{
0a08f02a
MB
22851std::vector<int> moo;
22852 std::list<int> foo;
22853 std::vector<int>::iterator it =
22854 std::find_if(moo.begin(), moo.end(),
22855 std::bind2nd(std::less<int>(), 3));
a848cd7e
SC
22856 ;
22857 return 0;
22858}
22859_ACEOF
22860rm -f conftest.$ac_objext
22861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22862 (eval $ac_compile) 2>conftest.er1
a848cd7e 22863 ac_status=$?
ac1cb8d3
VS
22864 grep -v '^ *+' conftest.er1 >conftest.err
22865 rm -f conftest.er1
22866 cat conftest.err >&5
a848cd7e
SC
22867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868 (exit $ac_status); } &&
5ff751d6 22869 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871 (eval $ac_try) 2>&5
22872 ac_status=$?
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); }; } &&
22875 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877 (eval $ac_try) 2>&5
22878 ac_status=$?
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); }; }; then
22881 echo "$as_me:$LINENO: result: yes" >&5
22882echo "${ECHO_T}yes" >&6
a848cd7e
SC
22883else
22884 echo "$as_me: failed program was:" >&5
22885sed 's/^/| /' conftest.$ac_ext >&5
22886
22887echo "$as_me:$LINENO: result: no" >&5
22888echo "${ECHO_T}no" >&6
0a08f02a
MB
22889 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
22890echo "$as_me: error: Basic STL functionality missing" >&2;}
22891 { (exit 1); exit 1; }; }
a848cd7e 22892fi
ac1cb8d3 22893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
22894
22895 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
22896echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
22897 cat >conftest.$ac_ext <<_ACEOF
22898/* confdefs.h. */
22899_ACEOF
22900cat confdefs.h >>conftest.$ac_ext
22901cat >>conftest.$ac_ext <<_ACEOF
22902/* end confdefs.h. */
22903#include <string>
22904int
22905main ()
22906{
22907std::string foo, bar;
22908 foo.compare(bar);
22909 foo.compare(1, 1, bar);
22910 foo.compare(1, 1, bar, 1, 1);
22911 foo.compare("");
22912 foo.compare(1, 1, "");
22913 foo.compare(1, 1, "", 2);
22914 ;
22915 return 0;
22916}
22917_ACEOF
22918rm -f conftest.$ac_objext
22919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22920 (eval $ac_compile) 2>conftest.er1
a848cd7e 22921 ac_status=$?
ac1cb8d3
VS
22922 grep -v '^ *+' conftest.er1 >conftest.err
22923 rm -f conftest.er1
22924 cat conftest.err >&5
a848cd7e
SC
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } &&
5ff751d6 22927 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929 (eval $ac_try) 2>&5
22930 ac_status=$?
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; } &&
22933 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
22934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22935 (eval $ac_try) 2>&5
22936 ac_status=$?
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); }; }; then
22939 echo "$as_me:$LINENO: result: yes" >&5
22940echo "${ECHO_T}yes" >&6
22941 cat >>confdefs.h <<\_ACEOF
22942#define HAVE_STD_STRING_COMPARE 1
22943_ACEOF
22944
22945else
22946 echo "$as_me: failed program was:" >&5
22947sed 's/^/| /' conftest.$ac_ext >&5
22948
22949echo "$as_me:$LINENO: result: no" >&5
22950echo "${ECHO_T}no" >&6
22951fi
ac1cb8d3 22952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
22953
22954 if test "${ac_cv_header_hash_map+set}" = set; then
22955 echo "$as_me:$LINENO: checking for hash_map" >&5
22956echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
22957if test "${ac_cv_header_hash_map+set}" = set; then
22958 echo $ECHO_N "(cached) $ECHO_C" >&6
22959fi
22960echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
22961echo "${ECHO_T}$ac_cv_header_hash_map" >&6
22962else
22963 # Is the header compilable?
22964echo "$as_me:$LINENO: checking hash_map usability" >&5
22965echo $ECHO_N "checking hash_map usability... $ECHO_C" >&6
22966cat >conftest.$ac_ext <<_ACEOF
22967/* confdefs.h. */
22968_ACEOF
22969cat confdefs.h >>conftest.$ac_ext
22970cat >>conftest.$ac_ext <<_ACEOF
22971/* end confdefs.h. */
22972$ac_includes_default
22973#include <hash_map>
22974_ACEOF
22975rm -f conftest.$ac_objext
22976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 22977 (eval $ac_compile) 2>conftest.er1
bdcade0a 22978 ac_status=$?
ac1cb8d3
VS
22979 grep -v '^ *+' conftest.er1 >conftest.err
22980 rm -f conftest.er1
22981 cat conftest.err >&5
bdcade0a
MB
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); } &&
5ff751d6 22984 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
22985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22986 (eval $ac_try) 2>&5
22987 ac_status=$?
22988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989 (exit $ac_status); }; } &&
22990 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
22991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22992 (eval $ac_try) 2>&5
22993 ac_status=$?
22994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995 (exit $ac_status); }; }; then
22996 ac_header_compiler=yes
22997else
22998 echo "$as_me: failed program was:" >&5
22999sed 's/^/| /' conftest.$ac_ext >&5
23000
23001ac_header_compiler=no
23002fi
ac1cb8d3 23003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23004echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23005echo "${ECHO_T}$ac_header_compiler" >&6
23006
23007# Is the header present?
23008echo "$as_me:$LINENO: checking hash_map presence" >&5
23009echo $ECHO_N "checking hash_map presence... $ECHO_C" >&6
23010cat >conftest.$ac_ext <<_ACEOF
23011/* confdefs.h. */
23012_ACEOF
23013cat confdefs.h >>conftest.$ac_ext
23014cat >>conftest.$ac_ext <<_ACEOF
23015/* end confdefs.h. */
23016#include <hash_map>
23017_ACEOF
23018if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23020 ac_status=$?
23021 grep -v '^ *+' conftest.er1 >conftest.err
23022 rm -f conftest.er1
23023 cat conftest.err >&5
23024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23025 (exit $ac_status); } >/dev/null; then
23026 if test -s conftest.err; then
23027 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23028 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23029 else
23030 ac_cpp_err=
23031 fi
23032else
23033 ac_cpp_err=yes
23034fi
23035if test -z "$ac_cpp_err"; then
23036 ac_header_preproc=yes
23037else
23038 echo "$as_me: failed program was:" >&5
23039sed 's/^/| /' conftest.$ac_ext >&5
23040
23041 ac_header_preproc=no
23042fi
23043rm -f conftest.err conftest.$ac_ext
23044echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23045echo "${ECHO_T}$ac_header_preproc" >&6
23046
23047# So? What about this header?
ac1cb8d3
VS
23048case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23049 yes:no: )
bdcade0a
MB
23050 { echo "$as_me:$LINENO: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23051echo "$as_me: WARNING: hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23052 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the compiler's result" >&5
23053echo "$as_me: WARNING: hash_map: proceeding with the compiler's result" >&2;}
23054 ac_header_preproc=yes
bdcade0a 23055 ;;
ac1cb8d3 23056 no:yes:* )
bdcade0a
MB
23057 { echo "$as_me:$LINENO: WARNING: hash_map: present but cannot be compiled" >&5
23058echo "$as_me: WARNING: hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23059 { echo "$as_me:$LINENO: WARNING: hash_map: check for missing prerequisite headers?" >&5
23060echo "$as_me: WARNING: hash_map: check for missing prerequisite headers?" >&2;}
23061 { echo "$as_me:$LINENO: WARNING: hash_map: see the Autoconf documentation" >&5
23062echo "$as_me: WARNING: hash_map: see the Autoconf documentation" >&2;}
23063 { echo "$as_me:$LINENO: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&5
23064echo "$as_me: WARNING: hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23065 { echo "$as_me:$LINENO: WARNING: hash_map: proceeding with the preprocessor's result" >&5
23066echo "$as_me: WARNING: hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23067 { echo "$as_me:$LINENO: WARNING: hash_map: in the future, the compiler will take precedence" >&5
23068echo "$as_me: WARNING: hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23069 (
23070 cat <<\_ASBOX
ac1cb8d3
VS
23071## ----------------------------------------- ##
23072## Report this to wx-dev@lists.wxwidgets.org ##
23073## ----------------------------------------- ##
bdcade0a
MB
23074_ASBOX
23075 ) |
23076 sed "s/^/$as_me: WARNING: /" >&2
23077 ;;
23078esac
23079echo "$as_me:$LINENO: checking for hash_map" >&5
23080echo $ECHO_N "checking for hash_map... $ECHO_C" >&6
23081if test "${ac_cv_header_hash_map+set}" = set; then
23082 echo $ECHO_N "(cached) $ECHO_C" >&6
23083else
23084 ac_cv_header_hash_map=$ac_header_preproc
23085fi
23086echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
23087echo "${ECHO_T}$ac_cv_header_hash_map" >&6
23088
23089fi
23090if test $ac_cv_header_hash_map = yes; then
23091 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23092echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23093 cat >conftest.$ac_ext <<_ACEOF
23094/* confdefs.h. */
23095_ACEOF
23096cat confdefs.h >>conftest.$ac_ext
23097cat >>conftest.$ac_ext <<_ACEOF
23098/* end confdefs.h. */
23099#include <hash_map>
23100 #include <hash_set>
23101int
23102main ()
23103{
23104std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
23105 std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
23106 ;
23107 return 0;
23108}
23109_ACEOF
23110rm -f conftest.$ac_objext
23111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23112 (eval $ac_compile) 2>conftest.er1
bdcade0a 23113 ac_status=$?
ac1cb8d3
VS
23114 grep -v '^ *+' conftest.er1 >conftest.err
23115 rm -f conftest.er1
23116 cat conftest.err >&5
bdcade0a
MB
23117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23118 (exit $ac_status); } &&
5ff751d6 23119 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121 (eval $ac_try) 2>&5
23122 ac_status=$?
23123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124 (exit $ac_status); }; } &&
23125 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23127 (eval $ac_try) 2>&5
23128 ac_status=$?
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); }; }; then
23131 echo "$as_me:$LINENO: result: yes" >&5
23132echo "${ECHO_T}yes" >&6
23133 cat >>confdefs.h <<\_ACEOF
23134#define HAVE_HASH_MAP 1
23135_ACEOF
23136
23137 cat >>confdefs.h <<\_ACEOF
23138#define HAVE_STD_HASH_MAP 1
23139_ACEOF
23140
23141else
23142 echo "$as_me: failed program was:" >&5
23143sed 's/^/| /' conftest.$ac_ext >&5
23144
23145echo "$as_me:$LINENO: result: no" >&5
23146echo "${ECHO_T}no" >&6
23147fi
ac1cb8d3 23148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23149
23150fi
23151
23152
23153
23154 if test "${ac_cv_header_ext_hash_map+set}" = set; then
23155 echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23156echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23157if test "${ac_cv_header_ext_hash_map+set}" = set; then
23158 echo $ECHO_N "(cached) $ECHO_C" >&6
23159fi
23160echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23161echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23162else
23163 # Is the header compilable?
23164echo "$as_me:$LINENO: checking ext/hash_map usability" >&5
23165echo $ECHO_N "checking ext/hash_map usability... $ECHO_C" >&6
23166cat >conftest.$ac_ext <<_ACEOF
23167/* confdefs.h. */
23168_ACEOF
23169cat confdefs.h >>conftest.$ac_ext
23170cat >>conftest.$ac_ext <<_ACEOF
23171/* end confdefs.h. */
23172$ac_includes_default
23173#include <ext/hash_map>
23174_ACEOF
23175rm -f conftest.$ac_objext
23176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23177 (eval $ac_compile) 2>conftest.er1
bdcade0a 23178 ac_status=$?
ac1cb8d3
VS
23179 grep -v '^ *+' conftest.er1 >conftest.err
23180 rm -f conftest.er1
23181 cat conftest.err >&5
bdcade0a
MB
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); } &&
5ff751d6 23184 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186 (eval $ac_try) 2>&5
23187 ac_status=$?
23188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189 (exit $ac_status); }; } &&
23190 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192 (eval $ac_try) 2>&5
23193 ac_status=$?
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); }; }; then
23196 ac_header_compiler=yes
23197else
23198 echo "$as_me: failed program was:" >&5
23199sed 's/^/| /' conftest.$ac_ext >&5
23200
23201ac_header_compiler=no
23202fi
ac1cb8d3 23203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23204echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23205echo "${ECHO_T}$ac_header_compiler" >&6
23206
23207# Is the header present?
23208echo "$as_me:$LINENO: checking ext/hash_map presence" >&5
23209echo $ECHO_N "checking ext/hash_map presence... $ECHO_C" >&6
23210cat >conftest.$ac_ext <<_ACEOF
23211/* confdefs.h. */
23212_ACEOF
23213cat confdefs.h >>conftest.$ac_ext
23214cat >>conftest.$ac_ext <<_ACEOF
23215/* end confdefs.h. */
23216#include <ext/hash_map>
23217_ACEOF
23218if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23219 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23220 ac_status=$?
23221 grep -v '^ *+' conftest.er1 >conftest.err
23222 rm -f conftest.er1
23223 cat conftest.err >&5
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); } >/dev/null; then
23226 if test -s conftest.err; then
23227 ac_cpp_err=$ac_cxx_preproc_warn_flag
ac1cb8d3 23228 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
bdcade0a
MB
23229 else
23230 ac_cpp_err=
23231 fi
23232else
23233 ac_cpp_err=yes
23234fi
23235if test -z "$ac_cpp_err"; then
23236 ac_header_preproc=yes
23237else
23238 echo "$as_me: failed program was:" >&5
23239sed 's/^/| /' conftest.$ac_ext >&5
23240
23241 ac_header_preproc=no
23242fi
23243rm -f conftest.err conftest.$ac_ext
23244echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23245echo "${ECHO_T}$ac_header_preproc" >&6
23246
23247# So? What about this header?
ac1cb8d3
VS
23248case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23249 yes:no: )
bdcade0a
MB
23250 { echo "$as_me:$LINENO: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&5
23251echo "$as_me: WARNING: ext/hash_map: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23252 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the compiler's result" >&5
23253echo "$as_me: WARNING: ext/hash_map: proceeding with the compiler's result" >&2;}
23254 ac_header_preproc=yes
bdcade0a 23255 ;;
ac1cb8d3 23256 no:yes:* )
bdcade0a
MB
23257 { echo "$as_me:$LINENO: WARNING: ext/hash_map: present but cannot be compiled" >&5
23258echo "$as_me: WARNING: ext/hash_map: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23259 { echo "$as_me:$LINENO: WARNING: ext/hash_map: check for missing prerequisite headers?" >&5
23260echo "$as_me: WARNING: ext/hash_map: check for missing prerequisite headers?" >&2;}
23261 { echo "$as_me:$LINENO: WARNING: ext/hash_map: see the Autoconf documentation" >&5
23262echo "$as_me: WARNING: ext/hash_map: see the Autoconf documentation" >&2;}
23263 { echo "$as_me:$LINENO: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&5
23264echo "$as_me: WARNING: ext/hash_map: section \"Present But Cannot Be Compiled\"" >&2;}
bdcade0a
MB
23265 { echo "$as_me:$LINENO: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&5
23266echo "$as_me: WARNING: ext/hash_map: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23267 { echo "$as_me:$LINENO: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&5
23268echo "$as_me: WARNING: ext/hash_map: in the future, the compiler will take precedence" >&2;}
bdcade0a
MB
23269 (
23270 cat <<\_ASBOX
ac1cb8d3
VS
23271## ----------------------------------------- ##
23272## Report this to wx-dev@lists.wxwidgets.org ##
23273## ----------------------------------------- ##
bdcade0a
MB
23274_ASBOX
23275 ) |
23276 sed "s/^/$as_me: WARNING: /" >&2
23277 ;;
23278esac
23279echo "$as_me:$LINENO: checking for ext/hash_map" >&5
23280echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6
23281if test "${ac_cv_header_ext_hash_map+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23283else
23284 ac_cv_header_ext_hash_map=$ac_header_preproc
23285fi
23286echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
23287echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6
23288
23289fi
23290if test $ac_cv_header_ext_hash_map = yes; then
23291 echo "$as_me:$LINENO: checking for hash_map and hash_set" >&5
23292echo $ECHO_N "checking for hash_map and hash_set... $ECHO_C" >&6
23293 cat >conftest.$ac_ext <<_ACEOF
23294/* confdefs.h. */
23295_ACEOF
23296cat confdefs.h >>conftest.$ac_ext
23297cat >>conftest.$ac_ext <<_ACEOF
23298/* end confdefs.h. */
23299#include <ext/hash_map>
23300 #include <ext/hash_set>
23301int
23302main ()
23303{
23304__gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
23305 __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
23306 ;
23307 return 0;
23308}
23309_ACEOF
23310rm -f conftest.$ac_objext
23311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23312 (eval $ac_compile) 2>conftest.er1
bdcade0a 23313 ac_status=$?
ac1cb8d3
VS
23314 grep -v '^ *+' conftest.er1 >conftest.err
23315 rm -f conftest.er1
23316 cat conftest.err >&5
bdcade0a
MB
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); } &&
5ff751d6 23319 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23321 (eval $ac_try) 2>&5
23322 ac_status=$?
23323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324 (exit $ac_status); }; } &&
23325 { ac_try='test -s conftest.$ac_objext'
bdcade0a
MB
23326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327 (eval $ac_try) 2>&5
23328 ac_status=$?
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); }; }; then
23331 echo "$as_me:$LINENO: result: yes" >&5
23332echo "${ECHO_T}yes" >&6
23333 cat >>confdefs.h <<\_ACEOF
23334#define HAVE_EXT_HASH_MAP 1
23335_ACEOF
23336
23337 cat >>confdefs.h <<\_ACEOF
23338#define HAVE_GNU_CXX_HASH_MAP 1
23339_ACEOF
23340
23341else
23342 echo "$as_me: failed program was:" >&5
23343sed 's/^/| /' conftest.$ac_ext >&5
23344
23345echo "$as_me:$LINENO: result: no" >&5
23346echo "${ECHO_T}no" >&6
23347fi
ac1cb8d3 23348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bdcade0a
MB
23349
23350fi
23351
23352
a848cd7e
SC
23353
23354 ac_ext=c
23355ac_cpp='$CPP $CPPFLAGS'
23356ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23357ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23358ac_compiler_gnu=$ac_cv_c_compiler_gnu
23359
23360fi
23361
23362
23363SEARCH_INCLUDE="\
23364 /usr/local/include \
23365 \
23366 /usr/Motif-2.1/include \
23367 /usr/Motif-1.2/include \
23368 /usr/include/Motif1.2 \
a848cd7e
SC
23369 \
23370 /usr/dt/include \
23371 /usr/openwin/include \
23372 \
23373 /usr/include/Xm \
23374 \
23375 /usr/X11R6/include \
23376 /usr/X11R6.4/include \
23377 /usr/X11R5/include \
23378 /usr/X11R4/include \
23379 \
23380 /usr/include/X11R6 \
23381 /usr/include/X11R5 \
23382 /usr/include/X11R4 \
23383 \
23384 /usr/local/X11R6/include \
23385 /usr/local/X11R5/include \
23386 /usr/local/X11R4/include \
23387 \
23388 /usr/local/include/X11R6 \
23389 /usr/local/include/X11R5 \
23390 /usr/local/include/X11R4 \
23391 \
23392 /usr/X11/include \
23393 /usr/include/X11 \
23394 /usr/local/X11/include \
23395 /usr/local/include/X11 \
23396 \
a848cd7e 23397 /usr/XFree86/include/X11 \
e051b34e
MW
23398 /usr/pkg/include \
23399 \
a848cd7e
SC
23400 /usr/openwin/share/include"
23401
6f9cf1e6 23402echo "$as_me:$LINENO: checking for libraries directory" >&5
0ad5d837 23403echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6
6f9cf1e6
MW
23404
23405case "${host}" in
23406 *-*-irix6* )
23407 if test "${wx_cv_std_libpath+set}" = set; then
0ad5d837
VZ
23408 echo $ECHO_N "(cached) $ECHO_C" >&6
23409else
23410
c687b303
VZ
23411 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
23412 for e in a so sl dylib dll.a; do
23413 libc="$d/libc.$e"
23414 if test -f $libc; then
23415 save_LIBS="$LIBS"
23416 LIBS="$libc"
23417 cat >conftest.$ac_ext <<_ACEOF
0ad5d837
VZ
23418int main() { return 0; }
23419_ACEOF
23420rm -f conftest.$ac_objext conftest$ac_exeext
23421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23422 (eval $ac_link) 2>conftest.er1
23423 ac_status=$?
23424 grep -v '^ *+' conftest.er1 >conftest.err
23425 rm -f conftest.er1
23426 cat conftest.err >&5
23427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23428 (exit $ac_status); } &&
5ff751d6 23429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
0ad5d837
VZ
23430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23431 (eval $ac_try) 2>&5
23432 ac_status=$?
23433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434 (exit $ac_status); }; } &&
23435 { ac_try='test -s conftest$ac_exeext'
23436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23437 (eval $ac_try) 2>&5
23438 ac_status=$?
23439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440 (exit $ac_status); }; }; then
23441 wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
23442else
23443 echo "$as_me: failed program was:" >&5
23444sed 's/^/| /' conftest.$ac_ext >&5
23445
23446fi
23447rm -f conftest.err conftest.$ac_objext \
23448 conftest$ac_exeext conftest.$ac_ext
c687b303
VZ
23449 LIBS="$save_LIBS"
23450 if test "x$wx_cv_std_libpath" != "x"; then
23451 break 2
23452 fi
23453 fi
23454 done
23455 done
23456 if test "x$wx_cv_std_libpath" = "x"; then
23457 wx_cv_std_libpath="lib"
0ad5d837 23458 fi
0ad5d837
VZ
23459
23460
23461fi
6f9cf1e6
MW
23462
23463 ;;
23464
23465 *-*-solaris2* )
23466 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
23467 wx_cv_std_libpath="lib/64"
23468 else
23469 wx_cv_std_libpath="lib"
23470 fi
23471 ;;
23472
23473 *-*-linux* )
23474 if test "$ac_cv_sizeof_void_p" = 8 -a \
23475 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
23476 wx_cv_std_libpath="lib64"
23477 else
23478 wx_cv_std_libpath="lib"
23479 fi
c687b303
VZ
23480 ;;
23481
23482 *)
23483 wx_cv_std_libpath="lib";
23484 ;;
23485esac
0ad5d837 23486
6f9cf1e6
MW
23487echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
23488echo "${ECHO_T}$wx_cv_std_libpath" >&6
23489
23490SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
a848cd7e 23491
3eca31dc
MW
23492if test "$build" != "$host" -a "$GCC" = yes; then
23493 if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
23494 cross_root=`dirname $cross_root`
23495 cross_root=`dirname $cross_root`
23496
23497 SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
23498 SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
5c60e845 23499 SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
3eca31dc
MW
23500
23501 if test -z "$PKG_CONFIG_PATH"; then
23502 PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
23503 export PKG_CONFIG_PATH
23504 fi
23505
23506 if test -z "$x_includes" -o "$x_includes" = NONE; then
23507
23508ac_find_includes=
23509for ac_dir in $SEARCH_INCLUDE /usr/include;
23510 do
23511 if test -f "$ac_dir/X11/Intrinsic.h"; then
23512 ac_find_includes=$ac_dir
23513 break
23514 fi
23515 done
23516
23517 x_includes=$ac_find_includes
23518 fi
23519 if test -z "$x_libraries" -o "$x_libraries" = NONE; then
23520
0ad5d837
VZ
23521 ac_find_libraries=
23522 for ac_dir in $SEARCH_LIB;
3eca31dc
MW
23523 do
23524 for ac_extension in a so sl dylib dll.a; do
23525 if test -f "$ac_dir/libXt.$ac_extension"; then
23526 ac_find_libraries=$ac_dir
23527 break 2
23528 fi
23529 done
23530 done
23531
23532 x_libraries=$ac_find_libraries
23533 fi
23534 fi
23535fi
23536
a848cd7e
SC
23537
23538cat >confcache <<\_ACEOF
23539# This file is a shell script that caches the results of configure
23540# tests run on this system so they can be shared between configure
23541# scripts and configure runs, see configure's option --config-cache.
23542# It is not useful on other systems. If it contains results you don't
23543# want to keep, you may remove or edit it.
23544#
23545# config.status only pays attention to the cache file if you give it
23546# the --recheck option to rerun configure.
23547#
23548# `ac_cv_env_foo' variables (set or unset) will be overridden when
23549# loading this file, other *unset* `ac_cv_foo' will be assigned the
23550# following values.
23551
23552_ACEOF
23553
23554# The following way of writing the cache mishandles newlines in values,
23555# but we know of no workaround that is simple, portable, and efficient.
23556# So, don't put newlines in cache variables' values.
23557# Ultrix sh set writes to stderr and can't be redirected directly,
23558# and sets the high bit in the cache file unless we assign to the vars.
23559{
23560 (set) 2>&1 |
23561 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23562 *ac_space=\ *)
23563 # `set' does not quote correctly, so add quotes (double-quote
23564 # substitution turns \\\\ into \\, and sed turns \\ into \).
23565 sed -n \
ac1cb8d3
VS
23566 "s/'/'\\\\''/g;
23567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
23568 ;;
23569 *)
23570 # `set' quotes correctly as required by POSIX, so do not add quotes.
23571 sed -n \
ac1cb8d3 23572 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
23573 ;;
23574 esac;
23575} |
23576 sed '
23577 t clear
23578 : clear
23579 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23580 t end
23581 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23582 : end' >>confcache
23583if diff $cache_file confcache >/dev/null 2>&1; then :; else
23584 if test -w $cache_file; then
23585 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23586 cat confcache >$cache_file
23587 else
23588 echo "not updating unwritable cache $cache_file"
23589 fi
23590fi
23591rm -f confcache
23592
23593if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
23594 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
23595echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
23596if test "${wx_cv_lib_glibc21+set}" = set; then
23597 echo $ECHO_N "(cached) $ECHO_C" >&6
23598else
23599
23600 cat >conftest.$ac_ext <<_ACEOF
23601/* confdefs.h. */
23602_ACEOF
23603cat confdefs.h >>conftest.$ac_ext
23604cat >>conftest.$ac_ext <<_ACEOF
23605/* end confdefs.h. */
23606#include <features.h>
23607int
23608main ()
23609{
23610
23611 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
04e525a0 23612 not glibc 2.1
a848cd7e
SC
23613 #endif
23614
23615 ;
23616 return 0;
23617}
23618_ACEOF
23619rm -f conftest.$ac_objext
23620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23621 (eval $ac_compile) 2>conftest.er1
a848cd7e 23622 ac_status=$?
ac1cb8d3
VS
23623 grep -v '^ *+' conftest.er1 >conftest.err
23624 rm -f conftest.er1
23625 cat conftest.err >&5
a848cd7e
SC
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); } &&
5ff751d6 23628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23631 ac_status=$?
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; } &&
23634 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636 (eval $ac_try) 2>&5
23637 ac_status=$?
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); }; }; then
23640
23641 wx_cv_lib_glibc21=yes
23642
23643else
23644 echo "$as_me: failed program was:" >&5
23645sed 's/^/| /' conftest.$ac_ext >&5
23646
23647
23648 wx_cv_lib_glibc21=no
23649
23650
23651fi
ac1cb8d3 23652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23653
23654fi
23655echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
23656echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
23657 if test "$wx_cv_lib_glibc21" = "yes"; then
23658 cat >>confdefs.h <<\_ACEOF
23659#define wxHAVE_GLIBC2 1
23660_ACEOF
23661
23662 fi
23663fi
23664
23665if test "x$wx_cv_lib_glibc21" = "xyes"; then
23666 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
23667 cat >>confdefs.h <<\_ACEOF
23668#define _GNU_SOURCE 1
23669_ACEOF
23670
23671 fi
23672fi
23673
23674
23675
23676if test "$wxUSE_REGEX" != "no"; then
23677 cat >>confdefs.h <<\_ACEOF
23678#define wxUSE_REGEX 1
23679_ACEOF
23680
23681
23682 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
23683 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
23684echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
23685 wxUSE_REGEX=builtin
23686 fi
23687
23688 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
23689 if test "${ac_cv_header_regex_h+set}" = set; then
23690 echo "$as_me:$LINENO: checking for regex.h" >&5
23691echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23692if test "${ac_cv_header_regex_h+set}" = set; then
23693 echo $ECHO_N "(cached) $ECHO_C" >&6
23694fi
23695echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23696echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23697else
23698 # Is the header compilable?
23699echo "$as_me:$LINENO: checking regex.h usability" >&5
23700echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
23701cat >conftest.$ac_ext <<_ACEOF
23702/* confdefs.h. */
23703_ACEOF
23704cat confdefs.h >>conftest.$ac_ext
23705cat >>conftest.$ac_ext <<_ACEOF
23706/* end confdefs.h. */
23707$ac_includes_default
23708#include <regex.h>
23709_ACEOF
23710rm -f conftest.$ac_objext
23711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 23712 (eval $ac_compile) 2>conftest.er1
a848cd7e 23713 ac_status=$?
ac1cb8d3
VS
23714 grep -v '^ *+' conftest.er1 >conftest.err
23715 rm -f conftest.er1
23716 cat conftest.err >&5
a848cd7e
SC
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); } &&
5ff751d6 23719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23721 (eval $ac_try) 2>&5
23722 ac_status=$?
23723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23724 (exit $ac_status); }; } &&
23725 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
23726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23727 (eval $ac_try) 2>&5
23728 ac_status=$?
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; }; then
23731 ac_header_compiler=yes
23732else
23733 echo "$as_me: failed program was:" >&5
23734sed 's/^/| /' conftest.$ac_ext >&5
23735
23736ac_header_compiler=no
23737fi
ac1cb8d3 23738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
23739echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23740echo "${ECHO_T}$ac_header_compiler" >&6
23741
23742# Is the header present?
23743echo "$as_me:$LINENO: checking regex.h presence" >&5
23744echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
23745cat >conftest.$ac_ext <<_ACEOF
23746/* confdefs.h. */
23747_ACEOF
23748cat confdefs.h >>conftest.$ac_ext
23749cat >>conftest.$ac_ext <<_ACEOF
23750/* end confdefs.h. */
23751#include <regex.h>
23752_ACEOF
23753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23755 ac_status=$?
23756 grep -v '^ *+' conftest.er1 >conftest.err
23757 rm -f conftest.er1
23758 cat conftest.err >&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); } >/dev/null; then
23761 if test -s conftest.err; then
23762 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 23763 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
23764 else
23765 ac_cpp_err=
23766 fi
23767else
23768 ac_cpp_err=yes
23769fi
23770if test -z "$ac_cpp_err"; then
23771 ac_header_preproc=yes
23772else
23773 echo "$as_me: failed program was:" >&5
23774sed 's/^/| /' conftest.$ac_ext >&5
23775
23776 ac_header_preproc=no
23777fi
23778rm -f conftest.err conftest.$ac_ext
23779echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23780echo "${ECHO_T}$ac_header_preproc" >&6
23781
23782# So? What about this header?
ac1cb8d3
VS
23783case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23784 yes:no: )
a848cd7e
SC
23785 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
23786echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
23787 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
23788echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
23789 ac_header_preproc=yes
a848cd7e 23790 ;;
ac1cb8d3 23791 no:yes:* )
a848cd7e
SC
23792 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
23793echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
23794 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
23795echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
23796 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
23797echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
23798 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
23799echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
23800 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
23801echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
23802 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
23803echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
23804 (
23805 cat <<\_ASBOX
ac1cb8d3
VS
23806## ----------------------------------------- ##
23807## Report this to wx-dev@lists.wxwidgets.org ##
23808## ----------------------------------------- ##
a848cd7e
SC
23809_ASBOX
23810 ) |
23811 sed "s/^/$as_me: WARNING: /" >&2
23812 ;;
23813esac
23814echo "$as_me:$LINENO: checking for regex.h" >&5
23815echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
23816if test "${ac_cv_header_regex_h+set}" = set; then
23817 echo $ECHO_N "(cached) $ECHO_C" >&6
23818else
23819 ac_cv_header_regex_h=$ac_header_preproc
23820fi
23821echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
23822echo "${ECHO_T}$ac_cv_header_regex_h" >&6
23823
23824fi
23825if test $ac_cv_header_regex_h = yes; then
23826
ab0f0edd
MW
23827
23828for ac_func in regcomp re_search
a848cd7e
SC
23829do
23830as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23831echo "$as_me:$LINENO: checking for $ac_func" >&5
23832echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23833if eval "test \"\${$as_ac_var+set}\" = set"; then
23834 echo $ECHO_N "(cached) $ECHO_C" >&6
23835else
23836 cat >conftest.$ac_ext <<_ACEOF
23837/* confdefs.h. */
23838_ACEOF
23839cat confdefs.h >>conftest.$ac_ext
23840cat >>conftest.$ac_ext <<_ACEOF
23841/* end confdefs.h. */
ac1cb8d3
VS
23842/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23843 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23844#define $ac_func innocuous_$ac_func
23845
a848cd7e
SC
23846/* System header to define __stub macros and hopefully few prototypes,
23847 which can conflict with char $ac_func (); below.
23848 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23849 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 23850
a848cd7e
SC
23851#ifdef __STDC__
23852# include <limits.h>
23853#else
23854# include <assert.h>
23855#endif
ac1cb8d3
VS
23856
23857#undef $ac_func
23858
a848cd7e
SC
23859/* Override any gcc2 internal prototype to avoid an error. */
23860#ifdef __cplusplus
23861extern "C"
23862{
23863#endif
23864/* We use char because int might match the return type of a gcc2
23865 builtin and then its argument prototype would still apply. */
23866char $ac_func ();
23867/* The GNU C library defines this for functions which it implements
23868 to always fail with ENOSYS. Some functions are actually named
23869 something starting with __ and the normal name is an alias. */
23870#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23871choke me
23872#else
23873char (*f) () = $ac_func;
23874#endif
23875#ifdef __cplusplus
23876}
23877#endif
23878
23879int
23880main ()
23881{
23882return f != $ac_func;
23883 ;
23884 return 0;
23885}
23886_ACEOF
23887rm -f conftest.$ac_objext conftest$ac_exeext
23888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 23889 (eval $ac_link) 2>conftest.er1
a848cd7e 23890 ac_status=$?
ac1cb8d3
VS
23891 grep -v '^ *+' conftest.er1 >conftest.err
23892 rm -f conftest.er1
23893 cat conftest.err >&5
a848cd7e
SC
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); } &&
5ff751d6 23896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
23897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23898 (eval $ac_try) 2>&5
23899 ac_status=$?
23900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); }; } &&
23902 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
23903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23904 (eval $ac_try) 2>&5
23905 ac_status=$?
23906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23907 (exit $ac_status); }; }; then
23908 eval "$as_ac_var=yes"
23909else
23910 echo "$as_me: failed program was:" >&5
23911sed 's/^/| /' conftest.$ac_ext >&5
23912
23913eval "$as_ac_var=no"
23914fi
ac1cb8d3
VS
23915rm -f conftest.err conftest.$ac_objext \
23916 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
23917fi
23918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23919echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23920if test `eval echo '${'$as_ac_var'}'` = yes; then
23921 cat >>confdefs.h <<_ACEOF
23922#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23923_ACEOF
23924
23925fi
23926done
23927
23928fi
23929
23930
23931
23932 if test "x$ac_cv_func_regcomp" != "xyes"; then
23933 if test "$wxUSE_REGEX" = "sys" ; then
23934 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
23935echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
23936 { (exit 1); exit 1; }; }
23937 else
23938 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
23939echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
23940 wxUSE_REGEX=builtin
23941 fi
23942 else
23943 wxUSE_REGEX=sys
23944 cat >>confdefs.h <<\_ACEOF
23945#define WX_NO_REGEX_ADVANCED 1
23946_ACEOF
23947
23948 fi
23949 fi
23950fi
23951
23952
23953ZLIB_LINK=
23954if test "$wxUSE_ZLIB" != "no" ; then
23955 cat >>confdefs.h <<\_ACEOF
23956#define wxUSE_ZLIB 1
23957_ACEOF
23958
23959
23960 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
23961 if test "$USE_DARWIN" = 1; then
23962 system_zlib_h_ok="yes"
23963 else
23964 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
23965echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
23966if test "${ac_cv_header_zlib_h+set}" = set; then
23967 echo $ECHO_N "(cached) $ECHO_C" >&6
23968else
23969 if test "$cross_compiling" = yes; then
23970 unset ac_cv_header_zlib_h
23971
23972else
23973 cat >conftest.$ac_ext <<_ACEOF
23974/* confdefs.h. */
23975_ACEOF
23976cat confdefs.h >>conftest.$ac_ext
23977cat >>conftest.$ac_ext <<_ACEOF
23978/* end confdefs.h. */
23979
23980 #include <zlib.h>
23981 #include <stdio.h>
23982
23983 int main()
23984 {
23985 FILE *f=fopen("conftestval", "w");
23986 if (!f) exit(1);
23987 fprintf(f, "%s",
23988 ZLIB_VERSION[0] == '1' &&
23989 (ZLIB_VERSION[2] > '1' ||
23990 (ZLIB_VERSION[2] == '1' &&
23991 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
23992 exit(0);
23993 }
23994
23995_ACEOF
23996rm -f conftest$ac_exeext
23997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23998 (eval $ac_link) 2>&5
23999 ac_status=$?
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24003 (eval $ac_try) 2>&5
24004 ac_status=$?
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); }; }; then
24007 ac_cv_header_zlib_h=`cat conftestval`
24008else
24009 echo "$as_me: program exited with status $ac_status" >&5
24010echo "$as_me: failed program was:" >&5
24011sed 's/^/| /' conftest.$ac_ext >&5
24012
24013( exit $ac_status )
24014ac_cv_header_zlib_h=no
24015fi
ac1cb8d3 24016rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24017fi
24018
24019fi
24020echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24021echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24022 if test "${ac_cv_header_zlib_h+set}" = set; then
24023 echo "$as_me:$LINENO: checking for zlib.h" >&5
24024echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24025if test "${ac_cv_header_zlib_h+set}" = set; then
24026 echo $ECHO_N "(cached) $ECHO_C" >&6
24027fi
24028echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24029echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24030else
24031 # Is the header compilable?
24032echo "$as_me:$LINENO: checking zlib.h usability" >&5
24033echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
24034cat >conftest.$ac_ext <<_ACEOF
24035/* confdefs.h. */
24036_ACEOF
24037cat confdefs.h >>conftest.$ac_ext
24038cat >>conftest.$ac_ext <<_ACEOF
24039/* end confdefs.h. */
24040$ac_includes_default
24041#include <zlib.h>
24042_ACEOF
24043rm -f conftest.$ac_objext
24044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24045 (eval $ac_compile) 2>conftest.er1
a848cd7e 24046 ac_status=$?
ac1cb8d3
VS
24047 grep -v '^ *+' conftest.er1 >conftest.err
24048 rm -f conftest.er1
24049 cat conftest.err >&5
a848cd7e
SC
24050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24051 (exit $ac_status); } &&
5ff751d6 24052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24054 (eval $ac_try) 2>&5
24055 ac_status=$?
24056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24057 (exit $ac_status); }; } &&
24058 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24060 (eval $ac_try) 2>&5
24061 ac_status=$?
24062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24063 (exit $ac_status); }; }; then
24064 ac_header_compiler=yes
24065else
24066 echo "$as_me: failed program was:" >&5
24067sed 's/^/| /' conftest.$ac_ext >&5
24068
24069ac_header_compiler=no
24070fi
ac1cb8d3 24071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24072echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24073echo "${ECHO_T}$ac_header_compiler" >&6
24074
24075# Is the header present?
24076echo "$as_me:$LINENO: checking zlib.h presence" >&5
24077echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
24078cat >conftest.$ac_ext <<_ACEOF
24079/* confdefs.h. */
24080_ACEOF
24081cat confdefs.h >>conftest.$ac_ext
24082cat >>conftest.$ac_ext <<_ACEOF
24083/* end confdefs.h. */
24084#include <zlib.h>
24085_ACEOF
24086if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24087 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24088 ac_status=$?
24089 grep -v '^ *+' conftest.er1 >conftest.err
24090 rm -f conftest.er1
24091 cat conftest.err >&5
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); } >/dev/null; then
24094 if test -s conftest.err; then
24095 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24096 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24097 else
24098 ac_cpp_err=
24099 fi
24100else
24101 ac_cpp_err=yes
24102fi
24103if test -z "$ac_cpp_err"; then
24104 ac_header_preproc=yes
24105else
24106 echo "$as_me: failed program was:" >&5
24107sed 's/^/| /' conftest.$ac_ext >&5
24108
24109 ac_header_preproc=no
24110fi
24111rm -f conftest.err conftest.$ac_ext
24112echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24113echo "${ECHO_T}$ac_header_preproc" >&6
24114
24115# So? What about this header?
ac1cb8d3
VS
24116case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24117 yes:no: )
a848cd7e
SC
24118 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24119echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24120 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
24121echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
24122 ac_header_preproc=yes
a848cd7e 24123 ;;
ac1cb8d3 24124 no:yes:* )
a848cd7e
SC
24125 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
24126echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24127 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
24128echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
24129 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
24130echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
24131 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
24132echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24133 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
24134echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24135 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
24136echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24137 (
24138 cat <<\_ASBOX
ac1cb8d3
VS
24139## ----------------------------------------- ##
24140## Report this to wx-dev@lists.wxwidgets.org ##
24141## ----------------------------------------- ##
a848cd7e
SC
24142_ASBOX
24143 ) |
24144 sed "s/^/$as_me: WARNING: /" >&2
24145 ;;
24146esac
24147echo "$as_me:$LINENO: checking for zlib.h" >&5
24148echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
24149if test "${ac_cv_header_zlib_h+set}" = set; then
24150 echo $ECHO_N "(cached) $ECHO_C" >&6
24151else
24152 ac_cv_header_zlib_h=$ac_header_preproc
24153fi
24154echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
24155echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
24156
24157fi
24158
24159
24160
24161 system_zlib_h_ok=$ac_cv_header_zlib_h
24162 fi
24163
24164 if test "$system_zlib_h_ok" = "yes"; then
24165 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
24166echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
24167if test "${ac_cv_lib_z_deflate+set}" = set; then
24168 echo $ECHO_N "(cached) $ECHO_C" >&6
24169else
24170 ac_check_lib_save_LIBS=$LIBS
24171LIBS="-lz $LIBS"
24172cat >conftest.$ac_ext <<_ACEOF
24173/* confdefs.h. */
24174_ACEOF
24175cat confdefs.h >>conftest.$ac_ext
24176cat >>conftest.$ac_ext <<_ACEOF
24177/* end confdefs.h. */
24178
24179/* Override any gcc2 internal prototype to avoid an error. */
24180#ifdef __cplusplus
24181extern "C"
24182#endif
24183/* We use char because int might match the return type of a gcc2
24184 builtin and then its argument prototype would still apply. */
24185char deflate ();
24186int
24187main ()
24188{
24189deflate ();
24190 ;
24191 return 0;
24192}
24193_ACEOF
24194rm -f conftest.$ac_objext conftest$ac_exeext
24195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24196 (eval $ac_link) 2>conftest.er1
a848cd7e 24197 ac_status=$?
ac1cb8d3
VS
24198 grep -v '^ *+' conftest.er1 >conftest.err
24199 rm -f conftest.er1
24200 cat conftest.err >&5
a848cd7e
SC
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); } &&
5ff751d6 24203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24205 (eval $ac_try) 2>&5
24206 ac_status=$?
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); }; } &&
24209 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24211 (eval $ac_try) 2>&5
24212 ac_status=$?
24213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214 (exit $ac_status); }; }; then
24215 ac_cv_lib_z_deflate=yes
24216else
24217 echo "$as_me: failed program was:" >&5
24218sed 's/^/| /' conftest.$ac_ext >&5
24219
24220ac_cv_lib_z_deflate=no
24221fi
ac1cb8d3
VS
24222rm -f conftest.err conftest.$ac_objext \
24223 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24224LIBS=$ac_check_lib_save_LIBS
24225fi
24226echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
24227echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
24228if test $ac_cv_lib_z_deflate = yes; then
24229 ZLIB_LINK=" -lz"
24230fi
24231
24232 fi
24233
24234 if test "x$ZLIB_LINK" = "x" ; then
24235 if test "$wxUSE_ZLIB" = "sys" ; then
24236 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
24237echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
24238 { (exit 1); exit 1; }; }
24239 else
24240 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
24241echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
24242 wxUSE_ZLIB=builtin
24243 fi
24244 else
24245 wxUSE_ZLIB=sys
24246 fi
24247 fi
24248fi
24249
24250
24251PNG_LINK=
24252if test "$wxUSE_LIBPNG" != "no" ; then
24253 cat >>confdefs.h <<\_ACEOF
24254#define wxUSE_LIBPNG 1
24255_ACEOF
24256
24257
24258 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
24259 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
24260echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
24261 wxUSE_LIBPNG=sys
24262 fi
24263
24264 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
24265 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
24266echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
24267 wxUSE_LIBPNG=builtin
24268 fi
24269
24270 if test "$wxUSE_MGL" != 1 ; then
24271 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
24272 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
24273echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
24274if test "${ac_cv_header_png_h+set}" = set; then
24275 echo $ECHO_N "(cached) $ECHO_C" >&6
24276else
24277 if test "$cross_compiling" = yes; then
24278 unset ac_cv_header_png_h
24279
24280else
24281 cat >conftest.$ac_ext <<_ACEOF
24282/* confdefs.h. */
24283_ACEOF
24284cat confdefs.h >>conftest.$ac_ext
24285cat >>conftest.$ac_ext <<_ACEOF
24286/* end confdefs.h. */
24287
24288 #include <png.h>
24289 #include <stdio.h>
24290
24291 int main()
24292 {
24293 FILE *f=fopen("conftestval", "w");
24294 if (!f) exit(1);
24295 fprintf(f, "%s",
24296 PNG_LIBPNG_VER > 90 ? "yes" : "no");
24297 exit(0);
24298 }
24299
24300_ACEOF
24301rm -f conftest$ac_exeext
24302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24303 (eval $ac_link) 2>&5
24304 ac_status=$?
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24308 (eval $ac_try) 2>&5
24309 ac_status=$?
24310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24311 (exit $ac_status); }; }; then
24312 ac_cv_header_png_h=`cat conftestval`
24313else
24314 echo "$as_me: program exited with status $ac_status" >&5
24315echo "$as_me: failed program was:" >&5
24316sed 's/^/| /' conftest.$ac_ext >&5
24317
24318( exit $ac_status )
24319ac_cv_header_png_h=no
24320fi
ac1cb8d3 24321rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24322fi
24323
24324fi
24325echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24326echo "${ECHO_T}$ac_cv_header_png_h" >&6
24327 if test "${ac_cv_header_png_h+set}" = set; then
24328 echo "$as_me:$LINENO: checking for png.h" >&5
24329echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24330if test "${ac_cv_header_png_h+set}" = set; then
24331 echo $ECHO_N "(cached) $ECHO_C" >&6
24332fi
24333echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24334echo "${ECHO_T}$ac_cv_header_png_h" >&6
24335else
24336 # Is the header compilable?
24337echo "$as_me:$LINENO: checking png.h usability" >&5
24338echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
24339cat >conftest.$ac_ext <<_ACEOF
24340/* confdefs.h. */
24341_ACEOF
24342cat confdefs.h >>conftest.$ac_ext
24343cat >>conftest.$ac_ext <<_ACEOF
24344/* end confdefs.h. */
24345$ac_includes_default
24346#include <png.h>
24347_ACEOF
24348rm -f conftest.$ac_objext
24349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24350 (eval $ac_compile) 2>conftest.er1
a848cd7e 24351 ac_status=$?
ac1cb8d3
VS
24352 grep -v '^ *+' conftest.er1 >conftest.err
24353 rm -f conftest.er1
24354 cat conftest.err >&5
a848cd7e
SC
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } &&
5ff751d6 24357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24359 (eval $ac_try) 2>&5
24360 ac_status=$?
24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24362 (exit $ac_status); }; } &&
24363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24365 (eval $ac_try) 2>&5
24366 ac_status=$?
24367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368 (exit $ac_status); }; }; then
24369 ac_header_compiler=yes
24370else
24371 echo "$as_me: failed program was:" >&5
24372sed 's/^/| /' conftest.$ac_ext >&5
24373
24374ac_header_compiler=no
24375fi
ac1cb8d3 24376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24377echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24378echo "${ECHO_T}$ac_header_compiler" >&6
24379
24380# Is the header present?
24381echo "$as_me:$LINENO: checking png.h presence" >&5
24382echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
24383cat >conftest.$ac_ext <<_ACEOF
24384/* confdefs.h. */
24385_ACEOF
24386cat confdefs.h >>conftest.$ac_ext
24387cat >>conftest.$ac_ext <<_ACEOF
24388/* end confdefs.h. */
24389#include <png.h>
24390_ACEOF
24391if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24392 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24393 ac_status=$?
24394 grep -v '^ *+' conftest.er1 >conftest.err
24395 rm -f conftest.er1
24396 cat conftest.err >&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); } >/dev/null; then
24399 if test -s conftest.err; then
24400 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24402 else
24403 ac_cpp_err=
24404 fi
24405else
24406 ac_cpp_err=yes
24407fi
24408if test -z "$ac_cpp_err"; then
24409 ac_header_preproc=yes
24410else
24411 echo "$as_me: failed program was:" >&5
24412sed 's/^/| /' conftest.$ac_ext >&5
24413
24414 ac_header_preproc=no
24415fi
24416rm -f conftest.err conftest.$ac_ext
24417echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24418echo "${ECHO_T}$ac_header_preproc" >&6
24419
24420# So? What about this header?
ac1cb8d3
VS
24421case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24422 yes:no: )
a848cd7e
SC
24423 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
24424echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24425 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
24426echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
24427 ac_header_preproc=yes
a848cd7e 24428 ;;
ac1cb8d3 24429 no:yes:* )
a848cd7e
SC
24430 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
24431echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24432 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
24433echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
24434 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
24435echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
24436 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
24437echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24438 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
24439echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24440 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
24441echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24442 (
24443 cat <<\_ASBOX
ac1cb8d3
VS
24444## ----------------------------------------- ##
24445## Report this to wx-dev@lists.wxwidgets.org ##
24446## ----------------------------------------- ##
a848cd7e
SC
24447_ASBOX
24448 ) |
24449 sed "s/^/$as_me: WARNING: /" >&2
24450 ;;
24451esac
24452echo "$as_me:$LINENO: checking for png.h" >&5
24453echo $ECHO_N "checking for png.h... $ECHO_C" >&6
24454if test "${ac_cv_header_png_h+set}" = set; then
24455 echo $ECHO_N "(cached) $ECHO_C" >&6
24456else
24457 ac_cv_header_png_h=$ac_header_preproc
24458fi
24459echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
24460echo "${ECHO_T}$ac_cv_header_png_h" >&6
24461
24462fi
24463
24464
24465
24466 if test "$ac_cv_header_png_h" = "yes"; then
24467 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
24468echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
24469if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
24470 echo $ECHO_N "(cached) $ECHO_C" >&6
24471else
24472 ac_check_lib_save_LIBS=$LIBS
24473LIBS="-lpng -lz -lm $LIBS"
24474cat >conftest.$ac_ext <<_ACEOF
24475/* confdefs.h. */
24476_ACEOF
24477cat confdefs.h >>conftest.$ac_ext
24478cat >>conftest.$ac_ext <<_ACEOF
24479/* end confdefs.h. */
24480
24481/* Override any gcc2 internal prototype to avoid an error. */
24482#ifdef __cplusplus
24483extern "C"
24484#endif
24485/* We use char because int might match the return type of a gcc2
24486 builtin and then its argument prototype would still apply. */
24487char png_check_sig ();
24488int
24489main ()
24490{
24491png_check_sig ();
24492 ;
24493 return 0;
24494}
24495_ACEOF
24496rm -f conftest.$ac_objext conftest$ac_exeext
24497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24498 (eval $ac_link) 2>conftest.er1
a848cd7e 24499 ac_status=$?
ac1cb8d3
VS
24500 grep -v '^ *+' conftest.er1 >conftest.err
24501 rm -f conftest.er1
24502 cat conftest.err >&5
a848cd7e
SC
24503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); } &&
5ff751d6 24505 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24507 (eval $ac_try) 2>&5
24508 ac_status=$?
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); }; } &&
24511 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24513 (eval $ac_try) 2>&5
24514 ac_status=$?
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); }; }; then
24517 ac_cv_lib_png_png_check_sig=yes
24518else
24519 echo "$as_me: failed program was:" >&5
24520sed 's/^/| /' conftest.$ac_ext >&5
24521
24522ac_cv_lib_png_png_check_sig=no
24523fi
ac1cb8d3
VS
24524rm -f conftest.err conftest.$ac_objext \
24525 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24526LIBS=$ac_check_lib_save_LIBS
24527fi
24528echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
24529echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
24530if test $ac_cv_lib_png_png_check_sig = yes; then
24531 PNG_LINK=" -lpng -lz"
24532fi
24533
24534 fi
24535
24536 if test "x$PNG_LINK" = "x" ; then
24537 if test "$wxUSE_LIBPNG" = "sys" ; then
24538 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
24539echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
24540 { (exit 1); exit 1; }; }
24541 else
24542 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
24543echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
24544 wxUSE_LIBPNG=builtin
24545 fi
24546 else
24547 wxUSE_LIBPNG=sys
24548 fi
24549 fi
24550 fi
24551
24552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
24553fi
24554
24555
24556JPEG_LINK=
24557if test "$wxUSE_LIBJPEG" != "no" ; then
24558 cat >>confdefs.h <<\_ACEOF
24559#define wxUSE_LIBJPEG 1
24560_ACEOF
24561
24562
24563 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
24564 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
24565echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
24566 wxUSE_LIBJPEG=sys
24567 fi
24568
24569 if test "$wxUSE_MGL" != 1 ; then
24570 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
24571 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
24572echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
24573 if test "${ac_cv_header_jpeglib_h+set}" = set; then
24574 echo $ECHO_N "(cached) $ECHO_C" >&6
24575else
24576 cat >conftest.$ac_ext <<_ACEOF
24577/* confdefs.h. */
24578_ACEOF
24579cat confdefs.h >>conftest.$ac_ext
24580cat >>conftest.$ac_ext <<_ACEOF
24581/* end confdefs.h. */
24582
24583 #undef HAVE_STDLIB_H
24584 #include <stdio.h>
24585 #include <jpeglib.h>
24586
24587int
24588main ()
24589{
24590
24591
24592 ;
24593 return 0;
24594}
24595_ACEOF
24596rm -f conftest.$ac_objext
24597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24598 (eval $ac_compile) 2>conftest.er1
a848cd7e 24599 ac_status=$?
ac1cb8d3
VS
24600 grep -v '^ *+' conftest.er1 >conftest.err
24601 rm -f conftest.er1
24602 cat conftest.err >&5
a848cd7e
SC
24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24604 (exit $ac_status); } &&
5ff751d6 24605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24607 (eval $ac_try) 2>&5
24608 ac_status=$?
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); }; } &&
24611 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24613 (eval $ac_try) 2>&5
24614 ac_status=$?
24615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); }; }; then
24617 ac_cv_header_jpeglib_h=yes
24618else
24619 echo "$as_me: failed program was:" >&5
24620sed 's/^/| /' conftest.$ac_ext >&5
24621
24622ac_cv_header_jpeglib_h=no
24623
24624fi
ac1cb8d3 24625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24626
24627fi
24628
24629 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
24630echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
24631
24632 if test "$ac_cv_header_jpeglib_h" = "yes"; then
24633 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
24634echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
24635if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
24636 echo $ECHO_N "(cached) $ECHO_C" >&6
24637else
24638 ac_check_lib_save_LIBS=$LIBS
24639LIBS="-ljpeg $LIBS"
24640cat >conftest.$ac_ext <<_ACEOF
24641/* confdefs.h. */
24642_ACEOF
24643cat confdefs.h >>conftest.$ac_ext
24644cat >>conftest.$ac_ext <<_ACEOF
24645/* end confdefs.h. */
24646
24647/* Override any gcc2 internal prototype to avoid an error. */
24648#ifdef __cplusplus
24649extern "C"
24650#endif
24651/* We use char because int might match the return type of a gcc2
24652 builtin and then its argument prototype would still apply. */
24653char jpeg_read_header ();
24654int
24655main ()
24656{
24657jpeg_read_header ();
24658 ;
24659 return 0;
24660}
24661_ACEOF
24662rm -f conftest.$ac_objext conftest$ac_exeext
24663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24664 (eval $ac_link) 2>conftest.er1
a848cd7e 24665 ac_status=$?
ac1cb8d3
VS
24666 grep -v '^ *+' conftest.er1 >conftest.err
24667 rm -f conftest.er1
24668 cat conftest.err >&5
a848cd7e
SC
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); } &&
5ff751d6 24671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24673 (eval $ac_try) 2>&5
24674 ac_status=$?
24675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24676 (exit $ac_status); }; } &&
24677 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24679 (eval $ac_try) 2>&5
24680 ac_status=$?
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); }; }; then
24683 ac_cv_lib_jpeg_jpeg_read_header=yes
24684else
24685 echo "$as_me: failed program was:" >&5
24686sed 's/^/| /' conftest.$ac_ext >&5
24687
24688ac_cv_lib_jpeg_jpeg_read_header=no
24689fi
ac1cb8d3
VS
24690rm -f conftest.err conftest.$ac_objext \
24691 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24692LIBS=$ac_check_lib_save_LIBS
24693fi
24694echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
24695echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
24696if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
24697 JPEG_LINK=" -ljpeg"
24698fi
24699
24700 fi
24701
24702 if test "x$JPEG_LINK" = "x" ; then
24703 if test "$wxUSE_LIBJPEG" = "sys" ; then
24704 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
24705echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
24706 { (exit 1); exit 1; }; }
24707 else
24708 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
24709echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
24710 wxUSE_LIBJPEG=builtin
24711 fi
24712 else
24713 wxUSE_LIBJPEG=sys
24714 fi
24715 fi
24716 fi
24717fi
24718
24719
24720TIFF_LINK=
24721TIFF_PREREQ_LINKS=-lm
24722if test "$wxUSE_LIBTIFF" != "no" ; then
24723 cat >>confdefs.h <<\_ACEOF
24724#define wxUSE_LIBTIFF 1
24725_ACEOF
24726
24727
24728 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
24729 if test "$wxUSE_LIBJPEG" = "sys"; then
24730 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
24731 fi
24732 if test "$wxUSE_ZLIB" = "sys"; then
24733 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
24734 fi
24735 if test "${ac_cv_header_tiffio_h+set}" = set; then
24736 echo "$as_me:$LINENO: checking for tiffio.h" >&5
24737echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24738if test "${ac_cv_header_tiffio_h+set}" = set; then
24739 echo $ECHO_N "(cached) $ECHO_C" >&6
24740fi
24741echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24742echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24743else
24744 # Is the header compilable?
24745echo "$as_me:$LINENO: checking tiffio.h usability" >&5
24746echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
24747cat >conftest.$ac_ext <<_ACEOF
24748/* confdefs.h. */
24749_ACEOF
24750cat confdefs.h >>conftest.$ac_ext
24751cat >>conftest.$ac_ext <<_ACEOF
24752/* end confdefs.h. */
24753$ac_includes_default
24754#include <tiffio.h>
24755_ACEOF
24756rm -f conftest.$ac_objext
24757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 24758 (eval $ac_compile) 2>conftest.er1
a848cd7e 24759 ac_status=$?
ac1cb8d3
VS
24760 grep -v '^ *+' conftest.er1 >conftest.err
24761 rm -f conftest.er1
24762 cat conftest.err >&5
a848cd7e
SC
24763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24764 (exit $ac_status); } &&
5ff751d6 24765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767 (eval $ac_try) 2>&5
24768 ac_status=$?
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); }; } &&
24771 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
24772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773 (eval $ac_try) 2>&5
24774 ac_status=$?
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); }; }; then
24777 ac_header_compiler=yes
24778else
24779 echo "$as_me: failed program was:" >&5
24780sed 's/^/| /' conftest.$ac_ext >&5
24781
24782ac_header_compiler=no
24783fi
ac1cb8d3 24784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
24785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24786echo "${ECHO_T}$ac_header_compiler" >&6
24787
24788# Is the header present?
24789echo "$as_me:$LINENO: checking tiffio.h presence" >&5
24790echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
24791cat >conftest.$ac_ext <<_ACEOF
24792/* confdefs.h. */
24793_ACEOF
24794cat confdefs.h >>conftest.$ac_ext
24795cat >>conftest.$ac_ext <<_ACEOF
24796/* end confdefs.h. */
24797#include <tiffio.h>
24798_ACEOF
24799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24801 ac_status=$?
24802 grep -v '^ *+' conftest.er1 >conftest.err
24803 rm -f conftest.er1
24804 cat conftest.err >&5
24805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24806 (exit $ac_status); } >/dev/null; then
24807 if test -s conftest.err; then
24808 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 24809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
24810 else
24811 ac_cpp_err=
24812 fi
24813else
24814 ac_cpp_err=yes
24815fi
24816if test -z "$ac_cpp_err"; then
24817 ac_header_preproc=yes
24818else
24819 echo "$as_me: failed program was:" >&5
24820sed 's/^/| /' conftest.$ac_ext >&5
24821
24822 ac_header_preproc=no
24823fi
24824rm -f conftest.err conftest.$ac_ext
24825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24826echo "${ECHO_T}$ac_header_preproc" >&6
24827
24828# So? What about this header?
ac1cb8d3
VS
24829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24830 yes:no: )
a848cd7e
SC
24831 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24832echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
24833 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
24834echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
24835 ac_header_preproc=yes
a848cd7e 24836 ;;
ac1cb8d3 24837 no:yes:* )
a848cd7e
SC
24838 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
24839echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
24840 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
24841echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
24842 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
24843echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
24844 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
24845echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
24846 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
24847echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
24848 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
24849echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
24850 (
24851 cat <<\_ASBOX
ac1cb8d3
VS
24852## ----------------------------------------- ##
24853## Report this to wx-dev@lists.wxwidgets.org ##
24854## ----------------------------------------- ##
a848cd7e
SC
24855_ASBOX
24856 ) |
24857 sed "s/^/$as_me: WARNING: /" >&2
24858 ;;
24859esac
24860echo "$as_me:$LINENO: checking for tiffio.h" >&5
24861echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
24862if test "${ac_cv_header_tiffio_h+set}" = set; then
24863 echo $ECHO_N "(cached) $ECHO_C" >&6
24864else
24865 ac_cv_header_tiffio_h=$ac_header_preproc
24866fi
24867echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
24868echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
24869
24870fi
24871if test $ac_cv_header_tiffio_h = yes; then
24872
24873 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
24874echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
24875if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
24876 echo $ECHO_N "(cached) $ECHO_C" >&6
24877else
24878 ac_check_lib_save_LIBS=$LIBS
24879LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
24880cat >conftest.$ac_ext <<_ACEOF
24881/* confdefs.h. */
24882_ACEOF
24883cat confdefs.h >>conftest.$ac_ext
24884cat >>conftest.$ac_ext <<_ACEOF
24885/* end confdefs.h. */
24886
24887/* Override any gcc2 internal prototype to avoid an error. */
24888#ifdef __cplusplus
24889extern "C"
24890#endif
24891/* We use char because int might match the return type of a gcc2
24892 builtin and then its argument prototype would still apply. */
24893char TIFFError ();
24894int
24895main ()
24896{
24897TIFFError ();
24898 ;
24899 return 0;
24900}
24901_ACEOF
24902rm -f conftest.$ac_objext conftest$ac_exeext
24903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 24904 (eval $ac_link) 2>conftest.er1
a848cd7e 24905 ac_status=$?
ac1cb8d3
VS
24906 grep -v '^ *+' conftest.er1 >conftest.err
24907 rm -f conftest.er1
24908 cat conftest.err >&5
a848cd7e
SC
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); } &&
5ff751d6 24911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
24912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24913 (eval $ac_try) 2>&5
24914 ac_status=$?
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); }; } &&
24917 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
24918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24919 (eval $ac_try) 2>&5
24920 ac_status=$?
24921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922 (exit $ac_status); }; }; then
24923 ac_cv_lib_tiff_TIFFError=yes
24924else
24925 echo "$as_me: failed program was:" >&5
24926sed 's/^/| /' conftest.$ac_ext >&5
24927
24928ac_cv_lib_tiff_TIFFError=no
24929fi
ac1cb8d3
VS
24930rm -f conftest.err conftest.$ac_objext \
24931 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
24932LIBS=$ac_check_lib_save_LIBS
24933fi
24934echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
24935echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
24936if test $ac_cv_lib_tiff_TIFFError = yes; then
24937 TIFF_LINK=" -ltiff"
24938fi
24939
24940
24941
24942fi
24943
24944
24945
24946 if test "x$TIFF_LINK" = "x" ; then
24947 if test "$wxUSE_LIBTIFF" = "sys" ; then
24948 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
24949echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
24950 { (exit 1); exit 1; }; }
24951 else
24952 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
24953echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
24954 wxUSE_LIBTIFF=builtin
24955 fi
24956 else
24957 wxUSE_LIBTIFF=sys
24958 fi
24959 fi
24960fi
24961
24962
47a7e797
MW
24963if test "$wxUSE_WCHAR_T" != "yes"; then
24964 if test "$wxUSE_EXPAT" != "no"; then
24965 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
24966echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
24967 wxUSE_EXPAT=no
24968 fi
24969 if test "$wxUSE_XML" != "no"; then
24970 { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
24971echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
24972 wxUSE_XML=no
24973 fi
24974fi
24975
a848cd7e
SC
24976if test "$wxUSE_EXPAT" != "no"; then
24977 wxUSE_XML=yes
24978 cat >>confdefs.h <<\_ACEOF
24979#define wxUSE_EXPAT 1
24980_ACEOF
24981
24982 cat >>confdefs.h <<\_ACEOF
24983#define wxUSE_XML 1
24984_ACEOF
24985
24986
24987 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
24988 if test "${ac_cv_header_expat_h+set}" = set; then
24989 echo "$as_me:$LINENO: checking for expat.h" >&5
24990echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
24991if test "${ac_cv_header_expat_h+set}" = set; then
24992 echo $ECHO_N "(cached) $ECHO_C" >&6
24993fi
24994echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
24995echo "${ECHO_T}$ac_cv_header_expat_h" >&6
24996else
24997 # Is the header compilable?
24998echo "$as_me:$LINENO: checking expat.h usability" >&5
24999echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
25000cat >conftest.$ac_ext <<_ACEOF
25001/* confdefs.h. */
25002_ACEOF
25003cat confdefs.h >>conftest.$ac_ext
25004cat >>conftest.$ac_ext <<_ACEOF
25005/* end confdefs.h. */
25006$ac_includes_default
25007#include <expat.h>
25008_ACEOF
25009rm -f conftest.$ac_objext
25010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25011 (eval $ac_compile) 2>conftest.er1
a848cd7e 25012 ac_status=$?
ac1cb8d3
VS
25013 grep -v '^ *+' conftest.er1 >conftest.err
25014 rm -f conftest.er1
25015 cat conftest.err >&5
a848cd7e
SC
25016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25017 (exit $ac_status); } &&
5ff751d6 25018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25020 (eval $ac_try) 2>&5
25021 ac_status=$?
25022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25023 (exit $ac_status); }; } &&
25024 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25026 (eval $ac_try) 2>&5
25027 ac_status=$?
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); }; }; then
25030 ac_header_compiler=yes
25031else
25032 echo "$as_me: failed program was:" >&5
25033sed 's/^/| /' conftest.$ac_ext >&5
25034
25035ac_header_compiler=no
25036fi
ac1cb8d3 25037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25038echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25039echo "${ECHO_T}$ac_header_compiler" >&6
25040
25041# Is the header present?
25042echo "$as_me:$LINENO: checking expat.h presence" >&5
25043echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
25044cat >conftest.$ac_ext <<_ACEOF
25045/* confdefs.h. */
25046_ACEOF
25047cat confdefs.h >>conftest.$ac_ext
25048cat >>conftest.$ac_ext <<_ACEOF
25049/* end confdefs.h. */
25050#include <expat.h>
25051_ACEOF
25052if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25053 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25054 ac_status=$?
25055 grep -v '^ *+' conftest.er1 >conftest.err
25056 rm -f conftest.er1
25057 cat conftest.err >&5
25058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25059 (exit $ac_status); } >/dev/null; then
25060 if test -s conftest.err; then
25061 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25063 else
25064 ac_cpp_err=
25065 fi
25066else
25067 ac_cpp_err=yes
25068fi
25069if test -z "$ac_cpp_err"; then
25070 ac_header_preproc=yes
25071else
25072 echo "$as_me: failed program was:" >&5
25073sed 's/^/| /' conftest.$ac_ext >&5
25074
25075 ac_header_preproc=no
25076fi
25077rm -f conftest.err conftest.$ac_ext
25078echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25079echo "${ECHO_T}$ac_header_preproc" >&6
25080
25081# So? What about this header?
ac1cb8d3
VS
25082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25083 yes:no: )
a848cd7e
SC
25084 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
25085echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25086 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
25087echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
25088 ac_header_preproc=yes
a848cd7e 25089 ;;
ac1cb8d3 25090 no:yes:* )
a848cd7e
SC
25091 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
25092echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25093 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
25094echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
25095 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
25096echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
25097 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
25098echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25099 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
25100echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25101 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
25102echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25103 (
25104 cat <<\_ASBOX
ac1cb8d3
VS
25105## ----------------------------------------- ##
25106## Report this to wx-dev@lists.wxwidgets.org ##
25107## ----------------------------------------- ##
a848cd7e
SC
25108_ASBOX
25109 ) |
25110 sed "s/^/$as_me: WARNING: /" >&2
25111 ;;
25112esac
25113echo "$as_me:$LINENO: checking for expat.h" >&5
25114echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
25115if test "${ac_cv_header_expat_h+set}" = set; then
25116 echo $ECHO_N "(cached) $ECHO_C" >&6
25117else
25118 ac_cv_header_expat_h=$ac_header_preproc
25119fi
25120echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
25121echo "${ECHO_T}$ac_cv_header_expat_h" >&6
25122
25123fi
25124if test $ac_cv_header_expat_h = yes; then
25125 found_expat_h=1
25126fi
25127
25128
25129 if test "x$found_expat_h" = "x1"; then
25130 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
25131echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
25132if test "${wx_cv_expat_is_not_broken+set}" = set; then
25133 echo $ECHO_N "(cached) $ECHO_C" >&6
25134else
25135
25136
25137
25138 ac_ext=cc
25139ac_cpp='$CXXCPP $CPPFLAGS'
25140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25143
25144 cat >conftest.$ac_ext <<_ACEOF
25145/* confdefs.h. */
25146_ACEOF
25147cat confdefs.h >>conftest.$ac_ext
25148cat >>conftest.$ac_ext <<_ACEOF
25149/* end confdefs.h. */
25150#include <expat.h>
25151int
25152main ()
25153{
25154
25155 ;
25156 return 0;
25157}
25158_ACEOF
25159rm -f conftest.$ac_objext
25160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25161 (eval $ac_compile) 2>conftest.er1
a848cd7e 25162 ac_status=$?
ac1cb8d3
VS
25163 grep -v '^ *+' conftest.er1 >conftest.err
25164 rm -f conftest.er1
25165 cat conftest.err >&5
a848cd7e
SC
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); } &&
5ff751d6 25168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25170 (eval $ac_try) 2>&5
25171 ac_status=$?
25172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173 (exit $ac_status); }; } &&
25174 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176 (eval $ac_try) 2>&5
25177 ac_status=$?
25178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179 (exit $ac_status); }; }; then
25180 wx_cv_expat_is_not_broken=yes
25181else
25182 echo "$as_me: failed program was:" >&5
25183sed 's/^/| /' conftest.$ac_ext >&5
25184
25185wx_cv_expat_is_not_broken=no
25186
25187fi
ac1cb8d3 25188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25189 ac_ext=c
25190ac_cpp='$CPP $CPPFLAGS'
25191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25193ac_compiler_gnu=$ac_cv_c_compiler_gnu
25194
25195
25196
25197fi
25198echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
25199echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
25200 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
25201 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
25202echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
25203if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
25204 echo $ECHO_N "(cached) $ECHO_C" >&6
25205else
25206 ac_check_lib_save_LIBS=$LIBS
25207LIBS="-lexpat $LIBS"
25208cat >conftest.$ac_ext <<_ACEOF
25209/* confdefs.h. */
25210_ACEOF
25211cat confdefs.h >>conftest.$ac_ext
25212cat >>conftest.$ac_ext <<_ACEOF
25213/* end confdefs.h. */
25214
25215/* Override any gcc2 internal prototype to avoid an error. */
25216#ifdef __cplusplus
25217extern "C"
25218#endif
25219/* We use char because int might match the return type of a gcc2
25220 builtin and then its argument prototype would still apply. */
25221char XML_ParserCreate ();
25222int
25223main ()
25224{
25225XML_ParserCreate ();
25226 ;
25227 return 0;
25228}
25229_ACEOF
25230rm -f conftest.$ac_objext conftest$ac_exeext
25231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25232 (eval $ac_link) 2>conftest.er1
a848cd7e 25233 ac_status=$?
ac1cb8d3
VS
25234 grep -v '^ *+' conftest.er1 >conftest.err
25235 rm -f conftest.er1
25236 cat conftest.err >&5
a848cd7e
SC
25237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238 (exit $ac_status); } &&
5ff751d6 25239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25241 (eval $ac_try) 2>&5
25242 ac_status=$?
25243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25244 (exit $ac_status); }; } &&
25245 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25247 (eval $ac_try) 2>&5
25248 ac_status=$?
25249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25250 (exit $ac_status); }; }; then
25251 ac_cv_lib_expat_XML_ParserCreate=yes
25252else
25253 echo "$as_me: failed program was:" >&5
25254sed 's/^/| /' conftest.$ac_ext >&5
25255
25256ac_cv_lib_expat_XML_ParserCreate=no
25257fi
ac1cb8d3
VS
25258rm -f conftest.err conftest.$ac_objext \
25259 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25260LIBS=$ac_check_lib_save_LIBS
25261fi
25262echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
25263echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
25264if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
25265 EXPAT_LINK=" -lexpat"
25266fi
25267
25268 fi
25269 fi
25270 if test "x$EXPAT_LINK" = "x" ; then
25271 if test "$wxUSE_EXPAT" = "sys" ; then
25272 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
25273echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
25274 { (exit 1); exit 1; }; }
25275 else
25276 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
25277echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
25278 wxUSE_EXPAT=builtin
25279 fi
25280 else
25281 wxUSE_EXPAT=sys
25282 fi
25283 fi
25284 if test "$wxUSE_EXPAT" = "builtin" ; then
25285
25286
25287subdirs="$subdirs src/expat"
25288
25289 fi
25290fi
25291
25292
25293
25294if test "$wxUSE_LIBMSPACK" != "no"; then
a848cd7e
SC
25295 if test "${ac_cv_header_mspack_h+set}" = set; then
25296 echo "$as_me:$LINENO: checking for mspack.h" >&5
25297echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25298if test "${ac_cv_header_mspack_h+set}" = set; then
25299 echo $ECHO_N "(cached) $ECHO_C" >&6
25300fi
25301echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25302echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25303else
25304 # Is the header compilable?
25305echo "$as_me:$LINENO: checking mspack.h usability" >&5
25306echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
25307cat >conftest.$ac_ext <<_ACEOF
25308/* confdefs.h. */
25309_ACEOF
25310cat confdefs.h >>conftest.$ac_ext
25311cat >>conftest.$ac_ext <<_ACEOF
25312/* end confdefs.h. */
25313$ac_includes_default
25314#include <mspack.h>
25315_ACEOF
25316rm -f conftest.$ac_objext
25317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25318 (eval $ac_compile) 2>conftest.er1
a848cd7e 25319 ac_status=$?
ac1cb8d3
VS
25320 grep -v '^ *+' conftest.er1 >conftest.err
25321 rm -f conftest.er1
25322 cat conftest.err >&5
a848cd7e
SC
25323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324 (exit $ac_status); } &&
5ff751d6 25325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25327 (eval $ac_try) 2>&5
25328 ac_status=$?
25329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25330 (exit $ac_status); }; } &&
25331 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25333 (eval $ac_try) 2>&5
25334 ac_status=$?
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); }; }; then
25337 ac_header_compiler=yes
25338else
25339 echo "$as_me: failed program was:" >&5
25340sed 's/^/| /' conftest.$ac_ext >&5
25341
25342ac_header_compiler=no
25343fi
ac1cb8d3 25344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25345echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25346echo "${ECHO_T}$ac_header_compiler" >&6
25347
25348# Is the header present?
25349echo "$as_me:$LINENO: checking mspack.h presence" >&5
25350echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
25351cat >conftest.$ac_ext <<_ACEOF
25352/* confdefs.h. */
25353_ACEOF
25354cat confdefs.h >>conftest.$ac_ext
25355cat >>conftest.$ac_ext <<_ACEOF
25356/* end confdefs.h. */
25357#include <mspack.h>
25358_ACEOF
25359if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25361 ac_status=$?
25362 grep -v '^ *+' conftest.er1 >conftest.err
25363 rm -f conftest.er1
25364 cat conftest.err >&5
25365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } >/dev/null; then
25367 if test -s conftest.err; then
25368 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25370 else
25371 ac_cpp_err=
25372 fi
25373else
25374 ac_cpp_err=yes
25375fi
25376if test -z "$ac_cpp_err"; then
25377 ac_header_preproc=yes
25378else
25379 echo "$as_me: failed program was:" >&5
25380sed 's/^/| /' conftest.$ac_ext >&5
25381
25382 ac_header_preproc=no
25383fi
25384rm -f conftest.err conftest.$ac_ext
25385echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25386echo "${ECHO_T}$ac_header_preproc" >&6
25387
25388# So? What about this header?
ac1cb8d3
VS
25389case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25390 yes:no: )
a848cd7e
SC
25391 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
25392echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25393 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
25394echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
25395 ac_header_preproc=yes
a848cd7e 25396 ;;
ac1cb8d3 25397 no:yes:* )
a848cd7e
SC
25398 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
25399echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25400 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
25401echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
25402 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
25403echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
25404 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
25405echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25406 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
25407echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25408 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
25409echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25410 (
25411 cat <<\_ASBOX
ac1cb8d3
VS
25412## ----------------------------------------- ##
25413## Report this to wx-dev@lists.wxwidgets.org ##
25414## ----------------------------------------- ##
a848cd7e
SC
25415_ASBOX
25416 ) |
25417 sed "s/^/$as_me: WARNING: /" >&2
25418 ;;
25419esac
25420echo "$as_me:$LINENO: checking for mspack.h" >&5
25421echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
25422if test "${ac_cv_header_mspack_h+set}" = set; then
25423 echo $ECHO_N "(cached) $ECHO_C" >&6
25424else
25425 ac_cv_header_mspack_h=$ac_header_preproc
25426fi
25427echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
25428echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
25429
25430fi
25431if test $ac_cv_header_mspack_h = yes; then
25432 found_mspack_h=1
25433fi
25434
25435
25436 if test "x$found_mspack_h" = "x1"; then
25437 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
25438echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
25439if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
25440 echo $ECHO_N "(cached) $ECHO_C" >&6
25441else
25442 ac_check_lib_save_LIBS=$LIBS
25443LIBS="-lmspack $LIBS"
25444cat >conftest.$ac_ext <<_ACEOF
25445/* confdefs.h. */
25446_ACEOF
25447cat confdefs.h >>conftest.$ac_ext
25448cat >>conftest.$ac_ext <<_ACEOF
25449/* end confdefs.h. */
25450
25451/* Override any gcc2 internal prototype to avoid an error. */
25452#ifdef __cplusplus
25453extern "C"
25454#endif
25455/* We use char because int might match the return type of a gcc2
25456 builtin and then its argument prototype would still apply. */
25457char mspack_create_chm_decompressor ();
25458int
25459main ()
25460{
25461mspack_create_chm_decompressor ();
25462 ;
25463 return 0;
25464}
25465_ACEOF
25466rm -f conftest.$ac_objext conftest$ac_exeext
25467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 25468 (eval $ac_link) 2>conftest.er1
a848cd7e 25469 ac_status=$?
ac1cb8d3
VS
25470 grep -v '^ *+' conftest.er1 >conftest.err
25471 rm -f conftest.er1
25472 cat conftest.err >&5
a848cd7e
SC
25473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25474 (exit $ac_status); } &&
5ff751d6 25475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25477 (eval $ac_try) 2>&5
25478 ac_status=$?
25479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); }; } &&
25481 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
25482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25483 (eval $ac_try) 2>&5
25484 ac_status=$?
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); }; }; then
25487 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
25488else
25489 echo "$as_me: failed program was:" >&5
25490sed 's/^/| /' conftest.$ac_ext >&5
25491
25492ac_cv_lib_mspack_mspack_create_chm_decompressor=no
25493fi
ac1cb8d3
VS
25494rm -f conftest.err conftest.$ac_objext \
25495 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
25496LIBS=$ac_check_lib_save_LIBS
25497fi
25498echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
25499echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
25500if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
25501 MSPACK_LINK=" -lmspack"
25502fi
25503
25504 fi
25505 if test "x$MSPACK_LINK" = "x" ; then
25506 wxUSE_LIBMSPACK=no
dd3a2d96
VZ
25507 fi
25508fi
25509
25510if test "$wxUSE_LIBMSPACK" != "no"; then
25511 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
25512#define wxUSE_LIBMSPACK 1
25513_ACEOF
25514
a848cd7e
SC
25515fi
25516
25517
25518
25519AFMINSTALL=
25520WIN32INSTALL=
25521
25522TOOLKIT=
25523TOOLKIT_INCLUDE=
25524WIDGET_SET=
25525
25526if test "$USE_WIN32" = 1 ; then
25527
25528for ac_header in w32api.h
25529do
25530as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25531if eval "test \"\${$as_ac_Header+set}\" = set"; then
25532 echo "$as_me:$LINENO: checking for $ac_header" >&5
25533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25534if eval "test \"\${$as_ac_Header+set}\" = set"; then
25535 echo $ECHO_N "(cached) $ECHO_C" >&6
25536fi
25537echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25538echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25539else
25540 # Is the header compilable?
25541echo "$as_me:$LINENO: checking $ac_header usability" >&5
25542echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25543cat >conftest.$ac_ext <<_ACEOF
25544/* confdefs.h. */
25545_ACEOF
25546cat confdefs.h >>conftest.$ac_ext
25547cat >>conftest.$ac_ext <<_ACEOF
25548/* end confdefs.h. */
25549$ac_includes_default
25550#include <$ac_header>
25551_ACEOF
25552rm -f conftest.$ac_objext
25553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25554 (eval $ac_compile) 2>conftest.er1
a848cd7e 25555 ac_status=$?
ac1cb8d3
VS
25556 grep -v '^ *+' conftest.er1 >conftest.err
25557 rm -f conftest.er1
25558 cat conftest.err >&5
a848cd7e
SC
25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25560 (exit $ac_status); } &&
5ff751d6 25561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25563 (eval $ac_try) 2>&5
25564 ac_status=$?
25565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25566 (exit $ac_status); }; } &&
25567 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25569 (eval $ac_try) 2>&5
25570 ac_status=$?
25571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25572 (exit $ac_status); }; }; then
25573 ac_header_compiler=yes
25574else
25575 echo "$as_me: failed program was:" >&5
25576sed 's/^/| /' conftest.$ac_ext >&5
25577
25578ac_header_compiler=no
25579fi
ac1cb8d3 25580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25582echo "${ECHO_T}$ac_header_compiler" >&6
25583
25584# Is the header present?
25585echo "$as_me:$LINENO: checking $ac_header presence" >&5
25586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25587cat >conftest.$ac_ext <<_ACEOF
25588/* confdefs.h. */
25589_ACEOF
25590cat confdefs.h >>conftest.$ac_ext
25591cat >>conftest.$ac_ext <<_ACEOF
25592/* end confdefs.h. */
25593#include <$ac_header>
25594_ACEOF
25595if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25597 ac_status=$?
25598 grep -v '^ *+' conftest.er1 >conftest.err
25599 rm -f conftest.er1
25600 cat conftest.err >&5
25601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25602 (exit $ac_status); } >/dev/null; then
25603 if test -s conftest.err; then
25604 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25606 else
25607 ac_cpp_err=
25608 fi
25609else
25610 ac_cpp_err=yes
25611fi
25612if test -z "$ac_cpp_err"; then
25613 ac_header_preproc=yes
25614else
25615 echo "$as_me: failed program was:" >&5
25616sed 's/^/| /' conftest.$ac_ext >&5
25617
25618 ac_header_preproc=no
25619fi
25620rm -f conftest.err conftest.$ac_ext
25621echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25622echo "${ECHO_T}$ac_header_preproc" >&6
25623
25624# So? What about this header?
ac1cb8d3
VS
25625case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25626 yes:no: )
a848cd7e
SC
25627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25628echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25630echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25631 ac_header_preproc=yes
a848cd7e 25632 ;;
ac1cb8d3 25633 no:yes:* )
a848cd7e
SC
25634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25635echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25637echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25639echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25641echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25645echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25646 (
25647 cat <<\_ASBOX
ac1cb8d3
VS
25648## ----------------------------------------- ##
25649## Report this to wx-dev@lists.wxwidgets.org ##
25650## ----------------------------------------- ##
a848cd7e
SC
25651_ASBOX
25652 ) |
25653 sed "s/^/$as_me: WARNING: /" >&2
25654 ;;
25655esac
25656echo "$as_me:$LINENO: checking for $ac_header" >&5
25657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25658if eval "test \"\${$as_ac_Header+set}\" = set"; then
25659 echo $ECHO_N "(cached) $ECHO_C" >&6
25660else
ac1cb8d3 25661 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
25662fi
25663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25665
25666fi
25667if test `eval echo '${'$as_ac_Header'}'` = yes; then
25668 cat >>confdefs.h <<_ACEOF
25669#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25670_ACEOF
25671
25672fi
25673
25674done
25675
25676 if test "${ac_cv_header_windows_h+set}" = set; then
25677 echo "$as_me:$LINENO: checking for windows.h" >&5
25678echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25679if test "${ac_cv_header_windows_h+set}" = set; then
25680 echo $ECHO_N "(cached) $ECHO_C" >&6
25681fi
25682echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25683echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25684else
25685 # Is the header compilable?
25686echo "$as_me:$LINENO: checking windows.h usability" >&5
25687echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
25688cat >conftest.$ac_ext <<_ACEOF
25689/* confdefs.h. */
25690_ACEOF
25691cat confdefs.h >>conftest.$ac_ext
25692cat >>conftest.$ac_ext <<_ACEOF
25693/* end confdefs.h. */
25694$ac_includes_default
25695#include <windows.h>
25696_ACEOF
25697rm -f conftest.$ac_objext
25698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 25699 (eval $ac_compile) 2>conftest.er1
a848cd7e 25700 ac_status=$?
ac1cb8d3
VS
25701 grep -v '^ *+' conftest.er1 >conftest.err
25702 rm -f conftest.er1
25703 cat conftest.err >&5
a848cd7e
SC
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } &&
5ff751d6 25706 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
25707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25708 (eval $ac_try) 2>&5
25709 ac_status=$?
25710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25711 (exit $ac_status); }; } &&
25712 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
25713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25714 (eval $ac_try) 2>&5
25715 ac_status=$?
25716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717 (exit $ac_status); }; }; then
25718 ac_header_compiler=yes
25719else
25720 echo "$as_me: failed program was:" >&5
25721sed 's/^/| /' conftest.$ac_ext >&5
25722
25723ac_header_compiler=no
25724fi
ac1cb8d3 25725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
25726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25727echo "${ECHO_T}$ac_header_compiler" >&6
25728
25729# Is the header present?
25730echo "$as_me:$LINENO: checking windows.h presence" >&5
25731echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
25732cat >conftest.$ac_ext <<_ACEOF
25733/* confdefs.h. */
25734_ACEOF
25735cat confdefs.h >>conftest.$ac_ext
25736cat >>conftest.$ac_ext <<_ACEOF
25737/* end confdefs.h. */
25738#include <windows.h>
25739_ACEOF
25740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25742 ac_status=$?
25743 grep -v '^ *+' conftest.er1 >conftest.err
25744 rm -f conftest.er1
25745 cat conftest.err >&5
25746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747 (exit $ac_status); } >/dev/null; then
25748 if test -s conftest.err; then
25749 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 25750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
25751 else
25752 ac_cpp_err=
25753 fi
25754else
25755 ac_cpp_err=yes
25756fi
25757if test -z "$ac_cpp_err"; then
25758 ac_header_preproc=yes
25759else
25760 echo "$as_me: failed program was:" >&5
25761sed 's/^/| /' conftest.$ac_ext >&5
25762
25763 ac_header_preproc=no
25764fi
25765rm -f conftest.err conftest.$ac_ext
25766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25767echo "${ECHO_T}$ac_header_preproc" >&6
25768
25769# So? What about this header?
ac1cb8d3
VS
25770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25771 yes:no: )
a848cd7e
SC
25772 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
25773echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
25774 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
25775echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
25776 ac_header_preproc=yes
a848cd7e 25777 ;;
ac1cb8d3 25778 no:yes:* )
a848cd7e
SC
25779 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
25780echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
25781 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
25782echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
25783 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
25784echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
25785 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
25786echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
25787 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
25788echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
25789 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
25790echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
25791 (
25792 cat <<\_ASBOX
ac1cb8d3
VS
25793## ----------------------------------------- ##
25794## Report this to wx-dev@lists.wxwidgets.org ##
25795## ----------------------------------------- ##
a848cd7e
SC
25796_ASBOX
25797 ) |
25798 sed "s/^/$as_me: WARNING: /" >&2
25799 ;;
25800esac
25801echo "$as_me:$LINENO: checking for windows.h" >&5
25802echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
25803if test "${ac_cv_header_windows_h+set}" = set; then
25804 echo $ECHO_N "(cached) $ECHO_C" >&6
25805else
25806 ac_cv_header_windows_h=$ac_header_preproc
25807fi
25808echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
25809echo "${ECHO_T}$ac_cv_header_windows_h" >&6
25810
25811fi
25812if test $ac_cv_header_windows_h = yes; then
25813 :
25814else
25815
25816 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
25817echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
25818 { (exit 1); exit 1; }; }
25819
25820fi
25821
25822
25823
25824 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
25825
25826 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
25827 LIBS="$LIBS -loleacc"
25828 fi
25829
25830 case "${host}" in
25831 *-*-cygwin* )
25832 LIBS="$LIBS -lkernel32 -luser32"
a848cd7e
SC
25833 esac
25834
25835 if test "$wxUSE_ODBC" = "sys" ; then
25836 wxUSE_ODBC = "yes"
25837 fi
25838 if test "$wxUSE_ODBC" = "yes" ; then
25839 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
25840 cat >>confdefs.h <<\_ACEOF
25841#define wxUSE_ODBC 1
25842_ACEOF
25843
25844 fi
25845
25846 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
25847 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
25848
25849 WIN32INSTALL=win32install
25850fi
25851
25852if test "$wxUSE_GUI" = "yes"; then
25853 USE_GUI=1
25854
25855 GUI_TK_LIBRARY=
25856
25857 WXGTK12=
25858 WXGTK127=
25859 WXGTK20=
25860 WXGPE=
25861
207bc66c
RN
25862 if test "$wxUSE_COCOA" = 1 ; then
25863 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
25864 { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
25865echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
25866 wxUSE_PRINTING_ARCHITECTURE=no
25867 fi
25868 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
25869 { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
25870echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
25871 wxUSE_DRAG_AND_DROP=no
25872 fi
25873 if test "$wxUSE_DRAGIMAGE" = "yes"; then
25874 { echo "$as_me:$LINENO: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&5
25875echo "$as_me: WARNING: Drag Image and DandD not supported under wxCocoa yet, disabled" >&2;}
25876 wxUSE_DRAGIMAGE=no
25877 fi
25878 fi
25879
a848cd7e
SC
25880 if test "$wxUSE_MSW" = 1 ; then
25881 TOOLKIT=MSW
25882 GUIDIST=MSW_DIST
25883
ceec2216 25884 case "${host}" in
a848cd7e
SC
25885 *-*-mingw32* )
25886 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
25887 esac
25888 fi
25889
25890 if test "$wxUSE_GTK" = 1; then
25891 echo "$as_me:$LINENO: checking for GTK+ version" >&5
25892echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
25893
25894 gtk_version_cached=1
25895 if test "${wx_cv_lib_gtk+set}" = set; then
25896 echo $ECHO_N "(cached) $ECHO_C" >&6
25897else
25898
25899 gtk_version_cached=0
25900 echo "$as_me:$LINENO: result: " >&5
25901echo "${ECHO_T}" >&6
25902
25903 GTK_MODULES=
25904 if test "$wxUSE_THREADS" = "yes"; then
25905 GTK_MODULES=gthread
25906 fi
25907
f597b41c 25908 wx_cv_lib_gtk=
5001df0d
MW
25909 if test "x$wxGTK_VERSION" != "x1"
25910 then
25911 case "${host}" in
25912 *-*-solaris2* )
25913 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
5ff751d6 25914 enable_gtktest=no
5001df0d
MW
25915 fi
25916 esac
25917
a848cd7e
SC
25918 # Check whether --enable-gtktest or --disable-gtktest was given.
25919if test "${enable_gtktest+set}" = set; then
25920 enableval="$enable_gtktest"
25921
25922else
25923 enable_gtktest=yes
25924fi;
25925
25926 pkg_config_args=gtk+-2.0
25927 for module in . $GTK_MODULES
25928 do
25929 case "$module" in
25930 gthread)
25931 pkg_config_args="$pkg_config_args gthread-2.0"
25932 ;;
25933 esac
25934 done
25935
25936 no_gtk=""
25937
25938 # Extract the first word of "pkg-config", so it can be a program name with args.
25939set dummy pkg-config; ac_word=$2
25940echo "$as_me:$LINENO: checking for $ac_word" >&5
25941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25942if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25943 echo $ECHO_N "(cached) $ECHO_C" >&6
25944else
25945 case $PKG_CONFIG in
25946 [\\/]* | ?:[\\/]*)
25947 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25948 ;;
25949 *)
25950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25951for as_dir in $PATH
25952do
25953 IFS=$as_save_IFS
25954 test -z "$as_dir" && as_dir=.
25955 for ac_exec_ext in '' $ac_executable_extensions; do
25956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25957 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25959 break 2
25960 fi
25961done
25962done
25963
25964 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25965 ;;
25966esac
25967fi
25968PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25969
25970if test -n "$PKG_CONFIG"; then
25971 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25972echo "${ECHO_T}$PKG_CONFIG" >&6
25973else
25974 echo "$as_me:$LINENO: result: no" >&5
25975echo "${ECHO_T}no" >&6
25976fi
25977
25978
25979 if test x$PKG_CONFIG != xno ; then
25980 if pkg-config --atleast-pkgconfig-version 0.7 ; then
25981 :
25982 else
c2218763 25983 echo "*** pkg-config too old; version 0.7 or better required."
a848cd7e
SC
25984 no_gtk=yes
25985 PKG_CONFIG=no
25986 fi
25987 else
25988 no_gtk=yes
25989 fi
25990
25991 min_gtk_version=2.0.0
25992 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
25993echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
25994
25995 if test x$PKG_CONFIG != xno ; then
25996 ## don't try to run the test against uninstalled libtool libs
25997 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25998 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
25999 enable_gtktest=no
26000 fi
26001
26002 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
26003 :
26004 else
26005 no_gtk=yes
26006 fi
26007 fi
26008
26009 if test x"$no_gtk" = x ; then
26010 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
26011 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
26012 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26013 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26014 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26015 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26016 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
26017 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26018 if test "x$enable_gtktest" = "xyes" ; then
26019 ac_save_CFLAGS="$CFLAGS"
26020 ac_save_LIBS="$LIBS"
26021 CFLAGS="$CFLAGS $GTK_CFLAGS"
26022 LIBS="$GTK_LIBS $LIBS"
26023 rm -f conf.gtktest
26024 if test "$cross_compiling" = yes; then
26025 echo $ac_n "cross compiling; assumed OK... $ac_c"
26026else
26027 cat >conftest.$ac_ext <<_ACEOF
26028/* confdefs.h. */
26029_ACEOF
26030cat confdefs.h >>conftest.$ac_ext
26031cat >>conftest.$ac_ext <<_ACEOF
26032/* end confdefs.h. */
26033
26034#include <gtk/gtk.h>
26035#include <stdio.h>
26036#include <stdlib.h>
26037
26038int
26039main ()
26040{
26041 int major, minor, micro;
26042 char *tmp_version;
26043
26044 system ("touch conf.gtktest");
26045
26046 /* HP/UX 9 (%@#!) writes to sscanf strings */
26047 tmp_version = g_strdup("$min_gtk_version");
26048 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26049 printf("%s, bad version string\n", "$min_gtk_version");
26050 exit(1);
26051 }
26052
26053 if ((gtk_major_version != $gtk_config_major_version) ||
26054 (gtk_minor_version != $gtk_config_minor_version) ||
26055 (gtk_micro_version != $gtk_config_micro_version))
26056 {
26057 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26058 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26059 gtk_major_version, gtk_minor_version, gtk_micro_version);
26060 printf ("*** was found! If pkg-config was correct, then it is best\n");
26061 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26062 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26063 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26064 printf("*** required on your system.\n");
26065 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
26066 printf("*** to point to the correct configuration files\n");
26067 }
26068 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26069 (gtk_minor_version != GTK_MINOR_VERSION) ||
26070 (gtk_micro_version != GTK_MICRO_VERSION))
26071 {
26072 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26073 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26074 printf("*** library (version %d.%d.%d)\n",
26075 gtk_major_version, gtk_minor_version, gtk_micro_version);
26076 }
26077 else
26078 {
26079 if ((gtk_major_version > major) ||
26080 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26081 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26082 {
26083 return 0;
26084 }
26085 else
26086 {
26087 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26088 gtk_major_version, gtk_minor_version, gtk_micro_version);
26089 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26090 major, minor, micro);
26091 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26092 printf("***\n");
26093 printf("*** If you have already installed a sufficiently new version, this error\n");
26094 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
26095 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26096 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
26097 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
26098 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26099 printf("*** so that the correct libraries are found at run-time))\n");
26100 }
26101 }
26102 return 1;
26103}
26104
26105_ACEOF
26106rm -f conftest$ac_exeext
26107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26108 (eval $ac_link) 2>&5
26109 ac_status=$?
26110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26111 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26113 (eval $ac_try) 2>&5
26114 ac_status=$?
26115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); }; }; then
26117 :
26118else
26119 echo "$as_me: program exited with status $ac_status" >&5
26120echo "$as_me: failed program was:" >&5
26121sed 's/^/| /' conftest.$ac_ext >&5
26122
26123( exit $ac_status )
26124no_gtk=yes
26125fi
ac1cb8d3 26126rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26127fi
26128 CFLAGS="$ac_save_CFLAGS"
26129 LIBS="$ac_save_LIBS"
26130 fi
26131 fi
26132 if test "x$no_gtk" = x ; then
26133 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
26134echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
26135 wx_cv_lib_gtk=2.0
26136 else
26137 echo "$as_me:$LINENO: result: no" >&5
26138echo "${ECHO_T}no" >&6
26139 if test "$PKG_CONFIG" = "no" ; then
26140 echo "*** A new enough version of pkg-config was not found."
26141 echo "*** See http://pkgconfig.sourceforge.net"
26142 else
26143 if test -f conf.gtktest ; then
26144 :
26145 else
26146 echo "*** Could not run GTK+ test program, checking why..."
26147 ac_save_CFLAGS="$CFLAGS"
26148 ac_save_LIBS="$LIBS"
26149 CFLAGS="$CFLAGS $GTK_CFLAGS"
26150 LIBS="$LIBS $GTK_LIBS"
26151 cat >conftest.$ac_ext <<_ACEOF
26152/* confdefs.h. */
26153_ACEOF
26154cat confdefs.h >>conftest.$ac_ext
26155cat >>conftest.$ac_ext <<_ACEOF
26156/* end confdefs.h. */
26157
26158#include <gtk/gtk.h>
26159#include <stdio.h>
26160
26161int
26162main ()
26163{
26164 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26165 ;
26166 return 0;
26167}
26168_ACEOF
26169rm -f conftest.$ac_objext conftest$ac_exeext
26170if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26171 (eval $ac_link) 2>conftest.er1
a848cd7e 26172 ac_status=$?
ac1cb8d3
VS
26173 grep -v '^ *+' conftest.er1 >conftest.err
26174 rm -f conftest.er1
26175 cat conftest.err >&5
a848cd7e
SC
26176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177 (exit $ac_status); } &&
5ff751d6 26178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26180 (eval $ac_try) 2>&5
26181 ac_status=$?
26182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26183 (exit $ac_status); }; } &&
26184 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26186 (eval $ac_try) 2>&5
26187 ac_status=$?
26188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189 (exit $ac_status); }; }; then
26190 echo "*** The test program compiled, but did not run. This usually means"
26191 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
26192 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
26193 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26194 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26195 echo "*** is required on your system"
26196 echo "***"
26197 echo "*** If you have an old version installed, it is best to remove it, although"
26198 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26199else
26200 echo "$as_me: failed program was:" >&5
26201sed 's/^/| /' conftest.$ac_ext >&5
26202
26203 echo "*** The test program failed to compile or link. See the file config.log for the"
26204 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
26205fi
ac1cb8d3
VS
26206rm -f conftest.err conftest.$ac_objext \
26207 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26208 CFLAGS="$ac_save_CFLAGS"
26209 LIBS="$ac_save_LIBS"
26210 fi
26211 fi
26212 GTK_CFLAGS=""
26213 GTK_LIBS=""
26214 :
26215 fi
26216
26217
26218 rm -f conf.gtktest
26219
5001df0d
MW
26220
26221 case "${host}" in
26222 *-*-solaris2* )
26223 if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
26224 GTK_CFLAGS=`echo $GTK_CFLAGS | sed 's/-mt//'`
26225 GTK_LIBS=`echo $GTK_LIBS | sed 's/-mt//'`
26226 fi
26227 if test "$wxUSE_SHARED" != "yes"; then
26228 GTK_LIBS="$GTK_LIBS -lX11"
26229 fi
26230 esac
f597b41c
MW
26231 fi
26232
f34ca037
MW
26233 if test -z "$wx_cv_lib_gtk"; then
26234 if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
a848cd7e
SC
26235
26236# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26237if test "${with_gtk_prefix+set}" = set; then
26238 withval="$with_gtk_prefix"
26239 gtk_config_prefix="$withval"
26240else
26241 gtk_config_prefix=""
26242fi;
26243
26244# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26245if test "${with_gtk_exec_prefix+set}" = set; then
26246 withval="$with_gtk_exec_prefix"
26247 gtk_config_exec_prefix="$withval"
26248else
26249 gtk_config_exec_prefix=""
26250fi;
26251# Check whether --enable-gtktest or --disable-gtktest was given.
26252if test "${enable_gtktest+set}" = set; then
26253 enableval="$enable_gtktest"
26254
26255else
26256 enable_gtktest=yes
26257fi;
26258
26259 for module in . $GTK_MODULES
26260 do
26261 case "$module" in
26262 gthread)
26263 gtk_config_args="$gtk_config_args gthread"
26264 ;;
26265 esac
26266 done
26267
26268 if test x$gtk_config_exec_prefix != x ; then
26269 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26270 if test x${GTK_CONFIG+set} != xset ; then
26271 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26272 fi
26273 fi
26274 if test x$gtk_config_prefix != x ; then
26275 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26276 if test x${GTK_CONFIG+set} != xset ; then
26277 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26278 fi
26279 fi
26280
26281 # Extract the first word of "gtk-config", so it can be a program name with args.
26282set dummy gtk-config; ac_word=$2
26283echo "$as_me:$LINENO: checking for $ac_word" >&5
26284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26285if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26286 echo $ECHO_N "(cached) $ECHO_C" >&6
26287else
26288 case $GTK_CONFIG in
26289 [\\/]* | ?:[\\/]*)
26290 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26291 ;;
26292 *)
26293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26294for as_dir in $PATH
26295do
26296 IFS=$as_save_IFS
26297 test -z "$as_dir" && as_dir=.
26298 for ac_exec_ext in '' $ac_executable_extensions; do
26299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26300 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26302 break 2
26303 fi
26304done
26305done
26306
26307 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26308 ;;
26309esac
26310fi
26311GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26312
26313if test -n "$GTK_CONFIG"; then
26314 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26315echo "${ECHO_T}$GTK_CONFIG" >&6
26316else
26317 echo "$as_me:$LINENO: result: no" >&5
26318echo "${ECHO_T}no" >&6
26319fi
26320
26321 min_gtk_version=1.2.7
26322 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26323echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26324 no_gtk=""
26325 if test "$GTK_CONFIG" = "no" ; then
26326 no_gtk=yes
26327 else
26328 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26329 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26330 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26331 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26332 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26333 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26334 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26335 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26336 if test "x$enable_gtktest" = "xyes" ; then
26337 ac_save_CFLAGS="$CFLAGS"
26338 ac_save_LIBS="$LIBS"
26339 CFLAGS="$CFLAGS $GTK_CFLAGS"
26340 LIBS="$GTK_LIBS $LIBS"
26341 rm -f conf.gtktest
26342 if test "$cross_compiling" = yes; then
26343 echo $ac_n "cross compiling; assumed OK... $ac_c"
26344else
26345 cat >conftest.$ac_ext <<_ACEOF
26346/* confdefs.h. */
26347_ACEOF
26348cat confdefs.h >>conftest.$ac_ext
26349cat >>conftest.$ac_ext <<_ACEOF
26350/* end confdefs.h. */
26351
26352#include <gtk/gtk.h>
26353#include <stdio.h>
26354#include <stdlib.h>
26355
26356int
26357main ()
26358{
26359 int major, minor, micro;
26360 char *tmp_version;
26361
26362 system ("touch conf.gtktest");
26363
26364 /* HP/UX 9 (%@#!) writes to sscanf strings */
26365 tmp_version = g_strdup("$min_gtk_version");
26366 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26367 printf("%s, bad version string\n", "$min_gtk_version");
26368 exit(1);
26369 }
26370
26371 if ((gtk_major_version != $gtk_config_major_version) ||
26372 (gtk_minor_version != $gtk_config_minor_version) ||
26373 (gtk_micro_version != $gtk_config_micro_version))
26374 {
26375 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26376 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26377 gtk_major_version, gtk_minor_version, gtk_micro_version);
26378 printf ("*** was found! If gtk-config was correct, then it is best\n");
26379 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26380 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26381 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26382 printf("*** required on your system.\n");
26383 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26384 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26385 printf("*** before re-running configure\n");
26386 }
26387#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26388 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26389 (gtk_minor_version != GTK_MINOR_VERSION) ||
26390 (gtk_micro_version != GTK_MICRO_VERSION))
26391 {
26392 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26393 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26394 printf("*** library (version %d.%d.%d)\n",
26395 gtk_major_version, gtk_minor_version, gtk_micro_version);
26396 }
26397#endif /* defined (GTK_MAJOR_VERSION) ... */
26398 else
26399 {
26400 if ((gtk_major_version > major) ||
26401 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26402 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26403 {
26404 return 0;
26405 }
26406 else
26407 {
26408 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26409 gtk_major_version, gtk_minor_version, gtk_micro_version);
26410 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26411 major, minor, micro);
26412 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26413 printf("***\n");
26414 printf("*** If you have already installed a sufficiently new version, this error\n");
26415 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26416 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26417 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26418 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26419 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26420 printf("*** so that the correct libraries are found at run-time))\n");
26421 }
26422 }
26423 return 1;
26424}
26425
26426_ACEOF
26427rm -f conftest$ac_exeext
26428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26429 (eval $ac_link) 2>&5
26430 ac_status=$?
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26434 (eval $ac_try) 2>&5
26435 ac_status=$?
26436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26437 (exit $ac_status); }; }; then
26438 :
26439else
26440 echo "$as_me: program exited with status $ac_status" >&5
26441echo "$as_me: failed program was:" >&5
26442sed 's/^/| /' conftest.$ac_ext >&5
26443
26444( exit $ac_status )
26445no_gtk=yes
26446fi
ac1cb8d3 26447rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26448fi
26449 CFLAGS="$ac_save_CFLAGS"
26450 LIBS="$ac_save_LIBS"
26451 fi
26452 fi
26453 if test "x$no_gtk" = x ; then
26454 echo "$as_me:$LINENO: result: yes" >&5
26455echo "${ECHO_T}yes" >&6
26456 wx_cv_lib_gtk=1.2.7
26457 else
26458 echo "$as_me:$LINENO: result: no" >&5
26459echo "${ECHO_T}no" >&6
26460 if test "$GTK_CONFIG" = "no" ; then
26461 echo "*** The gtk-config script installed by GTK could not be found"
26462 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26463 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26464 echo "*** full path to gtk-config."
26465 else
26466 if test -f conf.gtktest ; then
26467 :
26468 else
26469 echo "*** Could not run GTK test program, checking why..."
26470 CFLAGS="$CFLAGS $GTK_CFLAGS"
26471 LIBS="$LIBS $GTK_LIBS"
26472 cat >conftest.$ac_ext <<_ACEOF
26473/* confdefs.h. */
26474_ACEOF
26475cat confdefs.h >>conftest.$ac_ext
26476cat >>conftest.$ac_ext <<_ACEOF
26477/* end confdefs.h. */
26478
26479#include <gtk/gtk.h>
26480#include <stdio.h>
26481
26482int
26483main ()
26484{
26485 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26486 ;
26487 return 0;
26488}
26489_ACEOF
26490rm -f conftest.$ac_objext conftest$ac_exeext
26491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26492 (eval $ac_link) 2>conftest.er1
a848cd7e 26493 ac_status=$?
ac1cb8d3
VS
26494 grep -v '^ *+' conftest.er1 >conftest.err
26495 rm -f conftest.er1
26496 cat conftest.err >&5
a848cd7e
SC
26497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498 (exit $ac_status); } &&
5ff751d6 26499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26501 (eval $ac_try) 2>&5
26502 ac_status=$?
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); }; } &&
26505 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26507 (eval $ac_try) 2>&5
26508 ac_status=$?
26509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510 (exit $ac_status); }; }; then
26511 echo "*** The test program compiled, but did not run. This usually means"
26512 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26513 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26514 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26515 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26516 echo "*** is required on your system"
26517 echo "***"
26518 echo "*** If you have an old version installed, it is best to remove it, although"
26519 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26520 echo "***"
26521 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26522 echo "*** came with the system with the command"
26523 echo "***"
26524 echo "*** rpm --erase --nodeps gtk gtk-devel"
26525else
26526 echo "$as_me: failed program was:" >&5
26527sed 's/^/| /' conftest.$ac_ext >&5
26528
26529 echo "*** The test program failed to compile or link. See the file config.log for the"
26530 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26531 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26532 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26533fi
ac1cb8d3
VS
26534rm -f conftest.err conftest.$ac_objext \
26535 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26536 CFLAGS="$ac_save_CFLAGS"
26537 LIBS="$ac_save_LIBS"
26538 fi
26539 fi
26540 GTK_CFLAGS=""
26541 GTK_LIBS=""
26542 :
26543 fi
26544
26545
26546 rm -f conf.gtktest
26547
26548
f34ca037 26549 if test -z "$wx_cv_lib_gtk"; then
a848cd7e
SC
26550
26551# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
26552if test "${with_gtk_prefix+set}" = set; then
26553 withval="$with_gtk_prefix"
26554 gtk_config_prefix="$withval"
26555else
26556 gtk_config_prefix=""
26557fi;
26558
26559# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
26560if test "${with_gtk_exec_prefix+set}" = set; then
26561 withval="$with_gtk_exec_prefix"
26562 gtk_config_exec_prefix="$withval"
26563else
26564 gtk_config_exec_prefix=""
26565fi;
26566# Check whether --enable-gtktest or --disable-gtktest was given.
26567if test "${enable_gtktest+set}" = set; then
26568 enableval="$enable_gtktest"
26569
26570else
26571 enable_gtktest=yes
26572fi;
26573
26574 for module in . $GTK_MODULES
26575 do
26576 case "$module" in
26577 gthread)
26578 gtk_config_args="$gtk_config_args gthread"
26579 ;;
26580 esac
26581 done
26582
26583 if test x$gtk_config_exec_prefix != x ; then
26584 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
26585 if test x${GTK_CONFIG+set} != xset ; then
26586 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
26587 fi
26588 fi
26589 if test x$gtk_config_prefix != x ; then
26590 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
26591 if test x${GTK_CONFIG+set} != xset ; then
26592 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
26593 fi
26594 fi
26595
26596 # Extract the first word of "gtk-config", so it can be a program name with args.
26597set dummy gtk-config; ac_word=$2
26598echo "$as_me:$LINENO: checking for $ac_word" >&5
26599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26600if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
26601 echo $ECHO_N "(cached) $ECHO_C" >&6
26602else
26603 case $GTK_CONFIG in
26604 [\\/]* | ?:[\\/]*)
26605 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
26606 ;;
26607 *)
26608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26609for as_dir in $PATH
26610do
26611 IFS=$as_save_IFS
26612 test -z "$as_dir" && as_dir=.
26613 for ac_exec_ext in '' $ac_executable_extensions; do
26614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26615 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26617 break 2
26618 fi
26619done
26620done
26621
26622 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
26623 ;;
26624esac
26625fi
26626GTK_CONFIG=$ac_cv_path_GTK_CONFIG
26627
26628if test -n "$GTK_CONFIG"; then
26629 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
26630echo "${ECHO_T}$GTK_CONFIG" >&6
26631else
26632 echo "$as_me:$LINENO: result: no" >&5
26633echo "${ECHO_T}no" >&6
26634fi
26635
26636 min_gtk_version=1.2.3
26637 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
26638echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
26639 no_gtk=""
26640 if test "$GTK_CONFIG" = "no" ; then
26641 no_gtk=yes
26642 else
26643 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
26644 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
26645 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
26646 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
26647 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
26648 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
26649 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
26650 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
26651 if test "x$enable_gtktest" = "xyes" ; then
26652 ac_save_CFLAGS="$CFLAGS"
26653 ac_save_LIBS="$LIBS"
26654 CFLAGS="$CFLAGS $GTK_CFLAGS"
26655 LIBS="$GTK_LIBS $LIBS"
26656 rm -f conf.gtktest
26657 if test "$cross_compiling" = yes; then
26658 echo $ac_n "cross compiling; assumed OK... $ac_c"
26659else
26660 cat >conftest.$ac_ext <<_ACEOF
26661/* confdefs.h. */
26662_ACEOF
26663cat confdefs.h >>conftest.$ac_ext
26664cat >>conftest.$ac_ext <<_ACEOF
26665/* end confdefs.h. */
26666
26667#include <gtk/gtk.h>
26668#include <stdio.h>
26669#include <stdlib.h>
26670
26671int
26672main ()
26673{
26674 int major, minor, micro;
26675 char *tmp_version;
26676
26677 system ("touch conf.gtktest");
26678
26679 /* HP/UX 9 (%@#!) writes to sscanf strings */
26680 tmp_version = g_strdup("$min_gtk_version");
26681 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
26682 printf("%s, bad version string\n", "$min_gtk_version");
26683 exit(1);
26684 }
26685
26686 if ((gtk_major_version != $gtk_config_major_version) ||
26687 (gtk_minor_version != $gtk_config_minor_version) ||
26688 (gtk_micro_version != $gtk_config_micro_version))
26689 {
26690 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
26691 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
26692 gtk_major_version, gtk_minor_version, gtk_micro_version);
26693 printf ("*** was found! If gtk-config was correct, then it is best\n");
26694 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
26695 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
26696 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
26697 printf("*** required on your system.\n");
26698 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
26699 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
26700 printf("*** before re-running configure\n");
26701 }
26702#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
26703 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
26704 (gtk_minor_version != GTK_MINOR_VERSION) ||
26705 (gtk_micro_version != GTK_MICRO_VERSION))
26706 {
26707 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
26708 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
26709 printf("*** library (version %d.%d.%d)\n",
26710 gtk_major_version, gtk_minor_version, gtk_micro_version);
26711 }
26712#endif /* defined (GTK_MAJOR_VERSION) ... */
26713 else
26714 {
26715 if ((gtk_major_version > major) ||
26716 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
26717 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
26718 {
26719 return 0;
26720 }
26721 else
26722 {
26723 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
26724 gtk_major_version, gtk_minor_version, gtk_micro_version);
26725 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
26726 major, minor, micro);
26727 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
26728 printf("***\n");
26729 printf("*** If you have already installed a sufficiently new version, this error\n");
26730 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
26731 printf("*** being found. The easiest way to fix this is to remove the old version\n");
26732 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
26733 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
26734 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
26735 printf("*** so that the correct libraries are found at run-time))\n");
26736 }
26737 }
26738 return 1;
26739}
26740
26741_ACEOF
26742rm -f conftest$ac_exeext
26743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26744 (eval $ac_link) 2>&5
26745 ac_status=$?
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26749 (eval $ac_try) 2>&5
26750 ac_status=$?
26751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26752 (exit $ac_status); }; }; then
26753 :
26754else
26755 echo "$as_me: program exited with status $ac_status" >&5
26756echo "$as_me: failed program was:" >&5
26757sed 's/^/| /' conftest.$ac_ext >&5
26758
26759( exit $ac_status )
26760no_gtk=yes
26761fi
ac1cb8d3 26762rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
26763fi
26764 CFLAGS="$ac_save_CFLAGS"
26765 LIBS="$ac_save_LIBS"
26766 fi
26767 fi
26768 if test "x$no_gtk" = x ; then
26769 echo "$as_me:$LINENO: result: yes" >&5
26770echo "${ECHO_T}yes" >&6
26771 wx_cv_lib_gtk=1.2.3
26772 else
26773 echo "$as_me:$LINENO: result: no" >&5
26774echo "${ECHO_T}no" >&6
26775 if test "$GTK_CONFIG" = "no" ; then
26776 echo "*** The gtk-config script installed by GTK could not be found"
26777 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
26778 echo "*** your path, or set the GTK_CONFIG environment variable to the"
26779 echo "*** full path to gtk-config."
26780 else
26781 if test -f conf.gtktest ; then
26782 :
26783 else
26784 echo "*** Could not run GTK test program, checking why..."
26785 CFLAGS="$CFLAGS $GTK_CFLAGS"
26786 LIBS="$LIBS $GTK_LIBS"
26787 cat >conftest.$ac_ext <<_ACEOF
26788/* confdefs.h. */
26789_ACEOF
26790cat confdefs.h >>conftest.$ac_ext
26791cat >>conftest.$ac_ext <<_ACEOF
26792/* end confdefs.h. */
26793
26794#include <gtk/gtk.h>
26795#include <stdio.h>
26796
26797int
26798main ()
26799{
26800 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
26801 ;
26802 return 0;
26803}
26804_ACEOF
26805rm -f conftest.$ac_objext conftest$ac_exeext
26806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 26807 (eval $ac_link) 2>conftest.er1
a848cd7e 26808 ac_status=$?
ac1cb8d3
VS
26809 grep -v '^ *+' conftest.er1 >conftest.err
26810 rm -f conftest.er1
26811 cat conftest.err >&5
a848cd7e
SC
26812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); } &&
5ff751d6 26814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
26815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26816 (eval $ac_try) 2>&5
26817 ac_status=$?
26818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26819 (exit $ac_status); }; } &&
26820 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
26821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26822 (eval $ac_try) 2>&5
26823 ac_status=$?
26824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825 (exit $ac_status); }; }; then
26826 echo "*** The test program compiled, but did not run. This usually means"
26827 echo "*** that the run-time linker is not finding GTK or finding the wrong"
26828 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
26829 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
26830 echo "*** to the installed location Also, make sure you have run ldconfig if that"
26831 echo "*** is required on your system"
26832 echo "***"
26833 echo "*** If you have an old version installed, it is best to remove it, although"
26834 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
26835 echo "***"
26836 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
26837 echo "*** came with the system with the command"
26838 echo "***"
26839 echo "*** rpm --erase --nodeps gtk gtk-devel"
26840else
26841 echo "$as_me: failed program was:" >&5
26842sed 's/^/| /' conftest.$ac_ext >&5
26843
26844 echo "*** The test program failed to compile or link. See the file config.log for the"
26845 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
26846 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
26847 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
26848fi
ac1cb8d3
VS
26849rm -f conftest.err conftest.$ac_objext \
26850 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
26851 CFLAGS="$ac_save_CFLAGS"
26852 LIBS="$ac_save_LIBS"
26853 fi
26854 fi
26855 GTK_CFLAGS=""
26856 GTK_LIBS=""
26857 :
26858 fi
26859
26860
26861 rm -f conf.gtktest
26862
f34ca037 26863 fi
a848cd7e
SC
26864 fi
26865 fi
26866
26867 if test -z "$wx_cv_lib_gtk"; then
26868 wx_cv_lib_gtk=none
26869 else
26870 wx_cv_cflags_gtk=$GTK_CFLAGS
d2822091 26871 wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
a848cd7e
SC
26872 fi
26873
26874
26875fi
26876
26877
26878 if test "$gtk_version_cached" = 1; then
26879 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
26880echo "${ECHO_T}$wx_cv_lib_gtk" >&6
26881 fi
26882
26883 case "$wx_cv_lib_gtk" in
26884 2.0) WXGTK20=1
26885 TOOLKIT_VERSION=2
26886 ;;
26887 1.2.7) WXGTK127=1
26888 WXGTK12=1
26889 ;;
26890 1.2.3) WXGTK12=1
26891 ;;
26892 *) { { echo "$as_me:$LINENO: error:
f597b41c
MW
26893The development files for GTK+ were not found. For GTK+ 2, please
26894ensure that pkg-config is in the path and that gtk+-2.0.pc is
26895installed. For GTK+ 1.2 please check that gtk-config is in the path,
26896and that the version is 1.2.3 or above. Also check that the
26897libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26898--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26899 " >&5
26900echo "$as_me: error:
f597b41c
MW
26901The development files for GTK+ were not found. For GTK+ 2, please
26902ensure that pkg-config is in the path and that gtk+-2.0.pc is
26903installed. For GTK+ 1.2 please check that gtk-config is in the path,
26904and that the version is 1.2.3 or above. Also check that the
26905libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
26906--libs' are in the LD_LIBRARY_PATH or equivalent.
a848cd7e
SC
26907 " >&2;}
26908 { (exit 1); exit 1; }; }
26909 ;;
26910 esac
26911
26912 if test "$WXGTK20" = 1; then
304205f1
VS
26913 save_CFLAGS="$CFLAGS"
26914 save_LIBS="$LIBS"
9d271838 26915 CFLAGS="$CFLAGS $wx_cv_cflags_gtk"
abc736fd 26916 LIBS="$LIBS $wx_cv_libs_gtk"
304205f1 26917
d12aef51
VZ
26918 echo "$as_me:$LINENO: checking if gtk_icon_size_lookup is missing" >&5
26919echo $ECHO_N "checking if gtk_icon_size_lookup is missing... $ECHO_C" >&6
26920 cat >conftest.$ac_ext <<_ACEOF
304205f1
VS
26921/* confdefs.h. */
26922_ACEOF
26923cat confdefs.h >>conftest.$ac_ext
26924cat >>conftest.$ac_ext <<_ACEOF
26925/* end confdefs.h. */
304205f1 26926
d12aef51 26927 #include <gtk/gtk.h>
304205f1 26928
d12aef51
VZ
26929int
26930main ()
26931{
304205f1 26932
d12aef51 26933 void *f = gtk_icon_size_lookup;
abc736fd
MW
26934
26935 ;
26936 return 0;
26937}
26938_ACEOF
26939rm -f conftest.$ac_objext
26940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26941 (eval $ac_compile) 2>conftest.er1
26942 ac_status=$?
26943 grep -v '^ *+' conftest.er1 >conftest.err
26944 rm -f conftest.er1
26945 cat conftest.err >&5
26946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26947 (exit $ac_status); } &&
5ff751d6 26948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
26949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26950 (eval $ac_try) 2>&5
26951 ac_status=$?
26952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953 (exit $ac_status); }; } &&
26954 { ac_try='test -s conftest.$ac_objext'
26955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26956 (eval $ac_try) 2>&5
26957 ac_status=$?
26958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959 (exit $ac_status); }; }; then
26960
26961 echo "$as_me:$LINENO: result: no" >&5
26962echo "${ECHO_T}no" >&6
26963
26964else
26965 echo "$as_me: failed program was:" >&5
26966sed 's/^/| /' conftest.$ac_ext >&5
26967
26968
26969 cat >>confdefs.h <<\_ACEOF
26970#define NEED_GTK_ICON_SIZE_LOOKUP 1
26971_ACEOF
26972
26973 echo "$as_me:$LINENO: result: yes" >&5
26974echo "${ECHO_T}yes" >&6
26975
26976fi
26977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26978
9755e73b
VS
26979 echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
26980echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6
26981 cat >conftest.$ac_ext <<_ACEOF
26982/* confdefs.h. */
26983_ACEOF
26984cat confdefs.h >>conftest.$ac_ext
26985cat >>conftest.$ac_ext <<_ACEOF
26986/* end confdefs.h. */
26987
26988 #include <gtk/gtk.h>
26989
26990int
26991main ()
26992{
26993
26994 #if !GTK_CHECK_VERSION(2,4,0)
04e525a0 26995 Not GTK+ 2.4
9755e73b
VS
26996 #endif
26997
26998 ;
26999 return 0;
27000}
27001_ACEOF
27002rm -f conftest.$ac_objext
27003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27004 (eval $ac_compile) 2>conftest.er1
27005 ac_status=$?
27006 grep -v '^ *+' conftest.er1 >conftest.err
27007 rm -f conftest.er1
27008 cat conftest.err >&5
27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010 (exit $ac_status); } &&
5ff751d6 27011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9755e73b
VS
27012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27013 (eval $ac_try) 2>&5
27014 ac_status=$?
27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27016 (exit $ac_status); }; } &&
27017 { ac_try='test -s conftest.$ac_objext'
27018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27019 (eval $ac_try) 2>&5
27020 ac_status=$?
27021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27022 (exit $ac_status); }; }; then
27023
27024 cat >>confdefs.h <<\_ACEOF
27025#define __WXGTK24__ 1
27026_ACEOF
27027
27028 echo "$as_me:$LINENO: result: yes" >&5
27029echo "${ECHO_T}yes" >&6
27030
27031else
27032 echo "$as_me: failed program was:" >&5
27033sed 's/^/| /' conftest.$ac_ext >&5
27034
27035
27036 echo "$as_me:$LINENO: result: no" >&5
27037echo "${ECHO_T}no" >&6
27038
27039fi
27040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27041
304205f1
VS
27042 CFLAGS="$save_CFLAGS"
27043 LIBS="$save_LIBS"
a848cd7e
SC
27044 else
27045 if test "$wxUSE_UNICODE" = "yes"; then
27046 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
27047echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
27048 wxUSE_UNICODE=no
27049 fi
27050 fi
27051
27052 if test "$USE_DARWIN" != 1; then
27053
27054for ac_func in poll
27055do
27056as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27057echo "$as_me:$LINENO: checking for $ac_func" >&5
27058echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27059if eval "test \"\${$as_ac_var+set}\" = set"; then
27060 echo $ECHO_N "(cached) $ECHO_C" >&6
27061else
27062 cat >conftest.$ac_ext <<_ACEOF
27063/* confdefs.h. */
27064_ACEOF
27065cat confdefs.h >>conftest.$ac_ext
27066cat >>conftest.$ac_ext <<_ACEOF
27067/* end confdefs.h. */
ac1cb8d3
VS
27068/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27070#define $ac_func innocuous_$ac_func
27071
a848cd7e
SC
27072/* System header to define __stub macros and hopefully few prototypes,
27073 which can conflict with char $ac_func (); below.
27074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27075 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27076
a848cd7e
SC
27077#ifdef __STDC__
27078# include <limits.h>
27079#else
27080# include <assert.h>
27081#endif
ac1cb8d3
VS
27082
27083#undef $ac_func
27084
a848cd7e
SC
27085/* Override any gcc2 internal prototype to avoid an error. */
27086#ifdef __cplusplus
27087extern "C"
27088{
27089#endif
27090/* We use char because int might match the return type of a gcc2
27091 builtin and then its argument prototype would still apply. */
27092char $ac_func ();
27093/* The GNU C library defines this for functions which it implements
27094 to always fail with ENOSYS. Some functions are actually named
27095 something starting with __ and the normal name is an alias. */
27096#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27097choke me
27098#else
27099char (*f) () = $ac_func;
27100#endif
27101#ifdef __cplusplus
27102}
27103#endif
27104
27105int
27106main ()
27107{
27108return f != $ac_func;
27109 ;
27110 return 0;
27111}
27112_ACEOF
27113rm -f conftest.$ac_objext conftest$ac_exeext
27114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27115 (eval $ac_link) 2>conftest.er1
a848cd7e 27116 ac_status=$?
ac1cb8d3
VS
27117 grep -v '^ *+' conftest.er1 >conftest.err
27118 rm -f conftest.er1
27119 cat conftest.err >&5
a848cd7e
SC
27120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121 (exit $ac_status); } &&
5ff751d6 27122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27124 (eval $ac_try) 2>&5
27125 ac_status=$?
27126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27127 (exit $ac_status); }; } &&
27128 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27130 (eval $ac_try) 2>&5
27131 ac_status=$?
27132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27133 (exit $ac_status); }; }; then
27134 eval "$as_ac_var=yes"
27135else
27136 echo "$as_me: failed program was:" >&5
27137sed 's/^/| /' conftest.$ac_ext >&5
27138
27139eval "$as_ac_var=no"
27140fi
ac1cb8d3
VS
27141rm -f conftest.err conftest.$ac_objext \
27142 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27143fi
27144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27145echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27146if test `eval echo '${'$as_ac_var'}'` = yes; then
27147 cat >>confdefs.h <<_ACEOF
27148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27149_ACEOF
27150
27151fi
27152done
27153
27154 fi
27155
27156 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
27157 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
27158
27159 AFMINSTALL=afminstall
27160 TOOLKIT=GTK
27161 GUIDIST=GTK_DIST
27162
27163 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
27164echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
27165if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
27166 echo $ECHO_N "(cached) $ECHO_C" >&6
27167else
27168 ac_check_lib_save_LIBS=$LIBS
27169LIBS="-lgdk $LIBS"
27170cat >conftest.$ac_ext <<_ACEOF
27171/* confdefs.h. */
27172_ACEOF
27173cat confdefs.h >>conftest.$ac_ext
27174cat >>conftest.$ac_ext <<_ACEOF
27175/* end confdefs.h. */
27176
27177/* Override any gcc2 internal prototype to avoid an error. */
27178#ifdef __cplusplus
27179extern "C"
27180#endif
27181/* We use char because int might match the return type of a gcc2
27182 builtin and then its argument prototype would still apply. */
27183char gdk_im_open ();
27184int
27185main ()
27186{
27187gdk_im_open ();
27188 ;
27189 return 0;
27190}
27191_ACEOF
27192rm -f conftest.$ac_objext conftest$ac_exeext
27193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27194 (eval $ac_link) 2>conftest.er1
a848cd7e 27195 ac_status=$?
ac1cb8d3
VS
27196 grep -v '^ *+' conftest.er1 >conftest.err
27197 rm -f conftest.er1
27198 cat conftest.err >&5
a848cd7e
SC
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); } &&
5ff751d6 27201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203 (eval $ac_try) 2>&5
27204 ac_status=$?
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; } &&
27207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27209 (eval $ac_try) 2>&5
27210 ac_status=$?
27211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212 (exit $ac_status); }; }; then
27213 ac_cv_lib_gdk_gdk_im_open=yes
27214else
27215 echo "$as_me: failed program was:" >&5
27216sed 's/^/| /' conftest.$ac_ext >&5
27217
27218ac_cv_lib_gdk_gdk_im_open=no
27219fi
ac1cb8d3
VS
27220rm -f conftest.err conftest.$ac_objext \
27221 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27222LIBS=$ac_check_lib_save_LIBS
27223fi
27224echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
27225echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
27226if test $ac_cv_lib_gdk_gdk_im_open = yes; then
27227 cat >>confdefs.h <<\_ACEOF
27228#define HAVE_XIM 1
27229_ACEOF
27230
27231fi
27232
27233
27234
27235 if test "$wxUSE_GPE" = "yes"; then
27236 echo "$as_me:$LINENO: checking for gpewidget library" >&5
27237echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
27238
0ad5d837
VZ
27239 ac_find_libraries=
27240 for ac_dir in $SEARCH_LIB;
a848cd7e 27241 do
3eca31dc 27242 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
27243 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
27244 ac_find_libraries=$ac_dir
27245 break 2
27246 fi
27247 done
27248 done
27249
27250 if test "$ac_find_libraries" != "" ; then
27251
0ad5d837 27252 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
27253 ac_path_to_link=""
27254 else
0ad5d837
VZ
27255 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
27256 result=$?
27257 if test $result = 0; then
27258 ac_path_to_link=""
27259 else
27260 ac_path_to_link=" -L$ac_find_libraries"
27261 fi
a848cd7e
SC
27262 fi
27263
27264 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
27265 WXGPE=1
0ad5d837
VZ
27266 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
27267echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
27268 else
27269 echo "$as_me:$LINENO: result: not found" >&5
27270echo "${ECHO_T}not found" >&6
27271 fi
27272
27273 fi
27274 fi
27275
27276 if test "$wxUSE_MGL" = 1; then
27277 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
27278echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
27279 if test "x$MGL_ROOT" = x ; then
27280 echo "$as_me:$LINENO: result: not found" >&5
27281echo "${ECHO_T}not found" >&6
27282 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
27283echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
27284 { (exit 1); exit 1; }; }
27285 else
27286 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
27287echo "${ECHO_T}$MGL_ROOT" >&6
27288 fi
27289
27290 echo "$as_me:$LINENO: checking for libmgl location" >&5
27291echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
27292 case "${host}" in
27293 *-*-linux* )
27294 if test "x$wxUSE_SHARED" = xyes ; then
27295 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
27296 else
27297 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
27298 fi
27299 ;;
27300 *-pc-msdosdjgpp )
27301 mgl_os_candidates="dos32/dj2"
27302 ;;
27303 *)
27304 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
27305echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
27306 { (exit 1); exit 1; }; }
27307 esac
27308
27309 mgl_lib_type=""
27310 mgl_os=""
27311
27312 for mgl_os_i in $mgl_os_candidates ; do
27313 if test "x$mgl_os" = x ; then
27314 if test "$wxUSE_DEBUG_FLAG" = yes ; then
27315 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
27316 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
27317 mgl_lib_type=debug
27318 mgl_os=$mgl_os_i
27319 fi
27320 fi
27321 if test "x$mgl_lib_type" = x ; then
27322 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
27323 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
27324 mgl_lib_type=release
27325 mgl_os=$mgl_os_i
27326 fi
27327 fi
27328 fi
27329 done
27330
27331 if test "x$mgl_os" = x ; then
27332 echo "$as_me:$LINENO: result: not found" >&5
27333echo "${ECHO_T}not found" >&6
27334 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
27335echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
27336 { (exit 1); exit 1; }; }
27337 fi
27338 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
27339echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
27340
27341 wxUSE_UNIVERSAL="yes"
27342
27343 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
27344 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
27345
27346 AFMINSTALL=afminstall
27347 TOOLKIT=MGL
27348 GUIDIST=MGL_DIST
27349 fi
27350
27351 if test "$wxUSE_MICROWIN" = 1; then
27352 echo "$as_me:$LINENO: checking for MicroWindows" >&5
27353echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
27354 if test "x$MICROWINDOWS" = x ; then
27355 echo "$as_me:$LINENO: result: not found" >&5
27356echo "${ECHO_T}not found" >&6
27357 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
27358echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
27359 { (exit 1); exit 1; }; }
27360 else
27361 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
27362echo "${ECHO_T}$MICROWINDOWS" >&6
27363 fi
27364
27365 if test -f $MICROWINDOWS/lib/libmwin.a; then
27366 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
27367echo "${ECHO_T}MicroWindows' libraries found." >&6
27368 else
27369 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
27370echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
27371 { (exit 1); exit 1; }; }
27372 fi
27373
27374 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
27375 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
27376
27377 wxUSE_UNIVERSAL="yes"
27378
27379 AFMINSTALL=afminstall
27380 TOOLKIT=MICROWIN
27381 GUIDIST=MICROWIN_DIST
27382
27383 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
27384 fi
27385
74b84332 27386 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
5ff751d6
VZ
27387
27388if test "x$ac_path_x_has_been_run" != xyes; then
27389 echo "$as_me:$LINENO: checking for X" >&5
a848cd7e
SC
27390echo $ECHO_N "checking for X... $ECHO_C" >&6
27391
5ff751d6 27392ac_path_x_has_been_run=yes
a848cd7e
SC
27393
27394# Check whether --with-x or --without-x was given.
27395if test "${with_x+set}" = set; then
27396 withval="$with_x"
27397
27398fi;
27399# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27400if test "x$with_x" = xno; then
27401 # The user explicitly disabled X.
27402 have_x=disabled
27403else
27404 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
27405 # Both variables are already set.
27406 have_x=yes
27407 else
27408 if test "${ac_cv_have_x+set}" = set; then
27409 echo $ECHO_N "(cached) $ECHO_C" >&6
27410else
27411 # One or both of the vars are not set, and there is no cached value.
27412ac_x_includes=no ac_x_libraries=no
27413rm -fr conftest.dir
27414if mkdir conftest.dir; then
27415 cd conftest.dir
27416 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
27417 cat >Imakefile <<'_ACEOF'
27418acfindx:
27419 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
27420_ACEOF
27421 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
27422 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
27423 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
27424 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27425 for ac_extension in a so sl; do
27426 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
ac1cb8d3
VS
27427 test -f $ac_im_libdir/libX11.$ac_extension; then
27428 ac_im_usrlibdir=$ac_im_libdir; break
a848cd7e
SC
27429 fi
27430 done
27431 # Screen out bogus values from the imake configuration. They are
27432 # bogus both because they are the default anyway, and because
27433 # using them would break gcc on systems where it needs fixed includes.
27434 case $ac_im_incroot in
27435 /usr/include) ;;
27436 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27437 esac
27438 case $ac_im_usrlibdir in
27439 /usr/lib | /lib) ;;
27440 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27441 esac
27442 fi
27443 cd ..
27444 rm -fr conftest.dir
27445fi
27446
27447# Standard set of common directories for X headers.
27448# Check X11 before X11Rn because it is often a symlink to the current release.
27449ac_x_header_dirs='
27450/usr/X11/include
27451/usr/X11R6/include
27452/usr/X11R5/include
27453/usr/X11R4/include
27454
27455/usr/include/X11
27456/usr/include/X11R6
27457/usr/include/X11R5
27458/usr/include/X11R4
27459
27460/usr/local/X11/include
27461/usr/local/X11R6/include
27462/usr/local/X11R5/include
27463/usr/local/X11R4/include
27464
27465/usr/local/include/X11
27466/usr/local/include/X11R6
27467/usr/local/include/X11R5
27468/usr/local/include/X11R4
27469
27470/usr/X386/include
27471/usr/x386/include
27472/usr/XFree86/include/X11
27473
27474/usr/include
27475/usr/local/include
27476/usr/unsupported/include
27477/usr/athena/include
27478/usr/local/x11r5/include
27479/usr/lpp/Xamples/include
27480
27481/usr/openwin/include
27482/usr/openwin/share/include'
27483
27484if test "$ac_x_includes" = no; then
5ff751d6 27485 # Guess where to find include files, by looking for a specified header file.
a848cd7e
SC
27486 # First, try using that file with no special directory specified.
27487 cat >conftest.$ac_ext <<_ACEOF
27488/* confdefs.h. */
27489_ACEOF
27490cat confdefs.h >>conftest.$ac_ext
27491cat >>conftest.$ac_ext <<_ACEOF
27492/* end confdefs.h. */
5ff751d6 27493#include <X11/Xlib.h>
a848cd7e
SC
27494_ACEOF
27495if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27497 ac_status=$?
27498 grep -v '^ *+' conftest.er1 >conftest.err
27499 rm -f conftest.er1
27500 cat conftest.err >&5
27501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27502 (exit $ac_status); } >/dev/null; then
27503 if test -s conftest.err; then
27504 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 27505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
27506 else
27507 ac_cpp_err=
27508 fi
27509else
27510 ac_cpp_err=yes
27511fi
27512if test -z "$ac_cpp_err"; then
27513 # We can compile using X headers with no special include directory.
27514ac_x_includes=
27515else
27516 echo "$as_me: failed program was:" >&5
27517sed 's/^/| /' conftest.$ac_ext >&5
27518
27519 for ac_dir in $ac_x_header_dirs; do
5ff751d6 27520 if test -r "$ac_dir/X11/Xlib.h"; then
a848cd7e
SC
27521 ac_x_includes=$ac_dir
27522 break
27523 fi
27524done
27525fi
27526rm -f conftest.err conftest.$ac_ext
27527fi # $ac_x_includes = no
27528
27529if test "$ac_x_libraries" = no; then
27530 # Check for the libraries.
27531 # See if we find them without any special options.
27532 # Don't add to $LIBS permanently.
27533 ac_save_LIBS=$LIBS
5ff751d6 27534 LIBS="-lX11 $LIBS"
a848cd7e
SC
27535 cat >conftest.$ac_ext <<_ACEOF
27536/* confdefs.h. */
27537_ACEOF
27538cat confdefs.h >>conftest.$ac_ext
27539cat >>conftest.$ac_ext <<_ACEOF
27540/* end confdefs.h. */
5ff751d6 27541#include <X11/Xlib.h>
a848cd7e
SC
27542int
27543main ()
27544{
5ff751d6 27545XrmInitialize ()
a848cd7e
SC
27546 ;
27547 return 0;
27548}
27549_ACEOF
27550rm -f conftest.$ac_objext conftest$ac_exeext
27551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27552 (eval $ac_link) 2>conftest.er1
a848cd7e 27553 ac_status=$?
ac1cb8d3
VS
27554 grep -v '^ *+' conftest.er1 >conftest.err
27555 rm -f conftest.er1
27556 cat conftest.err >&5
a848cd7e
SC
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); } &&
5ff751d6 27559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27561 (eval $ac_try) 2>&5
27562 ac_status=$?
27563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564 (exit $ac_status); }; } &&
27565 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27567 (eval $ac_try) 2>&5
27568 ac_status=$?
27569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27570 (exit $ac_status); }; }; then
27571 LIBS=$ac_save_LIBS
27572# We can link X programs with no special library path.
27573ac_x_libraries=
27574else
27575 echo "$as_me: failed program was:" >&5
27576sed 's/^/| /' conftest.$ac_ext >&5
27577
27578LIBS=$ac_save_LIBS
27579for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27580do
27581 # Don't even attempt the hair of trying to link an X program!
27582 for ac_extension in a so sl; do
5ff751d6 27583 if test -r $ac_dir/libX11.$ac_extension; then
a848cd7e
SC
27584 ac_x_libraries=$ac_dir
27585 break 2
27586 fi
27587 done
27588done
27589fi
ac1cb8d3
VS
27590rm -f conftest.err conftest.$ac_objext \
27591 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27592fi # $ac_x_libraries = no
27593
27594if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
27595 # Didn't find X anywhere. Cache the known absence of X.
27596 ac_cv_have_x="have_x=no"
27597else
27598 # Record where we found X for the cache.
27599 ac_cv_have_x="have_x=yes \
ac1cb8d3 27600 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
a848cd7e
SC
27601fi
27602fi
27603
27604 fi
27605 eval "$ac_cv_have_x"
27606fi # $with_x != no
27607
27608if test "$have_x" != yes; then
27609 echo "$as_me:$LINENO: result: $have_x" >&5
27610echo "${ECHO_T}$have_x" >&6
27611 no_x=yes
27612else
27613 # If each of the values was on the command line, it overrides each guess.
27614 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27615 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27616 # Update the cache value to reflect the command line values.
27617 ac_cv_have_x="have_x=yes \
27618 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5ff751d6
VZ
27619 # It might be that x_includes is empty (headers are found in the
27620 # standard search path. Then output the corresponding message
27621 ac_out_x_includes=$x_includes
27622 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
27623 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
27624echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
a848cd7e
SC
27625fi
27626
5ff751d6 27627fi
a848cd7e
SC
27628if test "$no_x" = yes; then
27629 # Not all programs may use this symbol, but it does not hurt to define it.
27630
27631cat >>confdefs.h <<\_ACEOF
27632#define X_DISPLAY_MISSING 1
27633_ACEOF
27634
27635 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27636else
27637 if test -n "$x_includes"; then
27638 X_CFLAGS="$X_CFLAGS -I$x_includes"
27639 fi
27640
27641 # It would also be nice to do this for all -L options, not just this one.
27642 if test -n "$x_libraries"; then
27643 X_LIBS="$X_LIBS -L$x_libraries"
27644 # For Solaris; some versions of Sun CC require a space after -R and
27645 # others require no space. Words are not sufficient . . . .
27646 case `(uname -sr) 2>/dev/null` in
27647 "SunOS 5"*)
27648 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
27649echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
27650 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27651 cat >conftest.$ac_ext <<_ACEOF
27652/* confdefs.h. */
27653_ACEOF
27654cat confdefs.h >>conftest.$ac_ext
27655cat >>conftest.$ac_ext <<_ACEOF
27656/* end confdefs.h. */
27657
27658int
27659main ()
27660{
27661
27662 ;
27663 return 0;
27664}
27665_ACEOF
27666rm -f conftest.$ac_objext conftest$ac_exeext
27667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27668 (eval $ac_link) 2>conftest.er1
a848cd7e 27669 ac_status=$?
ac1cb8d3
VS
27670 grep -v '^ *+' conftest.er1 >conftest.err
27671 rm -f conftest.er1
27672 cat conftest.err >&5
a848cd7e
SC
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); } &&
5ff751d6 27675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27677 (eval $ac_try) 2>&5
27678 ac_status=$?
27679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27680 (exit $ac_status); }; } &&
27681 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27683 (eval $ac_try) 2>&5
27684 ac_status=$?
27685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27686 (exit $ac_status); }; }; then
27687 ac_R_nospace=yes
27688else
27689 echo "$as_me: failed program was:" >&5
27690sed 's/^/| /' conftest.$ac_ext >&5
27691
27692ac_R_nospace=no
27693fi
ac1cb8d3
VS
27694rm -f conftest.err conftest.$ac_objext \
27695 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27696 if test $ac_R_nospace = yes; then
27697 echo "$as_me:$LINENO: result: no" >&5
27698echo "${ECHO_T}no" >&6
27699 X_LIBS="$X_LIBS -R$x_libraries"
27700 else
27701 LIBS="$ac_xsave_LIBS -R $x_libraries"
27702 cat >conftest.$ac_ext <<_ACEOF
27703/* confdefs.h. */
27704_ACEOF
27705cat confdefs.h >>conftest.$ac_ext
27706cat >>conftest.$ac_ext <<_ACEOF
27707/* end confdefs.h. */
27708
27709int
27710main ()
27711{
27712
27713 ;
27714 return 0;
27715}
27716_ACEOF
27717rm -f conftest.$ac_objext conftest$ac_exeext
27718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27719 (eval $ac_link) 2>conftest.er1
a848cd7e 27720 ac_status=$?
ac1cb8d3
VS
27721 grep -v '^ *+' conftest.er1 >conftest.err
27722 rm -f conftest.er1
27723 cat conftest.err >&5
a848cd7e
SC
27724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725 (exit $ac_status); } &&
5ff751d6 27726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27728 (eval $ac_try) 2>&5
27729 ac_status=$?
27730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27731 (exit $ac_status); }; } &&
27732 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27734 (eval $ac_try) 2>&5
27735 ac_status=$?
27736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27737 (exit $ac_status); }; }; then
27738 ac_R_space=yes
27739else
27740 echo "$as_me: failed program was:" >&5
27741sed 's/^/| /' conftest.$ac_ext >&5
27742
27743ac_R_space=no
27744fi
ac1cb8d3
VS
27745rm -f conftest.err conftest.$ac_objext \
27746 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27747 if test $ac_R_space = yes; then
27748 echo "$as_me:$LINENO: result: yes" >&5
27749echo "${ECHO_T}yes" >&6
27750 X_LIBS="$X_LIBS -R $x_libraries"
27751 else
27752 echo "$as_me:$LINENO: result: neither works" >&5
27753echo "${ECHO_T}neither works" >&6
27754 fi
27755 fi
27756 LIBS=$ac_xsave_LIBS
27757 esac
27758 fi
27759
27760 # Check for system-dependent libraries X programs must link with.
27761 # Do this before checking for the system-independent R6 libraries
27762 # (-lICE), since we may need -lsocket or whatever for X linking.
27763
27764 if test "$ISC" = yes; then
27765 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27766 else
27767 # Martyn Johnson says this is needed for Ultrix, if the X
27768 # libraries were built with DECnet support. And Karl Berry says
27769 # the Alpha needs dnet_stub (dnet does not exist).
27770 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
27771 cat >conftest.$ac_ext <<_ACEOF
27772/* confdefs.h. */
27773_ACEOF
27774cat confdefs.h >>conftest.$ac_ext
27775cat >>conftest.$ac_ext <<_ACEOF
27776/* end confdefs.h. */
27777
27778/* Override any gcc2 internal prototype to avoid an error. */
27779#ifdef __cplusplus
27780extern "C"
27781#endif
27782/* We use char because int might match the return type of a gcc2
27783 builtin and then its argument prototype would still apply. */
27784char XOpenDisplay ();
27785int
27786main ()
27787{
27788XOpenDisplay ();
27789 ;
27790 return 0;
27791}
27792_ACEOF
27793rm -f conftest.$ac_objext conftest$ac_exeext
27794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27795 (eval $ac_link) 2>conftest.er1
a848cd7e 27796 ac_status=$?
ac1cb8d3
VS
27797 grep -v '^ *+' conftest.er1 >conftest.err
27798 rm -f conftest.er1
27799 cat conftest.err >&5
a848cd7e
SC
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); } &&
5ff751d6 27802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27805 ac_status=$?
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; } &&
27808 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27810 (eval $ac_try) 2>&5
27811 ac_status=$?
27812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27813 (exit $ac_status); }; }; then
27814 :
27815else
27816 echo "$as_me: failed program was:" >&5
27817sed 's/^/| /' conftest.$ac_ext >&5
27818
27819echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
27820echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
27821if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
27822 echo $ECHO_N "(cached) $ECHO_C" >&6
27823else
27824 ac_check_lib_save_LIBS=$LIBS
27825LIBS="-ldnet $LIBS"
27826cat >conftest.$ac_ext <<_ACEOF
27827/* confdefs.h. */
27828_ACEOF
27829cat confdefs.h >>conftest.$ac_ext
27830cat >>conftest.$ac_ext <<_ACEOF
27831/* end confdefs.h. */
27832
27833/* Override any gcc2 internal prototype to avoid an error. */
27834#ifdef __cplusplus
27835extern "C"
27836#endif
27837/* We use char because int might match the return type of a gcc2
27838 builtin and then its argument prototype would still apply. */
27839char dnet_ntoa ();
27840int
27841main ()
27842{
27843dnet_ntoa ();
27844 ;
27845 return 0;
27846}
27847_ACEOF
27848rm -f conftest.$ac_objext conftest$ac_exeext
27849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27850 (eval $ac_link) 2>conftest.er1
a848cd7e 27851 ac_status=$?
ac1cb8d3
VS
27852 grep -v '^ *+' conftest.er1 >conftest.err
27853 rm -f conftest.er1
27854 cat conftest.err >&5
a848cd7e
SC
27855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27856 (exit $ac_status); } &&
5ff751d6 27857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27859 (eval $ac_try) 2>&5
27860 ac_status=$?
27861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27862 (exit $ac_status); }; } &&
27863 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27865 (eval $ac_try) 2>&5
27866 ac_status=$?
27867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868 (exit $ac_status); }; }; then
27869 ac_cv_lib_dnet_dnet_ntoa=yes
27870else
27871 echo "$as_me: failed program was:" >&5
27872sed 's/^/| /' conftest.$ac_ext >&5
27873
27874ac_cv_lib_dnet_dnet_ntoa=no
27875fi
ac1cb8d3
VS
27876rm -f conftest.err conftest.$ac_objext \
27877 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27878LIBS=$ac_check_lib_save_LIBS
27879fi
27880echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27881echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
27882if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
27883 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27884fi
27885
27886 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27887 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
27888echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
27889if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
27890 echo $ECHO_N "(cached) $ECHO_C" >&6
27891else
27892 ac_check_lib_save_LIBS=$LIBS
27893LIBS="-ldnet_stub $LIBS"
27894cat >conftest.$ac_ext <<_ACEOF
27895/* confdefs.h. */
27896_ACEOF
27897cat confdefs.h >>conftest.$ac_ext
27898cat >>conftest.$ac_ext <<_ACEOF
27899/* end confdefs.h. */
27900
27901/* Override any gcc2 internal prototype to avoid an error. */
27902#ifdef __cplusplus
27903extern "C"
27904#endif
27905/* We use char because int might match the return type of a gcc2
27906 builtin and then its argument prototype would still apply. */
27907char dnet_ntoa ();
27908int
27909main ()
27910{
27911dnet_ntoa ();
27912 ;
27913 return 0;
27914}
27915_ACEOF
27916rm -f conftest.$ac_objext conftest$ac_exeext
27917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 27918 (eval $ac_link) 2>conftest.er1
a848cd7e 27919 ac_status=$?
ac1cb8d3
VS
27920 grep -v '^ *+' conftest.er1 >conftest.err
27921 rm -f conftest.er1
27922 cat conftest.err >&5
a848cd7e
SC
27923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27924 (exit $ac_status); } &&
5ff751d6 27925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
27926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27927 (eval $ac_try) 2>&5
27928 ac_status=$?
27929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27930 (exit $ac_status); }; } &&
27931 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
27932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27933 (eval $ac_try) 2>&5
27934 ac_status=$?
27935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27936 (exit $ac_status); }; }; then
27937 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27938else
27939 echo "$as_me: failed program was:" >&5
27940sed 's/^/| /' conftest.$ac_ext >&5
27941
27942ac_cv_lib_dnet_stub_dnet_ntoa=no
27943fi
ac1cb8d3
VS
27944rm -f conftest.err conftest.$ac_objext \
27945 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27946LIBS=$ac_check_lib_save_LIBS
27947fi
27948echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27949echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
27950if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
27951 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27952fi
27953
27954 fi
27955fi
ac1cb8d3
VS
27956rm -f conftest.err conftest.$ac_objext \
27957 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
27958 LIBS="$ac_xsave_LIBS"
27959
27960 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27961 # to get the SysV transport functions.
27962 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27963 # needs -lnsl.
27964 # The nsl library prevents programs from opening the X display
27965 # on Irix 5.2, according to T.E. Dickey.
27966 # The functions gethostbyname, getservbyname, and inet_addr are
27967 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27968 echo "$as_me:$LINENO: checking for gethostbyname" >&5
27969echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
27970if test "${ac_cv_func_gethostbyname+set}" = set; then
27971 echo $ECHO_N "(cached) $ECHO_C" >&6
27972else
27973 cat >conftest.$ac_ext <<_ACEOF
27974/* confdefs.h. */
27975_ACEOF
27976cat confdefs.h >>conftest.$ac_ext
27977cat >>conftest.$ac_ext <<_ACEOF
27978/* end confdefs.h. */
ac1cb8d3
VS
27979/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
27980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27981#define gethostbyname innocuous_gethostbyname
27982
a848cd7e
SC
27983/* System header to define __stub macros and hopefully few prototypes,
27984 which can conflict with char gethostbyname (); below.
27985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27986 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 27987
a848cd7e
SC
27988#ifdef __STDC__
27989# include <limits.h>
27990#else
27991# include <assert.h>
27992#endif
ac1cb8d3
VS
27993
27994#undef gethostbyname
27995
a848cd7e
SC
27996/* Override any gcc2 internal prototype to avoid an error. */
27997#ifdef __cplusplus
27998extern "C"
27999{
28000#endif
28001/* We use char because int might match the return type of a gcc2
28002 builtin and then its argument prototype would still apply. */
28003char gethostbyname ();
28004/* The GNU C library defines this for functions which it implements
28005 to always fail with ENOSYS. Some functions are actually named
28006 something starting with __ and the normal name is an alias. */
28007#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
28008choke me
28009#else
28010char (*f) () = gethostbyname;
28011#endif
28012#ifdef __cplusplus
28013}
28014#endif
28015
28016int
28017main ()
28018{
28019return f != gethostbyname;
28020 ;
28021 return 0;
28022}
28023_ACEOF
28024rm -f conftest.$ac_objext conftest$ac_exeext
28025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28026 (eval $ac_link) 2>conftest.er1
a848cd7e 28027 ac_status=$?
ac1cb8d3
VS
28028 grep -v '^ *+' conftest.er1 >conftest.err
28029 rm -f conftest.er1
28030 cat conftest.err >&5
a848cd7e
SC
28031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032 (exit $ac_status); } &&
5ff751d6 28033 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28035 (eval $ac_try) 2>&5
28036 ac_status=$?
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); }; } &&
28039 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28041 (eval $ac_try) 2>&5
28042 ac_status=$?
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); }; }; then
28045 ac_cv_func_gethostbyname=yes
28046else
28047 echo "$as_me: failed program was:" >&5
28048sed 's/^/| /' conftest.$ac_ext >&5
28049
28050ac_cv_func_gethostbyname=no
28051fi
ac1cb8d3
VS
28052rm -f conftest.err conftest.$ac_objext \
28053 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28054fi
28055echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
28056echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
28057
28058 if test $ac_cv_func_gethostbyname = no; then
28059 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
28060echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
28061if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
28062 echo $ECHO_N "(cached) $ECHO_C" >&6
28063else
28064 ac_check_lib_save_LIBS=$LIBS
28065LIBS="-lnsl $LIBS"
28066cat >conftest.$ac_ext <<_ACEOF
28067/* confdefs.h. */
28068_ACEOF
28069cat confdefs.h >>conftest.$ac_ext
28070cat >>conftest.$ac_ext <<_ACEOF
28071/* end confdefs.h. */
28072
28073/* Override any gcc2 internal prototype to avoid an error. */
28074#ifdef __cplusplus
28075extern "C"
28076#endif
28077/* We use char because int might match the return type of a gcc2
28078 builtin and then its argument prototype would still apply. */
28079char gethostbyname ();
28080int
28081main ()
28082{
28083gethostbyname ();
28084 ;
28085 return 0;
28086}
28087_ACEOF
28088rm -f conftest.$ac_objext conftest$ac_exeext
28089if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3
VS
28090 (eval $ac_link) 2>conftest.er1
28091 ac_status=$?
28092 grep -v '^ *+' conftest.er1 >conftest.err
28093 rm -f conftest.er1
28094 cat conftest.err >&5
28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28096 (exit $ac_status); } &&
5ff751d6 28097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28099 (eval $ac_try) 2>&5
28100 ac_status=$?
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); }; } &&
28103 { ac_try='test -s conftest$ac_exeext'
28104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28105 (eval $ac_try) 2>&5
28106 ac_status=$?
28107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108 (exit $ac_status); }; }; then
28109 ac_cv_lib_nsl_gethostbyname=yes
28110else
28111 echo "$as_me: failed program was:" >&5
28112sed 's/^/| /' conftest.$ac_ext >&5
28113
28114ac_cv_lib_nsl_gethostbyname=no
28115fi
28116rm -f conftest.err conftest.$ac_objext \
28117 conftest$ac_exeext conftest.$ac_ext
28118LIBS=$ac_check_lib_save_LIBS
28119fi
28120echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
28121echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
28122if test $ac_cv_lib_nsl_gethostbyname = yes; then
28123 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28124fi
28125
28126 if test $ac_cv_lib_nsl_gethostbyname = no; then
28127 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
28128echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
28129if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
28130 echo $ECHO_N "(cached) $ECHO_C" >&6
28131else
28132 ac_check_lib_save_LIBS=$LIBS
28133LIBS="-lbsd $LIBS"
28134cat >conftest.$ac_ext <<_ACEOF
28135/* confdefs.h. */
28136_ACEOF
28137cat confdefs.h >>conftest.$ac_ext
28138cat >>conftest.$ac_ext <<_ACEOF
28139/* end confdefs.h. */
28140
28141/* Override any gcc2 internal prototype to avoid an error. */
28142#ifdef __cplusplus
28143extern "C"
28144#endif
28145/* We use char because int might match the return type of a gcc2
28146 builtin and then its argument prototype would still apply. */
28147char gethostbyname ();
28148int
28149main ()
28150{
28151gethostbyname ();
28152 ;
28153 return 0;
28154}
28155_ACEOF
28156rm -f conftest.$ac_objext conftest$ac_exeext
28157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28158 (eval $ac_link) 2>conftest.er1
a848cd7e 28159 ac_status=$?
ac1cb8d3
VS
28160 grep -v '^ *+' conftest.er1 >conftest.err
28161 rm -f conftest.er1
28162 cat conftest.err >&5
a848cd7e
SC
28163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164 (exit $ac_status); } &&
5ff751d6 28165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
a848cd7e
SC
28166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28167 (eval $ac_try) 2>&5
28168 ac_status=$?
28169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ac1cb8d3
VS
28170 (exit $ac_status); }; } &&
28171 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28173 (eval $ac_try) 2>&5
28174 ac_status=$?
28175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); }; }; then
28177 ac_cv_lib_bsd_gethostbyname=yes
28178else
28179 echo "$as_me: failed program was:" >&5
28180sed 's/^/| /' conftest.$ac_ext >&5
28181
28182ac_cv_lib_bsd_gethostbyname=no
28183fi
ac1cb8d3
VS
28184rm -f conftest.err conftest.$ac_objext \
28185 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28186LIBS=$ac_check_lib_save_LIBS
28187fi
28188echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
28189echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
28190if test $ac_cv_lib_bsd_gethostbyname = yes; then
28191 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28192fi
28193
28194 fi
28195 fi
28196
28197 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28198 # socket/setsockopt and other routines are undefined under SCO ODT
28199 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28200 # on later versions), says Simon Leinen: it contains gethostby*
28201 # variants that don't use the name server (or something). -lsocket
28202 # must be given before -lnsl if both are needed. We assume that
28203 # if connect needs -lnsl, so does gethostbyname.
28204 echo "$as_me:$LINENO: checking for connect" >&5
28205echo $ECHO_N "checking for connect... $ECHO_C" >&6
28206if test "${ac_cv_func_connect+set}" = set; then
28207 echo $ECHO_N "(cached) $ECHO_C" >&6
28208else
28209 cat >conftest.$ac_ext <<_ACEOF
28210/* confdefs.h. */
28211_ACEOF
28212cat confdefs.h >>conftest.$ac_ext
28213cat >>conftest.$ac_ext <<_ACEOF
28214/* end confdefs.h. */
ac1cb8d3
VS
28215/* Define connect to an innocuous variant, in case <limits.h> declares connect.
28216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28217#define connect innocuous_connect
28218
a848cd7e
SC
28219/* System header to define __stub macros and hopefully few prototypes,
28220 which can conflict with char connect (); below.
28221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28222 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28223
a848cd7e
SC
28224#ifdef __STDC__
28225# include <limits.h>
28226#else
28227# include <assert.h>
28228#endif
ac1cb8d3
VS
28229
28230#undef connect
28231
a848cd7e
SC
28232/* Override any gcc2 internal prototype to avoid an error. */
28233#ifdef __cplusplus
28234extern "C"
28235{
28236#endif
28237/* We use char because int might match the return type of a gcc2
28238 builtin and then its argument prototype would still apply. */
28239char connect ();
28240/* The GNU C library defines this for functions which it implements
28241 to always fail with ENOSYS. Some functions are actually named
28242 something starting with __ and the normal name is an alias. */
28243#if defined (__stub_connect) || defined (__stub___connect)
28244choke me
28245#else
28246char (*f) () = connect;
28247#endif
28248#ifdef __cplusplus
28249}
28250#endif
28251
28252int
28253main ()
28254{
28255return f != connect;
28256 ;
28257 return 0;
28258}
28259_ACEOF
28260rm -f conftest.$ac_objext conftest$ac_exeext
28261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28262 (eval $ac_link) 2>conftest.er1
a848cd7e 28263 ac_status=$?
ac1cb8d3
VS
28264 grep -v '^ *+' conftest.er1 >conftest.err
28265 rm -f conftest.er1
28266 cat conftest.err >&5
a848cd7e
SC
28267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 (exit $ac_status); } &&
5ff751d6 28269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28271 (eval $ac_try) 2>&5
28272 ac_status=$?
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); }; } &&
28275 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28277 (eval $ac_try) 2>&5
28278 ac_status=$?
28279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280 (exit $ac_status); }; }; then
28281 ac_cv_func_connect=yes
28282else
28283 echo "$as_me: failed program was:" >&5
28284sed 's/^/| /' conftest.$ac_ext >&5
28285
28286ac_cv_func_connect=no
28287fi
ac1cb8d3
VS
28288rm -f conftest.err conftest.$ac_objext \
28289 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28290fi
28291echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
28292echo "${ECHO_T}$ac_cv_func_connect" >&6
28293
28294 if test $ac_cv_func_connect = no; then
28295 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
28296echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
28297if test "${ac_cv_lib_socket_connect+set}" = set; then
28298 echo $ECHO_N "(cached) $ECHO_C" >&6
28299else
28300 ac_check_lib_save_LIBS=$LIBS
28301LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
28302cat >conftest.$ac_ext <<_ACEOF
28303/* confdefs.h. */
28304_ACEOF
28305cat confdefs.h >>conftest.$ac_ext
28306cat >>conftest.$ac_ext <<_ACEOF
28307/* end confdefs.h. */
28308
28309/* Override any gcc2 internal prototype to avoid an error. */
28310#ifdef __cplusplus
28311extern "C"
28312#endif
28313/* We use char because int might match the return type of a gcc2
28314 builtin and then its argument prototype would still apply. */
28315char connect ();
28316int
28317main ()
28318{
28319connect ();
28320 ;
28321 return 0;
28322}
28323_ACEOF
28324rm -f conftest.$ac_objext conftest$ac_exeext
28325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28326 (eval $ac_link) 2>conftest.er1
a848cd7e 28327 ac_status=$?
ac1cb8d3
VS
28328 grep -v '^ *+' conftest.er1 >conftest.err
28329 rm -f conftest.er1
28330 cat conftest.err >&5
a848cd7e
SC
28331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28332 (exit $ac_status); } &&
5ff751d6 28333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28335 (eval $ac_try) 2>&5
28336 ac_status=$?
28337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28338 (exit $ac_status); }; } &&
28339 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28341 (eval $ac_try) 2>&5
28342 ac_status=$?
28343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28344 (exit $ac_status); }; }; then
28345 ac_cv_lib_socket_connect=yes
28346else
28347 echo "$as_me: failed program was:" >&5
28348sed 's/^/| /' conftest.$ac_ext >&5
28349
28350ac_cv_lib_socket_connect=no
28351fi
ac1cb8d3
VS
28352rm -f conftest.err conftest.$ac_objext \
28353 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28354LIBS=$ac_check_lib_save_LIBS
28355fi
28356echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
28357echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
28358if test $ac_cv_lib_socket_connect = yes; then
28359 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28360fi
28361
28362 fi
28363
28364 # Guillermo Gomez says -lposix is necessary on A/UX.
28365 echo "$as_me:$LINENO: checking for remove" >&5
28366echo $ECHO_N "checking for remove... $ECHO_C" >&6
28367if test "${ac_cv_func_remove+set}" = set; then
28368 echo $ECHO_N "(cached) $ECHO_C" >&6
28369else
28370 cat >conftest.$ac_ext <<_ACEOF
28371/* confdefs.h. */
28372_ACEOF
28373cat confdefs.h >>conftest.$ac_ext
28374cat >>conftest.$ac_ext <<_ACEOF
28375/* end confdefs.h. */
ac1cb8d3
VS
28376/* Define remove to an innocuous variant, in case <limits.h> declares remove.
28377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28378#define remove innocuous_remove
28379
a848cd7e
SC
28380/* System header to define __stub macros and hopefully few prototypes,
28381 which can conflict with char remove (); below.
28382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28383 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28384
a848cd7e
SC
28385#ifdef __STDC__
28386# include <limits.h>
28387#else
28388# include <assert.h>
28389#endif
ac1cb8d3
VS
28390
28391#undef remove
28392
a848cd7e
SC
28393/* Override any gcc2 internal prototype to avoid an error. */
28394#ifdef __cplusplus
28395extern "C"
28396{
28397#endif
28398/* We use char because int might match the return type of a gcc2
28399 builtin and then its argument prototype would still apply. */
28400char remove ();
28401/* The GNU C library defines this for functions which it implements
28402 to always fail with ENOSYS. Some functions are actually named
28403 something starting with __ and the normal name is an alias. */
28404#if defined (__stub_remove) || defined (__stub___remove)
28405choke me
28406#else
28407char (*f) () = remove;
28408#endif
28409#ifdef __cplusplus
28410}
28411#endif
28412
28413int
28414main ()
28415{
28416return f != remove;
28417 ;
28418 return 0;
28419}
28420_ACEOF
28421rm -f conftest.$ac_objext conftest$ac_exeext
28422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28423 (eval $ac_link) 2>conftest.er1
a848cd7e 28424 ac_status=$?
ac1cb8d3
VS
28425 grep -v '^ *+' conftest.er1 >conftest.err
28426 rm -f conftest.er1
28427 cat conftest.err >&5
a848cd7e
SC
28428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429 (exit $ac_status); } &&
5ff751d6 28430 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28432 (eval $ac_try) 2>&5
28433 ac_status=$?
28434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); }; } &&
28436 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28438 (eval $ac_try) 2>&5
28439 ac_status=$?
28440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28441 (exit $ac_status); }; }; then
28442 ac_cv_func_remove=yes
28443else
28444 echo "$as_me: failed program was:" >&5
28445sed 's/^/| /' conftest.$ac_ext >&5
28446
28447ac_cv_func_remove=no
28448fi
ac1cb8d3
VS
28449rm -f conftest.err conftest.$ac_objext \
28450 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28451fi
28452echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
28453echo "${ECHO_T}$ac_cv_func_remove" >&6
28454
28455 if test $ac_cv_func_remove = no; then
28456 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
28457echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
28458if test "${ac_cv_lib_posix_remove+set}" = set; then
28459 echo $ECHO_N "(cached) $ECHO_C" >&6
28460else
28461 ac_check_lib_save_LIBS=$LIBS
28462LIBS="-lposix $LIBS"
28463cat >conftest.$ac_ext <<_ACEOF
28464/* confdefs.h. */
28465_ACEOF
28466cat confdefs.h >>conftest.$ac_ext
28467cat >>conftest.$ac_ext <<_ACEOF
28468/* end confdefs.h. */
28469
28470/* Override any gcc2 internal prototype to avoid an error. */
28471#ifdef __cplusplus
28472extern "C"
28473#endif
28474/* We use char because int might match the return type of a gcc2
28475 builtin and then its argument prototype would still apply. */
28476char remove ();
28477int
28478main ()
28479{
28480remove ();
28481 ;
28482 return 0;
28483}
28484_ACEOF
28485rm -f conftest.$ac_objext conftest$ac_exeext
28486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28487 (eval $ac_link) 2>conftest.er1
a848cd7e 28488 ac_status=$?
ac1cb8d3
VS
28489 grep -v '^ *+' conftest.er1 >conftest.err
28490 rm -f conftest.er1
28491 cat conftest.err >&5
a848cd7e
SC
28492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28493 (exit $ac_status); } &&
5ff751d6 28494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28496 (eval $ac_try) 2>&5
28497 ac_status=$?
28498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499 (exit $ac_status); }; } &&
28500 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28502 (eval $ac_try) 2>&5
28503 ac_status=$?
28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 (exit $ac_status); }; }; then
28506 ac_cv_lib_posix_remove=yes
28507else
28508 echo "$as_me: failed program was:" >&5
28509sed 's/^/| /' conftest.$ac_ext >&5
28510
28511ac_cv_lib_posix_remove=no
28512fi
ac1cb8d3
VS
28513rm -f conftest.err conftest.$ac_objext \
28514 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28515LIBS=$ac_check_lib_save_LIBS
28516fi
28517echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
28518echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
28519if test $ac_cv_lib_posix_remove = yes; then
28520 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28521fi
28522
28523 fi
28524
28525 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
28526 echo "$as_me:$LINENO: checking for shmat" >&5
28527echo $ECHO_N "checking for shmat... $ECHO_C" >&6
28528if test "${ac_cv_func_shmat+set}" = set; then
28529 echo $ECHO_N "(cached) $ECHO_C" >&6
28530else
28531 cat >conftest.$ac_ext <<_ACEOF
28532/* confdefs.h. */
28533_ACEOF
28534cat confdefs.h >>conftest.$ac_ext
28535cat >>conftest.$ac_ext <<_ACEOF
28536/* end confdefs.h. */
ac1cb8d3
VS
28537/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
28538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28539#define shmat innocuous_shmat
28540
a848cd7e
SC
28541/* System header to define __stub macros and hopefully few prototypes,
28542 which can conflict with char shmat (); below.
28543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28544 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 28545
a848cd7e
SC
28546#ifdef __STDC__
28547# include <limits.h>
28548#else
28549# include <assert.h>
28550#endif
ac1cb8d3
VS
28551
28552#undef shmat
28553
a848cd7e
SC
28554/* Override any gcc2 internal prototype to avoid an error. */
28555#ifdef __cplusplus
28556extern "C"
28557{
28558#endif
28559/* We use char because int might match the return type of a gcc2
28560 builtin and then its argument prototype would still apply. */
28561char shmat ();
28562/* The GNU C library defines this for functions which it implements
28563 to always fail with ENOSYS. Some functions are actually named
28564 something starting with __ and the normal name is an alias. */
28565#if defined (__stub_shmat) || defined (__stub___shmat)
28566choke me
28567#else
28568char (*f) () = shmat;
28569#endif
28570#ifdef __cplusplus
28571}
28572#endif
28573
28574int
28575main ()
28576{
28577return f != shmat;
28578 ;
28579 return 0;
28580}
28581_ACEOF
28582rm -f conftest.$ac_objext conftest$ac_exeext
28583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28584 (eval $ac_link) 2>conftest.er1
a848cd7e 28585 ac_status=$?
ac1cb8d3
VS
28586 grep -v '^ *+' conftest.er1 >conftest.err
28587 rm -f conftest.er1
28588 cat conftest.err >&5
a848cd7e
SC
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); } &&
5ff751d6 28591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28593 (eval $ac_try) 2>&5
28594 ac_status=$?
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; } &&
28597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28599 (eval $ac_try) 2>&5
28600 ac_status=$?
28601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28602 (exit $ac_status); }; }; then
28603 ac_cv_func_shmat=yes
28604else
28605 echo "$as_me: failed program was:" >&5
28606sed 's/^/| /' conftest.$ac_ext >&5
28607
28608ac_cv_func_shmat=no
28609fi
ac1cb8d3
VS
28610rm -f conftest.err conftest.$ac_objext \
28611 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28612fi
28613echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
28614echo "${ECHO_T}$ac_cv_func_shmat" >&6
28615
28616 if test $ac_cv_func_shmat = no; then
28617 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
28618echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
28619if test "${ac_cv_lib_ipc_shmat+set}" = set; then
28620 echo $ECHO_N "(cached) $ECHO_C" >&6
28621else
28622 ac_check_lib_save_LIBS=$LIBS
28623LIBS="-lipc $LIBS"
28624cat >conftest.$ac_ext <<_ACEOF
28625/* confdefs.h. */
28626_ACEOF
28627cat confdefs.h >>conftest.$ac_ext
28628cat >>conftest.$ac_ext <<_ACEOF
28629/* end confdefs.h. */
28630
28631/* Override any gcc2 internal prototype to avoid an error. */
28632#ifdef __cplusplus
28633extern "C"
28634#endif
28635/* We use char because int might match the return type of a gcc2
28636 builtin and then its argument prototype would still apply. */
28637char shmat ();
28638int
28639main ()
28640{
28641shmat ();
28642 ;
28643 return 0;
28644}
28645_ACEOF
28646rm -f conftest.$ac_objext conftest$ac_exeext
28647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28648 (eval $ac_link) 2>conftest.er1
a848cd7e 28649 ac_status=$?
ac1cb8d3
VS
28650 grep -v '^ *+' conftest.er1 >conftest.err
28651 rm -f conftest.er1
28652 cat conftest.err >&5
a848cd7e
SC
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); } &&
5ff751d6 28655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28657 (eval $ac_try) 2>&5
28658 ac_status=$?
28659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28660 (exit $ac_status); }; } &&
28661 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28663 (eval $ac_try) 2>&5
28664 ac_status=$?
28665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666 (exit $ac_status); }; }; then
28667 ac_cv_lib_ipc_shmat=yes
28668else
28669 echo "$as_me: failed program was:" >&5
28670sed 's/^/| /' conftest.$ac_ext >&5
28671
28672ac_cv_lib_ipc_shmat=no
28673fi
ac1cb8d3
VS
28674rm -f conftest.err conftest.$ac_objext \
28675 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28676LIBS=$ac_check_lib_save_LIBS
28677fi
28678echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
28679echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
28680if test $ac_cv_lib_ipc_shmat = yes; then
28681 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28682fi
28683
28684 fi
28685 fi
28686
28687 # Check for libraries that X11R6 Xt/Xaw programs need.
28688 ac_save_LDFLAGS=$LDFLAGS
28689 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28690 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28691 # check for ICE first), but we must link in the order -lSM -lICE or
28692 # we get undefined symbols. So assume we have SM if we have ICE.
28693 # These have to be linked with before -lX11, unlike the other
28694 # libraries we check for below, so use a different variable.
28695 # John Interrante, Karl Berry
28696 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
28697echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
28698if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
28699 echo $ECHO_N "(cached) $ECHO_C" >&6
28700else
28701 ac_check_lib_save_LIBS=$LIBS
28702LIBS="-lICE $X_EXTRA_LIBS $LIBS"
28703cat >conftest.$ac_ext <<_ACEOF
28704/* confdefs.h. */
28705_ACEOF
28706cat confdefs.h >>conftest.$ac_ext
28707cat >>conftest.$ac_ext <<_ACEOF
28708/* end confdefs.h. */
28709
28710/* Override any gcc2 internal prototype to avoid an error. */
28711#ifdef __cplusplus
28712extern "C"
28713#endif
28714/* We use char because int might match the return type of a gcc2
28715 builtin and then its argument prototype would still apply. */
28716char IceConnectionNumber ();
28717int
28718main ()
28719{
28720IceConnectionNumber ();
28721 ;
28722 return 0;
28723}
28724_ACEOF
28725rm -f conftest.$ac_objext conftest$ac_exeext
28726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 28727 (eval $ac_link) 2>conftest.er1
a848cd7e 28728 ac_status=$?
ac1cb8d3
VS
28729 grep -v '^ *+' conftest.er1 >conftest.err
28730 rm -f conftest.er1
28731 cat conftest.err >&5
a848cd7e
SC
28732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } &&
5ff751d6 28734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
28735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736 (eval $ac_try) 2>&5
28737 ac_status=$?
28738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 (exit $ac_status); }; } &&
28740 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
28741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742 (eval $ac_try) 2>&5
28743 ac_status=$?
28744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 (exit $ac_status); }; }; then
28746 ac_cv_lib_ICE_IceConnectionNumber=yes
28747else
28748 echo "$as_me: failed program was:" >&5
28749sed 's/^/| /' conftest.$ac_ext >&5
28750
28751ac_cv_lib_ICE_IceConnectionNumber=no
28752fi
ac1cb8d3
VS
28753rm -f conftest.err conftest.$ac_objext \
28754 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
28755LIBS=$ac_check_lib_save_LIBS
28756fi
28757echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
28758echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
28759if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
28760 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28761fi
28762
28763 LDFLAGS=$ac_save_LDFLAGS
28764
28765fi
28766
28767
28768 if test "$no_x" = "yes"; then
89d90d6d
VZ
28769 { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
28770echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
28771 { (exit 1); exit 1; }; }
a848cd7e
SC
28772 fi
28773
74b84332
VS
28774 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
28775 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
a848cd7e
SC
28776 AFMINSTALL=afminstall
28777 COMPILED_X_PROGRAM=0
28778
74b84332
VS
28779 fi
28780
28781 if test "$wxUSE_X11" = 1; then
a848cd7e
SC
28782 if test "$wxUSE_NANOX" = "yes"; then
28783 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
28784echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
28785 if test "x$MICROWIN" = x ; then
28786 echo "$as_me:$LINENO: result: not found" >&5
28787echo "${ECHO_T}not found" >&6
28788 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
28789echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
28790 { (exit 1); exit 1; }; }
28791 else
28792 echo "$as_me:$LINENO: result: $MICROWIN" >&5
28793echo "${ECHO_T}$MICROWIN" >&6
28794 cat >>confdefs.h <<\_ACEOF
28795#define wxUSE_NANOX 1
28796_ACEOF
28797
28798 fi
28799 fi
28800
28801 if test "$wxUSE_UNICODE" = "yes"; then
28802
28803 succeeded=no
28804
28805 if test -z "$PKG_CONFIG"; then
28806 # Extract the first word of "pkg-config", so it can be a program name with args.
28807set dummy pkg-config; ac_word=$2
28808echo "$as_me:$LINENO: checking for $ac_word" >&5
28809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28810if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28811 echo $ECHO_N "(cached) $ECHO_C" >&6
28812else
28813 case $PKG_CONFIG in
28814 [\\/]* | ?:[\\/]*)
28815 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28816 ;;
28817 *)
28818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28819for as_dir in $PATH
28820do
28821 IFS=$as_save_IFS
28822 test -z "$as_dir" && as_dir=.
28823 for ac_exec_ext in '' $ac_executable_extensions; do
28824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28825 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28827 break 2
28828 fi
28829done
28830done
28831
28832 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28833 ;;
28834esac
28835fi
28836PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28837
28838if test -n "$PKG_CONFIG"; then
28839 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28840echo "${ECHO_T}$PKG_CONFIG" >&6
28841else
28842 echo "$as_me:$LINENO: result: no" >&5
28843echo "${ECHO_T}no" >&6
28844fi
28845
28846 fi
28847
28848 if test "$PKG_CONFIG" = "no" ; then
28849 echo "*** The pkg-config script could not be found. Make sure it is"
28850 echo "*** in your path, or set the PKG_CONFIG environment variable"
28851 echo "*** to the full path to pkg-config."
28852 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28853 else
28854 PKG_CONFIG_MIN_VERSION=0.9.0
28855 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28856 echo "$as_me:$LINENO: checking for pangox" >&5
28857echo $ECHO_N "checking for pangox... $ECHO_C" >&6
28858
28859 if $PKG_CONFIG --exists "pangox" ; then
28860 echo "$as_me:$LINENO: result: yes" >&5
28861echo "${ECHO_T}yes" >&6
28862 succeeded=yes
28863
28864 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
28865echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
28866 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
28867 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
28868echo "${ECHO_T}$PANGOX_CFLAGS" >&6
28869
28870 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
28871echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
28872 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
28873 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
28874echo "${ECHO_T}$PANGOX_LIBS" >&6
28875 else
28876 PANGOX_CFLAGS=""
28877 PANGOX_LIBS=""
28878 ## If we have a custom action on failure, don't print errors, but
28879 ## do set a variable so people can do so.
28880 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
28881
28882 fi
28883
28884
28885
28886 else
28887 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28888 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28889 fi
28890 fi
28891
28892 if test $succeeded = yes; then
28893
28894 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
28895 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
28896
28897 else
28898
28899 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
28900echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
28901 { (exit 1); exit 1; }; }
28902
28903
28904 fi
28905
28906
28907 succeeded=no
28908
28909 if test -z "$PKG_CONFIG"; then
28910 # Extract the first word of "pkg-config", so it can be a program name with args.
28911set dummy pkg-config; ac_word=$2
28912echo "$as_me:$LINENO: checking for $ac_word" >&5
28913echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28914if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28915 echo $ECHO_N "(cached) $ECHO_C" >&6
28916else
28917 case $PKG_CONFIG in
28918 [\\/]* | ?:[\\/]*)
28919 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28920 ;;
28921 *)
28922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28923for as_dir in $PATH
28924do
28925 IFS=$as_save_IFS
28926 test -z "$as_dir" && as_dir=.
28927 for ac_exec_ext in '' $ac_executable_extensions; do
28928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28929 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28931 break 2
28932 fi
28933done
28934done
28935
28936 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28937 ;;
28938esac
28939fi
28940PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28941
28942if test -n "$PKG_CONFIG"; then
28943 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28944echo "${ECHO_T}$PKG_CONFIG" >&6
28945else
28946 echo "$as_me:$LINENO: result: no" >&5
28947echo "${ECHO_T}no" >&6
28948fi
28949
28950 fi
28951
28952 if test "$PKG_CONFIG" = "no" ; then
28953 echo "*** The pkg-config script could not be found. Make sure it is"
28954 echo "*** in your path, or set the PKG_CONFIG environment variable"
28955 echo "*** to the full path to pkg-config."
28956 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28957 else
28958 PKG_CONFIG_MIN_VERSION=0.9.0
28959 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28960 echo "$as_me:$LINENO: checking for pangoft2" >&5
28961echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
28962
28963 if $PKG_CONFIG --exists "pangoft2" ; then
28964 echo "$as_me:$LINENO: result: yes" >&5
28965echo "${ECHO_T}yes" >&6
28966 succeeded=yes
28967
28968 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
28969echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
28970 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
28971 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
28972echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
28973
28974 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
28975echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
28976 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
28977 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
28978echo "${ECHO_T}$PANGOFT2_LIBS" >&6
28979 else
28980 PANGOFT2_CFLAGS=""
28981 PANGOFT2_LIBS=""
28982 ## If we have a custom action on failure, don't print errors, but
28983 ## do set a variable so people can do so.
28984 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
28985
28986 fi
28987
28988
28989
28990 else
28991 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28992 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28993 fi
28994 fi
28995
28996 if test $succeeded = yes; then
28997
28998 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
28999 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
29000
29001 else
29002
29003 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
29004echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
29005 wxUSE_PRINTING_ARCHITECTURE="no"
29006
29007
29008 fi
29009
29010
29011 succeeded=no
29012
29013 if test -z "$PKG_CONFIG"; then
29014 # Extract the first word of "pkg-config", so it can be a program name with args.
29015set dummy pkg-config; ac_word=$2
29016echo "$as_me:$LINENO: checking for $ac_word" >&5
29017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29018if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
29019 echo $ECHO_N "(cached) $ECHO_C" >&6
29020else
29021 case $PKG_CONFIG in
29022 [\\/]* | ?:[\\/]*)
29023 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
29024 ;;
29025 *)
29026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29027for as_dir in $PATH
29028do
29029 IFS=$as_save_IFS
29030 test -z "$as_dir" && as_dir=.
29031 for ac_exec_ext in '' $ac_executable_extensions; do
29032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29033 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
29034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29035 break 2
29036 fi
29037done
29038done
29039
29040 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
29041 ;;
29042esac
29043fi
29044PKG_CONFIG=$ac_cv_path_PKG_CONFIG
29045
29046if test -n "$PKG_CONFIG"; then
29047 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
29048echo "${ECHO_T}$PKG_CONFIG" >&6
29049else
29050 echo "$as_me:$LINENO: result: no" >&5
29051echo "${ECHO_T}no" >&6
29052fi
29053
29054 fi
29055
29056 if test "$PKG_CONFIG" = "no" ; then
29057 echo "*** The pkg-config script could not be found. Make sure it is"
29058 echo "*** in your path, or set the PKG_CONFIG environment variable"
29059 echo "*** to the full path to pkg-config."
29060 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
29061 else
29062 PKG_CONFIG_MIN_VERSION=0.9.0
29063 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
29064 echo "$as_me:$LINENO: checking for pangoxft" >&5
29065echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
29066
29067 if $PKG_CONFIG --exists "pangoxft" ; then
29068 echo "$as_me:$LINENO: result: yes" >&5
29069echo "${ECHO_T}yes" >&6
29070 succeeded=yes
29071
29072 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
29073echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
29074 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
29075 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
29076echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
29077
29078 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
29079echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
29080 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
29081 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
29082echo "${ECHO_T}$PANGOXFT_LIBS" >&6
29083 else
29084 PANGOXFT_CFLAGS=""
29085 PANGOXFT_LIBS=""
29086 ## If we have a custom action on failure, don't print errors, but
29087 ## do set a variable so people can do so.
29088 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
29089
29090 fi
29091
29092
29093
29094 else
29095 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
29096 echo "*** See http://www.freedesktop.org/software/pkgconfig"
29097 fi
29098 fi
29099
29100 if test $succeeded = yes; then
29101
4ae1af05
MB
29102 cat >>confdefs.h <<\_ACEOF
29103#define HAVE_PANGO_XFT 1
29104_ACEOF
29105
a848cd7e
SC
29106 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
29107 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
29108
29109 else
29110
29111 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
29112echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
29113
29114
29115 fi
29116
304205f1
VS
29117 save_CFLAGS="$CFLAGS"
29118 save_LIBS="$LIBS"
29119 CFLAGS="$CFLAGS $PANGOX_CFLAGS"
29120 LIBS="$LIBS $PANGOX_LIBS"
29121
29122for ac_func in pango_font_family_is_monospace
29123do
29124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29125echo "$as_me:$LINENO: checking for $ac_func" >&5
29126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29127if eval "test \"\${$as_ac_var+set}\" = set"; then
29128 echo $ECHO_N "(cached) $ECHO_C" >&6
29129else
29130 cat >conftest.$ac_ext <<_ACEOF
29131/* confdefs.h. */
29132_ACEOF
29133cat confdefs.h >>conftest.$ac_ext
29134cat >>conftest.$ac_ext <<_ACEOF
29135/* end confdefs.h. */
29136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29138#define $ac_func innocuous_$ac_func
29139
29140/* System header to define __stub macros and hopefully few prototypes,
29141 which can conflict with char $ac_func (); below.
29142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29143 <limits.h> exists even on freestanding compilers. */
29144
29145#ifdef __STDC__
29146# include <limits.h>
29147#else
29148# include <assert.h>
29149#endif
29150
29151#undef $ac_func
29152
29153/* Override any gcc2 internal prototype to avoid an error. */
29154#ifdef __cplusplus
29155extern "C"
29156{
29157#endif
29158/* We use char because int might match the return type of a gcc2
29159 builtin and then its argument prototype would still apply. */
29160char $ac_func ();
29161/* The GNU C library defines this for functions which it implements
29162 to always fail with ENOSYS. Some functions are actually named
29163 something starting with __ and the normal name is an alias. */
29164#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29165choke me
29166#else
29167char (*f) () = $ac_func;
29168#endif
29169#ifdef __cplusplus
29170}
29171#endif
29172
29173int
29174main ()
29175{
29176return f != $ac_func;
29177 ;
29178 return 0;
29179}
29180_ACEOF
29181rm -f conftest.$ac_objext conftest$ac_exeext
29182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29183 (eval $ac_link) 2>conftest.er1
29184 ac_status=$?
29185 grep -v '^ *+' conftest.er1 >conftest.err
29186 rm -f conftest.er1
29187 cat conftest.err >&5
29188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29189 (exit $ac_status); } &&
5ff751d6 29190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
304205f1
VS
29191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192 (eval $ac_try) 2>&5
29193 ac_status=$?
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); }; } &&
29196 { ac_try='test -s conftest$ac_exeext'
29197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29198 (eval $ac_try) 2>&5
29199 ac_status=$?
29200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29201 (exit $ac_status); }; }; then
29202 eval "$as_ac_var=yes"
29203else
29204 echo "$as_me: failed program was:" >&5
29205sed 's/^/| /' conftest.$ac_ext >&5
29206
29207eval "$as_ac_var=no"
29208fi
29209rm -f conftest.err conftest.$ac_objext \
29210 conftest$ac_exeext conftest.$ac_ext
29211fi
29212echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29213echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29214if test `eval echo '${'$as_ac_var'}'` = yes; then
29215 cat >>confdefs.h <<_ACEOF
29216#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29217_ACEOF
29218
29219fi
29220done
29221
29222 CFLAGS="$save_CFLAGS"
29223 LIBS="$save_LIBS"
a848cd7e
SC
29224 fi
29225
29226 wxUSE_UNIVERSAL="yes"
29227
29228 if test "$wxUSE_NANOX" = "yes"; then
29229 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
29230 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"
29231 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
29232 else
29233 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
29234 fi
29235
a848cd7e
SC
29236 TOOLKIT=X11
29237 GUIDIST=X11_DIST
29238 fi
29239
29240 if test "$wxUSE_MOTIF" = 1; then
0a08f02a
MB
29241 if test "$wxUSE_UNICODE" = "yes"; then
29242 { { echo "$as_me:$LINENO: error: Unicode configuration not supported with Motif" >&5
29243echo "$as_me: error: Unicode configuration not supported with Motif" >&2;}
29244 { (exit 1); exit 1; }; }
29245 fi
29246
74b84332
VS
29247 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
29248echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
a848cd7e 29249
74b84332
VS
29250ac_find_includes=
29251for ac_dir in $SEARCH_INCLUDE /usr/include;
29252 do
29253 if test -f "$ac_dir/Xm/Xm.h"; then
29254 ac_find_includes=$ac_dir
29255 break
29256 fi
29257 done
a848cd7e 29258
74b84332
VS
29259 if test "$ac_find_includes" != "" ; then
29260 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
29261echo "${ECHO_T}found in $ac_find_includes" >&6
29262
29263 if test "x$ac_find_includes" = "x/usr/include"; then
29264 ac_path_to_include=""
29265 else
29266 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
29267 result=$?
29268 if test $result = 0; then
29269 ac_path_to_include=""
29270 else
29271 ac_path_to_include=" -I$ac_find_includes"
29272 fi
a848cd7e
SC
29273 fi
29274
74b84332
VS
29275 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
29276 else
e051b34e
MW
29277 save_CFLAGS=$CFLAGS
29278 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29279
74b84332 29280 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29281/* confdefs.h. */
29282_ACEOF
29283cat confdefs.h >>conftest.$ac_ext
29284cat >>conftest.$ac_ext <<_ACEOF
29285/* end confdefs.h. */
29286
74b84332
VS
29287 #include <Xm/Xm.h>
29288
a848cd7e
SC
29289int
29290main ()
29291{
29292
74b84332
VS
29293 int version;
29294 version = xmUseVersion;
29295
a848cd7e
SC
29296 ;
29297 return 0;
29298}
29299_ACEOF
74b84332
VS
29300rm -f conftest.$ac_objext
29301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29302 (eval $ac_compile) 2>conftest.er1
a848cd7e 29303 ac_status=$?
ac1cb8d3
VS
29304 grep -v '^ *+' conftest.er1 >conftest.err
29305 rm -f conftest.er1
29306 cat conftest.err >&5
a848cd7e
SC
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); } &&
5ff751d6 29309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29311 (eval $ac_try) 2>&5
29312 ac_status=$?
29313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29314 (exit $ac_status); }; } &&
74b84332 29315 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29317 (eval $ac_try) 2>&5
29318 ac_status=$?
29319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29320 (exit $ac_status); }; }; then
74b84332
VS
29321
29322 echo "$as_me:$LINENO: result: found in default search path" >&5
29323echo "${ECHO_T}found in default search path" >&6
29324 COMPILED_X_PROGRAM=1
29325
a848cd7e
SC
29326else
29327 echo "$as_me: failed program was:" >&5
29328sed 's/^/| /' conftest.$ac_ext >&5
29329
a848cd7e 29330
74b84332
VS
29331 echo "$as_me:$LINENO: result: no" >&5
29332echo "${ECHO_T}no" >&6
e051b34e
MW
29333 { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
29334echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
74b84332 29335 { (exit 1); exit 1; }; }
a848cd7e 29336
a848cd7e 29337
a848cd7e 29338fi
74b84332 29339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e051b34e
MW
29340
29341 CFLAGS=$save_CFLAGS
74b84332
VS
29342 fi
29343
0ad5d837
VZ
29344
29345 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
74b84332
VS
29346echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
29347
0ad5d837
VZ
29348 ac_find_libraries=
29349 for ac_dir in $SEARCH_LIB;
74b84332 29350 do
3eca31dc 29351 for ac_extension in a so sl dylib dll.a; do
74b84332
VS
29352 if test -f "$ac_dir/libXm.$ac_extension"; then
29353 ac_find_libraries=$ac_dir
29354 break 2
a848cd7e 29355 fi
74b84332
VS
29356 done
29357 done
a848cd7e 29358
0ad5d837
VZ
29359
29360 if test "x$ac_find_libraries" != "x" ; then
29361 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29362echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e 29363
74b84332 29364
0ad5d837 29365 if test "$ac_find_libraries" = "default location"; then
74b84332 29366 ac_path_to_link=""
a848cd7e 29367 else
0ad5d837
VZ
29368 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29369 result=$?
29370 if test $result = 0; then
29371 ac_path_to_link=""
29372 else
29373 ac_path_to_link=" -L$ac_find_libraries"
29374 fi
74b84332
VS
29375 fi
29376
0ad5d837
VZ
29377 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
29378 else
29379 save_CFLAGS=$CFLAGS
29380 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
6f9cf1e6
MW
29381 save_LIBS="$LIBS"
29382 LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
74b84332 29383
0ad5d837 29384 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29385/* confdefs.h. */
29386_ACEOF
29387cat confdefs.h >>conftest.$ac_ext
29388cat >>conftest.$ac_ext <<_ACEOF
29389/* end confdefs.h. */
29390
0ad5d837 29391 #include <Xm/Xm.h>
74b84332 29392
a848cd7e
SC
29393int
29394main ()
29395{
74b84332 29396
0ad5d837
VZ
29397 int version;
29398 version = xmUseVersion;
74b84332 29399
a848cd7e
SC
29400 ;
29401 return 0;
29402}
29403_ACEOF
0ad5d837
VZ
29404rm -f conftest.$ac_objext conftest$ac_exeext
29405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29406 (eval $ac_link) 2>conftest.er1
a848cd7e 29407 ac_status=$?
ac1cb8d3
VS
29408 grep -v '^ *+' conftest.er1 >conftest.err
29409 rm -f conftest.er1
29410 cat conftest.err >&5
a848cd7e
SC
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); } &&
5ff751d6 29413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29415 (eval $ac_try) 2>&5
29416 ac_status=$?
29417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418 (exit $ac_status); }; } &&
0ad5d837 29419 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29421 (eval $ac_try) 2>&5
29422 ac_status=$?
29423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29424 (exit $ac_status); }; }; then
74b84332 29425
0ad5d837 29426 echo "$as_me:$LINENO: result: found in default search path" >&5
74b84332 29427echo "${ECHO_T}found in default search path" >&6
0ad5d837 29428 COMPILED_X_PROGRAM=1
74b84332 29429
a848cd7e
SC
29430else
29431 echo "$as_me: failed program was:" >&5
29432sed 's/^/| /' conftest.$ac_ext >&5
29433
74b84332 29434
6f9cf1e6 29435 echo "$as_me:$LINENO: result: no" >&5
74b84332 29436echo "${ECHO_T}no" >&6
6f9cf1e6 29437 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
74b84332
VS
29438echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
29439 { (exit 1); exit 1; }; }
29440
29441
29442fi
0ad5d837
VZ
29443rm -f conftest.err conftest.$ac_objext \
29444 conftest$ac_exeext conftest.$ac_ext
74b84332 29445
0ad5d837 29446 CFLAGS=$save_CFLAGS
6f9cf1e6 29447 LIBS="$save_LIBS"
74b84332
VS
29448 fi
29449
29450 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
29451echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
29452 libp_link=""
29453 libsm_ice_link=""
29454 libs_found=0
29455 for libp in "" " -lXp"; do
29456 if test "$libs_found" = "0"; then
29457 for libsm_ice in "" " -lSM -lICE"; do
29458 if test "$libs_found" = "0"; then
29459 save_LIBS="$LIBS"
29460 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
29461 save_CFLAGS=$CFLAGS
29462 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29463
29464 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29465/* confdefs.h. */
29466_ACEOF
29467cat confdefs.h >>conftest.$ac_ext
29468cat >>conftest.$ac_ext <<_ACEOF
29469/* end confdefs.h. */
29470
74b84332
VS
29471 #include <Xm/Xm.h>
29472 #include <Xm/List.h>
29473
a848cd7e
SC
29474int
29475main ()
29476{
74b84332
VS
29477
29478 XmString string = NULL;
29479 Widget w = NULL;
29480 int position = 0;
29481 XmListAddItem(w, string, position);
29482
a848cd7e
SC
29483 ;
29484 return 0;
29485}
29486_ACEOF
29487rm -f conftest.$ac_objext conftest$ac_exeext
29488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29489 (eval $ac_link) 2>conftest.er1
a848cd7e 29490 ac_status=$?
ac1cb8d3
VS
29491 grep -v '^ *+' conftest.er1 >conftest.err
29492 rm -f conftest.er1
29493 cat conftest.err >&5
a848cd7e
SC
29494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495 (exit $ac_status); } &&
5ff751d6 29496 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29498 (eval $ac_try) 2>&5
29499 ac_status=$?
29500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501 (exit $ac_status); }; } &&
29502 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29504 (eval $ac_try) 2>&5
29505 ac_status=$?
29506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29507 (exit $ac_status); }; }; then
29508
29509 libp_link="$libp"
29510 libsm_ice_link="$libsm_ice"
29511 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
29512echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
29513 libs_found=1
29514
29515else
29516 echo "$as_me: failed program was:" >&5
29517sed 's/^/| /' conftest.$ac_ext >&5
29518
29519
29520
29521fi
ac1cb8d3
VS
29522rm -f conftest.err conftest.$ac_objext \
29523 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29524
29525 LIBS="$save_LIBS"
29526 CFLAGS=$save_CFLAGS
29527 fi
29528 done
29529 fi
29530 done
29531
29532 if test "$libs_found" = "0"; then
29533 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
29534echo "${ECHO_T}can't find the right libraries" >&6
29535 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
29536echo "$as_me: error: can't link a simple motif program" >&2;}
29537 { (exit 1); exit 1; }; }
29538 fi
29539
62fa8b3a
MW
29540 echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
29541echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6
29542if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
29543 echo $ECHO_N "(cached) $ECHO_C" >&6
29544else
29545 ac_check_lib_save_LIBS=$LIBS
29546LIBS="-lSgm $LIBS"
29547cat >conftest.$ac_ext <<_ACEOF
29548/* confdefs.h. */
29549_ACEOF
29550cat confdefs.h >>conftest.$ac_ext
29551cat >>conftest.$ac_ext <<_ACEOF
29552/* end confdefs.h. */
29553
29554/* Override any gcc2 internal prototype to avoid an error. */
29555#ifdef __cplusplus
29556extern "C"
29557#endif
29558/* We use char because int might match the return type of a gcc2
29559 builtin and then its argument prototype would still apply. */
29560char SgCreateList ();
29561int
29562main ()
29563{
29564SgCreateList ();
29565 ;
29566 return 0;
29567}
29568_ACEOF
29569rm -f conftest.$ac_objext conftest$ac_exeext
29570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29571 (eval $ac_link) 2>conftest.er1
29572 ac_status=$?
29573 grep -v '^ *+' conftest.er1 >conftest.err
29574 rm -f conftest.er1
29575 cat conftest.err >&5
29576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577 (exit $ac_status); } &&
5ff751d6 29578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
29579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29580 (eval $ac_try) 2>&5
29581 ac_status=$?
29582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583 (exit $ac_status); }; } &&
29584 { ac_try='test -s conftest$ac_exeext'
29585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29586 (eval $ac_try) 2>&5
29587 ac_status=$?
29588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29589 (exit $ac_status); }; }; then
29590 ac_cv_lib_Sgm_SgCreateList=yes
29591else
29592 echo "$as_me: failed program was:" >&5
29593sed 's/^/| /' conftest.$ac_ext >&5
29594
29595ac_cv_lib_Sgm_SgCreateList=no
29596fi
29597rm -f conftest.err conftest.$ac_objext \
29598 conftest$ac_exeext conftest.$ac_ext
29599LIBS=$ac_check_lib_save_LIBS
29600fi
29601echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
29602echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6
29603if test $ac_cv_lib_Sgm_SgCreateList = yes; then
29604 libsgm_link=" -lSgm"
29605fi
29606
29607
a848cd7e
SC
29608 save_CFLAGS=$CFLAGS
29609 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
0ad5d837 29610
a848cd7e
SC
29611 echo "$as_me:$LINENO: checking for Motif 2" >&5
29612echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
0ad5d837
VZ
29613if test "${wx_cv_lib_motif2+set}" = set; then
29614 echo $ECHO_N "(cached) $ECHO_C" >&6
29615else
29616 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
29617/* confdefs.h. */
29618_ACEOF
29619cat confdefs.h >>conftest.$ac_ext
29620cat >>conftest.$ac_ext <<_ACEOF
29621/* end confdefs.h. */
29622
0ad5d837 29623 #include <Xm/Xm.h>
a848cd7e
SC
29624
29625int
29626main ()
29627{
29628
0ad5d837
VZ
29629 #if XmVersion < 2000
29630 Not Motif 2
29631 #endif
a848cd7e
SC
29632
29633 ;
29634 return 0;
29635}
29636_ACEOF
29637rm -f conftest.$ac_objext
29638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29639 (eval $ac_compile) 2>conftest.er1
a848cd7e 29640 ac_status=$?
ac1cb8d3
VS
29641 grep -v '^ *+' conftest.er1 >conftest.err
29642 rm -f conftest.er1
29643 cat conftest.err >&5
a848cd7e
SC
29644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29645 (exit $ac_status); } &&
5ff751d6 29646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29648 (eval $ac_try) 2>&5
29649 ac_status=$?
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); }; } &&
29652 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29654 (eval $ac_try) 2>&5
29655 ac_status=$?
29656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29657 (exit $ac_status); }; }; then
0ad5d837 29658 wx_cv_lib_motif2="yes"
a848cd7e
SC
29659else
29660 echo "$as_me: failed program was:" >&5
29661sed 's/^/| /' conftest.$ac_ext >&5
29662
0ad5d837
VZ
29663wx_cv_lib_motif2="no"
29664fi
29665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29666fi
29667echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
29668echo "${ECHO_T}$wx_cv_lib_motif2" >&6
29669 if test "$wx_cv_lib_motif2" = "yes"; then
29670 cat >>confdefs.h <<\_ACEOF
29671#define __WXMOTIF20__ 1
29672_ACEOF
a848cd7e 29673
0ad5d837
VZ
29674 else
29675 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
29676#define __WXMOTIF20__ 0
29677_ACEOF
29678
0ad5d837 29679 fi
2113bc77
MW
29680
29681 echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
29682echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6
0ad5d837
VZ
29683if test "${wx_cv_lib_lesstif+set}" = set; then
29684 echo $ECHO_N "(cached) $ECHO_C" >&6
29685else
29686 cat >conftest.$ac_ext <<_ACEOF
2113bc77
MW
29687/* confdefs.h. */
29688_ACEOF
29689cat confdefs.h >>conftest.$ac_ext
29690cat >>conftest.$ac_ext <<_ACEOF
29691/* end confdefs.h. */
29692
0ad5d837 29693 #include <Xm/Xm.h>
2113bc77
MW
29694
29695int
29696main ()
29697{
29698
0ad5d837
VZ
29699 #if !defined(LesstifVersion) || LesstifVersion <= 0
29700 Not Lesstif
29701 #endif
2113bc77
MW
29702
29703 ;
29704 return 0;
29705}
29706_ACEOF
29707rm -f conftest.$ac_objext
29708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29709 (eval $ac_compile) 2>conftest.er1
29710 ac_status=$?
29711 grep -v '^ *+' conftest.er1 >conftest.err
29712 rm -f conftest.er1
29713 cat conftest.err >&5
29714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); } &&
5ff751d6 29716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2113bc77
MW
29717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29718 (eval $ac_try) 2>&5
29719 ac_status=$?
29720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29721 (exit $ac_status); }; } &&
29722 { ac_try='test -s conftest.$ac_objext'
29723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29724 (eval $ac_try) 2>&5
29725 ac_status=$?
29726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29727 (exit $ac_status); }; }; then
0ad5d837 29728 wx_cv_lib_lesstif="yes"
2113bc77
MW
29729else
29730 echo "$as_me: failed program was:" >&5
29731sed 's/^/| /' conftest.$ac_ext >&5
29732
0ad5d837
VZ
29733wx_cv_lib_lesstif="no"
29734fi
29735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2113bc77 29736
0ad5d837
VZ
29737fi
29738echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
29739echo "${ECHO_T}$wx_cv_lib_lesstif" >&6
29740 if test "$wx_cv_lib_lesstif" = "yes"; then
29741 cat >>confdefs.h <<\_ACEOF
29742#define __WXLESSTIF__ 1
29743_ACEOF
29744
29745 else
29746 cat >>confdefs.h <<\_ACEOF
2113bc77
MW
29747#define __WXLESSTIF__ 0
29748_ACEOF
29749
0ad5d837 29750 fi
2113bc77 29751
a848cd7e
SC
29752 CFLAGS=$save_CFLAGS
29753
62fa8b3a 29754 GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
a848cd7e
SC
29755 TOOLKIT=MOTIF
29756 GUIDIST=MOTIF_DIST
29757 fi
29758
74b84332 29759 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
a848cd7e
SC
29760 if test "$wxUSE_LIBXPM" = "sys"; then
29761 echo "$as_me:$LINENO: checking for Xpm library" >&5
29762echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
29763
0ad5d837
VZ
29764 ac_find_libraries=
29765 for ac_dir in $SEARCH_LIB;
a848cd7e 29766 do
3eca31dc 29767 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
29768 if test -f "$ac_dir/libXpm.$ac_extension"; then
29769 ac_find_libraries=$ac_dir
29770 break 2
29771 fi
29772 done
29773 done
29774
29775 if test "$ac_find_libraries" != "" ; then
29776
0ad5d837 29777 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
29778 ac_path_to_link=""
29779 else
0ad5d837
VZ
29780 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
29781 result=$?
29782 if test $result = 0; then
29783 ac_path_to_link=""
29784 else
29785 ac_path_to_link=" -L$ac_find_libraries"
29786 fi
a848cd7e
SC
29787 fi
29788
29789 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
0ad5d837
VZ
29790 echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
29791echo "${ECHO_T}found in $ac_find_libraries" >&6
a848cd7e
SC
29792
29793 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
29794echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
29795if test "${wx_cv_x11_xpm_h+set}" = set; then
29796 echo $ECHO_N "(cached) $ECHO_C" >&6
29797else
29798
29799 save_CFLAGS=$CFLAGS
29800 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29801
29802 cat >conftest.$ac_ext <<_ACEOF
29803/* confdefs.h. */
29804_ACEOF
29805cat confdefs.h >>conftest.$ac_ext
29806cat >>conftest.$ac_ext <<_ACEOF
29807/* end confdefs.h. */
29808
29809 #include <X11/xpm.h>
29810
29811int
29812main ()
29813{
29814
29815 int version;
29816 version = XpmLibraryVersion();
29817
29818 ;
29819 return 0;
29820}
29821_ACEOF
29822rm -f conftest.$ac_objext
29823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29824 (eval $ac_compile) 2>conftest.er1
a848cd7e 29825 ac_status=$?
ac1cb8d3
VS
29826 grep -v '^ *+' conftest.er1 >conftest.err
29827 rm -f conftest.er1
29828 cat conftest.err >&5
a848cd7e
SC
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); } &&
5ff751d6 29831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29833 (eval $ac_try) 2>&5
29834 ac_status=$?
29835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29836 (exit $ac_status); }; } &&
29837 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29839 (eval $ac_try) 2>&5
29840 ac_status=$?
29841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842 (exit $ac_status); }; }; then
29843 wx_cv_x11_xpm_h=yes
29844else
29845 echo "$as_me: failed program was:" >&5
29846sed 's/^/| /' conftest.$ac_ext >&5
29847
29848wx_cv_x11_xpm_h=no
29849
29850fi
ac1cb8d3 29851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
29852
29853 CFLAGS=$save_CFLAGS
29854
29855
29856fi
29857echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
29858echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
29859
29860 if test $wx_cv_x11_xpm_h = "yes"; then
29861 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
29862 cat >>confdefs.h <<\_ACEOF
29863#define wxHAVE_LIB_XPM 1
29864_ACEOF
29865
29866 else
29867 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
29868echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
29869 fi
29870 fi
29871
29872 fi
29873
29874 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
29875echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
29876if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
29877 echo $ECHO_N "(cached) $ECHO_C" >&6
29878else
29879 ac_check_lib_save_LIBS=$LIBS
29880LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
29881cat >conftest.$ac_ext <<_ACEOF
29882/* confdefs.h. */
29883_ACEOF
29884cat confdefs.h >>conftest.$ac_ext
29885cat >>conftest.$ac_ext <<_ACEOF
29886/* end confdefs.h. */
29887
29888/* Override any gcc2 internal prototype to avoid an error. */
29889#ifdef __cplusplus
29890extern "C"
29891#endif
29892/* We use char because int might match the return type of a gcc2
29893 builtin and then its argument prototype would still apply. */
29894char XShapeQueryExtension ();
29895int
29896main ()
29897{
29898XShapeQueryExtension ();
29899 ;
29900 return 0;
29901}
29902_ACEOF
29903rm -f conftest.$ac_objext conftest$ac_exeext
29904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 29905 (eval $ac_link) 2>conftest.er1
a848cd7e 29906 ac_status=$?
ac1cb8d3
VS
29907 grep -v '^ *+' conftest.er1 >conftest.err
29908 rm -f conftest.er1
29909 cat conftest.err >&5
a848cd7e
SC
29910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29911 (exit $ac_status); } &&
5ff751d6 29912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29914 (eval $ac_try) 2>&5
29915 ac_status=$?
29916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29917 (exit $ac_status); }; } &&
29918 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
29919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29920 (eval $ac_try) 2>&5
29921 ac_status=$?
29922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29923 (exit $ac_status); }; }; then
29924 ac_cv_lib_Xext_XShapeQueryExtension=yes
29925else
29926 echo "$as_me: failed program was:" >&5
29927sed 's/^/| /' conftest.$ac_ext >&5
29928
29929ac_cv_lib_Xext_XShapeQueryExtension=no
29930fi
ac1cb8d3
VS
29931rm -f conftest.err conftest.$ac_objext \
29932 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
29933LIBS=$ac_check_lib_save_LIBS
29934fi
29935echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
29936echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
29937if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
29938
29939 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
29940 wxHAVE_XEXT_LIB=1
29941
29942fi
29943
29944
29945 if test "$wxHAVE_XEXT_LIB" = 1; then
29946 save_CFLAGS="$CFLAGS"
29947 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
29948
29949 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
29950echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
29951 cat >conftest.$ac_ext <<_ACEOF
29952/* confdefs.h. */
29953_ACEOF
29954cat confdefs.h >>conftest.$ac_ext
29955cat >>conftest.$ac_ext <<_ACEOF
29956/* end confdefs.h. */
29957
29958 #include <X11/Xlib.h>
29959 #include <X11/extensions/shape.h>
29960
29961int
29962main ()
29963{
29964
29965 int dummy1, dummy2;
29966 XShapeQueryExtension((Display*)NULL,
29967 (int*)NULL, (int*)NULL);
29968
29969 ;
29970 return 0;
29971}
29972_ACEOF
29973rm -f conftest.$ac_objext
29974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 29975 (eval $ac_compile) 2>conftest.er1
a848cd7e 29976 ac_status=$?
ac1cb8d3
VS
29977 grep -v '^ *+' conftest.er1 >conftest.err
29978 rm -f conftest.er1
29979 cat conftest.err >&5
a848cd7e
SC
29980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981 (exit $ac_status); } &&
5ff751d6 29982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
29983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29984 (eval $ac_try) 2>&5
29985 ac_status=$?
29986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29987 (exit $ac_status); }; } &&
29988 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
29989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29990 (eval $ac_try) 2>&5
29991 ac_status=$?
29992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29993 (exit $ac_status); }; }; then
29994
29995 cat >>confdefs.h <<\_ACEOF
29996#define HAVE_XSHAPE 1
29997_ACEOF
29998
29999 echo "$as_me:$LINENO: result: found" >&5
30000echo "${ECHO_T}found" >&6
30001
30002else
30003 echo "$as_me: failed program was:" >&5
30004sed 's/^/| /' conftest.$ac_ext >&5
30005
30006
30007 echo "$as_me:$LINENO: result: not found" >&5
30008echo "${ECHO_T}not found" >&6
30009
30010fi
ac1cb8d3 30011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30012 CFLAGS="$save_CFLAGS"
30013
30014 fi
30015 fi
30016
30017 if test "$wxUSE_MAC" = 1; then
30018 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
30019echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
30020 if test "$GCC" = yes; then
30021 echo "$as_me:$LINENO: result: gcc" >&5
30022echo "${ECHO_T}gcc" >&6
30023 CPPFLAGS_PASCAL="-fpascal-strings"
30024 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
30025 echo "$as_me:$LINENO: result: xlc" >&5
30026echo "${ECHO_T}xlc" >&6
30027 CPPFLAGS_PASCAL="-qmacpstr"
30028 else
30029 echo "$as_me:$LINENO: result: none" >&5
30030echo "${ECHO_T}none" >&6
30031 fi
30032
1e9e8aba
DE
30033 if test "x$wxUSE_UNIX" = "xyes"; then
30034 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon"
30035 else
30036 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON"
30037 fi
a848cd7e 30038
a848cd7e
SC
30039 TOOLKIT=MAC
30040 GUIDIST=MACX_DIST
dd21ced8 30041 WXBASEPORT="_carbon"
a848cd7e
SC
30042 fi
30043
30044 if test "$wxUSE_COCOA" = 1; then
a848cd7e
SC
30045 TOOLKIT=COCOA
30046 GUIDIST=COCOA_DIST
30047 fi
30048
30049 if test "$wxUSE_PM" = 1; then
30050 TOOLKIT=PM
de59c161
RD
30051 GUIDIST=PM_DIST
30052 echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
30053echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6
30054if test "${wx_cv_spbcdata+set}" = set; then
30055 echo $ECHO_N "(cached) $ECHO_C" >&6
30056else
30057
30058 cat >conftest.$ac_ext <<_ACEOF
de59c161
RD
30059/* confdefs.h. */
30060_ACEOF
30061cat confdefs.h >>conftest.$ac_ext
30062cat >>conftest.$ac_ext <<_ACEOF
30063/* end confdefs.h. */
30064
30065 #define INCL_PM
30066 #include <os2.h>
30067
30068int
30069main ()
30070{
30071
30072 SPBCDATA test;
30073
30074 ;
30075 return 0;
30076}
30077_ACEOF
30078rm -f conftest.$ac_objext
30079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30080 (eval $ac_compile) 2>conftest.er1
de59c161 30081 ac_status=$?
ac1cb8d3
VS
30082 grep -v '^ *+' conftest.er1 >conftest.err
30083 rm -f conftest.er1
30084 cat conftest.err >&5
de59c161
RD
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); } &&
5ff751d6 30087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30089 (eval $ac_try) 2>&5
30090 ac_status=$?
30091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092 (exit $ac_status); }; } &&
30093 { ac_try='test -s conftest.$ac_objext'
de59c161
RD
30094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30095 (eval $ac_try) 2>&5
30096 ac_status=$?
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); }; }; then
30099 wx_cv_spbcdata=yes
30100else
30101 echo "$as_me: failed program was:" >&5
30102sed 's/^/| /' conftest.$ac_ext >&5
30103
30104wx_cv_spbcdata=no
30105
30106fi
ac1cb8d3 30107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
de59c161
RD
30108
30109
30110fi
30111echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
30112echo "${ECHO_T}$wx_cv_spbcdata" >&6
30113
30114 if test $wx_cv_spbcdata = "yes"; then
30115 cat >>confdefs.h <<\_ACEOF
30116#define HAVE_SPBCDATA 1
30117_ACEOF
30118
30119 fi
a848cd7e
SC
30120 fi
30121
30122 if test "$TOOLKIT" = "PM" ; then
30123 TOOLKIT_DIR="os2"
30124 else
30125 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
30126 fi
30127
a848cd7e 30128 if test "$wxUSE_UNIVERSAL" = "yes"; then
a848cd7e
SC
30129 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
30130 WIDGET_SET=univ
a848cd7e
SC
30131 fi
30132
30133 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
30134 DISTDIR="wx\$(TOOLKIT)"
30135else
30136 USE_GUI=0
30137
30138 TOOLKIT_DIR="base"
30139
30140 if test "$USE_WIN32" = 1 ; then
a848cd7e 30141 TOOLKIT="MSW"
a848cd7e
SC
30142 fi
30143
a848cd7e
SC
30144 GUIDIST="BASE_DIST"
30145 DISTDIR="wxBase"
30146fi
30147
30148
d12aef51
VZ
30149if test "$wxUSE_GUI" = "yes"; then
30150 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
30151
30152for ac_header in X11/Xlib.h
30153do
30154as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30155if eval "test \"\${$as_ac_Header+set}\" = set"; then
30156 echo "$as_me:$LINENO: checking for $ac_header" >&5
30157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30158if eval "test \"\${$as_ac_Header+set}\" = set"; then
30159 echo $ECHO_N "(cached) $ECHO_C" >&6
30160fi
30161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30163else
30164 # Is the header compilable?
30165echo "$as_me:$LINENO: checking $ac_header usability" >&5
30166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30167cat >conftest.$ac_ext <<_ACEOF
30168/* confdefs.h. */
30169_ACEOF
30170cat confdefs.h >>conftest.$ac_ext
30171cat >>conftest.$ac_ext <<_ACEOF
30172/* end confdefs.h. */
30173$ac_includes_default
30174#include <$ac_header>
30175_ACEOF
30176rm -f conftest.$ac_objext
30177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30178 (eval $ac_compile) 2>conftest.er1
30179 ac_status=$?
30180 grep -v '^ *+' conftest.er1 >conftest.err
30181 rm -f conftest.er1
30182 cat conftest.err >&5
30183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30184 (exit $ac_status); } &&
5ff751d6 30185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30187 (eval $ac_try) 2>&5
30188 ac_status=$?
30189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190 (exit $ac_status); }; } &&
30191 { ac_try='test -s conftest.$ac_objext'
30192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30193 (eval $ac_try) 2>&5
30194 ac_status=$?
30195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196 (exit $ac_status); }; }; then
30197 ac_header_compiler=yes
30198else
30199 echo "$as_me: failed program was:" >&5
30200sed 's/^/| /' conftest.$ac_ext >&5
30201
30202ac_header_compiler=no
30203fi
30204rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30205echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30206echo "${ECHO_T}$ac_header_compiler" >&6
30207
30208# Is the header present?
30209echo "$as_me:$LINENO: checking $ac_header presence" >&5
30210echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30211cat >conftest.$ac_ext <<_ACEOF
30212/* confdefs.h. */
30213_ACEOF
30214cat confdefs.h >>conftest.$ac_ext
30215cat >>conftest.$ac_ext <<_ACEOF
30216/* end confdefs.h. */
30217#include <$ac_header>
30218_ACEOF
30219if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30220 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30221 ac_status=$?
30222 grep -v '^ *+' conftest.er1 >conftest.err
30223 rm -f conftest.er1
30224 cat conftest.err >&5
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); } >/dev/null; then
30227 if test -s conftest.err; then
30228 ac_cpp_err=$ac_c_preproc_warn_flag
30229 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30230 else
30231 ac_cpp_err=
30232 fi
30233else
30234 ac_cpp_err=yes
30235fi
30236if test -z "$ac_cpp_err"; then
30237 ac_header_preproc=yes
30238else
30239 echo "$as_me: failed program was:" >&5
30240sed 's/^/| /' conftest.$ac_ext >&5
30241
30242 ac_header_preproc=no
30243fi
30244rm -f conftest.err conftest.$ac_ext
30245echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30246echo "${ECHO_T}$ac_header_preproc" >&6
30247
30248# So? What about this header?
30249case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30250 yes:no: )
30251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30252echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30254echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30255 ac_header_preproc=yes
30256 ;;
30257 no:yes:* )
30258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30259echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30261echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30263echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30265echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30267echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30269echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30270 (
30271 cat <<\_ASBOX
30272## ----------------------------------------- ##
30273## Report this to wx-dev@lists.wxwidgets.org ##
30274## ----------------------------------------- ##
30275_ASBOX
30276 ) |
30277 sed "s/^/$as_me: WARNING: /" >&2
30278 ;;
30279esac
30280echo "$as_me:$LINENO: checking for $ac_header" >&5
30281echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30282if eval "test \"\${$as_ac_Header+set}\" = set"; then
30283 echo $ECHO_N "(cached) $ECHO_C" >&6
30284else
30285 eval "$as_ac_Header=\$ac_header_preproc"
30286fi
30287echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30288echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30289
30290fi
30291if test `eval echo '${'$as_ac_Header'}'` = yes; then
30292 cat >>confdefs.h <<_ACEOF
30293#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30294_ACEOF
30295
30296fi
30297
30298done
30299
30300
30301for ac_header in X11/XKBlib.h
30302do
30303as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30304echo "$as_me:$LINENO: checking for $ac_header" >&5
30305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30306if eval "test \"\${$as_ac_Header+set}\" = set"; then
30307 echo $ECHO_N "(cached) $ECHO_C" >&6
30308else
30309 cat >conftest.$ac_ext <<_ACEOF
30310/* confdefs.h. */
30311_ACEOF
30312cat confdefs.h >>conftest.$ac_ext
30313cat >>conftest.$ac_ext <<_ACEOF
30314/* end confdefs.h. */
30315
30316 #if HAVE_X11_XLIB_H
30317 #include <X11/Xlib.h>
30318 #endif
30319
30320
30321#include <$ac_header>
30322_ACEOF
30323rm -f conftest.$ac_objext
30324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30325 (eval $ac_compile) 2>conftest.er1
30326 ac_status=$?
30327 grep -v '^ *+' conftest.er1 >conftest.err
30328 rm -f conftest.er1
30329 cat conftest.err >&5
30330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30331 (exit $ac_status); } &&
5ff751d6 30332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
30333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30334 (eval $ac_try) 2>&5
30335 ac_status=$?
30336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); }; } &&
30338 { ac_try='test -s conftest.$ac_objext'
30339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30340 (eval $ac_try) 2>&5
30341 ac_status=$?
30342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30343 (exit $ac_status); }; }; then
30344 eval "$as_ac_Header=yes"
30345else
30346 echo "$as_me: failed program was:" >&5
30347sed 's/^/| /' conftest.$ac_ext >&5
30348
30349eval "$as_ac_Header=no"
30350fi
30351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30352fi
30353echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30354echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30355if test `eval echo '${'$as_ac_Header'}'` = yes; then
30356 cat >>confdefs.h <<_ACEOF
30357#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30358_ACEOF
30359
30360fi
30361
30362done
30363
30364 fi
30365fi
30366
a848cd7e
SC
30367
30368
30369IODBC_C_SRC=""
30370
30371
30372if test "$TOOLKIT" != "MSW" ; then
30373
30374 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
30375
30376 if test "${ac_cv_header_sql_h+set}" = set; then
30377 echo "$as_me:$LINENO: checking for sql.h" >&5
30378echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30379if test "${ac_cv_header_sql_h+set}" = set; then
30380 echo $ECHO_N "(cached) $ECHO_C" >&6
30381fi
30382echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30383echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30384else
30385 # Is the header compilable?
30386echo "$as_me:$LINENO: checking sql.h usability" >&5
30387echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
30388cat >conftest.$ac_ext <<_ACEOF
30389/* confdefs.h. */
30390_ACEOF
30391cat confdefs.h >>conftest.$ac_ext
30392cat >>conftest.$ac_ext <<_ACEOF
30393/* end confdefs.h. */
30394$ac_includes_default
30395#include <sql.h>
30396_ACEOF
30397rm -f conftest.$ac_objext
30398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30399 (eval $ac_compile) 2>conftest.er1
a848cd7e 30400 ac_status=$?
ac1cb8d3
VS
30401 grep -v '^ *+' conftest.er1 >conftest.err
30402 rm -f conftest.er1
30403 cat conftest.err >&5
a848cd7e
SC
30404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30405 (exit $ac_status); } &&
5ff751d6 30406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30408 (eval $ac_try) 2>&5
30409 ac_status=$?
30410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); }; } &&
30412 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30414 (eval $ac_try) 2>&5
30415 ac_status=$?
30416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30417 (exit $ac_status); }; }; then
30418 ac_header_compiler=yes
30419else
30420 echo "$as_me: failed program was:" >&5
30421sed 's/^/| /' conftest.$ac_ext >&5
30422
30423ac_header_compiler=no
30424fi
ac1cb8d3 30425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30426echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30427echo "${ECHO_T}$ac_header_compiler" >&6
30428
30429# Is the header present?
30430echo "$as_me:$LINENO: checking sql.h presence" >&5
30431echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
30432cat >conftest.$ac_ext <<_ACEOF
30433/* confdefs.h. */
30434_ACEOF
30435cat confdefs.h >>conftest.$ac_ext
30436cat >>conftest.$ac_ext <<_ACEOF
30437/* end confdefs.h. */
30438#include <sql.h>
30439_ACEOF
30440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30441 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30442 ac_status=$?
30443 grep -v '^ *+' conftest.er1 >conftest.err
30444 rm -f conftest.er1
30445 cat conftest.err >&5
30446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30447 (exit $ac_status); } >/dev/null; then
30448 if test -s conftest.err; then
30449 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 30450 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
30451 else
30452 ac_cpp_err=
30453 fi
30454else
30455 ac_cpp_err=yes
30456fi
30457if test -z "$ac_cpp_err"; then
30458 ac_header_preproc=yes
30459else
30460 echo "$as_me: failed program was:" >&5
30461sed 's/^/| /' conftest.$ac_ext >&5
30462
30463 ac_header_preproc=no
30464fi
30465rm -f conftest.err conftest.$ac_ext
30466echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30467echo "${ECHO_T}$ac_header_preproc" >&6
30468
30469# So? What about this header?
ac1cb8d3
VS
30470case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30471 yes:no: )
a848cd7e
SC
30472 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
30473echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
30474 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
30475echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
30476 ac_header_preproc=yes
a848cd7e 30477 ;;
ac1cb8d3 30478 no:yes:* )
a848cd7e
SC
30479 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
30480echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
30481 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
30482echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
30483 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
30484echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
30485 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
30486echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
30487 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
30488echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
30489 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
30490echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
30491 (
30492 cat <<\_ASBOX
ac1cb8d3
VS
30493## ----------------------------------------- ##
30494## Report this to wx-dev@lists.wxwidgets.org ##
30495## ----------------------------------------- ##
a848cd7e
SC
30496_ASBOX
30497 ) |
30498 sed "s/^/$as_me: WARNING: /" >&2
30499 ;;
30500esac
30501echo "$as_me:$LINENO: checking for sql.h" >&5
30502echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
30503if test "${ac_cv_header_sql_h+set}" = set; then
30504 echo $ECHO_N "(cached) $ECHO_C" >&6
30505else
30506 ac_cv_header_sql_h=$ac_header_preproc
30507fi
30508echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
30509echo "${ECHO_T}$ac_cv_header_sql_h" >&6
30510
30511fi
30512if test $ac_cv_header_sql_h = yes; then
30513 found_sql_h=1
30514fi
30515
30516
30517 if test "x$found_sql_h" = "x1" ; then
30518 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
30519echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
30520if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
30521 echo $ECHO_N "(cached) $ECHO_C" >&6
30522else
30523 ac_check_lib_save_LIBS=$LIBS
30524LIBS="-liodbc $LIBS"
30525cat >conftest.$ac_ext <<_ACEOF
30526/* confdefs.h. */
30527_ACEOF
30528cat confdefs.h >>conftest.$ac_ext
30529cat >>conftest.$ac_ext <<_ACEOF
30530/* end confdefs.h. */
30531
30532/* Override any gcc2 internal prototype to avoid an error. */
30533#ifdef __cplusplus
30534extern "C"
30535#endif
30536/* We use char because int might match the return type of a gcc2
30537 builtin and then its argument prototype would still apply. */
30538char SQLAllocEnv ();
30539int
30540main ()
30541{
30542SQLAllocEnv ();
30543 ;
30544 return 0;
30545}
30546_ACEOF
30547rm -f conftest.$ac_objext conftest$ac_exeext
30548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30549 (eval $ac_link) 2>conftest.er1
a848cd7e 30550 ac_status=$?
ac1cb8d3
VS
30551 grep -v '^ *+' conftest.er1 >conftest.err
30552 rm -f conftest.er1
30553 cat conftest.err >&5
a848cd7e
SC
30554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30555 (exit $ac_status); } &&
5ff751d6 30556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30558 (eval $ac_try) 2>&5
30559 ac_status=$?
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); }; } &&
30562 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30564 (eval $ac_try) 2>&5
30565 ac_status=$?
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; }; then
30568 ac_cv_lib_iodbc_SQLAllocEnv=yes
30569else
30570 echo "$as_me: failed program was:" >&5
30571sed 's/^/| /' conftest.$ac_ext >&5
30572
30573ac_cv_lib_iodbc_SQLAllocEnv=no
30574fi
ac1cb8d3
VS
30575rm -f conftest.err conftest.$ac_objext \
30576 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30577LIBS=$ac_check_lib_save_LIBS
30578fi
30579echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
30580echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
30581if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
30582 ODBC_LINK=" -liodbc"
30583else
30584
30585 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
30586echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
30587if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
30588 echo $ECHO_N "(cached) $ECHO_C" >&6
30589else
30590 ac_check_lib_save_LIBS=$LIBS
30591LIBS="-lunixodbc $LIBS"
30592cat >conftest.$ac_ext <<_ACEOF
30593/* confdefs.h. */
30594_ACEOF
30595cat confdefs.h >>conftest.$ac_ext
30596cat >>conftest.$ac_ext <<_ACEOF
30597/* end confdefs.h. */
30598
30599/* Override any gcc2 internal prototype to avoid an error. */
30600#ifdef __cplusplus
30601extern "C"
30602#endif
30603/* We use char because int might match the return type of a gcc2
30604 builtin and then its argument prototype would still apply. */
30605char SQLAllocEnv ();
30606int
30607main ()
30608{
30609SQLAllocEnv ();
30610 ;
30611 return 0;
30612}
30613_ACEOF
30614rm -f conftest.$ac_objext conftest$ac_exeext
30615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30616 (eval $ac_link) 2>conftest.er1
a848cd7e 30617 ac_status=$?
ac1cb8d3
VS
30618 grep -v '^ *+' conftest.er1 >conftest.err
30619 rm -f conftest.er1
30620 cat conftest.err >&5
a848cd7e
SC
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); } &&
5ff751d6 30623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30625 (eval $ac_try) 2>&5
30626 ac_status=$?
30627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); }; } &&
30629 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30631 (eval $ac_try) 2>&5
30632 ac_status=$?
30633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634 (exit $ac_status); }; }; then
30635 ac_cv_lib_unixodbc_SQLAllocEnv=yes
30636else
30637 echo "$as_me: failed program was:" >&5
30638sed 's/^/| /' conftest.$ac_ext >&5
30639
30640ac_cv_lib_unixodbc_SQLAllocEnv=no
30641fi
ac1cb8d3
VS
30642rm -f conftest.err conftest.$ac_objext \
30643 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30644LIBS=$ac_check_lib_save_LIBS
30645fi
30646echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
30647echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
30648if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
30649 ODBC_LINK=" -lunixodbc"
30650else
30651
30652 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
30653echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
30654if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
30655 echo $ECHO_N "(cached) $ECHO_C" >&6
30656else
30657 ac_check_lib_save_LIBS=$LIBS
30658LIBS="-lodbc $LIBS"
30659cat >conftest.$ac_ext <<_ACEOF
30660/* confdefs.h. */
30661_ACEOF
30662cat confdefs.h >>conftest.$ac_ext
30663cat >>conftest.$ac_ext <<_ACEOF
30664/* end confdefs.h. */
30665
30666/* Override any gcc2 internal prototype to avoid an error. */
30667#ifdef __cplusplus
30668extern "C"
30669#endif
30670/* We use char because int might match the return type of a gcc2
30671 builtin and then its argument prototype would still apply. */
30672char SQLAllocEnv ();
30673int
30674main ()
30675{
30676SQLAllocEnv ();
30677 ;
30678 return 0;
30679}
30680_ACEOF
30681rm -f conftest.$ac_objext conftest$ac_exeext
30682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 30683 (eval $ac_link) 2>conftest.er1
a848cd7e 30684 ac_status=$?
ac1cb8d3
VS
30685 grep -v '^ *+' conftest.er1 >conftest.err
30686 rm -f conftest.er1
30687 cat conftest.err >&5
a848cd7e
SC
30688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689 (exit $ac_status); } &&
5ff751d6 30690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30692 (eval $ac_try) 2>&5
30693 ac_status=$?
30694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30695 (exit $ac_status); }; } &&
30696 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
30697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30698 (eval $ac_try) 2>&5
30699 ac_status=$?
30700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30701 (exit $ac_status); }; }; then
30702 ac_cv_lib_odbc_SQLAllocEnv=yes
30703else
30704 echo "$as_me: failed program was:" >&5
30705sed 's/^/| /' conftest.$ac_ext >&5
30706
30707ac_cv_lib_odbc_SQLAllocEnv=no
30708fi
ac1cb8d3
VS
30709rm -f conftest.err conftest.$ac_objext \
30710 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
30711LIBS=$ac_check_lib_save_LIBS
30712fi
30713echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
30714echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
30715if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
30716 ODBC_LINK=" -lodbc"
30717fi
30718
30719
30720fi
30721
30722
30723fi
30724
30725 fi
30726 if test "x$ODBC_LINK" = "x" ; then
30727 if test "$wxUSE_ODBC" = "sys" ; then
30728 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
30729echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
30730 { (exit 1); exit 1; }; }
30731 else
30732 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
30733echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
30734 wxUSE_ODBC=builtin
30735 fi
30736 else
30737 wxUSE_ODBC=sys
30738 fi
30739 fi
a848cd7e 30740
2da0c077
RD
30741 if test "$wxUSE_ODBC" = "builtin" ; then
30742 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
30743#define wxUSE_BUILTIN_IODBC 1
30744_ACEOF
30745
a848cd7e
SC
30746 fi
30747fi
30748
2da0c077
RD
30749if test "$wxUSE_ODBC" != "no" ; then
30750 cat >>confdefs.h <<\_ACEOF
30751#define wxUSE_ODBC 1
30752_ACEOF
30753
30754 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
30755
5ff751d6 30756 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
2da0c077 30757fi
a848cd7e 30758
01cb68df 30759
a848cd7e 30760if test "$wxUSE_DISPLAY" = "yes"; then
2a5d7a98 30761 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
a848cd7e
SC
30762 echo "$as_me:$LINENO: checking for Xinerama" >&5
30763echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
30764
0ad5d837
VZ
30765 ac_find_libraries=
30766 for ac_dir in $SEARCH_LIB;
30767 do
30768 for ac_extension in a so sl dylib dll.a; do
30769 if test -f "$ac_dir/libXinerama.$ac_extension"; then
30770 ac_find_libraries=$ac_dir
30771 break 2
30772 fi
30773 done
30774 done
30775
a848cd7e
SC
30776 if test "$ac_find_libraries" != "" ; then
30777
0ad5d837 30778 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
30779 ac_path_to_link=""
30780 else
0ad5d837
VZ
30781 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
30782 result=$?
30783 if test $result = 0; then
30784 ac_path_to_link=""
30785 else
30786 ac_path_to_link=" -L$ac_find_libraries"
30787 fi
a848cd7e
SC
30788 fi
30789
30790 if test "$ac_path_to_link" != " -L/usr/lib" ; then
30791 LDFLAGS="$LDFLAGS $ac_path_to_link"
30792 fi
30793 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
30794 echo "$as_me:$LINENO: result: yes" >&5
30795echo "${ECHO_T}yes" >&6
30796
30797 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
30798echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
30799
0ad5d837
VZ
30800 ac_find_libraries=
30801 for ac_dir in $SEARCH_LIB;
a848cd7e 30802 do
3eca31dc 30803 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
30804 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
30805 ac_find_libraries=$ac_dir
30806 break 2
30807 fi
30808 done
30809 done
30810
30811 if test "$ac_find_libraries" != "" ; then
30812 echo "$as_me:$LINENO: result: yes" >&5
30813echo "${ECHO_T}yes" >&6
30814
30815for ac_header in X11/extensions/xf86vmode.h
30816do
30817as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30818echo "$as_me:$LINENO: checking for $ac_header" >&5
30819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30820if eval "test \"\${$as_ac_Header+set}\" = set"; then
30821 echo $ECHO_N "(cached) $ECHO_C" >&6
30822else
30823 cat >conftest.$ac_ext <<_ACEOF
30824/* confdefs.h. */
30825_ACEOF
30826cat confdefs.h >>conftest.$ac_ext
30827cat >>conftest.$ac_ext <<_ACEOF
30828/* end confdefs.h. */
30829
30830 #if HAVE_X11_XLIB_H
30831 #include <X11/Xlib.h>
30832 #endif
30833
30834
30835#include <$ac_header>
30836_ACEOF
30837rm -f conftest.$ac_objext
30838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30839 (eval $ac_compile) 2>conftest.er1
a848cd7e 30840 ac_status=$?
ac1cb8d3
VS
30841 grep -v '^ *+' conftest.er1 >conftest.err
30842 rm -f conftest.er1
30843 cat conftest.err >&5
a848cd7e
SC
30844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845 (exit $ac_status); } &&
5ff751d6 30846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30848 (eval $ac_try) 2>&5
30849 ac_status=$?
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); }; } &&
30852 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
30853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30854 (eval $ac_try) 2>&5
30855 ac_status=$?
30856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30857 (exit $ac_status); }; }; then
30858 eval "$as_ac_Header=yes"
30859else
30860 echo "$as_me: failed program was:" >&5
30861sed 's/^/| /' conftest.$ac_ext >&5
30862
30863eval "$as_ac_Header=no"
30864fi
ac1cb8d3 30865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
30866fi
30867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30869if test `eval echo '${'$as_ac_Header'}'` = yes; then
30870 cat >>confdefs.h <<_ACEOF
30871#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30872_ACEOF
30873
30874 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
30875
30876fi
30877
30878done
30879
30880 else
30881 echo "$as_me:$LINENO: result: no" >&5
30882echo "${ECHO_T}no" >&6
30883 fi
30884
30885 else
30886 echo "$as_me:$LINENO: result: no" >&5
30887echo "${ECHO_T}no" >&6
dcc1b6ad
VS
30888 { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
30889echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
a848cd7e
SC
30890 wxUSE_DISPLAY="no"
30891 fi
01cb68df
RG
30892 elif test "$wxUSE_MSW" = 1; then
30893
30894
30895for ac_header in multimon.h ddraw.h
30896do
30897as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5294a27e 30898echo "$as_me:$LINENO: checking for $ac_header" >&5
01cb68df
RG
30899echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30900if eval "test \"\${$as_ac_Header+set}\" = set"; then
30901 echo $ECHO_N "(cached) $ECHO_C" >&6
01cb68df 30902else
5294a27e 30903 cat >conftest.$ac_ext <<_ACEOF
01cb68df
RG
30904/* confdefs.h. */
30905_ACEOF
30906cat confdefs.h >>conftest.$ac_ext
30907cat >>conftest.$ac_ext <<_ACEOF
30908/* end confdefs.h. */
5294a27e
VZ
30909#include <windows.h>
30910
01cb68df
RG
30911#include <$ac_header>
30912_ACEOF
30913rm -f conftest.$ac_objext
30914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 30915 (eval $ac_compile) 2>conftest.er1
01cb68df 30916 ac_status=$?
ac1cb8d3
VS
30917 grep -v '^ *+' conftest.er1 >conftest.err
30918 rm -f conftest.er1
30919 cat conftest.err >&5
01cb68df
RG
30920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921 (exit $ac_status); } &&
5ff751d6 30922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
30923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30924 (eval $ac_try) 2>&5
30925 ac_status=$?
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); }; } &&
30928 { ac_try='test -s conftest.$ac_objext'
01cb68df
RG
30929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30930 (eval $ac_try) 2>&5
30931 ac_status=$?
30932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30933 (exit $ac_status); }; }; then
5294a27e 30934 eval "$as_ac_Header=yes"
01cb68df
RG
30935else
30936 echo "$as_me: failed program was:" >&5
30937sed 's/^/| /' conftest.$ac_ext >&5
30938
5294a27e 30939eval "$as_ac_Header=no"
01cb68df 30940fi
ac1cb8d3 30941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
01cb68df
RG
30942fi
30943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
01cb68df
RG
30945if test `eval echo '${'$as_ac_Header'}'` = yes; then
30946 cat >>confdefs.h <<_ACEOF
30947#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30948_ACEOF
30949
30950else
30951
5294a27e
VZ
30952 wxUSE_DISPLAY="no"
30953 { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5
dcc1b6ad 30954echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;}
01cb68df
RG
30955
30956fi
30957
30958done
30959
a848cd7e
SC
30960 fi
30961fi
30962
30963
30964USE_OPENGL=0
30965if test "$wxUSE_OPENGL" = "yes"; then
30966 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
30967 OPENGL_LIBS="-framework OpenGL -framework AGL"
30968 elif test "$wxUSE_MSW" = 1; then
30969 OPENGL_LIBS="-lopengl32 -lglu32"
30970 else
30971
30972
30973ac_find_includes=
30974for ac_dir in $SEARCH_INCLUDE /usr/include;
30975 do
30976 if test -f "$ac_dir/GL/gl.h"; then
30977 ac_find_includes=$ac_dir
30978 break
30979 fi
30980 done
30981
30982 if test "$ac_find_includes" != "" ; then
30983 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
30984echo "${ECHO_T}found in $ac_find_includes" >&6
30985
30986 if test "x$ac_find_includes" = "x/usr/include"; then
30987 ac_path_to_include=""
30988 else
30989 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
30990 result=$?
30991 if test $result = 0; then
30992 ac_path_to_include=""
30993 else
30994 ac_path_to_include=" -I$ac_find_includes"
30995 fi
30996 fi
30997
30998 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
30999 fi
31000
31001 if test "${ac_cv_header_GL_gl_h+set}" = set; then
31002 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31003echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31004if test "${ac_cv_header_GL_gl_h+set}" = set; then
31005 echo $ECHO_N "(cached) $ECHO_C" >&6
31006fi
31007echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31008echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31009else
31010 # Is the header compilable?
31011echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
31012echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
31013cat >conftest.$ac_ext <<_ACEOF
31014/* confdefs.h. */
31015_ACEOF
31016cat confdefs.h >>conftest.$ac_ext
31017cat >>conftest.$ac_ext <<_ACEOF
31018/* end confdefs.h. */
31019$ac_includes_default
31020#include <GL/gl.h>
31021_ACEOF
31022rm -f conftest.$ac_objext
31023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31024 (eval $ac_compile) 2>conftest.er1
a848cd7e 31025 ac_status=$?
ac1cb8d3
VS
31026 grep -v '^ *+' conftest.er1 >conftest.err
31027 rm -f conftest.er1
31028 cat conftest.err >&5
a848cd7e
SC
31029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030 (exit $ac_status); } &&
5ff751d6 31031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31033 (eval $ac_try) 2>&5
31034 ac_status=$?
31035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036 (exit $ac_status); }; } &&
31037 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31039 (eval $ac_try) 2>&5
31040 ac_status=$?
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); }; }; then
31043 ac_header_compiler=yes
31044else
31045 echo "$as_me: failed program was:" >&5
31046sed 's/^/| /' conftest.$ac_ext >&5
31047
31048ac_header_compiler=no
31049fi
ac1cb8d3 31050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31051echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31052echo "${ECHO_T}$ac_header_compiler" >&6
31053
31054# Is the header present?
31055echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
31056echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
31057cat >conftest.$ac_ext <<_ACEOF
31058/* confdefs.h. */
31059_ACEOF
31060cat confdefs.h >>conftest.$ac_ext
31061cat >>conftest.$ac_ext <<_ACEOF
31062/* end confdefs.h. */
31063#include <GL/gl.h>
31064_ACEOF
31065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31067 ac_status=$?
31068 grep -v '^ *+' conftest.er1 >conftest.err
31069 rm -f conftest.er1
31070 cat conftest.err >&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } >/dev/null; then
31073 if test -s conftest.err; then
31074 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 31075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
31076 else
31077 ac_cpp_err=
31078 fi
31079else
31080 ac_cpp_err=yes
31081fi
31082if test -z "$ac_cpp_err"; then
31083 ac_header_preproc=yes
31084else
31085 echo "$as_me: failed program was:" >&5
31086sed 's/^/| /' conftest.$ac_ext >&5
31087
31088 ac_header_preproc=no
31089fi
31090rm -f conftest.err conftest.$ac_ext
31091echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31092echo "${ECHO_T}$ac_header_preproc" >&6
31093
31094# So? What about this header?
ac1cb8d3
VS
31095case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31096 yes:no: )
a848cd7e
SC
31097 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
31098echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
31099 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
31100echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
31101 ac_header_preproc=yes
a848cd7e 31102 ;;
ac1cb8d3 31103 no:yes:* )
a848cd7e
SC
31104 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
31105echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
ac1cb8d3
VS
31106 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
31107echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
31108 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
31109echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
31110 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
31111echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
31112 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
31113echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
31114 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
31115echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
31116 (
31117 cat <<\_ASBOX
ac1cb8d3
VS
31118## ----------------------------------------- ##
31119## Report this to wx-dev@lists.wxwidgets.org ##
31120## ----------------------------------------- ##
a848cd7e
SC
31121_ASBOX
31122 ) |
31123 sed "s/^/$as_me: WARNING: /" >&2
31124 ;;
31125esac
31126echo "$as_me:$LINENO: checking for GL/gl.h" >&5
31127echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
31128if test "${ac_cv_header_GL_gl_h+set}" = set; then
31129 echo $ECHO_N "(cached) $ECHO_C" >&6
31130else
31131 ac_cv_header_GL_gl_h=$ac_header_preproc
31132fi
31133echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
31134echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
31135
31136fi
31137if test $ac_cv_header_GL_gl_h = yes; then
31138
31139 found_gl=0
31140
31141 echo "$as_me:$LINENO: checking for -lGL" >&5
31142echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
31143
0ad5d837
VZ
31144 ac_find_libraries=
31145 for ac_dir in $SEARCH_LIB;
a848cd7e 31146 do
3eca31dc 31147 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31148 if test -f "$ac_dir/libGL.$ac_extension"; then
31149 ac_find_libraries=$ac_dir
31150 break 2
31151 fi
31152 done
31153 done
31154
31155 if test "$ac_find_libraries" != "" ; then
69120ee4
VZ
31156 echo "$as_me:$LINENO: result: yes" >&5
31157echo "${ECHO_T}yes" >&6
31158
a848cd7e 31159
0ad5d837 31160 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31161 ac_path_to_link=""
31162 else
0ad5d837
VZ
31163 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31164 result=$?
31165 if test $result = 0; then
31166 ac_path_to_link=""
31167 else
31168 ac_path_to_link=" -L$ac_find_libraries"
31169 fi
a848cd7e
SC
31170 fi
31171
31172 if test "$ac_path_to_link" != " -L/usr/lib" ; then
31173 LDFLAGS_GL="$ac_path_to_link"
31174 fi
31175
69120ee4
VZ
31176 echo "$as_me:$LINENO: checking for -lGLU" >&5
31177echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6
a848cd7e 31178
0ad5d837
VZ
31179 ac_find_libraries=
31180 for ac_dir in $SEARCH_LIB;
31181 do
31182 for ac_extension in a so sl dylib dll.a; do
31183 if test -f "$ac_dir/libGLU.$ac_extension"; then
31184 ac_find_libraries=$ac_dir
31185 break 2
31186 fi
31187 done
31188 done
31189
a848cd7e
SC
31190 if test "$ac_find_libraries" != "" ; then
31191
0ad5d837 31192 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31193 ac_path_to_link=""
31194 else
0ad5d837
VZ
31195 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31196 result=$?
31197 if test $result = 0; then
31198 ac_path_to_link=""
31199 else
31200 ac_path_to_link=" -L$ac_find_libraries"
31201 fi
a848cd7e
SC
31202 fi
31203
31204 if test "$ac_path_to_link" != " -L/usr/lib" -a \
31205 "$ac_path_to_link" != "$LDFLAGS_GL"; then
31206 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
31207 fi
31208
31209 found_gl=1
31210 OPENGL_LIBS="-lGL -lGLU"
31211 echo "$as_me:$LINENO: result: yes" >&5
31212echo "${ECHO_T}yes" >&6
69120ee4
VZ
31213 else
31214 echo "$as_me:$LINENO: result: no" >&5
31215echo "${ECHO_T}no" >&6
a848cd7e 31216 fi
69120ee4
VZ
31217 else
31218 echo "$as_me:$LINENO: result: no" >&5
31219echo "${ECHO_T}no" >&6
a848cd7e
SC
31220 fi
31221
31222 if test "$found_gl" != 1; then
a848cd7e
SC
31223 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
31224echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
31225
0ad5d837
VZ
31226 ac_find_libraries=
31227 for ac_dir in $SEARCH_LIB;
a848cd7e 31228 do
3eca31dc 31229 for ac_extension in a so sl dylib dll.a; do
a848cd7e
SC
31230 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
31231 ac_find_libraries=$ac_dir
31232 break 2
31233 fi
31234 done
31235 done
31236
31237 if test "$ac_find_libraries" != "" ; then
31238
0ad5d837 31239 if test "$ac_find_libraries" = "default location"; then
a848cd7e
SC
31240 ac_path_to_link=""
31241 else
0ad5d837
VZ
31242 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
31243 result=$?
31244 if test $result = 0; then
31245 ac_path_to_link=""
31246 else
31247 ac_path_to_link=" -L$ac_find_libraries"
31248 fi
a848cd7e
SC
31249 fi
31250
31251 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
31252 OPENGL_LIBS="-lMesaGL -lMesaGLU"
31253 echo "$as_me:$LINENO: result: yes" >&5
31254echo "${ECHO_T}yes" >&6
31255 else
31256 echo "$as_me:$LINENO: result: no" >&5
31257echo "${ECHO_T}no" >&6
31258 fi
31259 fi
31260
31261fi
31262
31263
31264
31265 if test "x$OPENGL_LIBS" = "x"; then
31266 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
31267echo "$as_me: error: OpenGL libraries not available" >&2;}
31268 { (exit 1); exit 1; }; }
31269 fi
31270 fi
31271
31272 if test "$wxUSE_OPENGL" = "yes"; then
31273 USE_OPENGL=1
31274 cat >>confdefs.h <<\_ACEOF
31275#define wxUSE_OPENGL 1
31276_ACEOF
31277
31278 cat >>confdefs.h <<\_ACEOF
31279#define wxUSE_GLCANVAS 1
31280_ACEOF
31281
31282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
31283 fi
31284fi
31285
a848cd7e
SC
31286
31287if test -n "$TOOLKIT" ; then
31288 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
31289fi
31290
a848cd7e
SC
31291
31292
31293if test "$wxUSE_SHARED" = "yes"; then
31294 case "${host}" in
31295 *-pc-msdosdjgpp )
31296 wxUSE_SHARED=no
31297 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
31298echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
31299 ;;
31300 esac
31301fi
31302
a848cd7e 31303if test "$wxUSE_SHARED" = "yes"; then
a848cd7e
SC
31304
31305
31306 found_versioning=no
31307
31308
31309 if test $found_versioning = no ; then
31310 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
31311echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
31312if test "${wx_cv_version_script+set}" = set; then
31313 echo $ECHO_N "(cached) $ECHO_C" >&6
31314else
31315
31316 echo "VER_1 { *; };" >conftest.sym
31317 echo "int main() { return 0; }" >conftest.cpp
31318
31319 if { ac_try='
31320 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31321 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
31322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31323 (eval $ac_try) 2>&5
31324 ac_status=$?
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); }; } ; then
31327 if test -s conftest.stderr ; then
31328 wx_cv_version_script=no
31329 else
31330 wx_cv_version_script=yes
31331 fi
31332 else
31333 wx_cv_version_script=no
31334 fi
e5d4b470
MW
31335
31336 if test $wx_cv_version_script = yes
31337 then
31338 echo "struct B { virtual ~B() { } }; \
31339 struct D : public B { }; \
31340 void F() { D d; }" > conftest.cpp
31341
31342 if { ac_try='
31343 $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31344 -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
31345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346 (eval $ac_try) 2>&5
31347 ac_status=$?
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; } &&
31350 { ac_try='
31351 $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31352 -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
31353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31354 (eval $ac_try) 2>&5
31355 ac_status=$?
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); }; }
31358 then
31359 if { ac_try='
31360 $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
31361 -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
31362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31363 (eval $ac_try) 2>&5
31364 ac_status=$?
31365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31366 (exit $ac_status); }; }
31367 then
31368 wx_cv_version_script=yes
31369 else
31370 wx_cv_version_script=no
31371 fi
31372 fi
31373 fi
31374
a848cd7e 31375 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
e5d4b470 31376 rm -f conftest1.output conftest2.output conftest3.output
a848cd7e
SC
31377
31378fi
31379echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
31380echo "${ECHO_T}$wx_cv_version_script" >&6
31381 if test $wx_cv_version_script = yes ; then
31382 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
31383 fi
31384 fi
31385
31386
31387 case "${host}" in
31388 *-*-linux* | *-*-gnu* )
31389 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31390 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
6ebeb4c7 31391 ;;
a848cd7e
SC
31392
31393 *-*-solaris2* )
31394 if test "$GCC" = yes ; then
31395 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
31396
31397 saveLdflags="$LDFLAGS"
31398 LDFLAGS="$saveLdflags -Wl,-rpath,/"
31399 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
31400echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
31401 cat >conftest.$ac_ext <<_ACEOF
31402/* confdefs.h. */
31403_ACEOF
31404cat confdefs.h >>conftest.$ac_ext
31405cat >>conftest.$ac_ext <<_ACEOF
31406/* end confdefs.h. */
31407
31408int
31409main ()
31410{
31411
31412 ;
31413 return 0;
31414}
31415_ACEOF
31416rm -f conftest.$ac_objext conftest$ac_exeext
31417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31418 (eval $ac_link) 2>conftest.er1
a848cd7e 31419 ac_status=$?
ac1cb8d3
VS
31420 grep -v '^ *+' conftest.er1 >conftest.err
31421 rm -f conftest.er1
31422 cat conftest.err >&5
a848cd7e
SC
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 (exit $ac_status); } &&
5ff751d6 31425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31427 (eval $ac_try) 2>&5
31428 ac_status=$?
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); }; } &&
31431 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31433 (eval $ac_try) 2>&5
31434 ac_status=$?
31435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436 (exit $ac_status); }; }; then
31437
31438 echo "$as_me:$LINENO: result: yes" >&5
31439echo "${ECHO_T}yes" >&6
31440 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
ffa0583f 31441 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
a848cd7e
SC
31442
31443else
31444 echo "$as_me: failed program was:" >&5
31445sed 's/^/| /' conftest.$ac_ext >&5
31446
31447
31448 echo "$as_me:$LINENO: result: no" >&5
31449echo "${ECHO_T}no" >&6
31450 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
31451echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
31452 LDFLAGS="$saveLdflags -Wl,-R,/"
31453 cat >conftest.$ac_ext <<_ACEOF
31454/* confdefs.h. */
31455_ACEOF
31456cat confdefs.h >>conftest.$ac_ext
31457cat >>conftest.$ac_ext <<_ACEOF
31458/* end confdefs.h. */
31459
31460int
31461main ()
31462{
31463
31464 ;
31465 return 0;
31466}
31467_ACEOF
31468rm -f conftest.$ac_objext conftest$ac_exeext
31469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 31470 (eval $ac_link) 2>conftest.er1
a848cd7e 31471 ac_status=$?
ac1cb8d3
VS
31472 grep -v '^ *+' conftest.er1 >conftest.err
31473 rm -f conftest.er1
31474 cat conftest.err >&5
a848cd7e
SC
31475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476 (exit $ac_status); } &&
5ff751d6 31477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31479 (eval $ac_try) 2>&5
31480 ac_status=$?
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); }; } &&
31483 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
31484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31485 (eval $ac_try) 2>&5
31486 ac_status=$?
31487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31488 (exit $ac_status); }; }; then
31489
ffa0583f 31490 echo "$as_me:$LINENO: result: yes" >&5
a848cd7e 31491echo "${ECHO_T}yes" >&6
ffa0583f
RL
31492 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
31493 WXCONFIG_RPATH="-Wl,-R,\$libdir"
31494
a848cd7e
SC
31495else
31496 echo "$as_me: failed program was:" >&5
31497sed 's/^/| /' conftest.$ac_ext >&5
31498
31499
31500 echo "$as_me:$LINENO: result: no" >&5
31501echo "${ECHO_T}no" >&6
31502
31503fi
ac1cb8d3
VS
31504rm -f conftest.err conftest.$ac_objext \
31505 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31506
31507fi
ac1cb8d3
VS
31508rm -f conftest.err conftest.$ac_objext \
31509 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
31510 LDFLAGS="$saveLdflags"
31511 else
a848cd7e 31512 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
ffa0583f 31513 WXCONFIG_RPATH="-R\$libdir"
a848cd7e
SC
31514 fi
31515 ;;
31516
cfda0ea8 31517 *-*-darwin* )
0caebc27
MW
31518 install_name_tool=`which install_name_tool`
31519 if test "$install_name_tool" -a -x "$install_name_tool"; then
31520 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
31521 cat <<EOF >change-install-names
a848cd7e
SC
31522#!/bin/sh
31523libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
31524inst_cmd="install_name_tool "
31525for i in \${libnames} ; do
31526 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
31527done
31528\${inst_cmd} \${3}
31529EOF
0caebc27
MW
31530 chmod +x change-install-names
31531 fi
a848cd7e
SC
31532 ;;
31533
31534 *-*-cygwin* | *-*-mingw32* )
5ff751d6
VZ
31535 WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
31536 ;;
a848cd7e 31537
81f90336
MW
31538 *-*-hpux* )
31539 SAMPLES_RPATH_FLAG="-Wl,+b,\$(top_builddir)lib"
31540 WXCONFIG_RPATH="-Wl,+b,\$libdir"
5ff751d6 31541 ;;
81f90336 31542
a848cd7e 31543 esac
ceec2216 31544
ffa0583f
RL
31545 if test $wxUSE_RPATH = "no"; then
31546 SAMPLES_RPATH_FLAG=''
31547 SAMPLES_RPATH_POSTLINK=''
31548 WXCONFIG_RPATH=''
31549 fi
31550
31551 SHARED=1
31552
31553else
31554
ceec2216
RL
31555 config_linkage_component="-static"
31556 SHARED=0
ffa0583f 31557
ceec2216 31558fi
a848cd7e 31559
a848cd7e 31560
ceec2216
RL
31561UNICODE=0
31562lib_unicode_suffix=
31563WX_CHARTYPE="ansi"
31564if test "$wxUSE_UNICODE" = "yes"; then
31565 lib_unicode_suffix=u
31566 WX_CHARTYPE="unicode"
31567 UNICODE=1
a848cd7e
SC
31568fi
31569
ceec2216
RL
31570lib_debug_suffix=
31571WX_DEBUGTYPE="release"
31572DEBUG_FLAG=0
31573if test "$wxUSE_DEBUG_FLAG" = "yes"; then
31574 lib_debug_suffix=d
31575 WX_DEBUGTYPE="debug"
31576 DEBUG_FLAG=1
31577fi
a848cd7e 31578
ceec2216
RL
31579WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
31580WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
a848cd7e 31581
ceec2216
RL
31582DEBUG_INFO=0
31583if test "$wxUSE_DEBUG_INFO" = "yes"; then
31584 DEBUG_INFO=1
31585fi
a848cd7e 31586
ceec2216 31587WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
a848cd7e 31588
ceec2216 31589TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
a848cd7e 31590
ceec2216 31591TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
a848cd7e 31592
ceec2216
RL
31593if test "$cross_compiling" = "yes"; then
31594 HOST_SUFFIX="-$host_alias"
31595 TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
31596 TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
a848cd7e
SC
31597fi
31598
dd21ced8 31599WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
abc736fd
MW
31600if test "${TOOLKIT_DIR}" = "os2"; then
31601 WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31602else
31603 WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
31604fi
ceec2216
RL
31605
31606
31607
1d1af5ea
DE
31608if test "$wxUSE_COCOA" = 1; then
31609
31610
31611 ac_ext=c
31612ac_cpp='$CPP $CPPFLAGS'
31613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31615ac_compiler_gnu=$ac_cv_c_compiler_gnu
31616
31617ac_ext=m
31618
31619 echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
31620echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6
31621 cat >conftest.$ac_ext <<_ACEOF
31622/* confdefs.h. */
31623_ACEOF
31624cat confdefs.h >>conftest.$ac_ext
31625cat >>conftest.$ac_ext <<_ACEOF
31626/* end confdefs.h. */
31627#include <AppKit/NSEvent.h>
31628#include <CoreFoundation/CoreFoundation.h>
31629
31630int
31631main ()
31632{
31633
31634 ;
31635 return 0;
31636}
31637_ACEOF
31638rm -f conftest.$ac_objext
31639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31640 (eval $ac_compile) 2>conftest.er1
31641 ac_status=$?
31642 grep -v '^ *+' conftest.er1 >conftest.err
31643 rm -f conftest.er1
31644 cat conftest.err >&5
31645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646 (exit $ac_status); } &&
5ff751d6 31647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31649 (eval $ac_try) 2>&5
31650 ac_status=$?
31651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652 (exit $ac_status); }; } &&
31653 { ac_try='test -s conftest.$ac_objext'
31654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31655 (eval $ac_try) 2>&5
31656 ac_status=$?
31657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31658 (exit $ac_status); }; }; then
31659 echo "$as_me:$LINENO: result: no" >&5
31660echo "${ECHO_T}no" >&6
31661else
31662 echo "$as_me: failed program was:" >&5
31663sed 's/^/| /' conftest.$ac_ext >&5
31664
31665echo "$as_me:$LINENO: result: yes" >&5
31666echo "${ECHO_T}yes" >&6
31667 echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
31668echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6
31669 cat >conftest.$ac_ext <<_ACEOF
31670/* confdefs.h. */
31671_ACEOF
31672cat confdefs.h >>conftest.$ac_ext
31673cat >>conftest.$ac_ext <<_ACEOF
31674/* end confdefs.h. */
31675#define __Point__ 1
31676#include <AppKit/NSEvent.h>
31677#include <CoreFoundation/CoreFoundation.h>
31678
31679int
31680main ()
31681{
31682
31683 ;
31684 return 0;
31685}
31686_ACEOF
31687rm -f conftest.$ac_objext
31688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31689 (eval $ac_compile) 2>conftest.er1
31690 ac_status=$?
31691 grep -v '^ *+' conftest.er1 >conftest.err
31692 rm -f conftest.er1
31693 cat conftest.err >&5
31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31695 (exit $ac_status); } &&
5ff751d6 31696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
1d1af5ea
DE
31697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31698 (eval $ac_try) 2>&5
31699 ac_status=$?
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); }; } &&
31702 { ac_try='test -s conftest.$ac_objext'
31703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31704 (eval $ac_try) 2>&5
31705 ac_status=$?
31706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31707 (exit $ac_status); }; }; then
31708 echo "$as_me:$LINENO: result: yes" >&5
31709echo "${ECHO_T}yes" >&6
31710 cat >>confdefs.h <<\_ACEOF
31711#define __Point__ 1
31712_ACEOF
31713
31714
31715else
31716 echo "$as_me: failed program was:" >&5
31717sed 's/^/| /' conftest.$ac_ext >&5
31718
31719{ { echo "$as_me:$LINENO: error: no
31720See \`config.log' for more details." >&5
31721echo "$as_me: error: no
31722See \`config.log' for more details." >&2;}
31723 { (exit 1); exit 1; }; }
31724
31725fi
31726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31727
31728fi
31729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31730 ac_ext=c
31731ac_cpp='$CPP $CPPFLAGS'
31732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31734ac_compiler_gnu=$ac_cv_c_compiler_gnu
31735
31736fi
31737
a848cd7e 31738if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
abb9aae7
VZ
31739 WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
31740 WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
ceec2216 31741
a848cd7e 31742 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
a848cd7e
SC
31743
31744 # Extract the first word of "Rez", so it can be a program name with args.
31745set dummy Rez; ac_word=$2
31746echo "$as_me:$LINENO: checking for $ac_word" >&5
31747echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31748if test "${ac_cv_prog_RESCOMP+set}" = set; then
31749 echo $ECHO_N "(cached) $ECHO_C" >&6
31750else
31751 if test -n "$RESCOMP"; then
31752 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
31753else
31754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31755for as_dir in $PATH
31756do
31757 IFS=$as_save_IFS
31758 test -z "$as_dir" && as_dir=.
31759 for ac_exec_ext in '' $ac_executable_extensions; do
31760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31761 ac_cv_prog_RESCOMP="Rez"
31762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31763 break 2
31764 fi
31765done
31766done
31767
31768 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
31769fi
31770fi
31771RESCOMP=$ac_cv_prog_RESCOMP
31772if test -n "$RESCOMP"; then
31773 echo "$as_me:$LINENO: result: $RESCOMP" >&5
31774echo "${ECHO_T}$RESCOMP" >&6
31775else
31776 echo "$as_me:$LINENO: result: no" >&5
31777echo "${ECHO_T}no" >&6
31778fi
31779
31780 # Extract the first word of "DeRez", so it can be a program name with args.
31781set dummy DeRez; ac_word=$2
31782echo "$as_me:$LINENO: checking for $ac_word" >&5
31783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31784if test "${ac_cv_prog_DEREZ+set}" = set; then
31785 echo $ECHO_N "(cached) $ECHO_C" >&6
31786else
31787 if test -n "$DEREZ"; then
31788 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
31789else
31790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31791for as_dir in $PATH
31792do
31793 IFS=$as_save_IFS
31794 test -z "$as_dir" && as_dir=.
31795 for ac_exec_ext in '' $ac_executable_extensions; do
31796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31797 ac_cv_prog_DEREZ="DeRez"
31798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31799 break 2
31800 fi
31801done
31802done
31803
31804 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
31805fi
31806fi
31807DEREZ=$ac_cv_prog_DEREZ
31808if test -n "$DEREZ"; then
31809 echo "$as_me:$LINENO: result: $DEREZ" >&5
31810echo "${ECHO_T}$DEREZ" >&6
31811else
31812 echo "$as_me:$LINENO: result: no" >&5
31813echo "${ECHO_T}no" >&6
31814fi
31815
31816 # Extract the first word of "SetFile", so it can be a program name with args.
31817set dummy SetFile; ac_word=$2
31818echo "$as_me:$LINENO: checking for $ac_word" >&5
31819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31820if test "${ac_cv_prog_SETFILE+set}" = set; then
31821 echo $ECHO_N "(cached) $ECHO_C" >&6
31822else
31823 if test -n "$SETFILE"; then
31824 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
31825else
31826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31827for as_dir in $PATH
31828do
31829 IFS=$as_save_IFS
31830 test -z "$as_dir" && as_dir=.
31831 for ac_exec_ext in '' $ac_executable_extensions; do
31832 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31833 ac_cv_prog_SETFILE="SetFile"
31834 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31835 break 2
31836 fi
31837done
31838done
31839
31840 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
31841fi
31842fi
31843SETFILE=$ac_cv_prog_SETFILE
31844if test -n "$SETFILE"; then
31845 echo "$as_me:$LINENO: result: $SETFILE" >&5
31846echo "${ECHO_T}$SETFILE" >&6
31847else
31848 echo "$as_me:$LINENO: result: no" >&5
31849echo "${ECHO_T}no" >&6
31850fi
31851
31852
31853 MACSETFILE="\$(SETFILE)"
31854
31855 if test "$wxUSE_MAC" = 1; then
1a79f136 31856 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e 31857
1a79f136 31858 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r -o"
a848cd7e
SC
31859 else
31860 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
31861 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
31862 fi
31863else
ffa0583f
RL
31864 MACSETFILE="@true"
31865 MACRESWXCONFIG="@true"
a848cd7e
SC
31866
31867 if test "$wxUSE_PM" = 1; then
31868 MACRESCOMP="emxbind -ep"
31869 else
ffa0583f 31870 MACRESCOMP="@true"
a848cd7e
SC
31871 fi
31872fi
31873
31874
31875
31876echo "$as_me:$LINENO: checking for mode_t" >&5
31877echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
31878if test "${ac_cv_type_mode_t+set}" = set; then
31879 echo $ECHO_N "(cached) $ECHO_C" >&6
31880else
31881 cat >conftest.$ac_ext <<_ACEOF
31882/* confdefs.h. */
31883_ACEOF
31884cat confdefs.h >>conftest.$ac_ext
31885cat >>conftest.$ac_ext <<_ACEOF
31886/* end confdefs.h. */
31887$ac_includes_default
31888int
31889main ()
31890{
31891if ((mode_t *) 0)
31892 return 0;
31893if (sizeof (mode_t))
31894 return 0;
31895 ;
31896 return 0;
31897}
31898_ACEOF
31899rm -f conftest.$ac_objext
31900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31901 (eval $ac_compile) 2>conftest.er1
a848cd7e 31902 ac_status=$?
ac1cb8d3
VS
31903 grep -v '^ *+' conftest.er1 >conftest.err
31904 rm -f conftest.er1
31905 cat conftest.err >&5
a848cd7e
SC
31906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31907 (exit $ac_status); } &&
5ff751d6 31908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31910 (eval $ac_try) 2>&5
31911 ac_status=$?
31912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913 (exit $ac_status); }; } &&
31914 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31916 (eval $ac_try) 2>&5
31917 ac_status=$?
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); }; }; then
31920 ac_cv_type_mode_t=yes
31921else
31922 echo "$as_me: failed program was:" >&5
31923sed 's/^/| /' conftest.$ac_ext >&5
31924
31925ac_cv_type_mode_t=no
31926fi
ac1cb8d3 31927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31928fi
31929echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31930echo "${ECHO_T}$ac_cv_type_mode_t" >&6
31931if test $ac_cv_type_mode_t = yes; then
31932 :
31933else
31934
31935cat >>confdefs.h <<_ACEOF
31936#define mode_t int
31937_ACEOF
31938
31939fi
31940
31941echo "$as_me:$LINENO: checking for off_t" >&5
31942echo $ECHO_N "checking for off_t... $ECHO_C" >&6
31943if test "${ac_cv_type_off_t+set}" = set; then
31944 echo $ECHO_N "(cached) $ECHO_C" >&6
31945else
31946 cat >conftest.$ac_ext <<_ACEOF
31947/* confdefs.h. */
31948_ACEOF
31949cat confdefs.h >>conftest.$ac_ext
31950cat >>conftest.$ac_ext <<_ACEOF
31951/* end confdefs.h. */
31952$ac_includes_default
31953int
31954main ()
31955{
31956if ((off_t *) 0)
31957 return 0;
31958if (sizeof (off_t))
31959 return 0;
31960 ;
31961 return 0;
31962}
31963_ACEOF
31964rm -f conftest.$ac_objext
31965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 31966 (eval $ac_compile) 2>conftest.er1
a848cd7e 31967 ac_status=$?
ac1cb8d3
VS
31968 grep -v '^ *+' conftest.er1 >conftest.err
31969 rm -f conftest.er1
31970 cat conftest.err >&5
a848cd7e
SC
31971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31972 (exit $ac_status); } &&
5ff751d6 31973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
31974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31975 (eval $ac_try) 2>&5
31976 ac_status=$?
31977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31978 (exit $ac_status); }; } &&
31979 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
31980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31981 (eval $ac_try) 2>&5
31982 ac_status=$?
31983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 (exit $ac_status); }; }; then
31985 ac_cv_type_off_t=yes
31986else
31987 echo "$as_me: failed program was:" >&5
31988sed 's/^/| /' conftest.$ac_ext >&5
31989
31990ac_cv_type_off_t=no
31991fi
ac1cb8d3 31992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
31993fi
31994echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31995echo "${ECHO_T}$ac_cv_type_off_t" >&6
31996if test $ac_cv_type_off_t = yes; then
31997 :
31998else
31999
32000cat >>confdefs.h <<_ACEOF
32001#define off_t long
32002_ACEOF
32003
32004fi
32005
32006echo "$as_me:$LINENO: checking for pid_t" >&5
32007echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
32008if test "${ac_cv_type_pid_t+set}" = set; then
32009 echo $ECHO_N "(cached) $ECHO_C" >&6
32010else
32011 cat >conftest.$ac_ext <<_ACEOF
32012/* confdefs.h. */
32013_ACEOF
32014cat confdefs.h >>conftest.$ac_ext
32015cat >>conftest.$ac_ext <<_ACEOF
32016/* end confdefs.h. */
32017$ac_includes_default
32018int
32019main ()
32020{
32021if ((pid_t *) 0)
32022 return 0;
32023if (sizeof (pid_t))
32024 return 0;
32025 ;
32026 return 0;
32027}
32028_ACEOF
32029rm -f conftest.$ac_objext
32030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32031 (eval $ac_compile) 2>conftest.er1
a848cd7e 32032 ac_status=$?
ac1cb8d3
VS
32033 grep -v '^ *+' conftest.er1 >conftest.err
32034 rm -f conftest.er1
32035 cat conftest.err >&5
a848cd7e
SC
32036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32037 (exit $ac_status); } &&
5ff751d6 32038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32040 (eval $ac_try) 2>&5
32041 ac_status=$?
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); }; } &&
32044 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32046 (eval $ac_try) 2>&5
32047 ac_status=$?
32048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32049 (exit $ac_status); }; }; then
32050 ac_cv_type_pid_t=yes
32051else
32052 echo "$as_me: failed program was:" >&5
32053sed 's/^/| /' conftest.$ac_ext >&5
32054
32055ac_cv_type_pid_t=no
32056fi
ac1cb8d3 32057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32058fi
32059echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32060echo "${ECHO_T}$ac_cv_type_pid_t" >&6
32061if test $ac_cv_type_pid_t = yes; then
32062 :
32063else
32064
32065cat >>confdefs.h <<_ACEOF
32066#define pid_t int
32067_ACEOF
32068
32069fi
32070
32071echo "$as_me:$LINENO: checking for size_t" >&5
32072echo $ECHO_N "checking for size_t... $ECHO_C" >&6
32073if test "${ac_cv_type_size_t+set}" = set; then
32074 echo $ECHO_N "(cached) $ECHO_C" >&6
32075else
32076 cat >conftest.$ac_ext <<_ACEOF
32077/* confdefs.h. */
32078_ACEOF
32079cat confdefs.h >>conftest.$ac_ext
32080cat >>conftest.$ac_ext <<_ACEOF
32081/* end confdefs.h. */
32082$ac_includes_default
32083int
32084main ()
32085{
32086if ((size_t *) 0)
32087 return 0;
32088if (sizeof (size_t))
32089 return 0;
32090 ;
32091 return 0;
32092}
32093_ACEOF
32094rm -f conftest.$ac_objext
32095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32096 (eval $ac_compile) 2>conftest.er1
a848cd7e 32097 ac_status=$?
ac1cb8d3
VS
32098 grep -v '^ *+' conftest.er1 >conftest.err
32099 rm -f conftest.er1
32100 cat conftest.err >&5
a848cd7e
SC
32101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32102 (exit $ac_status); } &&
5ff751d6 32103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32105 (eval $ac_try) 2>&5
32106 ac_status=$?
32107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32108 (exit $ac_status); }; } &&
32109 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32111 (eval $ac_try) 2>&5
32112 ac_status=$?
32113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32114 (exit $ac_status); }; }; then
32115 ac_cv_type_size_t=yes
32116else
32117 echo "$as_me: failed program was:" >&5
32118sed 's/^/| /' conftest.$ac_ext >&5
32119
32120ac_cv_type_size_t=no
32121fi
ac1cb8d3 32122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32123fi
32124echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32125echo "${ECHO_T}$ac_cv_type_size_t" >&6
32126if test $ac_cv_type_size_t = yes; then
32127 :
32128else
32129
32130cat >>confdefs.h <<_ACEOF
32131#define size_t unsigned
32132_ACEOF
32133
32134fi
32135
32136echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32137echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
32138if test "${ac_cv_type_uid_t+set}" = set; then
32139 echo $ECHO_N "(cached) $ECHO_C" >&6
32140else
32141 cat >conftest.$ac_ext <<_ACEOF
32142/* confdefs.h. */
32143_ACEOF
32144cat confdefs.h >>conftest.$ac_ext
32145cat >>conftest.$ac_ext <<_ACEOF
32146/* end confdefs.h. */
32147#include <sys/types.h>
32148
32149_ACEOF
32150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32151 $EGREP "uid_t" >/dev/null 2>&1; then
32152 ac_cv_type_uid_t=yes
32153else
32154 ac_cv_type_uid_t=no
32155fi
32156rm -f conftest*
32157
32158fi
32159echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32160echo "${ECHO_T}$ac_cv_type_uid_t" >&6
32161if test $ac_cv_type_uid_t = no; then
32162
32163cat >>confdefs.h <<\_ACEOF
32164#define uid_t int
32165_ACEOF
32166
32167
32168cat >>confdefs.h <<\_ACEOF
32169#define gid_t int
32170_ACEOF
32171
32172fi
32173
32174
d51253e8
RL
32175echo "$as_me:$LINENO: checking for ssize_t" >&5
32176echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
32177if test "${ac_cv_type_ssize_t+set}" = set; then
32178 echo $ECHO_N "(cached) $ECHO_C" >&6
32179else
32180 cat >conftest.$ac_ext <<_ACEOF
32181/* confdefs.h. */
32182_ACEOF
32183cat confdefs.h >>conftest.$ac_ext
32184cat >>conftest.$ac_ext <<_ACEOF
32185/* end confdefs.h. */
32186$ac_includes_default
32187int
32188main ()
32189{
32190if ((ssize_t *) 0)
32191 return 0;
32192if (sizeof (ssize_t))
32193 return 0;
32194 ;
32195 return 0;
32196}
32197_ACEOF
32198rm -f conftest.$ac_objext
32199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32200 (eval $ac_compile) 2>conftest.er1
32201 ac_status=$?
32202 grep -v '^ *+' conftest.er1 >conftest.err
32203 rm -f conftest.er1
32204 cat conftest.err >&5
32205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32206 (exit $ac_status); } &&
5ff751d6 32207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d51253e8
RL
32208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32209 (eval $ac_try) 2>&5
32210 ac_status=$?
32211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32212 (exit $ac_status); }; } &&
32213 { ac_try='test -s conftest.$ac_objext'
32214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32215 (eval $ac_try) 2>&5
32216 ac_status=$?
32217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32218 (exit $ac_status); }; }; then
32219 ac_cv_type_ssize_t=yes
32220else
32221 echo "$as_me: failed program was:" >&5
32222sed 's/^/| /' conftest.$ac_ext >&5
32223
32224ac_cv_type_ssize_t=no
32225fi
32226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32227fi
32228echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32229echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
32230if test $ac_cv_type_ssize_t = yes; then
32231
32232cat >>confdefs.h <<_ACEOF
32233#define HAVE_SSIZE_T 1
32234_ACEOF
32235
32236
32237fi
32238
32239
a848cd7e
SC
32240
32241
32242ac_ext=cc
32243ac_cpp='$CXXCPP $CPPFLAGS'
32244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32247
32248echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
32249echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
32250if test "${wx_cv_size_t_is_uint+set}" = set; then
32251 echo $ECHO_N "(cached) $ECHO_C" >&6
32252else
32253
32254 cat >conftest.$ac_ext <<_ACEOF
32255/* confdefs.h. */
32256_ACEOF
32257cat confdefs.h >>conftest.$ac_ext
32258cat >>conftest.$ac_ext <<_ACEOF
32259/* end confdefs.h. */
32260#include <stddef.h>
32261int
32262main ()
32263{
32264
32265 return 0; }
32266
32267 struct Foo { void foo(size_t); void foo(unsigned int); };
32268
32269 int bar() {
32270
32271 ;
32272 return 0;
32273}
32274_ACEOF
32275rm -f conftest.$ac_objext
32276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32277 (eval $ac_compile) 2>conftest.er1
a848cd7e 32278 ac_status=$?
ac1cb8d3
VS
32279 grep -v '^ *+' conftest.er1 >conftest.err
32280 rm -f conftest.er1
32281 cat conftest.err >&5
a848cd7e
SC
32282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283 (exit $ac_status); } &&
5ff751d6 32284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32286 (eval $ac_try) 2>&5
32287 ac_status=$?
32288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32289 (exit $ac_status); }; } &&
32290 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32292 (eval $ac_try) 2>&5
32293 ac_status=$?
32294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295 (exit $ac_status); }; }; then
32296 wx_cv_size_t_is_uint=no
32297else
32298 echo "$as_me: failed program was:" >&5
32299sed 's/^/| /' conftest.$ac_ext >&5
32300
32301wx_cv_size_t_is_uint=yes
32302
32303fi
ac1cb8d3 32304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32305
32306
32307fi
32308echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
32309echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
32310
32311if test "$wx_cv_size_t_is_uint" = "yes"; then
32312 cat >>confdefs.h <<\_ACEOF
32313#define wxSIZE_T_IS_UINT 1
32314_ACEOF
32315
32316else
32317 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
32318echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
32319if test "${wx_cv_size_t_is_ulong+set}" = set; then
32320 echo $ECHO_N "(cached) $ECHO_C" >&6
32321else
32322 cat >conftest.$ac_ext <<_ACEOF
32323/* confdefs.h. */
32324_ACEOF
32325cat confdefs.h >>conftest.$ac_ext
32326cat >>conftest.$ac_ext <<_ACEOF
32327/* end confdefs.h. */
32328#include <stddef.h>
32329int
32330main ()
32331{
32332
32333 return 0; }
32334
32335 struct Foo { void foo(size_t); void foo(unsigned long); };
32336
32337 int bar() {
32338
32339 ;
32340 return 0;
32341}
32342_ACEOF
32343rm -f conftest.$ac_objext
32344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32345 (eval $ac_compile) 2>conftest.er1
a848cd7e 32346 ac_status=$?
ac1cb8d3
VS
32347 grep -v '^ *+' conftest.er1 >conftest.err
32348 rm -f conftest.er1
32349 cat conftest.err >&5
a848cd7e
SC
32350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32351 (exit $ac_status); } &&
5ff751d6 32352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32354 (eval $ac_try) 2>&5
32355 ac_status=$?
32356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32357 (exit $ac_status); }; } &&
32358 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32360 (eval $ac_try) 2>&5
32361 ac_status=$?
32362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32363 (exit $ac_status); }; }; then
32364 wx_cv_size_t_is_ulong=no
32365else
32366 echo "$as_me: failed program was:" >&5
32367sed 's/^/| /' conftest.$ac_ext >&5
32368
32369wx_cv_size_t_is_ulong=yes
32370
32371fi
ac1cb8d3 32372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32373
32374fi
32375echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
32376echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
32377
32378 if test "$wx_cv_size_t_is_ulong" = "yes"; then
32379 cat >>confdefs.h <<\_ACEOF
32380#define wxSIZE_T_IS_ULONG 1
32381_ACEOF
32382
32383 fi
32384fi
32385
32386ac_ext=c
32387ac_cpp='$CPP $CPPFLAGS'
32388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32390ac_compiler_gnu=$ac_cv_c_compiler_gnu
32391
32392
32393
32394echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
32395echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
32396if test "${wx_cv_struct_pw_gecos+set}" = set; then
32397 echo $ECHO_N "(cached) $ECHO_C" >&6
32398else
32399
32400 cat >conftest.$ac_ext <<_ACEOF
32401/* confdefs.h. */
32402_ACEOF
32403cat confdefs.h >>conftest.$ac_ext
32404cat >>conftest.$ac_ext <<_ACEOF
32405/* end confdefs.h. */
32406#include <pwd.h>
32407int
32408main ()
32409{
32410
32411 char *p;
32412 struct passwd *pw;
32413 p = pw->pw_gecos;
32414
32415 ;
32416 return 0;
32417}
32418_ACEOF
32419rm -f conftest.$ac_objext
32420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 32421 (eval $ac_compile) 2>conftest.er1
a848cd7e 32422 ac_status=$?
ac1cb8d3
VS
32423 grep -v '^ *+' conftest.er1 >conftest.err
32424 rm -f conftest.er1
32425 cat conftest.err >&5
a848cd7e
SC
32426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32427 (exit $ac_status); } &&
5ff751d6 32428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32430 (eval $ac_try) 2>&5
32431 ac_status=$?
32432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32433 (exit $ac_status); }; } &&
32434 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
32435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32436 (eval $ac_try) 2>&5
32437 ac_status=$?
32438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32439 (exit $ac_status); }; }; then
32440
32441 wx_cv_struct_pw_gecos=yes
32442
32443else
32444 echo "$as_me: failed program was:" >&5
32445sed 's/^/| /' conftest.$ac_ext >&5
32446
32447
32448 wx_cv_struct_pw_gecos=no
32449
32450
32451fi
ac1cb8d3 32452rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
32453
32454
32455fi
32456echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
32457echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
32458
32459if test "$wx_cv_struct_pw_gecos" = "yes"; then
32460 cat >>confdefs.h <<\_ACEOF
32461#define HAVE_PW_GECOS 1
32462_ACEOF
32463
32464fi
32465
32466
47a7e797 32467if test "$wxUSE_WCHAR_T" = "yes"; then
a848cd7e
SC
32468 cat >>confdefs.h <<\_ACEOF
32469#define wxUSE_WCHAR_T 1
32470_ACEOF
32471
32472
32473 WCSLEN_FOUND=0
32474 WCHAR_LINK=
32475
32476for ac_func in wcslen
32477do
32478as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32479echo "$as_me:$LINENO: checking for $ac_func" >&5
32480echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32481if eval "test \"\${$as_ac_var+set}\" = set"; then
32482 echo $ECHO_N "(cached) $ECHO_C" >&6
32483else
32484 cat >conftest.$ac_ext <<_ACEOF
32485/* confdefs.h. */
32486_ACEOF
32487cat confdefs.h >>conftest.$ac_ext
32488cat >>conftest.$ac_ext <<_ACEOF
32489/* end confdefs.h. */
ac1cb8d3
VS
32490/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32492#define $ac_func innocuous_$ac_func
32493
a848cd7e
SC
32494/* System header to define __stub macros and hopefully few prototypes,
32495 which can conflict with char $ac_func (); below.
32496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32497 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32498
a848cd7e
SC
32499#ifdef __STDC__
32500# include <limits.h>
32501#else
32502# include <assert.h>
32503#endif
ac1cb8d3
VS
32504
32505#undef $ac_func
32506
a848cd7e
SC
32507/* Override any gcc2 internal prototype to avoid an error. */
32508#ifdef __cplusplus
32509extern "C"
32510{
32511#endif
32512/* We use char because int might match the return type of a gcc2
32513 builtin and then its argument prototype would still apply. */
32514char $ac_func ();
32515/* The GNU C library defines this for functions which it implements
32516 to always fail with ENOSYS. Some functions are actually named
32517 something starting with __ and the normal name is an alias. */
32518#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32519choke me
32520#else
32521char (*f) () = $ac_func;
32522#endif
32523#ifdef __cplusplus
32524}
32525#endif
32526
32527int
32528main ()
32529{
32530return f != $ac_func;
32531 ;
32532 return 0;
32533}
32534_ACEOF
32535rm -f conftest.$ac_objext conftest$ac_exeext
32536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32537 (eval $ac_link) 2>conftest.er1
a848cd7e 32538 ac_status=$?
ac1cb8d3
VS
32539 grep -v '^ *+' conftest.er1 >conftest.err
32540 rm -f conftest.er1
32541 cat conftest.err >&5
a848cd7e
SC
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); } &&
5ff751d6 32544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546 (eval $ac_try) 2>&5
32547 ac_status=$?
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; } &&
32550 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32552 (eval $ac_try) 2>&5
32553 ac_status=$?
32554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32555 (exit $ac_status); }; }; then
32556 eval "$as_ac_var=yes"
32557else
32558 echo "$as_me: failed program was:" >&5
32559sed 's/^/| /' conftest.$ac_ext >&5
32560
32561eval "$as_ac_var=no"
32562fi
ac1cb8d3
VS
32563rm -f conftest.err conftest.$ac_objext \
32564 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32565fi
32566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32568if test `eval echo '${'$as_ac_var'}'` = yes; then
32569 cat >>confdefs.h <<_ACEOF
32570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32571_ACEOF
32572 WCSLEN_FOUND=1
32573fi
32574done
32575
32576
32577 if test "$WCSLEN_FOUND" = 0; then
32578 if test "$TOOLKIT" = "MSW"; then
32579 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
32580echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
32581if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
32582 echo $ECHO_N "(cached) $ECHO_C" >&6
32583else
32584 ac_check_lib_save_LIBS=$LIBS
32585LIBS="-lmsvcrt $LIBS"
32586cat >conftest.$ac_ext <<_ACEOF
32587/* confdefs.h. */
32588_ACEOF
32589cat confdefs.h >>conftest.$ac_ext
32590cat >>conftest.$ac_ext <<_ACEOF
32591/* end confdefs.h. */
32592
32593/* Override any gcc2 internal prototype to avoid an error. */
32594#ifdef __cplusplus
32595extern "C"
32596#endif
32597/* We use char because int might match the return type of a gcc2
32598 builtin and then its argument prototype would still apply. */
32599char wcslen ();
32600int
32601main ()
32602{
32603wcslen ();
32604 ;
32605 return 0;
32606}
32607_ACEOF
32608rm -f conftest.$ac_objext conftest$ac_exeext
32609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32610 (eval $ac_link) 2>conftest.er1
a848cd7e 32611 ac_status=$?
ac1cb8d3
VS
32612 grep -v '^ *+' conftest.er1 >conftest.err
32613 rm -f conftest.er1
32614 cat conftest.err >&5
a848cd7e
SC
32615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32616 (exit $ac_status); } &&
5ff751d6 32617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32619 (eval $ac_try) 2>&5
32620 ac_status=$?
32621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32622 (exit $ac_status); }; } &&
32623 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32625 (eval $ac_try) 2>&5
32626 ac_status=$?
32627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32628 (exit $ac_status); }; }; then
32629 ac_cv_lib_msvcrt_wcslen=yes
32630else
32631 echo "$as_me: failed program was:" >&5
32632sed 's/^/| /' conftest.$ac_ext >&5
32633
32634ac_cv_lib_msvcrt_wcslen=no
32635fi
ac1cb8d3
VS
32636rm -f conftest.err conftest.$ac_objext \
32637 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32638LIBS=$ac_check_lib_save_LIBS
32639fi
32640echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
32641echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
32642if test $ac_cv_lib_msvcrt_wcslen = yes; then
32643 WCHAR_OK=1
32644fi
32645
32646 else
32647 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
32648echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
32649if test "${ac_cv_lib_w_wcslen+set}" = set; then
32650 echo $ECHO_N "(cached) $ECHO_C" >&6
32651else
32652 ac_check_lib_save_LIBS=$LIBS
32653LIBS="-lw $LIBS"
32654cat >conftest.$ac_ext <<_ACEOF
32655/* confdefs.h. */
32656_ACEOF
32657cat confdefs.h >>conftest.$ac_ext
32658cat >>conftest.$ac_ext <<_ACEOF
32659/* end confdefs.h. */
32660
32661/* Override any gcc2 internal prototype to avoid an error. */
32662#ifdef __cplusplus
32663extern "C"
32664#endif
32665/* We use char because int might match the return type of a gcc2
32666 builtin and then its argument prototype would still apply. */
32667char wcslen ();
32668int
32669main ()
32670{
32671wcslen ();
32672 ;
32673 return 0;
32674}
32675_ACEOF
32676rm -f conftest.$ac_objext conftest$ac_exeext
32677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32678 (eval $ac_link) 2>conftest.er1
a848cd7e 32679 ac_status=$?
ac1cb8d3
VS
32680 grep -v '^ *+' conftest.er1 >conftest.err
32681 rm -f conftest.er1
32682 cat conftest.err >&5
a848cd7e
SC
32683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32684 (exit $ac_status); } &&
5ff751d6 32685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32687 (eval $ac_try) 2>&5
32688 ac_status=$?
32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32690 (exit $ac_status); }; } &&
32691 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32693 (eval $ac_try) 2>&5
32694 ac_status=$?
32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); }; }; then
32697 ac_cv_lib_w_wcslen=yes
32698else
32699 echo "$as_me: failed program was:" >&5
32700sed 's/^/| /' conftest.$ac_ext >&5
32701
32702ac_cv_lib_w_wcslen=no
32703fi
ac1cb8d3
VS
32704rm -f conftest.err conftest.$ac_objext \
32705 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32706LIBS=$ac_check_lib_save_LIBS
32707fi
32708echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
32709echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
32710if test $ac_cv_lib_w_wcslen = yes; then
32711
32712 WCHAR_LINK=" -lw"
32713 WCSLEN_FOUND=1
32714
32715fi
32716
32717 fi
32718 fi
32719
32720 if test "$WCSLEN_FOUND" = 1; then
32721 cat >>confdefs.h <<\_ACEOF
32722#define HAVE_WCSLEN 1
32723_ACEOF
32724
32725 fi
32726
efdf6afe 32727 if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
473276a9
VS
32728 CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE "
32729 fi
32730
efdf6afe
VZ
32731 echo "$as_me:$LINENO: checking for mbstate_t" >&5
32732echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
32733if test "${ac_cv_type_mbstate_t+set}" = set; then
32734 echo $ECHO_N "(cached) $ECHO_C" >&6
32735else
32736 cat >conftest.$ac_ext <<_ACEOF
32737/* confdefs.h. */
32738_ACEOF
32739cat confdefs.h >>conftest.$ac_ext
32740cat >>conftest.$ac_ext <<_ACEOF
32741/* end confdefs.h. */
32742#include <wchar.h>
32743
32744int
32745main ()
32746{
32747if ((mbstate_t *) 0)
32748 return 0;
32749if (sizeof (mbstate_t))
32750 return 0;
32751 ;
32752 return 0;
32753}
32754_ACEOF
32755rm -f conftest.$ac_objext
32756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32757 (eval $ac_compile) 2>conftest.er1
32758 ac_status=$?
32759 grep -v '^ *+' conftest.er1 >conftest.err
32760 rm -f conftest.er1
32761 cat conftest.err >&5
32762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763 (exit $ac_status); } &&
5ff751d6 32764 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
efdf6afe
VZ
32765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32766 (eval $ac_try) 2>&5
32767 ac_status=$?
32768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32769 (exit $ac_status); }; } &&
32770 { ac_try='test -s conftest.$ac_objext'
32771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32772 (eval $ac_try) 2>&5
32773 ac_status=$?
32774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775 (exit $ac_status); }; }; then
32776 ac_cv_type_mbstate_t=yes
32777else
32778 echo "$as_me: failed program was:" >&5
32779sed 's/^/| /' conftest.$ac_ext >&5
32780
32781ac_cv_type_mbstate_t=no
32782fi
32783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32784fi
32785echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
32786echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6
32787if test $ac_cv_type_mbstate_t = yes; then
32788
32789cat >>confdefs.h <<_ACEOF
32790#define HAVE_MBSTATE_T 1
32791_ACEOF
32792
a848cd7e
SC
32793
32794for ac_func in wcsrtombs
32795do
32796as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32797echo "$as_me:$LINENO: checking for $ac_func" >&5
32798echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32799if eval "test \"\${$as_ac_var+set}\" = set"; then
32800 echo $ECHO_N "(cached) $ECHO_C" >&6
32801else
32802 cat >conftest.$ac_ext <<_ACEOF
32803/* confdefs.h. */
32804_ACEOF
32805cat confdefs.h >>conftest.$ac_ext
32806cat >>conftest.$ac_ext <<_ACEOF
32807/* end confdefs.h. */
ac1cb8d3
VS
32808/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32810#define $ac_func innocuous_$ac_func
32811
a848cd7e
SC
32812/* System header to define __stub macros and hopefully few prototypes,
32813 which can conflict with char $ac_func (); below.
32814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32815 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32816
a848cd7e
SC
32817#ifdef __STDC__
32818# include <limits.h>
32819#else
32820# include <assert.h>
32821#endif
ac1cb8d3
VS
32822
32823#undef $ac_func
32824
a848cd7e
SC
32825/* Override any gcc2 internal prototype to avoid an error. */
32826#ifdef __cplusplus
32827extern "C"
32828{
32829#endif
32830/* We use char because int might match the return type of a gcc2
32831 builtin and then its argument prototype would still apply. */
32832char $ac_func ();
32833/* The GNU C library defines this for functions which it implements
32834 to always fail with ENOSYS. Some functions are actually named
32835 something starting with __ and the normal name is an alias. */
32836#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32837choke me
32838#else
32839char (*f) () = $ac_func;
32840#endif
32841#ifdef __cplusplus
32842}
32843#endif
32844
32845int
32846main ()
32847{
32848return f != $ac_func;
32849 ;
32850 return 0;
32851}
32852_ACEOF
32853rm -f conftest.$ac_objext conftest$ac_exeext
32854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32855 (eval $ac_link) 2>conftest.er1
a848cd7e 32856 ac_status=$?
ac1cb8d3
VS
32857 grep -v '^ *+' conftest.er1 >conftest.err
32858 rm -f conftest.er1
32859 cat conftest.err >&5
a848cd7e
SC
32860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32861 (exit $ac_status); } &&
5ff751d6 32862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32864 (eval $ac_try) 2>&5
32865 ac_status=$?
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); }; } &&
32868 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32870 (eval $ac_try) 2>&5
32871 ac_status=$?
32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32873 (exit $ac_status); }; }; then
32874 eval "$as_ac_var=yes"
32875else
32876 echo "$as_me: failed program was:" >&5
32877sed 's/^/| /' conftest.$ac_ext >&5
32878
32879eval "$as_ac_var=no"
32880fi
ac1cb8d3
VS
32881rm -f conftest.err conftest.$ac_objext \
32882 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
32883fi
32884echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32885echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32886if test `eval echo '${'$as_ac_var'}'` = yes; then
32887 cat >>confdefs.h <<_ACEOF
32888#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32889_ACEOF
32890
32891fi
32892done
32893
efdf6afe
VZ
32894fi
32895
a848cd7e
SC
32896else
32897 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
32898echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
32899fi
32900
32901
32902
32903ac_ext=cc
32904ac_cpp='$CXXCPP $CPPFLAGS'
32905ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32906ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32907ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32908
32909
32910
4a767dd5
VZ
32911
32912for ac_func in snprintf vsnprintf
a848cd7e
SC
32913do
32914as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32915echo "$as_me:$LINENO: checking for $ac_func" >&5
32916echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32917if eval "test \"\${$as_ac_var+set}\" = set"; then
32918 echo $ECHO_N "(cached) $ECHO_C" >&6
32919else
32920 cat >conftest.$ac_ext <<_ACEOF
32921/* confdefs.h. */
32922_ACEOF
32923cat confdefs.h >>conftest.$ac_ext
32924cat >>conftest.$ac_ext <<_ACEOF
32925/* end confdefs.h. */
ac1cb8d3
VS
32926/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32927 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32928#define $ac_func innocuous_$ac_func
32929
a848cd7e
SC
32930/* System header to define __stub macros and hopefully few prototypes,
32931 which can conflict with char $ac_func (); below.
32932 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32933 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 32934
a848cd7e
SC
32935#ifdef __STDC__
32936# include <limits.h>
32937#else
32938# include <assert.h>
32939#endif
ac1cb8d3
VS
32940
32941#undef $ac_func
32942
a848cd7e
SC
32943/* Override any gcc2 internal prototype to avoid an error. */
32944#ifdef __cplusplus
32945extern "C"
32946{
32947#endif
32948/* We use char because int might match the return type of a gcc2
32949 builtin and then its argument prototype would still apply. */
32950char $ac_func ();
32951/* The GNU C library defines this for functions which it implements
32952 to always fail with ENOSYS. Some functions are actually named
32953 something starting with __ and the normal name is an alias. */
32954#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32955choke me
32956#else
32957char (*f) () = $ac_func;
32958#endif
32959#ifdef __cplusplus
32960}
32961#endif
32962
32963int
32964main ()
32965{
32966return f != $ac_func;
32967 ;
32968 return 0;
32969}
32970_ACEOF
32971rm -f conftest.$ac_objext conftest$ac_exeext
32972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 32973 (eval $ac_link) 2>conftest.er1
a848cd7e 32974 ac_status=$?
ac1cb8d3
VS
32975 grep -v '^ *+' conftest.er1 >conftest.err
32976 rm -f conftest.er1
32977 cat conftest.err >&5
a848cd7e
SC
32978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32979 (exit $ac_status); } &&
5ff751d6 32980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
32981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32982 (eval $ac_try) 2>&5
32983 ac_status=$?
32984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32985 (exit $ac_status); }; } &&
32986 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
32987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32988 (eval $ac_try) 2>&5
32989 ac_status=$?
32990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991 (exit $ac_status); }; }; then
32992 eval "$as_ac_var=yes"
32993else
32994 echo "$as_me: failed program was:" >&5
32995sed 's/^/| /' conftest.$ac_ext >&5
32996
32997eval "$as_ac_var=no"
32998fi
ac1cb8d3
VS
32999rm -f conftest.err conftest.$ac_objext \
33000 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33001fi
33002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33003echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33004if test `eval echo '${'$as_ac_var'}'` = yes; then
33005 cat >>confdefs.h <<_ACEOF
33006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33007_ACEOF
33008
33009fi
33010done
33011
33012
33013if test "$ac_cv_func_vsnprintf" = "yes"; then
33014 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
33015echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
33016if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
33017 echo $ECHO_N "(cached) $ECHO_C" >&6
33018else
33019
efdf6afe 33020 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
33021/* confdefs.h. */
33022_ACEOF
33023cat confdefs.h >>conftest.$ac_ext
33024cat >>conftest.$ac_ext <<_ACEOF
33025/* end confdefs.h. */
33026
33027 #include <stdio.h>
33028 #include <stdarg.h>
efdf6afe
VZ
33029 #ifdef __MSL__
33030 #if __MSL__ >= 0x6000
33031 namespace std {}
33032 using namespace std;
33033 #endif
33034 #endif
a848cd7e
SC
33035
33036int
33037main ()
33038{
33039
33040 char *buf;
33041 va_list ap;
62fa8b3a 33042 vsnprintf(buf, 10u, "%s", ap);
c122b164
DE
33043
33044 ;
33045 return 0;
33046}
33047_ACEOF
33048rm -f conftest.$ac_objext
33049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33050 (eval $ac_compile) 2>conftest.er1
33051 ac_status=$?
33052 grep -v '^ *+' conftest.er1 >conftest.err
33053 rm -f conftest.er1
33054 cat conftest.err >&5
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); } &&
5ff751d6 33057 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
c122b164
DE
33058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33059 (eval $ac_try) 2>&5
33060 ac_status=$?
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); }; } &&
33063 { ac_try='test -s conftest.$ac_objext'
33064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33065 (eval $ac_try) 2>&5
33066 ac_status=$?
33067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068 (exit $ac_status); }; }; then
33069 wx_cv_func_vsnprintf_decl=yes
33070else
33071 echo "$as_me: failed program was:" >&5
33072sed 's/^/| /' conftest.$ac_ext >&5
33073
a848cd7e
SC
33074wx_cv_func_vsnprintf_decl=no
33075
33076fi
ac1cb8d3 33077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33078
33079
33080fi
33081echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
33082echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
33083
33084 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
33085 cat >>confdefs.h <<\_ACEOF
33086#define HAVE_VSNPRINTF_DECL 1
33087_ACEOF
33088
62fa8b3a
MW
33089
33090 echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
33091echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6
33092if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
33093 echo $ECHO_N "(cached) $ECHO_C" >&6
33094else
33095
33096 cat >conftest.$ac_ext <<_ACEOF
33097/* confdefs.h. */
33098_ACEOF
33099cat confdefs.h >>conftest.$ac_ext
33100cat >>conftest.$ac_ext <<_ACEOF
33101/* end confdefs.h. */
33102
33103 #include <stdio.h>
33104 #include <stdarg.h>
33105 #ifdef __MSL__
33106 #if __MSL__ >= 0x6000
33107 namespace std {}
33108 using namespace std;
33109 #endif
33110 #endif
33111
33112int
33113main ()
33114{
33115
33116 char *buf;
33117 va_list ap;
33118 const char *fmt = "%s";
33119 vsnprintf(buf, 10u, fmt, ap);
33120
33121 ;
33122 return 0;
33123}
33124_ACEOF
33125rm -f conftest.$ac_objext
33126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33127 (eval $ac_compile) 2>conftest.er1
33128 ac_status=$?
33129 grep -v '^ *+' conftest.er1 >conftest.err
33130 rm -f conftest.er1
33131 cat conftest.err >&5
33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33133 (exit $ac_status); } &&
5ff751d6 33134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33136 (eval $ac_try) 2>&5
33137 ac_status=$?
33138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33139 (exit $ac_status); }; } &&
33140 { ac_try='test -s conftest.$ac_objext'
33141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33142 (eval $ac_try) 2>&5
33143 ac_status=$?
33144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33145 (exit $ac_status); }; }; then
33146 wx_cv_func_broken_vsnprintf_decl=no
33147else
33148 echo "$as_me: failed program was:" >&5
33149sed 's/^/| /' conftest.$ac_ext >&5
33150
33151wx_cv_func_broken_vsnprintf_decl=yes
33152
33153fi
33154rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33155
33156
33157fi
33158echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
33159echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6
33160
33161 if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
33162 cat >>confdefs.h <<\_ACEOF
33163#define HAVE_BROKEN_VSNPRINTF_DECL 1
33164_ACEOF
33165
33166 fi
a848cd7e
SC
33167 fi
33168fi
33169
4a767dd5
VZ
33170if test "$ac_cv_func_snprintf" = "yes"; then
33171 echo "$as_me:$LINENO: checking for snprintf declaration" >&5
33172echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6
33173if test "${wx_cv_func_snprintf_decl+set}" = set; then
33174 echo $ECHO_N "(cached) $ECHO_C" >&6
33175else
33176
33177 cat >conftest.$ac_ext <<_ACEOF
33178/* confdefs.h. */
33179_ACEOF
33180cat confdefs.h >>conftest.$ac_ext
33181cat >>conftest.$ac_ext <<_ACEOF
33182/* end confdefs.h. */
33183
33184 #include <stdio.h>
33185 #include <stdarg.h>
33186 #ifdef __MSL__
33187 #if __MSL__ >= 0x6000
33188 namespace std {}
33189 using namespace std;
33190 #endif
33191 #endif
33192
33193int
33194main ()
33195{
33196
33197 char *buf;
62fa8b3a 33198 snprintf(buf, 10u, "%s", "wx");
4a767dd5
VZ
33199
33200 ;
33201 return 0;
33202}
33203_ACEOF
33204rm -f conftest.$ac_objext
33205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33206 (eval $ac_compile) 2>conftest.er1
33207 ac_status=$?
33208 grep -v '^ *+' conftest.er1 >conftest.err
33209 rm -f conftest.er1
33210 cat conftest.err >&5
33211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33212 (exit $ac_status); } &&
5ff751d6 33213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4a767dd5
VZ
33214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33215 (eval $ac_try) 2>&5
33216 ac_status=$?
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); }; } &&
33219 { ac_try='test -s conftest.$ac_objext'
33220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33221 (eval $ac_try) 2>&5
33222 ac_status=$?
33223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224 (exit $ac_status); }; }; then
33225 wx_cv_func_snprintf_decl=yes
33226else
33227 echo "$as_me: failed program was:" >&5
33228sed 's/^/| /' conftest.$ac_ext >&5
33229
33230wx_cv_func_snprintf_decl=no
33231
33232fi
33233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33234
33235
33236fi
33237echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
33238echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6
33239
33240 if test "$wx_cv_func_snprintf_decl" = "yes"; then
33241 cat >>confdefs.h <<\_ACEOF
33242#define HAVE_SNPRINTF_DECL 1
33243_ACEOF
33244
62fa8b3a
MW
33245
33246 echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
33247echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6
33248if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
33249 echo $ECHO_N "(cached) $ECHO_C" >&6
33250else
33251
33252 cat >conftest.$ac_ext <<_ACEOF
33253/* confdefs.h. */
33254_ACEOF
33255cat confdefs.h >>conftest.$ac_ext
33256cat >>conftest.$ac_ext <<_ACEOF
33257/* end confdefs.h. */
33258
33259 #include <stdio.h>
33260 #include <stdarg.h>
33261 #ifdef __MSL__
33262 #if __MSL__ >= 0x6000
33263 namespace std {}
33264 using namespace std;
33265 #endif
33266 #endif
33267
33268int
33269main ()
33270{
33271
33272 char *buf;
33273 const char *fmt = "%s";
33274 snprintf(buf, 10u, fmt, "wx");
33275
33276 ;
33277 return 0;
33278}
33279_ACEOF
33280rm -f conftest.$ac_objext
33281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
33282 (eval $ac_compile) 2>conftest.er1
33283 ac_status=$?
33284 grep -v '^ *+' conftest.er1 >conftest.err
33285 rm -f conftest.er1
33286 cat conftest.err >&5
33287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33288 (exit $ac_status); } &&
5ff751d6 33289 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
62fa8b3a
MW
33290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33291 (eval $ac_try) 2>&5
33292 ac_status=$?
33293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33294 (exit $ac_status); }; } &&
33295 { ac_try='test -s conftest.$ac_objext'
33296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33297 (eval $ac_try) 2>&5
33298 ac_status=$?
33299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300 (exit $ac_status); }; }; then
33301 wx_cv_func_broken_snprintf_decl=no
33302else
33303 echo "$as_me: failed program was:" >&5
33304sed 's/^/| /' conftest.$ac_ext >&5
33305
33306wx_cv_func_broken_snprintf_decl=yes
33307
33308fi
33309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
33310
33311
33312fi
33313echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
33314echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6
33315
33316 if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
33317 cat >>confdefs.h <<\_ACEOF
33318#define HAVE_BROKEN_SNPRINTF_DECL 1
33319_ACEOF
33320
33321 fi
4a767dd5
VZ
33322 fi
33323fi
33324
a848cd7e
SC
33325if test "$wxUSE_UNICODE" = yes; then
33326
33327
33328
fbe47c7b
VS
33329
33330
33331
33332for ac_func in wputc wputchar putws fputws wprintf vswprintf
a848cd7e
SC
33333do
33334as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33335echo "$as_me:$LINENO: checking for $ac_func" >&5
33336echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33337if eval "test \"\${$as_ac_var+set}\" = set"; then
33338 echo $ECHO_N "(cached) $ECHO_C" >&6
33339else
33340 cat >conftest.$ac_ext <<_ACEOF
33341/* confdefs.h. */
33342_ACEOF
33343cat confdefs.h >>conftest.$ac_ext
33344cat >>conftest.$ac_ext <<_ACEOF
33345/* end confdefs.h. */
ac1cb8d3
VS
33346/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33348#define $ac_func innocuous_$ac_func
33349
a848cd7e
SC
33350/* System header to define __stub macros and hopefully few prototypes,
33351 which can conflict with char $ac_func (); below.
33352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33353 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33354
a848cd7e
SC
33355#ifdef __STDC__
33356# include <limits.h>
33357#else
33358# include <assert.h>
33359#endif
ac1cb8d3
VS
33360
33361#undef $ac_func
33362
a848cd7e
SC
33363/* Override any gcc2 internal prototype to avoid an error. */
33364#ifdef __cplusplus
33365extern "C"
33366{
33367#endif
33368/* We use char because int might match the return type of a gcc2
33369 builtin and then its argument prototype would still apply. */
33370char $ac_func ();
33371/* The GNU C library defines this for functions which it implements
33372 to always fail with ENOSYS. Some functions are actually named
33373 something starting with __ and the normal name is an alias. */
33374#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33375choke me
33376#else
33377char (*f) () = $ac_func;
33378#endif
33379#ifdef __cplusplus
33380}
33381#endif
33382
33383int
33384main ()
33385{
33386return f != $ac_func;
33387 ;
33388 return 0;
33389}
33390_ACEOF
33391rm -f conftest.$ac_objext conftest$ac_exeext
33392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33393 (eval $ac_link) 2>conftest.er1
a848cd7e 33394 ac_status=$?
ac1cb8d3
VS
33395 grep -v '^ *+' conftest.er1 >conftest.err
33396 rm -f conftest.er1
33397 cat conftest.err >&5
a848cd7e
SC
33398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33399 (exit $ac_status); } &&
5ff751d6 33400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33402 (eval $ac_try) 2>&5
33403 ac_status=$?
33404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33405 (exit $ac_status); }; } &&
33406 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33408 (eval $ac_try) 2>&5
33409 ac_status=$?
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); }; }; then
33412 eval "$as_ac_var=yes"
33413else
33414 echo "$as_me: failed program was:" >&5
33415sed 's/^/| /' conftest.$ac_ext >&5
33416
33417eval "$as_ac_var=no"
33418fi
ac1cb8d3
VS
33419rm -f conftest.err conftest.$ac_objext \
33420 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33421fi
33422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33423echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33424if test `eval echo '${'$as_ac_var'}'` = yes; then
33425 cat >>confdefs.h <<_ACEOF
33426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33427_ACEOF
33428
33429fi
33430done
33431
33432
33433 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
33434echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
33435 cat >conftest.$ac_ext <<_ACEOF
33436/* confdefs.h. */
33437_ACEOF
33438cat confdefs.h >>conftest.$ac_ext
33439cat >>conftest.$ac_ext <<_ACEOF
33440/* end confdefs.h. */
33441#include <wchar.h>
33442int
33443main ()
33444{
33445&_vsnwprintf;
33446 ;
33447 return 0;
33448}
33449_ACEOF
33450rm -f conftest.$ac_objext
33451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33452 (eval $ac_compile) 2>conftest.er1
a848cd7e 33453 ac_status=$?
ac1cb8d3
VS
33454 grep -v '^ *+' conftest.er1 >conftest.err
33455 rm -f conftest.er1
33456 cat conftest.err >&5
a848cd7e
SC
33457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33458 (exit $ac_status); } &&
5ff751d6 33459 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33461 (eval $ac_try) 2>&5
33462 ac_status=$?
33463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33464 (exit $ac_status); }; } &&
33465 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33467 (eval $ac_try) 2>&5
33468 ac_status=$?
33469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470 (exit $ac_status); }; }; then
33471 echo "$as_me:$LINENO: result: yes" >&5
33472echo "${ECHO_T}yes" >&6
33473 cat >>confdefs.h <<\_ACEOF
33474#define HAVE__VSNWPRINTF 1
33475_ACEOF
33476
33477else
33478 echo "$as_me: failed program was:" >&5
33479sed 's/^/| /' conftest.$ac_ext >&5
33480
33481echo "$as_me:$LINENO: result: no" >&5
33482echo "${ECHO_T}no" >&6
33483fi
ac1cb8d3 33484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
a848cd7e
SC
33485fi
33486
33487ac_ext=c
33488ac_cpp='$CPP $CPPFLAGS'
33489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33491ac_compiler_gnu=$ac_cv_c_compiler_gnu
33492
33493
6ebeb4c7
VZ
33494if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
33495
33496for ac_func in fnmatch
33497do
33498as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33499echo "$as_me:$LINENO: checking for $ac_func" >&5
33500echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33501if eval "test \"\${$as_ac_var+set}\" = set"; then
33502 echo $ECHO_N "(cached) $ECHO_C" >&6
33503else
33504 cat >conftest.$ac_ext <<_ACEOF
33505/* confdefs.h. */
33506_ACEOF
33507cat confdefs.h >>conftest.$ac_ext
33508cat >>conftest.$ac_ext <<_ACEOF
33509/* end confdefs.h. */
33510/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33512#define $ac_func innocuous_$ac_func
33513
33514/* System header to define __stub macros and hopefully few prototypes,
33515 which can conflict with char $ac_func (); below.
33516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33517 <limits.h> exists even on freestanding compilers. */
33518
33519#ifdef __STDC__
33520# include <limits.h>
33521#else
33522# include <assert.h>
33523#endif
33524
33525#undef $ac_func
33526
33527/* Override any gcc2 internal prototype to avoid an error. */
33528#ifdef __cplusplus
33529extern "C"
33530{
33531#endif
33532/* We use char because int might match the return type of a gcc2
33533 builtin and then its argument prototype would still apply. */
33534char $ac_func ();
33535/* The GNU C library defines this for functions which it implements
33536 to always fail with ENOSYS. Some functions are actually named
33537 something starting with __ and the normal name is an alias. */
33538#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33539choke me
33540#else
33541char (*f) () = $ac_func;
33542#endif
33543#ifdef __cplusplus
33544}
33545#endif
33546
33547int
33548main ()
33549{
33550return f != $ac_func;
33551 ;
33552 return 0;
33553}
33554_ACEOF
33555rm -f conftest.$ac_objext conftest$ac_exeext
33556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33557 (eval $ac_link) 2>conftest.er1
33558 ac_status=$?
33559 grep -v '^ *+' conftest.er1 >conftest.err
33560 rm -f conftest.er1
33561 cat conftest.err >&5
33562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563 (exit $ac_status); } &&
5ff751d6 33564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
33565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33566 (eval $ac_try) 2>&5
33567 ac_status=$?
33568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33569 (exit $ac_status); }; } &&
33570 { ac_try='test -s conftest$ac_exeext'
33571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33572 (eval $ac_try) 2>&5
33573 ac_status=$?
33574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575 (exit $ac_status); }; }; then
33576 eval "$as_ac_var=yes"
33577else
33578 echo "$as_me: failed program was:" >&5
33579sed 's/^/| /' conftest.$ac_ext >&5
33580
33581eval "$as_ac_var=no"
33582fi
33583rm -f conftest.err conftest.$ac_objext \
33584 conftest$ac_exeext conftest.$ac_ext
33585fi
33586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33587echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33588if test `eval echo '${'$as_ac_var'}'` = yes; then
33589 cat >>confdefs.h <<_ACEOF
33590#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33591_ACEOF
33592
33593fi
33594done
33595
33596fi
33597
33598if test "$wxUSE_FILE" = "yes"; then
33599
33600for ac_func in fsync
33601do
33602as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33603echo "$as_me:$LINENO: checking for $ac_func" >&5
33604echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33605if eval "test \"\${$as_ac_var+set}\" = set"; then
33606 echo $ECHO_N "(cached) $ECHO_C" >&6
33607else
33608 cat >conftest.$ac_ext <<_ACEOF
33609/* confdefs.h. */
33610_ACEOF
33611cat confdefs.h >>conftest.$ac_ext
33612cat >>conftest.$ac_ext <<_ACEOF
33613/* end confdefs.h. */
33614/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33616#define $ac_func innocuous_$ac_func
33617
33618/* System header to define __stub macros and hopefully few prototypes,
33619 which can conflict with char $ac_func (); below.
33620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33621 <limits.h> exists even on freestanding compilers. */
33622
33623#ifdef __STDC__
33624# include <limits.h>
33625#else
33626# include <assert.h>
33627#endif
33628
33629#undef $ac_func
33630
33631/* Override any gcc2 internal prototype to avoid an error. */
33632#ifdef __cplusplus
33633extern "C"
33634{
33635#endif
33636/* We use char because int might match the return type of a gcc2
33637 builtin and then its argument prototype would still apply. */
33638char $ac_func ();
33639/* The GNU C library defines this for functions which it implements
33640 to always fail with ENOSYS. Some functions are actually named
33641 something starting with __ and the normal name is an alias. */
33642#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33643choke me
33644#else
33645char (*f) () = $ac_func;
33646#endif
33647#ifdef __cplusplus
33648}
33649#endif
33650
33651int
33652main ()
33653{
33654return f != $ac_func;
33655 ;
33656 return 0;
33657}
33658_ACEOF
33659rm -f conftest.$ac_objext conftest$ac_exeext
33660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33661 (eval $ac_link) 2>conftest.er1
33662 ac_status=$?
33663 grep -v '^ *+' conftest.er1 >conftest.err
33664 rm -f conftest.er1
33665 cat conftest.err >&5
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); } &&
5ff751d6 33668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
33669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33670 (eval $ac_try) 2>&5
33671 ac_status=$?
33672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33673 (exit $ac_status); }; } &&
33674 { ac_try='test -s conftest$ac_exeext'
33675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33676 (eval $ac_try) 2>&5
33677 ac_status=$?
33678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679 (exit $ac_status); }; }; then
33680 eval "$as_ac_var=yes"
33681else
33682 echo "$as_me: failed program was:" >&5
33683sed 's/^/| /' conftest.$ac_ext >&5
33684
33685eval "$as_ac_var=no"
33686fi
33687rm -f conftest.err conftest.$ac_objext \
33688 conftest$ac_exeext conftest.$ac_ext
33689fi
33690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33691echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33692if test `eval echo '${'$as_ac_var'}'` = yes; then
33693 cat >>confdefs.h <<_ACEOF
33694#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33695_ACEOF
33696
33697fi
33698done
33699
33700fi
a848cd7e
SC
33701
33702
33703if test "$TOOLKIT" != "MSW"; then
33704
33705
33706
33707
33708ac_ext=cc
33709ac_cpp='$CXXCPP $CPPFLAGS'
33710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33713
33714
33715
33716
33717# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
33718if test "${with_libiconv_prefix+set}" = set; then
33719 withval="$with_libiconv_prefix"
33720
33721 for dir in `echo "$withval" | tr : ' '`; do
33722 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
33723 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
33724 done
33725
33726fi;
33727
33728 echo "$as_me:$LINENO: checking for iconv" >&5
33729echo $ECHO_N "checking for iconv... $ECHO_C" >&6
33730if test "${am_cv_func_iconv+set}" = set; then
33731 echo $ECHO_N "(cached) $ECHO_C" >&6
33732else
33733
33734 am_cv_func_iconv="no, consider installing GNU libiconv"
33735 am_cv_lib_iconv=no
33736 cat >conftest.$ac_ext <<_ACEOF
33737/* confdefs.h. */
33738_ACEOF
33739cat confdefs.h >>conftest.$ac_ext
33740cat >>conftest.$ac_ext <<_ACEOF
33741/* end confdefs.h. */
33742#include <stdlib.h>
33743#include <iconv.h>
33744int
33745main ()
33746{
33747iconv_t cd = iconv_open("","");
33748 iconv(cd,NULL,NULL,NULL,NULL);
33749 iconv_close(cd);
33750 ;
33751 return 0;
33752}
33753_ACEOF
33754rm -f conftest.$ac_objext conftest$ac_exeext
33755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33756 (eval $ac_link) 2>conftest.er1
a848cd7e 33757 ac_status=$?
ac1cb8d3
VS
33758 grep -v '^ *+' conftest.er1 >conftest.err
33759 rm -f conftest.er1
33760 cat conftest.err >&5
a848cd7e
SC
33761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33762 (exit $ac_status); } &&
5ff751d6 33763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33765 (eval $ac_try) 2>&5
33766 ac_status=$?
33767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33768 (exit $ac_status); }; } &&
33769 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33771 (eval $ac_try) 2>&5
33772 ac_status=$?
33773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33774 (exit $ac_status); }; }; then
33775 am_cv_func_iconv=yes
33776else
33777 echo "$as_me: failed program was:" >&5
33778sed 's/^/| /' conftest.$ac_ext >&5
33779
33780fi
ac1cb8d3
VS
33781rm -f conftest.err conftest.$ac_objext \
33782 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33783 if test "$am_cv_func_iconv" != yes; then
33784 am_save_LIBS="$LIBS"
33785 LIBS="$LIBS -liconv"
33786 cat >conftest.$ac_ext <<_ACEOF
33787/* confdefs.h. */
33788_ACEOF
33789cat confdefs.h >>conftest.$ac_ext
33790cat >>conftest.$ac_ext <<_ACEOF
33791/* end confdefs.h. */
33792#include <stdlib.h>
33793#include <iconv.h>
33794int
33795main ()
33796{
33797iconv_t cd = iconv_open("","");
33798 iconv(cd,NULL,NULL,NULL,NULL);
33799 iconv_close(cd);
33800 ;
33801 return 0;
33802}
33803_ACEOF
33804rm -f conftest.$ac_objext conftest$ac_exeext
33805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 33806 (eval $ac_link) 2>conftest.er1
a848cd7e 33807 ac_status=$?
ac1cb8d3
VS
33808 grep -v '^ *+' conftest.er1 >conftest.err
33809 rm -f conftest.er1
33810 cat conftest.err >&5
a848cd7e
SC
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); } &&
5ff751d6 33813 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33815 (eval $ac_try) 2>&5
33816 ac_status=$?
33817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33818 (exit $ac_status); }; } &&
33819 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
33820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33821 (eval $ac_try) 2>&5
33822 ac_status=$?
33823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824 (exit $ac_status); }; }; then
33825 am_cv_lib_iconv=yes
33826 am_cv_func_iconv=yes
33827else
33828 echo "$as_me: failed program was:" >&5
33829sed 's/^/| /' conftest.$ac_ext >&5
33830
33831fi
ac1cb8d3
VS
33832rm -f conftest.err conftest.$ac_objext \
33833 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
33834 LIBS="$am_save_LIBS"
33835 fi
33836
33837fi
33838echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
33839echo "${ECHO_T}$am_cv_func_iconv" >&6
33840 if test "$am_cv_func_iconv" = yes; then
33841
33842cat >>confdefs.h <<\_ACEOF
33843#define HAVE_ICONV 1
33844_ACEOF
33845
33846 echo "$as_me:$LINENO: checking if iconv needs const" >&5
33847echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
33848if test "${wx_cv_func_iconv_const+set}" = set; then
33849 echo $ECHO_N "(cached) $ECHO_C" >&6
33850else
33851 cat >conftest.$ac_ext <<_ACEOF
33852/* confdefs.h. */
33853_ACEOF
33854cat confdefs.h >>conftest.$ac_ext
33855cat >>conftest.$ac_ext <<_ACEOF
33856/* end confdefs.h. */
33857
33858#include <stdlib.h>
33859#include <iconv.h>
33860extern
33861#ifdef __cplusplus
33862"C"
33863#endif
33864#if defined(__STDC__) || defined(__cplusplus)
33865size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
33866#else
33867size_t iconv();
33868#endif
33869
33870int
33871main ()
33872{
33873
33874 ;
33875 return 0;
33876}
33877_ACEOF
33878rm -f conftest.$ac_objext
33879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 33880 (eval $ac_compile) 2>conftest.er1
a848cd7e 33881 ac_status=$?
ac1cb8d3
VS
33882 grep -v '^ *+' conftest.er1 >conftest.err
33883 rm -f conftest.er1
33884 cat conftest.err >&5
a848cd7e
SC
33885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33886 (exit $ac_status); } &&
5ff751d6 33887 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
33888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33889 (eval $ac_try) 2>&5
33890 ac_status=$?
33891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892 (exit $ac_status); }; } &&
33893 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
33894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33895 (eval $ac_try) 2>&5
33896 ac_status=$?
33897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898 (exit $ac_status); }; }; then
33899 wx_cv_func_iconv_const="no"
33900else
33901 echo "$as_me: failed program was:" >&5
33902sed 's/^/| /' conftest.$ac_ext >&5
33903
33904wx_cv_func_iconv_const="yes"
33905
33906fi
ac1cb8d3 33907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
33908
33909fi
33910echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
33911echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
33912
33913 iconv_const=
33914 if test "x$wx_cv_func_iconv_const" = "xyes"; then
33915 iconv_const="const"
33916 fi
33917
33918
33919cat >>confdefs.h <<_ACEOF
33920#define ICONV_CONST $iconv_const
33921_ACEOF
33922
33923 fi
33924 LIBICONV=
33925 if test "$am_cv_lib_iconv" = yes; then
33926 LIBICONV="-liconv"
33927 fi
33928
33929
33930LIBS="$LIBICONV $LIBS"
33931ac_ext=c
33932ac_cpp='$CPP $CPPFLAGS'
33933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33935ac_compiler_gnu=$ac_cv_c_compiler_gnu
33936
33937
33938if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
33939
33940for ac_func in sigaction
33941do
33942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33943echo "$as_me:$LINENO: checking for $ac_func" >&5
33944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33945if eval "test \"\${$as_ac_var+set}\" = set"; then
33946 echo $ECHO_N "(cached) $ECHO_C" >&6
33947else
33948 cat >conftest.$ac_ext <<_ACEOF
33949/* confdefs.h. */
33950_ACEOF
33951cat confdefs.h >>conftest.$ac_ext
33952cat >>conftest.$ac_ext <<_ACEOF
33953/* end confdefs.h. */
ac1cb8d3
VS
33954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33956#define $ac_func innocuous_$ac_func
33957
a848cd7e
SC
33958/* System header to define __stub macros and hopefully few prototypes,
33959 which can conflict with char $ac_func (); below.
33960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33961 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 33962
a848cd7e
SC
33963#ifdef __STDC__
33964# include <limits.h>
33965#else
33966# include <assert.h>
33967#endif
ac1cb8d3
VS
33968
33969#undef $ac_func
33970
a848cd7e
SC
33971/* Override any gcc2 internal prototype to avoid an error. */
33972#ifdef __cplusplus
33973extern "C"
33974{
33975#endif
33976/* We use char because int might match the return type of a gcc2
33977 builtin and then its argument prototype would still apply. */
33978char $ac_func ();
33979/* The GNU C library defines this for functions which it implements
33980 to always fail with ENOSYS. Some functions are actually named
33981 something starting with __ and the normal name is an alias. */
33982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33983choke me
33984#else
33985char (*f) () = $ac_func;
33986#endif
33987#ifdef __cplusplus
33988}
33989#endif
33990
33991int
33992main ()
33993{
33994return f != $ac_func;
33995 ;
33996 return 0;
33997}
33998_ACEOF
33999rm -f conftest.$ac_objext conftest$ac_exeext
34000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34001 (eval $ac_link) 2>conftest.er1
a848cd7e 34002 ac_status=$?
ac1cb8d3
VS
34003 grep -v '^ *+' conftest.er1 >conftest.err
34004 rm -f conftest.er1
34005 cat conftest.err >&5
a848cd7e
SC
34006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34007 (exit $ac_status); } &&
5ff751d6 34008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34010 (eval $ac_try) 2>&5
34011 ac_status=$?
34012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34013 (exit $ac_status); }; } &&
34014 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34016 (eval $ac_try) 2>&5
34017 ac_status=$?
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); }; }; then
34020 eval "$as_ac_var=yes"
34021else
34022 echo "$as_me: failed program was:" >&5
34023sed 's/^/| /' conftest.$ac_ext >&5
34024
34025eval "$as_ac_var=no"
34026fi
ac1cb8d3
VS
34027rm -f conftest.err conftest.$ac_objext \
34028 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34029fi
34030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34031echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34032if test `eval echo '${'$as_ac_var'}'` = yes; then
34033 cat >>confdefs.h <<_ACEOF
34034#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34035_ACEOF
34036
34037fi
34038done
34039
34040
34041 if test "$ac_cv_func_sigaction" = "no"; then
34042 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
34043echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
34044 wxUSE_ON_FATAL_EXCEPTION=no
34045 fi
34046
34047 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34048
34049
34050 ac_ext=cc
34051ac_cpp='$CXXCPP $CPPFLAGS'
34052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34055
34056
34057 echo "$as_me:$LINENO: checking for sa_handler type" >&5
34058echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
34059if test "${wx_cv_type_sa_handler+set}" = set; then
34060 echo $ECHO_N "(cached) $ECHO_C" >&6
34061else
34062
34063 cat >conftest.$ac_ext <<_ACEOF
34064/* confdefs.h. */
34065_ACEOF
34066cat confdefs.h >>conftest.$ac_ext
34067cat >>conftest.$ac_ext <<_ACEOF
34068/* end confdefs.h. */
34069#include <signal.h>
34070int
34071main ()
34072{
34073
34074 extern void testSigHandler(int);
34075
34076 struct sigaction sa;
34077 sa.sa_handler = testSigHandler;
34078
34079 ;
34080 return 0;
34081}
34082_ACEOF
34083rm -f conftest.$ac_objext
34084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34085 (eval $ac_compile) 2>conftest.er1
a848cd7e 34086 ac_status=$?
ac1cb8d3
VS
34087 grep -v '^ *+' conftest.er1 >conftest.err
34088 rm -f conftest.er1
34089 cat conftest.err >&5
a848cd7e
SC
34090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34091 (exit $ac_status); } &&
5ff751d6 34092 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34094 (eval $ac_try) 2>&5
34095 ac_status=$?
34096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34097 (exit $ac_status); }; } &&
34098 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34100 (eval $ac_try) 2>&5
34101 ac_status=$?
34102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34103 (exit $ac_status); }; }; then
34104
34105 wx_cv_type_sa_handler=int
34106
34107else
34108 echo "$as_me: failed program was:" >&5
34109sed 's/^/| /' conftest.$ac_ext >&5
34110
34111
34112 wx_cv_type_sa_handler=void
34113
34114fi
ac1cb8d3 34115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34116
34117fi
34118echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
34119echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
34120
34121 ac_ext=c
34122ac_cpp='$CPP $CPPFLAGS'
34123ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34124ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34125ac_compiler_gnu=$ac_cv_c_compiler_gnu
34126
34127
34128 cat >>confdefs.h <<_ACEOF
34129#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
34130_ACEOF
34131
34132 fi
34133fi
34134
eaff0f0d
VZ
34135if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
34136
34137
34138 ac_ext=cc
34139ac_cpp='$CXXCPP $CPPFLAGS'
34140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34143
34144
34145 echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
34146echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6
34147if test "${wx_cv_func_backtrace+set}" = set; then
34148 echo $ECHO_N "(cached) $ECHO_C" >&6
34149else
34150
34151 cat >conftest.$ac_ext <<_ACEOF
34152/* confdefs.h. */
34153_ACEOF
34154cat confdefs.h >>conftest.$ac_ext
34155cat >>conftest.$ac_ext <<_ACEOF
34156/* end confdefs.h. */
34157#include <execinfo.h>
34158int
34159main ()
34160{
34161
34162 void *trace[1];
34163 char **messages;
34164
34165 backtrace(trace, 1);
34166 messages = backtrace_symbols(trace, 1);
34167
34168 ;
34169 return 0;
34170}
34171_ACEOF
34172rm -f conftest.$ac_objext
34173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34174 (eval $ac_compile) 2>conftest.er1
34175 ac_status=$?
34176 grep -v '^ *+' conftest.er1 >conftest.err
34177 rm -f conftest.er1
34178 cat conftest.err >&5
34179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34180 (exit $ac_status); } &&
5ff751d6 34181 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34183 (eval $ac_try) 2>&5
34184 ac_status=$?
34185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34186 (exit $ac_status); }; } &&
34187 { ac_try='test -s conftest.$ac_objext'
34188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34189 (eval $ac_try) 2>&5
34190 ac_status=$?
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); }; }; then
34193 wx_cv_func_backtrace=yes
34194else
34195 echo "$as_me: failed program was:" >&5
34196sed 's/^/| /' conftest.$ac_ext >&5
34197
34198wx_cv_func_backtrace=no
34199
34200fi
34201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34202
34203
34204fi
34205echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
34206echo "${ECHO_T}$wx_cv_func_backtrace" >&6
34207
34208
34209 if test "$wx_cv_func_backtrace" = "no"; then
34210 { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
34211echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
34212 wxUSE_STACKWALKER=no
34213 else
34214 echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
34215echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6
34216if test "${wx_cv_func_cxa_demangle+set}" = set; then
34217 echo $ECHO_N "(cached) $ECHO_C" >&6
34218else
34219
34220 cat >conftest.$ac_ext <<_ACEOF
34221/* confdefs.h. */
34222_ACEOF
34223cat confdefs.h >>conftest.$ac_ext
34224cat >>conftest.$ac_ext <<_ACEOF
34225/* end confdefs.h. */
34226#include <cxxabi.h>
34227int
34228main ()
34229{
34230
34231 int rc;
34232 __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
34233
34234 ;
34235 return 0;
34236}
34237_ACEOF
dfe0c803
JS
34238rm -f conftest.$ac_objext conftest$ac_exeext
34239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34240 (eval $ac_link) 2>conftest.er1
eaff0f0d
VZ
34241 ac_status=$?
34242 grep -v '^ *+' conftest.er1 >conftest.err
34243 rm -f conftest.er1
34244 cat conftest.err >&5
34245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34246 (exit $ac_status); } &&
5ff751d6 34247 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
eaff0f0d
VZ
34248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34249 (eval $ac_try) 2>&5
34250 ac_status=$?
34251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34252 (exit $ac_status); }; } &&
dfe0c803 34253 { ac_try='test -s conftest$ac_exeext'
eaff0f0d
VZ
34254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34255 (eval $ac_try) 2>&5
34256 ac_status=$?
34257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34258 (exit $ac_status); }; }; then
34259 wx_cv_func_cxa_demangle=yes
34260else
34261 echo "$as_me: failed program was:" >&5
34262sed 's/^/| /' conftest.$ac_ext >&5
34263
34264wx_cv_func_cxa_demangle=no
34265
34266fi
dfe0c803
JS
34267rm -f conftest.err conftest.$ac_objext \
34268 conftest$ac_exeext conftest.$ac_ext
eaff0f0d
VZ
34269
34270
34271fi
34272echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
34273echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6
34274
34275 if test "$wx_cv_func_cxa_demangle" = "yes"; then
34276 cat >>confdefs.h <<\_ACEOF
34277#define HAVE_CXA_DEMANGLE 1
34278_ACEOF
34279
34280 fi
34281 fi
34282
34283 ac_ext=c
34284ac_cpp='$CPP $CPPFLAGS'
34285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34287ac_compiler_gnu=$ac_cv_c_compiler_gnu
34288
34289fi
34290
898beab1
DE
34291if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
34292 { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
34293echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
34294 wxUSE_STACKWALKER=no
34295fi
34296
34297
a848cd7e
SC
34298
34299
34300for ac_func in mkstemp mktemp
34301do
34302as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34303echo "$as_me:$LINENO: checking for $ac_func" >&5
34304echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34305if eval "test \"\${$as_ac_var+set}\" = set"; then
34306 echo $ECHO_N "(cached) $ECHO_C" >&6
34307else
34308 cat >conftest.$ac_ext <<_ACEOF
34309/* confdefs.h. */
34310_ACEOF
34311cat confdefs.h >>conftest.$ac_ext
34312cat >>conftest.$ac_ext <<_ACEOF
34313/* end confdefs.h. */
ac1cb8d3
VS
34314/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34316#define $ac_func innocuous_$ac_func
34317
a848cd7e
SC
34318/* System header to define __stub macros and hopefully few prototypes,
34319 which can conflict with char $ac_func (); below.
34320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34321 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34322
a848cd7e
SC
34323#ifdef __STDC__
34324# include <limits.h>
34325#else
34326# include <assert.h>
34327#endif
ac1cb8d3
VS
34328
34329#undef $ac_func
34330
a848cd7e
SC
34331/* Override any gcc2 internal prototype to avoid an error. */
34332#ifdef __cplusplus
34333extern "C"
34334{
34335#endif
34336/* We use char because int might match the return type of a gcc2
34337 builtin and then its argument prototype would still apply. */
34338char $ac_func ();
34339/* The GNU C library defines this for functions which it implements
34340 to always fail with ENOSYS. Some functions are actually named
34341 something starting with __ and the normal name is an alias. */
34342#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34343choke me
34344#else
34345char (*f) () = $ac_func;
34346#endif
34347#ifdef __cplusplus
34348}
34349#endif
34350
34351int
34352main ()
34353{
34354return f != $ac_func;
34355 ;
34356 return 0;
34357}
34358_ACEOF
34359rm -f conftest.$ac_objext conftest$ac_exeext
34360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34361 (eval $ac_link) 2>conftest.er1
a848cd7e 34362 ac_status=$?
ac1cb8d3
VS
34363 grep -v '^ *+' conftest.er1 >conftest.err
34364 rm -f conftest.er1
34365 cat conftest.err >&5
a848cd7e
SC
34366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34367 (exit $ac_status); } &&
5ff751d6 34368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34370 (eval $ac_try) 2>&5
34371 ac_status=$?
34372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34373 (exit $ac_status); }; } &&
34374 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34376 (eval $ac_try) 2>&5
34377 ac_status=$?
34378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34379 (exit $ac_status); }; }; then
34380 eval "$as_ac_var=yes"
34381else
34382 echo "$as_me: failed program was:" >&5
34383sed 's/^/| /' conftest.$ac_ext >&5
34384
34385eval "$as_ac_var=no"
34386fi
ac1cb8d3
VS
34387rm -f conftest.err conftest.$ac_objext \
34388 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34389fi
34390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34391echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34392if test `eval echo '${'$as_ac_var'}'` = yes; then
34393 cat >>confdefs.h <<_ACEOF
34394#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34395_ACEOF
34396 break
34397fi
34398done
34399
34400
34401echo "$as_me:$LINENO: checking for statfs" >&5
34402echo $ECHO_N "checking for statfs... $ECHO_C" >&6
34403if test "${wx_cv_func_statfs+set}" = set; then
34404 echo $ECHO_N "(cached) $ECHO_C" >&6
34405else
34406 cat >conftest.$ac_ext <<_ACEOF
34407/* confdefs.h. */
34408_ACEOF
34409cat confdefs.h >>conftest.$ac_ext
34410cat >>conftest.$ac_ext <<_ACEOF
34411/* end confdefs.h. */
34412
34413 #if defined(__BSD__)
84ae7ca4
VZ
34414 #include <sys/param.h>
34415 #include <sys/mount.h>
a848cd7e 34416 #else
84ae7ca4 34417 #include <sys/vfs.h>
a848cd7e
SC
34418 #endif
34419
34420int
34421main ()
34422{
34423
34424 long l;
34425 struct statfs fs;
34426 statfs("/", &fs);
34427 l = fs.f_bsize;
34428 l += fs.f_blocks;
34429 l += fs.f_bavail;
34430
34431 ;
34432 return 0;
34433}
34434_ACEOF
34435rm -f conftest.$ac_objext
34436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34437 (eval $ac_compile) 2>conftest.er1
a848cd7e 34438 ac_status=$?
ac1cb8d3
VS
34439 grep -v '^ *+' conftest.er1 >conftest.err
34440 rm -f conftest.er1
34441 cat conftest.err >&5
a848cd7e
SC
34442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34443 (exit $ac_status); } &&
5ff751d6 34444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34446 (eval $ac_try) 2>&5
34447 ac_status=$?
34448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449 (exit $ac_status); }; } &&
34450 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34452 (eval $ac_try) 2>&5
34453 ac_status=$?
34454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34455 (exit $ac_status); }; }; then
84ae7ca4 34456 wx_cv_func_statfs=yes
a848cd7e
SC
34457else
34458 echo "$as_me: failed program was:" >&5
34459sed 's/^/| /' conftest.$ac_ext >&5
34460
84ae7ca4 34461wx_cv_func_statfs=no
a848cd7e
SC
34462
34463fi
ac1cb8d3 34464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34465
34466fi
34467echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
34468echo "${ECHO_T}$wx_cv_func_statfs" >&6
34469
34470if test "$wx_cv_func_statfs" = "yes"; then
84ae7ca4
VZ
34471
34472
34473 ac_ext=cc
34474ac_cpp='$CXXCPP $CPPFLAGS'
34475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34478
34479 echo "$as_me:$LINENO: checking for statfs declaration" >&5
34480echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6
34481if test "${wx_cv_func_statfs_decl+set}" = set; then
34482 echo $ECHO_N "(cached) $ECHO_C" >&6
34483else
0683aca6
VZ
34484 cat >conftest.$ac_ext <<_ACEOF
34485/* confdefs.h. */
34486_ACEOF
34487cat confdefs.h >>conftest.$ac_ext
34488cat >>conftest.$ac_ext <<_ACEOF
34489/* end confdefs.h. */
84ae7ca4 34490
0683aca6
VZ
34491 #if defined(__BSD__)
34492 #include <sys/param.h>
34493 #include <sys/mount.h>
34494 #else
34495 #include <sys/vfs.h>
34496 #endif
34497
34498int
34499main ()
34500{
34501
34502 struct statfs fs;
34503 statfs("", &fs);
34504
34505 ;
34506 return 0;
34507}
34508_ACEOF
34509rm -f conftest.$ac_objext
34510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34511 (eval $ac_compile) 2>conftest.er1
34512 ac_status=$?
34513 grep -v '^ *+' conftest.er1 >conftest.err
34514 rm -f conftest.er1
34515 cat conftest.err >&5
34516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34517 (exit $ac_status); } &&
5ff751d6 34518 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
0683aca6
VZ
34519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34520 (eval $ac_try) 2>&5
34521 ac_status=$?
34522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34523 (exit $ac_status); }; } &&
34524 { ac_try='test -s conftest.$ac_objext'
34525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34526 (eval $ac_try) 2>&5
34527 ac_status=$?
34528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34529 (exit $ac_status); }; }; then
34530 wx_cv_func_statfs_decl=yes
34531else
34532 echo "$as_me: failed program was:" >&5
34533sed 's/^/| /' conftest.$ac_ext >&5
34534
34535wx_cv_func_statfs_decl=no
34536
34537fi
34538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
84ae7ca4
VZ
34539
34540fi
34541echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
34542echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6
34543 ac_ext=c
34544ac_cpp='$CPP $CPPFLAGS'
34545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34547ac_compiler_gnu=$ac_cv_c_compiler_gnu
34548
34549
34550 if test "$wx_cv_func_statfs_decl" = "yes"; then
34551 cat >>confdefs.h <<\_ACEOF
34552#define HAVE_STATFS_DECL 1
34553_ACEOF
34554
34555 fi
34556
a848cd7e
SC
34557 wx_cv_type_statvfs_t="struct statfs"
34558 cat >>confdefs.h <<\_ACEOF
34559#define HAVE_STATFS 1
34560_ACEOF
34561
34562else
34563 echo "$as_me:$LINENO: checking for statvfs" >&5
34564echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
34565if test "${wx_cv_func_statvfs+set}" = set; then
34566 echo $ECHO_N "(cached) $ECHO_C" >&6
34567else
34568 cat >conftest.$ac_ext <<_ACEOF
34569/* confdefs.h. */
34570_ACEOF
34571cat confdefs.h >>conftest.$ac_ext
34572cat >>conftest.$ac_ext <<_ACEOF
34573/* end confdefs.h. */
34574
34575 #include <stddef.h>
34576 #include <sys/statvfs.h>
34577
34578int
34579main ()
34580{
34581
34582 statvfs("/", NULL);
34583
34584 ;
34585 return 0;
34586}
34587_ACEOF
34588rm -f conftest.$ac_objext
34589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34590 (eval $ac_compile) 2>conftest.er1
a848cd7e 34591 ac_status=$?
ac1cb8d3
VS
34592 grep -v '^ *+' conftest.er1 >conftest.err
34593 rm -f conftest.er1
34594 cat conftest.err >&5
a848cd7e
SC
34595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34596 (exit $ac_status); } &&
5ff751d6 34597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34599 (eval $ac_try) 2>&5
34600 ac_status=$?
34601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34602 (exit $ac_status); }; } &&
34603 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34605 (eval $ac_try) 2>&5
34606 ac_status=$?
34607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34608 (exit $ac_status); }; }; then
34609 wx_cv_func_statvfs=yes
34610else
34611 echo "$as_me: failed program was:" >&5
34612sed 's/^/| /' conftest.$ac_ext >&5
34613
34614wx_cv_func_statvfs=no
34615
34616fi
ac1cb8d3 34617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34618
34619fi
34620echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
34621echo "${ECHO_T}$wx_cv_func_statvfs" >&6
34622
34623 if test "$wx_cv_func_statvfs" = "yes"; then
34624
34625
34626 ac_ext=cc
34627ac_cpp='$CXXCPP $CPPFLAGS'
34628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34631
34632
34633 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
34634echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
34635if test "${wx_cv_type_statvfs_t+set}" = set; then
34636 echo $ECHO_N "(cached) $ECHO_C" >&6
34637else
34638 cat >conftest.$ac_ext <<_ACEOF
34639/* confdefs.h. */
34640_ACEOF
34641cat confdefs.h >>conftest.$ac_ext
34642cat >>conftest.$ac_ext <<_ACEOF
34643/* end confdefs.h. */
34644
34645 #include <sys/statvfs.h>
34646
34647int
34648main ()
34649{
34650
34651 long l;
34652 statvfs_t fs;
34653 statvfs("/", &fs);
34654 l = fs.f_bsize;
34655 l += fs.f_blocks;
34656 l += fs.f_bavail;
34657
34658 ;
34659 return 0;
34660}
34661_ACEOF
34662rm -f conftest.$ac_objext
34663if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34664 (eval $ac_compile) 2>conftest.er1
a848cd7e 34665 ac_status=$?
ac1cb8d3
VS
34666 grep -v '^ *+' conftest.er1 >conftest.err
34667 rm -f conftest.er1
34668 cat conftest.err >&5
a848cd7e
SC
34669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34670 (exit $ac_status); } &&
5ff751d6 34671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34673 (eval $ac_try) 2>&5
34674 ac_status=$?
34675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676 (exit $ac_status); }; } &&
34677 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34679 (eval $ac_try) 2>&5
34680 ac_status=$?
34681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34682 (exit $ac_status); }; }; then
34683 wx_cv_type_statvfs_t=statvfs_t
34684else
34685 echo "$as_me: failed program was:" >&5
34686sed 's/^/| /' conftest.$ac_ext >&5
34687
34688
34689 cat >conftest.$ac_ext <<_ACEOF
34690/* confdefs.h. */
34691_ACEOF
34692cat confdefs.h >>conftest.$ac_ext
34693cat >>conftest.$ac_ext <<_ACEOF
34694/* end confdefs.h. */
34695
34696 #include <sys/statvfs.h>
34697
34698int
34699main ()
34700{
34701
34702 long l;
34703 struct statvfs fs;
34704 statvfs("/", &fs);
34705 l = fs.f_bsize;
34706 l += fs.f_blocks;
34707 l += fs.f_bavail;
34708
34709 ;
34710 return 0;
34711}
34712_ACEOF
34713rm -f conftest.$ac_objext
34714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 34715 (eval $ac_compile) 2>conftest.er1
a848cd7e 34716 ac_status=$?
ac1cb8d3
VS
34717 grep -v '^ *+' conftest.er1 >conftest.err
34718 rm -f conftest.er1
34719 cat conftest.err >&5
a848cd7e
SC
34720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721 (exit $ac_status); } &&
5ff751d6 34722 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34724 (eval $ac_try) 2>&5
34725 ac_status=$?
34726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); }; } &&
34728 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
34729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34730 (eval $ac_try) 2>&5
34731 ac_status=$?
34732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34733 (exit $ac_status); }; }; then
34734 wx_cv_type_statvfs_t="struct statvfs"
34735else
34736 echo "$as_me: failed program was:" >&5
34737sed 's/^/| /' conftest.$ac_ext >&5
34738
34739wx_cv_type_statvfs_t="unknown"
34740
34741fi
ac1cb8d3 34742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34743
34744
34745fi
ac1cb8d3 34746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
34747
34748fi
34749echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
34750echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
34751
34752 ac_ext=c
34753ac_cpp='$CPP $CPPFLAGS'
34754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34756ac_compiler_gnu=$ac_cv_c_compiler_gnu
34757
34758
34759 if test "$wx_cv_type_statvfs_t" != "unknown"; then
34760 cat >>confdefs.h <<\_ACEOF
34761#define HAVE_STATVFS 1
34762_ACEOF
34763
34764 fi
34765 else
34766 wx_cv_type_statvfs_t="unknown"
34767 fi
34768fi
34769
34770if test "$wx_cv_type_statvfs_t" != "unknown"; then
34771 cat >>confdefs.h <<_ACEOF
34772#define WX_STATFS_T $wx_cv_type_statvfs_t
34773_ACEOF
34774
34775else
34776 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
34777echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
34778fi
34779
34780if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34781
34782
34783for ac_func in fcntl flock
34784do
34785as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34786echo "$as_me:$LINENO: checking for $ac_func" >&5
34787echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34788if eval "test \"\${$as_ac_var+set}\" = set"; then
34789 echo $ECHO_N "(cached) $ECHO_C" >&6
34790else
34791 cat >conftest.$ac_ext <<_ACEOF
34792/* confdefs.h. */
34793_ACEOF
34794cat confdefs.h >>conftest.$ac_ext
34795cat >>conftest.$ac_ext <<_ACEOF
34796/* end confdefs.h. */
ac1cb8d3
VS
34797/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34798 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34799#define $ac_func innocuous_$ac_func
34800
a848cd7e
SC
34801/* System header to define __stub macros and hopefully few prototypes,
34802 which can conflict with char $ac_func (); below.
34803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34804 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34805
a848cd7e
SC
34806#ifdef __STDC__
34807# include <limits.h>
34808#else
34809# include <assert.h>
34810#endif
ac1cb8d3
VS
34811
34812#undef $ac_func
34813
a848cd7e
SC
34814/* Override any gcc2 internal prototype to avoid an error. */
34815#ifdef __cplusplus
34816extern "C"
34817{
34818#endif
34819/* We use char because int might match the return type of a gcc2
34820 builtin and then its argument prototype would still apply. */
34821char $ac_func ();
34822/* The GNU C library defines this for functions which it implements
34823 to always fail with ENOSYS. Some functions are actually named
34824 something starting with __ and the normal name is an alias. */
34825#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34826choke me
34827#else
34828char (*f) () = $ac_func;
34829#endif
34830#ifdef __cplusplus
34831}
34832#endif
34833
34834int
34835main ()
34836{
34837return f != $ac_func;
34838 ;
34839 return 0;
34840}
34841_ACEOF
34842rm -f conftest.$ac_objext conftest$ac_exeext
34843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34844 (eval $ac_link) 2>conftest.er1
a848cd7e 34845 ac_status=$?
ac1cb8d3
VS
34846 grep -v '^ *+' conftest.er1 >conftest.err
34847 rm -f conftest.er1
34848 cat conftest.err >&5
a848cd7e
SC
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); } &&
5ff751d6 34851 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34853 (eval $ac_try) 2>&5
34854 ac_status=$?
34855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34856 (exit $ac_status); }; } &&
34857 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34859 (eval $ac_try) 2>&5
34860 ac_status=$?
34861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34862 (exit $ac_status); }; }; then
34863 eval "$as_ac_var=yes"
34864else
34865 echo "$as_me: failed program was:" >&5
34866sed 's/^/| /' conftest.$ac_ext >&5
34867
34868eval "$as_ac_var=no"
34869fi
ac1cb8d3
VS
34870rm -f conftest.err conftest.$ac_objext \
34871 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34872fi
34873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34874echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34875if test `eval echo '${'$as_ac_var'}'` = yes; then
34876 cat >>confdefs.h <<_ACEOF
34877#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34878_ACEOF
34879 break
34880fi
34881done
34882
34883
34884 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
34885 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
34886echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
34887 wxUSE_SNGLINST_CHECKER=no
34888 fi
34889fi
34890
34891
34892for ac_func in timegm
34893do
34894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34895echo "$as_me:$LINENO: checking for $ac_func" >&5
34896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34897if eval "test \"\${$as_ac_var+set}\" = set"; then
34898 echo $ECHO_N "(cached) $ECHO_C" >&6
34899else
34900 cat >conftest.$ac_ext <<_ACEOF
34901/* confdefs.h. */
34902_ACEOF
34903cat confdefs.h >>conftest.$ac_ext
34904cat >>conftest.$ac_ext <<_ACEOF
34905/* end confdefs.h. */
ac1cb8d3
VS
34906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34908#define $ac_func innocuous_$ac_func
34909
a848cd7e
SC
34910/* System header to define __stub macros and hopefully few prototypes,
34911 which can conflict with char $ac_func (); below.
34912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34913 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 34914
a848cd7e
SC
34915#ifdef __STDC__
34916# include <limits.h>
34917#else
34918# include <assert.h>
34919#endif
ac1cb8d3
VS
34920
34921#undef $ac_func
34922
a848cd7e
SC
34923/* Override any gcc2 internal prototype to avoid an error. */
34924#ifdef __cplusplus
34925extern "C"
34926{
34927#endif
34928/* We use char because int might match the return type of a gcc2
34929 builtin and then its argument prototype would still apply. */
34930char $ac_func ();
34931/* The GNU C library defines this for functions which it implements
34932 to always fail with ENOSYS. Some functions are actually named
34933 something starting with __ and the normal name is an alias. */
34934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34935choke me
34936#else
34937char (*f) () = $ac_func;
34938#endif
34939#ifdef __cplusplus
34940}
34941#endif
34942
34943int
34944main ()
34945{
34946return f != $ac_func;
34947 ;
34948 return 0;
34949}
34950_ACEOF
34951rm -f conftest.$ac_objext conftest$ac_exeext
34952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 34953 (eval $ac_link) 2>conftest.er1
a848cd7e 34954 ac_status=$?
ac1cb8d3
VS
34955 grep -v '^ *+' conftest.er1 >conftest.err
34956 rm -f conftest.er1
34957 cat conftest.err >&5
a848cd7e
SC
34958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34959 (exit $ac_status); } &&
5ff751d6 34960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
34961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34962 (eval $ac_try) 2>&5
34963 ac_status=$?
34964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34965 (exit $ac_status); }; } &&
34966 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
34967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34968 (eval $ac_try) 2>&5
34969 ac_status=$?
34970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34971 (exit $ac_status); }; }; then
34972 eval "$as_ac_var=yes"
34973else
34974 echo "$as_me: failed program was:" >&5
34975sed 's/^/| /' conftest.$ac_ext >&5
34976
34977eval "$as_ac_var=no"
34978fi
ac1cb8d3
VS
34979rm -f conftest.err conftest.$ac_objext \
34980 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
34981fi
34982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34983echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34984if test `eval echo '${'$as_ac_var'}'` = yes; then
34985 cat >>confdefs.h <<_ACEOF
34986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34987_ACEOF
34988
34989fi
34990done
34991
34992
34993
34994
34995for ac_func in putenv setenv
34996do
34997as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34998echo "$as_me:$LINENO: checking for $ac_func" >&5
34999echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35000if eval "test \"\${$as_ac_var+set}\" = set"; then
35001 echo $ECHO_N "(cached) $ECHO_C" >&6
35002else
35003 cat >conftest.$ac_ext <<_ACEOF
35004/* confdefs.h. */
35005_ACEOF
35006cat confdefs.h >>conftest.$ac_ext
35007cat >>conftest.$ac_ext <<_ACEOF
35008/* end confdefs.h. */
ac1cb8d3
VS
35009/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35011#define $ac_func innocuous_$ac_func
35012
a848cd7e
SC
35013/* System header to define __stub macros and hopefully few prototypes,
35014 which can conflict with char $ac_func (); below.
35015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35016 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35017
a848cd7e
SC
35018#ifdef __STDC__
35019# include <limits.h>
35020#else
35021# include <assert.h>
35022#endif
ac1cb8d3
VS
35023
35024#undef $ac_func
35025
a848cd7e
SC
35026/* Override any gcc2 internal prototype to avoid an error. */
35027#ifdef __cplusplus
35028extern "C"
35029{
35030#endif
35031/* We use char because int might match the return type of a gcc2
35032 builtin and then its argument prototype would still apply. */
35033char $ac_func ();
35034/* The GNU C library defines this for functions which it implements
35035 to always fail with ENOSYS. Some functions are actually named
35036 something starting with __ and the normal name is an alias. */
35037#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35038choke me
35039#else
35040char (*f) () = $ac_func;
35041#endif
35042#ifdef __cplusplus
35043}
35044#endif
35045
35046int
35047main ()
35048{
35049return f != $ac_func;
35050 ;
35051 return 0;
35052}
35053_ACEOF
35054rm -f conftest.$ac_objext conftest$ac_exeext
35055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35056 (eval $ac_link) 2>conftest.er1
a848cd7e 35057 ac_status=$?
ac1cb8d3
VS
35058 grep -v '^ *+' conftest.er1 >conftest.err
35059 rm -f conftest.er1
35060 cat conftest.err >&5
a848cd7e
SC
35061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35062 (exit $ac_status); } &&
5ff751d6 35063 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35065 (eval $ac_try) 2>&5
35066 ac_status=$?
35067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35068 (exit $ac_status); }; } &&
35069 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35071 (eval $ac_try) 2>&5
35072 ac_status=$?
35073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074 (exit $ac_status); }; }; then
35075 eval "$as_ac_var=yes"
35076else
35077 echo "$as_me: failed program was:" >&5
35078sed 's/^/| /' conftest.$ac_ext >&5
35079
35080eval "$as_ac_var=no"
35081fi
ac1cb8d3
VS
35082rm -f conftest.err conftest.$ac_objext \
35083 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35084fi
35085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35087if test `eval echo '${'$as_ac_var'}'` = yes; then
35088 cat >>confdefs.h <<_ACEOF
35089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35090_ACEOF
35091 break
35092fi
35093done
35094
35095
35096HAVE_SOME_SLEEP_FUNC=0
35097if test "$USE_BEOS" = 1; then
35098 cat >>confdefs.h <<\_ACEOF
35099#define HAVE_SLEEP 1
35100_ACEOF
35101
35102 HAVE_SOME_SLEEP_FUNC=1
35103fi
35104
35105if test "$USE_DARWIN" = 1; then
35106 cat >>confdefs.h <<\_ACEOF
35107#define HAVE_USLEEP 1
35108_ACEOF
35109
35110 HAVE_SOME_SLEEP_FUNC=1
35111fi
35112
35113if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
35114 POSIX4_LINK=
35115
35116for ac_func in nanosleep
35117do
35118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35119echo "$as_me:$LINENO: checking for $ac_func" >&5
35120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35121if eval "test \"\${$as_ac_var+set}\" = set"; then
35122 echo $ECHO_N "(cached) $ECHO_C" >&6
35123else
35124 cat >conftest.$ac_ext <<_ACEOF
35125/* confdefs.h. */
35126_ACEOF
35127cat confdefs.h >>conftest.$ac_ext
35128cat >>conftest.$ac_ext <<_ACEOF
35129/* end confdefs.h. */
ac1cb8d3
VS
35130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35132#define $ac_func innocuous_$ac_func
35133
a848cd7e
SC
35134/* System header to define __stub macros and hopefully few prototypes,
35135 which can conflict with char $ac_func (); below.
35136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35137 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35138
a848cd7e
SC
35139#ifdef __STDC__
35140# include <limits.h>
35141#else
35142# include <assert.h>
35143#endif
ac1cb8d3
VS
35144
35145#undef $ac_func
35146
a848cd7e
SC
35147/* Override any gcc2 internal prototype to avoid an error. */
35148#ifdef __cplusplus
35149extern "C"
35150{
35151#endif
35152/* We use char because int might match the return type of a gcc2
35153 builtin and then its argument prototype would still apply. */
35154char $ac_func ();
35155/* The GNU C library defines this for functions which it implements
35156 to always fail with ENOSYS. Some functions are actually named
35157 something starting with __ and the normal name is an alias. */
35158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35159choke me
35160#else
35161char (*f) () = $ac_func;
35162#endif
35163#ifdef __cplusplus
35164}
35165#endif
35166
35167int
35168main ()
35169{
35170return f != $ac_func;
35171 ;
35172 return 0;
35173}
35174_ACEOF
35175rm -f conftest.$ac_objext conftest$ac_exeext
35176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35177 (eval $ac_link) 2>conftest.er1
a848cd7e 35178 ac_status=$?
ac1cb8d3
VS
35179 grep -v '^ *+' conftest.er1 >conftest.err
35180 rm -f conftest.er1
35181 cat conftest.err >&5
a848cd7e
SC
35182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35183 (exit $ac_status); } &&
5ff751d6 35184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35186 (eval $ac_try) 2>&5
35187 ac_status=$?
35188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189 (exit $ac_status); }; } &&
35190 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35192 (eval $ac_try) 2>&5
35193 ac_status=$?
35194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195 (exit $ac_status); }; }; then
35196 eval "$as_ac_var=yes"
35197else
35198 echo "$as_me: failed program was:" >&5
35199sed 's/^/| /' conftest.$ac_ext >&5
35200
35201eval "$as_ac_var=no"
35202fi
ac1cb8d3
VS
35203rm -f conftest.err conftest.$ac_objext \
35204 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35205fi
35206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35207echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35208if test `eval echo '${'$as_ac_var'}'` = yes; then
35209 cat >>confdefs.h <<_ACEOF
35210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35211_ACEOF
35212 cat >>confdefs.h <<\_ACEOF
35213#define HAVE_NANOSLEEP 1
35214_ACEOF
35215
35216else
35217
35218 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
35219echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
35220if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
35221 echo $ECHO_N "(cached) $ECHO_C" >&6
35222else
35223 ac_check_lib_save_LIBS=$LIBS
35224LIBS="-lposix4 $LIBS"
35225cat >conftest.$ac_ext <<_ACEOF
35226/* confdefs.h. */
35227_ACEOF
35228cat confdefs.h >>conftest.$ac_ext
35229cat >>conftest.$ac_ext <<_ACEOF
35230/* end confdefs.h. */
35231
35232/* Override any gcc2 internal prototype to avoid an error. */
35233#ifdef __cplusplus
35234extern "C"
35235#endif
35236/* We use char because int might match the return type of a gcc2
35237 builtin and then its argument prototype would still apply. */
35238char nanosleep ();
35239int
35240main ()
35241{
35242nanosleep ();
35243 ;
35244 return 0;
35245}
35246_ACEOF
35247rm -f conftest.$ac_objext conftest$ac_exeext
35248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35249 (eval $ac_link) 2>conftest.er1
a848cd7e 35250 ac_status=$?
ac1cb8d3
VS
35251 grep -v '^ *+' conftest.er1 >conftest.err
35252 rm -f conftest.er1
35253 cat conftest.err >&5
a848cd7e
SC
35254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255 (exit $ac_status); } &&
5ff751d6 35256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35258 (eval $ac_try) 2>&5
35259 ac_status=$?
35260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35261 (exit $ac_status); }; } &&
35262 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35264 (eval $ac_try) 2>&5
35265 ac_status=$?
35266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35267 (exit $ac_status); }; }; then
35268 ac_cv_lib_posix4_nanosleep=yes
35269else
35270 echo "$as_me: failed program was:" >&5
35271sed 's/^/| /' conftest.$ac_ext >&5
35272
35273ac_cv_lib_posix4_nanosleep=no
35274fi
ac1cb8d3
VS
35275rm -f conftest.err conftest.$ac_objext \
35276 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35277LIBS=$ac_check_lib_save_LIBS
35278fi
35279echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
35280echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
35281if test $ac_cv_lib_posix4_nanosleep = yes; then
35282
35283 cat >>confdefs.h <<\_ACEOF
35284#define HAVE_NANOSLEEP 1
35285_ACEOF
35286
35287 POSIX4_LINK=" -lposix4"
35288
35289else
35290
35291
35292for ac_func in usleep
35293do
35294as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35295echo "$as_me:$LINENO: checking for $ac_func" >&5
35296echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35297if eval "test \"\${$as_ac_var+set}\" = set"; then
35298 echo $ECHO_N "(cached) $ECHO_C" >&6
35299else
35300 cat >conftest.$ac_ext <<_ACEOF
35301/* confdefs.h. */
35302_ACEOF
35303cat confdefs.h >>conftest.$ac_ext
35304cat >>conftest.$ac_ext <<_ACEOF
35305/* end confdefs.h. */
ac1cb8d3
VS
35306/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35308#define $ac_func innocuous_$ac_func
35309
a848cd7e
SC
35310/* System header to define __stub macros and hopefully few prototypes,
35311 which can conflict with char $ac_func (); below.
35312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35313 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35314
a848cd7e
SC
35315#ifdef __STDC__
35316# include <limits.h>
35317#else
35318# include <assert.h>
35319#endif
ac1cb8d3
VS
35320
35321#undef $ac_func
35322
a848cd7e
SC
35323/* Override any gcc2 internal prototype to avoid an error. */
35324#ifdef __cplusplus
35325extern "C"
35326{
35327#endif
35328/* We use char because int might match the return type of a gcc2
35329 builtin and then its argument prototype would still apply. */
35330char $ac_func ();
35331/* The GNU C library defines this for functions which it implements
35332 to always fail with ENOSYS. Some functions are actually named
35333 something starting with __ and the normal name is an alias. */
35334#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35335choke me
35336#else
35337char (*f) () = $ac_func;
35338#endif
35339#ifdef __cplusplus
35340}
35341#endif
35342
35343int
35344main ()
35345{
35346return f != $ac_func;
35347 ;
35348 return 0;
35349}
35350_ACEOF
35351rm -f conftest.$ac_objext conftest$ac_exeext
35352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35353 (eval $ac_link) 2>conftest.er1
a848cd7e 35354 ac_status=$?
ac1cb8d3
VS
35355 grep -v '^ *+' conftest.er1 >conftest.err
35356 rm -f conftest.er1
35357 cat conftest.err >&5
a848cd7e
SC
35358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35359 (exit $ac_status); } &&
5ff751d6 35360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35362 (eval $ac_try) 2>&5
35363 ac_status=$?
35364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35365 (exit $ac_status); }; } &&
35366 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35368 (eval $ac_try) 2>&5
35369 ac_status=$?
35370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35371 (exit $ac_status); }; }; then
35372 eval "$as_ac_var=yes"
35373else
35374 echo "$as_me: failed program was:" >&5
35375sed 's/^/| /' conftest.$ac_ext >&5
35376
35377eval "$as_ac_var=no"
35378fi
ac1cb8d3
VS
35379rm -f conftest.err conftest.$ac_objext \
35380 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35381fi
35382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35383echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35384if test `eval echo '${'$as_ac_var'}'` = yes; then
35385 cat >>confdefs.h <<_ACEOF
35386#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35387_ACEOF
35388 cat >>confdefs.h <<\_ACEOF
35389#define HAVE_USLEEP 1
35390_ACEOF
35391
35392else
35393 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
35394echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
35395
35396fi
35397done
35398
35399
35400
35401fi
35402
35403
35404
35405fi
35406done
35407
35408fi
35409
35410
35411
35412for ac_func in uname gethostname
35413do
35414as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35415echo "$as_me:$LINENO: checking for $ac_func" >&5
35416echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35417if eval "test \"\${$as_ac_var+set}\" = set"; then
35418 echo $ECHO_N "(cached) $ECHO_C" >&6
35419else
35420 cat >conftest.$ac_ext <<_ACEOF
35421/* confdefs.h. */
35422_ACEOF
35423cat confdefs.h >>conftest.$ac_ext
35424cat >>conftest.$ac_ext <<_ACEOF
35425/* end confdefs.h. */
ac1cb8d3
VS
35426/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35428#define $ac_func innocuous_$ac_func
35429
a848cd7e
SC
35430/* System header to define __stub macros and hopefully few prototypes,
35431 which can conflict with char $ac_func (); below.
35432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35433 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35434
a848cd7e
SC
35435#ifdef __STDC__
35436# include <limits.h>
35437#else
35438# include <assert.h>
35439#endif
ac1cb8d3
VS
35440
35441#undef $ac_func
35442
a848cd7e
SC
35443/* Override any gcc2 internal prototype to avoid an error. */
35444#ifdef __cplusplus
35445extern "C"
35446{
35447#endif
35448/* We use char because int might match the return type of a gcc2
35449 builtin and then its argument prototype would still apply. */
35450char $ac_func ();
35451/* The GNU C library defines this for functions which it implements
35452 to always fail with ENOSYS. Some functions are actually named
35453 something starting with __ and the normal name is an alias. */
35454#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35455choke me
35456#else
35457char (*f) () = $ac_func;
35458#endif
35459#ifdef __cplusplus
35460}
35461#endif
35462
35463int
35464main ()
35465{
35466return f != $ac_func;
35467 ;
35468 return 0;
35469}
35470_ACEOF
35471rm -f conftest.$ac_objext conftest$ac_exeext
35472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35473 (eval $ac_link) 2>conftest.er1
a848cd7e 35474 ac_status=$?
ac1cb8d3
VS
35475 grep -v '^ *+' conftest.er1 >conftest.err
35476 rm -f conftest.er1
35477 cat conftest.err >&5
a848cd7e
SC
35478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479 (exit $ac_status); } &&
5ff751d6 35480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35482 (eval $ac_try) 2>&5
35483 ac_status=$?
35484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35485 (exit $ac_status); }; } &&
35486 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35488 (eval $ac_try) 2>&5
35489 ac_status=$?
35490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35491 (exit $ac_status); }; }; then
35492 eval "$as_ac_var=yes"
35493else
35494 echo "$as_me: failed program was:" >&5
35495sed 's/^/| /' conftest.$ac_ext >&5
35496
35497eval "$as_ac_var=no"
35498fi
ac1cb8d3
VS
35499rm -f conftest.err conftest.$ac_objext \
35500 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35501fi
35502echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35503echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35504if test `eval echo '${'$as_ac_var'}'` = yes; then
35505 cat >>confdefs.h <<_ACEOF
35506#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35507_ACEOF
35508 break
35509fi
35510done
35511
35512
35513
35514
35515ac_ext=cc
35516ac_cpp='$CXXCPP $CPPFLAGS'
35517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35520
35521
35522
35523for ac_func in strtok_r
35524do
35525as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35526echo "$as_me:$LINENO: checking for $ac_func" >&5
35527echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35528if eval "test \"\${$as_ac_var+set}\" = set"; then
35529 echo $ECHO_N "(cached) $ECHO_C" >&6
35530else
35531 cat >conftest.$ac_ext <<_ACEOF
35532/* confdefs.h. */
35533_ACEOF
35534cat confdefs.h >>conftest.$ac_ext
35535cat >>conftest.$ac_ext <<_ACEOF
35536/* end confdefs.h. */
ac1cb8d3
VS
35537/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35539#define $ac_func innocuous_$ac_func
35540
a848cd7e
SC
35541/* System header to define __stub macros and hopefully few prototypes,
35542 which can conflict with char $ac_func (); below.
35543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35544 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35545
a848cd7e
SC
35546#ifdef __STDC__
35547# include <limits.h>
35548#else
35549# include <assert.h>
35550#endif
ac1cb8d3
VS
35551
35552#undef $ac_func
35553
a848cd7e
SC
35554/* Override any gcc2 internal prototype to avoid an error. */
35555#ifdef __cplusplus
35556extern "C"
35557{
35558#endif
35559/* We use char because int might match the return type of a gcc2
35560 builtin and then its argument prototype would still apply. */
35561char $ac_func ();
35562/* The GNU C library defines this for functions which it implements
35563 to always fail with ENOSYS. Some functions are actually named
35564 something starting with __ and the normal name is an alias. */
35565#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35566choke me
35567#else
35568char (*f) () = $ac_func;
35569#endif
35570#ifdef __cplusplus
35571}
35572#endif
35573
35574int
35575main ()
35576{
35577return f != $ac_func;
35578 ;
35579 return 0;
35580}
35581_ACEOF
35582rm -f conftest.$ac_objext conftest$ac_exeext
35583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35584 (eval $ac_link) 2>conftest.er1
a848cd7e 35585 ac_status=$?
ac1cb8d3
VS
35586 grep -v '^ *+' conftest.er1 >conftest.err
35587 rm -f conftest.er1
35588 cat conftest.err >&5
a848cd7e
SC
35589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590 (exit $ac_status); } &&
5ff751d6 35591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35593 (eval $ac_try) 2>&5
35594 ac_status=$?
35595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35596 (exit $ac_status); }; } &&
35597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35599 (eval $ac_try) 2>&5
35600 ac_status=$?
35601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35602 (exit $ac_status); }; }; then
35603 eval "$as_ac_var=yes"
35604else
35605 echo "$as_me: failed program was:" >&5
35606sed 's/^/| /' conftest.$ac_ext >&5
35607
35608eval "$as_ac_var=no"
35609fi
ac1cb8d3
VS
35610rm -f conftest.err conftest.$ac_objext \
35611 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35612fi
35613echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35614echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35615if test `eval echo '${'$as_ac_var'}'` = yes; then
35616 cat >>confdefs.h <<_ACEOF
35617#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35618_ACEOF
35619
35620fi
35621done
35622
35623
35624ac_ext=c
35625ac_cpp='$CPP $CPPFLAGS'
35626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35628ac_compiler_gnu=$ac_cv_c_compiler_gnu
35629
35630
35631INET_LINK=
35632
35633for ac_func in inet_addr
35634do
35635as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35636echo "$as_me:$LINENO: checking for $ac_func" >&5
35637echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35638if eval "test \"\${$as_ac_var+set}\" = set"; then
35639 echo $ECHO_N "(cached) $ECHO_C" >&6
35640else
35641 cat >conftest.$ac_ext <<_ACEOF
35642/* confdefs.h. */
35643_ACEOF
35644cat confdefs.h >>conftest.$ac_ext
35645cat >>conftest.$ac_ext <<_ACEOF
35646/* end confdefs.h. */
ac1cb8d3
VS
35647/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35649#define $ac_func innocuous_$ac_func
35650
a848cd7e
SC
35651/* System header to define __stub macros and hopefully few prototypes,
35652 which can conflict with char $ac_func (); below.
35653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35654 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35655
a848cd7e
SC
35656#ifdef __STDC__
35657# include <limits.h>
35658#else
35659# include <assert.h>
35660#endif
ac1cb8d3
VS
35661
35662#undef $ac_func
35663
a848cd7e
SC
35664/* Override any gcc2 internal prototype to avoid an error. */
35665#ifdef __cplusplus
35666extern "C"
35667{
35668#endif
35669/* We use char because int might match the return type of a gcc2
35670 builtin and then its argument prototype would still apply. */
35671char $ac_func ();
35672/* The GNU C library defines this for functions which it implements
35673 to always fail with ENOSYS. Some functions are actually named
35674 something starting with __ and the normal name is an alias. */
35675#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35676choke me
35677#else
35678char (*f) () = $ac_func;
35679#endif
35680#ifdef __cplusplus
35681}
35682#endif
35683
35684int
35685main ()
35686{
35687return f != $ac_func;
35688 ;
35689 return 0;
35690}
35691_ACEOF
35692rm -f conftest.$ac_objext conftest$ac_exeext
35693if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35694 (eval $ac_link) 2>conftest.er1
a848cd7e 35695 ac_status=$?
ac1cb8d3
VS
35696 grep -v '^ *+' conftest.er1 >conftest.err
35697 rm -f conftest.er1
35698 cat conftest.err >&5
a848cd7e
SC
35699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35700 (exit $ac_status); } &&
5ff751d6 35701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35703 (eval $ac_try) 2>&5
35704 ac_status=$?
35705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706 (exit $ac_status); }; } &&
35707 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35709 (eval $ac_try) 2>&5
35710 ac_status=$?
35711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35712 (exit $ac_status); }; }; then
35713 eval "$as_ac_var=yes"
35714else
35715 echo "$as_me: failed program was:" >&5
35716sed 's/^/| /' conftest.$ac_ext >&5
35717
35718eval "$as_ac_var=no"
35719fi
ac1cb8d3
VS
35720rm -f conftest.err conftest.$ac_objext \
35721 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35722fi
35723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35724echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35725if test `eval echo '${'$as_ac_var'}'` = yes; then
35726 cat >>confdefs.h <<_ACEOF
35727#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35728_ACEOF
35729 cat >>confdefs.h <<\_ACEOF
35730#define HAVE_INET_ADDR 1
35731_ACEOF
35732
35733else
35734
35735 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
35736echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
35737if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
35738 echo $ECHO_N "(cached) $ECHO_C" >&6
35739else
35740 ac_check_lib_save_LIBS=$LIBS
35741LIBS="-lnsl $LIBS"
35742cat >conftest.$ac_ext <<_ACEOF
35743/* confdefs.h. */
35744_ACEOF
35745cat confdefs.h >>conftest.$ac_ext
35746cat >>conftest.$ac_ext <<_ACEOF
35747/* end confdefs.h. */
35748
35749/* Override any gcc2 internal prototype to avoid an error. */
35750#ifdef __cplusplus
35751extern "C"
35752#endif
35753/* We use char because int might match the return type of a gcc2
35754 builtin and then its argument prototype would still apply. */
35755char inet_addr ();
35756int
35757main ()
35758{
35759inet_addr ();
35760 ;
35761 return 0;
35762}
35763_ACEOF
35764rm -f conftest.$ac_objext conftest$ac_exeext
35765if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35766 (eval $ac_link) 2>conftest.er1
a848cd7e 35767 ac_status=$?
ac1cb8d3
VS
35768 grep -v '^ *+' conftest.er1 >conftest.err
35769 rm -f conftest.er1
35770 cat conftest.err >&5
a848cd7e
SC
35771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35772 (exit $ac_status); } &&
5ff751d6 35773 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35775 (eval $ac_try) 2>&5
35776 ac_status=$?
35777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778 (exit $ac_status); }; } &&
35779 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35781 (eval $ac_try) 2>&5
35782 ac_status=$?
35783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35784 (exit $ac_status); }; }; then
35785 ac_cv_lib_nsl_inet_addr=yes
35786else
35787 echo "$as_me: failed program was:" >&5
35788sed 's/^/| /' conftest.$ac_ext >&5
35789
35790ac_cv_lib_nsl_inet_addr=no
35791fi
ac1cb8d3
VS
35792rm -f conftest.err conftest.$ac_objext \
35793 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35794LIBS=$ac_check_lib_save_LIBS
35795fi
35796echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
35797echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
35798if test $ac_cv_lib_nsl_inet_addr = yes; then
35799 INET_LINK="nsl"
35800else
35801
35802 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
35803echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
35804if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
35805 echo $ECHO_N "(cached) $ECHO_C" >&6
35806else
35807 ac_check_lib_save_LIBS=$LIBS
35808LIBS="-lresolv $LIBS"
35809cat >conftest.$ac_ext <<_ACEOF
35810/* confdefs.h. */
35811_ACEOF
35812cat confdefs.h >>conftest.$ac_ext
35813cat >>conftest.$ac_ext <<_ACEOF
35814/* end confdefs.h. */
35815
35816/* Override any gcc2 internal prototype to avoid an error. */
35817#ifdef __cplusplus
35818extern "C"
35819#endif
35820/* We use char because int might match the return type of a gcc2
35821 builtin and then its argument prototype would still apply. */
35822char inet_addr ();
35823int
35824main ()
35825{
35826inet_addr ();
35827 ;
35828 return 0;
35829}
35830_ACEOF
35831rm -f conftest.$ac_objext conftest$ac_exeext
35832if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35833 (eval $ac_link) 2>conftest.er1
a848cd7e 35834 ac_status=$?
ac1cb8d3
VS
35835 grep -v '^ *+' conftest.er1 >conftest.err
35836 rm -f conftest.er1
35837 cat conftest.err >&5
a848cd7e
SC
35838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35839 (exit $ac_status); } &&
5ff751d6 35840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35842 (eval $ac_try) 2>&5
35843 ac_status=$?
35844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35845 (exit $ac_status); }; } &&
35846 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35848 (eval $ac_try) 2>&5
35849 ac_status=$?
35850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35851 (exit $ac_status); }; }; then
35852 ac_cv_lib_resolv_inet_addr=yes
35853else
35854 echo "$as_me: failed program was:" >&5
35855sed 's/^/| /' conftest.$ac_ext >&5
35856
35857ac_cv_lib_resolv_inet_addr=no
35858fi
ac1cb8d3
VS
35859rm -f conftest.err conftest.$ac_objext \
35860 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35861LIBS=$ac_check_lib_save_LIBS
35862fi
35863echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
35864echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
35865if test $ac_cv_lib_resolv_inet_addr = yes; then
35866 INET_LINK="resolv"
35867else
35868
35869 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
35870echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
35871if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
35872 echo $ECHO_N "(cached) $ECHO_C" >&6
35873else
35874 ac_check_lib_save_LIBS=$LIBS
35875LIBS="-lsocket $LIBS"
35876cat >conftest.$ac_ext <<_ACEOF
35877/* confdefs.h. */
35878_ACEOF
35879cat confdefs.h >>conftest.$ac_ext
35880cat >>conftest.$ac_ext <<_ACEOF
35881/* end confdefs.h. */
35882
35883/* Override any gcc2 internal prototype to avoid an error. */
35884#ifdef __cplusplus
35885extern "C"
35886#endif
35887/* We use char because int might match the return type of a gcc2
35888 builtin and then its argument prototype would still apply. */
35889char inet_addr ();
35890int
35891main ()
35892{
35893inet_addr ();
35894 ;
35895 return 0;
35896}
35897_ACEOF
35898rm -f conftest.$ac_objext conftest$ac_exeext
35899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 35900 (eval $ac_link) 2>conftest.er1
a848cd7e 35901 ac_status=$?
ac1cb8d3
VS
35902 grep -v '^ *+' conftest.er1 >conftest.err
35903 rm -f conftest.er1
35904 cat conftest.err >&5
a848cd7e
SC
35905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35906 (exit $ac_status); } &&
5ff751d6 35907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
35908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35909 (eval $ac_try) 2>&5
35910 ac_status=$?
35911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35912 (exit $ac_status); }; } &&
35913 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
35914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35915 (eval $ac_try) 2>&5
35916 ac_status=$?
35917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35918 (exit $ac_status); }; }; then
35919 ac_cv_lib_socket_inet_addr=yes
35920else
35921 echo "$as_me: failed program was:" >&5
35922sed 's/^/| /' conftest.$ac_ext >&5
35923
35924ac_cv_lib_socket_inet_addr=no
35925fi
ac1cb8d3
VS
35926rm -f conftest.err conftest.$ac_objext \
35927 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
35928LIBS=$ac_check_lib_save_LIBS
35929fi
35930echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
35931echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
35932if test $ac_cv_lib_socket_inet_addr = yes; then
35933 INET_LINK="socket"
35934
35935fi
35936
35937
35938
35939fi
35940
35941
35942
35943fi
35944
35945
35946
35947fi
35948done
35949
35950
35951
35952for ac_func in inet_aton
35953do
35954as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35955echo "$as_me:$LINENO: checking for $ac_func" >&5
35956echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35957if eval "test \"\${$as_ac_var+set}\" = set"; then
35958 echo $ECHO_N "(cached) $ECHO_C" >&6
35959else
35960 cat >conftest.$ac_ext <<_ACEOF
35961/* confdefs.h. */
35962_ACEOF
35963cat confdefs.h >>conftest.$ac_ext
35964cat >>conftest.$ac_ext <<_ACEOF
35965/* end confdefs.h. */
ac1cb8d3
VS
35966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35968#define $ac_func innocuous_$ac_func
35969
a848cd7e
SC
35970/* System header to define __stub macros and hopefully few prototypes,
35971 which can conflict with char $ac_func (); below.
35972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35973 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 35974
a848cd7e
SC
35975#ifdef __STDC__
35976# include <limits.h>
35977#else
35978# include <assert.h>
35979#endif
ac1cb8d3
VS
35980
35981#undef $ac_func
35982
a848cd7e
SC
35983/* Override any gcc2 internal prototype to avoid an error. */
35984#ifdef __cplusplus
35985extern "C"
35986{
35987#endif
35988/* We use char because int might match the return type of a gcc2
35989 builtin and then its argument prototype would still apply. */
35990char $ac_func ();
35991/* The GNU C library defines this for functions which it implements
35992 to always fail with ENOSYS. Some functions are actually named
35993 something starting with __ and the normal name is an alias. */
35994#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35995choke me
35996#else
35997char (*f) () = $ac_func;
35998#endif
35999#ifdef __cplusplus
36000}
36001#endif
36002
36003int
36004main ()
36005{
36006return f != $ac_func;
36007 ;
36008 return 0;
36009}
36010_ACEOF
36011rm -f conftest.$ac_objext conftest$ac_exeext
36012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36013 (eval $ac_link) 2>conftest.er1
a848cd7e 36014 ac_status=$?
ac1cb8d3
VS
36015 grep -v '^ *+' conftest.er1 >conftest.err
36016 rm -f conftest.er1
36017 cat conftest.err >&5
a848cd7e
SC
36018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36019 (exit $ac_status); } &&
5ff751d6 36020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36022 (eval $ac_try) 2>&5
36023 ac_status=$?
36024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36025 (exit $ac_status); }; } &&
36026 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36028 (eval $ac_try) 2>&5
36029 ac_status=$?
36030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36031 (exit $ac_status); }; }; then
36032 eval "$as_ac_var=yes"
36033else
36034 echo "$as_me: failed program was:" >&5
36035sed 's/^/| /' conftest.$ac_ext >&5
36036
36037eval "$as_ac_var=no"
36038fi
ac1cb8d3
VS
36039rm -f conftest.err conftest.$ac_objext \
36040 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36041fi
36042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36043echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36044if test `eval echo '${'$as_ac_var'}'` = yes; then
36045 cat >>confdefs.h <<_ACEOF
36046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36047_ACEOF
36048 cat >>confdefs.h <<\_ACEOF
36049#define HAVE_INET_ATON 1
36050_ACEOF
36051
36052else
36053
36054 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
36055echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
36056echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
36057if eval "test \"\${$as_ac_Lib+set}\" = set"; then
36058 echo $ECHO_N "(cached) $ECHO_C" >&6
36059else
36060 ac_check_lib_save_LIBS=$LIBS
36061LIBS="-l$INET_LINK $LIBS"
36062cat >conftest.$ac_ext <<_ACEOF
36063/* confdefs.h. */
36064_ACEOF
36065cat confdefs.h >>conftest.$ac_ext
36066cat >>conftest.$ac_ext <<_ACEOF
36067/* end confdefs.h. */
36068
36069/* Override any gcc2 internal prototype to avoid an error. */
36070#ifdef __cplusplus
36071extern "C"
36072#endif
36073/* We use char because int might match the return type of a gcc2
36074 builtin and then its argument prototype would still apply. */
36075char inet_aton ();
36076int
36077main ()
36078{
36079inet_aton ();
36080 ;
36081 return 0;
36082}
36083_ACEOF
36084rm -f conftest.$ac_objext conftest$ac_exeext
36085if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36086 (eval $ac_link) 2>conftest.er1
a848cd7e 36087 ac_status=$?
ac1cb8d3
VS
36088 grep -v '^ *+' conftest.er1 >conftest.err
36089 rm -f conftest.er1
36090 cat conftest.err >&5
a848cd7e
SC
36091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36092 (exit $ac_status); } &&
5ff751d6 36093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36095 (eval $ac_try) 2>&5
36096 ac_status=$?
36097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36098 (exit $ac_status); }; } &&
36099 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36101 (eval $ac_try) 2>&5
36102 ac_status=$?
36103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36104 (exit $ac_status); }; }; then
36105 eval "$as_ac_Lib=yes"
36106else
36107 echo "$as_me: failed program was:" >&5
36108sed 's/^/| /' conftest.$ac_ext >&5
36109
36110eval "$as_ac_Lib=no"
36111fi
ac1cb8d3
VS
36112rm -f conftest.err conftest.$ac_objext \
36113 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36114LIBS=$ac_check_lib_save_LIBS
36115fi
36116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
36117echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
36118if test `eval echo '${'$as_ac_Lib'}'` = yes; then
36119 cat >>confdefs.h <<\_ACEOF
36120#define HAVE_INET_ATON 1
36121_ACEOF
36122
36123fi
36124
36125
36126fi
36127done
36128
36129
36130if test "x$INET_LINK" != "x"; then
36131 cat >>confdefs.h <<\_ACEOF
36132#define HAVE_INET_ADDR 1
36133_ACEOF
36134
36135 INET_LINK=" -l$INET_LINK"
36136fi
36137
36138fi
36139
36140
36141
36142EXTRALIBS_ESD=
36143echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
36144echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
36145if test "${ac_cv_lib_esd_esd_close+set}" = set; then
36146 echo $ECHO_N "(cached) $ECHO_C" >&6
36147else
36148 ac_check_lib_save_LIBS=$LIBS
36149LIBS="-lesd $LIBS"
36150cat >conftest.$ac_ext <<_ACEOF
36151/* confdefs.h. */
36152_ACEOF
36153cat confdefs.h >>conftest.$ac_ext
36154cat >>conftest.$ac_ext <<_ACEOF
36155/* end confdefs.h. */
36156
36157/* Override any gcc2 internal prototype to avoid an error. */
36158#ifdef __cplusplus
36159extern "C"
36160#endif
36161/* We use char because int might match the return type of a gcc2
36162 builtin and then its argument prototype would still apply. */
36163char esd_close ();
36164int
36165main ()
36166{
36167esd_close ();
36168 ;
36169 return 0;
36170}
36171_ACEOF
36172rm -f conftest.$ac_objext conftest$ac_exeext
36173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36174 (eval $ac_link) 2>conftest.er1
a848cd7e 36175 ac_status=$?
ac1cb8d3
VS
36176 grep -v '^ *+' conftest.er1 >conftest.err
36177 rm -f conftest.er1
36178 cat conftest.err >&5
a848cd7e
SC
36179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36180 (exit $ac_status); } &&
5ff751d6 36181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36183 (eval $ac_try) 2>&5
36184 ac_status=$?
36185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36186 (exit $ac_status); }; } &&
36187 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36189 (eval $ac_try) 2>&5
36190 ac_status=$?
36191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36192 (exit $ac_status); }; }; then
36193 ac_cv_lib_esd_esd_close=yes
36194else
36195 echo "$as_me: failed program was:" >&5
36196sed 's/^/| /' conftest.$ac_ext >&5
36197
36198ac_cv_lib_esd_esd_close=no
36199fi
ac1cb8d3
VS
36200rm -f conftest.err conftest.$ac_objext \
36201 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36202LIBS=$ac_check_lib_save_LIBS
36203fi
36204echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
36205echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
36206if test $ac_cv_lib_esd_esd_close = yes; then
36207
36208
36209for ac_header in esd.h
36210do
36211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36212if eval "test \"\${$as_ac_Header+set}\" = set"; then
36213 echo "$as_me:$LINENO: checking for $ac_header" >&5
36214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36215if eval "test \"\${$as_ac_Header+set}\" = set"; then
36216 echo $ECHO_N "(cached) $ECHO_C" >&6
36217fi
36218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36220else
36221 # Is the header compilable?
36222echo "$as_me:$LINENO: checking $ac_header usability" >&5
36223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36224cat >conftest.$ac_ext <<_ACEOF
36225/* confdefs.h. */
36226_ACEOF
36227cat confdefs.h >>conftest.$ac_ext
36228cat >>conftest.$ac_ext <<_ACEOF
36229/* end confdefs.h. */
36230$ac_includes_default
36231#include <$ac_header>
36232_ACEOF
36233rm -f conftest.$ac_objext
36234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36235 (eval $ac_compile) 2>conftest.er1
a848cd7e 36236 ac_status=$?
ac1cb8d3
VS
36237 grep -v '^ *+' conftest.er1 >conftest.err
36238 rm -f conftest.er1
36239 cat conftest.err >&5
a848cd7e
SC
36240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36241 (exit $ac_status); } &&
5ff751d6 36242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36244 (eval $ac_try) 2>&5
36245 ac_status=$?
36246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36247 (exit $ac_status); }; } &&
36248 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36250 (eval $ac_try) 2>&5
36251 ac_status=$?
36252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36253 (exit $ac_status); }; }; then
36254 ac_header_compiler=yes
36255else
36256 echo "$as_me: failed program was:" >&5
36257sed 's/^/| /' conftest.$ac_ext >&5
36258
36259ac_header_compiler=no
36260fi
ac1cb8d3 36261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36262echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36263echo "${ECHO_T}$ac_header_compiler" >&6
36264
36265# Is the header present?
36266echo "$as_me:$LINENO: checking $ac_header presence" >&5
36267echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36268cat >conftest.$ac_ext <<_ACEOF
36269/* confdefs.h. */
36270_ACEOF
36271cat confdefs.h >>conftest.$ac_ext
36272cat >>conftest.$ac_ext <<_ACEOF
36273/* end confdefs.h. */
36274#include <$ac_header>
36275_ACEOF
36276if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36277 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36278 ac_status=$?
36279 grep -v '^ *+' conftest.er1 >conftest.err
36280 rm -f conftest.er1
36281 cat conftest.err >&5
36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283 (exit $ac_status); } >/dev/null; then
36284 if test -s conftest.err; then
36285 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36286 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36287 else
36288 ac_cpp_err=
36289 fi
36290else
36291 ac_cpp_err=yes
36292fi
36293if test -z "$ac_cpp_err"; then
36294 ac_header_preproc=yes
36295else
36296 echo "$as_me: failed program was:" >&5
36297sed 's/^/| /' conftest.$ac_ext >&5
36298
36299 ac_header_preproc=no
36300fi
36301rm -f conftest.err conftest.$ac_ext
36302echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36303echo "${ECHO_T}$ac_header_preproc" >&6
36304
36305# So? What about this header?
ac1cb8d3
VS
36306case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36307 yes:no: )
a848cd7e
SC
36308 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36309echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36311echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36312 ac_header_preproc=yes
a848cd7e 36313 ;;
ac1cb8d3 36314 no:yes:* )
a848cd7e
SC
36315 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36316echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36317 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36318echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36319 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36320echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36321 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36322echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36325 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36326echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36327 (
36328 cat <<\_ASBOX
ac1cb8d3
VS
36329## ----------------------------------------- ##
36330## Report this to wx-dev@lists.wxwidgets.org ##
36331## ----------------------------------------- ##
a848cd7e
SC
36332_ASBOX
36333 ) |
36334 sed "s/^/$as_me: WARNING: /" >&2
36335 ;;
36336esac
36337echo "$as_me:$LINENO: checking for $ac_header" >&5
36338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36339if eval "test \"\${$as_ac_Header+set}\" = set"; then
36340 echo $ECHO_N "(cached) $ECHO_C" >&6
36341else
ac1cb8d3 36342 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36343fi
36344echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36345echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36346
36347fi
36348if test `eval echo '${'$as_ac_Header'}'` = yes; then
36349 cat >>confdefs.h <<_ACEOF
36350#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36351_ACEOF
36352
36353 EXTRALIBS_ESD="-lesd"
36354
36355fi
36356
36357done
36358
36359
36360fi
36361
36362
36363
36364echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
36365echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
36366cat >conftest.$ac_ext <<_ACEOF
36367/* confdefs.h. */
36368_ACEOF
36369cat confdefs.h >>conftest.$ac_ext
36370cat >>conftest.$ac_ext <<_ACEOF
36371/* end confdefs.h. */
36372#ifdef __linux__
36373 #include <linux/cdrom.h>
36374 #else
36375 /* For Solaris */
36376 #include <sys/cdio.h>
36377 #endif
36378
36379int
36380main ()
36381{
36382struct cdrom_tocentry entry, old_entry;
36383 ;
36384 return 0;
36385}
36386_ACEOF
36387rm -f conftest.$ac_objext
36388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36389 (eval $ac_compile) 2>conftest.er1
a848cd7e 36390 ac_status=$?
ac1cb8d3
VS
36391 grep -v '^ *+' conftest.er1 >conftest.err
36392 rm -f conftest.er1
36393 cat conftest.err >&5
a848cd7e
SC
36394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36395 (exit $ac_status); } &&
5ff751d6 36396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36398 (eval $ac_try) 2>&5
36399 ac_status=$?
36400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36401 (exit $ac_status); }; } &&
36402 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36404 (eval $ac_try) 2>&5
36405 ac_status=$?
36406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36407 (exit $ac_status); }; }; then
36408 echo "$as_me:$LINENO: result: yes" >&5
36409echo "${ECHO_T}yes" >&6
36410 cat >>confdefs.h <<\_ACEOF
36411#define HAVE_KNOWN_CDROM_INTERFACE 1
36412_ACEOF
36413
36414else
36415 echo "$as_me: failed program was:" >&5
36416sed 's/^/| /' conftest.$ac_ext >&5
36417
36418echo "$as_me:$LINENO: result: no" >&5
36419echo "${ECHO_T}no" >&6
36420fi
ac1cb8d3 36421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36422
36423
36424cat >confcache <<\_ACEOF
36425# This file is a shell script that caches the results of configure
36426# tests run on this system so they can be shared between configure
36427# scripts and configure runs, see configure's option --config-cache.
36428# It is not useful on other systems. If it contains results you don't
36429# want to keep, you may remove or edit it.
36430#
36431# config.status only pays attention to the cache file if you give it
36432# the --recheck option to rerun configure.
36433#
36434# `ac_cv_env_foo' variables (set or unset) will be overridden when
36435# loading this file, other *unset* `ac_cv_foo' will be assigned the
36436# following values.
36437
36438_ACEOF
36439
36440# The following way of writing the cache mishandles newlines in values,
36441# but we know of no workaround that is simple, portable, and efficient.
36442# So, don't put newlines in cache variables' values.
36443# Ultrix sh set writes to stderr and can't be redirected directly,
36444# and sets the high bit in the cache file unless we assign to the vars.
36445{
36446 (set) 2>&1 |
36447 case `(ac_space=' '; set | grep ac_space) 2>&1` in
36448 *ac_space=\ *)
36449 # `set' does not quote correctly, so add quotes (double-quote
36450 # substitution turns \\\\ into \\, and sed turns \\ into \).
36451 sed -n \
ac1cb8d3
VS
36452 "s/'/'\\\\''/g;
36453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
36454 ;;
36455 *)
36456 # `set' quotes correctly as required by POSIX, so do not add quotes.
36457 sed -n \
ac1cb8d3 36458 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
36459 ;;
36460 esac;
36461} |
36462 sed '
36463 t clear
36464 : clear
36465 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36466 t end
36467 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36468 : end' >>confcache
36469if diff $cache_file confcache >/dev/null 2>&1; then :; else
36470 if test -w $cache_file; then
36471 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36472 cat confcache >$cache_file
36473 else
36474 echo "not updating unwritable cache $cache_file"
36475 fi
36476fi
36477rm -f confcache
36478
36479
a848cd7e
SC
36480if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
36481
36482
36483 THREADS_LINK=
36484 THREADS_CFLAGS=
36485
36486 if test "$wxUSE_THREADS" = "yes" ; then
36487 if test "$USE_BEOS" = 1; then
36488 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
36489echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
36490 wxUSE_THREADS="no"
36491 fi
36492 fi
36493
36494 if test "$wxUSE_THREADS" = "yes" ; then
36495
36496
36497 THREAD_OPTS="-pthread"
36498 case "${host}" in
36499 *-*-solaris2* | *-*-sunos4* )
36500 if test "x$GCC" = "xyes"; then
36501 THREAD_OPTS="-pthreads $THREAD_OPTS"
36502 else
36503 THREAD_OPTS="-mt $THREAD_OPTS"
36504 fi
36505 ;;
36506 *-*-freebsd*)
36507 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
36508 ;;
36509 *-*-darwin* | *-*-cygwin* )
36510 THREAD_OPTS=""
36511 ;;
36512 *-*-aix*)
36513 THREAD_OPTS="pthreads"
36514 ;;
36515 *-hp-hpux* )
00421666
MW
36516 if test "x$GCC" = "xyes"; then
36517 $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
36518 THREAD_OPTS=""
36519 else
0093c2fc 36520 THREAD_OPTS="-mt"
a848cd7e
SC
36521 fi
36522 ;;
36523
36524 *-*-irix* )
36525 if test "x$GCC" = "xyes"; then
36526 THREAD_OPTS=""
36527 fi
36528 ;;
36529
36530 *-*-*UnixWare*)
36531 if test "x$GCC" != "xyes"; then
36532 THREAD_OPTS="-Ethread"
36533 fi
36534 ;;
36535 esac
36536
36537 THREAD_OPTS="$THREAD_OPTS pthread none"
36538
36539 THREADS_OK=no
36540 for flag in $THREAD_OPTS; do
36541 case $flag in
36542 none)
36543 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
36544echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
36545 ;;
36546
36547 -*)
36548 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
36549echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
36550 THREADS_CFLAGS="$flag"
36551 ;;
36552
36553 *)
36554 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
36555echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
36556 THREADS_LINK="-l$flag"
36557 ;;
36558 esac
36559
36560 save_LIBS="$LIBS"
36561 save_CFLAGS="$CFLAGS"
36562 LIBS="$THREADS_LINK $LIBS"
36563 CFLAGS="$THREADS_CFLAGS $CFLAGS"
36564
36565 cat >conftest.$ac_ext <<_ACEOF
36566/* confdefs.h. */
36567_ACEOF
36568cat confdefs.h >>conftest.$ac_ext
36569cat >>conftest.$ac_ext <<_ACEOF
36570/* end confdefs.h. */
36571#include <pthread.h>
36572int
36573main ()
36574{
36575pthread_create(0,0,0,0);
36576 ;
36577 return 0;
36578}
36579_ACEOF
36580rm -f conftest.$ac_objext conftest$ac_exeext
36581if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36582 (eval $ac_link) 2>conftest.er1
a848cd7e 36583 ac_status=$?
ac1cb8d3
VS
36584 grep -v '^ *+' conftest.er1 >conftest.err
36585 rm -f conftest.er1
36586 cat conftest.err >&5
a848cd7e
SC
36587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36588 (exit $ac_status); } &&
5ff751d6 36589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36591 (eval $ac_try) 2>&5
36592 ac_status=$?
36593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36594 (exit $ac_status); }; } &&
36595 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36597 (eval $ac_try) 2>&5
36598 ac_status=$?
36599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36600 (exit $ac_status); }; }; then
36601 THREADS_OK=yes
36602else
36603 echo "$as_me: failed program was:" >&5
36604sed 's/^/| /' conftest.$ac_ext >&5
36605
36606fi
ac1cb8d3
VS
36607rm -f conftest.err conftest.$ac_objext \
36608 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36609
36610 LIBS="$save_LIBS"
36611 CFLAGS="$save_CFLAGS"
36612
36613 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
36614echo "${ECHO_T}$THREADS_OK" >&6
36615 if test "x$THREADS_OK" = "xyes"; then
36616 break;
36617 fi
36618
36619 THREADS_LINK=""
36620 THREADS_CFLAGS=""
36621 done
36622
36623 if test "x$THREADS_OK" != "xyes"; then
36624 wxUSE_THREADS=no
36625 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
36626echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
36627 else
36628 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
36629 LIBS="$THREADS_LINK $LIBS"
36630
36631 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
36632echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
36633 flag=no
36634 case "${host}" in
36635 *-aix*)
36636 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
36637 flag="-D_THREAD_SAFE"
36638 ;;
36639 *-freebsd*)
36640 flag="-D_THREAD_SAFE"
36641 ;;
36642 *-hp-hpux* )
36643 flag="-D_REENTRANT"
36644 if test "x$GCC" != "xyes"; then
36645 flag="$flag -D_RWSTD_MULTI_THREAD"
36646 fi
36647 ;;
36648 *solaris* | alpha*-osf*)
36649 flag="-D_REENTRANT"
36650 ;;
36651 esac
36652 echo "$as_me:$LINENO: result: ${flag}" >&5
36653echo "${ECHO_T}${flag}" >&6
36654 if test "x$flag" != xno; then
36655 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
36656 fi
36657
5ff751d6 36658 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
a848cd7e
SC
36659 fi
36660 fi
36661
36662 if test "$wxUSE_THREADS" = "yes" ; then
36663
36664for ac_func in thr_setconcurrency
36665do
36666as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36667echo "$as_me:$LINENO: checking for $ac_func" >&5
36668echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36669if eval "test \"\${$as_ac_var+set}\" = set"; then
36670 echo $ECHO_N "(cached) $ECHO_C" >&6
36671else
36672 cat >conftest.$ac_ext <<_ACEOF
36673/* confdefs.h. */
36674_ACEOF
36675cat confdefs.h >>conftest.$ac_ext
36676cat >>conftest.$ac_ext <<_ACEOF
36677/* end confdefs.h. */
ac1cb8d3
VS
36678/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36680#define $ac_func innocuous_$ac_func
36681
a848cd7e
SC
36682/* System header to define __stub macros and hopefully few prototypes,
36683 which can conflict with char $ac_func (); below.
36684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36685 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 36686
a848cd7e
SC
36687#ifdef __STDC__
36688# include <limits.h>
36689#else
36690# include <assert.h>
36691#endif
ac1cb8d3
VS
36692
36693#undef $ac_func
36694
a848cd7e
SC
36695/* Override any gcc2 internal prototype to avoid an error. */
36696#ifdef __cplusplus
36697extern "C"
36698{
36699#endif
36700/* We use char because int might match the return type of a gcc2
36701 builtin and then its argument prototype would still apply. */
36702char $ac_func ();
36703/* The GNU C library defines this for functions which it implements
36704 to always fail with ENOSYS. Some functions are actually named
36705 something starting with __ and the normal name is an alias. */
36706#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36707choke me
36708#else
36709char (*f) () = $ac_func;
36710#endif
36711#ifdef __cplusplus
36712}
36713#endif
36714
36715int
36716main ()
36717{
36718return f != $ac_func;
36719 ;
36720 return 0;
36721}
36722_ACEOF
36723rm -f conftest.$ac_objext conftest$ac_exeext
36724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 36725 (eval $ac_link) 2>conftest.er1
a848cd7e 36726 ac_status=$?
ac1cb8d3
VS
36727 grep -v '^ *+' conftest.er1 >conftest.err
36728 rm -f conftest.er1
36729 cat conftest.err >&5
a848cd7e
SC
36730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36731 (exit $ac_status); } &&
5ff751d6 36732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36734 (eval $ac_try) 2>&5
36735 ac_status=$?
36736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36737 (exit $ac_status); }; } &&
36738 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
36739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36740 (eval $ac_try) 2>&5
36741 ac_status=$?
36742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36743 (exit $ac_status); }; }; then
36744 eval "$as_ac_var=yes"
36745else
36746 echo "$as_me: failed program was:" >&5
36747sed 's/^/| /' conftest.$ac_ext >&5
36748
36749eval "$as_ac_var=no"
36750fi
ac1cb8d3
VS
36751rm -f conftest.err conftest.$ac_objext \
36752 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
36753fi
36754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36755echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36756if test `eval echo '${'$as_ac_var'}'` = yes; then
36757 cat >>confdefs.h <<_ACEOF
36758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36759_ACEOF
36760
36761fi
36762done
36763
36764
6ebeb4c7
VZ
36765 echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
36766echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6
36767if test "${wx_cv_func_pthread_cleanup+set}" = set; then
36768 echo $ECHO_N "(cached) $ECHO_C" >&6
36769else
36770
36771 cat >conftest.$ac_ext <<_ACEOF
36772/* confdefs.h. */
36773_ACEOF
36774cat confdefs.h >>conftest.$ac_ext
36775cat >>conftest.$ac_ext <<_ACEOF
36776/* end confdefs.h. */
36777#include <pthread.h>
36778 void ThreadCleanupFunc(void *p);
36779
36780int
36781main ()
36782{
36783
36784 void *p;
36785 pthread_cleanup_push(ThreadCleanupFunc, p);
36786 pthread_cleanup_pop(0);
36787
36788 ;
36789 return 0;
36790}
36791_ACEOF
36792rm -f conftest.$ac_objext
36793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36794 (eval $ac_compile) 2>conftest.er1
36795 ac_status=$?
36796 grep -v '^ *+' conftest.er1 >conftest.err
36797 rm -f conftest.er1
36798 cat conftest.err >&5
36799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36800 (exit $ac_status); } &&
5ff751d6 36801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6ebeb4c7
VZ
36802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36803 (eval $ac_try) 2>&5
36804 ac_status=$?
36805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36806 (exit $ac_status); }; } &&
36807 { ac_try='test -s conftest.$ac_objext'
36808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36809 (eval $ac_try) 2>&5
36810 ac_status=$?
36811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812 (exit $ac_status); }; }; then
36813
36814 wx_cv_func_pthread_cleanup=yes
36815
36816else
36817 echo "$as_me: failed program was:" >&5
36818sed 's/^/| /' conftest.$ac_ext >&5
36819
36820
36821 wx_cv_func_pthread_cleanup=no
36822
36823
36824fi
36825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36826
36827fi
36828echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
36829echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6
36830 if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
36831 cat >>confdefs.h <<\_ACEOF
36832#define wxHAVE_PTHREAD_CLEANUP 1
36833_ACEOF
36834
36835 fi
36836
a848cd7e
SC
36837
36838for ac_header in sched.h
36839do
36840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36841if eval "test \"\${$as_ac_Header+set}\" = set"; then
36842 echo "$as_me:$LINENO: checking for $ac_header" >&5
36843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36844if eval "test \"\${$as_ac_Header+set}\" = set"; then
36845 echo $ECHO_N "(cached) $ECHO_C" >&6
36846fi
36847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36848echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36849else
36850 # Is the header compilable?
36851echo "$as_me:$LINENO: checking $ac_header usability" >&5
36852echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36853cat >conftest.$ac_ext <<_ACEOF
36854/* confdefs.h. */
36855_ACEOF
36856cat confdefs.h >>conftest.$ac_ext
36857cat >>conftest.$ac_ext <<_ACEOF
36858/* end confdefs.h. */
36859$ac_includes_default
36860#include <$ac_header>
36861_ACEOF
36862rm -f conftest.$ac_objext
36863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 36864 (eval $ac_compile) 2>conftest.er1
a848cd7e 36865 ac_status=$?
ac1cb8d3
VS
36866 grep -v '^ *+' conftest.er1 >conftest.err
36867 rm -f conftest.er1
36868 cat conftest.err >&5
a848cd7e
SC
36869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36870 (exit $ac_status); } &&
5ff751d6 36871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
36872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36873 (eval $ac_try) 2>&5
36874 ac_status=$?
36875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36876 (exit $ac_status); }; } &&
36877 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
36878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36879 (eval $ac_try) 2>&5
36880 ac_status=$?
36881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36882 (exit $ac_status); }; }; then
36883 ac_header_compiler=yes
36884else
36885 echo "$as_me: failed program was:" >&5
36886sed 's/^/| /' conftest.$ac_ext >&5
36887
36888ac_header_compiler=no
36889fi
ac1cb8d3 36890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
36891echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36892echo "${ECHO_T}$ac_header_compiler" >&6
36893
36894# Is the header present?
36895echo "$as_me:$LINENO: checking $ac_header presence" >&5
36896echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36897cat >conftest.$ac_ext <<_ACEOF
36898/* confdefs.h. */
36899_ACEOF
36900cat confdefs.h >>conftest.$ac_ext
36901cat >>conftest.$ac_ext <<_ACEOF
36902/* end confdefs.h. */
36903#include <$ac_header>
36904_ACEOF
36905if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36907 ac_status=$?
36908 grep -v '^ *+' conftest.er1 >conftest.err
36909 rm -f conftest.er1
36910 cat conftest.err >&5
36911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36912 (exit $ac_status); } >/dev/null; then
36913 if test -s conftest.err; then
36914 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 36915 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
36916 else
36917 ac_cpp_err=
36918 fi
36919else
36920 ac_cpp_err=yes
36921fi
36922if test -z "$ac_cpp_err"; then
36923 ac_header_preproc=yes
36924else
36925 echo "$as_me: failed program was:" >&5
36926sed 's/^/| /' conftest.$ac_ext >&5
36927
36928 ac_header_preproc=no
36929fi
36930rm -f conftest.err conftest.$ac_ext
36931echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36932echo "${ECHO_T}$ac_header_preproc" >&6
36933
36934# So? What about this header?
ac1cb8d3
VS
36935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36936 yes:no: )
a848cd7e
SC
36937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36938echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
36939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36940echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36941 ac_header_preproc=yes
a848cd7e 36942 ;;
ac1cb8d3 36943 no:yes:* )
a848cd7e
SC
36944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36945echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
36946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36947echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36949echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36951echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
36952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36953echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
36954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36955echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
36956 (
36957 cat <<\_ASBOX
ac1cb8d3
VS
36958## ----------------------------------------- ##
36959## Report this to wx-dev@lists.wxwidgets.org ##
36960## ----------------------------------------- ##
a848cd7e
SC
36961_ASBOX
36962 ) |
36963 sed "s/^/$as_me: WARNING: /" >&2
36964 ;;
36965esac
36966echo "$as_me:$LINENO: checking for $ac_header" >&5
36967echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36968if eval "test \"\${$as_ac_Header+set}\" = set"; then
36969 echo $ECHO_N "(cached) $ECHO_C" >&6
36970else
ac1cb8d3 36971 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
36972fi
36973echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36974echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36975
36976fi
36977if test `eval echo '${'$as_ac_Header'}'` = yes; then
36978 cat >>confdefs.h <<_ACEOF
36979#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36980_ACEOF
36981
36982fi
36983
36984done
36985
36986 if test "$ac_cv_header_sched_h" = "yes"; then
36987 echo "$as_me:$LINENO: checking for sched_yield" >&5
36988echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
36989if test "${ac_cv_func_sched_yield+set}" = set; then
36990 echo $ECHO_N "(cached) $ECHO_C" >&6
36991else
36992 cat >conftest.$ac_ext <<_ACEOF
36993/* confdefs.h. */
36994_ACEOF
36995cat confdefs.h >>conftest.$ac_ext
36996cat >>conftest.$ac_ext <<_ACEOF
36997/* end confdefs.h. */
ac1cb8d3
VS
36998/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
36999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37000#define sched_yield innocuous_sched_yield
37001
a848cd7e
SC
37002/* System header to define __stub macros and hopefully few prototypes,
37003 which can conflict with char sched_yield (); below.
37004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37005 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37006
a848cd7e
SC
37007#ifdef __STDC__
37008# include <limits.h>
37009#else
37010# include <assert.h>
37011#endif
ac1cb8d3
VS
37012
37013#undef sched_yield
37014
a848cd7e
SC
37015/* Override any gcc2 internal prototype to avoid an error. */
37016#ifdef __cplusplus
37017extern "C"
37018{
37019#endif
37020/* We use char because int might match the return type of a gcc2
37021 builtin and then its argument prototype would still apply. */
37022char sched_yield ();
37023/* The GNU C library defines this for functions which it implements
37024 to always fail with ENOSYS. Some functions are actually named
37025 something starting with __ and the normal name is an alias. */
37026#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
37027choke me
37028#else
37029char (*f) () = sched_yield;
37030#endif
37031#ifdef __cplusplus
37032}
37033#endif
37034
37035int
37036main ()
37037{
37038return f != sched_yield;
37039 ;
37040 return 0;
37041}
37042_ACEOF
37043rm -f conftest.$ac_objext conftest$ac_exeext
37044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37045 (eval $ac_link) 2>conftest.er1
a848cd7e 37046 ac_status=$?
ac1cb8d3
VS
37047 grep -v '^ *+' conftest.er1 >conftest.err
37048 rm -f conftest.er1
37049 cat conftest.err >&5
a848cd7e
SC
37050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37051 (exit $ac_status); } &&
5ff751d6 37052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37054 (eval $ac_try) 2>&5
37055 ac_status=$?
37056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37057 (exit $ac_status); }; } &&
37058 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37060 (eval $ac_try) 2>&5
37061 ac_status=$?
37062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37063 (exit $ac_status); }; }; then
37064 ac_cv_func_sched_yield=yes
37065else
37066 echo "$as_me: failed program was:" >&5
37067sed 's/^/| /' conftest.$ac_ext >&5
37068
37069ac_cv_func_sched_yield=no
37070fi
ac1cb8d3
VS
37071rm -f conftest.err conftest.$ac_objext \
37072 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37073fi
37074echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
37075echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
37076if test $ac_cv_func_sched_yield = yes; then
37077 cat >>confdefs.h <<\_ACEOF
37078#define HAVE_SCHED_YIELD 1
37079_ACEOF
37080
37081else
37082
37083 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
37084echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
37085if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
37086 echo $ECHO_N "(cached) $ECHO_C" >&6
37087else
37088 ac_check_lib_save_LIBS=$LIBS
37089LIBS="-lposix4 $LIBS"
37090cat >conftest.$ac_ext <<_ACEOF
37091/* confdefs.h. */
37092_ACEOF
37093cat confdefs.h >>conftest.$ac_ext
37094cat >>conftest.$ac_ext <<_ACEOF
37095/* end confdefs.h. */
37096
37097/* Override any gcc2 internal prototype to avoid an error. */
37098#ifdef __cplusplus
37099extern "C"
37100#endif
37101/* We use char because int might match the return type of a gcc2
37102 builtin and then its argument prototype would still apply. */
37103char sched_yield ();
37104int
37105main ()
37106{
37107sched_yield ();
37108 ;
37109 return 0;
37110}
37111_ACEOF
37112rm -f conftest.$ac_objext conftest$ac_exeext
37113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37114 (eval $ac_link) 2>conftest.er1
a848cd7e 37115 ac_status=$?
ac1cb8d3
VS
37116 grep -v '^ *+' conftest.er1 >conftest.err
37117 rm -f conftest.er1
37118 cat conftest.err >&5
a848cd7e
SC
37119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37120 (exit $ac_status); } &&
5ff751d6 37121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37123 (eval $ac_try) 2>&5
37124 ac_status=$?
37125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37126 (exit $ac_status); }; } &&
37127 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37129 (eval $ac_try) 2>&5
37130 ac_status=$?
37131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132 (exit $ac_status); }; }; then
37133 ac_cv_lib_posix4_sched_yield=yes
37134else
37135 echo "$as_me: failed program was:" >&5
37136sed 's/^/| /' conftest.$ac_ext >&5
37137
37138ac_cv_lib_posix4_sched_yield=no
37139fi
ac1cb8d3
VS
37140rm -f conftest.err conftest.$ac_objext \
37141 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37142LIBS=$ac_check_lib_save_LIBS
37143fi
37144echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
37145echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
37146if test $ac_cv_lib_posix4_sched_yield = yes; then
37147 cat >>confdefs.h <<\_ACEOF
37148#define HAVE_SCHED_YIELD 1
37149_ACEOF
37150 POSIX4_LINK=" -lposix4"
37151else
37152 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
37153echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
37154
37155fi
37156
37157
37158
37159fi
37160
37161 fi
37162
37163 HAVE_PRIOR_FUNCS=0
37164 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
37165echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
37166if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
37167 echo $ECHO_N "(cached) $ECHO_C" >&6
37168else
37169 cat >conftest.$ac_ext <<_ACEOF
37170/* confdefs.h. */
37171_ACEOF
37172cat confdefs.h >>conftest.$ac_ext
37173cat >>conftest.$ac_ext <<_ACEOF
37174/* end confdefs.h. */
ac1cb8d3
VS
37175/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
37176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37177#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
37178
a848cd7e
SC
37179/* System header to define __stub macros and hopefully few prototypes,
37180 which can conflict with char pthread_attr_getschedpolicy (); below.
37181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37182 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37183
a848cd7e
SC
37184#ifdef __STDC__
37185# include <limits.h>
37186#else
37187# include <assert.h>
37188#endif
ac1cb8d3
VS
37189
37190#undef pthread_attr_getschedpolicy
37191
a848cd7e
SC
37192/* Override any gcc2 internal prototype to avoid an error. */
37193#ifdef __cplusplus
37194extern "C"
37195{
37196#endif
37197/* We use char because int might match the return type of a gcc2
37198 builtin and then its argument prototype would still apply. */
37199char pthread_attr_getschedpolicy ();
37200/* The GNU C library defines this for functions which it implements
37201 to always fail with ENOSYS. Some functions are actually named
37202 something starting with __ and the normal name is an alias. */
37203#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
37204choke me
37205#else
37206char (*f) () = pthread_attr_getschedpolicy;
37207#endif
37208#ifdef __cplusplus
37209}
37210#endif
37211
37212int
37213main ()
37214{
37215return f != pthread_attr_getschedpolicy;
37216 ;
37217 return 0;
37218}
37219_ACEOF
37220rm -f conftest.$ac_objext conftest$ac_exeext
37221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37222 (eval $ac_link) 2>conftest.er1
a848cd7e 37223 ac_status=$?
ac1cb8d3
VS
37224 grep -v '^ *+' conftest.er1 >conftest.err
37225 rm -f conftest.er1
37226 cat conftest.err >&5
a848cd7e
SC
37227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37228 (exit $ac_status); } &&
5ff751d6 37229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37231 (eval $ac_try) 2>&5
37232 ac_status=$?
37233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37234 (exit $ac_status); }; } &&
37235 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37237 (eval $ac_try) 2>&5
37238 ac_status=$?
37239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37240 (exit $ac_status); }; }; then
37241 ac_cv_func_pthread_attr_getschedpolicy=yes
37242else
37243 echo "$as_me: failed program was:" >&5
37244sed 's/^/| /' conftest.$ac_ext >&5
37245
37246ac_cv_func_pthread_attr_getschedpolicy=no
37247fi
ac1cb8d3
VS
37248rm -f conftest.err conftest.$ac_objext \
37249 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37250fi
37251echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
37252echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
37253if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
37254 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
37255echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
37256if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
37257 echo $ECHO_N "(cached) $ECHO_C" >&6
37258else
37259 cat >conftest.$ac_ext <<_ACEOF
37260/* confdefs.h. */
37261_ACEOF
37262cat confdefs.h >>conftest.$ac_ext
37263cat >>conftest.$ac_ext <<_ACEOF
37264/* end confdefs.h. */
ac1cb8d3
VS
37265/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
37266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37267#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
37268
a848cd7e
SC
37269/* System header to define __stub macros and hopefully few prototypes,
37270 which can conflict with char pthread_attr_setschedparam (); below.
37271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37272 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37273
a848cd7e
SC
37274#ifdef __STDC__
37275# include <limits.h>
37276#else
37277# include <assert.h>
37278#endif
ac1cb8d3
VS
37279
37280#undef pthread_attr_setschedparam
37281
a848cd7e
SC
37282/* Override any gcc2 internal prototype to avoid an error. */
37283#ifdef __cplusplus
37284extern "C"
37285{
37286#endif
37287/* We use char because int might match the return type of a gcc2
37288 builtin and then its argument prototype would still apply. */
37289char pthread_attr_setschedparam ();
37290/* The GNU C library defines this for functions which it implements
37291 to always fail with ENOSYS. Some functions are actually named
37292 something starting with __ and the normal name is an alias. */
37293#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
37294choke me
37295#else
37296char (*f) () = pthread_attr_setschedparam;
37297#endif
37298#ifdef __cplusplus
37299}
37300#endif
37301
37302int
37303main ()
37304{
37305return f != pthread_attr_setschedparam;
37306 ;
37307 return 0;
37308}
37309_ACEOF
37310rm -f conftest.$ac_objext conftest$ac_exeext
37311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37312 (eval $ac_link) 2>conftest.er1
a848cd7e 37313 ac_status=$?
ac1cb8d3
VS
37314 grep -v '^ *+' conftest.er1 >conftest.err
37315 rm -f conftest.er1
37316 cat conftest.err >&5
a848cd7e
SC
37317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37318 (exit $ac_status); } &&
5ff751d6 37319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37321 (eval $ac_try) 2>&5
37322 ac_status=$?
37323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37324 (exit $ac_status); }; } &&
37325 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37327 (eval $ac_try) 2>&5
37328 ac_status=$?
37329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37330 (exit $ac_status); }; }; then
37331 ac_cv_func_pthread_attr_setschedparam=yes
37332else
37333 echo "$as_me: failed program was:" >&5
37334sed 's/^/| /' conftest.$ac_ext >&5
37335
37336ac_cv_func_pthread_attr_setschedparam=no
37337fi
ac1cb8d3
VS
37338rm -f conftest.err conftest.$ac_objext \
37339 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37340fi
37341echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
37342echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
37343if test $ac_cv_func_pthread_attr_setschedparam = yes; then
37344 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
37345echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
37346if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
37347 echo $ECHO_N "(cached) $ECHO_C" >&6
37348else
37349 cat >conftest.$ac_ext <<_ACEOF
37350/* confdefs.h. */
37351_ACEOF
37352cat confdefs.h >>conftest.$ac_ext
37353cat >>conftest.$ac_ext <<_ACEOF
37354/* end confdefs.h. */
ac1cb8d3
VS
37355/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
37356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37357#define sched_get_priority_max innocuous_sched_get_priority_max
37358
a848cd7e
SC
37359/* System header to define __stub macros and hopefully few prototypes,
37360 which can conflict with char sched_get_priority_max (); below.
37361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37362 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37363
a848cd7e
SC
37364#ifdef __STDC__
37365# include <limits.h>
37366#else
37367# include <assert.h>
37368#endif
ac1cb8d3
VS
37369
37370#undef sched_get_priority_max
37371
a848cd7e
SC
37372/* Override any gcc2 internal prototype to avoid an error. */
37373#ifdef __cplusplus
37374extern "C"
37375{
37376#endif
37377/* We use char because int might match the return type of a gcc2
37378 builtin and then its argument prototype would still apply. */
37379char sched_get_priority_max ();
37380/* The GNU C library defines this for functions which it implements
37381 to always fail with ENOSYS. Some functions are actually named
37382 something starting with __ and the normal name is an alias. */
37383#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
37384choke me
37385#else
37386char (*f) () = sched_get_priority_max;
37387#endif
37388#ifdef __cplusplus
37389}
37390#endif
37391
37392int
37393main ()
37394{
37395return f != sched_get_priority_max;
37396 ;
37397 return 0;
37398}
37399_ACEOF
37400rm -f conftest.$ac_objext conftest$ac_exeext
37401if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37402 (eval $ac_link) 2>conftest.er1
a848cd7e 37403 ac_status=$?
ac1cb8d3
VS
37404 grep -v '^ *+' conftest.er1 >conftest.err
37405 rm -f conftest.er1
37406 cat conftest.err >&5
a848cd7e
SC
37407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37408 (exit $ac_status); } &&
5ff751d6 37409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37411 (eval $ac_try) 2>&5
37412 ac_status=$?
37413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37414 (exit $ac_status); }; } &&
37415 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37417 (eval $ac_try) 2>&5
37418 ac_status=$?
37419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37420 (exit $ac_status); }; }; then
37421 ac_cv_func_sched_get_priority_max=yes
37422else
37423 echo "$as_me: failed program was:" >&5
37424sed 's/^/| /' conftest.$ac_ext >&5
37425
37426ac_cv_func_sched_get_priority_max=no
37427fi
ac1cb8d3
VS
37428rm -f conftest.err conftest.$ac_objext \
37429 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37430fi
37431echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
37432echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
37433if test $ac_cv_func_sched_get_priority_max = yes; then
37434 HAVE_PRIOR_FUNCS=1
37435else
37436 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
37437echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
37438if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
37439 echo $ECHO_N "(cached) $ECHO_C" >&6
37440else
37441 ac_check_lib_save_LIBS=$LIBS
37442LIBS="-lposix4 $LIBS"
37443cat >conftest.$ac_ext <<_ACEOF
37444/* confdefs.h. */
37445_ACEOF
37446cat confdefs.h >>conftest.$ac_ext
37447cat >>conftest.$ac_ext <<_ACEOF
37448/* end confdefs.h. */
37449
37450/* Override any gcc2 internal prototype to avoid an error. */
37451#ifdef __cplusplus
37452extern "C"
37453#endif
37454/* We use char because int might match the return type of a gcc2
37455 builtin and then its argument prototype would still apply. */
37456char sched_get_priority_max ();
37457int
37458main ()
37459{
37460sched_get_priority_max ();
37461 ;
37462 return 0;
37463}
37464_ACEOF
37465rm -f conftest.$ac_objext conftest$ac_exeext
37466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37467 (eval $ac_link) 2>conftest.er1
a848cd7e 37468 ac_status=$?
ac1cb8d3
VS
37469 grep -v '^ *+' conftest.er1 >conftest.err
37470 rm -f conftest.er1
37471 cat conftest.err >&5
a848cd7e
SC
37472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37473 (exit $ac_status); } &&
5ff751d6 37474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37476 (eval $ac_try) 2>&5
37477 ac_status=$?
37478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37479 (exit $ac_status); }; } &&
37480 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37482 (eval $ac_try) 2>&5
37483 ac_status=$?
37484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37485 (exit $ac_status); }; }; then
37486 ac_cv_lib_posix4_sched_get_priority_max=yes
37487else
37488 echo "$as_me: failed program was:" >&5
37489sed 's/^/| /' conftest.$ac_ext >&5
37490
37491ac_cv_lib_posix4_sched_get_priority_max=no
37492fi
ac1cb8d3
VS
37493rm -f conftest.err conftest.$ac_objext \
37494 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37495LIBS=$ac_check_lib_save_LIBS
37496fi
37497echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
37498echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
37499if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
37500
37501 HAVE_PRIOR_FUNCS=1
37502 POSIX4_LINK=" -lposix4"
37503
37504fi
37505
37506
37507fi
37508
37509
37510fi
37511
37512
37513fi
37514
37515
37516 if test "$HAVE_PRIOR_FUNCS" = 1; then
37517 cat >>confdefs.h <<\_ACEOF
37518#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
37519_ACEOF
37520
37521 else
37522 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
37523echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
37524 fi
37525
37526 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
37527echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
37528if test "${ac_cv_func_pthread_cancel+set}" = set; then
37529 echo $ECHO_N "(cached) $ECHO_C" >&6
37530else
37531 cat >conftest.$ac_ext <<_ACEOF
37532/* confdefs.h. */
37533_ACEOF
37534cat confdefs.h >>conftest.$ac_ext
37535cat >>conftest.$ac_ext <<_ACEOF
37536/* end confdefs.h. */
ac1cb8d3
VS
37537/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
37538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37539#define pthread_cancel innocuous_pthread_cancel
37540
a848cd7e
SC
37541/* System header to define __stub macros and hopefully few prototypes,
37542 which can conflict with char pthread_cancel (); below.
37543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37544 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 37545
a848cd7e
SC
37546#ifdef __STDC__
37547# include <limits.h>
37548#else
37549# include <assert.h>
37550#endif
ac1cb8d3
VS
37551
37552#undef pthread_cancel
37553
a848cd7e
SC
37554/* Override any gcc2 internal prototype to avoid an error. */
37555#ifdef __cplusplus
37556extern "C"
37557{
37558#endif
37559/* We use char because int might match the return type of a gcc2
37560 builtin and then its argument prototype would still apply. */
37561char pthread_cancel ();
37562/* The GNU C library defines this for functions which it implements
37563 to always fail with ENOSYS. Some functions are actually named
37564 something starting with __ and the normal name is an alias. */
37565#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
37566choke me
37567#else
37568char (*f) () = pthread_cancel;
37569#endif
37570#ifdef __cplusplus
37571}
37572#endif
37573
37574int
37575main ()
37576{
37577return f != pthread_cancel;
37578 ;
37579 return 0;
37580}
37581_ACEOF
37582rm -f conftest.$ac_objext conftest$ac_exeext
37583if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 37584 (eval $ac_link) 2>conftest.er1
a848cd7e 37585 ac_status=$?
ac1cb8d3
VS
37586 grep -v '^ *+' conftest.er1 >conftest.err
37587 rm -f conftest.er1
37588 cat conftest.err >&5
a848cd7e
SC
37589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37590 (exit $ac_status); } &&
5ff751d6 37591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37593 (eval $ac_try) 2>&5
37594 ac_status=$?
37595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37596 (exit $ac_status); }; } &&
37597 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
37598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37599 (eval $ac_try) 2>&5
37600 ac_status=$?
37601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37602 (exit $ac_status); }; }; then
37603 ac_cv_func_pthread_cancel=yes
37604else
37605 echo "$as_me: failed program was:" >&5
37606sed 's/^/| /' conftest.$ac_ext >&5
37607
37608ac_cv_func_pthread_cancel=no
37609fi
ac1cb8d3
VS
37610rm -f conftest.err conftest.$ac_objext \
37611 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
37612fi
37613echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
37614echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
37615if test $ac_cv_func_pthread_cancel = yes; then
37616 cat >>confdefs.h <<\_ACEOF
37617#define HAVE_PTHREAD_CANCEL 1
37618_ACEOF
37619
37620else
37621 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
37622echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
37623fi
37624
37625
abc736fd
MW
37626 echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
37627echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6
37628if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
37629 echo $ECHO_N "(cached) $ECHO_C" >&6
37630else
37631 cat >conftest.$ac_ext <<_ACEOF
37632/* confdefs.h. */
37633_ACEOF
37634cat confdefs.h >>conftest.$ac_ext
37635cat >>conftest.$ac_ext <<_ACEOF
37636/* end confdefs.h. */
37637/* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
37638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37639#define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
37640
37641/* System header to define __stub macros and hopefully few prototypes,
37642 which can conflict with char pthread_attr_setstacksize (); below.
37643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37644 <limits.h> exists even on freestanding compilers. */
37645
37646#ifdef __STDC__
37647# include <limits.h>
37648#else
37649# include <assert.h>
37650#endif
37651
37652#undef pthread_attr_setstacksize
37653
37654/* Override any gcc2 internal prototype to avoid an error. */
37655#ifdef __cplusplus
37656extern "C"
37657{
37658#endif
37659/* We use char because int might match the return type of a gcc2
37660 builtin and then its argument prototype would still apply. */
37661char pthread_attr_setstacksize ();
37662/* The GNU C library defines this for functions which it implements
37663 to always fail with ENOSYS. Some functions are actually named
37664 something starting with __ and the normal name is an alias. */
37665#if defined (__stub_pthread_attr_setstacksize) || defined (__stub___pthread_attr_setstacksize)
37666choke me
37667#else
37668char (*f) () = pthread_attr_setstacksize;
37669#endif
37670#ifdef __cplusplus
37671}
37672#endif
37673
37674int
37675main ()
37676{
37677return f != pthread_attr_setstacksize;
37678 ;
37679 return 0;
37680}
37681_ACEOF
37682rm -f conftest.$ac_objext conftest$ac_exeext
37683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37684 (eval $ac_link) 2>conftest.er1
37685 ac_status=$?
37686 grep -v '^ *+' conftest.er1 >conftest.err
37687 rm -f conftest.er1
37688 cat conftest.err >&5
37689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37690 (exit $ac_status); } &&
5ff751d6 37691 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
abc736fd
MW
37692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37693 (eval $ac_try) 2>&5
37694 ac_status=$?
37695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37696 (exit $ac_status); }; } &&
37697 { ac_try='test -s conftest$ac_exeext'
37698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37699 (eval $ac_try) 2>&5
37700 ac_status=$?
37701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37702 (exit $ac_status); }; }; then
37703 ac_cv_func_pthread_attr_setstacksize=yes
37704else
37705 echo "$as_me: failed program was:" >&5
37706sed 's/^/| /' conftest.$ac_ext >&5
37707
37708ac_cv_func_pthread_attr_setstacksize=no
37709fi
37710rm -f conftest.err conftest.$ac_objext \
37711 conftest$ac_exeext conftest.$ac_ext
37712fi
37713echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
37714echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6
37715if test $ac_cv_func_pthread_attr_setstacksize = yes; then
37716 cat >>confdefs.h <<\_ACEOF
37717#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
37718_ACEOF
37719
37720fi
37721
a848cd7e
SC
37722
37723
37724 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
37725echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
37726if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
37727 echo $ECHO_N "(cached) $ECHO_C" >&6
37728else
37729
37730 cat >conftest.$ac_ext <<_ACEOF
37731/* confdefs.h. */
37732_ACEOF
37733cat confdefs.h >>conftest.$ac_ext
37734cat >>conftest.$ac_ext <<_ACEOF
37735/* end confdefs.h. */
37736#include <pthread.h>
37737int
37738main ()
37739{
37740
37741 pthread_mutexattr_t attr;
37742 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37743
37744 ;
37745 return 0;
37746}
37747_ACEOF
37748rm -f conftest.$ac_objext
37749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37750 (eval $ac_compile) 2>conftest.er1
a848cd7e 37751 ac_status=$?
ac1cb8d3
VS
37752 grep -v '^ *+' conftest.er1 >conftest.err
37753 rm -f conftest.er1
37754 cat conftest.err >&5
a848cd7e
SC
37755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756 (exit $ac_status); } &&
5ff751d6 37757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37759 (eval $ac_try) 2>&5
37760 ac_status=$?
37761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37762 (exit $ac_status); }; } &&
37763 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37765 (eval $ac_try) 2>&5
37766 ac_status=$?
37767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37768 (exit $ac_status); }; }; then
123dca7d 37769 wx_cv_type_pthread_mutexattr_t=yes
a848cd7e
SC
37770else
37771 echo "$as_me: failed program was:" >&5
37772sed 's/^/| /' conftest.$ac_ext >&5
37773
123dca7d 37774wx_cv_type_pthread_mutexattr_t=no
a848cd7e
SC
37775
37776fi
ac1cb8d3 37777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37778
37779fi
37780echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
37781echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
37782
37783 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
37784 cat >>confdefs.h <<\_ACEOF
37785#define HAVE_PTHREAD_MUTEXATTR_T 1
37786_ACEOF
37787
123dca7d
VZ
37788
37789 echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
37790echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6
37791if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
37792 echo $ECHO_N "(cached) $ECHO_C" >&6
37793else
37794
37795 cat >conftest.$ac_ext <<_ACEOF
37796/* confdefs.h. */
37797_ACEOF
37798cat confdefs.h >>conftest.$ac_ext
37799cat >>conftest.$ac_ext <<_ACEOF
37800/* end confdefs.h. */
37801#include <pthread.h>
37802int
37803main ()
37804{
37805
37806 pthread_mutexattr_t attr;
37807 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
37808
37809 ;
37810 return 0;
37811}
37812_ACEOF
37813rm -f conftest.$ac_objext
37814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37815 (eval $ac_compile) 2>conftest.er1
37816 ac_status=$?
37817 grep -v '^ *+' conftest.er1 >conftest.err
37818 rm -f conftest.er1
37819 cat conftest.err >&5
37820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37821 (exit $ac_status); } &&
5ff751d6 37822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
123dca7d
VZ
37823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37824 (eval $ac_try) 2>&5
37825 ac_status=$?
37826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37827 (exit $ac_status); }; } &&
37828 { ac_try='test -s conftest.$ac_objext'
37829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37830 (eval $ac_try) 2>&5
37831 ac_status=$?
37832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37833 (exit $ac_status); }; }; then
37834 wx_cv_func_pthread_mutexattr_settype_decl=yes
37835else
37836 echo "$as_me: failed program was:" >&5
37837sed 's/^/| /' conftest.$ac_ext >&5
37838
37839wx_cv_func_pthread_mutexattr_settype_decl=no
37840
37841fi
37842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37843
37844fi
37845echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
37846echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6
37847 if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
37848 cat >>confdefs.h <<\_ACEOF
37849#define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
37850_ACEOF
37851
37852 fi
a848cd7e
SC
37853 else
37854 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
37855echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
37856if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
37857 echo $ECHO_N "(cached) $ECHO_C" >&6
37858else
37859
37860 cat >conftest.$ac_ext <<_ACEOF
37861/* confdefs.h. */
37862_ACEOF
37863cat confdefs.h >>conftest.$ac_ext
37864cat >>conftest.$ac_ext <<_ACEOF
37865/* end confdefs.h. */
37866#include <pthread.h>
37867int
37868main ()
37869{
37870
37871 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
37872
37873 ;
37874 return 0;
37875}
37876_ACEOF
37877rm -f conftest.$ac_objext
37878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37879 (eval $ac_compile) 2>conftest.er1
a848cd7e 37880 ac_status=$?
ac1cb8d3
VS
37881 grep -v '^ *+' conftest.er1 >conftest.err
37882 rm -f conftest.er1
37883 cat conftest.err >&5
a848cd7e
SC
37884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37885 (exit $ac_status); } &&
5ff751d6 37886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37888 (eval $ac_try) 2>&5
37889 ac_status=$?
37890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37891 (exit $ac_status); }; } &&
37892 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37894 (eval $ac_try) 2>&5
37895 ac_status=$?
37896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37897 (exit $ac_status); }; }; then
37898
37899 wx_cv_type_pthread_rec_mutex_init=yes
37900
37901else
37902 echo "$as_me: failed program was:" >&5
37903sed 's/^/| /' conftest.$ac_ext >&5
37904
37905
37906 wx_cv_type_pthread_rec_mutex_init=no
37907
37908
37909fi
ac1cb8d3 37910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37911
37912fi
37913echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
37914echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
37915 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
37916 cat >>confdefs.h <<\_ACEOF
37917#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
37918_ACEOF
37919
37920 else
37921 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
37922echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
37923 fi
37924 fi
37925 fi
37926
37927else
37928 if test "$wxUSE_THREADS" = "yes" ; then
37929 case "${host}" in
37930 *-*-mingw32* )
37931 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
37932echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
37933if test "${wx_cv_cflags_mthread+set}" = set; then
37934 echo $ECHO_N "(cached) $ECHO_C" >&6
37935else
37936
37937 CFLAGS_OLD="$CFLAGS"
37938 CFLAGS="$CFLAGS -mthreads"
37939 cat >conftest.$ac_ext <<_ACEOF
37940/* confdefs.h. */
37941_ACEOF
37942cat confdefs.h >>conftest.$ac_ext
37943cat >>conftest.$ac_ext <<_ACEOF
37944/* end confdefs.h. */
37945
37946int
37947main ()
37948{
37949
37950 ;
37951 return 0;
37952}
37953_ACEOF
37954rm -f conftest.$ac_objext
37955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 37956 (eval $ac_compile) 2>conftest.er1
a848cd7e 37957 ac_status=$?
ac1cb8d3
VS
37958 grep -v '^ *+' conftest.er1 >conftest.err
37959 rm -f conftest.er1
37960 cat conftest.err >&5
a848cd7e
SC
37961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37962 (exit $ac_status); } &&
5ff751d6 37963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
37964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37965 (eval $ac_try) 2>&5
37966 ac_status=$?
37967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37968 (exit $ac_status); }; } &&
37969 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
37970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37971 (eval $ac_try) 2>&5
37972 ac_status=$?
37973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37974 (exit $ac_status); }; }; then
37975 wx_cv_cflags_mthread=yes
37976else
37977 echo "$as_me: failed program was:" >&5
37978sed 's/^/| /' conftest.$ac_ext >&5
37979
37980wx_cv_cflags_mthread=no
37981
37982fi
ac1cb8d3 37983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
37984
37985
37986fi
37987echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
37988echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
37989
37990 if test "$wx_cv_cflags_mthread" = "yes"; then
5ff751d6 37991 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
a848cd7e
SC
37992 LDFLAGS="$LDFLAGS -mthreads"
37993 else
37994 CFLAGS="$CFLAGS_OLD"
37995 fi
37996 ;;
37997 *-pc-os2*emx )
5ff751d6
VZ
37998 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
37999 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
a848cd7e
SC
38000 LDFLAGS="$LDFLAGS -Zmt"
38001 ;;
38002 esac
38003 fi
38004fi
38005
38006if test "$wxUSE_THREADS" = "yes"; then
38007 cat >>confdefs.h <<\_ACEOF
38008#define wxUSE_THREADS 1
38009_ACEOF
38010
38011
38012 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
38013else
38014 if test "$ac_cv_func_strtok_r" = "yes"; then
38015 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
38016echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
38017 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
5ff751d6 38018 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
a848cd7e
SC
38019 echo "$as_me:$LINENO: result: yes" >&5
38020echo "${ECHO_T}yes" >&6
38021 else
38022 echo "$as_me:$LINENO: result: no" >&5
38023echo "${ECHO_T}no" >&6
38024 fi
38025 fi
38026fi
38027
38028if test "$WXGTK20" = 1 ; then
38029 cat >>confdefs.h <<_ACEOF
38030#define __WXGTK20__ $WXGTK20
38031_ACEOF
38032
38033 WXGTK12=1
38034fi
38035
38036if test "$WXGTK12" = 1 ; then
38037 cat >>confdefs.h <<_ACEOF
38038#define __WXGTK12__ $WXGTK12
38039_ACEOF
38040
38041fi
38042
38043if test "$WXGTK127" = 1 ; then
38044 cat >>confdefs.h <<_ACEOF
38045#define __WXGTK127__ $WXGTK127
38046_ACEOF
38047
38048fi
38049
38050if test "$WXGPE" = 1 ; then
38051 cat >>confdefs.h <<_ACEOF
38052#define __WXGPE__ $WXGPE
38053_ACEOF
38054
38055fi
38056
5ff751d6 38057DEBUG_FLAG=
a848cd7e 38058if test "$wxUSE_DEBUG_INFO" = "yes" ; then
5ff751d6 38059 DEBUG_FLAG="-g"
a848cd7e
SC
38060 wxUSE_OPTIMISE=no
38061fi
38062
38063if test "$wxUSE_DEBUG_GDB" = "yes" ; then
38064 wxUSE_DEBUG_INFO=yes
18228ab4 38065 if test "$GCC" = yes; then
5ff751d6 38066 DEBUG_FLAG="-ggdb"
18228ab4 38067 fi
a848cd7e
SC
38068fi
38069
38070if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
38071 cat >>confdefs.h <<\_ACEOF
38072#define WXDEBUG 1
38073_ACEOF
38074
5ff751d6 38075 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
a848cd7e
SC
38076else
38077 if test "$wxUSE_GTK" = 1 ; then
5ff751d6 38078 CPPFLAGS="$CPPFLAGS -DGTK_NO_CHECK_CASTS"
a848cd7e
SC
38079 fi
38080fi
38081
38082if test "$wxUSE_MEM_TRACING" = "yes" ; then
38083 cat >>confdefs.h <<\_ACEOF
38084#define wxUSE_MEMORY_TRACING 1
38085_ACEOF
38086
38087 cat >>confdefs.h <<\_ACEOF
38088#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
38089_ACEOF
38090
38091 cat >>confdefs.h <<\_ACEOF
38092#define wxUSE_DEBUG_NEW_ALWAYS 1
38093_ACEOF
38094
38095 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
38096fi
38097
38098if test "$wxUSE_DMALLOC" = "yes" ; then
df1b269d 38099 DMALLOC_LIBS="-ldmallocthcxx"
a848cd7e
SC
38100fi
38101
5ff751d6 38102PROFILE_FLAG=
a848cd7e 38103if test "$wxUSE_PROFILE" = "yes" ; then
5ff751d6 38104 PROFILE_FLAG=" -pg"
a848cd7e
SC
38105fi
38106
a848cd7e
SC
38107if test "$GCC" = "yes" ; then
38108 if test "$wxUSE_NO_RTTI" = "yes" ; then
5ff751d6 38109 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
a848cd7e
SC
38110 fi
38111 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
5ff751d6 38112 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
a848cd7e
SC
38113 fi
38114 if test "$wxUSE_PERMISSIVE" = "yes" ; then
5ff751d6 38115 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
a848cd7e
SC
38116 fi
38117
38118 case "${host}" in
38119 powerpc*-*-aix* )
5ff751d6 38120 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
a848cd7e
SC
38121 ;;
38122 *-hppa* )
5ff751d6 38123 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
a848cd7e
SC
38124 ;;
38125 esac
38126fi
38127
5ff751d6 38128OPTIMISE_FLAG=
a848cd7e
SC
38129if test "$wxUSE_OPTIMISE" = "no" ; then
38130 if test "$GCC" = yes ; then
5ff751d6 38131 OPTIMISE_FLAG="-O0"
a848cd7e
SC
38132 fi
38133else
38134 if test "$GCC" = yes ; then
5ff751d6 38135 OPTIMISE_FLAG="-O2"
a848cd7e 38136 else
5ff751d6 38137 OPTIMISE_FLAG="-O"
a848cd7e
SC
38138 fi
38139fi
38140
38141
dee1a63f 38142if test "x$WXWIN_COMPATIBILITY_2_4" = "xyes"; then
a848cd7e 38143 cat >>confdefs.h <<\_ACEOF
dee1a63f 38144#define WXWIN_COMPATIBILITY_2_4 1
a848cd7e
SC
38145_ACEOF
38146
38147
dee1a63f 38148 WXWIN_COMPATIBILITY_2_6="yes"
a848cd7e
SC
38149fi
38150
dee1a63f 38151if test "x$WXWIN_COMPATIBILITY_2_6" != "xno"; then
a848cd7e 38152 cat >>confdefs.h <<\_ACEOF
dee1a63f 38153#define WXWIN_COMPATIBILITY_2_6 1
a848cd7e
SC
38154_ACEOF
38155
38156fi
38157
38158
38159if test "$wxUSE_GUI" = "yes"; then
881bfcd6 38160 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
38161#define wxUSE_GUI 1
38162_ACEOF
38163
38164
370fd4c2 38165 fi
a848cd7e
SC
38166
38167
38168if test "$wxUSE_UNIX" = "yes"; then
38169 cat >>confdefs.h <<\_ACEOF
38170#define wxUSE_UNIX 1
38171_ACEOF
38172
38173fi
38174
38175
38176if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
38177
38178 HAVE_DL_FUNCS=0
38179 HAVE_SHL_FUNCS=0
38180 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38181 if test "$USE_DARWIN" = 1; then
38182 HAVE_DL_FUNCS=1
47a7e797
MW
38183 elif test "$USE_DOS" = 1; then
38184 HAVE_DL_FUNCS=0
a848cd7e
SC
38185 else
38186
38187for ac_func in dlopen
38188do
38189as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38190echo "$as_me:$LINENO: checking for $ac_func" >&5
38191echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38192if eval "test \"\${$as_ac_var+set}\" = set"; then
38193 echo $ECHO_N "(cached) $ECHO_C" >&6
38194else
38195 cat >conftest.$ac_ext <<_ACEOF
38196/* confdefs.h. */
38197_ACEOF
38198cat confdefs.h >>conftest.$ac_ext
38199cat >>conftest.$ac_ext <<_ACEOF
38200/* end confdefs.h. */
ac1cb8d3
VS
38201/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38203#define $ac_func innocuous_$ac_func
38204
a848cd7e
SC
38205/* System header to define __stub macros and hopefully few prototypes,
38206 which can conflict with char $ac_func (); below.
38207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38208 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38209
a848cd7e
SC
38210#ifdef __STDC__
38211# include <limits.h>
38212#else
38213# include <assert.h>
38214#endif
ac1cb8d3
VS
38215
38216#undef $ac_func
38217
a848cd7e
SC
38218/* Override any gcc2 internal prototype to avoid an error. */
38219#ifdef __cplusplus
38220extern "C"
38221{
38222#endif
38223/* We use char because int might match the return type of a gcc2
38224 builtin and then its argument prototype would still apply. */
38225char $ac_func ();
38226/* The GNU C library defines this for functions which it implements
38227 to always fail with ENOSYS. Some functions are actually named
38228 something starting with __ and the normal name is an alias. */
38229#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38230choke me
38231#else
38232char (*f) () = $ac_func;
38233#endif
38234#ifdef __cplusplus
38235}
38236#endif
38237
38238int
38239main ()
38240{
38241return f != $ac_func;
38242 ;
38243 return 0;
38244}
38245_ACEOF
38246rm -f conftest.$ac_objext conftest$ac_exeext
38247if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38248 (eval $ac_link) 2>conftest.er1
a848cd7e 38249 ac_status=$?
ac1cb8d3
VS
38250 grep -v '^ *+' conftest.er1 >conftest.err
38251 rm -f conftest.er1
38252 cat conftest.err >&5
a848cd7e
SC
38253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38254 (exit $ac_status); } &&
5ff751d6 38255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38257 (eval $ac_try) 2>&5
38258 ac_status=$?
38259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38260 (exit $ac_status); }; } &&
38261 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38263 (eval $ac_try) 2>&5
38264 ac_status=$?
38265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38266 (exit $ac_status); }; }; then
38267 eval "$as_ac_var=yes"
38268else
38269 echo "$as_me: failed program was:" >&5
38270sed 's/^/| /' conftest.$ac_ext >&5
38271
38272eval "$as_ac_var=no"
38273fi
ac1cb8d3
VS
38274rm -f conftest.err conftest.$ac_objext \
38275 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38276fi
38277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38279if test `eval echo '${'$as_ac_var'}'` = yes; then
38280 cat >>confdefs.h <<_ACEOF
38281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38282_ACEOF
38283
38284 cat >>confdefs.h <<\_ACEOF
38285#define HAVE_DLOPEN 1
38286_ACEOF
38287
38288 HAVE_DL_FUNCS=1
38289
38290else
38291
38292 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
38293echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
38294if test "${ac_cv_lib_dl_dlopen+set}" = set; then
38295 echo $ECHO_N "(cached) $ECHO_C" >&6
38296else
38297 ac_check_lib_save_LIBS=$LIBS
38298LIBS="-ldl $LIBS"
38299cat >conftest.$ac_ext <<_ACEOF
38300/* confdefs.h. */
38301_ACEOF
38302cat confdefs.h >>conftest.$ac_ext
38303cat >>conftest.$ac_ext <<_ACEOF
38304/* end confdefs.h. */
38305
38306/* Override any gcc2 internal prototype to avoid an error. */
38307#ifdef __cplusplus
38308extern "C"
38309#endif
38310/* We use char because int might match the return type of a gcc2
38311 builtin and then its argument prototype would still apply. */
38312char dlopen ();
38313int
38314main ()
38315{
38316dlopen ();
38317 ;
38318 return 0;
38319}
38320_ACEOF
38321rm -f conftest.$ac_objext conftest$ac_exeext
38322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38323 (eval $ac_link) 2>conftest.er1
a848cd7e 38324 ac_status=$?
ac1cb8d3
VS
38325 grep -v '^ *+' conftest.er1 >conftest.err
38326 rm -f conftest.er1
38327 cat conftest.err >&5
a848cd7e
SC
38328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38329 (exit $ac_status); } &&
5ff751d6 38330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38332 (eval $ac_try) 2>&5
38333 ac_status=$?
38334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335 (exit $ac_status); }; } &&
38336 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38338 (eval $ac_try) 2>&5
38339 ac_status=$?
38340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38341 (exit $ac_status); }; }; then
38342 ac_cv_lib_dl_dlopen=yes
38343else
38344 echo "$as_me: failed program was:" >&5
38345sed 's/^/| /' conftest.$ac_ext >&5
38346
38347ac_cv_lib_dl_dlopen=no
38348fi
ac1cb8d3
VS
38349rm -f conftest.err conftest.$ac_objext \
38350 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38351LIBS=$ac_check_lib_save_LIBS
38352fi
38353echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
38354echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
38355if test $ac_cv_lib_dl_dlopen = yes; then
38356
38357 cat >>confdefs.h <<\_ACEOF
38358#define HAVE_DLOPEN 1
38359_ACEOF
38360
38361 HAVE_DL_FUNCS=1
38362 DL_LINK=" -ldl$DL_LINK"
38363
38364else
38365
38366
38367for ac_func in shl_load
38368do
38369as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38370echo "$as_me:$LINENO: checking for $ac_func" >&5
38371echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38372if eval "test \"\${$as_ac_var+set}\" = set"; then
38373 echo $ECHO_N "(cached) $ECHO_C" >&6
38374else
38375 cat >conftest.$ac_ext <<_ACEOF
38376/* confdefs.h. */
38377_ACEOF
38378cat confdefs.h >>conftest.$ac_ext
38379cat >>conftest.$ac_ext <<_ACEOF
38380/* end confdefs.h. */
ac1cb8d3
VS
38381/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38383#define $ac_func innocuous_$ac_func
38384
a848cd7e
SC
38385/* System header to define __stub macros and hopefully few prototypes,
38386 which can conflict with char $ac_func (); below.
38387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38388 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38389
a848cd7e
SC
38390#ifdef __STDC__
38391# include <limits.h>
38392#else
38393# include <assert.h>
38394#endif
ac1cb8d3
VS
38395
38396#undef $ac_func
38397
a848cd7e
SC
38398/* Override any gcc2 internal prototype to avoid an error. */
38399#ifdef __cplusplus
38400extern "C"
38401{
38402#endif
38403/* We use char because int might match the return type of a gcc2
38404 builtin and then its argument prototype would still apply. */
38405char $ac_func ();
38406/* The GNU C library defines this for functions which it implements
38407 to always fail with ENOSYS. Some functions are actually named
38408 something starting with __ and the normal name is an alias. */
38409#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38410choke me
38411#else
38412char (*f) () = $ac_func;
38413#endif
38414#ifdef __cplusplus
38415}
38416#endif
38417
38418int
38419main ()
38420{
38421return f != $ac_func;
38422 ;
38423 return 0;
38424}
38425_ACEOF
38426rm -f conftest.$ac_objext conftest$ac_exeext
38427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38428 (eval $ac_link) 2>conftest.er1
a848cd7e 38429 ac_status=$?
ac1cb8d3
VS
38430 grep -v '^ *+' conftest.er1 >conftest.err
38431 rm -f conftest.er1
38432 cat conftest.err >&5
a848cd7e
SC
38433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38434 (exit $ac_status); } &&
5ff751d6 38435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38437 (eval $ac_try) 2>&5
38438 ac_status=$?
38439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38440 (exit $ac_status); }; } &&
38441 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38443 (eval $ac_try) 2>&5
38444 ac_status=$?
38445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38446 (exit $ac_status); }; }; then
38447 eval "$as_ac_var=yes"
38448else
38449 echo "$as_me: failed program was:" >&5
38450sed 's/^/| /' conftest.$ac_ext >&5
38451
38452eval "$as_ac_var=no"
38453fi
ac1cb8d3
VS
38454rm -f conftest.err conftest.$ac_objext \
38455 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38456fi
38457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38458echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38459if test `eval echo '${'$as_ac_var'}'` = yes; then
38460 cat >>confdefs.h <<_ACEOF
38461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38462_ACEOF
38463
38464 cat >>confdefs.h <<\_ACEOF
38465#define HAVE_SHL_LOAD 1
38466_ACEOF
38467
38468 HAVE_SHL_FUNCS=1
38469
38470else
38471
38472 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
38473echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
38474if test "${ac_cv_lib_shl_load_dld+set}" = set; then
38475 echo $ECHO_N "(cached) $ECHO_C" >&6
38476else
38477 ac_check_lib_save_LIBS=$LIBS
38478LIBS="-lshl_load $LIBS"
38479cat >conftest.$ac_ext <<_ACEOF
38480/* confdefs.h. */
38481_ACEOF
38482cat confdefs.h >>conftest.$ac_ext
38483cat >>conftest.$ac_ext <<_ACEOF
38484/* end confdefs.h. */
38485
38486/* Override any gcc2 internal prototype to avoid an error. */
38487#ifdef __cplusplus
38488extern "C"
38489#endif
38490/* We use char because int might match the return type of a gcc2
38491 builtin and then its argument prototype would still apply. */
38492char dld ();
38493int
38494main ()
38495{
38496dld ();
38497 ;
38498 return 0;
38499}
38500_ACEOF
38501rm -f conftest.$ac_objext conftest$ac_exeext
38502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38503 (eval $ac_link) 2>conftest.er1
a848cd7e 38504 ac_status=$?
ac1cb8d3
VS
38505 grep -v '^ *+' conftest.er1 >conftest.err
38506 rm -f conftest.er1
38507 cat conftest.err >&5
a848cd7e
SC
38508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509 (exit $ac_status); } &&
5ff751d6 38510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38512 (eval $ac_try) 2>&5
38513 ac_status=$?
38514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38515 (exit $ac_status); }; } &&
38516 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38518 (eval $ac_try) 2>&5
38519 ac_status=$?
38520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521 (exit $ac_status); }; }; then
38522 ac_cv_lib_shl_load_dld=yes
38523else
38524 echo "$as_me: failed program was:" >&5
38525sed 's/^/| /' conftest.$ac_ext >&5
38526
38527ac_cv_lib_shl_load_dld=no
38528fi
ac1cb8d3
VS
38529rm -f conftest.err conftest.$ac_objext \
38530 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38531LIBS=$ac_check_lib_save_LIBS
38532fi
38533echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
38534echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
38535if test $ac_cv_lib_shl_load_dld = yes; then
38536
38537 HAVE_SHL_FUNCS=1
38538 DL_LINK=" -ldld$DL_LINK"
38539
38540fi
38541
38542
38543fi
38544done
38545
38546
38547fi
38548
38549
38550fi
38551done
38552
38553
38554 if test "$HAVE_DL_FUNCS" = 1; then
38555
38556for ac_func in dlerror
38557do
38558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38559echo "$as_me:$LINENO: checking for $ac_func" >&5
38560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
38561if eval "test \"\${$as_ac_var+set}\" = set"; then
38562 echo $ECHO_N "(cached) $ECHO_C" >&6
38563else
38564 cat >conftest.$ac_ext <<_ACEOF
38565/* confdefs.h. */
38566_ACEOF
38567cat confdefs.h >>conftest.$ac_ext
38568cat >>conftest.$ac_ext <<_ACEOF
38569/* end confdefs.h. */
ac1cb8d3
VS
38570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38572#define $ac_func innocuous_$ac_func
38573
a848cd7e
SC
38574/* System header to define __stub macros and hopefully few prototypes,
38575 which can conflict with char $ac_func (); below.
38576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38577 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 38578
a848cd7e
SC
38579#ifdef __STDC__
38580# include <limits.h>
38581#else
38582# include <assert.h>
38583#endif
ac1cb8d3
VS
38584
38585#undef $ac_func
38586
a848cd7e
SC
38587/* Override any gcc2 internal prototype to avoid an error. */
38588#ifdef __cplusplus
38589extern "C"
38590{
38591#endif
38592/* We use char because int might match the return type of a gcc2
38593 builtin and then its argument prototype would still apply. */
38594char $ac_func ();
38595/* The GNU C library defines this for functions which it implements
38596 to always fail with ENOSYS. Some functions are actually named
38597 something starting with __ and the normal name is an alias. */
38598#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
38599choke me
38600#else
38601char (*f) () = $ac_func;
38602#endif
38603#ifdef __cplusplus
38604}
38605#endif
38606
38607int
38608main ()
38609{
38610return f != $ac_func;
38611 ;
38612 return 0;
38613}
38614_ACEOF
38615rm -f conftest.$ac_objext conftest$ac_exeext
38616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38617 (eval $ac_link) 2>conftest.er1
a848cd7e 38618 ac_status=$?
ac1cb8d3
VS
38619 grep -v '^ *+' conftest.er1 >conftest.err
38620 rm -f conftest.er1
38621 cat conftest.err >&5
a848cd7e
SC
38622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38623 (exit $ac_status); } &&
5ff751d6 38624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38626 (eval $ac_try) 2>&5
38627 ac_status=$?
38628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38629 (exit $ac_status); }; } &&
38630 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
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); }; }; then
38636 eval "$as_ac_var=yes"
38637else
38638 echo "$as_me: failed program was:" >&5
38639sed 's/^/| /' conftest.$ac_ext >&5
38640
38641eval "$as_ac_var=no"
38642fi
ac1cb8d3
VS
38643rm -f conftest.err conftest.$ac_objext \
38644 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38645fi
38646echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
38647echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
38648if test `eval echo '${'$as_ac_var'}'` = yes; then
38649 cat >>confdefs.h <<_ACEOF
38650#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38651_ACEOF
38652 cat >>confdefs.h <<\_ACEOF
38653#define HAVE_DLERROR 1
38654_ACEOF
38655
38656else
38657
38658 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
38659echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
38660if test "${ac_cv_lib_dl_dlerror+set}" = set; then
38661 echo $ECHO_N "(cached) $ECHO_C" >&6
38662else
38663 ac_check_lib_save_LIBS=$LIBS
38664LIBS="-ldl $LIBS"
38665cat >conftest.$ac_ext <<_ACEOF
38666/* confdefs.h. */
38667_ACEOF
38668cat confdefs.h >>conftest.$ac_ext
38669cat >>conftest.$ac_ext <<_ACEOF
38670/* end confdefs.h. */
38671
38672/* Override any gcc2 internal prototype to avoid an error. */
38673#ifdef __cplusplus
38674extern "C"
38675#endif
38676/* We use char because int might match the return type of a gcc2
38677 builtin and then its argument prototype would still apply. */
38678char dlerror ();
38679int
38680main ()
38681{
38682dlerror ();
38683 ;
38684 return 0;
38685}
38686_ACEOF
38687rm -f conftest.$ac_objext conftest$ac_exeext
38688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 38689 (eval $ac_link) 2>conftest.er1
a848cd7e 38690 ac_status=$?
ac1cb8d3
VS
38691 grep -v '^ *+' conftest.er1 >conftest.err
38692 rm -f conftest.er1
38693 cat conftest.err >&5
a848cd7e
SC
38694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38695 (exit $ac_status); } &&
5ff751d6 38696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38698 (eval $ac_try) 2>&5
38699 ac_status=$?
38700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38701 (exit $ac_status); }; } &&
38702 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38704 (eval $ac_try) 2>&5
38705 ac_status=$?
38706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38707 (exit $ac_status); }; }; then
38708 ac_cv_lib_dl_dlerror=yes
38709else
38710 echo "$as_me: failed program was:" >&5
38711sed 's/^/| /' conftest.$ac_ext >&5
38712
38713ac_cv_lib_dl_dlerror=no
38714fi
ac1cb8d3
VS
38715rm -f conftest.err conftest.$ac_objext \
38716 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38717LIBS=$ac_check_lib_save_LIBS
38718fi
38719echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
38720echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
38721if test $ac_cv_lib_dl_dlerror = yes; then
38722 cat >>confdefs.h <<\_ACEOF
38723#define HAVE_DLERROR 1
38724_ACEOF
38725
38726fi
38727
38728
38729
38730fi
38731done
38732
38733 fi
38734 fi
38735
38736 if test "$HAVE_DL_FUNCS" = 0; then
38737 if test "$HAVE_SHL_FUNCS" = 0; then
47a7e797 38738 if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
a848cd7e
SC
38739 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
38740echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
38741 wxUSE_DYNAMIC_LOADER=no
38742 wxUSE_DYNLIB_CLASS=no
38743 else
38744 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
38745echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
38746 fi
38747 fi
38748 fi
38749 fi
38750fi
38751
38752if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
38753 cat >>confdefs.h <<\_ACEOF
38754#define wxUSE_DYNAMIC_LOADER 1
38755_ACEOF
38756
38757fi
38758if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
38759 cat >>confdefs.h <<\_ACEOF
38760#define wxUSE_DYNLIB_CLASS 1
38761_ACEOF
38762
38763fi
38764
38765
38766
38767if test "$wxUSE_PLUGINS" = "yes" ; then
38768 if test "$wxUSE_SHARED" = "no" ; then
38769 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
38770echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
38771 wxUSE_PLUGINS=no
38772 fi
38773 if test "$wxUSE_MONOLITHIC" = "yes" ; then
38774 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
38775echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
38776 wxUSE_PLUGINS=no
38777 fi
38778 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
38779 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
38780echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
38781 wxUSE_PLUGINS=no
38782 fi
38783 if test "$wxUSE_PLUGINS" = "yes" ; then
38784 cat >>confdefs.h <<\_ACEOF
38785#define wxUSE_PLUGINS 1
38786_ACEOF
38787
38788 fi
38789fi
38790
38791
38792if test "$wxUSE_STL" = "yes"; then
38793 cat >>confdefs.h <<\_ACEOF
38794#define wxUSE_STL 1
38795_ACEOF
38796
38797fi
38798
38799if test "$wxUSE_APPLE_IEEE" = "yes"; then
38800 cat >>confdefs.h <<\_ACEOF
38801#define wxUSE_APPLE_IEEE 1
38802_ACEOF
38803
38804fi
38805
38806if test "$wxUSE_TIMER" = "yes"; then
38807 cat >>confdefs.h <<\_ACEOF
38808#define wxUSE_TIMER 1
38809_ACEOF
38810
38811fi
38812
9c112555 38813if test "$USE_UNIX" = "1" ; then
d12aef51
VZ
38814 echo "$as_me:$LINENO: checking for ioctl() in sys/soundcard.h" >&5
38815echo $ECHO_N "checking for ioctl() in sys/soundcard.h... $ECHO_C" >&6
38816if test "${ac_cv_header_sys_soundcard+set}" = set; then
a848cd7e 38817 echo $ECHO_N "(cached) $ECHO_C" >&6
a848cd7e 38818else
d12aef51
VZ
38819
38820 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38821/* confdefs.h. */
38822_ACEOF
38823cat confdefs.h >>conftest.$ac_ext
38824cat >>conftest.$ac_ext <<_ACEOF
38825/* end confdefs.h. */
d12aef51
VZ
38826
38827 #include <sys/soundcard.h>
38828
38829int
38830main ()
38831{
38832
38833 ioctl(0, SNDCTL_DSP_SYNC, 0);
38834
38835 ;
38836 return 0;
38837}
a848cd7e 38838_ACEOF
d12aef51
VZ
38839rm -f conftest.$ac_objext conftest$ac_exeext
38840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38841 (eval $ac_link) 2>conftest.er1
a848cd7e 38842 ac_status=$?
ac1cb8d3
VS
38843 grep -v '^ *+' conftest.er1 >conftest.err
38844 rm -f conftest.er1
38845 cat conftest.err >&5
a848cd7e
SC
38846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847 (exit $ac_status); } &&
5ff751d6 38848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
38849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38850 (eval $ac_try) 2>&5
38851 ac_status=$?
38852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38853 (exit $ac_status); }; } &&
d12aef51 38854 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
38855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38856 (eval $ac_try) 2>&5
38857 ac_status=$?
38858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38859 (exit $ac_status); }; }; then
d12aef51 38860 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38861else
38862 echo "$as_me: failed program was:" >&5
38863sed 's/^/| /' conftest.$ac_ext >&5
38864
a848cd7e 38865
d12aef51
VZ
38866 saveLibs="$LIBS"
38867 LIBS="$saveLibs -lossaudio"
38868 cat >conftest.$ac_ext <<_ACEOF
a848cd7e
SC
38869/* confdefs.h. */
38870_ACEOF
38871cat confdefs.h >>conftest.$ac_ext
38872cat >>conftest.$ac_ext <<_ACEOF
38873/* end confdefs.h. */
d12aef51
VZ
38874
38875 #include <sys/soundcard.h>
38876
38877int
38878main ()
38879{
38880
38881 ioctl(0, SNDCTL_DSP_SYNC, 0);
38882
38883 ;
38884 return 0;
38885}
a848cd7e 38886_ACEOF
d12aef51
VZ
38887rm -f conftest.$ac_objext conftest$ac_exeext
38888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38889 (eval $ac_link) 2>conftest.er1
a848cd7e
SC
38890 ac_status=$?
38891 grep -v '^ *+' conftest.er1 >conftest.err
38892 rm -f conftest.er1
38893 cat conftest.err >&5
38894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
d12aef51 38895 (exit $ac_status); } &&
5ff751d6 38896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
d12aef51
VZ
38897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38898 (eval $ac_try) 2>&5
38899 ac_status=$?
38900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38901 (exit $ac_status); }; } &&
38902 { ac_try='test -s conftest$ac_exeext'
38903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38904 (eval $ac_try) 2>&5
38905 ac_status=$?
38906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907 (exit $ac_status); }; }; then
38908 ac_cv_header_sys_soundcard=yes
a848cd7e
SC
38909else
38910 echo "$as_me: failed program was:" >&5
38911sed 's/^/| /' conftest.$ac_ext >&5
38912
a848cd7e 38913
d12aef51
VZ
38914 LIBS="$saveLibs"
38915 ac_cv_header_sys_soundcard=no
38916
38917
a848cd7e 38918fi
d12aef51
VZ
38919rm -f conftest.err conftest.$ac_objext \
38920 conftest$ac_exeext conftest.$ac_ext
38921
a848cd7e
SC
38922
38923fi
d12aef51
VZ
38924rm -f conftest.err conftest.$ac_objext \
38925 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
38926
38927fi
d12aef51
VZ
38928echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
38929echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6
a848cd7e 38930
d12aef51
VZ
38931 if test "$ac_cv_header_sys_soundcard" = "yes"; then
38932 cat >>confdefs.h <<\_ACEOF
38933#define HAVE_SYS_SOUNDCARD_H 1
38934_ACEOF
a848cd7e 38935
d12aef51
VZ
38936 else
38937 DISABLED_CONTRIB="$DISABLED_CONTRIB mmedia"
38938 fi
9c112555
MW
38939fi
38940WITH_PLUGIN_SDL=0
38941if test "$wxUSE_SOUND" = "yes"; then
38942 if test "$USE_UNIX" = "1" ; then
a848cd7e
SC
38943 if test "$wxUSE_LIBSDL" != "no"; then
38944
38945# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
38946if test "${with_sdl_prefix+set}" = set; then
38947 withval="$with_sdl_prefix"
38948 sdl_prefix="$withval"
38949else
38950 sdl_prefix=""
38951fi;
38952
38953# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
38954if test "${with_sdl_exec_prefix+set}" = set; then
38955 withval="$with_sdl_exec_prefix"
38956 sdl_exec_prefix="$withval"
38957else
38958 sdl_exec_prefix=""
38959fi;
38960# Check whether --enable-sdltest or --disable-sdltest was given.
38961if test "${enable_sdltest+set}" = set; then
38962 enableval="$enable_sdltest"
38963
38964else
38965 enable_sdltest=yes
38966fi;
38967
38968 if test x$sdl_exec_prefix != x ; then
38969 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
38970 if test x${SDL_CONFIG+set} != xset ; then
38971 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
38972 fi
38973 fi
38974 if test x$sdl_prefix != x ; then
38975 sdl_args="$sdl_args --prefix=$sdl_prefix"
38976 if test x${SDL_CONFIG+set} != xset ; then
38977 SDL_CONFIG=$sdl_prefix/bin/sdl-config
38978 fi
38979 fi
38980
38981
38982 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
38983 # Extract the first word of "sdl-config", so it can be a program name with args.
38984set dummy sdl-config; ac_word=$2
38985echo "$as_me:$LINENO: checking for $ac_word" >&5
38986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38987if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
38988 echo $ECHO_N "(cached) $ECHO_C" >&6
38989else
38990 case $SDL_CONFIG in
38991 [\\/]* | ?:[\\/]*)
38992 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
38993 ;;
38994 *)
38995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38996for as_dir in $PATH
38997do
38998 IFS=$as_save_IFS
38999 test -z "$as_dir" && as_dir=.
39000 for ac_exec_ext in '' $ac_executable_extensions; do
39001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39002 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39004 break 2
39005 fi
39006done
39007done
39008
39009 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
39010 ;;
39011esac
39012fi
39013SDL_CONFIG=$ac_cv_path_SDL_CONFIG
39014
39015if test -n "$SDL_CONFIG"; then
39016 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
39017echo "${ECHO_T}$SDL_CONFIG" >&6
39018else
39019 echo "$as_me:$LINENO: result: no" >&5
39020echo "${ECHO_T}no" >&6
39021fi
39022
39023 min_sdl_version=1.2.0
39024 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
39025echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
39026 no_sdl=""
39027 if test "$SDL_CONFIG" = "no" ; then
39028 no_sdl=yes
39029 else
39030 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
39031 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
39032
39033 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
39034 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
39035 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
39036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
39037 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
39038 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
39039 if test "x$enable_sdltest" = "xyes" ; then
39040 ac_save_CFLAGS="$CFLAGS"
94acd38e 39041 ac_save_CXXFLAGS="$CXXFLAGS"
a848cd7e
SC
39042 ac_save_LIBS="$LIBS"
39043 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 39044 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
39045 LIBS="$LIBS $SDL_LIBS"
39046 rm -f conf.sdltest
39047 if test "$cross_compiling" = yes; then
39048 echo $ac_n "cross compiling; assumed OK... $ac_c"
39049else
39050 cat >conftest.$ac_ext <<_ACEOF
39051/* confdefs.h. */
39052_ACEOF
39053cat confdefs.h >>conftest.$ac_ext
39054cat >>conftest.$ac_ext <<_ACEOF
39055/* end confdefs.h. */
39056
39057#include <stdio.h>
39058#include <stdlib.h>
39059#include <string.h>
39060#include "SDL.h"
39061
39062char*
39063my_strdup (char *str)
39064{
39065 char *new_str;
39066
39067 if (str)
39068 {
39069 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
39070 strcpy (new_str, str);
39071 }
39072 else
39073 new_str = NULL;
39074
39075 return new_str;
39076}
39077
39078int main (int argc, char *argv[])
39079{
39080 int major, minor, micro;
39081 char *tmp_version;
39082
39083 /* This hangs on some systems (?)
39084 system ("touch conf.sdltest");
39085 */
39086 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
39087
39088 /* HP/UX 9 (%@#!) writes to sscanf strings */
39089 tmp_version = my_strdup("$min_sdl_version");
39090 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
39091 printf("%s, bad version string\n", "$min_sdl_version");
39092 exit(1);
39093 }
39094
39095 if (($sdl_major_version > major) ||
39096 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
39097 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
39098 {
39099 return 0;
39100 }
39101 else
39102 {
39103 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
39104 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
39105 printf("*** best to upgrade to the required version.\n");
39106 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
39107 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
39108 printf("*** config.cache before re-running configure\n");
39109 return 1;
39110 }
39111}
39112
39113
39114_ACEOF
39115rm -f conftest$ac_exeext
39116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39117 (eval $ac_link) 2>&5
39118 ac_status=$?
39119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39122 (eval $ac_try) 2>&5
39123 ac_status=$?
39124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125 (exit $ac_status); }; }; then
39126 :
39127else
39128 echo "$as_me: program exited with status $ac_status" >&5
39129echo "$as_me: failed program was:" >&5
39130sed 's/^/| /' conftest.$ac_ext >&5
39131
39132( exit $ac_status )
39133no_sdl=yes
39134fi
ac1cb8d3 39135rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39136fi
39137 CFLAGS="$ac_save_CFLAGS"
94acd38e 39138 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39139 LIBS="$ac_save_LIBS"
39140 fi
39141 fi
39142 if test "x$no_sdl" = x ; then
39143 echo "$as_me:$LINENO: result: yes" >&5
39144echo "${ECHO_T}yes" >&6
39145
39146 EXTRALIBS_SDL="$SDL_LIBS"
39147 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
39148 cat >>confdefs.h <<\_ACEOF
39149#define wxUSE_LIBSDL 1
39150_ACEOF
39151
39152
39153 else
39154 echo "$as_me:$LINENO: result: no" >&5
39155echo "${ECHO_T}no" >&6
39156 if test "$SDL_CONFIG" = "no" ; then
39157 echo "*** The sdl-config script installed by SDL could not be found"
39158 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
39159 echo "*** your path, or set the SDL_CONFIG environment variable to the"
39160 echo "*** full path to sdl-config."
39161 else
39162 if test -f conf.sdltest ; then
39163 :
39164 else
39165 echo "*** Could not run SDL test program, checking why..."
39166 CFLAGS="$CFLAGS $SDL_CFLAGS"
94acd38e 39167 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
a848cd7e
SC
39168 LIBS="$LIBS $SDL_LIBS"
39169 cat >conftest.$ac_ext <<_ACEOF
39170/* confdefs.h. */
39171_ACEOF
39172cat confdefs.h >>conftest.$ac_ext
39173cat >>conftest.$ac_ext <<_ACEOF
39174/* end confdefs.h. */
39175
39176#include <stdio.h>
39177#include "SDL.h"
39178
39179int main(int argc, char *argv[])
39180{ return 0; }
39181#undef main
39182#define main K_and_R_C_main
39183
39184int
39185main ()
39186{
39187 return 0;
39188 ;
39189 return 0;
39190}
39191_ACEOF
39192rm -f conftest.$ac_objext conftest$ac_exeext
39193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39194 (eval $ac_link) 2>conftest.er1
a848cd7e 39195 ac_status=$?
ac1cb8d3
VS
39196 grep -v '^ *+' conftest.er1 >conftest.err
39197 rm -f conftest.er1
39198 cat conftest.err >&5
a848cd7e
SC
39199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39200 (exit $ac_status); } &&
5ff751d6 39201 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39203 (eval $ac_try) 2>&5
39204 ac_status=$?
39205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39206 (exit $ac_status); }; } &&
39207 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39209 (eval $ac_try) 2>&5
39210 ac_status=$?
39211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39212 (exit $ac_status); }; }; then
39213 echo "*** The test program compiled, but did not run. This usually means"
39214 echo "*** that the run-time linker is not finding SDL or finding the wrong"
39215 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
39216 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
39217 echo "*** to the installed location Also, make sure you have run ldconfig if that"
39218 echo "*** is required on your system"
39219 echo "***"
39220 echo "*** If you have an old version installed, it is best to remove it, although"
39221 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
39222else
39223 echo "$as_me: failed program was:" >&5
39224sed 's/^/| /' conftest.$ac_ext >&5
39225
39226 echo "*** The test program failed to compile or link. See the file config.log for the"
39227 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
39228 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
39229 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
39230fi
ac1cb8d3
VS
39231rm -f conftest.err conftest.$ac_objext \
39232 conftest$ac_exeext conftest.$ac_ext
a848cd7e 39233 CFLAGS="$ac_save_CFLAGS"
94acd38e 39234 CXXFLAGS="$ac_save_CXXFLAGS"
a848cd7e
SC
39235 LIBS="$ac_save_LIBS"
39236 fi
39237 fi
39238 SDL_CFLAGS=""
39239 SDL_LIBS=""
39240 wxUSE_LIBSDL="no"
39241 fi
39242
39243
39244 rm -f conf.sdltest
39245
39246 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
39247 WITH_PLUGIN_SDL=1
39248 fi
39249 fi
39250 fi
39251
39252 cat >>confdefs.h <<\_ACEOF
39253#define wxUSE_SOUND 1
39254_ACEOF
39255
39256 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
39257fi
39258
d1c38808
VZ
39259if test "$WXGTK20" = 1; then
39260 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
39261 if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
39262
39263
39264 succeeded=no
39265
39266 if test -z "$PKG_CONFIG"; then
39267 # Extract the first word of "pkg-config", so it can be a program name with args.
39268set dummy pkg-config; ac_word=$2
39269echo "$as_me:$LINENO: checking for $ac_word" >&5
39270echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39271if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
39272 echo $ECHO_N "(cached) $ECHO_C" >&6
39273else
39274 case $PKG_CONFIG in
39275 [\\/]* | ?:[\\/]*)
39276 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
39277 ;;
39278 *)
39279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39280for as_dir in $PATH
39281do
39282 IFS=$as_save_IFS
39283 test -z "$as_dir" && as_dir=.
39284 for ac_exec_ext in '' $ac_executable_extensions; do
39285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39286 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
39287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39288 break 2
39289 fi
39290done
39291done
39292
39293 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
39294 ;;
39295esac
39296fi
39297PKG_CONFIG=$ac_cv_path_PKG_CONFIG
39298
39299if test -n "$PKG_CONFIG"; then
39300 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
39301echo "${ECHO_T}$PKG_CONFIG" >&6
39302else
39303 echo "$as_me:$LINENO: result: no" >&5
39304echo "${ECHO_T}no" >&6
39305fi
39306
39307 fi
39308
39309 if test "$PKG_CONFIG" = "no" ; then
39310 echo "*** The pkg-config script could not be found. Make sure it is"
39311 echo "*** in your path, or set the PKG_CONFIG environment variable"
39312 echo "*** to the full path to pkg-config."
39313 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
39314 else
39315 PKG_CONFIG_MIN_VERSION=0.9.0
39316 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
ffa762ff
VS
39317 echo "$as_me:$LINENO: checking for libgnomeprintui-2.2 >= 2.8" >&5
39318echo $ECHO_N "checking for libgnomeprintui-2.2 >= 2.8... $ECHO_C" >&6
d1c38808 39319
ffa762ff 39320 if $PKG_CONFIG --exists "libgnomeprintui-2.2 >= 2.8" ; then
d1c38808
VZ
39321 echo "$as_me:$LINENO: result: yes" >&5
39322echo "${ECHO_T}yes" >&6
39323 succeeded=yes
39324
39325 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_CFLAGS" >&5
39326echo $ECHO_N "checking LIBGNOMEPRINTUI_CFLAGS... $ECHO_C" >&6
ffa762ff 39327 LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39328 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_CFLAGS" >&5
39329echo "${ECHO_T}$LIBGNOMEPRINTUI_CFLAGS" >&6
39330
39331 echo "$as_me:$LINENO: checking LIBGNOMEPRINTUI_LIBS" >&5
39332echo $ECHO_N "checking LIBGNOMEPRINTUI_LIBS... $ECHO_C" >&6
ffa762ff 39333 LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39334 echo "$as_me:$LINENO: result: $LIBGNOMEPRINTUI_LIBS" >&5
39335echo "${ECHO_T}$LIBGNOMEPRINTUI_LIBS" >&6
39336 else
39337 LIBGNOMEPRINTUI_CFLAGS=""
39338 LIBGNOMEPRINTUI_LIBS=""
39339 ## If we have a custom action on failure, don't print errors, but
39340 ## do set a variable so people can do so.
ffa762ff 39341 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
d1c38808
VZ
39342
39343 fi
39344
39345
39346
39347 else
39348 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
39349 echo "*** See http://www.freedesktop.org/software/pkgconfig"
39350 fi
39351 fi
39352
39353 if test $succeeded = yes; then
39354
d1c38808
VZ
39355 CXXFLAGS="$CXXFLAGS $LIBGNOMEPRINTUI_CFLAGS"
39356 cat >>confdefs.h <<\_ACEOF
39357#define wxUSE_LIBGNOMEPRINT 1
39358_ACEOF
39359
39360
39361 else
39362
39363 { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
39364echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
39365 wxUSE_LIBGNOMEPRINT="no"
39366
39367
39368 fi
39369
39370 fi
39371 fi
39372fi
39373
39374
a848cd7e
SC
39375if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
39376 cat >>confdefs.h <<\_ACEOF
39377#define wxUSE_CMDLINE_PARSER 1
39378_ACEOF
39379
39380fi
39381
39382if test "$wxUSE_STOPWATCH" = "yes"; then
39383 cat >>confdefs.h <<\_ACEOF
39384#define wxUSE_STOPWATCH 1
39385_ACEOF
39386
39387fi
39388
39389if test "$wxUSE_DATETIME" = "yes"; then
39390 cat >>confdefs.h <<\_ACEOF
39391#define wxUSE_DATETIME 1
39392_ACEOF
39393
39394fi
39395
39396if test "$wxUSE_FILE" = "yes"; then
39397 cat >>confdefs.h <<\_ACEOF
39398#define wxUSE_FILE 1
39399_ACEOF
39400
39401fi
39402
39403if test "$wxUSE_FFILE" = "yes"; then
39404 cat >>confdefs.h <<\_ACEOF
39405#define wxUSE_FFILE 1
39406_ACEOF
39407
39408fi
39409
39410if test "$wxUSE_FILESYSTEM" = "yes"; then
39411 cat >>confdefs.h <<\_ACEOF
39412#define wxUSE_FILESYSTEM 1
39413_ACEOF
39414
39415fi
39416
39417if test "$wxUSE_FS_ZIP" = "yes"; then
39418 cat >>confdefs.h <<\_ACEOF
39419#define wxUSE_FS_ZIP 1
39420_ACEOF
39421
39422fi
39423
9e8e867f 39424if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
a848cd7e 39425 cat >>confdefs.h <<\_ACEOF
9e8e867f 39426#define wxUSE_ARCHIVE_STREAMS 1
81f90336
MW
39427_ACEOF
39428
39429fi
39430
39431if test "$wxUSE_ZIPSTREAM" = "yes"; then
9e8e867f 39432 if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
81f90336
MW
39433 { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
39434echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
39435 elif test "$wxUSE_ZLIB" = "no"; then
39436 { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
39437echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
39438 else
39439 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39440#define wxUSE_ZIPSTREAM 1
39441_ACEOF
39442
81f90336 39443 fi
a848cd7e
SC
39444fi
39445
a848cd7e 39446if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18228ab4
MW
39447 if test "$USE_UNIX" != 1; then
39448 { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
39449echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
39450 wxUSE_ON_FATAL_EXCEPTION=no
39451 else
39452 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
39453#define wxUSE_ON_FATAL_EXCEPTION 1
39454_ACEOF
39455
18228ab4 39456 fi
a848cd7e
SC
39457fi
39458
eaff0f0d
VZ
39459if test "$wxUSE_STACKWALKER" = "yes"; then
39460 cat >>confdefs.h <<\_ACEOF
39461#define wxUSE_STACKWALKER 1
39462_ACEOF
39463
39464fi
39465
36b6448c 39466if test "$wxUSE_DEBUGREPORT" = "yes"; then
18228ab4
MW
39467 if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
39468 { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
39469echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
dfe0c803
JS
39470 wxUSE_DEBUGREPORT=no
39471 else
39472 cat >>confdefs.h <<\_ACEOF
36b6448c
VZ
39473#define wxUSE_DEBUGREPORT 1
39474_ACEOF
39475
21dfc162
MW
39476 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39477 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
39478 fi
dfe0c803 39479 fi
36b6448c
VZ
39480fi
39481
a848cd7e
SC
39482if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39483 cat >>confdefs.h <<\_ACEOF
39484#define wxUSE_SNGLINST_CHECKER 1
39485_ACEOF
39486
39487fi
39488
39489if test "$wxUSE_BUSYINFO" = "yes"; then
39490 cat >>confdefs.h <<\_ACEOF
39491#define wxUSE_BUSYINFO 1
39492_ACEOF
39493
39494fi
39495
39496if test "$wxUSE_STD_IOSTREAM" = "yes"; then
39497 cat >>confdefs.h <<\_ACEOF
39498#define wxUSE_STD_IOSTREAM 1
39499_ACEOF
39500
39501fi
39502
59746b65
MW
39503if test "$wxUSE_STD_STRING" = "yes"; then
39504 cat >>confdefs.h <<\_ACEOF
39505#define wxUSE_STD_STRING 1
39506_ACEOF
39507
39508fi
39509
07158944
VZ
39510if test "$wxUSE_STDPATHS" = "yes"; then
39511 cat >>confdefs.h <<\_ACEOF
39512#define wxUSE_STDPATHS 1
39513_ACEOF
39514
39515fi
39516
a848cd7e
SC
39517if test "$wxUSE_TEXTBUFFER" = "yes"; then
39518 cat >>confdefs.h <<\_ACEOF
39519#define wxUSE_TEXTBUFFER 1
39520_ACEOF
39521
39522fi
39523
39524if test "$wxUSE_TEXTFILE" = "yes"; then
39525 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
39526 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
39527echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
39528 else
39529 cat >>confdefs.h <<\_ACEOF
39530#define wxUSE_TEXTFILE 1
39531_ACEOF
39532
39533 fi
39534fi
39535
39536if test "$wxUSE_CONFIG" = "yes" ; then
39537 if test "$wxUSE_TEXTFILE" != "yes"; then
39538 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
39539echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
39540 else
39541 cat >>confdefs.h <<\_ACEOF
39542#define wxUSE_CONFIG 1
89be85c2
VS
39543_ACEOF
39544
39545 cat >>confdefs.h <<\_ACEOF
39546#define wxUSE_CONFIG_NATIVE 1
a848cd7e
SC
39547_ACEOF
39548
39549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
39550 fi
39551fi
39552
39553if test "$wxUSE_INTL" = "yes" ; then
39554 if test "$wxUSE_FILE" != "yes"; then
39555 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
39556echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
39557 else
39558 cat >>confdefs.h <<\_ACEOF
39559#define wxUSE_INTL 1
39560_ACEOF
39561
39562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
39563 GUIDIST="$GUIDIST INTL_DIST"
39564 fi
39565fi
39566
39567if test "$wxUSE_LOG" = "yes"; then
39568 cat >>confdefs.h <<\_ACEOF
39569#define wxUSE_LOG 1
39570_ACEOF
39571
39572
39573 if test "$wxUSE_LOGGUI" = "yes"; then
39574 cat >>confdefs.h <<\_ACEOF
39575#define wxUSE_LOGGUI 1
39576_ACEOF
39577
39578 fi
39579
39580 if test "$wxUSE_LOGWINDOW" = "yes"; then
39581 cat >>confdefs.h <<\_ACEOF
39582#define wxUSE_LOGWINDOW 1
39583_ACEOF
39584
39585 fi
39586
39587 if test "$wxUSE_LOGDIALOG" = "yes"; then
39588 cat >>confdefs.h <<\_ACEOF
39589#define wxUSE_LOG_DIALOG 1
39590_ACEOF
39591
39592 fi
0b78747f
MW
39593
39594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
a848cd7e
SC
39595fi
39596
39597if test "$wxUSE_LONGLONG" = "yes"; then
39598 cat >>confdefs.h <<\_ACEOF
39599#define wxUSE_LONGLONG 1
39600_ACEOF
39601
39602fi
39603
39604if test "$wxUSE_GEOMETRY" = "yes"; then
39605 cat >>confdefs.h <<\_ACEOF
39606#define wxUSE_GEOMETRY 1
39607_ACEOF
39608
39609fi
39610
a848cd7e
SC
39611if test "$wxUSE_STREAMS" = "yes" ; then
39612 cat >>confdefs.h <<\_ACEOF
39613#define wxUSE_STREAMS 1
39614_ACEOF
39615
39616fi
39617
39618
39619if test "$wxUSE_DATETIME" = "yes"; then
39620
39621for ac_func in strptime
39622do
39623as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39624echo "$as_me:$LINENO: checking for $ac_func" >&5
39625echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39626if eval "test \"\${$as_ac_var+set}\" = set"; then
39627 echo $ECHO_N "(cached) $ECHO_C" >&6
39628else
39629 cat >conftest.$ac_ext <<_ACEOF
39630/* confdefs.h. */
39631_ACEOF
39632cat confdefs.h >>conftest.$ac_ext
39633cat >>conftest.$ac_ext <<_ACEOF
39634/* end confdefs.h. */
ac1cb8d3
VS
39635/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39637#define $ac_func innocuous_$ac_func
39638
a848cd7e
SC
39639/* System header to define __stub macros and hopefully few prototypes,
39640 which can conflict with char $ac_func (); below.
39641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39642 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 39643
a848cd7e
SC
39644#ifdef __STDC__
39645# include <limits.h>
39646#else
39647# include <assert.h>
39648#endif
ac1cb8d3
VS
39649
39650#undef $ac_func
39651
a848cd7e
SC
39652/* Override any gcc2 internal prototype to avoid an error. */
39653#ifdef __cplusplus
39654extern "C"
39655{
39656#endif
39657/* We use char because int might match the return type of a gcc2
39658 builtin and then its argument prototype would still apply. */
39659char $ac_func ();
39660/* The GNU C library defines this for functions which it implements
39661 to always fail with ENOSYS. Some functions are actually named
39662 something starting with __ and the normal name is an alias. */
39663#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
39664choke me
39665#else
39666char (*f) () = $ac_func;
39667#endif
39668#ifdef __cplusplus
39669}
39670#endif
39671
39672int
39673main ()
39674{
39675return f != $ac_func;
39676 ;
39677 return 0;
39678}
39679_ACEOF
39680rm -f conftest.$ac_objext conftest$ac_exeext
39681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 39682 (eval $ac_link) 2>conftest.er1
a848cd7e 39683 ac_status=$?
ac1cb8d3
VS
39684 grep -v '^ *+' conftest.er1 >conftest.err
39685 rm -f conftest.er1
39686 cat conftest.err >&5
a848cd7e
SC
39687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39688 (exit $ac_status); } &&
5ff751d6 39689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39691 (eval $ac_try) 2>&5
39692 ac_status=$?
39693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694 (exit $ac_status); }; } &&
39695 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
39696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39697 (eval $ac_try) 2>&5
39698 ac_status=$?
39699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39700 (exit $ac_status); }; }; then
39701 eval "$as_ac_var=yes"
39702else
39703 echo "$as_me: failed program was:" >&5
39704sed 's/^/| /' conftest.$ac_ext >&5
39705
39706eval "$as_ac_var=no"
39707fi
ac1cb8d3
VS
39708rm -f conftest.err conftest.$ac_objext \
39709 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
39710fi
39711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
39712echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
39713if test `eval echo '${'$as_ac_var'}'` = yes; then
39714 cat >>confdefs.h <<_ACEOF
39715#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39716_ACEOF
39717
39718fi
39719done
39720
f536f005
VZ
39721 if test "$ac_cv_func_strptime" = "yes"; then
39722 echo "$as_me:$LINENO: checking for strptime declaration" >&5
39723echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6
39724if test "${wx_cv_func_strptime_decl+set}" = set; then
39725 echo $ECHO_N "(cached) $ECHO_C" >&6
39726else
39727
39728
39729
39730 ac_ext=cc
39731ac_cpp='$CXXCPP $CPPFLAGS'
39732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39735
39736 cat >conftest.$ac_ext <<_ACEOF
39737/* confdefs.h. */
39738_ACEOF
39739cat confdefs.h >>conftest.$ac_ext
39740cat >>conftest.$ac_ext <<_ACEOF
39741/* end confdefs.h. */
39742
39743 #include <time.h>
39744
39745int
39746main ()
39747{
39748
39749 struct tm t;
39750 strptime("foo", "bar", &t);
39751
39752 ;
39753 return 0;
39754}
39755_ACEOF
39756rm -f conftest.$ac_objext
39757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
39758 (eval $ac_compile) 2>conftest.er1
39759 ac_status=$?
39760 grep -v '^ *+' conftest.er1 >conftest.err
39761 rm -f conftest.er1
39762 cat conftest.err >&5
39763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764 (exit $ac_status); } &&
5ff751d6 39765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
f536f005
VZ
39766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39767 (eval $ac_try) 2>&5
39768 ac_status=$?
39769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39770 (exit $ac_status); }; } &&
39771 { ac_try='test -s conftest.$ac_objext'
39772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39773 (eval $ac_try) 2>&5
39774 ac_status=$?
39775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39776 (exit $ac_status); }; }; then
39777 wx_cv_func_strptime_decl=yes
39778else
39779 echo "$as_me: failed program was:" >&5
39780sed 's/^/| /' conftest.$ac_ext >&5
39781
39782wx_cv_func_strptime_decl=no
39783
39784fi
39785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
39786 ac_ext=c
39787ac_cpp='$CPP $CPPFLAGS'
39788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39790ac_compiler_gnu=$ac_cv_c_compiler_gnu
39791
39792
39793
39794fi
39795echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
39796echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6
39797 fi
39798 if test "$wx_cv_func_strptime_decl" = "yes"; then
39799 cat >>confdefs.h <<\_ACEOF
39800#define HAVE_STRPTIME_DECL 1
39801_ACEOF
39802
39803 fi
a848cd7e
SC
39804
39805 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
39806echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
39807if test "${wx_cv_var_timezone+set}" = set; then
39808 echo $ECHO_N "(cached) $ECHO_C" >&6
39809else
39810
39811 cat >conftest.$ac_ext <<_ACEOF
39812/* confdefs.h. */
39813_ACEOF
39814cat confdefs.h >>conftest.$ac_ext
39815cat >>conftest.$ac_ext <<_ACEOF
39816/* end confdefs.h. */
39817
39818 #include <time.h>
39819
39820int
39821main ()
39822{
39823
39824 int tz;
39825 tz = timezone;
39826
39827 ;
39828 return 0;
39829}
39830_ACEOF
39831rm -f conftest.$ac_objext
39832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39833 (eval $ac_compile) 2>conftest.er1
a848cd7e 39834 ac_status=$?
ac1cb8d3
VS
39835 grep -v '^ *+' conftest.er1 >conftest.err
39836 rm -f conftest.er1
39837 cat conftest.err >&5
a848cd7e
SC
39838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39839 (exit $ac_status); } &&
5ff751d6 39840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39842 (eval $ac_try) 2>&5
39843 ac_status=$?
39844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39845 (exit $ac_status); }; } &&
39846 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39848 (eval $ac_try) 2>&5
39849 ac_status=$?
39850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39851 (exit $ac_status); }; }; then
39852
39853 wx_cv_var_timezone=timezone
39854
39855else
39856 echo "$as_me: failed program was:" >&5
39857sed 's/^/| /' conftest.$ac_ext >&5
39858
39859
39860 cat >conftest.$ac_ext <<_ACEOF
39861/* confdefs.h. */
39862_ACEOF
39863cat confdefs.h >>conftest.$ac_ext
39864cat >>conftest.$ac_ext <<_ACEOF
39865/* end confdefs.h. */
39866
39867 #include <time.h>
39868
39869int
39870main ()
39871{
39872
39873 int tz;
39874 tz = _timezone;
39875
39876 ;
39877 return 0;
39878}
39879_ACEOF
39880rm -f conftest.$ac_objext
39881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39882 (eval $ac_compile) 2>conftest.er1
a848cd7e 39883 ac_status=$?
ac1cb8d3
VS
39884 grep -v '^ *+' conftest.er1 >conftest.err
39885 rm -f conftest.er1
39886 cat conftest.err >&5
a848cd7e
SC
39887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888 (exit $ac_status); } &&
5ff751d6 39889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39891 (eval $ac_try) 2>&5
39892 ac_status=$?
39893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39894 (exit $ac_status); }; } &&
39895 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39897 (eval $ac_try) 2>&5
39898 ac_status=$?
39899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39900 (exit $ac_status); }; }; then
39901
39902 wx_cv_var_timezone=_timezone
39903
39904else
39905 echo "$as_me: failed program was:" >&5
39906sed 's/^/| /' conftest.$ac_ext >&5
39907
39908
39909 cat >conftest.$ac_ext <<_ACEOF
39910/* confdefs.h. */
39911_ACEOF
39912cat confdefs.h >>conftest.$ac_ext
39913cat >>conftest.$ac_ext <<_ACEOF
39914/* end confdefs.h. */
39915
39916 #include <time.h>
39917
39918int
39919main ()
39920{
39921
39922 int tz;
39923 tz = __timezone;
39924
39925 ;
39926 return 0;
39927}
39928_ACEOF
39929rm -f conftest.$ac_objext
39930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 39931 (eval $ac_compile) 2>conftest.er1
a848cd7e 39932 ac_status=$?
ac1cb8d3
VS
39933 grep -v '^ *+' conftest.er1 >conftest.err
39934 rm -f conftest.er1
39935 cat conftest.err >&5
a848cd7e
SC
39936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39937 (exit $ac_status); } &&
5ff751d6 39938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
39939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39940 (eval $ac_try) 2>&5
39941 ac_status=$?
39942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39943 (exit $ac_status); }; } &&
39944 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
39945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39946 (eval $ac_try) 2>&5
39947 ac_status=$?
39948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39949 (exit $ac_status); }; }; then
39950
39951 wx_cv_var_timezone=__timezone
39952
39953else
39954 echo "$as_me: failed program was:" >&5
39955sed 's/^/| /' conftest.$ac_ext >&5
39956
39957
39958 if test "$USE_DOS" = 0 ; then
39959 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
39960echo "$as_me: WARNING: no timezone variable" >&2;}
39961 fi
39962
39963
39964fi
ac1cb8d3 39965rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39966
39967
39968fi
ac1cb8d3 39969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39970
39971
39972fi
ac1cb8d3 39973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
39974
39975
39976fi
39977echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
39978echo "${ECHO_T}$wx_cv_var_timezone" >&6
39979
39980 if test "x$wx_cv_var_timezone" != x ; then
39981 cat >>confdefs.h <<_ACEOF
39982#define WX_TIMEZONE $wx_cv_var_timezone
39983_ACEOF
39984
39985 fi
39986
39987
39988for ac_func in localtime
39989do
39990as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39991echo "$as_me:$LINENO: checking for $ac_func" >&5
39992echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
39993if eval "test \"\${$as_ac_var+set}\" = set"; then
39994 echo $ECHO_N "(cached) $ECHO_C" >&6
39995else
39996 cat >conftest.$ac_ext <<_ACEOF
39997/* confdefs.h. */
39998_ACEOF
39999cat confdefs.h >>conftest.$ac_ext
40000cat >>conftest.$ac_ext <<_ACEOF
40001/* end confdefs.h. */
ac1cb8d3
VS
40002/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40004#define $ac_func innocuous_$ac_func
40005
a848cd7e
SC
40006/* System header to define __stub macros and hopefully few prototypes,
40007 which can conflict with char $ac_func (); below.
40008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40009 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40010
a848cd7e
SC
40011#ifdef __STDC__
40012# include <limits.h>
40013#else
40014# include <assert.h>
40015#endif
ac1cb8d3
VS
40016
40017#undef $ac_func
40018
a848cd7e
SC
40019/* Override any gcc2 internal prototype to avoid an error. */
40020#ifdef __cplusplus
40021extern "C"
40022{
40023#endif
40024/* We use char because int might match the return type of a gcc2
40025 builtin and then its argument prototype would still apply. */
40026char $ac_func ();
40027/* The GNU C library defines this for functions which it implements
40028 to always fail with ENOSYS. Some functions are actually named
40029 something starting with __ and the normal name is an alias. */
40030#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40031choke me
40032#else
40033char (*f) () = $ac_func;
40034#endif
40035#ifdef __cplusplus
40036}
40037#endif
40038
40039int
40040main ()
40041{
40042return f != $ac_func;
40043 ;
40044 return 0;
40045}
40046_ACEOF
40047rm -f conftest.$ac_objext conftest$ac_exeext
40048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40049 (eval $ac_link) 2>conftest.er1
a848cd7e 40050 ac_status=$?
ac1cb8d3
VS
40051 grep -v '^ *+' conftest.er1 >conftest.err
40052 rm -f conftest.er1
40053 cat conftest.err >&5
a848cd7e
SC
40054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40055 (exit $ac_status); } &&
5ff751d6 40056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40058 (eval $ac_try) 2>&5
40059 ac_status=$?
40060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40061 (exit $ac_status); }; } &&
40062 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40064 (eval $ac_try) 2>&5
40065 ac_status=$?
40066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067 (exit $ac_status); }; }; then
40068 eval "$as_ac_var=yes"
40069else
40070 echo "$as_me: failed program was:" >&5
40071sed 's/^/| /' conftest.$ac_ext >&5
40072
40073eval "$as_ac_var=no"
40074fi
ac1cb8d3
VS
40075rm -f conftest.err conftest.$ac_objext \
40076 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40077fi
40078echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40079echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40080if test `eval echo '${'$as_ac_var'}'` = yes; then
40081 cat >>confdefs.h <<_ACEOF
40082#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40083_ACEOF
40084
40085fi
40086done
40087
40088
40089 if test "$ac_cv_func_localtime" = "yes"; then
40090 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
40091echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
40092if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
40093 echo $ECHO_N "(cached) $ECHO_C" >&6
40094else
40095
40096 cat >conftest.$ac_ext <<_ACEOF
40097/* confdefs.h. */
40098_ACEOF
40099cat confdefs.h >>conftest.$ac_ext
40100cat >>conftest.$ac_ext <<_ACEOF
40101/* end confdefs.h. */
40102
40103 #include <time.h>
40104
40105int
40106main ()
40107{
40108
40109 struct tm tm;
40110 tm.tm_gmtoff++;
40111
40112 ;
40113 return 0;
40114}
40115_ACEOF
40116rm -f conftest.$ac_objext
40117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40118 (eval $ac_compile) 2>conftest.er1
a848cd7e 40119 ac_status=$?
ac1cb8d3
VS
40120 grep -v '^ *+' conftest.er1 >conftest.err
40121 rm -f conftest.er1
40122 cat conftest.err >&5
a848cd7e
SC
40123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40124 (exit $ac_status); } &&
5ff751d6 40125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40127 (eval $ac_try) 2>&5
40128 ac_status=$?
40129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40130 (exit $ac_status); }; } &&
40131 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40133 (eval $ac_try) 2>&5
40134 ac_status=$?
40135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136 (exit $ac_status); }; }; then
40137
40138 wx_cv_struct_tm_has_gmtoff=yes
40139
40140else
40141 echo "$as_me: failed program was:" >&5
40142sed 's/^/| /' conftest.$ac_ext >&5
40143
40144wx_cv_struct_tm_has_gmtoff=no
40145
40146fi
ac1cb8d3 40147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40148
40149fi
40150echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
40151echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
40152 fi
40153
40154 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
40155 cat >>confdefs.h <<\_ACEOF
40156#define WX_GMTOFF_IN_TM 1
40157_ACEOF
40158
40159 fi
40160
40161
40162
40163for ac_func in gettimeofday ftime
40164do
40165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40166echo "$as_me:$LINENO: checking for $ac_func" >&5
40167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
40168if eval "test \"\${$as_ac_var+set}\" = set"; then
40169 echo $ECHO_N "(cached) $ECHO_C" >&6
40170else
40171 cat >conftest.$ac_ext <<_ACEOF
40172/* confdefs.h. */
40173_ACEOF
40174cat confdefs.h >>conftest.$ac_ext
40175cat >>conftest.$ac_ext <<_ACEOF
40176/* end confdefs.h. */
ac1cb8d3
VS
40177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40179#define $ac_func innocuous_$ac_func
40180
a848cd7e
SC
40181/* System header to define __stub macros and hopefully few prototypes,
40182 which can conflict with char $ac_func (); below.
40183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40184 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40185
a848cd7e
SC
40186#ifdef __STDC__
40187# include <limits.h>
40188#else
40189# include <assert.h>
40190#endif
ac1cb8d3
VS
40191
40192#undef $ac_func
40193
a848cd7e
SC
40194/* Override any gcc2 internal prototype to avoid an error. */
40195#ifdef __cplusplus
40196extern "C"
40197{
40198#endif
40199/* We use char because int might match the return type of a gcc2
40200 builtin and then its argument prototype would still apply. */
40201char $ac_func ();
40202/* The GNU C library defines this for functions which it implements
40203 to always fail with ENOSYS. Some functions are actually named
40204 something starting with __ and the normal name is an alias. */
40205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
40206choke me
40207#else
40208char (*f) () = $ac_func;
40209#endif
40210#ifdef __cplusplus
40211}
40212#endif
40213
40214int
40215main ()
40216{
40217return f != $ac_func;
40218 ;
40219 return 0;
40220}
40221_ACEOF
40222rm -f conftest.$ac_objext conftest$ac_exeext
40223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40224 (eval $ac_link) 2>conftest.er1
a848cd7e 40225 ac_status=$?
ac1cb8d3
VS
40226 grep -v '^ *+' conftest.er1 >conftest.err
40227 rm -f conftest.er1
40228 cat conftest.err >&5
a848cd7e
SC
40229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40230 (exit $ac_status); } &&
5ff751d6 40231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40233 (eval $ac_try) 2>&5
40234 ac_status=$?
40235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40236 (exit $ac_status); }; } &&
40237 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40239 (eval $ac_try) 2>&5
40240 ac_status=$?
40241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40242 (exit $ac_status); }; }; then
40243 eval "$as_ac_var=yes"
40244else
40245 echo "$as_me: failed program was:" >&5
40246sed 's/^/| /' conftest.$ac_ext >&5
40247
40248eval "$as_ac_var=no"
40249fi
ac1cb8d3
VS
40250rm -f conftest.err conftest.$ac_objext \
40251 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40252fi
40253echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
40254echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
40255if test `eval echo '${'$as_ac_var'}'` = yes; then
40256 cat >>confdefs.h <<_ACEOF
40257#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40258_ACEOF
40259 break
40260fi
40261done
40262
40263
40264 if test "$ac_cv_func_gettimeofday" = "yes"; then
40265 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
40266echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
40267if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
40268 echo $ECHO_N "(cached) $ECHO_C" >&6
40269else
40270
40271
40272
40273 ac_ext=cc
40274ac_cpp='$CXXCPP $CPPFLAGS'
40275ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40276ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40277ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40278
40279
40280 cat >conftest.$ac_ext <<_ACEOF
40281/* confdefs.h. */
40282_ACEOF
40283cat confdefs.h >>conftest.$ac_ext
40284cat >>conftest.$ac_ext <<_ACEOF
40285/* end confdefs.h. */
40286
40287 #include <sys/time.h>
40288 #include <unistd.h>
40289
40290int
40291main ()
40292{
40293
40294 struct timeval tv;
40295 gettimeofday(&tv, NULL);
40296
40297 ;
40298 return 0;
40299}
40300_ACEOF
40301rm -f conftest.$ac_objext
40302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40303 (eval $ac_compile) 2>conftest.er1
a848cd7e 40304 ac_status=$?
ac1cb8d3
VS
40305 grep -v '^ *+' conftest.er1 >conftest.err
40306 rm -f conftest.er1
40307 cat conftest.err >&5
a848cd7e
SC
40308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309 (exit $ac_status); } &&
5ff751d6 40310 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40312 (eval $ac_try) 2>&5
40313 ac_status=$?
40314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40315 (exit $ac_status); }; } &&
40316 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40318 (eval $ac_try) 2>&5
40319 ac_status=$?
40320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40321 (exit $ac_status); }; }; then
40322 wx_cv_func_gettimeofday_has_2_args=yes
40323else
40324 echo "$as_me: failed program was:" >&5
40325sed 's/^/| /' conftest.$ac_ext >&5
40326
40327cat >conftest.$ac_ext <<_ACEOF
40328/* confdefs.h. */
40329_ACEOF
40330cat confdefs.h >>conftest.$ac_ext
40331cat >>conftest.$ac_ext <<_ACEOF
40332/* end confdefs.h. */
40333
40334 #include <sys/time.h>
40335 #include <unistd.h>
40336
40337int
40338main ()
40339{
40340
40341 struct timeval tv;
40342 gettimeofday(&tv);
40343
40344 ;
40345 return 0;
40346}
40347_ACEOF
40348rm -f conftest.$ac_objext
40349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40350 (eval $ac_compile) 2>conftest.er1
a848cd7e 40351 ac_status=$?
ac1cb8d3
VS
40352 grep -v '^ *+' conftest.er1 >conftest.err
40353 rm -f conftest.er1
40354 cat conftest.err >&5
a848cd7e
SC
40355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40356 (exit $ac_status); } &&
5ff751d6 40357 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40359 (eval $ac_try) 2>&5
40360 ac_status=$?
40361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40362 (exit $ac_status); }; } &&
40363 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40365 (eval $ac_try) 2>&5
40366 ac_status=$?
40367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40368 (exit $ac_status); }; }; then
40369 wx_cv_func_gettimeofday_has_2_args=no
40370else
40371 echo "$as_me: failed program was:" >&5
40372sed 's/^/| /' conftest.$ac_ext >&5
40373
40374
40375 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
40376echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
40377 wx_cv_func_gettimeofday_has_2_args=unknown
40378
40379
40380fi
ac1cb8d3 40381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40382
40383fi
ac1cb8d3 40384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40385 ac_ext=c
40386ac_cpp='$CPP $CPPFLAGS'
40387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40389ac_compiler_gnu=$ac_cv_c_compiler_gnu
40390
40391
40392fi
40393echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
40394echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
40395
40396 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
40397 cat >>confdefs.h <<\_ACEOF
40398#define WX_GETTIMEOFDAY_NO_TZ 1
40399_ACEOF
40400
40401 fi
40402 fi
40403
40404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
40405fi
40406
40407
40408if test "$wxUSE_SOCKETS" = "yes"; then
40409 if test "$wxUSE_MGL" = "1"; then
40410 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
40411echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
40412 wxUSE_SOCKETS="no"
40413 fi
40414fi
40415
40416if test "$wxUSE_SOCKETS" = "yes"; then
40417 if test "$TOOLKIT" != "MSW"; then
40418 echo "$as_me:$LINENO: checking for socket" >&5
40419echo $ECHO_N "checking for socket... $ECHO_C" >&6
40420if test "${ac_cv_func_socket+set}" = set; then
40421 echo $ECHO_N "(cached) $ECHO_C" >&6
40422else
40423 cat >conftest.$ac_ext <<_ACEOF
40424/* confdefs.h. */
40425_ACEOF
40426cat confdefs.h >>conftest.$ac_ext
40427cat >>conftest.$ac_ext <<_ACEOF
40428/* end confdefs.h. */
ac1cb8d3
VS
40429/* Define socket to an innocuous variant, in case <limits.h> declares socket.
40430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40431#define socket innocuous_socket
40432
a848cd7e
SC
40433/* System header to define __stub macros and hopefully few prototypes,
40434 which can conflict with char socket (); below.
40435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40436 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 40437
a848cd7e
SC
40438#ifdef __STDC__
40439# include <limits.h>
40440#else
40441# include <assert.h>
40442#endif
ac1cb8d3
VS
40443
40444#undef socket
40445
a848cd7e
SC
40446/* Override any gcc2 internal prototype to avoid an error. */
40447#ifdef __cplusplus
40448extern "C"
40449{
40450#endif
40451/* We use char because int might match the return type of a gcc2
40452 builtin and then its argument prototype would still apply. */
40453char socket ();
40454/* The GNU C library defines this for functions which it implements
40455 to always fail with ENOSYS. Some functions are actually named
40456 something starting with __ and the normal name is an alias. */
40457#if defined (__stub_socket) || defined (__stub___socket)
40458choke me
40459#else
40460char (*f) () = socket;
40461#endif
40462#ifdef __cplusplus
40463}
40464#endif
40465
40466int
40467main ()
40468{
40469return f != socket;
40470 ;
40471 return 0;
40472}
40473_ACEOF
40474rm -f conftest.$ac_objext conftest$ac_exeext
40475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40476 (eval $ac_link) 2>conftest.er1
a848cd7e 40477 ac_status=$?
ac1cb8d3
VS
40478 grep -v '^ *+' conftest.er1 >conftest.err
40479 rm -f conftest.er1
40480 cat conftest.err >&5
a848cd7e
SC
40481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40482 (exit $ac_status); } &&
5ff751d6 40483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40485 (eval $ac_try) 2>&5
40486 ac_status=$?
40487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40488 (exit $ac_status); }; } &&
40489 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40491 (eval $ac_try) 2>&5
40492 ac_status=$?
40493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40494 (exit $ac_status); }; }; then
40495 ac_cv_func_socket=yes
40496else
40497 echo "$as_me: failed program was:" >&5
40498sed 's/^/| /' conftest.$ac_ext >&5
40499
40500ac_cv_func_socket=no
40501fi
ac1cb8d3
VS
40502rm -f conftest.err conftest.$ac_objext \
40503 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40504fi
40505echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
40506echo "${ECHO_T}$ac_cv_func_socket" >&6
40507if test $ac_cv_func_socket = yes; then
40508 :
40509else
40510
40511 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
40512echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
40513if test "${ac_cv_lib_socket_socket+set}" = set; then
40514 echo $ECHO_N "(cached) $ECHO_C" >&6
40515else
40516 ac_check_lib_save_LIBS=$LIBS
40517LIBS="-lsocket $LIBS"
40518cat >conftest.$ac_ext <<_ACEOF
40519/* confdefs.h. */
40520_ACEOF
40521cat confdefs.h >>conftest.$ac_ext
40522cat >>conftest.$ac_ext <<_ACEOF
40523/* end confdefs.h. */
40524
40525/* Override any gcc2 internal prototype to avoid an error. */
40526#ifdef __cplusplus
40527extern "C"
40528#endif
40529/* We use char because int might match the return type of a gcc2
40530 builtin and then its argument prototype would still apply. */
40531char socket ();
40532int
40533main ()
40534{
40535socket ();
40536 ;
40537 return 0;
40538}
40539_ACEOF
40540rm -f conftest.$ac_objext conftest$ac_exeext
40541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 40542 (eval $ac_link) 2>conftest.er1
a848cd7e 40543 ac_status=$?
ac1cb8d3
VS
40544 grep -v '^ *+' conftest.er1 >conftest.err
40545 rm -f conftest.er1
40546 cat conftest.err >&5
a848cd7e
SC
40547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40548 (exit $ac_status); } &&
5ff751d6 40549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40551 (eval $ac_try) 2>&5
40552 ac_status=$?
40553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40554 (exit $ac_status); }; } &&
40555 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
40556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40557 (eval $ac_try) 2>&5
40558 ac_status=$?
40559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40560 (exit $ac_status); }; }; then
40561 ac_cv_lib_socket_socket=yes
40562else
40563 echo "$as_me: failed program was:" >&5
40564sed 's/^/| /' conftest.$ac_ext >&5
40565
40566ac_cv_lib_socket_socket=no
40567fi
ac1cb8d3
VS
40568rm -f conftest.err conftest.$ac_objext \
40569 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
40570LIBS=$ac_check_lib_save_LIBS
40571fi
40572echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
40573echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
40574if test $ac_cv_lib_socket_socket = yes; then
40575 if test "$INET_LINK" != " -lsocket"; then
40576 INET_LINK="$INET_LINK -lsocket"
40577 fi
40578else
40579
40580 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
40581echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
40582 wxUSE_SOCKETS=no
40583
40584
40585fi
40586
40587
40588
40589fi
40590
40591 fi
40592fi
40593
40594if test "$wxUSE_SOCKETS" = "yes" ; then
40595 if test "$TOOLKIT" != "MSW"; then
4d4ff94c
VZ
40596 ac_ext=cc
40597ac_cpp='$CXXCPP $CPPFLAGS'
40598ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40599ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40600ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40601
40602 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
a848cd7e
SC
40603echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
40604if test "${wx_cv_type_getsockname3+set}" = set; then
40605 echo $ECHO_N "(cached) $ECHO_C" >&6
40606else
40607
40608 cat >conftest.$ac_ext <<_ACEOF
40609/* confdefs.h. */
40610_ACEOF
40611cat confdefs.h >>conftest.$ac_ext
40612cat >>conftest.$ac_ext <<_ACEOF
40613/* end confdefs.h. */
40614
40615 #include <sys/types.h>
40616 #include <sys/socket.h>
40617
40618int
40619main ()
40620{
40621
40622 socklen_t len;
40623 getsockname(0, 0, &len);
40624
40625 ;
40626 return 0;
40627}
40628_ACEOF
40629rm -f conftest.$ac_objext
40630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40631 (eval $ac_compile) 2>conftest.er1
a848cd7e 40632 ac_status=$?
ac1cb8d3
VS
40633 grep -v '^ *+' conftest.er1 >conftest.err
40634 rm -f conftest.er1
40635 cat conftest.err >&5
a848cd7e
SC
40636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40637 (exit $ac_status); } &&
5ff751d6 40638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40640 (eval $ac_try) 2>&5
40641 ac_status=$?
40642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40643 (exit $ac_status); }; } &&
40644 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40646 (eval $ac_try) 2>&5
40647 ac_status=$?
40648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649 (exit $ac_status); }; }; then
40650 wx_cv_type_getsockname3=socklen_t
40651else
40652 echo "$as_me: failed program was:" >&5
40653sed 's/^/| /' conftest.$ac_ext >&5
40654
40655
6459a506 40656 CXXFLAGS_OLD="$CXXFLAGS"
a848cd7e 40657 if test "$GCC" = yes ; then
6459a506 40658 CXXFLAGS="$CXXFLAGS -Werror"
a848cd7e
SC
40659 fi
40660
40661 cat >conftest.$ac_ext <<_ACEOF
40662/* confdefs.h. */
40663_ACEOF
40664cat confdefs.h >>conftest.$ac_ext
40665cat >>conftest.$ac_ext <<_ACEOF
40666/* end confdefs.h. */
40667
40668 #include <sys/types.h>
40669 #include <sys/socket.h>
40670
40671int
40672main ()
40673{
40674
40675 size_t len;
40676 getsockname(0, 0, &len);
40677
40678 ;
40679 return 0;
40680}
40681_ACEOF
40682rm -f conftest.$ac_objext
40683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40684 (eval $ac_compile) 2>conftest.er1
a848cd7e 40685 ac_status=$?
ac1cb8d3
VS
40686 grep -v '^ *+' conftest.er1 >conftest.err
40687 rm -f conftest.er1
40688 cat conftest.err >&5
a848cd7e
SC
40689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40690 (exit $ac_status); } &&
5ff751d6 40691 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40693 (eval $ac_try) 2>&5
40694 ac_status=$?
40695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40696 (exit $ac_status); }; } &&
40697 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40699 (eval $ac_try) 2>&5
40700 ac_status=$?
40701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40702 (exit $ac_status); }; }; then
40703 wx_cv_type_getsockname3=size_t
40704else
40705 echo "$as_me: failed program was:" >&5
40706sed 's/^/| /' conftest.$ac_ext >&5
40707
40708cat >conftest.$ac_ext <<_ACEOF
40709/* confdefs.h. */
40710_ACEOF
40711cat confdefs.h >>conftest.$ac_ext
40712cat >>conftest.$ac_ext <<_ACEOF
40713/* end confdefs.h. */
40714
40715 #include <sys/types.h>
40716 #include <sys/socket.h>
40717
40718int
40719main ()
40720{
40721
40722 int len;
40723 getsockname(0, 0, &len);
40724
40725 ;
40726 return 0;
40727}
40728_ACEOF
40729rm -f conftest.$ac_objext
40730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 40731 (eval $ac_compile) 2>conftest.er1
a848cd7e 40732 ac_status=$?
ac1cb8d3
VS
40733 grep -v '^ *+' conftest.er1 >conftest.err
40734 rm -f conftest.er1
40735 cat conftest.err >&5
a848cd7e
SC
40736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40737 (exit $ac_status); } &&
5ff751d6 40738 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
40739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40740 (eval $ac_try) 2>&5
40741 ac_status=$?
40742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40743 (exit $ac_status); }; } &&
40744 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
40745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40746 (eval $ac_try) 2>&5
40747 ac_status=$?
40748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40749 (exit $ac_status); }; }; then
40750 wx_cv_type_getsockname3=int
40751else
40752 echo "$as_me: failed program was:" >&5
40753sed 's/^/| /' conftest.$ac_ext >&5
40754
40755wx_cv_type_getsockname3=unknown
40756
40757fi
ac1cb8d3 40758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40759
40760fi
ac1cb8d3 40761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 40762
6459a506 40763 CXXFLAGS="$CXXFLAGS_OLD"
a848cd7e
SC
40764
40765
40766fi
ac1cb8d3 40767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
40768
40769fi
40770echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
40771echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
40772
40773 if test "$wx_cv_type_getsockname3" = "unknown"; then
40774 wxUSE_SOCKETS=no
40775 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40776echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40777 else
40778 cat >>confdefs.h <<_ACEOF
9e03e02d 40779#define WX_SOCKLEN_T $wx_cv_type_getsockname3
5b674b9d
DE
40780_ACEOF
40781
40782 fi
40783 echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
40784echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6
40785if test "${wx_cv_type_getsockopt5+set}" = set; then
40786 echo $ECHO_N "(cached) $ECHO_C" >&6
40787else
40788
40789 cat >conftest.$ac_ext <<_ACEOF
40790/* confdefs.h. */
40791_ACEOF
40792cat confdefs.h >>conftest.$ac_ext
40793cat >>conftest.$ac_ext <<_ACEOF
40794/* end confdefs.h. */
40795
40796 #include <sys/types.h>
40797 #include <sys/socket.h>
40798
40799int
40800main ()
40801{
40802
40803 socklen_t len;
40804 getsockopt(0, 0, 0, 0, &len);
40805
40806 ;
40807 return 0;
40808}
40809_ACEOF
40810rm -f conftest.$ac_objext
40811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40812 (eval $ac_compile) 2>conftest.er1
40813 ac_status=$?
40814 grep -v '^ *+' conftest.er1 >conftest.err
40815 rm -f conftest.er1
40816 cat conftest.err >&5
40817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818 (exit $ac_status); } &&
5ff751d6 40819 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40821 (eval $ac_try) 2>&5
40822 ac_status=$?
40823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40824 (exit $ac_status); }; } &&
40825 { ac_try='test -s conftest.$ac_objext'
40826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40827 (eval $ac_try) 2>&5
40828 ac_status=$?
40829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40830 (exit $ac_status); }; }; then
40831 wx_cv_type_getsockopt5=socklen_t
40832else
40833 echo "$as_me: failed program was:" >&5
40834sed 's/^/| /' conftest.$ac_ext >&5
40835
40836
6459a506 40837 CXXFLAGS_OLD="$CXXFLAGS"
5b674b9d 40838 if test "$GCC" = yes ; then
6459a506 40839 CXXFLAGS="$CXXFLAGS -Werror"
5b674b9d
DE
40840 fi
40841
40842 cat >conftest.$ac_ext <<_ACEOF
40843/* confdefs.h. */
40844_ACEOF
40845cat confdefs.h >>conftest.$ac_ext
40846cat >>conftest.$ac_ext <<_ACEOF
40847/* end confdefs.h. */
40848
40849 #include <sys/types.h>
40850 #include <sys/socket.h>
40851
40852int
40853main ()
40854{
40855
40856 size_t len;
40857 getsockopt(0, 0, 0, 0, &len);
40858
40859 ;
40860 return 0;
40861}
40862_ACEOF
40863rm -f conftest.$ac_objext
40864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40865 (eval $ac_compile) 2>conftest.er1
40866 ac_status=$?
40867 grep -v '^ *+' conftest.er1 >conftest.err
40868 rm -f conftest.er1
40869 cat conftest.err >&5
40870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40871 (exit $ac_status); } &&
5ff751d6 40872 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40874 (eval $ac_try) 2>&5
40875 ac_status=$?
40876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40877 (exit $ac_status); }; } &&
40878 { ac_try='test -s conftest.$ac_objext'
40879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40880 (eval $ac_try) 2>&5
40881 ac_status=$?
40882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40883 (exit $ac_status); }; }; then
40884 wx_cv_type_getsockopt5=size_t
40885else
40886 echo "$as_me: failed program was:" >&5
40887sed 's/^/| /' conftest.$ac_ext >&5
40888
40889cat >conftest.$ac_ext <<_ACEOF
40890/* confdefs.h. */
40891_ACEOF
40892cat confdefs.h >>conftest.$ac_ext
40893cat >>conftest.$ac_ext <<_ACEOF
40894/* end confdefs.h. */
40895
40896 #include <sys/types.h>
40897 #include <sys/socket.h>
40898
40899int
40900main ()
40901{
40902
40903 int len;
40904 getsockopt(0, 0, 0, 0, &len);
40905
40906 ;
40907 return 0;
40908}
40909_ACEOF
40910rm -f conftest.$ac_objext
40911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40912 (eval $ac_compile) 2>conftest.er1
40913 ac_status=$?
40914 grep -v '^ *+' conftest.er1 >conftest.err
40915 rm -f conftest.er1
40916 cat conftest.err >&5
40917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40918 (exit $ac_status); } &&
5ff751d6 40919 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5b674b9d
DE
40920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40921 (eval $ac_try) 2>&5
40922 ac_status=$?
40923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40924 (exit $ac_status); }; } &&
40925 { ac_try='test -s conftest.$ac_objext'
40926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40927 (eval $ac_try) 2>&5
40928 ac_status=$?
40929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40930 (exit $ac_status); }; }; then
40931 wx_cv_type_getsockopt5=int
40932else
40933 echo "$as_me: failed program was:" >&5
40934sed 's/^/| /' conftest.$ac_ext >&5
40935
40936wx_cv_type_getsockopt5=unknown
40937
40938fi
40939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40940
40941fi
40942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40943
6459a506 40944 CXXFLAGS="$CXXFLAGS_OLD"
5b674b9d
DE
40945
40946
40947fi
40948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40949
40950fi
40951echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
40952echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6
40953
40954 if test "$wx_cv_type_getsockopt5" = "unknown"; then
40955 wxUSE_SOCKETS=no
40956 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
40957echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
40958 else
40959 cat >>confdefs.h <<_ACEOF
40960#define SOCKOPTLEN_T $wx_cv_type_getsockopt5
a848cd7e
SC
40961_ACEOF
40962
40963 fi
4d4ff94c
VZ
40964 ac_ext=c
40965ac_cpp='$CPP $CPPFLAGS'
40966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40968ac_compiler_gnu=$ac_cv_c_compiler_gnu
40969
a848cd7e
SC
40970 fi
40971fi
40972
40973if test "$wxUSE_SOCKETS" = "yes" ; then
40974 cat >>confdefs.h <<\_ACEOF
40975#define wxUSE_SOCKETS 1
40976_ACEOF
40977
40978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
40979fi
40980
40981if test "$wxUSE_PROTOCOL" = "yes"; then
40982 if test "$wxUSE_SOCKETS" != "yes"; then
40983 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
40984echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
40985 wxUSE_PROTOCOL=no
40986 fi
40987fi
40988
40989if test "$wxUSE_PROTOCOL" = "yes"; then
40990 cat >>confdefs.h <<\_ACEOF
40991#define wxUSE_PROTOCOL 1
40992_ACEOF
40993
40994
40995 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
40996 cat >>confdefs.h <<\_ACEOF
40997#define wxUSE_PROTOCOL_HTTP 1
40998_ACEOF
40999
41000 fi
41001 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
41002 cat >>confdefs.h <<\_ACEOF
41003#define wxUSE_PROTOCOL_FTP 1
41004_ACEOF
41005
41006 fi
41007 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
41008 cat >>confdefs.h <<\_ACEOF
41009#define wxUSE_PROTOCOL_FILE 1
41010_ACEOF
41011
41012 fi
41013else
41014 if test "$wxUSE_FS_INET" = "yes"; then
41015 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
41016echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
41017 wxUSE_FS_INET="no"
41018 fi
41019fi
41020
41021if test "$wxUSE_URL" = "yes"; then
41022 if test "$wxUSE_PROTOCOL" != "yes"; then
41023 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
41024echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
41025 wxUSE_URL=no
41026 fi
41027 if test "$wxUSE_URL" = "yes"; then
41028 cat >>confdefs.h <<\_ACEOF
41029#define wxUSE_URL 1
41030_ACEOF
41031
41032 fi
41033fi
41034
41035if test "$wxUSE_FS_INET" = "yes"; then
41036 cat >>confdefs.h <<\_ACEOF
41037#define wxUSE_FS_INET 1
41038_ACEOF
41039
41040fi
41041
41042
ee45c548
MW
41043if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
41044 wxUSE_JOYSTICK=no
41045
41046 if test "$TOOLKIT" = "MSW"; then
41047 wxUSE_JOYSTICK=yes
41048
41049 elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
41050 if test "$USE_DARWIN" = 1; then
41051 echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
41052echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6
41053 ac_ext=cc
41054ac_cpp='$CXXCPP $CPPFLAGS'
41055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41058
41059 cat >conftest.$ac_ext <<_ACEOF
41060/* confdefs.h. */
41061_ACEOF
41062cat confdefs.h >>conftest.$ac_ext
41063cat >>conftest.$ac_ext <<_ACEOF
41064/* end confdefs.h. */
41065 #include <IOKit/hid/IOHIDLib.h>
41066int
41067main ()
41068{
41069 IOHIDQueueInterface *qi = NULL;
41070 IOHIDCallbackFunction cb = NULL;
41071 qi->setEventCallout(NULL, cb, NULL, NULL);
41072 ;
41073 return 0;
41074}
41075_ACEOF
41076rm -f conftest.$ac_objext
41077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41078 (eval $ac_compile) 2>conftest.er1
41079 ac_status=$?
41080 grep -v '^ *+' conftest.er1 >conftest.err
41081 rm -f conftest.er1
41082 cat conftest.err >&5
41083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41084 (exit $ac_status); } &&
5ff751d6 41085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ee45c548
MW
41086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41087 (eval $ac_try) 2>&5
41088 ac_status=$?
41089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41090 (exit $ac_status); }; } &&
41091 { ac_try='test -s conftest.$ac_objext'
41092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41093 (eval $ac_try) 2>&5
41094 ac_status=$?
41095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41096 (exit $ac_status); }; }; then
41097 wxUSE_JOYSTICK=yes
a848cd7e 41098
ee45c548
MW
41099else
41100 echo "$as_me: failed program was:" >&5
41101sed 's/^/| /' conftest.$ac_ext >&5
41102
41103fi
41104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
41105 ac_ext=c
41106ac_cpp='$CPP $CPPFLAGS'
41107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41109ac_compiler_gnu=$ac_cv_c_compiler_gnu
41110
41111 echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
41112echo "${ECHO_T}$wxUSE_JOYSTICK" >&6
41113 fi
41114
41115 else
a848cd7e
SC
41116
41117for ac_header in linux/joystick.h
41118do
41119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41120if eval "test \"\${$as_ac_Header+set}\" = set"; then
41121 echo "$as_me:$LINENO: checking for $ac_header" >&5
41122echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41123if eval "test \"\${$as_ac_Header+set}\" = set"; then
41124 echo $ECHO_N "(cached) $ECHO_C" >&6
41125fi
41126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41128else
41129 # Is the header compilable?
41130echo "$as_me:$LINENO: checking $ac_header usability" >&5
41131echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41132cat >conftest.$ac_ext <<_ACEOF
41133/* confdefs.h. */
41134_ACEOF
41135cat confdefs.h >>conftest.$ac_ext
41136cat >>conftest.$ac_ext <<_ACEOF
41137/* end confdefs.h. */
41138$ac_includes_default
41139#include <$ac_header>
41140_ACEOF
41141rm -f conftest.$ac_objext
41142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41143 (eval $ac_compile) 2>conftest.er1
a848cd7e 41144 ac_status=$?
ac1cb8d3
VS
41145 grep -v '^ *+' conftest.er1 >conftest.err
41146 rm -f conftest.er1
41147 cat conftest.err >&5
a848cd7e
SC
41148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41149 (exit $ac_status); } &&
5ff751d6 41150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
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); }; } &&
41156 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41158 (eval $ac_try) 2>&5
41159 ac_status=$?
41160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161 (exit $ac_status); }; }; then
41162 ac_header_compiler=yes
41163else
41164 echo "$as_me: failed program was:" >&5
41165sed 's/^/| /' conftest.$ac_ext >&5
41166
41167ac_header_compiler=no
41168fi
ac1cb8d3 41169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41171echo "${ECHO_T}$ac_header_compiler" >&6
41172
41173# Is the header present?
41174echo "$as_me:$LINENO: checking $ac_header presence" >&5
41175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41176cat >conftest.$ac_ext <<_ACEOF
41177/* confdefs.h. */
41178_ACEOF
41179cat confdefs.h >>conftest.$ac_ext
41180cat >>conftest.$ac_ext <<_ACEOF
41181/* end confdefs.h. */
41182#include <$ac_header>
41183_ACEOF
41184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41186 ac_status=$?
41187 grep -v '^ *+' conftest.er1 >conftest.err
41188 rm -f conftest.er1
41189 cat conftest.err >&5
41190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41191 (exit $ac_status); } >/dev/null; then
41192 if test -s conftest.err; then
41193 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41195 else
41196 ac_cpp_err=
41197 fi
41198else
41199 ac_cpp_err=yes
41200fi
41201if test -z "$ac_cpp_err"; then
41202 ac_header_preproc=yes
41203else
41204 echo "$as_me: failed program was:" >&5
41205sed 's/^/| /' conftest.$ac_ext >&5
41206
41207 ac_header_preproc=no
41208fi
41209rm -f conftest.err conftest.$ac_ext
41210echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41211echo "${ECHO_T}$ac_header_preproc" >&6
41212
41213# So? What about this header?
ac1cb8d3
VS
41214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41215 yes:no: )
a848cd7e
SC
41216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41220 ac_header_preproc=yes
a848cd7e 41221 ;;
ac1cb8d3 41222 no:yes:* )
a848cd7e
SC
41223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41235 (
41236 cat <<\_ASBOX
ac1cb8d3
VS
41237## ----------------------------------------- ##
41238## Report this to wx-dev@lists.wxwidgets.org ##
41239## ----------------------------------------- ##
a848cd7e
SC
41240_ASBOX
41241 ) |
41242 sed "s/^/$as_me: WARNING: /" >&2
41243 ;;
41244esac
41245echo "$as_me:$LINENO: checking for $ac_header" >&5
41246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41247if eval "test \"\${$as_ac_Header+set}\" = set"; then
41248 echo $ECHO_N "(cached) $ECHO_C" >&6
41249else
ac1cb8d3 41250 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41251fi
41252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41254
41255fi
41256if test `eval echo '${'$as_ac_Header'}'` = yes; then
41257 cat >>confdefs.h <<_ACEOF
41258#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41259_ACEOF
ee45c548 41260 wxUSE_JOYSTICK=yes
a848cd7e
SC
41261fi
41262
41263done
41264
ee45c548 41265 fi
4cb1d3da 41266
ee45c548
MW
41267 if test "$wxUSE_JOYSTICK" = "yes"; then
41268 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41269#define wxUSE_JOYSTICK 1
41270_ACEOF
41271
ee45c548
MW
41272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
41273 else
41274 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
41275echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
a848cd7e
SC
41276 fi
41277fi
41278
41279
41280
41281if test "$wxUSE_FONTMAP" = "yes" ; then
41282 cat >>confdefs.h <<\_ACEOF
41283#define wxUSE_FONTMAP 1
41284_ACEOF
41285
41286fi
41287
41288if test "$wxUSE_UNICODE" = "yes" ; then
41289 cat >>confdefs.h <<\_ACEOF
41290#define wxUSE_UNICODE 1
41291_ACEOF
41292
41293
41294 if test "$USE_WIN32" != 1; then
41295 wxUSE_UNICODE_MSLU=no
41296 fi
41297
41298 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
41299 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
41300echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
41301if test "${ac_cv_lib_unicows_main+set}" = set; then
41302 echo $ECHO_N "(cached) $ECHO_C" >&6
41303else
41304 ac_check_lib_save_LIBS=$LIBS
41305LIBS="-lunicows $LIBS"
41306cat >conftest.$ac_ext <<_ACEOF
41307/* confdefs.h. */
41308_ACEOF
41309cat confdefs.h >>conftest.$ac_ext
41310cat >>conftest.$ac_ext <<_ACEOF
41311/* end confdefs.h. */
41312
41313
41314int
41315main ()
41316{
41317main ();
41318 ;
41319 return 0;
41320}
41321_ACEOF
41322rm -f conftest.$ac_objext conftest$ac_exeext
41323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 41324 (eval $ac_link) 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_exeext'
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 ac_cv_lib_unicows_main=yes
41344else
41345 echo "$as_me: failed program was:" >&5
41346sed 's/^/| /' conftest.$ac_ext >&5
41347
41348ac_cv_lib_unicows_main=no
41349fi
ac1cb8d3
VS
41350rm -f conftest.err conftest.$ac_objext \
41351 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
41352LIBS=$ac_check_lib_save_LIBS
41353fi
41354echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
41355echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
41356if test $ac_cv_lib_unicows_main = yes; then
41357
41358 cat >>confdefs.h <<\_ACEOF
41359#define wxUSE_UNICODE_MSLU 1
41360_ACEOF
41361
41362
41363else
41364
41365 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41366 Applications will only run on Windows NT/2000/XP!" >&5
41367echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
41368 Applications will only run on Windows NT/2000/XP!" >&2;}
41369 wxUSE_UNICODE_MSLU=no
41370
41371fi
41372
41373 fi
41374fi
41375
41376if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
41377 cat >>confdefs.h <<\_ACEOF
41378#define wxUSE_EXPERIMENTAL_PRINTF 1
41379_ACEOF
41380
41381fi
41382
41383
41384if test "$wxUSE_POSTSCRIPT" = "yes" ; then
41385 cat >>confdefs.h <<\_ACEOF
41386#define wxUSE_POSTSCRIPT 1
41387_ACEOF
41388
41389fi
41390
41391cat >>confdefs.h <<\_ACEOF
41392#define wxUSE_AFM_FOR_POSTSCRIPT 1
41393_ACEOF
41394
41395
41396cat >>confdefs.h <<\_ACEOF
41397#define wxUSE_NORMALIZED_PS_FONTS 1
41398_ACEOF
41399
41400
41401
41402if test "$wxUSE_CONSTRAINTS" = "yes"; then
41403 cat >>confdefs.h <<\_ACEOF
41404#define wxUSE_CONSTRAINTS 1
41405_ACEOF
41406
41407 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
41408fi
41409
8a7b1113
VZ
41410if test "$wxUSE_MDI" = "yes"; then
41411 cat >>confdefs.h <<\_ACEOF
41412#define wxUSE_MDI 1
41413_ACEOF
41414
41415
41416 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41417 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41418#define wxUSE_MDI_ARCHITECTURE 1
41419_ACEOF
41420
8a7b1113
VZ
41421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
41422 fi
a848cd7e
SC
41423fi
41424
41425if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
41426 cat >>confdefs.h <<\_ACEOF
41427#define wxUSE_DOC_VIEW_ARCHITECTURE 1
41428_ACEOF
41429
41430 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
41431 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
41432 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
41433 fi
41434fi
41435
41436if test "$wxUSE_HELP" = "yes"; then
41437 cat >>confdefs.h <<\_ACEOF
41438#define wxUSE_HELP 1
41439_ACEOF
41440
41441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
41442
41443 if test "$wxUSE_MSW" = 1; then
41444 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
41445 cat >>confdefs.h <<\_ACEOF
41446#define wxUSE_MS_HTML_HELP 1
41447_ACEOF
41448
41449 fi
41450 fi
41451
41452 if test "$wxUSE_WXHTML_HELP" = "yes"; then
41453 if test "$wxUSE_HTML" = "yes"; then
41454 cat >>confdefs.h <<\_ACEOF
41455#define wxUSE_WXHTML_HELP 1
41456_ACEOF
41457
41458 else
41459 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
41460echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
41461 wxUSE_WXHTML_HELP=no
41462 fi
41463 fi
41464fi
41465
41466if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
41467 if test "$wxUSE_CONSTRAINTS" != "yes"; then
41468 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
41469echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
41470 else
41471 cat >>confdefs.h <<\_ACEOF
41472#define wxUSE_PRINTING_ARCHITECTURE 1
41473_ACEOF
41474
41475 fi
41476 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
41477fi
41478
41479if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
41480 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
41481echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
41482 { (exit 1); exit 1; }; }
41483fi
41484
41485
efdf6afe
VZ
41486if test "$wxUSE_METAFILE" = "yes"; then
41487 if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
41488 { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
41489echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
41490 wxUSE_METAFILE=no
41491 fi
41492fi
41493
41494
a848cd7e
SC
41495if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
41496 -o "$wxUSE_CLIPBOARD" = "yes" \
41497 -o "$wxUSE_OLE" = "yes" \
41498 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
41499
41500for ac_header in ole2.h
41501do
41502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41503if eval "test \"\${$as_ac_Header+set}\" = set"; then
41504 echo "$as_me:$LINENO: checking for $ac_header" >&5
41505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41506if eval "test \"\${$as_ac_Header+set}\" = set"; then
41507 echo $ECHO_N "(cached) $ECHO_C" >&6
41508fi
41509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41511else
41512 # Is the header compilable?
41513echo "$as_me:$LINENO: checking $ac_header usability" >&5
41514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
41515cat >conftest.$ac_ext <<_ACEOF
41516/* confdefs.h. */
41517_ACEOF
41518cat confdefs.h >>conftest.$ac_ext
41519cat >>conftest.$ac_ext <<_ACEOF
41520/* end confdefs.h. */
41521$ac_includes_default
41522#include <$ac_header>
41523_ACEOF
41524rm -f conftest.$ac_objext
41525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41526 (eval $ac_compile) 2>conftest.er1
a848cd7e 41527 ac_status=$?
ac1cb8d3
VS
41528 grep -v '^ *+' conftest.er1 >conftest.err
41529 rm -f conftest.er1
41530 cat conftest.err >&5
a848cd7e
SC
41531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41532 (exit $ac_status); } &&
5ff751d6 41533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41535 (eval $ac_try) 2>&5
41536 ac_status=$?
41537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41538 (exit $ac_status); }; } &&
41539 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41541 (eval $ac_try) 2>&5
41542 ac_status=$?
41543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41544 (exit $ac_status); }; }; then
41545 ac_header_compiler=yes
41546else
41547 echo "$as_me: failed program was:" >&5
41548sed 's/^/| /' conftest.$ac_ext >&5
41549
41550ac_header_compiler=no
41551fi
ac1cb8d3 41552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41553echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41554echo "${ECHO_T}$ac_header_compiler" >&6
41555
41556# Is the header present?
41557echo "$as_me:$LINENO: checking $ac_header presence" >&5
41558echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
41559cat >conftest.$ac_ext <<_ACEOF
41560/* confdefs.h. */
41561_ACEOF
41562cat confdefs.h >>conftest.$ac_ext
41563cat >>conftest.$ac_ext <<_ACEOF
41564/* end confdefs.h. */
41565#include <$ac_header>
41566_ACEOF
41567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
41568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
41569 ac_status=$?
41570 grep -v '^ *+' conftest.er1 >conftest.err
41571 rm -f conftest.er1
41572 cat conftest.err >&5
41573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41574 (exit $ac_status); } >/dev/null; then
41575 if test -s conftest.err; then
41576 ac_cpp_err=$ac_c_preproc_warn_flag
ac1cb8d3 41577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
a848cd7e
SC
41578 else
41579 ac_cpp_err=
41580 fi
41581else
41582 ac_cpp_err=yes
41583fi
41584if test -z "$ac_cpp_err"; then
41585 ac_header_preproc=yes
41586else
41587 echo "$as_me: failed program was:" >&5
41588sed 's/^/| /' conftest.$ac_ext >&5
41589
41590 ac_header_preproc=no
41591fi
41592rm -f conftest.err conftest.$ac_ext
41593echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41594echo "${ECHO_T}$ac_header_preproc" >&6
41595
41596# So? What about this header?
ac1cb8d3
VS
41597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41598 yes:no: )
a848cd7e
SC
41599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
ac1cb8d3
VS
41601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41603 ac_header_preproc=yes
a848cd7e 41604 ;;
ac1cb8d3 41605 no:yes:* )
a848cd7e
SC
41606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
ac1cb8d3
VS
41608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41609echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41613echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
a848cd7e
SC
41614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
ac1cb8d3
VS
41616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
a848cd7e
SC
41618 (
41619 cat <<\_ASBOX
ac1cb8d3
VS
41620## ----------------------------------------- ##
41621## Report this to wx-dev@lists.wxwidgets.org ##
41622## ----------------------------------------- ##
a848cd7e
SC
41623_ASBOX
41624 ) |
41625 sed "s/^/$as_me: WARNING: /" >&2
41626 ;;
41627esac
41628echo "$as_me:$LINENO: checking for $ac_header" >&5
41629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
41630if eval "test \"\${$as_ac_Header+set}\" = set"; then
41631 echo $ECHO_N "(cached) $ECHO_C" >&6
41632else
ac1cb8d3 41633 eval "$as_ac_Header=\$ac_header_preproc"
a848cd7e
SC
41634fi
41635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
41636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
41637
41638fi
41639if test `eval echo '${'$as_ac_Header'}'` = yes; then
41640 cat >>confdefs.h <<_ACEOF
41641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41642_ACEOF
41643
41644fi
41645
41646done
41647
41648
41649 if test "$ac_cv_header_ole2_h" = "yes" ; then
41650 if test "$GCC" = yes ; then
41651
41652
41653 ac_ext=cc
41654ac_cpp='$CXXCPP $CPPFLAGS'
41655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41658
41659
41660 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
41661echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
41662 cat >conftest.$ac_ext <<_ACEOF
41663/* confdefs.h. */
41664_ACEOF
41665cat confdefs.h >>conftest.$ac_ext
41666cat >>conftest.$ac_ext <<_ACEOF
41667/* end confdefs.h. */
41668#include <windows.h>
41669 #include <ole2.h>
41670int
41671main ()
41672{
41673
41674 ;
41675 return 0;
41676}
41677_ACEOF
41678rm -f conftest.$ac_objext
41679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 41680 (eval $ac_compile) 2>conftest.er1
a848cd7e 41681 ac_status=$?
ac1cb8d3
VS
41682 grep -v '^ *+' conftest.er1 >conftest.err
41683 rm -f conftest.er1
41684 cat conftest.err >&5
a848cd7e
SC
41685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41686 (exit $ac_status); } &&
5ff751d6 41687 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
41688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41689 (eval $ac_try) 2>&5
41690 ac_status=$?
41691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41692 (exit $ac_status); }; } &&
41693 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
41694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41695 (eval $ac_try) 2>&5
41696 ac_status=$?
41697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41698 (exit $ac_status); }; }; then
41699 echo "$as_me:$LINENO: result: no" >&5
41700echo "${ECHO_T}no" >&6
41701else
41702 echo "$as_me: failed program was:" >&5
41703sed 's/^/| /' conftest.$ac_ext >&5
41704
41705echo "$as_me:$LINENO: result: yes" >&5
41706echo "${ECHO_T}yes" >&6
5ff751d6 41707 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
a848cd7e 41708fi
ac1cb8d3 41709rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
41710 ac_ext=c
41711ac_cpp='$CPP $CPPFLAGS'
41712ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41713ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41714ac_compiler_gnu=$ac_cv_c_compiler_gnu
41715
a848cd7e
SC
41716 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
41717 if test "$wxUSE_OLE" = "yes" ; then
41718 cat >>confdefs.h <<\_ACEOF
41719#define wxUSE_OLE 1
41720_ACEOF
41721
0b78747f 41722 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
a848cd7e
SC
41723 fi
41724 fi
41725
41726 if test "$wxUSE_DATAOBJ" = "yes" ; then
41727 cat >>confdefs.h <<\_ACEOF
41728#define wxUSE_DATAOBJ 1
41729_ACEOF
41730
41731 fi
41732 else
41733 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
41734echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
41735
41736 wxUSE_CLIPBOARD=no
41737 wxUSE_DRAG_AND_DROP=no
41738 wxUSE_DATAOBJ=no
41739 wxUSE_OLE=no
41740 fi
41741
41742 if test "$wxUSE_METAFILE" = "yes"; then
41743 cat >>confdefs.h <<\_ACEOF
41744#define wxUSE_METAFILE 1
41745_ACEOF
41746
41747
41748 cat >>confdefs.h <<\_ACEOF
41749#define wxUSE_ENH_METAFILE 1
41750_ACEOF
41751
41752 fi
41753fi
41754
41755if test "$wxUSE_IPC" = "yes"; then
0b78747f 41756 if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
77ffb593
JS
41757 { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
41758echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
0b78747f 41759 wxUSE_IPC=no
a848cd7e
SC
41760 fi
41761
0b78747f
MW
41762 if test "$wxUSE_IPC" = "yes"; then
41763 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
41764#define wxUSE_IPC 1
41765_ACEOF
41766
0b78747f
MW
41767 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
41768 fi
a848cd7e
SC
41769fi
41770
eb730a0c 41771if test "$wxUSE_DATAOBJ" = "yes"; then
2113bc77
MW
41772 if test "$wxUSE_MGL" = 1; then
41773 { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under MGL... disabled" >&5
41774echo "$as_me: WARNING: wxDataObject not yet supported under MGL... disabled" >&2;}
41775 wxUSE_DATAOBJ=no
41776 else
41777 cat >>confdefs.h <<\_ACEOF
eb730a0c
JS
41778#define wxUSE_DATAOBJ 1
41779_ACEOF
41780
2113bc77 41781 fi
eb730a0c
JS
41782else
41783 { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
41784echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
41785 wxUSE_CLIPBOARD=no
41786 wxUSE_DRAG_AND_DROP=no
41787fi
41788
a848cd7e
SC
41789if test "$wxUSE_CLIPBOARD" = "yes"; then
41790 if test "$wxUSE_MGL" = 1; then
41791 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
41792echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
41793 wxUSE_CLIPBOARD=no
41794 fi
41795
41796 if test "$wxUSE_CLIPBOARD" = "yes"; then
41797 cat >>confdefs.h <<\_ACEOF
41798#define wxUSE_CLIPBOARD 1
41799_ACEOF
41800
a848cd7e
SC
41801 fi
41802fi
41803
41804if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
41805 if test "$wxUSE_GTK" = 1; then
41806 if test "$WXGTK12" != 1; then
41807 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
41808echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
41809 wxUSE_DRAG_AND_DROP=no
41810 fi
41811 fi
41812
41813 if test "$wxUSE_MOTIF" = 1; then
41814 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
41815echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
41816 wxUSE_DRAG_AND_DROP=no
41817 fi
41818
41819 if test "$wxUSE_X11" = 1; then
41820 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
41821echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
41822 wxUSE_DRAG_AND_DROP=no
41823 fi
41824
41825 if test "$wxUSE_MGL" = 1; then
41826 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
41827echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
41828 wxUSE_DRAG_AND_DROP=no
41829 fi
41830
41831 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
41832 cat >>confdefs.h <<\_ACEOF
41833#define wxUSE_DRAG_AND_DROP 1
41834_ACEOF
41835
41836 fi
41837
41838fi
41839
41840if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
41841 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
41842fi
41843
41844if test "$wxUSE_SPLINES" = "yes" ; then
41845 cat >>confdefs.h <<\_ACEOF
41846#define wxUSE_SPLINES 1
41847_ACEOF
41848
41849fi
41850
fbe2ca43
SN
41851if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
41852 cat >>confdefs.h <<\_ACEOF
41853#define wxUSE_MOUSEWHEEL 1
41854_ACEOF
41855
41856fi
41857
a848cd7e
SC
41858
41859USES_CONTROLS=0
41860if test "$wxUSE_CONTROLS" = "yes"; then
41861 USES_CONTROLS=1
41862fi
41863
41864if test "$wxUSE_ACCEL" = "yes"; then
41865 cat >>confdefs.h <<\_ACEOF
41866#define wxUSE_ACCEL 1
41867_ACEOF
41868
41869 USES_CONTROLS=1
41870fi
41871
41872if test "$wxUSE_BUTTON" = "yes"; then
41873 cat >>confdefs.h <<\_ACEOF
41874#define wxUSE_BUTTON 1
41875_ACEOF
41876
41877 USES_CONTROLS=1
41878fi
41879
41880if test "$wxUSE_BMPBUTTON" = "yes"; then
41881 cat >>confdefs.h <<\_ACEOF
41882#define wxUSE_BMPBUTTON 1
41883_ACEOF
41884
41885 USES_CONTROLS=1
41886fi
41887
41888if test "$wxUSE_CALCTRL" = "yes"; then
41889 cat >>confdefs.h <<\_ACEOF
41890#define wxUSE_CALENDARCTRL 1
41891_ACEOF
41892
41893 USES_CONTROLS=1
41894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
41895fi
41896
41897if test "$wxUSE_CARET" = "yes"; then
41898 cat >>confdefs.h <<\_ACEOF
41899#define wxUSE_CARET 1
41900_ACEOF
41901
41902 USES_CONTROLS=1
41903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
41904fi
41905
41906if test "$wxUSE_COMBOBOX" = "yes"; then
41907 cat >>confdefs.h <<\_ACEOF
41908#define wxUSE_COMBOBOX 1
41909_ACEOF
41910
41911 USES_CONTROLS=1
41912fi
41913
41914if test "$wxUSE_CHOICE" = "yes"; then
41915 cat >>confdefs.h <<\_ACEOF
41916#define wxUSE_CHOICE 1
41917_ACEOF
41918
41919 USES_CONTROLS=1
41920fi
41921
92bbdbcd
WS
41922if test "$wxUSE_CHOICEBOOK" = "yes"; then
41923 cat >>confdefs.h <<\_ACEOF
41924#define wxUSE_CHOICEBOOK 1
41925_ACEOF
41926
41927 USES_CONTROLS=1
41928fi
41929
a848cd7e
SC
41930if test "$wxUSE_CHECKBOX" = "yes"; then
41931 cat >>confdefs.h <<\_ACEOF
41932#define wxUSE_CHECKBOX 1
41933_ACEOF
41934
41935 USES_CONTROLS=1
41936fi
41937
41938if test "$wxUSE_CHECKLST" = "yes"; then
41939 cat >>confdefs.h <<\_ACEOF
41940#define wxUSE_CHECKLISTBOX 1
41941_ACEOF
41942
41943 USES_CONTROLS=1
41944 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
41945fi
41946
da98e9be
VZ
41947if test "$wxUSE_DATEPICKCTRL" = "yes"; then
41948 cat >>confdefs.h <<\_ACEOF
41949#define wxUSE_DATEPICKCTRL 1
41950_ACEOF
41951
41952 USES_CONTROLS=1
41953fi
41954
a848cd7e
SC
41955if test "$wxUSE_DISPLAY" = "yes"; then
41956 cat >>confdefs.h <<\_ACEOF
41957#define wxUSE_DISPLAY 1
41958_ACEOF
41959
0b78747f 41960 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
a848cd7e
SC
41961fi
41962
41963if test "$wxUSE_GAUGE" = "yes"; then
41964 cat >>confdefs.h <<\_ACEOF
41965#define wxUSE_GAUGE 1
41966_ACEOF
41967
41968 USES_CONTROLS=1
41969fi
41970
41971if test "$wxUSE_GRID" = "yes"; then
41972 cat >>confdefs.h <<\_ACEOF
41973#define wxUSE_GRID 1
41974_ACEOF
41975
41976 USES_CONTROLS=1
41977 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
41978fi
41979
41980if test "$wxUSE_IMAGLIST" = "yes"; then
41981 cat >>confdefs.h <<\_ACEOF
41982#define wxUSE_IMAGLIST 1
41983_ACEOF
41984
41985fi
41986
41987if test "$wxUSE_LISTBOOK" = "yes"; then
41988 cat >>confdefs.h <<\_ACEOF
41989#define wxUSE_LISTBOOK 1
41990_ACEOF
41991
41992 USES_CONTROLS=1
41993fi
41994
41995if test "$wxUSE_LISTBOX" = "yes"; then
41996 cat >>confdefs.h <<\_ACEOF
41997#define wxUSE_LISTBOX 1
41998_ACEOF
41999
42000 USES_CONTROLS=1
0b78747f 42001 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
a848cd7e
SC
42002fi
42003
42004if test "$wxUSE_LISTCTRL" = "yes"; then
42005 if test "$wxUSE_IMAGLIST" = "yes"; then
42006 cat >>confdefs.h <<\_ACEOF
42007#define wxUSE_LISTCTRL 1
42008_ACEOF
42009
42010 USES_CONTROLS=1
42011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
42012 else
42013 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
42014echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
42015 fi
42016fi
42017
42018if test "$wxUSE_NOTEBOOK" = "yes"; then
42019 cat >>confdefs.h <<\_ACEOF
42020#define wxUSE_NOTEBOOK 1
42021_ACEOF
42022
42023 USES_CONTROLS=1
42024 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
42025fi
42026
42027
42028if test "$wxUSE_RADIOBOX" = "yes"; then
42029 cat >>confdefs.h <<\_ACEOF
42030#define wxUSE_RADIOBOX 1
42031_ACEOF
42032
42033 USES_CONTROLS=1
42034fi
42035
42036if test "$wxUSE_RADIOBTN" = "yes"; then
42037 cat >>confdefs.h <<\_ACEOF
42038#define wxUSE_RADIOBTN 1
42039_ACEOF
42040
42041 USES_CONTROLS=1
42042fi
42043
42044if test "$wxUSE_SASH" = "yes"; then
42045 cat >>confdefs.h <<\_ACEOF
42046#define wxUSE_SASH 1
42047_ACEOF
42048
42049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
42050fi
42051
42052if test "$wxUSE_SCROLLBAR" = "yes"; then
42053 cat >>confdefs.h <<\_ACEOF
42054#define wxUSE_SCROLLBAR 1
42055_ACEOF
42056
42057 USES_CONTROLS=1
42058 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
42059fi
42060
42061if test "$wxUSE_SLIDER" = "yes"; then
42062 cat >>confdefs.h <<\_ACEOF
42063#define wxUSE_SLIDER 1
42064_ACEOF
42065
42066 USES_CONTROLS=1
42067fi
42068
42069if test "$wxUSE_SPINBTN" = "yes"; then
42070 cat >>confdefs.h <<\_ACEOF
42071#define wxUSE_SPINBTN 1
42072_ACEOF
42073
42074 USES_CONTROLS=1
42075fi
42076
42077if test "$wxUSE_SPINCTRL" = "yes"; then
42078 cat >>confdefs.h <<\_ACEOF
42079#define wxUSE_SPINCTRL 1
42080_ACEOF
42081
42082 USES_CONTROLS=1
42083fi
42084
42085if test "$wxUSE_SPLITTER" = "yes"; then
42086 cat >>confdefs.h <<\_ACEOF
42087#define wxUSE_SPLITTER 1
42088_ACEOF
42089
42090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
42091fi
42092
42093if test "$wxUSE_STATBMP" = "yes"; then
42094 cat >>confdefs.h <<\_ACEOF
42095#define wxUSE_STATBMP 1
42096_ACEOF
42097
42098 USES_CONTROLS=1
42099fi
42100
42101if test "$wxUSE_STATBOX" = "yes"; then
42102 cat >>confdefs.h <<\_ACEOF
42103#define wxUSE_STATBOX 1
42104_ACEOF
42105
42106 USES_CONTROLS=1
42107fi
42108
42109if test "$wxUSE_STATTEXT" = "yes"; then
42110 cat >>confdefs.h <<\_ACEOF
42111#define wxUSE_STATTEXT 1
42112_ACEOF
42113
42114 USES_CONTROLS=1
42115fi
42116
42117if test "$wxUSE_STATLINE" = "yes"; then
42118 cat >>confdefs.h <<\_ACEOF
42119#define wxUSE_STATLINE 1
42120_ACEOF
42121
42122 USES_CONTROLS=1
42123fi
42124
42125if test "$wxUSE_STATUSBAR" = "yes"; then
da4486fb
VZ
42126 cat >>confdefs.h <<\_ACEOF
42127#define wxUSE_NATIVE_STATUSBAR 1
42128_ACEOF
42129
a848cd7e
SC
42130 cat >>confdefs.h <<\_ACEOF
42131#define wxUSE_STATUSBAR 1
42132_ACEOF
42133
42134 USES_CONTROLS=1
42135
42136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
42137fi
42138
42139if test "$wxUSE_TABDIALOG" = "yes"; then
42140 cat >>confdefs.h <<\_ACEOF
42141#define wxUSE_TAB_DIALOG 1
42142_ACEOF
42143
a848cd7e
SC
42144fi
42145
42146if test "$wxUSE_TEXTCTRL" = "yes"; then
42147 cat >>confdefs.h <<\_ACEOF
42148#define wxUSE_TEXTCTRL 1
42149_ACEOF
42150
42151 USES_CONTROLS=1
42152 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
42153fi
42154
42155if test "$wxUSE_TOGGLEBTN" = "yes"; then
42156 if test "$wxUSE_COCOA" = 1 ; then
42157 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
42158echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
42159 wxUSE_TOGGLEBTN=no
42160 fi
42161 if test "$wxUSE_UNIVERSAL" = "yes"; then
42162 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
42163echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
42164 wxUSE_TOGGLEBTN=no
42165 fi
42166
42167 if test "$wxUSE_TOGGLEBTN" = "yes"; then
42168 cat >>confdefs.h <<\_ACEOF
42169#define wxUSE_TOGGLEBTN 1
42170_ACEOF
42171
42172 USES_CONTROLS=1
42173 fi
42174fi
42175
42176if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
42177 cat >>confdefs.h <<\_ACEOF
42178#define wxUSE_TOOLBAR_SIMPLE 1
42179_ACEOF
42180
42181 wxUSE_TOOLBAR="yes"
42182 USES_CONTROLS=1
42183fi
42184
42185if test "$wxUSE_TOOLBAR" = "yes"; then
42186 cat >>confdefs.h <<\_ACEOF
42187#define wxUSE_TOOLBAR 1
42188_ACEOF
42189
42190 USES_CONTROLS=1
42191
42192 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
42193 wxUSE_TOOLBAR_NATIVE="yes"
42194 fi
42195
42196 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
42197 cat >>confdefs.h <<\_ACEOF
42198#define wxUSE_TOOLBAR_NATIVE 1
42199_ACEOF
42200
42201 USES_CONTROLS=1
42202 fi
42203
42204 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
42205fi
42206
42207if test "$wxUSE_TOOLTIPS" = "yes"; then
42208 if test "$wxUSE_MOTIF" = 1; then
42209 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
42210echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
42211 else
42212 if test "$wxUSE_UNIVERSAL" = "yes"; then
42213 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
42214echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
42215 else
42216 cat >>confdefs.h <<\_ACEOF
42217#define wxUSE_TOOLTIPS 1
42218_ACEOF
42219
42220 fi
42221 fi
42222fi
42223
0093c2fc
VZ
42224if test "$wxUSE_TREEBOOK" = "yes"; then
42225 cat >>confdefs.h <<\_ACEOF
42226#define wxUSE_TREEBOOK 1
42227_ACEOF
42228
42229 USES_CONTROLS=1
42230fi
42231
a848cd7e
SC
42232if test "$wxUSE_TREECTRL" = "yes"; then
42233 if test "$wxUSE_IMAGLIST" = "yes"; then
42234 cat >>confdefs.h <<\_ACEOF
42235#define wxUSE_TREECTRL 1
42236_ACEOF
42237
42238 USES_CONTROLS=1
42239 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
42240 else
42241 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
42242echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
42243 fi
42244fi
42245
42246if test "$wxUSE_POPUPWIN" = "yes"; then
42247 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42248 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
42249echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
42250 else
42251 if test "$wxUSE_PM" = 1; then
42252 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
42253echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
42254 else
42255 cat >>confdefs.h <<\_ACEOF
42256#define wxUSE_POPUPWIN 1
42257_ACEOF
42258
0b78747f 42259 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
a848cd7e
SC
42260
42261 USES_CONTROLS=1
42262 fi
42263 fi
42264fi
42265
0dcd06dd 42266if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
b843b628
MB
42267 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
42268 { echo "$as_me:$LINENO: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&5
42269echo "$as_me: WARNING: Dialup manager not yet supported under Mac OS X... disabled" >&2;}
42270 else
42271 cat >>confdefs.h <<\_ACEOF
42272#define wxUSE_DIALUP_MANAGER 1
42273_ACEOF
42274
42275 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
42276 fi
42277fi
42278
a848cd7e
SC
42279if test "$wxUSE_TIPWINDOW" = "yes"; then
42280 if test "$wxUSE_PM" = 1; then
42281 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
42282echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
42283 else
42284 cat >>confdefs.h <<\_ACEOF
42285#define wxUSE_TIPWINDOW 1
42286_ACEOF
42287
42288 fi
42289fi
42290
42291if test "$USES_CONTROLS" = 1; then
42292 cat >>confdefs.h <<\_ACEOF
42293#define wxUSE_CONTROLS 1
42294_ACEOF
42295
42296fi
42297
42298
42299if test "$wxUSE_ACCESSIBILITY" = "yes"; then
42300 cat >>confdefs.h <<\_ACEOF
42301#define wxUSE_ACCESSIBILITY 1
42302_ACEOF
42303
42304 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
42305fi
42306
38b4a946
VZ
42307if test "$wxUSE_DC_CACHEING" = "yes"; then
42308 cat >>confdefs.h <<\_ACEOF
42309#define wxUSE_DC_CACHEING 1
42310_ACEOF
42311
42312fi
42313
a848cd7e
SC
42314if test "$wxUSE_DRAGIMAGE" = "yes"; then
42315 cat >>confdefs.h <<\_ACEOF
42316#define wxUSE_DRAGIMAGE 1
42317_ACEOF
42318
42319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
42320fi
42321
42322if test "$wxUSE_EXCEPTIONS" = "yes"; then
07bea8f0
VS
42323 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
42324 { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
42325echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
42326 else
42327 cat >>confdefs.h <<\_ACEOF
a848cd7e
SC
42328#define wxUSE_EXCEPTIONS 1
42329_ACEOF
42330
07bea8f0
VS
42331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
42332 fi
a848cd7e
SC
42333fi
42334
42335USE_HTML=0
42336if test "$wxUSE_HTML" = "yes"; then
42337 cat >>confdefs.h <<\_ACEOF
42338#define wxUSE_HTML 1
42339_ACEOF
42340
42341 USE_HTML=1
42342 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
de59c161
RD
42343 if test "$wxUSE_MAC" = 1; then
42344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
42345 fi
a848cd7e 42346fi
646b6ec1 42347if test "$wxUSE_WEBKIT" = "yes"; then
1e9e8aba 42348 if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
07bea8f0
VS
42349 old_CPPFLAGS="$CPPFLAGS"
42350 CPPFLAGS="$CPPFLAGS -x objective-c++"
42351 echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
42352echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6
42353if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
42354 echo $ECHO_N "(cached) $ECHO_C" >&6
42355else
42356 cat >conftest.$ac_ext <<_ACEOF
42357/* confdefs.h. */
42358_ACEOF
42359cat confdefs.h >>conftest.$ac_ext
42360cat >>conftest.$ac_ext <<_ACEOF
42361/* end confdefs.h. */
42362#include <Carbon/Carbon.h>
42363
42364#include <WebKit/HIWebView.h>
42365_ACEOF
42366rm -f conftest.$ac_objext
42367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42368 (eval $ac_compile) 2>conftest.er1
42369 ac_status=$?
42370 grep -v '^ *+' conftest.er1 >conftest.err
42371 rm -f conftest.er1
42372 cat conftest.err >&5
42373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42374 (exit $ac_status); } &&
5ff751d6 42375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
07bea8f0
VS
42376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42377 (eval $ac_try) 2>&5
42378 ac_status=$?
42379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42380 (exit $ac_status); }; } &&
42381 { ac_try='test -s conftest.$ac_objext'
42382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42383 (eval $ac_try) 2>&5
42384 ac_status=$?
42385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42386 (exit $ac_status); }; }; then
42387 ac_cv_header_WebKit_HIWebView_h=yes
42388else
42389 echo "$as_me: failed program was:" >&5
42390sed 's/^/| /' conftest.$ac_ext >&5
42391
42392ac_cv_header_WebKit_HIWebView_h=no
42393fi
42394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
42395fi
42396echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
42397echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6
42398if test $ac_cv_header_WebKit_HIWebView_h = yes; then
42399
42400 cat >>confdefs.h <<\_ACEOF
646b6ec1
VS
42401#define wxUSE_WEBKIT 1
42402_ACEOF
42403
07bea8f0
VS
42404 WEBKIT_LINK="-framework WebKit"
42405
42406else
42407
42408 { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
42409echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
42410 wxUSE_WEBKIT=no
42411
646b6ec1
VS
42412fi
42413
07bea8f0
VS
42414
42415 CPPFLAGS="$old_CPPFLAGS"
42416 elif test "$wxUSE_COCOA" = 1; then
42417 cat >>confdefs.h <<\_ACEOF
42418#define wxUSE_WEBKIT 1
42419_ACEOF
42420
42421 else
42422 wxUSE_WEBKIT=no
42423 fi
42424fi
42425
9a8f0513
VS
42426USE_XRC=0
42427if test "$wxUSE_XRC" = "yes"; then
d2ebf0b7
VS
42428 if test "$wxUSE_XML" != "yes"; then
42429 { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
42430echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
42431 wxUSE_XRC=no
42432 else
42433 cat >>confdefs.h <<\_ACEOF
9a8f0513
VS
42434#define wxUSE_XRC 1
42435_ACEOF
42436
d2ebf0b7
VS
42437 USE_XRC=1
42438 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
42439 fi
9a8f0513 42440fi
07bea8f0 42441
a848cd7e
SC
42442if test "$wxUSE_MENUS" = "yes"; then
42443 cat >>confdefs.h <<\_ACEOF
42444#define wxUSE_MENUS 1
42445_ACEOF
42446
42447 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
42448fi
42449
42450if test "$wxUSE_METAFILE" = "yes"; then
42451 cat >>confdefs.h <<\_ACEOF
42452#define wxUSE_METAFILE 1
42453_ACEOF
42454
42455fi
42456
42457if test "$wxUSE_MIMETYPE" = "yes"; then
42458 cat >>confdefs.h <<\_ACEOF
42459#define wxUSE_MIMETYPE 1
42460_ACEOF
42461
42462fi
42463
42464if test "$wxUSE_MINIFRAME" = "yes"; then
42465 cat >>confdefs.h <<\_ACEOF
42466#define wxUSE_MINIFRAME 1
42467_ACEOF
42468
42469 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
42470fi
42471
42472if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
42473 cat >>confdefs.h <<\_ACEOF
42474#define wxUSE_SYSTEM_OPTIONS 1
42475_ACEOF
42476
42477 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
a49baeab 42478 "$TOOLKIT" = "MOTIF" -o "$TOOLKIT" = "COCOA"; then
a848cd7e
SC
42479 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
42480 fi
42481fi
42482
42483
42484if test "$wxUSE_VALIDATORS" = "yes"; then
42485 cat >>confdefs.h <<\_ACEOF
42486#define wxUSE_VALIDATORS 1
42487_ACEOF
42488
42489 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
42490fi
42491
42492if test "$wxUSE_PALETTE" = "yes" ; then
42493 cat >>confdefs.h <<\_ACEOF
42494#define wxUSE_PALETTE 1
42495_ACEOF
42496
42497fi
42498
42499if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
42500 LIBS=" -lunicows $LIBS"
42501fi
42502
91dea314
MW
42503USE_RICHTEXT=0
42504if test "$wxUSE_RICHTEXT" = "yes"; then
42505 cat >>confdefs.h <<\_ACEOF
42506#define wxUSE_RICHTEXT 1
42507_ACEOF
42508
42509 USE_RICHTEXT=1
42510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
42511fi
42512
a848cd7e
SC
42513
42514if test "$wxUSE_IMAGE" = "yes" ; then
42515 cat >>confdefs.h <<\_ACEOF
42516#define wxUSE_IMAGE 1
42517_ACEOF
42518
42519
42520 if test "$wxUSE_GIF" = "yes" ; then
42521 cat >>confdefs.h <<\_ACEOF
42522#define wxUSE_GIF 1
42523_ACEOF
42524
42525 fi
42526
42527 if test "$wxUSE_PCX" = "yes" ; then
42528 cat >>confdefs.h <<\_ACEOF
42529#define wxUSE_PCX 1
42530_ACEOF
42531
42532 fi
42533
42534 if test "$wxUSE_IFF" = "yes" ; then
42535 cat >>confdefs.h <<\_ACEOF
42536#define wxUSE_IFF 1
42537_ACEOF
42538
42539 fi
42540
42541 if test "$wxUSE_PNM" = "yes" ; then
42542 cat >>confdefs.h <<\_ACEOF
42543#define wxUSE_PNM 1
42544_ACEOF
42545
42546 fi
42547
42548 if test "$wxUSE_XPM" = "yes" ; then
42549 cat >>confdefs.h <<\_ACEOF
42550#define wxUSE_XPM 1
42551_ACEOF
42552
42553 fi
42554
42555 if test "$wxUSE_ICO_CUR" = "yes" ; then
42556 cat >>confdefs.h <<\_ACEOF
42557#define wxUSE_ICO_CUR 1
42558_ACEOF
42559
42560 fi
42561fi
42562
42563
42564if test "$wxUSE_CHOICEDLG" = "yes"; then
42565 cat >>confdefs.h <<\_ACEOF
42566#define wxUSE_CHOICEDLG 1
42567_ACEOF
42568
42569fi
42570
42571if test "$wxUSE_COLOURDLG" = "yes"; then
42572 cat >>confdefs.h <<\_ACEOF
42573#define wxUSE_COLOURDLG 1
42574_ACEOF
42575
42576fi
42577
42578if test "$wxUSE_FILEDLG" = "yes"; then
42579 cat >>confdefs.h <<\_ACEOF
42580#define wxUSE_FILEDLG 1
42581_ACEOF
42582
42583fi
42584
42585if test "$wxUSE_FINDREPLDLG" = "yes"; then
42586 cat >>confdefs.h <<\_ACEOF
42587#define wxUSE_FINDREPLDLG 1
42588_ACEOF
42589
42590fi
42591
42592if test "$wxUSE_FONTDLG" = "yes"; then
42593 cat >>confdefs.h <<\_ACEOF
42594#define wxUSE_FONTDLG 1
42595_ACEOF
42596
42597fi
42598
42599if test "$wxUSE_DIRDLG" = "yes"; then
42600 if test "$wxUSE_TREECTRL" != "yes"; then
42601 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
42602echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
42603 else
42604 cat >>confdefs.h <<\_ACEOF
42605#define wxUSE_DIRDLG 1
42606_ACEOF
42607
42608 fi
42609fi
42610
42611if test "$wxUSE_MSGDLG" = "yes"; then
42612 cat >>confdefs.h <<\_ACEOF
42613#define wxUSE_MSGDLG 1
42614_ACEOF
42615
42616fi
42617
42618if test "$wxUSE_NUMBERDLG" = "yes"; then
42619 cat >>confdefs.h <<\_ACEOF
42620#define wxUSE_NUMBERDLG 1
42621_ACEOF
42622
42623fi
42624
42625if test "$wxUSE_PROGRESSDLG" = "yes"; then
42626 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42627 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
42628echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
42629 else
42630 cat >>confdefs.h <<\_ACEOF
42631#define wxUSE_PROGRESSDLG 1
42632_ACEOF
42633
42634 fi
42635fi
42636
42637if test "$wxUSE_SPLASH" = "yes"; then
42638 cat >>confdefs.h <<\_ACEOF
42639#define wxUSE_SPLASH 1
42640_ACEOF
42641
2057db16 42642 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
a848cd7e
SC
42643fi
42644
42645if test "$wxUSE_STARTUP_TIPS" = "yes"; then
42646 if test "$wxUSE_CONSTRAINTS" != "yes"; then
42647 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
42648echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
42649 else
42650 cat >>confdefs.h <<\_ACEOF
42651#define wxUSE_STARTUP_TIPS 1
42652_ACEOF
42653
42654 fi
42655fi
42656
42657if test "$wxUSE_TEXTDLG" = "yes"; then
42658 cat >>confdefs.h <<\_ACEOF
42659#define wxUSE_TEXTDLG 1
42660_ACEOF
42661
42662fi
42663
42664if test "$wxUSE_WIZARDDLG" = "yes"; then
42665 cat >>confdefs.h <<\_ACEOF
42666#define wxUSE_WIZARDDLG 1
42667_ACEOF
42668
42669 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
42670fi
42671
42672
ce756cb0 42673if test "$wxUSE_MEDIACTRL" = "yes"; then
ce756cb0
RN
42674 if test "$wxUSE_GTK" = 1; then
42675 wxUSE_GSTREAMER="yes"
42676
ce756cb0 42677
dae87f93 42678 succeeded=no
ce756cb0 42679
dae87f93
RN
42680 if test -z "$PKG_CONFIG"; then
42681 # Extract the first word of "pkg-config", so it can be a program name with args.
42682set dummy pkg-config; ac_word=$2
42683echo "$as_me:$LINENO: checking for $ac_word" >&5
42684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42685if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
42686 echo $ECHO_N "(cached) $ECHO_C" >&6
42687else
42688 case $PKG_CONFIG in
42689 [\\/]* | ?:[\\/]*)
42690 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
42691 ;;
42692 *)
42693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42694for as_dir in $PATH
42695do
42696 IFS=$as_save_IFS
42697 test -z "$as_dir" && as_dir=.
42698 for ac_exec_ext in '' $ac_executable_extensions; do
42699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42700 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
42701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42702 break 2
42703 fi
42704done
42705done
42706
42707 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
42708 ;;
42709esac
42710fi
42711PKG_CONFIG=$ac_cv_path_PKG_CONFIG
42712
42713if test -n "$PKG_CONFIG"; then
42714 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
42715echo "${ECHO_T}$PKG_CONFIG" >&6
42716else
42717 echo "$as_me:$LINENO: result: no" >&5
42718echo "${ECHO_T}no" >&6
42719fi
42720
42721 fi
42722
42723 if test "$PKG_CONFIG" = "no" ; then
42724 echo "*** The pkg-config script could not be found. Make sure it is"
42725 echo "*** in your path, or set the PKG_CONFIG environment variable"
42726 echo "*** to the full path to pkg-config."
42727 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
42728 else
42729 PKG_CONFIG_MIN_VERSION=0.9.0
42730 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
42731 echo "$as_me:$LINENO: checking for gstreamer-0.8" >&5
42732echo $ECHO_N "checking for gstreamer-0.8... $ECHO_C" >&6
42733
42734 if $PKG_CONFIG --exists "gstreamer-0.8" ; then
42735 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42736echo "${ECHO_T}yes" >&6
dae87f93 42737 succeeded=yes
ce756cb0 42738
dae87f93
RN
42739 echo "$as_me:$LINENO: checking GSTREAMER_CFLAGS" >&5
42740echo $ECHO_N "checking GSTREAMER_CFLAGS... $ECHO_C" >&6
42741 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.8"`
42742 echo "$as_me:$LINENO: result: $GSTREAMER_CFLAGS" >&5
42743echo "${ECHO_T}$GSTREAMER_CFLAGS" >&6
42744
42745 echo "$as_me:$LINENO: checking GSTREAMER_LIBS" >&5
42746echo $ECHO_N "checking GSTREAMER_LIBS... $ECHO_C" >&6
42747 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.8"`
42748 echo "$as_me:$LINENO: result: $GSTREAMER_LIBS" >&5
42749echo "${ECHO_T}$GSTREAMER_LIBS" >&6
42750 else
42751 GSTREAMER_CFLAGS=""
42752 GSTREAMER_LIBS=""
42753 ## If we have a custom action on failure, don't print errors, but
42754 ## do set a variable so people can do so.
42755 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-0.8"`
ce756cb0 42756
dae87f93
RN
42757 fi
42758
42759
42760
42761 else
42762 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
42763 echo "*** See http://www.freedesktop.org/software/pkgconfig"
42764 fi
42765 fi
42766
42767 if test $succeeded = yes; then
42768
42769 CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
42770 LIBS="$LIBS $GSTREAMER_LIBS -lgstplay-0.8"
ce756cb0 42771
ce756cb0 42772 else
dae87f93
RN
42773
42774 { echo "$as_me:$LINENO: WARNING: GStreamer installation not found" >&5
42775echo "$as_me: WARNING: GStreamer installation not found" >&2;}
42776 wxUSE_GSTREAMER="no"
42777
42778 fi
42779
42780
42781
42782
42783
42784 if test "x$GST_INSPECT" == "x"; then
42785 # Extract the first word of "gst-inspect", so it can be a program name with args.
42786set dummy gst-inspect; ac_word=$2
42787echo "$as_me:$LINENO: checking for $ac_word" >&5
42788echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
42789if test "${ac_cv_prog_GST_INSPECT+set}" = set; then
42790 echo $ECHO_N "(cached) $ECHO_C" >&6
42791else
42792 if test -n "$GST_INSPECT"; then
42793 ac_cv_prog_GST_INSPECT="$GST_INSPECT" # Let the user override the test.
42794else
42795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42796for as_dir in $PATH
42797do
42798 IFS=$as_save_IFS
42799 test -z "$as_dir" && as_dir=.
42800 for ac_exec_ext in '' $ac_executable_extensions; do
42801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
42802 ac_cv_prog_GST_INSPECT="gst-inspect"
42803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42804 break 2
ce756cb0 42805 fi
dae87f93
RN
42806done
42807done
42808
42809fi
42810fi
42811GST_INSPECT=$ac_cv_prog_GST_INSPECT
42812if test -n "$GST_INSPECT"; then
42813 echo "$as_me:$LINENO: result: $GST_INSPECT" >&5
42814echo "${ECHO_T}$GST_INSPECT" >&6
42815else
42816 echo "$as_me:$LINENO: result: no" >&5
42817echo "${ECHO_T}no" >&6
42818fi
42819
42820 fi
42821
42822 if test "x$GST_INSPECT" != "x"; then
42823 echo "$as_me:$LINENO: checking GStreamer element xvimagesink" >&5
42824echo $ECHO_N "checking GStreamer element xvimagesink... $ECHO_C" >&6
42825 if $GST_INSPECT xvimagesink > /dev/null 2> /dev/null ; then
42826 echo "$as_me:$LINENO: result: found." >&5
42827echo "${ECHO_T}found." >&6
ce756cb0 42828
ce756cb0 42829 else
dae87f93
RN
42830 echo "$as_me:$LINENO: result: not found." >&5
42831echo "${ECHO_T}not found." >&6
42832
42833 wxUSE_GSTREAMER="no"
42834 { echo "$as_me:$LINENO: WARNING: x video sink not found - cannot use GStreamer" >&5
42835echo "$as_me: WARNING: x video sink not found - cannot use GStreamer" >&2;}
42836
42837 fi
42838 fi
42839
42840
42841 echo "$as_me:$LINENO: checking for gst/xoverlay/xoverlay.h" >&5
42842echo $ECHO_N "checking for gst/xoverlay/xoverlay.h... $ECHO_C" >&6
42843if test "${ac_cv_header_gst_xoverlay_xoverlay_h+set}" = set; then
42844 echo $ECHO_N "(cached) $ECHO_C" >&6
42845else
42846 cat >conftest.$ac_ext <<_ACEOF
ce756cb0
RN
42847/* confdefs.h. */
42848_ACEOF
42849cat confdefs.h >>conftest.$ac_ext
42850cat >>conftest.$ac_ext <<_ACEOF
42851/* end confdefs.h. */
dae87f93 42852#include <gst/gst.h>
ce756cb0 42853
dae87f93 42854#include <gst/xoverlay/xoverlay.h>
ce756cb0
RN
42855_ACEOF
42856rm -f conftest.$ac_objext
42857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
42858 (eval $ac_compile) 2>conftest.er1
42859 ac_status=$?
42860 grep -v '^ *+' conftest.er1 >conftest.err
42861 rm -f conftest.er1
42862 cat conftest.err >&5
42863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42864 (exit $ac_status); } &&
5ff751d6 42865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ce756cb0
RN
42866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42867 (eval $ac_try) 2>&5
42868 ac_status=$?
42869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42870 (exit $ac_status); }; } &&
42871 { ac_try='test -s conftest.$ac_objext'
42872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42873 (eval $ac_try) 2>&5
42874 ac_status=$?
42875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42876 (exit $ac_status); }; }; then
dae87f93 42877 ac_cv_header_gst_xoverlay_xoverlay_h=yes
ce756cb0
RN
42878else
42879 echo "$as_me: failed program was:" >&5
42880sed 's/^/| /' conftest.$ac_ext >&5
42881
dae87f93 42882ac_cv_header_gst_xoverlay_xoverlay_h=no
ce756cb0
RN
42883fi
42884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dae87f93
RN
42885fi
42886echo "$as_me:$LINENO: result: $ac_cv_header_gst_xoverlay_xoverlay_h" >&5
42887echo "${ECHO_T}$ac_cv_header_gst_xoverlay_xoverlay_h" >&6
42888if test $ac_cv_header_gst_xoverlay_xoverlay_h = yes; then
42889 :
42890else
ce756cb0 42891
dae87f93
RN
42892 wxUSE_GSTREAMER="no"
42893 { echo "$as_me:$LINENO: WARNING: xoverlay header not found, cannot use GStreamer" >&5
42894echo "$as_me: WARNING: xoverlay header not found, cannot use GStreamer" >&2;}
ce756cb0 42895
dae87f93 42896fi
ce756cb0 42897
dae87f93
RN
42898
42899
42900 echo "$as_me:$LINENO: checking for gstplay 0.8" >&5
ce756cb0
RN
42901echo $ECHO_N "checking for gstplay 0.8... $ECHO_C" >&6
42902
0ad5d837
VZ
42903 ac_find_libraries=
42904 for ac_dir in $SEARCH_LIB;
ce756cb0 42905 do
3eca31dc 42906 for ac_extension in a so sl dylib dll.a; do
ce756cb0
RN
42907 if test -f "$ac_dir/libgstplay-0.8.$ac_extension"; then
42908 ac_find_libraries=$ac_dir
42909 break 2
42910 fi
42911 done
42912 done
42913
ce756cb0 42914
dae87f93
RN
42915 if test "$ac_find_libraries" = "" ; then
42916 echo "$as_me:$LINENO: result: no" >&5
42917echo "${ECHO_T}no" >&6
42918 wxUSE_GSTREAMER="no"
42919 else
42920 echo "$as_me:$LINENO: result: yes" >&5
ce756cb0 42921echo "${ECHO_T}yes" >&6
dae87f93 42922 fi
ce756cb0 42923
dae87f93
RN
42924 if test "$wxUSE_GSTREAMER" = "yes"; then
42925 cat >>confdefs.h <<\_ACEOF
ce756cb0
RN
42926#define wxUSE_GSTREAMER 1
42927_ACEOF
42928
dae87f93
RN
42929 echo "$as_me:$LINENO: result: GStreamer detection successful" >&5
42930echo "${ECHO_T}GStreamer detection successful" >&6
ce756cb0
RN
42931 fi
42932 fi
42933 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
42934 cat >>confdefs.h <<\_ACEOF
42935#define wxUSE_MEDIACTRL 1
42936_ACEOF
42937
42938fi
42939
42940
a848cd7e
SC
42941if test "$cross_compiling" = "yes"; then
42942 OSINFO="\"$host\""
42943else
42944 OSINFO=`uname -s -r -m`
42945 OSINFO="\"$OSINFO\""
42946fi
42947
42948cat >>confdefs.h <<_ACEOF
42949#define WXWIN_OS_DESCRIPTION $OSINFO
42950_ACEOF
42951
42952
42953
42954if test "x$prefix" != "xNONE"; then
42955 wxPREFIX=$prefix
42956else
42957 wxPREFIX=$ac_default_prefix
42958fi
42959
42960cat >>confdefs.h <<_ACEOF
42961#define wxINSTALL_PREFIX "$wxPREFIX"
42962_ACEOF
42963
42964
a848cd7e
SC
42965
42966
42967CORE_BASE_LIBS="net base"
42968CORE_GUI_LIBS="adv core"
42969
42970if test "$wxUSE_XML" = "yes" ; then
42971 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
42972fi
42973if test "$wxUSE_ODBC" != "no" ; then
42974 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
42975 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
42976fi
42977if test "$wxUSE_HTML" = "yes" ; then
42978 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
42979fi
61639efb
VZ
42980if test "$wxUSE_DEBUGREPORT" = "yes" ; then
42981 CORE_GUI_LIBS="qa $CORE_GUI_LIBS"
42982fi
9a8f0513
VS
42983if test "$wxUSE_XRC" = "yes" ; then
42984 CORE_GUI_LIBS="xrc $CORE_GUI_LIBS"
42985fi
a848cd7e
SC
42986
42987if test "$wxUSE_GUI" != "yes"; then
42988 CORE_GUI_LIBS=""
42989fi
42990
42991
42992
42993
42994
42995
42996
42997
42998if test "$wxUSE_MAC" = 1 ; then
a98bf0c0 42999 if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
1e9e8aba
DE
43000 if test "$USE_DARWIN" = 1; then
43001 LDFLAGS="$LDFLAGS -framework QuickTime"
43002 else
43003 LDFLAGS="$LDFLAGS -lQuickTimeLib"
43004 fi
07bea8f0 43005 fi
5dcf30a0 43006 if test "$USE_DARWIN" = 1; then
1e9e8aba
DE
43007 LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
43008 else
43009 LDFLAGS="$LDFLAGS -lCarbonLib"
5dcf30a0 43010 fi
a848cd7e
SC
43011fi
43012if test "$wxUSE_COCOA" = 1 ; then
4cb1d3da 43013 LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
4fc81cbc
RN
43014 if test "$wxUSE_MEDIACTRL" = "yes"; then
43015 LDFLAGS="$LDFLAGS -framework QuickTime"
43016 fi
a848cd7e 43017fi
19b27e78
MW
43018if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
43019 LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
43020fi
a848cd7e
SC
43021
43022
43023LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
43024
43025have_cos=0
43026have_floor=0
43027
43028for ac_func in cos
43029do
43030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43031echo "$as_me:$LINENO: checking for $ac_func" >&5
43032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43033if eval "test \"\${$as_ac_var+set}\" = set"; then
43034 echo $ECHO_N "(cached) $ECHO_C" >&6
43035else
43036 cat >conftest.$ac_ext <<_ACEOF
43037/* confdefs.h. */
43038_ACEOF
43039cat confdefs.h >>conftest.$ac_ext
43040cat >>conftest.$ac_ext <<_ACEOF
43041/* end confdefs.h. */
ac1cb8d3
VS
43042/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43044#define $ac_func innocuous_$ac_func
43045
a848cd7e
SC
43046/* System header to define __stub macros and hopefully few prototypes,
43047 which can conflict with char $ac_func (); below.
43048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43049 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43050
a848cd7e
SC
43051#ifdef __STDC__
43052# include <limits.h>
43053#else
43054# include <assert.h>
43055#endif
ac1cb8d3
VS
43056
43057#undef $ac_func
43058
a848cd7e
SC
43059/* Override any gcc2 internal prototype to avoid an error. */
43060#ifdef __cplusplus
43061extern "C"
43062{
43063#endif
43064/* We use char because int might match the return type of a gcc2
43065 builtin and then its argument prototype would still apply. */
43066char $ac_func ();
43067/* The GNU C library defines this for functions which it implements
43068 to always fail with ENOSYS. Some functions are actually named
43069 something starting with __ and the normal name is an alias. */
43070#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43071choke me
43072#else
43073char (*f) () = $ac_func;
43074#endif
43075#ifdef __cplusplus
43076}
43077#endif
43078
43079int
43080main ()
43081{
43082return f != $ac_func;
43083 ;
43084 return 0;
43085}
43086_ACEOF
43087rm -f conftest.$ac_objext conftest$ac_exeext
43088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43089 (eval $ac_link) 2>conftest.er1
a848cd7e 43090 ac_status=$?
ac1cb8d3
VS
43091 grep -v '^ *+' conftest.er1 >conftest.err
43092 rm -f conftest.er1
43093 cat conftest.err >&5
a848cd7e
SC
43094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43095 (exit $ac_status); } &&
5ff751d6 43096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43098 (eval $ac_try) 2>&5
43099 ac_status=$?
43100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43101 (exit $ac_status); }; } &&
43102 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43104 (eval $ac_try) 2>&5
43105 ac_status=$?
43106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43107 (exit $ac_status); }; }; then
43108 eval "$as_ac_var=yes"
43109else
43110 echo "$as_me: failed program was:" >&5
43111sed 's/^/| /' conftest.$ac_ext >&5
43112
43113eval "$as_ac_var=no"
43114fi
ac1cb8d3
VS
43115rm -f conftest.err conftest.$ac_objext \
43116 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43117fi
43118echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43119echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43120if test `eval echo '${'$as_ac_var'}'` = yes; then
43121 cat >>confdefs.h <<_ACEOF
43122#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43123_ACEOF
43124 have_cos=1
43125fi
43126done
43127
43128
43129for ac_func in floor
43130do
43131as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43132echo "$as_me:$LINENO: checking for $ac_func" >&5
43133echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43134if eval "test \"\${$as_ac_var+set}\" = set"; then
43135 echo $ECHO_N "(cached) $ECHO_C" >&6
43136else
43137 cat >conftest.$ac_ext <<_ACEOF
43138/* confdefs.h. */
43139_ACEOF
43140cat confdefs.h >>conftest.$ac_ext
43141cat >>conftest.$ac_ext <<_ACEOF
43142/* end confdefs.h. */
ac1cb8d3
VS
43143/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43145#define $ac_func innocuous_$ac_func
43146
a848cd7e
SC
43147/* System header to define __stub macros and hopefully few prototypes,
43148 which can conflict with char $ac_func (); below.
43149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43150 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43151
a848cd7e
SC
43152#ifdef __STDC__
43153# include <limits.h>
43154#else
43155# include <assert.h>
43156#endif
ac1cb8d3
VS
43157
43158#undef $ac_func
43159
a848cd7e
SC
43160/* Override any gcc2 internal prototype to avoid an error. */
43161#ifdef __cplusplus
43162extern "C"
43163{
43164#endif
43165/* We use char because int might match the return type of a gcc2
43166 builtin and then its argument prototype would still apply. */
43167char $ac_func ();
43168/* The GNU C library defines this for functions which it implements
43169 to always fail with ENOSYS. Some functions are actually named
43170 something starting with __ and the normal name is an alias. */
43171#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43172choke me
43173#else
43174char (*f) () = $ac_func;
43175#endif
43176#ifdef __cplusplus
43177}
43178#endif
43179
43180int
43181main ()
43182{
43183return f != $ac_func;
43184 ;
43185 return 0;
43186}
43187_ACEOF
43188rm -f conftest.$ac_objext conftest$ac_exeext
43189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43190 (eval $ac_link) 2>conftest.er1
a848cd7e 43191 ac_status=$?
ac1cb8d3
VS
43192 grep -v '^ *+' conftest.er1 >conftest.err
43193 rm -f conftest.er1
43194 cat conftest.err >&5
a848cd7e
SC
43195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43196 (exit $ac_status); } &&
5ff751d6 43197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43199 (eval $ac_try) 2>&5
43200 ac_status=$?
43201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43202 (exit $ac_status); }; } &&
43203 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43205 (eval $ac_try) 2>&5
43206 ac_status=$?
43207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43208 (exit $ac_status); }; }; then
43209 eval "$as_ac_var=yes"
43210else
43211 echo "$as_me: failed program was:" >&5
43212sed 's/^/| /' conftest.$ac_ext >&5
43213
43214eval "$as_ac_var=no"
43215fi
ac1cb8d3
VS
43216rm -f conftest.err conftest.$ac_objext \
43217 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43218fi
43219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43220echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43221if test `eval echo '${'$as_ac_var'}'` = yes; then
43222 cat >>confdefs.h <<_ACEOF
43223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43224_ACEOF
43225 have_floor=1
43226fi
43227done
43228
43229echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
43230echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
43231if test "$have_cos" = 1 -a "$have_floor" = 1; then
43232 echo "$as_me:$LINENO: result: yes" >&5
43233echo "${ECHO_T}yes" >&6
43234else
43235 echo "$as_me:$LINENO: result: no" >&5
43236echo "${ECHO_T}no" >&6
43237 LIBS="$LIBS -lm"
43238 # use different functions to avoid configure caching
43239 have_sin=0
43240 have_ceil=0
43241
43242for ac_func in sin
43243do
43244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43245echo "$as_me:$LINENO: checking for $ac_func" >&5
43246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43247if eval "test \"\${$as_ac_var+set}\" = set"; then
43248 echo $ECHO_N "(cached) $ECHO_C" >&6
43249else
43250 cat >conftest.$ac_ext <<_ACEOF
43251/* confdefs.h. */
43252_ACEOF
43253cat confdefs.h >>conftest.$ac_ext
43254cat >>conftest.$ac_ext <<_ACEOF
43255/* end confdefs.h. */
ac1cb8d3
VS
43256/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43258#define $ac_func innocuous_$ac_func
43259
a848cd7e
SC
43260/* System header to define __stub macros and hopefully few prototypes,
43261 which can conflict with char $ac_func (); below.
43262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43263 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43264
a848cd7e
SC
43265#ifdef __STDC__
43266# include <limits.h>
43267#else
43268# include <assert.h>
43269#endif
ac1cb8d3
VS
43270
43271#undef $ac_func
43272
a848cd7e
SC
43273/* Override any gcc2 internal prototype to avoid an error. */
43274#ifdef __cplusplus
43275extern "C"
43276{
43277#endif
43278/* We use char because int might match the return type of a gcc2
43279 builtin and then its argument prototype would still apply. */
43280char $ac_func ();
43281/* The GNU C library defines this for functions which it implements
43282 to always fail with ENOSYS. Some functions are actually named
43283 something starting with __ and the normal name is an alias. */
43284#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43285choke me
43286#else
43287char (*f) () = $ac_func;
43288#endif
43289#ifdef __cplusplus
43290}
43291#endif
43292
43293int
43294main ()
43295{
43296return f != $ac_func;
43297 ;
43298 return 0;
43299}
43300_ACEOF
43301rm -f conftest.$ac_objext conftest$ac_exeext
43302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43303 (eval $ac_link) 2>conftest.er1
a848cd7e 43304 ac_status=$?
ac1cb8d3
VS
43305 grep -v '^ *+' conftest.er1 >conftest.err
43306 rm -f conftest.er1
43307 cat conftest.err >&5
a848cd7e
SC
43308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43309 (exit $ac_status); } &&
5ff751d6 43310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43312 (eval $ac_try) 2>&5
43313 ac_status=$?
43314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43315 (exit $ac_status); }; } &&
43316 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43318 (eval $ac_try) 2>&5
43319 ac_status=$?
43320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43321 (exit $ac_status); }; }; then
43322 eval "$as_ac_var=yes"
43323else
43324 echo "$as_me: failed program was:" >&5
43325sed 's/^/| /' conftest.$ac_ext >&5
43326
43327eval "$as_ac_var=no"
43328fi
ac1cb8d3
VS
43329rm -f conftest.err conftest.$ac_objext \
43330 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43331fi
43332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43334if test `eval echo '${'$as_ac_var'}'` = yes; then
43335 cat >>confdefs.h <<_ACEOF
43336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43337_ACEOF
43338 have_sin=1
43339fi
43340done
43341
43342
43343for ac_func in ceil
43344do
43345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43346echo "$as_me:$LINENO: checking for $ac_func" >&5
43347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
43348if eval "test \"\${$as_ac_var+set}\" = set"; then
43349 echo $ECHO_N "(cached) $ECHO_C" >&6
43350else
43351 cat >conftest.$ac_ext <<_ACEOF
43352/* confdefs.h. */
43353_ACEOF
43354cat confdefs.h >>conftest.$ac_ext
43355cat >>conftest.$ac_ext <<_ACEOF
43356/* end confdefs.h. */
ac1cb8d3
VS
43357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43359#define $ac_func innocuous_$ac_func
43360
a848cd7e
SC
43361/* System header to define __stub macros and hopefully few prototypes,
43362 which can conflict with char $ac_func (); below.
43363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43364 <limits.h> exists even on freestanding compilers. */
ac1cb8d3 43365
a848cd7e
SC
43366#ifdef __STDC__
43367# include <limits.h>
43368#else
43369# include <assert.h>
43370#endif
ac1cb8d3
VS
43371
43372#undef $ac_func
43373
a848cd7e
SC
43374/* Override any gcc2 internal prototype to avoid an error. */
43375#ifdef __cplusplus
43376extern "C"
43377{
43378#endif
43379/* We use char because int might match the return type of a gcc2
43380 builtin and then its argument prototype would still apply. */
43381char $ac_func ();
43382/* The GNU C library defines this for functions which it implements
43383 to always fail with ENOSYS. Some functions are actually named
43384 something starting with __ and the normal name is an alias. */
43385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
43386choke me
43387#else
43388char (*f) () = $ac_func;
43389#endif
43390#ifdef __cplusplus
43391}
43392#endif
43393
43394int
43395main ()
43396{
43397return f != $ac_func;
43398 ;
43399 return 0;
43400}
43401_ACEOF
43402rm -f conftest.$ac_objext conftest$ac_exeext
43403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
ac1cb8d3 43404 (eval $ac_link) 2>conftest.er1
a848cd7e 43405 ac_status=$?
ac1cb8d3
VS
43406 grep -v '^ *+' conftest.er1 >conftest.err
43407 rm -f conftest.er1
43408 cat conftest.err >&5
a848cd7e
SC
43409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43410 (exit $ac_status); } &&
5ff751d6 43411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
43412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43413 (eval $ac_try) 2>&5
43414 ac_status=$?
43415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43416 (exit $ac_status); }; } &&
43417 { ac_try='test -s conftest$ac_exeext'
a848cd7e
SC
43418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43419 (eval $ac_try) 2>&5
43420 ac_status=$?
43421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43422 (exit $ac_status); }; }; then
43423 eval "$as_ac_var=yes"
43424else
43425 echo "$as_me: failed program was:" >&5
43426sed 's/^/| /' conftest.$ac_ext >&5
43427
43428eval "$as_ac_var=no"
43429fi
ac1cb8d3
VS
43430rm -f conftest.err conftest.$ac_objext \
43431 conftest$ac_exeext conftest.$ac_ext
a848cd7e
SC
43432fi
43433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
43434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
43435if test `eval echo '${'$as_ac_var'}'` = yes; then
43436 cat >>confdefs.h <<_ACEOF
43437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43438_ACEOF
43439 have_ceil=1
43440fi
43441done
43442
43443 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
43444echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
43445 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
43446 echo "$as_me:$LINENO: result: yes" >&5
43447echo "${ECHO_T}yes" >&6
43448 else
43449 echo "$as_me:$LINENO: result: no" >&5
43450echo "${ECHO_T}no" >&6
43451 # not sure we should warn the user, crash, etc.
43452 fi
43453fi
43454
43455if test "$wxUSE_GUI" = "yes"; then
43456
43457
8bce5cda
MW
43458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
43459 dynamic erase event exec font image minimal mobile \
43460 mobile/wxedit mobile/styles propsize render \
43461 richedit rotate shaped vscroll widgets"
a848cd7e
SC
43462
43463 if test "$wxUSE_MONOLITHIC" != "yes"; then
43464 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
43465 fi
0b78747f 43466 if test "$TOOLKIT" = "MSW"; then
8bce5cda
MW
43467 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
43468 if test "$wxUSE_UNIVERSAL" != "yes"; then
43469 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
43470 fi
43471 fi
43472 if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
43473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
0b78747f 43474 fi
a848cd7e
SC
43475else
43476 SAMPLES_SUBDIRS="console"
43477fi
43478
43479
48f625bc 43480if test "x$INTELCC" = "xyes" ; then
17a1ebd1
VZ
43481 CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
43482elif test "$GCC" = yes ; then
43483 CWARNINGS="-Wall -Wundef"
43484fi
43485
48f625bc 43486if test "x$INTELCXX" = "xyes" ; then
7f47faf4 43487 CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
17a1ebd1
VZ
43488elif test "$GXX" = yes ; then
43489 CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
6ebeb4c7 43490fi
a848cd7e 43491
a848cd7e 43492
5ff751d6
VZ
43493WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
43494WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
43495
43496
43497CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $CPPFLAGS \
43498 -I\${top_builddir}lib/wx/include/${TOOLCHAIN_FULLNAME} \
43499 -I\${top_srcdir}/include $TOOLKIT_INCLUDE`
43500
43501C_AND_CXX_FLAGS="$DEBUG_FLAG $PROFILE_FLAG $OPTIMISE_FLAG"
43502CFLAGS=`echo $WXCONFIG_CFLAGS $CFLAGS $CWARNINGS $C_AND_CXX_FLAGS`
43503CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $CXXFLAGS $C_AND_CXX_FLAGS`
43504
43505WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
43506
a848cd7e 43507
95986553
DE
43508if test "x$MWCC" = "xyes"; then
43509
43510 CC="$CC -cwd source -I-"
43511 CXX="$CXX -cwd source -I-"
43512fi
43513
a848cd7e 43514
0c3c69fc 43515LIBS=`echo $LIBS`
a848cd7e
SC
43516EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
43517EXTRALIBS_XML="$EXPAT_LINK"
43518EXTRALIBS_HTML="$MSPACK_LINK"
43519EXTRALIBS_ODBC="$ODBC_LINK"
43520if test "$wxUSE_GUI" = "yes"; then
2e350179 43521 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_GNOMEPRINT`
a848cd7e
SC
43522fi
43523if test "$wxUSE_OPENGL" = "yes"; then
43524 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
43525fi
43526
5ff751d6 43527LDFLAGS="$LDFLAGS $PROFILE_FLAG"
a848cd7e 43528
5ff751d6 43529WXCONFIG_LIBS="$LIBS"
a848cd7e
SC
43530
43531if test "$wxUSE_REGEX" = "builtin" ; then
74802184 43532 wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
a848cd7e
SC
43533fi
43534if test "$wxUSE_EXPAT" = "builtin" ; then
74802184 43535 wxconfig_3rdparty="expat $wxconfig_3rdparty"
a848cd7e
SC
43536fi
43537if test "$wxUSE_ODBC" = "builtin" ; then
74802184 43538 wxconfig_3rdparty="odbc $wxconfig_3rdparty"
a848cd7e
SC
43539fi
43540if test "$wxUSE_LIBTIFF" = "builtin" ; then
74802184 43541 wxconfig_3rdparty="tiff $wxconfig_3rdparty"
a848cd7e
SC
43542fi
43543if test "$wxUSE_LIBJPEG" = "builtin" ; then
74802184 43544 wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
a848cd7e
SC
43545fi
43546if test "$wxUSE_LIBPNG" = "builtin" ; then
74802184 43547 wxconfig_3rdparty="png $wxconfig_3rdparty"
a848cd7e
SC
43548fi
43549if test "$wxUSE_ZLIB" = "builtin" ; then
74802184 43550 wxconfig_3rdparty="zlib $wxconfig_3rdparty"
a848cd7e
SC
43551fi
43552
43553for i in $wxconfig_3rdparty ; do
5ff751d6 43554 WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
a848cd7e
SC
43555done
43556
43557
43558if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
43559 WXUNIV=1
43560else
43561 WXUNIV=0
43562fi
43563
43564
43565
43566
43567
43568
43569
43570
43571
43572if test $wxUSE_MONOLITHIC = "yes" ; then
43573 MONOLITHIC=1
43574else
43575 MONOLITHIC=0
43576fi
43577
43578if test $wxUSE_PLUGINS = "yes" ; then
43579 USE_PLUGINS=1
43580else
43581 USE_PLUGINS=0
43582fi
43583
43584if test $wxUSE_ODBC != "no" ; then
43585 USE_ODBC=1
43586else
43587 USE_ODBC=0
43588fi
43589
16358932
VZ
43590if test "$wxUSE_DEBUGREPORT" = "yes" ; then
43591 USE_QA=1
43592else
43593 USE_QA=0
43594fi
43595
a848cd7e
SC
43596if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
43597 OFFICIAL_BUILD=1
43598else
43599 OFFICIAL_BUILD=0
43600fi
43601
43602
43603
43604
43605
43606
43607
43608
43609
43610
43611
43612
43613
43614
43615
43616
43617
43618
43619
ceec2216 43620
d1c38808 43621
a848cd7e
SC
43622
43623
43624TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
43625
43626
43627
43628
43629
43630
43631
43632
4d4ff94c
VZ
43633case "$TOOLKIT" in
43634 GTK)
43635 TOOLKIT_USER="GTK+"
43636 if test "$WXGTK20" = 1; then
43637 TOOLKIT_USER="$TOOLKIT_USER 2"
43638 fi
9a8f0513 43639 ;;
4d4ff94c
VZ
43640
43641 *)
43642 TOOLKIT_USER=$TOOLKIT_LOWERCASE
9a8f0513 43643 ;;
4d4ff94c 43644esac
a848cd7e 43645
fb00f58d
JS
43646if test "$wxUSE_WINE" = "yes"; then
43647 BAKEFILE_FORCE_PLATFORM=win32
43648fi
43649
9a8f0513 43650
1e9e8aba
DE
43651
43652
a848cd7e
SC
43653 if test "x$BAKEFILE_HOST" = "x"; then
43654 BAKEFILE_HOST="${host}"
43655 fi
43656
43657 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
43658
43659 if test -n "$ac_tool_prefix"; then
43660 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
43661set dummy ${ac_tool_prefix}ranlib; ac_word=$2
43662echo "$as_me:$LINENO: checking for $ac_word" >&5
43663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43664if test "${ac_cv_prog_RANLIB+set}" = set; then
43665 echo $ECHO_N "(cached) $ECHO_C" >&6
43666else
43667 if test -n "$RANLIB"; then
43668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
43669else
43670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43671for as_dir in $PATH
43672do
43673 IFS=$as_save_IFS
43674 test -z "$as_dir" && as_dir=.
43675 for ac_exec_ext in '' $ac_executable_extensions; do
43676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43677 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
43678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43679 break 2
43680 fi
43681done
43682done
43683
43684fi
43685fi
43686RANLIB=$ac_cv_prog_RANLIB
43687if test -n "$RANLIB"; then
43688 echo "$as_me:$LINENO: result: $RANLIB" >&5
43689echo "${ECHO_T}$RANLIB" >&6
43690else
43691 echo "$as_me:$LINENO: result: no" >&5
43692echo "${ECHO_T}no" >&6
43693fi
43694
43695fi
43696if test -z "$ac_cv_prog_RANLIB"; then
43697 ac_ct_RANLIB=$RANLIB
43698 # Extract the first word of "ranlib", so it can be a program name with args.
43699set dummy ranlib; ac_word=$2
43700echo "$as_me:$LINENO: checking for $ac_word" >&5
43701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43702if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
43703 echo $ECHO_N "(cached) $ECHO_C" >&6
43704else
43705 if test -n "$ac_ct_RANLIB"; then
43706 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
43707else
43708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43709for as_dir in $PATH
43710do
43711 IFS=$as_save_IFS
43712 test -z "$as_dir" && as_dir=.
43713 for ac_exec_ext in '' $ac_executable_extensions; do
43714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43715 ac_cv_prog_ac_ct_RANLIB="ranlib"
43716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43717 break 2
43718 fi
43719done
43720done
43721
43722 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
43723fi
43724fi
43725ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
43726if test -n "$ac_ct_RANLIB"; then
43727 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
43728echo "${ECHO_T}$ac_ct_RANLIB" >&6
43729else
43730 echo "$as_me:$LINENO: result: no" >&5
43731echo "${ECHO_T}no" >&6
43732fi
43733
43734 RANLIB=$ac_ct_RANLIB
43735else
43736 RANLIB="$ac_cv_prog_RANLIB"
43737fi
43738
43739 # Find a good install program. We prefer a C program (faster),
43740# so one script is as good as another. But avoid the broken or
43741# incompatible versions:
43742# SysV /etc/install, /usr/sbin/install
43743# SunOS /usr/etc/install
43744# IRIX /sbin/install
43745# AIX /bin/install
43746# AmigaOS /C/install, which installs bootblocks on floppy discs
43747# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
43748# AFS /usr/afsws/bin/install, which mishandles nonexistent args
43749# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ac1cb8d3 43750# OS/2's system install, which has a completely different semantic
a848cd7e
SC
43751# ./install, which can be erroneously created by make from ./install.sh.
43752echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
43753echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
43754if test -z "$INSTALL"; then
43755if test "${ac_cv_path_install+set}" = set; then
43756 echo $ECHO_N "(cached) $ECHO_C" >&6
43757else
43758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43759for as_dir in $PATH
43760do
43761 IFS=$as_save_IFS
43762 test -z "$as_dir" && as_dir=.
43763 # Account for people who put trailing slashes in PATH elements.
43764case $as_dir/ in
43765 ./ | .// | /cC/* | \
43766 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
ac1cb8d3 43767 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a848cd7e
SC
43768 /usr/ucb/* ) ;;
43769 *)
43770 # OSF1 and SCO ODT 3.0 have their own names for install.
43771 # Don't use installbsd from OSF since it installs stuff as root
43772 # by default.
43773 for ac_prog in ginstall scoinst install; do
43774 for ac_exec_ext in '' $ac_executable_extensions; do
ac1cb8d3
VS
43775 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
43776 if test $ac_prog = install &&
43777 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43778 # AIX install. It has an incompatible calling convention.
43779 :
43780 elif test $ac_prog = install &&
43781 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
43782 # program-specific install script used by HP pwplus--don't use.
43783 :
43784 else
43785 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
43786 break 3
43787 fi
43788 fi
a848cd7e
SC
43789 done
43790 done
43791 ;;
43792esac
43793done
43794
43795
43796fi
43797 if test "${ac_cv_path_install+set}" = set; then
43798 INSTALL=$ac_cv_path_install
43799 else
43800 # As a last resort, use the slow shell script. We don't cache a
43801 # path for INSTALL within a source directory, because that will
43802 # break other packages using the cache if that directory is
43803 # removed, or if the path is relative.
43804 INSTALL=$ac_install_sh
43805 fi
43806fi
43807echo "$as_me:$LINENO: result: $INSTALL" >&5
43808echo "${ECHO_T}$INSTALL" >&6
43809
43810# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
43811# It thinks the first close brace ends the variable substitution.
43812test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
43813
43814test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
43815
43816test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
43817
43818 echo "$as_me:$LINENO: checking whether ln -s works" >&5
43819echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
43820LN_S=$as_ln_s
43821if test "$LN_S" = "ln -s"; then
43822 echo "$as_me:$LINENO: result: yes" >&5
43823echo "${ECHO_T}yes" >&6
43824else
43825 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
43826echo "${ECHO_T}no, using $LN_S" >&6
43827fi
43828
43829
43830 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
43831echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 43832set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
43833if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
43834 echo $ECHO_N "(cached) $ECHO_C" >&6
43835else
43836 cat >conftest.make <<\_ACEOF
43837all:
43838 @echo 'ac_maketemp="$(MAKE)"'
43839_ACEOF
43840# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
43841eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
43842if test -n "$ac_maketemp"; then
43843 eval ac_cv_prog_make_${ac_make}_set=yes
43844else
43845 eval ac_cv_prog_make_${ac_make}_set=no
43846fi
43847rm -f conftest.make
43848fi
43849if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
43850 echo "$as_me:$LINENO: result: yes" >&5
43851echo "${ECHO_T}yes" >&6
43852 SET_MAKE=
43853else
43854 echo "$as_me:$LINENO: result: no" >&5
43855echo "${ECHO_T}no" >&6
43856 SET_MAKE="MAKE=${MAKE-make}"
43857fi
43858
43859
43860
43861 if test -n "$ac_tool_prefix"; then
43862 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
43863set dummy ${ac_tool_prefix}ar; ac_word=$2
43864echo "$as_me:$LINENO: checking for $ac_word" >&5
43865echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43866if test "${ac_cv_prog_AR+set}" = set; then
43867 echo $ECHO_N "(cached) $ECHO_C" >&6
43868else
43869 if test -n "$AR"; then
43870 ac_cv_prog_AR="$AR" # Let the user override the test.
43871else
43872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43873for as_dir in $PATH
43874do
43875 IFS=$as_save_IFS
43876 test -z "$as_dir" && as_dir=.
43877 for ac_exec_ext in '' $ac_executable_extensions; do
43878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43879 ac_cv_prog_AR="${ac_tool_prefix}ar"
43880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43881 break 2
43882 fi
43883done
43884done
43885
43886fi
43887fi
43888AR=$ac_cv_prog_AR
43889if test -n "$AR"; then
43890 echo "$as_me:$LINENO: result: $AR" >&5
43891echo "${ECHO_T}$AR" >&6
43892else
43893 echo "$as_me:$LINENO: result: no" >&5
43894echo "${ECHO_T}no" >&6
43895fi
43896
43897fi
43898if test -z "$ac_cv_prog_AR"; then
43899 ac_ct_AR=$AR
43900 # Extract the first word of "ar", so it can be a program name with args.
43901set dummy ar; ac_word=$2
43902echo "$as_me:$LINENO: checking for $ac_word" >&5
43903echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43904if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
43905 echo $ECHO_N "(cached) $ECHO_C" >&6
43906else
43907 if test -n "$ac_ct_AR"; then
43908 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
43909else
43910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43911for as_dir in $PATH
43912do
43913 IFS=$as_save_IFS
43914 test -z "$as_dir" && as_dir=.
43915 for ac_exec_ext in '' $ac_executable_extensions; do
43916 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43917 ac_cv_prog_ac_ct_AR="ar"
43918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43919 break 2
43920 fi
43921done
43922done
43923
43924 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
43925fi
43926fi
43927ac_ct_AR=$ac_cv_prog_ac_ct_AR
43928if test -n "$ac_ct_AR"; then
43929 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
43930echo "${ECHO_T}$ac_ct_AR" >&6
43931else
43932 echo "$as_me:$LINENO: result: no" >&5
43933echo "${ECHO_T}no" >&6
43934fi
43935
43936 AR=$ac_ct_AR
43937else
43938 AR="$ac_cv_prog_AR"
43939fi
43940
43941 if test -n "$ac_tool_prefix"; then
43942 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
43943set dummy ${ac_tool_prefix}strip; ac_word=$2
43944echo "$as_me:$LINENO: checking for $ac_word" >&5
43945echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43946if test "${ac_cv_prog_STRIP+set}" = set; then
43947 echo $ECHO_N "(cached) $ECHO_C" >&6
43948else
43949 if test -n "$STRIP"; then
43950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
43951else
43952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43953for as_dir in $PATH
43954do
43955 IFS=$as_save_IFS
43956 test -z "$as_dir" && as_dir=.
43957 for ac_exec_ext in '' $ac_executable_extensions; do
43958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43959 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
43960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43961 break 2
43962 fi
43963done
43964done
43965
43966fi
43967fi
43968STRIP=$ac_cv_prog_STRIP
43969if test -n "$STRIP"; then
43970 echo "$as_me:$LINENO: result: $STRIP" >&5
43971echo "${ECHO_T}$STRIP" >&6
43972else
43973 echo "$as_me:$LINENO: result: no" >&5
43974echo "${ECHO_T}no" >&6
43975fi
43976
43977fi
43978if test -z "$ac_cv_prog_STRIP"; then
43979 ac_ct_STRIP=$STRIP
43980 # Extract the first word of "strip", so it can be a program name with args.
43981set dummy strip; ac_word=$2
43982echo "$as_me:$LINENO: checking for $ac_word" >&5
43983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
43984if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
43985 echo $ECHO_N "(cached) $ECHO_C" >&6
43986else
43987 if test -n "$ac_ct_STRIP"; then
43988 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
43989else
43990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43991for as_dir in $PATH
43992do
43993 IFS=$as_save_IFS
43994 test -z "$as_dir" && as_dir=.
43995 for ac_exec_ext in '' $ac_executable_extensions; do
43996 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43997 ac_cv_prog_ac_ct_STRIP="strip"
43998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43999 break 2
44000 fi
44001done
44002done
44003
44004 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
44005fi
44006fi
44007ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
44008if test -n "$ac_ct_STRIP"; then
44009 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
44010echo "${ECHO_T}$ac_ct_STRIP" >&6
44011else
44012 echo "$as_me:$LINENO: result: no" >&5
44013echo "${ECHO_T}no" >&6
44014fi
44015
44016 STRIP=$ac_ct_STRIP
44017else
44018 STRIP="$ac_cv_prog_STRIP"
44019fi
44020
44021 if test -n "$ac_tool_prefix"; then
44022 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
44023set dummy ${ac_tool_prefix}nm; ac_word=$2
44024echo "$as_me:$LINENO: checking for $ac_word" >&5
44025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44026if test "${ac_cv_prog_NM+set}" = set; then
44027 echo $ECHO_N "(cached) $ECHO_C" >&6
44028else
44029 if test -n "$NM"; then
44030 ac_cv_prog_NM="$NM" # Let the user override the test.
44031else
44032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44033for as_dir in $PATH
44034do
44035 IFS=$as_save_IFS
44036 test -z "$as_dir" && as_dir=.
44037 for ac_exec_ext in '' $ac_executable_extensions; do
44038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44039 ac_cv_prog_NM="${ac_tool_prefix}nm"
44040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44041 break 2
44042 fi
44043done
44044done
44045
44046fi
44047fi
44048NM=$ac_cv_prog_NM
44049if test -n "$NM"; then
44050 echo "$as_me:$LINENO: result: $NM" >&5
44051echo "${ECHO_T}$NM" >&6
44052else
44053 echo "$as_me:$LINENO: result: no" >&5
44054echo "${ECHO_T}no" >&6
44055fi
44056
44057fi
44058if test -z "$ac_cv_prog_NM"; then
44059 ac_ct_NM=$NM
44060 # Extract the first word of "nm", so it can be a program name with args.
44061set dummy nm; ac_word=$2
44062echo "$as_me:$LINENO: checking for $ac_word" >&5
44063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44064if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
44065 echo $ECHO_N "(cached) $ECHO_C" >&6
44066else
44067 if test -n "$ac_ct_NM"; then
44068 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
44069else
44070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44071for as_dir in $PATH
44072do
44073 IFS=$as_save_IFS
44074 test -z "$as_dir" && as_dir=.
44075 for ac_exec_ext in '' $ac_executable_extensions; do
44076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44077 ac_cv_prog_ac_ct_NM="nm"
44078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44079 break 2
44080 fi
44081done
44082done
44083
44084 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
44085fi
44086fi
44087ac_ct_NM=$ac_cv_prog_ac_ct_NM
44088if test -n "$ac_ct_NM"; then
44089 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
44090echo "${ECHO_T}$ac_ct_NM" >&6
44091else
44092 echo "$as_me:$LINENO: result: no" >&5
44093echo "${ECHO_T}no" >&6
44094fi
44095
44096 NM=$ac_ct_NM
44097else
44098 NM="$ac_cv_prog_NM"
44099fi
44100
44101
44102 case ${BAKEFILE_HOST} in
44103 *-hp-hpux* )
1e9e8aba 44104 INSTALL_DIR="mkdir -p"
a848cd7e
SC
44105 ;;
44106 *) INSTALL_DIR="$INSTALL -d"
44107 ;;
44108 esac
44109
44110
44111 LDFLAGS_GUI=
44112 case ${BAKEFILE_HOST} in
44113 *-*-cygwin* | *-*-mingw32* )
44114 LDFLAGS_GUI="-mwindows"
44115 esac
44116
44117
44118 fi
44119
44120 echo "$as_me:$LINENO: checking if make is GNU make" >&5
44121echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
44122if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
44123 echo $ECHO_N "(cached) $ECHO_C" >&6
44124else
44125
44126 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
44127 egrep -s GNU > /dev/null); then
44128 bakefile_cv_prog_makeisgnu="yes"
44129 else
44130 bakefile_cv_prog_makeisgnu="no"
44131 fi
44132
44133fi
44134echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
44135echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
44136
44137 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
44138 IF_GNU_MAKE=""
44139 else
44140 IF_GNU_MAKE="#"
44141 fi
44142
44143
44144
44145 PLATFORM_UNIX=0
44146 PLATFORM_WIN32=0
44147 PLATFORM_MSDOS=0
44148 PLATFORM_MAC=0
1e9e8aba 44149 PLATFORM_MACOS=0
a848cd7e
SC
44150 PLATFORM_MACOSX=0
44151 PLATFORM_OS2=0
1e9e8aba 44152 PLATFORM_BEOS=0
a848cd7e
SC
44153
44154 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
44155 case "${BAKEFILE_HOST}" in
810b94f0 44156 *-*-mingw32* )
a848cd7e
SC
44157 PLATFORM_WIN32=1
44158 ;;
44159 *-pc-msdosdjgpp )
44160 PLATFORM_MSDOS=1
44161 ;;
44162 *-pc-os2_emx | *-pc-os2-emx )
44163 PLATFORM_OS2=1
44164 ;;
47bd5406 44165 *-*-darwin* )
a848cd7e
SC
44166 PLATFORM_MAC=1
44167 PLATFORM_MACOSX=1
44168 ;;
1e9e8aba
DE
44169 *-*-beos* )
44170 PLATFORM_BEOS=1
44171 ;;
44172 powerpc-apple-macos* )
44173 PLATFORM_MAC=1
44174 PLATFORM_MACOS=1
44175 ;;
a848cd7e
SC
44176 * )
44177 PLATFORM_UNIX=1
44178 ;;
44179 esac
44180 else
44181 case "$BAKEFILE_FORCE_PLATFORM" in
44182 win32 )
44183 PLATFORM_WIN32=1
44184 ;;
44185 msdos )
44186 PLATFORM_MSDOS=1
44187 ;;
44188 os2 )
44189 PLATFORM_OS2=1
44190 ;;
44191 darwin )
44192 PLATFORM_MAC=1
44193 PLATFORM_MACOSX=1
44194 ;;
44195 unix )
44196 PLATFORM_UNIX=1
44197 ;;
1e9e8aba
DE
44198 beos )
44199 PLATFORM_BEOS=1
44200 ;;
a848cd7e
SC
44201 * )
44202 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
44203echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
44204 { (exit 1); exit 1; }; }
44205 ;;
44206 esac
44207 fi
44208
44209
44210
44211
44212
44213
44214
44215
44216
1e9e8aba
DE
44217
44218
a848cd7e
SC
44219 # Check whether --enable-omf or --disable-omf was given.
44220if test "${enable_omf+set}" = set; then
44221 enableval="$enable_omf"
44222 bk_os2_use_omf="$enableval"
44223fi;
44224
44225 case "${BAKEFILE_HOST}" in
44226 *-*-darwin* )
47bd5406
VZ
44227 if test "x$GCC" = "xyes"; then
44228 CFLAGS="$CFLAGS -fno-common"
44229 CXXFLAGS="$CXXFLAGS -fno-common"
44230 fi
44231 if test "x$XLCC" = "xyes"; then
44232 CFLAGS="$CFLAGS -qnocommon"
44233 CXXFLAGS="$CXXFLAGS -qnocommon"
44234 fi
a848cd7e
SC
44235 ;;
44236
44237 *-pc-os2_emx | *-pc-os2-emx )
44238 if test "x$bk_os2_use_omf" = "xyes" ; then
44239 AR=emxomfar
44240 RANLIB=:
44241 LDFLAGS="-Zomf $LDFLAGS"
44242 CFLAGS="-Zomf $CFLAGS"
44243 CXXFLAGS="-Zomf $CXXFLAGS"
44244 OS2_LIBEXT="lib"
44245 else
44246 OS2_LIBEXT="a"
44247 fi
44248 ;;
1e9e8aba
DE
44249
44250 i*86-*-beos* )
44251 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
44252 ;;
a848cd7e
SC
44253 esac
44254
44255
44256 SO_SUFFIX="so"
44257 SO_SUFFIX_MODULE="so"
44258 EXEEXT=""
44259 LIBPREFIX="lib"
44260 LIBEXT=".a"
44261 DLLPREFIX="lib"
44262 DLLPREFIX_MODULE=""
44263 DLLIMP_SUFFIX=""
810b94f0 44264 dlldir="$libdir"
a848cd7e
SC
44265
44266 case "${BAKEFILE_HOST}" in
44267 *-hp-hpux* )
44268 SO_SUFFIX="sl"
44269 SO_SUFFIX_MODULE="sl"
44270 ;;
44271 *-*-aix* )
44272 SO_SUFFIX="a"
44273 SO_SUFFIX_MODULE="a"
44274 ;;
810b94f0
MW
44275 *-*-cygwin* )
44276 SO_SUFFIX="dll"
44277 SO_SUFFIX_MODULE="dll"
44278 DLLIMP_SUFFIX="dll.a"
44279 EXEEXT=".exe"
44280 DLLPREFIX="cyg"
44281 dlldir="$bindir"
44282 ;;
44283 *-*-mingw32* )
a848cd7e
SC
44284 SO_SUFFIX="dll"
44285 SO_SUFFIX_MODULE="dll"
44286 DLLIMP_SUFFIX="dll.a"
44287 EXEEXT=".exe"
44288 DLLPREFIX=""
810b94f0 44289 dlldir="$bindir"
a848cd7e
SC
44290 ;;
44291 *-pc-msdosdjgpp )
44292 EXEEXT=".exe"
44293 DLLPREFIX=""
810b94f0 44294 dlldir="$bindir"
a848cd7e
SC
44295 ;;
44296 *-pc-os2_emx | *-pc-os2-emx )
44297 SO_SUFFIX="dll"
44298 SO_SUFFIX_MODULE="dll"
44299 DLLIMP_SUFFIX=$OS2_LIBEXT
44300 EXEEXT=".exe"
44301 DLLPREFIX=""
44302 LIBPREFIX=""
44303 LIBEXT=".$OS2_LIBEXT"
810b94f0 44304 dlldir="$bindir"
a848cd7e 44305 ;;
47bd5406 44306 *-*-darwin* )
a848cd7e
SC
44307 SO_SUFFIX="dylib"
44308 SO_SUFFIX_MODULE="bundle"
44309 ;;
44310 esac
44311
44312 if test "x$DLLIMP_SUFFIX" = "x" ; then
44313 DLLIMP_SUFFIX="$SO_SUFFIX"
44314 fi
44315
44316
44317
44318
44319
44320
44321
44322
44323
44324
44325
810b94f0 44326
1e9e8aba
DE
44327 PIC_FLAG=""
44328 if test "x$GCC" = "xyes"; then
a848cd7e
SC
44329 PIC_FLAG="-fPIC"
44330 fi
44331
1e9e8aba
DE
44332 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
44333 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
810b94f0 44334 WINDOWS_IMPLIB=0
1e9e8aba 44335
a848cd7e
SC
44336 case "${BAKEFILE_HOST}" in
44337 *-hp-hpux* )
1e9e8aba 44338 if test "x$GCC" != "xyes"; then
a848cd7e
SC
44339 LDFLAGS="$LDFLAGS -L/usr/lib"
44340
44341 SHARED_LD_CC="${CC} -b -o"
44342 SHARED_LD_CXX="${CXX} -b -o"
44343 PIC_FLAG="+Z"
44344 fi
44345 ;;
44346
44347 *-*-linux* )
44348 if test "x$GCC" != "xyes"; then
44349 echo "$as_me:$LINENO: checking for Intel compiler" >&5
44350echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
44351if test "${bakefile_cv_prog_icc+set}" = set; then
44352 echo $ECHO_N "(cached) $ECHO_C" >&6
44353else
44354
44355 cat >conftest.$ac_ext <<_ACEOF
44356/* confdefs.h. */
44357_ACEOF
44358cat confdefs.h >>conftest.$ac_ext
44359cat >>conftest.$ac_ext <<_ACEOF
44360/* end confdefs.h. */
44361
44362int
44363main ()
44364{
44365
44366 #ifndef __INTEL_COMPILER
44367 #error Not icc
44368 #endif
44369
44370 ;
44371 return 0;
44372}
44373_ACEOF
44374rm -f conftest.$ac_objext
44375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 44376 (eval $ac_compile) 2>conftest.er1
a848cd7e 44377 ac_status=$?
ac1cb8d3
VS
44378 grep -v '^ *+' conftest.er1 >conftest.err
44379 rm -f conftest.er1
44380 cat conftest.err >&5
a848cd7e
SC
44381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44382 (exit $ac_status); } &&
5ff751d6 44383 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
44384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44385 (eval $ac_try) 2>&5
44386 ac_status=$?
44387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44388 (exit $ac_status); }; } &&
44389 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
44390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44391 (eval $ac_try) 2>&5
44392 ac_status=$?
44393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44394 (exit $ac_status); }; }; then
44395 bakefile_cv_prog_icc=yes
44396else
44397 echo "$as_me: failed program was:" >&5
44398sed 's/^/| /' conftest.$ac_ext >&5
44399
44400bakefile_cv_prog_icc=no
44401
44402fi
ac1cb8d3 44403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e
SC
44404
44405fi
44406echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
44407echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
44408 if test "$bakefile_cv_prog_icc" = "yes"; then
44409 PIC_FLAG="-KPIC"
44410 fi
44411 fi
44412 ;;
44413
44414 *-*-solaris2* )
44415 if test "x$GCC" != xyes ; then
44416 SHARED_LD_CC="${CC} -G -o"
44417 SHARED_LD_CXX="${CXX} -G -o"
44418 PIC_FLAG="-KPIC"
44419 fi
44420 ;;
44421
44422 *-*-darwin* )
44423
473276a9
VS
44424D='$'
44425cat <<EOF >shared-ld-sh
a848cd7e
SC
44426#!/bin/sh
44427#-----------------------------------------------------------------------------
44428#-- Name: distrib/mac/shared-ld-sh
44429#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
44430#-- Author: Gilles Depeyrot
44431#-- Copyright: (c) 2002 Gilles Depeyrot
44432#-- Licence: any use permitted
44433#-----------------------------------------------------------------------------
44434
44435verbose=0
44436args=""
44437objects=""
44438linking_flag="-dynamiclib"
810b94f0 44439ldargs="-r -keep_private_externs -nostdlib"
a848cd7e 44440
473276a9
VS
44441while test ${D}# -gt 0; do
44442 case ${D}1 in
a848cd7e
SC
44443
44444 -v)
44445 verbose=1
44446 ;;
44447
44448 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
44449 # collect these options and values
473276a9 44450 args="${D}{args} ${D}1 ${D}2"
a848cd7e
SC
44451 shift
44452 ;;
44453
810b94f0
MW
44454 -s|-Wl,*)
44455 # collect these load args
44456 ldargs="${D}{ldargs} ${D}1"
2113bc77 44457 ;;
810b94f0
MW
44458
44459 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
a848cd7e 44460 # collect these options
473276a9 44461 args="${D}{args} ${D}1"
a848cd7e
SC
44462 ;;
44463
44464 -dynamiclib|-bundle)
473276a9 44465 linking_flag="${D}1"
a848cd7e
SC
44466 ;;
44467
44468 -*)
473276a9 44469 echo "shared-ld: unhandled option '${D}1'"
a848cd7e
SC
44470 exit 1
44471 ;;
44472
44473 *.o | *.a | *.dylib)
44474 # collect object files
473276a9 44475 objects="${D}{objects} ${D}1"
a848cd7e
SC
44476 ;;
44477
44478 *)
473276a9 44479 echo "shared-ld: unhandled argument '${D}1'"
a848cd7e
SC
44480 exit 1
44481 ;;
44482
44483 esac
44484 shift
44485done
44486
810b94f0
MW
44487status=0
44488
a848cd7e
SC
44489#
44490# Link one module containing all the others
44491#
473276a9 44492if test ${D}{verbose} = 1; then
810b94f0 44493 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
a848cd7e 44494fi
810b94f0 44495c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
473276a9 44496status=${D}?
a848cd7e
SC
44497
44498#
810b94f0
MW
44499# Link the shared library from the single module created, but only if the
44500# previous command didn't fail:
a848cd7e 44501#
810b94f0
MW
44502if test ${D}{status} = 0; then
44503 if test ${D}{verbose} = 1; then
44504 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
44505 fi
44506 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
44507 status=${D}?
a848cd7e
SC
44508fi
44509
44510#
44511# Remove intermediate module
44512#
473276a9 44513rm -f master.${D}${D}.o
a848cd7e 44514
810b94f0 44515exit ${D}status
a848cd7e 44516EOF
473276a9 44517
583d6b4b
VZ
44518 chmod +x shared-ld-sh
44519
44520 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
44521 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
44522
44523
44524 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
44525echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
44526if test "${bakefile_cv_gcc31+set}" = set; then
44527 echo $ECHO_N "(cached) $ECHO_C" >&6
44528else
44529
44530 cat >conftest.$ac_ext <<_ACEOF
44531/* confdefs.h. */
44532_ACEOF
44533cat confdefs.h >>conftest.$ac_ext
44534cat >>conftest.$ac_ext <<_ACEOF
44535/* end confdefs.h. */
44536
44537int
44538main ()
44539{
44540
44541 #if (__GNUC__ < 3) || \
44542 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
44543 #error old gcc
44544 #endif
a848cd7e 44545
583d6b4b
VZ
44546 ;
44547 return 0;
44548}
44549_ACEOF
44550rm -f conftest.$ac_objext
44551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44552 (eval $ac_compile) 2>conftest.er1
44553 ac_status=$?
44554 grep -v '^ *+' conftest.er1 >conftest.err
44555 rm -f conftest.er1
44556 cat conftest.err >&5
44557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44558 (exit $ac_status); } &&
5ff751d6 44559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
583d6b4b
VZ
44560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44561 (eval $ac_try) 2>&5
44562 ac_status=$?
44563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44564 (exit $ac_status); }; } &&
44565 { ac_try='test -s conftest.$ac_objext'
44566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44567 (eval $ac_try) 2>&5
44568 ac_status=$?
44569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44570 (exit $ac_status); }; }; then
44571
44572 bakefile_cv_gcc31=yes
44573
44574else
44575 echo "$as_me: failed program was:" >&5
44576sed 's/^/| /' conftest.$ac_ext >&5
44577
44578
44579 bakefile_cv_gcc31=no
44580
44581
44582fi
44583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44584
44585fi
44586echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
44587echo "${ECHO_T}$bakefile_cv_gcc31" >&6
44588 if test "$bakefile_cv_gcc31" = "no"; then
a848cd7e 44589 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
a848cd7e 44590 SHARED_LD_CXX="$SHARED_LD_CC"
a848cd7e
SC
44591 else
44592 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e 44593 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
a848cd7e
SC
44594 fi
44595
47bd5406
VZ
44596 if test "x$GCC" == "xyes"; then
44597 PIC_FLAG="-dynamic -fPIC"
44598 fi
44599 if test "x$XLCC" = "xyes"; then
44600 PIC_FLAG="-dynamic -DPIC"
44601 fi
a848cd7e
SC
44602 ;;
44603
44604 *-*-aix* )
f6b50c59 44605 if test "x$GCC" = "xyes"; then
583d6b4b 44606 PIC_FLAG=""
f6b50c59 44607
583d6b4b
VZ
44608 case "${BAKEFILE_HOST}" in
44609 *-*-aix5* )
44610 LD_EXPFULL="-Wl,-bexpfull"
44611 ;;
44612 esac
f6b50c59 44613
583d6b4b
VZ
44614 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
44615 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
44616 else
44617 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
a848cd7e
SC
44618set dummy makeC++SharedLib; ac_word=$2
44619echo "$as_me:$LINENO: checking for $ac_word" >&5
44620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
44621if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
44622 echo $ECHO_N "(cached) $ECHO_C" >&6
44623else
44624 if test -n "$AIX_CXX_LD"; then
44625 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
44626else
44627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44628for as_dir in $PATH
44629do
44630 IFS=$as_save_IFS
44631 test -z "$as_dir" && as_dir=.
44632 for ac_exec_ext in '' $ac_executable_extensions; do
44633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44634 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
44635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44636 break 2
44637 fi
44638done
44639done
44640
44641 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
44642fi
44643fi
44644AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
44645if test -n "$AIX_CXX_LD"; then
44646 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
44647echo "${ECHO_T}$AIX_CXX_LD" >&6
44648else
44649 echo "$as_me:$LINENO: result: no" >&5
44650echo "${ECHO_T}no" >&6
44651fi
44652
f6b50c59 44653 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
a848cd7e
SC
44654 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
44655 fi
44656 ;;
44657
44658 *-*-beos* )
1e9e8aba
DE
44659 SHARED_LD_CC="${LD} -nostart -o"
44660 SHARED_LD_CXX="${LD} -nostart -o"
a848cd7e
SC
44661 ;;
44662
44663 *-*-irix* )
44664 if test "x$GCC" != "xyes"; then
44665 PIC_FLAG="-KPIC"
44666 fi
44667 ;;
44668
44669 *-*-cygwin* | *-*-mingw32* )
44670 PIC_FLAG=""
1e9e8aba
DE
44671 SHARED_LD_CC="\$(CC) -shared -o"
44672 SHARED_LD_CXX="\$(CXX) -shared -o"
810b94f0 44673 WINDOWS_IMPLIB=1
a848cd7e
SC
44674 ;;
44675
44676 *-pc-os2_emx | *-pc-os2-emx )
b1d22ded
DE
44677 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
44678 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
a848cd7e 44679 PIC_FLAG=""
473276a9
VS
44680
44681D='$'
44682cat <<EOF >dllar.sh
44683#!/bin/sh
44684#
44685# dllar - a tool to build both a .dll and an .a file
44686# from a set of object (.o) files for EMX/OS2.
44687#
44688# Written by Andrew Zabolotny, bit@freya.etu.ru
44689# Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
44690#
44691# This script will accept a set of files on the command line.
44692# All the public symbols from the .o files will be exported into
44693# a .DEF file, then linker will be run (through gcc) against them to
44694# build a shared library consisting of all given .o files. All libraries
44695# (.a) will be first decompressed into component .o files then act as
44696# described above. You can optionally give a description (-d "description")
44697# which will be put into .DLL. To see the list of accepted options (as well
44698# as command-line format) simply run this program without options. The .DLL
44699# is built to be imported by name (there is no guarantee that new versions
44700# of the library you build will have same ordinals for same symbols).
44701#
44702# dllar is free software; you can redistribute it and/or modify
44703# it under the terms of the GNU General Public License as published by
44704# the Free Software Foundation; either version 2, or (at your option)
44705# any later version.
44706#
44707# dllar is distributed in the hope that it will be useful,
44708# but WITHOUT ANY WARRANTY; without even the implied warranty of
44709# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44710# GNU General Public License for more details.
44711#
44712# You should have received a copy of the GNU General Public License
44713# along with dllar; see the file COPYING. If not, write to the Free
44714# Software Foundation, 59 Temple Place - Suite 330, Boston, MA
44715# 02111-1307, USA.
44716
44717# To successfuly run this program you will need:
44718# - Current drive should have LFN support (HPFS, ext2, network, etc)
44719# (Sometimes dllar generates filenames which won't fit 8.3 scheme)
44720# - gcc
44721# (used to build the .dll)
44722# - emxexp
44723# (used to create .def file from .o files)
44724# - emximp
44725# (used to create .a file from .def file)
44726# - GNU text utilites (cat, sort, uniq)
44727# used to process emxexp output
44728# - GNU file utilities (mv, rm)
44729# - GNU sed
44730# - lxlite (optional, see flag below)
44731# (used for general .dll cleanup)
44732#
44733
44734flag_USE_LXLITE=1;
44735
44736#
44737# helper functions
44738# basnam, variant of basename, which does _not_ remove the path, _iff_
44739# second argument (suffix to remove) is given
44740basnam(){
44741 case ${D}# in
44742 1)
1e9e8aba 44743 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
473276a9
VS
44744 ;;
44745 2)
44746 echo ${D}1 | sed 's/'${D}2'${D}//'
44747 ;;
44748 *)
44749 echo "error in basnam ${D}*"
44750 exit 8
44751 ;;
44752 esac
44753}
44754
44755# Cleanup temporary files and output
44756CleanUp() {
44757 cd ${D}curDir
44758 for i in ${D}inputFiles ; do
44759 case ${D}i in
44760 *!)
44761 rm -rf \`basnam ${D}i !\`
44762 ;;
44763 *)
44764 ;;
44765 esac
44766 done
44767
44768 # Kill result in case of failure as there is just to many stupid make/nmake
44769 # things out there which doesn't do this.
1e9e8aba 44770 if [ ${D}# -eq 0 ]; then
473276a9
VS
44771 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
44772 fi
44773}
44774
44775# Print usage and exit script with rc=1.
44776PrintHelp() {
b1d22ded
DE
44777 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
44778 echo ' [-name-mangler-script script.sh]'
44779 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
44780 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
44781 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
1e9e8aba 44782 echo ' [*.o] [*.a]'
473276a9
VS
44783 echo '*> "output_file" should have no extension.'
44784 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
44785 echo ' The import library name is derived from this and is set to "name".a,'
44786 echo ' unless overridden by -import'
44787 echo '*> "importlib_name" should have no extension.'
44788 echo ' If it has the .o, or .a extension, it is automatically removed.'
44789 echo ' This name is used as the import library name and may be longer and'
44790 echo ' more descriptive than the DLL name which has to follow the old '
44791 echo ' 8.3 convention of FAT.'
b1d22ded
DE
44792 echo '*> "script.sh may be given to override the output_file name by a'
44793 echo ' different name. It is mainly useful if the regular make process'
44794 echo ' of some package does not take into account OS/2 restriction of'
44795 echo ' DLL name lengths. It takes the importlib name as input and is'
44796 echo ' supposed to procude a shorter name as output. The script should'
44797 echo ' expect to get importlib_name without extension and should produce'
44798 echo ' a (max.) 8 letter name without extension.'
473276a9
VS
44799 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
44800 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
44801 echo ' These flags will be put at the start of GCC command line.'
b1d22ded
DE
44802 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
44803 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
473276a9
VS
44804 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
44805 echo ' If the last character of a symbol is "*", all symbols beginning'
44806 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
b1d22ded 44807 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
473276a9 44808 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
b1d22ded 44809 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
473276a9 44810 echo ' C runtime DLLs.'
b1d22ded 44811 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
473276a9
VS
44812 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
44813 echo ' unchanged to GCC at the end of command line.'
44814 echo '*> If you create a DLL from a library and you do not specify -o,'
44815 echo ' the basename for DLL and import library will be set to library name,'
44816 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
44817 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
44818 echo ' library will be renamed into gcc_s.a.'
44819 echo '--------'
44820 echo 'Example:'
44821 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
44822 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
44823 CleanUp
44824 exit 1
44825}
44826
44827# Execute a command.
44828# If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
44829# @Uses Whatever CleanUp() uses.
44830doCommand() {
44831 echo "${D}*"
44832 eval ${D}*
44833 rcCmd=${D}?
44834
1e9e8aba 44835 if [ ${D}rcCmd -ne 0 ]; then
473276a9
VS
44836 echo "command failed, exit code="${D}rcCmd
44837 CleanUp
44838 exit ${D}rcCmd
44839 fi
44840}
44841
44842# main routine
44843# setup globals
44844cmdLine=${D}*
44845outFile=""
44846outimpFile=""
44847inputFiles=""
b1d22ded 44848renameScript=""
473276a9
VS
44849description=""
44850CC=gcc.exe
44851CFLAGS="-s -Zcrtdll"
44852EXTRA_CFLAGS=""
44853EXPORT_BY_ORDINALS=0
44854exclude_symbols=""
44855library_flags=""
44856curDir=\`pwd\`
44857curDirS=curDir
44858case ${D}curDirS in
44859*/)
44860 ;;
44861*)
44862 curDirS=${D}{curDirS}"/"
44863 ;;
44864esac
44865# Parse commandline
44866libsToLink=0
b1d22ded 44867omfLinking=0
1e9e8aba 44868while [ ${D}1 ]; do
473276a9
VS
44869 case ${D}1 in
44870 -ord*)
44871 EXPORT_BY_ORDINALS=1;
44872 ;;
44873 -o*)
44874 shift
44875 outFile=${D}1
44876 ;;
44877 -i*)
44878 shift
44879 outimpFile=${D}1
44880 ;;
b1d22ded
DE
44881 -name-mangler-script)
44882 shift
44883 renameScript=${D}1
44884 ;;
473276a9
VS
44885 -d*)
44886 shift
44887 description=${D}1
44888 ;;
44889 -f*)
44890 shift
44891 CFLAGS=${D}1
44892 ;;
44893 -c*)
44894 shift
44895 CC=${D}1
44896 ;;
44897 -h*)
44898 PrintHelp
44899 ;;
44900 -ex*)
44901 shift
44902 exclude_symbols=${D}{exclude_symbols}${D}1" "
44903 ;;
44904 -libf*)
44905 shift
44906 library_flags=${D}{library_flags}${D}1" "
44907 ;;
44908 -nocrt*)
44909 CFLAGS="-s"
44910 ;;
44911 -nolxl*)
44912 flag_USE_LXLITE=0
44913 ;;
44914 -* | /*)
44915 case ${D}1 in
44916 -L* | -l*)
44917 libsToLink=1
44918 ;;
b1d22ded
DE
44919 -Zomf)
44920 omfLinking=1
44921 ;;
473276a9
VS
44922 *)
44923 ;;
44924 esac
44925 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44926 ;;
b1d22ded
DE
44927 *.dll)
44928 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
44929 if [ ${D}omfLinking -eq 1 ]; then
44930 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
44931 else
44932 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
44933 fi
44934 ;;
473276a9
VS
44935 *)
44936 found=0;
1e9e8aba 44937 if [ ${D}libsToLink -ne 0 ]; then
473276a9
VS
44938 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
44939 else
44940 for file in ${D}1 ; do
1e9e8aba 44941 if [ -f ${D}file ]; then
473276a9
VS
44942 inputFiles="${D}{inputFiles} ${D}file"
44943 found=1
44944 fi
44945 done
1e9e8aba 44946 if [ ${D}found -eq 0 ]; then
473276a9
VS
44947 echo "ERROR: No file(s) found: "${D}1
44948 exit 8
44949 fi
44950 fi
44951 ;;
44952 esac
44953 shift
44954done # iterate cmdline words
44955
44956#
1e9e8aba 44957if [ -z "${D}inputFiles" ]; then
473276a9
VS
44958 echo "dllar: no input files"
44959 PrintHelp
44960fi
44961
44962# Now extract all .o files from .a files
44963newInputFiles=""
44964for file in ${D}inputFiles ; do
44965 case ${D}file in
44966 *.a | *.lib)
44967 case ${D}file in
44968 *.a)
44969 suffix=".a"
44970 AR="ar"
44971 ;;
44972 *.lib)
44973 suffix=".lib"
44974 AR="emxomfar"
44975 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
44976 ;;
44977 *)
44978 ;;
44979 esac
44980 dirname=\`basnam ${D}file ${D}suffix\`"_%"
44981 mkdir ${D}dirname
1e9e8aba 44982 if [ ${D}? -ne 0 ]; then
473276a9
VS
44983 echo "Failed to create subdirectory ./${D}dirname"
44984 CleanUp
44985 exit 8;
44986 fi
44987 # Append '!' to indicate archive
44988 newInputFiles="${D}newInputFiles ${D}{dirname}!"
44989 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
44990 cd ${D}curDir
44991 found=0;
44992 for subfile in ${D}dirname/*.o* ; do
1e9e8aba 44993 if [ -f ${D}subfile ]; then
473276a9 44994 found=1
1e9e8aba 44995 if [ -s ${D}subfile ]; then
473276a9
VS
44996 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
44997 newInputFiles="${D}newInputFiles ${D}subfile"
44998 fi
44999 fi
45000 done
1e9e8aba
DE
45001 if [ ${D}found -eq 0 ]; then
45002 echo "WARNING: there are no files in archive \\'${D}file\\'"
473276a9
VS
45003 fi
45004 ;;
45005 *)
45006 newInputFiles="${D}{newInputFiles} ${D}file"
45007 ;;
45008 esac
45009done
45010inputFiles="${D}newInputFiles"
45011
45012# Output filename(s).
45013do_backup=0;
1e9e8aba 45014if [ -z ${D}outFile ]; then
473276a9
VS
45015 do_backup=1;
45016 set outFile ${D}inputFiles; outFile=${D}2
45017fi
45018
45019# If it is an archive, remove the '!' and the '_%' suffixes
45020case ${D}outFile in
45021*_%!)
45022 outFile=\`basnam ${D}outFile _%!\`
45023 ;;
45024*)
45025 ;;
45026esac
45027case ${D}outFile in
45028*.dll)
45029 outFile=\`basnam ${D}outFile .dll\`
45030 ;;
45031*.DLL)
45032 outFile=\`basnam ${D}outFile .DLL\`
45033 ;;
45034*.o)
45035 outFile=\`basnam ${D}outFile .o\`
45036 ;;
45037*.obj)
45038 outFile=\`basnam ${D}outFile .obj\`
45039 ;;
45040*.a)
45041 outFile=\`basnam ${D}outFile .a\`
45042 ;;
45043*.lib)
45044 outFile=\`basnam ${D}outFile .lib\`
45045 ;;
45046*)
45047 ;;
45048esac
45049case ${D}outimpFile in
45050*.a)
45051 outimpFile=\`basnam ${D}outimpFile .a\`
45052 ;;
45053*.lib)
45054 outimpFile=\`basnam ${D}outimpFile .lib\`
45055 ;;
45056*)
45057 ;;
45058esac
1e9e8aba 45059if [ -z ${D}outimpFile ]; then
473276a9
VS
45060 outimpFile=${D}outFile
45061fi
45062defFile="${D}{outFile}.def"
45063arcFile="${D}{outimpFile}.a"
45064arcFile2="${D}{outimpFile}.lib"
b1d22ded
DE
45065
45066#create ${D}dllFile as something matching 8.3 restrictions,
45067if [ -z ${D}renameScript ] ; then
45068 dllFile="${D}outFile"
45069else
45070 dllFile=\`${D}renameScript ${D}outimpFile\`
45071fi
473276a9 45072
1e9e8aba
DE
45073if [ ${D}do_backup -ne 0 ] ; then
45074 if [ -f ${D}arcFile ] ; then
473276a9
VS
45075 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
45076 fi
1e9e8aba 45077 if [ -f ${D}arcFile2 ] ; then
473276a9
VS
45078 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
45079 fi
45080fi
45081
45082# Extract public symbols from all the object files.
45083tmpdefFile=${D}{defFile}_%
45084rm -f ${D}tmpdefFile
45085for file in ${D}inputFiles ; do
45086 case ${D}file in
45087 *!)
45088 ;;
45089 *)
45090 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
45091 ;;
45092 esac
45093done
45094
45095# Create the def file.
45096rm -f ${D}defFile
45097echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
b1d22ded
DE
45098dllFile="${D}{dllFile}.dll"
45099if [ ! -z ${D}description ]; then
1e9e8aba 45100 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
473276a9
VS
45101fi
45102echo "EXPORTS" >> ${D}defFile
45103
45104doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
45105grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
45106
45107# Checks if the export is ok or not.
45108for word in ${D}exclude_symbols; do
45109 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
45110 mv ${D}{tmpdefFile}% ${D}tmpdefFile
45111done
45112
45113
1e9e8aba
DE
45114if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
45115 sed "=" < ${D}tmpdefFile | \\
473276a9
VS
45116 sed '
45117 N
45118 : loop
1e9e8aba 45119 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
473276a9
VS
45120 t loop
45121 ' > ${D}{tmpdefFile}%
45122 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
45123else
45124 rm -f ${D}{tmpdefFile}%
45125fi
45126cat ${D}tmpdefFile >> ${D}defFile
45127rm -f ${D}tmpdefFile
45128
45129# Do linking, create implib, and apply lxlite.
45130gccCmdl="";
45131for file in ${D}inputFiles ; do
45132 case ${D}file in
45133 *!)
45134 ;;
45135 *)
45136 gccCmdl="${D}gccCmdl ${D}file"
45137 ;;
45138 esac
45139done
45140doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
45141touch "${D}{outFile}.dll"
45142
45143doCommand "emximp -o ${D}arcFile ${D}defFile"
1e9e8aba 45144if [ ${D}flag_USE_LXLITE -ne 0 ]; then
473276a9 45145 add_flags="";
1e9e8aba 45146 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
473276a9
VS
45147 add_flags="-ynd"
45148 fi
45149 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
45150fi
45151doCommand "emxomf -s -l ${D}arcFile"
45152
45153# Successful exit.
45154CleanUp 1
45155exit 0
45156EOF
45157
45158 chmod +x dllar.sh
a848cd7e
SC
45159 ;;
45160
1e9e8aba 45161 powerpc-apple-macos* | \
0ad5d837 45162 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
a848cd7e
SC
45163 *-*-sunos4* | \
45164 *-*-osf* | \
45165 *-*-dgux5* | \
47a7e797
MW
45166 *-*-sysv5* | \
45167 *-pc-msdosdjgpp )
a848cd7e
SC
45168 ;;
45169
45170 *)
45171 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
45172echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
45173 { (exit 1); exit 1; }; }
45174 esac
45175
2057db16
VS
45176 if test "x$PIC_FLAG" != "x" ; then
45177 PIC_FLAG="$PIC_FLAG -DPIC"
45178 fi
45179
a848cd7e
SC
45180 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
45181 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
45182 fi
45183 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
45184 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
45185 fi
45186
45187
45188
45189
45190
45191
45192
45193
810b94f0 45194
a848cd7e
SC
45195 USE_SOVERSION=0
45196 USE_SOVERLINUX=0
45197 USE_SOVERSOLARIS=0
810b94f0 45198 USE_SOVERCYGWIN=0
a848cd7e
SC
45199 USE_SOSYMLINKS=0
45200 USE_MACVERSION=0
45201 SONAME_FLAG=
45202
45203 case "${BAKEFILE_HOST}" in
0ad5d837 45204 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
5f652d0d
VS
45205 SONAME_FLAG="-Wl,-soname,"
45206 USE_SOVERSION=1
45207 USE_SOVERLINUX=1
45208 USE_SOSYMLINKS=1
45209 ;;
45210
a848cd7e
SC
45211 *-*-solaris2* )
45212 SONAME_FLAG="-h "
45213 USE_SOVERSION=1
45214 USE_SOVERSOLARIS=1
45215 USE_SOSYMLINKS=1
45216 ;;
45217
45218 *-*-darwin* )
45219 USE_MACVERSION=1
45220 USE_SOVERSION=1
45221 USE_SOSYMLINKS=1
45222 ;;
810b94f0
MW
45223
45224 *-*-cygwin* )
45225 USE_SOVERSION=1
45226 USE_SOVERCYGWIN=1
45227 ;;
a848cd7e
SC
45228 esac
45229
45230
45231
45232
45233
45234
45235
45236
45237
810b94f0 45238
a848cd7e
SC
45239 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
45240echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
0ad5d837 45241 DEPS_TRACKING=1
a848cd7e
SC
45242
45243 if test "x$GCC" = "xyes"; then
45244 DEPSMODE=gcc
a848cd7e 45245 case "${BAKEFILE_HOST}" in
47bd5406 45246 *-*-darwin* )
0ad5d837 45247 DEPSFLAG="-no-cpp-precomp -MMD"
a848cd7e
SC
45248 ;;
45249 * )
0ad5d837 45250 DEPSFLAG="-MMD"
a848cd7e
SC
45251 ;;
45252 esac
45253 echo "$as_me:$LINENO: result: gcc" >&5
45254echo "${ECHO_T}gcc" >&6
b1d22ded 45255 elif test "x$MWCC" = "xyes"; then
81f90336 45256 DEPSMODE=mwcc
0ad5d837 45257 DEPSFLAG="-MM"
b1d22ded
DE
45258 echo "$as_me:$LINENO: result: mwcc" >&5
45259echo "${ECHO_T}mwcc" >&6
a9e5b1f0 45260 elif test "x$SUNCC" = "xyes"; then
0ad5d837
VZ
45261 DEPSMODE=unixcc
45262 DEPSFLAG="-xM1"
45263 echo "$as_me:$LINENO: result: Sun cc" >&5
45264echo "${ECHO_T}Sun cc" >&6
45265 elif test "x$SGICC" = "xyes"; then
45266 DEPSMODE=unixcc
45267 DEPSFLAG="-M"
45268 echo "$as_me:$LINENO: result: SGI cc" >&5
45269echo "${ECHO_T}SGI cc" >&6
3006edc0
VZ
45270 elif test "x$HPCC" = "xyes"; then
45271 DEPSMODE=unixcc
45272 DEPSFLAG="+make"
45273 echo "$as_me:$LINENO: result: HP cc" >&5
45274echo "${ECHO_T}HP cc" >&6
a1aa0349
VZ
45275 elif test "x$COMPAQCC" = "xyes"; then
45276 DEPSMODE=gcc
45277 DEPSFLAG="-MD"
45278 echo "$as_me:$LINENO: result: Compaq cc" >&5
45279echo "${ECHO_T}Compaq cc" >&6
a848cd7e 45280 else
3006edc0 45281 DEPS_TRACKING=0
a848cd7e
SC
45282 echo "$as_me:$LINENO: result: none" >&5
45283echo "${ECHO_T}none" >&6
45284 fi
45285
45286 if test $DEPS_TRACKING = 1 ; then
473276a9
VS
45287
45288D='$'
45289cat <<EOF >bk-deps
a848cd7e
SC
45290#!/bin/sh
45291
45292# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45293# script. It is used to track C/C++ files dependencies in portable way.
45294#
45295# Permission is given to use this file in any way.
45296
473276a9 45297DEPSMODE=${DEPSMODE}
a848cd7e 45298DEPSDIR=.deps
0ad5d837 45299DEPSFLAG="${DEPSFLAG}"
a848cd7e 45300
473276a9 45301mkdir -p ${D}DEPSDIR
a848cd7e 45302
473276a9 45303if test ${D}DEPSMODE = gcc ; then
0ad5d837 45304 ${D}* ${D}{DEPSFLAG}
473276a9
VS
45305 status=${D}?
45306 if test ${D}{status} != 0 ; then
45307 exit ${D}{status}
a848cd7e
SC
45308 fi
45309 # move created file to the location we want it in:
473276a9
VS
45310 while test ${D}# -gt 0; do
45311 case "${D}1" in
a848cd7e
SC
45312 -o )
45313 shift
473276a9 45314 objfile=${D}1
a848cd7e
SC
45315 ;;
45316 -* )
45317 ;;
45318 * )
473276a9 45319 srcfile=${D}1
a848cd7e
SC
45320 ;;
45321 esac
45322 shift
45323 done
1e9e8aba
DE
45324 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
45325 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
473276a9
VS
45326 if test -f ${D}depfile ; then
45327 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45328 rm -f ${D}depfile
a848cd7e 45329 else
a1aa0349 45330 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
1e9e8aba 45331 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
a1aa0349
VZ
45332 if test ! -f ${D}depfile ; then
45333 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
45334 depfile="${D}objfile.d"
45335 fi
473276a9
VS
45336 if test -f ${D}depfile ; then
45337 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
45338 rm -f ${D}depfile
a848cd7e
SC
45339 fi
45340 fi
45341 exit 0
81f90336 45342elif test ${D}DEPSMODE = mwcc ; then
f6b50c59 45343 ${D}* || exit ${D}?
81f90336
MW
45344 # Run mwcc again with -MM and redirect into the dep file we want
45345 # NOTE: We can't use shift here because we need ${D}* to be valid
45346 prevarg=
45347 for arg in ${D}* ; do
45348 if test "${D}prevarg" = "-o"; then
45349 objfile=${D}arg
45350 else
45351 case "${D}arg" in
45352 -* )
45353 ;;
45354 * )
45355 srcfile=${D}arg
45356 ;;
45357 esac
45358 fi
45359 prevarg="${D}arg"
45360 done
0ad5d837 45361 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
81f90336 45362 exit 0
0ad5d837 45363elif test ${D}DEPSMODE = unixcc; then
f6b50c59 45364 ${D}* || exit ${D}?
a9e5b1f0
MW
45365 # Run compiler again with deps flag and redirect into the dep file.
45366 # It doesn't work if the '-o FILE' option is used, but without it the
45367 # dependency file will contain the wrong name for the object. So it is
45368 # removed from the command line, and the dep file is fixed with sed.
45369 cmd=""
45370 while test ${D}# -gt 0; do
45371 case "${D}1" in
45372 -o )
45373 shift
45374 objfile=${D}1
45375 ;;
45376 * )
45377 eval arg${D}#=\\${D}1
45378 cmd="${D}cmd \\${D}arg${D}#"
45379 ;;
45380 esac
45381 shift
45382 done
0ad5d837 45383 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
a9e5b1f0 45384 exit 0
a848cd7e 45385else
473276a9
VS
45386 ${D}*
45387 exit ${D}?
a848cd7e
SC
45388fi
45389EOF
473276a9 45390
a848cd7e
SC
45391 chmod +x bk-deps
45392 fi
45393
45394
45395
45396
45397 RESCOMP=
45398 SETFILE=
45399
45400 case ${BAKEFILE_HOST} in
45401 *-*-cygwin* | *-*-mingw32* )
45402 if test "$build" != "$host" ; then
45403 RESCOMP=$host_alias-windres
45404 else
45405 # Extract the first word of "windres", so it can be a program name with args.
45406set dummy windres; ac_word=$2
45407echo "$as_me:$LINENO: checking for $ac_word" >&5
45408echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45409if test "${ac_cv_prog_RESCOMP+set}" = set; then
45410 echo $ECHO_N "(cached) $ECHO_C" >&6
45411else
45412 if test -n "$RESCOMP"; then
45413 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45414else
45415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45416for as_dir in $PATH
45417do
45418 IFS=$as_save_IFS
45419 test -z "$as_dir" && as_dir=.
45420 for ac_exec_ext in '' $ac_executable_extensions; do
45421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45422 ac_cv_prog_RESCOMP="windres"
45423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45424 break 2
45425 fi
45426done
45427done
45428
45429 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
45430fi
45431fi
45432RESCOMP=$ac_cv_prog_RESCOMP
45433if test -n "$RESCOMP"; then
45434 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45435echo "${ECHO_T}$RESCOMP" >&6
45436else
45437 echo "$as_me:$LINENO: result: no" >&5
45438echo "${ECHO_T}no" >&6
45439fi
45440
45441 fi
45442 ;;
45443
1e9e8aba 45444 *-*-darwin* | powerpc-apple-macos* )
a848cd7e
SC
45445 # Extract the first word of "Rez", so it can be a program name with args.
45446set dummy Rez; ac_word=$2
45447echo "$as_me:$LINENO: checking for $ac_word" >&5
45448echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45449if test "${ac_cv_prog_RESCOMP+set}" = set; then
45450 echo $ECHO_N "(cached) $ECHO_C" >&6
45451else
45452 if test -n "$RESCOMP"; then
45453 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
45454else
45455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45456for as_dir in $PATH
45457do
45458 IFS=$as_save_IFS
45459 test -z "$as_dir" && as_dir=.
45460 for ac_exec_ext in '' $ac_executable_extensions; do
45461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45462 ac_cv_prog_RESCOMP="Rez"
45463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45464 break 2
45465 fi
45466done
45467done
45468
45469 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
45470fi
45471fi
45472RESCOMP=$ac_cv_prog_RESCOMP
45473if test -n "$RESCOMP"; then
45474 echo "$as_me:$LINENO: result: $RESCOMP" >&5
45475echo "${ECHO_T}$RESCOMP" >&6
45476else
45477 echo "$as_me:$LINENO: result: no" >&5
45478echo "${ECHO_T}no" >&6
45479fi
45480
45481 # Extract the first word of "SetFile", so it can be a program name with args.
45482set dummy SetFile; ac_word=$2
45483echo "$as_me:$LINENO: checking for $ac_word" >&5
45484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
45485if test "${ac_cv_prog_SETFILE+set}" = set; then
45486 echo $ECHO_N "(cached) $ECHO_C" >&6
45487else
45488 if test -n "$SETFILE"; then
45489 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
45490else
45491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45492for as_dir in $PATH
45493do
45494 IFS=$as_save_IFS
45495 test -z "$as_dir" && as_dir=.
45496 for ac_exec_ext in '' $ac_executable_extensions; do
45497 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
45498 ac_cv_prog_SETFILE="SetFile"
45499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45500 break 2
45501 fi
45502done
45503done
45504
45505 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
45506fi
45507fi
45508SETFILE=$ac_cv_prog_SETFILE
45509if test -n "$SETFILE"; then
45510 echo "$as_me:$LINENO: result: $SETFILE" >&5
45511echo "${ECHO_T}$SETFILE" >&6
45512else
45513 echo "$as_me:$LINENO: result: no" >&5
45514echo "${ECHO_T}no" >&6
45515fi
45516
45517 ;;
45518 esac
45519
45520
45521
45522
45523
c9469659 45524 BAKEFILE_BAKEFILE_M4_VERSION="0.1.9"
a848cd7e 45525
dcc1b6ad 45526
c9469659 45527BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.9"
a848cd7e 45528
646b6ec1 45529
74b84332 45530
a848cd7e
SC
45531 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
45532if test "${enable_precomp_headers+set}" = set; then
45533 enableval="$enable_precomp_headers"
45534 bk_use_pch="$enableval"
45535fi;
45536
45537 GCC_PCH=0
45538
5c60e845
MW
45539 case ${BAKEFILE_HOST} in
45540 *-*-cygwin* )
45541 bk_use_pch="no"
45542 ;;
45543 esac
45544
a848cd7e
SC
45545 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
45546 if test "x$GCC" = "xyes"; then
45547 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
45548echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
45549 cat >conftest.$ac_ext <<_ACEOF
45550/* confdefs.h. */
45551_ACEOF
45552cat confdefs.h >>conftest.$ac_ext
45553cat >>conftest.$ac_ext <<_ACEOF
45554/* end confdefs.h. */
45555
45556int
45557main ()
45558{
45559
45560 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
45561 #error "no pch support"
45562 #endif
45563 #if (__GNUC__ < 3)
45564 #error "no pch support"
45565 #endif
45566 #if (__GNUC__ == 3) && \
45567 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
45568 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
45569 #error "no pch support"
45570 #endif
45571
45572 ;
45573 return 0;
45574}
45575_ACEOF
45576rm -f conftest.$ac_objext
45577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
ac1cb8d3 45578 (eval $ac_compile) 2>conftest.er1
a848cd7e 45579 ac_status=$?
ac1cb8d3
VS
45580 grep -v '^ *+' conftest.er1 >conftest.err
45581 rm -f conftest.er1
45582 cat conftest.err >&5
a848cd7e
SC
45583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45584 (exit $ac_status); } &&
5ff751d6 45585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
ac1cb8d3
VS
45586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45587 (eval $ac_try) 2>&5
45588 ac_status=$?
45589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45590 (exit $ac_status); }; } &&
45591 { ac_try='test -s conftest.$ac_objext'
a848cd7e
SC
45592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45593 (eval $ac_try) 2>&5
45594 ac_status=$?
45595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45596 (exit $ac_status); }; }; then
45597
45598 echo "$as_me:$LINENO: result: yes" >&5
45599echo "${ECHO_T}yes" >&6
a848cd7e
SC
45600 GCC_PCH=1
45601
45602else
45603 echo "$as_me: failed program was:" >&5
45604sed 's/^/| /' conftest.$ac_ext >&5
45605
45606
45607 echo "$as_me:$LINENO: result: no" >&5
45608echo "${ECHO_T}no" >&6
45609
45610fi
ac1cb8d3 45611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a848cd7e 45612 if test $GCC_PCH = 1 ; then
1e9e8aba
DE
45613
45614D='$'
45615cat <<EOF >bk-make-pch
a848cd7e
SC
45616#!/bin/sh
45617
45618# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
45619# script. It is used to generated precompiled headers.
45620#
45621# Permission is given to use this file in any way.
45622
1e9e8aba
DE
45623outfile="${D}{1}"
45624header="${D}{2}"
a848cd7e
SC
45625shift
45626shift
45627
45628compiler=
45629headerfile=
1e9e8aba
DE
45630while test ${D}{#} -gt 0; do
45631 case "${D}{1}" in
a848cd7e 45632 -I* )
1e9e8aba
DE
45633 incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
45634 if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
45635 headerfile="${D}{incdir}/${D}{header}"
a848cd7e
SC
45636 fi
45637 ;;
45638 esac
1e9e8aba 45639 compiler="${D}{compiler} ${D}{1}"
a848cd7e
SC
45640 shift
45641done
45642
1e9e8aba
DE
45643if test "x${D}{headerfile}" = "x" ; then
45644 echo "error: can't find header ${D}{header} in include paths" >2
a848cd7e 45645else
1e9e8aba
DE
45646 if test -f ${D}{outfile} ; then
45647 rm -f ${D}{outfile}
a848cd7e 45648 else
1e9e8aba 45649 mkdir -p \`dirname ${D}{outfile}\`
a848cd7e 45650 fi
1e9e8aba 45651 depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
a848cd7e
SC
45652 mkdir -p .deps
45653 # can do this because gcc is >= 3.4:
1e9e8aba
DE
45654 ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
45655 exit ${D}{?}
a848cd7e
SC
45656fi
45657EOF
1e9e8aba 45658
a848cd7e
SC
45659 chmod +x bk-make-pch
45660 fi
45661 fi
45662 fi
45663
45664
45665
a848cd7e
SC
45666 COND_BUILD_DEBUG="#"
45667 if test "x$BUILD" = "xdebug" ; then
45668 COND_BUILD_DEBUG=""
45669 fi
45670
45671 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
45672 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
45673 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
45674 fi
45675
45676 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
45677 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
45678 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
45679 fi
45680
45681 COND_BUILD_DEBUG_UNICODE_0="#"
45682 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
45683 COND_BUILD_DEBUG_UNICODE_0=""
45684 fi
45685
45686 COND_BUILD_DEBUG_UNICODE_1="#"
45687 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
45688 COND_BUILD_DEBUG_UNICODE_1=""
45689 fi
45690
45691 COND_BUILD_RELEASE="#"
45692 if test "x$BUILD" = "xrelease" ; then
45693 COND_BUILD_RELEASE=""
45694 fi
45695
45696 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
45697 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
45698 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
45699 fi
45700
45701 COND_BUILD_RELEASE_UNICODE_0="#"
45702 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
45703 COND_BUILD_RELEASE_UNICODE_0=""
45704 fi
45705
45706 COND_BUILD_RELEASE_UNICODE_1="#"
45707 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
45708 COND_BUILD_RELEASE_UNICODE_1=""
45709 fi
45710
45711 COND_DEBUG_FLAG_1="#"
45712 if test "x$DEBUG_FLAG" = "x1" ; then
45713 COND_DEBUG_FLAG_1=""
45714 fi
45715
45716 COND_DEBUG_INFO_0="#"
45717 if test "x$DEBUG_INFO" = "x0" ; then
45718 COND_DEBUG_INFO_0=""
45719 fi
45720
45721 COND_DEBUG_INFO_1="#"
45722 if test "x$DEBUG_INFO" = "x1" ; then
45723 COND_DEBUG_INFO_1=""
45724 fi
45725
45726 COND_DEPS_TRACKING_0="#"
45727 if test "x$DEPS_TRACKING" = "x0" ; then
45728 COND_DEPS_TRACKING_0=""
45729 fi
45730
45731 COND_DEPS_TRACKING_1="#"
45732 if test "x$DEPS_TRACKING" = "x1" ; then
45733 COND_DEPS_TRACKING_1=""
45734 fi
45735
45736 COND_GCC_PCH_1="#"
45737 if test "x$GCC_PCH" = "x1" ; then
45738 COND_GCC_PCH_1=""
45739 fi
45740
45741 COND_MONOLITHIC_0="#"
45742 if test "x$MONOLITHIC" = "x0" ; then
45743 COND_MONOLITHIC_0=""
45744 fi
45745
45746 COND_MONOLITHIC_0_SHARED_0="#"
45747 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
45748 COND_MONOLITHIC_0_SHARED_0=""
45749 fi
45750
45751 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
45752 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
45753 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
45754 fi
45755
90970d69
DE
45756 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
45757 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45758 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
45759 fi
45760
a848cd7e
SC
45761 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
45762 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45763 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
45764 fi
45765
6671c68b
VZ
45766 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
45767 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45768 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
45769 fi
45770
a848cd7e
SC
45771 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
45772 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
45773 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
45774 fi
45775
ceec2216
RL
45776 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
45777 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
45778 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
45779 fi
45780
a848cd7e
SC
45781 COND_MONOLITHIC_0_SHARED_1="#"
45782 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
45783 COND_MONOLITHIC_0_SHARED_1=""
45784 fi
45785
45786 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
45787 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
45788 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
45789 fi
45790
90970d69
DE
45791 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
45792 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
45793 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
45794 fi
45795
a848cd7e
SC
45796 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
45797 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
45798 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
45799 fi
45800
6671c68b
VZ
45801 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
45802 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
45803 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
45804 fi
45805
a848cd7e
SC
45806 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
45807 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
45808 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
45809 fi
45810
ceec2216
RL
45811 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
45812 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
45813 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
45814 fi
45815
a848cd7e
SC
45816 COND_MONOLITHIC_0_USE_ODBC_1="#"
45817 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
45818 COND_MONOLITHIC_0_USE_ODBC_1=""
45819 fi
45820
45821 COND_MONOLITHIC_1="#"
45822 if test "x$MONOLITHIC" = "x1" ; then
45823 COND_MONOLITHIC_1=""
45824 fi
45825
45826 COND_MONOLITHIC_1_SHARED_0="#"
45827 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
45828 COND_MONOLITHIC_1_SHARED_0=""
45829 fi
45830
45831 COND_MONOLITHIC_1_SHARED_1="#"
45832 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
45833 COND_MONOLITHIC_1_SHARED_1=""
45834 fi
45835
45836 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
45837 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
45838 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
45839 fi
45840
45841 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
45842 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
45843 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
45844 fi
45845
eb730a0c
JS
45846 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
45847 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45848 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
45849 fi
45850
a848cd7e
SC
45851 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
45852 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
45853 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
45854 fi
45855
45856 COND_PLATFORM_MACOSX_1="#"
45857 if test "x$PLATFORM_MACOSX" = "x1" ; then
45858 COND_PLATFORM_MACOSX_1=""
45859 fi
45860
a30f955f
VS
45861 COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
45862 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
45863 COND_PLATFORM_MACOSX_1_TOOLKIT_=""
45864 fi
45865
a848cd7e
SC
45866 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
45867 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
45868 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
45869 fi
45870
45871 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
45872 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
45873 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
45874 fi
45875
45876 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
45877 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
45878 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
45879 fi
45880
fc480dc1
DE
45881 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
45882 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
45883 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
45884 fi
45885
1e9e8aba
DE
45886 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
45887 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
45888 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
45889 fi
45890
ebee3cd0
VS
45891 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
45892 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
45893 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
45894 fi
45895
45896 COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
45897 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
45898 COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
45899 fi
45900
a848cd7e
SC
45901 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
45902 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
45903 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
45904 fi
45905
45906 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
45907 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
45908 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
45909 fi
45910
b48a2016
DE
45911 COND_PLATFORM_MACOS_1="#"
45912 if test "x$PLATFORM_MACOS" = "x1" ; then
45913 COND_PLATFORM_MACOS_1=""
45914 fi
45915
083508af
MW
45916 COND_PLATFORM_MAC_1="#"
45917 if test "x$PLATFORM_MAC" = "x1" ; then
45918 COND_PLATFORM_MAC_1=""
45919 fi
45920
83d8eb47
MW
45921 COND_PLATFORM_MSDOS_1="#"
45922 if test "x$PLATFORM_MSDOS" = "x1" ; then
45923 COND_PLATFORM_MSDOS_1=""
45924 fi
45925
a848cd7e
SC
45926 COND_PLATFORM_OS2_1="#"
45927 if test "x$PLATFORM_OS2" = "x1" ; then
45928 COND_PLATFORM_OS2_1=""
45929 fi
45930
45931 COND_PLATFORM_UNIX_0="#"
45932 if test "x$PLATFORM_UNIX" = "x0" ; then
45933 COND_PLATFORM_UNIX_0=""
45934 fi
45935
45936 COND_PLATFORM_UNIX_1="#"
45937 if test "x$PLATFORM_UNIX" = "x1" ; then
45938 COND_PLATFORM_UNIX_1=""
45939 fi
45940
45941 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
45942 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
45943 COND_PLATFORM_UNIX_1_USE_GUI_1=""
45944 fi
45945
45946 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
45947 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
45948 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
45949 fi
45950
45951 COND_PLATFORM_WIN32_0="#"
45952 if test "x$PLATFORM_WIN32" = "x0" ; then
45953 COND_PLATFORM_WIN32_0=""
45954 fi
45955
45956 COND_PLATFORM_WIN32_1="#"
45957 if test "x$PLATFORM_WIN32" = "x1" ; then
45958 COND_PLATFORM_WIN32_1=""
45959 fi
45960
45961 COND_SHARED_0="#"
45962 if test "x$SHARED" = "x0" ; then
45963 COND_SHARED_0=""
45964 fi
45965
083508af
MW
45966 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
45967 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
45968 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
45969 fi
45970
45971 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
45972 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
45973 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
45974 fi
45975
45976 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
45977 if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
45978 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
45979 fi
45980
a848cd7e
SC
45981 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
45982 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
45983 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
45984 fi
45985
45986 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
45987 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
45988 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
45989 fi
45990
45991 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
45992 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
45993 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
45994 fi
45995
45996 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
45997 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
45998 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
45999 fi
46000
083508af
MW
46001 COND_SHARED_0_USE_XRC_1="#"
46002 if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
46003 COND_SHARED_0_USE_XRC_1=""
46004 fi
46005
a848cd7e
SC
46006 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
46007 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
46008 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
46009 fi
46010
46011 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
46012 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
46013 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
46014 fi
46015
46016 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
46017 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
46018 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
46019 fi
46020
46021 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
46022 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
46023 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
46024 fi
46025
46026 COND_SHARED_1="#"
46027 if test "x$SHARED" = "x1" ; then
46028 COND_SHARED_1=""
46029 fi
46030
46031 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
46032 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
46033 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
46034 fi
46035
083508af
MW
46036 COND_SHARED_1_USE_XRC_1="#"
46037 if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
46038 COND_SHARED_1_USE_XRC_1=""
46039 fi
46040
a30f955f
VS
46041 COND_TOOLKIT_="#"
46042 if test "x$TOOLKIT" = "x" ; then
46043 COND_TOOLKIT_=""
46044 fi
46045
a848cd7e
SC
46046 COND_TOOLKIT_COCOA="#"
46047 if test "x$TOOLKIT" = "xCOCOA" ; then
46048 COND_TOOLKIT_COCOA=""
46049 fi
46050
a49baeab
DE
46051 COND_TOOLKIT_COCOA_USE_GUI_1="#"
46052 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
46053 COND_TOOLKIT_COCOA_USE_GUI_1=""
46054 fi
46055
a848cd7e
SC
46056 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
46057 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46058 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
46059 fi
46060
46061 COND_TOOLKIT_GTK="#"
46062 if test "x$TOOLKIT" = "xGTK" ; then
46063 COND_TOOLKIT_GTK=""
46064 fi
46065
46066 COND_TOOLKIT_GTK_USE_GUI_1="#"
46067 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
46068 COND_TOOLKIT_GTK_USE_GUI_1=""
46069 fi
46070
46071 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
46072 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46073 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
46074 fi
46075
46076 COND_TOOLKIT_MAC="#"
46077 if test "x$TOOLKIT" = "xMAC" ; then
46078 COND_TOOLKIT_MAC=""
46079 fi
46080
46081 COND_TOOLKIT_MAC_USE_GUI_1="#"
46082 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
46083 COND_TOOLKIT_MAC_USE_GUI_1=""
46084 fi
46085
46086 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
46087 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46088 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
46089 fi
46090
46091 COND_TOOLKIT_MGL="#"
46092 if test "x$TOOLKIT" = "xMGL" ; then
46093 COND_TOOLKIT_MGL=""
46094 fi
46095
46096 COND_TOOLKIT_MGL_USE_GUI_1="#"
46097 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
46098 COND_TOOLKIT_MGL_USE_GUI_1=""
46099 fi
46100
46101 COND_TOOLKIT_MOTIF="#"
46102 if test "x$TOOLKIT" = "xMOTIF" ; then
46103 COND_TOOLKIT_MOTIF=""
46104 fi
46105
46106 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
46107 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
46108 COND_TOOLKIT_MOTIF_USE_GUI_1=""
46109 fi
46110
46111 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
46112 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46113 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
46114 fi
46115
46116 COND_TOOLKIT_MSW="#"
46117 if test "x$TOOLKIT" = "xMSW" ; then
46118 COND_TOOLKIT_MSW=""
46119 fi
46120
46121 COND_TOOLKIT_MSW_USE_GUI_1="#"
46122 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
46123 COND_TOOLKIT_MSW_USE_GUI_1=""
46124 fi
46125
46126 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
46127 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46128 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
46129 fi
46130
0ee4059d
DE
46131 COND_TOOLKIT_MSW_WXUNIV_0="#"
46132 if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
46133 COND_TOOLKIT_MSW_WXUNIV_0=""
46134 fi
46135
a848cd7e
SC
46136 COND_TOOLKIT_PM="#"
46137 if test "x$TOOLKIT" = "xPM" ; then
46138 COND_TOOLKIT_PM=""
46139 fi
46140
46141 COND_TOOLKIT_PM_USE_GUI_1="#"
46142 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
46143 COND_TOOLKIT_PM_USE_GUI_1=""
46144 fi
46145
46146 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
46147 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46148 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
46149 fi
46150
3fd9c298
DE
46151 COND_TOOLKIT_WINCE="#"
46152 if test "x$TOOLKIT" = "xWINCE" ; then
46153 COND_TOOLKIT_WINCE=""
46154 fi
46155
46156 COND_TOOLKIT_WINCE_USE_GUI_1="#"
46157 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
46158 COND_TOOLKIT_WINCE_USE_GUI_1=""
46159 fi
46160
46161 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
46162 if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46163 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
46164 fi
46165
0ee4059d
DE
46166 COND_TOOLKIT_WINCE_WXUNIV_0="#"
46167 if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
46168 COND_TOOLKIT_WINCE_WXUNIV_0=""
46169 fi
46170
a848cd7e
SC
46171 COND_TOOLKIT_X11="#"
46172 if test "x$TOOLKIT" = "xX11" ; then
46173 COND_TOOLKIT_X11=""
46174 fi
46175
46176 COND_TOOLKIT_X11_USE_GUI_1="#"
46177 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
46178 COND_TOOLKIT_X11_USE_GUI_1=""
46179 fi
46180
46181 COND_UNICODE_1="#"
46182 if test "x$UNICODE" = "x1" ; then
46183 COND_UNICODE_1=""
46184 fi
46185
46186 COND_USE_EXCEPTIONS_0="#"
46187 if test "x$USE_EXCEPTIONS" = "x0" ; then
46188 COND_USE_EXCEPTIONS_0=""
46189 fi
46190
46191 COND_USE_EXCEPTIONS_1="#"
46192 if test "x$USE_EXCEPTIONS" = "x1" ; then
46193 COND_USE_EXCEPTIONS_1=""
46194 fi
46195
46196 COND_USE_GUI_0="#"
46197 if test "x$USE_GUI" = "x0" ; then
46198 COND_USE_GUI_0=""
46199 fi
46200
46201 COND_USE_GUI_1="#"
46202 if test "x$USE_GUI" = "x1" ; then
46203 COND_USE_GUI_1=""
46204 fi
46205
46206 COND_USE_GUI_1_WXUNIV_0="#"
46207 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
46208 COND_USE_GUI_1_WXUNIV_0=""
46209 fi
46210
46211 COND_USE_GUI_1_WXUNIV_1="#"
46212 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
46213 COND_USE_GUI_1_WXUNIV_1=""
46214 fi
46215
46216 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
46217 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46218 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
46219 fi
46220
46221 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
46222 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46223 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
46224 fi
46225
46226 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
46227 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46228 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
46229 fi
46230
083508af
MW
46231 COND_USE_ODBC_1="#"
46232 if test "x$USE_ODBC" = "x1" ; then
46233 COND_USE_ODBC_1=""
46234 fi
46235
46236 COND_USE_OPENGL_1="#"
46237 if test "x$USE_OPENGL" = "x1" ; then
46238 COND_USE_OPENGL_1=""
46239 fi
46240
a848cd7e
SC
46241 COND_USE_PLUGINS_0="#"
46242 if test "x$USE_PLUGINS" = "x0" ; then
46243 COND_USE_PLUGINS_0=""
46244 fi
46245
0b78747f
MW
46246 COND_USE_RTTI_0="#"
46247 if test "x$USE_RTTI" = "x0" ; then
46248 COND_USE_RTTI_0=""
46249 fi
46250
46251 COND_USE_RTTI_1="#"
46252 if test "x$USE_RTTI" = "x1" ; then
46253 COND_USE_RTTI_1=""
46254 fi
46255
a848cd7e
SC
46256 COND_USE_SOSYMLINKS_1="#"
46257 if test "x$USE_SOSYMLINKS" = "x1" ; then
46258 COND_USE_SOSYMLINKS_1=""
46259 fi
46260
eb730a0c
JS
46261 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
46262 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
46263 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
46264 fi
46265
a848cd7e
SC
46266 COND_USE_SOVERLINUX_1="#"
46267 if test "x$USE_SOVERLINUX" = "x1" ; then
46268 COND_USE_SOVERLINUX_1=""
46269 fi
46270
46271 COND_USE_SOVERSION_0="#"
46272 if test "x$USE_SOVERSION" = "x0" ; then
46273 COND_USE_SOVERSION_0=""
46274 fi
46275
46276 COND_USE_SOVERSOLARIS_1="#"
46277 if test "x$USE_SOVERSOLARIS" = "x1" ; then
46278 COND_USE_SOVERSOLARIS_1=""
46279 fi
46280
0b78747f
MW
46281 COND_USE_THREADS_0="#"
46282 if test "x$USE_THREADS" = "x0" ; then
46283 COND_USE_THREADS_0=""
46284 fi
46285
46286 COND_USE_THREADS_1="#"
46287 if test "x$USE_THREADS" = "x1" ; then
46288 COND_USE_THREADS_1=""
46289 fi
46290
a13a7f89
RL
46291 COND_USE_XRC_1="#"
46292 if test "x$USE_XRC" = "x1" ; then
46293 COND_USE_XRC_1=""
46294 fi
46295
eb730a0c
JS
46296 COND_WINDOWS_IMPLIB_1="#"
46297 if test "x$WINDOWS_IMPLIB" = "x1" ; then
46298 COND_WINDOWS_IMPLIB_1=""
46299 fi
46300
a848cd7e
SC
46301 COND_WITH_PLUGIN_SDL_1="#"
46302 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
46303 COND_WITH_PLUGIN_SDL_1=""
46304 fi
46305
1e6eb025
VZ
46306 COND_WXUNIV_0="#"
46307 if test "x$WXUNIV" = "x0" ; then
46308 COND_WXUNIV_0=""
46309 fi
46310
a848cd7e
SC
46311 COND_WXUNIV_1="#"
46312 if test "x$WXUNIV" = "x1" ; then
46313 COND_WXUNIV_1=""
46314 fi
46315
46316 COND_WXUSE_EXPAT_BUILTIN="#"
46317 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
46318 COND_WXUSE_EXPAT_BUILTIN=""
46319 fi
46320
46321 COND_WXUSE_LIBJPEG_BUILTIN="#"
46322 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
46323 COND_WXUSE_LIBJPEG_BUILTIN=""
46324 fi
46325
46326 COND_WXUSE_LIBPNG_BUILTIN="#"
46327 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
46328 COND_WXUSE_LIBPNG_BUILTIN=""
46329 fi
46330
46331 COND_WXUSE_LIBTIFF_BUILTIN="#"
46332 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
46333 COND_WXUSE_LIBTIFF_BUILTIN=""
46334 fi
46335
46336 COND_WXUSE_ODBC_BUILTIN="#"
46337 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
46338 COND_WXUSE_ODBC_BUILTIN=""
46339 fi
46340
46341 COND_WXUSE_REGEX_BUILTIN="#"
46342 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
46343 COND_WXUSE_REGEX_BUILTIN=""
46344 fi
46345
46346 COND_WXUSE_ZLIB_BUILTIN="#"
46347 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
46348 COND_WXUSE_ZLIB_BUILTIN=""
46349 fi
46350
46351
46352
810b94f0
MW
46353 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
46354 { { 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
46355echo "$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;}
46356 { (exit 1); exit 1; }; }
46357 fi
46358
2057db16
VS
46359 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
46360 { { 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
46361echo "$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;}
46362 { (exit 1); exit 1; }; }
46363 fi
46364
a848cd7e 46365
ceec2216
RL
46366if test "$wxUSE_SHARED" = "yes"; then
46367
46368 sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
46369 EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
46370
5b674b9d
DE
46371 case "${host}" in
46372 *-pc-os2_emx | *-pc-os2-emx )
46373 SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46374 SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
46375 cp -p ${srcdir}/src/os2/dllnames.sh .
46376 cp -p ${srcdir}/src/os2/dllar.sh .
46377 ;;
46378 esac
ceec2216
RL
46379else
46380
46381 EXE_LINKER="$CXX -o"
46382
46383fi
69120ee4
VZ
46384if test "$wxUSE_OMF" = "yes"; then
46385 case "${host}" in
46386 *-pc-os2_emx | *-pc-os2-emx )
46387 LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
46388 LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46389 WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
46390 ;;
46391 esac
46392fi
a848cd7e 46393
c08ebc62 46394if test $GCC_PCH = 1 ; then
254e8e29 46395 CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
ddd14b14 46396fi
a848cd7e 46397
5ff751d6 46398WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
a848cd7e
SC
46399
46400SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
46401
46402
46403
46404
46405
46406
46407
46408
46409
46410
46411
46412
46413
46414
46415
46416
46417
46418
46419
46420
46421
46422
46423
46424
46425
46426
46427
46428
46429
46430
46431
46432
46433
46434
46435
46436
46437
46438
46439
46440
46441
46442
a848cd7e
SC
46443
46444
46445
46446
46447
46448
46449
46450
46451
46452
46453
46454
a848cd7e
SC
46455
46456
ddd14b14 46457
a848cd7e
SC
46458
46459
46460echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
46461echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
ac1cb8d3 46462set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
a848cd7e
SC
46463if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
46464 echo $ECHO_N "(cached) $ECHO_C" >&6
46465else
46466 cat >conftest.make <<\_ACEOF
46467all:
46468 @echo 'ac_maketemp="$(MAKE)"'
46469_ACEOF
46470# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
46471eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
46472if test -n "$ac_maketemp"; then
46473 eval ac_cv_prog_make_${ac_make}_set=yes
46474else
46475 eval ac_cv_prog_make_${ac_make}_set=no
46476fi
46477rm -f conftest.make
46478fi
46479if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
46480 echo "$as_me:$LINENO: result: yes" >&5
46481echo "${ECHO_T}yes" >&6
46482 SET_MAKE=
46483else
46484 echo "$as_me:$LINENO: result: no" >&5
46485echo "${ECHO_T}no" >&6
46486 SET_MAKE="MAKE=${MAKE-make}"
46487fi
46488
46489
a848cd7e 46490
ceec2216
RL
46491 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
46492
a848cd7e 46493
5c60e845
MW
46494if test "$USE_WIN32" = 1; then
46495 ac_config_commands="$ac_config_commands
46496 rcdefs.h
46497 "
46498
46499fi
46500
ceec2216 46501 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
a848cd7e 46502
a848cd7e 46503
ceec2216 46504 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
a848cd7e 46505
ceec2216
RL
46506
46507 ac_config_files="$ac_config_files version-script Makefile"
46508
46509
5c60e845 46510 ac_config_commands="$ac_config_commands wx-config"
a848cd7e
SC
46511
46512
9103d280 46513
1c14217d 46514if test "$wxWITH_SUBDIRS" != "no"; then
a848cd7e
SC
46515if test "$wxUSE_GUI" = "yes"; then
46516 SUBDIRS="samples demos utils contrib"
46517else SUBDIRS="samples utils"
46518fi
46519
46520
46521
46522# Check whether --with-cppunit-prefix or --without-cppunit-prefix was given.
46523if test "${with_cppunit_prefix+set}" = set; then
46524 withval="$with_cppunit_prefix"
46525 cppunit_config_prefix="$withval"
46526else
46527 cppunit_config_prefix=""
46528fi;
46529
46530# Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given.
46531if test "${with_cppunit_exec_prefix+set}" = set; then
46532 withval="$with_cppunit_exec_prefix"
46533 cppunit_config_exec_prefix="$withval"
46534else
46535 cppunit_config_exec_prefix=""
46536fi;
46537
46538 if test x$cppunit_config_exec_prefix != x ; then
46539 cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
46540 if test x${CPPUNIT_CONFIG+set} != xset ; then
46541 CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
46542 fi
46543 fi
46544 if test x$cppunit_config_prefix != x ; then
46545 cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
46546 if test x${CPPUNIT_CONFIG+set} != xset ; then
46547 CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
46548 fi
46549 fi
46550
46551 # Extract the first word of "cppunit-config", so it can be a program name with args.
46552set dummy cppunit-config; ac_word=$2
46553echo "$as_me:$LINENO: checking for $ac_word" >&5
46554echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
46555if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
46556 echo $ECHO_N "(cached) $ECHO_C" >&6
46557else
46558 case $CPPUNIT_CONFIG in
46559 [\\/]* | ?:[\\/]*)
46560 ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
46561 ;;
46562 *)
46563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46564for as_dir in $PATH
46565do
46566 IFS=$as_save_IFS
46567 test -z "$as_dir" && as_dir=.
46568 for ac_exec_ext in '' $ac_executable_extensions; do
46569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
46570 ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
46571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46572 break 2
46573 fi
46574done
46575done
46576
46577 test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
46578 ;;
46579esac
46580fi
46581CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
46582
46583if test -n "$CPPUNIT_CONFIG"; then
46584 echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
46585echo "${ECHO_T}$CPPUNIT_CONFIG" >&6
46586else
46587 echo "$as_me:$LINENO: result: no" >&5
46588echo "${ECHO_T}no" >&6
46589fi
46590
46591 cppunit_version_min=1.8.0
46592
46593 echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
46594echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6
46595 no_cppunit=""
46596 if test "$CPPUNIT_CONFIG" = "no" ; then
46597 no_cppunit=yes
46598 else
46599 CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
46600 CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
46601 cppunit_version=`$CPPUNIT_CONFIG --version`
46602
46603 cppunit_major_version=`echo $cppunit_version | \
46604 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46605 cppunit_minor_version=`echo $cppunit_version | \
46606 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46607 cppunit_micro_version=`echo $cppunit_version | \
46608 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46609
46610 cppunit_major_min=`echo $cppunit_version_min | \
46611 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
46612 cppunit_minor_min=`echo $cppunit_version_min | \
46613 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
46614 cppunit_micro_min=`echo $cppunit_version_min | \
46615 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
46616
46617 cppunit_version_proper=`expr \
46618 $cppunit_major_version \> $cppunit_major_min \| \
46619 $cppunit_major_version \= $cppunit_major_min \& \
46620 $cppunit_minor_version \> $cppunit_minor_min \| \
46621 $cppunit_major_version \= $cppunit_major_min \& \
46622 $cppunit_minor_version \= $cppunit_minor_min \& \
46623 $cppunit_micro_version \>= $cppunit_micro_min `
46624
46625 if test "$cppunit_version_proper" = "1" ; then
46626 echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
46627echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6
46628 else
46629 echo "$as_me:$LINENO: result: no" >&5
46630echo "${ECHO_T}no" >&6
46631 no_cppunit=yes
46632 fi
46633 fi
46634
46635 if test "x$no_cppunit" = x ; then
c2218763 46636 SUBDIRS="$SUBDIRS tests"
a848cd7e
SC
46637 else
46638 CPPUNIT_CFLAGS=""
46639 CPPUNIT_LIBS=""
c2218763 46640 :
a848cd7e
SC
46641 fi
46642
46643
46644
46645
46646
46647for subdir in `echo $SUBDIRS`; do
46648 if test -d ${srcdir}/${subdir} ; then
46649 if test "$wxUSE_GUI" = "yes"; then
46650 if test ${subdir} = "samples"; then
46651 makefiles="samples/Makefile.in $makefiles"
46652 for sample in `echo $SAMPLES_SUBDIRS`; do
46653 if test -d $srcdir/samples/$sample; then
46654 makefiles="samples/$sample/Makefile.in $makefiles"
46655 fi
46656 done
9c112555
MW
46657 else
46658 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
46659 eval "disabled=\$$disabled_var"
46660 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
46661 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | egrep -v "$disabled"`
a848cd7e
SC
46662 fi
46663 else if test ${subdir} = "samples"; then
46664 makefiles="samples/Makefile.in samples/console/Makefile.in"
46665 elif test ${subdir} = "utils"; then
6537ccf8
VS
46666 makefiles=""
46667 for util in HelpGen tex2rtf ; do
46668 if test -d $srcdir/utils/$util ; then
46669 makefiles="utils/$util/Makefile.in \
46670 utils/$util/src/Makefile.in \
46671 $makefiles"
46672 fi
46673 done
a848cd7e
SC
46674 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
46675 fi
46676 fi
46677
46678 for mkin in $makefiles ; do
46679 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
46680 ac_config_files="$ac_config_files $mk"
46681
46682 done
46683 fi
46684done
1c14217d 46685fi
a848cd7e
SC
46686cat >confcache <<\_ACEOF
46687# This file is a shell script that caches the results of configure
46688# tests run on this system so they can be shared between configure
46689# scripts and configure runs, see configure's option --config-cache.
46690# It is not useful on other systems. If it contains results you don't
46691# want to keep, you may remove or edit it.
46692#
46693# config.status only pays attention to the cache file if you give it
46694# the --recheck option to rerun configure.
46695#
46696# `ac_cv_env_foo' variables (set or unset) will be overridden when
46697# loading this file, other *unset* `ac_cv_foo' will be assigned the
46698# following values.
46699
46700_ACEOF
46701
46702# The following way of writing the cache mishandles newlines in values,
46703# but we know of no workaround that is simple, portable, and efficient.
46704# So, don't put newlines in cache variables' values.
46705# Ultrix sh set writes to stderr and can't be redirected directly,
46706# and sets the high bit in the cache file unless we assign to the vars.
46707{
46708 (set) 2>&1 |
46709 case `(ac_space=' '; set | grep ac_space) 2>&1` in
46710 *ac_space=\ *)
46711 # `set' does not quote correctly, so add quotes (double-quote
46712 # substitution turns \\\\ into \\, and sed turns \\ into \).
46713 sed -n \
ac1cb8d3
VS
46714 "s/'/'\\\\''/g;
46715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
a848cd7e
SC
46716 ;;
46717 *)
46718 # `set' quotes correctly as required by POSIX, so do not add quotes.
46719 sed -n \
ac1cb8d3 46720 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
a848cd7e
SC
46721 ;;
46722 esac;
46723} |
46724 sed '
46725 t clear
46726 : clear
46727 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46728 t end
46729 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46730 : end' >>confcache
46731if diff $cache_file confcache >/dev/null 2>&1; then :; else
46732 if test -w $cache_file; then
46733 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
46734 cat confcache >$cache_file
46735 else
46736 echo "not updating unwritable cache $cache_file"
46737 fi
46738fi
46739rm -f confcache
46740
46741test "x$prefix" = xNONE && prefix=$ac_default_prefix
46742# Let make expand exec_prefix.
46743test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46744
46745# VPATH may cause trouble with some makes, so we remove $(srcdir),
46746# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
46747# trailing colons and then remove the whole line if VPATH becomes empty
46748# (actually we leave an empty line to preserve line numbers).
46749if test "x$srcdir" = x.; then
ac1cb8d3 46750 ac_vpsub='/^[ ]*VPATH[ ]*=/{
a848cd7e
SC
46751s/:*\$(srcdir):*/:/;
46752s/:*\${srcdir}:*/:/;
46753s/:*@srcdir@:*/:/;
ac1cb8d3 46754s/^\([^=]*=[ ]*\):*/\1/;
a848cd7e 46755s/:*$//;
ac1cb8d3 46756s/^[^=]*=[ ]*$//;
a848cd7e
SC
46757}'
46758fi
46759
46760DEFS=-DHAVE_CONFIG_H
46761
46762ac_libobjs=
46763ac_ltlibobjs=
46764for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46765 # 1. Remove the extension, and $U if already installed.
46766 ac_i=`echo "$ac_i" |
ac1cb8d3 46767 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
a848cd7e
SC
46768 # 2. Add them.
46769 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
46770 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
46771done
46772LIBOBJS=$ac_libobjs
46773
46774LTLIBOBJS=$ac_ltlibobjs
46775
46776
46777
46778: ${CONFIG_STATUS=./config.status}
46779ac_clean_files_save=$ac_clean_files
46780ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46781{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46782echo "$as_me: creating $CONFIG_STATUS" >&6;}
46783cat >$CONFIG_STATUS <<_ACEOF
46784#! $SHELL
46785# Generated by $as_me.
46786# Run this file to recreate the current configuration.
46787# Compiler output produced by configure, useful for debugging
46788# configure, is in config.log if it exists.
46789
46790debug=false
46791ac_cs_recheck=false
46792ac_cs_silent=false
46793SHELL=\${CONFIG_SHELL-$SHELL}
46794_ACEOF
46795
46796cat >>$CONFIG_STATUS <<\_ACEOF
46797## --------------------- ##
46798## M4sh Initialization. ##
46799## --------------------- ##
46800
46801# Be Bourne compatible
46802if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46803 emulate sh
46804 NULLCMD=:
46805 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
46806 # is contrary to our usage. Disable this feature.
46807 alias -g '${1+"$@"}'='"$@"'
46808elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
46809 set -o posix
46810fi
ac1cb8d3 46811DUALCASE=1; export DUALCASE # for MKS sh
a848cd7e
SC
46812
46813# Support unset when possible.
ac1cb8d3 46814if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
a848cd7e
SC
46815 as_unset=unset
46816else
46817 as_unset=false
46818fi
46819
46820
46821# Work around bugs in pre-3.0 UWIN ksh.
46822$as_unset ENV MAIL MAILPATH
46823PS1='$ '
46824PS2='> '
46825PS4='+ '
46826
46827# NLS nuisances.
46828for as_var in \
46829 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46830 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46831 LC_TELEPHONE LC_TIME
46832do
ac1cb8d3 46833 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
a848cd7e
SC
46834 eval $as_var=C; export $as_var
46835 else
46836 $as_unset $as_var
46837 fi
46838done
46839
46840# Required to use basename.
46841if expr a : '\(a\)' >/dev/null 2>&1; then
46842 as_expr=expr
46843else
46844 as_expr=false
46845fi
46846
46847if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
46848 as_basename=basename
46849else
46850 as_basename=false
46851fi
46852
46853
46854# Name of the executable.
46855as_me=`$as_basename "$0" ||
46856$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46857 X"$0" : 'X\(//\)$' \| \
46858 X"$0" : 'X\(/\)$' \| \
46859 . : '\(.\)' 2>/dev/null ||
46860echo X/"$0" |
46861 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
46862 /^X\/\(\/\/\)$/{ s//\1/; q; }
46863 /^X\/\(\/\).*/{ s//\1/; q; }
46864 s/.*/./; q'`
46865
46866
46867# PATH needs CR, and LINENO needs CR and PATH.
46868# Avoid depending upon Character Ranges.
46869as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46870as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46871as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46872as_cr_digits='0123456789'
46873as_cr_alnum=$as_cr_Letters$as_cr_digits
46874
46875# The user is always right.
46876if test "${PATH_SEPARATOR+set}" != set; then
46877 echo "#! /bin/sh" >conf$$.sh
46878 echo "exit 0" >>conf$$.sh
46879 chmod +x conf$$.sh
46880 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46881 PATH_SEPARATOR=';'
46882 else
46883 PATH_SEPARATOR=:
46884 fi
46885 rm -f conf$$.sh
46886fi
46887
46888
46889 as_lineno_1=$LINENO
46890 as_lineno_2=$LINENO
46891 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46892 test "x$as_lineno_1" != "x$as_lineno_2" &&
46893 test "x$as_lineno_3" = "x$as_lineno_2" || {
46894 # Find who we are. Look in the path if we contain no path at all
46895 # relative or not.
46896 case $0 in
46897 *[\\/]* ) as_myself=$0 ;;
46898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46899for as_dir in $PATH
46900do
46901 IFS=$as_save_IFS
46902 test -z "$as_dir" && as_dir=.
46903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46904done
46905
46906 ;;
46907 esac
46908 # We did not find ourselves, most probably we were run as `sh COMMAND'
46909 # in which case we are not to be found in the path.
46910 if test "x$as_myself" = x; then
46911 as_myself=$0
46912 fi
46913 if test ! -f "$as_myself"; then
46914 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
46915echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
46916 { (exit 1); exit 1; }; }
46917 fi
46918 case $CONFIG_SHELL in
46919 '')
46920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46921for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
46922do
46923 IFS=$as_save_IFS
46924 test -z "$as_dir" && as_dir=.
46925 for as_base in sh bash ksh sh5; do
46926 case $as_dir in
46927 /*)
46928 if ("$as_dir/$as_base" -c '
46929 as_lineno_1=$LINENO
46930 as_lineno_2=$LINENO
46931 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
46932 test "x$as_lineno_1" != "x$as_lineno_2" &&
46933 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
46934 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
46935 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
46936 CONFIG_SHELL=$as_dir/$as_base
46937 export CONFIG_SHELL
46938 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
46939 fi;;
46940 esac
46941 done
46942done
46943;;
46944 esac
46945
46946 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46947 # uniformly replaced by the line number. The first 'sed' inserts a
46948 # line-number line before each line; the second 'sed' does the real
46949 # work. The second script uses 'N' to pair each line-number line
46950 # with the numbered line, and appends trailing '-' during
46951 # substitution so that $LINENO is not a special case at line end.
46952 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46953 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
46954 sed '=' <$as_myself |
46955 sed '
46956 N
46957 s,$,-,
46958 : loop
46959 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
46960 t loop
46961 s,-$,,
46962 s,^['$as_cr_digits']*\n,,
46963 ' >$as_me.lineno &&
46964 chmod +x $as_me.lineno ||
46965 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
46966echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
46967 { (exit 1); exit 1; }; }
46968
46969 # Don't try to exec as it changes $[0], causing all sort of problems
46970 # (the dirname of $[0] is not the place where we might find the
46971 # original and so on. Autoconf is especially sensible to this).
46972 . ./$as_me.lineno
46973 # Exit status is that of the last command.
46974 exit
46975}
46976
46977
46978case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
46979 *c*,-n*) ECHO_N= ECHO_C='
46980' ECHO_T=' ' ;;
46981 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
46982 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
46983esac
46984
46985if expr a : '\(a\)' >/dev/null 2>&1; then
46986 as_expr=expr
46987else
46988 as_expr=false
46989fi
46990
46991rm -f conf$$ conf$$.exe conf$$.file
46992echo >conf$$.file
46993if ln -s conf$$.file conf$$ 2>/dev/null; then
46994 # We could just check for DJGPP; but this test a) works b) is more generic
46995 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46996 if test -f conf$$.exe; then
46997 # Don't use ln at all; we don't have any links
46998 as_ln_s='cp -p'
46999 else
47000 as_ln_s='ln -s'
47001 fi
47002elif ln conf$$.file conf$$ 2>/dev/null; then
47003 as_ln_s=ln
47004else
47005 as_ln_s='cp -p'
47006fi
47007rm -f conf$$ conf$$.exe conf$$.file
47008
47009if mkdir -p . 2>/dev/null; then
47010 as_mkdir_p=:
47011else
ac1cb8d3 47012 test -d ./-p && rmdir ./-p
a848cd7e
SC
47013 as_mkdir_p=false
47014fi
47015
47016as_executable_p="test -f"
47017
47018# Sed expression to map a string onto a valid CPP name.
ac1cb8d3 47019as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
47020
47021# Sed expression to map a string onto a valid variable name.
ac1cb8d3 47022as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a848cd7e
SC
47023
47024
47025# IFS
47026# We need space, tab and new line, in precisely that order.
47027as_nl='
47028'
47029IFS=" $as_nl"
47030
47031# CDPATH.
47032$as_unset CDPATH
47033
47034exec 6>&1
47035
47036# Open the log real soon, to keep \$[0] and so on meaningful, and to
47037# report actual input values of CONFIG_FILES etc. instead of their
47038# values after options handling. Logging --version etc. is OK.
47039exec 5>>config.log
47040{
47041 echo
47042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47043## Running $as_me. ##
47044_ASBOX
47045} >&5
47046cat >&5 <<_CSEOF
47047
dd8df4fc 47048This file was extended by wxWidgets $as_me 2.7.0, which was
ac1cb8d3 47049generated by GNU Autoconf 2.59. Invocation command line was
a848cd7e
SC
47050
47051 CONFIG_FILES = $CONFIG_FILES
47052 CONFIG_HEADERS = $CONFIG_HEADERS
47053 CONFIG_LINKS = $CONFIG_LINKS
47054 CONFIG_COMMANDS = $CONFIG_COMMANDS
47055 $ $0 $@
47056
47057_CSEOF
47058echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
47059echo >&5
47060_ACEOF
47061
47062# Files that config.status was made for.
47063if test -n "$ac_config_files"; then
47064 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
47065fi
47066
47067if test -n "$ac_config_headers"; then
47068 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
47069fi
47070
47071if test -n "$ac_config_links"; then
47072 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
47073fi
47074
47075if test -n "$ac_config_commands"; then
47076 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
47077fi
47078
47079cat >>$CONFIG_STATUS <<\_ACEOF
47080
47081ac_cs_usage="\
47082\`$as_me' instantiates files from templates according to the
47083current configuration.
47084
47085Usage: $0 [OPTIONS] [FILE]...
47086
47087 -h, --help print this help, then exit
47088 -V, --version print version number, then exit
47089 -q, --quiet do not print progress messages
47090 -d, --debug don't remove temporary files
47091 --recheck update $as_me by reconfiguring in the same conditions
47092 --file=FILE[:TEMPLATE]
ac1cb8d3 47093 instantiate the configuration file FILE
a848cd7e 47094 --header=FILE[:TEMPLATE]
ac1cb8d3 47095 instantiate the configuration header FILE
a848cd7e
SC
47096
47097Configuration files:
47098$config_files
47099
47100Configuration headers:
47101$config_headers
47102
47103Configuration commands:
47104$config_commands
47105
47106Report bugs to <bug-autoconf@gnu.org>."
47107_ACEOF
47108
47109cat >>$CONFIG_STATUS <<_ACEOF
47110ac_cs_version="\\
dd8df4fc 47111wxWidgets config.status 2.7.0
ac1cb8d3 47112configured by $0, generated by GNU Autoconf 2.59,
a848cd7e
SC
47113 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
47114
ac1cb8d3 47115Copyright (C) 2003 Free Software Foundation, Inc.
a848cd7e
SC
47116This config.status script is free software; the Free Software Foundation
47117gives unlimited permission to copy, distribute and modify it."
47118srcdir=$srcdir
47119INSTALL="$INSTALL"
47120_ACEOF
47121
47122cat >>$CONFIG_STATUS <<\_ACEOF
47123# If no file are specified by the user, then we need to provide default
47124# value. By we need to know if files were specified by the user.
47125ac_need_defaults=:
47126while test $# != 0
47127do
47128 case $1 in
47129 --*=*)
47130 ac_option=`expr "x$1" : 'x\([^=]*\)='`
47131 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
47132 ac_shift=:
47133 ;;
47134 -*)
47135 ac_option=$1
47136 ac_optarg=$2
47137 ac_shift=shift
47138 ;;
47139 *) # This is not an option, so the user has probably given explicit
47140 # arguments.
47141 ac_option=$1
47142 ac_need_defaults=false;;
47143 esac
47144
47145 case $ac_option in
47146 # Handling of the options.
47147_ACEOF
47148cat >>$CONFIG_STATUS <<\_ACEOF
47149 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47150 ac_cs_recheck=: ;;
47151 --version | --vers* | -V )
47152 echo "$ac_cs_version"; exit 0 ;;
47153 --he | --h)
47154 # Conflict between --help and --header
47155 { { echo "$as_me:$LINENO: error: ambiguous option: $1
47156Try \`$0 --help' for more information." >&5
47157echo "$as_me: error: ambiguous option: $1
47158Try \`$0 --help' for more information." >&2;}
47159 { (exit 1); exit 1; }; };;
47160 --help | --hel | -h )
47161 echo "$ac_cs_usage"; exit 0 ;;
47162 --debug | --d* | -d )
47163 debug=: ;;
47164 --file | --fil | --fi | --f )
47165 $ac_shift
47166 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
47167 ac_need_defaults=false;;
47168 --header | --heade | --head | --hea )
47169 $ac_shift
47170 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
47171 ac_need_defaults=false;;
47172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47173 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47174 ac_cs_silent=: ;;
47175
47176 # This is an error.
47177 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
47178Try \`$0 --help' for more information." >&5
47179echo "$as_me: error: unrecognized option: $1
47180Try \`$0 --help' for more information." >&2;}
47181 { (exit 1); exit 1; }; } ;;
47182
47183 *) ac_config_targets="$ac_config_targets $1" ;;
47184
47185 esac
47186 shift
47187done
47188
47189ac_configure_extra_args=
47190
47191if $ac_cs_silent; then
47192 exec 6>/dev/null
47193 ac_configure_extra_args="$ac_configure_extra_args --silent"
47194fi
47195
47196_ACEOF
47197cat >>$CONFIG_STATUS <<_ACEOF
47198if \$ac_cs_recheck; then
47199 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
47200 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47201fi
47202
47203_ACEOF
47204
47205cat >>$CONFIG_STATUS <<_ACEOF
47206#
47207# INIT-COMMANDS section.
47208#
47209
5c60e845
MW
47210
47211 CPP="$CPP"
47212 infile="$srcdir/include/wx/msw/genrcdefs.h"
47213 outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
47214
47215
ceec2216
RL
47216 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47217 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47218 TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
47219 LN_S="${LN_S}"
a848cd7e
SC
47220
47221
47222_ACEOF
47223
47224
47225
47226cat >>$CONFIG_STATUS <<\_ACEOF
47227for ac_config_target in $ac_config_targets
47228do
47229 case "$ac_config_target" in
47230 # Handling of arguments.
ceec2216
RL
47231 "lib/wx/config/${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
47232 "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}" ) CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
a848cd7e
SC
47233 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
47234 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47235 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
5c60e845 47236 "rcdefs.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
ceec2216
RL
47237 "wx-config" ) CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
47238 "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
47239 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47240echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47241 { (exit 1); exit 1; }; };;
47242 esac
47243done
47244
47245# If the user did not use the arguments to specify the items to instantiate,
47246# then the envvar interface is used. Set only those that are not.
47247# We use the long form for the default assignment because of an extremely
47248# bizarre bug on SunOS 4.1.3.
47249if $ac_need_defaults; then
47250 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47251 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47252 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47253fi
47254
47255# Have a temporary directory for convenience. Make it in the build tree
47256# simply because there is no reason to put it here, and in addition,
47257# creating and moving files from /tmp can sometimes cause problems.
47258# Create a temporary directory, and hook for its removal unless debugging.
47259$debug ||
47260{
47261 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
47262 trap '{ (exit 1); exit 1; }' 1 2 13 15
47263}
47264
47265# Create a (secure) tmp directory for tmp files.
47266
47267{
47268 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
47269 test -n "$tmp" && test -d "$tmp"
47270} ||
47271{
47272 tmp=./confstat$$-$RANDOM
47273 (umask 077 && mkdir $tmp)
47274} ||
47275{
47276 echo "$me: cannot create a temporary directory in ." >&2
47277 { (exit 1); exit 1; }
47278}
47279
47280_ACEOF
47281
47282cat >>$CONFIG_STATUS <<_ACEOF
47283
47284#
47285# CONFIG_FILES section.
47286#
47287
47288# No need to generate the scripts if there are no CONFIG_FILES.
47289# This happens for instance when ./config.status config.h
47290if test -n "\$CONFIG_FILES"; then
47291 # Protect against being on the right side of a sed subst in config.status.
47292 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
47293 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
47294s,@SHELL@,$SHELL,;t t
47295s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
47296s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
47297s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
47298s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
47299s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
47300s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
47301s,@exec_prefix@,$exec_prefix,;t t
47302s,@prefix@,$prefix,;t t
47303s,@program_transform_name@,$program_transform_name,;t t
47304s,@bindir@,$bindir,;t t
47305s,@sbindir@,$sbindir,;t t
47306s,@libexecdir@,$libexecdir,;t t
47307s,@datadir@,$datadir,;t t
47308s,@sysconfdir@,$sysconfdir,;t t
47309s,@sharedstatedir@,$sharedstatedir,;t t
47310s,@localstatedir@,$localstatedir,;t t
47311s,@libdir@,$libdir,;t t
47312s,@includedir@,$includedir,;t t
47313s,@oldincludedir@,$oldincludedir,;t t
47314s,@infodir@,$infodir,;t t
47315s,@mandir@,$mandir,;t t
47316s,@build_alias@,$build_alias,;t t
47317s,@host_alias@,$host_alias,;t t
47318s,@target_alias@,$target_alias,;t t
47319s,@DEFS@,$DEFS,;t t
47320s,@ECHO_C@,$ECHO_C,;t t
47321s,@ECHO_N@,$ECHO_N,;t t
47322s,@ECHO_T@,$ECHO_T,;t t
47323s,@LIBS@,$LIBS,;t t
47324s,@build@,$build,;t t
47325s,@build_cpu@,$build_cpu,;t t
47326s,@build_vendor@,$build_vendor,;t t
47327s,@build_os@,$build_os,;t t
47328s,@host@,$host,;t t
47329s,@host_cpu@,$host_cpu,;t t
47330s,@host_vendor@,$host_vendor,;t t
47331s,@host_os@,$host_os,;t t
47332s,@target@,$target,;t t
47333s,@target_cpu@,$target_cpu,;t t
47334s,@target_vendor@,$target_vendor,;t t
47335s,@target_os@,$target_os,;t t
47336s,@CC@,$CC,;t t
47337s,@CFLAGS@,$CFLAGS,;t t
47338s,@LDFLAGS@,$LDFLAGS,;t t
47339s,@CPPFLAGS@,$CPPFLAGS,;t t
47340s,@ac_ct_CC@,$ac_ct_CC,;t t
47341s,@EXEEXT@,$EXEEXT,;t t
47342s,@OBJEXT@,$OBJEXT,;t t
47343s,@CPP@,$CPP,;t t
47344s,@EGREP@,$EGREP,;t t
47345s,@CXX@,$CXX,;t t
47346s,@CXXFLAGS@,$CXXFLAGS,;t t
47347s,@ac_ct_CXX@,$ac_ct_CXX,;t t
47348s,@RANLIB@,$RANLIB,;t t
47349s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
47350s,@AR@,$AR,;t t
8c80d384 47351s,@ac_ct_AR@,$ac_ct_AR,;t t
a848cd7e
SC
47352s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
47353s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
47354s,@INSTALL_DATA@,$INSTALL_DATA,;t t
47355s,@STRIP@,$STRIP,;t t
8c80d384
DE
47356s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
47357s,@RESCOMP@,$RESCOMP,;t t
47358s,@ac_ct_RESCOMP@,$ac_ct_RESCOMP,;t t
47359s,@DLLTOOL@,$DLLTOOL,;t t
47360s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
a848cd7e
SC
47361s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
47362s,@LN_S@,$LN_S,;t t
bcaab0f9 47363s,@LNDIR@,$LNDIR,;t t
a848cd7e
SC
47364s,@CXXCPP@,$CXXCPP,;t t
47365s,@subdirs@,$subdirs,;t t
47366s,@PKG_CONFIG@,$PKG_CONFIG,;t t
47367s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
47368s,@GTK_LIBS@,$GTK_LIBS,;t t
47369s,@GTK_CONFIG@,$GTK_CONFIG,;t t
a848cd7e
SC
47370s,@X_CFLAGS@,$X_CFLAGS,;t t
47371s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
47372s,@X_LIBS@,$X_LIBS,;t t
47373s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
47374s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
47375s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
d1c38808
VZ
47376s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
47377s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
a848cd7e
SC
47378s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
47379s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
a848cd7e
SC
47380s,@DEREZ@,$DEREZ,;t t
47381s,@SETFILE@,$SETFILE,;t t
47382s,@LIBICONV@,$LIBICONV,;t t
47383s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
47384s,@SDL_CONFIG@,$SDL_CONFIG,;t t
47385s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
47386s,@SDL_LIBS@,$SDL_LIBS,;t t
d1c38808
VZ
47387s,@LIBGNOMEPRINTUI_CFLAGS@,$LIBGNOMEPRINTUI_CFLAGS,;t t
47388s,@LIBGNOMEPRINTUI_LIBS@,$LIBGNOMEPRINTUI_LIBS,;t t
dae87f93
RN
47389s,@GSTREAMER_CFLAGS@,$GSTREAMER_CFLAGS,;t t
47390s,@GSTREAMER_LIBS@,$GSTREAMER_LIBS,;t t
47391s,@GST_INSPECT@,$GST_INSPECT,;t t
a848cd7e
SC
47392s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
47393s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
47394s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
47395s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
47396s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
47397s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
47398s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
47399s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
47400s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
47401s,@VENDOR@,$VENDOR,;t t
47402s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
ceec2216
RL
47403s,@WX_FLAVOUR@,$WX_FLAVOUR,;t t
47404s,@WX_LIB_FLAVOUR@,$WX_LIB_FLAVOUR,;t t
a848cd7e
SC
47405s,@WXUNIV@,$WXUNIV,;t t
47406s,@MONOLITHIC@,$MONOLITHIC,;t t
47407s,@USE_PLUGINS@,$USE_PLUGINS,;t t
47408s,@EXTRALIBS@,$EXTRALIBS,;t t
47409s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
47410s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
47411s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
47412s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
47413s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
47414s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
47415s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
d1c38808 47416s,@EXTRALIBS_GNOMEPRINT@,$EXTRALIBS_GNOMEPRINT,;t t
a848cd7e
SC
47417s,@UNICODE@,$UNICODE,;t t
47418s,@BUILD@,$BUILD,;t t
47419s,@DEBUG_INFO@,$DEBUG_INFO,;t t
47420s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
a848cd7e
SC
47421s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
47422s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
47423s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
47424s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
47425s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
47426s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
47427s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
47428s,@SET_MAKE@,$SET_MAKE,;t t
47429s,@MAKE_SET@,$MAKE_SET,;t t
a848cd7e
SC
47430s,@NM@,$NM,;t t
47431s,@ac_ct_NM@,$ac_ct_NM,;t t
47432s,@INSTALL_DIR@,$INSTALL_DIR,;t t
47433s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
47434s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
47435s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
47436s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
47437s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
1e9e8aba 47438s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
a848cd7e
SC
47439s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
47440s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
1e9e8aba 47441s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
a848cd7e
SC
47442s,@SO_SUFFIX@,$SO_SUFFIX,;t t
47443s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
47444s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
47445s,@LIBPREFIX@,$LIBPREFIX,;t t
47446s,@LIBEXT@,$LIBEXT,;t t
47447s,@DLLPREFIX@,$DLLPREFIX,;t t
47448s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
810b94f0 47449s,@dlldir@,$dlldir,;t t
a848cd7e
SC
47450s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
47451s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
47452s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
47453s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
47454s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
47455s,@PIC_FLAG@,$PIC_FLAG,;t t
810b94f0 47456s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
a848cd7e
SC
47457s,@USE_SOVERSION@,$USE_SOVERSION,;t t
47458s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
47459s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
810b94f0 47460s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
a848cd7e
SC
47461s,@USE_MACVERSION@,$USE_MACVERSION,;t t
47462s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
47463s,@SONAME_FLAG@,$SONAME_FLAG,;t t
47464s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
47465s,@GCC_PCH@,$GCC_PCH,;t t
47466s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
47467s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
47468s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
47469s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
47470s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
47471s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
47472s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
47473s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
47474s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
47475s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
47476s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
47477s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
47478s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
47479s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
47480s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
47481s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
47482s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
47483s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
90970d69 47484s,@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 47485s,@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 47486s,@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 47487s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
ceec2216 47488s,@COND_MONOLITHIC_0_SHARED_0_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47489s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
47490s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
90970d69 47491s,@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 47492s,@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 47493s,@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 47494s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
ceec2216 47495s,@COND_MONOLITHIC_0_SHARED_1_USE_XRC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1,;t t
a848cd7e
SC
47496s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
47497s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
47498s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
47499s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
47500s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
47501s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
eb730a0c 47502s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
a848cd7e
SC
47503s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
47504s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
a30f955f 47505s,@COND_PLATFORM_MACOSX_1_TOOLKIT_@,$COND_PLATFORM_MACOSX_1_TOOLKIT_,;t t
a848cd7e
SC
47506s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
47507s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
47508s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
fc480dc1 47509s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1,;t t
1e9e8aba 47510s,@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
47511s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF,;t t
47512s,@COND_PLATFORM_MACOSX_1_TOOLKIT_X11@,$COND_PLATFORM_MACOSX_1_TOOLKIT_X11,;t t
a848cd7e
SC
47513s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
47514s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
b48a2016 47515s,@COND_PLATFORM_MACOS_1@,$COND_PLATFORM_MACOS_1,;t t
083508af 47516s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
83d8eb47 47517s,@COND_PLATFORM_MSDOS_1@,$COND_PLATFORM_MSDOS_1,;t t
a848cd7e
SC
47518s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
47519s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
47520s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
47521s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
47522s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
47523s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
47524s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
47525s,@COND_SHARED_0@,$COND_SHARED_0,;t t
083508af
MW
47526s,@COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0,;t t
47527s,@COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0,;t t
47528s,@COND_SHARED_0_TOOLKIT_PM_WXUNIV_0@,$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0,;t t
a848cd7e
SC
47529s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
47530s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47531s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47532s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af 47533s,@COND_SHARED_0_USE_XRC_1@,$COND_SHARED_0_USE_XRC_1,;t t
a848cd7e
SC
47534s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
47535s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
47536s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
47537s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
47538s,@COND_SHARED_1@,$COND_SHARED_1,;t t
47539s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
083508af 47540s,@COND_SHARED_1_USE_XRC_1@,$COND_SHARED_1_USE_XRC_1,;t t
a30f955f 47541s,@COND_TOOLKIT_@,$COND_TOOLKIT_,;t t
a848cd7e 47542s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
a49baeab 47543s,@COND_TOOLKIT_COCOA_USE_GUI_1@,$COND_TOOLKIT_COCOA_USE_GUI_1,;t t
a848cd7e
SC
47544s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
47545s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
47546s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
47547s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
47548s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
47549s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
47550s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
47551s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
47552s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
47553s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
47554s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
47555s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
47556s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
47557s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
47558s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47559s,@COND_TOOLKIT_MSW_WXUNIV_0@,$COND_TOOLKIT_MSW_WXUNIV_0,;t t
a848cd7e
SC
47560s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
47561s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
47562s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
3fd9c298
DE
47563s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t
47564s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t
47565s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t
0ee4059d 47566s,@COND_TOOLKIT_WINCE_WXUNIV_0@,$COND_TOOLKIT_WINCE_WXUNIV_0,;t t
a848cd7e
SC
47567s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
47568s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
47569s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
47570s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
47571s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
47572s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
47573s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
47574s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
47575s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
47576s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
47577s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
47578s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
083508af
MW
47579s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
47580s,@COND_USE_OPENGL_1@,$COND_USE_OPENGL_1,;t t
a848cd7e 47581s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
0b78747f
MW
47582s,@COND_USE_RTTI_0@,$COND_USE_RTTI_0,;t t
47583s,@COND_USE_RTTI_1@,$COND_USE_RTTI_1,;t t
a848cd7e 47584s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
eb730a0c 47585s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
a848cd7e
SC
47586s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
47587s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
47588s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
0b78747f
MW
47589s,@COND_USE_THREADS_0@,$COND_USE_THREADS_0,;t t
47590s,@COND_USE_THREADS_1@,$COND_USE_THREADS_1,;t t
a13a7f89 47591s,@COND_USE_XRC_1@,$COND_USE_XRC_1,;t t
eb730a0c 47592s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
a848cd7e 47593s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
1e6eb025 47594s,@COND_WXUNIV_0@,$COND_WXUNIV_0,;t t
a848cd7e
SC
47595s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
47596s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
47597s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
47598s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
47599s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
47600s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
47601s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
47602s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
ceec2216 47603s,@SHARED@,$SHARED,;t t
a848cd7e
SC
47604s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
47605s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
a848cd7e
SC
47606s,@USE_GUI@,$USE_GUI,;t t
47607s,@AFMINSTALL@,$AFMINSTALL,;t t
47608s,@WIN32INSTALL@,$WIN32INSTALL,;t t
47609s,@TOOLKIT@,$TOOLKIT,;t t
47610s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
a848cd7e 47611s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
ceec2216 47612s,@TOOLCHAIN_FULLNAME@,$TOOLCHAIN_FULLNAME,;t t
a848cd7e 47613s,@cross_compiling@,$cross_compiling,;t t
ceec2216
RL
47614s,@WIDGET_SET@,$WIDGET_SET,;t t
47615s,@WX_RELEASE@,$WX_RELEASE,;t t
47616s,@WX_VERSION@,$WX_VERSION,;t t
47617s,@WX_SUBVERSION@,$WX_SUBVERSION,;t t
47618s,@WX_CHARTYPE@,$WX_CHARTYPE,;t t
47619s,@WX_DEBUGTYPE@,$WX_DEBUGTYPE,;t t
5ff751d6
VZ
47620s,@WXCONFIG_CPPFLAGS@,$WXCONFIG_CPPFLAGS,;t t
47621s,@WXCONFIG_CFLAGS@,$WXCONFIG_CFLAGS,;t t
47622s,@WXCONFIG_CXXFLAGS@,$WXCONFIG_CXXFLAGS,;t t
47623s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
a848cd7e
SC
47624s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
47625s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
ceec2216 47626s,@EXE_LINKER@,$EXE_LINKER,;t t
a848cd7e 47627s,@GUIDIST@,$GUIDIST,;t t
a848cd7e
SC
47628s,@DISTDIR@,$DISTDIR,;t t
47629s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
47630s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
a848cd7e
SC
47631s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
47632s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
47633s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
47634s,@RESFLAGS@,$RESFLAGS,;t t
47635s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
47636s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
47637s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
47638s,@LIBWXMACRES@,$LIBWXMACRES,;t t
47639s,@MACRESCOMP@,$MACRESCOMP,;t t
47640s,@MACSETFILE@,$MACSETFILE,;t t
47641s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
47642s,@GCC@,$GCC,;t t
a848cd7e
SC
47643s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t
47644s,@LIBOBJS@,$LIBOBJS,;t t
47645s,@LTLIBOBJS@,$LTLIBOBJS,;t t
47646CEOF
47647
47648_ACEOF
47649
47650 cat >>$CONFIG_STATUS <<\_ACEOF
47651 # Split the substitutions into bite-sized pieces for seds with
47652 # small command number limits, like on Digital OSF/1 and HP-UX.
47653 ac_max_sed_lines=48
47654 ac_sed_frag=1 # Number of current file.
47655 ac_beg=1 # First line for current file.
47656 ac_end=$ac_max_sed_lines # Line after last line for current file.
47657 ac_more_lines=:
47658 ac_sed_cmds=
47659 while $ac_more_lines; do
47660 if test $ac_beg -gt 1; then
47661 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47662 else
47663 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
47664 fi
47665 if test ! -s $tmp/subs.frag; then
47666 ac_more_lines=false
47667 else
47668 # The purpose of the label and of the branching condition is to
47669 # speed up the sed processing (if there are no `@' at all, there
47670 # is no need to browse any of the substitutions).
47671 # These are the two extra sed commands mentioned above.
47672 (echo ':t
47673 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
47674 if test -z "$ac_sed_cmds"; then
ac1cb8d3 47675 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e 47676 else
ac1cb8d3 47677 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
a848cd7e
SC
47678 fi
47679 ac_sed_frag=`expr $ac_sed_frag + 1`
47680 ac_beg=$ac_end
47681 ac_end=`expr $ac_end + $ac_max_sed_lines`
47682 fi
47683 done
47684 if test -z "$ac_sed_cmds"; then
47685 ac_sed_cmds=cat
47686 fi
47687fi # test -n "$CONFIG_FILES"
47688
47689_ACEOF
47690cat >>$CONFIG_STATUS <<\_ACEOF
47691for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
47692 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47693 case $ac_file in
47694 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47695 cat >$tmp/stdin
47696 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47697 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47698 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47699 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47700 * ) ac_file_in=$ac_file.in ;;
47701 esac
47702
47703 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
47704 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
47705$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47706 X"$ac_file" : 'X\(//\)[^/]' \| \
47707 X"$ac_file" : 'X\(//\)$' \| \
47708 X"$ac_file" : 'X\(/\)' \| \
47709 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47710echo X"$ac_file" |
47711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47713 /^X\(\/\/\)$/{ s//\1/; q; }
47714 /^X\(\/\).*/{ s//\1/; q; }
47715 s/.*/./; q'`
47716 { if $as_mkdir_p; then
47717 mkdir -p "$ac_dir"
47718 else
47719 as_dir="$ac_dir"
47720 as_dirs=
47721 while test ! -d "$as_dir"; do
47722 as_dirs="$as_dir $as_dirs"
47723 as_dir=`(dirname "$as_dir") 2>/dev/null ||
47724$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
47725 X"$as_dir" : 'X\(//\)[^/]' \| \
47726 X"$as_dir" : 'X\(//\)$' \| \
47727 X"$as_dir" : 'X\(/\)' \| \
47728 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
47729echo X"$as_dir" |
47730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
47731 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
47732 /^X\(\/\/\)$/{ s//\1/; q; }
47733 /^X\(\/\).*/{ s//\1/; q; }
47734 s/.*/./; q'`
47735 done
47736 test ! -n "$as_dirs" || mkdir $as_dirs
47737 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
47738echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
47739 { (exit 1); exit 1; }; }; }
47740
47741 ac_builddir=.
47742
47743if test "$ac_dir" != .; then
47744 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
47745 # A "../" for each directory in $ac_dir_suffix.
47746 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
47747else
47748 ac_dir_suffix= ac_top_builddir=
47749fi
47750
47751case $srcdir in
47752 .) # No --srcdir option. We are building in place.
47753 ac_srcdir=.
47754 if test -z "$ac_top_builddir"; then
47755 ac_top_srcdir=.
47756 else
47757 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
47758 fi ;;
47759 [\\/]* | ?:[\\/]* ) # Absolute path.
47760 ac_srcdir=$srcdir$ac_dir_suffix;
47761 ac_top_srcdir=$srcdir ;;
47762 *) # Relative path.
47763 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
47764 ac_top_srcdir=$ac_top_builddir$srcdir ;;
47765esac
ac1cb8d3
VS
47766
47767# Do not use `cd foo && pwd` to compute absolute paths, because
47768# the directories may not exist.
47769case `pwd` in
47770.) ac_abs_builddir="$ac_dir";;
47771*)
47772 case "$ac_dir" in
47773 .) ac_abs_builddir=`pwd`;;
47774 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
47775 *) ac_abs_builddir=`pwd`/"$ac_dir";;
47776 esac;;
47777esac
47778case $ac_abs_builddir in
47779.) ac_abs_top_builddir=${ac_top_builddir}.;;
47780*)
47781 case ${ac_top_builddir}. in
47782 .) ac_abs_top_builddir=$ac_abs_builddir;;
47783 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
47784 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
47785 esac;;
47786esac
47787case $ac_abs_builddir in
47788.) ac_abs_srcdir=$ac_srcdir;;
47789*)
47790 case $ac_srcdir in
47791 .) ac_abs_srcdir=$ac_abs_builddir;;
47792 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
47793 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
47794 esac;;
47795esac
47796case $ac_abs_builddir in
47797.) ac_abs_top_srcdir=$ac_top_srcdir;;
47798*)
47799 case $ac_top_srcdir in
47800 .) ac_abs_top_srcdir=$ac_abs_builddir;;
47801 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
47802 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
47803 esac;;
47804esac
a848cd7e
SC
47805
47806
47807 case $INSTALL in
47808 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47809 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
47810 esac
47811
a848cd7e
SC
47812 # Let's still pretend it is `configure' which instantiates (i.e., don't
47813 # use $as_me), people would be surprised to read:
47814 # /* config.h. Generated by config.status. */
47815 if test x"$ac_file" = x-; then
47816 configure_input=
47817 else
47818 configure_input="$ac_file. "
47819 fi
47820 configure_input=$configure_input"Generated from `echo $ac_file_in |
ac1cb8d3 47821 sed 's,.*/,,'` by configure."
a848cd7e
SC
47822
47823 # First look for the input files in the build tree, otherwise in the
47824 # src tree.
47825 ac_file_inputs=`IFS=:
47826 for f in $ac_file_in; do
47827 case $f in
47828 -) echo $tmp/stdin ;;
47829 [\\/$]*)
ac1cb8d3
VS
47830 # Absolute (can't be DOS-style, as IFS=:)
47831 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47832echo "$as_me: error: cannot find input file: $f" >&2;}
47833 { (exit 1); exit 1; }; }
ac1cb8d3 47834 echo "$f";;
a848cd7e 47835 *) # Relative
ac1cb8d3
VS
47836 if test -f "$f"; then
47837 # Build tree
47838 echo "$f"
47839 elif test -f "$srcdir/$f"; then
47840 # Source tree
47841 echo "$srcdir/$f"
47842 else
47843 # /dev/null tree
47844 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47845echo "$as_me: error: cannot find input file: $f" >&2;}
47846 { (exit 1); exit 1; }; }
ac1cb8d3 47847 fi;;
a848cd7e
SC
47848 esac
47849 done` || { (exit 1); exit 1; }
5ff751d6
VZ
47850
47851 if test x"$ac_file" != x-; then
47852 { echo "$as_me:$LINENO: creating $ac_file" >&5
47853echo "$as_me: creating $ac_file" >&6;}
47854 rm -f "$ac_file"
47855 fi
a848cd7e
SC
47856_ACEOF
47857cat >>$CONFIG_STATUS <<_ACEOF
47858 sed "$ac_vpsub
47859$extrasub
47860_ACEOF
47861cat >>$CONFIG_STATUS <<\_ACEOF
47862:t
47863/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47864s,@configure_input@,$configure_input,;t t
47865s,@srcdir@,$ac_srcdir,;t t
47866s,@abs_srcdir@,$ac_abs_srcdir,;t t
47867s,@top_srcdir@,$ac_top_srcdir,;t t
47868s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
47869s,@builddir@,$ac_builddir,;t t
47870s,@abs_builddir@,$ac_abs_builddir,;t t
47871s,@top_builddir@,$ac_top_builddir,;t t
47872s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
47873s,@INSTALL@,$ac_INSTALL,;t t
47874" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
47875 rm -f $tmp/stdin
47876 if test x"$ac_file" != x-; then
47877 mv $tmp/out $ac_file
47878 else
47879 cat $tmp/out
47880 rm -f $tmp/out
47881 fi
47882
ceec2216
RL
47883 # Run the commands associated with the file.
47884 case $ac_file in
47885 lib/wx/config/${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME} ;;
47886 lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ) chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} ;;
47887 esac
a848cd7e
SC
47888done
47889_ACEOF
47890cat >>$CONFIG_STATUS <<\_ACEOF
47891
47892#
47893# CONFIG_HEADER section.
47894#
47895
47896# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
47897# NAME is the cpp macro being defined and VALUE is the value it is being given.
47898#
47899# ac_d sets the value in "#define NAME VALUE" lines.
ac1cb8d3
VS
47900ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
47901ac_dB='[ ].*$,\1#\2'
a848cd7e
SC
47902ac_dC=' '
47903ac_dD=',;t'
47904# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
ac1cb8d3 47905ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
a848cd7e
SC
47906ac_uB='$,\1#\2define\3'
47907ac_uC=' '
47908ac_uD=',;t'
47909
47910for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
47911 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
47912 case $ac_file in
47913 - | *:- | *:-:* ) # input from stdin
ac1cb8d3
VS
47914 cat >$tmp/stdin
47915 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
47916 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e 47917 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
ac1cb8d3 47918 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
a848cd7e
SC
47919 * ) ac_file_in=$ac_file.in ;;
47920 esac
47921
47922 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
47923echo "$as_me: creating $ac_file" >&6;}
47924
47925 # First look for the input files in the build tree, otherwise in the
47926 # src tree.
47927 ac_file_inputs=`IFS=:
47928 for f in $ac_file_in; do
47929 case $f in
47930 -) echo $tmp/stdin ;;
47931 [\\/$]*)
ac1cb8d3
VS
47932 # Absolute (can't be DOS-style, as IFS=:)
47933 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47934echo "$as_me: error: cannot find input file: $f" >&2;}
47935 { (exit 1); exit 1; }; }
ac1cb8d3
VS
47936 # Do quote $f, to prevent DOS paths from being IFS'd.
47937 echo "$f";;
a848cd7e 47938 *) # Relative
ac1cb8d3
VS
47939 if test -f "$f"; then
47940 # Build tree
47941 echo "$f"
47942 elif test -f "$srcdir/$f"; then
47943 # Source tree
47944 echo "$srcdir/$f"
47945 else
47946 # /dev/null tree
47947 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
a848cd7e
SC
47948echo "$as_me: error: cannot find input file: $f" >&2;}
47949 { (exit 1); exit 1; }; }
ac1cb8d3 47950 fi;;
a848cd7e
SC
47951 esac
47952 done` || { (exit 1); exit 1; }
47953 # Remove the trailing spaces.
ac1cb8d3 47954 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
a848cd7e
SC
47955
47956_ACEOF
47957
47958# Transform confdefs.h into two sed scripts, `conftest.defines' and
47959# `conftest.undefs', that substitutes the proper values into
47960# config.h.in to produce config.h. The first handles `#define'
47961# templates, and the second `#undef' templates.
47962# And first: Protect against being on the right side of a sed subst in
47963# config.status. Protect against being in an unquoted here document
47964# in config.status.
47965rm -f conftest.defines conftest.undefs
47966# Using a here document instead of a string reduces the quoting nightmare.
47967# Putting comments in sed scripts is not portable.
47968#
47969# `end' is used to avoid that the second main sed command (meant for
47970# 0-ary CPP macros) applies to n-ary macro definitions.
47971# See the Autoconf documentation for `clear'.
47972cat >confdef2sed.sed <<\_ACEOF
47973s/[\\&,]/\\&/g
47974s,[\\$`],\\&,g
47975t clear
47976: clear
ac1cb8d3 47977s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
a848cd7e 47978t end
ac1cb8d3 47979s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
a848cd7e
SC
47980: end
47981_ACEOF
47982# If some macros were called several times there might be several times
47983# the same #defines, which is useless. Nevertheless, we may not want to
47984# sort them, since we want the *last* AC-DEFINE to be honored.
47985uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
47986sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
47987rm -f confdef2sed.sed
47988
47989# This sed command replaces #undef with comments. This is necessary, for
47990# example, in the case of _POSIX_SOURCE, which is predefined and required
47991# on some systems where configure will not decide to define it.
47992cat >>conftest.undefs <<\_ACEOF
ac1cb8d3 47993s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
a848cd7e
SC
47994_ACEOF
47995
47996# Break up conftest.defines because some shells have a limit on the size
47997# of here documents, and old seds have small limits too (100 cmds).
47998echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
ac1cb8d3 47999echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
a848cd7e
SC
48000echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
48001echo ' :' >>$CONFIG_STATUS
48002rm -f conftest.tail
48003while grep . conftest.defines >/dev/null
48004do
48005 # Write a limited-size here document to $tmp/defines.sed.
48006 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
48007 # Speed up: don't consider the non `#define' lines.
ac1cb8d3 48008 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
a848cd7e
SC
48009 # Work around the forget-to-reset-the-flag bug.
48010 echo 't clr' >>$CONFIG_STATUS
48011 echo ': clr' >>$CONFIG_STATUS
48012 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
48013 echo 'CEOF
48014 sed -f $tmp/defines.sed $tmp/in >$tmp/out
48015 rm -f $tmp/in
48016 mv $tmp/out $tmp/in
48017' >>$CONFIG_STATUS
48018 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
48019 rm -f conftest.defines
48020 mv conftest.tail conftest.defines
48021done
48022rm -f conftest.defines
48023echo ' fi # grep' >>$CONFIG_STATUS
48024echo >>$CONFIG_STATUS
48025
48026# Break up conftest.undefs because some shells have a limit on the size
48027# of here documents, and old seds have small limits too (100 cmds).
48028echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
48029rm -f conftest.tail
48030while grep . conftest.undefs >/dev/null
48031do
48032 # Write a limited-size here document to $tmp/undefs.sed.
48033 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
48034 # Speed up: don't consider the non `#undef'
ac1cb8d3 48035 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
a848cd7e
SC
48036 # Work around the forget-to-reset-the-flag bug.
48037 echo 't clr' >>$CONFIG_STATUS
48038 echo ': clr' >>$CONFIG_STATUS
48039 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
48040 echo 'CEOF
48041 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
48042 rm -f $tmp/in
48043 mv $tmp/out $tmp/in
48044' >>$CONFIG_STATUS
48045 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
48046 rm -f conftest.undefs
48047 mv conftest.tail conftest.undefs
48048done
48049rm -f conftest.undefs
48050
48051cat >>$CONFIG_STATUS <<\_ACEOF
48052 # Let's still pretend it is `configure' which instantiates (i.e., don't
48053 # use $as_me), people would be surprised to read:
48054 # /* config.h. Generated by config.status. */
48055 if test x"$ac_file" = x-; then
48056 echo "/* Generated by configure. */" >$tmp/config.h
48057 else
48058 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
48059 fi
48060 cat $tmp/in >>$tmp/config.h
48061 rm -f $tmp/in
48062 if test x"$ac_file" != x-; then
48063 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
48064 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
48065echo "$as_me: $ac_file is unchanged" >&6;}
48066 else
48067 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
48068$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48069 X"$ac_file" : 'X\(//\)[^/]' \| \
48070 X"$ac_file" : 'X\(//\)$' \| \
48071 X"$ac_file" : 'X\(/\)' \| \
48072 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48073echo X"$ac_file" |
48074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48076 /^X\(\/\/\)$/{ s//\1/; q; }
48077 /^X\(\/\).*/{ s//\1/; q; }
48078 s/.*/./; q'`
48079 { if $as_mkdir_p; then
48080 mkdir -p "$ac_dir"
48081 else
48082 as_dir="$ac_dir"
48083 as_dirs=
48084 while test ! -d "$as_dir"; do
48085 as_dirs="$as_dir $as_dirs"
48086 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48087$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48088 X"$as_dir" : 'X\(//\)[^/]' \| \
48089 X"$as_dir" : 'X\(//\)$' \| \
48090 X"$as_dir" : 'X\(/\)' \| \
48091 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48092echo X"$as_dir" |
48093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48095 /^X\(\/\/\)$/{ s//\1/; q; }
48096 /^X\(\/\).*/{ s//\1/; q; }
48097 s/.*/./; q'`
48098 done
48099 test ! -n "$as_dirs" || mkdir $as_dirs
48100 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48101echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48102 { (exit 1); exit 1; }; }; }
48103
48104 rm -f $ac_file
48105 mv $tmp/config.h $ac_file
48106 fi
48107 else
48108 cat $tmp/config.h
48109 rm -f $tmp/config.h
48110 fi
48111done
48112_ACEOF
48113cat >>$CONFIG_STATUS <<\_ACEOF
48114
48115#
48116# CONFIG_COMMANDS section.
48117#
48118for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
48119 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
48120 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
48121 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
48122$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48123 X"$ac_dest" : 'X\(//\)[^/]' \| \
48124 X"$ac_dest" : 'X\(//\)$' \| \
48125 X"$ac_dest" : 'X\(/\)' \| \
48126 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48127echo X"$ac_dest" |
48128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48130 /^X\(\/\/\)$/{ s//\1/; q; }
48131 /^X\(\/\).*/{ s//\1/; q; }
48132 s/.*/./; q'`
ac1cb8d3
VS
48133 { if $as_mkdir_p; then
48134 mkdir -p "$ac_dir"
48135 else
48136 as_dir="$ac_dir"
48137 as_dirs=
48138 while test ! -d "$as_dir"; do
48139 as_dirs="$as_dir $as_dirs"
48140 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48141$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48142 X"$as_dir" : 'X\(//\)[^/]' \| \
48143 X"$as_dir" : 'X\(//\)$' \| \
48144 X"$as_dir" : 'X\(/\)' \| \
48145 . : '\(.\)' 2>/dev/null ||
48146echo X"$as_dir" |
48147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48149 /^X\(\/\/\)$/{ s//\1/; q; }
48150 /^X\(\/\).*/{ s//\1/; q; }
48151 s/.*/./; q'`
48152 done
48153 test ! -n "$as_dirs" || mkdir $as_dirs
48154 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48155echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48156 { (exit 1); exit 1; }; }; }
48157
a848cd7e
SC
48158 ac_builddir=.
48159
48160if test "$ac_dir" != .; then
48161 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48162 # A "../" for each directory in $ac_dir_suffix.
48163 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48164else
48165 ac_dir_suffix= ac_top_builddir=
48166fi
48167
48168case $srcdir in
48169 .) # No --srcdir option. We are building in place.
48170 ac_srcdir=.
48171 if test -z "$ac_top_builddir"; then
48172 ac_top_srcdir=.
48173 else
48174 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48175 fi ;;
48176 [\\/]* | ?:[\\/]* ) # Absolute path.
48177 ac_srcdir=$srcdir$ac_dir_suffix;
48178 ac_top_srcdir=$srcdir ;;
48179 *) # Relative path.
48180 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48181 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48182esac
ac1cb8d3
VS
48183
48184# Do not use `cd foo && pwd` to compute absolute paths, because
48185# the directories may not exist.
48186case `pwd` in
48187.) ac_abs_builddir="$ac_dir";;
48188*)
48189 case "$ac_dir" in
48190 .) ac_abs_builddir=`pwd`;;
48191 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48192 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48193 esac;;
48194esac
48195case $ac_abs_builddir in
48196.) ac_abs_top_builddir=${ac_top_builddir}.;;
48197*)
48198 case ${ac_top_builddir}. in
48199 .) ac_abs_top_builddir=$ac_abs_builddir;;
48200 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48201 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48202 esac;;
48203esac
48204case $ac_abs_builddir in
48205.) ac_abs_srcdir=$ac_srcdir;;
48206*)
48207 case $ac_srcdir in
48208 .) ac_abs_srcdir=$ac_abs_builddir;;
48209 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48210 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48211 esac;;
48212esac
48213case $ac_abs_builddir in
48214.) ac_abs_top_srcdir=$ac_top_srcdir;;
48215*)
48216 case $ac_top_srcdir in
48217 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48218 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48219 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48220 esac;;
48221esac
a848cd7e
SC
48222
48223
48224 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
48225echo "$as_me: executing $ac_dest commands" >&6;}
48226 case $ac_dest in
5c60e845
MW
48227 rcdefs.h )
48228 mkdir -p $outdir &&
48229 $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
48230 ;;
ceec2216
RL
48231 wx-config ) rm -f wx-config
48232 ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
48233 ;;
a848cd7e
SC
48234 esac
48235done
48236_ACEOF
48237
48238cat >>$CONFIG_STATUS <<\_ACEOF
48239
48240{ (exit 0); exit 0; }
48241_ACEOF
48242chmod +x $CONFIG_STATUS
48243ac_clean_files=$ac_clean_files_save
48244
48245
48246# configure is writing to config.log, and then calls config.status.
48247# config.status does its own redirection, appending to config.log.
48248# Unfortunately, on DOS this fails, as config.log is still kept open
48249# by configure, so config.status won't be able to write to it; its
48250# output is simply discarded. So we exec the FD to /dev/null,
48251# effectively closing config.log, so it can be properly (re)opened and
48252# appended to by config.status. When coming back to configure, we
48253# need to make the FD available again.
48254if test "$no_create" != yes; then
48255 ac_cs_success=:
48256 ac_config_status_args=
48257 test "$silent" = yes &&
48258 ac_config_status_args="$ac_config_status_args --quiet"
48259 exec 5>/dev/null
48260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48261 exec 5>>config.log
48262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48263 # would make configure fail if this is the last instruction.
48264 $ac_cs_success || { (exit 1); exit 1; }
48265fi
48266
48267#
48268# CONFIG_SUBDIRS section.
48269#
48270if test "$no_recursion" != yes; then
48271
48272 # Remove --cache-file and --srcdir arguments so they do not pile up.
48273 ac_sub_configure_args=
48274 ac_prev=
48275 for ac_arg in $ac_configure_args; do
48276 if test -n "$ac_prev"; then
48277 ac_prev=
48278 continue
48279 fi
48280 case $ac_arg in
48281 -cache-file | --cache-file | --cache-fil | --cache-fi \
48282 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48283 ac_prev=cache_file ;;
48284 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48285 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48286 | --c=*)
48287 ;;
48288 --config-cache | -C)
48289 ;;
48290 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48291 ac_prev=srcdir ;;
48292 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48293 ;;
48294 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48295 ac_prev=prefix ;;
48296 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48297 ;;
48298 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
48299 esac
48300 done
48301
48302 # Always prepend --prefix to ensure using the same prefix
48303 # in subdir configurations.
48304 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
48305
48306 ac_popdir=`pwd`
48307 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48308
48309 # Do not complain, so a configure script can configure whichever
48310 # parts of a large source tree are present.
48311 test -d $srcdir/$ac_dir || continue
48312
48313 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
48314echo "$as_me: configuring in $ac_dir" >&6;}
48315 { if $as_mkdir_p; then
48316 mkdir -p "$ac_dir"
48317 else
48318 as_dir="$ac_dir"
48319 as_dirs=
48320 while test ! -d "$as_dir"; do
48321 as_dirs="$as_dir $as_dirs"
48322 as_dir=`(dirname "$as_dir") 2>/dev/null ||
48323$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ac1cb8d3
VS
48324 X"$as_dir" : 'X\(//\)[^/]' \| \
48325 X"$as_dir" : 'X\(//\)$' \| \
48326 X"$as_dir" : 'X\(/\)' \| \
48327 . : '\(.\)' 2>/dev/null ||
a848cd7e
SC
48328echo X"$as_dir" |
48329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
48330 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
48331 /^X\(\/\/\)$/{ s//\1/; q; }
48332 /^X\(\/\).*/{ s//\1/; q; }
48333 s/.*/./; q'`
48334 done
48335 test ! -n "$as_dirs" || mkdir $as_dirs
48336 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
48337echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
48338 { (exit 1); exit 1; }; }; }
48339
48340 ac_builddir=.
48341
48342if test "$ac_dir" != .; then
48343 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
48344 # A "../" for each directory in $ac_dir_suffix.
48345 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
48346else
48347 ac_dir_suffix= ac_top_builddir=
48348fi
48349
48350case $srcdir in
48351 .) # No --srcdir option. We are building in place.
48352 ac_srcdir=.
48353 if test -z "$ac_top_builddir"; then
48354 ac_top_srcdir=.
48355 else
48356 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
48357 fi ;;
48358 [\\/]* | ?:[\\/]* ) # Absolute path.
48359 ac_srcdir=$srcdir$ac_dir_suffix;
48360 ac_top_srcdir=$srcdir ;;
48361 *) # Relative path.
48362 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
48363 ac_top_srcdir=$ac_top_builddir$srcdir ;;
48364esac
ac1cb8d3
VS
48365
48366# Do not use `cd foo && pwd` to compute absolute paths, because
48367# the directories may not exist.
48368case `pwd` in
48369.) ac_abs_builddir="$ac_dir";;
48370*)
48371 case "$ac_dir" in
48372 .) ac_abs_builddir=`pwd`;;
48373 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
48374 *) ac_abs_builddir=`pwd`/"$ac_dir";;
48375 esac;;
48376esac
48377case $ac_abs_builddir in
48378.) ac_abs_top_builddir=${ac_top_builddir}.;;
48379*)
48380 case ${ac_top_builddir}. in
48381 .) ac_abs_top_builddir=$ac_abs_builddir;;
48382 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
48383 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
48384 esac;;
48385esac
48386case $ac_abs_builddir in
48387.) ac_abs_srcdir=$ac_srcdir;;
48388*)
48389 case $ac_srcdir in
48390 .) ac_abs_srcdir=$ac_abs_builddir;;
48391 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
48392 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
48393 esac;;
48394esac
48395case $ac_abs_builddir in
48396.) ac_abs_top_srcdir=$ac_top_srcdir;;
48397*)
48398 case $ac_top_srcdir in
48399 .) ac_abs_top_srcdir=$ac_abs_builddir;;
48400 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
48401 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
48402 esac;;
48403esac
a848cd7e
SC
48404
48405
48406 cd $ac_dir
48407
48408 # Check for guested configure; otherwise get Cygnus style configure.
48409 if test -f $ac_srcdir/configure.gnu; then
48410 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
48411 elif test -f $ac_srcdir/configure; then
48412 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
48413 elif test -f $ac_srcdir/configure.in; then
48414 ac_sub_configure=$ac_configure
48415 else
48416 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
48417echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
48418 ac_sub_configure=
48419 fi
48420
48421 # The recursion is here.
48422 if test -n "$ac_sub_configure"; then
48423 # Make the cache file name correct relative to the subdirectory.
48424 case $cache_file in
48425 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
48426 *) # Relative path.
ac1cb8d3 48427 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
a848cd7e
SC
48428 esac
48429
48430 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
48431echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
48432 # The eval makes quoting arguments work.
48433 eval $ac_sub_configure $ac_sub_configure_args \
ac1cb8d3
VS
48434 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
48435 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
a848cd7e
SC
48436echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
48437 { (exit 1); exit 1; }; }
48438 fi
48439
5ff751d6 48440 cd "$ac_popdir"
a848cd7e
SC
48441 done
48442fi
48443
48444
48445echo
77ffb593 48446echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
a848cd7e 48447echo ""
4d4ff94c 48448echo " Which GUI toolkit should wxWidgets use? ${TOOLKIT_USER:-base only}"
77ffb593 48449echo " Should wxWidgets be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
a848cd7e 48450
77ffb593
JS
48451echo " Should wxWidgets be compiled in debug mode? ${wxUSE_DEBUG:-no}"
48452echo " Should wxWidgets be linked as a shared library? ${wxUSE_SHARED:-no}"
48453echo " Should wxWidgets be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
a848cd7e 48454
77ffb593 48455echo " What level of wxWidgets compatibility should be enabled?"
dee1a63f
MB
48456echo " wxWidgets 2.4 ${WXWIN_COMPATIBILITY_2_4:-no}"
48457echo " wxWidgets 2.6 ${WXWIN_COMPATIBILITY_2_6:-yes}"
a848cd7e 48458
77ffb593 48459echo " Which libraries should wxWidgets use?"
a848cd7e
SC
48460echo " jpeg ${wxUSE_LIBJPEG-none}"
48461echo " png ${wxUSE_LIBPNG-none}"
48462echo " regex ${wxUSE_REGEX}"
48463echo " tiff ${wxUSE_LIBTIFF-none}"
48464if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
48465echo " xpm ${wxUSE_LIBXPM-none}"
48466fi
48467echo " zlib ${wxUSE_ZLIB}"
48468echo " odbc ${wxUSE_ODBC}"
48469echo " expat ${wxUSE_EXPAT}"
48470echo " libmspack ${wxUSE_LIBMSPACK}"
48471echo " sdl ${wxUSE_LIBSDL}"
6d1ce868 48472echo " gnomeprint ${wxUSE_LIBGNOMEPRINT-none}"
a848cd7e
SC
48473
48474echo ""
48475