]> git.saurik.com Git - wxWidgets.git/blame - configure
wxWindow::Freeze()/Thaw() can now be nested
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
e6cc62c6
VS
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
32ddf007 4# Generated by GNU Autoconf 2.59 for wxWindows 2.5.1.
e6cc62c6
VS
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
32ddf007 8# Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
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## --------------------- ##
fe0895cf 14
e6cc62c6
VS
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
32ddf007 25DUALCASE=1; export DUALCASE # for MKS sh
fe0895cf 26
e6cc62c6 27# Support unset when possible.
32ddf007 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
29 as_unset=unset
30else
31 as_unset=false
32fi
fe0895cf
VS
33
34
e6cc62c6
VS
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
fe0895cf 40
e6cc62c6
VS
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
32ddf007 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
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'`
fe0895cf
VS
79
80
e6cc62c6
VS
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
fe0895cf 88
e6cc62c6
VS
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
fe0895cf
VS
101
102
e6cc62c6
VS
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
fe0895cf 119
e6cc62c6
VS
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
fe0895cf 158
e6cc62c6
VS
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}
fe0895cf
VS
188
189
e6cc62c6
VS
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
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
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
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
32ddf007 224 test -d ./-p && rmdir ./-p
e6cc62c6
VS
225 as_mkdir_p=false
226fi
fe0895cf 227
e6cc62c6 228as_executable_p="test -f"
fe0895cf 229
e6cc62c6 230# Sed expression to map a string onto a valid CPP name.
32ddf007 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
fe0895cf 232
e6cc62c6 233# Sed expression to map a string onto a valid variable name.
32ddf007 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
fe0895cf
VS
235
236
e6cc62c6
VS
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
fe0895cf 242
e6cc62c6
VS
243# CDPATH.
244$as_unset CDPATH
fe0895cf
VS
245
246
e6cc62c6
VS
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`
fe0895cf 251
e6cc62c6 252exec 6>&1
fe0895cf 253
a0b9e27f 254#
e6cc62c6
VS
255# Initializations.
256#
a0b9e27f 257ac_default_prefix=/usr/local
e6cc62c6
VS
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.
271PACKAGE_NAME='wxWindows'
272PACKAGE_TARNAME='wxwindows'
e46d2a18
VS
273PACKAGE_VERSION='2.5.1'
274PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
275PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
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
672abd7a 315ac_subdirs_all="$ac_subdirs_all src/expat"
243f8ae5 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD SDL_CONFIG SDL_CFLAGS SDL_LIBS CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET ac_ct_AR ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_UNIX_1_USE_PLUGINS_0 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_EXCEPTIONS_0 COND_USE_EXCEPTIONS_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_ODBC_1 COND_USE_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
e6cc62c6 317ac_subst_files=''
10f2d63a
VZ
318
319# Initialize some variables set by options.
e6cc62c6
VS
320ac_init_help=
321ac_init_version=false
10f2d63a
VZ
322# The variables have the same names as the options, with
323# dashes changed to underlines.
e6cc62c6 324cache_file=/dev/null
10f2d63a 325exec_prefix=NONE
10f2d63a 326no_create=
10f2d63a
VZ
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
10f2d63a
VZ
335verbose=
336x_includes=NONE
337x_libraries=NONE
e6cc62c6
VS
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.
10f2d63a
VZ
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
10f2d63a
VZ
357ac_prev=
358for ac_option
359do
10f2d63a
VZ
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
e6cc62c6 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
e6cc62c6 371 case $ac_option in
10f2d63a
VZ
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 376 bindir=$ac_optarg ;;
10f2d63a
VZ
377
378 -build | --build | --buil | --bui | --bu)
e6cc62c6 379 ac_prev=build_alias ;;
10f2d63a 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 381 build_alias=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6
VS
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
10f2d63a
VZ
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
e6cc62c6 397 datadir=$ac_optarg ;;
10f2d63a
VZ
398
399 -disable-* | --disable-*)
e6cc62c6 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 401 # Reject names that are not valid shell variable names.
e6cc62c6
VS
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" ;;
10f2d63a
VZ
407
408 -enable-* | --enable-*)
e6cc62c6 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 410 # Reject names that are not valid shell variable names.
e6cc62c6
VS
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"`;;
10f2d63a
VZ
417 *) ac_optarg=yes ;;
418 esac
e6cc62c6 419 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
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=*)
e6cc62c6 428 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
e6cc62c6
VS
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 ;;
10f2d63a
VZ
440
441 -host | --host | --hos | --ho)
e6cc62c6 442 ac_prev=host_alias ;;
10f2d63a 443 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 444 host_alias=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 451 includedir=$ac_optarg ;;
10f2d63a
VZ
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 456 infodir=$ac_optarg ;;
10f2d63a
VZ
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 461 libdir=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 468 libexecdir=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 477 localstatedir=$ac_optarg ;;
10f2d63a
VZ
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 482 mandir=$ac_optarg ;;
10f2d63a
VZ
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 \
e6cc62c6 489 | --no-cr | --no-c | -n)
10f2d63a
VZ
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=*)
e6cc62c6 503 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 508 prefix=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 515 program_prefix=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 522 program_suffix=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 539 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 549 sbindir=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 560 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
e6cc62c6 565 site=$ac_optarg ;;
10f2d63a
VZ
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 570 srcdir=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 577 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 580 ac_prev=target_alias ;;
10f2d63a 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 582 target_alias=$ac_optarg ;;
10f2d63a
VZ
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
e6cc62c6
VS
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
10f2d63a
VZ
589
590 -with-* | --with-*)
e6cc62c6 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 592 # Reject names that are not valid shell variable names.
e6cc62c6
VS
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; }; }
10f2d63a 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
599 *) ac_optarg=yes ;;
600 esac
e6cc62c6 601 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
602
603 -without-* | --without-*)
e6cc62c6 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 605 # Reject names that are not valid shell variable names.
e6cc62c6
VS
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" ;;
10f2d63a
VZ
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=*)
e6cc62c6 621 x_includes=$ac_optarg ;;
10f2d63a
VZ
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=*)
e6cc62c6 628 x_libraries=$ac_optarg ;;
10f2d63a 629
e6cc62c6
VS
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
10f2d63a
VZ
633 ;;
634
e6cc62c6
VS
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
10f2d63a 645 *)
e6cc62c6
VS
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}
10f2d63a
VZ
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
e6cc62c6
VS
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; }; }
a0b9e27f 660fi
a0b9e27f 661
e6cc62c6
VS
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
8284b0c5 672
e6cc62c6
VS
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
32ddf007 675 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 676do
e6cc62c6
VS
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; }; };;
10f2d63a
VZ
682 esac
683done
684
e6cc62c6
VS
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
247f5006 702
e6cc62c6
VS
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
10f2d63a 707
10f2d63a
VZ
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.
e6cc62c6
VS
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
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'`
10f2d63a
VZ
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
e6cc62c6
VS
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
10f2d63a 736 else
e6cc62c6
VS
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
10f2d63a
VZ
739 fi
740fi
e6cc62c6
VS
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
328a083c 789
e6cc62c6
VS
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
e46d2a18 797\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
10f2d63a 798
e6cc62c6 799Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 800
e6cc62c6
VS
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 803
e6cc62c6
VS
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
32ddf007 822 [$ac_default_prefix]
e6cc62c6 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
32ddf007 824 [PREFIX]
e6cc62c6
VS
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
e46d2a18 863 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
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
f93ca9fd
VS
871 --enable-monolithic build wxWindows as single library
872 --enable-plugins build parts of wxWindows as loadable components
e6cc62c6
VS
873 --enable-universal use wxWindows GUI controls instead of native ones
874 --enable-nanox use NanoX
875 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
0f87e84c 876 --enable-gpe use GNOME PDA Environment features if possible
e6cc62c6 877 --enable-shared create shared library code
e6cc62c6
VS
878 --enable-optimise create optimised code
879 --enable-debug same as debug_flag and debug_info
df5168c4 880 --enable-stl use STL for containers
e6cc62c6
VS
881 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
882 --enable-debug_info create code with debugging information
883 --enable-debug_gdb create code with extra GDB debugging information
884 --enable-debug_cntxt use wxDebugContext
885 --enable-mem_tracing create code with memory tracing
886 --enable-profile create code with profiling information
887 --enable-no_rtti create code without RTTI information
888 --enable-no_exceptions create code without C++ exceptions handling
889 --enable-permissive compile code disregarding strict ANSI
890 --enable-no_deps create code without dependency information
e6cc62c6
VS
891 --enable-compat22 enable wxWindows 2.2 compatibility
892 --disable-compat24 disable wxWindows 2.4 compatibility
893 --enable-rpath=DIR output the rpath flag from wx-config
894 --enable-intl use internationalization system
895 --enable-config use wxConfig (and derived) classes
896 --enable-protocols use wxProtocol and derived classes
897 --enable-ftp use wxFTP (requires wxProtocol
898 --enable-http use wxHTTP (requires wxProtocol
899 --enable-fileproto use wxFileProto class (requires wxProtocol
900 --enable-sockets use socket/network classes
e46d2a18 901 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
902 --enable-dataobj use data object classes
903 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
904 --enable-apple_ieee use the Apple IEEE codec
905 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
906 --enable-cmdline use wxCmdLineParser class
907 --enable-datetime use wxDateTime class
e6cc62c6 908 --enable-dialupman use dialup network classes
e6cc62c6
VS
909 --enable-dynlib use wxLibrary class for DLL loading
910 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
911 --enable-exceptions build exception-safe library
912 --enable-ffile use wxFFile class
913 --enable-file use wxFile class
914 --enable-filesystem use virtual file systems classes
915 --enable-fontmap use font encodings conversion classes
916 --enable-fs_inet use virtual HTTP/FTP filesystems
917 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
918 --enable-geometry use geometry class
919 --enable-log use logging system
e46d2a18
VS
920 --enable-longlong use wxLongLong class
921 --enable-mimetype use wxMimeTypesManager
922 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
923 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 924 --enable-streams use wxStream etc classes
e46d2a18
VS
925 --enable-std_iostreams use standard C++ stream classes
926 --enable-stopwatch use wxStopWatch class
927 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
928 --enable-textbuf use wxTextBuffer class
929 --enable-textfile use wxTextFile class
e46d2a18 930 --enable-timer use wxTimer class
e6cc62c6 931 --enable-unicode compile wxString with Unicode support
002ed9af 932 --enable-sound use wxSound class
e6cc62c6 933 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 934 --enable-zipstream use wxZipInputStream
7015ef3a 935 --enable-gzstream use wxGzipInputStream
e6cc62c6
VS
936 --enable-url use wxURL class
937 --enable-protocol use wxProtocol class
938 --enable-protocol-http HTTP support in wxProtocol
939 --enable-protocol-ftp FTP support in wxProtocol
940 --enable-protocol-file FILE support in wxProtocol
941 --enable-threads use threads
942 --enable-docview use document view architecture
943 --enable-help use help subsystem
944 --enable-mshtmlhelp use MS HTML Help (win32)
945 --enable-html use wxHTML sub-library
946 --enable-htmlhelp use wxHTML-based help
947 --enable-constraints use layout-constraints system
948 --enable-printarch use printing architecture
949 --enable-mdi use multiple document interface architecture
950 --enable-loggui use standard GUI logger
951 --enable-logwin use wxLogWindow
952 --enable-logdialog use wxLogDialog
953 --enable-postscript use wxPostscriptDC device context (default for gtk+)
954 --enable-prologio not available; see contrib
955 --enable-resources not available; see contrib
956 --enable-clipboard use wxClipboard class
957 --enable-dnd use Drag'n'Drop classes
958 --enable-metafile use win32 metafiles
959 --enable-controls use all usual controls
960 --enable-accel use accelerators
961 --enable-button use wxButton class
962 --enable-bmpbutton use wxBitmapButton class
963 --enable-calendar use wxCalendarCtrl class
964 --enable-caret use wxCaret class
965 --enable-checkbox use wxCheckBox class
966 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
967 --enable-choice use wxChoice class
968 --enable-combobox use wxComboBox class
969 --enable-display use wxDisplay class
970 --enable-gauge use wxGauge class
971 --enable-grid use wxGrid class
972 --enable-imaglist use wxImageList class
0e012a93 973 --enable-listbook use wxListbook class
e6cc62c6
VS
974 --enable-listbox use wxListBox class
975 --enable-listctrl use wxListCtrl class
976 --enable-notebook use wxNotebook class
977 --enable-radiobox use wxRadioBox class
978 --enable-radiobtn use wxRadioButton class
979 --enable-sash use wxSashWindow class
980 --enable-scrollbar use wxScrollBar class and scrollable windows
981 --enable-slider use wxSlider class
982 --enable-spinbtn use wxSpinButton class
983 --enable-spinctrl use wxSpinCtrl class
984 --enable-splitter use wxSplitterWindow class
985 --enable-statbmp use wxStaticBitmap class
986 --enable-statbox use wxStaticBox class
987 --enable-statline use wxStaticLine class
988 --enable-stattext use wxStaticText class
989 --enable-statusbar use wxStatusBar class
990 --enable-tabdialog use wxTabControl class
991 --enable-textctrl use wxTextCtrl class
992 --enable-togglebtn use wxToggleButton class
993 --enable-toolbar use wxToolBar class
994 --enable-tbarnative use native wxToolBar class
995 --enable-tbarsmpl use wxToolBarSimple class
996 --enable-treectrl use wxTreeCtrl class
997 --enable-tipwindow use wxTipWindow class
998 --enable-popupwin use wxPopUpWindow class
999 --enable-commondlg use all common dialogs
1000 --enable-choicedlg use wxChoiceDialog
1001 --enable-coldlg use wxColourDialog
1002 --enable-filedlg use wxFileDialog
1003 --enable-finddlg use wxFindReplaceDialog
1004 --enable-fontdlg use wxFontDialog
1005 --enable-dirdlg use wxDirDialog
1006 --enable-msgdlg use wxMessageDialog
1007 --enable-numberdlg use wxNumberEntryDialog
1008 --enable-splash use wxSplashScreen
1009 --enable-textdlg use wxTextDialog
1010 --enable-tipdlg use startup tips
1011 --enable-progressdlg use wxProgressDialog
1012 --enable-wizarddlg use wxWizard
1013 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1014 --enable-miniframe use wxMiniFrame class
1015 --enable-tooltips use wxToolTip class
1016 --enable-splines use spline drawing code
1017 --enable-validators use wxValidator and derived classes
1018 --enable-busyinfo use wxBusyInfo
1019 --enable-joystick use wxJoystick (Linux only)
1020 --enable-metafiles use wxMetaFile (Windows only)
1021 --enable-dragimage use wxDragImage
1022 --enable-accessibility enable accessibility support
1023 --enable-palette use wxPalette class
1024 --enable-image use wxImage class
1025 --enable-gif use gif images (GIF file format)
1026 --enable-pcx use pcx images (PCX file format)
1027 --enable-iff use iff images (IFF file format)
1028 --enable-pnm use pnm images (PNM file format)
1029 --enable-xpm use xpm images (XPM file format)
1030 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1031 --enable-official_build official build of wxWindows (win32 DLL only)
1032 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1033 --disable-largefile omit support for large files
1034 --disable-gtktest do not try to compile and run a test GTK+ program
1035 --disable-gtktest Do not try to compile and run a test GTK program
f93ca9fd 1036 --disable-sdltest Do not try to compile and run a test SDL program
45842500 1037 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1038
1039Optional Packages:
1040 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1041 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1042 --with-gtk use GTK+
1043 --with-motif use Motif/Lesstif
1044 --with-mac use Mac OS X
1045 --with-cocoa use Cocoa
1046 --with-wine use Wine
1047 --with-msw use MS-Windows
1048 --with-pm use OS/2 Presentation Manager
1049 --with-mgl use SciTech MGL
1050 --with-microwin use MicroWindows
1051 --with-x11 use X11
1052 --with-libpng use libpng (PNG image format)
1053 --with-libjpeg use libjpeg (JPEG file format)
1054 --with-libtiff use libtiff (TIFF file format)
89fe663f 1055 --with-libxpm use libxpm (XPM file format)
3527f29c 1056 --with-libmspack use libmspack (CHM help files loading)
f93ca9fd 1057 --with-sdl use SDL for audio on Unix
e6cc62c6
VS
1058 --with-opengl use OpenGL (or Mesa)
1059 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1060 --with-regex enable support for wxRegEx class
1061 --with-zlib use zlib for LZW compression
1062 --with-odbc use the IODBC and wxODBC classes
672abd7a 1063 --with-expat enable XML support using expat parser
e6cc62c6
VS
1064 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1065 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1066 --with-x use the X Window System
1067 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
f93ca9fd
VS
1068 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1069 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
e6cc62c6
VS
1070
1071Some influential environment variables:
1072 CC C compiler command
1073 CFLAGS C compiler flags
1074 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1075 nonstandard directory <lib dir>
1076 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1077 headers in a nonstandard directory <include dir>
1078 CPP C preprocessor
1079 CXX C++ compiler command
1080 CXXFLAGS C++ compiler flags
1081 CXXCPP C++ preprocessor
1082
1083Use these variables to override the choices made by `configure' or to help
1084it to find libraries and programs with nonstandard names/locations.
1085
1086Report bugs to <wx-dev@lists.wxwindows.org>.
1087_ACEOF
1088fi
1089
1090if test "$ac_init_help" = "recursive"; then
1091 # If there are subdirs, report their specific --help.
1092 ac_popdir=`pwd`
1093 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1094 test -d $ac_dir || continue
1095 ac_builddir=.
1096
1097if test "$ac_dir" != .; then
1098 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1099 # A "../" for each directory in $ac_dir_suffix.
1100 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101else
1102 ac_dir_suffix= ac_top_builddir=
1103fi
1104
1105case $srcdir in
1106 .) # No --srcdir option. We are building in place.
1107 ac_srcdir=.
1108 if test -z "$ac_top_builddir"; then
1109 ac_top_srcdir=.
1110 else
1111 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112 fi ;;
1113 [\\/]* | ?:[\\/]* ) # Absolute path.
1114 ac_srcdir=$srcdir$ac_dir_suffix;
1115 ac_top_srcdir=$srcdir ;;
1116 *) # Relative path.
1117 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1118 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1119esac
32ddf007
VS
1120
1121# Do not use `cd foo && pwd` to compute absolute paths, because
1122# the directories may not exist.
1123case `pwd` in
1124.) ac_abs_builddir="$ac_dir";;
1125*)
1126 case "$ac_dir" in
1127 .) ac_abs_builddir=`pwd`;;
1128 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1129 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1130 esac;;
1131esac
1132case $ac_abs_builddir in
1133.) ac_abs_top_builddir=${ac_top_builddir}.;;
1134*)
1135 case ${ac_top_builddir}. in
1136 .) ac_abs_top_builddir=$ac_abs_builddir;;
1137 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1138 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1139 esac;;
1140esac
1141case $ac_abs_builddir in
1142.) ac_abs_srcdir=$ac_srcdir;;
1143*)
1144 case $ac_srcdir in
1145 .) ac_abs_srcdir=$ac_abs_builddir;;
1146 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1147 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1148 esac;;
1149esac
1150case $ac_abs_builddir in
1151.) ac_abs_top_srcdir=$ac_top_srcdir;;
1152*)
1153 case $ac_top_srcdir in
1154 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1156 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1157 esac;;
1158esac
e6cc62c6
VS
1159
1160 cd $ac_dir
1161 # Check for guested configure; otherwise get Cygnus style configure.
1162 if test -f $ac_srcdir/configure.gnu; then
1163 echo
1164 $SHELL $ac_srcdir/configure.gnu --help=recursive
1165 elif test -f $ac_srcdir/configure; then
1166 echo
1167 $SHELL $ac_srcdir/configure --help=recursive
1168 elif test -f $ac_srcdir/configure.ac ||
32ddf007 1169 test -f $ac_srcdir/configure.in; then
e6cc62c6
VS
1170 echo
1171 $ac_configure --help
1172 else
1173 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1174 fi
1175 cd $ac_popdir
1176 done
1177fi
8284b0c5 1178
e6cc62c6
VS
1179test -n "$ac_init_help" && exit 0
1180if $ac_init_version; then
1181 cat <<\_ACEOF
e46d2a18 1182wxWindows configure 2.5.1
32ddf007 1183generated by GNU Autoconf 2.59
10f2d63a 1184
32ddf007 1185Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
1186This configure script is free software; the Free Software Foundation
1187gives unlimited permission to copy, distribute and modify it.
1188_ACEOF
1189 exit 0
7c66a493 1190fi
e6cc62c6
VS
1191exec 5>config.log
1192cat >&5 <<_ACEOF
1193This file contains any messages produced by compilers while
1194running configure, to aid debugging if configure makes a mistake.
1195
e46d2a18 1196It was created by wxWindows $as_me 2.5.1, which was
32ddf007 1197generated by GNU Autoconf 2.59. Invocation command line was
e6cc62c6
VS
1198
1199 $ $0 $@
1200
1201_ACEOF
1202{
1203cat <<_ASUNAME
1204## --------- ##
1205## Platform. ##
1206## --------- ##
1207
1208hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1209uname -m = `(uname -m) 2>/dev/null || echo unknown`
1210uname -r = `(uname -r) 2>/dev/null || echo unknown`
1211uname -s = `(uname -s) 2>/dev/null || echo unknown`
1212uname -v = `(uname -v) 2>/dev/null || echo unknown`
1213
1214/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1215/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1216
1217/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1218/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1219/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1220hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1221/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1222/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1223/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1224
1225_ASUNAME
1226
1227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1228for as_dir in $PATH
1229do
1230 IFS=$as_save_IFS
1231 test -z "$as_dir" && as_dir=.
1232 echo "PATH: $as_dir"
1233done
1234
1235} >&5
1236
1237cat >&5 <<_ACEOF
1238
1239
1240## ----------- ##
1241## Core tests. ##
1242## ----------- ##
1243
1244_ACEOF
1245
1246
1247# Keep a trace of the command line.
1248# Strip out --no-create and --no-recursion so they do not pile up.
1249# Strip out --silent because we don't want to record it for future runs.
1250# Also quote any args containing shell meta-characters.
1251# Make two passes to allow for proper duplicate-argument suppression.
1252ac_configure_args=
1253ac_configure_args0=
1254ac_configure_args1=
1255ac_sep=
1256ac_must_keep_next=false
1257for ac_pass in 1 2
1258do
1259 for ac_arg
1260 do
1261 case $ac_arg in
1262 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264 | -silent | --silent | --silen | --sile | --sil)
1265 continue ;;
1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1268 esac
1269 case $ac_pass in
1270 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1271 2)
1272 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1273 if test $ac_must_keep_next = true; then
32ddf007 1274 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1275 else
32ddf007
VS
1276 case $ac_arg in
1277 *=* | --config-cache | -C | -disable-* | --disable-* \
1278 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1279 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1280 | -with-* | --with-* | -without-* | --without-* | --x)
1281 case "$ac_configure_args0 " in
1282 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1283 esac
1284 ;;
1285 -* ) ac_must_keep_next=true ;;
1286 esac
e6cc62c6
VS
1287 fi
1288 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1289 # Get rid of the leading space.
1290 ac_sep=" "
1291 ;;
1292 esac
1293 done
1294done
1295$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1296$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1297
1298# When interrupted or exit'd, cleanup temporary files, and complete
1299# config.log. We remove comments because anyway the quotes in there
1300# would cause problems or look ugly.
1301# WARNING: Be sure not to use single quotes in there, as some shells,
1302# such as our DU 5.0 friend, will then `close' the trap.
1303trap 'exit_status=$?
1304 # Save into config.log some information that might help in debugging.
1305 {
1306 echo
1307
1308 cat <<\_ASBOX
1309## ---------------- ##
1310## Cache variables. ##
1311## ---------------- ##
1312_ASBOX
1313 echo
1314 # The following way of writing the cache mishandles newlines in values,
1315{
1316 (set) 2>&1 |
1317 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1318 *ac_space=\ *)
1319 sed -n \
32ddf007
VS
1320 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1322 ;;
1323 *)
1324 sed -n \
32ddf007 1325 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
1326 ;;
1327 esac;
1328}
1329 echo
1330
1331 cat <<\_ASBOX
1332## ----------------- ##
1333## Output variables. ##
1334## ----------------- ##
1335_ASBOX
1336 echo
1337 for ac_var in $ac_subst_vars
1338 do
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1341 done | sort
1342 echo
1343
1344 if test -n "$ac_subst_files"; then
1345 cat <<\_ASBOX
1346## ------------- ##
1347## Output files. ##
1348## ------------- ##
1349_ASBOX
1350 echo
1351 for ac_var in $ac_subst_files
1352 do
1353 eval ac_val=$`echo $ac_var`
32ddf007 1354 echo "$ac_var='"'"'$ac_val'"'"'"
e6cc62c6
VS
1355 done | sort
1356 echo
1357 fi
1358
1359 if test -s confdefs.h; then
1360 cat <<\_ASBOX
1361## ----------- ##
1362## confdefs.h. ##
1363## ----------- ##
1364_ASBOX
1365 echo
1366 sed "/^$/d" confdefs.h | sort
1367 echo
1368 fi
1369 test "$ac_signal" != 0 &&
1370 echo "$as_me: caught signal $ac_signal"
1371 echo "$as_me: exit $exit_status"
1372 } >&5
32ddf007 1373 rm -f core *.core &&
e6cc62c6
VS
1374 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1375 exit $exit_status
1376 ' 0
1377for ac_signal in 1 2 13 15; do
1378 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1379done
1380ac_signal=0
1381
1382# confdefs.h avoids OS command line length limits that DEFS can exceed.
1383rm -rf conftest* confdefs.h
1384# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1385echo >confdefs.h
1386
1387# Predefined preprocessor variables.
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_NAME "$PACKAGE_NAME"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1396_ACEOF
1397
1398
1399cat >>confdefs.h <<_ACEOF
1400#define PACKAGE_VERSION "$PACKAGE_VERSION"
1401_ACEOF
1402
1403
1404cat >>confdefs.h <<_ACEOF
1405#define PACKAGE_STRING "$PACKAGE_STRING"
1406_ACEOF
1407
1408
1409cat >>confdefs.h <<_ACEOF
1410#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1411_ACEOF
1412
1413
1414# Let the site file select an alternate cache file if it wants to.
1415# Prefer explicitly selected file to automatically selected ones.
1416if test -z "$CONFIG_SITE"; then
1417 if test "x$prefix" != xNONE; then
1418 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1419 else
1420 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1421 fi
1422fi
1423for ac_site_file in $CONFIG_SITE; do
1424 if test -r "$ac_site_file"; then
1425 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1426echo "$as_me: loading site script $ac_site_file" >&6;}
1427 sed 's/^/| /' "$ac_site_file" >&5
1428 . "$ac_site_file"
1429 fi
1430done
1431
1432if test -r "$cache_file"; then
1433 # Some versions of bash will fail to source /dev/null (special
1434 # files actually), so we avoid doing that.
1435 if test -f "$cache_file"; then
1436 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1437echo "$as_me: loading cache $cache_file" >&6;}
1438 case $cache_file in
1439 [\\/]* | ?:[\\/]* ) . $cache_file;;
1440 *) . ./$cache_file;;
1441 esac
1442 fi
1443else
1444 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1445echo "$as_me: creating cache $cache_file" >&6;}
1446 >$cache_file
1447fi
1448
1449# Check that the precious variables saved in the cache have kept the same
1450# value.
1451ac_cache_corrupted=false
1452for ac_var in `(set) 2>&1 |
32ddf007 1453 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
e6cc62c6
VS
1454 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1455 eval ac_new_set=\$ac_env_${ac_var}_set
1456 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1457 eval ac_new_val="\$ac_env_${ac_var}_value"
1458 case $ac_old_set,$ac_new_set in
1459 set,)
1460 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1461echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1462 ac_cache_corrupted=: ;;
1463 ,set)
1464 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1465echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1466 ac_cache_corrupted=: ;;
1467 ,);;
1468 *)
1469 if test "x$ac_old_val" != "x$ac_new_val"; then
32ddf007 1470 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
e6cc62c6 1471echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
32ddf007 1472 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1473echo "$as_me: former value: $ac_old_val" >&2;}
32ddf007 1474 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1475echo "$as_me: current value: $ac_new_val" >&2;}
32ddf007 1476 ac_cache_corrupted=:
e6cc62c6
VS
1477 fi;;
1478 esac
1479 # Pass precious variables to config.status.
1480 if test "$ac_new_set" = set; then
1481 case $ac_new_val in
1482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1483 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1484 *) ac_arg=$ac_var=$ac_new_val ;;
1485 esac
1486 case " $ac_configure_args " in
1487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1488 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1489 esac
1490 fi
1491done
1492if $ac_cache_corrupted; then
1493 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1494echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1495 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1496echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1497 { (exit 1); exit 1; }; }
1498fi
1499
1500ac_ext=c
1501ac_cpp='$CPP $CPPFLAGS'
1502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1504ac_compiler_gnu=$ac_cv_c_compiler_gnu
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
698dcdb6 1522
8284b0c5 1523
7c66a493 1524
a0b9e27f
MB
1525
1526
a0b9e27f 1527
a0b9e27f 1528
a0b9e27f 1529
a0b9e27f 1530
a0b9e27f 1531
a0b9e27f 1532
e6cc62c6
VS
1533
1534
1535ac_aux_dir=
1536for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1537 if test -f $ac_dir/install-sh; then
1538 ac_aux_dir=$ac_dir
1539 ac_install_sh="$ac_aux_dir/install-sh -c"
1540 break
1541 elif test -f $ac_dir/install.sh; then
1542 ac_aux_dir=$ac_dir
1543 ac_install_sh="$ac_aux_dir/install.sh -c"
1544 break
1545 elif test -f $ac_dir/shtool; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 break
1549 fi
1550done
1551if test -z "$ac_aux_dir"; then
1552 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1553echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1554 { (exit 1); exit 1; }; }
1555fi
1556ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
1560# Make sure we can run config.sub.
1561$ac_config_sub sun4 >/dev/null 2>&1 ||
1562 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1563echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1564 { (exit 1); exit 1; }; }
1565
1566echo "$as_me:$LINENO: checking build system type" >&5
1567echo $ECHO_N "checking build system type... $ECHO_C" >&6
1568if test "${ac_cv_build+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1570else
1571 ac_cv_build_alias=$build_alias
1572test -z "$ac_cv_build_alias" &&
1573 ac_cv_build_alias=`$ac_config_guess`
1574test -z "$ac_cv_build_alias" &&
1575 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1576echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1577 { (exit 1); exit 1; }; }
1578ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1579 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1580echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1581 { (exit 1); exit 1; }; }
1582
1583fi
1584echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1585echo "${ECHO_T}$ac_cv_build" >&6
1586build=$ac_cv_build
1587build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1588build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1589build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1590
1591
1592echo "$as_me:$LINENO: checking host system type" >&5
1593echo $ECHO_N "checking host system type... $ECHO_C" >&6
1594if test "${ac_cv_host+set}" = set; then
1595 echo $ECHO_N "(cached) $ECHO_C" >&6
1596else
1597 ac_cv_host_alias=$host_alias
1598test -z "$ac_cv_host_alias" &&
1599 ac_cv_host_alias=$ac_cv_build_alias
1600ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1601 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1602echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1603 { (exit 1); exit 1; }; }
1604
1605fi
1606echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1607echo "${ECHO_T}$ac_cv_host" >&6
1608host=$ac_cv_host
1609host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1610host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1611host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1612
1613
1614echo "$as_me:$LINENO: checking target system type" >&5
1615echo $ECHO_N "checking target system type... $ECHO_C" >&6
1616if test "${ac_cv_target+set}" = set; then
1617 echo $ECHO_N "(cached) $ECHO_C" >&6
1618else
1619 ac_cv_target_alias=$target_alias
1620test "x$ac_cv_target_alias" = "x" &&
1621 ac_cv_target_alias=$ac_cv_host_alias
1622ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1623 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1624echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1625 { (exit 1); exit 1; }; }
1626
1627fi
1628echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1629echo "${ECHO_T}$ac_cv_target" >&6
1630target=$ac_cv_target
1631target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1632target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1633target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1634
1635
1636# The aliases save the names the user supplied, while $host etc.
1637# will get canonicalized.
1638test -n "$target_alias" &&
7c66a493
VZ
1639 test "$program_prefix$program_suffix$program_transform_name" = \
1640 NONENONEs,x,x, &&
1641 program_prefix=${target_alias}-
8284b0c5
MB
1642
1643
a0b9e27f 1644
10f2d63a 1645WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1646WX_MINOR_VERSION_NUMBER=5
e46d2a18 1647WX_RELEASE_NUMBER=1
10f2d63a 1648
10f2d63a 1649WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1650WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1651
978f1259
RL
1652WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1653
7015ef3a 1654WX_CURRENT=1
6426998c
RL
1655WX_REVISION=0
1656WX_AGE=0
1657
8284b0c5
MB
1658
1659
10f2d63a 1660USE_UNIX=1
73d617c9 1661USE_OS2=0
10f2d63a 1662USE_WIN32=0
f9bc1684 1663USE_DOS=0
b12915c1 1664USE_BEOS=0
1216f52d 1665USE_MAC=0
b12915c1 1666
10f2d63a 1667USE_AIX=
fe0895cf
VS
1668USE_BSD= USE_DARWIN= USE_FREEBSD=
1669USE_GNU= USE_HPUX=
89e3b3e4 1670USE_LINUX=
f6bcfd97 1671USE_NETBSD=
89e3b3e4 1672USE_OPENBSD=
fe0895cf
VS
1673USE_OSF= USE_SGI=
1674USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1675USE_ULTRIX=
89e3b3e4
VZ
1676USE_UNIXWARE=
1677
1678USE_ALPHA=
10f2d63a 1679
ab9b9eab
VZ
1680NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1681
ac0c4cc3 1682ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1683
ac0c4cc3 1684DEFAULT_wxUSE_COCOA=0
10f2d63a 1685DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1686DEFAULT_wxUSE_MAC=0
1687DEFAULT_wxUSE_MGL=0
1725144d 1688DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1689DEFAULT_wxUSE_MOTIF=0
1690DEFAULT_wxUSE_MSW=0
e07802fc 1691DEFAULT_wxUSE_PM=0
f79bd02d 1692DEFAULT_wxUSE_X11=0
10f2d63a 1693
ac0c4cc3 1694DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1695DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1696DEFAULT_DEFAULT_wxUSE_MAC=0
1697DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1698DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1699DEFAULT_DEFAULT_wxUSE_MOTIF=0
1700DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1701DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1702DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1703
d6a55c4b 1704PROGRAM_EXT=
3a922bb4 1705SO_SUFFIX=so
fe0895cf 1706SAMPLES_RPATH_FLAG=
0f1bc9c2 1707SAMPLES_RPATH_POSTLINK=
d6a55c4b 1708
10f2d63a
VZ
1709case "${host}" in
1710 *-hp-hpux* )
1711 USE_HPUX=1
1712 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1713 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1714 SO_SUFFIX=sl
e6cc62c6 1715 cat >>confdefs.h <<\_ACEOF
10f2d63a 1716#define __HPUX__ 1
e6cc62c6 1717_ACEOF
10f2d63a
VZ
1718
1719 ;;
1720 *-*-linux* )
1721 USE_LINUX=1
e6cc62c6 1722 cat >>confdefs.h <<\_ACEOF
10f2d63a 1723#define __LINUX__ 1
e6cc62c6 1724_ACEOF
10f2d63a
VZ
1725
1726 TMP=`uname -m`
1727 if test "x$TMP" = "xalpha"; then
1728 USE_ALPHA=1
e6cc62c6 1729 cat >>confdefs.h <<\_ACEOF
10f2d63a 1730#define __ALPHA__ 1
e6cc62c6 1731_ACEOF
fe0895cf
VS
1732
1733 fi
1734 DEFAULT_DEFAULT_wxUSE_GTK=1
1735 ;;
1736 *-*-gnu* )
1737 USE_GNU=1
e6cc62c6 1738 cat >>confdefs.h <<\_ACEOF
fe0895cf 1739#define __GNU__ 1
e6cc62c6 1740_ACEOF
fe0895cf
VS
1741
1742 TMP=`uname -m`
1743 if test "x$TMP" = "xalpha"; then
1744 USE_ALPHA=1
e6cc62c6 1745 cat >>confdefs.h <<\_ACEOF
fe0895cf 1746#define __ALPHA__ 1
e6cc62c6 1747_ACEOF
10f2d63a
VZ
1748
1749 fi
1750 DEFAULT_DEFAULT_wxUSE_GTK=1
1751 ;;
1752 *-*-irix5* | *-*-irix6* )
1753 USE_SGI=1
1754 USE_SVR4=1
e6cc62c6 1755 cat >>confdefs.h <<\_ACEOF
10f2d63a 1756#define __SGI__ 1
e6cc62c6 1757_ACEOF
10f2d63a 1758
e6cc62c6 1759 cat >>confdefs.h <<\_ACEOF
10f2d63a 1760#define __SVR4__ 1
e6cc62c6 1761_ACEOF
10f2d63a
VZ
1762
1763 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1764 ;;
1765 *-*-solaris2* )
1766 USE_SUN=1
1767 USE_SOLARIS=1
1768 USE_SVR4=1
e6cc62c6 1769 cat >>confdefs.h <<\_ACEOF
10f2d63a 1770#define __SUN__ 1
e6cc62c6 1771_ACEOF
10f2d63a 1772
e6cc62c6 1773 cat >>confdefs.h <<\_ACEOF
10f2d63a 1774#define __SOLARIS__ 1
e6cc62c6 1775_ACEOF
10f2d63a 1776
e6cc62c6 1777 cat >>confdefs.h <<\_ACEOF
10f2d63a 1778#define __SVR4__ 1
e6cc62c6 1779_ACEOF
10f2d63a
VZ
1780
1781 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1782 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1783 ;;
1784 *-*-sunos4* )
1785 USE_SUN=1
1786 USE_SUNOS=1
1787 USE_BSD=1
e6cc62c6 1788 cat >>confdefs.h <<\_ACEOF
10f2d63a 1789#define __SUN__ 1
e6cc62c6 1790_ACEOF
10f2d63a 1791
e6cc62c6 1792 cat >>confdefs.h <<\_ACEOF
10f2d63a 1793#define __SUNOS__ 1
e6cc62c6 1794_ACEOF
10f2d63a 1795
e6cc62c6 1796 cat >>confdefs.h <<\_ACEOF
10f2d63a 1797#define __BSD__ 1
e6cc62c6 1798_ACEOF
10f2d63a
VZ
1799
1800 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1801 ;;
f6bcfd97 1802 *-*-freebsd*)
10f2d63a
VZ
1803 USE_BSD=1
1804 USE_FREEBSD=1
e6cc62c6 1805 cat >>confdefs.h <<\_ACEOF
10f2d63a 1806#define __FREEBSD__ 1
e6cc62c6 1807_ACEOF
10f2d63a 1808
e6cc62c6 1809 cat >>confdefs.h <<\_ACEOF
10f2d63a 1810#define __BSD__ 1
e6cc62c6 1811_ACEOF
95c8801c
VS
1812
1813 DEFAULT_DEFAULT_wxUSE_GTK=1
1814 ;;
1815 *-*-openbsd*)
1816 USE_BSD=1
1817 USE_OPENBSD=1
e6cc62c6 1818 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1819#define __OPENBSD__ 1
e6cc62c6 1820_ACEOF
95c8801c 1821
e6cc62c6 1822 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1823#define __BSD__ 1
e6cc62c6 1824_ACEOF
f6bcfd97
BP
1825
1826 DEFAULT_DEFAULT_wxUSE_GTK=1
1827 ;;
1828 *-*-netbsd*)
1829 USE_BSD=1
1830 USE_NETBSD=1
e6cc62c6 1831 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1832#define __NETBSD__ 1
e6cc62c6 1833_ACEOF
f6bcfd97 1834
e6cc62c6 1835 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1836#define __BSD__ 1
e6cc62c6 1837_ACEOF
10f2d63a
VZ
1838
1839 DEFAULT_DEFAULT_wxUSE_GTK=1
1840 ;;
1841 *-*-osf* )
1842 USE_ALPHA=1
1843 USE_OSF=1
e6cc62c6 1844 cat >>confdefs.h <<\_ACEOF
10f2d63a 1845#define __ALPHA__ 1
e6cc62c6 1846_ACEOF
10f2d63a 1847
e6cc62c6 1848 cat >>confdefs.h <<\_ACEOF
10f2d63a 1849#define __OSF__ 1
e6cc62c6 1850_ACEOF
10f2d63a
VZ
1851
1852 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1853 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1854 ;;
1855 *-*-dgux5* )
1856 USE_ALPHA=1
1857 USE_SVR4=1
e6cc62c6 1858 cat >>confdefs.h <<\_ACEOF
10f2d63a 1859#define __ALPHA__ 1
e6cc62c6 1860_ACEOF
10f2d63a 1861
e6cc62c6 1862 cat >>confdefs.h <<\_ACEOF
10f2d63a 1863#define __SVR4__ 1
e6cc62c6 1864_ACEOF
10f2d63a
VZ
1865
1866 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1867 ;;
1868 *-*-sysv5* )
1869 USE_SYSV=1
1870 USE_SVR4=1
e6cc62c6 1871 cat >>confdefs.h <<\_ACEOF
10f2d63a 1872#define __SYSV__ 1
e6cc62c6 1873_ACEOF
10f2d63a 1874
e6cc62c6 1875 cat >>confdefs.h <<\_ACEOF
10f2d63a 1876#define __SVR4__ 1
e6cc62c6 1877_ACEOF
10f2d63a
VZ
1878
1879 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1880 ;;
1881 *-*-aix* )
1882 USE_AIX=1
1883 USE_SYSV=1
1884 USE_SVR4=1
2b5f62a0 1885 SO_SUFFIX=a
e6cc62c6 1886 cat >>confdefs.h <<\_ACEOF
10f2d63a 1887#define __AIX__ 1
e6cc62c6 1888_ACEOF
10f2d63a 1889
e6cc62c6 1890 cat >>confdefs.h <<\_ACEOF
10f2d63a 1891#define __SYSV__ 1
e6cc62c6 1892_ACEOF
10f2d63a 1893
e6cc62c6 1894 cat >>confdefs.h <<\_ACEOF
10f2d63a 1895#define __SVR4__ 1
e6cc62c6 1896_ACEOF
10f2d63a
VZ
1897
1898 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1899 ;;
1900
89e3b3e4
VZ
1901 *-*-*UnixWare*)
1902 USE_SYSV=1
1903 USE_SVR4=1
1904 USE_UNIXWARE=1
e6cc62c6 1905 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1906#define __UNIXWARE__ 1
e6cc62c6 1907_ACEOF
89e3b3e4
VZ
1908
1909 ;;
1910
1c8183e2 1911 *-*-cygwin* | *-*-mingw32* )
17234b26 1912 SO_SUFFIX=dll
cf27ef00 1913 PROGRAM_EXT=".exe"
7b7a7637 1914 RESCOMP=windres
10f2d63a
VZ
1915 DEFAULT_DEFAULT_wxUSE_MSW=1
1916 ;;
1917
f9bc1684
VS
1918 *-pc-msdosdjgpp )
1919 USE_UNIX=0
1920 USE_DOS=1
e6cc62c6 1921 cat >>confdefs.h <<\_ACEOF
f9bc1684 1922#define __DOS__ 1
e6cc62c6 1923_ACEOF
f9bc1684
VS
1924
1925 PROGRAM_EXT=".exe"
1926 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1927 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1928 ;;
1929
6fa882bd 1930 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1931 cat >>confdefs.h <<\_ACEOF
10f2d63a 1932#define __EMX__ 1
e6cc62c6 1933_ACEOF
10f2d63a 1934
73d617c9 1935 USE_OS2=1
7015ef3a
VZ
1936 cat >>confdefs.h <<\_ACEOF
1937#define __OS2__ 1
1938_ACEOF
1939
cf27ef00 1940 PROGRAM_EXT=".exe"
e07802fc 1941 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1942 CXX=gcc
32ddf007 1943 LDFLAGS="$LDFLAGS -Zcrtdll"
d5fc095c
VS
1944 ac_executable_extensions=".exe"
1945 export ac_executable_extensions
1946 ac_save_IFS="$IFS"
e46d2a18 1947 IFS='\\'
d5fc095c
VS
1948 ac_TEMP_PATH=
1949 for ac_dir in $PATH; do
1950 IFS=$ac_save_IFS
1951 if test -z "$ac_TEMP_PATH"; then
1952 ac_TEMP_PATH="$ac_dir"
1953 else
1954 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1955 fi
1956 done
1957 export PATH="$ac_TEMP_PATH"
1958 unset ac_TEMP_PATH
10f2d63a
VZ
1959 ;;
1960
d08b457b
GD
1961 powerpc-*-darwin* )
1962 USE_BSD=1
f11bdd03 1963 USE_DARWIN=1
3a922bb4 1964 SO_SUFFIX=dylib
e6cc62c6 1965 cat >>confdefs.h <<\_ACEOF
f11bdd03 1966#define __BSD__ 1
e6cc62c6 1967_ACEOF
b4085ce6 1968
e6cc62c6 1969 cat >>confdefs.h <<\_ACEOF
f11bdd03 1970#define __DARWIN__ 1
e6cc62c6 1971_ACEOF
d08b457b 1972
e6cc62c6 1973 cat >>confdefs.h <<\_ACEOF
d08b457b 1974#define __POWERPC__ 1
e6cc62c6 1975_ACEOF
82d43113 1976
e6cc62c6 1977 cat >>confdefs.h <<\_ACEOF
82d43113 1978#define TARGET_CARBON 1
e6cc62c6 1979_ACEOF
b4085ce6
GD
1980
1981 DEFAULT_DEFAULT_wxUSE_MAC=1
1982 ;;
1983
b12915c1
VZ
1984 *-*-beos* )
1985 USE_BEOS=1
e6cc62c6 1986 cat >>confdefs.h <<\_ACEOF
b12915c1 1987#define __BEOS__ 1
e6cc62c6 1988_ACEOF
b12915c1
VZ
1989
1990 ;;
1991
10f2d63a 1992 *)
e6cc62c6
VS
1993 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1994echo "$as_me: error: unknown system type ${host}." >&2;}
1995 { (exit 1); exit 1; }; }
10f2d63a
VZ
1996esac
1997
8284b0c5
MB
1998
1999
2000
2001 wx_arg_cache_file="configarg.cache"
2002 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
2003 rm -f ${wx_arg_cache_file}.tmp
2004 touch ${wx_arg_cache_file}.tmp
2005 touch ${wx_arg_cache_file}
e6cc62c6 2006
10f2d63a
VZ
2007
2008DEBUG_CONFIGURE=0
2009if test $DEBUG_CONFIGURE = 1; then
1e6feb95 2010 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2011 DEFAULT_wxUSE_STL=no
1e6feb95 2012
d8356fa3
VZ
2013 DEFAULT_wxUSE_NANOX=no
2014
10f2d63a
VZ
2015 DEFAULT_wxUSE_THREADS=yes
2016
2017 DEFAULT_wxUSE_SHARED=yes
1e6feb95 2018 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
2019 DEFAULT_wxUSE_PROFILE=no
2020 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2021 DEFAULT_wxUSE_NO_RTTI=no
2022 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2023 DEFAULT_wxUSE_PERMISSIVE=no
2024 DEFAULT_wxUSE_DEBUG_FLAG=yes
2025 DEFAULT_wxUSE_DEBUG_INFO=yes
2026 DEFAULT_wxUSE_DEBUG_GDB=yes
2027 DEFAULT_wxUSE_MEM_TRACING=no
2028 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2029 DEFAULT_wxUSE_DMALLOC=no
2030 DEFAULT_wxUSE_APPLE_IEEE=no
2031
e46d2a18 2032 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 2033 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
2034 DEFAULT_wxUSE_LOGWINDOW=no
2035 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 2036 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
2037
2038 DEFAULT_wxUSE_GUI=yes
1e6feb95 2039 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2040
3e44f09d 2041 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2042 DEFAULT_wxUSE_XML=no
2043 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2044 DEFAULT_wxUSE_ZLIB=no
2045 DEFAULT_wxUSE_LIBPNG=no
2046 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2047 DEFAULT_wxUSE_LIBTIFF=no
89fe663f 2048 DEFAULT_wxUSE_LIBXPM=no
f93ca9fd
VS
2049 DEFAULT_wxUSE_LIBMSPACK=no
2050 DEFAULT_wxUSE_LIBSDL=no
10f2d63a 2051 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2052 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2053
eb4efbdc 2054 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2055 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2056 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2057 DEFAULT_wxUSE_CMDLINE_PARSER=no
2058 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2059 DEFAULT_wxUSE_TIMER=no
2060 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2061 DEFAULT_wxUSE_FILE=no
1e6feb95 2062 DEFAULT_wxUSE_FFILE=no
a3a584a7 2063 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2064 DEFAULT_wxUSE_TEXTFILE=no
002ed9af 2065 DEFAULT_wxUSE_SOUND=no
10f2d63a
VZ
2066 DEFAULT_wxUSE_INTL=no
2067 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2068 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2069 DEFAULT_wxUSE_STREAMS=no
2070 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2071 DEFAULT_wxUSE_OLE=no
2072 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2073 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2074 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2075 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2076 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2077 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2078 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2079
2080 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2081 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2082 DEFAULT_wxUSE_POSTSCRIPT=no
2083
10f2d63a
VZ
2084 DEFAULT_wxUSE_CLIPBOARD=no
2085 DEFAULT_wxUSE_TOOLTIPS=no
2086 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2087 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2088 DEFAULT_wxUSE_SPLINES=no
2089
2090 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2091 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2092 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2093
10f2d63a
VZ
2094 DEFAULT_wxUSE_RESOURCES=no
2095 DEFAULT_wxUSE_CONSTRAINTS=no
2096 DEFAULT_wxUSE_IPC=no
2097 DEFAULT_wxUSE_HELP=no
29fd3c0c 2098 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2099 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2100 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2101 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2102 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2103 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2104 DEFAULT_wxUSE_PROTOCOL=no
2105 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2106 DEFAULT_wxUSE_PROTOCOL_FTP=no
2107 DEFAULT_wxUSE_PROTOCOL_FILE=no
2108 DEFAULT_wxUSE_URL=no
3bd8fb5f 2109
10f2d63a 2110 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2111 DEFAULT_wxUSE_CHOICEDLG=no
2112 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2113 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2114 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2115 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2116 DEFAULT_wxUSE_FONTDLG=no
2117 DEFAULT_wxUSE_MSGDLG=no
2118 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2119 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2120 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2121 DEFAULT_wxUSE_STARTUP_TIPS=no
2122 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2123 DEFAULT_wxUSE_WIZARDDLG=no
2124
1e6feb95 2125 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2126 DEFAULT_wxUSE_MINIFRAME=no
2127 DEFAULT_wxUSE_HTML=no
24528b0c 2128 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2129 DEFAULT_wxUSE_FS_INET=no
2130 DEFAULT_wxUSE_FS_ZIP=no
2131 DEFAULT_wxUSE_BUSYINFO=no
2132 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2133 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2134 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2135
2136 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2137 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2138 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2139 DEFAULT_wxUSE_CALCTRL=no
2140 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2141 DEFAULT_wxUSE_CHECKBOX=no
2142 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2143 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2144 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2145 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2146 DEFAULT_wxUSE_GAUGE=no
2147 DEFAULT_wxUSE_GRID=no
10f2d63a 2148 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2149 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2150 DEFAULT_wxUSE_LISTBOX=no
2151 DEFAULT_wxUSE_LISTCTRL=no
2152 DEFAULT_wxUSE_NOTEBOOK=no
2153 DEFAULT_wxUSE_RADIOBOX=no
2154 DEFAULT_wxUSE_RADIOBTN=no
2155 DEFAULT_wxUSE_SASH=no
2156 DEFAULT_wxUSE_SCROLLBAR=no
2157 DEFAULT_wxUSE_SLIDER=no
2158 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2159 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2160 DEFAULT_wxUSE_SPLITTER=no
2161 DEFAULT_wxUSE_STATBMP=no
2162 DEFAULT_wxUSE_STATBOX=no
2163 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2164 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2165 DEFAULT_wxUSE_STATUSBAR=yes
2166 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2167 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2168 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2169 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2170 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2171 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2172 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2173 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2174 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2175
2176 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2177 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2178 DEFAULT_wxUSE_WCSRTOMBS=no
2179
edae8572 2180 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2181 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2182 DEFAULT_wxUSE_GIF=no
2183 DEFAULT_wxUSE_PCX=no
2184 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2185 DEFAULT_wxUSE_IFF=no
0046ff7c 2186 DEFAULT_wxUSE_XPM=no
658974ae 2187 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2188 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2189
e9e0dc15 2190 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2191 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2192 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2193else
1e6feb95 2194 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2195 DEFAULT_wxUSE_STL=no
1e6feb95 2196
d8356fa3
VZ
2197 DEFAULT_wxUSE_NANOX=no
2198
10f2d63a
VZ
2199 DEFAULT_wxUSE_THREADS=yes
2200
2201 DEFAULT_wxUSE_SHARED=yes
2202 DEFAULT_wxUSE_OPTIMISE=yes
2203 DEFAULT_wxUSE_PROFILE=no
2204 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2205 DEFAULT_wxUSE_NO_RTTI=no
2206 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2207 DEFAULT_wxUSE_PERMISSIVE=no
2208 DEFAULT_wxUSE_DEBUG_FLAG=no
2209 DEFAULT_wxUSE_DEBUG_INFO=no
2210 DEFAULT_wxUSE_DEBUG_GDB=no
2211 DEFAULT_wxUSE_MEM_TRACING=no
2212 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2213 DEFAULT_wxUSE_DMALLOC=no
2214 DEFAULT_wxUSE_APPLE_IEEE=yes
2215
e46d2a18 2216 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2217 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2218 DEFAULT_wxUSE_LOGWINDOW=yes
2219 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2220 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2221
2222 DEFAULT_wxUSE_GUI=yes
2223
aa2d9ecc 2224 DEFAULT_wxUSE_REGEX=yes
672abd7a 2225 DEFAULT_wxUSE_XML=yes
aa2d9ecc
VZ
2226 DEFAULT_wxUSE_EXPAT=yes
2227 DEFAULT_wxUSE_ZLIB=yes
2228 DEFAULT_wxUSE_LIBPNG=yes
2229 DEFAULT_wxUSE_LIBJPEG=yes
2230 DEFAULT_wxUSE_LIBTIFF=yes
2231 DEFAULT_wxUSE_LIBXPM=yes
3527f29c 2232 DEFAULT_wxUSE_LIBMSPACK=yes
f93ca9fd 2233 DEFAULT_wxUSE_LIBSDL=no
16b52fa1 2234 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2235 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2236
eb4efbdc 2237 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2238 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2239 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2240 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2241 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2242 DEFAULT_wxUSE_TIMER=yes
2243 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2244 DEFAULT_wxUSE_FILE=yes
1e6feb95 2245 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2246 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2247 DEFAULT_wxUSE_TEXTFILE=yes
002ed9af 2248 DEFAULT_wxUSE_SOUND=yes
10f2d63a
VZ
2249 DEFAULT_wxUSE_INTL=yes
2250 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2251 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2252 DEFAULT_wxUSE_STREAMS=yes
2253 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2254 DEFAULT_wxUSE_OLE=yes
2255 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2256 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2257 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2258 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2259 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2260 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2261 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2262
2263 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2264 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2265 DEFAULT_wxUSE_POSTSCRIPT=yes
2266
10f2d63a
VZ
2267 DEFAULT_wxUSE_CLIPBOARD=yes
2268 DEFAULT_wxUSE_TOOLTIPS=yes
2269 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2270 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2271 DEFAULT_wxUSE_SPLINES=yes
2272
2273 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2274 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2275 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2276
2b5f62a0 2277 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2278 DEFAULT_wxUSE_CONSTRAINTS=yes
2279 DEFAULT_wxUSE_IPC=yes
2280 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2281 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2282 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2283 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2284 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2285 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2286 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2287 DEFAULT_wxUSE_PROTOCOL=yes
2288 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2289 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2290 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2291 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2292
2293 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2294 DEFAULT_wxUSE_CHOICEDLG=yes
2295 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2296 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2297 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2298 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2299 DEFAULT_wxUSE_FONTDLG=yes
2300 DEFAULT_wxUSE_MSGDLG=yes
2301 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2302 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2303 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2304 DEFAULT_wxUSE_STARTUP_TIPS=yes
2305 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2306 DEFAULT_wxUSE_WIZARDDLG=yes
2307
1e6feb95 2308 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2309 DEFAULT_wxUSE_MINIFRAME=yes
2310 DEFAULT_wxUSE_HTML=yes
24528b0c 2311 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2312 DEFAULT_wxUSE_FS_INET=yes
2313 DEFAULT_wxUSE_FS_ZIP=yes
2314 DEFAULT_wxUSE_BUSYINFO=yes
2315 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2316 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2317 DEFAULT_wxUSE_VALIDATORS=yes
2318
2319 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2320 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2321 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2322 DEFAULT_wxUSE_CALCTRL=yes
2323 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2324 DEFAULT_wxUSE_CHECKBOX=yes
2325 DEFAULT_wxUSE_CHECKLST=yes
2326 DEFAULT_wxUSE_CHOICE=yes
2327 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2328 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2329 DEFAULT_wxUSE_GAUGE=yes
2330 DEFAULT_wxUSE_GRID=yes
10f2d63a 2331 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2332 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2333 DEFAULT_wxUSE_LISTBOX=yes
2334 DEFAULT_wxUSE_LISTCTRL=yes
2335 DEFAULT_wxUSE_NOTEBOOK=yes
2336 DEFAULT_wxUSE_RADIOBOX=yes
2337 DEFAULT_wxUSE_RADIOBTN=yes
2338 DEFAULT_wxUSE_SASH=yes
2339 DEFAULT_wxUSE_SCROLLBAR=yes
2340 DEFAULT_wxUSE_SLIDER=yes
2341 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2342 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2343 DEFAULT_wxUSE_SPLITTER=yes
2344 DEFAULT_wxUSE_STATBMP=yes
2345 DEFAULT_wxUSE_STATBOX=yes
2346 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2347 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2348 DEFAULT_wxUSE_STATUSBAR=yes
2349 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2350 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2351 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2352 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2353 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2354 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2355 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2356 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2357 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2358
2359 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2360 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2361 DEFAULT_wxUSE_WCSRTOMBS=no
2362
edae8572 2363 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2364 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2365 DEFAULT_wxUSE_GIF=yes
2366 DEFAULT_wxUSE_PCX=yes
cc0e8480 2367 DEFAULT_wxUSE_IFF=no
10f2d63a 2368 DEFAULT_wxUSE_PNM=yes
0046ff7c 2369 DEFAULT_wxUSE_XPM=yes
658974ae 2370 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2371 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2372
e9e0dc15 2373 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2374 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2375 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2376fi
2377
8284b0c5
MB
2378
2379
10f2d63a 2380for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2381 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2382 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2383 has_toolkit_in_cache=1
2384 eval "DEFAULT_$LINE"
2385 eval "CACHE_$toolkit=1"
2386 fi
2387done
2388
8284b0c5
MB
2389
2390
5005acfe 2391 enablestring=
e6cc62c6
VS
2392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2393echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2394 no_cache=0
2395 # Check whether --enable-gui or --disable-gui was given.
2396if test "${enable_gui+set}" = set; then
2397 enableval="$enable_gui"
e6cc62c6 2398
10f2d63a
VZ
2399 if test "$enableval" = yes; then
2400 ac_cv_use_gui='wxUSE_GUI=yes'
2401 else
2402 ac_cv_use_gui='wxUSE_GUI=no'
2403 fi
e6cc62c6 2404
10f2d63a 2405else
e6cc62c6 2406
10f2d63a
VZ
2407 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2408 if test "x$LINE" != x ; then
2409 eval "DEFAULT_$LINE"
2410 else
2411 no_cache=1
2412 fi
2413
2414 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2415
e6cc62c6 2416fi;
10f2d63a
VZ
2417
2418 eval "$ac_cv_use_gui"
2419 if test "$no_cache" != 1; then
2420 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2421 fi
2422
2423 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2424 echo "$as_me:$LINENO: result: yes" >&5
2425echo "${ECHO_T}yes" >&6
10f2d63a 2426 else
e6cc62c6
VS
2427 echo "$as_me:$LINENO: result: no" >&5
2428echo "${ECHO_T}no" >&6
10f2d63a 2429 fi
e6cc62c6 2430
10f2d63a 2431
9747f85d
VS
2432 enablestring=
2433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2434echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2435 no_cache=0
2436 # Check whether --enable-monolithic or --disable-monolithic was given.
2437if test "${enable_monolithic+set}" = set; then
2438 enableval="$enable_monolithic"
2439
2440 if test "$enableval" = yes; then
2441 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2442 else
2443 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2444 fi
2445
2446else
2447
2448 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2449 if test "x$LINE" != x ; then
2450 eval "DEFAULT_$LINE"
2451 else
2452 no_cache=1
2453 fi
2454
2455 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2456
2457fi;
2458
2459 eval "$ac_cv_use_monolithic"
2460 if test "$no_cache" != 1; then
2461 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2462 fi
2463
2464 if test "$wxUSE_MONOLITHIC" = yes; then
2465 echo "$as_me:$LINENO: result: yes" >&5
2466echo "${ECHO_T}yes" >&6
2467 else
2468 echo "$as_me:$LINENO: result: no" >&5
2469echo "${ECHO_T}no" >&6
2470 fi
2471
2472
f93ca9fd
VS
2473 enablestring=
2474 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2475echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2476 no_cache=0
2477 # Check whether --enable-plugins or --disable-plugins was given.
2478if test "${enable_plugins+set}" = set; then
2479 enableval="$enable_plugins"
2480
2481 if test "$enableval" = yes; then
2482 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2483 else
2484 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2485 fi
2486
2487else
2488
2489 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2490 if test "x$LINE" != x ; then
2491 eval "DEFAULT_$LINE"
2492 else
2493 no_cache=1
2494 fi
2495
2496 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2497
2498fi;
2499
2500 eval "$ac_cv_use_plugins"
2501 if test "$no_cache" != 1; then
2502 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2503 fi
2504
2505 if test "$wxUSE_PLUGINS" = yes; then
2506 echo "$as_me:$LINENO: result: yes" >&5
2507echo "${ECHO_T}yes" >&6
2508 else
2509 echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6
2511 fi
2512
2513
b12915c1 2514if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2515
8284b0c5 2516
5005acfe 2517 enablestring=
e6cc62c6
VS
2518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2519echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2520 no_cache=0
2521 # Check whether --enable-universal or --disable-universal was given.
2522if test "${enable_universal+set}" = set; then
2523 enableval="$enable_universal"
e6cc62c6 2524
1e6feb95
VZ
2525 if test "$enableval" = yes; then
2526 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2527 else
2528 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2529 fi
e6cc62c6 2530
1e6feb95 2531else
e6cc62c6 2532
1e6feb95
VZ
2533 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2534 if test "x$LINE" != x ; then
2535 eval "DEFAULT_$LINE"
2536 else
2537 no_cache=1
2538 fi
2539
2540 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2541
e6cc62c6 2542fi;
1e6feb95
VZ
2543
2544 eval "$ac_cv_use_universal"
2545 if test "$no_cache" != 1; then
2546 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2547 fi
2548
2549 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2550 echo "$as_me:$LINENO: result: yes" >&5
2551echo "${ECHO_T}yes" >&6
1e6feb95 2552 else
e6cc62c6
VS
2553 echo "$as_me:$LINENO: result: no" >&5
2554echo "${ECHO_T}no" >&6
1e6feb95 2555 fi
e6cc62c6
VS
2556
2557
10f2d63a
VZ
2558# Check whether --with-gtk or --without-gtk was given.
2559if test "${with_gtk+set}" = set; then
2560 withval="$with_gtk"
2561 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2562fi;
10f2d63a
VZ
2563
2564# Check whether --with-motif or --without-motif was given.
2565if test "${with_motif+set}" = set; then
2566 withval="$with_motif"
2567 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2568fi;
10f2d63a 2569
b4085ce6
GD
2570# Check whether --with-mac or --without-mac was given.
2571if test "${with_mac+set}" = set; then
2572 withval="$with_mac"
2573 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2574fi;
b4085ce6 2575
ac0c4cc3
DE
2576# Check whether --with-cocoa or --without-cocoa was given.
2577if test "${with_cocoa+set}" = set; then
2578 withval="$with_cocoa"
2579 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2580fi;
ac0c4cc3 2581
10f2d63a
VZ
2582# Check whether --with-wine or --without-wine was given.
2583if test "${with_wine+set}" = set; then
2584 withval="$with_wine"
89e6bf6d 2585 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2586fi;
10f2d63a 2587
77e13408
RL
2588# Check whether --with-msw or --without-msw was given.
2589if test "${with_msw+set}" = set; then
2590 withval="$with_msw"
b4efce5e 2591 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2592fi;
10f2d63a 2593
e07802fc
VZ
2594# Check whether --with-pm or --without-pm was given.
2595if test "${with_pm+set}" = set; then
2596 withval="$with_pm"
2597 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2598fi;
698dcdb6 2599
1e6feb95
VZ
2600# Check whether --with-mgl or --without-mgl was given.
2601if test "${with_mgl+set}" = set; then
2602 withval="$with_mgl"
6c657b52 2603 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2604fi;
1e6feb95 2605
1725144d
RR
2606# Check whether --with-microwin or --without-microwin was given.
2607if test "${with_microwin+set}" = set; then
2608 withval="$with_microwin"
2609 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2610fi;
1725144d 2611
f79bd02d
JS
2612# Check whether --with-x11 or --without-x11 was given.
2613if test "${with_x11+set}" = set; then
2614 withval="$with_x11"
3c011993 2615 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2616fi;
a0b9e27f 2617
5005acfe 2618 enablestring=
e6cc62c6
VS
2619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2620echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2621 no_cache=0
ba875e66
VZ
2622 # Check whether --enable-nanox or --disable-nanox was given.
2623if test "${enable_nanox+set}" = set; then
2624 enableval="$enable_nanox"
e6cc62c6 2625
d8356fa3 2626 if test "$enableval" = yes; then
ba875e66 2627 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2628 else
ba875e66 2629 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2630 fi
e6cc62c6 2631
d8356fa3 2632else
e6cc62c6 2633
d8356fa3
VZ
2634 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2635 if test "x$LINE" != x ; then
2636 eval "DEFAULT_$LINE"
2637 else
2638 no_cache=1
2639 fi
2640
ba875e66 2641 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2642
e6cc62c6 2643fi;
d8356fa3 2644
ba875e66 2645 eval "$ac_cv_use_nanox"
d8356fa3 2646 if test "$no_cache" != 1; then
ba875e66 2647 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2648 fi
2649
2650 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2651 echo "$as_me:$LINENO: result: yes" >&5
2652echo "${ECHO_T}yes" >&6
d8356fa3 2653 else
e6cc62c6
VS
2654 echo "$as_me:$LINENO: result: no" >&5
2655echo "${ECHO_T}no" >&6
d8356fa3 2656 fi
e6cc62c6 2657
8284b0c5 2658
d74f4b5a 2659
5005acfe 2660 enablestring=
e6cc62c6
VS
2661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2662echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2663 no_cache=0
2664 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2665if test "${enable_gtk2+set}" = set; then
2666 enableval="$enable_gtk2"
e6cc62c6 2667
d74f4b5a
VZ
2668 if test "$enableval" = yes; then
2669 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2670 else
2671 ac_cv_use_gtk2='wxUSE_GTK2=no'
2672 fi
e6cc62c6 2673
10f2d63a 2674else
e6cc62c6 2675
d74f4b5a
VZ
2676 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2677 if test "x$LINE" != x ; then
2678 eval "DEFAULT_$LINE"
2679 else
2680 no_cache=1
2681 fi
2682
2683 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2684
e6cc62c6 2685fi;
328a083c 2686
d74f4b5a
VZ
2687 eval "$ac_cv_use_gtk2"
2688 if test "$no_cache" != 1; then
2689 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2690 fi
2691
2692 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2693 echo "$as_me:$LINENO: result: yes" >&5
2694echo "${ECHO_T}yes" >&6
d74f4b5a 2695 else
e6cc62c6
VS
2696 echo "$as_me:$LINENO: result: no" >&5
2697echo "${ECHO_T}no" >&6
d74f4b5a 2698 fi
d74f4b5a 2699
5c6fa7d2 2700
0f87e84c
RR
2701 enablestring=
2702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
2703echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6
2704 no_cache=0
2705 # Check whether --enable-gpe or --disable-gpe was given.
2706if test "${enable_gpe+set}" = set; then
2707 enableval="$enable_gpe"
2708
2709 if test "$enableval" = yes; then
2710 ac_cv_use_gpe='wxUSE_GPE=yes'
2711 else
2712 ac_cv_use_gpe='wxUSE_GPE=no'
2713 fi
2714
2715else
2716
2717 LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}`
2718 if test "x$LINE" != x ; then
2719 eval "DEFAULT_$LINE"
2720 else
2721 no_cache=1
2722 fi
2723
2724 ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE
2725
2726fi;
2727
2728 eval "$ac_cv_use_gpe"
2729 if test "$no_cache" != 1; then
2730 echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp
2731 fi
2732
2733 if test "$wxUSE_GPE" = yes; then
2734 echo "$as_me:$LINENO: result: yes" >&5
2735echo "${ECHO_T}yes" >&6
2736 else
2737 echo "$as_me:$LINENO: result: no" >&5
2738echo "${ECHO_T}no" >&6
2739 fi
2740
2741
e6cc62c6
VS
2742
2743 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2744echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2745 no_cache=0
e6cc62c6
VS
2746
2747# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2748if test "${with_libpng+set}" = set; then
2749 withval="$with_libpng"
e6cc62c6 2750
10f2d63a 2751 if test "$withval" = yes; then
b12915c1 2752 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2753 elif test "$withval" = no; then
b12915c1 2754 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2755 elif test "$withval" = sys; then
2756 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2757 elif test "$withval" = builtin; then
2758 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2759 else
e6cc62c6
VS
2760 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2761echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2762 { (exit 1); exit 1; }; }
10f2d63a 2763 fi
e6cc62c6 2764
10f2d63a 2765else
e6cc62c6 2766
b12915c1 2767 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2768 if test "x$LINE" != x ; then
2769 eval "DEFAULT_$LINE"
2770 else
2771 no_cache=1
2772 fi
2773
b12915c1 2774 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2775
e6cc62c6 2776fi;
10f2d63a 2777
b12915c1 2778 eval "$ac_cv_use_libpng"
10f2d63a 2779 if test "$no_cache" != 1; then
b12915c1 2780 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2781 fi
2782
b12915c1 2783 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2784 echo "$as_me:$LINENO: result: yes" >&5
2785echo "${ECHO_T}yes" >&6
422107f9 2786 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2787 echo "$as_me:$LINENO: result: no" >&5
2788echo "${ECHO_T}no" >&6
422107f9 2789 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2790 echo "$as_me:$LINENO: result: system version" >&5
2791echo "${ECHO_T}system version" >&6
4f14bcd8 2792 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2793 echo "$as_me:$LINENO: result: builtin version" >&5
2794echo "${ECHO_T}builtin version" >&6
422107f9 2795 else
e6cc62c6
VS
2796 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2797echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2798 { (exit 1); exit 1; }; }
10f2d63a 2799 fi
10f2d63a 2800
e6cc62c6
VS
2801
2802 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2803echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2804 no_cache=0
e6cc62c6
VS
2805
2806# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2807if test "${with_libjpeg+set}" = set; then
2808 withval="$with_libjpeg"
e6cc62c6 2809
10f2d63a 2810 if test "$withval" = yes; then
b12915c1 2811 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2812 elif test "$withval" = no; then
b12915c1 2813 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2814 elif test "$withval" = sys; then
2815 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2816 elif test "$withval" = builtin; then
2817 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2818 else
e6cc62c6
VS
2819 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2820echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2821 { (exit 1); exit 1; }; }
10f2d63a 2822 fi
e6cc62c6 2823
10f2d63a 2824else
e6cc62c6 2825
b12915c1 2826 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2827 if test "x$LINE" != x ; then
2828 eval "DEFAULT_$LINE"
2829 else
2830 no_cache=1
2831 fi
2832
b12915c1 2833 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2834
e6cc62c6 2835fi;
10f2d63a 2836
b12915c1 2837 eval "$ac_cv_use_libjpeg"
10f2d63a 2838 if test "$no_cache" != 1; then
b12915c1 2839 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2840 fi
2841
b12915c1 2842 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2843 echo "$as_me:$LINENO: result: yes" >&5
2844echo "${ECHO_T}yes" >&6
422107f9 2845 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2846 echo "$as_me:$LINENO: result: no" >&5
2847echo "${ECHO_T}no" >&6
422107f9 2848 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2849 echo "$as_me:$LINENO: result: system version" >&5
2850echo "${ECHO_T}system version" >&6
4f14bcd8 2851 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2852 echo "$as_me:$LINENO: result: builtin version" >&5
2853echo "${ECHO_T}builtin version" >&6
422107f9 2854 else
e6cc62c6
VS
2855 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2856echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2857 { (exit 1); exit 1; }; }
10f2d63a 2858 fi
10f2d63a 2859
e6cc62c6
VS
2860
2861 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2862echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2863 no_cache=0
e6cc62c6
VS
2864
2865# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2866if test "${with_libtiff+set}" = set; then
2867 withval="$with_libtiff"
e6cc62c6 2868
10f2d63a 2869 if test "$withval" = yes; then
b12915c1 2870 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2871 elif test "$withval" = no; then
b12915c1 2872 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2873 elif test "$withval" = sys; then
2874 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2875 elif test "$withval" = builtin; then
2876 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2877 else
e6cc62c6
VS
2878 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2879echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2880 { (exit 1); exit 1; }; }
10f2d63a 2881 fi
e6cc62c6 2882
10f2d63a 2883else
e6cc62c6 2884
b12915c1 2885 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2886 if test "x$LINE" != x ; then
2887 eval "DEFAULT_$LINE"
2888 else
2889 no_cache=1
2890 fi
2891
b12915c1 2892 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2893
e6cc62c6 2894fi;
10f2d63a 2895
b12915c1 2896 eval "$ac_cv_use_libtiff"
10f2d63a 2897 if test "$no_cache" != 1; then
b12915c1 2898 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2899 fi
2900
b12915c1 2901 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2902 echo "$as_me:$LINENO: result: yes" >&5
2903echo "${ECHO_T}yes" >&6
0dcf9893 2904 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2905 echo "$as_me:$LINENO: result: no" >&5
2906echo "${ECHO_T}no" >&6
0dcf9893 2907 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2908 echo "$as_me:$LINENO: result: system version" >&5
2909echo "${ECHO_T}system version" >&6
4f14bcd8 2910 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2911 echo "$as_me:$LINENO: result: builtin version" >&5
2912echo "${ECHO_T}builtin version" >&6
0dcf9893 2913 else
e6cc62c6
VS
2914 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2915echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2916 { (exit 1); exit 1; }; }
10f2d63a 2917 fi
10f2d63a 2918
e6cc62c6 2919
89fe663f
VZ
2920 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2921echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2922 no_cache=0
2923
2924# Check whether --with-libxpm or --without-libxpm was given.
2925if test "${with_libxpm+set}" = set; then
2926 withval="$with_libxpm"
2927
2928 if test "$withval" = yes; then
2929 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2930 elif test "$withval" = no; then
2931 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2932 elif test "$withval" = sys; then
2933 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2934 elif test "$withval" = builtin; then
2935 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2936 else
2937 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2938echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2939 { (exit 1); exit 1; }; }
2940 fi
2941
2942else
2943
2944 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2945 if test "x$LINE" != x ; then
2946 eval "DEFAULT_$LINE"
2947 else
2948 no_cache=1
2949 fi
2950
2951 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2952
2953fi;
2954
2955 eval "$ac_cv_use_libxpm"
2956 if test "$no_cache" != 1; then
2957 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2958 fi
2959
2960 if test "$wxUSE_LIBXPM" = yes; then
2961 echo "$as_me:$LINENO: result: yes" >&5
2962echo "${ECHO_T}yes" >&6
2963 elif test "$wxUSE_LIBXPM" = no; then
2964 echo "$as_me:$LINENO: result: no" >&5
2965echo "${ECHO_T}no" >&6
2966 elif test "$wxUSE_LIBXPM" = sys; then
2967 echo "$as_me:$LINENO: result: system version" >&5
2968echo "${ECHO_T}system version" >&6
2969 elif test "$wxUSE_LIBXPM" = builtin; then
2970 echo "$as_me:$LINENO: result: builtin version" >&5
2971echo "${ECHO_T}builtin version" >&6
2972 else
2973 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2974echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2975 { (exit 1); exit 1; }; }
2976 fi
2977
2978
3527f29c
VS
2979 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2980echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2981 no_cache=0
2982
2983# Check whether --with-libmspack or --without-libmspack was given.
2984if test "${with_libmspack+set}" = set; then
2985 withval="$with_libmspack"
2986
2987 if test "$withval" = yes; then
2988 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2989 else
2990 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2991 fi
2992
2993else
2994
2995 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2996 if test "x$LINE" != x ; then
2997 eval "DEFAULT_$LINE"
2998 else
2999 no_cache=1
3000 fi
3001
3002 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
3003
3004fi;
3005
3006 eval "$ac_cv_use_libmspack"
3007 if test "$no_cache" != 1; then
3008 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
3009 fi
3010
3011 if test "$wxUSE_LIBMSPACK" = yes; then
3012 echo "$as_me:$LINENO: result: yes" >&5
3013echo "${ECHO_T}yes" >&6
3014 else
3015 echo "$as_me:$LINENO: result: no" >&5
3016echo "${ECHO_T}no" >&6
3017 fi
3018
3019
f93ca9fd
VS
3020 echo "$as_me:$LINENO: checking for --with-sdl" >&5
3021echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
3022 no_cache=0
3023
3024# Check whether --with-sdl or --without-sdl was given.
3025if test "${with_sdl+set}" = set; then
3026 withval="$with_sdl"
3027
3028 if test "$withval" = yes; then
3029 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
3030 else
3031 ac_cv_use_sdl='wxUSE_LIBSDL=no'
3032 fi
3033
3034else
3035
3036 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
3037 if test "x$LINE" != x ; then
3038 eval "DEFAULT_$LINE"
3039 else
3040 no_cache=1
3041 fi
3042
3043 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3044
3045fi;
3046
3047 eval "$ac_cv_use_sdl"
3048 if test "$no_cache" != 1; then
3049 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3050 fi
3051
3052 if test "$wxUSE_LIBSDL" = yes; then
3053 echo "$as_me:$LINENO: result: yes" >&5
3054echo "${ECHO_T}yes" >&6
3055 else
3056 echo "$as_me:$LINENO: result: no" >&5
3057echo "${ECHO_T}no" >&6
3058 fi
3059
3060
e6cc62c6
VS
3061 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3062echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 3063 no_cache=0
e6cc62c6
VS
3064
3065# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
3066if test "${with_opengl+set}" = set; then
3067 withval="$with_opengl"
e6cc62c6 3068
10f2d63a 3069 if test "$withval" = yes; then
b12915c1 3070 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 3071 else
b12915c1 3072 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 3073 fi
e6cc62c6 3074
10f2d63a 3075else
e6cc62c6 3076
b12915c1 3077 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
3078 if test "x$LINE" != x ; then
3079 eval "DEFAULT_$LINE"
3080 else
3081 no_cache=1
3082 fi
3083
b12915c1 3084 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 3085
e6cc62c6 3086fi;
10f2d63a 3087
b12915c1 3088 eval "$ac_cv_use_opengl"
10f2d63a 3089 if test "$no_cache" != 1; then
b12915c1 3090 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3091 fi
3092
b12915c1 3093 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
3094 echo "$as_me:$LINENO: result: yes" >&5
3095echo "${ECHO_T}yes" >&6
10f2d63a 3096 else
e6cc62c6
VS
3097 echo "$as_me:$LINENO: result: no" >&5
3098echo "${ECHO_T}no" >&6
10f2d63a 3099 fi
e6cc62c6 3100
10f2d63a 3101
b12915c1
VZ
3102fi
3103
5c6fa7d2 3104
e6cc62c6
VS
3105 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3106echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 3107 no_cache=0
e6cc62c6
VS
3108
3109# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
3110if test "${with_dmalloc+set}" = set; then
3111 withval="$with_dmalloc"
e6cc62c6 3112
c7a2bf27 3113 if test "$withval" = yes; then
b12915c1 3114 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 3115 else
b12915c1 3116 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 3117 fi
e6cc62c6 3118
c7a2bf27 3119else
e6cc62c6 3120
b12915c1 3121 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
3122 if test "x$LINE" != x ; then
3123 eval "DEFAULT_$LINE"
3124 else
3125 no_cache=1
3126 fi
3127
b12915c1 3128 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 3129
e6cc62c6 3130fi;
c7a2bf27 3131
b12915c1 3132 eval "$ac_cv_use_dmalloc"
c7a2bf27 3133 if test "$no_cache" != 1; then
b12915c1 3134 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
3135 fi
3136
b12915c1 3137 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
3138 echo "$as_me:$LINENO: result: yes" >&5
3139echo "${ECHO_T}yes" >&6
c7a2bf27 3140 else
e6cc62c6
VS
3141 echo "$as_me:$LINENO: result: no" >&5
3142echo "${ECHO_T}no" >&6
c7a2bf27 3143 fi
c7a2bf27 3144
e6cc62c6
VS
3145
3146 echo "$as_me:$LINENO: checking for --with-regex" >&5
3147echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 3148 no_cache=0
e6cc62c6
VS
3149
3150# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
3151if test "${with_regex+set}" = set; then
3152 withval="$with_regex"
e6cc62c6 3153
3e44f09d
VZ
3154 if test "$withval" = yes; then
3155 ac_cv_use_regex='wxUSE_REGEX=yes'
3156 elif test "$withval" = no; then
3157 ac_cv_use_regex='wxUSE_REGEX=no'
3158 elif test "$withval" = sys; then
3159 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
3160 elif test "$withval" = builtin; then
3161 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 3162 else
e6cc62c6
VS
3163 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3164echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3165 { (exit 1); exit 1; }; }
3e44f09d 3166 fi
e6cc62c6 3167
3e44f09d 3168else
e6cc62c6 3169
3e44f09d
VZ
3170 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3171 if test "x$LINE" != x ; then
3172 eval "DEFAULT_$LINE"
3173 else
3174 no_cache=1
3175 fi
3176
3177 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 3178
e6cc62c6 3179fi;
3e44f09d
VZ
3180
3181 eval "$ac_cv_use_regex"
3182 if test "$no_cache" != 1; then
3183 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3184 fi
3185
3186 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
3187 echo "$as_me:$LINENO: result: yes" >&5
3188echo "${ECHO_T}yes" >&6
3e44f09d 3189 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
3190 echo "$as_me:$LINENO: result: no" >&5
3191echo "${ECHO_T}no" >&6
3e44f09d 3192 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
3193 echo "$as_me:$LINENO: result: system version" >&5
3194echo "${ECHO_T}system version" >&6
4f14bcd8 3195 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
3196 echo "$as_me:$LINENO: result: builtin version" >&5
3197echo "${ECHO_T}builtin version" >&6
3e44f09d 3198 else
e6cc62c6
VS
3199 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3200echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3201 { (exit 1); exit 1; }; }
3e44f09d 3202 fi
3e44f09d 3203
e6cc62c6
VS
3204
3205 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3206echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 3207 no_cache=0
e6cc62c6
VS
3208
3209# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
3210if test "${with_zlib+set}" = set; then
3211 withval="$with_zlib"
e6cc62c6 3212
10f2d63a 3213 if test "$withval" = yes; then
b12915c1 3214 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 3215 elif test "$withval" = no; then
b12915c1 3216 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
3217 elif test "$withval" = sys; then
3218 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
3219 elif test "$withval" = builtin; then
3220 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 3221 else
e6cc62c6
VS
3222 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3223echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3224 { (exit 1); exit 1; }; }
10f2d63a 3225 fi
e6cc62c6 3226
10f2d63a 3227else
e6cc62c6 3228
b12915c1 3229 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3230 if test "x$LINE" != x ; then
3231 eval "DEFAULT_$LINE"
3232 else
3233 no_cache=1
3234 fi
3235
b12915c1 3236 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3237
e6cc62c6 3238fi;
10f2d63a 3239
b12915c1 3240 eval "$ac_cv_use_zlib"
10f2d63a 3241 if test "$no_cache" != 1; then
b12915c1 3242 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3243 fi
3244
b12915c1 3245 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3246 echo "$as_me:$LINENO: result: yes" >&5
3247echo "${ECHO_T}yes" >&6
422107f9 3248 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3249 echo "$as_me:$LINENO: result: no" >&5
3250echo "${ECHO_T}no" >&6
422107f9 3251 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3252 echo "$as_me:$LINENO: result: system version" >&5
3253echo "${ECHO_T}system version" >&6
4f14bcd8 3254 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3255 echo "$as_me:$LINENO: result: builtin version" >&5
3256echo "${ECHO_T}builtin version" >&6
422107f9 3257 else
e6cc62c6
VS
3258 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3259echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3260 { (exit 1); exit 1; }; }
10f2d63a 3261 fi
10f2d63a 3262
e6cc62c6
VS
3263
3264 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3265echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3266 no_cache=0
e6cc62c6
VS
3267
3268# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3269if test "${with_odbc+set}" = set; then
3270 withval="$with_odbc"
e6cc62c6 3271
10f2d63a
VZ
3272 if test "$withval" = yes; then
3273 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3274 elif test "$withval" = no; then
10f2d63a 3275 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3276 elif test "$withval" = sys; then
3277 ac_cv_use_odbc='wxUSE_ODBC=sys'
3278 elif test "$withval" = builtin; then
3279 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3280 else
e6cc62c6
VS
3281 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3282echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3283 { (exit 1); exit 1; }; }
10f2d63a 3284 fi
e6cc62c6 3285
10f2d63a 3286else
e6cc62c6 3287
10f2d63a
VZ
3288 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3289 if test "x$LINE" != x ; then
3290 eval "DEFAULT_$LINE"
3291 else
3292 no_cache=1
3293 fi
3294
3295 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3296
e6cc62c6 3297fi;
10f2d63a
VZ
3298
3299 eval "$ac_cv_use_odbc"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3305 echo "$as_me:$LINENO: result: yes" >&5
3306echo "${ECHO_T}yes" >&6
8647bec6 3307 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3308 echo "$as_me:$LINENO: result: no" >&5
3309echo "${ECHO_T}no" >&6
8647bec6 3310 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3311 echo "$as_me:$LINENO: result: system version" >&5
3312echo "${ECHO_T}system version" >&6
8647bec6 3313 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3314 echo "$as_me:$LINENO: result: builtin version" >&5
3315echo "${ECHO_T}builtin version" >&6
8647bec6 3316 else
e6cc62c6
VS
3317 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3318echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3319 { (exit 1); exit 1; }; }
10f2d63a 3320 fi
e6cc62c6 3321
52127426 3322
672abd7a
VS
3323 echo "$as_me:$LINENO: checking for --with-expat" >&5
3324echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3325 no_cache=0
3326
3327# Check whether --with-expat or --without-expat was given.
3328if test "${with_expat+set}" = set; then
3329 withval="$with_expat"
3330
3331 if test "$withval" = yes; then
3332 ac_cv_use_expat='wxUSE_EXPAT=yes'
3333 elif test "$withval" = no; then
3334 ac_cv_use_expat='wxUSE_EXPAT=no'
3335 elif test "$withval" = sys; then
3336 ac_cv_use_expat='wxUSE_EXPAT=sys'
3337 elif test "$withval" = builtin; then
3338 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3339 else
3340 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3341echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3342 { (exit 1); exit 1; }; }
3343 fi
3344
3345else
3346
3347 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3348 if test "x$LINE" != x ; then
3349 eval "DEFAULT_$LINE"
3350 else
3351 no_cache=1
3352 fi
3353
3354 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3355
3356fi;
3357
3358 eval "$ac_cv_use_expat"
3359 if test "$no_cache" != 1; then
3360 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3361 fi
3362
3363 if test "$wxUSE_EXPAT" = yes; then
3364 echo "$as_me:$LINENO: result: yes" >&5
3365echo "${ECHO_T}yes" >&6
3366 elif test "$wxUSE_EXPAT" = no; then
3367 echo "$as_me:$LINENO: result: no" >&5
3368echo "${ECHO_T}no" >&6
3369 elif test "$wxUSE_EXPAT" = sys; then
3370 echo "$as_me:$LINENO: result: system version" >&5
3371echo "${ECHO_T}system version" >&6
3372 elif test "$wxUSE_EXPAT" = builtin; then
3373 echo "$as_me:$LINENO: result: builtin version" >&5
3374echo "${ECHO_T}builtin version" >&6
3375 else
3376 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3377echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3378 { (exit 1); exit 1; }; }
3379 fi
3380
3381
8284b0c5
MB
3382
3383
5005acfe 3384 enablestring=
e6cc62c6
VS
3385 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3386echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3387 no_cache=0
3388 # Check whether --enable-shared or --disable-shared was given.
3389if test "${enable_shared+set}" = set; then
3390 enableval="$enable_shared"
e6cc62c6 3391
10f2d63a
VZ
3392 if test "$enableval" = yes; then
3393 ac_cv_use_shared='wxUSE_SHARED=yes'
3394 else
3395 ac_cv_use_shared='wxUSE_SHARED=no'
3396 fi
e6cc62c6 3397
10f2d63a 3398else
e6cc62c6 3399
10f2d63a
VZ
3400 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3401 if test "x$LINE" != x ; then
3402 eval "DEFAULT_$LINE"
3403 else
3404 no_cache=1
3405 fi
3406
3407 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3408
e6cc62c6 3409fi;
10f2d63a
VZ
3410
3411 eval "$ac_cv_use_shared"
3412 if test "$no_cache" != 1; then
3413 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3414 fi
3415
3416 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3417 echo "$as_me:$LINENO: result: yes" >&5
3418echo "${ECHO_T}yes" >&6
10f2d63a 3419 else
e6cc62c6
VS
3420 echo "$as_me:$LINENO: result: no" >&5
3421echo "${ECHO_T}no" >&6
10f2d63a 3422 fi
e6cc62c6 3423
10f2d63a 3424
5005acfe 3425 enablestring=
e6cc62c6
VS
3426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3427echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3428 no_cache=0
3429 # Check whether --enable-optimise or --disable-optimise was given.
3430if test "${enable_optimise+set}" = set; then
3431 enableval="$enable_optimise"
e6cc62c6 3432
10f2d63a
VZ
3433 if test "$enableval" = yes; then
3434 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3435 else
3436 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3437 fi
e6cc62c6 3438
10f2d63a 3439else
e6cc62c6 3440
10f2d63a
VZ
3441 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3442 if test "x$LINE" != x ; then
3443 eval "DEFAULT_$LINE"
3444 else
3445 no_cache=1
3446 fi
3447
3448 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3449
e6cc62c6 3450fi;
10f2d63a
VZ
3451
3452 eval "$ac_cv_use_optimise"
3453 if test "$no_cache" != 1; then
3454 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3455 fi
3456
3457 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3458 echo "$as_me:$LINENO: result: yes" >&5
3459echo "${ECHO_T}yes" >&6
10f2d63a 3460 else
e6cc62c6
VS
3461 echo "$as_me:$LINENO: result: no" >&5
3462echo "${ECHO_T}no" >&6
10f2d63a 3463 fi
e6cc62c6 3464
10f2d63a 3465
5005acfe 3466 enablestring=
e6cc62c6
VS
3467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3468echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3469 no_cache=0
3470 # Check whether --enable-debug or --disable-debug was given.
3471if test "${enable_debug+set}" = set; then
3472 enableval="$enable_debug"
e6cc62c6 3473
10f2d63a
VZ
3474 if test "$enableval" = yes; then
3475 ac_cv_use_debug='wxUSE_DEBUG=yes'
3476 else
3477 ac_cv_use_debug='wxUSE_DEBUG=no'
3478 fi
e6cc62c6 3479
10f2d63a 3480else
e6cc62c6 3481
10f2d63a
VZ
3482 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3483 if test "x$LINE" != x ; then
3484 eval "DEFAULT_$LINE"
3485 else
3486 no_cache=1
3487 fi
3488
3489 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3490
e6cc62c6 3491fi;
10f2d63a
VZ
3492
3493 eval "$ac_cv_use_debug"
3494 if test "$no_cache" != 1; then
3495 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3496 fi
3497
3498 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3499 echo "$as_me:$LINENO: result: yes" >&5
3500echo "${ECHO_T}yes" >&6
10f2d63a 3501 else
e6cc62c6
VS
3502 echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
10f2d63a 3504 fi
e6cc62c6 3505
52127426 3506
df5168c4
MB
3507 enablestring=
3508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3509echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3510 no_cache=0
3511 # Check whether --enable-stl or --disable-stl was given.
3512if test "${enable_stl+set}" = set; then
3513 enableval="$enable_stl"
3514
3515 if test "$enableval" = yes; then
3516 ac_cv_use_stl='wxUSE_STL=yes'
3517 else
3518 ac_cv_use_stl='wxUSE_STL=no'
3519 fi
3520
3521else
3522
3523 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3531
3532fi;
3533
3534 eval "$ac_cv_use_stl"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_STL" = yes; then
3540 echo "$as_me:$LINENO: result: yes" >&5
3541echo "${ECHO_T}yes" >&6
3542 else
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
3545 fi
3546
3547
10f2d63a
VZ
3548if test "$wxUSE_DEBUG" = "yes"; then
3549 DEFAULT_wxUSE_DEBUG_FLAG=yes
3550 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3551 BUILD=debug
10f2d63a
VZ
3552elif test "$wxUSE_DEBUG" = "no"; then
3553 DEFAULT_wxUSE_DEBUG_FLAG=no
3554 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3555 BUILD=release
10f2d63a
VZ
3556fi
3557
8284b0c5 3558
5005acfe 3559 enablestring=
e6cc62c6
VS
3560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3561echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3562 no_cache=0
3563 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3564if test "${enable_debug_flag+set}" = set; then
3565 enableval="$enable_debug_flag"
e6cc62c6 3566
10f2d63a
VZ
3567 if test "$enableval" = yes; then
3568 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3569 else
3570 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3571 fi
e6cc62c6 3572
10f2d63a 3573else
e6cc62c6 3574
10f2d63a
VZ
3575 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3576 if test "x$LINE" != x ; then
3577 eval "DEFAULT_$LINE"
3578 else
3579 no_cache=1
3580 fi
3581
3582 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3583
e6cc62c6 3584fi;
10f2d63a
VZ
3585
3586 eval "$ac_cv_use_debug_flag"
3587 if test "$no_cache" != 1; then
3588 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3589 fi
3590
3591 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3592 echo "$as_me:$LINENO: result: yes" >&5
3593echo "${ECHO_T}yes" >&6
10f2d63a 3594 else
e6cc62c6
VS
3595 echo "$as_me:$LINENO: result: no" >&5
3596echo "${ECHO_T}no" >&6
10f2d63a 3597 fi
e6cc62c6 3598
10f2d63a 3599
5005acfe 3600 enablestring=
e6cc62c6
VS
3601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3602echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3603 no_cache=0
3604 # Check whether --enable-debug_info or --disable-debug_info was given.
3605if test "${enable_debug_info+set}" = set; then
3606 enableval="$enable_debug_info"
e6cc62c6 3607
10f2d63a
VZ
3608 if test "$enableval" = yes; then
3609 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3610 else
3611 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3612 fi
e6cc62c6 3613
10f2d63a 3614else
e6cc62c6 3615
10f2d63a
VZ
3616 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3617 if test "x$LINE" != x ; then
3618 eval "DEFAULT_$LINE"
3619 else
3620 no_cache=1
3621 fi
3622
3623 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3624
e6cc62c6 3625fi;
10f2d63a
VZ
3626
3627 eval "$ac_cv_use_debug_info"
3628 if test "$no_cache" != 1; then
3629 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3630 fi
3631
3632 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3633 echo "$as_me:$LINENO: result: yes" >&5
3634echo "${ECHO_T}yes" >&6
10f2d63a 3635 else
e6cc62c6
VS
3636 echo "$as_me:$LINENO: result: no" >&5
3637echo "${ECHO_T}no" >&6
10f2d63a 3638 fi
e6cc62c6 3639
10f2d63a 3640
5005acfe 3641 enablestring=
e6cc62c6
VS
3642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3643echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3644 no_cache=0
3645 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3646if test "${enable_debug_gdb+set}" = set; then
3647 enableval="$enable_debug_gdb"
e6cc62c6 3648
10f2d63a
VZ
3649 if test "$enableval" = yes; then
3650 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3651 else
3652 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3653 fi
e6cc62c6 3654
10f2d63a 3655else
e6cc62c6 3656
10f2d63a
VZ
3657 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3658 if test "x$LINE" != x ; then
3659 eval "DEFAULT_$LINE"
3660 else
3661 no_cache=1
3662 fi
3663
3664 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3665
e6cc62c6 3666fi;
10f2d63a
VZ
3667
3668 eval "$ac_cv_use_debug_gdb"
3669 if test "$no_cache" != 1; then
3670 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3671 fi
3672
3673 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3674 echo "$as_me:$LINENO: result: yes" >&5
3675echo "${ECHO_T}yes" >&6
10f2d63a 3676 else
e6cc62c6
VS
3677 echo "$as_me:$LINENO: result: no" >&5
3678echo "${ECHO_T}no" >&6
10f2d63a 3679 fi
e6cc62c6 3680
10f2d63a 3681
5005acfe 3682 enablestring=
e6cc62c6
VS
3683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3684echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3685 no_cache=0
3686 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3687if test "${enable_debug_cntxt+set}" = set; then
3688 enableval="$enable_debug_cntxt"
e6cc62c6 3689
10f2d63a
VZ
3690 if test "$enableval" = yes; then
3691 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3692 else
3693 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3694 fi
e6cc62c6 3695
10f2d63a 3696else
e6cc62c6 3697
10f2d63a
VZ
3698 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3699 if test "x$LINE" != x ; then
3700 eval "DEFAULT_$LINE"
3701 else
3702 no_cache=1
3703 fi
3704
3705 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3706
e6cc62c6 3707fi;
10f2d63a
VZ
3708
3709 eval "$ac_cv_use_debug_cntxt"
3710 if test "$no_cache" != 1; then
3711 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3712 fi
3713
3714 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3715 echo "$as_me:$LINENO: result: yes" >&5
3716echo "${ECHO_T}yes" >&6
10f2d63a 3717 else
e6cc62c6
VS
3718 echo "$as_me:$LINENO: result: no" >&5
3719echo "${ECHO_T}no" >&6
10f2d63a 3720 fi
e6cc62c6 3721
10f2d63a 3722
5005acfe 3723 enablestring=
e6cc62c6
VS
3724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3725echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3726 no_cache=0
3727 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3728if test "${enable_mem_tracing+set}" = set; then
3729 enableval="$enable_mem_tracing"
e6cc62c6 3730
10f2d63a
VZ
3731 if test "$enableval" = yes; then
3732 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3733 else
3734 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3735 fi
e6cc62c6 3736
10f2d63a 3737else
e6cc62c6 3738
10f2d63a
VZ
3739 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3740 if test "x$LINE" != x ; then
3741 eval "DEFAULT_$LINE"
3742 else
3743 no_cache=1
3744 fi
3745
3746 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3747
e6cc62c6 3748fi;
10f2d63a
VZ
3749
3750 eval "$ac_cv_use_mem_tracing"
3751 if test "$no_cache" != 1; then
3752 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3753 fi
3754
3755 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3756 echo "$as_me:$LINENO: result: yes" >&5
3757echo "${ECHO_T}yes" >&6
10f2d63a 3758 else
e6cc62c6
VS
3759 echo "$as_me:$LINENO: result: no" >&5
3760echo "${ECHO_T}no" >&6
10f2d63a 3761 fi
e6cc62c6 3762
10f2d63a 3763
5005acfe 3764 enablestring=
e6cc62c6
VS
3765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3766echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3767 no_cache=0
3768 # Check whether --enable-profile or --disable-profile was given.
3769if test "${enable_profile+set}" = set; then
3770 enableval="$enable_profile"
e6cc62c6 3771
10f2d63a
VZ
3772 if test "$enableval" = yes; then
3773 ac_cv_use_profile='wxUSE_PROFILE=yes'
3774 else
3775 ac_cv_use_profile='wxUSE_PROFILE=no'
3776 fi
e6cc62c6 3777
10f2d63a 3778else
e6cc62c6 3779
10f2d63a
VZ
3780 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3781 if test "x$LINE" != x ; then
3782 eval "DEFAULT_$LINE"
3783 else
3784 no_cache=1
3785 fi
3786
3787 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3788
e6cc62c6 3789fi;
10f2d63a
VZ
3790
3791 eval "$ac_cv_use_profile"
3792 if test "$no_cache" != 1; then
3793 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3794 fi
3795
3796 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3797 echo "$as_me:$LINENO: result: yes" >&5
3798echo "${ECHO_T}yes" >&6
10f2d63a 3799 else
e6cc62c6
VS
3800 echo "$as_me:$LINENO: result: no" >&5
3801echo "${ECHO_T}no" >&6
10f2d63a 3802 fi
e6cc62c6 3803
10f2d63a 3804
5005acfe 3805 enablestring=
e6cc62c6
VS
3806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3807echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3808 no_cache=0
3809 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3810if test "${enable_no_rtti+set}" = set; then
3811 enableval="$enable_no_rtti"
e6cc62c6 3812
10f2d63a
VZ
3813 if test "$enableval" = yes; then
3814 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3815 else
3816 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3817 fi
e6cc62c6 3818
10f2d63a 3819else
e6cc62c6 3820
10f2d63a
VZ
3821 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3822 if test "x$LINE" != x ; then
3823 eval "DEFAULT_$LINE"
3824 else
3825 no_cache=1
3826 fi
3827
3828 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3829
e6cc62c6 3830fi;
10f2d63a
VZ
3831
3832 eval "$ac_cv_use_no_rtti"
3833 if test "$no_cache" != 1; then
3834 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3835 fi
3836
3837 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3838 echo "$as_me:$LINENO: result: yes" >&5
3839echo "${ECHO_T}yes" >&6
10f2d63a 3840 else
e6cc62c6
VS
3841 echo "$as_me:$LINENO: result: no" >&5
3842echo "${ECHO_T}no" >&6
10f2d63a 3843 fi
e6cc62c6 3844
10f2d63a 3845
5005acfe 3846 enablestring=
e6cc62c6
VS
3847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3848echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3849 no_cache=0
3850 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3851if test "${enable_no_exceptions+set}" = set; then
3852 enableval="$enable_no_exceptions"
e6cc62c6 3853
10f2d63a
VZ
3854 if test "$enableval" = yes; then
3855 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3856 else
3857 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3858 fi
e6cc62c6 3859
10f2d63a 3860else
e6cc62c6 3861
10f2d63a
VZ
3862 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3863 if test "x$LINE" != x ; then
3864 eval "DEFAULT_$LINE"
3865 else
3866 no_cache=1
3867 fi
3868
3869 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3870
e6cc62c6 3871fi;
10f2d63a
VZ
3872
3873 eval "$ac_cv_use_no_exceptions"
3874 if test "$no_cache" != 1; then
3875 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3876 fi
3877
3878 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3879 echo "$as_me:$LINENO: result: yes" >&5
3880echo "${ECHO_T}yes" >&6
10f2d63a 3881 else
e6cc62c6
VS
3882 echo "$as_me:$LINENO: result: no" >&5
3883echo "${ECHO_T}no" >&6
10f2d63a 3884 fi
e6cc62c6 3885
10f2d63a 3886
5005acfe 3887 enablestring=
e6cc62c6
VS
3888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3889echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3890 no_cache=0
3891 # Check whether --enable-permissive or --disable-permissive was given.
3892if test "${enable_permissive+set}" = set; then
3893 enableval="$enable_permissive"
e6cc62c6 3894
10f2d63a
VZ
3895 if test "$enableval" = yes; then
3896 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3897 else
3898 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3899 fi
e6cc62c6 3900
10f2d63a 3901else
e6cc62c6 3902
10f2d63a
VZ
3903 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3904 if test "x$LINE" != x ; then
3905 eval "DEFAULT_$LINE"
3906 else
3907 no_cache=1
3908 fi
3909
3910 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3911
e6cc62c6 3912fi;
10f2d63a
VZ
3913
3914 eval "$ac_cv_use_permissive"
3915 if test "$no_cache" != 1; then
3916 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3917 fi
3918
3919 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3920 echo "$as_me:$LINENO: result: yes" >&5
3921echo "${ECHO_T}yes" >&6
10f2d63a 3922 else
e6cc62c6
VS
3923 echo "$as_me:$LINENO: result: no" >&5
3924echo "${ECHO_T}no" >&6
10f2d63a 3925 fi
e6cc62c6 3926
10f2d63a 3927
5005acfe 3928 enablestring=
e6cc62c6
VS
3929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3930echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3931 no_cache=0
3932 # Check whether --enable-no_deps or --disable-no_deps was given.
3933if test "${enable_no_deps+set}" = set; then
3934 enableval="$enable_no_deps"
e6cc62c6 3935
10f2d63a
VZ
3936 if test "$enableval" = yes; then
3937 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3938 else
3939 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3940 fi
e6cc62c6 3941
10f2d63a 3942else
e6cc62c6 3943
10f2d63a
VZ
3944 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3945 if test "x$LINE" != x ; then
3946 eval "DEFAULT_$LINE"
3947 else
3948 no_cache=1
3949 fi
3950
3951 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3952
e6cc62c6 3953fi;
10f2d63a
VZ
3954
3955 eval "$ac_cv_use_no_deps"
3956 if test "$no_cache" != 1; then
3957 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3958 fi
3959
3960 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3961 echo "$as_me:$LINENO: result: yes" >&5
3962echo "${ECHO_T}yes" >&6
10f2d63a 3963 else
e6cc62c6
VS
3964 echo "$as_me:$LINENO: result: no" >&5
3965echo "${ECHO_T}no" >&6
10f2d63a 3966 fi
e6cc62c6 3967
52127426 3968
8284b0c5 3969
65d8ef1e 3970 enablestring=
e6cc62c6
VS
3971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3972echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3973 no_cache=0
3974 # Check whether --enable-compat22 or --disable-compat22 was given.
3975if test "${enable_compat22+set}" = set; then
3976 enableval="$enable_compat22"
e6cc62c6 3977
54276ccf
VZ
3978 if test "$enableval" = yes; then
3979 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3980 else
3981 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3982 fi
e6cc62c6 3983
54276ccf 3984else
e6cc62c6 3985
54276ccf
VZ
3986 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3987 if test "x$LINE" != x ; then
3988 eval "DEFAULT_$LINE"
3989 else
3990 no_cache=1
3991 fi
3992
3993 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3994
e6cc62c6 3995fi;
54276ccf
VZ
3996
3997 eval "$ac_cv_use_compat22"
3998 if test "$no_cache" != 1; then
3999 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
4000 fi
4001
4002 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
4003 echo "$as_me:$LINENO: result: yes" >&5
4004echo "${ECHO_T}yes" >&6
54276ccf 4005 else
e6cc62c6
VS
4006 echo "$as_me:$LINENO: result: no" >&5
4007echo "${ECHO_T}no" >&6
54276ccf 4008 fi
e6cc62c6 4009
54276ccf 4010
65d8ef1e 4011 enablestring=disable
e6cc62c6
VS
4012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
4013echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
4014 no_cache=0
4015 # Check whether --enable-compat24 or --disable-compat24 was given.
4016if test "${enable_compat24+set}" = set; then
4017 enableval="$enable_compat24"
e6cc62c6 4018
65d8ef1e
VS
4019 if test "$enableval" = yes; then
4020 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
4021 else
4022 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
4023 fi
e6cc62c6 4024
65d8ef1e 4025else
e6cc62c6 4026
65d8ef1e
VS
4027 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 4035
e6cc62c6 4036fi;
65d8ef1e
VS
4037
4038 eval "$ac_cv_use_compat24"
4039 if test "$no_cache" != 1; then
4040 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
4041 fi
4042
4043 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
4044 echo "$as_me:$LINENO: result: yes" >&5
4045echo "${ECHO_T}yes" >&6
65d8ef1e 4046 else
e6cc62c6
VS
4047 echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
65d8ef1e 4049 fi
e6cc62c6 4050
65d8ef1e 4051
3bd8fb5f
RD
4052# Check whether --enable-rpath or --disable-rpath was given.
4053if test "${enable_rpath+set}" = set; then
4054 enableval="$enable_rpath"
4055 wxRPATH_DIR="$enableval"
e6cc62c6 4056fi;
3bd8fb5f
RD
4057
4058if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4059 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4060fi
4061
8284b0c5
MB
4062
4063
4064
5005acfe 4065 enablestring=
e6cc62c6
VS
4066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4067echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
4068 no_cache=0
4069 # Check whether --enable-intl or --disable-intl was given.
4070if test "${enable_intl+set}" = set; then
4071 enableval="$enable_intl"
e6cc62c6 4072
10f2d63a
VZ
4073 if test "$enableval" = yes; then
4074 ac_cv_use_intl='wxUSE_INTL=yes'
4075 else
4076 ac_cv_use_intl='wxUSE_INTL=no'
4077 fi
e6cc62c6 4078
10f2d63a 4079else
e6cc62c6 4080
10f2d63a
VZ
4081 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4082 if test "x$LINE" != x ; then
4083 eval "DEFAULT_$LINE"
4084 else
4085 no_cache=1
4086 fi
4087
4088 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 4089
e6cc62c6 4090fi;
10f2d63a
VZ
4091
4092 eval "$ac_cv_use_intl"
4093 if test "$no_cache" != 1; then
4094 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4095 fi
4096
4097 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
4098 echo "$as_me:$LINENO: result: yes" >&5
4099echo "${ECHO_T}yes" >&6
10f2d63a 4100 else
e6cc62c6
VS
4101 echo "$as_me:$LINENO: result: no" >&5
4102echo "${ECHO_T}no" >&6
10f2d63a 4103 fi
e6cc62c6 4104
10f2d63a 4105
5005acfe 4106 enablestring=
e6cc62c6
VS
4107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4108echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
4109 no_cache=0
4110 # Check whether --enable-config or --disable-config was given.
4111if test "${enable_config+set}" = set; then
4112 enableval="$enable_config"
e6cc62c6 4113
10f2d63a
VZ
4114 if test "$enableval" = yes; then
4115 ac_cv_use_config='wxUSE_CONFIG=yes'
4116 else
4117 ac_cv_use_config='wxUSE_CONFIG=no'
4118 fi
e6cc62c6 4119
10f2d63a 4120else
e6cc62c6 4121
10f2d63a
VZ
4122 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4123 if test "x$LINE" != x ; then
4124 eval "DEFAULT_$LINE"
4125 else
4126 no_cache=1
4127 fi
4128
4129 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 4130
e6cc62c6 4131fi;
10f2d63a
VZ
4132
4133 eval "$ac_cv_use_config"
4134 if test "$no_cache" != 1; then
4135 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4136 fi
4137
4138 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
4139 echo "$as_me:$LINENO: result: yes" >&5
4140echo "${ECHO_T}yes" >&6
10f2d63a 4141 else
e6cc62c6
VS
4142 echo "$as_me:$LINENO: result: no" >&5
4143echo "${ECHO_T}no" >&6
10f2d63a 4144 fi
e6cc62c6 4145
52127426 4146
8284b0c5 4147
5005acfe 4148 enablestring=
e6cc62c6
VS
4149 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4150echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
4151 no_cache=0
4152 # Check whether --enable-protocols or --disable-protocols was given.
4153if test "${enable_protocols+set}" = set; then
4154 enableval="$enable_protocols"
e6cc62c6 4155
a1622950
VZ
4156 if test "$enableval" = yes; then
4157 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4158 else
4159 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4160 fi
e6cc62c6 4161
a1622950 4162else
e6cc62c6 4163
a1622950
VZ
4164 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4165 if test "x$LINE" != x ; then
4166 eval "DEFAULT_$LINE"
4167 else
4168 no_cache=1
4169 fi
4170
4171 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 4172
e6cc62c6 4173fi;
a1622950
VZ
4174
4175 eval "$ac_cv_use_protocols"
4176 if test "$no_cache" != 1; then
4177 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4178 fi
4179
4180 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
4181 echo "$as_me:$LINENO: result: yes" >&5
4182echo "${ECHO_T}yes" >&6
a1622950 4183 else
e6cc62c6
VS
4184 echo "$as_me:$LINENO: result: no" >&5
4185echo "${ECHO_T}no" >&6
a1622950 4186 fi
e6cc62c6 4187
a1622950 4188
5005acfe 4189 enablestring=
e6cc62c6
VS
4190 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4191echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
4192 no_cache=0
4193 # Check whether --enable-ftp or --disable-ftp was given.
4194if test "${enable_ftp+set}" = set; then
4195 enableval="$enable_ftp"
e6cc62c6 4196
a1622950
VZ
4197 if test "$enableval" = yes; then
4198 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4199 else
4200 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4201 fi
e6cc62c6 4202
a1622950 4203else
e6cc62c6 4204
a1622950
VZ
4205 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4206 if test "x$LINE" != x ; then
4207 eval "DEFAULT_$LINE"
4208 else
4209 no_cache=1
4210 fi
4211
4212 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 4213
e6cc62c6 4214fi;
a1622950
VZ
4215
4216 eval "$ac_cv_use_ftp"
4217 if test "$no_cache" != 1; then
4218 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4219 fi
4220
4221 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
4222 echo "$as_me:$LINENO: result: yes" >&5
4223echo "${ECHO_T}yes" >&6
a1622950 4224 else
e6cc62c6
VS
4225 echo "$as_me:$LINENO: result: no" >&5
4226echo "${ECHO_T}no" >&6
a1622950 4227 fi
e6cc62c6 4228
a1622950 4229
5005acfe 4230 enablestring=
e6cc62c6
VS
4231 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4232echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4233 no_cache=0
4234 # Check whether --enable-http or --disable-http was given.
4235if test "${enable_http+set}" = set; then
4236 enableval="$enable_http"
e6cc62c6 4237
a1622950
VZ
4238 if test "$enableval" = yes; then
4239 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4240 else
4241 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4242 fi
e6cc62c6 4243
a1622950 4244else
e6cc62c6 4245
a1622950
VZ
4246 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4247 if test "x$LINE" != x ; then
4248 eval "DEFAULT_$LINE"
4249 else
4250 no_cache=1
4251 fi
4252
4253 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4254
e6cc62c6 4255fi;
a1622950
VZ
4256
4257 eval "$ac_cv_use_http"
4258 if test "$no_cache" != 1; then
4259 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4260 fi
4261
4262 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4263 echo "$as_me:$LINENO: result: yes" >&5
4264echo "${ECHO_T}yes" >&6
a1622950 4265 else
e6cc62c6
VS
4266 echo "$as_me:$LINENO: result: no" >&5
4267echo "${ECHO_T}no" >&6
a1622950 4268 fi
e6cc62c6 4269
a1622950 4270
5005acfe 4271 enablestring=
e6cc62c6
VS
4272 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4273echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4274 no_cache=0
4275 # Check whether --enable-fileproto or --disable-fileproto was given.
4276if test "${enable_fileproto+set}" = set; then
4277 enableval="$enable_fileproto"
e6cc62c6 4278
a1622950
VZ
4279 if test "$enableval" = yes; then
4280 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4281 else
4282 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4283 fi
e6cc62c6 4284
a1622950 4285else
e6cc62c6 4286
a1622950
VZ
4287 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4288 if test "x$LINE" != x ; then
4289 eval "DEFAULT_$LINE"
4290 else
4291 no_cache=1
4292 fi
4293
4294 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4295
e6cc62c6 4296fi;
a1622950
VZ
4297
4298 eval "$ac_cv_use_fileproto"
4299 if test "$no_cache" != 1; then
4300 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4301 fi
4302
4303 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4304 echo "$as_me:$LINENO: result: yes" >&5
4305echo "${ECHO_T}yes" >&6
a1622950 4306 else
e6cc62c6
VS
4307 echo "$as_me:$LINENO: result: no" >&5
4308echo "${ECHO_T}no" >&6
a1622950 4309 fi
e6cc62c6 4310
a1622950 4311
5005acfe 4312 enablestring=
e6cc62c6
VS
4313 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4314echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4315 no_cache=0
4316 # Check whether --enable-sockets or --disable-sockets was given.
4317if test "${enable_sockets+set}" = set; then
4318 enableval="$enable_sockets"
e6cc62c6 4319
10f2d63a
VZ
4320 if test "$enableval" = yes; then
4321 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4322 else
4323 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4324 fi
e6cc62c6 4325
10f2d63a 4326else
e6cc62c6 4327
10f2d63a
VZ
4328 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4329 if test "x$LINE" != x ; then
4330 eval "DEFAULT_$LINE"
4331 else
4332 no_cache=1
4333 fi
4334
4335 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4336
e6cc62c6 4337fi;
10f2d63a
VZ
4338
4339 eval "$ac_cv_use_sockets"
4340 if test "$no_cache" != 1; then
4341 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4342 fi
4343
4344 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4345 echo "$as_me:$LINENO: result: yes" >&5
4346echo "${ECHO_T}yes" >&6
10f2d63a 4347 else
e6cc62c6
VS
4348 echo "$as_me:$LINENO: result: no" >&5
4349echo "${ECHO_T}no" >&6
10f2d63a 4350 fi
e6cc62c6 4351
8284b0c5 4352
5005acfe 4353 enablestring=
e6cc62c6
VS
4354 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4355echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4356 no_cache=0
4357 # Check whether --enable-ole or --disable-ole was given.
4358if test "${enable_ole+set}" = set; then
4359 enableval="$enable_ole"
e6cc62c6 4360
3bce6687
JS
4361 if test "$enableval" = yes; then
4362 ac_cv_use_ole='wxUSE_OLE=yes'
4363 else
4364 ac_cv_use_ole='wxUSE_OLE=no'
4365 fi
e6cc62c6 4366
3bce6687 4367else
e6cc62c6 4368
3bce6687
JS
4369 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4370 if test "x$LINE" != x ; then
4371 eval "DEFAULT_$LINE"
4372 else
4373 no_cache=1
4374 fi
4375
4376 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4377
e6cc62c6 4378fi;
3bce6687
JS
4379
4380 eval "$ac_cv_use_ole"
4381 if test "$no_cache" != 1; then
4382 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4383 fi
4384
4385 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4386 echo "$as_me:$LINENO: result: yes" >&5
4387echo "${ECHO_T}yes" >&6
3bce6687 4388 else
e6cc62c6
VS
4389 echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6
3bce6687 4391 fi
e6cc62c6 4392
3bce6687 4393
5005acfe 4394 enablestring=
e6cc62c6
VS
4395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4396echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4397 no_cache=0
4398 # Check whether --enable-dataobj or --disable-dataobj was given.
4399if test "${enable_dataobj+set}" = set; then
4400 enableval="$enable_dataobj"
e6cc62c6 4401
3bce6687
JS
4402 if test "$enableval" = yes; then
4403 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4404 else
4405 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4406 fi
e6cc62c6 4407
3bce6687 4408else
e6cc62c6 4409
3bce6687
JS
4410 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4411 if test "x$LINE" != x ; then
4412 eval "DEFAULT_$LINE"
4413 else
4414 no_cache=1
4415 fi
4416
4417 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4418
e6cc62c6 4419fi;
3bce6687
JS
4420
4421 eval "$ac_cv_use_dataobj"
4422 if test "$no_cache" != 1; then
4423 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4424 fi
4425
4426 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4427 echo "$as_me:$LINENO: result: yes" >&5
4428echo "${ECHO_T}yes" >&6
3bce6687 4429 else
e6cc62c6
VS
4430 echo "$as_me:$LINENO: result: no" >&5
4431echo "${ECHO_T}no" >&6
3bce6687 4432 fi
e6cc62c6 4433
3bce6687 4434
52127426 4435
5005acfe 4436 enablestring=
e6cc62c6
VS
4437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4438echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4439 no_cache=0
eb4efbdc
VZ
4440 # Check whether --enable-ipc or --disable-ipc was given.
4441if test "${enable_ipc+set}" = set; then
4442 enableval="$enable_ipc"
e6cc62c6 4443
10f2d63a 4444 if test "$enableval" = yes; then
eb4efbdc 4445 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4446 else
eb4efbdc 4447 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4448 fi
e6cc62c6 4449
10f2d63a 4450else
e6cc62c6 4451
eb4efbdc 4452 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4453 if test "x$LINE" != x ; then
4454 eval "DEFAULT_$LINE"
4455 else
4456 no_cache=1
4457 fi
4458
eb4efbdc 4459 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4460
e6cc62c6 4461fi;
10f2d63a 4462
eb4efbdc 4463 eval "$ac_cv_use_ipc"
10f2d63a 4464 if test "$no_cache" != 1; then
eb4efbdc 4465 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4466 fi
4467
eb4efbdc 4468 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4469 echo "$as_me:$LINENO: result: yes" >&5
4470echo "${ECHO_T}yes" >&6
10f2d63a 4471 else
e6cc62c6
VS
4472 echo "$as_me:$LINENO: result: no" >&5
4473echo "${ECHO_T}no" >&6
10f2d63a 4474 fi
e6cc62c6 4475
52127426 4476
8284b0c5 4477
5005acfe 4478 enablestring=
e46d2a18
VS
4479 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4480echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4481 no_cache=0
e46d2a18
VS
4482 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4483if test "${enable_apple_ieee+set}" = set; then
4484 enableval="$enable_apple_ieee"
e6cc62c6 4485
10f2d63a 4486 if test "$enableval" = yes; then
e46d2a18 4487 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4488 else
e46d2a18 4489 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4490 fi
e6cc62c6 4491
10f2d63a 4492else
e6cc62c6 4493
e46d2a18 4494 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4495 if test "x$LINE" != x ; then
4496 eval "DEFAULT_$LINE"
4497 else
4498 no_cache=1
4499 fi
4500
e46d2a18 4501 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4502
e6cc62c6 4503fi;
10f2d63a 4504
e46d2a18 4505 eval "$ac_cv_use_apple_ieee"
10f2d63a 4506 if test "$no_cache" != 1; then
e46d2a18 4507 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4508 fi
4509
e46d2a18 4510 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4511 echo "$as_me:$LINENO: result: yes" >&5
4512echo "${ECHO_T}yes" >&6
10f2d63a 4513 else
e6cc62c6
VS
4514 echo "$as_me:$LINENO: result: no" >&5
4515echo "${ECHO_T}no" >&6
10f2d63a 4516 fi
e6cc62c6 4517
10f2d63a 4518
5005acfe 4519 enablestring=
e46d2a18
VS
4520 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4521echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4522 no_cache=0
e46d2a18
VS
4523 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4524if test "${enable_catch_segvs+set}" = set; then
4525 enableval="$enable_catch_segvs"
e6cc62c6 4526
10f2d63a 4527 if test "$enableval" = yes; then
e46d2a18 4528 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4529 else
e46d2a18 4530 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4531 fi
e6cc62c6 4532
10f2d63a 4533else
e6cc62c6 4534
e46d2a18 4535 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4536 if test "x$LINE" != x ; then
4537 eval "DEFAULT_$LINE"
4538 else
4539 no_cache=1
4540 fi
4541
e46d2a18 4542 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4543
e6cc62c6 4544fi;
10f2d63a 4545
e46d2a18 4546 eval "$ac_cv_use_catch_segvs"
10f2d63a 4547 if test "$no_cache" != 1; then
e46d2a18 4548 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4549 fi
4550
e46d2a18 4551 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4552 echo "$as_me:$LINENO: result: yes" >&5
4553echo "${ECHO_T}yes" >&6
10f2d63a 4554 else
e6cc62c6
VS
4555 echo "$as_me:$LINENO: result: no" >&5
4556echo "${ECHO_T}no" >&6
10f2d63a 4557 fi
e6cc62c6 4558
10f2d63a 4559
5005acfe 4560 enablestring=
e46d2a18
VS
4561 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4562echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4563 no_cache=0
e46d2a18
VS
4564 # Check whether --enable-cmdline or --disable-cmdline was given.
4565if test "${enable_cmdline+set}" = set; then
4566 enableval="$enable_cmdline"
e6cc62c6 4567
10f2d63a 4568 if test "$enableval" = yes; then
e46d2a18 4569 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4570 else
e46d2a18 4571 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4572 fi
e6cc62c6 4573
10f2d63a 4574else
e6cc62c6 4575
e46d2a18 4576 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4577 if test "x$LINE" != x ; then
4578 eval "DEFAULT_$LINE"
4579 else
4580 no_cache=1
4581 fi
4582
e46d2a18 4583 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4584
e6cc62c6 4585fi;
10f2d63a 4586
e46d2a18 4587 eval "$ac_cv_use_cmdline"
10f2d63a 4588 if test "$no_cache" != 1; then
e46d2a18 4589 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4590 fi
4591
e46d2a18 4592 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4593 echo "$as_me:$LINENO: result: yes" >&5
4594echo "${ECHO_T}yes" >&6
10f2d63a 4595 else
e6cc62c6
VS
4596 echo "$as_me:$LINENO: result: no" >&5
4597echo "${ECHO_T}no" >&6
10f2d63a 4598 fi
e6cc62c6 4599
10f2d63a 4600
5005acfe 4601 enablestring=
e46d2a18
VS
4602 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4603echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4604 no_cache=0
e46d2a18
VS
4605 # Check whether --enable-datetime or --disable-datetime was given.
4606if test "${enable_datetime+set}" = set; then
4607 enableval="$enable_datetime"
e6cc62c6 4608
10f2d63a 4609 if test "$enableval" = yes; then
e46d2a18 4610 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4611 else
e46d2a18 4612 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4613 fi
e6cc62c6 4614
10f2d63a 4615else
e6cc62c6 4616
e46d2a18 4617 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4618 if test "x$LINE" != x ; then
4619 eval "DEFAULT_$LINE"
4620 else
4621 no_cache=1
4622 fi
4623
e46d2a18 4624 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4625
e6cc62c6 4626fi;
10f2d63a 4627
e46d2a18 4628 eval "$ac_cv_use_datetime"
10f2d63a 4629 if test "$no_cache" != 1; then
e46d2a18 4630 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4631 fi
4632
e46d2a18 4633 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4634 echo "$as_me:$LINENO: result: yes" >&5
4635echo "${ECHO_T}yes" >&6
10f2d63a 4636 else
e6cc62c6
VS
4637 echo "$as_me:$LINENO: result: no" >&5
4638echo "${ECHO_T}no" >&6
10f2d63a 4639 fi
e6cc62c6 4640
10f2d63a 4641
5005acfe 4642 enablestring=
e46d2a18
VS
4643 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4644echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4645 no_cache=0
e46d2a18
VS
4646 # Check whether --enable-dialupman or --disable-dialupman was given.
4647if test "${enable_dialupman+set}" = set; then
4648 enableval="$enable_dialupman"
e6cc62c6 4649
10f2d63a 4650 if test "$enableval" = yes; then
e46d2a18 4651 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4652 else
e46d2a18 4653 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4654 fi
e6cc62c6 4655
10f2d63a 4656else
e6cc62c6 4657
e46d2a18 4658 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4659 if test "x$LINE" != x ; then
4660 eval "DEFAULT_$LINE"
4661 else
4662 no_cache=1
4663 fi
4664
e46d2a18 4665 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4666
e6cc62c6 4667fi;
10f2d63a 4668
e46d2a18 4669 eval "$ac_cv_use_dialupman"
10f2d63a 4670 if test "$no_cache" != 1; then
e46d2a18 4671 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4672 fi
4673
e46d2a18 4674 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4675 echo "$as_me:$LINENO: result: yes" >&5
4676echo "${ECHO_T}yes" >&6
10f2d63a 4677 else
e6cc62c6
VS
4678 echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6
10f2d63a 4680 fi
e6cc62c6 4681
10f2d63a 4682
5005acfe 4683 enablestring=
e6cc62c6
VS
4684 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4685echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4686 no_cache=0
4687 # Check whether --enable-dynlib or --disable-dynlib was given.
4688if test "${enable_dynlib+set}" = set; then
4689 enableval="$enable_dynlib"
e6cc62c6 4690
10f2d63a
VZ
4691 if test "$enableval" = yes; then
4692 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4693 else
4694 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4695 fi
e6cc62c6 4696
10f2d63a 4697else
e6cc62c6 4698
10f2d63a
VZ
4699 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4700 if test "x$LINE" != x ; then
4701 eval "DEFAULT_$LINE"
4702 else
4703 no_cache=1
4704 fi
4705
4706 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4707
e6cc62c6 4708fi;
10f2d63a
VZ
4709
4710 eval "$ac_cv_use_dynlib"
4711 if test "$no_cache" != 1; then
4712 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4713 fi
4714
4715 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4716 echo "$as_me:$LINENO: result: yes" >&5
4717echo "${ECHO_T}yes" >&6
10f2d63a 4718 else
e6cc62c6
VS
4719 echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6
10f2d63a 4721 fi
e6cc62c6 4722
10f2d63a 4723
5005acfe 4724 enablestring=
e6cc62c6
VS
4725 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4726echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4727 no_cache=0
4728 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4729if test "${enable_dynamicloader+set}" = set; then
4730 enableval="$enable_dynamicloader"
e6cc62c6 4731
0b9ab0bd
RL
4732 if test "$enableval" = yes; then
4733 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4734 else
4735 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4736 fi
e6cc62c6 4737
0b9ab0bd 4738else
e6cc62c6 4739
0b9ab0bd
RL
4740 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4741 if test "x$LINE" != x ; then
4742 eval "DEFAULT_$LINE"
4743 else
4744 no_cache=1
4745 fi
4746
4747 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4748
e6cc62c6 4749fi;
0b9ab0bd
RL
4750
4751 eval "$ac_cv_use_dynamicloader"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4757 echo "$as_me:$LINENO: result: yes" >&5
4758echo "${ECHO_T}yes" >&6
0b9ab0bd 4759 else
e6cc62c6
VS
4760 echo "$as_me:$LINENO: result: no" >&5
4761echo "${ECHO_T}no" >&6
0b9ab0bd 4762 fi
e6cc62c6 4763
0b9ab0bd 4764
5005acfe 4765 enablestring=
e46d2a18
VS
4766 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4767echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4768 no_cache=0
e46d2a18
VS
4769 # Check whether --enable-exceptions or --disable-exceptions was given.
4770if test "${enable_exceptions+set}" = set; then
4771 enableval="$enable_exceptions"
e6cc62c6 4772
10f2d63a 4773 if test "$enableval" = yes; then
e46d2a18 4774 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4775 else
e46d2a18 4776 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4777 fi
e6cc62c6 4778
10f2d63a 4779else
e6cc62c6 4780
e46d2a18 4781 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4782 if test "x$LINE" != x ; then
4783 eval "DEFAULT_$LINE"
4784 else
4785 no_cache=1
4786 fi
4787
e46d2a18 4788 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4789
e6cc62c6 4790fi;
10f2d63a 4791
e46d2a18 4792 eval "$ac_cv_use_exceptions"
10f2d63a 4793 if test "$no_cache" != 1; then
e46d2a18 4794 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4795 fi
4796
e46d2a18 4797 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4798 echo "$as_me:$LINENO: result: yes" >&5
4799echo "${ECHO_T}yes" >&6
10f2d63a 4800 else
e6cc62c6
VS
4801 echo "$as_me:$LINENO: result: no" >&5
4802echo "${ECHO_T}no" >&6
10f2d63a 4803 fi
e6cc62c6 4804
10f2d63a 4805
5005acfe 4806 enablestring=
e46d2a18
VS
4807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4808echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4809 no_cache=0
e46d2a18
VS
4810 # Check whether --enable-ffile or --disable-ffile was given.
4811if test "${enable_ffile+set}" = set; then
4812 enableval="$enable_ffile"
e6cc62c6 4813
e8f65ba6 4814 if test "$enableval" = yes; then
e46d2a18 4815 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4816 else
e46d2a18 4817 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4818 fi
e6cc62c6 4819
e8f65ba6 4820else
e6cc62c6 4821
e46d2a18 4822 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4823 if test "x$LINE" != x ; then
4824 eval "DEFAULT_$LINE"
4825 else
4826 no_cache=1
4827 fi
4828
e46d2a18 4829 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4830
e6cc62c6 4831fi;
e8f65ba6 4832
e46d2a18 4833 eval "$ac_cv_use_ffile"
e8f65ba6 4834 if test "$no_cache" != 1; then
e46d2a18 4835 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4836 fi
4837
e46d2a18 4838 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4839 echo "$as_me:$LINENO: result: yes" >&5
4840echo "${ECHO_T}yes" >&6
e8f65ba6 4841 else
e6cc62c6
VS
4842 echo "$as_me:$LINENO: result: no" >&5
4843echo "${ECHO_T}no" >&6
e8f65ba6 4844 fi
e6cc62c6 4845
e8f65ba6 4846
5005acfe 4847 enablestring=
e46d2a18
VS
4848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4849echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4850 no_cache=0
e46d2a18
VS
4851 # Check whether --enable-file or --disable-file was given.
4852if test "${enable_file+set}" = set; then
4853 enableval="$enable_file"
e6cc62c6 4854
10f2d63a 4855 if test "$enableval" = yes; then
e46d2a18 4856 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4857 else
e46d2a18 4858 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4859 fi
e6cc62c6 4860
10f2d63a 4861else
e6cc62c6 4862
e46d2a18 4863 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4864 if test "x$LINE" != x ; then
4865 eval "DEFAULT_$LINE"
4866 else
4867 no_cache=1
4868 fi
4869
e46d2a18 4870 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4871
e6cc62c6 4872fi;
10f2d63a 4873
e46d2a18 4874 eval "$ac_cv_use_file"
10f2d63a 4875 if test "$no_cache" != 1; then
e46d2a18 4876 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4877 fi
4878
e46d2a18 4879 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4880 echo "$as_me:$LINENO: result: yes" >&5
4881echo "${ECHO_T}yes" >&6
10f2d63a 4882 else
e6cc62c6
VS
4883 echo "$as_me:$LINENO: result: no" >&5
4884echo "${ECHO_T}no" >&6
10f2d63a 4885 fi
e6cc62c6 4886
10f2d63a 4887
5005acfe 4888 enablestring=
e46d2a18
VS
4889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4890echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4891 no_cache=0
e46d2a18
VS
4892 # Check whether --enable-filesystem or --disable-filesystem was given.
4893if test "${enable_filesystem+set}" = set; then
4894 enableval="$enable_filesystem"
e6cc62c6 4895
10f2d63a 4896 if test "$enableval" = yes; then
e46d2a18 4897 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4898 else
e46d2a18 4899 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4900 fi
e6cc62c6 4901
10f2d63a 4902else
e6cc62c6 4903
e46d2a18 4904 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4905 if test "x$LINE" != x ; then
4906 eval "DEFAULT_$LINE"
4907 else
4908 no_cache=1
4909 fi
4910
e46d2a18 4911 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4912
e6cc62c6 4913fi;
10f2d63a 4914
e46d2a18 4915 eval "$ac_cv_use_filesystem"
10f2d63a 4916 if test "$no_cache" != 1; then
e46d2a18 4917 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4918 fi
4919
e46d2a18 4920 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4921 echo "$as_me:$LINENO: result: yes" >&5
4922echo "${ECHO_T}yes" >&6
10f2d63a 4923 else
e6cc62c6
VS
4924 echo "$as_me:$LINENO: result: no" >&5
4925echo "${ECHO_T}no" >&6
10f2d63a 4926 fi
e6cc62c6 4927
10f2d63a 4928
5005acfe 4929 enablestring=
e46d2a18
VS
4930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4931echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4932 no_cache=0
e46d2a18
VS
4933 # Check whether --enable-fontmap or --disable-fontmap was given.
4934if test "${enable_fontmap+set}" = set; then
4935 enableval="$enable_fontmap"
e6cc62c6 4936
10f2d63a 4937 if test "$enableval" = yes; then
e46d2a18 4938 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4939 else
e46d2a18 4940 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4941 fi
e6cc62c6 4942
10f2d63a 4943else
e6cc62c6 4944
e46d2a18 4945 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4946 if test "x$LINE" != x ; then
4947 eval "DEFAULT_$LINE"
4948 else
4949 no_cache=1
4950 fi
4951
e46d2a18 4952 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4953
e6cc62c6 4954fi;
10f2d63a 4955
e46d2a18 4956 eval "$ac_cv_use_fontmap"
10f2d63a 4957 if test "$no_cache" != 1; then
e46d2a18 4958 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4959 fi
4960
e46d2a18 4961 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4962 echo "$as_me:$LINENO: result: yes" >&5
4963echo "${ECHO_T}yes" >&6
10f2d63a 4964 else
e6cc62c6
VS
4965 echo "$as_me:$LINENO: result: no" >&5
4966echo "${ECHO_T}no" >&6
10f2d63a 4967 fi
e6cc62c6 4968
10f2d63a 4969
5005acfe 4970 enablestring=
e46d2a18
VS
4971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4972echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4973 no_cache=0
e46d2a18
VS
4974 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4975if test "${enable_fs_inet+set}" = set; then
4976 enableval="$enable_fs_inet"
e6cc62c6 4977
10f2d63a 4978 if test "$enableval" = yes; then
e46d2a18 4979 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4980 else
e46d2a18 4981 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4982 fi
e6cc62c6 4983
10f2d63a 4984else
e6cc62c6 4985
e46d2a18 4986 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4987 if test "x$LINE" != x ; then
4988 eval "DEFAULT_$LINE"
4989 else
4990 no_cache=1
4991 fi
4992
e46d2a18 4993 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4994
e6cc62c6 4995fi;
10f2d63a 4996
e46d2a18 4997 eval "$ac_cv_use_fs_inet"
10f2d63a 4998 if test "$no_cache" != 1; then
e46d2a18 4999 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5000 fi
5001
e46d2a18 5002 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
5003 echo "$as_me:$LINENO: result: yes" >&5
5004echo "${ECHO_T}yes" >&6
10f2d63a 5005 else
e6cc62c6
VS
5006 echo "$as_me:$LINENO: result: no" >&5
5007echo "${ECHO_T}no" >&6
10f2d63a 5008 fi
e6cc62c6 5009
10f2d63a 5010
5005acfe 5011 enablestring=
e46d2a18
VS
5012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
5013echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 5014 no_cache=0
e46d2a18
VS
5015 # Check whether --enable-fs_zip or --disable-fs_zip was given.
5016if test "${enable_fs_zip+set}" = set; then
5017 enableval="$enable_fs_zip"
e6cc62c6 5018
a3a584a7 5019 if test "$enableval" = yes; then
e46d2a18 5020 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 5021 else
e46d2a18 5022 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 5023 fi
e6cc62c6 5024
a3a584a7 5025else
e6cc62c6 5026
e46d2a18 5027 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
5028 if test "x$LINE" != x ; then
5029 eval "DEFAULT_$LINE"
5030 else
5031 no_cache=1
5032 fi
5033
e46d2a18 5034 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 5035
e6cc62c6 5036fi;
a3a584a7 5037
e46d2a18 5038 eval "$ac_cv_use_fs_zip"
a3a584a7 5039 if test "$no_cache" != 1; then
e46d2a18 5040 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
5041 fi
5042
e46d2a18 5043 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5044 echo "$as_me:$LINENO: result: yes" >&5
5045echo "${ECHO_T}yes" >&6
a3a584a7 5046 else
e6cc62c6
VS
5047 echo "$as_me:$LINENO: result: no" >&5
5048echo "${ECHO_T}no" >&6
a3a584a7 5049 fi
e6cc62c6 5050
a3a584a7 5051
5005acfe 5052 enablestring=
e46d2a18
VS
5053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5054echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 5055 no_cache=0
e46d2a18
VS
5056 # Check whether --enable-geometry or --disable-geometry was given.
5057if test "${enable_geometry+set}" = set; then
5058 enableval="$enable_geometry"
e6cc62c6 5059
10f2d63a 5060 if test "$enableval" = yes; then
e46d2a18 5061 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 5062 else
e46d2a18 5063 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 5064 fi
e6cc62c6 5065
10f2d63a 5066else
e6cc62c6 5067
e46d2a18 5068 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
5069 if test "x$LINE" != x ; then
5070 eval "DEFAULT_$LINE"
5071 else
5072 no_cache=1
5073 fi
5074
e46d2a18 5075 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 5076
e6cc62c6 5077fi;
10f2d63a 5078
e46d2a18 5079 eval "$ac_cv_use_geometry"
10f2d63a 5080 if test "$no_cache" != 1; then
e46d2a18 5081 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5082 fi
5083
e46d2a18 5084 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
5085 echo "$as_me:$LINENO: result: yes" >&5
5086echo "${ECHO_T}yes" >&6
10f2d63a 5087 else
e6cc62c6
VS
5088 echo "$as_me:$LINENO: result: no" >&5
5089echo "${ECHO_T}no" >&6
10f2d63a 5090 fi
e6cc62c6 5091
10f2d63a 5092
5005acfe 5093 enablestring=
e46d2a18
VS
5094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5095echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 5096 no_cache=0
e46d2a18
VS
5097 # Check whether --enable-log or --disable-log was given.
5098if test "${enable_log+set}" = set; then
5099 enableval="$enable_log"
e6cc62c6 5100
10f2d63a 5101 if test "$enableval" = yes; then
e46d2a18 5102 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 5103 else
e46d2a18 5104 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 5105 fi
e6cc62c6 5106
10f2d63a 5107else
e6cc62c6 5108
e46d2a18 5109 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
5110 if test "x$LINE" != x ; then
5111 eval "DEFAULT_$LINE"
5112 else
5113 no_cache=1
5114 fi
5115
e46d2a18 5116 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 5117
e6cc62c6 5118fi;
10f2d63a 5119
e46d2a18 5120 eval "$ac_cv_use_log"
10f2d63a 5121 if test "$no_cache" != 1; then
e46d2a18 5122 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5123 fi
5124
e46d2a18 5125 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
5126 echo "$as_me:$LINENO: result: yes" >&5
5127echo "${ECHO_T}yes" >&6
10f2d63a 5128 else
e6cc62c6
VS
5129 echo "$as_me:$LINENO: result: no" >&5
5130echo "${ECHO_T}no" >&6
10f2d63a 5131 fi
e6cc62c6 5132
10f2d63a 5133
5005acfe 5134 enablestring=
e46d2a18
VS
5135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5136echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 5137 no_cache=0
e46d2a18
VS
5138 # Check whether --enable-longlong or --disable-longlong was given.
5139if test "${enable_longlong+set}" = set; then
5140 enableval="$enable_longlong"
e6cc62c6 5141
1e6feb95 5142 if test "$enableval" = yes; then
e46d2a18 5143 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 5144 else
e46d2a18 5145 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 5146 fi
e6cc62c6 5147
1e6feb95 5148else
e6cc62c6 5149
e46d2a18 5150 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
5151 if test "x$LINE" != x ; then
5152 eval "DEFAULT_$LINE"
5153 else
5154 no_cache=1
5155 fi
5156
e46d2a18 5157 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 5158
e6cc62c6 5159fi;
1e6feb95 5160
e46d2a18 5161 eval "$ac_cv_use_longlong"
1e6feb95 5162 if test "$no_cache" != 1; then
e46d2a18 5163 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5164 fi
5165
e46d2a18
VS
5166 if test "$wxUSE_LONGLONG" = yes; then
5167 echo "$as_me:$LINENO: result: yes" >&5
5168echo "${ECHO_T}yes" >&6
5169 else
5170 echo "$as_me:$LINENO: result: no" >&5
5171echo "${ECHO_T}no" >&6
5172 fi
5173
5174
5175 enablestring=
5176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5177echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5178 no_cache=0
5179 # Check whether --enable-mimetype or --disable-mimetype was given.
5180if test "${enable_mimetype+set}" = set; then
5181 enableval="$enable_mimetype"
5182
5183 if test "$enableval" = yes; then
5184 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5185 else
5186 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5187 fi
5188
5189else
5190
5191 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5192 if test "x$LINE" != x ; then
5193 eval "DEFAULT_$LINE"
5194 else
5195 no_cache=1
5196 fi
5197
5198 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5199
5200fi;
5201
5202 eval "$ac_cv_use_mimetype"
5203 if test "$no_cache" != 1; then
5204 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5205 fi
5206
5207 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5208 echo "$as_me:$LINENO: result: yes" >&5
5209echo "${ECHO_T}yes" >&6
1e6feb95 5210 else
e6cc62c6
VS
5211 echo "$as_me:$LINENO: result: no" >&5
5212echo "${ECHO_T}no" >&6
1e6feb95 5213 fi
e6cc62c6 5214
1e6feb95 5215
5005acfe 5216 enablestring=
e6cc62c6
VS
5217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5218echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5219 no_cache=0
5220 # Check whether --enable-mslu or --disable-mslu was given.
5221if test "${enable_mslu+set}" = set; then
5222 enableval="$enable_mslu"
e6cc62c6 5223
a72a4bfa
VS
5224 if test "$enableval" = yes; then
5225 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5226 else
5227 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5228 fi
e6cc62c6 5229
a72a4bfa 5230else
e6cc62c6 5231
a72a4bfa
VS
5232 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5233 if test "x$LINE" != x ; then
5234 eval "DEFAULT_$LINE"
5235 else
5236 no_cache=1
5237 fi
5238
5239 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5240
e6cc62c6 5241fi;
a72a4bfa
VS
5242
5243 eval "$ac_cv_use_mslu"
5244 if test "$no_cache" != 1; then
5245 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5246 fi
5247
5248 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5249 echo "$as_me:$LINENO: result: yes" >&5
5250echo "${ECHO_T}yes" >&6
a72a4bfa 5251 else
e6cc62c6
VS
5252 echo "$as_me:$LINENO: result: no" >&5
5253echo "${ECHO_T}no" >&6
a72a4bfa 5254 fi
e6cc62c6 5255
a72a4bfa 5256
5005acfe 5257 enablestring=
e46d2a18
VS
5258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5259echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5260 no_cache=0
e46d2a18
VS
5261 # Check whether --enable-snglinst or --disable-snglinst was given.
5262if test "${enable_snglinst+set}" = set; then
5263 enableval="$enable_snglinst"
e6cc62c6 5264
1e6feb95 5265 if test "$enableval" = yes; then
e46d2a18 5266 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5267 else
e46d2a18 5268 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5269 fi
e6cc62c6 5270
10f2d63a 5271else
e6cc62c6 5272
e46d2a18 5273 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5274 if test "x$LINE" != x ; then
5275 eval "DEFAULT_$LINE"
5276 else
5277 no_cache=1
5278 fi
5279
e46d2a18 5280 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5281
e6cc62c6 5282fi;
10f2d63a 5283
e46d2a18 5284 eval "$ac_cv_use_snglinst"
10f2d63a 5285 if test "$no_cache" != 1; then
e46d2a18 5286 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5287 fi
5288
e46d2a18
VS
5289 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5290 echo "$as_me:$LINENO: result: yes" >&5
5291echo "${ECHO_T}yes" >&6
5292 else
5293 echo "$as_me:$LINENO: result: no" >&5
5294echo "${ECHO_T}no" >&6
5295 fi
5296
5297
5298 enablestring=
5299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5300echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5301 no_cache=0
5302 # Check whether --enable-streams or --disable-streams was given.
5303if test "${enable_streams+set}" = set; then
5304 enableval="$enable_streams"
5305
5306 if test "$enableval" = yes; then
5307 ac_cv_use_streams='wxUSE_STREAMS=yes'
5308 else
5309 ac_cv_use_streams='wxUSE_STREAMS=no'
5310 fi
5311
5312else
5313
5314 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5315 if test "x$LINE" != x ; then
5316 eval "DEFAULT_$LINE"
5317 else
5318 no_cache=1
5319 fi
5320
5321 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5322
5323fi;
5324
5325 eval "$ac_cv_use_streams"
5326 if test "$no_cache" != 1; then
5327 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5328 fi
5329
5330 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5331 echo "$as_me:$LINENO: result: yes" >&5
5332echo "${ECHO_T}yes" >&6
10f2d63a 5333 else
e6cc62c6
VS
5334 echo "$as_me:$LINENO: result: no" >&5
5335echo "${ECHO_T}no" >&6
10f2d63a 5336 fi
e6cc62c6 5337
10f2d63a 5338
5005acfe 5339 enablestring=
e6cc62c6
VS
5340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5341echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5342 no_cache=0
5343 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5344if test "${enable_std_iostreams+set}" = set; then
5345 enableval="$enable_std_iostreams"
e6cc62c6 5346
10f2d63a
VZ
5347 if test "$enableval" = yes; then
5348 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5349 else
5350 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5351 fi
e6cc62c6 5352
10f2d63a 5353else
e6cc62c6 5354
10f2d63a
VZ
5355 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5356 if test "x$LINE" != x ; then
5357 eval "DEFAULT_$LINE"
5358 else
5359 no_cache=1
5360 fi
5361
5362 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5363
e6cc62c6 5364fi;
10f2d63a
VZ
5365
5366 eval "$ac_cv_use_std_iostreams"
5367 if test "$no_cache" != 1; then
5368 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5369 fi
5370
5371 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5372 echo "$as_me:$LINENO: result: yes" >&5
5373echo "${ECHO_T}yes" >&6
10f2d63a 5374 else
e6cc62c6
VS
5375 echo "$as_me:$LINENO: result: no" >&5
5376echo "${ECHO_T}no" >&6
10f2d63a 5377 fi
e6cc62c6 5378
10f2d63a 5379
5005acfe 5380 enablestring=
e46d2a18
VS
5381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5382echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5383 no_cache=0
e46d2a18
VS
5384 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5385if test "${enable_stopwatch+set}" = set; then
5386 enableval="$enable_stopwatch"
e6cc62c6 5387
24528b0c 5388 if test "$enableval" = yes; then
e46d2a18 5389 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5390 else
e46d2a18 5391 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5392 fi
e6cc62c6 5393
24528b0c 5394else
e6cc62c6 5395
e46d2a18 5396 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5397 if test "x$LINE" != x ; then
5398 eval "DEFAULT_$LINE"
5399 else
5400 no_cache=1
5401 fi
5402
e46d2a18 5403 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5404
e6cc62c6 5405fi;
24528b0c 5406
e46d2a18 5407 eval "$ac_cv_use_stopwatch"
24528b0c 5408 if test "$no_cache" != 1; then
e46d2a18 5409 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5410 fi
5411
e46d2a18 5412 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5413 echo "$as_me:$LINENO: result: yes" >&5
5414echo "${ECHO_T}yes" >&6
24528b0c 5415 else
e6cc62c6
VS
5416 echo "$as_me:$LINENO: result: no" >&5
5417echo "${ECHO_T}no" >&6
24528b0c 5418 fi
e6cc62c6 5419
24528b0c 5420
5005acfe 5421 enablestring=
e46d2a18
VS
5422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5423echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5424 no_cache=0
e46d2a18
VS
5425 # Check whether --enable-system_options or --disable-system_options was given.
5426if test "${enable_system_options+set}" = set; then
5427 enableval="$enable_system_options"
e6cc62c6 5428
10f2d63a 5429 if test "$enableval" = yes; then
e46d2a18 5430 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5431 else
e46d2a18 5432 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5433 fi
e6cc62c6 5434
10f2d63a 5435else
e6cc62c6 5436
e46d2a18 5437 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5438 if test "x$LINE" != x ; then
5439 eval "DEFAULT_$LINE"
5440 else
5441 no_cache=1
5442 fi
5443
e46d2a18 5444 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5445
e6cc62c6 5446fi;
10f2d63a 5447
e46d2a18 5448 eval "$ac_cv_use_system_options"
10f2d63a 5449 if test "$no_cache" != 1; then
e46d2a18 5450 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5451 fi
5452
e46d2a18 5453 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5454 echo "$as_me:$LINENO: result: yes" >&5
5455echo "${ECHO_T}yes" >&6
10f2d63a 5456 else
e6cc62c6
VS
5457 echo "$as_me:$LINENO: result: no" >&5
5458echo "${ECHO_T}no" >&6
10f2d63a 5459 fi
e6cc62c6 5460
10f2d63a 5461
5005acfe 5462 enablestring=
e46d2a18
VS
5463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5464echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5465 no_cache=0
e46d2a18
VS
5466 # Check whether --enable-textbuf or --disable-textbuf was given.
5467if test "${enable_textbuf+set}" = set; then
5468 enableval="$enable_textbuf"
e6cc62c6 5469
10f2d63a 5470 if test "$enableval" = yes; then
e46d2a18 5471 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5472 else
e46d2a18 5473 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5474 fi
e6cc62c6 5475
10f2d63a 5476else
e6cc62c6 5477
e46d2a18 5478 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5479 if test "x$LINE" != x ; then
5480 eval "DEFAULT_$LINE"
5481 else
5482 no_cache=1
5483 fi
5484
e46d2a18 5485 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5486
e6cc62c6 5487fi;
10f2d63a 5488
e46d2a18 5489 eval "$ac_cv_use_textbuf"
10f2d63a 5490 if test "$no_cache" != 1; then
e46d2a18 5491 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5492 fi
5493
e46d2a18 5494 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5495 echo "$as_me:$LINENO: result: yes" >&5
5496echo "${ECHO_T}yes" >&6
10f2d63a 5497 else
e6cc62c6
VS
5498 echo "$as_me:$LINENO: result: no" >&5
5499echo "${ECHO_T}no" >&6
10f2d63a 5500 fi
e6cc62c6 5501
10f2d63a 5502
5005acfe 5503 enablestring=
e46d2a18
VS
5504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5505echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5506 no_cache=0
e46d2a18
VS
5507 # Check whether --enable-textfile or --disable-textfile was given.
5508if test "${enable_textfile+set}" = set; then
5509 enableval="$enable_textfile"
e6cc62c6 5510
10f2d63a 5511 if test "$enableval" = yes; then
e46d2a18 5512 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5513 else
e46d2a18 5514 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5515 fi
e6cc62c6 5516
10f2d63a 5517else
e6cc62c6 5518
e46d2a18 5519 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5520 if test "x$LINE" != x ; then
5521 eval "DEFAULT_$LINE"
5522 else
5523 no_cache=1
5524 fi
5525
e46d2a18 5526 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5527
e6cc62c6 5528fi;
10f2d63a 5529
e46d2a18 5530 eval "$ac_cv_use_textfile"
10f2d63a 5531 if test "$no_cache" != 1; then
e46d2a18 5532 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5533 fi
5534
e46d2a18 5535 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5536 echo "$as_me:$LINENO: result: yes" >&5
5537echo "${ECHO_T}yes" >&6
10f2d63a 5538 else
e6cc62c6
VS
5539 echo "$as_me:$LINENO: result: no" >&5
5540echo "${ECHO_T}no" >&6
10f2d63a 5541 fi
e6cc62c6 5542
8284b0c5 5543
5005acfe 5544 enablestring=
e46d2a18
VS
5545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5546echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5547 no_cache=0
e46d2a18
VS
5548 # Check whether --enable-timer or --disable-timer was given.
5549if test "${enable_timer+set}" = set; then
5550 enableval="$enable_timer"
e6cc62c6 5551
eb4efbdc 5552 if test "$enableval" = yes; then
e46d2a18 5553 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5554 else
e46d2a18 5555 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5556 fi
e6cc62c6 5557
eb4efbdc 5558else
e6cc62c6 5559
e46d2a18 5560 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5561 if test "x$LINE" != x ; then
5562 eval "DEFAULT_$LINE"
5563 else
5564 no_cache=1
5565 fi
5566
e46d2a18 5567 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5568
e6cc62c6 5569fi;
eb4efbdc 5570
e46d2a18 5571 eval "$ac_cv_use_timer"
eb4efbdc 5572 if test "$no_cache" != 1; then
e46d2a18 5573 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5574 fi
5575
e46d2a18 5576 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5577 echo "$as_me:$LINENO: result: yes" >&5
5578echo "${ECHO_T}yes" >&6
eb4efbdc 5579 else
e6cc62c6
VS
5580 echo "$as_me:$LINENO: result: no" >&5
5581echo "${ECHO_T}no" >&6
eb4efbdc 5582 fi
e6cc62c6 5583
eb4efbdc 5584
5005acfe 5585 enablestring=
e46d2a18
VS
5586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5587echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5588 no_cache=0
e46d2a18
VS
5589 # Check whether --enable-unicode or --disable-unicode was given.
5590if test "${enable_unicode+set}" = set; then
5591 enableval="$enable_unicode"
e6cc62c6 5592
4f3c5f06 5593 if test "$enableval" = yes; then
e46d2a18 5594 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5595 else
e46d2a18 5596 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5597 fi
e6cc62c6 5598
4f3c5f06 5599else
e6cc62c6 5600
e46d2a18 5601 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5602 if test "x$LINE" != x ; then
5603 eval "DEFAULT_$LINE"
5604 else
5605 no_cache=1
5606 fi
5607
e46d2a18 5608 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5609
e6cc62c6 5610fi;
4f3c5f06 5611
e46d2a18 5612 eval "$ac_cv_use_unicode"
4f3c5f06 5613 if test "$no_cache" != 1; then
e46d2a18 5614 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5615 fi
5616
e46d2a18 5617 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5618 echo "$as_me:$LINENO: result: yes" >&5
5619echo "${ECHO_T}yes" >&6
4f3c5f06 5620 else
e6cc62c6
VS
5621 echo "$as_me:$LINENO: result: no" >&5
5622echo "${ECHO_T}no" >&6
4f3c5f06 5623 fi
e6cc62c6 5624
52127426 5625
e46d2a18 5626 enablestring=
002ed9af
VS
5627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5628echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
e46d2a18 5629 no_cache=0
002ed9af
VS
5630 # Check whether --enable-sound or --disable-sound was given.
5631if test "${enable_sound+set}" = set; then
5632 enableval="$enable_sound"
e46d2a18
VS
5633
5634 if test "$enableval" = yes; then
002ed9af 5635 ac_cv_use_sound='wxUSE_SOUND=yes'
e46d2a18 5636 else
002ed9af 5637 ac_cv_use_sound='wxUSE_SOUND=no'
e46d2a18
VS
5638 fi
5639
5640else
5641
002ed9af 5642 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
e46d2a18
VS
5643 if test "x$LINE" != x ; then
5644 eval "DEFAULT_$LINE"
5645 else
5646 no_cache=1
5647 fi
5648
002ed9af 5649 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
e46d2a18
VS
5650
5651fi;
5652
002ed9af 5653 eval "$ac_cv_use_sound"
e46d2a18 5654 if test "$no_cache" != 1; then
002ed9af 5655 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
e46d2a18
VS
5656 fi
5657
002ed9af 5658 if test "$wxUSE_SOUND" = yes; then
e46d2a18
VS
5659 echo "$as_me:$LINENO: result: yes" >&5
5660echo "${ECHO_T}yes" >&6
5661 else
5662 echo "$as_me:$LINENO: result: no" >&5
5663echo "${ECHO_T}no" >&6
5664 fi
5665
8284b0c5 5666
5005acfe 5667 enablestring=
e46d2a18
VS
5668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5669echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5670 no_cache=0
e46d2a18
VS
5671 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5672if test "${enable_wxprintfv+set}" = set; then
5673 enableval="$enable_wxprintfv"
e6cc62c6 5674
1e6feb95 5675 if test "$enableval" = yes; then
e46d2a18 5676 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5677 else
e46d2a18 5678 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5679 fi
e6cc62c6 5680
1e6feb95 5681else
e6cc62c6 5682
e46d2a18 5683 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5684 if test "x$LINE" != x ; then
5685 eval "DEFAULT_$LINE"
5686 else
5687 no_cache=1
5688 fi
5689
e46d2a18 5690 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5691
e6cc62c6 5692fi;
1e6feb95 5693
e46d2a18 5694 eval "$ac_cv_use_wxprintfv"
1e6feb95 5695 if test "$no_cache" != 1; then
e46d2a18 5696 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5697 fi
5698
e46d2a18 5699 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5700 echo "$as_me:$LINENO: result: yes" >&5
5701echo "${ECHO_T}yes" >&6
1e6feb95 5702 else
e6cc62c6
VS
5703 echo "$as_me:$LINENO: result: no" >&5
5704echo "${ECHO_T}no" >&6
1e6feb95 5705 fi
e6cc62c6 5706
1e6feb95 5707
5005acfe 5708 enablestring=
e46d2a18
VS
5709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5710echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5711 no_cache=0
e46d2a18
VS
5712 # Check whether --enable-zipstream or --disable-zipstream was given.
5713if test "${enable_zipstream+set}" = set; then
5714 enableval="$enable_zipstream"
e6cc62c6 5715
3e44f09d 5716 if test "$enableval" = yes; then
e46d2a18 5717 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5718 else
e46d2a18 5719 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5720 fi
e6cc62c6 5721
3e44f09d 5722else
e6cc62c6 5723
e46d2a18 5724 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5725 if test "x$LINE" != x ; then
5726 eval "DEFAULT_$LINE"
5727 else
5728 no_cache=1
5729 fi
5730
e46d2a18 5731 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5732
e6cc62c6 5733fi;
3e44f09d 5734
e46d2a18 5735 eval "$ac_cv_use_zipstream"
3e44f09d 5736 if test "$no_cache" != 1; then
e46d2a18 5737 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5738 fi
5739
e46d2a18 5740 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5741 echo "$as_me:$LINENO: result: yes" >&5
5742echo "${ECHO_T}yes" >&6
3e44f09d 5743 else
e6cc62c6
VS
5744 echo "$as_me:$LINENO: result: no" >&5
5745echo "${ECHO_T}no" >&6
3e44f09d 5746 fi
e6cc62c6 5747
8284b0c5 5748
7015ef3a
VZ
5749 enablestring=
5750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5751echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5752 no_cache=0
5753 # Check whether --enable-gzstream or --disable-gzstream was given.
5754if test "${enable_gzstream+set}" = set; then
5755 enableval="$enable_gzstream"
5756
5757 if test "$enableval" = yes; then
5758 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5759 else
5760 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5761 fi
5762
5763else
5764
5765 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5766 if test "x$LINE" != x ; then
5767 eval "DEFAULT_$LINE"
5768 else
5769 no_cache=1
5770 fi
5771
5772 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5773
5774fi;
5775
5776 eval "$ac_cv_use_gzstream"
5777 if test "$no_cache" != 1; then
5778 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5779 fi
5780
5781 if test "$wxUSE_GZSTREAM" = yes; then
5782 echo "$as_me:$LINENO: result: yes" >&5
5783echo "${ECHO_T}yes" >&6
5784 else
5785 echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6
5787 fi
5788
5789
52127426 5790
5005acfe 5791 enablestring=
e6cc62c6
VS
5792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5793echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5794 no_cache=0
5795 # Check whether --enable-url or --disable-url was given.
5796if test "${enable_url+set}" = set; then
5797 enableval="$enable_url"
e6cc62c6 5798
4cdb0ab0
VS
5799 if test "$enableval" = yes; then
5800 ac_cv_use_url='wxUSE_URL=yes'
5801 else
5802 ac_cv_use_url='wxUSE_URL=no'
5803 fi
e6cc62c6 5804
4cdb0ab0 5805else
e6cc62c6 5806
4cdb0ab0
VS
5807 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5808 if test "x$LINE" != x ; then
5809 eval "DEFAULT_$LINE"
5810 else
5811 no_cache=1
5812 fi
5813
5814 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5815
e6cc62c6 5816fi;
4cdb0ab0
VS
5817
5818 eval "$ac_cv_use_url"
5819 if test "$no_cache" != 1; then
5820 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5821 fi
5822
5823 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5824 echo "$as_me:$LINENO: result: yes" >&5
5825echo "${ECHO_T}yes" >&6
4cdb0ab0 5826 else
e6cc62c6
VS
5827 echo "$as_me:$LINENO: result: no" >&5
5828echo "${ECHO_T}no" >&6
4cdb0ab0 5829 fi
e6cc62c6 5830
4cdb0ab0 5831
5005acfe 5832 enablestring=
e6cc62c6
VS
5833 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5834echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5835 no_cache=0
5836 # Check whether --enable-protocol or --disable-protocol was given.
5837if test "${enable_protocol+set}" = set; then
5838 enableval="$enable_protocol"
e6cc62c6 5839
4cdb0ab0
VS
5840 if test "$enableval" = yes; then
5841 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5842 else
5843 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5844 fi
e6cc62c6 5845
4cdb0ab0 5846else
e6cc62c6 5847
4cdb0ab0
VS
5848 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5849 if test "x$LINE" != x ; then
5850 eval "DEFAULT_$LINE"
5851 else
5852 no_cache=1
5853 fi
5854
5855 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5856
e6cc62c6 5857fi;
4cdb0ab0
VS
5858
5859 eval "$ac_cv_use_protocol"
5860 if test "$no_cache" != 1; then
5861 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5862 fi
5863
5864 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5865 echo "$as_me:$LINENO: result: yes" >&5
5866echo "${ECHO_T}yes" >&6
4cdb0ab0 5867 else
e6cc62c6
VS
5868 echo "$as_me:$LINENO: result: no" >&5
5869echo "${ECHO_T}no" >&6
4cdb0ab0 5870 fi
e6cc62c6 5871
4cdb0ab0 5872
5005acfe 5873 enablestring=
e6cc62c6
VS
5874 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5875echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5876 no_cache=0
5877 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5878if test "${enable_protocol_http+set}" = set; then
5879 enableval="$enable_protocol_http"
e6cc62c6 5880
4cdb0ab0
VS
5881 if test "$enableval" = yes; then
5882 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5883 else
5884 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5885 fi
e6cc62c6 5886
4cdb0ab0 5887else
e6cc62c6 5888
4cdb0ab0
VS
5889 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5890 if test "x$LINE" != x ; then
5891 eval "DEFAULT_$LINE"
5892 else
5893 no_cache=1
5894 fi
5895
5896 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5897
e6cc62c6 5898fi;
4cdb0ab0
VS
5899
5900 eval "$ac_cv_use_protocol_http"
5901 if test "$no_cache" != 1; then
5902 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5903 fi
5904
5905 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5906 echo "$as_me:$LINENO: result: yes" >&5
5907echo "${ECHO_T}yes" >&6
4cdb0ab0 5908 else
e6cc62c6
VS
5909 echo "$as_me:$LINENO: result: no" >&5
5910echo "${ECHO_T}no" >&6
4cdb0ab0 5911 fi
e6cc62c6 5912
4cdb0ab0 5913
5005acfe 5914 enablestring=
e6cc62c6
VS
5915 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5916echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5917 no_cache=0
5918 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5919if test "${enable_protocol_ftp+set}" = set; then
5920 enableval="$enable_protocol_ftp"
e6cc62c6 5921
4cdb0ab0
VS
5922 if test "$enableval" = yes; then
5923 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5924 else
5925 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5926 fi
e6cc62c6 5927
4cdb0ab0 5928else
e6cc62c6 5929
4cdb0ab0
VS
5930 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5931 if test "x$LINE" != x ; then
5932 eval "DEFAULT_$LINE"
5933 else
5934 no_cache=1
5935 fi
5936
5937 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5938
e6cc62c6 5939fi;
4cdb0ab0
VS
5940
5941 eval "$ac_cv_use_protocol_ftp"
5942 if test "$no_cache" != 1; then
5943 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5944 fi
5945
5946 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5947 echo "$as_me:$LINENO: result: yes" >&5
5948echo "${ECHO_T}yes" >&6
4cdb0ab0 5949 else
e6cc62c6
VS
5950 echo "$as_me:$LINENO: result: no" >&5
5951echo "${ECHO_T}no" >&6
4cdb0ab0 5952 fi
e6cc62c6 5953
4cdb0ab0 5954
5005acfe 5955 enablestring=
e6cc62c6
VS
5956 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5957echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5958 no_cache=0
5959 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5960if test "${enable_protocol_file+set}" = set; then
5961 enableval="$enable_protocol_file"
e6cc62c6 5962
4cdb0ab0
VS
5963 if test "$enableval" = yes; then
5964 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5965 else
5966 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5967 fi
e6cc62c6 5968
4cdb0ab0 5969else
e6cc62c6 5970
4cdb0ab0
VS
5971 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5972 if test "x$LINE" != x ; then
5973 eval "DEFAULT_$LINE"
5974 else
5975 no_cache=1
5976 fi
5977
5978 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5979
e6cc62c6 5980fi;
4cdb0ab0
VS
5981
5982 eval "$ac_cv_use_protocol_file"
5983 if test "$no_cache" != 1; then
5984 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5985 fi
5986
5987 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5988 echo "$as_me:$LINENO: result: yes" >&5
5989echo "${ECHO_T}yes" >&6
4cdb0ab0 5990 else
e6cc62c6
VS
5991 echo "$as_me:$LINENO: result: no" >&5
5992echo "${ECHO_T}no" >&6
4cdb0ab0 5993 fi
e6cc62c6 5994
52127426 5995
8284b0c5
MB
5996
5997
5998
5005acfe 5999 enablestring=
e6cc62c6
VS
6000 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
6001echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
6002 no_cache=0
6003 # Check whether --enable-threads or --disable-threads was given.
6004if test "${enable_threads+set}" = set; then
6005 enableval="$enable_threads"
e6cc62c6 6006
10f2d63a
VZ
6007 if test "$enableval" = yes; then
6008 ac_cv_use_threads='wxUSE_THREADS=yes'
6009 else
6010 ac_cv_use_threads='wxUSE_THREADS=no'
6011 fi
e6cc62c6 6012
10f2d63a 6013else
e6cc62c6 6014
10f2d63a
VZ
6015 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
6016 if test "x$LINE" != x ; then
6017 eval "DEFAULT_$LINE"
6018 else
6019 no_cache=1
6020 fi
6021
6022 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 6023
e6cc62c6 6024fi;
10f2d63a
VZ
6025
6026 eval "$ac_cv_use_threads"
6027 if test "$no_cache" != 1; then
6028 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
6029 fi
6030
6031 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
6032 echo "$as_me:$LINENO: result: yes" >&5
6033echo "${ECHO_T}yes" >&6
10f2d63a 6034 else
e6cc62c6
VS
6035 echo "$as_me:$LINENO: result: no" >&5
6036echo "${ECHO_T}no" >&6
10f2d63a 6037 fi
e6cc62c6 6038
10f2d63a 6039
b12915c1
VZ
6040if test "$wxUSE_GUI" = "yes"; then
6041
8284b0c5
MB
6042
6043
5005acfe 6044 enablestring=
e6cc62c6
VS
6045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6046echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
6047 no_cache=0
6048 # Check whether --enable-docview or --disable-docview was given.
6049if test "${enable_docview+set}" = set; then
6050 enableval="$enable_docview"
e6cc62c6 6051
10f2d63a
VZ
6052 if test "$enableval" = yes; then
6053 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6054 else
6055 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6056 fi
e6cc62c6 6057
10f2d63a 6058else
e6cc62c6 6059
10f2d63a
VZ
6060 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6061 if test "x$LINE" != x ; then
6062 eval "DEFAULT_$LINE"
6063 else
6064 no_cache=1
6065 fi
6066
6067 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 6068
e6cc62c6 6069fi;
10f2d63a
VZ
6070
6071 eval "$ac_cv_use_docview"
6072 if test "$no_cache" != 1; then
6073 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6074 fi
6075
6076 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
6077 echo "$as_me:$LINENO: result: yes" >&5
6078echo "${ECHO_T}yes" >&6
10f2d63a 6079 else
e6cc62c6
VS
6080 echo "$as_me:$LINENO: result: no" >&5
6081echo "${ECHO_T}no" >&6
10f2d63a 6082 fi
e6cc62c6 6083
10f2d63a 6084
5005acfe 6085 enablestring=
e6cc62c6
VS
6086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6087echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
6088 no_cache=0
6089 # Check whether --enable-help or --disable-help was given.
6090if test "${enable_help+set}" = set; then
6091 enableval="$enable_help"
e6cc62c6 6092
10f2d63a
VZ
6093 if test "$enableval" = yes; then
6094 ac_cv_use_help='wxUSE_HELP=yes'
6095 else
6096 ac_cv_use_help='wxUSE_HELP=no'
6097 fi
e6cc62c6 6098
10f2d63a 6099else
e6cc62c6 6100
10f2d63a
VZ
6101 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6102 if test "x$LINE" != x ; then
6103 eval "DEFAULT_$LINE"
6104 else
6105 no_cache=1
6106 fi
6107
6108 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 6109
e6cc62c6 6110fi;
10f2d63a
VZ
6111
6112 eval "$ac_cv_use_help"
6113 if test "$no_cache" != 1; then
6114 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6115 fi
6116
6117 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
6118 echo "$as_me:$LINENO: result: yes" >&5
6119echo "${ECHO_T}yes" >&6
10f2d63a 6120 else
e6cc62c6
VS
6121 echo "$as_me:$LINENO: result: no" >&5
6122echo "${ECHO_T}no" >&6
10f2d63a 6123 fi
e6cc62c6 6124
10f2d63a 6125
5005acfe 6126 enablestring=
e6cc62c6
VS
6127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6128echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
6129 no_cache=0
6130 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6131if test "${enable_mshtmlhelp+set}" = set; then
6132 enableval="$enable_mshtmlhelp"
e6cc62c6 6133
29fd3c0c
VS
6134 if test "$enableval" = yes; then
6135 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6136 else
6137 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6138 fi
e6cc62c6 6139
29fd3c0c 6140else
e6cc62c6 6141
29fd3c0c
VS
6142 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6143 if test "x$LINE" != x ; then
6144 eval "DEFAULT_$LINE"
6145 else
6146 no_cache=1
6147 fi
6148
6149 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 6150
e6cc62c6 6151fi;
29fd3c0c
VS
6152
6153 eval "$ac_cv_use_mshtmlhelp"
6154 if test "$no_cache" != 1; then
6155 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6156 fi
6157
6158 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
6159 echo "$as_me:$LINENO: result: yes" >&5
6160echo "${ECHO_T}yes" >&6
29fd3c0c 6161 else
e6cc62c6
VS
6162 echo "$as_me:$LINENO: result: no" >&5
6163echo "${ECHO_T}no" >&6
29fd3c0c 6164 fi
e6cc62c6 6165
29fd3c0c 6166
5005acfe 6167 enablestring=
e6cc62c6
VS
6168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6169echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
6170 no_cache=0
6171 # Check whether --enable-html or --disable-html was given.
6172if test "${enable_html+set}" = set; then
6173 enableval="$enable_html"
e6cc62c6 6174
3379ed37
VZ
6175 if test "$enableval" = yes; then
6176 ac_cv_use_html='wxUSE_HTML=yes'
6177 else
6178 ac_cv_use_html='wxUSE_HTML=no'
6179 fi
e6cc62c6 6180
3379ed37 6181else
e6cc62c6 6182
3379ed37
VZ
6183 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6184 if test "x$LINE" != x ; then
6185 eval "DEFAULT_$LINE"
6186 else
6187 no_cache=1
6188 fi
6189
6190 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 6191
e6cc62c6 6192fi;
3379ed37
VZ
6193
6194 eval "$ac_cv_use_html"
6195 if test "$no_cache" != 1; then
6196 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6197 fi
6198
6199 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
6200 echo "$as_me:$LINENO: result: yes" >&5
6201echo "${ECHO_T}yes" >&6
3379ed37 6202 else
e6cc62c6
VS
6203 echo "$as_me:$LINENO: result: no" >&5
6204echo "${ECHO_T}no" >&6
3379ed37 6205 fi
e6cc62c6 6206
3379ed37 6207
5005acfe 6208 enablestring=
e6cc62c6
VS
6209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6210echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
6211 no_cache=0
6212 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6213if test "${enable_htmlhelp+set}" = set; then
6214 enableval="$enable_htmlhelp"
e6cc62c6 6215
3379ed37
VZ
6216 if test "$enableval" = yes; then
6217 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6218 else
6219 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6220 fi
e6cc62c6 6221
3379ed37 6222else
e6cc62c6 6223
3379ed37
VZ
6224 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6225 if test "x$LINE" != x ; then
6226 eval "DEFAULT_$LINE"
6227 else
6228 no_cache=1
6229 fi
6230
6231 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6232
e6cc62c6 6233fi;
3379ed37
VZ
6234
6235 eval "$ac_cv_use_htmlhelp"
6236 if test "$no_cache" != 1; then
6237 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6238 fi
6239
6240 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6241 echo "$as_me:$LINENO: result: yes" >&5
6242echo "${ECHO_T}yes" >&6
3379ed37 6243 else
e6cc62c6
VS
6244 echo "$as_me:$LINENO: result: no" >&5
6245echo "${ECHO_T}no" >&6
3379ed37 6246 fi
e6cc62c6 6247
3379ed37 6248
5005acfe 6249 enablestring=
e6cc62c6
VS
6250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6251echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6252 no_cache=0
6253 # Check whether --enable-constraints or --disable-constraints was given.
6254if test "${enable_constraints+set}" = set; then
6255 enableval="$enable_constraints"
e6cc62c6 6256
10f2d63a
VZ
6257 if test "$enableval" = yes; then
6258 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6259 else
6260 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6261 fi
e6cc62c6 6262
10f2d63a 6263else
e6cc62c6 6264
10f2d63a
VZ
6265 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6266 if test "x$LINE" != x ; then
6267 eval "DEFAULT_$LINE"
6268 else
6269 no_cache=1
6270 fi
6271
6272 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6273
e6cc62c6 6274fi;
10f2d63a
VZ
6275
6276 eval "$ac_cv_use_constraints"
6277 if test "$no_cache" != 1; then
6278 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6279 fi
6280
6281 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6282 echo "$as_me:$LINENO: result: yes" >&5
6283echo "${ECHO_T}yes" >&6
10f2d63a 6284 else
e6cc62c6
VS
6285 echo "$as_me:$LINENO: result: no" >&5
6286echo "${ECHO_T}no" >&6
10f2d63a 6287 fi
e6cc62c6 6288
10f2d63a 6289
5005acfe 6290 enablestring=
e6cc62c6
VS
6291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6292echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6293 no_cache=0
6294 # Check whether --enable-printarch or --disable-printarch was given.
6295if test "${enable_printarch+set}" = set; then
6296 enableval="$enable_printarch"
e6cc62c6 6297
10f2d63a
VZ
6298 if test "$enableval" = yes; then
6299 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6300 else
6301 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6302 fi
e6cc62c6 6303
10f2d63a 6304else
e6cc62c6 6305
10f2d63a
VZ
6306 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6307 if test "x$LINE" != x ; then
6308 eval "DEFAULT_$LINE"
6309 else
6310 no_cache=1
6311 fi
6312
6313 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6314
e6cc62c6 6315fi;
10f2d63a
VZ
6316
6317 eval "$ac_cv_use_printarch"
6318 if test "$no_cache" != 1; then
6319 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6320 fi
6321
6322 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6323 echo "$as_me:$LINENO: result: yes" >&5
6324echo "${ECHO_T}yes" >&6
10f2d63a 6325 else
e6cc62c6
VS
6326 echo "$as_me:$LINENO: result: no" >&5
6327echo "${ECHO_T}no" >&6
10f2d63a 6328 fi
e6cc62c6 6329
10f2d63a 6330
5005acfe 6331 enablestring=
e6cc62c6
VS
6332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6333echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6334 no_cache=0
6335 # Check whether --enable-mdi or --disable-mdi was given.
6336if test "${enable_mdi+set}" = set; then
6337 enableval="$enable_mdi"
e6cc62c6 6338
10f2d63a
VZ
6339 if test "$enableval" = yes; then
6340 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6341 else
6342 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6343 fi
e6cc62c6 6344
10f2d63a 6345else
e6cc62c6 6346
10f2d63a
VZ
6347 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6348 if test "x$LINE" != x ; then
6349 eval "DEFAULT_$LINE"
6350 else
6351 no_cache=1
6352 fi
6353
6354 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6355
e6cc62c6 6356fi;
10f2d63a
VZ
6357
6358 eval "$ac_cv_use_mdi"
6359 if test "$no_cache" != 1; then
6360 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6361 fi
6362
6363 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6364 echo "$as_me:$LINENO: result: yes" >&5
6365echo "${ECHO_T}yes" >&6
10f2d63a 6366 else
e6cc62c6
VS
6367 echo "$as_me:$LINENO: result: no" >&5
6368echo "${ECHO_T}no" >&6
10f2d63a 6369 fi
e6cc62c6 6370
698dcdb6 6371
5005acfe 6372 enablestring=
e6cc62c6
VS
6373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6374echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6375 no_cache=0
6376 # Check whether --enable-loggui or --disable-loggui was given.
6377if test "${enable_loggui+set}" = set; then
6378 enableval="$enable_loggui"
e6cc62c6 6379
1e6feb95
VZ
6380 if test "$enableval" = yes; then
6381 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6382 else
6383 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6384 fi
e6cc62c6 6385
1e6feb95 6386else
e6cc62c6 6387
1e6feb95
VZ
6388 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6389 if test "x$LINE" != x ; then
6390 eval "DEFAULT_$LINE"
6391 else
6392 no_cache=1
6393 fi
6394
6395 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6396
e6cc62c6 6397fi;
1e6feb95
VZ
6398
6399 eval "$ac_cv_use_loggui"
6400 if test "$no_cache" != 1; then
6401 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6402 fi
6403
6404 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6405 echo "$as_me:$LINENO: result: yes" >&5
6406echo "${ECHO_T}yes" >&6
1e6feb95 6407 else
e6cc62c6
VS
6408 echo "$as_me:$LINENO: result: no" >&5
6409echo "${ECHO_T}no" >&6
1e6feb95 6410 fi
e6cc62c6 6411
1e6feb95 6412
5005acfe 6413 enablestring=
e6cc62c6
VS
6414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6415echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6416 no_cache=0
6417 # Check whether --enable-logwin or --disable-logwin was given.
6418if test "${enable_logwin+set}" = set; then
6419 enableval="$enable_logwin"
e6cc62c6 6420
1e6feb95
VZ
6421 if test "$enableval" = yes; then
6422 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6423 else
6424 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6425 fi
e6cc62c6 6426
1e6feb95 6427else
e6cc62c6 6428
1e6feb95
VZ
6429 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6430 if test "x$LINE" != x ; then
6431 eval "DEFAULT_$LINE"
6432 else
6433 no_cache=1
6434 fi
6435
6436 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6437
e6cc62c6 6438fi;
1e6feb95
VZ
6439
6440 eval "$ac_cv_use_logwin"
6441 if test "$no_cache" != 1; then
6442 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6443 fi
6444
6445 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6446 echo "$as_me:$LINENO: result: yes" >&5
6447echo "${ECHO_T}yes" >&6
1e6feb95 6448 else
e6cc62c6
VS
6449 echo "$as_me:$LINENO: result: no" >&5
6450echo "${ECHO_T}no" >&6
1e6feb95 6451 fi
e6cc62c6 6452
1e6feb95 6453
5005acfe 6454 enablestring=
e6cc62c6
VS
6455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6456echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6457 no_cache=0
6458 # Check whether --enable-logdialog or --disable-logdialog was given.
6459if test "${enable_logdialog+set}" = set; then
6460 enableval="$enable_logdialog"
e6cc62c6 6461
69d27ff7
MB
6462 if test "$enableval" = yes; then
6463 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6464 else
6465 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6466 fi
e6cc62c6 6467
69d27ff7 6468else
e6cc62c6 6469
69d27ff7
MB
6470 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6471 if test "x$LINE" != x ; then
6472 eval "DEFAULT_$LINE"
6473 else
6474 no_cache=1
6475 fi
6476
6477 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6478
e6cc62c6 6479fi;
69d27ff7
MB
6480
6481 eval "$ac_cv_use_logdialog"
6482 if test "$no_cache" != 1; then
6483 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6484 fi
6485
6486 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6487 echo "$as_me:$LINENO: result: yes" >&5
6488echo "${ECHO_T}yes" >&6
69d27ff7 6489 else
e6cc62c6
VS
6490 echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6
69d27ff7 6492 fi
e6cc62c6 6493
8284b0c5 6494
52127426 6495
5005acfe 6496 enablestring=
e6cc62c6
VS
6497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6498echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6499 no_cache=0
6500 # Check whether --enable-postscript or --disable-postscript was given.
6501if test "${enable_postscript+set}" = set; then
6502 enableval="$enable_postscript"
e6cc62c6 6503
10f2d63a
VZ
6504 if test "$enableval" = yes; then
6505 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6506 else
6507 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6508 fi
e6cc62c6 6509
10f2d63a 6510else
e6cc62c6 6511
10f2d63a
VZ
6512 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6513 if test "x$LINE" != x ; then
6514 eval "DEFAULT_$LINE"
6515 else
6516 no_cache=1
6517 fi
6518
6519 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6520
e6cc62c6 6521fi;
10f2d63a
VZ
6522
6523 eval "$ac_cv_use_postscript"
6524 if test "$no_cache" != 1; then
6525 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6526 fi
6527
6528 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6529 echo "$as_me:$LINENO: result: yes" >&5
6530echo "${ECHO_T}yes" >&6
10f2d63a 6531 else
e6cc62c6
VS
6532 echo "$as_me:$LINENO: result: no" >&5
6533echo "${ECHO_T}no" >&6
10f2d63a 6534 fi
e6cc62c6 6535
8284b0c5
MB
6536
6537
52127426 6538
8284b0c5 6539
5005acfe 6540 enablestring=
e6cc62c6
VS
6541 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6542echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6543 no_cache=0
3c907f20
VZ
6544 # Check whether --enable-prologio or --disable-prologio was given.
6545if test "${enable_prologio+set}" = set; then
6546 enableval="$enable_prologio"
e6cc62c6 6547
10f2d63a 6548 if test "$enableval" = yes; then
3c907f20 6549 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6550 else
3c907f20 6551 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6552 fi
e6cc62c6 6553
10f2d63a 6554else
e6cc62c6 6555
3c907f20 6556 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6557 if test "x$LINE" != x ; then
6558 eval "DEFAULT_$LINE"
6559 else
6560 no_cache=1
6561 fi
6562
3c907f20 6563 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6564
e6cc62c6 6565fi;
10f2d63a 6566
3c907f20 6567 eval "$ac_cv_use_prologio"
10f2d63a 6568 if test "$no_cache" != 1; then
3c907f20 6569 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6570 fi
6571
3c907f20 6572 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6573 echo "$as_me:$LINENO: result: yes" >&5
6574echo "${ECHO_T}yes" >&6
10f2d63a 6575 else
e6cc62c6
VS
6576 echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6
10f2d63a 6578 fi
e6cc62c6 6579
8284b0c5 6580
5005acfe 6581 enablestring=
e6cc62c6
VS
6582 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6583echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6584 no_cache=0
3c907f20
VZ
6585 # Check whether --enable-resources or --disable-resources was given.
6586if test "${enable_resources+set}" = set; then
6587 enableval="$enable_resources"
e6cc62c6 6588
10f2d63a 6589 if test "$enableval" = yes; then
3c907f20 6590 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6591 else
3c907f20 6592 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6593 fi
e6cc62c6 6594
10f2d63a 6595else
e6cc62c6 6596
3c907f20 6597 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6598 if test "x$LINE" != x ; then
6599 eval "DEFAULT_$LINE"
6600 else
6601 no_cache=1
6602 fi
6603
3c907f20 6604 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6605
e6cc62c6 6606fi;
10f2d63a 6607
3c907f20 6608 eval "$ac_cv_use_resources"
10f2d63a 6609 if test "$no_cache" != 1; then
3c907f20 6610 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6611 fi
6612
3c907f20 6613 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6614 echo "$as_me:$LINENO: result: yes" >&5
6615echo "${ECHO_T}yes" >&6
10f2d63a 6616 else
e6cc62c6
VS
6617 echo "$as_me:$LINENO: result: no" >&5
6618echo "${ECHO_T}no" >&6
10f2d63a 6619 fi
e6cc62c6 6620
8284b0c5
MB
6621
6622
52127426 6623
5005acfe 6624 enablestring=
e6cc62c6
VS
6625 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6626echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6627 no_cache=0
6628 # Check whether --enable-clipboard or --disable-clipboard was given.
6629if test "${enable_clipboard+set}" = set; then
6630 enableval="$enable_clipboard"
e6cc62c6 6631
10f2d63a
VZ
6632 if test "$enableval" = yes; then
6633 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6634 else
6635 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6636 fi
e6cc62c6 6637
10f2d63a 6638else
e6cc62c6 6639
10f2d63a
VZ
6640 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6641 if test "x$LINE" != x ; then
6642 eval "DEFAULT_$LINE"
6643 else
6644 no_cache=1
6645 fi
6646
6647 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6648
e6cc62c6 6649fi;
10f2d63a
VZ
6650
6651 eval "$ac_cv_use_clipboard"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6657 echo "$as_me:$LINENO: result: yes" >&5
6658echo "${ECHO_T}yes" >&6
10f2d63a 6659 else
e6cc62c6
VS
6660 echo "$as_me:$LINENO: result: no" >&5
6661echo "${ECHO_T}no" >&6
10f2d63a 6662 fi
e6cc62c6 6663
10f2d63a 6664
5005acfe 6665 enablestring=
e6cc62c6
VS
6666 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6667echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6668 no_cache=0
6669 # Check whether --enable-dnd or --disable-dnd was given.
6670if test "${enable_dnd+set}" = set; then
6671 enableval="$enable_dnd"
e6cc62c6 6672
10f2d63a
VZ
6673 if test "$enableval" = yes; then
6674 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6675 else
6676 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6677 fi
e6cc62c6 6678
10f2d63a 6679else
e6cc62c6 6680
10f2d63a
VZ
6681 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6682 if test "x$LINE" != x ; then
6683 eval "DEFAULT_$LINE"
6684 else
6685 no_cache=1
6686 fi
6687
6688 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6689
e6cc62c6 6690fi;
10f2d63a
VZ
6691
6692 eval "$ac_cv_use_dnd"
6693 if test "$no_cache" != 1; then
6694 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6695 fi
6696
6697 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6698 echo "$as_me:$LINENO: result: yes" >&5
6699echo "${ECHO_T}yes" >&6
10f2d63a 6700 else
e6cc62c6
VS
6701 echo "$as_me:$LINENO: result: no" >&5
6702echo "${ECHO_T}no" >&6
10f2d63a 6703 fi
e6cc62c6 6704
10f2d63a 6705
5005acfe 6706 enablestring=
e6cc62c6
VS
6707 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6708echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6709 no_cache=0
6710 # Check whether --enable-metafile or --disable-metafile was given.
6711if test "${enable_metafile+set}" = set; then
6712 enableval="$enable_metafile"
e6cc62c6 6713
b64f0a5f
RL
6714 if test "$enableval" = yes; then
6715 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6716 else
6717 ac_cv_use_metafile='wxUSE_METAFILE=no'
6718 fi
e6cc62c6 6719
b64f0a5f 6720else
e6cc62c6 6721
b64f0a5f
RL
6722 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6723 if test "x$LINE" != x ; then
6724 eval "DEFAULT_$LINE"
6725 else
6726 no_cache=1
6727 fi
6728
6729 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6730
e6cc62c6 6731fi;
b64f0a5f
RL
6732
6733 eval "$ac_cv_use_metafile"
6734 if test "$no_cache" != 1; then
6735 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6736 fi
6737
6738 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6739 echo "$as_me:$LINENO: result: yes" >&5
6740echo "${ECHO_T}yes" >&6
b64f0a5f 6741 else
e6cc62c6
VS
6742 echo "$as_me:$LINENO: result: no" >&5
6743echo "${ECHO_T}no" >&6
b64f0a5f 6744 fi
e6cc62c6 6745
52127426 6746
8284b0c5 6747
52127426 6748
8284b0c5 6749
5005acfe 6750 enablestring=
e6cc62c6
VS
6751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6752echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6753 no_cache=0
6754 # Check whether --enable-controls or --disable-controls was given.
6755if test "${enable_controls+set}" = set; then
6756 enableval="$enable_controls"
e6cc62c6 6757
10f2d63a
VZ
6758 if test "$enableval" = yes; then
6759 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6760 else
6761 ac_cv_use_controls='wxUSE_CONTROLS=no'
6762 fi
e6cc62c6 6763
10f2d63a 6764else
e6cc62c6 6765
10f2d63a
VZ
6766 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6767 if test "x$LINE" != x ; then
6768 eval "DEFAULT_$LINE"
6769 else
6770 no_cache=1
6771 fi
6772
6773 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6774
e6cc62c6 6775fi;
10f2d63a
VZ
6776
6777 eval "$ac_cv_use_controls"
6778 if test "$no_cache" != 1; then
6779 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6780 fi
6781
6782 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6783 echo "$as_me:$LINENO: result: yes" >&5
6784echo "${ECHO_T}yes" >&6
10f2d63a 6785 else
e6cc62c6
VS
6786 echo "$as_me:$LINENO: result: no" >&5
6787echo "${ECHO_T}no" >&6
10f2d63a 6788 fi
e6cc62c6 6789
10f2d63a
VZ
6790
6791if test "$wxUSE_CONTROLS" = "yes"; then
6792 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6793 DEFAULT_wxUSE_BMPBUTTON=yes
6794 DEFAULT_wxUSE_BUTTON=yes
6795 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6796 DEFAULT_wxUSE_CARET=yes
6797 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6798 DEFAULT_wxUSE_CHECKBOX=yes
6799 DEFAULT_wxUSE_CHECKLISTBOX=yes
6800 DEFAULT_wxUSE_CHOICE=yes
6801 DEFAULT_wxUSE_GAUGE=yes
6802 DEFAULT_wxUSE_GRID=yes
10f2d63a 6803 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6804 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6805 DEFAULT_wxUSE_LISTBOX=yes
6806 DEFAULT_wxUSE_LISTCTRL=yes
6807 DEFAULT_wxUSE_NOTEBOOK=yes
6808 DEFAULT_wxUSE_RADIOBOX=yes
6809 DEFAULT_wxUSE_RADIOBTN=yes
6810 DEFAULT_wxUSE_SASH=yes
6811 DEFAULT_wxUSE_SCROLLBAR=yes
6812 DEFAULT_wxUSE_SLIDER=yes
6813 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6814 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6815 DEFAULT_wxUSE_SPLITTER=yes
6816 DEFAULT_wxUSE_STATBMP=yes
6817 DEFAULT_wxUSE_STATBOX=yes
6818 DEFAULT_wxUSE_STATLINE=yes
6819 DEFAULT_wxUSE_STATUSBAR=yes
6820 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6821 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6822 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6823 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6824 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6825 DEFAULT_wxUSE_TOOLTIPS=yes
6826 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6827 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6828 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6829elif test "$wxUSE_CONTROLS" = "no"; then
6830 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6831 DEFAULT_wxUSE_BMPBUTTON=no
6832 DEFAULT_wxUSE_BUTTON=no
6833 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6834 DEFAULT_wxUSE_CARET=no
6835 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6836 DEFAULT_wxUSE_CHECKBOX=no
6837 DEFAULT_wxUSE_CHECKLISTBOX=no
6838 DEFAULT_wxUSE_CHOICE=no
6839 DEFAULT_wxUSE_GAUGE=no
6840 DEFAULT_wxUSE_GRID=no
10f2d63a 6841 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6842 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6843 DEFAULT_wxUSE_LISTBOX=no
6844 DEFAULT_wxUSE_LISTCTRL=no
6845 DEFAULT_wxUSE_NOTEBOOK=no
6846 DEFAULT_wxUSE_RADIOBOX=no
6847 DEFAULT_wxUSE_RADIOBTN=no
6848 DEFAULT_wxUSE_SASH=no
6849 DEFAULT_wxUSE_SCROLLBAR=no
6850 DEFAULT_wxUSE_SLIDER=no
6851 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6852 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6853 DEFAULT_wxUSE_SPLITTER=no
6854 DEFAULT_wxUSE_STATBMP=no
6855 DEFAULT_wxUSE_STATBOX=no
6856 DEFAULT_wxUSE_STATLINE=no
6857 DEFAULT_wxUSE_STATUSBAR=no
6858 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6859 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6860 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6861 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6862 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6863 DEFAULT_wxUSE_TOOLTIPS=no
6864 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6865 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6866 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6867fi
6868
ac0c4cc3
DE
6869## FIXME: This is a blatant hack
6870if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6871 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6872 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6873 # Generic notebook requires tab dialog
6874 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6875 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6876 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6877 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6878fi
6879
8284b0c5 6880
5005acfe 6881 enablestring=
e6cc62c6
VS
6882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6883echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6884 no_cache=0
6885 # Check whether --enable-accel or --disable-accel was given.
6886if test "${enable_accel+set}" = set; then
6887 enableval="$enable_accel"
e6cc62c6 6888
10f2d63a
VZ
6889 if test "$enableval" = yes; then
6890 ac_cv_use_accel='wxUSE_ACCEL=yes'
6891 else
6892 ac_cv_use_accel='wxUSE_ACCEL=no'
6893 fi
e6cc62c6 6894
10f2d63a 6895else
e6cc62c6 6896
10f2d63a
VZ
6897 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6898 if test "x$LINE" != x ; then
6899 eval "DEFAULT_$LINE"
6900 else
6901 no_cache=1
6902 fi
6903
6904 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6905
e6cc62c6 6906fi;
10f2d63a
VZ
6907
6908 eval "$ac_cv_use_accel"
6909 if test "$no_cache" != 1; then
6910 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6911 fi
6912
6913 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6914 echo "$as_me:$LINENO: result: yes" >&5
6915echo "${ECHO_T}yes" >&6
10f2d63a 6916 else
e6cc62c6
VS
6917 echo "$as_me:$LINENO: result: no" >&5
6918echo "${ECHO_T}no" >&6
10f2d63a 6919 fi
e6cc62c6 6920
10f2d63a 6921
5005acfe 6922 enablestring=
e6cc62c6
VS
6923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6924echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6925 no_cache=0
1e6feb95
VZ
6926 # Check whether --enable-button or --disable-button was given.
6927if test "${enable_button+set}" = set; then
6928 enableval="$enable_button"
e6cc62c6 6929
10f2d63a 6930 if test "$enableval" = yes; then
1e6feb95 6931 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6932 else
1e6feb95 6933 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6934 fi
e6cc62c6 6935
10f2d63a 6936else
e6cc62c6 6937
1e6feb95 6938 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6939 if test "x$LINE" != x ; then
6940 eval "DEFAULT_$LINE"
6941 else
6942 no_cache=1
6943 fi
6944
1e6feb95 6945 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6946
e6cc62c6 6947fi;
10f2d63a 6948
1e6feb95 6949 eval "$ac_cv_use_button"
10f2d63a 6950 if test "$no_cache" != 1; then
1e6feb95 6951 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6952 fi
6953
1e6feb95 6954 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6955 echo "$as_me:$LINENO: result: yes" >&5
6956echo "${ECHO_T}yes" >&6
10f2d63a 6957 else
e6cc62c6
VS
6958 echo "$as_me:$LINENO: result: no" >&5
6959echo "${ECHO_T}no" >&6
10f2d63a 6960 fi
e6cc62c6 6961
10f2d63a 6962
5005acfe 6963 enablestring=
e6cc62c6
VS
6964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6965echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6966 no_cache=0
6967 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6968if test "${enable_bmpbutton+set}" = set; then
6969 enableval="$enable_bmpbutton"
e6cc62c6 6970
10f2d63a
VZ
6971 if test "$enableval" = yes; then
6972 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6973 else
6974 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6975 fi
e6cc62c6 6976
10f2d63a 6977else
e6cc62c6 6978
10f2d63a
VZ
6979 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6980 if test "x$LINE" != x ; then
6981 eval "DEFAULT_$LINE"
6982 else
6983 no_cache=1
6984 fi
6985
6986 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6987
e6cc62c6 6988fi;
10f2d63a
VZ
6989
6990 eval "$ac_cv_use_bmpbutton"
6991 if test "$no_cache" != 1; then
6992 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6993 fi
6994
6995 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6996 echo "$as_me:$LINENO: result: yes" >&5
6997echo "${ECHO_T}yes" >&6
10f2d63a 6998 else
e6cc62c6
VS
6999 echo "$as_me:$LINENO: result: no" >&5
7000echo "${ECHO_T}no" >&6
10f2d63a 7001 fi
e6cc62c6 7002
10f2d63a 7003
5005acfe 7004 enablestring=
e6cc62c6
VS
7005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
7006echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
7007 no_cache=0
7008 # Check whether --enable-calendar or --disable-calendar was given.
7009if test "${enable_calendar+set}" = set; then
7010 enableval="$enable_calendar"
e6cc62c6 7011
1e6feb95
VZ
7012 if test "$enableval" = yes; then
7013 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
7014 else
7015 ac_cv_use_calendar='wxUSE_CALCTRL=no'
7016 fi
e6cc62c6 7017
1e6feb95 7018else
e6cc62c6 7019
1e6feb95
VZ
7020 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
7021 if test "x$LINE" != x ; then
7022 eval "DEFAULT_$LINE"
7023 else
7024 no_cache=1
7025 fi
7026
7027 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 7028
e6cc62c6 7029fi;
1e6feb95
VZ
7030
7031 eval "$ac_cv_use_calendar"
7032 if test "$no_cache" != 1; then
7033 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
7034 fi
7035
7036 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
7037 echo "$as_me:$LINENO: result: yes" >&5
7038echo "${ECHO_T}yes" >&6
1e6feb95 7039 else
e6cc62c6
VS
7040 echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6
1e6feb95 7042 fi
e6cc62c6 7043
1e6feb95 7044
5005acfe 7045 enablestring=
e6cc62c6
VS
7046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7047echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
7048 no_cache=0
7049 # Check whether --enable-caret or --disable-caret was given.
7050if test "${enable_caret+set}" = set; then
7051 enableval="$enable_caret"
e6cc62c6 7052
1e6feb95
VZ
7053 if test "$enableval" = yes; then
7054 ac_cv_use_caret='wxUSE_CARET=yes'
7055 else
7056 ac_cv_use_caret='wxUSE_CARET=no'
7057 fi
e6cc62c6 7058
1e6feb95 7059else
e6cc62c6 7060
1e6feb95
VZ
7061 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7062 if test "x$LINE" != x ; then
7063 eval "DEFAULT_$LINE"
7064 else
7065 no_cache=1
7066 fi
7067
7068 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 7069
e6cc62c6 7070fi;
1e6feb95
VZ
7071
7072 eval "$ac_cv_use_caret"
7073 if test "$no_cache" != 1; then
7074 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7075 fi
7076
7077 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
7078 echo "$as_me:$LINENO: result: yes" >&5
7079echo "${ECHO_T}yes" >&6
1e6feb95 7080 else
e6cc62c6
VS
7081 echo "$as_me:$LINENO: result: no" >&5
7082echo "${ECHO_T}no" >&6
1e6feb95 7083 fi
e6cc62c6 7084
1e6feb95 7085
5005acfe 7086 enablestring=
e6cc62c6
VS
7087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7088echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
7089 no_cache=0
7090 # Check whether --enable-checkbox or --disable-checkbox was given.
7091if test "${enable_checkbox+set}" = set; then
7092 enableval="$enable_checkbox"
e6cc62c6 7093
10f2d63a
VZ
7094 if test "$enableval" = yes; then
7095 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7096 else
7097 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7098 fi
e6cc62c6 7099
10f2d63a 7100else
e6cc62c6 7101
10f2d63a
VZ
7102 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7103 if test "x$LINE" != x ; then
7104 eval "DEFAULT_$LINE"
7105 else
7106 no_cache=1
7107 fi
7108
7109 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 7110
e6cc62c6 7111fi;
10f2d63a
VZ
7112
7113 eval "$ac_cv_use_checkbox"
7114 if test "$no_cache" != 1; then
7115 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7116 fi
7117
7118 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
7119 echo "$as_me:$LINENO: result: yes" >&5
7120echo "${ECHO_T}yes" >&6
10f2d63a 7121 else
e6cc62c6
VS
7122 echo "$as_me:$LINENO: result: no" >&5
7123echo "${ECHO_T}no" >&6
10f2d63a 7124 fi
e6cc62c6 7125
10f2d63a 7126
5005acfe 7127 enablestring=
e6cc62c6
VS
7128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7129echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
7130 no_cache=0
7131 # Check whether --enable-checklst or --disable-checklst was given.
7132if test "${enable_checklst+set}" = set; then
7133 enableval="$enable_checklst"
e6cc62c6 7134
10f2d63a
VZ
7135 if test "$enableval" = yes; then
7136 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7137 else
7138 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7139 fi
e6cc62c6 7140
10f2d63a 7141else
e6cc62c6 7142
10f2d63a
VZ
7143 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7144 if test "x$LINE" != x ; then
7145 eval "DEFAULT_$LINE"
7146 else
7147 no_cache=1
7148 fi
7149
7150 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 7151
e6cc62c6 7152fi;
10f2d63a
VZ
7153
7154 eval "$ac_cv_use_checklst"
7155 if test "$no_cache" != 1; then
7156 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7157 fi
7158
7159 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
7160 echo "$as_me:$LINENO: result: yes" >&5
7161echo "${ECHO_T}yes" >&6
10f2d63a 7162 else
e6cc62c6
VS
7163 echo "$as_me:$LINENO: result: no" >&5
7164echo "${ECHO_T}no" >&6
10f2d63a 7165 fi
e6cc62c6 7166
10f2d63a 7167
5005acfe 7168 enablestring=
e6cc62c6
VS
7169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7170echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
7171 no_cache=0
7172 # Check whether --enable-choice or --disable-choice was given.
7173if test "${enable_choice+set}" = set; then
7174 enableval="$enable_choice"
e6cc62c6 7175
10f2d63a
VZ
7176 if test "$enableval" = yes; then
7177 ac_cv_use_choice='wxUSE_CHOICE=yes'
7178 else
7179 ac_cv_use_choice='wxUSE_CHOICE=no'
7180 fi
e6cc62c6 7181
10f2d63a 7182else
e6cc62c6 7183
10f2d63a
VZ
7184 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7185 if test "x$LINE" != x ; then
7186 eval "DEFAULT_$LINE"
7187 else
7188 no_cache=1
7189 fi
7190
7191 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 7192
e6cc62c6 7193fi;
10f2d63a
VZ
7194
7195 eval "$ac_cv_use_choice"
7196 if test "$no_cache" != 1; then
7197 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7198 fi
7199
7200 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
7201 echo "$as_me:$LINENO: result: yes" >&5
7202echo "${ECHO_T}yes" >&6
10f2d63a 7203 else
e6cc62c6
VS
7204 echo "$as_me:$LINENO: result: no" >&5
7205echo "${ECHO_T}no" >&6
10f2d63a 7206 fi
e6cc62c6 7207
10f2d63a 7208
5005acfe 7209 enablestring=
e6cc62c6
VS
7210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7211echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
7212 no_cache=0
7213 # Check whether --enable-combobox or --disable-combobox was given.
7214if test "${enable_combobox+set}" = set; then
7215 enableval="$enable_combobox"
e6cc62c6 7216
10f2d63a
VZ
7217 if test "$enableval" = yes; then
7218 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7219 else
7220 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7221 fi
e6cc62c6 7222
10f2d63a 7223else
e6cc62c6 7224
10f2d63a
VZ
7225 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7226 if test "x$LINE" != x ; then
7227 eval "DEFAULT_$LINE"
7228 else
7229 no_cache=1
7230 fi
7231
7232 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7233
e6cc62c6 7234fi;
10f2d63a
VZ
7235
7236 eval "$ac_cv_use_combobox"
7237 if test "$no_cache" != 1; then
7238 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7239 fi
7240
7241 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7242 echo "$as_me:$LINENO: result: yes" >&5
7243echo "${ECHO_T}yes" >&6
10f2d63a 7244 else
e6cc62c6
VS
7245 echo "$as_me:$LINENO: result: no" >&5
7246echo "${ECHO_T}no" >&6
10f2d63a 7247 fi
e6cc62c6 7248
10f2d63a 7249
da494b40 7250 enablestring=
e6cc62c6
VS
7251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7252echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7253 no_cache=0
7254 # Check whether --enable-display or --disable-display was given.
7255if test "${enable_display+set}" = set; then
7256 enableval="$enable_display"
e6cc62c6 7257
da494b40
MB
7258 if test "$enableval" = yes; then
7259 ac_cv_use_display='wxUSE_DISPLAY=yes'
7260 else
7261 ac_cv_use_display='wxUSE_DISPLAY=no'
7262 fi
e6cc62c6 7263
da494b40 7264else
e6cc62c6 7265
da494b40
MB
7266 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7267 if test "x$LINE" != x ; then
7268 eval "DEFAULT_$LINE"
7269 else
7270 no_cache=1
7271 fi
7272
7273 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7274
e6cc62c6 7275fi;
da494b40
MB
7276
7277 eval "$ac_cv_use_display"
7278 if test "$no_cache" != 1; then
7279 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7280 fi
7281
7282 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7283 echo "$as_me:$LINENO: result: yes" >&5
7284echo "${ECHO_T}yes" >&6
da494b40 7285 else
e6cc62c6
VS
7286 echo "$as_me:$LINENO: result: no" >&5
7287echo "${ECHO_T}no" >&6
da494b40 7288 fi
e6cc62c6 7289
da494b40 7290
5005acfe 7291 enablestring=
e6cc62c6
VS
7292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7293echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7294 no_cache=0
7295 # Check whether --enable-gauge or --disable-gauge was given.
7296if test "${enable_gauge+set}" = set; then
7297 enableval="$enable_gauge"
e6cc62c6 7298
10f2d63a
VZ
7299 if test "$enableval" = yes; then
7300 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7301 else
7302 ac_cv_use_gauge='wxUSE_GAUGE=no'
7303 fi
e6cc62c6 7304
10f2d63a 7305else
e6cc62c6 7306
10f2d63a
VZ
7307 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7308 if test "x$LINE" != x ; then
7309 eval "DEFAULT_$LINE"
7310 else
7311 no_cache=1
7312 fi
7313
7314 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7315
e6cc62c6 7316fi;
10f2d63a
VZ
7317
7318 eval "$ac_cv_use_gauge"
7319 if test "$no_cache" != 1; then
7320 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7321 fi
7322
7323 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7324 echo "$as_me:$LINENO: result: yes" >&5
7325echo "${ECHO_T}yes" >&6
10f2d63a 7326 else
e6cc62c6
VS
7327 echo "$as_me:$LINENO: result: no" >&5
7328echo "${ECHO_T}no" >&6
10f2d63a 7329 fi
e6cc62c6 7330
10f2d63a 7331
5005acfe 7332 enablestring=
e6cc62c6
VS
7333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7334echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7335 no_cache=0
7336 # Check whether --enable-grid or --disable-grid was given.
7337if test "${enable_grid+set}" = set; then
7338 enableval="$enable_grid"
e6cc62c6 7339
10f2d63a
VZ
7340 if test "$enableval" = yes; then
7341 ac_cv_use_grid='wxUSE_GRID=yes'
7342 else
7343 ac_cv_use_grid='wxUSE_GRID=no'
7344 fi
e6cc62c6 7345
10f2d63a 7346else
e6cc62c6 7347
10f2d63a
VZ
7348 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7349 if test "x$LINE" != x ; then
7350 eval "DEFAULT_$LINE"
7351 else
7352 no_cache=1
7353 fi
7354
7355 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7356
e6cc62c6 7357fi;
10f2d63a
VZ
7358
7359 eval "$ac_cv_use_grid"
7360 if test "$no_cache" != 1; then
7361 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7362 fi
7363
7364 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7365 echo "$as_me:$LINENO: result: yes" >&5
7366echo "${ECHO_T}yes" >&6
10f2d63a 7367 else
e6cc62c6
VS
7368 echo "$as_me:$LINENO: result: no" >&5
7369echo "${ECHO_T}no" >&6
10f2d63a 7370 fi
e6cc62c6 7371
10f2d63a 7372
5005acfe 7373 enablestring=
e6cc62c6
VS
7374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7375echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7376 no_cache=0
7377 # Check whether --enable-imaglist or --disable-imaglist was given.
7378if test "${enable_imaglist+set}" = set; then
7379 enableval="$enable_imaglist"
e6cc62c6 7380
10f2d63a
VZ
7381 if test "$enableval" = yes; then
7382 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7383 else
7384 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7385 fi
e6cc62c6 7386
10f2d63a 7387else
e6cc62c6 7388
10f2d63a
VZ
7389 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7390 if test "x$LINE" != x ; then
7391 eval "DEFAULT_$LINE"
7392 else
7393 no_cache=1
7394 fi
7395
7396 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7397
e6cc62c6 7398fi;
10f2d63a
VZ
7399
7400 eval "$ac_cv_use_imaglist"
7401 if test "$no_cache" != 1; then
7402 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7403 fi
7404
7405 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7406 echo "$as_me:$LINENO: result: yes" >&5
7407echo "${ECHO_T}yes" >&6
10f2d63a 7408 else
e6cc62c6
VS
7409 echo "$as_me:$LINENO: result: no" >&5
7410echo "${ECHO_T}no" >&6
10f2d63a 7411 fi
e6cc62c6 7412
10f2d63a 7413
0e012a93
VZ
7414 enablestring=
7415 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7416echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7417 no_cache=0
7418 # Check whether --enable-listbook or --disable-listbook was given.
7419if test "${enable_listbook+set}" = set; then
7420 enableval="$enable_listbook"
7421
7422 if test "$enableval" = yes; then
7423 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7424 else
7425 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7426 fi
7427
7428else
7429
7430 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7431 if test "x$LINE" != x ; then
7432 eval "DEFAULT_$LINE"
7433 else
7434 no_cache=1
7435 fi
7436
7437 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7438
7439fi;
7440
7441 eval "$ac_cv_use_listbook"
7442 if test "$no_cache" != 1; then
7443 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7444 fi
7445
7446 if test "$wxUSE_LISTBOOK" = yes; then
7447 echo "$as_me:$LINENO: result: yes" >&5
7448echo "${ECHO_T}yes" >&6
7449 else
7450 echo "$as_me:$LINENO: result: no" >&5
7451echo "${ECHO_T}no" >&6
7452 fi
7453
7454
5005acfe 7455 enablestring=
e6cc62c6
VS
7456 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7457echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7458 no_cache=0
7459 # Check whether --enable-listbox or --disable-listbox was given.
7460if test "${enable_listbox+set}" = set; then
7461 enableval="$enable_listbox"
e6cc62c6 7462
10f2d63a
VZ
7463 if test "$enableval" = yes; then
7464 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7465 else
7466 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7467 fi
e6cc62c6 7468
10f2d63a 7469else
e6cc62c6 7470
10f2d63a
VZ
7471 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7472 if test "x$LINE" != x ; then
7473 eval "DEFAULT_$LINE"
7474 else
7475 no_cache=1
7476 fi
7477
7478 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7479
e6cc62c6 7480fi;
10f2d63a
VZ
7481
7482 eval "$ac_cv_use_listbox"
7483 if test "$no_cache" != 1; then
7484 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7485 fi
7486
7487 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7488 echo "$as_me:$LINENO: result: yes" >&5
7489echo "${ECHO_T}yes" >&6
10f2d63a 7490 else
e6cc62c6
VS
7491 echo "$as_me:$LINENO: result: no" >&5
7492echo "${ECHO_T}no" >&6
10f2d63a 7493 fi
e6cc62c6 7494
10f2d63a 7495
5005acfe 7496 enablestring=
e6cc62c6
VS
7497 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7498echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7499 no_cache=0
7500 # Check whether --enable-listctrl or --disable-listctrl was given.
7501if test "${enable_listctrl+set}" = set; then
7502 enableval="$enable_listctrl"
e6cc62c6 7503
10f2d63a
VZ
7504 if test "$enableval" = yes; then
7505 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7506 else
7507 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7508 fi
e6cc62c6 7509
10f2d63a 7510else
e6cc62c6 7511
10f2d63a
VZ
7512 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7513 if test "x$LINE" != x ; then
7514 eval "DEFAULT_$LINE"
7515 else
7516 no_cache=1
7517 fi
7518
7519 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7520
e6cc62c6 7521fi;
10f2d63a
VZ
7522
7523 eval "$ac_cv_use_listctrl"
7524 if test "$no_cache" != 1; then
7525 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7526 fi
7527
7528 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7529 echo "$as_me:$LINENO: result: yes" >&5
7530echo "${ECHO_T}yes" >&6
10f2d63a 7531 else
e6cc62c6
VS
7532 echo "$as_me:$LINENO: result: no" >&5
7533echo "${ECHO_T}no" >&6
10f2d63a 7534 fi
e6cc62c6 7535
10f2d63a 7536
5005acfe 7537 enablestring=
e6cc62c6
VS
7538 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7539echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7540 no_cache=0
7541 # Check whether --enable-notebook or --disable-notebook was given.
7542if test "${enable_notebook+set}" = set; then
7543 enableval="$enable_notebook"
e6cc62c6 7544
10f2d63a
VZ
7545 if test "$enableval" = yes; then
7546 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7547 else
7548 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7549 fi
e6cc62c6 7550
10f2d63a 7551else
e6cc62c6 7552
10f2d63a
VZ
7553 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7554 if test "x$LINE" != x ; then
7555 eval "DEFAULT_$LINE"
7556 else
7557 no_cache=1
7558 fi
7559
7560 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7561
e6cc62c6 7562fi;
10f2d63a
VZ
7563
7564 eval "$ac_cv_use_notebook"
7565 if test "$no_cache" != 1; then
7566 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7567 fi
7568
7569 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7570 echo "$as_me:$LINENO: result: yes" >&5
7571echo "${ECHO_T}yes" >&6
10f2d63a 7572 else
e6cc62c6
VS
7573 echo "$as_me:$LINENO: result: no" >&5
7574echo "${ECHO_T}no" >&6
10f2d63a 7575 fi
e6cc62c6 7576
10f2d63a 7577
5005acfe 7578 enablestring=
e6cc62c6
VS
7579 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7580echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7581 no_cache=0
7582 # Check whether --enable-radiobox or --disable-radiobox was given.
7583if test "${enable_radiobox+set}" = set; then
7584 enableval="$enable_radiobox"
e6cc62c6 7585
10f2d63a
VZ
7586 if test "$enableval" = yes; then
7587 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7588 else
7589 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7590 fi
e6cc62c6 7591
10f2d63a 7592else
e6cc62c6 7593
10f2d63a
VZ
7594 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7595 if test "x$LINE" != x ; then
7596 eval "DEFAULT_$LINE"
7597 else
7598 no_cache=1
7599 fi
7600
7601 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7602
e6cc62c6 7603fi;
10f2d63a
VZ
7604
7605 eval "$ac_cv_use_radiobox"
7606 if test "$no_cache" != 1; then
7607 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7608 fi
7609
7610 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7611 echo "$as_me:$LINENO: result: yes" >&5
7612echo "${ECHO_T}yes" >&6
10f2d63a 7613 else
e6cc62c6
VS
7614 echo "$as_me:$LINENO: result: no" >&5
7615echo "${ECHO_T}no" >&6
10f2d63a 7616 fi
e6cc62c6 7617
10f2d63a 7618
5005acfe 7619 enablestring=
e6cc62c6
VS
7620 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7621echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7622 no_cache=0
7623 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7624if test "${enable_radiobtn+set}" = set; then
7625 enableval="$enable_radiobtn"
e6cc62c6 7626
10f2d63a
VZ
7627 if test "$enableval" = yes; then
7628 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7629 else
7630 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7631 fi
e6cc62c6 7632
10f2d63a 7633else
e6cc62c6 7634
10f2d63a
VZ
7635 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7636 if test "x$LINE" != x ; then
7637 eval "DEFAULT_$LINE"
7638 else
7639 no_cache=1
7640 fi
7641
7642 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7643
e6cc62c6 7644fi;
10f2d63a
VZ
7645
7646 eval "$ac_cv_use_radiobtn"
7647 if test "$no_cache" != 1; then
7648 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7649 fi
7650
7651 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7652 echo "$as_me:$LINENO: result: yes" >&5
7653echo "${ECHO_T}yes" >&6
10f2d63a 7654 else
e6cc62c6
VS
7655 echo "$as_me:$LINENO: result: no" >&5
7656echo "${ECHO_T}no" >&6
10f2d63a 7657 fi
e6cc62c6 7658
10f2d63a 7659
5005acfe 7660 enablestring=
e6cc62c6
VS
7661 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7662echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7663 no_cache=0
7664 # Check whether --enable-sash or --disable-sash was given.
7665if test "${enable_sash+set}" = set; then
7666 enableval="$enable_sash"
e6cc62c6 7667
10f2d63a
VZ
7668 if test "$enableval" = yes; then
7669 ac_cv_use_sash='wxUSE_SASH=yes'
7670 else
7671 ac_cv_use_sash='wxUSE_SASH=no'
7672 fi
e6cc62c6 7673
10f2d63a 7674else
e6cc62c6 7675
10f2d63a
VZ
7676 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7677 if test "x$LINE" != x ; then
7678 eval "DEFAULT_$LINE"
7679 else
7680 no_cache=1
7681 fi
7682
7683 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7684
e6cc62c6 7685fi;
10f2d63a
VZ
7686
7687 eval "$ac_cv_use_sash"
7688 if test "$no_cache" != 1; then
7689 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7690 fi
7691
7692 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7693 echo "$as_me:$LINENO: result: yes" >&5
7694echo "${ECHO_T}yes" >&6
10f2d63a 7695 else
e6cc62c6
VS
7696 echo "$as_me:$LINENO: result: no" >&5
7697echo "${ECHO_T}no" >&6
10f2d63a 7698 fi
e6cc62c6 7699
10f2d63a 7700
5005acfe 7701 enablestring=
e6cc62c6
VS
7702 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7703echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7704 no_cache=0
7705 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7706if test "${enable_scrollbar+set}" = set; then
7707 enableval="$enable_scrollbar"
e6cc62c6 7708
10f2d63a
VZ
7709 if test "$enableval" = yes; then
7710 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7711 else
7712 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7713 fi
e6cc62c6 7714
10f2d63a 7715else
e6cc62c6 7716
10f2d63a
VZ
7717 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7718 if test "x$LINE" != x ; then
7719 eval "DEFAULT_$LINE"
7720 else
7721 no_cache=1
7722 fi
7723
7724 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7725
e6cc62c6 7726fi;
10f2d63a
VZ
7727
7728 eval "$ac_cv_use_scrollbar"
7729 if test "$no_cache" != 1; then
7730 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7731 fi
7732
7733 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7734 echo "$as_me:$LINENO: result: yes" >&5
7735echo "${ECHO_T}yes" >&6
10f2d63a 7736 else
e6cc62c6
VS
7737 echo "$as_me:$LINENO: result: no" >&5
7738echo "${ECHO_T}no" >&6
10f2d63a 7739 fi
e6cc62c6 7740
10f2d63a 7741
5005acfe 7742 enablestring=
e6cc62c6
VS
7743 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7744echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7745 no_cache=0
7746 # Check whether --enable-slider or --disable-slider was given.
7747if test "${enable_slider+set}" = set; then
7748 enableval="$enable_slider"
e6cc62c6 7749
10f2d63a
VZ
7750 if test "$enableval" = yes; then
7751 ac_cv_use_slider='wxUSE_SLIDER=yes'
7752 else
7753 ac_cv_use_slider='wxUSE_SLIDER=no'
7754 fi
e6cc62c6 7755
10f2d63a 7756else
e6cc62c6 7757
10f2d63a
VZ
7758 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7759 if test "x$LINE" != x ; then
7760 eval "DEFAULT_$LINE"
7761 else
7762 no_cache=1
7763 fi
7764
7765 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7766
e6cc62c6 7767fi;
10f2d63a
VZ
7768
7769 eval "$ac_cv_use_slider"
7770 if test "$no_cache" != 1; then
7771 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7772 fi
7773
7774 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7775 echo "$as_me:$LINENO: result: yes" >&5
7776echo "${ECHO_T}yes" >&6
10f2d63a 7777 else
e6cc62c6
VS
7778 echo "$as_me:$LINENO: result: no" >&5
7779echo "${ECHO_T}no" >&6
10f2d63a 7780 fi
e6cc62c6 7781
10f2d63a 7782
5005acfe 7783 enablestring=
e6cc62c6
VS
7784 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7785echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7786 no_cache=0
7787 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7788if test "${enable_spinbtn+set}" = set; then
7789 enableval="$enable_spinbtn"
e6cc62c6 7790
10f2d63a
VZ
7791 if test "$enableval" = yes; then
7792 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7793 else
7794 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7795 fi
e6cc62c6 7796
10f2d63a 7797else
e6cc62c6 7798
10f2d63a
VZ
7799 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7800 if test "x$LINE" != x ; then
7801 eval "DEFAULT_$LINE"
7802 else
7803 no_cache=1
7804 fi
7805
7806 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7807
e6cc62c6 7808fi;
10f2d63a
VZ
7809
7810 eval "$ac_cv_use_spinbtn"
7811 if test "$no_cache" != 1; then
7812 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7813 fi
7814
7815 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7816 echo "$as_me:$LINENO: result: yes" >&5
7817echo "${ECHO_T}yes" >&6
10f2d63a 7818 else
e6cc62c6
VS
7819 echo "$as_me:$LINENO: result: no" >&5
7820echo "${ECHO_T}no" >&6
10f2d63a 7821 fi
e6cc62c6 7822
10f2d63a 7823
5005acfe 7824 enablestring=
e6cc62c6
VS
7825 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7826echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7827 no_cache=0
7828 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7829if test "${enable_spinctrl+set}" = set; then
7830 enableval="$enable_spinctrl"
e6cc62c6 7831
56cfaa52
RR
7832 if test "$enableval" = yes; then
7833 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7834 else
7835 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7836 fi
e6cc62c6 7837
56cfaa52 7838else
e6cc62c6 7839
56cfaa52
RR
7840 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7841 if test "x$LINE" != x ; then
7842 eval "DEFAULT_$LINE"
7843 else
7844 no_cache=1
7845 fi
7846
7847 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7848
e6cc62c6 7849fi;
56cfaa52
RR
7850
7851 eval "$ac_cv_use_spinctrl"
7852 if test "$no_cache" != 1; then
7853 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7854 fi
7855
7856 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7857 echo "$as_me:$LINENO: result: yes" >&5
7858echo "${ECHO_T}yes" >&6
56cfaa52 7859 else
e6cc62c6
VS
7860 echo "$as_me:$LINENO: result: no" >&5
7861echo "${ECHO_T}no" >&6
56cfaa52 7862 fi
e6cc62c6 7863
56cfaa52 7864
5005acfe 7865 enablestring=
e6cc62c6
VS
7866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7867echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7868 no_cache=0
7869 # Check whether --enable-splitter or --disable-splitter was given.
7870if test "${enable_splitter+set}" = set; then
7871 enableval="$enable_splitter"
e6cc62c6 7872
10f2d63a
VZ
7873 if test "$enableval" = yes; then
7874 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7875 else
7876 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7877 fi
e6cc62c6 7878
10f2d63a 7879else
e6cc62c6 7880
10f2d63a
VZ
7881 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7882 if test "x$LINE" != x ; then
7883 eval "DEFAULT_$LINE"
7884 else
7885 no_cache=1
7886 fi
7887
7888 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7889
e6cc62c6 7890fi;
10f2d63a
VZ
7891
7892 eval "$ac_cv_use_splitter"
7893 if test "$no_cache" != 1; then
7894 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7895 fi
7896
7897 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7898 echo "$as_me:$LINENO: result: yes" >&5
7899echo "${ECHO_T}yes" >&6
10f2d63a 7900 else
e6cc62c6
VS
7901 echo "$as_me:$LINENO: result: no" >&5
7902echo "${ECHO_T}no" >&6
10f2d63a 7903 fi
e6cc62c6 7904
10f2d63a 7905
5005acfe 7906 enablestring=
e6cc62c6
VS
7907 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7908echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7909 no_cache=0
7910 # Check whether --enable-statbmp or --disable-statbmp was given.
7911if test "${enable_statbmp+set}" = set; then
7912 enableval="$enable_statbmp"
e6cc62c6 7913
10f2d63a
VZ
7914 if test "$enableval" = yes; then
7915 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7916 else
7917 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7918 fi
e6cc62c6 7919
10f2d63a 7920else
e6cc62c6 7921
10f2d63a
VZ
7922 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7923 if test "x$LINE" != x ; then
7924 eval "DEFAULT_$LINE"
7925 else
7926 no_cache=1
7927 fi
7928
7929 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7930
e6cc62c6 7931fi;
10f2d63a
VZ
7932
7933 eval "$ac_cv_use_statbmp"
7934 if test "$no_cache" != 1; then
7935 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7936 fi
7937
7938 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7939 echo "$as_me:$LINENO: result: yes" >&5
7940echo "${ECHO_T}yes" >&6
10f2d63a 7941 else
e6cc62c6
VS
7942 echo "$as_me:$LINENO: result: no" >&5
7943echo "${ECHO_T}no" >&6
10f2d63a 7944 fi
e6cc62c6 7945
10f2d63a 7946
5005acfe 7947 enablestring=
e6cc62c6
VS
7948 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7949echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7950 no_cache=0
7951 # Check whether --enable-statbox or --disable-statbox was given.
7952if test "${enable_statbox+set}" = set; then
7953 enableval="$enable_statbox"
e6cc62c6 7954
10f2d63a
VZ
7955 if test "$enableval" = yes; then
7956 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7957 else
7958 ac_cv_use_statbox='wxUSE_STATBOX=no'
7959 fi
e6cc62c6 7960
10f2d63a 7961else
e6cc62c6 7962
10f2d63a
VZ
7963 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7964 if test "x$LINE" != x ; then
7965 eval "DEFAULT_$LINE"
7966 else
7967 no_cache=1
7968 fi
7969
7970 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7971
e6cc62c6 7972fi;
10f2d63a
VZ
7973
7974 eval "$ac_cv_use_statbox"
7975 if test "$no_cache" != 1; then
7976 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7977 fi
7978
7979 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7980 echo "$as_me:$LINENO: result: yes" >&5
7981echo "${ECHO_T}yes" >&6
10f2d63a 7982 else
e6cc62c6
VS
7983 echo "$as_me:$LINENO: result: no" >&5
7984echo "${ECHO_T}no" >&6
10f2d63a 7985 fi
e6cc62c6 7986
10f2d63a 7987
5005acfe 7988 enablestring=
e6cc62c6
VS
7989 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7990echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7991 no_cache=0
7992 # Check whether --enable-statline or --disable-statline was given.
7993if test "${enable_statline+set}" = set; then
7994 enableval="$enable_statline"
e6cc62c6 7995
10f2d63a
VZ
7996 if test "$enableval" = yes; then
7997 ac_cv_use_statline='wxUSE_STATLINE=yes'
7998 else
7999 ac_cv_use_statline='wxUSE_STATLINE=no'
8000 fi
e6cc62c6 8001
10f2d63a 8002else
e6cc62c6 8003
10f2d63a
VZ
8004 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
8005 if test "x$LINE" != x ; then
8006 eval "DEFAULT_$LINE"
8007 else
8008 no_cache=1
8009 fi
8010
8011 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 8012
e6cc62c6 8013fi;
10f2d63a
VZ
8014
8015 eval "$ac_cv_use_statline"
8016 if test "$no_cache" != 1; then
8017 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
8018 fi
8019
8020 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
8021 echo "$as_me:$LINENO: result: yes" >&5
8022echo "${ECHO_T}yes" >&6
10f2d63a 8023 else
e6cc62c6
VS
8024 echo "$as_me:$LINENO: result: no" >&5
8025echo "${ECHO_T}no" >&6
10f2d63a 8026 fi
e6cc62c6 8027
10f2d63a 8028
5005acfe 8029 enablestring=
e6cc62c6
VS
8030 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
8031echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
8032 no_cache=0
8033 # Check whether --enable-stattext or --disable-stattext was given.
8034if test "${enable_stattext+set}" = set; then
8035 enableval="$enable_stattext"
e6cc62c6 8036
1e6feb95
VZ
8037 if test "$enableval" = yes; then
8038 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
8039 else
8040 ac_cv_use_stattext='wxUSE_STATTEXT=no'
8041 fi
e6cc62c6 8042
1e6feb95 8043else
e6cc62c6 8044
1e6feb95
VZ
8045 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8046 if test "x$LINE" != x ; then
8047 eval "DEFAULT_$LINE"
8048 else
8049 no_cache=1
8050 fi
8051
8052 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 8053
e6cc62c6 8054fi;
1e6feb95
VZ
8055
8056 eval "$ac_cv_use_stattext"
8057 if test "$no_cache" != 1; then
8058 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8059 fi
8060
8061 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
8062 echo "$as_me:$LINENO: result: yes" >&5
8063echo "${ECHO_T}yes" >&6
1e6feb95 8064 else
e6cc62c6
VS
8065 echo "$as_me:$LINENO: result: no" >&5
8066echo "${ECHO_T}no" >&6
1e6feb95 8067 fi
e6cc62c6 8068
1e6feb95 8069
5005acfe 8070 enablestring=
e6cc62c6
VS
8071 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8072echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
8073 no_cache=0
8074 # Check whether --enable-statusbar or --disable-statusbar was given.
8075if test "${enable_statusbar+set}" = set; then
8076 enableval="$enable_statusbar"
e6cc62c6 8077
10f2d63a
VZ
8078 if test "$enableval" = yes; then
8079 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8080 else
8081 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8082 fi
e6cc62c6 8083
10f2d63a 8084else
e6cc62c6 8085
10f2d63a
VZ
8086 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8087 if test "x$LINE" != x ; then
8088 eval "DEFAULT_$LINE"
8089 else
8090 no_cache=1
8091 fi
8092
8093 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 8094
e6cc62c6 8095fi;
10f2d63a
VZ
8096
8097 eval "$ac_cv_use_statusbar"
8098 if test "$no_cache" != 1; then
8099 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8100 fi
8101
8102 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
8103 echo "$as_me:$LINENO: result: yes" >&5
8104echo "${ECHO_T}yes" >&6
10f2d63a 8105 else
e6cc62c6
VS
8106 echo "$as_me:$LINENO: result: no" >&5
8107echo "${ECHO_T}no" >&6
10f2d63a 8108 fi
e6cc62c6 8109
10f2d63a 8110
5005acfe 8111 enablestring=
e6cc62c6
VS
8112 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8113echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
8114 no_cache=0
8115 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8116if test "${enable_tabdialog+set}" = set; then
8117 enableval="$enable_tabdialog"
e6cc62c6 8118
10f2d63a
VZ
8119 if test "$enableval" = yes; then
8120 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8121 else
8122 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8123 fi
e6cc62c6 8124
10f2d63a 8125else
e6cc62c6 8126
10f2d63a
VZ
8127 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8128 if test "x$LINE" != x ; then
8129 eval "DEFAULT_$LINE"
8130 else
8131 no_cache=1
8132 fi
8133
8134 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 8135
e6cc62c6 8136fi;
10f2d63a
VZ
8137
8138 eval "$ac_cv_use_tabdialog"
8139 if test "$no_cache" != 1; then
8140 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8141 fi
8142
8143 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
8144 echo "$as_me:$LINENO: result: yes" >&5
8145echo "${ECHO_T}yes" >&6
10f2d63a 8146 else
e6cc62c6
VS
8147 echo "$as_me:$LINENO: result: no" >&5
8148echo "${ECHO_T}no" >&6
10f2d63a 8149 fi
e6cc62c6 8150
10f2d63a 8151
5005acfe 8152 enablestring=
e6cc62c6
VS
8153 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8154echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
8155 no_cache=0
8156 # Check whether --enable-textctrl or --disable-textctrl was given.
8157if test "${enable_textctrl+set}" = set; then
8158 enableval="$enable_textctrl"
e6cc62c6 8159
1e6feb95
VZ
8160 if test "$enableval" = yes; then
8161 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8162 else
8163 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8164 fi
e6cc62c6 8165
1e6feb95 8166else
e6cc62c6 8167
1e6feb95
VZ
8168 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8169 if test "x$LINE" != x ; then
8170 eval "DEFAULT_$LINE"
8171 else
8172 no_cache=1
8173 fi
8174
8175 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 8176
e6cc62c6 8177fi;
1e6feb95
VZ
8178
8179 eval "$ac_cv_use_textctrl"
8180 if test "$no_cache" != 1; then
8181 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8182 fi
8183
8184 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
8185 echo "$as_me:$LINENO: result: yes" >&5
8186echo "${ECHO_T}yes" >&6
1e6feb95 8187 else
e6cc62c6
VS
8188 echo "$as_me:$LINENO: result: no" >&5
8189echo "${ECHO_T}no" >&6
1e6feb95 8190 fi
e6cc62c6 8191
1e6feb95 8192
5005acfe 8193 enablestring=
e6cc62c6
VS
8194 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8195echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
8196 no_cache=0
8197 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8198if test "${enable_togglebtn+set}" = set; then
8199 enableval="$enable_togglebtn"
e6cc62c6 8200
1db8dc4a
VZ
8201 if test "$enableval" = yes; then
8202 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8203 else
8204 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8205 fi
e6cc62c6 8206
1db8dc4a 8207else
e6cc62c6 8208
1db8dc4a
VZ
8209 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8210 if test "x$LINE" != x ; then
8211 eval "DEFAULT_$LINE"
8212 else
8213 no_cache=1
8214 fi
8215
8216 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 8217
e6cc62c6 8218fi;
1db8dc4a
VZ
8219
8220 eval "$ac_cv_use_togglebtn"
8221 if test "$no_cache" != 1; then
8222 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8223 fi
8224
8225 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
8226 echo "$as_me:$LINENO: result: yes" >&5
8227echo "${ECHO_T}yes" >&6
1db8dc4a 8228 else
e6cc62c6
VS
8229 echo "$as_me:$LINENO: result: no" >&5
8230echo "${ECHO_T}no" >&6
1db8dc4a 8231 fi
e6cc62c6 8232
1db8dc4a 8233
5005acfe 8234 enablestring=
e6cc62c6
VS
8235 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8236echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8237 no_cache=0
8238 # Check whether --enable-toolbar or --disable-toolbar was given.
8239if test "${enable_toolbar+set}" = set; then
8240 enableval="$enable_toolbar"
e6cc62c6 8241
10f2d63a
VZ
8242 if test "$enableval" = yes; then
8243 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8244 else
8245 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8246 fi
e6cc62c6 8247
10f2d63a 8248else
e6cc62c6 8249
10f2d63a
VZ
8250 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8251 if test "x$LINE" != x ; then
8252 eval "DEFAULT_$LINE"
8253 else
8254 no_cache=1
8255 fi
8256
8257 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8258
e6cc62c6 8259fi;
10f2d63a
VZ
8260
8261 eval "$ac_cv_use_toolbar"
8262 if test "$no_cache" != 1; then
8263 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8264 fi
8265
8266 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8267 echo "$as_me:$LINENO: result: yes" >&5
8268echo "${ECHO_T}yes" >&6
10f2d63a 8269 else
e6cc62c6
VS
8270 echo "$as_me:$LINENO: result: no" >&5
8271echo "${ECHO_T}no" >&6
10f2d63a 8272 fi
e6cc62c6 8273
10f2d63a 8274
5005acfe 8275 enablestring=
e6cc62c6
VS
8276 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8277echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8278 no_cache=0
8279 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8280if test "${enable_tbarnative+set}" = set; then
8281 enableval="$enable_tbarnative"
e6cc62c6 8282
360d6699
VZ
8283 if test "$enableval" = yes; then
8284 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8285 else
8286 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8287 fi
e6cc62c6 8288
360d6699 8289else
e6cc62c6 8290
360d6699
VZ
8291 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8292 if test "x$LINE" != x ; then
8293 eval "DEFAULT_$LINE"
8294 else
8295 no_cache=1
8296 fi
8297
8298 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8299
e6cc62c6 8300fi;
360d6699
VZ
8301
8302 eval "$ac_cv_use_tbarnative"
8303 if test "$no_cache" != 1; then
8304 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8305 fi
8306
8307 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8308 echo "$as_me:$LINENO: result: yes" >&5
8309echo "${ECHO_T}yes" >&6
360d6699 8310 else
e6cc62c6
VS
8311 echo "$as_me:$LINENO: result: no" >&5
8312echo "${ECHO_T}no" >&6
360d6699 8313 fi
e6cc62c6 8314
360d6699 8315
5005acfe 8316 enablestring=
e6cc62c6
VS
8317 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8318echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8319 no_cache=0
8320 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8321if test "${enable_tbarsmpl+set}" = set; then
8322 enableval="$enable_tbarsmpl"
e6cc62c6 8323
360d6699
VZ
8324 if test "$enableval" = yes; then
8325 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8326 else
8327 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8328 fi
e6cc62c6 8329
360d6699 8330else
e6cc62c6 8331
360d6699
VZ
8332 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8333 if test "x$LINE" != x ; then
8334 eval "DEFAULT_$LINE"
8335 else
8336 no_cache=1
8337 fi
8338
8339 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8340
e6cc62c6 8341fi;
360d6699
VZ
8342
8343 eval "$ac_cv_use_tbarsmpl"
8344 if test "$no_cache" != 1; then
8345 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8346 fi
8347
8348 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8349 echo "$as_me:$LINENO: result: yes" >&5
8350echo "${ECHO_T}yes" >&6
360d6699 8351 else
e6cc62c6
VS
8352 echo "$as_me:$LINENO: result: no" >&5
8353echo "${ECHO_T}no" >&6
360d6699 8354 fi
e6cc62c6 8355
360d6699 8356
5005acfe 8357 enablestring=
e6cc62c6
VS
8358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8359echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8360 no_cache=0
8361 # Check whether --enable-treectrl or --disable-treectrl was given.
8362if test "${enable_treectrl+set}" = set; then
8363 enableval="$enable_treectrl"
e6cc62c6 8364
10f2d63a
VZ
8365 if test "$enableval" = yes; then
8366 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8367 else
8368 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8369 fi
e6cc62c6 8370
10f2d63a 8371else
e6cc62c6 8372
10f2d63a
VZ
8373 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8374 if test "x$LINE" != x ; then
8375 eval "DEFAULT_$LINE"
8376 else
8377 no_cache=1
8378 fi
8379
8380 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8381
e6cc62c6 8382fi;
10f2d63a 8383
1e6feb95
VZ
8384 eval "$ac_cv_use_treectrl"
8385 if test "$no_cache" != 1; then
8386 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8387 fi
8388
8389 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8390 echo "$as_me:$LINENO: result: yes" >&5
8391echo "${ECHO_T}yes" >&6
1e6feb95 8392 else
e6cc62c6
VS
8393 echo "$as_me:$LINENO: result: no" >&5
8394echo "${ECHO_T}no" >&6
1e6feb95 8395 fi
e6cc62c6 8396
1e6feb95 8397
5005acfe 8398 enablestring=
e6cc62c6
VS
8399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8400echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8401 no_cache=0
8402 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8403if test "${enable_tipwindow+set}" = set; then
8404 enableval="$enable_tipwindow"
e6cc62c6 8405
9926e4a4
VZ
8406 if test "$enableval" = yes; then
8407 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8408 else
8409 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8410 fi
e6cc62c6 8411
9926e4a4 8412else
e6cc62c6 8413
9926e4a4
VZ
8414 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8415 if test "x$LINE" != x ; then
8416 eval "DEFAULT_$LINE"
8417 else
8418 no_cache=1
8419 fi
8420
8421 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8422
e6cc62c6 8423fi;
9926e4a4
VZ
8424
8425 eval "$ac_cv_use_tipwindow"
8426 if test "$no_cache" != 1; then
8427 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8428 fi
8429
8430 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8431 echo "$as_me:$LINENO: result: yes" >&5
8432echo "${ECHO_T}yes" >&6
9926e4a4 8433 else
e6cc62c6
VS
8434 echo "$as_me:$LINENO: result: no" >&5
8435echo "${ECHO_T}no" >&6
9926e4a4 8436 fi
e6cc62c6 8437
9926e4a4 8438
5005acfe 8439 enablestring=
e6cc62c6
VS
8440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8441echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8442 no_cache=0
8443 # Check whether --enable-popupwin or --disable-popupwin was given.
8444if test "${enable_popupwin+set}" = set; then
8445 enableval="$enable_popupwin"
e6cc62c6 8446
9f41d601
RR
8447 if test "$enableval" = yes; then
8448 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8449 else
8450 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8451 fi
e6cc62c6 8452
9f41d601 8453else
e6cc62c6 8454
9f41d601
RR
8455 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8456 if test "x$LINE" != x ; then
8457 eval "DEFAULT_$LINE"
8458 else
8459 no_cache=1
8460 fi
8461
8462 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8463
e6cc62c6 8464fi;
9f41d601
RR
8465
8466 eval "$ac_cv_use_popupwin"
8467 if test "$no_cache" != 1; then
8468 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8469 fi
8470
8471 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8472 echo "$as_me:$LINENO: result: yes" >&5
8473echo "${ECHO_T}yes" >&6
9f41d601 8474 else
e6cc62c6
VS
8475 echo "$as_me:$LINENO: result: no" >&5
8476echo "${ECHO_T}no" >&6
9f41d601 8477 fi
e6cc62c6 8478
52127426 8479
8284b0c5
MB
8480
8481
5005acfe 8482 enablestring=
e6cc62c6
VS
8483 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8484echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8485 no_cache=0
8486 # Check whether --enable-commondlg or --disable-commondlg was given.
8487if test "${enable_commondlg+set}" = set; then
8488 enableval="$enable_commondlg"
e6cc62c6 8489
1e6feb95
VZ
8490 if test "$enableval" = yes; then
8491 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8492 else
8493 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8494 fi
e6cc62c6 8495
1e6feb95 8496else
e6cc62c6 8497
1e6feb95
VZ
8498 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8499 if test "x$LINE" != x ; then
8500 eval "DEFAULT_$LINE"
8501 else
8502 no_cache=1
8503 fi
8504
8505 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8506
e6cc62c6 8507fi;
1e6feb95
VZ
8508
8509 eval "$ac_cv_use_commondlg"
8510 if test "$no_cache" != 1; then
8511 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8512 fi
8513
8514 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8515 echo "$as_me:$LINENO: result: yes" >&5
8516echo "${ECHO_T}yes" >&6
1e6feb95 8517 else
e6cc62c6
VS
8518 echo "$as_me:$LINENO: result: no" >&5
8519echo "${ECHO_T}no" >&6
1e6feb95 8520 fi
e6cc62c6 8521
1e6feb95 8522
5005acfe 8523 enablestring=
e6cc62c6
VS
8524 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8525echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8526 no_cache=0
8527 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8528if test "${enable_choicedlg+set}" = set; then
8529 enableval="$enable_choicedlg"
e6cc62c6 8530
1e6feb95
VZ
8531 if test "$enableval" = yes; then
8532 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8533 else
8534 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8535 fi
e6cc62c6 8536
1e6feb95 8537else
e6cc62c6 8538
1e6feb95
VZ
8539 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8540 if test "x$LINE" != x ; then
8541 eval "DEFAULT_$LINE"
8542 else
8543 no_cache=1
8544 fi
8545
8546 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8547
e6cc62c6 8548fi;
1e6feb95
VZ
8549
8550 eval "$ac_cv_use_choicedlg"
8551 if test "$no_cache" != 1; then
8552 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8553 fi
8554
8555 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8556 echo "$as_me:$LINENO: result: yes" >&5
8557echo "${ECHO_T}yes" >&6
1e6feb95 8558 else
e6cc62c6
VS
8559 echo "$as_me:$LINENO: result: no" >&5
8560echo "${ECHO_T}no" >&6
1e6feb95 8561 fi
e6cc62c6 8562
1e6feb95 8563
5005acfe 8564 enablestring=
e6cc62c6
VS
8565 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8566echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8567 no_cache=0
8568 # Check whether --enable-coldlg or --disable-coldlg was given.
8569if test "${enable_coldlg+set}" = set; then
8570 enableval="$enable_coldlg"
e6cc62c6 8571
1e6feb95
VZ
8572 if test "$enableval" = yes; then
8573 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8574 else
8575 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8576 fi
e6cc62c6 8577
1e6feb95 8578else
e6cc62c6 8579
1e6feb95
VZ
8580 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8581 if test "x$LINE" != x ; then
8582 eval "DEFAULT_$LINE"
8583 else
8584 no_cache=1
8585 fi
8586
8587 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8588
e6cc62c6 8589fi;
1e6feb95
VZ
8590
8591 eval "$ac_cv_use_coldlg"
8592 if test "$no_cache" != 1; then
8593 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8594 fi
8595
8596 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8597 echo "$as_me:$LINENO: result: yes" >&5
8598echo "${ECHO_T}yes" >&6
1e6feb95 8599 else
e6cc62c6
VS
8600 echo "$as_me:$LINENO: result: no" >&5
8601echo "${ECHO_T}no" >&6
1e6feb95 8602 fi
e6cc62c6 8603
1e6feb95 8604
5005acfe 8605 enablestring=
e6cc62c6
VS
8606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8607echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8608 no_cache=0
8609 # Check whether --enable-filedlg or --disable-filedlg was given.
8610if test "${enable_filedlg+set}" = set; then
8611 enableval="$enable_filedlg"
e6cc62c6 8612
1e6feb95
VZ
8613 if test "$enableval" = yes; then
8614 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8615 else
8616 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8617 fi
e6cc62c6 8618
1e6feb95 8619else
e6cc62c6 8620
1e6feb95
VZ
8621 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8622 if test "x$LINE" != x ; then
8623 eval "DEFAULT_$LINE"
8624 else
8625 no_cache=1
8626 fi
8627
8628 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8629
e6cc62c6 8630fi;
1e6feb95
VZ
8631
8632 eval "$ac_cv_use_filedlg"
8633 if test "$no_cache" != 1; then
8634 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8635 fi
8636
8637 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8638 echo "$as_me:$LINENO: result: yes" >&5
8639echo "${ECHO_T}yes" >&6
1e6feb95 8640 else
e6cc62c6
VS
8641 echo "$as_me:$LINENO: result: no" >&5
8642echo "${ECHO_T}no" >&6
1e6feb95 8643 fi
e6cc62c6 8644
1e6feb95 8645
5005acfe 8646 enablestring=
e6cc62c6
VS
8647 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8648echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8649 no_cache=0
69d27ff7
MB
8650 # Check whether --enable-finddlg or --disable-finddlg was given.
8651if test "${enable_finddlg+set}" = set; then
8652 enableval="$enable_finddlg"
e6cc62c6 8653
8db37e06 8654 if test "$enableval" = yes; then
69d27ff7 8655 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8656 else
69d27ff7 8657 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8658 fi
e6cc62c6 8659
8db37e06 8660else
e6cc62c6 8661
8db37e06
VZ
8662 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8663 if test "x$LINE" != x ; then
8664 eval "DEFAULT_$LINE"
8665 else
8666 no_cache=1
8667 fi
8668
69d27ff7 8669 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8670
e6cc62c6 8671fi;
8db37e06 8672
69d27ff7 8673 eval "$ac_cv_use_finddlg"
8db37e06 8674 if test "$no_cache" != 1; then
69d27ff7 8675 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8676 fi
8677
8678 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8679 echo "$as_me:$LINENO: result: yes" >&5
8680echo "${ECHO_T}yes" >&6
8db37e06 8681 else
e6cc62c6
VS
8682 echo "$as_me:$LINENO: result: no" >&5
8683echo "${ECHO_T}no" >&6
8db37e06 8684 fi
e6cc62c6 8685
8db37e06 8686
5005acfe 8687 enablestring=
e6cc62c6
VS
8688 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8689echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8690 no_cache=0
8691 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8692if test "${enable_fontdlg+set}" = set; then
8693 enableval="$enable_fontdlg"
e6cc62c6 8694
1e6feb95
VZ
8695 if test "$enableval" = yes; then
8696 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8697 else
8698 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8699 fi
e6cc62c6 8700
1e6feb95 8701else
e6cc62c6 8702
1e6feb95
VZ
8703 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8704 if test "x$LINE" != x ; then
8705 eval "DEFAULT_$LINE"
8706 else
8707 no_cache=1
8708 fi
8709
8710 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8711
e6cc62c6 8712fi;
1e6feb95
VZ
8713
8714 eval "$ac_cv_use_fontdlg"
8715 if test "$no_cache" != 1; then
8716 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8717 fi
8718
8719 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8720 echo "$as_me:$LINENO: result: yes" >&5
8721echo "${ECHO_T}yes" >&6
1e6feb95 8722 else
e6cc62c6
VS
8723 echo "$as_me:$LINENO: result: no" >&5
8724echo "${ECHO_T}no" >&6
1e6feb95 8725 fi
e6cc62c6 8726
1e6feb95 8727
5005acfe 8728 enablestring=
e6cc62c6
VS
8729 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8730echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8731 no_cache=0
8732 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8733if test "${enable_dirdlg+set}" = set; then
8734 enableval="$enable_dirdlg"
e6cc62c6 8735
1e6feb95
VZ
8736 if test "$enableval" = yes; then
8737 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8738 else
8739 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8740 fi
e6cc62c6 8741
1e6feb95 8742else
e6cc62c6 8743
1e6feb95
VZ
8744 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8745 if test "x$LINE" != x ; then
8746 eval "DEFAULT_$LINE"
8747 else
8748 no_cache=1
8749 fi
8750
8751 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8752
e6cc62c6 8753fi;
1e6feb95
VZ
8754
8755 eval "$ac_cv_use_dirdlg"
10f2d63a 8756 if test "$no_cache" != 1; then
1e6feb95 8757 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8758 fi
8759
1e6feb95 8760 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8761 echo "$as_me:$LINENO: result: yes" >&5
8762echo "${ECHO_T}yes" >&6
10f2d63a 8763 else
e6cc62c6
VS
8764 echo "$as_me:$LINENO: result: no" >&5
8765echo "${ECHO_T}no" >&6
10f2d63a 8766 fi
e6cc62c6 8767
698dcdb6 8768
5005acfe 8769 enablestring=
e6cc62c6
VS
8770 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8771echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8772 no_cache=0
1e6feb95
VZ
8773 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8774if test "${enable_msgdlg+set}" = set; then
8775 enableval="$enable_msgdlg"
e6cc62c6 8776
10f2d63a 8777 if test "$enableval" = yes; then
1e6feb95 8778 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8779 else
1e6feb95 8780 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8781 fi
e6cc62c6 8782
10f2d63a 8783else
e6cc62c6 8784
1e6feb95 8785 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8786 if test "x$LINE" != x ; then
8787 eval "DEFAULT_$LINE"
8788 else
8789 no_cache=1
8790 fi
8791
1e6feb95 8792 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8793
e6cc62c6 8794fi;
10f2d63a 8795
1e6feb95 8796 eval "$ac_cv_use_msgdlg"
10f2d63a 8797 if test "$no_cache" != 1; then
1e6feb95 8798 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8799 fi
8800
1e6feb95 8801 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8802 echo "$as_me:$LINENO: result: yes" >&5
8803echo "${ECHO_T}yes" >&6
10f2d63a 8804 else
e6cc62c6
VS
8805 echo "$as_me:$LINENO: result: no" >&5
8806echo "${ECHO_T}no" >&6
10f2d63a 8807 fi
e6cc62c6 8808
10f2d63a 8809
5005acfe 8810 enablestring=
e6cc62c6
VS
8811 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8812echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8813 no_cache=0
1e6feb95
VZ
8814 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8815if test "${enable_numberdlg+set}" = set; then
8816 enableval="$enable_numberdlg"
e6cc62c6 8817
10f2d63a 8818 if test "$enableval" = yes; then
1e6feb95 8819 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8820 else
1e6feb95 8821 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8822 fi
e6cc62c6 8823
10f2d63a 8824else
e6cc62c6 8825
1e6feb95 8826 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8827 if test "x$LINE" != x ; then
8828 eval "DEFAULT_$LINE"
8829 else
8830 no_cache=1
8831 fi
8832
1e6feb95 8833 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8834
e6cc62c6 8835fi;
10f2d63a 8836
1e6feb95 8837 eval "$ac_cv_use_numberdlg"
10f2d63a 8838 if test "$no_cache" != 1; then
1e6feb95 8839 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8840 fi
8841
1e6feb95 8842 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8843 echo "$as_me:$LINENO: result: yes" >&5
8844echo "${ECHO_T}yes" >&6
10f2d63a 8845 else
e6cc62c6
VS
8846 echo "$as_me:$LINENO: result: no" >&5
8847echo "${ECHO_T}no" >&6
10f2d63a 8848 fi
e6cc62c6 8849
10f2d63a 8850
5005acfe 8851 enablestring=
e6cc62c6
VS
8852 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8853echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8854 no_cache=0
8855 # Check whether --enable-splash or --disable-splash was given.
8856if test "${enable_splash+set}" = set; then
8857 enableval="$enable_splash"
e6cc62c6 8858
cbca9943
VZ
8859 if test "$enableval" = yes; then
8860 ac_cv_use_splash='wxUSE_SPLASH=yes'
8861 else
8862 ac_cv_use_splash='wxUSE_SPLASH=no'
8863 fi
e6cc62c6 8864
cbca9943 8865else
e6cc62c6 8866
cbca9943
VZ
8867 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8868 if test "x$LINE" != x ; then
8869 eval "DEFAULT_$LINE"
8870 else
8871 no_cache=1
8872 fi
8873
8874 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8875
e6cc62c6 8876fi;
cbca9943
VZ
8877
8878 eval "$ac_cv_use_splash"
8879 if test "$no_cache" != 1; then
8880 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8881 fi
8882
8883 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8884 echo "$as_me:$LINENO: result: yes" >&5
8885echo "${ECHO_T}yes" >&6
cbca9943 8886 else
e6cc62c6
VS
8887 echo "$as_me:$LINENO: result: no" >&5
8888echo "${ECHO_T}no" >&6
cbca9943 8889 fi
e6cc62c6 8890
cbca9943 8891
5005acfe 8892 enablestring=
e6cc62c6
VS
8893 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8894echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8895 no_cache=0
8896 # Check whether --enable-textdlg or --disable-textdlg was given.
8897if test "${enable_textdlg+set}" = set; then
8898 enableval="$enable_textdlg"
e6cc62c6 8899
10f2d63a
VZ
8900 if test "$enableval" = yes; then
8901 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8902 else
8903 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8904 fi
e6cc62c6 8905
10f2d63a 8906else
e6cc62c6 8907
10f2d63a
VZ
8908 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8909 if test "x$LINE" != x ; then
8910 eval "DEFAULT_$LINE"
8911 else
8912 no_cache=1
8913 fi
8914
8915 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8916
e6cc62c6 8917fi;
10f2d63a
VZ
8918
8919 eval "$ac_cv_use_textdlg"
8920 if test "$no_cache" != 1; then
8921 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8922 fi
8923
8924 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8925 echo "$as_me:$LINENO: result: yes" >&5
8926echo "${ECHO_T}yes" >&6
10f2d63a 8927 else
e6cc62c6
VS
8928 echo "$as_me:$LINENO: result: no" >&5
8929echo "${ECHO_T}no" >&6
10f2d63a 8930 fi
e6cc62c6 8931
10f2d63a 8932
5005acfe 8933 enablestring=
e6cc62c6
VS
8934 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8935echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8936 no_cache=0
8937 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8938if test "${enable_tipdlg+set}" = set; then
8939 enableval="$enable_tipdlg"
e6cc62c6 8940
10f2d63a
VZ
8941 if test "$enableval" = yes; then
8942 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8943 else
8944 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8945 fi
e6cc62c6 8946
10f2d63a 8947else
e6cc62c6 8948
10f2d63a
VZ
8949 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8950 if test "x$LINE" != x ; then
8951 eval "DEFAULT_$LINE"
8952 else
8953 no_cache=1
8954 fi
8955
8956 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8957
e6cc62c6 8958fi;
10f2d63a
VZ
8959
8960 eval "$ac_cv_use_tipdlg"
8961 if test "$no_cache" != 1; then
8962 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8963 fi
8964
8965 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8966 echo "$as_me:$LINENO: result: yes" >&5
8967echo "${ECHO_T}yes" >&6
10f2d63a 8968 else
e6cc62c6
VS
8969 echo "$as_me:$LINENO: result: no" >&5
8970echo "${ECHO_T}no" >&6
10f2d63a 8971 fi
e6cc62c6 8972
10f2d63a 8973
5005acfe 8974 enablestring=
e6cc62c6
VS
8975 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8976echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8977 no_cache=0
8978 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8979if test "${enable_progressdlg+set}" = set; then
8980 enableval="$enable_progressdlg"
e6cc62c6 8981
10f2d63a
VZ
8982 if test "$enableval" = yes; then
8983 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8984 else
8985 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8986 fi
e6cc62c6 8987
10f2d63a 8988else
e6cc62c6 8989
10f2d63a
VZ
8990 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8991 if test "x$LINE" != x ; then
8992 eval "DEFAULT_$LINE"
8993 else
8994 no_cache=1
8995 fi
8996
8997 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8998
e6cc62c6 8999fi;
10f2d63a
VZ
9000
9001 eval "$ac_cv_use_progressdlg"
9002 if test "$no_cache" != 1; then
9003 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
9004 fi
9005
9006 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
9007 echo "$as_me:$LINENO: result: yes" >&5
9008echo "${ECHO_T}yes" >&6
10f2d63a 9009 else
e6cc62c6
VS
9010 echo "$as_me:$LINENO: result: no" >&5
9011echo "${ECHO_T}no" >&6
10f2d63a 9012 fi
e6cc62c6 9013
10f2d63a 9014
5005acfe 9015 enablestring=
e6cc62c6
VS
9016 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
9017echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
9018 no_cache=0
9019 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
9020if test "${enable_wizarddlg+set}" = set; then
9021 enableval="$enable_wizarddlg"
e6cc62c6 9022
b1f5d087
VZ
9023 if test "$enableval" = yes; then
9024 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
9025 else
9026 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
9027 fi
e6cc62c6 9028
b1f5d087 9029else
e6cc62c6 9030
b1f5d087
VZ
9031 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
9032 if test "x$LINE" != x ; then
9033 eval "DEFAULT_$LINE"
9034 else
9035 no_cache=1
9036 fi
9037
9038 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 9039
e6cc62c6 9040fi;
b1f5d087
VZ
9041
9042 eval "$ac_cv_use_wizarddlg"
9043 if test "$no_cache" != 1; then
9044 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9045 fi
9046
9047 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
9048 echo "$as_me:$LINENO: result: yes" >&5
9049echo "${ECHO_T}yes" >&6
b1f5d087 9050 else
e6cc62c6
VS
9051 echo "$as_me:$LINENO: result: no" >&5
9052echo "${ECHO_T}no" >&6
b1f5d087 9053 fi
e6cc62c6 9054
8284b0c5
MB
9055
9056
52127426 9057
5005acfe 9058 enablestring=
e6cc62c6
VS
9059 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9060echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
9061 no_cache=0
9062 # Check whether --enable-menus or --disable-menus was given.
9063if test "${enable_menus+set}" = set; then
9064 enableval="$enable_menus"
e6cc62c6 9065
1e6feb95
VZ
9066 if test "$enableval" = yes; then
9067 ac_cv_use_menus='wxUSE_MENUS=yes'
9068 else
9069 ac_cv_use_menus='wxUSE_MENUS=no'
9070 fi
e6cc62c6 9071
1e6feb95 9072else
e6cc62c6 9073
1e6feb95
VZ
9074 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9075 if test "x$LINE" != x ; then
9076 eval "DEFAULT_$LINE"
9077 else
9078 no_cache=1
9079 fi
9080
9081 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 9082
e6cc62c6 9083fi;
1e6feb95
VZ
9084
9085 eval "$ac_cv_use_menus"
9086 if test "$no_cache" != 1; then
9087 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9088 fi
9089
9090 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
9091 echo "$as_me:$LINENO: result: yes" >&5
9092echo "${ECHO_T}yes" >&6
1e6feb95 9093 else
e6cc62c6
VS
9094 echo "$as_me:$LINENO: result: no" >&5
9095echo "${ECHO_T}no" >&6
1e6feb95 9096 fi
e6cc62c6 9097
1e6feb95 9098
5005acfe 9099 enablestring=
e6cc62c6
VS
9100 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9101echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
9102 no_cache=0
9103 # Check whether --enable-miniframe or --disable-miniframe was given.
9104if test "${enable_miniframe+set}" = set; then
9105 enableval="$enable_miniframe"
e6cc62c6 9106
10f2d63a
VZ
9107 if test "$enableval" = yes; then
9108 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9109 else
9110 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9111 fi
e6cc62c6 9112
10f2d63a 9113else
e6cc62c6 9114
10f2d63a
VZ
9115 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9116 if test "x$LINE" != x ; then
9117 eval "DEFAULT_$LINE"
9118 else
9119 no_cache=1
9120 fi
9121
9122 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 9123
e6cc62c6 9124fi;
10f2d63a
VZ
9125
9126 eval "$ac_cv_use_miniframe"
9127 if test "$no_cache" != 1; then
9128 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9129 fi
9130
9131 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
9132 echo "$as_me:$LINENO: result: yes" >&5
9133echo "${ECHO_T}yes" >&6
10f2d63a 9134 else
e6cc62c6
VS
9135 echo "$as_me:$LINENO: result: no" >&5
9136echo "${ECHO_T}no" >&6
10f2d63a 9137 fi
e6cc62c6 9138
10f2d63a 9139
5005acfe 9140 enablestring=
e6cc62c6
VS
9141 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9142echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
9143 no_cache=0
9144 # Check whether --enable-tooltips or --disable-tooltips was given.
9145if test "${enable_tooltips+set}" = set; then
9146 enableval="$enable_tooltips"
e6cc62c6 9147
10f2d63a
VZ
9148 if test "$enableval" = yes; then
9149 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9150 else
9151 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9152 fi
e6cc62c6 9153
10f2d63a 9154else
e6cc62c6 9155
10f2d63a
VZ
9156 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9157 if test "x$LINE" != x ; then
9158 eval "DEFAULT_$LINE"
9159 else
9160 no_cache=1
9161 fi
9162
9163 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 9164
e6cc62c6 9165fi;
10f2d63a
VZ
9166
9167 eval "$ac_cv_use_tooltips"
9168 if test "$no_cache" != 1; then
9169 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9170 fi
9171
9172 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
9173 echo "$as_me:$LINENO: result: yes" >&5
9174echo "${ECHO_T}yes" >&6
10f2d63a 9175 else
e6cc62c6
VS
9176 echo "$as_me:$LINENO: result: no" >&5
9177echo "${ECHO_T}no" >&6
10f2d63a 9178 fi
e6cc62c6 9179
10f2d63a 9180
5005acfe 9181 enablestring=
e6cc62c6
VS
9182 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9183echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
9184 no_cache=0
9185 # Check whether --enable-splines or --disable-splines was given.
9186if test "${enable_splines+set}" = set; then
9187 enableval="$enable_splines"
e6cc62c6 9188
10f2d63a
VZ
9189 if test "$enableval" = yes; then
9190 ac_cv_use_splines='wxUSE_SPLINES=yes'
9191 else
9192 ac_cv_use_splines='wxUSE_SPLINES=no'
9193 fi
e6cc62c6 9194
10f2d63a 9195else
e6cc62c6 9196
10f2d63a
VZ
9197 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9198 if test "x$LINE" != x ; then
9199 eval "DEFAULT_$LINE"
9200 else
9201 no_cache=1
9202 fi
9203
9204 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 9205
e6cc62c6 9206fi;
10f2d63a
VZ
9207
9208 eval "$ac_cv_use_splines"
9209 if test "$no_cache" != 1; then
9210 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9211 fi
9212
9213 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
9214 echo "$as_me:$LINENO: result: yes" >&5
9215echo "${ECHO_T}yes" >&6
10f2d63a 9216 else
e6cc62c6
VS
9217 echo "$as_me:$LINENO: result: no" >&5
9218echo "${ECHO_T}no" >&6
10f2d63a 9219 fi
e6cc62c6 9220
10f2d63a 9221
5005acfe 9222 enablestring=
e6cc62c6
VS
9223 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9224echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
9225 no_cache=0
9226 # Check whether --enable-validators or --disable-validators was given.
9227if test "${enable_validators+set}" = set; then
9228 enableval="$enable_validators"
e6cc62c6 9229
10f2d63a
VZ
9230 if test "$enableval" = yes; then
9231 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9232 else
9233 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9234 fi
e6cc62c6 9235
10f2d63a 9236else
e6cc62c6 9237
10f2d63a
VZ
9238 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9239 if test "x$LINE" != x ; then
9240 eval "DEFAULT_$LINE"
9241 else
9242 no_cache=1
9243 fi
9244
9245 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9246
e6cc62c6 9247fi;
10f2d63a
VZ
9248
9249 eval "$ac_cv_use_validators"
9250 if test "$no_cache" != 1; then
9251 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9252 fi
9253
9254 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9255 echo "$as_me:$LINENO: result: yes" >&5
9256echo "${ECHO_T}yes" >&6
10f2d63a 9257 else
e6cc62c6
VS
9258 echo "$as_me:$LINENO: result: no" >&5
9259echo "${ECHO_T}no" >&6
10f2d63a 9260 fi
e6cc62c6 9261
10f2d63a 9262
5005acfe 9263 enablestring=
e6cc62c6
VS
9264 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9265echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9266 no_cache=0
9267 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9268if test "${enable_busyinfo+set}" = set; then
9269 enableval="$enable_busyinfo"
e6cc62c6 9270
10f2d63a
VZ
9271 if test "$enableval" = yes; then
9272 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9273 else
9274 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9275 fi
e6cc62c6 9276
10f2d63a 9277else
e6cc62c6 9278
10f2d63a
VZ
9279 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9280 if test "x$LINE" != x ; then
9281 eval "DEFAULT_$LINE"
9282 else
9283 no_cache=1
9284 fi
9285
9286 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9287
e6cc62c6 9288fi;
10f2d63a
VZ
9289
9290 eval "$ac_cv_use_busyinfo"
9291 if test "$no_cache" != 1; then
9292 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9293 fi
9294
9295 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9296 echo "$as_me:$LINENO: result: yes" >&5
9297echo "${ECHO_T}yes" >&6
10f2d63a 9298 else
e6cc62c6
VS
9299 echo "$as_me:$LINENO: result: no" >&5
9300echo "${ECHO_T}no" >&6
10f2d63a 9301 fi
e6cc62c6 9302
10f2d63a 9303
5005acfe 9304 enablestring=
e6cc62c6
VS
9305 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9306echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9307 no_cache=0
9308 # Check whether --enable-joystick or --disable-joystick was given.
9309if test "${enable_joystick+set}" = set; then
9310 enableval="$enable_joystick"
e6cc62c6 9311
f6bcfd97
BP
9312 if test "$enableval" = yes; then
9313 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9314 else
9315 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9316 fi
e6cc62c6 9317
f6bcfd97 9318else
e6cc62c6 9319
f6bcfd97
BP
9320 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9321 if test "x$LINE" != x ; then
9322 eval "DEFAULT_$LINE"
9323 else
9324 no_cache=1
9325 fi
9326
9327 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9328
e6cc62c6 9329fi;
f6bcfd97
BP
9330
9331 eval "$ac_cv_use_joystick"
9332 if test "$no_cache" != 1; then
9333 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9334 fi
9335
9336 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9337 echo "$as_me:$LINENO: result: yes" >&5
9338echo "${ECHO_T}yes" >&6
f6bcfd97 9339 else
e6cc62c6
VS
9340 echo "$as_me:$LINENO: result: no" >&5
9341echo "${ECHO_T}no" >&6
f6bcfd97 9342 fi
e6cc62c6 9343
698dcdb6 9344
5005acfe 9345 enablestring=
e6cc62c6
VS
9346 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9347echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9348 no_cache=0
9349 # Check whether --enable-metafile or --disable-metafile was given.
9350if test "${enable_metafile+set}" = set; then
9351 enableval="$enable_metafile"
e6cc62c6 9352
1e6feb95
VZ
9353 if test "$enableval" = yes; then
9354 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9355 else
9356 ac_cv_use_metafile='wxUSE_METAFILE=no'
9357 fi
e6cc62c6 9358
1e6feb95 9359else
e6cc62c6 9360
1e6feb95
VZ
9361 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9362 if test "x$LINE" != x ; then
9363 eval "DEFAULT_$LINE"
9364 else
9365 no_cache=1
9366 fi
9367
9368 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9369
e6cc62c6 9370fi;
1e6feb95
VZ
9371
9372 eval "$ac_cv_use_metafile"
9373 if test "$no_cache" != 1; then
9374 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9375 fi
9376
9377 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9378 echo "$as_me:$LINENO: result: yes" >&5
9379echo "${ECHO_T}yes" >&6
1e6feb95 9380 else
e6cc62c6
VS
9381 echo "$as_me:$LINENO: result: no" >&5
9382echo "${ECHO_T}no" >&6
1e6feb95 9383 fi
e6cc62c6 9384
1e6feb95 9385
5005acfe 9386 enablestring=
e6cc62c6
VS
9387 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9388echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9389 no_cache=0
9390 # Check whether --enable-dragimage or --disable-dragimage was given.
9391if test "${enable_dragimage+set}" = set; then
9392 enableval="$enable_dragimage"
e6cc62c6 9393
24fd6d87
VZ
9394 if test "$enableval" = yes; then
9395 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9396 else
9397 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9398 fi
e6cc62c6 9399
24fd6d87 9400else
e6cc62c6 9401
24fd6d87
VZ
9402 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9403 if test "x$LINE" != x ; then
9404 eval "DEFAULT_$LINE"
9405 else
9406 no_cache=1
9407 fi
9408
9409 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9410
e6cc62c6 9411fi;
24fd6d87
VZ
9412
9413 eval "$ac_cv_use_dragimage"
9414 if test "$no_cache" != 1; then
9415 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9416 fi
9417
9418 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9419 echo "$as_me:$LINENO: result: yes" >&5
9420echo "${ECHO_T}yes" >&6
24fd6d87 9421 else
e6cc62c6
VS
9422 echo "$as_me:$LINENO: result: no" >&5
9423echo "${ECHO_T}no" >&6
24fd6d87 9424 fi
e6cc62c6 9425
52127426 9426
7bb2947d 9427 enablestring=
e6cc62c6
VS
9428 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9429echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9430 no_cache=0
9431 # Check whether --enable-accessibility or --disable-accessibility was given.
9432if test "${enable_accessibility+set}" = set; then
9433 enableval="$enable_accessibility"
e6cc62c6 9434
7bb2947d
MB
9435 if test "$enableval" = yes; then
9436 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9437 else
9438 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9439 fi
e6cc62c6 9440
7bb2947d 9441else
e6cc62c6 9442
7bb2947d
MB
9443 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9444 if test "x$LINE" != x ; then
9445 eval "DEFAULT_$LINE"
9446 else
9447 no_cache=1
9448 fi
9449
9450 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9451
e6cc62c6 9452fi;
7bb2947d
MB
9453
9454 eval "$ac_cv_use_accessibility"
9455 if test "$no_cache" != 1; then
9456 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9457 fi
9458
9459 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9460 echo "$as_me:$LINENO: result: yes" >&5
9461echo "${ECHO_T}yes" >&6
7bb2947d 9462 else
e6cc62c6
VS
9463 echo "$as_me:$LINENO: result: no" >&5
9464echo "${ECHO_T}no" >&6
7bb2947d 9465 fi
e6cc62c6 9466
7bb2947d 9467
8284b0c5
MB
9468
9469
5005acfe 9470 enablestring=
e6cc62c6
VS
9471 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9472echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9473 no_cache=0
9474 # Check whether --enable-palette or --disable-palette was given.
9475if test "${enable_palette+set}" = set; then
9476 enableval="$enable_palette"
e6cc62c6 9477
edae8572
VZ
9478 if test "$enableval" = yes; then
9479 ac_cv_use_palette='wxUSE_PALETTE=yes'
9480 else
9481 ac_cv_use_palette='wxUSE_PALETTE=no'
9482 fi
e6cc62c6 9483
edae8572 9484else
e6cc62c6 9485
edae8572
VZ
9486 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9487 if test "x$LINE" != x ; then
9488 eval "DEFAULT_$LINE"
9489 else
9490 no_cache=1
9491 fi
9492
9493 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9494
e6cc62c6 9495fi;
edae8572
VZ
9496
9497 eval "$ac_cv_use_palette"
9498 if test "$no_cache" != 1; then
9499 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9500 fi
9501
9502 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9503 echo "$as_me:$LINENO: result: yes" >&5
9504echo "${ECHO_T}yes" >&6
edae8572 9505 else
e6cc62c6
VS
9506 echo "$as_me:$LINENO: result: no" >&5
9507echo "${ECHO_T}no" >&6
edae8572 9508 fi
e6cc62c6 9509
edae8572 9510
5005acfe 9511 enablestring=
e6cc62c6
VS
9512 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9513echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9514 no_cache=0
9515 # Check whether --enable-image or --disable-image was given.
9516if test "${enable_image+set}" = set; then
9517 enableval="$enable_image"
e6cc62c6 9518
0046ff7c
VS
9519 if test "$enableval" = yes; then
9520 ac_cv_use_image='wxUSE_IMAGE=yes'
9521 else
9522 ac_cv_use_image='wxUSE_IMAGE=no'
9523 fi
e6cc62c6 9524
0046ff7c 9525else
e6cc62c6 9526
0046ff7c
VS
9527 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9528 if test "x$LINE" != x ; then
9529 eval "DEFAULT_$LINE"
9530 else
9531 no_cache=1
9532 fi
9533
9534 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9535
e6cc62c6 9536fi;
0046ff7c
VS
9537
9538 eval "$ac_cv_use_image"
9539 if test "$no_cache" != 1; then
9540 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9541 fi
9542
9543 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9544 echo "$as_me:$LINENO: result: yes" >&5
9545echo "${ECHO_T}yes" >&6
0046ff7c 9546 else
e6cc62c6
VS
9547 echo "$as_me:$LINENO: result: no" >&5
9548echo "${ECHO_T}no" >&6
0046ff7c 9549 fi
e6cc62c6 9550
0046ff7c 9551
5005acfe 9552 enablestring=
e6cc62c6
VS
9553 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9554echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9555 no_cache=0
9556 # Check whether --enable-gif or --disable-gif was given.
9557if test "${enable_gif+set}" = set; then
9558 enableval="$enable_gif"
e6cc62c6 9559
10f2d63a
VZ
9560 if test "$enableval" = yes; then
9561 ac_cv_use_gif='wxUSE_GIF=yes'
9562 else
9563 ac_cv_use_gif='wxUSE_GIF=no'
9564 fi
e6cc62c6 9565
10f2d63a 9566else
e6cc62c6 9567
10f2d63a
VZ
9568 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9569 if test "x$LINE" != x ; then
9570 eval "DEFAULT_$LINE"
9571 else
9572 no_cache=1
9573 fi
9574
9575 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9576
e6cc62c6 9577fi;
10f2d63a
VZ
9578
9579 eval "$ac_cv_use_gif"
9580 if test "$no_cache" != 1; then
9581 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9582 fi
9583
9584 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9585 echo "$as_me:$LINENO: result: yes" >&5
9586echo "${ECHO_T}yes" >&6
10f2d63a 9587 else
e6cc62c6
VS
9588 echo "$as_me:$LINENO: result: no" >&5
9589echo "${ECHO_T}no" >&6
10f2d63a 9590 fi
e6cc62c6 9591
10f2d63a 9592
5005acfe 9593 enablestring=
e6cc62c6
VS
9594 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9595echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9596 no_cache=0
9597 # Check whether --enable-pcx or --disable-pcx was given.
9598if test "${enable_pcx+set}" = set; then
9599 enableval="$enable_pcx"
e6cc62c6 9600
10f2d63a
VZ
9601 if test "$enableval" = yes; then
9602 ac_cv_use_pcx='wxUSE_PCX=yes'
9603 else
9604 ac_cv_use_pcx='wxUSE_PCX=no'
9605 fi
e6cc62c6 9606
10f2d63a 9607else
e6cc62c6 9608
10f2d63a
VZ
9609 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9610 if test "x$LINE" != x ; then
9611 eval "DEFAULT_$LINE"
9612 else
9613 no_cache=1
9614 fi
9615
9616 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9617
e6cc62c6 9618fi;
10f2d63a
VZ
9619
9620 eval "$ac_cv_use_pcx"
9621 if test "$no_cache" != 1; then
9622 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9623 fi
9624
9625 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9626 echo "$as_me:$LINENO: result: yes" >&5
9627echo "${ECHO_T}yes" >&6
10f2d63a 9628 else
e6cc62c6
VS
9629 echo "$as_me:$LINENO: result: no" >&5
9630echo "${ECHO_T}no" >&6
10f2d63a 9631 fi
e6cc62c6 9632
10f2d63a 9633
5005acfe 9634 enablestring=
e6cc62c6
VS
9635 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9636echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9637 no_cache=0
9638 # Check whether --enable-iff or --disable-iff was given.
9639if test "${enable_iff+set}" = set; then
9640 enableval="$enable_iff"
e6cc62c6 9641
4b6b4dfc
RR
9642 if test "$enableval" = yes; then
9643 ac_cv_use_iff='wxUSE_IFF=yes'
9644 else
9645 ac_cv_use_iff='wxUSE_IFF=no'
9646 fi
e6cc62c6 9647
4b6b4dfc 9648else
e6cc62c6 9649
4b6b4dfc
RR
9650 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9651 if test "x$LINE" != x ; then
9652 eval "DEFAULT_$LINE"
9653 else
9654 no_cache=1
9655 fi
9656
9657 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9658
e6cc62c6 9659fi;
4b6b4dfc
RR
9660
9661 eval "$ac_cv_use_iff"
9662 if test "$no_cache" != 1; then
9663 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9664 fi
9665
9666 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9667 echo "$as_me:$LINENO: result: yes" >&5
9668echo "${ECHO_T}yes" >&6
4b6b4dfc 9669 else
e6cc62c6
VS
9670 echo "$as_me:$LINENO: result: no" >&5
9671echo "${ECHO_T}no" >&6
4b6b4dfc 9672 fi
e6cc62c6 9673
4b6b4dfc 9674
5005acfe 9675 enablestring=
e6cc62c6
VS
9676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9677echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9678 no_cache=0
9679 # Check whether --enable-pnm or --disable-pnm was given.
9680if test "${enable_pnm+set}" = set; then
9681 enableval="$enable_pnm"
e6cc62c6 9682
10f2d63a
VZ
9683 if test "$enableval" = yes; then
9684 ac_cv_use_pnm='wxUSE_PNM=yes'
9685 else
9686 ac_cv_use_pnm='wxUSE_PNM=no'
9687 fi
e6cc62c6 9688
10f2d63a 9689else
e6cc62c6 9690
10f2d63a
VZ
9691 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9692 if test "x$LINE" != x ; then
9693 eval "DEFAULT_$LINE"
9694 else
9695 no_cache=1
9696 fi
9697
9698 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9699
e6cc62c6 9700fi;
10f2d63a
VZ
9701
9702 eval "$ac_cv_use_pnm"
9703 if test "$no_cache" != 1; then
9704 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9705 fi
9706
9707 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9708 echo "$as_me:$LINENO: result: yes" >&5
9709echo "${ECHO_T}yes" >&6
10f2d63a 9710 else
e6cc62c6
VS
9711 echo "$as_me:$LINENO: result: no" >&5
9712echo "${ECHO_T}no" >&6
10f2d63a 9713 fi
e6cc62c6 9714
10f2d63a 9715
5005acfe 9716 enablestring=
e6cc62c6
VS
9717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9718echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9719 no_cache=0
69d27ff7
MB
9720 # Check whether --enable-xpm or --disable-xpm was given.
9721if test "${enable_xpm+set}" = set; then
9722 enableval="$enable_xpm"
e6cc62c6 9723
0046ff7c 9724 if test "$enableval" = yes; then
69d27ff7 9725 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9726 else
69d27ff7 9727 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9728 fi
e6cc62c6 9729
0046ff7c 9730else
e6cc62c6 9731
0046ff7c
VS
9732 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9733 if test "x$LINE" != x ; then
9734 eval "DEFAULT_$LINE"
9735 else
9736 no_cache=1
9737 fi
9738
69d27ff7 9739 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9740
e6cc62c6 9741fi;
0046ff7c 9742
69d27ff7 9743 eval "$ac_cv_use_xpm"
0046ff7c 9744 if test "$no_cache" != 1; then
69d27ff7 9745 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9746 fi
9747
9748 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9749 echo "$as_me:$LINENO: result: yes" >&5
9750echo "${ECHO_T}yes" >&6
0046ff7c 9751 else
e6cc62c6
VS
9752 echo "$as_me:$LINENO: result: no" >&5
9753echo "${ECHO_T}no" >&6
0046ff7c 9754 fi
e6cc62c6 9755
0046ff7c 9756
5005acfe 9757 enablestring=
e6cc62c6
VS
9758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9759echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9760 no_cache=0
c7206e64
VS
9761 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9762if test "${enable_ico_cur+set}" = set; then
9763 enableval="$enable_ico_cur"
e6cc62c6 9764
658974ae 9765 if test "$enableval" = yes; then
c7206e64 9766 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9767 else
c7206e64 9768 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9769 fi
e6cc62c6 9770
658974ae 9771else
e6cc62c6 9772
658974ae
VS
9773 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9774 if test "x$LINE" != x ; then
9775 eval "DEFAULT_$LINE"
9776 else
9777 no_cache=1
9778 fi
9779
c7206e64 9780 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9781
e6cc62c6 9782fi;
658974ae 9783
c7206e64 9784 eval "$ac_cv_use_ico_cur"
658974ae 9785 if test "$no_cache" != 1; then
c7206e64 9786 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9787 fi
9788
9789 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9790 echo "$as_me:$LINENO: result: yes" >&5
9791echo "${ECHO_T}yes" >&6
658974ae 9792 else
e6cc62c6
VS
9793 echo "$as_me:$LINENO: result: no" >&5
9794echo "${ECHO_T}no" >&6
658974ae 9795 fi
e6cc62c6 9796
658974ae 9797
b12915c1
VZ
9798fi
9799
029b47ad
VS
9800
9801
9802 enablestring=
9803 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9804echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9805 no_cache=0
9806 # Check whether --enable-official_build or --disable-official_build was given.
9807if test "${enable_official_build+set}" = set; then
9808 enableval="$enable_official_build"
9809
9810 if test "$enableval" = yes; then
9811 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9812 else
9813 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9814 fi
9815
9816else
9817
9818 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9819 if test "x$LINE" != x ; then
9820 eval "DEFAULT_$LINE"
9821 else
9822 no_cache=1
9823 fi
9824
9825 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9826
9827fi;
9828
9829 eval "$ac_cv_use_official_build"
9830 if test "$no_cache" != 1; then
9831 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9832 fi
9833
9834 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9835 echo "$as_me:$LINENO: result: yes" >&5
9836echo "${ECHO_T}yes" >&6
9837 else
9838 echo "$as_me:$LINENO: result: no" >&5
9839echo "${ECHO_T}no" >&6
9840 fi
9841
9842# Check whether --enable-vendor or --disable-vendor was given.
9843if test "${enable_vendor+set}" = set; then
9844 enableval="$enable_vendor"
9845 VENDOR="$enableval"
9846fi;
9847if test "x$VENDOR" = "x"; then
9848 VENDOR="custom"
9849fi
9850
d558c907
VS
9851case "${host}" in
9852 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9853 PATH_IFS=';'
d558c907
VS
9854 ;;
9855 *)
9856 PATH_IFS=':'
d558c907
VS
9857 ;;
9858esac
9859
8284b0c5
MB
9860
9861
10f2d63a
VZ
9862 echo "saving argument cache $wx_arg_cache_file"
9863 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9864
8284b0c5 9865
e6cc62c6
VS
9866
9867echo "$as_me:$LINENO: checking for toolkit" >&5
9868echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9869
9870# In Wine, we need to default to MSW, not GTK or MOTIF
9871if test "$wxUSE_WINE" = "yes"; then
9872 DEFAULT_DEFAULT_wxUSE_GTK=0
9873 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9874 DEFAULT_DEFAULT_wxUSE_MSW=1
74500461 9875 wxUSE_SHARED=no
89e6bf6d 9876fi
10f2d63a
VZ
9877
9878if test "$wxUSE_GUI" = "yes"; then
9879
3a922bb4 9880 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9881 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9882echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9883 { (exit 1); exit 1; }; }
3a922bb4 9884 fi
b12915c1 9885
3a922bb4
RL
9886 if test "$TOOLKIT_GIVEN" = 1; then
9887 for toolkit in `echo $ALL_TOOLKITS`; do
9888 var=wxUSE_$toolkit
9889 eval "value=\$${var}"
9890 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9891 done
10f2d63a 9892 else
3a922bb4
RL
9893 for toolkit in `echo $ALL_TOOLKITS`; do
9894 if test "$has_toolkit_in_cache" != 1; then
9895 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9896 else
9897 var=DEFAULT_wxUSE_$toolkit
9898 fi
9899 eval "wxUSE_$toolkit=\$${var}"
9900 done
10f2d63a 9901 fi
10f2d63a 9902
ac0c4cc3
DE
9903 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9904 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9905 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9906
d558c907 9907 case "${host}" in
6fa882bd 9908 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9909 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9910 esac
10f2d63a 9911
3a922bb4
RL
9912 case "$NUM_TOOLKITS" in
9913 1)
9914 ;;
9915 0)
e6cc62c6
VS
9916 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9917echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9918 { (exit 1); exit 1; }; }
3a922bb4
RL
9919 ;;
9920 *)
e6cc62c6
VS
9921 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9922echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9923 { (exit 1); exit 1; }; }
3a922bb4 9924 esac
10f2d63a 9925
3a922bb4
RL
9926 for toolkit in `echo $ALL_TOOLKITS`; do
9927 var=wxUSE_$toolkit
9928 eval "value=\$${var}"
9929 if test "x$value" != x; then
9930 cache_var=CACHE_$toolkit
9931 eval "cache=\$${cache_var}"
9932 if test "$cache" = 1; then
9933 echo "$var=$value" >> ${wx_arg_cache_file}
9934 fi
9935 if test "$value" = 1; then
89fe663f 9936 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
e6cc62c6
VS
9937 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9938echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9939 fi
9940 fi
9941 done
10f2d63a 9942else
9de9b8f0
VZ
9943 if test "x$host_alias" != "x"; then
9944 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9945echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9946 else
9947 echo "$as_me:$LINENO: result: base only" >&5
9948echo "${ECHO_T}base only" >&6
9949 fi
10f2d63a
VZ
9950fi
9951
43d99b6d
VS
9952wants_win32=0
9953doesnt_want_win32=0
17234b26
MB
9954case "${host}" in
9955 *-*-cygwin*)
9956 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9957 wants_win32=1
9958 else
9959 doesnt_want_win32=1
17234b26
MB
9960 fi
9961 ;;
9962 *-*-mingw*)
43d99b6d 9963 wants_win32=1
17234b26
MB
9964 ;;
9965esac
9966
89e6bf6d
VZ
9967if test "$wxUSE_WINE" = "yes"; then
9968 wants_win32=1
9969 CC=winegcc
9970 CXX=wineg++
9971 RESCOMP=wrc
30f2fa6c 9972 LDFLAGS_GUI="-mwindows"
89e6bf6d
VZ
9973fi
9974
43d99b6d 9975if test "$wants_win32" = 1 ; then
17234b26
MB
9976 USE_UNIX=0
9977 USE_WIN32=1
e6cc62c6 9978 cat >>confdefs.h <<\_ACEOF
17234b26 9979#define __WIN32__ 1
e6cc62c6 9980_ACEOF
17234b26 9981
e6cc62c6 9982 cat >>confdefs.h <<\_ACEOF
17234b26 9983#define __WIN95__ 1
e6cc62c6 9984_ACEOF
17234b26 9985
e6cc62c6 9986 cat >>confdefs.h <<\_ACEOF
17234b26 9987#define __WINDOWS__ 1
e6cc62c6 9988_ACEOF
17234b26 9989
e6cc62c6 9990 cat >>confdefs.h <<\_ACEOF
17234b26 9991#define __GNUWIN32__ 1
e6cc62c6 9992_ACEOF
17234b26 9993
e6cc62c6 9994 cat >>confdefs.h <<\_ACEOF
17234b26 9995#define STRICT 1
e6cc62c6 9996_ACEOF
17234b26 9997
e6cc62c6 9998 cat >>confdefs.h <<\_ACEOF
17234b26 9999#define WINVER 0x0400
e6cc62c6 10000_ACEOF
17234b26 10001
43d99b6d
VS
10002fi
10003if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
10004 USE_UNIX=1
10005 USE_WIN32=0
10006fi
10007
10008if test "$USE_UNIX" = 1 ; then
10009 wxUSE_UNIX=yes
e6cc62c6 10010 cat >>confdefs.h <<\_ACEOF
17234b26 10011#define __UNIX__ 1
e6cc62c6 10012_ACEOF
17234b26
MB
10013
10014fi
10015
8284b0c5 10016
e6cc62c6 10017cat >confcache <<\_ACEOF
10f2d63a
VZ
10018# This file is a shell script that caches the results of configure
10019# tests run on this system so they can be shared between configure
e6cc62c6
VS
10020# scripts and configure runs, see configure's option --config-cache.
10021# It is not useful on other systems. If it contains results you don't
10022# want to keep, you may remove or edit it.
10f2d63a 10023#
e6cc62c6
VS
10024# config.status only pays attention to the cache file if you give it
10025# the --recheck option to rerun configure.
10f2d63a 10026#
e6cc62c6
VS
10027# `ac_cv_env_foo' variables (set or unset) will be overridden when
10028# loading this file, other *unset* `ac_cv_foo' will be assigned the
10029# following values.
10030
10031_ACEOF
10032
10f2d63a
VZ
10033# The following way of writing the cache mishandles newlines in values,
10034# but we know of no workaround that is simple, portable, and efficient.
10035# So, don't put newlines in cache variables' values.
10036# Ultrix sh set writes to stderr and can't be redirected directly,
10037# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
10038{
10039 (set) 2>&1 |
10040 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10041 *ac_space=\ *)
10042 # `set' does not quote correctly, so add quotes (double-quote
10043 # substitution turns \\\\ into \\, and sed turns \\ into \).
10044 sed -n \
32ddf007
VS
10045 "s/'/'\\\\''/g;
10046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
10047 ;;
10048 *)
10049 # `set' quotes correctly as required by POSIX, so do not add quotes.
10050 sed -n \
32ddf007 10051 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
10052 ;;
10053 esac;
10054} |
10055 sed '
10056 t clear
10057 : clear
10058 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10059 t end
10060 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10061 : end' >>confcache
10062if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 10063 if test -w $cache_file; then
e6cc62c6
VS
10064 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10065 cat confcache >$cache_file
10f2d63a
VZ
10066 else
10067 echo "not updating unwritable cache $cache_file"
10068 fi
10069fi
10070rm -f confcache
10071
e59890c3 10072if test "$build" != "$host" ; then
9d353d4a 10073 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
10074 CC=$host_alias-gcc
10075 CXX=$host_alias-c++
10076 AR=$host_alias-ar
10077 RANLIB=$host_alias-ranlib
10078 DLLTOOL=$host_alias-dlltool
10079 RESCOMP=$host_alias-windres
10080 LD=$host_alias-ld
10081 NM=$host_alias-nm
10082 STRIP=$host_alias-strip
10083 else
e6cc62c6
VS
10084 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10085echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10086 { (exit 1); exit 1; }; }
3a922bb4 10087 fi
10f2d63a
VZ
10088fi
10089
ec603395 10090CFLAGS=${CFLAGS:=}
e6cc62c6
VS
10091ac_ext=c
10092ac_cpp='$CPP $CPPFLAGS'
10093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10095ac_compiler_gnu=$ac_cv_c_compiler_gnu
10096if test -n "$ac_tool_prefix"; then
10097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10098set dummy ${ac_tool_prefix}gcc; ac_word=$2
10099echo "$as_me:$LINENO: checking for $ac_word" >&5
10100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10101if test "${ac_cv_prog_CC+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103else
10104 if test -n "$CC"; then
10105 ac_cv_prog_CC="$CC" # Let the user override the test.
10106else
10107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108for as_dir in $PATH
10109do
10110 IFS=$as_save_IFS
10111 test -z "$as_dir" && as_dir=.
10112 for ac_exec_ext in '' $ac_executable_extensions; do
10113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10114 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10116 break 2
10117 fi
10118done
10119done
10120
10121fi
10122fi
10123CC=$ac_cv_prog_CC
10124if test -n "$CC"; then
10125 echo "$as_me:$LINENO: result: $CC" >&5
10126echo "${ECHO_T}$CC" >&6
10127else
10128 echo "$as_me:$LINENO: result: no" >&5
10129echo "${ECHO_T}no" >&6
10130fi
10131
10132fi
10133if test -z "$ac_cv_prog_CC"; then
10134 ac_ct_CC=$CC
10135 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 10136set dummy gcc; ac_word=$2
e6cc62c6
VS
10137echo "$as_me:$LINENO: checking for $ac_word" >&5
10138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10139if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141else
10142 if test -n "$ac_ct_CC"; then
10143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10144else
10145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146for as_dir in $PATH
10147do
10148 IFS=$as_save_IFS
10149 test -z "$as_dir" && as_dir=.
10150 for ac_exec_ext in '' $ac_executable_extensions; do
10151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10152 ac_cv_prog_ac_ct_CC="gcc"
10153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10154 break 2
10155 fi
10156done
10157done
10158
10159fi
10160fi
10161ac_ct_CC=$ac_cv_prog_ac_ct_CC
10162if test -n "$ac_ct_CC"; then
10163 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10164echo "${ECHO_T}$ac_ct_CC" >&6
10165else
10166 echo "$as_me:$LINENO: result: no" >&5
10167echo "${ECHO_T}no" >&6
10168fi
10169
10170 CC=$ac_ct_CC
10171else
10172 CC="$ac_cv_prog_CC"
10173fi
10174
10175if test -z "$CC"; then
10176 if test -n "$ac_tool_prefix"; then
10177 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10178set dummy ${ac_tool_prefix}cc; ac_word=$2
10179echo "$as_me:$LINENO: checking for $ac_word" >&5
10180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10181if test "${ac_cv_prog_CC+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
10183else
10184 if test -n "$CC"; then
10185 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 10186else
e6cc62c6
VS
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_CC="${ac_tool_prefix}cc"
10195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
10199done
10200
10f2d63a 10201fi
6232543b 10202fi
e6cc62c6 10203CC=$ac_cv_prog_CC
6232543b 10204if test -n "$CC"; then
e6cc62c6
VS
10205 echo "$as_me:$LINENO: result: $CC" >&5
10206echo "${ECHO_T}$CC" >&6
10207else
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
10210fi
10211
10212fi
10213if test -z "$ac_cv_prog_CC"; then
10214 ac_ct_CC=$CC
10215 # Extract the first word of "cc", so it can be a program name with args.
10216set dummy cc; ac_word=$2
10217echo "$as_me:$LINENO: checking for $ac_word" >&5
10218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10219if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
10221else
10222 if test -n "$ac_ct_CC"; then
10223 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10224else
10225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226for as_dir in $PATH
10227do
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10232 ac_cv_prog_ac_ct_CC="cc"
10233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10235 fi
10236done
10237done
10238
10239fi
10240fi
10241ac_ct_CC=$ac_cv_prog_ac_ct_CC
10242if test -n "$ac_ct_CC"; then
10243 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10244echo "${ECHO_T}$ac_ct_CC" >&6
10245else
10246 echo "$as_me:$LINENO: result: no" >&5
10247echo "${ECHO_T}no" >&6
10248fi
10249
10250 CC=$ac_ct_CC
247f5006 10251else
e6cc62c6 10252 CC="$ac_cv_prog_CC"
247f5006
VZ
10253fi
10254
e6cc62c6 10255fi
5c6fa7d2
RR
10256if test -z "$CC"; then
10257 # Extract the first word of "cc", so it can be a program name with args.
10258set dummy cc; ac_word=$2
e6cc62c6
VS
10259echo "$as_me:$LINENO: checking for $ac_word" >&5
10260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10261if test "${ac_cv_prog_CC+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10263else
10264 if test -n "$CC"; then
10265 ac_cv_prog_CC="$CC" # Let the user override the test.
10266else
10267 ac_prog_rejected=no
e6cc62c6
VS
10268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269for as_dir in $PATH
10270do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10275 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10276 ac_prog_rejected=yes
10277 continue
10278 fi
10279 ac_cv_prog_CC="cc"
10280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10281 break 2
10282 fi
10283done
10284done
10285
328a083c
RR
10286if test $ac_prog_rejected = yes; then
10287 # We found a bogon in the path, so make sure we never use it.
10288 set dummy $ac_cv_prog_CC
10289 shift
e6cc62c6 10290 if test $# != 0; then
328a083c 10291 # We chose a different compiler from the bogus one.
1e487827
VS
10292 # However, it has the same basename, so the bogon will be chosen
10293 # first if we set CC to just the basename; use the full file name.
10294 shift
e6cc62c6 10295 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10296 fi
1e487827
VS
10297fi
10298fi
10299fi
e6cc62c6 10300CC=$ac_cv_prog_CC
1e487827 10301if test -n "$CC"; then
e6cc62c6
VS
10302 echo "$as_me:$LINENO: result: $CC" >&5
10303echo "${ECHO_T}$CC" >&6
703e0a69 10304else
e6cc62c6
VS
10305 echo "$as_me:$LINENO: result: no" >&5
10306echo "${ECHO_T}no" >&6
703e0a69 10307fi
1e487827 10308
e6cc62c6
VS
10309fi
10310if test -z "$CC"; then
10311 if test -n "$ac_tool_prefix"; then
10312 for ac_prog in cl
10313 do
10314 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10315set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10316echo "$as_me:$LINENO: checking for $ac_word" >&5
10317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10318if test "${ac_cv_prog_CC+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10320else
10321 if test -n "$CC"; then
10322 ac_cv_prog_CC="$CC" # Let the user override the test.
10323else
e6cc62c6
VS
10324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10325for as_dir in $PATH
10326do
10327 IFS=$as_save_IFS
10328 test -z "$as_dir" && as_dir=.
10329 for ac_exec_ext in '' $ac_executable_extensions; do
10330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10331 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 break 2
10334 fi
10335done
10336done
10337
f09359cf
VS
10338fi
10339fi
e6cc62c6 10340CC=$ac_cv_prog_CC
f09359cf 10341if test -n "$CC"; then
e6cc62c6
VS
10342 echo "$as_me:$LINENO: result: $CC" >&5
10343echo "${ECHO_T}$CC" >&6
f09359cf 10344else
e6cc62c6
VS
10345 echo "$as_me:$LINENO: result: no" >&5
10346echo "${ECHO_T}no" >&6
5c6fa7d2 10347fi
1e487827 10348
e6cc62c6
VS
10349 test -n "$CC" && break
10350 done
10351fi
10352if test -z "$CC"; then
10353 ac_ct_CC=$CC
10354 for ac_prog in cl
10355do
10356 # Extract the first word of "$ac_prog", so it can be a program name with args.
10357set dummy $ac_prog; ac_word=$2
10358echo "$as_me:$LINENO: checking for $ac_word" >&5
10359echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10360if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10362else
10363 if test -n "$ac_ct_CC"; then
10364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10365else
10366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367for as_dir in $PATH
10368do
10369 IFS=$as_save_IFS
10370 test -z "$as_dir" && as_dir=.
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10373 ac_cv_prog_ac_ct_CC="$ac_prog"
10374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10375 break 2
10376 fi
10377done
10378done
f09359cf 10379
e6cc62c6
VS
10380fi
10381fi
10382ac_ct_CC=$ac_cv_prog_ac_ct_CC
10383if test -n "$ac_ct_CC"; then
10384 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10385echo "${ECHO_T}$ac_ct_CC" >&6
10386else
10387 echo "$as_me:$LINENO: result: no" >&5
10388echo "${ECHO_T}no" >&6
10389fi
f09359cf 10390
e6cc62c6
VS
10391 test -n "$ac_ct_CC" && break
10392done
247f5006 10393
e6cc62c6
VS
10394 CC=$ac_ct_CC
10395fi
10396
10397fi
10398
10399
10400test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10401See \`config.log' for more details." >&5
10402echo "$as_me: error: no acceptable C compiler found in \$PATH
10403See \`config.log' for more details." >&2;}
10404 { (exit 1); exit 1; }; }
10405
10406# Provide some information about the compiler.
10407echo "$as_me:$LINENO:" \
10408 "checking for C compiler version" >&5
10409ac_compiler=`set X $ac_compile; echo $2`
10410{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10411 (eval $ac_compiler --version </dev/null >&5) 2>&5
10412 ac_status=$?
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }
10415{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10416 (eval $ac_compiler -v </dev/null >&5) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }
10420{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10421 (eval $ac_compiler -V </dev/null >&5) 2>&5
10422 ac_status=$?
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }
10425
10426cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10427/* confdefs.h. */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
10431/* end confdefs.h. */
10432
10433int
10434main ()
10435{
247f5006 10436
e6cc62c6
VS
10437 ;
10438 return 0;
10439}
10440_ACEOF
10441ac_clean_files_save=$ac_clean_files
10442ac_clean_files="$ac_clean_files a.out a.exe b.out"
10443# Try to create an executable without -o first, disregard a.out.
10444# It will help us diagnose broken compilers, and finding out an intuition
10445# of exeext.
32ddf007
VS
10446echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10447echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
e6cc62c6
VS
10448ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10449if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10450 (eval $ac_link_default) 2>&5
10451 ac_status=$?
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); }; then
10454 # Find the output, starting from the most likely. This scheme is
10455# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10456# resort.
10457
10458# Be careful to initialize this variable, since it used to be cached.
10459# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10460ac_cv_exeext=
10461# b.out is created by i960 compilers.
10462for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10463do
10464 test -f "$ac_file" || continue
10465 case $ac_file in
10466 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
32ddf007 10467 ;;
e6cc62c6 10468 conftest.$ac_ext )
32ddf007
VS
10469 # This is the source file.
10470 ;;
e6cc62c6 10471 [ab].out )
32ddf007
VS
10472 # We found the default executable, but exeext='' is most
10473 # certainly right.
10474 break;;
e6cc62c6 10475 *.* )
32ddf007
VS
10476 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10477 # FIXME: I believe we export ac_cv_exeext for Libtool,
10478 # but it would be cool to find out if it's true. Does anybody
10479 # maintain Libtool? --akim.
10480 export ac_cv_exeext
10481 break;;
e6cc62c6 10482 * )
32ddf007 10483 break;;
e6cc62c6
VS
10484 esac
10485done
10486else
10487 echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
10490{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10491See \`config.log' for more details." >&5
10492echo "$as_me: error: C compiler cannot create executables
10493See \`config.log' for more details." >&2;}
10494 { (exit 77); exit 77; }; }
10495fi
10496
10497ac_exeext=$ac_cv_exeext
10498echo "$as_me:$LINENO: result: $ac_file" >&5
10499echo "${ECHO_T}$ac_file" >&6
10500
10501# Check the compiler produces executables we can run. If not, either
10502# the compiler is broken, or we cross compile.
10503echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10504echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10505# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10506# If not cross compiling, check that we can run a simple program.
10507if test "$cross_compiling" != yes; then
10508 if { ac_try='./$ac_file'
10509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510 (eval $ac_try) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; }; then
10514 cross_compiling=no
698dcdb6 10515 else
e6cc62c6
VS
10516 if test "$cross_compiling" = maybe; then
10517 cross_compiling=yes
10518 else
10519 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10520If you meant to cross compile, use \`--host'.
10521See \`config.log' for more details." >&5
10522echo "$as_me: error: cannot run C compiled programs.
10523If you meant to cross compile, use \`--host'.
10524See \`config.log' for more details." >&2;}
10525 { (exit 1); exit 1; }; }
10526 fi
698dcdb6 10527 fi
52127426 10528fi
e6cc62c6
VS
10529echo "$as_me:$LINENO: result: yes" >&5
10530echo "${ECHO_T}yes" >&6
10531
10532rm -f a.out a.exe conftest$ac_cv_exeext b.out
10533ac_clean_files=$ac_clean_files_save
10534# Check the compiler produces executables we can run. If not, either
10535# the compiler is broken, or we cross compile.
10536echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10537echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10538echo "$as_me:$LINENO: result: $cross_compiling" >&5
10539echo "${ECHO_T}$cross_compiling" >&6
10540
10541echo "$as_me:$LINENO: checking for suffix of executables" >&5
10542echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10544 (eval $ac_link) 2>&5
10545 ac_status=$?
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; then
10548 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10549# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10550# work properly (i.e., refer to `conftest.exe'), while it won't with
10551# `rm'.
10552for ac_file in conftest.exe conftest conftest.*; do
10553 test -f "$ac_file" || continue
10554 case $ac_file in
10555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10556 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
32ddf007
VS
10557 export ac_cv_exeext
10558 break;;
e6cc62c6
VS
10559 * ) break;;
10560 esac
10561done
5c6fa7d2 10562else
e6cc62c6
VS
10563 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10564See \`config.log' for more details." >&5
10565echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10566See \`config.log' for more details." >&2;}
10567 { (exit 1); exit 1; }; }
10568fi
10569
10570rm -f conftest$ac_cv_exeext
10571echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10572echo "${ECHO_T}$ac_cv_exeext" >&6
10573
10574rm -f conftest.$ac_ext
10575EXEEXT=$ac_cv_exeext
10576ac_exeext=$EXEEXT
10577echo "$as_me:$LINENO: checking for suffix of object files" >&5
10578echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10579if test "${ac_cv_objext+set}" = set; then
10580 echo $ECHO_N "(cached) $ECHO_C" >&6
10581else
10582 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10583/* confdefs.h. */
10584_ACEOF
10585cat confdefs.h >>conftest.$ac_ext
10586cat >>conftest.$ac_ext <<_ACEOF
10587/* end confdefs.h. */
10588
10589int
10590main ()
10591{
f09359cf 10592
e6cc62c6
VS
10593 ;
10594 return 0;
10595}
10596_ACEOF
10597rm -f conftest.o conftest.obj
10598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10599 (eval $ac_compile) 2>&5
10600 ac_status=$?
10601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10602 (exit $ac_status); }; then
10603 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10604 case $ac_file in
10605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10606 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10607 break;;
10608 esac
10609done
a0b9e27f 10610else
e6cc62c6
VS
10611 echo "$as_me: failed program was:" >&5
10612sed 's/^/| /' conftest.$ac_ext >&5
10613
10614{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10615See \`config.log' for more details." >&5
10616echo "$as_me: error: cannot compute suffix of object files: cannot compile
10617See \`config.log' for more details." >&2;}
10618 { (exit 1); exit 1; }; }
a0b9e27f 10619fi
247f5006 10620
e6cc62c6
VS
10621rm -f conftest.$ac_cv_objext conftest.$ac_ext
10622fi
10623echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10624echo "${ECHO_T}$ac_cv_objext" >&6
10625OBJEXT=$ac_cv_objext
10626ac_objext=$OBJEXT
10627echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10628echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10629if test "${ac_cv_c_compiler_gnu+set}" = set; then
10630 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10631else
e6cc62c6 10632 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10633/* confdefs.h. */
10634_ACEOF
10635cat confdefs.h >>conftest.$ac_ext
10636cat >>conftest.$ac_ext <<_ACEOF
10637/* end confdefs.h. */
10638
10639int
10640main ()
10641{
10642#ifndef __GNUC__
10643 choke me
10644#endif
10645
10646 ;
10647 return 0;
10648}
10649_ACEOF
10650rm -f conftest.$ac_objext
10651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10652 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10653 ac_status=$?
32ddf007
VS
10654 grep -v '^ *+' conftest.er1 >conftest.err
10655 rm -f conftest.er1
10656 cat conftest.err >&5
e6cc62c6
VS
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } &&
32ddf007
VS
10659 { ac_try='test -z "$ac_c_werror_flag"
10660 || test ! -s conftest.err'
10661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10662 (eval $ac_try) 2>&5
10663 ac_status=$?
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); }; } &&
10666 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10669 ac_status=$?
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 ac_compiler_gnu=yes
10673else
10674 echo "$as_me: failed program was:" >&5
10675sed 's/^/| /' conftest.$ac_ext >&5
10676
10677ac_compiler_gnu=no
10678fi
32ddf007 10679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10680ac_cv_c_compiler_gnu=$ac_compiler_gnu
10681
10682fi
10683echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10684echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10685GCC=`test $ac_compiler_gnu = yes && echo yes`
10686ac_test_CFLAGS=${CFLAGS+set}
10687ac_save_CFLAGS=$CFLAGS
10688CFLAGS="-g"
10689echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10690echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10691if test "${ac_cv_prog_cc_g+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693else
10694 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10695/* confdefs.h. */
10696_ACEOF
10697cat confdefs.h >>conftest.$ac_ext
10698cat >>conftest.$ac_ext <<_ACEOF
10699/* end confdefs.h. */
10700
10701int
10702main ()
10703{
10704
10705 ;
10706 return 0;
10707}
10708_ACEOF
10709rm -f conftest.$ac_objext
10710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10711 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10712 ac_status=$?
32ddf007
VS
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
e6cc62c6
VS
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } &&
32ddf007
VS
10718 { ac_try='test -z "$ac_c_werror_flag"
10719 || test ! -s conftest.err'
10720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721 (eval $ac_try) 2>&5
10722 ac_status=$?
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; } &&
10725 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727 (eval $ac_try) 2>&5
10728 ac_status=$?
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; }; then
10f2d63a
VZ
10731 ac_cv_prog_cc_g=yes
10732else
e6cc62c6
VS
10733 echo "$as_me: failed program was:" >&5
10734sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10735
e6cc62c6 10736ac_cv_prog_cc_g=no
10f2d63a 10737fi
32ddf007 10738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10739fi
10740echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10741echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10742if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10743 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10744elif test $ac_cv_prog_cc_g = yes; then
10745 if test "$GCC" = yes; then
10f2d63a
VZ
10746 CFLAGS="-g -O2"
10747 else
f09359cf 10748 CFLAGS="-g"
10f2d63a 10749 fi
5c0a20c3 10750else
f09359cf
VS
10751 if test "$GCC" = yes; then
10752 CFLAGS="-O2"
10753 else
10754 CFLAGS=
10755 fi
10f2d63a 10756fi
e6cc62c6
VS
10757echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10758echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10759if test "${ac_cv_prog_cc_stdc+set}" = set; then
10760 echo $ECHO_N "(cached) $ECHO_C" >&6
10761else
10762 ac_cv_prog_cc_stdc=no
10763ac_save_CC=$CC
10764cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10765/* confdefs.h. */
10766_ACEOF
10767cat confdefs.h >>conftest.$ac_ext
10768cat >>conftest.$ac_ext <<_ACEOF
10769/* end confdefs.h. */
10770#include <stdarg.h>
10771#include <stdio.h>
10772#include <sys/types.h>
10773#include <sys/stat.h>
10774/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10775struct buf { int x; };
10776FILE * (*rcsopen) (struct buf *, struct stat *, int);
10777static char *e (p, i)
10778 char **p;
10779 int i;
10780{
10781 return p[i];
10782}
10783static char *f (char * (*g) (char **, int), char **p, ...)
10784{
10785 char *s;
10786 va_list v;
10787 va_start (v,p);
10788 s = g (p, va_arg (v,int));
10789 va_end (v);
10790 return s;
10791}
32ddf007
VS
10792
10793/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10794 function prototypes and stuff, but not '\xHH' hex character constants.
10795 These don't provoke an error unfortunately, instead are silently treated
10796 as 'x'. The following induces an error, until -std1 is added to get
10797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10798 array size at least. It's necessary to write '\x00'==0 to get something
10799 that's true only with -std1. */
10800int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10801
e6cc62c6
VS
10802int test (int i, double x);
10803struct s1 {int (*f) (int a);};
10804struct s2 {int (*f) (double a);};
10805int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10806int argc;
10807char **argv;
10808int
10809main ()
10810{
10811return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10812 ;
10813 return 0;
10814}
10815_ACEOF
10816# Don't try gcc -ansi; that turns off useful extensions and
10817# breaks some systems' header files.
10818# AIX -qlanglvl=ansi
10819# Ultrix and OSF/1 -std1
10820# HP-UX 10.20 and later -Ae
10821# HP-UX older versions -Aa -D_HPUX_SOURCE
10822# SVR4 -Xc -D__EXTENSIONS__
10823for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10824do
10825 CC="$ac_save_CC $ac_arg"
10826 rm -f conftest.$ac_objext
10827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10828 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10829 ac_status=$?
32ddf007
VS
10830 grep -v '^ *+' conftest.er1 >conftest.err
10831 rm -f conftest.er1
10832 cat conftest.err >&5
e6cc62c6
VS
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } &&
32ddf007
VS
10835 { ac_try='test -z "$ac_c_werror_flag"
10836 || test ! -s conftest.err'
10837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10838 (eval $ac_try) 2>&5
10839 ac_status=$?
10840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10841 (exit $ac_status); }; } &&
10842 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10844 (eval $ac_try) 2>&5
10845 ac_status=$?
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); }; }; then
10848 ac_cv_prog_cc_stdc=$ac_arg
10849break
10850else
10851 echo "$as_me: failed program was:" >&5
10852sed 's/^/| /' conftest.$ac_ext >&5
10853
10854fi
32ddf007 10855rm -f conftest.err conftest.$ac_objext
e6cc62c6
VS
10856done
10857rm -f conftest.$ac_ext conftest.$ac_objext
10858CC=$ac_save_CC
10859
10860fi
10861
10862case "x$ac_cv_prog_cc_stdc" in
10863 x|xno)
10864 echo "$as_me:$LINENO: result: none needed" >&5
10865echo "${ECHO_T}none needed" >&6 ;;
10866 *)
10867 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10868echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10869 CC="$CC $ac_cv_prog_cc_stdc" ;;
10870esac
10871
10872# Some people use a C++ compiler to compile C. Since we use `exit',
10873# in C++ we need to declare it. In case someone uses the same compiler
10874# for both compiling C and C++ we need to have the C++ compiler decide
10875# the declaration of exit, since it's the most demanding environment.
10876cat >conftest.$ac_ext <<_ACEOF
10877#ifndef __cplusplus
10878 choke me
10879#endif
10880_ACEOF
10881rm -f conftest.$ac_objext
10882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10883 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10884 ac_status=$?
32ddf007
VS
10885 grep -v '^ *+' conftest.er1 >conftest.err
10886 rm -f conftest.er1
10887 cat conftest.err >&5
e6cc62c6
VS
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); } &&
32ddf007
VS
10890 { ac_try='test -z "$ac_c_werror_flag"
10891 || test ! -s conftest.err'
10892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10893 (eval $ac_try) 2>&5
10894 ac_status=$?
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); }; } &&
10897 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10899 (eval $ac_try) 2>&5
10900 ac_status=$?
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; }; then
10903 for ac_declaration in \
32ddf007 10904 '' \
e6cc62c6
VS
10905 'extern "C" void std::exit (int) throw (); using std::exit;' \
10906 'extern "C" void std::exit (int); using std::exit;' \
10907 'extern "C" void exit (int) throw ();' \
10908 'extern "C" void exit (int);' \
10909 'void exit (int);'
10910do
10911 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10912/* confdefs.h. */
10913_ACEOF
10914cat confdefs.h >>conftest.$ac_ext
10915cat >>conftest.$ac_ext <<_ACEOF
10916/* end confdefs.h. */
0f87e84c 10917$ac_declaration
32ddf007 10918#include <stdlib.h>
e6cc62c6
VS
10919int
10920main ()
10921{
10922exit (42);
10923 ;
10924 return 0;
10925}
10926_ACEOF
10927rm -f conftest.$ac_objext
10928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10929 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10930 ac_status=$?
32ddf007
VS
10931 grep -v '^ *+' conftest.er1 >conftest.err
10932 rm -f conftest.er1
10933 cat conftest.err >&5
e6cc62c6
VS
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } &&
32ddf007
VS
10936 { ac_try='test -z "$ac_c_werror_flag"
10937 || test ! -s conftest.err'
10938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10939 (eval $ac_try) 2>&5
10940 ac_status=$?
10941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942 (exit $ac_status); }; } &&
10943 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10945 (eval $ac_try) 2>&5
10946 ac_status=$?
10947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); }; }; then
10949 :
10950else
10951 echo "$as_me: failed program was:" >&5
10952sed 's/^/| /' conftest.$ac_ext >&5
10953
10954continue
10955fi
32ddf007 10956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 10957 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10958/* confdefs.h. */
10959_ACEOF
10960cat confdefs.h >>conftest.$ac_ext
10961cat >>conftest.$ac_ext <<_ACEOF
10962/* end confdefs.h. */
10963$ac_declaration
10964int
10965main ()
10966{
10967exit (42);
10968 ;
10969 return 0;
10970}
10971_ACEOF
10972rm -f conftest.$ac_objext
10973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 10974 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10975 ac_status=$?
32ddf007
VS
10976 grep -v '^ *+' conftest.er1 >conftest.err
10977 rm -f conftest.er1
10978 cat conftest.err >&5
e6cc62c6
VS
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } &&
32ddf007
VS
10981 { ac_try='test -z "$ac_c_werror_flag"
10982 || test ! -s conftest.err'
10983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10984 (eval $ac_try) 2>&5
10985 ac_status=$?
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; } &&
10988 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10990 (eval $ac_try) 2>&5
10991 ac_status=$?
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); }; }; then
10994 break
10995else
10996 echo "$as_me: failed program was:" >&5
10997sed 's/^/| /' conftest.$ac_ext >&5
10998
10999fi
32ddf007 11000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11001done
11002rm -f conftest*
11003if test -n "$ac_declaration"; then
11004 echo '#ifdef __cplusplus' >>confdefs.h
11005 echo $ac_declaration >>confdefs.h
11006 echo '#endif' >>confdefs.h
11007fi
11008
11009else
11010 echo "$as_me: failed program was:" >&5
11011sed 's/^/| /' conftest.$ac_ext >&5
11012
11013fi
32ddf007 11014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11015ac_ext=c
11016ac_cpp='$CPP $CPPFLAGS'
11017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11019ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
11020
11021
e6cc62c6
VS
11022
11023ac_ext=c
11024ac_cpp='$CPP $CPPFLAGS'
11025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11027ac_compiler_gnu=$ac_cv_c_compiler_gnu
11028echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
11029echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
11030# On Suns, sometimes $CPP names a directory.
11031if test -n "$CPP" && test -d "$CPP"; then
11032 CPP=
11033fi
11034if test -z "$CPP"; then
e6cc62c6
VS
11035 if test "${ac_cv_prog_CPP+set}" = set; then
11036 echo $ECHO_N "(cached) $ECHO_C" >&6
11037else
11038 # Double quotes because CPP needs to be expanded
11039 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11040 do
11041 ac_preproc_ok=false
11042for ac_c_preproc_warn_flag in '' yes
11043do
11044 # Use a header file that comes with gcc, so configuring glibc
11045 # with a fresh cross-compiler works.
11046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11047 # <limits.h> exists even on freestanding compilers.
10f2d63a 11048 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
11049 # not just through cpp. "Syntax error" is here to catch this case.
11050 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11051/* confdefs.h. */
11052_ACEOF
11053cat confdefs.h >>conftest.$ac_ext
11054cat >>conftest.$ac_ext <<_ACEOF
11055/* end confdefs.h. */
11056#ifdef __STDC__
11057# include <limits.h>
11058#else
11059# include <assert.h>
11060#endif
32ddf007 11061 Syntax error
e6cc62c6
VS
11062_ACEOF
11063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11065 ac_status=$?
11066 grep -v '^ *+' conftest.er1 >conftest.err
11067 rm -f conftest.er1
11068 cat conftest.err >&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); } >/dev/null; then
11071 if test -s conftest.err; then
11072 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 11073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11074 else
11075 ac_cpp_err=
11076 fi
10f2d63a 11077else
e6cc62c6
VS
11078 ac_cpp_err=yes
11079fi
11080if test -z "$ac_cpp_err"; then
a0b9e27f 11081 :
247f5006 11082else
e6cc62c6
VS
11083 echo "$as_me: failed program was:" >&5
11084sed 's/^/| /' conftest.$ac_ext >&5
11085
11086 # Broken: fails on valid input.
11087continue
11088fi
11089rm -f conftest.err conftest.$ac_ext
11090
11091 # OK, works on sane cases. Now check whether non-existent headers
11092 # can be detected and how.
11093 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11094/* confdefs.h. */
11095_ACEOF
11096cat confdefs.h >>conftest.$ac_ext
11097cat >>conftest.$ac_ext <<_ACEOF
11098/* end confdefs.h. */
11099#include <ac_nonexistent.h>
11100_ACEOF
11101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11103 ac_status=$?
11104 grep -v '^ *+' conftest.er1 >conftest.err
11105 rm -f conftest.er1
11106 cat conftest.err >&5
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } >/dev/null; then
11109 if test -s conftest.err; then
11110 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 11111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11112 else
11113 ac_cpp_err=
11114 fi
10f2d63a 11115else
e6cc62c6 11116 ac_cpp_err=yes
579d8138 11117fi
e6cc62c6
VS
11118if test -z "$ac_cpp_err"; then
11119 # Broken: success on invalid input.
11120continue
11121else
11122 echo "$as_me: failed program was:" >&5
11123sed 's/^/| /' conftest.$ac_ext >&5
11124
11125 # Passes both tests.
11126ac_preproc_ok=:
11127break
52127426 11128fi
e6cc62c6
VS
11129rm -f conftest.err conftest.$ac_ext
11130
11131done
11132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11133rm -f conftest.err conftest.$ac_ext
11134if $ac_preproc_ok; then
11135 break
8284b0c5 11136fi
e6cc62c6
VS
11137
11138 done
11139 ac_cv_prog_CPP=$CPP
11140
11141fi
11142 CPP=$ac_cv_prog_CPP
11143else
11144 ac_cv_prog_CPP=$CPP
11145fi
11146echo "$as_me:$LINENO: result: $CPP" >&5
11147echo "${ECHO_T}$CPP" >&6
11148ac_preproc_ok=false
11149for ac_c_preproc_warn_flag in '' yes
11150do
11151 # Use a header file that comes with gcc, so configuring glibc
11152 # with a fresh cross-compiler works.
11153 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11154 # <limits.h> exists even on freestanding compilers.
11155 # On the NeXT, cc -E runs the code through the compiler's parser,
11156 # not just through cpp. "Syntax error" is here to catch this case.
11157 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11158/* confdefs.h. */
11159_ACEOF
11160cat confdefs.h >>conftest.$ac_ext
11161cat >>conftest.$ac_ext <<_ACEOF
11162/* end confdefs.h. */
11163#ifdef __STDC__
11164# include <limits.h>
11165#else
11166# include <assert.h>
11167#endif
32ddf007 11168 Syntax error
e6cc62c6
VS
11169_ACEOF
11170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11172 ac_status=$?
11173 grep -v '^ *+' conftest.er1 >conftest.err
11174 rm -f conftest.er1
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } >/dev/null; then
11178 if test -s conftest.err; then
11179 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 11180 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11181 else
11182 ac_cpp_err=
11183 fi
11184else
11185 ac_cpp_err=yes
11186fi
11187if test -z "$ac_cpp_err"; then
11188 :
11189else
11190 echo "$as_me: failed program was:" >&5
11191sed 's/^/| /' conftest.$ac_ext >&5
11192
11193 # Broken: fails on valid input.
11194continue
11195fi
11196rm -f conftest.err conftest.$ac_ext
11197
11198 # OK, works on sane cases. Now check whether non-existent headers
11199 # can be detected and how.
11200 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11201/* confdefs.h. */
11202_ACEOF
11203cat confdefs.h >>conftest.$ac_ext
11204cat >>conftest.$ac_ext <<_ACEOF
11205/* end confdefs.h. */
11206#include <ac_nonexistent.h>
11207_ACEOF
11208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11210 ac_status=$?
11211 grep -v '^ *+' conftest.er1 >conftest.err
11212 rm -f conftest.er1
11213 cat conftest.err >&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } >/dev/null; then
11216 if test -s conftest.err; then
11217 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 11218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11219 else
11220 ac_cpp_err=
11221 fi
11222else
11223 ac_cpp_err=yes
11224fi
11225if test -z "$ac_cpp_err"; then
11226 # Broken: success on invalid input.
11227continue
11228else
11229 echo "$as_me: failed program was:" >&5
11230sed 's/^/| /' conftest.$ac_ext >&5
11231
11232 # Passes both tests.
11233ac_preproc_ok=:
11234break
a0b9e27f 11235fi
e6cc62c6
VS
11236rm -f conftest.err conftest.$ac_ext
11237
11238done
11239# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11240rm -f conftest.err conftest.$ac_ext
11241if $ac_preproc_ok; then
11242 :
11243else
11244 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11245See \`config.log' for more details." >&5
11246echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11247See \`config.log' for more details." >&2;}
11248 { (exit 1); exit 1; }; }
11249fi
11250
11251ac_ext=c
11252ac_cpp='$CPP $CPPFLAGS'
11253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11255ac_compiler_gnu=$ac_cv_c_compiler_gnu
11256
11257
11258echo "$as_me:$LINENO: checking for egrep" >&5
11259echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11260if test "${ac_cv_prog_egrep+set}" = set; then
11261 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11262else
e6cc62c6
VS
11263 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11264 then ac_cv_prog_egrep='grep -E'
11265 else ac_cv_prog_egrep='egrep'
11266 fi
10f2d63a 11267fi
e6cc62c6
VS
11268echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11269echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11270 EGREP=$ac_cv_prog_egrep
11271
10f2d63a 11272
e6cc62c6
VS
11273if test $ac_cv_c_compiler_gnu = yes; then
11274 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11275echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11276if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11277 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11278else
11279 ac_pattern="Autoconf.*'x'"
e6cc62c6 11280 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11281/* confdefs.h. */
11282_ACEOF
11283cat confdefs.h >>conftest.$ac_ext
11284cat >>conftest.$ac_ext <<_ACEOF
11285/* end confdefs.h. */
10f2d63a
VZ
11286#include <sgtty.h>
11287Autoconf TIOCGETP
e6cc62c6 11288_ACEOF
10f2d63a 11289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11290 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11291 ac_cv_prog_gcc_traditional=yes
11292else
10f2d63a
VZ
11293 ac_cv_prog_gcc_traditional=no
11294fi
11295rm -f conftest*
11296
8284b0c5 11297
10f2d63a 11298 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6 11299 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11300/* confdefs.h. */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h. */
10f2d63a
VZ
11305#include <termio.h>
11306Autoconf TCGETA
e6cc62c6 11307_ACEOF
10f2d63a 11308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11309 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11310 ac_cv_prog_gcc_traditional=yes
11311fi
11312rm -f conftest*
11313
11314 fi
11315fi
e6cc62c6
VS
11316echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11317echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11318 if test $ac_cv_prog_gcc_traditional = yes; then
11319 CC="$CC -traditional"
11320 fi
11321fi
11322
8284b0c5
MB
11323
11324
e6cc62c6
VS
11325
11326ac_ext=cc
1e487827 11327ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11331
698dcdb6 11332
ec603395 11333CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11334ac_ext=cc
11335ac_cpp='$CXXCPP $CPPFLAGS'
11336ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11337ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11338ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11339if test -n "$ac_tool_prefix"; then
11340 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11341 do
11342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11343set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11344echo "$as_me:$LINENO: checking for $ac_word" >&5
11345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11346if test "${ac_cv_prog_CXX+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11348else
11349 if test -n "$CXX"; then
11350 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11351else
e6cc62c6
VS
11352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $PATH
11354do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11359 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11362 fi
11363done
11364done
11365
10f2d63a
VZ
11366fi
11367fi
e6cc62c6 11368CXX=$ac_cv_prog_CXX
10f2d63a 11369if test -n "$CXX"; then
e6cc62c6
VS
11370 echo "$as_me:$LINENO: result: $CXX" >&5
11371echo "${ECHO_T}$CXX" >&6
10f2d63a 11372else
e6cc62c6
VS
11373 echo "$as_me:$LINENO: result: no" >&5
11374echo "${ECHO_T}no" >&6
10f2d63a
VZ
11375fi
11376
e6cc62c6
VS
11377 test -n "$CXX" && break
11378 done
11379fi
11380if test -z "$CXX"; then
11381 ac_ct_CXX=$CXX
11382 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11383do
11384 # Extract the first word of "$ac_prog", so it can be a program name with args.
11385set dummy $ac_prog; ac_word=$2
11386echo "$as_me:$LINENO: checking for $ac_word" >&5
11387echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11388if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11390else
11391 if test -n "$ac_ct_CXX"; then
11392 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11393else
11394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395for as_dir in $PATH
11396do
11397 IFS=$as_save_IFS
11398 test -z "$as_dir" && as_dir=.
11399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11401 ac_cv_prog_ac_ct_CXX="$ac_prog"
11402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11403 break 2
11404 fi
11405done
10f2d63a 11406done
a0b9e27f 11407
8284b0c5 11408fi
a0b9e27f 11409fi
e6cc62c6
VS
11410ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11411if test -n "$ac_ct_CXX"; then
11412 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11413echo "${ECHO_T}$ac_ct_CXX" >&6
11414else
11415 echo "$as_me:$LINENO: result: no" >&5
11416echo "${ECHO_T}no" >&6
a0b9e27f 11417fi
10f2d63a 11418
e6cc62c6
VS
11419 test -n "$ac_ct_CXX" && break
11420done
11421test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11422
11423 CXX=$ac_ct_CXX
11424fi
11425
11426
11427# Provide some information about the compiler.
11428echo "$as_me:$LINENO:" \
11429 "checking for C++ compiler version" >&5
11430ac_compiler=`set X $ac_compile; echo $2`
11431{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11432 (eval $ac_compiler --version </dev/null >&5) 2>&5
11433 ac_status=$?
11434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435 (exit $ac_status); }
11436{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11437 (eval $ac_compiler -v </dev/null >&5) 2>&5
11438 ac_status=$?
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }
11441{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11442 (eval $ac_compiler -V </dev/null >&5) 2>&5
11443 ac_status=$?
11444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11445 (exit $ac_status); }
11446
11447echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11448echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11449if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451else
11452 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11453/* confdefs.h. */
11454_ACEOF
11455cat confdefs.h >>conftest.$ac_ext
11456cat >>conftest.$ac_ext <<_ACEOF
11457/* end confdefs.h. */
11458
11459int
11460main ()
11461{
11462#ifndef __GNUC__
11463 choke me
11464#endif
10f2d63a 11465
e6cc62c6
VS
11466 ;
11467 return 0;
11468}
11469_ACEOF
11470rm -f conftest.$ac_objext
11471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 11472 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11473 ac_status=$?
32ddf007
VS
11474 grep -v '^ *+' conftest.er1 >conftest.err
11475 rm -f conftest.er1
11476 cat conftest.err >&5
e6cc62c6
VS
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } &&
32ddf007
VS
11479 { ac_try='test -z "$ac_cxx_werror_flag"
11480 || test ! -s conftest.err'
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; } &&
11486 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488 (eval $ac_try) 2>&5
11489 ac_status=$?
11490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491 (exit $ac_status); }; }; then
11492 ac_compiler_gnu=yes
11493else
11494 echo "$as_me: failed program was:" >&5
11495sed 's/^/| /' conftest.$ac_ext >&5
11496
11497ac_compiler_gnu=no
11498fi
32ddf007 11499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11500ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11501
11502fi
11503echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11504echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11505GXX=`test $ac_compiler_gnu = yes && echo yes`
11506ac_test_CXXFLAGS=${CXXFLAGS+set}
11507ac_save_CXXFLAGS=$CXXFLAGS
11508CXXFLAGS="-g"
11509echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11510echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11511if test "${ac_cv_prog_cxx_g+set}" = set; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11513else
11514 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11515/* confdefs.h. */
11516_ACEOF
11517cat confdefs.h >>conftest.$ac_ext
11518cat >>conftest.$ac_ext <<_ACEOF
11519/* end confdefs.h. */
11520
11521int
11522main ()
11523{
f09359cf 11524
e6cc62c6
VS
11525 ;
11526 return 0;
11527}
11528_ACEOF
11529rm -f conftest.$ac_objext
11530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 11531 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11532 ac_status=$?
32ddf007
VS
11533 grep -v '^ *+' conftest.er1 >conftest.err
11534 rm -f conftest.er1
11535 cat conftest.err >&5
e6cc62c6
VS
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } &&
32ddf007
VS
11538 { ac_try='test -z "$ac_cxx_werror_flag"
11539 || test ! -s conftest.err'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11542 ac_status=$?
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11548 ac_status=$?
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
10f2d63a
VZ
11551 ac_cv_prog_cxx_g=yes
11552else
e6cc62c6
VS
11553 echo "$as_me: failed program was:" >&5
11554sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11555
e6cc62c6 11556ac_cv_prog_cxx_g=no
10f2d63a 11557fi
32ddf007 11558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11559fi
11560echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11561echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11562if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11563 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11564elif test $ac_cv_prog_cxx_g = yes; then
11565 if test "$GXX" = yes; then
10f2d63a
VZ
11566 CXXFLAGS="-g -O2"
11567 else
f09359cf 11568 CXXFLAGS="-g"
10f2d63a 11569 fi
5c0a20c3 11570else
f09359cf
VS
11571 if test "$GXX" = yes; then
11572 CXXFLAGS="-O2"
11573 else
11574 CXXFLAGS=
11575 fi
10f2d63a 11576fi
e6cc62c6 11577for ac_declaration in \
32ddf007 11578 '' \
e6cc62c6
VS
11579 'extern "C" void std::exit (int) throw (); using std::exit;' \
11580 'extern "C" void std::exit (int); using std::exit;' \
11581 'extern "C" void exit (int) throw ();' \
11582 'extern "C" void exit (int);' \
11583 'void exit (int);'
11584do
11585 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11586/* confdefs.h. */
11587_ACEOF
11588cat confdefs.h >>conftest.$ac_ext
11589cat >>conftest.$ac_ext <<_ACEOF
11590/* end confdefs.h. */
0f87e84c 11591$ac_declaration
32ddf007 11592#include <stdlib.h>
e6cc62c6
VS
11593int
11594main ()
11595{
11596exit (42);
11597 ;
11598 return 0;
11599}
11600_ACEOF
11601rm -f conftest.$ac_objext
11602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 11603 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11604 ac_status=$?
32ddf007
VS
11605 grep -v '^ *+' conftest.er1 >conftest.err
11606 rm -f conftest.er1
11607 cat conftest.err >&5
e6cc62c6
VS
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } &&
32ddf007
VS
11610 { ac_try='test -z "$ac_cxx_werror_flag"
11611 || test ! -s conftest.err'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; } &&
11617 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619 (eval $ac_try) 2>&5
11620 ac_status=$?
11621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622 (exit $ac_status); }; }; then
11623 :
11624else
11625 echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628continue
11629fi
32ddf007 11630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 11631 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11632/* confdefs.h. */
11633_ACEOF
11634cat confdefs.h >>conftest.$ac_ext
11635cat >>conftest.$ac_ext <<_ACEOF
11636/* end confdefs.h. */
11637$ac_declaration
11638int
11639main ()
11640{
11641exit (42);
11642 ;
11643 return 0;
11644}
11645_ACEOF
11646rm -f conftest.$ac_objext
11647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 11648 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11649 ac_status=$?
32ddf007
VS
11650 grep -v '^ *+' conftest.er1 >conftest.err
11651 rm -f conftest.er1
11652 cat conftest.err >&5
e6cc62c6
VS
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } &&
32ddf007
VS
11655 { ac_try='test -z "$ac_cxx_werror_flag"
11656 || test ! -s conftest.err'
11657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11658 (eval $ac_try) 2>&5
11659 ac_status=$?
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); }; } &&
11662 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11664 (eval $ac_try) 2>&5
11665 ac_status=$?
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); }; }; then
11668 break
11669else
11670 echo "$as_me: failed program was:" >&5
11671sed 's/^/| /' conftest.$ac_ext >&5
11672
11673fi
32ddf007 11674rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11675done
11676rm -f conftest*
11677if test -n "$ac_declaration"; then
11678 echo '#ifdef __cplusplus' >>confdefs.h
11679 echo $ac_declaration >>confdefs.h
11680 echo '#endif' >>confdefs.h
11681fi
11682
11683ac_ext=cc
11684ac_cpp='$CXXCPP $CPPFLAGS'
11685ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11686ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11687ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11688
11689
10f2d63a 11690ac_ext=c
10f2d63a 11691ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11694ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11695
11696
243f8ae5
VS
11697echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11698echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11699GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11700if test "$GCC" = "yes" ; then
11701 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11702 sed -n '1,/End of search list\./p' | \
11703 grep '^ */usr/local/include$' 2>&1 /dev/null \
11704 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11705fi
11706echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11707echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11708
e6cc62c6
VS
11709if test -n "$ac_tool_prefix"; then
11710 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11711set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11712echo "$as_me:$LINENO: checking for $ac_word" >&5
11713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11714if test "${ac_cv_prog_RANLIB+set}" = set; then
11715 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11716else
11717 if test -n "$RANLIB"; then
11718 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11719else
e6cc62c6
VS
11720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721for as_dir in $PATH
11722do
11723 IFS=$as_save_IFS
11724 test -z "$as_dir" && as_dir=.
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11727 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11729 break 2
11730 fi
11731done
11732done
11733
10f2d63a
VZ
11734fi
11735fi
e6cc62c6 11736RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11737if test -n "$RANLIB"; then
e6cc62c6
VS
11738 echo "$as_me:$LINENO: result: $RANLIB" >&5
11739echo "${ECHO_T}$RANLIB" >&6
11740else
11741 echo "$as_me:$LINENO: result: no" >&5
11742echo "${ECHO_T}no" >&6
11743fi
11744
11745fi
11746if test -z "$ac_cv_prog_RANLIB"; then
11747 ac_ct_RANLIB=$RANLIB
11748 # Extract the first word of "ranlib", so it can be a program name with args.
11749set dummy ranlib; ac_word=$2
11750echo "$as_me:$LINENO: checking for $ac_word" >&5
11751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11752if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11754else
e6cc62c6
VS
11755 if test -n "$ac_ct_RANLIB"; then
11756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11757else
11758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11759for as_dir in $PATH
11760do
11761 IFS=$as_save_IFS
11762 test -z "$as_dir" && as_dir=.
11763 for ac_exec_ext in '' $ac_executable_extensions; do
11764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11765 ac_cv_prog_ac_ct_RANLIB="ranlib"
11766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11767 break 2
11768 fi
11769done
11770done
11771
11772 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11773fi
11774fi
11775ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11776if test -n "$ac_ct_RANLIB"; then
11777 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11778echo "${ECHO_T}$ac_ct_RANLIB" >&6
11779else
11780 echo "$as_me:$LINENO: result: no" >&5
11781echo "${ECHO_T}no" >&6
11782fi
11783
11784 RANLIB=$ac_ct_RANLIB
11785else
11786 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11787fi
11788
10f2d63a
VZ
11789
11790# Extract the first word of "ar", so it can be a program name with args.
11791set dummy ar; ac_word=$2
e6cc62c6
VS
11792echo "$as_me:$LINENO: checking for $ac_word" >&5
11793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11794if test "${ac_cv_prog_AR+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11796else
11797 if test -n "$AR"; then
11798 ac_cv_prog_AR="$AR" # Let the user override the test.
11799else
e6cc62c6
VS
11800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801for as_dir in $PATH
11802do
11803 IFS=$as_save_IFS
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807 ac_cv_prog_AR="ar"
11808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11809 break 2
11810 fi
11811done
11812done
11813
10f2d63a
VZ
11814fi
11815fi
e6cc62c6 11816AR=$ac_cv_prog_AR
10f2d63a 11817if test -n "$AR"; then
e6cc62c6
VS
11818 echo "$as_me:$LINENO: result: $AR" >&5
11819echo "${ECHO_T}$AR" >&6
10f2d63a 11820else
e6cc62c6
VS
11821 echo "$as_me:$LINENO: result: no" >&5
11822echo "${ECHO_T}no" >&6
10f2d63a
VZ
11823fi
11824
911740e7
VS
11825if test "x$AR" = "x" ; then
11826 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11827echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11828 { (exit 1); exit 1; }; }
11829fi
8284b0c5 11830
6054113a 11831# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11832# so one script is as good as another. But avoid the broken or
11833# incompatible versions:
11834# SysV /etc/install, /usr/sbin/install
11835# SunOS /usr/etc/install
11836# IRIX /sbin/install
11837# AIX /bin/install
e6cc62c6 11838# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11839# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11840# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11841# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
32ddf007 11842# OS/2's system install, which has a completely different semantic
10f2d63a 11843# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11844echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11845echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11846if test -z "$INSTALL"; then
e6cc62c6
VS
11847if test "${ac_cv_path_install+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849else
11850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851for as_dir in $PATH
11852do
11853 IFS=$as_save_IFS
11854 test -z "$as_dir" && as_dir=.
11855 # Account for people who put trailing slashes in PATH elements.
11856case $as_dir/ in
11857 ./ | .// | /cC/* | \
11858 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
32ddf007 11859 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
11860 /usr/ucb/* ) ;;
11861 *)
11862 # OSF1 and SCO ODT 3.0 have their own names for install.
11863 # Don't use installbsd from OSF since it installs stuff as root
11864 # by default.
11865 for ac_prog in ginstall scoinst install; do
11866 for ac_exec_ext in '' $ac_executable_extensions; do
32ddf007
VS
11867 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11868 if test $ac_prog = install &&
11869 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11870 # AIX install. It has an incompatible calling convention.
11871 :
11872 elif test $ac_prog = install &&
11873 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11874 # program-specific install script used by HP pwplus--don't use.
11875 :
11876 else
11877 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11878 break 3
11879 fi
11880 fi
10f2d63a 11881 done
e6cc62c6
VS
11882 done
11883 ;;
11884esac
11885done
11886
10f2d63a
VZ
11887
11888fi
11889 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11890 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11891 else
11892 # As a last resort, use the slow shell script. We don't cache a
11893 # path for INSTALL within a source directory, because that will
11894 # break other packages using the cache if that directory is
11895 # removed, or if the path is relative.
e6cc62c6 11896 INSTALL=$ac_install_sh
10f2d63a
VZ
11897 fi
11898fi
e6cc62c6
VS
11899echo "$as_me:$LINENO: result: $INSTALL" >&5
11900echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11901
11902# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11903# It thinks the first close brace ends the variable substitution.
11904test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11905
e6cc62c6 11906test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11907
10f2d63a
VZ
11908test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11909
8284b0c5 11910
1d1b75ac
VZ
11911case ${INSTALL} in
11912 /* ) # Absolute
11913 ;;
4f5a7f74
VZ
11914 ?:* ) # Drive letter, considered as absolute.
11915 ;;
3bd8fb5f 11916 *)
1d1b75ac
VZ
11917 INSTALL=`pwd`/${INSTALL} ;;
11918esac
11919
4f5a7f74
VZ
11920case ${host} in
11921 *-hp-hpux* )
11922 INSTALL_DIR="mkdir"
11923 ;;
11924
11925 *) INSTALL_DIR="$INSTALL -d"
11926 ;;
11927esac
11928
8284b0c5 11929
6054113a
GD
11930case "${host}" in
11931
b5853384 11932 powerpc-*-darwin* )
eb99ae0b
GD
11933 INSTALL_PROGRAM="cp -fp"
11934 INSTALL_DATA="cp -fp"
6054113a
GD
11935 ;;
11936 *)
11937 ;;
d6853540 11938esac
698dcdb6 11939
10f2d63a
VZ
11940# Extract the first word of "strip", so it can be a program name with args.
11941set dummy strip; ac_word=$2
e6cc62c6
VS
11942echo "$as_me:$LINENO: checking for $ac_word" >&5
11943echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11944if test "${ac_cv_prog_STRIP+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11946else
11947 if test -n "$STRIP"; then
11948 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11949else
e6cc62c6
VS
11950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951for as_dir in $PATH
11952do
11953 IFS=$as_save_IFS
11954 test -z "$as_dir" && as_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11957 ac_cv_prog_STRIP="strip"
11958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11959 break 2
11960 fi
11961done
11962done
11963
10f2d63a
VZ
11964 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11965fi
11966fi
e6cc62c6 11967STRIP=$ac_cv_prog_STRIP
10f2d63a 11968if test -n "$STRIP"; then
e6cc62c6
VS
11969 echo "$as_me:$LINENO: result: $STRIP" >&5
11970echo "${ECHO_T}$STRIP" >&6
10f2d63a 11971else
e6cc62c6
VS
11972 echo "$as_me:$LINENO: result: no" >&5
11973echo "${ECHO_T}no" >&6
10f2d63a
VZ
11974fi
11975
5c6fa7d2 11976
e6cc62c6
VS
11977echo "$as_me:$LINENO: checking if make is GNU make" >&5
11978echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11979if test "${wx_cv_prog_makeisgnu+set}" = set; then
11980 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11981else
e6cc62c6 11982
414eab6d 11983 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11984 egrep -s GNU > /dev/null); then
414eab6d
VZ
11985 wx_cv_prog_makeisgnu="yes"
11986 else
11987 wx_cv_prog_makeisgnu="no"
11988 fi
11989
11990fi
e6cc62c6
VS
11991echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11992echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11993
11994if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11995 IF_GNU_MAKE=""
11996else
11997 IF_GNU_MAKE="#"
11998fi
11999
8284b0c5
MB
12000
12001
414eab6d 12002if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
12003echo "$as_me:$LINENO: checking if make supports VPATH" >&5
12004echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
12005if test "${wx_cv_prog_makevpath+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 12007else
e6cc62c6 12008
10f2d63a
VZ
12009cat - << EOF > confMake
12010check : file
12011 cp \$? \$@
12012 cp \$? final_file
12013EOF
12014
12015if test ! -d sub ; then
12016 mkdir sub
12017fi
12018echo dummy > sub/file
f6bcfd97 12019${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
12020RESULT=$?
12021rm -f sub/file check final_file confMake
12022rmdir sub
12023if test "$RESULT" = 0; then
04e7a216 12024 wx_cv_prog_makevpath="yes"
10f2d63a 12025else
04e7a216
VZ
12026 wx_cv_prog_makevpath="no"
12027fi
12028
12029fi
e6cc62c6
VS
12030echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
12031echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
12032
12033if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 12034{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
12035You need a make-utility that is able to use the variable
12036VPATH correctly.
12037If your version of make does not support VPATH correctly,
12038please install GNU-make (possibly as gmake), and start
12039configure with the following command:
12040export MAKE=gmake; ./configure for sh-type shells
12041setenv MAKE gmake; ./configure for csh-type shells
12042Also please do remember to use gmake in this case every time
12043you are trying to compile.
e6cc62c6
VS
12044" >&5
12045echo "$as_me: error:
12046You need a make-utility that is able to use the variable
12047VPATH correctly.
12048If your version of make does not support VPATH correctly,
12049please install GNU-make (possibly as gmake), and start
12050configure with the following command:
12051export MAKE=gmake; ./configure for sh-type shells
12052setenv MAKE gmake; ./configure for csh-type shells
12053Also please do remember to use gmake in this case every time
12054you are trying to compile.
12055" >&2;}
12056 { (exit 1); exit 1; }; }
12057fi fi
e6cc62c6
VS
12058echo "$as_me:$LINENO: checking whether ln -s works" >&5
12059echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12060LN_S=$as_ln_s
12061if test "$LN_S" = "ln -s"; then
12062 echo "$as_me:$LINENO: result: yes" >&5
12063echo "${ECHO_T}yes" >&6
10f2d63a 12064else
e6cc62c6
VS
12065 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12066echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 12067fi
5c6fa7d2 12068
247f5006 12069
243f8ae5 12070
2b5f62a0
VZ
12071case "${host}" in
12072 *-pc-os2_emx | *-pc-os2-emx )
243f8ae5 12073 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
12074 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12075echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12076if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12077 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 12078else
e6cc62c6 12079 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 12080LIBS="-lcExt $LIBS"
e6cc62c6 12081cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12082/* confdefs.h. */
12083_ACEOF
12084cat confdefs.h >>conftest.$ac_ext
12085cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h. */
12087
2b5f62a0 12088/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
12089#ifdef __cplusplus
12090extern "C"
12091#endif
2b5f62a0 12092/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
12093 builtin and then its argument prototype would still apply. */
12094char drand48 ();
12095int
12096main ()
12097{
12098drand48 ();
12099 ;
12100 return 0;
12101}
12102_ACEOF
12103rm -f conftest.$ac_objext conftest$ac_exeext
12104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 12105 (eval $ac_link) 2>conftest.er1
e6cc62c6 12106 ac_status=$?
32ddf007
VS
12107 grep -v '^ *+' conftest.er1 >conftest.err
12108 rm -f conftest.er1
12109 cat conftest.err >&5
e6cc62c6
VS
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } &&
32ddf007
VS
12112 { ac_try='test -z "$ac_c_werror_flag"
12113 || test ! -s conftest.err'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12116 ac_status=$?
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; } &&
12119 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
12120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12121 (eval $ac_try) 2>&5
12122 ac_status=$?
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; }; then
12125 ac_cv_lib_cExt_drand48=yes
12126else
12127 echo "$as_me: failed program was:" >&5
12128sed 's/^/| /' conftest.$ac_ext >&5
12129
12130ac_cv_lib_cExt_drand48=no
12131fi
32ddf007
VS
12132rm -f conftest.err conftest.$ac_objext \
12133 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
12134LIBS=$ac_check_lib_save_LIBS
12135fi
12136echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12137echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12138if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 12139 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
12140fi
12141
12142 else
12143 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12144 fi
32ddf007
VS
12145 echo "$as_me:$LINENO: checking for gcc version" >&5
12146echo $ECHO_N "checking for gcc version... $ECHO_C" >&6
12147if test "${wx_cv_gccversion+set}" = set; then
73d617c9
MB
12148 echo $ECHO_N "(cached) $ECHO_C" >&6
12149else
12150
12151 cat >conftest.$ac_ext <<_ACEOF
73d617c9
MB
12152/* confdefs.h. */
12153_ACEOF
12154cat confdefs.h >>conftest.$ac_ext
12155cat >>conftest.$ac_ext <<_ACEOF
12156/* end confdefs.h. */
3527f29c 12157
73d617c9
MB
12158int
12159main ()
12160{
12161
12162 #if (__GNUC__ < 3)
12163 #error old gcc
12164 #endif
12165
12166 ;
12167 return 0;
12168}
12169_ACEOF
12170rm -f conftest.$ac_objext
12171if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007
VS
12172 (eval $ac_compile) 2>conftest.er1
12173 ac_status=$?
12174 grep -v '^ *+' conftest.er1 >conftest.err
12175 rm -f conftest.er1
12176 cat conftest.err >&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); } &&
12179 { ac_try='test -z "$ac_c_werror_flag"
12180 || test ! -s conftest.err'
12181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12182 (eval $ac_try) 2>&5
12183 ac_status=$?
12184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185 (exit $ac_status); }; } &&
12186 { ac_try='test -s conftest.$ac_objext'
12187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12188 (eval $ac_try) 2>&5
12189 ac_status=$?
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); }; }; then
12192
12193 cat >conftest.$ac_ext <<_ACEOF
12194/* confdefs.h. */
12195_ACEOF
12196cat confdefs.h >>conftest.$ac_ext
12197cat >>conftest.$ac_ext <<_ACEOF
12198/* end confdefs.h. */
12199
12200int
12201main ()
12202{
12203
12204 #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
12205 #error intermediate gcc
12206 #endif
12207
12208 ;
12209 return 0;
12210}
12211_ACEOF
12212rm -f conftest.$ac_objext
12213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12214 (eval $ac_compile) 2>conftest.er1
73d617c9 12215 ac_status=$?
32ddf007
VS
12216 grep -v '^ *+' conftest.er1 >conftest.err
12217 rm -f conftest.er1
12218 cat conftest.err >&5
73d617c9
MB
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
32ddf007
VS
12221 { ac_try='test -z "$ac_c_werror_flag"
12222 || test ! -s conftest.err'
12223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12224 (eval $ac_try) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234
32ddf007 12235 wx_cv_gccversion=Innotek
73d617c9
MB
12236
12237else
12238 echo "$as_me: failed program was:" >&5
12239sed 's/^/| /' conftest.$ac_ext >&5
12240
12241
32ddf007 12242 wx_cv_gccversion=3
73d617c9
MB
12243
12244
12245fi
32ddf007
VS
12246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12247
12248else
12249 echo "$as_me: failed program was:" >&5
12250sed 's/^/| /' conftest.$ac_ext >&5
12251
12252
12253 wx_cv_gccversion=2
12254
73d617c9
MB
12255
12256fi
32ddf007
VS
12257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12258
12259fi
12260echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
12261echo "${ECHO_T}$wx_cv_gccversion" >&6
12262 if test "$wx_cv_gccversion" = "2"; then
73d617c9 12263 LIBS="$LIBS -lstdcpp"
32ddf007 12264 LDFLAGS="$LDFLAGS -Zsysv-signals"
73d617c9 12265 else
32ddf007
VS
12266 if test "$wx_cv_gccversion" = "3"; then
12267 LIBS="$LIBS -lstdcxx"
12268 LDFLAGS="$LDFLAGS -Zsysv-signals"
12269 else
12270 LIBS="$LIBS -lstdc++"
12271 fi
73d617c9 12272 fi
243f8ae5
VS
12273 ;;
12274 *)
a0b9e27f 12275
1c2d1459
VZ
12276
12277
243f8ae5 12278 ac_ext=cc
1c2d1459
VZ
12279ac_cpp='$CXXCPP $CPPFLAGS'
12280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12283
12284
12285
12286echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12287echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12288if test "${ac_cv_string_strcasecmp+set}" = set; then
01aa5863
VS
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290else
1c2d1459 12291
243f8ae5 12292 cat >conftest.$ac_ext <<_ACEOF
1c2d1459
VZ
12293/* confdefs.h. */
12294_ACEOF
12295cat confdefs.h >>conftest.$ac_ext
12296cat >>conftest.$ac_ext <<_ACEOF
12297/* end confdefs.h. */
12298
243f8ae5 12299 #include <string.h>
1c2d1459
VZ
12300
12301int
12302main ()
12303{
12304
243f8ae5 12305 strcasecmp("foo", "bar");
1c2d1459
VZ
12306
12307 ;
12308 return 0;
12309}
12310_ACEOF
12311rm -f conftest.$ac_objext conftest$ac_exeext
12312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 12313 (eval $ac_link) 2>conftest.er1
1c2d1459 12314 ac_status=$?
32ddf007
VS
12315 grep -v '^ *+' conftest.er1 >conftest.err
12316 rm -f conftest.er1
12317 cat conftest.err >&5
1c2d1459
VZ
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } &&
32ddf007
VS
12320 { ac_try='test -z "$ac_cxx_werror_flag"
12321 || test ! -s conftest.err'
12322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12323 (eval $ac_try) 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); }; } &&
12327 { ac_try='test -s conftest$ac_exeext'
1c2d1459
VZ
12328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12329 (eval $ac_try) 2>&5
12330 ac_status=$?
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 (exit $ac_status); }; }; then
12333 ac_cv_string_strcasecmp=yes
12334else
12335 echo "$as_me: failed program was:" >&5
12336sed 's/^/| /' conftest.$ac_ext >&5
12337
12338ac_cv_string_strcasecmp=no
12339
12340fi
32ddf007
VS
12341rm -f conftest.err conftest.$ac_objext \
12342 conftest$ac_exeext conftest.$ac_ext
1c2d1459
VZ
12343
12344fi
12345echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12346echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12347
243f8ae5
VS
12348 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12349 cat >>confdefs.h <<\_ACEOF
1c2d1459
VZ
12350#define HAVE_STRCASECMP_IN_STRING_H 1
12351_ACEOF
12352
243f8ae5
VS
12353 else
12354 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
1c2d1459
VZ
12355echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12356if test "${ac_cv_strings_strcasecmp+set}" = set; then
12357 echo $ECHO_N "(cached) $ECHO_C" >&6
12358else
12359
243f8ae5 12360 cat >conftest.$ac_ext <<_ACEOF
1c2d1459
VZ
12361/* confdefs.h. */
12362_ACEOF
12363cat confdefs.h >>conftest.$ac_ext
12364cat >>conftest.$ac_ext <<_ACEOF
12365/* end confdefs.h. */
12366
243f8ae5 12367 #include <strings.h>
1c2d1459
VZ
12368
12369int
12370main ()
12371{
12372
243f8ae5 12373 strcasecmp("foo", "bar");
1c2d1459
VZ
12374
12375 ;
12376 return 0;
12377}
12378_ACEOF
12379rm -f conftest.$ac_objext conftest$ac_exeext
12380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 12381 (eval $ac_link) 2>conftest.er1
1c2d1459 12382 ac_status=$?
32ddf007
VS
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
1c2d1459
VZ
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } &&
32ddf007
VS
12388 { ac_try='test -z "$ac_cxx_werror_flag"
12389 || test ! -s conftest.err'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12392 ac_status=$?
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; } &&
12395 { ac_try='test -s conftest$ac_exeext'
1c2d1459
VZ
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12398 ac_status=$?
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12401 ac_cv_strings_strcasecmp=yes
12402else
12403 echo "$as_me: failed program was:" >&5
12404sed 's/^/| /' conftest.$ac_ext >&5
12405
12406ac_cv_strings_strcasecmp=no
12407
12408fi
32ddf007
VS
12409rm -f conftest.err conftest.$ac_objext \
12410 conftest$ac_exeext conftest.$ac_ext
1c2d1459 12411
01aa5863 12412fi
1c2d1459
VZ
12413echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12414echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12415
243f8ae5
VS
12416 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12417 cat >>confdefs.h <<\_ACEOF
1c2d1459
VZ
12418#define HAVE_STRCASECMP_IN_STRINGS_H 1
12419_ACEOF
12420
243f8ae5
VS
12421 else
12422 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
1c2d1459
VZ
12423echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12424 { (exit 1); exit 1; }; }
243f8ae5
VS
12425 fi
12426 fi
1c2d1459 12427
243f8ae5 12428 ac_ext=c
1c2d1459
VZ
12429ac_cpp='$CPP $CPPFLAGS'
12430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12432ac_compiler_gnu=$ac_cv_c_compiler_gnu
12433
243f8ae5
VS
12434 ;;
12435esac
12436
1c2d1459 12437
01aa5863 12438echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
12439echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12440if test "${ac_cv_header_stdc+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442else
12443 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12444/* confdefs.h. */
12445_ACEOF
12446cat confdefs.h >>conftest.$ac_ext
12447cat >>conftest.$ac_ext <<_ACEOF
12448/* end confdefs.h. */
12449#include <stdlib.h>
12450#include <stdarg.h>
12451#include <string.h>
12452#include <float.h>
247f5006 12453
e6cc62c6
VS
12454int
12455main ()
12456{
90dd450c 12457
e6cc62c6
VS
12458 ;
12459 return 0;
12460}
12461_ACEOF
12462rm -f conftest.$ac_objext
12463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12464 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12465 ac_status=$?
32ddf007
VS
12466 grep -v '^ *+' conftest.er1 >conftest.err
12467 rm -f conftest.er1
12468 cat conftest.err >&5
e6cc62c6
VS
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
32ddf007
VS
12471 { ac_try='test -z "$ac_c_werror_flag"
12472 || test ! -s conftest.err'
12473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12474 (eval $ac_try) 2>&5
12475 ac_status=$?
12476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477 (exit $ac_status); }; } &&
12478 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12480 (eval $ac_try) 2>&5
12481 ac_status=$?
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); }; }; then
12484 ac_cv_header_stdc=yes
8284b0c5 12485else
e6cc62c6
VS
12486 echo "$as_me: failed program was:" >&5
12487sed 's/^/| /' conftest.$ac_ext >&5
12488
12489ac_cv_header_stdc=no
21d1c967 12490fi
32ddf007 12491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12492
e6cc62c6
VS
12493if test $ac_cv_header_stdc = yes; then
12494 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12495 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12496/* confdefs.h. */
12497_ACEOF
12498cat confdefs.h >>conftest.$ac_ext
12499cat >>conftest.$ac_ext <<_ACEOF
12500/* end confdefs.h. */
12501#include <string.h>
12502
12503_ACEOF
12504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12505 $EGREP "memchr" >/dev/null 2>&1; then
12506 :
12507else
12508 ac_cv_header_stdc=no
3a922bb4 12509fi
a0b9e27f 12510rm -f conftest*
e6cc62c6 12511
90dd450c 12512fi
e6cc62c6
VS
12513
12514if test $ac_cv_header_stdc = yes; then
12515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12516 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12517/* confdefs.h. */
12518_ACEOF
12519cat confdefs.h >>conftest.$ac_ext
12520cat >>conftest.$ac_ext <<_ACEOF
12521/* end confdefs.h. */
12522#include <stdlib.h>
12523
12524_ACEOF
12525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12526 $EGREP "free" >/dev/null 2>&1; then
12527 :
a0b9e27f 12528else
e6cc62c6 12529 ac_cv_header_stdc=no
21d1c967 12530fi
e6cc62c6 12531rm -f conftest*
247f5006
VZ
12532
12533fi
e6cc62c6
VS
12534
12535if test $ac_cv_header_stdc = yes; then
12536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12537 if test "$cross_compiling" = yes; then
12538 :
12539else
12540 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12541/* confdefs.h. */
12542_ACEOF
12543cat confdefs.h >>conftest.$ac_ext
12544cat >>conftest.$ac_ext <<_ACEOF
12545/* end confdefs.h. */
12546#include <ctype.h>
12547#if ((' ' & 0x0FF) == 0x020)
12548# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12549# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12550#else
12551# define ISLOWER(c) \
32ddf007
VS
12552 (('a' <= (c) && (c) <= 'i') \
12553 || ('j' <= (c) && (c) <= 'r') \
12554 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12555# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12556#endif
12557
12558#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12559int
12560main ()
12561{
12562 int i;
12563 for (i = 0; i < 256; i++)
12564 if (XOR (islower (i), ISLOWER (i))
32ddf007 12565 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12566 exit(2);
12567 exit (0);
12568}
12569_ACEOF
12570rm -f conftest$ac_exeext
12571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12572 (eval $ac_link) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12578 ac_status=$?
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12581 :
a0b9e27f 12582else
e6cc62c6
VS
12583 echo "$as_me: program exited with status $ac_status" >&5
12584echo "$as_me: failed program was:" >&5
12585sed 's/^/| /' conftest.$ac_ext >&5
12586
12587( exit $ac_status )
12588ac_cv_header_stdc=no
12589fi
32ddf007 12590rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12591fi
12592fi
12593fi
12594echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12595echo "${ECHO_T}$ac_cv_header_stdc" >&6
12596if test $ac_cv_header_stdc = yes; then
12597
12598cat >>confdefs.h <<\_ACEOF
12599#define STDC_HEADERS 1
12600_ACEOF
12601
a0b9e27f 12602fi
e6cc62c6
VS
12603
12604# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12605
12606
12607
12608
12609
12610
12611
12612
12613
12614for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
32ddf007 12615 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12616do
12617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12618echo "$as_me:$LINENO: checking for $ac_header" >&5
12619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12620if eval "test \"\${$as_ac_Header+set}\" = set"; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12622else
12623 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12624/* confdefs.h. */
12625_ACEOF
12626cat confdefs.h >>conftest.$ac_ext
12627cat >>conftest.$ac_ext <<_ACEOF
12628/* end confdefs.h. */
12629$ac_includes_default
12630
12631#include <$ac_header>
12632_ACEOF
12633rm -f conftest.$ac_objext
12634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12635 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12636 ac_status=$?
32ddf007
VS
12637 grep -v '^ *+' conftest.er1 >conftest.err
12638 rm -f conftest.er1
12639 cat conftest.err >&5
e6cc62c6
VS
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } &&
32ddf007
VS
12642 { ac_try='test -z "$ac_c_werror_flag"
12643 || test ! -s conftest.err'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; } &&
12649 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12652 ac_status=$?
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; }; then
12655 eval "$as_ac_Header=yes"
12656else
12657 echo "$as_me: failed program was:" >&5
12658sed 's/^/| /' conftest.$ac_ext >&5
12659
12660eval "$as_ac_Header=no"
12661fi
32ddf007 12662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12663fi
12664echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12665echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12666if test `eval echo '${'$as_ac_Header'}'` = yes; then
12667 cat >>confdefs.h <<_ACEOF
12668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12669_ACEOF
12670
12671fi
12672
a0b9e27f 12673done
90dd450c 12674
e6cc62c6
VS
12675
12676
e6cc62c6
VS
12677for ac_header in stdlib.h
12678do
12679as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12680if eval "test \"\${$as_ac_Header+set}\" = set"; then
12681 echo "$as_me:$LINENO: checking for $ac_header" >&5
12682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12683if eval "test \"\${$as_ac_Header+set}\" = set"; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12685fi
12686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12688else
12689 # Is the header compilable?
12690echo "$as_me:$LINENO: checking $ac_header usability" >&5
12691echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12692cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12693/* confdefs.h. */
12694_ACEOF
12695cat confdefs.h >>conftest.$ac_ext
12696cat >>conftest.$ac_ext <<_ACEOF
12697/* end confdefs.h. */
12698$ac_includes_default
12699#include <$ac_header>
12700_ACEOF
12701rm -f conftest.$ac_objext
12702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12703 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12704 ac_status=$?
32ddf007
VS
12705 grep -v '^ *+' conftest.er1 >conftest.err
12706 rm -f conftest.er1
12707 cat conftest.err >&5
e6cc62c6
VS
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
32ddf007
VS
12710 { ac_try='test -z "$ac_c_werror_flag"
12711 || test ! -s conftest.err'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; } &&
12717 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12720 ac_status=$?
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12723 ac_header_compiler=yes
12724else
12725 echo "$as_me: failed program was:" >&5
12726sed 's/^/| /' conftest.$ac_ext >&5
12727
12728ac_header_compiler=no
12729fi
32ddf007 12730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12731echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12732echo "${ECHO_T}$ac_header_compiler" >&6
12733
12734# Is the header present?
12735echo "$as_me:$LINENO: checking $ac_header presence" >&5
12736echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12737cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12738/* confdefs.h. */
12739_ACEOF
12740cat confdefs.h >>conftest.$ac_ext
12741cat >>conftest.$ac_ext <<_ACEOF
12742/* end confdefs.h. */
12743#include <$ac_header>
12744_ACEOF
12745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12747 ac_status=$?
12748 grep -v '^ *+' conftest.er1 >conftest.err
12749 rm -f conftest.er1
12750 cat conftest.err >&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } >/dev/null; then
12753 if test -s conftest.err; then
12754 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 12755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12756 else
12757 ac_cpp_err=
12758 fi
12759else
12760 ac_cpp_err=yes
12761fi
12762if test -z "$ac_cpp_err"; then
12763 ac_header_preproc=yes
12764else
12765 echo "$as_me: failed program was:" >&5
12766sed 's/^/| /' conftest.$ac_ext >&5
12767
12768 ac_header_preproc=no
12769fi
12770rm -f conftest.err conftest.$ac_ext
12771echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12772echo "${ECHO_T}$ac_header_preproc" >&6
12773
12774# So? What about this header?
32ddf007
VS
12775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12776 yes:no: )
e6cc62c6
VS
12777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12778echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
12779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12780echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12781 ac_header_preproc=yes
e6cc62c6 12782 ;;
32ddf007 12783 no:yes:* )
e6cc62c6
VS
12784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12785echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
12786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12787echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12789echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12791echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
12794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12795echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12796 (
12797 cat <<\_ASBOX
32ddf007
VS
12798## ----------------------------------------- ##
12799## Report this to wx-dev@lists.wxwindows.org ##
12800## ----------------------------------------- ##
e6cc62c6
VS
12801_ASBOX
12802 ) |
12803 sed "s/^/$as_me: WARNING: /" >&2
12804 ;;
12805esac
12806echo "$as_me:$LINENO: checking for $ac_header" >&5
12807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12808if eval "test \"\${$as_ac_Header+set}\" = set"; then
12809 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12810else
32ddf007 12811 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12812fi
12813echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12814echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12815
21d1c967 12816fi
e6cc62c6
VS
12817if test `eval echo '${'$as_ac_Header'}'` = yes; then
12818 cat >>confdefs.h <<_ACEOF
12819#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12820_ACEOF
12821
12822fi
12823
21d1c967 12824done
4f14bcd8 12825
5c6fa7d2 12826
e6cc62c6 12827for ac_header in malloc.h
21d1c967 12828do
e6cc62c6
VS
12829as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12830if eval "test \"\${$as_ac_Header+set}\" = set"; then
12831 echo "$as_me:$LINENO: checking for $ac_header" >&5
12832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12833if eval "test \"\${$as_ac_Header+set}\" = set"; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12835fi
12836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12838else
12839 # Is the header compilable?
12840echo "$as_me:$LINENO: checking $ac_header usability" >&5
12841echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12842cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12843/* confdefs.h. */
12844_ACEOF
12845cat confdefs.h >>conftest.$ac_ext
12846cat >>conftest.$ac_ext <<_ACEOF
12847/* end confdefs.h. */
12848$ac_includes_default
12849#include <$ac_header>
12850_ACEOF
12851rm -f conftest.$ac_objext
12852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 12853 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12854 ac_status=$?
32ddf007
VS
12855 grep -v '^ *+' conftest.er1 >conftest.err
12856 rm -f conftest.er1
12857 cat conftest.err >&5
e6cc62c6
VS
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } &&
32ddf007
VS
12860 { ac_try='test -z "$ac_c_werror_flag"
12861 || test ! -s conftest.err'
12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12863 (eval $ac_try) 2>&5
12864 ac_status=$?
12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12866 (exit $ac_status); }; } &&
12867 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12869 (eval $ac_try) 2>&5
12870 ac_status=$?
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; }; then
12873 ac_header_compiler=yes
12874else
12875 echo "$as_me: failed program was:" >&5
12876sed 's/^/| /' conftest.$ac_ext >&5
12877
12878ac_header_compiler=no
12879fi
32ddf007 12880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12881echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12882echo "${ECHO_T}$ac_header_compiler" >&6
12883
12884# Is the header present?
12885echo "$as_me:$LINENO: checking $ac_header presence" >&5
12886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12887cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12888/* confdefs.h. */
12889_ACEOF
12890cat confdefs.h >>conftest.$ac_ext
12891cat >>conftest.$ac_ext <<_ACEOF
12892/* end confdefs.h. */
12893#include <$ac_header>
12894_ACEOF
12895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12897 ac_status=$?
12898 grep -v '^ *+' conftest.er1 >conftest.err
12899 rm -f conftest.er1
12900 cat conftest.err >&5
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } >/dev/null; then
12903 if test -s conftest.err; then
12904 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 12905 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12906 else
12907 ac_cpp_err=
12908 fi
12909else
12910 ac_cpp_err=yes
12911fi
12912if test -z "$ac_cpp_err"; then
12913 ac_header_preproc=yes
12914else
12915 echo "$as_me: failed program was:" >&5
12916sed 's/^/| /' conftest.$ac_ext >&5
12917
12918 ac_header_preproc=no
12919fi
12920rm -f conftest.err conftest.$ac_ext
12921echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12922echo "${ECHO_T}$ac_header_preproc" >&6
12923
12924# So? What about this header?
32ddf007
VS
12925case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12926 yes:no: )
e6cc62c6
VS
12927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12928echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
12929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12930echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12931 ac_header_preproc=yes
e6cc62c6 12932 ;;
32ddf007 12933 no:yes:* )
e6cc62c6
VS
12934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12935echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
12936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12937echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12939echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12941echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12943echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
12944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12945echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12946 (
12947 cat <<\_ASBOX
32ddf007
VS
12948## ----------------------------------------- ##
12949## Report this to wx-dev@lists.wxwindows.org ##
12950## ----------------------------------------- ##
e6cc62c6
VS
12951_ASBOX
12952 ) |
12953 sed "s/^/$as_me: WARNING: /" >&2
12954 ;;
12955esac
12956echo "$as_me:$LINENO: checking for $ac_header" >&5
12957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12958if eval "test \"\${$as_ac_Header+set}\" = set"; then
12959 echo $ECHO_N "(cached) $ECHO_C" >&6
12960else
32ddf007 12961 eval "$as_ac_Header=\$ac_header_preproc"
d4158b5d 12962fi
e6cc62c6
VS
12963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12964echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12965
21d1c967 12966fi
e6cc62c6
VS
12967if test `eval echo '${'$as_ac_Header'}'` = yes; then
12968 cat >>confdefs.h <<_ACEOF
12969#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12970_ACEOF
12971
12972fi
12973
12974done
12975
12976
12977for ac_header in unistd.h
12978do
12979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12980if eval "test \"\${$as_ac_Header+set}\" = set"; then
12981 echo "$as_me:$LINENO: checking for $ac_header" >&5
12982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12983if eval "test \"\${$as_ac_Header+set}\" = set"; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12985fi
12986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12988else
12989 # Is the header compilable?
12990echo "$as_me:$LINENO: checking $ac_header usability" >&5
12991echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12992cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12993/* confdefs.h. */
12994_ACEOF
12995cat confdefs.h >>conftest.$ac_ext
12996cat >>conftest.$ac_ext <<_ACEOF
12997/* end confdefs.h. */
12998$ac_includes_default
12999#include <$ac_header>
13000_ACEOF
13001rm -f conftest.$ac_objext
13002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13003 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13004 ac_status=$?
32ddf007
VS
13005 grep -v '^ *+' conftest.er1 >conftest.err
13006 rm -f conftest.er1
13007 cat conftest.err >&5
e6cc62c6
VS
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } &&
32ddf007
VS
13010 { ac_try='test -z "$ac_c_werror_flag"
13011 || test ! -s conftest.err'
13012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13013 (eval $ac_try) 2>&5
13014 ac_status=$?
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; } &&
13017 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; }; then
13023 ac_header_compiler=yes
13024else
13025 echo "$as_me: failed program was:" >&5
13026sed 's/^/| /' conftest.$ac_ext >&5
13027
13028ac_header_compiler=no
13029fi
32ddf007 13030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13031echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13032echo "${ECHO_T}$ac_header_compiler" >&6
13033
13034# Is the header present?
13035echo "$as_me:$LINENO: checking $ac_header presence" >&5
13036echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13037cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13038/* confdefs.h. */
13039_ACEOF
13040cat confdefs.h >>conftest.$ac_ext
13041cat >>conftest.$ac_ext <<_ACEOF
13042/* end confdefs.h. */
13043#include <$ac_header>
13044_ACEOF
13045if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13047 ac_status=$?
13048 grep -v '^ *+' conftest.er1 >conftest.err
13049 rm -f conftest.er1
13050 cat conftest.err >&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } >/dev/null; then
13053 if test -s conftest.err; then
13054 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13056 else
13057 ac_cpp_err=
13058 fi
a0b9e27f 13059else
e6cc62c6
VS
13060 ac_cpp_err=yes
13061fi
13062if test -z "$ac_cpp_err"; then
13063 ac_header_preproc=yes
13064else
13065 echo "$as_me: failed program was:" >&5
13066sed 's/^/| /' conftest.$ac_ext >&5
13067
13068 ac_header_preproc=no
13069fi
13070rm -f conftest.err conftest.$ac_ext
13071echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13072echo "${ECHO_T}$ac_header_preproc" >&6
13073
13074# So? What about this header?
32ddf007
VS
13075case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13076 yes:no: )
e6cc62c6
VS
13077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13078echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13080echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13081 ac_header_preproc=yes
e6cc62c6 13082 ;;
32ddf007 13083 no:yes:* )
e6cc62c6
VS
13084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13085echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13087echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13089echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13091echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13093echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13095echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13096 (
13097 cat <<\_ASBOX
32ddf007
VS
13098## ----------------------------------------- ##
13099## Report this to wx-dev@lists.wxwindows.org ##
13100## ----------------------------------------- ##
e6cc62c6
VS
13101_ASBOX
13102 ) |
13103 sed "s/^/$as_me: WARNING: /" >&2
13104 ;;
13105esac
13106echo "$as_me:$LINENO: checking for $ac_header" >&5
13107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13108if eval "test \"\${$as_ac_Header+set}\" = set"; then
13109 echo $ECHO_N "(cached) $ECHO_C" >&6
13110else
32ddf007 13111 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13112fi
13113echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13114echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13115
13116fi
13117if test `eval echo '${'$as_ac_Header'}'` = yes; then
13118 cat >>confdefs.h <<_ACEOF
13119#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13120_ACEOF
13121
d4158b5d 13122fi
e6cc62c6 13123
21d1c967 13124done
f6bcfd97 13125
e6cc62c6
VS
13126
13127for ac_header in wchar.h
13128do
13129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13130if eval "test \"\${$as_ac_Header+set}\" = set"; then
13131 echo "$as_me:$LINENO: checking for $ac_header" >&5
13132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13133if eval "test \"\${$as_ac_Header+set}\" = set"; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13135fi
13136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13138else
13139 # Is the header compilable?
13140echo "$as_me:$LINENO: checking $ac_header usability" >&5
13141echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13142cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13143/* confdefs.h. */
13144_ACEOF
13145cat confdefs.h >>conftest.$ac_ext
13146cat >>conftest.$ac_ext <<_ACEOF
13147/* end confdefs.h. */
13148$ac_includes_default
13149#include <$ac_header>
13150_ACEOF
13151rm -f conftest.$ac_objext
13152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13153 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13154 ac_status=$?
32ddf007
VS
13155 grep -v '^ *+' conftest.er1 >conftest.err
13156 rm -f conftest.er1
13157 cat conftest.err >&5
e6cc62c6
VS
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } &&
32ddf007
VS
13160 { ac_try='test -z "$ac_c_werror_flag"
13161 || test ! -s conftest.err'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13164 ac_status=$?
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } &&
13167 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13170 ac_status=$?
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13173 ac_header_compiler=yes
13174else
13175 echo "$as_me: failed program was:" >&5
13176sed 's/^/| /' conftest.$ac_ext >&5
13177
13178ac_header_compiler=no
13179fi
32ddf007 13180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13182echo "${ECHO_T}$ac_header_compiler" >&6
13183
13184# Is the header present?
13185echo "$as_me:$LINENO: checking $ac_header presence" >&5
13186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13187cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13188/* confdefs.h. */
13189_ACEOF
13190cat confdefs.h >>conftest.$ac_ext
13191cat >>conftest.$ac_ext <<_ACEOF
13192/* end confdefs.h. */
13193#include <$ac_header>
13194_ACEOF
13195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13197 ac_status=$?
13198 grep -v '^ *+' conftest.er1 >conftest.err
13199 rm -f conftest.er1
13200 cat conftest.err >&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } >/dev/null; then
13203 if test -s conftest.err; then
13204 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13206 else
13207 ac_cpp_err=
13208 fi
13209else
13210 ac_cpp_err=yes
13211fi
13212if test -z "$ac_cpp_err"; then
13213 ac_header_preproc=yes
13214else
13215 echo "$as_me: failed program was:" >&5
13216sed 's/^/| /' conftest.$ac_ext >&5
13217
13218 ac_header_preproc=no
13219fi
13220rm -f conftest.err conftest.$ac_ext
13221echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13222echo "${ECHO_T}$ac_header_preproc" >&6
13223
13224# So? What about this header?
32ddf007
VS
13225case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13226 yes:no: )
e6cc62c6
VS
13227 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13228echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13230echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13231 ac_header_preproc=yes
e6cc62c6 13232 ;;
32ddf007 13233 no:yes:* )
e6cc62c6
VS
13234 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13235echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13236 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13237echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13238 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13239echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13240 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13241echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13243echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13244 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13245echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13246 (
13247 cat <<\_ASBOX
32ddf007
VS
13248## ----------------------------------------- ##
13249## Report this to wx-dev@lists.wxwindows.org ##
13250## ----------------------------------------- ##
e6cc62c6
VS
13251_ASBOX
13252 ) |
13253 sed "s/^/$as_me: WARNING: /" >&2
13254 ;;
13255esac
13256echo "$as_me:$LINENO: checking for $ac_header" >&5
13257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13258if eval "test \"\${$as_ac_Header+set}\" = set"; then
13259 echo $ECHO_N "(cached) $ECHO_C" >&6
13260else
32ddf007 13261 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13262fi
13263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13265
90dd450c 13266fi
e6cc62c6
VS
13267if test `eval echo '${'$as_ac_Header'}'` = yes; then
13268 cat >>confdefs.h <<_ACEOF
13269#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13270_ACEOF
13271
13272fi
13273
13274done
90dd450c 13275
e6cc62c6
VS
13276
13277if test "$ac_cv_header_wchar_h" != "yes"; then
13278
13279for ac_header in wcstr.h
21d1c967 13280do
e6cc62c6
VS
13281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13282if eval "test \"\${$as_ac_Header+set}\" = set"; then
13283 echo "$as_me:$LINENO: checking for $ac_header" >&5
13284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13285if eval "test \"\${$as_ac_Header+set}\" = set"; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13287fi
13288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13290else
13291 # Is the header compilable?
13292echo "$as_me:$LINENO: checking $ac_header usability" >&5
13293echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13294cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13295/* confdefs.h. */
13296_ACEOF
13297cat confdefs.h >>conftest.$ac_ext
13298cat >>conftest.$ac_ext <<_ACEOF
13299/* end confdefs.h. */
13300$ac_includes_default
13301#include <$ac_header>
13302_ACEOF
13303rm -f conftest.$ac_objext
13304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13305 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13306 ac_status=$?
32ddf007
VS
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
e6cc62c6
VS
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
32ddf007
VS
13312 { ac_try='test -z "$ac_c_werror_flag"
13313 || test ! -s conftest.err'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13322 ac_status=$?
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 ac_header_compiler=yes
13326else
13327 echo "$as_me: failed program was:" >&5
13328sed 's/^/| /' conftest.$ac_ext >&5
13329
13330ac_header_compiler=no
13331fi
32ddf007 13332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13334echo "${ECHO_T}$ac_header_compiler" >&6
13335
13336# Is the header present?
13337echo "$as_me:$LINENO: checking $ac_header presence" >&5
13338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13339cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13340/* confdefs.h. */
13341_ACEOF
13342cat confdefs.h >>conftest.$ac_ext
13343cat >>conftest.$ac_ext <<_ACEOF
13344/* end confdefs.h. */
13345#include <$ac_header>
13346_ACEOF
13347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13349 ac_status=$?
13350 grep -v '^ *+' conftest.er1 >conftest.err
13351 rm -f conftest.er1
13352 cat conftest.err >&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } >/dev/null; then
13355 if test -s conftest.err; then
13356 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13358 else
13359 ac_cpp_err=
13360 fi
13361else
13362 ac_cpp_err=yes
13363fi
13364if test -z "$ac_cpp_err"; then
13365 ac_header_preproc=yes
13366else
13367 echo "$as_me: failed program was:" >&5
13368sed 's/^/| /' conftest.$ac_ext >&5
13369
13370 ac_header_preproc=no
13371fi
13372rm -f conftest.err conftest.$ac_ext
13373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13374echo "${ECHO_T}$ac_header_preproc" >&6
13375
13376# So? What about this header?
32ddf007
VS
13377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13378 yes:no: )
e6cc62c6
VS
13379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13383 ac_header_preproc=yes
e6cc62c6 13384 ;;
32ddf007 13385 no:yes:* )
e6cc62c6
VS
13386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13389echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13393echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13398 (
13399 cat <<\_ASBOX
32ddf007
VS
13400## ----------------------------------------- ##
13401## Report this to wx-dev@lists.wxwindows.org ##
13402## ----------------------------------------- ##
e6cc62c6
VS
13403_ASBOX
13404 ) |
13405 sed "s/^/$as_me: WARNING: /" >&2
13406 ;;
13407esac
13408echo "$as_me:$LINENO: checking for $ac_header" >&5
13409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13410if eval "test \"\${$as_ac_Header+set}\" = set"; then
13411 echo $ECHO_N "(cached) $ECHO_C" >&6
13412else
32ddf007 13413 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13414fi
e6cc62c6
VS
13415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13417
4f14bcd8 13418fi
e6cc62c6
VS
13419if test `eval echo '${'$as_ac_Header'}'` = yes; then
13420 cat >>confdefs.h <<_ACEOF
13421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13422_ACEOF
13423
13424fi
13425
13426done
13427
13428fi
13429
13430
13431for ac_header in fnmatch.h
13432do
13433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13434if eval "test \"\${$as_ac_Header+set}\" = set"; then
13435 echo "$as_me:$LINENO: checking for $ac_header" >&5
13436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13437if eval "test \"\${$as_ac_Header+set}\" = set"; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13439fi
13440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13442else
13443 # Is the header compilable?
13444echo "$as_me:$LINENO: checking $ac_header usability" >&5
13445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13446cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13447/* confdefs.h. */
13448_ACEOF
13449cat confdefs.h >>conftest.$ac_ext
13450cat >>conftest.$ac_ext <<_ACEOF
13451/* end confdefs.h. */
13452$ac_includes_default
13453#include <$ac_header>
13454_ACEOF
13455rm -f conftest.$ac_objext
13456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13457 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13458 ac_status=$?
32ddf007
VS
13459 grep -v '^ *+' conftest.er1 >conftest.err
13460 rm -f conftest.er1
13461 cat conftest.err >&5
e6cc62c6
VS
13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13463 (exit $ac_status); } &&
32ddf007
VS
13464 { ac_try='test -z "$ac_c_werror_flag"
13465 || test ! -s conftest.err'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13468 ac_status=$?
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; } &&
13471 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; }; then
13477 ac_header_compiler=yes
13478else
13479 echo "$as_me: failed program was:" >&5
13480sed 's/^/| /' conftest.$ac_ext >&5
13481
13482ac_header_compiler=no
13483fi
32ddf007 13484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13486echo "${ECHO_T}$ac_header_compiler" >&6
13487
13488# Is the header present?
13489echo "$as_me:$LINENO: checking $ac_header presence" >&5
13490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13491cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13492/* confdefs.h. */
13493_ACEOF
13494cat confdefs.h >>conftest.$ac_ext
13495cat >>conftest.$ac_ext <<_ACEOF
13496/* end confdefs.h. */
13497#include <$ac_header>
13498_ACEOF
13499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13501 ac_status=$?
13502 grep -v '^ *+' conftest.er1 >conftest.err
13503 rm -f conftest.er1
13504 cat conftest.err >&5
13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13506 (exit $ac_status); } >/dev/null; then
13507 if test -s conftest.err; then
13508 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13510 else
13511 ac_cpp_err=
13512 fi
13513else
13514 ac_cpp_err=yes
13515fi
13516if test -z "$ac_cpp_err"; then
13517 ac_header_preproc=yes
13518else
13519 echo "$as_me: failed program was:" >&5
13520sed 's/^/| /' conftest.$ac_ext >&5
13521
13522 ac_header_preproc=no
13523fi
13524rm -f conftest.err conftest.$ac_ext
13525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13526echo "${ECHO_T}$ac_header_preproc" >&6
13527
13528# So? What about this header?
32ddf007
VS
13529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13530 yes:no: )
e6cc62c6
VS
13531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13535 ac_header_preproc=yes
e6cc62c6 13536 ;;
32ddf007 13537 no:yes:* )
e6cc62c6
VS
13538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13541echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13545echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13550 (
13551 cat <<\_ASBOX
32ddf007
VS
13552## ----------------------------------------- ##
13553## Report this to wx-dev@lists.wxwindows.org ##
13554## ----------------------------------------- ##
e6cc62c6
VS
13555_ASBOX
13556 ) |
13557 sed "s/^/$as_me: WARNING: /" >&2
13558 ;;
13559esac
13560echo "$as_me:$LINENO: checking for $ac_header" >&5
13561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13562if eval "test \"\${$as_ac_Header+set}\" = set"; then
13563 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13564else
32ddf007 13565 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13566fi
13567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13569
21d1c967 13570fi
e6cc62c6
VS
13571if test `eval echo '${'$as_ac_Header'}'` = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13574_ACEOF
13575
13576fi
13577
21d1c967 13578done
90dd450c 13579
5c6fa7d2 13580
a0b9e27f 13581if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13582
13583for ac_func in fnmatch
21d1c967 13584do
e6cc62c6
VS
13585as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13586echo "$as_me:$LINENO: checking for $ac_func" >&5
13587echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13588if eval "test \"\${$as_ac_var+set}\" = set"; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13590else
13591 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13592/* confdefs.h. */
13593_ACEOF
13594cat confdefs.h >>conftest.$ac_ext
13595cat >>conftest.$ac_ext <<_ACEOF
13596/* end confdefs.h. */
32ddf007
VS
13597/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13599#define $ac_func innocuous_$ac_func
13600
a0b9e27f 13601/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13602 which can conflict with char $ac_func (); below.
13603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13604 <limits.h> exists even on freestanding compilers. */
32ddf007 13605
e6cc62c6
VS
13606#ifdef __STDC__
13607# include <limits.h>
13608#else
13609# include <assert.h>
13610#endif
32ddf007
VS
13611
13612#undef $ac_func
13613
a0b9e27f 13614/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13615#ifdef __cplusplus
13616extern "C"
13617{
13618#endif
a0b9e27f 13619/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13620 builtin and then its argument prototype would still apply. */
13621char $ac_func ();
a0b9e27f
MB
13622/* The GNU C library defines this for functions which it implements
13623 to always fail with ENOSYS. Some functions are actually named
13624 something starting with __ and the normal name is an alias. */
13625#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13626choke me
13627#else
e6cc62c6
VS
13628char (*f) () = $ac_func;
13629#endif
13630#ifdef __cplusplus
13631}
a0b9e27f
MB
13632#endif
13633
e6cc62c6
VS
13634int
13635main ()
13636{
13637return f != $ac_func;
13638 ;
13639 return 0;
13640}
13641_ACEOF
13642rm -f conftest.$ac_objext conftest$ac_exeext
13643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 13644 (eval $ac_link) 2>conftest.er1
e6cc62c6 13645 ac_status=$?
32ddf007
VS
13646 grep -v '^ *+' conftest.er1 >conftest.err
13647 rm -f conftest.er1
13648 cat conftest.err >&5
e6cc62c6
VS
13649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650 (exit $ac_status); } &&
32ddf007
VS
13651 { ac_try='test -z "$ac_c_werror_flag"
13652 || test ! -s conftest.err'
13653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13654 (eval $ac_try) 2>&5
13655 ac_status=$?
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); }; } &&
13658 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13661 ac_status=$?
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13664 eval "$as_ac_var=yes"
13665else
13666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
13669eval "$as_ac_var=no"
13670fi
32ddf007
VS
13671rm -f conftest.err conftest.$ac_objext \
13672 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13673fi
13674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13675echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13676if test `eval echo '${'$as_ac_var'}'` = yes; then
13677 cat >>confdefs.h <<_ACEOF
13678#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13679_ACEOF
32832908 13680
21d1c967
GD
13681fi
13682done
90dd450c 13683
a0b9e27f 13684fi
90dd450c 13685
e6cc62c6
VS
13686
13687for ac_header in langinfo.h
21d1c967 13688do
e6cc62c6
VS
13689as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13690if eval "test \"\${$as_ac_Header+set}\" = set"; then
13691 echo "$as_me:$LINENO: checking for $ac_header" >&5
13692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13693if eval "test \"\${$as_ac_Header+set}\" = set"; then
13694 echo $ECHO_N "(cached) $ECHO_C" >&6
13695fi
13696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13698else
13699 # Is the header compilable?
13700echo "$as_me:$LINENO: checking $ac_header usability" >&5
13701echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13702cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13703/* confdefs.h. */
13704_ACEOF
13705cat confdefs.h >>conftest.$ac_ext
13706cat >>conftest.$ac_ext <<_ACEOF
13707/* end confdefs.h. */
13708$ac_includes_default
13709#include <$ac_header>
13710_ACEOF
13711rm -f conftest.$ac_objext
13712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13713 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13714 ac_status=$?
32ddf007
VS
13715 grep -v '^ *+' conftest.er1 >conftest.err
13716 rm -f conftest.er1
13717 cat conftest.err >&5
e6cc62c6
VS
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
32ddf007
VS
13720 { ac_try='test -z "$ac_c_werror_flag"
13721 || test ! -s conftest.err'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13724 ac_status=$?
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; } &&
13727 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13733 ac_header_compiler=yes
13734else
13735 echo "$as_me: failed program was:" >&5
13736sed 's/^/| /' conftest.$ac_ext >&5
13737
13738ac_header_compiler=no
13739fi
32ddf007 13740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13741echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13742echo "${ECHO_T}$ac_header_compiler" >&6
13743
13744# Is the header present?
13745echo "$as_me:$LINENO: checking $ac_header presence" >&5
13746echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13747cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13748/* confdefs.h. */
13749_ACEOF
13750cat confdefs.h >>conftest.$ac_ext
13751cat >>conftest.$ac_ext <<_ACEOF
13752/* end confdefs.h. */
13753#include <$ac_header>
13754_ACEOF
13755if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13757 ac_status=$?
13758 grep -v '^ *+' conftest.er1 >conftest.err
13759 rm -f conftest.er1
13760 cat conftest.err >&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } >/dev/null; then
13763 if test -s conftest.err; then
13764 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13766 else
13767 ac_cpp_err=
13768 fi
13769else
13770 ac_cpp_err=yes
13771fi
13772if test -z "$ac_cpp_err"; then
13773 ac_header_preproc=yes
13774else
13775 echo "$as_me: failed program was:" >&5
13776sed 's/^/| /' conftest.$ac_ext >&5
13777
13778 ac_header_preproc=no
13779fi
13780rm -f conftest.err conftest.$ac_ext
13781echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13782echo "${ECHO_T}$ac_header_preproc" >&6
13783
13784# So? What about this header?
32ddf007
VS
13785case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13786 yes:no: )
e6cc62c6
VS
13787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13788echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13790echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13791 ac_header_preproc=yes
e6cc62c6 13792 ;;
32ddf007 13793 no:yes:* )
e6cc62c6
VS
13794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13795echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13797echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13799echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13801echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13803echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13805echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13806 (
13807 cat <<\_ASBOX
32ddf007
VS
13808## ----------------------------------------- ##
13809## Report this to wx-dev@lists.wxwindows.org ##
13810## ----------------------------------------- ##
e6cc62c6
VS
13811_ASBOX
13812 ) |
13813 sed "s/^/$as_me: WARNING: /" >&2
13814 ;;
13815esac
13816echo "$as_me:$LINENO: checking for $ac_header" >&5
13817echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13818if eval "test \"\${$as_ac_Header+set}\" = set"; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13820else
32ddf007 13821 eval "$as_ac_Header=\$ac_header_preproc"
90dd450c 13822fi
e6cc62c6
VS
13823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13825
4f14bcd8 13826fi
e6cc62c6
VS
13827if test `eval echo '${'$as_ac_Header'}'` = yes; then
13828 cat >>confdefs.h <<_ACEOF
13829#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13830_ACEOF
13831
21d1c967 13832fi
e6cc62c6 13833
21d1c967 13834done
3a922bb4 13835
8284b0c5 13836
4f5a7f74
VZ
13837case "${host}" in
13838 *-pc-os2_emx | *-pc-os2-emx )
13839 if test $ac_cv_header_langinfo_h = "yes"; then
13840 LIBS="$LIBS -lintl"
13841 fi
13842 ;;
13843esac
1542ea39 13844
a0b9e27f 13845if test "$wxUSE_GUI" = "yes"; then
73d617c9 13846 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13847
eb69fda5 13848for ac_header in X11/Xlib.h
21d1c967 13849do
e6cc62c6
VS
13850as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13851if eval "test \"\${$as_ac_Header+set}\" = set"; then
13852 echo "$as_me:$LINENO: checking for $ac_header" >&5
13853echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13854if eval "test \"\${$as_ac_Header+set}\" = set"; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13856fi
13857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13859else
13860 # Is the header compilable?
13861echo "$as_me:$LINENO: checking $ac_header usability" >&5
13862echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13863cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13864/* confdefs.h. */
13865_ACEOF
13866cat confdefs.h >>conftest.$ac_ext
13867cat >>conftest.$ac_ext <<_ACEOF
13868/* end confdefs.h. */
13869$ac_includes_default
13870#include <$ac_header>
13871_ACEOF
13872rm -f conftest.$ac_objext
13873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 13874 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13875 ac_status=$?
32ddf007
VS
13876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
e6cc62c6
VS
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
32ddf007
VS
13881 { ac_try='test -z "$ac_c_werror_flag"
13882 || test ! -s conftest.err'
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; }; then
13894 ac_header_compiler=yes
13895else
13896 echo "$as_me: failed program was:" >&5
13897sed 's/^/| /' conftest.$ac_ext >&5
13898
13899ac_header_compiler=no
13900fi
32ddf007 13901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13903echo "${ECHO_T}$ac_header_compiler" >&6
13904
13905# Is the header present?
13906echo "$as_me:$LINENO: checking $ac_header presence" >&5
13907echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13908cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13909/* confdefs.h. */
13910_ACEOF
13911cat confdefs.h >>conftest.$ac_ext
13912cat >>conftest.$ac_ext <<_ACEOF
13913/* end confdefs.h. */
13914#include <$ac_header>
13915_ACEOF
13916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13918 ac_status=$?
13919 grep -v '^ *+' conftest.er1 >conftest.err
13920 rm -f conftest.er1
13921 cat conftest.err >&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); } >/dev/null; then
13924 if test -s conftest.err; then
13925 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 13926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13927 else
13928 ac_cpp_err=
13929 fi
13930else
13931 ac_cpp_err=yes
13932fi
13933if test -z "$ac_cpp_err"; then
13934 ac_header_preproc=yes
13935else
13936 echo "$as_me: failed program was:" >&5
13937sed 's/^/| /' conftest.$ac_ext >&5
13938
13939 ac_header_preproc=no
13940fi
13941rm -f conftest.err conftest.$ac_ext
13942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13943echo "${ECHO_T}$ac_header_preproc" >&6
13944
13945# So? What about this header?
32ddf007
VS
13946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13947 yes:no: )
e6cc62c6
VS
13948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13949echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
13950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13951echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13952 ac_header_preproc=yes
e6cc62c6 13953 ;;
32ddf007 13954 no:yes:* )
e6cc62c6
VS
13955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13956echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
13957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13958echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13960echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13962echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13964echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
13965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13966echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13967 (
13968 cat <<\_ASBOX
32ddf007
VS
13969## ----------------------------------------- ##
13970## Report this to wx-dev@lists.wxwindows.org ##
13971## ----------------------------------------- ##
e6cc62c6
VS
13972_ASBOX
13973 ) |
13974 sed "s/^/$as_me: WARNING: /" >&2
13975 ;;
13976esac
13977echo "$as_me:$LINENO: checking for $ac_header" >&5
13978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13979if eval "test \"\${$as_ac_Header+set}\" = set"; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13981else
32ddf007 13982 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13983fi
e6cc62c6
VS
13984echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13985echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13986
90dd450c 13987fi
e6cc62c6
VS
13988if test `eval echo '${'$as_ac_Header'}'` = yes; then
13989 cat >>confdefs.h <<_ACEOF
13990#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13991_ACEOF
13992
247f5006 13993fi
e6cc62c6 13994
eb69fda5
VS
13995done
13996
13997
13998for ac_header in X11/XKBlib.h
13999do
14000as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14001echo "$as_me:$LINENO: checking for $ac_header" >&5
14002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14003if eval "test \"\${$as_ac_Header+set}\" = set"; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14005else
14006 cat >conftest.$ac_ext <<_ACEOF
eb69fda5
VS
14007/* confdefs.h. */
14008_ACEOF
14009cat confdefs.h >>conftest.$ac_ext
14010cat >>conftest.$ac_ext <<_ACEOF
14011/* end confdefs.h. */
14012
14013 #if HAVE_X11_XLIB_H
14014 #include <X11/Xlib.h>
14015 #endif
14016
14017
14018#include <$ac_header>
14019_ACEOF
14020rm -f conftest.$ac_objext
14021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14022 (eval $ac_compile) 2>conftest.er1
eb69fda5 14023 ac_status=$?
32ddf007
VS
14024 grep -v '^ *+' conftest.er1 >conftest.err
14025 rm -f conftest.er1
14026 cat conftest.err >&5
eb69fda5
VS
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } &&
32ddf007
VS
14029 { ac_try='test -z "$ac_c_werror_flag"
14030 || test ! -s conftest.err'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14033 ac_status=$?
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; } &&
14036 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 eval "$as_ac_Header=yes"
14043else
14044 echo "$as_me: failed program was:" >&5
14045sed 's/^/| /' conftest.$ac_ext >&5
14046
14047eval "$as_ac_Header=no"
14048fi
32ddf007 14049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
14050fi
14051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14053if test `eval echo '${'$as_ac_Header'}'` = yes; then
14054 cat >>confdefs.h <<_ACEOF
14055#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14056_ACEOF
14057
14058fi
14059
247f5006
VZ
14060done
14061
a0b9e27f
MB
14062 fi
14063fi
247f5006 14064
247f5006 14065
e6cc62c6
VS
14066echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14067echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14068if test "${ac_cv_c_const+set}" = set; then
14069 echo $ECHO_N "(cached) $ECHO_C" >&6
14070else
14071 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14072/* confdefs.h. */
14073_ACEOF
14074cat confdefs.h >>conftest.$ac_ext
14075cat >>conftest.$ac_ext <<_ACEOF
14076/* end confdefs.h. */
14077
14078int
14079main ()
14080{
14081/* FIXME: Include the comments suggested by Paul. */
14082#ifndef __cplusplus
14083 /* Ultrix mips cc rejects this. */
14084 typedef int charset[2];
14085 const charset x;
14086 /* SunOS 4.1.1 cc rejects this. */
14087 char const *const *ccp;
14088 char **p;
14089 /* NEC SVR4.0.2 mips cc rejects this. */
14090 struct point {int x, y;};
14091 static struct point const zero = {0,0};
14092 /* AIX XL C 1.02.0.0 rejects this.
14093 It does not let you subtract one const X* pointer from another in
14094 an arm of an if-expression whose if-part is not a constant
14095 expression */
14096 const char *g = "string";
14097 ccp = &g + (g ? g-g : 0);
14098 /* HPUX 7.0 cc rejects these. */
14099 ++ccp;
14100 p = (char**) ccp;
14101 ccp = (char const *const *) p;
14102 { /* SCO 3.2v4 cc rejects this. */
14103 char *t;
14104 char const *s = 0 ? (char *) 0 : (char const *) 0;
14105
14106 *t++ = 0;
14107 }
14108 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14109 int x[] = {25, 17};
14110 const int *foo = &x[0];
14111 ++foo;
14112 }
14113 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14114 typedef const int *iptr;
14115 iptr p = 0;
14116 ++p;
14117 }
14118 { /* AIX XL C 1.02.0.0 rejects this saying
14119 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14120 struct s { int j; const int *ap[3]; };
14121 struct s *b; b->j = 5;
14122 }
14123 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14124 const int foo = 10;
14125 }
14126#endif
14127
14128 ;
14129 return 0;
14130}
14131_ACEOF
14132rm -f conftest.$ac_objext
14133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14134 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14135 ac_status=$?
32ddf007
VS
14136 grep -v '^ *+' conftest.er1 >conftest.err
14137 rm -f conftest.er1
14138 cat conftest.err >&5
e6cc62c6
VS
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
32ddf007
VS
14141 { ac_try='test -z "$ac_c_werror_flag"
14142 || test ! -s conftest.err'
14143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14144 (eval $ac_try) 2>&5
14145 ac_status=$?
14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14147 (exit $ac_status); }; } &&
14148 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14150 (eval $ac_try) 2>&5
14151 ac_status=$?
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); }; }; then
a0b9e27f 14154 ac_cv_c_const=yes
247f5006 14155else
e6cc62c6
VS
14156 echo "$as_me: failed program was:" >&5
14157sed 's/^/| /' conftest.$ac_ext >&5
14158
14159ac_cv_c_const=no
247f5006 14160fi
32ddf007 14161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 14162fi
e6cc62c6
VS
14163echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14164echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 14165if test $ac_cv_c_const = no; then
e6cc62c6
VS
14166
14167cat >>confdefs.h <<\_ACEOF
14168#define const
14169_ACEOF
10f2d63a 14170
90dd450c 14171fi
81809c07 14172
e6cc62c6
VS
14173echo "$as_me:$LINENO: checking for inline" >&5
14174echo $ECHO_N "checking for inline... $ECHO_C" >&6
14175if test "${ac_cv_c_inline+set}" = set; then
14176 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 14177else
a0b9e27f
MB
14178 ac_cv_c_inline=no
14179for ac_kw in inline __inline__ __inline; do
e6cc62c6 14180 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14181/* confdefs.h. */
14182_ACEOF
14183cat confdefs.h >>conftest.$ac_ext
14184cat >>conftest.$ac_ext <<_ACEOF
14185/* end confdefs.h. */
14186#ifndef __cplusplus
14187typedef int foo_t;
14188static $ac_kw foo_t static_foo () {return 0; }
14189$ac_kw foo_t foo () {return 0; }
14190#endif
a0b9e27f 14191
e6cc62c6
VS
14192_ACEOF
14193rm -f conftest.$ac_objext
14194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14195 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14196 ac_status=$?
32ddf007
VS
14197 grep -v '^ *+' conftest.er1 >conftest.err
14198 rm -f conftest.er1
14199 cat conftest.err >&5
e6cc62c6
VS
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } &&
32ddf007
VS
14202 { ac_try='test -z "$ac_c_werror_flag"
14203 || test ! -s conftest.err'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; } &&
14209 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
a0b9e27f 14215 ac_cv_c_inline=$ac_kw; break
247f5006 14216else
e6cc62c6
VS
14217 echo "$as_me: failed program was:" >&5
14218sed 's/^/| /' conftest.$ac_ext >&5
14219
247f5006 14220fi
32ddf007 14221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 14222done
247f5006
VZ
14223
14224fi
e6cc62c6
VS
14225echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14226echo "${ECHO_T}$ac_cv_c_inline" >&6
32ddf007
VS
14227
14228
e6cc62c6 14229case $ac_cv_c_inline in
a0b9e27f 14230 inline | yes) ;;
32ddf007
VS
14231 *)
14232 case $ac_cv_c_inline in
14233 no) ac_val=;;
14234 *) ac_val=$ac_cv_c_inline;;
14235 esac
14236 cat >>confdefs.h <<_ACEOF
14237#ifndef __cplusplus
14238#define inline $ac_val
14239#endif
0f87e84c 14240_ACEOF
32ddf007 14241 ;;
a0b9e27f 14242esac
247f5006 14243
247f5006 14244
e6cc62c6
VS
14245echo "$as_me:$LINENO: checking for char" >&5
14246echo $ECHO_N "checking for char... $ECHO_C" >&6
14247if test "${ac_cv_type_char+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14249else
14250 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14251/* confdefs.h. */
14252_ACEOF
14253cat confdefs.h >>conftest.$ac_ext
14254cat >>conftest.$ac_ext <<_ACEOF
14255/* end confdefs.h. */
14256$ac_includes_default
14257int
14258main ()
14259{
14260if ((char *) 0)
14261 return 0;
14262if (sizeof (char))
14263 return 0;
14264 ;
14265 return 0;
14266}
14267_ACEOF
14268rm -f conftest.$ac_objext
14269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14270 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14271 ac_status=$?
32ddf007
VS
14272 grep -v '^ *+' conftest.er1 >conftest.err
14273 rm -f conftest.er1
14274 cat conftest.err >&5
e6cc62c6
VS
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } &&
32ddf007
VS
14277 { ac_try='test -z "$ac_c_werror_flag"
14278 || test ! -s conftest.err'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14281 ac_status=$?
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; } &&
14284 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14287 ac_status=$?
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 ac_cv_type_char=yes
14291else
14292 echo "$as_me: failed program was:" >&5
14293sed 's/^/| /' conftest.$ac_ext >&5
14294
14295ac_cv_type_char=no
14296fi
32ddf007 14297rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14298fi
14299echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14300echo "${ECHO_T}$ac_cv_type_char" >&6
14301
14302echo "$as_me:$LINENO: checking size of char" >&5
14303echo $ECHO_N "checking size of char... $ECHO_C" >&6
14304if test "${ac_cv_sizeof_char+set}" = set; then
14305 echo $ECHO_N "(cached) $ECHO_C" >&6
14306else
14307 if test "$ac_cv_type_char" = yes; then
14308 # The cast to unsigned long works around a bug in the HP C Compiler
14309 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14310 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14311 # This bug is HP SR number 8606223364.
a0b9e27f 14312 if test "$cross_compiling" = yes; then
e6cc62c6
VS
14313 # Depending upon the size, compute the lo and hi bounds.
14314cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14315/* confdefs.h. */
14316_ACEOF
14317cat confdefs.h >>conftest.$ac_ext
14318cat >>conftest.$ac_ext <<_ACEOF
14319/* end confdefs.h. */
14320$ac_includes_default
14321int
14322main ()
14323{
14324static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14325test_array [0] = 0
14326
14327 ;
14328 return 0;
14329}
14330_ACEOF
14331rm -f conftest.$ac_objext
14332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14333 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14334 ac_status=$?
32ddf007
VS
14335 grep -v '^ *+' conftest.er1 >conftest.err
14336 rm -f conftest.er1
14337 cat conftest.err >&5
e6cc62c6
VS
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } &&
32ddf007
VS
14340 { ac_try='test -z "$ac_c_werror_flag"
14341 || test ! -s conftest.err'
14342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14343 (eval $ac_try) 2>&5
14344 ac_status=$?
14345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346 (exit $ac_status); }; } &&
14347 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; }; then
14353 ac_lo=0 ac_mid=0
14354 while :; do
14355 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14356/* confdefs.h. */
14357_ACEOF
14358cat confdefs.h >>conftest.$ac_ext
14359cat >>conftest.$ac_ext <<_ACEOF
14360/* end confdefs.h. */
14361$ac_includes_default
14362int
14363main ()
14364{
14365static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14366test_array [0] = 0
14367
14368 ;
14369 return 0;
14370}
14371_ACEOF
14372rm -f conftest.$ac_objext
14373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14374 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14375 ac_status=$?
32ddf007
VS
14376 grep -v '^ *+' conftest.er1 >conftest.err
14377 rm -f conftest.er1
14378 cat conftest.err >&5
e6cc62c6
VS
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } &&
32ddf007
VS
14381 { ac_try='test -z "$ac_c_werror_flag"
14382 || test ! -s conftest.err'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14385 ac_status=$?
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; } &&
14388 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14390 (eval $ac_try) 2>&5
14391 ac_status=$?
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; }; then
14394 ac_hi=$ac_mid; break
14395else
14396 echo "$as_me: failed program was:" >&5
14397sed 's/^/| /' conftest.$ac_ext >&5
14398
14399ac_lo=`expr $ac_mid + 1`
32ddf007
VS
14400 if test $ac_lo -le $ac_mid; then
14401 ac_lo= ac_hi=
14402 break
14403 fi
14404 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 14405fi
32ddf007 14406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14407 done
a0b9e27f 14408else
e6cc62c6
VS
14409 echo "$as_me: failed program was:" >&5
14410sed 's/^/| /' conftest.$ac_ext >&5
14411
14412cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14413/* confdefs.h. */
14414_ACEOF
14415cat confdefs.h >>conftest.$ac_ext
14416cat >>conftest.$ac_ext <<_ACEOF
14417/* end confdefs.h. */
14418$ac_includes_default
14419int
14420main ()
14421{
14422static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14423test_array [0] = 0
14424
14425 ;
14426 return 0;
14427}
14428_ACEOF
14429rm -f conftest.$ac_objext
14430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14431 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14432 ac_status=$?
32ddf007
VS
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
e6cc62c6
VS
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
32ddf007
VS
14438 { ac_try='test -z "$ac_c_werror_flag"
14439 || test ! -s conftest.err'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 ac_hi=-1 ac_mid=-1
14452 while :; do
14453 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14454/* confdefs.h. */
14455_ACEOF
14456cat confdefs.h >>conftest.$ac_ext
14457cat >>conftest.$ac_ext <<_ACEOF
14458/* end confdefs.h. */
14459$ac_includes_default
14460int
14461main ()
14462{
14463static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14464test_array [0] = 0
14465
14466 ;
14467 return 0;
14468}
14469_ACEOF
14470rm -f conftest.$ac_objext
14471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14472 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14473 ac_status=$?
32ddf007
VS
14474 grep -v '^ *+' conftest.er1 >conftest.err
14475 rm -f conftest.er1
14476 cat conftest.err >&5
e6cc62c6
VS
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
32ddf007
VS
14479 { ac_try='test -z "$ac_c_werror_flag"
14480 || test ! -s conftest.err'
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; } &&
14486 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14492 ac_lo=$ac_mid; break
14493else
14494 echo "$as_me: failed program was:" >&5
14495sed 's/^/| /' conftest.$ac_ext >&5
14496
14497ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
14498 if test $ac_mid -le $ac_hi; then
14499 ac_lo= ac_hi=
14500 break
14501 fi
14502 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14503fi
32ddf007 14504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14505 done
14506else
14507 echo "$as_me: failed program was:" >&5
14508sed 's/^/| /' conftest.$ac_ext >&5
14509
14510ac_lo= ac_hi=
14511fi
32ddf007 14512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14513fi
32ddf007 14514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14515# Binary search between lo and hi bounds.
14516while test "x$ac_lo" != "x$ac_hi"; do
14517 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14518 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14519/* confdefs.h. */
14520_ACEOF
14521cat confdefs.h >>conftest.$ac_ext
14522cat >>conftest.$ac_ext <<_ACEOF
14523/* end confdefs.h. */
14524$ac_includes_default
14525int
14526main ()
14527{
14528static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14529test_array [0] = 0
14530
14531 ;
14532 return 0;
14533}
14534_ACEOF
14535rm -f conftest.$ac_objext
14536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14537 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14538 ac_status=$?
32ddf007
VS
14539 grep -v '^ *+' conftest.er1 >conftest.err
14540 rm -f conftest.er1
14541 cat conftest.err >&5
e6cc62c6
VS
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } &&
32ddf007
VS
14544 { ac_try='test -z "$ac_c_werror_flag"
14545 || test ! -s conftest.err'
14546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14547 (eval $ac_try) 2>&5
14548 ac_status=$?
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14554 ac_status=$?
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; }; then
14557 ac_hi=$ac_mid
14558else
14559 echo "$as_me: failed program was:" >&5
14560sed 's/^/| /' conftest.$ac_ext >&5
14561
14562ac_lo=`expr '(' $ac_mid ')' + 1`
14563fi
32ddf007 14564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14565done
14566case $ac_lo in
14567?*) ac_cv_sizeof_char=$ac_lo;;
14568'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14569See \`config.log' for more details." >&5
14570echo "$as_me: error: cannot compute sizeof (char), 77
14571See \`config.log' for more details." >&2;}
14572 { (exit 1); exit 1; }; } ;;
14573esac
14574else
14575 if test "$cross_compiling" = yes; then
14576 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14577See \`config.log' for more details." >&5
14578echo "$as_me: error: cannot run test program while cross compiling
14579See \`config.log' for more details." >&2;}
14580 { (exit 1); exit 1; }; }
14581else
14582 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14583/* confdefs.h. */
14584_ACEOF
14585cat confdefs.h >>conftest.$ac_ext
14586cat >>conftest.$ac_ext <<_ACEOF
14587/* end confdefs.h. */
14588$ac_includes_default
14589long longval () { return (long) (sizeof (char)); }
14590unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14591#include <stdio.h>
e6cc62c6
VS
14592#include <stdlib.h>
14593int
14594main ()
247f5006 14595{
e6cc62c6
VS
14596
14597 FILE *f = fopen ("conftest.val", "w");
14598 if (! f)
14599 exit (1);
14600 if (((long) (sizeof (char))) < 0)
14601 {
14602 long i = longval ();
14603 if (i != ((long) (sizeof (char))))
14604 exit (1);
14605 fprintf (f, "%ld\n", i);
14606 }
14607 else
14608 {
14609 unsigned long i = ulongval ();
14610 if (i != ((long) (sizeof (char))))
14611 exit (1);
14612 fprintf (f, "%lu\n", i);
14613 }
14614 exit (ferror (f) || fclose (f) != 0);
14615
14616 ;
14617 return 0;
52127426 14618}
e6cc62c6
VS
14619_ACEOF
14620rm -f conftest$ac_exeext
14621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14622 (eval $ac_link) 2>&5
14623 ac_status=$?
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14627 (eval $ac_try) 2>&5
14628 ac_status=$?
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; }; then
14631 ac_cv_sizeof_char=`cat conftest.val`
14632else
14633 echo "$as_me: program exited with status $ac_status" >&5
14634echo "$as_me: failed program was:" >&5
14635sed 's/^/| /' conftest.$ac_ext >&5
14636
14637( exit $ac_status )
14638{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14639See \`config.log' for more details." >&5
14640echo "$as_me: error: cannot compute sizeof (char), 77
14641See \`config.log' for more details." >&2;}
14642 { (exit 1); exit 1; }; }
14643fi
32ddf007 14644rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14645fi
14646fi
14647rm -f conftest.val
247f5006 14648else
a0b9e27f 14649 ac_cv_sizeof_char=0
247f5006 14650fi
247f5006 14651fi
e6cc62c6
VS
14652echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14653echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14654cat >>confdefs.h <<_ACEOF
14655#define SIZEOF_CHAR $ac_cv_sizeof_char
14656_ACEOF
14657
14658
14659echo "$as_me:$LINENO: checking for short" >&5
14660echo $ECHO_N "checking for short... $ECHO_C" >&6
14661if test "${ac_cv_type_short+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14663else
14664 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14665/* confdefs.h. */
14666_ACEOF
14667cat confdefs.h >>conftest.$ac_ext
14668cat >>conftest.$ac_ext <<_ACEOF
14669/* end confdefs.h. */
14670$ac_includes_default
14671int
14672main ()
14673{
14674if ((short *) 0)
14675 return 0;
14676if (sizeof (short))
14677 return 0;
14678 ;
14679 return 0;
14680}
14681_ACEOF
14682rm -f conftest.$ac_objext
14683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14684 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14685 ac_status=$?
32ddf007
VS
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
e6cc62c6
VS
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
32ddf007
VS
14691 { ac_try='test -z "$ac_c_werror_flag"
14692 || test ! -s conftest.err'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_cv_type_short=yes
14705else
14706 echo "$as_me: failed program was:" >&5
14707sed 's/^/| /' conftest.$ac_ext >&5
14708
14709ac_cv_type_short=no
14710fi
32ddf007 14711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14712fi
14713echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14714echo "${ECHO_T}$ac_cv_type_short" >&6
14715
14716echo "$as_me:$LINENO: checking size of short" >&5
14717echo $ECHO_N "checking size of short... $ECHO_C" >&6
14718if test "${ac_cv_sizeof_short+set}" = set; then
14719 echo $ECHO_N "(cached) $ECHO_C" >&6
14720else
14721 if test "$ac_cv_type_short" = yes; then
14722 # The cast to unsigned long works around a bug in the HP C Compiler
14723 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14724 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14725 # This bug is HP SR number 8606223364.
14726 if test "$cross_compiling" = yes; then
14727 # Depending upon the size, compute the lo and hi bounds.
14728cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14729/* confdefs.h. */
14730_ACEOF
14731cat confdefs.h >>conftest.$ac_ext
14732cat >>conftest.$ac_ext <<_ACEOF
14733/* end confdefs.h. */
14734$ac_includes_default
14735int
14736main ()
14737{
14738static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14739test_array [0] = 0
247f5006 14740
e6cc62c6
VS
14741 ;
14742 return 0;
14743}
14744_ACEOF
14745rm -f conftest.$ac_objext
14746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14747 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14748 ac_status=$?
32ddf007
VS
14749 grep -v '^ *+' conftest.er1 >conftest.err
14750 rm -f conftest.er1
14751 cat conftest.err >&5
e6cc62c6
VS
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); } &&
32ddf007
VS
14754 { ac_try='test -z "$ac_c_werror_flag"
14755 || test ! -s conftest.err'
14756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14757 (eval $ac_try) 2>&5
14758 ac_status=$?
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); }; } &&
14761 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 ac_lo=0 ac_mid=0
14768 while :; do
14769 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14770/* confdefs.h. */
14771_ACEOF
14772cat confdefs.h >>conftest.$ac_ext
14773cat >>conftest.$ac_ext <<_ACEOF
14774/* end confdefs.h. */
14775$ac_includes_default
14776int
14777main ()
14778{
14779static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14780test_array [0] = 0
14781
14782 ;
14783 return 0;
14784}
14785_ACEOF
14786rm -f conftest.$ac_objext
14787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14788 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14789 ac_status=$?
32ddf007
VS
14790 grep -v '^ *+' conftest.er1 >conftest.err
14791 rm -f conftest.er1
14792 cat conftest.err >&5
e6cc62c6
VS
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
32ddf007
VS
14795 { ac_try='test -z "$ac_c_werror_flag"
14796 || test ! -s conftest.err'
14797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14798 (eval $ac_try) 2>&5
14799 ac_status=$?
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; } &&
14802 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14805 ac_status=$?
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; }; then
14808 ac_hi=$ac_mid; break
14809else
14810 echo "$as_me: failed program was:" >&5
14811sed 's/^/| /' conftest.$ac_ext >&5
14812
14813ac_lo=`expr $ac_mid + 1`
32ddf007
VS
14814 if test $ac_lo -le $ac_mid; then
14815 ac_lo= ac_hi=
14816 break
14817 fi
14818 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14819fi
32ddf007 14820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14821 done
14822else
14823 echo "$as_me: failed program was:" >&5
14824sed 's/^/| /' conftest.$ac_ext >&5
14825
14826cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14827/* confdefs.h. */
14828_ACEOF
14829cat confdefs.h >>conftest.$ac_ext
14830cat >>conftest.$ac_ext <<_ACEOF
14831/* end confdefs.h. */
14832$ac_includes_default
14833int
14834main ()
14835{
14836static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14837test_array [0] = 0
247f5006 14838
e6cc62c6
VS
14839 ;
14840 return 0;
14841}
14842_ACEOF
14843rm -f conftest.$ac_objext
14844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14845 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14846 ac_status=$?
32ddf007
VS
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
e6cc62c6
VS
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } &&
32ddf007
VS
14852 { ac_try='test -z "$ac_c_werror_flag"
14853 || test ! -s conftest.err'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; } &&
14859 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 ac_hi=-1 ac_mid=-1
14866 while :; do
14867 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14868/* confdefs.h. */
14869_ACEOF
14870cat confdefs.h >>conftest.$ac_ext
14871cat >>conftest.$ac_ext <<_ACEOF
14872/* end confdefs.h. */
14873$ac_includes_default
14874int
14875main ()
14876{
14877static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14878test_array [0] = 0
247f5006 14879
e6cc62c6
VS
14880 ;
14881 return 0;
14882}
14883_ACEOF
14884rm -f conftest.$ac_objext
14885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14886 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14887 ac_status=$?
32ddf007
VS
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
e6cc62c6
VS
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } &&
32ddf007
VS
14893 { ac_try='test -z "$ac_c_werror_flag"
14894 || test ! -s conftest.err'
14895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14896 (eval $ac_try) 2>&5
14897 ac_status=$?
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); }; } &&
14900 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902 (eval $ac_try) 2>&5
14903 ac_status=$?
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906 ac_lo=$ac_mid; break
14907else
14908 echo "$as_me: failed program was:" >&5
14909sed 's/^/| /' conftest.$ac_ext >&5
14910
14911ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
14912 if test $ac_mid -le $ac_hi; then
14913 ac_lo= ac_hi=
14914 break
14915 fi
14916 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14917fi
32ddf007 14918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14919 done
247f5006 14920else
e6cc62c6
VS
14921 echo "$as_me: failed program was:" >&5
14922sed 's/^/| /' conftest.$ac_ext >&5
14923
14924ac_lo= ac_hi=
14925fi
32ddf007 14926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14927fi
32ddf007 14928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14929# Binary search between lo and hi bounds.
14930while test "x$ac_lo" != "x$ac_hi"; do
14931 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14932 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14933/* confdefs.h. */
14934_ACEOF
14935cat confdefs.h >>conftest.$ac_ext
14936cat >>conftest.$ac_ext <<_ACEOF
14937/* end confdefs.h. */
14938$ac_includes_default
14939int
14940main ()
14941{
14942static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14943test_array [0] = 0
14944
14945 ;
14946 return 0;
14947}
14948_ACEOF
14949rm -f conftest.$ac_objext
14950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 14951 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14952 ac_status=$?
32ddf007
VS
14953 grep -v '^ *+' conftest.er1 >conftest.err
14954 rm -f conftest.er1
14955 cat conftest.err >&5
e6cc62c6
VS
14956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957 (exit $ac_status); } &&
32ddf007
VS
14958 { ac_try='test -z "$ac_c_werror_flag"
14959 || test ! -s conftest.err'
14960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14961 (eval $ac_try) 2>&5
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); }; } &&
14965 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 ac_hi=$ac_mid
14972else
14973 echo "$as_me: failed program was:" >&5
14974sed 's/^/| /' conftest.$ac_ext >&5
14975
14976ac_lo=`expr '(' $ac_mid ')' + 1`
14977fi
32ddf007 14978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14979done
14980case $ac_lo in
14981?*) ac_cv_sizeof_short=$ac_lo;;
14982'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14983See \`config.log' for more details." >&5
14984echo "$as_me: error: cannot compute sizeof (short), 77
14985See \`config.log' for more details." >&2;}
14986 { (exit 1); exit 1; }; } ;;
14987esac
247f5006 14988else
e6cc62c6
VS
14989 if test "$cross_compiling" = yes; then
14990 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14991See \`config.log' for more details." >&5
14992echo "$as_me: error: cannot run test program while cross compiling
14993See \`config.log' for more details." >&2;}
14994 { (exit 1); exit 1; }; }
14995else
14996 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14997/* confdefs.h. */
14998_ACEOF
14999cat confdefs.h >>conftest.$ac_ext
15000cat >>conftest.$ac_ext <<_ACEOF
15001/* end confdefs.h. */
15002$ac_includes_default
15003long longval () { return (long) (sizeof (short)); }
15004unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 15005#include <stdio.h>
e6cc62c6
VS
15006#include <stdlib.h>
15007int
15008main ()
a0b9e27f 15009{
e6cc62c6
VS
15010
15011 FILE *f = fopen ("conftest.val", "w");
15012 if (! f)
15013 exit (1);
15014 if (((long) (sizeof (short))) < 0)
15015 {
15016 long i = longval ();
15017 if (i != ((long) (sizeof (short))))
15018 exit (1);
15019 fprintf (f, "%ld\n", i);
15020 }
15021 else
15022 {
15023 unsigned long i = ulongval ();
15024 if (i != ((long) (sizeof (short))))
15025 exit (1);
15026 fprintf (f, "%lu\n", i);
15027 }
15028 exit (ferror (f) || fclose (f) != 0);
15029
15030 ;
15031 return 0;
a0b9e27f 15032}
e6cc62c6
VS
15033_ACEOF
15034rm -f conftest$ac_exeext
15035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15036 (eval $ac_link) 2>&5
15037 ac_status=$?
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; }; then
15045 ac_cv_sizeof_short=`cat conftest.val`
15046else
15047 echo "$as_me: program exited with status $ac_status" >&5
15048echo "$as_me: failed program was:" >&5
15049sed 's/^/| /' conftest.$ac_ext >&5
15050
15051( exit $ac_status )
15052{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
15053See \`config.log' for more details." >&5
15054echo "$as_me: error: cannot compute sizeof (short), 77
15055See \`config.log' for more details." >&2;}
15056 { (exit 1); exit 1; }; }
15057fi
32ddf007 15058rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15059fi
15060fi
15061rm -f conftest.val
247f5006 15062else
a0b9e27f 15063 ac_cv_sizeof_short=0
247f5006 15064fi
247f5006 15065fi
e6cc62c6
VS
15066echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
15067echo "${ECHO_T}$ac_cv_sizeof_short" >&6
15068cat >>confdefs.h <<_ACEOF
15069#define SIZEOF_SHORT $ac_cv_sizeof_short
15070_ACEOF
15071
15072
15073echo "$as_me:$LINENO: checking for void *" >&5
15074echo $ECHO_N "checking for void *... $ECHO_C" >&6
15075if test "${ac_cv_type_void_p+set}" = set; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15077else
15078 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15079/* confdefs.h. */
15080_ACEOF
15081cat confdefs.h >>conftest.$ac_ext
15082cat >>conftest.$ac_ext <<_ACEOF
15083/* end confdefs.h. */
15084$ac_includes_default
15085int
15086main ()
15087{
15088if ((void * *) 0)
15089 return 0;
15090if (sizeof (void *))
15091 return 0;
15092 ;
15093 return 0;
15094}
15095_ACEOF
15096rm -f conftest.$ac_objext
15097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15098 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15099 ac_status=$?
32ddf007
VS
15100 grep -v '^ *+' conftest.er1 >conftest.err
15101 rm -f conftest.er1
15102 cat conftest.err >&5
e6cc62c6
VS
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); } &&
32ddf007
VS
15105 { ac_try='test -z "$ac_c_werror_flag"
15106 || test ! -s conftest.err'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15109 ac_status=$?
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; } &&
15112 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15114 (eval $ac_try) 2>&5
15115 ac_status=$?
15116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117 (exit $ac_status); }; }; then
15118 ac_cv_type_void_p=yes
15119else
15120 echo "$as_me: failed program was:" >&5
15121sed 's/^/| /' conftest.$ac_ext >&5
15122
15123ac_cv_type_void_p=no
15124fi
32ddf007 15125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15126fi
15127echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15128echo "${ECHO_T}$ac_cv_type_void_p" >&6
15129
15130echo "$as_me:$LINENO: checking size of void *" >&5
15131echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15132if test "${ac_cv_sizeof_void_p+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15134else
15135 if test "$ac_cv_type_void_p" = yes; then
15136 # The cast to unsigned long works around a bug in the HP C Compiler
15137 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15138 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15139 # This bug is HP SR number 8606223364.
15140 if test "$cross_compiling" = yes; then
15141 # Depending upon the size, compute the lo and hi bounds.
15142cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15143/* confdefs.h. */
15144_ACEOF
15145cat confdefs.h >>conftest.$ac_ext
15146cat >>conftest.$ac_ext <<_ACEOF
15147/* end confdefs.h. */
15148$ac_includes_default
15149int
15150main ()
15151{
15152static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15153test_array [0] = 0
15154
15155 ;
15156 return 0;
15157}
15158_ACEOF
15159rm -f conftest.$ac_objext
15160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15161 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15162 ac_status=$?
32ddf007
VS
15163 grep -v '^ *+' conftest.er1 >conftest.err
15164 rm -f conftest.er1
15165 cat conftest.err >&5
e6cc62c6
VS
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
32ddf007
VS
15168 { ac_try='test -z "$ac_c_werror_flag"
15169 || test ! -s conftest.err'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15172 ac_status=$?
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; } &&
15175 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 ac_lo=0 ac_mid=0
15182 while :; do
15183 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15184/* confdefs.h. */
15185_ACEOF
15186cat confdefs.h >>conftest.$ac_ext
15187cat >>conftest.$ac_ext <<_ACEOF
15188/* end confdefs.h. */
15189$ac_includes_default
15190int
15191main ()
15192{
15193static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15194test_array [0] = 0
247f5006 15195
e6cc62c6
VS
15196 ;
15197 return 0;
15198}
15199_ACEOF
15200rm -f conftest.$ac_objext
15201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15202 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15203 ac_status=$?
32ddf007
VS
15204 grep -v '^ *+' conftest.er1 >conftest.err
15205 rm -f conftest.er1
15206 cat conftest.err >&5
e6cc62c6
VS
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); } &&
32ddf007
VS
15209 { ac_try='test -z "$ac_c_werror_flag"
15210 || test ! -s conftest.err'
15211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15212 (eval $ac_try) 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; } &&
15216 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218 (eval $ac_try) 2>&5
15219 ac_status=$?
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); }; }; then
15222 ac_hi=$ac_mid; break
15223else
15224 echo "$as_me: failed program was:" >&5
15225sed 's/^/| /' conftest.$ac_ext >&5
15226
15227ac_lo=`expr $ac_mid + 1`
32ddf007
VS
15228 if test $ac_lo -le $ac_mid; then
15229 ac_lo= ac_hi=
15230 break
15231 fi
15232 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15233fi
32ddf007 15234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15235 done
15236else
15237 echo "$as_me: failed program was:" >&5
15238sed 's/^/| /' conftest.$ac_ext >&5
15239
15240cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15241/* confdefs.h. */
15242_ACEOF
15243cat confdefs.h >>conftest.$ac_ext
15244cat >>conftest.$ac_ext <<_ACEOF
15245/* end confdefs.h. */
15246$ac_includes_default
15247int
15248main ()
15249{
15250static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15251test_array [0] = 0
247f5006 15252
e6cc62c6
VS
15253 ;
15254 return 0;
15255}
15256_ACEOF
15257rm -f conftest.$ac_objext
15258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15259 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15260 ac_status=$?
32ddf007
VS
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
e6cc62c6
VS
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } &&
32ddf007
VS
15266 { ac_try='test -z "$ac_c_werror_flag"
15267 || test ! -s conftest.err'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15279 ac_hi=-1 ac_mid=-1
15280 while :; do
15281 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15282/* confdefs.h. */
15283_ACEOF
15284cat confdefs.h >>conftest.$ac_ext
15285cat >>conftest.$ac_ext <<_ACEOF
15286/* end confdefs.h. */
15287$ac_includes_default
15288int
15289main ()
15290{
15291static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15292test_array [0] = 0
247f5006 15293
e6cc62c6
VS
15294 ;
15295 return 0;
15296}
15297_ACEOF
15298rm -f conftest.$ac_objext
15299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15300 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15301 ac_status=$?
32ddf007
VS
15302 grep -v '^ *+' conftest.er1 >conftest.err
15303 rm -f conftest.er1
15304 cat conftest.err >&5
e6cc62c6
VS
15305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306 (exit $ac_status); } &&
32ddf007
VS
15307 { ac_try='test -z "$ac_c_werror_flag"
15308 || test ! -s conftest.err'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; }; then
15320 ac_lo=$ac_mid; break
15321else
15322 echo "$as_me: failed program was:" >&5
15323sed 's/^/| /' conftest.$ac_ext >&5
15324
15325ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
15326 if test $ac_mid -le $ac_hi; then
15327 ac_lo= ac_hi=
15328 break
15329 fi
15330 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15331fi
32ddf007 15332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15333 done
a0b9e27f 15334else
e6cc62c6
VS
15335 echo "$as_me: failed program was:" >&5
15336sed 's/^/| /' conftest.$ac_ext >&5
15337
15338ac_lo= ac_hi=
15339fi
32ddf007 15340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15341fi
32ddf007 15342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15343# Binary search between lo and hi bounds.
15344while test "x$ac_lo" != "x$ac_hi"; do
15345 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15346 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15347/* confdefs.h. */
15348_ACEOF
15349cat confdefs.h >>conftest.$ac_ext
15350cat >>conftest.$ac_ext <<_ACEOF
15351/* end confdefs.h. */
15352$ac_includes_default
15353int
15354main ()
15355{
15356static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15357test_array [0] = 0
15358
15359 ;
15360 return 0;
15361}
15362_ACEOF
15363rm -f conftest.$ac_objext
15364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15365 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15366 ac_status=$?
32ddf007
VS
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
e6cc62c6
VS
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
32ddf007
VS
15372 { ac_try='test -z "$ac_c_werror_flag"
15373 || test ! -s conftest.err'
15374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15375 (eval $ac_try) 2>&5
15376 ac_status=$?
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); }; } &&
15379 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15382 ac_status=$?
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 ac_hi=$ac_mid
15386else
15387 echo "$as_me: failed program was:" >&5
15388sed 's/^/| /' conftest.$ac_ext >&5
15389
15390ac_lo=`expr '(' $ac_mid ')' + 1`
15391fi
32ddf007 15392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15393done
15394case $ac_lo in
15395?*) ac_cv_sizeof_void_p=$ac_lo;;
15396'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15397See \`config.log' for more details." >&5
15398echo "$as_me: error: cannot compute sizeof (void *), 77
15399See \`config.log' for more details." >&2;}
15400 { (exit 1); exit 1; }; } ;;
15401esac
247f5006 15402else
e6cc62c6
VS
15403 if test "$cross_compiling" = yes; then
15404 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15405See \`config.log' for more details." >&5
15406echo "$as_me: error: cannot run test program while cross compiling
15407See \`config.log' for more details." >&2;}
15408 { (exit 1); exit 1; }; }
15409else
15410 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15411/* confdefs.h. */
15412_ACEOF
15413cat confdefs.h >>conftest.$ac_ext
15414cat >>conftest.$ac_ext <<_ACEOF
15415/* end confdefs.h. */
15416$ac_includes_default
15417long longval () { return (long) (sizeof (void *)); }
15418unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 15419#include <stdio.h>
e6cc62c6
VS
15420#include <stdlib.h>
15421int
15422main ()
247f5006 15423{
e6cc62c6
VS
15424
15425 FILE *f = fopen ("conftest.val", "w");
15426 if (! f)
15427 exit (1);
15428 if (((long) (sizeof (void *))) < 0)
15429 {
15430 long i = longval ();
15431 if (i != ((long) (sizeof (void *))))
15432 exit (1);
15433 fprintf (f, "%ld\n", i);
15434 }
15435 else
15436 {
15437 unsigned long i = ulongval ();
15438 if (i != ((long) (sizeof (void *))))
15439 exit (1);
15440 fprintf (f, "%lu\n", i);
15441 }
15442 exit (ferror (f) || fclose (f) != 0);
15443
15444 ;
15445 return 0;
5c6fa7d2 15446}
e6cc62c6
VS
15447_ACEOF
15448rm -f conftest$ac_exeext
15449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15450 (eval $ac_link) 2>&5
15451 ac_status=$?
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15455 (eval $ac_try) 2>&5
15456 ac_status=$?
15457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458 (exit $ac_status); }; }; then
15459 ac_cv_sizeof_void_p=`cat conftest.val`
15460else
15461 echo "$as_me: program exited with status $ac_status" >&5
15462echo "$as_me: failed program was:" >&5
15463sed 's/^/| /' conftest.$ac_ext >&5
15464
15465( exit $ac_status )
15466{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15467See \`config.log' for more details." >&5
15468echo "$as_me: error: cannot compute sizeof (void *), 77
15469See \`config.log' for more details." >&2;}
15470 { (exit 1); exit 1; }; }
15471fi
32ddf007 15472rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15473fi
15474fi
15475rm -f conftest.val
a0b9e27f 15476else
a0b9e27f
MB
15477 ac_cv_sizeof_void_p=0
15478fi
a0b9e27f 15479fi
e6cc62c6
VS
15480echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15481echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15482cat >>confdefs.h <<_ACEOF
15483#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15484_ACEOF
15485
15486
15487echo "$as_me:$LINENO: checking for int" >&5
15488echo $ECHO_N "checking for int... $ECHO_C" >&6
15489if test "${ac_cv_type_int+set}" = set; then
15490 echo $ECHO_N "(cached) $ECHO_C" >&6
15491else
15492 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15493/* confdefs.h. */
15494_ACEOF
15495cat confdefs.h >>conftest.$ac_ext
15496cat >>conftest.$ac_ext <<_ACEOF
15497/* end confdefs.h. */
15498$ac_includes_default
15499int
15500main ()
15501{
15502if ((int *) 0)
15503 return 0;
15504if (sizeof (int))
15505 return 0;
15506 ;
15507 return 0;
15508}
15509_ACEOF
15510rm -f conftest.$ac_objext
15511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15512 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15513 ac_status=$?
32ddf007
VS
15514 grep -v '^ *+' conftest.er1 >conftest.err
15515 rm -f conftest.er1
15516 cat conftest.err >&5
e6cc62c6
VS
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } &&
32ddf007
VS
15519 { ac_try='test -z "$ac_c_werror_flag"
15520 || test ! -s conftest.err'
15521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15522 (eval $ac_try) 2>&5
15523 ac_status=$?
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; } &&
15526 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528 (eval $ac_try) 2>&5
15529 ac_status=$?
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); }; }; then
15532 ac_cv_type_int=yes
15533else
15534 echo "$as_me: failed program was:" >&5
15535sed 's/^/| /' conftest.$ac_ext >&5
15536
15537ac_cv_type_int=no
15538fi
32ddf007 15539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15540fi
15541echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15542echo "${ECHO_T}$ac_cv_type_int" >&6
15543
15544echo "$as_me:$LINENO: checking size of int" >&5
15545echo $ECHO_N "checking size of int... $ECHO_C" >&6
15546if test "${ac_cv_sizeof_int+set}" = set; then
15547 echo $ECHO_N "(cached) $ECHO_C" >&6
15548else
15549 if test "$ac_cv_type_int" = yes; then
15550 # The cast to unsigned long works around a bug in the HP C Compiler
15551 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15552 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15553 # This bug is HP SR number 8606223364.
15554 if test "$cross_compiling" = yes; then
15555 # Depending upon the size, compute the lo and hi bounds.
15556cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15557/* confdefs.h. */
15558_ACEOF
15559cat confdefs.h >>conftest.$ac_ext
15560cat >>conftest.$ac_ext <<_ACEOF
15561/* end confdefs.h. */
15562$ac_includes_default
15563int
15564main ()
15565{
15566static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15567test_array [0] = 0
8284b0c5 15568
e6cc62c6
VS
15569 ;
15570 return 0;
15571}
15572_ACEOF
15573rm -f conftest.$ac_objext
15574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15575 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15576 ac_status=$?
32ddf007
VS
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
e6cc62c6
VS
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
32ddf007
VS
15582 { ac_try='test -z "$ac_c_werror_flag"
15583 || test ! -s conftest.err'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
15589 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_lo=0 ac_mid=0
15596 while :; do
15597 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15598/* confdefs.h. */
15599_ACEOF
15600cat confdefs.h >>conftest.$ac_ext
15601cat >>conftest.$ac_ext <<_ACEOF
15602/* end confdefs.h. */
15603$ac_includes_default
15604int
15605main ()
15606{
15607static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15608test_array [0] = 0
15609
15610 ;
15611 return 0;
15612}
15613_ACEOF
15614rm -f conftest.$ac_objext
15615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15616 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15617 ac_status=$?
32ddf007
VS
15618 grep -v '^ *+' conftest.er1 >conftest.err
15619 rm -f conftest.er1
15620 cat conftest.err >&5
e6cc62c6
VS
15621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15622 (exit $ac_status); } &&
32ddf007
VS
15623 { ac_try='test -z "$ac_c_werror_flag"
15624 || test ! -s conftest.err'
15625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15626 (eval $ac_try) 2>&5
15627 ac_status=$?
15628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15629 (exit $ac_status); }; } &&
15630 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15632 (eval $ac_try) 2>&5
15633 ac_status=$?
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 ac_hi=$ac_mid; break
15637else
15638 echo "$as_me: failed program was:" >&5
15639sed 's/^/| /' conftest.$ac_ext >&5
15640
15641ac_lo=`expr $ac_mid + 1`
32ddf007
VS
15642 if test $ac_lo -le $ac_mid; then
15643 ac_lo= ac_hi=
15644 break
15645 fi
15646 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15647fi
32ddf007 15648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15649 done
15650else
15651 echo "$as_me: failed program was:" >&5
15652sed 's/^/| /' conftest.$ac_ext >&5
15653
15654cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15655/* confdefs.h. */
15656_ACEOF
15657cat confdefs.h >>conftest.$ac_ext
15658cat >>conftest.$ac_ext <<_ACEOF
15659/* end confdefs.h. */
15660$ac_includes_default
15661int
15662main ()
15663{
15664static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15665test_array [0] = 0
247f5006 15666
e6cc62c6
VS
15667 ;
15668 return 0;
15669}
15670_ACEOF
15671rm -f conftest.$ac_objext
15672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15673 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15674 ac_status=$?
32ddf007
VS
15675 grep -v '^ *+' conftest.er1 >conftest.err
15676 rm -f conftest.er1
15677 cat conftest.err >&5
e6cc62c6
VS
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
32ddf007
VS
15680 { ac_try='test -z "$ac_c_werror_flag"
15681 || test ! -s conftest.err'
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15684 ac_status=$?
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; }; then
15693 ac_hi=-1 ac_mid=-1
15694 while :; do
15695 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15696/* confdefs.h. */
15697_ACEOF
15698cat confdefs.h >>conftest.$ac_ext
15699cat >>conftest.$ac_ext <<_ACEOF
15700/* end confdefs.h. */
15701$ac_includes_default
15702int
15703main ()
15704{
15705static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15706test_array [0] = 0
247f5006 15707
e6cc62c6
VS
15708 ;
15709 return 0;
15710}
15711_ACEOF
15712rm -f conftest.$ac_objext
15713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15714 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15715 ac_status=$?
32ddf007
VS
15716 grep -v '^ *+' conftest.er1 >conftest.err
15717 rm -f conftest.er1
15718 cat conftest.err >&5
e6cc62c6
VS
15719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15720 (exit $ac_status); } &&
32ddf007
VS
15721 { ac_try='test -z "$ac_c_werror_flag"
15722 || test ! -s conftest.err'
15723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15724 (eval $ac_try) 2>&5
15725 ac_status=$?
15726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727 (exit $ac_status); }; } &&
15728 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15730 (eval $ac_try) 2>&5
15731 ac_status=$?
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); }; }; then
15734 ac_lo=$ac_mid; break
15735else
15736 echo "$as_me: failed program was:" >&5
15737sed 's/^/| /' conftest.$ac_ext >&5
15738
15739ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
15740 if test $ac_mid -le $ac_hi; then
15741 ac_lo= ac_hi=
15742 break
15743 fi
15744 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15745fi
32ddf007 15746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15747 done
247f5006 15748else
e6cc62c6
VS
15749 echo "$as_me: failed program was:" >&5
15750sed 's/^/| /' conftest.$ac_ext >&5
15751
15752ac_lo= ac_hi=
15753fi
32ddf007 15754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15755fi
32ddf007 15756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15757# Binary search between lo and hi bounds.
15758while test "x$ac_lo" != "x$ac_hi"; do
15759 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15760 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15761/* confdefs.h. */
15762_ACEOF
15763cat confdefs.h >>conftest.$ac_ext
15764cat >>conftest.$ac_ext <<_ACEOF
15765/* end confdefs.h. */
15766$ac_includes_default
15767int
15768main ()
15769{
15770static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15771test_array [0] = 0
15772
15773 ;
15774 return 0;
15775}
15776_ACEOF
15777rm -f conftest.$ac_objext
15778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15779 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15780 ac_status=$?
32ddf007
VS
15781 grep -v '^ *+' conftest.er1 >conftest.err
15782 rm -f conftest.er1
15783 cat conftest.err >&5
e6cc62c6
VS
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } &&
32ddf007
VS
15786 { ac_try='test -z "$ac_c_werror_flag"
15787 || test ! -s conftest.err'
15788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15789 (eval $ac_try) 2>&5
15790 ac_status=$?
15791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15792 (exit $ac_status); }; } &&
15793 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15795 (eval $ac_try) 2>&5
15796 ac_status=$?
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 ac_hi=$ac_mid
15800else
15801 echo "$as_me: failed program was:" >&5
15802sed 's/^/| /' conftest.$ac_ext >&5
15803
15804ac_lo=`expr '(' $ac_mid ')' + 1`
15805fi
32ddf007 15806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15807done
15808case $ac_lo in
15809?*) ac_cv_sizeof_int=$ac_lo;;
15810'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15811See \`config.log' for more details." >&5
15812echo "$as_me: error: cannot compute sizeof (int), 77
15813See \`config.log' for more details." >&2;}
15814 { (exit 1); exit 1; }; } ;;
15815esac
a0b9e27f 15816else
e6cc62c6
VS
15817 if test "$cross_compiling" = yes; then
15818 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15819See \`config.log' for more details." >&5
15820echo "$as_me: error: cannot run test program while cross compiling
15821See \`config.log' for more details." >&2;}
15822 { (exit 1); exit 1; }; }
15823else
15824 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15825/* confdefs.h. */
15826_ACEOF
15827cat confdefs.h >>conftest.$ac_ext
15828cat >>conftest.$ac_ext <<_ACEOF
15829/* end confdefs.h. */
15830$ac_includes_default
15831long longval () { return (long) (sizeof (int)); }
15832unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15833#include <stdio.h>
e6cc62c6
VS
15834#include <stdlib.h>
15835int
15836main ()
247f5006 15837{
e6cc62c6
VS
15838
15839 FILE *f = fopen ("conftest.val", "w");
15840 if (! f)
15841 exit (1);
15842 if (((long) (sizeof (int))) < 0)
15843 {
15844 long i = longval ();
15845 if (i != ((long) (sizeof (int))))
15846 exit (1);
15847 fprintf (f, "%ld\n", i);
15848 }
15849 else
15850 {
15851 unsigned long i = ulongval ();
15852 if (i != ((long) (sizeof (int))))
15853 exit (1);
15854 fprintf (f, "%lu\n", i);
15855 }
15856 exit (ferror (f) || fclose (f) != 0);
15857
15858 ;
15859 return 0;
247f5006 15860}
e6cc62c6
VS
15861_ACEOF
15862rm -f conftest$ac_exeext
15863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15864 (eval $ac_link) 2>&5
15865 ac_status=$?
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15870 ac_status=$?
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15873 ac_cv_sizeof_int=`cat conftest.val`
15874else
15875 echo "$as_me: program exited with status $ac_status" >&5
15876echo "$as_me: failed program was:" >&5
15877sed 's/^/| /' conftest.$ac_ext >&5
15878
15879( exit $ac_status )
15880{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15881See \`config.log' for more details." >&5
15882echo "$as_me: error: cannot compute sizeof (int), 77
15883See \`config.log' for more details." >&2;}
15884 { (exit 1); exit 1; }; }
15885fi
32ddf007 15886rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15887fi
15888fi
15889rm -f conftest.val
6f72b082 15890else
a0b9e27f 15891 ac_cv_sizeof_int=0
21d1c967 15892fi
698dcdb6 15893fi
e6cc62c6
VS
15894echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15895echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15896cat >>confdefs.h <<_ACEOF
15897#define SIZEOF_INT $ac_cv_sizeof_int
15898_ACEOF
15899
15900
15901echo "$as_me:$LINENO: checking for long" >&5
15902echo $ECHO_N "checking for long... $ECHO_C" >&6
15903if test "${ac_cv_type_long+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15905else
15906 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15907/* confdefs.h. */
15908_ACEOF
15909cat confdefs.h >>conftest.$ac_ext
15910cat >>conftest.$ac_ext <<_ACEOF
15911/* end confdefs.h. */
15912$ac_includes_default
15913int
15914main ()
15915{
15916if ((long *) 0)
15917 return 0;
15918if (sizeof (long))
15919 return 0;
15920 ;
15921 return 0;
15922}
15923_ACEOF
15924rm -f conftest.$ac_objext
15925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15926 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15927 ac_status=$?
32ddf007
VS
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
e6cc62c6
VS
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } &&
32ddf007
VS
15933 { ac_try='test -z "$ac_c_werror_flag"
15934 || test ! -s conftest.err'
15935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15936 (eval $ac_try) 2>&5
15937 ac_status=$?
15938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939 (exit $ac_status); }; } &&
15940 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15942 (eval $ac_try) 2>&5
15943 ac_status=$?
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); }; }; then
15946 ac_cv_type_long=yes
15947else
15948 echo "$as_me: failed program was:" >&5
15949sed 's/^/| /' conftest.$ac_ext >&5
15950
15951ac_cv_type_long=no
15952fi
32ddf007 15953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15954fi
15955echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15956echo "${ECHO_T}$ac_cv_type_long" >&6
15957
15958echo "$as_me:$LINENO: checking size of long" >&5
15959echo $ECHO_N "checking size of long... $ECHO_C" >&6
15960if test "${ac_cv_sizeof_long+set}" = set; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15962else
15963 if test "$ac_cv_type_long" = yes; then
15964 # The cast to unsigned long works around a bug in the HP C Compiler
15965 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15966 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15967 # This bug is HP SR number 8606223364.
15968 if test "$cross_compiling" = yes; then
15969 # Depending upon the size, compute the lo and hi bounds.
15970cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15971/* confdefs.h. */
15972_ACEOF
15973cat confdefs.h >>conftest.$ac_ext
15974cat >>conftest.$ac_ext <<_ACEOF
15975/* end confdefs.h. */
15976$ac_includes_default
15977int
15978main ()
15979{
15980static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15981test_array [0] = 0
15982
15983 ;
15984 return 0;
15985}
15986_ACEOF
15987rm -f conftest.$ac_objext
15988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 15989 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15990 ac_status=$?
32ddf007
VS
15991 grep -v '^ *+' conftest.er1 >conftest.err
15992 rm -f conftest.er1
15993 cat conftest.err >&5
e6cc62c6
VS
15994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995 (exit $ac_status); } &&
32ddf007
VS
15996 { ac_try='test -z "$ac_c_werror_flag"
15997 || test ! -s conftest.err'
15998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999 (eval $ac_try) 2>&5
16000 ac_status=$?
16001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); }; } &&
16003 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; }; then
16009 ac_lo=0 ac_mid=0
16010 while :; do
16011 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16012/* confdefs.h. */
16013_ACEOF
16014cat confdefs.h >>conftest.$ac_ext
16015cat >>conftest.$ac_ext <<_ACEOF
16016/* end confdefs.h. */
16017$ac_includes_default
16018int
16019main ()
16020{
16021static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16022test_array [0] = 0
4f14bcd8 16023
e6cc62c6
VS
16024 ;
16025 return 0;
16026}
16027_ACEOF
16028rm -f conftest.$ac_objext
16029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16030 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16031 ac_status=$?
32ddf007
VS
16032 grep -v '^ *+' conftest.er1 >conftest.err
16033 rm -f conftest.er1
16034 cat conftest.err >&5
e6cc62c6
VS
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } &&
32ddf007
VS
16037 { ac_try='test -z "$ac_c_werror_flag"
16038 || test ! -s conftest.err'
16039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16040 (eval $ac_try) 2>&5
16041 ac_status=$?
16042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16043 (exit $ac_status); }; } &&
16044 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16046 (eval $ac_try) 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); }; }; then
16050 ac_hi=$ac_mid; break
16051else
16052 echo "$as_me: failed program was:" >&5
16053sed 's/^/| /' conftest.$ac_ext >&5
16054
16055ac_lo=`expr $ac_mid + 1`
32ddf007
VS
16056 if test $ac_lo -le $ac_mid; then
16057 ac_lo= ac_hi=
16058 break
16059 fi
16060 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 16061fi
32ddf007 16062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16063 done
16064else
16065 echo "$as_me: failed program was:" >&5
16066sed 's/^/| /' conftest.$ac_ext >&5
16067
16068cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16069/* confdefs.h. */
16070_ACEOF
16071cat confdefs.h >>conftest.$ac_ext
16072cat >>conftest.$ac_ext <<_ACEOF
16073/* end confdefs.h. */
16074$ac_includes_default
16075int
16076main ()
16077{
16078static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
16079test_array [0] = 0
4f14bcd8 16080
e6cc62c6
VS
16081 ;
16082 return 0;
16083}
16084_ACEOF
16085rm -f conftest.$ac_objext
16086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16087 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16088 ac_status=$?
32ddf007
VS
16089 grep -v '^ *+' conftest.er1 >conftest.err
16090 rm -f conftest.er1
16091 cat conftest.err >&5
e6cc62c6
VS
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } &&
32ddf007
VS
16094 { ac_try='test -z "$ac_c_werror_flag"
16095 || test ! -s conftest.err'
16096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; } &&
16101 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103 (eval $ac_try) 2>&5
16104 ac_status=$?
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); }; }; then
16107 ac_hi=-1 ac_mid=-1
16108 while :; do
16109 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16110/* confdefs.h. */
16111_ACEOF
16112cat confdefs.h >>conftest.$ac_ext
16113cat >>conftest.$ac_ext <<_ACEOF
16114/* end confdefs.h. */
16115$ac_includes_default
16116int
16117main ()
16118{
16119static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16120test_array [0] = 0
5c6fa7d2 16121
e6cc62c6
VS
16122 ;
16123 return 0;
16124}
16125_ACEOF
16126rm -f conftest.$ac_objext
16127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16128 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16129 ac_status=$?
32ddf007
VS
16130 grep -v '^ *+' conftest.er1 >conftest.err
16131 rm -f conftest.er1
16132 cat conftest.err >&5
e6cc62c6
VS
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } &&
32ddf007
VS
16135 { ac_try='test -z "$ac_c_werror_flag"
16136 || test ! -s conftest.err'
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16139 ac_status=$?
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16145 ac_status=$?
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16148 ac_lo=$ac_mid; break
16149else
16150 echo "$as_me: failed program was:" >&5
16151sed 's/^/| /' conftest.$ac_ext >&5
16152
16153ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
16154 if test $ac_mid -le $ac_hi; then
16155 ac_lo= ac_hi=
16156 break
16157 fi
16158 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16159fi
32ddf007 16160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16161 done
247f5006 16162else
e6cc62c6
VS
16163 echo "$as_me: failed program was:" >&5
16164sed 's/^/| /' conftest.$ac_ext >&5
16165
16166ac_lo= ac_hi=
16167fi
32ddf007 16168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16169fi
32ddf007 16170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16171# Binary search between lo and hi bounds.
16172while test "x$ac_lo" != "x$ac_hi"; do
16173 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16174 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16175/* confdefs.h. */
16176_ACEOF
16177cat confdefs.h >>conftest.$ac_ext
16178cat >>conftest.$ac_ext <<_ACEOF
16179/* end confdefs.h. */
16180$ac_includes_default
16181int
16182main ()
16183{
16184static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16185test_array [0] = 0
16186
16187 ;
16188 return 0;
16189}
16190_ACEOF
16191rm -f conftest.$ac_objext
16192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16193 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16194 ac_status=$?
32ddf007
VS
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
e6cc62c6
VS
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } &&
32ddf007
VS
16200 { ac_try='test -z "$ac_c_werror_flag"
16201 || test ! -s conftest.err'
16202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16203 (eval $ac_try) 2>&5
16204 ac_status=$?
16205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16206 (exit $ac_status); }; } &&
16207 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16209 (eval $ac_try) 2>&5
16210 ac_status=$?
16211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212 (exit $ac_status); }; }; then
16213 ac_hi=$ac_mid
16214else
16215 echo "$as_me: failed program was:" >&5
16216sed 's/^/| /' conftest.$ac_ext >&5
16217
16218ac_lo=`expr '(' $ac_mid ')' + 1`
16219fi
32ddf007 16220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16221done
16222case $ac_lo in
16223?*) ac_cv_sizeof_long=$ac_lo;;
16224'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16225See \`config.log' for more details." >&5
16226echo "$as_me: error: cannot compute sizeof (long), 77
16227See \`config.log' for more details." >&2;}
16228 { (exit 1); exit 1; }; } ;;
16229esac
247f5006 16230else
e6cc62c6
VS
16231 if test "$cross_compiling" = yes; then
16232 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16233See \`config.log' for more details." >&5
16234echo "$as_me: error: cannot run test program while cross compiling
16235See \`config.log' for more details." >&2;}
16236 { (exit 1); exit 1; }; }
16237else
16238 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16239/* confdefs.h. */
16240_ACEOF
16241cat confdefs.h >>conftest.$ac_ext
16242cat >>conftest.$ac_ext <<_ACEOF
16243/* end confdefs.h. */
16244$ac_includes_default
16245long longval () { return (long) (sizeof (long)); }
16246unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 16247#include <stdio.h>
e6cc62c6
VS
16248#include <stdlib.h>
16249int
16250main ()
247f5006 16251{
e6cc62c6
VS
16252
16253 FILE *f = fopen ("conftest.val", "w");
16254 if (! f)
16255 exit (1);
16256 if (((long) (sizeof (long))) < 0)
16257 {
16258 long i = longval ();
16259 if (i != ((long) (sizeof (long))))
16260 exit (1);
16261 fprintf (f, "%ld\n", i);
16262 }
16263 else
16264 {
16265 unsigned long i = ulongval ();
16266 if (i != ((long) (sizeof (long))))
16267 exit (1);
16268 fprintf (f, "%lu\n", i);
16269 }
16270 exit (ferror (f) || fclose (f) != 0);
16271
16272 ;
16273 return 0;
247f5006 16274}
e6cc62c6
VS
16275_ACEOF
16276rm -f conftest$ac_exeext
16277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16278 (eval $ac_link) 2>&5
16279 ac_status=$?
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 (eval $ac_try) 2>&5
16284 ac_status=$?
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); }; }; then
16287 ac_cv_sizeof_long=`cat conftest.val`
16288else
16289 echo "$as_me: program exited with status $ac_status" >&5
16290echo "$as_me: failed program was:" >&5
16291sed 's/^/| /' conftest.$ac_ext >&5
16292
16293( exit $ac_status )
16294{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16295See \`config.log' for more details." >&5
16296echo "$as_me: error: cannot compute sizeof (long), 77
16297See \`config.log' for more details." >&2;}
16298 { (exit 1); exit 1; }; }
16299fi
32ddf007 16300rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16301fi
16302fi
16303rm -f conftest.val
247f5006 16304else
a0b9e27f 16305 ac_cv_sizeof_long=0
247f5006 16306fi
247f5006 16307fi
e6cc62c6
VS
16308echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16309echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16310cat >>confdefs.h <<_ACEOF
a0b9e27f 16311#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 16312_ACEOF
247f5006 16313
a0b9e27f 16314
ecfd48ca
VZ
16315echo "$as_me:$LINENO: checking for size_t" >&5
16316echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16317if test "${ac_cv_type_size_t+set}" = set; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16319else
16320 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16321/* confdefs.h. */
16322_ACEOF
16323cat confdefs.h >>conftest.$ac_ext
16324cat >>conftest.$ac_ext <<_ACEOF
16325/* end confdefs.h. */
16326$ac_includes_default
16327int
16328main ()
16329{
16330if ((size_t *) 0)
16331 return 0;
16332if (sizeof (size_t))
16333 return 0;
16334 ;
16335 return 0;
16336}
16337_ACEOF
16338rm -f conftest.$ac_objext
16339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16340 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16341 ac_status=$?
32ddf007
VS
16342 grep -v '^ *+' conftest.er1 >conftest.err
16343 rm -f conftest.er1
16344 cat conftest.err >&5
ecfd48ca
VZ
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } &&
32ddf007
VS
16347 { ac_try='test -z "$ac_c_werror_flag"
16348 || test ! -s conftest.err'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; } &&
16354 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16356 (eval $ac_try) 2>&5
16357 ac_status=$?
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); }; }; then
16360 ac_cv_type_size_t=yes
16361else
16362 echo "$as_me: failed program was:" >&5
16363sed 's/^/| /' conftest.$ac_ext >&5
16364
16365ac_cv_type_size_t=no
16366fi
32ddf007 16367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16368fi
16369echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16370echo "${ECHO_T}$ac_cv_type_size_t" >&6
16371
16372echo "$as_me:$LINENO: checking size of size_t" >&5
16373echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16374if test "${ac_cv_sizeof_size_t+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16376else
16377 if test "$ac_cv_type_size_t" = yes; then
16378 # The cast to unsigned long works around a bug in the HP C Compiler
16379 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16380 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16381 # This bug is HP SR number 8606223364.
16382 if test "$cross_compiling" = yes; then
16383 # Depending upon the size, compute the lo and hi bounds.
16384cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16385/* confdefs.h. */
16386_ACEOF
16387cat confdefs.h >>conftest.$ac_ext
16388cat >>conftest.$ac_ext <<_ACEOF
16389/* end confdefs.h. */
16390$ac_includes_default
16391int
16392main ()
16393{
16394static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16395test_array [0] = 0
16396
16397 ;
16398 return 0;
16399}
16400_ACEOF
16401rm -f conftest.$ac_objext
16402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16403 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16404 ac_status=$?
32ddf007
VS
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
ecfd48ca
VZ
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } &&
32ddf007
VS
16410 { ac_try='test -z "$ac_c_werror_flag"
16411 || test ! -s conftest.err'
16412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16413 (eval $ac_try) 2>&5
16414 ac_status=$?
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); }; } &&
16417 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; }; then
16423 ac_lo=0 ac_mid=0
16424 while :; do
16425 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16426/* confdefs.h. */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
16430/* end confdefs.h. */
16431$ac_includes_default
16432int
16433main ()
16434{
16435static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16436test_array [0] = 0
16437
16438 ;
16439 return 0;
16440}
16441_ACEOF
16442rm -f conftest.$ac_objext
16443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16444 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16445 ac_status=$?
32ddf007
VS
16446 grep -v '^ *+' conftest.er1 >conftest.err
16447 rm -f conftest.er1
16448 cat conftest.err >&5
ecfd48ca
VZ
16449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450 (exit $ac_status); } &&
32ddf007
VS
16451 { ac_try='test -z "$ac_c_werror_flag"
16452 || test ! -s conftest.err'
16453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16454 (eval $ac_try) 2>&5
16455 ac_status=$?
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); }; } &&
16458 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16461 ac_status=$?
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; }; then
16464 ac_hi=$ac_mid; break
16465else
16466 echo "$as_me: failed program was:" >&5
16467sed 's/^/| /' conftest.$ac_ext >&5
16468
16469ac_lo=`expr $ac_mid + 1`
32ddf007
VS
16470 if test $ac_lo -le $ac_mid; then
16471 ac_lo= ac_hi=
16472 break
16473 fi
16474 ac_mid=`expr 2 '*' $ac_mid + 1`
ecfd48ca 16475fi
32ddf007 16476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16477 done
16478else
16479 echo "$as_me: failed program was:" >&5
16480sed 's/^/| /' conftest.$ac_ext >&5
16481
16482cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16483/* confdefs.h. */
16484_ACEOF
16485cat confdefs.h >>conftest.$ac_ext
16486cat >>conftest.$ac_ext <<_ACEOF
16487/* end confdefs.h. */
16488$ac_includes_default
16489int
16490main ()
16491{
16492static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16493test_array [0] = 0
16494
16495 ;
16496 return 0;
16497}
16498_ACEOF
16499rm -f conftest.$ac_objext
16500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16501 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16502 ac_status=$?
32ddf007
VS
16503 grep -v '^ *+' conftest.er1 >conftest.err
16504 rm -f conftest.er1
16505 cat conftest.err >&5
ecfd48ca
VZ
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); } &&
32ddf007
VS
16508 { ac_try='test -z "$ac_c_werror_flag"
16509 || test ! -s conftest.err'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16512 ac_status=$?
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; } &&
16515 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16517 (eval $ac_try) 2>&5
16518 ac_status=$?
16519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520 (exit $ac_status); }; }; then
16521 ac_hi=-1 ac_mid=-1
16522 while :; do
16523 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16524/* confdefs.h. */
16525_ACEOF
16526cat confdefs.h >>conftest.$ac_ext
16527cat >>conftest.$ac_ext <<_ACEOF
16528/* end confdefs.h. */
16529$ac_includes_default
16530int
16531main ()
16532{
16533static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16534test_array [0] = 0
16535
16536 ;
16537 return 0;
16538}
16539_ACEOF
16540rm -f conftest.$ac_objext
16541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16542 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16543 ac_status=$?
32ddf007
VS
16544 grep -v '^ *+' conftest.er1 >conftest.err
16545 rm -f conftest.er1
16546 cat conftest.err >&5
ecfd48ca
VZ
16547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16548 (exit $ac_status); } &&
32ddf007
VS
16549 { ac_try='test -z "$ac_c_werror_flag"
16550 || test ! -s conftest.err'
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16553 ac_status=$?
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; } &&
16556 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16558 (eval $ac_try) 2>&5
16559 ac_status=$?
16560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); }; }; then
16562 ac_lo=$ac_mid; break
16563else
16564 echo "$as_me: failed program was:" >&5
16565sed 's/^/| /' conftest.$ac_ext >&5
16566
16567ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
16568 if test $ac_mid -le $ac_hi; then
16569 ac_lo= ac_hi=
16570 break
16571 fi
16572 ac_mid=`expr 2 '*' $ac_mid`
ecfd48ca 16573fi
32ddf007 16574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16575 done
16576else
16577 echo "$as_me: failed program was:" >&5
16578sed 's/^/| /' conftest.$ac_ext >&5
16579
16580ac_lo= ac_hi=
16581fi
32ddf007 16582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca 16583fi
32ddf007 16584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16585# Binary search between lo and hi bounds.
16586while test "x$ac_lo" != "x$ac_hi"; do
16587 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16588 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16589/* confdefs.h. */
16590_ACEOF
16591cat confdefs.h >>conftest.$ac_ext
16592cat >>conftest.$ac_ext <<_ACEOF
16593/* end confdefs.h. */
16594$ac_includes_default
16595int
16596main ()
16597{
16598static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16599test_array [0] = 0
16600
16601 ;
16602 return 0;
16603}
16604_ACEOF
16605rm -f conftest.$ac_objext
16606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16607 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16608 ac_status=$?
32ddf007
VS
16609 grep -v '^ *+' conftest.er1 >conftest.err
16610 rm -f conftest.er1
16611 cat conftest.err >&5
ecfd48ca
VZ
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } &&
32ddf007
VS
16614 { ac_try='test -z "$ac_c_werror_flag"
16615 || test ! -s conftest.err'
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16618 ac_status=$?
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; } &&
16621 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16623 (eval $ac_try) 2>&5
16624 ac_status=$?
16625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626 (exit $ac_status); }; }; then
16627 ac_hi=$ac_mid
16628else
16629 echo "$as_me: failed program was:" >&5
16630sed 's/^/| /' conftest.$ac_ext >&5
16631
16632ac_lo=`expr '(' $ac_mid ')' + 1`
16633fi
32ddf007 16634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16635done
16636case $ac_lo in
16637?*) ac_cv_sizeof_size_t=$ac_lo;;
16638'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16639See \`config.log' for more details." >&5
16640echo "$as_me: error: cannot compute sizeof (size_t), 77
16641See \`config.log' for more details." >&2;}
16642 { (exit 1); exit 1; }; } ;;
16643esac
16644else
16645 if test "$cross_compiling" = yes; then
16646 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16647See \`config.log' for more details." >&5
16648echo "$as_me: error: cannot run test program while cross compiling
16649See \`config.log' for more details." >&2;}
16650 { (exit 1); exit 1; }; }
16651else
16652 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16653/* confdefs.h. */
16654_ACEOF
16655cat confdefs.h >>conftest.$ac_ext
16656cat >>conftest.$ac_ext <<_ACEOF
16657/* end confdefs.h. */
16658$ac_includes_default
16659long longval () { return (long) (sizeof (size_t)); }
16660unsigned long ulongval () { return (long) (sizeof (size_t)); }
16661#include <stdio.h>
16662#include <stdlib.h>
16663int
16664main ()
16665{
16666
16667 FILE *f = fopen ("conftest.val", "w");
16668 if (! f)
16669 exit (1);
16670 if (((long) (sizeof (size_t))) < 0)
16671 {
16672 long i = longval ();
16673 if (i != ((long) (sizeof (size_t))))
16674 exit (1);
16675 fprintf (f, "%ld\n", i);
16676 }
16677 else
16678 {
16679 unsigned long i = ulongval ();
16680 if (i != ((long) (sizeof (size_t))))
16681 exit (1);
16682 fprintf (f, "%lu\n", i);
16683 }
16684 exit (ferror (f) || fclose (f) != 0);
16685
16686 ;
16687 return 0;
16688}
16689_ACEOF
16690rm -f conftest$ac_exeext
16691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16692 (eval $ac_link) 2>&5
16693 ac_status=$?
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16697 (eval $ac_try) 2>&5
16698 ac_status=$?
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); }; }; then
16701 ac_cv_sizeof_size_t=`cat conftest.val`
16702else
16703 echo "$as_me: program exited with status $ac_status" >&5
16704echo "$as_me: failed program was:" >&5
16705sed 's/^/| /' conftest.$ac_ext >&5
16706
16707( exit $ac_status )
16708{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16709See \`config.log' for more details." >&5
16710echo "$as_me: error: cannot compute sizeof (size_t), 77
16711See \`config.log' for more details." >&2;}
16712 { (exit 1); exit 1; }; }
16713fi
32ddf007 16714rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16715fi
16716fi
16717rm -f conftest.val
16718else
16719 ac_cv_sizeof_size_t=0
16720fi
16721fi
16722echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16723echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16724cat >>confdefs.h <<_ACEOF
16725#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16726_ACEOF
16727
16728
a0b9e27f
MB
16729
16730case "${host}" in
16731 arm-*-linux* )
e6cc62c6
VS
16732 echo "$as_me:$LINENO: checking for long long" >&5
16733echo $ECHO_N "checking for long long... $ECHO_C" >&6
16734if test "${ac_cv_type_long_long+set}" = set; then
16735 echo $ECHO_N "(cached) $ECHO_C" >&6
16736else
16737 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16738/* confdefs.h. */
16739_ACEOF
16740cat confdefs.h >>conftest.$ac_ext
16741cat >>conftest.$ac_ext <<_ACEOF
16742/* end confdefs.h. */
16743$ac_includes_default
16744int
16745main ()
16746{
16747if ((long long *) 0)
16748 return 0;
16749if (sizeof (long long))
16750 return 0;
16751 ;
16752 return 0;
16753}
16754_ACEOF
16755rm -f conftest.$ac_objext
16756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16757 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16758 ac_status=$?
32ddf007
VS
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
e6cc62c6
VS
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
32ddf007
VS
16764 { ac_try='test -z "$ac_c_werror_flag"
16765 || test ! -s conftest.err'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 ac_cv_type_long_long=yes
16778else
16779 echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782ac_cv_type_long_long=no
16783fi
32ddf007 16784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16785fi
16786echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16787echo "${ECHO_T}$ac_cv_type_long_long" >&6
16788
16789echo "$as_me:$LINENO: checking size of long long" >&5
16790echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16791if test "${ac_cv_sizeof_long_long+set}" = set; then
16792 echo $ECHO_N "(cached) $ECHO_C" >&6
16793else
16794 if test "$ac_cv_type_long_long" = yes; then
16795 # The cast to unsigned long works around a bug in the HP C Compiler
16796 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16797 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16798 # This bug is HP SR number 8606223364.
a0b9e27f 16799 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16800 # Depending upon the size, compute the lo and hi bounds.
16801cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16802/* confdefs.h. */
16803_ACEOF
16804cat confdefs.h >>conftest.$ac_ext
16805cat >>conftest.$ac_ext <<_ACEOF
16806/* end confdefs.h. */
16807$ac_includes_default
16808int
16809main ()
16810{
16811static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16812test_array [0] = 0
16813
16814 ;
16815 return 0;
16816}
16817_ACEOF
16818rm -f conftest.$ac_objext
16819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16820 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16821 ac_status=$?
32ddf007
VS
16822 grep -v '^ *+' conftest.er1 >conftest.err
16823 rm -f conftest.er1
16824 cat conftest.err >&5
e6cc62c6
VS
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); } &&
32ddf007
VS
16827 { ac_try='test -z "$ac_c_werror_flag"
16828 || test ! -s conftest.err'
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; } &&
16834 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
16840 ac_lo=0 ac_mid=0
16841 while :; do
16842 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16843/* confdefs.h. */
16844_ACEOF
16845cat confdefs.h >>conftest.$ac_ext
16846cat >>conftest.$ac_ext <<_ACEOF
16847/* end confdefs.h. */
16848$ac_includes_default
16849int
16850main ()
16851{
16852static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16853test_array [0] = 0
16854
16855 ;
16856 return 0;
16857}
16858_ACEOF
16859rm -f conftest.$ac_objext
16860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16861 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16862 ac_status=$?
32ddf007
VS
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
e6cc62c6
VS
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
32ddf007
VS
16868 { ac_try='test -z "$ac_c_werror_flag"
16869 || test ! -s conftest.err'
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; } &&
16875 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16877 (eval $ac_try) 2>&5
16878 ac_status=$?
16879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16880 (exit $ac_status); }; }; then
16881 ac_hi=$ac_mid; break
16882else
16883 echo "$as_me: failed program was:" >&5
16884sed 's/^/| /' conftest.$ac_ext >&5
16885
16886ac_lo=`expr $ac_mid + 1`
32ddf007
VS
16887 if test $ac_lo -le $ac_mid; then
16888 ac_lo= ac_hi=
16889 break
16890 fi
16891 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16892fi
32ddf007 16893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16894 done
16895else
16896 echo "$as_me: failed program was:" >&5
16897sed 's/^/| /' conftest.$ac_ext >&5
16898
16899cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16900/* confdefs.h. */
16901_ACEOF
16902cat confdefs.h >>conftest.$ac_ext
16903cat >>conftest.$ac_ext <<_ACEOF
16904/* end confdefs.h. */
16905$ac_includes_default
16906int
16907main ()
16908{
16909static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16910test_array [0] = 0
16911
16912 ;
16913 return 0;
16914}
16915_ACEOF
16916rm -f conftest.$ac_objext
16917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16918 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16919 ac_status=$?
32ddf007
VS
16920 grep -v '^ *+' conftest.er1 >conftest.err
16921 rm -f conftest.er1
16922 cat conftest.err >&5
e6cc62c6
VS
16923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16924 (exit $ac_status); } &&
32ddf007
VS
16925 { ac_try='test -z "$ac_c_werror_flag"
16926 || test ! -s conftest.err'
16927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; } &&
16932 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16934 (eval $ac_try) 2>&5
16935 ac_status=$?
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; }; then
16938 ac_hi=-1 ac_mid=-1
16939 while :; do
16940 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16941/* confdefs.h. */
16942_ACEOF
16943cat confdefs.h >>conftest.$ac_ext
16944cat >>conftest.$ac_ext <<_ACEOF
16945/* end confdefs.h. */
16946$ac_includes_default
16947int
16948main ()
16949{
16950static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16951test_array [0] = 0
16952
16953 ;
16954 return 0;
16955}
16956_ACEOF
16957rm -f conftest.$ac_objext
16958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 16959 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16960 ac_status=$?
32ddf007
VS
16961 grep -v '^ *+' conftest.er1 >conftest.err
16962 rm -f conftest.er1
16963 cat conftest.err >&5
e6cc62c6
VS
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); } &&
32ddf007
VS
16966 { ac_try='test -z "$ac_c_werror_flag"
16967 || test ! -s conftest.err'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16975 (eval $ac_try) 2>&5
16976 ac_status=$?
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); }; }; then
16979 ac_lo=$ac_mid; break
16980else
16981 echo "$as_me: failed program was:" >&5
16982sed 's/^/| /' conftest.$ac_ext >&5
16983
16984ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
16985 if test $ac_mid -le $ac_hi; then
16986 ac_lo= ac_hi=
16987 break
16988 fi
16989 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16990fi
32ddf007 16991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16992 done
16993else
16994 echo "$as_me: failed program was:" >&5
16995sed 's/^/| /' conftest.$ac_ext >&5
16996
16997ac_lo= ac_hi=
16998fi
32ddf007 16999rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17000fi
32ddf007 17001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17002# Binary search between lo and hi bounds.
17003while test "x$ac_lo" != "x$ac_hi"; do
17004 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17005 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17006/* confdefs.h. */
17007_ACEOF
17008cat confdefs.h >>conftest.$ac_ext
17009cat >>conftest.$ac_ext <<_ACEOF
17010/* end confdefs.h. */
17011$ac_includes_default
17012int
17013main ()
17014{
17015static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17016test_array [0] = 0
17017
17018 ;
17019 return 0;
17020}
17021_ACEOF
17022rm -f conftest.$ac_objext
17023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17024 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17025 ac_status=$?
32ddf007
VS
17026 grep -v '^ *+' conftest.er1 >conftest.err
17027 rm -f conftest.er1
17028 cat conftest.err >&5
e6cc62c6
VS
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); } &&
32ddf007
VS
17031 { ac_try='test -z "$ac_c_werror_flag"
17032 || test ! -s conftest.err'
17033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17034 (eval $ac_try) 2>&5
17035 ac_status=$?
17036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17037 (exit $ac_status); }; } &&
17038 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17040 (eval $ac_try) 2>&5
17041 ac_status=$?
17042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17043 (exit $ac_status); }; }; then
17044 ac_hi=$ac_mid
17045else
17046 echo "$as_me: failed program was:" >&5
17047sed 's/^/| /' conftest.$ac_ext >&5
17048
17049ac_lo=`expr '(' $ac_mid ')' + 1`
17050fi
32ddf007 17051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17052done
17053case $ac_lo in
17054?*) ac_cv_sizeof_long_long=$ac_lo;;
17055'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17056See \`config.log' for more details." >&5
17057echo "$as_me: error: cannot compute sizeof (long long), 77
17058See \`config.log' for more details." >&2;}
17059 { (exit 1); exit 1; }; } ;;
17060esac
a0b9e27f 17061else
e6cc62c6
VS
17062 if test "$cross_compiling" = yes; then
17063 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17064See \`config.log' for more details." >&5
17065echo "$as_me: error: cannot run test program while cross compiling
17066See \`config.log' for more details." >&2;}
17067 { (exit 1); exit 1; }; }
17068else
17069 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17070/* confdefs.h. */
17071_ACEOF
17072cat confdefs.h >>conftest.$ac_ext
17073cat >>conftest.$ac_ext <<_ACEOF
17074/* end confdefs.h. */
17075$ac_includes_default
17076long longval () { return (long) (sizeof (long long)); }
17077unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 17078#include <stdio.h>
e6cc62c6
VS
17079#include <stdlib.h>
17080int
17081main ()
247f5006 17082{
e6cc62c6
VS
17083
17084 FILE *f = fopen ("conftest.val", "w");
17085 if (! f)
17086 exit (1);
17087 if (((long) (sizeof (long long))) < 0)
17088 {
17089 long i = longval ();
17090 if (i != ((long) (sizeof (long long))))
17091 exit (1);
17092 fprintf (f, "%ld\n", i);
17093 }
17094 else
17095 {
17096 unsigned long i = ulongval ();
17097 if (i != ((long) (sizeof (long long))))
17098 exit (1);
17099 fprintf (f, "%lu\n", i);
17100 }
17101 exit (ferror (f) || fclose (f) != 0);
17102
17103 ;
17104 return 0;
247f5006 17105}
e6cc62c6
VS
17106_ACEOF
17107rm -f conftest$ac_exeext
17108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17109 (eval $ac_link) 2>&5
17110 ac_status=$?
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17114 (eval $ac_try) 2>&5
17115 ac_status=$?
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; }; then
17118 ac_cv_sizeof_long_long=`cat conftest.val`
17119else
17120 echo "$as_me: program exited with status $ac_status" >&5
17121echo "$as_me: failed program was:" >&5
17122sed 's/^/| /' conftest.$ac_ext >&5
17123
17124( exit $ac_status )
17125{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17126See \`config.log' for more details." >&5
17127echo "$as_me: error: cannot compute sizeof (long long), 77
17128See \`config.log' for more details." >&2;}
17129 { (exit 1); exit 1; }; }
17130fi
32ddf007 17131rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17132fi
17133fi
17134rm -f conftest.val
7b4a847f 17135else
a0b9e27f 17136 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
17137fi
17138fi
e6cc62c6
VS
17139echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17140echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17141cat >>confdefs.h <<_ACEOF
17142#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17143_ACEOF
17144
17145
17146 ;;
17147 *-hp-hpux* )
17148 echo "$as_me:$LINENO: checking for long long" >&5
17149echo $ECHO_N "checking for long long... $ECHO_C" >&6
17150if test "${ac_cv_type_long_long+set}" = set; then
17151 echo $ECHO_N "(cached) $ECHO_C" >&6
17152else
17153 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17154/* confdefs.h. */
17155_ACEOF
17156cat confdefs.h >>conftest.$ac_ext
17157cat >>conftest.$ac_ext <<_ACEOF
17158/* end confdefs.h. */
17159$ac_includes_default
17160int
17161main ()
17162{
17163if ((long long *) 0)
17164 return 0;
17165if (sizeof (long long))
17166 return 0;
17167 ;
17168 return 0;
17169}
17170_ACEOF
17171rm -f conftest.$ac_objext
17172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17173 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17174 ac_status=$?
32ddf007
VS
17175 grep -v '^ *+' conftest.er1 >conftest.err
17176 rm -f conftest.er1
17177 cat conftest.err >&5
e6cc62c6
VS
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); } &&
32ddf007
VS
17180 { ac_try='test -z "$ac_c_werror_flag"
17181 || test ! -s conftest.err'
17182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17183 (eval $ac_try) 2>&5
17184 ac_status=$?
17185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17186 (exit $ac_status); }; } &&
17187 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; }; then
17193 ac_cv_type_long_long=yes
17194else
17195 echo "$as_me: failed program was:" >&5
17196sed 's/^/| /' conftest.$ac_ext >&5
17197
17198ac_cv_type_long_long=no
17199fi
32ddf007 17200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17201fi
17202echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17203echo "${ECHO_T}$ac_cv_type_long_long" >&6
17204
17205echo "$as_me:$LINENO: checking size of long long" >&5
17206echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17207if test "${ac_cv_sizeof_long_long+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209else
17210 if test "$ac_cv_type_long_long" = yes; then
17211 # The cast to unsigned long works around a bug in the HP C Compiler
17212 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17213 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17214 # This bug is HP SR number 8606223364.
17215 if test "$cross_compiling" = yes; then
17216 # Depending upon the size, compute the lo and hi bounds.
17217cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
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 (long long))) >= 0)];
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
32ddf007 17236 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17237 ac_status=$?
32ddf007
VS
17238 grep -v '^ *+' conftest.er1 >conftest.err
17239 rm -f conftest.er1
17240 cat conftest.err >&5
e6cc62c6
VS
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
32ddf007
VS
17243 { ac_try='test -z "$ac_c_werror_flag"
17244 || test ! -s conftest.err'
17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17246 (eval $ac_try) 2>&5
17247 ac_status=$?
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; } &&
17250 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17252 (eval $ac_try) 2>&5
17253 ac_status=$?
17254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); }; }; then
17256 ac_lo=0 ac_mid=0
17257 while :; do
17258 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17259/* confdefs.h. */
17260_ACEOF
17261cat confdefs.h >>conftest.$ac_ext
17262cat >>conftest.$ac_ext <<_ACEOF
17263/* end confdefs.h. */
17264$ac_includes_default
17265int
17266main ()
17267{
17268static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17269test_array [0] = 0
8284b0c5 17270
e6cc62c6
VS
17271 ;
17272 return 0;
17273}
17274_ACEOF
17275rm -f conftest.$ac_objext
17276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17277 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17278 ac_status=$?
32ddf007
VS
17279 grep -v '^ *+' conftest.er1 >conftest.err
17280 rm -f conftest.er1
17281 cat conftest.err >&5
e6cc62c6
VS
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); } &&
32ddf007
VS
17284 { ac_try='test -z "$ac_c_werror_flag"
17285 || test ! -s conftest.err'
17286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17287 (eval $ac_try) 2>&5
17288 ac_status=$?
17289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); }; } &&
17291 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; }; then
17297 ac_hi=$ac_mid; break
17298else
17299 echo "$as_me: failed program was:" >&5
17300sed 's/^/| /' conftest.$ac_ext >&5
17301
17302ac_lo=`expr $ac_mid + 1`
32ddf007
VS
17303 if test $ac_lo -le $ac_mid; then
17304 ac_lo= ac_hi=
17305 break
17306 fi
17307 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 17308fi
32ddf007 17309rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17310 done
17311else
17312 echo "$as_me: failed program was:" >&5
17313sed 's/^/| /' conftest.$ac_ext >&5
17314
17315cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17316/* confdefs.h. */
17317_ACEOF
17318cat confdefs.h >>conftest.$ac_ext
17319cat >>conftest.$ac_ext <<_ACEOF
17320/* end confdefs.h. */
17321$ac_includes_default
17322int
17323main ()
17324{
17325static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17326test_array [0] = 0
a0b9e27f 17327
e6cc62c6
VS
17328 ;
17329 return 0;
17330}
17331_ACEOF
17332rm -f conftest.$ac_objext
17333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17334 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17335 ac_status=$?
32ddf007
VS
17336 grep -v '^ *+' conftest.er1 >conftest.err
17337 rm -f conftest.er1
17338 cat conftest.err >&5
e6cc62c6
VS
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
32ddf007
VS
17341 { ac_try='test -z "$ac_c_werror_flag"
17342 || test ! -s conftest.err'
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 ac_hi=-1 ac_mid=-1
17355 while :; do
17356 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17357/* confdefs.h. */
17358_ACEOF
17359cat confdefs.h >>conftest.$ac_ext
17360cat >>conftest.$ac_ext <<_ACEOF
17361/* end confdefs.h. */
17362$ac_includes_default
17363int
17364main ()
17365{
17366static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17367test_array [0] = 0
a0b9e27f 17368
e6cc62c6
VS
17369 ;
17370 return 0;
17371}
17372_ACEOF
17373rm -f conftest.$ac_objext
17374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17375 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17376 ac_status=$?
32ddf007
VS
17377 grep -v '^ *+' conftest.er1 >conftest.err
17378 rm -f conftest.er1
17379 cat conftest.err >&5
e6cc62c6
VS
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } &&
32ddf007
VS
17382 { ac_try='test -z "$ac_c_werror_flag"
17383 || test ! -s conftest.err'
17384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17385 (eval $ac_try) 2>&5
17386 ac_status=$?
17387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); }; } &&
17389 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; }; then
17395 ac_lo=$ac_mid; break
17396else
17397 echo "$as_me: failed program was:" >&5
17398sed 's/^/| /' conftest.$ac_ext >&5
17399
17400ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
17401 if test $ac_mid -le $ac_hi; then
17402 ac_lo= ac_hi=
17403 break
17404 fi
17405 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 17406fi
32ddf007 17407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17408 done
8284b0c5 17409else
e6cc62c6
VS
17410 echo "$as_me: failed program was:" >&5
17411sed 's/^/| /' conftest.$ac_ext >&5
17412
17413ac_lo= ac_hi=
17414fi
32ddf007 17415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17416fi
32ddf007 17417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17418# Binary search between lo and hi bounds.
17419while test "x$ac_lo" != "x$ac_hi"; do
17420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17421 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17422/* confdefs.h. */
17423_ACEOF
17424cat confdefs.h >>conftest.$ac_ext
17425cat >>conftest.$ac_ext <<_ACEOF
17426/* end confdefs.h. */
17427$ac_includes_default
17428int
17429main ()
17430{
17431static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17432test_array [0] = 0
17433
17434 ;
17435 return 0;
17436}
17437_ACEOF
17438rm -f conftest.$ac_objext
17439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17440 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17441 ac_status=$?
32ddf007
VS
17442 grep -v '^ *+' conftest.er1 >conftest.err
17443 rm -f conftest.er1
17444 cat conftest.err >&5
e6cc62c6
VS
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); } &&
32ddf007
VS
17447 { ac_try='test -z "$ac_c_werror_flag"
17448 || test ! -s conftest.err'
17449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17450 (eval $ac_try) 2>&5
17451 ac_status=$?
17452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453 (exit $ac_status); }; } &&
17454 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17457 ac_status=$?
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; }; then
17460 ac_hi=$ac_mid
17461else
17462 echo "$as_me: failed program was:" >&5
17463sed 's/^/| /' conftest.$ac_ext >&5
17464
17465ac_lo=`expr '(' $ac_mid ')' + 1`
17466fi
32ddf007 17467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17468done
17469case $ac_lo in
17470?*) ac_cv_sizeof_long_long=$ac_lo;;
17471'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17472See \`config.log' for more details." >&5
17473echo "$as_me: error: cannot compute sizeof (long long), 77
17474See \`config.log' for more details." >&2;}
17475 { (exit 1); exit 1; }; } ;;
17476esac
8284b0c5 17477else
e6cc62c6
VS
17478 if test "$cross_compiling" = yes; then
17479 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17480See \`config.log' for more details." >&5
17481echo "$as_me: error: cannot run test program while cross compiling
17482See \`config.log' for more details." >&2;}
17483 { (exit 1); exit 1; }; }
17484else
17485 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17486/* confdefs.h. */
17487_ACEOF
17488cat confdefs.h >>conftest.$ac_ext
17489cat >>conftest.$ac_ext <<_ACEOF
17490/* end confdefs.h. */
17491$ac_includes_default
17492long longval () { return (long) (sizeof (long long)); }
17493unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 17494#include <stdio.h>
e6cc62c6
VS
17495#include <stdlib.h>
17496int
17497main ()
8284b0c5 17498{
e6cc62c6
VS
17499
17500 FILE *f = fopen ("conftest.val", "w");
17501 if (! f)
17502 exit (1);
17503 if (((long) (sizeof (long long))) < 0)
17504 {
17505 long i = longval ();
17506 if (i != ((long) (sizeof (long long))))
17507 exit (1);
17508 fprintf (f, "%ld\n", i);
17509 }
17510 else
17511 {
17512 unsigned long i = ulongval ();
17513 if (i != ((long) (sizeof (long long))))
17514 exit (1);
17515 fprintf (f, "%lu\n", i);
17516 }
17517 exit (ferror (f) || fclose (f) != 0);
17518
17519 ;
17520 return 0;
8284b0c5 17521}
e6cc62c6
VS
17522_ACEOF
17523rm -f conftest$ac_exeext
17524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17525 (eval $ac_link) 2>&5
17526 ac_status=$?
17527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17531 ac_status=$?
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; }; then
17534 ac_cv_sizeof_long_long=`cat conftest.val`
17535else
17536 echo "$as_me: program exited with status $ac_status" >&5
17537echo "$as_me: failed program was:" >&5
17538sed 's/^/| /' conftest.$ac_ext >&5
17539
17540( exit $ac_status )
17541{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17542See \`config.log' for more details." >&5
17543echo "$as_me: error: cannot compute sizeof (long long), 77
17544See \`config.log' for more details." >&2;}
17545 { (exit 1); exit 1; }; }
17546fi
32ddf007 17547rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17548fi
17549fi
17550rm -f conftest.val
5c6fa7d2
RR
17551else
17552 ac_cv_sizeof_long_long=0
52127426 17553fi
4f57cf11 17554fi
e6cc62c6
VS
17555echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17556echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17557cat >>confdefs.h <<_ACEOF
4f57cf11 17558#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17559_ACEOF
4f57cf11
GD
17560
17561
17562 if test "$ac_cv_sizeof_long_long" != "0"; then
17563 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17564 fi
17565 ;;
17566 * )
e6cc62c6
VS
17567 echo "$as_me:$LINENO: checking for long long" >&5
17568echo $ECHO_N "checking for long long... $ECHO_C" >&6
17569if test "${ac_cv_type_long_long+set}" = set; then
17570 echo $ECHO_N "(cached) $ECHO_C" >&6
17571else
17572 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17573/* confdefs.h. */
17574_ACEOF
17575cat confdefs.h >>conftest.$ac_ext
17576cat >>conftest.$ac_ext <<_ACEOF
17577/* end confdefs.h. */
17578$ac_includes_default
17579int
17580main ()
17581{
17582if ((long long *) 0)
17583 return 0;
17584if (sizeof (long long))
17585 return 0;
17586 ;
17587 return 0;
17588}
17589_ACEOF
17590rm -f conftest.$ac_objext
17591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17592 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17593 ac_status=$?
32ddf007
VS
17594 grep -v '^ *+' conftest.er1 >conftest.err
17595 rm -f conftest.er1
17596 cat conftest.err >&5
e6cc62c6
VS
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); } &&
32ddf007
VS
17599 { ac_try='test -z "$ac_c_werror_flag"
17600 || test ! -s conftest.err'
17601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17602 (eval $ac_try) 2>&5
17603 ac_status=$?
17604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17605 (exit $ac_status); }; } &&
17606 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17608 (eval $ac_try) 2>&5
17609 ac_status=$?
17610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17611 (exit $ac_status); }; }; then
17612 ac_cv_type_long_long=yes
17613else
17614 echo "$as_me: failed program was:" >&5
17615sed 's/^/| /' conftest.$ac_ext >&5
17616
17617ac_cv_type_long_long=no
17618fi
32ddf007 17619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17620fi
17621echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17622echo "${ECHO_T}$ac_cv_type_long_long" >&6
17623
17624echo "$as_me:$LINENO: checking size of long long" >&5
17625echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17626if test "${ac_cv_sizeof_long_long+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
17628else
17629 if test "$ac_cv_type_long_long" = yes; then
17630 # The cast to unsigned long works around a bug in the HP C Compiler
17631 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17632 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17633 # This bug is HP SR number 8606223364.
4f57cf11 17634 if test "$cross_compiling" = yes; then
e6cc62c6
VS
17635 # Depending upon the size, compute the lo and hi bounds.
17636cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17637/* confdefs.h. */
17638_ACEOF
17639cat confdefs.h >>conftest.$ac_ext
17640cat >>conftest.$ac_ext <<_ACEOF
17641/* end confdefs.h. */
17642$ac_includes_default
17643int
17644main ()
17645{
17646static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17647test_array [0] = 0
17648
17649 ;
17650 return 0;
17651}
17652_ACEOF
17653rm -f conftest.$ac_objext
17654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17655 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17656 ac_status=$?
32ddf007
VS
17657 grep -v '^ *+' conftest.er1 >conftest.err
17658 rm -f conftest.er1
17659 cat conftest.err >&5
e6cc62c6
VS
17660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661 (exit $ac_status); } &&
32ddf007
VS
17662 { ac_try='test -z "$ac_c_werror_flag"
17663 || test ! -s conftest.err'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; } &&
17669 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17671 (eval $ac_try) 2>&5
17672 ac_status=$?
17673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17674 (exit $ac_status); }; }; then
17675 ac_lo=0 ac_mid=0
17676 while :; do
17677 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17678/* confdefs.h. */
17679_ACEOF
17680cat confdefs.h >>conftest.$ac_ext
17681cat >>conftest.$ac_ext <<_ACEOF
17682/* end confdefs.h. */
17683$ac_includes_default
17684int
17685main ()
17686{
17687static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17688test_array [0] = 0
17689
17690 ;
17691 return 0;
17692}
17693_ACEOF
17694rm -f conftest.$ac_objext
17695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17696 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17697 ac_status=$?
32ddf007
VS
17698 grep -v '^ *+' conftest.er1 >conftest.err
17699 rm -f conftest.er1
17700 cat conftest.err >&5
e6cc62c6
VS
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); } &&
32ddf007
VS
17703 { ac_try='test -z "$ac_c_werror_flag"
17704 || test ! -s conftest.err'
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; } &&
17710 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17712 (eval $ac_try) 2>&5
17713 ac_status=$?
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 (exit $ac_status); }; }; then
17716 ac_hi=$ac_mid; break
17717else
17718 echo "$as_me: failed program was:" >&5
17719sed 's/^/| /' conftest.$ac_ext >&5
17720
17721ac_lo=`expr $ac_mid + 1`
32ddf007
VS
17722 if test $ac_lo -le $ac_mid; then
17723 ac_lo= ac_hi=
17724 break
17725 fi
17726 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 17727fi
32ddf007 17728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17729 done
17730else
17731 echo "$as_me: failed program was:" >&5
17732sed 's/^/| /' conftest.$ac_ext >&5
17733
17734cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17735/* confdefs.h. */
17736_ACEOF
17737cat confdefs.h >>conftest.$ac_ext
17738cat >>conftest.$ac_ext <<_ACEOF
17739/* end confdefs.h. */
17740$ac_includes_default
17741int
17742main ()
17743{
17744static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17745test_array [0] = 0
17746
17747 ;
17748 return 0;
17749}
17750_ACEOF
17751rm -f conftest.$ac_objext
17752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17753 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17754 ac_status=$?
32ddf007
VS
17755 grep -v '^ *+' conftest.er1 >conftest.err
17756 rm -f conftest.er1
17757 cat conftest.err >&5
e6cc62c6
VS
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
32ddf007
VS
17760 { ac_try='test -z "$ac_c_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_hi=-1 ac_mid=-1
17774 while :; do
17775 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17776/* confdefs.h. */
17777_ACEOF
17778cat confdefs.h >>conftest.$ac_ext
17779cat >>conftest.$ac_ext <<_ACEOF
17780/* end confdefs.h. */
17781$ac_includes_default
17782int
17783main ()
17784{
17785static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17786test_array [0] = 0
17787
17788 ;
17789 return 0;
17790}
17791_ACEOF
17792rm -f conftest.$ac_objext
17793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17794 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17795 ac_status=$?
32ddf007
VS
17796 grep -v '^ *+' conftest.er1 >conftest.err
17797 rm -f conftest.er1
17798 cat conftest.err >&5
e6cc62c6
VS
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } &&
32ddf007
VS
17801 { ac_try='test -z "$ac_c_werror_flag"
17802 || test ! -s conftest.err'
17803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17804 (eval $ac_try) 2>&5
17805 ac_status=$?
17806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807 (exit $ac_status); }; } &&
17808 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17810 (eval $ac_try) 2>&5
17811 ac_status=$?
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; }; then
17814 ac_lo=$ac_mid; break
17815else
17816 echo "$as_me: failed program was:" >&5
17817sed 's/^/| /' conftest.$ac_ext >&5
17818
17819ac_hi=`expr '(' $ac_mid ')' - 1`
32ddf007
VS
17820 if test $ac_mid -le $ac_hi; then
17821 ac_lo= ac_hi=
17822 break
17823 fi
17824 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 17825fi
32ddf007 17826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17827 done
4f57cf11 17828else
e6cc62c6
VS
17829 echo "$as_me: failed program was:" >&5
17830sed 's/^/| /' conftest.$ac_ext >&5
17831
17832ac_lo= ac_hi=
17833fi
32ddf007 17834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17835fi
32ddf007 17836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17837# Binary search between lo and hi bounds.
17838while test "x$ac_lo" != "x$ac_hi"; do
17839 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17840 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17841/* confdefs.h. */
17842_ACEOF
17843cat confdefs.h >>conftest.$ac_ext
17844cat >>conftest.$ac_ext <<_ACEOF
17845/* end confdefs.h. */
17846$ac_includes_default
17847int
17848main ()
17849{
17850static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17851test_array [0] = 0
17852
17853 ;
17854 return 0;
17855}
17856_ACEOF
17857rm -f conftest.$ac_objext
17858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 17859 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17860 ac_status=$?
32ddf007
VS
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
e6cc62c6
VS
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } &&
32ddf007
VS
17866 { ac_try='test -z "$ac_c_werror_flag"
17867 || test ! -s conftest.err'
17868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17869 (eval $ac_try) 2>&5
17870 ac_status=$?
17871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); }; } &&
17873 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17875 (eval $ac_try) 2>&5
17876 ac_status=$?
17877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878 (exit $ac_status); }; }; then
17879 ac_hi=$ac_mid
17880else
17881 echo "$as_me: failed program was:" >&5
17882sed 's/^/| /' conftest.$ac_ext >&5
17883
17884ac_lo=`expr '(' $ac_mid ')' + 1`
17885fi
32ddf007 17886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17887done
17888case $ac_lo in
17889?*) ac_cv_sizeof_long_long=$ac_lo;;
17890'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17891See \`config.log' for more details." >&5
17892echo "$as_me: error: cannot compute sizeof (long long), 77
17893See \`config.log' for more details." >&2;}
17894 { (exit 1); exit 1; }; } ;;
17895esac
17896else
17897 if test "$cross_compiling" = yes; then
17898 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17899See \`config.log' for more details." >&5
17900echo "$as_me: error: cannot run test program while cross compiling
17901See \`config.log' for more details." >&2;}
17902 { (exit 1); exit 1; }; }
17903else
17904 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17905/* confdefs.h. */
17906_ACEOF
17907cat confdefs.h >>conftest.$ac_ext
17908cat >>conftest.$ac_ext <<_ACEOF
17909/* end confdefs.h. */
17910$ac_includes_default
17911long longval () { return (long) (sizeof (long long)); }
17912unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 17913#include <stdio.h>
e6cc62c6
VS
17914#include <stdlib.h>
17915int
17916main ()
4f57cf11 17917{
e6cc62c6
VS
17918
17919 FILE *f = fopen ("conftest.val", "w");
17920 if (! f)
17921 exit (1);
17922 if (((long) (sizeof (long long))) < 0)
17923 {
17924 long i = longval ();
17925 if (i != ((long) (sizeof (long long))))
17926 exit (1);
17927 fprintf (f, "%ld\n", i);
17928 }
17929 else
17930 {
17931 unsigned long i = ulongval ();
17932 if (i != ((long) (sizeof (long long))))
17933 exit (1);
17934 fprintf (f, "%lu\n", i);
17935 }
17936 exit (ferror (f) || fclose (f) != 0);
17937
17938 ;
17939 return 0;
4f57cf11 17940}
e6cc62c6
VS
17941_ACEOF
17942rm -f conftest$ac_exeext
17943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17944 (eval $ac_link) 2>&5
17945 ac_status=$?
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17953 ac_cv_sizeof_long_long=`cat conftest.val`
17954else
17955 echo "$as_me: program exited with status $ac_status" >&5
17956echo "$as_me: failed program was:" >&5
17957sed 's/^/| /' conftest.$ac_ext >&5
17958
17959( exit $ac_status )
17960{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17961See \`config.log' for more details." >&5
17962echo "$as_me: error: cannot compute sizeof (long long), 77
17963See \`config.log' for more details." >&2;}
17964 { (exit 1); exit 1; }; }
17965fi
32ddf007 17966rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17967fi
17968fi
17969rm -f conftest.val
4f57cf11 17970else
4f57cf11
GD
17971 ac_cv_sizeof_long_long=0
17972fi
7b4a847f 17973fi
e6cc62c6
VS
17974echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17975echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17976cat >>confdefs.h <<_ACEOF
21d1c967 17977#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17978_ACEOF
9e691f46 17979
8284b0c5 17980
21d1c967
GD
17981esac
17982
e6cc62c6
VS
17983echo "$as_me:$LINENO: checking size of wchar_t" >&5
17984echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17985if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17987else
e6cc62c6 17988
21d1c967 17989 if test "$cross_compiling" = yes; then
e6cc62c6 17990
2b5f62a0
VZ
17991 case "${host}" in
17992 *-pc-msdosdjgpp )
17993 wx_cv_sizeof_wchar_t=0
17994 ;;
17995 * )
17996 wx_cv_sizeof_wchar_t=4
17997 ;;
17998 esac
e6cc62c6
VS
17999
18000
6f72b082 18001else
e6cc62c6 18002 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18003/* confdefs.h. */
18004_ACEOF
18005cat confdefs.h >>conftest.$ac_ext
18006cat >>conftest.$ac_ext <<_ACEOF
18007/* end confdefs.h. */
21d1c967 18008
2b5f62a0
VZ
18009 /* DJGPP only has fake wchar_t: */
18010 #ifdef __DJGPP__
18011 # error "fake wchar_t"
18012 #endif
21d1c967
GD
18013 #ifdef HAVE_WCHAR_H
18014 # ifdef __CYGWIN__
18015 # include <stddef.h>
18016 # endif
18017 # include <wchar.h>
18018 #endif
18019 #ifdef HAVE_STDLIB_H
18020 # include <stdlib.h>
18021 #endif
18022 #include <stdio.h>
18023 int main()
18024 {
18025 FILE *f=fopen("conftestval", "w");
18026 if (!f) exit(1);
18027 fprintf(f, "%i", sizeof(wchar_t));
18028 exit(0);
18029 }
e6cc62c6
VS
18030
18031_ACEOF
18032rm -f conftest$ac_exeext
18033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18034 (eval $ac_link) 2>&5
18035 ac_status=$?
18036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18039 (eval $ac_try) 2>&5
18040 ac_status=$?
18041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042 (exit $ac_status); }; }; then
21d1c967 18043 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 18044else
e6cc62c6
VS
18045 echo "$as_me: program exited with status $ac_status" >&5
18046echo "$as_me: failed program was:" >&5
18047sed 's/^/| /' conftest.$ac_ext >&5
18048
18049( exit $ac_status )
18050wx_cv_sizeof_wchar_t=0
6f72b082 18051fi
32ddf007 18052rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 18053fi
6f72b082 18054
3f345b47 18055fi
e6cc62c6
VS
18056echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
18057echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 18058
e6cc62c6 18059cat >>confdefs.h <<_ACEOF
21d1c967 18060#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 18061_ACEOF
90dd450c 18062
8284b0c5 18063
21d1c967
GD
18064# Check whether --enable-largefile or --disable-largefile was given.
18065if test "${enable_largefile+set}" = set; then
18066 enableval="$enable_largefile"
3f345b47 18067
e6cc62c6 18068fi;
21d1c967
GD
18069if test "$enable_largefile" != no; then
18070 wx_largefile=no
e6cc62c6
VS
18071
18072 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18073echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18074if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18075 echo $ECHO_N "(cached) $ECHO_C" >&6
18076else
18077
18078 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18079/* confdefs.h. */
18080_ACEOF
18081cat confdefs.h >>conftest.$ac_ext
18082cat >>conftest.$ac_ext <<_ACEOF
18083/* end confdefs.h. */
21d1c967
GD
18084#define _FILE_OFFSET_BITS 64
18085 #include <sys/types.h>
e6cc62c6
VS
18086int
18087main ()
18088{
21d1c967
GD
18089typedef struct {
18090 unsigned int field: sizeof(off_t) == 8;
18091} wxlf;
18092
e6cc62c6
VS
18093 ;
18094 return 0;
18095}
18096_ACEOF
18097rm -f conftest.$ac_objext
18098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18099 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18100 ac_status=$?
32ddf007
VS
18101 grep -v '^ *+' conftest.er1 >conftest.err
18102 rm -f conftest.er1
18103 cat conftest.err >&5
e6cc62c6
VS
18104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105 (exit $ac_status); } &&
32ddf007
VS
18106 { ac_try='test -z "$ac_c_werror_flag"
18107 || test ! -s conftest.err'
18108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18109 (eval $ac_try) 2>&5
18110 ac_status=$?
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); }; } &&
18113 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18116 ac_status=$?
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; }; then
21d1c967 18119 ac_cv_sys_file_offset_bits=64
f6bcfd97 18120else
e6cc62c6
VS
18121 echo "$as_me: failed program was:" >&5
18122sed 's/^/| /' conftest.$ac_ext >&5
18123
18124ac_cv_sys_file_offset_bits=no
247f5006 18125fi
32ddf007 18126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18127
a0b9e27f 18128
e6cc62c6
VS
18129fi
18130echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18131echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
18132
18133 if test "$ac_cv_sys_file_offset_bits" != no; then
18134 wx_largefile=yes
e6cc62c6 18135 cat >>confdefs.h <<_ACEOF
21d1c967 18136#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 18137_ACEOF
21d1c967
GD
18138
18139 fi
18140
18141 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
18142
18143 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18144echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18145if test "${ac_cv_sys_large_files+set}" = set; then
18146 echo $ECHO_N "(cached) $ECHO_C" >&6
18147else
18148
18149 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18150/* confdefs.h. */
18151_ACEOF
18152cat confdefs.h >>conftest.$ac_ext
18153cat >>conftest.$ac_ext <<_ACEOF
18154/* end confdefs.h. */
21d1c967
GD
18155#define _LARGE_FILES 1
18156 #include <sys/types.h>
e6cc62c6
VS
18157int
18158main ()
18159{
21d1c967
GD
18160typedef struct {
18161 unsigned int field: sizeof(off_t) == 8;
18162} wxlf;
18163
e6cc62c6
VS
18164 ;
18165 return 0;
18166}
18167_ACEOF
18168rm -f conftest.$ac_objext
18169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18170 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18171 ac_status=$?
32ddf007
VS
18172 grep -v '^ *+' conftest.er1 >conftest.err
18173 rm -f conftest.er1
18174 cat conftest.err >&5
e6cc62c6
VS
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } &&
32ddf007
VS
18177 { ac_try='test -z "$ac_c_werror_flag"
18178 || test ! -s conftest.err'
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; } &&
18184 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
21d1c967 18190 ac_cv_sys_large_files=1
f6bcfd97 18191else
e6cc62c6
VS
18192 echo "$as_me: failed program was:" >&5
18193sed 's/^/| /' conftest.$ac_ext >&5
18194
18195ac_cv_sys_large_files=no
247f5006 18196fi
32ddf007 18197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18198
e6cc62c6
VS
18199
18200fi
18201echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18202echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 18203
21d1c967
GD
18204 if test "$ac_cv_sys_large_files" != no; then
18205 wx_largefile=yes
e6cc62c6 18206 cat >>confdefs.h <<_ACEOF
21d1c967 18207#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 18208_ACEOF
90dd450c 18209
90dd450c
VZ
18210 fi
18211
90dd450c 18212 fi
90dd450c 18213
e6cc62c6
VS
18214 echo "$as_me:$LINENO: checking if large file support is available" >&5
18215echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 18216 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 18217 cat >>confdefs.h <<\_ACEOF
21d1c967 18218#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 18219_ACEOF
90dd450c 18220
90dd450c 18221 fi
e6cc62c6
VS
18222 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18223echo "${ECHO_T}$wx_largefile" >&6
21d1c967 18224fi
90dd450c 18225
8284b0c5 18226
f02444d0 18227if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
18228 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18229 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 18230 else
e26c13cf 18231 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 18232 fi
e26c13cf 18233 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
18234fi
18235
e6cc62c6
VS
18236echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18237echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18238if test "${ac_cv_c_bigendian+set}" = set; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 18240else
21d1c967
GD
18241 ac_cv_c_bigendian=unknown
18242# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 18243cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18244/* confdefs.h. */
18245_ACEOF
18246cat confdefs.h >>conftest.$ac_ext
18247cat >>conftest.$ac_ext <<_ACEOF
18248/* end confdefs.h. */
21d1c967
GD
18249#include <sys/types.h>
18250#include <sys/param.h>
e6cc62c6
VS
18251int
18252main ()
18253{
21d1c967
GD
18254
18255#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18256 bogus endian macros
18257#endif
e6cc62c6
VS
18258 ;
18259 return 0;
18260}
18261_ACEOF
18262rm -f conftest.$ac_objext
18263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18264 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18265 ac_status=$?
32ddf007
VS
18266 grep -v '^ *+' conftest.er1 >conftest.err
18267 rm -f conftest.er1
18268 cat conftest.err >&5
e6cc62c6
VS
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); } &&
32ddf007
VS
18271 { ac_try='test -z "$ac_c_werror_flag"
18272 || test ! -s conftest.err'
18273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18274 (eval $ac_try) 2>&5
18275 ac_status=$?
18276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277 (exit $ac_status); }; } &&
18278 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18280 (eval $ac_try) 2>&5
18281 ac_status=$?
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
21d1c967 18284 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 18285cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18286/* confdefs.h. */
18287_ACEOF
18288cat confdefs.h >>conftest.$ac_ext
18289cat >>conftest.$ac_ext <<_ACEOF
18290/* end confdefs.h. */
21d1c967
GD
18291#include <sys/types.h>
18292#include <sys/param.h>
e6cc62c6
VS
18293int
18294main ()
18295{
21d1c967
GD
18296
18297#if BYTE_ORDER != BIG_ENDIAN
18298 not big endian
18299#endif
e6cc62c6
VS
18300 ;
18301 return 0;
18302}
18303_ACEOF
18304rm -f conftest.$ac_objext
18305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18306 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18307 ac_status=$?
32ddf007
VS
18308 grep -v '^ *+' conftest.er1 >conftest.err
18309 rm -f conftest.er1
18310 cat conftest.err >&5
e6cc62c6
VS
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } &&
32ddf007
VS
18313 { ac_try='test -z "$ac_c_werror_flag"
18314 || test ! -s conftest.err'
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; } &&
18320 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18322 (eval $ac_try) 2>&5
18323 ac_status=$?
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; }; then
21d1c967 18326 ac_cv_c_bigendian=yes
3f345b47 18327else
e6cc62c6
VS
18328 echo "$as_me: failed program was:" >&5
18329sed 's/^/| /' conftest.$ac_ext >&5
18330
18331ac_cv_c_bigendian=no
3f345b47 18332fi
32ddf007 18333rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f345b47 18334else
e6cc62c6
VS
18335 echo "$as_me: failed program was:" >&5
18336sed 's/^/| /' conftest.$ac_ext >&5
18337
3f345b47 18338fi
32ddf007 18339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18340if test $ac_cv_c_bigendian = unknown; then
18341if test "$cross_compiling" = yes; then
18342 ac_cv_c_bigendian=unknown
10f2d63a 18343else
e6cc62c6 18344 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18345/* confdefs.h. */
18346_ACEOF
18347cat confdefs.h >>conftest.$ac_ext
18348cat >>conftest.$ac_ext <<_ACEOF
18349/* end confdefs.h. */
21d1c967
GD
18350main () {
18351 /* Are we little or big endian? From Harbison&Steele. */
18352 union
18353 {
18354 long l;
18355 char c[sizeof (long)];
18356 } u;
18357 u.l = 1;
18358 exit (u.c[sizeof (long) - 1] == 1);
18359}
e6cc62c6
VS
18360_ACEOF
18361rm -f conftest$ac_exeext
18362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18363 (eval $ac_link) 2>&5
18364 ac_status=$?
18365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18368 (eval $ac_try) 2>&5
18369 ac_status=$?
18370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371 (exit $ac_status); }; }; then
21d1c967 18372 ac_cv_c_bigendian=no
3f345b47 18373else
e6cc62c6
VS
18374 echo "$as_me: program exited with status $ac_status" >&5
18375echo "$as_me: failed program was:" >&5
18376sed 's/^/| /' conftest.$ac_ext >&5
18377
18378( exit $ac_status )
18379ac_cv_c_bigendian=yes
247f5006 18380fi
32ddf007 18381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 18382fi
3f345b47 18383fi
8168de4c 18384fi
e6cc62c6
VS
18385echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18386echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 18387if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
18388 { 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
18389echo "$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;}
247f5006
VZ
18390fi
18391if test $ac_cv_c_bigendian = yes; then
e6cc62c6 18392 cat >>confdefs.h <<\_ACEOF
247f5006 18393#define WORDS_BIGENDIAN 1
e6cc62c6 18394_ACEOF
247f5006
VZ
18395
18396fi
18397
18398
e6cc62c6
VS
18399ac_ext=cc
18400ac_cpp='$CXXCPP $CPPFLAGS'
18401ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18402ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18403ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18404echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18405echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 18406if test -z "$CXXCPP"; then
e6cc62c6
VS
18407 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18408 echo $ECHO_N "(cached) $ECHO_C" >&6
18409else
18410 # Double quotes because CXXCPP needs to be expanded
18411 for CXXCPP in "$CXX -E" "/lib/cpp"
18412 do
18413 ac_preproc_ok=false
18414for ac_cxx_preproc_warn_flag in '' yes
18415do
18416 # Use a header file that comes with gcc, so configuring glibc
18417 # with a fresh cross-compiler works.
18418 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18419 # <limits.h> exists even on freestanding compilers.
18420 # On the NeXT, cc -E runs the code through the compiler's parser,
18421 # not just through cpp. "Syntax error" is here to catch this case.
18422 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18423/* confdefs.h. */
18424_ACEOF
18425cat confdefs.h >>conftest.$ac_ext
18426cat >>conftest.$ac_ext <<_ACEOF
18427/* end confdefs.h. */
18428#ifdef __STDC__
18429# include <limits.h>
18430#else
18431# include <assert.h>
18432#endif
32ddf007 18433 Syntax error
e6cc62c6
VS
18434_ACEOF
18435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18437 ac_status=$?
18438 grep -v '^ *+' conftest.er1 >conftest.err
18439 rm -f conftest.er1
18440 cat conftest.err >&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); } >/dev/null; then
18443 if test -s conftest.err; then
18444 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18445 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18446 else
18447 ac_cpp_err=
18448 fi
247f5006 18449else
e6cc62c6
VS
18450 ac_cpp_err=yes
18451fi
18452if test -z "$ac_cpp_err"; then
18453 :
18454else
18455 echo "$as_me: failed program was:" >&5
18456sed 's/^/| /' conftest.$ac_ext >&5
18457
18458 # Broken: fails on valid input.
18459continue
18460fi
18461rm -f conftest.err conftest.$ac_ext
18462
18463 # OK, works on sane cases. Now check whether non-existent headers
18464 # can be detected and how.
18465 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18466/* confdefs.h. */
18467_ACEOF
18468cat confdefs.h >>conftest.$ac_ext
18469cat >>conftest.$ac_ext <<_ACEOF
18470/* end confdefs.h. */
18471#include <ac_nonexistent.h>
18472_ACEOF
18473if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18475 ac_status=$?
18476 grep -v '^ *+' conftest.er1 >conftest.err
18477 rm -f conftest.er1
18478 cat conftest.err >&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } >/dev/null; then
18481 if test -s conftest.err; then
18482 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18483 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18484 else
18485 ac_cpp_err=
18486 fi
18487else
18488 ac_cpp_err=yes
18489fi
18490if test -z "$ac_cpp_err"; then
18491 # Broken: success on invalid input.
18492continue
18493else
18494 echo "$as_me: failed program was:" >&5
18495sed 's/^/| /' conftest.$ac_ext >&5
18496
18497 # Passes both tests.
18498ac_preproc_ok=:
18499break
18500fi
18501rm -f conftest.err conftest.$ac_ext
18502
18503done
18504# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18505rm -f conftest.err conftest.$ac_ext
18506if $ac_preproc_ok; then
18507 break
18508fi
18509
18510 done
18511 ac_cv_prog_CXXCPP=$CXXCPP
18512
18513fi
18514 CXXCPP=$ac_cv_prog_CXXCPP
18515else
18516 ac_cv_prog_CXXCPP=$CXXCPP
18517fi
18518echo "$as_me:$LINENO: result: $CXXCPP" >&5
18519echo "${ECHO_T}$CXXCPP" >&6
18520ac_preproc_ok=false
18521for ac_cxx_preproc_warn_flag in '' yes
18522do
18523 # Use a header file that comes with gcc, so configuring glibc
18524 # with a fresh cross-compiler works.
18525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18526 # <limits.h> exists even on freestanding compilers.
18527 # On the NeXT, cc -E runs the code through the compiler's parser,
18528 # not just through cpp. "Syntax error" is here to catch this case.
18529 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18530/* confdefs.h. */
18531_ACEOF
18532cat confdefs.h >>conftest.$ac_ext
18533cat >>conftest.$ac_ext <<_ACEOF
18534/* end confdefs.h. */
18535#ifdef __STDC__
18536# include <limits.h>
18537#else
18538# include <assert.h>
18539#endif
32ddf007 18540 Syntax error
e6cc62c6
VS
18541_ACEOF
18542if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18543 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18544 ac_status=$?
18545 grep -v '^ *+' conftest.er1 >conftest.err
18546 rm -f conftest.er1
18547 cat conftest.err >&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } >/dev/null; then
18550 if test -s conftest.err; then
18551 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18552 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18553 else
18554 ac_cpp_err=
18555 fi
18556else
18557 ac_cpp_err=yes
18558fi
18559if test -z "$ac_cpp_err"; then
21d1c967 18560 :
698dcdb6 18561else
e6cc62c6
VS
18562 echo "$as_me: failed program was:" >&5
18563sed 's/^/| /' conftest.$ac_ext >&5
18564
18565 # Broken: fails on valid input.
18566continue
18567fi
18568rm -f conftest.err conftest.$ac_ext
18569
18570 # OK, works on sane cases. Now check whether non-existent headers
18571 # can be detected and how.
18572 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18573/* confdefs.h. */
18574_ACEOF
18575cat confdefs.h >>conftest.$ac_ext
18576cat >>conftest.$ac_ext <<_ACEOF
18577/* end confdefs.h. */
18578#include <ac_nonexistent.h>
18579_ACEOF
18580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18582 ac_status=$?
18583 grep -v '^ *+' conftest.er1 >conftest.err
18584 rm -f conftest.er1
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } >/dev/null; then
18588 if test -s conftest.err; then
18589 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18590 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18591 else
18592 ac_cpp_err=
18593 fi
18594else
18595 ac_cpp_err=yes
247f5006 18596fi
e6cc62c6
VS
18597if test -z "$ac_cpp_err"; then
18598 # Broken: success on invalid input.
18599continue
18600else
18601 echo "$as_me: failed program was:" >&5
18602sed 's/^/| /' conftest.$ac_ext >&5
18603
18604 # Passes both tests.
18605ac_preproc_ok=:
18606break
328a083c 18607fi
e6cc62c6
VS
18608rm -f conftest.err conftest.$ac_ext
18609
18610done
18611# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18612rm -f conftest.err conftest.$ac_ext
18613if $ac_preproc_ok; then
18614 :
18615else
18616 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18617See \`config.log' for more details." >&5
18618echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18619See \`config.log' for more details." >&2;}
18620 { (exit 1); exit 1; }; }
90dd450c 18621fi
e6cc62c6
VS
18622
18623ac_ext=cc
18624ac_cpp='$CXXCPP $CPPFLAGS'
18625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18628
1e6feb95 18629
1725144d 18630
21d1c967 18631 if test "$cross_compiling" = "yes"; then
e6cc62c6 18632 cat >>confdefs.h <<\_ACEOF
21d1c967 18633#define wxUSE_IOSTREAMH 1
e6cc62c6 18634_ACEOF
ab9b9eab 18635
21d1c967 18636 else
e6cc62c6
VS
18637
18638
18639 ac_ext=cc
5c6fa7d2 18640ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18641ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18642ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18643ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18644
52127426 18645
247f5006 18646
e6cc62c6 18647for ac_header in iostream
21d1c967 18648do
e6cc62c6
VS
18649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18650if eval "test \"\${$as_ac_Header+set}\" = set"; then
18651 echo "$as_me:$LINENO: checking for $ac_header" >&5
18652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18653if eval "test \"\${$as_ac_Header+set}\" = set"; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655fi
18656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18658else
18659 # Is the header compilable?
18660echo "$as_me:$LINENO: checking $ac_header usability" >&5
18661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18662cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18663/* confdefs.h. */
18664_ACEOF
18665cat confdefs.h >>conftest.$ac_ext
18666cat >>conftest.$ac_ext <<_ACEOF
18667/* end confdefs.h. */
18668$ac_includes_default
18669#include <$ac_header>
18670_ACEOF
18671rm -f conftest.$ac_objext
18672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18673 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18674 ac_status=$?
32ddf007
VS
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
e6cc62c6
VS
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
32ddf007
VS
18680 { ac_try='test -z "$ac_cxx_werror_flag"
18681 || test ! -s conftest.err'
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18693 ac_header_compiler=yes
18694else
18695 echo "$as_me: failed program was:" >&5
18696sed 's/^/| /' conftest.$ac_ext >&5
18697
18698ac_header_compiler=no
18699fi
32ddf007 18700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18702echo "${ECHO_T}$ac_header_compiler" >&6
18703
18704# Is the header present?
18705echo "$as_me:$LINENO: checking $ac_header presence" >&5
18706echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18707cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18708/* confdefs.h. */
18709_ACEOF
18710cat confdefs.h >>conftest.$ac_ext
18711cat >>conftest.$ac_ext <<_ACEOF
18712/* end confdefs.h. */
18713#include <$ac_header>
18714_ACEOF
18715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18717 ac_status=$?
18718 grep -v '^ *+' conftest.er1 >conftest.err
18719 rm -f conftest.er1
18720 cat conftest.err >&5
18721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18722 (exit $ac_status); } >/dev/null; then
18723 if test -s conftest.err; then
18724 ac_cpp_err=$ac_cxx_preproc_warn_flag
32ddf007 18725 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18726 else
18727 ac_cpp_err=
18728 fi
18729else
18730 ac_cpp_err=yes
18731fi
18732if test -z "$ac_cpp_err"; then
18733 ac_header_preproc=yes
18734else
18735 echo "$as_me: failed program was:" >&5
18736sed 's/^/| /' conftest.$ac_ext >&5
18737
18738 ac_header_preproc=no
18739fi
18740rm -f conftest.err conftest.$ac_ext
18741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18742echo "${ECHO_T}$ac_header_preproc" >&6
18743
18744# So? What about this header?
32ddf007
VS
18745case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18746 yes:no: )
e6cc62c6
VS
18747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
18749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18751 ac_header_preproc=yes
e6cc62c6 18752 ;;
32ddf007 18753 no:yes:* )
e6cc62c6
VS
18754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
18756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
18762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
18764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
18766 (
18767 cat <<\_ASBOX
32ddf007
VS
18768## ----------------------------------------- ##
18769## Report this to wx-dev@lists.wxwindows.org ##
18770## ----------------------------------------- ##
e6cc62c6
VS
18771_ASBOX
18772 ) |
18773 sed "s/^/$as_me: WARNING: /" >&2
18774 ;;
18775esac
18776echo "$as_me:$LINENO: checking for $ac_header" >&5
18777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18778if eval "test \"\${$as_ac_Header+set}\" = set"; then
18779 echo $ECHO_N "(cached) $ECHO_C" >&6
18780else
32ddf007 18781 eval "$as_ac_Header=\$ac_header_preproc"
ab9b9eab 18782fi
e6cc62c6
VS
18783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18785
90dd450c 18786fi
e6cc62c6
VS
18787if test `eval echo '${'$as_ac_Header'}'` = yes; then
18788 cat >>confdefs.h <<_ACEOF
18789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18790_ACEOF
18791
90dd450c 18792fi
e6cc62c6 18793
21d1c967 18794done
10f2d63a 18795
8284b0c5 18796
21d1c967
GD
18797 if test "$ac_cv_header_iostream" = "yes" ; then
18798 :
18799 else
e6cc62c6 18800 cat >>confdefs.h <<\_ACEOF
21d1c967 18801#define wxUSE_IOSTREAMH 1
e6cc62c6 18802_ACEOF
788deba1 18803
90dd450c 18804 fi
ab9b9eab 18805
21d1c967 18806 ac_ext=c
21d1c967 18807ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18810ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 18811
21d1c967 18812 fi
ab9b9eab 18813
52127426 18814
8284b0c5 18815
e6cc62c6
VS
18816 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18817echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18818if test "${wx_cv_cpp_bool+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18820else
e6cc62c6
VS
18821
18822
18823
18824 ac_ext=cc
5c6fa7d2 18825ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18826ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18827ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18828ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 18829
8284b0c5 18830
e6cc62c6 18831 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18832/* confdefs.h. */
18833_ACEOF
18834cat confdefs.h >>conftest.$ac_ext
18835cat >>conftest.$ac_ext <<_ACEOF
18836/* end confdefs.h. */
21d1c967 18837
e6cc62c6
VS
18838
18839int
18840main ()
18841{
21d1c967
GD
18842
18843 bool b = true;
18844
18845 return 0;
e6cc62c6
VS
18846
18847 ;
18848 return 0;
18849}
18850_ACEOF
18851rm -f conftest.$ac_objext
18852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18853 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18854 ac_status=$?
32ddf007
VS
18855 grep -v '^ *+' conftest.er1 >conftest.err
18856 rm -f conftest.er1
18857 cat conftest.err >&5
e6cc62c6
VS
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } &&
32ddf007
VS
18860 { ac_try='test -z "$ac_cxx_werror_flag"
18861 || test ! -s conftest.err'
18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18863 (eval $ac_try) 2>&5
18864 ac_status=$?
18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18866 (exit $ac_status); }; } &&
18867 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
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); }; }; then
18873
21d1c967 18874 wx_cv_cpp_bool=yes
e6cc62c6 18875
698dcdb6 18876else
e6cc62c6
VS
18877 echo "$as_me: failed program was:" >&5
18878sed 's/^/| /' conftest.$ac_ext >&5
18879
18880
21d1c967 18881 wx_cv_cpp_bool=no
e6cc62c6
VS
18882
18883
698dcdb6 18884fi
32ddf007 18885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18886
18887 ac_ext=c
21d1c967 18888ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18891ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18892
a0b9e27f 18893
e6cc62c6
VS
18894fi
18895echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18896echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
18897
18898 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 18899 cat >>confdefs.h <<\_ACEOF
21d1c967 18900#define HAVE_BOOL 1
e6cc62c6 18901_ACEOF
ab9b9eab 18902
21d1c967
GD
18903 fi
18904
52127426 18905
8284b0c5 18906
e6cc62c6
VS
18907 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18908echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18909if test "${wx_cv_explicit+set}" = set; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18911else
e6cc62c6
VS
18912
18913
18914
18915 ac_ext=cc
5c6fa7d2 18916ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 18920
8284b0c5 18921
e6cc62c6 18922 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18923/* confdefs.h. */
18924_ACEOF
18925cat confdefs.h >>conftest.$ac_ext
18926cat >>conftest.$ac_ext <<_ACEOF
18927/* end confdefs.h. */
986ecc86
VZ
18928
18929 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
18930
18931int
18932main ()
18933{
986ecc86
VZ
18934
18935 return 0;
e6cc62c6
VS
18936
18937 ;
18938 return 0;
18939}
18940_ACEOF
18941rm -f conftest.$ac_objext
18942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18943 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18944 ac_status=$?
32ddf007
VS
18945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
e6cc62c6
VS
18948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
32ddf007
VS
18950 { ac_try='test -z "$ac_cxx_werror_flag"
18951 || test ! -s conftest.err'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963
18964 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18965/* confdefs.h. */
18966_ACEOF
18967cat confdefs.h >>conftest.$ac_ext
18968cat >>conftest.$ac_ext <<_ACEOF
18969/* end confdefs.h. */
986ecc86
VZ
18970
18971 class Foo { public: explicit Foo(int) {} };
18972 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
18973
18974int
18975main ()
18976{
986ecc86
VZ
18977
18978 TakeFoo(17);
18979 return 0;
e6cc62c6
VS
18980
18981 ;
18982 return 0;
18983}
18984_ACEOF
18985rm -f conftest.$ac_objext
18986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 18987 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18988 ac_status=$?
32ddf007
VS
18989 grep -v '^ *+' conftest.er1 >conftest.err
18990 rm -f conftest.er1
18991 cat conftest.err >&5
e6cc62c6
VS
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); } &&
32ddf007
VS
18994 { ac_try='test -z "$ac_cxx_werror_flag"
18995 || test ! -s conftest.err'
18996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18997 (eval $ac_try) 2>&5
18998 ac_status=$?
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); }; } &&
19001 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19003 (eval $ac_try) 2>&5
19004 ac_status=$?
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; }; then
986ecc86
VZ
19007 wx_cv_explicit=no
19008else
e6cc62c6
VS
19009 echo "$as_me: failed program was:" >&5
19010sed 's/^/| /' conftest.$ac_ext >&5
19011
19012wx_cv_explicit=yes
19013
986ecc86 19014fi
32ddf007 19015rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 19016
986ecc86 19017else
e6cc62c6
VS
19018 echo "$as_me: failed program was:" >&5
19019sed 's/^/| /' conftest.$ac_ext >&5
19020
19021wx_cv_explicit=no
19022
986ecc86 19023fi
32ddf007 19024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
19025
19026 ac_ext=c
986ecc86 19027ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
19028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19030ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 19031
a0b9e27f 19032
e6cc62c6
VS
19033fi
19034echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
19035echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
19036
19037 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 19038 cat >>confdefs.h <<\_ACEOF
986ecc86 19039#define HAVE_EXPLICIT 1
e6cc62c6 19040_ACEOF
986ecc86
VZ
19041
19042 fi
19043
8284b0c5 19044
e6cc62c6
VS
19045echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
19046echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
19047if test "${ac_cv_cxx_const_cast+set}" = set; then
19048 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 19049else
521196a2 19050
521196a2 19051
e6cc62c6
VS
19052 ac_ext=cc
19053ac_cpp='$CXXCPP $CPPFLAGS'
19054ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19055ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19056ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19057
19058 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19059/* confdefs.h. */
19060_ACEOF
19061cat confdefs.h >>conftest.$ac_ext
19062cat >>conftest.$ac_ext <<_ACEOF
19063/* end confdefs.h. */
19064
19065int
19066main ()
19067{
521196a2 19068int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
19069 ;
19070 return 0;
19071}
19072_ACEOF
19073rm -f conftest.$ac_objext
19074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19075 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19076 ac_status=$?
32ddf007
VS
19077 grep -v '^ *+' conftest.er1 >conftest.err
19078 rm -f conftest.er1
19079 cat conftest.err >&5
e6cc62c6
VS
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
32ddf007
VS
19082 { ac_try='test -z "$ac_cxx_werror_flag"
19083 || test ! -s conftest.err'
19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085 (eval $ac_try) 2>&5
19086 ac_status=$?
19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088 (exit $ac_status); }; } &&
19089 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091 (eval $ac_try) 2>&5
19092 ac_status=$?
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
521196a2
MB
19095 ac_cv_cxx_const_cast=yes
19096else
e6cc62c6
VS
19097 echo "$as_me: failed program was:" >&5
19098sed 's/^/| /' conftest.$ac_ext >&5
19099
19100ac_cv_cxx_const_cast=no
521196a2 19101fi
32ddf007 19102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
521196a2 19103 ac_ext=c
521196a2 19104ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
19105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19107ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
19108
19109
19110fi
e6cc62c6
VS
19111echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19112echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 19113if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
19114
19115cat >>confdefs.h <<\_ACEOF
19116#define HAVE_CONST_CAST
19117_ACEOF
521196a2
MB
19118
19119fi
19120
ecfd48ca
VZ
19121echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19122echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19123if test "${ac_cv_cxx_static_cast+set}" = set; then
19124 echo $ECHO_N "(cached) $ECHO_C" >&6
19125else
19126
19127
19128 ac_ext=cc
19129ac_cpp='$CXXCPP $CPPFLAGS'
19130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19133
19134 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
19135/* confdefs.h. */
19136_ACEOF
19137cat confdefs.h >>conftest.$ac_ext
19138cat >>conftest.$ac_ext <<_ACEOF
19139/* end confdefs.h. */
19140#include <typeinfo>
19141class Base { public : Base () {} virtual void f () = 0; };
19142class Derived : public Base { public : Derived () {} virtual void f () {} };
19143int g (Derived&) { return 0; }
19144int
19145main ()
19146{
19147
19148Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19149 ;
19150 return 0;
19151}
19152_ACEOF
19153rm -f conftest.$ac_objext
19154if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19155 (eval $ac_compile) 2>conftest.er1
ecfd48ca 19156 ac_status=$?
32ddf007
VS
19157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
ecfd48ca
VZ
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } &&
32ddf007
VS
19162 { ac_try='test -z "$ac_cxx_werror_flag"
19163 || test ! -s conftest.err'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
19170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175 ac_cv_cxx_static_cast=yes
19176else
19177 echo "$as_me: failed program was:" >&5
19178sed 's/^/| /' conftest.$ac_ext >&5
19179
19180ac_cv_cxx_static_cast=no
19181fi
32ddf007 19182rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
19183 ac_ext=c
19184ac_cpp='$CPP $CPPFLAGS'
19185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19187ac_compiler_gnu=$ac_cv_c_compiler_gnu
19188
19189
19190fi
19191echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19192echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19193if test "$ac_cv_cxx_static_cast" = yes; then
19194
19195cat >>confdefs.h <<\_ACEOF
19196#define HAVE_STATIC_CAST
19197_ACEOF
19198
19199fi
19200
521196a2 19201
e87b7833
MB
19202if test "$wxUSE_STL" = "yes"; then
19203 ac_ext=cc
19204ac_cpp='$CXXCPP $CPPFLAGS'
19205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19208
19209
19210 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19211echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19212 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
19213/* confdefs.h. */
19214_ACEOF
19215cat confdefs.h >>conftest.$ac_ext
19216cat >>conftest.$ac_ext <<_ACEOF
19217/* end confdefs.h. */
19218#include <string>
19219 #include <functional>
19220 #include <algorithm>
19221 #include <vector>
19222 #include <list>
19223int
19224main ()
19225{
19226std::vector<int> moo;
19227 std::list<int> foo;
19228 std::vector<int>::iterator it =
19229 std::find_if(moo.begin(), moo.end(),
19230 std::bind2nd(std::less<int>(), 3));
19231 ;
19232 return 0;
19233}
19234_ACEOF
19235rm -f conftest.$ac_objext
19236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19237 (eval $ac_compile) 2>conftest.er1
e87b7833 19238 ac_status=$?
32ddf007
VS
19239 grep -v '^ *+' conftest.er1 >conftest.err
19240 rm -f conftest.er1
19241 cat conftest.err >&5
e87b7833
MB
19242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19243 (exit $ac_status); } &&
32ddf007
VS
19244 { ac_try='test -z "$ac_cxx_werror_flag"
19245 || test ! -s conftest.err'
19246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; }; then
19257 echo "$as_me:$LINENO: result: yes" >&5
19258echo "${ECHO_T}yes" >&6
19259else
19260 echo "$as_me: failed program was:" >&5
19261sed 's/^/| /' conftest.$ac_ext >&5
19262
19263echo "$as_me:$LINENO: result: no" >&5
19264echo "${ECHO_T}no" >&6
19265 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19266echo "$as_me: error: Basic STL functionality missing" >&2;}
19267 { (exit 1); exit 1; }; }
19268fi
32ddf007 19269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
19270
19271 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19272echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19273 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
19274/* confdefs.h. */
19275_ACEOF
19276cat confdefs.h >>conftest.$ac_ext
19277cat >>conftest.$ac_ext <<_ACEOF
19278/* end confdefs.h. */
19279#include <string>
19280int
19281main ()
19282{
19283std::wstring foo;
19284 ;
19285 return 0;
19286}
19287_ACEOF
19288rm -f conftest.$ac_objext
19289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19290 (eval $ac_compile) 2>conftest.er1
e87b7833 19291 ac_status=$?
32ddf007
VS
19292 grep -v '^ *+' conftest.er1 >conftest.err
19293 rm -f conftest.er1
19294 cat conftest.err >&5
e87b7833
MB
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); } &&
32ddf007
VS
19297 { ac_try='test -z "$ac_cxx_werror_flag"
19298 || test ! -s conftest.err'
19299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; } &&
19304 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
19305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306 (eval $ac_try) 2>&5
19307 ac_status=$?
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); }; }; then
19310 echo "$as_me:$LINENO: result: yes" >&5
19311echo "${ECHO_T}yes" >&6
19312 cat >>confdefs.h <<\_ACEOF
19313#define HAVE_STD_WSTRING 1
19314_ACEOF
19315
19316else
19317 echo "$as_me: failed program was:" >&5
19318sed 's/^/| /' conftest.$ac_ext >&5
19319
19320echo "$as_me:$LINENO: result: no" >&5
19321echo "${ECHO_T}no" >&6
19322fi
32ddf007 19323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
19324
19325 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19326echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19327 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
19328/* confdefs.h. */
19329_ACEOF
19330cat confdefs.h >>conftest.$ac_ext
19331cat >>conftest.$ac_ext <<_ACEOF
19332/* end confdefs.h. */
19333#include <string>
19334int
19335main ()
19336{
19337std::string foo, bar;
19338 foo.compare(bar);
19339 foo.compare(1, 1, bar);
19340 foo.compare(1, 1, bar, 1, 1);
19341 foo.compare("");
19342 foo.compare(1, 1, "");
19343 foo.compare(1, 1, "", 2);
19344 ;
19345 return 0;
19346}
19347_ACEOF
19348rm -f conftest.$ac_objext
19349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19350 (eval $ac_compile) 2>conftest.er1
e87b7833 19351 ac_status=$?
32ddf007
VS
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
e87b7833
MB
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
32ddf007
VS
19357 { ac_try='test -z "$ac_cxx_werror_flag"
19358 || test ! -s conftest.err'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
19370 echo "$as_me:$LINENO: result: yes" >&5
19371echo "${ECHO_T}yes" >&6
19372 cat >>confdefs.h <<\_ACEOF
19373#define HAVE_STD_STRING_COMPARE 1
19374_ACEOF
19375
19376else
19377 echo "$as_me: failed program was:" >&5
19378sed 's/^/| /' conftest.$ac_ext >&5
19379
19380echo "$as_me:$LINENO: result: no" >&5
19381echo "${ECHO_T}no" >&6
19382fi
32ddf007 19383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
19384
19385 ac_ext=c
19386ac_cpp='$CPP $CPPFLAGS'
19387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19389ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390
19391fi
19392
8284b0c5 19393
21d1c967
GD
19394SEARCH_INCLUDE="\
19395 /usr/local/include \
19396 \
21d1c967 19397 /usr/Motif-2.1/include \
789c5f4a 19398 /usr/Motif-1.2/include \
21d1c967
GD
19399 /usr/include/Motif1.2 \
19400 /opt/xpm/include/X11 \
19401 /opt/GBxpm/include/ \
19402 /opt/GBxpm/X11/include/ \
19403 \
21d1c967
GD
19404 /usr/dt/include \
19405 /usr/openwin/include \
19406 \
19407 /usr/include/Xm \
19408 \
19409 /usr/X11R6/include \
19410 /usr/X11R6.4/include \
19411 /usr/X11R5/include \
19412 /usr/X11R4/include \
19413 \
19414 /usr/include/X11R6 \
19415 /usr/include/X11R5 \
19416 /usr/include/X11R4 \
19417 \
19418 /usr/local/X11R6/include \
19419 /usr/local/X11R5/include \
19420 /usr/local/X11R4/include \
19421 \
19422 /usr/local/include/X11R6 \
19423 /usr/local/include/X11R5 \
19424 /usr/local/include/X11R4 \
19425 \
19426 /usr/X11/include \
19427 /usr/include/X11 \
19428 /usr/local/X11/include \
19429 /usr/local/include/X11 \
19430 \
19431 /usr/X386/include \
19432 /usr/x386/include \
19433 /usr/XFree86/include/X11 \
19434 \
19435 X:/XFree86/include \
19436 X:/XFree86/include/X11 \
19437 \
19438 /usr/include/gtk \
19439 /usr/local/include/gtk \
19440 /usr/include/glib \
19441 /usr/local/include/glib \
19442 \
19443 /usr/include/qt \
19444 /usr/local/include/qt \
19445 \
0f87e84c
RR
19446 /usr/local/arm/3.3.2/include \
19447 \
21d1c967
GD
19448 /usr/include/windows \
19449 /usr/include/wine \
19450 /usr/local/include/wine \
19451 \
19452 /usr/unsupported/include \
19453 /usr/athena/include \
19454 /usr/local/x11r5/include \
19455 /usr/lpp/Xamples/include \
19456 \
2b5f62a0 19457 /usr/openwin/share/include"
21d1c967 19458
b62e750d 19459SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
21d1c967 19460
8284b0c5 19461
e6cc62c6 19462cat >confcache <<\_ACEOF
21d1c967
GD
19463# This file is a shell script that caches the results of configure
19464# tests run on this system so they can be shared between configure
e6cc62c6
VS
19465# scripts and configure runs, see configure's option --config-cache.
19466# It is not useful on other systems. If it contains results you don't
19467# want to keep, you may remove or edit it.
21d1c967 19468#
e6cc62c6
VS
19469# config.status only pays attention to the cache file if you give it
19470# the --recheck option to rerun configure.
21d1c967 19471#
e6cc62c6
VS
19472# `ac_cv_env_foo' variables (set or unset) will be overridden when
19473# loading this file, other *unset* `ac_cv_foo' will be assigned the
19474# following values.
19475
19476_ACEOF
19477
21d1c967
GD
19478# The following way of writing the cache mishandles newlines in values,
19479# but we know of no workaround that is simple, portable, and efficient.
19480# So, don't put newlines in cache variables' values.
19481# Ultrix sh set writes to stderr and can't be redirected directly,
19482# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
19483{
19484 (set) 2>&1 |
19485 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19486 *ac_space=\ *)
19487 # `set' does not quote correctly, so add quotes (double-quote
19488 # substitution turns \\\\ into \\, and sed turns \\ into \).
19489 sed -n \
32ddf007
VS
19490 "s/'/'\\\\''/g;
19491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
19492 ;;
19493 *)
19494 # `set' quotes correctly as required by POSIX, so do not add quotes.
19495 sed -n \
32ddf007 19496 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
19497 ;;
19498 esac;
19499} |
19500 sed '
19501 t clear
19502 : clear
19503 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19504 t end
19505 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19506 : end' >>confcache
19507if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 19508 if test -w $cache_file; then
e6cc62c6
VS
19509 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19510 cat confcache >$cache_file
21d1c967
GD
19511 else
19512 echo "not updating unwritable cache $cache_file"
19513 fi
ab9b9eab 19514fi
21d1c967 19515rm -f confcache
ab9b9eab 19516
fe0895cf 19517if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
19518 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19519echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19520if test "${wx_cv_lib_glibc21+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19522else
19523
19524 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19525/* confdefs.h. */
19526_ACEOF
19527cat confdefs.h >>conftest.$ac_ext
19528cat >>conftest.$ac_ext <<_ACEOF
19529/* end confdefs.h. */
21d1c967 19530#include <features.h>
e6cc62c6
VS
19531int
19532main ()
19533{
ab9b9eab 19534
21d1c967
GD
19535 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19536 #error not glibc2.1
19537 #endif
e6cc62c6
VS
19538
19539 ;
19540 return 0;
19541}
19542_ACEOF
19543rm -f conftest.$ac_objext
19544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19545 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19546 ac_status=$?
32ddf007
VS
19547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
e6cc62c6
VS
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
32ddf007
VS
19552 { ac_try='test -z "$ac_c_werror_flag"
19553 || test ! -s conftest.err'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; } &&
19559 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565
21d1c967 19566 wx_cv_lib_glibc21=yes
e6cc62c6 19567
698dcdb6 19568else
e6cc62c6
VS
19569 echo "$as_me: failed program was:" >&5
19570sed 's/^/| /' conftest.$ac_ext >&5
19571
19572
21d1c967 19573 wx_cv_lib_glibc21=no
e6cc62c6
VS
19574
19575
247f5006 19576fi
32ddf007 19577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 19578
e6cc62c6
VS
19579fi
19580echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19581echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 19582 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 19583 cat >>confdefs.h <<\_ACEOF
21d1c967 19584#define wxHAVE_GLIBC2 1
e6cc62c6 19585_ACEOF
1e487827 19586
90dd450c 19587 fi
ab9b9eab
VZ
19588fi
19589
5c0a20c3
VZ
19590if test "x$wx_cv_lib_glibc21" = "xyes"; then
19591 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 19592 cat >>confdefs.h <<\_ACEOF
5c0a20c3 19593#define _GNU_SOURCE 1
e6cc62c6 19594_ACEOF
5c0a20c3
VZ
19595
19596 fi
19597fi
19598
8284b0c5
MB
19599
19600
21d1c967 19601if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 19602 cat >>confdefs.h <<\_ACEOF
21d1c967 19603#define wxUSE_REGEX 1
e6cc62c6 19604_ACEOF
698dcdb6 19605
8284b0c5 19606
30f2fa6c 19607 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
4996f261
VS
19608 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19609echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
30f2fa6c
VS
19610 wxUSE_REGEX=builtin
19611 fi
19612
21d1c967 19613 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
19614 if test "${ac_cv_header_regex_h+set}" = set; then
19615 echo "$as_me:$LINENO: checking for regex.h" >&5
19616echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19617if test "${ac_cv_header_regex_h+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
19619fi
19620echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19621echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19622else
19623 # Is the header compilable?
19624echo "$as_me:$LINENO: checking regex.h usability" >&5
19625echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19626cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19627/* confdefs.h. */
19628_ACEOF
19629cat confdefs.h >>conftest.$ac_ext
19630cat >>conftest.$ac_ext <<_ACEOF
19631/* end confdefs.h. */
19632$ac_includes_default
247f5006 19633#include <regex.h>
e6cc62c6
VS
19634_ACEOF
19635rm -f conftest.$ac_objext
19636if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19637 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19638 ac_status=$?
32ddf007
VS
19639 grep -v '^ *+' conftest.er1 >conftest.err
19640 rm -f conftest.er1
19641 cat conftest.err >&5
e6cc62c6
VS
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } &&
32ddf007
VS
19644 { ac_try='test -z "$ac_c_werror_flag"
19645 || test ! -s conftest.err'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19648 ac_status=$?
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; } &&
19651 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19654 ac_status=$?
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; }; then
19657 ac_header_compiler=yes
19658else
19659 echo "$as_me: failed program was:" >&5
19660sed 's/^/| /' conftest.$ac_ext >&5
19661
19662ac_header_compiler=no
19663fi
32ddf007 19664rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19665echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19666echo "${ECHO_T}$ac_header_compiler" >&6
19667
19668# Is the header present?
19669echo "$as_me:$LINENO: checking regex.h presence" >&5
19670echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19671cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19672/* confdefs.h. */
19673_ACEOF
19674cat confdefs.h >>conftest.$ac_ext
19675cat >>conftest.$ac_ext <<_ACEOF
19676/* end confdefs.h. */
19677#include <regex.h>
19678_ACEOF
19679if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19680 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19681 ac_status=$?
19682 grep -v '^ *+' conftest.er1 >conftest.err
19683 rm -f conftest.er1
19684 cat conftest.err >&5
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); } >/dev/null; then
19687 if test -s conftest.err; then
19688 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 19689 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19690 else
19691 ac_cpp_err=
19692 fi
19693else
19694 ac_cpp_err=yes
19695fi
19696if test -z "$ac_cpp_err"; then
19697 ac_header_preproc=yes
19698else
19699 echo "$as_me: failed program was:" >&5
19700sed 's/^/| /' conftest.$ac_ext >&5
19701
19702 ac_header_preproc=no
19703fi
19704rm -f conftest.err conftest.$ac_ext
19705echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19706echo "${ECHO_T}$ac_header_preproc" >&6
19707
19708# So? What about this header?
32ddf007
VS
19709case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19710 yes:no: )
e6cc62c6
VS
19711 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19712echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
19713 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19714echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19715 ac_header_preproc=yes
e6cc62c6 19716 ;;
32ddf007 19717 no:yes:* )
e6cc62c6
VS
19718 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19719echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
32ddf007
VS
19720 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19721echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19722 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19723echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19724 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19725echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19726 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19727echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
19728 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19729echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19730 (
19731 cat <<\_ASBOX
32ddf007
VS
19732## ----------------------------------------- ##
19733## Report this to wx-dev@lists.wxwindows.org ##
19734## ----------------------------------------- ##
e6cc62c6
VS
19735_ASBOX
19736 ) |
19737 sed "s/^/$as_me: WARNING: /" >&2
19738 ;;
19739esac
19740echo "$as_me:$LINENO: checking for regex.h" >&5
19741echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19742if test "${ac_cv_header_regex_h+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19744else
19745 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 19746fi
e6cc62c6
VS
19747echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19748echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19749
698dcdb6 19750fi
e6cc62c6
VS
19751if test $ac_cv_header_regex_h = yes; then
19752
19753for ac_func in regcomp
21d1c967 19754do
e6cc62c6
VS
19755as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19756echo "$as_me:$LINENO: checking for $ac_func" >&5
19757echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19758if eval "test \"\${$as_ac_var+set}\" = set"; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19760else
19761 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19762/* confdefs.h. */
19763_ACEOF
19764cat confdefs.h >>conftest.$ac_ext
19765cat >>conftest.$ac_ext <<_ACEOF
19766/* end confdefs.h. */
32ddf007
VS
19767/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19769#define $ac_func innocuous_$ac_func
19770
a0b9e27f 19771/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
19772 which can conflict with char $ac_func (); below.
19773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19774 <limits.h> exists even on freestanding compilers. */
32ddf007 19775
e6cc62c6
VS
19776#ifdef __STDC__
19777# include <limits.h>
19778#else
19779# include <assert.h>
19780#endif
32ddf007
VS
19781
19782#undef $ac_func
19783
21d1c967 19784/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19785#ifdef __cplusplus
19786extern "C"
19787{
19788#endif
21d1c967 19789/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19790 builtin and then its argument prototype would still apply. */
19791char $ac_func ();
21d1c967
GD
19792/* The GNU C library defines this for functions which it implements
19793 to always fail with ENOSYS. Some functions are actually named
19794 something starting with __ and the normal name is an alias. */
19795#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19796choke me
19797#else
e6cc62c6
VS
19798char (*f) () = $ac_func;
19799#endif
19800#ifdef __cplusplus
19801}
21d1c967 19802#endif
90dd450c 19803
e6cc62c6
VS
19804int
19805main ()
19806{
19807return f != $ac_func;
19808 ;
19809 return 0;
19810}
19811_ACEOF
19812rm -f conftest.$ac_objext conftest$ac_exeext
19813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 19814 (eval $ac_link) 2>conftest.er1
e6cc62c6 19815 ac_status=$?
32ddf007
VS
19816 grep -v '^ *+' conftest.er1 >conftest.err
19817 rm -f conftest.er1
19818 cat conftest.err >&5
e6cc62c6
VS
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); } &&
32ddf007
VS
19821 { ac_try='test -z "$ac_c_werror_flag"
19822 || test ! -s conftest.err'
19823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19824 (eval $ac_try) 2>&5
19825 ac_status=$?
19826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); }; } &&
19828 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19830 (eval $ac_try) 2>&5
19831 ac_status=$?
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); }; }; then
19834 eval "$as_ac_var=yes"
19835else
19836 echo "$as_me: failed program was:" >&5
19837sed 's/^/| /' conftest.$ac_ext >&5
19838
19839eval "$as_ac_var=no"
19840fi
32ddf007
VS
19841rm -f conftest.err conftest.$ac_objext \
19842 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19843fi
19844echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19845echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19846if test `eval echo '${'$as_ac_var'}'` = yes; then
19847 cat >>confdefs.h <<_ACEOF
19848#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19849_ACEOF
5c6fa7d2 19850
698dcdb6 19851fi
21d1c967
GD
19852done
19853
ab9b9eab
VZ
19854fi
19855
8284b0c5 19856
e6cc62c6 19857
21d1c967
GD
19858 if test "x$ac_cv_func_regcomp" != "xyes"; then
19859 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
19860 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19861echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19862 { (exit 1); exit 1; }; }
21d1c967 19863 else
e6cc62c6
VS
19864 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19865echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
19866 wxUSE_REGEX=builtin
19867 fi
19868 else
19869 wxUSE_REGEX=sys
4996f261
VS
19870 cat >>confdefs.h <<\_ACEOF
19871#define WX_NO_REGEX_ADVANCED 1
19872_ACEOF
19873
21d1c967 19874 fi
ab9b9eab 19875 fi
21d1c967 19876fi
90dd450c 19877
8284b0c5 19878
21d1c967
GD
19879ZLIB_LINK=
19880if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 19881 cat >>confdefs.h <<\_ACEOF
21d1c967 19882#define wxUSE_ZLIB 1
e6cc62c6 19883_ACEOF
21d1c967 19884
8284b0c5 19885
21d1c967 19886 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
19887 if test "$USE_DARWIN" = 1; then
19888 system_zlib_h_ok="yes"
19889 else
e6cc62c6
VS
19890 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19891echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19892if test "${ac_cv_header_zlib_h+set}" = set; then
19893 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
19894else
19895 if test "$cross_compiling" = yes; then
89e6bf6d 19896 unset ac_cv_header_zlib_h
e6cc62c6 19897
d643b80e 19898else
e6cc62c6 19899 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19900/* confdefs.h. */
19901_ACEOF
19902cat confdefs.h >>conftest.$ac_ext
19903cat >>conftest.$ac_ext <<_ACEOF
19904/* end confdefs.h. */
19905
ef33c576 19906 #include <zlib.h>
d775acfa 19907 #include <stdio.h>
d643b80e 19908
d775acfa
VZ
19909 int main()
19910 {
19911 FILE *f=fopen("conftestval", "w");
19912 if (!f) exit(1);
19913 fprintf(f, "%s",
19914 ZLIB_VERSION[0] == '1' &&
19915 (ZLIB_VERSION[2] > '1' ||
19916 (ZLIB_VERSION[2] == '1' &&
19917 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19918 exit(0);
19919 }
e6cc62c6
VS
19920
19921_ACEOF
19922rm -f conftest$ac_exeext
19923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19924 (eval $ac_link) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
d643b80e
VZ
19933 ac_cv_header_zlib_h=`cat conftestval`
19934else
e6cc62c6
VS
19935 echo "$as_me: program exited with status $ac_status" >&5
19936echo "$as_me: failed program was:" >&5
19937sed 's/^/| /' conftest.$ac_ext >&5
19938
19939( exit $ac_status )
19940ac_cv_header_zlib_h=no
d643b80e 19941fi
32ddf007 19942rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
19943fi
19944
d643b80e 19945fi
e6cc62c6
VS
19946echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19947echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19948 if test "${ac_cv_header_zlib_h+set}" = set; then
19949 echo "$as_me:$LINENO: checking for zlib.h" >&5
19950echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19951if test "${ac_cv_header_zlib_h+set}" = set; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19953fi
19954echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19955echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 19956else
e6cc62c6
VS
19957 # Is the header compilable?
19958echo "$as_me:$LINENO: checking zlib.h usability" >&5
19959echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19960cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19961/* confdefs.h. */
19962_ACEOF
19963cat confdefs.h >>conftest.$ac_ext
19964cat >>conftest.$ac_ext <<_ACEOF
19965/* end confdefs.h. */
19966$ac_includes_default
89e6bf6d 19967#include <zlib.h>
e6cc62c6
VS
19968_ACEOF
19969rm -f conftest.$ac_objext
19970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 19971 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19972 ac_status=$?
32ddf007
VS
19973 grep -v '^ *+' conftest.er1 >conftest.err
19974 rm -f conftest.er1
19975 cat conftest.err >&5
e6cc62c6
VS
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } &&
32ddf007
VS
19978 { ac_try='test -z "$ac_c_werror_flag"
19979 || test ! -s conftest.err'
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 ac_header_compiler=yes
19992else
19993 echo "$as_me: failed program was:" >&5
19994sed 's/^/| /' conftest.$ac_ext >&5
19995
19996ac_header_compiler=no
19997fi
32ddf007 19998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19999echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20000echo "${ECHO_T}$ac_header_compiler" >&6
20001
20002# Is the header present?
20003echo "$as_me:$LINENO: checking zlib.h presence" >&5
20004echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
20005cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20006/* confdefs.h. */
20007_ACEOF
20008cat confdefs.h >>conftest.$ac_ext
20009cat >>conftest.$ac_ext <<_ACEOF
20010/* end confdefs.h. */
20011#include <zlib.h>
20012_ACEOF
20013if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20014 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20015 ac_status=$?
20016 grep -v '^ *+' conftest.er1 >conftest.err
20017 rm -f conftest.er1
20018 cat conftest.err >&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } >/dev/null; then
20021 if test -s conftest.err; then
20022 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 20023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20024 else
20025 ac_cpp_err=
20026 fi
20027else
20028 ac_cpp_err=yes
20029fi
20030if test -z "$ac_cpp_err"; then
20031 ac_header_preproc=yes
20032else
20033 echo "$as_me: failed program was:" >&5
20034sed 's/^/| /' conftest.$ac_ext >&5
20035
20036 ac_header_preproc=no
20037fi
20038rm -f conftest.err conftest.$ac_ext
20039echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20040echo "${ECHO_T}$ac_header_preproc" >&6
20041
20042# So? What about this header?
32ddf007
VS
20043case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20044 yes:no: )
e6cc62c6
VS
20045 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
20046echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
20047 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
20048echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
20049 ac_header_preproc=yes
e6cc62c6 20050 ;;
32ddf007 20051 no:yes:* )
e6cc62c6
VS
20052 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
20053echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
32ddf007
VS
20054 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
20055echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
20056 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
20057echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
20058 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
20059echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20060 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
20061echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
20062 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
20063echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20064 (
20065 cat <<\_ASBOX
32ddf007
VS
20066## ----------------------------------------- ##
20067## Report this to wx-dev@lists.wxwindows.org ##
20068## ----------------------------------------- ##
e6cc62c6
VS
20069_ASBOX
20070 ) |
20071 sed "s/^/$as_me: WARNING: /" >&2
20072 ;;
20073esac
20074echo "$as_me:$LINENO: checking for zlib.h" >&5
20075echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
20076if test "${ac_cv_header_zlib_h+set}" = set; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 20078else
e6cc62c6
VS
20079 ac_cv_header_zlib_h=$ac_header_preproc
20080fi
20081echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
20082echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
20083
89e6bf6d
VZ
20084fi
20085
d643b80e 20086
e6cc62c6 20087
d775acfa
VZ
20088 system_zlib_h_ok=$ac_cv_header_zlib_h
20089 fi
20090
20091 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
20092 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20093echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20094if test "${ac_cv_lib_z_deflate+set}" = set; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20096else
e6cc62c6 20097 ac_check_lib_save_LIBS=$LIBS
21d1c967 20098LIBS="-lz $LIBS"
e6cc62c6 20099cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20100/* confdefs.h. */
20101_ACEOF
20102cat confdefs.h >>conftest.$ac_ext
20103cat >>conftest.$ac_ext <<_ACEOF
20104/* end confdefs.h. */
20105
21d1c967 20106/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20107#ifdef __cplusplus
20108extern "C"
20109#endif
21d1c967 20110/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20111 builtin and then its argument prototype would still apply. */
20112char deflate ();
20113int
20114main ()
20115{
20116deflate ();
20117 ;
20118 return 0;
20119}
20120_ACEOF
20121rm -f conftest.$ac_objext conftest$ac_exeext
20122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 20123 (eval $ac_link) 2>conftest.er1
e6cc62c6 20124 ac_status=$?
32ddf007
VS
20125 grep -v '^ *+' conftest.er1 >conftest.err
20126 rm -f conftest.er1
20127 cat conftest.err >&5
e6cc62c6
VS
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } &&
32ddf007
VS
20130 { ac_try='test -z "$ac_c_werror_flag"
20131 || test ! -s conftest.err'
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20134 ac_status=$?
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; } &&
20137 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139 (eval $ac_try) 2>&5
20140 ac_status=$?
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; }; then
20143 ac_cv_lib_z_deflate=yes
20144else
20145 echo "$as_me: failed program was:" >&5
20146sed 's/^/| /' conftest.$ac_ext >&5
20147
20148ac_cv_lib_z_deflate=no
20149fi
32ddf007
VS
20150rm -f conftest.err conftest.$ac_objext \
20151 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20152LIBS=$ac_check_lib_save_LIBS
20153fi
20154echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20155echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20156if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 20157 ZLIB_LINK=" -lz"
a0b9e27f 20158fi
698dcdb6 20159
d643b80e 20160 fi
247f5006 20161
21d1c967
GD
20162 if test "x$ZLIB_LINK" = "x" ; then
20163 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
20164 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20165echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20166 { (exit 1); exit 1; }; }
21d1c967 20167 else
e6cc62c6
VS
20168 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20169echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
20170 wxUSE_ZLIB=builtin
20171 fi
20172 else
20173 wxUSE_ZLIB=sys
20174 fi
20175 fi
ab9b9eab
VZ
20176fi
20177
8284b0c5 20178
21d1c967
GD
20179PNG_LINK=
20180if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 20181 cat >>confdefs.h <<\_ACEOF
21d1c967 20182#define wxUSE_LIBPNG 1
e6cc62c6 20183_ACEOF
90dd450c 20184
8284b0c5 20185
21d1c967 20186 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
20187 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20188echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
20189 wxUSE_LIBPNG=sys
20190 fi
90dd450c 20191
21d1c967 20192 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
20193 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20194echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
20195 wxUSE_LIBPNG=builtin
20196 fi
20197
20198 if test "$wxUSE_MGL" != 1 ; then
20199 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
20200 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20201echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20202if test "${ac_cv_header_png_h+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
20204else
20205 if test "$cross_compiling" = yes; then
89e6bf6d 20206 unset ac_cv_header_png_h
e6cc62c6 20207
5d3f766d 20208else
e6cc62c6 20209 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h. */
20215
ef33c576 20216 #include <png.h>
5d3f766d
VZ
20217 #include <stdio.h>
20218
20219 int main()
20220 {
20221 FILE *f=fopen("conftestval", "w");
20222 if (!f) exit(1);
20223 fprintf(f, "%s",
20224 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20225 exit(0);
20226 }
e6cc62c6
VS
20227
20228_ACEOF
20229rm -f conftest$ac_exeext
20230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20231 (eval $ac_link) 2>&5
20232 ac_status=$?
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; }; then
5d3f766d
VZ
20240 ac_cv_header_png_h=`cat conftestval`
20241else
e6cc62c6
VS
20242 echo "$as_me: program exited with status $ac_status" >&5
20243echo "$as_me: failed program was:" >&5
20244sed 's/^/| /' conftest.$ac_ext >&5
20245
20246( exit $ac_status )
20247ac_cv_header_png_h=no
5d3f766d 20248fi
32ddf007 20249rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
20250fi
20251
5d3f766d 20252fi
e6cc62c6
VS
20253echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20254echo "${ECHO_T}$ac_cv_header_png_h" >&6
20255 if test "${ac_cv_header_png_h+set}" = set; then
20256 echo "$as_me:$LINENO: checking for png.h" >&5
20257echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20258if test "${ac_cv_header_png_h+set}" = set; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20260fi
20261echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20262echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 20263else
e6cc62c6
VS
20264 # Is the header compilable?
20265echo "$as_me:$LINENO: checking png.h usability" >&5
20266echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20267cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20268/* confdefs.h. */
20269_ACEOF
20270cat confdefs.h >>conftest.$ac_ext
20271cat >>conftest.$ac_ext <<_ACEOF
20272/* end confdefs.h. */
20273$ac_includes_default
89e6bf6d 20274#include <png.h>
e6cc62c6
VS
20275_ACEOF
20276rm -f conftest.$ac_objext
20277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20278 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20279 ac_status=$?
32ddf007
VS
20280 grep -v '^ *+' conftest.er1 >conftest.err
20281 rm -f conftest.er1
20282 cat conftest.err >&5
e6cc62c6
VS
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } &&
32ddf007
VS
20285 { ac_try='test -z "$ac_c_werror_flag"
20286 || test ! -s conftest.err'
20287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288 (eval $ac_try) 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; } &&
20292 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20295 ac_status=$?
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; }; then
20298 ac_header_compiler=yes
20299else
20300 echo "$as_me: failed program was:" >&5
20301sed 's/^/| /' conftest.$ac_ext >&5
20302
20303ac_header_compiler=no
20304fi
32ddf007 20305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20307echo "${ECHO_T}$ac_header_compiler" >&6
20308
20309# Is the header present?
20310echo "$as_me:$LINENO: checking png.h presence" >&5
20311echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20312cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20313/* confdefs.h. */
20314_ACEOF
20315cat confdefs.h >>conftest.$ac_ext
20316cat >>conftest.$ac_ext <<_ACEOF
20317/* end confdefs.h. */
20318#include <png.h>
20319_ACEOF
20320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20321 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20322 ac_status=$?
20323 grep -v '^ *+' conftest.er1 >conftest.err
20324 rm -f conftest.er1
20325 cat conftest.err >&5
20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327 (exit $ac_status); } >/dev/null; then
20328 if test -s conftest.err; then
20329 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 20330 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20331 else
20332 ac_cpp_err=
20333 fi
20334else
20335 ac_cpp_err=yes
20336fi
20337if test -z "$ac_cpp_err"; then
20338 ac_header_preproc=yes
20339else
20340 echo "$as_me: failed program was:" >&5
20341sed 's/^/| /' conftest.$ac_ext >&5
20342
20343 ac_header_preproc=no
20344fi
20345rm -f conftest.err conftest.$ac_ext
20346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20347echo "${ECHO_T}$ac_header_preproc" >&6
20348
20349# So? What about this header?
32ddf007
VS
20350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20351 yes:no: )
e6cc62c6
VS
20352 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20353echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
20354 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20355echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20356 ac_header_preproc=yes
e6cc62c6 20357 ;;
32ddf007 20358 no:yes:* )
e6cc62c6
VS
20359 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20360echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
32ddf007
VS
20361 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20362echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20363 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20364echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20365 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20366echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20367 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20368echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
20369 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20370echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20371 (
20372 cat <<\_ASBOX
32ddf007
VS
20373## ----------------------------------------- ##
20374## Report this to wx-dev@lists.wxwindows.org ##
20375## ----------------------------------------- ##
e6cc62c6
VS
20376_ASBOX
20377 ) |
20378 sed "s/^/$as_me: WARNING: /" >&2
20379 ;;
20380esac
20381echo "$as_me:$LINENO: checking for png.h" >&5
20382echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20383if test "${ac_cv_header_png_h+set}" = set; then
20384 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 20385else
e6cc62c6
VS
20386 ac_cv_header_png_h=$ac_header_preproc
20387fi
20388echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20389echo "${ECHO_T}$ac_cv_header_png_h" >&6
20390
89e6bf6d
VZ
20391fi
20392
5d3f766d 20393
e6cc62c6 20394
5d3f766d 20395 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
20396 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20397echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20398if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20400else
e6cc62c6 20401 ac_check_lib_save_LIBS=$LIBS
21d1c967 20402LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 20403cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20404/* confdefs.h. */
20405_ACEOF
20406cat confdefs.h >>conftest.$ac_ext
20407cat >>conftest.$ac_ext <<_ACEOF
20408/* end confdefs.h. */
20409
21d1c967 20410/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20411#ifdef __cplusplus
20412extern "C"
20413#endif
21d1c967 20414/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20415 builtin and then its argument prototype would still apply. */
20416char png_check_sig ();
20417int
20418main ()
20419{
20420png_check_sig ();
20421 ;
20422 return 0;
20423}
20424_ACEOF
20425rm -f conftest.$ac_objext conftest$ac_exeext
20426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 20427 (eval $ac_link) 2>conftest.er1
e6cc62c6 20428 ac_status=$?
32ddf007
VS
20429 grep -v '^ *+' conftest.er1 >conftest.err
20430 rm -f conftest.er1
20431 cat conftest.err >&5
e6cc62c6
VS
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); } &&
32ddf007
VS
20434 { ac_try='test -z "$ac_c_werror_flag"
20435 || test ! -s conftest.err'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; } &&
20441 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20444 ac_status=$?
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; }; then
20447 ac_cv_lib_png_png_check_sig=yes
20448else
20449 echo "$as_me: failed program was:" >&5
20450sed 's/^/| /' conftest.$ac_ext >&5
20451
20452ac_cv_lib_png_png_check_sig=no
20453fi
32ddf007
VS
20454rm -f conftest.err conftest.$ac_objext \
20455 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20456LIBS=$ac_check_lib_save_LIBS
20457fi
20458echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20459echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20460if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 20461 PNG_LINK=" -lpng"
a0b9e27f 20462fi
90dd450c 20463
5d3f766d 20464 fi
247f5006 20465
21d1c967
GD
20466 if test "x$PNG_LINK" = "x" ; then
20467 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
20468 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20469echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20470 { (exit 1); exit 1; }; }
21d1c967 20471 else
e6cc62c6
VS
20472 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20473echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
20474 wxUSE_LIBPNG=builtin
20475 fi
20476 else
2b5f62a0 20477 wxUSE_LIBPNG=sys
21d1c967
GD
20478 fi
20479 fi
20480 fi
90dd450c 20481
21d1c967 20482 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
20483fi
20484
8284b0c5 20485
21d1c967
GD
20486JPEG_LINK=
20487if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 20488 cat >>confdefs.h <<\_ACEOF
21d1c967 20489#define wxUSE_LIBJPEG 1
e6cc62c6 20490_ACEOF
90dd450c 20491
8284b0c5 20492
21d1c967 20493 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
20494 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20495echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
20496 wxUSE_LIBJPEG=sys
20497 fi
90dd450c 20498
21d1c967
GD
20499 if test "$wxUSE_MGL" != 1 ; then
20500 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
20501 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20502echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20503 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20504 echo $ECHO_N "(cached) $ECHO_C" >&6
20505else
20506 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20507/* confdefs.h. */
20508_ACEOF
20509cat confdefs.h >>conftest.$ac_ext
20510cat >>conftest.$ac_ext <<_ACEOF
20511/* end confdefs.h. */
90dd450c 20512
21d1c967
GD
20513 #undef HAVE_STDLIB_H
20514 #include <stdio.h>
20515 #include <jpeglib.h>
90dd450c 20516
e6cc62c6
VS
20517int
20518main ()
20519{
20520
20521
20522 ;
20523 return 0;
20524}
20525_ACEOF
20526rm -f conftest.$ac_objext
20527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20528 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20529 ac_status=$?
32ddf007
VS
20530 grep -v '^ *+' conftest.er1 >conftest.err
20531 rm -f conftest.er1
20532 cat conftest.err >&5
e6cc62c6
VS
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); } &&
32ddf007
VS
20535 { ac_try='test -z "$ac_c_werror_flag"
20536 || test ! -s conftest.err'
20537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20538 (eval $ac_try) 2>&5
20539 ac_status=$?
20540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20541 (exit $ac_status); }; } &&
20542 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544 (eval $ac_try) 2>&5
20545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); }; }; then
21d1c967 20548 ac_cv_header_jpeglib_h=yes
90dd450c 20549else
e6cc62c6
VS
20550 echo "$as_me: failed program was:" >&5
20551sed 's/^/| /' conftest.$ac_ext >&5
20552
20553ac_cv_header_jpeglib_h=no
20554
90dd450c 20555fi
32ddf007 20556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 20557
90dd450c
VZ
20558fi
20559
e6cc62c6
VS
20560 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20561echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 20562
21d1c967 20563 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
20564 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20565echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20566if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20568else
e6cc62c6 20569 ac_check_lib_save_LIBS=$LIBS
21d1c967 20570LIBS="-ljpeg $LIBS"
e6cc62c6 20571cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20572/* confdefs.h. */
20573_ACEOF
20574cat confdefs.h >>conftest.$ac_ext
20575cat >>conftest.$ac_ext <<_ACEOF
20576/* end confdefs.h. */
20577
21d1c967 20578/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20579#ifdef __cplusplus
20580extern "C"
20581#endif
21d1c967 20582/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20583 builtin and then its argument prototype would still apply. */
20584char jpeg_read_header ();
20585int
20586main ()
20587{
20588jpeg_read_header ();
20589 ;
20590 return 0;
20591}
20592_ACEOF
20593rm -f conftest.$ac_objext conftest$ac_exeext
20594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 20595 (eval $ac_link) 2>conftest.er1
e6cc62c6 20596 ac_status=$?
32ddf007
VS
20597 grep -v '^ *+' conftest.er1 >conftest.err
20598 rm -f conftest.er1
20599 cat conftest.err >&5
e6cc62c6
VS
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } &&
32ddf007
VS
20602 { ac_try='test -z "$ac_c_werror_flag"
20603 || test ! -s conftest.err'
20604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605 (eval $ac_try) 2>&5
20606 ac_status=$?
20607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608 (exit $ac_status); }; } &&
20609 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611 (eval $ac_try) 2>&5
20612 ac_status=$?
20613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); }; }; then
20615 ac_cv_lib_jpeg_jpeg_read_header=yes
20616else
20617 echo "$as_me: failed program was:" >&5
20618sed 's/^/| /' conftest.$ac_ext >&5
20619
20620ac_cv_lib_jpeg_jpeg_read_header=no
20621fi
32ddf007
VS
20622rm -f conftest.err conftest.$ac_objext \
20623 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20624LIBS=$ac_check_lib_save_LIBS
20625fi
20626echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20627echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20628if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 20629 JPEG_LINK=" -ljpeg"
90dd450c
VZ
20630fi
20631
21d1c967 20632 fi
90dd450c 20633
21d1c967
GD
20634 if test "x$JPEG_LINK" = "x" ; then
20635 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
20636 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20637echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20638 { (exit 1); exit 1; }; }
21d1c967 20639 else
e6cc62c6
VS
20640 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20641echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
20642 wxUSE_LIBJPEG=builtin
20643 fi
20644 else
20645 wxUSE_LIBJPEG=sys
20646 fi
20647 fi
20648 fi
21d1c967 20649fi
90dd450c 20650
8284b0c5 20651
21d1c967 20652TIFF_LINK=
2b5f62a0 20653TIFF_PREREQ_LINKS=-lm
21d1c967 20654if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 20655 cat >>confdefs.h <<\_ACEOF
21d1c967 20656#define wxUSE_LIBTIFF 1
e6cc62c6 20657_ACEOF
21d1c967 20658
8284b0c5 20659
21d1c967 20660 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
20661 if test "$wxUSE_LIBJPEG" = "sys"; then
20662 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20663 fi
20664 if test "$wxUSE_ZLIB" = "sys"; then
20665 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20666 fi
e6cc62c6
VS
20667 if test "${ac_cv_header_tiffio_h+set}" = set; then
20668 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20669echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20670if test "${ac_cv_header_tiffio_h+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672fi
20673echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20674echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20675else
20676 # Is the header compilable?
20677echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20678echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20679cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20680/* confdefs.h. */
20681_ACEOF
20682cat confdefs.h >>conftest.$ac_ext
20683cat >>conftest.$ac_ext <<_ACEOF
20684/* end confdefs.h. */
20685$ac_includes_default
247f5006 20686#include <tiffio.h>
e6cc62c6
VS
20687_ACEOF
20688rm -f conftest.$ac_objext
20689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20690 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20691 ac_status=$?
32ddf007
VS
20692 grep -v '^ *+' conftest.er1 >conftest.err
20693 rm -f conftest.er1
20694 cat conftest.err >&5
e6cc62c6
VS
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } &&
32ddf007
VS
20697 { ac_try='test -z "$ac_c_werror_flag"
20698 || test ! -s conftest.err'
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20701 ac_status=$?
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; } &&
20704 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; }; then
20710 ac_header_compiler=yes
20711else
20712 echo "$as_me: failed program was:" >&5
20713sed 's/^/| /' conftest.$ac_ext >&5
20714
20715ac_header_compiler=no
20716fi
32ddf007 20717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20718echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20719echo "${ECHO_T}$ac_header_compiler" >&6
20720
20721# Is the header present?
20722echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20723echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20724cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20725/* confdefs.h. */
20726_ACEOF
20727cat confdefs.h >>conftest.$ac_ext
20728cat >>conftest.$ac_ext <<_ACEOF
20729/* end confdefs.h. */
20730#include <tiffio.h>
20731_ACEOF
20732if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20734 ac_status=$?
20735 grep -v '^ *+' conftest.er1 >conftest.err
20736 rm -f conftest.er1
20737 cat conftest.err >&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } >/dev/null; then
20740 if test -s conftest.err; then
20741 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 20742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20743 else
20744 ac_cpp_err=
20745 fi
20746else
20747 ac_cpp_err=yes
20748fi
20749if test -z "$ac_cpp_err"; then
20750 ac_header_preproc=yes
20751else
20752 echo "$as_me: failed program was:" >&5
20753sed 's/^/| /' conftest.$ac_ext >&5
20754
20755 ac_header_preproc=no
20756fi
20757rm -f conftest.err conftest.$ac_ext
20758echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20759echo "${ECHO_T}$ac_header_preproc" >&6
20760
20761# So? What about this header?
32ddf007
VS
20762case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20763 yes:no: )
e6cc62c6
VS
20764 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20765echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
20766 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20767echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20768 ac_header_preproc=yes
e6cc62c6 20769 ;;
32ddf007 20770 no:yes:* )
e6cc62c6
VS
20771 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20772echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
32ddf007
VS
20773 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20774echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20775 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20776echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20777 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20778echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20779 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20780echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
20781 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20782echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20783 (
20784 cat <<\_ASBOX
32ddf007
VS
20785## ----------------------------------------- ##
20786## Report this to wx-dev@lists.wxwindows.org ##
20787## ----------------------------------------- ##
e6cc62c6
VS
20788_ASBOX
20789 ) |
20790 sed "s/^/$as_me: WARNING: /" >&2
20791 ;;
20792esac
20793echo "$as_me:$LINENO: checking for tiffio.h" >&5
20794echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20795if test "${ac_cv_header_tiffio_h+set}" = set; then
20796 echo $ECHO_N "(cached) $ECHO_C" >&6
20797else
20798 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 20799fi
e6cc62c6
VS
20800echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20801echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20802
21d1c967 20803fi
e6cc62c6 20804if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
20805
20806 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
20807echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20808if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 20810else
e6cc62c6 20811 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 20812LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 20813cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20814/* confdefs.h. */
20815_ACEOF
20816cat confdefs.h >>conftest.$ac_ext
20817cat >>conftest.$ac_ext <<_ACEOF
20818/* end confdefs.h. */
20819
ab9b9eab 20820/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20821#ifdef __cplusplus
20822extern "C"
20823#endif
ab9b9eab 20824/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20825 builtin and then its argument prototype would still apply. */
20826char TIFFError ();
20827int
20828main ()
20829{
20830TIFFError ();
20831 ;
20832 return 0;
20833}
20834_ACEOF
20835rm -f conftest.$ac_objext conftest$ac_exeext
20836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 20837 (eval $ac_link) 2>conftest.er1
e6cc62c6 20838 ac_status=$?
32ddf007
VS
20839 grep -v '^ *+' conftest.er1 >conftest.err
20840 rm -f conftest.er1
20841 cat conftest.err >&5
e6cc62c6
VS
20842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843 (exit $ac_status); } &&
32ddf007
VS
20844 { ac_try='test -z "$ac_c_werror_flag"
20845 || test ! -s conftest.err'
20846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; } &&
20851 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ac_cv_lib_tiff_TIFFError=yes
20858else
20859 echo "$as_me: failed program was:" >&5
20860sed 's/^/| /' conftest.$ac_ext >&5
20861
20862ac_cv_lib_tiff_TIFFError=no
20863fi
32ddf007
VS
20864rm -f conftest.err conftest.$ac_objext \
20865 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20866LIBS=$ac_check_lib_save_LIBS
20867fi
20868echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20869echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20870if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 20871 TIFF_LINK=" -ltiff"
a0b9e27f 20872fi
cd6d6d5b 20873
e6cc62c6 20874
0e012a93 20875
a0b9e27f 20876fi
8284b0c5 20877
247f5006 20878
e6cc62c6 20879
21d1c967
GD
20880 if test "x$TIFF_LINK" = "x" ; then
20881 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
20882 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20883echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20884 { (exit 1); exit 1; }; }
90dd450c 20885 else
e6cc62c6
VS
20886 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20887echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 20888 wxUSE_LIBTIFF=builtin
d8356fa3 20889 fi
d8356fa3 20890 else
21d1c967 20891 wxUSE_LIBTIFF=sys
d8356fa3 20892 fi
21d1c967 20893 fi
21d1c967 20894fi
10f2d63a 20895
8284b0c5 20896
672abd7a 20897if test "$wxUSE_EXPAT" != "no"; then
e06468e8 20898 wxUSE_XML=yes
672abd7a
VS
20899 cat >>confdefs.h <<\_ACEOF
20900#define wxUSE_EXPAT 1
20901_ACEOF
20902
20903 cat >>confdefs.h <<\_ACEOF
20904#define wxUSE_XML 1
20905_ACEOF
20906
20907
20908 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20909 if test "${ac_cv_header_expat_h+set}" = set; then
20910 echo "$as_me:$LINENO: checking for expat.h" >&5
20911echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20912if test "${ac_cv_header_expat_h+set}" = set; then
20913 echo $ECHO_N "(cached) $ECHO_C" >&6
20914fi
20915echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20916echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20917else
20918 # Is the header compilable?
20919echo "$as_me:$LINENO: checking expat.h usability" >&5
20920echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20921cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20922/* confdefs.h. */
20923_ACEOF
20924cat confdefs.h >>conftest.$ac_ext
20925cat >>conftest.$ac_ext <<_ACEOF
20926/* end confdefs.h. */
20927$ac_includes_default
20928#include <expat.h>
20929_ACEOF
20930rm -f conftest.$ac_objext
20931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 20932 (eval $ac_compile) 2>conftest.er1
672abd7a 20933 ac_status=$?
32ddf007
VS
20934 grep -v '^ *+' conftest.er1 >conftest.err
20935 rm -f conftest.er1
20936 cat conftest.err >&5
672abd7a
VS
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } &&
32ddf007
VS
20939 { ac_try='test -z "$ac_c_werror_flag"
20940 || test ! -s conftest.err'
20941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20942 (eval $ac_try) 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); }; } &&
20946 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
20947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_header_compiler=yes
20953else
20954 echo "$as_me: failed program was:" >&5
20955sed 's/^/| /' conftest.$ac_ext >&5
20956
20957ac_header_compiler=no
20958fi
32ddf007 20959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
20960echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20961echo "${ECHO_T}$ac_header_compiler" >&6
20962
20963# Is the header present?
20964echo "$as_me:$LINENO: checking expat.h presence" >&5
20965echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20966cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20967/* confdefs.h. */
20968_ACEOF
20969cat confdefs.h >>conftest.$ac_ext
20970cat >>conftest.$ac_ext <<_ACEOF
20971/* end confdefs.h. */
20972#include <expat.h>
20973_ACEOF
20974if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20975 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20976 ac_status=$?
20977 grep -v '^ *+' conftest.er1 >conftest.err
20978 rm -f conftest.er1
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } >/dev/null; then
20982 if test -s conftest.err; then
20983 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 20984 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
672abd7a
VS
20985 else
20986 ac_cpp_err=
20987 fi
20988else
20989 ac_cpp_err=yes
20990fi
20991if test -z "$ac_cpp_err"; then
20992 ac_header_preproc=yes
20993else
20994 echo "$as_me: failed program was:" >&5
20995sed 's/^/| /' conftest.$ac_ext >&5
20996
20997 ac_header_preproc=no
20998fi
20999rm -f conftest.err conftest.$ac_ext
21000echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21001echo "${ECHO_T}$ac_header_preproc" >&6
21002
21003# So? What about this header?
32ddf007
VS
21004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21005 yes:no: )
672abd7a
VS
21006 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
21007echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
21008 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
21009echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
21010 ac_header_preproc=yes
672abd7a 21011 ;;
32ddf007 21012 no:yes:* )
672abd7a
VS
21013 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
21014echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
32ddf007
VS
21015 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
21016echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
21017 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
21018echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
21019 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
21020echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
672abd7a
VS
21021 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
21022echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
21023 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
21024echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
672abd7a
VS
21025 (
21026 cat <<\_ASBOX
32ddf007
VS
21027## ----------------------------------------- ##
21028## Report this to wx-dev@lists.wxwindows.org ##
21029## ----------------------------------------- ##
672abd7a
VS
21030_ASBOX
21031 ) |
21032 sed "s/^/$as_me: WARNING: /" >&2
21033 ;;
21034esac
21035echo "$as_me:$LINENO: checking for expat.h" >&5
21036echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
21037if test "${ac_cv_header_expat_h+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21039else
21040 ac_cv_header_expat_h=$ac_header_preproc
21041fi
21042echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
21043echo "${ECHO_T}$ac_cv_header_expat_h" >&6
21044
21045fi
5f0b6dff
VS
21046if test $ac_cv_header_expat_h = yes; then
21047 found_expat_h=1
21048fi
21049
21050
21051 if test "x$found_expat_h" = "x1"; then
21052 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
21053echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
21054if test "${wx_cv_expat_is_not_broken+set}" = set; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21056else
21057
21058
672abd7a 21059
5f0b6dff
VS
21060 ac_ext=cc
21061ac_cpp='$CXXCPP $CPPFLAGS'
21062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21065
21066 cat >conftest.$ac_ext <<_ACEOF
5f0b6dff
VS
21067/* confdefs.h. */
21068_ACEOF
21069cat confdefs.h >>conftest.$ac_ext
21070cat >>conftest.$ac_ext <<_ACEOF
21071/* end confdefs.h. */
21072#include <expat.h>
21073int
21074main ()
21075{
672abd7a 21076
5f0b6dff
VS
21077 ;
21078 return 0;
21079}
21080_ACEOF
21081rm -f conftest.$ac_objext
21082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 21083 (eval $ac_compile) 2>conftest.er1
5f0b6dff 21084 ac_status=$?
32ddf007
VS
21085 grep -v '^ *+' conftest.er1 >conftest.err
21086 rm -f conftest.er1
21087 cat conftest.err >&5
5f0b6dff
VS
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); } &&
32ddf007
VS
21090 { ac_try='test -z "$ac_cxx_werror_flag"
21091 || test ! -s conftest.err'
21092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21094 ac_status=$?
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; } &&
21097 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
21098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21099 (eval $ac_try) 2>&5
21100 ac_status=$?
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); }; }; then
21103 wx_cv_expat_is_not_broken=yes
21104else
21105 echo "$as_me: failed program was:" >&5
21106sed 's/^/| /' conftest.$ac_ext >&5
21107
21108wx_cv_expat_is_not_broken=no
21109
21110fi
32ddf007 21111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
21112 ac_ext=c
21113ac_cpp='$CPP $CPPFLAGS'
21114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21116ac_compiler_gnu=$ac_cv_c_compiler_gnu
21117
21118
21119
21120fi
21121echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21122echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21123 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21124 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
21125echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21126if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21127 echo $ECHO_N "(cached) $ECHO_C" >&6
21128else
21129 ac_check_lib_save_LIBS=$LIBS
21130LIBS="-lexpat $LIBS"
21131cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
21132/* confdefs.h. */
21133_ACEOF
21134cat confdefs.h >>conftest.$ac_ext
21135cat >>conftest.$ac_ext <<_ACEOF
21136/* end confdefs.h. */
21137
21138/* Override any gcc2 internal prototype to avoid an error. */
21139#ifdef __cplusplus
21140extern "C"
21141#endif
21142/* We use char because int might match the return type of a gcc2
21143 builtin and then its argument prototype would still apply. */
21144char XML_ParserCreate ();
21145int
21146main ()
21147{
21148XML_ParserCreate ();
21149 ;
21150 return 0;
21151}
21152_ACEOF
21153rm -f conftest.$ac_objext conftest$ac_exeext
21154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 21155 (eval $ac_link) 2>conftest.er1
672abd7a 21156 ac_status=$?
32ddf007
VS
21157 grep -v '^ *+' conftest.er1 >conftest.err
21158 rm -f conftest.er1
21159 cat conftest.err >&5
672abd7a
VS
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); } &&
32ddf007
VS
21162 { ac_try='test -z "$ac_c_werror_flag"
21163 || test ! -s conftest.err'
21164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21165 (eval $ac_try) 2>&5
21166 ac_status=$?
21167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21168 (exit $ac_status); }; } &&
21169 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
21170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21171 (eval $ac_try) 2>&5
21172 ac_status=$?
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); }; }; then
21175 ac_cv_lib_expat_XML_ParserCreate=yes
21176else
21177 echo "$as_me: failed program was:" >&5
21178sed 's/^/| /' conftest.$ac_ext >&5
21179
21180ac_cv_lib_expat_XML_ParserCreate=no
21181fi
32ddf007
VS
21182rm -f conftest.err conftest.$ac_objext \
21183 conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
21184LIBS=$ac_check_lib_save_LIBS
21185fi
21186echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21187echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21188if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21189 EXPAT_LINK=" -lexpat"
21190fi
21191
5f0b6dff 21192 fi
672abd7a
VS
21193 fi
21194 if test "x$EXPAT_LINK" = "x" ; then
21195 if test "$wxUSE_EXPAT" = "sys" ; then
21196 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21197echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21198 { (exit 1); exit 1; }; }
21199 else
21200 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21201echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21202 wxUSE_EXPAT=builtin
21203 fi
21204 else
21205 wxUSE_EXPAT=sys
21206 fi
21207 fi
21208 if test "$wxUSE_EXPAT" = "builtin" ; then
21209
21210
21211subdirs="$subdirs src/expat"
21212
21213 fi
21214fi
21215
21216
21217
3527f29c
VS
21218if test "$wxUSE_LIBMSPACK" != "no"; then
21219
21220 if test "${ac_cv_header_mspack_h+set}" = set; then
21221 echo "$as_me:$LINENO: checking for mspack.h" >&5
21222echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21223if test "${ac_cv_header_mspack_h+set}" = set; then
21224 echo $ECHO_N "(cached) $ECHO_C" >&6
21225fi
21226echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21227echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21228else
21229 # Is the header compilable?
21230echo "$as_me:$LINENO: checking mspack.h usability" >&5
21231echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21232cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
21233/* confdefs.h. */
21234_ACEOF
21235cat confdefs.h >>conftest.$ac_ext
21236cat >>conftest.$ac_ext <<_ACEOF
21237/* end confdefs.h. */
21238$ac_includes_default
21239#include <mspack.h>
21240_ACEOF
21241rm -f conftest.$ac_objext
21242if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 21243 (eval $ac_compile) 2>conftest.er1
3527f29c 21244 ac_status=$?
32ddf007
VS
21245 grep -v '^ *+' conftest.er1 >conftest.err
21246 rm -f conftest.er1
21247 cat conftest.err >&5
3527f29c
VS
21248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21249 (exit $ac_status); } &&
32ddf007
VS
21250 { ac_try='test -z "$ac_c_werror_flag"
21251 || test ! -s conftest.err'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21254 ac_status=$?
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; } &&
21257 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
21258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259 (eval $ac_try) 2>&5
21260 ac_status=$?
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; }; then
21263 ac_header_compiler=yes
21264else
21265 echo "$as_me: failed program was:" >&5
21266sed 's/^/| /' conftest.$ac_ext >&5
21267
21268ac_header_compiler=no
21269fi
32ddf007 21270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
21271echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21272echo "${ECHO_T}$ac_header_compiler" >&6
21273
21274# Is the header present?
21275echo "$as_me:$LINENO: checking mspack.h presence" >&5
21276echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21277cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
21278/* confdefs.h. */
21279_ACEOF
21280cat confdefs.h >>conftest.$ac_ext
21281cat >>conftest.$ac_ext <<_ACEOF
21282/* end confdefs.h. */
21283#include <mspack.h>
21284_ACEOF
21285if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21287 ac_status=$?
21288 grep -v '^ *+' conftest.er1 >conftest.err
21289 rm -f conftest.er1
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); } >/dev/null; then
21293 if test -s conftest.err; then
21294 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 21295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527f29c
VS
21296 else
21297 ac_cpp_err=
21298 fi
21299else
21300 ac_cpp_err=yes
21301fi
21302if test -z "$ac_cpp_err"; then
21303 ac_header_preproc=yes
21304else
21305 echo "$as_me: failed program was:" >&5
21306sed 's/^/| /' conftest.$ac_ext >&5
21307
21308 ac_header_preproc=no
21309fi
21310rm -f conftest.err conftest.$ac_ext
21311echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21312echo "${ECHO_T}$ac_header_preproc" >&6
21313
21314# So? What about this header?
32ddf007
VS
21315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21316 yes:no: )
3527f29c
VS
21317 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21318echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
21319 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21320echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21321 ac_header_preproc=yes
3527f29c 21322 ;;
32ddf007 21323 no:yes:* )
3527f29c
VS
21324 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21325echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
32ddf007
VS
21326 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21327echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21328 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21329echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21330 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21331echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
3527f29c
VS
21332 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21333echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
21334 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21335echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
3527f29c
VS
21336 (
21337 cat <<\_ASBOX
32ddf007
VS
21338## ----------------------------------------- ##
21339## Report this to wx-dev@lists.wxwindows.org ##
21340## ----------------------------------------- ##
3527f29c
VS
21341_ASBOX
21342 ) |
21343 sed "s/^/$as_me: WARNING: /" >&2
21344 ;;
21345esac
21346echo "$as_me:$LINENO: checking for mspack.h" >&5
21347echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21348if test "${ac_cv_header_mspack_h+set}" = set; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21350else
21351 ac_cv_header_mspack_h=$ac_header_preproc
21352fi
21353echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21354echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21355
21356fi
21357if test $ac_cv_header_mspack_h = yes; then
21358 found_mspack_h=1
21359fi
21360
21361
21362 if test "x$found_mspack_h" = "x1"; then
21363 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21364echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21365if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21367else
21368 ac_check_lib_save_LIBS=$LIBS
21369LIBS="-lmspack $LIBS"
21370cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
21371/* confdefs.h. */
21372_ACEOF
21373cat confdefs.h >>conftest.$ac_ext
21374cat >>conftest.$ac_ext <<_ACEOF
21375/* end confdefs.h. */
21376
21377/* Override any gcc2 internal prototype to avoid an error. */
21378#ifdef __cplusplus
21379extern "C"
21380#endif
21381/* We use char because int might match the return type of a gcc2
21382 builtin and then its argument prototype would still apply. */
21383char mspack_create_chm_decompressor ();
21384int
21385main ()
21386{
21387mspack_create_chm_decompressor ();
21388 ;
21389 return 0;
21390}
21391_ACEOF
21392rm -f conftest.$ac_objext conftest$ac_exeext
21393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 21394 (eval $ac_link) 2>conftest.er1
3527f29c 21395 ac_status=$?
32ddf007
VS
21396 grep -v '^ *+' conftest.er1 >conftest.err
21397 rm -f conftest.er1
21398 cat conftest.err >&5
3527f29c
VS
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); } &&
32ddf007
VS
21401 { ac_try='test -z "$ac_c_werror_flag"
21402 || test ! -s conftest.err'
21403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21404 (eval $ac_try) 2>&5
21405 ac_status=$?
21406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21407 (exit $ac_status); }; } &&
21408 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
21409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21410 (eval $ac_try) 2>&5
21411 ac_status=$?
21412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413 (exit $ac_status); }; }; then
21414 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21415else
21416 echo "$as_me: failed program was:" >&5
21417sed 's/^/| /' conftest.$ac_ext >&5
21418
21419ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21420fi
32ddf007
VS
21421rm -f conftest.err conftest.$ac_objext \
21422 conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
21423LIBS=$ac_check_lib_save_LIBS
21424fi
21425echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21426echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21427if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21428 MSPACK_LINK=" -lmspack"
21429fi
21430
21431 fi
21432 if test "x$MSPACK_LINK" = "x" ; then
21433 wxUSE_LIBMSPACK=no
21434 else
21435 cat >>confdefs.h <<\_ACEOF
21436#define wxUSE_LIBMSPACK 1
21437_ACEOF
21438
21439 fi
21440fi
21441
21442
21443
21d1c967 21444AFMINSTALL=
2b5f62a0 21445WIN32INSTALL=
90dd450c 21446
21d1c967
GD
21447TOOLKIT=
21448TOOLKIT_INCLUDE=
21449WIDGET_SET=
21450
21451if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
21452
21453for ac_header in w32api.h
21d1c967 21454do
e6cc62c6
VS
21455as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21456if eval "test \"\${$as_ac_Header+set}\" = set"; then
21457 echo "$as_me:$LINENO: checking for $ac_header" >&5
21458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21459if eval "test \"\${$as_ac_Header+set}\" = set"; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21461fi
21462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21464else
21465 # Is the header compilable?
21466echo "$as_me:$LINENO: checking $ac_header usability" >&5
21467echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21468cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21469/* confdefs.h. */
21470_ACEOF
21471cat confdefs.h >>conftest.$ac_ext
21472cat >>conftest.$ac_ext <<_ACEOF
21473/* end confdefs.h. */
21474$ac_includes_default
21475#include <$ac_header>
21476_ACEOF
21477rm -f conftest.$ac_objext
21478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 21479 (eval $ac_compile) 2>conftest.er1
e6cc62c6 21480 ac_status=$?
32ddf007
VS
21481 grep -v '^ *+' conftest.er1 >conftest.err
21482 rm -f conftest.er1
21483 cat conftest.err >&5
e6cc62c6
VS
21484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485 (exit $ac_status); } &&
32ddf007
VS
21486 { ac_try='test -z "$ac_c_werror_flag"
21487 || test ! -s conftest.err'
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21490 ac_status=$?
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; } &&
21493 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
21494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21495 (eval $ac_try) 2>&5
21496 ac_status=$?
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); }; }; then
21499 ac_header_compiler=yes
21500else
21501 echo "$as_me: failed program was:" >&5
21502sed 's/^/| /' conftest.$ac_ext >&5
21503
21504ac_header_compiler=no
21505fi
32ddf007 21506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
21507echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21508echo "${ECHO_T}$ac_header_compiler" >&6
21509
21510# Is the header present?
21511echo "$as_me:$LINENO: checking $ac_header presence" >&5
21512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21513cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21514/* confdefs.h. */
21515_ACEOF
21516cat confdefs.h >>conftest.$ac_ext
21517cat >>conftest.$ac_ext <<_ACEOF
21518/* end confdefs.h. */
21519#include <$ac_header>
21520_ACEOF
21521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21523 ac_status=$?
21524 grep -v '^ *+' conftest.er1 >conftest.err
21525 rm -f conftest.er1
21526 cat conftest.err >&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } >/dev/null; then
21529 if test -s conftest.err; then
21530 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 21531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
21532 else
21533 ac_cpp_err=
21534 fi
21535else
21536 ac_cpp_err=yes
21537fi
21538if test -z "$ac_cpp_err"; then
21539 ac_header_preproc=yes
21540else
21541 echo "$as_me: failed program was:" >&5
21542sed 's/^/| /' conftest.$ac_ext >&5
21543
21544 ac_header_preproc=no
21545fi
21546rm -f conftest.err conftest.$ac_ext
21547echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21548echo "${ECHO_T}$ac_header_preproc" >&6
21549
21550# So? What about this header?
32ddf007
VS
21551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21552 yes:no: )
e6cc62c6
VS
21553 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21554echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
21555 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21556echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21557 ac_header_preproc=yes
e6cc62c6 21558 ;;
32ddf007 21559 no:yes:* )
e6cc62c6
VS
21560 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21561echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
21562 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21563echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21564 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21565echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21566 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21567echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21569echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
21570 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21571echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21572 (
21573 cat <<\_ASBOX
32ddf007
VS
21574## ----------------------------------------- ##
21575## Report this to wx-dev@lists.wxwindows.org ##
21576## ----------------------------------------- ##
e6cc62c6
VS
21577_ASBOX
21578 ) |
21579 sed "s/^/$as_me: WARNING: /" >&2
21580 ;;
21581esac
21582echo "$as_me:$LINENO: checking for $ac_header" >&5
21583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21584if eval "test \"\${$as_ac_Header+set}\" = set"; then
21585 echo $ECHO_N "(cached) $ECHO_C" >&6
21586else
32ddf007 21587 eval "$as_ac_Header=\$ac_header_preproc"
f79bd02d 21588fi
e6cc62c6
VS
21589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21591
21d1c967 21592fi
e6cc62c6
VS
21593if test `eval echo '${'$as_ac_Header'}'` = yes; then
21594 cat >>confdefs.h <<_ACEOF
21595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21596_ACEOF
21597
21d1c967 21598fi
e6cc62c6 21599
21d1c967 21600done
f79bd02d 21601
e6cc62c6
VS
21602 if test "${ac_cv_header_windows_h+set}" = set; then
21603 echo "$as_me:$LINENO: checking for windows.h" >&5
21604echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21605if test "${ac_cv_header_windows_h+set}" = set; then
21606 echo $ECHO_N "(cached) $ECHO_C" >&6
21607fi
21608echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21609echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21610else
21611 # Is the header compilable?
21612echo "$as_me:$LINENO: checking windows.h usability" >&5
21613echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21614cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21615/* confdefs.h. */
21616_ACEOF
21617cat confdefs.h >>conftest.$ac_ext
21618cat >>conftest.$ac_ext <<_ACEOF
21619/* end confdefs.h. */
21620$ac_includes_default
247f5006 21621#include <windows.h>
e6cc62c6
VS
21622_ACEOF
21623rm -f conftest.$ac_objext
21624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 21625 (eval $ac_compile) 2>conftest.er1
e6cc62c6 21626 ac_status=$?
32ddf007
VS
21627 grep -v '^ *+' conftest.er1 >conftest.err
21628 rm -f conftest.er1
21629 cat conftest.err >&5
e6cc62c6
VS
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } &&
32ddf007
VS
21632 { ac_try='test -z "$ac_c_werror_flag"
21633 || test ! -s conftest.err'
21634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635 (eval $ac_try) 2>&5
21636 ac_status=$?
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); }; } &&
21639 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
21640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641 (eval $ac_try) 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; }; then
21645 ac_header_compiler=yes
21646else
21647 echo "$as_me: failed program was:" >&5
21648sed 's/^/| /' conftest.$ac_ext >&5
21649
21650ac_header_compiler=no
21651fi
32ddf007 21652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
21653echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21654echo "${ECHO_T}$ac_header_compiler" >&6
21655
21656# Is the header present?
21657echo "$as_me:$LINENO: checking windows.h presence" >&5
21658echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21659cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21660/* confdefs.h. */
21661_ACEOF
21662cat confdefs.h >>conftest.$ac_ext
21663cat >>conftest.$ac_ext <<_ACEOF
21664/* end confdefs.h. */
21665#include <windows.h>
21666_ACEOF
21667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21669 ac_status=$?
21670 grep -v '^ *+' conftest.er1 >conftest.err
21671 rm -f conftest.er1
21672 cat conftest.err >&5
21673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674 (exit $ac_status); } >/dev/null; then
21675 if test -s conftest.err; then
21676 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 21677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
21678 else
21679 ac_cpp_err=
21680 fi
21681else
21682 ac_cpp_err=yes
21683fi
21684if test -z "$ac_cpp_err"; then
21685 ac_header_preproc=yes
21686else
21687 echo "$as_me: failed program was:" >&5
21688sed 's/^/| /' conftest.$ac_ext >&5
21689
21690 ac_header_preproc=no
21691fi
21692rm -f conftest.err conftest.$ac_ext
21693echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21694echo "${ECHO_T}$ac_header_preproc" >&6
21695
21696# So? What about this header?
32ddf007
VS
21697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21698 yes:no: )
e6cc62c6
VS
21699 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21700echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
21701 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21702echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21703 ac_header_preproc=yes
e6cc62c6 21704 ;;
32ddf007 21705 no:yes:* )
e6cc62c6
VS
21706 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21707echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
32ddf007
VS
21708 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21709echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21710 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21711echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21712 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21713echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21714 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21715echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
21716 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21717echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21718 (
21719 cat <<\_ASBOX
32ddf007
VS
21720## ----------------------------------------- ##
21721## Report this to wx-dev@lists.wxwindows.org ##
21722## ----------------------------------------- ##
e6cc62c6
VS
21723_ASBOX
21724 ) |
21725 sed "s/^/$as_me: WARNING: /" >&2
21726 ;;
21727esac
21728echo "$as_me:$LINENO: checking for windows.h" >&5
21729echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21730if test "${ac_cv_header_windows_h+set}" = set; then
21731 echo $ECHO_N "(cached) $ECHO_C" >&6
21732else
21733 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 21734fi
e6cc62c6
VS
21735echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21736echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21737
90dd450c 21738fi
e6cc62c6 21739if test $ac_cv_header_windows_h = yes; then
21d1c967 21740 :
90dd450c 21741else
21d1c967 21742
e6cc62c6
VS
21743 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21744echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21745 { (exit 1); exit 1; }; }
21746
5c6fa7d2 21747fi
7b4a847f 21748
5c6fa7d2 21749
e6cc62c6 21750
b3dfbbc9 21751 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 21752
7bb2947d
MB
21753 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21754 LIBS="$LIBS -loleacc"
21755 fi
21756
21d1c967
GD
21757 case "${host}" in
21758 *-*-cygwin* )
b3dfbbc9 21759 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 21760 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 21761 esac
f79bd02d 21762
8647bec6
RG
21763 if test "$wxUSE_ODBC" = "sys" ; then
21764 wxUSE_ODBC = "yes"
21d1c967 21765 fi
8647bec6
RG
21766 if test "$wxUSE_ODBC" = "yes" ; then
21767 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 21768 cat >>confdefs.h <<\_ACEOF
8647bec6 21769#define wxUSE_ODBC 1
e6cc62c6 21770_ACEOF
f79bd02d 21771
8647bec6 21772 fi
e6cc62c6 21773
21d1c967
GD
21774 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21775 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
21776
21777 WIN32INSTALL=win32install
f79bd02d 21778fi
f79bd02d 21779
21d1c967
GD
21780if test "$wxUSE_GUI" = "yes"; then
21781 USE_GUI=1
f79bd02d 21782
21d1c967 21783 GUI_TK_LIBRARY=
f79bd02d 21784
21d1c967
GD
21785 WXGTK12=
21786 WXGTK127=
21787 WXGTK20=
0f87e84c 21788 WXGPE=
f79bd02d 21789
21d1c967
GD
21790 if test "$wxUSE_MSW" = 1 ; then
21791 TOOLKIT=MSW
21792 GUIDIST=MSW_DIST
ffef10f6
VS
21793
21794 case "${host}" in
21795 *-*-mingw32* )
21796 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21797 esac
f79bd02d
JS
21798 fi
21799
21d1c967 21800 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
21801 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21802echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
21803
21804 gtk_version_cached=1
e6cc62c6
VS
21805 if test "${wx_cv_lib_gtk+set}" = set; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 21807else
e6cc62c6 21808
21d1c967 21809 gtk_version_cached=0
e6cc62c6
VS
21810 echo "$as_me:$LINENO: result: " >&5
21811echo "${ECHO_T}" >&6
f79bd02d 21812
21d1c967
GD
21813 GTK_MODULES=
21814 if test "$wxUSE_THREADS" = "yes"; then
21815 GTK_MODULES=gthread
21816 fi
f79bd02d 21817
2b5f62a0 21818 wx_cv_lib_gtk=
21d1c967
GD
21819 if test "x$wxUSE_GTK2" = "xyes"; then
21820 # Check whether --enable-gtktest or --disable-gtktest was given.
21821if test "${enable_gtktest+set}" = set; then
21822 enableval="$enable_gtktest"
e6cc62c6 21823
f79bd02d 21824else
21d1c967 21825 enable_gtktest=yes
e6cc62c6 21826fi;
f79bd02d 21827
21d1c967
GD
21828 pkg_config_args=gtk+-2.0
21829 for module in . $GTK_MODULES
21830 do
21831 case "$module" in
e6cc62c6 21832 gthread)
21d1c967
GD
21833 pkg_config_args="$pkg_config_args gthread-2.0"
21834 ;;
21835 esac
21836 done
21837
21838 no_gtk=""
f79bd02d 21839
21d1c967
GD
21840 # Extract the first word of "pkg-config", so it can be a program name with args.
21841set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21842echo "$as_me:$LINENO: checking for $ac_word" >&5
21843echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21844if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21846else
e6cc62c6
VS
21847 case $PKG_CONFIG in
21848 [\\/]* | ?:[\\/]*)
21d1c967
GD
21849 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21850 ;;
21d1c967 21851 *)
e6cc62c6
VS
21852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21853for as_dir in $PATH
21854do
21855 IFS=$as_save_IFS
21856 test -z "$as_dir" && as_dir=.
21857 for ac_exec_ext in '' $ac_executable_extensions; do
21858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21859 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21861 break 2
21862 fi
21863done
21864done
21865
21d1c967
GD
21866 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21867 ;;
21868esac
f79bd02d 21869fi
e6cc62c6
VS
21870PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21871
21d1c967 21872if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21873 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21874echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 21875else
e6cc62c6
VS
21876 echo "$as_me:$LINENO: result: no" >&5
21877echo "${ECHO_T}no" >&6
f79bd02d
JS
21878fi
21879
8284b0c5 21880
21d1c967
GD
21881 if test x$PKG_CONFIG != xno ; then
21882 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21883 :
21884 else
21885 echo *** pkg-config too old; version 0.7 or better required.
21886 no_gtk=yes
21887 PKG_CONFIG=no
21888 fi
21889 else
21890 no_gtk=yes
21891 fi
f79bd02d 21892
21d1c967 21893 min_gtk_version=2.0.0
e6cc62c6
VS
21894 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21895echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 21896
21d1c967
GD
21897 if test x$PKG_CONFIG != xno ; then
21898 ## don't try to run the test against uninstalled libtool libs
21899 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21900 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21901 enable_gtktest=no
21902 fi
f79bd02d 21903
21d1c967
GD
21904 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21905 :
21906 else
21907 no_gtk=yes
21908 fi
21909 fi
f79bd02d 21910
21d1c967
GD
21911 if test x"$no_gtk" = x ; then
21912 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21913 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21914 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21915 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21916 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21917 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21918 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21919 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21920 if test "x$enable_gtktest" = "xyes" ; then
21921 ac_save_CFLAGS="$CFLAGS"
21922 ac_save_LIBS="$LIBS"
21923 CFLAGS="$CFLAGS $GTK_CFLAGS"
21924 LIBS="$GTK_LIBS $LIBS"
21925 rm -f conf.gtktest
21926 if test "$cross_compiling" = yes; then
21927 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21928else
e6cc62c6 21929 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21930/* confdefs.h. */
21931_ACEOF
21932cat confdefs.h >>conftest.$ac_ext
21933cat >>conftest.$ac_ext <<_ACEOF
21934/* end confdefs.h. */
f79bd02d 21935
21d1c967
GD
21936#include <gtk/gtk.h>
21937#include <stdio.h>
21938#include <stdlib.h>
f79bd02d 21939
e6cc62c6 21940int
21d1c967
GD
21941main ()
21942{
21943 int major, minor, micro;
21944 char *tmp_version;
f79bd02d 21945
21d1c967 21946 system ("touch conf.gtktest");
f79bd02d 21947
21d1c967
GD
21948 /* HP/UX 9 (%@#!) writes to sscanf strings */
21949 tmp_version = g_strdup("$min_gtk_version");
21950 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21951 printf("%s, bad version string\n", "$min_gtk_version");
21952 exit(1);
21953 }
f79bd02d 21954
21d1c967
GD
21955 if ((gtk_major_version != $gtk_config_major_version) ||
21956 (gtk_minor_version != $gtk_config_minor_version) ||
21957 (gtk_micro_version != $gtk_config_micro_version))
21958 {
e6cc62c6 21959 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21960 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21961 gtk_major_version, gtk_minor_version, gtk_micro_version);
21962 printf ("*** was found! If pkg-config was correct, then it is best\n");
21963 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21964 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21965 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21966 printf("*** required on your system.\n");
21967 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21968 printf("*** to point to the correct configuration files\n");
e6cc62c6 21969 }
21d1c967
GD
21970 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21971 (gtk_minor_version != GTK_MINOR_VERSION) ||
21972 (gtk_micro_version != GTK_MICRO_VERSION))
21973 {
21974 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21975 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21976 printf("*** library (version %d.%d.%d)\n",
21977 gtk_major_version, gtk_minor_version, gtk_micro_version);
21978 }
21979 else
21980 {
21981 if ((gtk_major_version > major) ||
21982 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21983 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21984 {
21985 return 0;
21986 }
21987 else
21988 {
21989 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21990 gtk_major_version, gtk_minor_version, gtk_micro_version);
21991 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21992 major, minor, micro);
21993 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21994 printf("***\n");
21995 printf("*** If you have already installed a sufficiently new version, this error\n");
21996 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21997 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21998 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21999 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
22000 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22001 printf("*** so that the correct libraries are found at run-time))\n");
22002 }
22003 }
22004 return 1;
22005}
f79bd02d 22006
e6cc62c6
VS
22007_ACEOF
22008rm -f conftest$ac_exeext
22009if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22010 (eval $ac_link) 2>&5
22011 ac_status=$?
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22015 (eval $ac_try) 2>&5
22016 ac_status=$?
22017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22018 (exit $ac_status); }; }; then
21d1c967 22019 :
f79bd02d 22020else
e6cc62c6
VS
22021 echo "$as_me: program exited with status $ac_status" >&5
22022echo "$as_me: failed program was:" >&5
22023sed 's/^/| /' conftest.$ac_ext >&5
22024
22025( exit $ac_status )
22026no_gtk=yes
f79bd02d 22027fi
32ddf007 22028rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 22029fi
21d1c967
GD
22030 CFLAGS="$ac_save_CFLAGS"
22031 LIBS="$ac_save_LIBS"
22032 fi
22033 fi
22034 if test "x$no_gtk" = x ; then
e6cc62c6
VS
22035 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
22036echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
22037 wx_cv_lib_gtk=2.0
21d1c967 22038 else
e6cc62c6
VS
22039 echo "$as_me:$LINENO: result: no" >&5
22040echo "${ECHO_T}no" >&6
21d1c967
GD
22041 if test "$PKG_CONFIG" = "no" ; then
22042 echo "*** A new enough version of pkg-config was not found."
22043 echo "*** See http://pkgconfig.sourceforge.net"
22044 else
22045 if test -f conf.gtktest ; then
22046 :
22047 else
22048 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
22049 ac_save_CFLAGS="$CFLAGS"
22050 ac_save_LIBS="$LIBS"
21d1c967
GD
22051 CFLAGS="$CFLAGS $GTK_CFLAGS"
22052 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 22053 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22054/* confdefs.h. */
22055_ACEOF
22056cat confdefs.h >>conftest.$ac_ext
22057cat >>conftest.$ac_ext <<_ACEOF
22058/* end confdefs.h. */
21d1c967
GD
22059
22060#include <gtk/gtk.h>
22061#include <stdio.h>
f79bd02d 22062
e6cc62c6
VS
22063int
22064main ()
22065{
22066 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22067 ;
22068 return 0;
22069}
22070_ACEOF
22071rm -f conftest.$ac_objext conftest$ac_exeext
22072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 22073 (eval $ac_link) 2>conftest.er1
e6cc62c6 22074 ac_status=$?
32ddf007
VS
22075 grep -v '^ *+' conftest.er1 >conftest.err
22076 rm -f conftest.er1
22077 cat conftest.err >&5
e6cc62c6
VS
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } &&
32ddf007
VS
22080 { ac_try='test -z "$ac_c_werror_flag"
22081 || test ! -s conftest.err'
22082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083 (eval $ac_try) 2>&5
22084 ac_status=$?
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; } &&
22087 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22089 (eval $ac_try) 2>&5
22090 ac_status=$?
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); }; }; then
21d1c967
GD
22093 echo "*** The test program compiled, but did not run. This usually means"
22094 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
22095 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
22096 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22097 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22098 echo "*** is required on your system"
22099 echo "***"
22100 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 22101 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 22102else
e6cc62c6
VS
22103 echo "$as_me: failed program was:" >&5
22104sed 's/^/| /' conftest.$ac_ext >&5
22105
22106 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 22107 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 22108fi
32ddf007
VS
22109rm -f conftest.err conftest.$ac_objext \
22110 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22111 CFLAGS="$ac_save_CFLAGS"
22112 LIBS="$ac_save_LIBS"
22113 fi
22114 fi
22115 GTK_CFLAGS=""
22116 GTK_LIBS=""
22117 :
22118 fi
e6cc62c6
VS
22119
22120
21d1c967 22121 rm -f conf.gtktest
f79bd02d 22122
2b5f62a0 22123 else
e6cc62c6
VS
22124
22125# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
22126if test "${with_gtk_prefix+set}" = set; then
22127 withval="$with_gtk_prefix"
22128 gtk_config_prefix="$withval"
22129else
22130 gtk_config_prefix=""
e6cc62c6 22131fi;
f79bd02d 22132
21d1c967
GD
22133# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22134if test "${with_gtk_exec_prefix+set}" = set; then
22135 withval="$with_gtk_exec_prefix"
22136 gtk_config_exec_prefix="$withval"
22137else
22138 gtk_config_exec_prefix=""
e6cc62c6 22139fi;
21d1c967
GD
22140# Check whether --enable-gtktest or --disable-gtktest was given.
22141if test "${enable_gtktest+set}" = set; then
22142 enableval="$enable_gtktest"
e6cc62c6 22143
21d1c967
GD
22144else
22145 enable_gtktest=yes
e6cc62c6 22146fi;
21d1c967
GD
22147
22148 for module in . $GTK_MODULES
22149 do
22150 case "$module" in
e6cc62c6 22151 gthread)
21d1c967
GD
22152 gtk_config_args="$gtk_config_args gthread"
22153 ;;
22154 esac
22155 done
22156
22157 if test x$gtk_config_exec_prefix != x ; then
22158 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22159 if test x${GTK_CONFIG+set} != xset ; then
22160 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22161 fi
22162 fi
22163 if test x$gtk_config_prefix != x ; then
22164 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22165 if test x${GTK_CONFIG+set} != xset ; then
22166 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22167 fi
22168 fi
22169
22170 # Extract the first word of "gtk-config", so it can be a program name with args.
22171set dummy gtk-config; ac_word=$2
e6cc62c6
VS
22172echo "$as_me:$LINENO: checking for $ac_word" >&5
22173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22174if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22176else
e6cc62c6
VS
22177 case $GTK_CONFIG in
22178 [\\/]* | ?:[\\/]*)
21d1c967
GD
22179 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22180 ;;
21d1c967 22181 *)
e6cc62c6
VS
22182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22183for as_dir in $PATH
22184do
22185 IFS=$as_save_IFS
22186 test -z "$as_dir" && as_dir=.
22187 for ac_exec_ext in '' $ac_executable_extensions; do
22188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22189 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22191 break 2
22192 fi
22193done
22194done
22195
21d1c967
GD
22196 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22197 ;;
22198esac
22199fi
e6cc62c6
VS
22200GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22201
21d1c967 22202if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
22203 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22204echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 22205else
e6cc62c6
VS
22206 echo "$as_me:$LINENO: result: no" >&5
22207echo "${ECHO_T}no" >&6
21d1c967
GD
22208fi
22209
22210 min_gtk_version=1.2.7
e6cc62c6
VS
22211 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22212echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
22213 no_gtk=""
22214 if test "$GTK_CONFIG" = "no" ; then
22215 no_gtk=yes
22216 else
22217 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22218 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22219 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22220 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22221 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22222 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22223 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22224 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22225 if test "x$enable_gtktest" = "xyes" ; then
22226 ac_save_CFLAGS="$CFLAGS"
22227 ac_save_LIBS="$LIBS"
22228 CFLAGS="$CFLAGS $GTK_CFLAGS"
22229 LIBS="$GTK_LIBS $LIBS"
22230 rm -f conf.gtktest
22231 if test "$cross_compiling" = yes; then
22232 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 22233else
e6cc62c6 22234 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22235/* confdefs.h. */
22236_ACEOF
22237cat confdefs.h >>conftest.$ac_ext
22238cat >>conftest.$ac_ext <<_ACEOF
22239/* end confdefs.h. */
f79bd02d 22240
21d1c967
GD
22241#include <gtk/gtk.h>
22242#include <stdio.h>
22243#include <stdlib.h>
f79bd02d 22244
e6cc62c6 22245int
21d1c967
GD
22246main ()
22247{
22248 int major, minor, micro;
22249 char *tmp_version;
22250
22251 system ("touch conf.gtktest");
22252
22253 /* HP/UX 9 (%@#!) writes to sscanf strings */
22254 tmp_version = g_strdup("$min_gtk_version");
22255 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22256 printf("%s, bad version string\n", "$min_gtk_version");
22257 exit(1);
22258 }
90dd450c 22259
21d1c967
GD
22260 if ((gtk_major_version != $gtk_config_major_version) ||
22261 (gtk_minor_version != $gtk_config_minor_version) ||
22262 (gtk_micro_version != $gtk_config_micro_version))
22263 {
e6cc62c6 22264 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
22265 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22266 gtk_major_version, gtk_minor_version, gtk_micro_version);
22267 printf ("*** was found! If gtk-config was correct, then it is best\n");
22268 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22269 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22270 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22271 printf("*** required on your system.\n");
22272 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22273 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22274 printf("*** before re-running configure\n");
e6cc62c6 22275 }
21d1c967
GD
22276#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22277 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22278 (gtk_minor_version != GTK_MINOR_VERSION) ||
22279 (gtk_micro_version != GTK_MICRO_VERSION))
22280 {
22281 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22282 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22283 printf("*** library (version %d.%d.%d)\n",
22284 gtk_major_version, gtk_minor_version, gtk_micro_version);
22285 }
22286#endif /* defined (GTK_MAJOR_VERSION) ... */
22287 else
22288 {
22289 if ((gtk_major_version > major) ||
22290 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22291 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22292 {
22293 return 0;
22294 }
22295 else
22296 {
22297 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22298 gtk_major_version, gtk_minor_version, gtk_micro_version);
22299 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22300 major, minor, micro);
22301 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22302 printf("***\n");
22303 printf("*** If you have already installed a sufficiently new version, this error\n");
22304 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22305 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22306 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22307 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22308 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22309 printf("*** so that the correct libraries are found at run-time))\n");
22310 }
22311 }
22312 return 1;
22313}
22314
e6cc62c6
VS
22315_ACEOF
22316rm -f conftest$ac_exeext
22317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22318 (eval $ac_link) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22323 (eval $ac_try) 2>&5
22324 ac_status=$?
22325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); }; }; then
21d1c967
GD
22327 :
22328else
e6cc62c6
VS
22329 echo "$as_me: program exited with status $ac_status" >&5
22330echo "$as_me: failed program was:" >&5
22331sed 's/^/| /' conftest.$ac_ext >&5
22332
22333( exit $ac_status )
22334no_gtk=yes
21d1c967 22335fi
32ddf007 22336rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 22337fi
21d1c967
GD
22338 CFLAGS="$ac_save_CFLAGS"
22339 LIBS="$ac_save_LIBS"
22340 fi
22341 fi
22342 if test "x$no_gtk" = x ; then
e6cc62c6
VS
22343 echo "$as_me:$LINENO: result: yes" >&5
22344echo "${ECHO_T}yes" >&6
22345 wx_cv_lib_gtk=1.2.7
21d1c967 22346 else
e6cc62c6
VS
22347 echo "$as_me:$LINENO: result: no" >&5
22348echo "${ECHO_T}no" >&6
21d1c967
GD
22349 if test "$GTK_CONFIG" = "no" ; then
22350 echo "*** The gtk-config script installed by GTK could not be found"
22351 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22352 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22353 echo "*** full path to gtk-config."
22354 else
22355 if test -f conf.gtktest ; then
22356 :
22357 else
22358 echo "*** Could not run GTK test program, checking why..."
22359 CFLAGS="$CFLAGS $GTK_CFLAGS"
22360 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 22361 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22362/* confdefs.h. */
22363_ACEOF
22364cat confdefs.h >>conftest.$ac_ext
22365cat >>conftest.$ac_ext <<_ACEOF
22366/* end confdefs.h. */
21d1c967
GD
22367
22368#include <gtk/gtk.h>
22369#include <stdio.h>
22370
e6cc62c6
VS
22371int
22372main ()
22373{
22374 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22375 ;
22376 return 0;
22377}
22378_ACEOF
22379rm -f conftest.$ac_objext conftest$ac_exeext
22380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 22381 (eval $ac_link) 2>conftest.er1
e6cc62c6 22382 ac_status=$?
32ddf007
VS
22383 grep -v '^ *+' conftest.er1 >conftest.err
22384 rm -f conftest.er1
22385 cat conftest.err >&5
e6cc62c6
VS
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } &&
32ddf007
VS
22388 { ac_try='test -z "$ac_c_werror_flag"
22389 || test ! -s conftest.err'
22390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22391 (eval $ac_try) 2>&5
22392 ac_status=$?
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); }; } &&
22395 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397 (eval $ac_try) 2>&5
22398 ac_status=$?
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }; }; then
21d1c967
GD
22401 echo "*** The test program compiled, but did not run. This usually means"
22402 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22403 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22404 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22405 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22406 echo "*** is required on your system"
22407 echo "***"
22408 echo "*** If you have an old version installed, it is best to remove it, although"
22409 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22410 echo "***"
22411 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22412 echo "*** came with the system with the command"
22413 echo "***"
e6cc62c6 22414 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22415else
e6cc62c6
VS
22416 echo "$as_me: failed program was:" >&5
22417sed 's/^/| /' conftest.$ac_ext >&5
22418
22419 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22420 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22421 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22422 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22423fi
32ddf007
VS
22424rm -f conftest.err conftest.$ac_objext \
22425 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22426 CFLAGS="$ac_save_CFLAGS"
22427 LIBS="$ac_save_LIBS"
22428 fi
22429 fi
22430 GTK_CFLAGS=""
22431 GTK_LIBS=""
22432 :
22433 fi
e6cc62c6
VS
22434
22435
21d1c967
GD
22436 rm -f conf.gtktest
22437
21d1c967 22438
2b5f62a0 22439 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
22440
22441# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
22442if test "${with_gtk_prefix+set}" = set; then
22443 withval="$with_gtk_prefix"
22444 gtk_config_prefix="$withval"
22445else
22446 gtk_config_prefix=""
e6cc62c6 22447fi;
f79bd02d 22448
21d1c967
GD
22449# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22450if test "${with_gtk_exec_prefix+set}" = set; then
22451 withval="$with_gtk_exec_prefix"
22452 gtk_config_exec_prefix="$withval"
22453else
22454 gtk_config_exec_prefix=""
e6cc62c6 22455fi;
21d1c967
GD
22456# Check whether --enable-gtktest or --disable-gtktest was given.
22457if test "${enable_gtktest+set}" = set; then
22458 enableval="$enable_gtktest"
e6cc62c6 22459
90dd450c 22460else
21d1c967 22461 enable_gtktest=yes
e6cc62c6 22462fi;
21d1c967
GD
22463
22464 for module in . $GTK_MODULES
22465 do
22466 case "$module" in
e6cc62c6 22467 gthread)
21d1c967
GD
22468 gtk_config_args="$gtk_config_args gthread"
22469 ;;
22470 esac
22471 done
22472
22473 if test x$gtk_config_exec_prefix != x ; then
22474 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22475 if test x${GTK_CONFIG+set} != xset ; then
22476 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22477 fi
22478 fi
22479 if test x$gtk_config_prefix != x ; then
22480 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22481 if test x${GTK_CONFIG+set} != xset ; then
22482 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22483 fi
22484 fi
22485
22486 # Extract the first word of "gtk-config", so it can be a program name with args.
22487set dummy gtk-config; ac_word=$2
e6cc62c6
VS
22488echo "$as_me:$LINENO: checking for $ac_word" >&5
22489echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22490if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22492else
e6cc62c6
VS
22493 case $GTK_CONFIG in
22494 [\\/]* | ?:[\\/]*)
21d1c967
GD
22495 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22496 ;;
21d1c967 22497 *)
e6cc62c6
VS
22498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22499for as_dir in $PATH
22500do
22501 IFS=$as_save_IFS
22502 test -z "$as_dir" && as_dir=.
22503 for ac_exec_ext in '' $ac_executable_extensions; do
22504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22505 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22507 break 2
22508 fi
22509done
22510done
22511
21d1c967
GD
22512 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22513 ;;
22514esac
22515fi
e6cc62c6
VS
22516GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22517
21d1c967 22518if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
22519 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22520echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 22521else
e6cc62c6
VS
22522 echo "$as_me:$LINENO: result: no" >&5
22523echo "${ECHO_T}no" >&6
21d1c967
GD
22524fi
22525
22526 min_gtk_version=1.2.3
e6cc62c6
VS
22527 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22528echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
22529 no_gtk=""
22530 if test "$GTK_CONFIG" = "no" ; then
22531 no_gtk=yes
22532 else
22533 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22534 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22535 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22536 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22537 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22538 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22539 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22540 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22541 if test "x$enable_gtktest" = "xyes" ; then
22542 ac_save_CFLAGS="$CFLAGS"
22543 ac_save_LIBS="$LIBS"
22544 CFLAGS="$CFLAGS $GTK_CFLAGS"
22545 LIBS="$GTK_LIBS $LIBS"
22546 rm -f conf.gtktest
22547 if test "$cross_compiling" = yes; then
22548 echo $ac_n "cross compiling; assumed OK... $ac_c"
22549else
e6cc62c6 22550 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22551/* confdefs.h. */
22552_ACEOF
22553cat confdefs.h >>conftest.$ac_ext
22554cat >>conftest.$ac_ext <<_ACEOF
22555/* end confdefs.h. */
21d1c967
GD
22556
22557#include <gtk/gtk.h>
22558#include <stdio.h>
22559#include <stdlib.h>
22560
e6cc62c6 22561int
21d1c967
GD
22562main ()
22563{
22564 int major, minor, micro;
22565 char *tmp_version;
22566
22567 system ("touch conf.gtktest");
22568
22569 /* HP/UX 9 (%@#!) writes to sscanf strings */
22570 tmp_version = g_strdup("$min_gtk_version");
22571 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22572 printf("%s, bad version string\n", "$min_gtk_version");
22573 exit(1);
22574 }
22575
22576 if ((gtk_major_version != $gtk_config_major_version) ||
22577 (gtk_minor_version != $gtk_config_minor_version) ||
22578 (gtk_micro_version != $gtk_config_micro_version))
22579 {
e6cc62c6 22580 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
22581 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22582 gtk_major_version, gtk_minor_version, gtk_micro_version);
22583 printf ("*** was found! If gtk-config was correct, then it is best\n");
22584 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22585 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22586 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22587 printf("*** required on your system.\n");
22588 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22589 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22590 printf("*** before re-running configure\n");
e6cc62c6 22591 }
21d1c967
GD
22592#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22593 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22594 (gtk_minor_version != GTK_MINOR_VERSION) ||
22595 (gtk_micro_version != GTK_MICRO_VERSION))
22596 {
22597 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22598 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22599 printf("*** library (version %d.%d.%d)\n",
22600 gtk_major_version, gtk_minor_version, gtk_micro_version);
22601 }
22602#endif /* defined (GTK_MAJOR_VERSION) ... */
22603 else
22604 {
22605 if ((gtk_major_version > major) ||
22606 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22607 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22608 {
22609 return 0;
22610 }
22611 else
22612 {
22613 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22614 gtk_major_version, gtk_minor_version, gtk_micro_version);
22615 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22616 major, minor, micro);
22617 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22618 printf("***\n");
22619 printf("*** If you have already installed a sufficiently new version, this error\n");
22620 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22621 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22622 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22623 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22624 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22625 printf("*** so that the correct libraries are found at run-time))\n");
22626 }
22627 }
22628 return 1;
22629}
22630
e6cc62c6
VS
22631_ACEOF
22632rm -f conftest$ac_exeext
22633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22634 (eval $ac_link) 2>&5
22635 ac_status=$?
22636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22639 (eval $ac_try) 2>&5
22640 ac_status=$?
22641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642 (exit $ac_status); }; }; then
21d1c967
GD
22643 :
22644else
e6cc62c6
VS
22645 echo "$as_me: program exited with status $ac_status" >&5
22646echo "$as_me: failed program was:" >&5
22647sed 's/^/| /' conftest.$ac_ext >&5
22648
22649( exit $ac_status )
22650no_gtk=yes
21d1c967 22651fi
32ddf007 22652rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 22653fi
21d1c967
GD
22654 CFLAGS="$ac_save_CFLAGS"
22655 LIBS="$ac_save_LIBS"
22656 fi
22657 fi
22658 if test "x$no_gtk" = x ; then
e6cc62c6
VS
22659 echo "$as_me:$LINENO: result: yes" >&5
22660echo "${ECHO_T}yes" >&6
22661 wx_cv_lib_gtk=1.2.3
21d1c967 22662 else
e6cc62c6
VS
22663 echo "$as_me:$LINENO: result: no" >&5
22664echo "${ECHO_T}no" >&6
21d1c967
GD
22665 if test "$GTK_CONFIG" = "no" ; then
22666 echo "*** The gtk-config script installed by GTK could not be found"
22667 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22668 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22669 echo "*** full path to gtk-config."
22670 else
22671 if test -f conf.gtktest ; then
22672 :
22673 else
22674 echo "*** Could not run GTK test program, checking why..."
22675 CFLAGS="$CFLAGS $GTK_CFLAGS"
22676 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 22677 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22678/* confdefs.h. */
22679_ACEOF
22680cat confdefs.h >>conftest.$ac_ext
22681cat >>conftest.$ac_ext <<_ACEOF
22682/* end confdefs.h. */
21d1c967
GD
22683
22684#include <gtk/gtk.h>
22685#include <stdio.h>
f79bd02d 22686
e6cc62c6
VS
22687int
22688main ()
22689{
22690 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22691 ;
22692 return 0;
22693}
22694_ACEOF
22695rm -f conftest.$ac_objext conftest$ac_exeext
22696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 22697 (eval $ac_link) 2>conftest.er1
e6cc62c6 22698 ac_status=$?
32ddf007
VS
22699 grep -v '^ *+' conftest.er1 >conftest.err
22700 rm -f conftest.er1
22701 cat conftest.err >&5
e6cc62c6
VS
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); } &&
32ddf007
VS
22704 { ac_try='test -z "$ac_c_werror_flag"
22705 || test ! -s conftest.err'
22706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22707 (eval $ac_try) 2>&5
22708 ac_status=$?
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); }; } &&
22711 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713 (eval $ac_try) 2>&5
22714 ac_status=$?
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); }; }; then
21d1c967
GD
22717 echo "*** The test program compiled, but did not run. This usually means"
22718 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22719 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22720 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22721 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22722 echo "*** is required on your system"
22723 echo "***"
22724 echo "*** If you have an old version installed, it is best to remove it, although"
22725 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22726 echo "***"
22727 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22728 echo "*** came with the system with the command"
22729 echo "***"
e6cc62c6 22730 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22731else
e6cc62c6
VS
22732 echo "$as_me: failed program was:" >&5
22733sed 's/^/| /' conftest.$ac_ext >&5
22734
22735 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22736 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22737 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22738 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22739fi
32ddf007
VS
22740rm -f conftest.err conftest.$ac_objext \
22741 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22742 CFLAGS="$ac_save_CFLAGS"
22743 LIBS="$ac_save_LIBS"
22744 fi
22745 fi
22746 GTK_CFLAGS=""
22747 GTK_LIBS=""
22748 :
22749 fi
e6cc62c6
VS
22750
22751
21d1c967 22752 rm -f conf.gtktest
f79bd02d 22753
2b5f62a0 22754 fi
21d1c967
GD
22755 fi
22756
22757 if test -z "$wx_cv_lib_gtk"; then
22758 wx_cv_lib_gtk=none
22759 else
22760 wx_cv_cflags_gtk=$GTK_CFLAGS
22761 wx_cv_libs_gtk=$GTK_LIBS
22762 fi
e6cc62c6
VS
22763
22764
5c6fa7d2 22765fi
52127426 22766
8284b0c5 22767
21d1c967 22768 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
22769 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22770echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
22771 fi
22772
22773 case "$wx_cv_lib_gtk" in
22774 2.0) WXGTK20=1
2b5f62a0 22775 TOOLKIT_VERSION=2
21d1c967
GD
22776 ;;
22777 1.2.7) WXGTK127=1
22778 WXGTK12=1
22779 ;;
22780 1.2.3) WXGTK12=1
22781 ;;
e6cc62c6
VS
22782 *) { { echo "$as_me:$LINENO: error:
22783Please check that gtk-config is in path, the directory
22784where GTK+ libraries are installed (returned by
22785'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22786equivalent variable and GTK+ is version 1.2.3 or above.
22787 " >&5
22788echo "$as_me: error:
247f5006
VZ
22789Please check that gtk-config is in path, the directory
22790where GTK+ libraries are installed (returned by
22791'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22792equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
22793 " >&2;}
22794 { (exit 1); exit 1; }; }
21d1c967
GD
22795 ;;
22796 esac
22797
b13cd66e
VZ
22798 if test "$WXGTK20" = 1; then
22799 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 22800
f09359cf
VS
22801 succeeded=no
22802
22803 if test -z "$PKG_CONFIG"; then
22804 # Extract the first word of "pkg-config", so it can be a program name with args.
22805set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22806echo "$as_me:$LINENO: checking for $ac_word" >&5
22807echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22808if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22809 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 22810else
e6cc62c6
VS
22811 case $PKG_CONFIG in
22812 [\\/]* | ?:[\\/]*)
f09359cf
VS
22813 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22814 ;;
f09359cf 22815 *)
e6cc62c6
VS
22816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22817for as_dir in $PATH
22818do
22819 IFS=$as_save_IFS
22820 test -z "$as_dir" && as_dir=.
22821 for ac_exec_ext in '' $ac_executable_extensions; do
22822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22823 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22825 break 2
22826 fi
22827done
22828done
22829
f09359cf
VS
22830 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22831 ;;
22832esac
22833fi
e6cc62c6
VS
22834PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22835
f09359cf 22836if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22837 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22838echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 22839else
e6cc62c6
VS
22840 echo "$as_me:$LINENO: result: no" >&5
22841echo "${ECHO_T}no" >&6
f09359cf
VS
22842fi
22843
22844 fi
22845
22846 if test "$PKG_CONFIG" = "no" ; then
22847 echo "*** The pkg-config script could not be found. Make sure it is"
22848 echo "*** in your path, or set the PKG_CONFIG environment variable"
22849 echo "*** to the full path to pkg-config."
22850 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22851 else
22852 PKG_CONFIG_MIN_VERSION=0.9.0
22853 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22854 echo "$as_me:$LINENO: checking for pangoft2" >&5
22855echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
22856
22857 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22858 echo "$as_me:$LINENO: result: yes" >&5
22859echo "${ECHO_T}yes" >&6
f09359cf
VS
22860 succeeded=yes
22861
e6cc62c6
VS
22862 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22863echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 22864 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22865 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22866echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 22867
e6cc62c6
VS
22868 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22869echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 22870 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22871 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22872echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
22873 else
22874 PANGOFT2_CFLAGS=""
22875 PANGOFT2_LIBS=""
e6cc62c6 22876 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
22877 ## do set a variable so people can do so.
22878 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22879
f09359cf
VS
22880 fi
22881
e6cc62c6
VS
22882
22883
f09359cf
VS
22884 else
22885 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22886 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22887 fi
22888 fi
22889
22890 if test $succeeded = yes; then
e6cc62c6 22891
b13cd66e 22892 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22893 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22894
f09359cf 22895 else
e6cc62c6
VS
22896
22897 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22898echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 22899 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22900
22901
f09359cf
VS
22902 fi
22903
b13cd66e 22904 fi
2b5f62a0
VZ
22905 else
22906 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
22907 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22908echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
22909 wxUSE_UNICODE=no
22910 fi
22911 fi
22912
22913 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
22914
22915for ac_func in poll
2b5f62a0 22916do
e6cc62c6
VS
22917as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22918echo "$as_me:$LINENO: checking for $ac_func" >&5
22919echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22920if eval "test \"\${$as_ac_var+set}\" = set"; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22922else
22923 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22924/* confdefs.h. */
22925_ACEOF
22926cat confdefs.h >>conftest.$ac_ext
22927cat >>conftest.$ac_ext <<_ACEOF
22928/* end confdefs.h. */
32ddf007
VS
22929/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22931#define $ac_func innocuous_$ac_func
22932
2b5f62a0 22933/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22934 which can conflict with char $ac_func (); below.
22935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22936 <limits.h> exists even on freestanding compilers. */
32ddf007 22937
e6cc62c6
VS
22938#ifdef __STDC__
22939# include <limits.h>
22940#else
22941# include <assert.h>
22942#endif
32ddf007
VS
22943
22944#undef $ac_func
22945
2b5f62a0 22946/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22947#ifdef __cplusplus
22948extern "C"
22949{
22950#endif
2b5f62a0 22951/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22952 builtin and then its argument prototype would still apply. */
22953char $ac_func ();
2b5f62a0
VZ
22954/* The GNU C library defines this for functions which it implements
22955 to always fail with ENOSYS. Some functions are actually named
22956 something starting with __ and the normal name is an alias. */
22957#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22958choke me
22959#else
e6cc62c6
VS
22960char (*f) () = $ac_func;
22961#endif
22962#ifdef __cplusplus
22963}
2b5f62a0
VZ
22964#endif
22965
e6cc62c6
VS
22966int
22967main ()
22968{
22969return f != $ac_func;
22970 ;
22971 return 0;
22972}
22973_ACEOF
22974rm -f conftest.$ac_objext conftest$ac_exeext
22975if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 22976 (eval $ac_link) 2>conftest.er1
e6cc62c6 22977 ac_status=$?
32ddf007
VS
22978 grep -v '^ *+' conftest.er1 >conftest.err
22979 rm -f conftest.er1
22980 cat conftest.err >&5
e6cc62c6
VS
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); } &&
32ddf007
VS
22983 { ac_try='test -z "$ac_c_werror_flag"
22984 || test ! -s conftest.err'
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_exeext'
e6cc62c6
VS
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 eval "$as_ac_var=yes"
22997else
22998 echo "$as_me: failed program was:" >&5
22999sed 's/^/| /' conftest.$ac_ext >&5
23000
23001eval "$as_ac_var=no"
23002fi
32ddf007
VS
23003rm -f conftest.err conftest.$ac_objext \
23004 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23005fi
23006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23007echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23008if test `eval echo '${'$as_ac_var'}'` = yes; then
23009 cat >>confdefs.h <<_ACEOF
23010#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23011_ACEOF
2b5f62a0 23012
2b5f62a0
VZ
23013fi
23014done
23015
f09359cf
VS
23016 fi
23017
21d1c967 23018 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 23019 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
23020
23021 AFMINSTALL=afminstall
23022 TOOLKIT=GTK
23023 GUIDIST=GTK_DIST
23024
e6cc62c6
VS
23025 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
23026echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
23027if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
23028 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23029else
e6cc62c6 23030 ac_check_lib_save_LIBS=$LIBS
21d1c967 23031LIBS="-lgdk $LIBS"
e6cc62c6 23032cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23033/* confdefs.h. */
23034_ACEOF
23035cat confdefs.h >>conftest.$ac_ext
23036cat >>conftest.$ac_ext <<_ACEOF
23037/* end confdefs.h. */
23038
5c6fa7d2 23039/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23040#ifdef __cplusplus
23041extern "C"
23042#endif
5c6fa7d2 23043/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23044 builtin and then its argument prototype would still apply. */
23045char gdk_im_open ();
23046int
23047main ()
23048{
23049gdk_im_open ();
23050 ;
23051 return 0;
23052}
23053_ACEOF
23054rm -f conftest.$ac_objext conftest$ac_exeext
23055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23056 (eval $ac_link) 2>conftest.er1
e6cc62c6 23057 ac_status=$?
32ddf007
VS
23058 grep -v '^ *+' conftest.er1 >conftest.err
23059 rm -f conftest.er1
23060 cat conftest.err >&5
e6cc62c6
VS
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } &&
32ddf007
VS
23063 { ac_try='test -z "$ac_c_werror_flag"
23064 || test ! -s conftest.err'
23065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066 (eval $ac_try) 2>&5
23067 ac_status=$?
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); }; } &&
23070 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072 (eval $ac_try) 2>&5
23073 ac_status=$?
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); }; }; then
23076 ac_cv_lib_gdk_gdk_im_open=yes
23077else
23078 echo "$as_me: failed program was:" >&5
23079sed 's/^/| /' conftest.$ac_ext >&5
23080
23081ac_cv_lib_gdk_gdk_im_open=no
23082fi
32ddf007
VS
23083rm -f conftest.err conftest.$ac_objext \
23084 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23085LIBS=$ac_check_lib_save_LIBS
23086fi
23087echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
23088echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
23089if test $ac_cv_lib_gdk_gdk_im_open = yes; then
23090 cat >>confdefs.h <<\_ACEOF
21d1c967 23091#define HAVE_XIM 1
e6cc62c6 23092_ACEOF
21d1c967 23093
90dd450c 23094fi
1e6feb95 23095
0f87e84c
RR
23096
23097
23098 if test "$wxUSE_GPE" = "yes"; then
23099 echo "$as_me:$LINENO: checking for gpewidget library" >&5
23100echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6
23101
23102ac_find_libraries=
23103for ac_dir in $SEARCH_LIB /usr/lib;
23104 do
23105 for ac_extension in a so sl dylib; do
23106 if test -f "$ac_dir/libgpewidget.$ac_extension"; then
23107 ac_find_libraries=$ac_dir
23108 break 2
23109 fi
23110 done
23111 done
23112
23113 if test "$ac_find_libraries" != "" ; then
23114
23115 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
23116 result=$?
23117 if test $result = 0; then
23118 ac_path_to_link=""
23119 else
23120 ac_path_to_link=" -L$ac_find_libraries"
23121 fi
23122
23123 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
23124 WXGPE=1
23125 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
23126echo "${ECHO_T}found at $ac_find_libraries" >&6
23127 else
23128 echo "$as_me:$LINENO: result: not found" >&5
23129echo "${ECHO_T}not found" >&6
23130 fi
23131
23132 fi
21d1c967 23133 fi
1e6feb95 23134
21d1c967 23135 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
23136 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
23137echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 23138 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
23139 echo "$as_me:$LINENO: result: not found" >&5
23140echo "${ECHO_T}not found" >&6
23141 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23142echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23143 { (exit 1); exit 1; }; }
21d1c967 23144 else
e6cc62c6
VS
23145 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23146echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
23147 fi
23148
e6cc62c6
VS
23149 echo "$as_me:$LINENO: checking for libmgl location" >&5
23150echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 23151 case "${host}" in
21d1c967 23152 *-*-linux* )
e46d2a18
VS
23153 if test "x$wxUSE_SHARED" = xyes ; then
23154 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 23155 else
e46d2a18 23156 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 23157 fi
21d1c967
GD
23158 ;;
23159 *-pc-msdosdjgpp )
63a76696 23160 mgl_os_candidates="dos32/dj2"
21d1c967
GD
23161 ;;
23162 *)
e6cc62c6
VS
23163 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23164echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23165 { (exit 1); exit 1; }; }
21d1c967 23166 esac
1e6feb95 23167
21d1c967 23168 mgl_lib_type=""
63a76696
VS
23169 mgl_os=""
23170
23171 for mgl_os_i in $mgl_os_candidates ; do
23172 if test "x$mgl_os" = x ; then
23173 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23174 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23175 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23176 mgl_lib_type=debug
23177 mgl_os=$mgl_os_i
23178 fi
23179 fi
23180 if test "x$mgl_lib_type" = x ; then
23181 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23182 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23183 mgl_lib_type=release
23184 mgl_os=$mgl_os_i
23185 fi
23186 fi
21d1c967 23187 fi
63a76696 23188 done
2224580a 23189
63a76696 23190 if test "x$mgl_os" = x ; then
e6cc62c6
VS
23191 echo "$as_me:$LINENO: result: not found" >&5
23192echo "${ECHO_T}not found" >&6
23193 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23194echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23195 { (exit 1); exit 1; }; }
63a76696 23196 fi
e6cc62c6
VS
23197 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23198echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 23199
1d1b75ac
VZ
23200 wxUSE_UNIVERSAL="yes"
23201
21d1c967
GD
23202 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23203 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23204
90dd450c 23205 AFMINSTALL=afminstall
21d1c967
GD
23206 TOOLKIT=MGL
23207 GUIDIST=MGL_DIST
23208 fi
dad6c0ea 23209
21d1c967 23210 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
23211 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23212echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 23213 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
23214 echo "$as_me:$LINENO: result: not found" >&5
23215echo "${ECHO_T}not found" >&6
23216 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23217echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23218 { (exit 1); exit 1; }; }
21d1c967 23219 else
e6cc62c6
VS
23220 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23221echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 23222 fi
f6bcfd97 23223
21d1c967 23224 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
23225 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23226echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 23227 else
e6cc62c6
VS
23228 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23229echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23230 { (exit 1); exit 1; }; }
90dd450c 23231 fi
0b2effe9 23232
21d1c967
GD
23233 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23234 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23235
1d1b75ac
VZ
23236 wxUSE_UNIVERSAL="yes"
23237
21d1c967
GD
23238 AFMINSTALL=afminstall
23239 TOOLKIT=MICROWIN
23240 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
23241
23242 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 23243 fi
f6bcfd97 23244
21d1c967 23245 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
23246 echo "$as_me:$LINENO: checking for X" >&5
23247echo $ECHO_N "checking for X... $ECHO_C" >&6
23248
d8356fa3 23249
21d1c967
GD
23250# Check whether --with-x or --without-x was given.
23251if test "${with_x+set}" = set; then
23252 withval="$with_x"
2224580a 23253
e6cc62c6 23254fi;
21d1c967
GD
23255# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23256if test "x$with_x" = xno; then
23257 # The user explicitly disabled X.
23258 have_x=disabled
23259else
23260 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23261 # Both variables are already set.
23262 have_x=yes
23263 else
e6cc62c6
VS
23264 if test "${ac_cv_have_x+set}" = set; then
23265 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
23266else
23267 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
23268ac_x_includes=no ac_x_libraries=no
23269rm -fr conftest.dir
23270if mkdir conftest.dir; then
23271 cd conftest.dir
21d1c967 23272 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 23273 cat >Imakefile <<'_ACEOF'
21d1c967
GD
23274acfindx:
23275 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 23276_ACEOF
21d1c967
GD
23277 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23278 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23279 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23280 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23281 for ac_extension in a so sl; do
23282 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
32ddf007
VS
23283 test -f $ac_im_libdir/libX11.$ac_extension; then
23284 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
23285 fi
23286 done
23287 # Screen out bogus values from the imake configuration. They are
23288 # bogus both because they are the default anyway, and because
23289 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 23290 case $ac_im_incroot in
21d1c967 23291 /usr/include) ;;
e6cc62c6 23292 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 23293 esac
e6cc62c6 23294 case $ac_im_usrlibdir in
21d1c967 23295 /usr/lib | /lib) ;;
e6cc62c6 23296 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
23297 esac
23298 fi
23299 cd ..
e6cc62c6 23300 rm -fr conftest.dir
21d1c967 23301fi
10f2d63a 23302
e6cc62c6
VS
23303# Standard set of common directories for X headers.
23304# Check X11 before X11Rn because it is often a symlink to the current release.
23305ac_x_header_dirs='
23306/usr/X11/include
23307/usr/X11R6/include
23308/usr/X11R5/include
23309/usr/X11R4/include
23310
23311/usr/include/X11
23312/usr/include/X11R6
23313/usr/include/X11R5
23314/usr/include/X11R4
23315
23316/usr/local/X11/include
23317/usr/local/X11R6/include
23318/usr/local/X11R5/include
23319/usr/local/X11R4/include
23320
23321/usr/local/include/X11
23322/usr/local/include/X11R6
23323/usr/local/include/X11R5
23324/usr/local/include/X11R4
23325
23326/usr/X386/include
23327/usr/x386/include
23328/usr/XFree86/include/X11
23329
23330/usr/include
23331/usr/local/include
23332/usr/unsupported/include
23333/usr/athena/include
23334/usr/local/x11r5/include
23335/usr/lpp/Xamples/include
23336
23337/usr/openwin/include
23338/usr/openwin/share/include'
23339
23340if test "$ac_x_includes" = no; then
23341 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 23342 # First, try using that file with no special directory specified.
e6cc62c6 23343 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23344/* confdefs.h. */
23345_ACEOF
23346cat confdefs.h >>conftest.$ac_ext
23347cat >>conftest.$ac_ext <<_ACEOF
23348/* end confdefs.h. */
23349#include <X11/Intrinsic.h>
23350_ACEOF
23351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23353 ac_status=$?
23354 grep -v '^ *+' conftest.er1 >conftest.err
23355 rm -f conftest.er1
23356 cat conftest.err >&5
23357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23358 (exit $ac_status); } >/dev/null; then
23359 if test -s conftest.err; then
23360 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 23361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
23362 else
23363 ac_cpp_err=
23364 fi
23365else
23366 ac_cpp_err=yes
23367fi
23368if test -z "$ac_cpp_err"; then
21d1c967
GD
23369 # We can compile using X headers with no special include directory.
23370ac_x_includes=
90dd450c 23371else
e6cc62c6
VS
23372 echo "$as_me: failed program was:" >&5
23373sed 's/^/| /' conftest.$ac_ext >&5
23374
23375 for ac_dir in $ac_x_header_dirs; do
23376 if test -r "$ac_dir/X11/Intrinsic.h"; then
23377 ac_x_includes=$ac_dir
23378 break
23379 fi
23380done
3a922bb4 23381fi
e6cc62c6
VS
23382rm -f conftest.err conftest.$ac_ext
23383fi # $ac_x_includes = no
10f2d63a 23384
e6cc62c6 23385if test "$ac_x_libraries" = no; then
21d1c967 23386 # Check for the libraries.
21d1c967
GD
23387 # See if we find them without any special options.
23388 # Don't add to $LIBS permanently.
e6cc62c6
VS
23389 ac_save_LIBS=$LIBS
23390 LIBS="-lXt $LIBS"
23391 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23392/* confdefs.h. */
23393_ACEOF
23394cat confdefs.h >>conftest.$ac_ext
23395cat >>conftest.$ac_ext <<_ACEOF
23396/* end confdefs.h. */
23397#include <X11/Intrinsic.h>
23398int
23399main ()
23400{
23401XtMalloc (0)
23402 ;
23403 return 0;
23404}
23405_ACEOF
23406rm -f conftest.$ac_objext conftest$ac_exeext
23407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23408 (eval $ac_link) 2>conftest.er1
e6cc62c6 23409 ac_status=$?
32ddf007
VS
23410 grep -v '^ *+' conftest.er1 >conftest.err
23411 rm -f conftest.er1
23412 cat conftest.err >&5
e6cc62c6
VS
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); } &&
32ddf007
VS
23415 { ac_try='test -z "$ac_c_werror_flag"
23416 || test ! -s conftest.err'
23417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23418 (eval $ac_try) 2>&5
23419 ac_status=$?
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); }; } &&
23422 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424 (eval $ac_try) 2>&5
23425 ac_status=$?
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); }; }; then
23428 LIBS=$ac_save_LIBS
21d1c967
GD
23429# We can link X programs with no special library path.
23430ac_x_libraries=
3a922bb4 23431else
e6cc62c6
VS
23432 echo "$as_me: failed program was:" >&5
23433sed 's/^/| /' conftest.$ac_ext >&5
23434
23435LIBS=$ac_save_LIBS
23436for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 23437do
e6cc62c6 23438 # Don't even attempt the hair of trying to link an X program!
21d1c967 23439 for ac_extension in a so sl; do
e6cc62c6 23440 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
23441 ac_x_libraries=$ac_dir
23442 break 2
23443 fi
23444 done
23445done
3a922bb4 23446fi
32ddf007
VS
23447rm -f conftest.err conftest.$ac_objext \
23448 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23449fi # $ac_x_libraries = no
90dd450c 23450
e6cc62c6 23451if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
23452 # Didn't find X anywhere. Cache the known absence of X.
23453 ac_cv_have_x="have_x=no"
23454else
23455 # Record where we found X for the cache.
23456 ac_cv_have_x="have_x=yes \
32ddf007 23457 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 23458fi
21d1c967 23459fi
e6cc62c6 23460
21d1c967
GD
23461 fi
23462 eval "$ac_cv_have_x"
23463fi # $with_x != no
90dd450c 23464
21d1c967 23465if test "$have_x" != yes; then
e6cc62c6
VS
23466 echo "$as_me:$LINENO: result: $have_x" >&5
23467echo "${ECHO_T}$have_x" >&6
21d1c967
GD
23468 no_x=yes
23469else
23470 # If each of the values was on the command line, it overrides each guess.
23471 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23472 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23473 # Update the cache value to reflect the command line values.
23474 ac_cv_have_x="have_x=yes \
23475 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
23476 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23477echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 23478fi
90dd450c 23479
21d1c967 23480if test "$no_x" = yes; then
90dd450c 23481 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
23482
23483cat >>confdefs.h <<\_ACEOF
90dd450c 23484#define X_DISPLAY_MISSING 1
e6cc62c6 23485_ACEOF
90dd450c
VZ
23486
23487 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23488else
23489 if test -n "$x_includes"; then
23490 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 23491 fi
3a922bb4 23492
90dd450c
VZ
23493 # It would also be nice to do this for all -L options, not just this one.
23494 if test -n "$x_libraries"; then
23495 X_LIBS="$X_LIBS -L$x_libraries"
23496 # For Solaris; some versions of Sun CC require a space after -R and
23497 # others require no space. Words are not sufficient . . . .
e6cc62c6 23498 case `(uname -sr) 2>/dev/null` in
90dd450c 23499 "SunOS 5"*)
e6cc62c6
VS
23500 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23501echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23502 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23503 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23504/* confdefs.h. */
23505_ACEOF
23506cat confdefs.h >>conftest.$ac_ext
23507cat >>conftest.$ac_ext <<_ACEOF
23508/* end confdefs.h. */
23509
23510int
23511main ()
23512{
90dd450c 23513
e6cc62c6
VS
23514 ;
23515 return 0;
23516}
23517_ACEOF
23518rm -f conftest.$ac_objext conftest$ac_exeext
23519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23520 (eval $ac_link) 2>conftest.er1
e6cc62c6 23521 ac_status=$?
32ddf007
VS
23522 grep -v '^ *+' conftest.er1 >conftest.err
23523 rm -f conftest.er1
23524 cat conftest.err >&5
e6cc62c6
VS
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); } &&
32ddf007
VS
23527 { ac_try='test -z "$ac_c_werror_flag"
23528 || test ! -s conftest.err'
23529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23530 (eval $ac_try) 2>&5
23531 ac_status=$?
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); }; } &&
23534 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23536 (eval $ac_try) 2>&5
23537 ac_status=$?
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); }; }; then
90dd450c 23540 ac_R_nospace=yes
3a922bb4 23541else
e6cc62c6
VS
23542 echo "$as_me: failed program was:" >&5
23543sed 's/^/| /' conftest.$ac_ext >&5
23544
23545ac_R_nospace=no
3a922bb4 23546fi
32ddf007
VS
23547rm -f conftest.err conftest.$ac_objext \
23548 conftest$ac_exeext conftest.$ac_ext
90dd450c 23549 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23550 echo "$as_me:$LINENO: result: no" >&5
23551echo "${ECHO_T}no" >&6
90dd450c
VZ
23552 X_LIBS="$X_LIBS -R$x_libraries"
23553 else
23554 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 23555 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23556/* confdefs.h. */
23557_ACEOF
23558cat confdefs.h >>conftest.$ac_ext
23559cat >>conftest.$ac_ext <<_ACEOF
23560/* end confdefs.h. */
23561
23562int
23563main ()
23564{
6f754473 23565
e6cc62c6
VS
23566 ;
23567 return 0;
23568}
23569_ACEOF
23570rm -f conftest.$ac_objext conftest$ac_exeext
23571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23572 (eval $ac_link) 2>conftest.er1
e6cc62c6 23573 ac_status=$?
32ddf007
VS
23574 grep -v '^ *+' conftest.er1 >conftest.err
23575 rm -f conftest.er1
23576 cat conftest.err >&5
e6cc62c6
VS
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); } &&
32ddf007
VS
23579 { ac_try='test -z "$ac_c_werror_flag"
23580 || test ! -s conftest.err'
23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23582 (eval $ac_try) 2>&5
23583 ac_status=$?
23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); }; } &&
23586 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23588 (eval $ac_try) 2>&5
23589 ac_status=$?
23590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23591 (exit $ac_status); }; }; then
90dd450c
VZ
23592 ac_R_space=yes
23593else
e6cc62c6
VS
23594 echo "$as_me: failed program was:" >&5
23595sed 's/^/| /' conftest.$ac_ext >&5
23596
23597ac_R_space=no
90dd450c 23598fi
32ddf007
VS
23599rm -f conftest.err conftest.$ac_objext \
23600 conftest$ac_exeext conftest.$ac_ext
90dd450c 23601 if test $ac_R_space = yes; then
e6cc62c6
VS
23602 echo "$as_me:$LINENO: result: yes" >&5
23603echo "${ECHO_T}yes" >&6
90dd450c
VZ
23604 X_LIBS="$X_LIBS -R $x_libraries"
23605 else
e6cc62c6
VS
23606 echo "$as_me:$LINENO: result: neither works" >&5
23607echo "${ECHO_T}neither works" >&6
90dd450c
VZ
23608 fi
23609 fi
e6cc62c6 23610 LIBS=$ac_xsave_LIBS
90dd450c
VZ
23611 esac
23612 fi
23613
23614 # Check for system-dependent libraries X programs must link with.
23615 # Do this before checking for the system-independent R6 libraries
23616 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 23617
90dd450c
VZ
23618 if test "$ISC" = yes; then
23619 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23620 else
e6cc62c6
VS
23621 # Martyn Johnson says this is needed for Ultrix, if the X
23622 # libraries were built with DECnet support. And Karl Berry says
90dd450c 23623 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23624 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23625 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23626/* confdefs.h. */
23627_ACEOF
23628cat confdefs.h >>conftest.$ac_ext
23629cat >>conftest.$ac_ext <<_ACEOF
23630/* end confdefs.h. */
23631
247f5006 23632/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23633#ifdef __cplusplus
23634extern "C"
23635#endif
247f5006 23636/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23637 builtin and then its argument prototype would still apply. */
23638char XOpenDisplay ();
23639int
23640main ()
23641{
23642XOpenDisplay ();
23643 ;
23644 return 0;
23645}
23646_ACEOF
23647rm -f conftest.$ac_objext conftest$ac_exeext
23648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23649 (eval $ac_link) 2>conftest.er1
e6cc62c6 23650 ac_status=$?
32ddf007
VS
23651 grep -v '^ *+' conftest.er1 >conftest.err
23652 rm -f conftest.er1
23653 cat conftest.err >&5
e6cc62c6
VS
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); } &&
32ddf007
VS
23656 { ac_try='test -z "$ac_c_werror_flag"
23657 || test ! -s conftest.err'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23660 ac_status=$?
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; } &&
23663 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665 (eval $ac_try) 2>&5
23666 ac_status=$?
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; }; then
23669 :
23670else
23671 echo "$as_me: failed program was:" >&5
23672sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23673
e6cc62c6
VS
23674echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23675echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23676if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23677 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23678else
e6cc62c6
VS
23679 ac_check_lib_save_LIBS=$LIBS
23680LIBS="-ldnet $LIBS"
23681cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23682/* confdefs.h. */
23683_ACEOF
23684cat confdefs.h >>conftest.$ac_ext
23685cat >>conftest.$ac_ext <<_ACEOF
23686/* end confdefs.h. */
a0b9e27f 23687
e6cc62c6
VS
23688/* Override any gcc2 internal prototype to avoid an error. */
23689#ifdef __cplusplus
23690extern "C"
23691#endif
23692/* We use char because int might match the return type of a gcc2
23693 builtin and then its argument prototype would still apply. */
23694char dnet_ntoa ();
23695int
23696main ()
23697{
23698dnet_ntoa ();
23699 ;
23700 return 0;
23701}
23702_ACEOF
23703rm -f conftest.$ac_objext conftest$ac_exeext
23704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23705 (eval $ac_link) 2>conftest.er1
e6cc62c6 23706 ac_status=$?
32ddf007
VS
23707 grep -v '^ *+' conftest.er1 >conftest.err
23708 rm -f conftest.er1
23709 cat conftest.err >&5
e6cc62c6
VS
23710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23711 (exit $ac_status); } &&
32ddf007
VS
23712 { ac_try='test -z "$ac_c_werror_flag"
23713 || test ! -s conftest.err'
23714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23715 (eval $ac_try) 2>&5
23716 ac_status=$?
23717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23718 (exit $ac_status); }; } &&
23719 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
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); }; }; then
23725 ac_cv_lib_dnet_dnet_ntoa=yes
23726else
23727 echo "$as_me: failed program was:" >&5
23728sed 's/^/| /' conftest.$ac_ext >&5
23729
23730ac_cv_lib_dnet_dnet_ntoa=no
23731fi
32ddf007
VS
23732rm -f conftest.err conftest.$ac_objext \
23733 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23734LIBS=$ac_check_lib_save_LIBS
23735fi
23736echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23737echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23738if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 23739 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
23740fi
23741
90dd450c 23742 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23743 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23744echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23745if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23746 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23747else
e6cc62c6 23748 ac_check_lib_save_LIBS=$LIBS
90dd450c 23749LIBS="-ldnet_stub $LIBS"
e6cc62c6 23750cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23751/* confdefs.h. */
23752_ACEOF
23753cat confdefs.h >>conftest.$ac_ext
23754cat >>conftest.$ac_ext <<_ACEOF
23755/* end confdefs.h. */
23756
90dd450c 23757/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23758#ifdef __cplusplus
23759extern "C"
23760#endif
90dd450c 23761/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23762 builtin and then its argument prototype would still apply. */
23763char dnet_ntoa ();
23764int
23765main ()
23766{
23767dnet_ntoa ();
23768 ;
23769 return 0;
23770}
23771_ACEOF
23772rm -f conftest.$ac_objext conftest$ac_exeext
23773if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23774 (eval $ac_link) 2>conftest.er1
e6cc62c6 23775 ac_status=$?
32ddf007
VS
23776 grep -v '^ *+' conftest.er1 >conftest.err
23777 rm -f conftest.er1
23778 cat conftest.err >&5
e6cc62c6
VS
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); } &&
32ddf007
VS
23781 { ac_try='test -z "$ac_c_werror_flag"
23782 || test ! -s conftest.err'
23783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784 (eval $ac_try) 2>&5
23785 ac_status=$?
23786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); }; } &&
23788 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790 (eval $ac_try) 2>&5
23791 ac_status=$?
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); }; }; then
23794 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23795else
23796 echo "$as_me: failed program was:" >&5
23797sed 's/^/| /' conftest.$ac_ext >&5
23798
23799ac_cv_lib_dnet_stub_dnet_ntoa=no
23800fi
32ddf007
VS
23801rm -f conftest.err conftest.$ac_objext \
23802 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23803LIBS=$ac_check_lib_save_LIBS
23804fi
23805echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23806echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23807if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 23808 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
23809fi
23810
90dd450c 23811 fi
e6cc62c6 23812fi
32ddf007
VS
23813rm -f conftest.err conftest.$ac_objext \
23814 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23815 LIBS="$ac_xsave_LIBS"
978f1259 23816
90dd450c
VZ
23817 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23818 # to get the SysV transport functions.
e6cc62c6 23819 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
23820 # needs -lnsl.
23821 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23822 # on Irix 5.2, according to T.E. Dickey.
23823 # The functions gethostbyname, getservbyname, and inet_addr are
23824 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23825 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23826echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23827if test "${ac_cv_func_gethostbyname+set}" = set; then
23828 echo $ECHO_N "(cached) $ECHO_C" >&6
23829else
23830 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23831/* confdefs.h. */
23832_ACEOF
23833cat confdefs.h >>conftest.$ac_ext
23834cat >>conftest.$ac_ext <<_ACEOF
23835/* end confdefs.h. */
32ddf007
VS
23836/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23838#define gethostbyname innocuous_gethostbyname
23839
90dd450c 23840/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23841 which can conflict with char gethostbyname (); below.
23842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23843 <limits.h> exists even on freestanding compilers. */
32ddf007 23844
e6cc62c6
VS
23845#ifdef __STDC__
23846# include <limits.h>
23847#else
23848# include <assert.h>
23849#endif
32ddf007
VS
23850
23851#undef gethostbyname
23852
90dd450c 23853/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23854#ifdef __cplusplus
23855extern "C"
23856{
23857#endif
90dd450c 23858/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23859 builtin and then its argument prototype would still apply. */
23860char gethostbyname ();
90dd450c
VZ
23861/* The GNU C library defines this for functions which it implements
23862 to always fail with ENOSYS. Some functions are actually named
23863 something starting with __ and the normal name is an alias. */
23864#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23865choke me
23866#else
e6cc62c6
VS
23867char (*f) () = gethostbyname;
23868#endif
23869#ifdef __cplusplus
23870}
90dd450c 23871#endif
978f1259 23872
e6cc62c6
VS
23873int
23874main ()
23875{
23876return f != gethostbyname;
23877 ;
23878 return 0;
23879}
23880_ACEOF
23881rm -f conftest.$ac_objext conftest$ac_exeext
23882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23883 (eval $ac_link) 2>conftest.er1
e6cc62c6 23884 ac_status=$?
32ddf007
VS
23885 grep -v '^ *+' conftest.er1 >conftest.err
23886 rm -f conftest.er1
23887 cat conftest.err >&5
e6cc62c6
VS
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); } &&
32ddf007
VS
23890 { ac_try='test -z "$ac_c_werror_flag"
23891 || test ! -s conftest.err'
23892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23893 (eval $ac_try) 2>&5
23894 ac_status=$?
23895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896 (exit $ac_status); }; } &&
23897 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23899 (eval $ac_try) 2>&5
23900 ac_status=$?
23901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23902 (exit $ac_status); }; }; then
23903 ac_cv_func_gethostbyname=yes
23904else
23905 echo "$as_me: failed program was:" >&5
23906sed 's/^/| /' conftest.$ac_ext >&5
23907
23908ac_cv_func_gethostbyname=no
23909fi
32ddf007
VS
23910rm -f conftest.err conftest.$ac_objext \
23911 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23912fi
23913echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23914echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 23915
90dd450c 23916 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23917 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23918echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23919if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23920 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23921else
e6cc62c6 23922 ac_check_lib_save_LIBS=$LIBS
90dd450c 23923LIBS="-lnsl $LIBS"
e6cc62c6 23924cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23925/* confdefs.h. */
23926_ACEOF
23927cat confdefs.h >>conftest.$ac_ext
23928cat >>conftest.$ac_ext <<_ACEOF
23929/* end confdefs.h. */
23930
90dd450c 23931/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23932#ifdef __cplusplus
23933extern "C"
23934#endif
90dd450c 23935/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23936 builtin and then its argument prototype would still apply. */
23937char gethostbyname ();
23938int
23939main ()
23940{
23941gethostbyname ();
23942 ;
23943 return 0;
23944}
23945_ACEOF
23946rm -f conftest.$ac_objext conftest$ac_exeext
23947if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 23948 (eval $ac_link) 2>conftest.er1
e6cc62c6 23949 ac_status=$?
32ddf007
VS
23950 grep -v '^ *+' conftest.er1 >conftest.err
23951 rm -f conftest.er1
23952 cat conftest.err >&5
e6cc62c6
VS
23953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23954 (exit $ac_status); } &&
32ddf007
VS
23955 { ac_try='test -z "$ac_c_werror_flag"
23956 || test ! -s conftest.err'
23957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23958 (eval $ac_try) 2>&5
23959 ac_status=$?
23960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23961 (exit $ac_status); }; } &&
23962 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23964 (eval $ac_try) 2>&5
23965 ac_status=$?
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); }; }; then
23968 ac_cv_lib_nsl_gethostbyname=yes
23969else
23970 echo "$as_me: failed program was:" >&5
23971sed 's/^/| /' conftest.$ac_ext >&5
23972
23973ac_cv_lib_nsl_gethostbyname=no
23974fi
32ddf007
VS
23975rm -f conftest.err conftest.$ac_objext \
23976 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23977LIBS=$ac_check_lib_save_LIBS
23978fi
23979echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23980echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23981if test $ac_cv_lib_nsl_gethostbyname = yes; then
23982 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23983fi
247f5006 23984
e6cc62c6 23985 if test $ac_cv_lib_nsl_gethostbyname = no; then
32ddf007 23986 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23987echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23988if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23989 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23990else
e6cc62c6
VS
23991 ac_check_lib_save_LIBS=$LIBS
23992LIBS="-lbsd $LIBS"
23993cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23994/* confdefs.h. */
23995_ACEOF
23996cat confdefs.h >>conftest.$ac_ext
23997cat >>conftest.$ac_ext <<_ACEOF
23998/* end confdefs.h. */
23999
24000/* Override any gcc2 internal prototype to avoid an error. */
24001#ifdef __cplusplus
24002extern "C"
24003#endif
24004/* We use char because int might match the return type of a gcc2
24005 builtin and then its argument prototype would still apply. */
24006char gethostbyname ();
24007int
24008main ()
24009{
24010gethostbyname ();
24011 ;
24012 return 0;
24013}
24014_ACEOF
24015rm -f conftest.$ac_objext conftest$ac_exeext
24016if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24017 (eval $ac_link) 2>conftest.er1
e6cc62c6 24018 ac_status=$?
32ddf007
VS
24019 grep -v '^ *+' conftest.er1 >conftest.err
24020 rm -f conftest.er1
24021 cat conftest.err >&5
e6cc62c6
VS
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); } &&
32ddf007
VS
24024 { ac_try='test -z "$ac_c_werror_flag"
24025 || test ! -s conftest.err'
24026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24027 (eval $ac_try) 2>&5
24028 ac_status=$?
24029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24030 (exit $ac_status); }; } &&
24031 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24033 (eval $ac_try) 2>&5
24034 ac_status=$?
24035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036 (exit $ac_status); }; }; then
24037 ac_cv_lib_bsd_gethostbyname=yes
24038else
24039 echo "$as_me: failed program was:" >&5
24040sed 's/^/| /' conftest.$ac_ext >&5
24041
24042ac_cv_lib_bsd_gethostbyname=no
24043fi
32ddf007
VS
24044rm -f conftest.err conftest.$ac_objext \
24045 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24046LIBS=$ac_check_lib_save_LIBS
24047fi
24048echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24049echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24050if test $ac_cv_lib_bsd_gethostbyname = yes; then
24051 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 24052fi
b12915c1 24053
e6cc62c6 24054 fi
90dd450c
VZ
24055 fi
24056
24057 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24058 # socket/setsockopt and other routines are undefined under SCO ODT
24059 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
24060 # on later versions), says Simon Leinen: it contains gethostby*
24061 # variants that don't use the name server (or something). -lsocket
24062 # must be given before -lnsl if both are needed. We assume that
24063 # if connect needs -lnsl, so does gethostbyname.
24064 echo "$as_me:$LINENO: checking for connect" >&5
24065echo $ECHO_N "checking for connect... $ECHO_C" >&6
24066if test "${ac_cv_func_connect+set}" = set; then
24067 echo $ECHO_N "(cached) $ECHO_C" >&6
24068else
24069 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24070/* confdefs.h. */
24071_ACEOF
24072cat confdefs.h >>conftest.$ac_ext
24073cat >>conftest.$ac_ext <<_ACEOF
24074/* end confdefs.h. */
32ddf007
VS
24075/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24077#define connect innocuous_connect
24078
90dd450c 24079/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24080 which can conflict with char connect (); below.
24081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24082 <limits.h> exists even on freestanding compilers. */
32ddf007 24083
e6cc62c6
VS
24084#ifdef __STDC__
24085# include <limits.h>
24086#else
24087# include <assert.h>
24088#endif
32ddf007
VS
24089
24090#undef connect
24091
90dd450c 24092/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24093#ifdef __cplusplus
24094extern "C"
24095{
24096#endif
90dd450c 24097/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24098 builtin and then its argument prototype would still apply. */
24099char connect ();
90dd450c
VZ
24100/* The GNU C library defines this for functions which it implements
24101 to always fail with ENOSYS. Some functions are actually named
24102 something starting with __ and the normal name is an alias. */
24103#if defined (__stub_connect) || defined (__stub___connect)
24104choke me
24105#else
e6cc62c6
VS
24106char (*f) () = connect;
24107#endif
24108#ifdef __cplusplus
24109}
90dd450c
VZ
24110#endif
24111
e6cc62c6
VS
24112int
24113main ()
24114{
24115return f != connect;
24116 ;
24117 return 0;
24118}
24119_ACEOF
24120rm -f conftest.$ac_objext conftest$ac_exeext
24121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24122 (eval $ac_link) 2>conftest.er1
e6cc62c6 24123 ac_status=$?
32ddf007
VS
24124 grep -v '^ *+' conftest.er1 >conftest.err
24125 rm -f conftest.er1
24126 cat conftest.err >&5
e6cc62c6
VS
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); } &&
32ddf007
VS
24129 { ac_try='test -z "$ac_c_werror_flag"
24130 || test ! -s conftest.err'
24131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24132 (eval $ac_try) 2>&5
24133 ac_status=$?
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); }; } &&
24136 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24138 (eval $ac_try) 2>&5
24139 ac_status=$?
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); }; }; then
24142 ac_cv_func_connect=yes
24143else
24144 echo "$as_me: failed program was:" >&5
24145sed 's/^/| /' conftest.$ac_ext >&5
24146
24147ac_cv_func_connect=no
24148fi
32ddf007
VS
24149rm -f conftest.err conftest.$ac_objext \
24150 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24151fi
24152echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24153echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 24154
90dd450c 24155 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
24156 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24157echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24158if test "${ac_cv_lib_socket_connect+set}" = set; then
24159 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 24160else
e6cc62c6 24161 ac_check_lib_save_LIBS=$LIBS
90dd450c 24162LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 24163cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24164/* confdefs.h. */
24165_ACEOF
24166cat confdefs.h >>conftest.$ac_ext
24167cat >>conftest.$ac_ext <<_ACEOF
24168/* end confdefs.h. */
24169
90dd450c 24170/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24171#ifdef __cplusplus
24172extern "C"
24173#endif
90dd450c 24174/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24175 builtin and then its argument prototype would still apply. */
24176char connect ();
24177int
24178main ()
24179{
24180connect ();
24181 ;
24182 return 0;
24183}
24184_ACEOF
24185rm -f conftest.$ac_objext conftest$ac_exeext
24186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24187 (eval $ac_link) 2>conftest.er1
e6cc62c6 24188 ac_status=$?
32ddf007
VS
24189 grep -v '^ *+' conftest.er1 >conftest.err
24190 rm -f conftest.er1
24191 cat conftest.err >&5
e6cc62c6
VS
24192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193 (exit $ac_status); } &&
32ddf007
VS
24194 { ac_try='test -z "$ac_c_werror_flag"
24195 || test ! -s conftest.err'
24196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24197 (eval $ac_try) 2>&5
24198 ac_status=$?
24199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200 (exit $ac_status); }; } &&
24201 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203 (eval $ac_try) 2>&5
24204 ac_status=$?
24205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206 (exit $ac_status); }; }; then
24207 ac_cv_lib_socket_connect=yes
24208else
24209 echo "$as_me: failed program was:" >&5
24210sed 's/^/| /' conftest.$ac_ext >&5
24211
24212ac_cv_lib_socket_connect=no
24213fi
32ddf007
VS
24214rm -f conftest.err conftest.$ac_objext \
24215 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24216LIBS=$ac_check_lib_save_LIBS
24217fi
24218echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24219echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24220if test $ac_cv_lib_socket_connect = yes; then
90dd450c 24221 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 24222fi
77e13408 24223
90dd450c 24224 fi
25d0687a 24225
e6cc62c6
VS
24226 # Guillermo Gomez says -lposix is necessary on A/UX.
24227 echo "$as_me:$LINENO: checking for remove" >&5
24228echo $ECHO_N "checking for remove... $ECHO_C" >&6
24229if test "${ac_cv_func_remove+set}" = set; then
24230 echo $ECHO_N "(cached) $ECHO_C" >&6
24231else
24232 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24233/* confdefs.h. */
24234_ACEOF
24235cat confdefs.h >>conftest.$ac_ext
24236cat >>conftest.$ac_ext <<_ACEOF
24237/* end confdefs.h. */
32ddf007
VS
24238/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24240#define remove innocuous_remove
24241
90dd450c 24242/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24243 which can conflict with char remove (); below.
24244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24245 <limits.h> exists even on freestanding compilers. */
32ddf007 24246
e6cc62c6
VS
24247#ifdef __STDC__
24248# include <limits.h>
24249#else
24250# include <assert.h>
24251#endif
32ddf007
VS
24252
24253#undef remove
24254
90dd450c 24255/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24256#ifdef __cplusplus
24257extern "C"
24258{
24259#endif
90dd450c 24260/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24261 builtin and then its argument prototype would still apply. */
24262char remove ();
90dd450c
VZ
24263/* The GNU C library defines this for functions which it implements
24264 to always fail with ENOSYS. Some functions are actually named
24265 something starting with __ and the normal name is an alias. */
24266#if defined (__stub_remove) || defined (__stub___remove)
24267choke me
24268#else
e6cc62c6
VS
24269char (*f) () = remove;
24270#endif
24271#ifdef __cplusplus
24272}
90dd450c 24273#endif
55e80573 24274
e6cc62c6
VS
24275int
24276main ()
24277{
24278return f != remove;
24279 ;
24280 return 0;
24281}
24282_ACEOF
24283rm -f conftest.$ac_objext conftest$ac_exeext
24284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24285 (eval $ac_link) 2>conftest.er1
e6cc62c6 24286 ac_status=$?
32ddf007
VS
24287 grep -v '^ *+' conftest.er1 >conftest.err
24288 rm -f conftest.er1
24289 cat conftest.err >&5
e6cc62c6
VS
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); } &&
32ddf007
VS
24292 { ac_try='test -z "$ac_c_werror_flag"
24293 || test ! -s conftest.err'
24294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24295 (eval $ac_try) 2>&5
24296 ac_status=$?
24297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24298 (exit $ac_status); }; } &&
24299 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24301 (eval $ac_try) 2>&5
24302 ac_status=$?
24303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24304 (exit $ac_status); }; }; then
24305 ac_cv_func_remove=yes
24306else
24307 echo "$as_me: failed program was:" >&5
24308sed 's/^/| /' conftest.$ac_ext >&5
24309
24310ac_cv_func_remove=no
24311fi
32ddf007
VS
24312rm -f conftest.err conftest.$ac_objext \
24313 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24314fi
24315echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24316echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 24317
90dd450c 24318 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
24319 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24320echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24321if test "${ac_cv_lib_posix_remove+set}" = set; then
24322 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 24323else
e6cc62c6 24324 ac_check_lib_save_LIBS=$LIBS
90dd450c 24325LIBS="-lposix $LIBS"
e6cc62c6 24326cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24327/* confdefs.h. */
24328_ACEOF
24329cat confdefs.h >>conftest.$ac_ext
24330cat >>conftest.$ac_ext <<_ACEOF
24331/* end confdefs.h. */
24332
90dd450c 24333/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24334#ifdef __cplusplus
24335extern "C"
24336#endif
90dd450c 24337/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24338 builtin and then its argument prototype would still apply. */
24339char remove ();
24340int
24341main ()
24342{
24343remove ();
24344 ;
24345 return 0;
24346}
24347_ACEOF
24348rm -f conftest.$ac_objext conftest$ac_exeext
24349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24350 (eval $ac_link) 2>conftest.er1
e6cc62c6 24351 ac_status=$?
32ddf007
VS
24352 grep -v '^ *+' conftest.er1 >conftest.err
24353 rm -f conftest.er1
24354 cat conftest.err >&5
e6cc62c6
VS
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } &&
32ddf007
VS
24357 { ac_try='test -z "$ac_c_werror_flag"
24358 || test ! -s conftest.err'
24359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24360 (eval $ac_try) 2>&5
24361 ac_status=$?
24362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); }; } &&
24364 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24366 (eval $ac_try) 2>&5
24367 ac_status=$?
24368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369 (exit $ac_status); }; }; then
24370 ac_cv_lib_posix_remove=yes
24371else
24372 echo "$as_me: failed program was:" >&5
24373sed 's/^/| /' conftest.$ac_ext >&5
24374
24375ac_cv_lib_posix_remove=no
24376fi
32ddf007
VS
24377rm -f conftest.err conftest.$ac_objext \
24378 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24379LIBS=$ac_check_lib_save_LIBS
24380fi
24381echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24382echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24383if test $ac_cv_lib_posix_remove = yes; then
90dd450c 24384 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 24385fi
f6bcfd97 24386
6fa882bd
RR
24387 fi
24388
90dd450c 24389 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
24390 echo "$as_me:$LINENO: checking for shmat" >&5
24391echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24392if test "${ac_cv_func_shmat+set}" = set; then
24393 echo $ECHO_N "(cached) $ECHO_C" >&6
24394else
24395 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24396/* confdefs.h. */
24397_ACEOF
24398cat confdefs.h >>conftest.$ac_ext
24399cat >>conftest.$ac_ext <<_ACEOF
24400/* end confdefs.h. */
32ddf007
VS
24401/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24403#define shmat innocuous_shmat
24404
90dd450c 24405/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24406 which can conflict with char shmat (); below.
24407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24408 <limits.h> exists even on freestanding compilers. */
32ddf007 24409
e6cc62c6
VS
24410#ifdef __STDC__
24411# include <limits.h>
24412#else
24413# include <assert.h>
24414#endif
32ddf007
VS
24415
24416#undef shmat
24417
90dd450c 24418/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24419#ifdef __cplusplus
24420extern "C"
24421{
24422#endif
90dd450c 24423/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24424 builtin and then its argument prototype would still apply. */
24425char shmat ();
90dd450c
VZ
24426/* The GNU C library defines this for functions which it implements
24427 to always fail with ENOSYS. Some functions are actually named
24428 something starting with __ and the normal name is an alias. */
24429#if defined (__stub_shmat) || defined (__stub___shmat)
24430choke me
24431#else
e6cc62c6
VS
24432char (*f) () = shmat;
24433#endif
24434#ifdef __cplusplus
24435}
90dd450c 24436#endif
10f2d63a 24437
e6cc62c6
VS
24438int
24439main ()
24440{
24441return f != shmat;
24442 ;
24443 return 0;
24444}
24445_ACEOF
24446rm -f conftest.$ac_objext conftest$ac_exeext
24447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24448 (eval $ac_link) 2>conftest.er1
e6cc62c6 24449 ac_status=$?
32ddf007
VS
24450 grep -v '^ *+' conftest.er1 >conftest.err
24451 rm -f conftest.er1
24452 cat conftest.err >&5
e6cc62c6
VS
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } &&
32ddf007
VS
24455 { ac_try='test -z "$ac_c_werror_flag"
24456 || test ! -s conftest.err'
24457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24458 (eval $ac_try) 2>&5
24459 ac_status=$?
24460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24461 (exit $ac_status); }; } &&
24462 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464 (eval $ac_try) 2>&5
24465 ac_status=$?
24466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467 (exit $ac_status); }; }; then
24468 ac_cv_func_shmat=yes
24469else
24470 echo "$as_me: failed program was:" >&5
24471sed 's/^/| /' conftest.$ac_ext >&5
24472
24473ac_cv_func_shmat=no
24474fi
32ddf007
VS
24475rm -f conftest.err conftest.$ac_objext \
24476 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24477fi
24478echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24479echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 24480
90dd450c 24481 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
24482 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24483echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24484if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24485 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 24486else
e6cc62c6 24487 ac_check_lib_save_LIBS=$LIBS
90dd450c 24488LIBS="-lipc $LIBS"
e6cc62c6 24489cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24490/* confdefs.h. */
24491_ACEOF
24492cat confdefs.h >>conftest.$ac_ext
24493cat >>conftest.$ac_ext <<_ACEOF
24494/* end confdefs.h. */
24495
8284b0c5 24496/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24497#ifdef __cplusplus
24498extern "C"
24499#endif
90dd450c 24500/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24501 builtin and then its argument prototype would still apply. */
24502char shmat ();
24503int
24504main ()
24505{
24506shmat ();
24507 ;
24508 return 0;
24509}
24510_ACEOF
24511rm -f conftest.$ac_objext conftest$ac_exeext
24512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24513 (eval $ac_link) 2>conftest.er1
e6cc62c6 24514 ac_status=$?
32ddf007
VS
24515 grep -v '^ *+' conftest.er1 >conftest.err
24516 rm -f conftest.er1
24517 cat conftest.err >&5
e6cc62c6
VS
24518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24519 (exit $ac_status); } &&
32ddf007
VS
24520 { ac_try='test -z "$ac_c_werror_flag"
24521 || test ! -s conftest.err'
24522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24523 (eval $ac_try) 2>&5
24524 ac_status=$?
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); }; } &&
24527 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24529 (eval $ac_try) 2>&5
24530 ac_status=$?
24531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24532 (exit $ac_status); }; }; then
24533 ac_cv_lib_ipc_shmat=yes
24534else
24535 echo "$as_me: failed program was:" >&5
24536sed 's/^/| /' conftest.$ac_ext >&5
24537
24538ac_cv_lib_ipc_shmat=no
24539fi
32ddf007
VS
24540rm -f conftest.err conftest.$ac_objext \
24541 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24542LIBS=$ac_check_lib_save_LIBS
24543fi
24544echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24545echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24546if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 24547 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
24548fi
24549
d558c907 24550 fi
90dd450c 24551 fi
3a922bb4 24552
90dd450c 24553 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 24554 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
24555 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24556 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24557 # check for ICE first), but we must link in the order -lSM -lICE or
24558 # we get undefined symbols. So assume we have SM if we have ICE.
24559 # These have to be linked with before -lX11, unlike the other
24560 # libraries we check for below, so use a different variable.
e6cc62c6
VS
24561 # John Interrante, Karl Berry
24562 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24563echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24564if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24565 echo $ECHO_N "(cached) $ECHO_C" >&6
24566else
24567 ac_check_lib_save_LIBS=$LIBS
f09359cf 24568LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 24569cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24570/* confdefs.h. */
24571_ACEOF
24572cat confdefs.h >>conftest.$ac_ext
24573cat >>conftest.$ac_ext <<_ACEOF
24574/* end confdefs.h. */
24575
90dd450c 24576/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24577#ifdef __cplusplus
24578extern "C"
24579#endif
90dd450c 24580/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24581 builtin and then its argument prototype would still apply. */
24582char IceConnectionNumber ();
24583int
24584main ()
24585{
24586IceConnectionNumber ();
24587 ;
24588 return 0;
24589}
24590_ACEOF
24591rm -f conftest.$ac_objext conftest$ac_exeext
24592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 24593 (eval $ac_link) 2>conftest.er1
e6cc62c6 24594 ac_status=$?
32ddf007
VS
24595 grep -v '^ *+' conftest.er1 >conftest.err
24596 rm -f conftest.er1
24597 cat conftest.err >&5
e6cc62c6
VS
24598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24599 (exit $ac_status); } &&
32ddf007
VS
24600 { ac_try='test -z "$ac_c_werror_flag"
24601 || test ! -s conftest.err'
24602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24603 (eval $ac_try) 2>&5
24604 ac_status=$?
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); }; } &&
24607 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24609 (eval $ac_try) 2>&5
24610 ac_status=$?
24611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24612 (exit $ac_status); }; }; then
24613 ac_cv_lib_ICE_IceConnectionNumber=yes
24614else
24615 echo "$as_me: failed program was:" >&5
24616sed 's/^/| /' conftest.$ac_ext >&5
24617
24618ac_cv_lib_ICE_IceConnectionNumber=no
24619fi
32ddf007
VS
24620rm -f conftest.err conftest.$ac_objext \
24621 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24622LIBS=$ac_check_lib_save_LIBS
24623fi
24624echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24625echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24626if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 24627 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 24628fi
10f2d63a 24629
e6cc62c6 24630 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
24631
24632fi
24633
8284b0c5 24634
90dd450c 24635 if test "$no_x" = "yes"; then
e6cc62c6
VS
24636 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24637echo "$as_me: error: X11 not found" >&2;}
24638 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
24639 fi
24640
24641 GUI_TK_LIBRARY="$X_LIBS"
24642 TOOLKIT_INCLUDE="$X_CFLAGS"
24643 AFMINSTALL=afminstall
24644 COMPILED_X_PROGRAM=0
24645
21d1c967 24646 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
24647 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24648echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 24649 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
24650 echo "$as_me:$LINENO: result: not found" >&5
24651echo "${ECHO_T}not found" >&6
24652 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24653echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24654 { (exit 1); exit 1; }; }
90dd450c 24655 else
e6cc62c6
VS
24656 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24657echo "${ECHO_T}$MICROWIN" >&6
24658 cat >>confdefs.h <<\_ACEOF
21d1c967 24659#define wxUSE_NANOX 1
e6cc62c6 24660_ACEOF
21d1c967 24661
90dd450c
VZ
24662 fi
24663 fi
24664
2b5f62a0 24665 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 24666
2b5f62a0 24667 succeeded=no
90dd450c 24668
2b5f62a0
VZ
24669 if test -z "$PKG_CONFIG"; then
24670 # Extract the first word of "pkg-config", so it can be a program name with args.
24671set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24672echo "$as_me:$LINENO: checking for $ac_word" >&5
24673echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24674if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24675 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24676else
e6cc62c6
VS
24677 case $PKG_CONFIG in
24678 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24679 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24680 ;;
2b5f62a0 24681 *)
e6cc62c6
VS
24682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24683for as_dir in $PATH
24684do
24685 IFS=$as_save_IFS
24686 test -z "$as_dir" && as_dir=.
24687 for ac_exec_ext in '' $ac_executable_extensions; do
24688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24689 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24691 break 2
24692 fi
24693done
24694done
24695
2b5f62a0
VZ
24696 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24697 ;;
24698esac
24699fi
e6cc62c6
VS
24700PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24701
2b5f62a0 24702if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24703 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24704echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24705else
e6cc62c6
VS
24706 echo "$as_me:$LINENO: result: no" >&5
24707echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24708fi
24709
24710 fi
24711
24712 if test "$PKG_CONFIG" = "no" ; then
24713 echo "*** The pkg-config script could not be found. Make sure it is"
24714 echo "*** in your path, or set the PKG_CONFIG environment variable"
24715 echo "*** to the full path to pkg-config."
24716 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24717 else
24718 PKG_CONFIG_MIN_VERSION=0.9.0
24719 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24720 echo "$as_me:$LINENO: checking for pangox" >&5
24721echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
24722
24723 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
24724 echo "$as_me:$LINENO: result: yes" >&5
24725echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24726 succeeded=yes
24727
e6cc62c6
VS
24728 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24729echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 24730 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
24731 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24732echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 24733
e6cc62c6
VS
24734 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24735echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 24736 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
24737 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24738echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
24739 else
24740 PANGOX_CFLAGS=""
24741 PANGOX_LIBS=""
e6cc62c6 24742 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24743 ## do set a variable so people can do so.
24744 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 24745
2b5f62a0
VZ
24746 fi
24747
e6cc62c6
VS
24748
24749
2b5f62a0
VZ
24750 else
24751 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24752 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24753 fi
24754 fi
24755
24756 if test $succeeded = yes; then
e6cc62c6 24757
2b5f62a0 24758 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 24759 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 24760
2b5f62a0 24761 else
e6cc62c6
VS
24762
24763 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24764echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24765 { (exit 1); exit 1; }; }
24766
24767
2b5f62a0
VZ
24768 fi
24769
e6cc62c6 24770
2b5f62a0
VZ
24771 succeeded=no
24772
24773 if test -z "$PKG_CONFIG"; then
24774 # Extract the first word of "pkg-config", so it can be a program name with args.
24775set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24776echo "$as_me:$LINENO: checking for $ac_word" >&5
24777echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24778if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24779 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24780else
e6cc62c6
VS
24781 case $PKG_CONFIG in
24782 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24783 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24784 ;;
2b5f62a0 24785 *)
e6cc62c6
VS
24786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24787for as_dir in $PATH
24788do
24789 IFS=$as_save_IFS
24790 test -z "$as_dir" && as_dir=.
24791 for ac_exec_ext in '' $ac_executable_extensions; do
24792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24793 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24795 break 2
24796 fi
24797done
24798done
24799
2b5f62a0
VZ
24800 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24801 ;;
24802esac
24803fi
e6cc62c6
VS
24804PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24805
2b5f62a0 24806if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24807 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24808echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24809else
e6cc62c6
VS
24810 echo "$as_me:$LINENO: result: no" >&5
24811echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24812fi
24813
24814 fi
24815
24816 if test "$PKG_CONFIG" = "no" ; then
24817 echo "*** The pkg-config script could not be found. Make sure it is"
24818 echo "*** in your path, or set the PKG_CONFIG environment variable"
24819 echo "*** to the full path to pkg-config."
24820 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24821 else
24822 PKG_CONFIG_MIN_VERSION=0.9.0
24823 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24824 echo "$as_me:$LINENO: checking for pangoft2" >&5
24825echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
24826
24827 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
24828 echo "$as_me:$LINENO: result: yes" >&5
24829echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24830 succeeded=yes
24831
e6cc62c6
VS
24832 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24833echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 24834 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
24835 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24836echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 24837
e6cc62c6
VS
24838 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24839echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 24840 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
24841 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24842echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
24843 else
24844 PANGOFT2_CFLAGS=""
24845 PANGOFT2_LIBS=""
e6cc62c6 24846 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24847 ## do set a variable so people can do so.
24848 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 24849
2b5f62a0
VZ
24850 fi
24851
e6cc62c6
VS
24852
24853
2b5f62a0
VZ
24854 else
24855 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24856 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24857 fi
24858 fi
24859
24860 if test $succeeded = yes; then
e6cc62c6 24861
2b5f62a0 24862 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 24863 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 24864
2b5f62a0 24865 else
e6cc62c6
VS
24866
24867 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24868echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 24869 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
24870
24871
2b5f62a0
VZ
24872 fi
24873
e6cc62c6 24874
2b5f62a0
VZ
24875 succeeded=no
24876
24877 if test -z "$PKG_CONFIG"; then
24878 # Extract the first word of "pkg-config", so it can be a program name with args.
24879set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24880echo "$as_me:$LINENO: checking for $ac_word" >&5
24881echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24882if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24883 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24884else
e6cc62c6
VS
24885 case $PKG_CONFIG in
24886 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24887 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24888 ;;
2b5f62a0 24889 *)
e6cc62c6
VS
24890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24891for as_dir in $PATH
24892do
24893 IFS=$as_save_IFS
24894 test -z "$as_dir" && as_dir=.
24895 for ac_exec_ext in '' $ac_executable_extensions; do
24896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24897 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24899 break 2
24900 fi
24901done
24902done
24903
2b5f62a0
VZ
24904 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24905 ;;
24906esac
24907fi
e6cc62c6
VS
24908PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24909
2b5f62a0 24910if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24911 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24912echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24913else
e6cc62c6
VS
24914 echo "$as_me:$LINENO: result: no" >&5
24915echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24916fi
24917
24918 fi
24919
24920 if test "$PKG_CONFIG" = "no" ; then
24921 echo "*** The pkg-config script could not be found. Make sure it is"
24922 echo "*** in your path, or set the PKG_CONFIG environment variable"
24923 echo "*** to the full path to pkg-config."
24924 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24925 else
24926 PKG_CONFIG_MIN_VERSION=0.9.0
24927 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24928 echo "$as_me:$LINENO: checking for pangoxft" >&5
24929echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
24930
24931 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
24932 echo "$as_me:$LINENO: result: yes" >&5
24933echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24934 succeeded=yes
24935
e6cc62c6
VS
24936 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24937echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 24938 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
24939 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24940echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 24941
e6cc62c6
VS
24942 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24943echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 24944 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
24945 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24946echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
24947 else
24948 PANGOXFT_CFLAGS=""
24949 PANGOXFT_LIBS=""
e6cc62c6 24950 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24951 ## do set a variable so people can do so.
24952 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 24953
2b5f62a0
VZ
24954 fi
24955
e6cc62c6
VS
24956
24957
2b5f62a0
VZ
24958 else
24959 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24960 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24961 fi
24962 fi
24963
24964 if test $succeeded = yes; then
e6cc62c6 24965
2b5f62a0 24966 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 24967 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 24968
2b5f62a0 24969 else
e6cc62c6
VS
24970
24971 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24972echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24973
24974
2b5f62a0
VZ
24975 fi
24976
24977 fi
24978
24979 wxUSE_UNIVERSAL="yes"
24980
24981 if test "$wxUSE_NANOX" = "yes"; then
24982 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 24983 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"
2b5f62a0
VZ
24984 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24985 else
93a543aa 24986 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
24987 fi
24988
24989 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24990 TOOLKIT=X11
24991 GUIDIST=X11_DIST
24992 fi
24993
21d1c967
GD
24994 if test "$wxUSE_MOTIF" = 1; then
24995 if test "$no_x" = yes; then
24996 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
24997
24998cat >>confdefs.h <<\_ACEOF
21d1c967 24999#define X_DISPLAY_MISSING 1
e6cc62c6 25000_ACEOF
21d1c967
GD
25001
25002 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25003else
25004 if test -n "$x_includes"; then
25005 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
25006 fi
25007
21d1c967
GD
25008 # It would also be nice to do this for all -L options, not just this one.
25009 if test -n "$x_libraries"; then
25010 X_LIBS="$X_LIBS -L$x_libraries"
25011 # For Solaris; some versions of Sun CC require a space after -R and
25012 # others require no space. Words are not sufficient . . . .
e6cc62c6 25013 case `(uname -sr) 2>/dev/null` in
21d1c967 25014 "SunOS 5"*)
e6cc62c6
VS
25015 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
25016echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
25017 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25018 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25019/* confdefs.h. */
25020_ACEOF
25021cat confdefs.h >>conftest.$ac_ext
25022cat >>conftest.$ac_ext <<_ACEOF
25023/* end confdefs.h. */
25024
25025int
25026main ()
25027{
21d1c967 25028
e6cc62c6
VS
25029 ;
25030 return 0;
25031}
25032_ACEOF
25033rm -f conftest.$ac_objext conftest$ac_exeext
25034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25035 (eval $ac_link) 2>conftest.er1
e6cc62c6 25036 ac_status=$?
32ddf007
VS
25037 grep -v '^ *+' conftest.er1 >conftest.err
25038 rm -f conftest.er1
25039 cat conftest.err >&5
e6cc62c6
VS
25040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25041 (exit $ac_status); } &&
32ddf007
VS
25042 { ac_try='test -z "$ac_c_werror_flag"
25043 || test ! -s conftest.err'
25044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045 (eval $ac_try) 2>&5
25046 ac_status=$?
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); }; } &&
25049 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25051 (eval $ac_try) 2>&5
25052 ac_status=$?
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); }; }; then
21d1c967 25055 ac_R_nospace=yes
698dcdb6 25056else
e6cc62c6
VS
25057 echo "$as_me: failed program was:" >&5
25058sed 's/^/| /' conftest.$ac_ext >&5
25059
25060ac_R_nospace=no
10f2d63a 25061fi
32ddf007
VS
25062rm -f conftest.err conftest.$ac_objext \
25063 conftest$ac_exeext conftest.$ac_ext
21d1c967 25064 if test $ac_R_nospace = yes; then
e6cc62c6
VS
25065 echo "$as_me:$LINENO: result: no" >&5
25066echo "${ECHO_T}no" >&6
21d1c967
GD
25067 X_LIBS="$X_LIBS -R$x_libraries"
25068 else
25069 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 25070 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25071/* confdefs.h. */
25072_ACEOF
25073cat confdefs.h >>conftest.$ac_ext
25074cat >>conftest.$ac_ext <<_ACEOF
25075/* end confdefs.h. */
25076
25077int
25078main ()
25079{
f0c87536 25080
e6cc62c6
VS
25081 ;
25082 return 0;
25083}
25084_ACEOF
25085rm -f conftest.$ac_objext conftest$ac_exeext
25086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25087 (eval $ac_link) 2>conftest.er1
e6cc62c6 25088 ac_status=$?
32ddf007
VS
25089 grep -v '^ *+' conftest.er1 >conftest.err
25090 rm -f conftest.er1
25091 cat conftest.err >&5
e6cc62c6
VS
25092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25093 (exit $ac_status); } &&
32ddf007
VS
25094 { ac_try='test -z "$ac_c_werror_flag"
25095 || test ! -s conftest.err'
25096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25097 (eval $ac_try) 2>&5
25098 ac_status=$?
25099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25100 (exit $ac_status); }; } &&
25101 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25103 (eval $ac_try) 2>&5
25104 ac_status=$?
25105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25106 (exit $ac_status); }; }; then
21d1c967
GD
25107 ac_R_space=yes
25108else
e6cc62c6
VS
25109 echo "$as_me: failed program was:" >&5
25110sed 's/^/| /' conftest.$ac_ext >&5
25111
25112ac_R_space=no
21d1c967 25113fi
32ddf007
VS
25114rm -f conftest.err conftest.$ac_objext \
25115 conftest$ac_exeext conftest.$ac_ext
21d1c967 25116 if test $ac_R_space = yes; then
e6cc62c6
VS
25117 echo "$as_me:$LINENO: result: yes" >&5
25118echo "${ECHO_T}yes" >&6
21d1c967
GD
25119 X_LIBS="$X_LIBS -R $x_libraries"
25120 else
e6cc62c6
VS
25121 echo "$as_me:$LINENO: result: neither works" >&5
25122echo "${ECHO_T}neither works" >&6
21d1c967
GD
25123 fi
25124 fi
e6cc62c6 25125 LIBS=$ac_xsave_LIBS
21d1c967
GD
25126 esac
25127 fi
90dd450c 25128
21d1c967
GD
25129 # Check for system-dependent libraries X programs must link with.
25130 # Do this before checking for the system-independent R6 libraries
25131 # (-lICE), since we may need -lsocket or whatever for X linking.
25132
25133 if test "$ISC" = yes; then
25134 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25135 else
e6cc62c6
VS
25136 # Martyn Johnson says this is needed for Ultrix, if the X
25137 # libraries were built with DECnet support. And Karl Berry says
21d1c967 25138 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
25139 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25140 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25141/* confdefs.h. */
25142_ACEOF
25143cat confdefs.h >>conftest.$ac_ext
25144cat >>conftest.$ac_ext <<_ACEOF
25145/* end confdefs.h. */
25146
247f5006 25147/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25148#ifdef __cplusplus
25149extern "C"
25150#endif
247f5006 25151/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25152 builtin and then its argument prototype would still apply. */
25153char XOpenDisplay ();
25154int
25155main ()
25156{
25157XOpenDisplay ();
25158 ;
25159 return 0;
25160}
25161_ACEOF
25162rm -f conftest.$ac_objext conftest$ac_exeext
25163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25164 (eval $ac_link) 2>conftest.er1
e6cc62c6 25165 ac_status=$?
32ddf007
VS
25166 grep -v '^ *+' conftest.er1 >conftest.err
25167 rm -f conftest.er1
25168 cat conftest.err >&5
e6cc62c6
VS
25169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25170 (exit $ac_status); } &&
32ddf007
VS
25171 { ac_try='test -z "$ac_c_werror_flag"
25172 || test ! -s conftest.err'
25173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25174 (eval $ac_try) 2>&5
25175 ac_status=$?
25176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177 (exit $ac_status); }; } &&
25178 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25180 (eval $ac_try) 2>&5
25181 ac_status=$?
25182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25183 (exit $ac_status); }; }; then
25184 :
25185else
25186 echo "$as_me: failed program was:" >&5
25187sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25188
e6cc62c6
VS
25189echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25190echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25191if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25192 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 25193else
e6cc62c6
VS
25194 ac_check_lib_save_LIBS=$LIBS
25195LIBS="-ldnet $LIBS"
25196cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25197/* confdefs.h. */
25198_ACEOF
25199cat confdefs.h >>conftest.$ac_ext
25200cat >>conftest.$ac_ext <<_ACEOF
25201/* end confdefs.h. */
a0b9e27f 25202
e6cc62c6
VS
25203/* Override any gcc2 internal prototype to avoid an error. */
25204#ifdef __cplusplus
25205extern "C"
25206#endif
25207/* We use char because int might match the return type of a gcc2
25208 builtin and then its argument prototype would still apply. */
25209char dnet_ntoa ();
25210int
25211main ()
25212{
25213dnet_ntoa ();
25214 ;
25215 return 0;
25216}
25217_ACEOF
25218rm -f conftest.$ac_objext conftest$ac_exeext
25219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25220 (eval $ac_link) 2>conftest.er1
e6cc62c6 25221 ac_status=$?
32ddf007
VS
25222 grep -v '^ *+' conftest.er1 >conftest.err
25223 rm -f conftest.er1
25224 cat conftest.err >&5
e6cc62c6
VS
25225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25226 (exit $ac_status); } &&
32ddf007
VS
25227 { ac_try='test -z "$ac_c_werror_flag"
25228 || test ! -s conftest.err'
25229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25230 (eval $ac_try) 2>&5
25231 ac_status=$?
25232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25233 (exit $ac_status); }; } &&
25234 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25236 (eval $ac_try) 2>&5
25237 ac_status=$?
25238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); }; }; then
25240 ac_cv_lib_dnet_dnet_ntoa=yes
25241else
25242 echo "$as_me: failed program was:" >&5
25243sed 's/^/| /' conftest.$ac_ext >&5
25244
25245ac_cv_lib_dnet_dnet_ntoa=no
25246fi
32ddf007
VS
25247rm -f conftest.err conftest.$ac_objext \
25248 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25249LIBS=$ac_check_lib_save_LIBS
25250fi
25251echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25252echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25253if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 25254 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 25255fi
0fb0dd83 25256
21d1c967 25257 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
25258 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25259echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25260if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25261 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25262else
e6cc62c6 25263 ac_check_lib_save_LIBS=$LIBS
21d1c967 25264LIBS="-ldnet_stub $LIBS"
e6cc62c6 25265cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25266/* confdefs.h. */
25267_ACEOF
25268cat confdefs.h >>conftest.$ac_ext
25269cat >>conftest.$ac_ext <<_ACEOF
25270/* end confdefs.h. */
25271
21d1c967 25272/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25273#ifdef __cplusplus
25274extern "C"
25275#endif
21d1c967 25276/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25277 builtin and then its argument prototype would still apply. */
25278char dnet_ntoa ();
25279int
25280main ()
25281{
25282dnet_ntoa ();
25283 ;
25284 return 0;
25285}
25286_ACEOF
25287rm -f conftest.$ac_objext conftest$ac_exeext
25288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25289 (eval $ac_link) 2>conftest.er1
e6cc62c6 25290 ac_status=$?
32ddf007
VS
25291 grep -v '^ *+' conftest.er1 >conftest.err
25292 rm -f conftest.er1
25293 cat conftest.err >&5
e6cc62c6
VS
25294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295 (exit $ac_status); } &&
32ddf007
VS
25296 { ac_try='test -z "$ac_c_werror_flag"
25297 || test ! -s conftest.err'
25298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25299 (eval $ac_try) 2>&5
25300 ac_status=$?
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); }; } &&
25303 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25305 (eval $ac_try) 2>&5
25306 ac_status=$?
25307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308 (exit $ac_status); }; }; then
25309 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25310else
25311 echo "$as_me: failed program was:" >&5
25312sed 's/^/| /' conftest.$ac_ext >&5
25313
25314ac_cv_lib_dnet_stub_dnet_ntoa=no
25315fi
32ddf007
VS
25316rm -f conftest.err conftest.$ac_objext \
25317 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25318LIBS=$ac_check_lib_save_LIBS
25319fi
25320echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25321echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25322if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 25323 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
25324fi
25325
21d1c967 25326 fi
e6cc62c6 25327fi
32ddf007
VS
25328rm -f conftest.err conftest.$ac_objext \
25329 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 25330 LIBS="$ac_xsave_LIBS"
90dd450c 25331
21d1c967
GD
25332 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25333 # to get the SysV transport functions.
e6cc62c6 25334 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
25335 # needs -lnsl.
25336 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
25337 # on Irix 5.2, according to T.E. Dickey.
25338 # The functions gethostbyname, getservbyname, and inet_addr are
25339 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25340 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25341echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25342if test "${ac_cv_func_gethostbyname+set}" = set; then
25343 echo $ECHO_N "(cached) $ECHO_C" >&6
25344else
25345 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25346/* confdefs.h. */
25347_ACEOF
25348cat confdefs.h >>conftest.$ac_ext
25349cat >>conftest.$ac_ext <<_ACEOF
25350/* end confdefs.h. */
32ddf007
VS
25351/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25352 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25353#define gethostbyname innocuous_gethostbyname
25354
21d1c967 25355/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25356 which can conflict with char gethostbyname (); below.
25357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25358 <limits.h> exists even on freestanding compilers. */
32ddf007 25359
e6cc62c6
VS
25360#ifdef __STDC__
25361# include <limits.h>
25362#else
25363# include <assert.h>
25364#endif
32ddf007
VS
25365
25366#undef gethostbyname
25367
21d1c967 25368/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25369#ifdef __cplusplus
25370extern "C"
25371{
25372#endif
21d1c967 25373/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25374 builtin and then its argument prototype would still apply. */
25375char gethostbyname ();
21d1c967
GD
25376/* The GNU C library defines this for functions which it implements
25377 to always fail with ENOSYS. Some functions are actually named
25378 something starting with __ and the normal name is an alias. */
25379#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25380choke me
25381#else
e6cc62c6
VS
25382char (*f) () = gethostbyname;
25383#endif
25384#ifdef __cplusplus
25385}
21d1c967 25386#endif
90dd450c 25387
e6cc62c6
VS
25388int
25389main ()
25390{
25391return f != gethostbyname;
25392 ;
25393 return 0;
25394}
25395_ACEOF
25396rm -f conftest.$ac_objext conftest$ac_exeext
25397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25398 (eval $ac_link) 2>conftest.er1
e6cc62c6 25399 ac_status=$?
32ddf007
VS
25400 grep -v '^ *+' conftest.er1 >conftest.err
25401 rm -f conftest.er1
25402 cat conftest.err >&5
e6cc62c6
VS
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); } &&
32ddf007
VS
25405 { ac_try='test -z "$ac_c_werror_flag"
25406 || test ! -s conftest.err'
25407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25408 (eval $ac_try) 2>&5
25409 ac_status=$?
25410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25411 (exit $ac_status); }; } &&
25412 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25414 (eval $ac_try) 2>&5
25415 ac_status=$?
25416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25417 (exit $ac_status); }; }; then
25418 ac_cv_func_gethostbyname=yes
25419else
25420 echo "$as_me: failed program was:" >&5
25421sed 's/^/| /' conftest.$ac_ext >&5
25422
25423ac_cv_func_gethostbyname=no
25424fi
32ddf007
VS
25425rm -f conftest.err conftest.$ac_objext \
25426 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25427fi
25428echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25429echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 25430
21d1c967 25431 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
25432 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25433echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25434if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25435 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25436else
e6cc62c6 25437 ac_check_lib_save_LIBS=$LIBS
21d1c967 25438LIBS="-lnsl $LIBS"
e6cc62c6 25439cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25440/* confdefs.h. */
25441_ACEOF
25442cat confdefs.h >>conftest.$ac_ext
25443cat >>conftest.$ac_ext <<_ACEOF
25444/* end confdefs.h. */
25445
21d1c967 25446/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25447#ifdef __cplusplus
25448extern "C"
25449#endif
21d1c967 25450/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25451 builtin and then its argument prototype would still apply. */
25452char gethostbyname ();
25453int
25454main ()
25455{
25456gethostbyname ();
25457 ;
25458 return 0;
25459}
25460_ACEOF
25461rm -f conftest.$ac_objext conftest$ac_exeext
25462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25463 (eval $ac_link) 2>conftest.er1
e6cc62c6 25464 ac_status=$?
32ddf007
VS
25465 grep -v '^ *+' conftest.er1 >conftest.err
25466 rm -f conftest.er1
25467 cat conftest.err >&5
e6cc62c6
VS
25468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); } &&
32ddf007
VS
25470 { ac_try='test -z "$ac_c_werror_flag"
25471 || test ! -s conftest.err'
25472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25473 (eval $ac_try) 2>&5
25474 ac_status=$?
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); }; } &&
25477 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479 (eval $ac_try) 2>&5
25480 ac_status=$?
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); }; }; then
25483 ac_cv_lib_nsl_gethostbyname=yes
25484else
25485 echo "$as_me: failed program was:" >&5
25486sed 's/^/| /' conftest.$ac_ext >&5
25487
25488ac_cv_lib_nsl_gethostbyname=no
25489fi
32ddf007
VS
25490rm -f conftest.err conftest.$ac_objext \
25491 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25492LIBS=$ac_check_lib_save_LIBS
25493fi
25494echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25495echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25496if test $ac_cv_lib_nsl_gethostbyname = yes; then
25497 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 25498fi
247f5006 25499
e6cc62c6 25500 if test $ac_cv_lib_nsl_gethostbyname = no; then
32ddf007 25501 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
25502echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25503if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25504 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 25505else
e6cc62c6
VS
25506 ac_check_lib_save_LIBS=$LIBS
25507LIBS="-lbsd $LIBS"
25508cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25509/* confdefs.h. */
25510_ACEOF
25511cat confdefs.h >>conftest.$ac_ext
25512cat >>conftest.$ac_ext <<_ACEOF
25513/* end confdefs.h. */
25514
25515/* Override any gcc2 internal prototype to avoid an error. */
25516#ifdef __cplusplus
25517extern "C"
25518#endif
25519/* We use char because int might match the return type of a gcc2
25520 builtin and then its argument prototype would still apply. */
25521char gethostbyname ();
25522int
25523main ()
25524{
25525gethostbyname ();
25526 ;
25527 return 0;
25528}
25529_ACEOF
25530rm -f conftest.$ac_objext conftest$ac_exeext
25531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25532 (eval $ac_link) 2>conftest.er1
e6cc62c6 25533 ac_status=$?
32ddf007
VS
25534 grep -v '^ *+' conftest.er1 >conftest.err
25535 rm -f conftest.er1
25536 cat conftest.err >&5
e6cc62c6
VS
25537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25538 (exit $ac_status); } &&
32ddf007
VS
25539 { ac_try='test -z "$ac_c_werror_flag"
25540 || test ! -s conftest.err'
25541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25542 (eval $ac_try) 2>&5
25543 ac_status=$?
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); }; } &&
25546 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25548 (eval $ac_try) 2>&5
25549 ac_status=$?
25550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551 (exit $ac_status); }; }; then
25552 ac_cv_lib_bsd_gethostbyname=yes
25553else
25554 echo "$as_me: failed program was:" >&5
25555sed 's/^/| /' conftest.$ac_ext >&5
25556
25557ac_cv_lib_bsd_gethostbyname=no
25558fi
32ddf007
VS
25559rm -f conftest.err conftest.$ac_objext \
25560 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25561LIBS=$ac_check_lib_save_LIBS
25562fi
25563echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25564echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25565if test $ac_cv_lib_bsd_gethostbyname = yes; then
25566 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 25567fi
90dd450c 25568
e6cc62c6 25569 fi
90dd450c
VZ
25570 fi
25571
21d1c967
GD
25572 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25573 # socket/setsockopt and other routines are undefined under SCO ODT
25574 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
25575 # on later versions), says Simon Leinen: it contains gethostby*
25576 # variants that don't use the name server (or something). -lsocket
25577 # must be given before -lnsl if both are needed. We assume that
25578 # if connect needs -lnsl, so does gethostbyname.
25579 echo "$as_me:$LINENO: checking for connect" >&5
25580echo $ECHO_N "checking for connect... $ECHO_C" >&6
25581if test "${ac_cv_func_connect+set}" = set; then
25582 echo $ECHO_N "(cached) $ECHO_C" >&6
25583else
25584 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25585/* confdefs.h. */
25586_ACEOF
25587cat confdefs.h >>conftest.$ac_ext
25588cat >>conftest.$ac_ext <<_ACEOF
25589/* end confdefs.h. */
32ddf007
VS
25590/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25592#define connect innocuous_connect
25593
21d1c967 25594/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25595 which can conflict with char connect (); below.
25596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25597 <limits.h> exists even on freestanding compilers. */
32ddf007 25598
e6cc62c6
VS
25599#ifdef __STDC__
25600# include <limits.h>
25601#else
25602# include <assert.h>
25603#endif
32ddf007
VS
25604
25605#undef connect
25606
21d1c967 25607/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25608#ifdef __cplusplus
25609extern "C"
25610{
25611#endif
21d1c967 25612/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25613 builtin and then its argument prototype would still apply. */
25614char connect ();
21d1c967
GD
25615/* The GNU C library defines this for functions which it implements
25616 to always fail with ENOSYS. Some functions are actually named
25617 something starting with __ and the normal name is an alias. */
25618#if defined (__stub_connect) || defined (__stub___connect)
25619choke me
25620#else
e6cc62c6
VS
25621char (*f) () = connect;
25622#endif
25623#ifdef __cplusplus
25624}
21d1c967 25625#endif
90dd450c 25626
e6cc62c6
VS
25627int
25628main ()
25629{
25630return f != connect;
25631 ;
25632 return 0;
25633}
25634_ACEOF
25635rm -f conftest.$ac_objext conftest$ac_exeext
25636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25637 (eval $ac_link) 2>conftest.er1
e6cc62c6 25638 ac_status=$?
32ddf007
VS
25639 grep -v '^ *+' conftest.er1 >conftest.err
25640 rm -f conftest.er1
25641 cat conftest.err >&5
e6cc62c6
VS
25642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643 (exit $ac_status); } &&
32ddf007
VS
25644 { ac_try='test -z "$ac_c_werror_flag"
25645 || test ! -s conftest.err'
25646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25647 (eval $ac_try) 2>&5
25648 ac_status=$?
25649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); }; } &&
25651 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25653 (eval $ac_try) 2>&5
25654 ac_status=$?
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); }; }; then
25657 ac_cv_func_connect=yes
25658else
25659 echo "$as_me: failed program was:" >&5
25660sed 's/^/| /' conftest.$ac_ext >&5
25661
25662ac_cv_func_connect=no
25663fi
32ddf007
VS
25664rm -f conftest.err conftest.$ac_objext \
25665 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25666fi
25667echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25668echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 25669
21d1c967 25670 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
25671 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25672echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25673if test "${ac_cv_lib_socket_connect+set}" = set; then
25674 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 25675else
e6cc62c6 25676 ac_check_lib_save_LIBS=$LIBS
21d1c967 25677LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 25678cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25679/* confdefs.h. */
25680_ACEOF
25681cat confdefs.h >>conftest.$ac_ext
25682cat >>conftest.$ac_ext <<_ACEOF
25683/* end confdefs.h. */
25684
21d1c967 25685/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25686#ifdef __cplusplus
25687extern "C"
25688#endif
21d1c967 25689/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25690 builtin and then its argument prototype would still apply. */
25691char connect ();
25692int
25693main ()
25694{
25695connect ();
25696 ;
25697 return 0;
25698}
25699_ACEOF
25700rm -f conftest.$ac_objext conftest$ac_exeext
25701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25702 (eval $ac_link) 2>conftest.er1
e6cc62c6 25703 ac_status=$?
32ddf007
VS
25704 grep -v '^ *+' conftest.er1 >conftest.err
25705 rm -f conftest.er1
25706 cat conftest.err >&5
e6cc62c6
VS
25707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708 (exit $ac_status); } &&
32ddf007
VS
25709 { ac_try='test -z "$ac_c_werror_flag"
25710 || test ! -s conftest.err'
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25713 ac_status=$?
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; } &&
25716 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718 (eval $ac_try) 2>&5
25719 ac_status=$?
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); }; }; then
25722 ac_cv_lib_socket_connect=yes
25723else
25724 echo "$as_me: failed program was:" >&5
25725sed 's/^/| /' conftest.$ac_ext >&5
25726
25727ac_cv_lib_socket_connect=no
25728fi
32ddf007
VS
25729rm -f conftest.err conftest.$ac_objext \
25730 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25731LIBS=$ac_check_lib_save_LIBS
25732fi
25733echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25734echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25735if test $ac_cv_lib_socket_connect = yes; then
21d1c967 25736 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 25737fi
90dd450c 25738
21d1c967 25739 fi
90dd450c 25740
e6cc62c6
VS
25741 # Guillermo Gomez says -lposix is necessary on A/UX.
25742 echo "$as_me:$LINENO: checking for remove" >&5
25743echo $ECHO_N "checking for remove... $ECHO_C" >&6
25744if test "${ac_cv_func_remove+set}" = set; then
25745 echo $ECHO_N "(cached) $ECHO_C" >&6
25746else
25747 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25748/* confdefs.h. */
25749_ACEOF
25750cat confdefs.h >>conftest.$ac_ext
25751cat >>conftest.$ac_ext <<_ACEOF
25752/* end confdefs.h. */
32ddf007
VS
25753/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25755#define remove innocuous_remove
25756
21d1c967 25757/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25758 which can conflict with char remove (); below.
25759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25760 <limits.h> exists even on freestanding compilers. */
32ddf007 25761
e6cc62c6
VS
25762#ifdef __STDC__
25763# include <limits.h>
25764#else
25765# include <assert.h>
25766#endif
32ddf007
VS
25767
25768#undef remove
25769
21d1c967 25770/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25771#ifdef __cplusplus
25772extern "C"
25773{
25774#endif
21d1c967 25775/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25776 builtin and then its argument prototype would still apply. */
25777char remove ();
21d1c967
GD
25778/* The GNU C library defines this for functions which it implements
25779 to always fail with ENOSYS. Some functions are actually named
25780 something starting with __ and the normal name is an alias. */
25781#if defined (__stub_remove) || defined (__stub___remove)
25782choke me
25783#else
e6cc62c6
VS
25784char (*f) () = remove;
25785#endif
25786#ifdef __cplusplus
25787}
21d1c967 25788#endif
90dd450c 25789
e6cc62c6
VS
25790int
25791main ()
25792{
25793return f != remove;
25794 ;
25795 return 0;
25796}
25797_ACEOF
25798rm -f conftest.$ac_objext conftest$ac_exeext
25799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25800 (eval $ac_link) 2>conftest.er1
e6cc62c6 25801 ac_status=$?
32ddf007
VS
25802 grep -v '^ *+' conftest.er1 >conftest.err
25803 rm -f conftest.er1
25804 cat conftest.err >&5
e6cc62c6
VS
25805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25806 (exit $ac_status); } &&
32ddf007
VS
25807 { ac_try='test -z "$ac_c_werror_flag"
25808 || test ! -s conftest.err'
25809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25810 (eval $ac_try) 2>&5
25811 ac_status=$?
25812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); }; } &&
25814 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25816 (eval $ac_try) 2>&5
25817 ac_status=$?
25818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25819 (exit $ac_status); }; }; then
25820 ac_cv_func_remove=yes
25821else
25822 echo "$as_me: failed program was:" >&5
25823sed 's/^/| /' conftest.$ac_ext >&5
25824
25825ac_cv_func_remove=no
25826fi
32ddf007
VS
25827rm -f conftest.err conftest.$ac_objext \
25828 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25829fi
25830echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25831echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 25832
21d1c967 25833 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
25834 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25835echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25836if test "${ac_cv_lib_posix_remove+set}" = set; then
25837 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25838else
e6cc62c6 25839 ac_check_lib_save_LIBS=$LIBS
21d1c967 25840LIBS="-lposix $LIBS"
e6cc62c6 25841cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25842/* confdefs.h. */
25843_ACEOF
25844cat confdefs.h >>conftest.$ac_ext
25845cat >>conftest.$ac_ext <<_ACEOF
25846/* end confdefs.h. */
25847
21d1c967 25848/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25849#ifdef __cplusplus
25850extern "C"
25851#endif
21d1c967 25852/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25853 builtin and then its argument prototype would still apply. */
25854char remove ();
25855int
25856main ()
25857{
25858remove ();
25859 ;
25860 return 0;
25861}
25862_ACEOF
25863rm -f conftest.$ac_objext conftest$ac_exeext
25864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25865 (eval $ac_link) 2>conftest.er1
e6cc62c6 25866 ac_status=$?
32ddf007
VS
25867 grep -v '^ *+' conftest.er1 >conftest.err
25868 rm -f conftest.er1
25869 cat conftest.err >&5
e6cc62c6
VS
25870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25871 (exit $ac_status); } &&
32ddf007
VS
25872 { ac_try='test -z "$ac_c_werror_flag"
25873 || test ! -s conftest.err'
25874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25875 (eval $ac_try) 2>&5
25876 ac_status=$?
25877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25878 (exit $ac_status); }; } &&
25879 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25881 (eval $ac_try) 2>&5
25882 ac_status=$?
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); }; }; then
25885 ac_cv_lib_posix_remove=yes
25886else
25887 echo "$as_me: failed program was:" >&5
25888sed 's/^/| /' conftest.$ac_ext >&5
25889
25890ac_cv_lib_posix_remove=no
25891fi
32ddf007
VS
25892rm -f conftest.err conftest.$ac_objext \
25893 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25894LIBS=$ac_check_lib_save_LIBS
25895fi
25896echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25897echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25898if test $ac_cv_lib_posix_remove = yes; then
21d1c967 25899 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 25900fi
19bc6aad 25901
90dd450c 25902 fi
19bc6aad 25903
21d1c967 25904 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
25905 echo "$as_me:$LINENO: checking for shmat" >&5
25906echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25907if test "${ac_cv_func_shmat+set}" = set; then
25908 echo $ECHO_N "(cached) $ECHO_C" >&6
25909else
25910 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25911/* confdefs.h. */
25912_ACEOF
25913cat confdefs.h >>conftest.$ac_ext
25914cat >>conftest.$ac_ext <<_ACEOF
25915/* end confdefs.h. */
32ddf007
VS
25916/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25918#define shmat innocuous_shmat
25919
21d1c967 25920/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25921 which can conflict with char shmat (); below.
25922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25923 <limits.h> exists even on freestanding compilers. */
32ddf007 25924
e6cc62c6
VS
25925#ifdef __STDC__
25926# include <limits.h>
25927#else
25928# include <assert.h>
25929#endif
32ddf007
VS
25930
25931#undef shmat
25932
21d1c967 25933/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25934#ifdef __cplusplus
25935extern "C"
25936{
25937#endif
21d1c967 25938/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25939 builtin and then its argument prototype would still apply. */
25940char shmat ();
21d1c967
GD
25941/* The GNU C library defines this for functions which it implements
25942 to always fail with ENOSYS. Some functions are actually named
25943 something starting with __ and the normal name is an alias. */
25944#if defined (__stub_shmat) || defined (__stub___shmat)
25945choke me
25946#else
e6cc62c6
VS
25947char (*f) () = shmat;
25948#endif
25949#ifdef __cplusplus
25950}
21d1c967 25951#endif
90dd450c 25952
e6cc62c6
VS
25953int
25954main ()
25955{
25956return f != shmat;
25957 ;
25958 return 0;
25959}
25960_ACEOF
25961rm -f conftest.$ac_objext conftest$ac_exeext
25962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 25963 (eval $ac_link) 2>conftest.er1
e6cc62c6 25964 ac_status=$?
32ddf007
VS
25965 grep -v '^ *+' conftest.er1 >conftest.err
25966 rm -f conftest.er1
25967 cat conftest.err >&5
e6cc62c6
VS
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); } &&
32ddf007
VS
25970 { ac_try='test -z "$ac_c_werror_flag"
25971 || test ! -s conftest.err'
25972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25974 ac_status=$?
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; } &&
25977 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25979 (eval $ac_try) 2>&5
25980 ac_status=$?
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); }; }; then
25983 ac_cv_func_shmat=yes
25984else
25985 echo "$as_me: failed program was:" >&5
25986sed 's/^/| /' conftest.$ac_ext >&5
25987
25988ac_cv_func_shmat=no
25989fi
32ddf007
VS
25990rm -f conftest.err conftest.$ac_objext \
25991 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25992fi
25993echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25994echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 25995
21d1c967 25996 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
25997 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25998echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25999if test "${ac_cv_lib_ipc_shmat+set}" = set; then
26000 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 26001else
e6cc62c6 26002 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 26003LIBS="-lipc $LIBS"
e6cc62c6 26004cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26005/* confdefs.h. */
26006_ACEOF
26007cat confdefs.h >>conftest.$ac_ext
26008cat >>conftest.$ac_ext <<_ACEOF
26009/* end confdefs.h. */
26010
5c6fa7d2 26011/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26012#ifdef __cplusplus
26013extern "C"
26014#endif
5c6fa7d2 26015/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26016 builtin and then its argument prototype would still apply. */
26017char shmat ();
26018int
26019main ()
26020{
26021shmat ();
26022 ;
26023 return 0;
26024}
26025_ACEOF
26026rm -f conftest.$ac_objext conftest$ac_exeext
26027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 26028 (eval $ac_link) 2>conftest.er1
e6cc62c6 26029 ac_status=$?
32ddf007
VS
26030 grep -v '^ *+' conftest.er1 >conftest.err
26031 rm -f conftest.er1
26032 cat conftest.err >&5
e6cc62c6
VS
26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26034 (exit $ac_status); } &&
32ddf007
VS
26035 { ac_try='test -z "$ac_c_werror_flag"
26036 || test ! -s conftest.err'
26037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26038 (eval $ac_try) 2>&5
26039 ac_status=$?
26040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26041 (exit $ac_status); }; } &&
26042 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26044 (eval $ac_try) 2>&5
26045 ac_status=$?
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); }; }; then
26048 ac_cv_lib_ipc_shmat=yes
26049else
26050 echo "$as_me: failed program was:" >&5
26051sed 's/^/| /' conftest.$ac_ext >&5
26052
26053ac_cv_lib_ipc_shmat=no
26054fi
32ddf007
VS
26055rm -f conftest.err conftest.$ac_objext \
26056 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26057LIBS=$ac_check_lib_save_LIBS
26058fi
26059echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
26060echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
26061if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 26062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 26063fi
90dd450c 26064
90dd450c 26065 fi
21d1c967 26066 fi
10f2d63a 26067
21d1c967 26068 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 26069 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
26070 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26071 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26072 # check for ICE first), but we must link in the order -lSM -lICE or
26073 # we get undefined symbols. So assume we have SM if we have ICE.
26074 # These have to be linked with before -lX11, unlike the other
26075 # libraries we check for below, so use a different variable.
e6cc62c6
VS
26076 # John Interrante, Karl Berry
26077 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
26078echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
26079if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
26080 echo $ECHO_N "(cached) $ECHO_C" >&6
26081else
26082 ac_check_lib_save_LIBS=$LIBS
f09359cf 26083LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 26084cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26085/* confdefs.h. */
26086_ACEOF
26087cat confdefs.h >>conftest.$ac_ext
26088cat >>conftest.$ac_ext <<_ACEOF
26089/* end confdefs.h. */
26090
21d1c967 26091/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26092#ifdef __cplusplus
26093extern "C"
26094#endif
21d1c967 26095/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26096 builtin and then its argument prototype would still apply. */
26097char IceConnectionNumber ();
26098int
26099main ()
26100{
26101IceConnectionNumber ();
26102 ;
26103 return 0;
26104}
26105_ACEOF
26106rm -f conftest.$ac_objext conftest$ac_exeext
26107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 26108 (eval $ac_link) 2>conftest.er1
e6cc62c6 26109 ac_status=$?
32ddf007
VS
26110 grep -v '^ *+' conftest.er1 >conftest.err
26111 rm -f conftest.er1
26112 cat conftest.err >&5
e6cc62c6
VS
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); } &&
32ddf007
VS
26115 { ac_try='test -z "$ac_c_werror_flag"
26116 || test ! -s conftest.err'
26117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26118 (eval $ac_try) 2>&5
26119 ac_status=$?
26120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26121 (exit $ac_status); }; } &&
26122 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26124 (eval $ac_try) 2>&5
26125 ac_status=$?
26126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26127 (exit $ac_status); }; }; then
26128 ac_cv_lib_ICE_IceConnectionNumber=yes
26129else
26130 echo "$as_me: failed program was:" >&5
26131sed 's/^/| /' conftest.$ac_ext >&5
26132
26133ac_cv_lib_ICE_IceConnectionNumber=no
26134fi
32ddf007
VS
26135rm -f conftest.err conftest.$ac_objext \
26136 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26137LIBS=$ac_check_lib_save_LIBS
26138fi
26139echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26140echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26141if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 26142 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 26143fi
21d1c967 26144
e6cc62c6 26145 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 26146
10f2d63a
VZ
26147fi
26148
8284b0c5 26149
21d1c967 26150 if test "$no_x" = "yes"; then
e6cc62c6
VS
26151 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26152echo "$as_me: error: X11 not found" >&2;}
26153 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
26154 fi
26155
2b5f62a0
VZ
26156 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
26157 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
26158 AFMINSTALL=afminstall
26159 COMPILED_X_PROGRAM=0
26160
e6cc62c6
VS
26161 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26162echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
26163
21d1c967 26164ac_find_includes=
2b5f62a0 26165for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
26166 do
26167 if test -f "$ac_dir/Xm/Xm.h"; then
26168 ac_find_includes=$ac_dir
26169 break
26170 fi
26171 done
26172
26173 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
26174 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26175echo "${ECHO_T}found in $ac_find_includes" >&6
26176
2b5f62a0 26177 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
26178 ac_path_to_include=""
26179 else
2b5f62a0
VZ
26180 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26181 result=$?
26182 if test $result = 0; then
26183 ac_path_to_include=""
26184 else
26185 ac_path_to_include=" -I$ac_find_includes"
26186 fi
dd0e4a90
VZ
26187 fi
26188
26189 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 26190 else
e6cc62c6 26191 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26192/* confdefs.h. */
26193_ACEOF
26194cat confdefs.h >>conftest.$ac_ext
26195cat >>conftest.$ac_ext <<_ACEOF
26196/* end confdefs.h. */
21d1c967
GD
26197
26198 #include <Xm/Xm.h>
e6cc62c6
VS
26199
26200int
26201main ()
26202{
21d1c967
GD
26203
26204 int version;
26205 version = xmUseVersion;
e6cc62c6
VS
26206
26207 ;
26208 return 0;
26209}
26210_ACEOF
26211rm -f conftest.$ac_objext
26212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26213 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26214 ac_status=$?
32ddf007
VS
26215 grep -v '^ *+' conftest.er1 >conftest.err
26216 rm -f conftest.er1
26217 cat conftest.err >&5
e6cc62c6
VS
26218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219 (exit $ac_status); } &&
32ddf007
VS
26220 { ac_try='test -z "$ac_c_werror_flag"
26221 || test ! -s conftest.err'
26222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26223 (eval $ac_try) 2>&5
26224 ac_status=$?
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); }; } &&
26227 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26229 (eval $ac_try) 2>&5
26230 ac_status=$?
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); }; }; then
26233
26234 echo "$as_me:$LINENO: result: found in default search path" >&5
26235echo "${ECHO_T}found in default search path" >&6
21d1c967 26236 COMPILED_X_PROGRAM=1
e6cc62c6 26237
10f2d63a 26238else
e6cc62c6
VS
26239 echo "$as_me: failed program was:" >&5
26240sed 's/^/| /' conftest.$ac_ext >&5
26241
26242
26243 echo "$as_me:$LINENO: result: no" >&5
26244echo "${ECHO_T}no" >&6
26245 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26246echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26247 { (exit 1); exit 1; }; }
26248
26249
10f2d63a 26250fi
32ddf007 26251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 26252 fi
10f2d63a 26253
21d1c967 26254 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
26255 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26256echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26257
21d1c967 26258ac_find_libraries=
2b5f62a0 26259for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26260 do
26261 for ac_extension in a so sl dylib; do
26262 if test -f "$ac_dir/libXm.$ac_extension"; then
26263 ac_find_libraries=$ac_dir
26264 break 2
26265 fi
26266 done
26267 done
26268
26269 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
26270 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26271echo "${ECHO_T}found at $ac_find_libraries" >&6
26272
21d1c967 26273
21d1c967
GD
26274 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26275 result=$?
26276 if test $result = 0; then
26277 ac_path_to_link=""
26278 else
26279 ac_path_to_link=" -L$ac_find_libraries"
26280 fi
26281
21d1c967 26282 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 26283 else
dd0e4a90
VZ
26284 save_CFLAGS=$CFLAGS
26285 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26286
e6cc62c6 26287 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26288/* confdefs.h. */
26289_ACEOF
26290cat confdefs.h >>conftest.$ac_ext
26291cat >>conftest.$ac_ext <<_ACEOF
26292/* end confdefs.h. */
21d1c967
GD
26293
26294 #include <Xm/Xm.h>
e6cc62c6
VS
26295
26296int
26297main ()
26298{
21d1c967
GD
26299
26300 int version;
26301 version = xmUseVersion;
e6cc62c6
VS
26302
26303 ;
26304 return 0;
26305}
26306_ACEOF
26307rm -f conftest.$ac_objext
26308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26309 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26310 ac_status=$?
32ddf007
VS
26311 grep -v '^ *+' conftest.er1 >conftest.err
26312 rm -f conftest.er1
26313 cat conftest.err >&5
e6cc62c6
VS
26314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315 (exit $ac_status); } &&
32ddf007
VS
26316 { ac_try='test -z "$ac_c_werror_flag"
26317 || test ! -s conftest.err'
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26320 ac_status=$?
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; } &&
26323 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26325 (eval $ac_try) 2>&5
26326 ac_status=$?
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); }; }; then
26329
26330 echo "$as_me:$LINENO: result: found in default search path" >&5
26331echo "${ECHO_T}found in default search path" >&6
21d1c967 26332 COMPILED_X_PROGRAM=1
e6cc62c6 26333
d836ee96 26334else
e6cc62c6
VS
26335 echo "$as_me: failed program was:" >&5
26336sed 's/^/| /' conftest.$ac_ext >&5
26337
26338
26339 echo "$as_me:$LINENO: result: no" >&5
26340echo "${ECHO_T}no" >&6
26341 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26342echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26343 { (exit 1); exit 1; }; }
26344
26345
d836ee96 26346fi
32ddf007 26347rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
26348
26349 CFLAGS=$save_CFLAGS
21d1c967
GD
26350 fi
26351 fi
26352
e6cc62c6
VS
26353 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26354echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
26355 libp_link=""
26356 libsm_ice_link=""
26357 libs_found=0
26358 for libp in "" " -lXp"; do
26359 if test "$libs_found" = "0"; then
7015ef3a 26360 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 26361 if test "$libs_found" = "0"; then
6a30f1c8 26362 save_LIBS="$LIBS"
93a543aa 26363 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
26364 save_CFLAGS=$CFLAGS
26365 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26366
e6cc62c6 26367 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26368/* confdefs.h. */
26369_ACEOF
26370cat confdefs.h >>conftest.$ac_ext
26371cat >>conftest.$ac_ext <<_ACEOF
26372/* end confdefs.h. */
17234b26 26373
6a30f1c8
MB
26374 #include <Xm/Xm.h>
26375 #include <Xm/List.h>
e6cc62c6
VS
26376
26377int
26378main ()
26379{
6a30f1c8
MB
26380
26381 XmString string = NULL;
26382 Widget w = NULL;
26383 int position = 0;
26384 XmListAddItem(w, string, position);
e6cc62c6
VS
26385
26386 ;
26387 return 0;
26388}
26389_ACEOF
26390rm -f conftest.$ac_objext conftest$ac_exeext
26391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 26392 (eval $ac_link) 2>conftest.er1
e6cc62c6 26393 ac_status=$?
32ddf007
VS
26394 grep -v '^ *+' conftest.er1 >conftest.err
26395 rm -f conftest.er1
26396 cat conftest.err >&5
e6cc62c6
VS
26397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 (exit $ac_status); } &&
32ddf007
VS
26399 { ac_try='test -z "$ac_c_werror_flag"
26400 || test ! -s conftest.err'
26401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26402 (eval $ac_try) 2>&5
26403 ac_status=$?
26404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); }; } &&
26406 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26408 (eval $ac_try) 2>&5
26409 ac_status=$?
26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411 (exit $ac_status); }; }; then
26412
6a30f1c8
MB
26413 libp_link="$libp"
26414 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
26415 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26416echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 26417 libs_found=1
e6cc62c6 26418
6a30f1c8 26419else
e6cc62c6
VS
26420 echo "$as_me: failed program was:" >&5
26421sed 's/^/| /' conftest.$ac_ext >&5
26422
26423
26424
6a30f1c8 26425fi
32ddf007
VS
26426rm -f conftest.err conftest.$ac_objext \
26427 conftest$ac_exeext conftest.$ac_ext
dd0e4a90 26428
6a30f1c8 26429 LIBS="$save_LIBS"
dd0e4a90 26430 CFLAGS=$save_CFLAGS
6a30f1c8
MB
26431 fi
26432 done
26433 fi
26434 done
26435
26436 if test "$libs_found" = "0"; then
e6cc62c6
VS
26437 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26438echo "${ECHO_T}can't find the right libraries" >&6
26439 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26440echo "$as_me: error: can't link a simple motif program" >&2;}
26441 { (exit 1); exit 1; }; }
6a30f1c8
MB
26442 fi
26443
da494b40
MB
26444 save_CFLAGS=$CFLAGS
26445 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
26446 echo "$as_me:$LINENO: checking for Motif 2" >&5
26447echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26448 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26449/* confdefs.h. */
26450_ACEOF
26451cat confdefs.h >>conftest.$ac_ext
26452cat >>conftest.$ac_ext <<_ACEOF
26453/* end confdefs.h. */
da494b40
MB
26454
26455 #include <Xm/Xm.h>
e6cc62c6
VS
26456
26457int
26458main ()
26459{
da494b40
MB
26460
26461 #if XmVersion < 2000
26462 #error "Not Motif 2"
26463 #endif
e6cc62c6
VS
26464
26465 ;
26466 return 0;
26467}
26468_ACEOF
26469rm -f conftest.$ac_objext
26470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26471 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26472 ac_status=$?
32ddf007
VS
26473 grep -v '^ *+' conftest.er1 >conftest.err
26474 rm -f conftest.er1
26475 cat conftest.err >&5
e6cc62c6
VS
26476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26477 (exit $ac_status); } &&
32ddf007
VS
26478 { ac_try='test -z "$ac_c_werror_flag"
26479 || test ! -s conftest.err'
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; } &&
26485 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26487 (eval $ac_try) 2>&5
26488 ac_status=$?
26489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26490 (exit $ac_status); }; }; then
26491
26492 cat >>confdefs.h <<\_ACEOF
da494b40 26493#define __WXMOTIF20__ 1
e6cc62c6
VS
26494_ACEOF
26495
26496 echo "$as_me:$LINENO: result: found" >&5
26497echo "${ECHO_T}found" >&6
da494b40 26498
da494b40 26499else
e6cc62c6
VS
26500 echo "$as_me: failed program was:" >&5
26501sed 's/^/| /' conftest.$ac_ext >&5
26502
26503
26504 cat >>confdefs.h <<\_ACEOF
da494b40 26505#define __WXMOTIF20__ 0
e6cc62c6
VS
26506_ACEOF
26507
26508 echo "$as_me:$LINENO: result: not found" >&5
26509echo "${ECHO_T}not found" >&6
da494b40 26510
da494b40 26511fi
32ddf007 26512rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
da494b40
MB
26513 CFLAGS=$save_CFLAGS
26514
93a543aa 26515 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 26516 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
26517 TOOLKIT=MOTIF
26518 GUIDIST=MOTIF_DIST
f7f78039
MB
26519 fi
26520
89fe663f
VZ
26521 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26522 if test "$wxUSE_LIBXPM" = "sys"; then
26523 echo "$as_me:$LINENO: checking for Xpm library" >&5
26524echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26525
26526ac_find_libraries=
26527for ac_dir in $SEARCH_LIB /usr/lib;
26528 do
26529 for ac_extension in a so sl dylib; do
26530 if test -f "$ac_dir/libXpm.$ac_extension"; then
26531 ac_find_libraries=$ac_dir
26532 break 2
26533 fi
26534 done
26535 done
26536
26537 if test "$ac_find_libraries" != "" ; then
26538
26539 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26540 result=$?
26541 if test $result = 0; then
26542 ac_path_to_link=""
26543 else
26544 ac_path_to_link=" -L$ac_find_libraries"
26545 fi
26546
26547 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26548 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26549echo "${ECHO_T}found at $ac_find_libraries" >&6
26550
26551 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26552echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26553if test "${wx_cv_x11_xpm_h+set}" = set; then
26554 echo $ECHO_N "(cached) $ECHO_C" >&6
26555else
26556
26557 save_CFLAGS=$CFLAGS
26558 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26559
26560 cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
26561/* confdefs.h. */
26562_ACEOF
26563cat confdefs.h >>conftest.$ac_ext
26564cat >>conftest.$ac_ext <<_ACEOF
26565/* end confdefs.h. */
26566
26567 #include <X11/xpm.h>
26568
26569int
26570main ()
26571{
26572
26573 int version;
26574 version = XpmLibraryVersion();
26575
26576 ;
26577 return 0;
26578}
26579_ACEOF
26580rm -f conftest.$ac_objext
26581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26582 (eval $ac_compile) 2>conftest.er1
89fe663f 26583 ac_status=$?
32ddf007
VS
26584 grep -v '^ *+' conftest.er1 >conftest.err
26585 rm -f conftest.er1
26586 cat conftest.err >&5
89fe663f
VZ
26587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26588 (exit $ac_status); } &&
32ddf007
VS
26589 { ac_try='test -z "$ac_c_werror_flag"
26590 || test ! -s conftest.err'
26591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26592 (eval $ac_try) 2>&5
26593 ac_status=$?
26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26595 (exit $ac_status); }; } &&
26596 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
26597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598 (eval $ac_try) 2>&5
26599 ac_status=$?
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); }; }; then
26602 wx_cv_x11_xpm_h=yes
26603else
26604 echo "$as_me: failed program was:" >&5
26605sed 's/^/| /' conftest.$ac_ext >&5
26606
26607wx_cv_x11_xpm_h=no
26608
26609fi
32ddf007 26610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26611
26612 CFLAGS=$save_CFLAGS
26613
26614
26615fi
26616echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26617echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26618
26619 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 26620 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
26621 cat >>confdefs.h <<\_ACEOF
26622#define wxHAVE_LIB_XPM 1
26623_ACEOF
26624
26625 else
26626 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26627echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26628 fi
26629 fi
26630
26631 fi
f7f78039 26632
89fe663f
VZ
26633 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26634echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26635if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26636 echo $ECHO_N "(cached) $ECHO_C" >&6
26637else
26638 ac_check_lib_save_LIBS=$LIBS
26639LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26640cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
26641/* confdefs.h. */
26642_ACEOF
26643cat confdefs.h >>conftest.$ac_ext
26644cat >>conftest.$ac_ext <<_ACEOF
26645/* end confdefs.h. */
26646
26647/* Override any gcc2 internal prototype to avoid an error. */
26648#ifdef __cplusplus
26649extern "C"
26650#endif
26651/* We use char because int might match the return type of a gcc2
26652 builtin and then its argument prototype would still apply. */
26653char XShapeQueryExtension ();
26654int
26655main ()
26656{
26657XShapeQueryExtension ();
26658 ;
26659 return 0;
26660}
26661_ACEOF
26662rm -f conftest.$ac_objext conftest$ac_exeext
26663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 26664 (eval $ac_link) 2>conftest.er1
89fe663f 26665 ac_status=$?
32ddf007
VS
26666 grep -v '^ *+' conftest.er1 >conftest.err
26667 rm -f conftest.er1
26668 cat conftest.err >&5
89fe663f
VZ
26669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670 (exit $ac_status); } &&
32ddf007
VS
26671 { ac_try='test -z "$ac_c_werror_flag"
26672 || test ! -s conftest.err'
26673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26674 (eval $ac_try) 2>&5
26675 ac_status=$?
26676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677 (exit $ac_status); }; } &&
26678 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
26679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680 (eval $ac_try) 2>&5
26681 ac_status=$?
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); }; }; then
26684 ac_cv_lib_Xext_XShapeQueryExtension=yes
26685else
26686 echo "$as_me: failed program was:" >&5
26687sed 's/^/| /' conftest.$ac_ext >&5
26688
26689ac_cv_lib_Xext_XShapeQueryExtension=no
26690fi
32ddf007
VS
26691rm -f conftest.err conftest.$ac_objext \
26692 conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
26693LIBS=$ac_check_lib_save_LIBS
26694fi
26695echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26696echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26697if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26698
26699 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26700 wxHAVE_XEXT_LIB=1
26701
26702fi
26703
26704
26705 if test "$wxHAVE_XEXT_LIB" = 1; then
26706 save_CFLAGS="$CFLAGS"
26707 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26708
26709 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 26710echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 26711 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26712/* confdefs.h. */
26713_ACEOF
26714cat confdefs.h >>conftest.$ac_ext
26715cat >>conftest.$ac_ext <<_ACEOF
26716/* end confdefs.h. */
26717
89fe663f
VZ
26718 #include <X11/Xlib.h>
26719 #include <X11/extensions/shape.h>
e6cc62c6
VS
26720
26721int
26722main ()
26723{
f7f78039 26724
89fe663f
VZ
26725 int dummy1, dummy2;
26726 XShapeQueryExtension((Display*)NULL,
26727 (int*)NULL, (int*)NULL);
e6cc62c6
VS
26728
26729 ;
26730 return 0;
26731}
26732_ACEOF
26733rm -f conftest.$ac_objext
26734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26735 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26736 ac_status=$?
32ddf007
VS
26737 grep -v '^ *+' conftest.er1 >conftest.err
26738 rm -f conftest.er1
26739 cat conftest.err >&5
e6cc62c6
VS
26740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26741 (exit $ac_status); } &&
32ddf007
VS
26742 { ac_try='test -z "$ac_c_werror_flag"
26743 || test ! -s conftest.err'
26744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26745 (eval $ac_try) 2>&5
26746 ac_status=$?
26747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748 (exit $ac_status); }; } &&
26749 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26751 (eval $ac_try) 2>&5
26752 ac_status=$?
26753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754 (exit $ac_status); }; }; then
26755
89fe663f 26756 cat >>confdefs.h <<\_ACEOF
f7f78039 26757#define HAVE_XSHAPE 1
e6cc62c6
VS
26758_ACEOF
26759
89fe663f 26760 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 26761echo "${ECHO_T}found" >&6
f7f78039 26762
f7f78039 26763else
e6cc62c6
VS
26764 echo "$as_me: failed program was:" >&5
26765sed 's/^/| /' conftest.$ac_ext >&5
26766
26767
89fe663f 26768 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
26769echo "${ECHO_T}not found" >&6
26770
f7f78039 26771fi
32ddf007 26772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26773 CFLAGS="$save_CFLAGS"
26774
26775 fi
21d1c967
GD
26776 fi
26777
26778 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
26779 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26780echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26781 if test "$GCC" = yes; then
26782 echo "$as_me:$LINENO: result: gcc" >&5
26783echo "${ECHO_T}gcc" >&6
26784 CPPFLAGS_PASCAL="-fpascal-strings"
26785 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26786 echo "$as_me:$LINENO: result: xlc" >&5
26787echo "${ECHO_T}xlc" >&6
26788 CPPFLAGS_PASCAL="-qmacpstr"
26789 else
26790 echo "$as_me:$LINENO: result: none" >&5
26791echo "${ECHO_T}none" >&6
26792 fi
26793
26794 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 26795
0c98a14e 26796 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
26797 TOOLKIT=MAC
26798 GUIDIST=MACX_DIST
cf615ebb 26799 WXBASEPORT="_carbon"
21d1c967
GD
26800 fi
26801
ac0c4cc3
DE
26802 if test "$wxUSE_COCOA" = 1; then
26803 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26804 TOOLKIT=COCOA
26805 GUIDIST=COCOA_DIST
26806 fi
26807
21d1c967
GD
26808 if test "$wxUSE_PM" = 1; then
26809 TOOLKIT=PM
26810 GUIDIST=GTK_DIST
26811 fi
26812
26813 if test "$TOOLKIT" = "PM" ; then
26814 TOOLKIT_DIR="os2"
26815 else
26816 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26817 fi
26818
26819 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26820
26821 if test "$wxUSE_UNIVERSAL" = "yes"; then
26822 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26823
26824 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26825 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26826
26827 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26828 if test "$wxUSE_X11" = 1; then
26829 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26830 else
26831 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26832 fi
26833 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26834 WIDGET_SET=univ
26835 else
26836 ALL_OBJECTS="\$(GUIOBJS)"
26837 ALL_SOURCES="\$(ALL_SOURCES)"
26838 ALL_HEADERS="\$(ALL_HEADERS)"
26839 fi
26840
26841 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26842
26843 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26844 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26845 fi
26846
26847 if test "$wxUSE_HTML" = "yes"; then
26848 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26849 fi
26850
26851 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26852 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26853 fi
26854 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26855 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26856 fi
26857 if test "$wxUSE_LIBPNG" = "builtin" ; then
26858 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26859 fi
26860
26861 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26862 DISTDIR="wx\$(TOOLKIT)"
90dd450c 26863else
21d1c967
GD
26864 USE_GUI=0
26865
26866 TOOLKIT_DIR="base"
26867
26868 if test "$USE_WIN32" = 1 ; then
26869 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26870 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26871
26872 TOOLKIT="MSW"
26873 else
26874 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26875 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26876 fi
26877
26878 ALL_SOURCES="\$(ALL_SOURCES)"
26879 ALL_HEADERS="\$(ALL_HEADERS)"
26880
26881 PORT_FILES="\${top_srcdir}/src/files.lst"
26882
26883 GUIDIST="BASE_DIST"
26884 DISTDIR="wxBase"
d836ee96
VZ
26885fi
26886
8284b0c5 26887
8647bec6
RG
26888
26889
26890IODBC_C_SRC=""
26891
26892
26893if test "$TOOLKIT" != "MSW" ; then
26894
bb41dcbe 26895 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 26896
bb41dcbe 26897 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
26898 echo "$as_me:$LINENO: checking for sql.h" >&5
26899echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26900if test "${ac_cv_header_sql_h+set}" = set; then
26901 echo $ECHO_N "(cached) $ECHO_C" >&6
26902fi
26903echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26904echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26905else
26906 # Is the header compilable?
26907echo "$as_me:$LINENO: checking sql.h usability" >&5
26908echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26909cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26910/* confdefs.h. */
26911_ACEOF
26912cat confdefs.h >>conftest.$ac_ext
26913cat >>conftest.$ac_ext <<_ACEOF
26914/* end confdefs.h. */
26915$ac_includes_default
8647bec6 26916#include <sql.h>
e6cc62c6
VS
26917_ACEOF
26918rm -f conftest.$ac_objext
26919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 26920 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26921 ac_status=$?
32ddf007
VS
26922 grep -v '^ *+' conftest.er1 >conftest.err
26923 rm -f conftest.er1
26924 cat conftest.err >&5
e6cc62c6
VS
26925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926 (exit $ac_status); } &&
32ddf007
VS
26927 { ac_try='test -z "$ac_c_werror_flag"
26928 || test ! -s conftest.err'
26929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26930 (eval $ac_try) 2>&5
26931 ac_status=$?
26932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933 (exit $ac_status); }; } &&
26934 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26936 (eval $ac_try) 2>&5
26937 ac_status=$?
26938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); }; }; then
26940 ac_header_compiler=yes
26941else
26942 echo "$as_me: failed program was:" >&5
26943sed 's/^/| /' conftest.$ac_ext >&5
26944
26945ac_header_compiler=no
26946fi
32ddf007 26947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26948echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26949echo "${ECHO_T}$ac_header_compiler" >&6
26950
26951# Is the header present?
26952echo "$as_me:$LINENO: checking sql.h presence" >&5
26953echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26954cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26955/* confdefs.h. */
26956_ACEOF
26957cat confdefs.h >>conftest.$ac_ext
26958cat >>conftest.$ac_ext <<_ACEOF
26959/* end confdefs.h. */
26960#include <sql.h>
26961_ACEOF
26962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26963 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26964 ac_status=$?
26965 grep -v '^ *+' conftest.er1 >conftest.err
26966 rm -f conftest.er1
26967 cat conftest.err >&5
26968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969 (exit $ac_status); } >/dev/null; then
26970 if test -s conftest.err; then
26971 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 26972 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26973 else
26974 ac_cpp_err=
26975 fi
26976else
26977 ac_cpp_err=yes
26978fi
26979if test -z "$ac_cpp_err"; then
26980 ac_header_preproc=yes
26981else
26982 echo "$as_me: failed program was:" >&5
26983sed 's/^/| /' conftest.$ac_ext >&5
26984
26985 ac_header_preproc=no
26986fi
26987rm -f conftest.err conftest.$ac_ext
26988echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26989echo "${ECHO_T}$ac_header_preproc" >&6
26990
26991# So? What about this header?
32ddf007
VS
26992case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26993 yes:no: )
e6cc62c6
VS
26994 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26995echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
26996 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26997echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26998 ac_header_preproc=yes
e6cc62c6 26999 ;;
32ddf007 27000 no:yes:* )
e6cc62c6
VS
27001 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
27002echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
32ddf007
VS
27003 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
27004echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
27005 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
27006echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
27007 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
27008echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
27009 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
27010echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
27011 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
27012echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
27013 (
27014 cat <<\_ASBOX
32ddf007
VS
27015## ----------------------------------------- ##
27016## Report this to wx-dev@lists.wxwindows.org ##
27017## ----------------------------------------- ##
e6cc62c6
VS
27018_ASBOX
27019 ) |
27020 sed "s/^/$as_me: WARNING: /" >&2
27021 ;;
27022esac
27023echo "$as_me:$LINENO: checking for sql.h" >&5
27024echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
27025if test "${ac_cv_header_sql_h+set}" = set; then
27026 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 27027else
e6cc62c6
VS
27028 ac_cv_header_sql_h=$ac_header_preproc
27029fi
27030echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
27031echo "${ECHO_T}$ac_cv_header_sql_h" >&6
27032
bb41dcbe
VS
27033fi
27034if test $ac_cv_header_sql_h = yes; then
27035 found_sql_h=1
8647bec6
RG
27036fi
27037
e6cc62c6 27038
bb41dcbe 27039 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
27040 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
27041echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
27042if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 27043 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 27044else
bb41dcbe 27045 ac_check_lib_save_LIBS=$LIBS
e46d2a18 27046LIBS="-liodbc $LIBS"
e6cc62c6 27047cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27048/* confdefs.h. */
27049_ACEOF
27050cat confdefs.h >>conftest.$ac_ext
27051cat >>conftest.$ac_ext <<_ACEOF
27052/* end confdefs.h. */
27053
8647bec6 27054/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27055#ifdef __cplusplus
27056extern "C"
27057#endif
8647bec6 27058/* We use char because int might match the return type of a gcc2
e6cc62c6 27059 builtin and then its argument prototype would still apply. */
e46d2a18 27060char SQLAllocEnv ();
e6cc62c6
VS
27061int
27062main ()
27063{
e46d2a18 27064SQLAllocEnv ();
e6cc62c6
VS
27065 ;
27066 return 0;
27067}
27068_ACEOF
27069rm -f conftest.$ac_objext conftest$ac_exeext
27070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 27071 (eval $ac_link) 2>conftest.er1
e6cc62c6 27072 ac_status=$?
32ddf007
VS
27073 grep -v '^ *+' conftest.er1 >conftest.err
27074 rm -f conftest.er1
27075 cat conftest.err >&5
e6cc62c6
VS
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } &&
32ddf007
VS
27078 { ac_try='test -z "$ac_c_werror_flag"
27079 || test ! -s conftest.err'
27080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27081 (eval $ac_try) 2>&5
27082 ac_status=$?
27083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084 (exit $ac_status); }; } &&
27085 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27087 (eval $ac_try) 2>&5
27088 ac_status=$?
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); }; }; then
e46d2a18 27091 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 27092else
e6cc62c6
VS
27093 echo "$as_me: failed program was:" >&5
27094sed 's/^/| /' conftest.$ac_ext >&5
27095
e46d2a18 27096ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 27097fi
32ddf007
VS
27098rm -f conftest.err conftest.$ac_objext \
27099 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
27100LIBS=$ac_check_lib_save_LIBS
27101fi
e46d2a18
VS
27102echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
27103echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
27104if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
27105 ODBC_LINK=" -liodbc"
27106else
27107
e46d2a18
VS
27108 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
27109echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
27110if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
27111 echo $ECHO_N "(cached) $ECHO_C" >&6
27112else
27113 ac_check_lib_save_LIBS=$LIBS
e46d2a18 27114LIBS="-lunixodbc $LIBS"
bb41dcbe 27115cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27116/* confdefs.h. */
27117_ACEOF
27118cat confdefs.h >>conftest.$ac_ext
27119cat >>conftest.$ac_ext <<_ACEOF
27120/* end confdefs.h. */
27121
8647bec6 27122/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27123#ifdef __cplusplus
27124extern "C"
27125#endif
8647bec6 27126/* We use char because int might match the return type of a gcc2
e6cc62c6 27127 builtin and then its argument prototype would still apply. */
e46d2a18 27128char SQLAllocEnv ();
e6cc62c6
VS
27129int
27130main ()
27131{
e46d2a18 27132SQLAllocEnv ();
e6cc62c6
VS
27133 ;
27134 return 0;
27135}
27136_ACEOF
27137rm -f conftest.$ac_objext conftest$ac_exeext
27138if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 27139 (eval $ac_link) 2>conftest.er1
e6cc62c6 27140 ac_status=$?
32ddf007
VS
27141 grep -v '^ *+' conftest.er1 >conftest.err
27142 rm -f conftest.er1
27143 cat conftest.err >&5
e6cc62c6
VS
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); } &&
32ddf007
VS
27146 { ac_try='test -z "$ac_c_werror_flag"
27147 || test ! -s conftest.err'
27148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27149 (eval $ac_try) 2>&5
27150 ac_status=$?
27151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27152 (exit $ac_status); }; } &&
27153 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27155 (eval $ac_try) 2>&5
27156 ac_status=$?
27157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158 (exit $ac_status); }; }; then
e46d2a18 27159 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 27160else
e6cc62c6
VS
27161 echo "$as_me: failed program was:" >&5
27162sed 's/^/| /' conftest.$ac_ext >&5
27163
e46d2a18 27164ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 27165fi
32ddf007
VS
27166rm -f conftest.err conftest.$ac_objext \
27167 conftest$ac_exeext conftest.$ac_ext
bb41dcbe 27168LIBS=$ac_check_lib_save_LIBS
e6cc62c6 27169fi
e46d2a18
VS
27170echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27171echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27172if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
27173 ODBC_LINK=" -lunixodbc"
27174else
27175
e46d2a18
VS
27176 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27177echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27178if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
27179 echo $ECHO_N "(cached) $ECHO_C" >&6
27180else
27181 ac_check_lib_save_LIBS=$LIBS
e46d2a18 27182LIBS="-lodbc $LIBS"
bb41dcbe 27183cat >conftest.$ac_ext <<_ACEOF
bb41dcbe
VS
27184/* confdefs.h. */
27185_ACEOF
27186cat confdefs.h >>conftest.$ac_ext
27187cat >>conftest.$ac_ext <<_ACEOF
27188/* end confdefs.h. */
e6cc62c6 27189
bb41dcbe
VS
27190/* Override any gcc2 internal prototype to avoid an error. */
27191#ifdef __cplusplus
27192extern "C"
27193#endif
27194/* We use char because int might match the return type of a gcc2
27195 builtin and then its argument prototype would still apply. */
e46d2a18 27196char SQLAllocEnv ();
bb41dcbe
VS
27197int
27198main ()
27199{
e46d2a18 27200SQLAllocEnv ();
bb41dcbe
VS
27201 ;
27202 return 0;
27203}
27204_ACEOF
27205rm -f conftest.$ac_objext conftest$ac_exeext
27206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 27207 (eval $ac_link) 2>conftest.er1
bb41dcbe 27208 ac_status=$?
32ddf007
VS
27209 grep -v '^ *+' conftest.er1 >conftest.err
27210 rm -f conftest.er1
27211 cat conftest.err >&5
bb41dcbe
VS
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } &&
32ddf007
VS
27214 { ac_try='test -z "$ac_c_werror_flag"
27215 || test ! -s conftest.err'
27216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27217 (eval $ac_try) 2>&5
27218 ac_status=$?
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; } &&
27221 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
27222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223 (eval $ac_try) 2>&5
27224 ac_status=$?
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; }; then
e46d2a18 27227 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 27228else
bb41dcbe
VS
27229 echo "$as_me: failed program was:" >&5
27230sed 's/^/| /' conftest.$ac_ext >&5
27231
e46d2a18 27232ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 27233fi
32ddf007
VS
27234rm -f conftest.err conftest.$ac_objext \
27235 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
27236LIBS=$ac_check_lib_save_LIBS
27237fi
e46d2a18
VS
27238echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27239echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27240if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
27241 ODBC_LINK=" -lodbc"
27242fi
27243
27244
27245fi
e6cc62c6 27246
e6cc62c6 27247
8647bec6 27248fi
e6cc62c6 27249
fd3d7534 27250 fi
bb41dcbe
VS
27251 if test "x$ODBC_LINK" = "x" ; then
27252 if test "$wxUSE_ODBC" = "sys" ; then
27253 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27254echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27255 { (exit 1); exit 1; }; }
27256 else
27257 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27258echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27259 wxUSE_ODBC=builtin
27260 fi
27261 else
27262 wxUSE_ODBC=sys
8647bec6 27263 fi
8647bec6 27264 fi
bb41dcbe
VS
27265 if test "$wxUSE_ODBC" != "no" ; then
27266 cat >>confdefs.h <<\_ACEOF
27267#define wxUSE_ODBC 1
27268_ACEOF
e6cc62c6 27269
0bdb08e7
VS
27270 if test "$wxUSE_ODBC" = "builtin" ; then
27271 cat >>confdefs.h <<\_ACEOF
27272#define wxUSE_BUILTIN_IODBC 1
27273_ACEOF
27274
27275 fi
bb41dcbe
VS
27276 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27277
27278 WXODBCFLAG="-D_IODBC_"
27279 fi
6232543b 27280fi
21d1c967
GD
27281
27282if test "$wxUSE_REGEX" = "builtin" ; then
27283 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 27284fi
21d1c967
GD
27285if test "$wxUSE_ZLIB" = "builtin" ; then
27286 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
27287fi
27288
74500461
VS
27289if test "$wxUSE_DISPLAY" = "yes"; then
27290 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
27291 echo "$as_me:$LINENO: checking for Xinerama" >&5
27292echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27293
27294ac_find_libraries=
27295for ac_dir in $SEARCH_LIB /usr/lib;
27296 do
27297 for ac_extension in a so sl dylib; do
27298 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27299 ac_find_libraries=$ac_dir
27300 break 2
27301 fi
27302 done
27303 done
27304
27305 if test "$ac_find_libraries" != "" ; then
27306
27307 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27308 result=$?
27309 if test $result = 0; then
27310 ac_path_to_link=""
27311 else
27312 ac_path_to_link=" -L$ac_find_libraries"
27313 fi
27314
27315 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27316 LDFLAGS="$LDFLAGS $ac_path_to_link"
27317 fi
27318 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27319 echo "$as_me:$LINENO: result: yes" >&5
27320echo "${ECHO_T}yes" >&6
505c8ccd
VS
27321
27322 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27323echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27324
27325ac_find_libraries=
27326for ac_dir in $SEARCH_LIB /usr/lib;
27327 do
27328 for ac_extension in a so sl dylib; do
27329 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27330 ac_find_libraries=$ac_dir
27331 break 2
27332 fi
27333 done
27334 done
27335
27336 if test "$ac_find_libraries" != "" ; then
27337 echo "$as_me:$LINENO: result: yes" >&5
27338echo "${ECHO_T}yes" >&6
27339
27340for ac_header in X11/extensions/xf86vmode.h
27341do
27342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27343echo "$as_me:$LINENO: checking for $ac_header" >&5
27344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27345if eval "test \"\${$as_ac_Header+set}\" = set"; then
27346 echo $ECHO_N "(cached) $ECHO_C" >&6
27347else
27348 cat >conftest.$ac_ext <<_ACEOF
27349/* confdefs.h. */
27350_ACEOF
27351cat confdefs.h >>conftest.$ac_ext
27352cat >>conftest.$ac_ext <<_ACEOF
27353/* end confdefs.h. */
27354
27355 #if HAVE_X11_XLIB_H
27356 #include <X11/Xlib.h>
27357 #endif
27358
27359
27360#include <$ac_header>
27361_ACEOF
27362rm -f conftest.$ac_objext
27363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 27364 (eval $ac_compile) 2>conftest.er1
505c8ccd 27365 ac_status=$?
32ddf007
VS
27366 grep -v '^ *+' conftest.er1 >conftest.err
27367 rm -f conftest.er1
27368 cat conftest.err >&5
505c8ccd
VS
27369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370 (exit $ac_status); } &&
32ddf007
VS
27371 { ac_try='test -z "$ac_c_werror_flag"
27372 || test ! -s conftest.err'
27373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27374 (eval $ac_try) 2>&5
27375 ac_status=$?
27376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27377 (exit $ac_status); }; } &&
27378 { ac_try='test -s conftest.$ac_objext'
505c8ccd
VS
27379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27380 (eval $ac_try) 2>&5
27381 ac_status=$?
27382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); }; }; then
27384 eval "$as_ac_Header=yes"
27385else
27386 echo "$as_me: failed program was:" >&5
27387sed 's/^/| /' conftest.$ac_ext >&5
27388
27389eval "$as_ac_Header=no"
27390fi
32ddf007 27391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
505c8ccd
VS
27392fi
27393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27394echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27395if test `eval echo '${'$as_ac_Header'}'` = yes; then
27396 cat >>confdefs.h <<_ACEOF
27397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27398_ACEOF
27399
27400 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27401
27402fi
27403
27404done
27405
27406 else
27407 echo "$as_me:$LINENO: result: no" >&5
27408echo "${ECHO_T}no" >&6
27409 fi
27410
74500461
VS
27411 else
27412 echo "$as_me:$LINENO: result: no" >&5
27413echo "${ECHO_T}no" >&6
27414 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
27415echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
27416 wxUSE_DISPLAY="no"
27417 fi
27418 fi
27419fi
27420
8284b0c5 27421
4d264332 27422USE_OPENGL=0
21d1c967 27423if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 27424 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
27425 OPENGL_LIBS="-framework OpenGL -framework AGL"
27426 elif test "$wxUSE_MSW" = 1; then
27427 OPENGL_LIBS="-lopengl32 -lglu32"
27428 else
01aa5863
VS
27429
27430
27431ac_find_includes=
27432for ac_dir in $SEARCH_INCLUDE /usr/include;
27433 do
27434 if test -f "$ac_dir/GL/gl.h"; then
27435 ac_find_includes=$ac_dir
27436 break
27437 fi
27438 done
27439
27440 if test "$ac_find_includes" != "" ; then
27441 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27442echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
27443
27444 if test "x$ac_find_includes" = "x/usr/include"; then
27445 ac_path_to_include=""
27446 else
27447 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27448 result=$?
27449 if test $result = 0; then
27450 ac_path_to_include=""
27451 else
27452 ac_path_to_include=" -I$ac_find_includes"
27453 fi
27454 fi
27455
27456 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
27457 fi
27458
e6cc62c6
VS
27459 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27460 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27461echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27462if test "${ac_cv_header_GL_gl_h+set}" = set; then
27463 echo $ECHO_N "(cached) $ECHO_C" >&6
27464fi
27465echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27466echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27467else
27468 # Is the header compilable?
27469echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27470echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27471cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27472/* confdefs.h. */
27473_ACEOF
27474cat confdefs.h >>conftest.$ac_ext
27475cat >>conftest.$ac_ext <<_ACEOF
27476/* end confdefs.h. */
27477$ac_includes_default
21d1c967 27478#include <GL/gl.h>
e6cc62c6
VS
27479_ACEOF
27480rm -f conftest.$ac_objext
27481if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 27482 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27483 ac_status=$?
32ddf007
VS
27484 grep -v '^ *+' conftest.er1 >conftest.err
27485 rm -f conftest.er1
27486 cat conftest.err >&5
e6cc62c6
VS
27487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488 (exit $ac_status); } &&
32ddf007
VS
27489 { ac_try='test -z "$ac_c_werror_flag"
27490 || test ! -s conftest.err'
27491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27492 (eval $ac_try) 2>&5
27493 ac_status=$?
27494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495 (exit $ac_status); }; } &&
27496 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27498 (eval $ac_try) 2>&5
27499 ac_status=$?
27500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501 (exit $ac_status); }; }; then
27502 ac_header_compiler=yes
27503else
27504 echo "$as_me: failed program was:" >&5
27505sed 's/^/| /' conftest.$ac_ext >&5
27506
27507ac_header_compiler=no
27508fi
32ddf007 27509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
27510echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27511echo "${ECHO_T}$ac_header_compiler" >&6
27512
27513# Is the header present?
27514echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27515echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27516cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27517/* confdefs.h. */
27518_ACEOF
27519cat confdefs.h >>conftest.$ac_ext
27520cat >>conftest.$ac_ext <<_ACEOF
27521/* end confdefs.h. */
27522#include <GL/gl.h>
27523_ACEOF
27524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27526 ac_status=$?
27527 grep -v '^ *+' conftest.er1 >conftest.err
27528 rm -f conftest.er1
27529 cat conftest.err >&5
27530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27531 (exit $ac_status); } >/dev/null; then
27532 if test -s conftest.err; then
27533 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 27534 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
27535 else
27536 ac_cpp_err=
27537 fi
27538else
27539 ac_cpp_err=yes
27540fi
27541if test -z "$ac_cpp_err"; then
27542 ac_header_preproc=yes
27543else
27544 echo "$as_me: failed program was:" >&5
27545sed 's/^/| /' conftest.$ac_ext >&5
27546
27547 ac_header_preproc=no
27548fi
27549rm -f conftest.err conftest.$ac_ext
27550echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27551echo "${ECHO_T}$ac_header_preproc" >&6
27552
27553# So? What about this header?
32ddf007
VS
27554case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27555 yes:no: )
e6cc62c6
VS
27556 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27557echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
27558 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27559echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27560 ac_header_preproc=yes
e6cc62c6 27561 ;;
32ddf007 27562 no:yes:* )
e6cc62c6
VS
27563 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27564echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
32ddf007
VS
27565 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27566echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27567 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27568echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27569 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27570echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
27571 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27572echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
27573 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27574echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
27575 (
27576 cat <<\_ASBOX
32ddf007
VS
27577## ----------------------------------------- ##
27578## Report this to wx-dev@lists.wxwindows.org ##
27579## ----------------------------------------- ##
e6cc62c6
VS
27580_ASBOX
27581 ) |
27582 sed "s/^/$as_me: WARNING: /" >&2
27583 ;;
27584esac
27585echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27586echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27587if test "${ac_cv_header_GL_gl_h+set}" = set; then
27588 echo $ECHO_N "(cached) $ECHO_C" >&6
27589else
27590 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 27591fi
e6cc62c6
VS
27592echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27593echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27594
698dcdb6 27595fi
e6cc62c6
VS
27596if test $ac_cv_header_GL_gl_h = yes; then
27597
89e3b3e4
VZ
27598 found_gl=0
27599
e6cc62c6
VS
27600 echo "$as_me:$LINENO: checking for -lGL" >&5
27601echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27602
21d1c967 27603ac_find_libraries=
2b5f62a0 27604for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
27605 do
27606 for ac_extension in a so sl dylib; do
27607 if test -f "$ac_dir/libGL.$ac_extension"; then
27608 ac_find_libraries=$ac_dir
27609 break 2
27610 fi
27611 done
27612 done
27613
27614 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27615
21d1c967
GD
27616 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27617 result=$?
27618 if test $result = 0; then
27619 ac_path_to_link=""
27620 else
27621 ac_path_to_link=" -L$ac_find_libraries"
27622 fi
27623
89e3b3e4
VZ
27624 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27625 LDFLAGS_GL="$ac_path_to_link"
21d1c967 27626 fi
89e3b3e4 27627
e6cc62c6 27628
89e3b3e4
VZ
27629ac_find_libraries=
27630for ac_dir in $SEARCH_LIB /usr/lib;
27631 do
27632 for ac_extension in a so sl dylib; do
27633 if test -f "$ac_dir/libGLU.$ac_extension"; then
27634 ac_find_libraries=$ac_dir
27635 break 2
27636 fi
27637 done
27638 done
27639
27640 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27641
89e3b3e4
VZ
27642 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27643 result=$?
27644 if test $result = 0; then
27645 ac_path_to_link=""
27646 else
27647 ac_path_to_link=" -L$ac_find_libraries"
27648 fi
27649
27650 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27651 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27652 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27653 fi
27654
27655 found_gl=1
27656 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
27657 echo "$as_me:$LINENO: result: yes" >&5
27658echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
27659 fi
27660 fi
27661
bb41dcbe 27662 if test "$found_gl" != 1; then
e6cc62c6
VS
27663 echo "$as_me:$LINENO: result: no" >&5
27664echo "${ECHO_T}no" >&6
27665 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27666echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27667
21d1c967 27668ac_find_libraries=
2b5f62a0 27669for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
27670 do
27671 for ac_extension in a so sl dylib; do
27672 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27673 ac_find_libraries=$ac_dir
27674 break 2
27675 fi
27676 done
27677 done
27678
27679 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27680
21d1c967
GD
27681 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27682 result=$?
27683 if test $result = 0; then
27684 ac_path_to_link=""
27685 else
27686 ac_path_to_link=" -L$ac_find_libraries"
27687 fi
27688
27689 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27690 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
27691 echo "$as_me:$LINENO: result: yes" >&5
27692echo "${ECHO_T}yes" >&6
21d1c967 27693 else
e6cc62c6
VS
27694 echo "$as_me:$LINENO: result: no" >&5
27695echo "${ECHO_T}no" >&6
21d1c967
GD
27696 fi
27697 fi
e6cc62c6 27698
5c6fa7d2 27699fi
52127426 27700
8284b0c5 27701
e6cc62c6 27702
21d1c967 27703 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
27704 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27705echo "$as_me: error: OpenGL libraries not available" >&2;}
27706 { (exit 1); exit 1; }; }
21d1c967
GD
27707 fi
27708 fi
90dd450c 27709
21d1c967 27710 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 27711 USE_OPENGL=1
e6cc62c6 27712 cat >>confdefs.h <<\_ACEOF
21d1c967 27713#define wxUSE_OPENGL 1
e6cc62c6 27714_ACEOF
21d1c967 27715
e6cc62c6 27716 cat >>confdefs.h <<\_ACEOF
21d1c967 27717#define wxUSE_GLCANVAS 1
e6cc62c6 27718_ACEOF
21d1c967 27719
520755bb 27720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 27721 fi
10f2d63a 27722fi
21d1c967
GD
27723
27724if test -z "$TOOLKIT_VPATH" ; then
27725 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 27726fi
21d1c967
GD
27727
27728if test -n "$TOOLKIT" ; then
27729 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27730fi
27731
fe0895cf 27732UNICODE=0
21d1c967
GD
27733lib_unicode_suffix=
27734if test "$wxUSE_UNICODE" = "yes"; then
27735 lib_unicode_suffix=u
fe0895cf 27736 UNICODE=1
90dd450c 27737fi
698dcdb6 27738
21d1c967 27739lib_debug_suffix=
6c67131a 27740DEBUG_FLAG=0
21d1c967
GD
27741if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27742 lib_debug_suffix=d
6c67131a
VS
27743 DEBUG_FLAG=1
27744fi
27745
27746DEBUG_INFO=0
27747if test "$wxUSE_DEBUG_INFO" = "yes"; then
27748 DEBUG_INFO=1
21d1c967 27749fi
698dcdb6 27750
1cbb95a2 27751WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
27752
27753TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27754TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
27755
27756if test "$cross_compiling" = "yes"; then
27757 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27758 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 27759 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
27760fi
27761
27762WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27763WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
27764WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27765WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
27766
27767WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27768WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27769
27770WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27771WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27772WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27773WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27774
27775case "${host}" in
27776 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
27777 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27778 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
27779 ;;
27780
27781 *-*-darwin* )
e6cc62c6 27782
05159a27
GD
27783 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27784 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27785
27786 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27787 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27788 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27789 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27790
09d3439c
VZ
27791 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27792 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
f346733b 27793 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
27794 fi
27795 ;;
27796esac
27797
27798WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27799WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27800
27801WXCONFIG_LIBS="-l${WX_LIBRARY}"
27802WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27803
27804if test "$wxUSE_OPENGL" = "yes"; then
27805 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27806 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27807fi
27808
8284b0c5
MB
27809
27810
21d1c967
GD
27811if test "$wxUSE_SHARED" = "yes"; then
27812 case "${host}" in
27813 *-pc-os2_emx | *-pc-os2-emx | \
27814 *-pc-msdosdjgpp )
27815 wxUSE_SHARED=no
e6cc62c6
VS
27816 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27817echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
27818 ;;
27819 esac
27820fi
27821
fe0895cf 27822SHARED=0
2b5f62a0 27823if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 27824 SHARED=1
2b5f62a0 27825
e6cc62c6 27826
2b5f62a0
VZ
27827 found_versioning=no
27828
e6cc62c6 27829
2b5f62a0 27830 if test $found_versioning = no ; then
e6cc62c6
VS
27831 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27832echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27833if test "${wx_cv_version_script+set}" = set; then
27834 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 27835else
e6cc62c6 27836
2b5f62a0
VZ
27837 echo "VER_1 { *; };" >conftest.sym
27838 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 27839
2b5f62a0
VZ
27840 if { ac_try='
27841 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
27842 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27844 (eval $ac_try) 2>&5
27845 ac_status=$?
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); }; } ; then
2b5f62a0
VZ
27848 if test -s conftest.stderr ; then
27849 wx_cv_version_script=no
27850 else
27851 wx_cv_version_script=yes
27852 fi
27853 else
27854 wx_cv_version_script=no
27855 fi
27856 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 27857
e6cc62c6
VS
27858fi
27859echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27860echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 27861 if test $wx_cv_version_script = yes ; then
e6cc62c6 27862 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
27863 fi
27864 fi
21d1c967 27865
21d1c967 27866
21d1c967 27867 case "${host}" in
fe0895cf 27868 *-*-linux* | *-*-gnu* )
e6cc62c6 27869 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 27870 ;;
21d1c967
GD
27871
27872 *-*-solaris2* )
27873 if test "$GCC" = yes ; then
27874 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
27875
27876 saveLdflags="$LDFLAGS"
27877 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
27878 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27879echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27880 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27881/* confdefs.h. */
27882_ACEOF
27883cat confdefs.h >>conftest.$ac_ext
27884cat >>conftest.$ac_ext <<_ACEOF
27885/* end confdefs.h. */
27886
27887int
27888main ()
27889{
fe0895cf 27890
e6cc62c6
VS
27891 ;
27892 return 0;
27893}
27894_ACEOF
27895rm -f conftest.$ac_objext conftest$ac_exeext
27896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 27897 (eval $ac_link) 2>conftest.er1
e6cc62c6 27898 ac_status=$?
32ddf007
VS
27899 grep -v '^ *+' conftest.er1 >conftest.err
27900 rm -f conftest.er1
27901 cat conftest.err >&5
e6cc62c6
VS
27902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27903 (exit $ac_status); } &&
32ddf007
VS
27904 { ac_try='test -z "$ac_c_werror_flag"
27905 || test ! -s conftest.err'
27906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27907 (eval $ac_try) 2>&5
27908 ac_status=$?
27909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27910 (exit $ac_status); }; } &&
27911 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27913 (eval $ac_try) 2>&5
27914 ac_status=$?
27915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916 (exit $ac_status); }; }; then
27917
27918 echo "$as_me:$LINENO: result: yes" >&5
27919echo "${ECHO_T}yes" >&6
27920 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27921
27922else
27923 echo "$as_me: failed program was:" >&5
27924sed 's/^/| /' conftest.$ac_ext >&5
27925
27926
27927 echo "$as_me:$LINENO: result: no" >&5
27928echo "${ECHO_T}no" >&6
27929 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27930echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 27931 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 27932 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27933/* confdefs.h. */
27934_ACEOF
27935cat confdefs.h >>conftest.$ac_ext
27936cat >>conftest.$ac_ext <<_ACEOF
27937/* end confdefs.h. */
27938
27939int
27940main ()
27941{
27942
27943 ;
27944 return 0;
27945}
27946_ACEOF
27947rm -f conftest.$ac_objext conftest$ac_exeext
27948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 27949 (eval $ac_link) 2>conftest.er1
e6cc62c6 27950 ac_status=$?
32ddf007
VS
27951 grep -v '^ *+' conftest.er1 >conftest.err
27952 rm -f conftest.er1
27953 cat conftest.err >&5
e6cc62c6
VS
27954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27955 (exit $ac_status); } &&
32ddf007
VS
27956 { ac_try='test -z "$ac_c_werror_flag"
27957 || test ! -s conftest.err'
27958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27959 (eval $ac_try) 2>&5
27960 ac_status=$?
27961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27962 (exit $ac_status); }; } &&
27963 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27965 (eval $ac_try) 2>&5
27966 ac_status=$?
27967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27968 (exit $ac_status); }; }; then
27969
27970 echo "$as_me:$LINENO: result: yes" >&5
27971echo "${ECHO_T}yes" >&6
27972 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27973else
27974 echo "$as_me: failed program was:" >&5
27975sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 27976
fe0895cf 27977
e6cc62c6
VS
27978 echo "$as_me:$LINENO: result: no" >&5
27979echo "${ECHO_T}no" >&6
27980
fe0895cf 27981fi
32ddf007
VS
27982rm -f conftest.err conftest.$ac_objext \
27983 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27984
27985fi
32ddf007
VS
27986rm -f conftest.err conftest.$ac_objext \
27987 conftest$ac_exeext conftest.$ac_ext
fe0895cf 27988 LDFLAGS="$saveLdflags"
21d1c967
GD
27989 else
27990 SHARED_LD="${CXX} -G -o"
27991 PIC_FLAG="-KPIC"
e6cc62c6 27992 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
27993 fi
27994 ;;
0f1bc9c2
VS
27995
27996 powerpc-*-darwin* )
ef0add05
VS
27997 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27998 cat <<EOF >change-install-names
27999#!/bin/sh
28000libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
28001inst_cmd="install_name_tool "
28002for i in \${libnames} ; do
28003 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
28004done
28005\${inst_cmd} \${3}
28006EOF
28007 chmod +x change-install-names
0f1bc9c2
VS
28008 ;;
28009
21d1c967
GD
28010 esac
28011
28012 if test "x$WX_TARGET_LIBRARY" = "x"; then
28013 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
28014 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
28015 fi
28016
28017 WX_TARGET_LIBRARY_TYPE="so"
28018 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 28019fi
10f2d63a 28020
21d1c967
GD
28021if test "$wxUSE_SHARED" = "no"; then
28022
28023 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
28024 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28025 fi
28026
ac0c4cc3 28027 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
28028 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
28029 fi
28030
28031 if test "$wxUSE_OPENGL" = "yes"; then
28032 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
28033 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
28034 else
28035 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
28036 fi
28037
28038 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
28039 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
28040
28041 WX_TARGET_LIBRARY_TYPE="a"
28042 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
28043
28044 STATIC_FLAG="yes"
28045else
28046 STATIC_FLAG="no"
90dd450c 28047fi
1e487827 28048
09d3439c 28049if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
e6cc62c6 28050 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
28051 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
28052 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
09d3439c 28053
21d1c967
GD
28054 # Extract the first word of "Rez", so it can be a program name with args.
28055set dummy Rez; ac_word=$2
e6cc62c6
VS
28056echo "$as_me:$LINENO: checking for $ac_word" >&5
28057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28058if test "${ac_cv_prog_RESCOMP+set}" = set; then
28059 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 28060else
21d1c967
GD
28061 if test -n "$RESCOMP"; then
28062 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 28063else
e6cc62c6
VS
28064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28065for as_dir in $PATH
28066do
28067 IFS=$as_save_IFS
28068 test -z "$as_dir" && as_dir=.
28069 for ac_exec_ext in '' $ac_executable_extensions; do
28070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28071 ac_cv_prog_RESCOMP="Rez"
28072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28073 break 2
28074 fi
28075done
28076done
28077
21d1c967 28078 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 28079fi
b93d0d08 28080fi
e6cc62c6 28081RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 28082if test -n "$RESCOMP"; then
e6cc62c6
VS
28083 echo "$as_me:$LINENO: result: $RESCOMP" >&5
28084echo "${ECHO_T}$RESCOMP" >&6
90dd450c 28085else
e6cc62c6
VS
28086 echo "$as_me:$LINENO: result: no" >&5
28087echo "${ECHO_T}no" >&6
90dd450c 28088fi
b93d0d08 28089
21d1c967
GD
28090 # Extract the first word of "DeRez", so it can be a program name with args.
28091set dummy DeRez; ac_word=$2
e6cc62c6
VS
28092echo "$as_me:$LINENO: checking for $ac_word" >&5
28093echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28094if test "${ac_cv_prog_DEREZ+set}" = set; then
28095 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 28096else
21d1c967
GD
28097 if test -n "$DEREZ"; then
28098 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 28099else
e6cc62c6
VS
28100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28101for as_dir in $PATH
28102do
28103 IFS=$as_save_IFS
28104 test -z "$as_dir" && as_dir=.
28105 for ac_exec_ext in '' $ac_executable_extensions; do
28106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28107 ac_cv_prog_DEREZ="DeRez"
28108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28109 break 2
28110 fi
28111done
28112done
28113
21d1c967 28114 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 28115fi
90dd450c 28116fi
e6cc62c6 28117DEREZ=$ac_cv_prog_DEREZ
21d1c967 28118if test -n "$DEREZ"; then
e6cc62c6
VS
28119 echo "$as_me:$LINENO: result: $DEREZ" >&5
28120echo "${ECHO_T}$DEREZ" >&6
90dd450c 28121else
e6cc62c6
VS
28122 echo "$as_me:$LINENO: result: no" >&5
28123echo "${ECHO_T}no" >&6
3a922bb4 28124fi
698dcdb6 28125
36825681
GD
28126 # Extract the first word of "SetFile", so it can be a program name with args.
28127set dummy SetFile; ac_word=$2
e6cc62c6
VS
28128echo "$as_me:$LINENO: checking for $ac_word" >&5
28129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28130if test "${ac_cv_prog_SETFILE+set}" = set; then
28131 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
28132else
28133 if test -n "$SETFILE"; then
28134 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
28135else
e6cc62c6
VS
28136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28137for as_dir in $PATH
28138do
28139 IFS=$as_save_IFS
28140 test -z "$as_dir" && as_dir=.
28141 for ac_exec_ext in '' $ac_executable_extensions; do
28142 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28143 ac_cv_prog_SETFILE="SetFile"
28144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28145 break 2
28146 fi
28147done
28148done
28149
36825681
GD
28150 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28151fi
28152fi
e6cc62c6 28153SETFILE=$ac_cv_prog_SETFILE
36825681 28154if test -n "$SETFILE"; then
e6cc62c6
VS
28155 echo "$as_me:$LINENO: result: $SETFILE" >&5
28156echo "${ECHO_T}$SETFILE" >&6
36825681 28157else
e6cc62c6
VS
28158 echo "$as_me:$LINENO: result: no" >&5
28159echo "${ECHO_T}no" >&6
36825681
GD
28160fi
28161
e6cc62c6 28162
09d3439c 28163 MACSETFILE="\$(SETFILE)"
64440d77 28164
09d3439c
VZ
28165 if test "$wxUSE_MAC" = 1; then
28166 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
e6cc62c6 28167
09d3439c
VZ
28168 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28169 else
28170 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28171 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28172 fi
64440d77 28173else
09d3439c
VZ
28174 MACSETFILE="@#"
28175 MACRESWXCONFIG="#"
64440d77 28176
09d3439c 28177 if test "$wxUSE_PM" = 1; then
36825681 28178 MACRESCOMP="emxbind -ep"
09d3439c
VZ
28179 else
28180 MACRESCOMP="@#"
90dd450c 28181 fi
4f14bcd8 28182fi
10f2d63a 28183
8284b0c5 28184
f93ca9fd 28185
e6cc62c6
VS
28186echo "$as_me:$LINENO: checking for mode_t" >&5
28187echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28188if test "${ac_cv_type_mode_t+set}" = set; then
28189 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 28190else
e6cc62c6 28191 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28192/* confdefs.h. */
28193_ACEOF
28194cat confdefs.h >>conftest.$ac_ext
28195cat >>conftest.$ac_ext <<_ACEOF
28196/* end confdefs.h. */
28197$ac_includes_default
28198int
28199main ()
28200{
28201if ((mode_t *) 0)
28202 return 0;
28203if (sizeof (mode_t))
28204 return 0;
28205 ;
28206 return 0;
28207}
28208_ACEOF
28209rm -f conftest.$ac_objext
28210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28211 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28212 ac_status=$?
32ddf007
VS
28213 grep -v '^ *+' conftest.er1 >conftest.err
28214 rm -f conftest.er1
28215 cat conftest.err >&5
e6cc62c6
VS
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); } &&
32ddf007
VS
28218 { ac_try='test -z "$ac_c_werror_flag"
28219 || test ! -s conftest.err'
28220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28221 (eval $ac_try) 2>&5
28222 ac_status=$?
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); }; } &&
28225 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28227 (eval $ac_try) 2>&5
28228 ac_status=$?
28229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28230 (exit $ac_status); }; }; then
28231 ac_cv_type_mode_t=yes
a0b9e27f 28232else
e6cc62c6
VS
28233 echo "$as_me: failed program was:" >&5
28234sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 28235
e6cc62c6 28236ac_cv_type_mode_t=no
a0b9e27f 28237fi
32ddf007 28238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52127426 28239fi
e6cc62c6
VS
28240echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28241echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28242if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
28243 :
28244else
a0b9e27f 28245
e6cc62c6
VS
28246cat >>confdefs.h <<_ACEOF
28247#define mode_t int
28248_ACEOF
8284b0c5
MB
28249
28250fi
28251
e6cc62c6
VS
28252echo "$as_me:$LINENO: checking for off_t" >&5
28253echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28254if test "${ac_cv_type_off_t+set}" = set; then
28255 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 28256else
e6cc62c6 28257 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28258/* confdefs.h. */
28259_ACEOF
28260cat confdefs.h >>conftest.$ac_ext
28261cat >>conftest.$ac_ext <<_ACEOF
28262/* end confdefs.h. */
28263$ac_includes_default
28264int
28265main ()
28266{
28267if ((off_t *) 0)
28268 return 0;
28269if (sizeof (off_t))
28270 return 0;
28271 ;
28272 return 0;
28273}
28274_ACEOF
28275rm -f conftest.$ac_objext
28276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28277 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28278 ac_status=$?
32ddf007
VS
28279 grep -v '^ *+' conftest.er1 >conftest.err
28280 rm -f conftest.er1
28281 cat conftest.err >&5
e6cc62c6
VS
28282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); } &&
32ddf007
VS
28284 { ac_try='test -z "$ac_c_werror_flag"
28285 || test ! -s conftest.err'
28286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28287 (eval $ac_try) 2>&5
28288 ac_status=$?
28289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290 (exit $ac_status); }; } &&
28291 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28293 (eval $ac_try) 2>&5
28294 ac_status=$?
28295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28296 (exit $ac_status); }; }; then
28297 ac_cv_type_off_t=yes
5c6fa7d2 28298else
e6cc62c6
VS
28299 echo "$as_me: failed program was:" >&5
28300sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 28301
e6cc62c6 28302ac_cv_type_off_t=no
8284b0c5 28303fi
32ddf007 28304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 28305fi
e6cc62c6
VS
28306echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28307echo "${ECHO_T}$ac_cv_type_off_t" >&6
28308if test $ac_cv_type_off_t = yes; then
28309 :
247f5006
VZ
28310else
28311
e6cc62c6 28312cat >>confdefs.h <<_ACEOF
90dd450c 28313#define off_t long
e6cc62c6 28314_ACEOF
10f2d63a 28315
90dd450c 28316fi
10f2d63a 28317
e6cc62c6
VS
28318echo "$as_me:$LINENO: checking for pid_t" >&5
28319echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28320if test "${ac_cv_type_pid_t+set}" = set; then
28321 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 28322else
e6cc62c6 28323 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28324/* confdefs.h. */
28325_ACEOF
28326cat confdefs.h >>conftest.$ac_ext
28327cat >>conftest.$ac_ext <<_ACEOF
28328/* end confdefs.h. */
28329$ac_includes_default
28330int
28331main ()
28332{
28333if ((pid_t *) 0)
28334 return 0;
28335if (sizeof (pid_t))
28336 return 0;
28337 ;
28338 return 0;
28339}
28340_ACEOF
28341rm -f conftest.$ac_objext
28342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28343 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28344 ac_status=$?
32ddf007
VS
28345 grep -v '^ *+' conftest.er1 >conftest.err
28346 rm -f conftest.er1
28347 cat conftest.err >&5
e6cc62c6
VS
28348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28349 (exit $ac_status); } &&
32ddf007
VS
28350 { ac_try='test -z "$ac_c_werror_flag"
28351 || test ! -s conftest.err'
28352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28353 (eval $ac_try) 2>&5
28354 ac_status=$?
28355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28356 (exit $ac_status); }; } &&
28357 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28359 (eval $ac_try) 2>&5
28360 ac_status=$?
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); }; }; then
90dd450c 28363 ac_cv_type_pid_t=yes
698dcdb6 28364else
e6cc62c6
VS
28365 echo "$as_me: failed program was:" >&5
28366sed 's/^/| /' conftest.$ac_ext >&5
247f5006 28367
e6cc62c6
VS
28368ac_cv_type_pid_t=no
28369fi
32ddf007 28370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28371fi
e6cc62c6
VS
28372echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28373echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28374if test $ac_cv_type_pid_t = yes; then
28375 :
28376else
28377
28378cat >>confdefs.h <<_ACEOF
90dd450c 28379#define pid_t int
e6cc62c6 28380_ACEOF
10f2d63a 28381
7b4a847f
RR
28382fi
28383
e6cc62c6
VS
28384echo "$as_me:$LINENO: checking for size_t" >&5
28385echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28386if test "${ac_cv_type_size_t+set}" = set; then
28387 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 28388else
e6cc62c6 28389 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28390/* confdefs.h. */
28391_ACEOF
28392cat confdefs.h >>conftest.$ac_ext
28393cat >>conftest.$ac_ext <<_ACEOF
28394/* end confdefs.h. */
28395$ac_includes_default
28396int
28397main ()
28398{
28399if ((size_t *) 0)
28400 return 0;
28401if (sizeof (size_t))
28402 return 0;
28403 ;
28404 return 0;
28405}
28406_ACEOF
28407rm -f conftest.$ac_objext
28408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28409 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28410 ac_status=$?
32ddf007
VS
28411 grep -v '^ *+' conftest.er1 >conftest.err
28412 rm -f conftest.er1
28413 cat conftest.err >&5
e6cc62c6
VS
28414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415 (exit $ac_status); } &&
32ddf007
VS
28416 { ac_try='test -z "$ac_c_werror_flag"
28417 || test ! -s conftest.err'
28418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28419 (eval $ac_try) 2>&5
28420 ac_status=$?
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); }; } &&
28423 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28425 (eval $ac_try) 2>&5
28426 ac_status=$?
28427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428 (exit $ac_status); }; }; then
90dd450c 28429 ac_cv_type_size_t=yes
18dbb1f6 28430else
e6cc62c6
VS
28431 echo "$as_me: failed program was:" >&5
28432sed 's/^/| /' conftest.$ac_ext >&5
247f5006 28433
e6cc62c6 28434ac_cv_type_size_t=no
a0b9e27f 28435fi
32ddf007 28436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
28437fi
28438echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28439echo "${ECHO_T}$ac_cv_type_size_t" >&6
28440if test $ac_cv_type_size_t = yes; then
28441 :
28442else
28443
28444cat >>confdefs.h <<_ACEOF
90dd450c 28445#define size_t unsigned
e6cc62c6 28446_ACEOF
90dd450c
VZ
28447
28448fi
28449
e6cc62c6
VS
28450echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28451echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28452if test "${ac_cv_type_uid_t+set}" = set; then
28453 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 28454else
e6cc62c6 28455 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28456/* confdefs.h. */
28457_ACEOF
28458cat confdefs.h >>conftest.$ac_ext
28459cat >>conftest.$ac_ext <<_ACEOF
28460/* end confdefs.h. */
90dd450c 28461#include <sys/types.h>
e6cc62c6
VS
28462
28463_ACEOF
90dd450c 28464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 28465 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 28466 ac_cv_type_uid_t=yes
b3e8d00a 28467else
90dd450c 28468 ac_cv_type_uid_t=no
b3e8d00a 28469fi
90dd450c 28470rm -f conftest*
b3e8d00a 28471
4f14bcd8 28472fi
e6cc62c6
VS
28473echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28474echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 28475if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
28476
28477cat >>confdefs.h <<\_ACEOF
90dd450c 28478#define uid_t int
e6cc62c6 28479_ACEOF
247f5006 28480
e6cc62c6
VS
28481
28482cat >>confdefs.h <<\_ACEOF
90dd450c 28483#define gid_t int
e6cc62c6 28484_ACEOF
4f14bcd8 28485
b3e8d00a 28486fi
b3e8d00a 28487
8284b0c5
MB
28488
28489
e6cc62c6
VS
28490
28491ac_ext=cc
4f14bcd8 28492ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28493ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28494ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28495ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28496
28497echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28498echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28499if test "${wx_cv_size_t_is_uint+set}" = set; then
28500 echo $ECHO_N "(cached) $ECHO_C" >&6
28501else
28502
28503 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28504/* confdefs.h. */
28505_ACEOF
28506cat confdefs.h >>conftest.$ac_ext
28507cat >>conftest.$ac_ext <<_ACEOF
28508/* end confdefs.h. */
90dd450c 28509#include <stddef.h>
e6cc62c6
VS
28510int
28511main ()
28512{
90dd450c
VZ
28513
28514 return 0; }
28515
28516 struct Foo { void foo(size_t); void foo(unsigned int); };
28517
28518 int bar() {
e6cc62c6
VS
28519
28520 ;
28521 return 0;
28522}
28523_ACEOF
28524rm -f conftest.$ac_objext
28525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28526 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28527 ac_status=$?
32ddf007
VS
28528 grep -v '^ *+' conftest.er1 >conftest.err
28529 rm -f conftest.er1
28530 cat conftest.err >&5
e6cc62c6
VS
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); } &&
32ddf007
VS
28533 { ac_try='test -z "$ac_cxx_werror_flag"
28534 || test ! -s conftest.err'
28535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28536 (eval $ac_try) 2>&5
28537 ac_status=$?
28538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28539 (exit $ac_status); }; } &&
28540 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28542 (eval $ac_try) 2>&5
28543 ac_status=$?
28544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28545 (exit $ac_status); }; }; then
90dd450c 28546 wx_cv_size_t_is_uint=no
698dcdb6 28547else
e6cc62c6
VS
28548 echo "$as_me: failed program was:" >&5
28549sed 's/^/| /' conftest.$ac_ext >&5
28550
28551wx_cv_size_t_is_uint=yes
8284b0c5 28552
247f5006 28553fi
32ddf007 28554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 28555
a0b9e27f 28556
e6cc62c6
VS
28557fi
28558echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28559echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 28560
90dd450c 28561if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 28562 cat >>confdefs.h <<\_ACEOF
90dd450c 28563#define wxSIZE_T_IS_UINT 1
e6cc62c6 28564_ACEOF
698dcdb6 28565
90dd450c 28566else
e6cc62c6
VS
28567 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28568echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28569if test "${wx_cv_size_t_is_ulong+set}" = set; then
28570 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28571else
e6cc62c6 28572 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28573/* confdefs.h. */
28574_ACEOF
28575cat confdefs.h >>conftest.$ac_ext
28576cat >>conftest.$ac_ext <<_ACEOF
28577/* end confdefs.h. */
90dd450c 28578#include <stddef.h>
e6cc62c6
VS
28579int
28580main ()
28581{
90dd450c
VZ
28582
28583 return 0; }
28584
28585 struct Foo { void foo(size_t); void foo(unsigned long); };
28586
28587 int bar() {
e6cc62c6
VS
28588
28589 ;
28590 return 0;
28591}
28592_ACEOF
28593rm -f conftest.$ac_objext
28594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28595 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28596 ac_status=$?
32ddf007
VS
28597 grep -v '^ *+' conftest.er1 >conftest.err
28598 rm -f conftest.er1
28599 cat conftest.err >&5
e6cc62c6
VS
28600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601 (exit $ac_status); } &&
32ddf007
VS
28602 { ac_try='test -z "$ac_cxx_werror_flag"
28603 || test ! -s conftest.err'
28604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28605 (eval $ac_try) 2>&5
28606 ac_status=$?
28607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28608 (exit $ac_status); }; } &&
28609 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28611 (eval $ac_try) 2>&5
28612 ac_status=$?
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); }; }; then
90dd450c 28615 wx_cv_size_t_is_ulong=no
698dcdb6 28616else
e6cc62c6
VS
28617 echo "$as_me: failed program was:" >&5
28618sed 's/^/| /' conftest.$ac_ext >&5
28619
28620wx_cv_size_t_is_ulong=yes
28621
247f5006 28622fi
32ddf007 28623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28624
e6cc62c6
VS
28625fi
28626echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28627echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 28628
90dd450c 28629 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 28630 cat >>confdefs.h <<\_ACEOF
90dd450c 28631#define wxSIZE_T_IS_ULONG 1
e6cc62c6 28632_ACEOF
4f14bcd8
GD
28633
28634 fi
90dd450c 28635fi
1e487827 28636
90dd450c 28637ac_ext=c
4f14bcd8 28638ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28641ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 28642
5c6fa7d2 28643
8284b0c5 28644
e6cc62c6
VS
28645echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28646echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28647if test "${wx_cv_struct_pw_gecos+set}" = set; then
28648 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 28649else
e6cc62c6
VS
28650
28651 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28652/* confdefs.h. */
28653_ACEOF
28654cat confdefs.h >>conftest.$ac_ext
28655cat >>conftest.$ac_ext <<_ACEOF
28656/* end confdefs.h. */
90dd450c 28657#include <pwd.h>
e6cc62c6
VS
28658int
28659main ()
28660{
f6bcfd97 28661
90dd450c
VZ
28662 char *p;
28663 struct passwd *pw;
28664 p = pw->pw_gecos;
e6cc62c6
VS
28665
28666 ;
28667 return 0;
28668}
28669_ACEOF
28670rm -f conftest.$ac_objext
28671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 28672 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28673 ac_status=$?
32ddf007
VS
28674 grep -v '^ *+' conftest.er1 >conftest.err
28675 rm -f conftest.er1
28676 cat conftest.err >&5
e6cc62c6
VS
28677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28678 (exit $ac_status); } &&
32ddf007
VS
28679 { ac_try='test -z "$ac_c_werror_flag"
28680 || test ! -s conftest.err'
28681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28682 (eval $ac_try) 2>&5
28683 ac_status=$?
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); }; } &&
28686 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28688 (eval $ac_try) 2>&5
28689 ac_status=$?
28690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691 (exit $ac_status); }; }; then
28692
90dd450c 28693 wx_cv_struct_pw_gecos=yes
e6cc62c6 28694
10f2d63a 28695else
e6cc62c6
VS
28696 echo "$as_me: failed program was:" >&5
28697sed 's/^/| /' conftest.$ac_ext >&5
28698
28699
90dd450c 28700 wx_cv_struct_pw_gecos=no
e6cc62c6 28701
247f5006
VZ
28702
28703fi
32ddf007 28704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28705
e6cc62c6
VS
28706
28707fi
28708echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28709echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 28710
90dd450c 28711if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 28712 cat >>confdefs.h <<\_ACEOF
90dd450c 28713#define HAVE_PW_GECOS 1
e6cc62c6 28714_ACEOF
c521c494 28715
90dd450c 28716fi
4f14bcd8 28717
8284b0c5 28718
d29b553b 28719if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 28720 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28721#define wxUSE_WCHAR_T 1
e6cc62c6 28722_ACEOF
d74f4b5a 28723
8284b0c5 28724
d74f4b5a
VZ
28725 WCSLEN_FOUND=0
28726 WCHAR_LINK=
e6cc62c6
VS
28727
28728for ac_func in wcslen
7a30264c 28729do
e6cc62c6
VS
28730as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28731echo "$as_me:$LINENO: checking for $ac_func" >&5
28732echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28733if eval "test \"\${$as_ac_var+set}\" = set"; then
28734 echo $ECHO_N "(cached) $ECHO_C" >&6
28735else
28736 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28737/* confdefs.h. */
28738_ACEOF
28739cat confdefs.h >>conftest.$ac_ext
28740cat >>conftest.$ac_ext <<_ACEOF
28741/* end confdefs.h. */
32ddf007
VS
28742/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28744#define $ac_func innocuous_$ac_func
28745
7a30264c 28746/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28747 which can conflict with char $ac_func (); below.
28748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28749 <limits.h> exists even on freestanding compilers. */
32ddf007 28750
e6cc62c6
VS
28751#ifdef __STDC__
28752# include <limits.h>
28753#else
28754# include <assert.h>
28755#endif
32ddf007
VS
28756
28757#undef $ac_func
28758
4f14bcd8 28759/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28760#ifdef __cplusplus
28761extern "C"
28762{
28763#endif
4f14bcd8 28764/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28765 builtin and then its argument prototype would still apply. */
28766char $ac_func ();
7a30264c
VZ
28767/* The GNU C library defines this for functions which it implements
28768 to always fail with ENOSYS. Some functions are actually named
28769 something starting with __ and the normal name is an alias. */
28770#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28771choke me
28772#else
e6cc62c6
VS
28773char (*f) () = $ac_func;
28774#endif
28775#ifdef __cplusplus
28776}
7a30264c
VZ
28777#endif
28778
e6cc62c6
VS
28779int
28780main ()
28781{
28782return f != $ac_func;
28783 ;
28784 return 0;
28785}
28786_ACEOF
28787rm -f conftest.$ac_objext conftest$ac_exeext
28788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28789 (eval $ac_link) 2>conftest.er1
e6cc62c6 28790 ac_status=$?
32ddf007
VS
28791 grep -v '^ *+' conftest.er1 >conftest.err
28792 rm -f conftest.er1
28793 cat conftest.err >&5
e6cc62c6
VS
28794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795 (exit $ac_status); } &&
32ddf007
VS
28796 { ac_try='test -z "$ac_c_werror_flag"
28797 || test ! -s conftest.err'
28798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28799 (eval $ac_try) 2>&5
28800 ac_status=$?
28801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28802 (exit $ac_status); }; } &&
28803 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28805 (eval $ac_try) 2>&5
28806 ac_status=$?
28807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28808 (exit $ac_status); }; }; then
28809 eval "$as_ac_var=yes"
28810else
28811 echo "$as_me: failed program was:" >&5
28812sed 's/^/| /' conftest.$ac_ext >&5
28813
28814eval "$as_ac_var=no"
28815fi
32ddf007
VS
28816rm -f conftest.err conftest.$ac_objext \
28817 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28818fi
28819echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28820echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28821if test `eval echo '${'$as_ac_var'}'` = yes; then
28822 cat >>confdefs.h <<_ACEOF
28823#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28824_ACEOF
d74f4b5a 28825 WCSLEN_FOUND=1
7a30264c
VZ
28826fi
28827done
9d8deca0 28828
8284b0c5 28829
d74f4b5a 28830 if test "$WCSLEN_FOUND" = 0; then
7a30264c 28831 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
28832 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28833echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28834if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28835 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28836else
e6cc62c6 28837 ac_check_lib_save_LIBS=$LIBS
7a30264c 28838LIBS="-lmsvcrt $LIBS"
e6cc62c6 28839cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28840/* confdefs.h. */
28841_ACEOF
28842cat confdefs.h >>conftest.$ac_ext
28843cat >>conftest.$ac_ext <<_ACEOF
28844/* end confdefs.h. */
28845
4f14bcd8 28846/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28847#ifdef __cplusplus
28848extern "C"
28849#endif
4f14bcd8 28850/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28851 builtin and then its argument prototype would still apply. */
28852char wcslen ();
28853int
28854main ()
28855{
28856wcslen ();
28857 ;
28858 return 0;
28859}
28860_ACEOF
28861rm -f conftest.$ac_objext conftest$ac_exeext
28862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28863 (eval $ac_link) 2>conftest.er1
e6cc62c6 28864 ac_status=$?
32ddf007
VS
28865 grep -v '^ *+' conftest.er1 >conftest.err
28866 rm -f conftest.er1
28867 cat conftest.err >&5
e6cc62c6
VS
28868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28869 (exit $ac_status); } &&
32ddf007
VS
28870 { ac_try='test -z "$ac_c_werror_flag"
28871 || test ! -s conftest.err'
28872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873 (eval $ac_try) 2>&5
28874 ac_status=$?
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); }; } &&
28877 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28879 (eval $ac_try) 2>&5
28880 ac_status=$?
28881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28882 (exit $ac_status); }; }; then
28883 ac_cv_lib_msvcrt_wcslen=yes
28884else
28885 echo "$as_me: failed program was:" >&5
28886sed 's/^/| /' conftest.$ac_ext >&5
28887
28888ac_cv_lib_msvcrt_wcslen=no
28889fi
32ddf007
VS
28890rm -f conftest.err conftest.$ac_objext \
28891 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28892LIBS=$ac_check_lib_save_LIBS
28893fi
28894echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28895echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28896if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 28897 WCHAR_OK=1
d29b553b 28898fi
698dcdb6 28899
7a30264c 28900 else
e6cc62c6
VS
28901 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28902echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28903if test "${ac_cv_lib_w_wcslen+set}" = set; then
28904 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28905else
e6cc62c6 28906 ac_check_lib_save_LIBS=$LIBS
7a30264c 28907LIBS="-lw $LIBS"
e6cc62c6 28908cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28909/* confdefs.h. */
28910_ACEOF
28911cat confdefs.h >>conftest.$ac_ext
28912cat >>conftest.$ac_ext <<_ACEOF
28913/* end confdefs.h. */
28914
4f14bcd8 28915/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28916#ifdef __cplusplus
28917extern "C"
28918#endif
4f14bcd8 28919/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28920 builtin and then its argument prototype would still apply. */
28921char wcslen ();
28922int
28923main ()
28924{
28925wcslen ();
28926 ;
28927 return 0;
28928}
28929_ACEOF
28930rm -f conftest.$ac_objext conftest$ac_exeext
28931if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 28932 (eval $ac_link) 2>conftest.er1
e6cc62c6 28933 ac_status=$?
32ddf007
VS
28934 grep -v '^ *+' conftest.er1 >conftest.err
28935 rm -f conftest.er1
28936 cat conftest.err >&5
e6cc62c6
VS
28937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938 (exit $ac_status); } &&
32ddf007
VS
28939 { ac_try='test -z "$ac_c_werror_flag"
28940 || test ! -s conftest.err'
28941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28942 (eval $ac_try) 2>&5
28943 ac_status=$?
28944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28945 (exit $ac_status); }; } &&
28946 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28948 (eval $ac_try) 2>&5
28949 ac_status=$?
28950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28951 (exit $ac_status); }; }; then
28952 ac_cv_lib_w_wcslen=yes
28953else
28954 echo "$as_me: failed program was:" >&5
28955sed 's/^/| /' conftest.$ac_ext >&5
28956
28957ac_cv_lib_w_wcslen=no
28958fi
32ddf007
VS
28959rm -f conftest.err conftest.$ac_objext \
28960 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28961LIBS=$ac_check_lib_save_LIBS
28962fi
28963echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28964echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28965if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 28966
7a30264c 28967 WCHAR_LINK=" -lw"
d74f4b5a 28968 WCSLEN_FOUND=1
e6cc62c6 28969
4f14bcd8 28970fi
10f2d63a 28971
7a30264c 28972 fi
d29b553b 28973 fi
95c8801c 28974
d74f4b5a 28975 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 28976 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28977#define HAVE_WCSLEN 1
e6cc62c6 28978_ACEOF
10f2d63a 28979
d74f4b5a 28980 fi
52127426 28981
e6cc62c6
VS
28982
28983for ac_func in wcsrtombs
eb4efbdc 28984do
e6cc62c6
VS
28985as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28986echo "$as_me:$LINENO: checking for $ac_func" >&5
28987echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28988if eval "test \"\${$as_ac_var+set}\" = set"; then
28989 echo $ECHO_N "(cached) $ECHO_C" >&6
28990else
28991 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28992/* confdefs.h. */
28993_ACEOF
28994cat confdefs.h >>conftest.$ac_ext
28995cat >>conftest.$ac_ext <<_ACEOF
28996/* end confdefs.h. */
32ddf007
VS
28997/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28999#define $ac_func innocuous_$ac_func
29000
eb4efbdc 29001/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29002 which can conflict with char $ac_func (); below.
29003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29004 <limits.h> exists even on freestanding compilers. */
32ddf007 29005
e6cc62c6
VS
29006#ifdef __STDC__
29007# include <limits.h>
29008#else
29009# include <assert.h>
29010#endif
32ddf007
VS
29011
29012#undef $ac_func
29013
eb4efbdc 29014/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29015#ifdef __cplusplus
29016extern "C"
29017{
29018#endif
4f14bcd8 29019/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29020 builtin and then its argument prototype would still apply. */
29021char $ac_func ();
10f2d63a
VZ
29022/* The GNU C library defines this for functions which it implements
29023 to always fail with ENOSYS. Some functions are actually named
29024 something starting with __ and the normal name is an alias. */
247f5006 29025#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
29026choke me
29027#else
e6cc62c6
VS
29028char (*f) () = $ac_func;
29029#endif
29030#ifdef __cplusplus
29031}
10f2d63a
VZ
29032#endif
29033
e6cc62c6
VS
29034int
29035main ()
29036{
29037return f != $ac_func;
29038 ;
29039 return 0;
29040}
29041_ACEOF
29042rm -f conftest.$ac_objext conftest$ac_exeext
29043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29044 (eval $ac_link) 2>conftest.er1
e6cc62c6 29045 ac_status=$?
32ddf007
VS
29046 grep -v '^ *+' conftest.er1 >conftest.err
29047 rm -f conftest.er1
29048 cat conftest.err >&5
e6cc62c6
VS
29049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29050 (exit $ac_status); } &&
32ddf007
VS
29051 { ac_try='test -z "$ac_c_werror_flag"
29052 || test ! -s conftest.err'
29053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29054 (eval $ac_try) 2>&5
29055 ac_status=$?
29056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057 (exit $ac_status); }; } &&
29058 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29060 (eval $ac_try) 2>&5
29061 ac_status=$?
29062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063 (exit $ac_status); }; }; then
29064 eval "$as_ac_var=yes"
29065else
29066 echo "$as_me: failed program was:" >&5
29067sed 's/^/| /' conftest.$ac_ext >&5
29068
29069eval "$as_ac_var=no"
29070fi
32ddf007
VS
29071rm -f conftest.err conftest.$ac_objext \
29072 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29073fi
29074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29075echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29076if test `eval echo '${'$as_ac_var'}'` = yes; then
29077 cat >>confdefs.h <<_ACEOF
29078#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29079_ACEOF
270a909e 29080
4f14bcd8 29081fi
247f5006 29082done
1e487827 29083
af15babd 29084else
e6cc62c6
VS
29085 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
29086echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 29087fi
52127426 29088
8284b0c5 29089
e6cc62c6
VS
29090
29091ac_ext=cc
247f5006 29092ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29093ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29094ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29095ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29096
af15babd 29097
247f5006
VZ
29098
29099for ac_func in vsnprintf
29100do
e6cc62c6
VS
29101as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29102echo "$as_me:$LINENO: checking for $ac_func" >&5
29103echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29104if eval "test \"\${$as_ac_var+set}\" = set"; then
29105 echo $ECHO_N "(cached) $ECHO_C" >&6
29106else
29107 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29108/* confdefs.h. */
29109_ACEOF
29110cat confdefs.h >>conftest.$ac_ext
29111cat >>conftest.$ac_ext <<_ACEOF
29112/* end confdefs.h. */
32ddf007
VS
29113/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29115#define $ac_func innocuous_$ac_func
29116
247f5006 29117/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29118 which can conflict with char $ac_func (); below.
29119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29120 <limits.h> exists even on freestanding compilers. */
32ddf007 29121
e6cc62c6
VS
29122#ifdef __STDC__
29123# include <limits.h>
29124#else
29125# include <assert.h>
29126#endif
32ddf007
VS
29127
29128#undef $ac_func
29129
247f5006
VZ
29130/* Override any gcc2 internal prototype to avoid an error. */
29131#ifdef __cplusplus
29132extern "C"
e6cc62c6 29133{
247f5006
VZ
29134#endif
29135/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29136 builtin and then its argument prototype would still apply. */
29137char $ac_func ();
247f5006
VZ
29138/* The GNU C library defines this for functions which it implements
29139 to always fail with ENOSYS. Some functions are actually named
29140 something starting with __ and the normal name is an alias. */
29141#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29142choke me
29143#else
e6cc62c6
VS
29144char (*f) () = $ac_func;
29145#endif
29146#ifdef __cplusplus
29147}
247f5006 29148#endif
af15babd 29149
e6cc62c6
VS
29150int
29151main ()
29152{
29153return f != $ac_func;
29154 ;
29155 return 0;
29156}
29157_ACEOF
29158rm -f conftest.$ac_objext conftest$ac_exeext
29159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29160 (eval $ac_link) 2>conftest.er1
e6cc62c6 29161 ac_status=$?
32ddf007
VS
29162 grep -v '^ *+' conftest.er1 >conftest.err
29163 rm -f conftest.er1
29164 cat conftest.err >&5
e6cc62c6
VS
29165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29166 (exit $ac_status); } &&
32ddf007
VS
29167 { ac_try='test -z "$ac_cxx_werror_flag"
29168 || test ! -s conftest.err'
29169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29170 (eval $ac_try) 2>&5
29171 ac_status=$?
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); }; } &&
29174 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176 (eval $ac_try) 2>&5
29177 ac_status=$?
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; }; then
29180 eval "$as_ac_var=yes"
29181else
29182 echo "$as_me: failed program was:" >&5
29183sed 's/^/| /' conftest.$ac_ext >&5
29184
29185eval "$as_ac_var=no"
29186fi
32ddf007
VS
29187rm -f conftest.err conftest.$ac_objext \
29188 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29189fi
29190echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29191echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29192if test `eval echo '${'$as_ac_var'}'` = yes; then
29193 cat >>confdefs.h <<_ACEOF
29194#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29195_ACEOF
52127426 29196
5c6fa7d2 29197fi
247f5006 29198done
8284b0c5 29199
4f14bcd8 29200
8d90d2f2 29201if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
29202 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29203echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29204if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29205 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 29206else
e6cc62c6
VS
29207
29208 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29209/* confdefs.h. */
29210_ACEOF
29211cat confdefs.h >>conftest.$ac_ext
29212cat >>conftest.$ac_ext <<_ACEOF
29213/* end confdefs.h. */
8d90d2f2
VZ
29214
29215 #include <stdio.h>
29216 #include <stdarg.h>
e6cc62c6
VS
29217
29218int
29219main ()
29220{
8d90d2f2
VZ
29221
29222 char *buf;
29223 va_list ap;
29224 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
29225
29226 ;
29227 return 0;
29228}
29229_ACEOF
29230rm -f conftest.$ac_objext
29231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29232 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29233 ac_status=$?
32ddf007
VS
29234 grep -v '^ *+' conftest.er1 >conftest.err
29235 rm -f conftest.er1
29236 cat conftest.err >&5
e6cc62c6
VS
29237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238 (exit $ac_status); } &&
32ddf007
VS
29239 { ac_try='test -z "$ac_cxx_werror_flag"
29240 || test ! -s conftest.err'
29241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242 (eval $ac_try) 2>&5
29243 ac_status=$?
29244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245 (exit $ac_status); }; } &&
29246 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29248 (eval $ac_try) 2>&5
29249 ac_status=$?
29250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251 (exit $ac_status); }; }; then
8d90d2f2
VZ
29252 wx_cv_func_vsnprintf_decl=yes
29253else
e6cc62c6
VS
29254 echo "$as_me: failed program was:" >&5
29255sed 's/^/| /' conftest.$ac_ext >&5
29256
29257wx_cv_func_vsnprintf_decl=no
29258
8d90d2f2 29259fi
32ddf007 29260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 29261
8d90d2f2 29262
e6cc62c6
VS
29263fi
29264echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29265echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
29266
29267 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 29268 cat >>confdefs.h <<\_ACEOF
8d90d2f2 29269#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 29270_ACEOF
8d90d2f2
VZ
29271
29272 fi
29273fi
29274
247f5006 29275if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
29276
29277
29278
29279for ac_func in fputwc wprintf vswprintf
d74f4b5a 29280do
e6cc62c6
VS
29281as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29282echo "$as_me:$LINENO: checking for $ac_func" >&5
29283echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29284if eval "test \"\${$as_ac_var+set}\" = set"; then
29285 echo $ECHO_N "(cached) $ECHO_C" >&6
29286else
29287 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29288/* confdefs.h. */
29289_ACEOF
29290cat confdefs.h >>conftest.$ac_ext
29291cat >>conftest.$ac_ext <<_ACEOF
29292/* end confdefs.h. */
32ddf007
VS
29293/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29295#define $ac_func innocuous_$ac_func
29296
d74f4b5a 29297/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29298 which can conflict with char $ac_func (); below.
29299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29300 <limits.h> exists even on freestanding compilers. */
32ddf007 29301
e6cc62c6
VS
29302#ifdef __STDC__
29303# include <limits.h>
29304#else
29305# include <assert.h>
29306#endif
32ddf007
VS
29307
29308#undef $ac_func
29309
d74f4b5a 29310/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
29311#ifdef __cplusplus
29312extern "C"
e6cc62c6 29313{
247f5006 29314#endif
d74f4b5a 29315/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29316 builtin and then its argument prototype would still apply. */
29317char $ac_func ();
d74f4b5a
VZ
29318/* The GNU C library defines this for functions which it implements
29319 to always fail with ENOSYS. Some functions are actually named
29320 something starting with __ and the normal name is an alias. */
29321#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29322choke me
29323#else
e6cc62c6
VS
29324char (*f) () = $ac_func;
29325#endif
29326#ifdef __cplusplus
29327}
d74f4b5a
VZ
29328#endif
29329
e6cc62c6
VS
29330int
29331main ()
29332{
29333return f != $ac_func;
29334 ;
29335 return 0;
29336}
29337_ACEOF
29338rm -f conftest.$ac_objext conftest$ac_exeext
29339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29340 (eval $ac_link) 2>conftest.er1
e6cc62c6 29341 ac_status=$?
32ddf007
VS
29342 grep -v '^ *+' conftest.er1 >conftest.err
29343 rm -f conftest.er1
29344 cat conftest.err >&5
e6cc62c6
VS
29345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); } &&
32ddf007
VS
29347 { ac_try='test -z "$ac_cxx_werror_flag"
29348 || test ! -s conftest.err'
29349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29350 (eval $ac_try) 2>&5
29351 ac_status=$?
29352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29353 (exit $ac_status); }; } &&
29354 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29356 (eval $ac_try) 2>&5
29357 ac_status=$?
29358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359 (exit $ac_status); }; }; then
29360 eval "$as_ac_var=yes"
29361else
29362 echo "$as_me: failed program was:" >&5
29363sed 's/^/| /' conftest.$ac_ext >&5
29364
29365eval "$as_ac_var=no"
29366fi
32ddf007
VS
29367rm -f conftest.err conftest.$ac_objext \
29368 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29369fi
29370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29371echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29372if test `eval echo '${'$as_ac_var'}'` = yes; then
29373 cat >>confdefs.h <<_ACEOF
29374#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29375_ACEOF
d74f4b5a 29376
d74f4b5a
VZ
29377fi
29378done
29379
8d90d2f2 29380
e6cc62c6
VS
29381 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29382echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29383 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29384/* confdefs.h. */
29385_ACEOF
29386cat confdefs.h >>conftest.$ac_ext
29387cat >>conftest.$ac_ext <<_ACEOF
29388/* end confdefs.h. */
79668cae 29389#include <wchar.h>
e6cc62c6
VS
29390int
29391main ()
29392{
79668cae 29393&_vsnwprintf;
e6cc62c6
VS
29394 ;
29395 return 0;
29396}
29397_ACEOF
29398rm -f conftest.$ac_objext
29399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29400 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29401 ac_status=$?
32ddf007
VS
29402 grep -v '^ *+' conftest.er1 >conftest.err
29403 rm -f conftest.er1
29404 cat conftest.err >&5
e6cc62c6
VS
29405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406 (exit $ac_status); } &&
32ddf007
VS
29407 { ac_try='test -z "$ac_cxx_werror_flag"
29408 || test ! -s conftest.err'
29409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29410 (eval $ac_try) 2>&5
29411 ac_status=$?
29412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29413 (exit $ac_status); }; } &&
29414 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29416 (eval $ac_try) 2>&5
29417 ac_status=$?
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); }; }; then
29420 echo "$as_me:$LINENO: result: yes" >&5
29421echo "${ECHO_T}yes" >&6
29422 cat >>confdefs.h <<\_ACEOF
79668cae 29423#define HAVE__VSNWPRINTF 1
e6cc62c6 29424_ACEOF
79668cae
MB
29425
29426else
e6cc62c6
VS
29427 echo "$as_me: failed program was:" >&5
29428sed 's/^/| /' conftest.$ac_ext >&5
29429
29430echo "$as_me:$LINENO: result: no" >&5
29431echo "${ECHO_T}no" >&6
79668cae 29432fi
32ddf007 29433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
29434fi
29435
247f5006
VZ
29436ac_ext=c
29437ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29438ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29439ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29440ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
29441
29442
29443
29444
4f14bcd8 29445if test "$TOOLKIT" != "MSW"; then
af15babd 29446
8284b0c5
MB
29447
29448
e6cc62c6
VS
29449
29450ac_ext=cc
4f14bcd8 29451ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 29455
52127426 29456
e6cc62c6
VS
29457
29458
29459# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
29460if test "${with_libiconv_prefix+set}" = set; then
29461 withval="$with_libiconv_prefix"
e6cc62c6 29462
b040e242
VS
29463 for dir in `echo "$withval" | tr : ' '`; do
29464 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29465 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29466 done
b040e242 29467
e6cc62c6 29468fi;
b040e242 29469
e6cc62c6
VS
29470 echo "$as_me:$LINENO: checking for iconv" >&5
29471echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29472if test "${am_cv_func_iconv+set}" = set; then
29473 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 29474else
e6cc62c6 29475
b040e242
VS
29476 am_cv_func_iconv="no, consider installing GNU libiconv"
29477 am_cv_lib_iconv=no
e6cc62c6 29478 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29479/* confdefs.h. */
29480_ACEOF
29481cat confdefs.h >>conftest.$ac_ext
29482cat >>conftest.$ac_ext <<_ACEOF
29483/* end confdefs.h. */
b040e242 29484#include <stdlib.h>
4f14bcd8 29485#include <iconv.h>
e6cc62c6
VS
29486int
29487main ()
29488{
b040e242
VS
29489iconv_t cd = iconv_open("","");
29490 iconv(cd,NULL,NULL,NULL,NULL);
29491 iconv_close(cd);
e6cc62c6
VS
29492 ;
29493 return 0;
29494}
29495_ACEOF
29496rm -f conftest.$ac_objext conftest$ac_exeext
29497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29498 (eval $ac_link) 2>conftest.er1
e6cc62c6 29499 ac_status=$?
32ddf007
VS
29500 grep -v '^ *+' conftest.er1 >conftest.err
29501 rm -f conftest.er1
29502 cat conftest.err >&5
e6cc62c6
VS
29503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29504 (exit $ac_status); } &&
32ddf007
VS
29505 { ac_try='test -z "$ac_cxx_werror_flag"
29506 || test ! -s conftest.err'
29507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29508 (eval $ac_try) 2>&5
29509 ac_status=$?
29510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 (exit $ac_status); }; } &&
29512 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29514 (eval $ac_try) 2>&5
29515 ac_status=$?
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; }; then
b040e242 29518 am_cv_func_iconv=yes
af15babd 29519else
e6cc62c6
VS
29520 echo "$as_me: failed program was:" >&5
29521sed 's/^/| /' conftest.$ac_ext >&5
29522
b040e242 29523fi
32ddf007
VS
29524rm -f conftest.err conftest.$ac_objext \
29525 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
29526 if test "$am_cv_func_iconv" != yes; then
29527 am_save_LIBS="$LIBS"
29528 LIBS="$LIBS -liconv"
e6cc62c6 29529 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29530/* confdefs.h. */
29531_ACEOF
29532cat confdefs.h >>conftest.$ac_ext
29533cat >>conftest.$ac_ext <<_ACEOF
29534/* end confdefs.h. */
b040e242
VS
29535#include <stdlib.h>
29536#include <iconv.h>
e6cc62c6
VS
29537int
29538main ()
29539{
b040e242
VS
29540iconv_t cd = iconv_open("","");
29541 iconv(cd,NULL,NULL,NULL,NULL);
29542 iconv_close(cd);
e6cc62c6
VS
29543 ;
29544 return 0;
29545}
29546_ACEOF
29547rm -f conftest.$ac_objext conftest$ac_exeext
29548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29549 (eval $ac_link) 2>conftest.er1
e6cc62c6 29550 ac_status=$?
32ddf007
VS
29551 grep -v '^ *+' conftest.er1 >conftest.err
29552 rm -f conftest.er1
29553 cat conftest.err >&5
e6cc62c6
VS
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); } &&
32ddf007
VS
29556 { ac_try='test -z "$ac_cxx_werror_flag"
29557 || test ! -s conftest.err'
29558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559 (eval $ac_try) 2>&5
29560 ac_status=$?
29561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 (exit $ac_status); }; } &&
29563 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29565 (eval $ac_try) 2>&5
29566 ac_status=$?
29567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568 (exit $ac_status); }; }; then
b040e242
VS
29569 am_cv_lib_iconv=yes
29570 am_cv_func_iconv=yes
29571else
e6cc62c6
VS
29572 echo "$as_me: failed program was:" >&5
29573sed 's/^/| /' conftest.$ac_ext >&5
29574
af15babd 29575fi
32ddf007
VS
29576rm -f conftest.err conftest.$ac_objext \
29577 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
29578 LIBS="$am_save_LIBS"
29579 fi
247f5006 29580
e6cc62c6
VS
29581fi
29582echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29583echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 29584 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
29585
29586cat >>confdefs.h <<\_ACEOF
b040e242 29587#define HAVE_ICONV 1
e6cc62c6 29588_ACEOF
b040e242 29589
e6cc62c6
VS
29590 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29591echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29592if test "${wx_cv_func_iconv_const+set}" = set; then
29593 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 29594else
e6cc62c6 29595 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29596/* confdefs.h. */
29597_ACEOF
29598cat confdefs.h >>conftest.$ac_ext
29599cat >>conftest.$ac_ext <<_ACEOF
29600/* end confdefs.h. */
b040e242
VS
29601
29602#include <stdlib.h>
29603#include <iconv.h>
29604extern
29605#ifdef __cplusplus
29606"C"
29607#endif
29608#if defined(__STDC__) || defined(__cplusplus)
29609size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29610#else
29611size_t iconv();
29612#endif
af15babd 29613
e6cc62c6
VS
29614int
29615main ()
29616{
29617
29618 ;
29619 return 0;
29620}
29621_ACEOF
29622rm -f conftest.$ac_objext
29623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29624 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29625 ac_status=$?
32ddf007
VS
29626 grep -v '^ *+' conftest.er1 >conftest.err
29627 rm -f conftest.er1
29628 cat conftest.err >&5
e6cc62c6
VS
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); } &&
32ddf007
VS
29631 { ac_try='test -z "$ac_cxx_werror_flag"
29632 || test ! -s conftest.err'
29633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29634 (eval $ac_try) 2>&5
29635 ac_status=$?
29636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29637 (exit $ac_status); }; } &&
29638 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29640 (eval $ac_try) 2>&5
29641 ac_status=$?
29642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643 (exit $ac_status); }; }; then
b7043674 29644 wx_cv_func_iconv_const="no"
b040e242 29645else
e6cc62c6
VS
29646 echo "$as_me: failed program was:" >&5
29647sed 's/^/| /' conftest.$ac_ext >&5
29648
29649wx_cv_func_iconv_const="yes"
29650
247f5006 29651fi
32ddf007 29652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29653
e6cc62c6
VS
29654fi
29655echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29656echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
29657
29658 iconv_const=
1c405bb5 29659 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
29660 iconv_const="const"
29661 fi
29662
e6cc62c6
VS
29663
29664cat >>confdefs.h <<_ACEOF
f09359cf 29665#define ICONV_CONST $iconv_const
e6cc62c6 29666_ACEOF
b040e242
VS
29667
29668 fi
29669 LIBICONV=
29670 if test "$am_cv_lib_iconv" = yes; then
29671 LIBICONV="-liconv"
29672 fi
e6cc62c6 29673
b040e242
VS
29674
29675LIBS="$LIBICONV $LIBS"
4f14bcd8 29676ac_ext=c
4f14bcd8 29677ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29680ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 29681
5c6fa7d2 29682
8284b0c5 29683if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
29684
29685for ac_func in sigaction
af15babd 29686do
e6cc62c6
VS
29687as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29688echo "$as_me:$LINENO: checking for $ac_func" >&5
29689echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29690if eval "test \"\${$as_ac_var+set}\" = set"; then
29691 echo $ECHO_N "(cached) $ECHO_C" >&6
29692else
29693 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29694/* confdefs.h. */
29695_ACEOF
29696cat confdefs.h >>conftest.$ac_ext
29697cat >>conftest.$ac_ext <<_ACEOF
29698/* end confdefs.h. */
32ddf007
VS
29699/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29701#define $ac_func innocuous_$ac_func
29702
af15babd 29703/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29704 which can conflict with char $ac_func (); below.
29705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29706 <limits.h> exists even on freestanding compilers. */
32ddf007 29707
e6cc62c6
VS
29708#ifdef __STDC__
29709# include <limits.h>
29710#else
29711# include <assert.h>
29712#endif
32ddf007
VS
29713
29714#undef $ac_func
29715
af15babd 29716/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29717#ifdef __cplusplus
29718extern "C"
29719{
29720#endif
af15babd 29721/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29722 builtin and then its argument prototype would still apply. */
29723char $ac_func ();
af15babd
VZ
29724/* The GNU C library defines this for functions which it implements
29725 to always fail with ENOSYS. Some functions are actually named
29726 something starting with __ and the normal name is an alias. */
29727#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29728choke me
29729#else
e6cc62c6
VS
29730char (*f) () = $ac_func;
29731#endif
29732#ifdef __cplusplus
29733}
af15babd
VZ
29734#endif
29735
e6cc62c6
VS
29736int
29737main ()
29738{
29739return f != $ac_func;
29740 ;
29741 return 0;
29742}
29743_ACEOF
29744rm -f conftest.$ac_objext conftest$ac_exeext
29745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29746 (eval $ac_link) 2>conftest.er1
e6cc62c6 29747 ac_status=$?
32ddf007
VS
29748 grep -v '^ *+' conftest.er1 >conftest.err
29749 rm -f conftest.er1
29750 cat conftest.err >&5
e6cc62c6
VS
29751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29752 (exit $ac_status); } &&
32ddf007
VS
29753 { ac_try='test -z "$ac_c_werror_flag"
29754 || test ! -s conftest.err'
29755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29756 (eval $ac_try) 2>&5
29757 ac_status=$?
29758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29759 (exit $ac_status); }; } &&
29760 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29762 (eval $ac_try) 2>&5
29763 ac_status=$?
29764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765 (exit $ac_status); }; }; then
29766 eval "$as_ac_var=yes"
29767else
29768 echo "$as_me: failed program was:" >&5
29769sed 's/^/| /' conftest.$ac_ext >&5
29770
29771eval "$as_ac_var=no"
29772fi
32ddf007
VS
29773rm -f conftest.err conftest.$ac_objext \
29774 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29775fi
29776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29777echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29778if test `eval echo '${'$as_ac_var'}'` = yes; then
29779 cat >>confdefs.h <<_ACEOF
29780#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29781_ACEOF
7b4a847f 29782
4f14bcd8
GD
29783fi
29784done
29785
8284b0c5 29786
4f14bcd8 29787 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
29788 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29789echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
29790 wxUSE_ON_FATAL_EXCEPTION=no
29791 fi
29792
29793 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
29794
29795
29796 ac_ext=cc
5c6fa7d2 29797ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 29801
5c6fa7d2 29802
e6cc62c6
VS
29803 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29804echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29805if test "${wx_cv_type_sa_handler+set}" = set; then
29806 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29807else
e6cc62c6
VS
29808
29809 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29810/* confdefs.h. */
29811_ACEOF
29812cat confdefs.h >>conftest.$ac_ext
29813cat >>conftest.$ac_ext <<_ACEOF
29814/* end confdefs.h. */
4f14bcd8 29815#include <signal.h>
e6cc62c6
VS
29816int
29817main ()
29818{
4f14bcd8
GD
29819
29820 extern void testSigHandler(int);
29821
29822 struct sigaction sa;
29823 sa.sa_handler = testSigHandler;
e6cc62c6
VS
29824
29825 ;
29826 return 0;
29827}
29828_ACEOF
29829rm -f conftest.$ac_objext
29830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 29831 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29832 ac_status=$?
32ddf007
VS
29833 grep -v '^ *+' conftest.er1 >conftest.err
29834 rm -f conftest.er1
29835 cat conftest.err >&5
e6cc62c6
VS
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); } &&
32ddf007
VS
29838 { ac_try='test -z "$ac_cxx_werror_flag"
29839 || test ! -s conftest.err'
29840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841 (eval $ac_try) 2>&5
29842 ac_status=$?
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; } &&
29845 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847 (eval $ac_try) 2>&5
29848 ac_status=$?
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); }; }; then
29851
4f14bcd8 29852 wx_cv_type_sa_handler=int
e6cc62c6 29853
af15babd 29854else
e6cc62c6
VS
29855 echo "$as_me: failed program was:" >&5
29856sed 's/^/| /' conftest.$ac_ext >&5
29857
29858
4f14bcd8 29859 wx_cv_type_sa_handler=void
e6cc62c6 29860
247f5006 29861fi
32ddf007 29862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29863
e6cc62c6
VS
29864fi
29865echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29866echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
29867
29868 ac_ext=c
4f14bcd8 29869ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29872ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 29873
8284b0c5 29874
e6cc62c6 29875 cat >>confdefs.h <<_ACEOF
4f14bcd8 29876#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 29877_ACEOF
af15babd 29878
4f14bcd8
GD
29879 fi
29880fi
af15babd 29881
e6cc62c6
VS
29882
29883
a1d22ad7 29884for ac_func in mkstemp mktemp
af15babd 29885do
e6cc62c6
VS
29886as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29887echo "$as_me:$LINENO: checking for $ac_func" >&5
29888echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29889if eval "test \"\${$as_ac_var+set}\" = set"; then
29890 echo $ECHO_N "(cached) $ECHO_C" >&6
29891else
29892 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29893/* confdefs.h. */
29894_ACEOF
29895cat confdefs.h >>conftest.$ac_ext
29896cat >>conftest.$ac_ext <<_ACEOF
29897/* end confdefs.h. */
32ddf007
VS
29898/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29900#define $ac_func innocuous_$ac_func
29901
af15babd 29902/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29903 which can conflict with char $ac_func (); below.
29904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29905 <limits.h> exists even on freestanding compilers. */
32ddf007 29906
e6cc62c6
VS
29907#ifdef __STDC__
29908# include <limits.h>
29909#else
29910# include <assert.h>
29911#endif
32ddf007
VS
29912
29913#undef $ac_func
29914
af15babd 29915/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29916#ifdef __cplusplus
29917extern "C"
29918{
29919#endif
af15babd 29920/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29921 builtin and then its argument prototype would still apply. */
29922char $ac_func ();
af15babd
VZ
29923/* The GNU C library defines this for functions which it implements
29924 to always fail with ENOSYS. Some functions are actually named
29925 something starting with __ and the normal name is an alias. */
29926#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29927choke me
29928#else
e6cc62c6
VS
29929char (*f) () = $ac_func;
29930#endif
29931#ifdef __cplusplus
29932}
af15babd
VZ
29933#endif
29934
e6cc62c6
VS
29935int
29936main ()
29937{
29938return f != $ac_func;
29939 ;
29940 return 0;
29941}
29942_ACEOF
29943rm -f conftest.$ac_objext conftest$ac_exeext
29944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 29945 (eval $ac_link) 2>conftest.er1
e6cc62c6 29946 ac_status=$?
32ddf007
VS
29947 grep -v '^ *+' conftest.er1 >conftest.err
29948 rm -f conftest.er1
29949 cat conftest.err >&5
e6cc62c6
VS
29950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29951 (exit $ac_status); } &&
32ddf007
VS
29952 { ac_try='test -z "$ac_c_werror_flag"
29953 || test ! -s conftest.err'
29954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29955 (eval $ac_try) 2>&5
29956 ac_status=$?
29957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29958 (exit $ac_status); }; } &&
29959 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29961 (eval $ac_try) 2>&5
29962 ac_status=$?
29963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; }; then
29965 eval "$as_ac_var=yes"
29966else
29967 echo "$as_me: failed program was:" >&5
29968sed 's/^/| /' conftest.$ac_ext >&5
29969
29970eval "$as_ac_var=no"
29971fi
32ddf007
VS
29972rm -f conftest.err conftest.$ac_objext \
29973 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29974fi
29975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29976echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29977if test `eval echo '${'$as_ac_var'}'` = yes; then
29978 cat >>confdefs.h <<_ACEOF
29979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29980_ACEOF
ade35f11 29981 break
ade35f11
VZ
29982fi
29983done
29984
8284b0c5 29985
e6cc62c6
VS
29986echo "$as_me:$LINENO: checking for statfs" >&5
29987echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29988if test "${wx_cv_func_statfs+set}" = set; then
29989 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29990else
e6cc62c6 29991 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29992/* confdefs.h. */
29993_ACEOF
29994cat confdefs.h >>conftest.$ac_ext
29995cat >>conftest.$ac_ext <<_ACEOF
29996/* end confdefs.h. */
4f14bcd8
GD
29997
29998 #if defined(__BSD__)
29999 #include <sys/param.h>
30000 #include <sys/mount.h>
30001 #else
30002 #include <sys/vfs.h>
30003 #endif
e6cc62c6
VS
30004
30005int
30006main ()
30007{
4f14bcd8
GD
30008
30009 long l;
30010 struct statfs fs;
30011 statfs("/", &fs);
30012 l = fs.f_bsize;
30013 l += fs.f_blocks;
30014 l += fs.f_bavail;
e6cc62c6
VS
30015
30016 ;
30017 return 0;
30018}
30019_ACEOF
30020rm -f conftest.$ac_objext
30021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 30022 (eval $ac_compile) 2>conftest.er1
e6cc62c6 30023 ac_status=$?
32ddf007
VS
30024 grep -v '^ *+' conftest.er1 >conftest.err
30025 rm -f conftest.er1
30026 cat conftest.err >&5
e6cc62c6
VS
30027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30028 (exit $ac_status); } &&
32ddf007
VS
30029 { ac_try='test -z "$ac_c_werror_flag"
30030 || test ! -s conftest.err'
30031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30032 (eval $ac_try) 2>&5
30033 ac_status=$?
30034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035 (exit $ac_status); }; } &&
30036 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30038 (eval $ac_try) 2>&5
30039 ac_status=$?
30040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30041 (exit $ac_status); }; }; then
30042
4f14bcd8 30043 wx_cv_func_statfs=yes
e6cc62c6 30044
4f14bcd8 30045else
e6cc62c6
VS
30046 echo "$as_me: failed program was:" >&5
30047sed 's/^/| /' conftest.$ac_ext >&5
30048
30049
4f14bcd8 30050 wx_cv_func_statfs=no
e6cc62c6 30051
8284b0c5 30052
247f5006 30053fi
32ddf007 30054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30055
e6cc62c6
VS
30056fi
30057echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
30058echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
30059
30060if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 30061 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 30062 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30063#define HAVE_STATFS 1
e6cc62c6 30064_ACEOF
4f14bcd8
GD
30065
30066else
e6cc62c6
VS
30067 echo "$as_me:$LINENO: checking for statvfs" >&5
30068echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
30069if test "${wx_cv_func_statvfs+set}" = set; then
30070 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 30071else
e6cc62c6 30072 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30073/* confdefs.h. */
30074_ACEOF
30075cat confdefs.h >>conftest.$ac_ext
30076cat >>conftest.$ac_ext <<_ACEOF
30077/* end confdefs.h. */
af15babd 30078
54ab82b3
VZ
30079 #include <stddef.h>
30080 #include <sys/statvfs.h>
e6cc62c6
VS
30081
30082int
30083main ()
30084{
af15babd 30085
54ab82b3 30086 statvfs("/", NULL);
e6cc62c6
VS
30087
30088 ;
30089 return 0;
30090}
30091_ACEOF
30092rm -f conftest.$ac_objext
30093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 30094 (eval $ac_compile) 2>conftest.er1
e6cc62c6 30095 ac_status=$?
32ddf007
VS
30096 grep -v '^ *+' conftest.er1 >conftest.err
30097 rm -f conftest.er1
30098 cat conftest.err >&5
e6cc62c6
VS
30099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100 (exit $ac_status); } &&
32ddf007
VS
30101 { ac_try='test -z "$ac_c_werror_flag"
30102 || test ! -s conftest.err'
30103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30104 (eval $ac_try) 2>&5
30105 ac_status=$?
30106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30107 (exit $ac_status); }; } &&
30108 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30110 (eval $ac_try) 2>&5
30111 ac_status=$?
30112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30113 (exit $ac_status); }; }; then
54ab82b3 30114 wx_cv_func_statvfs=yes
af15babd 30115else
e6cc62c6
VS
30116 echo "$as_me: failed program was:" >&5
30117sed 's/^/| /' conftest.$ac_ext >&5
30118
30119wx_cv_func_statvfs=no
30120
247f5006 30121fi
32ddf007 30122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30123
e6cc62c6
VS
30124fi
30125echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
30126echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 30127
4f14bcd8 30128 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
30129
30130
30131 ac_ext=cc
54ab82b3 30132ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
30136
30137
e6cc62c6
VS
30138 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
30139echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
30140if test "${wx_cv_type_statvfs_t+set}" = set; then
30141 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 30142else
e6cc62c6 30143 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30144/* confdefs.h. */
30145_ACEOF
30146cat confdefs.h >>conftest.$ac_ext
30147cat >>conftest.$ac_ext <<_ACEOF
30148/* end confdefs.h. */
54ab82b3
VZ
30149
30150 #include <sys/statvfs.h>
e6cc62c6
VS
30151
30152int
30153main ()
30154{
54ab82b3
VZ
30155
30156 long l;
30157 statvfs_t fs;
30158 statvfs("/", &fs);
30159 l = fs.f_bsize;
30160 l += fs.f_blocks;
30161 l += fs.f_bavail;
e6cc62c6
VS
30162
30163 ;
30164 return 0;
30165}
30166_ACEOF
30167rm -f conftest.$ac_objext
30168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 30169 (eval $ac_compile) 2>conftest.er1
e6cc62c6 30170 ac_status=$?
32ddf007
VS
30171 grep -v '^ *+' conftest.er1 >conftest.err
30172 rm -f conftest.er1
30173 cat conftest.err >&5
e6cc62c6
VS
30174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30175 (exit $ac_status); } &&
32ddf007
VS
30176 { ac_try='test -z "$ac_cxx_werror_flag"
30177 || test ! -s conftest.err'
30178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30179 (eval $ac_try) 2>&5
30180 ac_status=$?
30181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30182 (exit $ac_status); }; } &&
30183 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30185 (eval $ac_try) 2>&5
30186 ac_status=$?
30187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30188 (exit $ac_status); }; }; then
54ab82b3
VZ
30189 wx_cv_type_statvfs_t=statvfs_t
30190else
e6cc62c6
VS
30191 echo "$as_me: failed program was:" >&5
30192sed 's/^/| /' conftest.$ac_ext >&5
30193
30194
30195 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30196/* confdefs.h. */
30197_ACEOF
30198cat confdefs.h >>conftest.$ac_ext
30199cat >>conftest.$ac_ext <<_ACEOF
30200/* end confdefs.h. */
54ab82b3
VZ
30201
30202 #include <sys/statvfs.h>
e6cc62c6
VS
30203
30204int
30205main ()
30206{
54ab82b3
VZ
30207
30208 long l;
65d8ef1e 30209 struct statvfs fs;
54ab82b3
VZ
30210 statvfs("/", &fs);
30211 l = fs.f_bsize;
30212 l += fs.f_blocks;
30213 l += fs.f_bavail;
e6cc62c6
VS
30214
30215 ;
30216 return 0;
30217}
30218_ACEOF
30219rm -f conftest.$ac_objext
30220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 30221 (eval $ac_compile) 2>conftest.er1
e6cc62c6 30222 ac_status=$?
32ddf007
VS
30223 grep -v '^ *+' conftest.er1 >conftest.err
30224 rm -f conftest.er1
30225 cat conftest.err >&5
e6cc62c6
VS
30226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30227 (exit $ac_status); } &&
32ddf007
VS
30228 { ac_try='test -z "$ac_cxx_werror_flag"
30229 || test ! -s conftest.err'
30230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30231 (eval $ac_try) 2>&5
30232 ac_status=$?
30233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234 (exit $ac_status); }; } &&
30235 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30237 (eval $ac_try) 2>&5
30238 ac_status=$?
30239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30240 (exit $ac_status); }; }; then
54ab82b3
VZ
30241 wx_cv_type_statvfs_t="struct statvfs"
30242else
e6cc62c6
VS
30243 echo "$as_me: failed program was:" >&5
30244sed 's/^/| /' conftest.$ac_ext >&5
30245
30246wx_cv_type_statvfs_t="unknown"
30247
54ab82b3 30248fi
32ddf007 30249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
30250
30251
54ab82b3 30252fi
32ddf007 30253rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54ab82b3 30254
e6cc62c6
VS
30255fi
30256echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30257echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
30258
30259 ac_ext=c
54ab82b3 30260ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30263ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
30264
30265
30266 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 30267 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30268#define HAVE_STATVFS 1
e6cc62c6 30269_ACEOF
af15babd 30270
54ab82b3 30271 fi
4f14bcd8 30272 else
54ab82b3 30273 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
30274 fi
30275fi
af15babd 30276
54ab82b3 30277if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 30278 cat >>confdefs.h <<_ACEOF
54ab82b3 30279#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 30280_ACEOF
54ab82b3
VZ
30281
30282else
e6cc62c6
VS
30283 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30284echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
30285fi
30286
4f14bcd8 30287if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
30288
30289
30290for ac_func in fcntl flock
af15babd 30291do
e6cc62c6
VS
30292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30293echo "$as_me:$LINENO: checking for $ac_func" >&5
30294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30295if eval "test \"\${$as_ac_var+set}\" = set"; then
30296 echo $ECHO_N "(cached) $ECHO_C" >&6
30297else
30298 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30299/* confdefs.h. */
30300_ACEOF
30301cat confdefs.h >>conftest.$ac_ext
30302cat >>conftest.$ac_ext <<_ACEOF
30303/* end confdefs.h. */
32ddf007
VS
30304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30306#define $ac_func innocuous_$ac_func
30307
af15babd 30308/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30309 which can conflict with char $ac_func (); below.
30310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30311 <limits.h> exists even on freestanding compilers. */
32ddf007 30312
e6cc62c6
VS
30313#ifdef __STDC__
30314# include <limits.h>
30315#else
30316# include <assert.h>
30317#endif
32ddf007
VS
30318
30319#undef $ac_func
30320
af15babd 30321/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30322#ifdef __cplusplus
30323extern "C"
30324{
30325#endif
af15babd 30326/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30327 builtin and then its argument prototype would still apply. */
30328char $ac_func ();
af15babd
VZ
30329/* The GNU C library defines this for functions which it implements
30330 to always fail with ENOSYS. Some functions are actually named
30331 something starting with __ and the normal name is an alias. */
30332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30333choke me
30334#else
e6cc62c6
VS
30335char (*f) () = $ac_func;
30336#endif
30337#ifdef __cplusplus
30338}
af15babd
VZ
30339#endif
30340
e6cc62c6
VS
30341int
30342main ()
30343{
30344return f != $ac_func;
30345 ;
30346 return 0;
30347}
30348_ACEOF
30349rm -f conftest.$ac_objext conftest$ac_exeext
30350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30351 (eval $ac_link) 2>conftest.er1
e6cc62c6 30352 ac_status=$?
32ddf007
VS
30353 grep -v '^ *+' conftest.er1 >conftest.err
30354 rm -f conftest.er1
30355 cat conftest.err >&5
e6cc62c6
VS
30356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30357 (exit $ac_status); } &&
32ddf007
VS
30358 { ac_try='test -z "$ac_c_werror_flag"
30359 || test ! -s conftest.err'
30360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30361 (eval $ac_try) 2>&5
30362 ac_status=$?
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; } &&
30365 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30367 (eval $ac_try) 2>&5
30368 ac_status=$?
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); }; }; then
30371 eval "$as_ac_var=yes"
30372else
30373 echo "$as_me: failed program was:" >&5
30374sed 's/^/| /' conftest.$ac_ext >&5
30375
30376eval "$as_ac_var=no"
30377fi
32ddf007
VS
30378rm -f conftest.err conftest.$ac_objext \
30379 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30380fi
30381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30382echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30383if test `eval echo '${'$as_ac_var'}'` = yes; then
30384 cat >>confdefs.h <<_ACEOF
30385#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30386_ACEOF
4f14bcd8 30387 break
af15babd
VZ
30388fi
30389done
30390
8284b0c5 30391
4f14bcd8 30392 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
30393 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30394echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
30395 wxUSE_SNGLINST_CHECKER=no
30396 fi
30397fi
af15babd 30398
e6cc62c6 30399
4f14bcd8 30400for ac_func in timegm
af15babd 30401do
e6cc62c6
VS
30402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30403echo "$as_me:$LINENO: checking for $ac_func" >&5
30404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30405if eval "test \"\${$as_ac_var+set}\" = set"; then
30406 echo $ECHO_N "(cached) $ECHO_C" >&6
30407else
30408 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30409/* confdefs.h. */
30410_ACEOF
30411cat confdefs.h >>conftest.$ac_ext
30412cat >>conftest.$ac_ext <<_ACEOF
30413/* end confdefs.h. */
32ddf007
VS
30414/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30416#define $ac_func innocuous_$ac_func
30417
af15babd 30418/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30419 which can conflict with char $ac_func (); below.
30420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30421 <limits.h> exists even on freestanding compilers. */
32ddf007 30422
e6cc62c6
VS
30423#ifdef __STDC__
30424# include <limits.h>
30425#else
30426# include <assert.h>
30427#endif
32ddf007
VS
30428
30429#undef $ac_func
30430
af15babd 30431/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30432#ifdef __cplusplus
30433extern "C"
30434{
30435#endif
af15babd 30436/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30437 builtin and then its argument prototype would still apply. */
30438char $ac_func ();
af15babd
VZ
30439/* The GNU C library defines this for functions which it implements
30440 to always fail with ENOSYS. Some functions are actually named
30441 something starting with __ and the normal name is an alias. */
247f5006
VZ
30442#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30443choke me
30444#else
e6cc62c6
VS
30445char (*f) () = $ac_func;
30446#endif
30447#ifdef __cplusplus
30448}
247f5006
VZ
30449#endif
30450
e6cc62c6
VS
30451int
30452main ()
30453{
30454return f != $ac_func;
30455 ;
30456 return 0;
30457}
30458_ACEOF
30459rm -f conftest.$ac_objext conftest$ac_exeext
30460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30461 (eval $ac_link) 2>conftest.er1
e6cc62c6 30462 ac_status=$?
32ddf007
VS
30463 grep -v '^ *+' conftest.er1 >conftest.err
30464 rm -f conftest.er1
30465 cat conftest.err >&5
e6cc62c6
VS
30466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30467 (exit $ac_status); } &&
32ddf007
VS
30468 { ac_try='test -z "$ac_c_werror_flag"
30469 || test ! -s conftest.err'
30470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30471 (eval $ac_try) 2>&5
30472 ac_status=$?
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); }; } &&
30475 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30477 (eval $ac_try) 2>&5
30478 ac_status=$?
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); }; }; then
30481 eval "$as_ac_var=yes"
30482else
30483 echo "$as_me: failed program was:" >&5
30484sed 's/^/| /' conftest.$ac_ext >&5
30485
30486eval "$as_ac_var=no"
30487fi
32ddf007
VS
30488rm -f conftest.err conftest.$ac_objext \
30489 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30490fi
30491echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30492echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30493if test `eval echo '${'$as_ac_var'}'` = yes; then
30494 cat >>confdefs.h <<_ACEOF
30495#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30496_ACEOF
703e0a69 30497
af15babd
VZ
30498fi
30499done
30500
8284b0c5 30501
e6cc62c6
VS
30502
30503
4f14bcd8 30504for ac_func in putenv setenv
10f2d63a 30505do
e6cc62c6
VS
30506as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30507echo "$as_me:$LINENO: checking for $ac_func" >&5
30508echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30509if eval "test \"\${$as_ac_var+set}\" = set"; then
30510 echo $ECHO_N "(cached) $ECHO_C" >&6
30511else
30512 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30513/* confdefs.h. */
30514_ACEOF
30515cat confdefs.h >>conftest.$ac_ext
30516cat >>conftest.$ac_ext <<_ACEOF
30517/* end confdefs.h. */
32ddf007
VS
30518/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30519 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30520#define $ac_func innocuous_$ac_func
30521
af15babd 30522/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30523 which can conflict with char $ac_func (); below.
30524 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30525 <limits.h> exists even on freestanding compilers. */
32ddf007 30526
e6cc62c6
VS
30527#ifdef __STDC__
30528# include <limits.h>
30529#else
30530# include <assert.h>
30531#endif
32ddf007
VS
30532
30533#undef $ac_func
30534
af15babd 30535/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30536#ifdef __cplusplus
30537extern "C"
30538{
30539#endif
af15babd 30540/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30541 builtin and then its argument prototype would still apply. */
30542char $ac_func ();
af15babd
VZ
30543/* The GNU C library defines this for functions which it implements
30544 to always fail with ENOSYS. Some functions are actually named
30545 something starting with __ and the normal name is an alias. */
30546#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30547choke me
30548#else
e6cc62c6
VS
30549char (*f) () = $ac_func;
30550#endif
30551#ifdef __cplusplus
30552}
af15babd
VZ
30553#endif
30554
e6cc62c6
VS
30555int
30556main ()
30557{
30558return f != $ac_func;
30559 ;
30560 return 0;
30561}
30562_ACEOF
30563rm -f conftest.$ac_objext conftest$ac_exeext
30564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30565 (eval $ac_link) 2>conftest.er1
e6cc62c6 30566 ac_status=$?
32ddf007
VS
30567 grep -v '^ *+' conftest.er1 >conftest.err
30568 rm -f conftest.er1
30569 cat conftest.err >&5
e6cc62c6
VS
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); } &&
32ddf007
VS
30572 { ac_try='test -z "$ac_c_werror_flag"
30573 || test ! -s conftest.err'
30574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30575 (eval $ac_try) 2>&5
30576 ac_status=$?
30577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30578 (exit $ac_status); }; } &&
30579 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30581 (eval $ac_try) 2>&5
30582 ac_status=$?
30583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30584 (exit $ac_status); }; }; then
30585 eval "$as_ac_var=yes"
30586else
30587 echo "$as_me: failed program was:" >&5
30588sed 's/^/| /' conftest.$ac_ext >&5
30589
30590eval "$as_ac_var=no"
30591fi
32ddf007
VS
30592rm -f conftest.err conftest.$ac_objext \
30593 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30594fi
30595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30596echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30597if test `eval echo '${'$as_ac_var'}'` = yes; then
30598 cat >>confdefs.h <<_ACEOF
30599#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30600_ACEOF
4f14bcd8 30601 break
af15babd 30602fi
af15babd
VZ
30603done
30604
8284b0c5 30605
4f14bcd8
GD
30606HAVE_SOME_SLEEP_FUNC=0
30607if test "$USE_BEOS" = 1; then
e6cc62c6 30608 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30609#define HAVE_SLEEP 1
e6cc62c6 30610_ACEOF
af15babd 30611
4f14bcd8 30612 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
30613fi
30614
4f14bcd8 30615if test "$USE_DARWIN" = 1; then
e6cc62c6 30616 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30617#define HAVE_USLEEP 1
e6cc62c6 30618_ACEOF
10f2d63a 30619
4f14bcd8 30620 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
30621fi
30622
4f14bcd8
GD
30623if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30624 POSIX4_LINK=
e6cc62c6
VS
30625
30626for ac_func in nanosleep
4f14bcd8 30627do
e6cc62c6
VS
30628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30629echo "$as_me:$LINENO: checking for $ac_func" >&5
30630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30631if eval "test \"\${$as_ac_var+set}\" = set"; then
30632 echo $ECHO_N "(cached) $ECHO_C" >&6
30633else
30634 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30635/* confdefs.h. */
30636_ACEOF
30637cat confdefs.h >>conftest.$ac_ext
30638cat >>conftest.$ac_ext <<_ACEOF
30639/* end confdefs.h. */
32ddf007
VS
30640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30642#define $ac_func innocuous_$ac_func
30643
4f14bcd8 30644/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30645 which can conflict with char $ac_func (); below.
30646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30647 <limits.h> exists even on freestanding compilers. */
32ddf007 30648
e6cc62c6
VS
30649#ifdef __STDC__
30650# include <limits.h>
30651#else
30652# include <assert.h>
30653#endif
32ddf007
VS
30654
30655#undef $ac_func
30656
10f2d63a 30657/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30658#ifdef __cplusplus
30659extern "C"
30660{
30661#endif
10f2d63a 30662/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30663 builtin and then its argument prototype would still apply. */
30664char $ac_func ();
4f14bcd8
GD
30665/* The GNU C library defines this for functions which it implements
30666 to always fail with ENOSYS. Some functions are actually named
30667 something starting with __ and the normal name is an alias. */
30668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30669choke me
30670#else
e6cc62c6
VS
30671char (*f) () = $ac_func;
30672#endif
30673#ifdef __cplusplus
30674}
4f14bcd8
GD
30675#endif
30676
e6cc62c6
VS
30677int
30678main ()
30679{
30680return f != $ac_func;
30681 ;
30682 return 0;
30683}
30684_ACEOF
30685rm -f conftest.$ac_objext conftest$ac_exeext
30686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30687 (eval $ac_link) 2>conftest.er1
e6cc62c6 30688 ac_status=$?
32ddf007
VS
30689 grep -v '^ *+' conftest.er1 >conftest.err
30690 rm -f conftest.er1
30691 cat conftest.err >&5
e6cc62c6
VS
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } &&
32ddf007
VS
30694 { ac_try='test -z "$ac_c_werror_flag"
30695 || test ! -s conftest.err'
30696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30697 (eval $ac_try) 2>&5
30698 ac_status=$?
30699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700 (exit $ac_status); }; } &&
30701 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30703 (eval $ac_try) 2>&5
30704 ac_status=$?
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); }; }; then
30707 eval "$as_ac_var=yes"
30708else
30709 echo "$as_me: failed program was:" >&5
30710sed 's/^/| /' conftest.$ac_ext >&5
30711
30712eval "$as_ac_var=no"
30713fi
32ddf007
VS
30714rm -f conftest.err conftest.$ac_objext \
30715 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30716fi
30717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30719if test `eval echo '${'$as_ac_var'}'` = yes; then
30720 cat >>confdefs.h <<_ACEOF
30721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30722_ACEOF
30723 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30724#define HAVE_NANOSLEEP 1
e6cc62c6 30725_ACEOF
4f14bcd8 30726
10f2d63a 30727else
e6cc62c6
VS
30728
30729 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30730echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30731if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30732 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30733else
e6cc62c6 30734 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30735LIBS="-lposix4 $LIBS"
e6cc62c6 30736cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30737/* confdefs.h. */
30738_ACEOF
30739cat confdefs.h >>conftest.$ac_ext
30740cat >>conftest.$ac_ext <<_ACEOF
30741/* end confdefs.h. */
30742
10f2d63a 30743/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30744#ifdef __cplusplus
30745extern "C"
30746#endif
10f2d63a 30747/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30748 builtin and then its argument prototype would still apply. */
30749char nanosleep ();
30750int
30751main ()
30752{
30753nanosleep ();
30754 ;
30755 return 0;
30756}
30757_ACEOF
30758rm -f conftest.$ac_objext conftest$ac_exeext
30759if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30760 (eval $ac_link) 2>conftest.er1
e6cc62c6 30761 ac_status=$?
32ddf007
VS
30762 grep -v '^ *+' conftest.er1 >conftest.err
30763 rm -f conftest.er1
30764 cat conftest.err >&5
e6cc62c6
VS
30765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30766 (exit $ac_status); } &&
32ddf007
VS
30767 { ac_try='test -z "$ac_c_werror_flag"
30768 || test ! -s conftest.err'
30769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30770 (eval $ac_try) 2>&5
30771 ac_status=$?
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); }; } &&
30774 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30776 (eval $ac_try) 2>&5
30777 ac_status=$?
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); }; }; then
30780 ac_cv_lib_posix4_nanosleep=yes
30781else
30782 echo "$as_me: failed program was:" >&5
30783sed 's/^/| /' conftest.$ac_ext >&5
30784
30785ac_cv_lib_posix4_nanosleep=no
30786fi
32ddf007
VS
30787rm -f conftest.err conftest.$ac_objext \
30788 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30789LIBS=$ac_check_lib_save_LIBS
30790fi
30791echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30792echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30793if test $ac_cv_lib_posix4_nanosleep = yes; then
30794
30795 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30796#define HAVE_NANOSLEEP 1
e6cc62c6 30797_ACEOF
4f14bcd8 30798
3d63bc3a 30799 POSIX4_LINK=" -lposix4"
e6cc62c6 30800
10f2d63a 30801else
10f2d63a 30802
e6cc62c6
VS
30803
30804for ac_func in usleep
4f14bcd8 30805do
e6cc62c6
VS
30806as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30807echo "$as_me:$LINENO: checking for $ac_func" >&5
30808echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30809if eval "test \"\${$as_ac_var+set}\" = set"; then
30810 echo $ECHO_N "(cached) $ECHO_C" >&6
30811else
30812 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30813/* confdefs.h. */
30814_ACEOF
30815cat confdefs.h >>conftest.$ac_ext
30816cat >>conftest.$ac_ext <<_ACEOF
30817/* end confdefs.h. */
32ddf007
VS
30818/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30820#define $ac_func innocuous_$ac_func
30821
4f14bcd8 30822/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30823 which can conflict with char $ac_func (); below.
30824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30825 <limits.h> exists even on freestanding compilers. */
32ddf007 30826
e6cc62c6
VS
30827#ifdef __STDC__
30828# include <limits.h>
30829#else
30830# include <assert.h>
30831#endif
32ddf007
VS
30832
30833#undef $ac_func
30834
4f14bcd8 30835/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30836#ifdef __cplusplus
30837extern "C"
30838{
30839#endif
4f14bcd8 30840/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30841 builtin and then its argument prototype would still apply. */
30842char $ac_func ();
4f14bcd8
GD
30843/* The GNU C library defines this for functions which it implements
30844 to always fail with ENOSYS. Some functions are actually named
30845 something starting with __ and the normal name is an alias. */
30846#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30847choke me
30848#else
e6cc62c6
VS
30849char (*f) () = $ac_func;
30850#endif
30851#ifdef __cplusplus
30852}
4f14bcd8
GD
30853#endif
30854
e6cc62c6
VS
30855int
30856main ()
30857{
30858return f != $ac_func;
30859 ;
30860 return 0;
30861}
30862_ACEOF
30863rm -f conftest.$ac_objext conftest$ac_exeext
30864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30865 (eval $ac_link) 2>conftest.er1
e6cc62c6 30866 ac_status=$?
32ddf007
VS
30867 grep -v '^ *+' conftest.er1 >conftest.err
30868 rm -f conftest.er1
30869 cat conftest.err >&5
e6cc62c6
VS
30870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30871 (exit $ac_status); } &&
32ddf007
VS
30872 { ac_try='test -z "$ac_c_werror_flag"
30873 || test ! -s conftest.err'
30874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30875 (eval $ac_try) 2>&5
30876 ac_status=$?
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); }; } &&
30879 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30881 (eval $ac_try) 2>&5
30882 ac_status=$?
30883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30884 (exit $ac_status); }; }; then
30885 eval "$as_ac_var=yes"
30886else
30887 echo "$as_me: failed program was:" >&5
30888sed 's/^/| /' conftest.$ac_ext >&5
30889
30890eval "$as_ac_var=no"
30891fi
32ddf007
VS
30892rm -f conftest.err conftest.$ac_objext \
30893 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30894fi
30895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30896echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30897if test `eval echo '${'$as_ac_var'}'` = yes; then
30898 cat >>confdefs.h <<_ACEOF
30899#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30900_ACEOF
30901 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30902#define HAVE_USLEEP 1
e6cc62c6 30903_ACEOF
4f14bcd8 30904
698dcdb6 30905else
e6cc62c6
VS
30906 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30907echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30908
10f2d63a 30909fi
4f14bcd8 30910done
10f2d63a 30911
e6cc62c6
VS
30912
30913
6232543b 30914fi
10f2d63a 30915
e6cc62c6
VS
30916
30917
1e487827 30918fi
4f14bcd8 30919done
703e0a69 30920
10f2d63a
VZ
30921fi
30922
e6cc62c6
VS
30923
30924
4f14bcd8 30925for ac_func in uname gethostname
70846f0a 30926do
e6cc62c6
VS
30927as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30928echo "$as_me:$LINENO: checking for $ac_func" >&5
30929echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30930if eval "test \"\${$as_ac_var+set}\" = set"; then
30931 echo $ECHO_N "(cached) $ECHO_C" >&6
30932else
30933 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30934/* confdefs.h. */
30935_ACEOF
30936cat confdefs.h >>conftest.$ac_ext
30937cat >>conftest.$ac_ext <<_ACEOF
30938/* end confdefs.h. */
32ddf007
VS
30939/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30941#define $ac_func innocuous_$ac_func
30942
70846f0a 30943/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30944 which can conflict with char $ac_func (); below.
30945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30946 <limits.h> exists even on freestanding compilers. */
32ddf007 30947
e6cc62c6
VS
30948#ifdef __STDC__
30949# include <limits.h>
30950#else
30951# include <assert.h>
30952#endif
32ddf007
VS
30953
30954#undef $ac_func
30955
70846f0a 30956/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30957#ifdef __cplusplus
30958extern "C"
30959{
30960#endif
70846f0a 30961/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30962 builtin and then its argument prototype would still apply. */
30963char $ac_func ();
70846f0a
VZ
30964/* The GNU C library defines this for functions which it implements
30965 to always fail with ENOSYS. Some functions are actually named
30966 something starting with __ and the normal name is an alias. */
30967#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30968choke me
30969#else
e6cc62c6
VS
30970char (*f) () = $ac_func;
30971#endif
30972#ifdef __cplusplus
30973}
70846f0a
VZ
30974#endif
30975
e6cc62c6
VS
30976int
30977main ()
30978{
30979return f != $ac_func;
30980 ;
30981 return 0;
30982}
30983_ACEOF
30984rm -f conftest.$ac_objext conftest$ac_exeext
30985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 30986 (eval $ac_link) 2>conftest.er1
e6cc62c6 30987 ac_status=$?
32ddf007
VS
30988 grep -v '^ *+' conftest.er1 >conftest.err
30989 rm -f conftest.er1
30990 cat conftest.err >&5
e6cc62c6
VS
30991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992 (exit $ac_status); } &&
32ddf007
VS
30993 { ac_try='test -z "$ac_c_werror_flag"
30994 || test ! -s conftest.err'
30995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30996 (eval $ac_try) 2>&5
30997 ac_status=$?
30998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999 (exit $ac_status); }; } &&
31000 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31002 (eval $ac_try) 2>&5
31003 ac_status=$?
31004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31005 (exit $ac_status); }; }; then
31006 eval "$as_ac_var=yes"
31007else
31008 echo "$as_me: failed program was:" >&5
31009sed 's/^/| /' conftest.$ac_ext >&5
31010
31011eval "$as_ac_var=no"
31012fi
32ddf007
VS
31013rm -f conftest.err conftest.$ac_objext \
31014 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31015fi
31016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31017echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31018if test `eval echo '${'$as_ac_var'}'` = yes; then
31019 cat >>confdefs.h <<_ACEOF
31020#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31021_ACEOF
4f14bcd8 31022 break
70846f0a
VZ
31023fi
31024done
31025
8284b0c5
MB
31026
31027
e6cc62c6
VS
31028
31029ac_ext=cc
4f14bcd8 31030ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
31031ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31032ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31033ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31034
8284b0c5 31035
4f14bcd8
GD
31036
31037for ac_func in strtok_r
10f2d63a 31038do
e6cc62c6
VS
31039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31040echo "$as_me:$LINENO: checking for $ac_func" >&5
31041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31042if eval "test \"\${$as_ac_var+set}\" = set"; then
31043 echo $ECHO_N "(cached) $ECHO_C" >&6
31044else
31045 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31046/* confdefs.h. */
31047_ACEOF
31048cat confdefs.h >>conftest.$ac_ext
31049cat >>conftest.$ac_ext <<_ACEOF
31050/* end confdefs.h. */
32ddf007
VS
31051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31053#define $ac_func innocuous_$ac_func
31054
4f14bcd8 31055/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31056 which can conflict with char $ac_func (); below.
31057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31058 <limits.h> exists even on freestanding compilers. */
32ddf007 31059
e6cc62c6
VS
31060#ifdef __STDC__
31061# include <limits.h>
31062#else
31063# include <assert.h>
31064#endif
32ddf007
VS
31065
31066#undef $ac_func
31067
4f14bcd8
GD
31068/* Override any gcc2 internal prototype to avoid an error. */
31069#ifdef __cplusplus
31070extern "C"
e6cc62c6 31071{
4f14bcd8
GD
31072#endif
31073/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31074 builtin and then its argument prototype would still apply. */
31075char $ac_func ();
4f14bcd8
GD
31076/* The GNU C library defines this for functions which it implements
31077 to always fail with ENOSYS. Some functions are actually named
31078 something starting with __ and the normal name is an alias. */
31079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31080choke me
31081#else
e6cc62c6
VS
31082char (*f) () = $ac_func;
31083#endif
31084#ifdef __cplusplus
31085}
4f14bcd8
GD
31086#endif
31087
e6cc62c6
VS
31088int
31089main ()
31090{
31091return f != $ac_func;
31092 ;
31093 return 0;
31094}
31095_ACEOF
31096rm -f conftest.$ac_objext conftest$ac_exeext
31097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31098 (eval $ac_link) 2>conftest.er1
e6cc62c6 31099 ac_status=$?
32ddf007
VS
31100 grep -v '^ *+' conftest.er1 >conftest.err
31101 rm -f conftest.er1
31102 cat conftest.err >&5
e6cc62c6
VS
31103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31104 (exit $ac_status); } &&
32ddf007
VS
31105 { ac_try='test -z "$ac_cxx_werror_flag"
31106 || test ! -s conftest.err'
31107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31108 (eval $ac_try) 2>&5
31109 ac_status=$?
31110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31111 (exit $ac_status); }; } &&
31112 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31114 (eval $ac_try) 2>&5
31115 ac_status=$?
31116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31117 (exit $ac_status); }; }; then
31118 eval "$as_ac_var=yes"
31119else
31120 echo "$as_me: failed program was:" >&5
31121sed 's/^/| /' conftest.$ac_ext >&5
31122
31123eval "$as_ac_var=no"
31124fi
32ddf007
VS
31125rm -f conftest.err conftest.$ac_objext \
31126 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31127fi
31128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31129echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31130if test `eval echo '${'$as_ac_var'}'` = yes; then
31131 cat >>confdefs.h <<_ACEOF
31132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31133_ACEOF
4f14bcd8 31134
10f2d63a
VZ
31135fi
31136done
31137
8284b0c5 31138
4f14bcd8 31139ac_ext=c
4f14bcd8 31140ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31143ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 31144
5c6fa7d2 31145
8284b0c5 31146INET_LINK=
e6cc62c6 31147
4f14bcd8
GD
31148for ac_func in inet_addr
31149do
e6cc62c6
VS
31150as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31151echo "$as_me:$LINENO: checking for $ac_func" >&5
31152echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31153if eval "test \"\${$as_ac_var+set}\" = set"; then
31154 echo $ECHO_N "(cached) $ECHO_C" >&6
31155else
31156 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31157/* confdefs.h. */
31158_ACEOF
31159cat confdefs.h >>conftest.$ac_ext
31160cat >>conftest.$ac_ext <<_ACEOF
31161/* end confdefs.h. */
32ddf007
VS
31162/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31163 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31164#define $ac_func innocuous_$ac_func
31165
4f14bcd8 31166/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31167 which can conflict with char $ac_func (); below.
31168 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31169 <limits.h> exists even on freestanding compilers. */
32ddf007 31170
e6cc62c6
VS
31171#ifdef __STDC__
31172# include <limits.h>
31173#else
31174# include <assert.h>
31175#endif
32ddf007
VS
31176
31177#undef $ac_func
31178
10f2d63a 31179/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31180#ifdef __cplusplus
31181extern "C"
31182{
31183#endif
10f2d63a 31184/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31185 builtin and then its argument prototype would still apply. */
31186char $ac_func ();
4f14bcd8
GD
31187/* The GNU C library defines this for functions which it implements
31188 to always fail with ENOSYS. Some functions are actually named
31189 something starting with __ and the normal name is an alias. */
31190#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31191choke me
31192#else
e6cc62c6
VS
31193char (*f) () = $ac_func;
31194#endif
31195#ifdef __cplusplus
31196}
4f14bcd8
GD
31197#endif
31198
e6cc62c6
VS
31199int
31200main ()
31201{
31202return f != $ac_func;
31203 ;
31204 return 0;
31205}
31206_ACEOF
31207rm -f conftest.$ac_objext conftest$ac_exeext
31208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31209 (eval $ac_link) 2>conftest.er1
e6cc62c6 31210 ac_status=$?
32ddf007
VS
31211 grep -v '^ *+' conftest.er1 >conftest.err
31212 rm -f conftest.er1
31213 cat conftest.err >&5
e6cc62c6
VS
31214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31215 (exit $ac_status); } &&
32ddf007
VS
31216 { ac_try='test -z "$ac_c_werror_flag"
31217 || test ! -s conftest.err'
31218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31219 (eval $ac_try) 2>&5
31220 ac_status=$?
31221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31222 (exit $ac_status); }; } &&
31223 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31225 (eval $ac_try) 2>&5
31226 ac_status=$?
31227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); }; }; then
31229 eval "$as_ac_var=yes"
31230else
31231 echo "$as_me: failed program was:" >&5
31232sed 's/^/| /' conftest.$ac_ext >&5
31233
31234eval "$as_ac_var=no"
31235fi
32ddf007
VS
31236rm -f conftest.err conftest.$ac_objext \
31237 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31238fi
31239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31240echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31241if test `eval echo '${'$as_ac_var'}'` = yes; then
31242 cat >>confdefs.h <<_ACEOF
31243#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31244_ACEOF
31245 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31246#define HAVE_INET_ADDR 1
e6cc62c6 31247_ACEOF
10f2d63a
VZ
31248
31249else
e6cc62c6
VS
31250
31251 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31252echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31253if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31254 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31255else
e6cc62c6 31256 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31257LIBS="-lnsl $LIBS"
e6cc62c6 31258cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31259/* confdefs.h. */
31260_ACEOF
31261cat confdefs.h >>conftest.$ac_ext
31262cat >>conftest.$ac_ext <<_ACEOF
31263/* end confdefs.h. */
31264
10f2d63a 31265/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31266#ifdef __cplusplus
31267extern "C"
31268#endif
10f2d63a 31269/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31270 builtin and then its argument prototype would still apply. */
31271char inet_addr ();
31272int
31273main ()
31274{
31275inet_addr ();
31276 ;
31277 return 0;
31278}
31279_ACEOF
31280rm -f conftest.$ac_objext conftest$ac_exeext
31281if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31282 (eval $ac_link) 2>conftest.er1
e6cc62c6 31283 ac_status=$?
32ddf007
VS
31284 grep -v '^ *+' conftest.er1 >conftest.err
31285 rm -f conftest.er1
31286 cat conftest.err >&5
e6cc62c6
VS
31287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288 (exit $ac_status); } &&
32ddf007
VS
31289 { ac_try='test -z "$ac_c_werror_flag"
31290 || test ! -s conftest.err'
31291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31292 (eval $ac_try) 2>&5
31293 ac_status=$?
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); }; } &&
31296 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31298 (eval $ac_try) 2>&5
31299 ac_status=$?
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); }; }; then
31302 ac_cv_lib_nsl_inet_addr=yes
31303else
31304 echo "$as_me: failed program was:" >&5
31305sed 's/^/| /' conftest.$ac_ext >&5
31306
31307ac_cv_lib_nsl_inet_addr=no
31308fi
32ddf007
VS
31309rm -f conftest.err conftest.$ac_objext \
31310 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31311LIBS=$ac_check_lib_save_LIBS
31312fi
31313echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31314echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31315if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 31316 INET_LINK="nsl"
10f2d63a 31317else
0e012a93
VZ
31318
31319 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
31320echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31321if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31322 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31323else
e6cc62c6 31324 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31325LIBS="-lresolv $LIBS"
e6cc62c6 31326cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31327/* confdefs.h. */
31328_ACEOF
31329cat confdefs.h >>conftest.$ac_ext
31330cat >>conftest.$ac_ext <<_ACEOF
31331/* end confdefs.h. */
31332
5c6fa7d2 31333/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31334#ifdef __cplusplus
31335extern "C"
31336#endif
5c6fa7d2 31337/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31338 builtin and then its argument prototype would still apply. */
31339char inet_addr ();
31340int
31341main ()
31342{
31343inet_addr ();
31344 ;
31345 return 0;
31346}
31347_ACEOF
31348rm -f conftest.$ac_objext conftest$ac_exeext
31349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31350 (eval $ac_link) 2>conftest.er1
e6cc62c6 31351 ac_status=$?
32ddf007
VS
31352 grep -v '^ *+' conftest.er1 >conftest.err
31353 rm -f conftest.er1
31354 cat conftest.err >&5
e6cc62c6
VS
31355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31356 (exit $ac_status); } &&
32ddf007
VS
31357 { ac_try='test -z "$ac_c_werror_flag"
31358 || test ! -s conftest.err'
31359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31360 (eval $ac_try) 2>&5
31361 ac_status=$?
31362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363 (exit $ac_status); }; } &&
31364 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31366 (eval $ac_try) 2>&5
31367 ac_status=$?
31368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31369 (exit $ac_status); }; }; then
31370 ac_cv_lib_resolv_inet_addr=yes
31371else
31372 echo "$as_me: failed program was:" >&5
31373sed 's/^/| /' conftest.$ac_ext >&5
31374
31375ac_cv_lib_resolv_inet_addr=no
31376fi
32ddf007
VS
31377rm -f conftest.err conftest.$ac_objext \
31378 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31379LIBS=$ac_check_lib_save_LIBS
31380fi
31381echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31382echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31383if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 31384 INET_LINK="resolv"
698dcdb6 31385else
0e012a93
VZ
31386
31387 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
31388echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31389if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31390 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 31391else
e6cc62c6 31392 ac_check_lib_save_LIBS=$LIBS
3c011993 31393LIBS="-lsocket $LIBS"
e6cc62c6 31394cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31395/* confdefs.h. */
31396_ACEOF
31397cat confdefs.h >>conftest.$ac_ext
31398cat >>conftest.$ac_ext <<_ACEOF
31399/* end confdefs.h. */
31400
3c011993 31401/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31402#ifdef __cplusplus
31403extern "C"
31404#endif
3c011993 31405/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31406 builtin and then its argument prototype would still apply. */
31407char inet_addr ();
31408int
31409main ()
31410{
31411inet_addr ();
31412 ;
31413 return 0;
31414}
31415_ACEOF
31416rm -f conftest.$ac_objext conftest$ac_exeext
31417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31418 (eval $ac_link) 2>conftest.er1
e6cc62c6 31419 ac_status=$?
32ddf007
VS
31420 grep -v '^ *+' conftest.er1 >conftest.err
31421 rm -f conftest.er1
31422 cat conftest.err >&5
e6cc62c6
VS
31423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 (exit $ac_status); } &&
32ddf007
VS
31425 { ac_try='test -z "$ac_c_werror_flag"
31426 || test ! -s conftest.err'
31427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31428 (eval $ac_try) 2>&5
31429 ac_status=$?
31430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431 (exit $ac_status); }; } &&
31432 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31434 (eval $ac_try) 2>&5
31435 ac_status=$?
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; }; then
31438 ac_cv_lib_socket_inet_addr=yes
31439else
31440 echo "$as_me: failed program was:" >&5
31441sed 's/^/| /' conftest.$ac_ext >&5
31442
31443ac_cv_lib_socket_inet_addr=no
31444fi
32ddf007
VS
31445rm -f conftest.err conftest.$ac_objext \
31446 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31447LIBS=$ac_check_lib_save_LIBS
31448fi
31449echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31450echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31451if test $ac_cv_lib_socket_inet_addr = yes; then
31452 INET_LINK="socket"
4f14bcd8 31453
8284b0c5 31454fi
e6cc62c6 31455
698dcdb6 31456
0e012a93 31457
7b4a847f 31458fi
e6cc62c6
VS
31459
31460
0e012a93 31461
a0b9e27f 31462fi
579d8138 31463
e6cc62c6
VS
31464
31465
5c6fa7d2 31466fi
e6cc62c6
VS
31467done
31468
31469
31470
31471for ac_func in inet_aton
31472do
31473as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31474echo "$as_me:$LINENO: checking for $ac_func" >&5
31475echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31476if eval "test \"\${$as_ac_var+set}\" = set"; then
31477 echo $ECHO_N "(cached) $ECHO_C" >&6
31478else
31479 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31480/* confdefs.h. */
31481_ACEOF
31482cat confdefs.h >>conftest.$ac_ext
31483cat >>conftest.$ac_ext <<_ACEOF
31484/* end confdefs.h. */
32ddf007
VS
31485/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31487#define $ac_func innocuous_$ac_func
31488
e6cc62c6
VS
31489/* System header to define __stub macros and hopefully few prototypes,
31490 which can conflict with char $ac_func (); below.
31491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31492 <limits.h> exists even on freestanding compilers. */
32ddf007 31493
e6cc62c6
VS
31494#ifdef __STDC__
31495# include <limits.h>
31496#else
31497# include <assert.h>
31498#endif
32ddf007
VS
31499
31500#undef $ac_func
31501
e6cc62c6
VS
31502/* Override any gcc2 internal prototype to avoid an error. */
31503#ifdef __cplusplus
31504extern "C"
31505{
31506#endif
31507/* We use char because int might match the return type of a gcc2
31508 builtin and then its argument prototype would still apply. */
31509char $ac_func ();
31510/* The GNU C library defines this for functions which it implements
31511 to always fail with ENOSYS. Some functions are actually named
31512 something starting with __ and the normal name is an alias. */
31513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31514choke me
31515#else
31516char (*f) () = $ac_func;
31517#endif
31518#ifdef __cplusplus
31519}
31520#endif
31521
31522int
31523main ()
31524{
31525return f != $ac_func;
31526 ;
31527 return 0;
31528}
31529_ACEOF
31530rm -f conftest.$ac_objext conftest$ac_exeext
31531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31532 (eval $ac_link) 2>conftest.er1
e6cc62c6 31533 ac_status=$?
32ddf007
VS
31534 grep -v '^ *+' conftest.er1 >conftest.err
31535 rm -f conftest.er1
31536 cat conftest.err >&5
e6cc62c6
VS
31537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31538 (exit $ac_status); } &&
32ddf007
VS
31539 { ac_try='test -z "$ac_c_werror_flag"
31540 || test ! -s conftest.err'
31541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31542 (eval $ac_try) 2>&5
31543 ac_status=$?
31544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); }; } &&
31546 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31548 (eval $ac_try) 2>&5
31549 ac_status=$?
31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551 (exit $ac_status); }; }; then
31552 eval "$as_ac_var=yes"
31553else
31554 echo "$as_me: failed program was:" >&5
31555sed 's/^/| /' conftest.$ac_ext >&5
31556
31557eval "$as_ac_var=no"
31558fi
32ddf007
VS
31559rm -f conftest.err conftest.$ac_objext \
31560 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31561fi
31562echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31563echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31564if test `eval echo '${'$as_ac_var'}'` = yes; then
31565 cat >>confdefs.h <<_ACEOF
31566#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31567_ACEOF
31568 cat >>confdefs.h <<\_ACEOF
31569#define HAVE_INET_ATON 1
31570_ACEOF
31571
31572else
31573
31574 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31575echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31576echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31577if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31578 echo $ECHO_N "(cached) $ECHO_C" >&6
31579else
31580 ac_check_lib_save_LIBS=$LIBS
31581LIBS="-l$INET_LINK $LIBS"
31582cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31583/* confdefs.h. */
31584_ACEOF
31585cat confdefs.h >>conftest.$ac_ext
31586cat >>conftest.$ac_ext <<_ACEOF
31587/* end confdefs.h. */
31588
31589/* Override any gcc2 internal prototype to avoid an error. */
31590#ifdef __cplusplus
31591extern "C"
31592#endif
31593/* We use char because int might match the return type of a gcc2
31594 builtin and then its argument prototype would still apply. */
31595char inet_aton ();
31596int
31597main ()
31598{
31599inet_aton ();
31600 ;
31601 return 0;
31602}
31603_ACEOF
31604rm -f conftest.$ac_objext conftest$ac_exeext
31605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31606 (eval $ac_link) 2>conftest.er1
e6cc62c6 31607 ac_status=$?
32ddf007
VS
31608 grep -v '^ *+' conftest.er1 >conftest.err
31609 rm -f conftest.er1
31610 cat conftest.err >&5
e6cc62c6
VS
31611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31612 (exit $ac_status); } &&
32ddf007
VS
31613 { ac_try='test -z "$ac_c_werror_flag"
31614 || test ! -s conftest.err'
31615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31616 (eval $ac_try) 2>&5
31617 ac_status=$?
31618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619 (exit $ac_status); }; } &&
31620 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31622 (eval $ac_try) 2>&5
31623 ac_status=$?
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); }; }; then
31626 eval "$as_ac_Lib=yes"
31627else
31628 echo "$as_me: failed program was:" >&5
31629sed 's/^/| /' conftest.$ac_ext >&5
31630
31631eval "$as_ac_Lib=no"
31632fi
32ddf007
VS
31633rm -f conftest.err conftest.$ac_objext \
31634 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31635LIBS=$ac_check_lib_save_LIBS
31636fi
31637echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31638echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31639if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31640 cat >>confdefs.h <<\_ACEOF
31641#define HAVE_INET_ATON 1
31642_ACEOF
52127426 31643
a0b9e27f 31644fi
247f5006 31645
8284b0c5 31646
698dcdb6 31647fi
4f14bcd8
GD
31648done
31649
8284b0c5 31650
e6cc62c6
VS
31651if test "x$INET_LINK" != "x"; then
31652 cat >>confdefs.h <<\_ACEOF
31653#define HAVE_INET_ADDR 1
31654_ACEOF
31655
31656 INET_LINK=" -l$INET_LINK"
31657fi
31658
31659fi
a0b9e27f 31660
a0b9e27f 31661
4f14bcd8 31662
edd891e2
VS
31663EXTRALIBS_ESD=
31664echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31665echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31666if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31667 echo $ECHO_N "(cached) $ECHO_C" >&6
31668else
31669 ac_check_lib_save_LIBS=$LIBS
31670LIBS="-lesd $LIBS"
31671cat >conftest.$ac_ext <<_ACEOF
edd891e2
VS
31672/* confdefs.h. */
31673_ACEOF
31674cat confdefs.h >>conftest.$ac_ext
31675cat >>conftest.$ac_ext <<_ACEOF
31676/* end confdefs.h. */
31677
31678/* Override any gcc2 internal prototype to avoid an error. */
31679#ifdef __cplusplus
31680extern "C"
31681#endif
31682/* We use char because int might match the return type of a gcc2
31683 builtin and then its argument prototype would still apply. */
31684char esd_close ();
31685int
31686main ()
31687{
31688esd_close ();
31689 ;
31690 return 0;
31691}
31692_ACEOF
31693rm -f conftest.$ac_objext conftest$ac_exeext
31694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 31695 (eval $ac_link) 2>conftest.er1
edd891e2 31696 ac_status=$?
32ddf007
VS
31697 grep -v '^ *+' conftest.er1 >conftest.err
31698 rm -f conftest.er1
31699 cat conftest.err >&5
edd891e2
VS
31700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31701 (exit $ac_status); } &&
32ddf007
VS
31702 { ac_try='test -z "$ac_c_werror_flag"
31703 || test ! -s conftest.err'
31704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31705 (eval $ac_try) 2>&5
31706 ac_status=$?
31707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31708 (exit $ac_status); }; } &&
31709 { ac_try='test -s conftest$ac_exeext'
edd891e2
VS
31710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31711 (eval $ac_try) 2>&5
31712 ac_status=$?
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); }; }; then
31715 ac_cv_lib_esd_esd_close=yes
31716else
31717 echo "$as_me: failed program was:" >&5
31718sed 's/^/| /' conftest.$ac_ext >&5
31719
31720ac_cv_lib_esd_esd_close=no
31721fi
32ddf007
VS
31722rm -f conftest.err conftest.$ac_objext \
31723 conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
31724LIBS=$ac_check_lib_save_LIBS
31725fi
31726echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31727echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31728if test $ac_cv_lib_esd_esd_close = yes; then
31729
31730
31731for ac_header in esd.h
31732do
31733as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31734if eval "test \"\${$as_ac_Header+set}\" = set"; then
31735 echo "$as_me:$LINENO: checking for $ac_header" >&5
31736echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31737if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31738 echo $ECHO_N "(cached) $ECHO_C" >&6
31739fi
edd891e2
VS
31740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31741echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
31742else
31743 # Is the header compilable?
edd891e2
VS
31744echo "$as_me:$LINENO: checking $ac_header usability" >&5
31745echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 31746cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31747/* confdefs.h. */
31748_ACEOF
31749cat confdefs.h >>conftest.$ac_ext
31750cat >>conftest.$ac_ext <<_ACEOF
31751/* end confdefs.h. */
31752$ac_includes_default
edd891e2 31753#include <$ac_header>
e6cc62c6
VS
31754_ACEOF
31755rm -f conftest.$ac_objext
31756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 31757 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31758 ac_status=$?
32ddf007
VS
31759 grep -v '^ *+' conftest.er1 >conftest.err
31760 rm -f conftest.er1
31761 cat conftest.err >&5
e6cc62c6
VS
31762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31763 (exit $ac_status); } &&
32ddf007
VS
31764 { ac_try='test -z "$ac_c_werror_flag"
31765 || test ! -s conftest.err'
31766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31767 (eval $ac_try) 2>&5
31768 ac_status=$?
31769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31770 (exit $ac_status); }; } &&
31771 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31773 (eval $ac_try) 2>&5
31774 ac_status=$?
31775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776 (exit $ac_status); }; }; then
31777 ac_header_compiler=yes
31778else
31779 echo "$as_me: failed program was:" >&5
31780sed 's/^/| /' conftest.$ac_ext >&5
31781
31782ac_header_compiler=no
31783fi
32ddf007 31784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31786echo "${ECHO_T}$ac_header_compiler" >&6
31787
31788# Is the header present?
edd891e2
VS
31789echo "$as_me:$LINENO: checking $ac_header presence" >&5
31790echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 31791cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31792/* confdefs.h. */
31793_ACEOF
31794cat confdefs.h >>conftest.$ac_ext
31795cat >>conftest.$ac_ext <<_ACEOF
31796/* end confdefs.h. */
edd891e2 31797#include <$ac_header>
e6cc62c6
VS
31798_ACEOF
31799if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31801 ac_status=$?
31802 grep -v '^ *+' conftest.er1 >conftest.err
31803 rm -f conftest.er1
31804 cat conftest.err >&5
31805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31806 (exit $ac_status); } >/dev/null; then
31807 if test -s conftest.err; then
31808 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 31809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31810 else
31811 ac_cpp_err=
31812 fi
a0b9e27f 31813else
e6cc62c6
VS
31814 ac_cpp_err=yes
31815fi
31816if test -z "$ac_cpp_err"; then
31817 ac_header_preproc=yes
31818else
31819 echo "$as_me: failed program was:" >&5
31820sed 's/^/| /' conftest.$ac_ext >&5
31821
31822 ac_header_preproc=no
31823fi
31824rm -f conftest.err conftest.$ac_ext
31825echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31826echo "${ECHO_T}$ac_header_preproc" >&6
31827
31828# So? What about this header?
32ddf007
VS
31829case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31830 yes:no: )
edd891e2
VS
31831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31832echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
31833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31834echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31835 ac_header_preproc=yes
e6cc62c6 31836 ;;
32ddf007 31837 no:yes:* )
edd891e2
VS
31838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31839echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
31840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31841echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31843echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31845echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
edd891e2
VS
31846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31847echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
31848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31849echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31850 (
31851 cat <<\_ASBOX
32ddf007
VS
31852## ----------------------------------------- ##
31853## Report this to wx-dev@lists.wxwindows.org ##
31854## ----------------------------------------- ##
e6cc62c6
VS
31855_ASBOX
31856 ) |
31857 sed "s/^/$as_me: WARNING: /" >&2
31858 ;;
31859esac
edd891e2
VS
31860echo "$as_me:$LINENO: checking for $ac_header" >&5
31861echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31862if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31863 echo $ECHO_N "(cached) $ECHO_C" >&6
31864else
32ddf007 31865 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 31866fi
edd891e2
VS
31867echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31868echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 31869
e6cc62c6 31870fi
edd891e2
VS
31871if test `eval echo '${'$as_ac_Header'}'` = yes; then
31872 cat >>confdefs.h <<_ACEOF
31873#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 31874_ACEOF
e6cc62c6 31875
edd891e2 31876 EXTRALIBS_ESD="-lesd"
4f14bcd8 31877
a0b9e27f 31878fi
247f5006 31879
edd891e2 31880done
8284b0c5 31881
4f14bcd8 31882
6232543b 31883fi
10f2d63a 31884
703e0a69 31885
8284b0c5 31886
d19d1899
MB
31887echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31888echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31889cat >conftest.$ac_ext <<_ACEOF
d19d1899
MB
31890/* confdefs.h. */
31891_ACEOF
31892cat confdefs.h >>conftest.$ac_ext
31893cat >>conftest.$ac_ext <<_ACEOF
31894/* end confdefs.h. */
31895#ifdef __linux__
31896 #include <linux/cdrom.h>
31897 #else
31898 /* For Solaris */
31899 #include <sys/cdio.h>
31900 #endif
31901
31902int
31903main ()
31904{
31905struct cdrom_tocentry entry, old_entry;
31906 ;
31907 return 0;
31908}
31909_ACEOF
31910rm -f conftest.$ac_objext
31911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 31912 (eval $ac_compile) 2>conftest.er1
d19d1899 31913 ac_status=$?
32ddf007
VS
31914 grep -v '^ *+' conftest.er1 >conftest.err
31915 rm -f conftest.er1
31916 cat conftest.err >&5
d19d1899
MB
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); } &&
32ddf007
VS
31919 { ac_try='test -z "$ac_c_werror_flag"
31920 || test ! -s conftest.err'
31921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31922 (eval $ac_try) 2>&5
31923 ac_status=$?
31924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31925 (exit $ac_status); }; } &&
31926 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
31927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31928 (eval $ac_try) 2>&5
31929 ac_status=$?
31930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31931 (exit $ac_status); }; }; then
31932 echo "$as_me:$LINENO: result: yes" >&5
31933echo "${ECHO_T}yes" >&6
31934 cat >>confdefs.h <<\_ACEOF
31935#define HAVE_KNOWN_CDROM_INTERFACE 1
31936_ACEOF
31937
31938else
31939 echo "$as_me: failed program was:" >&5
31940sed 's/^/| /' conftest.$ac_ext >&5
31941
31942echo "$as_me:$LINENO: result: no" >&5
31943echo "${ECHO_T}no" >&6
31944fi
32ddf007 31945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31946
31947
31948cat >confcache <<\_ACEOF
4f14bcd8
GD
31949# This file is a shell script that caches the results of configure
31950# tests run on this system so they can be shared between configure
e6cc62c6
VS
31951# scripts and configure runs, see configure's option --config-cache.
31952# It is not useful on other systems. If it contains results you don't
31953# want to keep, you may remove or edit it.
4f14bcd8 31954#
e6cc62c6
VS
31955# config.status only pays attention to the cache file if you give it
31956# the --recheck option to rerun configure.
4f14bcd8 31957#
e6cc62c6
VS
31958# `ac_cv_env_foo' variables (set or unset) will be overridden when
31959# loading this file, other *unset* `ac_cv_foo' will be assigned the
31960# following values.
31961
31962_ACEOF
31963
4f14bcd8
GD
31964# The following way of writing the cache mishandles newlines in values,
31965# but we know of no workaround that is simple, portable, and efficient.
31966# So, don't put newlines in cache variables' values.
31967# Ultrix sh set writes to stderr and can't be redirected directly,
31968# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
31969{
31970 (set) 2>&1 |
31971 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31972 *ac_space=\ *)
31973 # `set' does not quote correctly, so add quotes (double-quote
31974 # substitution turns \\\\ into \\, and sed turns \\ into \).
31975 sed -n \
32ddf007
VS
31976 "s/'/'\\\\''/g;
31977 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
31978 ;;
31979 *)
31980 # `set' quotes correctly as required by POSIX, so do not add quotes.
31981 sed -n \
32ddf007 31982 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
31983 ;;
31984 esac;
31985} |
31986 sed '
31987 t clear
31988 : clear
31989 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31990 t end
31991 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31992 : end' >>confcache
31993if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 31994 if test -w $cache_file; then
e6cc62c6
VS
31995 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31996 cat confcache >$cache_file
f6bcfd97 31997 else
4f14bcd8 31998 echo "not updating unwritable cache $cache_file"
f6bcfd97 31999 fi
4f14bcd8
GD
32000fi
32001rm -f confcache
f6bcfd97 32002
8284b0c5 32003
009fead0 32004CPP_MT_FLAG=
73d617c9 32005if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 32006
e6cc62c6 32007
7274f1c7 32008 THREADS_LINK=
009fead0 32009 THREADS_CFLAGS=
7274f1c7
RL
32010
32011 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 32012 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
32013 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
32014echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
32015 wxUSE_THREADS="no"
32016 fi
4f14bcd8 32017 fi
4f14bcd8 32018
7274f1c7 32019 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
32020
32021
009fead0
VZ
32022 THREAD_OPTS="-pthread"
32023 case "${host}" in
32024 *-*-solaris2* | *-*-sunos4* )
32025 if test "x$GCC" = "xyes"; then
126be6b4 32026 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
32027 else
32028 THREAD_OPTS="-mt $THREAD_OPTS"
32029 fi
32030 ;;
32031 *-*-freebsd*)
32032 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
32033 ;;
17234b26
MB
32034 *-*-darwin* | *-*-cygwin* )
32035 THREAD_OPTS=""
4101db81 32036 ;;
8f4a9a10 32037 *-*-aix*)
009fead0
VZ
32038 THREAD_OPTS="pthreads"
32039 ;;
4f5a7f74
VZ
32040 *-hp-hpux* )
32041 if test "x$GCC" != "xyes"; then
32042 THREAD_OPTS=""
32043 fi
89e3b3e4
VZ
32044 ;;
32045
32046 *-*-irix* )
32047 if test "x$GCC" = "xyes"; then
32048 THREAD_OPTS=""
32049 fi
32050 ;;
32051
32052 *-*-*UnixWare*)
32053 if test "x$GCC" != "xyes"; then
32054 THREAD_OPTS="-Ethread"
32055 fi
32056 ;;
009fead0 32057 esac
4f14bcd8 32058
02a1dfba 32059 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 32060
009fead0
VZ
32061 THREADS_OK=no
32062 for flag in $THREAD_OPTS; do
32063 case $flag in
32064 none)
e6cc62c6
VS
32065 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
32066echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 32067 ;;
698dcdb6 32068
009fead0 32069 -*)
e6cc62c6
VS
32070 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
32071echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
32072 THREADS_CFLAGS="$flag"
32073 ;;
698dcdb6 32074
009fead0 32075 *)
e6cc62c6
VS
32076 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
32077echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
32078 THREADS_LINK="-l$flag"
32079 ;;
32080 esac
10f2d63a 32081
009fead0
VZ
32082 save_LIBS="$LIBS"
32083 save_CFLAGS="$CFLAGS"
32084 LIBS="$THREADS_LINK $LIBS"
04727afd 32085 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 32086
e6cc62c6 32087 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32088/* confdefs.h. */
32089_ACEOF
32090cat confdefs.h >>conftest.$ac_ext
32091cat >>conftest.$ac_ext <<_ACEOF
32092/* end confdefs.h. */
009fead0 32093#include <pthread.h>
e6cc62c6
VS
32094int
32095main ()
32096{
009fead0 32097pthread_create(0,0,0,0);
e6cc62c6
VS
32098 ;
32099 return 0;
32100}
32101_ACEOF
32102rm -f conftest.$ac_objext conftest$ac_exeext
32103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32104 (eval $ac_link) 2>conftest.er1
e6cc62c6 32105 ac_status=$?
32ddf007
VS
32106 grep -v '^ *+' conftest.er1 >conftest.err
32107 rm -f conftest.er1
32108 cat conftest.err >&5
e6cc62c6
VS
32109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32110 (exit $ac_status); } &&
32ddf007
VS
32111 { ac_try='test -z "$ac_c_werror_flag"
32112 || test ! -s conftest.err'
32113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32114 (eval $ac_try) 2>&5
32115 ac_status=$?
32116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32117 (exit $ac_status); }; } &&
32118 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32120 (eval $ac_try) 2>&5
32121 ac_status=$?
32122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123 (exit $ac_status); }; }; then
009fead0 32124 THREADS_OK=yes
10f2d63a 32125else
e6cc62c6
VS
32126 echo "$as_me: failed program was:" >&5
32127sed 's/^/| /' conftest.$ac_ext >&5
32128
6232543b 32129fi
32ddf007
VS
32130rm -f conftest.err conftest.$ac_objext \
32131 conftest$ac_exeext conftest.$ac_ext
698dcdb6 32132
009fead0
VZ
32133 LIBS="$save_LIBS"
32134 CFLAGS="$save_CFLAGS"
d9b9876f 32135
e6cc62c6
VS
32136 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
32137echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
32138 if test "x$THREADS_OK" = "xyes"; then
32139 break;
32140 fi
d9b9876f 32141
009fead0
VZ
32142 THREADS_LINK=""
32143 THREADS_CFLAGS=""
32144 done
4f14bcd8 32145
009fead0
VZ
32146 if test "x$THREADS_OK" != "xyes"; then
32147 wxUSE_THREADS=no
e6cc62c6
VS
32148 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32149echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 32150 else
db82f09e
VZ
32151 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32152 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 32153
e6cc62c6
VS
32154 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32155echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
32156 flag=no
32157 case "${host}" in
2b5f62a0
VZ
32158 *-aix*)
32159 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32160 flag="-D_THREAD_SAFE"
32161 ;;
32162 *-freebsd*)
009fead0
VZ
32163 flag="-D_THREAD_SAFE"
32164 ;;
06313569
GD
32165 *-hp-hpux* )
32166 flag="-D_REENTRANT"
4f5a7f74
VZ
32167 if test "x$GCC" != "xyes"; then
32168 flag="$flag -D_RWSTD_MULTI_THREAD"
32169 fi
06313569 32170 ;;
009fead0
VZ
32171 *solaris* | alpha*-osf*)
32172 flag="-D_REENTRANT"
32173 ;;
32174 esac
e6cc62c6
VS
32175 echo "$as_me:$LINENO: result: ${flag}" >&5
32176echo "${ECHO_T}${flag}" >&6
009fead0 32177 if test "x$flag" != xno; then
04727afd 32178 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
32179 fi
32180
009fead0 32181 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 32182 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
32183 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32184 fi
32185 fi
4f14bcd8 32186 fi
4f14bcd8 32187
7274f1c7 32188 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
32189
32190for ac_func in thr_setconcurrency
4f14bcd8 32191do
e6cc62c6
VS
32192as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32193echo "$as_me:$LINENO: checking for $ac_func" >&5
32194echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32195if eval "test \"\${$as_ac_var+set}\" = set"; then
32196 echo $ECHO_N "(cached) $ECHO_C" >&6
32197else
32198 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32199/* confdefs.h. */
32200_ACEOF
32201cat confdefs.h >>conftest.$ac_ext
32202cat >>conftest.$ac_ext <<_ACEOF
32203/* end confdefs.h. */
32ddf007
VS
32204/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32206#define $ac_func innocuous_$ac_func
32207
4f14bcd8 32208/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32209 which can conflict with char $ac_func (); below.
32210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32211 <limits.h> exists even on freestanding compilers. */
32ddf007 32212
e6cc62c6
VS
32213#ifdef __STDC__
32214# include <limits.h>
32215#else
32216# include <assert.h>
32217#endif
32ddf007
VS
32218
32219#undef $ac_func
32220
4f14bcd8 32221/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32222#ifdef __cplusplus
32223extern "C"
32224{
32225#endif
4f14bcd8 32226/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32227 builtin and then its argument prototype would still apply. */
32228char $ac_func ();
4f14bcd8
GD
32229/* The GNU C library defines this for functions which it implements
32230 to always fail with ENOSYS. Some functions are actually named
32231 something starting with __ and the normal name is an alias. */
32232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32233choke me
32234#else
e6cc62c6
VS
32235char (*f) () = $ac_func;
32236#endif
32237#ifdef __cplusplus
32238}
4f14bcd8
GD
32239#endif
32240
e6cc62c6
VS
32241int
32242main ()
32243{
32244return f != $ac_func;
32245 ;
32246 return 0;
32247}
32248_ACEOF
32249rm -f conftest.$ac_objext conftest$ac_exeext
32250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32251 (eval $ac_link) 2>conftest.er1
e6cc62c6 32252 ac_status=$?
32ddf007
VS
32253 grep -v '^ *+' conftest.er1 >conftest.err
32254 rm -f conftest.er1
32255 cat conftest.err >&5
e6cc62c6
VS
32256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32257 (exit $ac_status); } &&
32ddf007
VS
32258 { ac_try='test -z "$ac_c_werror_flag"
32259 || test ! -s conftest.err'
32260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32261 (eval $ac_try) 2>&5
32262 ac_status=$?
32263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32264 (exit $ac_status); }; } &&
32265 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32267 (eval $ac_try) 2>&5
32268 ac_status=$?
32269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32270 (exit $ac_status); }; }; then
32271 eval "$as_ac_var=yes"
32272else
32273 echo "$as_me: failed program was:" >&5
32274sed 's/^/| /' conftest.$ac_ext >&5
32275
32276eval "$as_ac_var=no"
32277fi
32ddf007
VS
32278rm -f conftest.err conftest.$ac_objext \
32279 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32280fi
32281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32282echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32283if test `eval echo '${'$as_ac_var'}'` = yes; then
32284 cat >>confdefs.h <<_ACEOF
32285#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32286_ACEOF
698dcdb6 32287
10f2d63a 32288fi
4f14bcd8 32289done
10f2d63a 32290
8284b0c5 32291
e6cc62c6
VS
32292
32293for ac_header in sched.h
4f14bcd8 32294do
e6cc62c6
VS
32295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32296if eval "test \"\${$as_ac_Header+set}\" = set"; then
32297 echo "$as_me:$LINENO: checking for $ac_header" >&5
32298echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32299if eval "test \"\${$as_ac_Header+set}\" = set"; then
32300 echo $ECHO_N "(cached) $ECHO_C" >&6
32301fi
32302echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32303echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32304else
32305 # Is the header compilable?
32306echo "$as_me:$LINENO: checking $ac_header usability" >&5
32307echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32308cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32309/* confdefs.h. */
32310_ACEOF
32311cat confdefs.h >>conftest.$ac_ext
32312cat >>conftest.$ac_ext <<_ACEOF
32313/* end confdefs.h. */
32314$ac_includes_default
32315#include <$ac_header>
32316_ACEOF
32317rm -f conftest.$ac_objext
32318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 32319 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32320 ac_status=$?
32ddf007
VS
32321 grep -v '^ *+' conftest.er1 >conftest.err
32322 rm -f conftest.er1
32323 cat conftest.err >&5
e6cc62c6
VS
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); } &&
32ddf007
VS
32326 { ac_try='test -z "$ac_c_werror_flag"
32327 || test ! -s conftest.err'
32328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32329 (eval $ac_try) 2>&5
32330 ac_status=$?
32331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32332 (exit $ac_status); }; } &&
32333 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32335 (eval $ac_try) 2>&5
32336 ac_status=$?
32337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32338 (exit $ac_status); }; }; then
32339 ac_header_compiler=yes
32340else
32341 echo "$as_me: failed program was:" >&5
32342sed 's/^/| /' conftest.$ac_ext >&5
32343
32344ac_header_compiler=no
32345fi
32ddf007 32346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
32347echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32348echo "${ECHO_T}$ac_header_compiler" >&6
32349
32350# Is the header present?
32351echo "$as_me:$LINENO: checking $ac_header presence" >&5
32352echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32353cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32354/* confdefs.h. */
32355_ACEOF
32356cat confdefs.h >>conftest.$ac_ext
32357cat >>conftest.$ac_ext <<_ACEOF
32358/* end confdefs.h. */
32359#include <$ac_header>
32360_ACEOF
32361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32363 ac_status=$?
32364 grep -v '^ *+' conftest.er1 >conftest.err
32365 rm -f conftest.er1
32366 cat conftest.err >&5
32367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32368 (exit $ac_status); } >/dev/null; then
32369 if test -s conftest.err; then
32370 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 32371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
32372 else
32373 ac_cpp_err=
32374 fi
32375else
32376 ac_cpp_err=yes
32377fi
32378if test -z "$ac_cpp_err"; then
32379 ac_header_preproc=yes
32380else
32381 echo "$as_me: failed program was:" >&5
32382sed 's/^/| /' conftest.$ac_ext >&5
32383
32384 ac_header_preproc=no
32385fi
32386rm -f conftest.err conftest.$ac_ext
32387echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32388echo "${ECHO_T}$ac_header_preproc" >&6
32389
32390# So? What about this header?
32ddf007
VS
32391case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32392 yes:no: )
e6cc62c6
VS
32393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32394echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
32395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32396echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32397 ac_header_preproc=yes
e6cc62c6 32398 ;;
32ddf007 32399 no:yes:* )
e6cc62c6
VS
32400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32401echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
32402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32403echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32405echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32407echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
32408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32409echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
32410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32411echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
32412 (
32413 cat <<\_ASBOX
32ddf007
VS
32414## ----------------------------------------- ##
32415## Report this to wx-dev@lists.wxwindows.org ##
32416## ----------------------------------------- ##
e6cc62c6
VS
32417_ASBOX
32418 ) |
32419 sed "s/^/$as_me: WARNING: /" >&2
32420 ;;
32421esac
32422echo "$as_me:$LINENO: checking for $ac_header" >&5
32423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32424if eval "test \"\${$as_ac_Header+set}\" = set"; then
32425 echo $ECHO_N "(cached) $ECHO_C" >&6
32426else
32ddf007 32427 eval "$as_ac_Header=\$ac_header_preproc"
13111b2a 32428fi
e6cc62c6
VS
32429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32431
10f2d63a 32432fi
e6cc62c6
VS
32433if test `eval echo '${'$as_ac_Header'}'` = yes; then
32434 cat >>confdefs.h <<_ACEOF
32435#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32436_ACEOF
32437
f6bcfd97 32438fi
e6cc62c6 32439
4f14bcd8 32440done
f6bcfd97 32441
009fead0 32442 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
32443 echo "$as_me:$LINENO: checking for sched_yield" >&5
32444echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32445if test "${ac_cv_func_sched_yield+set}" = set; then
32446 echo $ECHO_N "(cached) $ECHO_C" >&6
32447else
32448 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32449/* confdefs.h. */
32450_ACEOF
32451cat confdefs.h >>conftest.$ac_ext
32452cat >>conftest.$ac_ext <<_ACEOF
32453/* end confdefs.h. */
32ddf007
VS
32454/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32456#define sched_yield innocuous_sched_yield
32457
009fead0 32458/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32459 which can conflict with char sched_yield (); below.
32460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32461 <limits.h> exists even on freestanding compilers. */
32ddf007 32462
e6cc62c6
VS
32463#ifdef __STDC__
32464# include <limits.h>
32465#else
32466# include <assert.h>
32467#endif
32ddf007
VS
32468
32469#undef sched_yield
32470
4f14bcd8 32471/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32472#ifdef __cplusplus
32473extern "C"
32474{
32475#endif
4f14bcd8 32476/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32477 builtin and then its argument prototype would still apply. */
32478char sched_yield ();
009fead0
VZ
32479/* The GNU C library defines this for functions which it implements
32480 to always fail with ENOSYS. Some functions are actually named
32481 something starting with __ and the normal name is an alias. */
32482#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32483choke me
32484#else
e6cc62c6
VS
32485char (*f) () = sched_yield;
32486#endif
32487#ifdef __cplusplus
32488}
009fead0
VZ
32489#endif
32490
e6cc62c6
VS
32491int
32492main ()
32493{
32494return f != sched_yield;
32495 ;
32496 return 0;
32497}
32498_ACEOF
32499rm -f conftest.$ac_objext conftest$ac_exeext
32500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32501 (eval $ac_link) 2>conftest.er1
e6cc62c6 32502 ac_status=$?
32ddf007
VS
32503 grep -v '^ *+' conftest.er1 >conftest.err
32504 rm -f conftest.er1
32505 cat conftest.err >&5
e6cc62c6
VS
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); } &&
32ddf007
VS
32508 { ac_try='test -z "$ac_c_werror_flag"
32509 || test ! -s conftest.err'
32510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32511 (eval $ac_try) 2>&5
32512 ac_status=$?
32513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); }; } &&
32515 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32517 (eval $ac_try) 2>&5
32518 ac_status=$?
32519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32520 (exit $ac_status); }; }; then
32521 ac_cv_func_sched_yield=yes
32522else
32523 echo "$as_me: failed program was:" >&5
32524sed 's/^/| /' conftest.$ac_ext >&5
32525
32526ac_cv_func_sched_yield=no
32527fi
32ddf007
VS
32528rm -f conftest.err conftest.$ac_objext \
32529 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32530fi
32531echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32532echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32533if test $ac_cv_func_sched_yield = yes; then
32534 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32535#define HAVE_SCHED_YIELD 1
e6cc62c6 32536_ACEOF
10f2d63a 32537
4f14bcd8 32538else
009fead0 32539
e6cc62c6
VS
32540 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32541echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32542if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32543 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 32544else
e6cc62c6 32545 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32546LIBS="-lposix4 $LIBS"
e6cc62c6 32547cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32548/* confdefs.h. */
32549_ACEOF
32550cat confdefs.h >>conftest.$ac_ext
32551cat >>conftest.$ac_ext <<_ACEOF
32552/* end confdefs.h. */
32553
4f14bcd8 32554/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32555#ifdef __cplusplus
32556extern "C"
32557#endif
4f14bcd8 32558/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32559 builtin and then its argument prototype would still apply. */
32560char sched_yield ();
32561int
32562main ()
32563{
32564sched_yield ();
32565 ;
32566 return 0;
32567}
32568_ACEOF
32569rm -f conftest.$ac_objext conftest$ac_exeext
32570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32571 (eval $ac_link) 2>conftest.er1
e6cc62c6 32572 ac_status=$?
32ddf007
VS
32573 grep -v '^ *+' conftest.er1 >conftest.err
32574 rm -f conftest.er1
32575 cat conftest.err >&5
e6cc62c6
VS
32576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32577 (exit $ac_status); } &&
32ddf007
VS
32578 { ac_try='test -z "$ac_c_werror_flag"
32579 || test ! -s conftest.err'
32580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32581 (eval $ac_try) 2>&5
32582 ac_status=$?
32583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32584 (exit $ac_status); }; } &&
32585 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32587 (eval $ac_try) 2>&5
32588 ac_status=$?
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); }; }; then
32591 ac_cv_lib_posix4_sched_yield=yes
32592else
32593 echo "$as_me: failed program was:" >&5
32594sed 's/^/| /' conftest.$ac_ext >&5
32595
32596ac_cv_lib_posix4_sched_yield=no
32597fi
32ddf007
VS
32598rm -f conftest.err conftest.$ac_objext \
32599 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32600LIBS=$ac_check_lib_save_LIBS
32601fi
32602echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32603echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32604if test $ac_cv_lib_posix4_sched_yield = yes; then
32605 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32606#define HAVE_SCHED_YIELD 1
e6cc62c6 32607_ACEOF
3d63bc3a 32608 POSIX4_LINK=" -lposix4"
4f14bcd8 32609else
e6cc62c6
VS
32610 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32611echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32612
54276ccf
VZ
32613fi
32614
e6cc62c6
VS
32615
32616
4f14bcd8 32617fi
698dcdb6 32618
009fead0 32619 fi
10f2d63a 32620
7274f1c7 32621 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
32622 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32623echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32624if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32625 echo $ECHO_N "(cached) $ECHO_C" >&6
32626else
32627 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32628/* confdefs.h. */
32629_ACEOF
32630cat confdefs.h >>conftest.$ac_ext
32631cat >>conftest.$ac_ext <<_ACEOF
32632/* end confdefs.h. */
32ddf007
VS
32633/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32635#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32636
009fead0 32637/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32638 which can conflict with char pthread_attr_getschedpolicy (); below.
32639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32640 <limits.h> exists even on freestanding compilers. */
32ddf007 32641
e6cc62c6
VS
32642#ifdef __STDC__
32643# include <limits.h>
32644#else
32645# include <assert.h>
32646#endif
32ddf007
VS
32647
32648#undef pthread_attr_getschedpolicy
32649
4f14bcd8 32650/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32651#ifdef __cplusplus
32652extern "C"
32653{
32654#endif
4f14bcd8 32655/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32656 builtin and then its argument prototype would still apply. */
32657char pthread_attr_getschedpolicy ();
009fead0
VZ
32658/* The GNU C library defines this for functions which it implements
32659 to always fail with ENOSYS. Some functions are actually named
32660 something starting with __ and the normal name is an alias. */
32661#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32662choke me
32663#else
e6cc62c6
VS
32664char (*f) () = pthread_attr_getschedpolicy;
32665#endif
32666#ifdef __cplusplus
32667}
009fead0
VZ
32668#endif
32669
e6cc62c6
VS
32670int
32671main ()
32672{
32673return f != pthread_attr_getschedpolicy;
32674 ;
32675 return 0;
32676}
32677_ACEOF
32678rm -f conftest.$ac_objext conftest$ac_exeext
32679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32680 (eval $ac_link) 2>conftest.er1
e6cc62c6 32681 ac_status=$?
32ddf007
VS
32682 grep -v '^ *+' conftest.er1 >conftest.err
32683 rm -f conftest.er1
32684 cat conftest.err >&5
e6cc62c6
VS
32685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32686 (exit $ac_status); } &&
32ddf007
VS
32687 { ac_try='test -z "$ac_c_werror_flag"
32688 || test ! -s conftest.err'
32689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32690 (eval $ac_try) 2>&5
32691 ac_status=$?
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); }; } &&
32694 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32696 (eval $ac_try) 2>&5
32697 ac_status=$?
32698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); }; }; then
32700 ac_cv_func_pthread_attr_getschedpolicy=yes
32701else
32702 echo "$as_me: failed program was:" >&5
32703sed 's/^/| /' conftest.$ac_ext >&5
32704
32705ac_cv_func_pthread_attr_getschedpolicy=no
32706fi
32ddf007
VS
32707rm -f conftest.err conftest.$ac_objext \
32708 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32709fi
32710echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32711echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32712if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32713 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32714echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32715if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32716 echo $ECHO_N "(cached) $ECHO_C" >&6
32717else
32718 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32719/* confdefs.h. */
32720_ACEOF
32721cat confdefs.h >>conftest.$ac_ext
32722cat >>conftest.$ac_ext <<_ACEOF
32723/* end confdefs.h. */
32ddf007
VS
32724/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32726#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32727
a0b9e27f 32728/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32729 which can conflict with char pthread_attr_setschedparam (); below.
32730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32731 <limits.h> exists even on freestanding compilers. */
32ddf007 32732
e6cc62c6
VS
32733#ifdef __STDC__
32734# include <limits.h>
32735#else
32736# include <assert.h>
32737#endif
32ddf007
VS
32738
32739#undef pthread_attr_setschedparam
32740
422107f9 32741/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32742#ifdef __cplusplus
32743extern "C"
32744{
32745#endif
422107f9 32746/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32747 builtin and then its argument prototype would still apply. */
32748char pthread_attr_setschedparam ();
009fead0
VZ
32749/* The GNU C library defines this for functions which it implements
32750 to always fail with ENOSYS. Some functions are actually named
32751 something starting with __ and the normal name is an alias. */
32752#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32753choke me
32754#else
e6cc62c6
VS
32755char (*f) () = pthread_attr_setschedparam;
32756#endif
32757#ifdef __cplusplus
32758}
009fead0
VZ
32759#endif
32760
e6cc62c6
VS
32761int
32762main ()
32763{
32764return f != pthread_attr_setschedparam;
32765 ;
32766 return 0;
32767}
32768_ACEOF
32769rm -f conftest.$ac_objext conftest$ac_exeext
32770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32771 (eval $ac_link) 2>conftest.er1
e6cc62c6 32772 ac_status=$?
32ddf007
VS
32773 grep -v '^ *+' conftest.er1 >conftest.err
32774 rm -f conftest.er1
32775 cat conftest.err >&5
e6cc62c6
VS
32776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32777 (exit $ac_status); } &&
32ddf007
VS
32778 { ac_try='test -z "$ac_c_werror_flag"
32779 || test ! -s conftest.err'
32780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32781 (eval $ac_try) 2>&5
32782 ac_status=$?
32783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32784 (exit $ac_status); }; } &&
32785 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32787 (eval $ac_try) 2>&5
32788 ac_status=$?
32789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32790 (exit $ac_status); }; }; then
32791 ac_cv_func_pthread_attr_setschedparam=yes
32792else
32793 echo "$as_me: failed program was:" >&5
32794sed 's/^/| /' conftest.$ac_ext >&5
32795
32796ac_cv_func_pthread_attr_setschedparam=no
32797fi
32ddf007
VS
32798rm -f conftest.err conftest.$ac_objext \
32799 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32800fi
32801echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32802echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32803if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32804 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32805echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32806if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32807 echo $ECHO_N "(cached) $ECHO_C" >&6
32808else
32809 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32810/* confdefs.h. */
32811_ACEOF
32812cat confdefs.h >>conftest.$ac_ext
32813cat >>conftest.$ac_ext <<_ACEOF
32814/* end confdefs.h. */
32ddf007
VS
32815/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32817#define sched_get_priority_max innocuous_sched_get_priority_max
32818
ef33c576 32819/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32820 which can conflict with char sched_get_priority_max (); below.
32821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32822 <limits.h> exists even on freestanding compilers. */
32ddf007 32823
e6cc62c6
VS
32824#ifdef __STDC__
32825# include <limits.h>
32826#else
32827# include <assert.h>
32828#endif
32ddf007
VS
32829
32830#undef sched_get_priority_max
32831
4f14bcd8 32832/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32833#ifdef __cplusplus
32834extern "C"
32835{
32836#endif
4f14bcd8 32837/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32838 builtin and then its argument prototype would still apply. */
32839char sched_get_priority_max ();
009fead0
VZ
32840/* The GNU C library defines this for functions which it implements
32841 to always fail with ENOSYS. Some functions are actually named
32842 something starting with __ and the normal name is an alias. */
32843#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32844choke me
32845#else
e6cc62c6
VS
32846char (*f) () = sched_get_priority_max;
32847#endif
32848#ifdef __cplusplus
32849}
009fead0
VZ
32850#endif
32851
e6cc62c6
VS
32852int
32853main ()
32854{
32855return f != sched_get_priority_max;
32856 ;
32857 return 0;
32858}
32859_ACEOF
32860rm -f conftest.$ac_objext conftest$ac_exeext
32861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32862 (eval $ac_link) 2>conftest.er1
e6cc62c6 32863 ac_status=$?
32ddf007
VS
32864 grep -v '^ *+' conftest.er1 >conftest.err
32865 rm -f conftest.er1
32866 cat conftest.err >&5
e6cc62c6
VS
32867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32868 (exit $ac_status); } &&
32ddf007
VS
32869 { ac_try='test -z "$ac_c_werror_flag"
32870 || test ! -s conftest.err'
32871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32872 (eval $ac_try) 2>&5
32873 ac_status=$?
32874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32875 (exit $ac_status); }; } &&
32876 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32878 (eval $ac_try) 2>&5
32879 ac_status=$?
32880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32881 (exit $ac_status); }; }; then
32882 ac_cv_func_sched_get_priority_max=yes
32883else
32884 echo "$as_me: failed program was:" >&5
32885sed 's/^/| /' conftest.$ac_ext >&5
32886
32887ac_cv_func_sched_get_priority_max=no
32888fi
32ddf007
VS
32889rm -f conftest.err conftest.$ac_objext \
32890 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32891fi
32892echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32893echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32894if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
32895 HAVE_PRIOR_FUNCS=1
32896else
e6cc62c6
VS
32897 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32898echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32899if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32900 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 32901else
e6cc62c6 32902 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32903LIBS="-lposix4 $LIBS"
e6cc62c6 32904cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32905/* confdefs.h. */
32906_ACEOF
32907cat confdefs.h >>conftest.$ac_ext
32908cat >>conftest.$ac_ext <<_ACEOF
32909/* end confdefs.h. */
32910
422107f9 32911/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32912#ifdef __cplusplus
32913extern "C"
32914#endif
422107f9 32915/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32916 builtin and then its argument prototype would still apply. */
32917char sched_get_priority_max ();
32918int
32919main ()
32920{
32921sched_get_priority_max ();
32922 ;
32923 return 0;
32924}
32925_ACEOF
32926rm -f conftest.$ac_objext conftest$ac_exeext
32927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 32928 (eval $ac_link) 2>conftest.er1
e6cc62c6 32929 ac_status=$?
32ddf007
VS
32930 grep -v '^ *+' conftest.er1 >conftest.err
32931 rm -f conftest.er1
32932 cat conftest.err >&5
e6cc62c6
VS
32933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934 (exit $ac_status); } &&
32ddf007
VS
32935 { ac_try='test -z "$ac_c_werror_flag"
32936 || test ! -s conftest.err'
32937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32938 (eval $ac_try) 2>&5
32939 ac_status=$?
32940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32941 (exit $ac_status); }; } &&
32942 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32944 (eval $ac_try) 2>&5
32945 ac_status=$?
32946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32947 (exit $ac_status); }; }; then
32948 ac_cv_lib_posix4_sched_get_priority_max=yes
32949else
32950 echo "$as_me: failed program was:" >&5
32951sed 's/^/| /' conftest.$ac_ext >&5
32952
32953ac_cv_lib_posix4_sched_get_priority_max=no
32954fi
32ddf007
VS
32955rm -f conftest.err conftest.$ac_objext \
32956 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32957LIBS=$ac_check_lib_save_LIBS
32958fi
32959echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32960echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32961if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 32962
7274f1c7
RL
32963 HAVE_PRIOR_FUNCS=1
32964 POSIX4_LINK=" -lposix4"
e6cc62c6 32965
4f14bcd8 32966fi
463abc64 32967
e6cc62c6 32968
328a083c 32969fi
463abc64 32970
e6cc62c6 32971
7b4a847f 32972fi
579d8138 32973
e6cc62c6 32974
5c6fa7d2 32975fi
52127426 32976
8284b0c5 32977
7274f1c7 32978 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 32979 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32980#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 32981_ACEOF
463abc64 32982
7274f1c7 32983 else
e6cc62c6
VS
32984 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32985echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 32986 fi
463abc64 32987
e6cc62c6
VS
32988 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32989echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32990if test "${ac_cv_func_pthread_cancel+set}" = set; then
32991 echo $ECHO_N "(cached) $ECHO_C" >&6
32992else
32993 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32994/* confdefs.h. */
32995_ACEOF
32996cat confdefs.h >>conftest.$ac_ext
32997cat >>conftest.$ac_ext <<_ACEOF
32998/* end confdefs.h. */
32ddf007
VS
32999/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
33000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33001#define pthread_cancel innocuous_pthread_cancel
33002
009fead0 33003/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33004 which can conflict with char pthread_cancel (); below.
33005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33006 <limits.h> exists even on freestanding compilers. */
32ddf007 33007
e6cc62c6
VS
33008#ifdef __STDC__
33009# include <limits.h>
33010#else
33011# include <assert.h>
33012#endif
32ddf007
VS
33013
33014#undef pthread_cancel
33015
422107f9 33016/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33017#ifdef __cplusplus
33018extern "C"
33019{
33020#endif
422107f9 33021/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33022 builtin and then its argument prototype would still apply. */
33023char pthread_cancel ();
009fead0
VZ
33024/* The GNU C library defines this for functions which it implements
33025 to always fail with ENOSYS. Some functions are actually named
33026 something starting with __ and the normal name is an alias. */
33027#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
33028choke me
33029#else
e6cc62c6
VS
33030char (*f) () = pthread_cancel;
33031#endif
33032#ifdef __cplusplus
33033}
009fead0
VZ
33034#endif
33035
e6cc62c6
VS
33036int
33037main ()
33038{
33039return f != pthread_cancel;
33040 ;
33041 return 0;
33042}
33043_ACEOF
33044rm -f conftest.$ac_objext conftest$ac_exeext
33045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33046 (eval $ac_link) 2>conftest.er1
e6cc62c6 33047 ac_status=$?
32ddf007
VS
33048 grep -v '^ *+' conftest.er1 >conftest.err
33049 rm -f conftest.er1
33050 cat conftest.err >&5
e6cc62c6
VS
33051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33052 (exit $ac_status); } &&
32ddf007
VS
33053 { ac_try='test -z "$ac_c_werror_flag"
33054 || test ! -s conftest.err'
33055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33056 (eval $ac_try) 2>&5
33057 ac_status=$?
33058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33059 (exit $ac_status); }; } &&
33060 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33062 (eval $ac_try) 2>&5
33063 ac_status=$?
33064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065 (exit $ac_status); }; }; then
33066 ac_cv_func_pthread_cancel=yes
33067else
33068 echo "$as_me: failed program was:" >&5
33069sed 's/^/| /' conftest.$ac_ext >&5
33070
33071ac_cv_func_pthread_cancel=no
33072fi
32ddf007
VS
33073rm -f conftest.err conftest.$ac_objext \
33074 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33075fi
33076echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
33077echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
33078if test $ac_cv_func_pthread_cancel = yes; then
33079 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33080#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 33081_ACEOF
4f14bcd8 33082
698dcdb6 33083else
e6cc62c6
VS
33084 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
33085echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
33086fi
33087
5c6fa7d2 33088
4f14bcd8 33089
e6cc62c6
VS
33090
33091 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
33092echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
33093if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
33094 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 33095else
e6cc62c6
VS
33096
33097 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33098/* confdefs.h. */
33099_ACEOF
33100cat confdefs.h >>conftest.$ac_ext
33101cat >>conftest.$ac_ext <<_ACEOF
33102/* end confdefs.h. */
4f14bcd8 33103#include <pthread.h>
e6cc62c6
VS
33104int
33105main ()
33106{
4f14bcd8 33107
7274f1c7
RL
33108 pthread_mutexattr_t attr;
33109 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
33110
33111 ;
33112 return 0;
33113}
33114_ACEOF
33115rm -f conftest.$ac_objext
33116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 33117 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33118 ac_status=$?
32ddf007
VS
33119 grep -v '^ *+' conftest.er1 >conftest.err
33120 rm -f conftest.er1
33121 cat conftest.err >&5
e6cc62c6
VS
33122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33123 (exit $ac_status); } &&
32ddf007
VS
33124 { ac_try='test -z "$ac_c_werror_flag"
33125 || test ! -s conftest.err'
33126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33127 (eval $ac_try) 2>&5
33128 ac_status=$?
33129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33130 (exit $ac_status); }; } &&
33131 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33133 (eval $ac_try) 2>&5
33134 ac_status=$?
33135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33136 (exit $ac_status); }; }; then
33137
7274f1c7 33138 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 33139
3fed1840 33140else
e6cc62c6
VS
33141 echo "$as_me: failed program was:" >&5
33142sed 's/^/| /' conftest.$ac_ext >&5
33143
33144
7274f1c7 33145 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
33146
33147
247f5006 33148fi
32ddf007 33149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 33150
e6cc62c6
VS
33151fi
33152echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33153echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 33154
7274f1c7 33155 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 33156 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33157#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 33158_ACEOF
4f14bcd8 33159
7274f1c7 33160 else
e6cc62c6
VS
33161 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33162echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33163if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33164 echo $ECHO_N "(cached) $ECHO_C" >&6
33165else
33166
33167 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33168/* confdefs.h. */
33169_ACEOF
33170cat confdefs.h >>conftest.$ac_ext
33171cat >>conftest.$ac_ext <<_ACEOF
33172/* end confdefs.h. */
4f14bcd8 33173#include <pthread.h>
e6cc62c6
VS
33174int
33175main ()
33176{
4f14bcd8 33177
7274f1c7 33178 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
33179
33180 ;
33181 return 0;
33182}
33183_ACEOF
33184rm -f conftest.$ac_objext
33185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 33186 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33187 ac_status=$?
32ddf007
VS
33188 grep -v '^ *+' conftest.er1 >conftest.err
33189 rm -f conftest.er1
33190 cat conftest.err >&5
e6cc62c6
VS
33191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33192 (exit $ac_status); } &&
32ddf007
VS
33193 { ac_try='test -z "$ac_c_werror_flag"
33194 || test ! -s conftest.err'
33195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33196 (eval $ac_try) 2>&5
33197 ac_status=$?
33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199 (exit $ac_status); }; } &&
33200 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33202 (eval $ac_try) 2>&5
33203 ac_status=$?
33204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205 (exit $ac_status); }; }; then
33206
7274f1c7 33207 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 33208
698dcdb6 33209else
e6cc62c6
VS
33210 echo "$as_me: failed program was:" >&5
33211sed 's/^/| /' conftest.$ac_ext >&5
33212
33213
7274f1c7 33214 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
33215
33216
247f5006 33217fi
32ddf007 33218rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 33219
e6cc62c6
VS
33220fi
33221echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33222echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 33223 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 33224 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33225#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 33226_ACEOF
3fed1840 33227
7274f1c7 33228 else
e6cc62c6
VS
33229 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33230echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
33231 fi
33232 fi
7274f1c7 33233 fi
3fed1840 33234
a0b9e27f
MB
33235else
33236 if test "$wxUSE_THREADS" = "yes" ; then
33237 case "${host}" in
33238 *-*-mingw32* )
e6cc62c6
VS
33239 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33240echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33241if test "${wx_cv_cflags_mthread+set}" = set; then
33242 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 33243else
e6cc62c6 33244
ca8e52b3
VZ
33245 CFLAGS_OLD="$CFLAGS"
33246 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 33247 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33248/* confdefs.h. */
33249_ACEOF
33250cat confdefs.h >>conftest.$ac_ext
33251cat >>conftest.$ac_ext <<_ACEOF
33252/* end confdefs.h. */
33253
33254int
33255main ()
33256{
ca8e52b3 33257
e6cc62c6
VS
33258 ;
33259 return 0;
33260}
33261_ACEOF
33262rm -f conftest.$ac_objext
33263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 33264 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33265 ac_status=$?
32ddf007
VS
33266 grep -v '^ *+' conftest.er1 >conftest.err
33267 rm -f conftest.er1
33268 cat conftest.err >&5
e6cc62c6
VS
33269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33270 (exit $ac_status); } &&
32ddf007
VS
33271 { ac_try='test -z "$ac_c_werror_flag"
33272 || test ! -s conftest.err'
33273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33274 (eval $ac_try) 2>&5
33275 ac_status=$?
33276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33277 (exit $ac_status); }; } &&
33278 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33280 (eval $ac_try) 2>&5
33281 ac_status=$?
33282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33283 (exit $ac_status); }; }; then
ca8e52b3
VZ
33284 wx_cv_cflags_mthread=yes
33285else
e6cc62c6
VS
33286 echo "$as_me: failed program was:" >&5
33287sed 's/^/| /' conftest.$ac_ext >&5
33288
33289wx_cv_cflags_mthread=no
33290
ca8e52b3 33291fi
32ddf007 33292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 33293
ca8e52b3 33294
e6cc62c6
VS
33295fi
33296echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33297echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
33298
33299 if test "$wx_cv_cflags_mthread" = "yes"; then
33300 CXXFLAGS="$CXXFLAGS -mthreads"
33301 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33302 LDFLAGS="$LDFLAGS -mthreads"
33303 else
33304 CFLAGS="$CFLAGS_OLD"
33305 fi
a0b9e27f 33306 ;;
73d617c9
MB
33307 *-pc-os2*emx )
33308 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33309 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33310 LDFLAGS="$LDFLAGS -Zmt"
33311 ;;
a0b9e27f
MB
33312 esac
33313 fi
4f14bcd8
GD
33314fi
33315
33316if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 33317 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33318#define wxUSE_THREADS 1
e6cc62c6 33319_ACEOF
7b6058cd 33320
8284b0c5 33321
4f14bcd8 33322 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 33323else
4f14bcd8 33324 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
33325 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33326echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
33327 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33328 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
33329 echo "$as_me:$LINENO: result: yes" >&5
33330echo "${ECHO_T}yes" >&6
4f14bcd8 33331 else
e6cc62c6
VS
33332 echo "$as_me:$LINENO: result: no" >&5
33333echo "${ECHO_T}no" >&6
4f14bcd8
GD
33334 fi
33335 fi
33336fi
33337
33338if test "$WXGTK20" = 1 ; then
e6cc62c6 33339 cat >>confdefs.h <<_ACEOF
4f14bcd8 33340#define __WXGTK20__ $WXGTK20
e6cc62c6 33341_ACEOF
4f14bcd8
GD
33342
33343 WXGTK12=1
10f2d63a 33344fi
4f14bcd8
GD
33345
33346if test "$WXGTK12" = 1 ; then
e6cc62c6 33347 cat >>confdefs.h <<_ACEOF
4f14bcd8 33348#define __WXGTK12__ $WXGTK12
e6cc62c6 33349_ACEOF
4f14bcd8 33350
10f2d63a 33351fi
698dcdb6 33352
4f14bcd8 33353if test "$WXGTK127" = 1 ; then
e6cc62c6 33354 cat >>confdefs.h <<_ACEOF
4f14bcd8 33355#define __WXGTK127__ $WXGTK127
e6cc62c6 33356_ACEOF
4f14bcd8 33357
698dcdb6 33358fi
10f2d63a 33359
0f87e84c
RR
33360if test "$WXGPE" = 1 ; then
33361 cat >>confdefs.h <<_ACEOF
33362#define __WXGPE__ $WXGPE
33363_ACEOF
33364
33365fi
33366
4f14bcd8
GD
33367WXDEBUG=
33368
33369if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33370 WXDEBUG="-g"
33371 wxUSE_OPTIMISE=no
698dcdb6 33372fi
4f14bcd8
GD
33373
33374if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33375 wxUSE_DEBUG_INFO=yes
33376 WXDEBUG="-ggdb"
10f2d63a
VZ
33377fi
33378
4f14bcd8 33379if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 33380 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33381#define WXDEBUG 1
e6cc62c6 33382_ACEOF
4f14bcd8
GD
33383
33384 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 33385else
4f14bcd8
GD
33386 if test "$wxUSE_GTK" = 1 ; then
33387 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33388 fi
33389fi
33390
33391if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 33392 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33393#define wxUSE_MEMORY_TRACING 1
e6cc62c6 33394_ACEOF
4f14bcd8 33395
e6cc62c6 33396 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33397#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 33398_ACEOF
4f14bcd8 33399
e6cc62c6 33400 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33401#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 33402_ACEOF
4f14bcd8
GD
33403
33404 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33405fi
33406
33407if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 33408 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
33409fi
33410
33411PROFILE=
33412if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 33413 PROFILE=" -pg"
10f2d63a
VZ
33414fi
33415
009fead0
VZ
33416CODE_GEN_FLAGS=
33417CODE_GEN_FLAGS_CXX=
88e30f2b 33418if test "$GCC" = "yes" ; then
4f14bcd8
GD
33419 if test "$wxUSE_NO_RTTI" = "yes" ; then
33420 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 33421 fi
4f14bcd8
GD
33422 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33423 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33424 fi
33425 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33426 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33427 fi
1d1b75ac 33428
2b5f62a0 33429 case "${host}" in
1d1b75ac
VZ
33430 powerpc*-*-aix* )
33431 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33432 ;;
2b5f62a0
VZ
33433 *-hppa* )
33434 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33435 ;;
1d1b75ac 33436 esac
4f14bcd8
GD
33437fi
33438
af7b5345 33439OPTIMISE=
4f14bcd8 33440if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
33441 if test "$GCC" = yes ; then
33442 OPTIMISE="-O0"
33443 fi
4f14bcd8
GD
33444else
33445 if test "$GCC" = yes ; then
33446 OPTIMISE="-O2"
af7b5345
VZ
33447
33448 case "${host}" in
4f14bcd8
GD
33449 i586-*-*|i686-*-* )
33450 OPTIMISE="${OPTIMISE} "
33451 ;;
33452 esac
33453 else
33454 OPTIMISE="-O"
33455 fi
33456fi
33457
8d90d2f2 33458
65d8ef1e 33459if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 33460 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33461#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 33462_ACEOF
4f14bcd8 33463
8d90d2f2
VZ
33464
33465 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
33466fi
33467
65d8ef1e 33468if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 33469 cat >>confdefs.h <<\_ACEOF
65d8ef1e 33470#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 33471_ACEOF
65d8ef1e
VS
33472
33473fi
33474
8284b0c5 33475
10f2d63a 33476if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 33477 cat >>confdefs.h <<\_ACEOF
10f2d63a 33478#define wxUSE_GUI 1
e6cc62c6 33479_ACEOF
10f2d63a 33480
8284b0c5 33481
10f2d63a 33482 else
e6cc62c6 33483 cat >>confdefs.h <<\_ACEOF
10f2d63a 33484#define wxUSE_NOGUI 1
e6cc62c6 33485_ACEOF
10f2d63a
VZ
33486
33487fi
33488
8284b0c5 33489
10f2d63a 33490if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 33491 cat >>confdefs.h <<\_ACEOF
10f2d63a 33492#define wxUSE_UNIX 1
e6cc62c6 33493_ACEOF
10f2d63a
VZ
33494
33495fi
33496
8284b0c5 33497
f93ca9fd 33498if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
5c6fa7d2 33499
f93ca9fd
VS
33500 HAVE_DL_FUNCS=0
33501 HAVE_SHL_FUNCS=0
33502 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33503 if test "$USE_DARWIN" = 1; then
33504 HAVE_DL_FUNCS=1
33505 else
e6cc62c6 33506
f93ca9fd 33507for ac_func in dlopen
83307f33 33508do
e6cc62c6
VS
33509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33510echo "$as_me:$LINENO: checking for $ac_func" >&5
33511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33512if eval "test \"\${$as_ac_var+set}\" = set"; then
33513 echo $ECHO_N "(cached) $ECHO_C" >&6
33514else
33515 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33516/* confdefs.h. */
33517_ACEOF
33518cat confdefs.h >>conftest.$ac_ext
33519cat >>conftest.$ac_ext <<_ACEOF
33520/* end confdefs.h. */
32ddf007
VS
33521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33523#define $ac_func innocuous_$ac_func
33524
83307f33 33525/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33526 which can conflict with char $ac_func (); below.
33527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33528 <limits.h> exists even on freestanding compilers. */
32ddf007 33529
e6cc62c6
VS
33530#ifdef __STDC__
33531# include <limits.h>
33532#else
33533# include <assert.h>
33534#endif
32ddf007
VS
33535
33536#undef $ac_func
33537
83307f33 33538/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33539#ifdef __cplusplus
33540extern "C"
33541{
33542#endif
83307f33 33543/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33544 builtin and then its argument prototype would still apply. */
33545char $ac_func ();
83307f33
VZ
33546/* The GNU C library defines this for functions which it implements
33547 to always fail with ENOSYS. Some functions are actually named
33548 something starting with __ and the normal name is an alias. */
33549#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33550choke me
33551#else
e6cc62c6
VS
33552char (*f) () = $ac_func;
33553#endif
33554#ifdef __cplusplus
33555}
83307f33
VZ
33556#endif
33557
e6cc62c6
VS
33558int
33559main ()
33560{
33561return f != $ac_func;
33562 ;
33563 return 0;
33564}
33565_ACEOF
33566rm -f conftest.$ac_objext conftest$ac_exeext
33567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33568 (eval $ac_link) 2>conftest.er1
e6cc62c6 33569 ac_status=$?
32ddf007
VS
33570 grep -v '^ *+' conftest.er1 >conftest.err
33571 rm -f conftest.er1
33572 cat conftest.err >&5
e6cc62c6
VS
33573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33574 (exit $ac_status); } &&
32ddf007
VS
33575 { ac_try='test -z "$ac_c_werror_flag"
33576 || test ! -s conftest.err'
33577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33578 (eval $ac_try) 2>&5
33579 ac_status=$?
33580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33581 (exit $ac_status); }; } &&
33582 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33584 (eval $ac_try) 2>&5
33585 ac_status=$?
33586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33587 (exit $ac_status); }; }; then
33588 eval "$as_ac_var=yes"
33589else
33590 echo "$as_me: failed program was:" >&5
33591sed 's/^/| /' conftest.$ac_ext >&5
33592
33593eval "$as_ac_var=no"
33594fi
32ddf007
VS
33595rm -f conftest.err conftest.$ac_objext \
33596 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33597fi
33598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33599echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33600if test `eval echo '${'$as_ac_var'}'` = yes; then
33601 cat >>confdefs.h <<_ACEOF
33602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33603_ACEOF
83307f33 33604
f93ca9fd
VS
33605 cat >>confdefs.h <<\_ACEOF
33606#define HAVE_DLOPEN 1
e6cc62c6 33607_ACEOF
e6cc62c6 33608
f93ca9fd 33609 HAVE_DL_FUNCS=1
e6cc62c6 33610
360d6699 33611else
e6cc62c6 33612
f93ca9fd
VS
33613 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33614echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33615if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33616 echo $ECHO_N "(cached) $ECHO_C" >&6
5357c8e8 33617else
f93ca9fd
VS
33618 ac_check_lib_save_LIBS=$LIBS
33619LIBS="-ldl $LIBS"
33620cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33621/* confdefs.h. */
33622_ACEOF
33623cat confdefs.h >>conftest.$ac_ext
33624cat >>conftest.$ac_ext <<_ACEOF
33625/* end confdefs.h. */
5357c8e8 33626
f93ca9fd
VS
33627/* Override any gcc2 internal prototype to avoid an error. */
33628#ifdef __cplusplus
33629extern "C"
33630#endif
33631/* We use char because int might match the return type of a gcc2
33632 builtin and then its argument prototype would still apply. */
33633char dlopen ();
e6cc62c6
VS
33634int
33635main ()
33636{
f93ca9fd 33637dlopen ();
e6cc62c6
VS
33638 ;
33639 return 0;
33640}
33641_ACEOF
f93ca9fd
VS
33642rm -f conftest.$ac_objext conftest$ac_exeext
33643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33644 (eval $ac_link) 2>conftest.er1
e6cc62c6 33645 ac_status=$?
32ddf007
VS
33646 grep -v '^ *+' conftest.er1 >conftest.err
33647 rm -f conftest.er1
33648 cat conftest.err >&5
e6cc62c6
VS
33649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33650 (exit $ac_status); } &&
32ddf007
VS
33651 { ac_try='test -z "$ac_c_werror_flag"
33652 || test ! -s conftest.err'
33653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33654 (eval $ac_try) 2>&5
33655 ac_status=$?
33656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33657 (exit $ac_status); }; } &&
33658 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33660 (eval $ac_try) 2>&5
33661 ac_status=$?
33662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33663 (exit $ac_status); }; }; then
f93ca9fd 33664 ac_cv_lib_dl_dlopen=yes
360d6699 33665else
e6cc62c6
VS
33666 echo "$as_me: failed program was:" >&5
33667sed 's/^/| /' conftest.$ac_ext >&5
33668
f93ca9fd 33669ac_cv_lib_dl_dlopen=no
247f5006 33670fi
32ddf007
VS
33671rm -f conftest.err conftest.$ac_objext \
33672 conftest$ac_exeext conftest.$ac_ext
f93ca9fd 33673LIBS=$ac_check_lib_save_LIBS
e6cc62c6 33674fi
f93ca9fd
VS
33675echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33676echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33677if test $ac_cv_lib_dl_dlopen = yes; then
698dcdb6 33678
f93ca9fd
VS
33679 cat >>confdefs.h <<\_ACEOF
33680#define HAVE_DLOPEN 1
e6cc62c6 33681_ACEOF
360d6699 33682
f93ca9fd
VS
33683 HAVE_DL_FUNCS=1
33684 DL_LINK=" -ldl$DL_LINK"
698dcdb6 33685
f93ca9fd 33686else
e6cc62c6 33687
f93ca9fd
VS
33688
33689for ac_func in shl_load
afc31813 33690do
e6cc62c6
VS
33691as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33692echo "$as_me:$LINENO: checking for $ac_func" >&5
33693echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33694if eval "test \"\${$as_ac_var+set}\" = set"; then
33695 echo $ECHO_N "(cached) $ECHO_C" >&6
33696else
33697 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33698/* confdefs.h. */
33699_ACEOF
33700cat confdefs.h >>conftest.$ac_ext
33701cat >>conftest.$ac_ext <<_ACEOF
33702/* end confdefs.h. */
32ddf007
VS
33703/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33705#define $ac_func innocuous_$ac_func
33706
afc31813 33707/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33708 which can conflict with char $ac_func (); below.
33709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33710 <limits.h> exists even on freestanding compilers. */
32ddf007 33711
e6cc62c6
VS
33712#ifdef __STDC__
33713# include <limits.h>
33714#else
33715# include <assert.h>
33716#endif
32ddf007
VS
33717
33718#undef $ac_func
33719
afc31813 33720/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33721#ifdef __cplusplus
33722extern "C"
33723{
33724#endif
afc31813 33725/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33726 builtin and then its argument prototype would still apply. */
33727char $ac_func ();
afc31813
VZ
33728/* The GNU C library defines this for functions which it implements
33729 to always fail with ENOSYS. Some functions are actually named
33730 something starting with __ and the normal name is an alias. */
33731#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33732choke me
33733#else
e6cc62c6
VS
33734char (*f) () = $ac_func;
33735#endif
33736#ifdef __cplusplus
33737}
afc31813
VZ
33738#endif
33739
e6cc62c6
VS
33740int
33741main ()
33742{
33743return f != $ac_func;
33744 ;
33745 return 0;
33746}
33747_ACEOF
33748rm -f conftest.$ac_objext conftest$ac_exeext
33749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33750 (eval $ac_link) 2>conftest.er1
e6cc62c6 33751 ac_status=$?
32ddf007
VS
33752 grep -v '^ *+' conftest.er1 >conftest.err
33753 rm -f conftest.er1
33754 cat conftest.err >&5
e6cc62c6
VS
33755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33756 (exit $ac_status); } &&
32ddf007
VS
33757 { ac_try='test -z "$ac_c_werror_flag"
33758 || test ! -s conftest.err'
33759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33760 (eval $ac_try) 2>&5
33761 ac_status=$?
33762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33763 (exit $ac_status); }; } &&
33764 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33766 (eval $ac_try) 2>&5
33767 ac_status=$?
33768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769 (exit $ac_status); }; }; then
33770 eval "$as_ac_var=yes"
33771else
33772 echo "$as_me: failed program was:" >&5
33773sed 's/^/| /' conftest.$ac_ext >&5
33774
33775eval "$as_ac_var=no"
33776fi
32ddf007
VS
33777rm -f conftest.err conftest.$ac_objext \
33778 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33779fi
33780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33782if test `eval echo '${'$as_ac_var'}'` = yes; then
33783 cat >>confdefs.h <<_ACEOF
33784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33785_ACEOF
afc31813 33786
f93ca9fd
VS
33787 cat >>confdefs.h <<\_ACEOF
33788#define HAVE_SHL_LOAD 1
33789_ACEOF
afc31813 33790
f93ca9fd 33791 HAVE_SHL_FUNCS=1
5c6fa7d2 33792
a0b9e27f 33793else
e6cc62c6 33794
f93ca9fd
VS
33795 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33796echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33797if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33798 echo $ECHO_N "(cached) $ECHO_C" >&6
33799else
33800 ac_check_lib_save_LIBS=$LIBS
33801LIBS="-lshl_load $LIBS"
33802cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33803/* confdefs.h. */
33804_ACEOF
33805cat confdefs.h >>conftest.$ac_ext
33806cat >>conftest.$ac_ext <<_ACEOF
33807/* end confdefs.h. */
0470b1e6 33808
f93ca9fd
VS
33809/* Override any gcc2 internal prototype to avoid an error. */
33810#ifdef __cplusplus
33811extern "C"
33812#endif
33813/* We use char because int might match the return type of a gcc2
33814 builtin and then its argument prototype would still apply. */
33815char dld ();
e6cc62c6
VS
33816int
33817main ()
33818{
f93ca9fd 33819dld ();
e6cc62c6
VS
33820 ;
33821 return 0;
33822}
33823_ACEOF
f93ca9fd
VS
33824rm -f conftest.$ac_objext conftest$ac_exeext
33825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33826 (eval $ac_link) 2>conftest.er1
e6cc62c6 33827 ac_status=$?
32ddf007
VS
33828 grep -v '^ *+' conftest.er1 >conftest.err
33829 rm -f conftest.er1
33830 cat conftest.err >&5
e6cc62c6
VS
33831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33832 (exit $ac_status); } &&
32ddf007
VS
33833 { ac_try='test -z "$ac_c_werror_flag"
33834 || test ! -s conftest.err'
33835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33836 (eval $ac_try) 2>&5
33837 ac_status=$?
33838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33839 (exit $ac_status); }; } &&
33840 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33842 (eval $ac_try) 2>&5
33843 ac_status=$?
33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33845 (exit $ac_status); }; }; then
f93ca9fd 33846 ac_cv_lib_shl_load_dld=yes
0470b1e6 33847else
e6cc62c6
VS
33848 echo "$as_me: failed program was:" >&5
33849sed 's/^/| /' conftest.$ac_ext >&5
33850
f93ca9fd
VS
33851ac_cv_lib_shl_load_dld=no
33852fi
32ddf007
VS
33853rm -f conftest.err conftest.$ac_objext \
33854 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
33855LIBS=$ac_check_lib_save_LIBS
33856fi
33857echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33858echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33859if test $ac_cv_lib_shl_load_dld = yes; then
33860
33861 HAVE_SHL_FUNCS=1
33862 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 33863
247f5006 33864fi
f93ca9fd 33865
a0b9e27f 33866
e6cc62c6 33867fi
f93ca9fd 33868done
6232543b 33869
0470b1e6 33870
f93ca9fd
VS
33871fi
33872
3fcdd07b 33873
f93ca9fd
VS
33874fi
33875done
e6cc62c6
VS
33876
33877
f93ca9fd
VS
33878 if test "$HAVE_DL_FUNCS" = 1; then
33879
33880for ac_func in dlerror
3fcdd07b 33881do
e6cc62c6
VS
33882as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33883echo "$as_me:$LINENO: checking for $ac_func" >&5
33884echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33885if eval "test \"\${$as_ac_var+set}\" = set"; then
33886 echo $ECHO_N "(cached) $ECHO_C" >&6
33887else
33888 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33889/* confdefs.h. */
33890_ACEOF
33891cat confdefs.h >>conftest.$ac_ext
33892cat >>conftest.$ac_ext <<_ACEOF
33893/* end confdefs.h. */
32ddf007
VS
33894/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33896#define $ac_func innocuous_$ac_func
33897
3fcdd07b 33898/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33899 which can conflict with char $ac_func (); below.
33900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33901 <limits.h> exists even on freestanding compilers. */
32ddf007 33902
e6cc62c6
VS
33903#ifdef __STDC__
33904# include <limits.h>
33905#else
33906# include <assert.h>
33907#endif
32ddf007
VS
33908
33909#undef $ac_func
33910
3fcdd07b 33911/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33912#ifdef __cplusplus
33913extern "C"
33914{
33915#endif
3fcdd07b 33916/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33917 builtin and then its argument prototype would still apply. */
33918char $ac_func ();
3fcdd07b
VZ
33919/* The GNU C library defines this for functions which it implements
33920 to always fail with ENOSYS. Some functions are actually named
33921 something starting with __ and the normal name is an alias. */
33922#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33923choke me
33924#else
e6cc62c6
VS
33925char (*f) () = $ac_func;
33926#endif
33927#ifdef __cplusplus
33928}
3fcdd07b
VZ
33929#endif
33930
e6cc62c6
VS
33931int
33932main ()
33933{
33934return f != $ac_func;
33935 ;
33936 return 0;
33937}
33938_ACEOF
33939rm -f conftest.$ac_objext conftest$ac_exeext
33940if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 33941 (eval $ac_link) 2>conftest.er1
e6cc62c6 33942 ac_status=$?
32ddf007
VS
33943 grep -v '^ *+' conftest.er1 >conftest.err
33944 rm -f conftest.er1
33945 cat conftest.err >&5
e6cc62c6
VS
33946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947 (exit $ac_status); } &&
32ddf007
VS
33948 { ac_try='test -z "$ac_c_werror_flag"
33949 || test ! -s conftest.err'
33950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33951 (eval $ac_try) 2>&5
33952 ac_status=$?
33953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33954 (exit $ac_status); }; } &&
33955 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33957 (eval $ac_try) 2>&5
33958 ac_status=$?
33959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960 (exit $ac_status); }; }; then
33961 eval "$as_ac_var=yes"
33962else
33963 echo "$as_me: failed program was:" >&5
33964sed 's/^/| /' conftest.$ac_ext >&5
33965
33966eval "$as_ac_var=no"
33967fi
32ddf007
VS
33968rm -f conftest.err conftest.$ac_objext \
33969 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33970fi
33971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33972echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33973if test `eval echo '${'$as_ac_var'}'` = yes; then
33974 cat >>confdefs.h <<_ACEOF
33975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33976_ACEOF
f93ca9fd
VS
33977 cat >>confdefs.h <<\_ACEOF
33978#define HAVE_DLERROR 1
33979_ACEOF
3fcdd07b 33980
f93ca9fd 33981else
698dcdb6 33982
f93ca9fd
VS
33983 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33984echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33985if test "${ac_cv_lib_dl_dlerror+set}" = set; then
e6cc62c6
VS
33986 echo $ECHO_N "(cached) $ECHO_C" >&6
33987else
f93ca9fd
VS
33988 ac_check_lib_save_LIBS=$LIBS
33989LIBS="-ldl $LIBS"
33990cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33991/* confdefs.h. */
33992_ACEOF
33993cat confdefs.h >>conftest.$ac_ext
33994cat >>conftest.$ac_ext <<_ACEOF
33995/* end confdefs.h. */
afc31813 33996
f93ca9fd
VS
33997/* Override any gcc2 internal prototype to avoid an error. */
33998#ifdef __cplusplus
33999extern "C"
34000#endif
34001/* We use char because int might match the return type of a gcc2
34002 builtin and then its argument prototype would still apply. */
34003char dlerror ();
e6cc62c6
VS
34004int
34005main ()
34006{
f93ca9fd 34007dlerror ();
e6cc62c6
VS
34008 ;
34009 return 0;
34010}
34011_ACEOF
f93ca9fd
VS
34012rm -f conftest.$ac_objext conftest$ac_exeext
34013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 34014 (eval $ac_link) 2>conftest.er1
e6cc62c6 34015 ac_status=$?
32ddf007
VS
34016 grep -v '^ *+' conftest.er1 >conftest.err
34017 rm -f conftest.er1
34018 cat conftest.err >&5
e6cc62c6
VS
34019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34020 (exit $ac_status); } &&
32ddf007
VS
34021 { ac_try='test -z "$ac_c_werror_flag"
34022 || test ! -s conftest.err'
34023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34024 (eval $ac_try) 2>&5
34025 ac_status=$?
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); }; } &&
34028 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34030 (eval $ac_try) 2>&5
34031 ac_status=$?
34032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34033 (exit $ac_status); }; }; then
f93ca9fd 34034 ac_cv_lib_dl_dlerror=yes
10f2d63a 34035else
e6cc62c6
VS
34036 echo "$as_me: failed program was:" >&5
34037sed 's/^/| /' conftest.$ac_ext >&5
34038
f93ca9fd
VS
34039ac_cv_lib_dl_dlerror=no
34040fi
32ddf007
VS
34041rm -f conftest.err conftest.$ac_objext \
34042 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
34043LIBS=$ac_check_lib_save_LIBS
34044fi
34045echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34046echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34047if test $ac_cv_lib_dl_dlerror = yes; then
34048 cat >>confdefs.h <<\_ACEOF
34049#define HAVE_DLERROR 1
34050_ACEOF
34051
34052fi
34053
34054
34055
34056fi
34057done
34058
34059 fi
34060 fi
34061
34062 if test "$HAVE_DL_FUNCS" = 0; then
34063 if test "$HAVE_SHL_FUNCS" = 0; then
34064 if test "$USE_UNIX" = 1; then
34065 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34066echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
34067 wxUSE_DYNAMIC_LOADER=no
34068 wxUSE_DYNLIB_CLASS=no
34069 else
34070 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34071echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
34072 fi
34073 fi
34074 fi
34075 fi
34076fi
34077
34078if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
34079 cat >>confdefs.h <<\_ACEOF
34080#define wxUSE_DYNAMIC_LOADER 1
34081_ACEOF
34082
34083fi
34084if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
34085 cat >>confdefs.h <<\_ACEOF
34086#define wxUSE_DYNLIB_CLASS 1
34087_ACEOF
34088
34089fi
34090
34091
34092
34093if test "$wxUSE_PLUGINS" = "yes" ; then
34094 if test "$wxUSE_SHARED" = "no" ; then
34095 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
34096echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
34097 wxUSE_PLUGINS=no
34098 fi
34099 if test "$wxUSE_MONOLITHIC" = "yes" ; then
34100 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
34101echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
34102 wxUSE_PLUGINS=no
34103 fi
34104 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
34105 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
34106echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
34107 wxUSE_PLUGINS=no
34108 fi
34109 if test "$wxUSE_PLUGINS" = "yes" ; then
34110 cat >>confdefs.h <<\_ACEOF
34111#define wxUSE_PLUGINS 1
34112_ACEOF
34113
34114 fi
34115fi
34116
34117
34118if test "$wxUSE_STL" = "yes"; then
34119 cat >>confdefs.h <<\_ACEOF
34120#define wxUSE_STL 1
34121_ACEOF
34122
34123fi
34124
34125if test "$wxUSE_APPLE_IEEE" = "yes"; then
34126 cat >>confdefs.h <<\_ACEOF
34127#define wxUSE_APPLE_IEEE 1
34128_ACEOF
34129
34130fi
34131
34132if test "$wxUSE_TIMER" = "yes"; then
34133 cat >>confdefs.h <<\_ACEOF
34134#define wxUSE_TIMER 1
34135_ACEOF
34136
34137fi
34138
34139WITH_PLUGIN_SDL=0
002ed9af 34140if test "$wxUSE_SOUND" = "yes"; then
f93ca9fd
VS
34141 if test "$USE_UNIX" = "1" ; then
34142
34143for ac_header in sys/soundcard.h
34144do
34145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34146if eval "test \"\${$as_ac_Header+set}\" = set"; then
34147 echo "$as_me:$LINENO: checking for $ac_header" >&5
34148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34149if eval "test \"\${$as_ac_Header+set}\" = set"; then
34150 echo $ECHO_N "(cached) $ECHO_C" >&6
34151fi
34152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34154else
34155 # Is the header compilable?
34156echo "$as_me:$LINENO: checking $ac_header usability" >&5
34157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 34158cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34159/* confdefs.h. */
34160_ACEOF
34161cat confdefs.h >>conftest.$ac_ext
34162cat >>conftest.$ac_ext <<_ACEOF
34163/* end confdefs.h. */
f93ca9fd
VS
34164$ac_includes_default
34165#include <$ac_header>
e6cc62c6
VS
34166_ACEOF
34167rm -f conftest.$ac_objext
34168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 34169 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34170 ac_status=$?
32ddf007
VS
34171 grep -v '^ *+' conftest.er1 >conftest.err
34172 rm -f conftest.er1
34173 cat conftest.err >&5
e6cc62c6
VS
34174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34175 (exit $ac_status); } &&
32ddf007
VS
34176 { ac_try='test -z "$ac_c_werror_flag"
34177 || test ! -s conftest.err'
34178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34179 (eval $ac_try) 2>&5
34180 ac_status=$?
34181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182 (exit $ac_status); }; } &&
34183 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34185 (eval $ac_try) 2>&5
34186 ac_status=$?
34187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34188 (exit $ac_status); }; }; then
f93ca9fd 34189 ac_header_compiler=yes
10f2d63a 34190else
e6cc62c6
VS
34191 echo "$as_me: failed program was:" >&5
34192sed 's/^/| /' conftest.$ac_ext >&5
34193
f93ca9fd 34194ac_header_compiler=no
10f2d63a 34195fi
32ddf007 34196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
34197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34198echo "${ECHO_T}$ac_header_compiler" >&6
b089607b 34199
f93ca9fd
VS
34200# Is the header present?
34201echo "$as_me:$LINENO: checking $ac_header presence" >&5
34202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34203cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34204/* confdefs.h. */
34205_ACEOF
34206cat confdefs.h >>conftest.$ac_ext
34207cat >>conftest.$ac_ext <<_ACEOF
34208/* end confdefs.h. */
f93ca9fd 34209#include <$ac_header>
e6cc62c6 34210_ACEOF
f93ca9fd
VS
34211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
e6cc62c6 34213 ac_status=$?
f95e4495
VS
34214 grep -v '^ *+' conftest.er1 >conftest.err
34215 rm -f conftest.er1
34216 cat conftest.err >&5
e6cc62c6 34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd
VS
34218 (exit $ac_status); } >/dev/null; then
34219 if test -s conftest.err; then
34220 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 34221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f93ca9fd
VS
34222 else
34223 ac_cpp_err=
34224 fi
34225else
34226 ac_cpp_err=yes
34227fi
34228if test -z "$ac_cpp_err"; then
34229 ac_header_preproc=yes
34230else
34231 echo "$as_me: failed program was:" >&5
34232sed 's/^/| /' conftest.$ac_ext >&5
34233
34234 ac_header_preproc=no
34235fi
34236rm -f conftest.err conftest.$ac_ext
34237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34238echo "${ECHO_T}$ac_header_preproc" >&6
34239
34240# So? What about this header?
32ddf007
VS
34241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34242 yes:no: )
f93ca9fd
VS
34243 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
34245 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34247 ac_header_preproc=yes
f93ca9fd 34248 ;;
32ddf007 34249 no:yes:* )
f93ca9fd
VS
34250 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
34252 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34253echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34254 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34256 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34257echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
f93ca9fd
VS
34258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
34260 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f93ca9fd
VS
34262 (
34263 cat <<\_ASBOX
32ddf007
VS
34264## ----------------------------------------- ##
34265## Report this to wx-dev@lists.wxwindows.org ##
34266## ----------------------------------------- ##
f93ca9fd
VS
34267_ASBOX
34268 ) |
34269 sed "s/^/$as_me: WARNING: /" >&2
34270 ;;
34271esac
34272echo "$as_me:$LINENO: checking for $ac_header" >&5
34273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34274if eval "test \"\${$as_ac_Header+set}\" = set"; then
34275 echo $ECHO_N "(cached) $ECHO_C" >&6
34276else
32ddf007 34277 eval "$as_ac_Header=\$ac_header_preproc"
f93ca9fd
VS
34278fi
34279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34281
34282fi
34283if test `eval echo '${'$as_ac_Header'}'` = yes; then
34284 cat >>confdefs.h <<_ACEOF
34285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34286_ACEOF
34287
34288fi
34289
34290done
34291
34292
34293 if test "$wxUSE_LIBSDL" != "no"; then
34294
34295# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34296if test "${with_sdl_prefix+set}" = set; then
34297 withval="$with_sdl_prefix"
34298 sdl_prefix="$withval"
34299else
34300 sdl_prefix=""
34301fi;
34302
34303# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34304if test "${with_sdl_exec_prefix+set}" = set; then
34305 withval="$with_sdl_exec_prefix"
34306 sdl_exec_prefix="$withval"
34307else
34308 sdl_exec_prefix=""
34309fi;
34310# Check whether --enable-sdltest or --disable-sdltest was given.
34311if test "${enable_sdltest+set}" = set; then
34312 enableval="$enable_sdltest"
34313
34314else
34315 enable_sdltest=yes
34316fi;
34317
34318 if test x$sdl_exec_prefix != x ; then
34319 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34320 if test x${SDL_CONFIG+set} != xset ; then
34321 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34322 fi
34323 fi
34324 if test x$sdl_prefix != x ; then
34325 sdl_args="$sdl_args --prefix=$sdl_prefix"
34326 if test x${SDL_CONFIG+set} != xset ; then
34327 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34328 fi
34329 fi
34330
34331
34332 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34333 # Extract the first word of "sdl-config", so it can be a program name with args.
34334set dummy sdl-config; ac_word=$2
34335echo "$as_me:$LINENO: checking for $ac_word" >&5
34336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34337if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34338 echo $ECHO_N "(cached) $ECHO_C" >&6
34339else
34340 case $SDL_CONFIG in
34341 [\\/]* | ?:[\\/]*)
34342 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34343 ;;
34344 *)
34345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34346for as_dir in $PATH
34347do
34348 IFS=$as_save_IFS
34349 test -z "$as_dir" && as_dir=.
34350 for ac_exec_ext in '' $ac_executable_extensions; do
34351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34352 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34354 break 2
34355 fi
34356done
34357done
34358
34359 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34360 ;;
34361esac
34362fi
34363SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34364
34365if test -n "$SDL_CONFIG"; then
34366 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34367echo "${ECHO_T}$SDL_CONFIG" >&6
34368else
34369 echo "$as_me:$LINENO: result: no" >&5
34370echo "${ECHO_T}no" >&6
34371fi
34372
34373 min_sdl_version=1.2.0
34374 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34375echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34376 no_sdl=""
34377 if test "$SDL_CONFIG" = "no" ; then
34378 no_sdl=yes
34379 else
34380 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34381 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34382
34383 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34384 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34385 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34386 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34387 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34388 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34389 if test "x$enable_sdltest" = "xyes" ; then
34390 ac_save_CFLAGS="$CFLAGS"
34391 ac_save_LIBS="$LIBS"
34392 CFLAGS="$CFLAGS $SDL_CFLAGS"
34393 LIBS="$LIBS $SDL_LIBS"
34394 rm -f conf.sdltest
34395 if test "$cross_compiling" = yes; then
34396 echo $ac_n "cross compiling; assumed OK... $ac_c"
34397else
34398 cat >conftest.$ac_ext <<_ACEOF
34399/* confdefs.h. */
34400_ACEOF
34401cat confdefs.h >>conftest.$ac_ext
34402cat >>conftest.$ac_ext <<_ACEOF
34403/* end confdefs.h. */
34404
34405#include <stdio.h>
34406#include <stdlib.h>
34407#include <string.h>
34408#include "SDL.h"
34409
34410char*
34411my_strdup (char *str)
34412{
34413 char *new_str;
34414
34415 if (str)
34416 {
34417 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34418 strcpy (new_str, str);
34419 }
34420 else
34421 new_str = NULL;
34422
34423 return new_str;
34424}
34425
34426int main (int argc, char *argv[])
34427{
34428 int major, minor, micro;
34429 char *tmp_version;
34430
34431 /* This hangs on some systems (?)
34432 system ("touch conf.sdltest");
34433 */
34434 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34435
34436 /* HP/UX 9 (%@#!) writes to sscanf strings */
34437 tmp_version = my_strdup("$min_sdl_version");
34438 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34439 printf("%s, bad version string\n", "$min_sdl_version");
34440 exit(1);
34441 }
34442
34443 if (($sdl_major_version > major) ||
34444 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34445 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34446 {
34447 return 0;
34448 }
34449 else
34450 {
34451 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34452 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34453 printf("*** best to upgrade to the required version.\n");
34454 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34455 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34456 printf("*** config.cache before re-running configure\n");
34457 return 1;
34458 }
34459}
34460
34461
34462_ACEOF
34463rm -f conftest$ac_exeext
34464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34465 (eval $ac_link) 2>&5
f95e4495
VS
34466 ac_status=$?
34467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 34468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
e6cc62c6
VS
34469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34470 (eval $ac_try) 2>&5
34471 ac_status=$?
34472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34473 (exit $ac_status); }; }; then
f93ca9fd 34474 :
e6cc62c6 34475else
f93ca9fd
VS
34476 echo "$as_me: program exited with status $ac_status" >&5
34477echo "$as_me: failed program was:" >&5
e6cc62c6
VS
34478sed 's/^/| /' conftest.$ac_ext >&5
34479
f93ca9fd
VS
34480( exit $ac_status )
34481no_sdl=yes
e6cc62c6 34482fi
32ddf007 34483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34484fi
f93ca9fd
VS
34485 CFLAGS="$ac_save_CFLAGS"
34486 LIBS="$ac_save_LIBS"
34487 fi
34488 fi
34489 if test "x$no_sdl" = x ; then
34490 echo "$as_me:$LINENO: result: yes" >&5
34491echo "${ECHO_T}yes" >&6
0e012a93 34492
f93ca9fd
VS
34493 EXTRALIBS_SDL="$SDL_LIBS"
34494 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34495 cat >>confdefs.h <<\_ACEOF
34496#define wxUSE_LIBSDL 1
34497_ACEOF
34498
34499
34500 else
34501 echo "$as_me:$LINENO: result: no" >&5
34502echo "${ECHO_T}no" >&6
34503 if test "$SDL_CONFIG" = "no" ; then
34504 echo "*** The sdl-config script installed by SDL could not be found"
34505 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34506 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34507 echo "*** full path to sdl-config."
34508 else
34509 if test -f conf.sdltest ; then
34510 :
34511 else
34512 echo "*** Could not run SDL test program, checking why..."
34513 CFLAGS="$CFLAGS $SDL_CFLAGS"
34514 LIBS="$LIBS $SDL_LIBS"
34515 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34516/* confdefs.h. */
34517_ACEOF
34518cat confdefs.h >>conftest.$ac_ext
34519cat >>conftest.$ac_ext <<_ACEOF
34520/* end confdefs.h. */
34521
f93ca9fd
VS
34522#include <stdio.h>
34523#include "SDL.h"
34524
34525int main(int argc, char *argv[])
34526{ return 0; }
34527#undef main
34528#define main K_and_R_C_main
34529
e6cc62c6
VS
34530int
34531main ()
34532{
f93ca9fd 34533 return 0;
e6cc62c6
VS
34534 ;
34535 return 0;
34536}
34537_ACEOF
34538rm -f conftest.$ac_objext conftest$ac_exeext
34539if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 34540 (eval $ac_link) 2>conftest.er1
e6cc62c6 34541 ac_status=$?
32ddf007
VS
34542 grep -v '^ *+' conftest.er1 >conftest.err
34543 rm -f conftest.er1
34544 cat conftest.err >&5
e6cc62c6
VS
34545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34546 (exit $ac_status); } &&
32ddf007
VS
34547 { ac_try='test -z "$ac_c_werror_flag"
34548 || test ! -s conftest.err'
34549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34550 (eval $ac_try) 2>&5
34551 ac_status=$?
34552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34553 (exit $ac_status); }; } &&
34554 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34556 (eval $ac_try) 2>&5
34557 ac_status=$?
34558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34559 (exit $ac_status); }; }; then
f93ca9fd
VS
34560 echo "*** The test program compiled, but did not run. This usually means"
34561 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34562 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34563 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34564 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34565 echo "*** is required on your system"
34566 echo "***"
34567 echo "*** If you have an old version installed, it is best to remove it, although"
34568 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
e6cc62c6
VS
34569else
34570 echo "$as_me: failed program was:" >&5
34571sed 's/^/| /' conftest.$ac_ext >&5
34572
f93ca9fd
VS
34573 echo "*** The test program failed to compile or link. See the file config.log for the"
34574 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34575 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34576 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
e6cc62c6 34577fi
32ddf007
VS
34578rm -f conftest.err conftest.$ac_objext \
34579 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
34580 CFLAGS="$ac_save_CFLAGS"
34581 LIBS="$ac_save_LIBS"
34582 fi
34583 fi
34584 SDL_CFLAGS=""
34585 SDL_LIBS=""
34586 wxUSE_LIBSDL="no"
34587 fi
34588
34589
34590 rm -f conf.sdltest
34591
34592 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34593 WITH_PLUGIN_SDL=1
34594 fi
34595 fi
34596 fi
34597
34598 cat >>confdefs.h <<\_ACEOF
002ed9af 34599#define wxUSE_SOUND 1
f93ca9fd
VS
34600_ACEOF
34601
34602 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
e6cc62c6 34603fi
afc31813 34604
f93ca9fd
VS
34605if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34606 cat >>confdefs.h <<\_ACEOF
34607#define wxUSE_CMDLINE_PARSER 1
34608_ACEOF
34609
34610fi
e6cc62c6 34611
f93ca9fd
VS
34612if test "$wxUSE_STOPWATCH" = "yes"; then
34613 cat >>confdefs.h <<\_ACEOF
34614#define wxUSE_STOPWATCH 1
34615_ACEOF
e6cc62c6 34616
6232543b 34617fi
b089607b 34618
f93ca9fd
VS
34619if test "$wxUSE_DATETIME" = "yes"; then
34620 cat >>confdefs.h <<\_ACEOF
34621#define wxUSE_DATETIME 1
34622_ACEOF
e6cc62c6 34623
f93ca9fd
VS
34624fi
34625
34626if test "$wxUSE_FILE" = "yes"; then
34627 cat >>confdefs.h <<\_ACEOF
34628#define wxUSE_FILE 1
34629_ACEOF
0e012a93 34630
1e487827 34631fi
afc31813 34632
f93ca9fd
VS
34633if test "$wxUSE_FFILE" = "yes"; then
34634 cat >>confdefs.h <<\_ACEOF
34635#define wxUSE_FFILE 1
34636_ACEOF
34637
34638fi
34639
34640if test "$wxUSE_FILESYSTEM" = "yes"; then
34641 cat >>confdefs.h <<\_ACEOF
34642#define wxUSE_FILESYSTEM 1
34643_ACEOF
34644
34645fi
34646
34647if test "$wxUSE_FS_ZIP" = "yes"; then
34648 cat >>confdefs.h <<\_ACEOF
34649#define wxUSE_FS_ZIP 1
34650_ACEOF
34651
34652fi
34653
34654if test "$wxUSE_ZIPSTREAM" = "yes"; then
34655 cat >>confdefs.h <<\_ACEOF
34656#define wxUSE_ZIPSTREAM 1
34657_ACEOF
34658
34659fi
34660
34661if test "$wxUSE_GZSTREAM" = "yes"; then
34662 cat >>confdefs.h <<\_ACEOF
34663#define wxUSE_GZSTREAM 1
34664_ACEOF
34665
34666fi
34667
34668if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34669 cat >>confdefs.h <<\_ACEOF
34670#define wxUSE_ON_FATAL_EXCEPTION 1
34671_ACEOF
34672
34673fi
34674
34675if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34676 cat >>confdefs.h <<\_ACEOF
34677#define wxUSE_SNGLINST_CHECKER 1
34678_ACEOF
34679
34680fi
34681
34682if test "$wxUSE_BUSYINFO" = "yes"; then
34683 cat >>confdefs.h <<\_ACEOF
34684#define wxUSE_BUSYINFO 1
34685_ACEOF
34686
34687fi
34688
34689if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34690 cat >>confdefs.h <<\_ACEOF
34691#define wxUSE_STD_IOSTREAM 1
34692_ACEOF
34693
34694fi
34695
34696if test "$wxUSE_TEXTBUFFER" = "yes"; then
34697 cat >>confdefs.h <<\_ACEOF
34698#define wxUSE_TEXTBUFFER 1
34699_ACEOF
34700
34701fi
34702
34703if test "$wxUSE_TEXTFILE" = "yes"; then
34704 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34705 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34706echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34707 else
34708 cat >>confdefs.h <<\_ACEOF
34709#define wxUSE_TEXTFILE 1
34710_ACEOF
34711
34712 fi
34713fi
34714
34715if test "$wxUSE_CONFIG" = "yes" ; then
34716 if test "$wxUSE_TEXTFILE" != "yes"; then
34717 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34718echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34719 else
34720 cat >>confdefs.h <<\_ACEOF
34721#define wxUSE_CONFIG 1
34722_ACEOF
34723
34724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34725 fi
34726fi
34727
34728if test "$wxUSE_INTL" = "yes" ; then
34729 if test "$wxUSE_FILE" != "yes"; then
34730 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34731echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34732 else
34733 cat >>confdefs.h <<\_ACEOF
34734#define wxUSE_INTL 1
34735_ACEOF
34736
34737 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34738 GUIDIST="$GUIDIST INTL_DIST"
34739 fi
34740fi
34741
34742if test "$wxUSE_LOG" = "yes"; then
34743 cat >>confdefs.h <<\_ACEOF
34744#define wxUSE_LOG 1
34745_ACEOF
34746
34747
34748 if test "$wxUSE_LOGGUI" = "yes"; then
34749 cat >>confdefs.h <<\_ACEOF
34750#define wxUSE_LOGGUI 1
34751_ACEOF
34752
34753 fi
34754
34755 if test "$wxUSE_LOGWINDOW" = "yes"; then
34756 cat >>confdefs.h <<\_ACEOF
34757#define wxUSE_LOGWINDOW 1
34758_ACEOF
34759
34760 fi
34761
34762 if test "$wxUSE_LOGDIALOG" = "yes"; then
34763 cat >>confdefs.h <<\_ACEOF
34764#define wxUSE_LOG_DIALOG 1
34765_ACEOF
34766
3a922bb4 34767 fi
0feee163 34768fi
51a9faba 34769
f93ca9fd
VS
34770if test "$wxUSE_LONGLONG" = "yes"; then
34771 cat >>confdefs.h <<\_ACEOF
34772#define wxUSE_LONGLONG 1
34773_ACEOF
e6cc62c6 34774
f93ca9fd
VS
34775fi
34776
34777if test "$wxUSE_GEOMETRY" = "yes"; then
34778 cat >>confdefs.h <<\_ACEOF
34779#define wxUSE_GEOMETRY 1
e6cc62c6 34780_ACEOF
51a9faba 34781
f93ca9fd 34782fi
e6cc62c6 34783
f93ca9fd
VS
34784if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34785 cat >>confdefs.h <<\_ACEOF
34786#define wxUSE_DIALUP_MANAGER 1
34787_ACEOF
51a9faba 34788
f93ca9fd
VS
34789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34790fi
e6cc62c6 34791
f93ca9fd
VS
34792if test "$wxUSE_STREAMS" = "yes" ; then
34793 cat >>confdefs.h <<\_ACEOF
34794#define wxUSE_STREAMS 1
e6cc62c6 34795_ACEOF
e6cc62c6 34796
f93ca9fd 34797fi
e6cc62c6 34798
9711d31e 34799
f93ca9fd
VS
34800if test "$wxUSE_DATETIME" = "yes"; then
34801
34802for ac_func in strptime
34803do
34804as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34805echo "$as_me:$LINENO: checking for $ac_func" >&5
34806echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34807if eval "test \"\${$as_ac_var+set}\" = set"; then
34808 echo $ECHO_N "(cached) $ECHO_C" >&6
34809else
34810 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34811/* confdefs.h. */
34812_ACEOF
34813cat confdefs.h >>conftest.$ac_ext
34814cat >>conftest.$ac_ext <<_ACEOF
34815/* end confdefs.h. */
32ddf007
VS
34816/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34818#define $ac_func innocuous_$ac_func
34819
f93ca9fd
VS
34820/* System header to define __stub macros and hopefully few prototypes,
34821 which can conflict with char $ac_func (); below.
34822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34823 <limits.h> exists even on freestanding compilers. */
32ddf007 34824
f93ca9fd
VS
34825#ifdef __STDC__
34826# include <limits.h>
34827#else
34828# include <assert.h>
34829#endif
32ddf007
VS
34830
34831#undef $ac_func
34832
f93ca9fd
VS
34833/* Override any gcc2 internal prototype to avoid an error. */
34834#ifdef __cplusplus
34835extern "C"
34836{
34837#endif
34838/* We use char because int might match the return type of a gcc2
34839 builtin and then its argument prototype would still apply. */
34840char $ac_func ();
34841/* The GNU C library defines this for functions which it implements
34842 to always fail with ENOSYS. Some functions are actually named
34843 something starting with __ and the normal name is an alias. */
34844#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34845choke me
34846#else
34847char (*f) () = $ac_func;
34848#endif
34849#ifdef __cplusplus
34850}
34851#endif
e6cc62c6
VS
34852
34853int
34854main ()
34855{
f93ca9fd 34856return f != $ac_func;
e6cc62c6
VS
34857 ;
34858 return 0;
34859}
34860_ACEOF
f93ca9fd
VS
34861rm -f conftest.$ac_objext conftest$ac_exeext
34862if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 34863 (eval $ac_link) 2>conftest.er1
e6cc62c6 34864 ac_status=$?
32ddf007
VS
34865 grep -v '^ *+' conftest.er1 >conftest.err
34866 rm -f conftest.er1
34867 cat conftest.err >&5
e6cc62c6
VS
34868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34869 (exit $ac_status); } &&
32ddf007
VS
34870 { ac_try='test -z "$ac_c_werror_flag"
34871 || test ! -s conftest.err'
34872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34873 (eval $ac_try) 2>&5
34874 ac_status=$?
34875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34876 (exit $ac_status); }; } &&
34877 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34879 (eval $ac_try) 2>&5
34880 ac_status=$?
34881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34882 (exit $ac_status); }; }; then
f93ca9fd 34883 eval "$as_ac_var=yes"
afc31813 34884else
e6cc62c6
VS
34885 echo "$as_me: failed program was:" >&5
34886sed 's/^/| /' conftest.$ac_ext >&5
34887
f93ca9fd
VS
34888eval "$as_ac_var=no"
34889fi
32ddf007
VS
34890rm -f conftest.err conftest.$ac_objext \
34891 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
34892fi
34893echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34894echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34895if test `eval echo '${'$as_ac_var'}'` = yes; then
34896 cat >>confdefs.h <<_ACEOF
34897#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34898_ACEOF
34899
34900fi
34901done
34902
34903
34904 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34905echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34906if test "${wx_cv_var_timezone+set}" = set; then
34907 echo $ECHO_N "(cached) $ECHO_C" >&6
34908else
34909
34910 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34911/* confdefs.h. */
34912_ACEOF
34913cat confdefs.h >>conftest.$ac_ext
34914cat >>conftest.$ac_ext <<_ACEOF
34915/* end confdefs.h. */
51a9faba 34916
f93ca9fd 34917 #include <time.h>
e6cc62c6
VS
34918
34919int
34920main ()
34921{
51a9faba 34922
f93ca9fd
VS
34923 int tz;
34924 tz = timezone;
e6cc62c6
VS
34925
34926 ;
34927 return 0;
34928}
34929_ACEOF
34930rm -f conftest.$ac_objext
34931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 34932 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34933 ac_status=$?
32ddf007
VS
34934 grep -v '^ *+' conftest.er1 >conftest.err
34935 rm -f conftest.er1
34936 cat conftest.err >&5
e6cc62c6
VS
34937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34938 (exit $ac_status); } &&
32ddf007
VS
34939 { ac_try='test -z "$ac_c_werror_flag"
34940 || test ! -s conftest.err'
34941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34942 (eval $ac_try) 2>&5
34943 ac_status=$?
34944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34945 (exit $ac_status); }; } &&
34946 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
34947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34948 (eval $ac_try) 2>&5
34949 ac_status=$?
34950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34951 (exit $ac_status); }; }; then
8284b0c5 34952
f93ca9fd 34953 wx_cv_var_timezone=timezone
dc3d889d 34954
f93ca9fd
VS
34955else
34956 echo "$as_me: failed program was:" >&5
34957sed 's/^/| /' conftest.$ac_ext >&5
156b2523 34958
e6cc62c6 34959
f93ca9fd 34960 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34961/* confdefs.h. */
34962_ACEOF
34963cat confdefs.h >>conftest.$ac_ext
34964cat >>conftest.$ac_ext <<_ACEOF
34965/* end confdefs.h. */
f93ca9fd
VS
34966
34967 #include <time.h>
34968
34969int
34970main ()
34971{
34972
34973 int tz;
34974 tz = _timezone;
34975
34976 ;
34977 return 0;
34978}
e6cc62c6
VS
34979_ACEOF
34980rm -f conftest.$ac_objext
34981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 34982 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34983 ac_status=$?
32ddf007
VS
34984 grep -v '^ *+' conftest.er1 >conftest.err
34985 rm -f conftest.er1
34986 cat conftest.err >&5
e6cc62c6
VS
34987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34988 (exit $ac_status); } &&
32ddf007
VS
34989 { ac_try='test -z "$ac_c_werror_flag"
34990 || test ! -s conftest.err'
34991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34992 (eval $ac_try) 2>&5
34993 ac_status=$?
34994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995 (exit $ac_status); }; } &&
34996 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34998 (eval $ac_try) 2>&5
34999 ac_status=$?
35000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35001 (exit $ac_status); }; }; then
f93ca9fd
VS
35002
35003 wx_cv_var_timezone=_timezone
35004
e6cc62c6
VS
35005else
35006 echo "$as_me: failed program was:" >&5
35007sed 's/^/| /' conftest.$ac_ext >&5
35008
e6cc62c6 35009
f93ca9fd 35010 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35011/* confdefs.h. */
35012_ACEOF
35013cat confdefs.h >>conftest.$ac_ext
35014cat >>conftest.$ac_ext <<_ACEOF
35015/* end confdefs.h. */
f93ca9fd
VS
35016
35017 #include <time.h>
35018
35019int
35020main ()
35021{
35022
35023 int tz;
35024 tz = __timezone;
35025
35026 ;
35027 return 0;
35028}
e6cc62c6 35029_ACEOF
f93ca9fd
VS
35030rm -f conftest.$ac_objext
35031if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35032 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35033 ac_status=$?
32ddf007
VS
35034 grep -v '^ *+' conftest.er1 >conftest.err
35035 rm -f conftest.er1
35036 cat conftest.err >&5
e6cc62c6 35037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 35038 (exit $ac_status); } &&
32ddf007
VS
35039 { ac_try='test -z "$ac_c_werror_flag"
35040 || test ! -s conftest.err'
35041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35042 (eval $ac_try) 2>&5
35043 ac_status=$?
35044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35045 (exit $ac_status); }; } &&
35046 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35048 (eval $ac_try) 2>&5
35049 ac_status=$?
35050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051 (exit $ac_status); }; }; then
35052
35053 wx_cv_var_timezone=__timezone
35054
e6cc62c6
VS
35055else
35056 echo "$as_me: failed program was:" >&5
35057sed 's/^/| /' conftest.$ac_ext >&5
35058
e6cc62c6 35059
f93ca9fd
VS
35060 if test "$USE_DOS" = 0 ; then
35061 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
35062echo "$as_me: WARNING: no timezone variable" >&2;}
35063 fi
35064
e6cc62c6 35065
10f2d63a 35066fi
32ddf007 35067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd 35068
e6cc62c6 35069
247f5006 35070fi
32ddf007 35071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 35072
10f2d63a 35073
f93ca9fd 35074fi
32ddf007 35075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b089607b 35076
10f2d63a 35077
dc3d889d 35078fi
f93ca9fd
VS
35079echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
35080echo "${ECHO_T}$wx_cv_var_timezone" >&6
dc3d889d 35081
f93ca9fd
VS
35082 if test "x$wx_cv_var_timezone" != x ; then
35083 cat >>confdefs.h <<_ACEOF
35084#define WX_TIMEZONE $wx_cv_var_timezone
35085_ACEOF
8284b0c5 35086
f93ca9fd 35087 fi
b089607b 35088
e6cc62c6 35089
f93ca9fd 35090for ac_func in localtime
10f2d63a 35091do
e6cc62c6
VS
35092as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35093echo "$as_me:$LINENO: checking for $ac_func" >&5
35094echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35095if eval "test \"\${$as_ac_var+set}\" = set"; then
35096 echo $ECHO_N "(cached) $ECHO_C" >&6
35097else
35098 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35099/* confdefs.h. */
35100_ACEOF
35101cat confdefs.h >>conftest.$ac_ext
35102cat >>conftest.$ac_ext <<_ACEOF
35103/* end confdefs.h. */
32ddf007
VS
35104/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35106#define $ac_func innocuous_$ac_func
35107
10f2d63a 35108/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
35109 which can conflict with char $ac_func (); below.
35110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35111 <limits.h> exists even on freestanding compilers. */
32ddf007 35112
e6cc62c6
VS
35113#ifdef __STDC__
35114# include <limits.h>
35115#else
35116# include <assert.h>
35117#endif
32ddf007
VS
35118
35119#undef $ac_func
35120
10f2d63a 35121/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
35122#ifdef __cplusplus
35123extern "C"
35124{
35125#endif
10f2d63a 35126/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
35127 builtin and then its argument prototype would still apply. */
35128char $ac_func ();
10f2d63a
VZ
35129/* The GNU C library defines this for functions which it implements
35130 to always fail with ENOSYS. Some functions are actually named
35131 something starting with __ and the normal name is an alias. */
35132#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35133choke me
35134#else
e6cc62c6
VS
35135char (*f) () = $ac_func;
35136#endif
35137#ifdef __cplusplus
35138}
10f2d63a
VZ
35139#endif
35140
e6cc62c6
VS
35141int
35142main ()
35143{
35144return f != $ac_func;
35145 ;
35146 return 0;
35147}
35148_ACEOF
35149rm -f conftest.$ac_objext conftest$ac_exeext
35150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 35151 (eval $ac_link) 2>conftest.er1
e6cc62c6 35152 ac_status=$?
32ddf007
VS
35153 grep -v '^ *+' conftest.er1 >conftest.err
35154 rm -f conftest.er1
35155 cat conftest.err >&5
e6cc62c6
VS
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); } &&
32ddf007
VS
35158 { ac_try='test -z "$ac_c_werror_flag"
35159 || test ! -s conftest.err'
35160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35161 (eval $ac_try) 2>&5
35162 ac_status=$?
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); }; } &&
35165 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35167 (eval $ac_try) 2>&5
35168 ac_status=$?
35169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35170 (exit $ac_status); }; }; then
35171 eval "$as_ac_var=yes"
35172else
35173 echo "$as_me: failed program was:" >&5
35174sed 's/^/| /' conftest.$ac_ext >&5
35175
35176eval "$as_ac_var=no"
35177fi
32ddf007
VS
35178rm -f conftest.err conftest.$ac_objext \
35179 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
35180fi
35181echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35182echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35183if test `eval echo '${'$as_ac_var'}'` = yes; then
35184 cat >>confdefs.h <<_ACEOF
35185#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35186_ACEOF
35187
f93ca9fd
VS
35188fi
35189done
e6cc62c6 35190
e6cc62c6 35191
f93ca9fd
VS
35192 if test "$ac_cv_func_localtime" = "yes"; then
35193 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35194echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35195if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
e6cc62c6 35196 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 35197else
f93ca9fd
VS
35198
35199 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35200/* confdefs.h. */
35201_ACEOF
35202cat confdefs.h >>conftest.$ac_ext
35203cat >>conftest.$ac_ext <<_ACEOF
35204/* end confdefs.h. */
35205
f93ca9fd
VS
35206 #include <time.h>
35207
e6cc62c6
VS
35208int
35209main ()
35210{
f93ca9fd
VS
35211
35212 struct tm tm;
35213 tm.tm_gmtoff++;
35214
e6cc62c6
VS
35215 ;
35216 return 0;
35217}
35218_ACEOF
f93ca9fd
VS
35219rm -f conftest.$ac_objext
35220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35221 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35222 ac_status=$?
32ddf007
VS
35223 grep -v '^ *+' conftest.er1 >conftest.err
35224 rm -f conftest.er1
35225 cat conftest.err >&5
e6cc62c6
VS
35226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35227 (exit $ac_status); } &&
32ddf007
VS
35228 { ac_try='test -z "$ac_c_werror_flag"
35229 || test ! -s conftest.err'
35230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35231 (eval $ac_try) 2>&5
35232 ac_status=$?
35233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35234 (exit $ac_status); }; } &&
35235 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35237 (eval $ac_try) 2>&5
35238 ac_status=$?
35239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35240 (exit $ac_status); }; }; then
f93ca9fd
VS
35241
35242 wx_cv_struct_tm_has_gmtoff=yes
35243
e6cc62c6
VS
35244else
35245 echo "$as_me: failed program was:" >&5
35246sed 's/^/| /' conftest.$ac_ext >&5
35247
f93ca9fd
VS
35248wx_cv_struct_tm_has_gmtoff=no
35249
e6cc62c6 35250fi
32ddf007 35251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd 35252
e6cc62c6 35253fi
f93ca9fd
VS
35254echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35255echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35256 fi
e6cc62c6 35257
f93ca9fd
VS
35258 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35259 cat >>confdefs.h <<\_ACEOF
35260#define WX_GMTOFF_IN_TM 1
e6cc62c6 35261_ACEOF
10f2d63a 35262
f93ca9fd 35263 fi
e6cc62c6 35264
10f2d63a 35265
e6cc62c6 35266
f93ca9fd 35267for ac_func in gettimeofday ftime
10f2d63a 35268do
e6cc62c6
VS
35269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35270echo "$as_me:$LINENO: checking for $ac_func" >&5
35271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35272if eval "test \"\${$as_ac_var+set}\" = set"; then
35273 echo $ECHO_N "(cached) $ECHO_C" >&6
35274else
35275 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35276/* confdefs.h. */
35277_ACEOF
35278cat confdefs.h >>conftest.$ac_ext
35279cat >>conftest.$ac_ext <<_ACEOF
35280/* end confdefs.h. */
32ddf007
VS
35281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35283#define $ac_func innocuous_$ac_func
35284
10f2d63a 35285/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
35286 which can conflict with char $ac_func (); below.
35287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35288 <limits.h> exists even on freestanding compilers. */
32ddf007 35289
e6cc62c6
VS
35290#ifdef __STDC__
35291# include <limits.h>
35292#else
35293# include <assert.h>
35294#endif
32ddf007
VS
35295
35296#undef $ac_func
35297
10f2d63a 35298/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
35299#ifdef __cplusplus
35300extern "C"
35301{
35302#endif
10f2d63a 35303/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
35304 builtin and then its argument prototype would still apply. */
35305char $ac_func ();
10f2d63a
VZ
35306/* The GNU C library defines this for functions which it implements
35307 to always fail with ENOSYS. Some functions are actually named
35308 something starting with __ and the normal name is an alias. */
35309#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35310choke me
35311#else
e6cc62c6
VS
35312char (*f) () = $ac_func;
35313#endif
35314#ifdef __cplusplus
35315}
10f2d63a
VZ
35316#endif
35317
e6cc62c6
VS
35318int
35319main ()
35320{
35321return f != $ac_func;
35322 ;
35323 return 0;
35324}
35325_ACEOF
35326rm -f conftest.$ac_objext conftest$ac_exeext
35327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 35328 (eval $ac_link) 2>conftest.er1
e6cc62c6 35329 ac_status=$?
32ddf007
VS
35330 grep -v '^ *+' conftest.er1 >conftest.err
35331 rm -f conftest.er1
35332 cat conftest.err >&5
e6cc62c6
VS
35333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334 (exit $ac_status); } &&
32ddf007
VS
35335 { ac_try='test -z "$ac_c_werror_flag"
35336 || test ! -s conftest.err'
35337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35338 (eval $ac_try) 2>&5
35339 ac_status=$?
35340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35341 (exit $ac_status); }; } &&
35342 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35344 (eval $ac_try) 2>&5
35345 ac_status=$?
35346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35347 (exit $ac_status); }; }; then
35348 eval "$as_ac_var=yes"
35349else
35350 echo "$as_me: failed program was:" >&5
35351sed 's/^/| /' conftest.$ac_ext >&5
35352
35353eval "$as_ac_var=no"
35354fi
32ddf007
VS
35355rm -f conftest.err conftest.$ac_objext \
35356 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
35357fi
35358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35359echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35360if test `eval echo '${'$as_ac_var'}'` = yes; then
35361 cat >>confdefs.h <<_ACEOF
35362#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35363_ACEOF
f93ca9fd
VS
35364 break
35365fi
35366done
e6cc62c6 35367
f93ca9fd
VS
35368
35369 if test "$ac_cv_func_gettimeofday" = "yes"; then
35370 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35371echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35372if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35373 echo $ECHO_N "(cached) $ECHO_C" >&6
35374else
35375
35376
35377
35378 ac_ext=cc
35379ac_cpp='$CXXCPP $CPPFLAGS'
35380ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35381ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35382ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35383
35384
35385 cat >conftest.$ac_ext <<_ACEOF
35386/* confdefs.h. */
e6cc62c6 35387_ACEOF
f93ca9fd
VS
35388cat confdefs.h >>conftest.$ac_ext
35389cat >>conftest.$ac_ext <<_ACEOF
35390/* end confdefs.h. */
10f2d63a 35391
f93ca9fd
VS
35392 #include <sys/time.h>
35393 #include <unistd.h>
e6cc62c6 35394
f93ca9fd
VS
35395int
35396main ()
35397{
e6cc62c6 35398
f93ca9fd
VS
35399 struct timeval tv;
35400 gettimeofday(&tv, NULL);
35401
35402 ;
35403 return 0;
35404}
35405_ACEOF
35406rm -f conftest.$ac_objext
35407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35408 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35409 ac_status=$?
32ddf007
VS
35410 grep -v '^ *+' conftest.er1 >conftest.err
35411 rm -f conftest.er1
35412 cat conftest.err >&5
f93ca9fd
VS
35413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35414 (exit $ac_status); } &&
32ddf007
VS
35415 { ac_try='test -z "$ac_cxx_werror_flag"
35416 || test ! -s conftest.err'
35417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35418 (eval $ac_try) 2>&5
35419 ac_status=$?
35420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421 (exit $ac_status); }; } &&
35422 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35424 (eval $ac_try) 2>&5
35425 ac_status=$?
35426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35427 (exit $ac_status); }; }; then
35428 wx_cv_func_gettimeofday_has_2_args=yes
f6bcfd97 35429else
f93ca9fd
VS
35430 echo "$as_me: failed program was:" >&5
35431sed 's/^/| /' conftest.$ac_ext >&5
35432
e6cc62c6 35433cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35434/* confdefs.h. */
35435_ACEOF
35436cat confdefs.h >>conftest.$ac_ext
35437cat >>conftest.$ac_ext <<_ACEOF
35438/* end confdefs.h. */
35439
f93ca9fd
VS
35440 #include <sys/time.h>
35441 #include <unistd.h>
35442
e6cc62c6
VS
35443int
35444main ()
35445{
f93ca9fd
VS
35446
35447 struct timeval tv;
35448 gettimeofday(&tv);
35449
e6cc62c6
VS
35450 ;
35451 return 0;
35452}
35453_ACEOF
f93ca9fd
VS
35454rm -f conftest.$ac_objext
35455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35456 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35457 ac_status=$?
32ddf007
VS
35458 grep -v '^ *+' conftest.er1 >conftest.err
35459 rm -f conftest.er1
35460 cat conftest.err >&5
e6cc62c6
VS
35461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35462 (exit $ac_status); } &&
32ddf007
VS
35463 { ac_try='test -z "$ac_cxx_werror_flag"
35464 || test ! -s conftest.err'
35465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35466 (eval $ac_try) 2>&5
35467 ac_status=$?
35468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469 (exit $ac_status); }; } &&
35470 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35472 (eval $ac_try) 2>&5
35473 ac_status=$?
35474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35475 (exit $ac_status); }; }; then
f93ca9fd 35476 wx_cv_func_gettimeofday_has_2_args=no
e6cc62c6
VS
35477else
35478 echo "$as_me: failed program was:" >&5
35479sed 's/^/| /' conftest.$ac_ext >&5
35480
f6bcfd97 35481
f93ca9fd
VS
35482 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35483echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35484 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6 35485
f6bcfd97 35486
f93ca9fd 35487fi
32ddf007 35488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 35489
10f2d63a 35490fi
32ddf007 35491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
35492 ac_ext=c
35493ac_cpp='$CPP $CPPFLAGS'
35494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35496ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 35497
e6cc62c6 35498
10f2d63a 35499fi
f93ca9fd
VS
35500echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35501echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35502
35503 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35504 cat >>confdefs.h <<\_ACEOF
35505#define WX_GETTIMEOFDAY_NO_TZ 1
35506_ACEOF
10f2d63a 35507
f93ca9fd
VS
35508 fi
35509 fi
e6cc62c6 35510
f93ca9fd 35511 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10f2d63a 35512fi
10f2d63a 35513
5c6fa7d2 35514
f93ca9fd
VS
35515if test "$wxUSE_SOCKETS" = "yes"; then
35516 if test "$wxUSE_MGL" = "1"; then
35517 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35518echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35519 wxUSE_SOCKETS="no"
35520 fi
35521fi
e6cc62c6 35522
f93ca9fd
VS
35523if test "$wxUSE_SOCKETS" = "yes"; then
35524 if test "$TOOLKIT" != "MSW"; then
35525 echo "$as_me:$LINENO: checking for socket" >&5
35526echo $ECHO_N "checking for socket... $ECHO_C" >&6
35527if test "${ac_cv_func_socket+set}" = set; then
e6cc62c6
VS
35528 echo $ECHO_N "(cached) $ECHO_C" >&6
35529else
35530 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35531/* confdefs.h. */
35532_ACEOF
35533cat confdefs.h >>conftest.$ac_ext
35534cat >>conftest.$ac_ext <<_ACEOF
35535/* end confdefs.h. */
32ddf007
VS
35536/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35538#define socket innocuous_socket
35539
f6bcfd97 35540/* System header to define __stub macros and hopefully few prototypes,
f93ca9fd 35541 which can conflict with char socket (); below.
e6cc62c6
VS
35542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35543 <limits.h> exists even on freestanding compilers. */
32ddf007 35544
e6cc62c6
VS
35545#ifdef __STDC__
35546# include <limits.h>
35547#else
35548# include <assert.h>
35549#endif
32ddf007
VS
35550
35551#undef socket
35552
f6bcfd97 35553/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
35554#ifdef __cplusplus
35555extern "C"
35556{
35557#endif
f6bcfd97 35558/* We use char because int might match the return type of a gcc2
e6cc62c6 35559 builtin and then its argument prototype would still apply. */
f93ca9fd 35560char socket ();
f6bcfd97
BP
35561/* The GNU C library defines this for functions which it implements
35562 to always fail with ENOSYS. Some functions are actually named
35563 something starting with __ and the normal name is an alias. */
f93ca9fd 35564#if defined (__stub_socket) || defined (__stub___socket)
f6bcfd97
BP
35565choke me
35566#else
f93ca9fd 35567char (*f) () = socket;
e6cc62c6
VS
35568#endif
35569#ifdef __cplusplus
35570}
f6bcfd97
BP
35571#endif
35572
e6cc62c6
VS
35573int
35574main ()
35575{
f93ca9fd
VS
35576return f != socket;
35577 ;
35578 return 0;
35579}
35580_ACEOF
35581rm -f conftest.$ac_objext conftest$ac_exeext
35582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 35583 (eval $ac_link) 2>conftest.er1
f93ca9fd 35584 ac_status=$?
32ddf007
VS
35585 grep -v '^ *+' conftest.er1 >conftest.err
35586 rm -f conftest.er1
35587 cat conftest.err >&5
f93ca9fd
VS
35588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589 (exit $ac_status); } &&
32ddf007
VS
35590 { ac_try='test -z "$ac_c_werror_flag"
35591 || test ! -s conftest.err'
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'
f93ca9fd
VS
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 ac_cv_func_socket=yes
35604else
35605 echo "$as_me: failed program was:" >&5
35606sed 's/^/| /' conftest.$ac_ext >&5
35607
35608ac_cv_func_socket=no
35609fi
32ddf007
VS
35610rm -f conftest.err conftest.$ac_objext \
35611 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
35612fi
35613echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35614echo "${ECHO_T}$ac_cv_func_socket" >&6
35615if test $ac_cv_func_socket = yes; then
35616 :
35617else
35618
35619 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35620echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35621if test "${ac_cv_lib_socket_socket+set}" = set; then
35622 echo $ECHO_N "(cached) $ECHO_C" >&6
35623else
35624 ac_check_lib_save_LIBS=$LIBS
35625LIBS="-lsocket $LIBS"
35626cat >conftest.$ac_ext <<_ACEOF
35627/* confdefs.h. */
35628_ACEOF
35629cat confdefs.h >>conftest.$ac_ext
35630cat >>conftest.$ac_ext <<_ACEOF
35631/* end confdefs.h. */
35632
35633/* Override any gcc2 internal prototype to avoid an error. */
35634#ifdef __cplusplus
35635extern "C"
35636#endif
35637/* We use char because int might match the return type of a gcc2
35638 builtin and then its argument prototype would still apply. */
35639char socket ();
35640int
35641main ()
35642{
35643socket ();
e6cc62c6
VS
35644 ;
35645 return 0;
35646}
35647_ACEOF
35648rm -f conftest.$ac_objext conftest$ac_exeext
35649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 35650 (eval $ac_link) 2>conftest.er1
e6cc62c6 35651 ac_status=$?
32ddf007
VS
35652 grep -v '^ *+' conftest.er1 >conftest.err
35653 rm -f conftest.er1
35654 cat conftest.err >&5
e6cc62c6
VS
35655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35656 (exit $ac_status); } &&
32ddf007
VS
35657 { ac_try='test -z "$ac_c_werror_flag"
35658 || test ! -s conftest.err'
35659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35660 (eval $ac_try) 2>&5
35661 ac_status=$?
35662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35663 (exit $ac_status); }; } &&
35664 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35666 (eval $ac_try) 2>&5
35667 ac_status=$?
35668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35669 (exit $ac_status); }; }; then
f93ca9fd 35670 ac_cv_lib_socket_socket=yes
e6cc62c6
VS
35671else
35672 echo "$as_me: failed program was:" >&5
35673sed 's/^/| /' conftest.$ac_ext >&5
35674
f93ca9fd 35675ac_cv_lib_socket_socket=no
e6cc62c6 35676fi
32ddf007
VS
35677rm -f conftest.err conftest.$ac_objext \
35678 conftest$ac_exeext conftest.$ac_ext
f93ca9fd 35679LIBS=$ac_check_lib_save_LIBS
e6cc62c6 35680fi
f93ca9fd
VS
35681echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35682echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35683if test $ac_cv_lib_socket_socket = yes; then
35684 if test "$INET_LINK" != " -lsocket"; then
35685 INET_LINK="$INET_LINK -lsocket"
35686 fi
35687else
35688
35689 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35690echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35691 wxUSE_SOCKETS=no
35692
35693
35694fi
35695
35696
35697
35698fi
35699
35700 fi
35701fi
35702
35703if test "$wxUSE_SOCKETS" = "yes" ; then
35704 if test "$TOOLKIT" != "MSW"; then
35705 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35706echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35707if test "${wx_cv_type_getsockname3+set}" = set; then
35708 echo $ECHO_N "(cached) $ECHO_C" >&6
35709else
35710
35711 cat >conftest.$ac_ext <<_ACEOF
35712/* confdefs.h. */
e6cc62c6 35713_ACEOF
f93ca9fd
VS
35714cat confdefs.h >>conftest.$ac_ext
35715cat >>conftest.$ac_ext <<_ACEOF
35716/* end confdefs.h. */
35717
35718 #include <sys/types.h>
35719 #include <sys/socket.h>
f6bcfd97 35720
f93ca9fd
VS
35721int
35722main ()
35723{
35724
35725 socklen_t len;
35726 getsockname(0, 0, &len);
35727
35728 ;
35729 return 0;
35730}
35731_ACEOF
35732rm -f conftest.$ac_objext
35733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35734 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35735 ac_status=$?
32ddf007
VS
35736 grep -v '^ *+' conftest.er1 >conftest.err
35737 rm -f conftest.er1
35738 cat conftest.err >&5
f93ca9fd
VS
35739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35740 (exit $ac_status); } &&
32ddf007
VS
35741 { ac_try='test -z "$ac_c_werror_flag"
35742 || test ! -s conftest.err'
35743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35744 (eval $ac_try) 2>&5
35745 ac_status=$?
35746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35747 (exit $ac_status); }; } &&
35748 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35750 (eval $ac_try) 2>&5
35751 ac_status=$?
35752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35753 (exit $ac_status); }; }; then
35754 wx_cv_type_getsockname3=socklen_t
f6bcfd97 35755else
f93ca9fd
VS
35756 echo "$as_me: failed program was:" >&5
35757sed 's/^/| /' conftest.$ac_ext >&5
0e012a93 35758
f93ca9fd
VS
35759
35760 CFLAGS_OLD="$CFLAGS"
35761 if test "$GCC" = yes ; then
35762 CFLAGS="$CFLAGS -Werror"
35763 fi
35764
35765 cat >conftest.$ac_ext <<_ACEOF
35766/* confdefs.h. */
35767_ACEOF
35768cat confdefs.h >>conftest.$ac_ext
35769cat >>conftest.$ac_ext <<_ACEOF
35770/* end confdefs.h. */
35771
35772 #include <sys/types.h>
35773 #include <sys/socket.h>
35774
35775int
35776main ()
35777{
35778
35779 size_t len;
35780 getsockname(0, 0, &len);
35781
35782 ;
35783 return 0;
35784}
35785_ACEOF
35786rm -f conftest.$ac_objext
35787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35788 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35789 ac_status=$?
32ddf007
VS
35790 grep -v '^ *+' conftest.er1 >conftest.err
35791 rm -f conftest.er1
35792 cat conftest.err >&5
f93ca9fd
VS
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); } &&
32ddf007
VS
35795 { ac_try='test -z "$ac_c_werror_flag"
35796 || test ! -s conftest.err'
35797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35798 (eval $ac_try) 2>&5
35799 ac_status=$?
35800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35801 (exit $ac_status); }; } &&
35802 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35804 (eval $ac_try) 2>&5
35805 ac_status=$?
35806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35807 (exit $ac_status); }; }; then
35808 wx_cv_type_getsockname3=size_t
f6bcfd97 35809else
f93ca9fd
VS
35810 echo "$as_me: failed program was:" >&5
35811sed 's/^/| /' conftest.$ac_ext >&5
35812
e6cc62c6 35813cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35814/* confdefs.h. */
35815_ACEOF
35816cat confdefs.h >>conftest.$ac_ext
35817cat >>conftest.$ac_ext <<_ACEOF
35818/* end confdefs.h. */
35819
f93ca9fd
VS
35820 #include <sys/types.h>
35821 #include <sys/socket.h>
35822
e6cc62c6
VS
35823int
35824main ()
35825{
f93ca9fd
VS
35826
35827 int len;
35828 getsockname(0, 0, &len);
35829
e6cc62c6
VS
35830 ;
35831 return 0;
35832}
35833_ACEOF
f93ca9fd
VS
35834rm -f conftest.$ac_objext
35835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35836 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35837 ac_status=$?
32ddf007
VS
35838 grep -v '^ *+' conftest.er1 >conftest.err
35839 rm -f conftest.er1
35840 cat conftest.err >&5
e6cc62c6
VS
35841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842 (exit $ac_status); } &&
32ddf007
VS
35843 { ac_try='test -z "$ac_c_werror_flag"
35844 || test ! -s conftest.err'
35845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35846 (eval $ac_try) 2>&5
35847 ac_status=$?
35848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35849 (exit $ac_status); }; } &&
35850 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35852 (eval $ac_try) 2>&5
35853 ac_status=$?
35854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855 (exit $ac_status); }; }; then
f93ca9fd 35856 wx_cv_type_getsockname3=int
e6cc62c6
VS
35857else
35858 echo "$as_me: failed program was:" >&5
35859sed 's/^/| /' conftest.$ac_ext >&5
35860
f93ca9fd
VS
35861wx_cv_type_getsockname3=unknown
35862
e6cc62c6 35863fi
32ddf007 35864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35865
f6bcfd97 35866fi
32ddf007 35867rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35868
f93ca9fd 35869 CFLAGS="$CFLAGS_OLD"
0e012a93
VZ
35870
35871
f6bcfd97 35872fi
32ddf007 35873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35874
f93ca9fd
VS
35875fi
35876echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35877echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35878
35879 if test "$wx_cv_type_getsockname3" = "unknown"; then
35880 wxUSE_SOCKETS=no
35881 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35882echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35883 else
35884 cat >>confdefs.h <<_ACEOF
35885#define SOCKLEN_T $wx_cv_type_getsockname3
35886_ACEOF
f6bcfd97 35887
10f2d63a
VZ
35888 fi
35889 fi
35890fi
35891
f93ca9fd 35892if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 35893 cat >>confdefs.h <<\_ACEOF
f93ca9fd 35894#define wxUSE_SOCKETS 1
e6cc62c6 35895_ACEOF
0b9ab0bd 35896
f93ca9fd 35897 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
1948bb32 35898fi
f93ca9fd
VS
35899
35900if test "$wxUSE_PROTOCOL" = "yes"; then
35901 if test "$wxUSE_SOCKETS" != "yes"; then
35902 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35903echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35904 wxUSE_PROTOCOL=no
35905 fi
35906fi
35907
35908if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 35909 cat >>confdefs.h <<\_ACEOF
f93ca9fd 35910#define wxUSE_PROTOCOL 1
e6cc62c6 35911_ACEOF
10f2d63a 35912
f93ca9fd
VS
35913
35914 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35915 cat >>confdefs.h <<\_ACEOF
35916#define wxUSE_PROTOCOL_HTTP 1
35917_ACEOF
35918
35919 fi
35920 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35921 cat >>confdefs.h <<\_ACEOF
35922#define wxUSE_PROTOCOL_FTP 1
35923_ACEOF
35924
35925 fi
35926 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35927 cat >>confdefs.h <<\_ACEOF
35928#define wxUSE_PROTOCOL_FILE 1
35929_ACEOF
35930
35931 fi
35932else
35933 if test "$wxUSE_FS_INET" = "yes"; then
35934 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35935echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35936 wxUSE_FS_INET="no"
35937 fi
10f2d63a
VZ
35938fi
35939
f93ca9fd
VS
35940if test "$wxUSE_URL" = "yes"; then
35941 if test "$wxUSE_PROTOCOL" != "yes"; then
35942 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35943echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35944 wxUSE_URL=no
35945 fi
35946 if test "$wxUSE_URL" = "yes"; then
35947 cat >>confdefs.h <<\_ACEOF
35948#define wxUSE_URL 1
35949_ACEOF
35950
35951 fi
35952fi
35953
35954if test "$wxUSE_FS_INET" = "yes"; then
35955 cat >>confdefs.h <<\_ACEOF
35956#define wxUSE_FS_INET 1
35957_ACEOF
35958
35959fi
35960
35961
35962if test "$wxUSE_GUI" = "yes"; then
35963
35964 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35965 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35966echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35967 wxUSE_JOYSTICK=no
35968 fi
35969
35970 if test "$TOOLKIT" != "MSW"; then
35971 if test "$wxUSE_JOYSTICK" = "yes"; then
35972
35973for ac_header in linux/joystick.h
35974do
35975as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35976if eval "test \"\${$as_ac_Header+set}\" = set"; then
35977 echo "$as_me:$LINENO: checking for $ac_header" >&5
35978echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35979if eval "test \"\${$as_ac_Header+set}\" = set"; then
35980 echo $ECHO_N "(cached) $ECHO_C" >&6
35981fi
35982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35983echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35984else
35985 # Is the header compilable?
35986echo "$as_me:$LINENO: checking $ac_header usability" >&5
35987echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35988cat >conftest.$ac_ext <<_ACEOF
35989/* confdefs.h. */
35990_ACEOF
35991cat confdefs.h >>conftest.$ac_ext
35992cat >>conftest.$ac_ext <<_ACEOF
35993/* end confdefs.h. */
35994$ac_includes_default
35995#include <$ac_header>
35996_ACEOF
35997rm -f conftest.$ac_objext
35998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 35999 (eval $ac_compile) 2>conftest.er1
f93ca9fd 36000 ac_status=$?
32ddf007
VS
36001 grep -v '^ *+' conftest.er1 >conftest.err
36002 rm -f conftest.er1
36003 cat conftest.err >&5
f93ca9fd
VS
36004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36005 (exit $ac_status); } &&
32ddf007
VS
36006 { ac_try='test -z "$ac_c_werror_flag"
36007 || test ! -s conftest.err'
36008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36009 (eval $ac_try) 2>&5
36010 ac_status=$?
36011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36012 (exit $ac_status); }; } &&
36013 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
36014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36015 (eval $ac_try) 2>&5
36016 ac_status=$?
36017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018 (exit $ac_status); }; }; then
36019 ac_header_compiler=yes
36020else
36021 echo "$as_me: failed program was:" >&5
36022sed 's/^/| /' conftest.$ac_ext >&5
36023
36024ac_header_compiler=no
36025fi
32ddf007 36026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
36027echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36028echo "${ECHO_T}$ac_header_compiler" >&6
36029
36030# Is the header present?
36031echo "$as_me:$LINENO: checking $ac_header presence" >&5
36032echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36033cat >conftest.$ac_ext <<_ACEOF
36034/* confdefs.h. */
36035_ACEOF
36036cat confdefs.h >>conftest.$ac_ext
36037cat >>conftest.$ac_ext <<_ACEOF
36038/* end confdefs.h. */
36039#include <$ac_header>
36040_ACEOF
36041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36043 ac_status=$?
36044 grep -v '^ *+' conftest.er1 >conftest.err
36045 rm -f conftest.er1
36046 cat conftest.err >&5
36047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048 (exit $ac_status); } >/dev/null; then
36049 if test -s conftest.err; then
36050 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 36051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f93ca9fd
VS
36052 else
36053 ac_cpp_err=
36054 fi
36055else
36056 ac_cpp_err=yes
36057fi
36058if test -z "$ac_cpp_err"; then
36059 ac_header_preproc=yes
36060else
36061 echo "$as_me: failed program was:" >&5
36062sed 's/^/| /' conftest.$ac_ext >&5
36063
36064 ac_header_preproc=no
36065fi
36066rm -f conftest.err conftest.$ac_ext
36067echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36068echo "${ECHO_T}$ac_header_preproc" >&6
36069
36070# So? What about this header?
32ddf007
VS
36071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36072 yes:no: )
f93ca9fd
VS
36073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36074echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
36075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36076echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36077 ac_header_preproc=yes
f93ca9fd 36078 ;;
32ddf007 36079 no:yes:* )
f93ca9fd
VS
36080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36081echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
36082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36083echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36085echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36087echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
f93ca9fd
VS
36088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36089echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
36090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36091echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f93ca9fd
VS
36092 (
36093 cat <<\_ASBOX
32ddf007
VS
36094## ----------------------------------------- ##
36095## Report this to wx-dev@lists.wxwindows.org ##
36096## ----------------------------------------- ##
f93ca9fd
VS
36097_ASBOX
36098 ) |
36099 sed "s/^/$as_me: WARNING: /" >&2
36100 ;;
36101esac
36102echo "$as_me:$LINENO: checking for $ac_header" >&5
36103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36104if eval "test \"\${$as_ac_Header+set}\" = set"; then
36105 echo $ECHO_N "(cached) $ECHO_C" >&6
36106else
32ddf007 36107 eval "$as_ac_Header=\$ac_header_preproc"
f93ca9fd
VS
36108fi
36109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36111
36112fi
36113if test `eval echo '${'$as_ac_Header'}'` = yes; then
36114 cat >>confdefs.h <<_ACEOF
36115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36116_ACEOF
36117
36118fi
36119
36120done
36121
36122 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
36123 wxUSE_JOYSTICK=no
36124 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
36125echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
36126 fi
36127 fi
36128 fi
36129
36130 if test "$wxUSE_JOYSTICK" = "yes"; then
36131 cat >>confdefs.h <<\_ACEOF
36132#define wxUSE_JOYSTICK 1
36133_ACEOF
36134
36135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
36136 fi
36137fi
36138
36139
36140
8284b0c5 36141
1e6feb95 36142if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 36143 cat >>confdefs.h <<\_ACEOF
1e6feb95 36144#define wxUSE_FONTMAP 1
e6cc62c6 36145_ACEOF
1e6feb95
VZ
36146
36147fi
36148
10f2d63a 36149if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 36150 cat >>confdefs.h <<\_ACEOF
10f2d63a 36151#define wxUSE_UNICODE 1
e6cc62c6 36152_ACEOF
10f2d63a 36153
8284b0c5 36154
eb854003 36155 if test "$USE_WIN32" != 1; then
bbc3925a
VS
36156 wxUSE_UNICODE_MSLU=no
36157 fi
a72a4bfa 36158
eb854003 36159 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
36160 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36161echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36162if test "${ac_cv_lib_unicows_main+set}" = set; then
36163 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 36164else
e6cc62c6 36165 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 36166LIBS="-lunicows $LIBS"
e6cc62c6 36167cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36168/* confdefs.h. */
36169_ACEOF
36170cat confdefs.h >>conftest.$ac_ext
36171cat >>conftest.$ac_ext <<_ACEOF
36172/* end confdefs.h. */
a72a4bfa 36173
8284b0c5 36174
e6cc62c6
VS
36175int
36176main ()
36177{
36178main ();
36179 ;
36180 return 0;
36181}
36182_ACEOF
36183rm -f conftest.$ac_objext conftest$ac_exeext
36184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 36185 (eval $ac_link) 2>conftest.er1
e6cc62c6 36186 ac_status=$?
32ddf007
VS
36187 grep -v '^ *+' conftest.er1 >conftest.err
36188 rm -f conftest.er1
36189 cat conftest.err >&5
e6cc62c6
VS
36190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36191 (exit $ac_status); } &&
32ddf007
VS
36192 { ac_try='test -z "$ac_c_werror_flag"
36193 || test ! -s conftest.err'
36194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36195 (eval $ac_try) 2>&5
36196 ac_status=$?
36197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36198 (exit $ac_status); }; } &&
36199 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36201 (eval $ac_try) 2>&5
36202 ac_status=$?
36203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36204 (exit $ac_status); }; }; then
36205 ac_cv_lib_unicows_main=yes
36206else
36207 echo "$as_me: failed program was:" >&5
36208sed 's/^/| /' conftest.$ac_ext >&5
36209
36210ac_cv_lib_unicows_main=no
36211fi
32ddf007
VS
36212rm -f conftest.err conftest.$ac_objext \
36213 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36214LIBS=$ac_check_lib_save_LIBS
36215fi
36216echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36217echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36218if test $ac_cv_lib_unicows_main = yes; then
36219
36220 cat >>confdefs.h <<\_ACEOF
a72a4bfa 36221#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
36222_ACEOF
36223
a72a4bfa 36224
a72a4bfa 36225else
a72a4bfa 36226
e6cc62c6
VS
36227 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36228 Applications will only run on Windows NT/2000/XP!" >&5
36229echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36230 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 36231 wxUSE_UNICODE_MSLU=no
e6cc62c6 36232
a72a4bfa
VS
36233fi
36234
36235 fi
10f2d63a
VZ
36236fi
36237
10f2d63a 36238if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 36239 cat >>confdefs.h <<\_ACEOF
10f2d63a 36240#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 36241_ACEOF
10f2d63a
VZ
36242
36243fi
36244
8284b0c5 36245
10f2d63a 36246if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 36247 cat >>confdefs.h <<\_ACEOF
10f2d63a 36248#define wxUSE_POSTSCRIPT 1
e6cc62c6 36249_ACEOF
10f2d63a
VZ
36250
36251fi
36252
e6cc62c6 36253cat >>confdefs.h <<\_ACEOF
10f2d63a 36254#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 36255_ACEOF
10f2d63a 36256
8284b0c5 36257
e6cc62c6 36258cat >>confdefs.h <<\_ACEOF
10f2d63a 36259#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 36260_ACEOF
10f2d63a 36261
8284b0c5
MB
36262
36263
10f2d63a 36264if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 36265 cat >>confdefs.h <<\_ACEOF
10f2d63a 36266#define wxUSE_CONSTRAINTS 1
e6cc62c6 36267_ACEOF
10f2d63a
VZ
36268
36269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36270fi
36271
3879ecda 36272if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 36273 cat >>confdefs.h <<\_ACEOF
10f2d63a 36274#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 36275_ACEOF
10f2d63a 36276
1772d20c 36277 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
36278fi
36279
36280if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 36281 cat >>confdefs.h <<\_ACEOF
10f2d63a 36282#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 36283_ACEOF
10f2d63a
VZ
36284
36285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36286 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36287 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36288 fi
36289fi
36290
36291if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 36292 cat >>confdefs.h <<\_ACEOF
10f2d63a 36293#define wxUSE_HELP 1
e6cc62c6 36294_ACEOF
10f2d63a
VZ
36295
36296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 36297
77e13408 36298 if test "$wxUSE_MSW" = 1; then
031d8228 36299 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 36300 cat >>confdefs.h <<\_ACEOF
29fd3c0c 36301#define wxUSE_MS_HTML_HELP 1
e6cc62c6 36302_ACEOF
29fd3c0c 36303
3e44f09d 36304 fi
3379ed37 36305 fi
031d8228
VS
36306
36307 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36308 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 36309 cat >>confdefs.h <<\_ACEOF
031d8228 36310#define wxUSE_WXHTML_HELP 1
e6cc62c6 36311_ACEOF
031d8228
VS
36312
36313 else
e6cc62c6
VS
36314 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36315echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
36316 wxUSE_WXHTML_HELP=no
36317 fi
36318 fi
10f2d63a
VZ
36319fi
36320
36321if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36322 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36323 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36324echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 36325 else
e6cc62c6 36326 cat >>confdefs.h <<\_ACEOF
10f2d63a 36327#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 36328_ACEOF
10f2d63a
VZ
36329
36330 fi
36331 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36332fi
36333
e6cc62c6
VS
36334if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36335 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36336echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36337 { (exit 1); exit 1; }; }
36338fi
36339
36340
f95e4495 36341if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
e6cc62c6
VS
36342 -o "$wxUSE_CLIPBOARD" = "yes" \
36343 -o "$wxUSE_OLE" = "yes" \
36344 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36345
36346for ac_header in ole2.h
36347do
36348as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36349if eval "test \"\${$as_ac_Header+set}\" = set"; then
36350 echo "$as_me:$LINENO: checking for $ac_header" >&5
36351echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36352if eval "test \"\${$as_ac_Header+set}\" = set"; then
36353 echo $ECHO_N "(cached) $ECHO_C" >&6
36354fi
36355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36356echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36357else
36358 # Is the header compilable?
36359echo "$as_me:$LINENO: checking $ac_header usability" >&5
36360echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36361cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36362/* confdefs.h. */
36363_ACEOF
36364cat confdefs.h >>conftest.$ac_ext
36365cat >>conftest.$ac_ext <<_ACEOF
36366/* end confdefs.h. */
36367$ac_includes_default
36368#include <$ac_header>
36369_ACEOF
36370rm -f conftest.$ac_objext
36371if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 36372 (eval $ac_compile) 2>conftest.er1
e6cc62c6 36373 ac_status=$?
32ddf007
VS
36374 grep -v '^ *+' conftest.er1 >conftest.err
36375 rm -f conftest.er1
36376 cat conftest.err >&5
e6cc62c6
VS
36377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36378 (exit $ac_status); } &&
32ddf007
VS
36379 { ac_try='test -z "$ac_c_werror_flag"
36380 || test ! -s conftest.err'
36381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36382 (eval $ac_try) 2>&5
36383 ac_status=$?
36384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36385 (exit $ac_status); }; } &&
36386 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
36387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36388 (eval $ac_try) 2>&5
36389 ac_status=$?
36390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36391 (exit $ac_status); }; }; then
36392 ac_header_compiler=yes
36393else
36394 echo "$as_me: failed program was:" >&5
36395sed 's/^/| /' conftest.$ac_ext >&5
36396
36397ac_header_compiler=no
36398fi
32ddf007 36399rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
36400echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36401echo "${ECHO_T}$ac_header_compiler" >&6
36402
36403# Is the header present?
36404echo "$as_me:$LINENO: checking $ac_header presence" >&5
36405echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36406cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36407/* confdefs.h. */
36408_ACEOF
36409cat confdefs.h >>conftest.$ac_ext
36410cat >>conftest.$ac_ext <<_ACEOF
36411/* end confdefs.h. */
36412#include <$ac_header>
36413_ACEOF
36414if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36416 ac_status=$?
36417 grep -v '^ *+' conftest.er1 >conftest.err
36418 rm -f conftest.er1
36419 cat conftest.err >&5
36420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36421 (exit $ac_status); } >/dev/null; then
36422 if test -s conftest.err; then
36423 ac_cpp_err=$ac_c_preproc_warn_flag
32ddf007 36424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
36425 else
36426 ac_cpp_err=
36427 fi
36428else
36429 ac_cpp_err=yes
36430fi
36431if test -z "$ac_cpp_err"; then
36432 ac_header_preproc=yes
36433else
36434 echo "$as_me: failed program was:" >&5
36435sed 's/^/| /' conftest.$ac_ext >&5
36436
36437 ac_header_preproc=no
36438fi
36439rm -f conftest.err conftest.$ac_ext
36440echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36441echo "${ECHO_T}$ac_header_preproc" >&6
36442
36443# So? What about this header?
32ddf007
VS
36444case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36445 yes:no: )
e6cc62c6
VS
36446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36447echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32ddf007
VS
36448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36449echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36450 ac_header_preproc=yes
e6cc62c6 36451 ;;
32ddf007 36452 no:yes:* )
e6cc62c6
VS
36453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36454echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32ddf007
VS
36455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36456echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36458echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36460echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
36461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36462echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32ddf007
VS
36463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36464echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
36465 (
36466 cat <<\_ASBOX
32ddf007
VS
36467## ----------------------------------------- ##
36468## Report this to wx-dev@lists.wxwindows.org ##
36469## ----------------------------------------- ##
e6cc62c6
VS
36470_ASBOX
36471 ) |
36472 sed "s/^/$as_me: WARNING: /" >&2
36473 ;;
36474esac
36475echo "$as_me:$LINENO: checking for $ac_header" >&5
36476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36477if eval "test \"\${$as_ac_Header+set}\" = set"; then
36478 echo $ECHO_N "(cached) $ECHO_C" >&6
36479else
32ddf007 36480 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
36481fi
36482echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36483echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36484
10f2d63a 36485fi
e6cc62c6
VS
36486if test `eval echo '${'$as_ac_Header'}'` = yes; then
36487 cat >>confdefs.h <<_ACEOF
36488#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36489_ACEOF
10f2d63a 36490
10f2d63a 36491fi
e6cc62c6 36492
10f2d63a
VZ
36493done
36494
8284b0c5 36495
2b9bdf71
VZ
36496 if test "$ac_cv_header_ole2_h" = "yes" ; then
36497 if test "$GCC" = yes ; then
8284b0c5
MB
36498
36499
e6cc62c6
VS
36500 ac_ext=cc
36501ac_cpp='$CXXCPP $CPPFLAGS'
36502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36505
36506
36507 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36508echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36509 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36510/* confdefs.h. */
36511_ACEOF
36512cat confdefs.h >>conftest.$ac_ext
36513cat >>conftest.$ac_ext <<_ACEOF
36514/* end confdefs.h. */
8284b0c5
MB
36515#include <windows.h>
36516 #include <ole2.h>
e6cc62c6
VS
36517int
36518main ()
36519{
8284b0c5 36520
e6cc62c6
VS
36521 ;
36522 return 0;
36523}
36524_ACEOF
36525rm -f conftest.$ac_objext
36526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 36527 (eval $ac_compile) 2>conftest.er1
e6cc62c6 36528 ac_status=$?
32ddf007
VS
36529 grep -v '^ *+' conftest.er1 >conftest.err
36530 rm -f conftest.er1
36531 cat conftest.err >&5
e6cc62c6
VS
36532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36533 (exit $ac_status); } &&
32ddf007
VS
36534 { ac_try='test -z "$ac_cxx_werror_flag"
36535 || test ! -s conftest.err'
36536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36537 (eval $ac_try) 2>&5
36538 ac_status=$?
36539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36540 (exit $ac_status); }; } &&
36541 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
36542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36543 (eval $ac_try) 2>&5
36544 ac_status=$?
36545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); }; }; then
36547 echo "$as_me:$LINENO: result: no" >&5
36548echo "${ECHO_T}no" >&6
36549else
36550 echo "$as_me: failed program was:" >&5
36551sed 's/^/| /' conftest.$ac_ext >&5
36552
36553echo "$as_me:$LINENO: result: yes" >&5
36554echo "${ECHO_T}yes" >&6
8284b0c5
MB
36555 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36556fi
32ddf007 36557rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 36558 ac_ext=c
8284b0c5 36559ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
36560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36562ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 36563
2b9bdf71 36564 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 36565 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
f95e4495
VS
36566 if test "$wxUSE_OLE" = "yes" ; then
36567 cat >>confdefs.h <<\_ACEOF
4f11a343 36568#define wxUSE_OLE 1
e6cc62c6 36569_ACEOF
4f11a343 36570
f95e4495 36571 fi
2b9bdf71
VZ
36572 fi
36573
f95e4495
VS
36574 if test "$wxUSE_DATAOBJ" = "yes" ; then
36575 cat >>confdefs.h <<\_ACEOF
2b9bdf71 36576#define wxUSE_DATAOBJ 1
e6cc62c6 36577_ACEOF
2b9bdf71 36578
f95e4495 36579 fi
2b9bdf71 36580 else
e6cc62c6
VS
36581 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36582echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
36583
36584 wxUSE_CLIPBOARD=no
36585 wxUSE_DRAG_AND_DROP=no
36586 wxUSE_DATAOBJ=no
3bce6687
JS
36587 wxUSE_OLE=no
36588 fi
36589
36590 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 36591 cat >>confdefs.h <<\_ACEOF
3bce6687 36592#define wxUSE_METAFILE 1
e6cc62c6 36593_ACEOF
3bce6687
JS
36594
36595
e6cc62c6 36596 cat >>confdefs.h <<\_ACEOF
3bce6687 36597#define wxUSE_ENH_METAFILE 1
e6cc62c6 36598_ACEOF
3bce6687
JS
36599
36600 fi
36601fi
36602
2b9bdf71
VZ
36603if test "$wxUSE_IPC" = "yes"; then
36604 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
36605 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
36606echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
36607 fi
36608
e6cc62c6 36609 cat >>confdefs.h <<\_ACEOF
2b9bdf71 36610#define wxUSE_IPC 1
e6cc62c6 36611_ACEOF
2b9bdf71
VZ
36612
36613fi
36614
36615if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 36616 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
36617 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36618echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
36619 wxUSE_CLIPBOARD=no
36620 fi
36621
36622 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 36623 cat >>confdefs.h <<\_ACEOF
2b9bdf71 36624#define wxUSE_CLIPBOARD 1
e6cc62c6 36625_ACEOF
2b9bdf71 36626
8284b0c5 36627
e6cc62c6 36628 cat >>confdefs.h <<\_ACEOF
673f4220 36629#define wxUSE_DATAOBJ 1
e6cc62c6 36630_ACEOF
673f4220 36631
6c657b52 36632 fi
2b9bdf71
VZ
36633fi
36634
36635if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36636 if test "$wxUSE_GTK" = 1; then
36637 if test "$WXGTK12" != 1; then
e6cc62c6
VS
36638 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36639echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
36640 wxUSE_DRAG_AND_DROP=no
36641 fi
36642 fi
36643
2b9bdf71 36644 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
36645 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36646echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
36647 wxUSE_DRAG_AND_DROP=no
36648 fi
36649
f79bd02d 36650 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
36651 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36652echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
36653 wxUSE_DRAG_AND_DROP=no
36654 fi
36655
6c657b52 36656 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
36657 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36658echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
36659 wxUSE_DRAG_AND_DROP=no
36660 fi
36661
10f2d63a 36662 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 36663 cat >>confdefs.h <<\_ACEOF
10f2d63a 36664#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 36665_ACEOF
10f2d63a
VZ
36666
36667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36668 fi
36669
36670fi
36671
36672if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 36673 cat >>confdefs.h <<\_ACEOF
10f2d63a 36674#define wxUSE_SPLINES 1
e6cc62c6 36675_ACEOF
10f2d63a
VZ
36676
36677fi
36678
8284b0c5 36679
1e6feb95
VZ
36680USES_CONTROLS=0
36681if test "$wxUSE_CONTROLS" = "yes"; then
36682 USES_CONTROLS=1
36683fi
36684
10f2d63a 36685if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 36686 cat >>confdefs.h <<\_ACEOF
10f2d63a 36687#define wxUSE_ACCEL 1
e6cc62c6 36688_ACEOF
10f2d63a 36689
1e6feb95
VZ
36690 USES_CONTROLS=1
36691fi
36692
36693if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 36694 cat >>confdefs.h <<\_ACEOF
1e6feb95 36695#define wxUSE_BUTTON 1
e6cc62c6 36696_ACEOF
1e6feb95
VZ
36697
36698 USES_CONTROLS=1
36699fi
36700
36701if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 36702 cat >>confdefs.h <<\_ACEOF
1e6feb95 36703#define wxUSE_BMPBUTTON 1
e6cc62c6 36704_ACEOF
1e6feb95
VZ
36705
36706 USES_CONTROLS=1
36707fi
36708
36709if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 36710 cat >>confdefs.h <<\_ACEOF
1e6feb95 36711#define wxUSE_CALENDARCTRL 1
e6cc62c6 36712_ACEOF
1e6feb95
VZ
36713
36714 USES_CONTROLS=1
36715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
36716fi
36717
36718if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 36719 cat >>confdefs.h <<\_ACEOF
10f2d63a 36720#define wxUSE_CARET 1
e6cc62c6 36721_ACEOF
10f2d63a 36722
1e6feb95 36723 USES_CONTROLS=1
10f2d63a
VZ
36724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36725fi
36726
36727if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 36728 cat >>confdefs.h <<\_ACEOF
10f2d63a 36729#define wxUSE_COMBOBOX 1
e6cc62c6 36730_ACEOF
10f2d63a 36731
1e6feb95 36732 USES_CONTROLS=1
10f2d63a
VZ
36733fi
36734
36735if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 36736 cat >>confdefs.h <<\_ACEOF
10f2d63a 36737#define wxUSE_CHOICE 1
e6cc62c6 36738_ACEOF
10f2d63a 36739
1e6feb95 36740 USES_CONTROLS=1
10f2d63a
VZ
36741fi
36742
36743if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 36744 cat >>confdefs.h <<\_ACEOF
10f2d63a 36745#define wxUSE_CHECKBOX 1
e6cc62c6 36746_ACEOF
10f2d63a 36747
1e6feb95 36748 USES_CONTROLS=1
10f2d63a
VZ
36749fi
36750
36751if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 36752 cat >>confdefs.h <<\_ACEOF
10f2d63a 36753#define wxUSE_CHECKLISTBOX 1
e6cc62c6 36754_ACEOF
10f2d63a 36755
1e6feb95 36756 USES_CONTROLS=1
10f2d63a
VZ
36757 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36758fi
36759
da494b40 36760if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 36761 cat >>confdefs.h <<\_ACEOF
da494b40 36762#define wxUSE_DISPLAY 1
e6cc62c6 36763_ACEOF
da494b40
MB
36764
36765 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36766fi
36767
10f2d63a 36768if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 36769 cat >>confdefs.h <<\_ACEOF
10f2d63a 36770#define wxUSE_GAUGE 1
e6cc62c6 36771_ACEOF
10f2d63a 36772
1e6feb95 36773 USES_CONTROLS=1
10f2d63a
VZ
36774fi
36775
d6a55c4b 36776if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 36777 cat >>confdefs.h <<\_ACEOF
d6a55c4b 36778#define wxUSE_GRID 1
e6cc62c6 36779_ACEOF
10f2d63a 36780
1e6feb95 36781 USES_CONTROLS=1
d6a55c4b 36782 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
36783fi
36784
36785if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36786 cat >>confdefs.h <<\_ACEOF
10f2d63a 36787#define wxUSE_IMAGLIST 1
e6cc62c6 36788_ACEOF
10f2d63a
VZ
36789
36790fi
36791
0e012a93
VZ
36792if test "$wxUSE_LISTBOOK" = "yes"; then
36793 cat >>confdefs.h <<\_ACEOF
36794#define wxUSE_LISTBOOK 1
36795_ACEOF
36796
36797 USES_CONTROLS=1
36798fi
36799
10f2d63a 36800if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 36801 cat >>confdefs.h <<\_ACEOF
10f2d63a 36802#define wxUSE_LISTBOX 1
e6cc62c6 36803_ACEOF
10f2d63a 36804
1e6feb95 36805 USES_CONTROLS=1
10f2d63a
VZ
36806fi
36807
36808if test "$wxUSE_LISTCTRL" = "yes"; then
36809 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36810 cat >>confdefs.h <<\_ACEOF
10f2d63a 36811#define wxUSE_LISTCTRL 1
e6cc62c6 36812_ACEOF
10f2d63a 36813
1e6feb95 36814 USES_CONTROLS=1
10f2d63a
VZ
36815 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36816 else
e6cc62c6
VS
36817 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36818echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
36819 fi
36820fi
36821
36822if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 36823 cat >>confdefs.h <<\_ACEOF
10f2d63a 36824#define wxUSE_NOTEBOOK 1
e6cc62c6 36825_ACEOF
10f2d63a 36826
1e6feb95 36827 USES_CONTROLS=1
10f2d63a
VZ
36828 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36829fi
36830
24176f2c 36831
10f2d63a 36832if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 36833 cat >>confdefs.h <<\_ACEOF
10f2d63a 36834#define wxUSE_RADIOBOX 1
e6cc62c6 36835_ACEOF
10f2d63a 36836
1e6feb95 36837 USES_CONTROLS=1
10f2d63a
VZ
36838fi
36839
36840if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 36841 cat >>confdefs.h <<\_ACEOF
10f2d63a 36842#define wxUSE_RADIOBTN 1
e6cc62c6 36843_ACEOF
10f2d63a 36844
1e6feb95 36845 USES_CONTROLS=1
10f2d63a
VZ
36846fi
36847
36848if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 36849 cat >>confdefs.h <<\_ACEOF
10f2d63a 36850#define wxUSE_SASH 1
e6cc62c6 36851_ACEOF
10f2d63a
VZ
36852
36853 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36854fi
36855
36856if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 36857 cat >>confdefs.h <<\_ACEOF
10f2d63a 36858#define wxUSE_SCROLLBAR 1
e6cc62c6 36859_ACEOF
10f2d63a 36860
1e6feb95 36861 USES_CONTROLS=1
741a9306 36862 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
36863fi
36864
36865if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 36866 cat >>confdefs.h <<\_ACEOF
10f2d63a 36867#define wxUSE_SLIDER 1
e6cc62c6 36868_ACEOF
10f2d63a 36869
1e6feb95 36870 USES_CONTROLS=1
10f2d63a
VZ
36871fi
36872
36873if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 36874 cat >>confdefs.h <<\_ACEOF
10f2d63a 36875#define wxUSE_SPINBTN 1
e6cc62c6 36876_ACEOF
10f2d63a 36877
1e6feb95 36878 USES_CONTROLS=1
10f2d63a
VZ
36879fi
36880
56cfaa52 36881if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 36882 cat >>confdefs.h <<\_ACEOF
56cfaa52 36883#define wxUSE_SPINCTRL 1
e6cc62c6 36884_ACEOF
56cfaa52 36885
1e6feb95 36886 USES_CONTROLS=1
56cfaa52
RR
36887fi
36888
10f2d63a 36889if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 36890 cat >>confdefs.h <<\_ACEOF
10f2d63a 36891#define wxUSE_SPLITTER 1
e6cc62c6 36892_ACEOF
10f2d63a
VZ
36893
36894 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36895fi
36896
36897if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 36898 cat >>confdefs.h <<\_ACEOF
10f2d63a 36899#define wxUSE_STATBMP 1
e6cc62c6 36900_ACEOF
10f2d63a 36901
1e6feb95 36902 USES_CONTROLS=1
10f2d63a
VZ
36903fi
36904
36905if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 36906 cat >>confdefs.h <<\_ACEOF
10f2d63a 36907#define wxUSE_STATBOX 1
e6cc62c6 36908_ACEOF
10f2d63a 36909
1e6feb95
VZ
36910 USES_CONTROLS=1
36911fi
36912
36913if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 36914 cat >>confdefs.h <<\_ACEOF
1e6feb95 36915#define wxUSE_STATTEXT 1
e6cc62c6 36916_ACEOF
1e6feb95
VZ
36917
36918 USES_CONTROLS=1
10f2d63a
VZ
36919fi
36920
36921if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 36922 cat >>confdefs.h <<\_ACEOF
10f2d63a 36923#define wxUSE_STATLINE 1
e6cc62c6 36924_ACEOF
10f2d63a 36925
89e6bf6d 36926 USES_CONTROLS=1
10f2d63a
VZ
36927fi
36928
36929if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 36930 cat >>confdefs.h <<\_ACEOF
10f2d63a 36931#define wxUSE_STATUSBAR 1
e6cc62c6 36932_ACEOF
10f2d63a 36933
1e6feb95 36934 USES_CONTROLS=1
698dcdb6 36935
2286341c 36936 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
36937fi
36938
36939if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 36940 cat >>confdefs.h <<\_ACEOF
10f2d63a 36941#define wxUSE_TAB_DIALOG 1
e6cc62c6 36942_ACEOF
10f2d63a
VZ
36943
36944 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36945fi
36946
1e6feb95 36947if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 36948 cat >>confdefs.h <<\_ACEOF
1e6feb95 36949#define wxUSE_TEXTCTRL 1
e6cc62c6 36950_ACEOF
1e6feb95
VZ
36951
36952 USES_CONTROLS=1
36953 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36954fi
36955
1db8dc4a 36956if test "$wxUSE_TOGGLEBTN" = "yes"; then
0f87e84c 36957 if test "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
36958 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36959echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
36960 wxUSE_TOGGLEBTN=no
36961 fi
36962 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
36963 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36964echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
36965 wxUSE_TOGGLEBTN=no
36966 fi
36967
36968 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 36969 cat >>confdefs.h <<\_ACEOF
1db8dc4a 36970#define wxUSE_TOGGLEBTN 1
e6cc62c6 36971_ACEOF
1db8dc4a 36972
1e6feb95 36973 USES_CONTROLS=1
a45d7ab7 36974 fi
1db8dc4a
VZ
36975fi
36976
360d6699 36977if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 36978 cat >>confdefs.h <<\_ACEOF
360d6699 36979#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 36980_ACEOF
360d6699
VZ
36981
36982 wxUSE_TOOLBAR="yes"
1e6feb95 36983 USES_CONTROLS=1
360d6699
VZ
36984fi
36985
10f2d63a 36986if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 36987 cat >>confdefs.h <<\_ACEOF
10f2d63a 36988#define wxUSE_TOOLBAR 1
e6cc62c6 36989_ACEOF
10f2d63a 36990
1e6feb95 36991 USES_CONTROLS=1
698dcdb6 36992
360d6699
VZ
36993 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36994 wxUSE_TOOLBAR_NATIVE="yes"
36995 fi
36996
1e6feb95 36997 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 36998 cat >>confdefs.h <<\_ACEOF
360d6699 36999#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 37000_ACEOF
360d6699 37001
1e6feb95
VZ
37002 USES_CONTROLS=1
37003 fi
37004
37005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
37006fi
37007
10f2d63a
VZ
37008if test "$wxUSE_TOOLTIPS" = "yes"; then
37009 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
37010 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
37011echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 37012 else
89e6bf6d 37013 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
37014 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
37015echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 37016 else
e6cc62c6 37017 cat >>confdefs.h <<\_ACEOF
10f2d63a 37018#define wxUSE_TOOLTIPS 1
e6cc62c6 37019_ACEOF
10f2d63a
VZ
37020
37021 fi
37022 fi
37023fi
37024
37025if test "$wxUSE_TREECTRL" = "yes"; then
37026 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 37027 cat >>confdefs.h <<\_ACEOF
10f2d63a 37028#define wxUSE_TREECTRL 1
e6cc62c6 37029_ACEOF
10f2d63a 37030
1e6feb95 37031 USES_CONTROLS=1
10f2d63a
VZ
37032 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
37033 else
e6cc62c6
VS
37034 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
37035echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
37036 fi
37037fi
37038
9f41d601 37039if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 37040 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
37041 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
37042echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 37043 else
833a51f6
MB
37044 if test "$wxUSE_PM" = 1; then
37045 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 37046echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
37047 else
37048 cat >>confdefs.h <<\_ACEOF
9f41d601 37049#define wxUSE_POPUPWIN 1
e6cc62c6 37050_ACEOF
9f41d601 37051
8284b0c5 37052
833a51f6 37053 USES_CONTROLS=1
485cf710 37054 fi
6abe4b65 37055 fi
9f41d601
RR
37056fi
37057
dd964dcc 37058if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 37059 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
37060 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
37061echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 37062 else
e6cc62c6 37063 cat >>confdefs.h <<\_ACEOF
dd964dcc 37064#define wxUSE_TIPWINDOW 1
e6cc62c6 37065_ACEOF
dd964dcc 37066
3c011993 37067 fi
dd964dcc
VZ
37068fi
37069
1e6feb95 37070if test "$USES_CONTROLS" = 1; then
e6cc62c6 37071 cat >>confdefs.h <<\_ACEOF
1e6feb95 37072#define wxUSE_CONTROLS 1
e6cc62c6 37073_ACEOF
10f2d63a 37074
10f2d63a
VZ
37075fi
37076
8284b0c5 37077
e46d2a18
VS
37078if test "$wxUSE_ACCESSIBILITY" = "yes"; then
37079 cat >>confdefs.h <<\_ACEOF
37080#define wxUSE_ACCESSIBILITY 1
37081_ACEOF
37082
37083 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
37084fi
1e6feb95 37085
24fd6d87 37086if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 37087 cat >>confdefs.h <<\_ACEOF
24fd6d87 37088#define wxUSE_DRAGIMAGE 1
e6cc62c6 37089_ACEOF
24fd6d87
VZ
37090
37091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
37092fi
37093
e46d2a18 37094if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 37095 cat >>confdefs.h <<\_ACEOF
e46d2a18 37096#define wxUSE_EXCEPTIONS 1
e6cc62c6 37097_ACEOF
7bb2947d 37098
e46d2a18
VS
37099fi
37100
37101USE_HTML=0
37102if test "$wxUSE_HTML" = "yes"; then
37103 cat >>confdefs.h <<\_ACEOF
37104#define wxUSE_HTML 1
37105_ACEOF
37106
37107 USE_HTML=1
37108 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
37109fi
37110
1e6feb95 37111if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 37112 cat >>confdefs.h <<\_ACEOF
1e6feb95 37113#define wxUSE_MENUS 1
e6cc62c6 37114_ACEOF
10f2d63a 37115
1e6feb95 37116 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
37117fi
37118
1e6feb95 37119if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 37120 cat >>confdefs.h <<\_ACEOF
1e6feb95 37121#define wxUSE_METAFILE 1
e6cc62c6 37122_ACEOF
10f2d63a 37123
10f2d63a
VZ
37124fi
37125
1e6feb95 37126if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 37127 cat >>confdefs.h <<\_ACEOF
1e6feb95 37128#define wxUSE_MIMETYPE 1
e6cc62c6 37129_ACEOF
10f2d63a 37130
10f2d63a
VZ
37131fi
37132
37133if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 37134 cat >>confdefs.h <<\_ACEOF
10f2d63a 37135#define wxUSE_MINIFRAME 1
e6cc62c6 37136_ACEOF
10f2d63a
VZ
37137
37138 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
37139fi
37140
e46d2a18 37141if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 37142 cat >>confdefs.h <<\_ACEOF
e46d2a18 37143#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 37144_ACEOF
10f2d63a 37145
e46d2a18
VS
37146 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
37147 "$TOOLKIT" = "MOTIF"; then
37148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37149 fi
10f2d63a
VZ
37150fi
37151
e46d2a18 37152
10f2d63a 37153if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 37154 cat >>confdefs.h <<\_ACEOF
1e487827 37155#define wxUSE_VALIDATORS 1
e6cc62c6 37156_ACEOF
703e0a69 37157
698dcdb6
VZ
37158 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37159fi
37160
edae8572 37161if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 37162 cat >>confdefs.h <<\_ACEOF
edae8572 37163#define wxUSE_PALETTE 1
e6cc62c6 37164_ACEOF
edae8572
VZ
37165
37166fi
37167
e46d2a18
VS
37168if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37169 LIBS=" -lunicows $LIBS"
37170fi
37171
37172
698dcdb6 37173if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 37174 cat >>confdefs.h <<\_ACEOF
698dcdb6 37175#define wxUSE_IMAGE 1
e6cc62c6 37176_ACEOF
698dcdb6 37177
698dcdb6 37178
e46d2a18
VS
37179 if test "$wxUSE_GIF" = "yes" ; then
37180 cat >>confdefs.h <<\_ACEOF
698dcdb6 37181#define wxUSE_GIF 1
e6cc62c6 37182_ACEOF
698dcdb6 37183
e46d2a18 37184 fi
698dcdb6 37185
e46d2a18
VS
37186 if test "$wxUSE_PCX" = "yes" ; then
37187 cat >>confdefs.h <<\_ACEOF
698dcdb6 37188#define wxUSE_PCX 1
e6cc62c6 37189_ACEOF
698dcdb6 37190
e46d2a18 37191 fi
698dcdb6 37192
e46d2a18
VS
37193 if test "$wxUSE_IFF" = "yes" ; then
37194 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 37195#define wxUSE_IFF 1
e6cc62c6 37196_ACEOF
4b6b4dfc 37197
e46d2a18 37198 fi
4b6b4dfc 37199
e46d2a18
VS
37200 if test "$wxUSE_PNM" = "yes" ; then
37201 cat >>confdefs.h <<\_ACEOF
698dcdb6 37202#define wxUSE_PNM 1
e6cc62c6 37203_ACEOF
698dcdb6 37204
e46d2a18 37205 fi
698dcdb6 37206
e46d2a18
VS
37207 if test "$wxUSE_XPM" = "yes" ; then
37208 cat >>confdefs.h <<\_ACEOF
698dcdb6 37209#define wxUSE_XPM 1
e6cc62c6 37210_ACEOF
698dcdb6 37211
e46d2a18 37212 fi
698dcdb6 37213
e46d2a18
VS
37214 if test "$wxUSE_ICO_CUR" = "yes" ; then
37215 cat >>confdefs.h <<\_ACEOF
658974ae 37216#define wxUSE_ICO_CUR 1
e6cc62c6 37217_ACEOF
658974ae 37218
e46d2a18 37219 fi
a72a4bfa
VS
37220fi
37221
8284b0c5 37222
1e6feb95 37223if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 37224 cat >>confdefs.h <<\_ACEOF
1e6feb95 37225#define wxUSE_CHOICEDLG 1
e6cc62c6 37226_ACEOF
1e6feb95
VZ
37227
37228fi
37229
37230if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 37231 cat >>confdefs.h <<\_ACEOF
1e6feb95 37232#define wxUSE_COLOURDLG 1
e6cc62c6 37233_ACEOF
1e6feb95
VZ
37234
37235fi
37236
37237if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 37238 cat >>confdefs.h <<\_ACEOF
1e6feb95 37239#define wxUSE_FILEDLG 1
e6cc62c6 37240_ACEOF
1e6feb95
VZ
37241
37242fi
37243
8db37e06 37244if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 37245 cat >>confdefs.h <<\_ACEOF
8db37e06 37246#define wxUSE_FINDREPLDLG 1
e6cc62c6 37247_ACEOF
8db37e06
VZ
37248
37249fi
37250
1e6feb95 37251if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 37252 cat >>confdefs.h <<\_ACEOF
1e6feb95 37253#define wxUSE_FONTDLG 1
e6cc62c6 37254_ACEOF
1e6feb95
VZ
37255
37256fi
37257
37258if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 37259 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
37260 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37261echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 37262 else
e6cc62c6 37263 cat >>confdefs.h <<\_ACEOF
1e6feb95 37264#define wxUSE_DIRDLG 1
e6cc62c6 37265_ACEOF
1e6feb95 37266
1e6feb95
VZ
37267 fi
37268fi
37269
37270if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 37271 cat >>confdefs.h <<\_ACEOF
1e6feb95 37272#define wxUSE_MSGDLG 1
e6cc62c6 37273_ACEOF
1e6feb95
VZ
37274
37275fi
37276
37277if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 37278 cat >>confdefs.h <<\_ACEOF
1e6feb95 37279#define wxUSE_NUMBERDLG 1
e6cc62c6 37280_ACEOF
1e6feb95
VZ
37281
37282fi
37283
37284if test "$wxUSE_PROGRESSDLG" = "yes"; then
37285 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
37286 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37287echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 37288 else
e6cc62c6 37289 cat >>confdefs.h <<\_ACEOF
1e6feb95 37290#define wxUSE_PROGRESSDLG 1
e6cc62c6 37291_ACEOF
1e6feb95
VZ
37292
37293 fi
37294fi
37295
cbca9943 37296if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 37297 cat >>confdefs.h <<\_ACEOF
cbca9943 37298#define wxUSE_SPLASH 1
e6cc62c6 37299_ACEOF
cbca9943
VZ
37300
37301fi
37302
1e6feb95
VZ
37303if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37304 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
37305 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37306echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 37307 else
e6cc62c6 37308 cat >>confdefs.h <<\_ACEOF
1e6feb95 37309#define wxUSE_STARTUP_TIPS 1
e6cc62c6 37310_ACEOF
1e6feb95 37311
7b4a847f
RR
37312 fi
37313fi
579d8138 37314
8284b0c5 37315if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 37316 cat >>confdefs.h <<\_ACEOF
8284b0c5 37317#define wxUSE_TEXTDLG 1
e6cc62c6 37318_ACEOF
8284b0c5
MB
37319
37320fi
37321
37322if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 37323 cat >>confdefs.h <<\_ACEOF
8284b0c5 37324#define wxUSE_WIZARDDLG 1
e6cc62c6 37325_ACEOF
8284b0c5
MB
37326
37327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37328fi
37329
37330
37331if test "$cross_compiling" = "yes"; then
37332 OSINFO="\"$host\""
37333else
37334 OSINFO=`uname -s -r -m`
37335 OSINFO="\"$OSINFO\""
37336fi
37337
e6cc62c6 37338cat >>confdefs.h <<_ACEOF
8284b0c5 37339#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 37340_ACEOF
8284b0c5
MB
37341
37342
37343
37344if test "x$prefix" != "xNONE"; then
37345 wxPREFIX=$prefix
37346else
37347 wxPREFIX=$ac_default_prefix
37348fi
37349
e6cc62c6 37350cat >>confdefs.h <<_ACEOF
8284b0c5 37351#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 37352_ACEOF
8284b0c5
MB
37353
37354
e6cc62c6 37355top_builddir_wxconfig=`pwd`
52c71b80 37356
8284b0c5
MB
37357
37358
edd891e2
VS
37359CORE_BASE_LIBS="net base"
37360CORE_GUI_LIBS="adv core"
37361
37362if test "$wxUSE_XML" = "yes" ; then
37363 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37364fi
45293562
VS
37365if test "$wxUSE_ODBC" != "no" ; then
37366 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37367 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
37368fi
37369if test "$wxUSE_HTML" = "yes" ; then
37370 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37371fi
37372
57e7d4ac
VS
37373if test "$wxUSE_GUI" != "yes"; then
37374 CORE_GUI_LIBS=""
37375fi
37376
edd891e2
VS
37377
37378
37379
37380
37381
37382
8284b0c5
MB
37383
37384if test "$wxUSE_MAC" = 1 ; then
37385 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
37386fi
ac0c4cc3
DE
37387if test "$wxUSE_COCOA" = 1 ; then
37388 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37389fi
8284b0c5
MB
37390
37391
2b5f62a0
VZ
37392LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37393
37394have_cos=0
37395have_floor=0
e6cc62c6 37396
2b5f62a0
VZ
37397for ac_func in cos
37398do
e6cc62c6
VS
37399as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37400echo "$as_me:$LINENO: checking for $ac_func" >&5
37401echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37402if eval "test \"\${$as_ac_var+set}\" = set"; then
37403 echo $ECHO_N "(cached) $ECHO_C" >&6
37404else
37405 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37406/* confdefs.h. */
37407_ACEOF
37408cat confdefs.h >>conftest.$ac_ext
37409cat >>conftest.$ac_ext <<_ACEOF
37410/* end confdefs.h. */
32ddf007
VS
37411/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37413#define $ac_func innocuous_$ac_func
37414
2b5f62a0 37415/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37416 which can conflict with char $ac_func (); below.
37417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37418 <limits.h> exists even on freestanding compilers. */
32ddf007 37419
e6cc62c6
VS
37420#ifdef __STDC__
37421# include <limits.h>
37422#else
37423# include <assert.h>
37424#endif
32ddf007
VS
37425
37426#undef $ac_func
37427
2b5f62a0 37428/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37429#ifdef __cplusplus
37430extern "C"
37431{
37432#endif
2b5f62a0 37433/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37434 builtin and then its argument prototype would still apply. */
37435char $ac_func ();
2b5f62a0
VZ
37436/* The GNU C library defines this for functions which it implements
37437 to always fail with ENOSYS. Some functions are actually named
37438 something starting with __ and the normal name is an alias. */
37439#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37440choke me
37441#else
e6cc62c6
VS
37442char (*f) () = $ac_func;
37443#endif
37444#ifdef __cplusplus
37445}
2b5f62a0
VZ
37446#endif
37447
e6cc62c6
VS
37448int
37449main ()
37450{
37451return f != $ac_func;
37452 ;
37453 return 0;
37454}
37455_ACEOF
37456rm -f conftest.$ac_objext conftest$ac_exeext
37457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 37458 (eval $ac_link) 2>conftest.er1
e6cc62c6 37459 ac_status=$?
32ddf007
VS
37460 grep -v '^ *+' conftest.er1 >conftest.err
37461 rm -f conftest.er1
37462 cat conftest.err >&5
e6cc62c6
VS
37463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37464 (exit $ac_status); } &&
32ddf007
VS
37465 { ac_try='test -z "$ac_c_werror_flag"
37466 || test ! -s conftest.err'
37467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37468 (eval $ac_try) 2>&5
37469 ac_status=$?
37470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37471 (exit $ac_status); }; } &&
37472 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37474 (eval $ac_try) 2>&5
37475 ac_status=$?
37476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37477 (exit $ac_status); }; }; then
37478 eval "$as_ac_var=yes"
37479else
37480 echo "$as_me: failed program was:" >&5
37481sed 's/^/| /' conftest.$ac_ext >&5
37482
37483eval "$as_ac_var=no"
37484fi
32ddf007
VS
37485rm -f conftest.err conftest.$ac_objext \
37486 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37487fi
37488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37489echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37490if test `eval echo '${'$as_ac_var'}'` = yes; then
37491 cat >>confdefs.h <<_ACEOF
37492#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37493_ACEOF
2b5f62a0 37494 have_cos=1
2b5f62a0
VZ
37495fi
37496done
37497
e6cc62c6 37498
2b5f62a0
VZ
37499for ac_func in floor
37500do
e6cc62c6
VS
37501as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37502echo "$as_me:$LINENO: checking for $ac_func" >&5
37503echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37504if eval "test \"\${$as_ac_var+set}\" = set"; then
37505 echo $ECHO_N "(cached) $ECHO_C" >&6
37506else
37507 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37508/* confdefs.h. */
37509_ACEOF
37510cat confdefs.h >>conftest.$ac_ext
37511cat >>conftest.$ac_ext <<_ACEOF
37512/* end confdefs.h. */
32ddf007
VS
37513/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37515#define $ac_func innocuous_$ac_func
37516
2b5f62a0 37517/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37518 which can conflict with char $ac_func (); below.
37519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37520 <limits.h> exists even on freestanding compilers. */
32ddf007 37521
e6cc62c6
VS
37522#ifdef __STDC__
37523# include <limits.h>
37524#else
37525# include <assert.h>
37526#endif
32ddf007
VS
37527
37528#undef $ac_func
37529
2b5f62a0 37530/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37531#ifdef __cplusplus
37532extern "C"
37533{
37534#endif
2b5f62a0 37535/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37536 builtin and then its argument prototype would still apply. */
37537char $ac_func ();
2b5f62a0
VZ
37538/* The GNU C library defines this for functions which it implements
37539 to always fail with ENOSYS. Some functions are actually named
37540 something starting with __ and the normal name is an alias. */
37541#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37542choke me
37543#else
e6cc62c6
VS
37544char (*f) () = $ac_func;
37545#endif
37546#ifdef __cplusplus
37547}
2b5f62a0
VZ
37548#endif
37549
e6cc62c6
VS
37550int
37551main ()
37552{
37553return f != $ac_func;
37554 ;
37555 return 0;
37556}
37557_ACEOF
37558rm -f conftest.$ac_objext conftest$ac_exeext
37559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 37560 (eval $ac_link) 2>conftest.er1
e6cc62c6 37561 ac_status=$?
32ddf007
VS
37562 grep -v '^ *+' conftest.er1 >conftest.err
37563 rm -f conftest.er1
37564 cat conftest.err >&5
e6cc62c6
VS
37565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37566 (exit $ac_status); } &&
32ddf007
VS
37567 { ac_try='test -z "$ac_c_werror_flag"
37568 || test ! -s conftest.err'
37569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37570 (eval $ac_try) 2>&5
37571 ac_status=$?
37572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37573 (exit $ac_status); }; } &&
37574 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37576 (eval $ac_try) 2>&5
37577 ac_status=$?
37578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37579 (exit $ac_status); }; }; then
37580 eval "$as_ac_var=yes"
37581else
37582 echo "$as_me: failed program was:" >&5
37583sed 's/^/| /' conftest.$ac_ext >&5
37584
37585eval "$as_ac_var=no"
37586fi
32ddf007
VS
37587rm -f conftest.err conftest.$ac_objext \
37588 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37589fi
37590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37591echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37592if test `eval echo '${'$as_ac_var'}'` = yes; then
37593 cat >>confdefs.h <<_ACEOF
37594#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37595_ACEOF
2b5f62a0 37596 have_floor=1
2b5f62a0
VZ
37597fi
37598done
37599
e6cc62c6
VS
37600echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37601echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 37602if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
37603 echo "$as_me:$LINENO: result: yes" >&5
37604echo "${ECHO_T}yes" >&6
2b5f62a0 37605else
e6cc62c6
VS
37606 echo "$as_me:$LINENO: result: no" >&5
37607echo "${ECHO_T}no" >&6
2b5f62a0
VZ
37608 LIBS="$LIBS -lm"
37609 # use different functions to avoid configure caching
37610 have_sin=0
37611 have_ceil=0
e6cc62c6
VS
37612
37613for ac_func in sin
2b5f62a0 37614do
e6cc62c6
VS
37615as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37616echo "$as_me:$LINENO: checking for $ac_func" >&5
37617echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37618if eval "test \"\${$as_ac_var+set}\" = set"; then
37619 echo $ECHO_N "(cached) $ECHO_C" >&6
37620else
37621 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37622/* confdefs.h. */
37623_ACEOF
37624cat confdefs.h >>conftest.$ac_ext
37625cat >>conftest.$ac_ext <<_ACEOF
37626/* end confdefs.h. */
32ddf007
VS
37627/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37629#define $ac_func innocuous_$ac_func
37630
2b5f62a0 37631/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37632 which can conflict with char $ac_func (); below.
37633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37634 <limits.h> exists even on freestanding compilers. */
32ddf007 37635
e6cc62c6
VS
37636#ifdef __STDC__
37637# include <limits.h>
37638#else
37639# include <assert.h>
37640#endif
32ddf007
VS
37641
37642#undef $ac_func
37643
2b5f62a0 37644/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37645#ifdef __cplusplus
37646extern "C"
37647{
37648#endif
2b5f62a0 37649/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37650 builtin and then its argument prototype would still apply. */
37651char $ac_func ();
2b5f62a0
VZ
37652/* The GNU C library defines this for functions which it implements
37653 to always fail with ENOSYS. Some functions are actually named
37654 something starting with __ and the normal name is an alias. */
37655#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37656choke me
37657#else
e6cc62c6
VS
37658char (*f) () = $ac_func;
37659#endif
37660#ifdef __cplusplus
37661}
2b5f62a0
VZ
37662#endif
37663
e6cc62c6
VS
37664int
37665main ()
37666{
37667return f != $ac_func;
37668 ;
37669 return 0;
37670}
37671_ACEOF
37672rm -f conftest.$ac_objext conftest$ac_exeext
37673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 37674 (eval $ac_link) 2>conftest.er1
e6cc62c6 37675 ac_status=$?
32ddf007
VS
37676 grep -v '^ *+' conftest.er1 >conftest.err
37677 rm -f conftest.er1
37678 cat conftest.err >&5
e6cc62c6
VS
37679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680 (exit $ac_status); } &&
32ddf007
VS
37681 { ac_try='test -z "$ac_c_werror_flag"
37682 || test ! -s conftest.err'
37683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37684 (eval $ac_try) 2>&5
37685 ac_status=$?
37686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37687 (exit $ac_status); }; } &&
37688 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37690 (eval $ac_try) 2>&5
37691 ac_status=$?
37692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37693 (exit $ac_status); }; }; then
37694 eval "$as_ac_var=yes"
37695else
37696 echo "$as_me: failed program was:" >&5
37697sed 's/^/| /' conftest.$ac_ext >&5
37698
37699eval "$as_ac_var=no"
37700fi
32ddf007
VS
37701rm -f conftest.err conftest.$ac_objext \
37702 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37703fi
37704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37705echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37706if test `eval echo '${'$as_ac_var'}'` = yes; then
37707 cat >>confdefs.h <<_ACEOF
37708#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37709_ACEOF
2b5f62a0 37710 have_sin=1
2b5f62a0
VZ
37711fi
37712done
37713
e6cc62c6
VS
37714
37715for ac_func in ceil
2b5f62a0 37716do
e6cc62c6
VS
37717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37718echo "$as_me:$LINENO: checking for $ac_func" >&5
37719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37720if eval "test \"\${$as_ac_var+set}\" = set"; then
37721 echo $ECHO_N "(cached) $ECHO_C" >&6
37722else
37723 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37724/* confdefs.h. */
37725_ACEOF
37726cat confdefs.h >>conftest.$ac_ext
37727cat >>conftest.$ac_ext <<_ACEOF
37728/* end confdefs.h. */
32ddf007
VS
37729/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37731#define $ac_func innocuous_$ac_func
37732
2b5f62a0 37733/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37734 which can conflict with char $ac_func (); below.
37735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37736 <limits.h> exists even on freestanding compilers. */
32ddf007 37737
e6cc62c6
VS
37738#ifdef __STDC__
37739# include <limits.h>
37740#else
37741# include <assert.h>
37742#endif
32ddf007
VS
37743
37744#undef $ac_func
37745
2b5f62a0 37746/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37747#ifdef __cplusplus
37748extern "C"
37749{
37750#endif
2b5f62a0 37751/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37752 builtin and then its argument prototype would still apply. */
37753char $ac_func ();
2b5f62a0
VZ
37754/* The GNU C library defines this for functions which it implements
37755 to always fail with ENOSYS. Some functions are actually named
37756 something starting with __ and the normal name is an alias. */
37757#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37758choke me
37759#else
e6cc62c6
VS
37760char (*f) () = $ac_func;
37761#endif
37762#ifdef __cplusplus
37763}
2b5f62a0
VZ
37764#endif
37765
e6cc62c6
VS
37766int
37767main ()
37768{
37769return f != $ac_func;
37770 ;
37771 return 0;
37772}
37773_ACEOF
37774rm -f conftest.$ac_objext conftest$ac_exeext
37775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32ddf007 37776 (eval $ac_link) 2>conftest.er1
e6cc62c6 37777 ac_status=$?
32ddf007
VS
37778 grep -v '^ *+' conftest.er1 >conftest.err
37779 rm -f conftest.er1
37780 cat conftest.err >&5
e6cc62c6
VS
37781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37782 (exit $ac_status); } &&
32ddf007
VS
37783 { ac_try='test -z "$ac_c_werror_flag"
37784 || test ! -s conftest.err'
37785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37786 (eval $ac_try) 2>&5
37787 ac_status=$?
37788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789 (exit $ac_status); }; } &&
37790 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37792 (eval $ac_try) 2>&5
37793 ac_status=$?
37794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37795 (exit $ac_status); }; }; then
37796 eval "$as_ac_var=yes"
37797else
37798 echo "$as_me: failed program was:" >&5
37799sed 's/^/| /' conftest.$ac_ext >&5
37800
37801eval "$as_ac_var=no"
37802fi
32ddf007
VS
37803rm -f conftest.err conftest.$ac_objext \
37804 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37805fi
37806echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37807echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37808if test `eval echo '${'$as_ac_var'}'` = yes; then
37809 cat >>confdefs.h <<_ACEOF
37810#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37811_ACEOF
2b5f62a0 37812 have_ceil=1
2b5f62a0
VZ
37813fi
37814done
37815
e6cc62c6
VS
37816 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37817echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 37818 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
37819 echo "$as_me:$LINENO: result: yes" >&5
37820echo "${ECHO_T}yes" >&6
2b5f62a0 37821 else
e6cc62c6
VS
37822 echo "$as_me:$LINENO: result: no" >&5
37823echo "${ECHO_T}no" >&6
2b5f62a0
VZ
37824 # not sure we should warn the user, crash, etc.
37825 fi
37826fi
8284b0c5
MB
37827
37828if test "$wxUSE_GUI" = "yes"; then
37829
e6cc62c6 37830
8284b0c5
MB
37831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37832 drawing dynamic erase event exec font image \
1dd02ac0 37833 minimal propsize rotate shaped widgets render"
b625909c
VS
37834
37835 if test "$wxUSE_MONOLITHIC" != "yes"; then
37836 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37837 fi
8284b0c5
MB
37838else
37839 SAMPLES_SUBDIRS="console"
37840fi
37841
37842
e6cc62c6 37843INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 37844-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 37845
fddeb06b
VS
37846if test "$GXX" = yes ; then
37847 CXXWARNINGS="-Wall"
37848 fi
37849
37850EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37851
95318f7d 37852CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
37853CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37854CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
37855
37856
fddeb06b 37857LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 37858EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 37859EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 37860EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 37861EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
37862if test "$wxUSE_GUI" = "yes"; then
37863 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
37864fi
34b08d2c
VS
37865if test "$wxUSE_OPENGL" = "yes"; then
37866 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37867fi
fddeb06b
VS
37868
37869LDFLAGS="$LDFLAGS $PROFILE"
37870
8284b0c5
MB
37871if test "$wxUSE_GTK" = 1; then
37872 WXCONFIG_INCLUDE=
37873else
37874 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37875fi
37876
67c13b6c
VS
37877WXCONFIG_EXTRALIBS="$LIBS"
37878
37879if test "$wxUSE_REGEX" = "builtin" ; then
4996f261 37880 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
67c13b6c
VS
37881fi
37882if test "$wxUSE_EXPAT" = "builtin" ; then
37883 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37884fi
37885if test "$wxUSE_ODBC" = "builtin" ; then
37886 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37887fi
37888if test "$wxUSE_LIBTIFF" = "builtin" ; then
37889 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37890fi
37891if test "$wxUSE_LIBJPEG" = "builtin" ; then
37892 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37893fi
37894if test "$wxUSE_LIBPNG" = "builtin" ; then
37895 wxconfig_3rdparty="$wxconfig_3rdparty png"
37896fi
37897if test "$wxUSE_ZLIB" = "builtin" ; then
37898 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37899fi
bb41dcbe
VS
37900if test "$wxUSE_ODBC" = "builtin" ; then
37901 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37902fi
67c13b6c
VS
37903
37904for i in $wxconfig_3rdparty ; do
37905 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37906done
37907
37908
fe0895cf
VS
37909if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37910 WXUNIV=1
37911else
37912 WXUNIV=0
8284b0c5
MB
37913fi
37914
8284b0c5
MB
37915
37916
37917
37918
37919
37920
37921
672abd7a 37922
9747f85d
VS
37923if test $wxUSE_MONOLITHIC = "yes" ; then
37924 MONOLITHIC=1
37925else
37926 MONOLITHIC=0
37927fi
8284b0c5 37928
f93ca9fd
VS
37929if test $wxUSE_PLUGINS = "yes" ; then
37930 USE_PLUGINS=1
37931else
37932 USE_PLUGINS=0
37933fi
37934
bb41dcbe
VS
37935if test $wxUSE_ODBC != "no" ; then
37936 USE_ODBC=1
37937else
37938 USE_ODBC=0
37939fi
37940
029b47ad
VS
37941if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37942 OFFICIAL_BUILD=1
37943else
37944 OFFICIAL_BUILD=0
37945fi
37946
8ee2dd05
VS
37947
37948
37949
8284b0c5
MB
37950
37951
37952
37953
37954
37955
c74dc163 37956
34b08d2c 37957
672abd7a 37958
cf615ebb 37959
6c67131a
VS
37960
37961
bb41dcbe 37962
f93ca9fd
VS
37963
37964
37965
3527f29c 37966
89fe663f 37967TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
37968
37969
37970
37971
37972
ea66c762 37973
0f1bc9c2 37974
f95e4495
VS
37975 if test "x$BAKEFILE_HOST" = "x"; then
37976 BAKEFILE_HOST="${host}"
37977 fi
37978
fe0895cf 37979 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
37980
37981 if test -n "$ac_tool_prefix"; then
37982 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37983set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37984echo "$as_me:$LINENO: checking for $ac_word" >&5
37985echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37986if test "${ac_cv_prog_RANLIB+set}" = set; then
37987 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 37988else
fe0895cf
VS
37989 if test -n "$RANLIB"; then
37990 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 37991else
e6cc62c6
VS
37992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37993for as_dir in $PATH
37994do
37995 IFS=$as_save_IFS
37996 test -z "$as_dir" && as_dir=.
37997 for ac_exec_ext in '' $ac_executable_extensions; do
37998 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37999 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
38000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38001 break 2
38002 fi
38003done
38004done
38005
10f2d63a 38006fi
10f2d63a 38007fi
e6cc62c6 38008RANLIB=$ac_cv_prog_RANLIB
fe0895cf 38009if test -n "$RANLIB"; then
e6cc62c6
VS
38010 echo "$as_me:$LINENO: result: $RANLIB" >&5
38011echo "${ECHO_T}$RANLIB" >&6
38012else
38013 echo "$as_me:$LINENO: result: no" >&5
38014echo "${ECHO_T}no" >&6
38015fi
38016
38017fi
38018if test -z "$ac_cv_prog_RANLIB"; then
38019 ac_ct_RANLIB=$RANLIB
38020 # Extract the first word of "ranlib", so it can be a program name with args.
38021set dummy ranlib; ac_word=$2
38022echo "$as_me:$LINENO: checking for $ac_word" >&5
38023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38024if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
38025 echo $ECHO_N "(cached) $ECHO_C" >&6
38026else
38027 if test -n "$ac_ct_RANLIB"; then
38028 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
38029else
38030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38031for as_dir in $PATH
38032do
38033 IFS=$as_save_IFS
38034 test -z "$as_dir" && as_dir=.
38035 for ac_exec_ext in '' $ac_executable_extensions; do
38036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38037 ac_cv_prog_ac_ct_RANLIB="ranlib"
38038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38039 break 2
38040 fi
38041done
38042done
38043
38044 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
38045fi
38046fi
38047ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
38048if test -n "$ac_ct_RANLIB"; then
38049 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
38050echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 38051else
e6cc62c6
VS
38052 echo "$as_me:$LINENO: result: no" >&5
38053echo "${ECHO_T}no" >&6
38054fi
38055
38056 RANLIB=$ac_ct_RANLIB
38057else
38058 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 38059fi
665bbe97 38060
fe0895cf
VS
38061 # Find a good install program. We prefer a C program (faster),
38062# so one script is as good as another. But avoid the broken or
38063# incompatible versions:
38064# SysV /etc/install, /usr/sbin/install
38065# SunOS /usr/etc/install
38066# IRIX /sbin/install
38067# AIX /bin/install
e6cc62c6 38068# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
38069# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
38070# AFS /usr/afsws/bin/install, which mishandles nonexistent args
38071# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
32ddf007 38072# OS/2's system install, which has a completely different semantic
fe0895cf 38073# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
38074echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
38075echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 38076if test -z "$INSTALL"; then
e6cc62c6
VS
38077if test "${ac_cv_path_install+set}" = set; then
38078 echo $ECHO_N "(cached) $ECHO_C" >&6
38079else
38080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38081for as_dir in $PATH
38082do
38083 IFS=$as_save_IFS
38084 test -z "$as_dir" && as_dir=.
38085 # Account for people who put trailing slashes in PATH elements.
38086case $as_dir/ in
38087 ./ | .// | /cC/* | \
38088 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
32ddf007 38089 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
38090 /usr/ucb/* ) ;;
38091 *)
38092 # OSF1 and SCO ODT 3.0 have their own names for install.
38093 # Don't use installbsd from OSF since it installs stuff as root
38094 # by default.
38095 for ac_prog in ginstall scoinst install; do
38096 for ac_exec_ext in '' $ac_executable_extensions; do
32ddf007
VS
38097 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
38098 if test $ac_prog = install &&
38099 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38100 # AIX install. It has an incompatible calling convention.
38101 :
38102 elif test $ac_prog = install &&
38103 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
38104 # program-specific install script used by HP pwplus--don't use.
38105 :
38106 else
38107 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
38108 break 3
38109 fi
38110 fi
fe0895cf 38111 done
e6cc62c6
VS
38112 done
38113 ;;
38114esac
38115done
38116
fe0895cf
VS
38117
38118fi
38119 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 38120 INSTALL=$ac_cv_path_install
fe0895cf
VS
38121 else
38122 # As a last resort, use the slow shell script. We don't cache a
38123 # path for INSTALL within a source directory, because that will
38124 # break other packages using the cache if that directory is
38125 # removed, or if the path is relative.
e6cc62c6 38126 INSTALL=$ac_install_sh
fe0895cf
VS
38127 fi
38128fi
e6cc62c6
VS
38129echo "$as_me:$LINENO: result: $INSTALL" >&5
38130echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
38131
38132# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
38133# It thinks the first close brace ends the variable substitution.
38134test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
38135
e6cc62c6 38136test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
38137
38138test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
38139
e6cc62c6
VS
38140 echo "$as_me:$LINENO: checking whether ln -s works" >&5
38141echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
38142LN_S=$as_ln_s
38143if test "$LN_S" = "ln -s"; then
38144 echo "$as_me:$LINENO: result: yes" >&5
38145echo "${ECHO_T}yes" >&6
fe0895cf 38146else
e6cc62c6
VS
38147 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38148echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
38149fi
38150
38151
e6cc62c6
VS
38152 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38153echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
32ddf007 38154set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
38155if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38156 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 38157else
e6cc62c6 38158 cat >conftest.make <<\_ACEOF
fe0895cf 38159all:
e6cc62c6
VS
38160 @echo 'ac_maketemp="$(MAKE)"'
38161_ACEOF
fe0895cf 38162# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 38163eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
38164if test -n "$ac_maketemp"; then
38165 eval ac_cv_prog_make_${ac_make}_set=yes
38166else
38167 eval ac_cv_prog_make_${ac_make}_set=no
38168fi
e6cc62c6 38169rm -f conftest.make
fe0895cf
VS
38170fi
38171if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
38172 echo "$as_me:$LINENO: result: yes" >&5
38173echo "${ECHO_T}yes" >&6
fe0895cf
VS
38174 SET_MAKE=
38175else
e6cc62c6
VS
38176 echo "$as_me:$LINENO: result: no" >&5
38177echo "${ECHO_T}no" >&6
fe0895cf
VS
38178 SET_MAKE="MAKE=${MAKE-make}"
38179fi
38180
e6cc62c6
VS
38181
38182
874d12cf
VS
38183 if test -n "$ac_tool_prefix"; then
38184 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38185set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
38186echo "$as_me:$LINENO: checking for $ac_word" >&5
38187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38188if test "${ac_cv_prog_AR+set}" = set; then
38189 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38190else
38191 if test -n "$AR"; then
38192 ac_cv_prog_AR="$AR" # Let the user override the test.
38193else
e6cc62c6
VS
38194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38195for as_dir in $PATH
38196do
38197 IFS=$as_save_IFS
38198 test -z "$as_dir" && as_dir=.
38199 for ac_exec_ext in '' $ac_executable_extensions; do
38200 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 38201 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
38202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38203 break 2
38204 fi
38205done
38206done
38207
fe0895cf
VS
38208fi
38209fi
e6cc62c6 38210AR=$ac_cv_prog_AR
fe0895cf 38211if test -n "$AR"; then
e6cc62c6
VS
38212 echo "$as_me:$LINENO: result: $AR" >&5
38213echo "${ECHO_T}$AR" >&6
fe0895cf 38214else
e6cc62c6
VS
38215 echo "$as_me:$LINENO: result: no" >&5
38216echo "${ECHO_T}no" >&6
fe0895cf
VS
38217fi
38218
874d12cf
VS
38219fi
38220if test -z "$ac_cv_prog_AR"; then
38221 ac_ct_AR=$AR
38222 # Extract the first word of "ar", so it can be a program name with args.
38223set dummy ar; ac_word=$2
38224echo "$as_me:$LINENO: checking for $ac_word" >&5
38225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38226if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38227 echo $ECHO_N "(cached) $ECHO_C" >&6
38228else
38229 if test -n "$ac_ct_AR"; then
38230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38231else
38232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38233for as_dir in $PATH
38234do
38235 IFS=$as_save_IFS
38236 test -z "$as_dir" && as_dir=.
38237 for ac_exec_ext in '' $ac_executable_extensions; do
38238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38239 ac_cv_prog_ac_ct_AR="ar"
38240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38241 break 2
38242 fi
38243done
38244done
38245
38246 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38247fi
38248fi
38249ac_ct_AR=$ac_cv_prog_ac_ct_AR
38250if test -n "$ac_ct_AR"; then
38251 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38252echo "${ECHO_T}$ac_ct_AR" >&6
38253else
38254 echo "$as_me:$LINENO: result: no" >&5
38255echo "${ECHO_T}no" >&6
38256fi
38257
38258 AR=$ac_ct_AR
38259else
38260 AR="$ac_cv_prog_AR"
38261fi
38262
38263 if test -n "$ac_tool_prefix"; then
38264 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38265set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
38266echo "$as_me:$LINENO: checking for $ac_word" >&5
38267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38268if test "${ac_cv_prog_STRIP+set}" = set; then
38269 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38270else
38271 if test -n "$STRIP"; then
38272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38273else
e6cc62c6
VS
38274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38275for as_dir in $PATH
38276do
38277 IFS=$as_save_IFS
38278 test -z "$as_dir" && as_dir=.
38279 for ac_exec_ext in '' $ac_executable_extensions; do
38280 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 38281 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
38282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38283 break 2
38284 fi
38285done
38286done
38287
fe0895cf
VS
38288fi
38289fi
e6cc62c6 38290STRIP=$ac_cv_prog_STRIP
fe0895cf 38291if test -n "$STRIP"; then
e6cc62c6
VS
38292 echo "$as_me:$LINENO: result: $STRIP" >&5
38293echo "${ECHO_T}$STRIP" >&6
fe0895cf 38294else
e6cc62c6
VS
38295 echo "$as_me:$LINENO: result: no" >&5
38296echo "${ECHO_T}no" >&6
fe0895cf
VS
38297fi
38298
874d12cf
VS
38299fi
38300if test -z "$ac_cv_prog_STRIP"; then
38301 ac_ct_STRIP=$STRIP
38302 # Extract the first word of "strip", so it can be a program name with args.
38303set dummy strip; ac_word=$2
38304echo "$as_me:$LINENO: checking for $ac_word" >&5
38305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38306if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38307 echo $ECHO_N "(cached) $ECHO_C" >&6
38308else
38309 if test -n "$ac_ct_STRIP"; then
38310 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38311else
38312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38313for as_dir in $PATH
38314do
38315 IFS=$as_save_IFS
38316 test -z "$as_dir" && as_dir=.
38317 for ac_exec_ext in '' $ac_executable_extensions; do
38318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38319 ac_cv_prog_ac_ct_STRIP="strip"
38320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38321 break 2
38322 fi
38323done
38324done
38325
38326 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38327fi
38328fi
38329ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38330if test -n "$ac_ct_STRIP"; then
38331 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38332echo "${ECHO_T}$ac_ct_STRIP" >&6
38333else
38334 echo "$as_me:$LINENO: result: no" >&5
38335echo "${ECHO_T}no" >&6
38336fi
38337
38338 STRIP=$ac_ct_STRIP
38339else
38340 STRIP="$ac_cv_prog_STRIP"
38341fi
38342
38343 if test -n "$ac_tool_prefix"; then
38344 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38345set dummy ${ac_tool_prefix}nm; ac_word=$2
38346echo "$as_me:$LINENO: checking for $ac_word" >&5
38347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38348if test "${ac_cv_prog_NM+set}" = set; then
38349 echo $ECHO_N "(cached) $ECHO_C" >&6
38350else
38351 if test -n "$NM"; then
38352 ac_cv_prog_NM="$NM" # Let the user override the test.
38353else
38354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38355for as_dir in $PATH
38356do
38357 IFS=$as_save_IFS
38358 test -z "$as_dir" && as_dir=.
38359 for ac_exec_ext in '' $ac_executable_extensions; do
38360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38361 ac_cv_prog_NM="${ac_tool_prefix}nm"
38362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38363 break 2
38364 fi
38365done
38366done
38367
38368fi
38369fi
38370NM=$ac_cv_prog_NM
38371if test -n "$NM"; then
38372 echo "$as_me:$LINENO: result: $NM" >&5
38373echo "${ECHO_T}$NM" >&6
38374else
38375 echo "$as_me:$LINENO: result: no" >&5
38376echo "${ECHO_T}no" >&6
38377fi
38378
38379fi
38380if test -z "$ac_cv_prog_NM"; then
38381 ac_ct_NM=$NM
38382 # Extract the first word of "nm", so it can be a program name with args.
38383set dummy nm; ac_word=$2
38384echo "$as_me:$LINENO: checking for $ac_word" >&5
38385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38386if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38387 echo $ECHO_N "(cached) $ECHO_C" >&6
38388else
38389 if test -n "$ac_ct_NM"; then
38390 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38391else
38392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38393for as_dir in $PATH
38394do
38395 IFS=$as_save_IFS
38396 test -z "$as_dir" && as_dir=.
38397 for ac_exec_ext in '' $ac_executable_extensions; do
38398 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38399 ac_cv_prog_ac_ct_NM="nm"
38400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38401 break 2
38402 fi
38403done
38404done
38405
38406 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38407fi
38408fi
38409ac_ct_NM=$ac_cv_prog_ac_ct_NM
38410if test -n "$ac_ct_NM"; then
38411 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38412echo "${ECHO_T}$ac_ct_NM" >&6
38413else
38414 echo "$as_me:$LINENO: result: no" >&5
38415echo "${ECHO_T}no" >&6
38416fi
38417
38418 NM=$ac_ct_NM
38419else
38420 NM="$ac_cv_prog_NM"
38421fi
38422
fe0895cf 38423
f95e4495 38424 case ${BAKEFILE_HOST} in
fe0895cf
VS
38425 *-hp-hpux* )
38426 INSTALL_DIR="mkdir"
38427 ;;
38428 *) INSTALL_DIR="$INSTALL -d"
38429 ;;
38430 esac
e6cc62c6 38431
fe0895cf 38432
6b9d41a5 38433 LDFLAGS_GUI=
f95e4495 38434 case ${BAKEFILE_HOST} in
6b9d41a5
VS
38435 *-*-cygwin* | *-*-mingw32* )
38436 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
38437 esac
38438
38439
fe0895cf 38440 fi
e6cc62c6
VS
38441
38442 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38443echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 38444if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 38445 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 38446else
e6cc62c6 38447
fe0895cf
VS
38448 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38449 egrep -s GNU > /dev/null); then
38450 bakefile_cv_prog_makeisgnu="yes"
38451 else
38452 bakefile_cv_prog_makeisgnu="no"
38453 fi
fe0895cf 38454
e6cc62c6 38455fi
49b0a3aa
VS
38456echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38457echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
38458
38459 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38460 IF_GNU_MAKE=""
38461 else
38462 IF_GNU_MAKE="#"
38463 fi
fe0895cf 38464
e6cc62c6
VS
38465
38466
fe0895cf
VS
38467 PLATFORM_UNIX=0
38468 PLATFORM_WIN32=0
38469 PLATFORM_MSDOS=0
38470 PLATFORM_MAC=0
38471 PLATFORM_MACOSX=0
96c1699d 38472 PLATFORM_OS2=0
e6cc62c6 38473
f95e4495
VS
38474 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38475 case "${BAKEFILE_HOST}" in
38476 *-*-cygwin* | *-*-mingw32* )
38477 PLATFORM_WIN32=1
38478 ;;
38479 *-pc-msdosdjgpp )
38480 PLATFORM_MSDOS=1
38481 ;;
38482 *-pc-os2_emx | *-pc-os2-emx )
38483 PLATFORM_OS2=1
38484 ;;
38485 powerpc-*-darwin* )
38486 PLATFORM_MAC=1
38487 PLATFORM_MACOSX=1
38488 ;;
38489 * )
38490 PLATFORM_UNIX=1
38491 ;;
38492 esac
38493 else
38494 case "$BAKEFILE_FORCE_PLATFORM" in
38495 win32 )
38496 PLATFORM_WIN32=1
38497 ;;
38498 msdos )
38499 PLATFORM_MSDOS=1
38500 ;;
38501 os2 )
38502 PLATFORM_OS2=1
38503 ;;
38504 darwin )
38505 PLATFORM_MAC=1
38506 PLATFORM_MACOSX=1
38507 ;;
38508 unix )
38509 PLATFORM_UNIX=1
38510 ;;
38511 * )
38512 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38513echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38514 { (exit 1); exit 1; }; }
38515 ;;
38516 esac
38517 fi
fe0895cf 38518
fe0895cf 38519
e6cc62c6
VS
38520
38521
38522
38523
38524
38525
96c1699d 38526
fe0895cf 38527 SO_SUFFIX="so"
131f235d 38528 SO_SUFFIX_MODULE="so"
fe0895cf 38529 EXEEXT=""
4b1f6360 38530 LIBPREFIX=lib
fe0895cf 38531 DLLPREFIX=lib
131f235d 38532 DLLPREFIX_MODULE=
e6cc62c6 38533
f95e4495 38534 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38535 *-hp-hpux* )
38536 SO_SUFFIX="sl"
131f235d 38537 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
38538 ;;
38539 *-*-aix* )
38540 SO_SUFFIX="a"
131f235d 38541 SO_SUFFIX_MODULE="a"
fe0895cf
VS
38542 ;;
38543 *-*-cygwin* | *-*-mingw32* )
38544 SO_SUFFIX="dll"
131f235d 38545 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
38546 EXEEXT=".exe"
38547 DLLPREFIX=""
38548 ;;
4b1f6360
VS
38549 *-pc-msdosdjgpp )
38550 EXEEXT=".exe"
38551 DLLPREFIX=""
38552 ;;
38553 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
38554 EXEEXT=".exe"
38555 DLLPREFIX=""
4b1f6360 38556 LIBPREFIX=""
fe0895cf
VS
38557 ;;
38558 powerpc-*-darwin* )
38559 SO_SUFFIX="dylib"
131f235d 38560 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
38561 ;;
38562 esac
38563
fe0895cf 38564
e6cc62c6
VS
38565
38566
38567
38568
131f235d
VS
38569
38570
4b1f6360 38571
fe0895cf
VS
38572 SHARED_LD_CC="\$(CC) -shared -o"
38573 SHARED_LD_CXX="\$(CXX) -shared -o"
38574
38575 if test "x$GCC" = "xyes"; then
38576 PIC_FLAG="-fPIC"
38577 fi
38578
f95e4495 38579 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38580 *-hp-hpux* )
38581 if test "x$GCC" = "xyes"; then
38582 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38583 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38584 else
38585 LDFLAGS="$LDFLAGS -L/usr/lib"
38586
38587 SHARED_LD_CC="${CC} -b -o"
38588 SHARED_LD_CXX="${CXX} -b -o"
38589 PIC_FLAG="+Z"
38590 fi
38591 ;;
38592
38593 *-*-linux* )
38594 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
38595 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38596echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38597if test "${bakefile_cv_prog_icc+set}" = set; then
38598 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 38599else
fe0895cf 38600
e6cc62c6 38601 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
38602/* confdefs.h. */
38603_ACEOF
38604cat confdefs.h >>conftest.$ac_ext
38605cat >>conftest.$ac_ext <<_ACEOF
38606/* end confdefs.h. */
38607
38608int
38609main ()
38610{
fe0895cf
VS
38611
38612 #ifndef __INTEL_COMPILER
38613 #error Not icc
38614 #endif
e6cc62c6
VS
38615
38616 ;
38617 return 0;
38618}
38619_ACEOF
38620rm -f conftest.$ac_objext
38621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 38622 (eval $ac_compile) 2>conftest.er1
e6cc62c6 38623 ac_status=$?
32ddf007
VS
38624 grep -v '^ *+' conftest.er1 >conftest.err
38625 rm -f conftest.er1
38626 cat conftest.err >&5
e6cc62c6
VS
38627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38628 (exit $ac_status); } &&
32ddf007
VS
38629 { ac_try='test -z "$ac_c_werror_flag"
38630 || test ! -s conftest.err'
38631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38632 (eval $ac_try) 2>&5
38633 ac_status=$?
38634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38635 (exit $ac_status); }; } &&
38636 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
38637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38638 (eval $ac_try) 2>&5
38639 ac_status=$?
38640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38641 (exit $ac_status); }; }; then
fe0895cf
VS
38642 bakefile_cv_prog_icc=yes
38643else
e6cc62c6
VS
38644 echo "$as_me: failed program was:" >&5
38645sed 's/^/| /' conftest.$ac_ext >&5
38646
38647bakefile_cv_prog_icc=no
38648
fe0895cf 38649fi
32ddf007 38650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fe0895cf 38651
e6cc62c6
VS
38652fi
38653echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38654echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
38655 if test "$bakefile_cv_prog_icc" = "yes"; then
38656 PIC_FLAG="-KPIC"
38657 fi
38658 fi
38659 ;;
38660
38661 *-*-solaris2* )
38662 if test "x$GCC" != xyes ; then
38663 SHARED_LD_CC="${CC} -G -o"
38664 SHARED_LD_CXX="${CXX} -G -o"
38665 PIC_FLAG="-KPIC"
38666 fi
38667 ;;
38668
38669 *-*-darwin* )
38670 CFLAGS="$CFLAGS -fno-common"
38671 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
38672
38673
2a879853 38674 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
38675echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38676if test "${wx_cv_gcc31+set}" = set; then
38677 echo $ECHO_N "(cached) $ECHO_C" >&6
38678else
38679
2a879853 38680 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
38681/* confdefs.h. */
38682_ACEOF
38683cat confdefs.h >>conftest.$ac_ext
38684cat >>conftest.$ac_ext <<_ACEOF
38685/* end confdefs.h. */
38686
38687int
38688main ()
38689{
38690
2a879853
VS
38691 #if (__GNUC__ < 3) || \
38692 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38693 #error old gcc
38694 #endif
43948499
RD
38695
38696 ;
38697 return 0;
38698}
38699_ACEOF
38700rm -f conftest.$ac_objext
38701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 38702 (eval $ac_compile) 2>conftest.er1
43948499 38703 ac_status=$?
32ddf007
VS
38704 grep -v '^ *+' conftest.er1 >conftest.err
38705 rm -f conftest.er1
38706 cat conftest.err >&5
43948499
RD
38707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38708 (exit $ac_status); } &&
32ddf007
VS
38709 { ac_try='test -z "$ac_c_werror_flag"
38710 || test ! -s conftest.err'
38711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38712 (eval $ac_try) 2>&5
38713 ac_status=$?
38714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38715 (exit $ac_status); }; } &&
38716 { ac_try='test -s conftest.$ac_objext'
43948499
RD
38717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38718 (eval $ac_try) 2>&5
38719 ac_status=$?
38720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38721 (exit $ac_status); }; }; then
38722
2a879853 38723 wx_cv_gcc31=yes
43948499
RD
38724
38725else
38726 echo "$as_me: failed program was:" >&5
38727sed 's/^/| /' conftest.$ac_ext >&5
38728
38729
2a879853 38730 wx_cv_gcc31=no
43948499
RD
38731
38732
38733fi
32ddf007 38734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43948499
RD
38735
38736fi
38737echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38738echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 38739 if test "$wx_cv_gcc31" = "no"; then
43948499 38740 cat <<EOF >shared-ld-sh
fe0895cf
VS
38741#!/bin/sh
38742#-----------------------------------------------------------------------------
38743#-- Name: distrib/mac/shared-ld-sh
38744#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38745#-- Author: Gilles Depeyrot
38746#-- Copyright: (c) 2002 Gilles Depeyrot
38747#-- Licence: any use permitted
38748#-----------------------------------------------------------------------------
38749
38750verbose=0
38751args=""
38752objects=""
131f235d 38753linking_flag="-dynamiclib"
fe0895cf
VS
38754
38755while test \${#} -gt 0; do
38756 case \${1} in
38757
38758 -v)
38759 verbose=1
38760 ;;
38761
38762 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38763 # collect these options and values
38764 args="\${args} \${1} \${2}"
38765 shift
38766 ;;
38767
74500461 38768 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
fe0895cf
VS
38769 # collect these options
38770 args="\${args} \${1}"
38771 ;;
38772
131f235d
VS
38773 -dynamiclib|-bundle)
38774 linking_flag="\${1}"
fe0895cf
VS
38775 ;;
38776
38777 -*)
38778 echo "shared-ld: unhandled option '\${1}'"
38779 exit 1
38780 ;;
38781
4d264332 38782 *.o | *.a | *.dylib)
fe0895cf
VS
38783 # collect object files
38784 objects="\${objects} \${1}"
38785 ;;
38786
38787 *)
38788 echo "shared-ld: unhandled argument '\${1}'"
38789 exit 1
38790 ;;
38791
38792 esac
38793 shift
38794done
38795
38796#
38797# Link one module containing all the others
38798#
38799if test \${verbose} = 1; then
38800 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
38801fi
38802c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
38803status=\$?
38804if test \${status} != 0; then
38805 exit \${status}
38806fi
38807
38808#
38809# Link the shared library from the single module created
38810#
38811if test \${verbose} = 1; then
2a879853 38812 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 38813fi
131f235d 38814c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
38815status=\$?
38816if test \${status} != 0; then
38817 exit \${status}
38818fi
38819
38820#
38821# Remove intermediate module
38822#
38823rm -f master.\$\$.o
38824
38825exit 0
38826EOF
43948499 38827 chmod +x shared-ld-sh
fe0895cf 38828
7f523214
VS
38829 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38830 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
38831 SHARED_LD_CXX="$SHARED_LD_CC"
38832 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38833 else
7f523214
VS
38834 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38835 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38836 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38837 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
38838 fi
38839
fe0895cf 38840 PIC_FLAG="-dynamic -fPIC"
2a879853 38841 ;;
fe0895cf
VS
38842
38843 *-*-aix* )
38844 if test "x$GCC" != "xyes"; then
38845 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38846set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
38847echo "$as_me:$LINENO: checking for $ac_word" >&5
38848echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38849if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38850 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38851else
38852 if test -n "$AIX_CXX_LD"; then
38853 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38854else
e6cc62c6
VS
38855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38856for as_dir in $PATH
38857do
38858 IFS=$as_save_IFS
38859 test -z "$as_dir" && as_dir=.
38860 for ac_exec_ext in '' $ac_executable_extensions; do
38861 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38862 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38864 break 2
38865 fi
38866done
38867done
38868
fe0895cf
VS
38869 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38870fi
38871fi
e6cc62c6 38872AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 38873if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
38874 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38875echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 38876else
e6cc62c6
VS
38877 echo "$as_me:$LINENO: result: no" >&5
38878echo "${ECHO_T}no" >&6
fe0895cf
VS
38879fi
38880
38881 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38882 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38883 fi
38884 ;;
38885
38886 *-*-beos* )
38887 SHARED_LD_CC="${LD} -shared -o"
38888 SHARED_LD_CXX="${LD} -shared -o"
38889 ;;
38890
38891 *-*-irix* )
38892 if test "x$GCC" != "xyes"; then
38893 PIC_FLAG="-KPIC"
38894 fi
38895 ;;
e6cc62c6 38896
fe0895cf
VS
38897 *-*-cygwin* | *-*-mingw32* )
38898 PIC_FLAG=""
38899 ;;
e6cc62c6 38900
fe0895cf
VS
38901 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
38902 *-*-sunos4* | \
38903 *-*-osf* | \
38904 *-*-dgux5* | \
4b1f6360 38905 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
38906 *-*-sysv5* )
38907 ;;
38908
38909 *)
f95e4495
VS
38910 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
38911echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
e6cc62c6 38912 { (exit 1); exit 1; }; }
fe0895cf
VS
38913 esac
38914
131f235d
VS
38915 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
38916 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
38917 fi
38918 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 38919 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
38920 fi
38921
38922
38923
fe0895cf 38924
e6cc62c6
VS
38925
38926
38927
38928
fe0895cf
VS
38929 USE_SOVERSION=0
38930 USE_SOVERLINUX=0
38931 USE_SOVERSOLARIS=0
38932 USE_SOSYMLINKS=0
38933 USE_MACVERSION=0
38934 SONAME_FLAG=
38935
f95e4495 38936 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38937 *-*-linux* )
38938 SONAME_FLAG="-Wl,-soname,"
38939 USE_SOVERSION=1
38940 USE_SOVERLINUX=1
38941 USE_SOSYMLINKS=1
38942 ;;
38943
38944 *-*-solaris2* )
38945 SONAME_FLAG="-h "
38946 USE_SOVERSION=1
38947 USE_SOVERSOLARIS=1
38948 USE_SOSYMLINKS=1
38949 ;;
38950
38951 *-*-darwin* )
38952 USE_MACVERSION=1
38953 USE_SOVERSION=1
38954 USE_SOSYMLINKS=1
e6cc62c6 38955 ;;
fe0895cf
VS
38956 esac
38957
fe0895cf 38958
e6cc62c6
VS
38959
38960
38961
38962
38963
38964
38965
49b0a3aa
VS
38966 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
38967echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
38968 DEPS_TRACKING=0
38969
fe0895cf 38970 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
38971 DEPSMODE=gcc
38972 DEPS_TRACKING=1
f95e4495 38973 case "${BAKEFILE_HOST}" in
3e5c3c83
VS
38974 powerpc-*-darwin* )
38975 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
38976 ;;
38977 * )
38978 DEPSFLAG_GCC="-MMD"
38979 ;;
38980 esac
49b0a3aa
VS
38981 echo "$as_me:$LINENO: result: gcc" >&5
38982echo "${ECHO_T}gcc" >&6
38983 else
38984 echo "$as_me:$LINENO: result: none" >&5
38985echo "${ECHO_T}none" >&6
38986 fi
38987
38988 if test $DEPS_TRACKING = 1 ; then
38989 cat <<EOF >bk-deps
38990#!/bin/sh
38991
45842500
VS
38992# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38993# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
38994#
38995# Permission is given to use this file in any way.
38996
38997DEPSMODE=$DEPSMODE
38998DEPSDIR=.deps
3e5c3c83 38999DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
39000
39001mkdir -p \$DEPSDIR
39002
39003if test \$DEPSMODE = gcc ; then
3e5c3c83 39004 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
39005 status=\${?}
39006 if test \${status} != 0 ; then
39007 exit \${status}
39008 fi
39009 # move created file to the location we want it in:
39010 while test \${#} -gt 0; do
39011 case "\${1}" in
39012 -o )
39013 shift
39014 objfile=\${1}
39015 ;;
39016 -* )
39017 ;;
39018 * )
39019 srcfile=\${1}
39020 ;;
39021 esac
39022 shift
39023 done
39024 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
39025 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
39026 if test -f \$depfile ; then
39027 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
39028 rm -f \$depfile
39029 else
39030 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
39031 if test -f \$depfile ; then
9d0be83a 39032 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
39033 rm -f \$depfile
39034 fi
39035 fi
49b0a3aa
VS
39036 exit 0
39037else
39038 \${*}
39039 exit \${?}
39040fi
39041EOF
39042 chmod +x bk-deps
fe0895cf 39043 fi
fe0895cf 39044
e6cc62c6
VS
39045
39046
39047
fe0895cf
VS
39048 RESCOMP=
39049 SETFILE=
39050
f95e4495 39051 case ${BAKEFILE_HOST} in
fe0895cf
VS
39052 *-*-cygwin* | *-*-mingw32* )
39053 if test "$build" != "$host" ; then
39054 RESCOMP=$host_alias-windres
39055 else
39056 # Extract the first word of "windres", so it can be a program name with args.
39057set dummy windres; ac_word=$2
e6cc62c6
VS
39058echo "$as_me:$LINENO: checking for $ac_word" >&5
39059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39060if test "${ac_cv_prog_RESCOMP+set}" = set; then
39061 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
39062else
39063 if test -n "$RESCOMP"; then
39064 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39065else
e6cc62c6
VS
39066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39067for as_dir in $PATH
39068do
39069 IFS=$as_save_IFS
39070 test -z "$as_dir" && as_dir=.
39071 for ac_exec_ext in '' $ac_executable_extensions; do
39072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39073 ac_cv_prog_RESCOMP="windres"
39074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39075 break 2
39076 fi
39077done
39078done
39079
fe0895cf
VS
39080 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
39081fi
39082fi
e6cc62c6 39083RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 39084if test -n "$RESCOMP"; then
e6cc62c6
VS
39085 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39086echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 39087else
e6cc62c6
VS
39088 echo "$as_me:$LINENO: result: no" >&5
39089echo "${ECHO_T}no" >&6
fe0895cf
VS
39090fi
39091
39092 fi
39093 ;;
e6cc62c6 39094
fe0895cf
VS
39095 *-*-darwin* )
39096 # Extract the first word of "Rez", so it can be a program name with args.
39097set dummy Rez; ac_word=$2
e6cc62c6
VS
39098echo "$as_me:$LINENO: checking for $ac_word" >&5
39099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39100if test "${ac_cv_prog_RESCOMP+set}" = set; then
39101 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
39102else
39103 if test -n "$RESCOMP"; then
39104 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
39105else
e6cc62c6
VS
39106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39107for as_dir in $PATH
39108do
39109 IFS=$as_save_IFS
39110 test -z "$as_dir" && as_dir=.
39111 for ac_exec_ext in '' $ac_executable_extensions; do
39112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39113 ac_cv_prog_RESCOMP="Rez"
39114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39115 break 2
39116 fi
39117done
39118done
39119
fe0895cf
VS
39120 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
39121fi
39122fi
e6cc62c6 39123RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 39124if test -n "$RESCOMP"; then
e6cc62c6
VS
39125 echo "$as_me:$LINENO: result: $RESCOMP" >&5
39126echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 39127else
e6cc62c6
VS
39128 echo "$as_me:$LINENO: result: no" >&5
39129echo "${ECHO_T}no" >&6
fe0895cf
VS
39130fi
39131
39132 # Extract the first word of "SetFile", so it can be a program name with args.
39133set dummy SetFile; ac_word=$2
e6cc62c6
VS
39134echo "$as_me:$LINENO: checking for $ac_word" >&5
39135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
39136if test "${ac_cv_prog_SETFILE+set}" = set; then
39137 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
39138else
39139 if test -n "$SETFILE"; then
39140 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
39141else
e6cc62c6
VS
39142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39143for as_dir in $PATH
39144do
39145 IFS=$as_save_IFS
39146 test -z "$as_dir" && as_dir=.
39147 for ac_exec_ext in '' $ac_executable_extensions; do
39148 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39149 ac_cv_prog_SETFILE="SetFile"
39150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39151 break 2
39152 fi
39153done
39154done
39155
fe0895cf
VS
39156 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39157fi
39158fi
e6cc62c6 39159SETFILE=$ac_cv_prog_SETFILE
fe0895cf 39160if test -n "$SETFILE"; then
e6cc62c6
VS
39161 echo "$as_me:$LINENO: result: $SETFILE" >&5
39162echo "${ECHO_T}$SETFILE" >&6
fe0895cf 39163else
e6cc62c6
VS
39164 echo "$as_me:$LINENO: result: no" >&5
39165echo "${ECHO_T}no" >&6
fe0895cf
VS
39166fi
39167
39168 ;;
39169 esac
39170
fe0895cf
VS
39171
39172
e6cc62c6
VS
39173
39174
39175
39176
45842500 39177
ecfd48ca
VZ
39178
39179
45842500
VS
39180 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39181if test "${enable_precomp_headers+set}" = set; then
39182 enableval="$enable_precomp_headers"
39183 bk_use_pch="$enableval"
39184fi;
39185
39186 GCC_PCH=0
39187
39188 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39189 if test "x$GCC" = "xyes"; then
39190 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39191echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39192 cat >conftest.$ac_ext <<_ACEOF
45842500
VS
39193/* confdefs.h. */
39194_ACEOF
39195cat confdefs.h >>conftest.$ac_ext
39196cat >>conftest.$ac_ext <<_ACEOF
39197/* end confdefs.h. */
39198
39199int
39200main ()
39201{
39202
8bcf2d20
VS
39203 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39204 #error "no pch support"
39205 #endif
39206 #if (__GNUC__ < 3)
39207 #error "no pch support"
39208 #endif
39209 #if (__GNUC__ == 3) && \
39210 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39211 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39212 #error "no pch support"
45842500
VS
39213 #endif
39214
39215 ;
39216 return 0;
39217}
39218_ACEOF
39219rm -f conftest.$ac_objext
39220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32ddf007 39221 (eval $ac_compile) 2>conftest.er1
45842500 39222 ac_status=$?
32ddf007
VS
39223 grep -v '^ *+' conftest.er1 >conftest.err
39224 rm -f conftest.er1
39225 cat conftest.err >&5
45842500
VS
39226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39227 (exit $ac_status); } &&
32ddf007
VS
39228 { ac_try='test -z "$ac_c_werror_flag"
39229 || test ! -s conftest.err'
39230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39231 (eval $ac_try) 2>&5
39232 ac_status=$?
39233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234 (exit $ac_status); }; } &&
39235 { ac_try='test -s conftest.$ac_objext'
45842500
VS
39236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39237 (eval $ac_try) 2>&5
39238 ac_status=$?
39239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39240 (exit $ac_status); }; }; then
39241
39242 echo "$as_me:$LINENO: result: yes" >&5
39243echo "${ECHO_T}yes" >&6
39244 CPPFLAGS="-fpch-deps $CPPFLAGS"
39245 GCC_PCH=1
39246
39247else
39248 echo "$as_me: failed program was:" >&5
39249sed 's/^/| /' conftest.$ac_ext >&5
39250
39251
39252 echo "$as_me:$LINENO: result: no" >&5
39253echo "${ECHO_T}no" >&6
39254
39255fi
32ddf007 39256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45842500
VS
39257 if test $GCC_PCH = 1 ; then
39258 cat <<EOF >bk-make-pch
39259#!/bin/sh
39260
39261# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39262# script. It is used to generated precompiled headers.
39263#
39264# Permission is given to use this file in any way.
39265
39266outfile="\${1}"
39267header="\${2}"
39268shift
39269shift
39270
39271compiler=
39272headerfile=
39273while test \${#} -gt 0; do
39274 case "\${1}" in
39275 -I* )
39276 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39277 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39278 headerfile="\${incdir}/\${header}"
39279 fi
39280 ;;
39281 esac
39282 compiler="\${compiler} \${1}"
39283 shift
39284done
39285
39286if test "x\${headerfile}" = "x" ; then
39287 echo "error: can't find header \${header} in include paths" >2
39288else
39289 if test -f \${outfile} ; then
39290 rm -f \${outfile}
39291 else
39292 mkdir -p \`dirname \${outfile}\`
39293 fi
39294 depsfile=".deps/\`basename \${outfile}\`.d"
39295 mkdir -p .deps
39296 # can do this because gcc is >= 3.4:
39297 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39298 exit \${?}
39299fi
39300EOF
39301 chmod +x bk-make-pch
39302 fi
39303 fi
39304 fi
39305
39306
39307
39308
39309
d78c94f2 39310 COND_BUILD_DEBUG="#"
6f628073 39311 if test "x$BUILD" = "xdebug" ; then
d78c94f2 39312 COND_BUILD_DEBUG=""
6f628073
VS
39313 fi
39314
6c67131a
VS
39315 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39316 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39317 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39318 fi
39319
39320 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39321 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39322 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39323 fi
39324
f93ca9fd
VS
39325 COND_BUILD_DEBUG_UNICODE_0="#"
39326 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39327 COND_BUILD_DEBUG_UNICODE_0=""
39328 fi
39329
39330 COND_BUILD_DEBUG_UNICODE_1="#"
39331 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39332 COND_BUILD_DEBUG_UNICODE_1=""
39333 fi
39334
d78c94f2 39335 COND_BUILD_RELEASE="#"
6f628073 39336 if test "x$BUILD" = "xrelease" ; then
d78c94f2 39337 COND_BUILD_RELEASE=""
6b9d41a5
VS
39338 fi
39339
6c67131a
VS
39340 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39341 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39342 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39343 fi
39344
f93ca9fd
VS
39345 COND_BUILD_RELEASE_UNICODE_0="#"
39346 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39347 COND_BUILD_RELEASE_UNICODE_0=""
39348 fi
39349
39350 COND_BUILD_RELEASE_UNICODE_1="#"
39351 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39352 COND_BUILD_RELEASE_UNICODE_1=""
39353 fi
39354
6c67131a
VS
39355 COND_DEBUG_FLAG_1="#"
39356 if test "x$DEBUG_FLAG" = "x1" ; then
39357 COND_DEBUG_FLAG_1=""
39358 fi
39359
39360 COND_DEBUG_INFO_0="#"
39361 if test "x$DEBUG_INFO" = "x0" ; then
39362 COND_DEBUG_INFO_0=""
39363 fi
39364
39365 COND_DEBUG_INFO_1="#"
39366 if test "x$DEBUG_INFO" = "x1" ; then
39367 COND_DEBUG_INFO_1=""
39368 fi
39369
f95cd8fa
VS
39370 COND_DEPS_TRACKING_0="#"
39371 if test "x$DEPS_TRACKING" = "x0" ; then
39372 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
39373 fi
39374
8ee2dd05
VS
39375 COND_DEPS_TRACKING_1="#"
39376 if test "x$DEPS_TRACKING" = "x1" ; then
39377 COND_DEPS_TRACKING_1=""
39378 fi
39379
45842500
VS
39380 COND_GCC_PCH_1="#"
39381 if test "x$GCC_PCH" = "x1" ; then
39382 COND_GCC_PCH_1=""
39383 fi
39384
6f628073
VS
39385 COND_MONOLITHIC_0="#"
39386 if test "x$MONOLITHIC" = "x0" ; then
39387 COND_MONOLITHIC_0=""
6b9d41a5
VS
39388 fi
39389
6f628073
VS
39390 COND_MONOLITHIC_0_SHARED_0="#"
39391 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39392 COND_MONOLITHIC_0_SHARED_0=""
39393 fi
39394
39395 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39396 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39397 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 39398 fi
e6cc62c6 39399
8772a1a7
VS
39400 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39401 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39402 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39403 fi
39404
250700e4
RD
39405 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39406 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39407 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39408 fi
39409
eb69fda5
VS
39410 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39411 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39412 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39413 fi
39414
8ee2dd05
VS
39415 COND_MONOLITHIC_0_SHARED_1="#"
39416 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39417 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 39418 fi
e6cc62c6 39419
6f628073
VS
39420 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39421 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39422 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39423 fi
39424
8772a1a7
VS
39425 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39426 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39427 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39428 fi
39429
250700e4
RD
39430 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39431 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39432 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39433 fi
39434
eb69fda5
VS
39435 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39436 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39437 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39438 fi
39439
f95e4495
VS
39440 COND_MONOLITHIC_0_USE_ODBC_1="#"
39441 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39442 COND_MONOLITHIC_0_USE_ODBC_1=""
39443 fi
39444
3af038c0
VS
39445 COND_MONOLITHIC_1="#"
39446 if test "x$MONOLITHIC" = "x1" ; then
39447 COND_MONOLITHIC_1=""
39448 fi
39449
6f628073
VS
39450 COND_MONOLITHIC_1_SHARED_0="#"
39451 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39452 COND_MONOLITHIC_1_SHARED_0=""
39453 fi
39454
39455 COND_MONOLITHIC_1_SHARED_1="#"
39456 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39457 COND_MONOLITHIC_1_SHARED_1=""
39458 fi
39459
3af038c0
VS
39460 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39461 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39462 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39463 fi
39464
39465 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39466 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39467 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39468 fi
39469
6f628073
VS
39470 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39471 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39472 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39473 fi
39474
3af038c0
VS
39475 COND_PLATFORM_MACOSX_1="#"
39476 if test "x$PLATFORM_MACOSX" = "x1" ; then
39477 COND_PLATFORM_MACOSX_1=""
39478 fi
39479
250700e4
RD
39480 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39481 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39482 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39483 fi
39484
39485 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39486 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39487 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39488 fi
39489
39490 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39491 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39492 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39493 fi
39494
3527f29c
VS
39495 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39496 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39497 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39498 fi
39499
8ee2dd05
VS
39500 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39501 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39502 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39503 fi
39504
45842500
VS
39505 COND_PLATFORM_MAC_1="#"
39506 if test "x$PLATFORM_MAC" = "x1" ; then
39507 COND_PLATFORM_MAC_1=""
39508 fi
39509
3d8c1de0
VS
39510 COND_PLATFORM_OS2_1="#"
39511 if test "x$PLATFORM_OS2" = "x1" ; then
39512 COND_PLATFORM_OS2_1=""
39513 fi
39514
8772a1a7
VS
39515 COND_PLATFORM_UNIX_0="#"
39516 if test "x$PLATFORM_UNIX" = "x0" ; then
39517 COND_PLATFORM_UNIX_0=""
39518 fi
39519
3af038c0
VS
39520 COND_PLATFORM_UNIX_1="#"
39521 if test "x$PLATFORM_UNIX" = "x1" ; then
39522 COND_PLATFORM_UNIX_1=""
39523 fi
39524
3527f29c
VS
39525 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39526 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39527 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39528 fi
39529
f93ca9fd
VS
39530 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39531 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39532 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39533 fi
39534
3af038c0
VS
39535 COND_PLATFORM_WIN32_0="#"
39536 if test "x$PLATFORM_WIN32" = "x0" ; then
39537 COND_PLATFORM_WIN32_0=""
39538 fi
39539
39540 COND_PLATFORM_WIN32_1="#"
39541 if test "x$PLATFORM_WIN32" = "x1" ; then
39542 COND_PLATFORM_WIN32_1=""
39543 fi
39544
45842500
VS
39545 COND_SHARED_0="#"
39546 if test "x$SHARED" = "x0" ; then
39547 COND_SHARED_0=""
39548 fi
39549
250700e4
RD
39550 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39551 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39552 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39553 fi
39554
52a5a009
VS
39555 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39556 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39557 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39558 fi
39559
39560 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39561 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39562 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39563 fi
39564
39565 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39566 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39567 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39568 fi
39569
39570 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39571 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
39572 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
39573 fi
39574
39575 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
39576 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
39577 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
39578 fi
39579
39580 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
39581 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
39582 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
39583 fi
39584
39585 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
39586 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
39587 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
39588 fi
39589
45842500
VS
39590 COND_SHARED_1="#"
39591 if test "x$SHARED" = "x1" ; then
39592 COND_SHARED_1=""
39593 fi
39594
250700e4
RD
39595 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
39596 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39597 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
39598 fi
39599
6f628073
VS
39600 COND_TOOLKIT_COCOA="#"
39601 if test "x$TOOLKIT" = "xCOCOA" ; then
39602 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
39603 fi
39604
6f628073
VS
39605 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
39606 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39607 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39608 fi
39609
6f628073
VS
39610 COND_TOOLKIT_GTK="#"
39611 if test "x$TOOLKIT" = "xGTK" ; then
39612 COND_TOOLKIT_GTK=""
f95cd8fa
VS
39613 fi
39614
6f628073
VS
39615 COND_TOOLKIT_GTK_USE_GUI_1="#"
39616 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
39617 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
39618 fi
39619
6f628073
VS
39620 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
39621 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39622 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39623 fi
39624
3af038c0
VS
39625 COND_TOOLKIT_MAC="#"
39626 if test "x$TOOLKIT" = "xMAC" ; then
39627 COND_TOOLKIT_MAC=""
39628 fi
39629
8772a1a7
VS
39630 COND_TOOLKIT_MAC_USE_GUI_1="#"
39631 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
39632 COND_TOOLKIT_MAC_USE_GUI_1=""
39633 fi
39634
6f628073
VS
39635 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
39636 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39637 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39638 fi
39639
6f628073
VS
39640 COND_TOOLKIT_MGL="#"
39641 if test "x$TOOLKIT" = "xMGL" ; then
39642 COND_TOOLKIT_MGL=""
8ee2dd05
VS
39643 fi
39644
6f628073
VS
39645 COND_TOOLKIT_MGL_USE_GUI_1="#"
39646 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
39647 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
39648 fi
39649
6f628073
VS
39650 COND_TOOLKIT_MOTIF="#"
39651 if test "x$TOOLKIT" = "xMOTIF" ; then
39652 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
39653 fi
39654
6f628073
VS
39655 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39656 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39657 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 39658 fi
e6cc62c6 39659
6f628073
VS
39660 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
39661 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39662 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39663 fi
39664
6f628073
VS
39665 COND_TOOLKIT_MSW="#"
39666 if test "x$TOOLKIT" = "xMSW" ; then
39667 COND_TOOLKIT_MSW=""
8ee2dd05
VS
39668 fi
39669
6f628073
VS
39670 COND_TOOLKIT_MSW_USE_GUI_1="#"
39671 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
39672 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 39673 fi
e6cc62c6 39674
6f628073
VS
39675 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
39676 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39677 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 39678 fi
e6cc62c6 39679
96c1699d
VS
39680 COND_TOOLKIT_PM="#"
39681 if test "x$TOOLKIT" = "xPM" ; then
39682 COND_TOOLKIT_PM=""
39683 fi
39684
39685 COND_TOOLKIT_PM_USE_GUI_1="#"
39686 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
39687 COND_TOOLKIT_PM_USE_GUI_1=""
39688 fi
39689
39690 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
39691 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39692 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
39693 fi
39694
6f628073
VS
39695 COND_TOOLKIT_X11="#"
39696 if test "x$TOOLKIT" = "xX11" ; then
39697 COND_TOOLKIT_X11=""
9747f85d
VS
39698 fi
39699
6f628073
VS
39700 COND_TOOLKIT_X11_USE_GUI_1="#"
39701 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
39702 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
39703 fi
39704
3af038c0
VS
39705 COND_UNICODE_1="#"
39706 if test "x$UNICODE" = "x1" ; then
39707 COND_UNICODE_1=""
39708 fi
39709
7015ef3a
VZ
39710 COND_USE_EXCEPTIONS_0="#"
39711 if test "x$USE_EXCEPTIONS" = "x0" ; then
39712 COND_USE_EXCEPTIONS_0=""
39713 fi
39714
39715 COND_USE_EXCEPTIONS_1="#"
39716 if test "x$USE_EXCEPTIONS" = "x1" ; then
39717 COND_USE_EXCEPTIONS_1=""
39718 fi
39719
3af038c0
VS
39720 COND_USE_GUI_0="#"
39721 if test "x$USE_GUI" = "x0" ; then
39722 COND_USE_GUI_0=""
39723 fi
39724
39725 COND_USE_GUI_1="#"
39726 if test "x$USE_GUI" = "x1" ; then
39727 COND_USE_GUI_1=""
39728 fi
39729
e6cc62c6 39730 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
39731 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39732 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 39733 fi
e6cc62c6
VS
39734
39735 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
39736 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
39737 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
39738 fi
39739
66a96744
VS
39740 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39741 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39742 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39743 fi
39744
39745 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39746 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39747 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39748 fi
39749
39750 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39751 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39752 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39753 fi
39754
57e7d4ac
VS
39755 COND_USE_ODBC_1="#"
39756 if test "x$USE_ODBC" = "x1" ; then
39757 COND_USE_ODBC_1=""
39758 fi
39759
f93ca9fd
VS
39760 COND_USE_PLUGINS_0="#"
39761 if test "x$USE_PLUGINS" = "x0" ; then
39762 COND_USE_PLUGINS_0=""
39763 fi
39764
6f628073
VS
39765 COND_USE_SOSYMLINKS_1="#"
39766 if test "x$USE_SOSYMLINKS" = "x1" ; then
39767 COND_USE_SOSYMLINKS_1=""
b625909c
VS
39768 fi
39769
6f628073
VS
39770 COND_USE_SOVERLINUX_1="#"
39771 if test "x$USE_SOVERLINUX" = "x1" ; then
39772 COND_USE_SOVERLINUX_1=""
b625909c
VS
39773 fi
39774
6f628073
VS
39775 COND_USE_SOVERSION_0="#"
39776 if test "x$USE_SOVERSION" = "x0" ; then
39777 COND_USE_SOVERSION_0=""
fddeb06b 39778 fi
fe0895cf 39779
6f628073
VS
39780 COND_USE_SOVERSOLARIS_1="#"
39781 if test "x$USE_SOVERSOLARIS" = "x1" ; then
39782 COND_USE_SOVERSOLARIS_1=""
fddeb06b 39783 fi
fe0895cf 39784
f93ca9fd
VS
39785 COND_WITH_PLUGIN_SDL_1="#"
39786 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
39787 COND_WITH_PLUGIN_SDL_1=""
39788 fi
39789
39790 COND_WITH_SDL_1="#"
39791 if test "x$WITH_SDL" = "x1" ; then
39792 COND_WITH_SDL_1=""
39793 fi
39794
3af038c0
VS
39795 COND_WXUNIV_1="#"
39796 if test "x$WXUNIV" = "x1" ; then
39797 COND_WXUNIV_1=""
39798 fi
39799
66a96744
VS
39800 COND_WXUSE_EXPAT_BUILTIN="#"
39801 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
39802 COND_WXUSE_EXPAT_BUILTIN=""
39803 fi
39804
02980527
VS
39805 COND_WXUSE_LIBJPEG_BUILTIN="#"
39806 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39807 COND_WXUSE_LIBJPEG_BUILTIN=""
39808 fi
39809
39810 COND_WXUSE_LIBPNG_BUILTIN="#"
39811 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39812 COND_WXUSE_LIBPNG_BUILTIN=""
39813 fi
39814
39815 COND_WXUSE_LIBTIFF_BUILTIN="#"
39816 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39817 COND_WXUSE_LIBTIFF_BUILTIN=""
39818 fi
39819
39820 COND_WXUSE_ODBC_BUILTIN="#"
39821 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
39822 COND_WXUSE_ODBC_BUILTIN=""
39823 fi
39824
39825 COND_WXUSE_REGEX_BUILTIN="#"
39826 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
39827 COND_WXUSE_REGEX_BUILTIN=""
39828 fi
39829
39830 COND_WXUSE_ZLIB_BUILTIN="#"
39831 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
39832 COND_WXUSE_ZLIB_BUILTIN=""
39833 fi
39834
1772d20c 39835
fe0895cf 39836
fe0895cf 39837
fe0895cf 39838
45842500 39839if test $GCC_PCH = 1 ; then
130711ba 39840 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
39841 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
39842else
39843 case "${host}" in
39844 powerpc-*-darwin* )
130711ba
VS
39845 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39846 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 39847 ;;
45842500
VS
39848 esac
39849fi
fe0895cf
VS
39850
39851
fddeb06b 39852SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
39853
39854
39855
39856
39857
39858
39859
39860
39861
39862
39863
39864
39865
39866
39867
39868
39869
39870
39871
39872
39873
39874
39875
39876
39877
39878
39879
39880
39881
39882
39883
39884
39885
39886
39887
39888
39889
39890
39891
39892
39893
39894
39895
39896
39897
39898
39899
39900
39901
39902
39903
39904
39905
39906
39907
39908
39909
39910
39911
39912
39913
39914
39915
39916
39917
39918
39919
39920
39921
39922
39923
39924
39925
39926
39927
39928
39929
39930
39931
39932
39933
39934
39935
39936
39937
39938
39939
39940
39941
39942
39943
39944
39945
39946
fe0895cf 39947
f0290fca
VS
39948
39949
243f8ae5 39950
e6cc62c6
VS
39951
39952
39953echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39954echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
32ddf007 39955set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
39956if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39957 echo $ECHO_N "(cached) $ECHO_C" >&6
39958else
39959 cat >conftest.make <<\_ACEOF
39960all:
39961 @echo 'ac_maketemp="$(MAKE)"'
39962_ACEOF
39963# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39964eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39965if test -n "$ac_maketemp"; then
39966 eval ac_cv_prog_make_${ac_make}_set=yes
39967else
39968 eval ac_cv_prog_make_${ac_make}_set=no
39969fi
39970rm -f conftest.make
39971fi
39972if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39973 echo "$as_me:$LINENO: result: yes" >&5
39974echo "${ECHO_T}yes" >&6
39975 SET_MAKE=
39976else
39977 echo "$as_me:$LINENO: result: no" >&5
39978echo "${ECHO_T}no" >&6
39979 SET_MAKE="MAKE=${MAKE-make}"
39980fi
39981
39982
39983if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
39984 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
39985fi
39986
39987 ac_config_headers="$ac_config_headers setup.h"
39988
39989
81345eef 39990 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
39991
39992
39993 ac_config_commands="$ac_config_commands default"
39994
39995
9de9b8f0 39996
6c3e36af
VZ
39997if test "$wxUSE_GUI" = "yes"; then
39998 SUBDIRS="samples demos utils contrib"
39999else SUBDIRS="samples utils"
40000fi
e6cc62c6 40001
166263e6 40002for subdir in `echo $SUBDIRS`; do
9747f85d 40003 if test -d ${srcdir}/${subdir} ; then
6c3e36af 40004 if test "$wxUSE_GUI" = "yes"; then
166263e6 40005 if test ${subdir} = "samples"; then
8772a1a7
VS
40006 makefiles="samples/Makefile.in $makefiles"
40007 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
40008 if test -d $srcdir/samples/$sample; then
40009 makefiles="samples/$sample/Makefile.in $makefiles"
40010 fi
40011 done
40012 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
40013 fi
6c3e36af 40014 else if test ${subdir} = "samples"; then
8772a1a7 40015 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 40016 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
40017 utils/HelpGen/src/Makefile.in \
40018 utils/tex2rtf/Makefile.in \
40019 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
40020 fi
40021 fi
40022
9747f85d
VS
40023 for mkin in $makefiles ; do
40024 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
40025 ac_config_files="$ac_config_files $mk"
e6cc62c6 40026
9747f85d
VS
40027 done
40028 fi
40029done
e6cc62c6 40030
9de9b8f0 40031
e6cc62c6
VS
40032cat >confcache <<\_ACEOF
40033# This file is a shell script that caches the results of configure
40034# tests run on this system so they can be shared between configure
40035# scripts and configure runs, see configure's option --config-cache.
40036# It is not useful on other systems. If it contains results you don't
40037# want to keep, you may remove or edit it.
40038#
40039# config.status only pays attention to the cache file if you give it
40040# the --recheck option to rerun configure.
40041#
40042# `ac_cv_env_foo' variables (set or unset) will be overridden when
40043# loading this file, other *unset* `ac_cv_foo' will be assigned the
40044# following values.
40045
40046_ACEOF
40047
40048# The following way of writing the cache mishandles newlines in values,
40049# but we know of no workaround that is simple, portable, and efficient.
40050# So, don't put newlines in cache variables' values.
40051# Ultrix sh set writes to stderr and can't be redirected directly,
40052# and sets the high bit in the cache file unless we assign to the vars.
40053{
40054 (set) 2>&1 |
40055 case `(ac_space=' '; set | grep ac_space) 2>&1` in
40056 *ac_space=\ *)
40057 # `set' does not quote correctly, so add quotes (double-quote
40058 # substitution turns \\\\ into \\, and sed turns \\ into \).
40059 sed -n \
32ddf007
VS
40060 "s/'/'\\\\''/g;
40061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
40062 ;;
40063 *)
40064 # `set' quotes correctly as required by POSIX, so do not add quotes.
40065 sed -n \
32ddf007 40066 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
40067 ;;
40068 esac;
40069} |
40070 sed '
40071 t clear
40072 : clear
40073 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
40074 t end
40075 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
40076 : end' >>confcache
40077if diff $cache_file confcache >/dev/null 2>&1; then :; else
40078 if test -w $cache_file; then
40079 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
40080 cat confcache >$cache_file
40081 else
40082 echo "not updating unwritable cache $cache_file"
40083 fi
40084fi
40085rm -f confcache
40086
40087test "x$prefix" = xNONE && prefix=$ac_default_prefix
40088# Let make expand exec_prefix.
40089test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
40090
40091# VPATH may cause trouble with some makes, so we remove $(srcdir),
40092# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40093# trailing colons and then remove the whole line if VPATH becomes empty
40094# (actually we leave an empty line to preserve line numbers).
40095if test "x$srcdir" = x.; then
32ddf007 40096 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
40097s/:*\$(srcdir):*/:/;
40098s/:*\${srcdir}:*/:/;
40099s/:*@srcdir@:*/:/;
32ddf007 40100s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 40101s/:*$//;
32ddf007 40102s/^[^=]*=[ ]*$//;
e6cc62c6
VS
40103}'
40104fi
40105
40106DEFS=-DHAVE_CONFIG_H
40107
40108ac_libobjs=
40109ac_ltlibobjs=
40110for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
40111 # 1. Remove the extension, and $U if already installed.
40112 ac_i=`echo "$ac_i" |
32ddf007 40113 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
40114 # 2. Add them.
40115 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
40116 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
40117done
40118LIBOBJS=$ac_libobjs
40119
40120LTLIBOBJS=$ac_ltlibobjs
40121
40122
40123
40124: ${CONFIG_STATUS=./config.status}
40125ac_clean_files_save=$ac_clean_files
40126ac_clean_files="$ac_clean_files $CONFIG_STATUS"
40127{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
40128echo "$as_me: creating $CONFIG_STATUS" >&6;}
40129cat >$CONFIG_STATUS <<_ACEOF
40130#! $SHELL
40131# Generated by $as_me.
40132# Run this file to recreate the current configuration.
40133# Compiler output produced by configure, useful for debugging
40134# configure, is in config.log if it exists.
40135
40136debug=false
40137ac_cs_recheck=false
40138ac_cs_silent=false
40139SHELL=\${CONFIG_SHELL-$SHELL}
40140_ACEOF
40141
40142cat >>$CONFIG_STATUS <<\_ACEOF
40143## --------------------- ##
40144## M4sh Initialization. ##
40145## --------------------- ##
40146
40147# Be Bourne compatible
40148if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40149 emulate sh
40150 NULLCMD=:
40151 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40152 # is contrary to our usage. Disable this feature.
40153 alias -g '${1+"$@"}'='"$@"'
40154elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40155 set -o posix
40156fi
32ddf007 40157DUALCASE=1; export DUALCASE # for MKS sh
e6cc62c6
VS
40158
40159# Support unset when possible.
32ddf007 40160if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
40161 as_unset=unset
40162else
40163 as_unset=false
40164fi
40165
40166
40167# Work around bugs in pre-3.0 UWIN ksh.
40168$as_unset ENV MAIL MAILPATH
40169PS1='$ '
40170PS2='> '
40171PS4='+ '
40172
40173# NLS nuisances.
40174for as_var in \
40175 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40176 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40177 LC_TELEPHONE LC_TIME
40178do
32ddf007 40179 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
40180 eval $as_var=C; export $as_var
40181 else
40182 $as_unset $as_var
40183 fi
40184done
40185
40186# Required to use basename.
40187if expr a : '\(a\)' >/dev/null 2>&1; then
40188 as_expr=expr
40189else
40190 as_expr=false
40191fi
40192
40193if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40194 as_basename=basename
40195else
40196 as_basename=false
40197fi
40198
40199
40200# Name of the executable.
40201as_me=`$as_basename "$0" ||
40202$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40203 X"$0" : 'X\(//\)$' \| \
40204 X"$0" : 'X\(/\)$' \| \
40205 . : '\(.\)' 2>/dev/null ||
40206echo X/"$0" |
40207 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40208 /^X\/\(\/\/\)$/{ s//\1/; q; }
40209 /^X\/\(\/\).*/{ s//\1/; q; }
40210 s/.*/./; q'`
40211
40212
40213# PATH needs CR, and LINENO needs CR and PATH.
40214# Avoid depending upon Character Ranges.
40215as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40216as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40217as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40218as_cr_digits='0123456789'
40219as_cr_alnum=$as_cr_Letters$as_cr_digits
40220
40221# The user is always right.
40222if test "${PATH_SEPARATOR+set}" != set; then
40223 echo "#! /bin/sh" >conf$$.sh
40224 echo "exit 0" >>conf$$.sh
40225 chmod +x conf$$.sh
40226 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40227 PATH_SEPARATOR=';'
40228 else
40229 PATH_SEPARATOR=:
40230 fi
40231 rm -f conf$$.sh
40232fi
40233
40234
40235 as_lineno_1=$LINENO
40236 as_lineno_2=$LINENO
40237 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40238 test "x$as_lineno_1" != "x$as_lineno_2" &&
40239 test "x$as_lineno_3" = "x$as_lineno_2" || {
40240 # Find who we are. Look in the path if we contain no path at all
40241 # relative or not.
40242 case $0 in
40243 *[\\/]* ) as_myself=$0 ;;
40244 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40245for as_dir in $PATH
40246do
40247 IFS=$as_save_IFS
40248 test -z "$as_dir" && as_dir=.
40249 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40250done
40251
40252 ;;
40253 esac
40254 # We did not find ourselves, most probably we were run as `sh COMMAND'
40255 # in which case we are not to be found in the path.
40256 if test "x$as_myself" = x; then
40257 as_myself=$0
40258 fi
40259 if test ! -f "$as_myself"; then
40260 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40261echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40262 { (exit 1); exit 1; }; }
40263 fi
40264 case $CONFIG_SHELL in
40265 '')
40266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40267for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40268do
40269 IFS=$as_save_IFS
40270 test -z "$as_dir" && as_dir=.
40271 for as_base in sh bash ksh sh5; do
40272 case $as_dir in
40273 /*)
40274 if ("$as_dir/$as_base" -c '
40275 as_lineno_1=$LINENO
40276 as_lineno_2=$LINENO
40277 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40278 test "x$as_lineno_1" != "x$as_lineno_2" &&
40279 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
40280 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40281 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40282 CONFIG_SHELL=$as_dir/$as_base
40283 export CONFIG_SHELL
40284 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40285 fi;;
40286 esac
40287 done
40288done
40289;;
40290 esac
40291
40292 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40293 # uniformly replaced by the line number. The first 'sed' inserts a
40294 # line-number line before each line; the second 'sed' does the real
40295 # work. The second script uses 'N' to pair each line-number line
40296 # with the numbered line, and appends trailing '-' during
40297 # substitution so that $LINENO is not a special case at line end.
40298 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40299 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
40300 sed '=' <$as_myself |
40301 sed '
40302 N
40303 s,$,-,
40304 : loop
40305 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40306 t loop
40307 s,-$,,
40308 s,^['$as_cr_digits']*\n,,
40309 ' >$as_me.lineno &&
40310 chmod +x $as_me.lineno ||
40311 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40312echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40313 { (exit 1); exit 1; }; }
40314
40315 # Don't try to exec as it changes $[0], causing all sort of problems
40316 # (the dirname of $[0] is not the place where we might find the
40317 # original and so on. Autoconf is especially sensible to this).
40318 . ./$as_me.lineno
40319 # Exit status is that of the last command.
40320 exit
40321}
40322
40323
40324case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40325 *c*,-n*) ECHO_N= ECHO_C='
40326' ECHO_T=' ' ;;
40327 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40328 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
40329esac
40330
40331if expr a : '\(a\)' >/dev/null 2>&1; then
40332 as_expr=expr
40333else
40334 as_expr=false
40335fi
40336
40337rm -f conf$$ conf$$.exe conf$$.file
40338echo >conf$$.file
40339if ln -s conf$$.file conf$$ 2>/dev/null; then
40340 # We could just check for DJGPP; but this test a) works b) is more generic
40341 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40342 if test -f conf$$.exe; then
40343 # Don't use ln at all; we don't have any links
40344 as_ln_s='cp -p'
40345 else
40346 as_ln_s='ln -s'
40347 fi
40348elif ln conf$$.file conf$$ 2>/dev/null; then
40349 as_ln_s=ln
40350else
40351 as_ln_s='cp -p'
40352fi
40353rm -f conf$$ conf$$.exe conf$$.file
40354
40355if mkdir -p . 2>/dev/null; then
40356 as_mkdir_p=:
40357else
32ddf007 40358 test -d ./-p && rmdir ./-p
e6cc62c6
VS
40359 as_mkdir_p=false
40360fi
40361
40362as_executable_p="test -f"
40363
40364# Sed expression to map a string onto a valid CPP name.
32ddf007 40365as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
40366
40367# Sed expression to map a string onto a valid variable name.
32ddf007 40368as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
40369
40370
40371# IFS
40372# We need space, tab and new line, in precisely that order.
40373as_nl='
40374'
40375IFS=" $as_nl"
40376
40377# CDPATH.
40378$as_unset CDPATH
40379
40380exec 6>&1
40381
40382# Open the log real soon, to keep \$[0] and so on meaningful, and to
40383# report actual input values of CONFIG_FILES etc. instead of their
40384# values after options handling. Logging --version etc. is OK.
40385exec 5>>config.log
40386{
40387 echo
40388 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40389## Running $as_me. ##
40390_ASBOX
40391} >&5
40392cat >&5 <<_CSEOF
40393
e46d2a18 40394This file was extended by wxWindows $as_me 2.5.1, which was
32ddf007 40395generated by GNU Autoconf 2.59. Invocation command line was
e6cc62c6
VS
40396
40397 CONFIG_FILES = $CONFIG_FILES
40398 CONFIG_HEADERS = $CONFIG_HEADERS
40399 CONFIG_LINKS = $CONFIG_LINKS
40400 CONFIG_COMMANDS = $CONFIG_COMMANDS
40401 $ $0 $@
40402
40403_CSEOF
40404echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40405echo >&5
40406_ACEOF
40407
40408# Files that config.status was made for.
40409if test -n "$ac_config_files"; then
40410 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40411fi
40412
40413if test -n "$ac_config_headers"; then
40414 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40415fi
40416
40417if test -n "$ac_config_links"; then
40418 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40419fi
40420
40421if test -n "$ac_config_commands"; then
40422 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40423fi
40424
40425cat >>$CONFIG_STATUS <<\_ACEOF
40426
40427ac_cs_usage="\
40428\`$as_me' instantiates files from templates according to the
40429current configuration.
40430
40431Usage: $0 [OPTIONS] [FILE]...
40432
40433 -h, --help print this help, then exit
40434 -V, --version print version number, then exit
40435 -q, --quiet do not print progress messages
40436 -d, --debug don't remove temporary files
40437 --recheck update $as_me by reconfiguring in the same conditions
40438 --file=FILE[:TEMPLATE]
32ddf007 40439 instantiate the configuration file FILE
e6cc62c6 40440 --header=FILE[:TEMPLATE]
32ddf007 40441 instantiate the configuration header FILE
e6cc62c6
VS
40442
40443Configuration files:
40444$config_files
40445
40446Configuration headers:
40447$config_headers
40448
40449Configuration commands:
40450$config_commands
40451
40452Report bugs to <bug-autoconf@gnu.org>."
40453_ACEOF
40454
40455cat >>$CONFIG_STATUS <<_ACEOF
40456ac_cs_version="\\
e46d2a18 40457wxWindows config.status 2.5.1
32ddf007 40458configured by $0, generated by GNU Autoconf 2.59,
e6cc62c6
VS
40459 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40460
32ddf007 40461Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
40462This config.status script is free software; the Free Software Foundation
40463gives unlimited permission to copy, distribute and modify it."
40464srcdir=$srcdir
40465INSTALL="$INSTALL"
40466_ACEOF
40467
40468cat >>$CONFIG_STATUS <<\_ACEOF
40469# If no file are specified by the user, then we need to provide default
40470# value. By we need to know if files were specified by the user.
40471ac_need_defaults=:
40472while test $# != 0
40473do
40474 case $1 in
40475 --*=*)
40476 ac_option=`expr "x$1" : 'x\([^=]*\)='`
40477 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40478 ac_shift=:
40479 ;;
40480 -*)
40481 ac_option=$1
40482 ac_optarg=$2
40483 ac_shift=shift
40484 ;;
40485 *) # This is not an option, so the user has probably given explicit
40486 # arguments.
40487 ac_option=$1
40488 ac_need_defaults=false;;
40489 esac
40490
40491 case $ac_option in
40492 # Handling of the options.
40493_ACEOF
40494cat >>$CONFIG_STATUS <<\_ACEOF
40495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40496 ac_cs_recheck=: ;;
40497 --version | --vers* | -V )
40498 echo "$ac_cs_version"; exit 0 ;;
40499 --he | --h)
40500 # Conflict between --help and --header
40501 { { echo "$as_me:$LINENO: error: ambiguous option: $1
40502Try \`$0 --help' for more information." >&5
40503echo "$as_me: error: ambiguous option: $1
40504Try \`$0 --help' for more information." >&2;}
40505 { (exit 1); exit 1; }; };;
40506 --help | --hel | -h )
40507 echo "$ac_cs_usage"; exit 0 ;;
40508 --debug | --d* | -d )
40509 debug=: ;;
40510 --file | --fil | --fi | --f )
40511 $ac_shift
40512 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40513 ac_need_defaults=false;;
40514 --header | --heade | --head | --hea )
40515 $ac_shift
40516 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40517 ac_need_defaults=false;;
40518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40519 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40520 ac_cs_silent=: ;;
40521
40522 # This is an error.
40523 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40524Try \`$0 --help' for more information." >&5
40525echo "$as_me: error: unrecognized option: $1
40526Try \`$0 --help' for more information." >&2;}
40527 { (exit 1); exit 1; }; } ;;
40528
40529 *) ac_config_targets="$ac_config_targets $1" ;;
40530
40531 esac
40532 shift
40533done
40534
40535ac_configure_extra_args=
40536
40537if $ac_cs_silent; then
40538 exec 6>/dev/null
40539 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
40540fi
40541
e6cc62c6
VS
40542_ACEOF
40543cat >>$CONFIG_STATUS <<_ACEOF
40544if \$ac_cs_recheck; then
40545 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40546 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
40547fi
40548
e6cc62c6 40549_ACEOF
fe0895cf 40550
e6cc62c6 40551cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 40552#
e6cc62c6 40553# INIT-COMMANDS section.
10f2d63a 40554#
10f2d63a 40555
a0b9e27f 40556
e6cc62c6
VS
40557 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
40558 LN_S="${LN_S}"
10f2d63a 40559
10f2d63a 40560
10f2d63a 40561
e6cc62c6 40562_ACEOF
8284b0c5 40563
52127426 40564
247f5006 40565
e6cc62c6
VS
40566cat >>$CONFIG_STATUS <<\_ACEOF
40567for ac_config_target in $ac_config_targets
247f5006 40568do
e6cc62c6
VS
40569 case "$ac_config_target" in
40570 # Handling of arguments.
81345eef
VZ
40571 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
40572 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
40573 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 40574 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
40575 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40576 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
40577 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40578echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40579 { (exit 1); exit 1; }; };;
247f5006
VZ
40580 esac
40581done
40582
e6cc62c6
VS
40583# If the user did not use the arguments to specify the items to instantiate,
40584# then the envvar interface is used. Set only those that are not.
40585# We use the long form for the default assignment because of an extremely
40586# bizarre bug on SunOS 4.1.3.
40587if $ac_need_defaults; then
40588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40589 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40590 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40591fi
40592
40593# Have a temporary directory for convenience. Make it in the build tree
40594# simply because there is no reason to put it here, and in addition,
40595# creating and moving files from /tmp can sometimes cause problems.
40596# Create a temporary directory, and hook for its removal unless debugging.
40597$debug ||
40598{
40599 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40600 trap '{ (exit 1); exit 1; }' 1 2 13 15
40601}
247f5006 40602
e6cc62c6 40603# Create a (secure) tmp directory for tmp files.
247f5006 40604
e6cc62c6
VS
40605{
40606 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40607 test -n "$tmp" && test -d "$tmp"
40608} ||
40609{
40610 tmp=./confstat$$-$RANDOM
40611 (umask 077 && mkdir $tmp)
40612} ||
40613{
40614 echo "$me: cannot create a temporary directory in ." >&2
40615 { (exit 1); exit 1; }
40616}
40617
40618_ACEOF
40619
40620cat >>$CONFIG_STATUS <<_ACEOF
40621
40622#
40623# CONFIG_FILES section.
40624#
247f5006 40625
e6cc62c6
VS
40626# No need to generate the scripts if there are no CONFIG_FILES.
40627# This happens for instance when ./config.status config.h
40628if test -n "\$CONFIG_FILES"; then
40629 # Protect against being on the right side of a sed subst in config.status.
40630 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40631 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40632s,@SHELL@,$SHELL,;t t
40633s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40634s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40635s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40636s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40637s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40638s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40639s,@exec_prefix@,$exec_prefix,;t t
40640s,@prefix@,$prefix,;t t
40641s,@program_transform_name@,$program_transform_name,;t t
40642s,@bindir@,$bindir,;t t
40643s,@sbindir@,$sbindir,;t t
40644s,@libexecdir@,$libexecdir,;t t
40645s,@datadir@,$datadir,;t t
40646s,@sysconfdir@,$sysconfdir,;t t
40647s,@sharedstatedir@,$sharedstatedir,;t t
40648s,@localstatedir@,$localstatedir,;t t
40649s,@libdir@,$libdir,;t t
40650s,@includedir@,$includedir,;t t
40651s,@oldincludedir@,$oldincludedir,;t t
40652s,@infodir@,$infodir,;t t
40653s,@mandir@,$mandir,;t t
40654s,@build_alias@,$build_alias,;t t
40655s,@host_alias@,$host_alias,;t t
40656s,@target_alias@,$target_alias,;t t
40657s,@DEFS@,$DEFS,;t t
40658s,@ECHO_C@,$ECHO_C,;t t
40659s,@ECHO_N@,$ECHO_N,;t t
40660s,@ECHO_T@,$ECHO_T,;t t
40661s,@LIBS@,$LIBS,;t t
40662s,@build@,$build,;t t
40663s,@build_cpu@,$build_cpu,;t t
40664s,@build_vendor@,$build_vendor,;t t
40665s,@build_os@,$build_os,;t t
40666s,@host@,$host,;t t
40667s,@host_cpu@,$host_cpu,;t t
40668s,@host_vendor@,$host_vendor,;t t
40669s,@host_os@,$host_os,;t t
40670s,@target@,$target,;t t
40671s,@target_cpu@,$target_cpu,;t t
40672s,@target_vendor@,$target_vendor,;t t
40673s,@target_os@,$target_os,;t t
40674s,@CC@,$CC,;t t
40675s,@CFLAGS@,$CFLAGS,;t t
40676s,@LDFLAGS@,$LDFLAGS,;t t
40677s,@CPPFLAGS@,$CPPFLAGS,;t t
40678s,@ac_ct_CC@,$ac_ct_CC,;t t
40679s,@EXEEXT@,$EXEEXT,;t t
40680s,@OBJEXT@,$OBJEXT,;t t
40681s,@CPP@,$CPP,;t t
40682s,@EGREP@,$EGREP,;t t
40683s,@CXX@,$CXX,;t t
40684s,@CXXFLAGS@,$CXXFLAGS,;t t
40685s,@ac_ct_CXX@,$ac_ct_CXX,;t t
40686s,@RANLIB@,$RANLIB,;t t
40687s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40688s,@AR@,$AR,;t t
40689s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40690s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40691s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40692s,@STRIP@,$STRIP,;t t
40693s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
40694s,@LN_S@,$LN_S,;t t
40695s,@CXXCPP@,$CXXCPP,;t t
672abd7a 40696s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
40697s,@PKG_CONFIG@,$PKG_CONFIG,;t t
40698s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
40699s,@GTK_LIBS@,$GTK_LIBS,;t t
40700s,@GTK_CONFIG@,$GTK_CONFIG,;t t
40701s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
40702s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
40703s,@X_CFLAGS@,$X_CFLAGS,;t t
40704s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
40705s,@X_LIBS@,$X_LIBS,;t t
40706s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
40707s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
40708s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
40709s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
40710s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
40711s,@RESCOMP@,$RESCOMP,;t t
40712s,@DEREZ@,$DEREZ,;t t
40713s,@SETFILE@,$SETFILE,;t t
40714s,@LIBICONV@,$LIBICONV,;t t
edd891e2 40715s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
f93ca9fd
VS
40716s,@SDL_CONFIG@,$SDL_CONFIG,;t t
40717s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
40718s,@SDL_LIBS@,$SDL_LIBS,;t t
edd891e2
VS
40719s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
40720s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
40721s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
40722s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 40723s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
40724s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
40725s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
40726s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
40727s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
40728s,@VENDOR@,$VENDOR,;t t
40729s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
40730s,@WXUNIV@,$WXUNIV,;t t
40731s,@MONOLITHIC@,$MONOLITHIC,;t t
f93ca9fd 40732s,@USE_PLUGINS@,$USE_PLUGINS,;t t
e6cc62c6 40733s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 40734s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 40735s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 40736s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 40737s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 40738s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
f93ca9fd
VS
40739s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
40740s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
e6cc62c6
VS
40741s,@UNICODE@,$UNICODE,;t t
40742s,@BUILD@,$BUILD,;t t
6c67131a
VS
40743s,@DEBUG_INFO@,$DEBUG_INFO,;t t
40744s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
40745s,@SHARED@,$SHARED,;t t
40746s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
40747s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
40748s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 40749s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 40750s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
40751s,@SET_MAKE@,$SET_MAKE,;t t
40752s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
40753s,@ac_ct_AR@,$ac_ct_AR,;t t
40754s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40755s,@NM@,$NM,;t t
40756s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 40757s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 40758s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
40759s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
40760s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
40761s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
40762s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
40763s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 40764s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 40765s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 40766s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 40767s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 40768s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 40769s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 40770s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
40771s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
40772s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
40773s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
40774s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
40775s,@PIC_FLAG@,$PIC_FLAG,;t t
40776s,@USE_SOVERSION@,$USE_SOVERSION,;t t
40777s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
40778s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
40779s,@USE_MACVERSION@,$USE_MACVERSION,;t t
40780s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
40781s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 40782s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 40783s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 40784s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
40785s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
40786s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
40787s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
40788s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
d78c94f2 40789s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a 40790s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
40791s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
40792s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
6c67131a
VS
40793s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
40794s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
40795s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 40796s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 40797s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 40798s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 40799s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
40800s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
40801s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 40802s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t
250700e4 40803s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 40804s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 40805s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 40806s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 40807s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t
250700e4 40808s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 40809s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
f95e4495 40810s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
3af038c0 40811s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
40812s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
40813s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
40814s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
40815s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 40816s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 40817s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
40818s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
40819s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
40820s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 40821s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 40822s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 40823s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 40824s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 40825s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 40826s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 40827s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
f93ca9fd 40828s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
3af038c0
VS
40829s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
40830s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 40831s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 40832s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
40833s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40834s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40835s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
40836s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
40837s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
40838s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
40839s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 40840s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 40841s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
40842s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
40843s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
40844s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
40845s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 40846s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 40847s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 40848s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
40849s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
40850s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
40851s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
40852s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
40853s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
40854s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 40855s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
40856s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
40857s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
40858s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
40859s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
40860s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
40861s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
40862s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 40863s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
40864s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
40865s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
40866s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
40867s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
40868s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
40869s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
40870s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40871s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40872s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 40873s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
f93ca9fd 40874s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
6f628073
VS
40875s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
40876s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
40877s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
40878s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
f93ca9fd
VS
40879s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
40880s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
3af038c0 40881s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 40882s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
40883s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
40884s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
40885s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
40886s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
40887s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
40888s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
40889s,@PATH_IFS@,$PATH_IFS,;t t
40890s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
40891s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
40892s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
40893s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
40894s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
40895s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
40896s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
40897s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
40898s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
40899s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
40900s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
40901s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
40902s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
40903s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
40904s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
40905s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
40906s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
40907s,@WX_ALL@,$WX_ALL,;t t
40908s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
40909s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
40910s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
40911s,@STATIC_FLAG@,$STATIC_FLAG,;t t
40912s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
40913s,@USE_GUI@,$USE_GUI,;t t
40914s,@AFMINSTALL@,$AFMINSTALL,;t t
40915s,@WIN32INSTALL@,$WIN32INSTALL,;t t
40916s,@TOOLKIT@,$TOOLKIT,;t t
40917s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
40918s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
40919s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
40920s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
40921s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
40922s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
40923s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 40924s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
40925s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
40926s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
40927s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
40928s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
40929s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
40930s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 40931s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 40932s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
40933s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
40934s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
40935s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
40936s,@ALL_HEADERS@,$ALL_HEADERS,;t t
40937s,@ALL_SOURCES@,$ALL_SOURCES,;t t
40938s,@GUIDIST@,$GUIDIST,;t t
40939s,@PORT_FILES@,$PORT_FILES,;t t
40940s,@DISTDIR@,$DISTDIR,;t t
40941s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
40942s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
40943s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
40944s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
40945s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
40946s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
40947s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
40948s,@RESFLAGS@,$RESFLAGS,;t t
40949s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
40950s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
40951s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
e6cc62c6
VS
40952s,@LIBWXMACRES@,$LIBWXMACRES,;t t
40953s,@MACRESCOMP@,$MACRESCOMP,;t t
40954s,@MACSETFILE@,$MACSETFILE,;t t
40955s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
40956s,@GCC@,$GCC,;t t
243f8ae5 40957s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
e6cc62c6
VS
40958s,@DLLTOOL@,$DLLTOOL,;t t
40959s,@AS@,$AS,;t t
e6cc62c6
VS
40960s,@LD@,$LD,;t t
40961s,@MAKEINFO@,$MAKEINFO,;t t
40962s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
40963s,@LIBOBJS@,$LIBOBJS,;t t
40964s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
40965CEOF
40966
e6cc62c6
VS
40967_ACEOF
40968
40969 cat >>$CONFIG_STATUS <<\_ACEOF
40970 # Split the substitutions into bite-sized pieces for seds with
40971 # small command number limits, like on Digital OSF/1 and HP-UX.
40972 ac_max_sed_lines=48
40973 ac_sed_frag=1 # Number of current file.
40974 ac_beg=1 # First line for current file.
40975 ac_end=$ac_max_sed_lines # Line after last line for current file.
40976 ac_more_lines=:
40977 ac_sed_cmds=
40978 while $ac_more_lines; do
40979 if test $ac_beg -gt 1; then
40980 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 40981 else
e6cc62c6
VS
40982 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40983 fi
40984 if test ! -s $tmp/subs.frag; then
40985 ac_more_lines=false
40986 else
40987 # The purpose of the label and of the branching condition is to
40988 # speed up the sed processing (if there are no `@' at all, there
40989 # is no need to browse any of the substitutions).
40990 # These are the two extra sed commands mentioned above.
40991 (echo ':t
40992 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40993 if test -z "$ac_sed_cmds"; then
32ddf007 40994 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 40995 else
32ddf007 40996 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
40997 fi
40998 ac_sed_frag=`expr $ac_sed_frag + 1`
40999 ac_beg=$ac_end
41000 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 41001 fi
e6cc62c6
VS
41002 done
41003 if test -z "$ac_sed_cmds"; then
41004 ac_sed_cmds=cat
10f2d63a 41005 fi
e6cc62c6 41006fi # test -n "$CONFIG_FILES"
10f2d63a 41007
e6cc62c6
VS
41008_ACEOF
41009cat >>$CONFIG_STATUS <<\_ACEOF
41010for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 41011 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
41012 case $ac_file in
41013 - | *:- | *:-:* ) # input from stdin
32ddf007
VS
41014 cat >$tmp/stdin
41015 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41016 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 41017 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32ddf007 41018 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 41019 * ) ac_file_in=$ac_file.in ;;
10f2d63a 41020 esac
247f5006 41021
e6cc62c6
VS
41022 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
41023 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41024$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41025 X"$ac_file" : 'X\(//\)[^/]' \| \
41026 X"$ac_file" : 'X\(//\)$' \| \
41027 X"$ac_file" : 'X\(/\)' \| \
41028 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41029echo X"$ac_file" |
41030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41031 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41032 /^X\(\/\/\)$/{ s//\1/; q; }
41033 /^X\(\/\).*/{ s//\1/; q; }
41034 s/.*/./; q'`
41035 { if $as_mkdir_p; then
41036 mkdir -p "$ac_dir"
a0b9e27f 41037 else
e6cc62c6
VS
41038 as_dir="$ac_dir"
41039 as_dirs=
41040 while test ! -d "$as_dir"; do
41041 as_dirs="$as_dir $as_dirs"
41042 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41043$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41044 X"$as_dir" : 'X\(//\)[^/]' \| \
41045 X"$as_dir" : 'X\(//\)$' \| \
41046 X"$as_dir" : 'X\(/\)' \| \
41047 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41048echo X"$as_dir" |
41049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41050 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41051 /^X\(\/\/\)$/{ s//\1/; q; }
41052 /^X\(\/\).*/{ s//\1/; q; }
41053 s/.*/./; q'`
41054 done
41055 test ! -n "$as_dirs" || mkdir $as_dirs
41056 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41057echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41058 { (exit 1); exit 1; }; }; }
41059
41060 ac_builddir=.
41061
41062if test "$ac_dir" != .; then
41063 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41064 # A "../" for each directory in $ac_dir_suffix.
41065 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41066else
41067 ac_dir_suffix= ac_top_builddir=
41068fi
247f5006 41069
e6cc62c6
VS
41070case $srcdir in
41071 .) # No --srcdir option. We are building in place.
41072 ac_srcdir=.
41073 if test -z "$ac_top_builddir"; then
41074 ac_top_srcdir=.
41075 else
41076 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41077 fi ;;
41078 [\\/]* | ?:[\\/]* ) # Absolute path.
41079 ac_srcdir=$srcdir$ac_dir_suffix;
41080 ac_top_srcdir=$srcdir ;;
247f5006 41081 *) # Relative path.
e6cc62c6
VS
41082 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41083 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41084esac
32ddf007
VS
41085
41086# Do not use `cd foo && pwd` to compute absolute paths, because
41087# the directories may not exist.
41088case `pwd` in
41089.) ac_abs_builddir="$ac_dir";;
41090*)
41091 case "$ac_dir" in
41092 .) ac_abs_builddir=`pwd`;;
41093 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41094 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41095 esac;;
41096esac
41097case $ac_abs_builddir in
41098.) ac_abs_top_builddir=${ac_top_builddir}.;;
41099*)
41100 case ${ac_top_builddir}. in
41101 .) ac_abs_top_builddir=$ac_abs_builddir;;
41102 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41103 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41104 esac;;
41105esac
41106case $ac_abs_builddir in
41107.) ac_abs_srcdir=$ac_srcdir;;
41108*)
41109 case $ac_srcdir in
41110 .) ac_abs_srcdir=$ac_abs_builddir;;
41111 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41112 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41113 esac;;
41114esac
41115case $ac_abs_builddir in
41116.) ac_abs_top_srcdir=$ac_top_srcdir;;
41117*)
41118 case $ac_top_srcdir in
41119 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41120 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41121 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41122 esac;;
41123esac
10f2d63a 41124
247f5006 41125
e6cc62c6
VS
41126 case $INSTALL in
41127 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41128 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 41129 esac
247f5006 41130
e6cc62c6
VS
41131 if test x"$ac_file" != x-; then
41132 { echo "$as_me:$LINENO: creating $ac_file" >&5
41133echo "$as_me: creating $ac_file" >&6;}
41134 rm -f "$ac_file"
41135 fi
41136 # Let's still pretend it is `configure' which instantiates (i.e., don't
41137 # use $as_me), people would be surprised to read:
41138 # /* config.h. Generated by config.status. */
41139 if test x"$ac_file" = x-; then
41140 configure_input=
41141 else
41142 configure_input="$ac_file. "
41143 fi
41144 configure_input=$configure_input"Generated from `echo $ac_file_in |
32ddf007 41145 sed 's,.*/,,'` by configure."
e6cc62c6
VS
41146
41147 # First look for the input files in the build tree, otherwise in the
41148 # src tree.
41149 ac_file_inputs=`IFS=:
41150 for f in $ac_file_in; do
41151 case $f in
41152 -) echo $tmp/stdin ;;
41153 [\\/$]*)
32ddf007
VS
41154 # Absolute (can't be DOS-style, as IFS=:)
41155 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
41156echo "$as_me: error: cannot find input file: $f" >&2;}
41157 { (exit 1); exit 1; }; }
32ddf007 41158 echo "$f";;
e6cc62c6 41159 *) # Relative
32ddf007
VS
41160 if test -f "$f"; then
41161 # Build tree
41162 echo "$f"
41163 elif test -f "$srcdir/$f"; then
41164 # Source tree
41165 echo "$srcdir/$f"
41166 else
41167 # /dev/null tree
41168 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
41169echo "$as_me: error: cannot find input file: $f" >&2;}
41170 { (exit 1); exit 1; }; }
32ddf007 41171 fi;;
e6cc62c6
VS
41172 esac
41173 done` || { (exit 1); exit 1; }
41174_ACEOF
41175cat >>$CONFIG_STATUS <<_ACEOF
41176 sed "$ac_vpsub
41177$extrasub
41178_ACEOF
41179cat >>$CONFIG_STATUS <<\_ACEOF
41180:t
41181/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41182s,@configure_input@,$configure_input,;t t
41183s,@srcdir@,$ac_srcdir,;t t
41184s,@abs_srcdir@,$ac_abs_srcdir,;t t
41185s,@top_srcdir@,$ac_top_srcdir,;t t
41186s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41187s,@builddir@,$ac_builddir,;t t
41188s,@abs_builddir@,$ac_abs_builddir,;t t
41189s,@top_builddir@,$ac_top_builddir,;t t
41190s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41191s,@INSTALL@,$ac_INSTALL,;t t
41192" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41193 rm -f $tmp/stdin
41194 if test x"$ac_file" != x-; then
41195 mv $tmp/out $ac_file
41196 else
41197 cat $tmp/out
41198 rm -f $tmp/out
41199 fi
41200
41201done
41202_ACEOF
41203cat >>$CONFIG_STATUS <<\_ACEOF
41204
41205#
41206# CONFIG_HEADER section.
41207#
10f2d63a
VZ
41208
41209# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41210# NAME is the cpp macro being defined and VALUE is the value it is being given.
41211#
41212# ac_d sets the value in "#define NAME VALUE" lines.
32ddf007
VS
41213ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41214ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
41215ac_dC=' '
41216ac_dD=',;t'
41217# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32ddf007 41218ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 41219ac_uB='$,\1#\2define\3'
10f2d63a 41220ac_uC=' '
e6cc62c6
VS
41221ac_uD=',;t'
41222
41223for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 41224 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
41225 case $ac_file in
41226 - | *:- | *:-:* ) # input from stdin
32ddf007
VS
41227 cat >$tmp/stdin
41228 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41229 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 41230 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32ddf007 41231 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 41232 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
41233 esac
41234
e6cc62c6
VS
41235 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41236echo "$as_me: creating $ac_file" >&6;}
41237
41238 # First look for the input files in the build tree, otherwise in the
41239 # src tree.
41240 ac_file_inputs=`IFS=:
41241 for f in $ac_file_in; do
41242 case $f in
41243 -) echo $tmp/stdin ;;
41244 [\\/$]*)
32ddf007
VS
41245 # Absolute (can't be DOS-style, as IFS=:)
41246 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
41247echo "$as_me: error: cannot find input file: $f" >&2;}
41248 { (exit 1); exit 1; }; }
32ddf007
VS
41249 # Do quote $f, to prevent DOS paths from being IFS'd.
41250 echo "$f";;
e6cc62c6 41251 *) # Relative
32ddf007
VS
41252 if test -f "$f"; then
41253 # Build tree
41254 echo "$f"
41255 elif test -f "$srcdir/$f"; then
41256 # Source tree
41257 echo "$srcdir/$f"
41258 else
41259 # /dev/null tree
41260 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
41261echo "$as_me: error: cannot find input file: $f" >&2;}
41262 { (exit 1); exit 1; }; }
32ddf007 41263 fi;;
e6cc62c6
VS
41264 esac
41265 done` || { (exit 1); exit 1; }
41266 # Remove the trailing spaces.
32ddf007 41267 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
41268
41269_ACEOF
41270
41271# Transform confdefs.h into two sed scripts, `conftest.defines' and
41272# `conftest.undefs', that substitutes the proper values into
41273# config.h.in to produce config.h. The first handles `#define'
41274# templates, and the second `#undef' templates.
41275# And first: Protect against being on the right side of a sed subst in
41276# config.status. Protect against being in an unquoted here document
41277# in config.status.
41278rm -f conftest.defines conftest.undefs
41279# Using a here document instead of a string reduces the quoting nightmare.
41280# Putting comments in sed scripts is not portable.
41281#
41282# `end' is used to avoid that the second main sed command (meant for
41283# 0-ary CPP macros) applies to n-ary macro definitions.
41284# See the Autoconf documentation for `clear'.
41285cat >confdef2sed.sed <<\_ACEOF
41286s/[\\&,]/\\&/g
41287s,[\\$`],\\&,g
41288t clear
41289: clear
32ddf007 41290s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 41291t end
32ddf007 41292s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
41293: end
41294_ACEOF
41295# If some macros were called several times there might be several times
41296# the same #defines, which is useless. Nevertheless, we may not want to
41297# sort them, since we want the *last* AC-DEFINE to be honored.
41298uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41299sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41300rm -f confdef2sed.sed
10f2d63a
VZ
41301
41302# This sed command replaces #undef with comments. This is necessary, for
41303# example, in the case of _POSIX_SOURCE, which is predefined and required
41304# on some systems where configure will not decide to define it.
e6cc62c6 41305cat >>conftest.undefs <<\_ACEOF
32ddf007 41306s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
41307_ACEOF
41308
41309# Break up conftest.defines because some shells have a limit on the size
41310# of here documents, and old seds have small limits too (100 cmds).
41311echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32ddf007 41312echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
41313echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41314echo ' :' >>$CONFIG_STATUS
41315rm -f conftest.tail
41316while grep . conftest.defines >/dev/null
41317do
41318 # Write a limited-size here document to $tmp/defines.sed.
41319 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41320 # Speed up: don't consider the non `#define' lines.
32ddf007 41321 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
41322 # Work around the forget-to-reset-the-flag bug.
41323 echo 't clr' >>$CONFIG_STATUS
41324 echo ': clr' >>$CONFIG_STATUS
41325 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41326 echo 'CEOF
41327 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41328 rm -f $tmp/in
41329 mv $tmp/out $tmp/in
41330' >>$CONFIG_STATUS
41331 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41332 rm -f conftest.defines
41333 mv conftest.tail conftest.defines
41334done
41335rm -f conftest.defines
41336echo ' fi # grep' >>$CONFIG_STATUS
41337echo >>$CONFIG_STATUS
10f2d63a 41338
e6cc62c6
VS
41339# Break up conftest.undefs because some shells have a limit on the size
41340# of here documents, and old seds have small limits too (100 cmds).
41341echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 41342rm -f conftest.tail
e6cc62c6 41343while grep . conftest.undefs >/dev/null
10f2d63a 41344do
e6cc62c6
VS
41345 # Write a limited-size here document to $tmp/undefs.sed.
41346 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41347 # Speed up: don't consider the non `#undef'
32ddf007 41348 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
41349 # Work around the forget-to-reset-the-flag bug.
41350 echo 't clr' >>$CONFIG_STATUS
41351 echo ': clr' >>$CONFIG_STATUS
41352 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 41353 echo 'CEOF
e6cc62c6
VS
41354 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41355 rm -f $tmp/in
41356 mv $tmp/out $tmp/in
41357' >>$CONFIG_STATUS
41358 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41359 rm -f conftest.undefs
41360 mv conftest.tail conftest.undefs
10f2d63a 41361done
e6cc62c6
VS
41362rm -f conftest.undefs
41363
41364cat >>$CONFIG_STATUS <<\_ACEOF
41365 # Let's still pretend it is `configure' which instantiates (i.e., don't
41366 # use $as_me), people would be surprised to read:
41367 # /* config.h. Generated by config.status. */
41368 if test x"$ac_file" = x-; then
41369 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 41370 else
e6cc62c6 41371 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 41372 fi
e6cc62c6
VS
41373 cat $tmp/in >>$tmp/config.h
41374 rm -f $tmp/in
41375 if test x"$ac_file" != x-; then
41376 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41377 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41378echo "$as_me: $ac_file is unchanged" >&6;}
41379 else
41380 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41381$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41382 X"$ac_file" : 'X\(//\)[^/]' \| \
41383 X"$ac_file" : 'X\(//\)$' \| \
41384 X"$ac_file" : 'X\(/\)' \| \
41385 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41386echo X"$ac_file" |
41387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41389 /^X\(\/\/\)$/{ s//\1/; q; }
41390 /^X\(\/\).*/{ s//\1/; q; }
41391 s/.*/./; q'`
41392 { if $as_mkdir_p; then
41393 mkdir -p "$ac_dir"
41394 else
41395 as_dir="$ac_dir"
41396 as_dirs=
41397 while test ! -d "$as_dir"; do
41398 as_dirs="$as_dir $as_dirs"
41399 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41400$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41401 X"$as_dir" : 'X\(//\)[^/]' \| \
41402 X"$as_dir" : 'X\(//\)$' \| \
41403 X"$as_dir" : 'X\(/\)' \| \
41404 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41405echo X"$as_dir" |
41406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41407 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41408 /^X\(\/\/\)$/{ s//\1/; q; }
41409 /^X\(\/\).*/{ s//\1/; q; }
41410 s/.*/./; q'`
41411 done
41412 test ! -n "$as_dirs" || mkdir $as_dirs
41413 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41414echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41415 { (exit 1); exit 1; }; }; }
a0b9e27f 41416
e6cc62c6
VS
41417 rm -f $ac_file
41418 mv $tmp/config.h $ac_file
41419 fi
41420 else
41421 cat $tmp/config.h
41422 rm -f $tmp/config.h
41423 fi
41424done
41425_ACEOF
41426cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 41427
e6cc62c6
VS
41428#
41429# CONFIG_COMMANDS section.
41430#
41431for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41432 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41433 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41434 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41435$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41436 X"$ac_dest" : 'X\(//\)[^/]' \| \
41437 X"$ac_dest" : 'X\(//\)$' \| \
41438 X"$ac_dest" : 'X\(/\)' \| \
41439 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41440echo X"$ac_dest" |
41441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41443 /^X\(\/\/\)$/{ s//\1/; q; }
41444 /^X\(\/\).*/{ s//\1/; q; }
41445 s/.*/./; q'`
32ddf007
VS
41446 { if $as_mkdir_p; then
41447 mkdir -p "$ac_dir"
41448 else
41449 as_dir="$ac_dir"
41450 as_dirs=
41451 while test ! -d "$as_dir"; do
41452 as_dirs="$as_dir $as_dirs"
41453 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41455 X"$as_dir" : 'X\(//\)[^/]' \| \
41456 X"$as_dir" : 'X\(//\)$' \| \
41457 X"$as_dir" : 'X\(/\)' \| \
41458 . : '\(.\)' 2>/dev/null ||
41459echo X"$as_dir" |
41460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41462 /^X\(\/\/\)$/{ s//\1/; q; }
41463 /^X\(\/\).*/{ s//\1/; q; }
41464 s/.*/./; q'`
41465 done
41466 test ! -n "$as_dirs" || mkdir $as_dirs
41467 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41468echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41469 { (exit 1); exit 1; }; }; }
41470
e6cc62c6
VS
41471 ac_builddir=.
41472
41473if test "$ac_dir" != .; then
41474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41475 # A "../" for each directory in $ac_dir_suffix.
41476 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41477else
41478 ac_dir_suffix= ac_top_builddir=
41479fi
41480
41481case $srcdir in
41482 .) # No --srcdir option. We are building in place.
41483 ac_srcdir=.
41484 if test -z "$ac_top_builddir"; then
41485 ac_top_srcdir=.
41486 else
41487 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41488 fi ;;
41489 [\\/]* | ?:[\\/]* ) # Absolute path.
41490 ac_srcdir=$srcdir$ac_dir_suffix;
41491 ac_top_srcdir=$srcdir ;;
41492 *) # Relative path.
41493 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41494 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41495esac
32ddf007
VS
41496
41497# Do not use `cd foo && pwd` to compute absolute paths, because
41498# the directories may not exist.
41499case `pwd` in
41500.) ac_abs_builddir="$ac_dir";;
41501*)
41502 case "$ac_dir" in
41503 .) ac_abs_builddir=`pwd`;;
41504 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41505 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41506 esac;;
41507esac
41508case $ac_abs_builddir in
41509.) ac_abs_top_builddir=${ac_top_builddir}.;;
41510*)
41511 case ${ac_top_builddir}. in
41512 .) ac_abs_top_builddir=$ac_abs_builddir;;
41513 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41514 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41515 esac;;
41516esac
41517case $ac_abs_builddir in
41518.) ac_abs_srcdir=$ac_srcdir;;
41519*)
41520 case $ac_srcdir in
41521 .) ac_abs_srcdir=$ac_abs_builddir;;
41522 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41523 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41524 esac;;
41525esac
41526case $ac_abs_builddir in
41527.) ac_abs_top_srcdir=$ac_top_srcdir;;
41528*)
41529 case $ac_top_srcdir in
41530 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41531 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41532 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41533 esac;;
41534esac
e6cc62c6
VS
41535
41536
41537 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41538echo "$as_me: executing $ac_dest commands" >&6;}
41539 case $ac_dest in
41540 default )
652d930d 41541 if test ! -h wx-config; then
991a5759 41542 chmod +x wx-config
3a922bb4
RL
41543 mv wx-config wx${TOOLCHAIN_NAME}-config
41544 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 41545 fi
665bbe97 41546
00cf1208
RR
41547 if test ! -d lib; then
41548 mkdir lib
41549 fi
41550 if test ! -d lib/wx; then
41551 mkdir lib/wx
41552 fi
41553 if test ! -d lib/wx/include; then
41554 mkdir lib/wx/include
41555 fi
3a922bb4
RL
41556 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
41557 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 41558 fi
3a922bb4
RL
41559 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
41560 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
41561 fi
41562 if test -f setup.h; then
3a922bb4 41563 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 41564 fi
e6cc62c6
VS
41565 ;;
41566 esac
41567done
41568_ACEOF
2224580a 41569
e6cc62c6 41570cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 41571
e6cc62c6
VS
41572{ (exit 0); exit 0; }
41573_ACEOF
41574chmod +x $CONFIG_STATUS
41575ac_clean_files=$ac_clean_files_save
41576
41577
41578# configure is writing to config.log, and then calls config.status.
41579# config.status does its own redirection, appending to config.log.
41580# Unfortunately, on DOS this fails, as config.log is still kept open
41581# by configure, so config.status won't be able to write to it; its
41582# output is simply discarded. So we exec the FD to /dev/null,
41583# effectively closing config.log, so it can be properly (re)opened and
41584# appended to by config.status. When coming back to configure, we
41585# need to make the FD available again.
41586if test "$no_create" != yes; then
41587 ac_cs_success=:
41588 ac_config_status_args=
41589 test "$silent" = yes &&
41590 ac_config_status_args="$ac_config_status_args --quiet"
41591 exec 5>/dev/null
41592 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41593 exec 5>>config.log
41594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41595 # would make configure fail if this is the last instruction.
41596 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
41597fi
41598
672abd7a
VS
41599#
41600# CONFIG_SUBDIRS section.
41601#
41602if test "$no_recursion" != yes; then
41603
41604 # Remove --cache-file and --srcdir arguments so they do not pile up.
41605 ac_sub_configure_args=
41606 ac_prev=
41607 for ac_arg in $ac_configure_args; do
41608 if test -n "$ac_prev"; then
41609 ac_prev=
41610 continue
41611 fi
41612 case $ac_arg in
41613 -cache-file | --cache-file | --cache-fil | --cache-fi \
41614 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41615 ac_prev=cache_file ;;
41616 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41617 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41618 | --c=*)
41619 ;;
41620 --config-cache | -C)
41621 ;;
41622 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41623 ac_prev=srcdir ;;
41624 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41625 ;;
41626 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41627 ac_prev=prefix ;;
41628 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41629 ;;
41630 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
41631 esac
41632 done
41633
41634 # Always prepend --prefix to ensure using the same prefix
41635 # in subdir configurations.
41636 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
41637
41638 ac_popdir=`pwd`
41639 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
41640
41641 # Do not complain, so a configure script can configure whichever
41642 # parts of a large source tree are present.
41643 test -d $srcdir/$ac_dir || continue
41644
41645 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
41646echo "$as_me: configuring in $ac_dir" >&6;}
41647 { if $as_mkdir_p; then
41648 mkdir -p "$ac_dir"
41649 else
41650 as_dir="$ac_dir"
41651 as_dirs=
41652 while test ! -d "$as_dir"; do
41653 as_dirs="$as_dir $as_dirs"
41654 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41655$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32ddf007
VS
41656 X"$as_dir" : 'X\(//\)[^/]' \| \
41657 X"$as_dir" : 'X\(//\)$' \| \
41658 X"$as_dir" : 'X\(/\)' \| \
41659 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
41660echo X"$as_dir" |
41661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41663 /^X\(\/\/\)$/{ s//\1/; q; }
41664 /^X\(\/\).*/{ s//\1/; q; }
41665 s/.*/./; q'`
41666 done
41667 test ! -n "$as_dirs" || mkdir $as_dirs
41668 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41669echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41670 { (exit 1); exit 1; }; }; }
41671
41672 ac_builddir=.
41673
41674if test "$ac_dir" != .; then
41675 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41676 # A "../" for each directory in $ac_dir_suffix.
41677 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41678else
41679 ac_dir_suffix= ac_top_builddir=
41680fi
41681
41682case $srcdir in
41683 .) # No --srcdir option. We are building in place.
41684 ac_srcdir=.
41685 if test -z "$ac_top_builddir"; then
41686 ac_top_srcdir=.
41687 else
41688 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41689 fi ;;
41690 [\\/]* | ?:[\\/]* ) # Absolute path.
41691 ac_srcdir=$srcdir$ac_dir_suffix;
41692 ac_top_srcdir=$srcdir ;;
41693 *) # Relative path.
41694 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41695 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41696esac
32ddf007
VS
41697
41698# Do not use `cd foo && pwd` to compute absolute paths, because
41699# the directories may not exist.
41700case `pwd` in
41701.) ac_abs_builddir="$ac_dir";;
41702*)
41703 case "$ac_dir" in
41704 .) ac_abs_builddir=`pwd`;;
41705 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41706 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41707 esac;;
41708esac
41709case $ac_abs_builddir in
41710.) ac_abs_top_builddir=${ac_top_builddir}.;;
41711*)
41712 case ${ac_top_builddir}. in
41713 .) ac_abs_top_builddir=$ac_abs_builddir;;
41714 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41715 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41716 esac;;
41717esac
41718case $ac_abs_builddir in
41719.) ac_abs_srcdir=$ac_srcdir;;
41720*)
41721 case $ac_srcdir in
41722 .) ac_abs_srcdir=$ac_abs_builddir;;
41723 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41724 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41725 esac;;
41726esac
41727case $ac_abs_builddir in
41728.) ac_abs_top_srcdir=$ac_top_srcdir;;
41729*)
41730 case $ac_top_srcdir in
41731 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41732 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41733 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41734 esac;;
41735esac
672abd7a
VS
41736
41737
41738 cd $ac_dir
41739
41740 # Check for guested configure; otherwise get Cygnus style configure.
41741 if test -f $ac_srcdir/configure.gnu; then
41742 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
41743 elif test -f $ac_srcdir/configure; then
41744 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
41745 elif test -f $ac_srcdir/configure.in; then
41746 ac_sub_configure=$ac_configure
41747 else
41748 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
41749echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
41750 ac_sub_configure=
41751 fi
41752
41753 # The recursion is here.
41754 if test -n "$ac_sub_configure"; then
41755 # Make the cache file name correct relative to the subdirectory.
41756 case $cache_file in
41757 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
41758 *) # Relative path.
32ddf007 41759 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
41760 esac
41761
41762 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
41763echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
41764 # The eval makes quoting arguments work.
41765 eval $ac_sub_configure $ac_sub_configure_args \
32ddf007
VS
41766 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
41767 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
41768echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
41769 { (exit 1); exit 1; }; }
41770 fi
41771
41772 cd $ac_popdir
41773 done
41774fi
41775
8284b0c5 41776
2b5f62a0
VZ
41777echo
41778echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
41779echo ""
89fe663f 41780echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 41781echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
41782
41783echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
41784echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
41785echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
41786
0c98a14e 41787echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
41788echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
41789echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 41790
2b5f62a0
VZ
41791echo " Which libraries should wxWindows use?"
41792echo " jpeg ${wxUSE_LIBJPEG-none}"
41793echo " png ${wxUSE_LIBPNG-none}"
41794echo " regex ${wxUSE_REGEX}"
41795echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
41796if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
41797echo " xpm ${wxUSE_LIBXPM-none}"
41798fi
2b5f62a0 41799echo " zlib ${wxUSE_ZLIB}"
fd3d7534 41800echo " odbc ${wxUSE_ODBC}"
5f0b6dff 41801echo " expat ${wxUSE_EXPAT}"
3527f29c 41802echo " libmspack ${wxUSE_LIBMSPACK}"
f93ca9fd 41803echo " sdl ${wxUSE_LIBSDL}"
2b5f62a0
VZ
41804
41805echo ""
41806