]> git.saurik.com Git - wxWidgets.git/blame - configure
Since this class is fully inline don't specify an import/export policy
[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.
243f8ae5 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#
243f8ae5 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
243f8ae5 25DUALCASE=1; export DUALCASE # for MKS sh
fe0895cf 26
e6cc62c6 27# Support unset when possible.
243f8ae5 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
243f8ae5 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
243f8ae5 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.
243f8ae5 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.
243f8ae5 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 \
243f8ae5 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
243f8ae5
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
243f8ae5 822 [$ac_default_prefix]
e6cc62c6 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
243f8ae5 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)
876 --enable-shared create shared library code
e6cc62c6
VS
877 --enable-optimise create optimised code
878 --enable-debug same as debug_flag and debug_info
df5168c4 879 --enable-stl use STL for containers
e6cc62c6
VS
880 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
881 --enable-debug_info create code with debugging information
882 --enable-debug_gdb create code with extra GDB debugging information
883 --enable-debug_cntxt use wxDebugContext
884 --enable-mem_tracing create code with memory tracing
885 --enable-profile create code with profiling information
886 --enable-no_rtti create code without RTTI information
887 --enable-no_exceptions create code without C++ exceptions handling
888 --enable-permissive compile code disregarding strict ANSI
889 --enable-no_deps create code without dependency information
e6cc62c6
VS
890 --enable-compat22 enable wxWindows 2.2 compatibility
891 --disable-compat24 disable wxWindows 2.4 compatibility
892 --enable-rpath=DIR output the rpath flag from wx-config
893 --enable-intl use internationalization system
894 --enable-config use wxConfig (and derived) classes
895 --enable-protocols use wxProtocol and derived classes
896 --enable-ftp use wxFTP (requires wxProtocol
897 --enable-http use wxHTTP (requires wxProtocol
898 --enable-fileproto use wxFileProto class (requires wxProtocol
899 --enable-sockets use socket/network classes
e46d2a18 900 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
901 --enable-dataobj use data object classes
902 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
903 --enable-apple_ieee use the Apple IEEE codec
904 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
905 --enable-cmdline use wxCmdLineParser class
906 --enable-datetime use wxDateTime class
e6cc62c6 907 --enable-dialupman use dialup network classes
e6cc62c6
VS
908 --enable-dynlib use wxLibrary class for DLL loading
909 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
910 --enable-exceptions build exception-safe library
911 --enable-ffile use wxFFile class
912 --enable-file use wxFile class
913 --enable-filesystem use virtual file systems classes
914 --enable-fontmap use font encodings conversion classes
915 --enable-fs_inet use virtual HTTP/FTP filesystems
916 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
917 --enable-geometry use geometry class
918 --enable-log use logging system
e46d2a18
VS
919 --enable-longlong use wxLongLong class
920 --enable-mimetype use wxMimeTypesManager
921 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
922 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 923 --enable-streams use wxStream etc classes
e46d2a18
VS
924 --enable-std_iostreams use standard C++ stream classes
925 --enable-stopwatch use wxStopWatch class
926 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
927 --enable-textbuf use wxTextBuffer class
928 --enable-textfile use wxTextFile class
e46d2a18 929 --enable-timer use wxTimer class
e6cc62c6 930 --enable-unicode compile wxString with Unicode support
002ed9af 931 --enable-sound use wxSound class
e6cc62c6 932 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 933 --enable-zipstream use wxZipInputStream
7015ef3a 934 --enable-gzstream use wxGzipInputStream
e6cc62c6
VS
935 --enable-url use wxURL class
936 --enable-protocol use wxProtocol class
937 --enable-protocol-http HTTP support in wxProtocol
938 --enable-protocol-ftp FTP support in wxProtocol
939 --enable-protocol-file FILE support in wxProtocol
940 --enable-threads use threads
941 --enable-docview use document view architecture
942 --enable-help use help subsystem
943 --enable-mshtmlhelp use MS HTML Help (win32)
944 --enable-html use wxHTML sub-library
945 --enable-htmlhelp use wxHTML-based help
946 --enable-constraints use layout-constraints system
947 --enable-printarch use printing architecture
948 --enable-mdi use multiple document interface architecture
949 --enable-loggui use standard GUI logger
950 --enable-logwin use wxLogWindow
951 --enable-logdialog use wxLogDialog
952 --enable-postscript use wxPostscriptDC device context (default for gtk+)
953 --enable-prologio not available; see contrib
954 --enable-resources not available; see contrib
955 --enable-clipboard use wxClipboard class
956 --enable-dnd use Drag'n'Drop classes
957 --enable-metafile use win32 metafiles
958 --enable-controls use all usual controls
959 --enable-accel use accelerators
960 --enable-button use wxButton class
961 --enable-bmpbutton use wxBitmapButton class
962 --enable-calendar use wxCalendarCtrl class
963 --enable-caret use wxCaret class
964 --enable-checkbox use wxCheckBox class
965 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
966 --enable-choice use wxChoice class
967 --enable-combobox use wxComboBox class
968 --enable-display use wxDisplay class
969 --enable-gauge use wxGauge class
970 --enable-grid use wxGrid class
971 --enable-imaglist use wxImageList class
0e012a93 972 --enable-listbook use wxListbook class
e6cc62c6
VS
973 --enable-listbox use wxListBox class
974 --enable-listctrl use wxListCtrl class
975 --enable-notebook use wxNotebook class
976 --enable-radiobox use wxRadioBox class
977 --enable-radiobtn use wxRadioButton class
978 --enable-sash use wxSashWindow class
979 --enable-scrollbar use wxScrollBar class and scrollable windows
980 --enable-slider use wxSlider class
981 --enable-spinbtn use wxSpinButton class
982 --enable-spinctrl use wxSpinCtrl class
983 --enable-splitter use wxSplitterWindow class
984 --enable-statbmp use wxStaticBitmap class
985 --enable-statbox use wxStaticBox class
986 --enable-statline use wxStaticLine class
987 --enable-stattext use wxStaticText class
988 --enable-statusbar use wxStatusBar class
989 --enable-tabdialog use wxTabControl class
990 --enable-textctrl use wxTextCtrl class
991 --enable-togglebtn use wxToggleButton class
992 --enable-toolbar use wxToolBar class
993 --enable-tbarnative use native wxToolBar class
994 --enable-tbarsmpl use wxToolBarSimple class
995 --enable-treectrl use wxTreeCtrl class
996 --enable-tipwindow use wxTipWindow class
997 --enable-popupwin use wxPopUpWindow class
998 --enable-commondlg use all common dialogs
999 --enable-choicedlg use wxChoiceDialog
1000 --enable-coldlg use wxColourDialog
1001 --enable-filedlg use wxFileDialog
1002 --enable-finddlg use wxFindReplaceDialog
1003 --enable-fontdlg use wxFontDialog
1004 --enable-dirdlg use wxDirDialog
1005 --enable-msgdlg use wxMessageDialog
1006 --enable-numberdlg use wxNumberEntryDialog
1007 --enable-splash use wxSplashScreen
1008 --enable-textdlg use wxTextDialog
1009 --enable-tipdlg use startup tips
1010 --enable-progressdlg use wxProgressDialog
1011 --enable-wizarddlg use wxWizard
1012 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1013 --enable-miniframe use wxMiniFrame class
1014 --enable-tooltips use wxToolTip class
1015 --enable-splines use spline drawing code
1016 --enable-validators use wxValidator and derived classes
1017 --enable-busyinfo use wxBusyInfo
1018 --enable-joystick use wxJoystick (Linux only)
1019 --enable-metafiles use wxMetaFile (Windows only)
1020 --enable-dragimage use wxDragImage
1021 --enable-accessibility enable accessibility support
1022 --enable-palette use wxPalette class
1023 --enable-image use wxImage class
1024 --enable-gif use gif images (GIF file format)
1025 --enable-pcx use pcx images (PCX file format)
1026 --enable-iff use iff images (IFF file format)
1027 --enable-pnm use pnm images (PNM file format)
1028 --enable-xpm use xpm images (XPM file format)
1029 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1030 --enable-official_build official build of wxWindows (win32 DLL only)
1031 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1032 --disable-largefile omit support for large files
1033 --disable-gtktest do not try to compile and run a test GTK+ program
1034 --disable-gtktest Do not try to compile and run a test GTK program
f93ca9fd 1035 --disable-sdltest Do not try to compile and run a test SDL program
45842500 1036 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1037
1038Optional Packages:
1039 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1040 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1041 --with-gtk use GTK+
1042 --with-motif use Motif/Lesstif
1043 --with-mac use Mac OS X
1044 --with-cocoa use Cocoa
1045 --with-wine use Wine
1046 --with-msw use MS-Windows
1047 --with-pm use OS/2 Presentation Manager
1048 --with-mgl use SciTech MGL
1049 --with-microwin use MicroWindows
1050 --with-x11 use X11
1051 --with-libpng use libpng (PNG image format)
1052 --with-libjpeg use libjpeg (JPEG file format)
1053 --with-libtiff use libtiff (TIFF file format)
89fe663f 1054 --with-libxpm use libxpm (XPM file format)
3527f29c 1055 --with-libmspack use libmspack (CHM help files loading)
f93ca9fd 1056 --with-sdl use SDL for audio on Unix
e6cc62c6
VS
1057 --with-opengl use OpenGL (or Mesa)
1058 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1059 --with-regex enable support for wxRegEx class
1060 --with-zlib use zlib for LZW compression
1061 --with-odbc use the IODBC and wxODBC classes
672abd7a 1062 --with-expat enable XML support using expat parser
e6cc62c6
VS
1063 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1064 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1065 --with-x use the X Window System
1066 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
f93ca9fd
VS
1067 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1068 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
e6cc62c6
VS
1069
1070Some influential environment variables:
1071 CC C compiler command
1072 CFLAGS C compiler flags
1073 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1074 nonstandard directory <lib dir>
1075 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1076 headers in a nonstandard directory <include dir>
1077 CPP C preprocessor
1078 CXX C++ compiler command
1079 CXXFLAGS C++ compiler flags
1080 CXXCPP C++ preprocessor
1081
1082Use these variables to override the choices made by `configure' or to help
1083it to find libraries and programs with nonstandard names/locations.
1084
1085Report bugs to <wx-dev@lists.wxwindows.org>.
1086_ACEOF
1087fi
1088
1089if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1091 ac_popdir=`pwd`
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1094 ac_builddir=.
1095
1096if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100else
1101 ac_dir_suffix= ac_top_builddir=
1102fi
1103
1104case $srcdir in
1105 .) # No --srcdir option. We are building in place.
1106 ac_srcdir=.
1107 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=.
1109 else
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111 fi ;;
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1115 *) # Relative path.
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118esac
243f8ae5
VS
1119
1120# Do not use `cd foo && pwd` to compute absolute paths, because
1121# the directories may not exist.
1122case `pwd` in
1123.) ac_abs_builddir="$ac_dir";;
1124*)
1125 case "$ac_dir" in
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_builddir=${ac_top_builddir}.;;
1133*)
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_srcdir=$ac_srcdir;;
1142*)
1143 case $ac_srcdir in
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_top_srcdir=$ac_top_srcdir;;
1151*)
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156 esac;;
1157esac
e6cc62c6
VS
1158
1159 cd $ac_dir
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1162 echo
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1165 echo
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
243f8ae5 1168 test -f $ac_srcdir/configure.in; then
e6cc62c6
VS
1169 echo
1170 $ac_configure --help
1171 else
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173 fi
1174 cd $ac_popdir
1175 done
1176fi
8284b0c5 1177
e6cc62c6
VS
1178test -n "$ac_init_help" && exit 0
1179if $ac_init_version; then
1180 cat <<\_ACEOF
e46d2a18 1181wxWindows configure 2.5.1
243f8ae5 1182generated by GNU Autoconf 2.59
10f2d63a 1183
243f8ae5 1184Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
1185This configure script is free software; the Free Software Foundation
1186gives unlimited permission to copy, distribute and modify it.
1187_ACEOF
1188 exit 0
7c66a493 1189fi
e6cc62c6
VS
1190exec 5>config.log
1191cat >&5 <<_ACEOF
1192This file contains any messages produced by compilers while
1193running configure, to aid debugging if configure makes a mistake.
1194
e46d2a18 1195It was created by wxWindows $as_me 2.5.1, which was
243f8ae5 1196generated by GNU Autoconf 2.59. Invocation command line was
e6cc62c6
VS
1197
1198 $ $0 $@
1199
1200_ACEOF
1201{
1202cat <<_ASUNAME
1203## --------- ##
1204## Platform. ##
1205## --------- ##
1206
1207hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211uname -v = `(uname -v) 2>/dev/null || echo unknown`
1212
1213/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1215
1216/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1223
1224_ASUNAME
1225
1226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1227for as_dir in $PATH
1228do
1229 IFS=$as_save_IFS
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1232done
1233
1234} >&5
1235
1236cat >&5 <<_ACEOF
1237
1238
1239## ----------- ##
1240## Core tests. ##
1241## ----------- ##
1242
1243_ACEOF
1244
1245
1246# Keep a trace of the command line.
1247# Strip out --no-create and --no-recursion so they do not pile up.
1248# Strip out --silent because we don't want to record it for future runs.
1249# Also quote any args containing shell meta-characters.
1250# Make two passes to allow for proper duplicate-argument suppression.
1251ac_configure_args=
1252ac_configure_args0=
1253ac_configure_args1=
1254ac_sep=
1255ac_must_keep_next=false
1256for ac_pass in 1 2
1257do
1258 for ac_arg
1259 do
1260 case $ac_arg in
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1264 continue ;;
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 esac
1268 case $ac_pass in
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1270 2)
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
243f8ae5 1273 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1274 else
243f8ae5
VS
1275 case $ac_arg in
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 esac
1283 ;;
1284 -* ) ac_must_keep_next=true ;;
1285 esac
e6cc62c6
VS
1286 fi
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1289 ac_sep=" "
1290 ;;
1291 esac
1292 done
1293done
1294$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1296
1297# When interrupted or exit'd, cleanup temporary files, and complete
1298# config.log. We remove comments because anyway the quotes in there
1299# would cause problems or look ugly.
1300# WARNING: Be sure not to use single quotes in there, as some shells,
1301# such as our DU 5.0 friend, will then `close' the trap.
1302trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1304 {
1305 echo
1306
1307 cat <<\_ASBOX
1308## ---------------- ##
1309## Cache variables. ##
1310## ---------------- ##
1311_ASBOX
1312 echo
1313 # The following way of writing the cache mishandles newlines in values,
1314{
1315 (set) 2>&1 |
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 *ac_space=\ *)
1318 sed -n \
243f8ae5
VS
1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1321 ;;
1322 *)
1323 sed -n \
243f8ae5 1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
1325 ;;
1326 esac;
1327}
1328 echo
1329
1330 cat <<\_ASBOX
1331## ----------------- ##
1332## Output variables. ##
1333## ----------------- ##
1334_ASBOX
1335 echo
1336 for ac_var in $ac_subst_vars
1337 do
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1340 done | sort
1341 echo
1342
1343 if test -n "$ac_subst_files"; then
1344 cat <<\_ASBOX
1345## ------------- ##
1346## Output files. ##
1347## ------------- ##
1348_ASBOX
1349 echo
1350 for ac_var in $ac_subst_files
1351 do
1352 eval ac_val=$`echo $ac_var`
243f8ae5 1353 echo "$ac_var='"'"'$ac_val'"'"'"
e6cc62c6
VS
1354 done | sort
1355 echo
1356 fi
1357
1358 if test -s confdefs.h; then
1359 cat <<\_ASBOX
1360## ----------- ##
1361## confdefs.h. ##
1362## ----------- ##
1363_ASBOX
1364 echo
1365 sed "/^$/d" confdefs.h | sort
1366 echo
1367 fi
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1371 } >&5
243f8ae5 1372 rm -f core *.core &&
e6cc62c6
VS
1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 exit $exit_status
1375 ' 0
1376for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1378done
1379ac_signal=0
1380
1381# confdefs.h avoids OS command line length limits that DEFS can exceed.
1382rm -rf conftest* confdefs.h
1383# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384echo >confdefs.h
1385
1386# Predefined preprocessor variables.
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_NAME "$PACKAGE_NAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_VERSION "$PACKAGE_VERSION"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_STRING "$PACKAGE_STRING"
1405_ACEOF
1406
1407
1408cat >>confdefs.h <<_ACEOF
1409#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1410_ACEOF
1411
1412
1413# Let the site file select an alternate cache file if it wants to.
1414# Prefer explicitly selected file to automatically selected ones.
1415if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1418 else
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 fi
1421fi
1422for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1427 . "$ac_site_file"
1428 fi
1429done
1430
1431if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436echo "$as_me: loading cache $cache_file" >&6;}
1437 case $cache_file in
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1440 esac
1441 fi
1442else
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444echo "$as_me: creating cache $cache_file" >&6;}
1445 >$cache_file
1446fi
1447
1448# Check that the precious variables saved in the cache have kept the same
1449# value.
1450ac_cache_corrupted=false
1451for ac_var in `(set) 2>&1 |
243f8ae5 1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
e6cc62c6
VS
1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1458 set,)
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1462 ,set)
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1466 ,);;
1467 *)
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
243f8ae5 1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
e6cc62c6 1470echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
243f8ae5 1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1472echo "$as_me: former value: $ac_old_val" >&2;}
243f8ae5 1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1474echo "$as_me: current value: $ac_new_val" >&2;}
243f8ae5 1475 ac_cache_corrupted=:
e6cc62c6
VS
1476 fi;;
1477 esac
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1480 case $ac_new_val in
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1484 esac
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1488 esac
1489 fi
1490done
1491if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1497fi
1498
1499ac_ext=c
1500ac_cpp='$CPP $CPPFLAGS'
1501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503ac_compiler_gnu=$ac_cv_c_compiler_gnu
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
698dcdb6 1521
8284b0c5 1522
7c66a493 1523
a0b9e27f
MB
1524
1525
a0b9e27f 1526
a0b9e27f 1527
a0b9e27f 1528
a0b9e27f 1529
a0b9e27f 1530
a0b9e27f 1531
e6cc62c6
VS
1532
1533
1534ac_aux_dir=
1535for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1536 if test -f $ac_dir/install-sh; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/install-sh -c"
1539 break
1540 elif test -f $ac_dir/install.sh; then
1541 ac_aux_dir=$ac_dir
1542 ac_install_sh="$ac_aux_dir/install.sh -c"
1543 break
1544 elif test -f $ac_dir/shtool; then
1545 ac_aux_dir=$ac_dir
1546 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 break
1548 fi
1549done
1550if test -z "$ac_aux_dir"; then
1551 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1552echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1553 { (exit 1); exit 1; }; }
1554fi
1555ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1556ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1557ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558
1559# Make sure we can run config.sub.
1560$ac_config_sub sun4 >/dev/null 2>&1 ||
1561 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1562echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1563 { (exit 1); exit 1; }; }
1564
1565echo "$as_me:$LINENO: checking build system type" >&5
1566echo $ECHO_N "checking build system type... $ECHO_C" >&6
1567if test "${ac_cv_build+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1569else
1570 ac_cv_build_alias=$build_alias
1571test -z "$ac_cv_build_alias" &&
1572 ac_cv_build_alias=`$ac_config_guess`
1573test -z "$ac_cv_build_alias" &&
1574 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1575echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1576 { (exit 1); exit 1; }; }
1577ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1578 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1579echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1580 { (exit 1); exit 1; }; }
1581
1582fi
1583echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1584echo "${ECHO_T}$ac_cv_build" >&6
1585build=$ac_cv_build
1586build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1587build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1588build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589
1590
1591echo "$as_me:$LINENO: checking host system type" >&5
1592echo $ECHO_N "checking host system type... $ECHO_C" >&6
1593if test "${ac_cv_host+set}" = set; then
1594 echo $ECHO_N "(cached) $ECHO_C" >&6
1595else
1596 ac_cv_host_alias=$host_alias
1597test -z "$ac_cv_host_alias" &&
1598 ac_cv_host_alias=$ac_cv_build_alias
1599ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1600 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1601echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1602 { (exit 1); exit 1; }; }
1603
1604fi
1605echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1606echo "${ECHO_T}$ac_cv_host" >&6
1607host=$ac_cv_host
1608host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1609host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1610host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611
1612
1613echo "$as_me:$LINENO: checking target system type" >&5
1614echo $ECHO_N "checking target system type... $ECHO_C" >&6
1615if test "${ac_cv_target+set}" = set; then
1616 echo $ECHO_N "(cached) $ECHO_C" >&6
1617else
1618 ac_cv_target_alias=$target_alias
1619test "x$ac_cv_target_alias" = "x" &&
1620 ac_cv_target_alias=$ac_cv_host_alias
1621ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1622 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1623echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1624 { (exit 1); exit 1; }; }
1625
1626fi
1627echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1628echo "${ECHO_T}$ac_cv_target" >&6
1629target=$ac_cv_target
1630target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1631target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1632target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633
1634
1635# The aliases save the names the user supplied, while $host etc.
1636# will get canonicalized.
1637test -n "$target_alias" &&
7c66a493
VZ
1638 test "$program_prefix$program_suffix$program_transform_name" = \
1639 NONENONEs,x,x, &&
1640 program_prefix=${target_alias}-
8284b0c5
MB
1641
1642
a0b9e27f 1643
10f2d63a 1644WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1645WX_MINOR_VERSION_NUMBER=5
e46d2a18 1646WX_RELEASE_NUMBER=1
10f2d63a 1647
10f2d63a 1648WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1649WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1650
978f1259
RL
1651WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1652
7015ef3a 1653WX_CURRENT=1
6426998c
RL
1654WX_REVISION=0
1655WX_AGE=0
1656
8284b0c5
MB
1657
1658
10f2d63a 1659USE_UNIX=1
73d617c9 1660USE_OS2=0
10f2d63a 1661USE_WIN32=0
f9bc1684 1662USE_DOS=0
b12915c1 1663USE_BEOS=0
1216f52d 1664USE_MAC=0
b12915c1 1665
10f2d63a 1666USE_AIX=
fe0895cf
VS
1667USE_BSD= USE_DARWIN= USE_FREEBSD=
1668USE_GNU= USE_HPUX=
89e3b3e4 1669USE_LINUX=
f6bcfd97 1670USE_NETBSD=
89e3b3e4 1671USE_OPENBSD=
fe0895cf
VS
1672USE_OSF= USE_SGI=
1673USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1674USE_ULTRIX=
89e3b3e4
VZ
1675USE_UNIXWARE=
1676
1677USE_ALPHA=
10f2d63a 1678
ab9b9eab
VZ
1679NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1680
ac0c4cc3 1681ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1682
ac0c4cc3 1683DEFAULT_wxUSE_COCOA=0
10f2d63a 1684DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1685DEFAULT_wxUSE_MAC=0
1686DEFAULT_wxUSE_MGL=0
1725144d 1687DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1688DEFAULT_wxUSE_MOTIF=0
1689DEFAULT_wxUSE_MSW=0
e07802fc 1690DEFAULT_wxUSE_PM=0
f79bd02d 1691DEFAULT_wxUSE_X11=0
10f2d63a 1692
ac0c4cc3 1693DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1694DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1695DEFAULT_DEFAULT_wxUSE_MAC=0
1696DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1697DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1698DEFAULT_DEFAULT_wxUSE_MOTIF=0
1699DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1700DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1701DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1702
d6a55c4b 1703PROGRAM_EXT=
3a922bb4 1704SO_SUFFIX=so
fe0895cf 1705SAMPLES_RPATH_FLAG=
0f1bc9c2 1706SAMPLES_RPATH_POSTLINK=
d6a55c4b 1707
10f2d63a
VZ
1708case "${host}" in
1709 *-hp-hpux* )
1710 USE_HPUX=1
1711 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1712 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1713 SO_SUFFIX=sl
e6cc62c6 1714 cat >>confdefs.h <<\_ACEOF
10f2d63a 1715#define __HPUX__ 1
e6cc62c6 1716_ACEOF
10f2d63a
VZ
1717
1718 ;;
1719 *-*-linux* )
1720 USE_LINUX=1
e6cc62c6 1721 cat >>confdefs.h <<\_ACEOF
10f2d63a 1722#define __LINUX__ 1
e6cc62c6 1723_ACEOF
10f2d63a
VZ
1724
1725 TMP=`uname -m`
1726 if test "x$TMP" = "xalpha"; then
1727 USE_ALPHA=1
e6cc62c6 1728 cat >>confdefs.h <<\_ACEOF
10f2d63a 1729#define __ALPHA__ 1
e6cc62c6 1730_ACEOF
fe0895cf
VS
1731
1732 fi
1733 DEFAULT_DEFAULT_wxUSE_GTK=1
1734 ;;
1735 *-*-gnu* )
1736 USE_GNU=1
e6cc62c6 1737 cat >>confdefs.h <<\_ACEOF
fe0895cf 1738#define __GNU__ 1
e6cc62c6 1739_ACEOF
fe0895cf
VS
1740
1741 TMP=`uname -m`
1742 if test "x$TMP" = "xalpha"; then
1743 USE_ALPHA=1
e6cc62c6 1744 cat >>confdefs.h <<\_ACEOF
fe0895cf 1745#define __ALPHA__ 1
e6cc62c6 1746_ACEOF
10f2d63a
VZ
1747
1748 fi
1749 DEFAULT_DEFAULT_wxUSE_GTK=1
1750 ;;
1751 *-*-irix5* | *-*-irix6* )
1752 USE_SGI=1
1753 USE_SVR4=1
e6cc62c6 1754 cat >>confdefs.h <<\_ACEOF
10f2d63a 1755#define __SGI__ 1
e6cc62c6 1756_ACEOF
10f2d63a 1757
e6cc62c6 1758 cat >>confdefs.h <<\_ACEOF
10f2d63a 1759#define __SVR4__ 1
e6cc62c6 1760_ACEOF
10f2d63a
VZ
1761
1762 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1763 ;;
1764 *-*-solaris2* )
1765 USE_SUN=1
1766 USE_SOLARIS=1
1767 USE_SVR4=1
e6cc62c6 1768 cat >>confdefs.h <<\_ACEOF
10f2d63a 1769#define __SUN__ 1
e6cc62c6 1770_ACEOF
10f2d63a 1771
e6cc62c6 1772 cat >>confdefs.h <<\_ACEOF
10f2d63a 1773#define __SOLARIS__ 1
e6cc62c6 1774_ACEOF
10f2d63a 1775
e6cc62c6 1776 cat >>confdefs.h <<\_ACEOF
10f2d63a 1777#define __SVR4__ 1
e6cc62c6 1778_ACEOF
10f2d63a
VZ
1779
1780 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1781 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1782 ;;
1783 *-*-sunos4* )
1784 USE_SUN=1
1785 USE_SUNOS=1
1786 USE_BSD=1
e6cc62c6 1787 cat >>confdefs.h <<\_ACEOF
10f2d63a 1788#define __SUN__ 1
e6cc62c6 1789_ACEOF
10f2d63a 1790
e6cc62c6 1791 cat >>confdefs.h <<\_ACEOF
10f2d63a 1792#define __SUNOS__ 1
e6cc62c6 1793_ACEOF
10f2d63a 1794
e6cc62c6 1795 cat >>confdefs.h <<\_ACEOF
10f2d63a 1796#define __BSD__ 1
e6cc62c6 1797_ACEOF
10f2d63a
VZ
1798
1799 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1800 ;;
f6bcfd97 1801 *-*-freebsd*)
10f2d63a
VZ
1802 USE_BSD=1
1803 USE_FREEBSD=1
e6cc62c6 1804 cat >>confdefs.h <<\_ACEOF
10f2d63a 1805#define __FREEBSD__ 1
e6cc62c6 1806_ACEOF
10f2d63a 1807
e6cc62c6 1808 cat >>confdefs.h <<\_ACEOF
10f2d63a 1809#define __BSD__ 1
e6cc62c6 1810_ACEOF
95c8801c
VS
1811
1812 DEFAULT_DEFAULT_wxUSE_GTK=1
1813 ;;
1814 *-*-openbsd*)
1815 USE_BSD=1
1816 USE_OPENBSD=1
e6cc62c6 1817 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1818#define __OPENBSD__ 1
e6cc62c6 1819_ACEOF
95c8801c 1820
e6cc62c6 1821 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1822#define __BSD__ 1
e6cc62c6 1823_ACEOF
f6bcfd97
BP
1824
1825 DEFAULT_DEFAULT_wxUSE_GTK=1
1826 ;;
1827 *-*-netbsd*)
1828 USE_BSD=1
1829 USE_NETBSD=1
e6cc62c6 1830 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1831#define __NETBSD__ 1
e6cc62c6 1832_ACEOF
f6bcfd97 1833
e6cc62c6 1834 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1835#define __BSD__ 1
e6cc62c6 1836_ACEOF
10f2d63a
VZ
1837
1838 DEFAULT_DEFAULT_wxUSE_GTK=1
1839 ;;
1840 *-*-osf* )
1841 USE_ALPHA=1
1842 USE_OSF=1
e6cc62c6 1843 cat >>confdefs.h <<\_ACEOF
10f2d63a 1844#define __ALPHA__ 1
e6cc62c6 1845_ACEOF
10f2d63a 1846
e6cc62c6 1847 cat >>confdefs.h <<\_ACEOF
10f2d63a 1848#define __OSF__ 1
e6cc62c6 1849_ACEOF
10f2d63a
VZ
1850
1851 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1852 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1853 ;;
1854 *-*-dgux5* )
1855 USE_ALPHA=1
1856 USE_SVR4=1
e6cc62c6 1857 cat >>confdefs.h <<\_ACEOF
10f2d63a 1858#define __ALPHA__ 1
e6cc62c6 1859_ACEOF
10f2d63a 1860
e6cc62c6 1861 cat >>confdefs.h <<\_ACEOF
10f2d63a 1862#define __SVR4__ 1
e6cc62c6 1863_ACEOF
10f2d63a
VZ
1864
1865 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1866 ;;
1867 *-*-sysv5* )
1868 USE_SYSV=1
1869 USE_SVR4=1
e6cc62c6 1870 cat >>confdefs.h <<\_ACEOF
10f2d63a 1871#define __SYSV__ 1
e6cc62c6 1872_ACEOF
10f2d63a 1873
e6cc62c6 1874 cat >>confdefs.h <<\_ACEOF
10f2d63a 1875#define __SVR4__ 1
e6cc62c6 1876_ACEOF
10f2d63a
VZ
1877
1878 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1879 ;;
1880 *-*-aix* )
1881 USE_AIX=1
1882 USE_SYSV=1
1883 USE_SVR4=1
2b5f62a0 1884 SO_SUFFIX=a
e6cc62c6 1885 cat >>confdefs.h <<\_ACEOF
10f2d63a 1886#define __AIX__ 1
e6cc62c6 1887_ACEOF
10f2d63a 1888
e6cc62c6 1889 cat >>confdefs.h <<\_ACEOF
10f2d63a 1890#define __SYSV__ 1
e6cc62c6 1891_ACEOF
10f2d63a 1892
e6cc62c6 1893 cat >>confdefs.h <<\_ACEOF
10f2d63a 1894#define __SVR4__ 1
e6cc62c6 1895_ACEOF
10f2d63a
VZ
1896
1897 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1898 ;;
1899
89e3b3e4
VZ
1900 *-*-*UnixWare*)
1901 USE_SYSV=1
1902 USE_SVR4=1
1903 USE_UNIXWARE=1
e6cc62c6 1904 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1905#define __UNIXWARE__ 1
e6cc62c6 1906_ACEOF
89e3b3e4
VZ
1907
1908 ;;
1909
1c8183e2 1910 *-*-cygwin* | *-*-mingw32* )
17234b26 1911 SO_SUFFIX=dll
cf27ef00 1912 PROGRAM_EXT=".exe"
7b7a7637 1913 RESCOMP=windres
10f2d63a
VZ
1914 DEFAULT_DEFAULT_wxUSE_MSW=1
1915 ;;
1916
f9bc1684
VS
1917 *-pc-msdosdjgpp )
1918 USE_UNIX=0
1919 USE_DOS=1
e6cc62c6 1920 cat >>confdefs.h <<\_ACEOF
f9bc1684 1921#define __DOS__ 1
e6cc62c6 1922_ACEOF
f9bc1684
VS
1923
1924 PROGRAM_EXT=".exe"
1925 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1926 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1927 ;;
1928
6fa882bd 1929 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1930 cat >>confdefs.h <<\_ACEOF
10f2d63a 1931#define __EMX__ 1
e6cc62c6 1932_ACEOF
10f2d63a 1933
73d617c9 1934 USE_OS2=1
7015ef3a
VZ
1935 cat >>confdefs.h <<\_ACEOF
1936#define __OS2__ 1
1937_ACEOF
1938
cf27ef00 1939 PROGRAM_EXT=".exe"
e07802fc 1940 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1941 CXX=gcc
73d617c9 1942 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1943 ac_executable_extensions=".exe"
1944 export ac_executable_extensions
1945 ac_save_IFS="$IFS"
e46d2a18 1946 IFS='\\'
d5fc095c
VS
1947 ac_TEMP_PATH=
1948 for ac_dir in $PATH; do
1949 IFS=$ac_save_IFS
1950 if test -z "$ac_TEMP_PATH"; then
1951 ac_TEMP_PATH="$ac_dir"
1952 else
1953 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1954 fi
1955 done
1956 export PATH="$ac_TEMP_PATH"
1957 unset ac_TEMP_PATH
10f2d63a
VZ
1958 ;;
1959
d08b457b
GD
1960 powerpc-*-darwin* )
1961 USE_BSD=1
f11bdd03 1962 USE_DARWIN=1
3a922bb4 1963 SO_SUFFIX=dylib
e6cc62c6 1964 cat >>confdefs.h <<\_ACEOF
f11bdd03 1965#define __BSD__ 1
e6cc62c6 1966_ACEOF
b4085ce6 1967
e6cc62c6 1968 cat >>confdefs.h <<\_ACEOF
f11bdd03 1969#define __DARWIN__ 1
e6cc62c6 1970_ACEOF
d08b457b 1971
e6cc62c6 1972 cat >>confdefs.h <<\_ACEOF
d08b457b 1973#define __POWERPC__ 1
e6cc62c6 1974_ACEOF
82d43113 1975
e6cc62c6 1976 cat >>confdefs.h <<\_ACEOF
82d43113 1977#define TARGET_CARBON 1
e6cc62c6 1978_ACEOF
b4085ce6
GD
1979
1980 DEFAULT_DEFAULT_wxUSE_MAC=1
1981 ;;
1982
b12915c1
VZ
1983 *-*-beos* )
1984 USE_BEOS=1
e6cc62c6 1985 cat >>confdefs.h <<\_ACEOF
b12915c1 1986#define __BEOS__ 1
e6cc62c6 1987_ACEOF
b12915c1
VZ
1988
1989 ;;
1990
10f2d63a 1991 *)
e6cc62c6
VS
1992 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1993echo "$as_me: error: unknown system type ${host}." >&2;}
1994 { (exit 1); exit 1; }; }
10f2d63a
VZ
1995esac
1996
8284b0c5
MB
1997
1998
1999
2000 wx_arg_cache_file="configarg.cache"
2001 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
2002 rm -f ${wx_arg_cache_file}.tmp
2003 touch ${wx_arg_cache_file}.tmp
2004 touch ${wx_arg_cache_file}
e6cc62c6 2005
10f2d63a
VZ
2006
2007DEBUG_CONFIGURE=0
2008if test $DEBUG_CONFIGURE = 1; then
1e6feb95 2009 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2010 DEFAULT_wxUSE_STL=no
1e6feb95 2011
d8356fa3
VZ
2012 DEFAULT_wxUSE_NANOX=no
2013
10f2d63a
VZ
2014 DEFAULT_wxUSE_THREADS=yes
2015
2016 DEFAULT_wxUSE_SHARED=yes
1e6feb95 2017 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
2018 DEFAULT_wxUSE_PROFILE=no
2019 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2020 DEFAULT_wxUSE_NO_RTTI=no
2021 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2022 DEFAULT_wxUSE_PERMISSIVE=no
2023 DEFAULT_wxUSE_DEBUG_FLAG=yes
2024 DEFAULT_wxUSE_DEBUG_INFO=yes
2025 DEFAULT_wxUSE_DEBUG_GDB=yes
2026 DEFAULT_wxUSE_MEM_TRACING=no
2027 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2028 DEFAULT_wxUSE_DMALLOC=no
2029 DEFAULT_wxUSE_APPLE_IEEE=no
2030
e46d2a18 2031 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 2032 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
2033 DEFAULT_wxUSE_LOGWINDOW=no
2034 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 2035 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
2036
2037 DEFAULT_wxUSE_GUI=yes
1e6feb95 2038 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2039
3e44f09d 2040 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2041 DEFAULT_wxUSE_XML=no
2042 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2043 DEFAULT_wxUSE_ZLIB=no
2044 DEFAULT_wxUSE_LIBPNG=no
2045 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2046 DEFAULT_wxUSE_LIBTIFF=no
89fe663f 2047 DEFAULT_wxUSE_LIBXPM=no
f93ca9fd
VS
2048 DEFAULT_wxUSE_LIBMSPACK=no
2049 DEFAULT_wxUSE_LIBSDL=no
10f2d63a 2050 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2051 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2052
eb4efbdc 2053 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2054 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2055 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2056 DEFAULT_wxUSE_CMDLINE_PARSER=no
2057 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2058 DEFAULT_wxUSE_TIMER=no
2059 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2060 DEFAULT_wxUSE_FILE=no
1e6feb95 2061 DEFAULT_wxUSE_FFILE=no
a3a584a7 2062 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2063 DEFAULT_wxUSE_TEXTFILE=no
002ed9af 2064 DEFAULT_wxUSE_SOUND=no
10f2d63a
VZ
2065 DEFAULT_wxUSE_INTL=no
2066 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2067 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2068 DEFAULT_wxUSE_STREAMS=no
2069 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2070 DEFAULT_wxUSE_OLE=no
2071 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2072 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2073 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2074 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2075 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2076 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2077 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2078
2079 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2080 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2081 DEFAULT_wxUSE_POSTSCRIPT=no
2082
10f2d63a
VZ
2083 DEFAULT_wxUSE_CLIPBOARD=no
2084 DEFAULT_wxUSE_TOOLTIPS=no
2085 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2086 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2087 DEFAULT_wxUSE_SPLINES=no
2088
2089 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2090 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2091 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2092
10f2d63a
VZ
2093 DEFAULT_wxUSE_RESOURCES=no
2094 DEFAULT_wxUSE_CONSTRAINTS=no
2095 DEFAULT_wxUSE_IPC=no
2096 DEFAULT_wxUSE_HELP=no
29fd3c0c 2097 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2098 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2099 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2100 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2101 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2102 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2103 DEFAULT_wxUSE_PROTOCOL=no
2104 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2105 DEFAULT_wxUSE_PROTOCOL_FTP=no
2106 DEFAULT_wxUSE_PROTOCOL_FILE=no
2107 DEFAULT_wxUSE_URL=no
3bd8fb5f 2108
10f2d63a 2109 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2110 DEFAULT_wxUSE_CHOICEDLG=no
2111 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2112 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2113 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2114 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2115 DEFAULT_wxUSE_FONTDLG=no
2116 DEFAULT_wxUSE_MSGDLG=no
2117 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2118 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2119 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2120 DEFAULT_wxUSE_STARTUP_TIPS=no
2121 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2122 DEFAULT_wxUSE_WIZARDDLG=no
2123
1e6feb95 2124 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2125 DEFAULT_wxUSE_MINIFRAME=no
2126 DEFAULT_wxUSE_HTML=no
24528b0c 2127 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2128 DEFAULT_wxUSE_FS_INET=no
2129 DEFAULT_wxUSE_FS_ZIP=no
2130 DEFAULT_wxUSE_BUSYINFO=no
2131 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2132 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2133 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2134
2135 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2136 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2137 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2138 DEFAULT_wxUSE_CALCTRL=no
2139 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2140 DEFAULT_wxUSE_CHECKBOX=no
2141 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2142 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2143 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2144 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2145 DEFAULT_wxUSE_GAUGE=no
2146 DEFAULT_wxUSE_GRID=no
10f2d63a 2147 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2148 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2149 DEFAULT_wxUSE_LISTBOX=no
2150 DEFAULT_wxUSE_LISTCTRL=no
2151 DEFAULT_wxUSE_NOTEBOOK=no
2152 DEFAULT_wxUSE_RADIOBOX=no
2153 DEFAULT_wxUSE_RADIOBTN=no
2154 DEFAULT_wxUSE_SASH=no
2155 DEFAULT_wxUSE_SCROLLBAR=no
2156 DEFAULT_wxUSE_SLIDER=no
2157 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2158 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2159 DEFAULT_wxUSE_SPLITTER=no
2160 DEFAULT_wxUSE_STATBMP=no
2161 DEFAULT_wxUSE_STATBOX=no
2162 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2163 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2164 DEFAULT_wxUSE_STATUSBAR=yes
2165 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2166 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2167 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2168 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2169 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2170 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2171 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2172 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2173 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2174
2175 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2176 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2177 DEFAULT_wxUSE_WCSRTOMBS=no
2178
edae8572 2179 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2180 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2181 DEFAULT_wxUSE_GIF=no
2182 DEFAULT_wxUSE_PCX=no
2183 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2184 DEFAULT_wxUSE_IFF=no
0046ff7c 2185 DEFAULT_wxUSE_XPM=no
658974ae 2186 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2187 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2188
e9e0dc15 2189 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2190 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2191 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2192else
1e6feb95 2193 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2194 DEFAULT_wxUSE_STL=no
1e6feb95 2195
d8356fa3
VZ
2196 DEFAULT_wxUSE_NANOX=no
2197
10f2d63a
VZ
2198 DEFAULT_wxUSE_THREADS=yes
2199
2200 DEFAULT_wxUSE_SHARED=yes
2201 DEFAULT_wxUSE_OPTIMISE=yes
2202 DEFAULT_wxUSE_PROFILE=no
2203 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2204 DEFAULT_wxUSE_NO_RTTI=no
2205 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2206 DEFAULT_wxUSE_PERMISSIVE=no
2207 DEFAULT_wxUSE_DEBUG_FLAG=no
2208 DEFAULT_wxUSE_DEBUG_INFO=no
2209 DEFAULT_wxUSE_DEBUG_GDB=no
2210 DEFAULT_wxUSE_MEM_TRACING=no
2211 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2212 DEFAULT_wxUSE_DMALLOC=no
2213 DEFAULT_wxUSE_APPLE_IEEE=yes
2214
e46d2a18 2215 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2216 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2217 DEFAULT_wxUSE_LOGWINDOW=yes
2218 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2219 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2220
2221 DEFAULT_wxUSE_GUI=yes
2222
aa2d9ecc 2223 DEFAULT_wxUSE_REGEX=yes
672abd7a 2224 DEFAULT_wxUSE_XML=yes
aa2d9ecc
VZ
2225 DEFAULT_wxUSE_EXPAT=yes
2226 DEFAULT_wxUSE_ZLIB=yes
2227 DEFAULT_wxUSE_LIBPNG=yes
2228 DEFAULT_wxUSE_LIBJPEG=yes
2229 DEFAULT_wxUSE_LIBTIFF=yes
2230 DEFAULT_wxUSE_LIBXPM=yes
3527f29c 2231 DEFAULT_wxUSE_LIBMSPACK=yes
f93ca9fd 2232 DEFAULT_wxUSE_LIBSDL=no
16b52fa1 2233 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2234 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2235
eb4efbdc 2236 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2237 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2238 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2239 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2240 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2241 DEFAULT_wxUSE_TIMER=yes
2242 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2243 DEFAULT_wxUSE_FILE=yes
1e6feb95 2244 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2245 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2246 DEFAULT_wxUSE_TEXTFILE=yes
002ed9af 2247 DEFAULT_wxUSE_SOUND=yes
10f2d63a
VZ
2248 DEFAULT_wxUSE_INTL=yes
2249 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2250 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2251 DEFAULT_wxUSE_STREAMS=yes
2252 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2253 DEFAULT_wxUSE_OLE=yes
2254 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2255 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2256 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2257 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2258 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2259 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2260 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2261
2262 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2263 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2264 DEFAULT_wxUSE_POSTSCRIPT=yes
2265
10f2d63a
VZ
2266 DEFAULT_wxUSE_CLIPBOARD=yes
2267 DEFAULT_wxUSE_TOOLTIPS=yes
2268 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2269 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2270 DEFAULT_wxUSE_SPLINES=yes
2271
2272 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2273 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2274 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2275
2b5f62a0 2276 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2277 DEFAULT_wxUSE_CONSTRAINTS=yes
2278 DEFAULT_wxUSE_IPC=yes
2279 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2280 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2281 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2282 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2283 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2284 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2285 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2286 DEFAULT_wxUSE_PROTOCOL=yes
2287 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2288 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2289 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2290 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2291
2292 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2293 DEFAULT_wxUSE_CHOICEDLG=yes
2294 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2295 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2296 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2297 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2298 DEFAULT_wxUSE_FONTDLG=yes
2299 DEFAULT_wxUSE_MSGDLG=yes
2300 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2301 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2302 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2303 DEFAULT_wxUSE_STARTUP_TIPS=yes
2304 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2305 DEFAULT_wxUSE_WIZARDDLG=yes
2306
1e6feb95 2307 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2308 DEFAULT_wxUSE_MINIFRAME=yes
2309 DEFAULT_wxUSE_HTML=yes
24528b0c 2310 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2311 DEFAULT_wxUSE_FS_INET=yes
2312 DEFAULT_wxUSE_FS_ZIP=yes
2313 DEFAULT_wxUSE_BUSYINFO=yes
2314 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2315 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2316 DEFAULT_wxUSE_VALIDATORS=yes
2317
2318 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2319 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2320 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2321 DEFAULT_wxUSE_CALCTRL=yes
2322 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2323 DEFAULT_wxUSE_CHECKBOX=yes
2324 DEFAULT_wxUSE_CHECKLST=yes
2325 DEFAULT_wxUSE_CHOICE=yes
2326 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2327 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2328 DEFAULT_wxUSE_GAUGE=yes
2329 DEFAULT_wxUSE_GRID=yes
10f2d63a 2330 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2331 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2332 DEFAULT_wxUSE_LISTBOX=yes
2333 DEFAULT_wxUSE_LISTCTRL=yes
2334 DEFAULT_wxUSE_NOTEBOOK=yes
2335 DEFAULT_wxUSE_RADIOBOX=yes
2336 DEFAULT_wxUSE_RADIOBTN=yes
2337 DEFAULT_wxUSE_SASH=yes
2338 DEFAULT_wxUSE_SCROLLBAR=yes
2339 DEFAULT_wxUSE_SLIDER=yes
2340 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2341 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2342 DEFAULT_wxUSE_SPLITTER=yes
2343 DEFAULT_wxUSE_STATBMP=yes
2344 DEFAULT_wxUSE_STATBOX=yes
2345 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2346 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2347 DEFAULT_wxUSE_STATUSBAR=yes
2348 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2349 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2350 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2351 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2352 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2353 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2354 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2355 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2356 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2357
2358 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2359 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2360 DEFAULT_wxUSE_WCSRTOMBS=no
2361
edae8572 2362 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2363 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2364 DEFAULT_wxUSE_GIF=yes
2365 DEFAULT_wxUSE_PCX=yes
cc0e8480 2366 DEFAULT_wxUSE_IFF=no
10f2d63a 2367 DEFAULT_wxUSE_PNM=yes
0046ff7c 2368 DEFAULT_wxUSE_XPM=yes
658974ae 2369 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2370 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2371
e9e0dc15 2372 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2373 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2374 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2375fi
2376
8284b0c5
MB
2377
2378
10f2d63a 2379for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2380 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2381 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2382 has_toolkit_in_cache=1
2383 eval "DEFAULT_$LINE"
2384 eval "CACHE_$toolkit=1"
2385 fi
2386done
2387
8284b0c5
MB
2388
2389
5005acfe 2390 enablestring=
e6cc62c6
VS
2391 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2392echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2393 no_cache=0
2394 # Check whether --enable-gui or --disable-gui was given.
2395if test "${enable_gui+set}" = set; then
2396 enableval="$enable_gui"
e6cc62c6 2397
10f2d63a
VZ
2398 if test "$enableval" = yes; then
2399 ac_cv_use_gui='wxUSE_GUI=yes'
2400 else
2401 ac_cv_use_gui='wxUSE_GUI=no'
2402 fi
e6cc62c6 2403
10f2d63a 2404else
e6cc62c6 2405
10f2d63a
VZ
2406 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2407 if test "x$LINE" != x ; then
2408 eval "DEFAULT_$LINE"
2409 else
2410 no_cache=1
2411 fi
2412
2413 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2414
e6cc62c6 2415fi;
10f2d63a
VZ
2416
2417 eval "$ac_cv_use_gui"
2418 if test "$no_cache" != 1; then
2419 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2420 fi
2421
2422 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2423 echo "$as_me:$LINENO: result: yes" >&5
2424echo "${ECHO_T}yes" >&6
10f2d63a 2425 else
e6cc62c6
VS
2426 echo "$as_me:$LINENO: result: no" >&5
2427echo "${ECHO_T}no" >&6
10f2d63a 2428 fi
e6cc62c6 2429
10f2d63a 2430
9747f85d
VS
2431 enablestring=
2432 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2433echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2434 no_cache=0
2435 # Check whether --enable-monolithic or --disable-monolithic was given.
2436if test "${enable_monolithic+set}" = set; then
2437 enableval="$enable_monolithic"
2438
2439 if test "$enableval" = yes; then
2440 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2441 else
2442 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2443 fi
2444
2445else
2446
2447 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2448 if test "x$LINE" != x ; then
2449 eval "DEFAULT_$LINE"
2450 else
2451 no_cache=1
2452 fi
2453
2454 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2455
2456fi;
2457
2458 eval "$ac_cv_use_monolithic"
2459 if test "$no_cache" != 1; then
2460 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2461 fi
2462
2463 if test "$wxUSE_MONOLITHIC" = yes; then
2464 echo "$as_me:$LINENO: result: yes" >&5
2465echo "${ECHO_T}yes" >&6
2466 else
2467 echo "$as_me:$LINENO: result: no" >&5
2468echo "${ECHO_T}no" >&6
2469 fi
2470
2471
f93ca9fd
VS
2472 enablestring=
2473 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2474echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2475 no_cache=0
2476 # Check whether --enable-plugins or --disable-plugins was given.
2477if test "${enable_plugins+set}" = set; then
2478 enableval="$enable_plugins"
2479
2480 if test "$enableval" = yes; then
2481 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2482 else
2483 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2484 fi
2485
2486else
2487
2488 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2489 if test "x$LINE" != x ; then
2490 eval "DEFAULT_$LINE"
2491 else
2492 no_cache=1
2493 fi
2494
2495 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2496
2497fi;
2498
2499 eval "$ac_cv_use_plugins"
2500 if test "$no_cache" != 1; then
2501 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2502 fi
2503
2504 if test "$wxUSE_PLUGINS" = yes; then
2505 echo "$as_me:$LINENO: result: yes" >&5
2506echo "${ECHO_T}yes" >&6
2507 else
2508 echo "$as_me:$LINENO: result: no" >&5
2509echo "${ECHO_T}no" >&6
2510 fi
2511
2512
b12915c1 2513if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2514
8284b0c5 2515
5005acfe 2516 enablestring=
e6cc62c6
VS
2517 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2518echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2519 no_cache=0
2520 # Check whether --enable-universal or --disable-universal was given.
2521if test "${enable_universal+set}" = set; then
2522 enableval="$enable_universal"
e6cc62c6 2523
1e6feb95
VZ
2524 if test "$enableval" = yes; then
2525 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2526 else
2527 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2528 fi
e6cc62c6 2529
1e6feb95 2530else
e6cc62c6 2531
1e6feb95
VZ
2532 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2533 if test "x$LINE" != x ; then
2534 eval "DEFAULT_$LINE"
2535 else
2536 no_cache=1
2537 fi
2538
2539 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2540
e6cc62c6 2541fi;
1e6feb95
VZ
2542
2543 eval "$ac_cv_use_universal"
2544 if test "$no_cache" != 1; then
2545 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2546 fi
2547
2548 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2549 echo "$as_me:$LINENO: result: yes" >&5
2550echo "${ECHO_T}yes" >&6
1e6feb95 2551 else
e6cc62c6
VS
2552 echo "$as_me:$LINENO: result: no" >&5
2553echo "${ECHO_T}no" >&6
1e6feb95 2554 fi
e6cc62c6
VS
2555
2556
10f2d63a
VZ
2557# Check whether --with-gtk or --without-gtk was given.
2558if test "${with_gtk+set}" = set; then
2559 withval="$with_gtk"
2560 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2561fi;
10f2d63a
VZ
2562
2563# Check whether --with-motif or --without-motif was given.
2564if test "${with_motif+set}" = set; then
2565 withval="$with_motif"
2566 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2567fi;
10f2d63a 2568
b4085ce6
GD
2569# Check whether --with-mac or --without-mac was given.
2570if test "${with_mac+set}" = set; then
2571 withval="$with_mac"
2572 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2573fi;
b4085ce6 2574
ac0c4cc3
DE
2575# Check whether --with-cocoa or --without-cocoa was given.
2576if test "${with_cocoa+set}" = set; then
2577 withval="$with_cocoa"
2578 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2579fi;
ac0c4cc3 2580
10f2d63a
VZ
2581# Check whether --with-wine or --without-wine was given.
2582if test "${with_wine+set}" = set; then
2583 withval="$with_wine"
89e6bf6d 2584 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2585fi;
10f2d63a 2586
77e13408
RL
2587# Check whether --with-msw or --without-msw was given.
2588if test "${with_msw+set}" = set; then
2589 withval="$with_msw"
b4efce5e 2590 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2591fi;
10f2d63a 2592
e07802fc
VZ
2593# Check whether --with-pm or --without-pm was given.
2594if test "${with_pm+set}" = set; then
2595 withval="$with_pm"
2596 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2597fi;
698dcdb6 2598
1e6feb95
VZ
2599# Check whether --with-mgl or --without-mgl was given.
2600if test "${with_mgl+set}" = set; then
2601 withval="$with_mgl"
6c657b52 2602 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2603fi;
1e6feb95 2604
1725144d
RR
2605# Check whether --with-microwin or --without-microwin was given.
2606if test "${with_microwin+set}" = set; then
2607 withval="$with_microwin"
2608 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2609fi;
1725144d 2610
f79bd02d
JS
2611# Check whether --with-x11 or --without-x11 was given.
2612if test "${with_x11+set}" = set; then
2613 withval="$with_x11"
3c011993 2614 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2615fi;
a0b9e27f 2616
5005acfe 2617 enablestring=
e6cc62c6
VS
2618 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2619echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2620 no_cache=0
ba875e66
VZ
2621 # Check whether --enable-nanox or --disable-nanox was given.
2622if test "${enable_nanox+set}" = set; then
2623 enableval="$enable_nanox"
e6cc62c6 2624
d8356fa3 2625 if test "$enableval" = yes; then
ba875e66 2626 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2627 else
ba875e66 2628 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2629 fi
e6cc62c6 2630
d8356fa3 2631else
e6cc62c6 2632
d8356fa3
VZ
2633 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2634 if test "x$LINE" != x ; then
2635 eval "DEFAULT_$LINE"
2636 else
2637 no_cache=1
2638 fi
2639
ba875e66 2640 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2641
e6cc62c6 2642fi;
d8356fa3 2643
ba875e66 2644 eval "$ac_cv_use_nanox"
d8356fa3 2645 if test "$no_cache" != 1; then
ba875e66 2646 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2647 fi
2648
2649 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2650 echo "$as_me:$LINENO: result: yes" >&5
2651echo "${ECHO_T}yes" >&6
d8356fa3 2652 else
e6cc62c6
VS
2653 echo "$as_me:$LINENO: result: no" >&5
2654echo "${ECHO_T}no" >&6
d8356fa3 2655 fi
e6cc62c6 2656
8284b0c5 2657
d74f4b5a 2658
5005acfe 2659 enablestring=
e6cc62c6
VS
2660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2661echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2662 no_cache=0
2663 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2664if test "${enable_gtk2+set}" = set; then
2665 enableval="$enable_gtk2"
e6cc62c6 2666
d74f4b5a
VZ
2667 if test "$enableval" = yes; then
2668 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2669 else
2670 ac_cv_use_gtk2='wxUSE_GTK2=no'
2671 fi
e6cc62c6 2672
10f2d63a 2673else
e6cc62c6 2674
d74f4b5a
VZ
2675 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2676 if test "x$LINE" != x ; then
2677 eval "DEFAULT_$LINE"
2678 else
2679 no_cache=1
2680 fi
2681
2682 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2683
e6cc62c6 2684fi;
328a083c 2685
d74f4b5a
VZ
2686 eval "$ac_cv_use_gtk2"
2687 if test "$no_cache" != 1; then
2688 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2689 fi
2690
2691 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2692 echo "$as_me:$LINENO: result: yes" >&5
2693echo "${ECHO_T}yes" >&6
d74f4b5a 2694 else
e6cc62c6
VS
2695 echo "$as_me:$LINENO: result: no" >&5
2696echo "${ECHO_T}no" >&6
d74f4b5a 2697 fi
d74f4b5a 2698
5c6fa7d2 2699
e6cc62c6
VS
2700
2701 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2702echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2703 no_cache=0
e6cc62c6
VS
2704
2705# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2706if test "${with_libpng+set}" = set; then
2707 withval="$with_libpng"
e6cc62c6 2708
10f2d63a 2709 if test "$withval" = yes; then
b12915c1 2710 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2711 elif test "$withval" = no; then
b12915c1 2712 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2713 elif test "$withval" = sys; then
2714 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2715 elif test "$withval" = builtin; then
2716 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2717 else
e6cc62c6
VS
2718 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2719echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2720 { (exit 1); exit 1; }; }
10f2d63a 2721 fi
e6cc62c6 2722
10f2d63a 2723else
e6cc62c6 2724
b12915c1 2725 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2726 if test "x$LINE" != x ; then
2727 eval "DEFAULT_$LINE"
2728 else
2729 no_cache=1
2730 fi
2731
b12915c1 2732 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2733
e6cc62c6 2734fi;
10f2d63a 2735
b12915c1 2736 eval "$ac_cv_use_libpng"
10f2d63a 2737 if test "$no_cache" != 1; then
b12915c1 2738 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2739 fi
2740
b12915c1 2741 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2742 echo "$as_me:$LINENO: result: yes" >&5
2743echo "${ECHO_T}yes" >&6
422107f9 2744 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2745 echo "$as_me:$LINENO: result: no" >&5
2746echo "${ECHO_T}no" >&6
422107f9 2747 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2748 echo "$as_me:$LINENO: result: system version" >&5
2749echo "${ECHO_T}system version" >&6
4f14bcd8 2750 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2751 echo "$as_me:$LINENO: result: builtin version" >&5
2752echo "${ECHO_T}builtin version" >&6
422107f9 2753 else
e6cc62c6
VS
2754 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2755echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2756 { (exit 1); exit 1; }; }
10f2d63a 2757 fi
10f2d63a 2758
e6cc62c6
VS
2759
2760 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2761echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2762 no_cache=0
e6cc62c6
VS
2763
2764# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2765if test "${with_libjpeg+set}" = set; then
2766 withval="$with_libjpeg"
e6cc62c6 2767
10f2d63a 2768 if test "$withval" = yes; then
b12915c1 2769 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2770 elif test "$withval" = no; then
b12915c1 2771 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2772 elif test "$withval" = sys; then
2773 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2774 elif test "$withval" = builtin; then
2775 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2776 else
e6cc62c6
VS
2777 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2778echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2779 { (exit 1); exit 1; }; }
10f2d63a 2780 fi
e6cc62c6 2781
10f2d63a 2782else
e6cc62c6 2783
b12915c1 2784 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2785 if test "x$LINE" != x ; then
2786 eval "DEFAULT_$LINE"
2787 else
2788 no_cache=1
2789 fi
2790
b12915c1 2791 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2792
e6cc62c6 2793fi;
10f2d63a 2794
b12915c1 2795 eval "$ac_cv_use_libjpeg"
10f2d63a 2796 if test "$no_cache" != 1; then
b12915c1 2797 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2798 fi
2799
b12915c1 2800 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2801 echo "$as_me:$LINENO: result: yes" >&5
2802echo "${ECHO_T}yes" >&6
422107f9 2803 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2804 echo "$as_me:$LINENO: result: no" >&5
2805echo "${ECHO_T}no" >&6
422107f9 2806 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2807 echo "$as_me:$LINENO: result: system version" >&5
2808echo "${ECHO_T}system version" >&6
4f14bcd8 2809 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2810 echo "$as_me:$LINENO: result: builtin version" >&5
2811echo "${ECHO_T}builtin version" >&6
422107f9 2812 else
e6cc62c6
VS
2813 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2814echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2815 { (exit 1); exit 1; }; }
10f2d63a 2816 fi
10f2d63a 2817
e6cc62c6
VS
2818
2819 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2820echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2821 no_cache=0
e6cc62c6
VS
2822
2823# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2824if test "${with_libtiff+set}" = set; then
2825 withval="$with_libtiff"
e6cc62c6 2826
10f2d63a 2827 if test "$withval" = yes; then
b12915c1 2828 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2829 elif test "$withval" = no; then
b12915c1 2830 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2831 elif test "$withval" = sys; then
2832 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2833 elif test "$withval" = builtin; then
2834 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2835 else
e6cc62c6
VS
2836 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2837echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2838 { (exit 1); exit 1; }; }
10f2d63a 2839 fi
e6cc62c6 2840
10f2d63a 2841else
e6cc62c6 2842
b12915c1 2843 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2844 if test "x$LINE" != x ; then
2845 eval "DEFAULT_$LINE"
2846 else
2847 no_cache=1
2848 fi
2849
b12915c1 2850 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2851
e6cc62c6 2852fi;
10f2d63a 2853
b12915c1 2854 eval "$ac_cv_use_libtiff"
10f2d63a 2855 if test "$no_cache" != 1; then
b12915c1 2856 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2857 fi
2858
b12915c1 2859 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2860 echo "$as_me:$LINENO: result: yes" >&5
2861echo "${ECHO_T}yes" >&6
0dcf9893 2862 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2863 echo "$as_me:$LINENO: result: no" >&5
2864echo "${ECHO_T}no" >&6
0dcf9893 2865 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2866 echo "$as_me:$LINENO: result: system version" >&5
2867echo "${ECHO_T}system version" >&6
4f14bcd8 2868 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2869 echo "$as_me:$LINENO: result: builtin version" >&5
2870echo "${ECHO_T}builtin version" >&6
0dcf9893 2871 else
e6cc62c6
VS
2872 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2873echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2874 { (exit 1); exit 1; }; }
10f2d63a 2875 fi
10f2d63a 2876
e6cc62c6 2877
89fe663f
VZ
2878 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2879echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2880 no_cache=0
2881
2882# Check whether --with-libxpm or --without-libxpm was given.
2883if test "${with_libxpm+set}" = set; then
2884 withval="$with_libxpm"
2885
2886 if test "$withval" = yes; then
2887 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2888 elif test "$withval" = no; then
2889 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2890 elif test "$withval" = sys; then
2891 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2892 elif test "$withval" = builtin; then
2893 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2894 else
2895 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2896echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2897 { (exit 1); exit 1; }; }
2898 fi
2899
2900else
2901
2902 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2910
2911fi;
2912
2913 eval "$ac_cv_use_libxpm"
2914 if test "$no_cache" != 1; then
2915 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2916 fi
2917
2918 if test "$wxUSE_LIBXPM" = yes; then
2919 echo "$as_me:$LINENO: result: yes" >&5
2920echo "${ECHO_T}yes" >&6
2921 elif test "$wxUSE_LIBXPM" = no; then
2922 echo "$as_me:$LINENO: result: no" >&5
2923echo "${ECHO_T}no" >&6
2924 elif test "$wxUSE_LIBXPM" = sys; then
2925 echo "$as_me:$LINENO: result: system version" >&5
2926echo "${ECHO_T}system version" >&6
2927 elif test "$wxUSE_LIBXPM" = builtin; then
2928 echo "$as_me:$LINENO: result: builtin version" >&5
2929echo "${ECHO_T}builtin version" >&6
2930 else
2931 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2932echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2933 { (exit 1); exit 1; }; }
2934 fi
2935
2936
3527f29c
VS
2937 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2938echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2939 no_cache=0
2940
2941# Check whether --with-libmspack or --without-libmspack was given.
2942if test "${with_libmspack+set}" = set; then
2943 withval="$with_libmspack"
2944
2945 if test "$withval" = yes; then
2946 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2947 else
2948 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2949 fi
2950
2951else
2952
2953 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2954 if test "x$LINE" != x ; then
2955 eval "DEFAULT_$LINE"
2956 else
2957 no_cache=1
2958 fi
2959
2960 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2961
2962fi;
2963
2964 eval "$ac_cv_use_libmspack"
2965 if test "$no_cache" != 1; then
2966 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2967 fi
2968
2969 if test "$wxUSE_LIBMSPACK" = yes; then
2970 echo "$as_me:$LINENO: result: yes" >&5
2971echo "${ECHO_T}yes" >&6
2972 else
2973 echo "$as_me:$LINENO: result: no" >&5
2974echo "${ECHO_T}no" >&6
2975 fi
2976
2977
f93ca9fd
VS
2978 echo "$as_me:$LINENO: checking for --with-sdl" >&5
2979echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
2980 no_cache=0
2981
2982# Check whether --with-sdl or --without-sdl was given.
2983if test "${with_sdl+set}" = set; then
2984 withval="$with_sdl"
2985
2986 if test "$withval" = yes; then
2987 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
2988 else
2989 ac_cv_use_sdl='wxUSE_LIBSDL=no'
2990 fi
2991
2992else
2993
2994 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
2995 if test "x$LINE" != x ; then
2996 eval "DEFAULT_$LINE"
2997 else
2998 no_cache=1
2999 fi
3000
3001 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
3002
3003fi;
3004
3005 eval "$ac_cv_use_sdl"
3006 if test "$no_cache" != 1; then
3007 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
3008 fi
3009
3010 if test "$wxUSE_LIBSDL" = yes; then
3011 echo "$as_me:$LINENO: result: yes" >&5
3012echo "${ECHO_T}yes" >&6
3013 else
3014 echo "$as_me:$LINENO: result: no" >&5
3015echo "${ECHO_T}no" >&6
3016 fi
3017
3018
e6cc62c6
VS
3019 echo "$as_me:$LINENO: checking for --with-opengl" >&5
3020echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 3021 no_cache=0
e6cc62c6
VS
3022
3023# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
3024if test "${with_opengl+set}" = set; then
3025 withval="$with_opengl"
e6cc62c6 3026
10f2d63a 3027 if test "$withval" = yes; then
b12915c1 3028 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 3029 else
b12915c1 3030 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 3031 fi
e6cc62c6 3032
10f2d63a 3033else
e6cc62c6 3034
b12915c1 3035 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
3036 if test "x$LINE" != x ; then
3037 eval "DEFAULT_$LINE"
3038 else
3039 no_cache=1
3040 fi
3041
b12915c1 3042 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 3043
e6cc62c6 3044fi;
10f2d63a 3045
b12915c1 3046 eval "$ac_cv_use_opengl"
10f2d63a 3047 if test "$no_cache" != 1; then
b12915c1 3048 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3049 fi
3050
b12915c1 3051 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
3052 echo "$as_me:$LINENO: result: yes" >&5
3053echo "${ECHO_T}yes" >&6
10f2d63a 3054 else
e6cc62c6
VS
3055 echo "$as_me:$LINENO: result: no" >&5
3056echo "${ECHO_T}no" >&6
10f2d63a 3057 fi
e6cc62c6 3058
10f2d63a 3059
b12915c1
VZ
3060fi
3061
5c6fa7d2 3062
e6cc62c6
VS
3063 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3064echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 3065 no_cache=0
e6cc62c6
VS
3066
3067# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
3068if test "${with_dmalloc+set}" = set; then
3069 withval="$with_dmalloc"
e6cc62c6 3070
c7a2bf27 3071 if test "$withval" = yes; then
b12915c1 3072 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 3073 else
b12915c1 3074 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 3075 fi
e6cc62c6 3076
c7a2bf27 3077else
e6cc62c6 3078
b12915c1 3079 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
3080 if test "x$LINE" != x ; then
3081 eval "DEFAULT_$LINE"
3082 else
3083 no_cache=1
3084 fi
3085
b12915c1 3086 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 3087
e6cc62c6 3088fi;
c7a2bf27 3089
b12915c1 3090 eval "$ac_cv_use_dmalloc"
c7a2bf27 3091 if test "$no_cache" != 1; then
b12915c1 3092 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
3093 fi
3094
b12915c1 3095 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
3096 echo "$as_me:$LINENO: result: yes" >&5
3097echo "${ECHO_T}yes" >&6
c7a2bf27 3098 else
e6cc62c6
VS
3099 echo "$as_me:$LINENO: result: no" >&5
3100echo "${ECHO_T}no" >&6
c7a2bf27 3101 fi
c7a2bf27 3102
e6cc62c6
VS
3103
3104 echo "$as_me:$LINENO: checking for --with-regex" >&5
3105echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 3106 no_cache=0
e6cc62c6
VS
3107
3108# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
3109if test "${with_regex+set}" = set; then
3110 withval="$with_regex"
e6cc62c6 3111
3e44f09d
VZ
3112 if test "$withval" = yes; then
3113 ac_cv_use_regex='wxUSE_REGEX=yes'
3114 elif test "$withval" = no; then
3115 ac_cv_use_regex='wxUSE_REGEX=no'
3116 elif test "$withval" = sys; then
3117 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
3118 elif test "$withval" = builtin; then
3119 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 3120 else
e6cc62c6
VS
3121 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3122echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3123 { (exit 1); exit 1; }; }
3e44f09d 3124 fi
e6cc62c6 3125
3e44f09d 3126else
e6cc62c6 3127
3e44f09d
VZ
3128 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3129 if test "x$LINE" != x ; then
3130 eval "DEFAULT_$LINE"
3131 else
3132 no_cache=1
3133 fi
3134
3135 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 3136
e6cc62c6 3137fi;
3e44f09d
VZ
3138
3139 eval "$ac_cv_use_regex"
3140 if test "$no_cache" != 1; then
3141 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3142 fi
3143
3144 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
3145 echo "$as_me:$LINENO: result: yes" >&5
3146echo "${ECHO_T}yes" >&6
3e44f09d 3147 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
3148 echo "$as_me:$LINENO: result: no" >&5
3149echo "${ECHO_T}no" >&6
3e44f09d 3150 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
3151 echo "$as_me:$LINENO: result: system version" >&5
3152echo "${ECHO_T}system version" >&6
4f14bcd8 3153 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
3154 echo "$as_me:$LINENO: result: builtin version" >&5
3155echo "${ECHO_T}builtin version" >&6
3e44f09d 3156 else
e6cc62c6
VS
3157 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3158echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3159 { (exit 1); exit 1; }; }
3e44f09d 3160 fi
3e44f09d 3161
e6cc62c6
VS
3162
3163 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3164echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 3165 no_cache=0
e6cc62c6
VS
3166
3167# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
3168if test "${with_zlib+set}" = set; then
3169 withval="$with_zlib"
e6cc62c6 3170
10f2d63a 3171 if test "$withval" = yes; then
b12915c1 3172 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 3173 elif test "$withval" = no; then
b12915c1 3174 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
3175 elif test "$withval" = sys; then
3176 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
3177 elif test "$withval" = builtin; then
3178 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 3179 else
e6cc62c6
VS
3180 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3181echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3182 { (exit 1); exit 1; }; }
10f2d63a 3183 fi
e6cc62c6 3184
10f2d63a 3185else
e6cc62c6 3186
b12915c1 3187 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3188 if test "x$LINE" != x ; then
3189 eval "DEFAULT_$LINE"
3190 else
3191 no_cache=1
3192 fi
3193
b12915c1 3194 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3195
e6cc62c6 3196fi;
10f2d63a 3197
b12915c1 3198 eval "$ac_cv_use_zlib"
10f2d63a 3199 if test "$no_cache" != 1; then
b12915c1 3200 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3201 fi
3202
b12915c1 3203 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3204 echo "$as_me:$LINENO: result: yes" >&5
3205echo "${ECHO_T}yes" >&6
422107f9 3206 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3207 echo "$as_me:$LINENO: result: no" >&5
3208echo "${ECHO_T}no" >&6
422107f9 3209 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3210 echo "$as_me:$LINENO: result: system version" >&5
3211echo "${ECHO_T}system version" >&6
4f14bcd8 3212 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3213 echo "$as_me:$LINENO: result: builtin version" >&5
3214echo "${ECHO_T}builtin version" >&6
422107f9 3215 else
e6cc62c6
VS
3216 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3217echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3218 { (exit 1); exit 1; }; }
10f2d63a 3219 fi
10f2d63a 3220
e6cc62c6
VS
3221
3222 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3223echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3224 no_cache=0
e6cc62c6
VS
3225
3226# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3227if test "${with_odbc+set}" = set; then
3228 withval="$with_odbc"
e6cc62c6 3229
10f2d63a
VZ
3230 if test "$withval" = yes; then
3231 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3232 elif test "$withval" = no; then
10f2d63a 3233 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3234 elif test "$withval" = sys; then
3235 ac_cv_use_odbc='wxUSE_ODBC=sys'
3236 elif test "$withval" = builtin; then
3237 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3238 else
e6cc62c6
VS
3239 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3240echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3241 { (exit 1); exit 1; }; }
10f2d63a 3242 fi
e6cc62c6 3243
10f2d63a 3244else
e6cc62c6 3245
10f2d63a
VZ
3246 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3247 if test "x$LINE" != x ; then
3248 eval "DEFAULT_$LINE"
3249 else
3250 no_cache=1
3251 fi
3252
3253 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3254
e6cc62c6 3255fi;
10f2d63a
VZ
3256
3257 eval "$ac_cv_use_odbc"
3258 if test "$no_cache" != 1; then
3259 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3260 fi
3261
3262 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3263 echo "$as_me:$LINENO: result: yes" >&5
3264echo "${ECHO_T}yes" >&6
8647bec6 3265 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3266 echo "$as_me:$LINENO: result: no" >&5
3267echo "${ECHO_T}no" >&6
8647bec6 3268 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3269 echo "$as_me:$LINENO: result: system version" >&5
3270echo "${ECHO_T}system version" >&6
8647bec6 3271 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3272 echo "$as_me:$LINENO: result: builtin version" >&5
3273echo "${ECHO_T}builtin version" >&6
8647bec6 3274 else
e6cc62c6
VS
3275 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3276echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3277 { (exit 1); exit 1; }; }
10f2d63a 3278 fi
e6cc62c6 3279
52127426 3280
672abd7a
VS
3281 echo "$as_me:$LINENO: checking for --with-expat" >&5
3282echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3283 no_cache=0
3284
3285# Check whether --with-expat or --without-expat was given.
3286if test "${with_expat+set}" = set; then
3287 withval="$with_expat"
3288
3289 if test "$withval" = yes; then
3290 ac_cv_use_expat='wxUSE_EXPAT=yes'
3291 elif test "$withval" = no; then
3292 ac_cv_use_expat='wxUSE_EXPAT=no'
3293 elif test "$withval" = sys; then
3294 ac_cv_use_expat='wxUSE_EXPAT=sys'
3295 elif test "$withval" = builtin; then
3296 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3297 else
3298 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3299echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3300 { (exit 1); exit 1; }; }
3301 fi
3302
3303else
3304
3305 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3306 if test "x$LINE" != x ; then
3307 eval "DEFAULT_$LINE"
3308 else
3309 no_cache=1
3310 fi
3311
3312 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3313
3314fi;
3315
3316 eval "$ac_cv_use_expat"
3317 if test "$no_cache" != 1; then
3318 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3319 fi
3320
3321 if test "$wxUSE_EXPAT" = yes; then
3322 echo "$as_me:$LINENO: result: yes" >&5
3323echo "${ECHO_T}yes" >&6
3324 elif test "$wxUSE_EXPAT" = no; then
3325 echo "$as_me:$LINENO: result: no" >&5
3326echo "${ECHO_T}no" >&6
3327 elif test "$wxUSE_EXPAT" = sys; then
3328 echo "$as_me:$LINENO: result: system version" >&5
3329echo "${ECHO_T}system version" >&6
3330 elif test "$wxUSE_EXPAT" = builtin; then
3331 echo "$as_me:$LINENO: result: builtin version" >&5
3332echo "${ECHO_T}builtin version" >&6
3333 else
3334 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3335echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3336 { (exit 1); exit 1; }; }
3337 fi
3338
3339
8284b0c5
MB
3340
3341
5005acfe 3342 enablestring=
e6cc62c6
VS
3343 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3344echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3345 no_cache=0
3346 # Check whether --enable-shared or --disable-shared was given.
3347if test "${enable_shared+set}" = set; then
3348 enableval="$enable_shared"
e6cc62c6 3349
10f2d63a
VZ
3350 if test "$enableval" = yes; then
3351 ac_cv_use_shared='wxUSE_SHARED=yes'
3352 else
3353 ac_cv_use_shared='wxUSE_SHARED=no'
3354 fi
e6cc62c6 3355
10f2d63a 3356else
e6cc62c6 3357
10f2d63a
VZ
3358 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3359 if test "x$LINE" != x ; then
3360 eval "DEFAULT_$LINE"
3361 else
3362 no_cache=1
3363 fi
3364
3365 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3366
e6cc62c6 3367fi;
10f2d63a
VZ
3368
3369 eval "$ac_cv_use_shared"
3370 if test "$no_cache" != 1; then
3371 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3372 fi
3373
3374 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3375 echo "$as_me:$LINENO: result: yes" >&5
3376echo "${ECHO_T}yes" >&6
10f2d63a 3377 else
e6cc62c6
VS
3378 echo "$as_me:$LINENO: result: no" >&5
3379echo "${ECHO_T}no" >&6
10f2d63a 3380 fi
e6cc62c6 3381
10f2d63a 3382
5005acfe 3383 enablestring=
e6cc62c6
VS
3384 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3385echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3386 no_cache=0
3387 # Check whether --enable-optimise or --disable-optimise was given.
3388if test "${enable_optimise+set}" = set; then
3389 enableval="$enable_optimise"
e6cc62c6 3390
10f2d63a
VZ
3391 if test "$enableval" = yes; then
3392 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3393 else
3394 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3395 fi
e6cc62c6 3396
10f2d63a 3397else
e6cc62c6 3398
10f2d63a
VZ
3399 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3400 if test "x$LINE" != x ; then
3401 eval "DEFAULT_$LINE"
3402 else
3403 no_cache=1
3404 fi
3405
3406 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3407
e6cc62c6 3408fi;
10f2d63a
VZ
3409
3410 eval "$ac_cv_use_optimise"
3411 if test "$no_cache" != 1; then
3412 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3413 fi
3414
3415 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3416 echo "$as_me:$LINENO: result: yes" >&5
3417echo "${ECHO_T}yes" >&6
10f2d63a 3418 else
e6cc62c6
VS
3419 echo "$as_me:$LINENO: result: no" >&5
3420echo "${ECHO_T}no" >&6
10f2d63a 3421 fi
e6cc62c6 3422
10f2d63a 3423
5005acfe 3424 enablestring=
e6cc62c6
VS
3425 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3426echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3427 no_cache=0
3428 # Check whether --enable-debug or --disable-debug was given.
3429if test "${enable_debug+set}" = set; then
3430 enableval="$enable_debug"
e6cc62c6 3431
10f2d63a
VZ
3432 if test "$enableval" = yes; then
3433 ac_cv_use_debug='wxUSE_DEBUG=yes'
3434 else
3435 ac_cv_use_debug='wxUSE_DEBUG=no'
3436 fi
e6cc62c6 3437
10f2d63a 3438else
e6cc62c6 3439
10f2d63a
VZ
3440 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3441 if test "x$LINE" != x ; then
3442 eval "DEFAULT_$LINE"
3443 else
3444 no_cache=1
3445 fi
3446
3447 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3448
e6cc62c6 3449fi;
10f2d63a
VZ
3450
3451 eval "$ac_cv_use_debug"
3452 if test "$no_cache" != 1; then
3453 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3454 fi
3455
3456 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3457 echo "$as_me:$LINENO: result: yes" >&5
3458echo "${ECHO_T}yes" >&6
10f2d63a 3459 else
e6cc62c6
VS
3460 echo "$as_me:$LINENO: result: no" >&5
3461echo "${ECHO_T}no" >&6
10f2d63a 3462 fi
e6cc62c6 3463
52127426 3464
df5168c4
MB
3465 enablestring=
3466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3467echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3468 no_cache=0
3469 # Check whether --enable-stl or --disable-stl was given.
3470if test "${enable_stl+set}" = set; then
3471 enableval="$enable_stl"
3472
3473 if test "$enableval" = yes; then
3474 ac_cv_use_stl='wxUSE_STL=yes'
3475 else
3476 ac_cv_use_stl='wxUSE_STL=no'
3477 fi
3478
3479else
3480
3481 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3482 if test "x$LINE" != x ; then
3483 eval "DEFAULT_$LINE"
3484 else
3485 no_cache=1
3486 fi
3487
3488 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3489
3490fi;
3491
3492 eval "$ac_cv_use_stl"
3493 if test "$no_cache" != 1; then
3494 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3495 fi
3496
3497 if test "$wxUSE_STL" = yes; then
3498 echo "$as_me:$LINENO: result: yes" >&5
3499echo "${ECHO_T}yes" >&6
3500 else
3501 echo "$as_me:$LINENO: result: no" >&5
3502echo "${ECHO_T}no" >&6
3503 fi
3504
3505
10f2d63a
VZ
3506if test "$wxUSE_DEBUG" = "yes"; then
3507 DEFAULT_wxUSE_DEBUG_FLAG=yes
3508 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3509 BUILD=debug
10f2d63a
VZ
3510elif test "$wxUSE_DEBUG" = "no"; then
3511 DEFAULT_wxUSE_DEBUG_FLAG=no
3512 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3513 BUILD=release
10f2d63a
VZ
3514fi
3515
8284b0c5 3516
5005acfe 3517 enablestring=
e6cc62c6
VS
3518 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3519echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3520 no_cache=0
3521 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3522if test "${enable_debug_flag+set}" = set; then
3523 enableval="$enable_debug_flag"
e6cc62c6 3524
10f2d63a
VZ
3525 if test "$enableval" = yes; then
3526 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3527 else
3528 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3529 fi
e6cc62c6 3530
10f2d63a 3531else
e6cc62c6 3532
10f2d63a
VZ
3533 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3534 if test "x$LINE" != x ; then
3535 eval "DEFAULT_$LINE"
3536 else
3537 no_cache=1
3538 fi
3539
3540 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3541
e6cc62c6 3542fi;
10f2d63a
VZ
3543
3544 eval "$ac_cv_use_debug_flag"
3545 if test "$no_cache" != 1; then
3546 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3547 fi
3548
3549 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3550 echo "$as_me:$LINENO: result: yes" >&5
3551echo "${ECHO_T}yes" >&6
10f2d63a 3552 else
e6cc62c6
VS
3553 echo "$as_me:$LINENO: result: no" >&5
3554echo "${ECHO_T}no" >&6
10f2d63a 3555 fi
e6cc62c6 3556
10f2d63a 3557
5005acfe 3558 enablestring=
e6cc62c6
VS
3559 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3560echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3561 no_cache=0
3562 # Check whether --enable-debug_info or --disable-debug_info was given.
3563if test "${enable_debug_info+set}" = set; then
3564 enableval="$enable_debug_info"
e6cc62c6 3565
10f2d63a
VZ
3566 if test "$enableval" = yes; then
3567 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3568 else
3569 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3570 fi
e6cc62c6 3571
10f2d63a 3572else
e6cc62c6 3573
10f2d63a
VZ
3574 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3575 if test "x$LINE" != x ; then
3576 eval "DEFAULT_$LINE"
3577 else
3578 no_cache=1
3579 fi
3580
3581 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3582
e6cc62c6 3583fi;
10f2d63a
VZ
3584
3585 eval "$ac_cv_use_debug_info"
3586 if test "$no_cache" != 1; then
3587 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3588 fi
3589
3590 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3591 echo "$as_me:$LINENO: result: yes" >&5
3592echo "${ECHO_T}yes" >&6
10f2d63a 3593 else
e6cc62c6
VS
3594 echo "$as_me:$LINENO: result: no" >&5
3595echo "${ECHO_T}no" >&6
10f2d63a 3596 fi
e6cc62c6 3597
10f2d63a 3598
5005acfe 3599 enablestring=
e6cc62c6
VS
3600 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3601echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3602 no_cache=0
3603 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3604if test "${enable_debug_gdb+set}" = set; then
3605 enableval="$enable_debug_gdb"
e6cc62c6 3606
10f2d63a
VZ
3607 if test "$enableval" = yes; then
3608 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3609 else
3610 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3611 fi
e6cc62c6 3612
10f2d63a 3613else
e6cc62c6 3614
10f2d63a
VZ
3615 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3616 if test "x$LINE" != x ; then
3617 eval "DEFAULT_$LINE"
3618 else
3619 no_cache=1
3620 fi
3621
3622 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3623
e6cc62c6 3624fi;
10f2d63a
VZ
3625
3626 eval "$ac_cv_use_debug_gdb"
3627 if test "$no_cache" != 1; then
3628 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3629 fi
3630
3631 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3632 echo "$as_me:$LINENO: result: yes" >&5
3633echo "${ECHO_T}yes" >&6
10f2d63a 3634 else
e6cc62c6
VS
3635 echo "$as_me:$LINENO: result: no" >&5
3636echo "${ECHO_T}no" >&6
10f2d63a 3637 fi
e6cc62c6 3638
10f2d63a 3639
5005acfe 3640 enablestring=
e6cc62c6
VS
3641 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3642echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3643 no_cache=0
3644 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3645if test "${enable_debug_cntxt+set}" = set; then
3646 enableval="$enable_debug_cntxt"
e6cc62c6 3647
10f2d63a
VZ
3648 if test "$enableval" = yes; then
3649 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3650 else
3651 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3652 fi
e6cc62c6 3653
10f2d63a 3654else
e6cc62c6 3655
10f2d63a
VZ
3656 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3657 if test "x$LINE" != x ; then
3658 eval "DEFAULT_$LINE"
3659 else
3660 no_cache=1
3661 fi
3662
3663 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3664
e6cc62c6 3665fi;
10f2d63a
VZ
3666
3667 eval "$ac_cv_use_debug_cntxt"
3668 if test "$no_cache" != 1; then
3669 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3670 fi
3671
3672 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3673 echo "$as_me:$LINENO: result: yes" >&5
3674echo "${ECHO_T}yes" >&6
10f2d63a 3675 else
e6cc62c6
VS
3676 echo "$as_me:$LINENO: result: no" >&5
3677echo "${ECHO_T}no" >&6
10f2d63a 3678 fi
e6cc62c6 3679
10f2d63a 3680
5005acfe 3681 enablestring=
e6cc62c6
VS
3682 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3683echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3684 no_cache=0
3685 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3686if test "${enable_mem_tracing+set}" = set; then
3687 enableval="$enable_mem_tracing"
e6cc62c6 3688
10f2d63a
VZ
3689 if test "$enableval" = yes; then
3690 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3691 else
3692 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3693 fi
e6cc62c6 3694
10f2d63a 3695else
e6cc62c6 3696
10f2d63a
VZ
3697 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3698 if test "x$LINE" != x ; then
3699 eval "DEFAULT_$LINE"
3700 else
3701 no_cache=1
3702 fi
3703
3704 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3705
e6cc62c6 3706fi;
10f2d63a
VZ
3707
3708 eval "$ac_cv_use_mem_tracing"
3709 if test "$no_cache" != 1; then
3710 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3711 fi
3712
3713 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3714 echo "$as_me:$LINENO: result: yes" >&5
3715echo "${ECHO_T}yes" >&6
10f2d63a 3716 else
e6cc62c6
VS
3717 echo "$as_me:$LINENO: result: no" >&5
3718echo "${ECHO_T}no" >&6
10f2d63a 3719 fi
e6cc62c6 3720
10f2d63a 3721
5005acfe 3722 enablestring=
e6cc62c6
VS
3723 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3724echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3725 no_cache=0
3726 # Check whether --enable-profile or --disable-profile was given.
3727if test "${enable_profile+set}" = set; then
3728 enableval="$enable_profile"
e6cc62c6 3729
10f2d63a
VZ
3730 if test "$enableval" = yes; then
3731 ac_cv_use_profile='wxUSE_PROFILE=yes'
3732 else
3733 ac_cv_use_profile='wxUSE_PROFILE=no'
3734 fi
e6cc62c6 3735
10f2d63a 3736else
e6cc62c6 3737
10f2d63a
VZ
3738 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3739 if test "x$LINE" != x ; then
3740 eval "DEFAULT_$LINE"
3741 else
3742 no_cache=1
3743 fi
3744
3745 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3746
e6cc62c6 3747fi;
10f2d63a
VZ
3748
3749 eval "$ac_cv_use_profile"
3750 if test "$no_cache" != 1; then
3751 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3752 fi
3753
3754 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3755 echo "$as_me:$LINENO: result: yes" >&5
3756echo "${ECHO_T}yes" >&6
10f2d63a 3757 else
e6cc62c6
VS
3758 echo "$as_me:$LINENO: result: no" >&5
3759echo "${ECHO_T}no" >&6
10f2d63a 3760 fi
e6cc62c6 3761
10f2d63a 3762
5005acfe 3763 enablestring=
e6cc62c6
VS
3764 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3765echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3766 no_cache=0
3767 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3768if test "${enable_no_rtti+set}" = set; then
3769 enableval="$enable_no_rtti"
e6cc62c6 3770
10f2d63a
VZ
3771 if test "$enableval" = yes; then
3772 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3773 else
3774 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3775 fi
e6cc62c6 3776
10f2d63a 3777else
e6cc62c6 3778
10f2d63a
VZ
3779 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3780 if test "x$LINE" != x ; then
3781 eval "DEFAULT_$LINE"
3782 else
3783 no_cache=1
3784 fi
3785
3786 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3787
e6cc62c6 3788fi;
10f2d63a
VZ
3789
3790 eval "$ac_cv_use_no_rtti"
3791 if test "$no_cache" != 1; then
3792 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3793 fi
3794
3795 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3796 echo "$as_me:$LINENO: result: yes" >&5
3797echo "${ECHO_T}yes" >&6
10f2d63a 3798 else
e6cc62c6
VS
3799 echo "$as_me:$LINENO: result: no" >&5
3800echo "${ECHO_T}no" >&6
10f2d63a 3801 fi
e6cc62c6 3802
10f2d63a 3803
5005acfe 3804 enablestring=
e6cc62c6
VS
3805 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3806echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3807 no_cache=0
3808 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3809if test "${enable_no_exceptions+set}" = set; then
3810 enableval="$enable_no_exceptions"
e6cc62c6 3811
10f2d63a
VZ
3812 if test "$enableval" = yes; then
3813 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3814 else
3815 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3816 fi
e6cc62c6 3817
10f2d63a 3818else
e6cc62c6 3819
10f2d63a
VZ
3820 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3821 if test "x$LINE" != x ; then
3822 eval "DEFAULT_$LINE"
3823 else
3824 no_cache=1
3825 fi
3826
3827 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3828
e6cc62c6 3829fi;
10f2d63a
VZ
3830
3831 eval "$ac_cv_use_no_exceptions"
3832 if test "$no_cache" != 1; then
3833 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3834 fi
3835
3836 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3837 echo "$as_me:$LINENO: result: yes" >&5
3838echo "${ECHO_T}yes" >&6
10f2d63a 3839 else
e6cc62c6
VS
3840 echo "$as_me:$LINENO: result: no" >&5
3841echo "${ECHO_T}no" >&6
10f2d63a 3842 fi
e6cc62c6 3843
10f2d63a 3844
5005acfe 3845 enablestring=
e6cc62c6
VS
3846 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3847echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3848 no_cache=0
3849 # Check whether --enable-permissive or --disable-permissive was given.
3850if test "${enable_permissive+set}" = set; then
3851 enableval="$enable_permissive"
e6cc62c6 3852
10f2d63a
VZ
3853 if test "$enableval" = yes; then
3854 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3855 else
3856 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3857 fi
e6cc62c6 3858
10f2d63a 3859else
e6cc62c6 3860
10f2d63a
VZ
3861 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3862 if test "x$LINE" != x ; then
3863 eval "DEFAULT_$LINE"
3864 else
3865 no_cache=1
3866 fi
3867
3868 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3869
e6cc62c6 3870fi;
10f2d63a
VZ
3871
3872 eval "$ac_cv_use_permissive"
3873 if test "$no_cache" != 1; then
3874 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3875 fi
3876
3877 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3878 echo "$as_me:$LINENO: result: yes" >&5
3879echo "${ECHO_T}yes" >&6
10f2d63a 3880 else
e6cc62c6
VS
3881 echo "$as_me:$LINENO: result: no" >&5
3882echo "${ECHO_T}no" >&6
10f2d63a 3883 fi
e6cc62c6 3884
10f2d63a 3885
5005acfe 3886 enablestring=
e6cc62c6
VS
3887 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3888echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3889 no_cache=0
3890 # Check whether --enable-no_deps or --disable-no_deps was given.
3891if test "${enable_no_deps+set}" = set; then
3892 enableval="$enable_no_deps"
e6cc62c6 3893
10f2d63a
VZ
3894 if test "$enableval" = yes; then
3895 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3896 else
3897 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3898 fi
e6cc62c6 3899
10f2d63a 3900else
e6cc62c6 3901
10f2d63a
VZ
3902 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3903 if test "x$LINE" != x ; then
3904 eval "DEFAULT_$LINE"
3905 else
3906 no_cache=1
3907 fi
3908
3909 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3910
e6cc62c6 3911fi;
10f2d63a
VZ
3912
3913 eval "$ac_cv_use_no_deps"
3914 if test "$no_cache" != 1; then
3915 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3916 fi
3917
3918 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3919 echo "$as_me:$LINENO: result: yes" >&5
3920echo "${ECHO_T}yes" >&6
10f2d63a 3921 else
e6cc62c6
VS
3922 echo "$as_me:$LINENO: result: no" >&5
3923echo "${ECHO_T}no" >&6
10f2d63a 3924 fi
e6cc62c6 3925
52127426 3926
8284b0c5 3927
65d8ef1e 3928 enablestring=
e6cc62c6
VS
3929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3930echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3931 no_cache=0
3932 # Check whether --enable-compat22 or --disable-compat22 was given.
3933if test "${enable_compat22+set}" = set; then
3934 enableval="$enable_compat22"
e6cc62c6 3935
54276ccf
VZ
3936 if test "$enableval" = yes; then
3937 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3938 else
3939 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3940 fi
e6cc62c6 3941
54276ccf 3942else
e6cc62c6 3943
54276ccf
VZ
3944 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${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_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3952
e6cc62c6 3953fi;
54276ccf
VZ
3954
3955 eval "$ac_cv_use_compat22"
3956 if test "$no_cache" != 1; then
3957 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3958 fi
3959
3960 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3961 echo "$as_me:$LINENO: result: yes" >&5
3962echo "${ECHO_T}yes" >&6
54276ccf 3963 else
e6cc62c6
VS
3964 echo "$as_me:$LINENO: result: no" >&5
3965echo "${ECHO_T}no" >&6
54276ccf 3966 fi
e6cc62c6 3967
54276ccf 3968
65d8ef1e 3969 enablestring=disable
e6cc62c6
VS
3970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3971echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3972 no_cache=0
3973 # Check whether --enable-compat24 or --disable-compat24 was given.
3974if test "${enable_compat24+set}" = set; then
3975 enableval="$enable_compat24"
e6cc62c6 3976
65d8ef1e
VS
3977 if test "$enableval" = yes; then
3978 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3979 else
3980 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3981 fi
e6cc62c6 3982
65d8ef1e 3983else
e6cc62c6 3984
65d8ef1e
VS
3985 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3986 if test "x$LINE" != x ; then
3987 eval "DEFAULT_$LINE"
3988 else
3989 no_cache=1
3990 fi
3991
3992 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3993
e6cc62c6 3994fi;
65d8ef1e
VS
3995
3996 eval "$ac_cv_use_compat24"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
4002 echo "$as_me:$LINENO: result: yes" >&5
4003echo "${ECHO_T}yes" >&6
65d8ef1e 4004 else
e6cc62c6
VS
4005 echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
65d8ef1e 4007 fi
e6cc62c6 4008
65d8ef1e 4009
3bd8fb5f
RD
4010# Check whether --enable-rpath or --disable-rpath was given.
4011if test "${enable_rpath+set}" = set; then
4012 enableval="$enable_rpath"
4013 wxRPATH_DIR="$enableval"
e6cc62c6 4014fi;
3bd8fb5f
RD
4015
4016if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
4017 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
4018fi
4019
8284b0c5
MB
4020
4021
4022
5005acfe 4023 enablestring=
e6cc62c6
VS
4024 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
4025echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
4026 no_cache=0
4027 # Check whether --enable-intl or --disable-intl was given.
4028if test "${enable_intl+set}" = set; then
4029 enableval="$enable_intl"
e6cc62c6 4030
10f2d63a
VZ
4031 if test "$enableval" = yes; then
4032 ac_cv_use_intl='wxUSE_INTL=yes'
4033 else
4034 ac_cv_use_intl='wxUSE_INTL=no'
4035 fi
e6cc62c6 4036
10f2d63a 4037else
e6cc62c6 4038
10f2d63a
VZ
4039 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4040 if test "x$LINE" != x ; then
4041 eval "DEFAULT_$LINE"
4042 else
4043 no_cache=1
4044 fi
4045
4046 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 4047
e6cc62c6 4048fi;
10f2d63a
VZ
4049
4050 eval "$ac_cv_use_intl"
4051 if test "$no_cache" != 1; then
4052 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4053 fi
4054
4055 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
4056 echo "$as_me:$LINENO: result: yes" >&5
4057echo "${ECHO_T}yes" >&6
10f2d63a 4058 else
e6cc62c6
VS
4059 echo "$as_me:$LINENO: result: no" >&5
4060echo "${ECHO_T}no" >&6
10f2d63a 4061 fi
e6cc62c6 4062
10f2d63a 4063
5005acfe 4064 enablestring=
e6cc62c6
VS
4065 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4066echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
4067 no_cache=0
4068 # Check whether --enable-config or --disable-config was given.
4069if test "${enable_config+set}" = set; then
4070 enableval="$enable_config"
e6cc62c6 4071
10f2d63a
VZ
4072 if test "$enableval" = yes; then
4073 ac_cv_use_config='wxUSE_CONFIG=yes'
4074 else
4075 ac_cv_use_config='wxUSE_CONFIG=no'
4076 fi
e6cc62c6 4077
10f2d63a 4078else
e6cc62c6 4079
10f2d63a
VZ
4080 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4081 if test "x$LINE" != x ; then
4082 eval "DEFAULT_$LINE"
4083 else
4084 no_cache=1
4085 fi
4086
4087 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 4088
e6cc62c6 4089fi;
10f2d63a
VZ
4090
4091 eval "$ac_cv_use_config"
4092 if test "$no_cache" != 1; then
4093 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4094 fi
4095
4096 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
4097 echo "$as_me:$LINENO: result: yes" >&5
4098echo "${ECHO_T}yes" >&6
10f2d63a 4099 else
e6cc62c6
VS
4100 echo "$as_me:$LINENO: result: no" >&5
4101echo "${ECHO_T}no" >&6
10f2d63a 4102 fi
e6cc62c6 4103
52127426 4104
8284b0c5 4105
5005acfe 4106 enablestring=
e6cc62c6
VS
4107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4108echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
4109 no_cache=0
4110 # Check whether --enable-protocols or --disable-protocols was given.
4111if test "${enable_protocols+set}" = set; then
4112 enableval="$enable_protocols"
e6cc62c6 4113
a1622950
VZ
4114 if test "$enableval" = yes; then
4115 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4116 else
4117 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4118 fi
e6cc62c6 4119
a1622950 4120else
e6cc62c6 4121
a1622950
VZ
4122 LINE=`grep "wxUSE_PROTOCOL" ${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_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 4130
e6cc62c6 4131fi;
a1622950
VZ
4132
4133 eval "$ac_cv_use_protocols"
4134 if test "$no_cache" != 1; then
4135 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4136 fi
4137
4138 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
4139 echo "$as_me:$LINENO: result: yes" >&5
4140echo "${ECHO_T}yes" >&6
a1622950 4141 else
e6cc62c6
VS
4142 echo "$as_me:$LINENO: result: no" >&5
4143echo "${ECHO_T}no" >&6
a1622950 4144 fi
e6cc62c6 4145
a1622950 4146
5005acfe 4147 enablestring=
e6cc62c6
VS
4148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4149echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
4150 no_cache=0
4151 # Check whether --enable-ftp or --disable-ftp was given.
4152if test "${enable_ftp+set}" = set; then
4153 enableval="$enable_ftp"
e6cc62c6 4154
a1622950
VZ
4155 if test "$enableval" = yes; then
4156 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4157 else
4158 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4159 fi
e6cc62c6 4160
a1622950 4161else
e6cc62c6 4162
a1622950
VZ
4163 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4164 if test "x$LINE" != x ; then
4165 eval "DEFAULT_$LINE"
4166 else
4167 no_cache=1
4168 fi
4169
4170 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 4171
e6cc62c6 4172fi;
a1622950
VZ
4173
4174 eval "$ac_cv_use_ftp"
4175 if test "$no_cache" != 1; then
4176 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4177 fi
4178
4179 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
4180 echo "$as_me:$LINENO: result: yes" >&5
4181echo "${ECHO_T}yes" >&6
a1622950 4182 else
e6cc62c6
VS
4183 echo "$as_me:$LINENO: result: no" >&5
4184echo "${ECHO_T}no" >&6
a1622950 4185 fi
e6cc62c6 4186
a1622950 4187
5005acfe 4188 enablestring=
e6cc62c6
VS
4189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4190echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4191 no_cache=0
4192 # Check whether --enable-http or --disable-http was given.
4193if test "${enable_http+set}" = set; then
4194 enableval="$enable_http"
e6cc62c6 4195
a1622950
VZ
4196 if test "$enableval" = yes; then
4197 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4198 else
4199 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4200 fi
e6cc62c6 4201
a1622950 4202else
e6cc62c6 4203
a1622950
VZ
4204 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4205 if test "x$LINE" != x ; then
4206 eval "DEFAULT_$LINE"
4207 else
4208 no_cache=1
4209 fi
4210
4211 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4212
e6cc62c6 4213fi;
a1622950
VZ
4214
4215 eval "$ac_cv_use_http"
4216 if test "$no_cache" != 1; then
4217 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4218 fi
4219
4220 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4221 echo "$as_me:$LINENO: result: yes" >&5
4222echo "${ECHO_T}yes" >&6
a1622950 4223 else
e6cc62c6
VS
4224 echo "$as_me:$LINENO: result: no" >&5
4225echo "${ECHO_T}no" >&6
a1622950 4226 fi
e6cc62c6 4227
a1622950 4228
5005acfe 4229 enablestring=
e6cc62c6
VS
4230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4231echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4232 no_cache=0
4233 # Check whether --enable-fileproto or --disable-fileproto was given.
4234if test "${enable_fileproto+set}" = set; then
4235 enableval="$enable_fileproto"
e6cc62c6 4236
a1622950
VZ
4237 if test "$enableval" = yes; then
4238 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4239 else
4240 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4241 fi
e6cc62c6 4242
a1622950 4243else
e6cc62c6 4244
a1622950
VZ
4245 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4246 if test "x$LINE" != x ; then
4247 eval "DEFAULT_$LINE"
4248 else
4249 no_cache=1
4250 fi
4251
4252 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4253
e6cc62c6 4254fi;
a1622950
VZ
4255
4256 eval "$ac_cv_use_fileproto"
4257 if test "$no_cache" != 1; then
4258 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4259 fi
4260
4261 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4262 echo "$as_me:$LINENO: result: yes" >&5
4263echo "${ECHO_T}yes" >&6
a1622950 4264 else
e6cc62c6
VS
4265 echo "$as_me:$LINENO: result: no" >&5
4266echo "${ECHO_T}no" >&6
a1622950 4267 fi
e6cc62c6 4268
a1622950 4269
5005acfe 4270 enablestring=
e6cc62c6
VS
4271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4272echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4273 no_cache=0
4274 # Check whether --enable-sockets or --disable-sockets was given.
4275if test "${enable_sockets+set}" = set; then
4276 enableval="$enable_sockets"
e6cc62c6 4277
10f2d63a
VZ
4278 if test "$enableval" = yes; then
4279 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4280 else
4281 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4282 fi
e6cc62c6 4283
10f2d63a 4284else
e6cc62c6 4285
10f2d63a
VZ
4286 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4287 if test "x$LINE" != x ; then
4288 eval "DEFAULT_$LINE"
4289 else
4290 no_cache=1
4291 fi
4292
4293 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4294
e6cc62c6 4295fi;
10f2d63a
VZ
4296
4297 eval "$ac_cv_use_sockets"
4298 if test "$no_cache" != 1; then
4299 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4300 fi
4301
4302 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4303 echo "$as_me:$LINENO: result: yes" >&5
4304echo "${ECHO_T}yes" >&6
10f2d63a 4305 else
e6cc62c6
VS
4306 echo "$as_me:$LINENO: result: no" >&5
4307echo "${ECHO_T}no" >&6
10f2d63a 4308 fi
e6cc62c6 4309
8284b0c5 4310
5005acfe 4311 enablestring=
e6cc62c6
VS
4312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4313echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4314 no_cache=0
4315 # Check whether --enable-ole or --disable-ole was given.
4316if test "${enable_ole+set}" = set; then
4317 enableval="$enable_ole"
e6cc62c6 4318
3bce6687
JS
4319 if test "$enableval" = yes; then
4320 ac_cv_use_ole='wxUSE_OLE=yes'
4321 else
4322 ac_cv_use_ole='wxUSE_OLE=no'
4323 fi
e6cc62c6 4324
3bce6687 4325else
e6cc62c6 4326
3bce6687
JS
4327 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4328 if test "x$LINE" != x ; then
4329 eval "DEFAULT_$LINE"
4330 else
4331 no_cache=1
4332 fi
4333
4334 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4335
e6cc62c6 4336fi;
3bce6687
JS
4337
4338 eval "$ac_cv_use_ole"
4339 if test "$no_cache" != 1; then
4340 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4341 fi
4342
4343 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4344 echo "$as_me:$LINENO: result: yes" >&5
4345echo "${ECHO_T}yes" >&6
3bce6687 4346 else
e6cc62c6
VS
4347 echo "$as_me:$LINENO: result: no" >&5
4348echo "${ECHO_T}no" >&6
3bce6687 4349 fi
e6cc62c6 4350
3bce6687 4351
5005acfe 4352 enablestring=
e6cc62c6
VS
4353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4354echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4355 no_cache=0
4356 # Check whether --enable-dataobj or --disable-dataobj was given.
4357if test "${enable_dataobj+set}" = set; then
4358 enableval="$enable_dataobj"
e6cc62c6 4359
3bce6687
JS
4360 if test "$enableval" = yes; then
4361 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4362 else
4363 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4364 fi
e6cc62c6 4365
3bce6687 4366else
e6cc62c6 4367
3bce6687
JS
4368 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4369 if test "x$LINE" != x ; then
4370 eval "DEFAULT_$LINE"
4371 else
4372 no_cache=1
4373 fi
4374
4375 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4376
e6cc62c6 4377fi;
3bce6687
JS
4378
4379 eval "$ac_cv_use_dataobj"
4380 if test "$no_cache" != 1; then
4381 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4382 fi
4383
4384 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4385 echo "$as_me:$LINENO: result: yes" >&5
4386echo "${ECHO_T}yes" >&6
3bce6687 4387 else
e6cc62c6
VS
4388 echo "$as_me:$LINENO: result: no" >&5
4389echo "${ECHO_T}no" >&6
3bce6687 4390 fi
e6cc62c6 4391
3bce6687 4392
52127426 4393
5005acfe 4394 enablestring=
e6cc62c6
VS
4395 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4396echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4397 no_cache=0
eb4efbdc
VZ
4398 # Check whether --enable-ipc or --disable-ipc was given.
4399if test "${enable_ipc+set}" = set; then
4400 enableval="$enable_ipc"
e6cc62c6 4401
10f2d63a 4402 if test "$enableval" = yes; then
eb4efbdc 4403 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4404 else
eb4efbdc 4405 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4406 fi
e6cc62c6 4407
10f2d63a 4408else
e6cc62c6 4409
eb4efbdc 4410 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4411 if test "x$LINE" != x ; then
4412 eval "DEFAULT_$LINE"
4413 else
4414 no_cache=1
4415 fi
4416
eb4efbdc 4417 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4418
e6cc62c6 4419fi;
10f2d63a 4420
eb4efbdc 4421 eval "$ac_cv_use_ipc"
10f2d63a 4422 if test "$no_cache" != 1; then
eb4efbdc 4423 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4424 fi
4425
eb4efbdc 4426 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4427 echo "$as_me:$LINENO: result: yes" >&5
4428echo "${ECHO_T}yes" >&6
10f2d63a 4429 else
e6cc62c6
VS
4430 echo "$as_me:$LINENO: result: no" >&5
4431echo "${ECHO_T}no" >&6
10f2d63a 4432 fi
e6cc62c6 4433
52127426 4434
8284b0c5 4435
5005acfe 4436 enablestring=
e46d2a18
VS
4437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4438echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4439 no_cache=0
e46d2a18
VS
4440 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4441if test "${enable_apple_ieee+set}" = set; then
4442 enableval="$enable_apple_ieee"
e6cc62c6 4443
10f2d63a 4444 if test "$enableval" = yes; then
e46d2a18 4445 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4446 else
e46d2a18 4447 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4448 fi
e6cc62c6 4449
10f2d63a 4450else
e6cc62c6 4451
e46d2a18 4452 LINE=`grep "wxUSE_APPLE_IEEE" ${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
e46d2a18 4459 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4460
e6cc62c6 4461fi;
10f2d63a 4462
e46d2a18 4463 eval "$ac_cv_use_apple_ieee"
10f2d63a 4464 if test "$no_cache" != 1; then
e46d2a18 4465 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4466 fi
4467
e46d2a18 4468 if test "$wxUSE_APPLE_IEEE" = 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
10f2d63a 4476
5005acfe 4477 enablestring=
e46d2a18
VS
4478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4479echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4480 no_cache=0
e46d2a18
VS
4481 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4482if test "${enable_catch_segvs+set}" = set; then
4483 enableval="$enable_catch_segvs"
e6cc62c6 4484
10f2d63a 4485 if test "$enableval" = yes; then
e46d2a18 4486 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4487 else
e46d2a18 4488 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4489 fi
e6cc62c6 4490
10f2d63a 4491else
e6cc62c6 4492
e46d2a18 4493 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4494 if test "x$LINE" != x ; then
4495 eval "DEFAULT_$LINE"
4496 else
4497 no_cache=1
4498 fi
4499
e46d2a18 4500 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4501
e6cc62c6 4502fi;
10f2d63a 4503
e46d2a18 4504 eval "$ac_cv_use_catch_segvs"
10f2d63a 4505 if test "$no_cache" != 1; then
e46d2a18 4506 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4507 fi
4508
e46d2a18 4509 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4510 echo "$as_me:$LINENO: result: yes" >&5
4511echo "${ECHO_T}yes" >&6
10f2d63a 4512 else
e6cc62c6
VS
4513 echo "$as_me:$LINENO: result: no" >&5
4514echo "${ECHO_T}no" >&6
10f2d63a 4515 fi
e6cc62c6 4516
10f2d63a 4517
5005acfe 4518 enablestring=
e46d2a18
VS
4519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4520echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4521 no_cache=0
e46d2a18
VS
4522 # Check whether --enable-cmdline or --disable-cmdline was given.
4523if test "${enable_cmdline+set}" = set; then
4524 enableval="$enable_cmdline"
e6cc62c6 4525
10f2d63a 4526 if test "$enableval" = yes; then
e46d2a18 4527 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4528 else
e46d2a18 4529 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4530 fi
e6cc62c6 4531
10f2d63a 4532else
e6cc62c6 4533
e46d2a18 4534 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4535 if test "x$LINE" != x ; then
4536 eval "DEFAULT_$LINE"
4537 else
4538 no_cache=1
4539 fi
4540
e46d2a18 4541 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4542
e6cc62c6 4543fi;
10f2d63a 4544
e46d2a18 4545 eval "$ac_cv_use_cmdline"
10f2d63a 4546 if test "$no_cache" != 1; then
e46d2a18 4547 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4548 fi
4549
e46d2a18 4550 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4551 echo "$as_me:$LINENO: result: yes" >&5
4552echo "${ECHO_T}yes" >&6
10f2d63a 4553 else
e6cc62c6
VS
4554 echo "$as_me:$LINENO: result: no" >&5
4555echo "${ECHO_T}no" >&6
10f2d63a 4556 fi
e6cc62c6 4557
10f2d63a 4558
5005acfe 4559 enablestring=
e46d2a18
VS
4560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4561echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4562 no_cache=0
e46d2a18
VS
4563 # Check whether --enable-datetime or --disable-datetime was given.
4564if test "${enable_datetime+set}" = set; then
4565 enableval="$enable_datetime"
e6cc62c6 4566
10f2d63a 4567 if test "$enableval" = yes; then
e46d2a18 4568 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4569 else
e46d2a18 4570 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4571 fi
e6cc62c6 4572
10f2d63a 4573else
e6cc62c6 4574
e46d2a18 4575 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4576 if test "x$LINE" != x ; then
4577 eval "DEFAULT_$LINE"
4578 else
4579 no_cache=1
4580 fi
4581
e46d2a18 4582 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4583
e6cc62c6 4584fi;
10f2d63a 4585
e46d2a18 4586 eval "$ac_cv_use_datetime"
10f2d63a 4587 if test "$no_cache" != 1; then
e46d2a18 4588 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4589 fi
4590
e46d2a18 4591 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4592 echo "$as_me:$LINENO: result: yes" >&5
4593echo "${ECHO_T}yes" >&6
10f2d63a 4594 else
e6cc62c6
VS
4595 echo "$as_me:$LINENO: result: no" >&5
4596echo "${ECHO_T}no" >&6
10f2d63a 4597 fi
e6cc62c6 4598
10f2d63a 4599
5005acfe 4600 enablestring=
e46d2a18
VS
4601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4602echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4603 no_cache=0
e46d2a18
VS
4604 # Check whether --enable-dialupman or --disable-dialupman was given.
4605if test "${enable_dialupman+set}" = set; then
4606 enableval="$enable_dialupman"
e6cc62c6 4607
10f2d63a 4608 if test "$enableval" = yes; then
e46d2a18 4609 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4610 else
e46d2a18 4611 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4612 fi
e6cc62c6 4613
10f2d63a 4614else
e6cc62c6 4615
e46d2a18 4616 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4617 if test "x$LINE" != x ; then
4618 eval "DEFAULT_$LINE"
4619 else
4620 no_cache=1
4621 fi
4622
e46d2a18 4623 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4624
e6cc62c6 4625fi;
10f2d63a 4626
e46d2a18 4627 eval "$ac_cv_use_dialupman"
10f2d63a 4628 if test "$no_cache" != 1; then
e46d2a18 4629 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4630 fi
4631
e46d2a18 4632 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4633 echo "$as_me:$LINENO: result: yes" >&5
4634echo "${ECHO_T}yes" >&6
10f2d63a 4635 else
e6cc62c6
VS
4636 echo "$as_me:$LINENO: result: no" >&5
4637echo "${ECHO_T}no" >&6
10f2d63a 4638 fi
e6cc62c6 4639
10f2d63a 4640
5005acfe 4641 enablestring=
e6cc62c6
VS
4642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4643echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4644 no_cache=0
4645 # Check whether --enable-dynlib or --disable-dynlib was given.
4646if test "${enable_dynlib+set}" = set; then
4647 enableval="$enable_dynlib"
e6cc62c6 4648
10f2d63a
VZ
4649 if test "$enableval" = yes; then
4650 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4651 else
4652 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4653 fi
e6cc62c6 4654
10f2d63a 4655else
e6cc62c6 4656
10f2d63a
VZ
4657 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4658 if test "x$LINE" != x ; then
4659 eval "DEFAULT_$LINE"
4660 else
4661 no_cache=1
4662 fi
4663
4664 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4665
e6cc62c6 4666fi;
10f2d63a
VZ
4667
4668 eval "$ac_cv_use_dynlib"
4669 if test "$no_cache" != 1; then
4670 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4671 fi
4672
4673 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4674 echo "$as_me:$LINENO: result: yes" >&5
4675echo "${ECHO_T}yes" >&6
10f2d63a 4676 else
e6cc62c6
VS
4677 echo "$as_me:$LINENO: result: no" >&5
4678echo "${ECHO_T}no" >&6
10f2d63a 4679 fi
e6cc62c6 4680
10f2d63a 4681
5005acfe 4682 enablestring=
e6cc62c6
VS
4683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4684echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4685 no_cache=0
4686 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4687if test "${enable_dynamicloader+set}" = set; then
4688 enableval="$enable_dynamicloader"
e6cc62c6 4689
0b9ab0bd
RL
4690 if test "$enableval" = yes; then
4691 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4692 else
4693 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4694 fi
e6cc62c6 4695
0b9ab0bd 4696else
e6cc62c6 4697
0b9ab0bd
RL
4698 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4699 if test "x$LINE" != x ; then
4700 eval "DEFAULT_$LINE"
4701 else
4702 no_cache=1
4703 fi
4704
4705 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4706
e6cc62c6 4707fi;
0b9ab0bd
RL
4708
4709 eval "$ac_cv_use_dynamicloader"
4710 if test "$no_cache" != 1; then
4711 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4712 fi
4713
4714 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4715 echo "$as_me:$LINENO: result: yes" >&5
4716echo "${ECHO_T}yes" >&6
0b9ab0bd 4717 else
e6cc62c6
VS
4718 echo "$as_me:$LINENO: result: no" >&5
4719echo "${ECHO_T}no" >&6
0b9ab0bd 4720 fi
e6cc62c6 4721
0b9ab0bd 4722
5005acfe 4723 enablestring=
e46d2a18
VS
4724 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4725echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4726 no_cache=0
e46d2a18
VS
4727 # Check whether --enable-exceptions or --disable-exceptions was given.
4728if test "${enable_exceptions+set}" = set; then
4729 enableval="$enable_exceptions"
e6cc62c6 4730
10f2d63a 4731 if test "$enableval" = yes; then
e46d2a18 4732 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4733 else
e46d2a18 4734 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4735 fi
e6cc62c6 4736
10f2d63a 4737else
e6cc62c6 4738
e46d2a18 4739 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
e46d2a18 4746 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4747
e6cc62c6 4748fi;
10f2d63a 4749
e46d2a18 4750 eval "$ac_cv_use_exceptions"
10f2d63a 4751 if test "$no_cache" != 1; then
e46d2a18 4752 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4753 fi
4754
e46d2a18 4755 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4756 echo "$as_me:$LINENO: result: yes" >&5
4757echo "${ECHO_T}yes" >&6
10f2d63a 4758 else
e6cc62c6
VS
4759 echo "$as_me:$LINENO: result: no" >&5
4760echo "${ECHO_T}no" >&6
10f2d63a 4761 fi
e6cc62c6 4762
10f2d63a 4763
5005acfe 4764 enablestring=
e46d2a18
VS
4765 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4766echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4767 no_cache=0
e46d2a18
VS
4768 # Check whether --enable-ffile or --disable-ffile was given.
4769if test "${enable_ffile+set}" = set; then
4770 enableval="$enable_ffile"
e6cc62c6 4771
e8f65ba6 4772 if test "$enableval" = yes; then
e46d2a18 4773 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4774 else
e46d2a18 4775 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4776 fi
e6cc62c6 4777
e8f65ba6 4778else
e6cc62c6 4779
e46d2a18 4780 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4781 if test "x$LINE" != x ; then
4782 eval "DEFAULT_$LINE"
4783 else
4784 no_cache=1
4785 fi
4786
e46d2a18 4787 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4788
e6cc62c6 4789fi;
e8f65ba6 4790
e46d2a18 4791 eval "$ac_cv_use_ffile"
e8f65ba6 4792 if test "$no_cache" != 1; then
e46d2a18 4793 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4794 fi
4795
e46d2a18 4796 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4797 echo "$as_me:$LINENO: result: yes" >&5
4798echo "${ECHO_T}yes" >&6
e8f65ba6 4799 else
e6cc62c6
VS
4800 echo "$as_me:$LINENO: result: no" >&5
4801echo "${ECHO_T}no" >&6
e8f65ba6 4802 fi
e6cc62c6 4803
e8f65ba6 4804
5005acfe 4805 enablestring=
e46d2a18
VS
4806 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4807echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4808 no_cache=0
e46d2a18
VS
4809 # Check whether --enable-file or --disable-file was given.
4810if test "${enable_file+set}" = set; then
4811 enableval="$enable_file"
e6cc62c6 4812
10f2d63a 4813 if test "$enableval" = yes; then
e46d2a18 4814 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4815 else
e46d2a18 4816 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4817 fi
e6cc62c6 4818
10f2d63a 4819else
e6cc62c6 4820
e46d2a18 4821 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4822 if test "x$LINE" != x ; then
4823 eval "DEFAULT_$LINE"
4824 else
4825 no_cache=1
4826 fi
4827
e46d2a18 4828 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4829
e6cc62c6 4830fi;
10f2d63a 4831
e46d2a18 4832 eval "$ac_cv_use_file"
10f2d63a 4833 if test "$no_cache" != 1; then
e46d2a18 4834 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4835 fi
4836
e46d2a18 4837 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4838 echo "$as_me:$LINENO: result: yes" >&5
4839echo "${ECHO_T}yes" >&6
10f2d63a 4840 else
e6cc62c6
VS
4841 echo "$as_me:$LINENO: result: no" >&5
4842echo "${ECHO_T}no" >&6
10f2d63a 4843 fi
e6cc62c6 4844
10f2d63a 4845
5005acfe 4846 enablestring=
e46d2a18
VS
4847 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4848echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4849 no_cache=0
e46d2a18
VS
4850 # Check whether --enable-filesystem or --disable-filesystem was given.
4851if test "${enable_filesystem+set}" = set; then
4852 enableval="$enable_filesystem"
e6cc62c6 4853
10f2d63a 4854 if test "$enableval" = yes; then
e46d2a18 4855 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4856 else
e46d2a18 4857 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4858 fi
e6cc62c6 4859
10f2d63a 4860else
e6cc62c6 4861
e46d2a18 4862 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4863 if test "x$LINE" != x ; then
4864 eval "DEFAULT_$LINE"
4865 else
4866 no_cache=1
4867 fi
4868
e46d2a18 4869 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4870
e6cc62c6 4871fi;
10f2d63a 4872
e46d2a18 4873 eval "$ac_cv_use_filesystem"
10f2d63a 4874 if test "$no_cache" != 1; then
e46d2a18 4875 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4876 fi
4877
e46d2a18 4878 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4879 echo "$as_me:$LINENO: result: yes" >&5
4880echo "${ECHO_T}yes" >&6
10f2d63a 4881 else
e6cc62c6
VS
4882 echo "$as_me:$LINENO: result: no" >&5
4883echo "${ECHO_T}no" >&6
10f2d63a 4884 fi
e6cc62c6 4885
10f2d63a 4886
5005acfe 4887 enablestring=
e46d2a18
VS
4888 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4889echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4890 no_cache=0
e46d2a18
VS
4891 # Check whether --enable-fontmap or --disable-fontmap was given.
4892if test "${enable_fontmap+set}" = set; then
4893 enableval="$enable_fontmap"
e6cc62c6 4894
10f2d63a 4895 if test "$enableval" = yes; then
e46d2a18 4896 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4897 else
e46d2a18 4898 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4899 fi
e6cc62c6 4900
10f2d63a 4901else
e6cc62c6 4902
e46d2a18 4903 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4904 if test "x$LINE" != x ; then
4905 eval "DEFAULT_$LINE"
4906 else
4907 no_cache=1
4908 fi
4909
e46d2a18 4910 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4911
e6cc62c6 4912fi;
10f2d63a 4913
e46d2a18 4914 eval "$ac_cv_use_fontmap"
10f2d63a 4915 if test "$no_cache" != 1; then
e46d2a18 4916 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4917 fi
4918
e46d2a18 4919 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4920 echo "$as_me:$LINENO: result: yes" >&5
4921echo "${ECHO_T}yes" >&6
10f2d63a 4922 else
e6cc62c6
VS
4923 echo "$as_me:$LINENO: result: no" >&5
4924echo "${ECHO_T}no" >&6
10f2d63a 4925 fi
e6cc62c6 4926
10f2d63a 4927
5005acfe 4928 enablestring=
e46d2a18
VS
4929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4930echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4931 no_cache=0
e46d2a18
VS
4932 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4933if test "${enable_fs_inet+set}" = set; then
4934 enableval="$enable_fs_inet"
e6cc62c6 4935
10f2d63a 4936 if test "$enableval" = yes; then
e46d2a18 4937 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4938 else
e46d2a18 4939 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4940 fi
e6cc62c6 4941
10f2d63a 4942else
e6cc62c6 4943
e46d2a18 4944 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4945 if test "x$LINE" != x ; then
4946 eval "DEFAULT_$LINE"
4947 else
4948 no_cache=1
4949 fi
4950
e46d2a18 4951 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4952
e6cc62c6 4953fi;
10f2d63a 4954
e46d2a18 4955 eval "$ac_cv_use_fs_inet"
10f2d63a 4956 if test "$no_cache" != 1; then
e46d2a18 4957 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4958 fi
4959
e46d2a18 4960 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4961 echo "$as_me:$LINENO: result: yes" >&5
4962echo "${ECHO_T}yes" >&6
10f2d63a 4963 else
e6cc62c6
VS
4964 echo "$as_me:$LINENO: result: no" >&5
4965echo "${ECHO_T}no" >&6
10f2d63a 4966 fi
e6cc62c6 4967
10f2d63a 4968
5005acfe 4969 enablestring=
e46d2a18
VS
4970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4971echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4972 no_cache=0
e46d2a18
VS
4973 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4974if test "${enable_fs_zip+set}" = set; then
4975 enableval="$enable_fs_zip"
e6cc62c6 4976
a3a584a7 4977 if test "$enableval" = yes; then
e46d2a18 4978 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4979 else
e46d2a18 4980 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4981 fi
e6cc62c6 4982
a3a584a7 4983else
e6cc62c6 4984
e46d2a18 4985 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4986 if test "x$LINE" != x ; then
4987 eval "DEFAULT_$LINE"
4988 else
4989 no_cache=1
4990 fi
4991
e46d2a18 4992 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4993
e6cc62c6 4994fi;
a3a584a7 4995
e46d2a18 4996 eval "$ac_cv_use_fs_zip"
a3a584a7 4997 if test "$no_cache" != 1; then
e46d2a18 4998 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4999 fi
5000
e46d2a18 5001 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
5002 echo "$as_me:$LINENO: result: yes" >&5
5003echo "${ECHO_T}yes" >&6
a3a584a7 5004 else
e6cc62c6
VS
5005 echo "$as_me:$LINENO: result: no" >&5
5006echo "${ECHO_T}no" >&6
a3a584a7 5007 fi
e6cc62c6 5008
a3a584a7 5009
5005acfe 5010 enablestring=
e46d2a18
VS
5011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
5012echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 5013 no_cache=0
e46d2a18
VS
5014 # Check whether --enable-geometry or --disable-geometry was given.
5015if test "${enable_geometry+set}" = set; then
5016 enableval="$enable_geometry"
e6cc62c6 5017
10f2d63a 5018 if test "$enableval" = yes; then
e46d2a18 5019 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 5020 else
e46d2a18 5021 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 5022 fi
e6cc62c6 5023
10f2d63a 5024else
e6cc62c6 5025
e46d2a18 5026 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
5027 if test "x$LINE" != x ; then
5028 eval "DEFAULT_$LINE"
5029 else
5030 no_cache=1
5031 fi
5032
e46d2a18 5033 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 5034
e6cc62c6 5035fi;
10f2d63a 5036
e46d2a18 5037 eval "$ac_cv_use_geometry"
10f2d63a 5038 if test "$no_cache" != 1; then
e46d2a18 5039 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5040 fi
5041
e46d2a18 5042 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
5043 echo "$as_me:$LINENO: result: yes" >&5
5044echo "${ECHO_T}yes" >&6
10f2d63a 5045 else
e6cc62c6
VS
5046 echo "$as_me:$LINENO: result: no" >&5
5047echo "${ECHO_T}no" >&6
10f2d63a 5048 fi
e6cc62c6 5049
10f2d63a 5050
5005acfe 5051 enablestring=
e46d2a18
VS
5052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5053echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 5054 no_cache=0
e46d2a18
VS
5055 # Check whether --enable-log or --disable-log was given.
5056if test "${enable_log+set}" = set; then
5057 enableval="$enable_log"
e6cc62c6 5058
10f2d63a 5059 if test "$enableval" = yes; then
e46d2a18 5060 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 5061 else
e46d2a18 5062 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 5063 fi
e6cc62c6 5064
10f2d63a 5065else
e6cc62c6 5066
e46d2a18 5067 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
5068 if test "x$LINE" != x ; then
5069 eval "DEFAULT_$LINE"
5070 else
5071 no_cache=1
5072 fi
5073
e46d2a18 5074 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 5075
e6cc62c6 5076fi;
10f2d63a 5077
e46d2a18 5078 eval "$ac_cv_use_log"
10f2d63a 5079 if test "$no_cache" != 1; then
e46d2a18 5080 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5081 fi
5082
e46d2a18 5083 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
5084 echo "$as_me:$LINENO: result: yes" >&5
5085echo "${ECHO_T}yes" >&6
10f2d63a 5086 else
e6cc62c6
VS
5087 echo "$as_me:$LINENO: result: no" >&5
5088echo "${ECHO_T}no" >&6
10f2d63a 5089 fi
e6cc62c6 5090
10f2d63a 5091
5005acfe 5092 enablestring=
e46d2a18
VS
5093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5094echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 5095 no_cache=0
e46d2a18
VS
5096 # Check whether --enable-longlong or --disable-longlong was given.
5097if test "${enable_longlong+set}" = set; then
5098 enableval="$enable_longlong"
e6cc62c6 5099
1e6feb95 5100 if test "$enableval" = yes; then
e46d2a18 5101 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 5102 else
e46d2a18 5103 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 5104 fi
e6cc62c6 5105
1e6feb95 5106else
e6cc62c6 5107
e46d2a18 5108 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
5109 if test "x$LINE" != x ; then
5110 eval "DEFAULT_$LINE"
5111 else
5112 no_cache=1
5113 fi
5114
e46d2a18 5115 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 5116
e6cc62c6 5117fi;
1e6feb95 5118
e46d2a18 5119 eval "$ac_cv_use_longlong"
1e6feb95 5120 if test "$no_cache" != 1; then
e46d2a18 5121 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5122 fi
5123
e46d2a18
VS
5124 if test "$wxUSE_LONGLONG" = yes; then
5125 echo "$as_me:$LINENO: result: yes" >&5
5126echo "${ECHO_T}yes" >&6
5127 else
5128 echo "$as_me:$LINENO: result: no" >&5
5129echo "${ECHO_T}no" >&6
5130 fi
5131
5132
5133 enablestring=
5134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5135echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5136 no_cache=0
5137 # Check whether --enable-mimetype or --disable-mimetype was given.
5138if test "${enable_mimetype+set}" = set; then
5139 enableval="$enable_mimetype"
5140
5141 if test "$enableval" = yes; then
5142 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5143 else
5144 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5145 fi
5146
5147else
5148
5149 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5150 if test "x$LINE" != x ; then
5151 eval "DEFAULT_$LINE"
5152 else
5153 no_cache=1
5154 fi
5155
5156 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5157
5158fi;
5159
5160 eval "$ac_cv_use_mimetype"
5161 if test "$no_cache" != 1; then
5162 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5163 fi
5164
5165 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5166 echo "$as_me:$LINENO: result: yes" >&5
5167echo "${ECHO_T}yes" >&6
1e6feb95 5168 else
e6cc62c6
VS
5169 echo "$as_me:$LINENO: result: no" >&5
5170echo "${ECHO_T}no" >&6
1e6feb95 5171 fi
e6cc62c6 5172
1e6feb95 5173
5005acfe 5174 enablestring=
e6cc62c6
VS
5175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5176echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5177 no_cache=0
5178 # Check whether --enable-mslu or --disable-mslu was given.
5179if test "${enable_mslu+set}" = set; then
5180 enableval="$enable_mslu"
e6cc62c6 5181
a72a4bfa
VS
5182 if test "$enableval" = yes; then
5183 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5184 else
5185 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5186 fi
e6cc62c6 5187
a72a4bfa 5188else
e6cc62c6 5189
a72a4bfa
VS
5190 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5191 if test "x$LINE" != x ; then
5192 eval "DEFAULT_$LINE"
5193 else
5194 no_cache=1
5195 fi
5196
5197 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5198
e6cc62c6 5199fi;
a72a4bfa
VS
5200
5201 eval "$ac_cv_use_mslu"
5202 if test "$no_cache" != 1; then
5203 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5204 fi
5205
5206 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5207 echo "$as_me:$LINENO: result: yes" >&5
5208echo "${ECHO_T}yes" >&6
a72a4bfa 5209 else
e6cc62c6
VS
5210 echo "$as_me:$LINENO: result: no" >&5
5211echo "${ECHO_T}no" >&6
a72a4bfa 5212 fi
e6cc62c6 5213
a72a4bfa 5214
5005acfe 5215 enablestring=
e46d2a18
VS
5216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5217echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5218 no_cache=0
e46d2a18
VS
5219 # Check whether --enable-snglinst or --disable-snglinst was given.
5220if test "${enable_snglinst+set}" = set; then
5221 enableval="$enable_snglinst"
e6cc62c6 5222
1e6feb95 5223 if test "$enableval" = yes; then
e46d2a18 5224 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5225 else
e46d2a18 5226 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5227 fi
e6cc62c6 5228
10f2d63a 5229else
e6cc62c6 5230
e46d2a18 5231 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5232 if test "x$LINE" != x ; then
5233 eval "DEFAULT_$LINE"
5234 else
5235 no_cache=1
5236 fi
5237
e46d2a18 5238 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5239
e6cc62c6 5240fi;
10f2d63a 5241
e46d2a18 5242 eval "$ac_cv_use_snglinst"
10f2d63a 5243 if test "$no_cache" != 1; then
e46d2a18 5244 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5245 fi
5246
e46d2a18
VS
5247 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5248 echo "$as_me:$LINENO: result: yes" >&5
5249echo "${ECHO_T}yes" >&6
5250 else
5251 echo "$as_me:$LINENO: result: no" >&5
5252echo "${ECHO_T}no" >&6
5253 fi
5254
5255
5256 enablestring=
5257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5258echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5259 no_cache=0
5260 # Check whether --enable-streams or --disable-streams was given.
5261if test "${enable_streams+set}" = set; then
5262 enableval="$enable_streams"
5263
5264 if test "$enableval" = yes; then
5265 ac_cv_use_streams='wxUSE_STREAMS=yes'
5266 else
5267 ac_cv_use_streams='wxUSE_STREAMS=no'
5268 fi
5269
5270else
5271
5272 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5273 if test "x$LINE" != x ; then
5274 eval "DEFAULT_$LINE"
5275 else
5276 no_cache=1
5277 fi
5278
5279 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5280
5281fi;
5282
5283 eval "$ac_cv_use_streams"
5284 if test "$no_cache" != 1; then
5285 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5286 fi
5287
5288 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5289 echo "$as_me:$LINENO: result: yes" >&5
5290echo "${ECHO_T}yes" >&6
10f2d63a 5291 else
e6cc62c6
VS
5292 echo "$as_me:$LINENO: result: no" >&5
5293echo "${ECHO_T}no" >&6
10f2d63a 5294 fi
e6cc62c6 5295
10f2d63a 5296
5005acfe 5297 enablestring=
e6cc62c6
VS
5298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5299echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5300 no_cache=0
5301 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5302if test "${enable_std_iostreams+set}" = set; then
5303 enableval="$enable_std_iostreams"
e6cc62c6 5304
10f2d63a
VZ
5305 if test "$enableval" = yes; then
5306 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5307 else
5308 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5309 fi
e6cc62c6 5310
10f2d63a 5311else
e6cc62c6 5312
10f2d63a
VZ
5313 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5314 if test "x$LINE" != x ; then
5315 eval "DEFAULT_$LINE"
5316 else
5317 no_cache=1
5318 fi
5319
5320 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5321
e6cc62c6 5322fi;
10f2d63a
VZ
5323
5324 eval "$ac_cv_use_std_iostreams"
5325 if test "$no_cache" != 1; then
5326 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5327 fi
5328
5329 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5330 echo "$as_me:$LINENO: result: yes" >&5
5331echo "${ECHO_T}yes" >&6
10f2d63a 5332 else
e6cc62c6
VS
5333 echo "$as_me:$LINENO: result: no" >&5
5334echo "${ECHO_T}no" >&6
10f2d63a 5335 fi
e6cc62c6 5336
10f2d63a 5337
5005acfe 5338 enablestring=
e46d2a18
VS
5339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5340echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5341 no_cache=0
e46d2a18
VS
5342 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5343if test "${enable_stopwatch+set}" = set; then
5344 enableval="$enable_stopwatch"
e6cc62c6 5345
24528b0c 5346 if test "$enableval" = yes; then
e46d2a18 5347 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5348 else
e46d2a18 5349 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5350 fi
e6cc62c6 5351
24528b0c 5352else
e6cc62c6 5353
e46d2a18 5354 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5355 if test "x$LINE" != x ; then
5356 eval "DEFAULT_$LINE"
5357 else
5358 no_cache=1
5359 fi
5360
e46d2a18 5361 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5362
e6cc62c6 5363fi;
24528b0c 5364
e46d2a18 5365 eval "$ac_cv_use_stopwatch"
24528b0c 5366 if test "$no_cache" != 1; then
e46d2a18 5367 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5368 fi
5369
e46d2a18 5370 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5371 echo "$as_me:$LINENO: result: yes" >&5
5372echo "${ECHO_T}yes" >&6
24528b0c 5373 else
e6cc62c6
VS
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
24528b0c 5376 fi
e6cc62c6 5377
24528b0c 5378
5005acfe 5379 enablestring=
e46d2a18
VS
5380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5381echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5382 no_cache=0
e46d2a18
VS
5383 # Check whether --enable-system_options or --disable-system_options was given.
5384if test "${enable_system_options+set}" = set; then
5385 enableval="$enable_system_options"
e6cc62c6 5386
10f2d63a 5387 if test "$enableval" = yes; then
e46d2a18 5388 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5389 else
e46d2a18 5390 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5391 fi
e6cc62c6 5392
10f2d63a 5393else
e6cc62c6 5394
e46d2a18 5395 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5396 if test "x$LINE" != x ; then
5397 eval "DEFAULT_$LINE"
5398 else
5399 no_cache=1
5400 fi
5401
e46d2a18 5402 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5403
e6cc62c6 5404fi;
10f2d63a 5405
e46d2a18 5406 eval "$ac_cv_use_system_options"
10f2d63a 5407 if test "$no_cache" != 1; then
e46d2a18 5408 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5409 fi
5410
e46d2a18 5411 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5412 echo "$as_me:$LINENO: result: yes" >&5
5413echo "${ECHO_T}yes" >&6
10f2d63a 5414 else
e6cc62c6
VS
5415 echo "$as_me:$LINENO: result: no" >&5
5416echo "${ECHO_T}no" >&6
10f2d63a 5417 fi
e6cc62c6 5418
10f2d63a 5419
5005acfe 5420 enablestring=
e46d2a18
VS
5421 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5422echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5423 no_cache=0
e46d2a18
VS
5424 # Check whether --enable-textbuf or --disable-textbuf was given.
5425if test "${enable_textbuf+set}" = set; then
5426 enableval="$enable_textbuf"
e6cc62c6 5427
10f2d63a 5428 if test "$enableval" = yes; then
e46d2a18 5429 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5430 else
e46d2a18 5431 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5432 fi
e6cc62c6 5433
10f2d63a 5434else
e6cc62c6 5435
e46d2a18 5436 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5437 if test "x$LINE" != x ; then
5438 eval "DEFAULT_$LINE"
5439 else
5440 no_cache=1
5441 fi
5442
e46d2a18 5443 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5444
e6cc62c6 5445fi;
10f2d63a 5446
e46d2a18 5447 eval "$ac_cv_use_textbuf"
10f2d63a 5448 if test "$no_cache" != 1; then
e46d2a18 5449 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5450 fi
5451
e46d2a18 5452 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5453 echo "$as_me:$LINENO: result: yes" >&5
5454echo "${ECHO_T}yes" >&6
10f2d63a 5455 else
e6cc62c6
VS
5456 echo "$as_me:$LINENO: result: no" >&5
5457echo "${ECHO_T}no" >&6
10f2d63a 5458 fi
e6cc62c6 5459
10f2d63a 5460
5005acfe 5461 enablestring=
e46d2a18
VS
5462 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5463echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5464 no_cache=0
e46d2a18
VS
5465 # Check whether --enable-textfile or --disable-textfile was given.
5466if test "${enable_textfile+set}" = set; then
5467 enableval="$enable_textfile"
e6cc62c6 5468
10f2d63a 5469 if test "$enableval" = yes; then
e46d2a18 5470 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5471 else
e46d2a18 5472 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5473 fi
e6cc62c6 5474
10f2d63a 5475else
e6cc62c6 5476
e46d2a18 5477 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5478 if test "x$LINE" != x ; then
5479 eval "DEFAULT_$LINE"
5480 else
5481 no_cache=1
5482 fi
5483
e46d2a18 5484 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5485
e6cc62c6 5486fi;
10f2d63a 5487
e46d2a18 5488 eval "$ac_cv_use_textfile"
10f2d63a 5489 if test "$no_cache" != 1; then
e46d2a18 5490 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5491 fi
5492
e46d2a18 5493 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5494 echo "$as_me:$LINENO: result: yes" >&5
5495echo "${ECHO_T}yes" >&6
10f2d63a 5496 else
e6cc62c6
VS
5497 echo "$as_me:$LINENO: result: no" >&5
5498echo "${ECHO_T}no" >&6
10f2d63a 5499 fi
e6cc62c6 5500
8284b0c5 5501
5005acfe 5502 enablestring=
e46d2a18
VS
5503 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5504echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5505 no_cache=0
e46d2a18
VS
5506 # Check whether --enable-timer or --disable-timer was given.
5507if test "${enable_timer+set}" = set; then
5508 enableval="$enable_timer"
e6cc62c6 5509
eb4efbdc 5510 if test "$enableval" = yes; then
e46d2a18 5511 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5512 else
e46d2a18 5513 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5514 fi
e6cc62c6 5515
eb4efbdc 5516else
e6cc62c6 5517
e46d2a18 5518 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5519 if test "x$LINE" != x ; then
5520 eval "DEFAULT_$LINE"
5521 else
5522 no_cache=1
5523 fi
5524
e46d2a18 5525 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5526
e6cc62c6 5527fi;
eb4efbdc 5528
e46d2a18 5529 eval "$ac_cv_use_timer"
eb4efbdc 5530 if test "$no_cache" != 1; then
e46d2a18 5531 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5532 fi
5533
e46d2a18 5534 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5535 echo "$as_me:$LINENO: result: yes" >&5
5536echo "${ECHO_T}yes" >&6
eb4efbdc 5537 else
e6cc62c6
VS
5538 echo "$as_me:$LINENO: result: no" >&5
5539echo "${ECHO_T}no" >&6
eb4efbdc 5540 fi
e6cc62c6 5541
eb4efbdc 5542
5005acfe 5543 enablestring=
e46d2a18
VS
5544 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5545echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5546 no_cache=0
e46d2a18
VS
5547 # Check whether --enable-unicode or --disable-unicode was given.
5548if test "${enable_unicode+set}" = set; then
5549 enableval="$enable_unicode"
e6cc62c6 5550
4f3c5f06 5551 if test "$enableval" = yes; then
e46d2a18 5552 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5553 else
e46d2a18 5554 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5555 fi
e6cc62c6 5556
4f3c5f06 5557else
e6cc62c6 5558
e46d2a18 5559 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5560 if test "x$LINE" != x ; then
5561 eval "DEFAULT_$LINE"
5562 else
5563 no_cache=1
5564 fi
5565
e46d2a18 5566 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5567
e6cc62c6 5568fi;
4f3c5f06 5569
e46d2a18 5570 eval "$ac_cv_use_unicode"
4f3c5f06 5571 if test "$no_cache" != 1; then
e46d2a18 5572 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5573 fi
5574
e46d2a18 5575 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5576 echo "$as_me:$LINENO: result: yes" >&5
5577echo "${ECHO_T}yes" >&6
4f3c5f06 5578 else
e6cc62c6
VS
5579 echo "$as_me:$LINENO: result: no" >&5
5580echo "${ECHO_T}no" >&6
4f3c5f06 5581 fi
e6cc62c6 5582
52127426 5583
e46d2a18 5584 enablestring=
002ed9af
VS
5585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5586echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
e46d2a18 5587 no_cache=0
002ed9af
VS
5588 # Check whether --enable-sound or --disable-sound was given.
5589if test "${enable_sound+set}" = set; then
5590 enableval="$enable_sound"
e46d2a18
VS
5591
5592 if test "$enableval" = yes; then
002ed9af 5593 ac_cv_use_sound='wxUSE_SOUND=yes'
e46d2a18 5594 else
002ed9af 5595 ac_cv_use_sound='wxUSE_SOUND=no'
e46d2a18
VS
5596 fi
5597
5598else
5599
002ed9af 5600 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
e46d2a18
VS
5601 if test "x$LINE" != x ; then
5602 eval "DEFAULT_$LINE"
5603 else
5604 no_cache=1
5605 fi
5606
002ed9af 5607 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
e46d2a18
VS
5608
5609fi;
5610
002ed9af 5611 eval "$ac_cv_use_sound"
e46d2a18 5612 if test "$no_cache" != 1; then
002ed9af 5613 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
e46d2a18
VS
5614 fi
5615
002ed9af 5616 if test "$wxUSE_SOUND" = yes; then
e46d2a18
VS
5617 echo "$as_me:$LINENO: result: yes" >&5
5618echo "${ECHO_T}yes" >&6
5619 else
5620 echo "$as_me:$LINENO: result: no" >&5
5621echo "${ECHO_T}no" >&6
5622 fi
5623
8284b0c5 5624
5005acfe 5625 enablestring=
e46d2a18
VS
5626 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5627echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5628 no_cache=0
e46d2a18
VS
5629 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5630if test "${enable_wxprintfv+set}" = set; then
5631 enableval="$enable_wxprintfv"
e6cc62c6 5632
1e6feb95 5633 if test "$enableval" = yes; then
e46d2a18 5634 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5635 else
e46d2a18 5636 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5637 fi
e6cc62c6 5638
1e6feb95 5639else
e6cc62c6 5640
e46d2a18 5641 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5642 if test "x$LINE" != x ; then
5643 eval "DEFAULT_$LINE"
5644 else
5645 no_cache=1
5646 fi
5647
e46d2a18 5648 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5649
e6cc62c6 5650fi;
1e6feb95 5651
e46d2a18 5652 eval "$ac_cv_use_wxprintfv"
1e6feb95 5653 if test "$no_cache" != 1; then
e46d2a18 5654 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5655 fi
5656
e46d2a18 5657 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5658 echo "$as_me:$LINENO: result: yes" >&5
5659echo "${ECHO_T}yes" >&6
1e6feb95 5660 else
e6cc62c6
VS
5661 echo "$as_me:$LINENO: result: no" >&5
5662echo "${ECHO_T}no" >&6
1e6feb95 5663 fi
e6cc62c6 5664
1e6feb95 5665
5005acfe 5666 enablestring=
e46d2a18
VS
5667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5668echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5669 no_cache=0
e46d2a18
VS
5670 # Check whether --enable-zipstream or --disable-zipstream was given.
5671if test "${enable_zipstream+set}" = set; then
5672 enableval="$enable_zipstream"
e6cc62c6 5673
3e44f09d 5674 if test "$enableval" = yes; then
e46d2a18 5675 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5676 else
e46d2a18 5677 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5678 fi
e6cc62c6 5679
3e44f09d 5680else
e6cc62c6 5681
e46d2a18 5682 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5683 if test "x$LINE" != x ; then
5684 eval "DEFAULT_$LINE"
5685 else
5686 no_cache=1
5687 fi
5688
e46d2a18 5689 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5690
e6cc62c6 5691fi;
3e44f09d 5692
e46d2a18 5693 eval "$ac_cv_use_zipstream"
3e44f09d 5694 if test "$no_cache" != 1; then
e46d2a18 5695 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5696 fi
5697
e46d2a18 5698 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5699 echo "$as_me:$LINENO: result: yes" >&5
5700echo "${ECHO_T}yes" >&6
3e44f09d 5701 else
e6cc62c6
VS
5702 echo "$as_me:$LINENO: result: no" >&5
5703echo "${ECHO_T}no" >&6
3e44f09d 5704 fi
e6cc62c6 5705
8284b0c5 5706
7015ef3a
VZ
5707 enablestring=
5708 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5709echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5710 no_cache=0
5711 # Check whether --enable-gzstream or --disable-gzstream was given.
5712if test "${enable_gzstream+set}" = set; then
5713 enableval="$enable_gzstream"
5714
5715 if test "$enableval" = yes; then
5716 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5717 else
5718 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5719 fi
5720
5721else
5722
5723 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5724 if test "x$LINE" != x ; then
5725 eval "DEFAULT_$LINE"
5726 else
5727 no_cache=1
5728 fi
5729
5730 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5731
5732fi;
5733
5734 eval "$ac_cv_use_gzstream"
5735 if test "$no_cache" != 1; then
5736 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5737 fi
5738
5739 if test "$wxUSE_GZSTREAM" = yes; then
5740 echo "$as_me:$LINENO: result: yes" >&5
5741echo "${ECHO_T}yes" >&6
5742 else
5743 echo "$as_me:$LINENO: result: no" >&5
5744echo "${ECHO_T}no" >&6
5745 fi
5746
5747
52127426 5748
5005acfe 5749 enablestring=
e6cc62c6
VS
5750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5751echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5752 no_cache=0
5753 # Check whether --enable-url or --disable-url was given.
5754if test "${enable_url+set}" = set; then
5755 enableval="$enable_url"
e6cc62c6 5756
4cdb0ab0
VS
5757 if test "$enableval" = yes; then
5758 ac_cv_use_url='wxUSE_URL=yes'
5759 else
5760 ac_cv_use_url='wxUSE_URL=no'
5761 fi
e6cc62c6 5762
4cdb0ab0 5763else
e6cc62c6 5764
4cdb0ab0
VS
5765 LINE=`grep "wxUSE_URL" ${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_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5773
e6cc62c6 5774fi;
4cdb0ab0
VS
5775
5776 eval "$ac_cv_use_url"
5777 if test "$no_cache" != 1; then
5778 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5779 fi
5780
5781 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5782 echo "$as_me:$LINENO: result: yes" >&5
5783echo "${ECHO_T}yes" >&6
4cdb0ab0 5784 else
e6cc62c6
VS
5785 echo "$as_me:$LINENO: result: no" >&5
5786echo "${ECHO_T}no" >&6
4cdb0ab0 5787 fi
e6cc62c6 5788
4cdb0ab0 5789
5005acfe 5790 enablestring=
e6cc62c6
VS
5791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5792echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5793 no_cache=0
5794 # Check whether --enable-protocol or --disable-protocol was given.
5795if test "${enable_protocol+set}" = set; then
5796 enableval="$enable_protocol"
e6cc62c6 5797
4cdb0ab0
VS
5798 if test "$enableval" = yes; then
5799 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5800 else
5801 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5802 fi
e6cc62c6 5803
4cdb0ab0 5804else
e6cc62c6 5805
4cdb0ab0
VS
5806 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5807 if test "x$LINE" != x ; then
5808 eval "DEFAULT_$LINE"
5809 else
5810 no_cache=1
5811 fi
5812
5813 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5814
e6cc62c6 5815fi;
4cdb0ab0
VS
5816
5817 eval "$ac_cv_use_protocol"
5818 if test "$no_cache" != 1; then
5819 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5820 fi
5821
5822 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5823 echo "$as_me:$LINENO: result: yes" >&5
5824echo "${ECHO_T}yes" >&6
4cdb0ab0 5825 else
e6cc62c6
VS
5826 echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6
4cdb0ab0 5828 fi
e6cc62c6 5829
4cdb0ab0 5830
5005acfe 5831 enablestring=
e6cc62c6
VS
5832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5833echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5834 no_cache=0
5835 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5836if test "${enable_protocol_http+set}" = set; then
5837 enableval="$enable_protocol_http"
e6cc62c6 5838
4cdb0ab0
VS
5839 if test "$enableval" = yes; then
5840 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5841 else
5842 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5843 fi
e6cc62c6 5844
4cdb0ab0 5845else
e6cc62c6 5846
4cdb0ab0
VS
5847 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5848 if test "x$LINE" != x ; then
5849 eval "DEFAULT_$LINE"
5850 else
5851 no_cache=1
5852 fi
5853
5854 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5855
e6cc62c6 5856fi;
4cdb0ab0
VS
5857
5858 eval "$ac_cv_use_protocol_http"
5859 if test "$no_cache" != 1; then
5860 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5861 fi
5862
5863 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5864 echo "$as_me:$LINENO: result: yes" >&5
5865echo "${ECHO_T}yes" >&6
4cdb0ab0 5866 else
e6cc62c6
VS
5867 echo "$as_me:$LINENO: result: no" >&5
5868echo "${ECHO_T}no" >&6
4cdb0ab0 5869 fi
e6cc62c6 5870
4cdb0ab0 5871
5005acfe 5872 enablestring=
e6cc62c6
VS
5873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5874echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5875 no_cache=0
5876 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5877if test "${enable_protocol_ftp+set}" = set; then
5878 enableval="$enable_protocol_ftp"
e6cc62c6 5879
4cdb0ab0
VS
5880 if test "$enableval" = yes; then
5881 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5882 else
5883 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5884 fi
e6cc62c6 5885
4cdb0ab0 5886else
e6cc62c6 5887
4cdb0ab0
VS
5888 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5889 if test "x$LINE" != x ; then
5890 eval "DEFAULT_$LINE"
5891 else
5892 no_cache=1
5893 fi
5894
5895 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5896
e6cc62c6 5897fi;
4cdb0ab0
VS
5898
5899 eval "$ac_cv_use_protocol_ftp"
5900 if test "$no_cache" != 1; then
5901 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5902 fi
5903
5904 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5905 echo "$as_me:$LINENO: result: yes" >&5
5906echo "${ECHO_T}yes" >&6
4cdb0ab0 5907 else
e6cc62c6
VS
5908 echo "$as_me:$LINENO: result: no" >&5
5909echo "${ECHO_T}no" >&6
4cdb0ab0 5910 fi
e6cc62c6 5911
4cdb0ab0 5912
5005acfe 5913 enablestring=
e6cc62c6
VS
5914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5915echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5916 no_cache=0
5917 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5918if test "${enable_protocol_file+set}" = set; then
5919 enableval="$enable_protocol_file"
e6cc62c6 5920
4cdb0ab0
VS
5921 if test "$enableval" = yes; then
5922 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5923 else
5924 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5925 fi
e6cc62c6 5926
4cdb0ab0 5927else
e6cc62c6 5928
4cdb0ab0
VS
5929 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5930 if test "x$LINE" != x ; then
5931 eval "DEFAULT_$LINE"
5932 else
5933 no_cache=1
5934 fi
5935
5936 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5937
e6cc62c6 5938fi;
4cdb0ab0
VS
5939
5940 eval "$ac_cv_use_protocol_file"
5941 if test "$no_cache" != 1; then
5942 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5943 fi
5944
5945 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5946 echo "$as_me:$LINENO: result: yes" >&5
5947echo "${ECHO_T}yes" >&6
4cdb0ab0 5948 else
e6cc62c6
VS
5949 echo "$as_me:$LINENO: result: no" >&5
5950echo "${ECHO_T}no" >&6
4cdb0ab0 5951 fi
e6cc62c6 5952
52127426 5953
8284b0c5
MB
5954
5955
5956
5005acfe 5957 enablestring=
e6cc62c6
VS
5958 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5959echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5960 no_cache=0
5961 # Check whether --enable-threads or --disable-threads was given.
5962if test "${enable_threads+set}" = set; then
5963 enableval="$enable_threads"
e6cc62c6 5964
10f2d63a
VZ
5965 if test "$enableval" = yes; then
5966 ac_cv_use_threads='wxUSE_THREADS=yes'
5967 else
5968 ac_cv_use_threads='wxUSE_THREADS=no'
5969 fi
e6cc62c6 5970
10f2d63a 5971else
e6cc62c6 5972
10f2d63a
VZ
5973 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5974 if test "x$LINE" != x ; then
5975 eval "DEFAULT_$LINE"
5976 else
5977 no_cache=1
5978 fi
5979
5980 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5981
e6cc62c6 5982fi;
10f2d63a
VZ
5983
5984 eval "$ac_cv_use_threads"
5985 if test "$no_cache" != 1; then
5986 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5987 fi
5988
5989 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5990 echo "$as_me:$LINENO: result: yes" >&5
5991echo "${ECHO_T}yes" >&6
10f2d63a 5992 else
e6cc62c6
VS
5993 echo "$as_me:$LINENO: result: no" >&5
5994echo "${ECHO_T}no" >&6
10f2d63a 5995 fi
e6cc62c6 5996
10f2d63a 5997
b12915c1
VZ
5998if test "$wxUSE_GUI" = "yes"; then
5999
8284b0c5
MB
6000
6001
5005acfe 6002 enablestring=
e6cc62c6
VS
6003 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
6004echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
6005 no_cache=0
6006 # Check whether --enable-docview or --disable-docview was given.
6007if test "${enable_docview+set}" = set; then
6008 enableval="$enable_docview"
e6cc62c6 6009
10f2d63a
VZ
6010 if test "$enableval" = yes; then
6011 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
6012 else
6013 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
6014 fi
e6cc62c6 6015
10f2d63a 6016else
e6cc62c6 6017
10f2d63a
VZ
6018 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
6019 if test "x$LINE" != x ; then
6020 eval "DEFAULT_$LINE"
6021 else
6022 no_cache=1
6023 fi
6024
6025 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 6026
e6cc62c6 6027fi;
10f2d63a
VZ
6028
6029 eval "$ac_cv_use_docview"
6030 if test "$no_cache" != 1; then
6031 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
6032 fi
6033
6034 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
6035 echo "$as_me:$LINENO: result: yes" >&5
6036echo "${ECHO_T}yes" >&6
10f2d63a 6037 else
e6cc62c6
VS
6038 echo "$as_me:$LINENO: result: no" >&5
6039echo "${ECHO_T}no" >&6
10f2d63a 6040 fi
e6cc62c6 6041
10f2d63a 6042
5005acfe 6043 enablestring=
e6cc62c6
VS
6044 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6045echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
6046 no_cache=0
6047 # Check whether --enable-help or --disable-help was given.
6048if test "${enable_help+set}" = set; then
6049 enableval="$enable_help"
e6cc62c6 6050
10f2d63a
VZ
6051 if test "$enableval" = yes; then
6052 ac_cv_use_help='wxUSE_HELP=yes'
6053 else
6054 ac_cv_use_help='wxUSE_HELP=no'
6055 fi
e6cc62c6 6056
10f2d63a 6057else
e6cc62c6 6058
10f2d63a
VZ
6059 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6060 if test "x$LINE" != x ; then
6061 eval "DEFAULT_$LINE"
6062 else
6063 no_cache=1
6064 fi
6065
6066 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 6067
e6cc62c6 6068fi;
10f2d63a
VZ
6069
6070 eval "$ac_cv_use_help"
6071 if test "$no_cache" != 1; then
6072 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6073 fi
6074
6075 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
6076 echo "$as_me:$LINENO: result: yes" >&5
6077echo "${ECHO_T}yes" >&6
10f2d63a 6078 else
e6cc62c6
VS
6079 echo "$as_me:$LINENO: result: no" >&5
6080echo "${ECHO_T}no" >&6
10f2d63a 6081 fi
e6cc62c6 6082
10f2d63a 6083
5005acfe 6084 enablestring=
e6cc62c6
VS
6085 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6086echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
6087 no_cache=0
6088 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6089if test "${enable_mshtmlhelp+set}" = set; then
6090 enableval="$enable_mshtmlhelp"
e6cc62c6 6091
29fd3c0c
VS
6092 if test "$enableval" = yes; then
6093 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6094 else
6095 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6096 fi
e6cc62c6 6097
29fd3c0c 6098else
e6cc62c6 6099
29fd3c0c
VS
6100 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6101 if test "x$LINE" != x ; then
6102 eval "DEFAULT_$LINE"
6103 else
6104 no_cache=1
6105 fi
6106
6107 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 6108
e6cc62c6 6109fi;
29fd3c0c
VS
6110
6111 eval "$ac_cv_use_mshtmlhelp"
6112 if test "$no_cache" != 1; then
6113 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6114 fi
6115
6116 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
6117 echo "$as_me:$LINENO: result: yes" >&5
6118echo "${ECHO_T}yes" >&6
29fd3c0c 6119 else
e6cc62c6
VS
6120 echo "$as_me:$LINENO: result: no" >&5
6121echo "${ECHO_T}no" >&6
29fd3c0c 6122 fi
e6cc62c6 6123
29fd3c0c 6124
5005acfe 6125 enablestring=
e6cc62c6
VS
6126 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6127echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
6128 no_cache=0
6129 # Check whether --enable-html or --disable-html was given.
6130if test "${enable_html+set}" = set; then
6131 enableval="$enable_html"
e6cc62c6 6132
3379ed37
VZ
6133 if test "$enableval" = yes; then
6134 ac_cv_use_html='wxUSE_HTML=yes'
6135 else
6136 ac_cv_use_html='wxUSE_HTML=no'
6137 fi
e6cc62c6 6138
3379ed37 6139else
e6cc62c6 6140
3379ed37
VZ
6141 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6142 if test "x$LINE" != x ; then
6143 eval "DEFAULT_$LINE"
6144 else
6145 no_cache=1
6146 fi
6147
6148 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 6149
e6cc62c6 6150fi;
3379ed37
VZ
6151
6152 eval "$ac_cv_use_html"
6153 if test "$no_cache" != 1; then
6154 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6155 fi
6156
6157 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
6158 echo "$as_me:$LINENO: result: yes" >&5
6159echo "${ECHO_T}yes" >&6
3379ed37 6160 else
e6cc62c6
VS
6161 echo "$as_me:$LINENO: result: no" >&5
6162echo "${ECHO_T}no" >&6
3379ed37 6163 fi
e6cc62c6 6164
3379ed37 6165
5005acfe 6166 enablestring=
e6cc62c6
VS
6167 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6168echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
6169 no_cache=0
6170 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6171if test "${enable_htmlhelp+set}" = set; then
6172 enableval="$enable_htmlhelp"
e6cc62c6 6173
3379ed37
VZ
6174 if test "$enableval" = yes; then
6175 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6176 else
6177 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6178 fi
e6cc62c6 6179
3379ed37 6180else
e6cc62c6 6181
3379ed37
VZ
6182 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6183 if test "x$LINE" != x ; then
6184 eval "DEFAULT_$LINE"
6185 else
6186 no_cache=1
6187 fi
6188
6189 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6190
e6cc62c6 6191fi;
3379ed37
VZ
6192
6193 eval "$ac_cv_use_htmlhelp"
6194 if test "$no_cache" != 1; then
6195 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6196 fi
6197
6198 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6199 echo "$as_me:$LINENO: result: yes" >&5
6200echo "${ECHO_T}yes" >&6
3379ed37 6201 else
e6cc62c6
VS
6202 echo "$as_me:$LINENO: result: no" >&5
6203echo "${ECHO_T}no" >&6
3379ed37 6204 fi
e6cc62c6 6205
3379ed37 6206
5005acfe 6207 enablestring=
e6cc62c6
VS
6208 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6209echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6210 no_cache=0
6211 # Check whether --enable-constraints or --disable-constraints was given.
6212if test "${enable_constraints+set}" = set; then
6213 enableval="$enable_constraints"
e6cc62c6 6214
10f2d63a
VZ
6215 if test "$enableval" = yes; then
6216 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6217 else
6218 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6219 fi
e6cc62c6 6220
10f2d63a 6221else
e6cc62c6 6222
10f2d63a
VZ
6223 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6224 if test "x$LINE" != x ; then
6225 eval "DEFAULT_$LINE"
6226 else
6227 no_cache=1
6228 fi
6229
6230 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6231
e6cc62c6 6232fi;
10f2d63a
VZ
6233
6234 eval "$ac_cv_use_constraints"
6235 if test "$no_cache" != 1; then
6236 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6237 fi
6238
6239 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6240 echo "$as_me:$LINENO: result: yes" >&5
6241echo "${ECHO_T}yes" >&6
10f2d63a 6242 else
e6cc62c6
VS
6243 echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6
10f2d63a 6245 fi
e6cc62c6 6246
10f2d63a 6247
5005acfe 6248 enablestring=
e6cc62c6
VS
6249 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6250echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6251 no_cache=0
6252 # Check whether --enable-printarch or --disable-printarch was given.
6253if test "${enable_printarch+set}" = set; then
6254 enableval="$enable_printarch"
e6cc62c6 6255
10f2d63a
VZ
6256 if test "$enableval" = yes; then
6257 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6258 else
6259 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6260 fi
e6cc62c6 6261
10f2d63a 6262else
e6cc62c6 6263
10f2d63a
VZ
6264 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6265 if test "x$LINE" != x ; then
6266 eval "DEFAULT_$LINE"
6267 else
6268 no_cache=1
6269 fi
6270
6271 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6272
e6cc62c6 6273fi;
10f2d63a
VZ
6274
6275 eval "$ac_cv_use_printarch"
6276 if test "$no_cache" != 1; then
6277 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6278 fi
6279
6280 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6281 echo "$as_me:$LINENO: result: yes" >&5
6282echo "${ECHO_T}yes" >&6
10f2d63a 6283 else
e6cc62c6
VS
6284 echo "$as_me:$LINENO: result: no" >&5
6285echo "${ECHO_T}no" >&6
10f2d63a 6286 fi
e6cc62c6 6287
10f2d63a 6288
5005acfe 6289 enablestring=
e6cc62c6
VS
6290 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6291echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6292 no_cache=0
6293 # Check whether --enable-mdi or --disable-mdi was given.
6294if test "${enable_mdi+set}" = set; then
6295 enableval="$enable_mdi"
e6cc62c6 6296
10f2d63a
VZ
6297 if test "$enableval" = yes; then
6298 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6299 else
6300 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6301 fi
e6cc62c6 6302
10f2d63a 6303else
e6cc62c6 6304
10f2d63a
VZ
6305 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6306 if test "x$LINE" != x ; then
6307 eval "DEFAULT_$LINE"
6308 else
6309 no_cache=1
6310 fi
6311
6312 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6313
e6cc62c6 6314fi;
10f2d63a
VZ
6315
6316 eval "$ac_cv_use_mdi"
6317 if test "$no_cache" != 1; then
6318 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6319 fi
6320
6321 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6322 echo "$as_me:$LINENO: result: yes" >&5
6323echo "${ECHO_T}yes" >&6
10f2d63a 6324 else
e6cc62c6
VS
6325 echo "$as_me:$LINENO: result: no" >&5
6326echo "${ECHO_T}no" >&6
10f2d63a 6327 fi
e6cc62c6 6328
698dcdb6 6329
5005acfe 6330 enablestring=
e6cc62c6
VS
6331 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6332echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6333 no_cache=0
6334 # Check whether --enable-loggui or --disable-loggui was given.
6335if test "${enable_loggui+set}" = set; then
6336 enableval="$enable_loggui"
e6cc62c6 6337
1e6feb95
VZ
6338 if test "$enableval" = yes; then
6339 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6340 else
6341 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6342 fi
e6cc62c6 6343
1e6feb95 6344else
e6cc62c6 6345
1e6feb95
VZ
6346 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6347 if test "x$LINE" != x ; then
6348 eval "DEFAULT_$LINE"
6349 else
6350 no_cache=1
6351 fi
6352
6353 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6354
e6cc62c6 6355fi;
1e6feb95
VZ
6356
6357 eval "$ac_cv_use_loggui"
6358 if test "$no_cache" != 1; then
6359 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6360 fi
6361
6362 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6363 echo "$as_me:$LINENO: result: yes" >&5
6364echo "${ECHO_T}yes" >&6
1e6feb95 6365 else
e6cc62c6
VS
6366 echo "$as_me:$LINENO: result: no" >&5
6367echo "${ECHO_T}no" >&6
1e6feb95 6368 fi
e6cc62c6 6369
1e6feb95 6370
5005acfe 6371 enablestring=
e6cc62c6
VS
6372 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6373echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6374 no_cache=0
6375 # Check whether --enable-logwin or --disable-logwin was given.
6376if test "${enable_logwin+set}" = set; then
6377 enableval="$enable_logwin"
e6cc62c6 6378
1e6feb95
VZ
6379 if test "$enableval" = yes; then
6380 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6381 else
6382 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6383 fi
e6cc62c6 6384
1e6feb95 6385else
e6cc62c6 6386
1e6feb95
VZ
6387 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6388 if test "x$LINE" != x ; then
6389 eval "DEFAULT_$LINE"
6390 else
6391 no_cache=1
6392 fi
6393
6394 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6395
e6cc62c6 6396fi;
1e6feb95
VZ
6397
6398 eval "$ac_cv_use_logwin"
6399 if test "$no_cache" != 1; then
6400 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6401 fi
6402
6403 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6404 echo "$as_me:$LINENO: result: yes" >&5
6405echo "${ECHO_T}yes" >&6
1e6feb95 6406 else
e6cc62c6
VS
6407 echo "$as_me:$LINENO: result: no" >&5
6408echo "${ECHO_T}no" >&6
1e6feb95 6409 fi
e6cc62c6 6410
1e6feb95 6411
5005acfe 6412 enablestring=
e6cc62c6
VS
6413 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6414echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6415 no_cache=0
6416 # Check whether --enable-logdialog or --disable-logdialog was given.
6417if test "${enable_logdialog+set}" = set; then
6418 enableval="$enable_logdialog"
e6cc62c6 6419
69d27ff7
MB
6420 if test "$enableval" = yes; then
6421 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6422 else
6423 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6424 fi
e6cc62c6 6425
69d27ff7 6426else
e6cc62c6 6427
69d27ff7
MB
6428 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6429 if test "x$LINE" != x ; then
6430 eval "DEFAULT_$LINE"
6431 else
6432 no_cache=1
6433 fi
6434
6435 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6436
e6cc62c6 6437fi;
69d27ff7
MB
6438
6439 eval "$ac_cv_use_logdialog"
6440 if test "$no_cache" != 1; then
6441 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6442 fi
6443
6444 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6445 echo "$as_me:$LINENO: result: yes" >&5
6446echo "${ECHO_T}yes" >&6
69d27ff7 6447 else
e6cc62c6
VS
6448 echo "$as_me:$LINENO: result: no" >&5
6449echo "${ECHO_T}no" >&6
69d27ff7 6450 fi
e6cc62c6 6451
8284b0c5 6452
52127426 6453
5005acfe 6454 enablestring=
e6cc62c6
VS
6455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6456echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6457 no_cache=0
6458 # Check whether --enable-postscript or --disable-postscript was given.
6459if test "${enable_postscript+set}" = set; then
6460 enableval="$enable_postscript"
e6cc62c6 6461
10f2d63a
VZ
6462 if test "$enableval" = yes; then
6463 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6464 else
6465 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6466 fi
e6cc62c6 6467
10f2d63a 6468else
e6cc62c6 6469
10f2d63a
VZ
6470 LINE=`grep "wxUSE_POSTSCRIPT" ${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_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6478
e6cc62c6 6479fi;
10f2d63a
VZ
6480
6481 eval "$ac_cv_use_postscript"
6482 if test "$no_cache" != 1; then
6483 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6484 fi
6485
6486 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6487 echo "$as_me:$LINENO: result: yes" >&5
6488echo "${ECHO_T}yes" >&6
10f2d63a 6489 else
e6cc62c6
VS
6490 echo "$as_me:$LINENO: result: no" >&5
6491echo "${ECHO_T}no" >&6
10f2d63a 6492 fi
e6cc62c6 6493
8284b0c5
MB
6494
6495
52127426 6496
8284b0c5 6497
5005acfe 6498 enablestring=
e6cc62c6
VS
6499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6500echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6501 no_cache=0
3c907f20
VZ
6502 # Check whether --enable-prologio or --disable-prologio was given.
6503if test "${enable_prologio+set}" = set; then
6504 enableval="$enable_prologio"
e6cc62c6 6505
10f2d63a 6506 if test "$enableval" = yes; then
3c907f20 6507 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6508 else
3c907f20 6509 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6510 fi
e6cc62c6 6511
10f2d63a 6512else
e6cc62c6 6513
3c907f20 6514 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6515 if test "x$LINE" != x ; then
6516 eval "DEFAULT_$LINE"
6517 else
6518 no_cache=1
6519 fi
6520
3c907f20 6521 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6522
e6cc62c6 6523fi;
10f2d63a 6524
3c907f20 6525 eval "$ac_cv_use_prologio"
10f2d63a 6526 if test "$no_cache" != 1; then
3c907f20 6527 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6528 fi
6529
3c907f20 6530 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6531 echo "$as_me:$LINENO: result: yes" >&5
6532echo "${ECHO_T}yes" >&6
10f2d63a 6533 else
e6cc62c6
VS
6534 echo "$as_me:$LINENO: result: no" >&5
6535echo "${ECHO_T}no" >&6
10f2d63a 6536 fi
e6cc62c6 6537
8284b0c5 6538
5005acfe 6539 enablestring=
e6cc62c6
VS
6540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6541echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6542 no_cache=0
3c907f20
VZ
6543 # Check whether --enable-resources or --disable-resources was given.
6544if test "${enable_resources+set}" = set; then
6545 enableval="$enable_resources"
e6cc62c6 6546
10f2d63a 6547 if test "$enableval" = yes; then
3c907f20 6548 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6549 else
3c907f20 6550 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6551 fi
e6cc62c6 6552
10f2d63a 6553else
e6cc62c6 6554
3c907f20 6555 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6556 if test "x$LINE" != x ; then
6557 eval "DEFAULT_$LINE"
6558 else
6559 no_cache=1
6560 fi
6561
3c907f20 6562 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6563
e6cc62c6 6564fi;
10f2d63a 6565
3c907f20 6566 eval "$ac_cv_use_resources"
10f2d63a 6567 if test "$no_cache" != 1; then
3c907f20 6568 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6569 fi
6570
3c907f20 6571 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6572 echo "$as_me:$LINENO: result: yes" >&5
6573echo "${ECHO_T}yes" >&6
10f2d63a 6574 else
e6cc62c6
VS
6575 echo "$as_me:$LINENO: result: no" >&5
6576echo "${ECHO_T}no" >&6
10f2d63a 6577 fi
e6cc62c6 6578
8284b0c5
MB
6579
6580
52127426 6581
5005acfe 6582 enablestring=
e6cc62c6
VS
6583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6584echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6585 no_cache=0
6586 # Check whether --enable-clipboard or --disable-clipboard was given.
6587if test "${enable_clipboard+set}" = set; then
6588 enableval="$enable_clipboard"
e6cc62c6 6589
10f2d63a
VZ
6590 if test "$enableval" = yes; then
6591 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6592 else
6593 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6594 fi
e6cc62c6 6595
10f2d63a 6596else
e6cc62c6 6597
10f2d63a
VZ
6598 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6599 if test "x$LINE" != x ; then
6600 eval "DEFAULT_$LINE"
6601 else
6602 no_cache=1
6603 fi
6604
6605 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6606
e6cc62c6 6607fi;
10f2d63a
VZ
6608
6609 eval "$ac_cv_use_clipboard"
6610 if test "$no_cache" != 1; then
6611 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6612 fi
6613
6614 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6615 echo "$as_me:$LINENO: result: yes" >&5
6616echo "${ECHO_T}yes" >&6
10f2d63a 6617 else
e6cc62c6
VS
6618 echo "$as_me:$LINENO: result: no" >&5
6619echo "${ECHO_T}no" >&6
10f2d63a 6620 fi
e6cc62c6 6621
10f2d63a 6622
5005acfe 6623 enablestring=
e6cc62c6
VS
6624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6625echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6626 no_cache=0
6627 # Check whether --enable-dnd or --disable-dnd was given.
6628if test "${enable_dnd+set}" = set; then
6629 enableval="$enable_dnd"
e6cc62c6 6630
10f2d63a
VZ
6631 if test "$enableval" = yes; then
6632 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6633 else
6634 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6635 fi
e6cc62c6 6636
10f2d63a 6637else
e6cc62c6 6638
10f2d63a
VZ
6639 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6640 if test "x$LINE" != x ; then
6641 eval "DEFAULT_$LINE"
6642 else
6643 no_cache=1
6644 fi
6645
6646 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6647
e6cc62c6 6648fi;
10f2d63a
VZ
6649
6650 eval "$ac_cv_use_dnd"
6651 if test "$no_cache" != 1; then
6652 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6653 fi
6654
6655 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6656 echo "$as_me:$LINENO: result: yes" >&5
6657echo "${ECHO_T}yes" >&6
10f2d63a 6658 else
e6cc62c6
VS
6659 echo "$as_me:$LINENO: result: no" >&5
6660echo "${ECHO_T}no" >&6
10f2d63a 6661 fi
e6cc62c6 6662
10f2d63a 6663
5005acfe 6664 enablestring=
e6cc62c6
VS
6665 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6666echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6667 no_cache=0
6668 # Check whether --enable-metafile or --disable-metafile was given.
6669if test "${enable_metafile+set}" = set; then
6670 enableval="$enable_metafile"
e6cc62c6 6671
b64f0a5f
RL
6672 if test "$enableval" = yes; then
6673 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6674 else
6675 ac_cv_use_metafile='wxUSE_METAFILE=no'
6676 fi
e6cc62c6 6677
b64f0a5f 6678else
e6cc62c6 6679
b64f0a5f
RL
6680 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6681 if test "x$LINE" != x ; then
6682 eval "DEFAULT_$LINE"
6683 else
6684 no_cache=1
6685 fi
6686
6687 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6688
e6cc62c6 6689fi;
b64f0a5f
RL
6690
6691 eval "$ac_cv_use_metafile"
6692 if test "$no_cache" != 1; then
6693 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6694 fi
6695
6696 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6697 echo "$as_me:$LINENO: result: yes" >&5
6698echo "${ECHO_T}yes" >&6
b64f0a5f 6699 else
e6cc62c6
VS
6700 echo "$as_me:$LINENO: result: no" >&5
6701echo "${ECHO_T}no" >&6
b64f0a5f 6702 fi
e6cc62c6 6703
52127426 6704
8284b0c5 6705
52127426 6706
8284b0c5 6707
5005acfe 6708 enablestring=
e6cc62c6
VS
6709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6710echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6711 no_cache=0
6712 # Check whether --enable-controls or --disable-controls was given.
6713if test "${enable_controls+set}" = set; then
6714 enableval="$enable_controls"
e6cc62c6 6715
10f2d63a
VZ
6716 if test "$enableval" = yes; then
6717 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6718 else
6719 ac_cv_use_controls='wxUSE_CONTROLS=no'
6720 fi
e6cc62c6 6721
10f2d63a 6722else
e6cc62c6 6723
10f2d63a
VZ
6724 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6725 if test "x$LINE" != x ; then
6726 eval "DEFAULT_$LINE"
6727 else
6728 no_cache=1
6729 fi
6730
6731 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6732
e6cc62c6 6733fi;
10f2d63a
VZ
6734
6735 eval "$ac_cv_use_controls"
6736 if test "$no_cache" != 1; then
6737 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6738 fi
6739
6740 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6741 echo "$as_me:$LINENO: result: yes" >&5
6742echo "${ECHO_T}yes" >&6
10f2d63a 6743 else
e6cc62c6
VS
6744 echo "$as_me:$LINENO: result: no" >&5
6745echo "${ECHO_T}no" >&6
10f2d63a 6746 fi
e6cc62c6 6747
10f2d63a
VZ
6748
6749if test "$wxUSE_CONTROLS" = "yes"; then
6750 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6751 DEFAULT_wxUSE_BMPBUTTON=yes
6752 DEFAULT_wxUSE_BUTTON=yes
6753 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6754 DEFAULT_wxUSE_CARET=yes
6755 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6756 DEFAULT_wxUSE_CHECKBOX=yes
6757 DEFAULT_wxUSE_CHECKLISTBOX=yes
6758 DEFAULT_wxUSE_CHOICE=yes
6759 DEFAULT_wxUSE_GAUGE=yes
6760 DEFAULT_wxUSE_GRID=yes
10f2d63a 6761 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6762 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6763 DEFAULT_wxUSE_LISTBOX=yes
6764 DEFAULT_wxUSE_LISTCTRL=yes
6765 DEFAULT_wxUSE_NOTEBOOK=yes
6766 DEFAULT_wxUSE_RADIOBOX=yes
6767 DEFAULT_wxUSE_RADIOBTN=yes
6768 DEFAULT_wxUSE_SASH=yes
6769 DEFAULT_wxUSE_SCROLLBAR=yes
6770 DEFAULT_wxUSE_SLIDER=yes
6771 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6772 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6773 DEFAULT_wxUSE_SPLITTER=yes
6774 DEFAULT_wxUSE_STATBMP=yes
6775 DEFAULT_wxUSE_STATBOX=yes
6776 DEFAULT_wxUSE_STATLINE=yes
6777 DEFAULT_wxUSE_STATUSBAR=yes
6778 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6779 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6780 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6781 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6782 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6783 DEFAULT_wxUSE_TOOLTIPS=yes
6784 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6785 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6786 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6787elif test "$wxUSE_CONTROLS" = "no"; then
6788 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6789 DEFAULT_wxUSE_BMPBUTTON=no
6790 DEFAULT_wxUSE_BUTTON=no
6791 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6792 DEFAULT_wxUSE_CARET=no
6793 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6794 DEFAULT_wxUSE_CHECKBOX=no
6795 DEFAULT_wxUSE_CHECKLISTBOX=no
6796 DEFAULT_wxUSE_CHOICE=no
6797 DEFAULT_wxUSE_GAUGE=no
6798 DEFAULT_wxUSE_GRID=no
10f2d63a 6799 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6800 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6801 DEFAULT_wxUSE_LISTBOX=no
6802 DEFAULT_wxUSE_LISTCTRL=no
6803 DEFAULT_wxUSE_NOTEBOOK=no
6804 DEFAULT_wxUSE_RADIOBOX=no
6805 DEFAULT_wxUSE_RADIOBTN=no
6806 DEFAULT_wxUSE_SASH=no
6807 DEFAULT_wxUSE_SCROLLBAR=no
6808 DEFAULT_wxUSE_SLIDER=no
6809 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6810 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6811 DEFAULT_wxUSE_SPLITTER=no
6812 DEFAULT_wxUSE_STATBMP=no
6813 DEFAULT_wxUSE_STATBOX=no
6814 DEFAULT_wxUSE_STATLINE=no
6815 DEFAULT_wxUSE_STATUSBAR=no
6816 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6817 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6818 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6819 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6820 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6821 DEFAULT_wxUSE_TOOLTIPS=no
6822 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6823 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6824 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6825fi
6826
ac0c4cc3
DE
6827## FIXME: This is a blatant hack
6828if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6829 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6830 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6831 # Generic notebook requires tab dialog
6832 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6833 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6834 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6835 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6836fi
6837
8284b0c5 6838
5005acfe 6839 enablestring=
e6cc62c6
VS
6840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6841echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6842 no_cache=0
6843 # Check whether --enable-accel or --disable-accel was given.
6844if test "${enable_accel+set}" = set; then
6845 enableval="$enable_accel"
e6cc62c6 6846
10f2d63a
VZ
6847 if test "$enableval" = yes; then
6848 ac_cv_use_accel='wxUSE_ACCEL=yes'
6849 else
6850 ac_cv_use_accel='wxUSE_ACCEL=no'
6851 fi
e6cc62c6 6852
10f2d63a 6853else
e6cc62c6 6854
10f2d63a
VZ
6855 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6856 if test "x$LINE" != x ; then
6857 eval "DEFAULT_$LINE"
6858 else
6859 no_cache=1
6860 fi
6861
6862 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6863
e6cc62c6 6864fi;
10f2d63a
VZ
6865
6866 eval "$ac_cv_use_accel"
6867 if test "$no_cache" != 1; then
6868 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6869 fi
6870
6871 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6872 echo "$as_me:$LINENO: result: yes" >&5
6873echo "${ECHO_T}yes" >&6
10f2d63a 6874 else
e6cc62c6
VS
6875 echo "$as_me:$LINENO: result: no" >&5
6876echo "${ECHO_T}no" >&6
10f2d63a 6877 fi
e6cc62c6 6878
10f2d63a 6879
5005acfe 6880 enablestring=
e6cc62c6
VS
6881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6882echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6883 no_cache=0
1e6feb95
VZ
6884 # Check whether --enable-button or --disable-button was given.
6885if test "${enable_button+set}" = set; then
6886 enableval="$enable_button"
e6cc62c6 6887
10f2d63a 6888 if test "$enableval" = yes; then
1e6feb95 6889 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6890 else
1e6feb95 6891 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6892 fi
e6cc62c6 6893
10f2d63a 6894else
e6cc62c6 6895
1e6feb95 6896 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6897 if test "x$LINE" != x ; then
6898 eval "DEFAULT_$LINE"
6899 else
6900 no_cache=1
6901 fi
6902
1e6feb95 6903 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6904
e6cc62c6 6905fi;
10f2d63a 6906
1e6feb95 6907 eval "$ac_cv_use_button"
10f2d63a 6908 if test "$no_cache" != 1; then
1e6feb95 6909 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6910 fi
6911
1e6feb95 6912 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6913 echo "$as_me:$LINENO: result: yes" >&5
6914echo "${ECHO_T}yes" >&6
10f2d63a 6915 else
e6cc62c6
VS
6916 echo "$as_me:$LINENO: result: no" >&5
6917echo "${ECHO_T}no" >&6
10f2d63a 6918 fi
e6cc62c6 6919
10f2d63a 6920
5005acfe 6921 enablestring=
e6cc62c6
VS
6922 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6923echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6924 no_cache=0
6925 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6926if test "${enable_bmpbutton+set}" = set; then
6927 enableval="$enable_bmpbutton"
e6cc62c6 6928
10f2d63a
VZ
6929 if test "$enableval" = yes; then
6930 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6931 else
6932 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6933 fi
e6cc62c6 6934
10f2d63a 6935else
e6cc62c6 6936
10f2d63a
VZ
6937 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6938 if test "x$LINE" != x ; then
6939 eval "DEFAULT_$LINE"
6940 else
6941 no_cache=1
6942 fi
6943
6944 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6945
e6cc62c6 6946fi;
10f2d63a
VZ
6947
6948 eval "$ac_cv_use_bmpbutton"
6949 if test "$no_cache" != 1; then
6950 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6951 fi
6952
6953 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6954 echo "$as_me:$LINENO: result: yes" >&5
6955echo "${ECHO_T}yes" >&6
10f2d63a 6956 else
e6cc62c6
VS
6957 echo "$as_me:$LINENO: result: no" >&5
6958echo "${ECHO_T}no" >&6
10f2d63a 6959 fi
e6cc62c6 6960
10f2d63a 6961
5005acfe 6962 enablestring=
e6cc62c6
VS
6963 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6964echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6965 no_cache=0
6966 # Check whether --enable-calendar or --disable-calendar was given.
6967if test "${enable_calendar+set}" = set; then
6968 enableval="$enable_calendar"
e6cc62c6 6969
1e6feb95
VZ
6970 if test "$enableval" = yes; then
6971 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6972 else
6973 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6974 fi
e6cc62c6 6975
1e6feb95 6976else
e6cc62c6 6977
1e6feb95
VZ
6978 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6979 if test "x$LINE" != x ; then
6980 eval "DEFAULT_$LINE"
6981 else
6982 no_cache=1
6983 fi
6984
6985 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6986
e6cc62c6 6987fi;
1e6feb95
VZ
6988
6989 eval "$ac_cv_use_calendar"
6990 if test "$no_cache" != 1; then
6991 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6992 fi
6993
6994 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6995 echo "$as_me:$LINENO: result: yes" >&5
6996echo "${ECHO_T}yes" >&6
1e6feb95 6997 else
e6cc62c6
VS
6998 echo "$as_me:$LINENO: result: no" >&5
6999echo "${ECHO_T}no" >&6
1e6feb95 7000 fi
e6cc62c6 7001
1e6feb95 7002
5005acfe 7003 enablestring=
e6cc62c6
VS
7004 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
7005echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
7006 no_cache=0
7007 # Check whether --enable-caret or --disable-caret was given.
7008if test "${enable_caret+set}" = set; then
7009 enableval="$enable_caret"
e6cc62c6 7010
1e6feb95
VZ
7011 if test "$enableval" = yes; then
7012 ac_cv_use_caret='wxUSE_CARET=yes'
7013 else
7014 ac_cv_use_caret='wxUSE_CARET=no'
7015 fi
e6cc62c6 7016
1e6feb95 7017else
e6cc62c6 7018
1e6feb95
VZ
7019 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
7020 if test "x$LINE" != x ; then
7021 eval "DEFAULT_$LINE"
7022 else
7023 no_cache=1
7024 fi
7025
7026 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 7027
e6cc62c6 7028fi;
1e6feb95
VZ
7029
7030 eval "$ac_cv_use_caret"
7031 if test "$no_cache" != 1; then
7032 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7033 fi
7034
7035 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
7036 echo "$as_me:$LINENO: result: yes" >&5
7037echo "${ECHO_T}yes" >&6
1e6feb95 7038 else
e6cc62c6
VS
7039 echo "$as_me:$LINENO: result: no" >&5
7040echo "${ECHO_T}no" >&6
1e6feb95 7041 fi
e6cc62c6 7042
1e6feb95 7043
5005acfe 7044 enablestring=
e6cc62c6
VS
7045 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7046echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
7047 no_cache=0
7048 # Check whether --enable-checkbox or --disable-checkbox was given.
7049if test "${enable_checkbox+set}" = set; then
7050 enableval="$enable_checkbox"
e6cc62c6 7051
10f2d63a
VZ
7052 if test "$enableval" = yes; then
7053 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7054 else
7055 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7056 fi
e6cc62c6 7057
10f2d63a 7058else
e6cc62c6 7059
10f2d63a
VZ
7060 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 7068
e6cc62c6 7069fi;
10f2d63a
VZ
7070
7071 eval "$ac_cv_use_checkbox"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
7077 echo "$as_me:$LINENO: result: yes" >&5
7078echo "${ECHO_T}yes" >&6
10f2d63a 7079 else
e6cc62c6
VS
7080 echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6
10f2d63a 7082 fi
e6cc62c6 7083
10f2d63a 7084
5005acfe 7085 enablestring=
e6cc62c6
VS
7086 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7087echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
7088 no_cache=0
7089 # Check whether --enable-checklst or --disable-checklst was given.
7090if test "${enable_checklst+set}" = set; then
7091 enableval="$enable_checklst"
e6cc62c6 7092
10f2d63a
VZ
7093 if test "$enableval" = yes; then
7094 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7095 else
7096 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7097 fi
e6cc62c6 7098
10f2d63a 7099else
e6cc62c6 7100
10f2d63a
VZ
7101 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7102 if test "x$LINE" != x ; then
7103 eval "DEFAULT_$LINE"
7104 else
7105 no_cache=1
7106 fi
7107
7108 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 7109
e6cc62c6 7110fi;
10f2d63a
VZ
7111
7112 eval "$ac_cv_use_checklst"
7113 if test "$no_cache" != 1; then
7114 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7115 fi
7116
7117 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
7118 echo "$as_me:$LINENO: result: yes" >&5
7119echo "${ECHO_T}yes" >&6
10f2d63a 7120 else
e6cc62c6
VS
7121 echo "$as_me:$LINENO: result: no" >&5
7122echo "${ECHO_T}no" >&6
10f2d63a 7123 fi
e6cc62c6 7124
10f2d63a 7125
5005acfe 7126 enablestring=
e6cc62c6
VS
7127 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7128echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
7129 no_cache=0
7130 # Check whether --enable-choice or --disable-choice was given.
7131if test "${enable_choice+set}" = set; then
7132 enableval="$enable_choice"
e6cc62c6 7133
10f2d63a
VZ
7134 if test "$enableval" = yes; then
7135 ac_cv_use_choice='wxUSE_CHOICE=yes'
7136 else
7137 ac_cv_use_choice='wxUSE_CHOICE=no'
7138 fi
e6cc62c6 7139
10f2d63a 7140else
e6cc62c6 7141
10f2d63a
VZ
7142 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7143 if test "x$LINE" != x ; then
7144 eval "DEFAULT_$LINE"
7145 else
7146 no_cache=1
7147 fi
7148
7149 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 7150
e6cc62c6 7151fi;
10f2d63a
VZ
7152
7153 eval "$ac_cv_use_choice"
7154 if test "$no_cache" != 1; then
7155 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7156 fi
7157
7158 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
7159 echo "$as_me:$LINENO: result: yes" >&5
7160echo "${ECHO_T}yes" >&6
10f2d63a 7161 else
e6cc62c6
VS
7162 echo "$as_me:$LINENO: result: no" >&5
7163echo "${ECHO_T}no" >&6
10f2d63a 7164 fi
e6cc62c6 7165
10f2d63a 7166
5005acfe 7167 enablestring=
e6cc62c6
VS
7168 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7169echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
7170 no_cache=0
7171 # Check whether --enable-combobox or --disable-combobox was given.
7172if test "${enable_combobox+set}" = set; then
7173 enableval="$enable_combobox"
e6cc62c6 7174
10f2d63a
VZ
7175 if test "$enableval" = yes; then
7176 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7177 else
7178 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7179 fi
e6cc62c6 7180
10f2d63a 7181else
e6cc62c6 7182
10f2d63a
VZ
7183 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7184 if test "x$LINE" != x ; then
7185 eval "DEFAULT_$LINE"
7186 else
7187 no_cache=1
7188 fi
7189
7190 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7191
e6cc62c6 7192fi;
10f2d63a
VZ
7193
7194 eval "$ac_cv_use_combobox"
7195 if test "$no_cache" != 1; then
7196 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7197 fi
7198
7199 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7200 echo "$as_me:$LINENO: result: yes" >&5
7201echo "${ECHO_T}yes" >&6
10f2d63a 7202 else
e6cc62c6
VS
7203 echo "$as_me:$LINENO: result: no" >&5
7204echo "${ECHO_T}no" >&6
10f2d63a 7205 fi
e6cc62c6 7206
10f2d63a 7207
da494b40 7208 enablestring=
e6cc62c6
VS
7209 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7210echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7211 no_cache=0
7212 # Check whether --enable-display or --disable-display was given.
7213if test "${enable_display+set}" = set; then
7214 enableval="$enable_display"
e6cc62c6 7215
da494b40
MB
7216 if test "$enableval" = yes; then
7217 ac_cv_use_display='wxUSE_DISPLAY=yes'
7218 else
7219 ac_cv_use_display='wxUSE_DISPLAY=no'
7220 fi
e6cc62c6 7221
da494b40 7222else
e6cc62c6 7223
da494b40
MB
7224 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7225 if test "x$LINE" != x ; then
7226 eval "DEFAULT_$LINE"
7227 else
7228 no_cache=1
7229 fi
7230
7231 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7232
e6cc62c6 7233fi;
da494b40
MB
7234
7235 eval "$ac_cv_use_display"
7236 if test "$no_cache" != 1; then
7237 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7238 fi
7239
7240 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7241 echo "$as_me:$LINENO: result: yes" >&5
7242echo "${ECHO_T}yes" >&6
da494b40 7243 else
e6cc62c6
VS
7244 echo "$as_me:$LINENO: result: no" >&5
7245echo "${ECHO_T}no" >&6
da494b40 7246 fi
e6cc62c6 7247
da494b40 7248
5005acfe 7249 enablestring=
e6cc62c6
VS
7250 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7251echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7252 no_cache=0
7253 # Check whether --enable-gauge or --disable-gauge was given.
7254if test "${enable_gauge+set}" = set; then
7255 enableval="$enable_gauge"
e6cc62c6 7256
10f2d63a
VZ
7257 if test "$enableval" = yes; then
7258 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7259 else
7260 ac_cv_use_gauge='wxUSE_GAUGE=no'
7261 fi
e6cc62c6 7262
10f2d63a 7263else
e6cc62c6 7264
10f2d63a
VZ
7265 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7266 if test "x$LINE" != x ; then
7267 eval "DEFAULT_$LINE"
7268 else
7269 no_cache=1
7270 fi
7271
7272 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7273
e6cc62c6 7274fi;
10f2d63a
VZ
7275
7276 eval "$ac_cv_use_gauge"
7277 if test "$no_cache" != 1; then
7278 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7279 fi
7280
7281 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7282 echo "$as_me:$LINENO: result: yes" >&5
7283echo "${ECHO_T}yes" >&6
10f2d63a 7284 else
e6cc62c6
VS
7285 echo "$as_me:$LINENO: result: no" >&5
7286echo "${ECHO_T}no" >&6
10f2d63a 7287 fi
e6cc62c6 7288
10f2d63a 7289
5005acfe 7290 enablestring=
e6cc62c6
VS
7291 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7292echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7293 no_cache=0
7294 # Check whether --enable-grid or --disable-grid was given.
7295if test "${enable_grid+set}" = set; then
7296 enableval="$enable_grid"
e6cc62c6 7297
10f2d63a
VZ
7298 if test "$enableval" = yes; then
7299 ac_cv_use_grid='wxUSE_GRID=yes'
7300 else
7301 ac_cv_use_grid='wxUSE_GRID=no'
7302 fi
e6cc62c6 7303
10f2d63a 7304else
e6cc62c6 7305
10f2d63a
VZ
7306 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7307 if test "x$LINE" != x ; then
7308 eval "DEFAULT_$LINE"
7309 else
7310 no_cache=1
7311 fi
7312
7313 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7314
e6cc62c6 7315fi;
10f2d63a
VZ
7316
7317 eval "$ac_cv_use_grid"
7318 if test "$no_cache" != 1; then
7319 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7320 fi
7321
7322 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7323 echo "$as_me:$LINENO: result: yes" >&5
7324echo "${ECHO_T}yes" >&6
10f2d63a 7325 else
e6cc62c6
VS
7326 echo "$as_me:$LINENO: result: no" >&5
7327echo "${ECHO_T}no" >&6
10f2d63a 7328 fi
e6cc62c6 7329
10f2d63a 7330
5005acfe 7331 enablestring=
e6cc62c6
VS
7332 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7333echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7334 no_cache=0
7335 # Check whether --enable-imaglist or --disable-imaglist was given.
7336if test "${enable_imaglist+set}" = set; then
7337 enableval="$enable_imaglist"
e6cc62c6 7338
10f2d63a
VZ
7339 if test "$enableval" = yes; then
7340 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7341 else
7342 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7343 fi
e6cc62c6 7344
10f2d63a 7345else
e6cc62c6 7346
10f2d63a
VZ
7347 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7348 if test "x$LINE" != x ; then
7349 eval "DEFAULT_$LINE"
7350 else
7351 no_cache=1
7352 fi
7353
7354 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7355
e6cc62c6 7356fi;
10f2d63a
VZ
7357
7358 eval "$ac_cv_use_imaglist"
7359 if test "$no_cache" != 1; then
7360 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7361 fi
7362
7363 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7364 echo "$as_me:$LINENO: result: yes" >&5
7365echo "${ECHO_T}yes" >&6
10f2d63a 7366 else
e6cc62c6
VS
7367 echo "$as_me:$LINENO: result: no" >&5
7368echo "${ECHO_T}no" >&6
10f2d63a 7369 fi
e6cc62c6 7370
10f2d63a 7371
0e012a93
VZ
7372 enablestring=
7373 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7374echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7375 no_cache=0
7376 # Check whether --enable-listbook or --disable-listbook was given.
7377if test "${enable_listbook+set}" = set; then
7378 enableval="$enable_listbook"
7379
7380 if test "$enableval" = yes; then
7381 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7382 else
7383 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7384 fi
7385
7386else
7387
7388 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7389 if test "x$LINE" != x ; then
7390 eval "DEFAULT_$LINE"
7391 else
7392 no_cache=1
7393 fi
7394
7395 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7396
7397fi;
7398
7399 eval "$ac_cv_use_listbook"
7400 if test "$no_cache" != 1; then
7401 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7402 fi
7403
7404 if test "$wxUSE_LISTBOOK" = yes; then
7405 echo "$as_me:$LINENO: result: yes" >&5
7406echo "${ECHO_T}yes" >&6
7407 else
7408 echo "$as_me:$LINENO: result: no" >&5
7409echo "${ECHO_T}no" >&6
7410 fi
7411
7412
5005acfe 7413 enablestring=
e6cc62c6
VS
7414 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7415echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7416 no_cache=0
7417 # Check whether --enable-listbox or --disable-listbox was given.
7418if test "${enable_listbox+set}" = set; then
7419 enableval="$enable_listbox"
e6cc62c6 7420
10f2d63a
VZ
7421 if test "$enableval" = yes; then
7422 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7423 else
7424 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7425 fi
e6cc62c6 7426
10f2d63a 7427else
e6cc62c6 7428
10f2d63a
VZ
7429 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7430 if test "x$LINE" != x ; then
7431 eval "DEFAULT_$LINE"
7432 else
7433 no_cache=1
7434 fi
7435
7436 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7437
e6cc62c6 7438fi;
10f2d63a
VZ
7439
7440 eval "$ac_cv_use_listbox"
7441 if test "$no_cache" != 1; then
7442 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7443 fi
7444
7445 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7446 echo "$as_me:$LINENO: result: yes" >&5
7447echo "${ECHO_T}yes" >&6
10f2d63a 7448 else
e6cc62c6
VS
7449 echo "$as_me:$LINENO: result: no" >&5
7450echo "${ECHO_T}no" >&6
10f2d63a 7451 fi
e6cc62c6 7452
10f2d63a 7453
5005acfe 7454 enablestring=
e6cc62c6
VS
7455 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7456echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7457 no_cache=0
7458 # Check whether --enable-listctrl or --disable-listctrl was given.
7459if test "${enable_listctrl+set}" = set; then
7460 enableval="$enable_listctrl"
e6cc62c6 7461
10f2d63a
VZ
7462 if test "$enableval" = yes; then
7463 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7464 else
7465 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7466 fi
e6cc62c6 7467
10f2d63a 7468else
e6cc62c6 7469
10f2d63a
VZ
7470 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7471 if test "x$LINE" != x ; then
7472 eval "DEFAULT_$LINE"
7473 else
7474 no_cache=1
7475 fi
7476
7477 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7478
e6cc62c6 7479fi;
10f2d63a
VZ
7480
7481 eval "$ac_cv_use_listctrl"
7482 if test "$no_cache" != 1; then
7483 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7484 fi
7485
7486 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7487 echo "$as_me:$LINENO: result: yes" >&5
7488echo "${ECHO_T}yes" >&6
10f2d63a 7489 else
e6cc62c6
VS
7490 echo "$as_me:$LINENO: result: no" >&5
7491echo "${ECHO_T}no" >&6
10f2d63a 7492 fi
e6cc62c6 7493
10f2d63a 7494
5005acfe 7495 enablestring=
e6cc62c6
VS
7496 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7497echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7498 no_cache=0
7499 # Check whether --enable-notebook or --disable-notebook was given.
7500if test "${enable_notebook+set}" = set; then
7501 enableval="$enable_notebook"
e6cc62c6 7502
10f2d63a
VZ
7503 if test "$enableval" = yes; then
7504 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7505 else
7506 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7507 fi
e6cc62c6 7508
10f2d63a 7509else
e6cc62c6 7510
10f2d63a
VZ
7511 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7512 if test "x$LINE" != x ; then
7513 eval "DEFAULT_$LINE"
7514 else
7515 no_cache=1
7516 fi
7517
7518 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7519
e6cc62c6 7520fi;
10f2d63a
VZ
7521
7522 eval "$ac_cv_use_notebook"
7523 if test "$no_cache" != 1; then
7524 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7525 fi
7526
7527 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7528 echo "$as_me:$LINENO: result: yes" >&5
7529echo "${ECHO_T}yes" >&6
10f2d63a 7530 else
e6cc62c6
VS
7531 echo "$as_me:$LINENO: result: no" >&5
7532echo "${ECHO_T}no" >&6
10f2d63a 7533 fi
e6cc62c6 7534
10f2d63a 7535
5005acfe 7536 enablestring=
e6cc62c6
VS
7537 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7538echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7539 no_cache=0
7540 # Check whether --enable-radiobox or --disable-radiobox was given.
7541if test "${enable_radiobox+set}" = set; then
7542 enableval="$enable_radiobox"
e6cc62c6 7543
10f2d63a
VZ
7544 if test "$enableval" = yes; then
7545 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7546 else
7547 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7548 fi
e6cc62c6 7549
10f2d63a 7550else
e6cc62c6 7551
10f2d63a
VZ
7552 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7553 if test "x$LINE" != x ; then
7554 eval "DEFAULT_$LINE"
7555 else
7556 no_cache=1
7557 fi
7558
7559 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7560
e6cc62c6 7561fi;
10f2d63a
VZ
7562
7563 eval "$ac_cv_use_radiobox"
7564 if test "$no_cache" != 1; then
7565 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7566 fi
7567
7568 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7569 echo "$as_me:$LINENO: result: yes" >&5
7570echo "${ECHO_T}yes" >&6
10f2d63a 7571 else
e6cc62c6
VS
7572 echo "$as_me:$LINENO: result: no" >&5
7573echo "${ECHO_T}no" >&6
10f2d63a 7574 fi
e6cc62c6 7575
10f2d63a 7576
5005acfe 7577 enablestring=
e6cc62c6
VS
7578 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7579echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7580 no_cache=0
7581 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7582if test "${enable_radiobtn+set}" = set; then
7583 enableval="$enable_radiobtn"
e6cc62c6 7584
10f2d63a
VZ
7585 if test "$enableval" = yes; then
7586 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7587 else
7588 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7589 fi
e6cc62c6 7590
10f2d63a 7591else
e6cc62c6 7592
10f2d63a
VZ
7593 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7594 if test "x$LINE" != x ; then
7595 eval "DEFAULT_$LINE"
7596 else
7597 no_cache=1
7598 fi
7599
7600 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7601
e6cc62c6 7602fi;
10f2d63a
VZ
7603
7604 eval "$ac_cv_use_radiobtn"
7605 if test "$no_cache" != 1; then
7606 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7607 fi
7608
7609 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7610 echo "$as_me:$LINENO: result: yes" >&5
7611echo "${ECHO_T}yes" >&6
10f2d63a 7612 else
e6cc62c6
VS
7613 echo "$as_me:$LINENO: result: no" >&5
7614echo "${ECHO_T}no" >&6
10f2d63a 7615 fi
e6cc62c6 7616
10f2d63a 7617
5005acfe 7618 enablestring=
e6cc62c6
VS
7619 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7620echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7621 no_cache=0
7622 # Check whether --enable-sash or --disable-sash was given.
7623if test "${enable_sash+set}" = set; then
7624 enableval="$enable_sash"
e6cc62c6 7625
10f2d63a
VZ
7626 if test "$enableval" = yes; then
7627 ac_cv_use_sash='wxUSE_SASH=yes'
7628 else
7629 ac_cv_use_sash='wxUSE_SASH=no'
7630 fi
e6cc62c6 7631
10f2d63a 7632else
e6cc62c6 7633
10f2d63a
VZ
7634 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7635 if test "x$LINE" != x ; then
7636 eval "DEFAULT_$LINE"
7637 else
7638 no_cache=1
7639 fi
7640
7641 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7642
e6cc62c6 7643fi;
10f2d63a
VZ
7644
7645 eval "$ac_cv_use_sash"
7646 if test "$no_cache" != 1; then
7647 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7648 fi
7649
7650 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7651 echo "$as_me:$LINENO: result: yes" >&5
7652echo "${ECHO_T}yes" >&6
10f2d63a 7653 else
e6cc62c6
VS
7654 echo "$as_me:$LINENO: result: no" >&5
7655echo "${ECHO_T}no" >&6
10f2d63a 7656 fi
e6cc62c6 7657
10f2d63a 7658
5005acfe 7659 enablestring=
e6cc62c6
VS
7660 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7661echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7662 no_cache=0
7663 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7664if test "${enable_scrollbar+set}" = set; then
7665 enableval="$enable_scrollbar"
e6cc62c6 7666
10f2d63a
VZ
7667 if test "$enableval" = yes; then
7668 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7669 else
7670 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7671 fi
e6cc62c6 7672
10f2d63a 7673else
e6cc62c6 7674
10f2d63a
VZ
7675 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7676 if test "x$LINE" != x ; then
7677 eval "DEFAULT_$LINE"
7678 else
7679 no_cache=1
7680 fi
7681
7682 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7683
e6cc62c6 7684fi;
10f2d63a
VZ
7685
7686 eval "$ac_cv_use_scrollbar"
7687 if test "$no_cache" != 1; then
7688 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7689 fi
7690
7691 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7692 echo "$as_me:$LINENO: result: yes" >&5
7693echo "${ECHO_T}yes" >&6
10f2d63a 7694 else
e6cc62c6
VS
7695 echo "$as_me:$LINENO: result: no" >&5
7696echo "${ECHO_T}no" >&6
10f2d63a 7697 fi
e6cc62c6 7698
10f2d63a 7699
5005acfe 7700 enablestring=
e6cc62c6
VS
7701 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7702echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7703 no_cache=0
7704 # Check whether --enable-slider or --disable-slider was given.
7705if test "${enable_slider+set}" = set; then
7706 enableval="$enable_slider"
e6cc62c6 7707
10f2d63a
VZ
7708 if test "$enableval" = yes; then
7709 ac_cv_use_slider='wxUSE_SLIDER=yes'
7710 else
7711 ac_cv_use_slider='wxUSE_SLIDER=no'
7712 fi
e6cc62c6 7713
10f2d63a 7714else
e6cc62c6 7715
10f2d63a
VZ
7716 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7717 if test "x$LINE" != x ; then
7718 eval "DEFAULT_$LINE"
7719 else
7720 no_cache=1
7721 fi
7722
7723 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7724
e6cc62c6 7725fi;
10f2d63a
VZ
7726
7727 eval "$ac_cv_use_slider"
7728 if test "$no_cache" != 1; then
7729 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7730 fi
7731
7732 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7733 echo "$as_me:$LINENO: result: yes" >&5
7734echo "${ECHO_T}yes" >&6
10f2d63a 7735 else
e6cc62c6
VS
7736 echo "$as_me:$LINENO: result: no" >&5
7737echo "${ECHO_T}no" >&6
10f2d63a 7738 fi
e6cc62c6 7739
10f2d63a 7740
5005acfe 7741 enablestring=
e6cc62c6
VS
7742 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7743echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7744 no_cache=0
7745 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7746if test "${enable_spinbtn+set}" = set; then
7747 enableval="$enable_spinbtn"
e6cc62c6 7748
10f2d63a
VZ
7749 if test "$enableval" = yes; then
7750 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7751 else
7752 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7753 fi
e6cc62c6 7754
10f2d63a 7755else
e6cc62c6 7756
10f2d63a
VZ
7757 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7758 if test "x$LINE" != x ; then
7759 eval "DEFAULT_$LINE"
7760 else
7761 no_cache=1
7762 fi
7763
7764 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7765
e6cc62c6 7766fi;
10f2d63a
VZ
7767
7768 eval "$ac_cv_use_spinbtn"
7769 if test "$no_cache" != 1; then
7770 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7771 fi
7772
7773 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7774 echo "$as_me:$LINENO: result: yes" >&5
7775echo "${ECHO_T}yes" >&6
10f2d63a 7776 else
e6cc62c6
VS
7777 echo "$as_me:$LINENO: result: no" >&5
7778echo "${ECHO_T}no" >&6
10f2d63a 7779 fi
e6cc62c6 7780
10f2d63a 7781
5005acfe 7782 enablestring=
e6cc62c6
VS
7783 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7784echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7785 no_cache=0
7786 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7787if test "${enable_spinctrl+set}" = set; then
7788 enableval="$enable_spinctrl"
e6cc62c6 7789
56cfaa52
RR
7790 if test "$enableval" = yes; then
7791 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7792 else
7793 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7794 fi
e6cc62c6 7795
56cfaa52 7796else
e6cc62c6 7797
56cfaa52
RR
7798 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7799 if test "x$LINE" != x ; then
7800 eval "DEFAULT_$LINE"
7801 else
7802 no_cache=1
7803 fi
7804
7805 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7806
e6cc62c6 7807fi;
56cfaa52
RR
7808
7809 eval "$ac_cv_use_spinctrl"
7810 if test "$no_cache" != 1; then
7811 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7812 fi
7813
7814 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7815 echo "$as_me:$LINENO: result: yes" >&5
7816echo "${ECHO_T}yes" >&6
56cfaa52 7817 else
e6cc62c6
VS
7818 echo "$as_me:$LINENO: result: no" >&5
7819echo "${ECHO_T}no" >&6
56cfaa52 7820 fi
e6cc62c6 7821
56cfaa52 7822
5005acfe 7823 enablestring=
e6cc62c6
VS
7824 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7825echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7826 no_cache=0
7827 # Check whether --enable-splitter or --disable-splitter was given.
7828if test "${enable_splitter+set}" = set; then
7829 enableval="$enable_splitter"
e6cc62c6 7830
10f2d63a
VZ
7831 if test "$enableval" = yes; then
7832 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7833 else
7834 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7835 fi
e6cc62c6 7836
10f2d63a 7837else
e6cc62c6 7838
10f2d63a
VZ
7839 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7840 if test "x$LINE" != x ; then
7841 eval "DEFAULT_$LINE"
7842 else
7843 no_cache=1
7844 fi
7845
7846 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7847
e6cc62c6 7848fi;
10f2d63a
VZ
7849
7850 eval "$ac_cv_use_splitter"
7851 if test "$no_cache" != 1; then
7852 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7853 fi
7854
7855 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7856 echo "$as_me:$LINENO: result: yes" >&5
7857echo "${ECHO_T}yes" >&6
10f2d63a 7858 else
e6cc62c6
VS
7859 echo "$as_me:$LINENO: result: no" >&5
7860echo "${ECHO_T}no" >&6
10f2d63a 7861 fi
e6cc62c6 7862
10f2d63a 7863
5005acfe 7864 enablestring=
e6cc62c6
VS
7865 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7866echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7867 no_cache=0
7868 # Check whether --enable-statbmp or --disable-statbmp was given.
7869if test "${enable_statbmp+set}" = set; then
7870 enableval="$enable_statbmp"
e6cc62c6 7871
10f2d63a
VZ
7872 if test "$enableval" = yes; then
7873 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7874 else
7875 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7876 fi
e6cc62c6 7877
10f2d63a 7878else
e6cc62c6 7879
10f2d63a
VZ
7880 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7881 if test "x$LINE" != x ; then
7882 eval "DEFAULT_$LINE"
7883 else
7884 no_cache=1
7885 fi
7886
7887 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7888
e6cc62c6 7889fi;
10f2d63a
VZ
7890
7891 eval "$ac_cv_use_statbmp"
7892 if test "$no_cache" != 1; then
7893 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7894 fi
7895
7896 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7897 echo "$as_me:$LINENO: result: yes" >&5
7898echo "${ECHO_T}yes" >&6
10f2d63a 7899 else
e6cc62c6
VS
7900 echo "$as_me:$LINENO: result: no" >&5
7901echo "${ECHO_T}no" >&6
10f2d63a 7902 fi
e6cc62c6 7903
10f2d63a 7904
5005acfe 7905 enablestring=
e6cc62c6
VS
7906 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7907echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7908 no_cache=0
7909 # Check whether --enable-statbox or --disable-statbox was given.
7910if test "${enable_statbox+set}" = set; then
7911 enableval="$enable_statbox"
e6cc62c6 7912
10f2d63a
VZ
7913 if test "$enableval" = yes; then
7914 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7915 else
7916 ac_cv_use_statbox='wxUSE_STATBOX=no'
7917 fi
e6cc62c6 7918
10f2d63a 7919else
e6cc62c6 7920
10f2d63a
VZ
7921 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7922 if test "x$LINE" != x ; then
7923 eval "DEFAULT_$LINE"
7924 else
7925 no_cache=1
7926 fi
7927
7928 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7929
e6cc62c6 7930fi;
10f2d63a
VZ
7931
7932 eval "$ac_cv_use_statbox"
7933 if test "$no_cache" != 1; then
7934 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7935 fi
7936
7937 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7938 echo "$as_me:$LINENO: result: yes" >&5
7939echo "${ECHO_T}yes" >&6
10f2d63a 7940 else
e6cc62c6
VS
7941 echo "$as_me:$LINENO: result: no" >&5
7942echo "${ECHO_T}no" >&6
10f2d63a 7943 fi
e6cc62c6 7944
10f2d63a 7945
5005acfe 7946 enablestring=
e6cc62c6
VS
7947 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7948echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7949 no_cache=0
7950 # Check whether --enable-statline or --disable-statline was given.
7951if test "${enable_statline+set}" = set; then
7952 enableval="$enable_statline"
e6cc62c6 7953
10f2d63a
VZ
7954 if test "$enableval" = yes; then
7955 ac_cv_use_statline='wxUSE_STATLINE=yes'
7956 else
7957 ac_cv_use_statline='wxUSE_STATLINE=no'
7958 fi
e6cc62c6 7959
10f2d63a 7960else
e6cc62c6 7961
10f2d63a
VZ
7962 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7963 if test "x$LINE" != x ; then
7964 eval "DEFAULT_$LINE"
7965 else
7966 no_cache=1
7967 fi
7968
7969 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7970
e6cc62c6 7971fi;
10f2d63a
VZ
7972
7973 eval "$ac_cv_use_statline"
7974 if test "$no_cache" != 1; then
7975 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7976 fi
7977
7978 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7979 echo "$as_me:$LINENO: result: yes" >&5
7980echo "${ECHO_T}yes" >&6
10f2d63a 7981 else
e6cc62c6
VS
7982 echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6
10f2d63a 7984 fi
e6cc62c6 7985
10f2d63a 7986
5005acfe 7987 enablestring=
e6cc62c6
VS
7988 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7989echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7990 no_cache=0
7991 # Check whether --enable-stattext or --disable-stattext was given.
7992if test "${enable_stattext+set}" = set; then
7993 enableval="$enable_stattext"
e6cc62c6 7994
1e6feb95
VZ
7995 if test "$enableval" = yes; then
7996 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7997 else
7998 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7999 fi
e6cc62c6 8000
1e6feb95 8001else
e6cc62c6 8002
1e6feb95
VZ
8003 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
8004 if test "x$LINE" != x ; then
8005 eval "DEFAULT_$LINE"
8006 else
8007 no_cache=1
8008 fi
8009
8010 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 8011
e6cc62c6 8012fi;
1e6feb95
VZ
8013
8014 eval "$ac_cv_use_stattext"
8015 if test "$no_cache" != 1; then
8016 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
8017 fi
8018
8019 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
8020 echo "$as_me:$LINENO: result: yes" >&5
8021echo "${ECHO_T}yes" >&6
1e6feb95 8022 else
e6cc62c6
VS
8023 echo "$as_me:$LINENO: result: no" >&5
8024echo "${ECHO_T}no" >&6
1e6feb95 8025 fi
e6cc62c6 8026
1e6feb95 8027
5005acfe 8028 enablestring=
e6cc62c6
VS
8029 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
8030echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
8031 no_cache=0
8032 # Check whether --enable-statusbar or --disable-statusbar was given.
8033if test "${enable_statusbar+set}" = set; then
8034 enableval="$enable_statusbar"
e6cc62c6 8035
10f2d63a
VZ
8036 if test "$enableval" = yes; then
8037 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8038 else
8039 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8040 fi
e6cc62c6 8041
10f2d63a 8042else
e6cc62c6 8043
10f2d63a
VZ
8044 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8045 if test "x$LINE" != x ; then
8046 eval "DEFAULT_$LINE"
8047 else
8048 no_cache=1
8049 fi
8050
8051 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 8052
e6cc62c6 8053fi;
10f2d63a
VZ
8054
8055 eval "$ac_cv_use_statusbar"
8056 if test "$no_cache" != 1; then
8057 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8058 fi
8059
8060 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
8061 echo "$as_me:$LINENO: result: yes" >&5
8062echo "${ECHO_T}yes" >&6
10f2d63a 8063 else
e6cc62c6
VS
8064 echo "$as_me:$LINENO: result: no" >&5
8065echo "${ECHO_T}no" >&6
10f2d63a 8066 fi
e6cc62c6 8067
10f2d63a 8068
5005acfe 8069 enablestring=
e6cc62c6
VS
8070 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8071echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
8072 no_cache=0
8073 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8074if test "${enable_tabdialog+set}" = set; then
8075 enableval="$enable_tabdialog"
e6cc62c6 8076
10f2d63a
VZ
8077 if test "$enableval" = yes; then
8078 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8079 else
8080 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8081 fi
e6cc62c6 8082
10f2d63a 8083else
e6cc62c6 8084
10f2d63a
VZ
8085 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8086 if test "x$LINE" != x ; then
8087 eval "DEFAULT_$LINE"
8088 else
8089 no_cache=1
8090 fi
8091
8092 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 8093
e6cc62c6 8094fi;
10f2d63a
VZ
8095
8096 eval "$ac_cv_use_tabdialog"
8097 if test "$no_cache" != 1; then
8098 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8099 fi
8100
8101 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
8102 echo "$as_me:$LINENO: result: yes" >&5
8103echo "${ECHO_T}yes" >&6
10f2d63a 8104 else
e6cc62c6
VS
8105 echo "$as_me:$LINENO: result: no" >&5
8106echo "${ECHO_T}no" >&6
10f2d63a 8107 fi
e6cc62c6 8108
10f2d63a 8109
5005acfe 8110 enablestring=
e6cc62c6
VS
8111 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8112echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
8113 no_cache=0
8114 # Check whether --enable-textctrl or --disable-textctrl was given.
8115if test "${enable_textctrl+set}" = set; then
8116 enableval="$enable_textctrl"
e6cc62c6 8117
1e6feb95
VZ
8118 if test "$enableval" = yes; then
8119 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8120 else
8121 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8122 fi
e6cc62c6 8123
1e6feb95 8124else
e6cc62c6 8125
1e6feb95
VZ
8126 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8127 if test "x$LINE" != x ; then
8128 eval "DEFAULT_$LINE"
8129 else
8130 no_cache=1
8131 fi
8132
8133 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 8134
e6cc62c6 8135fi;
1e6feb95
VZ
8136
8137 eval "$ac_cv_use_textctrl"
8138 if test "$no_cache" != 1; then
8139 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8140 fi
8141
8142 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
8143 echo "$as_me:$LINENO: result: yes" >&5
8144echo "${ECHO_T}yes" >&6
1e6feb95 8145 else
e6cc62c6
VS
8146 echo "$as_me:$LINENO: result: no" >&5
8147echo "${ECHO_T}no" >&6
1e6feb95 8148 fi
e6cc62c6 8149
1e6feb95 8150
5005acfe 8151 enablestring=
e6cc62c6
VS
8152 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8153echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
8154 no_cache=0
8155 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8156if test "${enable_togglebtn+set}" = set; then
8157 enableval="$enable_togglebtn"
e6cc62c6 8158
1db8dc4a
VZ
8159 if test "$enableval" = yes; then
8160 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8161 else
8162 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8163 fi
e6cc62c6 8164
1db8dc4a 8165else
e6cc62c6 8166
1db8dc4a
VZ
8167 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8168 if test "x$LINE" != x ; then
8169 eval "DEFAULT_$LINE"
8170 else
8171 no_cache=1
8172 fi
8173
8174 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 8175
e6cc62c6 8176fi;
1db8dc4a
VZ
8177
8178 eval "$ac_cv_use_togglebtn"
8179 if test "$no_cache" != 1; then
8180 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8181 fi
8182
8183 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
8184 echo "$as_me:$LINENO: result: yes" >&5
8185echo "${ECHO_T}yes" >&6
1db8dc4a 8186 else
e6cc62c6
VS
8187 echo "$as_me:$LINENO: result: no" >&5
8188echo "${ECHO_T}no" >&6
1db8dc4a 8189 fi
e6cc62c6 8190
1db8dc4a 8191
5005acfe 8192 enablestring=
e6cc62c6
VS
8193 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8194echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8195 no_cache=0
8196 # Check whether --enable-toolbar or --disable-toolbar was given.
8197if test "${enable_toolbar+set}" = set; then
8198 enableval="$enable_toolbar"
e6cc62c6 8199
10f2d63a
VZ
8200 if test "$enableval" = yes; then
8201 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8202 else
8203 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8204 fi
e6cc62c6 8205
10f2d63a 8206else
e6cc62c6 8207
10f2d63a
VZ
8208 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8209 if test "x$LINE" != x ; then
8210 eval "DEFAULT_$LINE"
8211 else
8212 no_cache=1
8213 fi
8214
8215 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8216
e6cc62c6 8217fi;
10f2d63a
VZ
8218
8219 eval "$ac_cv_use_toolbar"
8220 if test "$no_cache" != 1; then
8221 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8222 fi
8223
8224 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8225 echo "$as_me:$LINENO: result: yes" >&5
8226echo "${ECHO_T}yes" >&6
10f2d63a 8227 else
e6cc62c6
VS
8228 echo "$as_me:$LINENO: result: no" >&5
8229echo "${ECHO_T}no" >&6
10f2d63a 8230 fi
e6cc62c6 8231
10f2d63a 8232
5005acfe 8233 enablestring=
e6cc62c6
VS
8234 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8235echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8236 no_cache=0
8237 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8238if test "${enable_tbarnative+set}" = set; then
8239 enableval="$enable_tbarnative"
e6cc62c6 8240
360d6699
VZ
8241 if test "$enableval" = yes; then
8242 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8243 else
8244 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8245 fi
e6cc62c6 8246
360d6699 8247else
e6cc62c6 8248
360d6699
VZ
8249 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8250 if test "x$LINE" != x ; then
8251 eval "DEFAULT_$LINE"
8252 else
8253 no_cache=1
8254 fi
8255
8256 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8257
e6cc62c6 8258fi;
360d6699
VZ
8259
8260 eval "$ac_cv_use_tbarnative"
8261 if test "$no_cache" != 1; then
8262 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8263 fi
8264
8265 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8266 echo "$as_me:$LINENO: result: yes" >&5
8267echo "${ECHO_T}yes" >&6
360d6699 8268 else
e6cc62c6
VS
8269 echo "$as_me:$LINENO: result: no" >&5
8270echo "${ECHO_T}no" >&6
360d6699 8271 fi
e6cc62c6 8272
360d6699 8273
5005acfe 8274 enablestring=
e6cc62c6
VS
8275 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8276echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8277 no_cache=0
8278 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8279if test "${enable_tbarsmpl+set}" = set; then
8280 enableval="$enable_tbarsmpl"
e6cc62c6 8281
360d6699
VZ
8282 if test "$enableval" = yes; then
8283 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8284 else
8285 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8286 fi
e6cc62c6 8287
360d6699 8288else
e6cc62c6 8289
360d6699
VZ
8290 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8291 if test "x$LINE" != x ; then
8292 eval "DEFAULT_$LINE"
8293 else
8294 no_cache=1
8295 fi
8296
8297 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8298
e6cc62c6 8299fi;
360d6699
VZ
8300
8301 eval "$ac_cv_use_tbarsmpl"
8302 if test "$no_cache" != 1; then
8303 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8304 fi
8305
8306 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8307 echo "$as_me:$LINENO: result: yes" >&5
8308echo "${ECHO_T}yes" >&6
360d6699 8309 else
e6cc62c6
VS
8310 echo "$as_me:$LINENO: result: no" >&5
8311echo "${ECHO_T}no" >&6
360d6699 8312 fi
e6cc62c6 8313
360d6699 8314
5005acfe 8315 enablestring=
e6cc62c6
VS
8316 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8317echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8318 no_cache=0
8319 # Check whether --enable-treectrl or --disable-treectrl was given.
8320if test "${enable_treectrl+set}" = set; then
8321 enableval="$enable_treectrl"
e6cc62c6 8322
10f2d63a
VZ
8323 if test "$enableval" = yes; then
8324 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8325 else
8326 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8327 fi
e6cc62c6 8328
10f2d63a 8329else
e6cc62c6 8330
10f2d63a
VZ
8331 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8332 if test "x$LINE" != x ; then
8333 eval "DEFAULT_$LINE"
8334 else
8335 no_cache=1
8336 fi
8337
8338 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8339
e6cc62c6 8340fi;
10f2d63a 8341
1e6feb95
VZ
8342 eval "$ac_cv_use_treectrl"
8343 if test "$no_cache" != 1; then
8344 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8345 fi
8346
8347 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8348 echo "$as_me:$LINENO: result: yes" >&5
8349echo "${ECHO_T}yes" >&6
1e6feb95 8350 else
e6cc62c6
VS
8351 echo "$as_me:$LINENO: result: no" >&5
8352echo "${ECHO_T}no" >&6
1e6feb95 8353 fi
e6cc62c6 8354
1e6feb95 8355
5005acfe 8356 enablestring=
e6cc62c6
VS
8357 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8358echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8359 no_cache=0
8360 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8361if test "${enable_tipwindow+set}" = set; then
8362 enableval="$enable_tipwindow"
e6cc62c6 8363
9926e4a4
VZ
8364 if test "$enableval" = yes; then
8365 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8366 else
8367 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8368 fi
e6cc62c6 8369
9926e4a4 8370else
e6cc62c6 8371
9926e4a4
VZ
8372 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8373 if test "x$LINE" != x ; then
8374 eval "DEFAULT_$LINE"
8375 else
8376 no_cache=1
8377 fi
8378
8379 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8380
e6cc62c6 8381fi;
9926e4a4
VZ
8382
8383 eval "$ac_cv_use_tipwindow"
8384 if test "$no_cache" != 1; then
8385 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8386 fi
8387
8388 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8389 echo "$as_me:$LINENO: result: yes" >&5
8390echo "${ECHO_T}yes" >&6
9926e4a4 8391 else
e6cc62c6
VS
8392 echo "$as_me:$LINENO: result: no" >&5
8393echo "${ECHO_T}no" >&6
9926e4a4 8394 fi
e6cc62c6 8395
9926e4a4 8396
5005acfe 8397 enablestring=
e6cc62c6
VS
8398 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8399echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8400 no_cache=0
8401 # Check whether --enable-popupwin or --disable-popupwin was given.
8402if test "${enable_popupwin+set}" = set; then
8403 enableval="$enable_popupwin"
e6cc62c6 8404
9f41d601
RR
8405 if test "$enableval" = yes; then
8406 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8407 else
8408 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8409 fi
e6cc62c6 8410
9f41d601 8411else
e6cc62c6 8412
9f41d601
RR
8413 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8414 if test "x$LINE" != x ; then
8415 eval "DEFAULT_$LINE"
8416 else
8417 no_cache=1
8418 fi
8419
8420 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8421
e6cc62c6 8422fi;
9f41d601
RR
8423
8424 eval "$ac_cv_use_popupwin"
8425 if test "$no_cache" != 1; then
8426 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8427 fi
8428
8429 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8430 echo "$as_me:$LINENO: result: yes" >&5
8431echo "${ECHO_T}yes" >&6
9f41d601 8432 else
e6cc62c6
VS
8433 echo "$as_me:$LINENO: result: no" >&5
8434echo "${ECHO_T}no" >&6
9f41d601 8435 fi
e6cc62c6 8436
52127426 8437
8284b0c5
MB
8438
8439
5005acfe 8440 enablestring=
e6cc62c6
VS
8441 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8442echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8443 no_cache=0
8444 # Check whether --enable-commondlg or --disable-commondlg was given.
8445if test "${enable_commondlg+set}" = set; then
8446 enableval="$enable_commondlg"
e6cc62c6 8447
1e6feb95
VZ
8448 if test "$enableval" = yes; then
8449 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8450 else
8451 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8452 fi
e6cc62c6 8453
1e6feb95 8454else
e6cc62c6 8455
1e6feb95
VZ
8456 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8457 if test "x$LINE" != x ; then
8458 eval "DEFAULT_$LINE"
8459 else
8460 no_cache=1
8461 fi
8462
8463 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8464
e6cc62c6 8465fi;
1e6feb95
VZ
8466
8467 eval "$ac_cv_use_commondlg"
8468 if test "$no_cache" != 1; then
8469 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8470 fi
8471
8472 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8473 echo "$as_me:$LINENO: result: yes" >&5
8474echo "${ECHO_T}yes" >&6
1e6feb95 8475 else
e6cc62c6
VS
8476 echo "$as_me:$LINENO: result: no" >&5
8477echo "${ECHO_T}no" >&6
1e6feb95 8478 fi
e6cc62c6 8479
1e6feb95 8480
5005acfe 8481 enablestring=
e6cc62c6
VS
8482 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8483echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8484 no_cache=0
8485 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8486if test "${enable_choicedlg+set}" = set; then
8487 enableval="$enable_choicedlg"
e6cc62c6 8488
1e6feb95
VZ
8489 if test "$enableval" = yes; then
8490 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8491 else
8492 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8493 fi
e6cc62c6 8494
1e6feb95 8495else
e6cc62c6 8496
1e6feb95
VZ
8497 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8498 if test "x$LINE" != x ; then
8499 eval "DEFAULT_$LINE"
8500 else
8501 no_cache=1
8502 fi
8503
8504 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8505
e6cc62c6 8506fi;
1e6feb95
VZ
8507
8508 eval "$ac_cv_use_choicedlg"
8509 if test "$no_cache" != 1; then
8510 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8511 fi
8512
8513 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8514 echo "$as_me:$LINENO: result: yes" >&5
8515echo "${ECHO_T}yes" >&6
1e6feb95 8516 else
e6cc62c6
VS
8517 echo "$as_me:$LINENO: result: no" >&5
8518echo "${ECHO_T}no" >&6
1e6feb95 8519 fi
e6cc62c6 8520
1e6feb95 8521
5005acfe 8522 enablestring=
e6cc62c6
VS
8523 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8524echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8525 no_cache=0
8526 # Check whether --enable-coldlg or --disable-coldlg was given.
8527if test "${enable_coldlg+set}" = set; then
8528 enableval="$enable_coldlg"
e6cc62c6 8529
1e6feb95
VZ
8530 if test "$enableval" = yes; then
8531 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8532 else
8533 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8534 fi
e6cc62c6 8535
1e6feb95 8536else
e6cc62c6 8537
1e6feb95
VZ
8538 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8539 if test "x$LINE" != x ; then
8540 eval "DEFAULT_$LINE"
8541 else
8542 no_cache=1
8543 fi
8544
8545 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8546
e6cc62c6 8547fi;
1e6feb95
VZ
8548
8549 eval "$ac_cv_use_coldlg"
8550 if test "$no_cache" != 1; then
8551 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8552 fi
8553
8554 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8555 echo "$as_me:$LINENO: result: yes" >&5
8556echo "${ECHO_T}yes" >&6
1e6feb95 8557 else
e6cc62c6
VS
8558 echo "$as_me:$LINENO: result: no" >&5
8559echo "${ECHO_T}no" >&6
1e6feb95 8560 fi
e6cc62c6 8561
1e6feb95 8562
5005acfe 8563 enablestring=
e6cc62c6
VS
8564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8565echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8566 no_cache=0
8567 # Check whether --enable-filedlg or --disable-filedlg was given.
8568if test "${enable_filedlg+set}" = set; then
8569 enableval="$enable_filedlg"
e6cc62c6 8570
1e6feb95
VZ
8571 if test "$enableval" = yes; then
8572 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8573 else
8574 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8575 fi
e6cc62c6 8576
1e6feb95 8577else
e6cc62c6 8578
1e6feb95
VZ
8579 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8580 if test "x$LINE" != x ; then
8581 eval "DEFAULT_$LINE"
8582 else
8583 no_cache=1
8584 fi
8585
8586 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8587
e6cc62c6 8588fi;
1e6feb95
VZ
8589
8590 eval "$ac_cv_use_filedlg"
8591 if test "$no_cache" != 1; then
8592 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8593 fi
8594
8595 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8596 echo "$as_me:$LINENO: result: yes" >&5
8597echo "${ECHO_T}yes" >&6
1e6feb95 8598 else
e6cc62c6
VS
8599 echo "$as_me:$LINENO: result: no" >&5
8600echo "${ECHO_T}no" >&6
1e6feb95 8601 fi
e6cc62c6 8602
1e6feb95 8603
5005acfe 8604 enablestring=
e6cc62c6
VS
8605 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8606echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8607 no_cache=0
69d27ff7
MB
8608 # Check whether --enable-finddlg or --disable-finddlg was given.
8609if test "${enable_finddlg+set}" = set; then
8610 enableval="$enable_finddlg"
e6cc62c6 8611
8db37e06 8612 if test "$enableval" = yes; then
69d27ff7 8613 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8614 else
69d27ff7 8615 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8616 fi
e6cc62c6 8617
8db37e06 8618else
e6cc62c6 8619
8db37e06
VZ
8620 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8621 if test "x$LINE" != x ; then
8622 eval "DEFAULT_$LINE"
8623 else
8624 no_cache=1
8625 fi
8626
69d27ff7 8627 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8628
e6cc62c6 8629fi;
8db37e06 8630
69d27ff7 8631 eval "$ac_cv_use_finddlg"
8db37e06 8632 if test "$no_cache" != 1; then
69d27ff7 8633 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8634 fi
8635
8636 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8637 echo "$as_me:$LINENO: result: yes" >&5
8638echo "${ECHO_T}yes" >&6
8db37e06 8639 else
e6cc62c6
VS
8640 echo "$as_me:$LINENO: result: no" >&5
8641echo "${ECHO_T}no" >&6
8db37e06 8642 fi
e6cc62c6 8643
8db37e06 8644
5005acfe 8645 enablestring=
e6cc62c6
VS
8646 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8647echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8648 no_cache=0
8649 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8650if test "${enable_fontdlg+set}" = set; then
8651 enableval="$enable_fontdlg"
e6cc62c6 8652
1e6feb95
VZ
8653 if test "$enableval" = yes; then
8654 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8655 else
8656 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8657 fi
e6cc62c6 8658
1e6feb95 8659else
e6cc62c6 8660
1e6feb95
VZ
8661 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8662 if test "x$LINE" != x ; then
8663 eval "DEFAULT_$LINE"
8664 else
8665 no_cache=1
8666 fi
8667
8668 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8669
e6cc62c6 8670fi;
1e6feb95
VZ
8671
8672 eval "$ac_cv_use_fontdlg"
8673 if test "$no_cache" != 1; then
8674 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8675 fi
8676
8677 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8678 echo "$as_me:$LINENO: result: yes" >&5
8679echo "${ECHO_T}yes" >&6
1e6feb95 8680 else
e6cc62c6
VS
8681 echo "$as_me:$LINENO: result: no" >&5
8682echo "${ECHO_T}no" >&6
1e6feb95 8683 fi
e6cc62c6 8684
1e6feb95 8685
5005acfe 8686 enablestring=
e6cc62c6
VS
8687 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8688echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8689 no_cache=0
8690 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8691if test "${enable_dirdlg+set}" = set; then
8692 enableval="$enable_dirdlg"
e6cc62c6 8693
1e6feb95
VZ
8694 if test "$enableval" = yes; then
8695 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8696 else
8697 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8698 fi
e6cc62c6 8699
1e6feb95 8700else
e6cc62c6 8701
1e6feb95
VZ
8702 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8703 if test "x$LINE" != x ; then
8704 eval "DEFAULT_$LINE"
8705 else
8706 no_cache=1
8707 fi
8708
8709 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8710
e6cc62c6 8711fi;
1e6feb95
VZ
8712
8713 eval "$ac_cv_use_dirdlg"
10f2d63a 8714 if test "$no_cache" != 1; then
1e6feb95 8715 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8716 fi
8717
1e6feb95 8718 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8719 echo "$as_me:$LINENO: result: yes" >&5
8720echo "${ECHO_T}yes" >&6
10f2d63a 8721 else
e6cc62c6
VS
8722 echo "$as_me:$LINENO: result: no" >&5
8723echo "${ECHO_T}no" >&6
10f2d63a 8724 fi
e6cc62c6 8725
698dcdb6 8726
5005acfe 8727 enablestring=
e6cc62c6
VS
8728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8729echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8730 no_cache=0
1e6feb95
VZ
8731 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8732if test "${enable_msgdlg+set}" = set; then
8733 enableval="$enable_msgdlg"
e6cc62c6 8734
10f2d63a 8735 if test "$enableval" = yes; then
1e6feb95 8736 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8737 else
1e6feb95 8738 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8739 fi
e6cc62c6 8740
10f2d63a 8741else
e6cc62c6 8742
1e6feb95 8743 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8744 if test "x$LINE" != x ; then
8745 eval "DEFAULT_$LINE"
8746 else
8747 no_cache=1
8748 fi
8749
1e6feb95 8750 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8751
e6cc62c6 8752fi;
10f2d63a 8753
1e6feb95 8754 eval "$ac_cv_use_msgdlg"
10f2d63a 8755 if test "$no_cache" != 1; then
1e6feb95 8756 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8757 fi
8758
1e6feb95 8759 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8760 echo "$as_me:$LINENO: result: yes" >&5
8761echo "${ECHO_T}yes" >&6
10f2d63a 8762 else
e6cc62c6
VS
8763 echo "$as_me:$LINENO: result: no" >&5
8764echo "${ECHO_T}no" >&6
10f2d63a 8765 fi
e6cc62c6 8766
10f2d63a 8767
5005acfe 8768 enablestring=
e6cc62c6
VS
8769 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8770echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8771 no_cache=0
1e6feb95
VZ
8772 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8773if test "${enable_numberdlg+set}" = set; then
8774 enableval="$enable_numberdlg"
e6cc62c6 8775
10f2d63a 8776 if test "$enableval" = yes; then
1e6feb95 8777 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8778 else
1e6feb95 8779 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8780 fi
e6cc62c6 8781
10f2d63a 8782else
e6cc62c6 8783
1e6feb95 8784 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8785 if test "x$LINE" != x ; then
8786 eval "DEFAULT_$LINE"
8787 else
8788 no_cache=1
8789 fi
8790
1e6feb95 8791 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8792
e6cc62c6 8793fi;
10f2d63a 8794
1e6feb95 8795 eval "$ac_cv_use_numberdlg"
10f2d63a 8796 if test "$no_cache" != 1; then
1e6feb95 8797 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8798 fi
8799
1e6feb95 8800 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8801 echo "$as_me:$LINENO: result: yes" >&5
8802echo "${ECHO_T}yes" >&6
10f2d63a 8803 else
e6cc62c6
VS
8804 echo "$as_me:$LINENO: result: no" >&5
8805echo "${ECHO_T}no" >&6
10f2d63a 8806 fi
e6cc62c6 8807
10f2d63a 8808
5005acfe 8809 enablestring=
e6cc62c6
VS
8810 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8811echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8812 no_cache=0
8813 # Check whether --enable-splash or --disable-splash was given.
8814if test "${enable_splash+set}" = set; then
8815 enableval="$enable_splash"
e6cc62c6 8816
cbca9943
VZ
8817 if test "$enableval" = yes; then
8818 ac_cv_use_splash='wxUSE_SPLASH=yes'
8819 else
8820 ac_cv_use_splash='wxUSE_SPLASH=no'
8821 fi
e6cc62c6 8822
cbca9943 8823else
e6cc62c6 8824
cbca9943
VZ
8825 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8826 if test "x$LINE" != x ; then
8827 eval "DEFAULT_$LINE"
8828 else
8829 no_cache=1
8830 fi
8831
8832 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8833
e6cc62c6 8834fi;
cbca9943
VZ
8835
8836 eval "$ac_cv_use_splash"
8837 if test "$no_cache" != 1; then
8838 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8839 fi
8840
8841 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8842 echo "$as_me:$LINENO: result: yes" >&5
8843echo "${ECHO_T}yes" >&6
cbca9943 8844 else
e6cc62c6
VS
8845 echo "$as_me:$LINENO: result: no" >&5
8846echo "${ECHO_T}no" >&6
cbca9943 8847 fi
e6cc62c6 8848
cbca9943 8849
5005acfe 8850 enablestring=
e6cc62c6
VS
8851 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8852echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8853 no_cache=0
8854 # Check whether --enable-textdlg or --disable-textdlg was given.
8855if test "${enable_textdlg+set}" = set; then
8856 enableval="$enable_textdlg"
e6cc62c6 8857
10f2d63a
VZ
8858 if test "$enableval" = yes; then
8859 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8860 else
8861 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8862 fi
e6cc62c6 8863
10f2d63a 8864else
e6cc62c6 8865
10f2d63a
VZ
8866 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8867 if test "x$LINE" != x ; then
8868 eval "DEFAULT_$LINE"
8869 else
8870 no_cache=1
8871 fi
8872
8873 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8874
e6cc62c6 8875fi;
10f2d63a
VZ
8876
8877 eval "$ac_cv_use_textdlg"
8878 if test "$no_cache" != 1; then
8879 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8880 fi
8881
8882 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8883 echo "$as_me:$LINENO: result: yes" >&5
8884echo "${ECHO_T}yes" >&6
10f2d63a 8885 else
e6cc62c6
VS
8886 echo "$as_me:$LINENO: result: no" >&5
8887echo "${ECHO_T}no" >&6
10f2d63a 8888 fi
e6cc62c6 8889
10f2d63a 8890
5005acfe 8891 enablestring=
e6cc62c6
VS
8892 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8893echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8894 no_cache=0
8895 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8896if test "${enable_tipdlg+set}" = set; then
8897 enableval="$enable_tipdlg"
e6cc62c6 8898
10f2d63a
VZ
8899 if test "$enableval" = yes; then
8900 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8901 else
8902 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8903 fi
e6cc62c6 8904
10f2d63a 8905else
e6cc62c6 8906
10f2d63a
VZ
8907 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8908 if test "x$LINE" != x ; then
8909 eval "DEFAULT_$LINE"
8910 else
8911 no_cache=1
8912 fi
8913
8914 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8915
e6cc62c6 8916fi;
10f2d63a
VZ
8917
8918 eval "$ac_cv_use_tipdlg"
8919 if test "$no_cache" != 1; then
8920 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8921 fi
8922
8923 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8924 echo "$as_me:$LINENO: result: yes" >&5
8925echo "${ECHO_T}yes" >&6
10f2d63a 8926 else
e6cc62c6
VS
8927 echo "$as_me:$LINENO: result: no" >&5
8928echo "${ECHO_T}no" >&6
10f2d63a 8929 fi
e6cc62c6 8930
10f2d63a 8931
5005acfe 8932 enablestring=
e6cc62c6
VS
8933 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8934echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8935 no_cache=0
8936 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8937if test "${enable_progressdlg+set}" = set; then
8938 enableval="$enable_progressdlg"
e6cc62c6 8939
10f2d63a
VZ
8940 if test "$enableval" = yes; then
8941 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8942 else
8943 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8944 fi
e6cc62c6 8945
10f2d63a 8946else
e6cc62c6 8947
10f2d63a
VZ
8948 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8949 if test "x$LINE" != x ; then
8950 eval "DEFAULT_$LINE"
8951 else
8952 no_cache=1
8953 fi
8954
8955 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8956
e6cc62c6 8957fi;
10f2d63a
VZ
8958
8959 eval "$ac_cv_use_progressdlg"
8960 if test "$no_cache" != 1; then
8961 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8962 fi
8963
8964 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8965 echo "$as_me:$LINENO: result: yes" >&5
8966echo "${ECHO_T}yes" >&6
10f2d63a 8967 else
e6cc62c6
VS
8968 echo "$as_me:$LINENO: result: no" >&5
8969echo "${ECHO_T}no" >&6
10f2d63a 8970 fi
e6cc62c6 8971
10f2d63a 8972
5005acfe 8973 enablestring=
e6cc62c6
VS
8974 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8975echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8976 no_cache=0
8977 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8978if test "${enable_wizarddlg+set}" = set; then
8979 enableval="$enable_wizarddlg"
e6cc62c6 8980
b1f5d087
VZ
8981 if test "$enableval" = yes; then
8982 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8983 else
8984 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8985 fi
e6cc62c6 8986
b1f5d087 8987else
e6cc62c6 8988
b1f5d087
VZ
8989 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8990 if test "x$LINE" != x ; then
8991 eval "DEFAULT_$LINE"
8992 else
8993 no_cache=1
8994 fi
8995
8996 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8997
e6cc62c6 8998fi;
b1f5d087
VZ
8999
9000 eval "$ac_cv_use_wizarddlg"
9001 if test "$no_cache" != 1; then
9002 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
9003 fi
9004
9005 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
9006 echo "$as_me:$LINENO: result: yes" >&5
9007echo "${ECHO_T}yes" >&6
b1f5d087 9008 else
e6cc62c6
VS
9009 echo "$as_me:$LINENO: result: no" >&5
9010echo "${ECHO_T}no" >&6
b1f5d087 9011 fi
e6cc62c6 9012
8284b0c5
MB
9013
9014
52127426 9015
5005acfe 9016 enablestring=
e6cc62c6
VS
9017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
9018echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
9019 no_cache=0
9020 # Check whether --enable-menus or --disable-menus was given.
9021if test "${enable_menus+set}" = set; then
9022 enableval="$enable_menus"
e6cc62c6 9023
1e6feb95
VZ
9024 if test "$enableval" = yes; then
9025 ac_cv_use_menus='wxUSE_MENUS=yes'
9026 else
9027 ac_cv_use_menus='wxUSE_MENUS=no'
9028 fi
e6cc62c6 9029
1e6feb95 9030else
e6cc62c6 9031
1e6feb95
VZ
9032 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9033 if test "x$LINE" != x ; then
9034 eval "DEFAULT_$LINE"
9035 else
9036 no_cache=1
9037 fi
9038
9039 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 9040
e6cc62c6 9041fi;
1e6feb95
VZ
9042
9043 eval "$ac_cv_use_menus"
9044 if test "$no_cache" != 1; then
9045 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9046 fi
9047
9048 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
9049 echo "$as_me:$LINENO: result: yes" >&5
9050echo "${ECHO_T}yes" >&6
1e6feb95 9051 else
e6cc62c6
VS
9052 echo "$as_me:$LINENO: result: no" >&5
9053echo "${ECHO_T}no" >&6
1e6feb95 9054 fi
e6cc62c6 9055
1e6feb95 9056
5005acfe 9057 enablestring=
e6cc62c6
VS
9058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9059echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
9060 no_cache=0
9061 # Check whether --enable-miniframe or --disable-miniframe was given.
9062if test "${enable_miniframe+set}" = set; then
9063 enableval="$enable_miniframe"
e6cc62c6 9064
10f2d63a
VZ
9065 if test "$enableval" = yes; then
9066 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9067 else
9068 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9069 fi
e6cc62c6 9070
10f2d63a 9071else
e6cc62c6 9072
10f2d63a
VZ
9073 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9074 if test "x$LINE" != x ; then
9075 eval "DEFAULT_$LINE"
9076 else
9077 no_cache=1
9078 fi
9079
9080 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 9081
e6cc62c6 9082fi;
10f2d63a
VZ
9083
9084 eval "$ac_cv_use_miniframe"
9085 if test "$no_cache" != 1; then
9086 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9087 fi
9088
9089 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
9090 echo "$as_me:$LINENO: result: yes" >&5
9091echo "${ECHO_T}yes" >&6
10f2d63a 9092 else
e6cc62c6
VS
9093 echo "$as_me:$LINENO: result: no" >&5
9094echo "${ECHO_T}no" >&6
10f2d63a 9095 fi
e6cc62c6 9096
10f2d63a 9097
5005acfe 9098 enablestring=
e6cc62c6
VS
9099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9100echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
9101 no_cache=0
9102 # Check whether --enable-tooltips or --disable-tooltips was given.
9103if test "${enable_tooltips+set}" = set; then
9104 enableval="$enable_tooltips"
e6cc62c6 9105
10f2d63a
VZ
9106 if test "$enableval" = yes; then
9107 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9108 else
9109 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9110 fi
e6cc62c6 9111
10f2d63a 9112else
e6cc62c6 9113
10f2d63a
VZ
9114 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9115 if test "x$LINE" != x ; then
9116 eval "DEFAULT_$LINE"
9117 else
9118 no_cache=1
9119 fi
9120
9121 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 9122
e6cc62c6 9123fi;
10f2d63a
VZ
9124
9125 eval "$ac_cv_use_tooltips"
9126 if test "$no_cache" != 1; then
9127 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9128 fi
9129
9130 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
9131 echo "$as_me:$LINENO: result: yes" >&5
9132echo "${ECHO_T}yes" >&6
10f2d63a 9133 else
e6cc62c6
VS
9134 echo "$as_me:$LINENO: result: no" >&5
9135echo "${ECHO_T}no" >&6
10f2d63a 9136 fi
e6cc62c6 9137
10f2d63a 9138
5005acfe 9139 enablestring=
e6cc62c6
VS
9140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9141echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
9142 no_cache=0
9143 # Check whether --enable-splines or --disable-splines was given.
9144if test "${enable_splines+set}" = set; then
9145 enableval="$enable_splines"
e6cc62c6 9146
10f2d63a
VZ
9147 if test "$enableval" = yes; then
9148 ac_cv_use_splines='wxUSE_SPLINES=yes'
9149 else
9150 ac_cv_use_splines='wxUSE_SPLINES=no'
9151 fi
e6cc62c6 9152
10f2d63a 9153else
e6cc62c6 9154
10f2d63a
VZ
9155 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9156 if test "x$LINE" != x ; then
9157 eval "DEFAULT_$LINE"
9158 else
9159 no_cache=1
9160 fi
9161
9162 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 9163
e6cc62c6 9164fi;
10f2d63a
VZ
9165
9166 eval "$ac_cv_use_splines"
9167 if test "$no_cache" != 1; then
9168 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9169 fi
9170
9171 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
9172 echo "$as_me:$LINENO: result: yes" >&5
9173echo "${ECHO_T}yes" >&6
10f2d63a 9174 else
e6cc62c6
VS
9175 echo "$as_me:$LINENO: result: no" >&5
9176echo "${ECHO_T}no" >&6
10f2d63a 9177 fi
e6cc62c6 9178
10f2d63a 9179
5005acfe 9180 enablestring=
e6cc62c6
VS
9181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9182echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
9183 no_cache=0
9184 # Check whether --enable-validators or --disable-validators was given.
9185if test "${enable_validators+set}" = set; then
9186 enableval="$enable_validators"
e6cc62c6 9187
10f2d63a
VZ
9188 if test "$enableval" = yes; then
9189 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9190 else
9191 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9192 fi
e6cc62c6 9193
10f2d63a 9194else
e6cc62c6 9195
10f2d63a
VZ
9196 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9197 if test "x$LINE" != x ; then
9198 eval "DEFAULT_$LINE"
9199 else
9200 no_cache=1
9201 fi
9202
9203 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9204
e6cc62c6 9205fi;
10f2d63a
VZ
9206
9207 eval "$ac_cv_use_validators"
9208 if test "$no_cache" != 1; then
9209 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9210 fi
9211
9212 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9213 echo "$as_me:$LINENO: result: yes" >&5
9214echo "${ECHO_T}yes" >&6
10f2d63a 9215 else
e6cc62c6
VS
9216 echo "$as_me:$LINENO: result: no" >&5
9217echo "${ECHO_T}no" >&6
10f2d63a 9218 fi
e6cc62c6 9219
10f2d63a 9220
5005acfe 9221 enablestring=
e6cc62c6
VS
9222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9223echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9224 no_cache=0
9225 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9226if test "${enable_busyinfo+set}" = set; then
9227 enableval="$enable_busyinfo"
e6cc62c6 9228
10f2d63a
VZ
9229 if test "$enableval" = yes; then
9230 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9231 else
9232 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9233 fi
e6cc62c6 9234
10f2d63a 9235else
e6cc62c6 9236
10f2d63a
VZ
9237 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9238 if test "x$LINE" != x ; then
9239 eval "DEFAULT_$LINE"
9240 else
9241 no_cache=1
9242 fi
9243
9244 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9245
e6cc62c6 9246fi;
10f2d63a
VZ
9247
9248 eval "$ac_cv_use_busyinfo"
9249 if test "$no_cache" != 1; then
9250 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9251 fi
9252
9253 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9254 echo "$as_me:$LINENO: result: yes" >&5
9255echo "${ECHO_T}yes" >&6
10f2d63a 9256 else
e6cc62c6
VS
9257 echo "$as_me:$LINENO: result: no" >&5
9258echo "${ECHO_T}no" >&6
10f2d63a 9259 fi
e6cc62c6 9260
10f2d63a 9261
5005acfe 9262 enablestring=
e6cc62c6
VS
9263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9264echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9265 no_cache=0
9266 # Check whether --enable-joystick or --disable-joystick was given.
9267if test "${enable_joystick+set}" = set; then
9268 enableval="$enable_joystick"
e6cc62c6 9269
f6bcfd97
BP
9270 if test "$enableval" = yes; then
9271 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9272 else
9273 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9274 fi
e6cc62c6 9275
f6bcfd97 9276else
e6cc62c6 9277
f6bcfd97
BP
9278 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9279 if test "x$LINE" != x ; then
9280 eval "DEFAULT_$LINE"
9281 else
9282 no_cache=1
9283 fi
9284
9285 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9286
e6cc62c6 9287fi;
f6bcfd97
BP
9288
9289 eval "$ac_cv_use_joystick"
9290 if test "$no_cache" != 1; then
9291 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9292 fi
9293
9294 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9295 echo "$as_me:$LINENO: result: yes" >&5
9296echo "${ECHO_T}yes" >&6
f6bcfd97 9297 else
e6cc62c6
VS
9298 echo "$as_me:$LINENO: result: no" >&5
9299echo "${ECHO_T}no" >&6
f6bcfd97 9300 fi
e6cc62c6 9301
698dcdb6 9302
5005acfe 9303 enablestring=
e6cc62c6
VS
9304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9305echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9306 no_cache=0
9307 # Check whether --enable-metafile or --disable-metafile was given.
9308if test "${enable_metafile+set}" = set; then
9309 enableval="$enable_metafile"
e6cc62c6 9310
1e6feb95
VZ
9311 if test "$enableval" = yes; then
9312 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9313 else
9314 ac_cv_use_metafile='wxUSE_METAFILE=no'
9315 fi
e6cc62c6 9316
1e6feb95 9317else
e6cc62c6 9318
1e6feb95
VZ
9319 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9320 if test "x$LINE" != x ; then
9321 eval "DEFAULT_$LINE"
9322 else
9323 no_cache=1
9324 fi
9325
9326 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9327
e6cc62c6 9328fi;
1e6feb95
VZ
9329
9330 eval "$ac_cv_use_metafile"
9331 if test "$no_cache" != 1; then
9332 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9333 fi
9334
9335 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9336 echo "$as_me:$LINENO: result: yes" >&5
9337echo "${ECHO_T}yes" >&6
1e6feb95 9338 else
e6cc62c6
VS
9339 echo "$as_me:$LINENO: result: no" >&5
9340echo "${ECHO_T}no" >&6
1e6feb95 9341 fi
e6cc62c6 9342
1e6feb95 9343
5005acfe 9344 enablestring=
e6cc62c6
VS
9345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9346echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9347 no_cache=0
9348 # Check whether --enable-dragimage or --disable-dragimage was given.
9349if test "${enable_dragimage+set}" = set; then
9350 enableval="$enable_dragimage"
e6cc62c6 9351
24fd6d87
VZ
9352 if test "$enableval" = yes; then
9353 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9354 else
9355 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9356 fi
e6cc62c6 9357
24fd6d87 9358else
e6cc62c6 9359
24fd6d87
VZ
9360 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9361 if test "x$LINE" != x ; then
9362 eval "DEFAULT_$LINE"
9363 else
9364 no_cache=1
9365 fi
9366
9367 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9368
e6cc62c6 9369fi;
24fd6d87
VZ
9370
9371 eval "$ac_cv_use_dragimage"
9372 if test "$no_cache" != 1; then
9373 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9374 fi
9375
9376 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9377 echo "$as_me:$LINENO: result: yes" >&5
9378echo "${ECHO_T}yes" >&6
24fd6d87 9379 else
e6cc62c6
VS
9380 echo "$as_me:$LINENO: result: no" >&5
9381echo "${ECHO_T}no" >&6
24fd6d87 9382 fi
e6cc62c6 9383
52127426 9384
7bb2947d 9385 enablestring=
e6cc62c6
VS
9386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9387echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9388 no_cache=0
9389 # Check whether --enable-accessibility or --disable-accessibility was given.
9390if test "${enable_accessibility+set}" = set; then
9391 enableval="$enable_accessibility"
e6cc62c6 9392
7bb2947d
MB
9393 if test "$enableval" = yes; then
9394 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9395 else
9396 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9397 fi
e6cc62c6 9398
7bb2947d 9399else
e6cc62c6 9400
7bb2947d
MB
9401 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9402 if test "x$LINE" != x ; then
9403 eval "DEFAULT_$LINE"
9404 else
9405 no_cache=1
9406 fi
9407
9408 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9409
e6cc62c6 9410fi;
7bb2947d
MB
9411
9412 eval "$ac_cv_use_accessibility"
9413 if test "$no_cache" != 1; then
9414 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9415 fi
9416
9417 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9418 echo "$as_me:$LINENO: result: yes" >&5
9419echo "${ECHO_T}yes" >&6
7bb2947d 9420 else
e6cc62c6
VS
9421 echo "$as_me:$LINENO: result: no" >&5
9422echo "${ECHO_T}no" >&6
7bb2947d 9423 fi
e6cc62c6 9424
7bb2947d 9425
8284b0c5
MB
9426
9427
5005acfe 9428 enablestring=
e6cc62c6
VS
9429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9430echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9431 no_cache=0
9432 # Check whether --enable-palette or --disable-palette was given.
9433if test "${enable_palette+set}" = set; then
9434 enableval="$enable_palette"
e6cc62c6 9435
edae8572
VZ
9436 if test "$enableval" = yes; then
9437 ac_cv_use_palette='wxUSE_PALETTE=yes'
9438 else
9439 ac_cv_use_palette='wxUSE_PALETTE=no'
9440 fi
e6cc62c6 9441
edae8572 9442else
e6cc62c6 9443
edae8572
VZ
9444 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9445 if test "x$LINE" != x ; then
9446 eval "DEFAULT_$LINE"
9447 else
9448 no_cache=1
9449 fi
9450
9451 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9452
e6cc62c6 9453fi;
edae8572
VZ
9454
9455 eval "$ac_cv_use_palette"
9456 if test "$no_cache" != 1; then
9457 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9458 fi
9459
9460 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9461 echo "$as_me:$LINENO: result: yes" >&5
9462echo "${ECHO_T}yes" >&6
edae8572 9463 else
e6cc62c6
VS
9464 echo "$as_me:$LINENO: result: no" >&5
9465echo "${ECHO_T}no" >&6
edae8572 9466 fi
e6cc62c6 9467
edae8572 9468
5005acfe 9469 enablestring=
e6cc62c6
VS
9470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9471echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9472 no_cache=0
9473 # Check whether --enable-image or --disable-image was given.
9474if test "${enable_image+set}" = set; then
9475 enableval="$enable_image"
e6cc62c6 9476
0046ff7c
VS
9477 if test "$enableval" = yes; then
9478 ac_cv_use_image='wxUSE_IMAGE=yes'
9479 else
9480 ac_cv_use_image='wxUSE_IMAGE=no'
9481 fi
e6cc62c6 9482
0046ff7c 9483else
e6cc62c6 9484
0046ff7c
VS
9485 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9486 if test "x$LINE" != x ; then
9487 eval "DEFAULT_$LINE"
9488 else
9489 no_cache=1
9490 fi
9491
9492 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9493
e6cc62c6 9494fi;
0046ff7c
VS
9495
9496 eval "$ac_cv_use_image"
9497 if test "$no_cache" != 1; then
9498 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9499 fi
9500
9501 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9502 echo "$as_me:$LINENO: result: yes" >&5
9503echo "${ECHO_T}yes" >&6
0046ff7c 9504 else
e6cc62c6
VS
9505 echo "$as_me:$LINENO: result: no" >&5
9506echo "${ECHO_T}no" >&6
0046ff7c 9507 fi
e6cc62c6 9508
0046ff7c 9509
5005acfe 9510 enablestring=
e6cc62c6
VS
9511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9512echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9513 no_cache=0
9514 # Check whether --enable-gif or --disable-gif was given.
9515if test "${enable_gif+set}" = set; then
9516 enableval="$enable_gif"
e6cc62c6 9517
10f2d63a
VZ
9518 if test "$enableval" = yes; then
9519 ac_cv_use_gif='wxUSE_GIF=yes'
9520 else
9521 ac_cv_use_gif='wxUSE_GIF=no'
9522 fi
e6cc62c6 9523
10f2d63a 9524else
e6cc62c6 9525
10f2d63a
VZ
9526 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9527 if test "x$LINE" != x ; then
9528 eval "DEFAULT_$LINE"
9529 else
9530 no_cache=1
9531 fi
9532
9533 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9534
e6cc62c6 9535fi;
10f2d63a
VZ
9536
9537 eval "$ac_cv_use_gif"
9538 if test "$no_cache" != 1; then
9539 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9540 fi
9541
9542 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9543 echo "$as_me:$LINENO: result: yes" >&5
9544echo "${ECHO_T}yes" >&6
10f2d63a 9545 else
e6cc62c6
VS
9546 echo "$as_me:$LINENO: result: no" >&5
9547echo "${ECHO_T}no" >&6
10f2d63a 9548 fi
e6cc62c6 9549
10f2d63a 9550
5005acfe 9551 enablestring=
e6cc62c6
VS
9552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9553echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9554 no_cache=0
9555 # Check whether --enable-pcx or --disable-pcx was given.
9556if test "${enable_pcx+set}" = set; then
9557 enableval="$enable_pcx"
e6cc62c6 9558
10f2d63a
VZ
9559 if test "$enableval" = yes; then
9560 ac_cv_use_pcx='wxUSE_PCX=yes'
9561 else
9562 ac_cv_use_pcx='wxUSE_PCX=no'
9563 fi
e6cc62c6 9564
10f2d63a 9565else
e6cc62c6 9566
10f2d63a
VZ
9567 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9568 if test "x$LINE" != x ; then
9569 eval "DEFAULT_$LINE"
9570 else
9571 no_cache=1
9572 fi
9573
9574 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9575
e6cc62c6 9576fi;
10f2d63a
VZ
9577
9578 eval "$ac_cv_use_pcx"
9579 if test "$no_cache" != 1; then
9580 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9581 fi
9582
9583 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9584 echo "$as_me:$LINENO: result: yes" >&5
9585echo "${ECHO_T}yes" >&6
10f2d63a 9586 else
e6cc62c6
VS
9587 echo "$as_me:$LINENO: result: no" >&5
9588echo "${ECHO_T}no" >&6
10f2d63a 9589 fi
e6cc62c6 9590
10f2d63a 9591
5005acfe 9592 enablestring=
e6cc62c6
VS
9593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9594echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9595 no_cache=0
9596 # Check whether --enable-iff or --disable-iff was given.
9597if test "${enable_iff+set}" = set; then
9598 enableval="$enable_iff"
e6cc62c6 9599
4b6b4dfc
RR
9600 if test "$enableval" = yes; then
9601 ac_cv_use_iff='wxUSE_IFF=yes'
9602 else
9603 ac_cv_use_iff='wxUSE_IFF=no'
9604 fi
e6cc62c6 9605
4b6b4dfc 9606else
e6cc62c6 9607
4b6b4dfc
RR
9608 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9609 if test "x$LINE" != x ; then
9610 eval "DEFAULT_$LINE"
9611 else
9612 no_cache=1
9613 fi
9614
9615 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9616
e6cc62c6 9617fi;
4b6b4dfc
RR
9618
9619 eval "$ac_cv_use_iff"
9620 if test "$no_cache" != 1; then
9621 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9622 fi
9623
9624 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9625 echo "$as_me:$LINENO: result: yes" >&5
9626echo "${ECHO_T}yes" >&6
4b6b4dfc 9627 else
e6cc62c6
VS
9628 echo "$as_me:$LINENO: result: no" >&5
9629echo "${ECHO_T}no" >&6
4b6b4dfc 9630 fi
e6cc62c6 9631
4b6b4dfc 9632
5005acfe 9633 enablestring=
e6cc62c6
VS
9634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9635echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9636 no_cache=0
9637 # Check whether --enable-pnm or --disable-pnm was given.
9638if test "${enable_pnm+set}" = set; then
9639 enableval="$enable_pnm"
e6cc62c6 9640
10f2d63a
VZ
9641 if test "$enableval" = yes; then
9642 ac_cv_use_pnm='wxUSE_PNM=yes'
9643 else
9644 ac_cv_use_pnm='wxUSE_PNM=no'
9645 fi
e6cc62c6 9646
10f2d63a 9647else
e6cc62c6 9648
10f2d63a
VZ
9649 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9650 if test "x$LINE" != x ; then
9651 eval "DEFAULT_$LINE"
9652 else
9653 no_cache=1
9654 fi
9655
9656 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9657
e6cc62c6 9658fi;
10f2d63a
VZ
9659
9660 eval "$ac_cv_use_pnm"
9661 if test "$no_cache" != 1; then
9662 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9663 fi
9664
9665 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9666 echo "$as_me:$LINENO: result: yes" >&5
9667echo "${ECHO_T}yes" >&6
10f2d63a 9668 else
e6cc62c6
VS
9669 echo "$as_me:$LINENO: result: no" >&5
9670echo "${ECHO_T}no" >&6
10f2d63a 9671 fi
e6cc62c6 9672
10f2d63a 9673
5005acfe 9674 enablestring=
e6cc62c6
VS
9675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9676echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9677 no_cache=0
69d27ff7
MB
9678 # Check whether --enable-xpm or --disable-xpm was given.
9679if test "${enable_xpm+set}" = set; then
9680 enableval="$enable_xpm"
e6cc62c6 9681
0046ff7c 9682 if test "$enableval" = yes; then
69d27ff7 9683 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9684 else
69d27ff7 9685 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9686 fi
e6cc62c6 9687
0046ff7c 9688else
e6cc62c6 9689
0046ff7c
VS
9690 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9691 if test "x$LINE" != x ; then
9692 eval "DEFAULT_$LINE"
9693 else
9694 no_cache=1
9695 fi
9696
69d27ff7 9697 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9698
e6cc62c6 9699fi;
0046ff7c 9700
69d27ff7 9701 eval "$ac_cv_use_xpm"
0046ff7c 9702 if test "$no_cache" != 1; then
69d27ff7 9703 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9704 fi
9705
9706 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9707 echo "$as_me:$LINENO: result: yes" >&5
9708echo "${ECHO_T}yes" >&6
0046ff7c 9709 else
e6cc62c6
VS
9710 echo "$as_me:$LINENO: result: no" >&5
9711echo "${ECHO_T}no" >&6
0046ff7c 9712 fi
e6cc62c6 9713
0046ff7c 9714
5005acfe 9715 enablestring=
e6cc62c6
VS
9716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9717echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9718 no_cache=0
c7206e64
VS
9719 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9720if test "${enable_ico_cur+set}" = set; then
9721 enableval="$enable_ico_cur"
e6cc62c6 9722
658974ae 9723 if test "$enableval" = yes; then
c7206e64 9724 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9725 else
c7206e64 9726 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9727 fi
e6cc62c6 9728
658974ae 9729else
e6cc62c6 9730
658974ae
VS
9731 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9732 if test "x$LINE" != x ; then
9733 eval "DEFAULT_$LINE"
9734 else
9735 no_cache=1
9736 fi
9737
c7206e64 9738 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9739
e6cc62c6 9740fi;
658974ae 9741
c7206e64 9742 eval "$ac_cv_use_ico_cur"
658974ae 9743 if test "$no_cache" != 1; then
c7206e64 9744 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9745 fi
9746
9747 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9748 echo "$as_me:$LINENO: result: yes" >&5
9749echo "${ECHO_T}yes" >&6
658974ae 9750 else
e6cc62c6
VS
9751 echo "$as_me:$LINENO: result: no" >&5
9752echo "${ECHO_T}no" >&6
658974ae 9753 fi
e6cc62c6 9754
658974ae 9755
b12915c1
VZ
9756fi
9757
029b47ad
VS
9758
9759
9760 enablestring=
9761 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9762echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9763 no_cache=0
9764 # Check whether --enable-official_build or --disable-official_build was given.
9765if test "${enable_official_build+set}" = set; then
9766 enableval="$enable_official_build"
9767
9768 if test "$enableval" = yes; then
9769 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9770 else
9771 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9772 fi
9773
9774else
9775
9776 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9777 if test "x$LINE" != x ; then
9778 eval "DEFAULT_$LINE"
9779 else
9780 no_cache=1
9781 fi
9782
9783 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9784
9785fi;
9786
9787 eval "$ac_cv_use_official_build"
9788 if test "$no_cache" != 1; then
9789 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9790 fi
9791
9792 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9793 echo "$as_me:$LINENO: result: yes" >&5
9794echo "${ECHO_T}yes" >&6
9795 else
9796 echo "$as_me:$LINENO: result: no" >&5
9797echo "${ECHO_T}no" >&6
9798 fi
9799
9800# Check whether --enable-vendor or --disable-vendor was given.
9801if test "${enable_vendor+set}" = set; then
9802 enableval="$enable_vendor"
9803 VENDOR="$enableval"
9804fi;
9805if test "x$VENDOR" = "x"; then
9806 VENDOR="custom"
9807fi
9808
d558c907
VS
9809case "${host}" in
9810 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9811 PATH_IFS=';'
d558c907
VS
9812 ;;
9813 *)
9814 PATH_IFS=':'
d558c907
VS
9815 ;;
9816esac
9817
8284b0c5
MB
9818
9819
10f2d63a
VZ
9820 echo "saving argument cache $wx_arg_cache_file"
9821 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9822
8284b0c5 9823
e6cc62c6
VS
9824
9825echo "$as_me:$LINENO: checking for toolkit" >&5
9826echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9827
9828# In Wine, we need to default to MSW, not GTK or MOTIF
9829if test "$wxUSE_WINE" = "yes"; then
9830 DEFAULT_DEFAULT_wxUSE_GTK=0
9831 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9832 DEFAULT_DEFAULT_wxUSE_MSW=1
74500461 9833 wxUSE_SHARED=no
89e6bf6d 9834fi
10f2d63a
VZ
9835
9836if test "$wxUSE_GUI" = "yes"; then
9837
3a922bb4 9838 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9839 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9840echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9841 { (exit 1); exit 1; }; }
3a922bb4 9842 fi
b12915c1 9843
3a922bb4
RL
9844 if test "$TOOLKIT_GIVEN" = 1; then
9845 for toolkit in `echo $ALL_TOOLKITS`; do
9846 var=wxUSE_$toolkit
9847 eval "value=\$${var}"
9848 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9849 done
10f2d63a 9850 else
3a922bb4
RL
9851 for toolkit in `echo $ALL_TOOLKITS`; do
9852 if test "$has_toolkit_in_cache" != 1; then
9853 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9854 else
9855 var=DEFAULT_wxUSE_$toolkit
9856 fi
9857 eval "wxUSE_$toolkit=\$${var}"
9858 done
10f2d63a 9859 fi
10f2d63a 9860
ac0c4cc3
DE
9861 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9862 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9863 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9864
d558c907 9865 case "${host}" in
6fa882bd 9866 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9867 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9868 esac
10f2d63a 9869
3a922bb4
RL
9870 case "$NUM_TOOLKITS" in
9871 1)
9872 ;;
9873 0)
e6cc62c6
VS
9874 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9875echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9876 { (exit 1); exit 1; }; }
3a922bb4
RL
9877 ;;
9878 *)
e6cc62c6
VS
9879 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9880echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9881 { (exit 1); exit 1; }; }
3a922bb4 9882 esac
10f2d63a 9883
3a922bb4
RL
9884 for toolkit in `echo $ALL_TOOLKITS`; do
9885 var=wxUSE_$toolkit
9886 eval "value=\$${var}"
9887 if test "x$value" != x; then
9888 cache_var=CACHE_$toolkit
9889 eval "cache=\$${cache_var}"
9890 if test "$cache" = 1; then
9891 echo "$var=$value" >> ${wx_arg_cache_file}
9892 fi
9893 if test "$value" = 1; then
89fe663f 9894 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
e6cc62c6
VS
9895 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9896echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9897 fi
9898 fi
9899 done
10f2d63a 9900else
9de9b8f0
VZ
9901 if test "x$host_alias" != "x"; then
9902 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9903echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9904 else
9905 echo "$as_me:$LINENO: result: base only" >&5
9906echo "${ECHO_T}base only" >&6
9907 fi
10f2d63a
VZ
9908fi
9909
43d99b6d
VS
9910wants_win32=0
9911doesnt_want_win32=0
17234b26
MB
9912case "${host}" in
9913 *-*-cygwin*)
9914 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9915 wants_win32=1
9916 else
9917 doesnt_want_win32=1
17234b26
MB
9918 fi
9919 ;;
9920 *-*-mingw*)
43d99b6d 9921 wants_win32=1
17234b26
MB
9922 ;;
9923esac
9924
89e6bf6d
VZ
9925if test "$wxUSE_WINE" = "yes"; then
9926 wants_win32=1
9927 CC=winegcc
9928 CXX=wineg++
9929 RESCOMP=wrc
30f2fa6c 9930 LDFLAGS_GUI="-mwindows"
89e6bf6d
VZ
9931fi
9932
43d99b6d 9933if test "$wants_win32" = 1 ; then
17234b26
MB
9934 USE_UNIX=0
9935 USE_WIN32=1
e6cc62c6 9936 cat >>confdefs.h <<\_ACEOF
17234b26 9937#define __WIN32__ 1
e6cc62c6 9938_ACEOF
17234b26 9939
e6cc62c6 9940 cat >>confdefs.h <<\_ACEOF
17234b26 9941#define __WIN95__ 1
e6cc62c6 9942_ACEOF
17234b26 9943
e6cc62c6 9944 cat >>confdefs.h <<\_ACEOF
17234b26 9945#define __WINDOWS__ 1
e6cc62c6 9946_ACEOF
17234b26 9947
e6cc62c6 9948 cat >>confdefs.h <<\_ACEOF
17234b26 9949#define __GNUWIN32__ 1
e6cc62c6 9950_ACEOF
17234b26 9951
e6cc62c6 9952 cat >>confdefs.h <<\_ACEOF
17234b26 9953#define STRICT 1
e6cc62c6 9954_ACEOF
17234b26 9955
e6cc62c6 9956 cat >>confdefs.h <<\_ACEOF
17234b26 9957#define WINVER 0x0400
e6cc62c6 9958_ACEOF
17234b26 9959
43d99b6d
VS
9960fi
9961if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9962 USE_UNIX=1
9963 USE_WIN32=0
9964fi
9965
9966if test "$USE_UNIX" = 1 ; then
9967 wxUSE_UNIX=yes
e6cc62c6 9968 cat >>confdefs.h <<\_ACEOF
17234b26 9969#define __UNIX__ 1
e6cc62c6 9970_ACEOF
17234b26
MB
9971
9972fi
9973
8284b0c5 9974
e6cc62c6 9975cat >confcache <<\_ACEOF
10f2d63a
VZ
9976# This file is a shell script that caches the results of configure
9977# tests run on this system so they can be shared between configure
e6cc62c6
VS
9978# scripts and configure runs, see configure's option --config-cache.
9979# It is not useful on other systems. If it contains results you don't
9980# want to keep, you may remove or edit it.
10f2d63a 9981#
e6cc62c6
VS
9982# config.status only pays attention to the cache file if you give it
9983# the --recheck option to rerun configure.
10f2d63a 9984#
e6cc62c6
VS
9985# `ac_cv_env_foo' variables (set or unset) will be overridden when
9986# loading this file, other *unset* `ac_cv_foo' will be assigned the
9987# following values.
9988
9989_ACEOF
9990
10f2d63a
VZ
9991# The following way of writing the cache mishandles newlines in values,
9992# but we know of no workaround that is simple, portable, and efficient.
9993# So, don't put newlines in cache variables' values.
9994# Ultrix sh set writes to stderr and can't be redirected directly,
9995# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9996{
9997 (set) 2>&1 |
9998 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9999 *ac_space=\ *)
10000 # `set' does not quote correctly, so add quotes (double-quote
10001 # substitution turns \\\\ into \\, and sed turns \\ into \).
10002 sed -n \
243f8ae5
VS
10003 "s/'/'\\\\''/g;
10004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
10005 ;;
10006 *)
10007 # `set' quotes correctly as required by POSIX, so do not add quotes.
10008 sed -n \
243f8ae5 10009 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
10010 ;;
10011 esac;
10012} |
10013 sed '
10014 t clear
10015 : clear
10016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10017 t end
10018 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10019 : end' >>confcache
10020if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 10021 if test -w $cache_file; then
e6cc62c6
VS
10022 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10023 cat confcache >$cache_file
10f2d63a
VZ
10024 else
10025 echo "not updating unwritable cache $cache_file"
10026 fi
10027fi
10028rm -f confcache
10029
e59890c3 10030if test "$build" != "$host" ; then
9d353d4a 10031 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
10032 CC=$host_alias-gcc
10033 CXX=$host_alias-c++
10034 AR=$host_alias-ar
10035 RANLIB=$host_alias-ranlib
10036 DLLTOOL=$host_alias-dlltool
10037 RESCOMP=$host_alias-windres
10038 LD=$host_alias-ld
10039 NM=$host_alias-nm
10040 STRIP=$host_alias-strip
10041 else
e6cc62c6
VS
10042 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10043echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10044 { (exit 1); exit 1; }; }
3a922bb4 10045 fi
10f2d63a
VZ
10046fi
10047
ec603395 10048CFLAGS=${CFLAGS:=}
e6cc62c6
VS
10049ac_ext=c
10050ac_cpp='$CPP $CPPFLAGS'
10051ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10052ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10053ac_compiler_gnu=$ac_cv_c_compiler_gnu
10054if test -n "$ac_tool_prefix"; then
10055 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10056set dummy ${ac_tool_prefix}gcc; ac_word=$2
10057echo "$as_me:$LINENO: checking for $ac_word" >&5
10058echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10059if test "${ac_cv_prog_CC+set}" = set; then
10060 echo $ECHO_N "(cached) $ECHO_C" >&6
10061else
10062 if test -n "$CC"; then
10063 ac_cv_prog_CC="$CC" # Let the user override the test.
10064else
10065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066for as_dir in $PATH
10067do
10068 IFS=$as_save_IFS
10069 test -z "$as_dir" && as_dir=.
10070 for ac_exec_ext in '' $ac_executable_extensions; do
10071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10072 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 break 2
10075 fi
10076done
10077done
10078
10079fi
10080fi
10081CC=$ac_cv_prog_CC
10082if test -n "$CC"; then
10083 echo "$as_me:$LINENO: result: $CC" >&5
10084echo "${ECHO_T}$CC" >&6
10085else
10086 echo "$as_me:$LINENO: result: no" >&5
10087echo "${ECHO_T}no" >&6
10088fi
10089
10090fi
10091if test -z "$ac_cv_prog_CC"; then
10092 ac_ct_CC=$CC
10093 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 10094set dummy gcc; ac_word=$2
e6cc62c6
VS
10095echo "$as_me:$LINENO: checking for $ac_word" >&5
10096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10097if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10099else
10100 if test -n "$ac_ct_CC"; then
10101 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10102else
10103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104for as_dir in $PATH
10105do
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110 ac_cv_prog_ac_ct_CC="gcc"
10111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 break 2
10113 fi
10114done
10115done
10116
10117fi
10118fi
10119ac_ct_CC=$ac_cv_prog_ac_ct_CC
10120if test -n "$ac_ct_CC"; then
10121 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10122echo "${ECHO_T}$ac_ct_CC" >&6
10123else
10124 echo "$as_me:$LINENO: result: no" >&5
10125echo "${ECHO_T}no" >&6
10126fi
10127
10128 CC=$ac_ct_CC
10129else
10130 CC="$ac_cv_prog_CC"
10131fi
10132
10133if test -z "$CC"; then
10134 if test -n "$ac_tool_prefix"; then
10135 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10136set dummy ${ac_tool_prefix}cc; ac_word=$2
10137echo "$as_me:$LINENO: checking for $ac_word" >&5
10138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10139if test "${ac_cv_prog_CC+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
10141else
10142 if test -n "$CC"; then
10143 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 10144else
e6cc62c6
VS
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_CC="${ac_tool_prefix}cc"
10153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10154 break 2
10155 fi
10156done
10157done
10158
10f2d63a 10159fi
6232543b 10160fi
e6cc62c6 10161CC=$ac_cv_prog_CC
6232543b 10162if test -n "$CC"; then
e6cc62c6
VS
10163 echo "$as_me:$LINENO: result: $CC" >&5
10164echo "${ECHO_T}$CC" >&6
10165else
10166 echo "$as_me:$LINENO: result: no" >&5
10167echo "${ECHO_T}no" >&6
10168fi
10169
10170fi
10171if test -z "$ac_cv_prog_CC"; then
10172 ac_ct_CC=$CC
10173 # Extract the first word of "cc", so it can be a program name with args.
10174set dummy cc; ac_word=$2
10175echo "$as_me:$LINENO: checking for $ac_word" >&5
10176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10177if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10179else
10180 if test -n "$ac_ct_CC"; then
10181 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10182else
10183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184for as_dir in $PATH
10185do
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_prog_ac_ct_CC="cc"
10191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10193 fi
10194done
10195done
10196
10197fi
10198fi
10199ac_ct_CC=$ac_cv_prog_ac_ct_CC
10200if test -n "$ac_ct_CC"; then
10201 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10202echo "${ECHO_T}$ac_ct_CC" >&6
10203else
10204 echo "$as_me:$LINENO: result: no" >&5
10205echo "${ECHO_T}no" >&6
10206fi
10207
10208 CC=$ac_ct_CC
247f5006 10209else
e6cc62c6 10210 CC="$ac_cv_prog_CC"
247f5006
VZ
10211fi
10212
e6cc62c6 10213fi
5c6fa7d2
RR
10214if test -z "$CC"; then
10215 # Extract the first word of "cc", so it can be a program name with args.
10216set dummy cc; ac_word=$2
e6cc62c6
VS
10217echo "$as_me:$LINENO: checking for $ac_word" >&5
10218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10219if test "${ac_cv_prog_CC+set}" = set; then
10220 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10221else
10222 if test -n "$CC"; then
10223 ac_cv_prog_CC="$CC" # Let the user override the test.
10224else
10225 ac_prog_rejected=no
e6cc62c6
VS
10226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227for as_dir in $PATH
10228do
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
10231 for ac_exec_ext in '' $ac_executable_extensions; do
10232 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10233 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10234 ac_prog_rejected=yes
10235 continue
10236 fi
10237 ac_cv_prog_CC="cc"
10238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10239 break 2
10240 fi
10241done
10242done
10243
328a083c
RR
10244if test $ac_prog_rejected = yes; then
10245 # We found a bogon in the path, so make sure we never use it.
10246 set dummy $ac_cv_prog_CC
10247 shift
e6cc62c6 10248 if test $# != 0; then
328a083c 10249 # We chose a different compiler from the bogus one.
1e487827
VS
10250 # However, it has the same basename, so the bogon will be chosen
10251 # first if we set CC to just the basename; use the full file name.
10252 shift
e6cc62c6 10253 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10254 fi
1e487827
VS
10255fi
10256fi
10257fi
e6cc62c6 10258CC=$ac_cv_prog_CC
1e487827 10259if test -n "$CC"; then
e6cc62c6
VS
10260 echo "$as_me:$LINENO: result: $CC" >&5
10261echo "${ECHO_T}$CC" >&6
703e0a69 10262else
e6cc62c6
VS
10263 echo "$as_me:$LINENO: result: no" >&5
10264echo "${ECHO_T}no" >&6
703e0a69 10265fi
1e487827 10266
e6cc62c6
VS
10267fi
10268if test -z "$CC"; then
10269 if test -n "$ac_tool_prefix"; then
10270 for ac_prog in cl
10271 do
10272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10273set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10274echo "$as_me:$LINENO: checking for $ac_word" >&5
10275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10276if test "${ac_cv_prog_CC+set}" = set; then
10277 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10278else
10279 if test -n "$CC"; then
10280 ac_cv_prog_CC="$CC" # Let the user override the test.
10281else
e6cc62c6
VS
10282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283for as_dir in $PATH
10284do
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10289 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10291 break 2
10292 fi
10293done
10294done
10295
f09359cf
VS
10296fi
10297fi
e6cc62c6 10298CC=$ac_cv_prog_CC
f09359cf 10299if test -n "$CC"; then
e6cc62c6
VS
10300 echo "$as_me:$LINENO: result: $CC" >&5
10301echo "${ECHO_T}$CC" >&6
f09359cf 10302else
e6cc62c6
VS
10303 echo "$as_me:$LINENO: result: no" >&5
10304echo "${ECHO_T}no" >&6
5c6fa7d2 10305fi
1e487827 10306
e6cc62c6
VS
10307 test -n "$CC" && break
10308 done
10309fi
10310if test -z "$CC"; then
10311 ac_ct_CC=$CC
10312 for ac_prog in cl
10313do
10314 # Extract the first word of "$ac_prog", so it can be a program name with args.
10315set dummy $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_ac_ct_CC+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10320else
10321 if test -n "$ac_ct_CC"; then
10322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10323else
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_ac_ct_CC="$ac_prog"
10332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 break 2
10334 fi
10335done
10336done
f09359cf 10337
e6cc62c6
VS
10338fi
10339fi
10340ac_ct_CC=$ac_cv_prog_ac_ct_CC
10341if test -n "$ac_ct_CC"; then
10342 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10343echo "${ECHO_T}$ac_ct_CC" >&6
10344else
10345 echo "$as_me:$LINENO: result: no" >&5
10346echo "${ECHO_T}no" >&6
10347fi
f09359cf 10348
e6cc62c6
VS
10349 test -n "$ac_ct_CC" && break
10350done
247f5006 10351
e6cc62c6
VS
10352 CC=$ac_ct_CC
10353fi
10354
10355fi
10356
10357
10358test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10359See \`config.log' for more details." >&5
10360echo "$as_me: error: no acceptable C compiler found in \$PATH
10361See \`config.log' for more details." >&2;}
10362 { (exit 1); exit 1; }; }
10363
10364# Provide some information about the compiler.
10365echo "$as_me:$LINENO:" \
10366 "checking for C compiler version" >&5
10367ac_compiler=`set X $ac_compile; echo $2`
10368{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10369 (eval $ac_compiler --version </dev/null >&5) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }
10373{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10374 (eval $ac_compiler -v </dev/null >&5) 2>&5
10375 ac_status=$?
10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377 (exit $ac_status); }
10378{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10379 (eval $ac_compiler -V </dev/null >&5) 2>&5
10380 ac_status=$?
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); }
10383
10384cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10385/* confdefs.h. */
10386_ACEOF
10387cat confdefs.h >>conftest.$ac_ext
10388cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h. */
10390
10391int
10392main ()
10393{
247f5006 10394
e6cc62c6
VS
10395 ;
10396 return 0;
10397}
10398_ACEOF
10399ac_clean_files_save=$ac_clean_files
10400ac_clean_files="$ac_clean_files a.out a.exe b.out"
10401# Try to create an executable without -o first, disregard a.out.
10402# It will help us diagnose broken compilers, and finding out an intuition
10403# of exeext.
243f8ae5
VS
10404echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10405echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
e6cc62c6
VS
10406ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10407if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10408 (eval $ac_link_default) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; then
10412 # Find the output, starting from the most likely. This scheme is
10413# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10414# resort.
10415
10416# Be careful to initialize this variable, since it used to be cached.
10417# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10418ac_cv_exeext=
10419# b.out is created by i960 compilers.
10420for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10421do
10422 test -f "$ac_file" || continue
10423 case $ac_file in
10424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
243f8ae5 10425 ;;
e6cc62c6 10426 conftest.$ac_ext )
243f8ae5
VS
10427 # This is the source file.
10428 ;;
e6cc62c6 10429 [ab].out )
243f8ae5
VS
10430 # We found the default executable, but exeext='' is most
10431 # certainly right.
10432 break;;
e6cc62c6 10433 *.* )
243f8ae5
VS
10434 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10435 # FIXME: I believe we export ac_cv_exeext for Libtool,
10436 # but it would be cool to find out if it's true. Does anybody
10437 # maintain Libtool? --akim.
10438 export ac_cv_exeext
10439 break;;
e6cc62c6 10440 * )
243f8ae5 10441 break;;
e6cc62c6
VS
10442 esac
10443done
10444else
10445 echo "$as_me: failed program was:" >&5
10446sed 's/^/| /' conftest.$ac_ext >&5
10447
10448{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10449See \`config.log' for more details." >&5
10450echo "$as_me: error: C compiler cannot create executables
10451See \`config.log' for more details." >&2;}
10452 { (exit 77); exit 77; }; }
10453fi
10454
10455ac_exeext=$ac_cv_exeext
10456echo "$as_me:$LINENO: result: $ac_file" >&5
10457echo "${ECHO_T}$ac_file" >&6
10458
10459# Check the compiler produces executables we can run. If not, either
10460# the compiler is broken, or we cross compile.
10461echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10462echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10463# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10464# If not cross compiling, check that we can run a simple program.
10465if test "$cross_compiling" != yes; then
10466 if { ac_try='./$ac_file'
10467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468 (eval $ac_try) 2>&5
10469 ac_status=$?
10470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471 (exit $ac_status); }; }; then
10472 cross_compiling=no
698dcdb6 10473 else
e6cc62c6
VS
10474 if test "$cross_compiling" = maybe; then
10475 cross_compiling=yes
10476 else
10477 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10478If you meant to cross compile, use \`--host'.
10479See \`config.log' for more details." >&5
10480echo "$as_me: error: cannot run C compiled programs.
10481If you meant to cross compile, use \`--host'.
10482See \`config.log' for more details." >&2;}
10483 { (exit 1); exit 1; }; }
10484 fi
698dcdb6 10485 fi
52127426 10486fi
e6cc62c6
VS
10487echo "$as_me:$LINENO: result: yes" >&5
10488echo "${ECHO_T}yes" >&6
10489
10490rm -f a.out a.exe conftest$ac_cv_exeext b.out
10491ac_clean_files=$ac_clean_files_save
10492# Check the compiler produces executables we can run. If not, either
10493# the compiler is broken, or we cross compile.
10494echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10495echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10496echo "$as_me:$LINENO: result: $cross_compiling" >&5
10497echo "${ECHO_T}$cross_compiling" >&6
10498
10499echo "$as_me:$LINENO: checking for suffix of executables" >&5
10500echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10502 (eval $ac_link) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; then
10506 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10507# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10508# work properly (i.e., refer to `conftest.exe'), while it won't with
10509# `rm'.
10510for ac_file in conftest.exe conftest conftest.*; do
10511 test -f "$ac_file" || continue
10512 case $ac_file in
10513 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10514 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
243f8ae5
VS
10515 export ac_cv_exeext
10516 break;;
e6cc62c6
VS
10517 * ) break;;
10518 esac
10519done
5c6fa7d2 10520else
e6cc62c6
VS
10521 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10522See \`config.log' for more details." >&5
10523echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10524See \`config.log' for more details." >&2;}
10525 { (exit 1); exit 1; }; }
10526fi
10527
10528rm -f conftest$ac_cv_exeext
10529echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10530echo "${ECHO_T}$ac_cv_exeext" >&6
10531
10532rm -f conftest.$ac_ext
10533EXEEXT=$ac_cv_exeext
10534ac_exeext=$EXEEXT
10535echo "$as_me:$LINENO: checking for suffix of object files" >&5
10536echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10537if test "${ac_cv_objext+set}" = set; then
10538 echo $ECHO_N "(cached) $ECHO_C" >&6
10539else
10540 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10541/* confdefs.h. */
10542_ACEOF
10543cat confdefs.h >>conftest.$ac_ext
10544cat >>conftest.$ac_ext <<_ACEOF
10545/* end confdefs.h. */
10546
10547int
10548main ()
10549{
f09359cf 10550
e6cc62c6
VS
10551 ;
10552 return 0;
10553}
10554_ACEOF
10555rm -f conftest.o conftest.obj
10556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10557 (eval $ac_compile) 2>&5
10558 ac_status=$?
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); }; then
10561 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10562 case $ac_file in
10563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10564 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10565 break;;
10566 esac
10567done
a0b9e27f 10568else
e6cc62c6
VS
10569 echo "$as_me: failed program was:" >&5
10570sed 's/^/| /' conftest.$ac_ext >&5
10571
10572{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10573See \`config.log' for more details." >&5
10574echo "$as_me: error: cannot compute suffix of object files: cannot compile
10575See \`config.log' for more details." >&2;}
10576 { (exit 1); exit 1; }; }
a0b9e27f 10577fi
247f5006 10578
e6cc62c6
VS
10579rm -f conftest.$ac_cv_objext conftest.$ac_ext
10580fi
10581echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10582echo "${ECHO_T}$ac_cv_objext" >&6
10583OBJEXT=$ac_cv_objext
10584ac_objext=$OBJEXT
10585echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10586echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10587if test "${ac_cv_c_compiler_gnu+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10589else
e6cc62c6 10590 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10591/* confdefs.h. */
10592_ACEOF
10593cat confdefs.h >>conftest.$ac_ext
10594cat >>conftest.$ac_ext <<_ACEOF
10595/* end confdefs.h. */
10596
10597int
10598main ()
10599{
10600#ifndef __GNUC__
10601 choke me
10602#endif
10603
10604 ;
10605 return 0;
10606}
10607_ACEOF
10608rm -f conftest.$ac_objext
10609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 10610 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10611 ac_status=$?
243f8ae5
VS
10612 grep -v '^ *+' conftest.er1 >conftest.err
10613 rm -f conftest.er1
10614 cat conftest.err >&5
e6cc62c6
VS
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } &&
243f8ae5
VS
10617 { ac_try='test -z "$ac_c_werror_flag"
10618 || test ! -s conftest.err'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10621 ac_status=$?
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; } &&
10624 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10627 ac_status=$?
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; }; then
10630 ac_compiler_gnu=yes
10631else
10632 echo "$as_me: failed program was:" >&5
10633sed 's/^/| /' conftest.$ac_ext >&5
10634
10635ac_compiler_gnu=no
10636fi
243f8ae5 10637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10638ac_cv_c_compiler_gnu=$ac_compiler_gnu
10639
10640fi
10641echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10642echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10643GCC=`test $ac_compiler_gnu = yes && echo yes`
10644ac_test_CFLAGS=${CFLAGS+set}
10645ac_save_CFLAGS=$CFLAGS
10646CFLAGS="-g"
10647echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10648echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10649if test "${ac_cv_prog_cc_g+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651else
10652 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10653/* confdefs.h. */
10654_ACEOF
10655cat confdefs.h >>conftest.$ac_ext
10656cat >>conftest.$ac_ext <<_ACEOF
10657/* end confdefs.h. */
10658
10659int
10660main ()
10661{
10662
10663 ;
10664 return 0;
10665}
10666_ACEOF
10667rm -f conftest.$ac_objext
10668if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 10669 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10670 ac_status=$?
243f8ae5
VS
10671 grep -v '^ *+' conftest.er1 >conftest.err
10672 rm -f conftest.er1
10673 cat conftest.err >&5
e6cc62c6
VS
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } &&
243f8ae5
VS
10676 { ac_try='test -z "$ac_c_werror_flag"
10677 || test ! -s conftest.err'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; } &&
10683 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685 (eval $ac_try) 2>&5
10686 ac_status=$?
10687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688 (exit $ac_status); }; }; then
10f2d63a
VZ
10689 ac_cv_prog_cc_g=yes
10690else
e6cc62c6
VS
10691 echo "$as_me: failed program was:" >&5
10692sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10693
e6cc62c6 10694ac_cv_prog_cc_g=no
10f2d63a 10695fi
243f8ae5 10696rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10697fi
10698echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10699echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10700if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10701 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10702elif test $ac_cv_prog_cc_g = yes; then
10703 if test "$GCC" = yes; then
10f2d63a
VZ
10704 CFLAGS="-g -O2"
10705 else
f09359cf 10706 CFLAGS="-g"
10f2d63a 10707 fi
5c0a20c3 10708else
f09359cf
VS
10709 if test "$GCC" = yes; then
10710 CFLAGS="-O2"
10711 else
10712 CFLAGS=
10713 fi
10f2d63a 10714fi
e6cc62c6
VS
10715echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10716echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10717if test "${ac_cv_prog_cc_stdc+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719else
10720 ac_cv_prog_cc_stdc=no
10721ac_save_CC=$CC
10722cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10723/* confdefs.h. */
10724_ACEOF
10725cat confdefs.h >>conftest.$ac_ext
10726cat >>conftest.$ac_ext <<_ACEOF
10727/* end confdefs.h. */
10728#include <stdarg.h>
10729#include <stdio.h>
10730#include <sys/types.h>
10731#include <sys/stat.h>
10732/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10733struct buf { int x; };
10734FILE * (*rcsopen) (struct buf *, struct stat *, int);
10735static char *e (p, i)
10736 char **p;
10737 int i;
10738{
10739 return p[i];
10740}
10741static char *f (char * (*g) (char **, int), char **p, ...)
10742{
10743 char *s;
10744 va_list v;
10745 va_start (v,p);
10746 s = g (p, va_arg (v,int));
10747 va_end (v);
10748 return s;
10749}
243f8ae5
VS
10750
10751/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10752 function prototypes and stuff, but not '\xHH' hex character constants.
10753 These don't provoke an error unfortunately, instead are silently treated
10754 as 'x'. The following induces an error, until -std1 is added to get
10755 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10756 array size at least. It's necessary to write '\x00'==0 to get something
10757 that's true only with -std1. */
10758int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10759
e6cc62c6
VS
10760int test (int i, double x);
10761struct s1 {int (*f) (int a);};
10762struct s2 {int (*f) (double a);};
10763int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10764int argc;
10765char **argv;
10766int
10767main ()
10768{
10769return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10770 ;
10771 return 0;
10772}
10773_ACEOF
10774# Don't try gcc -ansi; that turns off useful extensions and
10775# breaks some systems' header files.
10776# AIX -qlanglvl=ansi
10777# Ultrix and OSF/1 -std1
10778# HP-UX 10.20 and later -Ae
10779# HP-UX older versions -Aa -D_HPUX_SOURCE
10780# SVR4 -Xc -D__EXTENSIONS__
10781for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10782do
10783 CC="$ac_save_CC $ac_arg"
10784 rm -f conftest.$ac_objext
10785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 10786 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10787 ac_status=$?
243f8ae5
VS
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
e6cc62c6
VS
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } &&
243f8ae5
VS
10793 { ac_try='test -z "$ac_c_werror_flag"
10794 || test ! -s conftest.err'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; } &&
10800 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; }; then
10806 ac_cv_prog_cc_stdc=$ac_arg
10807break
10808else
10809 echo "$as_me: failed program was:" >&5
10810sed 's/^/| /' conftest.$ac_ext >&5
10811
10812fi
243f8ae5 10813rm -f conftest.err conftest.$ac_objext
e6cc62c6
VS
10814done
10815rm -f conftest.$ac_ext conftest.$ac_objext
10816CC=$ac_save_CC
10817
10818fi
10819
10820case "x$ac_cv_prog_cc_stdc" in
10821 x|xno)
10822 echo "$as_me:$LINENO: result: none needed" >&5
10823echo "${ECHO_T}none needed" >&6 ;;
10824 *)
10825 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10826echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10827 CC="$CC $ac_cv_prog_cc_stdc" ;;
10828esac
10829
10830# Some people use a C++ compiler to compile C. Since we use `exit',
10831# in C++ we need to declare it. In case someone uses the same compiler
10832# for both compiling C and C++ we need to have the C++ compiler decide
10833# the declaration of exit, since it's the most demanding environment.
10834cat >conftest.$ac_ext <<_ACEOF
10835#ifndef __cplusplus
10836 choke me
10837#endif
10838_ACEOF
10839rm -f conftest.$ac_objext
10840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 10841 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10842 ac_status=$?
243f8ae5
VS
10843 grep -v '^ *+' conftest.er1 >conftest.err
10844 rm -f conftest.er1
10845 cat conftest.err >&5
e6cc62c6
VS
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } &&
243f8ae5
VS
10848 { ac_try='test -z "$ac_c_werror_flag"
10849 || test ! -s conftest.err'
10850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10851 (eval $ac_try) 2>&5
10852 ac_status=$?
10853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854 (exit $ac_status); }; } &&
10855 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857 (eval $ac_try) 2>&5
10858 ac_status=$?
10859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860 (exit $ac_status); }; }; then
10861 for ac_declaration in \
ecfd48ca 10862 '' \
e6cc62c6
VS
10863 'extern "C" void std::exit (int) throw (); using std::exit;' \
10864 'extern "C" void std::exit (int); using std::exit;' \
10865 'extern "C" void exit (int) throw ();' \
10866 'extern "C" void exit (int);' \
10867 'void exit (int);'
10868do
10869 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10870/* confdefs.h. */
10871_ACEOF
10872cat confdefs.h >>conftest.$ac_ext
10873cat >>conftest.$ac_ext <<_ACEOF
10874/* end confdefs.h. */
5a60a58a 10875$ac_declaration
ecfd48ca 10876#include <stdlib.h>
e6cc62c6
VS
10877int
10878main ()
10879{
10880exit (42);
10881 ;
10882 return 0;
10883}
10884_ACEOF
10885rm -f conftest.$ac_objext
10886if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 10887 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10888 ac_status=$?
243f8ae5
VS
10889 grep -v '^ *+' conftest.er1 >conftest.err
10890 rm -f conftest.er1
10891 cat conftest.err >&5
e6cc62c6
VS
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } &&
243f8ae5
VS
10894 { ac_try='test -z "$ac_c_werror_flag"
10895 || test ! -s conftest.err'
10896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10897 (eval $ac_try) 2>&5
10898 ac_status=$?
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); }; } &&
10901 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10904 ac_status=$?
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; }; then
10907 :
10908else
10909 echo "$as_me: failed program was:" >&5
10910sed 's/^/| /' conftest.$ac_ext >&5
10911
10912continue
10913fi
243f8ae5 10914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 10915 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10916/* confdefs.h. */
10917_ACEOF
10918cat confdefs.h >>conftest.$ac_ext
10919cat >>conftest.$ac_ext <<_ACEOF
10920/* end confdefs.h. */
10921$ac_declaration
10922int
10923main ()
10924{
10925exit (42);
10926 ;
10927 return 0;
10928}
10929_ACEOF
10930rm -f conftest.$ac_objext
10931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 10932 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10933 ac_status=$?
243f8ae5
VS
10934 grep -v '^ *+' conftest.er1 >conftest.err
10935 rm -f conftest.er1
10936 cat conftest.err >&5
e6cc62c6
VS
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); } &&
243f8ae5
VS
10939 { ac_try='test -z "$ac_c_werror_flag"
10940 || test ! -s conftest.err'
10941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10942 (eval $ac_try) 2>&5
10943 ac_status=$?
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; } &&
10946 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; }; then
10952 break
10953else
10954 echo "$as_me: failed program was:" >&5
10955sed 's/^/| /' conftest.$ac_ext >&5
10956
10957fi
243f8ae5 10958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10959done
10960rm -f conftest*
10961if test -n "$ac_declaration"; then
10962 echo '#ifdef __cplusplus' >>confdefs.h
10963 echo $ac_declaration >>confdefs.h
10964 echo '#endif' >>confdefs.h
10965fi
10966
10967else
10968 echo "$as_me: failed program was:" >&5
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971fi
243f8ae5 10972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10973ac_ext=c
10974ac_cpp='$CPP $CPPFLAGS'
10975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10977ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10978
10979
e6cc62c6
VS
10980
10981ac_ext=c
10982ac_cpp='$CPP $CPPFLAGS'
10983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985ac_compiler_gnu=$ac_cv_c_compiler_gnu
10986echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10987echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10988# On Suns, sometimes $CPP names a directory.
10989if test -n "$CPP" && test -d "$CPP"; then
10990 CPP=
10991fi
10992if test -z "$CPP"; then
e6cc62c6
VS
10993 if test "${ac_cv_prog_CPP+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10995else
10996 # Double quotes because CPP needs to be expanded
10997 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10998 do
10999 ac_preproc_ok=false
11000for ac_c_preproc_warn_flag in '' yes
11001do
11002 # Use a header file that comes with gcc, so configuring glibc
11003 # with a fresh cross-compiler works.
11004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11005 # <limits.h> exists even on freestanding compilers.
10f2d63a 11006 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
11007 # not just through cpp. "Syntax error" is here to catch this case.
11008 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11009/* confdefs.h. */
11010_ACEOF
11011cat confdefs.h >>conftest.$ac_ext
11012cat >>conftest.$ac_ext <<_ACEOF
11013/* end confdefs.h. */
11014#ifdef __STDC__
11015# include <limits.h>
11016#else
11017# include <assert.h>
11018#endif
243f8ae5 11019 Syntax error
e6cc62c6
VS
11020_ACEOF
11021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } >/dev/null; then
11029 if test -s conftest.err; then
11030 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 11031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11032 else
11033 ac_cpp_err=
11034 fi
10f2d63a 11035else
e6cc62c6
VS
11036 ac_cpp_err=yes
11037fi
11038if test -z "$ac_cpp_err"; then
a0b9e27f 11039 :
247f5006 11040else
e6cc62c6
VS
11041 echo "$as_me: failed program was:" >&5
11042sed 's/^/| /' conftest.$ac_ext >&5
11043
11044 # Broken: fails on valid input.
11045continue
11046fi
11047rm -f conftest.err conftest.$ac_ext
11048
11049 # OK, works on sane cases. Now check whether non-existent headers
11050 # can be detected and how.
11051 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11052/* confdefs.h. */
11053_ACEOF
11054cat confdefs.h >>conftest.$ac_ext
11055cat >>conftest.$ac_ext <<_ACEOF
11056/* end confdefs.h. */
11057#include <ac_nonexistent.h>
11058_ACEOF
11059if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } >/dev/null; then
11067 if test -s conftest.err; then
11068 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 11069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11070 else
11071 ac_cpp_err=
11072 fi
10f2d63a 11073else
e6cc62c6 11074 ac_cpp_err=yes
579d8138 11075fi
e6cc62c6
VS
11076if test -z "$ac_cpp_err"; then
11077 # Broken: success on invalid input.
11078continue
11079else
11080 echo "$as_me: failed program was:" >&5
11081sed 's/^/| /' conftest.$ac_ext >&5
11082
11083 # Passes both tests.
11084ac_preproc_ok=:
11085break
52127426 11086fi
e6cc62c6
VS
11087rm -f conftest.err conftest.$ac_ext
11088
11089done
11090# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11091rm -f conftest.err conftest.$ac_ext
11092if $ac_preproc_ok; then
11093 break
8284b0c5 11094fi
e6cc62c6
VS
11095
11096 done
11097 ac_cv_prog_CPP=$CPP
11098
11099fi
11100 CPP=$ac_cv_prog_CPP
11101else
11102 ac_cv_prog_CPP=$CPP
11103fi
11104echo "$as_me:$LINENO: result: $CPP" >&5
11105echo "${ECHO_T}$CPP" >&6
11106ac_preproc_ok=false
11107for ac_c_preproc_warn_flag in '' yes
11108do
11109 # Use a header file that comes with gcc, so configuring glibc
11110 # with a fresh cross-compiler works.
11111 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11112 # <limits.h> exists even on freestanding compilers.
11113 # On the NeXT, cc -E runs the code through the compiler's parser,
11114 # not just through cpp. "Syntax error" is here to catch this case.
11115 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11116/* confdefs.h. */
11117_ACEOF
11118cat confdefs.h >>conftest.$ac_ext
11119cat >>conftest.$ac_ext <<_ACEOF
11120/* end confdefs.h. */
11121#ifdef __STDC__
11122# include <limits.h>
11123#else
11124# include <assert.h>
11125#endif
243f8ae5 11126 Syntax error
e6cc62c6
VS
11127_ACEOF
11128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11130 ac_status=$?
11131 grep -v '^ *+' conftest.er1 >conftest.err
11132 rm -f conftest.er1
11133 cat conftest.err >&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } >/dev/null; then
11136 if test -s conftest.err; then
11137 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 11138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11139 else
11140 ac_cpp_err=
11141 fi
11142else
11143 ac_cpp_err=yes
11144fi
11145if test -z "$ac_cpp_err"; then
11146 :
11147else
11148 echo "$as_me: failed program was:" >&5
11149sed 's/^/| /' conftest.$ac_ext >&5
11150
11151 # Broken: fails on valid input.
11152continue
11153fi
11154rm -f conftest.err conftest.$ac_ext
11155
11156 # OK, works on sane cases. Now check whether non-existent headers
11157 # can be detected and how.
11158 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11159/* confdefs.h. */
11160_ACEOF
11161cat confdefs.h >>conftest.$ac_ext
11162cat >>conftest.$ac_ext <<_ACEOF
11163/* end confdefs.h. */
11164#include <ac_nonexistent.h>
11165_ACEOF
11166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11168 ac_status=$?
11169 grep -v '^ *+' conftest.er1 >conftest.err
11170 rm -f conftest.er1
11171 cat conftest.err >&5
11172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11173 (exit $ac_status); } >/dev/null; then
11174 if test -s conftest.err; then
11175 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 11176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11177 else
11178 ac_cpp_err=
11179 fi
11180else
11181 ac_cpp_err=yes
11182fi
11183if test -z "$ac_cpp_err"; then
11184 # Broken: success on invalid input.
11185continue
11186else
11187 echo "$as_me: failed program was:" >&5
11188sed 's/^/| /' conftest.$ac_ext >&5
11189
11190 # Passes both tests.
11191ac_preproc_ok=:
11192break
a0b9e27f 11193fi
e6cc62c6
VS
11194rm -f conftest.err conftest.$ac_ext
11195
11196done
11197# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11198rm -f conftest.err conftest.$ac_ext
11199if $ac_preproc_ok; then
11200 :
11201else
11202 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11203See \`config.log' for more details." >&5
11204echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11205See \`config.log' for more details." >&2;}
11206 { (exit 1); exit 1; }; }
11207fi
11208
11209ac_ext=c
11210ac_cpp='$CPP $CPPFLAGS'
11211ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11212ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11213ac_compiler_gnu=$ac_cv_c_compiler_gnu
11214
11215
11216echo "$as_me:$LINENO: checking for egrep" >&5
11217echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11218if test "${ac_cv_prog_egrep+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11220else
e6cc62c6
VS
11221 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11222 then ac_cv_prog_egrep='grep -E'
11223 else ac_cv_prog_egrep='egrep'
11224 fi
10f2d63a 11225fi
e6cc62c6
VS
11226echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11227echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11228 EGREP=$ac_cv_prog_egrep
11229
10f2d63a 11230
e6cc62c6
VS
11231if test $ac_cv_c_compiler_gnu = yes; then
11232 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11233echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11234if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11236else
11237 ac_pattern="Autoconf.*'x'"
e6cc62c6 11238 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11239/* confdefs.h. */
11240_ACEOF
11241cat confdefs.h >>conftest.$ac_ext
11242cat >>conftest.$ac_ext <<_ACEOF
11243/* end confdefs.h. */
10f2d63a
VZ
11244#include <sgtty.h>
11245Autoconf TIOCGETP
e6cc62c6 11246_ACEOF
10f2d63a 11247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11248 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11249 ac_cv_prog_gcc_traditional=yes
11250else
10f2d63a
VZ
11251 ac_cv_prog_gcc_traditional=no
11252fi
11253rm -f conftest*
11254
8284b0c5 11255
10f2d63a 11256 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6 11257 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11258/* confdefs.h. */
11259_ACEOF
11260cat confdefs.h >>conftest.$ac_ext
11261cat >>conftest.$ac_ext <<_ACEOF
11262/* end confdefs.h. */
10f2d63a
VZ
11263#include <termio.h>
11264Autoconf TCGETA
e6cc62c6 11265_ACEOF
10f2d63a 11266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11267 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11268 ac_cv_prog_gcc_traditional=yes
11269fi
11270rm -f conftest*
11271
11272 fi
11273fi
e6cc62c6
VS
11274echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11275echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11276 if test $ac_cv_prog_gcc_traditional = yes; then
11277 CC="$CC -traditional"
11278 fi
11279fi
11280
8284b0c5
MB
11281
11282
e6cc62c6
VS
11283
11284ac_ext=cc
1e487827 11285ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11289
698dcdb6 11290
ec603395 11291CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11292ac_ext=cc
11293ac_cpp='$CXXCPP $CPPFLAGS'
11294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11297if test -n "$ac_tool_prefix"; then
11298 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11299 do
11300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11301set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11302echo "$as_me:$LINENO: checking for $ac_word" >&5
11303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11304if test "${ac_cv_prog_CXX+set}" = set; then
11305 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11306else
11307 if test -n "$CXX"; then
11308 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11309else
e6cc62c6
VS
11310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311for as_dir in $PATH
11312do
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11317 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11319 break 2
11320 fi
11321done
11322done
11323
10f2d63a
VZ
11324fi
11325fi
e6cc62c6 11326CXX=$ac_cv_prog_CXX
10f2d63a 11327if test -n "$CXX"; then
e6cc62c6
VS
11328 echo "$as_me:$LINENO: result: $CXX" >&5
11329echo "${ECHO_T}$CXX" >&6
10f2d63a 11330else
e6cc62c6
VS
11331 echo "$as_me:$LINENO: result: no" >&5
11332echo "${ECHO_T}no" >&6
10f2d63a
VZ
11333fi
11334
e6cc62c6
VS
11335 test -n "$CXX" && break
11336 done
11337fi
11338if test -z "$CXX"; then
11339 ac_ct_CXX=$CXX
11340 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11341do
11342 # Extract the first word of "$ac_prog", so it can be a program name with args.
11343set dummy $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_ac_ct_CXX+set}" = set; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11348else
11349 if test -n "$ac_ct_CXX"; then
11350 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11351else
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_ac_ct_CXX="$ac_prog"
11360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11361 break 2
11362 fi
11363done
10f2d63a 11364done
a0b9e27f 11365
8284b0c5 11366fi
a0b9e27f 11367fi
e6cc62c6
VS
11368ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11369if test -n "$ac_ct_CXX"; then
11370 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11371echo "${ECHO_T}$ac_ct_CXX" >&6
11372else
11373 echo "$as_me:$LINENO: result: no" >&5
11374echo "${ECHO_T}no" >&6
a0b9e27f 11375fi
10f2d63a 11376
e6cc62c6
VS
11377 test -n "$ac_ct_CXX" && break
11378done
11379test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11380
11381 CXX=$ac_ct_CXX
11382fi
11383
11384
11385# Provide some information about the compiler.
11386echo "$as_me:$LINENO:" \
11387 "checking for C++ compiler version" >&5
11388ac_compiler=`set X $ac_compile; echo $2`
11389{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11390 (eval $ac_compiler --version </dev/null >&5) 2>&5
11391 ac_status=$?
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }
11394{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11395 (eval $ac_compiler -v </dev/null >&5) 2>&5
11396 ac_status=$?
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }
11399{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11400 (eval $ac_compiler -V </dev/null >&5) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }
11404
11405echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11406echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11407if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11408 echo $ECHO_N "(cached) $ECHO_C" >&6
11409else
11410 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11411/* confdefs.h. */
11412_ACEOF
11413cat confdefs.h >>conftest.$ac_ext
11414cat >>conftest.$ac_ext <<_ACEOF
11415/* end confdefs.h. */
11416
11417int
11418main ()
11419{
11420#ifndef __GNUC__
11421 choke me
11422#endif
10f2d63a 11423
e6cc62c6
VS
11424 ;
11425 return 0;
11426}
11427_ACEOF
11428rm -f conftest.$ac_objext
11429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 11430 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11431 ac_status=$?
243f8ae5
VS
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
e6cc62c6
VS
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } &&
243f8ae5
VS
11437 { ac_try='test -z "$ac_cxx_werror_flag"
11438 || test ! -s conftest.err'
11439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11440 (eval $ac_try) 2>&5
11441 ac_status=$?
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); }; } &&
11444 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11446 (eval $ac_try) 2>&5
11447 ac_status=$?
11448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449 (exit $ac_status); }; }; then
11450 ac_compiler_gnu=yes
11451else
11452 echo "$as_me: failed program was:" >&5
11453sed 's/^/| /' conftest.$ac_ext >&5
11454
11455ac_compiler_gnu=no
11456fi
243f8ae5 11457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11458ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11459
11460fi
11461echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11462echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11463GXX=`test $ac_compiler_gnu = yes && echo yes`
11464ac_test_CXXFLAGS=${CXXFLAGS+set}
11465ac_save_CXXFLAGS=$CXXFLAGS
11466CXXFLAGS="-g"
11467echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11468echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11469if test "${ac_cv_prog_cxx_g+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471else
11472 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11473/* confdefs.h. */
11474_ACEOF
11475cat confdefs.h >>conftest.$ac_ext
11476cat >>conftest.$ac_ext <<_ACEOF
11477/* end confdefs.h. */
11478
11479int
11480main ()
11481{
f09359cf 11482
e6cc62c6
VS
11483 ;
11484 return 0;
11485}
11486_ACEOF
11487rm -f conftest.$ac_objext
11488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 11489 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11490 ac_status=$?
243f8ae5
VS
11491 grep -v '^ *+' conftest.er1 >conftest.err
11492 rm -f conftest.er1
11493 cat conftest.err >&5
e6cc62c6
VS
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } &&
243f8ae5
VS
11496 { ac_try='test -z "$ac_cxx_werror_flag"
11497 || test ! -s conftest.err'
11498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11499 (eval $ac_try) 2>&5
11500 ac_status=$?
11501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); }; } &&
11503 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11506 ac_status=$?
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
10f2d63a
VZ
11509 ac_cv_prog_cxx_g=yes
11510else
e6cc62c6
VS
11511 echo "$as_me: failed program was:" >&5
11512sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11513
e6cc62c6 11514ac_cv_prog_cxx_g=no
10f2d63a 11515fi
243f8ae5 11516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11517fi
11518echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11519echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11520if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11521 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11522elif test $ac_cv_prog_cxx_g = yes; then
11523 if test "$GXX" = yes; then
10f2d63a
VZ
11524 CXXFLAGS="-g -O2"
11525 else
f09359cf 11526 CXXFLAGS="-g"
10f2d63a 11527 fi
5c0a20c3 11528else
f09359cf
VS
11529 if test "$GXX" = yes; then
11530 CXXFLAGS="-O2"
11531 else
11532 CXXFLAGS=
11533 fi
10f2d63a 11534fi
e6cc62c6 11535for ac_declaration in \
ecfd48ca 11536 '' \
e6cc62c6
VS
11537 'extern "C" void std::exit (int) throw (); using std::exit;' \
11538 'extern "C" void std::exit (int); using std::exit;' \
11539 'extern "C" void exit (int) throw ();' \
11540 'extern "C" void exit (int);' \
11541 'void exit (int);'
11542do
11543 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11544/* confdefs.h. */
11545_ACEOF
11546cat confdefs.h >>conftest.$ac_ext
11547cat >>conftest.$ac_ext <<_ACEOF
11548/* end confdefs.h. */
5a60a58a 11549$ac_declaration
ecfd48ca 11550#include <stdlib.h>
e6cc62c6
VS
11551int
11552main ()
11553{
11554exit (42);
11555 ;
11556 return 0;
11557}
11558_ACEOF
11559rm -f conftest.$ac_objext
11560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 11561 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11562 ac_status=$?
243f8ae5
VS
11563 grep -v '^ *+' conftest.er1 >conftest.err
11564 rm -f conftest.er1
11565 cat conftest.err >&5
e6cc62c6
VS
11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } &&
243f8ae5
VS
11568 { ac_try='test -z "$ac_cxx_werror_flag"
11569 || test ! -s conftest.err'
11570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11571 (eval $ac_try) 2>&5
11572 ac_status=$?
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; } &&
11575 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11577 (eval $ac_try) 2>&5
11578 ac_status=$?
11579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); }; }; then
11581 :
11582else
11583 echo "$as_me: failed program was:" >&5
11584sed 's/^/| /' conftest.$ac_ext >&5
11585
11586continue
11587fi
243f8ae5 11588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 11589 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11590/* confdefs.h. */
11591_ACEOF
11592cat confdefs.h >>conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h. */
11595$ac_declaration
11596int
11597main ()
11598{
11599exit (42);
11600 ;
11601 return 0;
11602}
11603_ACEOF
11604rm -f conftest.$ac_objext
11605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 11606 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11607 ac_status=$?
243f8ae5
VS
11608 grep -v '^ *+' conftest.er1 >conftest.err
11609 rm -f conftest.er1
11610 cat conftest.err >&5
e6cc62c6
VS
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } &&
243f8ae5
VS
11613 { ac_try='test -z "$ac_cxx_werror_flag"
11614 || test ! -s conftest.err'
11615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616 (eval $ac_try) 2>&5
11617 ac_status=$?
11618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619 (exit $ac_status); }; } &&
11620 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622 (eval $ac_try) 2>&5
11623 ac_status=$?
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); }; }; then
11626 break
11627else
11628 echo "$as_me: failed program was:" >&5
11629sed 's/^/| /' conftest.$ac_ext >&5
11630
11631fi
243f8ae5 11632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11633done
11634rm -f conftest*
11635if test -n "$ac_declaration"; then
11636 echo '#ifdef __cplusplus' >>confdefs.h
11637 echo $ac_declaration >>confdefs.h
11638 echo '#endif' >>confdefs.h
11639fi
11640
11641ac_ext=cc
11642ac_cpp='$CXXCPP $CPPFLAGS'
11643ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11644ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11645ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11646
11647
10f2d63a 11648ac_ext=c
10f2d63a 11649ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11652ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11653
11654
243f8ae5
VS
11655echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5
11656echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6
11657GCC_SEARCHES_USR_LOCAL_INCLUDE="no"
11658if test "$GCC" = "yes" ; then
11659 echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \
11660 sed -n '1,/End of search list\./p' | \
11661 grep '^ */usr/local/include$' 2>&1 /dev/null \
11662 && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes"
11663fi
11664echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5
11665echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6
11666
e6cc62c6
VS
11667if test -n "$ac_tool_prefix"; then
11668 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11669set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11670echo "$as_me:$LINENO: checking for $ac_word" >&5
11671echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11672if test "${ac_cv_prog_RANLIB+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11674else
11675 if test -n "$RANLIB"; then
11676 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11677else
e6cc62c6
VS
11678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679for as_dir in $PATH
11680do
11681 IFS=$as_save_IFS
11682 test -z "$as_dir" && as_dir=.
11683 for ac_exec_ext in '' $ac_executable_extensions; do
11684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11685 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11687 break 2
11688 fi
11689done
11690done
11691
10f2d63a
VZ
11692fi
11693fi
e6cc62c6 11694RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11695if test -n "$RANLIB"; then
e6cc62c6
VS
11696 echo "$as_me:$LINENO: result: $RANLIB" >&5
11697echo "${ECHO_T}$RANLIB" >&6
11698else
11699 echo "$as_me:$LINENO: result: no" >&5
11700echo "${ECHO_T}no" >&6
11701fi
11702
11703fi
11704if test -z "$ac_cv_prog_RANLIB"; then
11705 ac_ct_RANLIB=$RANLIB
11706 # Extract the first word of "ranlib", so it can be a program name with args.
11707set dummy ranlib; ac_word=$2
11708echo "$as_me:$LINENO: checking for $ac_word" >&5
11709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11710if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11712else
e6cc62c6
VS
11713 if test -n "$ac_ct_RANLIB"; then
11714 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11715else
11716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717for as_dir in $PATH
11718do
11719 IFS=$as_save_IFS
11720 test -z "$as_dir" && as_dir=.
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11723 ac_cv_prog_ac_ct_RANLIB="ranlib"
11724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11725 break 2
11726 fi
11727done
11728done
11729
11730 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11731fi
11732fi
11733ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11734if test -n "$ac_ct_RANLIB"; then
11735 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11736echo "${ECHO_T}$ac_ct_RANLIB" >&6
11737else
11738 echo "$as_me:$LINENO: result: no" >&5
11739echo "${ECHO_T}no" >&6
11740fi
11741
11742 RANLIB=$ac_ct_RANLIB
11743else
11744 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11745fi
11746
10f2d63a
VZ
11747
11748# Extract the first word of "ar", so it can be a program name with args.
11749set dummy ar; ac_word=$2
e6cc62c6
VS
11750echo "$as_me:$LINENO: checking for $ac_word" >&5
11751echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11752if test "${ac_cv_prog_AR+set}" = set; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11754else
11755 if test -n "$AR"; then
11756 ac_cv_prog_AR="$AR" # Let the user override the test.
11757else
e6cc62c6
VS
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_AR="ar"
11766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11767 break 2
11768 fi
11769done
11770done
11771
10f2d63a
VZ
11772fi
11773fi
e6cc62c6 11774AR=$ac_cv_prog_AR
10f2d63a 11775if test -n "$AR"; then
e6cc62c6
VS
11776 echo "$as_me:$LINENO: result: $AR" >&5
11777echo "${ECHO_T}$AR" >&6
10f2d63a 11778else
e6cc62c6
VS
11779 echo "$as_me:$LINENO: result: no" >&5
11780echo "${ECHO_T}no" >&6
10f2d63a
VZ
11781fi
11782
911740e7
VS
11783if test "x$AR" = "x" ; then
11784 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11785echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11786 { (exit 1); exit 1; }; }
11787fi
8284b0c5 11788
6054113a 11789# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11790# so one script is as good as another. But avoid the broken or
11791# incompatible versions:
11792# SysV /etc/install, /usr/sbin/install
11793# SunOS /usr/etc/install
11794# IRIX /sbin/install
11795# AIX /bin/install
e6cc62c6 11796# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11797# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11798# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11799# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
243f8ae5 11800# OS/2's system install, which has a completely different semantic
10f2d63a 11801# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11802echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11803echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11804if test -z "$INSTALL"; then
e6cc62c6
VS
11805if test "${ac_cv_path_install+set}" = set; then
11806 echo $ECHO_N "(cached) $ECHO_C" >&6
11807else
11808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809for as_dir in $PATH
11810do
11811 IFS=$as_save_IFS
11812 test -z "$as_dir" && as_dir=.
11813 # Account for people who put trailing slashes in PATH elements.
11814case $as_dir/ in
11815 ./ | .// | /cC/* | \
11816 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
243f8ae5 11817 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
11818 /usr/ucb/* ) ;;
11819 *)
11820 # OSF1 and SCO ODT 3.0 have their own names for install.
11821 # Don't use installbsd from OSF since it installs stuff as root
11822 # by default.
11823 for ac_prog in ginstall scoinst install; do
11824 for ac_exec_ext in '' $ac_executable_extensions; do
243f8ae5
VS
11825 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11826 if test $ac_prog = install &&
11827 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11828 # AIX install. It has an incompatible calling convention.
11829 :
11830 elif test $ac_prog = install &&
11831 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11832 # program-specific install script used by HP pwplus--don't use.
11833 :
11834 else
11835 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11836 break 3
11837 fi
11838 fi
10f2d63a 11839 done
e6cc62c6
VS
11840 done
11841 ;;
11842esac
11843done
11844
10f2d63a
VZ
11845
11846fi
11847 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11848 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11849 else
11850 # As a last resort, use the slow shell script. We don't cache a
11851 # path for INSTALL within a source directory, because that will
11852 # break other packages using the cache if that directory is
11853 # removed, or if the path is relative.
e6cc62c6 11854 INSTALL=$ac_install_sh
10f2d63a
VZ
11855 fi
11856fi
e6cc62c6
VS
11857echo "$as_me:$LINENO: result: $INSTALL" >&5
11858echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11859
11860# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11861# It thinks the first close brace ends the variable substitution.
11862test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11863
e6cc62c6 11864test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11865
10f2d63a
VZ
11866test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11867
8284b0c5 11868
1d1b75ac
VZ
11869case ${INSTALL} in
11870 /* ) # Absolute
11871 ;;
4f5a7f74
VZ
11872 ?:* ) # Drive letter, considered as absolute.
11873 ;;
3bd8fb5f 11874 *)
1d1b75ac
VZ
11875 INSTALL=`pwd`/${INSTALL} ;;
11876esac
11877
4f5a7f74
VZ
11878case ${host} in
11879 *-hp-hpux* )
11880 INSTALL_DIR="mkdir"
11881 ;;
11882
11883 *) INSTALL_DIR="$INSTALL -d"
11884 ;;
11885esac
11886
8284b0c5 11887
6054113a
GD
11888case "${host}" in
11889
b5853384 11890 powerpc-*-darwin* )
eb99ae0b
GD
11891 INSTALL_PROGRAM="cp -fp"
11892 INSTALL_DATA="cp -fp"
6054113a
GD
11893 ;;
11894 *)
11895 ;;
d6853540 11896esac
698dcdb6 11897
10f2d63a
VZ
11898# Extract the first word of "strip", so it can be a program name with args.
11899set dummy strip; ac_word=$2
e6cc62c6
VS
11900echo "$as_me:$LINENO: checking for $ac_word" >&5
11901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11902if test "${ac_cv_prog_STRIP+set}" = set; then
11903 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11904else
11905 if test -n "$STRIP"; then
11906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11907else
e6cc62c6
VS
11908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11909for as_dir in $PATH
11910do
11911 IFS=$as_save_IFS
11912 test -z "$as_dir" && as_dir=.
11913 for ac_exec_ext in '' $ac_executable_extensions; do
11914 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11915 ac_cv_prog_STRIP="strip"
11916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11917 break 2
11918 fi
11919done
11920done
11921
10f2d63a
VZ
11922 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11923fi
11924fi
e6cc62c6 11925STRIP=$ac_cv_prog_STRIP
10f2d63a 11926if test -n "$STRIP"; then
e6cc62c6
VS
11927 echo "$as_me:$LINENO: result: $STRIP" >&5
11928echo "${ECHO_T}$STRIP" >&6
10f2d63a 11929else
e6cc62c6
VS
11930 echo "$as_me:$LINENO: result: no" >&5
11931echo "${ECHO_T}no" >&6
10f2d63a
VZ
11932fi
11933
5c6fa7d2 11934
e6cc62c6
VS
11935echo "$as_me:$LINENO: checking if make is GNU make" >&5
11936echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11937if test "${wx_cv_prog_makeisgnu+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11939else
e6cc62c6 11940
414eab6d 11941 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11942 egrep -s GNU > /dev/null); then
414eab6d
VZ
11943 wx_cv_prog_makeisgnu="yes"
11944 else
11945 wx_cv_prog_makeisgnu="no"
11946 fi
11947
11948fi
e6cc62c6
VS
11949echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11950echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11951
11952if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11953 IF_GNU_MAKE=""
11954else
11955 IF_GNU_MAKE="#"
11956fi
11957
8284b0c5
MB
11958
11959
414eab6d 11960if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11961echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11962echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11963if test "${wx_cv_prog_makevpath+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11965else
e6cc62c6 11966
10f2d63a
VZ
11967cat - << EOF > confMake
11968check : file
11969 cp \$? \$@
11970 cp \$? final_file
11971EOF
11972
11973if test ! -d sub ; then
11974 mkdir sub
11975fi
11976echo dummy > sub/file
f6bcfd97 11977${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11978RESULT=$?
11979rm -f sub/file check final_file confMake
11980rmdir sub
11981if test "$RESULT" = 0; then
04e7a216 11982 wx_cv_prog_makevpath="yes"
10f2d63a 11983else
04e7a216
VZ
11984 wx_cv_prog_makevpath="no"
11985fi
11986
11987fi
e6cc62c6
VS
11988echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11989echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11990
11991if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11992{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11993You need a make-utility that is able to use the variable
11994VPATH correctly.
11995If your version of make does not support VPATH correctly,
11996please install GNU-make (possibly as gmake), and start
11997configure with the following command:
11998export MAKE=gmake; ./configure for sh-type shells
11999setenv MAKE gmake; ./configure for csh-type shells
12000Also please do remember to use gmake in this case every time
12001you are trying to compile.
e6cc62c6
VS
12002" >&5
12003echo "$as_me: error:
12004You need a make-utility that is able to use the variable
12005VPATH correctly.
12006If your version of make does not support VPATH correctly,
12007please install GNU-make (possibly as gmake), and start
12008configure with the following command:
12009export MAKE=gmake; ./configure for sh-type shells
12010setenv MAKE gmake; ./configure for csh-type shells
12011Also please do remember to use gmake in this case every time
12012you are trying to compile.
12013" >&2;}
12014 { (exit 1); exit 1; }; }
12015fi fi
e6cc62c6
VS
12016echo "$as_me:$LINENO: checking whether ln -s works" >&5
12017echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12018LN_S=$as_ln_s
12019if test "$LN_S" = "ln -s"; then
12020 echo "$as_me:$LINENO: result: yes" >&5
12021echo "${ECHO_T}yes" >&6
10f2d63a 12022else
e6cc62c6
VS
12023 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12024echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 12025fi
5c6fa7d2 12026
247f5006 12027
243f8ae5 12028
2b5f62a0
VZ
12029case "${host}" in
12030 *-pc-os2_emx | *-pc-os2-emx )
243f8ae5 12031 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
12032 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12033echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12034if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 12036else
e6cc62c6 12037 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 12038LIBS="-lcExt $LIBS"
e6cc62c6 12039cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12040/* confdefs.h. */
12041_ACEOF
12042cat confdefs.h >>conftest.$ac_ext
12043cat >>conftest.$ac_ext <<_ACEOF
12044/* end confdefs.h. */
12045
2b5f62a0 12046/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
12047#ifdef __cplusplus
12048extern "C"
12049#endif
2b5f62a0 12050/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
12051 builtin and then its argument prototype would still apply. */
12052char drand48 ();
12053int
12054main ()
12055{
12056drand48 ();
12057 ;
12058 return 0;
12059}
12060_ACEOF
12061rm -f conftest.$ac_objext conftest$ac_exeext
12062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 12063 (eval $ac_link) 2>conftest.er1
e6cc62c6 12064 ac_status=$?
243f8ae5
VS
12065 grep -v '^ *+' conftest.er1 >conftest.err
12066 rm -f conftest.er1
12067 cat conftest.err >&5
e6cc62c6
VS
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
243f8ae5
VS
12070 { ac_try='test -z "$ac_c_werror_flag"
12071 || test ! -s conftest.err'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12074 ac_status=$?
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12080 ac_status=$?
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; }; then
12083 ac_cv_lib_cExt_drand48=yes
12084else
12085 echo "$as_me: failed program was:" >&5
12086sed 's/^/| /' conftest.$ac_ext >&5
12087
12088ac_cv_lib_cExt_drand48=no
12089fi
243f8ae5
VS
12090rm -f conftest.err conftest.$ac_objext \
12091 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
12092LIBS=$ac_check_lib_save_LIBS
12093fi
12094echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12095echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12096if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 12097 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
12098fi
12099
12100 else
12101 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12102 fi
73d617c9
MB
12103 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
12104echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
12105if test "${wx_cv_gcc3+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107else
12108
12109 cat >conftest.$ac_ext <<_ACEOF
73d617c9
MB
12110/* confdefs.h. */
12111_ACEOF
12112cat confdefs.h >>conftest.$ac_ext
12113cat >>conftest.$ac_ext <<_ACEOF
12114/* end confdefs.h. */
3527f29c 12115
73d617c9
MB
12116int
12117main ()
12118{
12119
12120 #if (__GNUC__ < 3)
12121 #error old gcc
12122 #endif
12123
12124 ;
12125 return 0;
12126}
12127_ACEOF
12128rm -f conftest.$ac_objext
12129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 12130 (eval $ac_compile) 2>conftest.er1
73d617c9 12131 ac_status=$?
243f8ae5
VS
12132 grep -v '^ *+' conftest.er1 >conftest.err
12133 rm -f conftest.er1
12134 cat conftest.err >&5
73d617c9
MB
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
243f8ae5
VS
12137 { ac_try='test -z "$ac_c_werror_flag"
12138 || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12147 ac_status=$?
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150
12151 wx_cv_gcc3=yes
12152
12153else
12154 echo "$as_me: failed program was:" >&5
12155sed 's/^/| /' conftest.$ac_ext >&5
12156
12157
12158 wx_cv_gcc3=no
12159
12160
12161fi
243f8ae5 12162rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
73d617c9
MB
12163
12164fi
12165echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12166echo "${ECHO_T}$wx_cv_gcc3" >&6
12167 if test "$wx_cv_gcc3" = "no"; then
12168 LIBS="$LIBS -lstdcpp"
12169 else
12170 LIBS="$LIBS -lstdcxx"
12171 fi
243f8ae5
VS
12172 ;;
12173 *)
a0b9e27f 12174
1c2d1459
VZ
12175
12176
243f8ae5 12177 ac_ext=cc
1c2d1459
VZ
12178ac_cpp='$CXXCPP $CPPFLAGS'
12179ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12180ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12181ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12182
12183
12184
12185echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
12186echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6
12187if test "${ac_cv_string_strcasecmp+set}" = set; then
01aa5863
VS
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189else
1c2d1459 12190
243f8ae5 12191 cat >conftest.$ac_ext <<_ACEOF
1c2d1459
VZ
12192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
12197
243f8ae5 12198 #include <string.h>
1c2d1459
VZ
12199
12200int
12201main ()
12202{
12203
243f8ae5 12204 strcasecmp("foo", "bar");
1c2d1459
VZ
12205
12206 ;
12207 return 0;
12208}
12209_ACEOF
12210rm -f conftest.$ac_objext conftest$ac_exeext
12211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 12212 (eval $ac_link) 2>conftest.er1
1c2d1459 12213 ac_status=$?
243f8ae5
VS
12214 grep -v '^ *+' conftest.er1 >conftest.err
12215 rm -f conftest.er1
12216 cat conftest.err >&5
1c2d1459
VZ
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); } &&
243f8ae5
VS
12219 { ac_try='test -z "$ac_cxx_werror_flag"
12220 || test ! -s conftest.err'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; } &&
12226 { ac_try='test -s conftest$ac_exeext'
1c2d1459
VZ
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 ac_cv_string_strcasecmp=yes
12233else
12234 echo "$as_me: failed program was:" >&5
12235sed 's/^/| /' conftest.$ac_ext >&5
12236
12237ac_cv_string_strcasecmp=no
12238
12239fi
243f8ae5
VS
12240rm -f conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
1c2d1459
VZ
12242
12243fi
12244echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
12245echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6
12246
243f8ae5
VS
12247 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12248 cat >>confdefs.h <<\_ACEOF
1c2d1459
VZ
12249#define HAVE_STRCASECMP_IN_STRING_H 1
12250_ACEOF
12251
243f8ae5
VS
12252 else
12253 echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
1c2d1459
VZ
12254echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6
12255if test "${ac_cv_strings_strcasecmp+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12257else
12258
243f8ae5 12259 cat >conftest.$ac_ext <<_ACEOF
1c2d1459
VZ
12260/* confdefs.h. */
12261_ACEOF
12262cat confdefs.h >>conftest.$ac_ext
12263cat >>conftest.$ac_ext <<_ACEOF
12264/* end confdefs.h. */
12265
243f8ae5 12266 #include <strings.h>
1c2d1459
VZ
12267
12268int
12269main ()
12270{
12271
243f8ae5 12272 strcasecmp("foo", "bar");
1c2d1459
VZ
12273
12274 ;
12275 return 0;
12276}
12277_ACEOF
12278rm -f conftest.$ac_objext conftest$ac_exeext
12279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 12280 (eval $ac_link) 2>conftest.er1
1c2d1459 12281 ac_status=$?
243f8ae5
VS
12282 grep -v '^ *+' conftest.er1 >conftest.err
12283 rm -f conftest.er1
12284 cat conftest.err >&5
1c2d1459
VZ
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } &&
243f8ae5
VS
12287 { ac_try='test -z "$ac_cxx_werror_flag"
12288 || test ! -s conftest.err'
12289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290 (eval $ac_try) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); }; } &&
12294 { ac_try='test -s conftest$ac_exeext'
1c2d1459
VZ
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; }; then
12300 ac_cv_strings_strcasecmp=yes
12301else
12302 echo "$as_me: failed program was:" >&5
12303sed 's/^/| /' conftest.$ac_ext >&5
12304
12305ac_cv_strings_strcasecmp=no
12306
12307fi
243f8ae5
VS
12308rm -f conftest.err conftest.$ac_objext \
12309 conftest$ac_exeext conftest.$ac_ext
1c2d1459 12310
01aa5863 12311fi
1c2d1459
VZ
12312echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
12313echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6
12314
243f8ae5
VS
12315 if test x"$ac_cv_string_strcasecmp" = "xyes"; then
12316 cat >>confdefs.h <<\_ACEOF
1c2d1459
VZ
12317#define HAVE_STRCASECMP_IN_STRINGS_H 1
12318_ACEOF
12319
243f8ae5
VS
12320 else
12321 { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
1c2d1459
VZ
12322echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
12323 { (exit 1); exit 1; }; }
243f8ae5
VS
12324 fi
12325 fi
1c2d1459 12326
243f8ae5 12327 ac_ext=c
1c2d1459
VZ
12328ac_cpp='$CPP $CPPFLAGS'
12329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12331ac_compiler_gnu=$ac_cv_c_compiler_gnu
12332
243f8ae5
VS
12333 ;;
12334esac
12335
1c2d1459 12336
01aa5863 12337echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
12338echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12339if test "${ac_cv_header_stdc+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341else
12342 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12343/* confdefs.h. */
12344_ACEOF
12345cat confdefs.h >>conftest.$ac_ext
12346cat >>conftest.$ac_ext <<_ACEOF
12347/* end confdefs.h. */
12348#include <stdlib.h>
12349#include <stdarg.h>
12350#include <string.h>
12351#include <float.h>
247f5006 12352
e6cc62c6
VS
12353int
12354main ()
12355{
90dd450c 12356
e6cc62c6
VS
12357 ;
12358 return 0;
12359}
12360_ACEOF
12361rm -f conftest.$ac_objext
12362if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 12363 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12364 ac_status=$?
243f8ae5
VS
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
e6cc62c6
VS
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } &&
243f8ae5
VS
12370 { ac_try='test -z "$ac_c_werror_flag"
12371 || test ! -s conftest.err'
12372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12373 (eval $ac_try) 2>&5
12374 ac_status=$?
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); }; } &&
12377 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12379 (eval $ac_try) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); }; }; then
12383 ac_cv_header_stdc=yes
8284b0c5 12384else
e6cc62c6
VS
12385 echo "$as_me: failed program was:" >&5
12386sed 's/^/| /' conftest.$ac_ext >&5
12387
12388ac_cv_header_stdc=no
21d1c967 12389fi
243f8ae5 12390rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12391
e6cc62c6
VS
12392if test $ac_cv_header_stdc = yes; then
12393 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12394 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12395/* confdefs.h. */
12396_ACEOF
12397cat confdefs.h >>conftest.$ac_ext
12398cat >>conftest.$ac_ext <<_ACEOF
12399/* end confdefs.h. */
12400#include <string.h>
12401
12402_ACEOF
12403if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12404 $EGREP "memchr" >/dev/null 2>&1; then
12405 :
12406else
12407 ac_cv_header_stdc=no
3a922bb4 12408fi
a0b9e27f 12409rm -f conftest*
e6cc62c6 12410
90dd450c 12411fi
e6cc62c6
VS
12412
12413if test $ac_cv_header_stdc = yes; then
12414 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12415 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12416/* confdefs.h. */
12417_ACEOF
12418cat confdefs.h >>conftest.$ac_ext
12419cat >>conftest.$ac_ext <<_ACEOF
12420/* end confdefs.h. */
12421#include <stdlib.h>
12422
12423_ACEOF
12424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12425 $EGREP "free" >/dev/null 2>&1; then
12426 :
a0b9e27f 12427else
e6cc62c6 12428 ac_cv_header_stdc=no
21d1c967 12429fi
e6cc62c6 12430rm -f conftest*
247f5006
VZ
12431
12432fi
e6cc62c6
VS
12433
12434if test $ac_cv_header_stdc = yes; then
12435 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12436 if test "$cross_compiling" = yes; then
12437 :
12438else
12439 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12440/* confdefs.h. */
12441_ACEOF
12442cat confdefs.h >>conftest.$ac_ext
12443cat >>conftest.$ac_ext <<_ACEOF
12444/* end confdefs.h. */
12445#include <ctype.h>
12446#if ((' ' & 0x0FF) == 0x020)
12447# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12448# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12449#else
12450# define ISLOWER(c) \
243f8ae5
VS
12451 (('a' <= (c) && (c) <= 'i') \
12452 || ('j' <= (c) && (c) <= 'r') \
12453 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12454# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12455#endif
12456
12457#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12458int
12459main ()
12460{
12461 int i;
12462 for (i = 0; i < 256; i++)
12463 if (XOR (islower (i), ISLOWER (i))
243f8ae5 12464 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12465 exit(2);
12466 exit (0);
12467}
12468_ACEOF
12469rm -f conftest$ac_exeext
12470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12471 (eval $ac_link) 2>&5
12472 ac_status=$?
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12476 (eval $ac_try) 2>&5
12477 ac_status=$?
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); }; }; then
12480 :
a0b9e27f 12481else
e6cc62c6
VS
12482 echo "$as_me: program exited with status $ac_status" >&5
12483echo "$as_me: failed program was:" >&5
12484sed 's/^/| /' conftest.$ac_ext >&5
12485
12486( exit $ac_status )
12487ac_cv_header_stdc=no
12488fi
243f8ae5 12489rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12490fi
12491fi
12492fi
12493echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12494echo "${ECHO_T}$ac_cv_header_stdc" >&6
12495if test $ac_cv_header_stdc = yes; then
12496
12497cat >>confdefs.h <<\_ACEOF
12498#define STDC_HEADERS 1
12499_ACEOF
12500
a0b9e27f 12501fi
e6cc62c6
VS
12502
12503# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
243f8ae5 12514 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12515do
12516as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12517echo "$as_me:$LINENO: checking for $ac_header" >&5
12518echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12519if eval "test \"\${$as_ac_Header+set}\" = set"; then
12520 echo $ECHO_N "(cached) $ECHO_C" >&6
12521else
12522 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
12528$ac_includes_default
12529
12530#include <$ac_header>
12531_ACEOF
12532rm -f conftest.$ac_objext
12533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 12534 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12535 ac_status=$?
243f8ae5
VS
12536 grep -v '^ *+' conftest.er1 >conftest.err
12537 rm -f conftest.er1
12538 cat conftest.err >&5
e6cc62c6
VS
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
243f8ae5
VS
12541 { ac_try='test -z "$ac_c_werror_flag"
12542 || test ! -s conftest.err'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12545 ac_status=$?
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; } &&
12548 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12550 (eval $ac_try) 2>&5
12551 ac_status=$?
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); }; }; then
12554 eval "$as_ac_Header=yes"
12555else
12556 echo "$as_me: failed program was:" >&5
12557sed 's/^/| /' conftest.$ac_ext >&5
12558
12559eval "$as_ac_Header=no"
12560fi
243f8ae5 12561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12562fi
12563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12565if test `eval echo '${'$as_ac_Header'}'` = yes; then
12566 cat >>confdefs.h <<_ACEOF
12567#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12568_ACEOF
12569
12570fi
12571
a0b9e27f 12572done
90dd450c 12573
e6cc62c6
VS
12574
12575
e6cc62c6
VS
12576for ac_header in stdlib.h
12577do
12578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12579if eval "test \"\${$as_ac_Header+set}\" = set"; then
12580 echo "$as_me:$LINENO: checking for $ac_header" >&5
12581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12582if eval "test \"\${$as_ac_Header+set}\" = set"; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12584fi
12585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12587else
12588 # Is the header compilable?
12589echo "$as_me:$LINENO: checking $ac_header usability" >&5
12590echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12591cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12592/* confdefs.h. */
12593_ACEOF
12594cat confdefs.h >>conftest.$ac_ext
12595cat >>conftest.$ac_ext <<_ACEOF
12596/* end confdefs.h. */
12597$ac_includes_default
12598#include <$ac_header>
12599_ACEOF
12600rm -f conftest.$ac_objext
12601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 12602 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12603 ac_status=$?
243f8ae5
VS
12604 grep -v '^ *+' conftest.er1 >conftest.err
12605 rm -f conftest.er1
12606 cat conftest.err >&5
e6cc62c6
VS
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } &&
243f8ae5
VS
12609 { ac_try='test -z "$ac_c_werror_flag"
12610 || test ! -s conftest.err'
12611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12612 (eval $ac_try) 2>&5
12613 ac_status=$?
12614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12615 (exit $ac_status); }; } &&
12616 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12618 (eval $ac_try) 2>&5
12619 ac_status=$?
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; }; then
12622 ac_header_compiler=yes
12623else
12624 echo "$as_me: failed program was:" >&5
12625sed 's/^/| /' conftest.$ac_ext >&5
12626
12627ac_header_compiler=no
12628fi
243f8ae5 12629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12630echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12631echo "${ECHO_T}$ac_header_compiler" >&6
12632
12633# Is the header present?
12634echo "$as_me:$LINENO: checking $ac_header presence" >&5
12635echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12636cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12637/* confdefs.h. */
12638_ACEOF
12639cat confdefs.h >>conftest.$ac_ext
12640cat >>conftest.$ac_ext <<_ACEOF
12641/* end confdefs.h. */
12642#include <$ac_header>
12643_ACEOF
12644if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12645 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12646 ac_status=$?
12647 grep -v '^ *+' conftest.er1 >conftest.err
12648 rm -f conftest.er1
12649 cat conftest.err >&5
12650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651 (exit $ac_status); } >/dev/null; then
12652 if test -s conftest.err; then
12653 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 12654 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12655 else
12656 ac_cpp_err=
12657 fi
12658else
12659 ac_cpp_err=yes
12660fi
12661if test -z "$ac_cpp_err"; then
12662 ac_header_preproc=yes
12663else
12664 echo "$as_me: failed program was:" >&5
12665sed 's/^/| /' conftest.$ac_ext >&5
12666
12667 ac_header_preproc=no
12668fi
12669rm -f conftest.err conftest.$ac_ext
12670echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12671echo "${ECHO_T}$ac_header_preproc" >&6
12672
12673# So? What about this header?
243f8ae5
VS
12674case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12675 yes:no: )
e6cc62c6
VS
12676 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12677echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
12678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12679echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12680 ac_header_preproc=yes
e6cc62c6 12681 ;;
243f8ae5 12682 no:yes:* )
e6cc62c6
VS
12683 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12684echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
12685 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12686echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12688echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12690echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12692echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
12693 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12694echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12695 (
12696 cat <<\_ASBOX
243f8ae5
VS
12697## ----------------------------------------- ##
12698## Report this to wx-dev@lists.wxwindows.org ##
12699## ----------------------------------------- ##
e6cc62c6
VS
12700_ASBOX
12701 ) |
12702 sed "s/^/$as_me: WARNING: /" >&2
12703 ;;
12704esac
12705echo "$as_me:$LINENO: checking for $ac_header" >&5
12706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12707if eval "test \"\${$as_ac_Header+set}\" = set"; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12709else
243f8ae5 12710 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12711fi
12712echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12713echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12714
21d1c967 12715fi
e6cc62c6
VS
12716if test `eval echo '${'$as_ac_Header'}'` = yes; then
12717 cat >>confdefs.h <<_ACEOF
12718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12719_ACEOF
12720
12721fi
12722
21d1c967 12723done
4f14bcd8 12724
5c6fa7d2 12725
e6cc62c6 12726for ac_header in malloc.h
21d1c967 12727do
e6cc62c6
VS
12728as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12729if eval "test \"\${$as_ac_Header+set}\" = set"; then
12730 echo "$as_me:$LINENO: checking for $ac_header" >&5
12731echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12732if eval "test \"\${$as_ac_Header+set}\" = set"; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12734fi
12735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12737else
12738 # Is the header compilable?
12739echo "$as_me:$LINENO: checking $ac_header usability" >&5
12740echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12741cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12742/* confdefs.h. */
12743_ACEOF
12744cat confdefs.h >>conftest.$ac_ext
12745cat >>conftest.$ac_ext <<_ACEOF
12746/* end confdefs.h. */
12747$ac_includes_default
12748#include <$ac_header>
12749_ACEOF
12750rm -f conftest.$ac_objext
12751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 12752 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12753 ac_status=$?
243f8ae5
VS
12754 grep -v '^ *+' conftest.er1 >conftest.err
12755 rm -f conftest.er1
12756 cat conftest.err >&5
e6cc62c6
VS
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } &&
243f8ae5
VS
12759 { ac_try='test -z "$ac_c_werror_flag"
12760 || test ! -s conftest.err'
12761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12762 (eval $ac_try) 2>&5
12763 ac_status=$?
12764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765 (exit $ac_status); }; } &&
12766 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768 (eval $ac_try) 2>&5
12769 ac_status=$?
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 ac_header_compiler=yes
12773else
12774 echo "$as_me: failed program was:" >&5
12775sed 's/^/| /' conftest.$ac_ext >&5
12776
12777ac_header_compiler=no
12778fi
243f8ae5 12779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12780echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12781echo "${ECHO_T}$ac_header_compiler" >&6
12782
12783# Is the header present?
12784echo "$as_me:$LINENO: checking $ac_header presence" >&5
12785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12786cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12787/* confdefs.h. */
12788_ACEOF
12789cat confdefs.h >>conftest.$ac_ext
12790cat >>conftest.$ac_ext <<_ACEOF
12791/* end confdefs.h. */
12792#include <$ac_header>
12793_ACEOF
12794if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12795 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12796 ac_status=$?
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } >/dev/null; then
12802 if test -s conftest.err; then
12803 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 12804 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12805 else
12806 ac_cpp_err=
12807 fi
12808else
12809 ac_cpp_err=yes
12810fi
12811if test -z "$ac_cpp_err"; then
12812 ac_header_preproc=yes
12813else
12814 echo "$as_me: failed program was:" >&5
12815sed 's/^/| /' conftest.$ac_ext >&5
12816
12817 ac_header_preproc=no
12818fi
12819rm -f conftest.err conftest.$ac_ext
12820echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12821echo "${ECHO_T}$ac_header_preproc" >&6
12822
12823# So? What about this header?
243f8ae5
VS
12824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12825 yes:no: )
e6cc62c6
VS
12826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12829echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12830 ac_header_preproc=yes
e6cc62c6 12831 ;;
243f8ae5 12832 no:yes:* )
e6cc62c6
VS
12833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12834echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
12835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12836echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12838echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12840echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12842echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
12843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12844echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12845 (
12846 cat <<\_ASBOX
243f8ae5
VS
12847## ----------------------------------------- ##
12848## Report this to wx-dev@lists.wxwindows.org ##
12849## ----------------------------------------- ##
e6cc62c6
VS
12850_ASBOX
12851 ) |
12852 sed "s/^/$as_me: WARNING: /" >&2
12853 ;;
12854esac
12855echo "$as_me:$LINENO: checking for $ac_header" >&5
12856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12857if eval "test \"\${$as_ac_Header+set}\" = set"; then
12858 echo $ECHO_N "(cached) $ECHO_C" >&6
12859else
243f8ae5 12860 eval "$as_ac_Header=\$ac_header_preproc"
d4158b5d 12861fi
e6cc62c6
VS
12862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12864
21d1c967 12865fi
e6cc62c6
VS
12866if test `eval echo '${'$as_ac_Header'}'` = yes; then
12867 cat >>confdefs.h <<_ACEOF
12868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12869_ACEOF
12870
12871fi
12872
12873done
12874
12875
12876for ac_header in unistd.h
12877do
12878as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12879if eval "test \"\${$as_ac_Header+set}\" = set"; then
12880 echo "$as_me:$LINENO: checking for $ac_header" >&5
12881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12882if eval "test \"\${$as_ac_Header+set}\" = set"; then
12883 echo $ECHO_N "(cached) $ECHO_C" >&6
12884fi
12885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12887else
12888 # Is the header compilable?
12889echo "$as_me:$LINENO: checking $ac_header usability" >&5
12890echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12891cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12892/* confdefs.h. */
12893_ACEOF
12894cat confdefs.h >>conftest.$ac_ext
12895cat >>conftest.$ac_ext <<_ACEOF
12896/* end confdefs.h. */
12897$ac_includes_default
12898#include <$ac_header>
12899_ACEOF
12900rm -f conftest.$ac_objext
12901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 12902 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12903 ac_status=$?
243f8ae5
VS
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
e6cc62c6
VS
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } &&
243f8ae5
VS
12909 { ac_try='test -z "$ac_c_werror_flag"
12910 || test ! -s conftest.err'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12913 ac_status=$?
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; } &&
12916 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918 (eval $ac_try) 2>&5
12919 ac_status=$?
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); }; }; then
12922 ac_header_compiler=yes
12923else
12924 echo "$as_me: failed program was:" >&5
12925sed 's/^/| /' conftest.$ac_ext >&5
12926
12927ac_header_compiler=no
12928fi
243f8ae5 12929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12930echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12931echo "${ECHO_T}$ac_header_compiler" >&6
12932
12933# Is the header present?
12934echo "$as_me:$LINENO: checking $ac_header presence" >&5
12935echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12936cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12937/* confdefs.h. */
12938_ACEOF
12939cat confdefs.h >>conftest.$ac_ext
12940cat >>conftest.$ac_ext <<_ACEOF
12941/* end confdefs.h. */
12942#include <$ac_header>
12943_ACEOF
12944if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12946 ac_status=$?
12947 grep -v '^ *+' conftest.er1 >conftest.err
12948 rm -f conftest.er1
12949 cat conftest.err >&5
12950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12951 (exit $ac_status); } >/dev/null; then
12952 if test -s conftest.err; then
12953 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 12954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12955 else
12956 ac_cpp_err=
12957 fi
a0b9e27f 12958else
e6cc62c6
VS
12959 ac_cpp_err=yes
12960fi
12961if test -z "$ac_cpp_err"; then
12962 ac_header_preproc=yes
12963else
12964 echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
12967 ac_header_preproc=no
12968fi
12969rm -f conftest.err conftest.$ac_ext
12970echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12971echo "${ECHO_T}$ac_header_preproc" >&6
12972
12973# So? What about this header?
243f8ae5
VS
12974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12975 yes:no: )
e6cc62c6
VS
12976 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12977echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12979echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12980 ac_header_preproc=yes
e6cc62c6 12981 ;;
243f8ae5 12982 no:yes:* )
e6cc62c6
VS
12983 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12984echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
12985 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12986echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12987 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12988echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12989 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12990echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12991 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12992echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
12993 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12994echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12995 (
12996 cat <<\_ASBOX
243f8ae5
VS
12997## ----------------------------------------- ##
12998## Report this to wx-dev@lists.wxwindows.org ##
12999## ----------------------------------------- ##
e6cc62c6
VS
13000_ASBOX
13001 ) |
13002 sed "s/^/$as_me: WARNING: /" >&2
13003 ;;
13004esac
13005echo "$as_me:$LINENO: checking for $ac_header" >&5
13006echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13007if eval "test \"\${$as_ac_Header+set}\" = set"; then
13008 echo $ECHO_N "(cached) $ECHO_C" >&6
13009else
243f8ae5 13010 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13011fi
13012echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13013echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13014
13015fi
13016if test `eval echo '${'$as_ac_Header'}'` = yes; then
13017 cat >>confdefs.h <<_ACEOF
13018#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13019_ACEOF
13020
d4158b5d 13021fi
e6cc62c6 13022
21d1c967 13023done
f6bcfd97 13024
e6cc62c6
VS
13025
13026for ac_header in wchar.h
13027do
13028as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13029if eval "test \"\${$as_ac_Header+set}\" = set"; then
13030 echo "$as_me:$LINENO: checking for $ac_header" >&5
13031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13032if eval "test \"\${$as_ac_Header+set}\" = set"; then
13033 echo $ECHO_N "(cached) $ECHO_C" >&6
13034fi
13035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13037else
13038 # Is the header compilable?
13039echo "$as_me:$LINENO: checking $ac_header usability" >&5
13040echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13041cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13042/* confdefs.h. */
13043_ACEOF
13044cat confdefs.h >>conftest.$ac_ext
13045cat >>conftest.$ac_ext <<_ACEOF
13046/* end confdefs.h. */
13047$ac_includes_default
13048#include <$ac_header>
13049_ACEOF
13050rm -f conftest.$ac_objext
13051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 13052 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13053 ac_status=$?
243f8ae5
VS
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
e6cc62c6
VS
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
243f8ae5
VS
13059 { ac_try='test -z "$ac_c_werror_flag"
13060 || test ! -s conftest.err'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 ac_header_compiler=yes
13073else
13074 echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
13077ac_header_compiler=no
13078fi
243f8ae5 13079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13080echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13081echo "${ECHO_T}$ac_header_compiler" >&6
13082
13083# Is the header present?
13084echo "$as_me:$LINENO: checking $ac_header presence" >&5
13085echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13086cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13087/* confdefs.h. */
13088_ACEOF
13089cat confdefs.h >>conftest.$ac_ext
13090cat >>conftest.$ac_ext <<_ACEOF
13091/* end confdefs.h. */
13092#include <$ac_header>
13093_ACEOF
13094if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
13100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13101 (exit $ac_status); } >/dev/null; then
13102 if test -s conftest.err; then
13103 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 13104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13105 else
13106 ac_cpp_err=
13107 fi
13108else
13109 ac_cpp_err=yes
13110fi
13111if test -z "$ac_cpp_err"; then
13112 ac_header_preproc=yes
13113else
13114 echo "$as_me: failed program was:" >&5
13115sed 's/^/| /' conftest.$ac_ext >&5
13116
13117 ac_header_preproc=no
13118fi
13119rm -f conftest.err conftest.$ac_ext
13120echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13121echo "${ECHO_T}$ac_header_preproc" >&6
13122
13123# So? What about this header?
243f8ae5
VS
13124case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13125 yes:no: )
e6cc62c6
VS
13126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13127echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13129echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13130 ac_header_preproc=yes
e6cc62c6 13131 ;;
243f8ae5 13132 no:yes:* )
e6cc62c6
VS
13133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13134echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
13135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13136echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13138echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13140echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13142echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
13143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13144echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13145 (
13146 cat <<\_ASBOX
243f8ae5
VS
13147## ----------------------------------------- ##
13148## Report this to wx-dev@lists.wxwindows.org ##
13149## ----------------------------------------- ##
e6cc62c6
VS
13150_ASBOX
13151 ) |
13152 sed "s/^/$as_me: WARNING: /" >&2
13153 ;;
13154esac
13155echo "$as_me:$LINENO: checking for $ac_header" >&5
13156echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13157if eval "test \"\${$as_ac_Header+set}\" = set"; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13159else
243f8ae5 13160 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13161fi
13162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13164
90dd450c 13165fi
e6cc62c6
VS
13166if test `eval echo '${'$as_ac_Header'}'` = yes; then
13167 cat >>confdefs.h <<_ACEOF
13168#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13169_ACEOF
13170
13171fi
13172
13173done
90dd450c 13174
e6cc62c6
VS
13175
13176if test "$ac_cv_header_wchar_h" != "yes"; then
13177
13178for ac_header in wcstr.h
21d1c967 13179do
e6cc62c6
VS
13180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13181if eval "test \"\${$as_ac_Header+set}\" = set"; then
13182 echo "$as_me:$LINENO: checking for $ac_header" >&5
13183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13184if eval "test \"\${$as_ac_Header+set}\" = set"; then
13185 echo $ECHO_N "(cached) $ECHO_C" >&6
13186fi
13187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13189else
13190 # Is the header compilable?
13191echo "$as_me:$LINENO: checking $ac_header usability" >&5
13192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13193cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13194/* confdefs.h. */
13195_ACEOF
13196cat confdefs.h >>conftest.$ac_ext
13197cat >>conftest.$ac_ext <<_ACEOF
13198/* end confdefs.h. */
13199$ac_includes_default
13200#include <$ac_header>
13201_ACEOF
13202rm -f conftest.$ac_objext
13203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 13204 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13205 ac_status=$?
243f8ae5
VS
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
e6cc62c6
VS
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } &&
243f8ae5
VS
13211 { ac_try='test -z "$ac_c_werror_flag"
13212 || test ! -s conftest.err'
13213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13214 (eval $ac_try) 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; } &&
13218 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13221 ac_status=$?
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; }; then
13224 ac_header_compiler=yes
13225else
13226 echo "$as_me: failed program was:" >&5
13227sed 's/^/| /' conftest.$ac_ext >&5
13228
13229ac_header_compiler=no
13230fi
243f8ae5 13231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13233echo "${ECHO_T}$ac_header_compiler" >&6
13234
13235# Is the header present?
13236echo "$as_me:$LINENO: checking $ac_header presence" >&5
13237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13238cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13239/* confdefs.h. */
13240_ACEOF
13241cat confdefs.h >>conftest.$ac_ext
13242cat >>conftest.$ac_ext <<_ACEOF
13243/* end confdefs.h. */
13244#include <$ac_header>
13245_ACEOF
13246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13248 ac_status=$?
13249 grep -v '^ *+' conftest.er1 >conftest.err
13250 rm -f conftest.er1
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } >/dev/null; then
13254 if test -s conftest.err; then
13255 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 13256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13257 else
13258 ac_cpp_err=
13259 fi
13260else
13261 ac_cpp_err=yes
13262fi
13263if test -z "$ac_cpp_err"; then
13264 ac_header_preproc=yes
13265else
13266 echo "$as_me: failed program was:" >&5
13267sed 's/^/| /' conftest.$ac_ext >&5
13268
13269 ac_header_preproc=no
13270fi
13271rm -f conftest.err conftest.$ac_ext
13272echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13273echo "${ECHO_T}$ac_header_preproc" >&6
13274
13275# So? What about this header?
243f8ae5
VS
13276case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13277 yes:no: )
e6cc62c6
VS
13278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13279echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13281echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13282 ac_header_preproc=yes
e6cc62c6 13283 ;;
243f8ae5 13284 no:yes:* )
e6cc62c6
VS
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13286echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13288echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13290echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13292echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13294echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
13295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13296echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13297 (
13298 cat <<\_ASBOX
243f8ae5
VS
13299## ----------------------------------------- ##
13300## Report this to wx-dev@lists.wxwindows.org ##
13301## ----------------------------------------- ##
e6cc62c6
VS
13302_ASBOX
13303 ) |
13304 sed "s/^/$as_me: WARNING: /" >&2
13305 ;;
13306esac
13307echo "$as_me:$LINENO: checking for $ac_header" >&5
13308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13309if eval "test \"\${$as_ac_Header+set}\" = set"; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311else
243f8ae5 13312 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13313fi
e6cc62c6
VS
13314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13316
4f14bcd8 13317fi
e6cc62c6
VS
13318if test `eval echo '${'$as_ac_Header'}'` = yes; then
13319 cat >>confdefs.h <<_ACEOF
13320#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13321_ACEOF
13322
13323fi
13324
13325done
13326
13327fi
13328
13329
13330for ac_header in fnmatch.h
13331do
13332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13333if eval "test \"\${$as_ac_Header+set}\" = set"; then
13334 echo "$as_me:$LINENO: checking for $ac_header" >&5
13335echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13336if eval "test \"\${$as_ac_Header+set}\" = set"; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13338fi
13339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13340echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13341else
13342 # Is the header compilable?
13343echo "$as_me:$LINENO: checking $ac_header usability" >&5
13344echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13345cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13346/* confdefs.h. */
13347_ACEOF
13348cat confdefs.h >>conftest.$ac_ext
13349cat >>conftest.$ac_ext <<_ACEOF
13350/* end confdefs.h. */
13351$ac_includes_default
13352#include <$ac_header>
13353_ACEOF
13354rm -f conftest.$ac_objext
13355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 13356 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13357 ac_status=$?
243f8ae5
VS
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
e6cc62c6
VS
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
243f8ae5
VS
13363 { ac_try='test -z "$ac_c_werror_flag"
13364 || test ! -s conftest.err'
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } &&
13370 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_header_compiler=yes
13377else
13378 echo "$as_me: failed program was:" >&5
13379sed 's/^/| /' conftest.$ac_ext >&5
13380
13381ac_header_compiler=no
13382fi
243f8ae5 13383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13384echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13385echo "${ECHO_T}$ac_header_compiler" >&6
13386
13387# Is the header present?
13388echo "$as_me:$LINENO: checking $ac_header presence" >&5
13389echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13390cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13391/* confdefs.h. */
13392_ACEOF
13393cat confdefs.h >>conftest.$ac_ext
13394cat >>conftest.$ac_ext <<_ACEOF
13395/* end confdefs.h. */
13396#include <$ac_header>
13397_ACEOF
13398if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13399 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13400 ac_status=$?
13401 grep -v '^ *+' conftest.er1 >conftest.err
13402 rm -f conftest.er1
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } >/dev/null; then
13406 if test -s conftest.err; then
13407 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 13408 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13409 else
13410 ac_cpp_err=
13411 fi
13412else
13413 ac_cpp_err=yes
13414fi
13415if test -z "$ac_cpp_err"; then
13416 ac_header_preproc=yes
13417else
13418 echo "$as_me: failed program was:" >&5
13419sed 's/^/| /' conftest.$ac_ext >&5
13420
13421 ac_header_preproc=no
13422fi
13423rm -f conftest.err conftest.$ac_ext
13424echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13425echo "${ECHO_T}$ac_header_preproc" >&6
13426
13427# So? What about this header?
243f8ae5
VS
13428case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13429 yes:no: )
e6cc62c6
VS
13430 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13431echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
13432 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13433echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13434 ac_header_preproc=yes
e6cc62c6 13435 ;;
243f8ae5 13436 no:yes:* )
e6cc62c6
VS
13437 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13438echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
13439 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13440echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13441 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13442echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13444echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13446echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
13447 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13448echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13449 (
13450 cat <<\_ASBOX
243f8ae5
VS
13451## ----------------------------------------- ##
13452## Report this to wx-dev@lists.wxwindows.org ##
13453## ----------------------------------------- ##
e6cc62c6
VS
13454_ASBOX
13455 ) |
13456 sed "s/^/$as_me: WARNING: /" >&2
13457 ;;
13458esac
13459echo "$as_me:$LINENO: checking for $ac_header" >&5
13460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13461if eval "test \"\${$as_ac_Header+set}\" = set"; then
13462 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13463else
243f8ae5 13464 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13465fi
13466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13468
21d1c967 13469fi
e6cc62c6
VS
13470if test `eval echo '${'$as_ac_Header'}'` = yes; then
13471 cat >>confdefs.h <<_ACEOF
13472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13473_ACEOF
13474
13475fi
13476
21d1c967 13477done
90dd450c 13478
5c6fa7d2 13479
a0b9e27f 13480if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13481
13482for ac_func in fnmatch
21d1c967 13483do
e6cc62c6
VS
13484as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13485echo "$as_me:$LINENO: checking for $ac_func" >&5
13486echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13487if eval "test \"\${$as_ac_var+set}\" = set"; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489else
13490 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13491/* confdefs.h. */
13492_ACEOF
13493cat confdefs.h >>conftest.$ac_ext
13494cat >>conftest.$ac_ext <<_ACEOF
13495/* end confdefs.h. */
243f8ae5
VS
13496/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13498#define $ac_func innocuous_$ac_func
13499
a0b9e27f 13500/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13501 which can conflict with char $ac_func (); below.
13502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13503 <limits.h> exists even on freestanding compilers. */
243f8ae5 13504
e6cc62c6
VS
13505#ifdef __STDC__
13506# include <limits.h>
13507#else
13508# include <assert.h>
13509#endif
243f8ae5
VS
13510
13511#undef $ac_func
13512
a0b9e27f 13513/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13514#ifdef __cplusplus
13515extern "C"
13516{
13517#endif
a0b9e27f 13518/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13519 builtin and then its argument prototype would still apply. */
13520char $ac_func ();
a0b9e27f
MB
13521/* The GNU C library defines this for functions which it implements
13522 to always fail with ENOSYS. Some functions are actually named
13523 something starting with __ and the normal name is an alias. */
13524#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13525choke me
13526#else
e6cc62c6
VS
13527char (*f) () = $ac_func;
13528#endif
13529#ifdef __cplusplus
13530}
a0b9e27f
MB
13531#endif
13532
e6cc62c6
VS
13533int
13534main ()
13535{
13536return f != $ac_func;
13537 ;
13538 return 0;
13539}
13540_ACEOF
13541rm -f conftest.$ac_objext conftest$ac_exeext
13542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 13543 (eval $ac_link) 2>conftest.er1
e6cc62c6 13544 ac_status=$?
243f8ae5
VS
13545 grep -v '^ *+' conftest.er1 >conftest.err
13546 rm -f conftest.er1
13547 cat conftest.err >&5
e6cc62c6
VS
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
243f8ae5
VS
13550 { ac_try='test -z "$ac_c_werror_flag"
13551 || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13560 ac_status=$?
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 eval "$as_ac_var=yes"
13564else
13565 echo "$as_me: failed program was:" >&5
13566sed 's/^/| /' conftest.$ac_ext >&5
13567
13568eval "$as_ac_var=no"
13569fi
243f8ae5
VS
13570rm -f conftest.err conftest.$ac_objext \
13571 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13572fi
13573echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13574echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13575if test `eval echo '${'$as_ac_var'}'` = yes; then
13576 cat >>confdefs.h <<_ACEOF
13577#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13578_ACEOF
32832908 13579
21d1c967
GD
13580fi
13581done
90dd450c 13582
a0b9e27f 13583fi
90dd450c 13584
e6cc62c6
VS
13585
13586for ac_header in langinfo.h
21d1c967 13587do
e6cc62c6
VS
13588as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13589if eval "test \"\${$as_ac_Header+set}\" = set"; then
13590 echo "$as_me:$LINENO: checking for $ac_header" >&5
13591echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13592if eval "test \"\${$as_ac_Header+set}\" = set"; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594fi
13595echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13596echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13597else
13598 # Is the header compilable?
13599echo "$as_me:$LINENO: checking $ac_header usability" >&5
13600echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13601cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13602/* confdefs.h. */
13603_ACEOF
13604cat confdefs.h >>conftest.$ac_ext
13605cat >>conftest.$ac_ext <<_ACEOF
13606/* end confdefs.h. */
13607$ac_includes_default
13608#include <$ac_header>
13609_ACEOF
13610rm -f conftest.$ac_objext
13611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 13612 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13613 ac_status=$?
243f8ae5
VS
13614 grep -v '^ *+' conftest.er1 >conftest.err
13615 rm -f conftest.er1
13616 cat conftest.err >&5
e6cc62c6
VS
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } &&
243f8ae5
VS
13619 { ac_try='test -z "$ac_c_werror_flag"
13620 || test ! -s conftest.err'
13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13622 (eval $ac_try) 2>&5
13623 ac_status=$?
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); }; } &&
13626 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13629 ac_status=$?
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; }; then
13632 ac_header_compiler=yes
13633else
13634 echo "$as_me: failed program was:" >&5
13635sed 's/^/| /' conftest.$ac_ext >&5
13636
13637ac_header_compiler=no
13638fi
243f8ae5 13639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13640echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13641echo "${ECHO_T}$ac_header_compiler" >&6
13642
13643# Is the header present?
13644echo "$as_me:$LINENO: checking $ac_header presence" >&5
13645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13646cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13647/* confdefs.h. */
13648_ACEOF
13649cat confdefs.h >>conftest.$ac_ext
13650cat >>conftest.$ac_ext <<_ACEOF
13651/* end confdefs.h. */
13652#include <$ac_header>
13653_ACEOF
13654if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13656 ac_status=$?
13657 grep -v '^ *+' conftest.er1 >conftest.err
13658 rm -f conftest.er1
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } >/dev/null; then
13662 if test -s conftest.err; then
13663 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 13664 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13665 else
13666 ac_cpp_err=
13667 fi
13668else
13669 ac_cpp_err=yes
13670fi
13671if test -z "$ac_cpp_err"; then
13672 ac_header_preproc=yes
13673else
13674 echo "$as_me: failed program was:" >&5
13675sed 's/^/| /' conftest.$ac_ext >&5
13676
13677 ac_header_preproc=no
13678fi
13679rm -f conftest.err conftest.$ac_ext
13680echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13681echo "${ECHO_T}$ac_header_preproc" >&6
13682
13683# So? What about this header?
243f8ae5
VS
13684case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13685 yes:no: )
e6cc62c6
VS
13686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
13688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13689echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13690 ac_header_preproc=yes
e6cc62c6 13691 ;;
243f8ae5 13692 no:yes:* )
e6cc62c6
VS
13693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13694echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13696echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13698echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13700echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13702echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
13703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13704echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13705 (
13706 cat <<\_ASBOX
243f8ae5
VS
13707## ----------------------------------------- ##
13708## Report this to wx-dev@lists.wxwindows.org ##
13709## ----------------------------------------- ##
e6cc62c6
VS
13710_ASBOX
13711 ) |
13712 sed "s/^/$as_me: WARNING: /" >&2
13713 ;;
13714esac
13715echo "$as_me:$LINENO: checking for $ac_header" >&5
13716echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13717if eval "test \"\${$as_ac_Header+set}\" = set"; then
13718 echo $ECHO_N "(cached) $ECHO_C" >&6
13719else
243f8ae5 13720 eval "$as_ac_Header=\$ac_header_preproc"
90dd450c 13721fi
e6cc62c6
VS
13722echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13723echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13724
4f14bcd8 13725fi
e6cc62c6
VS
13726if test `eval echo '${'$as_ac_Header'}'` = yes; then
13727 cat >>confdefs.h <<_ACEOF
13728#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13729_ACEOF
13730
21d1c967 13731fi
e6cc62c6 13732
21d1c967 13733done
3a922bb4 13734
8284b0c5 13735
4f5a7f74
VZ
13736case "${host}" in
13737 *-pc-os2_emx | *-pc-os2-emx )
13738 if test $ac_cv_header_langinfo_h = "yes"; then
13739 LIBS="$LIBS -lintl"
13740 fi
13741 ;;
13742esac
1542ea39 13743
a0b9e27f 13744if test "$wxUSE_GUI" = "yes"; then
73d617c9 13745 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13746
eb69fda5 13747for ac_header in X11/Xlib.h
21d1c967 13748do
e6cc62c6
VS
13749as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13750if eval "test \"\${$as_ac_Header+set}\" = set"; then
13751 echo "$as_me:$LINENO: checking for $ac_header" >&5
13752echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13753if eval "test \"\${$as_ac_Header+set}\" = set"; then
13754 echo $ECHO_N "(cached) $ECHO_C" >&6
13755fi
13756echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13757echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13758else
13759 # Is the header compilable?
13760echo "$as_me:$LINENO: checking $ac_header usability" >&5
13761echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13762cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13763/* confdefs.h. */
13764_ACEOF
13765cat confdefs.h >>conftest.$ac_ext
13766cat >>conftest.$ac_ext <<_ACEOF
13767/* end confdefs.h. */
13768$ac_includes_default
13769#include <$ac_header>
13770_ACEOF
13771rm -f conftest.$ac_objext
13772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 13773 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13774 ac_status=$?
243f8ae5
VS
13775 grep -v '^ *+' conftest.er1 >conftest.err
13776 rm -f conftest.er1
13777 cat conftest.err >&5
e6cc62c6
VS
13778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13779 (exit $ac_status); } &&
243f8ae5
VS
13780 { ac_try='test -z "$ac_c_werror_flag"
13781 || test ! -s conftest.err'
13782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13783 (eval $ac_try) 2>&5
13784 ac_status=$?
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; } &&
13787 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13789 (eval $ac_try) 2>&5
13790 ac_status=$?
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); }; }; then
13793 ac_header_compiler=yes
13794else
13795 echo "$as_me: failed program was:" >&5
13796sed 's/^/| /' conftest.$ac_ext >&5
13797
13798ac_header_compiler=no
13799fi
243f8ae5 13800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13801echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13802echo "${ECHO_T}$ac_header_compiler" >&6
13803
13804# Is the header present?
13805echo "$as_me:$LINENO: checking $ac_header presence" >&5
13806echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13807cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13808/* confdefs.h. */
13809_ACEOF
13810cat confdefs.h >>conftest.$ac_ext
13811cat >>conftest.$ac_ext <<_ACEOF
13812/* end confdefs.h. */
13813#include <$ac_header>
13814_ACEOF
13815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } >/dev/null; then
13823 if test -s conftest.err; then
13824 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 13825 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13826 else
13827 ac_cpp_err=
13828 fi
13829else
13830 ac_cpp_err=yes
13831fi
13832if test -z "$ac_cpp_err"; then
13833 ac_header_preproc=yes
13834else
13835 echo "$as_me: failed program was:" >&5
13836sed 's/^/| /' conftest.$ac_ext >&5
13837
13838 ac_header_preproc=no
13839fi
13840rm -f conftest.err conftest.$ac_ext
13841echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13842echo "${ECHO_T}$ac_header_preproc" >&6
13843
13844# So? What about this header?
243f8ae5
VS
13845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13846 yes:no: )
e6cc62c6
VS
13847 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13848echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13850echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13851 ac_header_preproc=yes
e6cc62c6 13852 ;;
243f8ae5 13853 no:yes:* )
e6cc62c6
VS
13854 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13855echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
13856 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13857echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13858 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13859echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13860 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13861echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13863echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
13864 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13865echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13866 (
13867 cat <<\_ASBOX
243f8ae5
VS
13868## ----------------------------------------- ##
13869## Report this to wx-dev@lists.wxwindows.org ##
13870## ----------------------------------------- ##
e6cc62c6
VS
13871_ASBOX
13872 ) |
13873 sed "s/^/$as_me: WARNING: /" >&2
13874 ;;
13875esac
13876echo "$as_me:$LINENO: checking for $ac_header" >&5
13877echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13878if eval "test \"\${$as_ac_Header+set}\" = set"; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880else
243f8ae5 13881 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13882fi
e6cc62c6
VS
13883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13885
90dd450c 13886fi
e6cc62c6
VS
13887if test `eval echo '${'$as_ac_Header'}'` = yes; then
13888 cat >>confdefs.h <<_ACEOF
13889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13890_ACEOF
13891
247f5006 13892fi
e6cc62c6 13893
eb69fda5
VS
13894done
13895
13896
13897for ac_header in X11/XKBlib.h
13898do
13899as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13900echo "$as_me:$LINENO: checking for $ac_header" >&5
13901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13902if eval "test \"\${$as_ac_Header+set}\" = set"; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905 cat >conftest.$ac_ext <<_ACEOF
eb69fda5
VS
13906/* confdefs.h. */
13907_ACEOF
13908cat confdefs.h >>conftest.$ac_ext
13909cat >>conftest.$ac_ext <<_ACEOF
13910/* end confdefs.h. */
13911
13912 #if HAVE_X11_XLIB_H
13913 #include <X11/Xlib.h>
13914 #endif
13915
13916
13917#include <$ac_header>
13918_ACEOF
13919rm -f conftest.$ac_objext
13920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 13921 (eval $ac_compile) 2>conftest.er1
eb69fda5 13922 ac_status=$?
243f8ae5
VS
13923 grep -v '^ *+' conftest.er1 >conftest.err
13924 rm -f conftest.er1
13925 cat conftest.err >&5
eb69fda5
VS
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
243f8ae5
VS
13928 { ac_try='test -z "$ac_c_werror_flag"
13929 || test ! -s conftest.err'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; } &&
13935 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }; then
13941 eval "$as_ac_Header=yes"
13942else
13943 echo "$as_me: failed program was:" >&5
13944sed 's/^/| /' conftest.$ac_ext >&5
13945
13946eval "$as_ac_Header=no"
13947fi
243f8ae5 13948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
13949fi
13950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13951echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13952if test `eval echo '${'$as_ac_Header'}'` = yes; then
13953 cat >>confdefs.h <<_ACEOF
13954#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13955_ACEOF
13956
13957fi
13958
247f5006
VZ
13959done
13960
a0b9e27f
MB
13961 fi
13962fi
247f5006 13963
247f5006 13964
e6cc62c6
VS
13965echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13966echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13967if test "${ac_cv_c_const+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13969else
13970 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13971/* confdefs.h. */
13972_ACEOF
13973cat confdefs.h >>conftest.$ac_ext
13974cat >>conftest.$ac_ext <<_ACEOF
13975/* end confdefs.h. */
13976
13977int
13978main ()
13979{
13980/* FIXME: Include the comments suggested by Paul. */
13981#ifndef __cplusplus
13982 /* Ultrix mips cc rejects this. */
13983 typedef int charset[2];
13984 const charset x;
13985 /* SunOS 4.1.1 cc rejects this. */
13986 char const *const *ccp;
13987 char **p;
13988 /* NEC SVR4.0.2 mips cc rejects this. */
13989 struct point {int x, y;};
13990 static struct point const zero = {0,0};
13991 /* AIX XL C 1.02.0.0 rejects this.
13992 It does not let you subtract one const X* pointer from another in
13993 an arm of an if-expression whose if-part is not a constant
13994 expression */
13995 const char *g = "string";
13996 ccp = &g + (g ? g-g : 0);
13997 /* HPUX 7.0 cc rejects these. */
13998 ++ccp;
13999 p = (char**) ccp;
14000 ccp = (char const *const *) p;
14001 { /* SCO 3.2v4 cc rejects this. */
14002 char *t;
14003 char const *s = 0 ? (char *) 0 : (char const *) 0;
14004
14005 *t++ = 0;
14006 }
14007 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14008 int x[] = {25, 17};
14009 const int *foo = &x[0];
14010 ++foo;
14011 }
14012 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14013 typedef const int *iptr;
14014 iptr p = 0;
14015 ++p;
14016 }
14017 { /* AIX XL C 1.02.0.0 rejects this saying
14018 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14019 struct s { int j; const int *ap[3]; };
14020 struct s *b; b->j = 5;
14021 }
14022 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14023 const int foo = 10;
14024 }
14025#endif
14026
14027 ;
14028 return 0;
14029}
14030_ACEOF
14031rm -f conftest.$ac_objext
14032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14033 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14034 ac_status=$?
243f8ae5
VS
14035 grep -v '^ *+' conftest.er1 >conftest.err
14036 rm -f conftest.er1
14037 cat conftest.err >&5
e6cc62c6
VS
14038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } &&
243f8ae5
VS
14040 { ac_try='test -z "$ac_c_werror_flag"
14041 || test ! -s conftest.err'
14042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14043 (eval $ac_try) 2>&5
14044 ac_status=$?
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; } &&
14047 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14049 (eval $ac_try) 2>&5
14050 ac_status=$?
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); }; }; then
a0b9e27f 14053 ac_cv_c_const=yes
247f5006 14054else
e6cc62c6
VS
14055 echo "$as_me: failed program was:" >&5
14056sed 's/^/| /' conftest.$ac_ext >&5
14057
14058ac_cv_c_const=no
247f5006 14059fi
243f8ae5 14060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 14061fi
e6cc62c6
VS
14062echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14063echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 14064if test $ac_cv_c_const = no; then
e6cc62c6
VS
14065
14066cat >>confdefs.h <<\_ACEOF
14067#define const
14068_ACEOF
10f2d63a 14069
90dd450c 14070fi
81809c07 14071
e6cc62c6
VS
14072echo "$as_me:$LINENO: checking for inline" >&5
14073echo $ECHO_N "checking for inline... $ECHO_C" >&6
14074if test "${ac_cv_c_inline+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 14076else
a0b9e27f
MB
14077 ac_cv_c_inline=no
14078for ac_kw in inline __inline__ __inline; do
e6cc62c6 14079 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14080/* confdefs.h. */
14081_ACEOF
14082cat confdefs.h >>conftest.$ac_ext
14083cat >>conftest.$ac_ext <<_ACEOF
14084/* end confdefs.h. */
14085#ifndef __cplusplus
14086typedef int foo_t;
14087static $ac_kw foo_t static_foo () {return 0; }
14088$ac_kw foo_t foo () {return 0; }
14089#endif
a0b9e27f 14090
e6cc62c6
VS
14091_ACEOF
14092rm -f conftest.$ac_objext
14093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14094 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14095 ac_status=$?
243f8ae5
VS
14096 grep -v '^ *+' conftest.er1 >conftest.err
14097 rm -f conftest.er1
14098 cat conftest.err >&5
e6cc62c6
VS
14099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100 (exit $ac_status); } &&
243f8ae5
VS
14101 { ac_try='test -z "$ac_c_werror_flag"
14102 || test ! -s conftest.err'
14103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104 (eval $ac_try) 2>&5
14105 ac_status=$?
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); }; } &&
14108 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110 (eval $ac_try) 2>&5
14111 ac_status=$?
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); }; }; then
a0b9e27f 14114 ac_cv_c_inline=$ac_kw; break
247f5006 14115else
e6cc62c6
VS
14116 echo "$as_me: failed program was:" >&5
14117sed 's/^/| /' conftest.$ac_ext >&5
14118
247f5006 14119fi
243f8ae5 14120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 14121done
247f5006
VZ
14122
14123fi
e6cc62c6
VS
14124echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14125echo "${ECHO_T}$ac_cv_c_inline" >&6
243f8ae5
VS
14126
14127
e6cc62c6 14128case $ac_cv_c_inline in
a0b9e27f 14129 inline | yes) ;;
243f8ae5
VS
14130 *)
14131 case $ac_cv_c_inline in
14132 no) ac_val=;;
14133 *) ac_val=$ac_cv_c_inline;;
14134 esac
14135 cat >>confdefs.h <<_ACEOF
14136#ifndef __cplusplus
14137#define inline $ac_val
14138#endif
789c5f4a 14139_ACEOF
243f8ae5 14140 ;;
a0b9e27f 14141esac
247f5006 14142
247f5006 14143
e6cc62c6
VS
14144echo "$as_me:$LINENO: checking for char" >&5
14145echo $ECHO_N "checking for char... $ECHO_C" >&6
14146if test "${ac_cv_type_char+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148else
14149 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14150/* confdefs.h. */
14151_ACEOF
14152cat confdefs.h >>conftest.$ac_ext
14153cat >>conftest.$ac_ext <<_ACEOF
14154/* end confdefs.h. */
14155$ac_includes_default
14156int
14157main ()
14158{
14159if ((char *) 0)
14160 return 0;
14161if (sizeof (char))
14162 return 0;
14163 ;
14164 return 0;
14165}
14166_ACEOF
14167rm -f conftest.$ac_objext
14168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14169 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14170 ac_status=$?
243f8ae5
VS
14171 grep -v '^ *+' conftest.er1 >conftest.err
14172 rm -f conftest.er1
14173 cat conftest.err >&5
e6cc62c6
VS
14174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175 (exit $ac_status); } &&
243f8ae5
VS
14176 { ac_try='test -z "$ac_c_werror_flag"
14177 || test ! -s conftest.err'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; } &&
14183 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14186 ac_status=$?
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }; then
14189 ac_cv_type_char=yes
14190else
14191 echo "$as_me: failed program was:" >&5
14192sed 's/^/| /' conftest.$ac_ext >&5
14193
14194ac_cv_type_char=no
14195fi
243f8ae5 14196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14197fi
14198echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14199echo "${ECHO_T}$ac_cv_type_char" >&6
14200
14201echo "$as_me:$LINENO: checking size of char" >&5
14202echo $ECHO_N "checking size of char... $ECHO_C" >&6
14203if test "${ac_cv_sizeof_char+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205else
14206 if test "$ac_cv_type_char" = yes; then
14207 # The cast to unsigned long works around a bug in the HP C Compiler
14208 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14209 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14210 # This bug is HP SR number 8606223364.
a0b9e27f 14211 if test "$cross_compiling" = yes; then
e6cc62c6
VS
14212 # Depending upon the size, compute the lo and hi bounds.
14213cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14214/* confdefs.h. */
14215_ACEOF
14216cat confdefs.h >>conftest.$ac_ext
14217cat >>conftest.$ac_ext <<_ACEOF
14218/* end confdefs.h. */
14219$ac_includes_default
14220int
14221main ()
14222{
14223static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14224test_array [0] = 0
14225
14226 ;
14227 return 0;
14228}
14229_ACEOF
14230rm -f conftest.$ac_objext
14231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14232 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14233 ac_status=$?
243f8ae5
VS
14234 grep -v '^ *+' conftest.er1 >conftest.err
14235 rm -f conftest.er1
14236 cat conftest.err >&5
e6cc62c6
VS
14237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14238 (exit $ac_status); } &&
243f8ae5
VS
14239 { ac_try='test -z "$ac_c_werror_flag"
14240 || test ! -s conftest.err'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; } &&
14246 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14249 ac_status=$?
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14252 ac_lo=0 ac_mid=0
14253 while :; do
14254 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14255/* confdefs.h. */
14256_ACEOF
14257cat confdefs.h >>conftest.$ac_ext
14258cat >>conftest.$ac_ext <<_ACEOF
14259/* end confdefs.h. */
14260$ac_includes_default
14261int
14262main ()
14263{
14264static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14265test_array [0] = 0
14266
14267 ;
14268 return 0;
14269}
14270_ACEOF
14271rm -f conftest.$ac_objext
14272if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14273 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14274 ac_status=$?
243f8ae5
VS
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
e6cc62c6
VS
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
243f8ae5
VS
14280 { ac_try='test -z "$ac_c_werror_flag"
14281 || test ! -s conftest.err'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; } &&
14287 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14290 ac_status=$?
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; }; then
14293 ac_hi=$ac_mid; break
14294else
14295 echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
14298ac_lo=`expr $ac_mid + 1`
243f8ae5
VS
14299 if test $ac_lo -le $ac_mid; then
14300 ac_lo= ac_hi=
14301 break
14302 fi
14303 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 14304fi
243f8ae5 14305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14306 done
a0b9e27f 14307else
e6cc62c6
VS
14308 echo "$as_me: failed program was:" >&5
14309sed 's/^/| /' conftest.$ac_ext >&5
14310
14311cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14312/* confdefs.h. */
14313_ACEOF
14314cat confdefs.h >>conftest.$ac_ext
14315cat >>conftest.$ac_ext <<_ACEOF
14316/* end confdefs.h. */
14317$ac_includes_default
14318int
14319main ()
14320{
14321static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14322test_array [0] = 0
14323
14324 ;
14325 return 0;
14326}
14327_ACEOF
14328rm -f conftest.$ac_objext
14329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14330 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14331 ac_status=$?
243f8ae5
VS
14332 grep -v '^ *+' conftest.er1 >conftest.err
14333 rm -f conftest.er1
14334 cat conftest.err >&5
e6cc62c6
VS
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
243f8ae5
VS
14337 { ac_try='test -z "$ac_c_werror_flag"
14338 || test ! -s conftest.err'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14341 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350 ac_hi=-1 ac_mid=-1
14351 while :; do
14352 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14353/* confdefs.h. */
14354_ACEOF
14355cat confdefs.h >>conftest.$ac_ext
14356cat >>conftest.$ac_ext <<_ACEOF
14357/* end confdefs.h. */
14358$ac_includes_default
14359int
14360main ()
14361{
14362static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14363test_array [0] = 0
14364
14365 ;
14366 return 0;
14367}
14368_ACEOF
14369rm -f conftest.$ac_objext
14370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14371 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14372 ac_status=$?
243f8ae5
VS
14373 grep -v '^ *+' conftest.er1 >conftest.err
14374 rm -f conftest.er1
14375 cat conftest.err >&5
e6cc62c6
VS
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } &&
243f8ae5
VS
14378 { ac_try='test -z "$ac_c_werror_flag"
14379 || test ! -s conftest.err'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; } &&
14385 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; }; then
14391 ac_lo=$ac_mid; break
14392else
14393 echo "$as_me: failed program was:" >&5
14394sed 's/^/| /' conftest.$ac_ext >&5
14395
14396ac_hi=`expr '(' $ac_mid ')' - 1`
243f8ae5
VS
14397 if test $ac_mid -le $ac_hi; then
14398 ac_lo= ac_hi=
14399 break
14400 fi
14401 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14402fi
243f8ae5 14403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14404 done
14405else
14406 echo "$as_me: failed program was:" >&5
14407sed 's/^/| /' conftest.$ac_ext >&5
14408
14409ac_lo= ac_hi=
14410fi
243f8ae5 14411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14412fi
243f8ae5 14413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14414# Binary search between lo and hi bounds.
14415while test "x$ac_lo" != "x$ac_hi"; do
14416 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14417 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14418/* confdefs.h. */
14419_ACEOF
14420cat confdefs.h >>conftest.$ac_ext
14421cat >>conftest.$ac_ext <<_ACEOF
14422/* end confdefs.h. */
14423$ac_includes_default
14424int
14425main ()
14426{
14427static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14428test_array [0] = 0
14429
14430 ;
14431 return 0;
14432}
14433_ACEOF
14434rm -f conftest.$ac_objext
14435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14436 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14437 ac_status=$?
243f8ae5
VS
14438 grep -v '^ *+' conftest.er1 >conftest.err
14439 rm -f conftest.er1
14440 cat conftest.err >&5
e6cc62c6
VS
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } &&
243f8ae5
VS
14443 { ac_try='test -z "$ac_c_werror_flag"
14444 || test ! -s conftest.err'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; } &&
14450 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14452 (eval $ac_try) 2>&5
14453 ac_status=$?
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 ac_hi=$ac_mid
14457else
14458 echo "$as_me: failed program was:" >&5
14459sed 's/^/| /' conftest.$ac_ext >&5
14460
14461ac_lo=`expr '(' $ac_mid ')' + 1`
14462fi
243f8ae5 14463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14464done
14465case $ac_lo in
14466?*) ac_cv_sizeof_char=$ac_lo;;
14467'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14468See \`config.log' for more details." >&5
14469echo "$as_me: error: cannot compute sizeof (char), 77
14470See \`config.log' for more details." >&2;}
14471 { (exit 1); exit 1; }; } ;;
14472esac
14473else
14474 if test "$cross_compiling" = yes; then
14475 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14476See \`config.log' for more details." >&5
14477echo "$as_me: error: cannot run test program while cross compiling
14478See \`config.log' for more details." >&2;}
14479 { (exit 1); exit 1; }; }
14480else
14481 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14482/* confdefs.h. */
14483_ACEOF
14484cat confdefs.h >>conftest.$ac_ext
14485cat >>conftest.$ac_ext <<_ACEOF
14486/* end confdefs.h. */
14487$ac_includes_default
14488long longval () { return (long) (sizeof (char)); }
14489unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14490#include <stdio.h>
e6cc62c6
VS
14491#include <stdlib.h>
14492int
14493main ()
247f5006 14494{
e6cc62c6
VS
14495
14496 FILE *f = fopen ("conftest.val", "w");
14497 if (! f)
14498 exit (1);
14499 if (((long) (sizeof (char))) < 0)
14500 {
14501 long i = longval ();
14502 if (i != ((long) (sizeof (char))))
14503 exit (1);
14504 fprintf (f, "%ld\n", i);
14505 }
14506 else
14507 {
14508 unsigned long i = ulongval ();
14509 if (i != ((long) (sizeof (char))))
14510 exit (1);
14511 fprintf (f, "%lu\n", i);
14512 }
14513 exit (ferror (f) || fclose (f) != 0);
14514
14515 ;
14516 return 0;
52127426 14517}
e6cc62c6
VS
14518_ACEOF
14519rm -f conftest$ac_exeext
14520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14521 (eval $ac_link) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_cv_sizeof_char=`cat conftest.val`
14531else
14532 echo "$as_me: program exited with status $ac_status" >&5
14533echo "$as_me: failed program was:" >&5
14534sed 's/^/| /' conftest.$ac_ext >&5
14535
14536( exit $ac_status )
14537{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14538See \`config.log' for more details." >&5
14539echo "$as_me: error: cannot compute sizeof (char), 77
14540See \`config.log' for more details." >&2;}
14541 { (exit 1); exit 1; }; }
14542fi
243f8ae5 14543rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14544fi
14545fi
14546rm -f conftest.val
247f5006 14547else
a0b9e27f 14548 ac_cv_sizeof_char=0
247f5006 14549fi
247f5006 14550fi
e6cc62c6
VS
14551echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14552echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14553cat >>confdefs.h <<_ACEOF
14554#define SIZEOF_CHAR $ac_cv_sizeof_char
14555_ACEOF
14556
14557
14558echo "$as_me:$LINENO: checking for short" >&5
14559echo $ECHO_N "checking for short... $ECHO_C" >&6
14560if test "${ac_cv_type_short+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14562else
14563 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14564/* confdefs.h. */
14565_ACEOF
14566cat confdefs.h >>conftest.$ac_ext
14567cat >>conftest.$ac_ext <<_ACEOF
14568/* end confdefs.h. */
14569$ac_includes_default
14570int
14571main ()
14572{
14573if ((short *) 0)
14574 return 0;
14575if (sizeof (short))
14576 return 0;
14577 ;
14578 return 0;
14579}
14580_ACEOF
14581rm -f conftest.$ac_objext
14582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14583 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14584 ac_status=$?
243f8ae5
VS
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
e6cc62c6
VS
14588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } &&
243f8ae5
VS
14590 { ac_try='test -z "$ac_c_werror_flag"
14591 || test ! -s conftest.err'
14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14593 (eval $ac_try) 2>&5
14594 ac_status=$?
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; }; then
14603 ac_cv_type_short=yes
14604else
14605 echo "$as_me: failed program was:" >&5
14606sed 's/^/| /' conftest.$ac_ext >&5
14607
14608ac_cv_type_short=no
14609fi
243f8ae5 14610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14611fi
14612echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14613echo "${ECHO_T}$ac_cv_type_short" >&6
14614
14615echo "$as_me:$LINENO: checking size of short" >&5
14616echo $ECHO_N "checking size of short... $ECHO_C" >&6
14617if test "${ac_cv_sizeof_short+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14619else
14620 if test "$ac_cv_type_short" = yes; then
14621 # The cast to unsigned long works around a bug in the HP C Compiler
14622 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14623 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14624 # This bug is HP SR number 8606223364.
14625 if test "$cross_compiling" = yes; then
14626 # Depending upon the size, compute the lo and hi bounds.
14627cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14628/* confdefs.h. */
14629_ACEOF
14630cat confdefs.h >>conftest.$ac_ext
14631cat >>conftest.$ac_ext <<_ACEOF
14632/* end confdefs.h. */
14633$ac_includes_default
14634int
14635main ()
14636{
14637static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14638test_array [0] = 0
247f5006 14639
e6cc62c6
VS
14640 ;
14641 return 0;
14642}
14643_ACEOF
14644rm -f conftest.$ac_objext
14645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14646 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14647 ac_status=$?
243f8ae5
VS
14648 grep -v '^ *+' conftest.er1 >conftest.err
14649 rm -f conftest.er1
14650 cat conftest.err >&5
e6cc62c6
VS
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
243f8ae5
VS
14653 { ac_try='test -z "$ac_c_werror_flag"
14654 || test ! -s conftest.err'
14655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656 (eval $ac_try) 2>&5
14657 ac_status=$?
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); }; } &&
14660 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; }; then
14666 ac_lo=0 ac_mid=0
14667 while :; do
14668 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14669/* confdefs.h. */
14670_ACEOF
14671cat confdefs.h >>conftest.$ac_ext
14672cat >>conftest.$ac_ext <<_ACEOF
14673/* end confdefs.h. */
14674$ac_includes_default
14675int
14676main ()
14677{
14678static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14679test_array [0] = 0
14680
14681 ;
14682 return 0;
14683}
14684_ACEOF
14685rm -f conftest.$ac_objext
14686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14687 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14688 ac_status=$?
243f8ae5
VS
14689 grep -v '^ *+' conftest.er1 >conftest.err
14690 rm -f conftest.er1
14691 cat conftest.err >&5
e6cc62c6
VS
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); } &&
243f8ae5
VS
14694 { ac_try='test -z "$ac_c_werror_flag"
14695 || test ! -s conftest.err'
14696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697 (eval $ac_try) 2>&5
14698 ac_status=$?
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); }; } &&
14701 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703 (eval $ac_try) 2>&5
14704 ac_status=$?
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); }; }; then
14707 ac_hi=$ac_mid; break
14708else
14709 echo "$as_me: failed program was:" >&5
14710sed 's/^/| /' conftest.$ac_ext >&5
14711
14712ac_lo=`expr $ac_mid + 1`
243f8ae5
VS
14713 if test $ac_lo -le $ac_mid; then
14714 ac_lo= ac_hi=
14715 break
14716 fi
14717 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14718fi
243f8ae5 14719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14720 done
14721else
14722 echo "$as_me: failed program was:" >&5
14723sed 's/^/| /' conftest.$ac_ext >&5
14724
14725cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14726/* confdefs.h. */
14727_ACEOF
14728cat confdefs.h >>conftest.$ac_ext
14729cat >>conftest.$ac_ext <<_ACEOF
14730/* end confdefs.h. */
14731$ac_includes_default
14732int
14733main ()
14734{
14735static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14736test_array [0] = 0
247f5006 14737
e6cc62c6
VS
14738 ;
14739 return 0;
14740}
14741_ACEOF
14742rm -f conftest.$ac_objext
14743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14744 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14745 ac_status=$?
243f8ae5
VS
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
e6cc62c6
VS
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
243f8ae5
VS
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_hi=-1 ac_mid=-1
14765 while :; do
14766 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14767/* confdefs.h. */
14768_ACEOF
14769cat confdefs.h >>conftest.$ac_ext
14770cat >>conftest.$ac_ext <<_ACEOF
14771/* end confdefs.h. */
14772$ac_includes_default
14773int
14774main ()
14775{
14776static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14777test_array [0] = 0
247f5006 14778
e6cc62c6
VS
14779 ;
14780 return 0;
14781}
14782_ACEOF
14783rm -f conftest.$ac_objext
14784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14785 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14786 ac_status=$?
243f8ae5
VS
14787 grep -v '^ *+' conftest.er1 >conftest.err
14788 rm -f conftest.er1
14789 cat conftest.err >&5
e6cc62c6
VS
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
243f8ae5
VS
14792 { ac_try='test -z "$ac_c_werror_flag"
14793 || test ! -s conftest.err'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14796 ac_status=$?
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; } &&
14799 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14801 (eval $ac_try) 2>&5
14802 ac_status=$?
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; }; then
14805 ac_lo=$ac_mid; break
14806else
14807 echo "$as_me: failed program was:" >&5
14808sed 's/^/| /' conftest.$ac_ext >&5
14809
14810ac_hi=`expr '(' $ac_mid ')' - 1`
243f8ae5
VS
14811 if test $ac_mid -le $ac_hi; then
14812 ac_lo= ac_hi=
14813 break
14814 fi
14815 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14816fi
243f8ae5 14817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14818 done
247f5006 14819else
e6cc62c6
VS
14820 echo "$as_me: failed program was:" >&5
14821sed 's/^/| /' conftest.$ac_ext >&5
14822
14823ac_lo= ac_hi=
14824fi
243f8ae5 14825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14826fi
243f8ae5 14827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14828# Binary search between lo and hi bounds.
14829while test "x$ac_lo" != "x$ac_hi"; do
14830 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14831 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14832/* confdefs.h. */
14833_ACEOF
14834cat confdefs.h >>conftest.$ac_ext
14835cat >>conftest.$ac_ext <<_ACEOF
14836/* end confdefs.h. */
14837$ac_includes_default
14838int
14839main ()
14840{
14841static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14842test_array [0] = 0
14843
14844 ;
14845 return 0;
14846}
14847_ACEOF
14848rm -f conftest.$ac_objext
14849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14850 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14851 ac_status=$?
243f8ae5
VS
14852 grep -v '^ *+' conftest.er1 >conftest.err
14853 rm -f conftest.er1
14854 cat conftest.err >&5
e6cc62c6
VS
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } &&
243f8ae5
VS
14857 { ac_try='test -z "$ac_c_werror_flag"
14858 || test ! -s conftest.err'
14859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14860 (eval $ac_try) 2>&5
14861 ac_status=$?
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); }; } &&
14864 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14866 (eval $ac_try) 2>&5
14867 ac_status=$?
14868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14869 (exit $ac_status); }; }; then
14870 ac_hi=$ac_mid
14871else
14872 echo "$as_me: failed program was:" >&5
14873sed 's/^/| /' conftest.$ac_ext >&5
14874
14875ac_lo=`expr '(' $ac_mid ')' + 1`
14876fi
243f8ae5 14877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14878done
14879case $ac_lo in
14880?*) ac_cv_sizeof_short=$ac_lo;;
14881'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14882See \`config.log' for more details." >&5
14883echo "$as_me: error: cannot compute sizeof (short), 77
14884See \`config.log' for more details." >&2;}
14885 { (exit 1); exit 1; }; } ;;
14886esac
247f5006 14887else
e6cc62c6
VS
14888 if test "$cross_compiling" = yes; then
14889 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14890See \`config.log' for more details." >&5
14891echo "$as_me: error: cannot run test program while cross compiling
14892See \`config.log' for more details." >&2;}
14893 { (exit 1); exit 1; }; }
14894else
14895 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14896/* confdefs.h. */
14897_ACEOF
14898cat confdefs.h >>conftest.$ac_ext
14899cat >>conftest.$ac_ext <<_ACEOF
14900/* end confdefs.h. */
14901$ac_includes_default
14902long longval () { return (long) (sizeof (short)); }
14903unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14904#include <stdio.h>
e6cc62c6
VS
14905#include <stdlib.h>
14906int
14907main ()
a0b9e27f 14908{
e6cc62c6
VS
14909
14910 FILE *f = fopen ("conftest.val", "w");
14911 if (! f)
14912 exit (1);
14913 if (((long) (sizeof (short))) < 0)
14914 {
14915 long i = longval ();
14916 if (i != ((long) (sizeof (short))))
14917 exit (1);
14918 fprintf (f, "%ld\n", i);
14919 }
14920 else
14921 {
14922 unsigned long i = ulongval ();
14923 if (i != ((long) (sizeof (short))))
14924 exit (1);
14925 fprintf (f, "%lu\n", i);
14926 }
14927 exit (ferror (f) || fclose (f) != 0);
14928
14929 ;
14930 return 0;
a0b9e27f 14931}
e6cc62c6
VS
14932_ACEOF
14933rm -f conftest$ac_exeext
14934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14935 (eval $ac_link) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14940 (eval $ac_try) 2>&5
14941 ac_status=$?
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); }; }; then
14944 ac_cv_sizeof_short=`cat conftest.val`
14945else
14946 echo "$as_me: program exited with status $ac_status" >&5
14947echo "$as_me: failed program was:" >&5
14948sed 's/^/| /' conftest.$ac_ext >&5
14949
14950( exit $ac_status )
14951{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14952See \`config.log' for more details." >&5
14953echo "$as_me: error: cannot compute sizeof (short), 77
14954See \`config.log' for more details." >&2;}
14955 { (exit 1); exit 1; }; }
14956fi
243f8ae5 14957rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14958fi
14959fi
14960rm -f conftest.val
247f5006 14961else
a0b9e27f 14962 ac_cv_sizeof_short=0
247f5006 14963fi
247f5006 14964fi
e6cc62c6
VS
14965echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14966echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14967cat >>confdefs.h <<_ACEOF
14968#define SIZEOF_SHORT $ac_cv_sizeof_short
14969_ACEOF
14970
14971
14972echo "$as_me:$LINENO: checking for void *" >&5
14973echo $ECHO_N "checking for void *... $ECHO_C" >&6
14974if test "${ac_cv_type_void_p+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14976else
14977 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14978/* confdefs.h. */
14979_ACEOF
14980cat confdefs.h >>conftest.$ac_ext
14981cat >>conftest.$ac_ext <<_ACEOF
14982/* end confdefs.h. */
14983$ac_includes_default
14984int
14985main ()
14986{
14987if ((void * *) 0)
14988 return 0;
14989if (sizeof (void *))
14990 return 0;
14991 ;
14992 return 0;
14993}
14994_ACEOF
14995rm -f conftest.$ac_objext
14996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 14997 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14998 ac_status=$?
243f8ae5
VS
14999 grep -v '^ *+' conftest.er1 >conftest.err
15000 rm -f conftest.er1
15001 cat conftest.err >&5
e6cc62c6
VS
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); } &&
243f8ae5
VS
15004 { ac_try='test -z "$ac_c_werror_flag"
15005 || test ! -s conftest.err'
15006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15007 (eval $ac_try) 2>&5
15008 ac_status=$?
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); }; } &&
15011 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15013 (eval $ac_try) 2>&5
15014 ac_status=$?
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 ac_cv_type_void_p=yes
15018else
15019 echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022ac_cv_type_void_p=no
15023fi
243f8ae5 15024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15025fi
15026echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15027echo "${ECHO_T}$ac_cv_type_void_p" >&6
15028
15029echo "$as_me:$LINENO: checking size of void *" >&5
15030echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15031if test "${ac_cv_sizeof_void_p+set}" = set; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15033else
15034 if test "$ac_cv_type_void_p" = yes; then
15035 # The cast to unsigned long works around a bug in the HP C Compiler
15036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15038 # This bug is HP SR number 8606223364.
15039 if test "$cross_compiling" = yes; then
15040 # Depending upon the size, compute the lo and hi bounds.
15041cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15042/* confdefs.h. */
15043_ACEOF
15044cat confdefs.h >>conftest.$ac_ext
15045cat >>conftest.$ac_ext <<_ACEOF
15046/* end confdefs.h. */
15047$ac_includes_default
15048int
15049main ()
15050{
15051static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15052test_array [0] = 0
15053
15054 ;
15055 return 0;
15056}
15057_ACEOF
15058rm -f conftest.$ac_objext
15059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15060 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15061 ac_status=$?
243f8ae5
VS
15062 grep -v '^ *+' conftest.er1 >conftest.err
15063 rm -f conftest.er1
15064 cat conftest.err >&5
e6cc62c6
VS
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
243f8ae5
VS
15067 { ac_try='test -z "$ac_c_werror_flag"
15068 || test ! -s conftest.err'
15069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15070 (eval $ac_try) 2>&5
15071 ac_status=$?
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); }; } &&
15074 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15077 ac_status=$?
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15080 ac_lo=0 ac_mid=0
15081 while :; do
15082 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
15087/* end confdefs.h. */
15088$ac_includes_default
15089int
15090main ()
15091{
15092static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15093test_array [0] = 0
247f5006 15094
e6cc62c6
VS
15095 ;
15096 return 0;
15097}
15098_ACEOF
15099rm -f conftest.$ac_objext
15100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15101 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15102 ac_status=$?
243f8ae5
VS
15103 grep -v '^ *+' conftest.er1 >conftest.err
15104 rm -f conftest.er1
15105 cat conftest.err >&5
e6cc62c6
VS
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); } &&
243f8ae5
VS
15108 { ac_try='test -z "$ac_c_werror_flag"
15109 || test ! -s conftest.err'
15110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111 (eval $ac_try) 2>&5
15112 ac_status=$?
15113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114 (exit $ac_status); }; } &&
15115 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117 (eval $ac_try) 2>&5
15118 ac_status=$?
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_hi=$ac_mid; break
15122else
15123 echo "$as_me: failed program was:" >&5
15124sed 's/^/| /' conftest.$ac_ext >&5
15125
15126ac_lo=`expr $ac_mid + 1`
243f8ae5
VS
15127 if test $ac_lo -le $ac_mid; then
15128 ac_lo= ac_hi=
15129 break
15130 fi
15131 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15132fi
243f8ae5 15133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15134 done
15135else
15136 echo "$as_me: failed program was:" >&5
15137sed 's/^/| /' conftest.$ac_ext >&5
15138
15139cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15140/* confdefs.h. */
15141_ACEOF
15142cat confdefs.h >>conftest.$ac_ext
15143cat >>conftest.$ac_ext <<_ACEOF
15144/* end confdefs.h. */
15145$ac_includes_default
15146int
15147main ()
15148{
15149static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15150test_array [0] = 0
247f5006 15151
e6cc62c6
VS
15152 ;
15153 return 0;
15154}
15155_ACEOF
15156rm -f conftest.$ac_objext
15157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15158 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15159 ac_status=$?
243f8ae5
VS
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
e6cc62c6
VS
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
243f8ae5
VS
15165 { ac_try='test -z "$ac_c_werror_flag"
15166 || test ! -s conftest.err'
15167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15168 (eval $ac_try) 2>&5
15169 ac_status=$?
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); }; } &&
15172 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; }; then
15178 ac_hi=-1 ac_mid=-1
15179 while :; do
15180 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15181/* confdefs.h. */
15182_ACEOF
15183cat confdefs.h >>conftest.$ac_ext
15184cat >>conftest.$ac_ext <<_ACEOF
15185/* end confdefs.h. */
15186$ac_includes_default
15187int
15188main ()
15189{
15190static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15191test_array [0] = 0
247f5006 15192
e6cc62c6
VS
15193 ;
15194 return 0;
15195}
15196_ACEOF
15197rm -f conftest.$ac_objext
15198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15199 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15200 ac_status=$?
243f8ae5
VS
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
e6cc62c6
VS
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
243f8ae5
VS
15206 { ac_try='test -z "$ac_c_werror_flag"
15207 || test ! -s conftest.err'
15208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15209 (eval $ac_try) 2>&5
15210 ac_status=$?
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); }; } &&
15213 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15216 ac_status=$?
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 ac_lo=$ac_mid; break
15220else
15221 echo "$as_me: failed program was:" >&5
15222sed 's/^/| /' conftest.$ac_ext >&5
15223
15224ac_hi=`expr '(' $ac_mid ')' - 1`
243f8ae5
VS
15225 if test $ac_mid -le $ac_hi; then
15226 ac_lo= ac_hi=
15227 break
15228 fi
15229 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15230fi
243f8ae5 15231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15232 done
a0b9e27f 15233else
e6cc62c6
VS
15234 echo "$as_me: failed program was:" >&5
15235sed 's/^/| /' conftest.$ac_ext >&5
15236
15237ac_lo= ac_hi=
15238fi
243f8ae5 15239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15240fi
243f8ae5 15241rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15242# Binary search between lo and hi bounds.
15243while test "x$ac_lo" != "x$ac_hi"; do
15244 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15245 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15246/* confdefs.h. */
15247_ACEOF
15248cat confdefs.h >>conftest.$ac_ext
15249cat >>conftest.$ac_ext <<_ACEOF
15250/* end confdefs.h. */
15251$ac_includes_default
15252int
15253main ()
15254{
15255static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15256test_array [0] = 0
15257
15258 ;
15259 return 0;
15260}
15261_ACEOF
15262rm -f conftest.$ac_objext
15263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15264 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15265 ac_status=$?
243f8ae5
VS
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
e6cc62c6
VS
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } &&
243f8ae5
VS
15271 { ac_try='test -z "$ac_c_werror_flag"
15272 || test ! -s conftest.err'
15273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15274 (eval $ac_try) 2>&5
15275 ac_status=$?
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); }; } &&
15278 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15280 (eval $ac_try) 2>&5
15281 ac_status=$?
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); }; }; then
15284 ac_hi=$ac_mid
15285else
15286 echo "$as_me: failed program was:" >&5
15287sed 's/^/| /' conftest.$ac_ext >&5
15288
15289ac_lo=`expr '(' $ac_mid ')' + 1`
15290fi
243f8ae5 15291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15292done
15293case $ac_lo in
15294?*) ac_cv_sizeof_void_p=$ac_lo;;
15295'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15296See \`config.log' for more details." >&5
15297echo "$as_me: error: cannot compute sizeof (void *), 77
15298See \`config.log' for more details." >&2;}
15299 { (exit 1); exit 1; }; } ;;
15300esac
247f5006 15301else
e6cc62c6
VS
15302 if test "$cross_compiling" = yes; then
15303 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15304See \`config.log' for more details." >&5
15305echo "$as_me: error: cannot run test program while cross compiling
15306See \`config.log' for more details." >&2;}
15307 { (exit 1); exit 1; }; }
15308else
15309 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15310/* confdefs.h. */
15311_ACEOF
15312cat confdefs.h >>conftest.$ac_ext
15313cat >>conftest.$ac_ext <<_ACEOF
15314/* end confdefs.h. */
15315$ac_includes_default
15316long longval () { return (long) (sizeof (void *)); }
15317unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 15318#include <stdio.h>
e6cc62c6
VS
15319#include <stdlib.h>
15320int
15321main ()
247f5006 15322{
e6cc62c6
VS
15323
15324 FILE *f = fopen ("conftest.val", "w");
15325 if (! f)
15326 exit (1);
15327 if (((long) (sizeof (void *))) < 0)
15328 {
15329 long i = longval ();
15330 if (i != ((long) (sizeof (void *))))
15331 exit (1);
15332 fprintf (f, "%ld\n", i);
15333 }
15334 else
15335 {
15336 unsigned long i = ulongval ();
15337 if (i != ((long) (sizeof (void *))))
15338 exit (1);
15339 fprintf (f, "%lu\n", i);
15340 }
15341 exit (ferror (f) || fclose (f) != 0);
15342
15343 ;
15344 return 0;
5c6fa7d2 15345}
e6cc62c6
VS
15346_ACEOF
15347rm -f conftest$ac_exeext
15348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15349 (eval $ac_link) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15354 (eval $ac_try) 2>&5
15355 ac_status=$?
15356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357 (exit $ac_status); }; }; then
15358 ac_cv_sizeof_void_p=`cat conftest.val`
15359else
15360 echo "$as_me: program exited with status $ac_status" >&5
15361echo "$as_me: failed program was:" >&5
15362sed 's/^/| /' conftest.$ac_ext >&5
15363
15364( exit $ac_status )
15365{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15366See \`config.log' for more details." >&5
15367echo "$as_me: error: cannot compute sizeof (void *), 77
15368See \`config.log' for more details." >&2;}
15369 { (exit 1); exit 1; }; }
15370fi
243f8ae5 15371rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15372fi
15373fi
15374rm -f conftest.val
a0b9e27f 15375else
a0b9e27f
MB
15376 ac_cv_sizeof_void_p=0
15377fi
a0b9e27f 15378fi
e6cc62c6
VS
15379echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15380echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15381cat >>confdefs.h <<_ACEOF
15382#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15383_ACEOF
15384
15385
15386echo "$as_me:$LINENO: checking for int" >&5
15387echo $ECHO_N "checking for int... $ECHO_C" >&6
15388if test "${ac_cv_type_int+set}" = set; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15390else
15391 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15392/* confdefs.h. */
15393_ACEOF
15394cat confdefs.h >>conftest.$ac_ext
15395cat >>conftest.$ac_ext <<_ACEOF
15396/* end confdefs.h. */
15397$ac_includes_default
15398int
15399main ()
15400{
15401if ((int *) 0)
15402 return 0;
15403if (sizeof (int))
15404 return 0;
15405 ;
15406 return 0;
15407}
15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15411 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15412 ac_status=$?
243f8ae5
VS
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
e6cc62c6
VS
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
243f8ae5
VS
15418 { ac_try='test -z "$ac_c_werror_flag"
15419 || test ! -s conftest.err'
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 ac_cv_type_int=yes
15432else
15433 echo "$as_me: failed program was:" >&5
15434sed 's/^/| /' conftest.$ac_ext >&5
15435
15436ac_cv_type_int=no
15437fi
243f8ae5 15438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15439fi
15440echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15441echo "${ECHO_T}$ac_cv_type_int" >&6
15442
15443echo "$as_me:$LINENO: checking size of int" >&5
15444echo $ECHO_N "checking size of int... $ECHO_C" >&6
15445if test "${ac_cv_sizeof_int+set}" = set; then
15446 echo $ECHO_N "(cached) $ECHO_C" >&6
15447else
15448 if test "$ac_cv_type_int" = yes; then
15449 # The cast to unsigned long works around a bug in the HP C Compiler
15450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15452 # This bug is HP SR number 8606223364.
15453 if test "$cross_compiling" = yes; then
15454 # Depending upon the size, compute the lo and hi bounds.
15455cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15456/* confdefs.h. */
15457_ACEOF
15458cat confdefs.h >>conftest.$ac_ext
15459cat >>conftest.$ac_ext <<_ACEOF
15460/* end confdefs.h. */
15461$ac_includes_default
15462int
15463main ()
15464{
15465static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15466test_array [0] = 0
8284b0c5 15467
e6cc62c6
VS
15468 ;
15469 return 0;
15470}
15471_ACEOF
15472rm -f conftest.$ac_objext
15473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15474 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15475 ac_status=$?
243f8ae5
VS
15476 grep -v '^ *+' conftest.er1 >conftest.err
15477 rm -f conftest.er1
15478 cat conftest.err >&5
e6cc62c6
VS
15479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480 (exit $ac_status); } &&
243f8ae5
VS
15481 { ac_try='test -z "$ac_c_werror_flag"
15482 || test ! -s conftest.err'
15483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15484 (eval $ac_try) 2>&5
15485 ac_status=$?
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); }; } &&
15488 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15490 (eval $ac_try) 2>&5
15491 ac_status=$?
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); }; }; then
15494 ac_lo=0 ac_mid=0
15495 while :; do
15496 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15497/* confdefs.h. */
15498_ACEOF
15499cat confdefs.h >>conftest.$ac_ext
15500cat >>conftest.$ac_ext <<_ACEOF
15501/* end confdefs.h. */
15502$ac_includes_default
15503int
15504main ()
15505{
15506static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15507test_array [0] = 0
15508
15509 ;
15510 return 0;
15511}
15512_ACEOF
15513rm -f conftest.$ac_objext
15514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15515 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15516 ac_status=$?
243f8ae5
VS
15517 grep -v '^ *+' conftest.er1 >conftest.err
15518 rm -f conftest.er1
15519 cat conftest.err >&5
e6cc62c6
VS
15520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15521 (exit $ac_status); } &&
243f8ae5
VS
15522 { ac_try='test -z "$ac_c_werror_flag"
15523 || test ! -s conftest.err'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15526 ac_status=$?
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; } &&
15529 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; }; then
15535 ac_hi=$ac_mid; break
15536else
15537 echo "$as_me: failed program was:" >&5
15538sed 's/^/| /' conftest.$ac_ext >&5
15539
15540ac_lo=`expr $ac_mid + 1`
243f8ae5
VS
15541 if test $ac_lo -le $ac_mid; then
15542 ac_lo= ac_hi=
15543 break
15544 fi
15545 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15546fi
243f8ae5 15547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15548 done
15549else
15550 echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
15552
15553cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15554/* confdefs.h. */
15555_ACEOF
15556cat confdefs.h >>conftest.$ac_ext
15557cat >>conftest.$ac_ext <<_ACEOF
15558/* end confdefs.h. */
15559$ac_includes_default
15560int
15561main ()
15562{
15563static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15564test_array [0] = 0
247f5006 15565
e6cc62c6
VS
15566 ;
15567 return 0;
15568}
15569_ACEOF
15570rm -f conftest.$ac_objext
15571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15572 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15573 ac_status=$?
243f8ae5
VS
15574 grep -v '^ *+' conftest.er1 >conftest.err
15575 rm -f conftest.er1
15576 cat conftest.err >&5
e6cc62c6
VS
15577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578 (exit $ac_status); } &&
243f8ae5
VS
15579 { ac_try='test -z "$ac_c_werror_flag"
15580 || test ! -s conftest.err'
15581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15582 (eval $ac_try) 2>&5
15583 ac_status=$?
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); }; } &&
15586 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 ac_hi=-1 ac_mid=-1
15593 while :; do
15594 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15595/* confdefs.h. */
15596_ACEOF
15597cat confdefs.h >>conftest.$ac_ext
15598cat >>conftest.$ac_ext <<_ACEOF
15599/* end confdefs.h. */
15600$ac_includes_default
15601int
15602main ()
15603{
15604static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15605test_array [0] = 0
247f5006 15606
e6cc62c6
VS
15607 ;
15608 return 0;
15609}
15610_ACEOF
15611rm -f conftest.$ac_objext
15612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15613 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15614 ac_status=$?
243f8ae5
VS
15615 grep -v '^ *+' conftest.er1 >conftest.err
15616 rm -f conftest.er1
15617 cat conftest.err >&5
e6cc62c6
VS
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } &&
243f8ae5
VS
15620 { ac_try='test -z "$ac_c_werror_flag"
15621 || test ! -s conftest.err'
15622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623 (eval $ac_try) 2>&5
15624 ac_status=$?
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); }; } &&
15627 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15630 ac_status=$?
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; }; then
15633 ac_lo=$ac_mid; break
15634else
15635 echo "$as_me: failed program was:" >&5
15636sed 's/^/| /' conftest.$ac_ext >&5
15637
15638ac_hi=`expr '(' $ac_mid ')' - 1`
243f8ae5
VS
15639 if test $ac_mid -le $ac_hi; then
15640 ac_lo= ac_hi=
15641 break
15642 fi
15643 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15644fi
243f8ae5 15645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15646 done
247f5006 15647else
e6cc62c6
VS
15648 echo "$as_me: failed program was:" >&5
15649sed 's/^/| /' conftest.$ac_ext >&5
15650
15651ac_lo= ac_hi=
15652fi
243f8ae5 15653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15654fi
243f8ae5 15655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15656# Binary search between lo and hi bounds.
15657while test "x$ac_lo" != "x$ac_hi"; do
15658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15659 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15660/* confdefs.h. */
15661_ACEOF
15662cat confdefs.h >>conftest.$ac_ext
15663cat >>conftest.$ac_ext <<_ACEOF
15664/* end confdefs.h. */
15665$ac_includes_default
15666int
15667main ()
15668{
15669static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15670test_array [0] = 0
15671
15672 ;
15673 return 0;
15674}
15675_ACEOF
15676rm -f conftest.$ac_objext
15677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15678 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15679 ac_status=$?
243f8ae5
VS
15680 grep -v '^ *+' conftest.er1 >conftest.err
15681 rm -f conftest.er1
15682 cat conftest.err >&5
e6cc62c6
VS
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); } &&
243f8ae5
VS
15685 { ac_try='test -z "$ac_c_werror_flag"
15686 || test ! -s conftest.err'
15687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15688 (eval $ac_try) 2>&5
15689 ac_status=$?
15690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15691 (exit $ac_status); }; } &&
15692 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15694 (eval $ac_try) 2>&5
15695 ac_status=$?
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); }; }; then
15698 ac_hi=$ac_mid
15699else
15700 echo "$as_me: failed program was:" >&5
15701sed 's/^/| /' conftest.$ac_ext >&5
15702
15703ac_lo=`expr '(' $ac_mid ')' + 1`
15704fi
243f8ae5 15705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15706done
15707case $ac_lo in
15708?*) ac_cv_sizeof_int=$ac_lo;;
15709'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15710See \`config.log' for more details." >&5
15711echo "$as_me: error: cannot compute sizeof (int), 77
15712See \`config.log' for more details." >&2;}
15713 { (exit 1); exit 1; }; } ;;
15714esac
a0b9e27f 15715else
e6cc62c6
VS
15716 if test "$cross_compiling" = yes; then
15717 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15718See \`config.log' for more details." >&5
15719echo "$as_me: error: cannot run test program while cross compiling
15720See \`config.log' for more details." >&2;}
15721 { (exit 1); exit 1; }; }
15722else
15723 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15724/* confdefs.h. */
15725_ACEOF
15726cat confdefs.h >>conftest.$ac_ext
15727cat >>conftest.$ac_ext <<_ACEOF
15728/* end confdefs.h. */
15729$ac_includes_default
15730long longval () { return (long) (sizeof (int)); }
15731unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15732#include <stdio.h>
e6cc62c6
VS
15733#include <stdlib.h>
15734int
15735main ()
247f5006 15736{
e6cc62c6
VS
15737
15738 FILE *f = fopen ("conftest.val", "w");
15739 if (! f)
15740 exit (1);
15741 if (((long) (sizeof (int))) < 0)
15742 {
15743 long i = longval ();
15744 if (i != ((long) (sizeof (int))))
15745 exit (1);
15746 fprintf (f, "%ld\n", i);
15747 }
15748 else
15749 {
15750 unsigned long i = ulongval ();
15751 if (i != ((long) (sizeof (int))))
15752 exit (1);
15753 fprintf (f, "%lu\n", i);
15754 }
15755 exit (ferror (f) || fclose (f) != 0);
15756
15757 ;
15758 return 0;
247f5006 15759}
e6cc62c6
VS
15760_ACEOF
15761rm -f conftest$ac_exeext
15762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15763 (eval $ac_link) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15768 (eval $ac_try) 2>&5
15769 ac_status=$?
15770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); }; }; then
15772 ac_cv_sizeof_int=`cat conftest.val`
15773else
15774 echo "$as_me: program exited with status $ac_status" >&5
15775echo "$as_me: failed program was:" >&5
15776sed 's/^/| /' conftest.$ac_ext >&5
15777
15778( exit $ac_status )
15779{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15780See \`config.log' for more details." >&5
15781echo "$as_me: error: cannot compute sizeof (int), 77
15782See \`config.log' for more details." >&2;}
15783 { (exit 1); exit 1; }; }
15784fi
243f8ae5 15785rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15786fi
15787fi
15788rm -f conftest.val
6f72b082 15789else
a0b9e27f 15790 ac_cv_sizeof_int=0
21d1c967 15791fi
698dcdb6 15792fi
e6cc62c6
VS
15793echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15794echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15795cat >>confdefs.h <<_ACEOF
15796#define SIZEOF_INT $ac_cv_sizeof_int
15797_ACEOF
15798
15799
15800echo "$as_me:$LINENO: checking for long" >&5
15801echo $ECHO_N "checking for long... $ECHO_C" >&6
15802if test "${ac_cv_type_long+set}" = set; then
15803 echo $ECHO_N "(cached) $ECHO_C" >&6
15804else
15805 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15806/* confdefs.h. */
15807_ACEOF
15808cat confdefs.h >>conftest.$ac_ext
15809cat >>conftest.$ac_ext <<_ACEOF
15810/* end confdefs.h. */
15811$ac_includes_default
15812int
15813main ()
15814{
15815if ((long *) 0)
15816 return 0;
15817if (sizeof (long))
15818 return 0;
15819 ;
15820 return 0;
15821}
15822_ACEOF
15823rm -f conftest.$ac_objext
15824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15825 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15826 ac_status=$?
243f8ae5
VS
15827 grep -v '^ *+' conftest.er1 >conftest.err
15828 rm -f conftest.er1
15829 cat conftest.err >&5
e6cc62c6
VS
15830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831 (exit $ac_status); } &&
243f8ae5
VS
15832 { ac_try='test -z "$ac_c_werror_flag"
15833 || test ! -s conftest.err'
15834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15835 (eval $ac_try) 2>&5
15836 ac_status=$?
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); }; } &&
15839 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; }; then
15845 ac_cv_type_long=yes
15846else
15847 echo "$as_me: failed program was:" >&5
15848sed 's/^/| /' conftest.$ac_ext >&5
15849
15850ac_cv_type_long=no
15851fi
243f8ae5 15852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15853fi
15854echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15855echo "${ECHO_T}$ac_cv_type_long" >&6
15856
15857echo "$as_me:$LINENO: checking size of long" >&5
15858echo $ECHO_N "checking size of long... $ECHO_C" >&6
15859if test "${ac_cv_sizeof_long+set}" = set; then
15860 echo $ECHO_N "(cached) $ECHO_C" >&6
15861else
15862 if test "$ac_cv_type_long" = yes; then
15863 # The cast to unsigned long works around a bug in the HP C Compiler
15864 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15865 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15866 # This bug is HP SR number 8606223364.
15867 if test "$cross_compiling" = yes; then
15868 # Depending upon the size, compute the lo and hi bounds.
15869cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15870/* confdefs.h. */
15871_ACEOF
15872cat confdefs.h >>conftest.$ac_ext
15873cat >>conftest.$ac_ext <<_ACEOF
15874/* end confdefs.h. */
15875$ac_includes_default
15876int
15877main ()
15878{
15879static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15880test_array [0] = 0
15881
15882 ;
15883 return 0;
15884}
15885_ACEOF
15886rm -f conftest.$ac_objext
15887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15888 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15889 ac_status=$?
243f8ae5
VS
15890 grep -v '^ *+' conftest.er1 >conftest.err
15891 rm -f conftest.er1
15892 cat conftest.err >&5
e6cc62c6
VS
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); } &&
243f8ae5
VS
15895 { ac_try='test -z "$ac_c_werror_flag"
15896 || test ! -s conftest.err'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15899 ac_status=$?
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; } &&
15902 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15904 (eval $ac_try) 2>&5
15905 ac_status=$?
15906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907 (exit $ac_status); }; }; then
15908 ac_lo=0 ac_mid=0
15909 while :; do
15910 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15911/* confdefs.h. */
15912_ACEOF
15913cat confdefs.h >>conftest.$ac_ext
15914cat >>conftest.$ac_ext <<_ACEOF
15915/* end confdefs.h. */
15916$ac_includes_default
15917int
15918main ()
15919{
15920static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15921test_array [0] = 0
4f14bcd8 15922
e6cc62c6
VS
15923 ;
15924 return 0;
15925}
15926_ACEOF
15927rm -f conftest.$ac_objext
15928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15929 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15930 ac_status=$?
243f8ae5
VS
15931 grep -v '^ *+' conftest.er1 >conftest.err
15932 rm -f conftest.er1
15933 cat conftest.err >&5
e6cc62c6
VS
15934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15935 (exit $ac_status); } &&
243f8ae5
VS
15936 { ac_try='test -z "$ac_c_werror_flag"
15937 || test ! -s conftest.err'
15938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939 (eval $ac_try) 2>&5
15940 ac_status=$?
15941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942 (exit $ac_status); }; } &&
15943 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15945 (eval $ac_try) 2>&5
15946 ac_status=$?
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); }; }; then
15949 ac_hi=$ac_mid; break
15950else
15951 echo "$as_me: failed program was:" >&5
15952sed 's/^/| /' conftest.$ac_ext >&5
15953
15954ac_lo=`expr $ac_mid + 1`
243f8ae5
VS
15955 if test $ac_lo -le $ac_mid; then
15956 ac_lo= ac_hi=
15957 break
15958 fi
15959 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15960fi
243f8ae5 15961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15962 done
15963else
15964 echo "$as_me: failed program was:" >&5
15965sed 's/^/| /' conftest.$ac_ext >&5
15966
15967cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15968/* confdefs.h. */
15969_ACEOF
15970cat confdefs.h >>conftest.$ac_ext
15971cat >>conftest.$ac_ext <<_ACEOF
15972/* end confdefs.h. */
15973$ac_includes_default
15974int
15975main ()
15976{
15977static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15978test_array [0] = 0
4f14bcd8 15979
e6cc62c6
VS
15980 ;
15981 return 0;
15982}
15983_ACEOF
15984rm -f conftest.$ac_objext
15985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 15986 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15987 ac_status=$?
243f8ae5
VS
15988 grep -v '^ *+' conftest.er1 >conftest.err
15989 rm -f conftest.er1
15990 cat conftest.err >&5
e6cc62c6
VS
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } &&
243f8ae5
VS
15993 { ac_try='test -z "$ac_c_werror_flag"
15994 || test ! -s conftest.err'
15995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996 (eval $ac_try) 2>&5
15997 ac_status=$?
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); }; } &&
16000 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; }; then
16006 ac_hi=-1 ac_mid=-1
16007 while :; do
16008 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16009/* confdefs.h. */
16010_ACEOF
16011cat confdefs.h >>conftest.$ac_ext
16012cat >>conftest.$ac_ext <<_ACEOF
16013/* end confdefs.h. */
16014$ac_includes_default
16015int
16016main ()
16017{
16018static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16019test_array [0] = 0
5c6fa7d2 16020
e6cc62c6
VS
16021 ;
16022 return 0;
16023}
16024_ACEOF
16025rm -f conftest.$ac_objext
16026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16027 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16028 ac_status=$?
243f8ae5
VS
16029 grep -v '^ *+' conftest.er1 >conftest.err
16030 rm -f conftest.er1
16031 cat conftest.err >&5
e6cc62c6
VS
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
243f8ae5
VS
16034 { ac_try='test -z "$ac_c_werror_flag"
16035 || test ! -s conftest.err'
16036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16037 (eval $ac_try) 2>&5
16038 ac_status=$?
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); }; } &&
16041 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043 (eval $ac_try) 2>&5
16044 ac_status=$?
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_lo=$ac_mid; break
16048else
16049 echo "$as_me: failed program was:" >&5
16050sed 's/^/| /' conftest.$ac_ext >&5
16051
16052ac_hi=`expr '(' $ac_mid ')' - 1`
243f8ae5
VS
16053 if test $ac_mid -le $ac_hi; then
16054 ac_lo= ac_hi=
16055 break
16056 fi
16057 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16058fi
243f8ae5 16059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16060 done
247f5006 16061else
e6cc62c6
VS
16062 echo "$as_me: failed program was:" >&5
16063sed 's/^/| /' conftest.$ac_ext >&5
16064
16065ac_lo= ac_hi=
16066fi
243f8ae5 16067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16068fi
243f8ae5 16069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16070# Binary search between lo and hi bounds.
16071while test "x$ac_lo" != "x$ac_hi"; do
16072 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16073 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16074/* confdefs.h. */
16075_ACEOF
16076cat confdefs.h >>conftest.$ac_ext
16077cat >>conftest.$ac_ext <<_ACEOF
16078/* end confdefs.h. */
16079$ac_includes_default
16080int
16081main ()
16082{
16083static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16084test_array [0] = 0
16085
16086 ;
16087 return 0;
16088}
16089_ACEOF
16090rm -f conftest.$ac_objext
16091if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16092 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16093 ac_status=$?
243f8ae5
VS
16094 grep -v '^ *+' conftest.er1 >conftest.err
16095 rm -f conftest.er1
16096 cat conftest.err >&5
e6cc62c6
VS
16097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098 (exit $ac_status); } &&
243f8ae5
VS
16099 { ac_try='test -z "$ac_c_werror_flag"
16100 || test ! -s conftest.err'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; }; then
16112 ac_hi=$ac_mid
16113else
16114 echo "$as_me: failed program was:" >&5
16115sed 's/^/| /' conftest.$ac_ext >&5
16116
16117ac_lo=`expr '(' $ac_mid ')' + 1`
16118fi
243f8ae5 16119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16120done
16121case $ac_lo in
16122?*) ac_cv_sizeof_long=$ac_lo;;
16123'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16124See \`config.log' for more details." >&5
16125echo "$as_me: error: cannot compute sizeof (long), 77
16126See \`config.log' for more details." >&2;}
16127 { (exit 1); exit 1; }; } ;;
16128esac
247f5006 16129else
e6cc62c6
VS
16130 if test "$cross_compiling" = yes; then
16131 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16132See \`config.log' for more details." >&5
16133echo "$as_me: error: cannot run test program while cross compiling
16134See \`config.log' for more details." >&2;}
16135 { (exit 1); exit 1; }; }
16136else
16137 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16138/* confdefs.h. */
16139_ACEOF
16140cat confdefs.h >>conftest.$ac_ext
16141cat >>conftest.$ac_ext <<_ACEOF
16142/* end confdefs.h. */
16143$ac_includes_default
16144long longval () { return (long) (sizeof (long)); }
16145unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 16146#include <stdio.h>
e6cc62c6
VS
16147#include <stdlib.h>
16148int
16149main ()
247f5006 16150{
e6cc62c6
VS
16151
16152 FILE *f = fopen ("conftest.val", "w");
16153 if (! f)
16154 exit (1);
16155 if (((long) (sizeof (long))) < 0)
16156 {
16157 long i = longval ();
16158 if (i != ((long) (sizeof (long))))
16159 exit (1);
16160 fprintf (f, "%ld\n", i);
16161 }
16162 else
16163 {
16164 unsigned long i = ulongval ();
16165 if (i != ((long) (sizeof (long))))
16166 exit (1);
16167 fprintf (f, "%lu\n", i);
16168 }
16169 exit (ferror (f) || fclose (f) != 0);
16170
16171 ;
16172 return 0;
247f5006 16173}
e6cc62c6
VS
16174_ACEOF
16175rm -f conftest$ac_exeext
16176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16177 (eval $ac_link) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
16186 ac_cv_sizeof_long=`cat conftest.val`
16187else
16188 echo "$as_me: program exited with status $ac_status" >&5
16189echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192( exit $ac_status )
16193{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16194See \`config.log' for more details." >&5
16195echo "$as_me: error: cannot compute sizeof (long), 77
16196See \`config.log' for more details." >&2;}
16197 { (exit 1); exit 1; }; }
16198fi
243f8ae5 16199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16200fi
16201fi
16202rm -f conftest.val
247f5006 16203else
a0b9e27f 16204 ac_cv_sizeof_long=0
247f5006 16205fi
247f5006 16206fi
e6cc62c6
VS
16207echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16208echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16209cat >>confdefs.h <<_ACEOF
a0b9e27f 16210#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 16211_ACEOF
247f5006 16212
a0b9e27f 16213
ecfd48ca
VZ
16214echo "$as_me:$LINENO: checking for size_t" >&5
16215echo $ECHO_N "checking for size_t... $ECHO_C" >&6
16216if test "${ac_cv_type_size_t+set}" = set; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16218else
16219 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16220/* confdefs.h. */
16221_ACEOF
16222cat confdefs.h >>conftest.$ac_ext
16223cat >>conftest.$ac_ext <<_ACEOF
16224/* end confdefs.h. */
16225$ac_includes_default
16226int
16227main ()
16228{
16229if ((size_t *) 0)
16230 return 0;
16231if (sizeof (size_t))
16232 return 0;
16233 ;
16234 return 0;
16235}
16236_ACEOF
16237rm -f conftest.$ac_objext
16238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16239 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16240 ac_status=$?
243f8ae5
VS
16241 grep -v '^ *+' conftest.er1 >conftest.err
16242 rm -f conftest.er1
16243 cat conftest.err >&5
ecfd48ca
VZ
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } &&
243f8ae5
VS
16246 { ac_try='test -z "$ac_c_werror_flag"
16247 || test ! -s conftest.err'
16248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249 (eval $ac_try) 2>&5
16250 ac_status=$?
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); }; } &&
16253 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255 (eval $ac_try) 2>&5
16256 ac_status=$?
16257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); }; }; then
16259 ac_cv_type_size_t=yes
16260else
16261 echo "$as_me: failed program was:" >&5
16262sed 's/^/| /' conftest.$ac_ext >&5
16263
16264ac_cv_type_size_t=no
16265fi
243f8ae5 16266rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16267fi
16268echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16269echo "${ECHO_T}$ac_cv_type_size_t" >&6
16270
16271echo "$as_me:$LINENO: checking size of size_t" >&5
16272echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
16273if test "${ac_cv_sizeof_size_t+set}" = set; then
16274 echo $ECHO_N "(cached) $ECHO_C" >&6
16275else
16276 if test "$ac_cv_type_size_t" = yes; then
16277 # The cast to unsigned long works around a bug in the HP C Compiler
16278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16280 # This bug is HP SR number 8606223364.
16281 if test "$cross_compiling" = yes; then
16282 # Depending upon the size, compute the lo and hi bounds.
16283cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16284/* confdefs.h. */
16285_ACEOF
16286cat confdefs.h >>conftest.$ac_ext
16287cat >>conftest.$ac_ext <<_ACEOF
16288/* end confdefs.h. */
16289$ac_includes_default
16290int
16291main ()
16292{
16293static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
16294test_array [0] = 0
16295
16296 ;
16297 return 0;
16298}
16299_ACEOF
16300rm -f conftest.$ac_objext
16301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16302 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16303 ac_status=$?
243f8ae5
VS
16304 grep -v '^ *+' conftest.er1 >conftest.err
16305 rm -f conftest.er1
16306 cat conftest.err >&5
ecfd48ca
VZ
16307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16308 (exit $ac_status); } &&
243f8ae5
VS
16309 { ac_try='test -z "$ac_c_werror_flag"
16310 || test ! -s conftest.err'
16311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16312 (eval $ac_try) 2>&5
16313 ac_status=$?
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); }; } &&
16316 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16318 (eval $ac_try) 2>&5
16319 ac_status=$?
16320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321 (exit $ac_status); }; }; then
16322 ac_lo=0 ac_mid=0
16323 while :; do
16324 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16325/* confdefs.h. */
16326_ACEOF
16327cat confdefs.h >>conftest.$ac_ext
16328cat >>conftest.$ac_ext <<_ACEOF
16329/* end confdefs.h. */
16330$ac_includes_default
16331int
16332main ()
16333{
16334static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16335test_array [0] = 0
16336
16337 ;
16338 return 0;
16339}
16340_ACEOF
16341rm -f conftest.$ac_objext
16342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16343 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16344 ac_status=$?
243f8ae5
VS
16345 grep -v '^ *+' conftest.er1 >conftest.err
16346 rm -f conftest.er1
16347 cat conftest.err >&5
ecfd48ca
VZ
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
243f8ae5
VS
16350 { ac_try='test -z "$ac_c_werror_flag"
16351 || test ! -s conftest.err'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16354 ac_status=$?
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; } &&
16357 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16363 ac_hi=$ac_mid; break
16364else
16365 echo "$as_me: failed program was:" >&5
16366sed 's/^/| /' conftest.$ac_ext >&5
16367
16368ac_lo=`expr $ac_mid + 1`
243f8ae5
VS
16369 if test $ac_lo -le $ac_mid; then
16370 ac_lo= ac_hi=
16371 break
16372 fi
16373 ac_mid=`expr 2 '*' $ac_mid + 1`
ecfd48ca 16374fi
243f8ae5 16375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16376 done
16377else
16378 echo "$as_me: failed program was:" >&5
16379sed 's/^/| /' conftest.$ac_ext >&5
16380
16381cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16382/* confdefs.h. */
16383_ACEOF
16384cat confdefs.h >>conftest.$ac_ext
16385cat >>conftest.$ac_ext <<_ACEOF
16386/* end confdefs.h. */
16387$ac_includes_default
16388int
16389main ()
16390{
16391static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
16392test_array [0] = 0
16393
16394 ;
16395 return 0;
16396}
16397_ACEOF
16398rm -f conftest.$ac_objext
16399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16400 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16401 ac_status=$?
243f8ae5
VS
16402 grep -v '^ *+' conftest.er1 >conftest.err
16403 rm -f conftest.er1
16404 cat conftest.err >&5
ecfd48ca
VZ
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } &&
243f8ae5
VS
16407 { ac_try='test -z "$ac_c_werror_flag"
16408 || test ! -s conftest.err'
16409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16410 (eval $ac_try) 2>&5
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); }; } &&
16414 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 (eval $ac_try) 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; }; then
16420 ac_hi=-1 ac_mid=-1
16421 while :; do
16422 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16423/* confdefs.h. */
16424_ACEOF
16425cat confdefs.h >>conftest.$ac_ext
16426cat >>conftest.$ac_ext <<_ACEOF
16427/* end confdefs.h. */
16428$ac_includes_default
16429int
16430main ()
16431{
16432static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
16433test_array [0] = 0
16434
16435 ;
16436 return 0;
16437}
16438_ACEOF
16439rm -f conftest.$ac_objext
16440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16441 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16442 ac_status=$?
243f8ae5
VS
16443 grep -v '^ *+' conftest.er1 >conftest.err
16444 rm -f conftest.er1
16445 cat conftest.err >&5
ecfd48ca
VZ
16446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } &&
243f8ae5
VS
16448 { ac_try='test -z "$ac_c_werror_flag"
16449 || test ! -s conftest.err'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16452 ac_status=$?
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; } &&
16455 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16457 (eval $ac_try) 2>&5
16458 ac_status=$?
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); }; }; then
16461 ac_lo=$ac_mid; break
16462else
16463 echo "$as_me: failed program was:" >&5
16464sed 's/^/| /' conftest.$ac_ext >&5
16465
16466ac_hi=`expr '(' $ac_mid ')' - 1`
243f8ae5
VS
16467 if test $ac_mid -le $ac_hi; then
16468 ac_lo= ac_hi=
16469 break
16470 fi
16471 ac_mid=`expr 2 '*' $ac_mid`
ecfd48ca 16472fi
243f8ae5 16473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16474 done
16475else
16476 echo "$as_me: failed program was:" >&5
16477sed 's/^/| /' conftest.$ac_ext >&5
16478
16479ac_lo= ac_hi=
16480fi
243f8ae5 16481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca 16482fi
243f8ae5 16483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16484# Binary search between lo and hi bounds.
16485while test "x$ac_lo" != "x$ac_hi"; do
16486 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16487 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16488/* confdefs.h. */
16489_ACEOF
16490cat confdefs.h >>conftest.$ac_ext
16491cat >>conftest.$ac_ext <<_ACEOF
16492/* end confdefs.h. */
16493$ac_includes_default
16494int
16495main ()
16496{
16497static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
16498test_array [0] = 0
16499
16500 ;
16501 return 0;
16502}
16503_ACEOF
16504rm -f conftest.$ac_objext
16505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16506 (eval $ac_compile) 2>conftest.er1
ecfd48ca 16507 ac_status=$?
243f8ae5
VS
16508 grep -v '^ *+' conftest.er1 >conftest.err
16509 rm -f conftest.er1
16510 cat conftest.err >&5
ecfd48ca
VZ
16511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16512 (exit $ac_status); } &&
243f8ae5
VS
16513 { ac_try='test -z "$ac_c_werror_flag"
16514 || test ! -s conftest.err'
16515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16516 (eval $ac_try) 2>&5
16517 ac_status=$?
16518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519 (exit $ac_status); }; } &&
16520 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
16521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16522 (eval $ac_try) 2>&5
16523 ac_status=$?
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); }; }; then
16526 ac_hi=$ac_mid
16527else
16528 echo "$as_me: failed program was:" >&5
16529sed 's/^/| /' conftest.$ac_ext >&5
16530
16531ac_lo=`expr '(' $ac_mid ')' + 1`
16532fi
243f8ae5 16533rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16534done
16535case $ac_lo in
16536?*) ac_cv_sizeof_size_t=$ac_lo;;
16537'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16538See \`config.log' for more details." >&5
16539echo "$as_me: error: cannot compute sizeof (size_t), 77
16540See \`config.log' for more details." >&2;}
16541 { (exit 1); exit 1; }; } ;;
16542esac
16543else
16544 if test "$cross_compiling" = yes; then
16545 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16546See \`config.log' for more details." >&5
16547echo "$as_me: error: cannot run test program while cross compiling
16548See \`config.log' for more details." >&2;}
16549 { (exit 1); exit 1; }; }
16550else
16551 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
16552/* confdefs.h. */
16553_ACEOF
16554cat confdefs.h >>conftest.$ac_ext
16555cat >>conftest.$ac_ext <<_ACEOF
16556/* end confdefs.h. */
16557$ac_includes_default
16558long longval () { return (long) (sizeof (size_t)); }
16559unsigned long ulongval () { return (long) (sizeof (size_t)); }
16560#include <stdio.h>
16561#include <stdlib.h>
16562int
16563main ()
16564{
16565
16566 FILE *f = fopen ("conftest.val", "w");
16567 if (! f)
16568 exit (1);
16569 if (((long) (sizeof (size_t))) < 0)
16570 {
16571 long i = longval ();
16572 if (i != ((long) (sizeof (size_t))))
16573 exit (1);
16574 fprintf (f, "%ld\n", i);
16575 }
16576 else
16577 {
16578 unsigned long i = ulongval ();
16579 if (i != ((long) (sizeof (size_t))))
16580 exit (1);
16581 fprintf (f, "%lu\n", i);
16582 }
16583 exit (ferror (f) || fclose (f) != 0);
16584
16585 ;
16586 return 0;
16587}
16588_ACEOF
16589rm -f conftest$ac_exeext
16590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16591 (eval $ac_link) 2>&5
16592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16596 (eval $ac_try) 2>&5
16597 ac_status=$?
16598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16599 (exit $ac_status); }; }; then
16600 ac_cv_sizeof_size_t=`cat conftest.val`
16601else
16602 echo "$as_me: program exited with status $ac_status" >&5
16603echo "$as_me: failed program was:" >&5
16604sed 's/^/| /' conftest.$ac_ext >&5
16605
16606( exit $ac_status )
16607{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
16608See \`config.log' for more details." >&5
16609echo "$as_me: error: cannot compute sizeof (size_t), 77
16610See \`config.log' for more details." >&2;}
16611 { (exit 1); exit 1; }; }
16612fi
243f8ae5 16613rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
16614fi
16615fi
16616rm -f conftest.val
16617else
16618 ac_cv_sizeof_size_t=0
16619fi
16620fi
16621echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16622echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16623cat >>confdefs.h <<_ACEOF
16624#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16625_ACEOF
16626
16627
a0b9e27f
MB
16628
16629case "${host}" in
16630 arm-*-linux* )
e6cc62c6
VS
16631 echo "$as_me:$LINENO: checking for long long" >&5
16632echo $ECHO_N "checking for long long... $ECHO_C" >&6
16633if test "${ac_cv_type_long_long+set}" = set; then
16634 echo $ECHO_N "(cached) $ECHO_C" >&6
16635else
16636 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16637/* confdefs.h. */
16638_ACEOF
16639cat confdefs.h >>conftest.$ac_ext
16640cat >>conftest.$ac_ext <<_ACEOF
16641/* end confdefs.h. */
16642$ac_includes_default
16643int
16644main ()
16645{
16646if ((long long *) 0)
16647 return 0;
16648if (sizeof (long long))
16649 return 0;
16650 ;
16651 return 0;
16652}
16653_ACEOF
16654rm -f conftest.$ac_objext
16655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16656 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16657 ac_status=$?
243f8ae5
VS
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
e6cc62c6
VS
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
243f8ae5
VS
16663 { ac_try='test -z "$ac_c_werror_flag"
16664 || test ! -s conftest.err'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_type_long_long=yes
16677else
16678 echo "$as_me: failed program was:" >&5
16679sed 's/^/| /' conftest.$ac_ext >&5
16680
16681ac_cv_type_long_long=no
16682fi
243f8ae5 16683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16684fi
16685echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16686echo "${ECHO_T}$ac_cv_type_long_long" >&6
16687
16688echo "$as_me:$LINENO: checking size of long long" >&5
16689echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16690if test "${ac_cv_sizeof_long_long+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692else
16693 if test "$ac_cv_type_long_long" = yes; then
16694 # The cast to unsigned long works around a bug in the HP C Compiler
16695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16697 # This bug is HP SR number 8606223364.
a0b9e27f 16698 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16699 # Depending upon the size, compute the lo and hi bounds.
16700cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16701/* confdefs.h. */
16702_ACEOF
16703cat confdefs.h >>conftest.$ac_ext
16704cat >>conftest.$ac_ext <<_ACEOF
16705/* end confdefs.h. */
16706$ac_includes_default
16707int
16708main ()
16709{
16710static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16711test_array [0] = 0
16712
16713 ;
16714 return 0;
16715}
16716_ACEOF
16717rm -f conftest.$ac_objext
16718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16719 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16720 ac_status=$?
243f8ae5
VS
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
e6cc62c6
VS
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
243f8ae5
VS
16726 { ac_try='test -z "$ac_c_werror_flag"
16727 || test ! -s conftest.err'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 ac_lo=0 ac_mid=0
16740 while :; do
16741 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16742/* confdefs.h. */
16743_ACEOF
16744cat confdefs.h >>conftest.$ac_ext
16745cat >>conftest.$ac_ext <<_ACEOF
16746/* end confdefs.h. */
16747$ac_includes_default
16748int
16749main ()
16750{
16751static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16752test_array [0] = 0
16753
16754 ;
16755 return 0;
16756}
16757_ACEOF
16758rm -f conftest.$ac_objext
16759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16760 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16761 ac_status=$?
243f8ae5
VS
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
e6cc62c6
VS
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
243f8ae5
VS
16767 { ac_try='test -z "$ac_c_werror_flag"
16768 || test ! -s conftest.err'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_hi=$ac_mid; break
16781else
16782 echo "$as_me: failed program was:" >&5
16783sed 's/^/| /' conftest.$ac_ext >&5
16784
16785ac_lo=`expr $ac_mid + 1`
243f8ae5
VS
16786 if test $ac_lo -le $ac_mid; then
16787 ac_lo= ac_hi=
16788 break
16789 fi
16790 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16791fi
243f8ae5 16792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16793 done
16794else
16795 echo "$as_me: failed program was:" >&5
16796sed 's/^/| /' conftest.$ac_ext >&5
16797
16798cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16799/* confdefs.h. */
16800_ACEOF
16801cat confdefs.h >>conftest.$ac_ext
16802cat >>conftest.$ac_ext <<_ACEOF
16803/* end confdefs.h. */
16804$ac_includes_default
16805int
16806main ()
16807{
16808static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16809test_array [0] = 0
16810
16811 ;
16812 return 0;
16813}
16814_ACEOF
16815rm -f conftest.$ac_objext
16816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16817 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16818 ac_status=$?
243f8ae5
VS
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
e6cc62c6
VS
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } &&
243f8ae5
VS
16824 { ac_try='test -z "$ac_c_werror_flag"
16825 || test ! -s conftest.err'
16826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16827 (eval $ac_try) 2>&5
16828 ac_status=$?
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; }; then
16837 ac_hi=-1 ac_mid=-1
16838 while :; do
16839 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16840/* confdefs.h. */
16841_ACEOF
16842cat confdefs.h >>conftest.$ac_ext
16843cat >>conftest.$ac_ext <<_ACEOF
16844/* end confdefs.h. */
16845$ac_includes_default
16846int
16847main ()
16848{
16849static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16850test_array [0] = 0
16851
16852 ;
16853 return 0;
16854}
16855_ACEOF
16856rm -f conftest.$ac_objext
16857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16858 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16859 ac_status=$?
243f8ae5
VS
16860 grep -v '^ *+' conftest.er1 >conftest.err
16861 rm -f conftest.er1
16862 cat conftest.err >&5
e6cc62c6
VS
16863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864 (exit $ac_status); } &&
243f8ae5
VS
16865 { ac_try='test -z "$ac_c_werror_flag"
16866 || test ! -s conftest.err'
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; } &&
16872 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16874 (eval $ac_try) 2>&5
16875 ac_status=$?
16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877 (exit $ac_status); }; }; then
16878 ac_lo=$ac_mid; break
16879else
16880 echo "$as_me: failed program was:" >&5
16881sed 's/^/| /' conftest.$ac_ext >&5
16882
16883ac_hi=`expr '(' $ac_mid ')' - 1`
243f8ae5
VS
16884 if test $ac_mid -le $ac_hi; then
16885 ac_lo= ac_hi=
16886 break
16887 fi
16888 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16889fi
243f8ae5 16890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16891 done
16892else
16893 echo "$as_me: failed program was:" >&5
16894sed 's/^/| /' conftest.$ac_ext >&5
16895
16896ac_lo= ac_hi=
16897fi
243f8ae5 16898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16899fi
243f8ae5 16900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16901# Binary search between lo and hi bounds.
16902while test "x$ac_lo" != "x$ac_hi"; do
16903 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16904 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16905/* confdefs.h. */
16906_ACEOF
16907cat confdefs.h >>conftest.$ac_ext
16908cat >>conftest.$ac_ext <<_ACEOF
16909/* end confdefs.h. */
16910$ac_includes_default
16911int
16912main ()
16913{
16914static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16915test_array [0] = 0
16916
16917 ;
16918 return 0;
16919}
16920_ACEOF
16921rm -f conftest.$ac_objext
16922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 16923 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16924 ac_status=$?
243f8ae5
VS
16925 grep -v '^ *+' conftest.er1 >conftest.err
16926 rm -f conftest.er1
16927 cat conftest.err >&5
e6cc62c6
VS
16928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16929 (exit $ac_status); } &&
243f8ae5
VS
16930 { ac_try='test -z "$ac_c_werror_flag"
16931 || test ! -s conftest.err'
16932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16933 (eval $ac_try) 2>&5
16934 ac_status=$?
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); }; } &&
16937 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16940 ac_status=$?
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 ac_hi=$ac_mid
16944else
16945 echo "$as_me: failed program was:" >&5
16946sed 's/^/| /' conftest.$ac_ext >&5
16947
16948ac_lo=`expr '(' $ac_mid ')' + 1`
16949fi
243f8ae5 16950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16951done
16952case $ac_lo in
16953?*) ac_cv_sizeof_long_long=$ac_lo;;
16954'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16955See \`config.log' for more details." >&5
16956echo "$as_me: error: cannot compute sizeof (long long), 77
16957See \`config.log' for more details." >&2;}
16958 { (exit 1); exit 1; }; } ;;
16959esac
a0b9e27f 16960else
e6cc62c6
VS
16961 if test "$cross_compiling" = yes; then
16962 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16963See \`config.log' for more details." >&5
16964echo "$as_me: error: cannot run test program while cross compiling
16965See \`config.log' for more details." >&2;}
16966 { (exit 1); exit 1; }; }
16967else
16968 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16969/* confdefs.h. */
16970_ACEOF
16971cat confdefs.h >>conftest.$ac_ext
16972cat >>conftest.$ac_ext <<_ACEOF
16973/* end confdefs.h. */
16974$ac_includes_default
16975long longval () { return (long) (sizeof (long long)); }
16976unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 16977#include <stdio.h>
e6cc62c6
VS
16978#include <stdlib.h>
16979int
16980main ()
247f5006 16981{
e6cc62c6
VS
16982
16983 FILE *f = fopen ("conftest.val", "w");
16984 if (! f)
16985 exit (1);
16986 if (((long) (sizeof (long long))) < 0)
16987 {
16988 long i = longval ();
16989 if (i != ((long) (sizeof (long long))))
16990 exit (1);
16991 fprintf (f, "%ld\n", i);
16992 }
16993 else
16994 {
16995 unsigned long i = ulongval ();
16996 if (i != ((long) (sizeof (long long))))
16997 exit (1);
16998 fprintf (f, "%lu\n", i);
16999 }
17000 exit (ferror (f) || fclose (f) != 0);
17001
17002 ;
17003 return 0;
247f5006 17004}
e6cc62c6
VS
17005_ACEOF
17006rm -f conftest$ac_exeext
17007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17008 (eval $ac_link) 2>&5
17009 ac_status=$?
17010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17013 (eval $ac_try) 2>&5
17014 ac_status=$?
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 ac_cv_sizeof_long_long=`cat conftest.val`
17018else
17019 echo "$as_me: program exited with status $ac_status" >&5
17020echo "$as_me: failed program was:" >&5
17021sed 's/^/| /' conftest.$ac_ext >&5
17022
17023( exit $ac_status )
17024{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17025See \`config.log' for more details." >&5
17026echo "$as_me: error: cannot compute sizeof (long long), 77
17027See \`config.log' for more details." >&2;}
17028 { (exit 1); exit 1; }; }
17029fi
243f8ae5 17030rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17031fi
17032fi
17033rm -f conftest.val
7b4a847f 17034else
a0b9e27f 17035 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
17036fi
17037fi
e6cc62c6
VS
17038echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17039echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17040cat >>confdefs.h <<_ACEOF
17041#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
17042_ACEOF
17043
17044
17045 ;;
17046 *-hp-hpux* )
17047 echo "$as_me:$LINENO: checking for long long" >&5
17048echo $ECHO_N "checking for long long... $ECHO_C" >&6
17049if test "${ac_cv_type_long_long+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17051else
17052 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17053/* confdefs.h. */
17054_ACEOF
17055cat confdefs.h >>conftest.$ac_ext
17056cat >>conftest.$ac_ext <<_ACEOF
17057/* end confdefs.h. */
17058$ac_includes_default
17059int
17060main ()
17061{
17062if ((long long *) 0)
17063 return 0;
17064if (sizeof (long long))
17065 return 0;
17066 ;
17067 return 0;
17068}
17069_ACEOF
17070rm -f conftest.$ac_objext
17071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17072 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17073 ac_status=$?
243f8ae5
VS
17074 grep -v '^ *+' conftest.er1 >conftest.err
17075 rm -f conftest.er1
17076 cat conftest.err >&5
e6cc62c6
VS
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); } &&
243f8ae5
VS
17079 { ac_try='test -z "$ac_c_werror_flag"
17080 || test ! -s conftest.err'
17081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17082 (eval $ac_try) 2>&5
17083 ac_status=$?
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); }; } &&
17086 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17088 (eval $ac_try) 2>&5
17089 ac_status=$?
17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17091 (exit $ac_status); }; }; then
17092 ac_cv_type_long_long=yes
17093else
17094 echo "$as_me: failed program was:" >&5
17095sed 's/^/| /' conftest.$ac_ext >&5
17096
17097ac_cv_type_long_long=no
17098fi
243f8ae5 17099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17100fi
17101echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17102echo "${ECHO_T}$ac_cv_type_long_long" >&6
17103
17104echo "$as_me:$LINENO: checking size of long long" >&5
17105echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17106if test "${ac_cv_sizeof_long_long+set}" = set; then
17107 echo $ECHO_N "(cached) $ECHO_C" >&6
17108else
17109 if test "$ac_cv_type_long_long" = yes; then
17110 # The cast to unsigned long works around a bug in the HP C Compiler
17111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17113 # This bug is HP SR number 8606223364.
17114 if test "$cross_compiling" = yes; then
17115 # Depending upon the size, compute the lo and hi bounds.
17116cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17117/* confdefs.h. */
17118_ACEOF
17119cat confdefs.h >>conftest.$ac_ext
17120cat >>conftest.$ac_ext <<_ACEOF
17121/* end confdefs.h. */
17122$ac_includes_default
17123int
17124main ()
17125{
17126static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17127test_array [0] = 0
17128
17129 ;
17130 return 0;
17131}
17132_ACEOF
17133rm -f conftest.$ac_objext
17134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17135 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17136 ac_status=$?
243f8ae5
VS
17137 grep -v '^ *+' conftest.er1 >conftest.err
17138 rm -f conftest.er1
17139 cat conftest.err >&5
e6cc62c6
VS
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } &&
243f8ae5
VS
17142 { ac_try='test -z "$ac_c_werror_flag"
17143 || test ! -s conftest.err'
17144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145 (eval $ac_try) 2>&5
17146 ac_status=$?
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; } &&
17149 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151 (eval $ac_try) 2>&5
17152 ac_status=$?
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; }; then
17155 ac_lo=0 ac_mid=0
17156 while :; do
17157 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17158/* confdefs.h. */
17159_ACEOF
17160cat confdefs.h >>conftest.$ac_ext
17161cat >>conftest.$ac_ext <<_ACEOF
17162/* end confdefs.h. */
17163$ac_includes_default
17164int
17165main ()
17166{
17167static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17168test_array [0] = 0
8284b0c5 17169
e6cc62c6
VS
17170 ;
17171 return 0;
17172}
17173_ACEOF
17174rm -f conftest.$ac_objext
17175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17176 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17177 ac_status=$?
243f8ae5
VS
17178 grep -v '^ *+' conftest.er1 >conftest.err
17179 rm -f conftest.er1
17180 cat conftest.err >&5
e6cc62c6
VS
17181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17182 (exit $ac_status); } &&
243f8ae5
VS
17183 { ac_try='test -z "$ac_c_werror_flag"
17184 || test ! -s conftest.err'
17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17186 (eval $ac_try) 2>&5
17187 ac_status=$?
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; } &&
17190 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; }; then
17196 ac_hi=$ac_mid; break
17197else
17198 echo "$as_me: failed program was:" >&5
17199sed 's/^/| /' conftest.$ac_ext >&5
17200
17201ac_lo=`expr $ac_mid + 1`
243f8ae5
VS
17202 if test $ac_lo -le $ac_mid; then
17203 ac_lo= ac_hi=
17204 break
17205 fi
17206 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 17207fi
243f8ae5 17208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17209 done
17210else
17211 echo "$as_me: failed program was:" >&5
17212sed 's/^/| /' conftest.$ac_ext >&5
17213
17214cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17215/* confdefs.h. */
17216_ACEOF
17217cat confdefs.h >>conftest.$ac_ext
17218cat >>conftest.$ac_ext <<_ACEOF
17219/* end confdefs.h. */
17220$ac_includes_default
17221int
17222main ()
17223{
17224static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17225test_array [0] = 0
a0b9e27f 17226
e6cc62c6
VS
17227 ;
17228 return 0;
17229}
17230_ACEOF
17231rm -f conftest.$ac_objext
17232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17233 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17234 ac_status=$?
243f8ae5
VS
17235 grep -v '^ *+' conftest.er1 >conftest.err
17236 rm -f conftest.er1
17237 cat conftest.err >&5
e6cc62c6
VS
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); } &&
243f8ae5
VS
17240 { ac_try='test -z "$ac_c_werror_flag"
17241 || test ! -s conftest.err'
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17244 ac_status=$?
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; } &&
17247 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17249 (eval $ac_try) 2>&5
17250 ac_status=$?
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_hi=-1 ac_mid=-1
17254 while :; do
17255 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17256/* confdefs.h. */
17257_ACEOF
17258cat confdefs.h >>conftest.$ac_ext
17259cat >>conftest.$ac_ext <<_ACEOF
17260/* end confdefs.h. */
17261$ac_includes_default
17262int
17263main ()
17264{
17265static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17266test_array [0] = 0
a0b9e27f 17267
e6cc62c6
VS
17268 ;
17269 return 0;
17270}
17271_ACEOF
17272rm -f conftest.$ac_objext
17273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17274 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17275 ac_status=$?
243f8ae5
VS
17276 grep -v '^ *+' conftest.er1 >conftest.err
17277 rm -f conftest.er1
17278 cat conftest.err >&5
e6cc62c6
VS
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); } &&
243f8ae5
VS
17281 { ac_try='test -z "$ac_c_werror_flag"
17282 || test ! -s conftest.err'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; } &&
17288 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17294 ac_lo=$ac_mid; break
17295else
17296 echo "$as_me: failed program was:" >&5
17297sed 's/^/| /' conftest.$ac_ext >&5
17298
17299ac_hi=`expr '(' $ac_mid ')' - 1`
243f8ae5
VS
17300 if test $ac_mid -le $ac_hi; then
17301 ac_lo= ac_hi=
17302 break
17303 fi
17304 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 17305fi
243f8ae5 17306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17307 done
8284b0c5 17308else
e6cc62c6
VS
17309 echo "$as_me: failed program was:" >&5
17310sed 's/^/| /' conftest.$ac_ext >&5
17311
17312ac_lo= ac_hi=
17313fi
243f8ae5 17314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17315fi
243f8ae5 17316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17317# Binary search between lo and hi bounds.
17318while test "x$ac_lo" != "x$ac_hi"; do
17319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17320 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17321/* confdefs.h. */
17322_ACEOF
17323cat confdefs.h >>conftest.$ac_ext
17324cat >>conftest.$ac_ext <<_ACEOF
17325/* end confdefs.h. */
17326$ac_includes_default
17327int
17328main ()
17329{
17330static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17331test_array [0] = 0
17332
17333 ;
17334 return 0;
17335}
17336_ACEOF
17337rm -f conftest.$ac_objext
17338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17339 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17340 ac_status=$?
243f8ae5
VS
17341 grep -v '^ *+' conftest.er1 >conftest.err
17342 rm -f conftest.er1
17343 cat conftest.err >&5
e6cc62c6
VS
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } &&
243f8ae5
VS
17346 { ac_try='test -z "$ac_c_werror_flag"
17347 || test ! -s conftest.err'
17348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349 (eval $ac_try) 2>&5
17350 ac_status=$?
17351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352 (exit $ac_status); }; } &&
17353 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355 (eval $ac_try) 2>&5
17356 ac_status=$?
17357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358 (exit $ac_status); }; }; then
17359 ac_hi=$ac_mid
17360else
17361 echo "$as_me: failed program was:" >&5
17362sed 's/^/| /' conftest.$ac_ext >&5
17363
17364ac_lo=`expr '(' $ac_mid ')' + 1`
17365fi
243f8ae5 17366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17367done
17368case $ac_lo in
17369?*) ac_cv_sizeof_long_long=$ac_lo;;
17370'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17371See \`config.log' for more details." >&5
17372echo "$as_me: error: cannot compute sizeof (long long), 77
17373See \`config.log' for more details." >&2;}
17374 { (exit 1); exit 1; }; } ;;
17375esac
8284b0c5 17376else
e6cc62c6
VS
17377 if test "$cross_compiling" = yes; then
17378 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17379See \`config.log' for more details." >&5
17380echo "$as_me: error: cannot run test program while cross compiling
17381See \`config.log' for more details." >&2;}
17382 { (exit 1); exit 1; }; }
17383else
17384 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17385/* confdefs.h. */
17386_ACEOF
17387cat confdefs.h >>conftest.$ac_ext
17388cat >>conftest.$ac_ext <<_ACEOF
17389/* end confdefs.h. */
17390$ac_includes_default
17391long longval () { return (long) (sizeof (long long)); }
17392unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 17393#include <stdio.h>
e6cc62c6
VS
17394#include <stdlib.h>
17395int
17396main ()
8284b0c5 17397{
e6cc62c6
VS
17398
17399 FILE *f = fopen ("conftest.val", "w");
17400 if (! f)
17401 exit (1);
17402 if (((long) (sizeof (long long))) < 0)
17403 {
17404 long i = longval ();
17405 if (i != ((long) (sizeof (long long))))
17406 exit (1);
17407 fprintf (f, "%ld\n", i);
17408 }
17409 else
17410 {
17411 unsigned long i = ulongval ();
17412 if (i != ((long) (sizeof (long long))))
17413 exit (1);
17414 fprintf (f, "%lu\n", i);
17415 }
17416 exit (ferror (f) || fclose (f) != 0);
17417
17418 ;
17419 return 0;
8284b0c5 17420}
e6cc62c6
VS
17421_ACEOF
17422rm -f conftest$ac_exeext
17423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424 (eval $ac_link) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17430 ac_status=$?
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; }; then
17433 ac_cv_sizeof_long_long=`cat conftest.val`
17434else
17435 echo "$as_me: program exited with status $ac_status" >&5
17436echo "$as_me: failed program was:" >&5
17437sed 's/^/| /' conftest.$ac_ext >&5
17438
17439( exit $ac_status )
17440{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17441See \`config.log' for more details." >&5
17442echo "$as_me: error: cannot compute sizeof (long long), 77
17443See \`config.log' for more details." >&2;}
17444 { (exit 1); exit 1; }; }
17445fi
243f8ae5 17446rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17447fi
17448fi
17449rm -f conftest.val
5c6fa7d2
RR
17450else
17451 ac_cv_sizeof_long_long=0
52127426 17452fi
4f57cf11 17453fi
e6cc62c6
VS
17454echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17455echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17456cat >>confdefs.h <<_ACEOF
4f57cf11 17457#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17458_ACEOF
4f57cf11
GD
17459
17460
17461 if test "$ac_cv_sizeof_long_long" != "0"; then
17462 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17463 fi
17464 ;;
17465 * )
e6cc62c6
VS
17466 echo "$as_me:$LINENO: checking for long long" >&5
17467echo $ECHO_N "checking for long long... $ECHO_C" >&6
17468if test "${ac_cv_type_long_long+set}" = set; then
17469 echo $ECHO_N "(cached) $ECHO_C" >&6
17470else
17471 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17472/* confdefs.h. */
17473_ACEOF
17474cat confdefs.h >>conftest.$ac_ext
17475cat >>conftest.$ac_ext <<_ACEOF
17476/* end confdefs.h. */
17477$ac_includes_default
17478int
17479main ()
17480{
17481if ((long long *) 0)
17482 return 0;
17483if (sizeof (long long))
17484 return 0;
17485 ;
17486 return 0;
17487}
17488_ACEOF
17489rm -f conftest.$ac_objext
17490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17491 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17492 ac_status=$?
243f8ae5
VS
17493 grep -v '^ *+' conftest.er1 >conftest.err
17494 rm -f conftest.er1
17495 cat conftest.err >&5
e6cc62c6
VS
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); } &&
243f8ae5
VS
17498 { ac_try='test -z "$ac_c_werror_flag"
17499 || test ! -s conftest.err'
17500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17501 (eval $ac_try) 2>&5
17502 ac_status=$?
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; } &&
17505 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17508 ac_status=$?
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 ac_cv_type_long_long=yes
17512else
17513 echo "$as_me: failed program was:" >&5
17514sed 's/^/| /' conftest.$ac_ext >&5
17515
17516ac_cv_type_long_long=no
17517fi
243f8ae5 17518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17519fi
17520echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17521echo "${ECHO_T}$ac_cv_type_long_long" >&6
17522
17523echo "$as_me:$LINENO: checking size of long long" >&5
17524echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17525if test "${ac_cv_sizeof_long_long+set}" = set; then
17526 echo $ECHO_N "(cached) $ECHO_C" >&6
17527else
17528 if test "$ac_cv_type_long_long" = yes; then
17529 # The cast to unsigned long works around a bug in the HP C Compiler
17530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17532 # This bug is HP SR number 8606223364.
4f57cf11 17533 if test "$cross_compiling" = yes; then
e6cc62c6
VS
17534 # Depending upon the size, compute the lo and hi bounds.
17535cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17536/* confdefs.h. */
17537_ACEOF
17538cat confdefs.h >>conftest.$ac_ext
17539cat >>conftest.$ac_ext <<_ACEOF
17540/* end confdefs.h. */
17541$ac_includes_default
17542int
17543main ()
17544{
17545static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17546test_array [0] = 0
17547
17548 ;
17549 return 0;
17550}
17551_ACEOF
17552rm -f conftest.$ac_objext
17553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17554 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17555 ac_status=$?
243f8ae5
VS
17556 grep -v '^ *+' conftest.er1 >conftest.err
17557 rm -f conftest.er1
17558 cat conftest.err >&5
e6cc62c6
VS
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } &&
243f8ae5
VS
17561 { ac_try='test -z "$ac_c_werror_flag"
17562 || test ! -s conftest.err'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; } &&
17568 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17571 ac_status=$?
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574 ac_lo=0 ac_mid=0
17575 while :; do
17576 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17577/* confdefs.h. */
17578_ACEOF
17579cat confdefs.h >>conftest.$ac_ext
17580cat >>conftest.$ac_ext <<_ACEOF
17581/* end confdefs.h. */
17582$ac_includes_default
17583int
17584main ()
17585{
17586static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17587test_array [0] = 0
17588
17589 ;
17590 return 0;
17591}
17592_ACEOF
17593rm -f conftest.$ac_objext
17594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17595 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17596 ac_status=$?
243f8ae5
VS
17597 grep -v '^ *+' conftest.er1 >conftest.err
17598 rm -f conftest.er1
17599 cat conftest.err >&5
e6cc62c6
VS
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); } &&
243f8ae5
VS
17602 { ac_try='test -z "$ac_c_werror_flag"
17603 || test ! -s conftest.err'
17604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17605 (eval $ac_try) 2>&5
17606 ac_status=$?
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; } &&
17609 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17611 (eval $ac_try) 2>&5
17612 ac_status=$?
17613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614 (exit $ac_status); }; }; then
17615 ac_hi=$ac_mid; break
17616else
17617 echo "$as_me: failed program was:" >&5
17618sed 's/^/| /' conftest.$ac_ext >&5
17619
17620ac_lo=`expr $ac_mid + 1`
243f8ae5
VS
17621 if test $ac_lo -le $ac_mid; then
17622 ac_lo= ac_hi=
17623 break
17624 fi
17625 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 17626fi
243f8ae5 17627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17628 done
17629else
17630 echo "$as_me: failed program was:" >&5
17631sed 's/^/| /' conftest.$ac_ext >&5
17632
17633cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17634/* confdefs.h. */
17635_ACEOF
17636cat confdefs.h >>conftest.$ac_ext
17637cat >>conftest.$ac_ext <<_ACEOF
17638/* end confdefs.h. */
17639$ac_includes_default
17640int
17641main ()
17642{
17643static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17644test_array [0] = 0
17645
17646 ;
17647 return 0;
17648}
17649_ACEOF
17650rm -f conftest.$ac_objext
17651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17652 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17653 ac_status=$?
243f8ae5
VS
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
e6cc62c6
VS
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
243f8ae5
VS
17659 { ac_try='test -z "$ac_c_werror_flag"
17660 || test ! -s conftest.err'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
17672 ac_hi=-1 ac_mid=-1
17673 while :; do
17674 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17675/* confdefs.h. */
17676_ACEOF
17677cat confdefs.h >>conftest.$ac_ext
17678cat >>conftest.$ac_ext <<_ACEOF
17679/* end confdefs.h. */
17680$ac_includes_default
17681int
17682main ()
17683{
17684static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17685test_array [0] = 0
17686
17687 ;
17688 return 0;
17689}
17690_ACEOF
17691rm -f conftest.$ac_objext
17692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17693 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17694 ac_status=$?
243f8ae5
VS
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
e6cc62c6
VS
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
243f8ae5
VS
17700 { ac_try='test -z "$ac_c_werror_flag"
17701 || test ! -s conftest.err'
17702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17703 (eval $ac_try) 2>&5
17704 ac_status=$?
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; } &&
17707 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17709 (eval $ac_try) 2>&5
17710 ac_status=$?
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); }; }; then
17713 ac_lo=$ac_mid; break
17714else
17715 echo "$as_me: failed program was:" >&5
17716sed 's/^/| /' conftest.$ac_ext >&5
17717
17718ac_hi=`expr '(' $ac_mid ')' - 1`
243f8ae5
VS
17719 if test $ac_mid -le $ac_hi; then
17720 ac_lo= ac_hi=
17721 break
17722 fi
17723 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 17724fi
243f8ae5 17725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17726 done
4f57cf11 17727else
e6cc62c6
VS
17728 echo "$as_me: failed program was:" >&5
17729sed 's/^/| /' conftest.$ac_ext >&5
17730
17731ac_lo= ac_hi=
17732fi
243f8ae5 17733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17734fi
243f8ae5 17735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17736# Binary search between lo and hi bounds.
17737while test "x$ac_lo" != "x$ac_hi"; do
17738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17739 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17740/* confdefs.h. */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h. */
17745$ac_includes_default
17746int
17747main ()
17748{
17749static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17750test_array [0] = 0
17751
17752 ;
17753 return 0;
17754}
17755_ACEOF
17756rm -f conftest.$ac_objext
17757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17758 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17759 ac_status=$?
243f8ae5
VS
17760 grep -v '^ *+' conftest.er1 >conftest.err
17761 rm -f conftest.er1
17762 cat conftest.err >&5
e6cc62c6
VS
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); } &&
243f8ae5
VS
17765 { ac_try='test -z "$ac_c_werror_flag"
17766 || test ! -s conftest.err'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17769 ac_status=$?
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; } &&
17772 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17774 (eval $ac_try) 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 ac_hi=$ac_mid
17779else
17780 echo "$as_me: failed program was:" >&5
17781sed 's/^/| /' conftest.$ac_ext >&5
17782
17783ac_lo=`expr '(' $ac_mid ')' + 1`
17784fi
243f8ae5 17785rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17786done
17787case $ac_lo in
17788?*) ac_cv_sizeof_long_long=$ac_lo;;
17789'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17790See \`config.log' for more details." >&5
17791echo "$as_me: error: cannot compute sizeof (long long), 77
17792See \`config.log' for more details." >&2;}
17793 { (exit 1); exit 1; }; } ;;
17794esac
17795else
17796 if test "$cross_compiling" = yes; then
17797 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17798See \`config.log' for more details." >&5
17799echo "$as_me: error: cannot run test program while cross compiling
17800See \`config.log' for more details." >&2;}
17801 { (exit 1); exit 1; }; }
17802else
17803 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17804/* confdefs.h. */
17805_ACEOF
17806cat confdefs.h >>conftest.$ac_ext
17807cat >>conftest.$ac_ext <<_ACEOF
17808/* end confdefs.h. */
17809$ac_includes_default
17810long longval () { return (long) (sizeof (long long)); }
17811unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 17812#include <stdio.h>
e6cc62c6
VS
17813#include <stdlib.h>
17814int
17815main ()
4f57cf11 17816{
e6cc62c6
VS
17817
17818 FILE *f = fopen ("conftest.val", "w");
17819 if (! f)
17820 exit (1);
17821 if (((long) (sizeof (long long))) < 0)
17822 {
17823 long i = longval ();
17824 if (i != ((long) (sizeof (long long))))
17825 exit (1);
17826 fprintf (f, "%ld\n", i);
17827 }
17828 else
17829 {
17830 unsigned long i = ulongval ();
17831 if (i != ((long) (sizeof (long long))))
17832 exit (1);
17833 fprintf (f, "%lu\n", i);
17834 }
17835 exit (ferror (f) || fclose (f) != 0);
17836
17837 ;
17838 return 0;
4f57cf11 17839}
e6cc62c6
VS
17840_ACEOF
17841rm -f conftest$ac_exeext
17842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17843 (eval $ac_link) 2>&5
17844 ac_status=$?
17845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17848 (eval $ac_try) 2>&5
17849 ac_status=$?
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); }; }; then
17852 ac_cv_sizeof_long_long=`cat conftest.val`
17853else
17854 echo "$as_me: program exited with status $ac_status" >&5
17855echo "$as_me: failed program was:" >&5
17856sed 's/^/| /' conftest.$ac_ext >&5
17857
17858( exit $ac_status )
17859{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17860See \`config.log' for more details." >&5
17861echo "$as_me: error: cannot compute sizeof (long long), 77
17862See \`config.log' for more details." >&2;}
17863 { (exit 1); exit 1; }; }
17864fi
243f8ae5 17865rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17866fi
17867fi
17868rm -f conftest.val
4f57cf11 17869else
4f57cf11
GD
17870 ac_cv_sizeof_long_long=0
17871fi
7b4a847f 17872fi
e6cc62c6
VS
17873echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17874echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17875cat >>confdefs.h <<_ACEOF
21d1c967 17876#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17877_ACEOF
9e691f46 17878
8284b0c5 17879
21d1c967
GD
17880esac
17881
e6cc62c6
VS
17882echo "$as_me:$LINENO: checking size of wchar_t" >&5
17883echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17884if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17885 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17886else
e6cc62c6 17887
21d1c967 17888 if test "$cross_compiling" = yes; then
e6cc62c6 17889
2b5f62a0
VZ
17890 case "${host}" in
17891 *-pc-msdosdjgpp )
17892 wx_cv_sizeof_wchar_t=0
17893 ;;
17894 * )
17895 wx_cv_sizeof_wchar_t=4
17896 ;;
17897 esac
e6cc62c6
VS
17898
17899
6f72b082 17900else
e6cc62c6 17901 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17902/* confdefs.h. */
17903_ACEOF
17904cat confdefs.h >>conftest.$ac_ext
17905cat >>conftest.$ac_ext <<_ACEOF
17906/* end confdefs.h. */
21d1c967 17907
2b5f62a0
VZ
17908 /* DJGPP only has fake wchar_t: */
17909 #ifdef __DJGPP__
17910 # error "fake wchar_t"
17911 #endif
21d1c967
GD
17912 #ifdef HAVE_WCHAR_H
17913 # ifdef __CYGWIN__
17914 # include <stddef.h>
17915 # endif
17916 # include <wchar.h>
17917 #endif
17918 #ifdef HAVE_STDLIB_H
17919 # include <stdlib.h>
17920 #endif
17921 #include <stdio.h>
17922 int main()
17923 {
17924 FILE *f=fopen("conftestval", "w");
17925 if (!f) exit(1);
17926 fprintf(f, "%i", sizeof(wchar_t));
17927 exit(0);
17928 }
e6cc62c6
VS
17929
17930_ACEOF
17931rm -f conftest$ac_exeext
17932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17933 (eval $ac_link) 2>&5
17934 ac_status=$?
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17938 (eval $ac_try) 2>&5
17939 ac_status=$?
17940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17941 (exit $ac_status); }; }; then
21d1c967 17942 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 17943else
e6cc62c6
VS
17944 echo "$as_me: program exited with status $ac_status" >&5
17945echo "$as_me: failed program was:" >&5
17946sed 's/^/| /' conftest.$ac_ext >&5
17947
17948( exit $ac_status )
17949wx_cv_sizeof_wchar_t=0
6f72b082 17950fi
243f8ae5 17951rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 17952fi
6f72b082 17953
3f345b47 17954fi
e6cc62c6
VS
17955echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17956echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 17957
e6cc62c6 17958cat >>confdefs.h <<_ACEOF
21d1c967 17959#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 17960_ACEOF
90dd450c 17961
8284b0c5 17962
21d1c967
GD
17963# Check whether --enable-largefile or --disable-largefile was given.
17964if test "${enable_largefile+set}" = set; then
17965 enableval="$enable_largefile"
3f345b47 17966
e6cc62c6 17967fi;
21d1c967
GD
17968if test "$enable_largefile" != no; then
17969 wx_largefile=no
e6cc62c6
VS
17970
17971 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17972echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17973if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17974 echo $ECHO_N "(cached) $ECHO_C" >&6
17975else
17976
17977 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17978/* confdefs.h. */
17979_ACEOF
17980cat confdefs.h >>conftest.$ac_ext
17981cat >>conftest.$ac_ext <<_ACEOF
17982/* end confdefs.h. */
21d1c967
GD
17983#define _FILE_OFFSET_BITS 64
17984 #include <sys/types.h>
e6cc62c6
VS
17985int
17986main ()
17987{
21d1c967
GD
17988typedef struct {
17989 unsigned int field: sizeof(off_t) == 8;
17990} wxlf;
17991
e6cc62c6
VS
17992 ;
17993 return 0;
17994}
17995_ACEOF
17996rm -f conftest.$ac_objext
17997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 17998 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17999 ac_status=$?
243f8ae5
VS
18000 grep -v '^ *+' conftest.er1 >conftest.err
18001 rm -f conftest.er1
18002 cat conftest.err >&5
e6cc62c6
VS
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
243f8ae5
VS
18005 { ac_try='test -z "$ac_c_werror_flag"
18006 || test ! -s conftest.err'
18007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18008 (eval $ac_try) 2>&5
18009 ac_status=$?
18010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18011 (exit $ac_status); }; } &&
18012 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18014 (eval $ac_try) 2>&5
18015 ac_status=$?
18016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18017 (exit $ac_status); }; }; then
21d1c967 18018 ac_cv_sys_file_offset_bits=64
f6bcfd97 18019else
e6cc62c6
VS
18020 echo "$as_me: failed program was:" >&5
18021sed 's/^/| /' conftest.$ac_ext >&5
18022
18023ac_cv_sys_file_offset_bits=no
247f5006 18024fi
243f8ae5 18025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18026
a0b9e27f 18027
e6cc62c6
VS
18028fi
18029echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18030echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
18031
18032 if test "$ac_cv_sys_file_offset_bits" != no; then
18033 wx_largefile=yes
e6cc62c6 18034 cat >>confdefs.h <<_ACEOF
21d1c967 18035#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 18036_ACEOF
21d1c967
GD
18037
18038 fi
18039
18040 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
18041
18042 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
18043echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
18044if test "${ac_cv_sys_large_files+set}" = set; then
18045 echo $ECHO_N "(cached) $ECHO_C" >&6
18046else
18047
18048 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18049/* confdefs.h. */
18050_ACEOF
18051cat confdefs.h >>conftest.$ac_ext
18052cat >>conftest.$ac_ext <<_ACEOF
18053/* end confdefs.h. */
21d1c967
GD
18054#define _LARGE_FILES 1
18055 #include <sys/types.h>
e6cc62c6
VS
18056int
18057main ()
18058{
21d1c967
GD
18059typedef struct {
18060 unsigned int field: sizeof(off_t) == 8;
18061} wxlf;
18062
e6cc62c6
VS
18063 ;
18064 return 0;
18065}
18066_ACEOF
18067rm -f conftest.$ac_objext
18068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 18069 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18070 ac_status=$?
243f8ae5
VS
18071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
e6cc62c6
VS
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } &&
243f8ae5
VS
18076 { ac_try='test -z "$ac_c_werror_flag"
18077 || test ! -s conftest.err'
18078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18079 (eval $ac_try) 2>&5
18080 ac_status=$?
18081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082 (exit $ac_status); }; } &&
18083 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18085 (eval $ac_try) 2>&5
18086 ac_status=$?
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; }; then
21d1c967 18089 ac_cv_sys_large_files=1
f6bcfd97 18090else
e6cc62c6
VS
18091 echo "$as_me: failed program was:" >&5
18092sed 's/^/| /' conftest.$ac_ext >&5
18093
18094ac_cv_sys_large_files=no
247f5006 18095fi
243f8ae5 18096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18097
e6cc62c6
VS
18098
18099fi
18100echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18101echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 18102
21d1c967
GD
18103 if test "$ac_cv_sys_large_files" != no; then
18104 wx_largefile=yes
e6cc62c6 18105 cat >>confdefs.h <<_ACEOF
21d1c967 18106#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 18107_ACEOF
90dd450c 18108
90dd450c
VZ
18109 fi
18110
90dd450c 18111 fi
90dd450c 18112
e6cc62c6
VS
18113 echo "$as_me:$LINENO: checking if large file support is available" >&5
18114echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 18115 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 18116 cat >>confdefs.h <<\_ACEOF
21d1c967 18117#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 18118_ACEOF
90dd450c 18119
90dd450c 18120 fi
e6cc62c6
VS
18121 echo "$as_me:$LINENO: result: $wx_largefile" >&5
18122echo "${ECHO_T}$wx_largefile" >&6
21d1c967 18123fi
90dd450c 18124
8284b0c5 18125
f02444d0 18126if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
18127 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
18128 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 18129 else
e26c13cf 18130 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 18131 fi
e26c13cf 18132 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
18133fi
18134
e6cc62c6
VS
18135echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18136echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18137if test "${ac_cv_c_bigendian+set}" = set; then
18138 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 18139else
21d1c967
GD
18140 ac_cv_c_bigendian=unknown
18141# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 18142cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18143/* confdefs.h. */
18144_ACEOF
18145cat confdefs.h >>conftest.$ac_ext
18146cat >>conftest.$ac_ext <<_ACEOF
18147/* end confdefs.h. */
21d1c967
GD
18148#include <sys/types.h>
18149#include <sys/param.h>
e6cc62c6
VS
18150int
18151main ()
18152{
21d1c967
GD
18153
18154#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18155 bogus endian macros
18156#endif
e6cc62c6
VS
18157 ;
18158 return 0;
18159}
18160_ACEOF
18161rm -f conftest.$ac_objext
18162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 18163 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18164 ac_status=$?
243f8ae5
VS
18165 grep -v '^ *+' conftest.er1 >conftest.err
18166 rm -f conftest.er1
18167 cat conftest.err >&5
e6cc62c6
VS
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); } &&
243f8ae5
VS
18170 { ac_try='test -z "$ac_c_werror_flag"
18171 || test ! -s conftest.err'
18172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18173 (eval $ac_try) 2>&5
18174 ac_status=$?
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } &&
18177 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18179 (eval $ac_try) 2>&5
18180 ac_status=$?
18181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 (exit $ac_status); }; }; then
21d1c967 18183 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 18184cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18185/* confdefs.h. */
18186_ACEOF
18187cat confdefs.h >>conftest.$ac_ext
18188cat >>conftest.$ac_ext <<_ACEOF
18189/* end confdefs.h. */
21d1c967
GD
18190#include <sys/types.h>
18191#include <sys/param.h>
e6cc62c6
VS
18192int
18193main ()
18194{
21d1c967
GD
18195
18196#if BYTE_ORDER != BIG_ENDIAN
18197 not big endian
18198#endif
e6cc62c6
VS
18199 ;
18200 return 0;
18201}
18202_ACEOF
18203rm -f conftest.$ac_objext
18204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 18205 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18206 ac_status=$?
243f8ae5
VS
18207 grep -v '^ *+' conftest.er1 >conftest.err
18208 rm -f conftest.er1
18209 cat conftest.err >&5
e6cc62c6
VS
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
243f8ae5
VS
18212 { ac_try='test -z "$ac_c_werror_flag"
18213 || test ! -s conftest.err'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; } &&
18219 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18221 (eval $ac_try) 2>&5
18222 ac_status=$?
18223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224 (exit $ac_status); }; }; then
21d1c967 18225 ac_cv_c_bigendian=yes
3f345b47 18226else
e6cc62c6
VS
18227 echo "$as_me: failed program was:" >&5
18228sed 's/^/| /' conftest.$ac_ext >&5
18229
18230ac_cv_c_bigendian=no
3f345b47 18231fi
243f8ae5 18232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f345b47 18233else
e6cc62c6
VS
18234 echo "$as_me: failed program was:" >&5
18235sed 's/^/| /' conftest.$ac_ext >&5
18236
3f345b47 18237fi
243f8ae5 18238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18239if test $ac_cv_c_bigendian = unknown; then
18240if test "$cross_compiling" = yes; then
18241 ac_cv_c_bigendian=unknown
10f2d63a 18242else
e6cc62c6 18243 cat >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
18249main () {
18250 /* Are we little or big endian? From Harbison&Steele. */
18251 union
18252 {
18253 long l;
18254 char c[sizeof (long)];
18255 } u;
18256 u.l = 1;
18257 exit (u.c[sizeof (long) - 1] == 1);
18258}
e6cc62c6
VS
18259_ACEOF
18260rm -f conftest$ac_exeext
18261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18262 (eval $ac_link) 2>&5
18263 ac_status=$?
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18267 (eval $ac_try) 2>&5
18268 ac_status=$?
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
21d1c967 18271 ac_cv_c_bigendian=no
3f345b47 18272else
e6cc62c6
VS
18273 echo "$as_me: program exited with status $ac_status" >&5
18274echo "$as_me: failed program was:" >&5
18275sed 's/^/| /' conftest.$ac_ext >&5
18276
18277( exit $ac_status )
18278ac_cv_c_bigendian=yes
247f5006 18279fi
243f8ae5 18280rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 18281fi
3f345b47 18282fi
8168de4c 18283fi
e6cc62c6
VS
18284echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18285echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 18286if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
18287 { 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
18288echo "$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
18289fi
18290if test $ac_cv_c_bigendian = yes; then
e6cc62c6 18291 cat >>confdefs.h <<\_ACEOF
247f5006 18292#define WORDS_BIGENDIAN 1
e6cc62c6 18293_ACEOF
247f5006
VZ
18294
18295fi
18296
18297
e6cc62c6
VS
18298ac_ext=cc
18299ac_cpp='$CXXCPP $CPPFLAGS'
18300ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18301ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18302ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18303echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
18304echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 18305if test -z "$CXXCPP"; then
e6cc62c6
VS
18306 if test "${ac_cv_prog_CXXCPP+set}" = set; then
18307 echo $ECHO_N "(cached) $ECHO_C" >&6
18308else
18309 # Double quotes because CXXCPP needs to be expanded
18310 for CXXCPP in "$CXX -E" "/lib/cpp"
18311 do
18312 ac_preproc_ok=false
18313for ac_cxx_preproc_warn_flag in '' yes
18314do
18315 # Use a header file that comes with gcc, so configuring glibc
18316 # with a fresh cross-compiler works.
18317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18318 # <limits.h> exists even on freestanding compilers.
18319 # On the NeXT, cc -E runs the code through the compiler's parser,
18320 # not just through cpp. "Syntax error" is here to catch this case.
18321 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18322/* confdefs.h. */
18323_ACEOF
18324cat confdefs.h >>conftest.$ac_ext
18325cat >>conftest.$ac_ext <<_ACEOF
18326/* end confdefs.h. */
18327#ifdef __STDC__
18328# include <limits.h>
18329#else
18330# include <assert.h>
18331#endif
243f8ae5 18332 Syntax error
e6cc62c6
VS
18333_ACEOF
18334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18336 ac_status=$?
18337 grep -v '^ *+' conftest.er1 >conftest.err
18338 rm -f conftest.er1
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } >/dev/null; then
18342 if test -s conftest.err; then
18343 ac_cpp_err=$ac_cxx_preproc_warn_flag
243f8ae5 18344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18345 else
18346 ac_cpp_err=
18347 fi
247f5006 18348else
e6cc62c6
VS
18349 ac_cpp_err=yes
18350fi
18351if test -z "$ac_cpp_err"; then
18352 :
18353else
18354 echo "$as_me: failed program was:" >&5
18355sed 's/^/| /' conftest.$ac_ext >&5
18356
18357 # Broken: fails on valid input.
18358continue
18359fi
18360rm -f conftest.err conftest.$ac_ext
18361
18362 # OK, works on sane cases. Now check whether non-existent headers
18363 # can be detected and how.
18364 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18365/* confdefs.h. */
18366_ACEOF
18367cat confdefs.h >>conftest.$ac_ext
18368cat >>conftest.$ac_ext <<_ACEOF
18369/* end confdefs.h. */
18370#include <ac_nonexistent.h>
18371_ACEOF
18372if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18374 ac_status=$?
18375 grep -v '^ *+' conftest.er1 >conftest.err
18376 rm -f conftest.er1
18377 cat conftest.err >&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } >/dev/null; then
18380 if test -s conftest.err; then
18381 ac_cpp_err=$ac_cxx_preproc_warn_flag
243f8ae5 18382 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18383 else
18384 ac_cpp_err=
18385 fi
18386else
18387 ac_cpp_err=yes
18388fi
18389if test -z "$ac_cpp_err"; then
18390 # Broken: success on invalid input.
18391continue
18392else
18393 echo "$as_me: failed program was:" >&5
18394sed 's/^/| /' conftest.$ac_ext >&5
18395
18396 # Passes both tests.
18397ac_preproc_ok=:
18398break
18399fi
18400rm -f conftest.err conftest.$ac_ext
18401
18402done
18403# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18404rm -f conftest.err conftest.$ac_ext
18405if $ac_preproc_ok; then
18406 break
18407fi
18408
18409 done
18410 ac_cv_prog_CXXCPP=$CXXCPP
18411
18412fi
18413 CXXCPP=$ac_cv_prog_CXXCPP
18414else
18415 ac_cv_prog_CXXCPP=$CXXCPP
18416fi
18417echo "$as_me:$LINENO: result: $CXXCPP" >&5
18418echo "${ECHO_T}$CXXCPP" >&6
18419ac_preproc_ok=false
18420for ac_cxx_preproc_warn_flag in '' yes
18421do
18422 # Use a header file that comes with gcc, so configuring glibc
18423 # with a fresh cross-compiler works.
18424 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18425 # <limits.h> exists even on freestanding compilers.
18426 # On the NeXT, cc -E runs the code through the compiler's parser,
18427 # not just through cpp. "Syntax error" is here to catch this case.
18428 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18429/* confdefs.h. */
18430_ACEOF
18431cat confdefs.h >>conftest.$ac_ext
18432cat >>conftest.$ac_ext <<_ACEOF
18433/* end confdefs.h. */
18434#ifdef __STDC__
18435# include <limits.h>
18436#else
18437# include <assert.h>
18438#endif
243f8ae5 18439 Syntax error
e6cc62c6
VS
18440_ACEOF
18441if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18442 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18443 ac_status=$?
18444 grep -v '^ *+' conftest.er1 >conftest.err
18445 rm -f conftest.er1
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } >/dev/null; then
18449 if test -s conftest.err; then
18450 ac_cpp_err=$ac_cxx_preproc_warn_flag
243f8ae5 18451 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18452 else
18453 ac_cpp_err=
18454 fi
18455else
18456 ac_cpp_err=yes
18457fi
18458if test -z "$ac_cpp_err"; then
21d1c967 18459 :
698dcdb6 18460else
e6cc62c6
VS
18461 echo "$as_me: failed program was:" >&5
18462sed 's/^/| /' conftest.$ac_ext >&5
18463
18464 # Broken: fails on valid input.
18465continue
18466fi
18467rm -f conftest.err conftest.$ac_ext
18468
18469 # OK, works on sane cases. Now check whether non-existent headers
18470 # can be detected and how.
18471 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18472/* confdefs.h. */
18473_ACEOF
18474cat confdefs.h >>conftest.$ac_ext
18475cat >>conftest.$ac_ext <<_ACEOF
18476/* end confdefs.h. */
18477#include <ac_nonexistent.h>
18478_ACEOF
18479if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18480 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18481 ac_status=$?
18482 grep -v '^ *+' conftest.er1 >conftest.err
18483 rm -f conftest.er1
18484 cat conftest.err >&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } >/dev/null; then
18487 if test -s conftest.err; then
18488 ac_cpp_err=$ac_cxx_preproc_warn_flag
243f8ae5 18489 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18490 else
18491 ac_cpp_err=
18492 fi
18493else
18494 ac_cpp_err=yes
247f5006 18495fi
e6cc62c6
VS
18496if test -z "$ac_cpp_err"; then
18497 # Broken: success on invalid input.
18498continue
18499else
18500 echo "$as_me: failed program was:" >&5
18501sed 's/^/| /' conftest.$ac_ext >&5
18502
18503 # Passes both tests.
18504ac_preproc_ok=:
18505break
328a083c 18506fi
e6cc62c6
VS
18507rm -f conftest.err conftest.$ac_ext
18508
18509done
18510# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18511rm -f conftest.err conftest.$ac_ext
18512if $ac_preproc_ok; then
18513 :
18514else
18515 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18516See \`config.log' for more details." >&5
18517echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18518See \`config.log' for more details." >&2;}
18519 { (exit 1); exit 1; }; }
90dd450c 18520fi
e6cc62c6
VS
18521
18522ac_ext=cc
18523ac_cpp='$CXXCPP $CPPFLAGS'
18524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18527
1e6feb95 18528
1725144d 18529
21d1c967 18530 if test "$cross_compiling" = "yes"; then
e6cc62c6 18531 cat >>confdefs.h <<\_ACEOF
21d1c967 18532#define wxUSE_IOSTREAMH 1
e6cc62c6 18533_ACEOF
ab9b9eab 18534
21d1c967 18535 else
e6cc62c6
VS
18536
18537
18538 ac_ext=cc
5c6fa7d2 18539ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18543
52127426 18544
247f5006 18545
e6cc62c6 18546for ac_header in iostream
21d1c967 18547do
e6cc62c6
VS
18548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18549if eval "test \"\${$as_ac_Header+set}\" = set"; then
18550 echo "$as_me:$LINENO: checking for $ac_header" >&5
18551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18552if eval "test \"\${$as_ac_Header+set}\" = set"; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18554fi
18555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18557else
18558 # Is the header compilable?
18559echo "$as_me:$LINENO: checking $ac_header usability" >&5
18560echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18561cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18562/* confdefs.h. */
18563_ACEOF
18564cat confdefs.h >>conftest.$ac_ext
18565cat >>conftest.$ac_ext <<_ACEOF
18566/* end confdefs.h. */
18567$ac_includes_default
18568#include <$ac_header>
18569_ACEOF
18570rm -f conftest.$ac_objext
18571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 18572 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18573 ac_status=$?
243f8ae5
VS
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
e6cc62c6
VS
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
243f8ae5
VS
18579 { ac_try='test -z "$ac_cxx_werror_flag"
18580 || test ! -s conftest.err'
18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582 (eval $ac_try) 2>&5
18583 ac_status=$?
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; } &&
18586 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588 (eval $ac_try) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; }; then
18592 ac_header_compiler=yes
18593else
18594 echo "$as_me: failed program was:" >&5
18595sed 's/^/| /' conftest.$ac_ext >&5
18596
18597ac_header_compiler=no
18598fi
243f8ae5 18599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18600echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18601echo "${ECHO_T}$ac_header_compiler" >&6
18602
18603# Is the header present?
18604echo "$as_me:$LINENO: checking $ac_header presence" >&5
18605echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18606cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18607/* confdefs.h. */
18608_ACEOF
18609cat confdefs.h >>conftest.$ac_ext
18610cat >>conftest.$ac_ext <<_ACEOF
18611/* end confdefs.h. */
18612#include <$ac_header>
18613_ACEOF
18614if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18615 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } >/dev/null; then
18622 if test -s conftest.err; then
18623 ac_cpp_err=$ac_cxx_preproc_warn_flag
243f8ae5 18624 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18625 else
18626 ac_cpp_err=
18627 fi
18628else
18629 ac_cpp_err=yes
18630fi
18631if test -z "$ac_cpp_err"; then
18632 ac_header_preproc=yes
18633else
18634 echo "$as_me: failed program was:" >&5
18635sed 's/^/| /' conftest.$ac_ext >&5
18636
18637 ac_header_preproc=no
18638fi
18639rm -f conftest.err conftest.$ac_ext
18640echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18641echo "${ECHO_T}$ac_header_preproc" >&6
18642
18643# So? What about this header?
243f8ae5
VS
18644case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18645 yes:no: )
e6cc62c6
VS
18646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18647echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
18648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18649echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18650 ac_header_preproc=yes
e6cc62c6 18651 ;;
243f8ae5 18652 no:yes:* )
e6cc62c6
VS
18653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18654echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
18655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18656echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18658echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18660echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
18661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
18663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18664echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
18665 (
18666 cat <<\_ASBOX
243f8ae5
VS
18667## ----------------------------------------- ##
18668## Report this to wx-dev@lists.wxwindows.org ##
18669## ----------------------------------------- ##
e6cc62c6
VS
18670_ASBOX
18671 ) |
18672 sed "s/^/$as_me: WARNING: /" >&2
18673 ;;
18674esac
18675echo "$as_me:$LINENO: checking for $ac_header" >&5
18676echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18677if eval "test \"\${$as_ac_Header+set}\" = set"; then
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18679else
243f8ae5 18680 eval "$as_ac_Header=\$ac_header_preproc"
ab9b9eab 18681fi
e6cc62c6
VS
18682echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18683echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18684
90dd450c 18685fi
e6cc62c6
VS
18686if test `eval echo '${'$as_ac_Header'}'` = yes; then
18687 cat >>confdefs.h <<_ACEOF
18688#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18689_ACEOF
18690
90dd450c 18691fi
e6cc62c6 18692
21d1c967 18693done
10f2d63a 18694
8284b0c5 18695
21d1c967
GD
18696 if test "$ac_cv_header_iostream" = "yes" ; then
18697 :
18698 else
e6cc62c6 18699 cat >>confdefs.h <<\_ACEOF
21d1c967 18700#define wxUSE_IOSTREAMH 1
e6cc62c6 18701_ACEOF
788deba1 18702
90dd450c 18703 fi
ab9b9eab 18704
21d1c967 18705 ac_ext=c
21d1c967 18706ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18709ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 18710
21d1c967 18711 fi
ab9b9eab 18712
52127426 18713
8284b0c5 18714
e6cc62c6
VS
18715 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18716echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18717if test "${wx_cv_cpp_bool+set}" = set; then
18718 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18719else
e6cc62c6
VS
18720
18721
18722
18723 ac_ext=cc
5c6fa7d2 18724ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 18728
8284b0c5 18729
e6cc62c6 18730 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18731/* confdefs.h. */
18732_ACEOF
18733cat confdefs.h >>conftest.$ac_ext
18734cat >>conftest.$ac_ext <<_ACEOF
18735/* end confdefs.h. */
21d1c967 18736
e6cc62c6
VS
18737
18738int
18739main ()
18740{
21d1c967
GD
18741
18742 bool b = true;
18743
18744 return 0;
e6cc62c6
VS
18745
18746 ;
18747 return 0;
18748}
18749_ACEOF
18750rm -f conftest.$ac_objext
18751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 18752 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18753 ac_status=$?
243f8ae5
VS
18754 grep -v '^ *+' conftest.er1 >conftest.err
18755 rm -f conftest.er1
18756 cat conftest.err >&5
e6cc62c6
VS
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); } &&
243f8ae5
VS
18759 { ac_try='test -z "$ac_cxx_werror_flag"
18760 || test ! -s conftest.err'
18761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18762 (eval $ac_try) 2>&5
18763 ac_status=$?
18764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18765 (exit $ac_status); }; } &&
18766 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18768 (eval $ac_try) 2>&5
18769 ac_status=$?
18770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18771 (exit $ac_status); }; }; then
18772
21d1c967 18773 wx_cv_cpp_bool=yes
e6cc62c6 18774
698dcdb6 18775else
e6cc62c6
VS
18776 echo "$as_me: failed program was:" >&5
18777sed 's/^/| /' conftest.$ac_ext >&5
18778
18779
21d1c967 18780 wx_cv_cpp_bool=no
e6cc62c6
VS
18781
18782
698dcdb6 18783fi
243f8ae5 18784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18785
18786 ac_ext=c
21d1c967 18787ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18790ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18791
a0b9e27f 18792
e6cc62c6
VS
18793fi
18794echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18795echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
18796
18797 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 18798 cat >>confdefs.h <<\_ACEOF
21d1c967 18799#define HAVE_BOOL 1
e6cc62c6 18800_ACEOF
ab9b9eab 18801
21d1c967
GD
18802 fi
18803
52127426 18804
8284b0c5 18805
e6cc62c6
VS
18806 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18807echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18808if test "${wx_cv_explicit+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18810else
e6cc62c6
VS
18811
18812
18813
18814 ac_ext=cc
5c6fa7d2 18815ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 18819
8284b0c5 18820
e6cc62c6 18821 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18822/* confdefs.h. */
18823_ACEOF
18824cat confdefs.h >>conftest.$ac_ext
18825cat >>conftest.$ac_ext <<_ACEOF
18826/* end confdefs.h. */
986ecc86
VZ
18827
18828 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
18829
18830int
18831main ()
18832{
986ecc86
VZ
18833
18834 return 0;
e6cc62c6
VS
18835
18836 ;
18837 return 0;
18838}
18839_ACEOF
18840rm -f conftest.$ac_objext
18841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 18842 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18843 ac_status=$?
243f8ae5
VS
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
e6cc62c6
VS
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
243f8ae5
VS
18849 { ac_try='test -z "$ac_cxx_werror_flag"
18850 || test ! -s conftest.err'
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
18862
18863 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18864/* confdefs.h. */
18865_ACEOF
18866cat confdefs.h >>conftest.$ac_ext
18867cat >>conftest.$ac_ext <<_ACEOF
18868/* end confdefs.h. */
986ecc86
VZ
18869
18870 class Foo { public: explicit Foo(int) {} };
18871 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
18872
18873int
18874main ()
18875{
986ecc86
VZ
18876
18877 TakeFoo(17);
18878 return 0;
e6cc62c6
VS
18879
18880 ;
18881 return 0;
18882}
18883_ACEOF
18884rm -f conftest.$ac_objext
18885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 18886 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18887 ac_status=$?
243f8ae5
VS
18888 grep -v '^ *+' conftest.er1 >conftest.err
18889 rm -f conftest.er1
18890 cat conftest.err >&5
e6cc62c6
VS
18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892 (exit $ac_status); } &&
243f8ae5
VS
18893 { ac_try='test -z "$ac_cxx_werror_flag"
18894 || test ! -s conftest.err'
18895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18896 (eval $ac_try) 2>&5
18897 ac_status=$?
18898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18899 (exit $ac_status); }; } &&
18900 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18902 (eval $ac_try) 2>&5
18903 ac_status=$?
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); }; }; then
986ecc86
VZ
18906 wx_cv_explicit=no
18907else
e6cc62c6
VS
18908 echo "$as_me: failed program was:" >&5
18909sed 's/^/| /' conftest.$ac_ext >&5
18910
18911wx_cv_explicit=yes
18912
986ecc86 18913fi
243f8ae5 18914rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18915
986ecc86 18916else
e6cc62c6
VS
18917 echo "$as_me: failed program was:" >&5
18918sed 's/^/| /' conftest.$ac_ext >&5
18919
18920wx_cv_explicit=no
18921
986ecc86 18922fi
243f8ae5 18923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
18924
18925 ac_ext=c
986ecc86 18926ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18929ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18930
a0b9e27f 18931
e6cc62c6
VS
18932fi
18933echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18934echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
18935
18936 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 18937 cat >>confdefs.h <<\_ACEOF
986ecc86 18938#define HAVE_EXPLICIT 1
e6cc62c6 18939_ACEOF
986ecc86
VZ
18940
18941 fi
18942
8284b0c5 18943
e6cc62c6
VS
18944echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18945echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18946if test "${ac_cv_cxx_const_cast+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 18948else
521196a2 18949
521196a2 18950
e6cc62c6
VS
18951 ac_ext=cc
18952ac_cpp='$CXXCPP $CPPFLAGS'
18953ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18954ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18955ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18956
18957 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18958/* confdefs.h. */
18959_ACEOF
18960cat confdefs.h >>conftest.$ac_ext
18961cat >>conftest.$ac_ext <<_ACEOF
18962/* end confdefs.h. */
18963
18964int
18965main ()
18966{
521196a2 18967int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
18968 ;
18969 return 0;
18970}
18971_ACEOF
18972rm -f conftest.$ac_objext
18973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 18974 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18975 ac_status=$?
243f8ae5
VS
18976 grep -v '^ *+' conftest.er1 >conftest.err
18977 rm -f conftest.er1
18978 cat conftest.err >&5
e6cc62c6
VS
18979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } &&
243f8ae5
VS
18981 { ac_try='test -z "$ac_cxx_werror_flag"
18982 || test ! -s conftest.err'
18983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18984 (eval $ac_try) 2>&5
18985 ac_status=$?
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); }; } &&
18988 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18990 (eval $ac_try) 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
521196a2
MB
18994 ac_cv_cxx_const_cast=yes
18995else
e6cc62c6
VS
18996 echo "$as_me: failed program was:" >&5
18997sed 's/^/| /' conftest.$ac_ext >&5
18998
18999ac_cv_cxx_const_cast=no
521196a2 19000fi
243f8ae5 19001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
521196a2 19002 ac_ext=c
521196a2 19003ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
19004ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19005ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19006ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
19007
19008
19009fi
e6cc62c6
VS
19010echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
19011echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 19012if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
19013
19014cat >>confdefs.h <<\_ACEOF
19015#define HAVE_CONST_CAST
19016_ACEOF
521196a2
MB
19017
19018fi
19019
ecfd48ca
VZ
19020echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
19021echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
19022if test "${ac_cv_cxx_static_cast+set}" = set; then
19023 echo $ECHO_N "(cached) $ECHO_C" >&6
19024else
19025
19026
19027 ac_ext=cc
19028ac_cpp='$CXXCPP $CPPFLAGS'
19029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19032
19033 cat >conftest.$ac_ext <<_ACEOF
ecfd48ca
VZ
19034/* confdefs.h. */
19035_ACEOF
19036cat confdefs.h >>conftest.$ac_ext
19037cat >>conftest.$ac_ext <<_ACEOF
19038/* end confdefs.h. */
19039#include <typeinfo>
19040class Base { public : Base () {} virtual void f () = 0; };
19041class Derived : public Base { public : Derived () {} virtual void f () {} };
19042int g (Derived&) { return 0; }
19043int
19044main ()
19045{
19046
19047Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
19048 ;
19049 return 0;
19050}
19051_ACEOF
19052rm -f conftest.$ac_objext
19053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 19054 (eval $ac_compile) 2>conftest.er1
ecfd48ca 19055 ac_status=$?
243f8ae5
VS
19056 grep -v '^ *+' conftest.er1 >conftest.err
19057 rm -f conftest.er1
19058 cat conftest.err >&5
ecfd48ca
VZ
19059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060 (exit $ac_status); } &&
243f8ae5
VS
19061 { ac_try='test -z "$ac_cxx_werror_flag"
19062 || test ! -s conftest.err'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; } &&
19068 { ac_try='test -s conftest.$ac_objext'
ecfd48ca
VZ
19069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19070 (eval $ac_try) 2>&5
19071 ac_status=$?
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; }; then
19074 ac_cv_cxx_static_cast=yes
19075else
19076 echo "$as_me: failed program was:" >&5
19077sed 's/^/| /' conftest.$ac_ext >&5
19078
19079ac_cv_cxx_static_cast=no
19080fi
243f8ae5 19081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
ecfd48ca
VZ
19082 ac_ext=c
19083ac_cpp='$CPP $CPPFLAGS'
19084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19086ac_compiler_gnu=$ac_cv_c_compiler_gnu
19087
19088
19089fi
19090echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
19091echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
19092if test "$ac_cv_cxx_static_cast" = yes; then
19093
19094cat >>confdefs.h <<\_ACEOF
19095#define HAVE_STATIC_CAST
19096_ACEOF
19097
19098fi
19099
521196a2 19100
e87b7833
MB
19101if test "$wxUSE_STL" = "yes"; then
19102 ac_ext=cc
19103ac_cpp='$CXXCPP $CPPFLAGS'
19104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19107
19108
19109 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
19110echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
19111 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
19112/* confdefs.h. */
19113_ACEOF
19114cat confdefs.h >>conftest.$ac_ext
19115cat >>conftest.$ac_ext <<_ACEOF
19116/* end confdefs.h. */
19117#include <string>
19118 #include <functional>
19119 #include <algorithm>
19120 #include <vector>
19121 #include <list>
19122int
19123main ()
19124{
19125std::vector<int> moo;
19126 std::list<int> foo;
19127 std::vector<int>::iterator it =
19128 std::find_if(moo.begin(), moo.end(),
19129 std::bind2nd(std::less<int>(), 3));
19130 ;
19131 return 0;
19132}
19133_ACEOF
19134rm -f conftest.$ac_objext
19135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 19136 (eval $ac_compile) 2>conftest.er1
e87b7833 19137 ac_status=$?
243f8ae5
VS
19138 grep -v '^ *+' conftest.er1 >conftest.err
19139 rm -f conftest.er1
19140 cat conftest.err >&5
e87b7833
MB
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
243f8ae5
VS
19143 { ac_try='test -z "$ac_cxx_werror_flag"
19144 || test ! -s conftest.err'
19145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146 (eval $ac_try) 2>&5
19147 ac_status=$?
19148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149 (exit $ac_status); }; } &&
19150 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
19151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19152 (eval $ac_try) 2>&5
19153 ac_status=$?
19154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155 (exit $ac_status); }; }; then
19156 echo "$as_me:$LINENO: result: yes" >&5
19157echo "${ECHO_T}yes" >&6
19158else
19159 echo "$as_me: failed program was:" >&5
19160sed 's/^/| /' conftest.$ac_ext >&5
19161
19162echo "$as_me:$LINENO: result: no" >&5
19163echo "${ECHO_T}no" >&6
19164 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
19165echo "$as_me: error: Basic STL functionality missing" >&2;}
19166 { (exit 1); exit 1; }; }
19167fi
243f8ae5 19168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
19169
19170 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
19171echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
19172 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
19173/* confdefs.h. */
19174_ACEOF
19175cat confdefs.h >>conftest.$ac_ext
19176cat >>conftest.$ac_ext <<_ACEOF
19177/* end confdefs.h. */
19178#include <string>
19179int
19180main ()
19181{
19182std::wstring foo;
19183 ;
19184 return 0;
19185}
19186_ACEOF
19187rm -f conftest.$ac_objext
19188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 19189 (eval $ac_compile) 2>conftest.er1
e87b7833 19190 ac_status=$?
243f8ae5
VS
19191 grep -v '^ *+' conftest.er1 >conftest.err
19192 rm -f conftest.er1
19193 cat conftest.err >&5
e87b7833
MB
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); } &&
243f8ae5
VS
19196 { ac_try='test -z "$ac_cxx_werror_flag"
19197 || test ! -s conftest.err'
19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19199 (eval $ac_try) 2>&5
19200 ac_status=$?
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
19204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19205 (eval $ac_try) 2>&5
19206 ac_status=$?
19207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19208 (exit $ac_status); }; }; then
19209 echo "$as_me:$LINENO: result: yes" >&5
19210echo "${ECHO_T}yes" >&6
19211 cat >>confdefs.h <<\_ACEOF
19212#define HAVE_STD_WSTRING 1
19213_ACEOF
19214
19215else
19216 echo "$as_me: failed program was:" >&5
19217sed 's/^/| /' conftest.$ac_ext >&5
19218
19219echo "$as_me:$LINENO: result: no" >&5
19220echo "${ECHO_T}no" >&6
19221fi
243f8ae5 19222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
19223
19224 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
19225echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
19226 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
19227/* confdefs.h. */
19228_ACEOF
19229cat confdefs.h >>conftest.$ac_ext
19230cat >>conftest.$ac_ext <<_ACEOF
19231/* end confdefs.h. */
19232#include <string>
19233int
19234main ()
19235{
19236std::string foo, bar;
19237 foo.compare(bar);
19238 foo.compare(1, 1, bar);
19239 foo.compare(1, 1, bar, 1, 1);
19240 foo.compare("");
19241 foo.compare(1, 1, "");
19242 foo.compare(1, 1, "", 2);
19243 ;
19244 return 0;
19245}
19246_ACEOF
19247rm -f conftest.$ac_objext
19248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 19249 (eval $ac_compile) 2>conftest.er1
e87b7833 19250 ac_status=$?
243f8ae5
VS
19251 grep -v '^ *+' conftest.er1 >conftest.err
19252 rm -f conftest.er1
19253 cat conftest.err >&5
e87b7833
MB
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); } &&
243f8ae5
VS
19256 { ac_try='test -z "$ac_cxx_werror_flag"
19257 || test ! -s conftest.err'
19258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; } &&
19263 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
19264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19265 (eval $ac_try) 2>&5
19266 ac_status=$?
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); }; }; then
19269 echo "$as_me:$LINENO: result: yes" >&5
19270echo "${ECHO_T}yes" >&6
19271 cat >>confdefs.h <<\_ACEOF
19272#define HAVE_STD_STRING_COMPARE 1
19273_ACEOF
19274
19275else
19276 echo "$as_me: failed program was:" >&5
19277sed 's/^/| /' conftest.$ac_ext >&5
19278
19279echo "$as_me:$LINENO: result: no" >&5
19280echo "${ECHO_T}no" >&6
19281fi
243f8ae5 19282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
19283
19284 ac_ext=c
19285ac_cpp='$CPP $CPPFLAGS'
19286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19288ac_compiler_gnu=$ac_cv_c_compiler_gnu
19289
19290fi
19291
8284b0c5 19292
21d1c967
GD
19293SEARCH_INCLUDE="\
19294 /usr/local/include \
19295 \
21d1c967 19296 /usr/Motif-2.1/include \
789c5f4a 19297 /usr/Motif-1.2/include \
21d1c967
GD
19298 /usr/include/Motif1.2 \
19299 /opt/xpm/include/X11 \
19300 /opt/GBxpm/include/ \
19301 /opt/GBxpm/X11/include/ \
19302 \
21d1c967
GD
19303 /usr/dt/include \
19304 /usr/openwin/include \
19305 \
19306 /usr/include/Xm \
19307 \
19308 /usr/X11R6/include \
19309 /usr/X11R6.4/include \
19310 /usr/X11R5/include \
19311 /usr/X11R4/include \
19312 \
19313 /usr/include/X11R6 \
19314 /usr/include/X11R5 \
19315 /usr/include/X11R4 \
19316 \
19317 /usr/local/X11R6/include \
19318 /usr/local/X11R5/include \
19319 /usr/local/X11R4/include \
19320 \
19321 /usr/local/include/X11R6 \
19322 /usr/local/include/X11R5 \
19323 /usr/local/include/X11R4 \
19324 \
19325 /usr/X11/include \
19326 /usr/include/X11 \
19327 /usr/local/X11/include \
19328 /usr/local/include/X11 \
19329 \
19330 /usr/X386/include \
19331 /usr/x386/include \
19332 /usr/XFree86/include/X11 \
19333 \
19334 X:/XFree86/include \
19335 X:/XFree86/include/X11 \
19336 \
19337 /usr/include/gtk \
19338 /usr/local/include/gtk \
19339 /usr/include/glib \
19340 /usr/local/include/glib \
19341 \
19342 /usr/include/qt \
19343 /usr/local/include/qt \
19344 \
19345 /usr/include/windows \
19346 /usr/include/wine \
19347 /usr/local/include/wine \
19348 \
19349 /usr/unsupported/include \
19350 /usr/athena/include \
19351 /usr/local/x11r5/include \
19352 /usr/lpp/Xamples/include \
19353 \
2b5f62a0 19354 /usr/openwin/share/include"
21d1c967 19355
b62e750d 19356SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
21d1c967 19357
8284b0c5 19358
e6cc62c6 19359cat >confcache <<\_ACEOF
21d1c967
GD
19360# This file is a shell script that caches the results of configure
19361# tests run on this system so they can be shared between configure
e6cc62c6
VS
19362# scripts and configure runs, see configure's option --config-cache.
19363# It is not useful on other systems. If it contains results you don't
19364# want to keep, you may remove or edit it.
21d1c967 19365#
e6cc62c6
VS
19366# config.status only pays attention to the cache file if you give it
19367# the --recheck option to rerun configure.
21d1c967 19368#
e6cc62c6
VS
19369# `ac_cv_env_foo' variables (set or unset) will be overridden when
19370# loading this file, other *unset* `ac_cv_foo' will be assigned the
19371# following values.
19372
19373_ACEOF
19374
21d1c967
GD
19375# The following way of writing the cache mishandles newlines in values,
19376# but we know of no workaround that is simple, portable, and efficient.
19377# So, don't put newlines in cache variables' values.
19378# Ultrix sh set writes to stderr and can't be redirected directly,
19379# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
19380{
19381 (set) 2>&1 |
19382 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19383 *ac_space=\ *)
19384 # `set' does not quote correctly, so add quotes (double-quote
19385 # substitution turns \\\\ into \\, and sed turns \\ into \).
19386 sed -n \
243f8ae5
VS
19387 "s/'/'\\\\''/g;
19388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
19389 ;;
19390 *)
19391 # `set' quotes correctly as required by POSIX, so do not add quotes.
19392 sed -n \
243f8ae5 19393 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
19394 ;;
19395 esac;
19396} |
19397 sed '
19398 t clear
19399 : clear
19400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19401 t end
19402 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19403 : end' >>confcache
19404if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 19405 if test -w $cache_file; then
e6cc62c6
VS
19406 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19407 cat confcache >$cache_file
21d1c967
GD
19408 else
19409 echo "not updating unwritable cache $cache_file"
19410 fi
ab9b9eab 19411fi
21d1c967 19412rm -f confcache
ab9b9eab 19413
fe0895cf 19414if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
19415 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
19416echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
19417if test "${wx_cv_lib_glibc21+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419else
19420
19421 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19422/* confdefs.h. */
19423_ACEOF
19424cat confdefs.h >>conftest.$ac_ext
19425cat >>conftest.$ac_ext <<_ACEOF
19426/* end confdefs.h. */
21d1c967 19427#include <features.h>
e6cc62c6
VS
19428int
19429main ()
19430{
ab9b9eab 19431
21d1c967
GD
19432 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
19433 #error not glibc2.1
19434 #endif
e6cc62c6
VS
19435
19436 ;
19437 return 0;
19438}
19439_ACEOF
19440rm -f conftest.$ac_objext
19441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 19442 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19443 ac_status=$?
243f8ae5
VS
19444 grep -v '^ *+' conftest.er1 >conftest.err
19445 rm -f conftest.er1
19446 cat conftest.err >&5
e6cc62c6
VS
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } &&
243f8ae5
VS
19449 { ac_try='test -z "$ac_c_werror_flag"
19450 || test ! -s conftest.err'
19451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19452 (eval $ac_try) 2>&5
19453 ac_status=$?
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }; } &&
19456 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19458 (eval $ac_try) 2>&5
19459 ac_status=$?
19460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19461 (exit $ac_status); }; }; then
19462
21d1c967 19463 wx_cv_lib_glibc21=yes
e6cc62c6 19464
698dcdb6 19465else
e6cc62c6
VS
19466 echo "$as_me: failed program was:" >&5
19467sed 's/^/| /' conftest.$ac_ext >&5
19468
19469
21d1c967 19470 wx_cv_lib_glibc21=no
e6cc62c6
VS
19471
19472
247f5006 19473fi
243f8ae5 19474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 19475
e6cc62c6
VS
19476fi
19477echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
19478echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 19479 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 19480 cat >>confdefs.h <<\_ACEOF
21d1c967 19481#define wxHAVE_GLIBC2 1
e6cc62c6 19482_ACEOF
1e487827 19483
90dd450c 19484 fi
ab9b9eab
VZ
19485fi
19486
5c0a20c3
VZ
19487if test "x$wx_cv_lib_glibc21" = "xyes"; then
19488 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 19489 cat >>confdefs.h <<\_ACEOF
5c0a20c3 19490#define _GNU_SOURCE 1
e6cc62c6 19491_ACEOF
5c0a20c3
VZ
19492
19493 fi
19494fi
19495
8284b0c5
MB
19496
19497
21d1c967 19498if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 19499 cat >>confdefs.h <<\_ACEOF
21d1c967 19500#define wxUSE_REGEX 1
e6cc62c6 19501_ACEOF
698dcdb6 19502
8284b0c5 19503
30f2fa6c 19504 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
4996f261
VS
19505 { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
19506echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
30f2fa6c
VS
19507 wxUSE_REGEX=builtin
19508 fi
19509
21d1c967 19510 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
19511 if test "${ac_cv_header_regex_h+set}" = set; then
19512 echo "$as_me:$LINENO: checking for regex.h" >&5
19513echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19514if test "${ac_cv_header_regex_h+set}" = set; then
19515 echo $ECHO_N "(cached) $ECHO_C" >&6
19516fi
19517echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19518echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19519else
19520 # Is the header compilable?
19521echo "$as_me:$LINENO: checking regex.h usability" >&5
19522echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19523cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19524/* confdefs.h. */
19525_ACEOF
19526cat confdefs.h >>conftest.$ac_ext
19527cat >>conftest.$ac_ext <<_ACEOF
19528/* end confdefs.h. */
19529$ac_includes_default
247f5006 19530#include <regex.h>
e6cc62c6
VS
19531_ACEOF
19532rm -f conftest.$ac_objext
19533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 19534 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19535 ac_status=$?
243f8ae5
VS
19536 grep -v '^ *+' conftest.er1 >conftest.err
19537 rm -f conftest.er1
19538 cat conftest.err >&5
e6cc62c6
VS
19539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19540 (exit $ac_status); } &&
243f8ae5
VS
19541 { ac_try='test -z "$ac_c_werror_flag"
19542 || test ! -s conftest.err'
19543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19544 (eval $ac_try) 2>&5
19545 ac_status=$?
19546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547 (exit $ac_status); }; } &&
19548 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; }; then
19554 ac_header_compiler=yes
19555else
19556 echo "$as_me: failed program was:" >&5
19557sed 's/^/| /' conftest.$ac_ext >&5
19558
19559ac_header_compiler=no
19560fi
243f8ae5 19561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19562echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19563echo "${ECHO_T}$ac_header_compiler" >&6
19564
19565# Is the header present?
19566echo "$as_me:$LINENO: checking regex.h presence" >&5
19567echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19568cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19569/* confdefs.h. */
19570_ACEOF
19571cat confdefs.h >>conftest.$ac_ext
19572cat >>conftest.$ac_ext <<_ACEOF
19573/* end confdefs.h. */
19574#include <regex.h>
19575_ACEOF
19576if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19578 ac_status=$?
19579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } >/dev/null; then
19584 if test -s conftest.err; then
19585 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 19586 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19587 else
19588 ac_cpp_err=
19589 fi
19590else
19591 ac_cpp_err=yes
19592fi
19593if test -z "$ac_cpp_err"; then
19594 ac_header_preproc=yes
19595else
19596 echo "$as_me: failed program was:" >&5
19597sed 's/^/| /' conftest.$ac_ext >&5
19598
19599 ac_header_preproc=no
19600fi
19601rm -f conftest.err conftest.$ac_ext
19602echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19603echo "${ECHO_T}$ac_header_preproc" >&6
19604
19605# So? What about this header?
243f8ae5
VS
19606case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19607 yes:no: )
e6cc62c6
VS
19608 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19609echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
19610 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19611echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19612 ac_header_preproc=yes
e6cc62c6 19613 ;;
243f8ae5 19614 no:yes:* )
e6cc62c6
VS
19615 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19616echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
243f8ae5
VS
19617 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19618echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19619 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19620echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19621 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19622echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19623 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19624echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
19625 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19626echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19627 (
19628 cat <<\_ASBOX
243f8ae5
VS
19629## ----------------------------------------- ##
19630## Report this to wx-dev@lists.wxwindows.org ##
19631## ----------------------------------------- ##
e6cc62c6
VS
19632_ASBOX
19633 ) |
19634 sed "s/^/$as_me: WARNING: /" >&2
19635 ;;
19636esac
19637echo "$as_me:$LINENO: checking for regex.h" >&5
19638echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19639if test "${ac_cv_header_regex_h+set}" = set; then
19640 echo $ECHO_N "(cached) $ECHO_C" >&6
19641else
19642 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 19643fi
e6cc62c6
VS
19644echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19645echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19646
698dcdb6 19647fi
e6cc62c6
VS
19648if test $ac_cv_header_regex_h = yes; then
19649
19650for ac_func in regcomp
21d1c967 19651do
e6cc62c6
VS
19652as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19653echo "$as_me:$LINENO: checking for $ac_func" >&5
19654echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19655if eval "test \"\${$as_ac_var+set}\" = set"; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657else
19658 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19659/* confdefs.h. */
19660_ACEOF
19661cat confdefs.h >>conftest.$ac_ext
19662cat >>conftest.$ac_ext <<_ACEOF
19663/* end confdefs.h. */
243f8ae5
VS
19664/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19666#define $ac_func innocuous_$ac_func
19667
a0b9e27f 19668/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
19669 which can conflict with char $ac_func (); below.
19670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19671 <limits.h> exists even on freestanding compilers. */
243f8ae5 19672
e6cc62c6
VS
19673#ifdef __STDC__
19674# include <limits.h>
19675#else
19676# include <assert.h>
19677#endif
243f8ae5
VS
19678
19679#undef $ac_func
19680
21d1c967 19681/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19682#ifdef __cplusplus
19683extern "C"
19684{
19685#endif
21d1c967 19686/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19687 builtin and then its argument prototype would still apply. */
19688char $ac_func ();
21d1c967
GD
19689/* The GNU C library defines this for functions which it implements
19690 to always fail with ENOSYS. Some functions are actually named
19691 something starting with __ and the normal name is an alias. */
19692#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19693choke me
19694#else
e6cc62c6
VS
19695char (*f) () = $ac_func;
19696#endif
19697#ifdef __cplusplus
19698}
21d1c967 19699#endif
90dd450c 19700
e6cc62c6
VS
19701int
19702main ()
19703{
19704return f != $ac_func;
19705 ;
19706 return 0;
19707}
19708_ACEOF
19709rm -f conftest.$ac_objext conftest$ac_exeext
19710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 19711 (eval $ac_link) 2>conftest.er1
e6cc62c6 19712 ac_status=$?
243f8ae5
VS
19713 grep -v '^ *+' conftest.er1 >conftest.err
19714 rm -f conftest.er1
19715 cat conftest.err >&5
e6cc62c6
VS
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); } &&
243f8ae5
VS
19718 { ac_try='test -z "$ac_c_werror_flag"
19719 || test ! -s conftest.err'
19720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19721 (eval $ac_try) 2>&5
19722 ac_status=$?
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); }; } &&
19725 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727 (eval $ac_try) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); }; }; then
19731 eval "$as_ac_var=yes"
19732else
19733 echo "$as_me: failed program was:" >&5
19734sed 's/^/| /' conftest.$ac_ext >&5
19735
19736eval "$as_ac_var=no"
19737fi
243f8ae5
VS
19738rm -f conftest.err conftest.$ac_objext \
19739 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19740fi
19741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19742echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19743if test `eval echo '${'$as_ac_var'}'` = yes; then
19744 cat >>confdefs.h <<_ACEOF
19745#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19746_ACEOF
5c6fa7d2 19747
698dcdb6 19748fi
21d1c967
GD
19749done
19750
ab9b9eab
VZ
19751fi
19752
8284b0c5 19753
e6cc62c6 19754
21d1c967
GD
19755 if test "x$ac_cv_func_regcomp" != "xyes"; then
19756 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
19757 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19758echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19759 { (exit 1); exit 1; }; }
21d1c967 19760 else
e6cc62c6
VS
19761 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19762echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
19763 wxUSE_REGEX=builtin
19764 fi
19765 else
19766 wxUSE_REGEX=sys
4996f261
VS
19767 cat >>confdefs.h <<\_ACEOF
19768#define WX_NO_REGEX_ADVANCED 1
19769_ACEOF
19770
21d1c967 19771 fi
ab9b9eab 19772 fi
21d1c967 19773fi
90dd450c 19774
8284b0c5 19775
21d1c967
GD
19776ZLIB_LINK=
19777if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 19778 cat >>confdefs.h <<\_ACEOF
21d1c967 19779#define wxUSE_ZLIB 1
e6cc62c6 19780_ACEOF
21d1c967 19781
8284b0c5 19782
21d1c967 19783 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
19784 if test "$USE_DARWIN" = 1; then
19785 system_zlib_h_ok="yes"
19786 else
e6cc62c6
VS
19787 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19788echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19789if test "${ac_cv_header_zlib_h+set}" = set; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
19791else
19792 if test "$cross_compiling" = yes; then
89e6bf6d 19793 unset ac_cv_header_zlib_h
e6cc62c6 19794
d643b80e 19795else
e6cc62c6 19796 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19797/* confdefs.h. */
19798_ACEOF
19799cat confdefs.h >>conftest.$ac_ext
19800cat >>conftest.$ac_ext <<_ACEOF
19801/* end confdefs.h. */
19802
ef33c576 19803 #include <zlib.h>
d775acfa 19804 #include <stdio.h>
d643b80e 19805
d775acfa
VZ
19806 int main()
19807 {
19808 FILE *f=fopen("conftestval", "w");
19809 if (!f) exit(1);
19810 fprintf(f, "%s",
19811 ZLIB_VERSION[0] == '1' &&
19812 (ZLIB_VERSION[2] > '1' ||
19813 (ZLIB_VERSION[2] == '1' &&
19814 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19815 exit(0);
19816 }
e6cc62c6
VS
19817
19818_ACEOF
19819rm -f conftest$ac_exeext
19820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19821 (eval $ac_link) 2>&5
19822 ac_status=$?
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826 (eval $ac_try) 2>&5
19827 ac_status=$?
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); }; }; then
d643b80e
VZ
19830 ac_cv_header_zlib_h=`cat conftestval`
19831else
e6cc62c6
VS
19832 echo "$as_me: program exited with status $ac_status" >&5
19833echo "$as_me: failed program was:" >&5
19834sed 's/^/| /' conftest.$ac_ext >&5
19835
19836( exit $ac_status )
19837ac_cv_header_zlib_h=no
d643b80e 19838fi
243f8ae5 19839rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
19840fi
19841
d643b80e 19842fi
e6cc62c6
VS
19843echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19844echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19845 if test "${ac_cv_header_zlib_h+set}" = set; then
19846 echo "$as_me:$LINENO: checking for zlib.h" >&5
19847echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19848if test "${ac_cv_header_zlib_h+set}" = set; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19850fi
19851echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19852echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 19853else
e6cc62c6
VS
19854 # Is the header compilable?
19855echo "$as_me:$LINENO: checking zlib.h usability" >&5
19856echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19857cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19858/* confdefs.h. */
19859_ACEOF
19860cat confdefs.h >>conftest.$ac_ext
19861cat >>conftest.$ac_ext <<_ACEOF
19862/* end confdefs.h. */
19863$ac_includes_default
89e6bf6d 19864#include <zlib.h>
e6cc62c6
VS
19865_ACEOF
19866rm -f conftest.$ac_objext
19867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 19868 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19869 ac_status=$?
243f8ae5
VS
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
e6cc62c6
VS
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
243f8ae5
VS
19875 { ac_try='test -z "$ac_c_werror_flag"
19876 || test ! -s conftest.err'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_header_compiler=yes
19889else
19890 echo "$as_me: failed program was:" >&5
19891sed 's/^/| /' conftest.$ac_ext >&5
19892
19893ac_header_compiler=no
19894fi
243f8ae5 19895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19897echo "${ECHO_T}$ac_header_compiler" >&6
19898
19899# Is the header present?
19900echo "$as_me:$LINENO: checking zlib.h presence" >&5
19901echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19902cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19903/* confdefs.h. */
19904_ACEOF
19905cat confdefs.h >>conftest.$ac_ext
19906cat >>conftest.$ac_ext <<_ACEOF
19907/* end confdefs.h. */
19908#include <zlib.h>
19909_ACEOF
19910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19912 ac_status=$?
19913 grep -v '^ *+' conftest.er1 >conftest.err
19914 rm -f conftest.er1
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } >/dev/null; then
19918 if test -s conftest.err; then
19919 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 19920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19921 else
19922 ac_cpp_err=
19923 fi
19924else
19925 ac_cpp_err=yes
19926fi
19927if test -z "$ac_cpp_err"; then
19928 ac_header_preproc=yes
19929else
19930 echo "$as_me: failed program was:" >&5
19931sed 's/^/| /' conftest.$ac_ext >&5
19932
19933 ac_header_preproc=no
19934fi
19935rm -f conftest.err conftest.$ac_ext
19936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19937echo "${ECHO_T}$ac_header_preproc" >&6
19938
19939# So? What about this header?
243f8ae5
VS
19940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19941 yes:no: )
e6cc62c6
VS
19942 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19943echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
19944 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19945echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19946 ac_header_preproc=yes
e6cc62c6 19947 ;;
243f8ae5 19948 no:yes:* )
e6cc62c6
VS
19949 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19950echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
243f8ae5
VS
19951 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19952echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19954echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19956echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19957 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19958echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
19959 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19960echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19961 (
19962 cat <<\_ASBOX
243f8ae5
VS
19963## ----------------------------------------- ##
19964## Report this to wx-dev@lists.wxwindows.org ##
19965## ----------------------------------------- ##
e6cc62c6
VS
19966_ASBOX
19967 ) |
19968 sed "s/^/$as_me: WARNING: /" >&2
19969 ;;
19970esac
19971echo "$as_me:$LINENO: checking for zlib.h" >&5
19972echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19973if test "${ac_cv_header_zlib_h+set}" = set; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19975else
e6cc62c6
VS
19976 ac_cv_header_zlib_h=$ac_header_preproc
19977fi
19978echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19979echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19980
89e6bf6d
VZ
19981fi
19982
d643b80e 19983
e6cc62c6 19984
d775acfa
VZ
19985 system_zlib_h_ok=$ac_cv_header_zlib_h
19986 fi
19987
19988 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
19989 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19990echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19991if test "${ac_cv_lib_z_deflate+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19993else
e6cc62c6 19994 ac_check_lib_save_LIBS=$LIBS
21d1c967 19995LIBS="-lz $LIBS"
e6cc62c6 19996cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19997/* confdefs.h. */
19998_ACEOF
19999cat confdefs.h >>conftest.$ac_ext
20000cat >>conftest.$ac_ext <<_ACEOF
20001/* end confdefs.h. */
20002
21d1c967 20003/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20004#ifdef __cplusplus
20005extern "C"
20006#endif
21d1c967 20007/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20008 builtin and then its argument prototype would still apply. */
20009char deflate ();
20010int
20011main ()
20012{
20013deflate ();
20014 ;
20015 return 0;
20016}
20017_ACEOF
20018rm -f conftest.$ac_objext conftest$ac_exeext
20019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 20020 (eval $ac_link) 2>conftest.er1
e6cc62c6 20021 ac_status=$?
243f8ae5
VS
20022 grep -v '^ *+' conftest.er1 >conftest.err
20023 rm -f conftest.er1
20024 cat conftest.err >&5
e6cc62c6
VS
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); } &&
243f8ae5
VS
20027 { ac_try='test -z "$ac_c_werror_flag"
20028 || test ! -s conftest.err'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20031 ac_status=$?
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; } &&
20034 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036 (eval $ac_try) 2>&5
20037 ac_status=$?
20038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); }; }; then
20040 ac_cv_lib_z_deflate=yes
20041else
20042 echo "$as_me: failed program was:" >&5
20043sed 's/^/| /' conftest.$ac_ext >&5
20044
20045ac_cv_lib_z_deflate=no
20046fi
243f8ae5
VS
20047rm -f conftest.err conftest.$ac_objext \
20048 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20049LIBS=$ac_check_lib_save_LIBS
20050fi
20051echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20052echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20053if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 20054 ZLIB_LINK=" -lz"
a0b9e27f 20055fi
698dcdb6 20056
d643b80e 20057 fi
247f5006 20058
21d1c967
GD
20059 if test "x$ZLIB_LINK" = "x" ; then
20060 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
20061 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
20062echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
20063 { (exit 1); exit 1; }; }
21d1c967 20064 else
e6cc62c6
VS
20065 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
20066echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
20067 wxUSE_ZLIB=builtin
20068 fi
20069 else
20070 wxUSE_ZLIB=sys
20071 fi
20072 fi
ab9b9eab
VZ
20073fi
20074
8284b0c5 20075
21d1c967
GD
20076PNG_LINK=
20077if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 20078 cat >>confdefs.h <<\_ACEOF
21d1c967 20079#define wxUSE_LIBPNG 1
e6cc62c6 20080_ACEOF
90dd450c 20081
8284b0c5 20082
21d1c967 20083 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
20084 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
20085echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
20086 wxUSE_LIBPNG=sys
20087 fi
90dd450c 20088
21d1c967 20089 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
20090 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
20091echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
20092 wxUSE_LIBPNG=builtin
20093 fi
20094
20095 if test "$wxUSE_MGL" != 1 ; then
20096 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
20097 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
20098echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
20099if test "${ac_cv_header_png_h+set}" = set; then
20100 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
20101else
20102 if test "$cross_compiling" = yes; then
89e6bf6d 20103 unset ac_cv_header_png_h
e6cc62c6 20104
5d3f766d 20105else
e6cc62c6 20106 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20107/* confdefs.h. */
20108_ACEOF
20109cat confdefs.h >>conftest.$ac_ext
20110cat >>conftest.$ac_ext <<_ACEOF
20111/* end confdefs.h. */
20112
ef33c576 20113 #include <png.h>
5d3f766d
VZ
20114 #include <stdio.h>
20115
20116 int main()
20117 {
20118 FILE *f=fopen("conftestval", "w");
20119 if (!f) exit(1);
20120 fprintf(f, "%s",
20121 PNG_LIBPNG_VER > 90 ? "yes" : "no");
20122 exit(0);
20123 }
e6cc62c6
VS
20124
20125_ACEOF
20126rm -f conftest$ac_exeext
20127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20128 (eval $ac_link) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
5d3f766d
VZ
20137 ac_cv_header_png_h=`cat conftestval`
20138else
e6cc62c6
VS
20139 echo "$as_me: program exited with status $ac_status" >&5
20140echo "$as_me: failed program was:" >&5
20141sed 's/^/| /' conftest.$ac_ext >&5
20142
20143( exit $ac_status )
20144ac_cv_header_png_h=no
5d3f766d 20145fi
243f8ae5 20146rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
20147fi
20148
5d3f766d 20149fi
e6cc62c6
VS
20150echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20151echo "${ECHO_T}$ac_cv_header_png_h" >&6
20152 if test "${ac_cv_header_png_h+set}" = set; then
20153 echo "$as_me:$LINENO: checking for png.h" >&5
20154echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20155if test "${ac_cv_header_png_h+set}" = set; then
20156 echo $ECHO_N "(cached) $ECHO_C" >&6
20157fi
20158echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20159echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 20160else
e6cc62c6
VS
20161 # Is the header compilable?
20162echo "$as_me:$LINENO: checking png.h usability" >&5
20163echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
20164cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20165/* confdefs.h. */
20166_ACEOF
20167cat confdefs.h >>conftest.$ac_ext
20168cat >>conftest.$ac_ext <<_ACEOF
20169/* end confdefs.h. */
20170$ac_includes_default
89e6bf6d 20171#include <png.h>
e6cc62c6
VS
20172_ACEOF
20173rm -f conftest.$ac_objext
20174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 20175 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20176 ac_status=$?
243f8ae5
VS
20177 grep -v '^ *+' conftest.er1 >conftest.err
20178 rm -f conftest.er1
20179 cat conftest.err >&5
e6cc62c6
VS
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); } &&
243f8ae5
VS
20182 { ac_try='test -z "$ac_c_werror_flag"
20183 || test ! -s conftest.err'
20184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20185 (eval $ac_try) 2>&5
20186 ac_status=$?
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); }; } &&
20189 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20192 ac_status=$?
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; }; then
20195 ac_header_compiler=yes
20196else
20197 echo "$as_me: failed program was:" >&5
20198sed 's/^/| /' conftest.$ac_ext >&5
20199
20200ac_header_compiler=no
20201fi
243f8ae5 20202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20203echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20204echo "${ECHO_T}$ac_header_compiler" >&6
20205
20206# Is the header present?
20207echo "$as_me:$LINENO: checking png.h presence" >&5
20208echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
20209cat >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#include <png.h>
20216_ACEOF
20217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20219 ac_status=$?
20220 grep -v '^ *+' conftest.er1 >conftest.err
20221 rm -f conftest.er1
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224 (exit $ac_status); } >/dev/null; then
20225 if test -s conftest.err; then
20226 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 20227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20228 else
20229 ac_cpp_err=
20230 fi
20231else
20232 ac_cpp_err=yes
20233fi
20234if test -z "$ac_cpp_err"; then
20235 ac_header_preproc=yes
20236else
20237 echo "$as_me: failed program was:" >&5
20238sed 's/^/| /' conftest.$ac_ext >&5
20239
20240 ac_header_preproc=no
20241fi
20242rm -f conftest.err conftest.$ac_ext
20243echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20244echo "${ECHO_T}$ac_header_preproc" >&6
20245
20246# So? What about this header?
243f8ae5
VS
20247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20248 yes:no: )
e6cc62c6
VS
20249 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
20250echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
20251 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
20252echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
20253 ac_header_preproc=yes
e6cc62c6 20254 ;;
243f8ae5 20255 no:yes:* )
e6cc62c6
VS
20256 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
20257echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
243f8ae5
VS
20258 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
20259echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
20260 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
20261echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
20262 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
20263echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20264 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
20265echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
20266 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
20267echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20268 (
20269 cat <<\_ASBOX
243f8ae5
VS
20270## ----------------------------------------- ##
20271## Report this to wx-dev@lists.wxwindows.org ##
20272## ----------------------------------------- ##
e6cc62c6
VS
20273_ASBOX
20274 ) |
20275 sed "s/^/$as_me: WARNING: /" >&2
20276 ;;
20277esac
20278echo "$as_me:$LINENO: checking for png.h" >&5
20279echo $ECHO_N "checking for png.h... $ECHO_C" >&6
20280if test "${ac_cv_header_png_h+set}" = set; then
20281 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 20282else
e6cc62c6
VS
20283 ac_cv_header_png_h=$ac_header_preproc
20284fi
20285echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
20286echo "${ECHO_T}$ac_cv_header_png_h" >&6
20287
89e6bf6d
VZ
20288fi
20289
5d3f766d 20290
e6cc62c6 20291
5d3f766d 20292 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
20293 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
20294echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
20295if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20297else
e6cc62c6 20298 ac_check_lib_save_LIBS=$LIBS
21d1c967 20299LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 20300cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20301/* confdefs.h. */
20302_ACEOF
20303cat confdefs.h >>conftest.$ac_ext
20304cat >>conftest.$ac_ext <<_ACEOF
20305/* end confdefs.h. */
20306
21d1c967 20307/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20308#ifdef __cplusplus
20309extern "C"
20310#endif
21d1c967 20311/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20312 builtin and then its argument prototype would still apply. */
20313char png_check_sig ();
20314int
20315main ()
20316{
20317png_check_sig ();
20318 ;
20319 return 0;
20320}
20321_ACEOF
20322rm -f conftest.$ac_objext conftest$ac_exeext
20323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 20324 (eval $ac_link) 2>conftest.er1
e6cc62c6 20325 ac_status=$?
243f8ae5
VS
20326 grep -v '^ *+' conftest.er1 >conftest.err
20327 rm -f conftest.er1
20328 cat conftest.err >&5
e6cc62c6
VS
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } &&
243f8ae5
VS
20331 { ac_try='test -z "$ac_c_werror_flag"
20332 || test ! -s conftest.err'
20333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334 (eval $ac_try) 2>&5
20335 ac_status=$?
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); }; } &&
20338 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20340 (eval $ac_try) 2>&5
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); }; }; then
20344 ac_cv_lib_png_png_check_sig=yes
20345else
20346 echo "$as_me: failed program was:" >&5
20347sed 's/^/| /' conftest.$ac_ext >&5
20348
20349ac_cv_lib_png_png_check_sig=no
20350fi
243f8ae5
VS
20351rm -f conftest.err conftest.$ac_objext \
20352 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20353LIBS=$ac_check_lib_save_LIBS
20354fi
20355echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
20356echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
20357if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 20358 PNG_LINK=" -lpng"
a0b9e27f 20359fi
90dd450c 20360
5d3f766d 20361 fi
247f5006 20362
21d1c967
GD
20363 if test "x$PNG_LINK" = "x" ; then
20364 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
20365 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
20366echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
20367 { (exit 1); exit 1; }; }
21d1c967 20368 else
e6cc62c6
VS
20369 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
20370echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
20371 wxUSE_LIBPNG=builtin
20372 fi
20373 else
2b5f62a0 20374 wxUSE_LIBPNG=sys
21d1c967
GD
20375 fi
20376 fi
20377 fi
90dd450c 20378
21d1c967 20379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
20380fi
20381
8284b0c5 20382
21d1c967
GD
20383JPEG_LINK=
20384if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 20385 cat >>confdefs.h <<\_ACEOF
21d1c967 20386#define wxUSE_LIBJPEG 1
e6cc62c6 20387_ACEOF
90dd450c 20388
8284b0c5 20389
21d1c967 20390 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
20391 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
20392echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
20393 wxUSE_LIBJPEG=sys
20394 fi
90dd450c 20395
21d1c967
GD
20396 if test "$wxUSE_MGL" != 1 ; then
20397 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
20398 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
20399echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
20400 if test "${ac_cv_header_jpeglib_h+set}" = set; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20402else
20403 cat >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. */
90dd450c 20409
21d1c967
GD
20410 #undef HAVE_STDLIB_H
20411 #include <stdio.h>
20412 #include <jpeglib.h>
90dd450c 20413
e6cc62c6
VS
20414int
20415main ()
20416{
20417
20418
20419 ;
20420 return 0;
20421}
20422_ACEOF
20423rm -f conftest.$ac_objext
20424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 20425 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20426 ac_status=$?
243f8ae5
VS
20427 grep -v '^ *+' conftest.er1 >conftest.err
20428 rm -f conftest.er1
20429 cat conftest.err >&5
e6cc62c6
VS
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); } &&
243f8ae5
VS
20432 { ac_try='test -z "$ac_c_werror_flag"
20433 || test ! -s conftest.err'
20434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20435 (eval $ac_try) 2>&5
20436 ac_status=$?
20437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438 (exit $ac_status); }; } &&
20439 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20442 ac_status=$?
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; }; then
21d1c967 20445 ac_cv_header_jpeglib_h=yes
90dd450c 20446else
e6cc62c6
VS
20447 echo "$as_me: failed program was:" >&5
20448sed 's/^/| /' conftest.$ac_ext >&5
20449
20450ac_cv_header_jpeglib_h=no
20451
90dd450c 20452fi
243f8ae5 20453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 20454
90dd450c
VZ
20455fi
20456
e6cc62c6
VS
20457 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
20458echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 20459
21d1c967 20460 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
20461 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
20462echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
20463if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
20464 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20465else
e6cc62c6 20466 ac_check_lib_save_LIBS=$LIBS
21d1c967 20467LIBS="-ljpeg $LIBS"
e6cc62c6 20468cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20469/* confdefs.h. */
20470_ACEOF
20471cat confdefs.h >>conftest.$ac_ext
20472cat >>conftest.$ac_ext <<_ACEOF
20473/* end confdefs.h. */
20474
21d1c967 20475/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20476#ifdef __cplusplus
20477extern "C"
20478#endif
21d1c967 20479/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20480 builtin and then its argument prototype would still apply. */
20481char jpeg_read_header ();
20482int
20483main ()
20484{
20485jpeg_read_header ();
20486 ;
20487 return 0;
20488}
20489_ACEOF
20490rm -f conftest.$ac_objext conftest$ac_exeext
20491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 20492 (eval $ac_link) 2>conftest.er1
e6cc62c6 20493 ac_status=$?
243f8ae5
VS
20494 grep -v '^ *+' conftest.er1 >conftest.err
20495 rm -f conftest.er1
20496 cat conftest.err >&5
e6cc62c6
VS
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); } &&
243f8ae5
VS
20499 { ac_try='test -z "$ac_c_werror_flag"
20500 || test ! -s conftest.err'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; } &&
20506 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20508 (eval $ac_try) 2>&5
20509 ac_status=$?
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); }; }; then
20512 ac_cv_lib_jpeg_jpeg_read_header=yes
20513else
20514 echo "$as_me: failed program was:" >&5
20515sed 's/^/| /' conftest.$ac_ext >&5
20516
20517ac_cv_lib_jpeg_jpeg_read_header=no
20518fi
243f8ae5
VS
20519rm -f conftest.err conftest.$ac_objext \
20520 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20521LIBS=$ac_check_lib_save_LIBS
20522fi
20523echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20524echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20525if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 20526 JPEG_LINK=" -ljpeg"
90dd450c
VZ
20527fi
20528
21d1c967 20529 fi
90dd450c 20530
21d1c967
GD
20531 if test "x$JPEG_LINK" = "x" ; then
20532 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
20533 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20534echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20535 { (exit 1); exit 1; }; }
21d1c967 20536 else
e6cc62c6
VS
20537 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20538echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
20539 wxUSE_LIBJPEG=builtin
20540 fi
20541 else
20542 wxUSE_LIBJPEG=sys
20543 fi
20544 fi
20545 fi
21d1c967 20546fi
90dd450c 20547
8284b0c5 20548
21d1c967 20549TIFF_LINK=
2b5f62a0 20550TIFF_PREREQ_LINKS=-lm
21d1c967 20551if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 20552 cat >>confdefs.h <<\_ACEOF
21d1c967 20553#define wxUSE_LIBTIFF 1
e6cc62c6 20554_ACEOF
21d1c967 20555
8284b0c5 20556
21d1c967 20557 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
20558 if test "$wxUSE_LIBJPEG" = "sys"; then
20559 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20560 fi
20561 if test "$wxUSE_ZLIB" = "sys"; then
20562 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20563 fi
e6cc62c6
VS
20564 if test "${ac_cv_header_tiffio_h+set}" = set; then
20565 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20566echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20567if test "${ac_cv_header_tiffio_h+set}" = set; then
20568 echo $ECHO_N "(cached) $ECHO_C" >&6
20569fi
20570echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20571echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20572else
20573 # Is the header compilable?
20574echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20575echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20576cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20577/* confdefs.h. */
20578_ACEOF
20579cat confdefs.h >>conftest.$ac_ext
20580cat >>conftest.$ac_ext <<_ACEOF
20581/* end confdefs.h. */
20582$ac_includes_default
247f5006 20583#include <tiffio.h>
e6cc62c6
VS
20584_ACEOF
20585rm -f conftest.$ac_objext
20586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 20587 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20588 ac_status=$?
243f8ae5
VS
20589 grep -v '^ *+' conftest.er1 >conftest.err
20590 rm -f conftest.er1
20591 cat conftest.err >&5
e6cc62c6
VS
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); } &&
243f8ae5
VS
20594 { ac_try='test -z "$ac_c_werror_flag"
20595 || test ! -s conftest.err'
20596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20597 (eval $ac_try) 2>&5
20598 ac_status=$?
20599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600 (exit $ac_status); }; } &&
20601 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20603 (eval $ac_try) 2>&5
20604 ac_status=$?
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); }; }; then
20607 ac_header_compiler=yes
20608else
20609 echo "$as_me: failed program was:" >&5
20610sed 's/^/| /' conftest.$ac_ext >&5
20611
20612ac_header_compiler=no
20613fi
243f8ae5 20614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20615echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20616echo "${ECHO_T}$ac_header_compiler" >&6
20617
20618# Is the header present?
20619echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20620echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20621cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20622/* confdefs.h. */
20623_ACEOF
20624cat confdefs.h >>conftest.$ac_ext
20625cat >>conftest.$ac_ext <<_ACEOF
20626/* end confdefs.h. */
20627#include <tiffio.h>
20628_ACEOF
20629if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20631 ac_status=$?
20632 grep -v '^ *+' conftest.er1 >conftest.err
20633 rm -f conftest.er1
20634 cat conftest.err >&5
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); } >/dev/null; then
20637 if test -s conftest.err; then
20638 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 20639 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20640 else
20641 ac_cpp_err=
20642 fi
20643else
20644 ac_cpp_err=yes
20645fi
20646if test -z "$ac_cpp_err"; then
20647 ac_header_preproc=yes
20648else
20649 echo "$as_me: failed program was:" >&5
20650sed 's/^/| /' conftest.$ac_ext >&5
20651
20652 ac_header_preproc=no
20653fi
20654rm -f conftest.err conftest.$ac_ext
20655echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20656echo "${ECHO_T}$ac_header_preproc" >&6
20657
20658# So? What about this header?
243f8ae5
VS
20659case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20660 yes:no: )
e6cc62c6
VS
20661 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20662echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
20663 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20664echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20665 ac_header_preproc=yes
e6cc62c6 20666 ;;
243f8ae5 20667 no:yes:* )
e6cc62c6
VS
20668 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20669echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
243f8ae5
VS
20670 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20671echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20672 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20673echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20674 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20675echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20676 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20677echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
20678 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20679echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20680 (
20681 cat <<\_ASBOX
243f8ae5
VS
20682## ----------------------------------------- ##
20683## Report this to wx-dev@lists.wxwindows.org ##
20684## ----------------------------------------- ##
e6cc62c6
VS
20685_ASBOX
20686 ) |
20687 sed "s/^/$as_me: WARNING: /" >&2
20688 ;;
20689esac
20690echo "$as_me:$LINENO: checking for tiffio.h" >&5
20691echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20692if test "${ac_cv_header_tiffio_h+set}" = set; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20694else
20695 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 20696fi
e6cc62c6
VS
20697echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20698echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20699
21d1c967 20700fi
e6cc62c6 20701if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
20702
20703 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
20704echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20705if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20706 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 20707else
e6cc62c6 20708 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 20709LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 20710cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20711/* confdefs.h. */
20712_ACEOF
20713cat confdefs.h >>conftest.$ac_ext
20714cat >>conftest.$ac_ext <<_ACEOF
20715/* end confdefs.h. */
20716
ab9b9eab 20717/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20718#ifdef __cplusplus
20719extern "C"
20720#endif
ab9b9eab 20721/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20722 builtin and then its argument prototype would still apply. */
20723char TIFFError ();
20724int
20725main ()
20726{
20727TIFFError ();
20728 ;
20729 return 0;
20730}
20731_ACEOF
20732rm -f conftest.$ac_objext conftest$ac_exeext
20733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 20734 (eval $ac_link) 2>conftest.er1
e6cc62c6 20735 ac_status=$?
243f8ae5
VS
20736 grep -v '^ *+' conftest.er1 >conftest.err
20737 rm -f conftest.er1
20738 cat conftest.err >&5
e6cc62c6
VS
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } &&
243f8ae5
VS
20741 { ac_try='test -z "$ac_c_werror_flag"
20742 || test ! -s conftest.err'
20743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20744 (eval $ac_try) 2>&5
20745 ac_status=$?
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); }; } &&
20748 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; }; then
20754 ac_cv_lib_tiff_TIFFError=yes
20755else
20756 echo "$as_me: failed program was:" >&5
20757sed 's/^/| /' conftest.$ac_ext >&5
20758
20759ac_cv_lib_tiff_TIFFError=no
20760fi
243f8ae5
VS
20761rm -f conftest.err conftest.$ac_objext \
20762 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20763LIBS=$ac_check_lib_save_LIBS
20764fi
20765echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20766echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20767if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 20768 TIFF_LINK=" -ltiff"
a0b9e27f 20769fi
cd6d6d5b 20770
e6cc62c6 20771
0e012a93 20772
a0b9e27f 20773fi
8284b0c5 20774
247f5006 20775
e6cc62c6 20776
21d1c967
GD
20777 if test "x$TIFF_LINK" = "x" ; then
20778 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
20779 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20780echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20781 { (exit 1); exit 1; }; }
90dd450c 20782 else
e6cc62c6
VS
20783 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20784echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 20785 wxUSE_LIBTIFF=builtin
d8356fa3 20786 fi
d8356fa3 20787 else
21d1c967 20788 wxUSE_LIBTIFF=sys
d8356fa3 20789 fi
21d1c967 20790 fi
21d1c967 20791fi
10f2d63a 20792
8284b0c5 20793
672abd7a 20794if test "$wxUSE_EXPAT" != "no"; then
e06468e8 20795 wxUSE_XML=yes
672abd7a
VS
20796 cat >>confdefs.h <<\_ACEOF
20797#define wxUSE_EXPAT 1
20798_ACEOF
20799
20800 cat >>confdefs.h <<\_ACEOF
20801#define wxUSE_XML 1
20802_ACEOF
20803
20804
20805 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20806 if test "${ac_cv_header_expat_h+set}" = set; then
20807 echo "$as_me:$LINENO: checking for expat.h" >&5
20808echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20809if test "${ac_cv_header_expat_h+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20811fi
20812echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20813echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20814else
20815 # Is the header compilable?
20816echo "$as_me:$LINENO: checking expat.h usability" >&5
20817echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20818cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20819/* confdefs.h. */
20820_ACEOF
20821cat confdefs.h >>conftest.$ac_ext
20822cat >>conftest.$ac_ext <<_ACEOF
20823/* end confdefs.h. */
20824$ac_includes_default
20825#include <expat.h>
20826_ACEOF
20827rm -f conftest.$ac_objext
20828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 20829 (eval $ac_compile) 2>conftest.er1
672abd7a 20830 ac_status=$?
243f8ae5
VS
20831 grep -v '^ *+' conftest.er1 >conftest.err
20832 rm -f conftest.er1
20833 cat conftest.err >&5
672abd7a
VS
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); } &&
243f8ae5
VS
20836 { ac_try='test -z "$ac_c_werror_flag"
20837 || test ! -s conftest.err'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20840 ac_status=$?
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; } &&
20843 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20846 ac_status=$?
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; }; then
20849 ac_header_compiler=yes
20850else
20851 echo "$as_me: failed program was:" >&5
20852sed 's/^/| /' conftest.$ac_ext >&5
20853
20854ac_header_compiler=no
20855fi
243f8ae5 20856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
20857echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20858echo "${ECHO_T}$ac_header_compiler" >&6
20859
20860# Is the header present?
20861echo "$as_me:$LINENO: checking expat.h presence" >&5
20862echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20863cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20864/* confdefs.h. */
20865_ACEOF
20866cat confdefs.h >>conftest.$ac_ext
20867cat >>conftest.$ac_ext <<_ACEOF
20868/* end confdefs.h. */
20869#include <expat.h>
20870_ACEOF
20871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20873 ac_status=$?
20874 grep -v '^ *+' conftest.er1 >conftest.err
20875 rm -f conftest.er1
20876 cat conftest.err >&5
20877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20878 (exit $ac_status); } >/dev/null; then
20879 if test -s conftest.err; then
20880 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 20881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
672abd7a
VS
20882 else
20883 ac_cpp_err=
20884 fi
20885else
20886 ac_cpp_err=yes
20887fi
20888if test -z "$ac_cpp_err"; then
20889 ac_header_preproc=yes
20890else
20891 echo "$as_me: failed program was:" >&5
20892sed 's/^/| /' conftest.$ac_ext >&5
20893
20894 ac_header_preproc=no
20895fi
20896rm -f conftest.err conftest.$ac_ext
20897echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20898echo "${ECHO_T}$ac_header_preproc" >&6
20899
20900# So? What about this header?
243f8ae5
VS
20901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20902 yes:no: )
672abd7a
VS
20903 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20904echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
20905 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20906echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20907 ac_header_preproc=yes
672abd7a 20908 ;;
243f8ae5 20909 no:yes:* )
672abd7a
VS
20910 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20911echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
243f8ae5
VS
20912 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20913echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20914 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20915echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20916 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20917echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
672abd7a
VS
20918 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20919echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
20920 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20921echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
672abd7a
VS
20922 (
20923 cat <<\_ASBOX
243f8ae5
VS
20924## ----------------------------------------- ##
20925## Report this to wx-dev@lists.wxwindows.org ##
20926## ----------------------------------------- ##
672abd7a
VS
20927_ASBOX
20928 ) |
20929 sed "s/^/$as_me: WARNING: /" >&2
20930 ;;
20931esac
20932echo "$as_me:$LINENO: checking for expat.h" >&5
20933echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20934if test "${ac_cv_header_expat_h+set}" = set; then
20935 echo $ECHO_N "(cached) $ECHO_C" >&6
20936else
20937 ac_cv_header_expat_h=$ac_header_preproc
20938fi
20939echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20940echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20941
20942fi
5f0b6dff
VS
20943if test $ac_cv_header_expat_h = yes; then
20944 found_expat_h=1
20945fi
20946
20947
20948 if test "x$found_expat_h" = "x1"; then
20949 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20950echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20951if test "${wx_cv_expat_is_not_broken+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20953else
20954
20955
672abd7a 20956
5f0b6dff
VS
20957 ac_ext=cc
20958ac_cpp='$CXXCPP $CPPFLAGS'
20959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20962
20963 cat >conftest.$ac_ext <<_ACEOF
5f0b6dff
VS
20964/* confdefs.h. */
20965_ACEOF
20966cat confdefs.h >>conftest.$ac_ext
20967cat >>conftest.$ac_ext <<_ACEOF
20968/* end confdefs.h. */
20969#include <expat.h>
20970int
20971main ()
20972{
672abd7a 20973
5f0b6dff
VS
20974 ;
20975 return 0;
20976}
20977_ACEOF
20978rm -f conftest.$ac_objext
20979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 20980 (eval $ac_compile) 2>conftest.er1
5f0b6dff 20981 ac_status=$?
243f8ae5
VS
20982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
5f0b6dff
VS
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
243f8ae5
VS
20987 { ac_try='test -z "$ac_cxx_werror_flag"
20988 || test ! -s conftest.err'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; } &&
20994 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
21000 wx_cv_expat_is_not_broken=yes
21001else
21002 echo "$as_me: failed program was:" >&5
21003sed 's/^/| /' conftest.$ac_ext >&5
21004
21005wx_cv_expat_is_not_broken=no
21006
21007fi
243f8ae5 21008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
21009 ac_ext=c
21010ac_cpp='$CPP $CPPFLAGS'
21011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21013ac_compiler_gnu=$ac_cv_c_compiler_gnu
21014
21015
21016
21017fi
21018echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
21019echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
21020 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
21021 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
21022echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
21023if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
21024 echo $ECHO_N "(cached) $ECHO_C" >&6
21025else
21026 ac_check_lib_save_LIBS=$LIBS
21027LIBS="-lexpat $LIBS"
21028cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
21029/* confdefs.h. */
21030_ACEOF
21031cat confdefs.h >>conftest.$ac_ext
21032cat >>conftest.$ac_ext <<_ACEOF
21033/* end confdefs.h. */
21034
21035/* Override any gcc2 internal prototype to avoid an error. */
21036#ifdef __cplusplus
21037extern "C"
21038#endif
21039/* We use char because int might match the return type of a gcc2
21040 builtin and then its argument prototype would still apply. */
21041char XML_ParserCreate ();
21042int
21043main ()
21044{
21045XML_ParserCreate ();
21046 ;
21047 return 0;
21048}
21049_ACEOF
21050rm -f conftest.$ac_objext conftest$ac_exeext
21051if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 21052 (eval $ac_link) 2>conftest.er1
672abd7a 21053 ac_status=$?
243f8ae5
VS
21054 grep -v '^ *+' conftest.er1 >conftest.err
21055 rm -f conftest.er1
21056 cat conftest.err >&5
672abd7a
VS
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } &&
243f8ae5
VS
21059 { ac_try='test -z "$ac_c_werror_flag"
21060 || test ! -s conftest.err'
21061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062 (eval $ac_try) 2>&5
21063 ac_status=$?
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); }; } &&
21066 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
21067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21068 (eval $ac_try) 2>&5
21069 ac_status=$?
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); }; }; then
21072 ac_cv_lib_expat_XML_ParserCreate=yes
21073else
21074 echo "$as_me: failed program was:" >&5
21075sed 's/^/| /' conftest.$ac_ext >&5
21076
21077ac_cv_lib_expat_XML_ParserCreate=no
21078fi
243f8ae5
VS
21079rm -f conftest.err conftest.$ac_objext \
21080 conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
21081LIBS=$ac_check_lib_save_LIBS
21082fi
21083echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
21084echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
21085if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
21086 EXPAT_LINK=" -lexpat"
21087fi
21088
5f0b6dff 21089 fi
672abd7a
VS
21090 fi
21091 if test "x$EXPAT_LINK" = "x" ; then
21092 if test "$wxUSE_EXPAT" = "sys" ; then
21093 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
21094echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
21095 { (exit 1); exit 1; }; }
21096 else
21097 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
21098echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
21099 wxUSE_EXPAT=builtin
21100 fi
21101 else
21102 wxUSE_EXPAT=sys
21103 fi
21104 fi
21105 if test "$wxUSE_EXPAT" = "builtin" ; then
21106
21107
21108subdirs="$subdirs src/expat"
21109
21110 fi
21111fi
21112
21113
21114
3527f29c
VS
21115if test "$wxUSE_LIBMSPACK" != "no"; then
21116
21117 if test "${ac_cv_header_mspack_h+set}" = set; then
21118 echo "$as_me:$LINENO: checking for mspack.h" >&5
21119echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21120if test "${ac_cv_header_mspack_h+set}" = set; then
21121 echo $ECHO_N "(cached) $ECHO_C" >&6
21122fi
21123echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21124echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21125else
21126 # Is the header compilable?
21127echo "$as_me:$LINENO: checking mspack.h usability" >&5
21128echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
21129cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
21130/* confdefs.h. */
21131_ACEOF
21132cat confdefs.h >>conftest.$ac_ext
21133cat >>conftest.$ac_ext <<_ACEOF
21134/* end confdefs.h. */
21135$ac_includes_default
21136#include <mspack.h>
21137_ACEOF
21138rm -f conftest.$ac_objext
21139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 21140 (eval $ac_compile) 2>conftest.er1
3527f29c 21141 ac_status=$?
243f8ae5
VS
21142 grep -v '^ *+' conftest.er1 >conftest.err
21143 rm -f conftest.er1
21144 cat conftest.err >&5
3527f29c
VS
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } &&
243f8ae5
VS
21147 { ac_try='test -z "$ac_c_werror_flag"
21148 || test ! -s conftest.err'
21149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21151 ac_status=$?
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; } &&
21154 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21157 ac_status=$?
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
21160 ac_header_compiler=yes
21161else
21162 echo "$as_me: failed program was:" >&5
21163sed 's/^/| /' conftest.$ac_ext >&5
21164
21165ac_header_compiler=no
21166fi
243f8ae5 21167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
21168echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21169echo "${ECHO_T}$ac_header_compiler" >&6
21170
21171# Is the header present?
21172echo "$as_me:$LINENO: checking mspack.h presence" >&5
21173echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
21174cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
21175/* confdefs.h. */
21176_ACEOF
21177cat confdefs.h >>conftest.$ac_ext
21178cat >>conftest.$ac_ext <<_ACEOF
21179/* end confdefs.h. */
21180#include <mspack.h>
21181_ACEOF
21182if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21184 ac_status=$?
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } >/dev/null; then
21190 if test -s conftest.err; then
21191 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 21192 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527f29c
VS
21193 else
21194 ac_cpp_err=
21195 fi
21196else
21197 ac_cpp_err=yes
21198fi
21199if test -z "$ac_cpp_err"; then
21200 ac_header_preproc=yes
21201else
21202 echo "$as_me: failed program was:" >&5
21203sed 's/^/| /' conftest.$ac_ext >&5
21204
21205 ac_header_preproc=no
21206fi
21207rm -f conftest.err conftest.$ac_ext
21208echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21209echo "${ECHO_T}$ac_header_preproc" >&6
21210
21211# So? What about this header?
243f8ae5
VS
21212case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21213 yes:no: )
3527f29c
VS
21214 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21215echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
21216 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
21217echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
21218 ac_header_preproc=yes
3527f29c 21219 ;;
243f8ae5 21220 no:yes:* )
3527f29c
VS
21221 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
21222echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
243f8ae5
VS
21223 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
21224echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
21225 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
21226echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
21227 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
21228echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
3527f29c
VS
21229 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
21230echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
21231 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
21232echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
3527f29c
VS
21233 (
21234 cat <<\_ASBOX
243f8ae5
VS
21235## ----------------------------------------- ##
21236## Report this to wx-dev@lists.wxwindows.org ##
21237## ----------------------------------------- ##
3527f29c
VS
21238_ASBOX
21239 ) |
21240 sed "s/^/$as_me: WARNING: /" >&2
21241 ;;
21242esac
21243echo "$as_me:$LINENO: checking for mspack.h" >&5
21244echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
21245if test "${ac_cv_header_mspack_h+set}" = set; then
21246 echo $ECHO_N "(cached) $ECHO_C" >&6
21247else
21248 ac_cv_header_mspack_h=$ac_header_preproc
21249fi
21250echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
21251echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
21252
21253fi
21254if test $ac_cv_header_mspack_h = yes; then
21255 found_mspack_h=1
21256fi
21257
21258
21259 if test "x$found_mspack_h" = "x1"; then
21260 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
21261echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
21262if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
21263 echo $ECHO_N "(cached) $ECHO_C" >&6
21264else
21265 ac_check_lib_save_LIBS=$LIBS
21266LIBS="-lmspack $LIBS"
21267cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
21268/* confdefs.h. */
21269_ACEOF
21270cat confdefs.h >>conftest.$ac_ext
21271cat >>conftest.$ac_ext <<_ACEOF
21272/* end confdefs.h. */
21273
21274/* Override any gcc2 internal prototype to avoid an error. */
21275#ifdef __cplusplus
21276extern "C"
21277#endif
21278/* We use char because int might match the return type of a gcc2
21279 builtin and then its argument prototype would still apply. */
21280char mspack_create_chm_decompressor ();
21281int
21282main ()
21283{
21284mspack_create_chm_decompressor ();
21285 ;
21286 return 0;
21287}
21288_ACEOF
21289rm -f conftest.$ac_objext conftest$ac_exeext
21290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 21291 (eval $ac_link) 2>conftest.er1
3527f29c 21292 ac_status=$?
243f8ae5
VS
21293 grep -v '^ *+' conftest.er1 >conftest.err
21294 rm -f conftest.er1
21295 cat conftest.err >&5
3527f29c
VS
21296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } &&
243f8ae5
VS
21298 { ac_try='test -z "$ac_c_werror_flag"
21299 || test ! -s conftest.err'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; } &&
21305 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
21306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21308 ac_status=$?
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; }; then
21311 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
21312else
21313 echo "$as_me: failed program was:" >&5
21314sed 's/^/| /' conftest.$ac_ext >&5
21315
21316ac_cv_lib_mspack_mspack_create_chm_decompressor=no
21317fi
243f8ae5
VS
21318rm -f conftest.err conftest.$ac_objext \
21319 conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
21320LIBS=$ac_check_lib_save_LIBS
21321fi
21322echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
21323echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
21324if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
21325 MSPACK_LINK=" -lmspack"
21326fi
21327
21328 fi
21329 if test "x$MSPACK_LINK" = "x" ; then
21330 wxUSE_LIBMSPACK=no
21331 else
21332 cat >>confdefs.h <<\_ACEOF
21333#define wxUSE_LIBMSPACK 1
21334_ACEOF
21335
21336 fi
21337fi
21338
21339
21340
21d1c967 21341AFMINSTALL=
2b5f62a0 21342WIN32INSTALL=
90dd450c 21343
21d1c967
GD
21344TOOLKIT=
21345TOOLKIT_INCLUDE=
21346WIDGET_SET=
21347
21348if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
21349
21350for ac_header in w32api.h
21d1c967 21351do
e6cc62c6
VS
21352as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21353if eval "test \"\${$as_ac_Header+set}\" = set"; then
21354 echo "$as_me:$LINENO: checking for $ac_header" >&5
21355echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21356if eval "test \"\${$as_ac_Header+set}\" = set"; then
21357 echo $ECHO_N "(cached) $ECHO_C" >&6
21358fi
21359echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21360echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21361else
21362 # Is the header compilable?
21363echo "$as_me:$LINENO: checking $ac_header usability" >&5
21364echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21365cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21366/* confdefs.h. */
21367_ACEOF
21368cat confdefs.h >>conftest.$ac_ext
21369cat >>conftest.$ac_ext <<_ACEOF
21370/* end confdefs.h. */
21371$ac_includes_default
21372#include <$ac_header>
21373_ACEOF
21374rm -f conftest.$ac_objext
21375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 21376 (eval $ac_compile) 2>conftest.er1
e6cc62c6 21377 ac_status=$?
243f8ae5
VS
21378 grep -v '^ *+' conftest.er1 >conftest.err
21379 rm -f conftest.er1
21380 cat conftest.err >&5
e6cc62c6
VS
21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 (exit $ac_status); } &&
243f8ae5
VS
21383 { ac_try='test -z "$ac_c_werror_flag"
21384 || test ! -s conftest.err'
21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21386 (eval $ac_try) 2>&5
21387 ac_status=$?
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); }; } &&
21390 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
21391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21392 (eval $ac_try) 2>&5
21393 ac_status=$?
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); }; }; then
21396 ac_header_compiler=yes
21397else
21398 echo "$as_me: failed program was:" >&5
21399sed 's/^/| /' conftest.$ac_ext >&5
21400
21401ac_header_compiler=no
21402fi
243f8ae5 21403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
21404echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21405echo "${ECHO_T}$ac_header_compiler" >&6
21406
21407# Is the header present?
21408echo "$as_me:$LINENO: checking $ac_header presence" >&5
21409echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21410cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21411/* confdefs.h. */
21412_ACEOF
21413cat confdefs.h >>conftest.$ac_ext
21414cat >>conftest.$ac_ext <<_ACEOF
21415/* end confdefs.h. */
21416#include <$ac_header>
21417_ACEOF
21418if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21420 ac_status=$?
21421 grep -v '^ *+' conftest.er1 >conftest.err
21422 rm -f conftest.er1
21423 cat conftest.err >&5
21424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21425 (exit $ac_status); } >/dev/null; then
21426 if test -s conftest.err; then
21427 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 21428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
21429 else
21430 ac_cpp_err=
21431 fi
21432else
21433 ac_cpp_err=yes
21434fi
21435if test -z "$ac_cpp_err"; then
21436 ac_header_preproc=yes
21437else
21438 echo "$as_me: failed program was:" >&5
21439sed 's/^/| /' conftest.$ac_ext >&5
21440
21441 ac_header_preproc=no
21442fi
21443rm -f conftest.err conftest.$ac_ext
21444echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21445echo "${ECHO_T}$ac_header_preproc" >&6
21446
21447# So? What about this header?
243f8ae5
VS
21448case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21449 yes:no: )
e6cc62c6
VS
21450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21451echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21453echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21454 ac_header_preproc=yes
e6cc62c6 21455 ;;
243f8ae5 21456 no:yes:* )
e6cc62c6
VS
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21458echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
21459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21460echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21462echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21464echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21466echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
21467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21468echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21469 (
21470 cat <<\_ASBOX
243f8ae5
VS
21471## ----------------------------------------- ##
21472## Report this to wx-dev@lists.wxwindows.org ##
21473## ----------------------------------------- ##
e6cc62c6
VS
21474_ASBOX
21475 ) |
21476 sed "s/^/$as_me: WARNING: /" >&2
21477 ;;
21478esac
21479echo "$as_me:$LINENO: checking for $ac_header" >&5
21480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21481if eval "test \"\${$as_ac_Header+set}\" = set"; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21483else
243f8ae5 21484 eval "$as_ac_Header=\$ac_header_preproc"
f79bd02d 21485fi
e6cc62c6
VS
21486echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21487echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21488
21d1c967 21489fi
e6cc62c6
VS
21490if test `eval echo '${'$as_ac_Header'}'` = yes; then
21491 cat >>confdefs.h <<_ACEOF
21492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21493_ACEOF
21494
21d1c967 21495fi
e6cc62c6 21496
21d1c967 21497done
f79bd02d 21498
e6cc62c6
VS
21499 if test "${ac_cv_header_windows_h+set}" = set; then
21500 echo "$as_me:$LINENO: checking for windows.h" >&5
21501echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21502if test "${ac_cv_header_windows_h+set}" = set; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21504fi
21505echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21506echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21507else
21508 # Is the header compilable?
21509echo "$as_me:$LINENO: checking windows.h usability" >&5
21510echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21511cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21512/* confdefs.h. */
21513_ACEOF
21514cat confdefs.h >>conftest.$ac_ext
21515cat >>conftest.$ac_ext <<_ACEOF
21516/* end confdefs.h. */
21517$ac_includes_default
247f5006 21518#include <windows.h>
e6cc62c6
VS
21519_ACEOF
21520rm -f conftest.$ac_objext
21521if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 21522 (eval $ac_compile) 2>conftest.er1
e6cc62c6 21523 ac_status=$?
243f8ae5
VS
21524 grep -v '^ *+' conftest.er1 >conftest.err
21525 rm -f conftest.er1
21526 cat conftest.err >&5
e6cc62c6
VS
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); } &&
243f8ae5
VS
21529 { ac_try='test -z "$ac_c_werror_flag"
21530 || test ! -s conftest.err'
21531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21532 (eval $ac_try) 2>&5
21533 ac_status=$?
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); }; } &&
21536 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
21537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21538 (eval $ac_try) 2>&5
21539 ac_status=$?
21540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); }; }; then
21542 ac_header_compiler=yes
21543else
21544 echo "$as_me: failed program was:" >&5
21545sed 's/^/| /' conftest.$ac_ext >&5
21546
21547ac_header_compiler=no
21548fi
243f8ae5 21549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
21550echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21551echo "${ECHO_T}$ac_header_compiler" >&6
21552
21553# Is the header present?
21554echo "$as_me:$LINENO: checking windows.h presence" >&5
21555echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21556cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21557/* confdefs.h. */
21558_ACEOF
21559cat confdefs.h >>conftest.$ac_ext
21560cat >>conftest.$ac_ext <<_ACEOF
21561/* end confdefs.h. */
21562#include <windows.h>
21563_ACEOF
21564if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21566 ac_status=$?
21567 grep -v '^ *+' conftest.er1 >conftest.err
21568 rm -f conftest.er1
21569 cat conftest.err >&5
21570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } >/dev/null; then
21572 if test -s conftest.err; then
21573 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 21574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
21575 else
21576 ac_cpp_err=
21577 fi
21578else
21579 ac_cpp_err=yes
21580fi
21581if test -z "$ac_cpp_err"; then
21582 ac_header_preproc=yes
21583else
21584 echo "$as_me: failed program was:" >&5
21585sed 's/^/| /' conftest.$ac_ext >&5
21586
21587 ac_header_preproc=no
21588fi
21589rm -f conftest.err conftest.$ac_ext
21590echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21591echo "${ECHO_T}$ac_header_preproc" >&6
21592
21593# So? What about this header?
243f8ae5
VS
21594case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21595 yes:no: )
e6cc62c6
VS
21596 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21597echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
21598 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21599echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21600 ac_header_preproc=yes
e6cc62c6 21601 ;;
243f8ae5 21602 no:yes:* )
e6cc62c6
VS
21603 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21604echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
243f8ae5
VS
21605 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21606echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21607 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21608echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21609 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21610echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21611 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21612echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
21613 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21614echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21615 (
21616 cat <<\_ASBOX
243f8ae5
VS
21617## ----------------------------------------- ##
21618## Report this to wx-dev@lists.wxwindows.org ##
21619## ----------------------------------------- ##
e6cc62c6
VS
21620_ASBOX
21621 ) |
21622 sed "s/^/$as_me: WARNING: /" >&2
21623 ;;
21624esac
21625echo "$as_me:$LINENO: checking for windows.h" >&5
21626echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21627if test "${ac_cv_header_windows_h+set}" = set; then
21628 echo $ECHO_N "(cached) $ECHO_C" >&6
21629else
21630 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 21631fi
e6cc62c6
VS
21632echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21633echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21634
90dd450c 21635fi
e6cc62c6 21636if test $ac_cv_header_windows_h = yes; then
21d1c967 21637 :
90dd450c 21638else
21d1c967 21639
e6cc62c6
VS
21640 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21641echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21642 { (exit 1); exit 1; }; }
21643
5c6fa7d2 21644fi
7b4a847f 21645
5c6fa7d2 21646
e6cc62c6 21647
b3dfbbc9 21648 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 21649
7bb2947d
MB
21650 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21651 LIBS="$LIBS -loleacc"
21652 fi
21653
21d1c967
GD
21654 case "${host}" in
21655 *-*-cygwin* )
b3dfbbc9 21656 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 21657 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 21658 esac
f79bd02d 21659
8647bec6
RG
21660 if test "$wxUSE_ODBC" = "sys" ; then
21661 wxUSE_ODBC = "yes"
21d1c967 21662 fi
8647bec6
RG
21663 if test "$wxUSE_ODBC" = "yes" ; then
21664 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 21665 cat >>confdefs.h <<\_ACEOF
8647bec6 21666#define wxUSE_ODBC 1
e6cc62c6 21667_ACEOF
f79bd02d 21668
8647bec6 21669 fi
e6cc62c6 21670
21d1c967
GD
21671 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21672 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
21673
21674 WIN32INSTALL=win32install
f79bd02d 21675fi
f79bd02d 21676
21d1c967
GD
21677if test "$wxUSE_GUI" = "yes"; then
21678 USE_GUI=1
f79bd02d 21679
21d1c967 21680 GUI_TK_LIBRARY=
f79bd02d 21681
21d1c967
GD
21682 WXGTK12=
21683 WXGTK127=
21684 WXGTK20=
f79bd02d 21685
21d1c967
GD
21686 if test "$wxUSE_MSW" = 1 ; then
21687 TOOLKIT=MSW
21688 GUIDIST=MSW_DIST
ffef10f6
VS
21689
21690 case "${host}" in
21691 *-*-mingw32* )
21692 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21693 esac
f79bd02d
JS
21694 fi
21695
21d1c967 21696 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
21697 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21698echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
21699
21700 gtk_version_cached=1
e6cc62c6
VS
21701 if test "${wx_cv_lib_gtk+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 21703else
e6cc62c6 21704
21d1c967 21705 gtk_version_cached=0
e6cc62c6
VS
21706 echo "$as_me:$LINENO: result: " >&5
21707echo "${ECHO_T}" >&6
f79bd02d 21708
21d1c967
GD
21709 GTK_MODULES=
21710 if test "$wxUSE_THREADS" = "yes"; then
21711 GTK_MODULES=gthread
21712 fi
f79bd02d 21713
2b5f62a0 21714 wx_cv_lib_gtk=
21d1c967
GD
21715 if test "x$wxUSE_GTK2" = "xyes"; then
21716 # Check whether --enable-gtktest or --disable-gtktest was given.
21717if test "${enable_gtktest+set}" = set; then
21718 enableval="$enable_gtktest"
e6cc62c6 21719
f79bd02d 21720else
21d1c967 21721 enable_gtktest=yes
e6cc62c6 21722fi;
f79bd02d 21723
21d1c967
GD
21724 pkg_config_args=gtk+-2.0
21725 for module in . $GTK_MODULES
21726 do
21727 case "$module" in
e6cc62c6 21728 gthread)
21d1c967
GD
21729 pkg_config_args="$pkg_config_args gthread-2.0"
21730 ;;
21731 esac
21732 done
21733
21734 no_gtk=""
f79bd02d 21735
21d1c967
GD
21736 # Extract the first word of "pkg-config", so it can be a program name with args.
21737set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21738echo "$as_me:$LINENO: checking for $ac_word" >&5
21739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21740if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21741 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21742else
e6cc62c6
VS
21743 case $PKG_CONFIG in
21744 [\\/]* | ?:[\\/]*)
21d1c967
GD
21745 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21746 ;;
21d1c967 21747 *)
e6cc62c6
VS
21748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21749for as_dir in $PATH
21750do
21751 IFS=$as_save_IFS
21752 test -z "$as_dir" && as_dir=.
21753 for ac_exec_ext in '' $ac_executable_extensions; do
21754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21755 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21757 break 2
21758 fi
21759done
21760done
21761
21d1c967
GD
21762 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21763 ;;
21764esac
f79bd02d 21765fi
e6cc62c6
VS
21766PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21767
21d1c967 21768if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21769 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21770echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 21771else
e6cc62c6
VS
21772 echo "$as_me:$LINENO: result: no" >&5
21773echo "${ECHO_T}no" >&6
f79bd02d
JS
21774fi
21775
8284b0c5 21776
21d1c967
GD
21777 if test x$PKG_CONFIG != xno ; then
21778 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21779 :
21780 else
21781 echo *** pkg-config too old; version 0.7 or better required.
21782 no_gtk=yes
21783 PKG_CONFIG=no
21784 fi
21785 else
21786 no_gtk=yes
21787 fi
f79bd02d 21788
21d1c967 21789 min_gtk_version=2.0.0
e6cc62c6
VS
21790 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21791echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 21792
21d1c967
GD
21793 if test x$PKG_CONFIG != xno ; then
21794 ## don't try to run the test against uninstalled libtool libs
21795 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21796 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21797 enable_gtktest=no
21798 fi
f79bd02d 21799
21d1c967
GD
21800 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21801 :
21802 else
21803 no_gtk=yes
21804 fi
21805 fi
f79bd02d 21806
21d1c967
GD
21807 if test x"$no_gtk" = x ; then
21808 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21809 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21810 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21811 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21812 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21813 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21814 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21815 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21816 if test "x$enable_gtktest" = "xyes" ; then
21817 ac_save_CFLAGS="$CFLAGS"
21818 ac_save_LIBS="$LIBS"
21819 CFLAGS="$CFLAGS $GTK_CFLAGS"
21820 LIBS="$GTK_LIBS $LIBS"
21821 rm -f conf.gtktest
21822 if test "$cross_compiling" = yes; then
21823 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21824else
e6cc62c6 21825 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21826/* confdefs.h. */
21827_ACEOF
21828cat confdefs.h >>conftest.$ac_ext
21829cat >>conftest.$ac_ext <<_ACEOF
21830/* end confdefs.h. */
f79bd02d 21831
21d1c967
GD
21832#include <gtk/gtk.h>
21833#include <stdio.h>
21834#include <stdlib.h>
f79bd02d 21835
e6cc62c6 21836int
21d1c967
GD
21837main ()
21838{
21839 int major, minor, micro;
21840 char *tmp_version;
f79bd02d 21841
21d1c967 21842 system ("touch conf.gtktest");
f79bd02d 21843
21d1c967
GD
21844 /* HP/UX 9 (%@#!) writes to sscanf strings */
21845 tmp_version = g_strdup("$min_gtk_version");
21846 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21847 printf("%s, bad version string\n", "$min_gtk_version");
21848 exit(1);
21849 }
f79bd02d 21850
21d1c967
GD
21851 if ((gtk_major_version != $gtk_config_major_version) ||
21852 (gtk_minor_version != $gtk_config_minor_version) ||
21853 (gtk_micro_version != $gtk_config_micro_version))
21854 {
e6cc62c6 21855 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21856 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21857 gtk_major_version, gtk_minor_version, gtk_micro_version);
21858 printf ("*** was found! If pkg-config was correct, then it is best\n");
21859 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21860 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21861 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21862 printf("*** required on your system.\n");
21863 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21864 printf("*** to point to the correct configuration files\n");
e6cc62c6 21865 }
21d1c967
GD
21866 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21867 (gtk_minor_version != GTK_MINOR_VERSION) ||
21868 (gtk_micro_version != GTK_MICRO_VERSION))
21869 {
21870 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21871 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21872 printf("*** library (version %d.%d.%d)\n",
21873 gtk_major_version, gtk_minor_version, gtk_micro_version);
21874 }
21875 else
21876 {
21877 if ((gtk_major_version > major) ||
21878 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21879 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21880 {
21881 return 0;
21882 }
21883 else
21884 {
21885 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21886 gtk_major_version, gtk_minor_version, gtk_micro_version);
21887 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21888 major, minor, micro);
21889 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21890 printf("***\n");
21891 printf("*** If you have already installed a sufficiently new version, this error\n");
21892 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21893 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21894 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21895 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21896 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21897 printf("*** so that the correct libraries are found at run-time))\n");
21898 }
21899 }
21900 return 1;
21901}
f79bd02d 21902
e6cc62c6
VS
21903_ACEOF
21904rm -f conftest$ac_exeext
21905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21906 (eval $ac_link) 2>&5
21907 ac_status=$?
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911 (eval $ac_try) 2>&5
21912 ac_status=$?
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); }; }; then
21d1c967 21915 :
f79bd02d 21916else
e6cc62c6
VS
21917 echo "$as_me: program exited with status $ac_status" >&5
21918echo "$as_me: failed program was:" >&5
21919sed 's/^/| /' conftest.$ac_ext >&5
21920
21921( exit $ac_status )
21922no_gtk=yes
f79bd02d 21923fi
243f8ae5 21924rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 21925fi
21d1c967
GD
21926 CFLAGS="$ac_save_CFLAGS"
21927 LIBS="$ac_save_LIBS"
21928 fi
21929 fi
21930 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21931 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21932echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21933 wx_cv_lib_gtk=2.0
21d1c967 21934 else
e6cc62c6
VS
21935 echo "$as_me:$LINENO: result: no" >&5
21936echo "${ECHO_T}no" >&6
21d1c967
GD
21937 if test "$PKG_CONFIG" = "no" ; then
21938 echo "*** A new enough version of pkg-config was not found."
21939 echo "*** See http://pkgconfig.sourceforge.net"
21940 else
21941 if test -f conf.gtktest ; then
21942 :
21943 else
21944 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
21945 ac_save_CFLAGS="$CFLAGS"
21946 ac_save_LIBS="$LIBS"
21d1c967
GD
21947 CFLAGS="$CFLAGS $GTK_CFLAGS"
21948 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21949 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21950/* confdefs.h. */
21951_ACEOF
21952cat confdefs.h >>conftest.$ac_ext
21953cat >>conftest.$ac_ext <<_ACEOF
21954/* end confdefs.h. */
21d1c967
GD
21955
21956#include <gtk/gtk.h>
21957#include <stdio.h>
f79bd02d 21958
e6cc62c6
VS
21959int
21960main ()
21961{
21962 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21963 ;
21964 return 0;
21965}
21966_ACEOF
21967rm -f conftest.$ac_objext conftest$ac_exeext
21968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 21969 (eval $ac_link) 2>conftest.er1
e6cc62c6 21970 ac_status=$?
243f8ae5
VS
21971 grep -v '^ *+' conftest.er1 >conftest.err
21972 rm -f conftest.er1
21973 cat conftest.err >&5
e6cc62c6
VS
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); } &&
243f8ae5
VS
21976 { ac_try='test -z "$ac_c_werror_flag"
21977 || test ! -s conftest.err'
21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21980 ac_status=$?
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; } &&
21983 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21985 (eval $ac_try) 2>&5
21986 ac_status=$?
21987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988 (exit $ac_status); }; }; then
21d1c967
GD
21989 echo "*** The test program compiled, but did not run. This usually means"
21990 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21991 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21992 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21993 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21994 echo "*** is required on your system"
21995 echo "***"
21996 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 21997 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 21998else
e6cc62c6
VS
21999 echo "$as_me: failed program was:" >&5
22000sed 's/^/| /' conftest.$ac_ext >&5
22001
22002 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 22003 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 22004fi
243f8ae5
VS
22005rm -f conftest.err conftest.$ac_objext \
22006 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22007 CFLAGS="$ac_save_CFLAGS"
22008 LIBS="$ac_save_LIBS"
22009 fi
22010 fi
22011 GTK_CFLAGS=""
22012 GTK_LIBS=""
22013 :
22014 fi
e6cc62c6
VS
22015
22016
21d1c967 22017 rm -f conf.gtktest
f79bd02d 22018
2b5f62a0 22019 else
e6cc62c6
VS
22020
22021# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
22022if test "${with_gtk_prefix+set}" = set; then
22023 withval="$with_gtk_prefix"
22024 gtk_config_prefix="$withval"
22025else
22026 gtk_config_prefix=""
e6cc62c6 22027fi;
f79bd02d 22028
21d1c967
GD
22029# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22030if test "${with_gtk_exec_prefix+set}" = set; then
22031 withval="$with_gtk_exec_prefix"
22032 gtk_config_exec_prefix="$withval"
22033else
22034 gtk_config_exec_prefix=""
e6cc62c6 22035fi;
21d1c967
GD
22036# Check whether --enable-gtktest or --disable-gtktest was given.
22037if test "${enable_gtktest+set}" = set; then
22038 enableval="$enable_gtktest"
e6cc62c6 22039
21d1c967
GD
22040else
22041 enable_gtktest=yes
e6cc62c6 22042fi;
21d1c967
GD
22043
22044 for module in . $GTK_MODULES
22045 do
22046 case "$module" in
e6cc62c6 22047 gthread)
21d1c967
GD
22048 gtk_config_args="$gtk_config_args gthread"
22049 ;;
22050 esac
22051 done
22052
22053 if test x$gtk_config_exec_prefix != x ; then
22054 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22055 if test x${GTK_CONFIG+set} != xset ; then
22056 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22057 fi
22058 fi
22059 if test x$gtk_config_prefix != x ; then
22060 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22061 if test x${GTK_CONFIG+set} != xset ; then
22062 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22063 fi
22064 fi
22065
22066 # Extract the first word of "gtk-config", so it can be a program name with args.
22067set dummy gtk-config; ac_word=$2
e6cc62c6
VS
22068echo "$as_me:$LINENO: checking for $ac_word" >&5
22069echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22070if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22071 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 22072else
e6cc62c6
VS
22073 case $GTK_CONFIG in
22074 [\\/]* | ?:[\\/]*)
21d1c967
GD
22075 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22076 ;;
21d1c967 22077 *)
e6cc62c6
VS
22078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22079for as_dir in $PATH
22080do
22081 IFS=$as_save_IFS
22082 test -z "$as_dir" && as_dir=.
22083 for ac_exec_ext in '' $ac_executable_extensions; do
22084 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22085 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22087 break 2
22088 fi
22089done
22090done
22091
21d1c967
GD
22092 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22093 ;;
22094esac
22095fi
e6cc62c6
VS
22096GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22097
21d1c967 22098if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
22099 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22100echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 22101else
e6cc62c6
VS
22102 echo "$as_me:$LINENO: result: no" >&5
22103echo "${ECHO_T}no" >&6
21d1c967
GD
22104fi
22105
22106 min_gtk_version=1.2.7
e6cc62c6
VS
22107 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22108echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
22109 no_gtk=""
22110 if test "$GTK_CONFIG" = "no" ; then
22111 no_gtk=yes
22112 else
22113 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22114 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22115 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22116 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22117 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22118 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22119 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22120 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22121 if test "x$enable_gtktest" = "xyes" ; then
22122 ac_save_CFLAGS="$CFLAGS"
22123 ac_save_LIBS="$LIBS"
22124 CFLAGS="$CFLAGS $GTK_CFLAGS"
22125 LIBS="$GTK_LIBS $LIBS"
22126 rm -f conf.gtktest
22127 if test "$cross_compiling" = yes; then
22128 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 22129else
e6cc62c6 22130 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22131/* confdefs.h. */
22132_ACEOF
22133cat confdefs.h >>conftest.$ac_ext
22134cat >>conftest.$ac_ext <<_ACEOF
22135/* end confdefs.h. */
f79bd02d 22136
21d1c967
GD
22137#include <gtk/gtk.h>
22138#include <stdio.h>
22139#include <stdlib.h>
f79bd02d 22140
e6cc62c6 22141int
21d1c967
GD
22142main ()
22143{
22144 int major, minor, micro;
22145 char *tmp_version;
22146
22147 system ("touch conf.gtktest");
22148
22149 /* HP/UX 9 (%@#!) writes to sscanf strings */
22150 tmp_version = g_strdup("$min_gtk_version");
22151 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22152 printf("%s, bad version string\n", "$min_gtk_version");
22153 exit(1);
22154 }
90dd450c 22155
21d1c967
GD
22156 if ((gtk_major_version != $gtk_config_major_version) ||
22157 (gtk_minor_version != $gtk_config_minor_version) ||
22158 (gtk_micro_version != $gtk_config_micro_version))
22159 {
e6cc62c6 22160 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
22161 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22162 gtk_major_version, gtk_minor_version, gtk_micro_version);
22163 printf ("*** was found! If gtk-config was correct, then it is best\n");
22164 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22165 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22166 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22167 printf("*** required on your system.\n");
22168 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22169 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22170 printf("*** before re-running configure\n");
e6cc62c6 22171 }
21d1c967
GD
22172#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22173 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22174 (gtk_minor_version != GTK_MINOR_VERSION) ||
22175 (gtk_micro_version != GTK_MICRO_VERSION))
22176 {
22177 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22178 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22179 printf("*** library (version %d.%d.%d)\n",
22180 gtk_major_version, gtk_minor_version, gtk_micro_version);
22181 }
22182#endif /* defined (GTK_MAJOR_VERSION) ... */
22183 else
22184 {
22185 if ((gtk_major_version > major) ||
22186 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22187 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22188 {
22189 return 0;
22190 }
22191 else
22192 {
22193 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22194 gtk_major_version, gtk_minor_version, gtk_micro_version);
22195 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22196 major, minor, micro);
22197 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22198 printf("***\n");
22199 printf("*** If you have already installed a sufficiently new version, this error\n");
22200 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22201 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22202 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22203 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22204 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22205 printf("*** so that the correct libraries are found at run-time))\n");
22206 }
22207 }
22208 return 1;
22209}
22210
e6cc62c6
VS
22211_ACEOF
22212rm -f conftest$ac_exeext
22213if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22214 (eval $ac_link) 2>&5
22215 ac_status=$?
22216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5
22220 ac_status=$?
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; }; then
21d1c967
GD
22223 :
22224else
e6cc62c6
VS
22225 echo "$as_me: program exited with status $ac_status" >&5
22226echo "$as_me: failed program was:" >&5
22227sed 's/^/| /' conftest.$ac_ext >&5
22228
22229( exit $ac_status )
22230no_gtk=yes
21d1c967 22231fi
243f8ae5 22232rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 22233fi
21d1c967
GD
22234 CFLAGS="$ac_save_CFLAGS"
22235 LIBS="$ac_save_LIBS"
22236 fi
22237 fi
22238 if test "x$no_gtk" = x ; then
e6cc62c6
VS
22239 echo "$as_me:$LINENO: result: yes" >&5
22240echo "${ECHO_T}yes" >&6
22241 wx_cv_lib_gtk=1.2.7
21d1c967 22242 else
e6cc62c6
VS
22243 echo "$as_me:$LINENO: result: no" >&5
22244echo "${ECHO_T}no" >&6
21d1c967
GD
22245 if test "$GTK_CONFIG" = "no" ; then
22246 echo "*** The gtk-config script installed by GTK could not be found"
22247 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22248 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22249 echo "*** full path to gtk-config."
22250 else
22251 if test -f conf.gtktest ; then
22252 :
22253 else
22254 echo "*** Could not run GTK test program, checking why..."
22255 CFLAGS="$CFLAGS $GTK_CFLAGS"
22256 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 22257 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22258/* confdefs.h. */
22259_ACEOF
22260cat confdefs.h >>conftest.$ac_ext
22261cat >>conftest.$ac_ext <<_ACEOF
22262/* end confdefs.h. */
21d1c967
GD
22263
22264#include <gtk/gtk.h>
22265#include <stdio.h>
22266
e6cc62c6
VS
22267int
22268main ()
22269{
22270 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22271 ;
22272 return 0;
22273}
22274_ACEOF
22275rm -f conftest.$ac_objext conftest$ac_exeext
22276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 22277 (eval $ac_link) 2>conftest.er1
e6cc62c6 22278 ac_status=$?
243f8ae5
VS
22279 grep -v '^ *+' conftest.er1 >conftest.err
22280 rm -f conftest.er1
22281 cat conftest.err >&5
e6cc62c6
VS
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } &&
243f8ae5
VS
22284 { ac_try='test -z "$ac_c_werror_flag"
22285 || test ! -s conftest.err'
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; } &&
22291 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22293 (eval $ac_try) 2>&5
22294 ac_status=$?
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); }; }; then
21d1c967
GD
22297 echo "*** The test program compiled, but did not run. This usually means"
22298 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22299 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22300 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22301 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22302 echo "*** is required on your system"
22303 echo "***"
22304 echo "*** If you have an old version installed, it is best to remove it, although"
22305 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22306 echo "***"
22307 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22308 echo "*** came with the system with the command"
22309 echo "***"
e6cc62c6 22310 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22311else
e6cc62c6
VS
22312 echo "$as_me: failed program was:" >&5
22313sed 's/^/| /' conftest.$ac_ext >&5
22314
22315 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22316 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22317 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22318 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22319fi
243f8ae5
VS
22320rm -f conftest.err conftest.$ac_objext \
22321 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22322 CFLAGS="$ac_save_CFLAGS"
22323 LIBS="$ac_save_LIBS"
22324 fi
22325 fi
22326 GTK_CFLAGS=""
22327 GTK_LIBS=""
22328 :
22329 fi
e6cc62c6
VS
22330
22331
21d1c967
GD
22332 rm -f conf.gtktest
22333
21d1c967 22334
2b5f62a0 22335 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
22336
22337# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
22338if test "${with_gtk_prefix+set}" = set; then
22339 withval="$with_gtk_prefix"
22340 gtk_config_prefix="$withval"
22341else
22342 gtk_config_prefix=""
e6cc62c6 22343fi;
f79bd02d 22344
21d1c967
GD
22345# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
22346if test "${with_gtk_exec_prefix+set}" = set; then
22347 withval="$with_gtk_exec_prefix"
22348 gtk_config_exec_prefix="$withval"
22349else
22350 gtk_config_exec_prefix=""
e6cc62c6 22351fi;
21d1c967
GD
22352# Check whether --enable-gtktest or --disable-gtktest was given.
22353if test "${enable_gtktest+set}" = set; then
22354 enableval="$enable_gtktest"
e6cc62c6 22355
90dd450c 22356else
21d1c967 22357 enable_gtktest=yes
e6cc62c6 22358fi;
21d1c967
GD
22359
22360 for module in . $GTK_MODULES
22361 do
22362 case "$module" in
e6cc62c6 22363 gthread)
21d1c967
GD
22364 gtk_config_args="$gtk_config_args gthread"
22365 ;;
22366 esac
22367 done
22368
22369 if test x$gtk_config_exec_prefix != x ; then
22370 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
22371 if test x${GTK_CONFIG+set} != xset ; then
22372 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
22373 fi
22374 fi
22375 if test x$gtk_config_prefix != x ; then
22376 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
22377 if test x${GTK_CONFIG+set} != xset ; then
22378 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
22379 fi
22380 fi
22381
22382 # Extract the first word of "gtk-config", so it can be a program name with args.
22383set dummy gtk-config; ac_word=$2
e6cc62c6
VS
22384echo "$as_me:$LINENO: checking for $ac_word" >&5
22385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22386if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22388else
e6cc62c6
VS
22389 case $GTK_CONFIG in
22390 [\\/]* | ?:[\\/]*)
21d1c967
GD
22391 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
22392 ;;
21d1c967 22393 *)
e6cc62c6
VS
22394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22395for as_dir in $PATH
22396do
22397 IFS=$as_save_IFS
22398 test -z "$as_dir" && as_dir=.
22399 for ac_exec_ext in '' $ac_executable_extensions; do
22400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22401 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22403 break 2
22404 fi
22405done
22406done
22407
21d1c967
GD
22408 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
22409 ;;
22410esac
22411fi
e6cc62c6
VS
22412GTK_CONFIG=$ac_cv_path_GTK_CONFIG
22413
21d1c967 22414if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
22415 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
22416echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 22417else
e6cc62c6
VS
22418 echo "$as_me:$LINENO: result: no" >&5
22419echo "${ECHO_T}no" >&6
21d1c967
GD
22420fi
22421
22422 min_gtk_version=1.2.3
e6cc62c6
VS
22423 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
22424echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
22425 no_gtk=""
22426 if test "$GTK_CONFIG" = "no" ; then
22427 no_gtk=yes
22428 else
22429 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
22430 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
22431 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
22432 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
22433 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
22434 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
22435 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
22436 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
22437 if test "x$enable_gtktest" = "xyes" ; then
22438 ac_save_CFLAGS="$CFLAGS"
22439 ac_save_LIBS="$LIBS"
22440 CFLAGS="$CFLAGS $GTK_CFLAGS"
22441 LIBS="$GTK_LIBS $LIBS"
22442 rm -f conf.gtktest
22443 if test "$cross_compiling" = yes; then
22444 echo $ac_n "cross compiling; assumed OK... $ac_c"
22445else
e6cc62c6 22446 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22447/* confdefs.h. */
22448_ACEOF
22449cat confdefs.h >>conftest.$ac_ext
22450cat >>conftest.$ac_ext <<_ACEOF
22451/* end confdefs.h. */
21d1c967
GD
22452
22453#include <gtk/gtk.h>
22454#include <stdio.h>
22455#include <stdlib.h>
22456
e6cc62c6 22457int
21d1c967
GD
22458main ()
22459{
22460 int major, minor, micro;
22461 char *tmp_version;
22462
22463 system ("touch conf.gtktest");
22464
22465 /* HP/UX 9 (%@#!) writes to sscanf strings */
22466 tmp_version = g_strdup("$min_gtk_version");
22467 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
22468 printf("%s, bad version string\n", "$min_gtk_version");
22469 exit(1);
22470 }
22471
22472 if ((gtk_major_version != $gtk_config_major_version) ||
22473 (gtk_minor_version != $gtk_config_minor_version) ||
22474 (gtk_micro_version != $gtk_config_micro_version))
22475 {
e6cc62c6 22476 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
22477 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
22478 gtk_major_version, gtk_minor_version, gtk_micro_version);
22479 printf ("*** was found! If gtk-config was correct, then it is best\n");
22480 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
22481 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
22482 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
22483 printf("*** required on your system.\n");
22484 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
22485 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
22486 printf("*** before re-running configure\n");
e6cc62c6 22487 }
21d1c967
GD
22488#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
22489 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
22490 (gtk_minor_version != GTK_MINOR_VERSION) ||
22491 (gtk_micro_version != GTK_MICRO_VERSION))
22492 {
22493 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
22494 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
22495 printf("*** library (version %d.%d.%d)\n",
22496 gtk_major_version, gtk_minor_version, gtk_micro_version);
22497 }
22498#endif /* defined (GTK_MAJOR_VERSION) ... */
22499 else
22500 {
22501 if ((gtk_major_version > major) ||
22502 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22503 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22504 {
22505 return 0;
22506 }
22507 else
22508 {
22509 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22510 gtk_major_version, gtk_minor_version, gtk_micro_version);
22511 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22512 major, minor, micro);
22513 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22514 printf("***\n");
22515 printf("*** If you have already installed a sufficiently new version, this error\n");
22516 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22517 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22518 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22519 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22520 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22521 printf("*** so that the correct libraries are found at run-time))\n");
22522 }
22523 }
22524 return 1;
22525}
22526
e6cc62c6
VS
22527_ACEOF
22528rm -f conftest$ac_exeext
22529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22530 (eval $ac_link) 2>&5
22531 ac_status=$?
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22536 ac_status=$?
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; }; then
21d1c967
GD
22539 :
22540else
e6cc62c6
VS
22541 echo "$as_me: program exited with status $ac_status" >&5
22542echo "$as_me: failed program was:" >&5
22543sed 's/^/| /' conftest.$ac_ext >&5
22544
22545( exit $ac_status )
22546no_gtk=yes
21d1c967 22547fi
243f8ae5 22548rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 22549fi
21d1c967
GD
22550 CFLAGS="$ac_save_CFLAGS"
22551 LIBS="$ac_save_LIBS"
22552 fi
22553 fi
22554 if test "x$no_gtk" = x ; then
e6cc62c6
VS
22555 echo "$as_me:$LINENO: result: yes" >&5
22556echo "${ECHO_T}yes" >&6
22557 wx_cv_lib_gtk=1.2.3
21d1c967 22558 else
e6cc62c6
VS
22559 echo "$as_me:$LINENO: result: no" >&5
22560echo "${ECHO_T}no" >&6
21d1c967
GD
22561 if test "$GTK_CONFIG" = "no" ; then
22562 echo "*** The gtk-config script installed by GTK could not be found"
22563 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22564 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22565 echo "*** full path to gtk-config."
22566 else
22567 if test -f conf.gtktest ; then
22568 :
22569 else
22570 echo "*** Could not run GTK test program, checking why..."
22571 CFLAGS="$CFLAGS $GTK_CFLAGS"
22572 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 22573 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22574/* confdefs.h. */
22575_ACEOF
22576cat confdefs.h >>conftest.$ac_ext
22577cat >>conftest.$ac_ext <<_ACEOF
22578/* end confdefs.h. */
21d1c967
GD
22579
22580#include <gtk/gtk.h>
22581#include <stdio.h>
f79bd02d 22582
e6cc62c6
VS
22583int
22584main ()
22585{
22586 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22587 ;
22588 return 0;
22589}
22590_ACEOF
22591rm -f conftest.$ac_objext conftest$ac_exeext
22592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 22593 (eval $ac_link) 2>conftest.er1
e6cc62c6 22594 ac_status=$?
243f8ae5
VS
22595 grep -v '^ *+' conftest.er1 >conftest.err
22596 rm -f conftest.er1
22597 cat conftest.err >&5
e6cc62c6
VS
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); } &&
243f8ae5
VS
22600 { ac_try='test -z "$ac_c_werror_flag"
22601 || test ! -s conftest.err'
22602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603 (eval $ac_try) 2>&5
22604 ac_status=$?
22605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); }; } &&
22607 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22609 (eval $ac_try) 2>&5
22610 ac_status=$?
22611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612 (exit $ac_status); }; }; then
21d1c967
GD
22613 echo "*** The test program compiled, but did not run. This usually means"
22614 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22615 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22616 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22617 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22618 echo "*** is required on your system"
22619 echo "***"
22620 echo "*** If you have an old version installed, it is best to remove it, although"
22621 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22622 echo "***"
22623 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22624 echo "*** came with the system with the command"
22625 echo "***"
e6cc62c6 22626 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22627else
e6cc62c6
VS
22628 echo "$as_me: failed program was:" >&5
22629sed 's/^/| /' conftest.$ac_ext >&5
22630
22631 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22632 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22633 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22634 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22635fi
243f8ae5
VS
22636rm -f conftest.err conftest.$ac_objext \
22637 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22638 CFLAGS="$ac_save_CFLAGS"
22639 LIBS="$ac_save_LIBS"
22640 fi
22641 fi
22642 GTK_CFLAGS=""
22643 GTK_LIBS=""
22644 :
22645 fi
e6cc62c6
VS
22646
22647
21d1c967 22648 rm -f conf.gtktest
f79bd02d 22649
2b5f62a0 22650 fi
21d1c967
GD
22651 fi
22652
22653 if test -z "$wx_cv_lib_gtk"; then
22654 wx_cv_lib_gtk=none
22655 else
22656 wx_cv_cflags_gtk=$GTK_CFLAGS
22657 wx_cv_libs_gtk=$GTK_LIBS
22658 fi
e6cc62c6
VS
22659
22660
5c6fa7d2 22661fi
52127426 22662
8284b0c5 22663
21d1c967 22664 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
22665 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22666echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
22667 fi
22668
22669 case "$wx_cv_lib_gtk" in
22670 2.0) WXGTK20=1
2b5f62a0 22671 TOOLKIT_VERSION=2
21d1c967
GD
22672 ;;
22673 1.2.7) WXGTK127=1
22674 WXGTK12=1
22675 ;;
22676 1.2.3) WXGTK12=1
22677 ;;
e6cc62c6
VS
22678 *) { { echo "$as_me:$LINENO: error:
22679Please check that gtk-config is in path, the directory
22680where GTK+ libraries are installed (returned by
22681'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22682equivalent variable and GTK+ is version 1.2.3 or above.
22683 " >&5
22684echo "$as_me: error:
247f5006
VZ
22685Please check that gtk-config is in path, the directory
22686where GTK+ libraries are installed (returned by
22687'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22688equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
22689 " >&2;}
22690 { (exit 1); exit 1; }; }
21d1c967
GD
22691 ;;
22692 esac
22693
b13cd66e
VZ
22694 if test "$WXGTK20" = 1; then
22695 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 22696
f09359cf
VS
22697 succeeded=no
22698
22699 if test -z "$PKG_CONFIG"; then
22700 # Extract the first word of "pkg-config", so it can be a program name with args.
22701set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22702echo "$as_me:$LINENO: checking for $ac_word" >&5
22703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22704if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22705 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 22706else
e6cc62c6
VS
22707 case $PKG_CONFIG in
22708 [\\/]* | ?:[\\/]*)
f09359cf
VS
22709 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22710 ;;
f09359cf 22711 *)
e6cc62c6
VS
22712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22713for as_dir in $PATH
22714do
22715 IFS=$as_save_IFS
22716 test -z "$as_dir" && as_dir=.
22717 for ac_exec_ext in '' $ac_executable_extensions; do
22718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22719 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22721 break 2
22722 fi
22723done
22724done
22725
f09359cf
VS
22726 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22727 ;;
22728esac
22729fi
e6cc62c6
VS
22730PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22731
f09359cf 22732if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22733 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22734echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 22735else
e6cc62c6
VS
22736 echo "$as_me:$LINENO: result: no" >&5
22737echo "${ECHO_T}no" >&6
f09359cf
VS
22738fi
22739
22740 fi
22741
22742 if test "$PKG_CONFIG" = "no" ; then
22743 echo "*** The pkg-config script could not be found. Make sure it is"
22744 echo "*** in your path, or set the PKG_CONFIG environment variable"
22745 echo "*** to the full path to pkg-config."
22746 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22747 else
22748 PKG_CONFIG_MIN_VERSION=0.9.0
22749 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22750 echo "$as_me:$LINENO: checking for pangoft2" >&5
22751echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
22752
22753 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22754 echo "$as_me:$LINENO: result: yes" >&5
22755echo "${ECHO_T}yes" >&6
f09359cf
VS
22756 succeeded=yes
22757
e6cc62c6
VS
22758 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22759echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 22760 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22761 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22762echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 22763
e6cc62c6
VS
22764 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22765echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 22766 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22767 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22768echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
22769 else
22770 PANGOFT2_CFLAGS=""
22771 PANGOFT2_LIBS=""
e6cc62c6 22772 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
22773 ## do set a variable so people can do so.
22774 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22775
f09359cf
VS
22776 fi
22777
e6cc62c6
VS
22778
22779
f09359cf
VS
22780 else
22781 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22782 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22783 fi
22784 fi
22785
22786 if test $succeeded = yes; then
e6cc62c6 22787
b13cd66e 22788 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22789 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22790
f09359cf 22791 else
e6cc62c6
VS
22792
22793 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22794echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 22795 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22796
22797
f09359cf
VS
22798 fi
22799
b13cd66e 22800 fi
2b5f62a0
VZ
22801 else
22802 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
22803 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22804echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
22805 wxUSE_UNICODE=no
22806 fi
22807 fi
22808
22809 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
22810
22811for ac_func in poll
2b5f62a0 22812do
e6cc62c6
VS
22813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22814echo "$as_me:$LINENO: checking for $ac_func" >&5
22815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22816if eval "test \"\${$as_ac_var+set}\" = set"; then
22817 echo $ECHO_N "(cached) $ECHO_C" >&6
22818else
22819 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22820/* confdefs.h. */
22821_ACEOF
22822cat confdefs.h >>conftest.$ac_ext
22823cat >>conftest.$ac_ext <<_ACEOF
22824/* end confdefs.h. */
243f8ae5
VS
22825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22827#define $ac_func innocuous_$ac_func
22828
2b5f62a0 22829/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22830 which can conflict with char $ac_func (); below.
22831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22832 <limits.h> exists even on freestanding compilers. */
243f8ae5 22833
e6cc62c6
VS
22834#ifdef __STDC__
22835# include <limits.h>
22836#else
22837# include <assert.h>
22838#endif
243f8ae5
VS
22839
22840#undef $ac_func
22841
2b5f62a0 22842/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22843#ifdef __cplusplus
22844extern "C"
22845{
22846#endif
2b5f62a0 22847/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22848 builtin and then its argument prototype would still apply. */
22849char $ac_func ();
2b5f62a0
VZ
22850/* The GNU C library defines this for functions which it implements
22851 to always fail with ENOSYS. Some functions are actually named
22852 something starting with __ and the normal name is an alias. */
22853#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22854choke me
22855#else
e6cc62c6
VS
22856char (*f) () = $ac_func;
22857#endif
22858#ifdef __cplusplus
22859}
2b5f62a0
VZ
22860#endif
22861
e6cc62c6
VS
22862int
22863main ()
22864{
22865return f != $ac_func;
22866 ;
22867 return 0;
22868}
22869_ACEOF
22870rm -f conftest.$ac_objext conftest$ac_exeext
22871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 22872 (eval $ac_link) 2>conftest.er1
e6cc62c6 22873 ac_status=$?
243f8ae5
VS
22874 grep -v '^ *+' conftest.er1 >conftest.err
22875 rm -f conftest.er1
22876 cat conftest.err >&5
e6cc62c6
VS
22877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } &&
243f8ae5
VS
22879 { ac_try='test -z "$ac_c_werror_flag"
22880 || test ! -s conftest.err'
22881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22882 (eval $ac_try) 2>&5
22883 ac_status=$?
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); }; } &&
22886 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22888 (eval $ac_try) 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); }; }; then
22892 eval "$as_ac_var=yes"
22893else
22894 echo "$as_me: failed program was:" >&5
22895sed 's/^/| /' conftest.$ac_ext >&5
22896
22897eval "$as_ac_var=no"
22898fi
243f8ae5
VS
22899rm -f conftest.err conftest.$ac_objext \
22900 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22901fi
22902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22903echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22904if test `eval echo '${'$as_ac_var'}'` = yes; then
22905 cat >>confdefs.h <<_ACEOF
22906#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22907_ACEOF
2b5f62a0 22908
2b5f62a0
VZ
22909fi
22910done
22911
f09359cf
VS
22912 fi
22913
21d1c967 22914 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 22915 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
22916
22917 AFMINSTALL=afminstall
22918 TOOLKIT=GTK
22919 GUIDIST=GTK_DIST
22920
e6cc62c6
VS
22921 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22922echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22923if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22924 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22925else
e6cc62c6 22926 ac_check_lib_save_LIBS=$LIBS
21d1c967 22927LIBS="-lgdk $LIBS"
e6cc62c6 22928cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22929/* confdefs.h. */
22930_ACEOF
22931cat confdefs.h >>conftest.$ac_ext
22932cat >>conftest.$ac_ext <<_ACEOF
22933/* end confdefs.h. */
22934
5c6fa7d2 22935/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22936#ifdef __cplusplus
22937extern "C"
22938#endif
5c6fa7d2 22939/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22940 builtin and then its argument prototype would still apply. */
22941char gdk_im_open ();
22942int
22943main ()
22944{
22945gdk_im_open ();
22946 ;
22947 return 0;
22948}
22949_ACEOF
22950rm -f conftest.$ac_objext conftest$ac_exeext
22951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 22952 (eval $ac_link) 2>conftest.er1
e6cc62c6 22953 ac_status=$?
243f8ae5
VS
22954 grep -v '^ *+' conftest.er1 >conftest.err
22955 rm -f conftest.er1
22956 cat conftest.err >&5
e6cc62c6
VS
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } &&
243f8ae5
VS
22959 { ac_try='test -z "$ac_c_werror_flag"
22960 || test ! -s conftest.err'
22961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22962 (eval $ac_try) 2>&5
22963 ac_status=$?
22964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965 (exit $ac_status); }; } &&
22966 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22968 (eval $ac_try) 2>&5
22969 ac_status=$?
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); }; }; then
22972 ac_cv_lib_gdk_gdk_im_open=yes
22973else
22974 echo "$as_me: failed program was:" >&5
22975sed 's/^/| /' conftest.$ac_ext >&5
22976
22977ac_cv_lib_gdk_gdk_im_open=no
22978fi
243f8ae5
VS
22979rm -f conftest.err conftest.$ac_objext \
22980 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22981LIBS=$ac_check_lib_save_LIBS
22982fi
22983echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22984echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22985if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22986 cat >>confdefs.h <<\_ACEOF
21d1c967 22987#define HAVE_XIM 1
e6cc62c6 22988_ACEOF
21d1c967 22989
90dd450c 22990fi
1e6feb95 22991
21d1c967 22992 fi
1e6feb95 22993
21d1c967 22994 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
22995 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22996echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 22997 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
22998 echo "$as_me:$LINENO: result: not found" >&5
22999echo "${ECHO_T}not found" >&6
23000 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
23001echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
23002 { (exit 1); exit 1; }; }
21d1c967 23003 else
e6cc62c6
VS
23004 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
23005echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
23006 fi
23007
e6cc62c6
VS
23008 echo "$as_me:$LINENO: checking for libmgl location" >&5
23009echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 23010 case "${host}" in
21d1c967 23011 *-*-linux* )
e46d2a18
VS
23012 if test "x$wxUSE_SHARED" = xyes ; then
23013 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 23014 else
e46d2a18 23015 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 23016 fi
21d1c967
GD
23017 ;;
23018 *-pc-msdosdjgpp )
63a76696 23019 mgl_os_candidates="dos32/dj2"
21d1c967
GD
23020 ;;
23021 *)
e6cc62c6
VS
23022 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
23023echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
23024 { (exit 1); exit 1; }; }
21d1c967 23025 esac
1e6feb95 23026
21d1c967 23027 mgl_lib_type=""
63a76696
VS
23028 mgl_os=""
23029
23030 for mgl_os_i in $mgl_os_candidates ; do
23031 if test "x$mgl_os" = x ; then
23032 if test "$wxUSE_DEBUG_FLAG" = yes ; then
23033 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
23034 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
23035 mgl_lib_type=debug
23036 mgl_os=$mgl_os_i
23037 fi
23038 fi
23039 if test "x$mgl_lib_type" = x ; then
23040 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
23041 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
23042 mgl_lib_type=release
23043 mgl_os=$mgl_os_i
23044 fi
23045 fi
21d1c967 23046 fi
63a76696 23047 done
2224580a 23048
63a76696 23049 if test "x$mgl_os" = x ; then
e6cc62c6
VS
23050 echo "$as_me:$LINENO: result: not found" >&5
23051echo "${ECHO_T}not found" >&6
23052 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
23053echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
23054 { (exit 1); exit 1; }; }
63a76696 23055 fi
e6cc62c6
VS
23056 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
23057echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 23058
1d1b75ac
VZ
23059 wxUSE_UNIVERSAL="yes"
23060
21d1c967
GD
23061 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
23062 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
23063
90dd450c 23064 AFMINSTALL=afminstall
21d1c967
GD
23065 TOOLKIT=MGL
23066 GUIDIST=MGL_DIST
23067 fi
dad6c0ea 23068
21d1c967 23069 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
23070 echo "$as_me:$LINENO: checking for MicroWindows" >&5
23071echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 23072 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
23073 echo "$as_me:$LINENO: result: not found" >&5
23074echo "${ECHO_T}not found" >&6
23075 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
23076echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
23077 { (exit 1); exit 1; }; }
21d1c967 23078 else
e6cc62c6
VS
23079 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
23080echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 23081 fi
f6bcfd97 23082
21d1c967 23083 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
23084 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
23085echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 23086 else
e6cc62c6
VS
23087 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
23088echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
23089 { (exit 1); exit 1; }; }
90dd450c 23090 fi
0b2effe9 23091
21d1c967
GD
23092 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
23093 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
23094
1d1b75ac
VZ
23095 wxUSE_UNIVERSAL="yes"
23096
21d1c967
GD
23097 AFMINSTALL=afminstall
23098 TOOLKIT=MICROWIN
23099 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
23100
23101 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 23102 fi
f6bcfd97 23103
21d1c967 23104 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
23105 echo "$as_me:$LINENO: checking for X" >&5
23106echo $ECHO_N "checking for X... $ECHO_C" >&6
23107
d8356fa3 23108
21d1c967
GD
23109# Check whether --with-x or --without-x was given.
23110if test "${with_x+set}" = set; then
23111 withval="$with_x"
2224580a 23112
e6cc62c6 23113fi;
21d1c967
GD
23114# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23115if test "x$with_x" = xno; then
23116 # The user explicitly disabled X.
23117 have_x=disabled
23118else
23119 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23120 # Both variables are already set.
23121 have_x=yes
23122 else
e6cc62c6
VS
23123 if test "${ac_cv_have_x+set}" = set; then
23124 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
23125else
23126 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
23127ac_x_includes=no ac_x_libraries=no
23128rm -fr conftest.dir
23129if mkdir conftest.dir; then
23130 cd conftest.dir
21d1c967 23131 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 23132 cat >Imakefile <<'_ACEOF'
21d1c967
GD
23133acfindx:
23134 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 23135_ACEOF
21d1c967
GD
23136 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
23137 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23138 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23139 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23140 for ac_extension in a so sl; do
23141 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
243f8ae5
VS
23142 test -f $ac_im_libdir/libX11.$ac_extension; then
23143 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
23144 fi
23145 done
23146 # Screen out bogus values from the imake configuration. They are
23147 # bogus both because they are the default anyway, and because
23148 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 23149 case $ac_im_incroot in
21d1c967 23150 /usr/include) ;;
e6cc62c6 23151 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 23152 esac
e6cc62c6 23153 case $ac_im_usrlibdir in
21d1c967 23154 /usr/lib | /lib) ;;
e6cc62c6 23155 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
23156 esac
23157 fi
23158 cd ..
e6cc62c6 23159 rm -fr conftest.dir
21d1c967 23160fi
10f2d63a 23161
e6cc62c6
VS
23162# Standard set of common directories for X headers.
23163# Check X11 before X11Rn because it is often a symlink to the current release.
23164ac_x_header_dirs='
23165/usr/X11/include
23166/usr/X11R6/include
23167/usr/X11R5/include
23168/usr/X11R4/include
23169
23170/usr/include/X11
23171/usr/include/X11R6
23172/usr/include/X11R5
23173/usr/include/X11R4
23174
23175/usr/local/X11/include
23176/usr/local/X11R6/include
23177/usr/local/X11R5/include
23178/usr/local/X11R4/include
23179
23180/usr/local/include/X11
23181/usr/local/include/X11R6
23182/usr/local/include/X11R5
23183/usr/local/include/X11R4
23184
23185/usr/X386/include
23186/usr/x386/include
23187/usr/XFree86/include/X11
23188
23189/usr/include
23190/usr/local/include
23191/usr/unsupported/include
23192/usr/athena/include
23193/usr/local/x11r5/include
23194/usr/lpp/Xamples/include
23195
23196/usr/openwin/include
23197/usr/openwin/share/include'
23198
23199if test "$ac_x_includes" = no; then
23200 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 23201 # First, try using that file with no special directory specified.
e6cc62c6 23202 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23203/* confdefs.h. */
23204_ACEOF
23205cat confdefs.h >>conftest.$ac_ext
23206cat >>conftest.$ac_ext <<_ACEOF
23207/* end confdefs.h. */
23208#include <X11/Intrinsic.h>
23209_ACEOF
23210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23212 ac_status=$?
23213 grep -v '^ *+' conftest.er1 >conftest.err
23214 rm -f conftest.er1
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23217 (exit $ac_status); } >/dev/null; then
23218 if test -s conftest.err; then
23219 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 23220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
23221 else
23222 ac_cpp_err=
23223 fi
23224else
23225 ac_cpp_err=yes
23226fi
23227if test -z "$ac_cpp_err"; then
21d1c967
GD
23228 # We can compile using X headers with no special include directory.
23229ac_x_includes=
90dd450c 23230else
e6cc62c6
VS
23231 echo "$as_me: failed program was:" >&5
23232sed 's/^/| /' conftest.$ac_ext >&5
23233
23234 for ac_dir in $ac_x_header_dirs; do
23235 if test -r "$ac_dir/X11/Intrinsic.h"; then
23236 ac_x_includes=$ac_dir
23237 break
23238 fi
23239done
3a922bb4 23240fi
e6cc62c6
VS
23241rm -f conftest.err conftest.$ac_ext
23242fi # $ac_x_includes = no
10f2d63a 23243
e6cc62c6 23244if test "$ac_x_libraries" = no; then
21d1c967 23245 # Check for the libraries.
21d1c967
GD
23246 # See if we find them without any special options.
23247 # Don't add to $LIBS permanently.
e6cc62c6
VS
23248 ac_save_LIBS=$LIBS
23249 LIBS="-lXt $LIBS"
23250 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23251/* confdefs.h. */
23252_ACEOF
23253cat confdefs.h >>conftest.$ac_ext
23254cat >>conftest.$ac_ext <<_ACEOF
23255/* end confdefs.h. */
23256#include <X11/Intrinsic.h>
23257int
23258main ()
23259{
23260XtMalloc (0)
23261 ;
23262 return 0;
23263}
23264_ACEOF
23265rm -f conftest.$ac_objext conftest$ac_exeext
23266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 23267 (eval $ac_link) 2>conftest.er1
e6cc62c6 23268 ac_status=$?
243f8ae5
VS
23269 grep -v '^ *+' conftest.er1 >conftest.err
23270 rm -f conftest.er1
23271 cat conftest.err >&5
e6cc62c6
VS
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } &&
243f8ae5
VS
23274 { ac_try='test -z "$ac_c_werror_flag"
23275 || test ! -s conftest.err'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23278 ac_status=$?
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; } &&
23281 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283 (eval $ac_try) 2>&5
23284 ac_status=$?
23285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); }; }; then
23287 LIBS=$ac_save_LIBS
21d1c967
GD
23288# We can link X programs with no special library path.
23289ac_x_libraries=
3a922bb4 23290else
e6cc62c6
VS
23291 echo "$as_me: failed program was:" >&5
23292sed 's/^/| /' conftest.$ac_ext >&5
23293
23294LIBS=$ac_save_LIBS
23295for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 23296do
e6cc62c6 23297 # Don't even attempt the hair of trying to link an X program!
21d1c967 23298 for ac_extension in a so sl; do
e6cc62c6 23299 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
23300 ac_x_libraries=$ac_dir
23301 break 2
23302 fi
23303 done
23304done
3a922bb4 23305fi
243f8ae5
VS
23306rm -f conftest.err conftest.$ac_objext \
23307 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23308fi # $ac_x_libraries = no
90dd450c 23309
e6cc62c6 23310if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
23311 # Didn't find X anywhere. Cache the known absence of X.
23312 ac_cv_have_x="have_x=no"
23313else
23314 # Record where we found X for the cache.
23315 ac_cv_have_x="have_x=yes \
243f8ae5 23316 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 23317fi
21d1c967 23318fi
e6cc62c6 23319
21d1c967
GD
23320 fi
23321 eval "$ac_cv_have_x"
23322fi # $with_x != no
90dd450c 23323
21d1c967 23324if test "$have_x" != yes; then
e6cc62c6
VS
23325 echo "$as_me:$LINENO: result: $have_x" >&5
23326echo "${ECHO_T}$have_x" >&6
21d1c967
GD
23327 no_x=yes
23328else
23329 # If each of the values was on the command line, it overrides each guess.
23330 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23331 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23332 # Update the cache value to reflect the command line values.
23333 ac_cv_have_x="have_x=yes \
23334 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
23335 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23336echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 23337fi
90dd450c 23338
21d1c967 23339if test "$no_x" = yes; then
90dd450c 23340 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
23341
23342cat >>confdefs.h <<\_ACEOF
90dd450c 23343#define X_DISPLAY_MISSING 1
e6cc62c6 23344_ACEOF
90dd450c
VZ
23345
23346 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23347else
23348 if test -n "$x_includes"; then
23349 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 23350 fi
3a922bb4 23351
90dd450c
VZ
23352 # It would also be nice to do this for all -L options, not just this one.
23353 if test -n "$x_libraries"; then
23354 X_LIBS="$X_LIBS -L$x_libraries"
23355 # For Solaris; some versions of Sun CC require a space after -R and
23356 # others require no space. Words are not sufficient . . . .
e6cc62c6 23357 case `(uname -sr) 2>/dev/null` in
90dd450c 23358 "SunOS 5"*)
e6cc62c6
VS
23359 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23360echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23361 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23362 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23363/* confdefs.h. */
23364_ACEOF
23365cat confdefs.h >>conftest.$ac_ext
23366cat >>conftest.$ac_ext <<_ACEOF
23367/* end confdefs.h. */
23368
23369int
23370main ()
23371{
90dd450c 23372
e6cc62c6
VS
23373 ;
23374 return 0;
23375}
23376_ACEOF
23377rm -f conftest.$ac_objext conftest$ac_exeext
23378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 23379 (eval $ac_link) 2>conftest.er1
e6cc62c6 23380 ac_status=$?
243f8ae5
VS
23381 grep -v '^ *+' conftest.er1 >conftest.err
23382 rm -f conftest.er1
23383 cat conftest.err >&5
e6cc62c6
VS
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); } &&
243f8ae5
VS
23386 { ac_try='test -z "$ac_c_werror_flag"
23387 || test ! -s conftest.err'
23388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389 (eval $ac_try) 2>&5
23390 ac_status=$?
23391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); }; } &&
23393 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23395 (eval $ac_try) 2>&5
23396 ac_status=$?
23397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23398 (exit $ac_status); }; }; then
90dd450c 23399 ac_R_nospace=yes
3a922bb4 23400else
e6cc62c6
VS
23401 echo "$as_me: failed program was:" >&5
23402sed 's/^/| /' conftest.$ac_ext >&5
23403
23404ac_R_nospace=no
3a922bb4 23405fi
243f8ae5
VS
23406rm -f conftest.err conftest.$ac_objext \
23407 conftest$ac_exeext conftest.$ac_ext
90dd450c 23408 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23409 echo "$as_me:$LINENO: result: no" >&5
23410echo "${ECHO_T}no" >&6
90dd450c
VZ
23411 X_LIBS="$X_LIBS -R$x_libraries"
23412 else
23413 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 23414 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23415/* confdefs.h. */
23416_ACEOF
23417cat confdefs.h >>conftest.$ac_ext
23418cat >>conftest.$ac_ext <<_ACEOF
23419/* end confdefs.h. */
23420
23421int
23422main ()
23423{
6f754473 23424
e6cc62c6
VS
23425 ;
23426 return 0;
23427}
23428_ACEOF
23429rm -f conftest.$ac_objext conftest$ac_exeext
23430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 23431 (eval $ac_link) 2>conftest.er1
e6cc62c6 23432 ac_status=$?
243f8ae5
VS
23433 grep -v '^ *+' conftest.er1 >conftest.err
23434 rm -f conftest.er1
23435 cat conftest.err >&5
e6cc62c6
VS
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } &&
243f8ae5
VS
23438 { ac_try='test -z "$ac_c_werror_flag"
23439 || test ! -s conftest.err'
23440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441 (eval $ac_try) 2>&5
23442 ac_status=$?
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); }; } &&
23445 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23447 (eval $ac_try) 2>&5
23448 ac_status=$?
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); }; }; then
90dd450c
VZ
23451 ac_R_space=yes
23452else
e6cc62c6
VS
23453 echo "$as_me: failed program was:" >&5
23454sed 's/^/| /' conftest.$ac_ext >&5
23455
23456ac_R_space=no
90dd450c 23457fi
243f8ae5
VS
23458rm -f conftest.err conftest.$ac_objext \
23459 conftest$ac_exeext conftest.$ac_ext
90dd450c 23460 if test $ac_R_space = yes; then
e6cc62c6
VS
23461 echo "$as_me:$LINENO: result: yes" >&5
23462echo "${ECHO_T}yes" >&6
90dd450c
VZ
23463 X_LIBS="$X_LIBS -R $x_libraries"
23464 else
e6cc62c6
VS
23465 echo "$as_me:$LINENO: result: neither works" >&5
23466echo "${ECHO_T}neither works" >&6
90dd450c
VZ
23467 fi
23468 fi
e6cc62c6 23469 LIBS=$ac_xsave_LIBS
90dd450c
VZ
23470 esac
23471 fi
23472
23473 # Check for system-dependent libraries X programs must link with.
23474 # Do this before checking for the system-independent R6 libraries
23475 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 23476
90dd450c
VZ
23477 if test "$ISC" = yes; then
23478 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23479 else
e6cc62c6
VS
23480 # Martyn Johnson says this is needed for Ultrix, if the X
23481 # libraries were built with DECnet support. And Karl Berry says
90dd450c 23482 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23483 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23484 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23485/* confdefs.h. */
23486_ACEOF
23487cat confdefs.h >>conftest.$ac_ext
23488cat >>conftest.$ac_ext <<_ACEOF
23489/* end confdefs.h. */
23490
247f5006 23491/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23492#ifdef __cplusplus
23493extern "C"
23494#endif
247f5006 23495/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23496 builtin and then its argument prototype would still apply. */
23497char XOpenDisplay ();
23498int
23499main ()
23500{
23501XOpenDisplay ();
23502 ;
23503 return 0;
23504}
23505_ACEOF
23506rm -f conftest.$ac_objext conftest$ac_exeext
23507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 23508 (eval $ac_link) 2>conftest.er1
e6cc62c6 23509 ac_status=$?
243f8ae5
VS
23510 grep -v '^ *+' conftest.er1 >conftest.err
23511 rm -f conftest.er1
23512 cat conftest.err >&5
e6cc62c6
VS
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); } &&
243f8ae5
VS
23515 { ac_try='test -z "$ac_c_werror_flag"
23516 || test ! -s conftest.err'
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; } &&
23522 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23524 (eval $ac_try) 2>&5
23525 ac_status=$?
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); }; }; then
23528 :
23529else
23530 echo "$as_me: failed program was:" >&5
23531sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23532
e6cc62c6
VS
23533echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23534echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23535if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23536 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23537else
e6cc62c6
VS
23538 ac_check_lib_save_LIBS=$LIBS
23539LIBS="-ldnet $LIBS"
23540cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23541/* confdefs.h. */
23542_ACEOF
23543cat confdefs.h >>conftest.$ac_ext
23544cat >>conftest.$ac_ext <<_ACEOF
23545/* end confdefs.h. */
a0b9e27f 23546
e6cc62c6
VS
23547/* Override any gcc2 internal prototype to avoid an error. */
23548#ifdef __cplusplus
23549extern "C"
23550#endif
23551/* We use char because int might match the return type of a gcc2
23552 builtin and then its argument prototype would still apply. */
23553char dnet_ntoa ();
23554int
23555main ()
23556{
23557dnet_ntoa ();
23558 ;
23559 return 0;
23560}
23561_ACEOF
23562rm -f conftest.$ac_objext conftest$ac_exeext
23563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 23564 (eval $ac_link) 2>conftest.er1
e6cc62c6 23565 ac_status=$?
243f8ae5
VS
23566 grep -v '^ *+' conftest.er1 >conftest.err
23567 rm -f conftest.er1
23568 cat conftest.err >&5
e6cc62c6
VS
23569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570 (exit $ac_status); } &&
243f8ae5
VS
23571 { ac_try='test -z "$ac_c_werror_flag"
23572 || test ! -s conftest.err'
23573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23574 (eval $ac_try) 2>&5
23575 ac_status=$?
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); }; } &&
23578 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23580 (eval $ac_try) 2>&5
23581 ac_status=$?
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); }; }; then
23584 ac_cv_lib_dnet_dnet_ntoa=yes
23585else
23586 echo "$as_me: failed program was:" >&5
23587sed 's/^/| /' conftest.$ac_ext >&5
23588
23589ac_cv_lib_dnet_dnet_ntoa=no
23590fi
243f8ae5
VS
23591rm -f conftest.err conftest.$ac_objext \
23592 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23593LIBS=$ac_check_lib_save_LIBS
23594fi
23595echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23596echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23597if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 23598 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
23599fi
23600
90dd450c 23601 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23602 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23603echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23604if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23605 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23606else
e6cc62c6 23607 ac_check_lib_save_LIBS=$LIBS
90dd450c 23608LIBS="-ldnet_stub $LIBS"
e6cc62c6 23609cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23610/* confdefs.h. */
23611_ACEOF
23612cat confdefs.h >>conftest.$ac_ext
23613cat >>conftest.$ac_ext <<_ACEOF
23614/* end confdefs.h. */
23615
90dd450c 23616/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23617#ifdef __cplusplus
23618extern "C"
23619#endif
90dd450c 23620/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23621 builtin and then its argument prototype would still apply. */
23622char dnet_ntoa ();
23623int
23624main ()
23625{
23626dnet_ntoa ();
23627 ;
23628 return 0;
23629}
23630_ACEOF
23631rm -f conftest.$ac_objext conftest$ac_exeext
23632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 23633 (eval $ac_link) 2>conftest.er1
e6cc62c6 23634 ac_status=$?
243f8ae5
VS
23635 grep -v '^ *+' conftest.er1 >conftest.err
23636 rm -f conftest.er1
23637 cat conftest.err >&5
e6cc62c6
VS
23638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639 (exit $ac_status); } &&
243f8ae5
VS
23640 { ac_try='test -z "$ac_c_werror_flag"
23641 || test ! -s conftest.err'
23642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643 (eval $ac_try) 2>&5
23644 ac_status=$?
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; } &&
23647 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649 (eval $ac_try) 2>&5
23650 ac_status=$?
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); }; }; then
23653 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23654else
23655 echo "$as_me: failed program was:" >&5
23656sed 's/^/| /' conftest.$ac_ext >&5
23657
23658ac_cv_lib_dnet_stub_dnet_ntoa=no
23659fi
243f8ae5
VS
23660rm -f conftest.err conftest.$ac_objext \
23661 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23662LIBS=$ac_check_lib_save_LIBS
23663fi
23664echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23665echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23666if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 23667 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
23668fi
23669
90dd450c 23670 fi
e6cc62c6 23671fi
243f8ae5
VS
23672rm -f conftest.err conftest.$ac_objext \
23673 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23674 LIBS="$ac_xsave_LIBS"
978f1259 23675
90dd450c
VZ
23676 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23677 # to get the SysV transport functions.
e6cc62c6 23678 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
23679 # needs -lnsl.
23680 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23681 # on Irix 5.2, according to T.E. Dickey.
23682 # The functions gethostbyname, getservbyname, and inet_addr are
23683 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23684 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23685echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23686if test "${ac_cv_func_gethostbyname+set}" = set; then
23687 echo $ECHO_N "(cached) $ECHO_C" >&6
23688else
23689 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23690/* confdefs.h. */
23691_ACEOF
23692cat confdefs.h >>conftest.$ac_ext
23693cat >>conftest.$ac_ext <<_ACEOF
23694/* end confdefs.h. */
243f8ae5
VS
23695/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23696 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23697#define gethostbyname innocuous_gethostbyname
23698
90dd450c 23699/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23700 which can conflict with char gethostbyname (); below.
23701 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23702 <limits.h> exists even on freestanding compilers. */
243f8ae5 23703
e6cc62c6
VS
23704#ifdef __STDC__
23705# include <limits.h>
23706#else
23707# include <assert.h>
23708#endif
243f8ae5
VS
23709
23710#undef gethostbyname
23711
90dd450c 23712/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23713#ifdef __cplusplus
23714extern "C"
23715{
23716#endif
90dd450c 23717/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23718 builtin and then its argument prototype would still apply. */
23719char gethostbyname ();
90dd450c
VZ
23720/* The GNU C library defines this for functions which it implements
23721 to always fail with ENOSYS. Some functions are actually named
23722 something starting with __ and the normal name is an alias. */
23723#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23724choke me
23725#else
e6cc62c6
VS
23726char (*f) () = gethostbyname;
23727#endif
23728#ifdef __cplusplus
23729}
90dd450c 23730#endif
978f1259 23731
e6cc62c6
VS
23732int
23733main ()
23734{
23735return f != gethostbyname;
23736 ;
23737 return 0;
23738}
23739_ACEOF
23740rm -f conftest.$ac_objext conftest$ac_exeext
23741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 23742 (eval $ac_link) 2>conftest.er1
e6cc62c6 23743 ac_status=$?
243f8ae5
VS
23744 grep -v '^ *+' conftest.er1 >conftest.err
23745 rm -f conftest.er1
23746 cat conftest.err >&5
e6cc62c6
VS
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); } &&
243f8ae5
VS
23749 { ac_try='test -z "$ac_c_werror_flag"
23750 || test ! -s conftest.err'
23751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23752 (eval $ac_try) 2>&5
23753 ac_status=$?
23754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); }; } &&
23756 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23758 (eval $ac_try) 2>&5
23759 ac_status=$?
23760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761 (exit $ac_status); }; }; then
23762 ac_cv_func_gethostbyname=yes
23763else
23764 echo "$as_me: failed program was:" >&5
23765sed 's/^/| /' conftest.$ac_ext >&5
23766
23767ac_cv_func_gethostbyname=no
23768fi
243f8ae5
VS
23769rm -f conftest.err conftest.$ac_objext \
23770 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23771fi
23772echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23773echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 23774
90dd450c 23775 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23776 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23777echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23778if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23779 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23780else
e6cc62c6 23781 ac_check_lib_save_LIBS=$LIBS
90dd450c 23782LIBS="-lnsl $LIBS"
e6cc62c6 23783cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23784/* confdefs.h. */
23785_ACEOF
23786cat confdefs.h >>conftest.$ac_ext
23787cat >>conftest.$ac_ext <<_ACEOF
23788/* end confdefs.h. */
23789
90dd450c 23790/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23791#ifdef __cplusplus
23792extern "C"
23793#endif
90dd450c 23794/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23795 builtin and then its argument prototype would still apply. */
23796char gethostbyname ();
23797int
23798main ()
23799{
23800gethostbyname ();
23801 ;
23802 return 0;
23803}
23804_ACEOF
23805rm -f conftest.$ac_objext conftest$ac_exeext
23806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 23807 (eval $ac_link) 2>conftest.er1
e6cc62c6 23808 ac_status=$?
243f8ae5
VS
23809 grep -v '^ *+' conftest.er1 >conftest.err
23810 rm -f conftest.er1
23811 cat conftest.err >&5
e6cc62c6
VS
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } &&
243f8ae5
VS
23814 { ac_try='test -z "$ac_c_werror_flag"
23815 || test ! -s conftest.err'
23816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23817 (eval $ac_try) 2>&5
23818 ac_status=$?
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); }; } &&
23821 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23823 (eval $ac_try) 2>&5
23824 ac_status=$?
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; }; then
23827 ac_cv_lib_nsl_gethostbyname=yes
23828else
23829 echo "$as_me: failed program was:" >&5
23830sed 's/^/| /' conftest.$ac_ext >&5
23831
23832ac_cv_lib_nsl_gethostbyname=no
23833fi
243f8ae5
VS
23834rm -f conftest.err conftest.$ac_objext \
23835 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23836LIBS=$ac_check_lib_save_LIBS
23837fi
23838echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23839echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23840if test $ac_cv_lib_nsl_gethostbyname = yes; then
23841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23842fi
247f5006 23843
e6cc62c6 23844 if test $ac_cv_lib_nsl_gethostbyname = no; then
243f8ae5 23845 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23846echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23847if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23848 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23849else
e6cc62c6
VS
23850 ac_check_lib_save_LIBS=$LIBS
23851LIBS="-lbsd $LIBS"
23852cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23853/* confdefs.h. */
23854_ACEOF
23855cat confdefs.h >>conftest.$ac_ext
23856cat >>conftest.$ac_ext <<_ACEOF
23857/* end confdefs.h. */
23858
23859/* Override any gcc2 internal prototype to avoid an error. */
23860#ifdef __cplusplus
23861extern "C"
23862#endif
23863/* We use char because int might match the return type of a gcc2
23864 builtin and then its argument prototype would still apply. */
23865char gethostbyname ();
23866int
23867main ()
23868{
23869gethostbyname ();
23870 ;
23871 return 0;
23872}
23873_ACEOF
23874rm -f conftest.$ac_objext conftest$ac_exeext
23875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 23876 (eval $ac_link) 2>conftest.er1
e6cc62c6 23877 ac_status=$?
243f8ae5
VS
23878 grep -v '^ *+' conftest.er1 >conftest.err
23879 rm -f conftest.er1
23880 cat conftest.err >&5
e6cc62c6
VS
23881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882 (exit $ac_status); } &&
243f8ae5
VS
23883 { ac_try='test -z "$ac_c_werror_flag"
23884 || test ! -s conftest.err'
23885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23886 (eval $ac_try) 2>&5
23887 ac_status=$?
23888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23889 (exit $ac_status); }; } &&
23890 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23892 (eval $ac_try) 2>&5
23893 ac_status=$?
23894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895 (exit $ac_status); }; }; then
23896 ac_cv_lib_bsd_gethostbyname=yes
23897else
23898 echo "$as_me: failed program was:" >&5
23899sed 's/^/| /' conftest.$ac_ext >&5
23900
23901ac_cv_lib_bsd_gethostbyname=no
23902fi
243f8ae5
VS
23903rm -f conftest.err conftest.$ac_objext \
23904 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23905LIBS=$ac_check_lib_save_LIBS
23906fi
23907echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23908echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23909if test $ac_cv_lib_bsd_gethostbyname = yes; then
23910 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 23911fi
b12915c1 23912
e6cc62c6 23913 fi
90dd450c
VZ
23914 fi
23915
23916 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23917 # socket/setsockopt and other routines are undefined under SCO ODT
23918 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23919 # on later versions), says Simon Leinen: it contains gethostby*
23920 # variants that don't use the name server (or something). -lsocket
23921 # must be given before -lnsl if both are needed. We assume that
23922 # if connect needs -lnsl, so does gethostbyname.
23923 echo "$as_me:$LINENO: checking for connect" >&5
23924echo $ECHO_N "checking for connect... $ECHO_C" >&6
23925if test "${ac_cv_func_connect+set}" = set; then
23926 echo $ECHO_N "(cached) $ECHO_C" >&6
23927else
23928 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23929/* confdefs.h. */
23930_ACEOF
23931cat confdefs.h >>conftest.$ac_ext
23932cat >>conftest.$ac_ext <<_ACEOF
23933/* end confdefs.h. */
243f8ae5
VS
23934/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23936#define connect innocuous_connect
23937
90dd450c 23938/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23939 which can conflict with char connect (); below.
23940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23941 <limits.h> exists even on freestanding compilers. */
243f8ae5 23942
e6cc62c6
VS
23943#ifdef __STDC__
23944# include <limits.h>
23945#else
23946# include <assert.h>
23947#endif
243f8ae5
VS
23948
23949#undef connect
23950
90dd450c 23951/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23952#ifdef __cplusplus
23953extern "C"
23954{
23955#endif
90dd450c 23956/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23957 builtin and then its argument prototype would still apply. */
23958char connect ();
90dd450c
VZ
23959/* The GNU C library defines this for functions which it implements
23960 to always fail with ENOSYS. Some functions are actually named
23961 something starting with __ and the normal name is an alias. */
23962#if defined (__stub_connect) || defined (__stub___connect)
23963choke me
23964#else
e6cc62c6
VS
23965char (*f) () = connect;
23966#endif
23967#ifdef __cplusplus
23968}
90dd450c
VZ
23969#endif
23970
e6cc62c6
VS
23971int
23972main ()
23973{
23974return f != connect;
23975 ;
23976 return 0;
23977}
23978_ACEOF
23979rm -f conftest.$ac_objext conftest$ac_exeext
23980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 23981 (eval $ac_link) 2>conftest.er1
e6cc62c6 23982 ac_status=$?
243f8ae5
VS
23983 grep -v '^ *+' conftest.er1 >conftest.err
23984 rm -f conftest.er1
23985 cat conftest.err >&5
e6cc62c6
VS
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } &&
243f8ae5
VS
23988 { ac_try='test -z "$ac_c_werror_flag"
23989 || test ! -s conftest.err'
23990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23991 (eval $ac_try) 2>&5
23992 ac_status=$?
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); }; } &&
23995 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997 (eval $ac_try) 2>&5
23998 ac_status=$?
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); }; }; then
24001 ac_cv_func_connect=yes
24002else
24003 echo "$as_me: failed program was:" >&5
24004sed 's/^/| /' conftest.$ac_ext >&5
24005
24006ac_cv_func_connect=no
24007fi
243f8ae5
VS
24008rm -f conftest.err conftest.$ac_objext \
24009 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24010fi
24011echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24012echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 24013
90dd450c 24014 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
24015 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24016echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24017if test "${ac_cv_lib_socket_connect+set}" = set; then
24018 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 24019else
e6cc62c6 24020 ac_check_lib_save_LIBS=$LIBS
90dd450c 24021LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 24022cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24023/* confdefs.h. */
24024_ACEOF
24025cat confdefs.h >>conftest.$ac_ext
24026cat >>conftest.$ac_ext <<_ACEOF
24027/* end confdefs.h. */
24028
90dd450c 24029/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24030#ifdef __cplusplus
24031extern "C"
24032#endif
90dd450c 24033/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24034 builtin and then its argument prototype would still apply. */
24035char connect ();
24036int
24037main ()
24038{
24039connect ();
24040 ;
24041 return 0;
24042}
24043_ACEOF
24044rm -f conftest.$ac_objext conftest$ac_exeext
24045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 24046 (eval $ac_link) 2>conftest.er1
e6cc62c6 24047 ac_status=$?
243f8ae5
VS
24048 grep -v '^ *+' conftest.er1 >conftest.err
24049 rm -f conftest.er1
24050 cat conftest.err >&5
e6cc62c6
VS
24051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052 (exit $ac_status); } &&
243f8ae5
VS
24053 { ac_try='test -z "$ac_c_werror_flag"
24054 || test ! -s conftest.err'
24055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056 (eval $ac_try) 2>&5
24057 ac_status=$?
24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059 (exit $ac_status); }; } &&
24060 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24062 (eval $ac_try) 2>&5
24063 ac_status=$?
24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); }; }; then
24066 ac_cv_lib_socket_connect=yes
24067else
24068 echo "$as_me: failed program was:" >&5
24069sed 's/^/| /' conftest.$ac_ext >&5
24070
24071ac_cv_lib_socket_connect=no
24072fi
243f8ae5
VS
24073rm -f conftest.err conftest.$ac_objext \
24074 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24075LIBS=$ac_check_lib_save_LIBS
24076fi
24077echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24078echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24079if test $ac_cv_lib_socket_connect = yes; then
90dd450c 24080 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 24081fi
77e13408 24082
90dd450c 24083 fi
25d0687a 24084
e6cc62c6
VS
24085 # Guillermo Gomez says -lposix is necessary on A/UX.
24086 echo "$as_me:$LINENO: checking for remove" >&5
24087echo $ECHO_N "checking for remove... $ECHO_C" >&6
24088if test "${ac_cv_func_remove+set}" = set; then
24089 echo $ECHO_N "(cached) $ECHO_C" >&6
24090else
24091 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24092/* confdefs.h. */
24093_ACEOF
24094cat confdefs.h >>conftest.$ac_ext
24095cat >>conftest.$ac_ext <<_ACEOF
24096/* end confdefs.h. */
243f8ae5
VS
24097/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24099#define remove innocuous_remove
24100
90dd450c 24101/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24102 which can conflict with char remove (); below.
24103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24104 <limits.h> exists even on freestanding compilers. */
243f8ae5 24105
e6cc62c6
VS
24106#ifdef __STDC__
24107# include <limits.h>
24108#else
24109# include <assert.h>
24110#endif
243f8ae5
VS
24111
24112#undef remove
24113
90dd450c 24114/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24115#ifdef __cplusplus
24116extern "C"
24117{
24118#endif
90dd450c 24119/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24120 builtin and then its argument prototype would still apply. */
24121char remove ();
90dd450c
VZ
24122/* The GNU C library defines this for functions which it implements
24123 to always fail with ENOSYS. Some functions are actually named
24124 something starting with __ and the normal name is an alias. */
24125#if defined (__stub_remove) || defined (__stub___remove)
24126choke me
24127#else
e6cc62c6
VS
24128char (*f) () = remove;
24129#endif
24130#ifdef __cplusplus
24131}
90dd450c 24132#endif
55e80573 24133
e6cc62c6
VS
24134int
24135main ()
24136{
24137return f != remove;
24138 ;
24139 return 0;
24140}
24141_ACEOF
24142rm -f conftest.$ac_objext conftest$ac_exeext
24143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 24144 (eval $ac_link) 2>conftest.er1
e6cc62c6 24145 ac_status=$?
243f8ae5
VS
24146 grep -v '^ *+' conftest.er1 >conftest.err
24147 rm -f conftest.er1
24148 cat conftest.err >&5
e6cc62c6
VS
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); } &&
243f8ae5
VS
24151 { ac_try='test -z "$ac_c_werror_flag"
24152 || test ! -s conftest.err'
24153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154 (eval $ac_try) 2>&5
24155 ac_status=$?
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); }; } &&
24158 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160 (eval $ac_try) 2>&5
24161 ac_status=$?
24162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163 (exit $ac_status); }; }; then
24164 ac_cv_func_remove=yes
24165else
24166 echo "$as_me: failed program was:" >&5
24167sed 's/^/| /' conftest.$ac_ext >&5
24168
24169ac_cv_func_remove=no
24170fi
243f8ae5
VS
24171rm -f conftest.err conftest.$ac_objext \
24172 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24173fi
24174echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24175echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 24176
90dd450c 24177 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
24178 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24179echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24180if test "${ac_cv_lib_posix_remove+set}" = set; then
24181 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 24182else
e6cc62c6 24183 ac_check_lib_save_LIBS=$LIBS
90dd450c 24184LIBS="-lposix $LIBS"
e6cc62c6 24185cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24186/* confdefs.h. */
24187_ACEOF
24188cat confdefs.h >>conftest.$ac_ext
24189cat >>conftest.$ac_ext <<_ACEOF
24190/* end confdefs.h. */
24191
90dd450c 24192/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24193#ifdef __cplusplus
24194extern "C"
24195#endif
90dd450c 24196/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24197 builtin and then its argument prototype would still apply. */
24198char remove ();
24199int
24200main ()
24201{
24202remove ();
24203 ;
24204 return 0;
24205}
24206_ACEOF
24207rm -f conftest.$ac_objext conftest$ac_exeext
24208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 24209 (eval $ac_link) 2>conftest.er1
e6cc62c6 24210 ac_status=$?
243f8ae5
VS
24211 grep -v '^ *+' conftest.er1 >conftest.err
24212 rm -f conftest.er1
24213 cat conftest.err >&5
e6cc62c6
VS
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } &&
243f8ae5
VS
24216 { ac_try='test -z "$ac_c_werror_flag"
24217 || test ! -s conftest.err'
24218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24219 (eval $ac_try) 2>&5
24220 ac_status=$?
24221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222 (exit $ac_status); }; } &&
24223 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225 (eval $ac_try) 2>&5
24226 ac_status=$?
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }; }; then
24229 ac_cv_lib_posix_remove=yes
24230else
24231 echo "$as_me: failed program was:" >&5
24232sed 's/^/| /' conftest.$ac_ext >&5
24233
24234ac_cv_lib_posix_remove=no
24235fi
243f8ae5
VS
24236rm -f conftest.err conftest.$ac_objext \
24237 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24238LIBS=$ac_check_lib_save_LIBS
24239fi
24240echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24241echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24242if test $ac_cv_lib_posix_remove = yes; then
90dd450c 24243 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 24244fi
f6bcfd97 24245
6fa882bd
RR
24246 fi
24247
90dd450c 24248 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
24249 echo "$as_me:$LINENO: checking for shmat" >&5
24250echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24251if test "${ac_cv_func_shmat+set}" = set; then
24252 echo $ECHO_N "(cached) $ECHO_C" >&6
24253else
24254 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24255/* confdefs.h. */
24256_ACEOF
24257cat confdefs.h >>conftest.$ac_ext
24258cat >>conftest.$ac_ext <<_ACEOF
24259/* end confdefs.h. */
243f8ae5
VS
24260/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24261 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24262#define shmat innocuous_shmat
24263
90dd450c 24264/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24265 which can conflict with char shmat (); below.
24266 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24267 <limits.h> exists even on freestanding compilers. */
243f8ae5 24268
e6cc62c6
VS
24269#ifdef __STDC__
24270# include <limits.h>
24271#else
24272# include <assert.h>
24273#endif
243f8ae5
VS
24274
24275#undef shmat
24276
90dd450c 24277/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24278#ifdef __cplusplus
24279extern "C"
24280{
24281#endif
90dd450c 24282/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24283 builtin and then its argument prototype would still apply. */
24284char shmat ();
90dd450c
VZ
24285/* The GNU C library defines this for functions which it implements
24286 to always fail with ENOSYS. Some functions are actually named
24287 something starting with __ and the normal name is an alias. */
24288#if defined (__stub_shmat) || defined (__stub___shmat)
24289choke me
24290#else
e6cc62c6
VS
24291char (*f) () = shmat;
24292#endif
24293#ifdef __cplusplus
24294}
90dd450c 24295#endif
10f2d63a 24296
e6cc62c6
VS
24297int
24298main ()
24299{
24300return f != shmat;
24301 ;
24302 return 0;
24303}
24304_ACEOF
24305rm -f conftest.$ac_objext conftest$ac_exeext
24306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 24307 (eval $ac_link) 2>conftest.er1
e6cc62c6 24308 ac_status=$?
243f8ae5
VS
24309 grep -v '^ *+' conftest.er1 >conftest.err
24310 rm -f conftest.er1
24311 cat conftest.err >&5
e6cc62c6
VS
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); } &&
243f8ae5
VS
24314 { ac_try='test -z "$ac_c_werror_flag"
24315 || test ! -s conftest.err'
24316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24317 (eval $ac_try) 2>&5
24318 ac_status=$?
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); }; } &&
24321 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24323 (eval $ac_try) 2>&5
24324 ac_status=$?
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); }; }; then
24327 ac_cv_func_shmat=yes
24328else
24329 echo "$as_me: failed program was:" >&5
24330sed 's/^/| /' conftest.$ac_ext >&5
24331
24332ac_cv_func_shmat=no
24333fi
243f8ae5
VS
24334rm -f conftest.err conftest.$ac_objext \
24335 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24336fi
24337echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24338echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 24339
90dd450c 24340 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
24341 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24342echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24343if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24344 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 24345else
e6cc62c6 24346 ac_check_lib_save_LIBS=$LIBS
90dd450c 24347LIBS="-lipc $LIBS"
e6cc62c6 24348cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24349/* confdefs.h. */
24350_ACEOF
24351cat confdefs.h >>conftest.$ac_ext
24352cat >>conftest.$ac_ext <<_ACEOF
24353/* end confdefs.h. */
24354
8284b0c5 24355/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24356#ifdef __cplusplus
24357extern "C"
24358#endif
90dd450c 24359/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24360 builtin and then its argument prototype would still apply. */
24361char shmat ();
24362int
24363main ()
24364{
24365shmat ();
24366 ;
24367 return 0;
24368}
24369_ACEOF
24370rm -f conftest.$ac_objext conftest$ac_exeext
24371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 24372 (eval $ac_link) 2>conftest.er1
e6cc62c6 24373 ac_status=$?
243f8ae5
VS
24374 grep -v '^ *+' conftest.er1 >conftest.err
24375 rm -f conftest.er1
24376 cat conftest.err >&5
e6cc62c6
VS
24377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24378 (exit $ac_status); } &&
243f8ae5
VS
24379 { ac_try='test -z "$ac_c_werror_flag"
24380 || test ! -s conftest.err'
24381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24382 (eval $ac_try) 2>&5
24383 ac_status=$?
24384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385 (exit $ac_status); }; } &&
24386 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24388 (eval $ac_try) 2>&5
24389 ac_status=$?
24390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24391 (exit $ac_status); }; }; then
24392 ac_cv_lib_ipc_shmat=yes
24393else
24394 echo "$as_me: failed program was:" >&5
24395sed 's/^/| /' conftest.$ac_ext >&5
24396
24397ac_cv_lib_ipc_shmat=no
24398fi
243f8ae5
VS
24399rm -f conftest.err conftest.$ac_objext \
24400 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24401LIBS=$ac_check_lib_save_LIBS
24402fi
24403echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24404echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24405if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 24406 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
24407fi
24408
d558c907 24409 fi
90dd450c 24410 fi
3a922bb4 24411
90dd450c 24412 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 24413 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
24414 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24415 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24416 # check for ICE first), but we must link in the order -lSM -lICE or
24417 # we get undefined symbols. So assume we have SM if we have ICE.
24418 # These have to be linked with before -lX11, unlike the other
24419 # libraries we check for below, so use a different variable.
e6cc62c6
VS
24420 # John Interrante, Karl Berry
24421 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24422echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24423if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24424 echo $ECHO_N "(cached) $ECHO_C" >&6
24425else
24426 ac_check_lib_save_LIBS=$LIBS
f09359cf 24427LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 24428cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24429/* confdefs.h. */
24430_ACEOF
24431cat confdefs.h >>conftest.$ac_ext
24432cat >>conftest.$ac_ext <<_ACEOF
24433/* end confdefs.h. */
24434
90dd450c 24435/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24436#ifdef __cplusplus
24437extern "C"
24438#endif
90dd450c 24439/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24440 builtin and then its argument prototype would still apply. */
24441char IceConnectionNumber ();
24442int
24443main ()
24444{
24445IceConnectionNumber ();
24446 ;
24447 return 0;
24448}
24449_ACEOF
24450rm -f conftest.$ac_objext conftest$ac_exeext
24451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 24452 (eval $ac_link) 2>conftest.er1
e6cc62c6 24453 ac_status=$?
243f8ae5
VS
24454 grep -v '^ *+' conftest.er1 >conftest.err
24455 rm -f conftest.er1
24456 cat conftest.err >&5
e6cc62c6
VS
24457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458 (exit $ac_status); } &&
243f8ae5
VS
24459 { ac_try='test -z "$ac_c_werror_flag"
24460 || test ! -s conftest.err'
24461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24462 (eval $ac_try) 2>&5
24463 ac_status=$?
24464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465 (exit $ac_status); }; } &&
24466 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24468 (eval $ac_try) 2>&5
24469 ac_status=$?
24470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24471 (exit $ac_status); }; }; then
24472 ac_cv_lib_ICE_IceConnectionNumber=yes
24473else
24474 echo "$as_me: failed program was:" >&5
24475sed 's/^/| /' conftest.$ac_ext >&5
24476
24477ac_cv_lib_ICE_IceConnectionNumber=no
24478fi
243f8ae5
VS
24479rm -f conftest.err conftest.$ac_objext \
24480 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24481LIBS=$ac_check_lib_save_LIBS
24482fi
24483echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24484echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24485if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 24486 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 24487fi
10f2d63a 24488
e6cc62c6 24489 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
24490
24491fi
24492
8284b0c5 24493
90dd450c 24494 if test "$no_x" = "yes"; then
e6cc62c6
VS
24495 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24496echo "$as_me: error: X11 not found" >&2;}
24497 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
24498 fi
24499
24500 GUI_TK_LIBRARY="$X_LIBS"
24501 TOOLKIT_INCLUDE="$X_CFLAGS"
24502 AFMINSTALL=afminstall
24503 COMPILED_X_PROGRAM=0
24504
21d1c967 24505 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
24506 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24507echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 24508 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
24509 echo "$as_me:$LINENO: result: not found" >&5
24510echo "${ECHO_T}not found" >&6
24511 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24512echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24513 { (exit 1); exit 1; }; }
90dd450c 24514 else
e6cc62c6
VS
24515 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24516echo "${ECHO_T}$MICROWIN" >&6
24517 cat >>confdefs.h <<\_ACEOF
21d1c967 24518#define wxUSE_NANOX 1
e6cc62c6 24519_ACEOF
21d1c967 24520
90dd450c
VZ
24521 fi
24522 fi
24523
2b5f62a0 24524 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 24525
2b5f62a0 24526 succeeded=no
90dd450c 24527
2b5f62a0
VZ
24528 if test -z "$PKG_CONFIG"; then
24529 # Extract the first word of "pkg-config", so it can be a program name with args.
24530set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24531echo "$as_me:$LINENO: checking for $ac_word" >&5
24532echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24533if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24534 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24535else
e6cc62c6
VS
24536 case $PKG_CONFIG in
24537 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24538 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24539 ;;
2b5f62a0 24540 *)
e6cc62c6
VS
24541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24542for as_dir in $PATH
24543do
24544 IFS=$as_save_IFS
24545 test -z "$as_dir" && as_dir=.
24546 for ac_exec_ext in '' $ac_executable_extensions; do
24547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24548 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24550 break 2
24551 fi
24552done
24553done
24554
2b5f62a0
VZ
24555 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24556 ;;
24557esac
24558fi
e6cc62c6
VS
24559PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24560
2b5f62a0 24561if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24562 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24563echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24564else
e6cc62c6
VS
24565 echo "$as_me:$LINENO: result: no" >&5
24566echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24567fi
24568
24569 fi
24570
24571 if test "$PKG_CONFIG" = "no" ; then
24572 echo "*** The pkg-config script could not be found. Make sure it is"
24573 echo "*** in your path, or set the PKG_CONFIG environment variable"
24574 echo "*** to the full path to pkg-config."
24575 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24576 else
24577 PKG_CONFIG_MIN_VERSION=0.9.0
24578 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24579 echo "$as_me:$LINENO: checking for pangox" >&5
24580echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
24581
24582 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
24583 echo "$as_me:$LINENO: result: yes" >&5
24584echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24585 succeeded=yes
24586
e6cc62c6
VS
24587 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24588echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 24589 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
24590 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24591echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 24592
e6cc62c6
VS
24593 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24594echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 24595 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
24596 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24597echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
24598 else
24599 PANGOX_CFLAGS=""
24600 PANGOX_LIBS=""
e6cc62c6 24601 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24602 ## do set a variable so people can do so.
24603 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 24604
2b5f62a0
VZ
24605 fi
24606
e6cc62c6
VS
24607
24608
2b5f62a0
VZ
24609 else
24610 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24611 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24612 fi
24613 fi
24614
24615 if test $succeeded = yes; then
e6cc62c6 24616
2b5f62a0 24617 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 24618 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 24619
2b5f62a0 24620 else
e6cc62c6
VS
24621
24622 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24623echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24624 { (exit 1); exit 1; }; }
24625
24626
2b5f62a0
VZ
24627 fi
24628
e6cc62c6 24629
2b5f62a0
VZ
24630 succeeded=no
24631
24632 if test -z "$PKG_CONFIG"; then
24633 # Extract the first word of "pkg-config", so it can be a program name with args.
24634set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24635echo "$as_me:$LINENO: checking for $ac_word" >&5
24636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24637if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24638 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24639else
e6cc62c6
VS
24640 case $PKG_CONFIG in
24641 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24642 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24643 ;;
2b5f62a0 24644 *)
e6cc62c6
VS
24645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24646for as_dir in $PATH
24647do
24648 IFS=$as_save_IFS
24649 test -z "$as_dir" && as_dir=.
24650 for ac_exec_ext in '' $ac_executable_extensions; do
24651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24652 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24654 break 2
24655 fi
24656done
24657done
24658
2b5f62a0
VZ
24659 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24660 ;;
24661esac
24662fi
e6cc62c6
VS
24663PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24664
2b5f62a0 24665if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24666 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24667echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24668else
e6cc62c6
VS
24669 echo "$as_me:$LINENO: result: no" >&5
24670echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24671fi
24672
24673 fi
24674
24675 if test "$PKG_CONFIG" = "no" ; then
24676 echo "*** The pkg-config script could not be found. Make sure it is"
24677 echo "*** in your path, or set the PKG_CONFIG environment variable"
24678 echo "*** to the full path to pkg-config."
24679 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24680 else
24681 PKG_CONFIG_MIN_VERSION=0.9.0
24682 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24683 echo "$as_me:$LINENO: checking for pangoft2" >&5
24684echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
24685
24686 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
24687 echo "$as_me:$LINENO: result: yes" >&5
24688echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24689 succeeded=yes
24690
e6cc62c6
VS
24691 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24692echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 24693 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
24694 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24695echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 24696
e6cc62c6
VS
24697 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24698echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 24699 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
24700 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24701echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
24702 else
24703 PANGOFT2_CFLAGS=""
24704 PANGOFT2_LIBS=""
e6cc62c6 24705 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24706 ## do set a variable so people can do so.
24707 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 24708
2b5f62a0
VZ
24709 fi
24710
e6cc62c6
VS
24711
24712
2b5f62a0
VZ
24713 else
24714 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24715 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24716 fi
24717 fi
24718
24719 if test $succeeded = yes; then
e6cc62c6 24720
2b5f62a0 24721 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 24722 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 24723
2b5f62a0 24724 else
e6cc62c6
VS
24725
24726 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24727echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 24728 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
24729
24730
2b5f62a0
VZ
24731 fi
24732
e6cc62c6 24733
2b5f62a0
VZ
24734 succeeded=no
24735
24736 if test -z "$PKG_CONFIG"; then
24737 # Extract the first word of "pkg-config", so it can be a program name with args.
24738set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24739echo "$as_me:$LINENO: checking for $ac_word" >&5
24740echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24741if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24742 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24743else
e6cc62c6
VS
24744 case $PKG_CONFIG in
24745 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24746 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24747 ;;
2b5f62a0 24748 *)
e6cc62c6
VS
24749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24750for as_dir in $PATH
24751do
24752 IFS=$as_save_IFS
24753 test -z "$as_dir" && as_dir=.
24754 for ac_exec_ext in '' $ac_executable_extensions; do
24755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24756 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24758 break 2
24759 fi
24760done
24761done
24762
2b5f62a0
VZ
24763 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24764 ;;
24765esac
24766fi
e6cc62c6
VS
24767PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24768
2b5f62a0 24769if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24770 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24771echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24772else
e6cc62c6
VS
24773 echo "$as_me:$LINENO: result: no" >&5
24774echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24775fi
24776
24777 fi
24778
24779 if test "$PKG_CONFIG" = "no" ; then
24780 echo "*** The pkg-config script could not be found. Make sure it is"
24781 echo "*** in your path, or set the PKG_CONFIG environment variable"
24782 echo "*** to the full path to pkg-config."
24783 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24784 else
24785 PKG_CONFIG_MIN_VERSION=0.9.0
24786 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24787 echo "$as_me:$LINENO: checking for pangoxft" >&5
24788echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
24789
24790 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
24791 echo "$as_me:$LINENO: result: yes" >&5
24792echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24793 succeeded=yes
24794
e6cc62c6
VS
24795 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24796echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 24797 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
24798 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24799echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 24800
e6cc62c6
VS
24801 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24802echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 24803 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
24804 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24805echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
24806 else
24807 PANGOXFT_CFLAGS=""
24808 PANGOXFT_LIBS=""
e6cc62c6 24809 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24810 ## do set a variable so people can do so.
24811 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 24812
2b5f62a0
VZ
24813 fi
24814
e6cc62c6
VS
24815
24816
2b5f62a0
VZ
24817 else
24818 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24819 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24820 fi
24821 fi
24822
24823 if test $succeeded = yes; then
e6cc62c6 24824
2b5f62a0 24825 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 24826 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 24827
2b5f62a0 24828 else
e6cc62c6
VS
24829
24830 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24831echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24832
24833
2b5f62a0
VZ
24834 fi
24835
24836 fi
24837
24838 wxUSE_UNIVERSAL="yes"
24839
24840 if test "$wxUSE_NANOX" = "yes"; then
24841 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 24842 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
24843 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24844 else
93a543aa 24845 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
24846 fi
24847
24848 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24849 TOOLKIT=X11
24850 GUIDIST=X11_DIST
24851 fi
24852
21d1c967
GD
24853 if test "$wxUSE_MOTIF" = 1; then
24854 if test "$no_x" = yes; then
24855 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
24856
24857cat >>confdefs.h <<\_ACEOF
21d1c967 24858#define X_DISPLAY_MISSING 1
e6cc62c6 24859_ACEOF
21d1c967
GD
24860
24861 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24862else
24863 if test -n "$x_includes"; then
24864 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
24865 fi
24866
21d1c967
GD
24867 # It would also be nice to do this for all -L options, not just this one.
24868 if test -n "$x_libraries"; then
24869 X_LIBS="$X_LIBS -L$x_libraries"
24870 # For Solaris; some versions of Sun CC require a space after -R and
24871 # others require no space. Words are not sufficient . . . .
e6cc62c6 24872 case `(uname -sr) 2>/dev/null` in
21d1c967 24873 "SunOS 5"*)
e6cc62c6
VS
24874 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24875echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24876 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24877 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24878/* confdefs.h. */
24879_ACEOF
24880cat confdefs.h >>conftest.$ac_ext
24881cat >>conftest.$ac_ext <<_ACEOF
24882/* end confdefs.h. */
24883
24884int
24885main ()
24886{
21d1c967 24887
e6cc62c6
VS
24888 ;
24889 return 0;
24890}
24891_ACEOF
24892rm -f conftest.$ac_objext conftest$ac_exeext
24893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 24894 (eval $ac_link) 2>conftest.er1
e6cc62c6 24895 ac_status=$?
243f8ae5
VS
24896 grep -v '^ *+' conftest.er1 >conftest.err
24897 rm -f conftest.er1
24898 cat conftest.err >&5
e6cc62c6
VS
24899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24900 (exit $ac_status); } &&
243f8ae5
VS
24901 { ac_try='test -z "$ac_c_werror_flag"
24902 || test ! -s conftest.err'
24903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24904 (eval $ac_try) 2>&5
24905 ac_status=$?
24906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907 (exit $ac_status); }; } &&
24908 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24910 (eval $ac_try) 2>&5
24911 ac_status=$?
24912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24913 (exit $ac_status); }; }; then
21d1c967 24914 ac_R_nospace=yes
698dcdb6 24915else
e6cc62c6
VS
24916 echo "$as_me: failed program was:" >&5
24917sed 's/^/| /' conftest.$ac_ext >&5
24918
24919ac_R_nospace=no
10f2d63a 24920fi
243f8ae5
VS
24921rm -f conftest.err conftest.$ac_objext \
24922 conftest$ac_exeext conftest.$ac_ext
21d1c967 24923 if test $ac_R_nospace = yes; then
e6cc62c6
VS
24924 echo "$as_me:$LINENO: result: no" >&5
24925echo "${ECHO_T}no" >&6
21d1c967
GD
24926 X_LIBS="$X_LIBS -R$x_libraries"
24927 else
24928 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 24929 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24930/* confdefs.h. */
24931_ACEOF
24932cat confdefs.h >>conftest.$ac_ext
24933cat >>conftest.$ac_ext <<_ACEOF
24934/* end confdefs.h. */
24935
24936int
24937main ()
24938{
f0c87536 24939
e6cc62c6
VS
24940 ;
24941 return 0;
24942}
24943_ACEOF
24944rm -f conftest.$ac_objext conftest$ac_exeext
24945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 24946 (eval $ac_link) 2>conftest.er1
e6cc62c6 24947 ac_status=$?
243f8ae5
VS
24948 grep -v '^ *+' conftest.er1 >conftest.err
24949 rm -f conftest.er1
24950 cat conftest.err >&5
e6cc62c6
VS
24951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24952 (exit $ac_status); } &&
243f8ae5
VS
24953 { ac_try='test -z "$ac_c_werror_flag"
24954 || test ! -s conftest.err'
24955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24956 (eval $ac_try) 2>&5
24957 ac_status=$?
24958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24959 (exit $ac_status); }; } &&
24960 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24962 (eval $ac_try) 2>&5
24963 ac_status=$?
24964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24965 (exit $ac_status); }; }; then
21d1c967
GD
24966 ac_R_space=yes
24967else
e6cc62c6
VS
24968 echo "$as_me: failed program was:" >&5
24969sed 's/^/| /' conftest.$ac_ext >&5
24970
24971ac_R_space=no
21d1c967 24972fi
243f8ae5
VS
24973rm -f conftest.err conftest.$ac_objext \
24974 conftest$ac_exeext conftest.$ac_ext
21d1c967 24975 if test $ac_R_space = yes; then
e6cc62c6
VS
24976 echo "$as_me:$LINENO: result: yes" >&5
24977echo "${ECHO_T}yes" >&6
21d1c967
GD
24978 X_LIBS="$X_LIBS -R $x_libraries"
24979 else
e6cc62c6
VS
24980 echo "$as_me:$LINENO: result: neither works" >&5
24981echo "${ECHO_T}neither works" >&6
21d1c967
GD
24982 fi
24983 fi
e6cc62c6 24984 LIBS=$ac_xsave_LIBS
21d1c967
GD
24985 esac
24986 fi
90dd450c 24987
21d1c967
GD
24988 # Check for system-dependent libraries X programs must link with.
24989 # Do this before checking for the system-independent R6 libraries
24990 # (-lICE), since we may need -lsocket or whatever for X linking.
24991
24992 if test "$ISC" = yes; then
24993 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24994 else
e6cc62c6
VS
24995 # Martyn Johnson says this is needed for Ultrix, if the X
24996 # libraries were built with DECnet support. And Karl Berry says
21d1c967 24997 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
24998 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24999 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25000/* confdefs.h. */
25001_ACEOF
25002cat confdefs.h >>conftest.$ac_ext
25003cat >>conftest.$ac_ext <<_ACEOF
25004/* end confdefs.h. */
25005
247f5006 25006/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25007#ifdef __cplusplus
25008extern "C"
25009#endif
247f5006 25010/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25011 builtin and then its argument prototype would still apply. */
25012char XOpenDisplay ();
25013int
25014main ()
25015{
25016XOpenDisplay ();
25017 ;
25018 return 0;
25019}
25020_ACEOF
25021rm -f conftest.$ac_objext conftest$ac_exeext
25022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25023 (eval $ac_link) 2>conftest.er1
e6cc62c6 25024 ac_status=$?
243f8ae5
VS
25025 grep -v '^ *+' conftest.er1 >conftest.err
25026 rm -f conftest.er1
25027 cat conftest.err >&5
e6cc62c6
VS
25028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25029 (exit $ac_status); } &&
243f8ae5
VS
25030 { ac_try='test -z "$ac_c_werror_flag"
25031 || test ! -s conftest.err'
25032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25033 (eval $ac_try) 2>&5
25034 ac_status=$?
25035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25036 (exit $ac_status); }; } &&
25037 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039 (eval $ac_try) 2>&5
25040 ac_status=$?
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); }; }; then
25043 :
25044else
25045 echo "$as_me: failed program was:" >&5
25046sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 25047
e6cc62c6
VS
25048echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
25049echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
25050if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
25051 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 25052else
e6cc62c6
VS
25053 ac_check_lib_save_LIBS=$LIBS
25054LIBS="-ldnet $LIBS"
25055cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25056/* confdefs.h. */
25057_ACEOF
25058cat confdefs.h >>conftest.$ac_ext
25059cat >>conftest.$ac_ext <<_ACEOF
25060/* end confdefs.h. */
a0b9e27f 25061
e6cc62c6
VS
25062/* Override any gcc2 internal prototype to avoid an error. */
25063#ifdef __cplusplus
25064extern "C"
25065#endif
25066/* We use char because int might match the return type of a gcc2
25067 builtin and then its argument prototype would still apply. */
25068char dnet_ntoa ();
25069int
25070main ()
25071{
25072dnet_ntoa ();
25073 ;
25074 return 0;
25075}
25076_ACEOF
25077rm -f conftest.$ac_objext conftest$ac_exeext
25078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25079 (eval $ac_link) 2>conftest.er1
e6cc62c6 25080 ac_status=$?
243f8ae5
VS
25081 grep -v '^ *+' conftest.er1 >conftest.err
25082 rm -f conftest.er1
25083 cat conftest.err >&5
e6cc62c6
VS
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } &&
243f8ae5
VS
25086 { ac_try='test -z "$ac_c_werror_flag"
25087 || test ! -s conftest.err'
25088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25089 (eval $ac_try) 2>&5
25090 ac_status=$?
25091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25092 (exit $ac_status); }; } &&
25093 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25095 (eval $ac_try) 2>&5
25096 ac_status=$?
25097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25098 (exit $ac_status); }; }; then
25099 ac_cv_lib_dnet_dnet_ntoa=yes
25100else
25101 echo "$as_me: failed program was:" >&5
25102sed 's/^/| /' conftest.$ac_ext >&5
25103
25104ac_cv_lib_dnet_dnet_ntoa=no
25105fi
243f8ae5
VS
25106rm -f conftest.err conftest.$ac_objext \
25107 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25108LIBS=$ac_check_lib_save_LIBS
25109fi
25110echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25111echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
25112if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 25113 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 25114fi
0fb0dd83 25115
21d1c967 25116 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
25117 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
25118echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
25119if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25121else
e6cc62c6 25122 ac_check_lib_save_LIBS=$LIBS
21d1c967 25123LIBS="-ldnet_stub $LIBS"
e6cc62c6 25124cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25125/* confdefs.h. */
25126_ACEOF
25127cat confdefs.h >>conftest.$ac_ext
25128cat >>conftest.$ac_ext <<_ACEOF
25129/* end confdefs.h. */
25130
21d1c967 25131/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25132#ifdef __cplusplus
25133extern "C"
25134#endif
21d1c967 25135/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25136 builtin and then its argument prototype would still apply. */
25137char dnet_ntoa ();
25138int
25139main ()
25140{
25141dnet_ntoa ();
25142 ;
25143 return 0;
25144}
25145_ACEOF
25146rm -f conftest.$ac_objext conftest$ac_exeext
25147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25148 (eval $ac_link) 2>conftest.er1
e6cc62c6 25149 ac_status=$?
243f8ae5
VS
25150 grep -v '^ *+' conftest.er1 >conftest.err
25151 rm -f conftest.er1
25152 cat conftest.err >&5
e6cc62c6
VS
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); } &&
243f8ae5
VS
25155 { ac_try='test -z "$ac_c_werror_flag"
25156 || test ! -s conftest.err'
25157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25158 (eval $ac_try) 2>&5
25159 ac_status=$?
25160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25161 (exit $ac_status); }; } &&
25162 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25164 (eval $ac_try) 2>&5
25165 ac_status=$?
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); }; }; then
25168 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25169else
25170 echo "$as_me: failed program was:" >&5
25171sed 's/^/| /' conftest.$ac_ext >&5
25172
25173ac_cv_lib_dnet_stub_dnet_ntoa=no
25174fi
243f8ae5
VS
25175rm -f conftest.err conftest.$ac_objext \
25176 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25177LIBS=$ac_check_lib_save_LIBS
25178fi
25179echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25180echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
25181if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 25182 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
25183fi
25184
21d1c967 25185 fi
e6cc62c6 25186fi
243f8ae5
VS
25187rm -f conftest.err conftest.$ac_objext \
25188 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 25189 LIBS="$ac_xsave_LIBS"
90dd450c 25190
21d1c967
GD
25191 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25192 # to get the SysV transport functions.
e6cc62c6 25193 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
25194 # needs -lnsl.
25195 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
25196 # on Irix 5.2, according to T.E. Dickey.
25197 # The functions gethostbyname, getservbyname, and inet_addr are
25198 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25199 echo "$as_me:$LINENO: checking for gethostbyname" >&5
25200echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
25201if test "${ac_cv_func_gethostbyname+set}" = set; then
25202 echo $ECHO_N "(cached) $ECHO_C" >&6
25203else
25204 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25205/* confdefs.h. */
25206_ACEOF
25207cat confdefs.h >>conftest.$ac_ext
25208cat >>conftest.$ac_ext <<_ACEOF
25209/* end confdefs.h. */
243f8ae5
VS
25210/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
25211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25212#define gethostbyname innocuous_gethostbyname
25213
21d1c967 25214/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25215 which can conflict with char gethostbyname (); below.
25216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25217 <limits.h> exists even on freestanding compilers. */
243f8ae5 25218
e6cc62c6
VS
25219#ifdef __STDC__
25220# include <limits.h>
25221#else
25222# include <assert.h>
25223#endif
243f8ae5
VS
25224
25225#undef gethostbyname
25226
21d1c967 25227/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25228#ifdef __cplusplus
25229extern "C"
25230{
25231#endif
21d1c967 25232/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25233 builtin and then its argument prototype would still apply. */
25234char gethostbyname ();
21d1c967
GD
25235/* The GNU C library defines this for functions which it implements
25236 to always fail with ENOSYS. Some functions are actually named
25237 something starting with __ and the normal name is an alias. */
25238#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
25239choke me
25240#else
e6cc62c6
VS
25241char (*f) () = gethostbyname;
25242#endif
25243#ifdef __cplusplus
25244}
21d1c967 25245#endif
90dd450c 25246
e6cc62c6
VS
25247int
25248main ()
25249{
25250return f != gethostbyname;
25251 ;
25252 return 0;
25253}
25254_ACEOF
25255rm -f conftest.$ac_objext conftest$ac_exeext
25256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25257 (eval $ac_link) 2>conftest.er1
e6cc62c6 25258 ac_status=$?
243f8ae5
VS
25259 grep -v '^ *+' conftest.er1 >conftest.err
25260 rm -f conftest.er1
25261 cat conftest.err >&5
e6cc62c6
VS
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); } &&
243f8ae5
VS
25264 { ac_try='test -z "$ac_c_werror_flag"
25265 || test ! -s conftest.err'
25266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25267 (eval $ac_try) 2>&5
25268 ac_status=$?
25269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25270 (exit $ac_status); }; } &&
25271 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25273 (eval $ac_try) 2>&5
25274 ac_status=$?
25275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25276 (exit $ac_status); }; }; then
25277 ac_cv_func_gethostbyname=yes
25278else
25279 echo "$as_me: failed program was:" >&5
25280sed 's/^/| /' conftest.$ac_ext >&5
25281
25282ac_cv_func_gethostbyname=no
25283fi
243f8ae5
VS
25284rm -f conftest.err conftest.$ac_objext \
25285 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25286fi
25287echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
25288echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 25289
21d1c967 25290 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
25291 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
25292echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
25293if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
25294 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25295else
e6cc62c6 25296 ac_check_lib_save_LIBS=$LIBS
21d1c967 25297LIBS="-lnsl $LIBS"
e6cc62c6 25298cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25299/* confdefs.h. */
25300_ACEOF
25301cat confdefs.h >>conftest.$ac_ext
25302cat >>conftest.$ac_ext <<_ACEOF
25303/* end confdefs.h. */
25304
21d1c967 25305/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25306#ifdef __cplusplus
25307extern "C"
25308#endif
21d1c967 25309/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25310 builtin and then its argument prototype would still apply. */
25311char gethostbyname ();
25312int
25313main ()
25314{
25315gethostbyname ();
25316 ;
25317 return 0;
25318}
25319_ACEOF
25320rm -f conftest.$ac_objext conftest$ac_exeext
25321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25322 (eval $ac_link) 2>conftest.er1
e6cc62c6 25323 ac_status=$?
243f8ae5
VS
25324 grep -v '^ *+' conftest.er1 >conftest.err
25325 rm -f conftest.er1
25326 cat conftest.err >&5
e6cc62c6
VS
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } &&
243f8ae5
VS
25329 { ac_try='test -z "$ac_c_werror_flag"
25330 || test ! -s conftest.err'
25331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25332 (eval $ac_try) 2>&5
25333 ac_status=$?
25334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25335 (exit $ac_status); }; } &&
25336 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25338 (eval $ac_try) 2>&5
25339 ac_status=$?
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); }; }; then
25342 ac_cv_lib_nsl_gethostbyname=yes
25343else
25344 echo "$as_me: failed program was:" >&5
25345sed 's/^/| /' conftest.$ac_ext >&5
25346
25347ac_cv_lib_nsl_gethostbyname=no
25348fi
243f8ae5
VS
25349rm -f conftest.err conftest.$ac_objext \
25350 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25351LIBS=$ac_check_lib_save_LIBS
25352fi
25353echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
25354echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
25355if test $ac_cv_lib_nsl_gethostbyname = yes; then
25356 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 25357fi
247f5006 25358
e6cc62c6 25359 if test $ac_cv_lib_nsl_gethostbyname = no; then
243f8ae5 25360 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
25361echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
25362if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25363 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 25364else
e6cc62c6
VS
25365 ac_check_lib_save_LIBS=$LIBS
25366LIBS="-lbsd $LIBS"
25367cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25368/* confdefs.h. */
25369_ACEOF
25370cat confdefs.h >>conftest.$ac_ext
25371cat >>conftest.$ac_ext <<_ACEOF
25372/* end confdefs.h. */
25373
25374/* Override any gcc2 internal prototype to avoid an error. */
25375#ifdef __cplusplus
25376extern "C"
25377#endif
25378/* We use char because int might match the return type of a gcc2
25379 builtin and then its argument prototype would still apply. */
25380char gethostbyname ();
25381int
25382main ()
25383{
25384gethostbyname ();
25385 ;
25386 return 0;
25387}
25388_ACEOF
25389rm -f conftest.$ac_objext conftest$ac_exeext
25390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25391 (eval $ac_link) 2>conftest.er1
e6cc62c6 25392 ac_status=$?
243f8ae5
VS
25393 grep -v '^ *+' conftest.er1 >conftest.err
25394 rm -f conftest.er1
25395 cat conftest.err >&5
e6cc62c6
VS
25396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25397 (exit $ac_status); } &&
243f8ae5
VS
25398 { ac_try='test -z "$ac_c_werror_flag"
25399 || test ! -s conftest.err'
25400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25401 (eval $ac_try) 2>&5
25402 ac_status=$?
25403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25404 (exit $ac_status); }; } &&
25405 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25407 (eval $ac_try) 2>&5
25408 ac_status=$?
25409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410 (exit $ac_status); }; }; then
25411 ac_cv_lib_bsd_gethostbyname=yes
25412else
25413 echo "$as_me: failed program was:" >&5
25414sed 's/^/| /' conftest.$ac_ext >&5
25415
25416ac_cv_lib_bsd_gethostbyname=no
25417fi
243f8ae5
VS
25418rm -f conftest.err conftest.$ac_objext \
25419 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25420LIBS=$ac_check_lib_save_LIBS
25421fi
25422echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25423echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
25424if test $ac_cv_lib_bsd_gethostbyname = yes; then
25425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 25426fi
90dd450c 25427
e6cc62c6 25428 fi
90dd450c
VZ
25429 fi
25430
21d1c967
GD
25431 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25432 # socket/setsockopt and other routines are undefined under SCO ODT
25433 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
25434 # on later versions), says Simon Leinen: it contains gethostby*
25435 # variants that don't use the name server (or something). -lsocket
25436 # must be given before -lnsl if both are needed. We assume that
25437 # if connect needs -lnsl, so does gethostbyname.
25438 echo "$as_me:$LINENO: checking for connect" >&5
25439echo $ECHO_N "checking for connect... $ECHO_C" >&6
25440if test "${ac_cv_func_connect+set}" = set; then
25441 echo $ECHO_N "(cached) $ECHO_C" >&6
25442else
25443 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25444/* confdefs.h. */
25445_ACEOF
25446cat confdefs.h >>conftest.$ac_ext
25447cat >>conftest.$ac_ext <<_ACEOF
25448/* end confdefs.h. */
243f8ae5
VS
25449/* Define connect to an innocuous variant, in case <limits.h> declares connect.
25450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25451#define connect innocuous_connect
25452
21d1c967 25453/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25454 which can conflict with char connect (); below.
25455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25456 <limits.h> exists even on freestanding compilers. */
243f8ae5 25457
e6cc62c6
VS
25458#ifdef __STDC__
25459# include <limits.h>
25460#else
25461# include <assert.h>
25462#endif
243f8ae5
VS
25463
25464#undef connect
25465
21d1c967 25466/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25467#ifdef __cplusplus
25468extern "C"
25469{
25470#endif
21d1c967 25471/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25472 builtin and then its argument prototype would still apply. */
25473char connect ();
21d1c967
GD
25474/* The GNU C library defines this for functions which it implements
25475 to always fail with ENOSYS. Some functions are actually named
25476 something starting with __ and the normal name is an alias. */
25477#if defined (__stub_connect) || defined (__stub___connect)
25478choke me
25479#else
e6cc62c6
VS
25480char (*f) () = connect;
25481#endif
25482#ifdef __cplusplus
25483}
21d1c967 25484#endif
90dd450c 25485
e6cc62c6
VS
25486int
25487main ()
25488{
25489return f != connect;
25490 ;
25491 return 0;
25492}
25493_ACEOF
25494rm -f conftest.$ac_objext conftest$ac_exeext
25495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25496 (eval $ac_link) 2>conftest.er1
e6cc62c6 25497 ac_status=$?
243f8ae5
VS
25498 grep -v '^ *+' conftest.er1 >conftest.err
25499 rm -f conftest.er1
25500 cat conftest.err >&5
e6cc62c6
VS
25501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); } &&
243f8ae5
VS
25503 { ac_try='test -z "$ac_c_werror_flag"
25504 || test ! -s conftest.err'
25505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25506 (eval $ac_try) 2>&5
25507 ac_status=$?
25508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509 (exit $ac_status); }; } &&
25510 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512 (eval $ac_try) 2>&5
25513 ac_status=$?
25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515 (exit $ac_status); }; }; then
25516 ac_cv_func_connect=yes
25517else
25518 echo "$as_me: failed program was:" >&5
25519sed 's/^/| /' conftest.$ac_ext >&5
25520
25521ac_cv_func_connect=no
25522fi
243f8ae5
VS
25523rm -f conftest.err conftest.$ac_objext \
25524 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25525fi
25526echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25527echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 25528
21d1c967 25529 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
25530 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25531echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25532if test "${ac_cv_lib_socket_connect+set}" = set; then
25533 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 25534else
e6cc62c6 25535 ac_check_lib_save_LIBS=$LIBS
21d1c967 25536LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 25537cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25538/* confdefs.h. */
25539_ACEOF
25540cat confdefs.h >>conftest.$ac_ext
25541cat >>conftest.$ac_ext <<_ACEOF
25542/* end confdefs.h. */
25543
21d1c967 25544/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25545#ifdef __cplusplus
25546extern "C"
25547#endif
21d1c967 25548/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25549 builtin and then its argument prototype would still apply. */
25550char connect ();
25551int
25552main ()
25553{
25554connect ();
25555 ;
25556 return 0;
25557}
25558_ACEOF
25559rm -f conftest.$ac_objext conftest$ac_exeext
25560if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25561 (eval $ac_link) 2>conftest.er1
e6cc62c6 25562 ac_status=$?
243f8ae5
VS
25563 grep -v '^ *+' conftest.er1 >conftest.err
25564 rm -f conftest.er1
25565 cat conftest.err >&5
e6cc62c6
VS
25566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567 (exit $ac_status); } &&
243f8ae5
VS
25568 { ac_try='test -z "$ac_c_werror_flag"
25569 || test ! -s conftest.err'
25570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25571 (eval $ac_try) 2>&5
25572 ac_status=$?
25573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574 (exit $ac_status); }; } &&
25575 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25577 (eval $ac_try) 2>&5
25578 ac_status=$?
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); }; }; then
25581 ac_cv_lib_socket_connect=yes
25582else
25583 echo "$as_me: failed program was:" >&5
25584sed 's/^/| /' conftest.$ac_ext >&5
25585
25586ac_cv_lib_socket_connect=no
25587fi
243f8ae5
VS
25588rm -f conftest.err conftest.$ac_objext \
25589 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25590LIBS=$ac_check_lib_save_LIBS
25591fi
25592echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25593echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25594if test $ac_cv_lib_socket_connect = yes; then
21d1c967 25595 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 25596fi
90dd450c 25597
21d1c967 25598 fi
90dd450c 25599
e6cc62c6
VS
25600 # Guillermo Gomez says -lposix is necessary on A/UX.
25601 echo "$as_me:$LINENO: checking for remove" >&5
25602echo $ECHO_N "checking for remove... $ECHO_C" >&6
25603if test "${ac_cv_func_remove+set}" = set; then
25604 echo $ECHO_N "(cached) $ECHO_C" >&6
25605else
25606 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25607/* confdefs.h. */
25608_ACEOF
25609cat confdefs.h >>conftest.$ac_ext
25610cat >>conftest.$ac_ext <<_ACEOF
25611/* end confdefs.h. */
243f8ae5
VS
25612/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25614#define remove innocuous_remove
25615
21d1c967 25616/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25617 which can conflict with char remove (); below.
25618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25619 <limits.h> exists even on freestanding compilers. */
243f8ae5 25620
e6cc62c6
VS
25621#ifdef __STDC__
25622# include <limits.h>
25623#else
25624# include <assert.h>
25625#endif
243f8ae5
VS
25626
25627#undef remove
25628
21d1c967 25629/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25630#ifdef __cplusplus
25631extern "C"
25632{
25633#endif
21d1c967 25634/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25635 builtin and then its argument prototype would still apply. */
25636char remove ();
21d1c967
GD
25637/* The GNU C library defines this for functions which it implements
25638 to always fail with ENOSYS. Some functions are actually named
25639 something starting with __ and the normal name is an alias. */
25640#if defined (__stub_remove) || defined (__stub___remove)
25641choke me
25642#else
e6cc62c6
VS
25643char (*f) () = remove;
25644#endif
25645#ifdef __cplusplus
25646}
21d1c967 25647#endif
90dd450c 25648
e6cc62c6
VS
25649int
25650main ()
25651{
25652return f != remove;
25653 ;
25654 return 0;
25655}
25656_ACEOF
25657rm -f conftest.$ac_objext conftest$ac_exeext
25658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25659 (eval $ac_link) 2>conftest.er1
e6cc62c6 25660 ac_status=$?
243f8ae5
VS
25661 grep -v '^ *+' conftest.er1 >conftest.err
25662 rm -f conftest.er1
25663 cat conftest.err >&5
e6cc62c6
VS
25664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665 (exit $ac_status); } &&
243f8ae5
VS
25666 { ac_try='test -z "$ac_c_werror_flag"
25667 || test ! -s conftest.err'
25668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); }; } &&
25673 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25675 (eval $ac_try) 2>&5
25676 ac_status=$?
25677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); }; }; then
25679 ac_cv_func_remove=yes
25680else
25681 echo "$as_me: failed program was:" >&5
25682sed 's/^/| /' conftest.$ac_ext >&5
25683
25684ac_cv_func_remove=no
25685fi
243f8ae5
VS
25686rm -f conftest.err conftest.$ac_objext \
25687 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25688fi
25689echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25690echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 25691
21d1c967 25692 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
25693 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25694echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25695if test "${ac_cv_lib_posix_remove+set}" = set; then
25696 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25697else
e6cc62c6 25698 ac_check_lib_save_LIBS=$LIBS
21d1c967 25699LIBS="-lposix $LIBS"
e6cc62c6 25700cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25701/* confdefs.h. */
25702_ACEOF
25703cat confdefs.h >>conftest.$ac_ext
25704cat >>conftest.$ac_ext <<_ACEOF
25705/* end confdefs.h. */
25706
21d1c967 25707/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25708#ifdef __cplusplus
25709extern "C"
25710#endif
21d1c967 25711/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25712 builtin and then its argument prototype would still apply. */
25713char remove ();
25714int
25715main ()
25716{
25717remove ();
25718 ;
25719 return 0;
25720}
25721_ACEOF
25722rm -f conftest.$ac_objext conftest$ac_exeext
25723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25724 (eval $ac_link) 2>conftest.er1
e6cc62c6 25725 ac_status=$?
243f8ae5
VS
25726 grep -v '^ *+' conftest.er1 >conftest.err
25727 rm -f conftest.er1
25728 cat conftest.err >&5
e6cc62c6
VS
25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730 (exit $ac_status); } &&
243f8ae5
VS
25731 { ac_try='test -z "$ac_c_werror_flag"
25732 || test ! -s conftest.err'
25733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734 (eval $ac_try) 2>&5
25735 ac_status=$?
25736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); }; } &&
25738 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740 (eval $ac_try) 2>&5
25741 ac_status=$?
25742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743 (exit $ac_status); }; }; then
25744 ac_cv_lib_posix_remove=yes
25745else
25746 echo "$as_me: failed program was:" >&5
25747sed 's/^/| /' conftest.$ac_ext >&5
25748
25749ac_cv_lib_posix_remove=no
25750fi
243f8ae5
VS
25751rm -f conftest.err conftest.$ac_objext \
25752 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25753LIBS=$ac_check_lib_save_LIBS
25754fi
25755echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25756echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25757if test $ac_cv_lib_posix_remove = yes; then
21d1c967 25758 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 25759fi
19bc6aad 25760
90dd450c 25761 fi
19bc6aad 25762
21d1c967 25763 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
25764 echo "$as_me:$LINENO: checking for shmat" >&5
25765echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25766if test "${ac_cv_func_shmat+set}" = set; then
25767 echo $ECHO_N "(cached) $ECHO_C" >&6
25768else
25769 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25770/* confdefs.h. */
25771_ACEOF
25772cat confdefs.h >>conftest.$ac_ext
25773cat >>conftest.$ac_ext <<_ACEOF
25774/* end confdefs.h. */
243f8ae5
VS
25775/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25777#define shmat innocuous_shmat
25778
21d1c967 25779/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25780 which can conflict with char shmat (); below.
25781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25782 <limits.h> exists even on freestanding compilers. */
243f8ae5 25783
e6cc62c6
VS
25784#ifdef __STDC__
25785# include <limits.h>
25786#else
25787# include <assert.h>
25788#endif
243f8ae5
VS
25789
25790#undef shmat
25791
21d1c967 25792/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25793#ifdef __cplusplus
25794extern "C"
25795{
25796#endif
21d1c967 25797/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25798 builtin and then its argument prototype would still apply. */
25799char shmat ();
21d1c967
GD
25800/* The GNU C library defines this for functions which it implements
25801 to always fail with ENOSYS. Some functions are actually named
25802 something starting with __ and the normal name is an alias. */
25803#if defined (__stub_shmat) || defined (__stub___shmat)
25804choke me
25805#else
e6cc62c6
VS
25806char (*f) () = shmat;
25807#endif
25808#ifdef __cplusplus
25809}
21d1c967 25810#endif
90dd450c 25811
e6cc62c6
VS
25812int
25813main ()
25814{
25815return f != shmat;
25816 ;
25817 return 0;
25818}
25819_ACEOF
25820rm -f conftest.$ac_objext conftest$ac_exeext
25821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25822 (eval $ac_link) 2>conftest.er1
e6cc62c6 25823 ac_status=$?
243f8ae5
VS
25824 grep -v '^ *+' conftest.er1 >conftest.err
25825 rm -f conftest.er1
25826 cat conftest.err >&5
e6cc62c6
VS
25827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828 (exit $ac_status); } &&
243f8ae5
VS
25829 { ac_try='test -z "$ac_c_werror_flag"
25830 || test ! -s conftest.err'
25831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25832 (eval $ac_try) 2>&5
25833 ac_status=$?
25834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25835 (exit $ac_status); }; } &&
25836 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838 (eval $ac_try) 2>&5
25839 ac_status=$?
25840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841 (exit $ac_status); }; }; then
25842 ac_cv_func_shmat=yes
25843else
25844 echo "$as_me: failed program was:" >&5
25845sed 's/^/| /' conftest.$ac_ext >&5
25846
25847ac_cv_func_shmat=no
25848fi
243f8ae5
VS
25849rm -f conftest.err conftest.$ac_objext \
25850 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25851fi
25852echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25853echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 25854
21d1c967 25855 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
25856 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25857echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25858if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25859 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 25860else
e6cc62c6 25861 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 25862LIBS="-lipc $LIBS"
e6cc62c6 25863cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25864/* confdefs.h. */
25865_ACEOF
25866cat confdefs.h >>conftest.$ac_ext
25867cat >>conftest.$ac_ext <<_ACEOF
25868/* end confdefs.h. */
25869
5c6fa7d2 25870/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25871#ifdef __cplusplus
25872extern "C"
25873#endif
5c6fa7d2 25874/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25875 builtin and then its argument prototype would still apply. */
25876char shmat ();
25877int
25878main ()
25879{
25880shmat ();
25881 ;
25882 return 0;
25883}
25884_ACEOF
25885rm -f conftest.$ac_objext conftest$ac_exeext
25886if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25887 (eval $ac_link) 2>conftest.er1
e6cc62c6 25888 ac_status=$?
243f8ae5
VS
25889 grep -v '^ *+' conftest.er1 >conftest.err
25890 rm -f conftest.er1
25891 cat conftest.err >&5
e6cc62c6
VS
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); } &&
243f8ae5
VS
25894 { ac_try='test -z "$ac_c_werror_flag"
25895 || test ! -s conftest.err'
25896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897 (eval $ac_try) 2>&5
25898 ac_status=$?
25899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); }; } &&
25901 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25903 (eval $ac_try) 2>&5
25904 ac_status=$?
25905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906 (exit $ac_status); }; }; then
25907 ac_cv_lib_ipc_shmat=yes
25908else
25909 echo "$as_me: failed program was:" >&5
25910sed 's/^/| /' conftest.$ac_ext >&5
25911
25912ac_cv_lib_ipc_shmat=no
25913fi
243f8ae5
VS
25914rm -f conftest.err conftest.$ac_objext \
25915 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25916LIBS=$ac_check_lib_save_LIBS
25917fi
25918echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25919echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25920if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 25921 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 25922fi
90dd450c 25923
90dd450c 25924 fi
21d1c967 25925 fi
10f2d63a 25926
21d1c967 25927 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 25928 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
25929 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25930 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25931 # check for ICE first), but we must link in the order -lSM -lICE or
25932 # we get undefined symbols. So assume we have SM if we have ICE.
25933 # These have to be linked with before -lX11, unlike the other
25934 # libraries we check for below, so use a different variable.
e6cc62c6
VS
25935 # John Interrante, Karl Berry
25936 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25937echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25938if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25939 echo $ECHO_N "(cached) $ECHO_C" >&6
25940else
25941 ac_check_lib_save_LIBS=$LIBS
f09359cf 25942LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 25943cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25944/* confdefs.h. */
25945_ACEOF
25946cat confdefs.h >>conftest.$ac_ext
25947cat >>conftest.$ac_ext <<_ACEOF
25948/* end confdefs.h. */
25949
21d1c967 25950/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25951#ifdef __cplusplus
25952extern "C"
25953#endif
21d1c967 25954/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25955 builtin and then its argument prototype would still apply. */
25956char IceConnectionNumber ();
25957int
25958main ()
25959{
25960IceConnectionNumber ();
25961 ;
25962 return 0;
25963}
25964_ACEOF
25965rm -f conftest.$ac_objext conftest$ac_exeext
25966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 25967 (eval $ac_link) 2>conftest.er1
e6cc62c6 25968 ac_status=$?
243f8ae5
VS
25969 grep -v '^ *+' conftest.er1 >conftest.err
25970 rm -f conftest.er1
25971 cat conftest.err >&5
e6cc62c6
VS
25972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25973 (exit $ac_status); } &&
243f8ae5
VS
25974 { ac_try='test -z "$ac_c_werror_flag"
25975 || test ! -s conftest.err'
25976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977 (eval $ac_try) 2>&5
25978 ac_status=$?
25979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); }; } &&
25981 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983 (eval $ac_try) 2>&5
25984 ac_status=$?
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); }; }; then
25987 ac_cv_lib_ICE_IceConnectionNumber=yes
25988else
25989 echo "$as_me: failed program was:" >&5
25990sed 's/^/| /' conftest.$ac_ext >&5
25991
25992ac_cv_lib_ICE_IceConnectionNumber=no
25993fi
243f8ae5
VS
25994rm -f conftest.err conftest.$ac_objext \
25995 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25996LIBS=$ac_check_lib_save_LIBS
25997fi
25998echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25999echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
26000if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 26001 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 26002fi
21d1c967 26003
e6cc62c6 26004 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 26005
10f2d63a
VZ
26006fi
26007
8284b0c5 26008
21d1c967 26009 if test "$no_x" = "yes"; then
e6cc62c6
VS
26010 { { echo "$as_me:$LINENO: error: X11 not found" >&5
26011echo "$as_me: error: X11 not found" >&2;}
26012 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
26013 fi
26014
2b5f62a0
VZ
26015 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
26016 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
26017 AFMINSTALL=afminstall
26018 COMPILED_X_PROGRAM=0
26019
e6cc62c6
VS
26020 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
26021echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
26022
21d1c967 26023ac_find_includes=
2b5f62a0 26024for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
26025 do
26026 if test -f "$ac_dir/Xm/Xm.h"; then
26027 ac_find_includes=$ac_dir
26028 break
26029 fi
26030 done
26031
26032 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
26033 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26034echo "${ECHO_T}found in $ac_find_includes" >&6
26035
2b5f62a0 26036 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
26037 ac_path_to_include=""
26038 else
2b5f62a0
VZ
26039 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
26040 result=$?
26041 if test $result = 0; then
26042 ac_path_to_include=""
26043 else
26044 ac_path_to_include=" -I$ac_find_includes"
26045 fi
dd0e4a90
VZ
26046 fi
26047
26048 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 26049 else
e6cc62c6 26050 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26051/* confdefs.h. */
26052_ACEOF
26053cat confdefs.h >>conftest.$ac_ext
26054cat >>conftest.$ac_ext <<_ACEOF
26055/* end confdefs.h. */
21d1c967
GD
26056
26057 #include <Xm/Xm.h>
e6cc62c6
VS
26058
26059int
26060main ()
26061{
21d1c967
GD
26062
26063 int version;
26064 version = xmUseVersion;
e6cc62c6
VS
26065
26066 ;
26067 return 0;
26068}
26069_ACEOF
26070rm -f conftest.$ac_objext
26071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 26072 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26073 ac_status=$?
243f8ae5
VS
26074 grep -v '^ *+' conftest.er1 >conftest.err
26075 rm -f conftest.er1
26076 cat conftest.err >&5
e6cc62c6
VS
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); } &&
243f8ae5
VS
26079 { ac_try='test -z "$ac_c_werror_flag"
26080 || test ! -s conftest.err'
26081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26082 (eval $ac_try) 2>&5
26083 ac_status=$?
26084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 (exit $ac_status); }; } &&
26086 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26088 (eval $ac_try) 2>&5
26089 ac_status=$?
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); }; }; then
26092
26093 echo "$as_me:$LINENO: result: found in default search path" >&5
26094echo "${ECHO_T}found in default search path" >&6
21d1c967 26095 COMPILED_X_PROGRAM=1
e6cc62c6 26096
10f2d63a 26097else
e6cc62c6
VS
26098 echo "$as_me: failed program was:" >&5
26099sed 's/^/| /' conftest.$ac_ext >&5
26100
26101
26102 echo "$as_me:$LINENO: result: no" >&5
26103echo "${ECHO_T}no" >&6
26104 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
26105echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
26106 { (exit 1); exit 1; }; }
26107
26108
10f2d63a 26109fi
243f8ae5 26110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 26111 fi
10f2d63a 26112
21d1c967 26113 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
26114 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
26115echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
26116
21d1c967 26117ac_find_libraries=
2b5f62a0 26118for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26119 do
26120 for ac_extension in a so sl dylib; do
26121 if test -f "$ac_dir/libXm.$ac_extension"; then
26122 ac_find_libraries=$ac_dir
26123 break 2
26124 fi
26125 done
26126 done
26127
26128 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
26129 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26130echo "${ECHO_T}found at $ac_find_libraries" >&6
26131
21d1c967 26132
21d1c967
GD
26133 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26134 result=$?
26135 if test $result = 0; then
26136 ac_path_to_link=""
26137 else
26138 ac_path_to_link=" -L$ac_find_libraries"
26139 fi
26140
21d1c967 26141 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 26142 else
dd0e4a90
VZ
26143 save_CFLAGS=$CFLAGS
26144 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26145
e6cc62c6 26146 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26147/* confdefs.h. */
26148_ACEOF
26149cat confdefs.h >>conftest.$ac_ext
26150cat >>conftest.$ac_ext <<_ACEOF
26151/* end confdefs.h. */
21d1c967
GD
26152
26153 #include <Xm/Xm.h>
e6cc62c6
VS
26154
26155int
26156main ()
26157{
21d1c967
GD
26158
26159 int version;
26160 version = xmUseVersion;
e6cc62c6
VS
26161
26162 ;
26163 return 0;
26164}
26165_ACEOF
26166rm -f conftest.$ac_objext
26167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 26168 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26169 ac_status=$?
243f8ae5
VS
26170 grep -v '^ *+' conftest.er1 >conftest.err
26171 rm -f conftest.er1
26172 cat conftest.err >&5
e6cc62c6
VS
26173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174 (exit $ac_status); } &&
243f8ae5
VS
26175 { ac_try='test -z "$ac_c_werror_flag"
26176 || test ! -s conftest.err'
26177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26178 (eval $ac_try) 2>&5
26179 ac_status=$?
26180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); }; } &&
26182 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26184 (eval $ac_try) 2>&5
26185 ac_status=$?
26186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26187 (exit $ac_status); }; }; then
26188
26189 echo "$as_me:$LINENO: result: found in default search path" >&5
26190echo "${ECHO_T}found in default search path" >&6
21d1c967 26191 COMPILED_X_PROGRAM=1
e6cc62c6 26192
d836ee96 26193else
e6cc62c6
VS
26194 echo "$as_me: failed program was:" >&5
26195sed 's/^/| /' conftest.$ac_ext >&5
26196
26197
26198 echo "$as_me:$LINENO: result: no" >&5
26199echo "${ECHO_T}no" >&6
26200 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
26201echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
26202 { (exit 1); exit 1; }; }
26203
26204
d836ee96 26205fi
243f8ae5 26206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
26207
26208 CFLAGS=$save_CFLAGS
21d1c967
GD
26209 fi
26210 fi
26211
e6cc62c6
VS
26212 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
26213echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
26214 libp_link=""
26215 libsm_ice_link=""
26216 libs_found=0
26217 for libp in "" " -lXp"; do
26218 if test "$libs_found" = "0"; then
7015ef3a 26219 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 26220 if test "$libs_found" = "0"; then
6a30f1c8 26221 save_LIBS="$LIBS"
93a543aa 26222 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
26223 save_CFLAGS=$CFLAGS
26224 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26225
e6cc62c6 26226 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26227/* confdefs.h. */
26228_ACEOF
26229cat confdefs.h >>conftest.$ac_ext
26230cat >>conftest.$ac_ext <<_ACEOF
26231/* end confdefs.h. */
17234b26 26232
6a30f1c8
MB
26233 #include <Xm/Xm.h>
26234 #include <Xm/List.h>
e6cc62c6
VS
26235
26236int
26237main ()
26238{
6a30f1c8
MB
26239
26240 XmString string = NULL;
26241 Widget w = NULL;
26242 int position = 0;
26243 XmListAddItem(w, string, position);
e6cc62c6
VS
26244
26245 ;
26246 return 0;
26247}
26248_ACEOF
26249rm -f conftest.$ac_objext conftest$ac_exeext
26250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 26251 (eval $ac_link) 2>conftest.er1
e6cc62c6 26252 ac_status=$?
243f8ae5
VS
26253 grep -v '^ *+' conftest.er1 >conftest.err
26254 rm -f conftest.er1
26255 cat conftest.err >&5
e6cc62c6
VS
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); } &&
243f8ae5
VS
26258 { ac_try='test -z "$ac_c_werror_flag"
26259 || test ! -s conftest.err'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26262 ac_status=$?
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; } &&
26265 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26267 (eval $ac_try) 2>&5
26268 ac_status=$?
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); }; }; then
26271
6a30f1c8
MB
26272 libp_link="$libp"
26273 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
26274 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
26275echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 26276 libs_found=1
e6cc62c6 26277
6a30f1c8 26278else
e6cc62c6
VS
26279 echo "$as_me: failed program was:" >&5
26280sed 's/^/| /' conftest.$ac_ext >&5
26281
26282
26283
6a30f1c8 26284fi
243f8ae5
VS
26285rm -f conftest.err conftest.$ac_objext \
26286 conftest$ac_exeext conftest.$ac_ext
dd0e4a90 26287
6a30f1c8 26288 LIBS="$save_LIBS"
dd0e4a90 26289 CFLAGS=$save_CFLAGS
6a30f1c8
MB
26290 fi
26291 done
26292 fi
26293 done
26294
26295 if test "$libs_found" = "0"; then
e6cc62c6
VS
26296 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
26297echo "${ECHO_T}can't find the right libraries" >&6
26298 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
26299echo "$as_me: error: can't link a simple motif program" >&2;}
26300 { (exit 1); exit 1; }; }
6a30f1c8
MB
26301 fi
26302
da494b40
MB
26303 save_CFLAGS=$CFLAGS
26304 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
26305 echo "$as_me:$LINENO: checking for Motif 2" >&5
26306echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
26307 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26308/* confdefs.h. */
26309_ACEOF
26310cat confdefs.h >>conftest.$ac_ext
26311cat >>conftest.$ac_ext <<_ACEOF
26312/* end confdefs.h. */
da494b40
MB
26313
26314 #include <Xm/Xm.h>
e6cc62c6
VS
26315
26316int
26317main ()
26318{
da494b40
MB
26319
26320 #if XmVersion < 2000
26321 #error "Not Motif 2"
26322 #endif
e6cc62c6
VS
26323
26324 ;
26325 return 0;
26326}
26327_ACEOF
26328rm -f conftest.$ac_objext
26329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 26330 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26331 ac_status=$?
243f8ae5
VS
26332 grep -v '^ *+' conftest.er1 >conftest.err
26333 rm -f conftest.er1
26334 cat conftest.err >&5
e6cc62c6
VS
26335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336 (exit $ac_status); } &&
243f8ae5
VS
26337 { ac_try='test -z "$ac_c_werror_flag"
26338 || test ! -s conftest.err'
26339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26340 (eval $ac_try) 2>&5
26341 ac_status=$?
26342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26343 (exit $ac_status); }; } &&
26344 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26346 (eval $ac_try) 2>&5
26347 ac_status=$?
26348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26349 (exit $ac_status); }; }; then
26350
26351 cat >>confdefs.h <<\_ACEOF
da494b40 26352#define __WXMOTIF20__ 1
e6cc62c6
VS
26353_ACEOF
26354
26355 echo "$as_me:$LINENO: result: found" >&5
26356echo "${ECHO_T}found" >&6
da494b40 26357
da494b40 26358else
e6cc62c6
VS
26359 echo "$as_me: failed program was:" >&5
26360sed 's/^/| /' conftest.$ac_ext >&5
26361
26362
26363 cat >>confdefs.h <<\_ACEOF
da494b40 26364#define __WXMOTIF20__ 0
e6cc62c6
VS
26365_ACEOF
26366
26367 echo "$as_me:$LINENO: result: not found" >&5
26368echo "${ECHO_T}not found" >&6
da494b40 26369
da494b40 26370fi
243f8ae5 26371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
da494b40
MB
26372 CFLAGS=$save_CFLAGS
26373
93a543aa 26374 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 26375 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
26376 TOOLKIT=MOTIF
26377 GUIDIST=MOTIF_DIST
f7f78039
MB
26378 fi
26379
89fe663f
VZ
26380 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
26381 if test "$wxUSE_LIBXPM" = "sys"; then
26382 echo "$as_me:$LINENO: checking for Xpm library" >&5
26383echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
26384
26385ac_find_libraries=
26386for ac_dir in $SEARCH_LIB /usr/lib;
26387 do
26388 for ac_extension in a so sl dylib; do
26389 if test -f "$ac_dir/libXpm.$ac_extension"; then
26390 ac_find_libraries=$ac_dir
26391 break 2
26392 fi
26393 done
26394 done
26395
26396 if test "$ac_find_libraries" != "" ; then
26397
26398 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
26399 result=$?
26400 if test $result = 0; then
26401 ac_path_to_link=""
26402 else
26403 ac_path_to_link=" -L$ac_find_libraries"
26404 fi
26405
26406 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
26407 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
26408echo "${ECHO_T}found at $ac_find_libraries" >&6
26409
26410 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
26411echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
26412if test "${wx_cv_x11_xpm_h+set}" = set; then
26413 echo $ECHO_N "(cached) $ECHO_C" >&6
26414else
26415
26416 save_CFLAGS=$CFLAGS
26417 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26418
26419 cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
26420/* confdefs.h. */
26421_ACEOF
26422cat confdefs.h >>conftest.$ac_ext
26423cat >>conftest.$ac_ext <<_ACEOF
26424/* end confdefs.h. */
26425
26426 #include <X11/xpm.h>
26427
26428int
26429main ()
26430{
26431
26432 int version;
26433 version = XpmLibraryVersion();
26434
26435 ;
26436 return 0;
26437}
26438_ACEOF
26439rm -f conftest.$ac_objext
26440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 26441 (eval $ac_compile) 2>conftest.er1
89fe663f 26442 ac_status=$?
243f8ae5
VS
26443 grep -v '^ *+' conftest.er1 >conftest.err
26444 rm -f conftest.er1
26445 cat conftest.err >&5
89fe663f
VZ
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } &&
243f8ae5
VS
26448 { ac_try='test -z "$ac_c_werror_flag"
26449 || test ! -s conftest.err'
26450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26451 (eval $ac_try) 2>&5
26452 ac_status=$?
26453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26454 (exit $ac_status); }; } &&
26455 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
26456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26457 (eval $ac_try) 2>&5
26458 ac_status=$?
26459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); }; }; then
26461 wx_cv_x11_xpm_h=yes
26462else
26463 echo "$as_me: failed program was:" >&5
26464sed 's/^/| /' conftest.$ac_ext >&5
26465
26466wx_cv_x11_xpm_h=no
26467
26468fi
243f8ae5 26469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26470
26471 CFLAGS=$save_CFLAGS
26472
26473
26474fi
26475echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
26476echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
26477
26478 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 26479 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
26480 cat >>confdefs.h <<\_ACEOF
26481#define wxHAVE_LIB_XPM 1
26482_ACEOF
26483
26484 else
26485 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
26486echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
26487 fi
26488 fi
26489
26490 fi
f7f78039 26491
89fe663f
VZ
26492 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
26493echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
26494if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
26495 echo $ECHO_N "(cached) $ECHO_C" >&6
26496else
26497 ac_check_lib_save_LIBS=$LIBS
26498LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
26499cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
26500/* confdefs.h. */
26501_ACEOF
26502cat confdefs.h >>conftest.$ac_ext
26503cat >>conftest.$ac_ext <<_ACEOF
26504/* end confdefs.h. */
26505
26506/* Override any gcc2 internal prototype to avoid an error. */
26507#ifdef __cplusplus
26508extern "C"
26509#endif
26510/* We use char because int might match the return type of a gcc2
26511 builtin and then its argument prototype would still apply. */
26512char XShapeQueryExtension ();
26513int
26514main ()
26515{
26516XShapeQueryExtension ();
26517 ;
26518 return 0;
26519}
26520_ACEOF
26521rm -f conftest.$ac_objext conftest$ac_exeext
26522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 26523 (eval $ac_link) 2>conftest.er1
89fe663f 26524 ac_status=$?
243f8ae5
VS
26525 grep -v '^ *+' conftest.er1 >conftest.err
26526 rm -f conftest.er1
26527 cat conftest.err >&5
89fe663f
VZ
26528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26529 (exit $ac_status); } &&
243f8ae5
VS
26530 { ac_try='test -z "$ac_c_werror_flag"
26531 || test ! -s conftest.err'
26532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26533 (eval $ac_try) 2>&5
26534 ac_status=$?
26535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26536 (exit $ac_status); }; } &&
26537 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
26538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26539 (eval $ac_try) 2>&5
26540 ac_status=$?
26541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542 (exit $ac_status); }; }; then
26543 ac_cv_lib_Xext_XShapeQueryExtension=yes
26544else
26545 echo "$as_me: failed program was:" >&5
26546sed 's/^/| /' conftest.$ac_ext >&5
26547
26548ac_cv_lib_Xext_XShapeQueryExtension=no
26549fi
243f8ae5
VS
26550rm -f conftest.err conftest.$ac_objext \
26551 conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
26552LIBS=$ac_check_lib_save_LIBS
26553fi
26554echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26555echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26556if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26557
26558 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26559 wxHAVE_XEXT_LIB=1
26560
26561fi
26562
26563
26564 if test "$wxHAVE_XEXT_LIB" = 1; then
26565 save_CFLAGS="$CFLAGS"
26566 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26567
26568 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 26569echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 26570 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26571/* confdefs.h. */
26572_ACEOF
26573cat confdefs.h >>conftest.$ac_ext
26574cat >>conftest.$ac_ext <<_ACEOF
26575/* end confdefs.h. */
26576
89fe663f
VZ
26577 #include <X11/Xlib.h>
26578 #include <X11/extensions/shape.h>
e6cc62c6
VS
26579
26580int
26581main ()
26582{
f7f78039 26583
89fe663f
VZ
26584 int dummy1, dummy2;
26585 XShapeQueryExtension((Display*)NULL,
26586 (int*)NULL, (int*)NULL);
e6cc62c6
VS
26587
26588 ;
26589 return 0;
26590}
26591_ACEOF
26592rm -f conftest.$ac_objext
26593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 26594 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26595 ac_status=$?
243f8ae5
VS
26596 grep -v '^ *+' conftest.er1 >conftest.err
26597 rm -f conftest.er1
26598 cat conftest.err >&5
e6cc62c6
VS
26599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600 (exit $ac_status); } &&
243f8ae5
VS
26601 { ac_try='test -z "$ac_c_werror_flag"
26602 || test ! -s conftest.err'
26603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604 (eval $ac_try) 2>&5
26605 ac_status=$?
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); }; } &&
26608 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26610 (eval $ac_try) 2>&5
26611 ac_status=$?
26612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613 (exit $ac_status); }; }; then
26614
89fe663f 26615 cat >>confdefs.h <<\_ACEOF
f7f78039 26616#define HAVE_XSHAPE 1
e6cc62c6
VS
26617_ACEOF
26618
89fe663f 26619 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 26620echo "${ECHO_T}found" >&6
f7f78039 26621
f7f78039 26622else
e6cc62c6
VS
26623 echo "$as_me: failed program was:" >&5
26624sed 's/^/| /' conftest.$ac_ext >&5
26625
26626
89fe663f 26627 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
26628echo "${ECHO_T}not found" >&6
26629
f7f78039 26630fi
243f8ae5 26631rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26632 CFLAGS="$save_CFLAGS"
26633
26634 fi
21d1c967
GD
26635 fi
26636
26637 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
26638 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26639echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26640 if test "$GCC" = yes; then
26641 echo "$as_me:$LINENO: result: gcc" >&5
26642echo "${ECHO_T}gcc" >&6
26643 CPPFLAGS_PASCAL="-fpascal-strings"
26644 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26645 echo "$as_me:$LINENO: result: xlc" >&5
26646echo "${ECHO_T}xlc" >&6
26647 CPPFLAGS_PASCAL="-qmacpstr"
26648 else
26649 echo "$as_me:$LINENO: result: none" >&5
26650echo "${ECHO_T}none" >&6
26651 fi
26652
26653 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 26654
0c98a14e 26655 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
26656 TOOLKIT=MAC
26657 GUIDIST=MACX_DIST
cf615ebb 26658 WXBASEPORT="_carbon"
21d1c967
GD
26659 fi
26660
ac0c4cc3
DE
26661 if test "$wxUSE_COCOA" = 1; then
26662 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26663 TOOLKIT=COCOA
26664 GUIDIST=COCOA_DIST
26665 fi
26666
21d1c967
GD
26667 if test "$wxUSE_PM" = 1; then
26668 TOOLKIT=PM
26669 GUIDIST=GTK_DIST
26670 fi
26671
26672 if test "$TOOLKIT" = "PM" ; then
26673 TOOLKIT_DIR="os2"
26674 else
26675 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26676 fi
26677
26678 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26679
26680 if test "$wxUSE_UNIVERSAL" = "yes"; then
26681 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26682
26683 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26684 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26685
26686 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26687 if test "$wxUSE_X11" = 1; then
26688 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26689 else
26690 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26691 fi
26692 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26693 WIDGET_SET=univ
26694 else
26695 ALL_OBJECTS="\$(GUIOBJS)"
26696 ALL_SOURCES="\$(ALL_SOURCES)"
26697 ALL_HEADERS="\$(ALL_HEADERS)"
26698 fi
26699
26700 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26701
26702 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26703 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26704 fi
26705
26706 if test "$wxUSE_HTML" = "yes"; then
26707 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26708 fi
26709
26710 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26711 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26712 fi
26713 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26714 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26715 fi
26716 if test "$wxUSE_LIBPNG" = "builtin" ; then
26717 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26718 fi
26719
26720 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26721 DISTDIR="wx\$(TOOLKIT)"
90dd450c 26722else
21d1c967
GD
26723 USE_GUI=0
26724
26725 TOOLKIT_DIR="base"
26726
26727 if test "$USE_WIN32" = 1 ; then
26728 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26729 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26730
26731 TOOLKIT="MSW"
26732 else
26733 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26734 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26735 fi
26736
26737 ALL_SOURCES="\$(ALL_SOURCES)"
26738 ALL_HEADERS="\$(ALL_HEADERS)"
26739
26740 PORT_FILES="\${top_srcdir}/src/files.lst"
26741
26742 GUIDIST="BASE_DIST"
26743 DISTDIR="wxBase"
d836ee96
VZ
26744fi
26745
8284b0c5 26746
8647bec6
RG
26747
26748
26749IODBC_C_SRC=""
26750
26751
26752if test "$TOOLKIT" != "MSW" ; then
26753
bb41dcbe 26754 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 26755
bb41dcbe 26756 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
26757 echo "$as_me:$LINENO: checking for sql.h" >&5
26758echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26759if test "${ac_cv_header_sql_h+set}" = set; then
26760 echo $ECHO_N "(cached) $ECHO_C" >&6
26761fi
26762echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26763echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26764else
26765 # Is the header compilable?
26766echo "$as_me:$LINENO: checking sql.h usability" >&5
26767echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26768cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26769/* confdefs.h. */
26770_ACEOF
26771cat confdefs.h >>conftest.$ac_ext
26772cat >>conftest.$ac_ext <<_ACEOF
26773/* end confdefs.h. */
26774$ac_includes_default
8647bec6 26775#include <sql.h>
e6cc62c6
VS
26776_ACEOF
26777rm -f conftest.$ac_objext
26778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 26779 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26780 ac_status=$?
243f8ae5
VS
26781 grep -v '^ *+' conftest.er1 >conftest.err
26782 rm -f conftest.er1
26783 cat conftest.err >&5
e6cc62c6
VS
26784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26785 (exit $ac_status); } &&
243f8ae5
VS
26786 { ac_try='test -z "$ac_c_werror_flag"
26787 || test ! -s conftest.err'
26788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26789 (eval $ac_try) 2>&5
26790 ac_status=$?
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); }; } &&
26793 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795 (eval $ac_try) 2>&5
26796 ac_status=$?
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); }; }; then
26799 ac_header_compiler=yes
26800else
26801 echo "$as_me: failed program was:" >&5
26802sed 's/^/| /' conftest.$ac_ext >&5
26803
26804ac_header_compiler=no
26805fi
243f8ae5 26806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26807echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26808echo "${ECHO_T}$ac_header_compiler" >&6
26809
26810# Is the header present?
26811echo "$as_me:$LINENO: checking sql.h presence" >&5
26812echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26813cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26814/* confdefs.h. */
26815_ACEOF
26816cat confdefs.h >>conftest.$ac_ext
26817cat >>conftest.$ac_ext <<_ACEOF
26818/* end confdefs.h. */
26819#include <sql.h>
26820_ACEOF
26821if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26823 ac_status=$?
26824 grep -v '^ *+' conftest.er1 >conftest.err
26825 rm -f conftest.er1
26826 cat conftest.err >&5
26827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26828 (exit $ac_status); } >/dev/null; then
26829 if test -s conftest.err; then
26830 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 26831 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26832 else
26833 ac_cpp_err=
26834 fi
26835else
26836 ac_cpp_err=yes
26837fi
26838if test -z "$ac_cpp_err"; then
26839 ac_header_preproc=yes
26840else
26841 echo "$as_me: failed program was:" >&5
26842sed 's/^/| /' conftest.$ac_ext >&5
26843
26844 ac_header_preproc=no
26845fi
26846rm -f conftest.err conftest.$ac_ext
26847echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26848echo "${ECHO_T}$ac_header_preproc" >&6
26849
26850# So? What about this header?
243f8ae5
VS
26851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26852 yes:no: )
e6cc62c6
VS
26853 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26854echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
26855 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26856echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26857 ac_header_preproc=yes
e6cc62c6 26858 ;;
243f8ae5 26859 no:yes:* )
e6cc62c6
VS
26860 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26861echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
243f8ae5
VS
26862 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26863echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26864 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26865echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26866 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26867echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26868 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26869echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
26870 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26871echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26872 (
26873 cat <<\_ASBOX
243f8ae5
VS
26874## ----------------------------------------- ##
26875## Report this to wx-dev@lists.wxwindows.org ##
26876## ----------------------------------------- ##
e6cc62c6
VS
26877_ASBOX
26878 ) |
26879 sed "s/^/$as_me: WARNING: /" >&2
26880 ;;
26881esac
26882echo "$as_me:$LINENO: checking for sql.h" >&5
26883echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26884if test "${ac_cv_header_sql_h+set}" = set; then
26885 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26886else
e6cc62c6
VS
26887 ac_cv_header_sql_h=$ac_header_preproc
26888fi
26889echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26890echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26891
bb41dcbe
VS
26892fi
26893if test $ac_cv_header_sql_h = yes; then
26894 found_sql_h=1
8647bec6
RG
26895fi
26896
e6cc62c6 26897
bb41dcbe 26898 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
26899 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26900echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26901if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 26902 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26903else
bb41dcbe 26904 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26905LIBS="-liodbc $LIBS"
e6cc62c6 26906cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26907/* confdefs.h. */
26908_ACEOF
26909cat confdefs.h >>conftest.$ac_ext
26910cat >>conftest.$ac_ext <<_ACEOF
26911/* end confdefs.h. */
26912
8647bec6 26913/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26914#ifdef __cplusplus
26915extern "C"
26916#endif
8647bec6 26917/* We use char because int might match the return type of a gcc2
e6cc62c6 26918 builtin and then its argument prototype would still apply. */
e46d2a18 26919char SQLAllocEnv ();
e6cc62c6
VS
26920int
26921main ()
26922{
e46d2a18 26923SQLAllocEnv ();
e6cc62c6
VS
26924 ;
26925 return 0;
26926}
26927_ACEOF
26928rm -f conftest.$ac_objext conftest$ac_exeext
26929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 26930 (eval $ac_link) 2>conftest.er1
e6cc62c6 26931 ac_status=$?
243f8ae5
VS
26932 grep -v '^ *+' conftest.er1 >conftest.err
26933 rm -f conftest.er1
26934 cat conftest.err >&5
e6cc62c6
VS
26935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26936 (exit $ac_status); } &&
243f8ae5
VS
26937 { ac_try='test -z "$ac_c_werror_flag"
26938 || test ! -s conftest.err'
26939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26940 (eval $ac_try) 2>&5
26941 ac_status=$?
26942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943 (exit $ac_status); }; } &&
26944 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946 (eval $ac_try) 2>&5
26947 ac_status=$?
26948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949 (exit $ac_status); }; }; then
e46d2a18 26950 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 26951else
e6cc62c6
VS
26952 echo "$as_me: failed program was:" >&5
26953sed 's/^/| /' conftest.$ac_ext >&5
26954
e46d2a18 26955ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 26956fi
243f8ae5
VS
26957rm -f conftest.err conftest.$ac_objext \
26958 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26959LIBS=$ac_check_lib_save_LIBS
26960fi
e46d2a18
VS
26961echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26962echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26963if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26964 ODBC_LINK=" -liodbc"
26965else
26966
e46d2a18
VS
26967 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26968echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26969if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26970 echo $ECHO_N "(cached) $ECHO_C" >&6
26971else
26972 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26973LIBS="-lunixodbc $LIBS"
bb41dcbe 26974cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26975/* confdefs.h. */
26976_ACEOF
26977cat confdefs.h >>conftest.$ac_ext
26978cat >>conftest.$ac_ext <<_ACEOF
26979/* end confdefs.h. */
26980
8647bec6 26981/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26982#ifdef __cplusplus
26983extern "C"
26984#endif
8647bec6 26985/* We use char because int might match the return type of a gcc2
e6cc62c6 26986 builtin and then its argument prototype would still apply. */
e46d2a18 26987char SQLAllocEnv ();
e6cc62c6
VS
26988int
26989main ()
26990{
e46d2a18 26991SQLAllocEnv ();
e6cc62c6
VS
26992 ;
26993 return 0;
26994}
26995_ACEOF
26996rm -f conftest.$ac_objext conftest$ac_exeext
26997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 26998 (eval $ac_link) 2>conftest.er1
e6cc62c6 26999 ac_status=$?
243f8ae5
VS
27000 grep -v '^ *+' conftest.er1 >conftest.err
27001 rm -f conftest.er1
27002 cat conftest.err >&5
e6cc62c6
VS
27003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004 (exit $ac_status); } &&
243f8ae5
VS
27005 { ac_try='test -z "$ac_c_werror_flag"
27006 || test ! -s conftest.err'
27007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27008 (eval $ac_try) 2>&5
27009 ac_status=$?
27010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27011 (exit $ac_status); }; } &&
27012 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27014 (eval $ac_try) 2>&5
27015 ac_status=$?
27016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27017 (exit $ac_status); }; }; then
e46d2a18 27018 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 27019else
e6cc62c6
VS
27020 echo "$as_me: failed program was:" >&5
27021sed 's/^/| /' conftest.$ac_ext >&5
27022
e46d2a18 27023ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 27024fi
243f8ae5
VS
27025rm -f conftest.err conftest.$ac_objext \
27026 conftest$ac_exeext conftest.$ac_ext
bb41dcbe 27027LIBS=$ac_check_lib_save_LIBS
e6cc62c6 27028fi
e46d2a18
VS
27029echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
27030echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
27031if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
27032 ODBC_LINK=" -lunixodbc"
27033else
27034
e46d2a18
VS
27035 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
27036echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
27037if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
27038 echo $ECHO_N "(cached) $ECHO_C" >&6
27039else
27040 ac_check_lib_save_LIBS=$LIBS
e46d2a18 27041LIBS="-lodbc $LIBS"
bb41dcbe 27042cat >conftest.$ac_ext <<_ACEOF
bb41dcbe
VS
27043/* confdefs.h. */
27044_ACEOF
27045cat confdefs.h >>conftest.$ac_ext
27046cat >>conftest.$ac_ext <<_ACEOF
27047/* end confdefs.h. */
e6cc62c6 27048
bb41dcbe
VS
27049/* Override any gcc2 internal prototype to avoid an error. */
27050#ifdef __cplusplus
27051extern "C"
27052#endif
27053/* We use char because int might match the return type of a gcc2
27054 builtin and then its argument prototype would still apply. */
e46d2a18 27055char SQLAllocEnv ();
bb41dcbe
VS
27056int
27057main ()
27058{
e46d2a18 27059SQLAllocEnv ();
bb41dcbe
VS
27060 ;
27061 return 0;
27062}
27063_ACEOF
27064rm -f conftest.$ac_objext conftest$ac_exeext
27065if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 27066 (eval $ac_link) 2>conftest.er1
bb41dcbe 27067 ac_status=$?
243f8ae5
VS
27068 grep -v '^ *+' conftest.er1 >conftest.err
27069 rm -f conftest.er1
27070 cat conftest.err >&5
bb41dcbe
VS
27071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27072 (exit $ac_status); } &&
243f8ae5
VS
27073 { ac_try='test -z "$ac_c_werror_flag"
27074 || test ! -s conftest.err'
27075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27076 (eval $ac_try) 2>&5
27077 ac_status=$?
27078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27079 (exit $ac_status); }; } &&
27080 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
27081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27082 (eval $ac_try) 2>&5
27083 ac_status=$?
27084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27085 (exit $ac_status); }; }; then
e46d2a18 27086 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 27087else
bb41dcbe
VS
27088 echo "$as_me: failed program was:" >&5
27089sed 's/^/| /' conftest.$ac_ext >&5
27090
e46d2a18 27091ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 27092fi
243f8ae5
VS
27093rm -f conftest.err conftest.$ac_objext \
27094 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
27095LIBS=$ac_check_lib_save_LIBS
27096fi
e46d2a18
VS
27097echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
27098echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
27099if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
27100 ODBC_LINK=" -lodbc"
27101fi
27102
27103
27104fi
e6cc62c6 27105
e6cc62c6 27106
8647bec6 27107fi
e6cc62c6 27108
fd3d7534 27109 fi
bb41dcbe
VS
27110 if test "x$ODBC_LINK" = "x" ; then
27111 if test "$wxUSE_ODBC" = "sys" ; then
27112 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
27113echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
27114 { (exit 1); exit 1; }; }
27115 else
27116 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
27117echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
27118 wxUSE_ODBC=builtin
27119 fi
27120 else
27121 wxUSE_ODBC=sys
8647bec6 27122 fi
8647bec6 27123 fi
bb41dcbe
VS
27124 if test "$wxUSE_ODBC" != "no" ; then
27125 cat >>confdefs.h <<\_ACEOF
27126#define wxUSE_ODBC 1
27127_ACEOF
e6cc62c6 27128
0bdb08e7
VS
27129 if test "$wxUSE_ODBC" = "builtin" ; then
27130 cat >>confdefs.h <<\_ACEOF
27131#define wxUSE_BUILTIN_IODBC 1
27132_ACEOF
27133
27134 fi
bb41dcbe
VS
27135 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
27136
27137 WXODBCFLAG="-D_IODBC_"
27138 fi
6232543b 27139fi
21d1c967
GD
27140
27141if test "$wxUSE_REGEX" = "builtin" ; then
27142 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 27143fi
21d1c967
GD
27144if test "$wxUSE_ZLIB" = "builtin" ; then
27145 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
27146fi
27147
74500461
VS
27148if test "$wxUSE_DISPLAY" = "yes"; then
27149 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
27150 echo "$as_me:$LINENO: checking for Xinerama" >&5
27151echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
27152
27153ac_find_libraries=
27154for ac_dir in $SEARCH_LIB /usr/lib;
27155 do
27156 for ac_extension in a so sl dylib; do
27157 if test -f "$ac_dir/libXinerama.$ac_extension"; then
27158 ac_find_libraries=$ac_dir
27159 break 2
27160 fi
27161 done
27162 done
27163
27164 if test "$ac_find_libraries" != "" ; then
27165
27166 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27167 result=$?
27168 if test $result = 0; then
27169 ac_path_to_link=""
27170 else
27171 ac_path_to_link=" -L$ac_find_libraries"
27172 fi
27173
27174 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27175 LDFLAGS="$LDFLAGS $ac_path_to_link"
27176 fi
27177 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
27178 echo "$as_me:$LINENO: result: yes" >&5
27179echo "${ECHO_T}yes" >&6
505c8ccd
VS
27180
27181 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
27182echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
27183
27184ac_find_libraries=
27185for ac_dir in $SEARCH_LIB /usr/lib;
27186 do
27187 for ac_extension in a so sl dylib; do
27188 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
27189 ac_find_libraries=$ac_dir
27190 break 2
27191 fi
27192 done
27193 done
27194
27195 if test "$ac_find_libraries" != "" ; then
27196 echo "$as_me:$LINENO: result: yes" >&5
27197echo "${ECHO_T}yes" >&6
27198
27199for ac_header in X11/extensions/xf86vmode.h
27200do
27201as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27202echo "$as_me:$LINENO: checking for $ac_header" >&5
27203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27204if eval "test \"\${$as_ac_Header+set}\" = set"; then
27205 echo $ECHO_N "(cached) $ECHO_C" >&6
27206else
27207 cat >conftest.$ac_ext <<_ACEOF
27208/* confdefs.h. */
27209_ACEOF
27210cat confdefs.h >>conftest.$ac_ext
27211cat >>conftest.$ac_ext <<_ACEOF
27212/* end confdefs.h. */
27213
27214 #if HAVE_X11_XLIB_H
27215 #include <X11/Xlib.h>
27216 #endif
27217
27218
27219#include <$ac_header>
27220_ACEOF
27221rm -f conftest.$ac_objext
27222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 27223 (eval $ac_compile) 2>conftest.er1
505c8ccd 27224 ac_status=$?
243f8ae5
VS
27225 grep -v '^ *+' conftest.er1 >conftest.err
27226 rm -f conftest.er1
27227 cat conftest.err >&5
505c8ccd
VS
27228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); } &&
243f8ae5
VS
27230 { ac_try='test -z "$ac_c_werror_flag"
27231 || test ! -s conftest.err'
27232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27233 (eval $ac_try) 2>&5
27234 ac_status=$?
27235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236 (exit $ac_status); }; } &&
27237 { ac_try='test -s conftest.$ac_objext'
505c8ccd
VS
27238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27239 (eval $ac_try) 2>&5
27240 ac_status=$?
27241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242 (exit $ac_status); }; }; then
27243 eval "$as_ac_Header=yes"
27244else
27245 echo "$as_me: failed program was:" >&5
27246sed 's/^/| /' conftest.$ac_ext >&5
27247
27248eval "$as_ac_Header=no"
27249fi
243f8ae5 27250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
505c8ccd
VS
27251fi
27252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27254if test `eval echo '${'$as_ac_Header'}'` = yes; then
27255 cat >>confdefs.h <<_ACEOF
27256#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27257_ACEOF
27258
27259 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
27260
27261fi
27262
27263done
27264
27265 else
27266 echo "$as_me:$LINENO: result: no" >&5
27267echo "${ECHO_T}no" >&6
27268 fi
27269
74500461
VS
27270 else
27271 echo "$as_me:$LINENO: result: no" >&5
27272echo "${ECHO_T}no" >&6
27273 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
27274echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
27275 wxUSE_DISPLAY="no"
27276 fi
27277 fi
27278fi
27279
8284b0c5 27280
4d264332 27281USE_OPENGL=0
21d1c967 27282if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 27283 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
27284 OPENGL_LIBS="-framework OpenGL -framework AGL"
27285 elif test "$wxUSE_MSW" = 1; then
27286 OPENGL_LIBS="-lopengl32 -lglu32"
27287 else
01aa5863
VS
27288
27289
27290ac_find_includes=
27291for ac_dir in $SEARCH_INCLUDE /usr/include;
27292 do
27293 if test -f "$ac_dir/GL/gl.h"; then
27294 ac_find_includes=$ac_dir
27295 break
27296 fi
27297 done
27298
27299 if test "$ac_find_includes" != "" ; then
27300 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
27301echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
27302
27303 if test "x$ac_find_includes" = "x/usr/include"; then
27304 ac_path_to_include=""
27305 else
27306 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
27307 result=$?
27308 if test $result = 0; then
27309 ac_path_to_include=""
27310 else
27311 ac_path_to_include=" -I$ac_find_includes"
27312 fi
27313 fi
27314
27315 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
27316 fi
27317
e6cc62c6
VS
27318 if test "${ac_cv_header_GL_gl_h+set}" = set; then
27319 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27320echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27321if test "${ac_cv_header_GL_gl_h+set}" = set; then
27322 echo $ECHO_N "(cached) $ECHO_C" >&6
27323fi
27324echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27325echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27326else
27327 # Is the header compilable?
27328echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
27329echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
27330cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27331/* confdefs.h. */
27332_ACEOF
27333cat confdefs.h >>conftest.$ac_ext
27334cat >>conftest.$ac_ext <<_ACEOF
27335/* end confdefs.h. */
27336$ac_includes_default
21d1c967 27337#include <GL/gl.h>
e6cc62c6
VS
27338_ACEOF
27339rm -f conftest.$ac_objext
27340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 27341 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27342 ac_status=$?
243f8ae5
VS
27343 grep -v '^ *+' conftest.er1 >conftest.err
27344 rm -f conftest.er1
27345 cat conftest.err >&5
e6cc62c6
VS
27346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347 (exit $ac_status); } &&
243f8ae5
VS
27348 { ac_try='test -z "$ac_c_werror_flag"
27349 || test ! -s conftest.err'
27350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27351 (eval $ac_try) 2>&5
27352 ac_status=$?
27353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; } &&
27355 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27357 (eval $ac_try) 2>&5
27358 ac_status=$?
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); }; }; then
27361 ac_header_compiler=yes
27362else
27363 echo "$as_me: failed program was:" >&5
27364sed 's/^/| /' conftest.$ac_ext >&5
27365
27366ac_header_compiler=no
27367fi
243f8ae5 27368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
27369echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27370echo "${ECHO_T}$ac_header_compiler" >&6
27371
27372# Is the header present?
27373echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
27374echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
27375cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27376/* confdefs.h. */
27377_ACEOF
27378cat confdefs.h >>conftest.$ac_ext
27379cat >>conftest.$ac_ext <<_ACEOF
27380/* end confdefs.h. */
27381#include <GL/gl.h>
27382_ACEOF
27383if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27384 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27385 ac_status=$?
27386 grep -v '^ *+' conftest.er1 >conftest.err
27387 rm -f conftest.er1
27388 cat conftest.err >&5
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); } >/dev/null; then
27391 if test -s conftest.err; then
27392 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 27393 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
27394 else
27395 ac_cpp_err=
27396 fi
27397else
27398 ac_cpp_err=yes
27399fi
27400if test -z "$ac_cpp_err"; then
27401 ac_header_preproc=yes
27402else
27403 echo "$as_me: failed program was:" >&5
27404sed 's/^/| /' conftest.$ac_ext >&5
27405
27406 ac_header_preproc=no
27407fi
27408rm -f conftest.err conftest.$ac_ext
27409echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27410echo "${ECHO_T}$ac_header_preproc" >&6
27411
27412# So? What about this header?
243f8ae5
VS
27413case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27414 yes:no: )
e6cc62c6
VS
27415 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
27416echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
27417 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
27418echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
27419 ac_header_preproc=yes
e6cc62c6 27420 ;;
243f8ae5 27421 no:yes:* )
e6cc62c6
VS
27422 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
27423echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
243f8ae5
VS
27424 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
27425echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
27426 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
27427echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
27428 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
27429echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
27430 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
27431echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
27432 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
27433echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
27434 (
27435 cat <<\_ASBOX
243f8ae5
VS
27436## ----------------------------------------- ##
27437## Report this to wx-dev@lists.wxwindows.org ##
27438## ----------------------------------------- ##
e6cc62c6
VS
27439_ASBOX
27440 ) |
27441 sed "s/^/$as_me: WARNING: /" >&2
27442 ;;
27443esac
27444echo "$as_me:$LINENO: checking for GL/gl.h" >&5
27445echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
27446if test "${ac_cv_header_GL_gl_h+set}" = set; then
27447 echo $ECHO_N "(cached) $ECHO_C" >&6
27448else
27449 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 27450fi
e6cc62c6
VS
27451echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
27452echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
27453
698dcdb6 27454fi
e6cc62c6
VS
27455if test $ac_cv_header_GL_gl_h = yes; then
27456
89e3b3e4
VZ
27457 found_gl=0
27458
e6cc62c6
VS
27459 echo "$as_me:$LINENO: checking for -lGL" >&5
27460echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
27461
21d1c967 27462ac_find_libraries=
2b5f62a0 27463for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
27464 do
27465 for ac_extension in a so sl dylib; do
27466 if test -f "$ac_dir/libGL.$ac_extension"; then
27467 ac_find_libraries=$ac_dir
27468 break 2
27469 fi
27470 done
27471 done
27472
27473 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27474
21d1c967
GD
27475 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27476 result=$?
27477 if test $result = 0; then
27478 ac_path_to_link=""
27479 else
27480 ac_path_to_link=" -L$ac_find_libraries"
27481 fi
27482
89e3b3e4
VZ
27483 if test "$ac_path_to_link" != " -L/usr/lib" ; then
27484 LDFLAGS_GL="$ac_path_to_link"
21d1c967 27485 fi
89e3b3e4 27486
e6cc62c6 27487
89e3b3e4
VZ
27488ac_find_libraries=
27489for ac_dir in $SEARCH_LIB /usr/lib;
27490 do
27491 for ac_extension in a so sl dylib; do
27492 if test -f "$ac_dir/libGLU.$ac_extension"; then
27493 ac_find_libraries=$ac_dir
27494 break 2
27495 fi
27496 done
27497 done
27498
27499 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27500
89e3b3e4
VZ
27501 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27502 result=$?
27503 if test $result = 0; then
27504 ac_path_to_link=""
27505 else
27506 ac_path_to_link=" -L$ac_find_libraries"
27507 fi
27508
27509 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27510 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27511 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27512 fi
27513
27514 found_gl=1
27515 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
27516 echo "$as_me:$LINENO: result: yes" >&5
27517echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
27518 fi
27519 fi
27520
bb41dcbe 27521 if test "$found_gl" != 1; then
e6cc62c6
VS
27522 echo "$as_me:$LINENO: result: no" >&5
27523echo "${ECHO_T}no" >&6
27524 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27525echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27526
21d1c967 27527ac_find_libraries=
2b5f62a0 27528for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
27529 do
27530 for ac_extension in a so sl dylib; do
27531 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27532 ac_find_libraries=$ac_dir
27533 break 2
27534 fi
27535 done
27536 done
27537
27538 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27539
21d1c967
GD
27540 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27541 result=$?
27542 if test $result = 0; then
27543 ac_path_to_link=""
27544 else
27545 ac_path_to_link=" -L$ac_find_libraries"
27546 fi
27547
27548 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27549 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
27550 echo "$as_me:$LINENO: result: yes" >&5
27551echo "${ECHO_T}yes" >&6
21d1c967 27552 else
e6cc62c6
VS
27553 echo "$as_me:$LINENO: result: no" >&5
27554echo "${ECHO_T}no" >&6
21d1c967
GD
27555 fi
27556 fi
e6cc62c6 27557
5c6fa7d2 27558fi
52127426 27559
8284b0c5 27560
e6cc62c6 27561
21d1c967 27562 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
27563 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27564echo "$as_me: error: OpenGL libraries not available" >&2;}
27565 { (exit 1); exit 1; }; }
21d1c967
GD
27566 fi
27567 fi
90dd450c 27568
21d1c967 27569 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 27570 USE_OPENGL=1
e6cc62c6 27571 cat >>confdefs.h <<\_ACEOF
21d1c967 27572#define wxUSE_OPENGL 1
e6cc62c6 27573_ACEOF
21d1c967 27574
e6cc62c6 27575 cat >>confdefs.h <<\_ACEOF
21d1c967 27576#define wxUSE_GLCANVAS 1
e6cc62c6 27577_ACEOF
21d1c967 27578
520755bb 27579 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 27580 fi
10f2d63a 27581fi
21d1c967
GD
27582
27583if test -z "$TOOLKIT_VPATH" ; then
27584 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 27585fi
21d1c967
GD
27586
27587if test -n "$TOOLKIT" ; then
27588 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27589fi
27590
fe0895cf 27591UNICODE=0
21d1c967
GD
27592lib_unicode_suffix=
27593if test "$wxUSE_UNICODE" = "yes"; then
27594 lib_unicode_suffix=u
fe0895cf 27595 UNICODE=1
90dd450c 27596fi
698dcdb6 27597
21d1c967 27598lib_debug_suffix=
6c67131a 27599DEBUG_FLAG=0
21d1c967
GD
27600if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27601 lib_debug_suffix=d
6c67131a
VS
27602 DEBUG_FLAG=1
27603fi
27604
27605DEBUG_INFO=0
27606if test "$wxUSE_DEBUG_INFO" = "yes"; then
27607 DEBUG_INFO=1
21d1c967 27608fi
698dcdb6 27609
1cbb95a2 27610WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
27611
27612TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27613TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
27614
27615if test "$cross_compiling" = "yes"; then
27616 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27617 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 27618 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
27619fi
27620
27621WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27622WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
27623WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27624WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
27625
27626WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27627WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27628
27629WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27630WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27631WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27632WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27633
27634case "${host}" in
27635 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
27636 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27637 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
27638 ;;
27639
27640 *-*-darwin* )
e6cc62c6 27641
05159a27
GD
27642 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27643 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27644
27645 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27646 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27647 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27648 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27649
09d3439c
VZ
27650 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27651 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
f346733b 27652 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
27653 fi
27654 ;;
27655esac
27656
27657WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27658WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27659
27660WXCONFIG_LIBS="-l${WX_LIBRARY}"
27661WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27662
27663if test "$wxUSE_OPENGL" = "yes"; then
27664 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27665 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27666fi
27667
8284b0c5
MB
27668
27669
21d1c967
GD
27670if test "$wxUSE_SHARED" = "yes"; then
27671 case "${host}" in
27672 *-pc-os2_emx | *-pc-os2-emx | \
27673 *-pc-msdosdjgpp )
27674 wxUSE_SHARED=no
e6cc62c6
VS
27675 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27676echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
27677 ;;
27678 esac
27679fi
27680
fe0895cf 27681SHARED=0
2b5f62a0 27682if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 27683 SHARED=1
2b5f62a0 27684
e6cc62c6 27685
2b5f62a0
VZ
27686 found_versioning=no
27687
e6cc62c6 27688
2b5f62a0 27689 if test $found_versioning = no ; then
e6cc62c6
VS
27690 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27691echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27692if test "${wx_cv_version_script+set}" = set; then
27693 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 27694else
e6cc62c6 27695
2b5f62a0
VZ
27696 echo "VER_1 { *; };" >conftest.sym
27697 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 27698
2b5f62a0
VZ
27699 if { ac_try='
27700 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
27701 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27703 (eval $ac_try) 2>&5
27704 ac_status=$?
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); }; } ; then
2b5f62a0
VZ
27707 if test -s conftest.stderr ; then
27708 wx_cv_version_script=no
27709 else
27710 wx_cv_version_script=yes
27711 fi
27712 else
27713 wx_cv_version_script=no
27714 fi
27715 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 27716
e6cc62c6
VS
27717fi
27718echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27719echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 27720 if test $wx_cv_version_script = yes ; then
e6cc62c6 27721 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
27722 fi
27723 fi
21d1c967 27724
21d1c967 27725
21d1c967 27726 case "${host}" in
fe0895cf 27727 *-*-linux* | *-*-gnu* )
e6cc62c6 27728 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 27729 ;;
21d1c967
GD
27730
27731 *-*-solaris2* )
27732 if test "$GCC" = yes ; then
27733 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
27734
27735 saveLdflags="$LDFLAGS"
27736 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
27737 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27738echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27739 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27740/* confdefs.h. */
27741_ACEOF
27742cat confdefs.h >>conftest.$ac_ext
27743cat >>conftest.$ac_ext <<_ACEOF
27744/* end confdefs.h. */
27745
27746int
27747main ()
27748{
fe0895cf 27749
e6cc62c6
VS
27750 ;
27751 return 0;
27752}
27753_ACEOF
27754rm -f conftest.$ac_objext conftest$ac_exeext
27755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 27756 (eval $ac_link) 2>conftest.er1
e6cc62c6 27757 ac_status=$?
243f8ae5
VS
27758 grep -v '^ *+' conftest.er1 >conftest.err
27759 rm -f conftest.er1
27760 cat conftest.err >&5
e6cc62c6
VS
27761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27762 (exit $ac_status); } &&
243f8ae5
VS
27763 { ac_try='test -z "$ac_c_werror_flag"
27764 || test ! -s conftest.err'
27765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27766 (eval $ac_try) 2>&5
27767 ac_status=$?
27768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27769 (exit $ac_status); }; } &&
27770 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27772 (eval $ac_try) 2>&5
27773 ac_status=$?
27774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775 (exit $ac_status); }; }; then
27776
27777 echo "$as_me:$LINENO: result: yes" >&5
27778echo "${ECHO_T}yes" >&6
27779 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27780
27781else
27782 echo "$as_me: failed program was:" >&5
27783sed 's/^/| /' conftest.$ac_ext >&5
27784
27785
27786 echo "$as_me:$LINENO: result: no" >&5
27787echo "${ECHO_T}no" >&6
27788 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27789echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 27790 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 27791 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27792/* confdefs.h. */
27793_ACEOF
27794cat confdefs.h >>conftest.$ac_ext
27795cat >>conftest.$ac_ext <<_ACEOF
27796/* end confdefs.h. */
27797
27798int
27799main ()
27800{
27801
27802 ;
27803 return 0;
27804}
27805_ACEOF
27806rm -f conftest.$ac_objext conftest$ac_exeext
27807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 27808 (eval $ac_link) 2>conftest.er1
e6cc62c6 27809 ac_status=$?
243f8ae5
VS
27810 grep -v '^ *+' conftest.er1 >conftest.err
27811 rm -f conftest.er1
27812 cat conftest.err >&5
e6cc62c6
VS
27813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814 (exit $ac_status); } &&
243f8ae5
VS
27815 { ac_try='test -z "$ac_c_werror_flag"
27816 || test ! -s conftest.err'
27817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27818 (eval $ac_try) 2>&5
27819 ac_status=$?
27820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821 (exit $ac_status); }; } &&
27822 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27824 (eval $ac_try) 2>&5
27825 ac_status=$?
27826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827 (exit $ac_status); }; }; then
27828
27829 echo "$as_me:$LINENO: result: yes" >&5
27830echo "${ECHO_T}yes" >&6
27831 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27832else
27833 echo "$as_me: failed program was:" >&5
27834sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 27835
fe0895cf 27836
e6cc62c6
VS
27837 echo "$as_me:$LINENO: result: no" >&5
27838echo "${ECHO_T}no" >&6
27839
fe0895cf 27840fi
243f8ae5
VS
27841rm -f conftest.err conftest.$ac_objext \
27842 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27843
27844fi
243f8ae5
VS
27845rm -f conftest.err conftest.$ac_objext \
27846 conftest$ac_exeext conftest.$ac_ext
fe0895cf 27847 LDFLAGS="$saveLdflags"
21d1c967
GD
27848 else
27849 SHARED_LD="${CXX} -G -o"
27850 PIC_FLAG="-KPIC"
e6cc62c6 27851 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
27852 fi
27853 ;;
0f1bc9c2
VS
27854
27855 powerpc-*-darwin* )
ef0add05
VS
27856 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27857 cat <<EOF >change-install-names
27858#!/bin/sh
27859libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27860inst_cmd="install_name_tool "
27861for i in \${libnames} ; do
27862 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27863done
27864\${inst_cmd} \${3}
27865EOF
27866 chmod +x change-install-names
0f1bc9c2
VS
27867 ;;
27868
21d1c967
GD
27869 esac
27870
27871 if test "x$WX_TARGET_LIBRARY" = "x"; then
27872 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27873 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27874 fi
27875
27876 WX_TARGET_LIBRARY_TYPE="so"
27877 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 27878fi
10f2d63a 27879
21d1c967
GD
27880if test "$wxUSE_SHARED" = "no"; then
27881
27882 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27883 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27884 fi
27885
ac0c4cc3 27886 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
27887 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27888 fi
27889
27890 if test "$wxUSE_OPENGL" = "yes"; then
27891 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27892 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27893 else
27894 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27895 fi
27896
27897 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27898 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27899
27900 WX_TARGET_LIBRARY_TYPE="a"
27901 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
27902
27903 STATIC_FLAG="yes"
27904else
27905 STATIC_FLAG="no"
90dd450c 27906fi
1e487827 27907
09d3439c 27908if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
e6cc62c6 27909 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
27910 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27911 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
09d3439c 27912
21d1c967
GD
27913 # Extract the first word of "Rez", so it can be a program name with args.
27914set dummy Rez; ac_word=$2
e6cc62c6
VS
27915echo "$as_me:$LINENO: checking for $ac_word" >&5
27916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27917if test "${ac_cv_prog_RESCOMP+set}" = set; then
27918 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 27919else
21d1c967
GD
27920 if test -n "$RESCOMP"; then
27921 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 27922else
e6cc62c6
VS
27923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27924for as_dir in $PATH
27925do
27926 IFS=$as_save_IFS
27927 test -z "$as_dir" && as_dir=.
27928 for ac_exec_ext in '' $ac_executable_extensions; do
27929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27930 ac_cv_prog_RESCOMP="Rez"
27931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27932 break 2
27933 fi
27934done
27935done
27936
21d1c967 27937 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 27938fi
b93d0d08 27939fi
e6cc62c6 27940RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 27941if test -n "$RESCOMP"; then
e6cc62c6
VS
27942 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27943echo "${ECHO_T}$RESCOMP" >&6
90dd450c 27944else
e6cc62c6
VS
27945 echo "$as_me:$LINENO: result: no" >&5
27946echo "${ECHO_T}no" >&6
90dd450c 27947fi
b93d0d08 27948
21d1c967
GD
27949 # Extract the first word of "DeRez", so it can be a program name with args.
27950set dummy DeRez; ac_word=$2
e6cc62c6
VS
27951echo "$as_me:$LINENO: checking for $ac_word" >&5
27952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27953if test "${ac_cv_prog_DEREZ+set}" = set; then
27954 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 27955else
21d1c967
GD
27956 if test -n "$DEREZ"; then
27957 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 27958else
e6cc62c6
VS
27959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27960for as_dir in $PATH
27961do
27962 IFS=$as_save_IFS
27963 test -z "$as_dir" && as_dir=.
27964 for ac_exec_ext in '' $ac_executable_extensions; do
27965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27966 ac_cv_prog_DEREZ="DeRez"
27967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27968 break 2
27969 fi
27970done
27971done
27972
21d1c967 27973 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 27974fi
90dd450c 27975fi
e6cc62c6 27976DEREZ=$ac_cv_prog_DEREZ
21d1c967 27977if test -n "$DEREZ"; then
e6cc62c6
VS
27978 echo "$as_me:$LINENO: result: $DEREZ" >&5
27979echo "${ECHO_T}$DEREZ" >&6
90dd450c 27980else
e6cc62c6
VS
27981 echo "$as_me:$LINENO: result: no" >&5
27982echo "${ECHO_T}no" >&6
3a922bb4 27983fi
698dcdb6 27984
36825681
GD
27985 # Extract the first word of "SetFile", so it can be a program name with args.
27986set dummy SetFile; ac_word=$2
e6cc62c6
VS
27987echo "$as_me:$LINENO: checking for $ac_word" >&5
27988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27989if test "${ac_cv_prog_SETFILE+set}" = set; then
27990 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
27991else
27992 if test -n "$SETFILE"; then
27993 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27994else
e6cc62c6
VS
27995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27996for as_dir in $PATH
27997do
27998 IFS=$as_save_IFS
27999 test -z "$as_dir" && as_dir=.
28000 for ac_exec_ext in '' $ac_executable_extensions; do
28001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28002 ac_cv_prog_SETFILE="SetFile"
28003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28004 break 2
28005 fi
28006done
28007done
28008
36825681
GD
28009 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
28010fi
28011fi
e6cc62c6 28012SETFILE=$ac_cv_prog_SETFILE
36825681 28013if test -n "$SETFILE"; then
e6cc62c6
VS
28014 echo "$as_me:$LINENO: result: $SETFILE" >&5
28015echo "${ECHO_T}$SETFILE" >&6
36825681 28016else
e6cc62c6
VS
28017 echo "$as_me:$LINENO: result: no" >&5
28018echo "${ECHO_T}no" >&6
36825681
GD
28019fi
28020
e6cc62c6 28021
09d3439c 28022 MACSETFILE="\$(SETFILE)"
64440d77 28023
09d3439c
VZ
28024 if test "$wxUSE_MAC" = 1; then
28025 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
e6cc62c6 28026
09d3439c
VZ
28027 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28028 else
28029 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
28030 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
28031 fi
64440d77 28032else
09d3439c
VZ
28033 MACSETFILE="@#"
28034 MACRESWXCONFIG="#"
64440d77 28035
09d3439c 28036 if test "$wxUSE_PM" = 1; then
36825681 28037 MACRESCOMP="emxbind -ep"
09d3439c
VZ
28038 else
28039 MACRESCOMP="@#"
90dd450c 28040 fi
4f14bcd8 28041fi
10f2d63a 28042
8284b0c5 28043
f93ca9fd 28044
e6cc62c6
VS
28045echo "$as_me:$LINENO: checking for mode_t" >&5
28046echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
28047if test "${ac_cv_type_mode_t+set}" = set; then
28048 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 28049else
e6cc62c6 28050 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28051/* confdefs.h. */
28052_ACEOF
28053cat confdefs.h >>conftest.$ac_ext
28054cat >>conftest.$ac_ext <<_ACEOF
28055/* end confdefs.h. */
28056$ac_includes_default
28057int
28058main ()
28059{
28060if ((mode_t *) 0)
28061 return 0;
28062if (sizeof (mode_t))
28063 return 0;
28064 ;
28065 return 0;
28066}
28067_ACEOF
28068rm -f conftest.$ac_objext
28069if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 28070 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28071 ac_status=$?
243f8ae5
VS
28072 grep -v '^ *+' conftest.er1 >conftest.err
28073 rm -f conftest.er1
28074 cat conftest.err >&5
e6cc62c6
VS
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); } &&
243f8ae5
VS
28077 { ac_try='test -z "$ac_c_werror_flag"
28078 || test ! -s conftest.err'
28079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28080 (eval $ac_try) 2>&5
28081 ac_status=$?
28082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28083 (exit $ac_status); }; } &&
28084 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28086 (eval $ac_try) 2>&5
28087 ac_status=$?
28088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28089 (exit $ac_status); }; }; then
28090 ac_cv_type_mode_t=yes
a0b9e27f 28091else
e6cc62c6
VS
28092 echo "$as_me: failed program was:" >&5
28093sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 28094
e6cc62c6 28095ac_cv_type_mode_t=no
a0b9e27f 28096fi
243f8ae5 28097rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52127426 28098fi
e6cc62c6
VS
28099echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
28100echo "${ECHO_T}$ac_cv_type_mode_t" >&6
28101if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
28102 :
28103else
a0b9e27f 28104
e6cc62c6
VS
28105cat >>confdefs.h <<_ACEOF
28106#define mode_t int
28107_ACEOF
8284b0c5
MB
28108
28109fi
28110
e6cc62c6
VS
28111echo "$as_me:$LINENO: checking for off_t" >&5
28112echo $ECHO_N "checking for off_t... $ECHO_C" >&6
28113if test "${ac_cv_type_off_t+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 28115else
e6cc62c6 28116 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28117/* confdefs.h. */
28118_ACEOF
28119cat confdefs.h >>conftest.$ac_ext
28120cat >>conftest.$ac_ext <<_ACEOF
28121/* end confdefs.h. */
28122$ac_includes_default
28123int
28124main ()
28125{
28126if ((off_t *) 0)
28127 return 0;
28128if (sizeof (off_t))
28129 return 0;
28130 ;
28131 return 0;
28132}
28133_ACEOF
28134rm -f conftest.$ac_objext
28135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 28136 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28137 ac_status=$?
243f8ae5
VS
28138 grep -v '^ *+' conftest.er1 >conftest.err
28139 rm -f conftest.er1
28140 cat conftest.err >&5
e6cc62c6
VS
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } &&
243f8ae5
VS
28143 { ac_try='test -z "$ac_c_werror_flag"
28144 || test ! -s conftest.err'
28145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146 (eval $ac_try) 2>&5
28147 ac_status=$?
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; } &&
28150 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152 (eval $ac_try) 2>&5
28153 ac_status=$?
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28156 ac_cv_type_off_t=yes
5c6fa7d2 28157else
e6cc62c6
VS
28158 echo "$as_me: failed program was:" >&5
28159sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 28160
e6cc62c6 28161ac_cv_type_off_t=no
8284b0c5 28162fi
243f8ae5 28163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 28164fi
e6cc62c6
VS
28165echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
28166echo "${ECHO_T}$ac_cv_type_off_t" >&6
28167if test $ac_cv_type_off_t = yes; then
28168 :
247f5006
VZ
28169else
28170
e6cc62c6 28171cat >>confdefs.h <<_ACEOF
90dd450c 28172#define off_t long
e6cc62c6 28173_ACEOF
10f2d63a 28174
90dd450c 28175fi
10f2d63a 28176
e6cc62c6
VS
28177echo "$as_me:$LINENO: checking for pid_t" >&5
28178echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
28179if test "${ac_cv_type_pid_t+set}" = set; then
28180 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 28181else
e6cc62c6 28182 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28183/* confdefs.h. */
28184_ACEOF
28185cat confdefs.h >>conftest.$ac_ext
28186cat >>conftest.$ac_ext <<_ACEOF
28187/* end confdefs.h. */
28188$ac_includes_default
28189int
28190main ()
28191{
28192if ((pid_t *) 0)
28193 return 0;
28194if (sizeof (pid_t))
28195 return 0;
28196 ;
28197 return 0;
28198}
28199_ACEOF
28200rm -f conftest.$ac_objext
28201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 28202 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28203 ac_status=$?
243f8ae5
VS
28204 grep -v '^ *+' conftest.er1 >conftest.err
28205 rm -f conftest.er1
28206 cat conftest.err >&5
e6cc62c6
VS
28207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28208 (exit $ac_status); } &&
243f8ae5
VS
28209 { ac_try='test -z "$ac_c_werror_flag"
28210 || test ! -s conftest.err'
28211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28212 (eval $ac_try) 2>&5
28213 ac_status=$?
28214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28215 (exit $ac_status); }; } &&
28216 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28218 (eval $ac_try) 2>&5
28219 ac_status=$?
28220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28221 (exit $ac_status); }; }; then
90dd450c 28222 ac_cv_type_pid_t=yes
698dcdb6 28223else
e6cc62c6
VS
28224 echo "$as_me: failed program was:" >&5
28225sed 's/^/| /' conftest.$ac_ext >&5
247f5006 28226
e6cc62c6
VS
28227ac_cv_type_pid_t=no
28228fi
243f8ae5 28229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28230fi
e6cc62c6
VS
28231echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
28232echo "${ECHO_T}$ac_cv_type_pid_t" >&6
28233if test $ac_cv_type_pid_t = yes; then
28234 :
28235else
28236
28237cat >>confdefs.h <<_ACEOF
90dd450c 28238#define pid_t int
e6cc62c6 28239_ACEOF
10f2d63a 28240
7b4a847f
RR
28241fi
28242
e6cc62c6
VS
28243echo "$as_me:$LINENO: checking for size_t" >&5
28244echo $ECHO_N "checking for size_t... $ECHO_C" >&6
28245if test "${ac_cv_type_size_t+set}" = set; then
28246 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 28247else
e6cc62c6 28248 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28249/* confdefs.h. */
28250_ACEOF
28251cat confdefs.h >>conftest.$ac_ext
28252cat >>conftest.$ac_ext <<_ACEOF
28253/* end confdefs.h. */
28254$ac_includes_default
28255int
28256main ()
28257{
28258if ((size_t *) 0)
28259 return 0;
28260if (sizeof (size_t))
28261 return 0;
28262 ;
28263 return 0;
28264}
28265_ACEOF
28266rm -f conftest.$ac_objext
28267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 28268 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28269 ac_status=$?
243f8ae5
VS
28270 grep -v '^ *+' conftest.er1 >conftest.err
28271 rm -f conftest.er1
28272 cat conftest.err >&5
e6cc62c6
VS
28273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274 (exit $ac_status); } &&
243f8ae5
VS
28275 { ac_try='test -z "$ac_c_werror_flag"
28276 || test ! -s conftest.err'
28277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28278 (eval $ac_try) 2>&5
28279 ac_status=$?
28280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281 (exit $ac_status); }; } &&
28282 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28284 (eval $ac_try) 2>&5
28285 ac_status=$?
28286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287 (exit $ac_status); }; }; then
90dd450c 28288 ac_cv_type_size_t=yes
18dbb1f6 28289else
e6cc62c6
VS
28290 echo "$as_me: failed program was:" >&5
28291sed 's/^/| /' conftest.$ac_ext >&5
247f5006 28292
e6cc62c6 28293ac_cv_type_size_t=no
a0b9e27f 28294fi
243f8ae5 28295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
28296fi
28297echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
28298echo "${ECHO_T}$ac_cv_type_size_t" >&6
28299if test $ac_cv_type_size_t = yes; then
28300 :
28301else
28302
28303cat >>confdefs.h <<_ACEOF
90dd450c 28304#define size_t unsigned
e6cc62c6 28305_ACEOF
90dd450c
VZ
28306
28307fi
28308
e6cc62c6
VS
28309echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
28310echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
28311if test "${ac_cv_type_uid_t+set}" = set; then
28312 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 28313else
e6cc62c6 28314 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28315/* confdefs.h. */
28316_ACEOF
28317cat confdefs.h >>conftest.$ac_ext
28318cat >>conftest.$ac_ext <<_ACEOF
28319/* end confdefs.h. */
90dd450c 28320#include <sys/types.h>
e6cc62c6
VS
28321
28322_ACEOF
90dd450c 28323if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 28324 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 28325 ac_cv_type_uid_t=yes
b3e8d00a 28326else
90dd450c 28327 ac_cv_type_uid_t=no
b3e8d00a 28328fi
90dd450c 28329rm -f conftest*
b3e8d00a 28330
4f14bcd8 28331fi
e6cc62c6
VS
28332echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
28333echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 28334if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
28335
28336cat >>confdefs.h <<\_ACEOF
90dd450c 28337#define uid_t int
e6cc62c6 28338_ACEOF
247f5006 28339
e6cc62c6
VS
28340
28341cat >>confdefs.h <<\_ACEOF
90dd450c 28342#define gid_t int
e6cc62c6 28343_ACEOF
4f14bcd8 28344
b3e8d00a 28345fi
b3e8d00a 28346
8284b0c5
MB
28347
28348
e6cc62c6
VS
28349
28350ac_ext=cc
4f14bcd8 28351ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28355
28356echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
28357echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
28358if test "${wx_cv_size_t_is_uint+set}" = set; then
28359 echo $ECHO_N "(cached) $ECHO_C" >&6
28360else
28361
28362 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28363/* confdefs.h. */
28364_ACEOF
28365cat confdefs.h >>conftest.$ac_ext
28366cat >>conftest.$ac_ext <<_ACEOF
28367/* end confdefs.h. */
90dd450c 28368#include <stddef.h>
e6cc62c6
VS
28369int
28370main ()
28371{
90dd450c
VZ
28372
28373 return 0; }
28374
28375 struct Foo { void foo(size_t); void foo(unsigned int); };
28376
28377 int bar() {
e6cc62c6
VS
28378
28379 ;
28380 return 0;
28381}
28382_ACEOF
28383rm -f conftest.$ac_objext
28384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 28385 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28386 ac_status=$?
243f8ae5
VS
28387 grep -v '^ *+' conftest.er1 >conftest.err
28388 rm -f conftest.er1
28389 cat conftest.err >&5
e6cc62c6
VS
28390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28391 (exit $ac_status); } &&
243f8ae5
VS
28392 { ac_try='test -z "$ac_cxx_werror_flag"
28393 || test ! -s conftest.err'
28394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28395 (eval $ac_try) 2>&5
28396 ac_status=$?
28397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28398 (exit $ac_status); }; } &&
28399 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28401 (eval $ac_try) 2>&5
28402 ac_status=$?
28403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404 (exit $ac_status); }; }; then
90dd450c 28405 wx_cv_size_t_is_uint=no
698dcdb6 28406else
e6cc62c6
VS
28407 echo "$as_me: failed program was:" >&5
28408sed 's/^/| /' conftest.$ac_ext >&5
28409
28410wx_cv_size_t_is_uint=yes
8284b0c5 28411
247f5006 28412fi
243f8ae5 28413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 28414
a0b9e27f 28415
e6cc62c6
VS
28416fi
28417echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
28418echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 28419
90dd450c 28420if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 28421 cat >>confdefs.h <<\_ACEOF
90dd450c 28422#define wxSIZE_T_IS_UINT 1
e6cc62c6 28423_ACEOF
698dcdb6 28424
90dd450c 28425else
e6cc62c6
VS
28426 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
28427echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
28428if test "${wx_cv_size_t_is_ulong+set}" = set; then
28429 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28430else
e6cc62c6 28431 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28432/* confdefs.h. */
28433_ACEOF
28434cat confdefs.h >>conftest.$ac_ext
28435cat >>conftest.$ac_ext <<_ACEOF
28436/* end confdefs.h. */
90dd450c 28437#include <stddef.h>
e6cc62c6
VS
28438int
28439main ()
28440{
90dd450c
VZ
28441
28442 return 0; }
28443
28444 struct Foo { void foo(size_t); void foo(unsigned long); };
28445
28446 int bar() {
e6cc62c6
VS
28447
28448 ;
28449 return 0;
28450}
28451_ACEOF
28452rm -f conftest.$ac_objext
28453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 28454 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28455 ac_status=$?
243f8ae5
VS
28456 grep -v '^ *+' conftest.er1 >conftest.err
28457 rm -f conftest.er1
28458 cat conftest.err >&5
e6cc62c6
VS
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); } &&
243f8ae5
VS
28461 { ac_try='test -z "$ac_cxx_werror_flag"
28462 || test ! -s conftest.err'
28463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464 (eval $ac_try) 2>&5
28465 ac_status=$?
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); }; } &&
28468 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28470 (eval $ac_try) 2>&5
28471 ac_status=$?
28472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28473 (exit $ac_status); }; }; then
90dd450c 28474 wx_cv_size_t_is_ulong=no
698dcdb6 28475else
e6cc62c6
VS
28476 echo "$as_me: failed program was:" >&5
28477sed 's/^/| /' conftest.$ac_ext >&5
28478
28479wx_cv_size_t_is_ulong=yes
28480
247f5006 28481fi
243f8ae5 28482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28483
e6cc62c6
VS
28484fi
28485echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
28486echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 28487
90dd450c 28488 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 28489 cat >>confdefs.h <<\_ACEOF
90dd450c 28490#define wxSIZE_T_IS_ULONG 1
e6cc62c6 28491_ACEOF
4f14bcd8
GD
28492
28493 fi
90dd450c 28494fi
1e487827 28495
90dd450c 28496ac_ext=c
4f14bcd8 28497ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28498ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28499ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28500ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 28501
5c6fa7d2 28502
8284b0c5 28503
e6cc62c6
VS
28504echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28505echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28506if test "${wx_cv_struct_pw_gecos+set}" = set; then
28507 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 28508else
e6cc62c6
VS
28509
28510 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28511/* confdefs.h. */
28512_ACEOF
28513cat confdefs.h >>conftest.$ac_ext
28514cat >>conftest.$ac_ext <<_ACEOF
28515/* end confdefs.h. */
90dd450c 28516#include <pwd.h>
e6cc62c6
VS
28517int
28518main ()
28519{
f6bcfd97 28520
90dd450c
VZ
28521 char *p;
28522 struct passwd *pw;
28523 p = pw->pw_gecos;
e6cc62c6
VS
28524
28525 ;
28526 return 0;
28527}
28528_ACEOF
28529rm -f conftest.$ac_objext
28530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 28531 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28532 ac_status=$?
243f8ae5
VS
28533 grep -v '^ *+' conftest.er1 >conftest.err
28534 rm -f conftest.er1
28535 cat conftest.err >&5
e6cc62c6
VS
28536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28537 (exit $ac_status); } &&
243f8ae5
VS
28538 { ac_try='test -z "$ac_c_werror_flag"
28539 || test ! -s conftest.err'
28540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28541 (eval $ac_try) 2>&5
28542 ac_status=$?
28543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544 (exit $ac_status); }; } &&
28545 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28547 (eval $ac_try) 2>&5
28548 ac_status=$?
28549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28550 (exit $ac_status); }; }; then
28551
90dd450c 28552 wx_cv_struct_pw_gecos=yes
e6cc62c6 28553
10f2d63a 28554else
e6cc62c6
VS
28555 echo "$as_me: failed program was:" >&5
28556sed 's/^/| /' conftest.$ac_ext >&5
28557
28558
90dd450c 28559 wx_cv_struct_pw_gecos=no
e6cc62c6 28560
247f5006
VZ
28561
28562fi
243f8ae5 28563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28564
e6cc62c6
VS
28565
28566fi
28567echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28568echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 28569
90dd450c 28570if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 28571 cat >>confdefs.h <<\_ACEOF
90dd450c 28572#define HAVE_PW_GECOS 1
e6cc62c6 28573_ACEOF
c521c494 28574
90dd450c 28575fi
4f14bcd8 28576
8284b0c5 28577
d29b553b 28578if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 28579 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28580#define wxUSE_WCHAR_T 1
e6cc62c6 28581_ACEOF
d74f4b5a 28582
8284b0c5 28583
d74f4b5a
VZ
28584 WCSLEN_FOUND=0
28585 WCHAR_LINK=
e6cc62c6
VS
28586
28587for ac_func in wcslen
7a30264c 28588do
e6cc62c6
VS
28589as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28590echo "$as_me:$LINENO: checking for $ac_func" >&5
28591echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28592if eval "test \"\${$as_ac_var+set}\" = set"; then
28593 echo $ECHO_N "(cached) $ECHO_C" >&6
28594else
28595 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28596/* confdefs.h. */
28597_ACEOF
28598cat confdefs.h >>conftest.$ac_ext
28599cat >>conftest.$ac_ext <<_ACEOF
28600/* end confdefs.h. */
243f8ae5
VS
28601/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28603#define $ac_func innocuous_$ac_func
28604
7a30264c 28605/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28606 which can conflict with char $ac_func (); below.
28607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28608 <limits.h> exists even on freestanding compilers. */
243f8ae5 28609
e6cc62c6
VS
28610#ifdef __STDC__
28611# include <limits.h>
28612#else
28613# include <assert.h>
28614#endif
243f8ae5
VS
28615
28616#undef $ac_func
28617
4f14bcd8 28618/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28619#ifdef __cplusplus
28620extern "C"
28621{
28622#endif
4f14bcd8 28623/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28624 builtin and then its argument prototype would still apply. */
28625char $ac_func ();
7a30264c
VZ
28626/* The GNU C library defines this for functions which it implements
28627 to always fail with ENOSYS. Some functions are actually named
28628 something starting with __ and the normal name is an alias. */
28629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28630choke me
28631#else
e6cc62c6
VS
28632char (*f) () = $ac_func;
28633#endif
28634#ifdef __cplusplus
28635}
7a30264c
VZ
28636#endif
28637
e6cc62c6
VS
28638int
28639main ()
28640{
28641return f != $ac_func;
28642 ;
28643 return 0;
28644}
28645_ACEOF
28646rm -f conftest.$ac_objext conftest$ac_exeext
28647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 28648 (eval $ac_link) 2>conftest.er1
e6cc62c6 28649 ac_status=$?
243f8ae5
VS
28650 grep -v '^ *+' conftest.er1 >conftest.err
28651 rm -f conftest.er1
28652 cat conftest.err >&5
e6cc62c6
VS
28653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28654 (exit $ac_status); } &&
243f8ae5
VS
28655 { ac_try='test -z "$ac_c_werror_flag"
28656 || test ! -s conftest.err'
28657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28658 (eval $ac_try) 2>&5
28659 ac_status=$?
28660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28661 (exit $ac_status); }; } &&
28662 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28664 (eval $ac_try) 2>&5
28665 ac_status=$?
28666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667 (exit $ac_status); }; }; then
28668 eval "$as_ac_var=yes"
28669else
28670 echo "$as_me: failed program was:" >&5
28671sed 's/^/| /' conftest.$ac_ext >&5
28672
28673eval "$as_ac_var=no"
28674fi
243f8ae5
VS
28675rm -f conftest.err conftest.$ac_objext \
28676 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28677fi
28678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28679echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28680if test `eval echo '${'$as_ac_var'}'` = yes; then
28681 cat >>confdefs.h <<_ACEOF
28682#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28683_ACEOF
d74f4b5a 28684 WCSLEN_FOUND=1
7a30264c
VZ
28685fi
28686done
9d8deca0 28687
8284b0c5 28688
d74f4b5a 28689 if test "$WCSLEN_FOUND" = 0; then
7a30264c 28690 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
28691 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28692echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28693if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28694 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28695else
e6cc62c6 28696 ac_check_lib_save_LIBS=$LIBS
7a30264c 28697LIBS="-lmsvcrt $LIBS"
e6cc62c6 28698cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28699/* confdefs.h. */
28700_ACEOF
28701cat confdefs.h >>conftest.$ac_ext
28702cat >>conftest.$ac_ext <<_ACEOF
28703/* end confdefs.h. */
28704
4f14bcd8 28705/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28706#ifdef __cplusplus
28707extern "C"
28708#endif
4f14bcd8 28709/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28710 builtin and then its argument prototype would still apply. */
28711char wcslen ();
28712int
28713main ()
28714{
28715wcslen ();
28716 ;
28717 return 0;
28718}
28719_ACEOF
28720rm -f conftest.$ac_objext conftest$ac_exeext
28721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 28722 (eval $ac_link) 2>conftest.er1
e6cc62c6 28723 ac_status=$?
243f8ae5
VS
28724 grep -v '^ *+' conftest.er1 >conftest.err
28725 rm -f conftest.er1
28726 cat conftest.err >&5
e6cc62c6
VS
28727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28728 (exit $ac_status); } &&
243f8ae5
VS
28729 { ac_try='test -z "$ac_c_werror_flag"
28730 || test ! -s conftest.err'
28731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28732 (eval $ac_try) 2>&5
28733 ac_status=$?
28734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); }; } &&
28736 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28738 (eval $ac_try) 2>&5
28739 ac_status=$?
28740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28741 (exit $ac_status); }; }; then
28742 ac_cv_lib_msvcrt_wcslen=yes
28743else
28744 echo "$as_me: failed program was:" >&5
28745sed 's/^/| /' conftest.$ac_ext >&5
28746
28747ac_cv_lib_msvcrt_wcslen=no
28748fi
243f8ae5
VS
28749rm -f conftest.err conftest.$ac_objext \
28750 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28751LIBS=$ac_check_lib_save_LIBS
28752fi
28753echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28754echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28755if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 28756 WCHAR_OK=1
d29b553b 28757fi
698dcdb6 28758
7a30264c 28759 else
e6cc62c6
VS
28760 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28761echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28762if test "${ac_cv_lib_w_wcslen+set}" = set; then
28763 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28764else
e6cc62c6 28765 ac_check_lib_save_LIBS=$LIBS
7a30264c 28766LIBS="-lw $LIBS"
e6cc62c6 28767cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28768/* confdefs.h. */
28769_ACEOF
28770cat confdefs.h >>conftest.$ac_ext
28771cat >>conftest.$ac_ext <<_ACEOF
28772/* end confdefs.h. */
28773
4f14bcd8 28774/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28775#ifdef __cplusplus
28776extern "C"
28777#endif
4f14bcd8 28778/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28779 builtin and then its argument prototype would still apply. */
28780char wcslen ();
28781int
28782main ()
28783{
28784wcslen ();
28785 ;
28786 return 0;
28787}
28788_ACEOF
28789rm -f conftest.$ac_objext conftest$ac_exeext
28790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 28791 (eval $ac_link) 2>conftest.er1
e6cc62c6 28792 ac_status=$?
243f8ae5
VS
28793 grep -v '^ *+' conftest.er1 >conftest.err
28794 rm -f conftest.er1
28795 cat conftest.err >&5
e6cc62c6
VS
28796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28797 (exit $ac_status); } &&
243f8ae5
VS
28798 { ac_try='test -z "$ac_c_werror_flag"
28799 || test ! -s conftest.err'
28800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28801 (eval $ac_try) 2>&5
28802 ac_status=$?
28803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); }; } &&
28805 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28807 (eval $ac_try) 2>&5
28808 ac_status=$?
28809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28810 (exit $ac_status); }; }; then
28811 ac_cv_lib_w_wcslen=yes
28812else
28813 echo "$as_me: failed program was:" >&5
28814sed 's/^/| /' conftest.$ac_ext >&5
28815
28816ac_cv_lib_w_wcslen=no
28817fi
243f8ae5
VS
28818rm -f conftest.err conftest.$ac_objext \
28819 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28820LIBS=$ac_check_lib_save_LIBS
28821fi
28822echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28823echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28824if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 28825
7a30264c 28826 WCHAR_LINK=" -lw"
d74f4b5a 28827 WCSLEN_FOUND=1
e6cc62c6 28828
4f14bcd8 28829fi
10f2d63a 28830
7a30264c 28831 fi
d29b553b 28832 fi
95c8801c 28833
d74f4b5a 28834 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 28835 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28836#define HAVE_WCSLEN 1
e6cc62c6 28837_ACEOF
10f2d63a 28838
d74f4b5a 28839 fi
52127426 28840
e6cc62c6
VS
28841
28842for ac_func in wcsrtombs
eb4efbdc 28843do
e6cc62c6
VS
28844as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28845echo "$as_me:$LINENO: checking for $ac_func" >&5
28846echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28847if eval "test \"\${$as_ac_var+set}\" = set"; then
28848 echo $ECHO_N "(cached) $ECHO_C" >&6
28849else
28850 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28851/* confdefs.h. */
28852_ACEOF
28853cat confdefs.h >>conftest.$ac_ext
28854cat >>conftest.$ac_ext <<_ACEOF
28855/* end confdefs.h. */
243f8ae5
VS
28856/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28858#define $ac_func innocuous_$ac_func
28859
eb4efbdc 28860/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28861 which can conflict with char $ac_func (); below.
28862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28863 <limits.h> exists even on freestanding compilers. */
243f8ae5 28864
e6cc62c6
VS
28865#ifdef __STDC__
28866# include <limits.h>
28867#else
28868# include <assert.h>
28869#endif
243f8ae5
VS
28870
28871#undef $ac_func
28872
eb4efbdc 28873/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28874#ifdef __cplusplus
28875extern "C"
28876{
28877#endif
4f14bcd8 28878/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28879 builtin and then its argument prototype would still apply. */
28880char $ac_func ();
10f2d63a
VZ
28881/* The GNU C library defines this for functions which it implements
28882 to always fail with ENOSYS. Some functions are actually named
28883 something starting with __ and the normal name is an alias. */
247f5006 28884#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
28885choke me
28886#else
e6cc62c6
VS
28887char (*f) () = $ac_func;
28888#endif
28889#ifdef __cplusplus
28890}
10f2d63a
VZ
28891#endif
28892
e6cc62c6
VS
28893int
28894main ()
28895{
28896return f != $ac_func;
28897 ;
28898 return 0;
28899}
28900_ACEOF
28901rm -f conftest.$ac_objext conftest$ac_exeext
28902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 28903 (eval $ac_link) 2>conftest.er1
e6cc62c6 28904 ac_status=$?
243f8ae5
VS
28905 grep -v '^ *+' conftest.er1 >conftest.err
28906 rm -f conftest.er1
28907 cat conftest.err >&5
e6cc62c6
VS
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); } &&
243f8ae5
VS
28910 { ac_try='test -z "$ac_c_werror_flag"
28911 || test ! -s conftest.err'
28912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28913 (eval $ac_try) 2>&5
28914 ac_status=$?
28915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916 (exit $ac_status); }; } &&
28917 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919 (eval $ac_try) 2>&5
28920 ac_status=$?
28921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922 (exit $ac_status); }; }; then
28923 eval "$as_ac_var=yes"
28924else
28925 echo "$as_me: failed program was:" >&5
28926sed 's/^/| /' conftest.$ac_ext >&5
28927
28928eval "$as_ac_var=no"
28929fi
243f8ae5
VS
28930rm -f conftest.err conftest.$ac_objext \
28931 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28932fi
28933echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28934echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28935if test `eval echo '${'$as_ac_var'}'` = yes; then
28936 cat >>confdefs.h <<_ACEOF
28937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28938_ACEOF
270a909e 28939
4f14bcd8 28940fi
247f5006 28941done
1e487827 28942
af15babd 28943else
e6cc62c6
VS
28944 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28945echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 28946fi
52127426 28947
8284b0c5 28948
e6cc62c6
VS
28949
28950ac_ext=cc
247f5006 28951ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28955
af15babd 28956
247f5006
VZ
28957
28958for ac_func in vsnprintf
28959do
e6cc62c6
VS
28960as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28961echo "$as_me:$LINENO: checking for $ac_func" >&5
28962echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28963if eval "test \"\${$as_ac_var+set}\" = set"; then
28964 echo $ECHO_N "(cached) $ECHO_C" >&6
28965else
28966 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28967/* confdefs.h. */
28968_ACEOF
28969cat confdefs.h >>conftest.$ac_ext
28970cat >>conftest.$ac_ext <<_ACEOF
28971/* end confdefs.h. */
243f8ae5
VS
28972/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28974#define $ac_func innocuous_$ac_func
28975
247f5006 28976/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28977 which can conflict with char $ac_func (); below.
28978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28979 <limits.h> exists even on freestanding compilers. */
243f8ae5 28980
e6cc62c6
VS
28981#ifdef __STDC__
28982# include <limits.h>
28983#else
28984# include <assert.h>
28985#endif
243f8ae5
VS
28986
28987#undef $ac_func
28988
247f5006
VZ
28989/* Override any gcc2 internal prototype to avoid an error. */
28990#ifdef __cplusplus
28991extern "C"
e6cc62c6 28992{
247f5006
VZ
28993#endif
28994/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28995 builtin and then its argument prototype would still apply. */
28996char $ac_func ();
247f5006
VZ
28997/* The GNU C library defines this for functions which it implements
28998 to always fail with ENOSYS. Some functions are actually named
28999 something starting with __ and the normal name is an alias. */
29000#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29001choke me
29002#else
e6cc62c6
VS
29003char (*f) () = $ac_func;
29004#endif
29005#ifdef __cplusplus
29006}
247f5006 29007#endif
af15babd 29008
e6cc62c6
VS
29009int
29010main ()
29011{
29012return f != $ac_func;
29013 ;
29014 return 0;
29015}
29016_ACEOF
29017rm -f conftest.$ac_objext conftest$ac_exeext
29018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 29019 (eval $ac_link) 2>conftest.er1
e6cc62c6 29020 ac_status=$?
243f8ae5
VS
29021 grep -v '^ *+' conftest.er1 >conftest.err
29022 rm -f conftest.er1
29023 cat conftest.err >&5
e6cc62c6
VS
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); } &&
243f8ae5
VS
29026 { ac_try='test -z "$ac_cxx_werror_flag"
29027 || test ! -s conftest.err'
29028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29029 (eval $ac_try) 2>&5
29030 ac_status=$?
29031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032 (exit $ac_status); }; } &&
29033 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29035 (eval $ac_try) 2>&5
29036 ac_status=$?
29037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29038 (exit $ac_status); }; }; then
29039 eval "$as_ac_var=yes"
29040else
29041 echo "$as_me: failed program was:" >&5
29042sed 's/^/| /' conftest.$ac_ext >&5
29043
29044eval "$as_ac_var=no"
29045fi
243f8ae5
VS
29046rm -f conftest.err conftest.$ac_objext \
29047 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29048fi
29049echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29050echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29051if test `eval echo '${'$as_ac_var'}'` = yes; then
29052 cat >>confdefs.h <<_ACEOF
29053#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29054_ACEOF
52127426 29055
5c6fa7d2 29056fi
247f5006 29057done
8284b0c5 29058
4f14bcd8 29059
8d90d2f2 29060if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
29061 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
29062echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
29063if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
29064 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 29065else
e6cc62c6
VS
29066
29067 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29068/* confdefs.h. */
29069_ACEOF
29070cat confdefs.h >>conftest.$ac_ext
29071cat >>conftest.$ac_ext <<_ACEOF
29072/* end confdefs.h. */
8d90d2f2
VZ
29073
29074 #include <stdio.h>
29075 #include <stdarg.h>
e6cc62c6
VS
29076
29077int
29078main ()
29079{
8d90d2f2
VZ
29080
29081 char *buf;
29082 va_list ap;
29083 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
29084
29085 ;
29086 return 0;
29087}
29088_ACEOF
29089rm -f conftest.$ac_objext
29090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 29091 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29092 ac_status=$?
243f8ae5
VS
29093 grep -v '^ *+' conftest.er1 >conftest.err
29094 rm -f conftest.er1
29095 cat conftest.err >&5
e6cc62c6
VS
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); } &&
243f8ae5
VS
29098 { ac_try='test -z "$ac_cxx_werror_flag"
29099 || test ! -s conftest.err'
29100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101 (eval $ac_try) 2>&5
29102 ac_status=$?
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; } &&
29105 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107 (eval $ac_try) 2>&5
29108 ac_status=$?
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; }; then
8d90d2f2
VZ
29111 wx_cv_func_vsnprintf_decl=yes
29112else
e6cc62c6
VS
29113 echo "$as_me: failed program was:" >&5
29114sed 's/^/| /' conftest.$ac_ext >&5
29115
29116wx_cv_func_vsnprintf_decl=no
29117
8d90d2f2 29118fi
243f8ae5 29119rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 29120
8d90d2f2 29121
e6cc62c6
VS
29122fi
29123echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
29124echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
29125
29126 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 29127 cat >>confdefs.h <<\_ACEOF
8d90d2f2 29128#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 29129_ACEOF
8d90d2f2
VZ
29130
29131 fi
29132fi
29133
247f5006 29134if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
29135
29136
29137
29138for ac_func in fputwc wprintf vswprintf
d74f4b5a 29139do
e6cc62c6
VS
29140as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29141echo "$as_me:$LINENO: checking for $ac_func" >&5
29142echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29143if eval "test \"\${$as_ac_var+set}\" = set"; then
29144 echo $ECHO_N "(cached) $ECHO_C" >&6
29145else
29146 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29147/* confdefs.h. */
29148_ACEOF
29149cat confdefs.h >>conftest.$ac_ext
29150cat >>conftest.$ac_ext <<_ACEOF
29151/* end confdefs.h. */
243f8ae5
VS
29152/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29154#define $ac_func innocuous_$ac_func
29155
d74f4b5a 29156/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29157 which can conflict with char $ac_func (); below.
29158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29159 <limits.h> exists even on freestanding compilers. */
243f8ae5 29160
e6cc62c6
VS
29161#ifdef __STDC__
29162# include <limits.h>
29163#else
29164# include <assert.h>
29165#endif
243f8ae5
VS
29166
29167#undef $ac_func
29168
d74f4b5a 29169/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
29170#ifdef __cplusplus
29171extern "C"
e6cc62c6 29172{
247f5006 29173#endif
d74f4b5a 29174/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29175 builtin and then its argument prototype would still apply. */
29176char $ac_func ();
d74f4b5a
VZ
29177/* The GNU C library defines this for functions which it implements
29178 to always fail with ENOSYS. Some functions are actually named
29179 something starting with __ and the normal name is an alias. */
29180#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29181choke me
29182#else
e6cc62c6
VS
29183char (*f) () = $ac_func;
29184#endif
29185#ifdef __cplusplus
29186}
d74f4b5a
VZ
29187#endif
29188
e6cc62c6
VS
29189int
29190main ()
29191{
29192return f != $ac_func;
29193 ;
29194 return 0;
29195}
29196_ACEOF
29197rm -f conftest.$ac_objext conftest$ac_exeext
29198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 29199 (eval $ac_link) 2>conftest.er1
e6cc62c6 29200 ac_status=$?
243f8ae5
VS
29201 grep -v '^ *+' conftest.er1 >conftest.err
29202 rm -f conftest.er1
29203 cat conftest.err >&5
e6cc62c6
VS
29204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205 (exit $ac_status); } &&
243f8ae5
VS
29206 { ac_try='test -z "$ac_cxx_werror_flag"
29207 || test ! -s conftest.err'
29208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29209 (eval $ac_try) 2>&5
29210 ac_status=$?
29211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212 (exit $ac_status); }; } &&
29213 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29215 (eval $ac_try) 2>&5
29216 ac_status=$?
29217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218 (exit $ac_status); }; }; then
29219 eval "$as_ac_var=yes"
29220else
29221 echo "$as_me: failed program was:" >&5
29222sed 's/^/| /' conftest.$ac_ext >&5
29223
29224eval "$as_ac_var=no"
29225fi
243f8ae5
VS
29226rm -f conftest.err conftest.$ac_objext \
29227 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29228fi
29229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29231if test `eval echo '${'$as_ac_var'}'` = yes; then
29232 cat >>confdefs.h <<_ACEOF
29233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29234_ACEOF
d74f4b5a 29235
d74f4b5a
VZ
29236fi
29237done
29238
8d90d2f2 29239
e6cc62c6
VS
29240 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
29241echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
29242 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29243/* confdefs.h. */
29244_ACEOF
29245cat confdefs.h >>conftest.$ac_ext
29246cat >>conftest.$ac_ext <<_ACEOF
29247/* end confdefs.h. */
79668cae 29248#include <wchar.h>
e6cc62c6
VS
29249int
29250main ()
29251{
79668cae 29252&_vsnwprintf;
e6cc62c6
VS
29253 ;
29254 return 0;
29255}
29256_ACEOF
29257rm -f conftest.$ac_objext
29258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 29259 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29260 ac_status=$?
243f8ae5
VS
29261 grep -v '^ *+' conftest.er1 >conftest.err
29262 rm -f conftest.er1
29263 cat conftest.err >&5
e6cc62c6
VS
29264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29265 (exit $ac_status); } &&
243f8ae5
VS
29266 { ac_try='test -z "$ac_cxx_werror_flag"
29267 || test ! -s conftest.err'
29268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29269 (eval $ac_try) 2>&5
29270 ac_status=$?
29271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); }; } &&
29273 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29275 (eval $ac_try) 2>&5
29276 ac_status=$?
29277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29278 (exit $ac_status); }; }; then
29279 echo "$as_me:$LINENO: result: yes" >&5
29280echo "${ECHO_T}yes" >&6
29281 cat >>confdefs.h <<\_ACEOF
79668cae 29282#define HAVE__VSNWPRINTF 1
e6cc62c6 29283_ACEOF
79668cae
MB
29284
29285else
e6cc62c6
VS
29286 echo "$as_me: failed program was:" >&5
29287sed 's/^/| /' conftest.$ac_ext >&5
29288
29289echo "$as_me:$LINENO: result: no" >&5
29290echo "${ECHO_T}no" >&6
79668cae 29291fi
243f8ae5 29292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
29293fi
29294
247f5006
VZ
29295ac_ext=c
29296ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29299ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
29300
29301
29302
29303
4f14bcd8 29304if test "$TOOLKIT" != "MSW"; then
af15babd 29305
8284b0c5
MB
29306
29307
e6cc62c6
VS
29308
29309ac_ext=cc
4f14bcd8 29310ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 29314
52127426 29315
e6cc62c6
VS
29316
29317
29318# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
29319if test "${with_libiconv_prefix+set}" = set; then
29320 withval="$with_libiconv_prefix"
e6cc62c6 29321
b040e242
VS
29322 for dir in `echo "$withval" | tr : ' '`; do
29323 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
29324 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
29325 done
b040e242 29326
e6cc62c6 29327fi;
b040e242 29328
e6cc62c6
VS
29329 echo "$as_me:$LINENO: checking for iconv" >&5
29330echo $ECHO_N "checking for iconv... $ECHO_C" >&6
29331if test "${am_cv_func_iconv+set}" = set; then
29332 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 29333else
e6cc62c6 29334
b040e242
VS
29335 am_cv_func_iconv="no, consider installing GNU libiconv"
29336 am_cv_lib_iconv=no
e6cc62c6 29337 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29338/* confdefs.h. */
29339_ACEOF
29340cat confdefs.h >>conftest.$ac_ext
29341cat >>conftest.$ac_ext <<_ACEOF
29342/* end confdefs.h. */
b040e242 29343#include <stdlib.h>
4f14bcd8 29344#include <iconv.h>
e6cc62c6
VS
29345int
29346main ()
29347{
b040e242
VS
29348iconv_t cd = iconv_open("","");
29349 iconv(cd,NULL,NULL,NULL,NULL);
29350 iconv_close(cd);
e6cc62c6
VS
29351 ;
29352 return 0;
29353}
29354_ACEOF
29355rm -f conftest.$ac_objext conftest$ac_exeext
29356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 29357 (eval $ac_link) 2>conftest.er1
e6cc62c6 29358 ac_status=$?
243f8ae5
VS
29359 grep -v '^ *+' conftest.er1 >conftest.err
29360 rm -f conftest.er1
29361 cat conftest.err >&5
e6cc62c6
VS
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); } &&
243f8ae5
VS
29364 { ac_try='test -z "$ac_cxx_werror_flag"
29365 || test ! -s conftest.err'
29366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29367 (eval $ac_try) 2>&5
29368 ac_status=$?
29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); }; } &&
29371 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29373 (eval $ac_try) 2>&5
29374 ac_status=$?
29375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29376 (exit $ac_status); }; }; then
b040e242 29377 am_cv_func_iconv=yes
af15babd 29378else
e6cc62c6
VS
29379 echo "$as_me: failed program was:" >&5
29380sed 's/^/| /' conftest.$ac_ext >&5
29381
b040e242 29382fi
243f8ae5
VS
29383rm -f conftest.err conftest.$ac_objext \
29384 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
29385 if test "$am_cv_func_iconv" != yes; then
29386 am_save_LIBS="$LIBS"
29387 LIBS="$LIBS -liconv"
e6cc62c6 29388 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29389/* confdefs.h. */
29390_ACEOF
29391cat confdefs.h >>conftest.$ac_ext
29392cat >>conftest.$ac_ext <<_ACEOF
29393/* end confdefs.h. */
b040e242
VS
29394#include <stdlib.h>
29395#include <iconv.h>
e6cc62c6
VS
29396int
29397main ()
29398{
b040e242
VS
29399iconv_t cd = iconv_open("","");
29400 iconv(cd,NULL,NULL,NULL,NULL);
29401 iconv_close(cd);
e6cc62c6
VS
29402 ;
29403 return 0;
29404}
29405_ACEOF
29406rm -f conftest.$ac_objext conftest$ac_exeext
29407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 29408 (eval $ac_link) 2>conftest.er1
e6cc62c6 29409 ac_status=$?
243f8ae5
VS
29410 grep -v '^ *+' conftest.er1 >conftest.err
29411 rm -f conftest.er1
29412 cat conftest.err >&5
e6cc62c6
VS
29413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29414 (exit $ac_status); } &&
243f8ae5
VS
29415 { ac_try='test -z "$ac_cxx_werror_flag"
29416 || test ! -s conftest.err'
29417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29418 (eval $ac_try) 2>&5
29419 ac_status=$?
29420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29421 (exit $ac_status); }; } &&
29422 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29424 (eval $ac_try) 2>&5
29425 ac_status=$?
29426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427 (exit $ac_status); }; }; then
b040e242
VS
29428 am_cv_lib_iconv=yes
29429 am_cv_func_iconv=yes
29430else
e6cc62c6
VS
29431 echo "$as_me: failed program was:" >&5
29432sed 's/^/| /' conftest.$ac_ext >&5
29433
af15babd 29434fi
243f8ae5
VS
29435rm -f conftest.err conftest.$ac_objext \
29436 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
29437 LIBS="$am_save_LIBS"
29438 fi
247f5006 29439
e6cc62c6
VS
29440fi
29441echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
29442echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 29443 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
29444
29445cat >>confdefs.h <<\_ACEOF
b040e242 29446#define HAVE_ICONV 1
e6cc62c6 29447_ACEOF
b040e242 29448
e6cc62c6
VS
29449 echo "$as_me:$LINENO: checking if iconv needs const" >&5
29450echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
29451if test "${wx_cv_func_iconv_const+set}" = set; then
29452 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 29453else
e6cc62c6 29454 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29455/* confdefs.h. */
29456_ACEOF
29457cat confdefs.h >>conftest.$ac_ext
29458cat >>conftest.$ac_ext <<_ACEOF
29459/* end confdefs.h. */
b040e242
VS
29460
29461#include <stdlib.h>
29462#include <iconv.h>
29463extern
29464#ifdef __cplusplus
29465"C"
29466#endif
29467#if defined(__STDC__) || defined(__cplusplus)
29468size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
29469#else
29470size_t iconv();
29471#endif
af15babd 29472
e6cc62c6
VS
29473int
29474main ()
29475{
29476
29477 ;
29478 return 0;
29479}
29480_ACEOF
29481rm -f conftest.$ac_objext
29482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 29483 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29484 ac_status=$?
243f8ae5
VS
29485 grep -v '^ *+' conftest.er1 >conftest.err
29486 rm -f conftest.er1
29487 cat conftest.err >&5
e6cc62c6
VS
29488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489 (exit $ac_status); } &&
243f8ae5
VS
29490 { ac_try='test -z "$ac_cxx_werror_flag"
29491 || test ! -s conftest.err'
29492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493 (eval $ac_try) 2>&5
29494 ac_status=$?
29495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; } &&
29497 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29499 (eval $ac_try) 2>&5
29500 ac_status=$?
29501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29502 (exit $ac_status); }; }; then
b7043674 29503 wx_cv_func_iconv_const="no"
b040e242 29504else
e6cc62c6
VS
29505 echo "$as_me: failed program was:" >&5
29506sed 's/^/| /' conftest.$ac_ext >&5
29507
29508wx_cv_func_iconv_const="yes"
29509
247f5006 29510fi
243f8ae5 29511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29512
e6cc62c6
VS
29513fi
29514echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29515echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
29516
29517 iconv_const=
1c405bb5 29518 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
29519 iconv_const="const"
29520 fi
29521
e6cc62c6
VS
29522
29523cat >>confdefs.h <<_ACEOF
f09359cf 29524#define ICONV_CONST $iconv_const
e6cc62c6 29525_ACEOF
b040e242
VS
29526
29527 fi
29528 LIBICONV=
29529 if test "$am_cv_lib_iconv" = yes; then
29530 LIBICONV="-liconv"
29531 fi
e6cc62c6 29532
b040e242
VS
29533
29534LIBS="$LIBICONV $LIBS"
4f14bcd8 29535ac_ext=c
4f14bcd8 29536ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29539ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 29540
5c6fa7d2 29541
8284b0c5 29542if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
29543
29544for ac_func in sigaction
af15babd 29545do
e6cc62c6
VS
29546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29547echo "$as_me:$LINENO: checking for $ac_func" >&5
29548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29549if eval "test \"\${$as_ac_var+set}\" = set"; then
29550 echo $ECHO_N "(cached) $ECHO_C" >&6
29551else
29552 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29553/* confdefs.h. */
29554_ACEOF
29555cat confdefs.h >>conftest.$ac_ext
29556cat >>conftest.$ac_ext <<_ACEOF
29557/* end confdefs.h. */
243f8ae5
VS
29558/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29560#define $ac_func innocuous_$ac_func
29561
af15babd 29562/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29563 which can conflict with char $ac_func (); below.
29564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29565 <limits.h> exists even on freestanding compilers. */
243f8ae5 29566
e6cc62c6
VS
29567#ifdef __STDC__
29568# include <limits.h>
29569#else
29570# include <assert.h>
29571#endif
243f8ae5
VS
29572
29573#undef $ac_func
29574
af15babd 29575/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29576#ifdef __cplusplus
29577extern "C"
29578{
29579#endif
af15babd 29580/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29581 builtin and then its argument prototype would still apply. */
29582char $ac_func ();
af15babd
VZ
29583/* The GNU C library defines this for functions which it implements
29584 to always fail with ENOSYS. Some functions are actually named
29585 something starting with __ and the normal name is an alias. */
29586#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29587choke me
29588#else
e6cc62c6
VS
29589char (*f) () = $ac_func;
29590#endif
29591#ifdef __cplusplus
29592}
af15babd
VZ
29593#endif
29594
e6cc62c6
VS
29595int
29596main ()
29597{
29598return f != $ac_func;
29599 ;
29600 return 0;
29601}
29602_ACEOF
29603rm -f conftest.$ac_objext conftest$ac_exeext
29604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 29605 (eval $ac_link) 2>conftest.er1
e6cc62c6 29606 ac_status=$?
243f8ae5
VS
29607 grep -v '^ *+' conftest.er1 >conftest.err
29608 rm -f conftest.er1
29609 cat conftest.err >&5
e6cc62c6
VS
29610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29611 (exit $ac_status); } &&
243f8ae5
VS
29612 { ac_try='test -z "$ac_c_werror_flag"
29613 || test ! -s conftest.err'
29614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615 (eval $ac_try) 2>&5
29616 ac_status=$?
29617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618 (exit $ac_status); }; } &&
29619 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; }; then
29625 eval "$as_ac_var=yes"
29626else
29627 echo "$as_me: failed program was:" >&5
29628sed 's/^/| /' conftest.$ac_ext >&5
29629
29630eval "$as_ac_var=no"
29631fi
243f8ae5
VS
29632rm -f conftest.err conftest.$ac_objext \
29633 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29634fi
29635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29636echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29637if test `eval echo '${'$as_ac_var'}'` = yes; then
29638 cat >>confdefs.h <<_ACEOF
29639#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29640_ACEOF
7b4a847f 29641
4f14bcd8
GD
29642fi
29643done
29644
8284b0c5 29645
4f14bcd8 29646 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
29647 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29648echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
29649 wxUSE_ON_FATAL_EXCEPTION=no
29650 fi
29651
29652 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
29653
29654
29655 ac_ext=cc
5c6fa7d2 29656ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 29660
5c6fa7d2 29661
e6cc62c6
VS
29662 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29663echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29664if test "${wx_cv_type_sa_handler+set}" = set; then
29665 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29666else
e6cc62c6
VS
29667
29668 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29669/* confdefs.h. */
29670_ACEOF
29671cat confdefs.h >>conftest.$ac_ext
29672cat >>conftest.$ac_ext <<_ACEOF
29673/* end confdefs.h. */
4f14bcd8 29674#include <signal.h>
e6cc62c6
VS
29675int
29676main ()
29677{
4f14bcd8
GD
29678
29679 extern void testSigHandler(int);
29680
29681 struct sigaction sa;
29682 sa.sa_handler = testSigHandler;
e6cc62c6
VS
29683
29684 ;
29685 return 0;
29686}
29687_ACEOF
29688rm -f conftest.$ac_objext
29689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 29690 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29691 ac_status=$?
243f8ae5
VS
29692 grep -v '^ *+' conftest.er1 >conftest.err
29693 rm -f conftest.er1
29694 cat conftest.err >&5
e6cc62c6
VS
29695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696 (exit $ac_status); } &&
243f8ae5
VS
29697 { ac_try='test -z "$ac_cxx_werror_flag"
29698 || test ! -s conftest.err'
29699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29700 (eval $ac_try) 2>&5
29701 ac_status=$?
29702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703 (exit $ac_status); }; } &&
29704 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29706 (eval $ac_try) 2>&5
29707 ac_status=$?
29708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29709 (exit $ac_status); }; }; then
29710
4f14bcd8 29711 wx_cv_type_sa_handler=int
e6cc62c6 29712
af15babd 29713else
e6cc62c6
VS
29714 echo "$as_me: failed program was:" >&5
29715sed 's/^/| /' conftest.$ac_ext >&5
29716
29717
4f14bcd8 29718 wx_cv_type_sa_handler=void
e6cc62c6 29719
247f5006 29720fi
243f8ae5 29721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29722
e6cc62c6
VS
29723fi
29724echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29725echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
29726
29727 ac_ext=c
4f14bcd8 29728ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29731ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 29732
8284b0c5 29733
e6cc62c6 29734 cat >>confdefs.h <<_ACEOF
4f14bcd8 29735#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 29736_ACEOF
af15babd 29737
4f14bcd8
GD
29738 fi
29739fi
af15babd 29740
e6cc62c6
VS
29741
29742
a1d22ad7 29743for ac_func in mkstemp mktemp
af15babd 29744do
e6cc62c6
VS
29745as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29746echo "$as_me:$LINENO: checking for $ac_func" >&5
29747echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29748if eval "test \"\${$as_ac_var+set}\" = set"; then
29749 echo $ECHO_N "(cached) $ECHO_C" >&6
29750else
29751 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29752/* confdefs.h. */
29753_ACEOF
29754cat confdefs.h >>conftest.$ac_ext
29755cat >>conftest.$ac_ext <<_ACEOF
29756/* end confdefs.h. */
243f8ae5
VS
29757/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29759#define $ac_func innocuous_$ac_func
29760
af15babd 29761/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29762 which can conflict with char $ac_func (); below.
29763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29764 <limits.h> exists even on freestanding compilers. */
243f8ae5 29765
e6cc62c6
VS
29766#ifdef __STDC__
29767# include <limits.h>
29768#else
29769# include <assert.h>
29770#endif
243f8ae5
VS
29771
29772#undef $ac_func
29773
af15babd 29774/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29775#ifdef __cplusplus
29776extern "C"
29777{
29778#endif
af15babd 29779/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29780 builtin and then its argument prototype would still apply. */
29781char $ac_func ();
af15babd
VZ
29782/* The GNU C library defines this for functions which it implements
29783 to always fail with ENOSYS. Some functions are actually named
29784 something starting with __ and the normal name is an alias. */
29785#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29786choke me
29787#else
e6cc62c6
VS
29788char (*f) () = $ac_func;
29789#endif
29790#ifdef __cplusplus
29791}
af15babd
VZ
29792#endif
29793
e6cc62c6
VS
29794int
29795main ()
29796{
29797return f != $ac_func;
29798 ;
29799 return 0;
29800}
29801_ACEOF
29802rm -f conftest.$ac_objext conftest$ac_exeext
29803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 29804 (eval $ac_link) 2>conftest.er1
e6cc62c6 29805 ac_status=$?
243f8ae5
VS
29806 grep -v '^ *+' conftest.er1 >conftest.err
29807 rm -f conftest.er1
29808 cat conftest.err >&5
e6cc62c6
VS
29809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810 (exit $ac_status); } &&
243f8ae5
VS
29811 { ac_try='test -z "$ac_c_werror_flag"
29812 || test ! -s conftest.err'
29813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29814 (eval $ac_try) 2>&5
29815 ac_status=$?
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); }; } &&
29818 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29820 (eval $ac_try) 2>&5
29821 ac_status=$?
29822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29823 (exit $ac_status); }; }; then
29824 eval "$as_ac_var=yes"
29825else
29826 echo "$as_me: failed program was:" >&5
29827sed 's/^/| /' conftest.$ac_ext >&5
29828
29829eval "$as_ac_var=no"
29830fi
243f8ae5
VS
29831rm -f conftest.err conftest.$ac_objext \
29832 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29833fi
29834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29835echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29836if test `eval echo '${'$as_ac_var'}'` = yes; then
29837 cat >>confdefs.h <<_ACEOF
29838#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29839_ACEOF
ade35f11 29840 break
ade35f11
VZ
29841fi
29842done
29843
8284b0c5 29844
e6cc62c6
VS
29845echo "$as_me:$LINENO: checking for statfs" >&5
29846echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29847if test "${wx_cv_func_statfs+set}" = set; then
29848 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29849else
e6cc62c6 29850 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29851/* confdefs.h. */
29852_ACEOF
29853cat confdefs.h >>conftest.$ac_ext
29854cat >>conftest.$ac_ext <<_ACEOF
29855/* end confdefs.h. */
4f14bcd8
GD
29856
29857 #if defined(__BSD__)
29858 #include <sys/param.h>
29859 #include <sys/mount.h>
29860 #else
29861 #include <sys/vfs.h>
29862 #endif
e6cc62c6
VS
29863
29864int
29865main ()
29866{
4f14bcd8
GD
29867
29868 long l;
29869 struct statfs fs;
29870 statfs("/", &fs);
29871 l = fs.f_bsize;
29872 l += fs.f_blocks;
29873 l += fs.f_bavail;
e6cc62c6
VS
29874
29875 ;
29876 return 0;
29877}
29878_ACEOF
29879rm -f conftest.$ac_objext
29880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 29881 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29882 ac_status=$?
243f8ae5
VS
29883 grep -v '^ *+' conftest.er1 >conftest.err
29884 rm -f conftest.er1
29885 cat conftest.err >&5
e6cc62c6
VS
29886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29887 (exit $ac_status); } &&
243f8ae5
VS
29888 { ac_try='test -z "$ac_c_werror_flag"
29889 || test ! -s conftest.err'
29890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29891 (eval $ac_try) 2>&5
29892 ac_status=$?
29893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29894 (exit $ac_status); }; } &&
29895 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29897 (eval $ac_try) 2>&5
29898 ac_status=$?
29899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29900 (exit $ac_status); }; }; then
29901
4f14bcd8 29902 wx_cv_func_statfs=yes
e6cc62c6 29903
4f14bcd8 29904else
e6cc62c6
VS
29905 echo "$as_me: failed program was:" >&5
29906sed 's/^/| /' conftest.$ac_ext >&5
29907
29908
4f14bcd8 29909 wx_cv_func_statfs=no
e6cc62c6 29910
8284b0c5 29911
247f5006 29912fi
243f8ae5 29913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29914
e6cc62c6
VS
29915fi
29916echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29917echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
29918
29919if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 29920 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 29921 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29922#define HAVE_STATFS 1
e6cc62c6 29923_ACEOF
4f14bcd8
GD
29924
29925else
e6cc62c6
VS
29926 echo "$as_me:$LINENO: checking for statvfs" >&5
29927echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29928if test "${wx_cv_func_statvfs+set}" = set; then
29929 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 29930else
e6cc62c6 29931 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29932/* confdefs.h. */
29933_ACEOF
29934cat confdefs.h >>conftest.$ac_ext
29935cat >>conftest.$ac_ext <<_ACEOF
29936/* end confdefs.h. */
af15babd 29937
54ab82b3
VZ
29938 #include <stddef.h>
29939 #include <sys/statvfs.h>
e6cc62c6
VS
29940
29941int
29942main ()
29943{
af15babd 29944
54ab82b3 29945 statvfs("/", NULL);
e6cc62c6
VS
29946
29947 ;
29948 return 0;
29949}
29950_ACEOF
29951rm -f conftest.$ac_objext
29952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 29953 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29954 ac_status=$?
243f8ae5
VS
29955 grep -v '^ *+' conftest.er1 >conftest.err
29956 rm -f conftest.er1
29957 cat conftest.err >&5
e6cc62c6
VS
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); } &&
243f8ae5
VS
29960 { ac_try='test -z "$ac_c_werror_flag"
29961 || test ! -s conftest.err'
29962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29963 (eval $ac_try) 2>&5
29964 ac_status=$?
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); }; } &&
29967 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29969 (eval $ac_try) 2>&5
29970 ac_status=$?
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); }; }; then
54ab82b3 29973 wx_cv_func_statvfs=yes
af15babd 29974else
e6cc62c6
VS
29975 echo "$as_me: failed program was:" >&5
29976sed 's/^/| /' conftest.$ac_ext >&5
29977
29978wx_cv_func_statvfs=no
29979
247f5006 29980fi
243f8ae5 29981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29982
e6cc62c6
VS
29983fi
29984echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29985echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 29986
4f14bcd8 29987 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
29988
29989
29990 ac_ext=cc
54ab82b3 29991ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29992ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29993ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29994ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
29995
29996
e6cc62c6
VS
29997 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29998echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29999if test "${wx_cv_type_statvfs_t+set}" = set; then
30000 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 30001else
e6cc62c6 30002 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30003/* confdefs.h. */
30004_ACEOF
30005cat confdefs.h >>conftest.$ac_ext
30006cat >>conftest.$ac_ext <<_ACEOF
30007/* end confdefs.h. */
54ab82b3
VZ
30008
30009 #include <sys/statvfs.h>
e6cc62c6
VS
30010
30011int
30012main ()
30013{
54ab82b3
VZ
30014
30015 long l;
30016 statvfs_t fs;
30017 statvfs("/", &fs);
30018 l = fs.f_bsize;
30019 l += fs.f_blocks;
30020 l += fs.f_bavail;
e6cc62c6
VS
30021
30022 ;
30023 return 0;
30024}
30025_ACEOF
30026rm -f conftest.$ac_objext
30027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 30028 (eval $ac_compile) 2>conftest.er1
e6cc62c6 30029 ac_status=$?
243f8ae5
VS
30030 grep -v '^ *+' conftest.er1 >conftest.err
30031 rm -f conftest.er1
30032 cat conftest.err >&5
e6cc62c6
VS
30033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034 (exit $ac_status); } &&
243f8ae5
VS
30035 { ac_try='test -z "$ac_cxx_werror_flag"
30036 || test ! -s conftest.err'
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); }; } &&
30042 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30044 (eval $ac_try) 2>&5
30045 ac_status=$?
30046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047 (exit $ac_status); }; }; then
54ab82b3
VZ
30048 wx_cv_type_statvfs_t=statvfs_t
30049else
e6cc62c6
VS
30050 echo "$as_me: failed program was:" >&5
30051sed 's/^/| /' conftest.$ac_ext >&5
30052
30053
30054 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30055/* confdefs.h. */
30056_ACEOF
30057cat confdefs.h >>conftest.$ac_ext
30058cat >>conftest.$ac_ext <<_ACEOF
30059/* end confdefs.h. */
54ab82b3
VZ
30060
30061 #include <sys/statvfs.h>
e6cc62c6
VS
30062
30063int
30064main ()
30065{
54ab82b3
VZ
30066
30067 long l;
65d8ef1e 30068 struct statvfs fs;
54ab82b3
VZ
30069 statvfs("/", &fs);
30070 l = fs.f_bsize;
30071 l += fs.f_blocks;
30072 l += fs.f_bavail;
e6cc62c6
VS
30073
30074 ;
30075 return 0;
30076}
30077_ACEOF
30078rm -f conftest.$ac_objext
30079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 30080 (eval $ac_compile) 2>conftest.er1
e6cc62c6 30081 ac_status=$?
243f8ae5
VS
30082 grep -v '^ *+' conftest.er1 >conftest.err
30083 rm -f conftest.er1
30084 cat conftest.err >&5
e6cc62c6
VS
30085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 (exit $ac_status); } &&
243f8ae5
VS
30087 { ac_try='test -z "$ac_cxx_werror_flag"
30088 || test ! -s conftest.err'
30089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30090 (eval $ac_try) 2>&5
30091 ac_status=$?
30092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 (exit $ac_status); }; } &&
30094 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30096 (eval $ac_try) 2>&5
30097 ac_status=$?
30098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 (exit $ac_status); }; }; then
54ab82b3
VZ
30100 wx_cv_type_statvfs_t="struct statvfs"
30101else
e6cc62c6
VS
30102 echo "$as_me: failed program was:" >&5
30103sed 's/^/| /' conftest.$ac_ext >&5
30104
30105wx_cv_type_statvfs_t="unknown"
30106
54ab82b3 30107fi
243f8ae5 30108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
30109
30110
54ab82b3 30111fi
243f8ae5 30112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54ab82b3 30113
e6cc62c6
VS
30114fi
30115echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
30116echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
30117
30118 ac_ext=c
54ab82b3 30119ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30122ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
30123
30124
30125 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 30126 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30127#define HAVE_STATVFS 1
e6cc62c6 30128_ACEOF
af15babd 30129
54ab82b3 30130 fi
4f14bcd8 30131 else
54ab82b3 30132 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
30133 fi
30134fi
af15babd 30135
54ab82b3 30136if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 30137 cat >>confdefs.h <<_ACEOF
54ab82b3 30138#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 30139_ACEOF
54ab82b3
VZ
30140
30141else
e6cc62c6
VS
30142 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
30143echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
30144fi
30145
4f14bcd8 30146if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
30147
30148
30149for ac_func in fcntl flock
af15babd 30150do
e6cc62c6
VS
30151as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30152echo "$as_me:$LINENO: checking for $ac_func" >&5
30153echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30154if eval "test \"\${$as_ac_var+set}\" = set"; then
30155 echo $ECHO_N "(cached) $ECHO_C" >&6
30156else
30157 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30158/* confdefs.h. */
30159_ACEOF
30160cat confdefs.h >>conftest.$ac_ext
30161cat >>conftest.$ac_ext <<_ACEOF
30162/* end confdefs.h. */
243f8ae5
VS
30163/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30165#define $ac_func innocuous_$ac_func
30166
af15babd 30167/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30168 which can conflict with char $ac_func (); below.
30169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30170 <limits.h> exists even on freestanding compilers. */
243f8ae5 30171
e6cc62c6
VS
30172#ifdef __STDC__
30173# include <limits.h>
30174#else
30175# include <assert.h>
30176#endif
243f8ae5
VS
30177
30178#undef $ac_func
30179
af15babd 30180/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30181#ifdef __cplusplus
30182extern "C"
30183{
30184#endif
af15babd 30185/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30186 builtin and then its argument prototype would still apply. */
30187char $ac_func ();
af15babd
VZ
30188/* The GNU C library defines this for functions which it implements
30189 to always fail with ENOSYS. Some functions are actually named
30190 something starting with __ and the normal name is an alias. */
30191#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30192choke me
30193#else
e6cc62c6
VS
30194char (*f) () = $ac_func;
30195#endif
30196#ifdef __cplusplus
30197}
af15babd
VZ
30198#endif
30199
e6cc62c6
VS
30200int
30201main ()
30202{
30203return f != $ac_func;
30204 ;
30205 return 0;
30206}
30207_ACEOF
30208rm -f conftest.$ac_objext conftest$ac_exeext
30209if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 30210 (eval $ac_link) 2>conftest.er1
e6cc62c6 30211 ac_status=$?
243f8ae5
VS
30212 grep -v '^ *+' conftest.er1 >conftest.err
30213 rm -f conftest.er1
30214 cat conftest.err >&5
e6cc62c6
VS
30215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216 (exit $ac_status); } &&
243f8ae5
VS
30217 { ac_try='test -z "$ac_c_werror_flag"
30218 || test ! -s conftest.err'
30219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30220 (eval $ac_try) 2>&5
30221 ac_status=$?
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); }; } &&
30224 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30226 (eval $ac_try) 2>&5
30227 ac_status=$?
30228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30229 (exit $ac_status); }; }; then
30230 eval "$as_ac_var=yes"
30231else
30232 echo "$as_me: failed program was:" >&5
30233sed 's/^/| /' conftest.$ac_ext >&5
30234
30235eval "$as_ac_var=no"
30236fi
243f8ae5
VS
30237rm -f conftest.err conftest.$ac_objext \
30238 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30239fi
30240echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30241echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30242if test `eval echo '${'$as_ac_var'}'` = yes; then
30243 cat >>confdefs.h <<_ACEOF
30244#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30245_ACEOF
4f14bcd8 30246 break
af15babd
VZ
30247fi
30248done
30249
8284b0c5 30250
4f14bcd8 30251 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
30252 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
30253echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
30254 wxUSE_SNGLINST_CHECKER=no
30255 fi
30256fi
af15babd 30257
e6cc62c6 30258
4f14bcd8 30259for ac_func in timegm
af15babd 30260do
e6cc62c6
VS
30261as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30262echo "$as_me:$LINENO: checking for $ac_func" >&5
30263echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30264if eval "test \"\${$as_ac_var+set}\" = set"; then
30265 echo $ECHO_N "(cached) $ECHO_C" >&6
30266else
30267 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30268/* confdefs.h. */
30269_ACEOF
30270cat confdefs.h >>conftest.$ac_ext
30271cat >>conftest.$ac_ext <<_ACEOF
30272/* end confdefs.h. */
243f8ae5
VS
30273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30275#define $ac_func innocuous_$ac_func
30276
af15babd 30277/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30278 which can conflict with char $ac_func (); below.
30279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30280 <limits.h> exists even on freestanding compilers. */
243f8ae5 30281
e6cc62c6
VS
30282#ifdef __STDC__
30283# include <limits.h>
30284#else
30285# include <assert.h>
30286#endif
243f8ae5
VS
30287
30288#undef $ac_func
30289
af15babd 30290/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30291#ifdef __cplusplus
30292extern "C"
30293{
30294#endif
af15babd 30295/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30296 builtin and then its argument prototype would still apply. */
30297char $ac_func ();
af15babd
VZ
30298/* The GNU C library defines this for functions which it implements
30299 to always fail with ENOSYS. Some functions are actually named
30300 something starting with __ and the normal name is an alias. */
247f5006
VZ
30301#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30302choke me
30303#else
e6cc62c6
VS
30304char (*f) () = $ac_func;
30305#endif
30306#ifdef __cplusplus
30307}
247f5006
VZ
30308#endif
30309
e6cc62c6
VS
30310int
30311main ()
30312{
30313return f != $ac_func;
30314 ;
30315 return 0;
30316}
30317_ACEOF
30318rm -f conftest.$ac_objext conftest$ac_exeext
30319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 30320 (eval $ac_link) 2>conftest.er1
e6cc62c6 30321 ac_status=$?
243f8ae5
VS
30322 grep -v '^ *+' conftest.er1 >conftest.err
30323 rm -f conftest.er1
30324 cat conftest.err >&5
e6cc62c6
VS
30325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326 (exit $ac_status); } &&
243f8ae5
VS
30327 { ac_try='test -z "$ac_c_werror_flag"
30328 || test ! -s conftest.err'
30329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30330 (eval $ac_try) 2>&5
30331 ac_status=$?
30332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30333 (exit $ac_status); }; } &&
30334 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30336 (eval $ac_try) 2>&5
30337 ac_status=$?
30338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30339 (exit $ac_status); }; }; then
30340 eval "$as_ac_var=yes"
30341else
30342 echo "$as_me: failed program was:" >&5
30343sed 's/^/| /' conftest.$ac_ext >&5
30344
30345eval "$as_ac_var=no"
30346fi
243f8ae5
VS
30347rm -f conftest.err conftest.$ac_objext \
30348 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30349fi
30350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30351echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30352if test `eval echo '${'$as_ac_var'}'` = yes; then
30353 cat >>confdefs.h <<_ACEOF
30354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30355_ACEOF
703e0a69 30356
af15babd
VZ
30357fi
30358done
30359
8284b0c5 30360
e6cc62c6
VS
30361
30362
4f14bcd8 30363for ac_func in putenv setenv
10f2d63a 30364do
e6cc62c6
VS
30365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30366echo "$as_me:$LINENO: checking for $ac_func" >&5
30367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30368if eval "test \"\${$as_ac_var+set}\" = set"; then
30369 echo $ECHO_N "(cached) $ECHO_C" >&6
30370else
30371 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30372/* confdefs.h. */
30373_ACEOF
30374cat confdefs.h >>conftest.$ac_ext
30375cat >>conftest.$ac_ext <<_ACEOF
30376/* end confdefs.h. */
243f8ae5
VS
30377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30379#define $ac_func innocuous_$ac_func
30380
af15babd 30381/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30382 which can conflict with char $ac_func (); below.
30383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30384 <limits.h> exists even on freestanding compilers. */
243f8ae5 30385
e6cc62c6
VS
30386#ifdef __STDC__
30387# include <limits.h>
30388#else
30389# include <assert.h>
30390#endif
243f8ae5
VS
30391
30392#undef $ac_func
30393
af15babd 30394/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30395#ifdef __cplusplus
30396extern "C"
30397{
30398#endif
af15babd 30399/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30400 builtin and then its argument prototype would still apply. */
30401char $ac_func ();
af15babd
VZ
30402/* The GNU C library defines this for functions which it implements
30403 to always fail with ENOSYS. Some functions are actually named
30404 something starting with __ and the normal name is an alias. */
30405#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30406choke me
30407#else
e6cc62c6
VS
30408char (*f) () = $ac_func;
30409#endif
30410#ifdef __cplusplus
30411}
af15babd
VZ
30412#endif
30413
e6cc62c6
VS
30414int
30415main ()
30416{
30417return f != $ac_func;
30418 ;
30419 return 0;
30420}
30421_ACEOF
30422rm -f conftest.$ac_objext conftest$ac_exeext
30423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 30424 (eval $ac_link) 2>conftest.er1
e6cc62c6 30425 ac_status=$?
243f8ae5
VS
30426 grep -v '^ *+' conftest.er1 >conftest.err
30427 rm -f conftest.er1
30428 cat conftest.err >&5
e6cc62c6
VS
30429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30430 (exit $ac_status); } &&
243f8ae5
VS
30431 { ac_try='test -z "$ac_c_werror_flag"
30432 || test ! -s conftest.err'
30433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30434 (eval $ac_try) 2>&5
30435 ac_status=$?
30436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30437 (exit $ac_status); }; } &&
30438 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30440 (eval $ac_try) 2>&5
30441 ac_status=$?
30442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30443 (exit $ac_status); }; }; then
30444 eval "$as_ac_var=yes"
30445else
30446 echo "$as_me: failed program was:" >&5
30447sed 's/^/| /' conftest.$ac_ext >&5
30448
30449eval "$as_ac_var=no"
30450fi
243f8ae5
VS
30451rm -f conftest.err conftest.$ac_objext \
30452 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30453fi
30454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30455echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30456if test `eval echo '${'$as_ac_var'}'` = yes; then
30457 cat >>confdefs.h <<_ACEOF
30458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30459_ACEOF
4f14bcd8 30460 break
af15babd 30461fi
af15babd
VZ
30462done
30463
8284b0c5 30464
4f14bcd8
GD
30465HAVE_SOME_SLEEP_FUNC=0
30466if test "$USE_BEOS" = 1; then
e6cc62c6 30467 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30468#define HAVE_SLEEP 1
e6cc62c6 30469_ACEOF
af15babd 30470
4f14bcd8 30471 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
30472fi
30473
4f14bcd8 30474if test "$USE_DARWIN" = 1; then
e6cc62c6 30475 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30476#define HAVE_USLEEP 1
e6cc62c6 30477_ACEOF
10f2d63a 30478
4f14bcd8 30479 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
30480fi
30481
4f14bcd8
GD
30482if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
30483 POSIX4_LINK=
e6cc62c6
VS
30484
30485for ac_func in nanosleep
4f14bcd8 30486do
e6cc62c6
VS
30487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30488echo "$as_me:$LINENO: checking for $ac_func" >&5
30489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30490if eval "test \"\${$as_ac_var+set}\" = set"; then
30491 echo $ECHO_N "(cached) $ECHO_C" >&6
30492else
30493 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30494/* confdefs.h. */
30495_ACEOF
30496cat confdefs.h >>conftest.$ac_ext
30497cat >>conftest.$ac_ext <<_ACEOF
30498/* end confdefs.h. */
243f8ae5
VS
30499/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30501#define $ac_func innocuous_$ac_func
30502
4f14bcd8 30503/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30504 which can conflict with char $ac_func (); below.
30505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30506 <limits.h> exists even on freestanding compilers. */
243f8ae5 30507
e6cc62c6
VS
30508#ifdef __STDC__
30509# include <limits.h>
30510#else
30511# include <assert.h>
30512#endif
243f8ae5
VS
30513
30514#undef $ac_func
30515
10f2d63a 30516/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30517#ifdef __cplusplus
30518extern "C"
30519{
30520#endif
10f2d63a 30521/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30522 builtin and then its argument prototype would still apply. */
30523char $ac_func ();
4f14bcd8
GD
30524/* The GNU C library defines this for functions which it implements
30525 to always fail with ENOSYS. Some functions are actually named
30526 something starting with __ and the normal name is an alias. */
30527#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30528choke me
30529#else
e6cc62c6
VS
30530char (*f) () = $ac_func;
30531#endif
30532#ifdef __cplusplus
30533}
4f14bcd8
GD
30534#endif
30535
e6cc62c6
VS
30536int
30537main ()
30538{
30539return f != $ac_func;
30540 ;
30541 return 0;
30542}
30543_ACEOF
30544rm -f conftest.$ac_objext conftest$ac_exeext
30545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 30546 (eval $ac_link) 2>conftest.er1
e6cc62c6 30547 ac_status=$?
243f8ae5
VS
30548 grep -v '^ *+' conftest.er1 >conftest.err
30549 rm -f conftest.er1
30550 cat conftest.err >&5
e6cc62c6
VS
30551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30552 (exit $ac_status); } &&
243f8ae5
VS
30553 { ac_try='test -z "$ac_c_werror_flag"
30554 || test ! -s conftest.err'
30555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30556 (eval $ac_try) 2>&5
30557 ac_status=$?
30558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30559 (exit $ac_status); }; } &&
30560 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30562 (eval $ac_try) 2>&5
30563 ac_status=$?
30564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565 (exit $ac_status); }; }; then
30566 eval "$as_ac_var=yes"
30567else
30568 echo "$as_me: failed program was:" >&5
30569sed 's/^/| /' conftest.$ac_ext >&5
30570
30571eval "$as_ac_var=no"
30572fi
243f8ae5
VS
30573rm -f conftest.err conftest.$ac_objext \
30574 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30575fi
30576echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30577echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30578if test `eval echo '${'$as_ac_var'}'` = yes; then
30579 cat >>confdefs.h <<_ACEOF
30580#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30581_ACEOF
30582 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30583#define HAVE_NANOSLEEP 1
e6cc62c6 30584_ACEOF
4f14bcd8 30585
10f2d63a 30586else
e6cc62c6
VS
30587
30588 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30589echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30590if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30591 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30592else
e6cc62c6 30593 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30594LIBS="-lposix4 $LIBS"
e6cc62c6 30595cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30596/* confdefs.h. */
30597_ACEOF
30598cat confdefs.h >>conftest.$ac_ext
30599cat >>conftest.$ac_ext <<_ACEOF
30600/* end confdefs.h. */
30601
10f2d63a 30602/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30603#ifdef __cplusplus
30604extern "C"
30605#endif
10f2d63a 30606/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30607 builtin and then its argument prototype would still apply. */
30608char nanosleep ();
30609int
30610main ()
30611{
30612nanosleep ();
30613 ;
30614 return 0;
30615}
30616_ACEOF
30617rm -f conftest.$ac_objext conftest$ac_exeext
30618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 30619 (eval $ac_link) 2>conftest.er1
e6cc62c6 30620 ac_status=$?
243f8ae5
VS
30621 grep -v '^ *+' conftest.er1 >conftest.err
30622 rm -f conftest.er1
30623 cat conftest.err >&5
e6cc62c6
VS
30624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30625 (exit $ac_status); } &&
243f8ae5
VS
30626 { ac_try='test -z "$ac_c_werror_flag"
30627 || test ! -s conftest.err'
30628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30629 (eval $ac_try) 2>&5
30630 ac_status=$?
30631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30632 (exit $ac_status); }; } &&
30633 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30635 (eval $ac_try) 2>&5
30636 ac_status=$?
30637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); }; }; then
30639 ac_cv_lib_posix4_nanosleep=yes
30640else
30641 echo "$as_me: failed program was:" >&5
30642sed 's/^/| /' conftest.$ac_ext >&5
30643
30644ac_cv_lib_posix4_nanosleep=no
30645fi
243f8ae5
VS
30646rm -f conftest.err conftest.$ac_objext \
30647 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30648LIBS=$ac_check_lib_save_LIBS
30649fi
30650echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30651echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30652if test $ac_cv_lib_posix4_nanosleep = yes; then
30653
30654 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30655#define HAVE_NANOSLEEP 1
e6cc62c6 30656_ACEOF
4f14bcd8 30657
3d63bc3a 30658 POSIX4_LINK=" -lposix4"
e6cc62c6 30659
10f2d63a 30660else
10f2d63a 30661
e6cc62c6
VS
30662
30663for ac_func in usleep
4f14bcd8 30664do
e6cc62c6
VS
30665as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30666echo "$as_me:$LINENO: checking for $ac_func" >&5
30667echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30668if eval "test \"\${$as_ac_var+set}\" = set"; then
30669 echo $ECHO_N "(cached) $ECHO_C" >&6
30670else
30671 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30672/* confdefs.h. */
30673_ACEOF
30674cat confdefs.h >>conftest.$ac_ext
30675cat >>conftest.$ac_ext <<_ACEOF
30676/* end confdefs.h. */
243f8ae5
VS
30677/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30679#define $ac_func innocuous_$ac_func
30680
4f14bcd8 30681/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30682 which can conflict with char $ac_func (); below.
30683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30684 <limits.h> exists even on freestanding compilers. */
243f8ae5 30685
e6cc62c6
VS
30686#ifdef __STDC__
30687# include <limits.h>
30688#else
30689# include <assert.h>
30690#endif
243f8ae5
VS
30691
30692#undef $ac_func
30693
4f14bcd8 30694/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30695#ifdef __cplusplus
30696extern "C"
30697{
30698#endif
4f14bcd8 30699/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30700 builtin and then its argument prototype would still apply. */
30701char $ac_func ();
4f14bcd8
GD
30702/* The GNU C library defines this for functions which it implements
30703 to always fail with ENOSYS. Some functions are actually named
30704 something starting with __ and the normal name is an alias. */
30705#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30706choke me
30707#else
e6cc62c6
VS
30708char (*f) () = $ac_func;
30709#endif
30710#ifdef __cplusplus
30711}
4f14bcd8
GD
30712#endif
30713
e6cc62c6
VS
30714int
30715main ()
30716{
30717return f != $ac_func;
30718 ;
30719 return 0;
30720}
30721_ACEOF
30722rm -f conftest.$ac_objext conftest$ac_exeext
30723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 30724 (eval $ac_link) 2>conftest.er1
e6cc62c6 30725 ac_status=$?
243f8ae5
VS
30726 grep -v '^ *+' conftest.er1 >conftest.err
30727 rm -f conftest.er1
30728 cat conftest.err >&5
e6cc62c6
VS
30729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30730 (exit $ac_status); } &&
243f8ae5
VS
30731 { ac_try='test -z "$ac_c_werror_flag"
30732 || test ! -s conftest.err'
30733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30734 (eval $ac_try) 2>&5
30735 ac_status=$?
30736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30737 (exit $ac_status); }; } &&
30738 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30740 (eval $ac_try) 2>&5
30741 ac_status=$?
30742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30743 (exit $ac_status); }; }; then
30744 eval "$as_ac_var=yes"
30745else
30746 echo "$as_me: failed program was:" >&5
30747sed 's/^/| /' conftest.$ac_ext >&5
30748
30749eval "$as_ac_var=no"
30750fi
243f8ae5
VS
30751rm -f conftest.err conftest.$ac_objext \
30752 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30753fi
30754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30755echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30756if test `eval echo '${'$as_ac_var'}'` = yes; then
30757 cat >>confdefs.h <<_ACEOF
30758#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30759_ACEOF
30760 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30761#define HAVE_USLEEP 1
e6cc62c6 30762_ACEOF
4f14bcd8 30763
698dcdb6 30764else
e6cc62c6
VS
30765 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30766echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30767
10f2d63a 30768fi
4f14bcd8 30769done
10f2d63a 30770
e6cc62c6
VS
30771
30772
6232543b 30773fi
10f2d63a 30774
e6cc62c6
VS
30775
30776
1e487827 30777fi
4f14bcd8 30778done
703e0a69 30779
10f2d63a
VZ
30780fi
30781
e6cc62c6
VS
30782
30783
4f14bcd8 30784for ac_func in uname gethostname
70846f0a 30785do
e6cc62c6
VS
30786as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30787echo "$as_me:$LINENO: checking for $ac_func" >&5
30788echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30789if eval "test \"\${$as_ac_var+set}\" = set"; then
30790 echo $ECHO_N "(cached) $ECHO_C" >&6
30791else
30792 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30793/* confdefs.h. */
30794_ACEOF
30795cat confdefs.h >>conftest.$ac_ext
30796cat >>conftest.$ac_ext <<_ACEOF
30797/* end confdefs.h. */
243f8ae5
VS
30798/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30800#define $ac_func innocuous_$ac_func
30801
70846f0a 30802/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30803 which can conflict with char $ac_func (); below.
30804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30805 <limits.h> exists even on freestanding compilers. */
243f8ae5 30806
e6cc62c6
VS
30807#ifdef __STDC__
30808# include <limits.h>
30809#else
30810# include <assert.h>
30811#endif
243f8ae5
VS
30812
30813#undef $ac_func
30814
70846f0a 30815/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30816#ifdef __cplusplus
30817extern "C"
30818{
30819#endif
70846f0a 30820/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30821 builtin and then its argument prototype would still apply. */
30822char $ac_func ();
70846f0a
VZ
30823/* The GNU C library defines this for functions which it implements
30824 to always fail with ENOSYS. Some functions are actually named
30825 something starting with __ and the normal name is an alias. */
30826#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30827choke me
30828#else
e6cc62c6
VS
30829char (*f) () = $ac_func;
30830#endif
30831#ifdef __cplusplus
30832}
70846f0a
VZ
30833#endif
30834
e6cc62c6
VS
30835int
30836main ()
30837{
30838return f != $ac_func;
30839 ;
30840 return 0;
30841}
30842_ACEOF
30843rm -f conftest.$ac_objext conftest$ac_exeext
30844if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 30845 (eval $ac_link) 2>conftest.er1
e6cc62c6 30846 ac_status=$?
243f8ae5
VS
30847 grep -v '^ *+' conftest.er1 >conftest.err
30848 rm -f conftest.er1
30849 cat conftest.err >&5
e6cc62c6
VS
30850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851 (exit $ac_status); } &&
243f8ae5
VS
30852 { ac_try='test -z "$ac_c_werror_flag"
30853 || test ! -s conftest.err'
30854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30855 (eval $ac_try) 2>&5
30856 ac_status=$?
30857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30858 (exit $ac_status); }; } &&
30859 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30861 (eval $ac_try) 2>&5
30862 ac_status=$?
30863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30864 (exit $ac_status); }; }; then
30865 eval "$as_ac_var=yes"
30866else
30867 echo "$as_me: failed program was:" >&5
30868sed 's/^/| /' conftest.$ac_ext >&5
30869
30870eval "$as_ac_var=no"
30871fi
243f8ae5
VS
30872rm -f conftest.err conftest.$ac_objext \
30873 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30874fi
30875echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30876echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30877if test `eval echo '${'$as_ac_var'}'` = yes; then
30878 cat >>confdefs.h <<_ACEOF
30879#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30880_ACEOF
4f14bcd8 30881 break
70846f0a
VZ
30882fi
30883done
30884
8284b0c5
MB
30885
30886
e6cc62c6
VS
30887
30888ac_ext=cc
4f14bcd8 30889ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30890ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30891ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30892ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30893
8284b0c5 30894
4f14bcd8
GD
30895
30896for ac_func in strtok_r
10f2d63a 30897do
e6cc62c6
VS
30898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30899echo "$as_me:$LINENO: checking for $ac_func" >&5
30900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30901if eval "test \"\${$as_ac_var+set}\" = set"; then
30902 echo $ECHO_N "(cached) $ECHO_C" >&6
30903else
30904 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30905/* confdefs.h. */
30906_ACEOF
30907cat confdefs.h >>conftest.$ac_ext
30908cat >>conftest.$ac_ext <<_ACEOF
30909/* end confdefs.h. */
243f8ae5
VS
30910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30912#define $ac_func innocuous_$ac_func
30913
4f14bcd8 30914/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30915 which can conflict with char $ac_func (); below.
30916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30917 <limits.h> exists even on freestanding compilers. */
243f8ae5 30918
e6cc62c6
VS
30919#ifdef __STDC__
30920# include <limits.h>
30921#else
30922# include <assert.h>
30923#endif
243f8ae5
VS
30924
30925#undef $ac_func
30926
4f14bcd8
GD
30927/* Override any gcc2 internal prototype to avoid an error. */
30928#ifdef __cplusplus
30929extern "C"
e6cc62c6 30930{
4f14bcd8
GD
30931#endif
30932/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30933 builtin and then its argument prototype would still apply. */
30934char $ac_func ();
4f14bcd8
GD
30935/* The GNU C library defines this for functions which it implements
30936 to always fail with ENOSYS. Some functions are actually named
30937 something starting with __ and the normal name is an alias. */
30938#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30939choke me
30940#else
e6cc62c6
VS
30941char (*f) () = $ac_func;
30942#endif
30943#ifdef __cplusplus
30944}
4f14bcd8
GD
30945#endif
30946
e6cc62c6
VS
30947int
30948main ()
30949{
30950return f != $ac_func;
30951 ;
30952 return 0;
30953}
30954_ACEOF
30955rm -f conftest.$ac_objext conftest$ac_exeext
30956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 30957 (eval $ac_link) 2>conftest.er1
e6cc62c6 30958 ac_status=$?
243f8ae5
VS
30959 grep -v '^ *+' conftest.er1 >conftest.err
30960 rm -f conftest.er1
30961 cat conftest.err >&5
e6cc62c6
VS
30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30963 (exit $ac_status); } &&
243f8ae5
VS
30964 { ac_try='test -z "$ac_cxx_werror_flag"
30965 || test ! -s conftest.err'
30966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30967 (eval $ac_try) 2>&5
30968 ac_status=$?
30969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30970 (exit $ac_status); }; } &&
30971 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30973 (eval $ac_try) 2>&5
30974 ac_status=$?
30975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976 (exit $ac_status); }; }; then
30977 eval "$as_ac_var=yes"
30978else
30979 echo "$as_me: failed program was:" >&5
30980sed 's/^/| /' conftest.$ac_ext >&5
30981
30982eval "$as_ac_var=no"
30983fi
243f8ae5
VS
30984rm -f conftest.err conftest.$ac_objext \
30985 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30986fi
30987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30988echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30989if test `eval echo '${'$as_ac_var'}'` = yes; then
30990 cat >>confdefs.h <<_ACEOF
30991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30992_ACEOF
4f14bcd8 30993
10f2d63a
VZ
30994fi
30995done
30996
8284b0c5 30997
4f14bcd8 30998ac_ext=c
4f14bcd8 30999ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
31000ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31001ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31002ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 31003
5c6fa7d2 31004
8284b0c5 31005INET_LINK=
e6cc62c6 31006
4f14bcd8
GD
31007for ac_func in inet_addr
31008do
e6cc62c6
VS
31009as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31010echo "$as_me:$LINENO: checking for $ac_func" >&5
31011echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31012if eval "test \"\${$as_ac_var+set}\" = set"; then
31013 echo $ECHO_N "(cached) $ECHO_C" >&6
31014else
31015 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31016/* confdefs.h. */
31017_ACEOF
31018cat confdefs.h >>conftest.$ac_ext
31019cat >>conftest.$ac_ext <<_ACEOF
31020/* end confdefs.h. */
243f8ae5
VS
31021/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31023#define $ac_func innocuous_$ac_func
31024
4f14bcd8 31025/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31026 which can conflict with char $ac_func (); below.
31027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31028 <limits.h> exists even on freestanding compilers. */
243f8ae5 31029
e6cc62c6
VS
31030#ifdef __STDC__
31031# include <limits.h>
31032#else
31033# include <assert.h>
31034#endif
243f8ae5
VS
31035
31036#undef $ac_func
31037
10f2d63a 31038/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31039#ifdef __cplusplus
31040extern "C"
31041{
31042#endif
10f2d63a 31043/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31044 builtin and then its argument prototype would still apply. */
31045char $ac_func ();
4f14bcd8
GD
31046/* The GNU C library defines this for functions which it implements
31047 to always fail with ENOSYS. Some functions are actually named
31048 something starting with __ and the normal name is an alias. */
31049#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31050choke me
31051#else
e6cc62c6
VS
31052char (*f) () = $ac_func;
31053#endif
31054#ifdef __cplusplus
31055}
4f14bcd8
GD
31056#endif
31057
e6cc62c6
VS
31058int
31059main ()
31060{
31061return f != $ac_func;
31062 ;
31063 return 0;
31064}
31065_ACEOF
31066rm -f conftest.$ac_objext conftest$ac_exeext
31067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 31068 (eval $ac_link) 2>conftest.er1
e6cc62c6 31069 ac_status=$?
243f8ae5
VS
31070 grep -v '^ *+' conftest.er1 >conftest.err
31071 rm -f conftest.er1
31072 cat conftest.err >&5
e6cc62c6
VS
31073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31074 (exit $ac_status); } &&
243f8ae5
VS
31075 { ac_try='test -z "$ac_c_werror_flag"
31076 || test ! -s conftest.err'
31077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31078 (eval $ac_try) 2>&5
31079 ac_status=$?
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); }; } &&
31082 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31084 (eval $ac_try) 2>&5
31085 ac_status=$?
31086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31087 (exit $ac_status); }; }; then
31088 eval "$as_ac_var=yes"
31089else
31090 echo "$as_me: failed program was:" >&5
31091sed 's/^/| /' conftest.$ac_ext >&5
31092
31093eval "$as_ac_var=no"
31094fi
243f8ae5
VS
31095rm -f conftest.err conftest.$ac_objext \
31096 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31097fi
31098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31099echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31100if test `eval echo '${'$as_ac_var'}'` = yes; then
31101 cat >>confdefs.h <<_ACEOF
31102#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31103_ACEOF
31104 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31105#define HAVE_INET_ADDR 1
e6cc62c6 31106_ACEOF
10f2d63a
VZ
31107
31108else
e6cc62c6
VS
31109
31110 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
31111echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
31112if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
31113 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31114else
e6cc62c6 31115 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31116LIBS="-lnsl $LIBS"
e6cc62c6 31117cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31118/* confdefs.h. */
31119_ACEOF
31120cat confdefs.h >>conftest.$ac_ext
31121cat >>conftest.$ac_ext <<_ACEOF
31122/* end confdefs.h. */
31123
10f2d63a 31124/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31125#ifdef __cplusplus
31126extern "C"
31127#endif
10f2d63a 31128/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31129 builtin and then its argument prototype would still apply. */
31130char inet_addr ();
31131int
31132main ()
31133{
31134inet_addr ();
31135 ;
31136 return 0;
31137}
31138_ACEOF
31139rm -f conftest.$ac_objext conftest$ac_exeext
31140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 31141 (eval $ac_link) 2>conftest.er1
e6cc62c6 31142 ac_status=$?
243f8ae5
VS
31143 grep -v '^ *+' conftest.er1 >conftest.err
31144 rm -f conftest.er1
31145 cat conftest.err >&5
e6cc62c6
VS
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); } &&
243f8ae5
VS
31148 { ac_try='test -z "$ac_c_werror_flag"
31149 || test ! -s conftest.err'
31150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31151 (eval $ac_try) 2>&5
31152 ac_status=$?
31153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31154 (exit $ac_status); }; } &&
31155 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31157 (eval $ac_try) 2>&5
31158 ac_status=$?
31159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31160 (exit $ac_status); }; }; then
31161 ac_cv_lib_nsl_inet_addr=yes
31162else
31163 echo "$as_me: failed program was:" >&5
31164sed 's/^/| /' conftest.$ac_ext >&5
31165
31166ac_cv_lib_nsl_inet_addr=no
31167fi
243f8ae5
VS
31168rm -f conftest.err conftest.$ac_objext \
31169 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31170LIBS=$ac_check_lib_save_LIBS
31171fi
31172echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
31173echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
31174if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 31175 INET_LINK="nsl"
10f2d63a 31176else
0e012a93
VZ
31177
31178 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
31179echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
31180if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
31181 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 31182else
e6cc62c6 31183 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31184LIBS="-lresolv $LIBS"
e6cc62c6 31185cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31186/* confdefs.h. */
31187_ACEOF
31188cat confdefs.h >>conftest.$ac_ext
31189cat >>conftest.$ac_ext <<_ACEOF
31190/* end confdefs.h. */
31191
5c6fa7d2 31192/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31193#ifdef __cplusplus
31194extern "C"
31195#endif
5c6fa7d2 31196/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31197 builtin and then its argument prototype would still apply. */
31198char inet_addr ();
31199int
31200main ()
31201{
31202inet_addr ();
31203 ;
31204 return 0;
31205}
31206_ACEOF
31207rm -f conftest.$ac_objext conftest$ac_exeext
31208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 31209 (eval $ac_link) 2>conftest.er1
e6cc62c6 31210 ac_status=$?
243f8ae5
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); } &&
243f8ae5
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 ac_cv_lib_resolv_inet_addr=yes
31230else
31231 echo "$as_me: failed program was:" >&5
31232sed 's/^/| /' conftest.$ac_ext >&5
31233
31234ac_cv_lib_resolv_inet_addr=no
31235fi
243f8ae5
VS
31236rm -f conftest.err conftest.$ac_objext \
31237 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31238LIBS=$ac_check_lib_save_LIBS
31239fi
31240echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
31241echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
31242if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 31243 INET_LINK="resolv"
698dcdb6 31244else
0e012a93
VZ
31245
31246 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
31247echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
31248if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
31249 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 31250else
e6cc62c6 31251 ac_check_lib_save_LIBS=$LIBS
3c011993 31252LIBS="-lsocket $LIBS"
e6cc62c6 31253cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31254/* confdefs.h. */
31255_ACEOF
31256cat confdefs.h >>conftest.$ac_ext
31257cat >>conftest.$ac_ext <<_ACEOF
31258/* end confdefs.h. */
31259
3c011993 31260/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31261#ifdef __cplusplus
31262extern "C"
31263#endif
3c011993 31264/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31265 builtin and then its argument prototype would still apply. */
31266char inet_addr ();
31267int
31268main ()
31269{
31270inet_addr ();
31271 ;
31272 return 0;
31273}
31274_ACEOF
31275rm -f conftest.$ac_objext conftest$ac_exeext
31276if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 31277 (eval $ac_link) 2>conftest.er1
e6cc62c6 31278 ac_status=$?
243f8ae5
VS
31279 grep -v '^ *+' conftest.er1 >conftest.err
31280 rm -f conftest.er1
31281 cat conftest.err >&5
e6cc62c6
VS
31282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31283 (exit $ac_status); } &&
243f8ae5
VS
31284 { ac_try='test -z "$ac_c_werror_flag"
31285 || test ! -s conftest.err'
31286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31287 (eval $ac_try) 2>&5
31288 ac_status=$?
31289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290 (exit $ac_status); }; } &&
31291 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31293 (eval $ac_try) 2>&5
31294 ac_status=$?
31295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31296 (exit $ac_status); }; }; then
31297 ac_cv_lib_socket_inet_addr=yes
31298else
31299 echo "$as_me: failed program was:" >&5
31300sed 's/^/| /' conftest.$ac_ext >&5
31301
31302ac_cv_lib_socket_inet_addr=no
31303fi
243f8ae5
VS
31304rm -f conftest.err conftest.$ac_objext \
31305 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31306LIBS=$ac_check_lib_save_LIBS
31307fi
31308echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
31309echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
31310if test $ac_cv_lib_socket_inet_addr = yes; then
31311 INET_LINK="socket"
4f14bcd8 31312
8284b0c5 31313fi
e6cc62c6 31314
698dcdb6 31315
0e012a93 31316
7b4a847f 31317fi
e6cc62c6
VS
31318
31319
0e012a93 31320
a0b9e27f 31321fi
579d8138 31322
e6cc62c6
VS
31323
31324
5c6fa7d2 31325fi
e6cc62c6
VS
31326done
31327
31328
31329
31330for ac_func in inet_aton
31331do
31332as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31333echo "$as_me:$LINENO: checking for $ac_func" >&5
31334echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31335if eval "test \"\${$as_ac_var+set}\" = set"; then
31336 echo $ECHO_N "(cached) $ECHO_C" >&6
31337else
31338 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31339/* confdefs.h. */
31340_ACEOF
31341cat confdefs.h >>conftest.$ac_ext
31342cat >>conftest.$ac_ext <<_ACEOF
31343/* end confdefs.h. */
243f8ae5
VS
31344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31346#define $ac_func innocuous_$ac_func
31347
e6cc62c6
VS
31348/* System header to define __stub macros and hopefully few prototypes,
31349 which can conflict with char $ac_func (); below.
31350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31351 <limits.h> exists even on freestanding compilers. */
243f8ae5 31352
e6cc62c6
VS
31353#ifdef __STDC__
31354# include <limits.h>
31355#else
31356# include <assert.h>
31357#endif
243f8ae5
VS
31358
31359#undef $ac_func
31360
e6cc62c6
VS
31361/* Override any gcc2 internal prototype to avoid an error. */
31362#ifdef __cplusplus
31363extern "C"
31364{
31365#endif
31366/* We use char because int might match the return type of a gcc2
31367 builtin and then its argument prototype would still apply. */
31368char $ac_func ();
31369/* The GNU C library defines this for functions which it implements
31370 to always fail with ENOSYS. Some functions are actually named
31371 something starting with __ and the normal name is an alias. */
31372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31373choke me
31374#else
31375char (*f) () = $ac_func;
31376#endif
31377#ifdef __cplusplus
31378}
31379#endif
31380
31381int
31382main ()
31383{
31384return f != $ac_func;
31385 ;
31386 return 0;
31387}
31388_ACEOF
31389rm -f conftest.$ac_objext conftest$ac_exeext
31390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 31391 (eval $ac_link) 2>conftest.er1
e6cc62c6 31392 ac_status=$?
243f8ae5
VS
31393 grep -v '^ *+' conftest.er1 >conftest.err
31394 rm -f conftest.er1
31395 cat conftest.err >&5
e6cc62c6
VS
31396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31397 (exit $ac_status); } &&
243f8ae5
VS
31398 { ac_try='test -z "$ac_c_werror_flag"
31399 || test ! -s conftest.err'
31400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31401 (eval $ac_try) 2>&5
31402 ac_status=$?
31403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31404 (exit $ac_status); }; } &&
31405 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31407 (eval $ac_try) 2>&5
31408 ac_status=$?
31409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31410 (exit $ac_status); }; }; then
31411 eval "$as_ac_var=yes"
31412else
31413 echo "$as_me: failed program was:" >&5
31414sed 's/^/| /' conftest.$ac_ext >&5
31415
31416eval "$as_ac_var=no"
31417fi
243f8ae5
VS
31418rm -f conftest.err conftest.$ac_objext \
31419 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31420fi
31421echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31422echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31423if test `eval echo '${'$as_ac_var'}'` = yes; then
31424 cat >>confdefs.h <<_ACEOF
31425#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31426_ACEOF
31427 cat >>confdefs.h <<\_ACEOF
31428#define HAVE_INET_ATON 1
31429_ACEOF
31430
31431else
31432
31433 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
31434echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
31435echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
31436if eval "test \"\${$as_ac_Lib+set}\" = set"; then
31437 echo $ECHO_N "(cached) $ECHO_C" >&6
31438else
31439 ac_check_lib_save_LIBS=$LIBS
31440LIBS="-l$INET_LINK $LIBS"
31441cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31442/* confdefs.h. */
31443_ACEOF
31444cat confdefs.h >>conftest.$ac_ext
31445cat >>conftest.$ac_ext <<_ACEOF
31446/* end confdefs.h. */
31447
31448/* Override any gcc2 internal prototype to avoid an error. */
31449#ifdef __cplusplus
31450extern "C"
31451#endif
31452/* We use char because int might match the return type of a gcc2
31453 builtin and then its argument prototype would still apply. */
31454char inet_aton ();
31455int
31456main ()
31457{
31458inet_aton ();
31459 ;
31460 return 0;
31461}
31462_ACEOF
31463rm -f conftest.$ac_objext conftest$ac_exeext
31464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 31465 (eval $ac_link) 2>conftest.er1
e6cc62c6 31466 ac_status=$?
243f8ae5
VS
31467 grep -v '^ *+' conftest.er1 >conftest.err
31468 rm -f conftest.er1
31469 cat conftest.err >&5
e6cc62c6
VS
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); } &&
243f8ae5
VS
31472 { ac_try='test -z "$ac_c_werror_flag"
31473 || test ! -s conftest.err'
31474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31475 (eval $ac_try) 2>&5
31476 ac_status=$?
31477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478 (exit $ac_status); }; } &&
31479 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31481 (eval $ac_try) 2>&5
31482 ac_status=$?
31483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); }; }; then
31485 eval "$as_ac_Lib=yes"
31486else
31487 echo "$as_me: failed program was:" >&5
31488sed 's/^/| /' conftest.$ac_ext >&5
31489
31490eval "$as_ac_Lib=no"
31491fi
243f8ae5
VS
31492rm -f conftest.err conftest.$ac_objext \
31493 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31494LIBS=$ac_check_lib_save_LIBS
31495fi
31496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
31497echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
31498if test `eval echo '${'$as_ac_Lib'}'` = yes; then
31499 cat >>confdefs.h <<\_ACEOF
31500#define HAVE_INET_ATON 1
31501_ACEOF
52127426 31502
a0b9e27f 31503fi
247f5006 31504
8284b0c5 31505
698dcdb6 31506fi
4f14bcd8
GD
31507done
31508
8284b0c5 31509
e6cc62c6
VS
31510if test "x$INET_LINK" != "x"; then
31511 cat >>confdefs.h <<\_ACEOF
31512#define HAVE_INET_ADDR 1
31513_ACEOF
31514
31515 INET_LINK=" -l$INET_LINK"
31516fi
31517
31518fi
a0b9e27f 31519
a0b9e27f 31520
4f14bcd8 31521
edd891e2
VS
31522EXTRALIBS_ESD=
31523echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31524echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31525if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31526 echo $ECHO_N "(cached) $ECHO_C" >&6
31527else
31528 ac_check_lib_save_LIBS=$LIBS
31529LIBS="-lesd $LIBS"
31530cat >conftest.$ac_ext <<_ACEOF
edd891e2
VS
31531/* confdefs.h. */
31532_ACEOF
31533cat confdefs.h >>conftest.$ac_ext
31534cat >>conftest.$ac_ext <<_ACEOF
31535/* end confdefs.h. */
31536
31537/* Override any gcc2 internal prototype to avoid an error. */
31538#ifdef __cplusplus
31539extern "C"
31540#endif
31541/* We use char because int might match the return type of a gcc2
31542 builtin and then its argument prototype would still apply. */
31543char esd_close ();
31544int
31545main ()
31546{
31547esd_close ();
31548 ;
31549 return 0;
31550}
31551_ACEOF
31552rm -f conftest.$ac_objext conftest$ac_exeext
31553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 31554 (eval $ac_link) 2>conftest.er1
edd891e2 31555 ac_status=$?
243f8ae5
VS
31556 grep -v '^ *+' conftest.er1 >conftest.err
31557 rm -f conftest.er1
31558 cat conftest.err >&5
edd891e2
VS
31559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560 (exit $ac_status); } &&
243f8ae5
VS
31561 { ac_try='test -z "$ac_c_werror_flag"
31562 || test ! -s conftest.err'
31563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31564 (eval $ac_try) 2>&5
31565 ac_status=$?
31566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567 (exit $ac_status); }; } &&
31568 { ac_try='test -s conftest$ac_exeext'
edd891e2
VS
31569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31570 (eval $ac_try) 2>&5
31571 ac_status=$?
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); }; }; then
31574 ac_cv_lib_esd_esd_close=yes
31575else
31576 echo "$as_me: failed program was:" >&5
31577sed 's/^/| /' conftest.$ac_ext >&5
31578
31579ac_cv_lib_esd_esd_close=no
31580fi
243f8ae5
VS
31581rm -f conftest.err conftest.$ac_objext \
31582 conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
31583LIBS=$ac_check_lib_save_LIBS
31584fi
31585echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31586echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31587if test $ac_cv_lib_esd_esd_close = yes; then
31588
31589
31590for ac_header in esd.h
31591do
31592as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31593if eval "test \"\${$as_ac_Header+set}\" = set"; then
31594 echo "$as_me:$LINENO: checking for $ac_header" >&5
31595echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31596if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31597 echo $ECHO_N "(cached) $ECHO_C" >&6
31598fi
edd891e2
VS
31599echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31600echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
31601else
31602 # Is the header compilable?
edd891e2
VS
31603echo "$as_me:$LINENO: checking $ac_header usability" >&5
31604echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 31605cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31606/* confdefs.h. */
31607_ACEOF
31608cat confdefs.h >>conftest.$ac_ext
31609cat >>conftest.$ac_ext <<_ACEOF
31610/* end confdefs.h. */
31611$ac_includes_default
edd891e2 31612#include <$ac_header>
e6cc62c6
VS
31613_ACEOF
31614rm -f conftest.$ac_objext
31615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 31616 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31617 ac_status=$?
243f8ae5
VS
31618 grep -v '^ *+' conftest.er1 >conftest.err
31619 rm -f conftest.er1
31620 cat conftest.err >&5
e6cc62c6
VS
31621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31622 (exit $ac_status); } &&
243f8ae5
VS
31623 { ac_try='test -z "$ac_c_werror_flag"
31624 || test ! -s conftest.err'
31625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31626 (eval $ac_try) 2>&5
31627 ac_status=$?
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); }; } &&
31630 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31632 (eval $ac_try) 2>&5
31633 ac_status=$?
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); }; }; then
31636 ac_header_compiler=yes
31637else
31638 echo "$as_me: failed program was:" >&5
31639sed 's/^/| /' conftest.$ac_ext >&5
31640
31641ac_header_compiler=no
31642fi
243f8ae5 31643rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31645echo "${ECHO_T}$ac_header_compiler" >&6
31646
31647# Is the header present?
edd891e2
VS
31648echo "$as_me:$LINENO: checking $ac_header presence" >&5
31649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 31650cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31651/* confdefs.h. */
31652_ACEOF
31653cat confdefs.h >>conftest.$ac_ext
31654cat >>conftest.$ac_ext <<_ACEOF
31655/* end confdefs.h. */
edd891e2 31656#include <$ac_header>
e6cc62c6
VS
31657_ACEOF
31658if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31660 ac_status=$?
31661 grep -v '^ *+' conftest.er1 >conftest.err
31662 rm -f conftest.er1
31663 cat conftest.err >&5
31664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31665 (exit $ac_status); } >/dev/null; then
31666 if test -s conftest.err; then
31667 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 31668 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31669 else
31670 ac_cpp_err=
31671 fi
a0b9e27f 31672else
e6cc62c6
VS
31673 ac_cpp_err=yes
31674fi
31675if test -z "$ac_cpp_err"; then
31676 ac_header_preproc=yes
31677else
31678 echo "$as_me: failed program was:" >&5
31679sed 's/^/| /' conftest.$ac_ext >&5
31680
31681 ac_header_preproc=no
31682fi
31683rm -f conftest.err conftest.$ac_ext
31684echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31685echo "${ECHO_T}$ac_header_preproc" >&6
31686
31687# So? What about this header?
243f8ae5
VS
31688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31689 yes:no: )
edd891e2
VS
31690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
31692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31693echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31694 ac_header_preproc=yes
e6cc62c6 31695 ;;
243f8ae5 31696 no:yes:* )
edd891e2
VS
31697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31698echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
31699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31700echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31702echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31704echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
edd891e2
VS
31705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31706echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
31707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31708echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31709 (
31710 cat <<\_ASBOX
243f8ae5
VS
31711## ----------------------------------------- ##
31712## Report this to wx-dev@lists.wxwindows.org ##
31713## ----------------------------------------- ##
e6cc62c6
VS
31714_ASBOX
31715 ) |
31716 sed "s/^/$as_me: WARNING: /" >&2
31717 ;;
31718esac
edd891e2
VS
31719echo "$as_me:$LINENO: checking for $ac_header" >&5
31720echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31721if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31722 echo $ECHO_N "(cached) $ECHO_C" >&6
31723else
243f8ae5 31724 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 31725fi
edd891e2
VS
31726echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31727echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 31728
e6cc62c6 31729fi
edd891e2
VS
31730if test `eval echo '${'$as_ac_Header'}'` = yes; then
31731 cat >>confdefs.h <<_ACEOF
31732#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 31733_ACEOF
e6cc62c6 31734
edd891e2 31735 EXTRALIBS_ESD="-lesd"
4f14bcd8 31736
a0b9e27f 31737fi
247f5006 31738
edd891e2 31739done
8284b0c5 31740
4f14bcd8 31741
6232543b 31742fi
10f2d63a 31743
703e0a69 31744
8284b0c5 31745
d19d1899
MB
31746echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31747echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31748cat >conftest.$ac_ext <<_ACEOF
d19d1899
MB
31749/* confdefs.h. */
31750_ACEOF
31751cat confdefs.h >>conftest.$ac_ext
31752cat >>conftest.$ac_ext <<_ACEOF
31753/* end confdefs.h. */
31754#ifdef __linux__
31755 #include <linux/cdrom.h>
31756 #else
31757 /* For Solaris */
31758 #include <sys/cdio.h>
31759 #endif
31760
31761int
31762main ()
31763{
31764struct cdrom_tocentry entry, old_entry;
31765 ;
31766 return 0;
31767}
31768_ACEOF
31769rm -f conftest.$ac_objext
31770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 31771 (eval $ac_compile) 2>conftest.er1
d19d1899 31772 ac_status=$?
243f8ae5
VS
31773 grep -v '^ *+' conftest.er1 >conftest.err
31774 rm -f conftest.er1
31775 cat conftest.err >&5
d19d1899
MB
31776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31777 (exit $ac_status); } &&
243f8ae5
VS
31778 { ac_try='test -z "$ac_c_werror_flag"
31779 || test ! -s conftest.err'
31780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31781 (eval $ac_try) 2>&5
31782 ac_status=$?
31783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784 (exit $ac_status); }; } &&
31785 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
31786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31787 (eval $ac_try) 2>&5
31788 ac_status=$?
31789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31790 (exit $ac_status); }; }; then
31791 echo "$as_me:$LINENO: result: yes" >&5
31792echo "${ECHO_T}yes" >&6
31793 cat >>confdefs.h <<\_ACEOF
31794#define HAVE_KNOWN_CDROM_INTERFACE 1
31795_ACEOF
31796
31797else
31798 echo "$as_me: failed program was:" >&5
31799sed 's/^/| /' conftest.$ac_ext >&5
31800
31801echo "$as_me:$LINENO: result: no" >&5
31802echo "${ECHO_T}no" >&6
31803fi
243f8ae5 31804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31805
31806
31807cat >confcache <<\_ACEOF
4f14bcd8
GD
31808# This file is a shell script that caches the results of configure
31809# tests run on this system so they can be shared between configure
e6cc62c6
VS
31810# scripts and configure runs, see configure's option --config-cache.
31811# It is not useful on other systems. If it contains results you don't
31812# want to keep, you may remove or edit it.
4f14bcd8 31813#
e6cc62c6
VS
31814# config.status only pays attention to the cache file if you give it
31815# the --recheck option to rerun configure.
4f14bcd8 31816#
e6cc62c6
VS
31817# `ac_cv_env_foo' variables (set or unset) will be overridden when
31818# loading this file, other *unset* `ac_cv_foo' will be assigned the
31819# following values.
31820
31821_ACEOF
31822
4f14bcd8
GD
31823# The following way of writing the cache mishandles newlines in values,
31824# but we know of no workaround that is simple, portable, and efficient.
31825# So, don't put newlines in cache variables' values.
31826# Ultrix sh set writes to stderr and can't be redirected directly,
31827# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
31828{
31829 (set) 2>&1 |
31830 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31831 *ac_space=\ *)
31832 # `set' does not quote correctly, so add quotes (double-quote
31833 # substitution turns \\\\ into \\, and sed turns \\ into \).
31834 sed -n \
243f8ae5
VS
31835 "s/'/'\\\\''/g;
31836 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
31837 ;;
31838 *)
31839 # `set' quotes correctly as required by POSIX, so do not add quotes.
31840 sed -n \
243f8ae5 31841 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
31842 ;;
31843 esac;
31844} |
31845 sed '
31846 t clear
31847 : clear
31848 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31849 t end
31850 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31851 : end' >>confcache
31852if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 31853 if test -w $cache_file; then
e6cc62c6
VS
31854 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31855 cat confcache >$cache_file
f6bcfd97 31856 else
4f14bcd8 31857 echo "not updating unwritable cache $cache_file"
f6bcfd97 31858 fi
4f14bcd8
GD
31859fi
31860rm -f confcache
f6bcfd97 31861
8284b0c5 31862
009fead0 31863CPP_MT_FLAG=
73d617c9 31864if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 31865
e6cc62c6 31866
7274f1c7 31867 THREADS_LINK=
009fead0 31868 THREADS_CFLAGS=
7274f1c7
RL
31869
31870 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 31871 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
31872 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31873echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
31874 wxUSE_THREADS="no"
31875 fi
4f14bcd8 31876 fi
4f14bcd8 31877
7274f1c7 31878 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31879
31880
009fead0
VZ
31881 THREAD_OPTS="-pthread"
31882 case "${host}" in
31883 *-*-solaris2* | *-*-sunos4* )
31884 if test "x$GCC" = "xyes"; then
126be6b4 31885 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
31886 else
31887 THREAD_OPTS="-mt $THREAD_OPTS"
31888 fi
31889 ;;
31890 *-*-freebsd*)
31891 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31892 ;;
17234b26
MB
31893 *-*-darwin* | *-*-cygwin* )
31894 THREAD_OPTS=""
4101db81 31895 ;;
8f4a9a10 31896 *-*-aix*)
009fead0
VZ
31897 THREAD_OPTS="pthreads"
31898 ;;
4f5a7f74
VZ
31899 *-hp-hpux* )
31900 if test "x$GCC" != "xyes"; then
31901 THREAD_OPTS=""
31902 fi
89e3b3e4
VZ
31903 ;;
31904
31905 *-*-irix* )
31906 if test "x$GCC" = "xyes"; then
31907 THREAD_OPTS=""
31908 fi
31909 ;;
31910
31911 *-*-*UnixWare*)
31912 if test "x$GCC" != "xyes"; then
31913 THREAD_OPTS="-Ethread"
31914 fi
31915 ;;
009fead0 31916 esac
4f14bcd8 31917
02a1dfba 31918 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 31919
009fead0
VZ
31920 THREADS_OK=no
31921 for flag in $THREAD_OPTS; do
31922 case $flag in
31923 none)
e6cc62c6
VS
31924 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31925echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 31926 ;;
698dcdb6 31927
009fead0 31928 -*)
e6cc62c6
VS
31929 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31930echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
31931 THREADS_CFLAGS="$flag"
31932 ;;
698dcdb6 31933
009fead0 31934 *)
e6cc62c6
VS
31935 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31936echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
31937 THREADS_LINK="-l$flag"
31938 ;;
31939 esac
10f2d63a 31940
009fead0
VZ
31941 save_LIBS="$LIBS"
31942 save_CFLAGS="$CFLAGS"
31943 LIBS="$THREADS_LINK $LIBS"
04727afd 31944 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 31945
e6cc62c6 31946 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31947/* confdefs.h. */
31948_ACEOF
31949cat confdefs.h >>conftest.$ac_ext
31950cat >>conftest.$ac_ext <<_ACEOF
31951/* end confdefs.h. */
009fead0 31952#include <pthread.h>
e6cc62c6
VS
31953int
31954main ()
31955{
009fead0 31956pthread_create(0,0,0,0);
e6cc62c6
VS
31957 ;
31958 return 0;
31959}
31960_ACEOF
31961rm -f conftest.$ac_objext conftest$ac_exeext
31962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 31963 (eval $ac_link) 2>conftest.er1
e6cc62c6 31964 ac_status=$?
243f8ae5
VS
31965 grep -v '^ *+' conftest.er1 >conftest.err
31966 rm -f conftest.er1
31967 cat conftest.err >&5
e6cc62c6
VS
31968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969 (exit $ac_status); } &&
243f8ae5
VS
31970 { ac_try='test -z "$ac_c_werror_flag"
31971 || test ! -s conftest.err'
31972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31973 (eval $ac_try) 2>&5
31974 ac_status=$?
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); }; } &&
31977 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31979 (eval $ac_try) 2>&5
31980 ac_status=$?
31981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31982 (exit $ac_status); }; }; then
009fead0 31983 THREADS_OK=yes
10f2d63a 31984else
e6cc62c6
VS
31985 echo "$as_me: failed program was:" >&5
31986sed 's/^/| /' conftest.$ac_ext >&5
31987
6232543b 31988fi
243f8ae5
VS
31989rm -f conftest.err conftest.$ac_objext \
31990 conftest$ac_exeext conftest.$ac_ext
698dcdb6 31991
009fead0
VZ
31992 LIBS="$save_LIBS"
31993 CFLAGS="$save_CFLAGS"
d9b9876f 31994
e6cc62c6
VS
31995 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31996echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
31997 if test "x$THREADS_OK" = "xyes"; then
31998 break;
31999 fi
d9b9876f 32000
009fead0
VZ
32001 THREADS_LINK=""
32002 THREADS_CFLAGS=""
32003 done
4f14bcd8 32004
009fead0
VZ
32005 if test "x$THREADS_OK" != "xyes"; then
32006 wxUSE_THREADS=no
e6cc62c6
VS
32007 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
32008echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 32009 else
db82f09e
VZ
32010 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
32011 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 32012
e6cc62c6
VS
32013 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
32014echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
32015 flag=no
32016 case "${host}" in
2b5f62a0
VZ
32017 *-aix*)
32018 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
32019 flag="-D_THREAD_SAFE"
32020 ;;
32021 *-freebsd*)
009fead0
VZ
32022 flag="-D_THREAD_SAFE"
32023 ;;
06313569
GD
32024 *-hp-hpux* )
32025 flag="-D_REENTRANT"
4f5a7f74
VZ
32026 if test "x$GCC" != "xyes"; then
32027 flag="$flag -D_RWSTD_MULTI_THREAD"
32028 fi
06313569 32029 ;;
009fead0
VZ
32030 *solaris* | alpha*-osf*)
32031 flag="-D_REENTRANT"
32032 ;;
32033 esac
e6cc62c6
VS
32034 echo "$as_me:$LINENO: result: ${flag}" >&5
32035echo "${ECHO_T}${flag}" >&6
009fead0 32036 if test "x$flag" != xno; then
04727afd 32037 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
32038 fi
32039
009fead0 32040 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 32041 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
32042 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
32043 fi
32044 fi
4f14bcd8 32045 fi
4f14bcd8 32046
7274f1c7 32047 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
32048
32049for ac_func in thr_setconcurrency
4f14bcd8 32050do
e6cc62c6
VS
32051as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32052echo "$as_me:$LINENO: checking for $ac_func" >&5
32053echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32054if eval "test \"\${$as_ac_var+set}\" = set"; then
32055 echo $ECHO_N "(cached) $ECHO_C" >&6
32056else
32057 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32058/* confdefs.h. */
32059_ACEOF
32060cat confdefs.h >>conftest.$ac_ext
32061cat >>conftest.$ac_ext <<_ACEOF
32062/* end confdefs.h. */
243f8ae5
VS
32063/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32064 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32065#define $ac_func innocuous_$ac_func
32066
4f14bcd8 32067/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32068 which can conflict with char $ac_func (); below.
32069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32070 <limits.h> exists even on freestanding compilers. */
243f8ae5 32071
e6cc62c6
VS
32072#ifdef __STDC__
32073# include <limits.h>
32074#else
32075# include <assert.h>
32076#endif
243f8ae5
VS
32077
32078#undef $ac_func
32079
4f14bcd8 32080/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32081#ifdef __cplusplus
32082extern "C"
32083{
32084#endif
4f14bcd8 32085/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32086 builtin and then its argument prototype would still apply. */
32087char $ac_func ();
4f14bcd8
GD
32088/* The GNU C library defines this for functions which it implements
32089 to always fail with ENOSYS. Some functions are actually named
32090 something starting with __ and the normal name is an alias. */
32091#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32092choke me
32093#else
e6cc62c6
VS
32094char (*f) () = $ac_func;
32095#endif
32096#ifdef __cplusplus
32097}
4f14bcd8
GD
32098#endif
32099
e6cc62c6
VS
32100int
32101main ()
32102{
32103return f != $ac_func;
32104 ;
32105 return 0;
32106}
32107_ACEOF
32108rm -f conftest.$ac_objext conftest$ac_exeext
32109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 32110 (eval $ac_link) 2>conftest.er1
e6cc62c6 32111 ac_status=$?
243f8ae5
VS
32112 grep -v '^ *+' conftest.er1 >conftest.err
32113 rm -f conftest.er1
32114 cat conftest.err >&5
e6cc62c6
VS
32115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32116 (exit $ac_status); } &&
243f8ae5
VS
32117 { ac_try='test -z "$ac_c_werror_flag"
32118 || test ! -s conftest.err'
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); }; } &&
32124 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32126 (eval $ac_try) 2>&5
32127 ac_status=$?
32128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129 (exit $ac_status); }; }; then
32130 eval "$as_ac_var=yes"
32131else
32132 echo "$as_me: failed program was:" >&5
32133sed 's/^/| /' conftest.$ac_ext >&5
32134
32135eval "$as_ac_var=no"
32136fi
243f8ae5
VS
32137rm -f conftest.err conftest.$ac_objext \
32138 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32139fi
32140echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32141echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32142if test `eval echo '${'$as_ac_var'}'` = yes; then
32143 cat >>confdefs.h <<_ACEOF
32144#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32145_ACEOF
698dcdb6 32146
10f2d63a 32147fi
4f14bcd8 32148done
10f2d63a 32149
8284b0c5 32150
e6cc62c6
VS
32151
32152for ac_header in sched.h
4f14bcd8 32153do
e6cc62c6
VS
32154as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32155if eval "test \"\${$as_ac_Header+set}\" = set"; then
32156 echo "$as_me:$LINENO: checking for $ac_header" >&5
32157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32158if eval "test \"\${$as_ac_Header+set}\" = set"; then
32159 echo $ECHO_N "(cached) $ECHO_C" >&6
32160fi
32161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32163else
32164 # Is the header compilable?
32165echo "$as_me:$LINENO: checking $ac_header usability" >&5
32166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
32167cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32168/* confdefs.h. */
32169_ACEOF
32170cat confdefs.h >>conftest.$ac_ext
32171cat >>conftest.$ac_ext <<_ACEOF
32172/* end confdefs.h. */
32173$ac_includes_default
32174#include <$ac_header>
32175_ACEOF
32176rm -f conftest.$ac_objext
32177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 32178 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32179 ac_status=$?
243f8ae5
VS
32180 grep -v '^ *+' conftest.er1 >conftest.err
32181 rm -f conftest.er1
32182 cat conftest.err >&5
e6cc62c6
VS
32183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32184 (exit $ac_status); } &&
243f8ae5
VS
32185 { ac_try='test -z "$ac_c_werror_flag"
32186 || test ! -s conftest.err'
32187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32188 (eval $ac_try) 2>&5
32189 ac_status=$?
32190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32191 (exit $ac_status); }; } &&
32192 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32194 (eval $ac_try) 2>&5
32195 ac_status=$?
32196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32197 (exit $ac_status); }; }; then
32198 ac_header_compiler=yes
32199else
32200 echo "$as_me: failed program was:" >&5
32201sed 's/^/| /' conftest.$ac_ext >&5
32202
32203ac_header_compiler=no
32204fi
243f8ae5 32205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
32206echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32207echo "${ECHO_T}$ac_header_compiler" >&6
32208
32209# Is the header present?
32210echo "$as_me:$LINENO: checking $ac_header presence" >&5
32211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
32212cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32213/* confdefs.h. */
32214_ACEOF
32215cat confdefs.h >>conftest.$ac_ext
32216cat >>conftest.$ac_ext <<_ACEOF
32217/* end confdefs.h. */
32218#include <$ac_header>
32219_ACEOF
32220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32222 ac_status=$?
32223 grep -v '^ *+' conftest.er1 >conftest.err
32224 rm -f conftest.er1
32225 cat conftest.err >&5
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); } >/dev/null; then
32228 if test -s conftest.err; then
32229 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 32230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
32231 else
32232 ac_cpp_err=
32233 fi
32234else
32235 ac_cpp_err=yes
32236fi
32237if test -z "$ac_cpp_err"; then
32238 ac_header_preproc=yes
32239else
32240 echo "$as_me: failed program was:" >&5
32241sed 's/^/| /' conftest.$ac_ext >&5
32242
32243 ac_header_preproc=no
32244fi
32245rm -f conftest.err conftest.$ac_ext
32246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32247echo "${ECHO_T}$ac_header_preproc" >&6
32248
32249# So? What about this header?
243f8ae5
VS
32250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32251 yes:no: )
e6cc62c6
VS
32252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
32254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32256 ac_header_preproc=yes
e6cc62c6 32257 ;;
243f8ae5 32258 no:yes:* )
e6cc62c6
VS
32259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
32261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
32262echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
32263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
32266echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
32267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
32269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
32271 (
32272 cat <<\_ASBOX
243f8ae5
VS
32273## ----------------------------------------- ##
32274## Report this to wx-dev@lists.wxwindows.org ##
32275## ----------------------------------------- ##
e6cc62c6
VS
32276_ASBOX
32277 ) |
32278 sed "s/^/$as_me: WARNING: /" >&2
32279 ;;
32280esac
32281echo "$as_me:$LINENO: checking for $ac_header" >&5
32282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
32283if eval "test \"\${$as_ac_Header+set}\" = set"; then
32284 echo $ECHO_N "(cached) $ECHO_C" >&6
32285else
243f8ae5 32286 eval "$as_ac_Header=\$ac_header_preproc"
13111b2a 32287fi
e6cc62c6
VS
32288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
32289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
32290
10f2d63a 32291fi
e6cc62c6
VS
32292if test `eval echo '${'$as_ac_Header'}'` = yes; then
32293 cat >>confdefs.h <<_ACEOF
32294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32295_ACEOF
32296
f6bcfd97 32297fi
e6cc62c6 32298
4f14bcd8 32299done
f6bcfd97 32300
009fead0 32301 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
32302 echo "$as_me:$LINENO: checking for sched_yield" >&5
32303echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
32304if test "${ac_cv_func_sched_yield+set}" = set; then
32305 echo $ECHO_N "(cached) $ECHO_C" >&6
32306else
32307 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32308/* confdefs.h. */
32309_ACEOF
32310cat confdefs.h >>conftest.$ac_ext
32311cat >>conftest.$ac_ext <<_ACEOF
32312/* end confdefs.h. */
243f8ae5
VS
32313/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
32314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32315#define sched_yield innocuous_sched_yield
32316
009fead0 32317/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32318 which can conflict with char sched_yield (); below.
32319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32320 <limits.h> exists even on freestanding compilers. */
243f8ae5 32321
e6cc62c6
VS
32322#ifdef __STDC__
32323# include <limits.h>
32324#else
32325# include <assert.h>
32326#endif
243f8ae5
VS
32327
32328#undef sched_yield
32329
4f14bcd8 32330/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32331#ifdef __cplusplus
32332extern "C"
32333{
32334#endif
4f14bcd8 32335/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32336 builtin and then its argument prototype would still apply. */
32337char sched_yield ();
009fead0
VZ
32338/* The GNU C library defines this for functions which it implements
32339 to always fail with ENOSYS. Some functions are actually named
32340 something starting with __ and the normal name is an alias. */
32341#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
32342choke me
32343#else
e6cc62c6
VS
32344char (*f) () = sched_yield;
32345#endif
32346#ifdef __cplusplus
32347}
009fead0
VZ
32348#endif
32349
e6cc62c6
VS
32350int
32351main ()
32352{
32353return f != sched_yield;
32354 ;
32355 return 0;
32356}
32357_ACEOF
32358rm -f conftest.$ac_objext conftest$ac_exeext
32359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 32360 (eval $ac_link) 2>conftest.er1
e6cc62c6 32361 ac_status=$?
243f8ae5
VS
32362 grep -v '^ *+' conftest.er1 >conftest.err
32363 rm -f conftest.er1
32364 cat conftest.err >&5
e6cc62c6
VS
32365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32366 (exit $ac_status); } &&
243f8ae5
VS
32367 { ac_try='test -z "$ac_c_werror_flag"
32368 || test ! -s conftest.err'
32369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32370 (eval $ac_try) 2>&5
32371 ac_status=$?
32372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32373 (exit $ac_status); }; } &&
32374 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32376 (eval $ac_try) 2>&5
32377 ac_status=$?
32378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32379 (exit $ac_status); }; }; then
32380 ac_cv_func_sched_yield=yes
32381else
32382 echo "$as_me: failed program was:" >&5
32383sed 's/^/| /' conftest.$ac_ext >&5
32384
32385ac_cv_func_sched_yield=no
32386fi
243f8ae5
VS
32387rm -f conftest.err conftest.$ac_objext \
32388 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32389fi
32390echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
32391echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
32392if test $ac_cv_func_sched_yield = yes; then
32393 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32394#define HAVE_SCHED_YIELD 1
e6cc62c6 32395_ACEOF
10f2d63a 32396
4f14bcd8 32397else
009fead0 32398
e6cc62c6
VS
32399 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
32400echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
32401if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
32402 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 32403else
e6cc62c6 32404 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32405LIBS="-lposix4 $LIBS"
e6cc62c6 32406cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32407/* confdefs.h. */
32408_ACEOF
32409cat confdefs.h >>conftest.$ac_ext
32410cat >>conftest.$ac_ext <<_ACEOF
32411/* end confdefs.h. */
32412
4f14bcd8 32413/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32414#ifdef __cplusplus
32415extern "C"
32416#endif
4f14bcd8 32417/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32418 builtin and then its argument prototype would still apply. */
32419char sched_yield ();
32420int
32421main ()
32422{
32423sched_yield ();
32424 ;
32425 return 0;
32426}
32427_ACEOF
32428rm -f conftest.$ac_objext conftest$ac_exeext
32429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 32430 (eval $ac_link) 2>conftest.er1
e6cc62c6 32431 ac_status=$?
243f8ae5
VS
32432 grep -v '^ *+' conftest.er1 >conftest.err
32433 rm -f conftest.er1
32434 cat conftest.err >&5
e6cc62c6
VS
32435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32436 (exit $ac_status); } &&
243f8ae5
VS
32437 { ac_try='test -z "$ac_c_werror_flag"
32438 || test ! -s conftest.err'
32439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32440 (eval $ac_try) 2>&5
32441 ac_status=$?
32442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443 (exit $ac_status); }; } &&
32444 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32446 (eval $ac_try) 2>&5
32447 ac_status=$?
32448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32449 (exit $ac_status); }; }; then
32450 ac_cv_lib_posix4_sched_yield=yes
32451else
32452 echo "$as_me: failed program was:" >&5
32453sed 's/^/| /' conftest.$ac_ext >&5
32454
32455ac_cv_lib_posix4_sched_yield=no
32456fi
243f8ae5
VS
32457rm -f conftest.err conftest.$ac_objext \
32458 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32459LIBS=$ac_check_lib_save_LIBS
32460fi
32461echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
32462echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
32463if test $ac_cv_lib_posix4_sched_yield = yes; then
32464 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32465#define HAVE_SCHED_YIELD 1
e6cc62c6 32466_ACEOF
3d63bc3a 32467 POSIX4_LINK=" -lposix4"
4f14bcd8 32468else
e6cc62c6
VS
32469 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
32470echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
32471
54276ccf
VZ
32472fi
32473
e6cc62c6
VS
32474
32475
4f14bcd8 32476fi
698dcdb6 32477
009fead0 32478 fi
10f2d63a 32479
7274f1c7 32480 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
32481 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
32482echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
32483if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
32484 echo $ECHO_N "(cached) $ECHO_C" >&6
32485else
32486 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32487/* confdefs.h. */
32488_ACEOF
32489cat confdefs.h >>conftest.$ac_ext
32490cat >>conftest.$ac_ext <<_ACEOF
32491/* end confdefs.h. */
243f8ae5
VS
32492/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
32493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32494#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
32495
009fead0 32496/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32497 which can conflict with char pthread_attr_getschedpolicy (); below.
32498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32499 <limits.h> exists even on freestanding compilers. */
243f8ae5 32500
e6cc62c6
VS
32501#ifdef __STDC__
32502# include <limits.h>
32503#else
32504# include <assert.h>
32505#endif
243f8ae5
VS
32506
32507#undef pthread_attr_getschedpolicy
32508
4f14bcd8 32509/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32510#ifdef __cplusplus
32511extern "C"
32512{
32513#endif
4f14bcd8 32514/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32515 builtin and then its argument prototype would still apply. */
32516char pthread_attr_getschedpolicy ();
009fead0
VZ
32517/* The GNU C library defines this for functions which it implements
32518 to always fail with ENOSYS. Some functions are actually named
32519 something starting with __ and the normal name is an alias. */
32520#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32521choke me
32522#else
e6cc62c6
VS
32523char (*f) () = pthread_attr_getschedpolicy;
32524#endif
32525#ifdef __cplusplus
32526}
009fead0
VZ
32527#endif
32528
e6cc62c6
VS
32529int
32530main ()
32531{
32532return f != pthread_attr_getschedpolicy;
32533 ;
32534 return 0;
32535}
32536_ACEOF
32537rm -f conftest.$ac_objext conftest$ac_exeext
32538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 32539 (eval $ac_link) 2>conftest.er1
e6cc62c6 32540 ac_status=$?
243f8ae5
VS
32541 grep -v '^ *+' conftest.er1 >conftest.err
32542 rm -f conftest.er1
32543 cat conftest.err >&5
e6cc62c6
VS
32544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545 (exit $ac_status); } &&
243f8ae5
VS
32546 { ac_try='test -z "$ac_c_werror_flag"
32547 || test ! -s conftest.err'
32548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32549 (eval $ac_try) 2>&5
32550 ac_status=$?
32551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32552 (exit $ac_status); }; } &&
32553 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32555 (eval $ac_try) 2>&5
32556 ac_status=$?
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; }; then
32559 ac_cv_func_pthread_attr_getschedpolicy=yes
32560else
32561 echo "$as_me: failed program was:" >&5
32562sed 's/^/| /' conftest.$ac_ext >&5
32563
32564ac_cv_func_pthread_attr_getschedpolicy=no
32565fi
243f8ae5
VS
32566rm -f conftest.err conftest.$ac_objext \
32567 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32568fi
32569echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32570echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32571if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32572 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32573echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32574if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32575 echo $ECHO_N "(cached) $ECHO_C" >&6
32576else
32577 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32578/* confdefs.h. */
32579_ACEOF
32580cat confdefs.h >>conftest.$ac_ext
32581cat >>conftest.$ac_ext <<_ACEOF
32582/* end confdefs.h. */
243f8ae5
VS
32583/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32585#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32586
a0b9e27f 32587/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32588 which can conflict with char pthread_attr_setschedparam (); below.
32589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32590 <limits.h> exists even on freestanding compilers. */
243f8ae5 32591
e6cc62c6
VS
32592#ifdef __STDC__
32593# include <limits.h>
32594#else
32595# include <assert.h>
32596#endif
243f8ae5
VS
32597
32598#undef pthread_attr_setschedparam
32599
422107f9 32600/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32601#ifdef __cplusplus
32602extern "C"
32603{
32604#endif
422107f9 32605/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32606 builtin and then its argument prototype would still apply. */
32607char pthread_attr_setschedparam ();
009fead0
VZ
32608/* The GNU C library defines this for functions which it implements
32609 to always fail with ENOSYS. Some functions are actually named
32610 something starting with __ and the normal name is an alias. */
32611#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32612choke me
32613#else
e6cc62c6
VS
32614char (*f) () = pthread_attr_setschedparam;
32615#endif
32616#ifdef __cplusplus
32617}
009fead0
VZ
32618#endif
32619
e6cc62c6
VS
32620int
32621main ()
32622{
32623return f != pthread_attr_setschedparam;
32624 ;
32625 return 0;
32626}
32627_ACEOF
32628rm -f conftest.$ac_objext conftest$ac_exeext
32629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 32630 (eval $ac_link) 2>conftest.er1
e6cc62c6 32631 ac_status=$?
243f8ae5
VS
32632 grep -v '^ *+' conftest.er1 >conftest.err
32633 rm -f conftest.er1
32634 cat conftest.err >&5
e6cc62c6
VS
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); } &&
243f8ae5
VS
32637 { ac_try='test -z "$ac_c_werror_flag"
32638 || test ! -s conftest.err'
32639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32640 (eval $ac_try) 2>&5
32641 ac_status=$?
32642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643 (exit $ac_status); }; } &&
32644 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32646 (eval $ac_try) 2>&5
32647 ac_status=$?
32648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); }; }; then
32650 ac_cv_func_pthread_attr_setschedparam=yes
32651else
32652 echo "$as_me: failed program was:" >&5
32653sed 's/^/| /' conftest.$ac_ext >&5
32654
32655ac_cv_func_pthread_attr_setschedparam=no
32656fi
243f8ae5
VS
32657rm -f conftest.err conftest.$ac_objext \
32658 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32659fi
32660echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32661echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32662if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32663 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32664echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32665if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32666 echo $ECHO_N "(cached) $ECHO_C" >&6
32667else
32668 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32669/* confdefs.h. */
32670_ACEOF
32671cat confdefs.h >>conftest.$ac_ext
32672cat >>conftest.$ac_ext <<_ACEOF
32673/* end confdefs.h. */
243f8ae5
VS
32674/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32676#define sched_get_priority_max innocuous_sched_get_priority_max
32677
ef33c576 32678/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32679 which can conflict with char sched_get_priority_max (); below.
32680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32681 <limits.h> exists even on freestanding compilers. */
243f8ae5 32682
e6cc62c6
VS
32683#ifdef __STDC__
32684# include <limits.h>
32685#else
32686# include <assert.h>
32687#endif
243f8ae5
VS
32688
32689#undef sched_get_priority_max
32690
4f14bcd8 32691/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32692#ifdef __cplusplus
32693extern "C"
32694{
32695#endif
4f14bcd8 32696/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32697 builtin and then its argument prototype would still apply. */
32698char sched_get_priority_max ();
009fead0
VZ
32699/* The GNU C library defines this for functions which it implements
32700 to always fail with ENOSYS. Some functions are actually named
32701 something starting with __ and the normal name is an alias. */
32702#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32703choke me
32704#else
e6cc62c6
VS
32705char (*f) () = sched_get_priority_max;
32706#endif
32707#ifdef __cplusplus
32708}
009fead0
VZ
32709#endif
32710
e6cc62c6
VS
32711int
32712main ()
32713{
32714return f != sched_get_priority_max;
32715 ;
32716 return 0;
32717}
32718_ACEOF
32719rm -f conftest.$ac_objext conftest$ac_exeext
32720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 32721 (eval $ac_link) 2>conftest.er1
e6cc62c6 32722 ac_status=$?
243f8ae5
VS
32723 grep -v '^ *+' conftest.er1 >conftest.err
32724 rm -f conftest.er1
32725 cat conftest.err >&5
e6cc62c6
VS
32726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32727 (exit $ac_status); } &&
243f8ae5
VS
32728 { ac_try='test -z "$ac_c_werror_flag"
32729 || test ! -s conftest.err'
32730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32731 (eval $ac_try) 2>&5
32732 ac_status=$?
32733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32734 (exit $ac_status); }; } &&
32735 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32737 (eval $ac_try) 2>&5
32738 ac_status=$?
32739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740 (exit $ac_status); }; }; then
32741 ac_cv_func_sched_get_priority_max=yes
32742else
32743 echo "$as_me: failed program was:" >&5
32744sed 's/^/| /' conftest.$ac_ext >&5
32745
32746ac_cv_func_sched_get_priority_max=no
32747fi
243f8ae5
VS
32748rm -f conftest.err conftest.$ac_objext \
32749 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32750fi
32751echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32752echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32753if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
32754 HAVE_PRIOR_FUNCS=1
32755else
e6cc62c6
VS
32756 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32757echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32758if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32759 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 32760else
e6cc62c6 32761 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32762LIBS="-lposix4 $LIBS"
e6cc62c6 32763cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32764/* confdefs.h. */
32765_ACEOF
32766cat confdefs.h >>conftest.$ac_ext
32767cat >>conftest.$ac_ext <<_ACEOF
32768/* end confdefs.h. */
32769
422107f9 32770/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32771#ifdef __cplusplus
32772extern "C"
32773#endif
422107f9 32774/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32775 builtin and then its argument prototype would still apply. */
32776char sched_get_priority_max ();
32777int
32778main ()
32779{
32780sched_get_priority_max ();
32781 ;
32782 return 0;
32783}
32784_ACEOF
32785rm -f conftest.$ac_objext conftest$ac_exeext
32786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 32787 (eval $ac_link) 2>conftest.er1
e6cc62c6 32788 ac_status=$?
243f8ae5
VS
32789 grep -v '^ *+' conftest.er1 >conftest.err
32790 rm -f conftest.er1
32791 cat conftest.err >&5
e6cc62c6
VS
32792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32793 (exit $ac_status); } &&
243f8ae5
VS
32794 { ac_try='test -z "$ac_c_werror_flag"
32795 || test ! -s conftest.err'
32796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32797 (eval $ac_try) 2>&5
32798 ac_status=$?
32799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32800 (exit $ac_status); }; } &&
32801 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32803 (eval $ac_try) 2>&5
32804 ac_status=$?
32805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32806 (exit $ac_status); }; }; then
32807 ac_cv_lib_posix4_sched_get_priority_max=yes
32808else
32809 echo "$as_me: failed program was:" >&5
32810sed 's/^/| /' conftest.$ac_ext >&5
32811
32812ac_cv_lib_posix4_sched_get_priority_max=no
32813fi
243f8ae5
VS
32814rm -f conftest.err conftest.$ac_objext \
32815 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32816LIBS=$ac_check_lib_save_LIBS
32817fi
32818echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32819echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32820if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 32821
7274f1c7
RL
32822 HAVE_PRIOR_FUNCS=1
32823 POSIX4_LINK=" -lposix4"
e6cc62c6 32824
4f14bcd8 32825fi
463abc64 32826
e6cc62c6 32827
328a083c 32828fi
463abc64 32829
e6cc62c6 32830
7b4a847f 32831fi
579d8138 32832
e6cc62c6 32833
5c6fa7d2 32834fi
52127426 32835
8284b0c5 32836
7274f1c7 32837 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 32838 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32839#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 32840_ACEOF
463abc64 32841
7274f1c7 32842 else
e6cc62c6
VS
32843 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32844echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 32845 fi
463abc64 32846
e6cc62c6
VS
32847 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32848echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32849if test "${ac_cv_func_pthread_cancel+set}" = set; then
32850 echo $ECHO_N "(cached) $ECHO_C" >&6
32851else
32852 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32853/* confdefs.h. */
32854_ACEOF
32855cat confdefs.h >>conftest.$ac_ext
32856cat >>conftest.$ac_ext <<_ACEOF
32857/* end confdefs.h. */
243f8ae5
VS
32858/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32860#define pthread_cancel innocuous_pthread_cancel
32861
009fead0 32862/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32863 which can conflict with char pthread_cancel (); below.
32864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32865 <limits.h> exists even on freestanding compilers. */
243f8ae5 32866
e6cc62c6
VS
32867#ifdef __STDC__
32868# include <limits.h>
32869#else
32870# include <assert.h>
32871#endif
243f8ae5
VS
32872
32873#undef pthread_cancel
32874
422107f9 32875/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32876#ifdef __cplusplus
32877extern "C"
32878{
32879#endif
422107f9 32880/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32881 builtin and then its argument prototype would still apply. */
32882char pthread_cancel ();
009fead0
VZ
32883/* The GNU C library defines this for functions which it implements
32884 to always fail with ENOSYS. Some functions are actually named
32885 something starting with __ and the normal name is an alias. */
32886#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32887choke me
32888#else
e6cc62c6
VS
32889char (*f) () = pthread_cancel;
32890#endif
32891#ifdef __cplusplus
32892}
009fead0
VZ
32893#endif
32894
e6cc62c6
VS
32895int
32896main ()
32897{
32898return f != pthread_cancel;
32899 ;
32900 return 0;
32901}
32902_ACEOF
32903rm -f conftest.$ac_objext conftest$ac_exeext
32904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 32905 (eval $ac_link) 2>conftest.er1
e6cc62c6 32906 ac_status=$?
243f8ae5
VS
32907 grep -v '^ *+' conftest.er1 >conftest.err
32908 rm -f conftest.er1
32909 cat conftest.err >&5
e6cc62c6
VS
32910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32911 (exit $ac_status); } &&
243f8ae5
VS
32912 { ac_try='test -z "$ac_c_werror_flag"
32913 || test ! -s conftest.err'
32914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32915 (eval $ac_try) 2>&5
32916 ac_status=$?
32917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32918 (exit $ac_status); }; } &&
32919 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32921 (eval $ac_try) 2>&5
32922 ac_status=$?
32923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924 (exit $ac_status); }; }; then
32925 ac_cv_func_pthread_cancel=yes
32926else
32927 echo "$as_me: failed program was:" >&5
32928sed 's/^/| /' conftest.$ac_ext >&5
32929
32930ac_cv_func_pthread_cancel=no
32931fi
243f8ae5
VS
32932rm -f conftest.err conftest.$ac_objext \
32933 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32934fi
32935echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32936echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32937if test $ac_cv_func_pthread_cancel = yes; then
32938 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32939#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 32940_ACEOF
4f14bcd8 32941
698dcdb6 32942else
e6cc62c6
VS
32943 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32944echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
32945fi
32946
5c6fa7d2 32947
4f14bcd8 32948
e6cc62c6
VS
32949
32950 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32951echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32952if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32953 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 32954else
e6cc62c6
VS
32955
32956 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32957/* confdefs.h. */
32958_ACEOF
32959cat confdefs.h >>conftest.$ac_ext
32960cat >>conftest.$ac_ext <<_ACEOF
32961/* end confdefs.h. */
4f14bcd8 32962#include <pthread.h>
e6cc62c6
VS
32963int
32964main ()
32965{
4f14bcd8 32966
7274f1c7
RL
32967 pthread_mutexattr_t attr;
32968 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
32969
32970 ;
32971 return 0;
32972}
32973_ACEOF
32974rm -f conftest.$ac_objext
32975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 32976 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32977 ac_status=$?
243f8ae5
VS
32978 grep -v '^ *+' conftest.er1 >conftest.err
32979 rm -f conftest.er1
32980 cat conftest.err >&5
e6cc62c6
VS
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); } &&
243f8ae5
VS
32983 { ac_try='test -z "$ac_c_werror_flag"
32984 || test ! -s conftest.err'
32985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32986 (eval $ac_try) 2>&5
32987 ac_status=$?
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); }; } &&
32990 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32992 (eval $ac_try) 2>&5
32993 ac_status=$?
32994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32995 (exit $ac_status); }; }; then
32996
7274f1c7 32997 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 32998
3fed1840 32999else
e6cc62c6
VS
33000 echo "$as_me: failed program was:" >&5
33001sed 's/^/| /' conftest.$ac_ext >&5
33002
33003
7274f1c7 33004 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
33005
33006
247f5006 33007fi
243f8ae5 33008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 33009
e6cc62c6
VS
33010fi
33011echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
33012echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 33013
7274f1c7 33014 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 33015 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33016#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 33017_ACEOF
4f14bcd8 33018
7274f1c7 33019 else
e6cc62c6
VS
33020 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
33021echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
33022if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
33023 echo $ECHO_N "(cached) $ECHO_C" >&6
33024else
33025
33026 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33027/* confdefs.h. */
33028_ACEOF
33029cat confdefs.h >>conftest.$ac_ext
33030cat >>conftest.$ac_ext <<_ACEOF
33031/* end confdefs.h. */
4f14bcd8 33032#include <pthread.h>
e6cc62c6
VS
33033int
33034main ()
33035{
4f14bcd8 33036
7274f1c7 33037 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
33038
33039 ;
33040 return 0;
33041}
33042_ACEOF
33043rm -f conftest.$ac_objext
33044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 33045 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33046 ac_status=$?
243f8ae5
VS
33047 grep -v '^ *+' conftest.er1 >conftest.err
33048 rm -f conftest.er1
33049 cat conftest.err >&5
e6cc62c6
VS
33050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051 (exit $ac_status); } &&
243f8ae5
VS
33052 { ac_try='test -z "$ac_c_werror_flag"
33053 || test ! -s conftest.err'
33054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33055 (eval $ac_try) 2>&5
33056 ac_status=$?
33057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058 (exit $ac_status); }; } &&
33059 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33061 (eval $ac_try) 2>&5
33062 ac_status=$?
33063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33064 (exit $ac_status); }; }; then
33065
7274f1c7 33066 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 33067
698dcdb6 33068else
e6cc62c6
VS
33069 echo "$as_me: failed program was:" >&5
33070sed 's/^/| /' conftest.$ac_ext >&5
33071
33072
7274f1c7 33073 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
33074
33075
247f5006 33076fi
243f8ae5 33077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 33078
e6cc62c6
VS
33079fi
33080echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
33081echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 33082 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 33083 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33084#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 33085_ACEOF
3fed1840 33086
7274f1c7 33087 else
e6cc62c6
VS
33088 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
33089echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
33090 fi
33091 fi
7274f1c7 33092 fi
3fed1840 33093
a0b9e27f
MB
33094else
33095 if test "$wxUSE_THREADS" = "yes" ; then
33096 case "${host}" in
33097 *-*-mingw32* )
e6cc62c6
VS
33098 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
33099echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
33100if test "${wx_cv_cflags_mthread+set}" = set; then
33101 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 33102else
e6cc62c6 33103
ca8e52b3
VZ
33104 CFLAGS_OLD="$CFLAGS"
33105 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 33106 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33107/* confdefs.h. */
33108_ACEOF
33109cat confdefs.h >>conftest.$ac_ext
33110cat >>conftest.$ac_ext <<_ACEOF
33111/* end confdefs.h. */
33112
33113int
33114main ()
33115{
ca8e52b3 33116
e6cc62c6
VS
33117 ;
33118 return 0;
33119}
33120_ACEOF
33121rm -f conftest.$ac_objext
33122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 33123 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33124 ac_status=$?
243f8ae5
VS
33125 grep -v '^ *+' conftest.er1 >conftest.err
33126 rm -f conftest.er1
33127 cat conftest.err >&5
e6cc62c6
VS
33128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129 (exit $ac_status); } &&
243f8ae5
VS
33130 { ac_try='test -z "$ac_c_werror_flag"
33131 || test ! -s conftest.err'
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); }; } &&
33137 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33139 (eval $ac_try) 2>&5
33140 ac_status=$?
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); }; }; then
ca8e52b3
VZ
33143 wx_cv_cflags_mthread=yes
33144else
e6cc62c6
VS
33145 echo "$as_me: failed program was:" >&5
33146sed 's/^/| /' conftest.$ac_ext >&5
33147
33148wx_cv_cflags_mthread=no
33149
ca8e52b3 33150fi
243f8ae5 33151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 33152
ca8e52b3 33153
e6cc62c6
VS
33154fi
33155echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
33156echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
33157
33158 if test "$wx_cv_cflags_mthread" = "yes"; then
33159 CXXFLAGS="$CXXFLAGS -mthreads"
33160 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
33161 LDFLAGS="$LDFLAGS -mthreads"
33162 else
33163 CFLAGS="$CFLAGS_OLD"
33164 fi
a0b9e27f 33165 ;;
73d617c9
MB
33166 *-pc-os2*emx )
33167 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
33168 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
33169 LDFLAGS="$LDFLAGS -Zmt"
33170 ;;
a0b9e27f
MB
33171 esac
33172 fi
4f14bcd8
GD
33173fi
33174
33175if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 33176 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33177#define wxUSE_THREADS 1
e6cc62c6 33178_ACEOF
7b6058cd 33179
8284b0c5 33180
4f14bcd8 33181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 33182else
4f14bcd8 33183 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
33184 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
33185echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
33186 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
33187 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
33188 echo "$as_me:$LINENO: result: yes" >&5
33189echo "${ECHO_T}yes" >&6
4f14bcd8 33190 else
e6cc62c6
VS
33191 echo "$as_me:$LINENO: result: no" >&5
33192echo "${ECHO_T}no" >&6
4f14bcd8
GD
33193 fi
33194 fi
33195fi
33196
33197if test "$WXGTK20" = 1 ; then
e6cc62c6 33198 cat >>confdefs.h <<_ACEOF
4f14bcd8 33199#define __WXGTK20__ $WXGTK20
e6cc62c6 33200_ACEOF
4f14bcd8
GD
33201
33202 WXGTK12=1
10f2d63a 33203fi
4f14bcd8
GD
33204
33205if test "$WXGTK12" = 1 ; then
e6cc62c6 33206 cat >>confdefs.h <<_ACEOF
4f14bcd8 33207#define __WXGTK12__ $WXGTK12
e6cc62c6 33208_ACEOF
4f14bcd8 33209
10f2d63a 33210fi
698dcdb6 33211
4f14bcd8 33212if test "$WXGTK127" = 1 ; then
e6cc62c6 33213 cat >>confdefs.h <<_ACEOF
4f14bcd8 33214#define __WXGTK127__ $WXGTK127
e6cc62c6 33215_ACEOF
4f14bcd8 33216
698dcdb6 33217fi
10f2d63a 33218
4f14bcd8
GD
33219WXDEBUG=
33220
33221if test "$wxUSE_DEBUG_INFO" = "yes" ; then
33222 WXDEBUG="-g"
33223 wxUSE_OPTIMISE=no
698dcdb6 33224fi
4f14bcd8
GD
33225
33226if test "$wxUSE_DEBUG_GDB" = "yes" ; then
33227 wxUSE_DEBUG_INFO=yes
33228 WXDEBUG="-ggdb"
10f2d63a
VZ
33229fi
33230
4f14bcd8 33231if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 33232 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33233#define WXDEBUG 1
e6cc62c6 33234_ACEOF
4f14bcd8
GD
33235
33236 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 33237else
4f14bcd8
GD
33238 if test "$wxUSE_GTK" = 1 ; then
33239 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
33240 fi
33241fi
33242
33243if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 33244 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33245#define wxUSE_MEMORY_TRACING 1
e6cc62c6 33246_ACEOF
4f14bcd8 33247
e6cc62c6 33248 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33249#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 33250_ACEOF
4f14bcd8 33251
e6cc62c6 33252 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33253#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 33254_ACEOF
4f14bcd8
GD
33255
33256 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
33257fi
33258
33259if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 33260 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
33261fi
33262
33263PROFILE=
33264if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 33265 PROFILE=" -pg"
10f2d63a
VZ
33266fi
33267
009fead0
VZ
33268CODE_GEN_FLAGS=
33269CODE_GEN_FLAGS_CXX=
88e30f2b 33270if test "$GCC" = "yes" ; then
4f14bcd8
GD
33271 if test "$wxUSE_NO_RTTI" = "yes" ; then
33272 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 33273 fi
4f14bcd8
GD
33274 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
33275 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
33276 fi
33277 if test "$wxUSE_PERMISSIVE" = "yes" ; then
33278 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
33279 fi
1d1b75ac 33280
2b5f62a0 33281 case "${host}" in
1d1b75ac
VZ
33282 powerpc*-*-aix* )
33283 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
33284 ;;
2b5f62a0
VZ
33285 *-hppa* )
33286 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
33287 ;;
1d1b75ac 33288 esac
4f14bcd8
GD
33289fi
33290
af7b5345 33291OPTIMISE=
4f14bcd8 33292if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
33293 if test "$GCC" = yes ; then
33294 OPTIMISE="-O0"
33295 fi
4f14bcd8
GD
33296else
33297 if test "$GCC" = yes ; then
33298 OPTIMISE="-O2"
af7b5345
VZ
33299
33300 case "${host}" in
4f14bcd8
GD
33301 i586-*-*|i686-*-* )
33302 OPTIMISE="${OPTIMISE} "
33303 ;;
33304 esac
33305 else
33306 OPTIMISE="-O"
33307 fi
33308fi
33309
8d90d2f2 33310
65d8ef1e 33311if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 33312 cat >>confdefs.h <<\_ACEOF
4f14bcd8 33313#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 33314_ACEOF
4f14bcd8 33315
8d90d2f2
VZ
33316
33317 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
33318fi
33319
65d8ef1e 33320if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 33321 cat >>confdefs.h <<\_ACEOF
65d8ef1e 33322#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 33323_ACEOF
65d8ef1e
VS
33324
33325fi
33326
8284b0c5 33327
10f2d63a 33328if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 33329 cat >>confdefs.h <<\_ACEOF
10f2d63a 33330#define wxUSE_GUI 1
e6cc62c6 33331_ACEOF
10f2d63a 33332
8284b0c5 33333
10f2d63a 33334 else
e6cc62c6 33335 cat >>confdefs.h <<\_ACEOF
10f2d63a 33336#define wxUSE_NOGUI 1
e6cc62c6 33337_ACEOF
10f2d63a
VZ
33338
33339fi
33340
8284b0c5 33341
10f2d63a 33342if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 33343 cat >>confdefs.h <<\_ACEOF
10f2d63a 33344#define wxUSE_UNIX 1
e6cc62c6 33345_ACEOF
10f2d63a
VZ
33346
33347fi
33348
8284b0c5 33349
f93ca9fd 33350if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
5c6fa7d2 33351
f93ca9fd
VS
33352 HAVE_DL_FUNCS=0
33353 HAVE_SHL_FUNCS=0
33354 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33355 if test "$USE_DARWIN" = 1; then
33356 HAVE_DL_FUNCS=1
33357 else
e6cc62c6 33358
f93ca9fd 33359for ac_func in dlopen
83307f33 33360do
e6cc62c6
VS
33361as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33362echo "$as_me:$LINENO: checking for $ac_func" >&5
33363echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33364if eval "test \"\${$as_ac_var+set}\" = set"; then
33365 echo $ECHO_N "(cached) $ECHO_C" >&6
33366else
33367 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33368/* confdefs.h. */
33369_ACEOF
33370cat confdefs.h >>conftest.$ac_ext
33371cat >>conftest.$ac_ext <<_ACEOF
33372/* end confdefs.h. */
243f8ae5
VS
33373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33375#define $ac_func innocuous_$ac_func
33376
83307f33 33377/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33378 which can conflict with char $ac_func (); below.
33379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33380 <limits.h> exists even on freestanding compilers. */
243f8ae5 33381
e6cc62c6
VS
33382#ifdef __STDC__
33383# include <limits.h>
33384#else
33385# include <assert.h>
33386#endif
243f8ae5
VS
33387
33388#undef $ac_func
33389
83307f33 33390/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33391#ifdef __cplusplus
33392extern "C"
33393{
33394#endif
83307f33 33395/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33396 builtin and then its argument prototype would still apply. */
33397char $ac_func ();
83307f33
VZ
33398/* The GNU C library defines this for functions which it implements
33399 to always fail with ENOSYS. Some functions are actually named
33400 something starting with __ and the normal name is an alias. */
33401#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33402choke me
33403#else
e6cc62c6
VS
33404char (*f) () = $ac_func;
33405#endif
33406#ifdef __cplusplus
33407}
83307f33
VZ
33408#endif
33409
e6cc62c6
VS
33410int
33411main ()
33412{
33413return f != $ac_func;
33414 ;
33415 return 0;
33416}
33417_ACEOF
33418rm -f conftest.$ac_objext conftest$ac_exeext
33419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 33420 (eval $ac_link) 2>conftest.er1
e6cc62c6 33421 ac_status=$?
243f8ae5
VS
33422 grep -v '^ *+' conftest.er1 >conftest.err
33423 rm -f conftest.er1
33424 cat conftest.err >&5
e6cc62c6
VS
33425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33426 (exit $ac_status); } &&
243f8ae5
VS
33427 { ac_try='test -z "$ac_c_werror_flag"
33428 || test ! -s conftest.err'
33429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33430 (eval $ac_try) 2>&5
33431 ac_status=$?
33432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); }; } &&
33434 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33436 (eval $ac_try) 2>&5
33437 ac_status=$?
33438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33439 (exit $ac_status); }; }; then
33440 eval "$as_ac_var=yes"
33441else
33442 echo "$as_me: failed program was:" >&5
33443sed 's/^/| /' conftest.$ac_ext >&5
33444
33445eval "$as_ac_var=no"
33446fi
243f8ae5
VS
33447rm -f conftest.err conftest.$ac_objext \
33448 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33449fi
33450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33451echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33452if test `eval echo '${'$as_ac_var'}'` = yes; then
33453 cat >>confdefs.h <<_ACEOF
33454#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33455_ACEOF
83307f33 33456
f93ca9fd
VS
33457 cat >>confdefs.h <<\_ACEOF
33458#define HAVE_DLOPEN 1
e6cc62c6 33459_ACEOF
e6cc62c6 33460
f93ca9fd 33461 HAVE_DL_FUNCS=1
e6cc62c6 33462
360d6699 33463else
e6cc62c6 33464
f93ca9fd
VS
33465 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33466echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33467if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33468 echo $ECHO_N "(cached) $ECHO_C" >&6
5357c8e8 33469else
f93ca9fd
VS
33470 ac_check_lib_save_LIBS=$LIBS
33471LIBS="-ldl $LIBS"
33472cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33473/* confdefs.h. */
33474_ACEOF
33475cat confdefs.h >>conftest.$ac_ext
33476cat >>conftest.$ac_ext <<_ACEOF
33477/* end confdefs.h. */
5357c8e8 33478
f93ca9fd
VS
33479/* Override any gcc2 internal prototype to avoid an error. */
33480#ifdef __cplusplus
33481extern "C"
33482#endif
33483/* We use char because int might match the return type of a gcc2
33484 builtin and then its argument prototype would still apply. */
33485char dlopen ();
e6cc62c6
VS
33486int
33487main ()
33488{
f93ca9fd 33489dlopen ();
e6cc62c6
VS
33490 ;
33491 return 0;
33492}
33493_ACEOF
f93ca9fd
VS
33494rm -f conftest.$ac_objext conftest$ac_exeext
33495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 33496 (eval $ac_link) 2>conftest.er1
e6cc62c6 33497 ac_status=$?
243f8ae5
VS
33498 grep -v '^ *+' conftest.er1 >conftest.err
33499 rm -f conftest.er1
33500 cat conftest.err >&5
e6cc62c6
VS
33501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33502 (exit $ac_status); } &&
243f8ae5
VS
33503 { ac_try='test -z "$ac_c_werror_flag"
33504 || test ! -s conftest.err'
33505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33506 (eval $ac_try) 2>&5
33507 ac_status=$?
33508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33509 (exit $ac_status); }; } &&
33510 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33512 (eval $ac_try) 2>&5
33513 ac_status=$?
33514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33515 (exit $ac_status); }; }; then
f93ca9fd 33516 ac_cv_lib_dl_dlopen=yes
360d6699 33517else
e6cc62c6
VS
33518 echo "$as_me: failed program was:" >&5
33519sed 's/^/| /' conftest.$ac_ext >&5
33520
f93ca9fd 33521ac_cv_lib_dl_dlopen=no
247f5006 33522fi
243f8ae5
VS
33523rm -f conftest.err conftest.$ac_objext \
33524 conftest$ac_exeext conftest.$ac_ext
f93ca9fd 33525LIBS=$ac_check_lib_save_LIBS
e6cc62c6 33526fi
f93ca9fd
VS
33527echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33528echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33529if test $ac_cv_lib_dl_dlopen = yes; then
698dcdb6 33530
f93ca9fd
VS
33531 cat >>confdefs.h <<\_ACEOF
33532#define HAVE_DLOPEN 1
e6cc62c6 33533_ACEOF
360d6699 33534
f93ca9fd
VS
33535 HAVE_DL_FUNCS=1
33536 DL_LINK=" -ldl$DL_LINK"
698dcdb6 33537
f93ca9fd 33538else
e6cc62c6 33539
f93ca9fd
VS
33540
33541for ac_func in shl_load
afc31813 33542do
e6cc62c6
VS
33543as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33544echo "$as_me:$LINENO: checking for $ac_func" >&5
33545echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33546if eval "test \"\${$as_ac_var+set}\" = set"; then
33547 echo $ECHO_N "(cached) $ECHO_C" >&6
33548else
33549 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33550/* confdefs.h. */
33551_ACEOF
33552cat confdefs.h >>conftest.$ac_ext
33553cat >>conftest.$ac_ext <<_ACEOF
33554/* end confdefs.h. */
243f8ae5
VS
33555/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33557#define $ac_func innocuous_$ac_func
33558
afc31813 33559/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33560 which can conflict with char $ac_func (); below.
33561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33562 <limits.h> exists even on freestanding compilers. */
243f8ae5 33563
e6cc62c6
VS
33564#ifdef __STDC__
33565# include <limits.h>
33566#else
33567# include <assert.h>
33568#endif
243f8ae5
VS
33569
33570#undef $ac_func
33571
afc31813 33572/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33573#ifdef __cplusplus
33574extern "C"
33575{
33576#endif
afc31813 33577/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33578 builtin and then its argument prototype would still apply. */
33579char $ac_func ();
afc31813
VZ
33580/* The GNU C library defines this for functions which it implements
33581 to always fail with ENOSYS. Some functions are actually named
33582 something starting with __ and the normal name is an alias. */
33583#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33584choke me
33585#else
e6cc62c6
VS
33586char (*f) () = $ac_func;
33587#endif
33588#ifdef __cplusplus
33589}
afc31813
VZ
33590#endif
33591
e6cc62c6
VS
33592int
33593main ()
33594{
33595return f != $ac_func;
33596 ;
33597 return 0;
33598}
33599_ACEOF
33600rm -f conftest.$ac_objext conftest$ac_exeext
33601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 33602 (eval $ac_link) 2>conftest.er1
e6cc62c6 33603 ac_status=$?
243f8ae5
VS
33604 grep -v '^ *+' conftest.er1 >conftest.err
33605 rm -f conftest.er1
33606 cat conftest.err >&5
e6cc62c6
VS
33607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33608 (exit $ac_status); } &&
243f8ae5
VS
33609 { ac_try='test -z "$ac_c_werror_flag"
33610 || test ! -s conftest.err'
33611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33612 (eval $ac_try) 2>&5
33613 ac_status=$?
33614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33615 (exit $ac_status); }; } &&
33616 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33618 (eval $ac_try) 2>&5
33619 ac_status=$?
33620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621 (exit $ac_status); }; }; then
33622 eval "$as_ac_var=yes"
33623else
33624 echo "$as_me: failed program was:" >&5
33625sed 's/^/| /' conftest.$ac_ext >&5
33626
33627eval "$as_ac_var=no"
33628fi
243f8ae5
VS
33629rm -f conftest.err conftest.$ac_objext \
33630 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33631fi
33632echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33633echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33634if test `eval echo '${'$as_ac_var'}'` = yes; then
33635 cat >>confdefs.h <<_ACEOF
33636#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33637_ACEOF
afc31813 33638
f93ca9fd
VS
33639 cat >>confdefs.h <<\_ACEOF
33640#define HAVE_SHL_LOAD 1
33641_ACEOF
afc31813 33642
f93ca9fd 33643 HAVE_SHL_FUNCS=1
5c6fa7d2 33644
a0b9e27f 33645else
e6cc62c6 33646
f93ca9fd
VS
33647 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33648echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33649if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33650 echo $ECHO_N "(cached) $ECHO_C" >&6
33651else
33652 ac_check_lib_save_LIBS=$LIBS
33653LIBS="-lshl_load $LIBS"
33654cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33655/* confdefs.h. */
33656_ACEOF
33657cat confdefs.h >>conftest.$ac_ext
33658cat >>conftest.$ac_ext <<_ACEOF
33659/* end confdefs.h. */
0470b1e6 33660
f93ca9fd
VS
33661/* Override any gcc2 internal prototype to avoid an error. */
33662#ifdef __cplusplus
33663extern "C"
33664#endif
33665/* We use char because int might match the return type of a gcc2
33666 builtin and then its argument prototype would still apply. */
33667char dld ();
e6cc62c6
VS
33668int
33669main ()
33670{
f93ca9fd 33671dld ();
e6cc62c6
VS
33672 ;
33673 return 0;
33674}
33675_ACEOF
f93ca9fd
VS
33676rm -f conftest.$ac_objext conftest$ac_exeext
33677if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 33678 (eval $ac_link) 2>conftest.er1
e6cc62c6 33679 ac_status=$?
243f8ae5
VS
33680 grep -v '^ *+' conftest.er1 >conftest.err
33681 rm -f conftest.er1
33682 cat conftest.err >&5
e6cc62c6
VS
33683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33684 (exit $ac_status); } &&
243f8ae5
VS
33685 { ac_try='test -z "$ac_c_werror_flag"
33686 || test ! -s conftest.err'
33687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33688 (eval $ac_try) 2>&5
33689 ac_status=$?
33690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691 (exit $ac_status); }; } &&
33692 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33694 (eval $ac_try) 2>&5
33695 ac_status=$?
33696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697 (exit $ac_status); }; }; then
f93ca9fd 33698 ac_cv_lib_shl_load_dld=yes
0470b1e6 33699else
e6cc62c6
VS
33700 echo "$as_me: failed program was:" >&5
33701sed 's/^/| /' conftest.$ac_ext >&5
33702
f93ca9fd
VS
33703ac_cv_lib_shl_load_dld=no
33704fi
243f8ae5
VS
33705rm -f conftest.err conftest.$ac_objext \
33706 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
33707LIBS=$ac_check_lib_save_LIBS
33708fi
33709echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33710echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33711if test $ac_cv_lib_shl_load_dld = yes; then
33712
33713 HAVE_SHL_FUNCS=1
33714 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 33715
247f5006 33716fi
f93ca9fd 33717
a0b9e27f 33718
e6cc62c6 33719fi
f93ca9fd 33720done
6232543b 33721
0470b1e6 33722
f93ca9fd
VS
33723fi
33724
3fcdd07b 33725
f93ca9fd
VS
33726fi
33727done
e6cc62c6
VS
33728
33729
f93ca9fd
VS
33730 if test "$HAVE_DL_FUNCS" = 1; then
33731
33732for ac_func in dlerror
3fcdd07b 33733do
e6cc62c6
VS
33734as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33735echo "$as_me:$LINENO: checking for $ac_func" >&5
33736echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33737if eval "test \"\${$as_ac_var+set}\" = set"; then
33738 echo $ECHO_N "(cached) $ECHO_C" >&6
33739else
33740 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33741/* confdefs.h. */
33742_ACEOF
33743cat confdefs.h >>conftest.$ac_ext
33744cat >>conftest.$ac_ext <<_ACEOF
33745/* end confdefs.h. */
243f8ae5
VS
33746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33748#define $ac_func innocuous_$ac_func
33749
3fcdd07b 33750/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33751 which can conflict with char $ac_func (); below.
33752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33753 <limits.h> exists even on freestanding compilers. */
243f8ae5 33754
e6cc62c6
VS
33755#ifdef __STDC__
33756# include <limits.h>
33757#else
33758# include <assert.h>
33759#endif
243f8ae5
VS
33760
33761#undef $ac_func
33762
3fcdd07b 33763/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33764#ifdef __cplusplus
33765extern "C"
33766{
33767#endif
3fcdd07b 33768/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33769 builtin and then its argument prototype would still apply. */
33770char $ac_func ();
3fcdd07b
VZ
33771/* The GNU C library defines this for functions which it implements
33772 to always fail with ENOSYS. Some functions are actually named
33773 something starting with __ and the normal name is an alias. */
33774#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33775choke me
33776#else
e6cc62c6
VS
33777char (*f) () = $ac_func;
33778#endif
33779#ifdef __cplusplus
33780}
3fcdd07b
VZ
33781#endif
33782
e6cc62c6
VS
33783int
33784main ()
33785{
33786return f != $ac_func;
33787 ;
33788 return 0;
33789}
33790_ACEOF
33791rm -f conftest.$ac_objext conftest$ac_exeext
33792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 33793 (eval $ac_link) 2>conftest.er1
e6cc62c6 33794 ac_status=$?
243f8ae5
VS
33795 grep -v '^ *+' conftest.er1 >conftest.err
33796 rm -f conftest.er1
33797 cat conftest.err >&5
e6cc62c6
VS
33798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799 (exit $ac_status); } &&
243f8ae5
VS
33800 { ac_try='test -z "$ac_c_werror_flag"
33801 || test ! -s conftest.err'
33802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33803 (eval $ac_try) 2>&5
33804 ac_status=$?
33805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33806 (exit $ac_status); }; } &&
33807 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33809 (eval $ac_try) 2>&5
33810 ac_status=$?
33811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33812 (exit $ac_status); }; }; then
33813 eval "$as_ac_var=yes"
33814else
33815 echo "$as_me: failed program was:" >&5
33816sed 's/^/| /' conftest.$ac_ext >&5
33817
33818eval "$as_ac_var=no"
33819fi
243f8ae5
VS
33820rm -f conftest.err conftest.$ac_objext \
33821 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33822fi
33823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33824echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33825if test `eval echo '${'$as_ac_var'}'` = yes; then
33826 cat >>confdefs.h <<_ACEOF
33827#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33828_ACEOF
f93ca9fd
VS
33829 cat >>confdefs.h <<\_ACEOF
33830#define HAVE_DLERROR 1
33831_ACEOF
3fcdd07b 33832
f93ca9fd 33833else
698dcdb6 33834
f93ca9fd
VS
33835 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33836echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33837if test "${ac_cv_lib_dl_dlerror+set}" = set; then
e6cc62c6
VS
33838 echo $ECHO_N "(cached) $ECHO_C" >&6
33839else
f93ca9fd
VS
33840 ac_check_lib_save_LIBS=$LIBS
33841LIBS="-ldl $LIBS"
33842cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33843/* confdefs.h. */
33844_ACEOF
33845cat confdefs.h >>conftest.$ac_ext
33846cat >>conftest.$ac_ext <<_ACEOF
33847/* end confdefs.h. */
afc31813 33848
f93ca9fd
VS
33849/* Override any gcc2 internal prototype to avoid an error. */
33850#ifdef __cplusplus
33851extern "C"
33852#endif
33853/* We use char because int might match the return type of a gcc2
33854 builtin and then its argument prototype would still apply. */
33855char dlerror ();
e6cc62c6
VS
33856int
33857main ()
33858{
f93ca9fd 33859dlerror ();
e6cc62c6
VS
33860 ;
33861 return 0;
33862}
33863_ACEOF
f93ca9fd
VS
33864rm -f conftest.$ac_objext conftest$ac_exeext
33865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 33866 (eval $ac_link) 2>conftest.er1
e6cc62c6 33867 ac_status=$?
243f8ae5
VS
33868 grep -v '^ *+' conftest.er1 >conftest.err
33869 rm -f conftest.er1
33870 cat conftest.err >&5
e6cc62c6
VS
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); } &&
243f8ae5
VS
33873 { ac_try='test -z "$ac_c_werror_flag"
33874 || test ! -s conftest.err'
33875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876 (eval $ac_try) 2>&5
33877 ac_status=$?
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; } &&
33880 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33882 (eval $ac_try) 2>&5
33883 ac_status=$?
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); }; }; then
f93ca9fd 33886 ac_cv_lib_dl_dlerror=yes
10f2d63a 33887else
e6cc62c6
VS
33888 echo "$as_me: failed program was:" >&5
33889sed 's/^/| /' conftest.$ac_ext >&5
33890
f93ca9fd
VS
33891ac_cv_lib_dl_dlerror=no
33892fi
243f8ae5
VS
33893rm -f conftest.err conftest.$ac_objext \
33894 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
33895LIBS=$ac_check_lib_save_LIBS
33896fi
33897echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33898echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33899if test $ac_cv_lib_dl_dlerror = yes; then
33900 cat >>confdefs.h <<\_ACEOF
33901#define HAVE_DLERROR 1
33902_ACEOF
33903
33904fi
33905
33906
33907
33908fi
33909done
33910
33911 fi
33912 fi
33913
33914 if test "$HAVE_DL_FUNCS" = 0; then
33915 if test "$HAVE_SHL_FUNCS" = 0; then
33916 if test "$USE_UNIX" = 1; then
33917 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33918echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33919 wxUSE_DYNAMIC_LOADER=no
33920 wxUSE_DYNLIB_CLASS=no
33921 else
33922 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33923echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33924 fi
33925 fi
33926 fi
33927 fi
33928fi
33929
33930if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33931 cat >>confdefs.h <<\_ACEOF
33932#define wxUSE_DYNAMIC_LOADER 1
33933_ACEOF
33934
33935fi
33936if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33937 cat >>confdefs.h <<\_ACEOF
33938#define wxUSE_DYNLIB_CLASS 1
33939_ACEOF
33940
33941fi
33942
33943
33944
33945if test "$wxUSE_PLUGINS" = "yes" ; then
33946 if test "$wxUSE_SHARED" = "no" ; then
33947 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33948echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33949 wxUSE_PLUGINS=no
33950 fi
33951 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33952 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33953echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33954 wxUSE_PLUGINS=no
33955 fi
33956 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33957 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33958echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33959 wxUSE_PLUGINS=no
33960 fi
33961 if test "$wxUSE_PLUGINS" = "yes" ; then
33962 cat >>confdefs.h <<\_ACEOF
33963#define wxUSE_PLUGINS 1
33964_ACEOF
33965
33966 fi
33967fi
33968
33969
33970if test "$wxUSE_STL" = "yes"; then
33971 cat >>confdefs.h <<\_ACEOF
33972#define wxUSE_STL 1
33973_ACEOF
33974
33975fi
33976
33977if test "$wxUSE_APPLE_IEEE" = "yes"; then
33978 cat >>confdefs.h <<\_ACEOF
33979#define wxUSE_APPLE_IEEE 1
33980_ACEOF
33981
33982fi
33983
33984if test "$wxUSE_TIMER" = "yes"; then
33985 cat >>confdefs.h <<\_ACEOF
33986#define wxUSE_TIMER 1
33987_ACEOF
33988
33989fi
33990
33991WITH_PLUGIN_SDL=0
002ed9af 33992if test "$wxUSE_SOUND" = "yes"; then
f93ca9fd
VS
33993 if test "$USE_UNIX" = "1" ; then
33994
33995for ac_header in sys/soundcard.h
33996do
33997as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33998if eval "test \"\${$as_ac_Header+set}\" = set"; then
33999 echo "$as_me:$LINENO: checking for $ac_header" >&5
34000echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34001if eval "test \"\${$as_ac_Header+set}\" = set"; then
34002 echo $ECHO_N "(cached) $ECHO_C" >&6
34003fi
34004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34006else
34007 # Is the header compilable?
34008echo "$as_me:$LINENO: checking $ac_header usability" >&5
34009echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 34010cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34011/* confdefs.h. */
34012_ACEOF
34013cat confdefs.h >>conftest.$ac_ext
34014cat >>conftest.$ac_ext <<_ACEOF
34015/* end confdefs.h. */
f93ca9fd
VS
34016$ac_includes_default
34017#include <$ac_header>
e6cc62c6
VS
34018_ACEOF
34019rm -f conftest.$ac_objext
34020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 34021 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34022 ac_status=$?
243f8ae5
VS
34023 grep -v '^ *+' conftest.er1 >conftest.err
34024 rm -f conftest.er1
34025 cat conftest.err >&5
e6cc62c6
VS
34026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34027 (exit $ac_status); } &&
243f8ae5
VS
34028 { ac_try='test -z "$ac_c_werror_flag"
34029 || test ! -s conftest.err'
34030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34031 (eval $ac_try) 2>&5
34032 ac_status=$?
34033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034 (exit $ac_status); }; } &&
34035 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34037 (eval $ac_try) 2>&5
34038 ac_status=$?
34039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040 (exit $ac_status); }; }; then
f93ca9fd 34041 ac_header_compiler=yes
10f2d63a 34042else
e6cc62c6
VS
34043 echo "$as_me: failed program was:" >&5
34044sed 's/^/| /' conftest.$ac_ext >&5
34045
f93ca9fd 34046ac_header_compiler=no
10f2d63a 34047fi
243f8ae5 34048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
34049echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34050echo "${ECHO_T}$ac_header_compiler" >&6
b089607b 34051
f93ca9fd
VS
34052# Is the header present?
34053echo "$as_me:$LINENO: checking $ac_header presence" >&5
34054echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34055cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34056/* confdefs.h. */
34057_ACEOF
34058cat confdefs.h >>conftest.$ac_ext
34059cat >>conftest.$ac_ext <<_ACEOF
34060/* end confdefs.h. */
f93ca9fd 34061#include <$ac_header>
e6cc62c6 34062_ACEOF
f93ca9fd
VS
34063if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
e6cc62c6 34065 ac_status=$?
f95e4495
VS
34066 grep -v '^ *+' conftest.er1 >conftest.err
34067 rm -f conftest.er1
34068 cat conftest.err >&5
e6cc62c6 34069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd
VS
34070 (exit $ac_status); } >/dev/null; then
34071 if test -s conftest.err; then
34072 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 34073 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f93ca9fd
VS
34074 else
34075 ac_cpp_err=
34076 fi
34077else
34078 ac_cpp_err=yes
34079fi
34080if test -z "$ac_cpp_err"; then
34081 ac_header_preproc=yes
34082else
34083 echo "$as_me: failed program was:" >&5
34084sed 's/^/| /' conftest.$ac_ext >&5
34085
34086 ac_header_preproc=no
34087fi
34088rm -f conftest.err conftest.$ac_ext
34089echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34090echo "${ECHO_T}$ac_header_preproc" >&6
34091
34092# So? What about this header?
243f8ae5
VS
34093case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34094 yes:no: )
f93ca9fd
VS
34095 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34096echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
34097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34098echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34099 ac_header_preproc=yes
f93ca9fd 34100 ;;
243f8ae5 34101 no:yes:* )
f93ca9fd
VS
34102 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34103echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
34104 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34105echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34106 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34107echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34108 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34109echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
f93ca9fd
VS
34110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34111echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
34112 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34113echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f93ca9fd
VS
34114 (
34115 cat <<\_ASBOX
243f8ae5
VS
34116## ----------------------------------------- ##
34117## Report this to wx-dev@lists.wxwindows.org ##
34118## ----------------------------------------- ##
f93ca9fd
VS
34119_ASBOX
34120 ) |
34121 sed "s/^/$as_me: WARNING: /" >&2
34122 ;;
34123esac
34124echo "$as_me:$LINENO: checking for $ac_header" >&5
34125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34126if eval "test \"\${$as_ac_Header+set}\" = set"; then
34127 echo $ECHO_N "(cached) $ECHO_C" >&6
34128else
243f8ae5 34129 eval "$as_ac_Header=\$ac_header_preproc"
f93ca9fd
VS
34130fi
34131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34133
34134fi
34135if test `eval echo '${'$as_ac_Header'}'` = yes; then
34136 cat >>confdefs.h <<_ACEOF
34137#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34138_ACEOF
34139
34140fi
34141
34142done
34143
34144
34145 if test "$wxUSE_LIBSDL" != "no"; then
34146
34147# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
34148if test "${with_sdl_prefix+set}" = set; then
34149 withval="$with_sdl_prefix"
34150 sdl_prefix="$withval"
34151else
34152 sdl_prefix=""
34153fi;
34154
34155# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
34156if test "${with_sdl_exec_prefix+set}" = set; then
34157 withval="$with_sdl_exec_prefix"
34158 sdl_exec_prefix="$withval"
34159else
34160 sdl_exec_prefix=""
34161fi;
34162# Check whether --enable-sdltest or --disable-sdltest was given.
34163if test "${enable_sdltest+set}" = set; then
34164 enableval="$enable_sdltest"
34165
34166else
34167 enable_sdltest=yes
34168fi;
34169
34170 if test x$sdl_exec_prefix != x ; then
34171 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
34172 if test x${SDL_CONFIG+set} != xset ; then
34173 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
34174 fi
34175 fi
34176 if test x$sdl_prefix != x ; then
34177 sdl_args="$sdl_args --prefix=$sdl_prefix"
34178 if test x${SDL_CONFIG+set} != xset ; then
34179 SDL_CONFIG=$sdl_prefix/bin/sdl-config
34180 fi
34181 fi
34182
34183
34184 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
34185 # Extract the first word of "sdl-config", so it can be a program name with args.
34186set dummy sdl-config; ac_word=$2
34187echo "$as_me:$LINENO: checking for $ac_word" >&5
34188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
34189if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
34190 echo $ECHO_N "(cached) $ECHO_C" >&6
34191else
34192 case $SDL_CONFIG in
34193 [\\/]* | ?:[\\/]*)
34194 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
34195 ;;
34196 *)
34197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34198for as_dir in $PATH
34199do
34200 IFS=$as_save_IFS
34201 test -z "$as_dir" && as_dir=.
34202 for ac_exec_ext in '' $ac_executable_extensions; do
34203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34204 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
34205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
34206 break 2
34207 fi
34208done
34209done
34210
34211 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
34212 ;;
34213esac
34214fi
34215SDL_CONFIG=$ac_cv_path_SDL_CONFIG
34216
34217if test -n "$SDL_CONFIG"; then
34218 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
34219echo "${ECHO_T}$SDL_CONFIG" >&6
34220else
34221 echo "$as_me:$LINENO: result: no" >&5
34222echo "${ECHO_T}no" >&6
34223fi
34224
34225 min_sdl_version=1.2.0
34226 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
34227echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
34228 no_sdl=""
34229 if test "$SDL_CONFIG" = "no" ; then
34230 no_sdl=yes
34231 else
34232 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
34233 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
34234
34235 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
34236 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
34237 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
34238 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
34239 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
34240 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
34241 if test "x$enable_sdltest" = "xyes" ; then
34242 ac_save_CFLAGS="$CFLAGS"
34243 ac_save_LIBS="$LIBS"
34244 CFLAGS="$CFLAGS $SDL_CFLAGS"
34245 LIBS="$LIBS $SDL_LIBS"
34246 rm -f conf.sdltest
34247 if test "$cross_compiling" = yes; then
34248 echo $ac_n "cross compiling; assumed OK... $ac_c"
34249else
34250 cat >conftest.$ac_ext <<_ACEOF
34251/* confdefs.h. */
34252_ACEOF
34253cat confdefs.h >>conftest.$ac_ext
34254cat >>conftest.$ac_ext <<_ACEOF
34255/* end confdefs.h. */
34256
34257#include <stdio.h>
34258#include <stdlib.h>
34259#include <string.h>
34260#include "SDL.h"
34261
34262char*
34263my_strdup (char *str)
34264{
34265 char *new_str;
34266
34267 if (str)
34268 {
34269 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
34270 strcpy (new_str, str);
34271 }
34272 else
34273 new_str = NULL;
34274
34275 return new_str;
34276}
34277
34278int main (int argc, char *argv[])
34279{
34280 int major, minor, micro;
34281 char *tmp_version;
34282
34283 /* This hangs on some systems (?)
34284 system ("touch conf.sdltest");
34285 */
34286 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
34287
34288 /* HP/UX 9 (%@#!) writes to sscanf strings */
34289 tmp_version = my_strdup("$min_sdl_version");
34290 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
34291 printf("%s, bad version string\n", "$min_sdl_version");
34292 exit(1);
34293 }
34294
34295 if (($sdl_major_version > major) ||
34296 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
34297 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
34298 {
34299 return 0;
34300 }
34301 else
34302 {
34303 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
34304 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
34305 printf("*** best to upgrade to the required version.\n");
34306 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
34307 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
34308 printf("*** config.cache before re-running configure\n");
34309 return 1;
34310 }
34311}
34312
34313
34314_ACEOF
34315rm -f conftest$ac_exeext
34316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34317 (eval $ac_link) 2>&5
f95e4495
VS
34318 ac_status=$?
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 34320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
e6cc62c6
VS
34321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34322 (eval $ac_try) 2>&5
34323 ac_status=$?
34324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34325 (exit $ac_status); }; }; then
f93ca9fd 34326 :
e6cc62c6 34327else
f93ca9fd
VS
34328 echo "$as_me: program exited with status $ac_status" >&5
34329echo "$as_me: failed program was:" >&5
e6cc62c6
VS
34330sed 's/^/| /' conftest.$ac_ext >&5
34331
f93ca9fd
VS
34332( exit $ac_status )
34333no_sdl=yes
e6cc62c6 34334fi
243f8ae5 34335rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34336fi
f93ca9fd
VS
34337 CFLAGS="$ac_save_CFLAGS"
34338 LIBS="$ac_save_LIBS"
34339 fi
34340 fi
34341 if test "x$no_sdl" = x ; then
34342 echo "$as_me:$LINENO: result: yes" >&5
34343echo "${ECHO_T}yes" >&6
0e012a93 34344
f93ca9fd
VS
34345 EXTRALIBS_SDL="$SDL_LIBS"
34346 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
34347 cat >>confdefs.h <<\_ACEOF
34348#define wxUSE_LIBSDL 1
34349_ACEOF
34350
34351
34352 else
34353 echo "$as_me:$LINENO: result: no" >&5
34354echo "${ECHO_T}no" >&6
34355 if test "$SDL_CONFIG" = "no" ; then
34356 echo "*** The sdl-config script installed by SDL could not be found"
34357 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
34358 echo "*** your path, or set the SDL_CONFIG environment variable to the"
34359 echo "*** full path to sdl-config."
34360 else
34361 if test -f conf.sdltest ; then
34362 :
34363 else
34364 echo "*** Could not run SDL test program, checking why..."
34365 CFLAGS="$CFLAGS $SDL_CFLAGS"
34366 LIBS="$LIBS $SDL_LIBS"
34367 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34368/* confdefs.h. */
34369_ACEOF
34370cat confdefs.h >>conftest.$ac_ext
34371cat >>conftest.$ac_ext <<_ACEOF
34372/* end confdefs.h. */
34373
f93ca9fd
VS
34374#include <stdio.h>
34375#include "SDL.h"
34376
34377int main(int argc, char *argv[])
34378{ return 0; }
34379#undef main
34380#define main K_and_R_C_main
34381
e6cc62c6
VS
34382int
34383main ()
34384{
f93ca9fd 34385 return 0;
e6cc62c6
VS
34386 ;
34387 return 0;
34388}
34389_ACEOF
34390rm -f conftest.$ac_objext conftest$ac_exeext
34391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 34392 (eval $ac_link) 2>conftest.er1
e6cc62c6 34393 ac_status=$?
243f8ae5
VS
34394 grep -v '^ *+' conftest.er1 >conftest.err
34395 rm -f conftest.er1
34396 cat conftest.err >&5
e6cc62c6
VS
34397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34398 (exit $ac_status); } &&
243f8ae5
VS
34399 { ac_try='test -z "$ac_c_werror_flag"
34400 || test ! -s conftest.err'
34401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34402 (eval $ac_try) 2>&5
34403 ac_status=$?
34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); }; } &&
34406 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34408 (eval $ac_try) 2>&5
34409 ac_status=$?
34410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34411 (exit $ac_status); }; }; then
f93ca9fd
VS
34412 echo "*** The test program compiled, but did not run. This usually means"
34413 echo "*** that the run-time linker is not finding SDL or finding the wrong"
34414 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
34415 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
34416 echo "*** to the installed location Also, make sure you have run ldconfig if that"
34417 echo "*** is required on your system"
34418 echo "***"
34419 echo "*** If you have an old version installed, it is best to remove it, although"
34420 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
e6cc62c6
VS
34421else
34422 echo "$as_me: failed program was:" >&5
34423sed 's/^/| /' conftest.$ac_ext >&5
34424
f93ca9fd
VS
34425 echo "*** The test program failed to compile or link. See the file config.log for the"
34426 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
34427 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
34428 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
e6cc62c6 34429fi
243f8ae5
VS
34430rm -f conftest.err conftest.$ac_objext \
34431 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
34432 CFLAGS="$ac_save_CFLAGS"
34433 LIBS="$ac_save_LIBS"
34434 fi
34435 fi
34436 SDL_CFLAGS=""
34437 SDL_LIBS=""
34438 wxUSE_LIBSDL="no"
34439 fi
34440
34441
34442 rm -f conf.sdltest
34443
34444 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
34445 WITH_PLUGIN_SDL=1
34446 fi
34447 fi
34448 fi
34449
34450 cat >>confdefs.h <<\_ACEOF
002ed9af 34451#define wxUSE_SOUND 1
f93ca9fd
VS
34452_ACEOF
34453
34454 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
e6cc62c6 34455fi
afc31813 34456
f93ca9fd
VS
34457if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
34458 cat >>confdefs.h <<\_ACEOF
34459#define wxUSE_CMDLINE_PARSER 1
34460_ACEOF
34461
34462fi
e6cc62c6 34463
f93ca9fd
VS
34464if test "$wxUSE_STOPWATCH" = "yes"; then
34465 cat >>confdefs.h <<\_ACEOF
34466#define wxUSE_STOPWATCH 1
34467_ACEOF
e6cc62c6 34468
6232543b 34469fi
b089607b 34470
f93ca9fd
VS
34471if test "$wxUSE_DATETIME" = "yes"; then
34472 cat >>confdefs.h <<\_ACEOF
34473#define wxUSE_DATETIME 1
34474_ACEOF
e6cc62c6 34475
f93ca9fd
VS
34476fi
34477
34478if test "$wxUSE_FILE" = "yes"; then
34479 cat >>confdefs.h <<\_ACEOF
34480#define wxUSE_FILE 1
34481_ACEOF
0e012a93 34482
1e487827 34483fi
afc31813 34484
f93ca9fd
VS
34485if test "$wxUSE_FFILE" = "yes"; then
34486 cat >>confdefs.h <<\_ACEOF
34487#define wxUSE_FFILE 1
34488_ACEOF
34489
34490fi
34491
34492if test "$wxUSE_FILESYSTEM" = "yes"; then
34493 cat >>confdefs.h <<\_ACEOF
34494#define wxUSE_FILESYSTEM 1
34495_ACEOF
34496
34497fi
34498
34499if test "$wxUSE_FS_ZIP" = "yes"; then
34500 cat >>confdefs.h <<\_ACEOF
34501#define wxUSE_FS_ZIP 1
34502_ACEOF
34503
34504fi
34505
34506if test "$wxUSE_ZIPSTREAM" = "yes"; then
34507 cat >>confdefs.h <<\_ACEOF
34508#define wxUSE_ZIPSTREAM 1
34509_ACEOF
34510
34511fi
34512
34513if test "$wxUSE_GZSTREAM" = "yes"; then
34514 cat >>confdefs.h <<\_ACEOF
34515#define wxUSE_GZSTREAM 1
34516_ACEOF
34517
34518fi
34519
34520if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34521 cat >>confdefs.h <<\_ACEOF
34522#define wxUSE_ON_FATAL_EXCEPTION 1
34523_ACEOF
34524
34525fi
34526
34527if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34528 cat >>confdefs.h <<\_ACEOF
34529#define wxUSE_SNGLINST_CHECKER 1
34530_ACEOF
34531
34532fi
34533
34534if test "$wxUSE_BUSYINFO" = "yes"; then
34535 cat >>confdefs.h <<\_ACEOF
34536#define wxUSE_BUSYINFO 1
34537_ACEOF
34538
34539fi
34540
34541if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34542 cat >>confdefs.h <<\_ACEOF
34543#define wxUSE_STD_IOSTREAM 1
34544_ACEOF
34545
34546fi
34547
34548if test "$wxUSE_TEXTBUFFER" = "yes"; then
34549 cat >>confdefs.h <<\_ACEOF
34550#define wxUSE_TEXTBUFFER 1
34551_ACEOF
34552
34553fi
34554
34555if test "$wxUSE_TEXTFILE" = "yes"; then
34556 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34557 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34558echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34559 else
34560 cat >>confdefs.h <<\_ACEOF
34561#define wxUSE_TEXTFILE 1
34562_ACEOF
34563
34564 fi
34565fi
34566
34567if test "$wxUSE_CONFIG" = "yes" ; then
34568 if test "$wxUSE_TEXTFILE" != "yes"; then
34569 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34570echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34571 else
34572 cat >>confdefs.h <<\_ACEOF
34573#define wxUSE_CONFIG 1
34574_ACEOF
34575
34576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34577 fi
34578fi
34579
34580if test "$wxUSE_INTL" = "yes" ; then
34581 if test "$wxUSE_FILE" != "yes"; then
34582 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34583echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34584 else
34585 cat >>confdefs.h <<\_ACEOF
34586#define wxUSE_INTL 1
34587_ACEOF
34588
34589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34590 GUIDIST="$GUIDIST INTL_DIST"
34591 fi
34592fi
34593
34594if test "$wxUSE_LOG" = "yes"; then
34595 cat >>confdefs.h <<\_ACEOF
34596#define wxUSE_LOG 1
34597_ACEOF
34598
34599
34600 if test "$wxUSE_LOGGUI" = "yes"; then
34601 cat >>confdefs.h <<\_ACEOF
34602#define wxUSE_LOGGUI 1
34603_ACEOF
34604
34605 fi
34606
34607 if test "$wxUSE_LOGWINDOW" = "yes"; then
34608 cat >>confdefs.h <<\_ACEOF
34609#define wxUSE_LOGWINDOW 1
34610_ACEOF
34611
34612 fi
34613
34614 if test "$wxUSE_LOGDIALOG" = "yes"; then
34615 cat >>confdefs.h <<\_ACEOF
34616#define wxUSE_LOG_DIALOG 1
34617_ACEOF
34618
3a922bb4 34619 fi
0feee163 34620fi
51a9faba 34621
f93ca9fd
VS
34622if test "$wxUSE_LONGLONG" = "yes"; then
34623 cat >>confdefs.h <<\_ACEOF
34624#define wxUSE_LONGLONG 1
34625_ACEOF
e6cc62c6 34626
f93ca9fd
VS
34627fi
34628
34629if test "$wxUSE_GEOMETRY" = "yes"; then
34630 cat >>confdefs.h <<\_ACEOF
34631#define wxUSE_GEOMETRY 1
e6cc62c6 34632_ACEOF
51a9faba 34633
f93ca9fd 34634fi
e6cc62c6 34635
f93ca9fd
VS
34636if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34637 cat >>confdefs.h <<\_ACEOF
34638#define wxUSE_DIALUP_MANAGER 1
34639_ACEOF
51a9faba 34640
f93ca9fd
VS
34641 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34642fi
e6cc62c6 34643
f93ca9fd
VS
34644if test "$wxUSE_STREAMS" = "yes" ; then
34645 cat >>confdefs.h <<\_ACEOF
34646#define wxUSE_STREAMS 1
e6cc62c6 34647_ACEOF
e6cc62c6 34648
f93ca9fd 34649fi
e6cc62c6 34650
9711d31e 34651
f93ca9fd
VS
34652if test "$wxUSE_DATETIME" = "yes"; then
34653
34654for ac_func in strptime
34655do
34656as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34657echo "$as_me:$LINENO: checking for $ac_func" >&5
34658echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34659if eval "test \"\${$as_ac_var+set}\" = set"; then
34660 echo $ECHO_N "(cached) $ECHO_C" >&6
34661else
34662 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34663/* confdefs.h. */
34664_ACEOF
34665cat confdefs.h >>conftest.$ac_ext
34666cat >>conftest.$ac_ext <<_ACEOF
34667/* end confdefs.h. */
243f8ae5
VS
34668/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34670#define $ac_func innocuous_$ac_func
34671
f93ca9fd
VS
34672/* System header to define __stub macros and hopefully few prototypes,
34673 which can conflict with char $ac_func (); below.
34674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34675 <limits.h> exists even on freestanding compilers. */
243f8ae5 34676
f93ca9fd
VS
34677#ifdef __STDC__
34678# include <limits.h>
34679#else
34680# include <assert.h>
34681#endif
243f8ae5
VS
34682
34683#undef $ac_func
34684
f93ca9fd
VS
34685/* Override any gcc2 internal prototype to avoid an error. */
34686#ifdef __cplusplus
34687extern "C"
34688{
34689#endif
34690/* We use char because int might match the return type of a gcc2
34691 builtin and then its argument prototype would still apply. */
34692char $ac_func ();
34693/* The GNU C library defines this for functions which it implements
34694 to always fail with ENOSYS. Some functions are actually named
34695 something starting with __ and the normal name is an alias. */
34696#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34697choke me
34698#else
34699char (*f) () = $ac_func;
34700#endif
34701#ifdef __cplusplus
34702}
34703#endif
e6cc62c6
VS
34704
34705int
34706main ()
34707{
f93ca9fd 34708return f != $ac_func;
e6cc62c6
VS
34709 ;
34710 return 0;
34711}
34712_ACEOF
f93ca9fd
VS
34713rm -f conftest.$ac_objext conftest$ac_exeext
34714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 34715 (eval $ac_link) 2>conftest.er1
e6cc62c6 34716 ac_status=$?
243f8ae5
VS
34717 grep -v '^ *+' conftest.er1 >conftest.err
34718 rm -f conftest.er1
34719 cat conftest.err >&5
e6cc62c6
VS
34720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721 (exit $ac_status); } &&
243f8ae5
VS
34722 { ac_try='test -z "$ac_c_werror_flag"
34723 || test ! -s conftest.err'
34724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34725 (eval $ac_try) 2>&5
34726 ac_status=$?
34727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728 (exit $ac_status); }; } &&
34729 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34731 (eval $ac_try) 2>&5
34732 ac_status=$?
34733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34734 (exit $ac_status); }; }; then
f93ca9fd 34735 eval "$as_ac_var=yes"
afc31813 34736else
e6cc62c6
VS
34737 echo "$as_me: failed program was:" >&5
34738sed 's/^/| /' conftest.$ac_ext >&5
34739
f93ca9fd
VS
34740eval "$as_ac_var=no"
34741fi
243f8ae5
VS
34742rm -f conftest.err conftest.$ac_objext \
34743 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
34744fi
34745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34746echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34747if test `eval echo '${'$as_ac_var'}'` = yes; then
34748 cat >>confdefs.h <<_ACEOF
34749#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34750_ACEOF
34751
34752fi
34753done
34754
34755
34756 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34757echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34758if test "${wx_cv_var_timezone+set}" = set; then
34759 echo $ECHO_N "(cached) $ECHO_C" >&6
34760else
34761
34762 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34763/* confdefs.h. */
34764_ACEOF
34765cat confdefs.h >>conftest.$ac_ext
34766cat >>conftest.$ac_ext <<_ACEOF
34767/* end confdefs.h. */
51a9faba 34768
f93ca9fd 34769 #include <time.h>
e6cc62c6
VS
34770
34771int
34772main ()
34773{
51a9faba 34774
f93ca9fd
VS
34775 int tz;
34776 tz = timezone;
e6cc62c6
VS
34777
34778 ;
34779 return 0;
34780}
34781_ACEOF
34782rm -f conftest.$ac_objext
34783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 34784 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34785 ac_status=$?
243f8ae5
VS
34786 grep -v '^ *+' conftest.er1 >conftest.err
34787 rm -f conftest.er1
34788 cat conftest.err >&5
e6cc62c6
VS
34789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34790 (exit $ac_status); } &&
243f8ae5
VS
34791 { ac_try='test -z "$ac_c_werror_flag"
34792 || test ! -s conftest.err'
34793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34794 (eval $ac_try) 2>&5
34795 ac_status=$?
34796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34797 (exit $ac_status); }; } &&
34798 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
34799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34800 (eval $ac_try) 2>&5
34801 ac_status=$?
34802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34803 (exit $ac_status); }; }; then
8284b0c5 34804
f93ca9fd 34805 wx_cv_var_timezone=timezone
dc3d889d 34806
f93ca9fd
VS
34807else
34808 echo "$as_me: failed program was:" >&5
34809sed 's/^/| /' conftest.$ac_ext >&5
156b2523 34810
e6cc62c6 34811
f93ca9fd 34812 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34813/* confdefs.h. */
34814_ACEOF
34815cat confdefs.h >>conftest.$ac_ext
34816cat >>conftest.$ac_ext <<_ACEOF
34817/* end confdefs.h. */
f93ca9fd
VS
34818
34819 #include <time.h>
34820
34821int
34822main ()
34823{
34824
34825 int tz;
34826 tz = _timezone;
34827
34828 ;
34829 return 0;
34830}
e6cc62c6
VS
34831_ACEOF
34832rm -f conftest.$ac_objext
34833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 34834 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34835 ac_status=$?
243f8ae5
VS
34836 grep -v '^ *+' conftest.er1 >conftest.err
34837 rm -f conftest.er1
34838 cat conftest.err >&5
e6cc62c6
VS
34839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840 (exit $ac_status); } &&
243f8ae5
VS
34841 { ac_try='test -z "$ac_c_werror_flag"
34842 || test ! -s conftest.err'
34843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34844 (eval $ac_try) 2>&5
34845 ac_status=$?
34846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34847 (exit $ac_status); }; } &&
34848 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34850 (eval $ac_try) 2>&5
34851 ac_status=$?
34852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34853 (exit $ac_status); }; }; then
f93ca9fd
VS
34854
34855 wx_cv_var_timezone=_timezone
34856
e6cc62c6
VS
34857else
34858 echo "$as_me: failed program was:" >&5
34859sed 's/^/| /' conftest.$ac_ext >&5
34860
e6cc62c6 34861
f93ca9fd 34862 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34863/* confdefs.h. */
34864_ACEOF
34865cat confdefs.h >>conftest.$ac_ext
34866cat >>conftest.$ac_ext <<_ACEOF
34867/* end confdefs.h. */
f93ca9fd
VS
34868
34869 #include <time.h>
34870
34871int
34872main ()
34873{
34874
34875 int tz;
34876 tz = __timezone;
34877
34878 ;
34879 return 0;
34880}
e6cc62c6 34881_ACEOF
f93ca9fd
VS
34882rm -f conftest.$ac_objext
34883if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 34884 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34885 ac_status=$?
243f8ae5
VS
34886 grep -v '^ *+' conftest.er1 >conftest.err
34887 rm -f conftest.er1
34888 cat conftest.err >&5
e6cc62c6 34889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 34890 (exit $ac_status); } &&
243f8ae5
VS
34891 { ac_try='test -z "$ac_c_werror_flag"
34892 || test ! -s conftest.err'
34893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34894 (eval $ac_try) 2>&5
34895 ac_status=$?
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); }; } &&
34898 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
34899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34900 (eval $ac_try) 2>&5
34901 ac_status=$?
34902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34903 (exit $ac_status); }; }; then
34904
34905 wx_cv_var_timezone=__timezone
34906
e6cc62c6
VS
34907else
34908 echo "$as_me: failed program was:" >&5
34909sed 's/^/| /' conftest.$ac_ext >&5
34910
e6cc62c6 34911
f93ca9fd
VS
34912 if test "$USE_DOS" = 0 ; then
34913 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34914echo "$as_me: WARNING: no timezone variable" >&2;}
34915 fi
34916
e6cc62c6 34917
10f2d63a 34918fi
243f8ae5 34919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd 34920
e6cc62c6 34921
247f5006 34922fi
243f8ae5 34923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34924
10f2d63a 34925
f93ca9fd 34926fi
243f8ae5 34927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b089607b 34928
10f2d63a 34929
dc3d889d 34930fi
f93ca9fd
VS
34931echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34932echo "${ECHO_T}$wx_cv_var_timezone" >&6
dc3d889d 34933
f93ca9fd
VS
34934 if test "x$wx_cv_var_timezone" != x ; then
34935 cat >>confdefs.h <<_ACEOF
34936#define WX_TIMEZONE $wx_cv_var_timezone
34937_ACEOF
8284b0c5 34938
f93ca9fd 34939 fi
b089607b 34940
e6cc62c6 34941
f93ca9fd 34942for ac_func in localtime
10f2d63a 34943do
e6cc62c6
VS
34944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34945echo "$as_me:$LINENO: checking for $ac_func" >&5
34946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34947if eval "test \"\${$as_ac_var+set}\" = set"; then
34948 echo $ECHO_N "(cached) $ECHO_C" >&6
34949else
34950 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34951/* confdefs.h. */
34952_ACEOF
34953cat confdefs.h >>conftest.$ac_ext
34954cat >>conftest.$ac_ext <<_ACEOF
34955/* end confdefs.h. */
243f8ae5
VS
34956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34958#define $ac_func innocuous_$ac_func
34959
10f2d63a 34960/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34961 which can conflict with char $ac_func (); below.
34962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34963 <limits.h> exists even on freestanding compilers. */
243f8ae5 34964
e6cc62c6
VS
34965#ifdef __STDC__
34966# include <limits.h>
34967#else
34968# include <assert.h>
34969#endif
243f8ae5
VS
34970
34971#undef $ac_func
34972
10f2d63a 34973/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34974#ifdef __cplusplus
34975extern "C"
34976{
34977#endif
10f2d63a 34978/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34979 builtin and then its argument prototype would still apply. */
34980char $ac_func ();
10f2d63a
VZ
34981/* The GNU C library defines this for functions which it implements
34982 to always fail with ENOSYS. Some functions are actually named
34983 something starting with __ and the normal name is an alias. */
34984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34985choke me
34986#else
e6cc62c6
VS
34987char (*f) () = $ac_func;
34988#endif
34989#ifdef __cplusplus
34990}
10f2d63a
VZ
34991#endif
34992
e6cc62c6
VS
34993int
34994main ()
34995{
34996return f != $ac_func;
34997 ;
34998 return 0;
34999}
35000_ACEOF
35001rm -f conftest.$ac_objext conftest$ac_exeext
35002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 35003 (eval $ac_link) 2>conftest.er1
e6cc62c6 35004 ac_status=$?
243f8ae5
VS
35005 grep -v '^ *+' conftest.er1 >conftest.err
35006 rm -f conftest.er1
35007 cat conftest.err >&5
e6cc62c6
VS
35008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35009 (exit $ac_status); } &&
243f8ae5
VS
35010 { ac_try='test -z "$ac_c_werror_flag"
35011 || test ! -s conftest.err'
35012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35013 (eval $ac_try) 2>&5
35014 ac_status=$?
35015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35016 (exit $ac_status); }; } &&
35017 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35019 (eval $ac_try) 2>&5
35020 ac_status=$?
35021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35022 (exit $ac_status); }; }; then
35023 eval "$as_ac_var=yes"
35024else
35025 echo "$as_me: failed program was:" >&5
35026sed 's/^/| /' conftest.$ac_ext >&5
35027
35028eval "$as_ac_var=no"
35029fi
243f8ae5
VS
35030rm -f conftest.err conftest.$ac_objext \
35031 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
35032fi
35033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35034echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35035if test `eval echo '${'$as_ac_var'}'` = yes; then
35036 cat >>confdefs.h <<_ACEOF
35037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35038_ACEOF
35039
f93ca9fd
VS
35040fi
35041done
e6cc62c6 35042
e6cc62c6 35043
f93ca9fd
VS
35044 if test "$ac_cv_func_localtime" = "yes"; then
35045 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
35046echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
35047if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
e6cc62c6 35048 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 35049else
f93ca9fd
VS
35050
35051 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35052/* confdefs.h. */
35053_ACEOF
35054cat confdefs.h >>conftest.$ac_ext
35055cat >>conftest.$ac_ext <<_ACEOF
35056/* end confdefs.h. */
35057
f93ca9fd
VS
35058 #include <time.h>
35059
e6cc62c6
VS
35060int
35061main ()
35062{
f93ca9fd
VS
35063
35064 struct tm tm;
35065 tm.tm_gmtoff++;
35066
e6cc62c6
VS
35067 ;
35068 return 0;
35069}
35070_ACEOF
f93ca9fd
VS
35071rm -f conftest.$ac_objext
35072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 35073 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35074 ac_status=$?
243f8ae5
VS
35075 grep -v '^ *+' conftest.er1 >conftest.err
35076 rm -f conftest.er1
35077 cat conftest.err >&5
e6cc62c6
VS
35078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35079 (exit $ac_status); } &&
243f8ae5
VS
35080 { ac_try='test -z "$ac_c_werror_flag"
35081 || test ! -s conftest.err'
35082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35083 (eval $ac_try) 2>&5
35084 ac_status=$?
35085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35086 (exit $ac_status); }; } &&
35087 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35089 (eval $ac_try) 2>&5
35090 ac_status=$?
35091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35092 (exit $ac_status); }; }; then
f93ca9fd
VS
35093
35094 wx_cv_struct_tm_has_gmtoff=yes
35095
e6cc62c6
VS
35096else
35097 echo "$as_me: failed program was:" >&5
35098sed 's/^/| /' conftest.$ac_ext >&5
35099
f93ca9fd
VS
35100wx_cv_struct_tm_has_gmtoff=no
35101
e6cc62c6 35102fi
243f8ae5 35103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd 35104
e6cc62c6 35105fi
f93ca9fd
VS
35106echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
35107echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
35108 fi
e6cc62c6 35109
f93ca9fd
VS
35110 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
35111 cat >>confdefs.h <<\_ACEOF
35112#define WX_GMTOFF_IN_TM 1
e6cc62c6 35113_ACEOF
10f2d63a 35114
f93ca9fd 35115 fi
e6cc62c6 35116
10f2d63a 35117
e6cc62c6 35118
f93ca9fd 35119for ac_func in gettimeofday ftime
10f2d63a 35120do
e6cc62c6
VS
35121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35122echo "$as_me:$LINENO: checking for $ac_func" >&5
35123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35124if eval "test \"\${$as_ac_var+set}\" = set"; then
35125 echo $ECHO_N "(cached) $ECHO_C" >&6
35126else
35127 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35128/* confdefs.h. */
35129_ACEOF
35130cat confdefs.h >>conftest.$ac_ext
35131cat >>conftest.$ac_ext <<_ACEOF
35132/* end confdefs.h. */
243f8ae5
VS
35133/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35135#define $ac_func innocuous_$ac_func
35136
10f2d63a 35137/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
35138 which can conflict with char $ac_func (); below.
35139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35140 <limits.h> exists even on freestanding compilers. */
243f8ae5 35141
e6cc62c6
VS
35142#ifdef __STDC__
35143# include <limits.h>
35144#else
35145# include <assert.h>
35146#endif
243f8ae5
VS
35147
35148#undef $ac_func
35149
10f2d63a 35150/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
35151#ifdef __cplusplus
35152extern "C"
35153{
35154#endif
10f2d63a 35155/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
35156 builtin and then its argument prototype would still apply. */
35157char $ac_func ();
10f2d63a
VZ
35158/* The GNU C library defines this for functions which it implements
35159 to always fail with ENOSYS. Some functions are actually named
35160 something starting with __ and the normal name is an alias. */
35161#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35162choke me
35163#else
e6cc62c6
VS
35164char (*f) () = $ac_func;
35165#endif
35166#ifdef __cplusplus
35167}
10f2d63a
VZ
35168#endif
35169
e6cc62c6
VS
35170int
35171main ()
35172{
35173return f != $ac_func;
35174 ;
35175 return 0;
35176}
35177_ACEOF
35178rm -f conftest.$ac_objext conftest$ac_exeext
35179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 35180 (eval $ac_link) 2>conftest.er1
e6cc62c6 35181 ac_status=$?
243f8ae5
VS
35182 grep -v '^ *+' conftest.er1 >conftest.err
35183 rm -f conftest.er1
35184 cat conftest.err >&5
e6cc62c6
VS
35185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); } &&
243f8ae5
VS
35187 { ac_try='test -z "$ac_c_werror_flag"
35188 || test ! -s conftest.err'
35189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35190 (eval $ac_try) 2>&5
35191 ac_status=$?
35192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193 (exit $ac_status); }; } &&
35194 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35196 (eval $ac_try) 2>&5
35197 ac_status=$?
35198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35199 (exit $ac_status); }; }; then
35200 eval "$as_ac_var=yes"
35201else
35202 echo "$as_me: failed program was:" >&5
35203sed 's/^/| /' conftest.$ac_ext >&5
35204
35205eval "$as_ac_var=no"
35206fi
243f8ae5
VS
35207rm -f conftest.err conftest.$ac_objext \
35208 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
35209fi
35210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35211echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35212if test `eval echo '${'$as_ac_var'}'` = yes; then
35213 cat >>confdefs.h <<_ACEOF
35214#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35215_ACEOF
f93ca9fd
VS
35216 break
35217fi
35218done
e6cc62c6 35219
f93ca9fd
VS
35220
35221 if test "$ac_cv_func_gettimeofday" = "yes"; then
35222 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
35223echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
35224if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
35225 echo $ECHO_N "(cached) $ECHO_C" >&6
35226else
35227
35228
35229
35230 ac_ext=cc
35231ac_cpp='$CXXCPP $CPPFLAGS'
35232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35235
35236
35237 cat >conftest.$ac_ext <<_ACEOF
35238/* confdefs.h. */
e6cc62c6 35239_ACEOF
f93ca9fd
VS
35240cat confdefs.h >>conftest.$ac_ext
35241cat >>conftest.$ac_ext <<_ACEOF
35242/* end confdefs.h. */
10f2d63a 35243
f93ca9fd
VS
35244 #include <sys/time.h>
35245 #include <unistd.h>
e6cc62c6 35246
f93ca9fd
VS
35247int
35248main ()
35249{
e6cc62c6 35250
f93ca9fd
VS
35251 struct timeval tv;
35252 gettimeofday(&tv, NULL);
35253
35254 ;
35255 return 0;
35256}
35257_ACEOF
35258rm -f conftest.$ac_objext
35259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 35260 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35261 ac_status=$?
243f8ae5
VS
35262 grep -v '^ *+' conftest.er1 >conftest.err
35263 rm -f conftest.er1
35264 cat conftest.err >&5
f93ca9fd
VS
35265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35266 (exit $ac_status); } &&
243f8ae5
VS
35267 { ac_try='test -z "$ac_cxx_werror_flag"
35268 || test ! -s conftest.err'
35269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35270 (eval $ac_try) 2>&5
35271 ac_status=$?
35272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273 (exit $ac_status); }; } &&
35274 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35276 (eval $ac_try) 2>&5
35277 ac_status=$?
35278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35279 (exit $ac_status); }; }; then
35280 wx_cv_func_gettimeofday_has_2_args=yes
f6bcfd97 35281else
f93ca9fd
VS
35282 echo "$as_me: failed program was:" >&5
35283sed 's/^/| /' conftest.$ac_ext >&5
35284
e6cc62c6 35285cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35286/* confdefs.h. */
35287_ACEOF
35288cat confdefs.h >>conftest.$ac_ext
35289cat >>conftest.$ac_ext <<_ACEOF
35290/* end confdefs.h. */
35291
f93ca9fd
VS
35292 #include <sys/time.h>
35293 #include <unistd.h>
35294
e6cc62c6
VS
35295int
35296main ()
35297{
f93ca9fd
VS
35298
35299 struct timeval tv;
35300 gettimeofday(&tv);
35301
e6cc62c6
VS
35302 ;
35303 return 0;
35304}
35305_ACEOF
f93ca9fd
VS
35306rm -f conftest.$ac_objext
35307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 35308 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35309 ac_status=$?
243f8ae5
VS
35310 grep -v '^ *+' conftest.er1 >conftest.err
35311 rm -f conftest.er1
35312 cat conftest.err >&5
e6cc62c6
VS
35313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314 (exit $ac_status); } &&
243f8ae5
VS
35315 { ac_try='test -z "$ac_cxx_werror_flag"
35316 || test ! -s conftest.err'
35317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35318 (eval $ac_try) 2>&5
35319 ac_status=$?
35320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35321 (exit $ac_status); }; } &&
35322 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35324 (eval $ac_try) 2>&5
35325 ac_status=$?
35326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35327 (exit $ac_status); }; }; then
f93ca9fd 35328 wx_cv_func_gettimeofday_has_2_args=no
e6cc62c6
VS
35329else
35330 echo "$as_me: failed program was:" >&5
35331sed 's/^/| /' conftest.$ac_ext >&5
35332
f6bcfd97 35333
f93ca9fd
VS
35334 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
35335echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
35336 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6 35337
f6bcfd97 35338
f93ca9fd 35339fi
243f8ae5 35340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 35341
10f2d63a 35342fi
243f8ae5 35343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
35344 ac_ext=c
35345ac_cpp='$CPP $CPPFLAGS'
35346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35348ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 35349
e6cc62c6 35350
10f2d63a 35351fi
f93ca9fd
VS
35352echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
35353echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
35354
35355 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
35356 cat >>confdefs.h <<\_ACEOF
35357#define WX_GETTIMEOFDAY_NO_TZ 1
35358_ACEOF
10f2d63a 35359
f93ca9fd
VS
35360 fi
35361 fi
e6cc62c6 35362
f93ca9fd 35363 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10f2d63a 35364fi
10f2d63a 35365
5c6fa7d2 35366
f93ca9fd
VS
35367if test "$wxUSE_SOCKETS" = "yes"; then
35368 if test "$wxUSE_MGL" = "1"; then
35369 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
35370echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
35371 wxUSE_SOCKETS="no"
35372 fi
35373fi
e6cc62c6 35374
f93ca9fd
VS
35375if test "$wxUSE_SOCKETS" = "yes"; then
35376 if test "$TOOLKIT" != "MSW"; then
35377 echo "$as_me:$LINENO: checking for socket" >&5
35378echo $ECHO_N "checking for socket... $ECHO_C" >&6
35379if test "${ac_cv_func_socket+set}" = set; then
e6cc62c6
VS
35380 echo $ECHO_N "(cached) $ECHO_C" >&6
35381else
35382 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35383/* confdefs.h. */
35384_ACEOF
35385cat confdefs.h >>conftest.$ac_ext
35386cat >>conftest.$ac_ext <<_ACEOF
35387/* end confdefs.h. */
243f8ae5
VS
35388/* Define socket to an innocuous variant, in case <limits.h> declares socket.
35389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35390#define socket innocuous_socket
35391
f6bcfd97 35392/* System header to define __stub macros and hopefully few prototypes,
f93ca9fd 35393 which can conflict with char socket (); below.
e6cc62c6
VS
35394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35395 <limits.h> exists even on freestanding compilers. */
243f8ae5 35396
e6cc62c6
VS
35397#ifdef __STDC__
35398# include <limits.h>
35399#else
35400# include <assert.h>
35401#endif
243f8ae5
VS
35402
35403#undef socket
35404
f6bcfd97 35405/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
35406#ifdef __cplusplus
35407extern "C"
35408{
35409#endif
f6bcfd97 35410/* We use char because int might match the return type of a gcc2
e6cc62c6 35411 builtin and then its argument prototype would still apply. */
f93ca9fd 35412char socket ();
f6bcfd97
BP
35413/* The GNU C library defines this for functions which it implements
35414 to always fail with ENOSYS. Some functions are actually named
35415 something starting with __ and the normal name is an alias. */
f93ca9fd 35416#if defined (__stub_socket) || defined (__stub___socket)
f6bcfd97
BP
35417choke me
35418#else
f93ca9fd 35419char (*f) () = socket;
e6cc62c6
VS
35420#endif
35421#ifdef __cplusplus
35422}
f6bcfd97
BP
35423#endif
35424
e6cc62c6
VS
35425int
35426main ()
35427{
f93ca9fd
VS
35428return f != socket;
35429 ;
35430 return 0;
35431}
35432_ACEOF
35433rm -f conftest.$ac_objext conftest$ac_exeext
35434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 35435 (eval $ac_link) 2>conftest.er1
f93ca9fd 35436 ac_status=$?
243f8ae5
VS
35437 grep -v '^ *+' conftest.er1 >conftest.err
35438 rm -f conftest.er1
35439 cat conftest.err >&5
f93ca9fd
VS
35440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441 (exit $ac_status); } &&
243f8ae5
VS
35442 { ac_try='test -z "$ac_c_werror_flag"
35443 || test ! -s conftest.err'
35444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35445 (eval $ac_try) 2>&5
35446 ac_status=$?
35447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448 (exit $ac_status); }; } &&
35449 { ac_try='test -s conftest$ac_exeext'
f93ca9fd
VS
35450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35451 (eval $ac_try) 2>&5
35452 ac_status=$?
35453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35454 (exit $ac_status); }; }; then
35455 ac_cv_func_socket=yes
35456else
35457 echo "$as_me: failed program was:" >&5
35458sed 's/^/| /' conftest.$ac_ext >&5
35459
35460ac_cv_func_socket=no
35461fi
243f8ae5
VS
35462rm -f conftest.err conftest.$ac_objext \
35463 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
35464fi
35465echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
35466echo "${ECHO_T}$ac_cv_func_socket" >&6
35467if test $ac_cv_func_socket = yes; then
35468 :
35469else
35470
35471 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
35472echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
35473if test "${ac_cv_lib_socket_socket+set}" = set; then
35474 echo $ECHO_N "(cached) $ECHO_C" >&6
35475else
35476 ac_check_lib_save_LIBS=$LIBS
35477LIBS="-lsocket $LIBS"
35478cat >conftest.$ac_ext <<_ACEOF
35479/* confdefs.h. */
35480_ACEOF
35481cat confdefs.h >>conftest.$ac_ext
35482cat >>conftest.$ac_ext <<_ACEOF
35483/* end confdefs.h. */
35484
35485/* Override any gcc2 internal prototype to avoid an error. */
35486#ifdef __cplusplus
35487extern "C"
35488#endif
35489/* We use char because int might match the return type of a gcc2
35490 builtin and then its argument prototype would still apply. */
35491char socket ();
35492int
35493main ()
35494{
35495socket ();
e6cc62c6
VS
35496 ;
35497 return 0;
35498}
35499_ACEOF
35500rm -f conftest.$ac_objext conftest$ac_exeext
35501if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 35502 (eval $ac_link) 2>conftest.er1
e6cc62c6 35503 ac_status=$?
243f8ae5
VS
35504 grep -v '^ *+' conftest.er1 >conftest.err
35505 rm -f conftest.er1
35506 cat conftest.err >&5
e6cc62c6
VS
35507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35508 (exit $ac_status); } &&
243f8ae5
VS
35509 { ac_try='test -z "$ac_c_werror_flag"
35510 || test ! -s conftest.err'
35511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35512 (eval $ac_try) 2>&5
35513 ac_status=$?
35514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35515 (exit $ac_status); }; } &&
35516 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35518 (eval $ac_try) 2>&5
35519 ac_status=$?
35520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521 (exit $ac_status); }; }; then
f93ca9fd 35522 ac_cv_lib_socket_socket=yes
e6cc62c6
VS
35523else
35524 echo "$as_me: failed program was:" >&5
35525sed 's/^/| /' conftest.$ac_ext >&5
35526
f93ca9fd 35527ac_cv_lib_socket_socket=no
e6cc62c6 35528fi
243f8ae5
VS
35529rm -f conftest.err conftest.$ac_objext \
35530 conftest$ac_exeext conftest.$ac_ext
f93ca9fd 35531LIBS=$ac_check_lib_save_LIBS
e6cc62c6 35532fi
f93ca9fd
VS
35533echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35534echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35535if test $ac_cv_lib_socket_socket = yes; then
35536 if test "$INET_LINK" != " -lsocket"; then
35537 INET_LINK="$INET_LINK -lsocket"
35538 fi
35539else
35540
35541 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35542echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35543 wxUSE_SOCKETS=no
35544
35545
35546fi
35547
35548
35549
35550fi
35551
35552 fi
35553fi
35554
35555if test "$wxUSE_SOCKETS" = "yes" ; then
35556 if test "$TOOLKIT" != "MSW"; then
35557 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35558echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35559if test "${wx_cv_type_getsockname3+set}" = set; then
35560 echo $ECHO_N "(cached) $ECHO_C" >&6
35561else
35562
35563 cat >conftest.$ac_ext <<_ACEOF
35564/* confdefs.h. */
e6cc62c6 35565_ACEOF
f93ca9fd
VS
35566cat confdefs.h >>conftest.$ac_ext
35567cat >>conftest.$ac_ext <<_ACEOF
35568/* end confdefs.h. */
35569
35570 #include <sys/types.h>
35571 #include <sys/socket.h>
f6bcfd97 35572
f93ca9fd
VS
35573int
35574main ()
35575{
35576
35577 socklen_t len;
35578 getsockname(0, 0, &len);
35579
35580 ;
35581 return 0;
35582}
35583_ACEOF
35584rm -f conftest.$ac_objext
35585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 35586 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35587 ac_status=$?
243f8ae5
VS
35588 grep -v '^ *+' conftest.er1 >conftest.err
35589 rm -f conftest.er1
35590 cat conftest.err >&5
f93ca9fd
VS
35591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35592 (exit $ac_status); } &&
243f8ae5
VS
35593 { ac_try='test -z "$ac_c_werror_flag"
35594 || test ! -s conftest.err'
35595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35596 (eval $ac_try) 2>&5
35597 ac_status=$?
35598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35599 (exit $ac_status); }; } &&
35600 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35602 (eval $ac_try) 2>&5
35603 ac_status=$?
35604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35605 (exit $ac_status); }; }; then
35606 wx_cv_type_getsockname3=socklen_t
f6bcfd97 35607else
f93ca9fd
VS
35608 echo "$as_me: failed program was:" >&5
35609sed 's/^/| /' conftest.$ac_ext >&5
0e012a93 35610
f93ca9fd
VS
35611
35612 CFLAGS_OLD="$CFLAGS"
35613 if test "$GCC" = yes ; then
35614 CFLAGS="$CFLAGS -Werror"
35615 fi
35616
35617 cat >conftest.$ac_ext <<_ACEOF
35618/* confdefs.h. */
35619_ACEOF
35620cat confdefs.h >>conftest.$ac_ext
35621cat >>conftest.$ac_ext <<_ACEOF
35622/* end confdefs.h. */
35623
35624 #include <sys/types.h>
35625 #include <sys/socket.h>
35626
35627int
35628main ()
35629{
35630
35631 size_t len;
35632 getsockname(0, 0, &len);
35633
35634 ;
35635 return 0;
35636}
35637_ACEOF
35638rm -f conftest.$ac_objext
35639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 35640 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35641 ac_status=$?
243f8ae5
VS
35642 grep -v '^ *+' conftest.er1 >conftest.err
35643 rm -f conftest.er1
35644 cat conftest.err >&5
f93ca9fd
VS
35645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35646 (exit $ac_status); } &&
243f8ae5
VS
35647 { ac_try='test -z "$ac_c_werror_flag"
35648 || test ! -s conftest.err'
35649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35650 (eval $ac_try) 2>&5
35651 ac_status=$?
35652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653 (exit $ac_status); }; } &&
35654 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35656 (eval $ac_try) 2>&5
35657 ac_status=$?
35658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35659 (exit $ac_status); }; }; then
35660 wx_cv_type_getsockname3=size_t
f6bcfd97 35661else
f93ca9fd
VS
35662 echo "$as_me: failed program was:" >&5
35663sed 's/^/| /' conftest.$ac_ext >&5
35664
e6cc62c6 35665cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35666/* confdefs.h. */
35667_ACEOF
35668cat confdefs.h >>conftest.$ac_ext
35669cat >>conftest.$ac_ext <<_ACEOF
35670/* end confdefs.h. */
35671
f93ca9fd
VS
35672 #include <sys/types.h>
35673 #include <sys/socket.h>
35674
e6cc62c6
VS
35675int
35676main ()
35677{
f93ca9fd
VS
35678
35679 int len;
35680 getsockname(0, 0, &len);
35681
e6cc62c6
VS
35682 ;
35683 return 0;
35684}
35685_ACEOF
f93ca9fd
VS
35686rm -f conftest.$ac_objext
35687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 35688 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35689 ac_status=$?
243f8ae5
VS
35690 grep -v '^ *+' conftest.er1 >conftest.err
35691 rm -f conftest.er1
35692 cat conftest.err >&5
e6cc62c6
VS
35693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35694 (exit $ac_status); } &&
243f8ae5
VS
35695 { ac_try='test -z "$ac_c_werror_flag"
35696 || test ! -s conftest.err'
35697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35698 (eval $ac_try) 2>&5
35699 ac_status=$?
35700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35701 (exit $ac_status); }; } &&
35702 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35704 (eval $ac_try) 2>&5
35705 ac_status=$?
35706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35707 (exit $ac_status); }; }; then
f93ca9fd 35708 wx_cv_type_getsockname3=int
e6cc62c6
VS
35709else
35710 echo "$as_me: failed program was:" >&5
35711sed 's/^/| /' conftest.$ac_ext >&5
35712
f93ca9fd
VS
35713wx_cv_type_getsockname3=unknown
35714
e6cc62c6 35715fi
243f8ae5 35716rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35717
f6bcfd97 35718fi
243f8ae5 35719rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35720
f93ca9fd 35721 CFLAGS="$CFLAGS_OLD"
0e012a93
VZ
35722
35723
f6bcfd97 35724fi
243f8ae5 35725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35726
f93ca9fd
VS
35727fi
35728echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35729echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35730
35731 if test "$wx_cv_type_getsockname3" = "unknown"; then
35732 wxUSE_SOCKETS=no
35733 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35734echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35735 else
35736 cat >>confdefs.h <<_ACEOF
35737#define SOCKLEN_T $wx_cv_type_getsockname3
35738_ACEOF
f6bcfd97 35739
10f2d63a
VZ
35740 fi
35741 fi
35742fi
35743
f93ca9fd 35744if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 35745 cat >>confdefs.h <<\_ACEOF
f93ca9fd 35746#define wxUSE_SOCKETS 1
e6cc62c6 35747_ACEOF
0b9ab0bd 35748
f93ca9fd 35749 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
1948bb32 35750fi
f93ca9fd
VS
35751
35752if test "$wxUSE_PROTOCOL" = "yes"; then
35753 if test "$wxUSE_SOCKETS" != "yes"; then
35754 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35755echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35756 wxUSE_PROTOCOL=no
35757 fi
35758fi
35759
35760if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 35761 cat >>confdefs.h <<\_ACEOF
f93ca9fd 35762#define wxUSE_PROTOCOL 1
e6cc62c6 35763_ACEOF
10f2d63a 35764
f93ca9fd
VS
35765
35766 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35767 cat >>confdefs.h <<\_ACEOF
35768#define wxUSE_PROTOCOL_HTTP 1
35769_ACEOF
35770
35771 fi
35772 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35773 cat >>confdefs.h <<\_ACEOF
35774#define wxUSE_PROTOCOL_FTP 1
35775_ACEOF
35776
35777 fi
35778 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35779 cat >>confdefs.h <<\_ACEOF
35780#define wxUSE_PROTOCOL_FILE 1
35781_ACEOF
35782
35783 fi
35784else
35785 if test "$wxUSE_FS_INET" = "yes"; then
35786 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35787echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35788 wxUSE_FS_INET="no"
35789 fi
10f2d63a
VZ
35790fi
35791
f93ca9fd
VS
35792if test "$wxUSE_URL" = "yes"; then
35793 if test "$wxUSE_PROTOCOL" != "yes"; then
35794 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35795echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35796 wxUSE_URL=no
35797 fi
35798 if test "$wxUSE_URL" = "yes"; then
35799 cat >>confdefs.h <<\_ACEOF
35800#define wxUSE_URL 1
35801_ACEOF
35802
35803 fi
35804fi
35805
35806if test "$wxUSE_FS_INET" = "yes"; then
35807 cat >>confdefs.h <<\_ACEOF
35808#define wxUSE_FS_INET 1
35809_ACEOF
35810
35811fi
35812
35813
35814if test "$wxUSE_GUI" = "yes"; then
35815
35816 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35817 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35818echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35819 wxUSE_JOYSTICK=no
35820 fi
35821
35822 if test "$TOOLKIT" != "MSW"; then
35823 if test "$wxUSE_JOYSTICK" = "yes"; then
35824
35825for ac_header in linux/joystick.h
35826do
35827as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35828if eval "test \"\${$as_ac_Header+set}\" = set"; then
35829 echo "$as_me:$LINENO: checking for $ac_header" >&5
35830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35831if eval "test \"\${$as_ac_Header+set}\" = set"; then
35832 echo $ECHO_N "(cached) $ECHO_C" >&6
35833fi
35834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35836else
35837 # Is the header compilable?
35838echo "$as_me:$LINENO: checking $ac_header usability" >&5
35839echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35840cat >conftest.$ac_ext <<_ACEOF
35841/* confdefs.h. */
35842_ACEOF
35843cat confdefs.h >>conftest.$ac_ext
35844cat >>conftest.$ac_ext <<_ACEOF
35845/* end confdefs.h. */
35846$ac_includes_default
35847#include <$ac_header>
35848_ACEOF
35849rm -f conftest.$ac_objext
35850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 35851 (eval $ac_compile) 2>conftest.er1
f93ca9fd 35852 ac_status=$?
243f8ae5
VS
35853 grep -v '^ *+' conftest.er1 >conftest.err
35854 rm -f conftest.er1
35855 cat conftest.err >&5
f93ca9fd
VS
35856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35857 (exit $ac_status); } &&
243f8ae5
VS
35858 { ac_try='test -z "$ac_c_werror_flag"
35859 || test ! -s conftest.err'
35860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35861 (eval $ac_try) 2>&5
35862 ac_status=$?
35863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35864 (exit $ac_status); }; } &&
35865 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
35866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35867 (eval $ac_try) 2>&5
35868 ac_status=$?
35869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35870 (exit $ac_status); }; }; then
35871 ac_header_compiler=yes
35872else
35873 echo "$as_me: failed program was:" >&5
35874sed 's/^/| /' conftest.$ac_ext >&5
35875
35876ac_header_compiler=no
35877fi
243f8ae5 35878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
35879echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35880echo "${ECHO_T}$ac_header_compiler" >&6
35881
35882# Is the header present?
35883echo "$as_me:$LINENO: checking $ac_header presence" >&5
35884echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35885cat >conftest.$ac_ext <<_ACEOF
35886/* confdefs.h. */
35887_ACEOF
35888cat confdefs.h >>conftest.$ac_ext
35889cat >>conftest.$ac_ext <<_ACEOF
35890/* end confdefs.h. */
35891#include <$ac_header>
35892_ACEOF
35893if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35895 ac_status=$?
35896 grep -v '^ *+' conftest.er1 >conftest.err
35897 rm -f conftest.er1
35898 cat conftest.err >&5
35899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900 (exit $ac_status); } >/dev/null; then
35901 if test -s conftest.err; then
35902 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 35903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
f93ca9fd
VS
35904 else
35905 ac_cpp_err=
35906 fi
35907else
35908 ac_cpp_err=yes
35909fi
35910if test -z "$ac_cpp_err"; then
35911 ac_header_preproc=yes
35912else
35913 echo "$as_me: failed program was:" >&5
35914sed 's/^/| /' conftest.$ac_ext >&5
35915
35916 ac_header_preproc=no
35917fi
35918rm -f conftest.err conftest.$ac_ext
35919echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35920echo "${ECHO_T}$ac_header_preproc" >&6
35921
35922# So? What about this header?
243f8ae5
VS
35923case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35924 yes:no: )
f93ca9fd
VS
35925 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35926echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
35927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35928echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35929 ac_header_preproc=yes
f93ca9fd 35930 ;;
243f8ae5 35931 no:yes:* )
f93ca9fd
VS
35932 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35933echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
35934 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35935echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35936 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35937echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35938 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35939echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
f93ca9fd
VS
35940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35941echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
35942 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35943echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
f93ca9fd
VS
35944 (
35945 cat <<\_ASBOX
243f8ae5
VS
35946## ----------------------------------------- ##
35947## Report this to wx-dev@lists.wxwindows.org ##
35948## ----------------------------------------- ##
f93ca9fd
VS
35949_ASBOX
35950 ) |
35951 sed "s/^/$as_me: WARNING: /" >&2
35952 ;;
35953esac
35954echo "$as_me:$LINENO: checking for $ac_header" >&5
35955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35956if eval "test \"\${$as_ac_Header+set}\" = set"; then
35957 echo $ECHO_N "(cached) $ECHO_C" >&6
35958else
243f8ae5 35959 eval "$as_ac_Header=\$ac_header_preproc"
f93ca9fd
VS
35960fi
35961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35962echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35963
35964fi
35965if test `eval echo '${'$as_ac_Header'}'` = yes; then
35966 cat >>confdefs.h <<_ACEOF
35967#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35968_ACEOF
35969
35970fi
35971
35972done
35973
35974 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35975 wxUSE_JOYSTICK=no
35976 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35977echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35978 fi
35979 fi
35980 fi
35981
35982 if test "$wxUSE_JOYSTICK" = "yes"; then
35983 cat >>confdefs.h <<\_ACEOF
35984#define wxUSE_JOYSTICK 1
35985_ACEOF
35986
35987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35988 fi
35989fi
35990
35991
35992
8284b0c5 35993
1e6feb95 35994if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 35995 cat >>confdefs.h <<\_ACEOF
1e6feb95 35996#define wxUSE_FONTMAP 1
e6cc62c6 35997_ACEOF
1e6feb95
VZ
35998
35999fi
36000
10f2d63a 36001if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 36002 cat >>confdefs.h <<\_ACEOF
10f2d63a 36003#define wxUSE_UNICODE 1
e6cc62c6 36004_ACEOF
10f2d63a 36005
8284b0c5 36006
eb854003 36007 if test "$USE_WIN32" != 1; then
bbc3925a
VS
36008 wxUSE_UNICODE_MSLU=no
36009 fi
a72a4bfa 36010
eb854003 36011 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
36012 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
36013echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
36014if test "${ac_cv_lib_unicows_main+set}" = set; then
36015 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 36016else
e6cc62c6 36017 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 36018LIBS="-lunicows $LIBS"
e6cc62c6 36019cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36020/* confdefs.h. */
36021_ACEOF
36022cat confdefs.h >>conftest.$ac_ext
36023cat >>conftest.$ac_ext <<_ACEOF
36024/* end confdefs.h. */
a72a4bfa 36025
8284b0c5 36026
e6cc62c6
VS
36027int
36028main ()
36029{
36030main ();
36031 ;
36032 return 0;
36033}
36034_ACEOF
36035rm -f conftest.$ac_objext conftest$ac_exeext
36036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 36037 (eval $ac_link) 2>conftest.er1
e6cc62c6 36038 ac_status=$?
243f8ae5
VS
36039 grep -v '^ *+' conftest.er1 >conftest.err
36040 rm -f conftest.er1
36041 cat conftest.err >&5
e6cc62c6
VS
36042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36043 (exit $ac_status); } &&
243f8ae5
VS
36044 { ac_try='test -z "$ac_c_werror_flag"
36045 || test ! -s conftest.err'
36046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36047 (eval $ac_try) 2>&5
36048 ac_status=$?
36049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36050 (exit $ac_status); }; } &&
36051 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36053 (eval $ac_try) 2>&5
36054 ac_status=$?
36055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36056 (exit $ac_status); }; }; then
36057 ac_cv_lib_unicows_main=yes
36058else
36059 echo "$as_me: failed program was:" >&5
36060sed 's/^/| /' conftest.$ac_ext >&5
36061
36062ac_cv_lib_unicows_main=no
36063fi
243f8ae5
VS
36064rm -f conftest.err conftest.$ac_objext \
36065 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36066LIBS=$ac_check_lib_save_LIBS
36067fi
36068echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
36069echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
36070if test $ac_cv_lib_unicows_main = yes; then
36071
36072 cat >>confdefs.h <<\_ACEOF
a72a4bfa 36073#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
36074_ACEOF
36075
a72a4bfa 36076
a72a4bfa 36077else
a72a4bfa 36078
e6cc62c6
VS
36079 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36080 Applications will only run on Windows NT/2000/XP!" >&5
36081echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
36082 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 36083 wxUSE_UNICODE_MSLU=no
e6cc62c6 36084
a72a4bfa
VS
36085fi
36086
36087 fi
10f2d63a
VZ
36088fi
36089
10f2d63a 36090if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 36091 cat >>confdefs.h <<\_ACEOF
10f2d63a 36092#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 36093_ACEOF
10f2d63a
VZ
36094
36095fi
36096
8284b0c5 36097
10f2d63a 36098if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 36099 cat >>confdefs.h <<\_ACEOF
10f2d63a 36100#define wxUSE_POSTSCRIPT 1
e6cc62c6 36101_ACEOF
10f2d63a
VZ
36102
36103fi
36104
e6cc62c6 36105cat >>confdefs.h <<\_ACEOF
10f2d63a 36106#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 36107_ACEOF
10f2d63a 36108
8284b0c5 36109
e6cc62c6 36110cat >>confdefs.h <<\_ACEOF
10f2d63a 36111#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 36112_ACEOF
10f2d63a 36113
8284b0c5
MB
36114
36115
10f2d63a 36116if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 36117 cat >>confdefs.h <<\_ACEOF
10f2d63a 36118#define wxUSE_CONSTRAINTS 1
e6cc62c6 36119_ACEOF
10f2d63a
VZ
36120
36121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
36122fi
36123
3879ecda 36124if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 36125 cat >>confdefs.h <<\_ACEOF
10f2d63a 36126#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 36127_ACEOF
10f2d63a 36128
1772d20c 36129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
36130fi
36131
36132if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 36133 cat >>confdefs.h <<\_ACEOF
10f2d63a 36134#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 36135_ACEOF
10f2d63a
VZ
36136
36137 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
36138 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
36139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
36140 fi
36141fi
36142
36143if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 36144 cat >>confdefs.h <<\_ACEOF
10f2d63a 36145#define wxUSE_HELP 1
e6cc62c6 36146_ACEOF
10f2d63a
VZ
36147
36148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 36149
77e13408 36150 if test "$wxUSE_MSW" = 1; then
031d8228 36151 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 36152 cat >>confdefs.h <<\_ACEOF
29fd3c0c 36153#define wxUSE_MS_HTML_HELP 1
e6cc62c6 36154_ACEOF
29fd3c0c 36155
3e44f09d 36156 fi
3379ed37 36157 fi
031d8228
VS
36158
36159 if test "$wxUSE_WXHTML_HELP" = "yes"; then
36160 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 36161 cat >>confdefs.h <<\_ACEOF
031d8228 36162#define wxUSE_WXHTML_HELP 1
e6cc62c6 36163_ACEOF
031d8228
VS
36164
36165 else
e6cc62c6
VS
36166 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
36167echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
36168 wxUSE_WXHTML_HELP=no
36169 fi
36170 fi
10f2d63a
VZ
36171fi
36172
36173if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
36174 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36175 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
36176echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 36177 else
e6cc62c6 36178 cat >>confdefs.h <<\_ACEOF
10f2d63a 36179#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 36180_ACEOF
10f2d63a
VZ
36181
36182 fi
36183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
36184fi
36185
e6cc62c6
VS
36186if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
36187 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
36188echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
36189 { (exit 1); exit 1; }; }
36190fi
36191
36192
f95e4495 36193if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
e6cc62c6
VS
36194 -o "$wxUSE_CLIPBOARD" = "yes" \
36195 -o "$wxUSE_OLE" = "yes" \
36196 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
36197
36198for ac_header in ole2.h
36199do
36200as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36201if eval "test \"\${$as_ac_Header+set}\" = set"; then
36202 echo "$as_me:$LINENO: checking for $ac_header" >&5
36203echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36204if eval "test \"\${$as_ac_Header+set}\" = set"; then
36205 echo $ECHO_N "(cached) $ECHO_C" >&6
36206fi
36207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36208echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36209else
36210 # Is the header compilable?
36211echo "$as_me:$LINENO: checking $ac_header usability" >&5
36212echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36213cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36214/* confdefs.h. */
36215_ACEOF
36216cat confdefs.h >>conftest.$ac_ext
36217cat >>conftest.$ac_ext <<_ACEOF
36218/* end confdefs.h. */
36219$ac_includes_default
36220#include <$ac_header>
36221_ACEOF
36222rm -f conftest.$ac_objext
36223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 36224 (eval $ac_compile) 2>conftest.er1
e6cc62c6 36225 ac_status=$?
243f8ae5
VS
36226 grep -v '^ *+' conftest.er1 >conftest.err
36227 rm -f conftest.er1
36228 cat conftest.err >&5
e6cc62c6
VS
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); } &&
243f8ae5
VS
36231 { ac_try='test -z "$ac_c_werror_flag"
36232 || test ! -s conftest.err'
36233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36234 (eval $ac_try) 2>&5
36235 ac_status=$?
36236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237 (exit $ac_status); }; } &&
36238 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
36239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36240 (eval $ac_try) 2>&5
36241 ac_status=$?
36242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243 (exit $ac_status); }; }; then
36244 ac_header_compiler=yes
36245else
36246 echo "$as_me: failed program was:" >&5
36247sed 's/^/| /' conftest.$ac_ext >&5
36248
36249ac_header_compiler=no
36250fi
243f8ae5 36251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
36252echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36253echo "${ECHO_T}$ac_header_compiler" >&6
36254
36255# Is the header present?
36256echo "$as_me:$LINENO: checking $ac_header presence" >&5
36257echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36258cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36259/* confdefs.h. */
36260_ACEOF
36261cat confdefs.h >>conftest.$ac_ext
36262cat >>conftest.$ac_ext <<_ACEOF
36263/* end confdefs.h. */
36264#include <$ac_header>
36265_ACEOF
36266if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36268 ac_status=$?
36269 grep -v '^ *+' conftest.er1 >conftest.err
36270 rm -f conftest.er1
36271 cat conftest.err >&5
36272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273 (exit $ac_status); } >/dev/null; then
36274 if test -s conftest.err; then
36275 ac_cpp_err=$ac_c_preproc_warn_flag
243f8ae5 36276 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
36277 else
36278 ac_cpp_err=
36279 fi
36280else
36281 ac_cpp_err=yes
36282fi
36283if test -z "$ac_cpp_err"; then
36284 ac_header_preproc=yes
36285else
36286 echo "$as_me: failed program was:" >&5
36287sed 's/^/| /' conftest.$ac_ext >&5
36288
36289 ac_header_preproc=no
36290fi
36291rm -f conftest.err conftest.$ac_ext
36292echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36293echo "${ECHO_T}$ac_header_preproc" >&6
36294
36295# So? What about this header?
243f8ae5
VS
36296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36297 yes:no: )
e6cc62c6
VS
36298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36299echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
243f8ae5
VS
36300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36301echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36302 ac_header_preproc=yes
e6cc62c6 36303 ;;
243f8ae5 36304 no:yes:* )
e6cc62c6
VS
36305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36306echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
243f8ae5
VS
36307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36308echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36310echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36312echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
36313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36314echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
243f8ae5
VS
36315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36316echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
36317 (
36318 cat <<\_ASBOX
243f8ae5
VS
36319## ----------------------------------------- ##
36320## Report this to wx-dev@lists.wxwindows.org ##
36321## ----------------------------------------- ##
e6cc62c6
VS
36322_ASBOX
36323 ) |
36324 sed "s/^/$as_me: WARNING: /" >&2
36325 ;;
36326esac
36327echo "$as_me:$LINENO: checking for $ac_header" >&5
36328echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36329if eval "test \"\${$as_ac_Header+set}\" = set"; then
36330 echo $ECHO_N "(cached) $ECHO_C" >&6
36331else
243f8ae5 36332 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
36333fi
36334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36336
10f2d63a 36337fi
e6cc62c6
VS
36338if test `eval echo '${'$as_ac_Header'}'` = yes; then
36339 cat >>confdefs.h <<_ACEOF
36340#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36341_ACEOF
10f2d63a 36342
10f2d63a 36343fi
e6cc62c6 36344
10f2d63a
VZ
36345done
36346
8284b0c5 36347
2b9bdf71
VZ
36348 if test "$ac_cv_header_ole2_h" = "yes" ; then
36349 if test "$GCC" = yes ; then
8284b0c5
MB
36350
36351
e6cc62c6
VS
36352 ac_ext=cc
36353ac_cpp='$CXXCPP $CPPFLAGS'
36354ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36355ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36356ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36357
36358
36359 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
36360echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
36361 cat >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. */
8284b0c5
MB
36367#include <windows.h>
36368 #include <ole2.h>
e6cc62c6
VS
36369int
36370main ()
36371{
8284b0c5 36372
e6cc62c6
VS
36373 ;
36374 return 0;
36375}
36376_ACEOF
36377rm -f conftest.$ac_objext
36378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 36379 (eval $ac_compile) 2>conftest.er1
e6cc62c6 36380 ac_status=$?
243f8ae5
VS
36381 grep -v '^ *+' conftest.er1 >conftest.err
36382 rm -f conftest.er1
36383 cat conftest.err >&5
e6cc62c6
VS
36384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36385 (exit $ac_status); } &&
243f8ae5
VS
36386 { ac_try='test -z "$ac_cxx_werror_flag"
36387 || test ! -s conftest.err'
36388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36389 (eval $ac_try) 2>&5
36390 ac_status=$?
36391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36392 (exit $ac_status); }; } &&
36393 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
36394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36395 (eval $ac_try) 2>&5
36396 ac_status=$?
36397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36398 (exit $ac_status); }; }; then
36399 echo "$as_me:$LINENO: result: no" >&5
36400echo "${ECHO_T}no" >&6
36401else
36402 echo "$as_me: failed program was:" >&5
36403sed 's/^/| /' conftest.$ac_ext >&5
36404
36405echo "$as_me:$LINENO: result: yes" >&5
36406echo "${ECHO_T}yes" >&6
8284b0c5
MB
36407 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
36408fi
243f8ae5 36409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 36410 ac_ext=c
8284b0c5 36411ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
36412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36414ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 36415
2b9bdf71 36416 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 36417 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
f95e4495
VS
36418 if test "$wxUSE_OLE" = "yes" ; then
36419 cat >>confdefs.h <<\_ACEOF
4f11a343 36420#define wxUSE_OLE 1
e6cc62c6 36421_ACEOF
4f11a343 36422
f95e4495 36423 fi
2b9bdf71
VZ
36424 fi
36425
f95e4495
VS
36426 if test "$wxUSE_DATAOBJ" = "yes" ; then
36427 cat >>confdefs.h <<\_ACEOF
2b9bdf71 36428#define wxUSE_DATAOBJ 1
e6cc62c6 36429_ACEOF
2b9bdf71 36430
f95e4495 36431 fi
2b9bdf71 36432 else
e6cc62c6
VS
36433 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
36434echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
36435
36436 wxUSE_CLIPBOARD=no
36437 wxUSE_DRAG_AND_DROP=no
36438 wxUSE_DATAOBJ=no
3bce6687
JS
36439 wxUSE_OLE=no
36440 fi
36441
36442 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 36443 cat >>confdefs.h <<\_ACEOF
3bce6687 36444#define wxUSE_METAFILE 1
e6cc62c6 36445_ACEOF
3bce6687
JS
36446
36447
e6cc62c6 36448 cat >>confdefs.h <<\_ACEOF
3bce6687 36449#define wxUSE_ENH_METAFILE 1
e6cc62c6 36450_ACEOF
3bce6687
JS
36451
36452 fi
36453fi
36454
2b9bdf71
VZ
36455if test "$wxUSE_IPC" = "yes"; then
36456 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
36457 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
36458echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
36459 fi
36460
e6cc62c6 36461 cat >>confdefs.h <<\_ACEOF
2b9bdf71 36462#define wxUSE_IPC 1
e6cc62c6 36463_ACEOF
2b9bdf71
VZ
36464
36465fi
36466
36467if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 36468 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
36469 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
36470echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
36471 wxUSE_CLIPBOARD=no
36472 fi
36473
36474 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 36475 cat >>confdefs.h <<\_ACEOF
2b9bdf71 36476#define wxUSE_CLIPBOARD 1
e6cc62c6 36477_ACEOF
2b9bdf71 36478
8284b0c5 36479
e6cc62c6 36480 cat >>confdefs.h <<\_ACEOF
673f4220 36481#define wxUSE_DATAOBJ 1
e6cc62c6 36482_ACEOF
673f4220 36483
6c657b52 36484 fi
2b9bdf71
VZ
36485fi
36486
36487if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
36488 if test "$wxUSE_GTK" = 1; then
36489 if test "$WXGTK12" != 1; then
e6cc62c6
VS
36490 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
36491echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
36492 wxUSE_DRAG_AND_DROP=no
36493 fi
36494 fi
36495
2b9bdf71 36496 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
36497 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
36498echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
36499 wxUSE_DRAG_AND_DROP=no
36500 fi
36501
f79bd02d 36502 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
36503 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36504echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
36505 wxUSE_DRAG_AND_DROP=no
36506 fi
36507
6c657b52 36508 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
36509 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36510echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
36511 wxUSE_DRAG_AND_DROP=no
36512 fi
36513
10f2d63a 36514 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 36515 cat >>confdefs.h <<\_ACEOF
10f2d63a 36516#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 36517_ACEOF
10f2d63a
VZ
36518
36519 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36520 fi
36521
36522fi
36523
36524if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 36525 cat >>confdefs.h <<\_ACEOF
10f2d63a 36526#define wxUSE_SPLINES 1
e6cc62c6 36527_ACEOF
10f2d63a
VZ
36528
36529fi
36530
8284b0c5 36531
1e6feb95
VZ
36532USES_CONTROLS=0
36533if test "$wxUSE_CONTROLS" = "yes"; then
36534 USES_CONTROLS=1
36535fi
36536
10f2d63a 36537if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 36538 cat >>confdefs.h <<\_ACEOF
10f2d63a 36539#define wxUSE_ACCEL 1
e6cc62c6 36540_ACEOF
10f2d63a 36541
1e6feb95
VZ
36542 USES_CONTROLS=1
36543fi
36544
36545if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 36546 cat >>confdefs.h <<\_ACEOF
1e6feb95 36547#define wxUSE_BUTTON 1
e6cc62c6 36548_ACEOF
1e6feb95
VZ
36549
36550 USES_CONTROLS=1
36551fi
36552
36553if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 36554 cat >>confdefs.h <<\_ACEOF
1e6feb95 36555#define wxUSE_BMPBUTTON 1
e6cc62c6 36556_ACEOF
1e6feb95
VZ
36557
36558 USES_CONTROLS=1
36559fi
36560
36561if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 36562 cat >>confdefs.h <<\_ACEOF
1e6feb95 36563#define wxUSE_CALENDARCTRL 1
e6cc62c6 36564_ACEOF
1e6feb95
VZ
36565
36566 USES_CONTROLS=1
36567 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
36568fi
36569
36570if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 36571 cat >>confdefs.h <<\_ACEOF
10f2d63a 36572#define wxUSE_CARET 1
e6cc62c6 36573_ACEOF
10f2d63a 36574
1e6feb95 36575 USES_CONTROLS=1
10f2d63a
VZ
36576 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36577fi
36578
36579if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 36580 cat >>confdefs.h <<\_ACEOF
10f2d63a 36581#define wxUSE_COMBOBOX 1
e6cc62c6 36582_ACEOF
10f2d63a 36583
1e6feb95 36584 USES_CONTROLS=1
10f2d63a
VZ
36585fi
36586
36587if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 36588 cat >>confdefs.h <<\_ACEOF
10f2d63a 36589#define wxUSE_CHOICE 1
e6cc62c6 36590_ACEOF
10f2d63a 36591
1e6feb95 36592 USES_CONTROLS=1
10f2d63a
VZ
36593fi
36594
36595if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 36596 cat >>confdefs.h <<\_ACEOF
10f2d63a 36597#define wxUSE_CHECKBOX 1
e6cc62c6 36598_ACEOF
10f2d63a 36599
1e6feb95 36600 USES_CONTROLS=1
10f2d63a
VZ
36601fi
36602
36603if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 36604 cat >>confdefs.h <<\_ACEOF
10f2d63a 36605#define wxUSE_CHECKLISTBOX 1
e6cc62c6 36606_ACEOF
10f2d63a 36607
1e6feb95 36608 USES_CONTROLS=1
10f2d63a
VZ
36609 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36610fi
36611
da494b40 36612if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 36613 cat >>confdefs.h <<\_ACEOF
da494b40 36614#define wxUSE_DISPLAY 1
e6cc62c6 36615_ACEOF
da494b40
MB
36616
36617 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36618fi
36619
10f2d63a 36620if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 36621 cat >>confdefs.h <<\_ACEOF
10f2d63a 36622#define wxUSE_GAUGE 1
e6cc62c6 36623_ACEOF
10f2d63a 36624
1e6feb95 36625 USES_CONTROLS=1
10f2d63a
VZ
36626fi
36627
d6a55c4b 36628if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 36629 cat >>confdefs.h <<\_ACEOF
d6a55c4b 36630#define wxUSE_GRID 1
e6cc62c6 36631_ACEOF
10f2d63a 36632
1e6feb95 36633 USES_CONTROLS=1
d6a55c4b 36634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
36635fi
36636
36637if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36638 cat >>confdefs.h <<\_ACEOF
10f2d63a 36639#define wxUSE_IMAGLIST 1
e6cc62c6 36640_ACEOF
10f2d63a
VZ
36641
36642fi
36643
0e012a93
VZ
36644if test "$wxUSE_LISTBOOK" = "yes"; then
36645 cat >>confdefs.h <<\_ACEOF
36646#define wxUSE_LISTBOOK 1
36647_ACEOF
36648
36649 USES_CONTROLS=1
36650fi
36651
10f2d63a 36652if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 36653 cat >>confdefs.h <<\_ACEOF
10f2d63a 36654#define wxUSE_LISTBOX 1
e6cc62c6 36655_ACEOF
10f2d63a 36656
1e6feb95 36657 USES_CONTROLS=1
10f2d63a
VZ
36658fi
36659
36660if test "$wxUSE_LISTCTRL" = "yes"; then
36661 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36662 cat >>confdefs.h <<\_ACEOF
10f2d63a 36663#define wxUSE_LISTCTRL 1
e6cc62c6 36664_ACEOF
10f2d63a 36665
1e6feb95 36666 USES_CONTROLS=1
10f2d63a
VZ
36667 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36668 else
e6cc62c6
VS
36669 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36670echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
36671 fi
36672fi
36673
36674if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 36675 cat >>confdefs.h <<\_ACEOF
10f2d63a 36676#define wxUSE_NOTEBOOK 1
e6cc62c6 36677_ACEOF
10f2d63a 36678
1e6feb95 36679 USES_CONTROLS=1
10f2d63a
VZ
36680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36681fi
36682
24176f2c 36683
10f2d63a 36684if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 36685 cat >>confdefs.h <<\_ACEOF
10f2d63a 36686#define wxUSE_RADIOBOX 1
e6cc62c6 36687_ACEOF
10f2d63a 36688
1e6feb95 36689 USES_CONTROLS=1
10f2d63a
VZ
36690fi
36691
36692if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 36693 cat >>confdefs.h <<\_ACEOF
10f2d63a 36694#define wxUSE_RADIOBTN 1
e6cc62c6 36695_ACEOF
10f2d63a 36696
1e6feb95 36697 USES_CONTROLS=1
10f2d63a
VZ
36698fi
36699
36700if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 36701 cat >>confdefs.h <<\_ACEOF
10f2d63a 36702#define wxUSE_SASH 1
e6cc62c6 36703_ACEOF
10f2d63a
VZ
36704
36705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36706fi
36707
36708if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 36709 cat >>confdefs.h <<\_ACEOF
10f2d63a 36710#define wxUSE_SCROLLBAR 1
e6cc62c6 36711_ACEOF
10f2d63a 36712
1e6feb95 36713 USES_CONTROLS=1
741a9306 36714 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
36715fi
36716
36717if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 36718 cat >>confdefs.h <<\_ACEOF
10f2d63a 36719#define wxUSE_SLIDER 1
e6cc62c6 36720_ACEOF
10f2d63a 36721
1e6feb95 36722 USES_CONTROLS=1
10f2d63a
VZ
36723fi
36724
36725if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 36726 cat >>confdefs.h <<\_ACEOF
10f2d63a 36727#define wxUSE_SPINBTN 1
e6cc62c6 36728_ACEOF
10f2d63a 36729
1e6feb95 36730 USES_CONTROLS=1
10f2d63a
VZ
36731fi
36732
56cfaa52 36733if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 36734 cat >>confdefs.h <<\_ACEOF
56cfaa52 36735#define wxUSE_SPINCTRL 1
e6cc62c6 36736_ACEOF
56cfaa52 36737
1e6feb95 36738 USES_CONTROLS=1
56cfaa52
RR
36739fi
36740
10f2d63a 36741if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 36742 cat >>confdefs.h <<\_ACEOF
10f2d63a 36743#define wxUSE_SPLITTER 1
e6cc62c6 36744_ACEOF
10f2d63a
VZ
36745
36746 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36747fi
36748
36749if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 36750 cat >>confdefs.h <<\_ACEOF
10f2d63a 36751#define wxUSE_STATBMP 1
e6cc62c6 36752_ACEOF
10f2d63a 36753
1e6feb95 36754 USES_CONTROLS=1
10f2d63a
VZ
36755fi
36756
36757if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 36758 cat >>confdefs.h <<\_ACEOF
10f2d63a 36759#define wxUSE_STATBOX 1
e6cc62c6 36760_ACEOF
10f2d63a 36761
1e6feb95
VZ
36762 USES_CONTROLS=1
36763fi
36764
36765if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 36766 cat >>confdefs.h <<\_ACEOF
1e6feb95 36767#define wxUSE_STATTEXT 1
e6cc62c6 36768_ACEOF
1e6feb95
VZ
36769
36770 USES_CONTROLS=1
10f2d63a
VZ
36771fi
36772
36773if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 36774 cat >>confdefs.h <<\_ACEOF
10f2d63a 36775#define wxUSE_STATLINE 1
e6cc62c6 36776_ACEOF
10f2d63a 36777
89e6bf6d 36778 USES_CONTROLS=1
10f2d63a
VZ
36779fi
36780
36781if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 36782 cat >>confdefs.h <<\_ACEOF
10f2d63a 36783#define wxUSE_STATUSBAR 1
e6cc62c6 36784_ACEOF
10f2d63a 36785
1e6feb95 36786 USES_CONTROLS=1
698dcdb6 36787
2286341c 36788 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
36789fi
36790
36791if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 36792 cat >>confdefs.h <<\_ACEOF
10f2d63a 36793#define wxUSE_TAB_DIALOG 1
e6cc62c6 36794_ACEOF
10f2d63a
VZ
36795
36796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36797fi
36798
1e6feb95 36799if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 36800 cat >>confdefs.h <<\_ACEOF
1e6feb95 36801#define wxUSE_TEXTCTRL 1
e6cc62c6 36802_ACEOF
1e6feb95
VZ
36803
36804 USES_CONTROLS=1
36805 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36806fi
36807
1db8dc4a 36808if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 36809 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
36810 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36811echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
36812 wxUSE_TOGGLEBTN=no
36813 fi
36814 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
36815 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36816echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
36817 wxUSE_TOGGLEBTN=no
36818 fi
36819
36820 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 36821 cat >>confdefs.h <<\_ACEOF
1db8dc4a 36822#define wxUSE_TOGGLEBTN 1
e6cc62c6 36823_ACEOF
1db8dc4a 36824
1e6feb95 36825 USES_CONTROLS=1
a45d7ab7 36826 fi
1db8dc4a
VZ
36827fi
36828
360d6699 36829if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 36830 cat >>confdefs.h <<\_ACEOF
360d6699 36831#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 36832_ACEOF
360d6699
VZ
36833
36834 wxUSE_TOOLBAR="yes"
1e6feb95 36835 USES_CONTROLS=1
360d6699
VZ
36836fi
36837
10f2d63a 36838if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 36839 cat >>confdefs.h <<\_ACEOF
10f2d63a 36840#define wxUSE_TOOLBAR 1
e6cc62c6 36841_ACEOF
10f2d63a 36842
1e6feb95 36843 USES_CONTROLS=1
698dcdb6 36844
360d6699
VZ
36845 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36846 wxUSE_TOOLBAR_NATIVE="yes"
36847 fi
36848
1e6feb95 36849 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 36850 cat >>confdefs.h <<\_ACEOF
360d6699 36851#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 36852_ACEOF
360d6699 36853
1e6feb95
VZ
36854 USES_CONTROLS=1
36855 fi
36856
36857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
36858fi
36859
10f2d63a
VZ
36860if test "$wxUSE_TOOLTIPS" = "yes"; then
36861 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
36862 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36863echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 36864 else
89e6bf6d 36865 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
36866 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36867echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 36868 else
e6cc62c6 36869 cat >>confdefs.h <<\_ACEOF
10f2d63a 36870#define wxUSE_TOOLTIPS 1
e6cc62c6 36871_ACEOF
10f2d63a
VZ
36872
36873 fi
36874 fi
36875fi
36876
36877if test "$wxUSE_TREECTRL" = "yes"; then
36878 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36879 cat >>confdefs.h <<\_ACEOF
10f2d63a 36880#define wxUSE_TREECTRL 1
e6cc62c6 36881_ACEOF
10f2d63a 36882
1e6feb95 36883 USES_CONTROLS=1
10f2d63a
VZ
36884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36885 else
e6cc62c6
VS
36886 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36887echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
36888 fi
36889fi
36890
9f41d601 36891if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 36892 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
36893 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36894echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 36895 else
833a51f6
MB
36896 if test "$wxUSE_PM" = 1; then
36897 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 36898echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
36899 else
36900 cat >>confdefs.h <<\_ACEOF
9f41d601 36901#define wxUSE_POPUPWIN 1
e6cc62c6 36902_ACEOF
9f41d601 36903
8284b0c5 36904
833a51f6 36905 USES_CONTROLS=1
485cf710 36906 fi
6abe4b65 36907 fi
9f41d601
RR
36908fi
36909
dd964dcc 36910if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 36911 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
36912 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36913echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 36914 else
e6cc62c6 36915 cat >>confdefs.h <<\_ACEOF
dd964dcc 36916#define wxUSE_TIPWINDOW 1
e6cc62c6 36917_ACEOF
dd964dcc 36918
3c011993 36919 fi
dd964dcc
VZ
36920fi
36921
1e6feb95 36922if test "$USES_CONTROLS" = 1; then
e6cc62c6 36923 cat >>confdefs.h <<\_ACEOF
1e6feb95 36924#define wxUSE_CONTROLS 1
e6cc62c6 36925_ACEOF
10f2d63a 36926
10f2d63a
VZ
36927fi
36928
8284b0c5 36929
e46d2a18
VS
36930if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36931 cat >>confdefs.h <<\_ACEOF
36932#define wxUSE_ACCESSIBILITY 1
36933_ACEOF
36934
36935 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36936fi
1e6feb95 36937
24fd6d87 36938if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 36939 cat >>confdefs.h <<\_ACEOF
24fd6d87 36940#define wxUSE_DRAGIMAGE 1
e6cc62c6 36941_ACEOF
24fd6d87
VZ
36942
36943 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36944fi
36945
e46d2a18 36946if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 36947 cat >>confdefs.h <<\_ACEOF
e46d2a18 36948#define wxUSE_EXCEPTIONS 1
e6cc62c6 36949_ACEOF
7bb2947d 36950
e46d2a18
VS
36951fi
36952
36953USE_HTML=0
36954if test "$wxUSE_HTML" = "yes"; then
36955 cat >>confdefs.h <<\_ACEOF
36956#define wxUSE_HTML 1
36957_ACEOF
36958
36959 USE_HTML=1
36960 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
36961fi
36962
1e6feb95 36963if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 36964 cat >>confdefs.h <<\_ACEOF
1e6feb95 36965#define wxUSE_MENUS 1
e6cc62c6 36966_ACEOF
10f2d63a 36967
1e6feb95 36968 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
36969fi
36970
1e6feb95 36971if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 36972 cat >>confdefs.h <<\_ACEOF
1e6feb95 36973#define wxUSE_METAFILE 1
e6cc62c6 36974_ACEOF
10f2d63a 36975
10f2d63a
VZ
36976fi
36977
1e6feb95 36978if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 36979 cat >>confdefs.h <<\_ACEOF
1e6feb95 36980#define wxUSE_MIMETYPE 1
e6cc62c6 36981_ACEOF
10f2d63a 36982
10f2d63a
VZ
36983fi
36984
36985if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 36986 cat >>confdefs.h <<\_ACEOF
10f2d63a 36987#define wxUSE_MINIFRAME 1
e6cc62c6 36988_ACEOF
10f2d63a
VZ
36989
36990 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36991fi
36992
e46d2a18 36993if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 36994 cat >>confdefs.h <<\_ACEOF
e46d2a18 36995#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 36996_ACEOF
10f2d63a 36997
e46d2a18
VS
36998 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36999 "$TOOLKIT" = "MOTIF"; then
37000 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
37001 fi
10f2d63a
VZ
37002fi
37003
e46d2a18 37004
10f2d63a 37005if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 37006 cat >>confdefs.h <<\_ACEOF
1e487827 37007#define wxUSE_VALIDATORS 1
e6cc62c6 37008_ACEOF
703e0a69 37009
698dcdb6
VZ
37010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
37011fi
37012
edae8572 37013if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 37014 cat >>confdefs.h <<\_ACEOF
edae8572 37015#define wxUSE_PALETTE 1
e6cc62c6 37016_ACEOF
edae8572
VZ
37017
37018fi
37019
e46d2a18
VS
37020if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
37021 LIBS=" -lunicows $LIBS"
37022fi
37023
37024
698dcdb6 37025if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 37026 cat >>confdefs.h <<\_ACEOF
698dcdb6 37027#define wxUSE_IMAGE 1
e6cc62c6 37028_ACEOF
698dcdb6 37029
698dcdb6 37030
e46d2a18
VS
37031 if test "$wxUSE_GIF" = "yes" ; then
37032 cat >>confdefs.h <<\_ACEOF
698dcdb6 37033#define wxUSE_GIF 1
e6cc62c6 37034_ACEOF
698dcdb6 37035
e46d2a18 37036 fi
698dcdb6 37037
e46d2a18
VS
37038 if test "$wxUSE_PCX" = "yes" ; then
37039 cat >>confdefs.h <<\_ACEOF
698dcdb6 37040#define wxUSE_PCX 1
e6cc62c6 37041_ACEOF
698dcdb6 37042
e46d2a18 37043 fi
698dcdb6 37044
e46d2a18
VS
37045 if test "$wxUSE_IFF" = "yes" ; then
37046 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 37047#define wxUSE_IFF 1
e6cc62c6 37048_ACEOF
4b6b4dfc 37049
e46d2a18 37050 fi
4b6b4dfc 37051
e46d2a18
VS
37052 if test "$wxUSE_PNM" = "yes" ; then
37053 cat >>confdefs.h <<\_ACEOF
698dcdb6 37054#define wxUSE_PNM 1
e6cc62c6 37055_ACEOF
698dcdb6 37056
e46d2a18 37057 fi
698dcdb6 37058
e46d2a18
VS
37059 if test "$wxUSE_XPM" = "yes" ; then
37060 cat >>confdefs.h <<\_ACEOF
698dcdb6 37061#define wxUSE_XPM 1
e6cc62c6 37062_ACEOF
698dcdb6 37063
e46d2a18 37064 fi
698dcdb6 37065
e46d2a18
VS
37066 if test "$wxUSE_ICO_CUR" = "yes" ; then
37067 cat >>confdefs.h <<\_ACEOF
658974ae 37068#define wxUSE_ICO_CUR 1
e6cc62c6 37069_ACEOF
658974ae 37070
e46d2a18 37071 fi
a72a4bfa
VS
37072fi
37073
8284b0c5 37074
1e6feb95 37075if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 37076 cat >>confdefs.h <<\_ACEOF
1e6feb95 37077#define wxUSE_CHOICEDLG 1
e6cc62c6 37078_ACEOF
1e6feb95
VZ
37079
37080fi
37081
37082if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 37083 cat >>confdefs.h <<\_ACEOF
1e6feb95 37084#define wxUSE_COLOURDLG 1
e6cc62c6 37085_ACEOF
1e6feb95
VZ
37086
37087fi
37088
37089if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 37090 cat >>confdefs.h <<\_ACEOF
1e6feb95 37091#define wxUSE_FILEDLG 1
e6cc62c6 37092_ACEOF
1e6feb95
VZ
37093
37094fi
37095
8db37e06 37096if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 37097 cat >>confdefs.h <<\_ACEOF
8db37e06 37098#define wxUSE_FINDREPLDLG 1
e6cc62c6 37099_ACEOF
8db37e06
VZ
37100
37101fi
37102
1e6feb95 37103if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 37104 cat >>confdefs.h <<\_ACEOF
1e6feb95 37105#define wxUSE_FONTDLG 1
e6cc62c6 37106_ACEOF
1e6feb95
VZ
37107
37108fi
37109
37110if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 37111 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
37112 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
37113echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 37114 else
e6cc62c6 37115 cat >>confdefs.h <<\_ACEOF
1e6feb95 37116#define wxUSE_DIRDLG 1
e6cc62c6 37117_ACEOF
1e6feb95 37118
1e6feb95
VZ
37119 fi
37120fi
37121
37122if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 37123 cat >>confdefs.h <<\_ACEOF
1e6feb95 37124#define wxUSE_MSGDLG 1
e6cc62c6 37125_ACEOF
1e6feb95
VZ
37126
37127fi
37128
37129if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 37130 cat >>confdefs.h <<\_ACEOF
1e6feb95 37131#define wxUSE_NUMBERDLG 1
e6cc62c6 37132_ACEOF
1e6feb95
VZ
37133
37134fi
37135
37136if test "$wxUSE_PROGRESSDLG" = "yes"; then
37137 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
37138 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
37139echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 37140 else
e6cc62c6 37141 cat >>confdefs.h <<\_ACEOF
1e6feb95 37142#define wxUSE_PROGRESSDLG 1
e6cc62c6 37143_ACEOF
1e6feb95
VZ
37144
37145 fi
37146fi
37147
cbca9943 37148if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 37149 cat >>confdefs.h <<\_ACEOF
cbca9943 37150#define wxUSE_SPLASH 1
e6cc62c6 37151_ACEOF
cbca9943
VZ
37152
37153fi
37154
1e6feb95
VZ
37155if test "$wxUSE_STARTUP_TIPS" = "yes"; then
37156 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
37157 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
37158echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 37159 else
e6cc62c6 37160 cat >>confdefs.h <<\_ACEOF
1e6feb95 37161#define wxUSE_STARTUP_TIPS 1
e6cc62c6 37162_ACEOF
1e6feb95 37163
7b4a847f
RR
37164 fi
37165fi
579d8138 37166
8284b0c5 37167if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 37168 cat >>confdefs.h <<\_ACEOF
8284b0c5 37169#define wxUSE_TEXTDLG 1
e6cc62c6 37170_ACEOF
8284b0c5
MB
37171
37172fi
37173
37174if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 37175 cat >>confdefs.h <<\_ACEOF
8284b0c5 37176#define wxUSE_WIZARDDLG 1
e6cc62c6 37177_ACEOF
8284b0c5
MB
37178
37179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
37180fi
37181
37182
37183if test "$cross_compiling" = "yes"; then
37184 OSINFO="\"$host\""
37185else
37186 OSINFO=`uname -s -r -m`
37187 OSINFO="\"$OSINFO\""
37188fi
37189
e6cc62c6 37190cat >>confdefs.h <<_ACEOF
8284b0c5 37191#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 37192_ACEOF
8284b0c5
MB
37193
37194
37195
37196if test "x$prefix" != "xNONE"; then
37197 wxPREFIX=$prefix
37198else
37199 wxPREFIX=$ac_default_prefix
37200fi
37201
e6cc62c6 37202cat >>confdefs.h <<_ACEOF
8284b0c5 37203#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 37204_ACEOF
8284b0c5
MB
37205
37206
e6cc62c6 37207top_builddir_wxconfig=`pwd`
52c71b80 37208
8284b0c5
MB
37209
37210
edd891e2
VS
37211CORE_BASE_LIBS="net base"
37212CORE_GUI_LIBS="adv core"
37213
37214if test "$wxUSE_XML" = "yes" ; then
37215 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
37216fi
45293562
VS
37217if test "$wxUSE_ODBC" != "no" ; then
37218 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
37219 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
37220fi
37221if test "$wxUSE_HTML" = "yes" ; then
37222 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
37223fi
37224
57e7d4ac
VS
37225if test "$wxUSE_GUI" != "yes"; then
37226 CORE_GUI_LIBS=""
37227fi
37228
edd891e2
VS
37229
37230
37231
37232
37233
37234
8284b0c5
MB
37235
37236if test "$wxUSE_MAC" = 1 ; then
37237 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
37238fi
ac0c4cc3
DE
37239if test "$wxUSE_COCOA" = 1 ; then
37240 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
37241fi
8284b0c5
MB
37242
37243
2b5f62a0
VZ
37244LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
37245
37246have_cos=0
37247have_floor=0
e6cc62c6 37248
2b5f62a0
VZ
37249for ac_func in cos
37250do
e6cc62c6
VS
37251as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37252echo "$as_me:$LINENO: checking for $ac_func" >&5
37253echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37254if eval "test \"\${$as_ac_var+set}\" = set"; then
37255 echo $ECHO_N "(cached) $ECHO_C" >&6
37256else
37257 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37258/* confdefs.h. */
37259_ACEOF
37260cat confdefs.h >>conftest.$ac_ext
37261cat >>conftest.$ac_ext <<_ACEOF
37262/* end confdefs.h. */
243f8ae5
VS
37263/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37265#define $ac_func innocuous_$ac_func
37266
2b5f62a0 37267/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37268 which can conflict with char $ac_func (); below.
37269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37270 <limits.h> exists even on freestanding compilers. */
243f8ae5 37271
e6cc62c6
VS
37272#ifdef __STDC__
37273# include <limits.h>
37274#else
37275# include <assert.h>
37276#endif
243f8ae5
VS
37277
37278#undef $ac_func
37279
2b5f62a0 37280/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37281#ifdef __cplusplus
37282extern "C"
37283{
37284#endif
2b5f62a0 37285/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37286 builtin and then its argument prototype would still apply. */
37287char $ac_func ();
2b5f62a0
VZ
37288/* The GNU C library defines this for functions which it implements
37289 to always fail with ENOSYS. Some functions are actually named
37290 something starting with __ and the normal name is an alias. */
37291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37292choke me
37293#else
e6cc62c6
VS
37294char (*f) () = $ac_func;
37295#endif
37296#ifdef __cplusplus
37297}
2b5f62a0
VZ
37298#endif
37299
e6cc62c6
VS
37300int
37301main ()
37302{
37303return f != $ac_func;
37304 ;
37305 return 0;
37306}
37307_ACEOF
37308rm -f conftest.$ac_objext conftest$ac_exeext
37309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 37310 (eval $ac_link) 2>conftest.er1
e6cc62c6 37311 ac_status=$?
243f8ae5
VS
37312 grep -v '^ *+' conftest.er1 >conftest.err
37313 rm -f conftest.er1
37314 cat conftest.err >&5
e6cc62c6
VS
37315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37316 (exit $ac_status); } &&
243f8ae5
VS
37317 { ac_try='test -z "$ac_c_werror_flag"
37318 || test ! -s conftest.err'
37319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37320 (eval $ac_try) 2>&5
37321 ac_status=$?
37322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37323 (exit $ac_status); }; } &&
37324 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37326 (eval $ac_try) 2>&5
37327 ac_status=$?
37328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37329 (exit $ac_status); }; }; then
37330 eval "$as_ac_var=yes"
37331else
37332 echo "$as_me: failed program was:" >&5
37333sed 's/^/| /' conftest.$ac_ext >&5
37334
37335eval "$as_ac_var=no"
37336fi
243f8ae5
VS
37337rm -f conftest.err conftest.$ac_objext \
37338 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37339fi
37340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37341echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37342if test `eval echo '${'$as_ac_var'}'` = yes; then
37343 cat >>confdefs.h <<_ACEOF
37344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37345_ACEOF
2b5f62a0 37346 have_cos=1
2b5f62a0
VZ
37347fi
37348done
37349
e6cc62c6 37350
2b5f62a0
VZ
37351for ac_func in floor
37352do
e6cc62c6
VS
37353as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37354echo "$as_me:$LINENO: checking for $ac_func" >&5
37355echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37356if eval "test \"\${$as_ac_var+set}\" = set"; then
37357 echo $ECHO_N "(cached) $ECHO_C" >&6
37358else
37359 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37360/* confdefs.h. */
37361_ACEOF
37362cat confdefs.h >>conftest.$ac_ext
37363cat >>conftest.$ac_ext <<_ACEOF
37364/* end confdefs.h. */
243f8ae5
VS
37365/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37367#define $ac_func innocuous_$ac_func
37368
2b5f62a0 37369/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37370 which can conflict with char $ac_func (); below.
37371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37372 <limits.h> exists even on freestanding compilers. */
243f8ae5 37373
e6cc62c6
VS
37374#ifdef __STDC__
37375# include <limits.h>
37376#else
37377# include <assert.h>
37378#endif
243f8ae5
VS
37379
37380#undef $ac_func
37381
2b5f62a0 37382/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37383#ifdef __cplusplus
37384extern "C"
37385{
37386#endif
2b5f62a0 37387/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37388 builtin and then its argument prototype would still apply. */
37389char $ac_func ();
2b5f62a0
VZ
37390/* The GNU C library defines this for functions which it implements
37391 to always fail with ENOSYS. Some functions are actually named
37392 something starting with __ and the normal name is an alias. */
37393#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37394choke me
37395#else
e6cc62c6
VS
37396char (*f) () = $ac_func;
37397#endif
37398#ifdef __cplusplus
37399}
2b5f62a0
VZ
37400#endif
37401
e6cc62c6
VS
37402int
37403main ()
37404{
37405return f != $ac_func;
37406 ;
37407 return 0;
37408}
37409_ACEOF
37410rm -f conftest.$ac_objext conftest$ac_exeext
37411if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 37412 (eval $ac_link) 2>conftest.er1
e6cc62c6 37413 ac_status=$?
243f8ae5
VS
37414 grep -v '^ *+' conftest.er1 >conftest.err
37415 rm -f conftest.er1
37416 cat conftest.err >&5
e6cc62c6
VS
37417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37418 (exit $ac_status); } &&
243f8ae5
VS
37419 { ac_try='test -z "$ac_c_werror_flag"
37420 || test ! -s conftest.err'
37421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37422 (eval $ac_try) 2>&5
37423 ac_status=$?
37424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37425 (exit $ac_status); }; } &&
37426 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37428 (eval $ac_try) 2>&5
37429 ac_status=$?
37430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37431 (exit $ac_status); }; }; then
37432 eval "$as_ac_var=yes"
37433else
37434 echo "$as_me: failed program was:" >&5
37435sed 's/^/| /' conftest.$ac_ext >&5
37436
37437eval "$as_ac_var=no"
37438fi
243f8ae5
VS
37439rm -f conftest.err conftest.$ac_objext \
37440 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37441fi
37442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37443echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37444if test `eval echo '${'$as_ac_var'}'` = yes; then
37445 cat >>confdefs.h <<_ACEOF
37446#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37447_ACEOF
2b5f62a0 37448 have_floor=1
2b5f62a0
VZ
37449fi
37450done
37451
e6cc62c6
VS
37452echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
37453echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 37454if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
37455 echo "$as_me:$LINENO: result: yes" >&5
37456echo "${ECHO_T}yes" >&6
2b5f62a0 37457else
e6cc62c6
VS
37458 echo "$as_me:$LINENO: result: no" >&5
37459echo "${ECHO_T}no" >&6
2b5f62a0
VZ
37460 LIBS="$LIBS -lm"
37461 # use different functions to avoid configure caching
37462 have_sin=0
37463 have_ceil=0
e6cc62c6
VS
37464
37465for ac_func in sin
2b5f62a0 37466do
e6cc62c6
VS
37467as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37468echo "$as_me:$LINENO: checking for $ac_func" >&5
37469echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37470if eval "test \"\${$as_ac_var+set}\" = set"; then
37471 echo $ECHO_N "(cached) $ECHO_C" >&6
37472else
37473 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37474/* confdefs.h. */
37475_ACEOF
37476cat confdefs.h >>conftest.$ac_ext
37477cat >>conftest.$ac_ext <<_ACEOF
37478/* end confdefs.h. */
243f8ae5
VS
37479/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37480 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37481#define $ac_func innocuous_$ac_func
37482
2b5f62a0 37483/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37484 which can conflict with char $ac_func (); below.
37485 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37486 <limits.h> exists even on freestanding compilers. */
243f8ae5 37487
e6cc62c6
VS
37488#ifdef __STDC__
37489# include <limits.h>
37490#else
37491# include <assert.h>
37492#endif
243f8ae5
VS
37493
37494#undef $ac_func
37495
2b5f62a0 37496/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37497#ifdef __cplusplus
37498extern "C"
37499{
37500#endif
2b5f62a0 37501/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37502 builtin and then its argument prototype would still apply. */
37503char $ac_func ();
2b5f62a0
VZ
37504/* The GNU C library defines this for functions which it implements
37505 to always fail with ENOSYS. Some functions are actually named
37506 something starting with __ and the normal name is an alias. */
37507#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37508choke me
37509#else
e6cc62c6
VS
37510char (*f) () = $ac_func;
37511#endif
37512#ifdef __cplusplus
37513}
2b5f62a0
VZ
37514#endif
37515
e6cc62c6
VS
37516int
37517main ()
37518{
37519return f != $ac_func;
37520 ;
37521 return 0;
37522}
37523_ACEOF
37524rm -f conftest.$ac_objext conftest$ac_exeext
37525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 37526 (eval $ac_link) 2>conftest.er1
e6cc62c6 37527 ac_status=$?
243f8ae5
VS
37528 grep -v '^ *+' conftest.er1 >conftest.err
37529 rm -f conftest.er1
37530 cat conftest.err >&5
e6cc62c6
VS
37531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37532 (exit $ac_status); } &&
243f8ae5
VS
37533 { ac_try='test -z "$ac_c_werror_flag"
37534 || test ! -s conftest.err'
37535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37536 (eval $ac_try) 2>&5
37537 ac_status=$?
37538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37539 (exit $ac_status); }; } &&
37540 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37542 (eval $ac_try) 2>&5
37543 ac_status=$?
37544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37545 (exit $ac_status); }; }; then
37546 eval "$as_ac_var=yes"
37547else
37548 echo "$as_me: failed program was:" >&5
37549sed 's/^/| /' conftest.$ac_ext >&5
37550
37551eval "$as_ac_var=no"
37552fi
243f8ae5
VS
37553rm -f conftest.err conftest.$ac_objext \
37554 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37555fi
37556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37557echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37558if test `eval echo '${'$as_ac_var'}'` = yes; then
37559 cat >>confdefs.h <<_ACEOF
37560#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37561_ACEOF
2b5f62a0 37562 have_sin=1
2b5f62a0
VZ
37563fi
37564done
37565
e6cc62c6
VS
37566
37567for ac_func in ceil
2b5f62a0 37568do
e6cc62c6
VS
37569as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37570echo "$as_me:$LINENO: checking for $ac_func" >&5
37571echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37572if eval "test \"\${$as_ac_var+set}\" = set"; then
37573 echo $ECHO_N "(cached) $ECHO_C" >&6
37574else
37575 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37576/* confdefs.h. */
37577_ACEOF
37578cat confdefs.h >>conftest.$ac_ext
37579cat >>conftest.$ac_ext <<_ACEOF
37580/* end confdefs.h. */
243f8ae5
VS
37581/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37583#define $ac_func innocuous_$ac_func
37584
2b5f62a0 37585/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37586 which can conflict with char $ac_func (); below.
37587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37588 <limits.h> exists even on freestanding compilers. */
243f8ae5 37589
e6cc62c6
VS
37590#ifdef __STDC__
37591# include <limits.h>
37592#else
37593# include <assert.h>
37594#endif
243f8ae5
VS
37595
37596#undef $ac_func
37597
2b5f62a0 37598/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37599#ifdef __cplusplus
37600extern "C"
37601{
37602#endif
2b5f62a0 37603/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37604 builtin and then its argument prototype would still apply. */
37605char $ac_func ();
2b5f62a0
VZ
37606/* The GNU C library defines this for functions which it implements
37607 to always fail with ENOSYS. Some functions are actually named
37608 something starting with __ and the normal name is an alias. */
37609#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37610choke me
37611#else
e6cc62c6
VS
37612char (*f) () = $ac_func;
37613#endif
37614#ifdef __cplusplus
37615}
2b5f62a0
VZ
37616#endif
37617
e6cc62c6
VS
37618int
37619main ()
37620{
37621return f != $ac_func;
37622 ;
37623 return 0;
37624}
37625_ACEOF
37626rm -f conftest.$ac_objext conftest$ac_exeext
37627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
243f8ae5 37628 (eval $ac_link) 2>conftest.er1
e6cc62c6 37629 ac_status=$?
243f8ae5
VS
37630 grep -v '^ *+' conftest.er1 >conftest.err
37631 rm -f conftest.er1
37632 cat conftest.err >&5
e6cc62c6
VS
37633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37634 (exit $ac_status); } &&
243f8ae5
VS
37635 { ac_try='test -z "$ac_c_werror_flag"
37636 || test ! -s conftest.err'
37637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37638 (eval $ac_try) 2>&5
37639 ac_status=$?
37640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37641 (exit $ac_status); }; } &&
37642 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37644 (eval $ac_try) 2>&5
37645 ac_status=$?
37646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37647 (exit $ac_status); }; }; then
37648 eval "$as_ac_var=yes"
37649else
37650 echo "$as_me: failed program was:" >&5
37651sed 's/^/| /' conftest.$ac_ext >&5
37652
37653eval "$as_ac_var=no"
37654fi
243f8ae5
VS
37655rm -f conftest.err conftest.$ac_objext \
37656 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37657fi
37658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37659echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37660if test `eval echo '${'$as_ac_var'}'` = yes; then
37661 cat >>confdefs.h <<_ACEOF
37662#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37663_ACEOF
2b5f62a0 37664 have_ceil=1
2b5f62a0
VZ
37665fi
37666done
37667
e6cc62c6
VS
37668 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37669echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 37670 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
37671 echo "$as_me:$LINENO: result: yes" >&5
37672echo "${ECHO_T}yes" >&6
2b5f62a0 37673 else
e6cc62c6
VS
37674 echo "$as_me:$LINENO: result: no" >&5
37675echo "${ECHO_T}no" >&6
2b5f62a0
VZ
37676 # not sure we should warn the user, crash, etc.
37677 fi
37678fi
8284b0c5
MB
37679
37680if test "$wxUSE_GUI" = "yes"; then
37681
e6cc62c6 37682
8284b0c5
MB
37683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37684 drawing dynamic erase event exec font image \
1dd02ac0 37685 minimal propsize rotate shaped widgets render"
b625909c
VS
37686
37687 if test "$wxUSE_MONOLITHIC" != "yes"; then
37688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37689 fi
8284b0c5
MB
37690else
37691 SAMPLES_SUBDIRS="console"
37692fi
37693
37694
e6cc62c6 37695INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 37696-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 37697
fddeb06b
VS
37698if test "$GXX" = yes ; then
37699 CXXWARNINGS="-Wall"
37700 fi
37701
37702EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37703
95318f7d 37704CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
37705CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37706CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
37707
37708
fddeb06b 37709LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 37710EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 37711EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 37712EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 37713EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
37714if test "$wxUSE_GUI" = "yes"; then
37715 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
37716fi
34b08d2c
VS
37717if test "$wxUSE_OPENGL" = "yes"; then
37718 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37719fi
fddeb06b
VS
37720
37721LDFLAGS="$LDFLAGS $PROFILE"
37722
8284b0c5
MB
37723if test "$wxUSE_GTK" = 1; then
37724 WXCONFIG_INCLUDE=
37725else
37726 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37727fi
37728
67c13b6c
VS
37729WXCONFIG_EXTRALIBS="$LIBS"
37730
37731if test "$wxUSE_REGEX" = "builtin" ; then
4996f261 37732 wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}"
67c13b6c
VS
37733fi
37734if test "$wxUSE_EXPAT" = "builtin" ; then
37735 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37736fi
37737if test "$wxUSE_ODBC" = "builtin" ; then
37738 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37739fi
37740if test "$wxUSE_LIBTIFF" = "builtin" ; then
37741 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37742fi
37743if test "$wxUSE_LIBJPEG" = "builtin" ; then
37744 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37745fi
37746if test "$wxUSE_LIBPNG" = "builtin" ; then
37747 wxconfig_3rdparty="$wxconfig_3rdparty png"
37748fi
37749if test "$wxUSE_ZLIB" = "builtin" ; then
37750 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37751fi
bb41dcbe
VS
37752if test "$wxUSE_ODBC" = "builtin" ; then
37753 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37754fi
67c13b6c
VS
37755
37756for i in $wxconfig_3rdparty ; do
37757 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37758done
37759
37760
fe0895cf
VS
37761if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37762 WXUNIV=1
37763else
37764 WXUNIV=0
8284b0c5
MB
37765fi
37766
8284b0c5
MB
37767
37768
37769
37770
37771
37772
37773
672abd7a 37774
9747f85d
VS
37775if test $wxUSE_MONOLITHIC = "yes" ; then
37776 MONOLITHIC=1
37777else
37778 MONOLITHIC=0
37779fi
8284b0c5 37780
f93ca9fd
VS
37781if test $wxUSE_PLUGINS = "yes" ; then
37782 USE_PLUGINS=1
37783else
37784 USE_PLUGINS=0
37785fi
37786
bb41dcbe
VS
37787if test $wxUSE_ODBC != "no" ; then
37788 USE_ODBC=1
37789else
37790 USE_ODBC=0
37791fi
37792
029b47ad
VS
37793if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37794 OFFICIAL_BUILD=1
37795else
37796 OFFICIAL_BUILD=0
37797fi
37798
8ee2dd05
VS
37799
37800
37801
8284b0c5
MB
37802
37803
37804
37805
37806
37807
c74dc163 37808
34b08d2c 37809
672abd7a 37810
cf615ebb 37811
6c67131a
VS
37812
37813
bb41dcbe 37814
f93ca9fd
VS
37815
37816
37817
3527f29c 37818
89fe663f 37819TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
37820
37821
37822
37823
37824
ea66c762 37825
0f1bc9c2 37826
f95e4495
VS
37827 if test "x$BAKEFILE_HOST" = "x"; then
37828 BAKEFILE_HOST="${host}"
37829 fi
37830
fe0895cf 37831 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
37832
37833 if test -n "$ac_tool_prefix"; then
37834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37835set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37836echo "$as_me:$LINENO: checking for $ac_word" >&5
37837echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37838if test "${ac_cv_prog_RANLIB+set}" = set; then
37839 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 37840else
fe0895cf
VS
37841 if test -n "$RANLIB"; then
37842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 37843else
e6cc62c6
VS
37844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37845for as_dir in $PATH
37846do
37847 IFS=$as_save_IFS
37848 test -z "$as_dir" && as_dir=.
37849 for ac_exec_ext in '' $ac_executable_extensions; do
37850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37851 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37853 break 2
37854 fi
37855done
37856done
37857
10f2d63a 37858fi
10f2d63a 37859fi
e6cc62c6 37860RANLIB=$ac_cv_prog_RANLIB
fe0895cf 37861if test -n "$RANLIB"; then
e6cc62c6
VS
37862 echo "$as_me:$LINENO: result: $RANLIB" >&5
37863echo "${ECHO_T}$RANLIB" >&6
37864else
37865 echo "$as_me:$LINENO: result: no" >&5
37866echo "${ECHO_T}no" >&6
37867fi
37868
37869fi
37870if test -z "$ac_cv_prog_RANLIB"; then
37871 ac_ct_RANLIB=$RANLIB
37872 # Extract the first word of "ranlib", so it can be a program name with args.
37873set dummy ranlib; ac_word=$2
37874echo "$as_me:$LINENO: checking for $ac_word" >&5
37875echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37876if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37877 echo $ECHO_N "(cached) $ECHO_C" >&6
37878else
37879 if test -n "$ac_ct_RANLIB"; then
37880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37881else
37882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37883for as_dir in $PATH
37884do
37885 IFS=$as_save_IFS
37886 test -z "$as_dir" && as_dir=.
37887 for ac_exec_ext in '' $ac_executable_extensions; do
37888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37889 ac_cv_prog_ac_ct_RANLIB="ranlib"
37890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37891 break 2
37892 fi
37893done
37894done
37895
37896 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37897fi
37898fi
37899ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37900if test -n "$ac_ct_RANLIB"; then
37901 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37902echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 37903else
e6cc62c6
VS
37904 echo "$as_me:$LINENO: result: no" >&5
37905echo "${ECHO_T}no" >&6
37906fi
37907
37908 RANLIB=$ac_ct_RANLIB
37909else
37910 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 37911fi
665bbe97 37912
fe0895cf
VS
37913 # Find a good install program. We prefer a C program (faster),
37914# so one script is as good as another. But avoid the broken or
37915# incompatible versions:
37916# SysV /etc/install, /usr/sbin/install
37917# SunOS /usr/etc/install
37918# IRIX /sbin/install
37919# AIX /bin/install
e6cc62c6 37920# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
37921# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37922# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37923# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
243f8ae5 37924# OS/2's system install, which has a completely different semantic
fe0895cf 37925# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
37926echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37927echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 37928if test -z "$INSTALL"; then
e6cc62c6
VS
37929if test "${ac_cv_path_install+set}" = set; then
37930 echo $ECHO_N "(cached) $ECHO_C" >&6
37931else
37932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37933for as_dir in $PATH
37934do
37935 IFS=$as_save_IFS
37936 test -z "$as_dir" && as_dir=.
37937 # Account for people who put trailing slashes in PATH elements.
37938case $as_dir/ in
37939 ./ | .// | /cC/* | \
37940 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
243f8ae5 37941 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
37942 /usr/ucb/* ) ;;
37943 *)
37944 # OSF1 and SCO ODT 3.0 have their own names for install.
37945 # Don't use installbsd from OSF since it installs stuff as root
37946 # by default.
37947 for ac_prog in ginstall scoinst install; do
37948 for ac_exec_ext in '' $ac_executable_extensions; do
243f8ae5
VS
37949 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37950 if test $ac_prog = install &&
37951 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37952 # AIX install. It has an incompatible calling convention.
37953 :
37954 elif test $ac_prog = install &&
37955 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37956 # program-specific install script used by HP pwplus--don't use.
37957 :
37958 else
37959 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37960 break 3
37961 fi
37962 fi
fe0895cf 37963 done
e6cc62c6
VS
37964 done
37965 ;;
37966esac
37967done
37968
fe0895cf
VS
37969
37970fi
37971 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 37972 INSTALL=$ac_cv_path_install
fe0895cf
VS
37973 else
37974 # As a last resort, use the slow shell script. We don't cache a
37975 # path for INSTALL within a source directory, because that will
37976 # break other packages using the cache if that directory is
37977 # removed, or if the path is relative.
e6cc62c6 37978 INSTALL=$ac_install_sh
fe0895cf
VS
37979 fi
37980fi
e6cc62c6
VS
37981echo "$as_me:$LINENO: result: $INSTALL" >&5
37982echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
37983
37984# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37985# It thinks the first close brace ends the variable substitution.
37986test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37987
e6cc62c6 37988test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
37989
37990test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37991
e6cc62c6
VS
37992 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37993echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37994LN_S=$as_ln_s
37995if test "$LN_S" = "ln -s"; then
37996 echo "$as_me:$LINENO: result: yes" >&5
37997echo "${ECHO_T}yes" >&6
fe0895cf 37998else
e6cc62c6
VS
37999 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
38000echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
38001fi
38002
38003
e6cc62c6
VS
38004 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38005echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
243f8ae5 38006set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
38007if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38008 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 38009else
e6cc62c6 38010 cat >conftest.make <<\_ACEOF
fe0895cf 38011all:
e6cc62c6
VS
38012 @echo 'ac_maketemp="$(MAKE)"'
38013_ACEOF
fe0895cf 38014# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 38015eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
38016if test -n "$ac_maketemp"; then
38017 eval ac_cv_prog_make_${ac_make}_set=yes
38018else
38019 eval ac_cv_prog_make_${ac_make}_set=no
38020fi
e6cc62c6 38021rm -f conftest.make
fe0895cf
VS
38022fi
38023if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
38024 echo "$as_me:$LINENO: result: yes" >&5
38025echo "${ECHO_T}yes" >&6
fe0895cf
VS
38026 SET_MAKE=
38027else
e6cc62c6
VS
38028 echo "$as_me:$LINENO: result: no" >&5
38029echo "${ECHO_T}no" >&6
fe0895cf
VS
38030 SET_MAKE="MAKE=${MAKE-make}"
38031fi
38032
e6cc62c6
VS
38033
38034
874d12cf
VS
38035 if test -n "$ac_tool_prefix"; then
38036 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
38037set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
38038echo "$as_me:$LINENO: checking for $ac_word" >&5
38039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38040if test "${ac_cv_prog_AR+set}" = set; then
38041 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38042else
38043 if test -n "$AR"; then
38044 ac_cv_prog_AR="$AR" # Let the user override the test.
38045else
e6cc62c6
VS
38046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38047for as_dir in $PATH
38048do
38049 IFS=$as_save_IFS
38050 test -z "$as_dir" && as_dir=.
38051 for ac_exec_ext in '' $ac_executable_extensions; do
38052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 38053 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
38054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38055 break 2
38056 fi
38057done
38058done
38059
fe0895cf
VS
38060fi
38061fi
e6cc62c6 38062AR=$ac_cv_prog_AR
fe0895cf 38063if test -n "$AR"; then
e6cc62c6
VS
38064 echo "$as_me:$LINENO: result: $AR" >&5
38065echo "${ECHO_T}$AR" >&6
fe0895cf 38066else
e6cc62c6
VS
38067 echo "$as_me:$LINENO: result: no" >&5
38068echo "${ECHO_T}no" >&6
fe0895cf
VS
38069fi
38070
874d12cf
VS
38071fi
38072if test -z "$ac_cv_prog_AR"; then
38073 ac_ct_AR=$AR
38074 # Extract the first word of "ar", so it can be a program name with args.
38075set dummy ar; ac_word=$2
38076echo "$as_me:$LINENO: checking for $ac_word" >&5
38077echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38078if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
38079 echo $ECHO_N "(cached) $ECHO_C" >&6
38080else
38081 if test -n "$ac_ct_AR"; then
38082 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
38083else
38084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38085for as_dir in $PATH
38086do
38087 IFS=$as_save_IFS
38088 test -z "$as_dir" && as_dir=.
38089 for ac_exec_ext in '' $ac_executable_extensions; do
38090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38091 ac_cv_prog_ac_ct_AR="ar"
38092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38093 break 2
38094 fi
38095done
38096done
38097
38098 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
38099fi
38100fi
38101ac_ct_AR=$ac_cv_prog_ac_ct_AR
38102if test -n "$ac_ct_AR"; then
38103 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
38104echo "${ECHO_T}$ac_ct_AR" >&6
38105else
38106 echo "$as_me:$LINENO: result: no" >&5
38107echo "${ECHO_T}no" >&6
38108fi
38109
38110 AR=$ac_ct_AR
38111else
38112 AR="$ac_cv_prog_AR"
38113fi
38114
38115 if test -n "$ac_tool_prefix"; then
38116 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
38117set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
38118echo "$as_me:$LINENO: checking for $ac_word" >&5
38119echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38120if test "${ac_cv_prog_STRIP+set}" = set; then
38121 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38122else
38123 if test -n "$STRIP"; then
38124 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
38125else
e6cc62c6
VS
38126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38127for as_dir in $PATH
38128do
38129 IFS=$as_save_IFS
38130 test -z "$as_dir" && as_dir=.
38131 for ac_exec_ext in '' $ac_executable_extensions; do
38132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 38133 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
38134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38135 break 2
38136 fi
38137done
38138done
38139
fe0895cf
VS
38140fi
38141fi
e6cc62c6 38142STRIP=$ac_cv_prog_STRIP
fe0895cf 38143if test -n "$STRIP"; then
e6cc62c6
VS
38144 echo "$as_me:$LINENO: result: $STRIP" >&5
38145echo "${ECHO_T}$STRIP" >&6
fe0895cf 38146else
e6cc62c6
VS
38147 echo "$as_me:$LINENO: result: no" >&5
38148echo "${ECHO_T}no" >&6
fe0895cf
VS
38149fi
38150
874d12cf
VS
38151fi
38152if test -z "$ac_cv_prog_STRIP"; then
38153 ac_ct_STRIP=$STRIP
38154 # Extract the first word of "strip", so it can be a program name with args.
38155set dummy strip; ac_word=$2
38156echo "$as_me:$LINENO: checking for $ac_word" >&5
38157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38158if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
38159 echo $ECHO_N "(cached) $ECHO_C" >&6
38160else
38161 if test -n "$ac_ct_STRIP"; then
38162 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
38163else
38164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38165for as_dir in $PATH
38166do
38167 IFS=$as_save_IFS
38168 test -z "$as_dir" && as_dir=.
38169 for ac_exec_ext in '' $ac_executable_extensions; do
38170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38171 ac_cv_prog_ac_ct_STRIP="strip"
38172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38173 break 2
38174 fi
38175done
38176done
38177
38178 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
38179fi
38180fi
38181ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
38182if test -n "$ac_ct_STRIP"; then
38183 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
38184echo "${ECHO_T}$ac_ct_STRIP" >&6
38185else
38186 echo "$as_me:$LINENO: result: no" >&5
38187echo "${ECHO_T}no" >&6
38188fi
38189
38190 STRIP=$ac_ct_STRIP
38191else
38192 STRIP="$ac_cv_prog_STRIP"
38193fi
38194
38195 if test -n "$ac_tool_prefix"; then
38196 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
38197set dummy ${ac_tool_prefix}nm; ac_word=$2
38198echo "$as_me:$LINENO: checking for $ac_word" >&5
38199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38200if test "${ac_cv_prog_NM+set}" = set; then
38201 echo $ECHO_N "(cached) $ECHO_C" >&6
38202else
38203 if test -n "$NM"; then
38204 ac_cv_prog_NM="$NM" # Let the user override the test.
38205else
38206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38207for as_dir in $PATH
38208do
38209 IFS=$as_save_IFS
38210 test -z "$as_dir" && as_dir=.
38211 for ac_exec_ext in '' $ac_executable_extensions; do
38212 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38213 ac_cv_prog_NM="${ac_tool_prefix}nm"
38214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38215 break 2
38216 fi
38217done
38218done
38219
38220fi
38221fi
38222NM=$ac_cv_prog_NM
38223if test -n "$NM"; then
38224 echo "$as_me:$LINENO: result: $NM" >&5
38225echo "${ECHO_T}$NM" >&6
38226else
38227 echo "$as_me:$LINENO: result: no" >&5
38228echo "${ECHO_T}no" >&6
38229fi
38230
38231fi
38232if test -z "$ac_cv_prog_NM"; then
38233 ac_ct_NM=$NM
38234 # Extract the first word of "nm", so it can be a program name with args.
38235set dummy nm; ac_word=$2
38236echo "$as_me:$LINENO: checking for $ac_word" >&5
38237echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38238if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
38239 echo $ECHO_N "(cached) $ECHO_C" >&6
38240else
38241 if test -n "$ac_ct_NM"; then
38242 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
38243else
38244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38245for as_dir in $PATH
38246do
38247 IFS=$as_save_IFS
38248 test -z "$as_dir" && as_dir=.
38249 for ac_exec_ext in '' $ac_executable_extensions; do
38250 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38251 ac_cv_prog_ac_ct_NM="nm"
38252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38253 break 2
38254 fi
38255done
38256done
38257
38258 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
38259fi
38260fi
38261ac_ct_NM=$ac_cv_prog_ac_ct_NM
38262if test -n "$ac_ct_NM"; then
38263 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
38264echo "${ECHO_T}$ac_ct_NM" >&6
38265else
38266 echo "$as_me:$LINENO: result: no" >&5
38267echo "${ECHO_T}no" >&6
38268fi
38269
38270 NM=$ac_ct_NM
38271else
38272 NM="$ac_cv_prog_NM"
38273fi
38274
fe0895cf 38275
f95e4495 38276 case ${BAKEFILE_HOST} in
fe0895cf
VS
38277 *-hp-hpux* )
38278 INSTALL_DIR="mkdir"
38279 ;;
38280 *) INSTALL_DIR="$INSTALL -d"
38281 ;;
38282 esac
e6cc62c6 38283
fe0895cf 38284
6b9d41a5 38285 LDFLAGS_GUI=
f95e4495 38286 case ${BAKEFILE_HOST} in
6b9d41a5
VS
38287 *-*-cygwin* | *-*-mingw32* )
38288 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
38289 esac
38290
38291
fe0895cf 38292 fi
e6cc62c6
VS
38293
38294 echo "$as_me:$LINENO: checking if make is GNU make" >&5
38295echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 38296if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 38297 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 38298else
e6cc62c6 38299
fe0895cf
VS
38300 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
38301 egrep -s GNU > /dev/null); then
38302 bakefile_cv_prog_makeisgnu="yes"
38303 else
38304 bakefile_cv_prog_makeisgnu="no"
38305 fi
fe0895cf 38306
e6cc62c6 38307fi
49b0a3aa
VS
38308echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
38309echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
38310
38311 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
38312 IF_GNU_MAKE=""
38313 else
38314 IF_GNU_MAKE="#"
38315 fi
fe0895cf 38316
e6cc62c6
VS
38317
38318
fe0895cf
VS
38319 PLATFORM_UNIX=0
38320 PLATFORM_WIN32=0
38321 PLATFORM_MSDOS=0
38322 PLATFORM_MAC=0
38323 PLATFORM_MACOSX=0
96c1699d 38324 PLATFORM_OS2=0
e6cc62c6 38325
f95e4495
VS
38326 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
38327 case "${BAKEFILE_HOST}" in
38328 *-*-cygwin* | *-*-mingw32* )
38329 PLATFORM_WIN32=1
38330 ;;
38331 *-pc-msdosdjgpp )
38332 PLATFORM_MSDOS=1
38333 ;;
38334 *-pc-os2_emx | *-pc-os2-emx )
38335 PLATFORM_OS2=1
38336 ;;
38337 powerpc-*-darwin* )
38338 PLATFORM_MAC=1
38339 PLATFORM_MACOSX=1
38340 ;;
38341 * )
38342 PLATFORM_UNIX=1
38343 ;;
38344 esac
38345 else
38346 case "$BAKEFILE_FORCE_PLATFORM" in
38347 win32 )
38348 PLATFORM_WIN32=1
38349 ;;
38350 msdos )
38351 PLATFORM_MSDOS=1
38352 ;;
38353 os2 )
38354 PLATFORM_OS2=1
38355 ;;
38356 darwin )
38357 PLATFORM_MAC=1
38358 PLATFORM_MACOSX=1
38359 ;;
38360 unix )
38361 PLATFORM_UNIX=1
38362 ;;
38363 * )
38364 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
38365echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
38366 { (exit 1); exit 1; }; }
38367 ;;
38368 esac
38369 fi
fe0895cf 38370
fe0895cf 38371
e6cc62c6
VS
38372
38373
38374
38375
38376
38377
96c1699d 38378
fe0895cf 38379 SO_SUFFIX="so"
131f235d 38380 SO_SUFFIX_MODULE="so"
fe0895cf 38381 EXEEXT=""
4b1f6360 38382 LIBPREFIX=lib
fe0895cf 38383 DLLPREFIX=lib
131f235d 38384 DLLPREFIX_MODULE=
e6cc62c6 38385
f95e4495 38386 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38387 *-hp-hpux* )
38388 SO_SUFFIX="sl"
131f235d 38389 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
38390 ;;
38391 *-*-aix* )
38392 SO_SUFFIX="a"
131f235d 38393 SO_SUFFIX_MODULE="a"
fe0895cf
VS
38394 ;;
38395 *-*-cygwin* | *-*-mingw32* )
38396 SO_SUFFIX="dll"
131f235d 38397 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
38398 EXEEXT=".exe"
38399 DLLPREFIX=""
38400 ;;
4b1f6360
VS
38401 *-pc-msdosdjgpp )
38402 EXEEXT=".exe"
38403 DLLPREFIX=""
38404 ;;
38405 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
38406 EXEEXT=".exe"
38407 DLLPREFIX=""
4b1f6360 38408 LIBPREFIX=""
fe0895cf
VS
38409 ;;
38410 powerpc-*-darwin* )
38411 SO_SUFFIX="dylib"
131f235d 38412 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
38413 ;;
38414 esac
38415
fe0895cf 38416
e6cc62c6
VS
38417
38418
38419
38420
131f235d
VS
38421
38422
4b1f6360 38423
fe0895cf
VS
38424 SHARED_LD_CC="\$(CC) -shared -o"
38425 SHARED_LD_CXX="\$(CXX) -shared -o"
38426
38427 if test "x$GCC" = "xyes"; then
38428 PIC_FLAG="-fPIC"
38429 fi
38430
f95e4495 38431 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38432 *-hp-hpux* )
38433 if test "x$GCC" = "xyes"; then
38434 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
38435 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
38436 else
38437 LDFLAGS="$LDFLAGS -L/usr/lib"
38438
38439 SHARED_LD_CC="${CC} -b -o"
38440 SHARED_LD_CXX="${CXX} -b -o"
38441 PIC_FLAG="+Z"
38442 fi
38443 ;;
38444
38445 *-*-linux* )
38446 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
38447 echo "$as_me:$LINENO: checking for Intel compiler" >&5
38448echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
38449if test "${bakefile_cv_prog_icc+set}" = set; then
38450 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 38451else
fe0895cf 38452
e6cc62c6 38453 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
38454/* confdefs.h. */
38455_ACEOF
38456cat confdefs.h >>conftest.$ac_ext
38457cat >>conftest.$ac_ext <<_ACEOF
38458/* end confdefs.h. */
38459
38460int
38461main ()
38462{
fe0895cf
VS
38463
38464 #ifndef __INTEL_COMPILER
38465 #error Not icc
38466 #endif
e6cc62c6
VS
38467
38468 ;
38469 return 0;
38470}
38471_ACEOF
38472rm -f conftest.$ac_objext
38473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 38474 (eval $ac_compile) 2>conftest.er1
e6cc62c6 38475 ac_status=$?
243f8ae5
VS
38476 grep -v '^ *+' conftest.er1 >conftest.err
38477 rm -f conftest.er1
38478 cat conftest.err >&5
e6cc62c6
VS
38479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38480 (exit $ac_status); } &&
243f8ae5
VS
38481 { ac_try='test -z "$ac_c_werror_flag"
38482 || test ! -s conftest.err'
38483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38484 (eval $ac_try) 2>&5
38485 ac_status=$?
38486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38487 (exit $ac_status); }; } &&
38488 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
38489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38490 (eval $ac_try) 2>&5
38491 ac_status=$?
38492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38493 (exit $ac_status); }; }; then
fe0895cf
VS
38494 bakefile_cv_prog_icc=yes
38495else
e6cc62c6
VS
38496 echo "$as_me: failed program was:" >&5
38497sed 's/^/| /' conftest.$ac_ext >&5
38498
38499bakefile_cv_prog_icc=no
38500
fe0895cf 38501fi
243f8ae5 38502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fe0895cf 38503
e6cc62c6
VS
38504fi
38505echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38506echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
38507 if test "$bakefile_cv_prog_icc" = "yes"; then
38508 PIC_FLAG="-KPIC"
38509 fi
38510 fi
38511 ;;
38512
38513 *-*-solaris2* )
38514 if test "x$GCC" != xyes ; then
38515 SHARED_LD_CC="${CC} -G -o"
38516 SHARED_LD_CXX="${CXX} -G -o"
38517 PIC_FLAG="-KPIC"
38518 fi
38519 ;;
38520
38521 *-*-darwin* )
38522 CFLAGS="$CFLAGS -fno-common"
38523 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
38524
38525
2a879853 38526 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
38527echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38528if test "${wx_cv_gcc31+set}" = set; then
38529 echo $ECHO_N "(cached) $ECHO_C" >&6
38530else
38531
2a879853 38532 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
38533/* confdefs.h. */
38534_ACEOF
38535cat confdefs.h >>conftest.$ac_ext
38536cat >>conftest.$ac_ext <<_ACEOF
38537/* end confdefs.h. */
38538
38539int
38540main ()
38541{
38542
2a879853
VS
38543 #if (__GNUC__ < 3) || \
38544 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38545 #error old gcc
38546 #endif
43948499
RD
38547
38548 ;
38549 return 0;
38550}
38551_ACEOF
38552rm -f conftest.$ac_objext
38553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 38554 (eval $ac_compile) 2>conftest.er1
43948499 38555 ac_status=$?
243f8ae5
VS
38556 grep -v '^ *+' conftest.er1 >conftest.err
38557 rm -f conftest.er1
38558 cat conftest.err >&5
43948499
RD
38559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38560 (exit $ac_status); } &&
243f8ae5
VS
38561 { ac_try='test -z "$ac_c_werror_flag"
38562 || test ! -s conftest.err'
38563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38564 (eval $ac_try) 2>&5
38565 ac_status=$?
38566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38567 (exit $ac_status); }; } &&
38568 { ac_try='test -s conftest.$ac_objext'
43948499
RD
38569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38570 (eval $ac_try) 2>&5
38571 ac_status=$?
38572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38573 (exit $ac_status); }; }; then
38574
2a879853 38575 wx_cv_gcc31=yes
43948499
RD
38576
38577else
38578 echo "$as_me: failed program was:" >&5
38579sed 's/^/| /' conftest.$ac_ext >&5
38580
38581
2a879853 38582 wx_cv_gcc31=no
43948499
RD
38583
38584
38585fi
243f8ae5 38586rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43948499
RD
38587
38588fi
38589echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38590echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 38591 if test "$wx_cv_gcc31" = "no"; then
43948499 38592 cat <<EOF >shared-ld-sh
fe0895cf
VS
38593#!/bin/sh
38594#-----------------------------------------------------------------------------
38595#-- Name: distrib/mac/shared-ld-sh
38596#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38597#-- Author: Gilles Depeyrot
38598#-- Copyright: (c) 2002 Gilles Depeyrot
38599#-- Licence: any use permitted
38600#-----------------------------------------------------------------------------
38601
38602verbose=0
38603args=""
38604objects=""
131f235d 38605linking_flag="-dynamiclib"
fe0895cf
VS
38606
38607while test \${#} -gt 0; do
38608 case \${1} in
38609
38610 -v)
38611 verbose=1
38612 ;;
38613
38614 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38615 # collect these options and values
38616 args="\${args} \${1} \${2}"
38617 shift
38618 ;;
38619
74500461 38620 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
fe0895cf
VS
38621 # collect these options
38622 args="\${args} \${1}"
38623 ;;
38624
131f235d
VS
38625 -dynamiclib|-bundle)
38626 linking_flag="\${1}"
fe0895cf
VS
38627 ;;
38628
38629 -*)
38630 echo "shared-ld: unhandled option '\${1}'"
38631 exit 1
38632 ;;
38633
4d264332 38634 *.o | *.a | *.dylib)
fe0895cf
VS
38635 # collect object files
38636 objects="\${objects} \${1}"
38637 ;;
38638
38639 *)
38640 echo "shared-ld: unhandled argument '\${1}'"
38641 exit 1
38642 ;;
38643
38644 esac
38645 shift
38646done
38647
38648#
38649# Link one module containing all the others
38650#
38651if test \${verbose} = 1; then
38652 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
38653fi
38654c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
38655status=\$?
38656if test \${status} != 0; then
38657 exit \${status}
38658fi
38659
38660#
38661# Link the shared library from the single module created
38662#
38663if test \${verbose} = 1; then
2a879853 38664 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 38665fi
131f235d 38666c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
38667status=\$?
38668if test \${status} != 0; then
38669 exit \${status}
38670fi
38671
38672#
38673# Remove intermediate module
38674#
38675rm -f master.\$\$.o
38676
38677exit 0
38678EOF
43948499 38679 chmod +x shared-ld-sh
fe0895cf 38680
7f523214
VS
38681 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38682 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
38683 SHARED_LD_CXX="$SHARED_LD_CC"
38684 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38685 else
7f523214
VS
38686 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38687 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38688 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38689 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
38690 fi
38691
fe0895cf 38692 PIC_FLAG="-dynamic -fPIC"
2a879853 38693 ;;
fe0895cf
VS
38694
38695 *-*-aix* )
38696 if test "x$GCC" != "xyes"; then
38697 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38698set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
38699echo "$as_me:$LINENO: checking for $ac_word" >&5
38700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38701if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38702 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38703else
38704 if test -n "$AIX_CXX_LD"; then
38705 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38706else
e6cc62c6
VS
38707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38708for as_dir in $PATH
38709do
38710 IFS=$as_save_IFS
38711 test -z "$as_dir" && as_dir=.
38712 for ac_exec_ext in '' $ac_executable_extensions; do
38713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38714 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38716 break 2
38717 fi
38718done
38719done
38720
fe0895cf
VS
38721 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38722fi
38723fi
e6cc62c6 38724AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 38725if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
38726 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38727echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 38728else
e6cc62c6
VS
38729 echo "$as_me:$LINENO: result: no" >&5
38730echo "${ECHO_T}no" >&6
fe0895cf
VS
38731fi
38732
38733 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38734 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38735 fi
38736 ;;
38737
38738 *-*-beos* )
38739 SHARED_LD_CC="${LD} -shared -o"
38740 SHARED_LD_CXX="${LD} -shared -o"
38741 ;;
38742
38743 *-*-irix* )
38744 if test "x$GCC" != "xyes"; then
38745 PIC_FLAG="-KPIC"
38746 fi
38747 ;;
e6cc62c6 38748
fe0895cf
VS
38749 *-*-cygwin* | *-*-mingw32* )
38750 PIC_FLAG=""
38751 ;;
e6cc62c6 38752
fe0895cf
VS
38753 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
38754 *-*-sunos4* | \
38755 *-*-osf* | \
38756 *-*-dgux5* | \
4b1f6360 38757 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
38758 *-*-sysv5* )
38759 ;;
38760
38761 *)
f95e4495
VS
38762 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
38763echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
e6cc62c6 38764 { (exit 1); exit 1; }; }
fe0895cf
VS
38765 esac
38766
131f235d
VS
38767 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
38768 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
38769 fi
38770 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 38771 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
38772 fi
38773
38774
38775
fe0895cf 38776
e6cc62c6
VS
38777
38778
38779
38780
fe0895cf
VS
38781 USE_SOVERSION=0
38782 USE_SOVERLINUX=0
38783 USE_SOVERSOLARIS=0
38784 USE_SOSYMLINKS=0
38785 USE_MACVERSION=0
38786 SONAME_FLAG=
38787
f95e4495 38788 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38789 *-*-linux* )
38790 SONAME_FLAG="-Wl,-soname,"
38791 USE_SOVERSION=1
38792 USE_SOVERLINUX=1
38793 USE_SOSYMLINKS=1
38794 ;;
38795
38796 *-*-solaris2* )
38797 SONAME_FLAG="-h "
38798 USE_SOVERSION=1
38799 USE_SOVERSOLARIS=1
38800 USE_SOSYMLINKS=1
38801 ;;
38802
38803 *-*-darwin* )
38804 USE_MACVERSION=1
38805 USE_SOVERSION=1
38806 USE_SOSYMLINKS=1
e6cc62c6 38807 ;;
fe0895cf
VS
38808 esac
38809
fe0895cf 38810
e6cc62c6
VS
38811
38812
38813
38814
38815
38816
38817
49b0a3aa
VS
38818 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
38819echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
38820 DEPS_TRACKING=0
38821
fe0895cf 38822 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
38823 DEPSMODE=gcc
38824 DEPS_TRACKING=1
f95e4495 38825 case "${BAKEFILE_HOST}" in
3e5c3c83
VS
38826 powerpc-*-darwin* )
38827 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
38828 ;;
38829 * )
38830 DEPSFLAG_GCC="-MMD"
38831 ;;
38832 esac
49b0a3aa
VS
38833 echo "$as_me:$LINENO: result: gcc" >&5
38834echo "${ECHO_T}gcc" >&6
38835 else
38836 echo "$as_me:$LINENO: result: none" >&5
38837echo "${ECHO_T}none" >&6
38838 fi
38839
38840 if test $DEPS_TRACKING = 1 ; then
38841 cat <<EOF >bk-deps
38842#!/bin/sh
38843
45842500
VS
38844# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38845# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
38846#
38847# Permission is given to use this file in any way.
38848
38849DEPSMODE=$DEPSMODE
38850DEPSDIR=.deps
3e5c3c83 38851DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
38852
38853mkdir -p \$DEPSDIR
38854
38855if test \$DEPSMODE = gcc ; then
3e5c3c83 38856 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
38857 status=\${?}
38858 if test \${status} != 0 ; then
38859 exit \${status}
38860 fi
38861 # move created file to the location we want it in:
38862 while test \${#} -gt 0; do
38863 case "\${1}" in
38864 -o )
38865 shift
38866 objfile=\${1}
38867 ;;
38868 -* )
38869 ;;
38870 * )
38871 srcfile=\${1}
38872 ;;
38873 esac
38874 shift
38875 done
38876 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
38877 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
38878 if test -f \$depfile ; then
38879 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
38880 rm -f \$depfile
38881 else
38882 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
38883 if test -f \$depfile ; then
9d0be83a 38884 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
38885 rm -f \$depfile
38886 fi
38887 fi
49b0a3aa
VS
38888 exit 0
38889else
38890 \${*}
38891 exit \${?}
38892fi
38893EOF
38894 chmod +x bk-deps
fe0895cf 38895 fi
fe0895cf 38896
e6cc62c6
VS
38897
38898
38899
fe0895cf
VS
38900 RESCOMP=
38901 SETFILE=
38902
f95e4495 38903 case ${BAKEFILE_HOST} in
fe0895cf
VS
38904 *-*-cygwin* | *-*-mingw32* )
38905 if test "$build" != "$host" ; then
38906 RESCOMP=$host_alias-windres
38907 else
38908 # Extract the first word of "windres", so it can be a program name with args.
38909set dummy windres; ac_word=$2
e6cc62c6
VS
38910echo "$as_me:$LINENO: checking for $ac_word" >&5
38911echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38912if test "${ac_cv_prog_RESCOMP+set}" = set; then
38913 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38914else
38915 if test -n "$RESCOMP"; then
38916 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
38917else
e6cc62c6
VS
38918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38919for as_dir in $PATH
38920do
38921 IFS=$as_save_IFS
38922 test -z "$as_dir" && as_dir=.
38923 for ac_exec_ext in '' $ac_executable_extensions; do
38924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38925 ac_cv_prog_RESCOMP="windres"
38926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38927 break 2
38928 fi
38929done
38930done
38931
fe0895cf
VS
38932 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
38933fi
38934fi
e6cc62c6 38935RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 38936if test -n "$RESCOMP"; then
e6cc62c6
VS
38937 echo "$as_me:$LINENO: result: $RESCOMP" >&5
38938echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 38939else
e6cc62c6
VS
38940 echo "$as_me:$LINENO: result: no" >&5
38941echo "${ECHO_T}no" >&6
fe0895cf
VS
38942fi
38943
38944 fi
38945 ;;
e6cc62c6 38946
fe0895cf
VS
38947 *-*-darwin* )
38948 # Extract the first word of "Rez", so it can be a program name with args.
38949set dummy Rez; ac_word=$2
e6cc62c6
VS
38950echo "$as_me:$LINENO: checking for $ac_word" >&5
38951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38952if test "${ac_cv_prog_RESCOMP+set}" = set; then
38953 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38954else
38955 if test -n "$RESCOMP"; then
38956 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
38957else
e6cc62c6
VS
38958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38959for as_dir in $PATH
38960do
38961 IFS=$as_save_IFS
38962 test -z "$as_dir" && as_dir=.
38963 for ac_exec_ext in '' $ac_executable_extensions; do
38964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38965 ac_cv_prog_RESCOMP="Rez"
38966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38967 break 2
38968 fi
38969done
38970done
38971
fe0895cf
VS
38972 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
38973fi
38974fi
e6cc62c6 38975RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 38976if test -n "$RESCOMP"; then
e6cc62c6
VS
38977 echo "$as_me:$LINENO: result: $RESCOMP" >&5
38978echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 38979else
e6cc62c6
VS
38980 echo "$as_me:$LINENO: result: no" >&5
38981echo "${ECHO_T}no" >&6
fe0895cf
VS
38982fi
38983
38984 # Extract the first word of "SetFile", so it can be a program name with args.
38985set dummy SetFile; ac_word=$2
e6cc62c6
VS
38986echo "$as_me:$LINENO: checking for $ac_word" >&5
38987echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38988if test "${ac_cv_prog_SETFILE+set}" = set; then
38989 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38990else
38991 if test -n "$SETFILE"; then
38992 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
38993else
e6cc62c6
VS
38994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38995for as_dir in $PATH
38996do
38997 IFS=$as_save_IFS
38998 test -z "$as_dir" && as_dir=.
38999 for ac_exec_ext in '' $ac_executable_extensions; do
39000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
39001 ac_cv_prog_SETFILE="SetFile"
39002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
39003 break 2
39004 fi
39005done
39006done
39007
fe0895cf
VS
39008 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
39009fi
39010fi
e6cc62c6 39011SETFILE=$ac_cv_prog_SETFILE
fe0895cf 39012if test -n "$SETFILE"; then
e6cc62c6
VS
39013 echo "$as_me:$LINENO: result: $SETFILE" >&5
39014echo "${ECHO_T}$SETFILE" >&6
fe0895cf 39015else
e6cc62c6
VS
39016 echo "$as_me:$LINENO: result: no" >&5
39017echo "${ECHO_T}no" >&6
fe0895cf
VS
39018fi
39019
39020 ;;
39021 esac
39022
fe0895cf
VS
39023
39024
e6cc62c6
VS
39025
39026
39027
39028
45842500 39029
ecfd48ca
VZ
39030
39031
45842500
VS
39032 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
39033if test "${enable_precomp_headers+set}" = set; then
39034 enableval="$enable_precomp_headers"
39035 bk_use_pch="$enableval"
39036fi;
39037
39038 GCC_PCH=0
39039
39040 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
39041 if test "x$GCC" = "xyes"; then
39042 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
39043echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
39044 cat >conftest.$ac_ext <<_ACEOF
45842500
VS
39045/* confdefs.h. */
39046_ACEOF
39047cat confdefs.h >>conftest.$ac_ext
39048cat >>conftest.$ac_ext <<_ACEOF
39049/* end confdefs.h. */
39050
39051int
39052main ()
39053{
39054
8bcf2d20
VS
39055 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
39056 #error "no pch support"
39057 #endif
39058 #if (__GNUC__ < 3)
39059 #error "no pch support"
39060 #endif
39061 #if (__GNUC__ == 3) && \
39062 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
39063 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
39064 #error "no pch support"
45842500
VS
39065 #endif
39066
39067 ;
39068 return 0;
39069}
39070_ACEOF
39071rm -f conftest.$ac_objext
39072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
243f8ae5 39073 (eval $ac_compile) 2>conftest.er1
45842500 39074 ac_status=$?
243f8ae5
VS
39075 grep -v '^ *+' conftest.er1 >conftest.err
39076 rm -f conftest.er1
39077 cat conftest.err >&5
45842500
VS
39078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39079 (exit $ac_status); } &&
243f8ae5
VS
39080 { ac_try='test -z "$ac_c_werror_flag"
39081 || test ! -s conftest.err'
39082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39083 (eval $ac_try) 2>&5
39084 ac_status=$?
39085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39086 (exit $ac_status); }; } &&
39087 { ac_try='test -s conftest.$ac_objext'
45842500
VS
39088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39089 (eval $ac_try) 2>&5
39090 ac_status=$?
39091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39092 (exit $ac_status); }; }; then
39093
39094 echo "$as_me:$LINENO: result: yes" >&5
39095echo "${ECHO_T}yes" >&6
39096 CPPFLAGS="-fpch-deps $CPPFLAGS"
39097 GCC_PCH=1
39098
39099else
39100 echo "$as_me: failed program was:" >&5
39101sed 's/^/| /' conftest.$ac_ext >&5
39102
39103
39104 echo "$as_me:$LINENO: result: no" >&5
39105echo "${ECHO_T}no" >&6
39106
39107fi
243f8ae5 39108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45842500
VS
39109 if test $GCC_PCH = 1 ; then
39110 cat <<EOF >bk-make-pch
39111#!/bin/sh
39112
39113# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
39114# script. It is used to generated precompiled headers.
39115#
39116# Permission is given to use this file in any way.
39117
39118outfile="\${1}"
39119header="\${2}"
39120shift
39121shift
39122
39123compiler=
39124headerfile=
39125while test \${#} -gt 0; do
39126 case "\${1}" in
39127 -I* )
39128 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
39129 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
39130 headerfile="\${incdir}/\${header}"
39131 fi
39132 ;;
39133 esac
39134 compiler="\${compiler} \${1}"
39135 shift
39136done
39137
39138if test "x\${headerfile}" = "x" ; then
39139 echo "error: can't find header \${header} in include paths" >2
39140else
39141 if test -f \${outfile} ; then
39142 rm -f \${outfile}
39143 else
39144 mkdir -p \`dirname \${outfile}\`
39145 fi
39146 depsfile=".deps/\`basename \${outfile}\`.d"
39147 mkdir -p .deps
39148 # can do this because gcc is >= 3.4:
39149 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
39150 exit \${?}
39151fi
39152EOF
39153 chmod +x bk-make-pch
39154 fi
39155 fi
39156 fi
39157
39158
39159
39160
39161
d78c94f2 39162 COND_BUILD_DEBUG="#"
6f628073 39163 if test "x$BUILD" = "xdebug" ; then
d78c94f2 39164 COND_BUILD_DEBUG=""
6f628073
VS
39165 fi
39166
6c67131a
VS
39167 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
39168 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
39169 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
39170 fi
39171
39172 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
39173 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
39174 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
39175 fi
39176
f93ca9fd
VS
39177 COND_BUILD_DEBUG_UNICODE_0="#"
39178 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
39179 COND_BUILD_DEBUG_UNICODE_0=""
39180 fi
39181
39182 COND_BUILD_DEBUG_UNICODE_1="#"
39183 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
39184 COND_BUILD_DEBUG_UNICODE_1=""
39185 fi
39186
d78c94f2 39187 COND_BUILD_RELEASE="#"
6f628073 39188 if test "x$BUILD" = "xrelease" ; then
d78c94f2 39189 COND_BUILD_RELEASE=""
6b9d41a5
VS
39190 fi
39191
6c67131a
VS
39192 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
39193 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
39194 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
39195 fi
39196
f93ca9fd
VS
39197 COND_BUILD_RELEASE_UNICODE_0="#"
39198 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
39199 COND_BUILD_RELEASE_UNICODE_0=""
39200 fi
39201
39202 COND_BUILD_RELEASE_UNICODE_1="#"
39203 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
39204 COND_BUILD_RELEASE_UNICODE_1=""
39205 fi
39206
6c67131a
VS
39207 COND_DEBUG_FLAG_1="#"
39208 if test "x$DEBUG_FLAG" = "x1" ; then
39209 COND_DEBUG_FLAG_1=""
39210 fi
39211
39212 COND_DEBUG_INFO_0="#"
39213 if test "x$DEBUG_INFO" = "x0" ; then
39214 COND_DEBUG_INFO_0=""
39215 fi
39216
39217 COND_DEBUG_INFO_1="#"
39218 if test "x$DEBUG_INFO" = "x1" ; then
39219 COND_DEBUG_INFO_1=""
39220 fi
39221
f95cd8fa
VS
39222 COND_DEPS_TRACKING_0="#"
39223 if test "x$DEPS_TRACKING" = "x0" ; then
39224 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
39225 fi
39226
8ee2dd05
VS
39227 COND_DEPS_TRACKING_1="#"
39228 if test "x$DEPS_TRACKING" = "x1" ; then
39229 COND_DEPS_TRACKING_1=""
39230 fi
39231
45842500
VS
39232 COND_GCC_PCH_1="#"
39233 if test "x$GCC_PCH" = "x1" ; then
39234 COND_GCC_PCH_1=""
39235 fi
39236
6f628073
VS
39237 COND_MONOLITHIC_0="#"
39238 if test "x$MONOLITHIC" = "x0" ; then
39239 COND_MONOLITHIC_0=""
6b9d41a5
VS
39240 fi
39241
6f628073
VS
39242 COND_MONOLITHIC_0_SHARED_0="#"
39243 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
39244 COND_MONOLITHIC_0_SHARED_0=""
39245 fi
39246
39247 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
39248 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
39249 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 39250 fi
e6cc62c6 39251
8772a1a7
VS
39252 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
39253 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39254 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
39255 fi
39256
250700e4
RD
39257 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
39258 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
39259 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
39260 fi
39261
eb69fda5
VS
39262 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
39263 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
39264 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
39265 fi
39266
8ee2dd05
VS
39267 COND_MONOLITHIC_0_SHARED_1="#"
39268 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
39269 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 39270 fi
e6cc62c6 39271
6f628073
VS
39272 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
39273 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
39274 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
39275 fi
39276
8772a1a7
VS
39277 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
39278 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
39279 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
39280 fi
39281
250700e4
RD
39282 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
39283 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
39284 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
39285 fi
39286
eb69fda5
VS
39287 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
39288 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
39289 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
39290 fi
39291
f95e4495
VS
39292 COND_MONOLITHIC_0_USE_ODBC_1="#"
39293 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
39294 COND_MONOLITHIC_0_USE_ODBC_1=""
39295 fi
39296
3af038c0
VS
39297 COND_MONOLITHIC_1="#"
39298 if test "x$MONOLITHIC" = "x1" ; then
39299 COND_MONOLITHIC_1=""
39300 fi
39301
6f628073
VS
39302 COND_MONOLITHIC_1_SHARED_0="#"
39303 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
39304 COND_MONOLITHIC_1_SHARED_0=""
39305 fi
39306
39307 COND_MONOLITHIC_1_SHARED_1="#"
39308 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
39309 COND_MONOLITHIC_1_SHARED_1=""
39310 fi
39311
3af038c0
VS
39312 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
39313 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
39314 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
39315 fi
39316
39317 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
39318 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
39319 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
39320 fi
39321
6f628073
VS
39322 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
39323 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
39324 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
39325 fi
39326
3af038c0
VS
39327 COND_PLATFORM_MACOSX_1="#"
39328 if test "x$PLATFORM_MACOSX" = "x1" ; then
39329 COND_PLATFORM_MACOSX_1=""
39330 fi
39331
250700e4
RD
39332 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
39333 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
39334 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
39335 fi
39336
39337 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
39338 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
39339 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
39340 fi
39341
39342 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
39343 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
39344 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
39345 fi
39346
3527f29c
VS
39347 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
39348 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
39349 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
39350 fi
39351
8ee2dd05
VS
39352 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
39353 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
39354 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
39355 fi
39356
45842500
VS
39357 COND_PLATFORM_MAC_1="#"
39358 if test "x$PLATFORM_MAC" = "x1" ; then
39359 COND_PLATFORM_MAC_1=""
39360 fi
39361
3d8c1de0
VS
39362 COND_PLATFORM_OS2_1="#"
39363 if test "x$PLATFORM_OS2" = "x1" ; then
39364 COND_PLATFORM_OS2_1=""
39365 fi
39366
8772a1a7
VS
39367 COND_PLATFORM_UNIX_0="#"
39368 if test "x$PLATFORM_UNIX" = "x0" ; then
39369 COND_PLATFORM_UNIX_0=""
39370 fi
39371
3af038c0
VS
39372 COND_PLATFORM_UNIX_1="#"
39373 if test "x$PLATFORM_UNIX" = "x1" ; then
39374 COND_PLATFORM_UNIX_1=""
39375 fi
39376
3527f29c
VS
39377 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
39378 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
39379 COND_PLATFORM_UNIX_1_USE_GUI_1=""
39380 fi
39381
f93ca9fd
VS
39382 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
39383 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
39384 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
39385 fi
39386
3af038c0
VS
39387 COND_PLATFORM_WIN32_0="#"
39388 if test "x$PLATFORM_WIN32" = "x0" ; then
39389 COND_PLATFORM_WIN32_0=""
39390 fi
39391
39392 COND_PLATFORM_WIN32_1="#"
39393 if test "x$PLATFORM_WIN32" = "x1" ; then
39394 COND_PLATFORM_WIN32_1=""
39395 fi
39396
45842500
VS
39397 COND_SHARED_0="#"
39398 if test "x$SHARED" = "x0" ; then
39399 COND_SHARED_0=""
39400 fi
39401
250700e4
RD
39402 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
39403 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39404 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
39405 fi
39406
52a5a009
VS
39407 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39408 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39409 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39410 fi
39411
39412 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39413 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39414 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39415 fi
39416
39417 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39418 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39419 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39420 fi
39421
39422 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
39423 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
39424 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
39425 fi
39426
39427 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
39428 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
39429 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
39430 fi
39431
39432 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
39433 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
39434 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
39435 fi
39436
39437 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
39438 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
39439 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
39440 fi
39441
45842500
VS
39442 COND_SHARED_1="#"
39443 if test "x$SHARED" = "x1" ; then
39444 COND_SHARED_1=""
39445 fi
39446
250700e4
RD
39447 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
39448 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
39449 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
39450 fi
39451
6f628073
VS
39452 COND_TOOLKIT_COCOA="#"
39453 if test "x$TOOLKIT" = "xCOCOA" ; then
39454 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
39455 fi
39456
6f628073
VS
39457 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
39458 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39459 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39460 fi
39461
6f628073
VS
39462 COND_TOOLKIT_GTK="#"
39463 if test "x$TOOLKIT" = "xGTK" ; then
39464 COND_TOOLKIT_GTK=""
f95cd8fa
VS
39465 fi
39466
6f628073
VS
39467 COND_TOOLKIT_GTK_USE_GUI_1="#"
39468 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
39469 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
39470 fi
39471
6f628073
VS
39472 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
39473 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39474 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39475 fi
39476
3af038c0
VS
39477 COND_TOOLKIT_MAC="#"
39478 if test "x$TOOLKIT" = "xMAC" ; then
39479 COND_TOOLKIT_MAC=""
39480 fi
39481
8772a1a7
VS
39482 COND_TOOLKIT_MAC_USE_GUI_1="#"
39483 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
39484 COND_TOOLKIT_MAC_USE_GUI_1=""
39485 fi
39486
6f628073
VS
39487 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
39488 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39489 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39490 fi
39491
6f628073
VS
39492 COND_TOOLKIT_MGL="#"
39493 if test "x$TOOLKIT" = "xMGL" ; then
39494 COND_TOOLKIT_MGL=""
8ee2dd05
VS
39495 fi
39496
6f628073
VS
39497 COND_TOOLKIT_MGL_USE_GUI_1="#"
39498 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
39499 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
39500 fi
39501
6f628073
VS
39502 COND_TOOLKIT_MOTIF="#"
39503 if test "x$TOOLKIT" = "xMOTIF" ; then
39504 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
39505 fi
39506
6f628073
VS
39507 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39508 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39509 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 39510 fi
e6cc62c6 39511
6f628073
VS
39512 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
39513 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39514 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39515 fi
39516
6f628073
VS
39517 COND_TOOLKIT_MSW="#"
39518 if test "x$TOOLKIT" = "xMSW" ; then
39519 COND_TOOLKIT_MSW=""
8ee2dd05
VS
39520 fi
39521
6f628073
VS
39522 COND_TOOLKIT_MSW_USE_GUI_1="#"
39523 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
39524 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 39525 fi
e6cc62c6 39526
6f628073
VS
39527 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
39528 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39529 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 39530 fi
e6cc62c6 39531
96c1699d
VS
39532 COND_TOOLKIT_PM="#"
39533 if test "x$TOOLKIT" = "xPM" ; then
39534 COND_TOOLKIT_PM=""
39535 fi
39536
39537 COND_TOOLKIT_PM_USE_GUI_1="#"
39538 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
39539 COND_TOOLKIT_PM_USE_GUI_1=""
39540 fi
39541
39542 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
39543 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39544 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
39545 fi
39546
6f628073
VS
39547 COND_TOOLKIT_X11="#"
39548 if test "x$TOOLKIT" = "xX11" ; then
39549 COND_TOOLKIT_X11=""
9747f85d
VS
39550 fi
39551
6f628073
VS
39552 COND_TOOLKIT_X11_USE_GUI_1="#"
39553 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
39554 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
39555 fi
39556
3af038c0
VS
39557 COND_UNICODE_1="#"
39558 if test "x$UNICODE" = "x1" ; then
39559 COND_UNICODE_1=""
39560 fi
39561
7015ef3a
VZ
39562 COND_USE_EXCEPTIONS_0="#"
39563 if test "x$USE_EXCEPTIONS" = "x0" ; then
39564 COND_USE_EXCEPTIONS_0=""
39565 fi
39566
39567 COND_USE_EXCEPTIONS_1="#"
39568 if test "x$USE_EXCEPTIONS" = "x1" ; then
39569 COND_USE_EXCEPTIONS_1=""
39570 fi
39571
3af038c0
VS
39572 COND_USE_GUI_0="#"
39573 if test "x$USE_GUI" = "x0" ; then
39574 COND_USE_GUI_0=""
39575 fi
39576
39577 COND_USE_GUI_1="#"
39578 if test "x$USE_GUI" = "x1" ; then
39579 COND_USE_GUI_1=""
39580 fi
39581
e6cc62c6 39582 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
39583 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39584 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 39585 fi
e6cc62c6
VS
39586
39587 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
39588 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
39589 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
39590 fi
39591
66a96744
VS
39592 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39593 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39594 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39595 fi
39596
39597 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39598 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39599 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39600 fi
39601
39602 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39603 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39604 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39605 fi
39606
57e7d4ac
VS
39607 COND_USE_ODBC_1="#"
39608 if test "x$USE_ODBC" = "x1" ; then
39609 COND_USE_ODBC_1=""
39610 fi
39611
f93ca9fd
VS
39612 COND_USE_PLUGINS_0="#"
39613 if test "x$USE_PLUGINS" = "x0" ; then
39614 COND_USE_PLUGINS_0=""
39615 fi
39616
6f628073
VS
39617 COND_USE_SOSYMLINKS_1="#"
39618 if test "x$USE_SOSYMLINKS" = "x1" ; then
39619 COND_USE_SOSYMLINKS_1=""
b625909c
VS
39620 fi
39621
6f628073
VS
39622 COND_USE_SOVERLINUX_1="#"
39623 if test "x$USE_SOVERLINUX" = "x1" ; then
39624 COND_USE_SOVERLINUX_1=""
b625909c
VS
39625 fi
39626
6f628073
VS
39627 COND_USE_SOVERSION_0="#"
39628 if test "x$USE_SOVERSION" = "x0" ; then
39629 COND_USE_SOVERSION_0=""
fddeb06b 39630 fi
fe0895cf 39631
6f628073
VS
39632 COND_USE_SOVERSOLARIS_1="#"
39633 if test "x$USE_SOVERSOLARIS" = "x1" ; then
39634 COND_USE_SOVERSOLARIS_1=""
fddeb06b 39635 fi
fe0895cf 39636
f93ca9fd
VS
39637 COND_WITH_PLUGIN_SDL_1="#"
39638 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
39639 COND_WITH_PLUGIN_SDL_1=""
39640 fi
39641
39642 COND_WITH_SDL_1="#"
39643 if test "x$WITH_SDL" = "x1" ; then
39644 COND_WITH_SDL_1=""
39645 fi
39646
3af038c0
VS
39647 COND_WXUNIV_1="#"
39648 if test "x$WXUNIV" = "x1" ; then
39649 COND_WXUNIV_1=""
39650 fi
39651
66a96744
VS
39652 COND_WXUSE_EXPAT_BUILTIN="#"
39653 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
39654 COND_WXUSE_EXPAT_BUILTIN=""
39655 fi
39656
02980527
VS
39657 COND_WXUSE_LIBJPEG_BUILTIN="#"
39658 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39659 COND_WXUSE_LIBJPEG_BUILTIN=""
39660 fi
39661
39662 COND_WXUSE_LIBPNG_BUILTIN="#"
39663 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39664 COND_WXUSE_LIBPNG_BUILTIN=""
39665 fi
39666
39667 COND_WXUSE_LIBTIFF_BUILTIN="#"
39668 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39669 COND_WXUSE_LIBTIFF_BUILTIN=""
39670 fi
39671
39672 COND_WXUSE_ODBC_BUILTIN="#"
39673 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
39674 COND_WXUSE_ODBC_BUILTIN=""
39675 fi
39676
39677 COND_WXUSE_REGEX_BUILTIN="#"
39678 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
39679 COND_WXUSE_REGEX_BUILTIN=""
39680 fi
39681
39682 COND_WXUSE_ZLIB_BUILTIN="#"
39683 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
39684 COND_WXUSE_ZLIB_BUILTIN=""
39685 fi
39686
1772d20c 39687
fe0895cf 39688
fe0895cf 39689
fe0895cf 39690
45842500 39691if test $GCC_PCH = 1 ; then
130711ba 39692 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
39693 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
39694else
39695 case "${host}" in
39696 powerpc-*-darwin* )
130711ba
VS
39697 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39698 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 39699 ;;
45842500
VS
39700 esac
39701fi
fe0895cf
VS
39702
39703
fddeb06b 39704SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
39705
39706
39707
39708
39709
39710
39711
39712
39713
39714
39715
39716
39717
39718
39719
39720
39721
39722
39723
39724
39725
39726
39727
39728
39729
39730
39731
39732
39733
39734
39735
39736
39737
39738
39739
39740
39741
39742
39743
39744
39745
39746
39747
39748
39749
39750
39751
39752
39753
39754
39755
39756
39757
39758
39759
39760
39761
39762
39763
39764
39765
39766
39767
39768
39769
39770
39771
39772
39773
39774
39775
39776
39777
39778
39779
39780
39781
39782
39783
39784
39785
39786
39787
39788
39789
39790
39791
39792
39793
39794
39795
39796
39797
39798
fe0895cf 39799
f0290fca
VS
39800
39801
243f8ae5 39802
e6cc62c6
VS
39803
39804
39805echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39806echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
243f8ae5 39807set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
39808if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39809 echo $ECHO_N "(cached) $ECHO_C" >&6
39810else
39811 cat >conftest.make <<\_ACEOF
39812all:
39813 @echo 'ac_maketemp="$(MAKE)"'
39814_ACEOF
39815# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39816eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39817if test -n "$ac_maketemp"; then
39818 eval ac_cv_prog_make_${ac_make}_set=yes
39819else
39820 eval ac_cv_prog_make_${ac_make}_set=no
39821fi
39822rm -f conftest.make
39823fi
39824if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39825 echo "$as_me:$LINENO: result: yes" >&5
39826echo "${ECHO_T}yes" >&6
39827 SET_MAKE=
39828else
39829 echo "$as_me:$LINENO: result: no" >&5
39830echo "${ECHO_T}no" >&6
39831 SET_MAKE="MAKE=${MAKE-make}"
39832fi
39833
39834
39835if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
39836 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
39837fi
39838
39839 ac_config_headers="$ac_config_headers setup.h"
39840
39841
81345eef 39842 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
39843
39844
39845 ac_config_commands="$ac_config_commands default"
39846
39847
9de9b8f0 39848
6c3e36af
VZ
39849if test "$wxUSE_GUI" = "yes"; then
39850 SUBDIRS="samples demos utils contrib"
39851else SUBDIRS="samples utils"
39852fi
e6cc62c6 39853
166263e6 39854for subdir in `echo $SUBDIRS`; do
9747f85d 39855 if test -d ${srcdir}/${subdir} ; then
6c3e36af 39856 if test "$wxUSE_GUI" = "yes"; then
166263e6 39857 if test ${subdir} = "samples"; then
8772a1a7
VS
39858 makefiles="samples/Makefile.in $makefiles"
39859 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
39860 if test -d $srcdir/samples/$sample; then
39861 makefiles="samples/$sample/Makefile.in $makefiles"
39862 fi
39863 done
39864 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
39865 fi
6c3e36af 39866 else if test ${subdir} = "samples"; then
8772a1a7 39867 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 39868 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
39869 utils/HelpGen/src/Makefile.in \
39870 utils/tex2rtf/Makefile.in \
39871 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
39872 fi
39873 fi
39874
9747f85d
VS
39875 for mkin in $makefiles ; do
39876 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
39877 ac_config_files="$ac_config_files $mk"
e6cc62c6 39878
9747f85d
VS
39879 done
39880 fi
39881done
e6cc62c6 39882
9de9b8f0 39883
e6cc62c6
VS
39884cat >confcache <<\_ACEOF
39885# This file is a shell script that caches the results of configure
39886# tests run on this system so they can be shared between configure
39887# scripts and configure runs, see configure's option --config-cache.
39888# It is not useful on other systems. If it contains results you don't
39889# want to keep, you may remove or edit it.
39890#
39891# config.status only pays attention to the cache file if you give it
39892# the --recheck option to rerun configure.
39893#
39894# `ac_cv_env_foo' variables (set or unset) will be overridden when
39895# loading this file, other *unset* `ac_cv_foo' will be assigned the
39896# following values.
39897
39898_ACEOF
39899
39900# The following way of writing the cache mishandles newlines in values,
39901# but we know of no workaround that is simple, portable, and efficient.
39902# So, don't put newlines in cache variables' values.
39903# Ultrix sh set writes to stderr and can't be redirected directly,
39904# and sets the high bit in the cache file unless we assign to the vars.
39905{
39906 (set) 2>&1 |
39907 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39908 *ac_space=\ *)
39909 # `set' does not quote correctly, so add quotes (double-quote
39910 # substitution turns \\\\ into \\, and sed turns \\ into \).
39911 sed -n \
243f8ae5
VS
39912 "s/'/'\\\\''/g;
39913 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
39914 ;;
39915 *)
39916 # `set' quotes correctly as required by POSIX, so do not add quotes.
39917 sed -n \
243f8ae5 39918 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
39919 ;;
39920 esac;
39921} |
39922 sed '
39923 t clear
39924 : clear
39925 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39926 t end
39927 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39928 : end' >>confcache
39929if diff $cache_file confcache >/dev/null 2>&1; then :; else
39930 if test -w $cache_file; then
39931 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39932 cat confcache >$cache_file
39933 else
39934 echo "not updating unwritable cache $cache_file"
39935 fi
39936fi
39937rm -f confcache
39938
39939test "x$prefix" = xNONE && prefix=$ac_default_prefix
39940# Let make expand exec_prefix.
39941test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39942
39943# VPATH may cause trouble with some makes, so we remove $(srcdir),
39944# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39945# trailing colons and then remove the whole line if VPATH becomes empty
39946# (actually we leave an empty line to preserve line numbers).
39947if test "x$srcdir" = x.; then
243f8ae5 39948 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
39949s/:*\$(srcdir):*/:/;
39950s/:*\${srcdir}:*/:/;
39951s/:*@srcdir@:*/:/;
243f8ae5 39952s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 39953s/:*$//;
243f8ae5 39954s/^[^=]*=[ ]*$//;
e6cc62c6
VS
39955}'
39956fi
39957
39958DEFS=-DHAVE_CONFIG_H
39959
39960ac_libobjs=
39961ac_ltlibobjs=
39962for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39963 # 1. Remove the extension, and $U if already installed.
39964 ac_i=`echo "$ac_i" |
243f8ae5 39965 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
39966 # 2. Add them.
39967 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39968 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39969done
39970LIBOBJS=$ac_libobjs
39971
39972LTLIBOBJS=$ac_ltlibobjs
39973
39974
39975
39976: ${CONFIG_STATUS=./config.status}
39977ac_clean_files_save=$ac_clean_files
39978ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39979{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39980echo "$as_me: creating $CONFIG_STATUS" >&6;}
39981cat >$CONFIG_STATUS <<_ACEOF
39982#! $SHELL
39983# Generated by $as_me.
39984# Run this file to recreate the current configuration.
39985# Compiler output produced by configure, useful for debugging
39986# configure, is in config.log if it exists.
39987
39988debug=false
39989ac_cs_recheck=false
39990ac_cs_silent=false
39991SHELL=\${CONFIG_SHELL-$SHELL}
39992_ACEOF
39993
39994cat >>$CONFIG_STATUS <<\_ACEOF
39995## --------------------- ##
39996## M4sh Initialization. ##
39997## --------------------- ##
39998
39999# Be Bourne compatible
40000if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
40001 emulate sh
40002 NULLCMD=:
40003 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
40004 # is contrary to our usage. Disable this feature.
40005 alias -g '${1+"$@"}'='"$@"'
40006elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
40007 set -o posix
40008fi
243f8ae5 40009DUALCASE=1; export DUALCASE # for MKS sh
e6cc62c6
VS
40010
40011# Support unset when possible.
243f8ae5 40012if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
40013 as_unset=unset
40014else
40015 as_unset=false
40016fi
40017
40018
40019# Work around bugs in pre-3.0 UWIN ksh.
40020$as_unset ENV MAIL MAILPATH
40021PS1='$ '
40022PS2='> '
40023PS4='+ '
40024
40025# NLS nuisances.
40026for as_var in \
40027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
40028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
40029 LC_TELEPHONE LC_TIME
40030do
243f8ae5 40031 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
40032 eval $as_var=C; export $as_var
40033 else
40034 $as_unset $as_var
40035 fi
40036done
40037
40038# Required to use basename.
40039if expr a : '\(a\)' >/dev/null 2>&1; then
40040 as_expr=expr
40041else
40042 as_expr=false
40043fi
40044
40045if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
40046 as_basename=basename
40047else
40048 as_basename=false
40049fi
40050
40051
40052# Name of the executable.
40053as_me=`$as_basename "$0" ||
40054$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
40055 X"$0" : 'X\(//\)$' \| \
40056 X"$0" : 'X\(/\)$' \| \
40057 . : '\(.\)' 2>/dev/null ||
40058echo X/"$0" |
40059 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
40060 /^X\/\(\/\/\)$/{ s//\1/; q; }
40061 /^X\/\(\/\).*/{ s//\1/; q; }
40062 s/.*/./; q'`
40063
40064
40065# PATH needs CR, and LINENO needs CR and PATH.
40066# Avoid depending upon Character Ranges.
40067as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40068as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40069as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40070as_cr_digits='0123456789'
40071as_cr_alnum=$as_cr_Letters$as_cr_digits
40072
40073# The user is always right.
40074if test "${PATH_SEPARATOR+set}" != set; then
40075 echo "#! /bin/sh" >conf$$.sh
40076 echo "exit 0" >>conf$$.sh
40077 chmod +x conf$$.sh
40078 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
40079 PATH_SEPARATOR=';'
40080 else
40081 PATH_SEPARATOR=:
40082 fi
40083 rm -f conf$$.sh
40084fi
40085
40086
40087 as_lineno_1=$LINENO
40088 as_lineno_2=$LINENO
40089 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40090 test "x$as_lineno_1" != "x$as_lineno_2" &&
40091 test "x$as_lineno_3" = "x$as_lineno_2" || {
40092 # Find who we are. Look in the path if we contain no path at all
40093 # relative or not.
40094 case $0 in
40095 *[\\/]* ) as_myself=$0 ;;
40096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40097for as_dir in $PATH
40098do
40099 IFS=$as_save_IFS
40100 test -z "$as_dir" && as_dir=.
40101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
40102done
40103
40104 ;;
40105 esac
40106 # We did not find ourselves, most probably we were run as `sh COMMAND'
40107 # in which case we are not to be found in the path.
40108 if test "x$as_myself" = x; then
40109 as_myself=$0
40110 fi
40111 if test ! -f "$as_myself"; then
40112 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
40113echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
40114 { (exit 1); exit 1; }; }
40115 fi
40116 case $CONFIG_SHELL in
40117 '')
40118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40119for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
40120do
40121 IFS=$as_save_IFS
40122 test -z "$as_dir" && as_dir=.
40123 for as_base in sh bash ksh sh5; do
40124 case $as_dir in
40125 /*)
40126 if ("$as_dir/$as_base" -c '
40127 as_lineno_1=$LINENO
40128 as_lineno_2=$LINENO
40129 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
40130 test "x$as_lineno_1" != "x$as_lineno_2" &&
40131 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
40132 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
40133 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
40134 CONFIG_SHELL=$as_dir/$as_base
40135 export CONFIG_SHELL
40136 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
40137 fi;;
40138 esac
40139 done
40140done
40141;;
40142 esac
40143
40144 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
40145 # uniformly replaced by the line number. The first 'sed' inserts a
40146 # line-number line before each line; the second 'sed' does the real
40147 # work. The second script uses 'N' to pair each line-number line
40148 # with the numbered line, and appends trailing '-' during
40149 # substitution so that $LINENO is not a special case at line end.
40150 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
40151 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
40152 sed '=' <$as_myself |
40153 sed '
40154 N
40155 s,$,-,
40156 : loop
40157 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
40158 t loop
40159 s,-$,,
40160 s,^['$as_cr_digits']*\n,,
40161 ' >$as_me.lineno &&
40162 chmod +x $as_me.lineno ||
40163 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
40164echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
40165 { (exit 1); exit 1; }; }
40166
40167 # Don't try to exec as it changes $[0], causing all sort of problems
40168 # (the dirname of $[0] is not the place where we might find the
40169 # original and so on. Autoconf is especially sensible to this).
40170 . ./$as_me.lineno
40171 # Exit status is that of the last command.
40172 exit
40173}
40174
40175
40176case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
40177 *c*,-n*) ECHO_N= ECHO_C='
40178' ECHO_T=' ' ;;
40179 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
40180 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
40181esac
40182
40183if expr a : '\(a\)' >/dev/null 2>&1; then
40184 as_expr=expr
40185else
40186 as_expr=false
40187fi
40188
40189rm -f conf$$ conf$$.exe conf$$.file
40190echo >conf$$.file
40191if ln -s conf$$.file conf$$ 2>/dev/null; then
40192 # We could just check for DJGPP; but this test a) works b) is more generic
40193 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
40194 if test -f conf$$.exe; then
40195 # Don't use ln at all; we don't have any links
40196 as_ln_s='cp -p'
40197 else
40198 as_ln_s='ln -s'
40199 fi
40200elif ln conf$$.file conf$$ 2>/dev/null; then
40201 as_ln_s=ln
40202else
40203 as_ln_s='cp -p'
40204fi
40205rm -f conf$$ conf$$.exe conf$$.file
40206
40207if mkdir -p . 2>/dev/null; then
40208 as_mkdir_p=:
40209else
243f8ae5 40210 test -d ./-p && rmdir ./-p
e6cc62c6
VS
40211 as_mkdir_p=false
40212fi
40213
40214as_executable_p="test -f"
40215
40216# Sed expression to map a string onto a valid CPP name.
243f8ae5 40217as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
40218
40219# Sed expression to map a string onto a valid variable name.
243f8ae5 40220as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
40221
40222
40223# IFS
40224# We need space, tab and new line, in precisely that order.
40225as_nl='
40226'
40227IFS=" $as_nl"
40228
40229# CDPATH.
40230$as_unset CDPATH
40231
40232exec 6>&1
40233
40234# Open the log real soon, to keep \$[0] and so on meaningful, and to
40235# report actual input values of CONFIG_FILES etc. instead of their
40236# values after options handling. Logging --version etc. is OK.
40237exec 5>>config.log
40238{
40239 echo
40240 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40241## Running $as_me. ##
40242_ASBOX
40243} >&5
40244cat >&5 <<_CSEOF
40245
e46d2a18 40246This file was extended by wxWindows $as_me 2.5.1, which was
243f8ae5 40247generated by GNU Autoconf 2.59. Invocation command line was
e6cc62c6
VS
40248
40249 CONFIG_FILES = $CONFIG_FILES
40250 CONFIG_HEADERS = $CONFIG_HEADERS
40251 CONFIG_LINKS = $CONFIG_LINKS
40252 CONFIG_COMMANDS = $CONFIG_COMMANDS
40253 $ $0 $@
40254
40255_CSEOF
40256echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
40257echo >&5
40258_ACEOF
40259
40260# Files that config.status was made for.
40261if test -n "$ac_config_files"; then
40262 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
40263fi
40264
40265if test -n "$ac_config_headers"; then
40266 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
40267fi
40268
40269if test -n "$ac_config_links"; then
40270 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
40271fi
40272
40273if test -n "$ac_config_commands"; then
40274 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
40275fi
40276
40277cat >>$CONFIG_STATUS <<\_ACEOF
40278
40279ac_cs_usage="\
40280\`$as_me' instantiates files from templates according to the
40281current configuration.
40282
40283Usage: $0 [OPTIONS] [FILE]...
40284
40285 -h, --help print this help, then exit
40286 -V, --version print version number, then exit
40287 -q, --quiet do not print progress messages
40288 -d, --debug don't remove temporary files
40289 --recheck update $as_me by reconfiguring in the same conditions
40290 --file=FILE[:TEMPLATE]
243f8ae5 40291 instantiate the configuration file FILE
e6cc62c6 40292 --header=FILE[:TEMPLATE]
243f8ae5 40293 instantiate the configuration header FILE
e6cc62c6
VS
40294
40295Configuration files:
40296$config_files
40297
40298Configuration headers:
40299$config_headers
40300
40301Configuration commands:
40302$config_commands
40303
40304Report bugs to <bug-autoconf@gnu.org>."
40305_ACEOF
40306
40307cat >>$CONFIG_STATUS <<_ACEOF
40308ac_cs_version="\\
e46d2a18 40309wxWindows config.status 2.5.1
243f8ae5 40310configured by $0, generated by GNU Autoconf 2.59,
e6cc62c6
VS
40311 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
40312
243f8ae5 40313Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
40314This config.status script is free software; the Free Software Foundation
40315gives unlimited permission to copy, distribute and modify it."
40316srcdir=$srcdir
40317INSTALL="$INSTALL"
40318_ACEOF
40319
40320cat >>$CONFIG_STATUS <<\_ACEOF
40321# If no file are specified by the user, then we need to provide default
40322# value. By we need to know if files were specified by the user.
40323ac_need_defaults=:
40324while test $# != 0
40325do
40326 case $1 in
40327 --*=*)
40328 ac_option=`expr "x$1" : 'x\([^=]*\)='`
40329 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
40330 ac_shift=:
40331 ;;
40332 -*)
40333 ac_option=$1
40334 ac_optarg=$2
40335 ac_shift=shift
40336 ;;
40337 *) # This is not an option, so the user has probably given explicit
40338 # arguments.
40339 ac_option=$1
40340 ac_need_defaults=false;;
40341 esac
40342
40343 case $ac_option in
40344 # Handling of the options.
40345_ACEOF
40346cat >>$CONFIG_STATUS <<\_ACEOF
40347 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40348 ac_cs_recheck=: ;;
40349 --version | --vers* | -V )
40350 echo "$ac_cs_version"; exit 0 ;;
40351 --he | --h)
40352 # Conflict between --help and --header
40353 { { echo "$as_me:$LINENO: error: ambiguous option: $1
40354Try \`$0 --help' for more information." >&5
40355echo "$as_me: error: ambiguous option: $1
40356Try \`$0 --help' for more information." >&2;}
40357 { (exit 1); exit 1; }; };;
40358 --help | --hel | -h )
40359 echo "$ac_cs_usage"; exit 0 ;;
40360 --debug | --d* | -d )
40361 debug=: ;;
40362 --file | --fil | --fi | --f )
40363 $ac_shift
40364 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
40365 ac_need_defaults=false;;
40366 --header | --heade | --head | --hea )
40367 $ac_shift
40368 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
40369 ac_need_defaults=false;;
40370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40372 ac_cs_silent=: ;;
40373
40374 # This is an error.
40375 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
40376Try \`$0 --help' for more information." >&5
40377echo "$as_me: error: unrecognized option: $1
40378Try \`$0 --help' for more information." >&2;}
40379 { (exit 1); exit 1; }; } ;;
40380
40381 *) ac_config_targets="$ac_config_targets $1" ;;
40382
40383 esac
40384 shift
40385done
40386
40387ac_configure_extra_args=
40388
40389if $ac_cs_silent; then
40390 exec 6>/dev/null
40391 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
40392fi
40393
e6cc62c6
VS
40394_ACEOF
40395cat >>$CONFIG_STATUS <<_ACEOF
40396if \$ac_cs_recheck; then
40397 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
40398 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
40399fi
40400
e6cc62c6 40401_ACEOF
fe0895cf 40402
e6cc62c6 40403cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 40404#
e6cc62c6 40405# INIT-COMMANDS section.
10f2d63a 40406#
10f2d63a 40407
a0b9e27f 40408
e6cc62c6
VS
40409 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
40410 LN_S="${LN_S}"
10f2d63a 40411
10f2d63a 40412
10f2d63a 40413
e6cc62c6 40414_ACEOF
8284b0c5 40415
52127426 40416
247f5006 40417
e6cc62c6
VS
40418cat >>$CONFIG_STATUS <<\_ACEOF
40419for ac_config_target in $ac_config_targets
247f5006 40420do
e6cc62c6
VS
40421 case "$ac_config_target" in
40422 # Handling of arguments.
81345eef
VZ
40423 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
40424 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
40425 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 40426 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
40427 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
40428 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
40429 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
40430echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
40431 { (exit 1); exit 1; }; };;
247f5006
VZ
40432 esac
40433done
40434
e6cc62c6
VS
40435# If the user did not use the arguments to specify the items to instantiate,
40436# then the envvar interface is used. Set only those that are not.
40437# We use the long form for the default assignment because of an extremely
40438# bizarre bug on SunOS 4.1.3.
40439if $ac_need_defaults; then
40440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40442 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40443fi
40444
40445# Have a temporary directory for convenience. Make it in the build tree
40446# simply because there is no reason to put it here, and in addition,
40447# creating and moving files from /tmp can sometimes cause problems.
40448# Create a temporary directory, and hook for its removal unless debugging.
40449$debug ||
40450{
40451 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
40452 trap '{ (exit 1); exit 1; }' 1 2 13 15
40453}
247f5006 40454
e6cc62c6 40455# Create a (secure) tmp directory for tmp files.
247f5006 40456
e6cc62c6
VS
40457{
40458 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
40459 test -n "$tmp" && test -d "$tmp"
40460} ||
40461{
40462 tmp=./confstat$$-$RANDOM
40463 (umask 077 && mkdir $tmp)
40464} ||
40465{
40466 echo "$me: cannot create a temporary directory in ." >&2
40467 { (exit 1); exit 1; }
40468}
40469
40470_ACEOF
40471
40472cat >>$CONFIG_STATUS <<_ACEOF
40473
40474#
40475# CONFIG_FILES section.
40476#
247f5006 40477
e6cc62c6
VS
40478# No need to generate the scripts if there are no CONFIG_FILES.
40479# This happens for instance when ./config.status config.h
40480if test -n "\$CONFIG_FILES"; then
40481 # Protect against being on the right side of a sed subst in config.status.
40482 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
40483 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
40484s,@SHELL@,$SHELL,;t t
40485s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
40486s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
40487s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
40488s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
40489s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
40490s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
40491s,@exec_prefix@,$exec_prefix,;t t
40492s,@prefix@,$prefix,;t t
40493s,@program_transform_name@,$program_transform_name,;t t
40494s,@bindir@,$bindir,;t t
40495s,@sbindir@,$sbindir,;t t
40496s,@libexecdir@,$libexecdir,;t t
40497s,@datadir@,$datadir,;t t
40498s,@sysconfdir@,$sysconfdir,;t t
40499s,@sharedstatedir@,$sharedstatedir,;t t
40500s,@localstatedir@,$localstatedir,;t t
40501s,@libdir@,$libdir,;t t
40502s,@includedir@,$includedir,;t t
40503s,@oldincludedir@,$oldincludedir,;t t
40504s,@infodir@,$infodir,;t t
40505s,@mandir@,$mandir,;t t
40506s,@build_alias@,$build_alias,;t t
40507s,@host_alias@,$host_alias,;t t
40508s,@target_alias@,$target_alias,;t t
40509s,@DEFS@,$DEFS,;t t
40510s,@ECHO_C@,$ECHO_C,;t t
40511s,@ECHO_N@,$ECHO_N,;t t
40512s,@ECHO_T@,$ECHO_T,;t t
40513s,@LIBS@,$LIBS,;t t
40514s,@build@,$build,;t t
40515s,@build_cpu@,$build_cpu,;t t
40516s,@build_vendor@,$build_vendor,;t t
40517s,@build_os@,$build_os,;t t
40518s,@host@,$host,;t t
40519s,@host_cpu@,$host_cpu,;t t
40520s,@host_vendor@,$host_vendor,;t t
40521s,@host_os@,$host_os,;t t
40522s,@target@,$target,;t t
40523s,@target_cpu@,$target_cpu,;t t
40524s,@target_vendor@,$target_vendor,;t t
40525s,@target_os@,$target_os,;t t
40526s,@CC@,$CC,;t t
40527s,@CFLAGS@,$CFLAGS,;t t
40528s,@LDFLAGS@,$LDFLAGS,;t t
40529s,@CPPFLAGS@,$CPPFLAGS,;t t
40530s,@ac_ct_CC@,$ac_ct_CC,;t t
40531s,@EXEEXT@,$EXEEXT,;t t
40532s,@OBJEXT@,$OBJEXT,;t t
40533s,@CPP@,$CPP,;t t
40534s,@EGREP@,$EGREP,;t t
40535s,@CXX@,$CXX,;t t
40536s,@CXXFLAGS@,$CXXFLAGS,;t t
40537s,@ac_ct_CXX@,$ac_ct_CXX,;t t
40538s,@RANLIB@,$RANLIB,;t t
40539s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40540s,@AR@,$AR,;t t
40541s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40542s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40543s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40544s,@STRIP@,$STRIP,;t t
40545s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
40546s,@LN_S@,$LN_S,;t t
40547s,@CXXCPP@,$CXXCPP,;t t
672abd7a 40548s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
40549s,@PKG_CONFIG@,$PKG_CONFIG,;t t
40550s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
40551s,@GTK_LIBS@,$GTK_LIBS,;t t
40552s,@GTK_CONFIG@,$GTK_CONFIG,;t t
40553s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
40554s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
40555s,@X_CFLAGS@,$X_CFLAGS,;t t
40556s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
40557s,@X_LIBS@,$X_LIBS,;t t
40558s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
40559s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
40560s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
40561s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
40562s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
40563s,@RESCOMP@,$RESCOMP,;t t
40564s,@DEREZ@,$DEREZ,;t t
40565s,@SETFILE@,$SETFILE,;t t
40566s,@LIBICONV@,$LIBICONV,;t t
edd891e2 40567s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
f93ca9fd
VS
40568s,@SDL_CONFIG@,$SDL_CONFIG,;t t
40569s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
40570s,@SDL_LIBS@,$SDL_LIBS,;t t
edd891e2
VS
40571s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
40572s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
40573s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
40574s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 40575s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
40576s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
40577s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
40578s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
40579s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
40580s,@VENDOR@,$VENDOR,;t t
40581s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
40582s,@WXUNIV@,$WXUNIV,;t t
40583s,@MONOLITHIC@,$MONOLITHIC,;t t
f93ca9fd 40584s,@USE_PLUGINS@,$USE_PLUGINS,;t t
e6cc62c6 40585s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 40586s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 40587s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 40588s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 40589s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 40590s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
f93ca9fd
VS
40591s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
40592s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
e6cc62c6
VS
40593s,@UNICODE@,$UNICODE,;t t
40594s,@BUILD@,$BUILD,;t t
6c67131a
VS
40595s,@DEBUG_INFO@,$DEBUG_INFO,;t t
40596s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
40597s,@SHARED@,$SHARED,;t t
40598s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
40599s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
40600s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 40601s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 40602s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
40603s,@SET_MAKE@,$SET_MAKE,;t t
40604s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
40605s,@ac_ct_AR@,$ac_ct_AR,;t t
40606s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40607s,@NM@,$NM,;t t
40608s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 40609s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 40610s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
40611s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
40612s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
40613s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
40614s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
40615s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 40616s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 40617s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 40618s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 40619s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 40620s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 40621s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 40622s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
40623s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
40624s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
40625s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
40626s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
40627s,@PIC_FLAG@,$PIC_FLAG,;t t
40628s,@USE_SOVERSION@,$USE_SOVERSION,;t t
40629s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
40630s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
40631s,@USE_MACVERSION@,$USE_MACVERSION,;t t
40632s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
40633s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 40634s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 40635s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 40636s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
40637s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
40638s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
40639s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
40640s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
d78c94f2 40641s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a 40642s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
40643s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
40644s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
6c67131a
VS
40645s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
40646s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
40647s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 40648s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 40649s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 40650s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 40651s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
40652s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
40653s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 40654s,@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 40655s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 40656s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 40657s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 40658s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 40659s,@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 40660s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 40661s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
f95e4495 40662s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
3af038c0 40663s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
40664s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
40665s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
40666s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
40667s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 40668s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 40669s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
40670s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
40671s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
40672s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 40673s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 40674s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 40675s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 40676s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 40677s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 40678s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 40679s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
f93ca9fd 40680s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
3af038c0
VS
40681s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
40682s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 40683s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 40684s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
40685s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40686s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40687s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
40688s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
40689s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
40690s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
40691s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 40692s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 40693s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
40694s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
40695s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
40696s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
40697s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 40698s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 40699s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 40700s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
40701s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
40702s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
40703s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
40704s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
40705s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
40706s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 40707s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
40708s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
40709s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
40710s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
40711s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
40712s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
40713s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
40714s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 40715s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
40716s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
40717s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
40718s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
40719s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
40720s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
40721s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
40722s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40723s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40724s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 40725s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
f93ca9fd 40726s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
6f628073
VS
40727s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
40728s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
40729s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
40730s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
f93ca9fd
VS
40731s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
40732s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
3af038c0 40733s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 40734s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
40735s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
40736s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
40737s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
40738s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
40739s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
40740s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
40741s,@PATH_IFS@,$PATH_IFS,;t t
40742s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
40743s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
40744s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
40745s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
40746s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
40747s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
40748s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
40749s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
40750s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
40751s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
40752s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
40753s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
40754s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
40755s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
40756s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
40757s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
40758s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
40759s,@WX_ALL@,$WX_ALL,;t t
40760s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
40761s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
40762s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
40763s,@STATIC_FLAG@,$STATIC_FLAG,;t t
40764s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
40765s,@USE_GUI@,$USE_GUI,;t t
40766s,@AFMINSTALL@,$AFMINSTALL,;t t
40767s,@WIN32INSTALL@,$WIN32INSTALL,;t t
40768s,@TOOLKIT@,$TOOLKIT,;t t
40769s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
40770s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
40771s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
40772s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
40773s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
40774s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
40775s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 40776s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
40777s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
40778s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
40779s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
40780s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
40781s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
40782s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 40783s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 40784s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
40785s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
40786s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
40787s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
40788s,@ALL_HEADERS@,$ALL_HEADERS,;t t
40789s,@ALL_SOURCES@,$ALL_SOURCES,;t t
40790s,@GUIDIST@,$GUIDIST,;t t
40791s,@PORT_FILES@,$PORT_FILES,;t t
40792s,@DISTDIR@,$DISTDIR,;t t
40793s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
40794s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
40795s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
40796s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
40797s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
40798s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
40799s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
40800s,@RESFLAGS@,$RESFLAGS,;t t
40801s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
40802s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
40803s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
e6cc62c6
VS
40804s,@LIBWXMACRES@,$LIBWXMACRES,;t t
40805s,@MACRESCOMP@,$MACRESCOMP,;t t
40806s,@MACSETFILE@,$MACSETFILE,;t t
40807s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
40808s,@GCC@,$GCC,;t t
243f8ae5 40809s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t
e6cc62c6
VS
40810s,@DLLTOOL@,$DLLTOOL,;t t
40811s,@AS@,$AS,;t t
e6cc62c6
VS
40812s,@LD@,$LD,;t t
40813s,@MAKEINFO@,$MAKEINFO,;t t
40814s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
40815s,@LIBOBJS@,$LIBOBJS,;t t
40816s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
40817CEOF
40818
e6cc62c6
VS
40819_ACEOF
40820
40821 cat >>$CONFIG_STATUS <<\_ACEOF
40822 # Split the substitutions into bite-sized pieces for seds with
40823 # small command number limits, like on Digital OSF/1 and HP-UX.
40824 ac_max_sed_lines=48
40825 ac_sed_frag=1 # Number of current file.
40826 ac_beg=1 # First line for current file.
40827 ac_end=$ac_max_sed_lines # Line after last line for current file.
40828 ac_more_lines=:
40829 ac_sed_cmds=
40830 while $ac_more_lines; do
40831 if test $ac_beg -gt 1; then
40832 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 40833 else
e6cc62c6
VS
40834 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40835 fi
40836 if test ! -s $tmp/subs.frag; then
40837 ac_more_lines=false
40838 else
40839 # The purpose of the label and of the branching condition is to
40840 # speed up the sed processing (if there are no `@' at all, there
40841 # is no need to browse any of the substitutions).
40842 # These are the two extra sed commands mentioned above.
40843 (echo ':t
40844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40845 if test -z "$ac_sed_cmds"; then
243f8ae5 40846 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 40847 else
243f8ae5 40848 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
40849 fi
40850 ac_sed_frag=`expr $ac_sed_frag + 1`
40851 ac_beg=$ac_end
40852 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 40853 fi
e6cc62c6
VS
40854 done
40855 if test -z "$ac_sed_cmds"; then
40856 ac_sed_cmds=cat
10f2d63a 40857 fi
e6cc62c6 40858fi # test -n "$CONFIG_FILES"
10f2d63a 40859
e6cc62c6
VS
40860_ACEOF
40861cat >>$CONFIG_STATUS <<\_ACEOF
40862for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 40863 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
40864 case $ac_file in
40865 - | *:- | *:-:* ) # input from stdin
243f8ae5
VS
40866 cat >$tmp/stdin
40867 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40868 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 40869 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
243f8ae5 40870 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 40871 * ) ac_file_in=$ac_file.in ;;
10f2d63a 40872 esac
247f5006 40873
e6cc62c6
VS
40874 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40875 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40876$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
243f8ae5
VS
40877 X"$ac_file" : 'X\(//\)[^/]' \| \
40878 X"$ac_file" : 'X\(//\)$' \| \
40879 X"$ac_file" : 'X\(/\)' \| \
40880 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40881echo X"$ac_file" |
40882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40884 /^X\(\/\/\)$/{ s//\1/; q; }
40885 /^X\(\/\).*/{ s//\1/; q; }
40886 s/.*/./; q'`
40887 { if $as_mkdir_p; then
40888 mkdir -p "$ac_dir"
a0b9e27f 40889 else
e6cc62c6
VS
40890 as_dir="$ac_dir"
40891 as_dirs=
40892 while test ! -d "$as_dir"; do
40893 as_dirs="$as_dir $as_dirs"
40894 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40895$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
243f8ae5
VS
40896 X"$as_dir" : 'X\(//\)[^/]' \| \
40897 X"$as_dir" : 'X\(//\)$' \| \
40898 X"$as_dir" : 'X\(/\)' \| \
40899 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40900echo X"$as_dir" |
40901 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40902 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40903 /^X\(\/\/\)$/{ s//\1/; q; }
40904 /^X\(\/\).*/{ s//\1/; q; }
40905 s/.*/./; q'`
40906 done
40907 test ! -n "$as_dirs" || mkdir $as_dirs
40908 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40909echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40910 { (exit 1); exit 1; }; }; }
40911
40912 ac_builddir=.
40913
40914if test "$ac_dir" != .; then
40915 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40916 # A "../" for each directory in $ac_dir_suffix.
40917 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40918else
40919 ac_dir_suffix= ac_top_builddir=
40920fi
247f5006 40921
e6cc62c6
VS
40922case $srcdir in
40923 .) # No --srcdir option. We are building in place.
40924 ac_srcdir=.
40925 if test -z "$ac_top_builddir"; then
40926 ac_top_srcdir=.
40927 else
40928 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40929 fi ;;
40930 [\\/]* | ?:[\\/]* ) # Absolute path.
40931 ac_srcdir=$srcdir$ac_dir_suffix;
40932 ac_top_srcdir=$srcdir ;;
247f5006 40933 *) # Relative path.
e6cc62c6
VS
40934 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40935 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40936esac
243f8ae5
VS
40937
40938# Do not use `cd foo && pwd` to compute absolute paths, because
40939# the directories may not exist.
40940case `pwd` in
40941.) ac_abs_builddir="$ac_dir";;
40942*)
40943 case "$ac_dir" in
40944 .) ac_abs_builddir=`pwd`;;
40945 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40946 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40947 esac;;
40948esac
40949case $ac_abs_builddir in
40950.) ac_abs_top_builddir=${ac_top_builddir}.;;
40951*)
40952 case ${ac_top_builddir}. in
40953 .) ac_abs_top_builddir=$ac_abs_builddir;;
40954 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40955 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40956 esac;;
40957esac
40958case $ac_abs_builddir in
40959.) ac_abs_srcdir=$ac_srcdir;;
40960*)
40961 case $ac_srcdir in
40962 .) ac_abs_srcdir=$ac_abs_builddir;;
40963 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40964 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40965 esac;;
40966esac
40967case $ac_abs_builddir in
40968.) ac_abs_top_srcdir=$ac_top_srcdir;;
40969*)
40970 case $ac_top_srcdir in
40971 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40972 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40973 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40974 esac;;
40975esac
10f2d63a 40976
247f5006 40977
e6cc62c6
VS
40978 case $INSTALL in
40979 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40980 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 40981 esac
247f5006 40982
e6cc62c6
VS
40983 if test x"$ac_file" != x-; then
40984 { echo "$as_me:$LINENO: creating $ac_file" >&5
40985echo "$as_me: creating $ac_file" >&6;}
40986 rm -f "$ac_file"
40987 fi
40988 # Let's still pretend it is `configure' which instantiates (i.e., don't
40989 # use $as_me), people would be surprised to read:
40990 # /* config.h. Generated by config.status. */
40991 if test x"$ac_file" = x-; then
40992 configure_input=
40993 else
40994 configure_input="$ac_file. "
40995 fi
40996 configure_input=$configure_input"Generated from `echo $ac_file_in |
243f8ae5 40997 sed 's,.*/,,'` by configure."
e6cc62c6
VS
40998
40999 # First look for the input files in the build tree, otherwise in the
41000 # src tree.
41001 ac_file_inputs=`IFS=:
41002 for f in $ac_file_in; do
41003 case $f in
41004 -) echo $tmp/stdin ;;
41005 [\\/$]*)
243f8ae5
VS
41006 # Absolute (can't be DOS-style, as IFS=:)
41007 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
41008echo "$as_me: error: cannot find input file: $f" >&2;}
41009 { (exit 1); exit 1; }; }
243f8ae5 41010 echo "$f";;
e6cc62c6 41011 *) # Relative
243f8ae5
VS
41012 if test -f "$f"; then
41013 # Build tree
41014 echo "$f"
41015 elif test -f "$srcdir/$f"; then
41016 # Source tree
41017 echo "$srcdir/$f"
41018 else
41019 # /dev/null tree
41020 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
41021echo "$as_me: error: cannot find input file: $f" >&2;}
41022 { (exit 1); exit 1; }; }
243f8ae5 41023 fi;;
e6cc62c6
VS
41024 esac
41025 done` || { (exit 1); exit 1; }
41026_ACEOF
41027cat >>$CONFIG_STATUS <<_ACEOF
41028 sed "$ac_vpsub
41029$extrasub
41030_ACEOF
41031cat >>$CONFIG_STATUS <<\_ACEOF
41032:t
41033/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41034s,@configure_input@,$configure_input,;t t
41035s,@srcdir@,$ac_srcdir,;t t
41036s,@abs_srcdir@,$ac_abs_srcdir,;t t
41037s,@top_srcdir@,$ac_top_srcdir,;t t
41038s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
41039s,@builddir@,$ac_builddir,;t t
41040s,@abs_builddir@,$ac_abs_builddir,;t t
41041s,@top_builddir@,$ac_top_builddir,;t t
41042s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
41043s,@INSTALL@,$ac_INSTALL,;t t
41044" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
41045 rm -f $tmp/stdin
41046 if test x"$ac_file" != x-; then
41047 mv $tmp/out $ac_file
41048 else
41049 cat $tmp/out
41050 rm -f $tmp/out
41051 fi
41052
41053done
41054_ACEOF
41055cat >>$CONFIG_STATUS <<\_ACEOF
41056
41057#
41058# CONFIG_HEADER section.
41059#
10f2d63a
VZ
41060
41061# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
41062# NAME is the cpp macro being defined and VALUE is the value it is being given.
41063#
41064# ac_d sets the value in "#define NAME VALUE" lines.
243f8ae5
VS
41065ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
41066ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
41067ac_dC=' '
41068ac_dD=',;t'
41069# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
243f8ae5 41070ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 41071ac_uB='$,\1#\2define\3'
10f2d63a 41072ac_uC=' '
e6cc62c6
VS
41073ac_uD=',;t'
41074
41075for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 41076 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
41077 case $ac_file in
41078 - | *:- | *:-:* ) # input from stdin
243f8ae5
VS
41079 cat >$tmp/stdin
41080 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
41081 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 41082 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
243f8ae5 41083 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 41084 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
41085 esac
41086
e6cc62c6
VS
41087 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
41088echo "$as_me: creating $ac_file" >&6;}
41089
41090 # First look for the input files in the build tree, otherwise in the
41091 # src tree.
41092 ac_file_inputs=`IFS=:
41093 for f in $ac_file_in; do
41094 case $f in
41095 -) echo $tmp/stdin ;;
41096 [\\/$]*)
243f8ae5
VS
41097 # Absolute (can't be DOS-style, as IFS=:)
41098 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
41099echo "$as_me: error: cannot find input file: $f" >&2;}
41100 { (exit 1); exit 1; }; }
243f8ae5
VS
41101 # Do quote $f, to prevent DOS paths from being IFS'd.
41102 echo "$f";;
e6cc62c6 41103 *) # Relative
243f8ae5
VS
41104 if test -f "$f"; then
41105 # Build tree
41106 echo "$f"
41107 elif test -f "$srcdir/$f"; then
41108 # Source tree
41109 echo "$srcdir/$f"
41110 else
41111 # /dev/null tree
41112 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
41113echo "$as_me: error: cannot find input file: $f" >&2;}
41114 { (exit 1); exit 1; }; }
243f8ae5 41115 fi;;
e6cc62c6
VS
41116 esac
41117 done` || { (exit 1); exit 1; }
41118 # Remove the trailing spaces.
243f8ae5 41119 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
41120
41121_ACEOF
41122
41123# Transform confdefs.h into two sed scripts, `conftest.defines' and
41124# `conftest.undefs', that substitutes the proper values into
41125# config.h.in to produce config.h. The first handles `#define'
41126# templates, and the second `#undef' templates.
41127# And first: Protect against being on the right side of a sed subst in
41128# config.status. Protect against being in an unquoted here document
41129# in config.status.
41130rm -f conftest.defines conftest.undefs
41131# Using a here document instead of a string reduces the quoting nightmare.
41132# Putting comments in sed scripts is not portable.
41133#
41134# `end' is used to avoid that the second main sed command (meant for
41135# 0-ary CPP macros) applies to n-ary macro definitions.
41136# See the Autoconf documentation for `clear'.
41137cat >confdef2sed.sed <<\_ACEOF
41138s/[\\&,]/\\&/g
41139s,[\\$`],\\&,g
41140t clear
41141: clear
243f8ae5 41142s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 41143t end
243f8ae5 41144s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
41145: end
41146_ACEOF
41147# If some macros were called several times there might be several times
41148# the same #defines, which is useless. Nevertheless, we may not want to
41149# sort them, since we want the *last* AC-DEFINE to be honored.
41150uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
41151sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
41152rm -f confdef2sed.sed
10f2d63a
VZ
41153
41154# This sed command replaces #undef with comments. This is necessary, for
41155# example, in the case of _POSIX_SOURCE, which is predefined and required
41156# on some systems where configure will not decide to define it.
e6cc62c6 41157cat >>conftest.undefs <<\_ACEOF
243f8ae5 41158s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
41159_ACEOF
41160
41161# Break up conftest.defines because some shells have a limit on the size
41162# of here documents, and old seds have small limits too (100 cmds).
41163echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
243f8ae5 41164echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
41165echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
41166echo ' :' >>$CONFIG_STATUS
41167rm -f conftest.tail
41168while grep . conftest.defines >/dev/null
41169do
41170 # Write a limited-size here document to $tmp/defines.sed.
41171 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
41172 # Speed up: don't consider the non `#define' lines.
243f8ae5 41173 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
41174 # Work around the forget-to-reset-the-flag bug.
41175 echo 't clr' >>$CONFIG_STATUS
41176 echo ': clr' >>$CONFIG_STATUS
41177 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
41178 echo 'CEOF
41179 sed -f $tmp/defines.sed $tmp/in >$tmp/out
41180 rm -f $tmp/in
41181 mv $tmp/out $tmp/in
41182' >>$CONFIG_STATUS
41183 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
41184 rm -f conftest.defines
41185 mv conftest.tail conftest.defines
41186done
41187rm -f conftest.defines
41188echo ' fi # grep' >>$CONFIG_STATUS
41189echo >>$CONFIG_STATUS
10f2d63a 41190
e6cc62c6
VS
41191# Break up conftest.undefs because some shells have a limit on the size
41192# of here documents, and old seds have small limits too (100 cmds).
41193echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 41194rm -f conftest.tail
e6cc62c6 41195while grep . conftest.undefs >/dev/null
10f2d63a 41196do
e6cc62c6
VS
41197 # Write a limited-size here document to $tmp/undefs.sed.
41198 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
41199 # Speed up: don't consider the non `#undef'
243f8ae5 41200 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
41201 # Work around the forget-to-reset-the-flag bug.
41202 echo 't clr' >>$CONFIG_STATUS
41203 echo ': clr' >>$CONFIG_STATUS
41204 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 41205 echo 'CEOF
e6cc62c6
VS
41206 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
41207 rm -f $tmp/in
41208 mv $tmp/out $tmp/in
41209' >>$CONFIG_STATUS
41210 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
41211 rm -f conftest.undefs
41212 mv conftest.tail conftest.undefs
10f2d63a 41213done
e6cc62c6
VS
41214rm -f conftest.undefs
41215
41216cat >>$CONFIG_STATUS <<\_ACEOF
41217 # Let's still pretend it is `configure' which instantiates (i.e., don't
41218 # use $as_me), people would be surprised to read:
41219 # /* config.h. Generated by config.status. */
41220 if test x"$ac_file" = x-; then
41221 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 41222 else
e6cc62c6 41223 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 41224 fi
e6cc62c6
VS
41225 cat $tmp/in >>$tmp/config.h
41226 rm -f $tmp/in
41227 if test x"$ac_file" != x-; then
41228 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
41229 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
41230echo "$as_me: $ac_file is unchanged" >&6;}
41231 else
41232 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
41233$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
243f8ae5
VS
41234 X"$ac_file" : 'X\(//\)[^/]' \| \
41235 X"$ac_file" : 'X\(//\)$' \| \
41236 X"$ac_file" : 'X\(/\)' \| \
41237 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41238echo X"$ac_file" |
41239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41240 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41241 /^X\(\/\/\)$/{ s//\1/; q; }
41242 /^X\(\/\).*/{ s//\1/; q; }
41243 s/.*/./; q'`
41244 { if $as_mkdir_p; then
41245 mkdir -p "$ac_dir"
41246 else
41247 as_dir="$ac_dir"
41248 as_dirs=
41249 while test ! -d "$as_dir"; do
41250 as_dirs="$as_dir $as_dirs"
41251 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41252$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
243f8ae5
VS
41253 X"$as_dir" : 'X\(//\)[^/]' \| \
41254 X"$as_dir" : 'X\(//\)$' \| \
41255 X"$as_dir" : 'X\(/\)' \| \
41256 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41257echo X"$as_dir" |
41258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41259 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41260 /^X\(\/\/\)$/{ s//\1/; q; }
41261 /^X\(\/\).*/{ s//\1/; q; }
41262 s/.*/./; q'`
41263 done
41264 test ! -n "$as_dirs" || mkdir $as_dirs
41265 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41266echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41267 { (exit 1); exit 1; }; }; }
a0b9e27f 41268
e6cc62c6
VS
41269 rm -f $ac_file
41270 mv $tmp/config.h $ac_file
41271 fi
41272 else
41273 cat $tmp/config.h
41274 rm -f $tmp/config.h
41275 fi
41276done
41277_ACEOF
41278cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 41279
e6cc62c6
VS
41280#
41281# CONFIG_COMMANDS section.
41282#
41283for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
41284 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
41285 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
41286 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
41287$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
243f8ae5
VS
41288 X"$ac_dest" : 'X\(//\)[^/]' \| \
41289 X"$ac_dest" : 'X\(//\)$' \| \
41290 X"$ac_dest" : 'X\(/\)' \| \
41291 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
41292echo X"$ac_dest" |
41293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41294 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41295 /^X\(\/\/\)$/{ s//\1/; q; }
41296 /^X\(\/\).*/{ s//\1/; q; }
41297 s/.*/./; q'`
243f8ae5
VS
41298 { if $as_mkdir_p; then
41299 mkdir -p "$ac_dir"
41300 else
41301 as_dir="$ac_dir"
41302 as_dirs=
41303 while test ! -d "$as_dir"; do
41304 as_dirs="$as_dir $as_dirs"
41305 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41306$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41307 X"$as_dir" : 'X\(//\)[^/]' \| \
41308 X"$as_dir" : 'X\(//\)$' \| \
41309 X"$as_dir" : 'X\(/\)' \| \
41310 . : '\(.\)' 2>/dev/null ||
41311echo X"$as_dir" |
41312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41313 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41314 /^X\(\/\/\)$/{ s//\1/; q; }
41315 /^X\(\/\).*/{ s//\1/; q; }
41316 s/.*/./; q'`
41317 done
41318 test ! -n "$as_dirs" || mkdir $as_dirs
41319 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41320echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41321 { (exit 1); exit 1; }; }; }
41322
e6cc62c6
VS
41323 ac_builddir=.
41324
41325if test "$ac_dir" != .; then
41326 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41327 # A "../" for each directory in $ac_dir_suffix.
41328 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41329else
41330 ac_dir_suffix= ac_top_builddir=
41331fi
41332
41333case $srcdir in
41334 .) # No --srcdir option. We are building in place.
41335 ac_srcdir=.
41336 if test -z "$ac_top_builddir"; then
41337 ac_top_srcdir=.
41338 else
41339 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41340 fi ;;
41341 [\\/]* | ?:[\\/]* ) # Absolute path.
41342 ac_srcdir=$srcdir$ac_dir_suffix;
41343 ac_top_srcdir=$srcdir ;;
41344 *) # Relative path.
41345 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41346 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41347esac
243f8ae5
VS
41348
41349# Do not use `cd foo && pwd` to compute absolute paths, because
41350# the directories may not exist.
41351case `pwd` in
41352.) ac_abs_builddir="$ac_dir";;
41353*)
41354 case "$ac_dir" in
41355 .) ac_abs_builddir=`pwd`;;
41356 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41357 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41358 esac;;
41359esac
41360case $ac_abs_builddir in
41361.) ac_abs_top_builddir=${ac_top_builddir}.;;
41362*)
41363 case ${ac_top_builddir}. in
41364 .) ac_abs_top_builddir=$ac_abs_builddir;;
41365 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41366 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41367 esac;;
41368esac
41369case $ac_abs_builddir in
41370.) ac_abs_srcdir=$ac_srcdir;;
41371*)
41372 case $ac_srcdir in
41373 .) ac_abs_srcdir=$ac_abs_builddir;;
41374 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41375 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41376 esac;;
41377esac
41378case $ac_abs_builddir in
41379.) ac_abs_top_srcdir=$ac_top_srcdir;;
41380*)
41381 case $ac_top_srcdir in
41382 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41383 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41384 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41385 esac;;
41386esac
e6cc62c6
VS
41387
41388
41389 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
41390echo "$as_me: executing $ac_dest commands" >&6;}
41391 case $ac_dest in
41392 default )
652d930d 41393 if test ! -h wx-config; then
991a5759 41394 chmod +x wx-config
3a922bb4
RL
41395 mv wx-config wx${TOOLCHAIN_NAME}-config
41396 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 41397 fi
665bbe97 41398
00cf1208
RR
41399 if test ! -d lib; then
41400 mkdir lib
41401 fi
41402 if test ! -d lib/wx; then
41403 mkdir lib/wx
41404 fi
41405 if test ! -d lib/wx/include; then
41406 mkdir lib/wx/include
41407 fi
3a922bb4
RL
41408 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
41409 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 41410 fi
3a922bb4
RL
41411 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
41412 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
41413 fi
41414 if test -f setup.h; then
3a922bb4 41415 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 41416 fi
e6cc62c6
VS
41417 ;;
41418 esac
41419done
41420_ACEOF
2224580a 41421
e6cc62c6 41422cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 41423
e6cc62c6
VS
41424{ (exit 0); exit 0; }
41425_ACEOF
41426chmod +x $CONFIG_STATUS
41427ac_clean_files=$ac_clean_files_save
41428
41429
41430# configure is writing to config.log, and then calls config.status.
41431# config.status does its own redirection, appending to config.log.
41432# Unfortunately, on DOS this fails, as config.log is still kept open
41433# by configure, so config.status won't be able to write to it; its
41434# output is simply discarded. So we exec the FD to /dev/null,
41435# effectively closing config.log, so it can be properly (re)opened and
41436# appended to by config.status. When coming back to configure, we
41437# need to make the FD available again.
41438if test "$no_create" != yes; then
41439 ac_cs_success=:
41440 ac_config_status_args=
41441 test "$silent" = yes &&
41442 ac_config_status_args="$ac_config_status_args --quiet"
41443 exec 5>/dev/null
41444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41445 exec 5>>config.log
41446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41447 # would make configure fail if this is the last instruction.
41448 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
41449fi
41450
672abd7a
VS
41451#
41452# CONFIG_SUBDIRS section.
41453#
41454if test "$no_recursion" != yes; then
41455
41456 # Remove --cache-file and --srcdir arguments so they do not pile up.
41457 ac_sub_configure_args=
41458 ac_prev=
41459 for ac_arg in $ac_configure_args; do
41460 if test -n "$ac_prev"; then
41461 ac_prev=
41462 continue
41463 fi
41464 case $ac_arg in
41465 -cache-file | --cache-file | --cache-fil | --cache-fi \
41466 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41467 ac_prev=cache_file ;;
41468 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41469 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41470 | --c=*)
41471 ;;
41472 --config-cache | -C)
41473 ;;
41474 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41475 ac_prev=srcdir ;;
41476 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41477 ;;
41478 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41479 ac_prev=prefix ;;
41480 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41481 ;;
41482 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
41483 esac
41484 done
41485
41486 # Always prepend --prefix to ensure using the same prefix
41487 # in subdir configurations.
41488 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
41489
41490 ac_popdir=`pwd`
41491 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
41492
41493 # Do not complain, so a configure script can configure whichever
41494 # parts of a large source tree are present.
41495 test -d $srcdir/$ac_dir || continue
41496
41497 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
41498echo "$as_me: configuring in $ac_dir" >&6;}
41499 { if $as_mkdir_p; then
41500 mkdir -p "$ac_dir"
41501 else
41502 as_dir="$ac_dir"
41503 as_dirs=
41504 while test ! -d "$as_dir"; do
41505 as_dirs="$as_dir $as_dirs"
41506 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41507$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
243f8ae5
VS
41508 X"$as_dir" : 'X\(//\)[^/]' \| \
41509 X"$as_dir" : 'X\(//\)$' \| \
41510 X"$as_dir" : 'X\(/\)' \| \
41511 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
41512echo X"$as_dir" |
41513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41515 /^X\(\/\/\)$/{ s//\1/; q; }
41516 /^X\(\/\).*/{ s//\1/; q; }
41517 s/.*/./; q'`
41518 done
41519 test ! -n "$as_dirs" || mkdir $as_dirs
41520 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41521echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41522 { (exit 1); exit 1; }; }; }
41523
41524 ac_builddir=.
41525
41526if test "$ac_dir" != .; then
41527 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41528 # A "../" for each directory in $ac_dir_suffix.
41529 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41530else
41531 ac_dir_suffix= ac_top_builddir=
41532fi
41533
41534case $srcdir in
41535 .) # No --srcdir option. We are building in place.
41536 ac_srcdir=.
41537 if test -z "$ac_top_builddir"; then
41538 ac_top_srcdir=.
41539 else
41540 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41541 fi ;;
41542 [\\/]* | ?:[\\/]* ) # Absolute path.
41543 ac_srcdir=$srcdir$ac_dir_suffix;
41544 ac_top_srcdir=$srcdir ;;
41545 *) # Relative path.
41546 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41547 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41548esac
243f8ae5
VS
41549
41550# Do not use `cd foo && pwd` to compute absolute paths, because
41551# the directories may not exist.
41552case `pwd` in
41553.) ac_abs_builddir="$ac_dir";;
41554*)
41555 case "$ac_dir" in
41556 .) ac_abs_builddir=`pwd`;;
41557 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41558 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41559 esac;;
41560esac
41561case $ac_abs_builddir in
41562.) ac_abs_top_builddir=${ac_top_builddir}.;;
41563*)
41564 case ${ac_top_builddir}. in
41565 .) ac_abs_top_builddir=$ac_abs_builddir;;
41566 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41567 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41568 esac;;
41569esac
41570case $ac_abs_builddir in
41571.) ac_abs_srcdir=$ac_srcdir;;
41572*)
41573 case $ac_srcdir in
41574 .) ac_abs_srcdir=$ac_abs_builddir;;
41575 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41576 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41577 esac;;
41578esac
41579case $ac_abs_builddir in
41580.) ac_abs_top_srcdir=$ac_top_srcdir;;
41581*)
41582 case $ac_top_srcdir in
41583 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41584 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41585 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41586 esac;;
41587esac
672abd7a
VS
41588
41589
41590 cd $ac_dir
41591
41592 # Check for guested configure; otherwise get Cygnus style configure.
41593 if test -f $ac_srcdir/configure.gnu; then
41594 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
41595 elif test -f $ac_srcdir/configure; then
41596 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
41597 elif test -f $ac_srcdir/configure.in; then
41598 ac_sub_configure=$ac_configure
41599 else
41600 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
41601echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
41602 ac_sub_configure=
41603 fi
41604
41605 # The recursion is here.
41606 if test -n "$ac_sub_configure"; then
41607 # Make the cache file name correct relative to the subdirectory.
41608 case $cache_file in
41609 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
41610 *) # Relative path.
243f8ae5 41611 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
41612 esac
41613
41614 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
41615echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
41616 # The eval makes quoting arguments work.
41617 eval $ac_sub_configure $ac_sub_configure_args \
243f8ae5
VS
41618 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
41619 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
41620echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
41621 { (exit 1); exit 1; }; }
41622 fi
41623
41624 cd $ac_popdir
41625 done
41626fi
41627
8284b0c5 41628
2b5f62a0
VZ
41629echo
41630echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
41631echo ""
89fe663f 41632echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 41633echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
41634
41635echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
41636echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
41637echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
41638
0c98a14e 41639echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
41640echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
41641echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 41642
2b5f62a0
VZ
41643echo " Which libraries should wxWindows use?"
41644echo " jpeg ${wxUSE_LIBJPEG-none}"
41645echo " png ${wxUSE_LIBPNG-none}"
41646echo " regex ${wxUSE_REGEX}"
41647echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
41648if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
41649echo " xpm ${wxUSE_LIBXPM-none}"
41650fi
2b5f62a0 41651echo " zlib ${wxUSE_ZLIB}"
fd3d7534 41652echo " odbc ${wxUSE_ODBC}"
5f0b6dff 41653echo " expat ${wxUSE_EXPAT}"
3527f29c 41654echo " libmspack ${wxUSE_LIBMSPACK}"
f93ca9fd 41655echo " sdl ${wxUSE_LIBSDL}"
2b5f62a0
VZ
41656
41657echo ""
41658